Get 2.5gb online storage with Dropbox
To get 0.5gb extra storage with the best cross-plattform online storage service for Windows, Macs, Linux, iPhones, Android and other Smartphones simply follow this link: http://db.tt/UDacmJKn
An “expert”'s opinion on the universe and everything.
To get 0.5gb extra storage with the best cross-plattform online storage service for Windows, Macs, Linux, iPhones, Android and other Smartphones simply follow this link: http://db.tt/UDacmJKn
Launching a VPN if it is not connected on OS X:
tell application "System Events"
tell current location of network preferences
set VPNservice to service "My VPN" -- name of your VPN
set isConnected to connected of current configuration of VPNservice
if not isConnected then connect VPNservice
end tell
end tell
…prefect for automating “things” in Proxi.
I have moved some top posts from my old blog to this one; The old blog also is now redirecting most requests to this one. If you are missing any other post, please let me know in the comments.
In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.
— Douglas Adams
There are many reasons why you would want to fake your location in firefox. One good reason would be “un-faking” your location on computers with no wlan cards, e.g. at work, or where there’s no data available for the WLANs around you. All you need for faking is a text file (eg. /home/username/.mynewlocation.txt) somewhere on your computer with the following content:
{"location":{"latitude":50.941863,"longitude":6.958374, "accuracy":20.0}}
The path in Firefox to this file is: file://home/username/.mynewlocation.txt Type about:config in your location bar, confirm the warning, search for geo.wifi.url, and replace the old url (https://www.google.com/loc/json) with your new one from above. Restart firefox, enjoy your new location :-)
Explanation:latitude/longitude => the location you want to have, go to google maps, select location, click on “Link” and use the values from the ll= parameteraccuracy => the accuracy you want to announce, in meters.
Evolution is a great email client, it’s just missing a good new mail notifier - actually, it has none. I am running Fedora Core with Gnome and there’s the new-mail applet, but it’s huge and an overkill for most cases. To make a long story short, i was looking for a new mail notifier for Evolution and found none which were usable - so i made one. The following code should work on most Gnome desktops including Ubuntu and you can use with any other mail client which can pipe new emails to an external application:

Getting a new spam notification
As a heavy-user of Firefox, the biggest annoyance in Safari for me was the missing shortcuts for directly accessing tabs. In Firefox you can access the tabs by pressing Cmd+<number of tab>. For example, if you want to jump to your third tab you would press Cmd + 3 (⌘ + 3), however in Safari this loads the third bookmark from the bookmark toolbar - very annoying if you are used to a different behavior.
Luckily there is a way to change this behavior and make Safari (4, not sure about 3) behave like Firefox with the help of this innocent looking piece of AppleScript:
As a follow up to my earlier teredo howto, here i want to show you how to use the Tunnelbroker provided by Hurricane Electric on OS X 10.5, Leopard, behind a NAT Router that passes protocol41 (e.g. Fritz!box Fon WLAN 7170).
I did not want to make rocket-science out of this, so i did the easiest and simpliest possible way to achieve my goal, which means that it might not be the 100% correct way to do things. Also, it’s not going in to details about IPv6, so if you are new to this topic, the tutorial may be a bit difficult for you.
Enabling IPv6 on your PC is not as difficult as you think. This is a quick Teredo/Miredo Howto for the most popular operating systems allowing you to penetrate most NATs and Firewalls and most likely allowing you to bypass any blocking or censorship happening at your place. As a free bonus, i will will show you where to access tons of Usenet posts, including binaries over ipv6 for free.
Nota bene: Since Teredo also works from China, you can use it together with the *.sixxs.org proxy to read any of your favourite, blocked sites.
I also have a tutorial for IPv6 with tunnelbroker.net from HE for Mac OS X.
Should I ever need to detect with PHP if a user has IPv6, this code snipplet should do the job:
<?php
$ip = getenv ("REMOTE_ADDR");
if (substr_count($ip,":") > 0
&& substr_count($ip,".") == 0) {
echo 'You are using <a '
.'href="http://www.dnsstuff.com/tools/whois.ch?ip='
. $ip . '"> IPv6 </a>';
} else {
echo "You are using IPv4";
}
?>