Archive for the 'Computers & Tech.' Category


Technical explorer 0

Today we bought a new network switch for work. It’s a managed switch and provides a few different ways you can configure it, including telnet, SSH and a web interface. It’s a Cisco/Linksys SRW2024, which is part of Cisco’s small business networking equipment offering.

I’m configuring it to have two VLANs; one for regular IP traffic and the other for our iSCSI network. I managed to lock myself out of the web interface by assigning all the ports to one of the two VLANs I’d created, and not leaving any ports attached to the default VLAN. This default VLAN had the management IP is attached to it.

Thankfully my new Acer Aspire X1800 desktop (which by the way, for $398 is a totally awesome Ubuntu desktop) has a COM port, so I connected up the serial cable and used screen to bring up a console connection:

screen /dev/ttyS0 38400

With this I could log in, then access the lcli command to give me a more meaningful console.

srw2024# configure
srw2024(config)# interface ethernet g24
srw2024(config-if)# switchport access vlan 1
srw2024(config-if)# exit
srw2024(config)# exit
srw2024# show vlan

Vlan       Name                   Ports                Type     Authorization
---- ----------------- --------------------------- ------------ -------------
 1           1                 g24,ch(1-8)            other       Required
 2         DATA               g(1-7,13-20)          permanent     Required
 3         ISCSI              g(9-12,21-23)         permanent     Required    

srw2024#

With that I had successfully removed the port from the ISCSI VLAN and replaced it into the default VLAN, making the web management console available.

I’ve never played around with Cisco gear before, but I suspect that this is similar to how IOS works.

I was happy that, even without any IOS experience, I was able to dig about inside the switch and get it back to being usable again. Now to try and attach g24 to multiple VLANs.

Using bwm-ng to monitor disk usage 0

If you’ve used UNIX-based systems for any length of time, there’s a good chance that you’ve come across bwm, or the next-generation version, bwm-ng. It shows real-time data flow across your various network interfaces:

  bwm-ng v0.6 (delay 0.500s); press 'ctrl-c' to end this
 /proc/net/dev
 |         iface                    Rx                   Tx               Total
 ==============================================================================
              lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
            eth0:         707.88 KB/s          707.88 KB/s          707.88 KB/s
 ------------------------------------------------------------------------------
           total:         707.88 KB/s          707.88 KB/s          707.88 KB/s

I was wondering if there was a similar tool to monitor the flow of data across disks, and asked the mighty Google as such. Through the results I gathered that in bwm-ng v0.6 the tool gained this feature. I checked my local copy of bwm-ng, and sure enough it was v0.6, so I had this functionality I just needed to specify the input as disk (all disks visible to the system, including RAM disks) or libstatdisk (just the physical hard disks - much more meaningful):

mlambie@falcon:~$ bwm-ng -i libstatdisk

Results in:

 bwm-ng v0.6 (delay 0.500s); press 'ctrl-c' to end this
 libstatdisk
 \         iface                    Rx                   Tx               Total
 ==============================================================================
             sda:       11624.00 KB/s        11624.00 KB/s        11624.00 KB/s
             sdb:           0.00 KB/s            0.00 KB/s            0.00 KB/s
 ------------------------------------------------------------------------------
           total:       11624.00 KB/s        11624.00 KB/s        11624.00 KB/s

Field testing the iPhone 3G 1

I have an iPhone 3G, and lately I’ve been saying that it’s the best gadget I’ve ever owned, and the worst phone I’ve ever owned. There’s been two main reasons why, one of which Tony helped fix a few days ago. Allow me to tell you a story.

Firstly, ever since I installed the iPhone SDK (software development kit; the tools necessary to build applications for the iPhone) I started getting an error everytime I tried to sync the device. Tony pointed out that leaving tethering enabled caused issues, and disabling it on the iPhone has meant this probem went away. I think it was just a co-incidence that I’d installed the SDK, but it might not have been; it didn’t cause that error previously when tethering was enabled.

More importantly though, in the last few months I’ve had more dropped calls, failed calls and general frustrations with the iPhone than I’ve ever had with any phone, ever before. There’s a specific section of Berwick Street that, without fail, will disconnect any calls as I drive through it. My tech-mind put that down to the phone jumping from one cell tower to another, and that made sense. Then the calls started to fail anytime I’d attempt to make them. Then they’d start dropping with a “call failed” error when people called me. Not to mention that the mic stopped working for a while, and I’d have to switch to speaker mode to talk to anyone, though I think that’s more to do with crap getting in the headphone jack (which I use all the time in the car, for music and podcasts) and it thinking that an audio cable is attached.

As you can imagine, this is all quite frustrating, considering how important my phone is for work, let alone socially. There’s little relief in the knowledge that it’s fairly well accepted that 3G on the iPhone uhh 3G isn’t all it’s cracked up to me. The problem is, who’s to blame - the carrier (in this case Vodafone Australia), Apple, or Infineon, the 3G chipset manufacturer?

My short-term solution has been to disable the 3G network, and stick to WIFI when I’m at home or in the office, and regular ol’ 1G (or is it 2G, or 2.5G, or 3.14G?) when I’m making calls. That works kinda OK, but it’s annoying having to go into the settings to enable 3G anytime I check Twitter at a cafe, for example. I know, it’s such a first-world-problem, isn’t it?

Earlier this morning I found out that the iPhone supports a field test mode, which you can access by dialing:

*3001#12345#*<call>

Don’t forget that last star - I was missing it off and getting a “Error performing request No Network Service” message popping up.

There’s a whole raft of information that’s available here, but the only bit that interests me is the signal strength indicator that appears in the top left corner, where the “bars” normally are. This turns into a negative integer, where the higher the number (closer to zero) the better the signal. For the mathematically-challenged, this means -60 is better than -80. According to TestFreaks (when they tested the Cell Ranger Port, an interesting signal amplifier):

Signal Range Result
-80 to -70 dBm Reasonably strong signal
-107 to -90 dBm Weak signal
-113 dBm No servicable signal

For me, sitting at my desk in West Perth I get -81, which shows up as 5 bars. To be fair, the downstairs office is three walls of concrete, with three storeys of concrete above above, and a wrought iron clad window. It’s pretty much impervious to radio frequency signals. If I cover the antenna area (which is at the base of the handset, incidentally right where people tend to hold their phone) then the signal drops to -95, which is a significant change. I figured I’d check out the reception on Wellington Street, where to my surprise I get a solid -57.

OK… now we’re getting somewhere.

Further investigation also revealed an CNet article which suggests that you can boost the signal by attaching a piece of sticky-tape to the backside your SIM - it’s got something to do with the SIM making firmer contact with the phone. They also recommend using an eraser to remove any oxidation that might have ended up on the SIM. It’s all about the contacts, baby!

And then it hit me - a few weeks ago my phone reported that it had no SIM! I rebooted the phone and it worked fine, so I had just dismissed it as the phone being silly. Maybe there was a connection issue that was causing problems?

I dug out some scotch tape and found a paperclip on Hale’s desk, and went to work. I stuck two pieces of tape to the back of the SIM, just to be sure. I cleaned off the oxidation with an eraser. This changed resulted in -81 inside, -51 on Wellington Street, so no change inside, but a jump of 6 points outside. That’s not bad, but might just be a regular fluctuation.

As a last test, I checked the inside strength again. I saw the inside value change from -73 (momentarily) to -79, and then hover around -75. Then back up to -81.

The end result: I’m not sure that the hackery did much, in fact I don’t think it changed anything to be honest. I think what’s more likely is that Vodafone are being a little generous with their “convert signal reading to bars” function, and should be showing me less bars when I have a poorer signal.

Either way, I’m now armed with a snugly-seated-deoxidised SIM, and the tools to measure signal strength next time I get a drop out. I’ll keep you updated.

Broken MacBook Pro keyboard 4

A few days ago Magdalena and Doug were messing about and Doug caused Mags to laugh really hard, when she had a mouthful of water, when she was using her laptop. As such, she now has a semi-functioning keyboard where some letters, like “S”, “E” and “X”, just don’t work. Or maybe she’s worn those ones out independent of the spill.

Her MacBook Pro is a hand-me-down. I didn’t need two, so when we replaced our units at work last year, Mags got my old one. It’s about three and a half years old, which makes it six months since the extended Apple Care expired. On top of that, I doubt Apple Care covers liquid damage to the keyboard.

The good news is that the rest of the computer seems to be working fine, so a new keyboard should do the trick. I had a look around, and whilst it’s not easy, there’s definitely resources online that provide instructions on how to remove and replace the MacBook Pro’s keyboard. I reckon it’s a task I can undertake.

Mac keyboard hackIn the mean time, I’ve bought a wireless keyboard that Magdalena can use. Coincidently, it sits over the inbuilt (broken) keyboard almost perfectly, so it’s a great short-term replacement, as indicated by the thumbs-up in the photo.

The wireless keyboard won’t be useless after I repair her laptop. Tony’s been using one of the pairing keyboards recently and seems to like it, so I’ll bring it into the office when we’re finished with it.

Initially I had some problems with the Bluetooth keyboard not pairing with her machine, and I couldn’t install the system patch because it required Magdalena’s password, and one of letters that’s broken is used in her password. Talk about a vicious circle! Anyway, the patch was for Mac OS X’s Java install, so I didn’t think it would make any difference. I plugged in a standard USB keyboard and used that to get the patch installed, and when her Mac rebooted it was playing nicely with the Bluetooth keyboard. Maybe another coincidence, or maybe the patch was mostly an update to Java, but had other things, or maybe it just “reset” some bit on a chip somewhere. Either way, it’s all good now, and we have a replacement keyboard being shipped on Monday. It looks like I’ll be doing some laptop surgery in a week or so.

Maybe Emma or Chanel can lend me their scrubs and a face mask.

What did I do today? 0

As any programmer will tell you, when you hit “the zone” it can be hard to track exactly what it is that you’re achieving. It’s not uncommon to sit down for a six hour session and at the end of it have a poor memory of what you were doing at the beginning.

This is a real problem if you make a living off charging for your time, as the natural result (for honest people) is to under charge by under accounting for your time.

Using source control can be a good initial reminder, so long as your commits are meaningful and descriptive. I use the following command to give me a basic idea about what I’ve done today (since midnight):

It results in output similar to this:

e6de125 Added progress controller and basic views
bce08e1 Added stylesheets including 960 grid layout
b034acc Implemented initial 960 grid layout
2576762 Added AASM gem dependency

Next Page »