tag:blogger.com,1999:blog-88027792024-03-13T04:11:18.253-03:00Felipe's Blog xDEste blog sigue los eventos importantes de mi vida y los que no lo son tanto, además las cosas relacionadas al mundo LinuxFelipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.comBlogger273125tag:blogger.com,1999:blog-8802779.post-18897680148733538372009-02-13T00:00:00.002-03:002009-02-13T00:21:53.910-03:00Awesome window managerWell, let's see, <a href="http://awesome.naquadah.org/">Awesome</a> is a <a href="http://en.wikipedia.org/wiki/Window_Manager">window manager</a>, but not like metacity, openbox or some other traditional window manager, this one is a tiling WM. I'm using it since about the feb 2008, I started using the 2.3 version, it uses a <a href="http://packages.debian.org/libconfuse">libconf</a> based configuration file, the Julien Danjou (the author of awesome) started to develop a version that uses a lua based configuration file, so you can program your configuration file, just like emacs with elisp, With zeus, we started to use the git version (aka the development version), and since then I became a little addicted to the behavior of this WM style, it's just I feel it's the way it makes you be productive, especially when you use a lot of terminals connected to ssh to other machines. But sometimes everything becomes so annoying, because all the graphical applications (like gtk or qt based) are made to float in the screen, so when Awesome force the position and the size of the windows some of them are unusable, for example iceweasel when some popup is opened, or evolution (write a email with awesome it really sucks).<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq_EmwaihbTXP8E1Nn3teB1rCg19xKZvXWj-Zc3UzNWTYwarYz2XGWINkdv1p8rANjZuaDP9H93kV1IXOmUnmFg_vCdYbwHMHTs9UKrkinumllKg81UM0XcMAJqj0lRCsSQiU/s1600-h/shot.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq_EmwaihbTXP8E1Nn3teB1rCg19xKZvXWj-Zc3UzNWTYwarYz2XGWINkdv1p8rANjZuaDP9H93kV1IXOmUnmFg_vCdYbwHMHTs9UKrkinumllKg81UM0XcMAJqj0lRCsSQiU/s400/shot.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5302116674352900258" /></a><br /><br /><br />So now I'm a little complicated, because I'm writing a gtk-based application (with python) and the application will run on windows machine (and developed on linux, so it's multiplatform) so it must look ok in a traditional window manager, do you have some suggestion to use instead of awesome?<br /><br />I want something that if I press a keboard shortcut all the windows in the current desktop are organized automatically, something like expose, but not just a preview, the real window.<br /><br /><br />And finally I want to thank to Julien Danjou for develop Awesome an awesome piece of software show us what you can do when you put a lot of effort.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1qONjcga4JpLoIYXTkziC0B6q7cz07r6gDiSMbz3hYEleR-Jdv9FXaX3nZTEEOB63prjl12AmH224gudTcxeN81ISQpO96GYYnnSPECwnTIgCy1nIonQewHAspPKqg3FqM7I/s1600-h/shot2.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1qONjcga4JpLoIYXTkziC0B6q7cz07r6gDiSMbz3hYEleR-Jdv9FXaX3nZTEEOB63prjl12AmH224gudTcxeN81ISQpO96GYYnnSPECwnTIgCy1nIonQewHAspPKqg3FqM7I/s400/shot2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5302116683639060978" /></a>Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com3tag:blogger.com,1999:blog-8802779.post-62581907471916551162009-01-11T13:16:00.001-03:002009-01-11T13:17:38.019-03:00change console fontPretty cool tip, and the terminus font it's a really nice font, currently it's my default font for unicode-rxvt X-terminal, and now for the console :)<br /><br /><a href="Bastian Venthur: Nice(r) console fonts">http://blog.venthur.de/2009/01/10/nicer-console-fonts/</a>Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-67960478193987229192008-12-27T13:19:00.003-03:002008-12-27T13:26:21.579-03:00git-stashgit-stash is a really cool command, it let you save a work in progress, for example you are developing a new feature in your application, and still your changes are not ready to do a commit, and you must switch of branch (or another option that requires that indexes are up to date), so what can you do?, easy, just use git-stash it will save your current changes and then will revert to the last commit, then you do what ever you need to do, and when you are ready to back to your work simply use git-stash pop (or you can use the man page to other options)<br /><br /><pre><br />freyes@yoda:rascase.git$ git stash list<br />stash@{0}: WIP on rewrite-items: 52cfbe4... [items] registered the new items with gobject<br />freyes@yoda:rascase.git$ git stash pop<br /># On branch rewrite-items<br /># Changed but not updated:<br /># (use "git add <file>..." to update what will be committed)<br />#<br /># modified: rascase/views.py<br /># modified: setup.py<br />#<br />no changes added to commit (use "git add" and/or "git commit -a")<br />Dropped refs/stash@{0} (74b9490b8bf8b22f5b1e687e5c0bc881719f6763)<br /></pre>Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-62835220134293740852008-12-13T12:18:00.004-03:002008-12-13T12:37:51.450-03:00dlink dir-320 with dd-wrtMy old router after two years of work died, so I used this like a excuse to buy a linux compatible, after a few searches I found the <a href="http://www.dlink.com.au/Products.aspx?Sec=1&Sub1=2&Sub2=5&PID=367">dir-320</a>, It's a broadcom based device, that runs <a href="http://www.dd-wrt.com">dd-wrt</a>, and like an extra gift it brings a usb port :D, do you imagine the hundreds of possibilities that opens this simple feature.<br /><br />Well, right, I run a torrent web-based client, a webserver (cherokee rocks, you should give a test), and a lot of things. Still the usb driver is a little buggy, for example my usb key (the old one a kingston data traveler that died mysteriously, and the new one also a kingston) it was not recognized by the kernel, but when I plugged the usb hard drive (it's an ide HD inside a usb enclosure) the kernel detected it, so I installed a few packages.<br /><br />If you are interested in the firmware that I used, well left it in <a href="http://coyote.linuxdiinf.org/dd-wrt.v24-11147_NEWD_mini_usb_ftp.bin">my router</a> :P<br /><br /><b>update:</b> I recently installed <a href="http://www.djangoproject.com">django</a>, damn it, <a href="http://www.nslu2-linux.org/wiki/Optware/Packages?from=Unslung.Packages">optware</a> is so fucking good :D<br /><br />PS: thanks to linuxdiinf for the subdomain.<br />PS2: guys, the linuxdiinf domain expires in march, so we must start a call for donations.Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com6tag:blogger.com,1999:blog-8802779.post-86702430156961788942008-12-04T21:52:00.002-03:002008-12-04T21:54:51.584-03:00Python 3.0Finally is here baby: <a href="http://www.python.org/download/releases/3.0/">Python 3.0</a><br /><br />I will have to start reading the incompatible changes with 2.6 to write the new code in a compatible way with 3.0 and think when to change my old code to make it compatible with this new and shine piece of software.Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-46843165025883499582008-11-21T13:55:00.001-03:002008-11-21T13:57:43.595-03:00Ofertas de TrabajoSe buscan Linuxeros en <a href="http://openfountain.cl">Open Fountain</a><br /><br /><a href="http://openfountain.cl/jobs">Jobs</a>Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-36340656207876713792008-11-01T11:57:00.003-03:002008-11-01T12:09:10.539-03:00Palm should dieI bought a Kingston SD card of 2 GB, and it does not recognize it.<br /><br />So if you are thinking in buy a Palm powered device, you should not do it.Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-90944955167122928072008-10-04T20:24:00.001-04:002008-10-04T20:25:46.691-04:00pedrito y el lobo<a href="http://news.google.cl/nwshp?tab=wn&ned=es_cl&ncl=1252028542&hl=es&topic=t">Otro error de DELL</a>, esto es inconcebible, creo que el sernac debe tomar medidas por publicidad engañosa o algo similar, porque no puede ser que tengan tan mal servicio disponible en su tienda on-lineFelipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-51739637510121143532008-10-04T20:17:00.002-04:002008-10-04T20:22:40.368-04:00History HackerToday I saw the first episode of History Hacker, a so fucking cool program (sponsored by your closest torrent :D), at that episode recreated the inventions of <a href="http://en.wikipedia.org/wiki/Nikola_Tesla">Nikola Tesla</a>, it was a nice coincidence, because our development server is tesla :), if in another episode of the season talk about <a href="http://en.wikipedia.org/wiki/James_Clark_Maxwell">Maxwell</a> I'm gonna shoot in my foot XD<br /><br />BTW, download and watch history hackerFelipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-74577374605541609452008-10-04T12:51:00.003-04:002008-10-04T13:30:09.810-04:00my .emacs filesThis was a nice week, because I was contacted about some of <a href="http://freyes.blogspot.com/search/label/emacs">my emacs posts</a>, she wanted to know which emacs package provide <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYHzG9_X2NBwTQ6Yst2g0-oBy-ZT6QkPyIdqXqV-83CQSypAL1DNbKJ2fLoGquP9pzdJFcg3ZcH1iwn6WdubXA_98hfPNXZFivSnO7CfpZ6U8ApaQq_LhGB-WIGnCsLgsBg4g/s1600-h/shot.png">the buffers at the left of the code</a>, so you can do that with EmacsCodeBrowser, and here is my .emacs file, contains a lot of code snippets grabbed from the web, I tried to put the url from where you cand obtain the dependencies, but probably there are some missing files, also there are some functions and tips that <a href="http://zeus.emacs.cl">zeus</a> provide me when I was starting the trip to learn emacs (a trip that still is far from be finished, especially because nobody has finished, always you can learn new tricks at the emacs-devel list)<br /><br />I hope you enjoy disecting my emacs config :D<br /><br /><h2><a href="http://freyes.linuxdiinf.org/uploads/dotEmacs.html">.emacs</a></h2>Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-45677293287074691552008-09-06T13:26:00.002-04:002008-09-06T13:32:28.555-04:00Spam de vinos, que care raja el mensajeEste va en español para en honor el mes de septiembre y toda esa shit XD (shit == mierda), ahora revisando la carpeta de spam en busca de algún correo que por equivocación haya dado al spam y me encuentro con el mensaje con el siguiente asunto: "LIQUIDACION DE VINOS EXCLUSIVOS !!!", lo cual debo reconocer llamó mi atención, pero me produjo nauseas el pie de pagina que traía, el que pongo a continuación:<br /><br />"Este mensaje se envнa en base al art. 28b de la ley 19.955 que reforma la ley de derechos del consumidor, y los articulos 2 y 4 de la ley 19.628 sobre protecciуn de la vida privada o datos de caracter personal, todo esto en conformidad a los numerales 4 y 12 de la constituciуn politica de CHILE.."<br /><br />ahora lo malditos spammers chilenos tratan de hacer pasar su mensaje como si fuera legalFelipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-90665314148809906402008-08-30T11:44:00.001-04:002008-08-30T11:47:05.123-04:00carrete 20080829Los presentes en la junta de ayer ;)<br /><br /><a href="http://www.flickr.com/photos/freyes/2811478192/" title="Andrea y Ati by freyes, on Flickr"><img src="http://farm4.static.flickr.com/3091/2811478192_d4a458b44d_m.jpg" width="240" height="180" alt="Andrea y Ati" /></a><br /><a href="http://www.flickr.com/photos/freyes/2811478198/" title="JotaPe++ by freyes, on Flickr"><img src="http://farm4.static.flickr.com/3108/2811478198_ce973ce839_m.jpg" width="240" height="180" alt="JotaPe++" /></a><br /><a href="http://www.flickr.com/photos/freyes/2811478200/" title="Naty by freyes, on Flickr"><img src="http://farm4.static.flickr.com/3234/2811478200_839283ca44_m.jpg" width="240" height="180" alt="Naty" /></a>Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-54114088533872552082008-08-16T21:04:00.005-04:002008-08-16T21:46:33.990-04:00How to start with emacs [2]Emacs uses a configuration file that is by default placed in your home directory, the file is called .emacs (I don't know if on win32 systems is also called .emacs). This file contents is elisp code, so for full control of emacs it's imperative learn elisp, but I still didn't learn elisp and I'm an emacs user :), so you can learn elisp while you are looking for snippets of code.<br /><br /><h4>Concepts</h4><br /><br />I will have to explain some concepts that are important to understand why emacs behave in the way that it does.<br /><br />In emacs there are <a href="http://www.emacswiki.org/cgi-bin/wiki/Buffer">buffers</a>, there is the <a href="http://www.emacswiki.org/cgi-bin/wiki/MiniBuffer">minibuffer</a> that is where you type the emacs commands (or elisp interactive functions), and the other buffers could represent an opened file, a pipe, or just a temporary editing space that is not attached to a file, the name of the last type of buffers start and end with *, for example <span style="font-weight:bold;">*scratch*</span><br /><br />Emacs has something called 'modes', it's something like the way that a determined buffer must behave, for example if you are going to open C source code file the c-mode should be loaded, and it will help you in task of develop with the C language. There are 2 kinds of modes, the <a href="http://www.emacswiki.org/cgi-bin/wiki/MajorMode">major</a> and <a href="http://www.emacswiki.org/cgi-bin/wiki/MinorMode">minor</a> modes, one buffer can only have one major mode and zero or more minor modes.<br /><br /><h4>First tweaks</h4><br /><br />Emacs is a software with a <a href="http://en.wikipedia.org/wiki/GNU_Emacs#History">huge history</a> and tradition, so there are some things that for somebody that is formed in the last 10 years in computing terms there some musts that you must have in you emacs config file, like the transient-mark-mode<br /><br />The <a href="http://www.emacswiki.org/cgi-bin/wiki/TransientMarkMode">transient mark mode</a> highlights the selected region of text, by defaults this is disabled so I recommend you enable it with pasting the following in your .emacs<br /><br /><pre>(transient-mark-mode 1)</pre><br /><br />Fill you name and email to let the modes that need that information could use, this is done with the following snippet of code<br /><pre>(setq user-mail-address "homer@simpsons.com")<br />(setq user-full-name "Homer J. Simpsons")</pre><br /><br />If you like to use Ctrl+g to jump to a line number then you should add the following code<br /><br /><pre>(global-set-key [(control g)] 'goto-line)</pre><br /><br />One of the sweetest feature that must have a text editor is syntax highlight, well emacs has this, but disabled by default, with the following code you will have it enabled always<br /><br /><pre>(require 'font-lock)<br />(global-font-lock-mode t)</pre><br /><br />I think that this is enough for this entry, the next entries probably will be more fun to write and read, because i will start talking about the major modes, one mode per entry, probably the next one will be the C mode.Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-76788066774231469482008-08-09T13:04:00.005-04:002008-08-16T21:35:28.738-04:00How to start with emacs [1]First of all, All my tips related to the underlying Operative System are using <a href="http://www.debian.org">GNU/Linux Debian</a>, so if you are using another distribution (or even another OS) you will have to look for the appropriate way to do the task, if you send me how to do it with another OS I will add it to the entry.<br /><br /><h4>What is emacs?</h4><br />Well, emacs doesn't exists, the correct name is GNU Emacs for the series of post, because there is a lot different flavors of emacs, for example <a href="http://www.xemacs.org/">XEmacs</a>, <a href="http://aquamacs.org/">Aquamacs</a>, and others.<br /><br />The GNU Emacs website says:<br /><blockquote>GNU Emacs is an extensible, customizable text editor—and more. At its core is an interpreter for Emacs Lisp, a dialect of the Lisp programming language with extensions to support text editing.</blockquote><br /><br /><h4>What can I do with emacs?</h4><br />It's a text editor, so write text :P, but also:<br /><ul><br /><li>Develop software in a wide range of compute languages, like C, C++, elisp, C#, ruby, python, java, ...</li><br /><li>Mail client</li><br /><li>Chat with your irc folks</li><br /><li>Surf on the web</li><br /><li>And other things that will be discussed in their respectives posts</li><br /></ul><br /><br /><h4>Install GNU Emacs</h4><br /><br />First you must decide witch version of emacs do you want to use?, exists emacs22, which is the current stable release, and also emacs23 (aka emacs-cvs) which is the development version, but currently is in the state of features freeze, so It's pretty stable to me, if you use emacs22 you will not have anti-alias, something that is very nice to the eyes when you spend the day developing, almost all the tips discussed in the series will be neutral, except the related with anti-alias and multi-tty.<br /><br /><h5>Debian</h5><br />To use emacs22 you can just use the debian official archive and execute<br /><pre><br />apt-get install emacs22<br /></pre><br /><br />But if you want to use the emacs cvs there is a <a href="http://emacs.orebokech.com/">repository maintained by Romain Francoise</a> of the package emacs-snapshot which is a binary package of the cvs code (this is the one that I use). To use this repo you must the following to you source.list (to obtain more details visit the <a href="http://emacs.orebokech.com/">webpage of the repo</a>)<br /><pre><br />deb http://emacs.orebokech.com sid main<br />deb-src http://emacs.orebokech.com sid main<br /></pre><br /><br />Then just install the emacs-snapshot package.<br /><br /><br /><span style="font-weight:bold;">On the next entry</span>, I will talk about how is emacs by default and how to change the configuration.Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-2971520323657985652008-08-09T12:48:00.003-04:002008-08-09T12:59:19.106-04:00How to start with emacs [0]Before I could really be productive with <a href="http://www.gnu.org/software/emacs/">emacs</a>, I failed a couple of times, because I knew that emacs were powerful, but the default configuration shows you a simple text editor that look awful, without syntax highlight, without anti-alias, a color schema that really sucks.<br /><br />In GNU/Linux (to not piss off <a href="http://www.stallman.org/" title="Richard Mathew Stallman">rms</a> xD)I was never found a really nice (text) editor, because all the available suck at some point (even emacs sucks sometime, but suck less than the rest :P), so when I met <a href="http://zeus.emacs.cl">zeus</a> lead me in the first steps giving me some <a href="http://en.wikipedia.org/wiki/Emacs_Lisp" title="Emacs Lisp">elisp</a> tips, I could start swimming by myself and improving my emacs configuration file, and even teaching some tips to the mentor :P.<br /><br />So I will start a series of articles of how to start with emacs, especially giving the recipes (elisp code) of how to obtain the desired behavior.Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-31598301298606258412008-07-29T23:01:00.002-04:002008-07-29T23:04:41.664-04:00Installing servicesToday I had a dejavu, I had to use the following command 3 times on different tasks and even on different machines, but for different purposes<br /><pre><br />$ ln -s . foo<br /></pre><br /><br />soft links are really helpful to work-around a strange behavior.Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-91798769488729756502008-07-21T22:54:00.002-04:002008-07-21T23:05:05.991-04:00OpenmokoIs <a href="http://en.wikipedia.org/wiki/Openmoko">Openmoko</a> for the mass market?, well the answer is simple NO, believe me I want to have an opemoko smartphone, but it cost US$500 against the US$200 of the iphone, it has a faaaar from be a great software stack and the lack of eye candy for the mass market and for be an iphone-killer that's a must.<br /><br /><img src="http://www.monochromementality.com/data/phoo/2008_07_22/medium/1216691461_Screenshot-1.png" /> <img src="http://www.monochromementality.com/data/phoo/2008_07_22/medium/Screenshot-14.png" /><br /><br />openmoko has a lot of potential, especially for a linux developer, _we_ need to develop good software with eye-candy.Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com1tag:blogger.com,1999:blog-8802779.post-86595648456418925002008-07-20T12:46:00.002-04:002008-07-20T12:52:37.829-04:00RIP brother in arms.<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmXokvljSu87g9po1qOw0DS0VYfiTHn3SlKd9qyruPKBNj1B0WhOmUJygT-83iBYv6hino9vONlN0Snqa7kZwNGiVmfyFPQeNNdHNO7WZNyYT78G5WSdQBfrxc4-nOBKoawMY/s1600-h/S2020179.JPG"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmXokvljSu87g9po1qOw0DS0VYfiTHn3SlKd9qyruPKBNj1B0WhOmUJygT-83iBYv6hino9vONlN0Snqa7kZwNGiVmfyFPQeNNdHNO7WZNyYT78G5WSdQBfrxc4-nOBKoawMY/s400/S2020179.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5225139969795812306" /></a><br /><br />It's always hard loose a friend, but it's even harder when he is still a young boy, rest in peace raúl (aka darth debian), every body will be there with you sooner or later, wait for us with a shell to hack in the heaven, we always remember you.Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-36948173976243106602008-07-10T17:42:00.001-04:002008-07-10T17:44:01.904-04:00El coyote atrapa al correcaminosGracias youtube, me haz permitido ver el mítico mommento en que <a href="http://www.youtube.com/watch?v=KJJW7EF5aVk">el coyote atrapa al correcaminos</a> :D<br /><br /><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/KJJW7EF5aVk&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/KJJW7EF5aVk&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-3197826537612794852008-07-07T16:53:00.002-04:002008-07-07T17:01:26.965-04:00Just use Pencilif you want to create UI prototypes (web or desktop app) then use the Pencil, but not an analogical one, use the software called <a href="http://www.evolus.vn/Pencil/Home.html">Pencil</a> it's awesome. ... and can run over firefox or like a standalone program (yes, it uses xulrunner)<br /><br /><img src="http://www.evolus.vn/Pencil/Images/Screenshots/Selected-home.jpg" alt="screeenshot of Pencil"/>Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com1tag:blogger.com,1999:blog-8802779.post-4445635154946452832008-07-03T19:52:00.004-04:002008-07-04T13:17:42.817-04:00FayerwayerPara todos los que hemos leido de vez en cuando algún artículo de fayerwayer se ha dado cuenta que los chicos de fayerwayer tienen mucha llegada con las empresas (no tengo idea a que se dedican para ganarse la vida), han ido a expos de nokia, tienen un contrato con paris.cl, les regalan cosas para que sorteen con sus lectores, etc..., por lo tanto cuando sacan críticas a una empresa, ya sean para bien o para mal, me es muy dificil no mirar con desconfianza sus palabras, ya que seamos sinceros, si las empresas te regalonean no vas a querer enrostrarles en su cara que son wnas y que deben hacer X o Y, por lo tanto las palabras de <a href="http://www.fayerwayer.com/2008/07/seamos-justos-dell-se-equivoco-y-errar-es-humano/">Alexander Schek (Mr.Chips)</a> las veo con cuidado, en especial porque Mr chips está metido en el rubro de las tiendas virtuales.<br /><br />El otro punto a destacar es que dell <a href="http://www.fayerwayer.com/2007/10/compra-un-dell-xps-m1330-nuevo-por-us410-iva-incluido/">se ha mandado el mismo cagazo</a> antes y aun no aprende, y estoy seguro que volverá a pasar, por lo que no es un error aislado, sino que es una constante, deben asumir el riesgo de su negocio y mejorar su equipo de <acronym title="Quality Assurance">QA</acronym>, además cuando vas a comprar a una tienda y compras un pantalón en 20 lukas y la siguiente semana la tienda tira el gran remate gran de el mismo pantalón 2x1 a 10 lukas, uno no va llorando donde la tienda pk se lo cagaron, asume hidalgamente y putea, pero nada más, por lo tanto deberia ser la actitud de Dell, asumir hidalgamente su error, mejorar sus procesos internos y entregar los laptop.<br /><br /><b>Update:</b> un punto no menor que rescata José Roa (extracto <a href="http://cl.invertia.com/noticias/noticia.aspx?idNoticia=200806302206_INV_77169743">sacado de Invertia.com</a>) es el siguiente:<br /><blockquote>las empresas están obligadas a respectar las ofertas que le realizaron a los consumidores en los términos que la realizaron (...) Así como nadie pretende que sea un error el que una empresa cobre muchas veces el precio por el mismo producto en otro local, así tampoco debe llamar a ese juicio el hecho que una empresa cobre un precio menor. Ese es un trato asimétrico</blockquote><br /><br />PD: no quiero que se interprete mal, pensando que digo que los de fayerwayer son unos vendidos, sino que simplemente es necesario mirar con detención las criticas (de todo el mundo, no solo de fayerwayer, ... sí, incluso esta), porque todos *tenemos* tejado de vidrio.Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com3tag:blogger.com,1999:blog-8802779.post-41318221861730891872008-07-03T16:24:00.002-04:002008-07-03T16:34:31.144-04:00get the thumbnail of a file with pythonwith this function you can obtain the the path where is stored (returns None if the thumbnail doesn't exists) the thumbnail of the given uri.<br /><br /><pre><br /><span class="keyword">import</span> md5<br /><span class="keyword">import</span> os.path<br /><br /><span class="keyword">def</span> <span class="function-name">thumbnail_path_from_uri</span>(uri, size=<span class="string">'normal'</span>):<br /> <span class="string">"""Construct the path for the thumbnail of the given uri<br /><br /> Arguments:<br /> - `uri`: the uri that points to the file that is looking for the thumbnail.<br /> - `size`: the size of the thumbnail (normal or large)<br /> """</span><br /><br /> <span class="keyword">assert</span> <span class="py-builtins">isinstance</span>(uri, basestring), \<br /> <span class="py-builtins">TypeError</span>(<span class="string">"The uri must be a str"</span>)<br /><br /> <span class="keyword">assert</span> <span class="py-builtins">isinstance</span>(size, basestring) <span class="keyword">and</span> (size == <span class="string">'large'</span> <span class="keyword">or</span> size==<span class="string">'normal'</span>), \<br /> <span class="py-builtins">TypeError</span>(<span class="string">"The size for thumbnail can be normal or large"</span>)<br /><br /> <span class="py-builtins">hash</span> = md5.new()<br /> hash.update(uri)<br /> path = os.path.join(os.path.expanduser(<span class="string">'~'</span>), <span class="string">".thumbnails"</span>, size, <span class="py-builtins">str</span>(<span class="string">"%s.png"</span> % hash.hexdigest()))<br /><br /> <span class="keyword">if</span> os.path.exists(path):<br /> <span class="keyword">return</span> path<br /> <span class="keyword">else:</span><br /> <span class="keyword">return</span> <span class="py-pseudo-keyword">None</span><br /><br /></pre>Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-43277270832010644282008-07-02T17:06:00.002-04:002008-07-02T17:18:32.489-04:00a photo managerdamn it!, f-spot is pretty nice, but it doesn't work for me, because my video driver sucks, it hang up when you use some functionality that has some code with glx.<br /><br />I tried to made a quick photo viewer (usgin the photos.db of f-spot) with python and GtkIconView, but I want to implenet the list store (backend) in a OOP-way, and avoi the data duplication, something that is trying to figure it out in the pygtk mailing list, my other option is make a fork of f-spot, but not to make a better software, instead to eliminate all the glx code, and have a simpler f-spot, but I dont know how many animations could be around.<br /><br />so, anyone has some photo manger like f-spot?.<br /><br />PS: picasa is not usefull to me, I'm a fucking freetard (If you are a reader of linux hater's blog, the you what I'm talking about).Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com2tag:blogger.com,1999:blog-8802779.post-69130981297307054682008-06-28T15:55:00.001-04:002008-06-28T15:55:46.607-04:00ELinux 2008<img src="http://www.encuentrolinux.cl/pipermail/encuentro/attachments/20080618/ded2f516/elinux.png"/>Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com0tag:blogger.com,1999:blog-8802779.post-5207911582841343102008-06-26T13:05:00.003-04:002008-06-26T13:19:01.429-04:00firefox stop pissing me offa common use case of my daily routine before firefox 3 appeared on <a href="http://www.debian.org/">sid</a>:<br /><br /><ul><li>open <a href="http://liferea.sourceforge.net/">liferea</a></li><br /><li>open <a href="http://www.gnome.org/projects/evolution/">evolution</a></li><br /><li>open iceweasel (aka firefox)</li><br /><li>open <a href="http://www.gnu.org/software/emacs/">emacs</a></li><br /><li>put music with <a href="http://www.gnu.org/software/emms/">emms</a></li><br /><li>while unread_items > 0, read the interesting items of the feeds loaded in liferea, and click in the interesting links</li><br /><li>read the mail, and if somebody sent me a link, then follow it</li><br /><li> check all the links opened in iceweasel</li></ul><br /><br />a common use case of my daily routing after firefox 3<br /><ul><li>open liferea</li><br /><li>open evolution</li><br /><li>open iceweasel</li><br /><li>open emacs</li><br /><li>put music with emms</li><br /><li>while unread_items > 0, read the interesting items of the feeds loaded in liferea, click in the interesting links, <u>minimize firefox to return the focus to liferea</u><br /></li><br /><li>read the mail, and if somebody sent me a link, then follow it, <u>minimize the firefox to return the focus to evolution</u><br /></li><br /><li> check all the links opened in iceweasel</li></ul>do you see the pattern?, if that is pissing you off too, then go to about:config and set <b>browser.tabs.loadDivertedInBackground </b>to<b> true<br /></b>Felipehttp://www.blogger.com/profile/18240619677322050120noreply@blogger.com4