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)
Wednesday, October 31, 2007
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.
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!]
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.
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.
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)
Friday, August 03, 2007
Install emacs
I am an Emacser. There, I said it! It is not included as part of Ubuntu (but vi is! How unfair!) In order to try the latest and greatest version (22), I had to download and compile the source myself. The instruction in INSTALL works, only after I researched how to get rid of the various error (need to apt-get build-essential and libncurses5-dev.) Now I have it running in character mode! The journey to windows mode will continue...
Saturday, July 28, 2007
Create DVD on which videos are played sequentially
This is a followup to my previous post on DVD Authoring with tovid on Linux. One thing I really don't like is that after one video is played, it always jump back to the menu. My desired behavior is playing the next video instead unless it is the last one. (Here is one example: I create DVD for videos taken at classes. Each sub-menu on my DVD corresponds to a lesson and contains all videos from that lesson. )
To achieve the desired behavior, I have two choices:
1) group videos from a lesson together so that they will be played one after another but I lose the chapter markers.
2) edit the XML. Each of my video (the proper term is PGC) has a post-action, which is written as "call menu;" by tovid. I simply need to change them to "jump title X;" where X refers to the number of the next video.
To achieve the desired behavior, I have two choices:
1) group videos from a lesson together so that they will be played one after another but I lose the chapter markers.
2) edit the XML. Each of my video (the proper term is PGC) has a post-action, which is written as "call menu;" by tovid. I simply need to change them to "jump title X;" where X refers to the number of the next video.
Friday, July 27, 2007
My Ubuntu Experience: VCD/DVD Authoring
At first I thought about trying DeVeDe but I read that DeVeDe is incompatible with the MPlayer shipped with Ubuntu Feisty Fawn so I tried tovid instead.
I) Installation: follow the instructions from here.
II) Start the App: simply type tovidgui under any writable directory (e.g. your home)
[1. Layout]: you add videos here. The simplest VCD or DVD requires 1 menu and all videos could go under the menu. Name your source and destination files without spaces and underscores if you can.
[2. Encode]: just hit "Start encoding" and let it finish.
[3. Burn]: this is where I ran into trouble. If I simply hit "Start", both VCD and DVD failed.
VCD trouble: the cue and bin files were created successfully. However, when it tried burning them using cdrdao, nothing happened. I had to kill that process and repeat the cdrdao command in Terminal. Then it burned the VCD. However, I could only play the resulting disc on computer but not my VCD player. Your mileage may vary.
DVD trouble: again, the files were created successfully. However, when it executed dvdauthor, it does not like the titleset with -noask in the XML. So the solution is re-run the last command right after [2. Encode]: i.e., the makexml command, but take out the -noask option. This will generate a good XML. Then I could hit "Start" under [3. Burn] without problem.
(Link to the official Tovid GUI guide .)
I) Installation: follow the instructions from here.
II) Start the App: simply type tovidgui under any writable directory (e.g. your home)
[1. Layout]: you add videos here. The simplest VCD or DVD requires 1 menu and all videos could go under the menu. Name your source and destination files without spaces and underscores if you can.
[2. Encode]: just hit "Start encoding" and let it finish.
[3. Burn]: this is where I ran into trouble. If I simply hit "Start", both VCD and DVD failed.
VCD trouble: the cue and bin files were created successfully. However, when it tried burning them using cdrdao, nothing happened. I had to kill that process and repeat the cdrdao command in Terminal. Then it burned the VCD. However, I could only play the resulting disc on computer but not my VCD player. Your mileage may vary.
DVD trouble: again, the files were created successfully. However, when it executed dvdauthor, it does not like the titleset with -noask in the XML. So the solution is re-run the last command right after [2. Encode]: i.e., the makexml command, but take out the -noask option. This will generate a good XML. Then I could hit "Start" under [3. Burn] without problem.
(Link to the official Tovid GUI guide .)
My Ubuntu Experience: 1 Month Anniversary
I have been using Ubuntu on my desktop workstation for one monthly already! I still can't kick the habit of booting to Windows from time to time (See reasons mentioned later) but that's something I'm determine to avoid doing (Ever since I got Frethog and removed it, my anti-virus keeps finding worms, e.g. Winko/auto.exe, which seems to come from the usual suspect, judging by the fact that a number of posts analyzing these worms were written by Chinese experts. Anyway, I digressed)
Let me summarize a few more things I was able to do on Ubuntu successfully since last time:
1) Burn music CD from MP3: simply use Applications -> Sound & Video -> Serpentine. Works like a charm.
2) Remote Login to Windows. Yes I know there is RDP for Linux but my remote server runs TightVNC. There is no native TightVNC client on Linux but the Java Applet TightVNC Viewer does the job.
3) Mount Windows NTFS directories in Read/Write mode: they are mounted as Read-only by default. The easiest way to mount them as Read/Write is using NTFS Configuration Tool.
4) Mount remote directories in Read/Write mode: if you setup Windows to share a directory on the network, it is accessible using SMB on Linux. These are the steps to mount them permanently and read/writable (Note: VLC could only play remote files on the LAN this way)
Not so successful:
1) SlingPlayer on Wine (link to WineHQ): the sound gets choppy when I work on other windows and the video is grainy as the video tuning wizard refuse to run.
2) VMWare: I ran the free VMWare Converter to create an image of my existing Windows installation but VMWare Server had problem running this image (got a black screen after starting momentarily and then it just quit)
In any case, for day to day web browsing/blogging/e-mail/office app, Ubuntu has done a pretty good job. I heard some people commented that Ubuntu's "budding" relationship with Dell is not very dissimilar to that of Microsoft and IBM and other early PC clone manufacturer! I am not sure if that is a positive comment.
[Update: I ran into this bug (and the solution provided in the same link worked for me) for my SMB mount. An example of STOP_SERVICE line looks like this:
STOP_SERVICES="mysql samba-shares "
(modified from the mysql only line)
]
Let me summarize a few more things I was able to do on Ubuntu successfully since last time:
1) Burn music CD from MP3: simply use Applications -> Sound & Video -> Serpentine. Works like a charm.
2) Remote Login to Windows. Yes I know there is RDP for Linux but my remote server runs TightVNC. There is no native TightVNC client on Linux but the Java Applet TightVNC Viewer does the job.
3) Mount Windows NTFS directories in Read/Write mode: they are mounted as Read-only by default. The easiest way to mount them as Read/Write is using NTFS Configuration Tool.
4) Mount remote directories in Read/Write mode: if you setup Windows to share a directory on the network, it is accessible using SMB on Linux. These are the steps to mount them permanently and read/writable (Note: VLC could only play remote files on the LAN this way)
Not so successful:
1) SlingPlayer on Wine (link to WineHQ): the sound gets choppy when I work on other windows and the video is grainy as the video tuning wizard refuse to run.
2) VMWare: I ran the free VMWare Converter to create an image of my existing Windows installation but VMWare Server had problem running this image (got a black screen after starting momentarily and then it just quit)
In any case, for day to day web browsing/blogging/e-mail/office app, Ubuntu has done a pretty good job. I heard some people commented that Ubuntu's "budding" relationship with Dell is not very dissimilar to that of Microsoft and IBM and other early PC clone manufacturer! I am not sure if that is a positive comment.
[Update: I ran into this bug (and the solution provided in the same link worked for me) for my SMB mount. An example of STOP_SERVICE line looks like this:
STOP_SERVICES="mysql samba-shares "
(modified from the mysql only line)
]
Tuesday, July 10, 2007
Baseball All Star Week in SF Part III: The Game
Sunday, July 08, 2007
Sunday, July 01, 2007
Watch DVD on portable device
I just found another use of my Pocket PC: watch DVD. I got my instructions from the always helpful VideoHelp.com. Of course the ripped AVI will work on any computer. You could download AutoGK from here.
Wednesday, June 27, 2007
My Ubuntu Experience: Day 2
More items accomplished from my list:
4) I've finally got Chinese input working! Again, I did everything from the menu system (i.e, no command line :D ) Here are the steps (courtesy of this instruction):
i) Choose System->Administration->Language Support. It will automatically download some packages. Check the Chinese checkbox. It will install Chinese. Close it when it's done.
ii) Again, Choose System->Administration->Language Support. The previously checked "Enable Support to input Complex character" will become unchecked. Check it again.
iii) Log out and log back in.
我現在可以打中文了!
Also, contrary to what some people said, I was actually able to type Chinese in Open Office as well.
5) Watch Real Media encoded video:
Download the installer from http://www.real.com/linux . Change permission to executable and execute it. I chose to install to /usr/local/RealPlayer and the symlink dir option is the default (/usr) which symlink it as /usr/bin/realplay
Since I use SCIM, I got core dump when executing realplay, the workaround is do first:
export GTK_IM_MODULE=xim
Then execute "realplay &" from the same shell.
(Link to Detailed Instructions)
[Update: To associate the .rmvb file extension with Real Player, try this]
4) I've finally got Chinese input working! Again, I did everything from the menu system (i.e, no command line :D ) Here are the steps (courtesy of this instruction):
i) Choose System->Administration->Language Support. It will automatically download some packages. Check the Chinese checkbox. It will install Chinese. Close it when it's done.
ii) Again, Choose System->Administration->Language Support. The previously checked "Enable Support to input Complex character" will become unchecked. Check it again.
iii) Log out and log back in.
我現在可以打中文了!
Also, contrary to what some people said, I was actually able to type Chinese in Open Office as well.
5) Watch Real Media encoded video:
Download the installer from http://www.real.com/linux . Change permission to executable and execute it. I chose to install to /usr/local/RealPlayer and the symlink dir option is the default (/usr) which symlink it as /usr/bin/realplay
Since I use SCIM, I got core dump when executing realplay, the workaround is do first:
export GTK_IM_MODULE=xim
Then execute "realplay &" from the same shell.
(Link to Detailed Instructions)
[Update: To associate the .rmvb file extension with Real Player, try this]
Tuesday, June 26, 2007
My Ubuntu Experience: Day 1
That Frethog!generic episode motivated me to switch to Linux for my primary workstation, finally. And Ubuntu has the biggest buzz/hype in the Linux world these days so I went with it. (I know mainsteam is not my thing but with limited Linux experience for personal usage, I'd rather go with the mass since more info/help/how-to will be available and I'm sure I need a lot of them)
Let me briefly go over my installation: I downloaded the iso from here. Burned a CD. Went to BIOS and move my CD-ROM up in the order of boot device. Then boot the computer with the CD. Chose the first option on the menu, which start Ubuntu from the CD (that's why it's called a Live CD) Once I'm in it. I clicked the Install icon on the Desktop and the installer asked a series of questions, which I picked the default for most of them. The only tricky question was about partitioning: I had 5 partitions on my first hard drive: 1) Windows (NTFS), 2) Swap, 3) a /boot (ext3), 4) a root (ext3) and 5) a FAT16 partition. (2)-(4) were there because I had previously installed RedHat and I want to replace RedHat with Ubuntu, i.e., use the same partitions but don't care about keeping the content. So I picked "Manual" when the Installer asked about partitioning and edit the old RedHat parititions to indicate they will be used as /boot, root(/) and so on. Finally, the default location for the "Dual Boot loader" (which allows me to run multiple OS as I'm still keeping XP) was (hda0) and I was a bit skeptical at first since I recall going through a few extra steps to take care of that for RedHat (put GRUB on /boot instead of MBR) but it turns out fine.
Now, actually using it was when the fun began. I have a habit of making a list of things I want to try with any new toy before it arrive. So I did the same for Ubuntu. More things work out of the box then expected!
1) Browsing Chinese websites: I didn't need to install any extra font. It just worked!
2) Change monitor resolution to 1920x1200: this requires some work, non-trivial but manageable:
- Install Restricted driver
- Run the Autodetect Script Again (follow the section with the same name)
3) Watch videos: I tried a few of my favourite videos and the included Totem player can't play any of them but I knew a simple solution:
- Install VLC (Application->Add/Remove, choose All available applications and look for VLC)
I have been using VLC on Windows anyway.
Stay tuned for more of my Ubuntu Experience!
Let me briefly go over my installation: I downloaded the iso from here. Burned a CD. Went to BIOS and move my CD-ROM up in the order of boot device. Then boot the computer with the CD. Chose the first option on the menu, which start Ubuntu from the CD (that's why it's called a Live CD) Once I'm in it. I clicked the Install icon on the Desktop and the installer asked a series of questions, which I picked the default for most of them. The only tricky question was about partitioning: I had 5 partitions on my first hard drive: 1) Windows (NTFS), 2) Swap, 3) a /boot (ext3), 4) a root (ext3) and 5) a FAT16 partition. (2)-(4) were there because I had previously installed RedHat and I want to replace RedHat with Ubuntu, i.e., use the same partitions but don't care about keeping the content. So I picked "Manual" when the Installer asked about partitioning and edit the old RedHat parititions to indicate they will be used as /boot, root(/) and so on. Finally, the default location for the "Dual Boot loader" (which allows me to run multiple OS as I'm still keeping XP) was (hda0) and I was a bit skeptical at first since I recall going through a few extra steps to take care of that for RedHat (put GRUB on /boot instead of MBR) but it turns out fine.
Now, actually using it was when the fun began. I have a habit of making a list of things I want to try with any new toy before it arrive. So I did the same for Ubuntu. More things work out of the box then expected!
1) Browsing Chinese websites: I didn't need to install any extra font. It just worked!
2) Change monitor resolution to 1920x1200: this requires some work, non-trivial but manageable:
- Install Restricted driver
- Run the Autodetect Script Again (follow the section with the same name)
3) Watch videos: I tried a few of my favourite videos and the included Totem player can't play any of them but I knew a simple solution:
- Install VLC (Application->Add/Remove, choose All available applications and look for VLC)
I have been using VLC on Windows anyway.
Stay tuned for more of my Ubuntu Experience!
Monday, June 25, 2007
How I got rid of Frethog!generic
My computer was infected by the trojan Frethog!generic when I accidentally clicked on an unknown Chinese website last week. My CA Anti-virus (got it free from SBC Yahoo as a DSL customer) discovered it very quickly. Unfortunately, it was only able to remove copies of the virus but not the "original." I googled it immediately but couldn't find much info at first. The first thing I found out was that it was a password stealer. And that's enough to make me lose sleep. Since I was not able to find a quick solution, the next best thing I did was turn off the computer and unplug it from the network.
Fortunately I found a solution from Google later:
1) download a program called ComboFix from here or here.
2) reboot your PC, hit F8 before Windows started and start Windows in "Safe mode"
3) execute ComboFix.exe. It will start a "Text" window and scan your system for "bad stuff." This may take a long time (~10 min for me) After it removed the bad files, it will ask you to reboot. The program resumes after reboot and finally generate a report which includes all files created on your system recently. So in case it cannot find the offender, you still get a clue on what files could possibly be infecting your system.
Even though I dodged a bullet this time, I think it's a sign that I should finally seriously consider to switch OS on my primary workstation. Please read my next post!
Fortunately I found a solution from Google later:
1) download a program called ComboFix from here or here.
2) reboot your PC, hit F8 before Windows started and start Windows in "Safe mode"
3) execute ComboFix.exe. It will start a "Text" window and scan your system for "bad stuff." This may take a long time (~10 min for me) After it removed the bad files, it will ask you to reboot. The program resumes after reboot and finally generate a report which includes all files created on your system recently. So in case it cannot find the offender, you still get a clue on what files could possibly be infecting your system.
Even though I dodged a bullet this time, I think it's a sign that I should finally seriously consider to switch OS on my primary workstation. Please read my next post!
Monday, June 04, 2007
Free RSS Reader for Pocket PC/Windows Mobile
My Dell Axim X30 is getting even more useful these days thanks to the free RSS Reader pRSSReader
When I had my Palm, I used to sync RSS feeds to using Sunrise (on Desktop) and Plucker (on Palm) However, now pRSSReader allows me to take advantage of the built-in Wifi on X30 to download directly to the PDA.
Two useful tips:
1) To download the web page linked to the news item for offline viewing, simple choose your feed from Site Manager, then choose File->Properties. Choose the "Caching" tab and check "Cache content for offline browsing" box.
2) To download podcast, again, choose your feed from Site Manager, then choose File->Properties. Choose the "Caching" tab and check "Automatically cache enclosures" box
When I had my Palm, I used to sync RSS feeds to using Sunrise (on Desktop) and Plucker (on Palm) However, now pRSSReader allows me to take advantage of the built-in Wifi on X30 to download directly to the PDA.
Two useful tips:
1) To download the web page linked to the news item for offline viewing, simple choose your feed from Site Manager, then choose File->Properties. Choose the "Caching" tab and check "Cache content for offline browsing" box.
2) To download podcast, again, choose your feed from Site Manager, then choose File->Properties. Choose the "Caching" tab and check "Automatically cache enclosures" box
Wednesday, May 23, 2007
Subscribe to:
Posts (Atom)




