A math problem 6/2(1+2)
Today, I read the newspaper, and found that there were a lot of people discussing this questions. You can read it from Yahoo! Answer. And there are a lot of people answering this expression equal to 9:
6/2(1+2) = 9
I really don’t understand the possibility of answering it as 9. Some of them said based on PEMDAS, it must be 9; also other said based on distributive property, it is 1.
Sharing my OpenOffice Impress template
Looking at the OpenOffice Impress default templates, they are too dull for me. Then, I am looking for the better template, but cannot find a better one. The main problem is the background. So, I decide to create my own template. I am using the background from deviantART user, PL0. Thanks to his design. Then using the GIMP, to edit the image, then make it as the OpenOffice Impress template. Have a look.
Upgrade to Ubuntu 10.10 on HP Mini
This is not an easy work for me.
- Firstly, I download the Ubuntu 10.10 alternative CD ISO.
- Then, following upgrade using the shell script by following this article.
- Restart
No wireless device detected, cannot connect internet through WiFi. What the X?! I used this method before by upgrading from 9.10 to 10.4, but this time fail.
- Then use the broadband connect to the internet
- System > Administration > Additional Drivers
- Download and update certain things, I don’t know what are they
- Found “Broadcom STA wireless driver”
- Activate
- Failed! Ask me to check /var/log/jockey.log
Then I think I need to update everything, so I run System > Administration > Update Manager. Then I asked for “Partial Upgrade”, and needs to download about 200Mb data. Not the good solution. Search solution online. Then I found this.
USBDeview, very good
My laptop has a built-in webcam. I was doing video capturing using webcam. Suddenly, the webcam could not function. Then I tried to restart, hopefully fix the problem. After restart, there was a taskbar notification mention that there is an unrecognized malfunction USB device. (I am using Windows 7)
So, how to solve this problem? This was not a driver problem. And I thought that maybe the webcam was broken or some hardware problem.
Huawei E1552 on Ubuntu
I was using Huawei E220, a very old USB Modem. Yet, running on Ubuntu does not have any problem.
Then I tried the new Huawei E1552 on Windows. Nicer interface. Newer is better. But when I tried it on Ubuntu, yes, Huawei Mobile Partner icon is on the desktop. Can open it. But I cannot connect to internet.
So, in order to solve this problem, I tried to search from Internet. Right, I need USB_ModeSwitch to solve this problem. Reading the page, you will find a lot of steps need to follow.
My first Greasemonkey script
Finally, I wrote a Greasemonkey script. The script is target on a Chinese comic website. You can download the script here. I wrote the script because the links are not named in sequence. To offline read the comic, I would like to download the comic first. Then I can read the comic offline. After that, I can delete the comic.
But the name are not in sequence, I cannot download the comic using batch downloading. Thus, writing this script to produce the link, then from the link, I can download the comic with any download manager.
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:
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.
Installing Flash plugin in Linux
I tried to install Flash in Ubuntu. But there is a problem when installing “flashplugin-installer”. I cannot finish download the installation file from Ubuntu server. So, I tried alternative way to install Flash plugin.
I go to Adobe website, and download the Debian package. Then
sudo dpkg –install [filename].deb
Right, now can view Flash in web browser.
