简洁的想法

仁爱、喜乐、和平、忍耐、恩慈、良善、信实、温柔、节制

申请Barclaybank的VISA-MASTER的中文指导

| Comments

如果你在德国就读大学生,很想办理VISA和MASTER卡,我可以推荐你办理Barclaybank的VISA-MASTER的双卡,直接在网上申请就可以了。

先看看这种学生卡的优点:

第一年全免费使用,以后每年只要12欧元,
可透支1000欧元
可以在刷卡后59天之内补款
全世界30,000,000处可以使用
可以分期偿还刷卡的款项
可在全球有Visa oder MasterCard标志的提款机取款
欧盟内刷卡购物无附加款项
信用卡遗失后,一个电话就可挂失锁定
如果信用卡内有钱,会按2,20%计息
下面是我的一份网上申请指南

1,先点下面这个链接进入申请页面
再点“Jetzt anfordern”进入下一页:

来几个Linux命令

| Comments

1,常用:
UbuntuSkills
#uname -a
#lshw 察看硬件信息(要安装)
#cat /etc/issue
#cat /proc/cpuinfo
#lsb_release -a 查看Ubuntu版本
#du -hs /home/* | sort -nr 察看目录大小 -s 仅显示总计 -h  以K、M、G为单位

#find  /somewhere/ -name some.file找出文件
#find . -name some.file当前目录下找出文件 More…
#find . -name \* -type f -print | xargs grep “some text” \*所有文件,  -type f 普通文件 d 目录

#sof | grep deleted 找出已经被打开,但被删除的文件
#free -m 察看内存使用
#df 察看硬盘使用
#ls -d */ | wc -l 察看当前目录下子目录的个数
#lastlog last 察看最后登录的用户
#export PATH=$PATH:/usr/mysql/bin
#chmod ug+w,o-x file u=属主,g=属组,o=其它用户

apache2ctl -l 查看apache工作模式
pgrep apache2|wc -l 查看当前连接数
ps aux|grep -v grep|awk ‘/apache2/{sum+=$6;n++};END{print sum/n}’ 计算httpd占用内存的平均数
dpkg -l | grep ‘^ii’ 查看已经安装了的软件

find ./ -name “*.php” | xargs -n 1 sed -i -e ‘s/aaa/bbb/g’ 把aaa换成bbb

2,查看SuSE版本:# cat /etc/SuSE-release

3,查看进程,资源 top

4,kill进程

1
kill -9 进程号

常与ps连用
1
ps aux | grep firefox

5,nohup
我一般用ssh登录linux服务器,如果要用服务器下载某个文件,我就一直要使终端窗口保持打开状态,这是不合理的。好在用nohup帮忙,它可以让程序在后台运行,就算你关掉终端窗口也没关系。例如,我想下载MiCTeX的字体:

1
nohup wget ftp://user:user@219.153.35.69/MiCTeX/MiCTeX-GBKfonts.exe

这个命令运行后,屏幕输出:
1
ServerName:~ # appending output to nohup.out

鼠标这时一动不动,直到文件下载完毕前你再也不能输出任何命令了。不过在关掉这个窗口后,你可以观察到MiCTeX-GBKfonts.exe的文件大小一直在增加。

如果在命令最后加上&,就可以让这个下载命令彻底在后台运行,但我实验的结果表明,加了&以后,如果关掉终端,进程也同时关掉了:

1
nohup wget ftp://user:user@219.153.35.69/MiCTeX/MiCTeX-GBKfonts.exe &

6,screen
我其实是把文件下载到 /home/zhang/temp/ 里面,当我N久以后再联上服务器,想看看文件下载情况怎样,那又要 cd 老半天,这时候 screen 就是好帮手了。

PHP4 Update to PHP5

| Comments

patched gd lib:
http://www.rime.com.au/gd/
wget http://downloads.rhyme.com.au/gd/gd-2.0.26gif.tar.gz
./configure —prefix=/usr/local/gd2 —with-zlib=/usr/local/zlib2/ —with-png=/usr/local/libpng2/ —with-jpeg=/usr/local/jpeg6/ —with-freetype=/usr/local/freetype2/

./configure —prefix=/usr/share/php5 —datadir=/usr/share/php —mandir=/usr/share/man/php5 —bindir=/usr/bin —libdir=/usr/share —includedir=/usr/include —sysconfdir=/etc —with-lib=lib —with-config-file-path=/etc/php5 —with-exec-dir=/usr/lib/php5/bin —disable-debug —enable-inline-optimization —enable-memory-limit —enable-magic-quotes —enable-safe-mode —enable-sigchild —disable-ctype —enable-session —with-jpeg-dir=/usr/local —with-zlib-dir=/usr/local —with-png-dir=/usr/local —with-gd=/usr/local/gd2 —with-mysql —disable-cli —without-pear —with-openssl —with-apxs2=/usr/sbin/apxs2-prefork

/etc/sysconfig/apache2
APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5 "

/etc/apache2/sysconfig.d/loadmodule.conf
LoadModule php5
module
/usr/lib/apache2-prefork/libphp5.so

在默认的情况下,服务器不会在系统开机时自动启动。它需要以root用户的身份执行以下命令才能启动:MyServer:#/etc/init.d/apache2 start
如果想让服务器在系统开机时自动启动,就要多执行一条命令:
MyServer:#/etc/init.dinsserv apache2

not finished…

显示桌面 快捷方式的恢复方法

| Comments

虽然 Win + M 也可以显示桌面,但我还是喜欢在“开始”旁边有个快捷方式,如果被误删除了怎么办呢?
趁我们还没删掉它的时候,一起来看看这个快捷方式是个什么东东。

首先来到 显示桌面快捷方式 所在的目录:

C:\Documents and Settings\你的用户名\Application Data\Microsoft\Internet Explorer\Quick Launch

然后打开一个记事本,再把 显示桌面的快捷方式 拖进去,看到没有,就这几行字而已:
[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop


恢复的方法我就不多说了,建一个名为 显示桌面.scf 的文本文档,把上面的代码加进去,保存到最上面的目录就OK了。

如果你实在搞不懂,那还是直接下载吧,解压后拷到最上面的目录就好了。
[file]attachment/2006-12-13/ShowDesktop.zip[/file]

The Complete List of Ajax Tools

| Comments

The Complete List of Ajax ToolsAjax has really taken off over the last two years.  Ajax is really just the combination of Asynchronous JavaScript and XML.  I actually remember almost over 5 years ago now working with XML and JavaScript to auto-magically update navigation bars from the database.  With the advancement of Ajax, new frameworks, utilities, and software packages have been built to make the production of Ajax web sites much easier.  Below is the complete list of these tools, and the only list you will ever need!  Please feel free to submit more sites in the comments below as they will be added!

AJAX Libraries / API's
Yahoo Ajax Libraries
Google Ajax Search
Yahoo Maps Ajax API
AJAX .NET Frameworks
ajaxium

下载.flv文件

| Comments

现在有很多视频站,他们为了点击流量的缘故,不会提供视频.flv文件的下载地址,但这给我们带来很多不便,尤其是网速像蜗牛的时候。

网上闲逛的时候发现了这个网站:
http://www.pkez.com/
外国的视频可以看看这个网站:
http://keepvid.com/
http://www.quchao.com/video/

大家输入视频文件所在的网页就可以得到地址了。

下面来个具体例子:
一篇Blog发现一个越狱的在线播放链接:
http://dv.ouou.com/swf/ouou.swf?id=38d7f45b65c94
而http://www.pkez.com/要求的地址格式是:
http://dv.ouou.com/play/v_e38b59a238db0.html

想哭

| Comments

朋友们聚聚散散,每每想起来心里面早已泪流满面,之所以表面看起来无动于衷,也许是因为这还不是一个足够恰当的理由,但明明有种冲动在这个黑幕来袭的夜晚,突然莫名地强烈起来。

贴首周华健的《好想哭》,只是此哭非彼哭:

一二三四五 上山打老虎

| Comments

一二三四五,上山打老虎,
老虎打不到,打到小松鼠。
松鼠有几只?让我数一数,
数来又数去,一二三四五

极速视频转换WisMencoder

| Comments

支持AVI MPEG WMV RMVB MKV FLV VCD DVD 格式 ->  AVI格式
国人软件,免费,压缩手机视频非常不错。

多的就不介绍了,大家可以去网站上看一看:
http://www.WisMencoder.cn