Misc

test

Term 1

This is a definition with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.

Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

Second definition for term 1, also wrapped in a paragraph because of the blank line preceding it.

Term 2

This definition has a code block, a blockquote and a list.

code block.

block quote on two lines.

  1. first list item
  2. second list item

iphone!

I become a cool man from this moment , because i got a Iphone today !

New hosting !

New year , new hosting and new me !

You believe it ? it’s mine !

hahah, it’s my computer (windows xp ) security report from 360 , can you believe it ?

Let’s go!

All the things we need to have ready, so lets’ go!

Wordpress 2.9 released !

Have a look , it’s HERE and here

Test Blog post from Textmate to Wordpress

Text mate rock! as you can see, it was posted from Textmate. the awesome editor for mac user

Isn’t UTF-8 twitter by default ??

I just added a plugin for twitter on my blog, however most of people in china can’t see  them without a VPN, the problems when i enabled the UTF8 option show below

I need unchecked the Utf8 for Chinese to work well!

modified by caker from textmate for test

How to compile the AMP on snow leopard

How to compile the AMP on the snow leopard

  1. Grab staff from somewhere as you can Apache2 2.2.14 PHP5 5.3.1 Mysql 5.1.41 community version with dmg format

  2. Install the mysql server Just install the DMG package It installed to /usr/local/mysql-5.1.41-osx10.5-x86_64 and make a symlink to /usr/local/mysql by default Added a alias to your .bash_profile alias mysql=’/usr/local/mysql/bin/mysql -uroot ‘

  3. Compile Apache2 cd /path/to/apache2/src/folder ./configure –prefix=/usr/local/apache2/ –enable-module=most –enable-shared=max make sudo make install Add a alias to your .bash_profile alias apache2=’sudo /usr/local/apache2/bin/apachectl’

  4. Compile the PHP 5.3.1 cd /path/to/php5.3.1 ./configure –prefix=/usr/local/php5 -with-zlib-dir=/usr –with-iconv-dir=/usr –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql here, I got a error about iconv, found a patch from  http://fabien.potencier.org/article/37/php-5-3-0-on-mac-os-10-6-snow-leopard

--- php-5.3.0/ext/iconv/iconv.c 2009-03-16 22:31:04.000000000 -0700
+++ php/ext/iconv/iconv.c   2009-07-15 14:40:09.000000000 -0700
@@ -51,9 +51,6 @@
#include
#endif

-#ifdef HAVE_LIBICONV
-#undef iconv
-#endif

#include "ext/standard/php_smart_str.h"
#include "ext/standard/base64.h"
@@ -182,9 +179,6 @@
}
/* }}} */

-#ifdef HAVE_LIBICONV
-#define iconv libiconv
-#endif

/* {{{ typedef enum php_iconv_enc_scheme_t */
typedef enum _php_iconv_enc_scheme_t {

save code above to patch, run it from

make make test sudo make install

  1. Configure the php support for Apache2

Edit /usr/local/apache2/conf/httpd.conf and add LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps DirectoryIndex index.html index.php

重新开始英语学习

今天下班后的唯一的感觉就是自己的英语一点也不会,他们聊天大部分我都不明白,以前我觉得我的英语可以交流了, 现在看来, 只能适合非母语英语的人。差的很远,加油!!!