bone's profilebone, My CC98.orgPhotosBlogLists Tools Help

bone

Occupation
Location
TG of CC98.org
Photo 1 of 1
7/7/2006

此Spaces关闭

换了个Live ID

换了个Spaces

欢迎大家去我的新spaces做客

http://lazybonebone.spaces.msn.com

记得把友情链接也改过来哦

6/8/2006

Word Cpu 2006

更新歌曲,送别每一支离开的球队...

 

Go West

(Together) We will go our way
(Together) We will leave someday
(Together) Your hand in my hands
(Together) We will make our plans

(Together) We will fly so high
(Together) Tell all our friends goodbye
(Together) We will start life new
(Together) This is what we'll do

(Go West) Life is peaceful there
(Go West) In the open air
(Go West) Where the skies are blue
(Go West) This is what we're gonna do

(Go West, this is what we're gonna do, Go West)

(Together) We will love the beach
(Together) We will learn and teach
(Together) Change our pace of life
(Together) We will work and strive

(I love you) I know you love me
(I want you) How could I disagree?
(So that's why) I make no protest
(When you say) You will do the rest

(Go West) Life is peaceful there
(Go West) In the open air
(Go West) Baby you and me
(Go West) This is our destiny (Aah)

(Go West) Sun in wintertime
(Go West) We will do just fine
(Go West) Where the skies are blue
(Go West, this is what we're gonna do)

There where the air is free
We'll be (We'll be) what we want to be (Aah aah aah aah)
Now if we make a stand (Aah)
We'll find (We'll find) our promised land (Aah)

(I know that) There are many ways
(To live there) In the sun or shade
(Together) We will find a place
(To settle) Where there's so much space

(Without rush) And the pace back east
(The hustling) Rustling just to feed
(I know I'm) Ready to leave too
(So that's what) We are gonna do
What we're gonna do is
Go West) Life is peaceful there
(Go West) There in the open air
(Go West) Where the skies are blue
(Go West) This is what we're gonna do

(Life is peaceful there)
Go West (In the open air)
Go West (Baby, you and me)
Come on, come on, come on, come on
Go West (This is our destiny)


(Go West) Sun in wintertime
(Go West) We will feel just fine
(Go West) Where the skies are blue
(Go West) This is what we're gonna do

(Come on, come on, come on)
(Go West)

(Go West)
(Go, ooh, go, yeah)
(Go West)
(Go, ooh, go, yeah)
(Go West)
(Go, ooh, go, yeah)
(Go West)
(Go, ooh, go, yeah)
(Gimme a feelin')
(Gimme a feelin')
(Go West)
(Gimme a feelin')
(Gimme a feelin')
(Go West)
(Gimme a feelin')
(Gimme a feelin')

5/26/2006

Blog post test

It is a blog post test. Now I am using Microsoft Office 2007 beta2 to post blog on my MSN Space.

4/28/2006

定制排序

    这个学期开始以来今天算是第一次写代码到半夜了。快五一假期了,学习心思也没了,写代码灵感也有了一些,趁今天没别的事情做就把定制排序功能写好吧。
    定制版面如果在服务器端排序无遗会大量占用服务器资源,原先的显示定制版面的方案是这样的
    先从user表里面select出customboard那个字段,这个字段的格式类似于'16,21,1,109,15'也就是用逗号将定制版面的id隔开,然后在数据库查询 'select * from board where boardid in' & customboard
    然后再用rs一条一条的显示,显然,这样select出来的版面顺序是按照boardid的顺序排列的。
    以前有想过先吧customboard这个字符串分隔成数组,每个元素保存一个定制版面的id,再每个元素进行一个数据库查询,这样,显示出来的顺序就是按照customboard这个字符串里面id出现的顺序排序了。很显然,这样做对于服务器资源的开销是巨大的,有多少个定制版面就会有多少个查询。
    后来想到了改进方案。就是原先的方案,查询得到每个版面的数据,并不直接输出,而是存到数组里面,再把这个数组按照customboard的顺序排序,再输出就好了,资源开销比原来稍大,不过也应该在可以接受范围内吧。
    且慢,既然已经这样想了,那么为什么不能在客户端进行排序呢,占用客户端的资源。我们说,要假设客户端的运算能力无限,把不重要不机密的数据放到客户端运算。
    于是,就把每个版面的数据,在服务器端输出到构建好的javascript脚本中,因为javascript的数组还可以用字符串来作为索引,所以更方便了,排序都不需要,直接拿customboard里面分离得到的boardid把数组元素调用出来显示就好了。
    虽然说说简单,不过写asp和javascript杂糅在一起的程序却是很头痛的,很考验耐性和思路的清晰性,一不小心就会搞错到底这是在服务器端的输出还是在客户端的输出。调试了无数次终于正常了,不过代码上难看是难看了点。
    剩下一个小问题就是更改定制排序的功能,纯asp的,不用像上面那样思维在服务器和客户端直接切换来切换去了,倒也简单,十分钟就搞定了。
 
    javascript依然不是很熟,写的时候语法错误不断,有一段时间完全被语法卡牢了,不是忘记每行语句后面的分号就是括号用错,sigh……
 
    现在就剩下修改界面了,在定制版面附件加上提升和下沉的按钮。等明天找几个pp点的图标当按钮放上去。
4/25/2006

医学生的悲哀

    读7年也就不说什么了,读完还有3年专科实习,不然不给在医院工作。三年里面没工资,最多几百块补贴,几百块能干啥?我写一天代码也就几百块了吧。开始赚钱了,那是30岁以后的事情,等日子舒坦了,那是40岁以后的事情,50岁可能可以很有钱,那个时候有钱又有屁用,再多钱也买不回青春了。悲哀啊……
4/23/2006

回杭州

    家里怎么睡怎么累,自己都搞不懂了,每次睡醒以后觉得比睡前还累。受不了了幸好也星期天了,还是回学校舒服。
    本来打算坐1点半的车来杭州,买票的时候赫然发现2点13的车有坐位,于是买了2点13的票,结果那车晚点到2点半。至少有坐位……
    火车上面昏昏沉沉看了会儿报纸,火车站的饮料那是杀人的贵,一个雀巢绿茶卖4块,还没金盖的。下车以后坐21路,4点多的样子,更挤,路上还堵车,于是就在车上睡觉了,闷是闷了点。
    晚饭还没吃,饿……就是不想吃。每次从家里回来以后脑子都空掉一般,不知道做什么好。
4/7/2006

说是早点睡那是鬼话

    在医学院,尤其是快考试的时候。说早点睡那是鬼话,说是早上才睡的,这才是符合实际的。常常能看到自修教室灯一直能亮到早上。完全不喜欢这种学习方式啊……