Get The G1's WIFI To Activate Whilst Still In The Sign In Phase

I have an old Google G1 phone, that i use now just for experimentation.   Sometimes i end up reflashing it, and i end up in a situation where i have to get past the initial stages of Android setup where it forces you to sign into a google account before it will let you go any further - and with no valid sim card in it, the only other option is to use WIFI.   The only problem is you can't get to the WIFI settings to turn it on, until you pass the initial sign in phase :(

Any way, here's a handy run through, along with all nessecary downloads to use ADB and a usb cable to control Android in the background and bring up the WIFI settings whilst still in the sign in phase :

Friday 28 December 2012 at 9:01 pm | | Android | No comments

Deny .svn Directory Access With .htaccess

The following little snippet in a .htaccess file in your web root will block access to .svn directories via http.

# Block access to .svn files
RewriteRule ^(.*/)?\.svn - [F,L]
ErrorDocument 403 "Access Forbidden"

I found this by googling but the original had a trailing / on the .svn in the RewriteRule.   I've removed this as with out it, it appears that /.svn/ would be blocked, but /.svn would still get through.

Friday 28 December 2012 at 8:56 pm | | Apache, Linux | No comments

Linux CLI, Remove Leading or Trailing Spaces

A handy little snippet for removing leading or trailing spaces from lines of piped data :-

To remove leading spaces from each line in the piped data

somecmd | sed -e 's/^[[:space:\]]*//'

To remove trailing spaces from each line in the piped data

somecmd | sed -e 's/[[:space:]]*$//'

Friday 21 December 2012 at 09:31 am | | Linux | No comments

Better Keyboard For Android (and others)

If you like me have a hard time typing on a phone touch screen, you might want to check out SnapKeys.

It looks like a very very promising alternative touch screen keyboard for Android and other mobile OSes.   Instead of having lots of tiny little keys laid out like a querty keyboard, SnapKey has just 4 buttons, each with 3 characters on, and by some clever text prediction algorithm, it can figure out just from these 4 keys what the word is that you're typing.   It also has some extras for when it doesn't get it right, but by all accounts, it's very very good.

Unfortunately i don't have space on my limited San Francisco 1 to install it and try it out, but as soon as i get my new phone(hopefully soon) it'll be one of the first things i install.

Extra: here's some more keyboards for Android :

Wednesday 19 December 2012 at 12:20 pm | | Android | No comments


I was recently looking for a way to mount samba/windows shares into a linux filesystem with out the nessecity for root access.

The obvious route was something in the realm of FUSE, so initial google searches for "Fuse Samba" yielded results mostly pertaining to FuseSMB, so i gave it a try.   It was ok, sort of.   After installing and configuring, i ran "fusesmb <dir>" to get things going, and under the <dir> specified i found a directory for some of the network devices with smb available, and under the directories that did show i found the available shares.   HOWEVER, for some reason unknown, FuseSMB didn't seem to want to find Windows 7 devices or shares at all !

After a bit more googling i found SMBNetFS, which is very similar to FuseSMB, it's set up in a similar manner, with slightly different configs.   But after setting up and running SMBNetFS, all devices and shares were found, and were accessible !

SMBNetFS for me seems to be the hands down winner if you're looking for user space mounting of samba/windows shares.

Wednesday 19 December 2012 at 12:14 pm | | Linux | No comments