I was having this issue the other day trying to get a unique javaScript class attribute to stick in HAML. HAML versus writing HTML is nice and easy in my opinion and it seems like it is saving a ton of time messing around with closing tags. This was my experience — In HAML you can simply append different id and class definitions together like this – 1 2   %div.car_chase#dredlock but I needed a class to stick which looked like this: 1 2   class="{required:true, email:true, messages:{email:’Please enter a valid email address’}}" I was getting errors by simply concatenating the elements, but then I recalled additional attributes it might look something like this: 1 2   %input#dredlock{ :alt =>[…]

I really wanted a place to look for some very common Unix commands. This post is credited to: Frank McCown, Ph.D. Assistant Professor Computer Science Department Harding University Unix/Linux System related 1 2 3 4 5 6 uptime Show how long the system has been up uname -a Show the OS name and version hostname Shows the machine’s name ps -f -u username Lists all the processes I’m running echo $0 Shows what shell I’m using echo $path Shows my path (or any environment variable) Network related netstat List all TCP connections netstat -a List all active ports nslookup host Get IP addr for host ping host See if a host is accessible telnet domain_name 80 Use telnet to make[…]