Ein av dei tinga eg verkeleg likte hos Telenor var det udokumenterte HTTP GET-apiet for å sende SMS. Etter at eg bytta til OneCall på privattelefonen har eg brukt ting som Prowl og NotifyMyAndroid for å få kjappe meldinger til mobiltelefonane mine. Dette er vel og bra det, men dersom ein til dømes er i utlandet og har satt opp FTF-varsling på geocaching.com for det området ein befinn seg i ynskjer ein jo ikkje å pådra seg enorme utgifter ved å ha mobildata slått på.
Så, med litt hjelp frå Firebug i Firefox laga eg eit enkelt lite script for å sende SMS frå kommandolinja med ditt OneCall-abonnement. Enjoy!
Read more…

I recently had some use for a program that could download a RSS and then notify me over SMS if there were any new entries. I could not find anything useful on the internets except rssdler – but that one is just geared towards content download as far I could see.
So I remembered an old script I made back in 2005. After ironing out some bugs I got it working again
Without further ado: RSS Action Daemon 0.2
I have a case where a customer wants to block one of their many WordPress multisite blogs from all but some IP ranges. It turned out this could be quite easily solved with mod_rewrite in Apache – I know, the correct way to do it would probably be to set up a seperate virtualhost for that one URL and use allow from, but in a Plesk environment this is not always so easy…
The blog URL is intranet.domain.tld, and the allowed IPs should be 12.34.32.10 and the range 23.45.54.0/24. If the remote IP is not in the allowed range please go read the news…
The following snippet must be placed FIRST in the WordPress multisite .htaccess file
RewriteEngine on
RewriteBase /
RewriteCond %{REMOTE_ADDR} !12\.34\.32\.10$
RewriteCond %{REMOTE_ADDR} !23\.45\.54\..*$
RewriteCond %{HTTP_HOST} "intranet.domain.tld"
RewriteRule .* http://www.reddit.com [last]
As previously mentioned, I am now an Android user. This is not by choice, it’s some sort of political decision on my workplace that iPhones are strictly forbidden. Android phones, on the other hand, is allowed. So when my old private iPhone 3G started getting slow due to more advanced features in iOS4 I had to switch to Android in order to get a phone from my employer, which is something they are contractually bound to provide me with while I am working there.
So, how does the HTC Desire HD stack up to the iPhone? We’ll find out.

Read more…