2of1
half a nibble of another

Home
Projects
About
Nov

23

Making sense of strcmp()

Filed Under (C, Coding, Open source) by 2of1 on 23-11-2010

Peter van der Linden brought up a point regarding strcmp() his book Expert C Programming: Deep C Secrets that I found interesting.
Read the rest of this entry »

(2) Comments
Read More
Nov

22

bash (scripting): check for super user

Filed Under (Bash, Linux, Tips & tricks) by 2of1 on 22-11-2010

error()
{
	echo "$*. Exiting"
	exit
}
 
[ "$UID" != "0" ] && error "You must be root to run this script"
No Comments
Read More
Nov

16

Gnu screen fun

Filed Under (Linux, Open source, Tips & tricks) by 2of1 on 16-11-2010

Recently I’ve taken an interest in console-based utilities with the aim of seeing whether I can intact perhaps be even more productive than just using X-based solutions.
The best thing about this is that it would probably easily run under 100Mhz and can be accessed as-is over a terminal session.
Read the rest of this entry »

(6) Comments
Read More
Nov

14

Pulling “On this day in history” data from Wikipedia

Filed Under (Open source, Python) by 2of1 on 14-11-2010

I’ve been looking around for an easy way to pull event information for a specific day from wikipedia in order to populate an internal database for one of my apps.

Turns out it’s dead simple.
Read the rest of this entry »

(2) Comments
Read More
  • Recent Posts

    • ARM long branch
    • Mini-Namco #3: (Almost) Finished
    • Mini-Namco #2: Unit construction
    • Mini-Namco #1: Design
    • Simple C hashtable code
  • Archives

    • January 2012
    • September 2011
    • August 2011
    • July 2011
    • May 2011
    • March 2011
    • February 2011
    • January 2011
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
  • GitHub

    • code
    • d2d1headers
    • locateme
    • findjerusalem
    • seg7
    • userspace-krb
    • libgmail
    • preloader
    • linhook
  • qrcode

  • Site Search

  • Categories

    • Apps (7)
      • Preloader (1)
      • Symbian S60 (1)
      • VLC (4)
      • Wordpress (1)
    • Coding (28)
      • Assembly (1)
        • ARM (1)
      • C (12)
      • Compilers (5)
      • Direct2D API (4)
      • Linux kernel (2)
      • Networking (4)
      • Python (1)
      • Sqlite (1)
      • Version control (5)
        • Git (5)
    • Hacking (4)
      • Code injection (1)
      • Reverse engineering (3)
    • Hardware (4)
      • Arduino (1)
      • PCBs (3)
    • Linux (21)
      • Bash (1)
      • Tips & tricks (13)
      • Virtualization (1)
      • VNC (2)
      • Xmonad (1)
    • Open source (30)
    • Other stuffs (3)
    • Social (3)
      • DC9723 (2)
  • OctoFinderProgramming Blogs - Blog Catalog Blog Directory

    Locations of visitors to this page

© 2of1.