Archive for June of 2007

iPhone, Safari y Google Gears

Steve Jobs ha anunciado hoy, durante el WWDC, lo que será el nuevo SDK para el iPhone: HTML y JavaScript.

Después de la presentación del iPhone se generó mucho FUD sobre el posible desarrollo de aplicaciones de terceros para el nuevo teléfono de Apple. El iPhone perdía atractivo si no se permitía el desarrollo de nuevas aplicaciones. Por ejemplo en All Things Digital:

Is the iPhone’s platform closed? And if it is, will it be open to developers in the future? Jobs says it’s a security issue, but Apple is working to find a way to allow developers to build applications for it. Jobs says he doesn’t want the iPhone to be “one of those phones that crashes a few times a day.” He adds: “We would like to solve this problem and if you could just be a little more patient with us, we’ll do it.”

Apple con el anuncio de hoy evita los dos problemas: por una parte, permite que se desarrollen aplicaciones para el iPhone, incluso señalan que se verán muy lindas en el iPhone gracias a Safari; por otra, consiguen alejarse de los posibles problemas asociados a la creación de una nueva plataforma de desarrollo.

Si a esto añadimos que escogen HTML y JavaScript, dos lenguajes ampliamente conocidos y difundidos que conseguirán acercar a muchos desarrolladores a realizar aplicaciones para su teléfono, podemos decir que Apple sabe en que liga juega.

Pero, porque todo tiene su pero, HTML y JavaScript no son suficiente, se necesita algo más para poder desarrollar aplicaciones medianamente potentes, y aquí es donde debería entrar Google a jugar su partida. Google Gears podría ser el complemento ideal para desarrollar aplicaciones completas para Safari en iPhone.

Actualmente Safari no soporta Gears, o mejor dicho no hay versión de Google Gears para Safari. Pero además Gears tendría que ser instalado en el iPhone como una third party application, que es lo que en primera instancia quería evitar Apple. O los de la manzana tienen todavía un as guardado en la manga, o sería más que interesante que llegasen a un acuerdo con Google para poder integrar Google Gears en su maldito-pero-tan-hermoso teléfono.

Google Reader Gears Search

Updated: a new version corrects some bugs. Please check the new GReader Gears Search Bug Fixed Edition. The download link in this post is for the new version too.

What is Google Reader Gears Search
It’s a Greasemonkey script that provides us a search function under Google Reader, the feed reader from Google, it uses Google Gears. This User Script has been tested in Mozilla Firefox for Ubuntu Linux, Mac OSX y Windows XP.

Google Reader Gears Search

What do I need
You must be using Greasemonkey and Google Gears, and at least you should been using Google Reader in offline mode once.

Does it present any limitations
It only can be used with Google Gears and Greasemonkey compatible web browsers. Furthermore the search results are perform only over the 2000 items stored in the Google Gears database.

What things can be improved
At this moment the search is performed over the same database table used by Google Reader, in this table you can’t use Full-Text Searches, so a simple/poor database query with like is being used. An idea is replicating this table in order it’s possible to perform Full-Text searches. The UI presenting the results could be better and adapted to the Google Reader one. The results should be paginated Just added!.All this features are in my mind, but now I’m out of time, at least until I finish my exams, but I think it isn’t a bad first solution.

How the idea became
The last week I was in the Google Developer Day 2007 at Madrid, and I had the oportunity of chatting with Chris Wetherell, the Google Reader Creator and the one choosed by Google to present the keynote about Gears in Madrid. One of my questions to Chris was about the troubles/options of including a search engine into Google Reader (for each user), Chris answered me at lightspeed explaining the problems associated to this kind of searches.I was a bit slow, maybe beacuase I was between a lot of Googlers, so I only listen to the answer, no more. But during the party (yes, we had a party at Madrid event) the idea became: how hard could be use Gears querying the local SQLite database? Chris, apart of being a good engineer and a great guy, brings my the inspiration to create the Greasemonkey script that query the local database. So Chris, thank you.

Last-minute
While I was writting this post I have been thinking about the possibility of maintaining a database table with all the Google Reader item, and not only the ones that are syncronized with Google Reader. It’s only another idea, but I write this in order to not forget that.

Feedback
You can send me feedback about Google Reader Gears Search through this entry comments and mailing me to: i@rau1.com.

P.S.
Sorry about my english.

Updated: a new version corrects some bugs. Please check the new GReader Gears Search Bug Fixed Edition. The download link in this post is for the new version too.

Download Google Reader Gears Search
v0.100, GPL license.

Actualización: una nueva versión corrige algunos bugs. Por favor comprueba el nuevo GReader Gears Search Bug Fixed Edition. El enlace de descarga en esta entrada apunta a la nueva versión también.

Qué es Google Reader Gears Search
Es un script de Greasemonkey que nos facilita la búsqueda dentro de Google Reader, el lector de feeds de Google, haciendo uso de Google Gears. Este User Script ha sido probado satisfactoriamente en Mozilla Firefox bajo Ubuntu Linux, Mac OSX y Hasefroch XP.

Google Reader Gears Search

Qué necesito
Tienes que tener instalado Greasemonkey y Google Gears, además de haber pasado a modo offline en Google Reader en al menos una ocasión.

Qué limitaciones tiene
Su uso está limitado a los navegadores que soporten Google Gears y la extensión Greasemonkey. Además la búsqueda solamente se realiza sobre los 2.000 items almacenados en la base de datos de Google Gears para Google Reader.

Qué se podría mejorar
Actualmente se utiliza la misma tabla usada por Google Reader para los items, sobre dicha tabla no se pueden realizar búsquedas de tipo Full-Text, por lo que usa una consulta muy básica y muy pobre con el operador like. Una idea es replicar dicha tabla de modo que se puedan hacer consultas de tipo Full-Text. Además se podría adaptar más la presentación de los resultados a la interfaz de Google Reader. También se debería poder hacer una paginación de resultados Ya añadida!.Todas estas mejoras están en mi mente, pero ando un poco justo de tiempo, al menos hasta que acaben los exámenes, pero creo que como primera aproximación no está mal del todo.

Cómo surgió la idea
La semana pasada estuve en el Google Developer Day 2007 de Madrid (este es otro tema sobre el que debería hablar), y tuve la oportunidad de hablar con Chris Wetherell, el creador de Google Reader y el encargado de presentarnos Google Gears en Madrid. Una de mis preguntas a Chris fue sobre la posibilidad/dificultad de incluir un buscador dentro de Google Reader (para cada usuario se supone), no tardó mucho más de un segundo en explicarme los múltiples problemas asociados a este tipo de búsquedas.Yo estaba un poco lento, quizás por encontrarme rodeado de Googlers así que no pude hacer otra cosa que quedarme con su respuesta. Pero durante la fiesta (sí, también hubo fiesta) se me ocurrió que no debía ser muy difícil hacer uso de Google Gears, que el propio Chris había presentado por la tarde, realizando las búsquedas en la base de datos SQLite local. Chris, aparte de ser un genio y un gran tipo, me sirvió de inspiración para crear un script de Greasemonkey que básicamente se dedique a buscar en la base de datos local.

Última hora
Mientras redactaba esta entrada se me ha ocurrido que se podrían mantener en una tabla todos los items, y no sólo los 2.000 que sincroniza actualmente Google Reader. De momento se queda como otra idea más, así no me olvido de ella.

Feedback
Como siempre se aceptan todo tipo de sugerencias y críticas a través de los comentarios de esta entrada o a través de mi dirección de correo: i@rau1.com.

Actualización: una nueva versión corrige algunos bugs. Por favor comprueba el nuevo GReader Gears Search Bug Fixed Edition. El enlace de descarga en esta entrada apunta a la nueva versión también.

Download Google Reader Gears Search
v0.100, licencia GPL.



About Raúl

Raúl Ochoa, a spaniard working for Tuenti in Madrid, Spain. More about me.

Subscribe to the feed

If you want to receive a notification when I update the website, you only have to add the feed to your reader, or submit your email address and I'll let you know.

Twitter

Raúl's Twitter: Non-tweetable RegEx(s) make me cry :'-(. 3 days ago

Categories