Category Archive

The following is a list of all entries from the Programming category.

Disable Bell in VIM

" Disable both beep and visual flash
set visualbell t_vb=

via


Nothing Could Fail in C

Best 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

$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

find ~ -name ‘* *’ | while read FILE
do
echo "$FILE rocks."
done

via Handling Filenames with Spaces in Bash


SQLite3: Unable to Open Database File

Recently, 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 [...]