27 April 2012

PyEmu need pydasm

Is python library.

Perlu:
  • pydasm
    • install: http://ademata.blogspot.com/2010/07/installing-pydasm-and-pefile-module-on.html
      • svn checkout http://libdasm.googlecode.com/svn/trunk/ svn/libdasm-read-only
      • cd svn/libdasm-read-only/
      • make
      • sudo make install
      • cd pydasm
      • #sudo apt-get install python2.6-dev    (2.7 pun boleh gak)
      • python setup.py build_ext
      • sudo python setup.py install
    • on ubuntu 11.04, ada issue :  
      • Error : ImportError: No module named pydasm
      • sebab read permission of file :
        • /usr/local/lib/python2.7/dist-packages/pydasm.so
      • chmod +r /usr/local/lib/python2.7/dist-packages/pydasm.so

slow lepas upgrade

mungkin graffik drivers related issue
run jockey-gtk

05 April 2012

04 April 2012

clone VritualBox


  1. Buka 'Virtual Media Manager'
  2. Klik file vdi(hardisk image) dan klik 'Release'
    • Kalau tak buat ni nanti dpt Error: already exists in the media registry
  3. taip:
    • vboxmanage clonehd asal.vdi baruClone.vdi
  4. Add to virtual box manager

python split string by length

def split_len(seq, length):
    return [seq[i:i+length] for i in range(0, len(seq), length)]

ref(http://code.activestate.com/recipes/496784-split-string-into-n-size-pieces/