Home
huangjiahua~~我自己的世界
Recent Entries 

Advertisement

Customize
6th-Jul-2007 06:36 pm - 用 retty 抓回后台程序
logo-1
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 就把那程序弄到当前了
logo-1
这儿 看到,先让 Firefox 安装好 FireBug 扩展,
选择 "工具" -> "FireBug" -> "Open FireBug", 同时把 "Disable FireBug" 的钩子去掉。
进入带有视频播放器的网页, 然后点击浏览器右下角那个绿色的小钩子, FireBug 的页面就显示出来了。
点击 "net" 标签页, FireBug 就会把与该页面所有相关的资源连接列出来, flv 文件就在里面,右键选择复制地址,下载。

有些站点喜欢把完整视频分隔为多个 flv , 这就可以安装 mplayer 的 mencoder 来合并
mencoder -oac copy -ovc copy 源文件1 源文件2 源文件3 ... -o 目标文件
30th-Jun-2007 08:54 pm - 批量上传图片到 ImageShack
logo-1
 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 }
logo-1
许多人都知道 iPython 有很好的自动补全能力,但是就未必知道 python 也同样可以 Tab 键补全,
您可以在启动 python 后,执行下
import readline, rlcompleter; readline.parse_and_bind("tab: complete")

这就可以按 Tab 键补全了。

python 自启动
如果您嫌每次都要键入这东西麻烦的话,可以把上边这行写到 ~/.pythonstartup.py ,
再 ~/.bashrc 里加一个环境变量
export PYTHONSTARTUP=~/.pythonstartup.py

这就会每次启动 python 都先执行了
logo-1
Ubuntu开始菜单使用主题图标里的 distributor-logo.png ,如
/usr/share/icons/Human/48x48/places/distributor-logo.png
替换这些就可以了。


另,这里有个 FireFox 启动飞溅的扩展


再,这里有个 FireFox 的 calendar 和 todo 扩展

而像我这样在多个地方使用不同计算机的情况,这个 Google browser sync 实在有用,可以选择同步 书签、Cookie、历史、密码 和 会话 (可加密保存), 这是她的FAQ

这里 看到的
25th-Mar-2007 06:50 pm - zt: 分布式下載服務 CoBlitz
logo-1
mdark 写到
分布式下載服務 CoBlitz
http://codeen.cs.princeton.edu/coblitz/
主要用途:
下軟件、iso等等。
用法 :
比如你想下載 http://www.cs.princeton.edu/~kyoungso/bigfile.zip
只要把下載的 url 改成 http://coblitz.codeen.org:3125/www.cs.princeton.edu/~kyoungso/bigfile.zip 就可以了
Read more... )
logo-1
Opera 9.10 , docs 里多数功能使用正常, 但是不能选取标题样式、能激活输入法,但是没法输入进中文,只能从别的地方粘贴中文

logo-1
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

logo-1
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 版本。
logo-1
MS Outlook 2007 用 Word 代替 IE 显示网页, 使得 CSS 的邮件没法正常显示了
http://www.campaignmonitor.com/blog/archives/2007/01/microsoft_takes_email_design_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.
The Campaign Monitor newsletter in Outlook 2000

Outlook 2000

The Campaign Monitor newsletter in Outlook 2007

Outlook 2007

10th-Dec-2006 10:17 pm - 免费的 Windows XP Virtual PC Image
logo-1
这里说 微软直接提供了 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
logo-1
默认的 vmware-player 什么都没有。
让无限传了个 Workstation 的 windows.iso 过来装了 vmware-tools , 让屏幕分辨率和鼠标都好使了,
不过共享文件夹还是没法用。
VMware.com 那边的人说: Shared Folders were removed for Player 1.0. That is a feature of Workstation.
For more details, read this message:
http://www.vmware.com/community/thread.jspa?messageID=320487

TMD,自己用 SMB 算了。
2nd-Dec-2006 09:40 pm - moodle 一个教学辅助系统
logo-1
还有一个是: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.
logo-1
最小化到系统托盘有时候很有用,只是好些应用程序却没支持系统托盘,这就用 kdocker 来吧。
执行 kdocker & 再鼠标点击需要最小化到系统托盘的窗口,就可以了
Read more... )
现在把 hers 的 Gtalk 窗口放系统托盘了 :D
28th-Nov-2006 08:01 pm - 64 位 FireFox 用 32 位插件
logo-1
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)
logo-1
IRC 上又有人抱怨 ftp , 那么看这个吧
http://lvsoft.livejournal.com/1212.html
她用 ld preload , 拦截了ftp服务器对本地磁盘的访问,在这个过程中把编码做了 utf8 <--> gbk 转换。
使用,在原来的程序启动命令前面加上 dynfn ,比如原来是 vsftpd parm1 parm2 启动 vsftpd 的,现在: dynfn vsftpd parm1 parm2
logo-1
http://nouveau.freedesktop.org/wiki
Currently, nothing works. If you’re not a developer, you’re not interested in this at all.
There is a feature matrix of what we need to do, though.
There is also a TODO list
10th-Nov-2006 09:09 pm - 恢复 FireFox 地址栏搜索
logo-1
以前直接在 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 手气不错。
4th-Nov-2006 09:42 pm - 用 mars_nwe 模拟 NetWare
logo-1
mars_nwe http://www.compu-art.de/mars_nwe/
是一个 Linux 下模拟 NetWare 服务的软件

Read more... )
logo-1
http://www.thinknext.net/archives/1690
德国人 Stefan Kühn 做这么个 Google Earth 与 Wikipedia 的搭配。




Read more... )
26th-Oct-2006 09:08 pm - Agave 一个配色工具
logo-1
http://home.gna.org/colorscheme/ 从选定颜色生成多种配色方案
26th-Oct-2006 08:56 pm - 全局安装 firefox 扩展
logo-1
把 firefox 扩展安装到全局:
1. 用 unzip 将下载得到的 .xpi 文件解压到某个目录下。
2. 将 chrome 和 components 下面的文件依次分别拷贝到 /usr/lib/firefox/chrome 和 /usr/lib/firefox/components 下。
3. 将相应的 manifest 文件改名后放入 /usr/lib/firefox/chrome 下,改的名称最好能和相应的xpi的名称吻合。
22nd-Oct-2006 07:04 pm - wxMusick 支持 APE
logo-1
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.
logo-1
zlbruce 的 blog看到
共享神盾[ShareShield]是一款针对网络运营商利用垄断地位对家庭宽带共享进行限制的反突破软件。软件基于Windows底层网络驱动以及报文伪装等技术,可以非常出色的突破封锁。
http://www.sd002.com/
http://www.sd002.com/shareshield.htm
logo-1
侧栏和区域栏都有几种风格

左上是 文件系统树 + 路径栏
                      中间是 常用位置 + 地址栏
                                         右下是 常用位置 + 路径栏


地址栏( location bar) 是早期 Windows 资源管理器的风格, 但是 Vista 里默认也用路径栏代替地址栏了;
路径栏( Pathbar) 可以直观表现文件夹结构;
Read more... )
19th-Oct-2006 10:22 pm - Gimp 使用范例
logo-1
http://www.study-area.org/tips/gimp/index.html
旧版本的 gimp , 但是基本一样用
logo-1
可爱[info]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... )
16th-Oct-2006 06:38 am - Xchat Python 插件接口
logo-1
http://linuxfire.com.cn/firewiki/FireIrcd/XchatPythonZh
本页描述了 XChat 2.0 的 Python 插件接口。该接口允许用户使用 Python 语言为 XChat 这个 IRC 客户端开发扩展脚本。
logo-1
这次用的 avfs , 也许该加一个 ftp 站点管理器,而不是只用书签。



avfs 可以让应用程序无缝访问 压缩文件、远程文件系统, 不过没有 gnome-vfs 或 kio 那样的用户交互。

可惜 avfs 不好指定 ftp 远程编码…… 连国内那些猪头 gb 编码的 ftp 服务器会不爽。
logo-1
使用 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
logo-1
https://wiki.ubuntu.com/PanelSwitcher
Application 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... )
10th-Oct-2006 10:13 pm - ISO Master
logo-1
http://littlesvr.ca/isomaster/
an open-source, graphical CD image editor that runs on Linux; and bkisofs, the underlying library used for reading, modifying and writing ISO images.
Read more... )
10th-Oct-2006 06:41 am - Liweed 音乐播放器
logo-1
已经做好百度歌词了


基本需求是

  1. 支持播放列表

  2. 支持百度歌词

  3. 支持系统托盘



Read more... )
10th-Oct-2006 12:41 am - gst 的 id3v2 转码补丁
logo-1
让 gst 的播放器可以对 id3v2 的 mp3 转码
rebuild gstreamer0.10-plugins-good 就可以了
只要有环境变量 GST_ID3_TAG_ENCODING=GBK 就可以自动处理编码了。

gst-plugins-good-id3tagv1v2-encoding-patch )
logo-1
Wuja
Wuja is a Gnome desktop applet for integrating with Google Calendar. It is written in Python and distributed under the GPL.



Goby
Goby is an image viewer based on the GTK+ toolkit. The aim is to provide an intuitive, ACDSee-like user experience.




Exaile
Exaile 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).




Mesk
Mesk is a PyGtk+ audio player that supports multiple playlists and plugins




9th-Oct-2006 10:58 pm - 为 Ubuntu 6.06 提供最新的 deb
logo-1
Ubuntu Click And Run http://www.getdeb.net/ 为 Ubuntu 6.06 用户提供最好软件的 Deb 包。相信通过该网站的服务不仅能给新手带来方便,而且也能让老手节省不少时间。现在,在其站上已经可以下载到一些软件的 Deb 包。不过,从提供包的类型来看,目前还只是针对 Intel 的架构,而 AMD 64 及 PPC 都尚不支持。此外,该站也提供了搜索功能,这对于迅速查找软件无疑是必不可少的。
linuxtoy.org
9th-Oct-2006 11:53 am - audacious 代替 bmp
logo-1
KDE 下 amarok 最理想。 但是 xfce 下呢, xfmedia 看起来不太好, 就 audacious 吧。audacious 是基于原先 bmp 的音乐播放器。
http://audacious-media-player.org/
debian 源:
deb http://vdlinux.sourceforge.jp/ experimental audacious audacious-plugins
deb-src http://vdlinux.sourceforge.jp/ experimental audacious

http://www.ubuntuforums.org/showthread.php?t=202430

Advertisement

Customize
This page was loaded Nov 27th 2009, 11:17 am GMT.