Monday, July 12, 2010
Having a whole bunch of text files in a folder, want to combine them into a single big text file.
First, make sure sure the file names are in order, say, 01.txt, 02.txt, 03.txt, etc.
Then, go to CMD window, type the following command:
for %f in (*.txt) do type “%f” >> myBigTextFile.txt
The myBigTextFile.txt will contain all the text file in the directory.
Thursday, June 24, 2010
I am using a telnet program call S-Term from time to time. However, I found I cannot type Chinese characters into it with Google Chinese IME. I am using Windows XP SP3, of course.
S-Term download page
I discovered that I can copy and paste the Chinese characters inside the s-term window, but not from IME or other Windows. I suspect that this program does not accept Unicode Chinese characters, but only GB2312 characters.
Through trial and error, I discovered the solution:
- Go to Region and Language Options control panel
- Go to Advanced tab
- Select Chinese (PRC) See picture below
- Re-start the computer

Now I can type Chinese and copy & paste any Chinese characters from the system.
–
Putty
A friend pointed out, using putty can avoid this change: putty support Unicode perfectly well. You need to change the default font to a Chinese font, and change the Translation setting to UTF-8 or font encoding.
putty home page
Saturday, June 19, 2010
Firefox: Change the default search vendor
For some reason, the default search of Firefox for Windows is Yahoo, but the Firefox for Macintosh is Google.
To change the default search site,
- Alt-D to Location Bar
- Type about:config
- Search for browser.search.defaultenginename
- Double Click it
- Type in Google in the resultant dialog box
- Restart Firefox
After this, whenever you type Ctrl-K, Google will come up, instead of Yahoo. On my laptop, since the screen real estate is a premium, I usually turn off the Navigation bar, hence the need of Ctrl-K. Otherwise, Ctrl-E can bring the keyboard focus to the search box on the Navigation bar.
Thursday, June 17, 2010
This program, Sony eBook Library always jumps out whenever I plug in my Sony PRS-505 for a recharge. It annoys me no end.
Discovered how to disable it in Windows XP:
- Win-R, type msconfig
- Click the Startup tab,
- Find eBook Library Launcher, click it off
Now the program will not jump out to bother me. What a relieve.
Saturday, May 29, 2010
Just realized Google Chrome has upgraded to version 5. Several months ago, I tested version 4, wrote something about it.
Some impressions:
It is very fast. I did not do any benchmark test, but definitely it feels more responsive than my IE8 and Firefox 3.6.6. Browser is now the center piece of my computing, the performance is very important. Nowadays, almost all my documents are on Google and other online services, so called cloud.
However, I do find somethings annoying about Google Chrome:
It reserves Alt-D, Alt-E, and Alt-F for its own usage. Alt-D is to put the keyboard focus to the address bar, Alt-E opens the page icon, Alt-F opens the tools icon, just like version 4.
Whenever I want to search Wikipedia, if I use Firefox, I just enter Alt-F, but with Chrome, I must Alt-Shift-F, quite annoying. Since I use certain shortcuts a lot, one more extra keystroke is too much.
Other than that, Chrome 5 is a very refined, responsive, and robust browser. It is becoming my main browser, like the day in September, 2008.
Thursday, May 27, 2010
If you need to transcode video files for different media players (iPod, iRiver, or Archos players), you will need a good and fast video transcoder. Recently I tested a free utility called SUPER, and it works superbly.
According to Wikipedia,
SUPER is a closed-source freeware front-end for open-source software video players and encoders provided by the FFmpeg, MEncoder, MPlayer, x264, ffmpeg2theora, musepack, Monkey’s Audio, True Audio, WavPack, libavcodec, and the Theora/Vorbis RealProducer plugIn projects. SUPER provides a graphical user interface to these back-end programs, which are command-line based.
SUPER Wikipedia entry
SUPER Official site
Guides and documents
One caveat: the official site of SUPER is rather confusing and strange, you need to click through a couple of pages before you can download the setup binary file. So read it carefully, otherwise you may click on some other software download pages inadvertently.
Also, it automatically check the updates periodically, if a new version exists, you must download and install it. It may annoy some people.
Tuesday, May 25, 2010
The Nokia 770 is a strange animal. It is not a phone, although it displays a huge Nokia logo on its face. Nokia labeled it “Internet Tablet", lest people mistake it for an Internet capsule, considering now Apple markets both a tablet and a capsule.

It came out around 2005, one can think it as a fore-runner of iPad. Basically, it is a handheld computer, running the Maemo operating system, a variant of Debian Linux. It has Wi-Fi, Bluetooth. It has no physical keyboard, although its successors, Nokia 800, and Nokia 810, etc all sports a decent qwerty keyboard.
It does not have the fancy interface of an iPad, but basically doing the same stuff: internet browsing, emailing, and sometimes basic note-taking, although the lack of a keyboard severely restricted its use as a note-taking device. In comparison, Nokia 810 is a much attractive successor.

I used to browse the internet through Wi-Fi on my bed. However, about a year ago, I moved to my current apartment. To my chagrin, I can no longer connect to my wireless router! Sometimes, I can pickup Optimum Wi-Fi outside. Optimum Wi-Fi is a service provided by CableVision, free for its internet service subscribers.
So the problem is not hardware, must be some software issue. In a sleepless night, I discovered it was a known bug specific to Nokia 770, and Nokia pretty much abandoned the product, concentrating on its successors, namely N810 and N900. The status of the bug report is “Won’t Fix”.
Some capable hand discovered a fix:
Nokia 770 Wi-Fi bug & possible work-around
Comment #39 from Xiaopeng Wang 2009-09-16 00:14:13 GMT+3 [reply]
(In reply to comment #38)
I agree if someone can make or port a GUI tool to do this(e.g., report error
and handle dhcp stuff) that would be the best. Here I just list what’s working
on my 770 at home:
OS: os2007HE
installed packages: xterm, gainroot, wireless-tools
step 1: get root access in a xterm
step 2: run these commands in the xterm:
ifconfig wlan0 up
iwconfig wlan0 key (your wep key)
iwconfig wlan0 mode managed
iwconfig wlan0 essid (your ssid)
ifconfig wlan0 (your ip) netmask (your netmask)
route add -net 0.0.0.0 netmask 0.0.0.0 gw (your default gateway)
echo “nameserver (your dns server)” > /etc/resolv.conf
gconftool -s -t string /system/osso/connectivity/IAP/DEFAULT/type DUMMY
In the above commands, replace “(blahblah)” with parameters of your
network(without the ‘(’ and ‘)’).
Then minimo should work fine; when using any built-in applications and the 770
asks you to choose a connection, always choose “DEFAULT” from the list, and
then everything should work fine.
You can also put all the commands in a script to make it easier to run it
again.
The problem is, I have difficulties to install new applications on my Nokia 770, having a problem with the Application Manager, not very different from the following description:
A Discussion on Application Manager
Without the ability to install new applications, I cannot get the root access; without the root access, I cannot attempt the fix mentioned by Mr. Xiaopeng Wang.
I have two choices: re-flash my unit, or live with it, in its current incarnation. Considering its advanced age, I chose the second option. At least I still have my FBReader on it to make it a good eBook reader capable of doing ePub eBooks.

Sunday, May 23, 2010
The video shot with my Canon PowerShot SD1000 is rather big, more than 100MB for a single minute’s worth, quite difficult to transfer via email. Also, the playback is flaky is many cases.
Check the manual, the SD1000 use M-JPEG codec to compress the video data. M-JPEG is a rather inefficient video compression format, it is an intra-frame compression scheme, meaning it will not take account of similarity between frames. As a result, the final image size is huge compared with inter-frame compression schemes, such as MPEG-1, or H.263.
The upside is that intra-frame is easier to edit with non-linear editing tools, but the huge size offset the benefits.
For simply linear editing, the open-sourced VirtualDub is an ideal tool.
VirtualDub
One good thing about VirtualDub is, it can save and re-use processing settings, such as video and audio codec, filters, and other whistles and bells. The performance is good, and it is open source, free.
With MP4 compression codec, VirtualDub can reduce the video file size ten-folds.
It takes some time to learn and master it. Read the manual, and the documentation, as always.
I was playing with Picasa Web this morning. I used to use Picasa years ago, but I discovered that it is not suitable for my needs, so I uninstalled it from my system.
Picasa Web
The other day, the thought came to me that why not try their web service, it should be quite similar to Flickr, Windows Live Photos, or Facebook.
At first, it seemed so. However, when I tried to upload some photos, I realized it only allows me to upload 5 pictures a time, a rather tedious process if one happens to have a bunch to upload. Other services, like Facebook, Flickr, all sport some sort of upload tools to make the uploading really easy inside the browser. But for Picasa Web, one does not have this option. If you are using IE, and you are lucky, you can install the ActiveX upload tool, similar to Windows Live Photo Uploading tool. I mean, if you are lucky, because in my case, the ActiveX control failed to install on my computer.
I further tested my system, it seems it cannot install new ActiveX controls. The existing ones are working fine, such as the Windows Live Photo Uploading tool. When I tried to install the Flash player ActiveX control, it crashed. I managed to manually install the Flash ActiveX control, but I don’t have such an option for Picasa Web Photo Uploading tool.
Maybe that’s a way for Google to persuade you to install the Picasa full application. But I do not really need it, just to test the web interface. My system is already cluttered with millions of applications, enough is enough.
I will stick to Facebook, and Windows Live, for now.
Friday, February 26, 2010
Accesskeys are useful ways to navigate web pages using the keyboard instead of the mouse. For introduction, check the following pages:
Accesskeys: Unlocking Hidden Navigation
Access Keys Wikipedia entry
Fortunately, both Twitter and Facebook use access keys for easy navigation and accessibility:
Twitter accesskeys:
0: Skip Past Navigation
1: Home
2: Skip to Navigation
3: Jump to the sidebar
h: Home
p: Profile
=: Find People
s: Settings Link
?: Help
l (Letter L): Sign out
u: Text area
>: Direct Message
n: New Result Notification
m: Reply
d: Inbox
i: Inbox
o: Send
f: Favorites
r: Retweets
/: Search
Facebook accesskeys:
1: Home
2: Friend Request
3: Messages
4: Notifications
5: Home
6: Profile
7: Account
Next Page >>