
Linux
demonthiner
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Vim 中文文档
http://vcd.gro.clinux.org/原创 2005-11-29 15:09:00 · 592 阅读 · 0 评论 -
Store binary data to MySQL using escape_string in MySQLdb
mediumblob can store data less than 16M: mysql> desc images;+-------+------------+------+-----+---------+----------------+| Field | Type | Null | Key | Default | Extra |+-------+--原创 2008-12-02 15:00:00 · 778 阅读 · 0 评论 -
Fibonancci in bash via global variable
#!/usr/bin/env bashfib_total=0 function fib(){ if [ $1 -le 1 ] then fib_total=1 else fib `expr $1 - 1` let "fib_total *= $1" fi}fib 6echo $fib_total原创 2008-11-24 17:18:00 · 503 阅读 · 0 评论 -
Using where conditions in mysqldump command
mysqldump help: -w, --where=name Dump only selected records; QUOTES mandatory! Attention: QUOTES mandatory, or shell will not parse it correctly. eg:mysqldump -uroot -pyes test_db tb原创 2008-11-07 10:59:00 · 439 阅读 · 0 评论 -
Python script redirection detection, shell '<' or anonymous piple
msg = if sys.stdin.isatty(): print Console else: print Redirected msg = .join(sys.stdin.readlines()) sendResult(msg, Attention:原创 2008-10-10 18:19:00 · 389 阅读 · 0 评论 -
Can not find so for swat in Samba in Solaris? Try crle command to update runtime linking configuration.
1, using ldd to list dynamic dependencies of swat2, make sure all dependencies available, or even available but "version not found"3, if still can not visit swat using browser, edit /var/ld/ld原创 2008-10-09 15:56:00 · 396 阅读 · 0 评论 -
Disable compiling GTK2 for tshark on solaris10
GTK depends on many GNU libraries like GNU sed, glib, etc.If you dont want to use GUI, just for tshark , skip the GTK2 comiling. ./configure --disable-gtk2 && make && make installtime consu原创 2008-09-10 15:28:00 · 402 阅读 · 0 评论 -
selinux may block samba access at Fedora Core 5
If setting samba, but can not access directory in fc5, perhaps caused by selinux. By setting setenforce 0 in cmd line or in /etc/sysconfig/selinux permanently, accessing samba directory w原创 2008-09-05 10:47:00 · 419 阅读 · 0 评论 -
configuring_vmware_for_ide_rather_than_scsi_good_for_installing_linux
http://www.seopher.com/articles/configuring_vmware_for_ide_rather_than_scsi_good_for_installing_linux_原创 2008-09-04 12:49:00 · 365 阅读 · 0 评论 -
Regular expression in find command
find . -name core.[^a]* -exec ls -l {} /;find . -name core.[!a]* -exec ls -l {} /;find . -name core.*c* -exec ls -l {} /; find supportlimited expression format.原创 2008-09-02 17:40:00 · 409 阅读 · 0 评论 -
A way of special unix filename processing
Summary: Using inode to access such filesSteps: 1, ls -li * 2, find the inode number of wanted file, eg, 256298 3, using find command like: find . -inum 256298 -exec ls -l {} /;原创 2008-09-01 17:38:00 · 385 阅读 · 0 评论 -
Solaris 机器不足,解决方案
Windows机器安装Vmware, Vmware中安装Solaris, 从Solaris中创建多个Zone,问题解决。顺便提一句,使用samba可以加快主机与宿主机及zone虚拟机的访问,效率高,效果好。原创 2008-06-12 09:29:00 · 370 阅读 · 0 评论 -
Source insight 阅读python 代码 配置
A, download clf file from http://www.sourceinsight.com/public/languages/Python.CLFB, import and configuration 1. 选择 Options > Preferences。点击Languages 标签。 2. 点击 Import 按钮。选择和加载定原创 2008-08-28 14:16:00 · 3952 阅读 · 3 评论 -
Compile mysql in vmware
vmware should set memory larger than 512MB and configure set --with-low-memory option, or else vmware would core dump.原创 2008-06-03 14:30:00 · 354 阅读 · 0 评论 -
Installing samba in sol10
/etc/servicesswat 901/tcp # Samba Web Administration Tool /etc/inetd.confnetbios-ssn stream tcp nowait root /usr/sfw/sbin/smbd smbdnetbios-ns原创 2008-06-02 18:14:00 · 326 阅读 · 0 评论 -
Solaris IP configuration
ifconfig -a plumbfound a pcn0 device and then ifconfig -aifconfig pcn0 upifconfig pcn0 你要设的IP Modify /etc/hosts /etc/hostname.XXX原创 2008-06-03 10:42:00 · 325 阅读 · 0 评论 -
system resource monitor
monitor.pl#!/usr/bin/perl###monintor start####if($ARGV[0] eq "start"){ print "monitor start!/nwe are monitoring cpu,memory,iostat,prstat!/n"; $flag=1; while($flag==1){ $fname原创 2008-05-27 16:18:00 · 649 阅读 · 0 评论 -
Find proper JVM for STAF/STAX
ISSUE: ********************************************************************************* 20090401-17:15:00 - Start of Log for JVMName: STAFJVM1*** JVM Executable: java*** JVM Options : -Xmx384m **原创 2009-04-01 17:15:00 · 851 阅读 · 0 评论