Fido, one of the Canadian cell phone carriers, gave a 500 error on its official site.
fido-500-error.jpg

It is hacked? or under attack?

Every time I upgrade my Ubuntu desktop, a new kernels comes in. Then I have a new kernel and old one will never be used.

Time by time. I have 6 or more kernels in the booting list and I don't want to see. How can I remove them.

I got the way to do this cleaning job.
1) Check my current kernel I use by command as below:

uname -r

The response tells the current version number

2.6.24-19-generic

2) Open the Synaptic package manager from the System->Administration menu.

I would like to introduce this network for every Canadian adult.
I joined this network and have my blood information on its database.

The first step to do is to go to One Match site. Filling the online form and wait them contact you.
Basicly you will get an phone call to confirm you really want to join it and make sure you know what you do.

Then you will receive a mail with a test swab pack including return envelope.
The test kit has instruction and it is easy for you to collect test sample yourself.
I have an photo of it.
stem-cell-swab.jpg

Just use the swab to touch the inner cheek to get sample by four times. And mail it out.

The network will let lab to doing the test and try to match it with others'.

If match, you can save a life.

Do not fear the process to retrive the stem cell. It is a hi-tech age. Stem cells can be obtained from the circulating blood.

Nintendo Wii

| | Comments (0) | TrackBacks (0)

wii_sports.jpg

My 4 and half years old daughter, Gloria, is pointing her Mii.
pointing_mii.jpg

Just come back from San Francisco last Saturday. We went to T&T and Costco for grocery.
Later afternoon, we stopped in the EB Games, a game store.

We found Wii there and it is $269.00 with Wii Sports. After a short discussing with Vivian and We decided to buy it.

Grace and Gloria are so exciting. When we headed into home with the Wii box, they can not wait any more.
I unpacked the box, connect the cables and setup the console. They phoned their friends to announce this great news.

I do like the Tennis. I played about 1 hour yesterday. I think it works on fitness job.

See some photos in the next post.

TemplateMonster.com is one of the most famous Template resource site in the world.

It is going to hold a lottery with give-away to any participant.
TemplateMonster.com will expose two of TemplateMonster's website designs. In order to take part in the lottery one should vote for one design or the other.

The design which gets the most votes becomes the winner. Note the best design is chosen during two weeks period.

And here are the benefits for users to take part in the lottery:

- everyone who participates in lottery gets the free Icon Set. All icons included into this free Icon Set also relate to patriotic and 4th of July topic;

- also everyone who participates in lottery has a chance to get one of the special prizes.


The special prizes are:

- 1 Gift Certificate giving the opportunity to get any product from Template Monster database for free;
- two 80% discount coupons for purchasing any product from Template Monster database;
- three 50% discount coupons for purchasing any product from Template Monster database.

Note everyone who purchases any product from Template Monster during this promo will get the Icon Set that I've mentioned for free.

It sounds great. The process is simply.
1) Click the event page link. Fill in your name and email and choose the design you like, then click vote button.
templatemoster-lottery.png

2) Then you will get an email looks like below, to confirm your participating and show you the link to download the free set of icons.

Hello,
We thank you again for participating in the 4th of July lottery from Template Monster.
To show you how grateful we are we provide you with a FREE Iconset that you may download by clicking a link below:
Download link shown here
Thank you.

That's all. Now join the 4th of July Special on Template Monster.

It is a Movable Type Security Update.

Today we are releasing Movable Type 4.01b and Movable Type 4.12. These are free mandatory security updates for all Movable Type 4.x users.
via

Action now, upgrade your MT installation. It is a Security update.

I have some MT 4.1 installation on Dreamhost. I update them just two minutes ago.

It is simply and easy to update.

1) SSH to server.

2) wget http://www.movabletype.com/download/personal/MTP-4.12-en.tar.gz

3) tar -xvzf MTP-4.12-en.tar.gz

4) cp -r -f . ~/sitedir/mtcgi/

5) login MovableTyep and done.

GNOME 2.22

| | Comments (0) | TrackBacks (0)

I use Ubuntu 8.04. It is shipped with GNOME Desktop.

Gnome 2.22 now.
You may want to read its release notes.

Go to Gnome official site to find out more.

I wrote PHP Optimization to improve performance. Now I have another ten PHP optimization tips for you.
1. Single-quoted strings.
Use single quote when possible. It is faster than double quote. If it is string only, just pick single quotes.
2. The way output data.
Could you point which is the fastest way to output from below?
print "Hi my name is $a. I am $b";
echo "Hi my name is $a. I am $b";
echo "Hi my name is ".$a.". I am ".$b;
echo "Hi my name is ",$a,". I am ",$b;
The last one is actually the fastest operation.
3. Use single-quotes around array indexes.
So, $x['sales'] is alway best format and fast.
4. Don't use short open tags.
<?php is formal tag.
5. Use regular expressions only when you really need it.

When doing string operation, like replace part of string. strtr is the fastest.
str_replace is faster.
preg_replace is slow.

It is good news Today.

One API to Rule Them All

Stability, Debugging, Testing and jquery.simulate

The Need for Effects: Enter Enchant

Roll Your Own Themes: ThemeRoller!

Plugin Stabilization and Enhancements

jQuery UI v1.5:

Final Release: http://ui.jquery.com/download

When coding in PHP in variety ways, some way is simple, some is not. But there must be one better way that can provide better performance.

Here is a list of 63+ best practice to optimize PHP code performances

I learn some from it.


  • echo is faster than print.

  • require_once() is expensive

  • If you need to find out the time when the script started executing, $_SERVER['REQUEST_TIME'] is preferred to time()

  • str_replace is faster than preg_replace, but strtr is faster than str_replace by a factor of 4

  • It's better to use select statements than multi if, else if, statements.

  • Close your database connections when you're done with them

  • $row['id'] is 7 times faster than $row[id]

  • Do not use functions inside of for loop, such as for ($x=0; $x < count($array); $x) The count() function gets called each time.

  • When echoing strings it's faster to separate them by comma instead of dot. Note: This only works with echo, which is a function that can take several strings as arguments.

  • Do NOT use SQL wildcard select. eg. SELECT *


Earn $$ with WidgetBucks!
Earn $$ with Bidvertiser!
DreamHost!
Sponsored Review!

Surprising Sites


Build a website with this simple website builder.
VoIP Analyzer - In-depth analysis, recording, and playback of SIP and H.323 voice communications.

Online Tools

Recent Pings

MovableType 4.12安全更新 From:SEO 网站优化推广
何处收藏我的记忆 From:FreeThinking
在blog里显示漂亮的源代码 From:SEO 网站优化推广
为地震灾区人民祈福 From:SEO 网站优化推广
reCAPTCHA導入 From:BOB'S YOUR UNCLE BLOG(仮)