Marco Islas Blog Video http://islascruz.org/html/ markuz@islascruz.org (Marco Antonio Islas Cruz) 2005-2008, Marco Antonio Islas Cruz Fri, 03 Jul 2009 15:42:16 -0500 JAWS 0.8.6 <![CDATA[ Clever windows ]]>
Looks promising, but, to be honest, I don't like the way the appear, and the focus switch between windows is ugly. Anyway, it looks nice. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Clever-windows markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Clever-windows Fri, 03 Jul 2009 15:42:16 -0500
<![CDATA[ Head Tracking for Desktop VR Displays using the WiiRemote ]]> Project natal rocks, but this (at least for me) rocks even more..


If they get together that would be awesome! ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Head-Tracking-for-Desktop-VR-Displays-using-the-WiiRemote markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Head-Tracking-for-Desktop-VR-Displays-using-the-WiiRemote Wed, 03 Jun 2009 23:01:50 -0500
<![CDATA[ Sockets (and some other files) and PyGTK without threads. ]]> PyGTK and Threads motivated by the work I have been doing on ICT Consulting where I have a graphical application that need to have a web service where some other applications could connect and execute some of its public function.

My first aproach was Threads just because with them I could use an infinite loop reading the socket while in the main thread the gtk loop runs. This is nice if your application is going to ask/request something trough the socket and receive the answer at some point, then, when the answer is here, you could emit a signal and then move your gui to show the answer.

But, what if you need to receive the request and then, move your gui asking to the user for an answer or show something in the screen, or whatever, you could make use of what I just did in the PyGTK and Threads post, where you use gobject.idle_add to launche the function that will modify your gui, which is nice you don't care about the return value of the task.

Today, looking in trough the gobject reference I saw the gobject.io_add_watch function. This function will let you, as its name describes, watch for the I/O activity in a file descriptor. As sockets are treated like sockets, then you have the chance to use it here.

What about that?, well, if you have the chance to check the I/O of the socket file then you will know when data arrives and call the proper handler, and do it in the very same thread that the main loop. Then, you can move the GUI and return something if you have to.

In webservices this is useful because you can catch any error and inform the client that there is something wrong with the function it calls. The implementation is quite simple, let's do it with the code that we already use in the Threads post.

This is the server:

import SOAPpy
import gtk
import gobject
import time
 
def hello(name):
        dialog = gtk.Dialog("Hello dialog",
                        None,
                        gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
                        (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
                                gtk.STOCK_OK, gtk.RESPONSE_ACCEPT,)
                        )
        label = gtk.Label('Hello %s'%name)
        dialog.vbox.pack_start(label)
        label.show()
        response = dialog.run()
        dialog.destroy()
        return response

def change_time(label):
        label.set_text(repr(time.time()))
        return True

def handle_request(source, condition, webservice):
        try:
                webservice.handle_request()
        except:
                pass
        return True
       
soapserver = SOAPpy.SOAPServer(('',8080))
soapserver.registerFunction(hello)
gobject.io_add_watch(soapserver.socket, gobject.IO_IN,
                     handle_request, soapserver)
win = gtk.Window()
win.connect('destroy', gtk.main_quit)
win.set_size_request(300,300)
label = gtk.Label('Main window')
gobject.timeout_add(100, change_time, label)
win.add(label)
win.show_all()
gtk.main()
 
And the client:

#!/usr/bin/env/python
import SOAPpy
import sys
server = SOAPpy.SOAPProxy("http://localhost:8080/")
prueba = sys.argv[1]
args = tuple(sys.argv[2:])
print args
func = getattr(server, prueba, False)
print func(*args)
 
Using it like this:

python soaptest.py hello markuz
gives as result the integer value for the response asociated to the button you just clicked.

Gtk webservices with no threads from Marco Antonio on Vimeo.


I hope this information is useful for you. For me, it saves my day! ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Sockets-%28and-some-other-files%29-and-PyGTK-without-threads. markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Sockets-%28and-some-other-files%29-and-PyGTK-without-threads. Wed, 27 May 2009 00:58:06 -0500
<![CDATA[ Christine ]]>
This is one of the few things I change on christine, the side bar, now, it will display what you want to view, the sources list or the queue list because there is not enough space for both list.

Youtube seems to have problems with my video, anyway, maybe you want to download it in ogg format: Download, or watch it on Vimeo ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Christine- markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Christine- Tue, 19 May 2009 00:18:55 -0500
<![CDATA[ Sofia Valentina on video ]]>
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Sofia-Valentina-on-video- markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Sofia-Valentina-on-video- Sat, 16 May 2009 13:58:10 -0500
<![CDATA[ Young Frankenstein - Dr. Fronkonsteen meets EYE-gor ]]> ]]> http://islascruz.org/html/index.php?Blog/SingleView/id/Young-Frankenstein---Dr.-Fronkonsteen-meets-EYE-gor markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Young-Frankenstein---Dr.-Fronkonsteen-meets-EYE-gor Thu, 05 Mar 2009 00:14:23 -0600 <![CDATA[ Christine: subtitles. ]]> Its alive!
I was working tonight in subtitles, and fixing a couple of issues in christine :-) ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Christine%3A-subtitles. markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Christine%3A-subtitles. Wed, 11 Feb 2009 00:10:40 -0600
<![CDATA[ Video: Google Chrome ]]> Google Chrome
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Video%3A-Google-Chrome markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Video%3A-Google-Chrome Sun, 01 Feb 2009 20:34:47 -0600
<![CDATA[ Album cover. ]]>

Christine and album covers from Marco Antonio on Vimeo.
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Album-cover. markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Album-cover. Sat, 24 Jan 2009 11:12:29 -0600
<![CDATA[ Christine, DBus and Cairo ]]> I have been working tonight trying to create a small notification window for christine, besides we have the PyNotify plugin, I feel this need to try something more. Then I use this great how to create glass like windows and create this:


Christine, dbus and Cairo from Marco Antonio on Vimeo.

In the video you'll see the notification window displaying the button I'm pressing in my keyboard to control christine without having christine on focus. The code is already in svn if you want to try. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Christine%2C-DBus-and-Cairo markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Christine%2C-DBus-and-Cairo Thu, 22 Jan 2009 00:35:26 -0600
<![CDATA[ More about Christine and dbus ]]>

Christine and Dbus Part. II from Marco Antonio on Vimeo.
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/More-about-Christine-and-dbus markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/More-about-Christine-and-dbus Mon, 19 Jan 2009 00:01:00 -0600
<![CDATA[ Christine and DBus ]]>
I've started coding the DBus interface for christine, is quite simple to use dbus in your scripts, I have just created a few methods just to test the dbus module and it worked just fine. Going to create the other methods, wich should be quite simple, since I have been working in some sort of 'all in one' module.

The video looks pretty nice on vimeo, I have seen videos with this service and I like a lot the quality, youtube is nice but not the best to show your screencasts, flickr video just allow me 90 seconds of video. I will upload some more videos on my vimeo account :-). Btw.. if you use vimeo and christine, upload your screencast and join the group ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Christine-and-DBus markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Christine-and-DBus Sat, 17 Jan 2009 03:11:55 -0600
<![CDATA[ Debugging with pydev ]]>
My first attempt to create video tutorials :-) ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Debugging-with-pydev markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Debugging-with-pydev Fri, 05 Dec 2008 17:52:43 -0600
<![CDATA[ El nibblesmx es la neta ]]>
Saludos pa nibblesmx ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/El-nibblesmx-es-la-neta markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/El-nibblesmx-es-la-neta Thu, 27 Nov 2008 12:01:26 -0600
<![CDATA[ Christine with visualizations ]]>

Christine with visualizations
Originally uploaded by markuz
This is christine using gstreamer's goom plugin :-)

]]> http://islascruz.org/html/index.php?Blog/SingleView/id/Christine-with-visualizations markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Christine-with-visualizations Thu, 13 Nov 2008 01:23:14 -0600 <![CDATA[ Giving love to christine ]]>
Giving love to christine, originally uploaded by markuz.

This is my desktop testing some changes I have done to christine in this night. Most of them code cleaning and some harmless optimizations.

Update: I have made a screencast, you can download it

here
Update: Maybe you want to see the full resolution video ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Givinglovetochristine markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Givinglovetochristine Fri, 12 Sep 2008 00:52:54 -0500
<![CDATA[ Christine folder import ]]> .flickr-photo { border: solid 2px #000000; }
.flickr-yourcomment { }
.flickr-frame { text-align: left; padding: 3px; }
.flickr-caption { font-size: 0.8em; margin-top: 0px; }

christine, originally uploaded by markuz.

This is christine (trunk) importing a whole folder, about 1321 songs in just 1:07 mins.

]]> http://islascruz.org/html/index.php?Blog/SingleView/id/christine-1 markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/christine-1 Tue, 09 Sep 2008 16:27:34 -0500 <![CDATA[ Christine kicking the Compiz nuts. ]]> .flickr-photo { border: solid 2px #000000; }
.flickr-yourcomment { }
.flickr-frame { text-align: left; padding: 3px; }
.flickr-caption { font-size: 0.8em; margin-top: 0px; }

Christine kicking the Compiz nuts., originally uploaded by markuz.

Importing several directories at the time...

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/ChristinekickingtheCompiznuts markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/ChristinekickingtheCompiznuts Fri, 08 Aug 2008 14:12:06 -0500
<![CDATA[ Kill -9 ]]>
Disfrutenlo.
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Kill--9- markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Kill--9- Wed, 16 Jul 2008 14:13:01 -0500
<![CDATA[ Nearshoring... The Movie! ]]>
]]> http://islascruz.org/html/index.php?Blog/SingleView/id/Nearshoring-The-Movie markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Nearshoring-The-Movie Fri, 18 Apr 2008 13:05:47 -0500 <![CDATA[ Dame 10 razones ]]>

Acabo de regresar de comer, una muy buena comida, unos nachos con extra queso y un refresco (de ese del mas popular) GRANDE que por cierto ni me acabe. Y aunque no suene esto como una comida muy nutritiva, el entretenimiento que tuve para acompa??????ħarla si que lo fue.

Desde hace unas semanas, para ser mas precisos, desde que vi la de La mujer de mis pesadillas no veia una buena pelicula, Pues Dame 10 razones o 10 items or less (nombre greengo) es una muy buena pelicula que recomiendo ampliamente, es muy tranquilizante, me ha dejado un muy buen sabor de boca, es de esas peliculas en las que no necesitas tener explosiones, ni super efectos especiales, super modelos (aunque Paz Vega no esta nada mal) para llamar la atencion del publico.

Y aunque es puro hablar no tiene puntos muertos lo que dice que es una muy buena historia muy bien dirigida , siempre estas viendo la pantalla.

Se las recomiendo, de mientras, vean el trailer:


Ingles:


Espa??????ħol (Espa??????ħa)

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Dame-10-razones markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Dame-10-razones Sun, 13 Jan 2008 17:29:14 -0600
<![CDATA[ Y creias que Microsoft Surface era la riata ]]>
The Multi-Pointer X Server is a modification of the X server to support multiple mice and keyboards in X. It provides users with one cursor per device and one keyboard focus per keyboard. Each cursor can operate independently. MPX is the first multicursor windowing system and allows two-handed interaction with legacy applications, but also the creation of innovative applications and user interfaces.
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Y-creias-que-Microsoft-Surface-era-la-riata markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Y-creias-que-Microsoft-Surface-era-la-riata Tue, 17 Jul 2007 15:29:03 -0500
<![CDATA[ Personalizar las aplicaciones con Metisse ]]>
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Personalizar-las-aplicaciones-con-Metisse markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Personalizar-las-aplicaciones-con-Metisse Thu, 24 May 2007 08:13:13 -0500
<![CDATA[ Video de Christine en atsion ]]>

Estoy subiendo otro, donde se ve bien a christine en accion :-) pero esta conexion de infinitum no ayuda en mucho..

Por cierto... para quien preguntaba cuantas lineas componen a Christine: son 3439 segun "wc" sin contar los descriptores de interface creados con glade :-), ni los Makefile.am regados en los directorios.

Update: Un descripcion un poco mejor (y en atsion) de christine, hasta hoy termine de subirlo... les digo, Infinitum no ayuda de mucho..

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Video_de_Christine_en_atsion markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Video_de_Christine_en_atsion Sun, 18 Feb 2007 18:49:03 -0600
<![CDATA[ Web 2.0 ... The Machine is Us/ing Us ]]>
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Web_20__The_Machine_is_Using_Us markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Web_20__The_Machine_is_Using_Us Wed, 07 Feb 2007 19:48:14 -0600
<![CDATA[ Gene "50 Cents" Simmons ]]> Todo aquiel que me conoce bien sabe que yo he sido fan de KISS desde que estaba en la secundaria, y que aunque su musica mas buena es en su mayoria setentera y mucho mas tranquila que la de otras bandas que tambien me laten (Pantera, System of a Down, Metallica y otras) me ponia y me pone de vez en cuando bien locotr???????n con canciones como God Of Thunder (me encanta en el sinf???????nico), 100,000 years, Let me go rock and roll (ver video abajo), y otras.

Obviamente, eso hace KISS, Gene Simmons, desde hace mucho tiempo le vi en la cara un gusto por el dinero que nadie mas puede tener, pero, pues esta bien, digo, hacen chidos sus conciertos y pues.. mis respetos, si que hace dinero el don ese.

Pero que no mame, ya se le fue la mierda a la cabeza, desde que vi La escuela de Rock de Gene Simmons que no se por que me recordo a una pelicula llamada "The school of rock" o algo asi con Jack Black. En fin, pas??????? el tiempo y sobreviv??????­ a eso, hoy revisando mi correo de Yahoo me veo un post con un enlace al siguiente video:


Que en realidad, es descepcionante, lo unico que se me viene a la mente es: "Lo que hace la gente por dinero..."

Digame usted, con lo de la escuela del rock y este video, que queda el Gene Simmons de KISS ?.


Este va de regalo, nomas porque me gusta un chingo.

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Gene_50_Cents_Simmons markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Gene_50_Cents_Simmons Fri, 02 Feb 2007 20:06:00 -0600
<![CDATA[ Mac, PC, Linux & BSD ]]> post, que culeros, Mac y PC odian a linux y mas a BSD, aunque BSD sea en sin la base de MacOS X ]]> http://islascruz.org/html/index.php?Blog/SingleView/id/Mac_PC_Linux__BSD markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Mac_PC_Linux__BSD Tue, 02 Jan 2007 15:19:35 -0600 <![CDATA[ Desde que te perdi... ]]>
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Desde_que_te_perdi markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Desde_que_te_perdi Fri, 29 Dec 2006 15:06:09 -0600
<![CDATA[ Mis comics favoritos ]]> Te gustan los simpson?, pues esto te va a encantar, cada capitulo de los Simpson tiene entradas diferentes, y al menos yo no he visto que se repita en alguno, por lo que por lo general identifico el capitulo durante la entrada, aunque como soy fan de los Simpsons pues.. me importa un cacahuate si ya pasaron el capitulo o no, simplemente los veo. Lastima que los vea tan tarde (En el FOX a las 12:30 de la noche), eso explica mis ojeras y mis pocas ganas de trabajar :-P.

Hay, aun recuerdo cuando tenia como 9 a??????ħos y mi mama se enojaba si pona el Azteca 7 a las 8 de la noche, maldecia esas caricaturas, ahora le parecen hasta medio totas, y se desvela conmigo viendo South Park (Intro), Padre de Familia (Intro, Escena del concurso de vomitos) y American dad (de los creadores de Family Guy). Sip, eso pas???????, lo mismo con la muisica, hoy hasta escucha Rammstein.
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Mis_comics_favoritos markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Mis_comics_favoritos Wed, 20 Dec 2006 21:59:56 -0600
<![CDATA[ Windows Vista did not steal ideas from Mac OS X! ]]>
So. What do you think? ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/WVMOSX markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/WVMOSX Sun, 17 Dec 2006 10:34:51 -0600
<![CDATA[ Do the evolution ]]>
Woo..
I'm ahead, I'm a man
I'm the first mammal to wear pants, yeah
I'm at peace with my lust
I can kill 'cause in God I trust, yeah
It's evolution, baby

I'm at peace, I'm the man
Buying stocks on the day of the crash
On the loose, I'm a truck
All the rolling hills, I'll flatten 'em out, yeah
It's herd behavior, uh huh
It's evolution, baby

Admire me, admire my home
Admire my son, he's my clone
Yeah, yeah, yeah, yeah
This land is mine, this land is free
I'll do what I want but irresponsibly
It's evolution, baby

I'm a thief, I'm a liar
There's my church, I sing in the choir:
(hallelujah, hallelujah)

Admire me, admire my home
Admire my son, admire my clones
'Cause we know, appetite for a nightly feast
Those ignorant Indians got nothin' on me
Nothin', why?
Because... it's evolution, baby!

I am ahead, I am advanced
I am the first mammal to make plans, yeah
I crawled the earth, but now I'm higher
2010, watch it go to fire
It's evolution, baby
It's evolution, baby
Let's do the evolution
Come on, come on, come on ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Do_the_evolution markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Do_the_evolution Mon, 04 Dec 2006 13:27:41 -0600
<![CDATA[ Beto, Enrique y el Peje ]]>
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Beto_Enrique_y_el_Peje markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Beto_Enrique_y_el_Peje Sat, 25 Nov 2006 10:07:37 -0600
<![CDATA[ Videos ]]> :-)

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Videos markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Videos Thu, 23 Nov 2006 17:41:31 -0600
<![CDATA[ Kiwi! ]]> ]]> http://islascruz.org/html/index.php?Blog/SingleView/id/Kiwi markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Kiwi Fri, 17 Nov 2006 11:30:05 -0600