feed   myspace   facebook   last.fm   send an email   twitter   tumblr   send a message via aim to graykicksass

Posts tagged ‘updates’

Python

Alright so it’s been a while since I posted anything and I wanted to put something out there, while I have been working a lot on many projects I couldn’t really speak of, I have a few quick things to update you on before I get on to the main content:

First thing, the staff of Opensock have acquired MMOCCForum, this is pretty exciting and we are going to help get that place in shape.
Second, Axcid.org has had a complete rewrite of it’s API, now including keyword search. http://tunebin.info/ does a great job showing this.

Alright now onto the main content of the post:

After hating python and it’s syntax for a few years, I got the push of actually LEARNING the language, including some of it’s many libraries and functions. Once you get used to it, the syntax isn’t too bad actually. It’s actually pretty easy, for example:

import system, string """ Python block style comments """ # Python one line bash-style comments # Rather then braces for syntax blocking, python uses whitespace #Functions in python must be declared before use, unlike in javascript. # The Syntax for this is def # e.g. def SayHello(text):         # This is the body of the function         print(text) # Say Hello would be considered a 'function alias', and would be used like this: SayHello("test") # Some built in python functions string = "123" # set a variable integer = int(string) # Convert string to integer string = str(integer) # Convert integer to string # And block statements use : to start the block, e.g. if (string = str(integer)):         SayHello(str(integer))         # Else if is elif         elif (string = int(string)):         SayHello("Oh..")                 # Not gonna reach this else:         SayHello("Else reached, so none of them was correct")

Just for an example of python, Axcid’s new JSON api can be used like this:

# axcid import sys, string, urllib import simplejson as json AXCID_URL="http://two.axcid.org/new/api/?method=search.keyword&format=json&allpages=1&q=" def GetResults(query):         query = query.replace(" ", "%20")         url = AXCID_URL+query         f = urllib.urlopen(url)         obj = json.load(f)         return(obj["track"])

And the result from that:

results = GetResults("sublime") if (results):         for track in results:                 print(track["title"]+" - " + track["artist"]

Writing a IRC bot in python the other day was simple as well. And a python-spidermonkey binding exists so it would be possible to bind the syntax of JS to python, Python-Spidermoney

Anyways, that’s all for my update. Hope it was useful to someone.

Updates on TapShirt, imgBox and Axcid!

Well, some people may think I am starting a lot of projects. But the good news is I have people to help and the more projects the better the chance a couple will turn up the cash flow! As for TapShirt, a layout design is in the works. The EGO Framework is being created to drive these sites and work will go full steam ahead on that when new laptop arrives. imgBox will be completely rewritten using the EGO Framework.

Axcid Updates deserve a second paragraph, as that’s a big project. After some refinement to the Mac version of the software & the Windows version we will be slowly proceeding into public release of our Lite version. Beginning marketing plans, and completion of the full version of the software, ‘Axcid – Social Music Sharing’.

morning updates.

Since I will be busy most of today, I can give out some updates:

my current schedule:
-hair dye

-fix ipod

-HostKiwi layout http://graymatter.hostkiwi.co.uk/hostkiwi%20copy.png needs to get finished.

-Theme blog.. Somebody help PLEASE D:.

-Work on clients I was making.

-she know’s who she is’s homework.. lol

I’m gonna be out pretty much all day today so my cell will be the only way to reach me.

For HostKiwi updates I have all the hosting plans drawn up http://graymatter.hostkiwi.co.uk/stem.txt .. They are in the text file. I was playing with the original truant tower client and put it up earlier: http://graymatter.hostkiwi.co.uk/trippin.png

And on the request of somebody, the disco server project is slowly starting again:

http://graymatter.hostkiwi.co.uk/site/disco/

as always, recommend everybody visit:

imcedev.com and retrohotel.cn , a couple cool new sites and

axcid.org & m.axcid.org :D .

Laters.