团购网这种模式从国外飘进来后,满地都是。我也团了几次,有些内容确实很实惠,尤其是新开张的团购网站。
列几个我常去的吧:
美团:http://www.meituan.com/
糯米团:http://www.nuomi.com/
找折:http://www.zhaozhe.com/
饭统网.饭团http://tuan.fantong.com/
我经常去的就这些了
团购网这种模式从国外飘进来后,满地都是。我也团了几次,有些内容确实很实惠,尤其是新开张的团购网站。
列几个我常去的吧:
美团:http://www.meituan.com/
糯米团:http://www.nuomi.com/
找折:http://www.zhaozhe.com/
饭统网.饭团http://tuan.fantong.com/
我经常去的就这些了
在 ubuntu 里使用 Rhythmbox 导入音乐目录后,有很多的 MP3 的 TAG 信息都显示成了乱码,这个问题应该是由文字编码引起的。
网上找到了一些解决办法,可以把MP3文件的TAG编码改成 Rhythmbox 认的,我没选这种,我是选择修改环境变量,让程序去适应编码。
编辑 ~/.profile 文件
加入:
export GST_ID3_TAG_ENCODING=GBK:UTF-8:GB18030 export GST_ID3V2_TAG_ENCODING=GBK:UTF-8:GB18030
重新登录系统后,再重新在 Rhythmbox 里导入一下音乐目录就可以了。
这里只是简单的一个说明,请根据自己的实际情况进行安装
在 Windows 下安装 PHP 的开发环境,要装的东西有
Apache、php、MySQL、文本编辑器
这里我假设安装的文件夹是 D 盘
1.先装 Apache

在安装向导中,这里有两个选择,一个是装成服务,一个是手动启动,两个都行,看自己的需要了。
装好后,修改配置文件,文件是D:\Apache Software Foundation\Apache2.2\conf\httpd.conf
修改 “DocumentRoot” 为自己的网站文件所在的文件夹
接着有一个 Directory,也改成上面的那个文件夹
再根据需要把 DirectoryIndex 改一下,可以改成 DirectoryIndex index.php index.html,就是说先打开 index.php,如果没有,就打开 index.html
2.安装 php
php下载压缩包就可以,解压到 D:\php
把 php.ini-recommended 复制一个,再改名为 php.ini
参考 php 的 install.txt 文件内容
还是先修改 apache 的配置文件,增加:
PHPIniDir “D:/php”
LoadModule php5_module “d:/php/php5apache2_2.dll”
AddType application/x-httpd-php .php
然后修改 php.ini,因为是开发用,所以把 php 的一些错误警告都打开:
display_errors = Off 改成 On
display_startup_errors = Off 也改成 On
修改扩展文件夹的设置:
extension_dir = “./” 改成 extension_dir = “D:/php/ext/”
3.安装 mysql
mysql 按向导装就好了
4.在 php 里设置 mysql
打开 php.ini
把
;extension=php_mysql.dll
;extension=php_mysqli.dll
前面的分号去掉
把 php 文件夹下的 libmysql.dll 复制到 C:\Windows 中
好了,重新启动一下 apache,测试一下吧
关于 BOM
在开发网页的时候,现在都选择 UTF-8 做为文件编码,但 UTF-8 分为有 BOM 的和 无 BOM 的,我们这里需要用的是无BOM的。
以 notepad++ 为例,可以把文件格式改成无 BOM 编码的

我的 OpenSolaris 是 2009.06 版,在 Packager Manager 里把 http://pkg.opensolaris.org/dev 加到了 publisher 里,叫做 “dev”,一开始用着没什么问题,安装新程序包都正常。后来就不行了,在安装新的包时出这个错误:
The following pattern(s) did not match any packages in the current catalog.
Try relaxing the pattern, refreshing and/or examining the catalogs:
查了网上很长时间,终于在这里找到了,地址:http://www.lildude.co.uk/cant-install-pkg-on-opensolaris-snv_127/
只不过他是只有 dev,没有 opensolaris.org 这个 publisher,我虽然有这个,但地址还是原来的 http://pkg.opensolaris.org/release,和 dev 有冲突,按 http://pkg.opensolaris.org/dev/en/index.shtml 的说法,执行:
$ pfexec pkg set-publisher -O http://pkg.opensolaris.org/dev opensolaris.org
$ pfexec pkg image-update
问题就解决了,可以装新的程序包了
Adobe Labs 发布了 flash 10 的 64 位 beta 版,去 http://labs.adobe.com/technologies/flashplayer10/ 下载一个
解压出一个 .so 文件,放到 ~/.mozilla/plugins 里(如果没有 plugins 这个文件夹就自己建一个)
重启 firefox 就可以了

我的设置应该是菜单栏不显示,下面是一条工具栏,再下面是 del.icio.us 的书签栏,就没有了
最近打开 firefox 时,经常是这个书签栏什么都没有,就是一个空条
谁有没有也遇到这种情况的?怎么解决呢?
换用 phpwind 做为论坛系统后,注册机乱注册的用户就一堆一堆的过来,为了阻止注册机的注册,启用了比较复杂的验证码,把注册文件改名、邮件验证等,做了这些之后,确实挡住了一大部分的注册机。消停了一阵后,又来了,还好,这些注册机注册时使用的邮箱都是某些固定后缀,好办了,在注册过程中禁止这些后缀的注册。
phpwind 论坛只提供了允许指定邮箱注册的功能,那不行啊,我是想禁止指定邮箱的注册,phpwind 论坛并没有提供这样的功能,在 phpwind 的官方论坛上,有不少人建议增加这个功能,直到 7.3.2 版还是没有增加。咱们只能是自己动手了。
2009.12.04注释:可以略过这段,往下看更新过的代码
好,修改注册文件,一般是 register.php,找到这些,大概是在 73 行:
if (!$email || !preg_match("/^[-a-zA-Z0-9_\.]+@([0-9A-Za-z][0-9A-Za-z-]+\.)+[A-Za-z]{2,5}$/",$email)) { echo 1; ajax_footer(); }
这段代码就是验证注册的邮箱是否合法,那好,在下面加这些就可以了:
if (strpos($email, "@designhot.net.cn")) { echo 1; ajax_footer(); }
意思就是说,如何邮箱是以“@designhot.net.cn”结尾的,那就是非法了,哈哈,搞死你注册机
要是禁止多个呢,就把这段多写几遍就好了。
还有,再找到这句:
if (empty($regemail) || !ereg("^[-a-zA-Z0-9_\.]+\@([0-9A-Za-z][0-9A-Za-z-]+\.)+[A-Za-z]{2,5}$",$regemail)) { Showmsg('illegal_email'); }
在这后面加上:
else if (strpos($regemail, "@designhot.net.cn")) { Showmsg('illegal_email'); }
同样,如果有多个要禁止的邮箱,就把上面这句多写几遍就好了。
我发现的注册机的后缀有:
@designhot.net.cn
@cpok-bdqn.com.cn
@bdqncpok.com.cn
@bdqnok-cp.com.cn
@cp-bdqnok.com.cn
@company-mail.cn
@delu(这个比较烦,有 @delu1.com、@delu8.com 等)
@newline.net.cn
@marketnet.com.cn
@hongkong-seo.com
2009.12.03更新,偶然无聊,发现老窝了,这些都是一个地方出来的:
@chongsoft.org
@wormseo.cn
@wormseo.com
@chongsoft.cn
@zyseo.com
@seorj.cn
@qqneiyi.cn
@chongblog.cn
@chongblog.com
@71mail.com.cn
@designhot.net.cn
@marketnet.com.cn
@newline.net.cn
@company-mail.cn
@cpok-bdqn.com.cn
@cp-bdqnok.com.cn
@bdqncpok.com.cn
@bdqnok-cp.com.cn
@bdqn-hicp.com.cn
@wormsoft.cn
@chongseo.net
@chongseo.cn
@chongseo.com
@huiseo.cn
@csoftmail.cn
@xdseo.com
不用说,都屏蔽丫
2009.12.04更新:
越来越多的邮箱都发垃圾,为了方便改代码,上面说的代码可以不用考虑了,用下面这个好了:
还在 register.php 文件里,先在文件开头部分,大概第10行左右,就是“if (GetGP(‘vip’) == ‘activating’) {”之前,写一个自己的函数:
function osnaile_isgoodmail($email) { $spamemail = array( "@chongsoft.org", "@wormseo.cn", "@wormseo.com", "@chongsoft.cn", "@zyseo.com", "@seorj.cn", "@qqneiyi.cn", "@chongblog.cn", "@chongblog.com", "@71mail.com.cn", "@designhot.net.cn", "@marketnet.com.cn", "@newline.net.cn", "@company-mail.cn", "@cpok-bdqn.com.cn", "@cp-bdqnok.com.cn", "@bdqncpok.com.cn", "@bdqnok-cp.com.cn", "@bdqn-hicp.com.cn", "@wormsoft.cn", "@chongseo.net", "@chongseo.cn", "@chongseo.com", "@huiseo.cn", "@csoftmail.cn", "@delu", "@hongkong-seo.com", "@xdseo.com" ); foreach ($spamemail as &$spam) { if (strpos($email, $spam)) { return false; } } return true; }
好,然后再找到这些,大概是在 73 行:
if (!$email || !preg_match("/^[-a-zA-Z0-9_\.]+@([0-9A-Za-z][0-9A-Za-z-]+\.)+[A-Za-z]{2,5}$/",$email)) { echo 1; ajax_footer(); }
后面加上:
if (!osnaile_isgoodmail($email)) { echo 1; ajax_footer(); }
再找到这句:
if (empty($regemail) || !ereg("^[-a-zA-Z0-9_\.]+\@([0-9A-Za-z][0-9A-Za-z-]+\.)+[A-Za-z]{2,5}$",$regemail)) { Showmsg('illegal_email'); }
在这后面加上:
else if (!osnaile_isgoodmail($regemail)) { Showmsg('illegal_email'); }
2010.06.04更新:
在 phpwind 7.5 中已经有邮箱黑名单功能了,只要在后台里设置好黑名单就行了
黑名单列表:
qsseo.com,seoyw.com,chongsoft.org,wormseo.cn,wormseo.com,chongsoft.cn,zyseo.com,seorj.cn,qqneiyi.cn,chongblog.cn,chongblog.com,71mail.com.cn,designhot.net.cn,marketnet.com.cn,newline.net.cn,company-mail.cn,cpok-bdqn.com.cn,cp-bdqnok.com.cn,bdqncpok.com.cn,bdqnok-cp.com.cn,bdqn-hicp.com.cn,wormsoft.cn,chongseo.net,chongseo.cn,chongseo.com,huiseo.cn,csoftmail.cn,xdseo.com,designhot.net.cn,cpok-bdqn.com.cn,bdqncpok.com.cn,bdqnok-cp.com.cn,cp-bdqnok.com.cn,company-mail.cn,delu1.com,delu2.com,delu3.com,delu4.com,delu5.com,delu6.com,delu7.com,delu8.com,newline.net.cn,marketnet.com.cn,hongkong-seo.com,shoesonlineshop.org
最近公司中层领导调整,我们部门原领导安排到别的部门去任职,换来了一个同样优秀的新领导。
原领导送我们每人一个U盘,Kingston 16G的U盘,真不错。估计市价二百多吧。

就是这个样子的,还不错
这里只是记录我用的 Emacs 的配置文件
(setq inhibit-startup-message t)
(add-to-list 'load-path "~/.emacs.d/elisp/color-theme")
(require 'color-theme)
(eval-after-load "color-theme"
'(progn
(color-theme-initialize)
(color-theme-arjen)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :stipple nil :background "black" :foreground "White" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 91 :width normal :foundry "bitstream" :family "Courier 10 Pitch")))))
(setq display-time-day-and-date t)
(setq display-time-24hr-format t)
(display-time-mode)
(show-paren-mode t)
(tool-bar-mode -1)
(setq scroll-margin 3 scroll-conservatively 10000)
(add-to-list 'load-path "~/.emacs.d/elisp")
(require 'mmm-mode)
(setq mmm-global-mode 'maybe)
;(mmm-add-mode-ext-class nil "\\.php\\'" 'html-php)
;(mmm-add-classes
; '((html-php
; :submode php-mode
; :front "<\\?\\(php\\)?"
; :back "\\?>"
; )))
(load "php-mode")
(add-to-list 'auto-mode-alist
'("\\.php[34]?\\'\\|]].phtml\\'" . php-mode))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(column-number-mode t))
(setq frame-title-format "emacs@%b")