2008-12-21 9:37 Sunday
一群人反复靠近 反复酝酿必要的情绪 和
不必要的冲动
我站在菊的后面 萍的左面 指挥的反面 和
欲望的中间
直对着我的校门
我高声歌唱 声音被领唱打断 被合唱淹没
被肺粗暴地压迫
当铃声响起时 我流下忧虑的泪水 因为这群人
即将解散 分赴祖国各地 退为荣誉成员
站台上 一片混乱的景象 我们和民工一起 向着
火车招手 招着招着 萍就不见了
死于火车远去的方向
这是五年以后的事情
我 我们 唱过许多歌 和 不是歌的练习曲
唱过山中故乡和水上海鸥 无望的爱和奋勇的前进
菊说 能进合唱团多好啊
夜里浑身酸疼
依稀好像捧着一本书
依稀又读到了这些语句
于是 依稀又想起了一个人的名字——杜马兰
读他的诗 会让你感悟生活中的心疼
读他的诗 会告诉你 我们为什么不歌唱
读他的诗 会让你带着希望快乐地生活!
标签: 其它
2008-12-11 14:08 Thursday
记录一个,Smarty是很聪明的
ob_start();//开启缓冲区
$smarty->assign(“a”,$a);
$smarty->display(”temp.html”);
$html_content= ob_get_contents(); //读取缓冲区的数据
ob_end_clean();//关闭缓冲区
$htm_content里头的东西就是想要的东西了,将它写入页面就可以了。
标签: PHP
2008-11-6 20:12 Thursday
时间:08年11月6日
地点:奥体中心



虚拟机
介绍了两款产品及Drmo:Windows Server 2008 Hyper-V与Windows HPC Server 2008
SQL Server 2008
按老外的说法:很快很漂亮!
Visual Studio 2008
这个不用介绍了,2010版本将会2009年底推出,支持Surface开发等。
云计算
以前是"Hello World",现在是"Hello Cloud"的时候了!
WPF & Silverlight
腾讯展示了两款Silverlight开发的产品:滔滔与QQLive的酷炫版,另外还展示了实验中的不同技术开发的QQ,其中包括用Silverlight开发的网页版。
Windows Azure
用于云计算的操作系统
Surface
支持多点触摸的玩意
提出了由图形化人机界面(GUI:Graphical User Interface)向自然人机界面(NUI:Natural User Interface)转变的必然性,现场进行了震撼的交互Demo和视频Demo。
Windows Live Mesh
从Live Mesh可以看出,微软已迈出从PC领域转型到“云计算”最为野心勃勃的一步,并将重新取得主导权。
总结:
这次大会,介绍的大部分新技术都是基于云端计算,云计算将会是大势所趋,也是微软这次向开发者力推的新的技术趋势。另外一个信息就是:微软将来的操作系统,都会支持多点触摸操作。Coder们,你们准备好了吗。
2008-10-28 12:00 Tuesday
手机的又一个惊天秘密!!你发现了吗?所有的手机都无法解决的一个毛病,你的有吗?据荷兰通信权威发现,今年所有手机计算器用2008除以8.032,屏幕会自动显示机主姓名,很奇怪、很神话的事情,暂时无人能破解其中奥秘。
2008-10-5 9:08 Sunday
郁闷,我不会用phpMyAdmin自带的那个setup步骤配置,一直都是直接通过改config.ini.php来配置的
过程如下:
1.从phpMyAdmin/libraries/下拷贝config.default.php到phpMyAdmin下,并改名为config.ini.php
2.用editplus或其它编辑器打开phpMyAdmin/config.ini.php,修改:
$cfg['PmaAbsoluteUri'] = 'http://127.0.0.1/phpMyAdmin';//phpMyAdmin的安装路径
$cfg['blowfish_secret'] = 'hejone';//加密密匙,可随意更改。
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL的主机名称或者IP地址
$cfg['Servers'][$i]['port'] = '3306′; // MySQL端口 - 空白将用默认端口3306
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // 认证方式 (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL用户,如 root
$cfg['Servers'][$i]['password'] = 'pswd'; // MySQL用户密码
3:保存
搞定 !
标签: PHP
2008-9-20 17:49 Saturday
次贷危机、雷曼破产、美国五大投行倒了仨,英国诺森罗克银行遭储户挤兑。
最近的经济形势,对很多人来说就像一张考卷,对我也是这样,如果做对了,会赚点小钱,做错了也不会有太大的损失。毕竟我在股市上投入的不多。
但是,如果经济一直这么下去的话,肯定会影响明年的收入。
唉,不怕人说我俗!谁让我太需要钱了呢~
发点牢骚而已,抓紧看《货币战争》!
另,书本上说的只有资本主义才有的倒牛奶事件也发生在中国了,可怜的那些奶农,成了无良商家的牺牲品。
标签: 其他
2008-8-23 22:49 Saturday
Nginx :
Here's my configure in nginx.conf:
if (!-e $request_filename) {
rewrite ^/latest-links/.htm[l]?$ /index.php?list=latest last;
rewrite ^/top-hits/.htm[l]?$ /index.php?list=top last;
rewrite ^/latest-articles/.htm[l]?$ /index.php?list=latestarticles last;
rewrite ^/(.*)detail/link-(.*)\.htm[l]?$ /detail.php last;
rewrite ^/(.*)articles/article-(.*)/.htm[l]?$ /article.php last;
rewrite ^/(.*)authors/author-(.*)\.htm[l]?$ /author.php last;
rewrite ^/(.*)page-[0-9]+\.html$ /index.php last;
rewrite ^/(.+)\.html$ /page.php?name=$1 last;
rewrite ^/(.*)$ /index.php last;
}
Apache:
Here’s my modified .htaccess file:
#################################################
## Apache Server Settings ##
#################################################
# Prevent .htaccess and .htpasswd files from being viewed by web clients
<Files "^\.ht">
Order allow,deny
Deny from all
</Files>
# Protect files
<Files ~ "^(.*)\.(inc|inc\.php|tpl|sql)$">
Order deny,allow
Deny from all
</Files>
# Protect directories
<Files ~ "^(backup|files|images|include|lang|libs(/.+)?|temp(/.+)?|templates(/.+)?|javascripts(/.+)?)$">
Order deny,allow
Deny from all
</Files>
# Disable directory browsing
Options -Indexes
# Follow symbolic links in this directory
Options +FollowSymLinks
# Override PHP settings that cannot be changed at runtime
# (If your server supports PHP settings via htaccess you can comment following two lines off)
# php_value register_globals 0
# php_value session.auto_start 0
# Customized error messages
# ( If you are running in a subfolder please add it, example: "directory/index.php?httpstatus=404" )
ErrorDocument 404 index.php?httpstatus=404
# Set the default handler
DirectoryIndex index.php
# URL rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine On
#Make sure RewriteBase points to the directory where you installed phpLD.
#Example: "/phpld" if your installation is in a "phpld" subdirectory.
#RewriteBase /
##Latest Links Rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^latest-links\.htm[l]?$ index.php?list=latest [QSA,NC,L]
##Top Hits Rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^top-hits\.htm[l]?$ index.php?list=top [QSA,NC,L]
##Latest Articles Rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^latest-articles\.htm[l]?$ index.php?list=latestarticles [QSA,NC,L]
##Details Link Page Rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.*)detail/link-(.*)\.htm[l]?$ detail.php [QSA,NC]
##Article Page Rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.*)articles/article-(.*)\.htm[l]?$ article.php [QSA,NC]
##Author Page Rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.*)authors/author-(.*)\.htm[l]?$ author.php [QSA,NC]
##Pagination Rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.*)page-[0-9]+\.html$ index.php [QSA,NC,L]
##Pages redirect
RewriteCond %{REQUEST_URI} !page-[0-9]+\.html?$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)\.html$ page.php?name=$1 [NC,QSA,L]
##Category redirect
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
2008-8-22 14:12 Friday
可以用下面一个来自google的函数,.
function _uFlash() {
var f = "-", n = navigator;
if (n.plugins && n.plugins.length) {
for (var ii = 0; ii < n.plugins.length; ii++) {
if (n.plugins[ii].name.indexOf('Shockwave Flash') != -1) {
f = n.plugins[ii].description.split('Shockwave Flash ')[1];
break;
}
}
} else if (window.ActiveXObject) {
for (var ii = 10; ii >= 2; ii--) {
try {
var fl = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + ii + "');");
if (fl) {
f = ii + '.0';
break;
}
} catch (e) {
}
}
}
return f;
}
//alert(_uFlash());
标签: Flash JavaScript
2008-7-31 17:59 Thursday
//删除所有Sprite
while(this.numChildren > 0) {
this.removeChildAt(0);
}
标签: Flash