Categories
Archives
Meta
Twitter: kukat- Razer Naga 入手! 01:24:32 PM August 16, 2010 from Tweetie for Mac
- @kingheaven 笑而不語 06:16:17 PM August 10, 2010 from Tweetie for Macin reply to davidx_me
- 而且更便宜了 wifi 版 $139 wifi+3g 版 $189 04:24:53 PM August 06, 2010 from V2EX
- 准备入手Kindle 3! 话说早就想入个电纸书了,看着k3是在忍不住了 #原生中文支持 #终身免费3G 下个月同事去米果开会,让他给我带一个,嗯嗯! 04:24:04 PM August 06, 2010 from V2EX
- 换成 Nginx 0.7.67 + Passenger 2.2.15了 12:00:50 PM August 05, 2010 from Tweetie for Mac
- 折腾…Rackspace Cloud Server + Ubuntu 10.04 + Nginx 0.8.47 + Mongrel cluster 1.0.5 + Ruby 1.8.7 + Rails 2.3.5 + MySQL 5.1.41 + RedMine (trunk) 01:57:15 PM August 04, 2010 from Tweetie for Mac
- @kingheaven 买啥了? 08:41:54 AM August 03, 2010 from Tweetie for Macin reply to davidx_me
- MongoHub is a native mac GUI application for mongodb. 03:52:52 AM August 03, 2010 from Tweetie for Mac
- 勇敢的少年阿,快起床照鸡鸡! 04:35:29 PM August 02, 2010 from Tweetie for Mac
- @eddielxy 凑热闹 LOL 12:13:24 PM August 02, 2010 from Tweetie for Macin reply to eddielxy
Category Archives: Technologies
上一篇/下一篇
文章页面 article.php?id=5 1234567891011121314151617<?php $id = $_GET[’id’]; // 查询文章内容 $article_sql = "SELECT * FROM `article` WHERE `id` = {$id}"; // 略 // 查询上一篇文章的ID $prev_id_sql = "SELECT `id` FROM `article` WHERE `id` < {$id} limit 1"; // 略 echo "<a href=\"article.php?id={$prev_id}\">上一篇</a>"; // … Continue reading
Ubuntu 下 Objective-C 开发环境
装一堆东西先 1sudo apt-get install build-essential gnustep gobjc gnustep-make libgnustep-base-dev gnustep-devel 编辑 .bashrc 加入 1234#set GNUstep GNUSTEP_ROOT=/usr/share/GNUstep export GNUSTEP_ROOT source /usr/share/GNUstep/Makefiles/GNUstep.sh 写段小程序测试下: 建个目录 test 1mkdir test 创建文件hello.m,内容如下 12345678910111213141516171819202122232425262728293031323334#include <stdio.h> /* * The next #include line is generally present in all Objective-C … Continue reading
ubuntu上自动安装windows TTF字体
有时候你错失了网页上好看的字体,有时候你想作点设计,或者你想把什么东西弄的漂漂点。可是,大多数字体都是truetype格式的,这种格式在ubuntu上使用起来有点小问题。 当然了,在ubuntu上安装TTF字体也不是很复杂,但在你要安装字体的时候总是重复的做这些工作是很无聊的。这也是我为什么要用C写这个小应用程序的原因,它把这一切操作全包了。 首先从 这里 下载。然后解压,打开终端,用cd命令进入解压出来的目录。 在这个目录里执行 1sudo cp ttfinstall /bin/ 现在 ttfinstall 在你的系统里了,现在你安装字体就要方便的多了,我们来试试看:
QeePHP 针对复杂的表单手写 Form view
如果在项目里能统一表单的样式布局肯定是最好的了,可能你只需要定义一两个general_form_element.php放在_element 里,view里调用< ?php $this->_element(‘general_form’, array(‘form’ => $form)); ?>就可以了 但很多时候表单复杂了,布局改变了你就得去改general_form_element.php,而改了这个文件又会影响其他表单,当你不想为这个特殊的表单创建一个_element,那就手写吧 说明:这不符合 qeephp 的思想,不推荐
The repository for Debian-based LAMP servers
Ubuntu 源里的 php 版本版本过低?更新太慢?懒得自己编译? 没关系,dotdeb 就是干这事的。 About Dotdeb is a repository containing many packages for the Debian stable (aka ”Etch”) distribution : PHP versions 4 & 5 and many of their PECL extensions, MySQL versions 5.0 and 5.1, Qmail, Vpopmail… … Continue reading