Category Archive
The following is a list of all entries from the Programming category.
Disable Bell in VIM
Filed in Linux, Programming, March 9, 2010, 10:22 am" Disable both beep and visual flash
set visualbell t_vb=
via
Nothing Could Fail in C
Filed in Programming, January 27, 2010, 3:50 amBest comment of the C programming language ever!
via:reddit
Here is the whole story:
Going back to C
by buddhabrot
When I was 12 someone gave me a Metrowerks IDE to learn programming on my mac. I learned a lot with it, and got programming in C. I never really wrote a large program in it, only things like ROM [...]
“–” (Double-hyphen) in Bash
Filed in Notes, Programming, November 24, 2009, 2:09 pm$cat out
if [ $# -eq 0 ]
then
echo "Usage: out [-v] filenames…" 1>&2
exit 1
fi
if [ "$1" = "-v" ]
then
shift
[...]
Handle Filenames with Spaces Properly in Bash Loops
Filed in Programming, , 5:44 amfind ~ -name ‘* *’ | while read FILE
do
echo "$FILE rocks."
done
via Handling Filenames with Spaces in Bash
SQLite3: Unable to Open Database File
Filed in Programming, December 18, 2008, 9:52 pmRecently, I’m working on my Skypiea project which is powered by SQLite3 and Python (as CGI script). Yesterday I encountered a program: When the web server ran a CGI script which would update the database, I got an error message said “sqlite3.OperationalError: unable to open database file“.
I searched the web and Google told me I [...]