Archive for the 'programming' Category
- Open Source Programming Contest - Can You Code 24 Hours Non-Stop?
Can you code 24 hours non-stop? Hackontest is a new Google-sponsored 24-hour programming competition between different open source projects.
- ktrace - FreeBSD / Mac OS X Process Tracing and Reporting Tool
Under Linux you can use strace or valgrind tool for reporting and finding a bug. However, under *BSD / Mac OS X you need to use ktrace as replacement for strace tool.
kreace runs on the following platforms:
=> FreeBSD
=> OpenBSD
=> Mac OS X
=> NetBSD
The ktrace utility enables kernel trace logging for the specified processes. [...] - DIY: Create Robots with Linux
ASIMO is a humanoid robot manufactured by Honda which is quite high tech and expensive gadget. You can hired out it for US $166,000 per year. However, as usual Linux provides you an opportunity to build your own robot. Linux-based robots are tricky to create, but Michael Surran’s Robotics class found out it can be [...]
- Programming: Understanding Linux Completely Fair Scheduler
The new Linux scheduler extends scheduling capabilities by introducing scheduling classes and also simplifies debugging by improving schedule statistics. Completely Fair Scheduler (CFS) is getting good reviews when tested for thread-intensive applications including 3D games. CFS handles CPU resource allocation for executing processes, and aims to maximize overall CPU utilization while maximizing interactive performance. CFS [...]
- Coverity Scan: Security Holes Found in Open Source Projects
Coverity is a company that creates tools for software development. Its premiere product is Prevent, a static-analysis code inspection tool. Coverity offers the results of Prevent’s analysis for free to open source developers.
From the project home page:
In collaboration with Stanford University, Coverity is establishing a new baseline for software quality and security in open [...] - Bash Shell Tip: Copy Set of Files to All Users Home Directory
If you would like to copy a set of files for all existing users, use the following scripting trick. It will save lots of manual work.
First you need to grab all user names from /etc/passwd file using cut comand:
cut -d: -f1 /etc/passwd
Next use shell for loop command to apply copy and set the correct permissions [...] - How to recursively go through all local or remote directories
You can use find command or recursdir command to recurse through local or remote directories to command/find files or create tar files.
recursdir command pass a C script to recursively perform operations on files. recursdir is an excellent tool for automatic stuff. It provides C style programming functions and statements such as:strncmp()
exec()
system()
strstr()
strcat()
printf()
popen()
if ( [...] - Linux assembly language comparison: GNU Assembler (GAS) vs Netwide Assembler (NASM)
This article explains some of the more important syntactic and semantic differences between two of the most popular assemblers for Linux®, GNU Assembler (GAS) and Netwide Assembler (NASM), including differences in basic syntax, variables and memory access, macro handling, functions and external routines, stack handling, and techniques for easily repeating blocks of code.
Unlike other languages, [...] - Shell Scripting: Generate or Print Range of Numbers ( Sequence of Numbers for Loop )
One our reader asks:
How do I generate a range of numbers under BASH for loop command? For example, I need to run particular command inside loop 100 or 500 times. Basically I want function that counts FROM and TO a range of numbers like 50-10.
- Increase productivity with FTP autologin and macros
You may use many macros under office packages. However, your ftp client also supports macros. You can use ~/.netrc - user configuration file. The .netrc file contains login and initialization information used by the auto-login process and stores macros information. It resides in the user’s home directory.
Turn on FTP client auto login
You need to [...]
Viewing 11-20 of 20 posts.
« Previous Page



Recent Comments
Today ~ 7 Comments
Today ~ 14 Comments
Today ~ 11 Comments
Today ~ 12 Comments
Yesterday ~ 2 Comments