Blog

  • Telnet to Serial Script for the Mac, Now Complete

    In my previous blog entry, I found a tool MultiCom that proxies my serial to a TCP socket, but it was lacking the ability to set my telnet client into character mode and wasn’t working with Cisco devices.

    I later found out this was because Telent sends CR + NULL everytime you hit ENTER, so this happens:

    Username: (type username) CR
    Password: NULL (type password)

    I couldn’t log in! I am curious why other devices ignored the NULL while Cisco choose to process it. Not as if NULL would be used as part of a password.

    So, I got my script to work. Theoretically this script should work on any UNIX system and on any type of FIFO, but I’ve only had time to test it on the Mac and a serial cable.

    Download the script here. Rename it to script.py and then chmod 755 script.py.

    (more…)

  • Finally, a Real Serial Console for the Mac

    I’ve been searching high and low. ZTerm is extinct, screen kinda sucks with scrolling. So what do I have left?

    I attempted to write a script in Python to turn the serial port into a local socket so I could use Telnet but I couldn’t seem to get past opening the serial port.

    After some searching, I found MultiCom. It does exactly what I wanted – turns my serial port into a local socket. Works prefect!

    Anyway, if you have time, help me with this script. It’s fairly simple and still incomplete, but I can’t get past fixing what blocks the open() calls to /dev/tty.PL2303-0000101D.

    Update: I managed to figure out why my script didn’t work; I should have used /dev/cu.* instead of /dev/tty.*. I also found that MultiCom doesn’t work with Cisco devices due to an odd Cisco behavior. Read this blog entry for more info.

    (more…)

  • What a Mac is to a Dell

    A Mac is to a Dell as is a Continental car is to a Japanese car.

    The former would cost more to purchase, require premium grade parts, and eventually fail sooner than others. Parts are more difficult to find and will cost more to repair. Repairs can only be done at specific service centers. DIY repairs can be difficult. Owners love to flaunt it will almost certainly pay a premium to keep it in good physical shape. Certainly something of such a premium feels good when used, but there’s lots of hidden costs.

    The latter? Costs less to purchase, doesn’t require premium grade parts, lasts longer. Parts are easy to find and costs less to repair. Repairs can be done almost everywhere. DIY repairs are usually easier. Owners use it as a day-to-day tool; they may or may not spend some money to keep it in good shape. Sometimes it lacks the touch, but what the heck, it works.

    It’s a matter of affordability isn’t it? 😉

    I’m sick and tired of the crap Apple’s giving me.

  • MacBook 60W Adapter Cable Melted, Fire Hazard

    This isn’t the first Mac I’ve owned. Although the iPhone is probably the best phone out there, Mac computers are crap. I found an old blog entry that I wrote when both mine and wifey’s iBook G3 failed at the same time. I also had an extremely hard time replacing the slow 4,200 rpm hard drive in my old iBook. To date, the new MacBooks are still running 5,400 rpm drives. Give me a break, Dell’s already selling laptops with 7,200 rpm drives.

    After making three trips to the Apple Service Center at AMK for motherboard, display and power adapter failures, I sold my problematic iBook. Wifey wasn’t so lucky and her iBook failed on her before she could sell it so  we sold the parts – AirPort card, power adapter, battery, etc. for money instead. The unsold remains are still in my room.

    Wifey's iBook G3 meets the MacBook.
    Wifey's iBook G3 meets the MacBook.

    I’m using my (sis’s) MacBook now and the adapter has been acting up for the past few days. It would go on and off intermittently but with some wriggling of the wire near the power brick, the problem goes away. I knew the wires were fraying, but there’s nothing I could do about it. Apple didn’t design their things to be user-serviceable, otherwise I would have taken it apart and soldered the wire. Apple needs to go green with their service program!

    (more…)

  • Hamsters, Day 21!

    We wanted to wait a bit more before giving them names from the musical scale (as there were seven of them), but unfortunately on the morning of 11 Sep 2009, I found one of them dead. I just got out of bed and was counting noses… 1, 2, 3, 4, 5, 6… and… 1 head! Yes, I saw a head with no body. 🙁

    The poor hammy was probably bitten to death by the mother and then later cannibalized by the rest. We buried it under a tree at my block.

    After the incident, we separated the hammies from their mother. They are all getting cuter and furrier as the days pass. We’re also finally able to tell their genders this week.

    Look at how they sleep!
    Look at how they sleep!

    (more…)

  • Science of Motivation. A must watch!

    Please watch this very interesting speech. It’s what we’ve always hoped the bosses knew.