Archive for 1月, 2008

TCP常用网络端口对照表

一月 30, 2008 in Technology

【开始-运行- CMD , 输入 netstat -an 然后回车就可以查看端口】

端口:0
服务:Reserved
说明:通常用于分析操作系统。这一方法能够工作是因为在一些系统中“0”是无效端口,当你试图使用通常的闭合端口连接它时将产生不同的结果。一种典型的扫描,使用IP地址为0.0.0.0,设置ACK位并在以太网层广播。

端口:1
服务:tcpmux
说明:这显示有人在寻找SGI Irix机器。Irix是实现tcpmux的主要提供者,默认情况下tcpmux在这种系统中被打开。Irix机器在发布是含有几个默认的无密码的帐户,如:IP、GUEST UUCP、NUUCP、DEMOS 、TUTOR、DIAG、OUTOFBOX等。许多管理员在安装后忘记删除这些帐户。因此HACKER在INTERNET上搜索tcpmux并利用这些帐户。
(more…)

CSS清理和压缩工具

一月 29, 2008 in CSS

原文:23 Resources for Clean and Compressed CSS

There are a number of free online tools that can help you to create and maintain effective [tag]CSS[/tag] coding. These tools include validators, optimizers, compressors and more. Try out a few of these tools and see how they can help you to keep more efficient style sheets.

CSS TIDY

CSS Tidy is an open source CSS parser and optimizer from SourceForge. It is available as an executable file, and there is also an online version. CSS Tidy is often able to achieve a compression ration of 30% or more. In addition to compression, CSS Tidy can also format CSS code for higher browser compatibility.

(more…)

Free OS X menubar items

一月 21, 2008 in MAC

Free MAC OS X menubar items
access web services
Amua:Control Last.fm radio streams; an alternative to the official player.
BloglinesMenu:Display the number of unread items in your Bloglines subscriptions.
Delibar:Quickly access your del.icio.us bookmarks.
DiggUpdate:View a drop-down list of front page stories on Digg.
dotMac Menu:Quickly access parts of your .Mac account and iDisk.
FMenu:Display Facebook notifications and quickly access parts of the site.
Gmail Notifier:Display the number of unread messages in your Gmail inbox.
iScrobbler:Automatically send recent iTunes track information to Last.fm.
MacBiff:Display if (and in which folders) your IMAP server has new mail.
MailCountX:Display the number of unread messages in Apple Mail.
MailTicker:Automatically see whether POP3 accounts have new messages.
Monocle:Search the web, Spotlight-like, using various engines.
MUMenu:View a list of new software on MacUpdate (checked periodically).
NetD:Look up word translations between English, Japanese, and Korean.
Reader Notifier:Display the recent unread items in your Google Reader account.
RSS Menu:Be notified of new entries in RSS and Atom feeds.
Trackerling:Quickly search for software updates on VersionTracker.
wStock:Display a scrolling stock ticker in your menubar.
YMail:Check whether your Yahoo Mail inbox has new messages.
(more…)

正则表达式入门教程

一月 21, 2008 in Technology

原文:http://unibetter.com/deerchao/zhengzhe-biaodashi-jiaocheng-se.htm

正则表达式到底是什么?

在编写处理字符串的程序或网页时,经常会有查找符合某些复杂规则的字符串的需要。正则表达式就是用于描述这些规则的工具。换句话说,正则表达式就是记录文本规则的代码。

很可能你使用过Windows/Dos下用于文件查找的通配符(wildcard),也就是*?。如果你想查找某个目录下的所有的Word文档的话,你会搜索*.doc。在这里,*会被解释成任意的字符串。和通配符类似,正则表达式也是用来进行文本匹配的工具,只不过比起通配符,它能更精确地描述你的需求——当然,代价就是更复杂——比如你可以编写一个正则表达式,用来查找所有以0开头,后面跟着2-3个数字,然后是一个连字号“-”,最后是7或8位数字的字符串(像010-123456780376-7654321)。

(more…)

Wordpress 插件 Related Posts和Random Posts

一月 19, 2008 in Wordpress

Related Posts可以针对每篇日志显示相关日志,Random Posts可以显示随机日志。
这两个插件都对[tag]SEO[/tag]有很好的作用,推荐使用。可以分别在下面的地址下载这两个插件的最新版本,并有详细的安装方法:
Related Posts这个貌似被GFW了,我使用tor代理上去下载的。激活插件后可以在后台配置页面配置相关选项,可以定义显示相关文章的数量,是否显示文章摘要。首次安装需要点击配置页面下端的链接,创建数据库表单。
Random Posts激活插件后可以在后台配置页面配置相关选项,可以定义显示随机文章的数量,可以选择是否匹配当前文章的分类、关键字等等。

Wordpress 插件 All in One SEO Pack

一月 18, 2008 in Wordpress

All in One [tag]SEO[/tag] Pack,从名字就可以看出来是[tag]wordpress[/tag]的一个seo[tag]插件[/tag],用这个插件你就可以实现wordpress的SEO整体优化。

这个插件包含许多选项,不需要额外的title插件,meta插件,tag插件,也不需要DupPrevent Plugin插件,更不用担心因为更换插件所带来的麻烦。

1、下载All in One SEO Pack并解压,上传到plugin目录;
2、登录wordpress后台控制面板激活该插件;
3、在选项菜单里面找到all in one seo选项,把里面的空白内容填完,详细填写内容见下图:
(more…)

Wordpress 2.3 可用的ELA和UTW

一月 17, 2008 in Wordpress

Wordpress升级到2.3之后,[tag]ELA[/tag](Extended Live Archive)和[tag]UTW[/tag](Ultimate Tag Warrior)都不兼容,还以为就这样就要放弃ELA和UTW了呢,等了一段时间,现在终于出来了兼容[tag]Wordpress[/tag] 2.3的ELA和UTW.
下载地址如下:
ELA(Extended Live Archive)
UTW(Ultimate Tag Warrior)

100个出色的Wordpress Theme

一月 16, 2008 in Wordpress

原文:100 Excellent Free WordPress Themes

1. Vibrant WordPress Themes

PFO Stripes [ Demo ]

WordPress Theme

(more…)

终于用上了wordpress permalinks

一月 13, 2008 in Wordpress

由于刚开始玩Wordpress的时候对Wordpress不是很了解,在开始的时候就没有使用永久链接,后来尝试着用,设置了几次都没有成功,都是按照正常的方式,先安装rewrite,创建.htaccess文件,并且有写入权限,然后再wordpress后台设置,不管使用哪一种结构都不成功,用IE的话主页打不开,用firefox的话,提示我的主页循环重定向,搞不清什么原因,在网上也没有找到相关资料,好在我写东西也不是很多,blog内容也没有多少,就先不管了。

不过一直放不下,反反复复试了和多次,因为我是自己的主机,所以就比较方便,在另外一个路径又装了一个Wordpress,设置Permalinks,一次就成功了,证明不是主机的问题。

继续研究,我原来的wordpress,后台设置里面“WordPress 网址”和“Blog 网址”是不同的,wordpress安装在一个子目录里面,怀疑是这个原因,就重新设置了一下路径,结果问题依旧,而且在网上查“WordPress 网址”和“Blog 网址”不同,是不影响Permalinks的。
(more…)

UBUNTU安装OPENFIRE

一月 09, 2008 in UBUNTU

首先[tag]UBUNTU[/tag] Server的安装就不说了,可以查看本站的这篇文章,[tag]openfire[/tag]需要LAMP,安装服务器的时候选择该选项。
1、安装phpmyadmin,可以直接在新立得软件包里面选择完成安装;
2、设置mysql root帐户密码:

  1. $ mysql -u root
  2. mysql> GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY "123456";

3、用phpmyadmin建立一个名为“openfire”的数据库,整理格式选择”utf-8_unicode_ci”
4、下载openfire,ubuntu下面当然是下载deb格式的,当前最新版本为3.4.3,官方下载地址,也可以在本站下载
(more…)