The best way to get ahold of me is by email. mchirico@users.sourceforge.net or mchirico@gmail.com, twitter
Mike Chirico  

SourceForge.net Logo SourceForge.net Logo

Sample code:
 [All C++ in tar.gz]  [All C in tar.gz]  [Spider Progs tar.gz]  [Stock Mrkt Prog tar.gz]  
 http_post.c   tarSslTapeBackup   tarSslTapeRestore   gettimeofday.c
  server2way_waitpid.c  http_get.c  jumble.cc  pointer_to_a_function.cc
 stringsplit.cc  popen_w_string.cc  signal_with_fork.c  gradecalc.cc
 virtual_function.cc  semastat.cc  getrusage.cc  fstream_stat.cc
 getopt.cc  myassert.cc  find_if_gt_4.cc  vector_size_gotchas.cc
 semPosixThread.cc  Vector_Insert_Simple.cc  set_intersection.cc  iterator_vec_list_set.cc
 msg_Q_write.cc  msg_Q_read.cc  msg_Q_stat.cc  Makefile
 Effective UID  mmap_seminit_fork.cc  extract.h  stl_template_funct.cc
 tmp_of_tmp.cc  procreadwrite.c  SampleMurlCall.java  functptr_w_vector.cc
 foreach.pl  waitpid.c  desktop_calc.cc  int_fraction_part.cc
 string_to_i_vec.cc  stringVal.cc  rotate_match.cc  strcspn_strspn_example.c
 ss_to_map.cc  stl_repeat_trans.cc  getline_vec.cc  derived_classes.cc
 regexp.c  open.c  mftp  dir.c
 weatherMySQL.pl  thread_simple.c  thread_simple2.c  copy_in.cc  
       
  server2way_waitpid.c   server_thread.c  server_thread_mysql.c   thread_join_wait.c
  thread_join_wait_dlopen.c   tclient.c  separate_compilation  for_each_sum.cc
 copy_output_list_vector.cc  copy_constructor_assignment.cc  list3.c  
 sqlite3api.cc  copy_if_trans.cc  string_toupper.cc  array_passing.cc.html
 rawsockets.c  integrate2.cc  raii.cc  string_from_scratch.cc
 cards.cc  dnotify.c    

Articles

MSSQL 2005 Tips Simple and complete examples for performing common tasks with Microsoft SQL Server 2005.

Performance Monitoring on Linux Demonstrated examples using oprofile, IOzone, vmstat, smartmontools, and the ps command are covered in this tutorial. This work-in-progress covers profiling the kernel, generating stress tests, examining memory swapping, querying the number of hours your drive has been spinning plus getting the current, maximum and minimum temperatures.

Postfix 2nd Instance for Sender-based Routing: Multiple Gmail and Comcast Accounts. Configure your home system to support several Gmail accounts, and additionally, Comcast and or other ISP accounts that require individual authentication rules based on the sending address. This tutorial walks you through configuring a second instance of Postfix, on a second IP address (same NIC), with sender-based routing.

Linux Quota Tutorial This tutorial walks you through implementing disk quotas for both users and groups on Linux, using a virtual filesystem, which is a filesystem created from a disk file. Since quotas work on a per-filesystem basis, this is a way to implement quotas on a sub-section, or even multiple subsections of your drive, without reformatting. This tutorial also covers quotactl, or quota's C interface, by way of an example program that can store disk usage in a SQLite database for monitoring data usage over time.

Gmail on Home Linux Box using Postfix and Fetchmail If you have a Google Gmail account, you can relay mail from your home linux system. It's a good exercise in configuring Postfix with TLS and SASL. Plus, you will learn how to bring down the mail safely, using fetchmail with the "sslcertck" option, that is, after you have verify and copied the necessary certificates. You'll learn it all from this tutorial. And you'll have Gmail running on your local Postfix MTA.

Breaking Firewalls with OpenSSH and PuTTY If the system administrator deliberately filters out all traffic except port 22 (ssh), to a single server, it is very likely that you can still gain access other computers behind the firewall. This article shows how remote Linux and Windows users can gain access to firewalled samba, mail, and http servers. In essence, it shows how openSSH and PuTTY can be used as a VPN solution for your home or workplace.

Create your own custom Live Linux CD These steps will show you how to create a functioning Linux system, with the latest 2.6 kernel compiled from source, and how to integrate the BusyBox utilities including the installation of DHCP. Plus, how to compile in the OpenSSH package on this CD based system. On system boot-up a filesystem will be created and the contents from the CD will be uncompressed and completely loaded into RAM -- the CD could be removed at this point for boot-up on a second computer. The remaining functioning system will have full ssh capabilities. You can take over any PC assuming, of course, you have configured the kernel with the appropriate drivers and the PC can boot from a CD.

SQLite Tutorial This article explores the power and simplicity of sqlite3, first by starting with common commands and triggers, then the attach statement with the union operation is introduced in a way that allows multiple tables, in separate databases, to be combined as one virtual table, without the overhead of copying or moving data. Next, the simple sign function and the amazingly powerful trick of using this function in SQL select statements to solve complex queries with a single pass through the data is demonstrated, after making a brief mathematical case for how the sign function defines the absolute value and IF conditions.

Lemon Parser Tutorial Lemon is a compact, thread safe, well-tested parser generator written by D. Richard Hipp. Using a parser generator, along with a scanner like flex, can be advantageous because there is less code to write. You just write the grammar for the parser. This article is an introduction to the Lemon Parser, complete with examples.

NTP, UTC, and Working with Time on Linux This article defines what is meant by UTC, shows you how to use the date command to calculate the date for any timezone including with or without dst. Plus you will see how to setup and confirm that NTP is working. There is also a program to calculate sunrise and sunset given longitude and latitude in degrees.

Linux Tips There are over 200 Linux tips and tricks from using encryption, tar, cpio, setting up multiple IP addresses on one NIC, tips for using man, putting jobs into the background, using shred, watch who is doing what on your system, listing system settings, IPC status, how to make a file immutable so that even root cannot delete, ssh key pair generation, keeping 12 months of backups in the system logs, low level tap commands (mt), mount an ISO image as a filesystem, getting information on the hard drive, setting up cron jobs, look command, getting a bigger word dictionary, find out if a command is aliased, ASCII codes, using elinks, screen commands, FTP auto-login, Bash brace expansion, Bash string operators, for loops in Bash, diff and patch, script, change library path (ldconfig), monitor file usage, --parents option in commands, advance usage of the find command, cat tricks, guard against SYN flood attacks and ping, special shell variables, RPM usage, finding IP and MAC address, DOS to UNIX conversion, PHP as command line scripting language, Gnuplot, POVRAY and making animated GIFs, plus a lot more.

Virtual Filesystem: Building a Linux Filesystem from an Ordinary File You can take a disk file, format it as ext2, ext3, or reiser filesystem and then mount it, just like a physical drive. Yes, it then possible to read and write files to this newly mounted device. You can also copy the complete filesystem, since it is just a file, to another computer. If security is an issue, read on. This article will show you how to encrypt the filesystem, and mount it with ACL (Access Control Lists), which give you rights beyond the traditional read (r) write (w) and execute (x) for the 3 user groups file, owner and other.

How to Compile 2.6 kernel for RedHat 9 and 8.0 and get Fedora Updates Upgrading Redhat 9 or 8.0 to the 2.6.x kernel. This is a step by step approach on how to compile the kernel from source, then, get yum updates for all your other packages. There is also information and examples on writing a 2.6 kernel module.

MySQL Tips and Tricks Find out who is doing what in MySQL and how to kill the process, create binary log files, connect, create and select with Perl and Java, remove duplicates in a table with the index command, rollback and how to apply, merging several tables into one, updating foreign keys, monitor port 3306 with the tcpdump command, creating a C API, complex selects, and much more.

Comcast Email on Home Linux Box with Sendmail Suppose you have accounts on your home Linux system that differ from the name of your email accounts from your ISP. For instance, my email account (from comcast) is mchirico but the account I have on my Linux box is chirico. What I wanted to do, is use the local chirico account to get, create, send, email automatically as mchirico@comcast.net. This article will show you how to do that.


So, what's the next series of numbers?
1 ; 1,1 ; 2,1 ; 1,2,1,1 ; _ _ _ _ _ _

Recommended reading:
 "Zen and the Art of Motorcycle Maintenance" by Robert M. Pirsig
"Arrowsmith"
by Sinclair Lewis.
"Advanced Linux Programming"
by Mark Mitchell, Jeffrey Oldham, and Alex Samuel, of CodeSourcery LLC
"An Introduction to GCC for the GNU Compilers gcc and g++"
by Brian Gough.
"Comparing and Merging Files with GNU diff and patch"
by David MacKenzie, Paul Eggert, Richard Stallman. (Edited for publication by Brian Gough).
more...
"There is one safeguard known generally to the wise, which is an advantage and security to all...What is it? Distrust. "
- Demosthenes (c. 384-322 B.C.)

"Let me tell you the secret that has led me to my goal. My strength lies solely in my tenacity."
- Louis Pasteur

"Perfection must be reached by degrees; she requires the slow hand of time."
- Voltaire



Chirico img Mike Chirico, a father of triplets (all girls) lives outside of Philadelphia, PA, USA. He has worked with Linux since 1996, has a Masters in Computer Science and Mathematics from Villanova University, and has worked in computer-related jobs from Wall Street to the University of Pennsylvania. His hero is Paul Erdos, a brilliant number theorist who was known for his open collaboration with others.


Mike's notes page is souptonuts. For open source consulting needs, please send an email to mchirico@gmail.com. All consulting work must include a donation to SourceForge.net.