Lazy Hacker Babble

Just some random babblings from a lazy hacker…

Archive for the 'Gadgets' Category


iPhone

Posted by hsin on 17th March 2008

This past week, I got myself an iPhone since my wife had to switch to AT&T and it was cheaper to move the same carrier then paying two separate bills. I didn’t have a strong desire to get an iPhone, but if I was to get a new phone I wanted one that was new for me to play with. My initial impressions of the iPhone is pretty good although depending on your perspective then it is either an expensive mp3 player or expensive mobile phone. It’s whether the combined functionalities justifies the price.

Having access to the internet anytime with a fully functioning web browser is no doubt… awesome. This was my #2 reason for liking the iPhone. This worked pretty well right out of the box and I had no problem connecting through the phone or getting it set up to access my home WIFI. The only thing missing is the ability to play songs from internet radio stations especially given that this is a combined music/video/phone device.

As a proud Dad, I naturally have the urge to show off pictures of my son, but I resisted the “carry 100 pictures in my wallet” stereotype. Well, with the iPhone I can be the modern day equivalent of it and literally carry thousands of pictures to show from the phone (don’t worry, I’m not carrying that many). The image quality looks good on the iPhone screen, but since I was managing my photos in Picassa, I had to create an album for the iPhone then export that album to a directory that I tell iTunes to sync. I have to do this each time I want to add a new picture. It’s a workable solution but not a great one.

Using VLC, I was able to convert my divx/xvid video to mp4 which I can copied to the iPhone and watch while I travel. The video quality and sound was excellent. I wish I could this as easily on the DS.

As an PDA device, the iPhone comes a little short and is more an phone then a Blackberry competitor at this point. Managing contacts could be easier in my opinion and the default list of apps is what you expect on a phone (calendar, clock, notepad).

As a phone, the quality is good, but the lack of a speed dial function sets it back to the stone age in that area.

As a music player, having to buy an adapter before being able to use regular headphones is plain silly.

The iPhone looks beautiful coming out of the box, but the shining silver band around the display is scratched easily even if the glass is more difficult to get scratched. It doesn’t matter though because when the border gets scratched the whole aesthetics of the device is compromized I’m talking about it being scratched by lint, folks! I had the device in my pocket (nothing else there, no coins, keys, pieces of paper, etc) for 10 minutes and it still got some scratches. I had to buy an iPhone condom to protect it from further scratches and to hide it.

Overall, it’s a good multi-function device but it’s not a PDA with a phone. It’s a phone with more advanced PDA functionality then typical phones. Or it’s a mobile media device with a phone and PDA functionality. If the iTouch had a camera, I’d probably have gone with it since my wife would already have the internet covered on her phone. The iPhone is a very good first generation device and has a lot of potential to be more in the future. I hope that future won’t be dominated by just Apple but that other companies will learn from the success of the iPhone as to what people are looking for and more.

Posted in Gadgets, OSX | 1 Comment »

Feelings on the Macbook and OSX

Posted by hsin on 26th January 2008

I’m getting more used to using OSX/Macbook although a few things still nags at me. I’m still more used to having the application’s menu within the frame of the application instead of at the top of the OS (especially noticeable when I’m using a dual monitor setup), and I wish Apple would allow the screen to tilt back more, and why are they so unwilling to provide a docking station?!?

The keyboard is nice and comfortable, but a two button mouse is still preferable. Overall the system runs well, but I don’t feel it’s a speed demon. For those running Windows on OSX, 4 gig is recommended. Running with 2 gig is ok, but it’s like running Windows on 1 gig while also slowing down OSX.

I like Quicksilver and Geektools and I love the UNIX underlying. The support for external display kick the butts of my windows notebooks (especially ones by HP). The dimensions of the 15″ Macbook and the weight balance is excellent. The 17″ model is too big to travel around with and the Airbook just isn’t that compelling to me. Personally, I feel the 15″ is the sweet spot in Apple’s notebook line.

Posted in Gadgets, OSX | 1 Comment »

I don’t get the Apple Nation…

Posted by hsin on 20th January 2008

Truth be told, I never paid too much attention to the Apple Nation. Sure, I kept up-to-date on many of the products they release, but not because they were from Apple. It was more that I wanted to see what’s the latest mp3 player and the iPod is one of the top choices, etc. This is just to say that I never paid much attention to Macworld other then read a news article here and there after the fact.

Since I got the Macbook Pro, I’ve been finding out a little more about Apple stuff mainly because I’ve been looking for software and utilities and since you can’t go to any Apple-related site without hearing about Macworld, I actually paid some attention to Steve Jobs’ announcements. This year there doesn’t seem to be much revolutionary new products coming from Apple as compared to last year when they announced the iPhone. At the same time, though, the Apple fanbois made everything sound like Apple has just invented fire.

Macbook Air? It’s a pretty neat product and while it might be something new in the Mac universe, sub-notebooks are hardly a new thing here in the rest of the world. Almost as soon as it was announced, Gizmodo did a comparison of Apple’s sub-notebook with 5 other sub-notebooks. At most in the sub-notebook category, it has some evolutionary refinements, but the Apple Nation was cheering as if they’ve never seen a light portable notebook before…

Posted in Gadgets, OSX | 3 Comments »

Customizing my work environment.

Posted by hsin on 14th January 2008

I’m continuing to get more familiar with working with a Macbook Pro and am starting to customize it to suit my working style. The first thing was to get some parity with what I was used to in Windows. At work, I have two machines (Macbook Pro notebook and a Linux workstation) and two monitors (24″ LCD and 17″ LCD). I previously had a Windows notebook instead of the Macbook and had configured my system to be a three monitor system. The Windows notebook was on the far left and connected into a docking station. I used the notebook’s LCD for Thunderbird, IM buddies, etc.

To the right of the notebook, I had the large monitor which is the extension of the Windows desktop and what I’m staring at most of the day (when I’m at my desk that is). Next to large monitor is the 17″ monitor that is connected to my Linux work station.

There is only a single keyboard and mouse, and both are connected to the Linux workstation. By running a VNC Server on the Windows machine and a program call x2vnc on the Linux machine, I can move the mouse/keyboard cursor across all three monitors as if they were one and even copy-and-paste between UNIX-Windows apps. The only limitation is that Linux apps can’t be moved off the the 17″ screen and Windows apps can’t be on the 17″ screen, but effectively my one keyboard and mouse controls both computers.

Being so used to VNC, I tried to do the same thing with OSX. Imagine the above system except with the Macbook instead of the Windows notebook. At first I tried using Apple’s Remote Desktop which is suppose to be basically a VNC Server. The problem is that x2vnc or any other vnc client I tried could connect to OSX. I then downloaded a VNC Server for OSX, but that didn’t recognize the dual monitor display of the notebook+external monitor.

Fortunately, the solution was the open-source Synergy tool which does much of the same thing as x2vnc and has both a server and client for Linux and OSX. Basically, on the Linux workstation, I run the Synergy “server”. On the Macbook, I run the Synergy “client” and now I can do what exactly the same thing as before with one mouse and keyboard.

Installing Synergy was a snap. On Linux, use whatever your app management tool might be (i.e. “yum install synergy”) and on OSX use Macports (i.e. sudo port install synergy). The Synergy site has instruction on what the configuration file should be and then it’s just a matter of running the programs on each machine.

With my physical environment ready, I started to tackle trying to get a good ToDo app for OSX. For me, a todo utility must be easy to access. I’m too lazy to have to move my hands from the keyboard to the mouse. ^^; I also want the data to be presented simply and non-obtrusively. It’s surprisingly hard to find this combo. Even on Windows, I didn’t have a great solution: I used Google Desktop’s todo widget which required that I use the mouse to select the widget before I can type into it, but the look was simple and basic.

I tried a few Mac Todo lists and was going to go with DoIt since it had Quicksilver integration that allowed me to write items to the list with keyboard strokes… almost. The problem was that DoIt also requires you select a category from a drop down list before it adds the todo item, and for the life of me I couldn’t figure out how to select the category without using the mouse.

I finally came across a mixed low-tech/high-tech solution. Quicksilver has an action called “Append to text file”. Using a simple text file (i.e. todo.txt), I created a trigger and keyboard shortcut that when hit, let’s me type a todo item that gets appended directly into the text file. To see my changes, I used a very neat little app called Geektool that display a transparent window containing the text output of anything log file, script output or image.

Todo List

One limitation of this setup was that I used Geektool’s file type to handle the display of the todo file. This only works when the file is appended to at the end like typical log files. This means that if you edit the file with another application, the change doesn’t show up. The solution is to not use “file” but use a Geektool “command” with a refresh timer. By using the command, “curl ” every 30 seconds, it’ll regularly update the window with whatever is in the text file. Not as good as detecting a change automatically, but works well.

Posted in Gadgets, OSX, Programming, Software | 2 Comments »

OSX Networking

Posted by hsin on 3rd January 2008

Setting up wireless connection was surprisingly easy and I was able to get it up in minutes, so points there for Apple. I connected the machine through the built-in ethernet at work and the performance was dog slow! I saw packet loss of about 70 percent so definite negative points. Initially I thought that there might have problem with the ethernet hardware but then I read online that Macbook Pros have problem if they are on a LAN that has 802.1q/vLAN. The problem is discussed here.

I hook the notebook on another network and it performed fine so it seems like I got bit by this same bug. I’m surprised that Apple still haven’t fixed it, but I suspect this mainly effect corporate users which might still not be a big customer base for Apple to pay attention to.

Posted in Gadgets, OSX | No Comments »

Dev environment on OSX Tiger

Posted by hsin on 2nd January 2008

I feel like I’m behind at work recently so I didn’t want to start the new year at the office spending time configuring the new notebook. The baby was nice to me tonight and went to bed early so it allowed me to have the chance to get my development environment on the new Macbook Pro with OSX Tiger configured. Thanks to M in Ohio who saved me hours of time by pointing me to the right solution.

The nice thing about the OSX is that it is build on top of UNIX which is a developer’s OS. You’ll find that most open source tools are available and if not then getting it compiled from source is usually possible. I used compile everything from source including the kernel, but now that I am a lazy old man, I tend to prefer using some sort of package management solution that has the dependencies resolved. For Linux, I like the yum package management tool that sits on top of RPM. It beats the hell out of downloading the source and figuring out all the dependencies.

M pointed me to MacPorts as a similar repository/package management solution for OSX open source packages. It’s really easy to use. Simply download the install package from the site, run it and you’re ready to go. I did ran into one bug where it didn’t create a .profile file for me so the path to “port” couldn’t be found. I’m not sure why, but a quick look on the site and I knew which directories to add to my $PATH variable.

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

Don’t forget to “source ~/.profile” to pick up the change.

With MacPorts installed, it was only a matter of grabbing the programs I needed for a web development environment: Apache2, MySQL, PostgreSQL, PHP5.

Installing Apache2:

  • sudo port install apache2
  • copy /opt/local/apache2/conf/httpd.conf.sample to /opt/local/apache2/conf/httpd.conf
  • sudo /opt/local/apache2/bin/apachectl start
  • point your browser to http://localhost to see that everything is running.

Installing MySQL and PostgreSQL:

  • sudo port install mysql5 +server
    (at the end of the install, it tells you the command you should run to initialize the mysql db)

  • sudo port install postgresql82 +server

Installing PHP5 with support for MySQL, PostgreSQL:

  • sudo /opt/local/apache2/bin/apachectl stop
  • sudo port install php5 +apache2 +mysql5 +postgresql +sqlite +pear
  • sudo cp /opt/local/etc/php.ini-dist /opt/local/etc/php.ini
  • sudo vi /opt/local/apache2/conf/httpd.conf
    • add “Include conf/extras-conf/*.conf” to /opt/local/apache2/conf/httpd.conf
  • sudo /opt/local/apache2/bin/apachectl start

Installing Eclipse IDE:

  • Download the IDE from Eclipse.
  • unarchive it to whichever location you want to run it from (I put it in /Applications/eclipse).

With that, the an Unix development environment capable of doing web development with PHP, MySQL and/or PostgreSQL as well as Java/C/C++ development is all ready!

For a little more detail about the set up process, I stumbled on this nice post.

Posted in Gadgets, OSX, Programming, Software | No Comments »

Using OSX… a few days later.

Posted by hsin on 1st January 2008

I’ve now had a few more days to use the MacBook and OSX 10.4. The first day was mostly getting familiar with the environment and it wasn’t until the second day that I started to migrate data from my Windows XP notebook.

The migration turned out to be simpler then I expected. Part of the reason is that I tend to use open source applications which are often developed for multi-platforms so the data transfers easily.

For example, you can copy Thunderbird mail, settings and extensions directly from the Windows location (C:\Documents and Settings\\Application Data\Thunderbird\Profiles\) to it’s OSX equivalent (~/Library/Thunderbird/Profiles/. The same can be said for Firefox.

Users of GAIM/Pidgin will most likely use Adium on OSX and since they share the same foundation, their IM archive share the same structure so just copy the “logs” directory over.

I then copied over “My Documents” to “~/Documents” where by default it is recognized by Parallel’s XP instance.

All-in-all, getting everything over to the Mac has been pretty easy. I’ve found most of the apps I needed to have an OSX versions although I’ve still not found a good note taking program like Evernote (I’ll give Yojimbo a try). I’m also still trying to understand how to configure the system to give me some of what I’m used to in Windows (such as displaying image thumbnails for graphic files).

Some annoyances with OSX include the sensitivity of the track pad. I tend to use my right hand fingers to move the pointer around, but my left hand stays near the keyboard. The track pad often senses my left hand and gets confused.

The keyboard on the Macbook Pro is pretty good, but I’m more used to where the CTRL (in the case of Macs, the Apple key) so there is some finger gymnastic action. The lack of a second mouse button is also annoying to a Windows/Linux user spoiled by the convenience of it. I’ve always wondered if Apple is just too proud to admit someone else could come up with good interface ideas and that’s why they’ve stuck with the one button mouse.

The biggest annoyance is the screen and font! OSX’s font rendering especially its anti-alias/font smoothing is plain fuzzy to my eyes and the Macbook screen makes it worst when you’re not looking at it from a specific angle. This is a controversial topic as can be seen here and here, so I talk about it much here. A lot of it is personal preference, of course, but I’ve always had a hard time with the softness around some of the anti-alias text. I wish they just soften curves instead of everything. I don’t understand why a solid dash line isn’t just a solid black, for example.

I figured what I can do is just turn off anti-aliasing (Apple calls it font smoothing) or select a different system font. Then I found out that Apple seems to be to headed down the road of less user customization by restricting what fonts the system uses, etc. I read it was to make sure that users don’t confuse the brand by customizing the UI to not look like OSX… I’m not sure if that is true, but I was surprised by the lack of customization available to the user.

My eventual solution was to download a small app called TinkerTool which exposes many of the hidden settings available but not exposed by Apple in the preferences tool. I was able to tell OSX to not use font smoothing for text greater then 12pt, to change the default fonts (not all parts of OSX respects this setting nor do all OSX apps, but so far it’s been ok), and to use the Tahoma font instead of the default OSX font.

So now that I got my data over, my most essential apps installed, and the UI is not giving a headache to look at , it’s on to the fun part of customizing the environment to suit my working habits!

Posted in Firefox, Gadgets, OSX, Software | No Comments »

Feeling the power of the Dark Side of the Force

Posted by hsin on 29th December 2007

At this point, I’m not sure who is actually the dark empire: Microsoft or Apple. Neither seems to be in the role of the “Rebel Forces” and neither seems to be as vast of an empire to warrant being called the Empire. I’d give the Rebels designation to the Linux camp.

Anyway, I’ve never been an Apple fan boy and I didn’t like how proprietary their hardware used to be. Despite how their UI was touted from the get-go, I’ve always thought all the ones pre-OSX were pretty crappy in how they “dumbed down” the interface for the users. It wasn’t until OSX was released that I even had a vague interest in a Mac and that interest was the result of Apple switching to a FreeBSD kernel as the underlying OS. To have a full UNIX system with all the tools AND a nice UI is nothing to sneeze at. Still, it wasn’t enough to get me to want a Mac.

When Apple announced that they were going to switch to an Intel processor, that’s when I started to take greater notice. Sure enough, not long afterwards, the ability to run Windows on Mac hardware became reality. Having the ability to run Windows on top of OSX with a UNIX base is the best of all three worlds and made the Mac an compelling development environment. To have this all on a notebook… well, that’s enough to turn the heads of even the toughest critics of Apple.

So, was this enough to get me to give up my familiar tool set that I’ve accumulated over the years on Linux and Windows and to learn a new environment? Not really. The cost of switching is still too high for me from both hardware and software perspectives. However, if work gives me the opportunity to work with this platform then I have no objects.

Yep, you guessed it. I got a Macbook Pro from work which I’m now working to get my data transfered over from my Windows notebook. I’m learning the “Mac” way which is different experience from either Windows or Linux. We’ll see how it goes.

Posted in Gadgets, OSX | No Comments »

Apple fanboys rejoice, Apple supporters groans.

Posted by hsin on 7th September 2007

In response to the cryings of many Apple early adopters of the iPhone after Apple lowered the price by $200, Apple decided to issue a $100 credit to those folks. The folks who were complaining that it was too soon to drop the price should continue to complain although I suspect they won’t. I guess that means it’s ok to drop the price by $100 after 2 months but not by $200.

Those who cried that Apple was punishing their most loyal users who waited in line to buy the iPhone at launch and would be pacified by this credit obviously are not really loyal Apple users. By demanding to be compensated, they are effectively trying to weaken the company by taking away revenue. Hard to break it to you folks, but companies need revenue and profit to survive. The argument that these folks are true supporters of Apple just doesn’t fly.

Posted in Gadgets | 1 Comment »

iPhone for $399

Posted by hsin on 5th September 2007

Apple announced a $200 price cut on the iPhone just two months after its release and it has set off a firestorm of indignant comments by Apple fan boys (uh, I mean early adopters) of how they got screwed by Apple and they should sue the company for lowering the price. All this for a product that as far as I can tell anyone can get if they go to the Apple store since it’s far from selling out.

I don’t think I need to say much on how silly their arguments are although I can also sympathize to a certain extent especially for those who might have have bought it only a couple of weeks ago because they needed a new phone. However, the one argument that just seems so ridiculous is the one that says, “I’m ok with the price cuts if it happens 6 months after launch rather then two.” How does 6 months, or 5 months, 3 months or 2 months matter? What changed during those extra 4 months?

I wonder if any of the complainers will be home buyers ’cause they’re going to suffer from a serious case of buyer’s remorse.

Posted in Gadgets | 1 Comment »