January 2012
9 posts
Jan 19th
92,412 notes
Jan 18th
22,201 notes
1 tag
Jan 16th
Kitchen Music! →
Jan 11th
app domeri feedback →
Jan 11th
“Querido @grooveshark quisiera que hicieran un playlist de todas las bandas del...”
Jan 10th
Jan 9th
111 notes
4 tags
Domeria App
Mi aplicación de fin de semana aprovechando que mi esposa no está y puedo programar sin interrupciones les dejo el demo de domeri app. http://www.screenr.com/kG3s http://www.screenr.com/FG3s La aplicacion es un registro de ubicaciones en google maps, mas datos de descripcion y contacto con fotos. segun el CEO de domeri.com es lo minimo requerido. El objetivo es que jale en ipad. ...
Jan 9th
Correcta programación en Python y django
Para python http://mundogeek.net/traducciones/guia-estilo-python.htm http://mundogeek.net/traducciones/modismos-python.htm http://mundogeek.net/traducciones/python-idiomatico/ Para Django http://agiliq.com/books/djangodesignpatterns/
Jan 5th
December 2011
2 posts
Dec 9th
Dec 7th
162 notes
3 tags
Sphinx para documentar proyectos y con acentos
Estoy maravillado de lo chingon que es sphinx para generar documentación. Estos son los comentarios de mis compañeros Luis: No mames te genera el pdf! JJ: Hize la documentación mas facil y rapido que pelear en un word. otro: Tiene otros temas!!! http://sphinx.pocoo.org/ Bien mientras estuvimos mis compañeros trabajando tuve varios problemas q google no me pudo resolver. Problema de...
Dec 1st
2 notes
November 2011
2 posts
5 tags
Cambiar el mimetype feed de django, para que en...
Me dice un cliente … Andrés el rss feed de noticias de chrome no se ve bonito como en firefox. Y yo pues wtf si es el navegador que lo interpetra asi. Es que mira como se ve aqui http://cofradia.org/feed/ lo quiero y yo WTF!!! Ok ok revisemos Segun la documentación del RSS El mimetype que devuelve django es “application/rss+xml” en chrome encuentra esto y muestra en...
Nov 11th
October 2011
6 posts
tryton jsonrpc client for create a database
from jsonrpclib import Server as ServerProxy import jsonrpclib import json import pprint server = ServerProxy("http://localhost:8000", verbose=0) try: server.common.db.list(None,None) a = json.loads( jsonrpclib.history.response) pprint.pprint(a["result"]) server.common.db.create(None,None,'new_database_name',"password tryton admin","es_ES","admin_password") except TypeError: ...
Oct 14th
Homenaje a Dennis Ritchie
/* for Dennis Ritchie */ #include<stdio.h> main() { printf("Goodbye World"); return 0; }
Oct 13th
Tryton admin doc →
Oct 12th
5 tags
Oct 6th
276 notes
5 tags
“Yo nunca he usado Antivirus en Windows, mi sentido común supera la heurística de...”
– Billy Vera (via fakeroot)
Oct 6th
51 notes
Ofuscación de python para generar fractal →
Oct 4th
September 2011
16 posts
4 tags
django + werkzeug con uwsgi
De echo no necesita modificar en nada el uwsgi. Simplemente tu modulo application tiene que pasar por debugger: import os from werkzeug.debug import DebuggedApplication os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() application = DebuggedApplication(application, evalex=True) Es importante poner en...
Sep 29th
17 notes
Sep 29th
145,038 notes
WebService con django
from soaplib.serializers.primitive import Boolean, String, AnyAsDict, Float, Integer from soaplib.serializers.clazz import Array from soaplib.service import DefinitionBase, rpc from soaplib.wsgi import Application from soaplib.serializers.clazz import ClassSerializer from django.http import HttpResponse from mosketeros.guias_app.guias.models import Brand, ModelCar from mosketeros.settings...
Sep 27th
Sep 27th
5 tags
Sep 22nd
32 notes
4 tags
Platicas de python en FSL ( - Si me aceptán) →
Busca Andrés Bernardo Vargas :)
Sep 22nd
1 note
4 tags
Vacante python
http://www.ofertashacker.com/jobs/148-desarrollador-python
Sep 21st
“No buscamos ninjas, buscamos rockstars que resuelvan!”
– WTF? A ver a ver … Creo que aqui hay una confusion rockstar = Estrella de rock Ninja = TNMA !a ver quien salva al mundo o lo atormenta primero! visto en http://www.ofertashacker.com/jobs/145-programador-javascript-xml-ajax
Sep 20th
3 tags
hgsubversion
En mi trabajo aun seguimos usando subversion como herramienta para control de codigo. Por que es muy facil de usar, para la gente de diseño. Haces commit y se suben los cambios, esto lo complementamos con hook para que haga ciertos cambios en el servidor y actualice código. Esto facilita el trabajo cuando haces aplicaciones facebook ya que no tienes que apuntar la aplicación a tu maquina local...
Sep 14th
4 notes
4 tags
3er security update del año de django. →
recuerden hacer pip install -U django :)
Sep 10th
1 note
3 tags
funciones que desconocia de django
from django.core.files.images import get_image_dimensions media_img = self.cleaned_data.get('img') img_width, img_height = get_image_dimensions(media_img)
Sep 9th
3 tags
Eventos con python
Taller de la olpc Y platica de python en telmexhub En el taller de olpc viene el director de sugarlabs. Esa debe estar buena yo desconozco la olpc y el window/manager desktop una vez lo instale. Veamos que tal esta
Sep 8th
2 notes
“Sin definición no existe buen proyecto - @mauropm”
– https://twitter.com/#!/mauropm/status/111455799653576704
Sep 7th
ser mas pythonico ( idiomatic python ) →
Excelente paper !!!!!! del 2007
Sep 5th
Limpiar cache(memcached) de django en una vista
from django.core.cache import cache from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.contrib import messages def clear_cache(request): """Clears the complete cache. """ # memcached try: cache._cache.flush_all() except AttributeError: pass try: cache._cache.clear() except AttributeError: ...
Sep 2nd
Aplicaciones de django que no conocias! →
Sep 2nd
August 2011
4 posts
Aug 30th
Lambda Tutorial or lambda explain →
When I first started learning Python, one of the most confusing concepts to get my head around was the lambda statement. I’m sure other new programmers get confused by it as well…
Aug 30th
4 tags
Mostrar file widget del admin en el form input de...
#forms.py from django import forms from django.contrib.admin.widgets import AdminFileWidget class AgregarGuiaForm(forms.Form): year = forms.CharField() file = forms.FileField(widget=AdminFileWidget) #views.py try: file = guide.get_file().file try: f = SimpleUploadedFile(file.name, file.read()) f.url = file.url file_data =...
Aug 16th
4 tags
taller de django →
src: telmexhub.com Quien sabe quien es ese argentino …
Aug 15th
July 2011
20 posts
Jul 27th
180 notes
2 tags
Jul 26th
6 notes
hilite.me
Yeah baby alfin un servicio para postear codigo y se vea bonito… tendra api ? class PageLanguageUrl(InclusionTag): """ Displays the url of the current page in the defined language. You can set a language_changer function with the set_language_changer function in the utils.py if there is no page. This is needed if you have slugs in more than one language. """ ...
Jul 26th
Jul 25th
3 tags
djangobb
Pues se me ocurrio hacer un forum de longboard para mexico, de echo no existe tal foro y solo para el gabacho. Emprendi la busqueda por el grid de forums y hay varias soluciones completas para django y la que mas me gusto fue djangobb. Facil y sencillo de instalar. Tuve problemas con dependencias pero no hubo tanto problema mas que ajustar versiones. ¿Qué me gusto?, pues el admin se lo deja...
Jul 25th
1 note
Jul 21st
Jul 20th
“Persona1 - ¿Cuanto tiempo tardas en hacer un ABC? Python ninja - a lo mucho...”
– Real y verídico ….
Jul 20th
Jul 15th
“todo exito debe ser planeado”
– el Director general despues de vernos planeando sitio por 2 dias sin parar
Jul 15th
1 tag
“En java las interfaces fueron necesarias para suplir la falta de herencia...”
– Excelente respuesta a ¿ Hay interfaces en python ? a esto añadiría: http://dirtsimple.org/2004/12/python-is-not-java.html src: http://listas.python.org.ar/pipermail/pyar/2011-July/012415.html
Jul 11th