<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="0.92">
<channel>
	<title>Alec Tang - Web Developer/ Designer/ Online Entrepreneur</title>
	<link>http://www.alectang.com</link>
	<description>A developer who always get inspired by the latest.</description>
	<lastBuildDate>Thu, 24 Jul 2008 10:24:19 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>The text, ntext, and image data types are invalid for local variables</title>
		<description>When working with sql, sometimes we have to declare a variable to hold text, ntext. But it's not going to work if we declare a varchar to hold text. It will throw error:

Server: Msg 2739, Level 16, State 1, Line 1
The text, ntext, and image data types are invalid for ...</description>
		<link>http://www.alectang.com/blog/aspnet/the-text-ntext-and-image-data-types-are-invalid-for-local-variables/</link>
			</item>
	<item>
		<title>Use RowCount for pagination in SQL 2000</title>
		<description>In SQL 2005, we usually use row_number function to do pagination, but that is not available in SQL 2000. So the following would be useful:

             DECLARE @first_id int, @startRow int
	SET ROWCOUNT @StartIndex
	SELECT @first_id = ATC_Article.id 
	FROM ATC_Article 

		INNER ...</description>
		<link>http://www.alectang.com/blog/aspnet/use-rowcount-for-pagination-in-sql-2000/</link>
			</item>
	<item>
		<title>Add/Change column data type in SQL 2005</title>
		<description>Some sql queries to remember:

To change the data type of an existing column:

alter table big_photos_temp alter column mainPhoto_id int

To add a new column

alter table big_photos_temp add mainPhoto_id intShareThis </description>
		<link>http://www.alectang.com/blog/aspnet/addchange-column-data-type-in-sql-2005/</link>
			</item>
	<item>
		<title>Baidu announced beta release of its IM</title>
		<description>Baidu has announced its beta version of messenger, called Baidu Hi!. To try it out, simply visit here.



ShareThis </description>
		<link>http://www.alectang.com/blog/webmaster-info/baidu-announced-beta-release-of-its-im/</link>
			</item>
	<item>
		<title>Chinese websites grey out for 3 days mourning</title>
		<description>As China started its national mourning for three days, most websites and major portals have been presented as grey out mode. These include all of the most used search engines in the mainland plus all entertainment websites.


Yahoo! China


Baidu China


Sina


Sohu


BT ChinaShareThis </description>
		<link>http://www.alectang.com/blog/webmaster-info/chinese-websites-grey-out-for-3-days-mourning/</link>
			</item>
	<item>
		<title>SQL: How to find and replace text in columns</title>
		<description>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 ...</description>
		<link>http://www.alectang.com/blog/aspnet/sql-how-to-find-and-replace-text-in-columns/</link>
			</item>
	<item>
		<title>Wordpress footer template hacked badly&#8230;</title>
		<description>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 ...</description>
		<link>http://www.alectang.com/blog/webmaster-info/wordpress-footer-template-hacked-badly/</link>
			</item>
	<item>
		<title>How to prompt for download image instead of opening</title>
		<description>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 ...</description>
		<link>http://www.alectang.com/blog/php-lab/how-to-prompt-for-download-image-instead-of-opening/</link>
			</item>
	<item>
		<title>Use JavaScript to talk between windows pages</title>
		<description>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.ShareThis </description>
		<link>http://www.alectang.com/blog/webmaster-info/use-javascript-to-talk-between-windows-pages/</link>
			</item>
	<item>
		<title>Yahoo! Taiwan offers credit card payment in auction</title>
		<description>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 ...</description>
		<link>http://www.alectang.com/blog/webmaster-info/yahoo-taiwan-offers-credit-card-payment-in-auction/</link>
			</item>
</channel>
</rss>
