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.


Aug 24

我感觉这样的东西还要弄不少。。。。

democracy 2.0.1 最新版,后台管理以及前台显示均为中文乱码。先查JS,PHP部分均未发现源头,最后拿PhpMyAdmin查看数据库也是乱码,发现 wp_democracyQ,wp_democracyA均为letin编码而非UTF8,手动改好后,页面显示正常。

反过来再查改源码,只要在插件创建表的时候强制为UT8即可,打开 democracy.php ,第 149 行起:



CREATE TABLE {$table_prefix}democracyQ (
 id int(10) unsigned NOT NULL auto_increment,
 question text NOT NULL,
 added int(10) unsigned NOT NULL default '0',
 allowusers tinyint(1) unsigned NOT NULL default '0',
 current tinyint(1) unsigned NOT NULL default '0',
 active tinyint(1) unsigned NOT NULL default '0',
 multiple tinyint(1) unsigned NOT NULL default '0',
 PRIMARY KEY  (id),
 KEY current (current)
 ) TYPE=MyISAM CHARACTER SET=utf8;

CREATE TABLE {$table_prefix}democracyA (
  aid int(10) unsigned NOT NULL auto_increment,
  qid int(10) unsigned NOT NULL default '0',
  answer text NOT NULL,
  votes mediumint(6) unsigned NOT NULL default '0',
  added_by tinyint(1) unsigned NOT NULL default '0',
  PRIMARY KEY  (aid),
  KEY qid (qid)
) TYPE=MyISAM CHARACTER SET=utf8;

注意添加了最后的 TYPE=MyISAM CHARACTER SET=utf8 这句。

嗯,偷懒的,这里有改好的文件:


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