Google just made my day

Was trying to look up a word I had stumbled across too far ago to remember, so I typed the definition into Google in the hopes of finding a clue to it. I didn’t expect my chuckle of the day!

How Google shapes history

I seriously hope that is some Google Engineer’s idea of a joke about sex shaping history…..lol

This is from a real screen shot, not a photoshop!

An interesting idea for Android development

I could hook up my rooted phone to my netbook turned server, write the code using my ASUS Transformer, then run a batch job over SSH that compiles and installs the app on my phone.

Then connect to my phone via VNC and test it off the same Transformer 🙂

PostScript (.ps) versus Portal Document Format (.pdf) – from a users perspective

Generally, PS is pretty much a dead format today. The only time a user is likely to see significant amounts of it in my experience, is if they are dealing with quality printing. Reality is almost everything comes in PDF (or Word/Excell if from retards), and morons assume that Adobe Acrobat is the only reader for it. Most people don’t know that PS exists and to many are just to lost to figure out what a PDF is (ugh, grow up!). The simple facts:

  1. Post Script is text based
  2. PDF is a binary format annd offers some programmatic options where supported

Here is what makes that interesting! I have numerous files in PDF and PS formats. Most are under 5M and are PDF. Now there is a monster called The_Complete_FreeBSD.ps that weighs in at a whopping 60M!!! My largest PDF files were around 12M to 16M. I’m compressing stuff I don’t use frequently but don’t want to erase for space reclaimation. So I compressed everything over 2M with XZ to see what files will compress enough to be worth having to uncompress them next century. Most PDF files contained a few embedded images, so savings were on average about 1M, e.g. 15M becomes 14M. Useless. A few files that were more exessive on text shrunk from between 3.5M and 4M to between 1.5M and 2M. That is nice but still to small to care about, because of the original file size. The 60M PostScript file compressed down to 1.6M!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Size checks were done using du -h and compression with xz -e. Being more textual and less binary, I infer that we can get better compression ratios out of Post Script than PDF. Although it is possible to make a PS file that is pretty binary for all practical intents and purposes. But that was surprising….lol. Post Script: In point in fact, I think the only organizations that I have ever seen acknolledge other PDF readers exist, have been Canadian govermenta, which even went so far as to note XPDF, an old choice among Linux/Unix users. +1 for the Blogger app for Android remembering what I started writing ages ago witout me even having to click a draft entry, hehehe.

How technology has impacted my blogging/social media habbits

So far, my blog has seen an interesting return to pretty regular usage? Why? I’m not really any less busy with the stuff that I do, but I find with Andrea that I am posting more frequently. It’s not that the Android app is anything to write home about, in fact I will probably get googlecl loaded on her so that I can use my blogit script. It  is just a matter of convenience! The app icon on my home screen is right there, always in reach, and it is so easy to jot down a quick entry on Andrea.

Thinking about that has also made me realie part of whyI use Google+ so much. The privacy system being almost perfect and something that I’m 110% comfortable with. Having thebutton right on top of the Google pages. It isn’tneccesary to travel very far. When you are busy and either frequently having better things to do or constant interruptions at home.

Interesting findings. At work, my work station has always had problems using SMB/CIFS, in fact  it is almost useless but fortunately being Linux-oriented over here in Engineering, more traditional unix methods are favoured, so it is of little loss. Now the sad fact that most people use Windows, means that SMB/CIFS is easier to work with under Android than stuff like NFS or any of the multitude of similar techniques. As I rarely need to share stuff with multiple people, for my own stuff, I typically use SSHFS.

In fact, SSH is both such a part of my work flow between machines (here and espiecally at home), I wrote a handy script that lets me quickly mount my $HOME on a remote as ~/hosts/{hostname} locally. It’s useful. My workstation is setup both as a SSH client, server, and sshfs-mounter. But how to get stuff via Android, since I can’t just use CifsManager?

My ASUS Transformer obviously has support for FUSE, just looking at what `mount` says is enough to guess that. But there is no real support for SSHFS, all the goodies are missing. Since I have a very simple chroot of Debian stable, a quick `apt-get install sshfs` and bingo, all done :-). Since the stuff I’m interested in mounting at home (where SMB/CIFS works like a charm), I can just use SSHFS mounts and a shared socket. I.e. I can have things like my Dropbox mounted, get live sync, and even access locally!

Muahauhauauhuahuaaaa!!!!!!!!!!!!!!

Geekicious mixed client workflow

Okay, that is a post title that only a geek could love. So sue me, I’m geek lol. My battle pad is now fully operational, and should soon feature a charging cable extender and screen protector.

Today, I found that while the Debian chroot I have works well, sadly the linuxinstaller app in the market sucks at setting up resolv.conf. So I edited the init script it uses for an entry hook, to detect my home network and the corporate WiFi. Sadly, doing so results in DNS names going external, so something is still fraked. On the upside, editing the chroot’s /etc/hosts works, and that is what everyone here does. Never mind that the important servers have DNS names and OpenSSH can alias them to any shortname, but alas, it works.

One downside of running a terminal session on Android, BTEP will get reaped if you don’t use it for long enough. Like wise the linuxinstaller doesn’t run your bash as a login shell (!) and it’s a bug to remount the path to linuxchroot.sh as rw; so… I found how to kill two bugs with one rocket. I can leave a tmux session running and reattach at will. Muahuuahuahauhauhauaaa! Quite nicely, if I run the tmux session on the server-end, I can attach to it from another box (like my workstation), and use X forwarding; if I create a new tab from the X-terminal, it inherits enough environment to easily use the X-terminals X.Org server :-). This is even cooler because I can have the undesturned mobility of a ‘book or tablet, yet skip fouling my X session. There is also the VNC trick to run X clients on Android but I have not tried it, nor am I very interested right now.

A new idea occured to me while chatting with a friend, namely that I can export my notes directory from alice or my workstation, mount that on andrea over cifs/smb or NFS, edit locally, then get the Dropbox live sync goodness. Which still works because while alice is running at home, so is her Dropbox client and my cronjob to auto git commit my notes files!!!

Muhauhauhauahaaa!!!!!!

Hmm, so far operations with Andrea are moving fairly smoothly. Today, i spent a little time using Eclipse to try and prototype an idea, but soon gave up. Eclipse is a reasonable enough IDE but for Android work, the extra editors and crap are just not as useful as opening the file in the text editor, and if I may as well, then I will use VIM and execute the Android tools directly in a shell. Piss off.

I’ve been exploring the Android market more of late, because Andrea has so much more storage. My phone has limited internal storage so I rarely will use an app unless it offers something I find practical, like Dropbox & Opera. Rooting it helps since more stuff can be moved to the MicroSD card. Andrea on the other hand, has a lot more storage capacity: about 28GB user accessible from a market value of “32GB”. I’m still principally interested in apps that get work done. Two that I’ve been playing with today, are TextTab which is pretty much using your phones SMS from your tablet via Bluetooth.It’s awesome, it works, it does exactly what I want, and I can’t say the say about the Bluetooth SMS app that I tried during yesterdays shopping expideition. Something else that I tried, is a TeamSpeak 3 client. From the look of the write up, they likely intend to charge for it once it exits beta but it works as an OK client. Not enough for admin work or anything but fine for the core use: VoIP.

Alice has also been setup as a server, as part of cleaning my room. It will likely operate similar to the development server at work but for my personal projects, I’ve also exported some parts of my $HOME to the network. Eventually most of that will likely become stored on Andrea but for now I’m more interested in having it available. Andrea the tablet-book definitely brings my routine closer to the cloud than Alice the netbook but so far I am liking it.

Using a netbook as a mixture of development server and network attached storage may seem very weird. To me, it also has the added benifit that while I may lose my connection as the router goes offline – in a power outage, my session state in tmux can be saved for as long as the battery runs. Plus I could reattach locally  and have the same keyboard as the system I was working on. Muahuahauahuaa!!!!!!

Using my phone as a bridge between wireless networks because the in-store WiFi doesn’t cover enough stomach my other’s shopping. I will also admit that while I prefer Andrea to my phone, I still *hate* shopping!!!

Not how I like spending my time off work by far.

Day two and I almost kilt her but now I has root

After setting up my Eee Pad Transformer over night and lunch, I went about trying to root her after getting home from work. Flashing Andrea seemed to work fine, give or take that I normally have reservations about flashing stuff I haven’t personally proofed. It was marked as being appropriate for my SKU and release but left Andrea booting into a garbled multi-colour screen….a small fortune in paper weights.

I quickly rebooted Andrea into APX mode and searched Google for a way to unroot back to a stock ROM, even if that meant the original version. That soon lead me to Roach’s Prime v1.4 ROM, which I flashed to recover to a blank, usable, and rooted state. You can’t upgrade from Prime v1.4/Honeycomb 3.1 via ASUS updates, so I hit the web again to see if he had released a newer version of the ROM, sure enough, he has gotten up to v1.9! A quick look about showed me Prime v1.7/Honeycomb 3.2 stable and a 1.8 version in beta. So I tried to install the Prime v1.7 ROM as an update. Now that isn’t so hard, you basically save the ZIP archive and install it using ClockWorkMod via a recovery boot. The problemo is the ASUS Eee Pad Transformer sticks the internal storage at /mnt/sdcard with a link to /sdcard. Using a real memory card or USB device will go in /Removeable/WhatEver. So CWM couldn’t use the update, ‘cuz it couldn’t mount /sdcard.

Having missplaced my USB stick some time between work and vacation prep, I gave it no attempt to try that option and instead went looking for memory cards. I had purchased a pair of SD cards when I had bought a digitial camera a couple years ago, as it hadn’t lasted very long, my mother inherited them for her Dell Streak 7″. She had no idea where they went, so I checked her streak and found one – loaded the archive, stuck the card in the docks slot and bingo, same problem. So I removed the file, stuck that back in my mother’s tablet, and ripped the MicroSD card out of my phone. Sure enough that worked and in a few minutes was greated by a Honeycomb 3.2 versiion of Prime :-).

So now Andrea is alive, functional, and rooted. I just had to trade ASUS support for the brillance of Roach (that ROM saved my pad), and had to reinstall everything because I didn’t do a proper backup first. But that was a simple fix of redownload stuff off the Android Market via the website. I ain’t stupid, lol. When I get home, I will probably try to update to the v1.9 if it seems stable enough, but by the time I can get around to that, I will want to backup my stuff first.

After getting everything settled, I finally decided that it would be a good idea to register on xda-developers, since their forum is like most important place on the web for stuff like this. They have the most awesome forum registeration process ever, including a video. It’s worth it lol. Poking around the forums for my devices, it seems that it may be possible to flash a stock ROM after all but I would rather stick with Prime at this point. I’m also interested in seeing what gets cranked out but will need to aquire a suitable memory card before I can likely do much serious backing up.

I’m really thankful that Roach and cie made that available…lol

Enjoying the Android platform

It’s about 13:37 here and about half way through the work day. Normally I use a mixture of my workstation, Alice, and my phone; lately I have been using Alice quite heavily. I guess there is enough crap going through the wires that sometimes it is better to offload some of the heavy network traffic, plus it is rather handy that if I need to get up and walk around to do something, I can bring my /entire/ session along with me. So my workstation isn’t Mission Critical to doing my job. In fact, it is pretty much a heavy weight client doing what a humble X terminal could do really.

The important things to getting work done around here, in regards to all that, is a terminal, SSH client, and a web browser. Last night I setup the free Android Terminal Emulator app that I have on my phone, only to find that it seems to be crash happy on Andrea :'(. Likewise I setup ConnectBot for SSH access, only to find that it doesn’t support real modifier keys. So I can’t use it with my docks actual Control, Tab, Alt, etc. ConnectBot does work great on  my touch screen phone though. How did I solve these problems? After spending for the tablet and dock, I can’t bitch about paying another $4 for Better Terminal Emulator Pro (BTEP). Not only is it stable, it includes ash (probably dash but I haven’t checked), bash and busybox in its toolset. Dropbear is even slipped in for SSH, which while not something I like, will do fine for at work needs.

I can SSH into the development server at work, use tmux & vim, and go about doing stuff. Heck on a good signal day, I could stand next to the Microwave with the tablet portion and keep coding! I can do that with my phone too but practical issues like screen size/virtual keyboard, mean going from vim to ed. Emacs should even work but I don’t use it. All that is missing is a native X Server, and I could fix that with some rooting and VNC stuff, or maybe try to write one, idk. My workstation can deal with that slice of stuff easily.

To top it off, 94.9 has always been a bug to keep playing since they moved to a Flash based web player. The iHeartRadio app on my phone works but ahem, sound quality blows. The app doesn’t support Honeycomb tablets but I was able to download and install it manually, then setup the radio station to play using portrait orientation: the app doesn’t do landscape. So now I can finally work and listen to music without having to periodically stop to kick the radio stream into working 🙂 🙂 :-).

I is satisified so far!