\\ELEVEN33\\

Here is my box of tricks!

Python + SOAPpy module

I have been tinkering around with Python lately and have had a little trouble here and there. I first had a problem with installing the psycopg2 adapter for Postgres integration. come to find out that installing packages from macports is not always the best thing. So a simple “sudo port uninstall psycopg2” and then compile from binary fixed the problem.

Now I am wresteling with the SOAPpy install. It keeps giving me the error when building ”

Traceback (most recent call last):
File “setup.py”, line 8, in <module>
from SOAPpy.version import __version__
File “/Users/xrs/Downloads/SOAPpy-0.12.0/SOAPpy/__init__.py”, line 5, in <module>
from Client      import *
File “/Users/xrs/Downloads/SOAPpy-0.12.0/SOAPpy/Client.py”, line 46
from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

“. So after some reading and banging my head on the keyboard i found this handy article.

http://www.python.org/dev/peps/pep-0236/

Upon reading I found that in Python 2.5 wants all nested_scopes to be called at the beginning of the file and that only certain statements can be ahead of the import statement. So “yeah”, this is something a experienced Python programmer would have figured out in a couple of minutes. Oh well, just like with any other language you have to do some walking around in circles before you realize the end to the loop is to read the manual.

Add A Comment | July 14th, 2008

Flex Builder + Ubuntu

So recently Adobe released its Flex Builder for Linux. After learning this the first thing that popped in my head is awesome I can figure out how to unsuccessfully install something after 10 tries again. So after fiddleing with Flex Builder for about 30 minutes I got it installed. Heres what I had to do.

First check your system for the necessities needed for  the Flex Builder Eclipse Plugin to work

Linux Header (linux-headers-2.6.24-19-generic)

sudo apt-get install linux-headers-2.6.24-16-generic

Eclipse Classic 3.3.2

wget http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.3.2-200802211800/eclipse-SDK-3.3.2-linux-gtk.tar.gz

tar xzvf eclipse-SDK-3.3.2-linux-gtk.tar.gz

this should give you a directory called eclipse. I moved mine to my home directory.

mv ./eclipse /home/<username>/

(this will come in handy during the installation process.)

Java JRE 1.5

I had to use 1.5 otherwise Flex Builder would not install

–minimum install

sudo apt-get install sun-java5-jre

– what I did

sudo apt-get install sun-java5-jre sun-java5-plugin sun-java5-bin sun-java5-fonts

after installing java you have to tell Ubuntu what version of Java you want to use

sudo update-alternatives –config java

There are 4 alternatives which provide `java’.

Selection    Alternative
———————————————–
1    /usr/bin/gij-4.2
+        2    /usr/lib/jvm/java-gcj/jre/bin/java
3    /usr/lib/jvm/java-6-sun/jre/bin/java
*         4    /usr/lib/jvm/java-1.5.0-sun/jre/bin/java

Press enter to keep the default[*], or type selection number:

select java-1.5.0, in my case #4

Next Download the flex builder.

wget http://download.macromedia.com/pub/labs/flex/flexbuilder_linux/flexbuilder_linux_install_a3_033108.bin

The INSTALL file will tell you to make the bin file executable (chmod +x) but I didn’t feel like it. So I just did the following

sh ./flexbuilder_linux_install_a3_033108.bin

and so the adobe installer begins.

The installer will ask you where you want to put “Adobe_Flex_Builder_Linux” directory

/home/<username>/Adobe_Flex_Builder_Linux

ehhhh why not.

Next the installer will ask you to select you current eclipse directory. (remember from earlier?)

/home/<username>/eclipse

after hitting next it should install the flex builder without any errors. If you do get errors I would sugget “sudo su -” then running the .bin file again. Pay attention to the paths of the Adobe_Flex_Builder_Linux directory creation.

Well I hope this helps those out there who love Ubuntu, but sometimes get exhausted with always having to configure 5 other things before they can use the program they want.

Add A Comment | June 24th, 2008

little knight

Blogged with the Flock Browser

Add A Comment | March 14th, 2008

Chicken Little

My little boy in his halloween costume….

Blogged with the Flock Browser

Add A Comment | March 5th, 2008

Super Songer Family

So this is a little glimpse of what really goes on in my head while everyone else is talking about something important.

Super Songer Family

Add A Comment | March 5th, 2008

Canadian Mouse

This Drawing was inspired by a character that Katie’s seven year old cousin imagined.
Canadian Mouse

Add A Comment | March 5th, 2008

Lion

Aslan
This is a picture I drew while I was reading the Cronicles of Narnia about a year ago.

Add A Comment | March 5th, 2008

Stick it to me.

Just wait there are more stick characters and wars to come…….Pistol Whip Jim

Add A Comment | October 9th, 2007

MAYA lives in XRS

So my 6 years of unfinished school is not totally wasted. Just recently I was purchased Maya 8.5 by my company. Then to my delight they also purchased some digital learning videos to go along with it. So I decided to start out with the very first introductory video and work my way up. I forgot how much I love to do creative things. With Maya I can take my love of drawing and give it a 3-d feel. Here is a sample of what I am currently working on in my tutorials.

PodRacer01

Add A Comment | June 26th, 2007

The MAXX

I drew this on card-stock with ink. Colored in in photoshop. 1999 The Maxx

Add A Comment | June 19th, 2007