Disclaimer: This is a personal web page. Contents written here do not represent the position of my employer.

Monday, March 30, 2009

 

I14Y happens

Some years ago, I started to get familiarized with abbreviations like 'l10n', 'i18n' when I started contributing to the translation efforts of Mozilla & Firefox under the NAVE Project.

Some months later I came to know the new term 'a11y', and I started to see it in a lot of places. By that time, I only associated it with the web development world. Terms like "Unobstrusive JavaScript" were very related to it (and I even created an "AJAXy" library called AMUSE for this purpose).

Now let's talk about the next one: I14Y. This concept is present when things like this happen: "I can open an (Microsoft's)OpenXML file with some (Novell's) edition of (Sun's)OpenOffice". Or even more weird things: "I can manage my (Apple's)IPod thanks to a (Microsoft's).NET-powered application called (Novell's)Banshee". Or even more awesome ones: "I can use (Sun?'s)Orca screen reader to control my (Microsoft's)Windows.Forms-powered applications in my (Novell's)SUSE Linux Box!".

So, yeah, we made it! Along with the awesome releases of Mono 2.4 and MonoDevelop 2.0.

Now, guess what's the word?

Labels: , , , , , , ,


Sunday, September 07, 2008

 

Hackweeks

I'm going to give a brief summary of what I've done in the past weeks (and specially previous week (last one in August), sponsored by Novell as The Hackweek - a form of ITO, in which you can hack at working hours and not only spare time!

I was not so lucky as most of my teammates, who spent the week on the wonderful offices (as they say) of Novell Utah. Maybe if I was in the states already... but well, I had recently an interview in the US Embassy which was the last step of my visa process, so I hope that at least I can make it for the Gnome Boston Summit!

So, firstly I thought of dedicating my week to this task that I submitted to the ideas website, but in the end realized it would be a ton of work to complete without help, and nobody joined me so I decided to learn to use OpenSuseBuildService in order to package Bugzilla, a pretty complex server side software.

Fortunately, I've learnt a lot this week, especially thanks to all the people in irc://irc.freenode.net/#openSUSE-buildservice (above all, darix) and some people from my team (Ray Wang and Stephen Shaw). I could also contact the author of the RPM file for Fedora (who was formerly working for Red Hat), and he's willing to help on joining efforts, as OBS is cross-distribution.

Unfortunately, packaging is a complex task and I didn't finish the package. The documentation is a bit incomplete and having past experience in packaging is a plus that I didn't have. It's awesome that inside our UIA Team we have exclusive resources dedicate to this, because it would be impossible to do from just the developer side.

One of the difficulties I found is finding packages I needed. I could find some of them (BTW, using Webpin is cool for searching on SUSE software repositories, including Packman; except for the fact that doesn't enhance one-click-install) but not all so then I'll have to help on providing packages for some CPAN Perl modules, contributing to the devel:languages:perl official repo.

On the way of learning OBS, I also filed bugs and feature requests (not only to OBS, but also to Banshee! as I have been using it a lot lately at the same time I hack and I even cooked some small patches):

OBS:
Usability issues in project creation page
Link to "My projects" fails if no home:login project has been created yet
New option for uploading the tarball
ChangeLogs parsing is too strict: lines beginning with tab are not recognized, only one date format is accepted
OBS should not allow to create a package named "packageand"
The spec parser should detect the use of a miscplaced packageand(_:_) keyword

Banshee:
No such file or directory errors while importing
Cannot empty some ID3 tag fields
Importing songs without album metadata breaks artist navigation on the iPod
Banshee inserts deduced fictional text on metadata
Should try to locate correct album (and download its cover) in case no album is supplied on metadata


The patches are quite simple so I hope they get committed soon! Clearly Banshee devs and contributors are doing an amazing work, I'm specially amazed by the Moonlight effects, the Muinshee front-end and the effort that it seems is being dedicated to bring Library Sync & Refresh for 1.4. I wish them all the best success.

So let's get back to packaging. Firstly I thought I had found some limitations in OBS or rpm systems because the lack of proper "dual dependency" support. In the past when I installed Bugzilla manually (and updated it to newer versions) I found it a bit hard to do it, specially to deal with DB creation and upgrade. I wanted to make this process easier for the potential rpm user, but without limiting the choice of the DB engine used (as now Bugzilla supports MySQL, PostgreSQL, and Oracle, although the latter was not on my scope). It turns out that it's really hard to apply virtual-provides rules for these cases, as we should stablish more sub-dependencies depending on the db engine you choose, such as perl-DBD-mysql or perl-DBD-Pg, and because it would cause inconsistent situations in case someone in the future replaces his DB-engine with the alternative one (as in theory it should work at the dependencies-level without warning). For references, you may be interested in reading the whole thread about it in the BuildService mailing-list, whose last message includes a possible hack to workaround these problems using patterns (although I don't like to use patterns for solving something like this).

Even discarding the dream about solving this at a package level, it's difficult to solve it at an app level that wouldn't involve reading manuals. My idea was to modify Bugzilla upstream in order to avoid running manually a local script for its initialization, and replace it with a nice web front-end (even if it's only allowed to be run locally). That would cause problems because normally the webserver user doesn't have enough permissions to create files and the database tables and initial data (I'm sure there's always a solution that also doesn't expose security problems, but it's hard to find it as it's noticed in this thread in bugzilla devel newsgroup; so, help is truly welcome).

Maybe the easier and fastest solution is a mixture of both worlds, that is, having a web front-end that asks you the initial configuration, and the form submission process just writes it in a local XML and tells the admin to open a console and run a script as root to finish the process. But even with this solution I guess we should need something to detect at runtime (which should be cross distribution) if some package is installed (which also checks the version). I guess there's already some of that capabilities used in the bugzilla's script checksetup.pl, so I would reuse them. However, in case it finds a problem, there's no way for the application to request installation of a package directly to your OS (but I've attended to a PackageKit conference in last Guadec in which I heard something about this possibility in the future!).

Labels: , , , , , , ,


Saturday, May 10, 2008

 

A new community devolopment model?



Long story

(Go to the short story if you're too lazy to read a lot.)

Some time ago I wrote about the usual confusion between the terms "commercial" and "propietary". FLOSS is commercial software because it's not only driven by the generosity of some developers with their spare time. A FLOSS developer can be paid by a software company, either by being employed (the most common case currently) or either by a consultancy/bounty basis. And there are still even open source companies which still indirectly refer to FLOSS as non-commercial when they compare both most popular development models nowadays by saying "open source VS commercial software".

And why the bounty system is not so popular? Well, because:
1) It's very project-driven: bounties are usually published in means very related to the project. This can be considered an advantage because only motivated/interested developers will apply, but sometimes the project is too small, too recent or not very popular, or with a lot of similar projects around.
2) There's no strong system to manage the bounty in respect to requirements, secure payment, trust system between parts, etc.
3) Many people don't advocate for it (or they advocate for a bounty system that works as a task exchange without money intervention: I fix this for you if you fix this for me) because, we know, one of the reasons of the excellence of free software is because developers love what they do without rewards. (But IMHO one of the big downsides is also because there are also important tasks in a project that nobody likes to do. Besides, I think people tend to spend less spare time on free software as their age grows.)

An exception to the 1st item could be bountycounty.org: a site that tries to announce bounties from free software projects. However, it seems to be an initiative that hasn't got much audience (the last bounty is 2 years old), either because the people that offer bounties forget to notify to this system, or, maybe because in the end the bounty development model doesn't work in FLOSS?

Well, I don't think this is the case, because there's a bounty system that is succeeding, and which is also an exception to the (2) item of the above list: Google Summer of Code.

However, GSoC has the following disadvantages to be "complete" for this matter:
a) Only students can apply.
b) All projects happen in the same time-frame and have the same duration (a summer).
c) All bounties are the same for each developer.
d) A concrete company controls all the process (because, it's true, they put the money).

But we need something similar to GSoC (similar in the "It Works" aspect) and that saves these problems and is not a mere "announcement" site like BountyCounty.org.

Some initiatives have appeared that tried to solve these situation: BountySource.com and SourceForge.net marketplace. The common problem to both is that they try to solve it by attracting the developers to host their projects, so this causes big and mature projects not to apply (because they have currently good hosting solutions, or are self-hosted, like Mozilla projects for instance).

One of the ideas is to implement a bounty system in our bug tracking system software, like Bugzilla. If I had time and liked Perl more, I would try to contribute something for it. Maybe we're in the chicken-egg problem here: we need a bounty system for that task.

Surprisingly, there's already a general purpose web-based service for this task: RentACoder.com. But I haven't seen any free software projects using it, because it seems very focused on propietary developments.

And then it happened: Some weeks ago a new FLOSS-oriented service was born: FOSS Factory. I wanted to start using it by publishing some mini-bounties (which hopefully would grow if other people are interested, similarly to voting systems in Bug Tracking software), but I got disappointed when even the project creation had a cost. But yesterday I received this e-mail:


Andres G. Aragoneses,

Thanks so much for your interest in FOSS Factory! As one of our early adopters, I wanted to keep you in the loop on two very important developments.

First, in response to user feedback, we've removed all costs for creating FOSS Factory projects! Instead, we now charge a 5% transaction fee on payouts. This aligns our interests with yours by ensuring that we will only make money if your projects succeed. It also enables developers to post their own projects without having to spend money.

Second, we recently released our website source code under a FOSS license. You can now download the code from http://www.fossfactory.org/get-source.php. Our primary reason for doing this was so that we could take advantage of our own system to help improve the site. In case you're interested, we've already posted a few bounties for improvements that we haven't had time to implement ourselves: http://www.fossfactory.org/project.php?p=p30&tab=subprojects. Please feel free to participate.

If you have any questions or concerns, please either reply to this message, or email me directly at jjgignac {at} fossfactory {dot} org. Your feedback is very important to us!

Sincerely,

John-Paul Gignac
President and Founder
FOSS Factory Inc.


Unfortunately, there's a 5% transaction charge for each bounty, but hey, we need to support their service! Also, the software is PHP based, so I won't likely spend time on improving it (you know, I already fled from PHP and Perl some years ago ;) ).

But I like the initiative and I'll start to publish the bugs/features I consider interesting to have, but have no time/interest to hack on. Here are the first ones (take in account that, if every voter of the bug payed 10$, the bounty would be enough attractive for a developer I guess, because they are not very complicated):

- Thunderbird/Seamonkey feature Auto-watch threads you've posted to (21 votes)
- Thunderbird/Seamonkey regression Allow edit of unsent message (Unsent folder messages should open to a compose window when double click) (26 votes)
- Bugzilla's feature (or fix for highly confusing workflow for newcomers) Move all bug activity onto main bug screen (17 votes)
- Banshee's feature (currently handled by an outdated addin AFAIK) Banshee needs a way to cleanup (remove stale tracks) (reporter+4CC; no voting system in BGO)
- Banshee's feature (patch proposed but I guess someone should make it apply to trunk) [Patch] Automatically scan music folders for new songs (reporter+6CC; no voting system in BGO)
- Gnome's bug (someone wrote a patch but not sure if it will finally make it for 2.24...) The ``Replace File'' dialog should display the two file sizes, times, etc. (reporter+23CC; no voting system in BGO)
- Monsoon's crazy feature (maybe implies the creation of a new Gtk widget) When the option "Minimize to notification area on close" is not enabled, we should have a new widget on the title bar for that action (just me)
- Real fix for Mono's issue (because we already have a workaround) System.Windows.Forms dependency on GTK makes code to crash if it uses ATK# and GTK_MODULES contains 'atk-bridge'

The last of the issues affected our project until we found a workaround overriding environment variables. If we reach our milestones properly and nobody has fixed it at that time, we could have a try! Now we still have tons of work which Calvin and the team have perfectly outlined. Unfortunately I haven't helped in this doc effort because I was busy debugging the issues I mentioned in my last post, which turned out to be an invalid bug (but at least gave me an idea for a Gendarme Rule) and a GAPI parser bug that Mike fixed) and because on thursday afternoon I was affected by some small rock ;) and probably was the cause of me trying to debug something I didn't correctly updated on Friday (and maybe because of our dumb deployment methodology that Mike has already blamed). Well, I'll talk about this in a later entry...

Short story

Maybe this day will be remembered in the Free Software community as the day in which a first software draft is presented in order to fill some awesome ideas from devs like Nat Friedman about a general-purpose bounty system:

FOSS Factory


Especially interesing is their reasonings for its creation.

Update 12-AUG-2009: Another interesting service I found (while reading the comments of this blog entry) is COfundOS.org

Update 10-MAY-2010: Wow, it seems that a new project was born, which is getting a lot of press and support, to fund projects (but any kind of projects, not only software). It's called Kickstart and it's key feature is that people can pledge for a project but if it doesn't reach the amount required, the people are never charged. I wonder if there should be an option to have projects not have a deadline (more suitable to bugs in bugzillas ;) ). And after reading the FAQ I still cannot figure out how they judge if a project was successfull...

Update 16-SEP-2010: Over the last months I've been still thinking about all this and wondering why the FossFactory project didn't really see much adoption. Other initiatives such as Kickstart have had some success (for example the Diaspora is an example of a software project that just released something thanks to this kind of funding) but it doesn't fit very well to how small unit-of-progress would be rewarded (i.e. small bugs in bug tracking systems as opposed to whole projects) so I guess there's still some hope in micro-payment systems for this.

And indeed there is. It turns out that I joined some months ago a new company that has an internal system to reward in this way (all is explained here -- the Love Machine), and even our CEO went away some months to develop this sole idea as a separate company. Now, the way he decided to pursue it is very interesting: develop a workflow system of little rewards that companies can adopt with their employees (or with their "contractors", because with this workflow they actually don't need to have fixed salaries... --which may be good or bad, and is subject for another discussion).

I don't know much about the success of that project actually. But what I know now is that a new service around the same idea was recently born is really having a lot of adoption, because it's actually not a product that can be deployed in a company, but just a product that is deployed by a company which hosts the service, and then anyone can send or receive micro-payments about anything so it's not a service from a company to a company but from a company to an end-user. And the real good idea behind this is that their micro-payment system makes them be the intermediary between you and the grant-receivers you want to donate to, every month. You don't ever need again to pay N subscriptions to donate to N causes/organizations you like, you just subscribe to them, and then every month (actually everyday) you decide where your money goes too.

Didn't I explain it correctly? Well, go to see the video which is more than a thousand words and more than a million images: FLATTR.

Update 18-FEB-2013: Lots of initiatives popping up now in regards to this, so just a simple update to list some of them:

Labels: , , , , , ,


Tuesday, May 06, 2008

 

Now Gnash & SWFdec are to Flash what Mono is to .NET

And we have to thank the cool Adobe's Open Screen Project for this. Why is this positive (extracted originally from here)?

1) Projects that seek to implement this standard (like Gnash), won't have to do reverse engineering anymore (unless the spec is not enough for some things, or the official Adobe software contradicts the specs because of bugs/typos).

2) These projects will provide implementations for architectures that are not supported by the official Adobe propietary software.

3) The implementations will no longer be considered risky because of future patents or intellectual property violations.

But, BEWARE:

a) this doesn't mean that Flash is now free/open source. This only means that projects like Gnash are analogous as Mono right now: they are open source projects that follow a standard published by a company with an open spec.

b) this doesn't mean that any flash content is patent-free either, because you can still embed proprietary formats inside it like MP3.

What I'll do now is start supporting Gnash, firstly by testing it and reporting any bugs I find. Fortunately I have some packages ready for OpenSUSE!

This news is positive, of course, but now let me give my technical opinion of this technology:

- The programming languages you can use with it are very few (some months ago I think the only one was ActionScript, which has the majority of limitations of JavaScript) and still today AFAIK there's no statically typed language you can use.
- AFAIK it's not accessible (and I mean for disabled people and for automation technologies like search-engine-bots).

However, with Moonlight, you already know that you can use C# with it so the first of these disadvantages doesn't affect it. And in respect to the last item, well, the second phase of my project in Novell is bring accessibility support to it so this item will be hopefully solved soon.

Will this mean the end of the Flash monopoly? Will this force Adobe to open its software too?

BTW, is Moonlight/Silverlight one of the reasons for publishing Flash specs freely? All I can see is that in Adobe they are start to changing their minds quickly. One of the most important facts of this is the liberation of the Tamarin project, which has supposed a big step forward in the Mozilla community (FYI, the Mono VM was also a candidate for the Tamarin current job, but unfortunately wasn't considered in the end).

Well, and how's the progress of the first phase of the A11Y project? We're progressing slowly, but hopefully cooking the base for the ton of work we already lack. Many issues are because we needed to complete Atk#, and other ones are appearing which may be related with the runtime (hopefully not, but here they are if you want to have a look: 386802, 387221). I have to thank Mike Kestner for all his help in this side (thanks to him I'm learning a lot about bindings, and about how delicate :) are the glib/gtk/atk bindings in particular; I love when someone is so meticulous for maintaining a project!), and Sandy for all the help on the bridge (which recently got a nice refactoring, but I already got some additional ideas I need to share...). Mike Gorse seems to progress a lot (and now there will be cooperation with CodeThink as well on the CORBA->DBUS migration!), and Mario is starting with us these days, welcome Mario! Unfortunately I don't deal too much with the rest of the team (Brian, Calen, Neville, Ray) but they seem very busy too all the time!

Update 23-DEC-2008: I have tested Gnash on OpenSUSE 11.1 and the Firefox plugin doesn't work with YouTube :( However, according to the comments of this blog post, SWFdec is a much better alternative (so I have changed the title of this entry).

Labels: , , , , , ,


Monday, October 29, 2007

 

¿Por qué aún no me he pasado a los DVCS?

Antes era por vagancia de probar algo nuevo, pero ahora tengo argumentos :D. Además, suficiente que ya he conseguido cambiar el chip de MS Source-Safe a Subversion de bastante gente, como para ahora ir cambiándolo de nuevo. Subversion promete mucho en sus próximas versiones, sobre todo porque promete algo del estilo "lo mejor de los dos mundos", el eterno concepto. Un repositorio centralizado pero con funcionalidades de los repositorios distribuidos.

No soy del grupo del 80% del que se habla en el artículo que he enlazado, pero convivo con muchos compañeros que sí lo son, y por tanto considero de crucial importancia la simplicidad, la compatibilidad con Windows, y la disponibilidad de una GUI (en este caso me inclino ciertamente por el 80%, o no conquistaremos el escritorio en la vida).

Y para terminar el artículo, ejemplos. Proyectos importantes como Mono, KDE y SourceForge.NET se pasaron de CVS a Subversion, y ahí se han quedado. Mozilla sigue con CVS pero van a cambiar a Mercurial (DVCS), a pesar de lo pesado que he sido ;)

Actualización 31-OCT-2007: Al final me he leído todos los comentarios de la entrada y la verdad he encontrado algunos brillantes, hasta el punto de que quizás me hayan convencido de que sí algún día tendría que probar los DVCS, además de seguir muy de cerca al rey de los CVCS: Subversion.

Actualización 02-OCT-2007: Acerca de la conversión VSS->SVN que he mencionado, me gustaría poner un enlace a una historia con la que me siento muy identificado.

Labels: , , , ,


Monday, October 30, 2006

 

Firefox 2.0 e Internet Explorer 7.0

Mucho se ha hablado ya en internet sobre estas dos nuevas versiones de los navegadores más usados. Yo no voy a dar más el coñazo contando lo mismo, pero sí voy a dar mi opinión sobre ello.

En primer lugar, me parece genial que Microsoft se haya puesto las pilas y haya decidido mejorar un software que, a pesar de su monopolio y su uso masivo, llevaba más de 5 años sin actualizarse, provocando así un estancamiento brutal en lo que a tecnologías web se refiere, pues prácticamente el 100% de los desarrolladores web tenían que amoldarse a este viejo navegador, el cual sigue teniendo muchos fallos e incompatibilidades con los estándares de la industria. Han arreglado problemas con la visualización de PNGs y ciertos bugs de CSS, pero aún les queda muchísimo por recorrer, sobre todo en temas de JavaScript (EcmaScript) y la API de DOM.

¿Los bugs que se han encontrado? Me parece una ridiculez pelearse por eso o basarse en ellos para argumentar sobre la calidad de uno u otro navegador. Lo que importa es la gravedad de cada invulnerabilidad y el tiempo de respuesta en su corrección, y he de confesar que, pese a la mayoría de las declaraciones de personas relacionadas con Mozilla sobre el de Firefox, un bug que permite a un desarrollador web colgar el navegador del visitante o volverlo inusable me parece bastante grave (¿quizás ahora no tanto gracias al restaurador de sesiones? ¿o acaso la restauración de la sesión implica la recarga de la página que provoca el bug, invalidando este workaround?). Además, lleva bastante tiempo sin arreglarse el problema de seguridad más simple del mundo (bug): poner un alert("hola") bajo un bucle infinito en una página. Como las alertas de JavaScript son modales y no son locales a cada pestaña sino que roban el foco de la pestaña actual, y la ejecución de JavaScript no se puede detener, esto se convierte en un bug que representa el mismo problema que el bug anteriormente mencionado y más polemizado: un desarrollador web puede inutilizar la navegación de un visitante.

Las cosas positivas que veo de todo esto: la gran cuota de uso que están teniendo los navegadores alternativos está provocando que los desarrolladores web en general se preocupen más por los estándares, lo que hace que se pierdan menos usuarios por la falsa y típica sensación de que los navegadores basados en Gecko no son capaces de abrir todas las páginas. Y esto mismo ha provocado que Microsoft tenga por primera vez que darse cuenta de que tiene competencia y a movilizarse, lo que como consecuencia tendrá una mejor calidad de vida (profesional) de los desarrolladores web y un aumento en la innovación en el campo de las tecnologías web (¿veremos por fin la publicación oficial de CSSv3?). Otra cosa positiva es el apoyo que veo que le dan algunos medios a Firefox: por ejemplo Informativos Telecinco o 20minutos (INCISO: atención a la última palabra de la URL del enlace que acabo de poner, no le veo ningún sentido, la verdad), el único periódico que conozco que tiene licencia Creative Commons (copyleft) en sus contenidos, lo que creo que influyó bastante para que en NAVE decidieramos que esta vez el canal RSS incluido por omisión en el navegador apuntara a esta fantástica fuente de noticias.

En fin, para despedirme, voy a dar un regalito a los usuarios de SUSE: Mozilla BuildService Repository.

Labels: , , ,


Wednesday, July 26, 2006

 

Trabajando con "workflows" (válgame la redundancia)

Parece que los programas de workflow están de moda. Sobre todo los basados en web, que son muy fáciles de instalar (para el usuario, que no de administrar para el sysadmin) pues sólo se necesita un navegador.

En realidad, ¿qué es un workflow? Es un concepto un poco "cajón de sastre" pero básicamente es un software que te permite archivar, monitorizar, en general ayudarte a gestionar las tareas en un entorno de trabajo. Hay workflows más generales (como eGroupWare) y otros más específicos (como por ejemplo Bugzilla, que se centra en la gestión de bugs [defectos] en el software).

La verdad es que yo soy un enamorado de Bugzilla y siempre he pensado que se podría usar como workflow "general" a falta de alguna que otra funcionalidad, como wikis, calendarios con timelines/roadmaps, etc. Porque yo creo que es el software de gestión de incidencias más maduro y completo que existe.

¿Y por qué ahora he utilizado la palabra incidencia en lugar de defecto? Pues porque hay una interesante polémica desde hace bastante, en torno a este software, que consiste en que un cierto grupo numeroso de personas abogan porque esta herramienta gestione no sólo defectos o petición de nuevas funcionalidades (enhancements) sino también simples y llanas "tareas". Luego existen otros dos grupos en contra de esto: los primeros se escudan en que Bugzilla nació para ser un software de seguimiento de defectos del software, y no más, y luego hay otros que aseguran que un "bug" también puede ser válido como acepción general de una tarea.

Yo a estos últimos les preguntaría ¿la tarea de, por ejemplo, configurar un apache, se podría considerar un bug? A mí me suena un poco raro... Pero no me voy a casar con nadie, así que yo he encontrado mi solución particular, jugando con los "value fields" de Bugzilla, ya que originalmente contienen:

Gravedad/Severity: blocker, critical, major, normal, minor, trivial, enhancement
Prioridad/Priority: P1, P2, P3, P4, P5, P6

Si nos fijamos, el campo de prioridad es tan poco descriptivo que ni siquiera sabemos si P1 es el más o el menos prioritario; y el segundo es tan ambiguo que parece que en sus valores se están mezclando prioridad, gravedad, complejidad, y tipo de incidencia. Así que yo he optado por usar los valores siguientes

Severity (gravedad): critical defect, major defect, normal defect, slight defect, improvement, new feature, task.
Priority (prioridad): undecided, showstopper, urgent, normal, interesting, desirable


Con esto yo creo que resolvemos el problema de la ambigüedad de la gravedad y a la vez tenemos un workaround para el bug #88177 ;)

Para cubrir las necesidades de workflow que no cubre este "bugzilla parcheado" podemos recurrir a eGroupware o derivados. Sin embargo, puesto que soy un ex-programador PHP, en el sentido en el que cuando me cambio de equipo ya no puedo ni acordarme de lo antiguo, pues siempre me atraerán más los proyectos que se casen con una arquitectura de desarrollo más decente. Es el caso del recién nacido NProject el cual usa el eficiente CastleProject (que usa por debajo MonoRail, ActiveRecord + NHibernate, etc.) el cual es un framework que es el resultado de un port de Ruby on Rails a C#. Parece que en cuestión de frameworks web MVC, éste junto a Maverick.NET y Spring.NET son los más populares.

Otros podrían decirme: "¡pues Bugzilla está programado en Perl, ¿qué me dices de eso?" En cuyo caso respondería: ojalá tuviera tiempo de emprender mi propio proyecto "NBugzilla" o "MonoBugz" para conseguir, no sólo una herramienta divertida de usar, sino divertida de programar y extender. Y es que podríamos hacer uso de una arquitectura bastante apetecible en la que manejar casi cualquier base de datos gracias a NHibernate (al contrario que el Bugzilla actual que sólo soporta MySQL y PosgreSQL), o bien una base de objetos como DB4O, o bien soporte configurable para ambas cosas, etc. Es un proyecto que propuse en el GoogleSoC pero que evidentemente distaba mucho de ser aceptado :)

Volviendo un poco desde las ramas, me gustaría comentar mis andanzas a la hora de instalar este workflow que me gusta tanto: la primera vez lo instalé desde las fuentes en una distro Mandriva, la segunda con un RPM automático (aunque al final no tan automático, ¡oye!) en otra versión mejor de Mandriva, y esta tercera ha sido en una Ubuntu, con los siguientes procesos prueba-error (es una pena que OpenSUSE no incluya un paquete para Bugzilla):

  1. Instalación del paquete del repositorio universe, versión 2.20, con mucho miedo (las cosas no oficiales, es lo que tiene).
  2. Problemas de configuración.
  3. Problemas con el envío de correo.
  4. Desinstalación de sendmail e instalación de postfix.
  5. Errores de corrupción de tablas MySQL.
  6. Reinstalación desde cero.
  7. Problema con los caracteres internacionales (tildes, eñes, ...) en el envío de correo; al parecer resueltos por la versión siguiente (v. 2.22) gracias a UTF-8.
  8. No existe la versión 2.22 en Ubuntu Dapper.
  9. No parece que estén disponibles todavía los paquetes de Ubuntu inestable.
  10. Localización del paquete de Debian Sid (inestable) con la versión 2.22.
  11. Desinstalación y purgado de lo antiguo.
  12. Instalación del paquete de Debian en Ubuntu.
  13. Problemas de configuración no resueltos.
  14. Tiro la toalla e instalo el programa desde fuentes.
  15. Versión obsoleta del módulo estable de CPAN llamado Mail::Mailer.
  16. No hay versión inestable Debian/Ubuntu del mencionado módulo.
  17. Instalación manual del paquete por CPAN.
  18. Configuración correcta.
  19. Todo funcionando correctamente.

Sólo tengo clavada una pequeña espinita (al parecer asignada para su implementación en la 2.24).

Me ha gustado esta versión: la configuración general del programa (malamente llamada "Parameters") ahora está dividida en secciones por temas; existe opción de editar automáticamente los "Field values" de los que ya os he hablado, sin la antigua necesidad de recurrir a un fichero de texto y especificarlos al inicio para luego ser inmutables.

Actualización 03-SEP-2006: Parece ser que el concepto de Workflow es algo más subjetivo y diluido como para asociarlo a este tipo de gestores de incidencias. Parece que hay gente que lo atribuye más a programas de gestión de diagramas de flujo (los típicos que dibujamos los informáticos antes de describir un algoritmo), o incluso otros van más por el lado ERP, y un ejemplo concreto es el NetBPM, al parecer hecho con y usado por el proyecto Mono, que tiende más a la gestión al estilo Microsoft Project, en el que podemos incluso gestionar peticiones de vacaciones de los empleados (una demo aquí).

Actualización 17-NOV-2006: También me gusta más renombrar el estado ASSIGNED a INPROGRESS, lo que se puede hacer editando el fichero /var/www/bugzilla/template/en/default/global/field-descs.none.tmpl a partir de la versión 2.20.

Actualización 2-FEB-2006: Resulta que cambiando el valor a INPROGRESS en el punto en el que he mencionado antes, sólo lo cambia para la intefaz gráfica pero el valor lo sigue poniendo como ASSIGNED en los emails enviados, así que voy a investigar como se hace el cambio bien. Otra cosa que echo en falta es un campo nuevo para la "complejidad de la solución estimada", que bien podría dividirse en dos: un campo con valor enumerado, y otro con una estimación de tiempo de resolución de la incidencia.

Actualización 20-MAY-2006: Vaya, viendo esta página sobre Bugzilla puedo comprobar que se empieza a imponer el sentido común: y es que usar Perl para una herramienta tan grande empieza a verse como un handicap, y se están proponiendo alternativas para reescribirlo desde cero. Como no, he colocado mis propuestas en la página de discusión, máxime al ver que no existía una sección de Mono y sólo un párrafo hablando de C#. Si Mono no se lleva el gato al agua (que parece ser lo más seguro, dado el poco apoyo que tiene), espero que al menos gane Java.

Actualización 04-NOV-2007: Otra característica interesante de bugzilla para poderle cambiar la cara y que se adapte más a una herramienta de tipo genérico de ticketing o workflow, es la capacidad de cambiar la palabra "bug" por otra distinta, como "issue" o "ticket". Aquí más información.

Actualización 13-MAY-2009: Resulta que el tema de que las prioridades predeterminadas no son entendibles y el bug de que Enhancement sea un valor del campo "Severity" tienen sus correspondientes bugs abiertos!:
- Bug classification field: este bug tiene nada más y nada menos que 10 años de edad.
- Default Priority values are unclear: ya he aportado mi sugerencia aquí :)

Labels: , , , , ,


Wednesday, February 22, 2006

 

SAML, SSO, FOSDEM

Bueno, pues acabo de llegar de unas conferencias en la UEM, patrocinadas por Hazent Systems, que han sido muy interesantes. Bueno, a la primera he llegado tarde, la segunda no me ha gustado demasiado (la tecnología VoIP no es una cosa que me entusiasme, de momento) pero la tercera ha estado bastante bien, porque desconocía que hubiera un equivalente en el software libre a la tecnología Passport de Microsoft (que se engloba como una técnica de S.S.O.: Single Sign-On), y menos que estuviera tan evolucionada como al parecer ocurre, ya que incluso hay estándares que ya van por la version 2.0, como SAML, promocionados por la iniciativa Oasis (los mismos que especificaron el estándar OpenDocument usado por OpenOffice).

La verdad es que aún no he tenido ocasión de idear la arquitectura de una solución web que permitiese el registro de usuarios (sí he tenido que mantener muchas ya desarrolladas en el pasado, y también he utilizado autenticación de usuarios en web, pero a modo de BackOffice), pero si lo hago a partir de ahora, utilizaré Liberty (Liberty Alliance), ya que es el Identity Provider por excelencia que actualmente implementa estas tecnologías.

Aprovechando mi hambre de conferencias/charlas, y aprovechando también, válgame la redundancia, que la Fundación Mozilla ha decidido financiarme el viaje a Bruselas, al igual que a (casi) todos los colaboradores/localizadores europeos, me pasaré por el FOSDEM este fin de semana. Promete ser super-interesante, sobre todo porque tendré la oportunidad de refrescar mi inglés, porque estaré de nuevo con la gente de NAVE, y porque seguro conoceré otra gente muy interesante (de Mozilla/Mozilla-Europe, de Gnome, de Softcatalá... ¡incluso de Mono!, pues me he enterado por Monologue que el creador de Beagle va a estar allí).

Actualización sobre Single-Sign-On [30-AGO-2006]: Parece que Sun ha publicado un framework basado en esta tecnología, llamado OpenSSO, bajo una licencia semi-libre.

Labels: , , , ,


Sunday, January 15, 2006

 

Thunderbird 1.5

Bueno, pues la versión 1.5 ya salió hace unos días. La tenemos disponible en español desde la propia web de Mozilla.com, gracias al trabajo de nuestro proyecto NAVE, y gracias a que ahora la Fundación Mozilla dispone de las traducciones en su propio CVS y de esta manera los productos traducidos se generan automáticamente y al mismo tiempo que los originales en inglés.

Como consecuencia de este nuevo método de traducción, ya es menos engorroso el proceso de tener nuestros productos Mozilla traducidos a nuestro idioma. Ya no tenemos que instalar un XPI, los cuales en ocasiones dan problemas por cuestiones de permisos. El mayor ejemplo de ello es la distribución OpenSUSE/SUSE, para la que aún no se habían publicado nunca paquetes para las traducciones de Thunderbird. Ahora tenemos listos unos RPM en su FTP para estar a la última, Thunderbird 1.5 en SUSE 10.0 en nuestro idioma.

Después de instalarlos me he dado cuenta de que se incluye por omisión en el paquete la extensión OpenPGP de Enigmail. Lo malo es que viene en inglés. Seguramente esto se deberá a que las traducciones de Enigmail aún no están en el CVS (la fundación va poquito a poco...), al igual que ocurre con el Inspector DOM y demás. Pero bueno, siempre se puede seguir instalando con los XPI's de NAVE, y está bien que incluyan este tipo de cosas "de serie", para que la gente vaya trasteando con el cifrado de sus correos.

Una de las ventajas mayores que le veo a esta versión de Thunderbird es la posibilidad de borrar los adjuntos de los correos, para así ahorrar espacio en disco que de otra manera se desperdiciaría con contenido que normalmente ya hemos guardado en otro lugar. Además, al eliminar el adjunto se deja una nota de que estuvo ahí e incluso podemos dejar un enlace a la ubicación donde guardemos el fichero, con la opción "Separar".

Labels: , ,


Monday, December 05, 2005

 

AMUSE ya está en el SVN de Berlios

Tras unas semanas después de abrir el proyecto AMUSE en Berlios, me he animamdo a subir al repositorio de Subversion (SVN) la primera versión.

También me he animado a desarrollar un poco más en detalle lo que significa y pretende este pequeño proyecto:

Inspirado en todos los inconvenientes que le he encontrado al lenguaje JavaScript para el desarrollo web en el cliente, he creado este proyecto GPL, destinado a hacer más llevadero el desarrollo con este lenguaje.

Las siglas AMUSE significan: Ajax-based Modular Unobstrusive System for Ecmascript. Lo que se puede deducir de esto es que AMUSE es una especie de framework hecho en y para javascript (ecmascript) con el objetivo de construir un modelo consistente de desarrollo de paquetes javascript, en el que se persigue la modularización de código y separación en capas, el uso de eventos no intrusivos, y un sistema de dependencias entre paquetes.

Según mi visión (la cual está aplicada en el framework), los paquetes los dividiremos en dos tipos: librerías y módulos. Los primeros, las librerías, básicamente proporcionarán una nueva API, una serie de funciones y/o objetos de los que podrá hacer uso el programador de JavaScript. Las librerías podrán depender de otras librerías, sobre las que apoyarse para implementar su propia API, pero nunca de módulos. Los módulos podrán definir funciones y/o objetos, y podrán depender de librerías, y al invocarlos podrán incorporar funcionalidades y procesos al documento web en el que se adjuntan (al contrario que las librerías, que sólo aportan una interfaz, en lugar de automáticamente añadir funcionalidad).

Es difícil que se me entienda si no pongo un ejemplo: Veamos, normalmente los paquetes JavaScript que se pueden encontrar en internet y que son de libre uso, para utilizarlos debemos referenciarlos con una etiqueta <script> en nuestra web, y luego normalmente adjuntamos invocaciones a sus funciones en los eventos de nuestros controles web. Por ejemplo, imaginemos que tenemos un sistema para crear enlaces "mailto" para evitar el spam. Normalmente haríamos algo así:

<a onclick="envia_mail('pepito','gmail.com');">pepito arroba gmail punto com</a>

Sin embargo, si desarrollamos un módulo teniendo en mente el sistema modular de AMUSE y el estilo de código que con éste se propugna, podríamos hacer lo siguiente:

<span class="email">pepito<img href="arroba.gif" alt="@" />gmail.com</span>

Luego, en el <head> de la página, referenciaríamos a dos ficheros javascript externos:

<script src="mi_ruta/amuse.js"></script>
<script src="js/mi_pag.js"></script>

El fichero "amuse.js" es el que implementa el interfaz de AMUSE. En el fichero mi_pag.js podríamos introducir lo siguiente:

RequireOnce("EmailAntiSpam.js");

De esta manera estaríamos llamando al módulo EmailAntiSpam, el cual, si miramos en su implementación interna haría cosas como:

//apoyarse en una librería de JavaScript agnóstico
RequireOnce("CrossBrowser.js");

function AddLinksToEmailSpans() {
//esta función buscaría todos los nodos 'span' que tuvieran
//la palabra "email" en su clase y les adjuntaría un nuevo
//comportamiento para su evento onclick, de manera que
//el visitante pudiera obtener un enlace "mailto:" generado
//automáticamente con código en el lado del cliente, con
//lo que evitamos el SPAM generado por los robots de búsqueda
//de direcciones de email
}

//adjuntar la función de conversión de nodos span al 'onload'
//de la página
CrossBrowser.AttachEventListener(window, "load", AddLinksToEmailSpans);


De esta manera, el usuario de nuestro nuevo módulo, denominado "EmailAntiSpam", sólo tendría que hacer una llamada RequireOnce a nuestro módulo, adjudicar la clase correspondiente a sus nodos span y olvidarse de escribir más código javascript.

Además, evitamos el tener que escribir etiquetas <script> por cada funcionalidad que queramos añadir. De esta manera, el propio código JavaScript puede llamar a otros ficheros javascript externos. Si nos fijamos también, los módulos deben adjudicar eventos a elementos de manera no intrusiva, es decir, que los comportamientos se añaden desde el propio código javascript, en lugar de tener que escribir invocaciones y eventos en el marcado HTML/XHTML.

Este módulo EmailAntiSpam en realidad aún no está implementado, pero cualquiera puede hacerlo con un poco de tiempo. Con AMUSE también distribuyo librerías y módulos de ejemplo, entre las cuales se unirá nuestro módulo EmailAntiSpam en cuanto lo tenga desarrollado (o bien si lo desarrolla antes un voluntario, pues todo esto es software GPL).

Voy a poner una pequeña descripción de estos añadidos que aporto con AMUSE:

Librerías:

Módulos:

Como véis, algunos son muy sencillos y tontos, pero otros yo creo que muy útiles. Sobre todo el módulo PreContent.js que en mi opinión es de obligado uso si queremos resolver el problema de usar JavaScript no intrusivo (es decir, que los controles de nuestra página adquieran sus comportamientos sólo cuando la página se cargue por completo) cuando la velocidad de conexión de nuestro visitante es algo lenta y existe el peligro de que use un formulario antes de que haya llegado la página entera.

KNOWN ISSUES:

TO-DO:

Labels: , , ,


Tuesday, November 29, 2005

 

Mozilla Firefox 1.5 ya está en la calle

Nos lo cuenta stripTM antes que nadie en BarraPunto.

Bueno, pues tras mucho testeo, mucho commit de última hora y mucho bug cosmético pendiente de aplicar para una posible versión 1.5.0.1, ¡Firefox ya está en la calle! Y además en español desde la portada de Mozilla Corporation desde su primer día de lanzamiento (es-ES).

Tengo que agradecer a todos los miembros de NAVE por su apoyo en hacerme más llevadera mi incorporación al equipo para hacerme cargo del puesto de owner de la traducción/regionalización de la versión 1.5 de Firefox. En concreto mencionaré a Ricardo Palomares, Óscar Manuel Gómez Senovilla y Fernando García (stripTM).

Hay que hacer notar que el trabajo de "traductor" no está tan en buena estima como la de desarrollador, pero en este caso concreto debería estarlo porque, para nuestra desgracia, aún se requieren muchos conocimientos de informática y programación para encargarse de una cosa como ésta. Este proyecto lo debería poder llevar una persona que, por ejemplo, sólo se dedicase a traducir (y tuviera especial aptitud para ello, claro) sin necesidad de saber informática, pero para ello habría que desarrollar una aplicación consistente, sencilla, flexible y extensible para mantener las traducciones de los productos Mozilla. En ello pensamos continuamente los integrantes de NAVE, ya que la mayoría somos desarrolladores en otras áreas (como yo, que soy un entusiasta de Mono).

Labels: , ,


Sunday, May 29, 2005

 

Acceso al CVS de mozilla

Bien, pues después de una larga espera entre comentarios y candidatos, yo he sido la persona propuesta por NAVE para ser el "owner" del grupo de traducción al español (de España: es-ES) de los productos de Mozilla. Eso quiere decir que tendré acceso al CVS de Mozilla, y tendré que hacer una labor de coordinación y mantenimiento importante. Espero que la tarea no me quede grande, y pueda sobrellevarla lo mejor posible :) De momento podré delegar en muchas personas (peers) y en gente que me ayudará en lo que necesite. Gracias a todos los miembros de NAVE por su apoyo.

Labels: ,


Thursday, May 26, 2005

 

¡Ya ha salido IE7!

Bueno, pues acaba de salir IE7 pero, para sorpresa del personal, IE7 no es "Micro$oft Internet Exploter 7". Es un programa fantástico, que va por su versión 0.8 alpha, hecho en JavaScript, que sólo ocupa 23KB y que transforma por completo el comportamiento de Internet Explorer 6 para que respete, un poquito más, los estándares. Sólo tendríamos que invocar el script y sus módulos en todas nuestras páginas, para no preocuparnos más de los problemas que tenemos los desarrolladores web para cumplir con los estándares y a la vez permitir la navegación con el peor navegador de la historia. Corrige renderizado de elementos y comportamientos de hojas de estilo, añade características de CSS2 que faltan, e incluso algunas del borrador de CSS3 (un estándar aun no oficial). Yo le pongo la nota de un 10.



La licencia es LGPL así que no hay problema para incluirlo en aplicaciones web cerradas (que es lo que más abunda actualmente). Lo que podríamos hacer los desarrolladores web para ayudar al desarrollo de este programa, es escoger entre alguna de las siguientes opciones:





Nota: He enviado esta historia a BarraPunto, pero la coloco en mi blog por si no saliera publicada.

Labels: , , ,


This page is powered by Blogger. Isn't yours?

Categories

RSS of the category Gnome
RSS of the category Mono
RSS of the category C#
RSS of the category Programming
RSS of the category Mozilla
RSS of the category Web Development
RSS of the category Security
RSS of the category Open Source
RSS of the category Engineering
RSS of the category Misc
RSS of the category Politics

Contact with me:
aaragonesNOSPAMes@gnNOSPAMome.org

Archive
My Photo
Name:
Location: Hong Kong, Hong Kong
Follow me on Twitter