26
Nov

Quick reference for php developing environment setup

Just for myself, you can give your comments freely if that is understandable to you as well :)

more…

18
Nov

生日感言

不知不觉已经跨过了26周岁的刻度线,摸摸下巴,恍惚间山羊胡都蛮长了

在此盘点一下收到的生日祝福:

  • 很久没有联系却最早送出生日祝福的P,感谢你让我知道什么叫做默默的关注
  • 阴差阳错打来电话的L,让我在生日当天小小的失落了一把 【放心,后面的祝福已收到】 :)
  • 我亲爱的老妹Y,啥都不说了
  • 如期收到来自Z的短信,有你这样的朋友真好
  • 老乡L的短信让我这个寿星哭笑不得,好吧,我承认生日当天是在食堂对付的
  • 送我厚礼的W,似乎记忆中很久没收到生日礼物了呢
  • 还有诸多基金公司,你们让一个客户在这个冬天感到了阳光般的温暖

生活,继续以它固有的节奏缓缓往前。每年的这个时候,我想,这种期待最是幸福。

09
Nov

Oracle中sqlplus遭遇空行的处理

最简单的例子:

  1. select *
  2. from table
  3.  
  4. where id='1'

默认执行就出错,原因在于第三行,sqlplus默认遇到空行就算结束,所以上面的命令需要加一段前缀:

SET SQLBLANKLINES ON;

好了,整个世界清净了。。。

06
Nov

Invoke 3rd party dll from PHP

Actually this article concerns the topic about invoking third-party dll(s) from the web server where php locates.

Read the following link with patience, especially with its comments part:

http://www.php.net/manual/en/ref.w32api.php

For the rest, just visit the following page:

http://ourworld.compuserve.com/homepages/Guenter_Born/WSHBazaar/WSHDynaCall.htm

And write some script like this:

<?php
$com = new COM("DynamicWrapper");
$com->Register("KERNEL32.DLL", "Beep", "i=ll", "f=s", "r=l");
$com->Beep(5000, 100);
?>

Anyway, this is just a reference for myself, and I feel glad if you benefit from it as well.