Couch+ Beta Signup
You can now signup for the closed beta for Couch+. 100 seats available!
You can now signup for the closed beta for Couch+. 100 seats available!
uTakeover version 1.0 is released!
Download the app now, and use it with your favorite flash game, emulator or regular game.
Also visit uKontrøll and download the iPhone app.
We choose to make all the source code for uTakeover available for free, and will release it in the Mac App store for free as well, later on. Hack away!
Source: hacks.gordito.se
It’s terrible to scroll an overflow DIV on iPad and iPhone. That is unless you add this line to your CSS:
-webkit-overflow-scrolling: touch;
If you want a simple script to show some temperature info for your city on your homepage (next to the cool “Under construction”-GIF you have, maybe?), here you have one:
function curl_get($url){
if (!function_exists('curl_init')) die('Sorry cURL is not installed!');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$output = curl_exec($ch);
curl_close($ch);
return $output;
}
function getTemp($city) {
$xml = curl_get("http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=".$city);
$v_start = strpos($xml,"<temp_c>")+8;
$v_stop = strpos($xml,"</temp_c>",$v_start);
$temp = substr($xml,$v_start,$v_stop-$v_start);
return $temp;
}
So just search for your city code (Jönköping, Sweden is eg. ESGJ) on wunderground.com and you’re off!
This script requires cURL to be installed on your server. If you don’t have it, run:
sudo apt-get install php5-curl
So, you want to download some videos from SVT Play do you? Well, after SVT changed their solution to Akamai HD you might have been running in to some problems.
Akamais solution doesn’t just download a simple videofile from a link, it splits the video into fragments and sends them on demand. And on SVT Play, some of the videos are encrypted as well. To top that off, all the RSS feeds are removed, so it’s now hard to get your daily news without being somewhat of a hacker… if you don’t want to use the regular web page that is ;)
Messing around with this, I soon found out that I’m not the only one who wants to watch the videos offline. I found this eminent Git from a swedish programmer who also had run in to some problems and had made a sweet solution to them:
But the solution requires FFmpeg and some other stuff. So to get it working on your mac you should install MacPorts. This is simple, just download the correct .pkg from this page (Scroll down to Mac OS X Package (.pkg) Installer): http://www.macports.org/install.php and doubleclick on it.
After that is done, open the terminal and run these commands
sudo port install ffmpeg +gpl +lame +x264 +xvid
sudo port install gsed
This might take some time, be patient. After the install has finished, download and unzip SVTget from GitHub, get into the terminal again and cd into the bash folder. Now you also need a link to a video from SVT Play, so in the terminal, run something like this:
bash svtget http://www.svtplay.se/video/885085/1-12-09-00
Change the URL to something you want to download. By the time you read this, SVT might have changed their link structure, and you might have to experiment a bit to get it right… Also consult the SVTget GitHub-page for more info about the use of SVTget.
If you’re still missing some dependencies, just use MacPorts in the same way as described above to install them.
Finally i get my swedish news offline when I want them…
UPDATE
Here are some great third party rss feeds for Rapport and Aktuellt that works with the above (use info in <link>):
Charlie Immer | on Tumblr (USA)
Charlie Immer is a fine artist and an illustrator. His work has been shown across the nation and has appeared been featured in HiFructose Magazine. Charlie holds a BFA in Illustration from the Rhode Island School of Design. Please visit Charlie’s website for more work or follow his Tumblr.
[more Charlie Immer | artist recommended by artforadults]
For all of you struggling with why your setNextKeyView is not working, you need to turn off the window recalculateKeyViewLoop with this command:
[self.window setAutorecalculatesKeyViewLoop:NO];
or remove it in Interface builder.
Hours of googling, swearing and testing, one line of code is the result…
After this, you can use the following command to set your TAB-order:
[textfield1 setNextKeyView: textfield2];
[textfield2 setNextKeyView: textfield3];
[textfield3 setNextKeyView: textfield1];
Happy coding… and thanks once again apple for your lousy documentation of your lousy “language”!
I looked a long time for a working example of multiple SSL Virtual Hosts in Apache. Finally i found one that was working, so here you have it:
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/ssl/apache2/server.crt
SSLCertificateKeyFile /etc/ssl/apache2/server.key
ServerName domain.tld
SSLOptions StrictRequire
SSLProtocol all -SSLv2
DocumentRoot /path/to/ssl/enabled/site
<Directory /path/to/ssl/enabled/site/>
SSLRequireSSL
Order Deny,Allow
Allow from All
</Directory>
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/ssl/apache2/otherserver.crt
SSLCertificateKeyFile /etc/ssl/apache2/otherserver.key
ServerName otherdomain.tld
SSLOptions StrictRequire
SSLProtocol all -SSLv2
DocumentRoot /path/to/other/ssl/enabled/site
<Directory /path/to/other/ssl/enabled/site/>
SSLRequireSSL
Order Deny,Allow
Allow from All
</Directory>
</VirtualHost>
Source: en.gentoo-wiki.com
For the creative person that isn’t satisfied with the beauty of the C++ code itself, check out openFrameworks toolkit for artist and interaction designers (and everybody else to). This is by far the easiest way to create graphical projects in C++! Everything is taken care of, it takes to seconds to get started, and it supports all big platforms.
Love in a Lib!
Source: openframeworks.cc
Currently working a lot with C++ and thought it was time to update to C++11! Found this amazing article that goes through the basic changes in an easy way. The worlds best language just got better!
http://www.softwarequalityconnection.com/2011/06/the-biggest-changes-in-c11-and-why-you-should-care/
Source: softwarequalityconnection.com
Hello world in assembly explained in a good and easy way. Exciting stuff..
I had some problems with this, and didn’t find any good answers on teh internetz. But after some thinking/more googling I came up with a solution. But first, the problem:
If you want HFS+ support in ubuntu, install the following packages:
$ sudo apt-get install hfsplus hfsutils hfsprogs
I had a FAT32 external usb disk, that showed up on /dev/sdb1 on my ubuntu 10.10 server. Mounting went fine and all was dandy, but then I got the bright idea to reformat the drive to HFS+ to support my Mac. After the HFS+ reformat (on my Mac) and recopying of files, putting it back in to my ubuntu computer and trying to mount it gave me some strange errors:
$sudo mount -f hfsplus /dev/sdb1 /media/external
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail
And dmesg took me to a “unable to find HFS+ superblock” message, witch took me to this page:
http://ubuntuforums.org/archive/index.php/t-991328.html
The clue I found here was that HFS+ had two partions, and for everything to work again I had to mount the SECOND partion, not the first, in otherwords /dev/sdb2 instead of /dev/sdb1. Simple, stupid, but very frustrating if you didn’t know.
Mounting the second partion worked, but the drive was still in read only mode. That was fixed with a flag:
$ sudo mount -f hfsplus /dev/sdb2 /media/external -o forced
and a chmod and chown:
$ sudo chmod 777 -R /media/external
$ sudo chown gordito:gordito -R /media/external
Now everything works fine, and Journaling is NOT tured off! Good luck!
Beautiful Tintin animation that catches something from all 24 Tintin books.
loading tweets…