I used Behr’s No 63 to open up the pores and make the wood more absorbent. Then I used Behr’s Premium Deck and Fence finish No 500 (Natural). I applied two layers of finish on the deck and the stairs on 9/28/2009.
The first layer was applied with a semi-rough roller (3/4 nap) and worked with a 6″ brush. For the second layer, I just used roller which left a few splotches.
Deck Refinishing
Posted in Uncategorized on September 29, 2009 by aghorasusing rsync
Posted in Uncategorized on February 3, 2009 by aghorasTo sync all the files that match a pattern recursively:
rsync -rcv –include “*.java” –include “*/” –exclude “*” pdu@10.34.179.196:~/workspace/gds_source ~/tmp
Bash Prompt
Posted in Uncategorized on January 29, 2009 by aghorasMy Bash prompt:
export PS1=’\[\e[0;32m\][\u@\h] \[\e[1;37m\]\W\[\e[1;32m\]\$ \[\e[0;37m\] ‘
Screen Notes
Posted in Uncategorized on January 29, 2009 by aghorasScreen Notes:
To make the window infor displayed on top of an xterm window:
hardstatus lastline "%w"
To make the line show up at the bottom of the window:
hardstatus alwayslastline "%w"
you can put these in ~/.screenrc
Solaris screen saver
Posted in Solaris on December 24, 2008 by aghorasTo enable the screen saver on Solaris, use xscreensaver-demo. Do a man on xscreensaver for more info. To start xscreensaver automatically, put xscreensaver-command exit and xscreensaver & in Xsession. Do a find and edit all the Xsession files since there are more than one on Solaris.
Matrix by Vector multiplication in Matlab
Posted in Uncategorized on November 18, 2008 by aghorasLets say we have a vector (v) of size 1xn and a matrix (a) of size mxn. If we want to multiply every row in the matrix by the vector, we can do the following:
j=repmat(v,m,1);
Then do to get the answer
a.*j
Apache and SE Linux
Posted in Linux on November 4, 2008 by aghorasTo allow apache to access /www:
chcon -R -t httpd_sys_content_t /www
to check the results:
ls -alZ /www
you should get something that looks like:
-rw-r–r– root root system_u:object_r:httpd_sys_content_t:s0 index.html
-rw-r–r– root root system_u:object_r:httpd_sys_content_t:s0 index.php
Type “man httpd_selinux” for a full description of available contexts.
Capturing a streamed media via mplayer
Posted in Uncategorized on August 22, 2008 by aghorasmplayer -noframedrop -dumpstream "<url>" -dumpfile <file> or mplayer -playlist "<url>" -dumpstream -dumpfile <file>
Bidirectional netcat
Posted in Uncategorized on August 6, 2008 by aghorasI found this on the internet. I havn’t tried it myself:
Bidirectional netcat …
While netcat is excellent, one thing it doesn’t seem to do is to work as a generic proxy between two applications. The shell doesn’t help, providing only unidirectional pipelines … but with the use of FIFO pipes (sorry, not under Cygwin) you can construct something that will do the job.
From
http://www.ists.dartmouth.edu/library/classroom/nc-intro.v0.80.php :-
mknod backpipe p nc -l -p 80 0<backpipe | tee -a inflow | nc localhost 81 | tee -a outflow 1>backpipe
You only have to do the mknod once, in order to create a pipe entity on the filesystem. Have a look in the files inflow and outflow to see the stored results of your conversation.
Combining Postscript Files
Posted in Uncategorized on June 29, 2008 by aghorasTo merge postscript files:
gs -sDEVICE=pswrite -sOutputFile=output.ps -dNOPAUSE -dBATCH file1.ps file2.ps file3.ps