Neat little tutorial on burning DVDs out of avi

22 06 2006

Here is the link.




Load .Xdefaults without restarting X

22 06 2006

There are ample times we want some of our X preferences to change, but not want to restart the X (who wants to lose all that stuff on the screen anyways!). There is a quick way around this. All you need to do is:

$xrdb -load .Xdefaults 

 and all woud be hunky dory. :-)




gdb cheat-sheet

25 05 2006
  • Starting and stopping gdb

        gdb
        gdb <file>
        gdb -h             (lists command line options)
        quit
        Ctrl-d
        Note: Ctrl-C does not exit from gdb, but halts the current gdb command

  • General commands

        run                (start your program)
        kill               (stop the program)

  • Breakpoints

        break FUNCTION     (set a breakpoint at the entry to the function)
        break *ADDRESS     (set a breakpoint at the specified address)
        disable <NUM>      (disable the breakpoint with that number)
        enable <NUM>       (enable the breakpoint with that number)
        clear FUNCTION     (clear any breakpoints at the entry to the function)
        delete <NUM>       (deletes the breakpoint with that number)
        delete             (deletes all breakpoints)

  • Working at breakpoints

        stepi              (execute one instruction)
        stepi <NUM>        (execute NUM instructions)
        nexti              (execute one instruction, stepping over functions)
        nexti <NUM>        (execute NUM instructions, stepping over functions)
        until LOCATION     (continue running until LOCATION is reached)
        continue           (resume execution)
        continue <NUM>     (continue, ignoring this breakpoint NUM times)
        finish             (run until the current function returns)
        backtrace          (print the current address and stack backtrace)
        where              (print the current address and stack backtrace)

  • Examining code and date

      disas                 (display the function around the current line)
      disas ADDR            (display the function around the address)
      disas ADDR1 ADDR2 (display the function between the addresses)
      print/a $pc           (print  the program counter)
      print $sp             (print  the stack pointer)
      print $eax            (print  the contents of %eax)
      print/x $eax          (print  the contents of %eax as hex)
      print/a $eax          (print  the contents of %eax as an address)
      print/d $eax          (print  the contents of %eax as decimal)
      print/t $eax          (print  the contents of %eax as binary)
      print/c $eax          (print  the contents of %eax as a character)
      print 0×100           (print decimal repr. of hex value)
      print/x 555           (print hex repr. of decimal value)
      x ADDR                (print the contents of ADDR in memory)
      x/NFU ADDR            (print the contents at ADDR in memory:
                                 N = number of units to display
                                 F = display format
                                 U = b (bytes), h (2 bytes), w (4 bytes))
      x/10i ADDR            (print the next 10 instructions)

  • Autodisplaying information

      display $eax          (print contents of %eax every time the
                                 program stops)
      display               (print the auto-displayed items)
      delete display <NUM>         (stop displaying item NUM)




Increase download speed on uTorrent

19 04 2006

Here is the article which actually has some tips on how to increase download speeds on uTorrent.