- 博客(641)
- 资源 (11)
- 收藏
- 关注
转载 Choosing cheap software packages to get started with Data Mining
From: http://blog.samibadawi.com/2010/04/r-rapidminer-statistica-ssas-or-weka.htmlYou have a data mining problem and you want to try to solve it with a data mining software package. The most popular
2013-03-11 18:57:03
1127
原创 BackTrack 5 tools
1. fping 可以指定一个ip范围root@root:~# fping -g 10.9.128.0 10.9.128.25510.9.128.1 is alive10.9.128.6 is alive10.9.128.7 is alive10.9.128.9 is alive10.9.128.10 is alive10.9.128.11 is alive2. httpr
2013-02-23 18:39:07
6821
原创 BackTrack 5 无线安全 - crack WPA
1. airodump-ng -w joey --channel 6 mon0 (capture the packets)2. aireplay-ng -0 10 -a F8:D1:11:E4:83:C8 (AP's mac) -h 28:CF:DA:DD:0A:18 (Client's mac) mon0 (build the handshake packet)3. aircrack-n
2013-02-23 18:32:53
1051
原创 BackTrack 5 无线安全 - DA
1. ifconfig 查看系统网络接口2. airmon-ng start wlan0 设置无线网卡为monitor状态3. airodump-ng -a mon0 抓包(All)4. airodump-ng --bssid 00:27:19:9D:AA:0A mon0 抓包(特定AP)5. 将特定AP中的所有client DA,可以从4的结果中观察到root@root:~#
2013-02-23 18:29:48
1153
1
原创 BackTrack 5 notes
u盘启动,进入系统后:1. 设置拨号上网,使用pppoeconf命令。plog查看ip分配情况;poff断开网络;pon dsl-provider重新拨号。2. ubuntu pdf readerapt-get install okular
2013-02-23 18:24:49
829
原创 程序员的自我修养 ch6 可执行文件的装载与进程
参考《程序员的自我修养》ch61. MMUMMU是Memory Management Unit的缩写,中文名是内存管理单元,它是中央处理器(CPU)中用来管理虚拟存储器、物理存储器的控制线路,同时也负责虚拟地址映射为物理地址,以及提供硬件机制的内存访问授权。在ELF中把这些属性相似的,又连在一起的段叫做一个“segment”,而系统正是按照“segment”而不是“section”
2013-02-03 14:40:00
2628
原创 Usb Flash Drives - backtrack 5
refer to http://www.backtrack-linux.org/tutorials/usb-live-install/This method of getting a live install to a USB drive is the simplest available using Unetbootin. Note that we will format the U
2013-01-28 21:24:31
679
原创 程序员的自我修养 ch4 静态链接
参考《程序员的自我修养》ch4.1. 空间与地址分配这里的空间分配只关注于虚拟地址空间的分配现在的链接器空间分配基本上都采用 相同类型合并 的策略,使用这种方法的链接器一般采用一种叫 两步链接(Two-pass Linking) 的方法。 也就是说整个过程分两步:第一步 空间与地址分配;第二步 符号解析与重定位,这一步是链接的核心,特别是重定位;>> ld a.o b.
2013-01-13 15:59:29
2552
原创 程序员的自我修养 ch3 目标文件
参考《程序员的自我修养》ch31. 目标文件的种类>> file hello.ohello.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped>> file /bin/ls/bin/ls: ELF 32-bit LSB executable, Intel 80386, vers
2013-01-04 21:08:30
1529
原创 How do I set the timeout for a JAX-WS webservice client? if you want to set timeouts for specific se
1. 参考:http://stackoverflow.com/questions/2148915/how-do-i-set-the-timeout-for-a-jax-ws-webservice-client if you want to set timeouts for specific services, once you've created your proxy you need to
2013-01-03 20:33:46
1461
原创 html5 websocket demo
参考:1. http://www.oschina.net/code/snippet_176897_59382. 用Python实现一个简单的WebSocket服务器http://blog.mycolorway.com/2011/11/22/a-minimal-python-websocket-server/3. 一个免费的post 测试server,https://postte
2013-01-03 20:27:37
1368
原创 buffer vs. cache
In order to make clear about the difference between “buffers and cached” from the ‘top’ result, here are the operations and observations, the server is of about 50G memory.1. cat /dev/vg00/lv
2013-01-03 20:23:07
635
原创 Java 动态覆盖测试工具
1. EMMAhttp://grepcode.com/snapshot/repo1.maven.org/maven2/emma/emma/2.1.53202. coberturahttp://mojo.codehaus.org/cobertura-maven-plugin/project-info.html3. EclEMMAhttp://www.51testing.c
2013-01-03 19:58:49
947
转载 电脑控制手机的另一选择 - android vnc server
from: http://bbs.gfan.com/android-116468-1-1.html--------------------------------本人使用的是droid vnc server.近来发现的Android上的原生VNC Server,就是说只要手机上安装并运行这个软件,即可实现电脑上查看并控制手机了。 首先是手机端。 1)下载androidvnc
2012-12-30 20:51:53
2335
转载 eclipse 下android的错误clipse Debug Certificate expired on....
From: http://blog.csdn.net/longweizhe/article/details/6994533eclipse里的android工程不能编译,一直打个红叉,代码没任何问题一直错误提示“eclipse Debug Certificate expired on 10-10-11” 原来是android debug key 默认有效期是1年,解决办法是:
2012-11-25 16:08:08
889
转载 Android 二维码应用
1. 扫描程序http://xinlanzero.iteye.com/blog/11148262. 二维码产生程序http://qr.jibaoku.com/3. eoe Wiki : http://wiki.eoeandroid.com/%E9%A6%96%E9%A1%B5 前言 最近公司的Android项目需要用到摄像头
2012-11-25 15:54:31
3270
转载 Memory Layout And The Stack
From: http://www.dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.phpUsing GNU's GDB DebuggerMemory Layout And The StackBy Peter Jay SalzmanPrevious: IntroductionNext: Debugging
2012-11-25 15:45:23
1368
原创 Linux top command illustration
1. 关于CPU的wa, si, hi, 理想系统的wa应该为0%, si, hi 应小于5%.wa高说明系统等待IO的时间长,例如:http://hi.baidu.com/higkoo/item/70600834426247483075a1df 2. 关于block和cache的区别和联系,下面是几个小实验的测试结果,测试机器内存约50G。1. cat /dev
2012-11-25 15:43:36
927
原创 OpenFusion memory leak II
1. 使用MAT确定了泄漏的对象类型为T,通过反编译fusion的源代码,发现toString()方法为“Filter”,猜想T为Filter。2. 如何对导致Filter泄漏呢?断开网线?异常退出?通过验证,以上两种均可以导致Corba对象无法被销毁,进而导致T对象泄漏在OpenFusion中。总结下Java程序的debug,1. 总是可以找到根源的,随着时间的推移,对问题的理解也在
2012-11-25 15:35:40
702
原创 OpenFusion memory leak
最近遇到了一个关于OpenFusion的问题,系统在运行了一段时间(几天至30多天不等),Notification Service Java进程中堆占用的内存超过了memory limit,使得内部的MemoryManager不断的去调用system.gc()去释放内存,进而导致新收到的event全部丢弃。这时对外部的显示是系统反应缓慢,直至响应超时。最终发现了导致这个问题的原因,1)采购
2012-09-26 22:13:11
808
转载 推荐系统入门实践:世纪佳缘会员推荐(完整版)
From: http://www.cnblogs.com/supersteven/archive/2012/09/01/2666565.html版本作者联系日期1.0周巍然weiran.chow@gmail.com20120723
2012-09-26 21:52:23
5779
转载 UML实践----用例图、顺序图、状态图、类图、包图、协作图
From: http://www.uml.org.cn/oobject/200901203.asp面向对象的问题的处理的关键是建模问题。建模可以把在复杂世界的许多重要的细节给抽象出。许多建模工具封装了UML(也就是Unified Modeling Language™),这篇课程的目的是展示出UML的精彩之处。UML中有九种建模的图标,即:用例图类图对象图顺序图协作图状态图活动图
2012-09-26 21:37:30
2649
1
原创 ArchSummit架构师峰会 资料下载
这里有些不错的资料,http://www.archsummit.com/download.php专题架构的生长与演进搜索新时代海量视频的处理与分发09:00大数据的技术趋势和演变10:00腾讯开放平台架构设计解密
2012-09-26 21:33:19
6249
转载 C语言的谜题
From: http://coolshell.cn/articles/945.html这几天,本站推出了几篇关于C语言的很多文章如下所示:语言的歧义 [酷壳链接] [CSDN链接]谁说C语言很简单? [酷壳链接] [CSDN链接]6个变态的C语言Hello World程序 [酷壳链接] [CSDN链接]如何加密/弄乱C源代码 [酷壳链接] [CS
2012-09-25 21:40:27
1038
转载 Apache Address already in use: make_sock: could not bind to port 80 or 443 error and solution
From: http://www.cyberciti.biz/faq/apachehttpdaddress-already-in-use-make_sock-could-not-bind-to-port-80-or-443/Apache Address already in use: make_sock: could not bind to port 80 error and solu
2012-09-13 21:51:21
1588
转载 Using TCP keepalive to Detect Network Errors
from: http://www.gnugk.org/keepalive.htmlTo detect network errors and signaling connection problems, you can enable TCP keep alive feature. It will increase signaling bandwidth used, but a
2012-09-12 18:40:55
967
原创 java进程统计已使用的heap大小
命令如下:jstat -gc $pid | grep -v S0C | awk '{ print $3+$4+$6+$8;}'具体参数可以参考 http://docs.oracle.com/javase/1.5.0/docs/tooldocs/share/jstat.html
2012-09-03 21:59:22
745
原创 实现BlockingQueue
看了下JDK的源代码实现,模拟了一下ArrayBlockQueue,代码如下:import java.util.LinkedList;import java.util.List;import java.util.concurrent.locks.Condition;import java.util.concurrent.locks.ReentrantLock;public cla
2012-08-28 18:53:51
997
原创 Why does a destructor in base class need to be declared virtual?
1. 父类的destructor是非虚函数#include using namespace std;class A{public: ~A() { cout << "I am in A" << endl; }};class B:public A{public: ~B()
2012-08-10 15:17:23
637
原创 Compare and contrast Hash Table vs. STL map
In a hash table, a value is stored by applying hash function on a key. Thus, values are not stored in a hash table in sorted order. Additionally, since hash tables use the key to find the index that w
2012-08-09 16:24:35
961
转载 最大值最小化问题
From: http://www.cnblogs.com/gentleming/archive/2010/07/16/1778926.htmlQuestion:把一个包含n个正整数的序列划分成m个连续的子序列(每个正整数恰好属于一个序列)。设i个序列的各数之和为S(i),你的任务是让所有S(i)的最大值尽量小。Answer:二分法:#include #include u
2012-08-05 22:24:01
3618
原创 逆序对数
Question:设A[1..n]是一个包含N个非负整数的数组。如果在i〈 j的情况下,有A〉A[j],则(i,j)就称为A中的一个逆序对。Answer:在归并的时候,当右边的A[j]被复制到B中时,左边还没来得及复制的就是所有左边比A[j]大的数。#include using namespace std;int A[] = { 1, -3, 2, -5, 4, 0 };
2012-08-05 22:18:36
1432
原创 素数环问题
Question:将从1到n这n个整数围成一个圆环,若其中任意2个相邻的数字相加,结果均为素数,那么这个环就成为素数环。n=20时,下面的序列就是一个素数环:1 2 3 4 7 6 5 8 9 10 13 16 15 14 17 20 11 12 19 18Answer:#include #include using namesp
2012-08-04 16:51:17
1375
原创 eight queens
Question:Write an algorithm to print all ways of arranging eight queens on a chess board so that none of them share the same row, column or diagonal.Answer:#include using namespace std;int
2012-08-03 21:27:07
655
原创 打印括号的合法组合
From career up 150.Implement an algorithm to print all valid (e.g., properly opened and closed) combinations of n-pairs of parentheses.#include using namespace std;const int n = 3;char a[n * 2
2012-07-31 10:50:26
933
原创 基本数据结构/算法题总结
1. 字符串相关a. 一组字符串,判断at least one is a prefix of another?b. reverse a stringc. reverse words in a stringd. atoi()e. 求一个字符串最长回文2. 数组相关a. 2n+2个数,求2个不同的b. 一个数组,删除重复整数c. 一个数组,求出所有和为定值的
2012-07-29 16:58:00
729
原创 设计题总结
1. Provide a object oriented design for expression evaluator2. Hotel reservation system3. Design file system4. Design database tables for books, authors, publishers.5. Design parking lot.
2012-07-29 15:54:22
1079
转载 ACM--楼层扔鸡蛋问题
From: http://blog.163.com/ty_sky0908/blog/static/133360335201101155853282/ACM--楼层扔鸡蛋问题 IMNU OJ 1253--鸡蛋DescriptionGardon有一些鸡蛋,他现在想知道这些鸡蛋的硬度。Gardon的家住在一座很高很高的大楼里,他现在要在这座大楼上测试鸡蛋的硬度。每个鸡蛋的硬度相同,
2012-07-29 13:55:25
3091
machine learning advice
2011-11-05
Inside Java Virtual Machine
2007-11-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅