Archive | January, 2012

SOPA Internet Blackout Impact

For all those who think the Internet Blackout had no impact?

Source: http://www.propublica.org/nerds/item/sopa-opera-update

Leave a Comment
Video

Understanding PIPA and SOPA

The film explores how the bills work, who’s behind them, the potentially dangerous global precedent that they set, and why all internet users have reason to be concerned.

Video

Protesting SOPA and PIPA!

Tomorrow, January 18, 2012 – I am also protesting SOPA and PIPA. Or is this just a Red HerringThe danger is real! SOPA, the Stop Online Piracy Act, is a major threat because it gives United States government the ability to effectively cut off any website.

Update [01/19/2012]:
The index.html homepage with SOAP has been moved to http://www.alexrams.com/SOAP.html

Código para el Juego de Adivinar el Número

# Number-Guessing Game from Hello__World! ISBN-13: 978-1933988498
# Translated from English to Spanish :: Listing 1.2

import random

secret = random.randint(1, 99)
guess = 0
tries = 0

print "Hey, Yo soy el Pirata Pesadilla Roberto, y tengo un secreto!"
print "Es un numero entre el 1 y el 99. Y te dare 6 intentos para que adivines. "

while guess != secret and tries < 6:
    guess = input("Cual es el numero? ")
    if guess < secret:
        print "Muy bajo, cara de ajo! "
    elif guess > secret:
        print "Muy alto, marinerito de agua dukce!!"
    tries = tries + 1
if guess == secret:
    print "Avast! Lo hiciste!  Encontraste my secreto, si lo hiciste!"
else:
    print "No mas adivinanzas  Mas suerte la proxima vez!"
    print "El numero secreto fue", secret
Leave a Comment
Aside

Install EasyGUI on Mac OS X

Download EasyGUI if you have not done so already. In the directory where you downloaded the .tar file, follow the terminal commands below:

$ tar -xvf easygui_v0.95.tar
$ sudo python setup.py install

The ‘$’ should not be typed within the terminal window, as this refers to the privilege level. You could also copy “easygui.py” to “/Library/Python/2.7/site-packages/” directory.  To check if the module is installed within Python type:

Python Code:

>>> import easygui
>>> easygui.msgbox("Hello There!")

or

>>> help()
>>> easygui

control + D

Leave a Comment