Fishing Link Directory
Alec Tang - A Developer's Random Blog
Search:
Google did grow smarter…and smarter
May 16th, 2008 Filed Under SEO
I hate to admit it but all these years I think Google did grow smarter and smarter (not because I bought some of its share) but my online experience had proved me this, at least the following two points made me think so. I used Yahoo! for like 3, 4 years before I made my decision to switch to Google and I think I will keep staying until there is something better than Google, which I think would probably be like 5 years later or more.
KDDI latest phone design: Soapy style
May 16th, 2008 Filed Under Creativity
KDDI, one of the biggest competitors to mobile phone manufacturers NTTDoCoMo in Japan has come up with three styles of design for its latest audesign project. They are amazing!

Photos of Apple’s Boston Office
May 16th, 2008 Filed Under Photos
Let’s take a look at Apple’s main office at Boston, it’s actually its biggest store in the state. With three floors, first for mac products, second for iphone, ipods stuff and the third for customer support.

Add rotary dialing to your iPhone
May 14th, 2008 Filed Under Creativity
Found a really cool app for iPhone, that changes the dialing system to the old style rotary one. To install, add: http://repo.sosiphone.com as a source in Installer.

SQL: How to find and replace text in columns
May 14th, 2008 Filed Under ASP.NET
I have been trying hard to find out how to go through a list of columns and find and replace some string to what I want. Most of the online tutorials use cursor to do this, but somehow it did not work for me. The following is the script that does that job nicely! It select rows from the table PageContent that has Content column containing the h1 tag and then replace them with h2.
Animal Instinct before disaster
May 13th, 2008 Filed Under Photos
Condolence to the victims in Si Chuang province of China, having that disaster. Though they said animals always have instinct of escaping before some disaster is going to happen to the nature. Just three days before the earthquake, residence had actually found thousands and thousands of frogs jumping around the road. It’s quite amazing…


Wordpress footer template hacked badly…
May 9th, 2008 Filed Under Webmaster Info
Since 4 days ago, one of my blogs which runs with great traffic started showing sign of slowing down. Never have I seen this kind of down turn before, that it seems more like a server issue or something. From 100% to 50% to 20%.
At first, I thought it was something to do with being penalised by Google due to some issues but then I didn’t put much attention as I believe, great content will always rule at the end since it is not the first time Google changed/ tested their algorithms, etc. But then when I scanned through my templates, boom! I realised that the footer template had been modified with huge bunch of spammy codes/ external links to these credit cards, loans website. WTF? Now this is why my site’s been penalised. I have no idea since when this was put in and whoever did that, screw him!
How to prompt for download image instead of opening
May 6th, 2008 Filed Under PHP Lab
Sometimes when you have link to images and you don’t want them to be opened by IE but prompt for download/ save, your browser will “understand” certain file types, so if you navigate to an image file such as .gif, .jpg, .png, it will display the image because it knows how to do that. Likewise, if you have PDF extensions installed, when you navigate to a PDF file, it will display in the browser instead of download. However, if you click on an unknown file extension, it will just prompt to download.
So how do you prompt to download recognized file types? One way is to just tell your users, “Right-click and choose Save As”. Of course, that is not as fool-proof as you’d like.
The other option is to use a scripting language to stream the file to the browser. Below I’m going to post an example to serve an image (could be gif or jpg). This technique can be used to serve PDF, Excel, Word docs, etc., but you have to figure out the correct Content-Type for each.
[START PHP]
$data = file_get_contents(”img/my_image.jpg”);
header(”Content-Type: image/jpeg”);
header(”Content-Disposition: attachment; filename=my_image.jpg”);
echo $data;
[END PHP]
Use JavaScript to talk between windows pages
May 1st, 2008 Filed Under Webmaster Info
Was seeking a way to let different windows talking to each other. Something like a link in a pop up window, when clicked, the original window’s text box will be filled with some text. Example can be seen here.
Yahoo! Taiwan offers credit card payment in auction
April 28th, 2008 Filed Under Webmaster Info
Yahoo! Kimo has announced to launch online credit card payment system for its online auction section! This is a great news as previously, if you want to purchase something in the auction, you’d have to pay local or do an Internet banking transfer. But now, for sellers who met over 300 trust points, they could start accepting payment made by credit cards from the buyers. There is no annual fee for the seller, just that 2% transaction fee will be charged. That sounds like overseas buyers could also make payment in the auction now, I guess?
Google did grow smarter…and smarter
I hate to admit it but all these years I think Google did grow smarter and smarter (not because I bought some of its share) but my online experience had proved me this, at least the following two points made me think so. I used Yahoo! for like 3, 4 years before I made my decision to switch to Google and I think I will keep staying until there is something better than Google, which I think would probably be like 5 years later or more.
KDDI latest phone design: Soapy style
KDDI, one of the biggest competitors to mobile phone manufacturers NTTDoCoMo in Japan has come up with three styles of design for its latest audesign project. They are amazing!

Photos of Apple’s Boston Office
Let’s take a look at Apple’s main office at Boston, it’s actually its biggest store in the state. With three floors, first for mac products, second for iphone, ipods stuff and the third for customer support.

Add rotary dialing to your iPhone
Found a really cool app for iPhone, that changes the dialing system to the old style rotary one. To install, add: http://repo.sosiphone.com as a source in Installer.

SQL: How to find and replace text in columns
I have been trying hard to find out how to go through a list of columns and find and replace some string to what I want. Most of the online tutorials use cursor to do this, but somehow it did not work for me. The following is the script that does that job nicely! It select rows from the table PageContent that has Content column containing the h1 tag and then replace them with h2.
Animal Instinct before disaster
Condolence to the victims in Si Chuang province of China, having that disaster. Though they said animals always have instinct of escaping before some disaster is going to happen to the nature. Just three days before the earthquake, residence had actually found thousands and thousands of frogs jumping around the road. It’s quite amazing…


Wordpress footer template hacked badly…
Since 4 days ago, one of my blogs which runs with great traffic started showing sign of slowing down. Never have I seen this kind of down turn before, that it seems more like a server issue or something. From 100% to 50% to 20%.
At first, I thought it was something to do with being penalised by Google due to some issues but then I didn’t put much attention as I believe, great content will always rule at the end since it is not the first time Google changed/ tested their algorithms, etc. But then when I scanned through my templates, boom! I realised that the footer template had been modified with huge bunch of spammy codes/ external links to these credit cards, loans website. WTF? Now this is why my site’s been penalised. I have no idea since when this was put in and whoever did that, screw him!
How to prompt for download image instead of opening
Sometimes when you have link to images and you don’t want them to be opened by IE but prompt for download/ save, your browser will “understand” certain file types, so if you navigate to an image file such as .gif, .jpg, .png, it will display the image because it knows how to do that. Likewise, if you have PDF extensions installed, when you navigate to a PDF file, it will display in the browser instead of download. However, if you click on an unknown file extension, it will just prompt to download.
So how do you prompt to download recognized file types? One way is to just tell your users, “Right-click and choose Save As”. Of course, that is not as fool-proof as you’d like.
The other option is to use a scripting language to stream the file to the browser. Below I’m going to post an example to serve an image (could be gif or jpg). This technique can be used to serve PDF, Excel, Word docs, etc., but you have to figure out the correct Content-Type for each.
[START PHP]
$data = file_get_contents(”img/my_image.jpg”);
header(”Content-Type: image/jpeg”);
header(”Content-Disposition: attachment; filename=my_image.jpg”);
echo $data;
[END PHP]
Use JavaScript to talk between windows pages
Was seeking a way to let different windows talking to each other. Something like a link in a pop up window, when clicked, the original window’s text box will be filled with some text. Example can be seen here.
Yahoo! Taiwan offers credit card payment in auction
Yahoo! Kimo has announced to launch online credit card payment system for its online auction section! This is a great news as previously, if you want to purchase something in the auction, you’d have to pay local or do an Internet banking transfer. But now, for sellers who met over 300 trust points, they could start accepting payment made by credit cards from the buyers. There is no annual fee for the seller, just that 2% transaction fee will be charged. That sounds like overseas buyers could also make payment in the auction now, I guess?
Links inside Freshwater Fishing
Google did grow smarter…and smarter
I hate to admit it but all these years I think Google did grow smarter and smarter (not because I bought some of its share) but my online experience had proved me this, at least the following two points made me think so. I used Yahoo! for like 3, 4 years before I made my decision to switch to Google and I think I will keep staying until there is something better than Google, which I think would probably be like 5 years later or more.
KDDI latest phone design: Soapy style
KDDI, one of the biggest competitors to mobile phone manufacturers NTTDoCoMo in Japan has come up with three styles of design for its latest audesign project. They are amazing!

Photos of Apple’s Boston Office
Let’s take a look at Apple’s main office at Boston, it’s actually its biggest store in the state. With three floors, first for mac products, second for iphone, ipods stuff and the third for customer support.

Add rotary dialing to your iPhone
Found a really cool app for iPhone, that changes the dialing system to the old style rotary one. To install, add: http://repo.sosiphone.com as a source in Installer.

SQL: How to find and replace text in columns
I have been trying hard to find out how to go through a list of columns and find and replace some string to what I want. Most of the online tutorials use cursor to do this, but somehow it did not work for me. The following is the script that does that job nicely! It select rows from the table PageContent that has Content column containing the h1 tag and then replace them with h2.
Animal Instinct before disaster
Condolence to the victims in Si Chuang province of China, having that disaster. Though they said animals always have instinct of escaping before some disaster is going to happen to the nature. Just three days before the earthquake, residence had actually found thousands and thousands of frogs jumping around the road. It’s quite amazing…


Wordpress footer template hacked badly…
Since 4 days ago, one of my blogs which runs with great traffic started showing sign of slowing down. Never have I seen this kind of down turn before, that it seems more like a server issue or something. From 100% to 50% to 20%.
At first, I thought it was something to do with being penalised by Google due to some issues but then I didn’t put much attention as I believe, great content will always rule at the end since it is not the first time Google changed/ tested their algorithms, etc. But then when I scanned through my templates, boom! I realised that the footer template had been modified with huge bunch of spammy codes/ external links to these credit cards, loans website. WTF? Now this is why my site’s been penalised. I have no idea since when this was put in and whoever did that, screw him!
How to prompt for download image instead of opening
Sometimes when you have link to images and you don’t want them to be opened by IE but prompt for download/ save, your browser will “understand” certain file types, so if you navigate to an image file such as .gif, .jpg, .png, it will display the image because it knows how to do that. Likewise, if you have PDF extensions installed, when you navigate to a PDF file, it will display in the browser instead of download. However, if you click on an unknown file extension, it will just prompt to download.
So how do you prompt to download recognized file types? One way is to just tell your users, “Right-click and choose Save As”. Of course, that is not as fool-proof as you’d like.
The other option is to use a scripting language to stream the file to the browser. Below I’m going to post an example to serve an image (could be gif or jpg). This technique can be used to serve PDF, Excel, Word docs, etc., but you have to figure out the correct Content-Type for each.
[START PHP]
$data = file_get_contents(”img/my_image.jpg”);
header(”Content-Type: image/jpeg”);
header(”Content-Disposition: attachment; filename=my_image.jpg”);
echo $data;
[END PHP]
Use JavaScript to talk between windows pages
Was seeking a way to let different windows talking to each other. Something like a link in a pop up window, when clicked, the original window’s text box will be filled with some text. Example can be seen here.
Yahoo! Taiwan offers credit card payment in auction
Yahoo! Kimo has announced to launch online credit card payment system for its online auction section! This is a great news as previously, if you want to purchase something in the auction, you’d have to pay local or do an Internet banking transfer. But now, for sellers who met over 300 trust points, they could start accepting payment made by credit cards from the buyers. There is no annual fee for the seller, just that 2% transaction fee will be charged. That sounds like overseas buyers could also make payment in the auction now, I guess?

