Archive for October, 2006

sick PWNAGE! MyBloop.com developer T-shirt

Tuesday, October 31st, 2006

Just wanted to share my pride as a MyBloop.com developer with all of you with this t-shirt I made recently

Click on the images to enlarge

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)

90,027 homicides in Venezuela [1998,2004]

Monday, October 30th, 2006

El número de homicidios registrados entre 1998 y 2004 en Venezuela totalizó 90,027, una cifra que casi triplica el número de muertos en la Guerra de Afganistán (2001-2006), y supera ampliamente las bajas producidas en conflictos como la Guerra de Chechenia (1991-1994) y la Guerra del Golfo Pérsico (1990-1992),

The number of registered homicides between 1998 and 2004 in Venezuela summarized 90,027, a number that almost triples the number of dead in the Afganistan war (2001-2006), and broadly outgrows the deaths in conflicts such as the Chechenia War (1991-1994) and the Gulf War (1990-1992)

Wanna go to Venezuela? It’s the best country in the world :)


Torre La previsora – Courtesy of Huguito’s flickr photos

I still have nightmares I’m being mugged on the street, last night I dreamed I was walking from La Previsora to Av. Libertador, and two motherfuckers were trying to get my wallet, I started screaming “Policia! Policia!” and started running so the son of a bitch wouldn’t get me. I’ve been living in the US since 2003, I still have nightmares.

If you live in a safe country, don’t take for granted the chance to walk without fear at night, to not have to check out the window every 5 minutes if your car is getting cause you parked it on the street, to not be afraid everytime you stop at a red light, to go to an ATM and not fear for an express kidnap, to be able to wear whatever you want without fear, to be able to use your ipod or play with your new phone, or use your laptop on the subway, bus or in a public park, to not have to look behind you in case you’re being followed.

Security is one of the best privileges you can enjoy, don’t take it for granted.

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)

Another Reason why I hate IE – Getting Mouse Coordinates

Sunday, October 29th, 2006

Fucking IE!!!

If I had a dollar for everytime I say that.

In anycase, I just fixed a bug which has been keeping all the people that visit wedoit4you.com from recommending articles by mail to their friends.

It has to do with getting the current position of the mouse.

Every other browser implementation considers the mouse position relative to the beginning of the the document, stupid microsoft developers were too lazy to add up the amount of scroll, and they not only were too lazy to do it like everyone else, their document.body.scrollTop function always returns 0, it turns out that you have to do document.documentElement.scrollTop to get the stupid scrollTop variable.

Yet another reason to hate IE’s guts even more.

So, kids, if you need a function that gives you the correct mouse position, relative to the beginning of your document, no matter how much you scrolldown, here it is:


var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.documentElement.scrollLeft
tempY = event.clientY + document.documentElement.scrollTop
//FUCKING IE, not only it considers mouse position
//relative to the current view, but it didn't retrieve
//the scroll value with document.body.scrollTop... MOTHERFUCKERS
} else { // grab the x-y pos.s if browser is NS
tempX = e.pageX
tempY = e.pageY
}
// catch possible negative values in NS4
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
// show the position values in the form named Show
// in the text fields named MouseX and MouseY

return true
}

Put that on one of the javascripts that you load, probably the first one actually, since the idea is to use global variables "tempX" and "tempY" to get the current mouse position at all times.

I learned about all this thanks to this post from Stephen Chapman.

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)

This is a test post

Saturday, October 28th, 2006

Let’s see if snowrss will do the trackback when it fetches it.

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)

Como actualizar a Ubuntu Edgy Eft

Friday, October 27th, 2006

Saludos, a continuacion instrucciones para actualizar Dapper a Edgy Eft (6.10) utilizando apt-get

Edita tu /etc/apt/sources.list como super usuario.
(Ej. sudo emacs /etc/apt/sources.list)

Haz search-replace de ‘dapper’ por ‘edgy’

Si no tienes emacs puedes simplemente utilizar sed y hacer el remplazo asi:

sudo sed -e ’s/\sdapper/ edgy/g’ -i /etc/apt/sources.list

Ahora debes bajarte los nuevos paquetes haciendo:

sudo apt-get update

Una vez que tienes todos los paquetes, es hora de descargar todo lo nuevo haciendo un upgrade a tu distribucion:

sudo apt-get dist-upgrade

Asegurate que todo haya terminado bien con los siguientes comandos.

sudo apt-get -f install

sudo dpkg –configure -a

Reinicia para que todos los cambios surgan efecto.

Disfruta.

No dejes de escucharme en el podcast de wedoit4you.com

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)

Episode 0038 – Firefox 2, Nuevo Ubuntu, Nuevas Macbooks!!!

Friday, October 27th, 2006

Download en mp3 | Suscribete GRATIS a este podcast | Skypeanos

Semana de mas lanzamientos, y eso que aun no llega Noviembre, en esta edición:


Encuentro Blogger en Ft. Lauderdale

Muchas gracias a todos los que escribieron esta semana, su apoyo nos hace continuar con mas y mas animos cada vez. No dejen de escribirnos aqui, o a podcast@wedoit4you.com.

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)