| |
| retty 是个拦截终端输出的工具 retty is a tiny tool that lets you attach processes running on other terminals. So you were running that mutt outside of screen at your home machine and now wanna check your mail? Attach it with retty, do whatever you want, detach it again and everything is as it was before. You don't have to run them all in screen just in case. 有时候把一个程序放在了后台执行,一段时间后想抓回来,或者这程序是由桌面运行的,没 法得到控制她的终端,那就可以试试 retty 了 先 ps ax 或者 pidof 得到后台程序的 PID, 再终端里执行 retty PID 就把那程序弄到当前了 | |
|
| 在 这儿 看到,先让 Firefox 安装好 FireBug 扩展, 选择 "工具" -> "FireBug" -> "Open FireBug", 同时把 "Disable FireBug" 的钩子去掉。 进入带有视频播放器的网页, 然后点击浏览器右下角那个绿色的小钩子, FireBug 的页面就显示出来了。 点击 "net" 标签页, FireBug 就会把与该页面所有相关的资源连接列出来, flv 文件就在里面,右键选择复制地址,下载。 有些站点喜欢把完整视频分隔为多个 flv , 这就可以安装 mplayer 的 mencoder 来合并 mencoder -oac copy -ovc copy 源文件1 源文件2 源文件3 ... -o 目标文件 | |
|
|
1 #!/usr/bin/perl -w
2 # 批量上传图片到 imageshack.us
3 # ~/bin/upload.pl
4 # 需要 libwww-mechanize-perl
5 # 玩 python 的朋友可以用 python-mechanize 改写
6 #
7 # 链接在:
8 # http://www.terminally-incoherent.com/blog/2007/06/27/batch-upload-images-to-imageshack-using-perl/
9 #
10 # 用法如 upload.pl ~/img/*.png
11 use strict;
12 use WWW::Mechanize;
13
14 # suppress warnings about malformed forms
15 $SIG{__WARN__} = sub {} ;
16
17 my $url = "http://www.imageshack.us/";
18
19 my $mech = WWW::Mechanize->new();
20
21 foreach (@ARGV)
22 {
23 $mech->get($url);
24
25 $mech->form_number(2);
26 $mech->field('fileupload' => $_);
27 $mech->submit();
28
29 # follow the link to see the image
30 $mech->follow_link( text => 'Show', n => 1 );
31 my @im = $mech->images();
32
33 # display the URL of the uploaded image
34 print $im[0]->url() . "\n";
35 }
| |
|
| 许多人都知道 iPython 有很好的自动补全能力,但是就未必知道 python 也同样可以 Tab 键补全, 您可以在启动 python 后,执行下 import readline, rlcompleter; readline.parse_and_bind("tab: complete")这就可以按 Tab 键补全了。 python 自启动 如果您嫌每次都要键入这东西麻烦的话,可以把上边这行写到 ~/.pythonstartup.py , 再 ~/.bashrc 里加一个环境变量 export PYTHONSTARTUP=~/.pythonstartup.py 这就会每次启动 python 都先执行了 | |
|
| Opera 9.10 , docs 里多数功能使用正常, 但是不能选取标题样式、能激活输入法,但是没法输入进中文,只能从别的地方粘贴中文  | |
|
| A PyGtk frontend for VBoxManage sharedfolder. VirtualBox is a powerful PC virtualization solution allowing you to run a wide range of PC operating systems on your Linux system. This includes Windows, Linux, reeBSD, DOS, OpenBSD and others. VirtualBox comes with a broad feature set and excellent performance, making it the premier virtualization software solution on the market. deb: vboxsharedfolder_1.3.4_all.deb | |
|
| hiweedlayer 是一个 Windows 兼容层工具,可以在 Linux 上执行部分 Windows 程序 http://www.hiweed.com/node/798经过几位朋友测试, 可以直接运行 Windows 分区里的 7-Zip, WinISO, Imgburn, Wavepad, WordPad, AcdSee, Flashget 1.8, photoshop cs2, Flash MX, Dreamweaver MX, UltraEdit32-10.0, FireFox、Opera 的 Windows 版本, 广发证券股票软件 等程序。 也可以用来给发给别人的 Windows 程序做个 Linux 版本。 | |
|
| MS Outlook 2007 用 Word 代替 IE 显示网页, 使得 CSS 的邮件没法正常显示了
http://www.campaignmonitor.com/blog/arch ives/2007/01/microsoft_takes_email_desig n_b.html
To give you a quick example of just how far backwards we’ve gone, here’s a screenshot of the Campaign Monitor newsletter (which uses CSS for layout) in Outlook 2000 and 2007. Yes folks, that’s seven long years difference.
 Outlook 2000 |
 Outlook 2007 |
| |
|
| 这里说 微软直接提供了 Windows XP Virtual PC Image供用户下载使用。Windows XP Virtual PC Image 内置了一个预先激活的Windows XP SP2 。 下载 免费的 Windows XP Virtual PC Image(495MB) 这个VPC镜像的终止期是2007年4月1号 另: 免费的 vmware-player 支持 MS Virtual PC Image | |
|
| 还有一个是:Claroline 对大学的教学辅助上比较适合 moodle 对教学设计好象比较好 moodle - Course Management System for Online Learning Moodle (Modular Object-Oriented Dynamic Learning Environment) is a course management system - a software package designed to help educators create quality online courses. One of the main advantages of Moodle over other systems is a strong grounding in social constructionist pedagogy. | |
|
| 最小化到系统托盘有时候很有用,只是好些应用程序却没支持系统托盘,这就用 kdocker 来吧。 执行 kdocker & 再鼠标点击需要最小化到系统托盘的窗口,就可以了 ( Read more... )现在把 hers 的 Gtalk 窗口放系统托盘了 :D | |
|
| http://gwenole.beauchesne.info/projects/nspluginwrapper/nspluginwrapper is an Open Source compatibility plugin for Netscape 4 (NPAPI) plugins. That is, it enables you to use plugins on platforms they were not built for. For example, you can use the Adobe Flash plugin with x86-64 compiled Mozilla browsers. Bear in mind this is BETA software. The following plugins work reasonnably well: * Acrobat Reader (5.0.9 and 7.0.1) * DejaVu Libre (3.5.14) * Flash Player (7.0) * Linux JPEG 2000 (0.0.2) * Mplayerplug-in (2.80) * Real Player (10.0.5) | |
|
| IRC 上又有人抱怨 ftp , 那么看这个吧 http://lvsoft.livejournal.com/1212.html她用 ld preload , 拦截了ftp服务器对本地磁盘的访问,在这个过程中把编码做了 utf8 <--> gbk 转换。 使用,在原来的程序启动命令前面加上 dynfn ,比如原来是 vsftpd parm1 parm2 启动 vsftpd 的,现在: dynfn vsftpd parm1 parm2 | |
|
| 以前直接在 FireFox 地址栏输入一个词回车,就可以直接转到页面,不知道哪次升级后她变成 Yahoo 搜索了。 还是改回来吧, 在地址栏输入 about:config ,找到 keyword.URL 键,修改为 http://www.google.cn/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q= 也就是 Google.CN 手气不错。 | |
|
| 把 firefox 扩展安装到全局: 1. 用 unzip 将下载得到的 .xpi 文件解压到某个目录下。 2. 将 chrome 和 components 下面的文件依次分别拷贝到 /usr/lib/firefox/chrome 和 /usr/lib/firefox/components 下。 3. 将相应的 manifest 文件改名后放入 /usr/lib/firefox/chrome 下,改的名称最好能和相应的xpi的名称吻合。 | |
|
| http://musik.berlios.de/an open-source, cross-platform multimedia player and library.  # Plays mp3, ogg, APE ,MPC ,FLAC, mp2, wav, aiff and wma (win only) files. # Net streaming support for icecast and shoutcast streams. # Reads APE V1 & V2,ID3V1,ID3V2,flac ,ogg and wma format tags. # Writes tags in APE V1 & V2, ID3V1, ID3V2,flac and ogg format. # Static playlist creation with drag ‘n drop of single songs or whole albums or artists from the library view. | |
|
| 侧栏和区域栏都有几种风格  左上是 文件系统树 + 路径栏
中间是 常用位置 + 地址栏
右下是 常用位置 + 路径栏地址栏( location bar) 是早期 Windows 资源管理器的风格, 但是 Vista 里默认也用路径栏代替地址栏了; 路径栏( Pathbar) 可以直观表现文件夹结构; ( Read more... ) | |
|
| 可爱 bbbush要找的小东西 memprof - Memory profiler and leak detector valgrind - A memory debugger and profiler python-profiler - deterministic profiling of any Python programs electric-fence - A malloc(3) debugger lam-runtime - LAM runtime environment for executing parallel programs memprof - Memory profiler and leak detector Memprof is a tool for profiling memory usage and detecting memory leaks. It can be used with existing binaries without need for recompilation. ( Read more... ) | |
|
| 这次用的 avfs , 也许该加一个 ftp 站点管理器,而不是只用书签。  avfs 可以让应用程序无缝访问 压缩文件、远程文件系统, 不过没有 gnome-vfs 或 kio 那样的用户交互。 可惜 avfs 不好指定 ftp 远程编码…… 连国内那些猪头 gb 编码的 ftp 服务器会不爽。 | |
|
| 使用 mplayer 的 mencoder ( ubuntu 里的 mplayer 拆分了,sudo apt-get install mplayer mencoder )。 mencoder -mf 选项的解释能在man page中找到。 例子:
#用当前目录中的所有JPEG文件创建DivX4文件:
mencoder \*.jpg -mf on:w=800:h=600:fps=25 -ovc divx4 -o output.avi
#用当前目录中的一些JPEG文件创建DivX4文件:
mencoder -mf on:w=800:h=600:fps=25 -ovc divx4 -o output.avi \*.jpg
#用当前目录中的所有JPEG文件创建Motion JPEG(MJPEG)文件:
mencoder -mf on:w=800:h=600:fps=25 -ovc copy -o output.avi \*.jpg
#用当前目录中的所有PNG文件创建一个非压缩的文件:
mencoder -mf on:w=800:h=600:fps=25:type=png -ovc rawrgb -o output.avi \*.png
| |
|
| https://wiki.ubuntu.com/PanelSwitcherApplication to switch between different panel layout profiles in Gnome Panel switcher is implemented in Python, PyGTK and the Python bindings for GConf. This project is part of Google Summer of Code 2006. Mentors at Ubuntu is Sebastien Bacher and Vincent Untz. ( Read more... ) | |
|
| WujaWuja is a Gnome desktop applet for integrating with Google Calendar. It is written in Python and distributed under the GPL.  GobyGoby is an image viewer based on the GTK+ toolkit. The aim is to provide an intuitive, ACDSee-like user experience.  ExaileExaile is a media player aiming to be similar to KDE’s AmaroK, but for GTK+. It incorporates many of the cool things from AmaroK (and other media players) like automatic fetching of album art, handling of large libraries, lyrics fetching, artist/album information via the wikipedia, last.fm support, optional iPod support (assuming you have python-gpod installed).  MeskMesk is a PyGtk+ audio player that supports multiple playlists and plugins
| |
|
| Ubuntu Click And Run http://www.getdeb.net/ 为 Ubuntu 6.06 用户提供最好软件的 Deb 包。相信通过该网站的服务不仅能给新手带来方便,而且也能让老手节省不少时间。现在,在 其站上已经可以下载到一些软件的 Deb 包。不过,从提供包的类型来看,目前还只是针对 Intel 的架构,而 AMD 64 及 PPC 都尚不支持。此外,该站也提供了搜索功能,这对于迅速查找软件无疑是必不可少的。 linuxtoy.org | |
|
|