Archive

Archive for August, 2008

F.A.R.T. (Don’t try this at home)

August 31st, 2008 Serabe No comments
0 F.A.R.T. (Dont try this at home)

Children, don’t try this at home.

article clipper F.A.R.T. (Dont try this at home)
 
share save 171 16 F.A.R.T. (Dont try this at home)
Categories: GOTAM Tags:

Nanowar

August 31st, 2008 Serabe No comments

Nanowar is an Italian, comic metal band. They support free music, so you can download the complete discography from the official website.

  

I will give a gallifante to the first person who guesses what’s the origin of the Gioca True song.

article clipper Nanowar
 
share save 171 16 Nanowar
Categories: GOTAM, Humor, Music Tags: , ,

Tweets del 29-08-2008

August 29th, 2008 Serabe No comments
article clipper Tweets del 29 08 2008
 
share save 171 16 Tweets del 29 08 2008
Categories: Twitter Tags:

Programmers Jokes.

August 29th, 2008 Serabe No comments

In C we had to code our own bugs. In C++ we can inherit them.

C gives you enough rope to hang yourself. C++ also gives you the tree object to tie it to.

With C you can shoot yourself in the leg. With C++ you can reuse the bullet.

A computer without COBOL and Fortran is like a piece of chocolate cake without ketchup and mustard.

Why all Pascal programmers ask to live in Atlantis?
Because it is below C level.

Programmers Jokes.

article clipper Programmers Jokes.
 
share save 171 16 Programmers Jokes.

Hug a developer today.

August 28th, 2008 Serabe No comments

Hug a developer today. They are in pain. At least, I work for a Open Source project, so I have no boss… but me.

Anyway, you can hug me if you want icon smile Hug a developer today. .

Taken from.

article clipper Hug a developer today.
 
share save 171 16 Hug a developer today.

Tweets del 16-08-2008

August 16th, 2008 Serabe No comments
  • @huikau thank you very much. I hope people enjoy it as much as I did developing it. #
article clipper Tweets del 16 08 2008
 
share save 171 16 Tweets del 16 08 2008
Categories: Twitter Tags:

RMagick4J 0.3.6

August 16th, 2008 Serabe No comments

I am glad to announce a new version of rmagick4j.

RMagick4J aims to implement the ImageMagick funcionality and the C
portions of RMagick for make it works in JRuby.

Current stable version: 0.3.6
Project URL: http://code.google.com/p/rmagick4j/
Installation: gem install rmagick4j

Google Summer of Code project should be thanked for making this new
release possible.

In release 0.3.6 you can find the next improvements:

  • More Draw primitives (clip-path [creatin a clip-path and using a
    clip-path], fill-rule, rotate, scale [reimplemented], skewX, slewY,
    stroke-linecap, stroke-linejoin, stroke-miterlimit, translate).
  • Solve a bug with transparent stroke and line primitive.
  • Added the following Draw instance methods:
    • annotate
    • get_multiline_type_metrics
  • Solved a bug that caused the background become black while resizing
    images with alpha channel.

Please try out your applications with rmagick4j and help us provide
feedback. It is our goal to make a fully-compatible implementation of
RMagick4j in JRuby.

article clipper RMagick4J 0.3.6
 
share save 171 16 RMagick4J 0.3.6

Sustituyendo a las animadoras con Ruby en Mac.

August 12th, 2008 Serabe No comments

El título del post puede sonar raro, pero lo que voy a mostrar hoy es cómo conseguir tu propia animadora en Mac con Ruby. Lo que haremos será hacer que nuestro ordenador, con una orden como:


ruby cheerleader.rb Serabe

Nos muestre por pantalla:


Dame una S
Dame una E
Dame una R
Dame una A
Dame una B
Dame una E
SERABE!!!

Además, utilizando el comando say de Mac, nos lo dirá (si queréis que lo grite, subid el volumen al máximo).

Empecemos con el código:
[ruby]
string = ARGV.join(‘ ‘)
[/ruby]

Aquí simplemente recogemos los parámetros pasados por consola y los concatenamos con un espacio entre medias. Ahora la parte interesante:

[ruby]
string.each_byte do |b|
if /[a-zA-Z]/ =~ b.chr
shout = ‘Dame una ‘+b.chr.upcase
puts shout
`say #{shout}`
end
end
[/ruby]

Para cada letra, una vez comprobado que es una letra y no un espacio, construimos un grito (‘Dame una S’), lo imprimimos por pantalla y hacemos que el comando say lo diga.

Finalmente, con un

[ruby]
puts string.upcase + ‘!!!’

`say #{string}`
[/ruby]

Imprimimos la última frase.

Ya habéis visto cómo crearos vuestra propia cheerleader. En próximos episodios veremos cómo añadirle autoregeneración como Claire.

article clipper Sustituyendo a las animadoras con Ruby en Mac.
 
share save 171 16 Sustituyendo a las animadoras con Ruby en Mac.
Categories: Programming, Ruby Tags: , ,