12 2011 档案

摘要:http://blog.csdn.net/innost/article/details/4039087 阅读全文
posted @ 2011-12-31 22:52 规格严格-功夫到家 阅读(176) 评论(0) 推荐(0) 编辑
摘要:网上看到这样一篇帖子 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 含义解释: 问:什么是NULL? 答:在我们不知道具体有什么数据的时候,也即未知,可以用NULL,我们称它为空,ORACLE中,含有空值 阅读全文
posted @ 2011-12-31 14:35 规格严格-功夫到家 阅读(277) 评论(0) 推荐(0) 编辑
摘要:echo 正在查找_desktop.ini文件,请耐心等待一会。。。echo 如果提示“找不到 C:\_desktop.ini”,则表明该磁盘不包含_desktop.ini文件echo 如果中途向退出,按 Ctrl+C 然后按Y键,最后按回车就可以退出查找了.del C:\Desktop_1.ini /f /s /q /adel D:\Desktop_1.ini /f /s /q /adel E:\Desktop_1.ini /f /s /q /adel F:\Desktop_1.ini /f /s /q /adel G:\Desktop_1.ini /f /s /q /adel H:\Des 阅读全文
posted @ 2011-12-29 20:10 规格严格-功夫到家 阅读(763) 评论(0) 推荐(0) 编辑
摘要:BoundsChecker是一个Run-Time错误检测工具,它主要定位程序在运行时期发生的各种错误;记录:第一步:简单了解一下boundcheck,在程序运行期间检测内存 指针错误的工具,主要有两种模式,activeCheck和finalCheck;其中activeCheck速度快,检测错误不太全;finalCheck速度慢,检测错误比activeCheck强而且全;(1)中有两种模式下的使用方法;第二步:在(2)中看到,三楼发言的6.0以后版本都叫numega去了;于是google之;第三步:单元测试工具Numega,包含三个独立的子模块;boundChecker,TrueCoverage 阅读全文
posted @ 2011-12-29 11:34 规格严格-功夫到家 阅读(3223) 评论(0) 推荐(1) 编辑
摘要:http://rainbow702.iteye.com/category/156952在网上看J2EE的职位时,不仅需要了解SSH框架及数据库等基本知识,还有不少要求了解 FTP或者HTTP之类的协议。起初,我不知道到底是什么才叫了解FTP或者HTTP协议(现在也没怎么理解这句话)。偶尔有一次,听老大电话面试一个人,问到了对方了不了解HTTP协议,然后直接问了对方“断点续传”的原理是什么?我想,这就是对HTTP协议有了解的一个表现吧。今天突然想起来了“断点续传”,于是就找了一篇贴子来理解一下。--------------------------------------------------- 阅读全文
posted @ 2011-12-29 10:33 规格严格-功夫到家 阅读(25865) 评论(6) 推荐(0) 编辑
摘要:11.5 如何获得Linux命令的源代码Q: Linux中如何知道ifconfig属于哪个包A:# which ifconfig/sbin/ifconfig# rpm -qf /sbin/ifconfignet-tools-1.51-3 <-- rpm包名字# rpm -qi net-tools-1.51-3或者# rpm -qif /sbin/ifconfig<-- 直接查找src.rpmQ: 如何获取ps命令的源代码A: dfbb@smth 2003-04-231) $ rpm -qif `which ps` | grep "Source RPM" | aw 阅读全文
posted @ 2011-12-28 19:50 规格严格-功夫到家 阅读(528) 评论(0) 推荐(0) 编辑
摘要:用Git真。。。。我卸载了,还出这个问题:Goolge:卸载git客户段后,一按右键,就跳出[error]could not find git path 警告窗口,好烦,google了一下,发现解决办法: 1.在注册表删除下面字段 HKEY_CURRENT_USER\Software\Classes\CLSID\{ca586c80-7c84-4b88-8537-726724df6929} 2.删干净安装文件 Git安装目录\git-cheetah\git_shell_ext.dll 删掉,如果删不掉,重启,可删除。 http://java-007.iteye.com/blog/750654 阅读全文
posted @ 2011-12-28 19:34 规格严格-功夫到家 阅读(438) 评论(0) 推荐(0) 编辑
摘要:1。// 取得列幅的最大值 private int getPreferredWidthForCloumn(JTable table,int icol){ TableColumnModel tcl = table.getColumnModel(); TableColumn col = tcl.getColumn(icol); int c = col.getModelIndex(),width = 0,maxw = 0; for(int r=0;r <table.getRowCount();++r){ Table... 阅读全文
posted @ 2011-12-28 16:01 规格严格-功夫到家 阅读(683) 评论(0) 推荐(0) 编辑
摘要:http://cache.baidu.com/c?m=9d78d513d99b15ef0bb2c3690d67c0171f43f3122ba6da020ea08449e3732d44501194ac26520774d5d2086615e80902e5aa7034751421c486d5d81480ee8528588b2335671cf1104f8c04ee9612638473d00dfea86db4faa92fc3f08f86c2151599155e2b9df38e5d0417cc68fb1231e1a59a4d155a10bbeb3663fa536a&p=9f7cd316d9c45d 阅读全文
posted @ 2011-12-28 14:52 规格严格-功夫到家 阅读(137) 评论(0) 推荐(0) 编辑
摘要:名称:多处理器系统中的CPU的利用率的统计格式:mpstat [ -P { cpu | ALL } ] [ -V ] [ interval [ count ] ]描述:mpstat是Multiprocessor Statistics的缩写,是实时系统监控工具。其报告与CPU的一些统计信息,这些信息存放在/proc/stat文件中。在多CPUs系统里,其不但能查看所有CPU的平均状况信息,而且能够查看特定CPU的信息。常用选项:-P {|ALL} 表示监控哪个CPU, cpu在[0,cpu个数-1]中取值internal 相邻的两次采样的间隔时间count 采样的次数,count只能和delay 阅读全文
posted @ 2011-12-28 13:26 规格严格-功夫到家 阅读(330) 评论(1) 推荐(0) 编辑
摘要:The JVM is hanging if the process is still present but is not responding in some sense. The end user experience usually is timing out and get a 404 page not found error in the browser. This lack of response can be caused because:* The process has come to a complete halt because of a deadlock conditi 阅读全文
posted @ 2011-12-28 10:40 规格严格-功夫到家 阅读(710) 评论(0) 推荐(0) 编辑
摘要:http://en.wikipedia.org/wiki/Category:Unix_signals1.SIGHUP信号UNIX中进程组织结构为 session (会话)包含一个前台进程组及一个或多个后台进程组,一个进程组包含多个进程。一个session可能会有一个session首进程,而一个session首进程可能会有一个控制终端。一个进程组可能会有一个进程组首进程。进程组首进程的进程ID与该进程组ID相等。这儿是可能会有,在一定情况之下是没有的。与终端交互的进程是前台进程,否则便是后台进程。SIGHUP会在以下3种情况下被发送给相应的进程:1、终端关闭时,该信号被发送到session首进程 阅读全文
posted @ 2011-12-28 10:34 规格严格-功夫到家 阅读(449) 评论(0) 推荐(0) 编辑
摘要:JVM ShutdownThe JVM can shut down in either an orderly or abrupt manner. An orderly shutdown is initiated when the last "normal" (nondaemon) thread terminates, someone calls System.exit, or by other platform-specific means (such as sending a SIGINT or hitting Ctrl-C). While this is the sta 阅读全文
posted @ 2011-12-27 23:35 规格严格-功夫到家 阅读(746) 评论(0) 推荐(0) 编辑
摘要:Home Made Java Virtual Machinehttp://www.codeproject.com/KB/cpp/jvm.aspx 阅读全文
posted @ 2011-12-27 20:56 规格严格-功夫到家 阅读(129) 评论(0) 推荐(0) 编辑
摘要:This "detail" is not abstracted away when interacting with the Java Native Interface. 32-bit DLLs can't be loaded with a 64-bit JVM (and vice versa). So this is quite essential information for anyone using JNI. It's a pity that there seems to be no portable way to obtain this info. 阅读全文
posted @ 2011-12-27 20:55 规格严格-功夫到家 阅读(574) 评论(0) 推荐(0) 编辑
摘要:BASH增加日志功能 如果工作中遇到了比较囧的情况,机器被人攻破了,黑客登录了你的系统(当然我们会尽全力防止这样的事情发生)你一定会希望系统记录下来哪个用户做过哪些操作。History功能并不能满足这个要求,因为黑客的智商应该会告诉他在离开的时候删除history记录(除非你遇到个菜鸟黑客)。 那么我们怎么预防呢?这里的方法是给bash来个记录日志,谁在什么时间操作了什么命令,都写到messages里面去。下面是具体步骤:1. 下载并打补丁#cd /home/soft#wget http://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz#tar zxf bash-4 阅读全文
posted @ 2011-12-27 15:00 规格严格-功夫到家 阅读(395) 评论(0) 推荐(0) 编辑
摘要:http://blog.chinaunix.net/space.phphttp://www.ibm.com/developerworks/cn/linux/l-kernel-logging-apis/http://linuxbpm.blog.51cto.com/1823930/364579http://wenku.baidu.com/view/e3336c8483d049649b665826.html 阅读全文
posted @ 2011-12-27 14:46 规格严格-功夫到家 阅读(234) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/lzyzuixin/article/details/6915399http://blog.itpub.net/category/35701/55237基本的一些概念: 1)syslog的日志为8个等级,从0到7,详细的信息,man syslog就可以了.默认是info.2)我们的系统日志在/var/log/下面,像messages,secure等等,这里要说明的,不是你有操作,系统就会将其写入到对映的日志里也就是说想写日志信息到里面,只能通过syslog系统函数.3)syslog日志系统提供远程日志写入功能,即A机器开放syslog的服务,并开放远程s 阅读全文
posted @ 2011-12-27 14:43 规格严格-功夫到家 阅读(896) 评论(0) 推荐(0) 编辑
摘要:exit(int status)函数是中断当前的进程,返回到当前进程的调用者,即系统,并且还返回给系统一个退出码,即ststus;我们可以利用DOS中的程序异常结束的返回值errorlevel来获得;如:程序exitcode.c#include <stdlib.h>void main( void ){ exit( 10 );}然后写一个批处理文件getexitcode.batexitcode.exeecho %errorlevel%先编译C程序,然后执行批处理文件就可以发现我们得到了退出码了;http://blog.sina.com.cn/s/blog_5f18ff880100h5 阅读全文
posted @ 2011-12-27 13:58 规格严格-功夫到家 阅读(956) 评论(0) 推荐(0) 编辑
摘要:http://www.ibm.com/developerworks/cn/aix/library/au-aixuseradmin/ 阅读全文
posted @ 2011-12-27 12:07 规格严格-功夫到家 阅读(156) 评论(0) 推荐(0) 编辑
摘要:1、根据端口号,找到PCB/ADDRdc-test1<root>netstat -Aan|grep 7013#PCB/ADDR Proto Recv-Q Send-Q Local Address Foreign Address (state)f100060003614398 tcp 0 0 127.0.0.1.7013 *.* LISTENf10006000077ab98 tcp 0 0 172.16.10.10.7013 *.* LISTEN2、用rmsock命令,找到进程id。dc-test1<root>rmsock f100060003614398 tcpcbTh 阅读全文
posted @ 2011-12-27 12:05 规格严格-功夫到家 阅读(3556) 评论(0) 推荐(0) 编辑
摘要:求教:aix下如何解压tar.gz文件QUOTE:原帖由 "老农" 发表:这是LINUX下的tar支持的。AIX下:gzip -dc file.tar.gz |tar-xvf - 阅读全文
posted @ 2011-12-27 11:38 规格严格-功夫到家 阅读(629) 评论(0) 推荐(1) 编辑
摘要:Xmanager用法(export DISPLAY=客户端IP:0.0)===========================================================作者: tonykorn97(http://tonykorn97.itpub.net)发表于: 2007.02.10 23:01分类: linux出处: http://tonykorn97.itpub.net/post/6414/262758---------------------------------------------------------------1、在用户的目录下找到文件.bash_pr 阅读全文
posted @ 2011-12-27 09:17 规格严格-功夫到家 阅读(4201) 评论(1) 推荐(1) 编辑
摘要:1 检测IPV6是否启用1.1 使用ifconfig查看自己的IP地址是否含有IPv6地址 inet addr:192.168.198.128 Bcast:192.168.198.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fee4:1d8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1080 errors:0 dropped:0 overruns:0 frame:0 TX packets:890 errors:0 dropped:0 阅读全文
posted @ 2011-12-27 09:15 规格严格-功夫到家 阅读(876) 评论(0) 推荐(0) 编辑
摘要:一个简单的HashMapC语言实现 blog.csdn.net/cheungmine/article/details/1894219 http://ubuntuforums.org/showthread.php?t=1222055http://elliottback.com/wp/hashmap-implementation-in-c/http://stackoverflow.com/questions/3300525/super-high-performance-c-c-hash-map-table-dictionary 阅读全文
posted @ 2011-12-26 11:34 规格严格-功夫到家 阅读(653) 评论(0) 推荐(0) 编辑
摘要:inet_addr 将"数字+句点"的格式的IP地址转换到unsigned long中,返回值已经是按照网络字节顺序的相反inet_ntoa把类型为struct in_addr的数据转化为"数字+句点"的形式的字符串typedef u_int32_t in_addr_t;struct in_addr{ in_addr_t s_addr;};本机字节顺序与网络字节顺序的转换#include <arpa/inet.h>htons ------"host to network short"htonl -------"h 阅读全文
posted @ 2011-12-26 11:17 规格严格-功夫到家 阅读(321) 评论(0) 推荐(0) 编辑
摘要:http://developer.51cto.com/art/201003/191063.htmhttp://www.imladris.com/Scripts/PythonForWindows.html 阅读全文
posted @ 2011-12-26 11:15 规格严格-功夫到家 阅读(179) 评论(0) 推荐(0) 编辑
摘要:当在WebSphere配置好IHS后,在管理控制台尝试启动他的时候会报类似:"Could not make a connection to the node agent or IBM HTTP Server administration server on node <nodename>"的错误。而dmgr的日志SystemOut.log显示有com.ibm.ws.management.webserver.ServerNotAvailableException。这时候要考虑WebSphere怎么控制IHS的:IP/HostName:WebSphere通过IP/H 阅读全文
posted @ 2011-12-23 13:57 规格严格-功夫到家 阅读(856) 评论(0) 推荐(0) 编辑
摘要:最近在工作遇到一个问题,too many open files异常,这个异常最终的结果导致Resin停止响应。在我们的系统中是发现把一个目录当作文件来读取,而JDK1.4对这种情况虽然抛出了异常,但是已经打开的文件句柄没有及时的释放,最终超出了系统的限制,在Linxu下,可以用ulimit -a查看每个进程允许打开的文件个数,我们的是1024.下面的代码解释了这种问题的发生,运行环境:JDK1.4import java.io.*;public class TestFile{public static void main(String[] args) throws Exception{read( 阅读全文
posted @ 2011-12-22 09:38 规格严格-功夫到家 阅读(858) 评论(0) 推荐(0) 编辑
摘要:Linux驱动开发庖丁解牛Jprobe安全事件管理系统关键技术研究--中科大的一篇博士论文logmanagement.pdf--企业安全日志管理指南TextMining08-关联.pdf--关联分析技术PPT安全事件管理系统中关联分析引擎的实现.pdfhttp://lxy520880.blog.163.com/blog/static/3425600200973091547595/http://hi.baidu.com/%CC%EC%D1%C4%C0%CB%D7%D3%D0%C4/blog/item/d0e42f13c744a05af819b89b.htmlhttp://www.microsof 阅读全文
posted @ 2011-12-21 23:40 规格严格-功夫到家 阅读(247) 评论(0) 推荐(0) 编辑
摘要:http://www.iteye.com/topic/7005 阅读全文
posted @ 2011-12-21 22:40 规格严格-功夫到家 阅读(185) 评论(0) 推荐(0) 编辑
摘要:高级语言虚拟机上的一个使用方法Menu -> Run -> External Tools -> External Tools configurations -> Program -> NewNamejavap -c Location/usr/bin/javap Working Directoryworkspaceloc/{project_name} Arguments-verbose -c -classpath workspaceloc/{project_name}/bin javatypename{workspace_loc}/$ 阅读全文
posted @ 2011-12-19 20:18 规格严格-功夫到家 阅读(458) 评论(0) 推荐(0) 编辑
摘要:面向过程设计和面向对象设计的主要区别是:是否在业务逻辑层使用冗长的if else判断。如果你还在大量使用if else,当然,界面表现层除外,即使你使用Java/C#这样完全面向对象的语言,也只能说明你的思维停留在传统的面向过程语言上。 传统思维习惯分析 为什么会业务逻辑层使用if else,其实使用者的目的也是为了重用,但是这是面向过程编程的重用,程序员只看到代码重用,因为他看到if else几种情况下大部分代码都是重复的,只有个别不同,因此使用if else可以避免重复代码,并且认为这是模板Template模式。 他范的错误是:程序员只从代码运行顺序这个方向来看待它的代码,这种思维类似.. 阅读全文
posted @ 2011-12-19 10:41 规格严格-功夫到家 阅读(321) 评论(0) 推荐(0) 编辑
摘要:http://fengzhilinux.blog.51cto.com/1343279/315690http://www.hashei.me/2009/04/was6-install-step-by-step.html 阅读全文
posted @ 2011-12-12 15:21 规格严格-功夫到家 阅读(127) 评论(0) 推荐(0) 编辑
摘要:http://www.tcpdump.org/pcap.htmhttp://blog.csdn.net/force_eagle/article/details/6681802一、tcpdump简明用法 Usage: tcpdump [-adeflnNOpqRStuvxX] [ -c count ] [ -C file_size ]/Files/diyunpeng/soc_po.txt [ -F file ] [ -i interface ] [ -r file ] [ -s snaplen ] [ -T type ] [ -U user ] [ -w file ] [ -E algo:secr 阅读全文
posted @ 2011-12-12 14:48 规格严格-功夫到家 阅读(2197) 评论(0) 推荐(0) 编辑
摘要:1. SHOW CREATE TABLE 可以查看创建分区表的CREATE语句 2. SHOW TABLE STATUS 可以查看表是否为分区表 3. 查看INFORMATION_SCHEMA.PARTITIONS表 SELECT partition_name part, partition_expression expr, partition_description descr, table_rows FROM INFORMATION_SCHEMA.partitions WHERE TABLE_SCHEMA = schema() AND TABLE_NAME='employee... 阅读全文
posted @ 2011-12-12 09:01 规格严格-功夫到家 阅读(1991) 评论(0) 推荐(0) 编辑
摘要:http://blog.sina.com.cn/s/blog_864794700100ulyd.html 一个sina博客不错:http://blog.sina.com.cn/s/articlelist_1681330000_0_1.htmlhttp://onjava.com/pub/a/onjava/2002/06/19/log.html?page=2 阅读全文
posted @ 2011-12-10 19:01 规格严格-功夫到家 阅读(178) 评论(0) 推荐(0) 编辑
摘要:1: enable JMX management for tomcat Tomcat doesn't enable the jmx management interface by default,so we have to enable it first before using it. it is very easy to do, all we need to do is add the following arguments into the script "catalina.bat". set CATALINA_OPTS=-Dcom.sun.managemen 阅读全文
posted @ 2011-12-08 08:48 规格严格-功夫到家 阅读(268) 评论(0) 推荐(0) 编辑
摘要:从你的日志信息来看有很多阻塞的线程,当达到weblogic设置的600秒后就会报错,原因有很多最常见的有两种:一种是当线程请求数据库连接时没有可用的连接因此在等待然后超时,解决方法是看看weblogic和数据库方面对新连接有没有限制,有的话把限制解除。第二种就是代码问题了,对于这个问题简单来说就是内存泄露和线程死锁导致wls hang,可能是你的代码问题也可能是使用的三方框架的bug,通常是使用命令工具查找是哪个线程泄露和死锁,解决wls hang可用参照以下方法:Hang产生的原因一般为:–系统内存不足–系统cpu忙–系统文件描述符数目不足–线程死锁–JVM有GC方面的bug–对于一些特定的 阅读全文
posted @ 2011-12-06 09:23 规格严格-功夫到家 阅读(320) 评论(0) 推荐(0) 编辑
摘要:在ChinaUnix找到一个不错的帖子,把其中的脚本整理一下:#!/bin/bash#记录时间T=(date+"T.sql#但是这样是否中途有数据损失不好说mysql-uroot-p12345-e"useflow;truncatetablerecord;"#这种是备份到辅助表中mysql-uroot-p12345-e"useflow;createtablerecord$Tasselect*fromr 阅读全文
posted @ 2011-12-05 17:19 规格严格-功夫到家 阅读(255) 评论(0) 推荐(0) 编辑
摘要:备份mysql数据很方便,用Mysql Administrator这种可视化工具做就可以了.但是这样会带有具体的数据,找了一下,没发现不带数据的option.用mysql querybrowser可以得到具体一张表的建表语句,但是表多了就得一张一张弄.很麻烦.如果想偷懒一点,就只能命令行用mysqldump这个工具了-:) 运行一下musqldump,可以得到如下说明 [root@S101 bin]# mysqldump Usage: mysqldump [OPTIONS] database [tables] OR mysqldump [OPTIONS] --databases [OPTION 阅读全文
posted @ 2011-12-01 13:27 规格严格-功夫到家 阅读(3153) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示