Daniel Guerrero Thoughts

Tuesday, June 29, 2004

My Digital Images project it's going on, I was developing first at Java but was creepy slow, even to do a simple grayscale, or a bright enhance; but I think it looks very good =).

I tried to make with mono, but the Pixbuf.Pixels property generates an error; but I can't wait to a new version =S.

Next I tried to pygtk, but again, the pixel property is not writable... only in gtk 2.4, I tried to update my system; but it don't work.

Finally, I was working with C, but the development is really slow; but the program is really fast =).
Today I tried to make the progress work; but it was crashing very often, and then I read it was for the threads, latter I tried with the examples; but I get it was really slow updating the image; I noticed why... because I was trying to update everytime it updates an pixel!!!, in a desktop image of 1024x768, it was a really overwhelming; I reduced to only update for each row, which work really fast; now I have to work with the dialogs to make it easier, and develop the algorithms... I have about 3 weeks =S.

Tuesday, June 15, 2004

I love yahoo!, they have grown their mail quota to 100 megs, and 10 megs to send mails, recently I have to delete all my old stuff, now I think I will have more time to kept these mails; I don't like to use their pop download system due I want to read everywhere, something I can't do all the time with my other account, because all my mail is here in my mac.

I don't know how the people could live with a shit of 2 megs in their hotmail account, I think they get used the old hasefroch way (you can't do anything, the blue screens are something normal, lose your data is normal, fragment your hd is normal).

I finished reading "The Odissey", I think I like this book much more than the Illiad because tells more histories, I will start tomorrow to read "The Aeneid" of Virgil, it looks pretty cool.

I want to read about Hemingway, and others, but I don't have much money these days.

Monday, June 14, 2004

Yeah, http://perseo.cs.buap.mx is now online, and full working.

I've migrated to debian because gentoo was going very slow =((.

I started to read an uml book, it looks interesting; I've read before about UML, but never use it; now I'm trying to develop faster and organizated my school library portal.

I was looking notebooks with a friend; because she wants to buy one. I really like a 15" Toshiba laptop, really cool. I think she will buy a Vaio laptop =).

Monday, June 07, 2004

Felling a little sad

People just ain't no good

People just ain't no good
I think that's welll understood
You can see it everywhere you look
People just ain't no good

We were married under cherry trees
Under blossom we made pour vows
All the blossoms come sailing down
Through the streets and through the playgrounds

The sun would stream on the sheets
Awoken by the morning bird
We'd buy the Sunday newspapers
And never read a single word

People they ain't no good
People they ain't no good
People they ain't no good

Seasons came, Seasons went
The winter stripped the blossoms bare
A different tree now lines the streets
Shaking its fists in the air
The winter slammed us like a fist
The windows rattling in the gales
To which she drew the curtains
Made out of her wedding veils

People they ain't no good
People they ain't no good
People they ain't no good at all

To our love send a dozen white lilies
To our love send a coffin of wood
To our love let aal the pink-eyed pigeons coo
That people they just ain't no good
To our love send back all the letters
To our love a valentine of blood
To our love let all the jilted lovers cry
That people they just ain't no good

It ain't that in their hearts they're bad
They can comfort you, some even try
They nurse you when you're ill of health
They bury you when you go and die
It ain't that in their hearts they're bad
They'd stick by you if they could
But that's just bullshit
People just ain't no good

People they ain't no good
People they ain't no good
People they ain't no good
People they ain't no good at all


Recompiling Gtk 2.4 and mono beta 2 to check if the error could be solved...

Thursday, June 03, 2004

Lambda

I love Python!

I was testing one filter which study today in the morning and I want to see in action the code using Python Imaging is really, really simple to implement point functions, just check the code:


def apply_sin(image, side=0):
if not side:
return image.point(lambda x: 255
* math.sin((x*math.pi)/510))
else:
return image.point(lambda x: 255
* (1 - math.cos((x*math.pi)/510)))


This is for an algorithm of brightening and the second is for obscuring, I want to make a little graphical program which implements this algorithms, the question is... I must keep doing in Python?, I want to give it also as my final project in other course, but I don't think it will accept the Imaging Library, so I have to reimplement all; I want to use GdkPixbuf, the problem I have seen is handling grayscale images, because GdkPixbuf save the file as RGB using RGB palettes, instead of trying saving in grayscale palettes.

Of course, I can only use it and forget about how it saves; it will not matter to my teacher =)

First Blog

Since http://advogato.org is down, now I will publish my thoughts here.