Kai Hendry's other blog archives

Store markdown formatted index.mdwn files in a directory hierarchy. Store the style.css, header.inc & footer.inc in the base directory with the following Makefile:

INFILES = $(shell find . -name "*.mdwn")
OUTFILES = $(INFILES:.mdwn=.html)

all: $(OUTFILES)

%.html: %.mdwn footer.inc header.inc style.css
    m4 -PEIinc header.inc > $@
    markdown $< >> $@
    cat footer.inc >> $@

clean:
    rm -f $(OUTFILES)

PHONY: all clean

Now simply run make to generate your site.

Posted Tue Feb 19 15:09:40 2013

Using:

  1. scrot
  2. gimp

Using the dwm window manager and dmenu to run commands at the top.

The screen casting tool is recordmydesktop2.0.

If anyone knows a faster way to do it, using say a Web application, please let me know!

Posted Mon Feb 18 08:57:11 2013

Latest tips

For 192.168.5.*

nmap -PR -sP 192.168.5.0/24
Posted Sun Mar 10 11:24:50 2013
21:32 <akumaks> hi. i have question. help me,pls
21:32 <retard> i can't
21:32 <retard> i don't have it, you kept it
21:33 <akumaks> witch patch apply - to move by tags at "MOD"+ArrowKey?
21:39 <retard> [B[B[B
21:39 <retard> [6~
Posted Sun Jan 20 02:16:00 2013

Android in the United Kingdom

Sdcard

The "side loading" use case on Androids is a bit difficult to say the least.

LG Optimus with an sdcard mounted:

/dev/block/vold/179:17 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0

With it unmounted or removed /mnt/sdcard or /sdcard exist, but obviously not mounted. This can actually be a problem as some apps assume /sdcard are mounted and there to write on. Doh.

On a Galaxy S, where there is an empty sdcard slot we can see:

/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

With an sdcard inserted and mounted:

/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:9 /mnt/sdcard/external_sd vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/external_sd/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0

Notice the weird external_sd bit. The Galaxy S mounts the physical sdcard on /mnt/sdcard/external_sd/ which is a bit daft unless they are trying to work around a problem.

The Nexus S from Samsung doesn't have an sdcard, yet it still is mounted there:

/dev/block/vold/179:3 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0

In the menus, it's called "USB storage".

To conclude we can learn here that the physical sdcard has been deprecated really. I noticed a WRT that refused to install widgets from anywhere except /sdcard/, so when you didn't have a physical sdcard installed, you're kinda screwed. So now I guess Android has deprecated the sdcard, but unfortunately has kept the moint point name for historical reasons.

Without the physical sdcard, I must say it gets really hard to "side load". For example I have never managed to "side load" with other non-internet technologies like bluetooth, which is a bit depressing. USB I gather won't work because of the master slave model, though I don't have a physical USB male to male to try.

Posted Fri Feb 18 19:58:34 2011

Me & my new Nexus S

Upgrading from a Nexus 1 was particularly painful since I had to re-install all the apps. Furthermore the App metadata like where I am with "Angry birds" is not carried over. So I've must have lost many several hours of setup & game progression! :(

Network settings, Bookmarks, passwords, cookies, email accounts, all need to be re-setup. Under Privacy settings there is "Back up my data" & "Automatic restore" option ticked, but it didn't seem to work! Most definitely seems to be an opportunity to sort out the Android upgrade path.

The Nexus S screen is much better than the Nexus 1, however the battery life seems just as bad as the Nexus 1, if not worse. The lock and home keys are re-mapped, which I'm getting used to. Tbh, I prefer the home key on the right, but it is worrying how this small aspect is so fragmented already across Android devices! Pick up an Android and you will need to get used it's mappings. Pick up an Iphone and you're A for away.

Cons

  • Slippery back. Place the mobile on my bed and it slips off!
  • Terrible battery life, though the display is on a 30 second time out!
  • Hard to tell when it's upside down when taking it out my pocket
  • I have a little lip on my screen, turns out to be "physical damage" out the box, but Carphone warehouse accuse me of doing it :(
  • No Gtalk video enabled chat :( I want it, though this function kills my laptop, nevermind my mobile
  • NFC reader consumes battery :/ Can't figure out the new Tags application even though a friend also has a Nexus S!

Pros

Posted Wed Jan 5 13:33:53 2011