Regular expression, find and replace using Unix tools
I need to add some text to a lot of text files. Previously, I used jEdit to perform regular expression for several files. But currently, I need to add the text for about 120 files. In order to do this, I tried using Unix tools, “sed”, “grep”, and “xargs”.
Firstly, I tried MSYS, yet it fails. Because the “sed” version was too old. Then, I used Cygwin.
My problem was to add the following text to the text files:
Try out Ubuntu, Wubi, and Portable Ubuntu Remix
Ubuntu, in my opinion, is a great Linux distribution. There are several ways to let you try out Ubuntu. After download the CD, I can burn it to the CD and boot from the CD. I can try Ubuntu as a LiveCD. I can also boot it from a USB pendrive like a CD.
When installation, I can create a new partition on my harddisk. I can install it on the logical partition and boot from there. Unlike FreeBSD, which needs to be installed on a primary partition. Not only that, I can also install Ubuntu side by side with the same partition with other OS (such as Windows). This is special.
Installing CVS on Ubuntu 10.04
I found the following message when I was trying to install CVS on Ubuntu 10.04 with synaptic,
Please insert the disk labeled: Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100427.1) in drive /cdrom/
I am not sure why is this message appears. But my Ubuntu 10.04 was upgraded from Ubuntu 9.10 with the alternative CD. Fortunately, I got the CD image. Thus, to solve this problem, I mount the alternative CD to the “/cdrom/” drive. Then, there is no problem for the installation.
Huawei Mobile Broadband, Ubuntu 10.04, Celcom service, and HP Mini netbook
Huawei Mobile Broadband, which I bought about 2 years ago, is failed to run properly on my HP Mini 1000 series with Ubuntu 10.04. It will keep trying to connect to internet, yet failed. And I also found a “MOBILE_CONNECT” icon on the desktop. If I tried to click it, it will immediately missing.
So, to solve this problem,
- I right-click the NetworkManager Applet,
- Edit Connections…
- Goto Mobile Broadband tab
- Click Add button
- Then it will show the Huawei broadband device
- Continue the steps for my service provider, which is Celcom
- Can connect to internet properly.
I do this whenever I cannot connect to internet properly using the Huawei Mobile Broadband.
AddThis or ShareThis bookmarklet
Too many addons for Firefox? Using AddThis or ShareThis addons? Alternative to the AddThis or ShareThis addons, bookmarklet. Try them out:
Prayer Clock and JPrayer Clock 0.1.2 released
Prayer Clock and JPrayer Clock 0.1.2 are released. Anyone who likes, you can download. And the source code is also available. Feel free to edit.
Hello world!
Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!
Trying out WordPress.com
After trying WordPress from WordPress.org, and using the x10Hosting, I really attracted by WordPress. That is why, now I am trying WordPress.com, because the PHP hosting is not good enough for my expectation.
I am still thinking about, which one is suitable for me, Blogger or WordPress.
My experience of web development
In web development, one should not maintain the data structure concept (C programming) for web application, such as PHP web application. But should use the OO (object oriented) concept. So that, the object created by PHP is easily to be used/re-used. Besides that, though the web development includes interface, it do not bear the same concept like system applications (application software developed by language such as C or C++, or Java).
JPrayer not works in Linux
I just found that, the JPrayer Clock I built cannot run properly in Linux. The prayers didn’t show up, including the tray icon. Might be the file path problem.
