Archive for the ‘Tech’ Category



PEBKAC – Newb mistake

Saturday, January 9th, 2010

PEBKAC (peb-k-aac)
- abbr.
1. (exp.) Problem Exists Between Keyboard And Chair
2. the result of the use of a machine by a fool, who should not be left in control once again
3. idiot..

I’ve been using linux in some form or another for well over ten years now, and I’ve (at least in my mind) been past the n00b stage for the better part of that time period. Of course, in my case, it doesn’t matter if I was an occasional user or the Grand Pu-bar of Gentoo-vian I’d still make mistakes, and this week I embarrassed myself terribly.

My beloved home NAS (QNAP TS-409 Pro that I wrote over a year ago) has been customised in many different ways and although underpowered when compared to the rest of the computers in the house has taken over responsibility of many things that my laptop(s) previously did, such as:

  • Headless Transmission (Bittorrent) client
    • Auto downloading based keyword searches from RSS feeds
    • Scheduled speed changes (off during business hours, 1/3 speed during the evenings, then full speed at other times)
    • Daemon controllable web client (clutch), Android app (Transdroid) or one of the many transmission remote clients for Windows, Mac and Linux
    • Automatic seed ratio checking to stop seeded downloads at a certain point and unpack/move the downloads their area (Music/TV/Movies — all legal of course)
  • Automatic remote backup
    • Rsync backups from the hd911.com server
    • SVN mirror for remote development SVN server, and a primary personal SVN server which is replicated elsewhere
  • UPnP server for my XBMC PC, pushing all available media content, photo collection to any UPnP client
  • Subsonic Media Server –  mainly so I can stream my music collection to my phone, or when I’m out or at work
  • and all the other features that come with the device as standard

Needless to say, I use it for everything, and now I can’t due to a momentously stupid change to /etc/passwd, where I altered the root account (the only one accessible remotely) login shell from /bin/sh to /bin/bash, which ashamedly isn’t accessible until after logging in (some magic in .bashrc) to link the bash from the optware/NSLU2 installation in /opt/bin back to it’s normal place /bin. Now unfortunately, I can’t login at all (except via the web client), but I can’t for the life of me figure out how to change the value in /etc/passwd so I can fix it.

Links to an article that seems somewhat relevant :P

The things I’ve tried so far are:

  • Basic telnet/SSH login attempts, running a command as part of the SSH statement (i.e ssh admin@qnap.****.local cat /etc/passwd)
  • Issue chsh to attempt a login shell change (ssh admin@qnap.****.local chsh /bin/sh)
  • Writing a dodgy web script (total failure)
  • Writing one of the QNAP installable packages (a QPKG) which appear to have elevated system privileges during install (can’t find enough information)
  • I can’t take the drive(s) out to replace the file easily as its 4x drives in RAID-5 and I don’t have a PC to load them into
  • I also can’t wipe the device as it (to my knowledge) deletes all data off the drives in the process.

The way I see it, I’ve now got two choices, either to buy a large HDD and move all the shared stuff off before wiping the device and starting again although this is not perfect as I’ll lose all the scripts and configuration that aren’t accessible via network share.  My other option is finding someone with a PC and 4x SATA ports and attempting to re-mount the array, this is probably the best/most reliable the way, but I believe it or not don’t know any one with such a machine, and we’ve all got Macbooks at the office.

Any ideas, anyone?

The Path to Android 2.x

Friday, December 4th, 2009

As I’ve said before the best thing about my Hero is the development community pushing out an almost constant stream of updated ROM’s for the phone providing:

  • speed/storage improvements with kernel optimisations, swap/compcache and supports running apps from the SD Card on a range of filesystems (ext2/3/4, BFS, etc)
  • new pre-release updates showing off new Android and HTC SenseUI features
  • security software (Droidwall & Wavesecure) for protecting the phone from network attack, and locking it down/wiping it if stolen
  • software packs and updates from other phones (Motorola, etc)

The principle resource at the moment for the development of ROM’s is the Hero android development forum at XDA-Developers, ROM’s so far:

MoDaCo’s Custom ROM (www.modaco.com)

Download/Info Link:

[ROM] 02/12 3.0 – MoDaCo Custom ROM Core / Chinese with TCK featuring Wavesecure

Paul from Modaco first released his ROM in August with releases every few days/weeks ever since.  It was a breath of fresh air after the initial software release that shipped with the phone (1.76.xx), and after v1.5 most of the speed, lag issues on the phone were all but gone.

Android Version: Cupcake (1.5)

Versions: 1.0 -> 3.0 (2/12/2009)

Features:

  • HTC/Sense UI based
  • Optimised build from official HTC updates
  • Newer versions include Tecknologist’s Custom Kernel (TCK) 1.9
  • Rooted (of course)
  • Includes wifi-tether, busybox, Spare Parts, Wavesecure etc

Drizzy’s MotoBlur

Download/Info Link:

[ROM][PORT] Drizzys MotoBlur v1.0rc2 for Hero [STOPPED NO MORE DEV]

Now discontinued ROM showcasing the Universal contacts feature from Motorola’s BLUR UI.

Versions: 1.0 (September 2009) – [DEPRECATED]

Android Version: Cupcake (1.5)

behnaam’s Donut Clean ROM

Download/Info Link:

[ROM] Clean ION 1.6 for our Hero v1.0 [30/10/09]

This ROM was an attempt at a clean (no Rosie/Sense UI) build of Donut (Android 1.6) for the hero, but since the release of the Kernel source code and pre-release Android 2.0 leaks all development has virtually stopped.

Android Version: Donut (1.6)

Versions: beta

Features:

  • Clean Donut build free of HTC’s SenseUI

Lox_Dev’s AOSP 2.0 Android release

Download/Info Link: XDA-Developers [DEV] AOSP-Eclair-2.0 (version beta1) – 29-11-2009

First Android 2.0 build for the Hero

Android Version: Eclair (2.0)

Versions: Beta1 (30/10/2009)

Features:

  • Clean (AOSP) Android open source project build, with no Google Apps or HTC SenseUI

Behnaam’s Hero v2.1

Download/Info Link:

[ROM] Hero 2.1 v1.3 – It’s here by Behnaam w/ base from KingKlick [3/12/09]

Bleeding edge HTC SesnseUI based ROM with Android 2.1 and all the new 2.0 features, involves work from barakinflorida, eugene, kingklick, drizzy and a few others.

Android Version: Eclair-bugfixes (2.1)

Versions: 1.1 -> 1.3 (3/12/2009)

Features:

  • HTC/Sense UI based

Wireless (802.11x) Congestion Issues

Thursday, December 3rd, 2009

I don’t particularly like wireless, it’s slow at the best of times (when compared to cabled ethernet) and can occasionally be downright unreliable.  On the other hand, it’s a great money saver especially when living in rented or temporary accomodation and is essential when using a laptop/phone on the couch, outside on the toilet etc.  My biggest problem with it recently though is complete wireless spectrum congestion in my new area (Balham, UK).

We’ve lived in a few built up areas around London already, some far more so than Balham, but i’ve never seen so many AP’s in the one residential area before, my scan’s show between 10 – 50 different networks at various times throughout the day.

sitesurvey

A ‘lean’ site survey, it’s usually 3-4x as many

Most of the time, my router appears to work perfectly, then suddenly (as much as a couple of times a day), the network connection stops responding and I need to go and change the channel.  A ping of the router looks like this:

shannon@vostro:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=945.41 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1401.52 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=2788.41 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=4342.34 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=6309.23 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=10345.58 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=13424.52 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=16435.42 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=17334.73 ms
64 bytes from 192.168.1.1: icmp_seq=10 ttl=64 time=18223.47 ms
64 bytes from 192.168.1.1: icmp_seq=11 ttl=64 time=20994.43 ms
64 bytes from 192.168.1.1: icmp_seq=12 ttl=64 time=22534.4 ms
64 bytes from 192.168.1.1: icmp_seq=13 ttl=64 time=24998.25 ms

With this many AP’s in the area, short of installing a faraday cage in the external walls of the house, I may be forced to use the 5.8Ghz 802.11a band which doesn’t work with a lot of devices such as my old laptop, phones, printer, etc.

Android Initiation

Wednesday, December 2nd, 2009

In August of this year I was adopted into the Android family sold my Nokia N95 8GB (after replacement post beer immersion) for a decent sum using the massively over-advertised service MazumaMobile.  After a fair bit of research I was attracted to the Samsung i7500 (Galaxy), but after waiting a number of months for its delayed release, went with the HTC Hero instead.


The HTC Hero with Sense UI

In hindsight this was without doubt the best decision  due to a few reasons:

  • it’s the first Droid with custom UI (SenseUI), and while slow/buggy at first has moved in leaps and bounds since (now other manufacturers have their own UI
  • the developer community supporting HTC Android devices helps with update and optimisations
  • hype around the Hero and its release (as well as an ‘award’) have made it very popular boosting community support
  • right from the start there’s been a few dedicated devs who’ve been releasing custom made and highly optimised ROM’s/kernels based on pre-released HTC and Google builds
  • did I mention SenseUI yet?

In contrast, the Galaxy has a large OLED screen with fantastically vibrant colour output and clarity, but there’s just no dev community and the hype has all but died since its initial release.


The Samsung Galaxy i7500 with stock Android UI

Stating the obvious, but one of the things that makes Android a great platform and sets it apart from the iPhones, Symbians and Blackberrys of the world is its open nature and customisability which doesn’t help when there’s no developer community to hack away at kernel compilation, optimise builds and boot process, make customised themes or cross breed apps/software accross other Android devices.

With Motorola Milestone, Sony Experia X10 and a multitude of models from Acer, Dell, HP (some big names in the computing industry there!) as well as a whole list of upcoming HTC Droids, the next few years is looking exciting.

Stay tuned for a series of posts about the Hero, and its hackery.

http://www.hd911.com/2008/01/nokia-n95-yes-the-black-8gb-one/

GTAIV – worth the £1000 upgrade?

Wednesday, December 10th, 2008

I’m not a game by any means, and in any year I’d play only a handful of new titles.  Most of the time if I bother to sit down and play a game it’ll be an old favourite like Counterstrike Source or Quake III, but occasionally a game comes along that will hold my attention for many, many hours of joyful life-stealing pleasure.  To name a few:

  • Civilisation 2
  • Final Fantasy VII & VIII
  • Transport Tycoon Deluxe and more recently OpenTTD
  • All of the Grant Theft Auto series, but most recently GTA: San Andreas

On December 3rd, Grand Theft Auto IV came out for the PeeCee, and having refrained from trying it on the Playstation3 or Xbox 360 I gleefully got my hands on a copy and waited out the almost 40 minute install.  I should have known pre-install that there wasn’t a hope in hell it was going to play nicely on the laptop, especially not at a great quality/resolution.  After all, it more than meets the requirement for the minimum required system (from Rockstar Site), and meets most of the requirement for recommended system (the video card is the big let down here).

I can play at the amazing resolution of 800×600 with all higher graphic settings disabled due to low specification of system.  I have to wonder who came up with the idea of limiting the quality settings for lower spec cards, it should be the users choice to wind up the settings and make the game unplayable if they so wish.

Back to the game, as you’d probably guess, the performance on my system leaves a lot to be desired but is still playable, and even explosions don’t seem to slow it down too far, but I’m always left wanting more, especially seeing some of the screenshots of people running it at 1920×1200 on monster machines.

I’m left wondering though, is it worth me spending +£1000 on a desktop machine that can play this correctly or giving up and going back to minesweeper.  I’m not sure i could warrant the price given that this is probably the one title I’ll acutally play this year (as well as in 2009), but considering I got months and months of play out of GTA:SA who knows.  It’s an investment in time I guess, and heck, I’d have spent a lot more having fun on booze in the process.

The game itself is fantastic though, I can forsee in the next few years having a map of London (or New York, or perhaps Tehran) with every building, feature, person manipulatable , almost like a GTA in that corny old VR world of the 80′s that everyone was dreaming about.  I could get coffee in the store I go to every morning at work and then go to work on the office front door with a baseball bat, just for the point of it…

Then I’d escape down the tube to my batcave, or home maybe.

QNAP TS-409 Pro

Monday, November 17th, 2008

Two months ago, I wrote about the Icybox NAS-4220B Network storage unit, my first choice in the search for a set it, and forget it storage and home server solution, and if anyone’s used an Icybox before I have no doubt they’d be at least as dissappointed as I was in my few months of battle with it.  I won’t get into it again, no one likes a whinger but it was so flawed but writing everything to 1,000,000 floppy disks would probably have been a quicker, easier and more reliable solution.

Recently an oppurtunity came up to buy another NAS unit, the QNAP TS-409 Pro, from a friend at work for a good price, so after quick thought and some research (more than I had done for the Icybox!), I snapped it up.  And after a month of use, I havent regretted it.  It’s a four drive SOHO (prosumer, maybe) backup solution which currently has 4x 500GB drives in a RAID5 configuration.

The best things:

  • Gigabit network connectivity (realworld gigabit, this time (20 – 40MB/s, much better than the 5 – 10MB/s from the Icybox)
  • 4x SATA Bays capable of RAID0, 1, 5, 6 and JBOD configs
  • Inbuilt media, iTunes, music streaming server
  • Torrent/HTTP queue downloader
  • NSLU2 support with iPKG management (basic linux OS with Debian like package installer).
  • FTP/Samba/NFS/HTTP file access
  • support for USB drives/keys and one touch/scheduled backup of core files, either from the unit itself or from locations around the local network.
  • and a whole bunch of other features like web server, database, time server etc etc.

I’m especially interested in the IPKG manager and NSLU2 based linux console as it really closes the gap between useless (or limited use) network device, and fully configurable server or computer, and I’ve got a bunch of scheduled tasks UnRAR’ing downloads, backing up photos and documents, rebuilding/exporting the music collection and downloading new album artwork and doing other system and network diagnostic tasks.  Infinitely useful!

Nothings perfect though, and it can’t all be good, in the case of the QNAP, its loud as hell and building the initial RAID array took a fair few hours but that’s to be expected, and under the circumstances, I think I can let it pass.

Last.fm

Wednesday, September 10th, 2008

I’ve never really been interested in the whole social networking scene, especially not for anything other than communication.  But due to recent boredom with my music collection (mostly after running out of songs on my iPod on a daily basis), I’ve taken to listening to Last.fm recently.

It’s great so far, and is turning out to be a welcome change to being mid way through a 2 hour mix as I’m currently used to, and I can listen to a whole range of music I wouldn’t usually get to.

I’m still wondering what the point of the social networking side to this is though, so I can compare my music taste with someone named jeebee34 halfway accross the world and realise my music compatitibility with him/her is only 12%?  What does this prove, that I should start listening to Madonna or Justin Timberlake to boost this rating with my new found online friend?

Last.fm makes use of the concept of scrobbling, which is where whatever you’re currently listening to is submitted up to the last.fm server for everyone to see, and scrutinise.  This doesn’t just work for when you’re listening to last.fm radio itself but through any popular media player (such as iTunes, Windows Media Player, amarok, Exaile, etc), or through any number of music devices, such as an iPod or my Nokia N95.  You’ve go to wonder though, what do they do with all those stored music preferences?  Could it be used to tailor a bunch of music adverts to our inboxes around Christmas time, or perhaps used in court to prove that we’d listened to a bunch of Metallica music, far more than one person could possibly own?

All that aside though, I’ve been quite impressed at how well it can map music choices to a chosen genre or tag, and searching by tags or artists return results you’d expect (mostly, anyway).  A friend searched for music like Daft Punk the other day and was blessed with the sweet soothing sounds of koRn, so I’m not sure what went wrong there.

Favourite Tags so far:

  • dnb
  • progressive trance
  • psytrance (see a trend happening here?)

So if you’re a last.fm’er, jump on, look at my profile and add me

Ranting again, the cold hard speed of IcyBox

Monday, September 8th, 2008

As many of you know, I bitch frequently, and today is no exception.  I’m not just bitching about slow transfer speeds from a restricted device which should be capable of far more (yes, the N95), I’m over that now, as there a bigger demon in its midst.  One that defies all logic completely, to which I can find no possible explanation, apart from shit-ness by the manufacturer in question.

Disclaimer: The paragraphs below will be boring, and slightly technical, and my contain Vendor Verdicts which whilst not directly opposing HD911′s stringent rules regarding Product/Name Defamation and the Fair-trade and Distribution Protection act of Liverpool 1983*

I bought a NAS (Network Attached Storage) unit from a relatively reputable online computer dealer in England at the end of last year after much deliberation and a little mis-directed (and now seemingly useless) research.  For the money, the unit was supposed to be one of the better performers.  At the time I bought two hard drives to go along with the unit, which were one of the faster drives available on the market at the time.  The NAS, an ICYBOX NAS4220-B (you can see here the name of the offending company has been removed to comply with HD911′s policies), flat out refused to boot/function or do pretty much anything with the new drives.

A little time ticked by, and (stupidly) the owner and purchaser did not RMA either the drives, nor the NAS unit in time, and the store would no longer accept the products as refunds, so I used the hard drives elsewhere and shelved the obviously trusty unit for another day.  Over the next few months, I tried the drives with a few different versions of the Icybox’s firmware, and even went to the extent of disabling features on the drives themselves to see if they would wotk, but still had no luck.

Fast forward to August 2008, I purchased a cheaer, lower spec harddrive to go in the unit as it could surely serve a better purpose than sitting in the cupboard gaining dust, for this aluminium monstrosity cost £100, and that could have been better spent on beer or a treatment program for the authors ever growing fascination with the game World of Warcraft, and a level 40 dwarf (sorry, little person) named El-dorf.

You must understand, by this point I had an amazingly profuse dislike for the pre-purchased NAS unit, neither it nor its manuracturer website or support forums inspired any confidence at all in a good product.  But I wanted it to work, at least in half the way you’d expect a unit to function.  There’s an element of pride here too, and an IT guys damaged ego over a poor purchase decision can be difficult to mend, as I usually make good, educated decisions about what a good product is and where/how to buy it.

So the new hard drive worked as it should and I was away, madly copying the collected works of self-recorded flute solos, and bad karaoke-style ABBA renditions, but noticed something astounding, transfers via built in “gigabit” network connection were going unusually slow.  Just to back this up, I have a laptop hard drive that can quite happily read/write at 40-50MB/s for sustained periods, a Broadcom gigabit port that should be capable of at least this plugged into another gigabit port on the NAS.  The top speed for the 15 hours of transferring was 5MB/s, not even a quarter of what I would deem reasonable, and hardware I had 12 years ago quite happily chugged away at a quicker speed than this.

I’ve done the normal thing and taken everything possible out of the equation, tested via different PC, new/different cable, through a switch, over wireless (not that I was expecting higher speeds this way mind you), and chanted sweet nothings at it, but to no avail.  It seems that the manufacturer thought they’d add yet another shitty feature (to enhance the plethora of other teeth-nashing inadequacies), that being horrendous speed.  In fact, I can quite happily transfer over the gigabit network to other devices at 50MB/s, and the 802.11g wireless network at 3.5MB/s.

If I was to review this product, and say something nice about it, I’d say it would stand the test of time as a door stop, and wouldn’t look out of place next to the 1960′s Parasonik tube amplifier rip-off that your parents still have sitting in the garage, it really is that cool.

Icybox NAS drives, when the only thing you have to better use your time is transferring the contents of your 12 petabyte porno collection via 360KB floppy.

Subsequently I’m saving up the money for a better unit (with supporting research) as we speak.

* Link to Legal Documentation required, consult this document for further information (#1443253)

A Birthday, of Sorts?!

Tuesday, September 2nd, 2008

Not particularly exciting, but HD911 is now one year old!  From its humble beginnings, it’s tickled the worlds news sources on a daily basis, and been the source of much controversy from Boston to Baghdad…

Oh wait, that’s not true, or should I say ture.

However, now I’m left wondering exactly what to do with my lovechild, that which I’ve nurtured into adulthood, and has give me back so much.  I’ve said it before, and I’m pretty sure I’ll say it again, I’d like to get out “talking cod-shit to strangers”, and embark on a whole new level of world domination, and i have high plans for the next 12 months.

But do I disband HD911 and let it fall by the way side into the otherwise packed scum bucket that is the internet?  Or do I transition, from blog about nothing, to empire about something?

Wait and see… I know I am.

PHPness

Wednesday, August 13th, 2008

I know what you’re thinking, and that’s this post’s title seems odd, and out of place on HD911, a contemporary glance at the state of neo-napoleonic faecal art in 1930′s France.  Errr, somethign like that.

As I’ve said before, since leaving my previous position as a C#/ASP.NET minded monkey, I’ve been tooling, (or should I say battling), with the infamous choice of script kiddy and billion dollar social network empire, PHP.  It truly lives up to its meaning as the Palace of Hedonistic Pleasure, and continues to be an outstanding joy to work with, and you know i mean this in a completely non-sarcastic way.

That’s not to say its hard, it just seems to open the void between what is right and wrong a lot more than other languages I’ve worked with of late.  Think of it like riding a bike, there’s a right and wrong way to ride a bike, and once you learn, it’s usually smooth sailling.. You can either keep speed and move forward (right), or fall off (wrong).  PHP works in much the same way, but provides the stupid (me) with many many more ways to fall off.  And from what i’ve seen so far, it doesn’t take much to end up over the handlebars, face planting into a wall with the still-spinning front wheel grinding away at what little is left of your thigh, tummy or scrotum if one is that way inclined.

After an lengthy conversation discussing (bitching) how easy falling off the proverbial bike is, a colleague at work, said, “That’s the way it works, you take the good with the bad, it’s a state of PHP-ness.”

At which point I cracked up laughing, and forever more when I cringe at some of our code base, a smile will peel across my face.

p-h-p-ness  (pee-h-p-ness)
n.

1. The state of pure ecstacy when faced with the occasional horror of PHP madness.
2. Philosophy The ethical doctrine holding that positive good things can come out of what may otherwise seem as pleasant chewing glass.
3. Psychology The doctrine holding that behavior is motivated by the desire for pleasure and the avoidance of pain.