Direct file access
Submitted by shoham on Wed, 28/01/2009 - 01:00In Linux files, and block devices are treated the same. They all share a common open/close, read/write interface. When you open a file/device you can set its properties. Most often it is used for read/write/truncate purposes, but one can also use it for more interesting stuff.
Linux
Submitted by shoham on Wed, 28/01/2009 - 00:41Here I put issues related Linux/Unix programming. I suppose most of the code snippers will be in C/++, but the common denominator is that they are all related to Linux. If some of the tips work for other platfomrs as well then I will be happy. Let me know.
Fine tuning TCP sockets
Submitted by shoham on Tue, 22/04/2008 - 17:32TCP communications is optimized the following way: sent data is accummulcated, until a sufficient size packet is generated - and only then the data is actually sent over the network. Sometimes, however, you want to send the data straight away, ignoring its size. You can change the socket's properties to make it work as you expect:
ACE
Submitted by shoham on Tue, 22/04/2008 - 17:18ACE is a C++ template library, very common in server/client and multi-threaded applications. It is full of functionality, and implements many design-patterns, but has a major drawback: it lacks decent documentation. Everyone who ever used templates knows that everything beyonds imple templates is not very easy to understand and use. Add to that the fact that ACE implements some very complicated (but effective) design patterns - and you have got yourself an unreadable library.
Finding out your Linux distro
Submitted by shoham on Tue, 22/04/2008 - 12:34Ever wanted to find out the version of Linux you are running? The obvious place to look for it is 'uname', but it tells you little (if at all) abour the distro. Here are some more productive ways to see the distro you are using:
cat /etc/issue
dmesg | head -1code
cat /proc/version
These are a few of my favorite links
Submitted by shoham on Sat, 12/04/2008 - 19:39GO-Shen
My wife's dental hygiene store. Besides being a wonderful concept, it is a site I built for her. I know it does not have a pofessional look - but it is quite nice, informative, and (people told us) fun to use.
C++
Submitted by shoham on Sat, 12/04/2008 - 15:06Most of my (paid) work is done in C++. Some people think it is an archaic language, but I find it rather alive and keeking. I agree it is not the pinackle of OO - Smalltalk is; and It is not the most easy-to-use and master; but it is very powerful and has it's mileage.
Here I want to discuss some of my C++ experience, with the language and with extensions. It is also a good place for me to write down all those FAQs that I find.
Start
Submitted by shoham on Sat, 12/04/2008 - 14:11This is my home page. The main reason I put it up was to write in it tidbits of programming information I gathered along the road. Besides keeping my "wisdom" online, I would be happy if the information on the site helps others. Feel free to comment - add info, correct me (when I'm wrong), and ask questions.
