Author Archives: daveti

Unknown's avatar

About daveti

Interested in kernel hacking, compilers, machine learning and guitars.

design: dynamic kernel machine – dkm

Posted in AI/ML, Dave's Tools | Tagged | Leave a comment

dave’s random integer generator – drig

Project Name: drig Destination: A Java Swing GUI application for demo random integer generation with given range and number requested – random lucky numbers generation for lottery. Language: Java IDE: NetBeans Project Web: http://kenai.com/projects/drig SVN address: https://svn.kenai.com/svn/drig~drig-src Source Code: http://kenai.com/projects/drig/sources/drig-src/showContinue reading

Posted in Dave's Tools | Tagged , , , , , | 2 Comments

SVN quick guide for kenai project

A quick reference of svn on kenai project to submit, checkin and checkout source code as a dev. The intro focuses on Windows SVN with http/https and take ‘drig’ as an example. Great thanks to official help page: Using Subversion on … Continue reading

Posted in Programming | Tagged , , | Leave a comment

time measurement for function call

Episode usage of ‘gettimeofday()’ and ‘times()‘ On Unix/Linux machine to measure the time consumption for certain function call, ‘gettimeofday’/’times’ would be 2 major ways. Better than ‘gettimeofday’, ‘times’ could provide detailed time info for user, system, child… 1. gettimeofday() #include … Continue reading

Posted in Programming | Tagged , , , , , | Leave a comment

kernel design approaches

A digest for kernel-wide design from wikipedia (including ALL the pics and some definitions) 1. Monolithic kernel (宏内核) a: entire OS in kernel space and supervisor mode (eg, ring 0); b: a set of primitives or system calls for ALL … Continue reading

Posted in OS | Tagged , , , , , , , | Leave a comment

trap – signal handling in shell

Ways for shell to create ‘multi-thread’ scripts (用shell写多线程脚本) An enhancement for ‘tod‘(利用trap改进多线程shell脚本) Yes, the way to write ‘multi-thread’ for shell is using ‘&’ to submit background job. We will use ‘tod’ for example: In ‘tod’, there are in total 3 … Continue reading

Posted in Programming | Tagged , , , , , | 2 Comments

tcpdump on diskless – tod

Name: tod (无盘机器上的tcpdump) Language: KSH Destination: tcpdump on diskless Orignal Intention: Run tcpdump on diskless machine where memory space is highly restricted Version: 0.0 Supported Protocol: UDP/TCP/SCTP Supported OS: Linux/FreeBSD/Solaris Note: ‘root’ permission is preferred to avoid OS kernel error … Continue reading

Posted in Dave's Tools | Tagged , , , , | 86 Comments

Jar usage

(1)Create jar (创建jar) jar cf hello.jar hello 利用test目录生成hello.jar包,如hello.jar存在,则覆盖 (2)Create jar and display the process (创建并显示打包过程) jar cvf hello.jar hello 利用hello目录创建hello.jar包,并显示创建过程 例:E:\>jar cvf hello.jar hello 标明清单(manifest) 增加:hello/(读入= 0) (写出= 0)(存储了 0%) 增加:hello/TestServlet2.class(读入= 1497) (写出= 818)(压缩了 45%) 增加:hello/HelloServlet.class(读入= 1344) (写出= 736)(压缩了 45%) … Continue reading

Posted in Programming | Tagged , | 2 Comments

Tune look&feel, language for NetBeans

To change the look&feel, language for NetBeans (改变NetBeans的外观和默认的语言环境), especially for the IDE on Windows XP with default language – Chinese: Modify ‘netbeans.conf’ under your ‘$NETBEANS_HOME/etc/’  by adding –laf javax.swing.plaf.metal.MetalLookAndFeel //change the look&feel into Java metal style –locale en_US // change … Continue reading

Posted in IDE_Make | Tagged , | 4 Comments

Kernel Functions in Machine Learning (Transfered)

Kernel Functions for Machine Learning Applications Published Wednesday, March 17, 2010 by César Souza in C#, Mathematics, Statistics In recent years, Kernel methods have received major attention, particularly due to the increased popularity of the Support Vector Machines. Kernel functions … Continue reading

Posted in AI/ML | Tagged , , | 6 Comments