工具

使用google查询和显示各种公共数据:包括人口、最低工资、出生率等等

地址: http://www.google.com/publicdata/home

Data visualizations for a changing world

The Google Public Data Explorer makes large datasets easy to explore, visualize and communicate. As the charts and maps animate over time, the changes in the world become easier to understand. You don't have to be a data expert to navigate between different views, make your own comparisons, and share your findings.

Explore the data
Students, journalists, policy makers and everyone else can play with the tool to create visualizations of public data, link to them, or embed them in their own webpages. Embedded charts and links can update automatically so you’re always sharing the latest available data. Here’s an example of an embedded visualization:

砖头四国(bric)人均gdp比较

帮你检查网站相应速度和提供如何改善建议的在线工具

帮你检查网站相应速度和提供如何改善建议的在线工具
http://www.websiteoptimization.com/services/analyze/
有帮助。

一个压缩高质量ipod格式视频的脚本程序

diveintomark.org的作者参与的自由软件项目。
http://code.google.com/u/pilgrim/

我关注的是

http://code.google.com/p/podencoder/
This is a small (one file!) script for Linux users who want to encode video for fifth-generation video iPods. Its focus is on high-quality encodes (at the expense of being quite slow on older machines). It can encode one or more tracks from a physical DVD, ripped DVD (VIDEO_TS folder), or a video file in any format readable by mplayer/mencoder.

帮同事找一款彻底删除硬盘数据的自由软件:eraser

硬盘的工作原理是你删除了文件,其实文件还在硬盘上,只是操作系统标注这块地方可用,以后有新数据可以再往那快地方写罢了。

要真正删除数据只有一个方法:反复往硬盘写无意义的数据,写上千遍,这样,就很难找到开始时的数据了。

举个例子,如果一张白纸比喻成硬盘。那么你在用圆珠笔写字。字是不能擦的。你要写新的字,直接写在以前字上面。新的字自然会盖住下面的字,但有些下面的字还是能认出来的。如果你往纸上写1000层无意义的字,你开始写的什么字理论上应该被覆盖得完全看不出来了。

这就是我理解的彻底删除数据软件的工作方式。

好了,说这款自由软件。是工作在windows上的。因为同事用windows。

下载: http://heidi.ie/eraser/download.php

介绍:

Eraser is an advanced security tool (for Windows), which allows you to completely remove sensitive data from your hard drive by overwriting it several times with carefully selected patterns. Works with Windows 95, 98, ME, NT, 2000, XP, Vista, Windows 2003 Server and DOS.
Eraser is Free software and its source code is released under GNU General Public License.

The patterns used for overwriting are based on Peter Gutmann's paper "Secure Deletion of Data from Magnetic and Solid-State Memory" and they are selected to effectively remove magnetic remnants from the hard drive.

Other methods include the one defined in the National Industrial Security Program Operating Manual of the US Department of Defence and overwriting with pseudorandom data. You can also define your own overwriting methods.

Erase files and folders securely.

http://www.heidi.ie/node/6

参考: http://www.forensicswiki.org/wiki/Eraser

试用了一下midori,基于webkit引擎的网页浏览器

项目主页在这里
http://software.twotoasts.de/index.php?/pages/midori_summary...

好处应该是速度快。功能和界面都很简单。暂时不符合我要求。原因很简单。我没找到如何增大页面字号。我眼睛不好。默认字号太小了。但该浏览器有增大和减小字号的选项,只不过是虚的,无法选择。我估计是在xfce下能调节,在gnome下不能。

是xfce项目的好东西之一(goodies)。这里面的goodies就是并不是xfce官方项目。

用figlet增大中文会出现很奇怪,但很有趣的图形。因为figlet不能用来处理中文。:)

figlet是一个小工具,帮你制作出大号字体,方便做传单什么的。

$ figlet 404

   _  _    ___  _  _   
  | || |  / _ \| || |  
  | || |_| | | | || |_ 
  |__   _| |_| |__   _|
     |_|  \___/   |_|  

$ figlet 四零四
__ __ _____ __
(()) // / | (())
/ _ '| / _ | (| | |/ _ '|
| (
| || / __ | | (| |
_
,_| _
| |_|_|__,_|

感觉这个bug很有去。可以去创作一些random且没有意义的图形。

再次开始使用irc

98-99年上网的时候,用irc聊天很多。163有个irc客户端。后来有web界面的聊天,但很不方便。

现在重新使用irc,因为技术上问问题,irc上最快捷,高手也多。挂irc.freenode.net。

这次才发现irc功能真是强大啊~!!里面还可以用各种unix命令。

/list ;列出irc频道
/join #频道名称 ;加入某频道。频道名前要有英文井号。
/nick 昵称 ; 修改昵称

我现在用pidgin或者emacs自带的erc上irc聊天。

你的gmail地址其实有无数个关联地址

你gmail帐户名后跟 英文加号 + 后面随便写,这些地址都是你帐号的alias。非常有用

参考了这篇文章: http://proofgroup.com/blog/2008/dec/gmail_aliases_testing_mu...

就是说,你的email是 zhangsan@gmail.com,那么 zhangsan+1@gmail.com zhangsan+2@gmail.com zhangsan+lisi@gmail.com zhangsan+lisi+wangwu@gmail.com 这些地址都是发给zhangsan@gmail.com的。

有什么好处?参考文章中主要用来在同一测试站点注册多个帐号。

lvcha认为方便在同一论坛注册多个帐号。

我有其他用处。:)

我以后给人留email坚持手写,对于我想看看他到底是有心联系我还是留个地址将来发广告用的测试一下。我会在加号后面写一堆随机的字母
pengyou.rijiben.org+l;fajdfahsfdauw;ersdflljasl;jkfipeq.cm.cxdjlsafhasdasd@gmail.com

还有一种玩法,就是这么留email,手写,随便写。对方会很惊讶:“啊,你email地址这么复杂,你竟然能记得住”。你可淡淡一笑,说,熟了,就好了。记忆力一直不错。给您背一段圆周率的前100位?

圆周率用希腊字母pai4来表示。这是 π Π 的小写和大写?输入方法是在scim的中文输入中按ixila,只后选择该字母,用加号翻页。

gmail用户名中的英文点是可有可无的

比如 pengyou.rijbien.org和pengyourijibenorg和p.en.g.y.o.u.rijiben.o.r.g是一样的。这主要是为了防止有人用英文的点来冒充你,算是对你帐号的一种保护。

比如你的邮件是 zhangsan@gmail.com 如果没有这种保护措施,有人冒充你注册了 zhang.san@gmail.com 的邮件发给你联系人,很少有人会注意到两个地址的区别的。我用zhangsan举例你可能觉得这有什么,想象看如果是 customerservice@gmail.comcusomer.service@gmail.com 呢,或者是 bankofchina 与 bank.of.china 。 不管哪个,都不要在emial中写自己的银行卡和重要私人信息!! :P

这不是bug,这是feature

开发人员有这个需要,所以提供这个功能。
英文加号因为在注册帐号时是禁用的,所以很方便在编辑配置程序的时候,让它看到英文加号,就知道后面的东西是什么无所谓,都关联为加号前的帐号就可以了,所以所有信都还是会投递到你的信箱。

关闭screen的进程

如果开了多个screen都没关闭,每次一screen -r 就让选择reattach到哪个。原因是我一直不知道如何完全关闭一个screen session。

今天看了一下,原来只要在从那个screen session中所有窗口都退出,如果是应用程序就退出来然后在bash中exit,换个窗口,同理。最后,就会出现 [screen is terminating] 。就完全退出了。

学习screen的资源之一: http://jmcpherson.org/screen.html

To scroll back through screen's history, first enable the copy mode by pressing Ctrl+a [ . Now, use either one of the arrow keys, page up, page down, home and end keys to scroll through screen's history.

Pressing Enter will start marking text for copying. Pressing Enter again will copy the selected text into the clipboard. Now, to paste that text, press Ctrl+a ].

To kill not responding programs, use Ctrl+a K.

To split the screen in two, first create two screen sessions. Then press Ctrl+a S which will split the screen in half, giving you a session on the top that you're already using and a blank session at the bottom.

To move to the bottom half, press Ctrl+a, then the TAB key. This key combination will move the console cursor to the lower half. Once in the blank half, you have to set this bottom half of the screen to use one of the two earlier created sessions. To do this, press Ctrl+a, then " (shift+'). You will be presented with a list of available screen sessions, pick one using the arrow keys (be careful not to pick the one already at the top or you'll have a mirror console), and activate it by pressing Enter. Now type top and switch to the upper half by pressing again Ctrl+a TAB. You should now have a bash prompt waiting for commands in the upper half and system resources monitoring in the bottom half.

To return to full size screen, switch to the half you want it to remain and press Ctrl+a Q.

http://news.softpedia.com/news/GNU-Screen-Tutorial-44274.shtml

Making it go away

scim输入特殊字符的方法

scim输入特殊字符的方法

刚刚发现的宝藏!!

SCIM特殊符号输入
http://mystical.blog.ubuntu.org.cn/2008/12/02/scim%e7%89%b9%...

对我来说输入当前日期和输入箭头最有用

输入当前日期方法是 在中文输入法下 连续悄 idate或者irq
i应该是insert的意思,就是插入,date就是日期,rq就是riqi,就是日期。只后选择你要的日期格式,就直接插入当天日期了。太方便了!!

输入当前日期方法是 在中文输入法下 连续悄 ijiantou
i就是插入,jiantou就是箭头的拼音
← ↑ ↗

这个箭头是符合编码标准的箭头,不是拼凑出来的。

如果你用gnu/linux和scim输入发,该文件是 /usr/share/scim/pinyin/special_table

你还可以按照该文件格式自行编辑定制的用户文件 ~/.scim/chinese/special_table

我准备定制几个。找些常用的。

据说比imagemagick快的图片转换和处理程序:graphicsmagick

据说比imagemagick快的图片转换和处理程序:graphicsmagick

GraphicsMagick Image Processing System
http://www.graphicsmagick.org/

版权协议:GraphicsMagick's MIT X11 style license

可以使用的工具和命令:http://www.graphicsmagick.org/utilities.html

via http://www.scripting.com/stories/2008/11/30/fractionalHorsep...

在gnu/linux可以使用的股票软件

在gnu/linux可以使用的股票软件

有不少呢!!!
文章来源: http://gdzhljw.blog.ubuntu.org.cn/2008/11/27/aiotrade%E5%BC%...

planet是可以合烧rss源并输入的自由软件

Planet is an awesome 'river of news' feed reader. It downloads news feeds published by web sites and aggregates their content together into a single combined feed, latest news first.

It uses 1Mark Pilgrim's Universal 2Feed Parser to read from RDF, RSS and Atom feeds; and Tomas Styblo's 3templating engine to output static files in any format you can dream up.

http://www.planetplanet.org/

gnu/linux下用file命令快速查看文件格式方面的准确信息非常方便

比如有一些视频,都是avi或者mp4结尾的。但具体有何区别,如何获取更多信息。

    $ file 一段视频.avi
一段视频.avi: RIFF (little-endian) data, AVI, 640 x 480, 29.97 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 44100 Hz)

视频格式重名但codec不同的格式太多了。真乱!!简单用file是无法知道确切信息的。

不过如果你有些文件没有后缀,用file很方便。它能自动辨认近百种文件格式。

gnu/linux打开和使用bin和cue文件

有一个叫bchunk的工具可以。安装一下。源里有。

参考:
http://www.linuxsir.org/bbs/archive/index.php/t-110830.html

用wget下载页面上相对链接;wget -i list.html -F -B http://example.com

wget -i list.html -F -B http://example.com

假设我要下载一个页面上链接到的文章。就用这个命令。

-i 跟文件名

-F force-html,强制认为读入的文件是html

-B base-url,会在读入文件中的相对路径前加入你跟的这个域名或域名加目录 比如该文件使用

     <a href="/2008/1.html">

这样的相对路径链接。不加-B和base-url,wget直接去下载这些链接都不会成功的。必须加上base-url,wget就知道它们其实是base-url/2008/1.html

在gnu/linux下用jwhois工具查域名信息非常方便

在命令行中 jwhois 域名 就可以了。
该程序还有很多用法。参考手册: http://www.gnu.org/software/jwhois/

安装了联系打字的自由软件gtypist

安装了联系打字的自由软件gtypist

项目主页在这里:http://www.gnu.org/software/gtypist/

安装: sudo apt-get install gtypist
或者在图形安装界面里搜索gtypist然后选择安装就可以了。

很有意思。打字我现在速度还不行,准确性不高。

这款打字程序还可以练习dvorak布局键盘。

gedit之类工具本身就能通过ssh协议去编辑其它机器上的文件

简单解决了直接ssh到服务器编辑文件无法输入中文的问题。还没有试验呢。因为很少上去。服务很稳啊。:)

Comment by andresj: (1 day ago)
You don't need X11 forwarding to edit the files in Gedit nor Kate.

For Gedit, just click on "Places > Connect to server...", select SSH
from the list, write in the information, and click on Connect. Add a
bookmark if you want, it will appear in the same list as Home folder,
Pictures, etc. Double click on your files or File > Open inside
Gedit.

Comment by freedom: (6 weeks ago)
While i'm not against this feature i will not vote for it as i believe
that it can be accomplished easier. On GNU/Linux systems you can
already mount the ssh partition and then edit files with the local
graphical editor if you so wish. On Gnome nautilus allows you to do
that even if you don't really know what you are doing, if you aren't
using gnome look at sshfs package.

https://members.nearlyfreespeech.net/jsmith/support/voting?i...

和squid类似的反响代理varnish

项目在: http://varnish.projects.linpro.no/

今天看到有人用这个在drupal前面跑效果不错。

screen救命命令

screen救命命令

启动用 screen -r 接着上次会话用 r是retache
完全退出screen,就是说杀死screen下所有bash窗口和程序用screen -d,d=detache

C-a C-c 开一个新的terminal窗口
C-a " 显示窗口列表
C-a ? 帮助
C-a A 给当前窗口命名

对我来说,暂时足够了。screen相当于一个窗口管理器。最大好处是我登录远端服务器做工作,比如下载一个很大文件要耗费很长时间,或者进行需要很长时间的计算,如果不用screen,我桌面电脑关机,或者从remote terminal登录出来,那些工作就结束了。用screen,登录出来那些工作还在继续。下次登录上去用screen -r查看完成没有。有时压缩和下载任务要进行20多个小时,我可不想两台电脑都开着,费电,也不安全。

gnu/linux下如何下载流媒体:如mms,asf等

gnu/linux下如何下载流媒体:如mms,asf等

搜索了一下有什么方法。有更高的方法请补充。

软件:imms
http://www.linuxsir.org/bbs/archive/index.php/t-295268.html
ubuntu软件库中有这个软件
文中还提到了dget我没有用。

软件:mplayer就可以
http://www.howtoforge.com/forums/showthread.php?t=1827

  mplayer mms://url -dumpstream -dumpfile foo.wmv 

pyzh: Python localization package for zh (China/Chinese); 聚合国内python人的力量,建立一整套python的中

pyzh: Python localization package for zh (China/Chinese); 聚合国内python人的力量,建立一整套python的中文本地化工具包。

我喜欢并想用其中的汉子到拼音转换功能。

http://code.google.com/p/pyzh/

a set of localization tools to make python support Chinese and Chinese culture better.

Contact me (panjy at zopen dot cn) if you want to contribute.

聚合国内python人的力量,建立一整套python的中文本地化工具包。

gb18030的python-codec是韩国人帮咱们写的,这个有些汗了。自己的事情,还是应该由咱们自己来完成!

典型的是:

  1. 汉字 -> 拼音 转换

  2. 中英文字数统计

  3. 公历 -> 阴历 转换

  4. 中文分词

  5. 中英文文本折行

  6. 繁簡中文轉換, 支援多種編碼方式

如何下载163相册

如何下载163相册

最好的方法:)

http://163.zpoo.com/help.htm

有个图片地址,我就用wget。

其他方法

http://zhidao.baidu.com/question/7421888.html?fr=qrl
这个方法请lvcha试验并解释一下?

http://zhidao.baidu.com/question/40576318.html?fr=qrl
常见推荐方法

http://mozilla.sociz.com/viewthread.php?tid=8951
firefox插件
但需要论坛用户才能下载。不选择

ubuntu gnu/linux下,在文件管理器中把鼠标停留在一个音频文件上,会自动播放文件开始

ubuntu gnu/linux下,在文件管理器中把鼠标停留在一个音频文件上,会自动播放文件开始

相当于快速音频文件的预览。我刚发现。我以前以为我的音频播放器有问题,为什么明明听一首曲子,我在找其它曲子的时候,突然出来一段其它音乐。现在明白了是我把鼠标点移动到一段mp3上并在那里停了一段时间的原因。

wget下载页面链接到其它站点的图片/文件

wget下载页面链接到其它站点的图片/文件

wget的-p选项

--page-requisites: get all the elements that compose the page (images, CSS and so on).
http://www.linuxjournal.com/content/downloading-entire-web-s...

就是我想要的。因为经常一个页面的图片是链接其它站点的。我以前读man怎么没看到这个选项。需要重读。

经过实验,这个参数也是只下载本域名下的链接文件,比如css,图像。如果你下载domain1.org的一个页面,上面链接了domain2.org的图片,用这个参数也不会抓下来domain2.org图片。

仔细读man相关部分发现:

       Note that Wget will behave as if -r had been specified, but only that single page and its requisites will be
       downloaded.  Links from that page to external documents will not be followed.  Actually, to download a single
       page and all its requisites (even if they exist on separate websites), and make sure the lot displays properly
       locally, this author likes to use a few options in addition to -p:

               wget -E -H -k -K -p http://<site>/<document>

       To finish off this topic, it's worth knowing that Wget's idea of an external document link is any URL speci-
       fied in an "<A>" tag, an "<AREA>" tag, or a "<LINK>" tag other than "<LINK REL="stylesheet">".

原来重点在 -h 就是 --span-hosts这个开关

   -H
   --span-hosts
       Enable spanning across hosts when doing recursive retrieving.

加上-H,就会去下载链接到domian2.org的图像了。哈哈

全明白了。

最后答案

wget -H -nc -nd -p
基本就可以了。我还没有做更多试验。我抓一个页面和它页面上所有文件(这些文件和图片是存在其他站点上的)已经成功了。

如果你需要在本地浏览这些页面,别忘了加上 -EekK 之类的。

自己看一下man这些参数什么意思。很好记的。

看来man page要有机会就读

每次都有收获。

用mapbar/图吧的驾车导航查两个地方的距离很方便

用mapbar/图吧的驾车导航查两个地方的距离很方便

http://www.mapbar.com/index1.html#ac=3

我主要看看和老婆在两点之间长途散步走了多少公里。比如周日晚上是13-14公里左右。:)

Syndicate content