Other articles

  1. Careful with those Backslashes!

    Brainteaser of the day

    Given a MySQL database, what value will be put in the database for each of the following Python statements?

    # normal string, 4 backslashes
    db.execute( "INSERT INTO `test` (`text`) VALUES ('x\\\\y');")
    # raw string, 2 backslashes
    db.execute(r"INSERT INTO `test` (`text`) VALUES ('x\\y …
    read more
  2. Run Wireshark as non-root user

    I frequently get frustrated when Wireshark won't run as a non-root user due to permissions on the dumpcap process. Here's the fix:

    sudo groupadd wireshark
    sudo usermod -a -G wireshark $USER
    sudo chgrp wireshark /usr/bin/dumpcap
    sudo chmod 754 /usr/bin/dumpcap
    sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr …
    read more
  3. Ubuntu Default Folders

    I recently switched my primary machine from Windows 7 to Ubuntu. I'd always used an Ubuntu VM for development. Now I just have a Windows 7 VM for Windows-only applications, and do the majority of my work in Ubuntu. I'm fairly comfortable on the command line, but extremely dislike capital …

    read more
  4. Building Git from scratch

    This is running on Ubuntu 12.04, using the most recent versions as of 2013-02-02.

    Install git:

    $ wget http://git-core.googlecode.com/files/git-
    $ tar xf git-
    $ cd git-
    $ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev
    $ make …
    read more

Page 1 / 3 »