AndresVargas
Hi!, my nickName is zodman, im a Computer science Engineering.
love the FLOSS and FreeSoftware. Python ninja and php coder.
On left my love Aisha and me.
Interest links
seen more
meteorasite
Claro que puedes usar meteora con django:
demo:
http://djangometeora.vampirito.com.mx
En espera de mas ..
http://github.com/zodman/djangometeora
http://github.com/zodman/meteorasite
zodyblog Update
I'm update my django app called zodyblog
the news ?
- Remove the pownce Interface its deprecated and closet hehehe
- Update feeds from categories
- Fix link breaks
Now i can write to differents planets with my categorie feeds. so in planetlinux write on spanish on foresight planet on english
The [lame comments][/flames] are welcomes
The next its write a GUI app and a Json-RPC lib what its very easy with django-json-rcp-server
match url /foo/2009-01-01/
on a django how match a date string like 2009-01-01 with this:
(r'^reportes/(?P<fecha>\d+-\d+-\d+)/$','pos.boutiques.views.report'),
time left on it: 30 min.
Danmit im need re-learn regex of python
Very very usefull django tips
http://ericholscher.com/blog/2008/oct/5/django-tips/
OMG i love that tips.
My Favorite Relatives Import
django site on one file (like web.py style)
time ago i have a small disscuss with maop he say web.py is better than django.
I have this for you maop.
A pure style of web.py
Django with twitter status
Im add a simple tag on django with my twitter last status. It's cached because twitter haves problems with alots of request...... so here the code
Create a templatetags on your model/ dir
# filename twitter.py from django.template import Library import urllib import simplejson register = Library() @register.simple_tag def twitter_status( username ): url = "http://twitter.com/statuses/user_timeline/%s.json?count=1" % username file = urllib.urlopen(url) json_responce = file.read() twit = simplejson.loads(json_responce) return "%s" % twit[0]["text"]
Add it to my index.html page on templates
{%load cache %} {% cache 18000 twitter %} {% load twitter %} <div class="twitter"> <img src="/static/images/twitter.gif"> @zodman: {% twitter_status "zodman" %} </div> {% endcache %}
Yeap my firts time of used cache on templates. That is very similar of the code of my friend blacknash, he Implement it on blog of h1pp1e
comments-enable!
Today im finished my comments app of my blog, it's called zodycomments and use meteora widgets kit for submit's forms.
Meteora haves good stuff like dialog widget, forms widget... all this thinks im used on my work.
On foresight im add a vnstat It's like a network transfer meter. With it we can know how many MB download over Inet. Im find this app, because i want a internet service called BAM it gave internet conection for all places over cell network. On the service exist plan limited what you buy Mb for use. So i need know how many Mb consume my work. for pick the correct plan. And vnstat give it.
zodman@cosmogirl:~
$ vnstat
Database updated: Sat Jul 12 12:25:01 2008
wlan0
received: 64.70 MB (87.7%)
transmitted: 9.22 MB (12.3%)
total: 73.92 MB
rx | tx | total
-----------------------+------------+-----------
today 64.70 MB | 9.22 MB | 73.92 MB
-----------------------+------------+-----------
estimated 123 MB | 17 MB | 140 MB
zodman@cosmogirl:~
$ vnstat -u -iwlan0
Unknown arg "-iwlan0". Use --help for help.
zodman@cosmogirl:~
$ vnstat -u -i wlan0
zodman@cosmogirl:~
$ vnstat -d
wlan0 / daily
day rx | tx | total
------------------------+-------------+----------------------------------------
12.07. 67.43 MB | 9.49 MB | 76.92 MB %%%%%%%%%%%%%%%%%%%%%%:::
------------------------+-------------+----------------------------------------
estimated 128 MB | 17 MB | 145 MB
This is enable for foresight:
sudo conary update vnstat=zodyrepo.rpath.org@rpl:devel
newform on django Incompatible django from know
Today im update the django-svn repo on this server and restart the httpd, DUD! IM BREAK DJANGO!!!!!!!!!!
Oh my Good, i have another site here and it break too. GRrr and whats the problem ?¿ the new version of django have a newforms-admin implement and renamed and change alot!!
check the changes here
i have read the documentation again a learn again django...
@zodman: prox chingadazo facebook app para dar chingadazos a tus compañeros!
