上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: 原文地址:http://ijonas.com/software-development/nosql/412/ 1 Installing Redis 2.6.x on Ubuntu 12.04 and running with an ‘init’ script. 2 28 Replies 3 4 Documented here are steps to getting Redis 2.6.x running on Ubuntu 12.04 onwards using an init script (previous versions of Ubuntu should work too)... 阅读全文
posted @ 2013-07-30 17:37 尹少爷 阅读(2002) 评论(0) 推荐(0) 编辑
摘要: 1 //php获取中文字符拼音首字母 2 function getFirstCharter($str){ 3 if(empty($str)){return '';} 4 $fchar=ord($str{0}); 5 if($fchar>=ord('A')&&$fchar=-20319&&$asc=-20283&&$asc=-19775&&$asc=-19218&&$asc=-18710&&$asc=-18526&&$asc=-18239& 阅读全文
posted @ 2013-07-30 17:05 尹少爷 阅读(11671) 评论(6) 推荐(1) 编辑
摘要: 1 2 3 4 118 119 120 121 122 编号123 姓名124 邮箱125 性别126 联系电话127 操作128 129 130 1131 zj1132 zj@123.com133 boy134 XXXXXXX135 136 上移137 下移1... 阅读全文
posted @ 2013-07-30 13:33 尹少爷 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 1 import types 2 x=20 3 4 print type(x) 5 6 print x.__class__ #判断x的类型 7 8 print x #x的值,20 9 10 x=12311 12 print globals() #{'__builtins__': , '__file__': 'test.py', '__package__': None, 'x': 123, '__name__': '__main__', '__doc__': None, 阅读全文
posted @ 2013-07-29 15:15 尹少爷 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://people.debian.org/~schultmc/locales.htmlThe Easy WayInstall debconf (i.e. runapt-get updatethenapt-get install debconf, as root)Rundpkg-reconfigure localesas rootThe Hard WayEdit/etc/locale.genas root. If/etc/locale.gendoes not exist, create it. An example/etc/locale.genis below.Run/usr/ 阅读全文
posted @ 2013-07-26 10:58 尹少爷 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://codewut.de/content/missing-locales-under-debianThis drives me crazy! Every time I debootstrap a debian or ubuntu machine the resulting root system will lack properly set up locales. dpkg-reconfigure locales & derivates won't help since the system does not know what locales it sho 阅读全文
posted @ 2013-07-26 10:56 尹少爷 阅读(195) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始--- 1 Meaningful Names: 2 3 4 use Intention-Revealing Names //nice,Everyone who reads your code (including you) will be happier if you do. 5 6 The name of a variable, function, or class, should answer all the big questions. It 7 should tell you why it exists, what it does, and h... 阅读全文
posted @ 2013-07-25 11:03 尹少爷 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 原文地址 http://pobeta.com/ubuntu-sublime.html, 1 2 3 /* 4 sublime-imfix.c 5 Use LD_PRELOAD to interpose some function to fix sublime input method support for linux. 6 By Cjacker Huang 7 8 gcc -shared -o libsublime-imfix.so sublime_imfix.c `pkg-config --libs --cflags gtk+-2.0... 阅读全文
posted @ 2013-07-25 09:36 尹少爷 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 这是今天我们公司线上出现的问题,http response 的信息,都添加了一个\n换行,我找了好久呢才发现,我把php页面的结束符?>去掉之后,一切正常,这个?>,我平时也是很少加上的,一开始有写的习惯,渐渐地因为他总是会导致问题,就不写了,结果今天又跌到了 阅读全文
posted @ 2013-07-23 17:08 尹少爷 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1 第一种方法 2 3 通过php的finfo_file() 4 5 $handle=finfo_open(FILEINFO_MIME_TYPE);//This function opens a magic database and returns its resource. 6 $fileInfo=finfo_file($handle,'./test.txt');// Return information about a file 7 finfo_close($handle); 8 print_r($fileInfo); 9 echo '===========&quo 阅读全文
posted @ 2013-07-22 10:27 尹少爷 阅读(489) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 13 下一页