Aug 26

以前用改过的 wp-define ,升级了用不了咯,有人参照它写了个 def-link,拿来看了一下,大体上蛮好的,还能导入 wp-define 以前的数据。

不过为啥要改呢。。?它的代码太烦了。。你拿去和wp-define比较一下就知道了,它的filter写得无比复杂,既然wp-define以前就能很好工作,为啥要把事情复杂化呢?

所以我参照以前的wp-define精简了大部分代码,当然也修正了关键词不能使中文那些问题,主要的改进:

  • 无论关键词还是释义都能完美支持中文(UTF8);
  • 一篇文章中的被定义某个单词只在第一次出现时显示一次,大小写敏感;
  • 不需要空格也能认出定义单词;
  • 重新定义关键词的相关设定,下面会详细介绍;
  • 在不影响功能的前提下大幅精简了代码

The player will show in this paragraph

如上图一个关键词现在有3个定义,Name,Definition,Hyperlink。Name就是需要被定义的单词本身了,Definition就是你将对这个单词或者缩写词做的定义,它将以鼠标悬停提示(Tips)的形式在正文中表现出来,而Hyperlink是点击这个关键词所去到的链接。如果你是从wp-define导入数据,Hyperlink这栏内容将会是空的,不过插件也对这个做了处理,如果Hyperlink留空,点击这个关键词将会自动转到 Acronyms Dictionary进行缩略词查询。

原本的添加,编辑关键词界面都在下方,当关键词列表很长时非常不便,现在我把这两个框复制了一份到页面上方,其中编辑界面点击“Click To Show EditBox“就行了。当然,我们最终希望可以像Wordpress 2.0的类别管理那样用上AJAX就完美了。

实例:

  • Name,Definition,Hyperlink都有定义的时候,我定义的是AvP而不是AVP也不是avp;
  • 当Hyperlink留空的时候,点击POS这个词就会转到Acronyms Dictionary网站;
  • 中文关键词也没问题,看看这个,金盾很好,很强大,OYE :oops:

安装:

没什么特别的,把 def-link-manage.php 扔去 wp-admin 目录下,def-link.php 放到 plugins 目录,然后在后台激活就行了;后台在: 管理-Def-Link界面下。

English:
This plugin will automatically refer any text from your post to definition (or abbreviation), link or other something (made by your self) you have inserted in your database for that certain text.

Compatibility
Wordpress 1.5,2.2.x or later

Installation

  1. Download the plugin (v. 1.5):
  2. Put def-link.php into wp-content/plugins/ directory
  3. Put def-link-manage.php into wp-admin/ directory
  4. Activate the plugin from Wordpress administration menu.

Usage
Enter menu Administration->Manage->Def-Link You can add, edit or delete the definition, link or custom here .


Aug 26

虽然说都步入Vista时代了,不过命令行始终有它独特的魅力,下面要推荐的3款软件都是多窗口的命令行Windows版本,嗯,它们都支持Visual Style(这是我最不能容忍系统CMD窗口的地方>_<)。

第一个是 JPSoft TCI - Tabbed Console Interface

The player will show in this paragraph

可在一个多页面窗口内同时运行多个控制台程序 (比如4NT, CMD, bash, Monad, 等等.).

  • 可连接或断开某个控制台进程;
  • 在各个控制台页面间复制粘贴数据;
  • 通过定制工具条快捷方式向各个页发送命令数据;

下载:



第二个是: PowerCMD


高度可定制的界面配置;

高亮显示搜索结果;

显示命令行的环境参数;

自动完成功能;

可以集成到资源管理器右键菜单中,随时调用它;

历史记录以及自动完成功能;

全方位的文字编辑功能。

下载:



最后一个Console是免费软件(Freeware),所以功能上比较简单,不过一般也足够用了:


Aug 26

Tor 大家都熟了吧,无数的集合版本让它普及的很快。不过 Tor 致命的缺陷就是速度太慢,而且现在有很多“陷阱”节点。

嗯,如果你也觉得 Tor 太慢,可以试试 Your Freedom 。

Your Freedom 是一款类似 Tor (其实我觉得它更像 JAP),是欧洲(德国?)某公司开发的用于穿透防火墙和内容过滤的代理软件。

与 Tor 做简单比较的话,YF 的优点主要体现在绝大多数情况下它比 Tor 要快(深圳电信),而且本身直接支持 HTTP 和 Socks 代理,图形界面设置比较方便,也支持二级代理。

缺点呢,你必须安装 SUN JAVA 1.4.2 +,这东西有 10 几 M ...程序本身倒是不大,1 M 多吧,而且使用前你必须(免费)申请一个帐号(是否通用未知)。

下面介绍如何使用它:

1、在 YF 的网站上 注册 一个用户,需要电子邮件验证,所以不能乱填;
2、下载 并安装YF;
3、运行,使用向导建立最基本的配置,如果上网环境不涉及代理,基本不用改动什么,让它自己查找最合适的节点群;
4、默认参数就能很好的工作,HTTP 代理开在 8080 端口,SOCKS 开在 1080 端口,当然你也可以 DIY

补充下,有防火墙的要允许 JAVAW.EXE UDP/TCP 出站。


Aug 24

唉,我说的没错吧。。。

simple-tagging 也不能用中文做 Tag ,显示乱码,这个改 simpletagging.admin.php 第507行这里:


$res = $wpdb->get_results("CREATE TABLE $tablename "
. $this->sTagObj->tablestruct
." type=myisam default charset utf8");

注意第三行:." type=myisam default charset utf8 这段哦。。

嗯,改好的文件 :


Aug 24

DEF-LINK: XHTML POS MP3 HDMI POS如果不分隔能显示NOS吗?我要赞美金盾工程呼啦啦。。。AvP

The player will show in this paragraph

Animated Collapsible DIV
Author: Dynamic Drive
Note: Last updated June 27th, 07'. Added ability for a DIV to be initially expanded.

Description: This script collapses any DIV on the page and lets users manually toggle its appearance via a smooth "Web 2.0 style" animation. It's a popular effect on social networking/ comment sites such as Digg. Three distinguishing features of this script are:

The ability for the script to work on both DIVs that have an explicit CSS height attribute defined, and without. In the later case, the script will first hide (versus collapse) the DIV until retrieving its true height on page load.
A persistence feature that if enabled will remember if a DIV has been expanded, and upon the user's return to the page within the same browser session, keep it expanded.
The duration of the animation is absolute and user configurable, such as 1.5 seconds. This means regardless of the height of the DIV, the script will take 1.5 seconds to finish revealing it. This creates a uniform period before a DIV is revealed regardless of its height.
By default the script will dynamically collapse the DIV in question when the page loads. You can optionally specify that the script leave the DIV expanded instead.


[58/59]  «< 50 51 52 53 54 55 56 57 58 59 >