Written by:
daniel

November 17, 2009
Hace algún tiempo escribí como configurar Kaffeine para poder recibir IB3 usando TDT.
Desde hace unos días otra televisión local, TVMallorca (a la cual, por cierto, ayudamos en su día configurar la emisión a través de internet), está emitiendo en el formato digital.
Desgraciadamente, Kaffeine, al no tener configuradas las frecuencias, no encuentra este canal. Para remediarlo hay que añadir en el archivo (yo uso ubuntu, pero debe ser algo parecido en otras distribuciones):
~/.kde/share/apps/kaffeine/dvb-t
la siguiente línea:
T 602000000 8MHz 2/3 NONE QAM64 8k 1/4 NONE # TVM
Ahora reiniciamos el Kaffeine y voilá! El programa ya encuentra este canal y algunos más. (Ahora tengo 29 canales de tv + 15 de radio).
Posted in linux
No Comments »
Written by:
daniel

November 12, 2009
Estamos tan rodeados por el software libre y tan acostrumbrados a estar acompañados por él, que casi no nos damos cuenta de la cantidad de open source en todos los sitios. Como el aire, es esencial para la vida, pero ¿quién lo habrá notado antes de verse privado de él?
Quizás esa es la razón por la cuál hay muchas confusiones a la hora de pensar en un modelo de negocio basado en el open source. Aunque, no hay que olvidarse que la gran mayoría de empresas ha podido existir únicamente gracias a ello (y en muchos casos sin darse cuenta).
Hoy en día, (casi) cualquiera puede iniciar su negocio con un coste cercano a cero, por no tener que pagar licencias de todo tipo: sistemas, software etc.. Pero bueno, como ya estamos acostumbrados a respirar el software abierto como si fuera el aire, pocos se dan cuenta que lo que ahora viene gratis antes costaba mucho dinero. Es un ejemplo tópico decir que Google no habría podido sostenerse económicamente, si tuviese que desembolsar los costes de licencias para sus miles de servidores.
OK! Pero ¿dónde está el negocio para una empresa pequeña de open source? Siendo un cliente final, seguro que puedo aprovecharme y ahorrar costes, pero ¿cómo puede sobrevivir una empresa que crea código libre? Antoni Aloy y Jordi Esteve, los ponentes de la III Jornada sobre Soluciones Open Source para PYMES intentarón contestar a esta pregunta.
Una respuesta (obvia) es: “servicios”. Si el software en sí, puede ser gratis (aunque no tiene por qué serlo) - todo lo que lo rodea, puede ser una fuente potencial de ingresos. Consultoría, personalización, mantenimiento, venta de hardware y atención al usuario pueden ser útiles para nuestros clientes.
No hay que olvidar que gracias al acceso al código fuente, podemos fácilmente construir sobre una base sólida, creando un valor añadido, por el cual muchos clientes estarán dispuestos a pagar. Para una empresa de software privativo, que tiene que crearlo todo de cero, será muy difícil competir con nosotros. (Luego, ¿por qué no?, podemos devolverlo a la comunidad
)
La comunidad, es otro aspecto muy importante del éxito (si no el más importante). Muchos colaboradores externos, pueden ayudarnos crear un producto mejor que si lo tuvieramos que desarrollar con sólo nuestro propio esfuerzo.
Como vemos, en el mundo de software abierto la clave de conseguir beneficios es principalmente de bajar los gastos y ser más competitivo sin comprometer la calidad.
Con esto, el nivel de entrada para clientes finales puede ser (y normalmente es) menor, con lo cual podemos ganar un numero mayor de ventas al hacer el producto más accesible.
Una cosa, que en los tiempos de crisis, no es poco.
Una joya open source de la conferencia: OpenERP
Veo un mundo de oportunidades 
Posted in linux, negocio
No Comments »
Written by:
daniel

October 24, 2009
Como empresario, siempre he sido en contra de las ayudas financieras directas a los desempleados, ya que considero (y mi experiencia lo afirma) que al final se convierten a unas vacaciones de pago a costa del estado para un 90% de los que cobran este tipo de prestaciones.
Claro, cada uno aprovecha estos meses de protección como quiere. Unos no moverán un dedo y otros dedicarán el tiempo para mejorar su situación en el mercado laboral - formarse, buscar otro empleo etc. etc.
Sin embargo, no entiendo que los que somos pequeños empresarios autónomos, no tengamos la misma protección del subsidio cuando nos quedamos en el paro, a pesar de que solemos pagar más impuestos que los que trabajan por cuenta ajena. En un país como España, donde la mayoría de empresas no tiene más de 5-10 empleados (y una gran parte de ellas se constituye de una sola persona), me parece una injusticia social.
Creo que está muy bien, que el gobierno quiera proteger a los miles de familias que se han quedado sin empleo, designando una partida importante de sus presupuestos para este fin. En una crisis que estamos sufriendo, el labor social del estado es importante. Pero, ¿realmente su manera de hacerlo - regalando dinero a la gente - ayuda a mejorar su situación? ¿No sería mejor, en vez de hacer esto (o darle el dinero a los bancos), aprovechar estos fondos para crear nuevos puestos de trabajo? Habría más de un empresario dispuesto a contratar a la gente (o mantener los puestos de trabajo) si se viese apoyado por el govierno. Sin hablar de los beneficios sociales y personales que supone para una persona tener un empleo. Pero, teniendo en cuenta la inminente subida de impuestos, el gobierno, parece que prefiere regalar pasta al pueblo (y a los causantes de la crisis) sacándola y aumentando la presión fiscal a los que crean la riqueza en este páis.
“Todos somos iguales, pero hay unos más iguales que los demás”.
* Si alguien no reconoce esta cita es de “Rebelión en la granja” - una fabulosa novela de George Orvell, el autor también de “1984″ - la novela donde intventó el termino “el Gran Hermano”. En España no tienen la misma popularidad que en Polonia, pero son muy, pero muy recomendables.
Posted in random
No Comments »
Written by:
daniel

October 22, 2009
Importing a powerpoint presentation into a web application has been always a huge headache for a web developer, especially if your everyday environment is labeled with a penguin. I have seen dozens of converters for windows desktop, but they could not be used in our case.
Unfortunately, the old friend OpenOffice combined with some open source technologies come to rescue!
OpenOffice opens and stores documents in many formats and it can be started in a service mode, which works perfect for servers and these scripts from the JODConverter project make the job very easy.
The only thing I miss is to be able to add some parameters to the output format, for example autoplay for presentations instead of having to click at each frame to go on.
Links:
JODConverter
More info on installation
Note:
It seems it’s also possible to use Google Docs API for this purpose.
Posted in linux
No Comments »
Written by:
daniel

September 12, 2009
I have been using punjab for a while as an interface for BOSH protocol between my browser Strophe applications and other xmpp clients. This worked perfectly until the (sad) day I had no internet connection. Suddenly I could not connect through punjab with a local ejabberd server and got very confusing “not authorized” error messages.
I double checked all configuration data and do a couple of tests and debugging until I found out what the problem was.
Apparently punjab tries to resolve any domain in your usernames using a dns server. That is unfortunately true even for “localhost”. Moreover, it totally ignores your /etc/hosts file (or at least I did not know how to make it use it), so until you are ready to deploy a local dns server, you cannot use it without an internet connection.
I was about to give up, when I found out that ejabberd had a native module for BOSH connections, (which btw I had know about and it had given me a lot of troubles when I had tried to use it months ago)
Fortunately, this time everything went very smoothly. All I did was uncommenting the line:
{mod_http_bind, []}
restarted ejabberd and when I accessed:
http://localhost:5280/http-bind
I could see the BOSH interface response. Boy! That was easy.
I had to change a little bit the apache proxy module configuration and it worked perfectly.
On the other hand, the native ejabberd http bind module is said to have better performance than punjab (which is not very surprising after all). Check out this post to find out more.
EDIT: September, 12th
I have checked the setup with punjab, having internet connection activated and it is still not working, so I guess I was wrong about this being a dns server issue. Or maybe it has some problem with “localhost” being the ejabberd domain? I will post here any news.
EDIT: September, 19th
I was wrong! Thanks to some helpful hints from Tofu the REAL problem could be identified as some bug in Strophe. I was using some old version (although it’s hard to trace as there seems to be no version number in the file) and when I changed it to the one I just downloaded - voilá! It worked! The lessons learned are:
- check if you use the latest version. bugs are fixed all the time.
- sometimes (especially with many components in the middle) error messages (and even initial tests) may be misleading and testing each component separately or in different configurations may help isolate the problem.
Posted in linux
3 Comments »
Written by:
daniel

June 22, 2009
Hi folks,
we have recently migrated our svn server to another machine. It is now available at:
svn://svn.devayd.com/cake
username: anon
password: anon
please use your favorite program (like this one) to browse and download our open source stuff.
EDIT
as many people seem to have problems getting the code, check this:
the svn command to export the whole repository would be:
svn –username anon –password anon export svn://svn.devayd.com/cake ayd_cake_stuff
Unfortunately the web interface will not be available for now.
Posted in cakephp
No Comments »
Written by:
daniel

March 23, 2009
Punjab allows to connect to an xmpp server like ejabberd, from a client that supports http requests only (for ex. javascript / ajax). It uses some clever parallel connections to handle input and output streams, so there is very little latency when sending and receiving messages.
First, install needed libraries:
apt-get install python python-twisted
then, download the source code from http://code.stanziq.com/cgit/punjab/punjab/
Once unpacked, edit the configuration file punjab.tac.
I changed the port on which punjab is running to 5821, as the default 5280 is already used by ejabberd web admin interface.
Then, install it and run:
python setup.py install
twistd -y punjab.tac
if it works, you should be able to access http://yourdomain.com:5281 (if you changed the port)
The last thing you need to configure is to setup your apache server, so you can use punjab in your sites.
As by default, you cannot open ajax connections to domains and ports different to the ones that your site uses, so we will have to use mod_proxy and mod_rewrite to enable access to punjab.
edit /etc/apache2/httpd.conf and add the following
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
edit your vhost file and add these lines:
RewriteEngine On
RewriteRule ^/http-bind/ http://yourpunjabserver.com:5281/xmpp-httpbind/ [P]
this means, that everytime you will access yourapplication.com/http-bind/, the request will be transparently proxied to http://yourpunjabserver.com:5281/xmpp-httpbind/
now add the required modules and restart apache:
a2enmod rewrite
a2enmod proxy
a2enmod proxy_http
/etc/init.d/apache2 restart
that’s it! you can now use for example the Strophe xmpp library to create your xmpp applications with javascript.
Posted in linux
3 Comments »
Written by:
daniel

March 20, 2009
Ejabberd is one of the most popular xmpp servers. It is used mostly as a jabber chat server, but the xmpp protocol serves for any purpose when instant messaging, and message queques are needed.
Anytime when you need people (or software components) communicate in realtime over the network, an xmpp server might be what you are looking for.
So, how to install it on an ubuntu-server?
Ejabberd package is in the offical repositories, so the installation is trivial:
apt-get install ejabberd
Once it’s done, you need to edit the /etc/ejabberd/ejabberd.cfg file in order to setup hostnames that your server will manage. Accounts in ejabberd (and in other xmpp servers) are in form of “user@domain_name”, so you need to find the following lines:
%% Hostname
{hosts, ["localhost"]}.
and add all domains that your server will be using, for example:
{hosts, ["localhost", "devayd.com"]}.
then, you need to enable some users that will have admin access to your server. look for “ACCESS CONTROL LIST” in the config file, then uncomment and edit any of sample acl lines. The mine looks like this:
{acl, admin, {user, “admin”, “devayd.com”}}.
this means, that admin@devayd.com will have the admin rights.
ok, we are done with the config. save the file and start the server:
/etc/init.d/ejabberd start
Now, you need to create the admin user. we will use a command line utility that comes with ejabberd.
ejabberdctl register admin devayd.com password
don’t forget to change “devayd.com” with your domain.
now you can access the server web interface on the port 5280 and add more users.
you could also allow users to register with their jabber clients (like pidgin or psi). to do so, look for the following line in the config file:
{access, register, [{deny, all}]}.
and change “deny” with “allow” then restart the server.
Posted in linux
No Comments »
Written by:
daniel

March 9, 2009
it’s been a while since I published my last post, all because of some health problems that I’ve been coping with. Well, I am happy to say, things seem to go better these days and I feel like doing some new exciting projects (and of course blog about it). to be honest, we have been doing more than just work, so stay tune to get some news about our simple “sunday-afternoon’s” and proof of concept projects including:
- digital signage
- unit testing in cakephp
- embedded linux systems
- openwrt
- home automation
- mobile app development
- xmpp (aca jabber) and web integration
- webhooks
- and more…
Posted in random
No Comments »