Category Archives: the BLOG

Testing Syntax Highlighter

SQL:
[code=sql]
select * from test
update test set a=’b’ where a=’a’
delete from test;
[/code]
C#:
[code=c#]
protected void Page_Load(object sender, EventArgs e)
{
// Connect to the Database
MySqlConnection myConnection = new MySqlConnection(ConfigurationSettings.AppSettings[“SQLConnectionString”]);
string SQL_QUERY = “SELECT * FROM table”;
MySqlCommand myCommand = new MySqlCommand(SQL_QUERY, myConnection);
myConnection.Open();
rptRSS.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConnection);
rptRSS.DataBind();
myConnection.Close();
}
[/code]
HTML:
[code=html]

1 / 2





?

?

+ wELCOMe + IE 6.0 +
1024×768

***

wEB lOg —->

***

cYCLISt lOg —->

***





















[/code]
XML:
[code=xml]
-
-
-
-
-
-
-
-










-





-
1
2006-03-20T14:40:21.6406250+08:00
a
a
a

-
2
2006-03-20T14:40:51.7500000+08:00
1
2
3

-
3
2006-03-20T14:55:35.8906250+08:00




-
4
2006-04-04T23:06:54.7031250+08:00
gf
sf
fasf

[/code]

使用js读取url中的参数

我在我的blog中使用了这个函数,用javascript读取url的参数,并且传递给server端的程序,从数据库中取得对应的数据。
感觉很有成就感,以后就可以直接把日志的URL直接发给朋友了,比如这篇( [url]http://www.doyouajax.com/default.aspx#id=38[/url] )
hoho
(lol)
[html]
[/html]

新增加了 "运行代码" 的UBB

新增加了 “运行代码” 的UBB
Server端的代码写得很乱,基本上是用正则表达式替换实现各类UBB的,但是考虑到[CODE]和[HTML]标签中可能出现与UBB代码冲突的情况,用了很多判断和临时存储变量。。。也许一开始我的思路就是错的。。。:'(头晕ing
不多说了
测试一下先
hoho
[html]




CSS Tables

?
Configurations Dual 1.8GHz Dual 2GHz Dual 2.5GHz
lipeng M9454LL/A M9455LL/A M9457LL/A
mapabc Dual 1.8GHz PowerPC G5 Dual 2GHz PowerPC G5 Dual 2.5GHz PowerPC G5
地图名片 900MHz per processor 1GHz per processor 1.25GHz per processor
图秀卡 512K per processor 512K per processor 512K per processor






















[/html]

Ajax Blog Bug Fix

This bug occurs when navigating thru months after reading an article.
[b]Sympton: [/b]Each time clicking previous month/next month, the CAPTCHA image page is reloaded.
[b]Cause: [/b]After reading an article,we click the cross on the top right corner to *close* the article panel. But as a mater of fact, the panel is not literally *closed* and disposed,it is just hidden from the user.
[b]Fixie: [/b] Hide the article panel and set the innerHTML of the panel to String.Empty.

AJAX Bug(?) and Next Step.

I have tested my blog and to my relief the bug known as “scripting error after consecutive clicks (submits maybe?)” doesn’t appear to exist on this system.(lol)
But of course there’s a lot yet to be done.
Next step is to add a functionality that creates a static page of the content when I post a new article.This is essential because it is a known fact that traditional AJAX technology is not “search engine friendly” since searching bots/crawlers are not expected to follow javascripts.

Upload Functionality Added…

Yes I’m lazy…I confess…
I used an IFrame and embeded the upload.aspx file in the IFrame so that it uploads files without refreshing the entire page but we all know this is just a hack.
But I will get it done asap,I promise.8o|
(lol)
ps. Glad to see that my virtual host provider *finally* decided to assign a full priority to ASP.NET user. I’d been suffering from the lack of sufficient write priority during the past few weeks.(W)

Added an Archive Feature,but…

Yes the *archive* allows you to review you back posts in chronicle order,which is extremly useful when you have a ton of information.
But ironically,alghough I have tried out some five or six blogging systems,none of them ever lasted for more than half a year.
I don’t know what the life span of this one will be but I sure hope it will last long and I hope than I can perfect it gradually.(G)