eclipse android emulator

December 27th, 2007

bonq_android_emulator_screenshot.png

ha! check it out, a screen shot of bonq from an android emulator. the browser is based off the same webkit (need source) as the iphone’s safari browser. using a mouse i can emulate a finger and drag a proper webpage around to pan and what not.

there isn’t a whole lot in the emulator as far as phone configuration, i did go into the address book and added a new contact. it would be nice to have some way to automatically sync against your google contacts.

 

python is sexy

December 17th, 2007

flipp@borked:~/bin/python-twitter-0.5$ sudo python setup.py clean
running clean
flipp@borked:~/bin/python-twitter-0.5$ sudo python setup.py build
running build
running build_py
running egg_info
writing requirements to python_twitter.egg-info/requires.txt
writing python_twitter.egg-info/PKG-INFO
writing top-level names to python_twitter.egg-info/top_level.txt
writing dependency_links to python_twitter.egg-info/dependency_links.txt
reading manifest file ‘python_twitter.egg-info/SOURCES.txt’
writing manifest file ‘python_twitter.egg-info/SOURCES.txt’
flipp@borked:~/bin/python-twitter-0.5$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to python_twitter.egg-info/requires.txt
writing python_twitter.egg-info/PKG-INFO
writing top-level names to python_twitter.egg-info/top_level.txt
writing dependency_links to python_twitter.egg-info/dependency_links.txt
reading manifest file ‘python_twitter.egg-info/SOURCES.txt’
writing manifest file ‘python_twitter.egg-info/SOURCES.txt’
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build/bdist.linux-i686/egg
copying build/lib/twitter.py -> build/bdist.linux-i686/egg
byte-compiling build/bdist.linux-i686/egg/twitter.py to twitter.pyc
creating build/bdist.linux-i686/egg/EGG-INFO
copying python_twitter.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying python_twitter.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-IN
FO
copying python_twitter.egg-info/dependency_links.txt -> build/bdist.linux-i686/e
gg/EGG-INFO
copying python_twitter.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-I
NFO
copying python_twitter.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-
INFO
zip_safe flag not set; analyzing archive contents…
creating ‘dist/python_twitter-0.5-py2.5.egg’ and adding ‘build/bdist.linux-i686/
egg’ to it
removing ‘build/bdist.linux-i686/egg’ (and everything under it)
Processing python_twitter-0.5-py2.5.egg
Removing /usr/lib/python2.5/site-packages/python_twitter-0.5-py2.5.egg
Copying python_twitter-0.5-py2.5.egg to /usr/lib/python2.5/site-packages
python-twitter 0.5 is already the active version in easy-install.pthInstalled /usr/lib/python2.5/site-packages/python_twitter-0.5-py2.5.egg
Processing dependencies for python-twitter==0.5
Finished processing dependencies for python-twitter==0.5
flipp@borked:~/bin/python-twitter-0.5$

it’s even simpler than using cpan for perl. no setup program, not prompts, just some commands and bam stuff gets configured, built, and installed. i’ve played with coding with python before, mostly in dealing with red hat/anaconda installs but this is just too cool. checkout this comment for more info on setting up python.
[ setting up python-twitter for deskbar-twitter for deskbar]

 

coding really does suck!

May 19th, 2005

i finally went over to python challenge and i’m sorry i did. i got to problem #3, and it involves a large string and a pretty specific regexp match.

One small letter, surrounded by EXACTLY three big bodyguards on each of its sides.

so i think it’s something like “[A-Z][A-Z][A-Z][a-z][A-Z][A-Z][A-Z]“. up till this point i could solve each riddle w/ very little coding. just unix utilities like grep and tr. oh well. i’ll just get back to it later. gonna have to go dig up some old perl code, or actually start learning python.

ha! figured it out.
really, what am i supposed to do with an answer of ['qIQNlQSLi', 'eOEKiVEYj', 'aZADnMCZq', 'bZUTkLYNg', 'uCNDeHSBj', 'kOIXdKBFh', 'dXJVlGZVm', 'gZAGiLQZx', 'vCJAsACFl', 'qKWGtIDCj'] i had to hop on the forums to figure it out. i did however write a .py to figure it out. whee.

i’m starting to get a little better at writting python code too. too bad urllib takes so long when it’s doing a urllib.urlopen(). i’m waiting for the solution to 4 to be found. it’s gonna take a little while.

 
other posts [ ]