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



Powered by Django.

entrevista del canal 13 (Yucatan) a firefox myn-MX

http://www.youtube.com/watch?v=RwEd5IZ64m0

MogSilla ?????? WTF!!!

Bien Ahi Julian :) felicidades

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

Festival de instalacion de firefox

Despues del festival de instalación de Internet Explorer 8...

Se organizara el evento ........

"Instalamos firefox por que ya lo puedo descargar con el Internet Explorer 8."

ff

Juar juar juar

via: planetalinux

Openoffice 3.1 si esta en foresight

Veo en cierto post de planetalinux acerca de instalar OO.org en Fedora....

Foresight ya cuenta con OpenOffice.org 3.1 y esta en los repositorios oficiales de foresight...

Yeah we rock!

firefox maya locale

im happy beacuse a friend JulianCeballos work on translating firefox to maya ( my traditional and old mayan language) yes the language what the actors on apocalypto spoke.

its not complete but here a shot: ffmaya

the locale its called myn_MX.

How populate my app Metadata for show on packagekit

A lot of times people askme that.

So im add the Way for populate Metadata on foresight.packages.
https://wiki.foresightlinux.org/display/DEV/set+Metadata+for+package

And a how use the catalog files.
https://wiki.foresightlinux.org/display/DEV/Catalog+Files

imageshack.us client with python powers

Im searching about the a cli what can i upload images to imageshack.us and not found on google....

So i write my own client.

#!/usr/bin/env python
import urllib2
from poster.encode import multipart_encode
from poster.streaminghttp import register_openers

API_URL = 'http://www.imageshack.us/index.php'

def yesno(x):
    if x:
        return 'yes'
    else:
        return 'no'

def upload_file(filename, optsize=None,
                user_cookie=None,
                remove_bar=True,
                tags=None,
                public=True,
                ):
    register_openers()
    data = {'fileupload' :open(filename),
            'xml':yesno(True)
            }
    datagen, headers = multipart_encode(data)

    # Some optional parameters
    if optsize:
        data['optsize'] = optsize
    if user_cookie:
        data['cookie'] = user_cookie
    if tags:
        data['tags'] = tags

    req = urllib2.Request(API_URL, datagen,headers)
    u = urllib2.urlopen(req)
    return u.read()

if __name__ == "__main__":
    import sys
    print upload_file(sys.argv[1])

the result here:

pantallazo

This small app. needs module poster what make the encode multipart life easy. (on foresight its on fl:2-devel xD )

Yeah it need more hack .. hackimages github repo

guess what programming language control this robots

robot

robot2

ANSWER: http://entitycrisis.blogspot.com/2009/01/giant-python-powered-robots.html

stream/share music video to xbox360 and ps3

My friend TForsman package the ushare app.

This its a software what can be recognized by xbox360 and PS3 consoles. for stream files. Soo this how it works its on wiki

https://wiki.foresightlinux.org/display/docs/Stream+music+and+videos+with+xbox+360+and+PS3

django-meteora

Im working for a 1.5 month on a project on Cancun Quintana Roo.

This projects its make a POS ( point of Sale) for cocobongo the system its on web with backend intereface.

Well im use meteora for ajaxian actions. Meteora its a javascript widgets of mootools. the main developer is Jose Carlos Nieto

With can do a lot of things:
* Autocomplete * Bubble * Calendar * Carousel * Datagrid * Dialog * Editor * Filebrowser * Form Control * Menu * Notebook * Picbox * Popup * Searchlist * Selection * Spinbutton * Tablesort * Toolbox * Treeview

The main developer of meteora, its a php ninja coder so, exist some php-libs for meteora. Im do my project using meteora and make my own meteora lib ( with help of Ivan Zenteno on python.

django-meteora

Its a simple lib for call HttResponse and get some jsonrpc

For now only works on views.

tesis de diseño en theme de gtk

Me sorprendio encontrar estos chavos de argentina que sacaron su tesis apartir del diseño de interfaz gtk para gnome.

Video:

Se ve que no simplemente hicieron un theme para gtk sino que hicieron toda la mercadotecnia del tema

http://vamox.blogspot.com

Y su tema en gnome-look vamox

Epson TM-T88IV works on linux

Im very happy because i can setup a POS (Point of Sale) Thermal Printer. the Epson TM-T88IV.

Imagen(495).jpg

I have googled to much because never setup a printer on linux. Ever i go to windows box and print from here.

The Epson TM-T88IV its a thermal printer its usual on Mexico. Well im need send print that.

Using the default epson driver fails... the only solution its make send raw format directly the printer.

so im found this http://www.familybusinesssoftware.com/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=10
Here exist a tool with modifications for send raw datas to printer for print. The test here.

Imagen(494).jpg

Now im have a nother problem im need its works on printer xfce desktop for print from firefox..... (in progress).

Im very busy working with python ( im very very busy a long time seat infront pc) but the really i feel happiness because its PYTHON!

Imagen(493).jpg
My partner on this project master of pyGtk but for some reason the project its using wxPython

And here some pics of design work:
Imagen(492).jpg

why foresight use python 2.4 ?

Foresight linux use a python 2.4 and all software of python its limited by this.
The answer its here:
http://wiki.rpath.com/wiki/rPath_Linux:rPath_Linux_2#Python_Version

On resume: we limited the of rpath linux stability ( what i think its very well ). But this touch to popular software.

Like gimp 2.6 needs python 2.5 christine needed, another cups solution needs update python well ... only have wait for solve the issue update to python 2.6 (FL-1452) on roadmap to foresight 2.5

im working to the release of foresight 2.5 KenVandine gime the responsability of PackageKit :S

my laptop

laptop

My laptop ......... the vampire on bottom its called soots ( like zod ) the mushroom my girlfriend gift, GNU Network Object Model Environment :) ( guess which one is it....) my prefered web server ( alo give me it.) bottom left, my LUG sticker ( its a tux with a traditional clothed of Yucatan) yeap, its a toshiba laptop. Running Foresight

transmission Bittorrent Software with webinterface

Something what im search for a long time its a torrent software what can do the same of others software like amule, It comes with a web interface what i can control the software from web or external.

Some like have a machine only dedicate to download torrents!!!

amule can do it. But it use the ed2k servers and torrents. I want something light low memory usage for put a old machine only for donwload torrents when i not at home, and control it by webinterface.

So playing with foresight default Software i find transmission comes with that options :) im feel sooooo happy!!!

On Preferences >> Web can find the port for listen web interface.

Reading the forum today the transmission im found what imageshack.us have a service for download torrents, http://tor.imageshack.us/ (only for register users). And use transmission http://forum.transmissionbt.com/viewtopic.php?t=4993.

Yeah!! transmission comes on Foresight 2.0.5 :)

foresight has OpenOffice 3.0

Well yesterday (12 Oct) The openoffice 3.0 its enable on Foresight It's on 2-devel, so this mean on devel label and for this needs report bugs.

oo3.0

For install it:

sudo conary update {group-ooo-gnome,openoffice.org-base}=@fl:2-devel

pidgin with silc support

Well the pidgin on foresight not have silc protocol enable because the the silc-toolkit its not packaged. So im my repo im package it.

sudo conary update silc-toolkit=zodyrepo.rpath.org@rpl:devel

So with it install the :lib and :devellib :devel troves so.

Do a :

sudo conary emerge pidgin

With it, its like gentoo emerge. Download the source .tar.gz from sf.net and compile it. So the silc-toolkit its installed, autoconf compile it with silc support.

well to the end you can connect to silc servers.

It works on Foresight linux


Certificated

Foresight Kids edition

This version i seen how little with little effort comes. The foresight Council and members have kids, and TForsman i believe for her son, he package a lot of Games, Here the foresight games list, Im like to much and play a lot UrbanTerror find me with my nickname.

So today foresight release a new version for kids with a alot of Games:

kidsfl
Foresight Kids Edition

Education

  • Tuxpaint, an award winning drawing program for children ages 3-12.
  • Tux Typing, and educational typing tutor for children.
  • GCompris, an educational software suit that includes many different activities for children ages 2 to 10.
  • Tux, of Math Command, an education arcade game starring Tux based on the class game “Missile Command”.

Entertainment and Games

  • SuperTux, a classic 2D jump ‘n run sidescroller with a similar style to the original SuperMario games.
  • SuperTuxKart, a 3D kart racing game featuring numerous tracks, characters and items.
  • Foobilliard, a 3D billiards / pool game.
  • GNU Chess, a chess game.
  • Super Maryo Chronicles, a 2D side scroller game featuring many different stages and levels..

WTF!!!!! we have a lot of Versions, xfce, gnome, mobile, and now kids ...... This probe the magic powers of Foresight+ Conary+ rBo

Well, passing to another things im having spend little time hacking conary-bancked of PackageKit that is the Add/Remove Software of Foresight. First checking the refresh-cache.py file that take a lot of time for populate a cache. A lot of time because im have a slow conection and on 2-qa label of foresight what have more 14,000 packages the whole process take 5min end.

So seen the code, put a lot of loggings codes. I found the cache when not exist do 2 times the population. And For each insert (more than 14,000) does a insert and commit. Searchings on sqlite3 documentation, i found first the inserts, One time commit ALL inserts and then modify a code for a one populate. Im reduce the time of cache to 2min. Yeah im rocks ...... So the next. I need a repository, i can do a git branch from packagekit but i dont like git, i think use a googlecode for subversion my code.

FL-1153 Nicotine-plus

I taken on the end of this week the package nicotine this a P2P software for the SoulSeek Network. It use the PySoulSeek/pyGtk2. So this have "python Powers".

FL-1153

This have his complete user guide.

Im remember a lot of time ago, when not exist p2p software i share files on IRC with DCC slots. Im using mirc and some scripts for do it. Using Dial-up Conection.......... uhhhhhhhh :)

This software remember that, because have a chat Integration so when you are downloading you can chat with other people how share files with you.

For install on foresightlinux:

$ sudo conary update nicotine-plus --install-label zodyrepo.rpath.org@rpl:devel

With it must download deps geoip, pyogg,pyvorbis, psyco ....


Certificated

Droopy and Woof

WOOF, WOOF!!! Its not a DOG!!!! Woff is a very usefull python script for share files over the network. You give your IP:port and the file download automatically.

$ woof yucatux_fmat3.png 
Now serving on http://192.168.254.4:8080/
192.168.254.4 - - [28/Aug/2008 13:33:23] "GET /yucatux_fmat3.png HTTP/1.1" 200 -

This support filedirs, you can share a dir, and woof make a tarball of it. My favorite python scripts

Droopy isnot a cartoon dog. Its a python script with you can upload file over network. (viceverse of woof)

$ droopy  -m "Hellowwwwwwww" -p yucatux_fmat3.png 
HTTP server running... Check it out at http://localhost:8000
localhost.localdomain - - [28/Aug/2008 13:15:10] "GET / HTTP/1.1" 200 -
localhost.localdomain - - [28/Aug/2008 13:15:10] "GET /yucatux_fmat3.png HTTP/1.1" 200 -
localhost.localdomain - - [28/Aug/2008 13:15:22] "POST / HTTP/1.1" - -
localhost.localdomain - - [28/Aug/2008 13:15:22] *Received: coas.bmp*

The users visit your http://yourIP:8000 and can getyou a file, this is very usefull where you talking with someone on MSN'protocol and send files are very SLOW! open your firewall pass the link and upload the file.

For install on foresight:

conary update {woof,droopy}=zodyrepo.rpath.org@rpl:devel

seen youtube videos with mplayer

I have a very very slow internet conection ( 512Kb/s) with infinitum that mean i have behind of 50Kb of download.

So for seen youtube or flash videos are very slow conection, the videos stop for refill the cache buffer y blah blah blah... SLOW!!!

I found youtube-dl with can download the .flv file from youtube and play it with mplayer only pass a params for do it

first:

youtube-dl http://www.youtube.com/watch?v=cG-gMJfmGKA -o out

and When is downloading can play it with mplayer

mplayer out

And video open ..... thats is great!!!

On Foresight:

sudo conary update youtube-dl=@fl:2-devel mplayer

Pownce and django

UFF this changes its very very hard .......learning by myself how the django signals works an how change adding some stuff....

The idea from integrate pownce and django comes from, i dontlike twitter, and pownce give some stuff can i contrib to others users.

Well i hard to explain my code but this is...

First i create a model what populate from pownce, add a signal on post_save with that signal save a content type what is show, some like timeline of models .... with the pub_date with it i can show on the index of the contents of my blog and pownce

from django.db import models
from django.contrib import databrowse
from zodyblog.tumble.models import Item
from django.db.models import signals
from django.contrib.contenttypes.models import ContentType
import  django.dispatch

class PownceNote(models.Model):
    pownce_id = models.PositiveIntegerField()
    body = models.TextField()
    permalink = models.URLField()
    date= models.DateTimeField()
    def get_type(self):
        pownce_type="Message"
        if self.powncelink_set.all().count() > 0:
            pownce_type= "Link"
        if self.pownceevent_set.all().count() > 0:
            pownce_type="Event"
        if self.powncefile_set.all().count() > 0:
            pownce_type= "File"
        return pownce_type

    def __unicode__(self):
        return "[%s] %s" %(self.get_type(),self.body)

class PownceLink(models.Model):
    url = models.URLField()
    pownce_note = models.ForeignKey(PownceNote,unique=True)
    def __unicode__(self):
        return self.url

class PownceFile(models.Model):
    name = models.CharField(max_length=200)
    type = models.CharField(max_length=100)
    pownce_note = models.ForeignKey(PownceNote,unique=True)
    def __unicode__(self):
        return self.name

class PownceEvent(models.Model):
    name  = models.CharField(max_length=200)
    ical  = models.URLField()
    location = models.CharField(max_length=200)
    date = models.DateTimeField()
    pownce_note = models.ForeignKey(PownceNote,unique=True)
    def __unicode__(self):
        return self.name

def create_item(sender,instance, **kwargs):
    ctype = ContentType.objects.get_for_model(instance)
    if ctype.name == "entrada":
        pub_date = instance.fecha
    else:
        pub_date = instance.date
    if "created" in kwargs:
        if kwargs["created"]:
            si,created = Item.objects.get_or_create(content_type=ctype, object_id=instance.id, pub_date=pub_date)
        else:
            si = Item.objects.get(content_type=ctype,object_id=instance.pk)
            si.pub_date=pub_date
            si.save()

signals.post_save.connect(create_item, sender=PownceNote)

Create a client for download my pownce notelist and updates, thats a simple script with urllib for get content and populate to model

import logging as log
log.basicConfig(level=log.DEBUG)
import urllib
import simplejson
import datetime
import sys

mypath="/home/zodman/lab/dev/zodyblog/"
sys.path.append(mypath)

from django.core.management import setup_environ
from django.utils.dateformat import DateFormat
import settings

setup_environ(settings)
from zodyblog.zodynetwork.models import PownceLink, PownceNote, PownceEvent, PownceFile

def link( entry, note ):
    link = PownceLink(url=entry["link"]["url"])
    link.pownce_note = note
    link.save()

def event( entry, note ):
    event = PownceEvent(
        name=entry["event"]["name"],
        ical=entry["event"]["ical"],
        location=entry["event"]["location"],
        date=entry["event"]["date"],
        pownce_note= note
        )
    event.save()

def file( entry, note ):
    file = PownceFile(name=entry["file"]["name"],type=entry["file"]["content_type"],pownce_note=note)
    file.save()
def message():
    pass

URL = "http://api.pownce.com/2.0/"
user ="zodman"

class TZ(datetime.tzinfo):
    def utcoffset(self,dt):
        return datetime.timedelta(hours=-5)
    def dst(self,dt):
        return self.utcoffset(dt)

# load the pownce posts
p = urllib.urlopen(URL+"note_lists/zodman.json")
json_response =  p.read()
notes = simplejson.loads(json_response)

for i in notes['notes']:
    if 'sender' in i:
        del i['sender']
    if 'app' in i:
        del i['app']

    functions = {
        "link":     lambda i,note: link(i,note),
        "message":  lambda i,note: message(),
        "event":    lambda i,note: event(i,note),
        "file":     lambda i,note: file(i,note)
    }
    dt = datetime.datetime.fromtimestamp(i['timestamp'],TZ())
    df = DateFormat(dt)
    defaults = {"body":i["body"], "permalink":i["permalink"]}
    note, created = PownceNote.objects.get_or_create(pownce_id=i['id'],date=df.format("Y-m-d H:i"),defaults=defaults)
    if created:
        functions[i["type"]](i,note)

Well and show it on the template...

{% extends "index.html" %}
{% load markup %}
{% load zodytag %}
{% block contenido %}
{% for j in latest %}
{% ifequal j.content_type.name "entrada"%}
    {%with j.content_object as e %}
    <div class="entrada-all">
        <span class="round-up-left"></span>
        <span class="round-up-right"></span>
        <div class="entrada">
            <div class="x-small float-right" style="width:100px;height:20px">{{e.fecha|date}} </div>
            <h2> {{e.titulo}} </h2>
                {{e.contenido|markdown:"codehilite" }}
            <div class="left x-small categorias">
                {%for i in e.categoria.all %}
                    <a href="{{i.permalink}}"> {{i.nombre}}</a>
                {% endfor %}
            </div>
            <div class="entrada-links">
                <a href="{{e.permalink}}">Direct Link </a> |
                <span class="a" onclick="addComment('{{e.pk}}')"> Comment ({% count_comment e.pk %})  </span>
            </div>
        </div>
    </div>
    {% endwith %}
{%endifequal%}
{% ifequal j.content_type.name "pownce note"%}
    {% with j.content_object as e %}
      <div class="pownce">
        <span class="type"> {{e.get_type}}</span>
          <span class="permalink"> <a href="{{e.permalink}}">permalink</a></span>
            <div class="content">
                {{e.body|truncatewords_html:20|urlize}}

            </div>
                <div class="content-type">
                {% ifequal e.get_type "Link" %}
                    {% for i in e.powncelink_set.all %}
                       <div class="link">
                        <img src="/static/images/link.gif"><a href="{{i.url}}">{{ i.url|urlizetrunc:32 }}</a>
                       </div>
                    {% endfor %}
                {% endifequal %}
                {% ifequal e.get_type "Event" %}
                    {% for i in e.pownceevent_set.all %}
                       <div class="event">
                            <img src="/static/images/event.gif">
                            <a href="{{i.ical}}">
                            {{i.name}}  /
                            {{i.location}} /
                            {{i.date|date:"Y F d"}}
                            </a>
                       </div>
                    {% endfor %}
                {% endifequal %}

                 {% ifequal e.get_type "File" %}
                    {% for i in e.powncefile_set.all %}
                       <div class="file">
                        <img src="/static/images/file.gif">
                        <a href="{{e.permalink}}">
                            {{i.name}}
                        </a>
                       </div>
                    {% endfor %}
                {% endifequal %}
            </div>
      </div>
    {% endwith %}

{%  endifequal  %}
<div style="height:20px;"></div>
{% endfor %}
{% endblock %}

I think this not the best way for show it but works for me

well if you have questions search me on irc.freenode.org or get my code on http://zodyblog.googlecode.com

the next to do, make a reusable app with this.

gwibber

gwibber is a gtk app. What it use the social microblogging sites.

gwibber

It have support for Pownce, Twitter, facebook, Jaiku, Identica.

This is the only pownce client on gnome what i know. This is a good client for twitter, you can set the color for differences what services was posted.

For install:

  sudo conary update gwibber=@fl:2-devel