Thursday, June 18, 2009

Software Carpentry

Encontré este sitio: Software Carpentry en el que explican muchas cosas muy útiles para desarrollar software.

Thursday, April 30, 2009

Primera prueba MatPlotLib

Usé el siguiente código de ejemplo para comprobar si había instalado bien MatPlotLib:
# plotting with the pylab module from matplotlib
# free from: http://matplotlib.sourceforge.net/
# used windows istaller matplotlib-0.90.0.win32-py2.5.exe
# tested with Python25 EU 4/21/2007
import math
import pylab # matplotlib
# create the x list data
# arange() is just like range() but allows float numbers
x_list = pylab.arange(0.0, 5.0, 0.01)
# calculate the y list data
y_list = []
for x in x_list:
y = math.cos(2*math.pi*x) * math.exp(-x)
y_list.append(y)
pylab.xlabel("x")
pylab.ylabel("cos(2pi * x) * exp(-x)")
# draw the plot with a blue line 'b' (is default)
# using x,y data from the x_list and y_list
# (these lists can be brought in from other programs)
#
# other drawing styles -->
# 'r' red line, 'g' green line, 'y' yellow line
# 'ro' red dots as markers, 'r.' smaller red dots, 'r+' red pluses
# 'r--' red dashed line, 'g^' green triangles, 'bs' blue squares
# 'rp' red pentagons, 'r1', 'r2', 'r3', 'r4' well, check out the markers
#
pylab.plot(x_list, y_list, 'b')
# save the plot as a PNG image file (optional)
pylab.savefig('d:\PracticasPython\Fig1.png')
# show the pylab plot window
# you can zoom the graph, drag the graph, change the margins, save the graph
pylab.show()

Esto es lo que aparece:
















Y esta es la imagen que guarda:

Scipy

Acabo de instalarme NumPy, SciPy y MatPlotLib.
Por lo que he estado viendo con estos módulos puedes tener un entorno como MatLab pero gratis.

Monday, April 13, 2009

Videotutoriales Java

Videotutoriales Java en español!!.

HP garage rules / Reglas del garaje HP

These were the rules in Bill Hewlett and Dave Packard garage:
  • Believe you can change the world.
  • Work quickly, keep the tools unlocked, work whenever.
  • Know when to work alone and when to work together.
  • Share tools, ideas. Trust your colleagues.
  • No Politics. No bureaucracy. (These are ridiculous in a garage).
  • The customer defines a job well done.
  • Radical ideas are not bad ideas.
  • Invent different ways of working.
  • Make a contribution every day. If it doesn’t contribute, it doesn’t leave the garage.
  • Believe that together we can do anything.
  • Invent.
--------
Estas eran las reglas del garaje de Bill Hewlett y Dave Packard:
  • Cree que puedes cambiar el mundo.
  • Trabaja rápido, manten las herramientas a mano, trabaja en cualquier momento.
  • Discierne cuando trabajar solo y cuando trabajar en equipo.
  • Comparte las herramientas. Confía en tus colegas.
  • Nada de política. Nada de burocracia. (Resultan ridículas en un garaje).
  • Son los clientes quienes definen un trabajo bien hecho.
  • Las ideas radicales no son malas.
  • Inventa maneras diferentes de trabajar.
  • Contribuye cada día. Si algo no contribuye, no debe salir del garaje.
  • Cree que juntos podemos conseguir cualquier cosa.
  • Inventa.