Saturday, October 31, 2009

The 5 Biggest Mistakes Made by an LLC Business

I was just reading this article and found it interesting. It listed the following as the 5 biggest mistakes made by an LLC:

1. Before the LLC Business Entity is Formed, Don't Conduct Business.
2. Failing to Actually Issue Ownership Interests of the LLC Business Entity.
3. Failing to Create a Management Structure and Appoint Officers for the LLC Business Entity.
4. Failure to Get Investment Obligations in Writing.
5. Thinking that an LLC Business is a Foolproof Layer of Liability Protection.

Load Balancing Software

I was talking to one of our system admins the other day about load balancing. He suggested I look into HAProxy. Apparently, gifts.com uses this for their load balancing rather than a hardware layer. One of the features I'm looking for is the ability to handle sticky sessions. I didn't see anything about it on the home page, but it's suppose to support it. This is something I'd like to look into at a later time:

http://haproxy.1wt.eu/

List of commands

I ran across a nice page of linux commands. Some of them I already knew, but there were several that were new to me.

http://www.pixelbeat.org/cmdline.html

spotlight on the command line

I've recently learned about mdfind on OSX. mdfind is essentially a commandline interface to Spotlight. One of the benefits of using mdfind over locate is that the indexing is done in real time. As soon as the file is added to the file system, it is added to the index.

You can read up on the command at:
http://macdevcenter.com/mac/2006/01/04/mdfind.html

Friday, October 30, 2009

Sending screen commands

You can start a detached screen session using the following command:


screen -dm -S myTest


This will create a screen session named 'myTest'. You can verify it was created with 'screen -list'. You should see something similar to the following when you type that command:


$ screen -list
There is a screen on:
31306.myTest (Detached)
1 Socket in /tmp/uscreens/S-mmasters.


Then you can send commands to the newly created screen session:


screen -S myTest -p 0 -X stuff 'top^M'


You have to type <control-v><control-m> to get the ^M character correctly. This command will essentially type 'top' and 'enter' in the screen session named 'myTest' for the 0th window. When you reconnect to the screen session, you should see top running. You can type 'q' to quit top.

The important part of this command is the -X. This switch can take several different commands. You can see all the commands available at

http://www.gnu.org/software/screen/manual/screen.html#Command-Summary

I found this link to be very helpful.