Monday, March 31, 2008

Top of the (Fantasy Baseball) World


This may be the only day I lead all season.

Thursday, March 27, 2008

Spring Break Day 2

Day 2 started with a trip to Hobby Town USA. Then Fremont Central Park, Hooter's, Mountain View Shoreline Park, and finally, Palo Alto Junior Museum.

So excited flying a kite for the first time! Lesson learned: gotta fly at somewhere spacious (and windy, of course) We failed at Fremont Central Park but it was piece-of-cake at Shoreline.

Monday, March 24, 2008

Spring Break Day 1

It was a field trip day to SF: Caltrain, Muni, Rincon Center, Metreon, SFMOMA, and finally, SpecialTea.

Use DLink DI-704P as a hub

Now that I got my ethernet ports activated. The next step is, of course, to hook up all my desktops who have been on wireless for too long. To hook up 2 computers to 1 port, I need to repurpose my long unused DLink DI-704P router as a hub. I figured out the setup after a bit of Googling and trial-and-error:
For the WAN setting, I chose "Dynamic IP Address" (I don't think it really matters but I'm not sure)
For the LAN setting, I picked an IP address for the hub that is in the range of my router. Disable DHCP (since that's the job of my router)
You would think the cable from the wall plate should be inserted into the WAN port (i.e., "input") and this is the most important/non-trivial part: plug the cable into a regular/numbered ("output" if you will) port instead of the WAN port.
And you're all set.

Sunday, March 23, 2008

Put a RJ45 connector on a Cat 5 cable

Why did I have to do this? My house is pre-wired: each room has 1 or more RJ45 (ethernet) port wired directly to a central cabinet, where I put my router. However, the wire at the cabinet end has no connector (I guess the builder gives opportunities for others to make some money) Fortunately, my brother knows this very well and taught me how to do this. We bought our crimper from Home Depot for $20.

The first thing he did was unscrewing the wall plate to figure out how it is wired at the port. In our case, it's 568-B standard. Next, we look up the wiring diagram at Wikipedia All these colored wire are actually inside the jacket of the Cat 5 cable. So we use the crimper to "peel" off the tip of the cable. Un-twist the wires. Straighten and fan them out. Arrange them according to the diagram, pin 1 - 8 (left to right) Then insert those 8 wires into the RJ45 connector "upside down" and make sure each wire gets into its own "slot." Finally, insert the connector into the crimper and press real hard (make sure the wires won't come lose) For a better description with pictures, check out this web page.

Friday, February 29, 2008

komi for 9x9 and 13x13 games

I'm about to lose my first DGS game :( I thought I could blame it on the high komi used: 6.5 but it turns out to be a reasonable one according to the folks @ godiscussions.com I guess I just need to work harder!

Wednesday, January 23, 2008

Convert a VCD to CD

You might ask: can't you just listen instead of watching the video? Well, my car has CD player only and I listen to some of my CD converted from VCD in the car, thank to this guide. The key piece of software is VirtualDub and we make use of its Audio->Full Processing function. You could even choose the left or right channel, which is useful for Karaoke VCD. Why pay for 2 if you could convert 1 from another?

Monday, January 21, 2008

Watch video on mobile phone

I used a software called Fever link Super for converting video to the 3gp format to watch on my SE phone. Haven't used it for a long time since I have a small memory stick but I upgraded to a 4GB yesterday. I converted a RMVB video. Worked like a charm. Definitely deserved more love. Here is the latest version.

Sunday, January 20, 2008

TRENDnet TEW-424UB 3.0R USB Wifi Adapter working on Ubuntu

No, it's not deja vu. I got a PCI Wifi card working on my brother's PC last week. It's more complicated for my desktop since I use a USB adapter. The additional piece of the puzzle is Ndiswrapper. Just follow this guide on how to install Ndiswrapper using the Windows (XP) driver files (I copied it straight from the included CD)

The weird part is that I was not able to use iwconfig to enter the Wifi setting successfully so I use the GUI instead and it worked. (Not the first time but after a reboot)

Tuesday, January 15, 2008

RealPlayer on Ubuntu Gutsy

Another example of user-unfriendliness of Linux: Remember I called RealPlayer a success from my experience with Feisty? I followed the same steps on my brother's PC, on which we install straight from the Gutsy Live CD, but it didn't work. The installer complained libstdc++5 is missing. Sounds like this version was included in Feisty but not Gutsy. At that time we couldn't get it connected to the internet so apt-get was out of the equation. Fortunately we were able to download the .deb package from here on another machine.

Another alternative (probably a better one anyway) is to bypass RealPlayer completely and install the codec and MPlayer plugin instead. Of course that would be easier if one has internet connection.

USB Modem on Ubuntu

Linux is notorious for diffcult to get USB Modem to work for dialup networking. (Built-in Modem on most notebook are so called Winmodem. It's used to be difficult to get them to work as well but much progress has been made thanks to http://www.linmodems.org/)

After much research and a little bit of experimentation, I got a Dynex DX-M300 USB modem working on Xubuntu. This modem is relatively cheap and easy to find online. Here are my steps:

1) Download the HSF driver from Linuxant. Choose the link for Ubuntu.

2) Install using dpkg (i.e. Method B on this page)

3) Open a terminal and run wvdialconf

4) Edit /etc/wvdial.conf and change Phone/Password/Username for your ISP

5) Run wvdial. It will dial the number and make the PPP connection for you. After it connects successfully, it will show the local and remote IP as well as the primary/secondary DNS server IP. Keep the terminal open.

6) Now you could surf web!

Notes:
1) For some reason the modem doesn't work after I boot the machine with it plugged in. In that case only the power light come on. I had to disconnect and reconnect. Then the MR light will also come on and it will work.

2) The free version of the Linuxant driver has its max speed limited to 14.4kbps. If you want to go full speed at 56k, you could buy a license from them for $20. (I haven't tried it)

3) If your modem is plugged into USB and is detected properly, lsusb should show:
Bus 002 Device 002: ID 0572:1301 Conexant Systems (Rockwell), Inc.

Saturday, January 12, 2008

Wine problem on Gutsy

We got an error when we follow WineHQ's suggestion on installing Wine thru apt-get. Basically it complains about the dependency on libaudio2 but it is not installable.

Solution? Open Synaptic Package Manager and follow
sdibias's reply on this thread

Netgear WG311v2 PCI Wifi working on Ubuntu

We repurposed my brother's old PC to a Ubuntu Gutsy Gibbon-based Media Center. (It's free upgrade! What's not to like?) However, it is not for the faint hearted. Even though the current generation of Linux is much user friendlier than the past. You still couldn't expect everything just works out of the box. For example, we tried using just the GUI to config the Wifi adapter to connect to the AP without success. Finally we found this very useful guide. Basically, all that were required are:
1) run iwlist (see section 6.8) to find out details of your AP (most importantly, the MAC address)
2) run iwconfig (see section 3.3 for the specific options) The command must include:
- the "name" of the AP, i.e, the ESSID,
- the MAC address
- the "password" (if you use WEP. I haven't tried WPA)

My iwconfig command complains about the mode but it still works.

May your installation to be as smooth as ours.

Wednesday, October 31, 2007

MTP Device blues

If you read the sister blog BigMusicLand, you know I have been using subscription music service based on Microsoft's PlaysForSure for a while. And I have been a happy camper until 2 weeks ago: all of a sudden, both Windows Media Player and Yahoo Music Jukebox wouldn't recognize my Samsung Yepp player.

I figure there must be something wrong with the driver. So I thought: why don't I uninstall it from the Device manager, then plug my player in, let WinXP auto-detect and install the driver again?

Well, like most things on Windows, thing didn't go as planned. After uninstall the driver and plug my player in, Win XP said "Found new hardware" (MTP device) and trying to install driver. So I put in the original installation CD. Win XP seemed to try reading it for a while but eventually says "Cannot install this hardware"! I googled it and it seems to be a common problem plaging users of different brands (Creative, iRiver, Sandisk) of PlaysForSure players.

Anyway, I guess I'm one of the "lucky" users since I "fixed" it by updating my Windows Media Player (it went from version 10 to 11)

Tuesday, October 30, 2007

GeForce 6200 TV-Out problem fixed

I have been using a XFX GeForce 6200 card in my workstation for a while and was quite happy with it. Recently I've repurposed my workstation as a living room entertainment PC and this card had no problem supporting TV-Out to my ancient projection TV.

However, just like most gadgets of mine, good time doesn't last forever! This Sunday after I exit from playing a movie through Real Player full screen mode, the Windows XP Desktop all of a sudden "lost its edge" or you could think of it as overstretched and ran outside the "border of the screen" It's hard to describe but you get the idea. This sounds very minor but also very annoying. Suddenly I am not able to reach and select from the "File" menu or close windows using the "red cross" icon!

I know the solution will have something to do with adjusting the setting of the video card but I couldn't think of any suitable setting. Finally I get to the GeForce tab on the "Display" settings of control menu. I chose my first option, i.e. TV Output, and click the "Device Adjustment" button, which opens another Windows. Still, no setting seem appropriate. Anyway I tweak a little bit of this and that and then exit. Viola! I have "regained my edge"

I dunno how common this problem is but if you run into it, try my solution above.

Wednesday, October 10, 2007

Media laziness

I understand that it is common practice for media outlets to quote from other news agency. What irritates me is that analysis/opinions are supposed to be original yet I see them being mirrored among media all the time. Consider the following cases:
1) US Government wants to drive away illegal immigrants by sending warning letters to employers who hired workers with social security number (SSN) not matched in the government's database, i.e., the so-called "no match" letter. Lots of opinion pieces I read says such policy is unfair to workers. These articles usually include interviews of some "no match" employee and how much they are hurt but it was never mention whether they have valid SSNs or not. I'm no supporter of unfair practices to the working class or immigrants but it's only unfair if these employee are wrongfully accused. I am surprised most opinion pieces conveniently ignore this part.

2) IMO, sports talk show hosts have one of the best job in the world. Topics come by so easily. And better yet, you could simply repeat the same topics from shows broadcasted earlier in the day! I remember earlier in this NFL season (~ Week 3/4) every host talks about both the Patriots and the Colts were undefeated but the latter is so "under the radar." I don't know how a team could be under the radar if everybody is talking about them!

3) Earlier this year a Californian woman hitting 16 hole-in-one (golf) made the news. Every news article commented how amazing that was but no one bother to verify the fact, until Golf Digest did. It turned out no one had actually witness the balls going into the holes. None of those 16 occasions. Enuff said.

[Update: I came across this article about how blogs not only lazy in checking facts but also "adding" incorrect "twist" to the story along the way. That's even worse!]

Thursday, September 06, 2007

MySQL + PHP + UTF-8 = ????

The title is not a question. It actually describes a common problem: i.e., when UTF-8 characters stored in MySQL is queried through PHP
they displayed as question marks on the web page. The solution (courtesy of Shawn Olson) is call this before any of your database manipulation code:

mysql_query("SET NAMES 'utf8'");

BTW, I host my site and MySQL database at GoDaddy and it supports UTF-8 "out of the box" without any special config.

How to implement a hyperlink that "Save File As Target"

This is useful for linking to media file when you want your user to download the whole file before playing instead of opening the media player and "progressive download", i.e, buffer some and play right away before download is completed. Most modern browser and media player work well together in this regards and the former is an option from
right-mouse-click but I got a requirement to do this from left-mouse-click from my dad (No, right-mouse-click is not user-friendly enough according to my "customer")! So I found this solution in PHP.

Friday, August 24, 2007

Barry Bonds Day





This is a good year to be a baseball fan in San Francisco (even though the Giants have one of the worst season in recent history) First, we had the All-star game in July. Second, Barry Bonds hit his record breaking 756 HR here at AT&T park on Aug 7th. Today Mayor Gavin "Handsome" Newsom hosted a celebration honoring Barry's historic achievement and gave him the key to the city.

Thursday, August 23, 2007

Canon TWAIN Driver 6.7.0 for Windows 2000

I am trying to unload pictures from my TX1 to my Win2K PC. Win2K did not recognize it as a generic USB mass storage device (unlike XP or Ubuntu) so I had to look for a driver. I was not able to find it from Canon USA's website but I found it here. Not sure if I'm supposed to use it outside Asia but I'm Asian so I guess I qualified >:) (BTW, it asks what region I was in during installation and I picked US. No problem)