Kjekt lite script for å sende SMS hos OneCall

May 17th, 2013 No comments

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…

Categories: TechStuff, Things Lunix, TricksAndTips Tags:

Going Premium

August 22nd, 2011 No comments

Decon container 135 1After some deliberation I have finally decided to make all my caches of size “small” and larger Premium Only, or only accessible to paid memberships on geocaching.com.

Why?

Groundspeak have geocaching apps for iPhone and Android that doesn’t require the cacher to have a login name at geocaching.com. Anyone that can install the “Geocaching Intro” iPhone app may as a result find my caches, potentially destroy their hiding place and take any TBs and coins out of the box for their keeping. With the increased mainstream interest in geocaching I am seeing this as an upcoming larger problem.

Some people say “The risk for those things to happen are close to zero”. Not really. I had a cache hidden in a stone wall where an iPhone cacher tore down half the wall to get to the cache, and he never put the stones back in place. I have had trackables suddenly disappear from caches, once by one noob cacher that actually had a login and stated in the log for the cache that he had retrieved my coin. That cacher only logged four caches, and my coin is gone.

I am getting tired of this, and since there is no mechanism for consistently confirming finds or for marking a cache “visible only to cachers with 300 confirmed finds” I am now relying on that one indicator showing a persons interest and dedication for geocaching: A paid membership.

Unfortunately, this approach has one serious flaw, which I am prepared to overlook. Families where one of the parents have a premium account and the spouse and all the children have free accounts will not be able to have the spouse and kids log my caches any more. I can see that this is irritating, but one has to blame Groundspeaks policy for forcing cache owners into doing this. I wish it wasn’t so.

So, as of today, all caches I own that are big enough to put trackables in them will be for Premium Members only. Micros and nanos will still be available to unregistered cachers and those with an unpaid membership.

Categories: Geocaching Tags:

RSS Action Daemon 0.2

August 10th, 2011 1 comment

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

Categories: TechStuff Tags:

Kan DLD ha noko med dette å gjere?

March 22nd, 2011 No comments

Partiet Høyre klarte som kjent å lande på at dei er for å overvåke absolutt alle borgarar heile tida, også kjent som datalagringsdirektivet. Ein stor del av befolkninga er mot dette, naturlig nok. Dersom eg var valgforskar ville eg kanskje sette dette i samanheng med at Høgre no har gått ned ganske kraftige 7.2 prosentpoeng?

Categories: In the news Tags:

WordPress Multisite IP block

January 20th, 2011 No comments

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]

Categories: TechStuff, TricksAndTips Tags: