i don't
quite know

.com

Macs, Movies, Games, Books, etc. The Rants of a Mad Man.

Archives Posts

My first Cocoa adventure: The Huawei E169 Monitor

December 20th, 2009 by Raj

E169Monitor

Having moved in to a new place a few months ago I was once again greeted with the issue of not having an internet connection until the powers that be connected the relevant wires and flicked their respective switches. This; an all far too familiar occurrence I’ve had dealt with in a timely fashion in times gone by (it helped when you worked for a telco) would this time blow out to well over a month to which point relying on my iPhone would not cut it. Coming to my rescue a good friend (thank you Gavlar) bestowed upon me a USB wireless internet dongle that would suffice my addiction until normality was restored with some ADSL.

Armed with an Optus flashed Huawei E169 I was quick to find that at the time there was no software around that was compatible with the relevantly new Mac OS X – Snow Leopard (10.6.x). The solution was to set up the device as you would any other modem and install some lovely modem scripts and what not from Huawei’s website, this got you online but I then found my next problem, reception! It seemed that the Optus network had a little difficulty in particular areas of my CBD apartment and not having an real software to report things like signal strength and data network I spent a good amount of time walking around my place laptop in hands “guessing” that the reception was actually best 1m to the left of my kitchen stove at ground level laying on the floor.

As you can imagine I quickly got sick of that game and thusly decided I’d take a look at just how complicated it was to find out the signal strength was directly from the device. A few googles later and I’d opened a connection directly to the serial device through the terminal and was now actively seeing what I was after albeit in a rather nerdy fashion. Coincidently at the same time as this I was ploughing through Aaron Hillegass’ 3rd edition of “Cocoa Programming for Mac OS X” and thought to myself “Hey, why not create a program to scrape this nerdy jargon and present it visually.” and that’s exactly what I did.

So here you’ll find a little program I like to call the E169 Monitor, because that’s pretty much what it does, monitor your E169′s data connection reporting back on things like signal strength and network connection type (WCDMA, HSDPA, etc) as well as giving you a couple of buttons to connect and disconnect.

Credit where credit is due; a lot of the code in here would not have been possible had it not been for the wonderful AMSerialPort project that makes connecting and reading from serial (USB) connections so much easier than the standard Cocoa libraries and to make the whole connect/disconnect functionality work (and I’m still not sure I understand) I’ve borrowed heavily from the source of the now defunct CheetahWatch, a program which essentially did everything I’ve done and more back in the days of the E220 and OS X 10.4. I really wish this project was picked up again and nurtured because it is a really fantastic effort, if I actually owned one of these wireless cards I think I’d even try an revive it myself, even with my rather fledgling cocoa skills.

Rambling and thanks aside a link to my Xcode project is available here & below. Do with it as you will but please be aware that I’m offering no support, this is all just a learning experience for me that I thought others may find useful. I’ve only tested this code on my own machine, an Intel based MBP running 10.6.2. I hope you can get some use out of it, I had fun doing it and throwing back to the days I used to have to manually enter AT commands to dial the local BBS.

Download my E169 Monitor Xcode Project files. (3.1MB)

Useful Resources: AMSerialPort Project, CheetahWatch application

Tags: , , , , , , , , , , , , , ,
Filed under Mac having 1 Comment »

Archives Posts

Review: DigiFi Opera S5 Wireless In-Ear Headphones

December 3rd, 2009 by Raj

Opera Mini S5 In-ear Headphones

You’ve got to love a good headphone’s review don’t you? I’m sure that you and all your friends are in that boat, which means that you’re going to absolutely love my latest review for the MacTalk folk. This round sees me tackle the latest and greatest in wireless audio for your iPod in the form of the “DigiFi Opera S5 Wireless In-Ear Headphones“. Boy that’s a mouthful.

So what are you doing hanging around here still? Go get your audiophile nerd on…

Article Link: http://www.mactalk.com.au/2009/12/03/review-digifi-opera-s5-wireless-in-ear-headphones/

Tags: , , , , , , , , ,
Filed under Reviews having No Comments »

Archives Posts

A Hard Drive & A Time Machine

July 7th, 2009 by Raj

timemachineUnfortunately it’s been a while since I’ve had a chance to do anything particularly nerdy let alone blog about it, thankfully for my adorning masses I’ve chosen to make my “back-in-the-saddle” return with a jump straight in to the deep end. That and quietly going for the record of how many cliche metaphors one can use in the same sentence.

You see just this week gone by I found myself in the unusual position of nerd boredom. I hadn’t done anything really “hands-dirty-nerdy” and my little girly hands were an itch with possibilities. The new Apple Macbook Pro’s had just been released for starters and it took all my will power to not just dash out and buy one for example but I was blessed (or smote) by the good lords of geek with the ghastly sound of a hard drive platter scraping from inside my Macbook Pro’s Aluminium enclosure. Again, scrounging every last fiber of restraint to not run out and buy a new laptop I decided to take the high road and upgrade the hard drive and keep my existing rig, both satisfying my need for nerd and keeping my costs at a 20th of the cost.

Normally, had I opted to purchase a new machine, I start from scratch, reinstalling everything, copying over Mail Libraries, Photos, etc manually and giving myself a fresh start, but as I was only giving the old girl a new ticker I thought I’d do a straight copy restoring my file hierarchy to its full glory via the use of my Time Machine backups. A trick of the Mac trade I’ve yet to make use of.

The hard drive install was as straight forward as can be, a few screws here a torque screwdriver there and Bob’s your Grandfather’s Nephew she was humming to the new tune of a 500GB 7200rpm drive. The next and what i’d also envisaged to be the more lengthy portion of the process of the restoration process then began.

Mac OS X install DVD whirring away in the drive, we arrived at the “Migration Assistant” portion of the install offering the option of “Restoring from a Time Machine backup”. Excellent, that’s exactly what I’d like to do thanks. A click or two later I had a screen asking me what user accounts and applications I’d like to restore, selecting them all and clicking Next I began the two hour wait for the copying process to complete. One movie length break later I returned to see that the progress bar and status text had indeed indicated that everything was all tikity-boo but I was unable to continue on to the next step. I thought I’d just let it whir away for a while, sometimes these progress bars are less than accurate (at a stretch) and I figured it’d all be over soon enough. Two episodes of Deadwood later and there was still no movement to which I threw it in and restarted the `puter myself. Everything booted up fine, even had my user account there for me to log in to but that was about the end of the good news. A Dock riddled with question marks and no mail to be found it looked like the only things that had actually been copied successfully was my Network System Preferences, connecting to my Wi-Fi as soon as it logged in. Balls.

By this time it was about 10pm and I couldn’t be ferked sitting there doing a manual copy so I thought, “You know what Time Machine/Migration Assistant Restore Process, I’m going to give you one more crack of the whip. Balls this up again and the engagement is off!!” So after reformatting and going through the OS X install process again to begin the restoration it was about midnight and I left it all to whizz away as I dreamt of ponies and unicorns battling to death in the Roman Colosseum; as you do.

Waking the next morn to find a beautiful dew adorning my bedroom windows there was a smell of success in the air. Perhaps it was the restoration had worked and I was about to be full of glee, yet again it could’ve been the new air freshener I’d purchased the day before permeating its aroma through out the house? Fortunately for my sanity and the now back on again wedding between myself and Apple technology it was the former and there before me stood the exact same desktop as a day before, same wallpaper, same icons, same file system, same launch items on login, had Time Machine fulfilled its end of the bargain to my wildest dreams?! It would appear so!

Everything appeared to be exactly where I’d left it prior to the transplant. Wrapped! No idea exactly how long it took to complete having let it go whilst asleep but we can safely say it was over two hours (120Gb of data to copy via USB2) and less than twelve (I slept in!) But really, who cares, IT’S ALIVE!!!

Now all of that was a few days ago… and while everything seemed perfect from the casual observers point of view, it would seem that deep down in the bowels of a file system that I roll with there have been a few “issues”, allow me to list them for you now…

  • Pretty much anything out of the normal “Mac” root folders gets missed. For instance my SVN repository in /svn hasn’t been backed up or restored.
  • Similarly all of the stupid OS X apache example files are back in /Library/WebServer/Documents and my /etc/httpd.conf file has been overwritten
  • Aperture wouldn’t launch, my photos were fine but I had to reinstall the application
  • I had to do OS X updates all over again from 10.5.2 (Which was on the discs that came with the Mac)
  • My Nortel/Apani VPN software had to be reinstalled and didn’t work at all to begin with

All in all, a very small price to pay, and not a lot of work to get things back to normal considering all of my preferences, my mail, calendars, contacts, images, movies, music, applications were back and working. So I guess the question is whether or not I’d use this method the next time or not. Well, yes I would, but if it was a new Mac I was about to obtain I’d most likely stick to my tried and true method of a fresh install & manual copy. Why? Well, I come from an old school and tend to “clutter” a machine over time, an issue your average ham sandwich [person] is unlikely to have.

So go forth, propagate your Mac’s hard drive Guy Pearce style and feel safe about doing so, the process actually works.

Tags: , , , , , , , , , , , , , ,
Filed under Mac, Tech having 1 Comment »

Archives Posts

I review the Aeropad Mini over at MacTalk

January 16th, 2009 by Raj

Macsense Aeropad Mini

If wireless networking for legacy Macs is your thing, and I’m almost positive it is, then you might be interested in checking out a review of the Aeropad Mini from Macsense that I’ve written for MacTalk Australia.

The Aeropad Mini is a nifty little device that plugs into your computer’s ethernet port enabling it to connect to any 802.11b/g network without any software needed to be installed. It’s a great solution for Mac’s in particular because 90% of the wifi USB devices out there don’t work on a Mac (or need a lot of screwing around).

If this kind of thing floats your boat check it out here.

Tags: , , , , , , , ,
Filed under Mac, Reviews having 3 Comments »