显示下一条  |  关闭

kingoftime3的博客

make arduous efforts for linux kernel

 
 
 
 
 
 

用wget实现cookie欺骗

2011-1-3 20:19:53 阅读435 评论0 32011/01 Jan3

1. 分析登录界面的html代码
页面在 http://bbs.linuxeden.com/
<form. id="loginform" method="post" name="login" action="logging.php?action=login&amp;loginsubmit=true">
      <input type="hidden" name="formhash" value="45fab143" />
      <input type="hidden" name="cookietime" value="2592000" />

作者  | 2011-1-3 20:19:53 | 阅读(435) |评论(0) | 阅读全文>>

安装Qt硬盘空间不够的解决办法

2010-12-5 0:52:53 阅读142 评论0 52010/12 Dec5

如果C盘没有1.6G的剩余空间,安装会出现错误
Extract: error writing to file R:\TEMP\nsaD.tmp\qtcreator-debug.ini

解决办法,将temp目录设置在另一个空间大的盘中,如
mkdir D:\temp
set TMP=D:\temp

作者  | 2010-12-5 0:52:53 | 阅读(142) |评论(0) | 阅读全文>>

20101102笔记

2010-11-2 16:23:22 阅读46 评论0 22010/11 Nov2

mplayer后台运行
因为mplayer在运行后还会打开标准输出,如果直接将其弄到后台会导致进程终止,可以将输入输出都重定向到/dev/null
mplayer *.mp3 < /dev/null > /dev/null 2>&1

vi中用here document时的ESC输入
用Ctrl+v再按ESC键

vi中折叠
:set fdm=syntax
zc 折叠(zC折叠多次)
zo 打开折叠
zR 打开所有折叠

作者  | 2010-11-2 16:23:22 | 阅读(46) |评论(0) | 阅读全文>>

我的host文件

2010-9-15 0:04:32 阅读104 评论0 152010/09 Sept15

由于很多好用的网站都被dns屏蔽掉了,所以记录一下它的ip和URL,前面三个是为了能用google document,最后一个是为了在wikipedia中能正常显示图片
209.85.225.101 docs.google.com 74.125.127.100 writely.google.com 74.125.127.139 spreadsheets.google.com 91.198.174.234 upload.wikimedia.org 

作者  | 2010-9-15 0:04:32 | 阅读(104) |评论(0) | 阅读全文>>

一个读取cue文件的小程序

2010-8-21 23:20:30 阅读114 评论0 212010/08 Aug21

cue.h

 
/*********************************************************
 *****This programe interprete cue file in ape audio******
 ***since there is no music player do this job in linux***
 *****created by ChenXie,if you has any problem,**********

作者  | 2010-8-21 23:20:30 | 阅读(114) |评论(0) | 阅读全文>>

自虐的练习

2010-8-21 16:03:09 阅读46 评论0 212010/08 Aug21

昨天从燕子bt上下了个梁静茹的所有专辑,ape格式的,可以里面有某某论坛打的广告,看差很烦人,于是就想用c将它们批处理一下,本来sed一句话就ok了,但为了练习一下c的字符串处理,自虐呀!!

#include <stdio.h> #include <string.h> #include <sys/types.h> #include <dirent.h> void deleteAdvertise(const char *filename) { char content[1024]; char *t_content; char newcontent[1024]; int index = 0; const char *advertising="[捌零音乐论坛]"; 

作者  | 2010-8-21 16:03:09 | 阅读(46) |评论(0) | 阅读全文>>

如何在网页中显示公式

2010-6-4 19:20:34 阅读256 评论0 42010/06 June4

<img src="http://www.forkosh.dreamhost.com/mathtex.cgi?\int_{0}^{x}\frac{1}{x}dx=ln(x)+C">


如何在网页中显示公式 - 沉醉东风 - kingoftime3的博客

作者  | 2010-6-4 19:20:34 | 阅读(256) |评论(0) | 阅读全文>>

ssh翻墙参数

2010-3-27 21:33:32 阅读648 评论0 272010/03 Mar27


ssh -qTfnN -D 7070 remotehost
All the added options are for a ssh session that’s used for tunneling.
-q :- be very quite, we are acting only as a tunnel.
-T :- Do not allocate a pseudo tty, we are only acting a tunnel.
-f :- move the ssh process to background, as we don’t want to interact with this ssh session directly.
-N :- Do not execute remote command.

作者  | 2010-3-27 21:33:32 | 阅读(648) |评论(0) | 阅读全文>>

用rsync+ssh做远程备份

2010-3-19 11:28:12 阅读100 评论0 192010/03 Mar19

将本地文件localdir与远程remotedir同步
rsync -avR localdir -e ssh remoteuser@remoteaddress:remotedir

作者  | 2010-3-19 11:28:12 | 阅读(100) |评论(0) | 阅读全文>>

latex中listings和algorithm用法笔记

2010-2-27 12:22:25 阅读1187 评论0 272010/02 Feb27

 \usepackage{listings}

\definecolor{gray}{rgb}{0.8,0.8,0.8}

\lstset{
numbers=left,
numberstyle=\tiny,
keywordstyle=\color{red}\bfseries,
backgroundcolor=\color{gray},
commentstyle=\color{green},
frameround=fttt,
frame=trBL
}


\lstset{lang ge=Matlab}
\lstset{breaklines}
\lstset{extendedchars=false}
\lstset{caption="gabor1.m"}
\lstinputlisting{co

作者  | 2010-2-27 12:22:25 | 阅读(1187) |评论(0) | 阅读全文>>

查看所有日志>>

 
 
 
 
 
 
 
列表加载中...
 
 
 
 
 
 

自定义模块

 
 
模块内容加载中...
 
 
 
 
 
 
 
心情随笔列表加载中...
 
 
 
 
 
 我要留言
 
 
 
留言列表加载中...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2012

   
创建博客 登录  
 关注