Archive for the ‘soft’ Category

Consumo de ADSL por mail - ANTELDATA

Monday, August 17th, 2009

cuentagigas.info es una interfaz simple para un bot(programa) que hace tiempo quería hacer para estar al tanto de cuántos gigas voy gastando en el adsl sin tener que estar entrando al sitio de anteldata, … si quieren probarlo:

cuentagigas.info

Detalles técnicos:

  • El robot actualmente revisa el consumo 2 veces por día y decide si hay que enviar o no una notificación a cada cuenta. Está hecho en Python, es un Scrapy-spider bastante simple. Si alguien quiere ver el código lo puedo publicar.
  • La interfaz es un Django-site también bastante simple.
  • Permite dar de alta varios emails, útil cuando varias personas usan el mismo adsl. También permite cancelar el envío de notificaciones o cambiar los datos asociados. Se irá mejorando en base al feedback recibido.
  • Funciona con usuarios de adsl y adsl móvil.

Gracias.

trac-accountmanager in debian

Friday, August 7th, 2009

This advice is probably too late for you but: Don’t install the package trac-accountmanager in debian, seems broken. Install the plugin directly with “sudo easy-install …” as described in track-hacks.org
Corolary: why I’m using ArchLinux? Speed. And also because I have about an 80% less packages installed by hand. Also I can contrib easily with new packages in AUR.

JSP Hello World Howto

Thursday, August 6th, 2009

This can be called a howto of “How can I make a hello world in JSP without unnecessary tools like, Eclipse, struts, servlets, JBoss, etc.?” only you, your text editor, tomcat and of course, your GNU-Linux box.

1. Create a directory anywhere to store your app, let’s create one called “myapp”: mkdir myapp

2. Create your hello.jsp web page: echo ‘<% String hello=”Hello World”; %><%=hello%>’ > myapp/hello.jsp

3. Create your app’s web.xml file, you should have this file under (create it) the WEB-INF directory, under “myapp”:

<?xml version=”1.0″ encoding=”ISO-8859-1″?>
<web-app xmlns=”http://java.sun.com/xml/ns/j2ee”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”
version=”2.4″>
<display-name>Hello World</display-name>
<description>My hello world app.</description>
<welcome-file-list>
<welcome-file>hello.jsp</welcome-file>
</welcome-file-list>
</web-app>

4. Install tomcat, for example, in Arch I’ve typed: sudo pacman -Sy tomcat

5. Make your app. available: sudo ln -s /path/to/myapp /opt/tomcat/webapps

6. Start tomcat, for example, in arch I’ve typed: sudo /etc/rc.d/tomcat start

7. Point your browser to: localhost:8080/myapp

Python2.6 with mod_python in debian

Thursday, January 15th, 2009

As you may know, there are no packages yet for Python2.6 in debian or ubuntu. If you want to install it you can do it by hand and it will work perfectly (it did for me)

Google a bit and you will find this post: http://blog.pythonaro.com/2008/10/horrible-hack-to-get-python-26-on.html

You can follow the steps in the post without problem, then remember to update your supported and default versions under /usr/share/pyhton/debian_defaults

Also you can link modules available in 2.5 to be used by 2.6, for example Ipython, it works perfectly. Do symlinks from python2.6/site_packages/ pointing python2.5/site_packages. Although this is not the correct way, the correct way should be reinstall those modules under your new configuration.

But what about mod_python? it still remains to Python2.5 right? YES

Well, you have to do the same, download it from modpython.org and make and make install, be sure to install apache2-dev it will provide you with a tool needed in the compilation time.

All should work, also django is working perfectly in my new Python & mod_python 2.6 conf. under debian.

cheers!

Windows evolution

Monday, January 12th, 2009

- Hola, vengo a comprar una laptop con lo del plan ceibal.

- Bien, tengo esta winky-plinky-dupper a buen precio.

- ¡Pero esto es un anti virus!

- Si, es que ya dejamos de vender con windows, ahora directamente vendemos el antivirus pronto, listo para usarse, mirá!: te viene la opción de cuarentena, de curar, de eliminar, –click, click– todo, todo.

Se actualiza solito por internet, bien familiar.

Ya no tenés que andar haciendo los pasos previos, tipo, navegar un par de semanas, usar el word, instalar jueguitos y todas esas cosas, ya directamente usás el antivirus que es el posta!, eh!?

- Ah tenés razón che!, los virus están salados, me dijeron que hasta te pueden reventar el disco duro.

- Pff! Si, si, pueden hacer cualquier cosa, viste como-eh!

- Bueno dale, llevo esa.

- Perfecto!

:Muttator++

Thursday, August 7th, 2008

All mail clients suck. Mutt just sucks less. This one just sucks less than mutt.

I’m using muttator now, It’s very cool, to install it you need Thunderbird 3 alpha.