Marco Islas Blog stuff http://islascruz.org/html/ markuz@islascruz.org (Marco Antonio Islas Cruz) 2005-2008, Marco Antonio Islas Cruz Mon, 17 Nov 2008 00:48:34 -0600 JAWS 0.8.6 <![CDATA[ I just want to say.. ]]>


]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/I-just-want-to-say.. markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/I-just-want-to-say.. Mon, 17 Nov 2008 00:43:41 -0600
<![CDATA[ 2008-11-16 ]]>
In this week I have been pretty busy, bugfixing the Juvi desktop application. We don't want Banana products (those that mature with the user) and the test team is doing their best to hit every bug and report it to have a very stable application.

I have been also busy "porting" the Supramax Evo4 driver to run on windows, the port is quite easy to do since the program was written in Python and I have to fix some paths. In my tests I was doing to the driver I found a Not so funny issue with M2Crypto for MS Windows.

We have a parameter in the driver, as most Unix programs do the "-v" do a verbose run, spitting to the stdout the logs, if you don't use the verbose parameter then it saves it somewhere. Well, running on verbose mode was easy, it just run perfectly, storing the logs wasn't I had an error with OpenSSL... but wait.. we where talking about logs and not about OpenSSL.. what does OpenSSL has to be with logs?.

Well, there is an issue with M2Crypto and Python where it doesn't ship a special file and this causes OpenSSL crash if you use I/O. M2Crypto let you load a RSA key in pem format that you can use to crypt/decrypt something this method is called load_key and is part of the M2Crypto's RSA package, you only have to pass the path to the key as first argument and in the second argument a function (anything callable) that returns the password for the key (if it is private). Well, this I/O was crashing M2Crypto.

There are two workarrounds for this. The first, is to compile at least M2Crypto (I didn't do it, some blogs says that you have to compile python) against OpenSSL and include this specific file... at least Google points to blogs that says that... The other and easier way is just use RSA's function load_key_string where you pass as first argument the string that holds the key instead the path, doing this you will eliminate the I/O done by OpenSSL and then, there is no crash.

Last Thursday Cristina and I went to Maquiavelo's house to an informal meeting with xbitcarry, unfortunately Maquiavelo was too busy and the meeting wasn't really done but was nice to see xbitcarry again.

I think that's all for today my readers. Fortunately I don't have to work tomorrow and now I have to work a bit on christine ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/2008-11-16 markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/2008-11-16 Sun, 16 Nov 2008 23:08:00 -0600
<![CDATA[ Let me check my Address book :-P ]]>
Let me check my Address book tongue.png

Originally uploaded by markuz

I remember when I went to Villahermosa.... I went to see cristina, but in this picture I was looking Liliana's phone number. Anyone who knows me knows that my memory is not good with numbers, names or dates. In the picture is my first laptop "voladora" (because I bought it in Papantla, Veracruz).

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Let-me-check-my-Address-book-%3A-P markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Let-me-check-my-Address-book-%3A-P Wed, 12 Nov 2008 00:06:20 -0600
<![CDATA[ Find the error ]]>
Find the error

Originally uploaded by markuz

Today I found that my battery seems to be broken.. So, I try to completely discharge it just to recharge it and see if something was wrong with the gnome power manager or if in fact my batter is broken.

I was checking the state using

watch "cat /proc/acpi/battery/BAT0/state


And Found something funny about the info in the battery state file. It looks to be discharging even when the remaining capacity is 0. As a bonus the present voltage with no capacity is more than 0.

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Find-the-error markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Find-the-error Tue, 04 Nov 2008 21:56:26 -0600
<![CDATA[ No words ]]>

While reading (watching) the blog I found an interesting link to this image which explains clearly 10 reasons why software projects fails.

I can't remember where, but I have read that most software projects fails, and now I'm understanding why. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/No-words markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/No-words Sat, 01 Nov 2008 00:56:08 -0500
<![CDATA[ Upgrading to Ubuntu 8.10 ]]> One thought... If apt could download chunks of the packages from several servers like any p2p network the upgrade process may be faster.

update Finally, I have upgraded my Ubuntu to 8.10. the process took about 6 to 8 hours most of them downloading packages. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Upgrading-to-Ubuntu-8.10 markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Upgrading-to-Ubuntu-8.10 Thu, 30 Oct 2008 17:20:19 -0500
<![CDATA[ Nothing else to post ]]>
Desktop

Originally uploaded by markuz

So, there is a nice screenshot of my desktop face-smile.png

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Nothing-else-to-post markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Nothing-else-to-post Tue, 28 Oct 2008 18:53:03 -0500
<![CDATA[ Incredible documentation ]]>
Python gobject.GObject

Originally uploaded by markuz

Found in the gobject reference manual

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Incredible-documentation markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Incredible-documentation Fri, 17 Oct 2008 14:55:27 -0500
<![CDATA[ AWN annoying ]]>
AWN annoying

Originally uploaded by markuz

I have been using the Avant Window Navigator for a couple of weeks, it's pretty and it doesn't use a lot of space ( I have it configured to get below the windows) but there is an annoying thing, I have compiz enabled in my machine, I also have the "Put" plugin, and if I switch from workspaces sometimes the "window" that grabs the focus is not a normal window but the dock icons window, and using Meta (the Windows key) and some number in the keypad moves that window trough the desktop, kind of funny.




]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/AWN-annoying markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/AWN-annoying Thu, 16 Oct 2008 23:01:37 -0500
<![CDATA[ Tweeting the song from christine ]]>
Tweeting the song from christine, originally uploaded by markuz.

Inspired by GaRaGeD's pidgin "plugin" (christine still doesn't have a plugin API), I wrote my "plugin" to tweet the song on being played on christine.

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Tweetingthesongfromchristine markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Tweetingthesongfromchristine Sat, 04 Oct 2008 00:03:49 -0500
<![CDATA[ Christine folder import ]]> .flickr-photo { border: solid 2px #000000; }
.flickr-yourcomment { }
.flickr-frame { text-align: left; padding: 3px; }
.flickr-caption { font-size: 0.8em; margin-top: 0px; }

christine, originally uploaded by markuz.

This is christine (trunk) importing a whole folder, about 1321 songs in just 1:07 mins.

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/christine-1 markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/christine-1 Tue, 09 Sep 2008 16:27:34 -0500
<![CDATA[ gwibber rules! ]]>
gweeber rules!, originally uploaded by markuz.

I'm using gwibber., a really nice application that solves one problem with microblogging: A multi-protocol client. This small app, looks good, and works better, I can see Flickr updates, twitter, identi.ca, and updates on my facebook page. If you use two of this services you should use gwibber

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/gwibberrules markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/gwibberrules Tue, 26 Aug 2008 11:43:56 -0500
<![CDATA[ Christine in ohloh ]]>
Christine in ohloh, originally uploaded by markuz.

I just want to let you know the christine page in Ohloh:


http://www.ohloh.net/projects/christine

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Christineinohloh markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Christineinohloh Fri, 22 Aug 2008 16:21:03 -0500
<![CDATA[ Christine kicking the Compiz nuts. ]]> .flickr-photo { border: solid 2px #000000; }
.flickr-yourcomment { }
.flickr-frame { text-align: left; padding: 3px; }
.flickr-caption { font-size: 0.8em; margin-top: 0px; }

Christine kicking the Compiz nuts., originally uploaded by markuz.

Importing several directories at the time...

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/ChristinekickingtheCompiznuts markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/ChristinekickingtheCompiznuts Fri, 08 Aug 2008 14:12:06 -0500
<![CDATA[ Borderless metacity theme ]]>
Borderless metacity theme, originally uploaded by markuz.

I finally found the metacity theme I'd like, is a variation made by me of The Beck Theme.

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Borderlessmetacitytheme markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Borderlessmetacitytheme Wed, 06 Aug 2008 16:29:43 -0500
<![CDATA[ WTF! Recursive errors. ]]>
wtf !, originally uploaded by markuz.

An internal error ocurred while showing an internal error.

Update:
@shakaran: In Eclipse 3.4, trying to install some components. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/wtfrecursiveerrors markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/wtfrecursiveerrors Wed, 06 Aug 2008 16:27:32 -0500
<![CDATA[ WTF! Excessive use of memory by eclipse ]]>
wtf !, originally uploaded by markuz.

I have just upgraded eclipse, from 3.3 (Europa) to 3.4 (Ganymede) . Is nice to have it, several things have been improved, but in this shot it was using almost 40% of my memory...

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/WTFExcessiveuseofmemorybyeclipse markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/WTFExcessiveuseofmemorybyeclipse Wed, 06 Aug 2008 16:26:37 -0500
<![CDATA[ Christine love in the night ]]>
Christine love in the night, originally uploaded by markuz.

1:47 in the morning. Im still giving some love to christine, that personal proyect that I used to code frequently. Now, it takes some days before I can toch it.

I'm working on the sqlite3 storage layer, This should help me with a more unified data between multiple "sources" that should be renamed as playlists. This will be usefull for many other features, I'm thinkin in some kind of browser.

Anyway, I'm still in the process. I'd like to share the code I have, but SourceForge.net's SVN service is bothering me with a 403 (Forbidden) error that don't let me commit my changes. Now I'm seriously change the project host. What do you recommend?

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Christineloveinthenight markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Christineloveinthenight Thu, 24 Jul 2008 01:57:45 -0500
<![CDATA[ Back again to my old theme ]]> http://islascruz.org/html/index.php?Blog/SingleView/id/Backagaintomyoldtheme markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Backagaintomyoldtheme Sat, 19 Jul 2008 22:26:22 -0500 <![CDATA[ GNOME 3.0 (Everything with tabs) == Suck! ]]> I believe that GNOME as a project is a very great project, event with the fact that they are reinveing the wheel from time to time (galeon, epiphany => epiphany webkit?). Anyway, I think it's great and as desktop is great too. I use GNOME in my every day and most of the time I'm quite happy, c'mon, there is no desktop environment that have everythin that every user could need.

I love most of the applications that GNOME has as desktop and many others that are not part of the Desktop but integrates well with it. I use such applications because they solve at least one of my problems, being something for my work or just my day to day computer use, and in most of the cases they solve that problem in a very good way, making me feel like I own my computer. But, I also think that they should evolve to be better.

In latest posts on http://planet.gnome.org/ I have seen several posts about some projects that want have tabs everywhere, which for me is ridiculous, Not every application must have tabs. One example is the totem at least not in the way Wouter Bolsterlee is showing it. Another application that I think should not is the calculator. Nautilus is nice for me because it may improve the user's workflow, but does anyone plays two items at the same time?.

Another UGLY example is what Davyd Madeley proposes to the GNOME panel, he may have some point while some people don't know "...what the little grey and blue boxes on their panel are for..." But the users are not stupid, they click them and will know that are they for. And.. a panel with tabs is just UGLY uses more space and useleses (I don't use the workspace switcher applet... is useles at least for me).

I Hope the GNOME developers reconsider where they should or not use tabs in the applications. And if they are going to do that.. Christian Neumair. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/GNOME30EverythingwithtabsSuck markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/GNOME30EverythingwithtabsSuck Sun, 13 Jul 2008 14:48:58 -0500
<![CDATA[ Stickers... ]]>
cucusa stickers, originally uploaded by markuz.

How many (and which) stickers do you have in your laptop?

I know.. I need to find a Python Sticker ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Stickers markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Stickers Fri, 11 Jul 2008 14:41:07 -0500
<![CDATA[ mkzhost.com cheap web accounts. ]]> many more stuff at just 20 USD annual fee.


We are also offering the Personal plan for just 600 mexican pesos (about 60 USD).


If you are interested or have any question, just drop me an email at markuz_at_islascruz_d0t_org ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/mkzhostcomcheapwebaccounts markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/mkzhostcomcheapwebaccounts Tue, 08 Jul 2008 13:58:27 -0500
<![CDATA[ 1st. Year in Salamanca. ]]> This is my first year in Salamanca, working for ICT Consulting face-smile.png . ]]> http://islascruz.org/html/index.php?Blog/SingleView/id/1stYearinSalamanca markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/1stYearinSalamanca Wed, 02 Jul 2008 09:48:01 -0500 <![CDATA[ Brightness button Compaq V3017LA Ubuntu Hardy ]]> here and the proposed fix (for the compaq/hp laptops) is to blacklist the video module to let hal do it's work.

I try it yesterday, but it doesn't seem to work. Anyway, the other way to change the brightness in your laptop is write by hand the /proc/acpi/video/VGA/LCD/brightness file.

echo $value > /proc/acpi/video/VGA/LCD/brightness
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/BrightnessbuttonCompaqV3017LAUbuntuHardy markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/BrightnessbuttonCompaqV3017LAUbuntuHardy Sat, 28 Jun 2008 09:20:37 -0500
<![CDATA[ Christine importing a folder. ]]>
Christine importing a folder., originally uploaded by markuz.

I had worked on christine weeks ago, this week I had no time to give it some love. I have been using this "development" version (I think every version of christine is a development version) for a while.

Christine is faster at the load time, starting in just 4 seconds with at least 1500 items in the list, and the search and sort is quite fast too. But working with something like 6889 items in another 'source' I had make it a bit slow.

I think this is because christine use 3 models in the main list. Yes, three models. One is the main model, the one that holds all the library data. then the filter model and then the sort model. I'll try to make a model that implements in some way the filter and sort to reduce the work.

I notice that when you use a filter or even worse a filter and sort model ever time you select or move your cursor, or do anything with a row this process has to be done for every model you have. I mean, in christine you have to do it three times because of the three models. I think this sucks.

Well, I hope to have the time to write a bit on christine in this week.

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Christineimportingafolder markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Christineimportingafolder Thu, 26 Jun 2008 23:19:17 -0500
<![CDATA[ Irony ]]>
Irony, originally uploaded by markuz.

In this week I had the task to look for a new bug tracker here at ICT Consulting, we used to have bugzilla, but it is a bit confusing. In my search I stop in the phpbugtracker site. Diving in, I found that many projects use PHPBT has their Bug and Issues tracker. Now I know why, its pretty easy to use, is really easy to search in the bug list.

Anyway, the screnshot you are looking above is the what I call Irony, Php bug tracker, a project for bug tracking use another bug tracking system, the Sourceforge.net Bug tracker. I think this is because then they have the statistics in the sourceforge statistics and they don't need to host the tracker. I don't think this is a bad idea, but it's funny.

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Irony markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Irony Thu, 26 Jun 2008 23:08:49 -0500
<![CDATA[ What have I done in the last month ?? ]]> com, and that's ok. Anyway, islascruz.org is back again and I hope it never fails again.


Now, What have I done in the last month?, well, not blogging tongue.png . I have been using twitter but I had this need to post on my own site.


I had worked on christine, making it a little more usable, now,it loads in my computer in just a couple of seconds with a track list that is about 2600 rows, It uses a little less memory and I'm trying to make it better. But I'm working in some projects in the work (the paid work) and the idea to be working 8 hours in the office and get to the house to keep working isn't a very nice idea.


Christine in small view mode


dsc08103.jpgCristina and I get to the movies, we watch The Happening. Many people didn't like it, and I think this is because there is too much talk, too much death and almost no action. But the point in the movie is the message, we are hurting the planet, and we shouldn't. So, after the blablabla and the blood I like it, just by the message. We also watch Indiana Jones, and to be honest, I like it, but is not by far the most awesome movie I have seen.


As part of the "Leave the stress" activities cristina and I are doing, we are doing scented candles. We enjoy doing it, but the hard issue is cleaning the mess we do.


Well, I think I'm gonna leave this post here, my life is not that intersting. You should read somebody else personal posts.. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/WhathaveIdoneinthelastmonth markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/WhathaveIdoneinthelastmonth Wed, 18 Jun 2008 19:16:51 -0500
<![CDATA[ Back! ]]>

Islascruz.org is back again!

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Back markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Back Wed, 18 Jun 2008 16:09:16 -0500
<![CDATA[ Upgrade to Ubuntu 8.04 ]]> Booting Ubuntu.I have finally upgrade my Ubuntu install to Hardy... Wasn't so easy. It takes more than 1 hour downloading the files, I know, this isn't Ubuntu's servers fault, but, I was supposed to download 1585 files, fortunately I had copied the files from another machine here in ICT Consulting that was upgraded yesterday, from where I grab ~1200 files. So, 300 files in 1 hour, 1200 should be 4 hours (aprox).

The upgrade, indeed is easy, just run the upgrade manager and you have your system upgraded. But, that doesn't mean that you don't have to do anything else, my nvidia driver wasn't working, and I thought it was because I use envy to install the nvidia driver in Gutsy. So, I remove envy and then install the nvidia-glx-new package, didn't work. So, looking for in the system I realize that the restricted drivers manager wasn't working properly, diving there I found that it miss one package, the restricted driver manager for my kernel. I have to install it and then my nVidia work again.

Is nice when you can upgrade your favorite distribution, even when you have to repair your installation after the upgrade. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/UpgradetoUbuntu804 markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/UpgradetoUbuntu804 Sun, 01 Jun 2008 19:49:17 -0500
<![CDATA[ Flickr status ]]>
flickr status, originally uploaded by markuz.

This are my Flickr Status, what's yours??

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Flickrstatus markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Flickrstatus Thu, 22 May 2008 20:05:22 -0500
<![CDATA[ twitter ]]> markuzmx ]]> http://islascruz.org/html/index.php?Blog/SingleView/id/twitter markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/twitter Sun, 04 May 2008 18:41:01 -0500 <![CDATA[ Testing the new christineConf module ]]>
Testing the new christineConf module, originally uploaded by markuz.

I have been working in the configuration module for christine, something similar to gconf, but just for christine. Why? well, many people complains because christine needs the gnome-extras package, where gconf is, and to be honest, christine didn't use all the gconf power, so, there isn't a big reaons to keep gconf on christine.

This isn't the only thing I have been working on. I'm trying to improve many things for the next release. Most of the work wil be in the list, zodman gives me some nice ideas, and I will try to implement them.

Anyway, you are also invited to work with me in the christine development. You can join the maling list for the next release.

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/TestingthenewchristineConfmodule markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/TestingthenewchristineConfmodule Sat, 03 May 2008 23:38:30 -0500
<![CDATA[ 27 segundos ]]>
Bootchart, originally uploaded by markuz.

Tiempo record arrancando Ubuntu Gutsy en mi maquinita con un AMD Mobile Sempron de 1.6Ghz, 1Gb de ram (menos el video) y ReiserFS.

Cuanto haces en tu maquinita??

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Bootchart markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Bootchart Sat, 03 May 2008 13:20:11 -0500
<![CDATA[ OpenOffice 2.4 en Gutsy ]]>
Installing OpenOffice 2.4 on Ubuntu Gutsy ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/OpenOffice24enGutsy markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/OpenOffice24enGutsy Mon, 21 Apr 2008 13:04:17 -0500
<![CDATA[ Nearshoring... The Movie! ]]>
]]> http://islascruz.org/html/index.php?Blog/SingleView/id/Nearshoring-The-Movie markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Nearshoring-The-Movie Fri, 18 Apr 2008 13:05:47 -0500 <![CDATA[ Gnome open location dialog ]]> .flickr-photo {}
.flickr-yourcomment { }
.flickr-frame { text-align: center; padding: 3px; }
.flickr-caption { font-size: 0.8em; margin-top: 0px; text-align:center;}

Gnome open location dialog, originally uploaded by markuz.

It is quite usefull, but, where can I configure the key bindings for the gnome open location dialog?? I mean, It nice if I click on the Desktop and press +l then it appears, but it's not the same if I am on any other application.

You can configure the key shortcuts to show the main menu, or to show the run dialog, you can even configure the shortcut to show your home, but, what about this?.

If you know how to do it (on GNOME), please, let me know.

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Gnomeopenlocationdialog markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Gnomeopenlocationdialog Fri, 18 Apr 2008 12:05:34 -0500
<![CDATA[ Firefox 3.0b4 WTF! ]]> Gtk widgets inside the pages, I think it uses less memory than Firefox
2, but my CPU is suffering...

Firefox-3.0 WTF

by the way, Firefox was supposed to be IDLE (no flash video playing, nothing at all) ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Firefox-30b4-WTF markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Firefox-30b4-WTF Sat, 12 Apr 2008 10:14:11 -0500
<![CDATA[ PyGTK y Threads ]]>
gtk.gdk.threads_init()
 
Esto lo tendras que hacer antes de iniciar algun thread. Y luego, al usar algun thread debes englobarlo dentro de

gtk.threads_enter()
thread.start_new(funcion, (arg1,arg2,argN))
gtk.threads_leave()
 
Solo recuerda que no debes manipular gtk fuera del thread en el que esta corriendo el ciclo principal (gtk.main_loop).

Si lo que necesitas es estar cachando informacion en un thread aparte y modificar la interfaz (ej. Leyendo un socket y mostrando informacion de cuanto llevas leido) entonces usa alguna bandera y modifica tu apariencia en el thread principal, de lo contrario tendras problemas con gobject y glib. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/PyGTK-y-Threads markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/PyGTK-y-Threads Thu, 10 Apr 2008 18:51:44 -0500
<![CDATA[ Actualizacion del bios Compaq V3017LA ]]>
pci=assign-busses apicmaintimer idle=poll reboot=cold,hard

Una vez que hayas arrancado no se te olvide ponerlo en grub para los siguientes arranques.

Esto tambien puede ser util para aquellos que han comprado una laptop Compaq V3000 o HP dv2000 reciente y tengan problemas al iniciar Ubuntu (o algun derivado) ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Actualizacion-del-bios-Compaq-V3017LA markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Actualizacion-del-bios-Compaq-V3017LA Tue, 08 Apr 2008 18:48:17 -0500
<![CDATA[ RTFM ]]>
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/RTFM markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/RTFM Sat, 08 Dec 2007 19:05:39 -0600
<![CDATA[ Nuevo Disco duro! ]]>
DSC07183.JPG
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Nuevo-Disco-duro markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Nuevo-Disco-duro Sat, 01 Dec 2007 18:11:12 -0600
<![CDATA[ Villahermosa, el venecia mexicano... ]]>

Click aqui para descargar el archivo.
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Villahermosa-el-venecia-mexicano markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Villahermosa-el-venecia-mexicano Sun, 25 Nov 2007 15:58:54 -0600
<![CDATA[ Epiphany ]]>
Epiphany crash
]]> http://islascruz.org/html/index.php?Blog/SingleView/id/Epiphany markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Epiphany Fri, 23 Nov 2007 07:53:16 -0600 <![CDATA[ Widgets 'recortados' en Gtk ]]> Gtk tienen una ventana asociada, y no precisamente la ventana con decoracion que todo mundo ve. Gtk adiere una propiedad llama "window" a los widgets al ser empacados, o emparentados a otro widget contenedor.

Generalmente estos widgets son de apariencia rectangular, pero es posible tunearlos para que tengan la forma que nosotros queremos. La forma mas facil de hacerlo es tomar una imagen un usarla como "Molde" para crar nuestro contenedor recortado. aunque tambien es posible dibujar lo que nosotros querramos usando las funciones de cairo sobre un contexto (Que en si, es lo que hacemos con la imagen molde, pero mucho mas sencillo).

Lo que hacemos es obtener un molde a partir de una imagen, es decir, abrimos la imagen y creamos un gtk.gdk.Pixbuf, que es el mostraremos, pero podemos obtener el gtk.gdk.Pixmap y la mascara de este Pixbuf de forma que podamos usar dicha mascara para crear el contorno de nuestro widget.

Los widgets, una vez empacados,como ya habia dicho obtienen una propiedad llamada window, que pertenece a la clase gtk.gdk.Window. Aquellos que ya se han puesto a dibuar algo con cairo se habran dado cuenta que se obtiene un contexto de un widget a partir de su gtk.gdk.Window.

Bien. tambien es posible obtener este contexto de cairo a partir de un pixmap, hacer el dibujo molde y luego pegarselo a la ventana para que gtk.gdk sepa que partes ha de dibujar y cuales no.

Veamos un pequenio ejemplo.

class shapedWindow(gtk.DrawingArea):
        def __init__(self):
                gtk.DrawingArea.__init__(self)
                self.__pixbuf =  gtk.gdk.pixbuf_new_from_file('./logo.png')
                self.connect('size-allocate',self.size_allocated)
                self.connect('expose-event',self.do_expose_event)
                self.set_size_request(self.__pixbuf.get_width(),
                                self.__pixbuf.get_height())
       
        def size_allocated(self,win,allocation):
                w,h = (allocation.width, allocation.height)
                self.bitmap = gtk.gdk.Pixmap(None,w,h,1)
                context = self.bitmap.cairo_create()
               

                self.do_expose_event(self,'',context)
                parent = self.get_parent()
                win.shape_combine_mask(self.bitmap,0,0)
                parent.shape_combine_mask(self.bitmap,0,0)
               
        def do_expose_event(self, widget, event,allocate = False):
                if allocate:
                        context = allocate
                else:
                        context = self.window.cairo_create()
                if allocate:
                        context.set_operator(cairo.OPERATOR_DEST_OUT)
                        w,h = (self.allocation.width, self.allocation.height)
                        context.rectangle(0,0,w,h)
                        context.set_source_rgb(1,1,1)
                        context.paint()
                context.move_to(0,0)
                context.set_operator(cairo.OPERATOR_OVER)
                if allocate:
                        pixmap,mask = self.__pixbuf.render_pixmap_and_mask()
                        context.set_source_pixmap(mask,0,0)
                else:
                        context.set_source_pixbuf(self.__pixbuf,0,0)
                context.paint()
       

if __name__ == '__main__':
        window = gtk.Window()
        window.set_decorated(False)
        a = shapedWindow()
        window.add(a)
        window.show_all()
        gtk.main()
       
 
Que es lo que hacemos aqui? bien, primero creamos un widget personalizado usando gtk.DrawingArea y conectamos la sennial size-allocate para poder establecer el tamanio de nuestro widget. Una vez llamada esta funcion creamos un pixmap vacio del tamanio de nuestro widget, que es el tamanio que nos ha dado el contenedor padre, este es un rectangulo como de costubre, con un ancho y alto. A este pixmap le sacaramos el cairo context, sobre el cual hemos de 'dibujar' nuestro molde.

Como en este ejemplo el widget y su molde de la misma forma estoy aprovechado el metodo do_expose_event para hacer el dibujo inicial y despues hacer las funciones de redibujado en caso de un evento de expose.

Quienes hacen la chamba aqui? bien, para el dibujo inicial de nuestro widget es context.set_source_from_pixmap(), aunque podriamos usar el mismo set_source_from_pixbuf he detectado problemas con colores en Windows, entonces no lo recomiendo.

Otro que entra en juego y es el que le dice al widget 'orale cabron, apegate a esta forma' es win.shape_combine_mask(self.bitmap,0,0).

De ahi, el ponerle contenido a nuestro widget no es mas que un amanipulacion de colores y demas dentro de nuestro contexto cairo. Que, es otro tema del que hablar, como 'dibujar' lo que queremos en nuestro widget usando su contexto cairo.

Shaped Window widget Tamanio Completo

Ciertamente, el logtipo de Christine es el widget 'recortado' face-smile.png ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Widgets-recordatos-en-Gtk markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Widgets-recordatos-en-Gtk Fri, 09 Nov 2007 17:19:06 -0600
<![CDATA[ WTF?? ]]>
What's wrong with Compiz??!!! What's wrong with Compiz??!!!
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/WTF markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/WTF Wed, 07 Nov 2007 16:04:58 -0600
<![CDATA[ Christine Wallpaper ]]>
Christine Wallpaper
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Christine-Wallpaper markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Christine-Wallpaper Mon, 05 Nov 2007 13:59:37 -0600
<![CDATA[ Primera semana con Ubuntu Gusty Gibbon ]]> Slackware un rato para usar Ubuntu, debido a que vaya, ahora entiendo a quienes antes me habian dicho por montones: Yo quiero trabajar, no lidiar con dependencias.

Dado que siempre tengo que hacer en ICTC, cuando llego a casa pocas veces me intereza estar peleando con la compu, tal como lo hacia en casa, donde siempre tenia chance de hacerlo. Entonces me he instalado Ubuntu Gutsy Gibbon para evitarme estas tranzas y usar el poder de apt.

Obviamente, me tuve que desprender de toda esa libertad que me da Slackware al no amarrarme del arbol de dependencias, pero es todo en favor de poder chambear o lograr lo queq uiero con el menor esfuerzo posible. Y pense que si lo conseguia todo seria bonito.

Bien, pues estaba bien perdido. He tenido unos ligeros problemas con Ubuntu. Antier tuve pedos con el controlador que te ofrecen para poder usar las tarjetas Broadcom. el bcm43xx funciona bien, pero no tan bien como deberia. Segun esta cosa si se conectaba con el router al que deberia de conectarse, pero aunque deshabilitaba cualquier otra interfaz de red y agregaba las rutas, el ping al mismo router jamas funcionaba!. Ha. y NetworkManager no me fue de mucha ayuda. Use wlassistant y ndiswrapper para lograr mi objetivo.

Ok, no fue todo. Resulta que a como tenia mi configuracion funciono bien en su momento, pero al dia siguiente al iniciar, Bolas don cuco Gnome no inicia... o mejor dicho, si lo hace, pero tarda Muuuuuuuuuuuuuuuuuuuuuuuuucho y las aplicaciones tambien tardan Muuuuuuuuuuuuuuuuuuuuuuuuucho a pesar de que el uso del CPU estaba al 0% o cuando mucho al 5% y el load average tambien estaba normal.

En fin, me hice una cuenta de usuario alterna para probar y nada, no pelaba. Gnome en modo seguro, tampoco, me asegure. Entonces entro en consola a prueba de fallos (simon, si falla la consola quito Ubuntu a la chingada y meto Slackware otra vez.. es mejor pelear un solo dia que pelar todos los dias!)..

En fin, aproveche e instale xfce y justo cuando va arrancando me dice que no encuentra la ip de cucusa (cucusa es el nombre de mi maquina), voy a echarle un ojo al /etc/hosts y veo que me faltaba el nombre corto para la maquina. se lo pongo y arranga perfecto. salgo de Xfce y entro en Gnome y Jala perfecto.

Aqui viene el descontento, recuerdo que en Gnome 1.x te avisaba que no podia resolver el nombre del equipo que esto posiblemente te acarrearia problemas. Entonces hacias las correcciones necesarias (tal como me paso con xfce). Por que jodidos lo quitaron?. Si GNOME es GNU Network Object Model Environment, porque jodidos no te avisa cuando hay un error en algun aspecto de red??

Ok, va una, la segunda sucede cuando llego a Salamanca, Me la volvio a hacer. Llego, conecto la compu a la corriente, arranco, y sopas, GNOME no arranca, Xfce si lo hace y no advierte de nada, muy probablemente porque ahora si resuelve la ip de mi maquina. Problema, la configuracion de red, deshabilite las interfaces de red que tengo, arrango GNOME, abro el NetworkManager y le digo que ahora mi configuracion ha de ser por dhcp en ambas interfaces (eth0 (alambrica) y eth1 (inalambrica)), y entonces si funciona bien.

Hasta ahorita no he tenido mayor problema que este, pero si es algo frustrante que despues de cambiar mi configuracion de red tenga tantos pedos para poder usar Ubuntu. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Primera-semana-con-Ubuntu-Gusty-Gibbon markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Primera-semana-con-Ubuntu-Gusty-Gibbon Sat, 27 Oct 2007 22:02:22 -0500
<![CDATA[ Error en cajero de banamex ]]> Banamex ATM error ]]> http://islascruz.org/html/index.php?Blog/SingleView/id/Error-en-cajero-de-banamex markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Error-en-cajero-de-banamex Tue, 23 Oct 2007 15:45:27 -0500 <![CDATA[ Palm Treo 700p como modem ]]> Paml Treo 700p El dia de hoy me toco configurar una Palm Treo 700p como modem para ser usado en GNU/Linux y en una Nokia 770. Y ahora que veo las cosas me parece que todo ha sido facil.

En principio de cosas la palm, pese a que se puede conectar a la red de iusacell para poder tener video y obviamente internet, no incluye un software para poder servir como modem, lo que hice, fue descargar la version demo de USB Modem para las Treo. Este programilla nos permite usar la palm como cualquier otro modem conectado via USB en nuestro equipo. El demo incluye el controlador para windows y las instrucciones para Linux, ademas del software que se instala en la palm.

Una vez instalado el usb modem, se accede a el y se inicia el modo modem en la palm. En Windows, no dire como hacerlo, a preguntarle a los de Microsoft, en Linux, solo es cosa de que nuestro kernel tenga soporte para modems CDC ACM.

Nokia 770Al momento de conectar el equipo y cambiar el modo de la palm a modem se creara el dispositivo /dev/ttyACM0, si tienen wvdial podran usar wvdialconf para ver la respuesta del modem. A partir de ahi, configuren el wvdial.conf o usen algun otro programa como kppp o el que gusten par aconectarese. Simple no?.

Para usarlo como modem para la Nokia 770, es casi igual de simple. Lo primero que hemos de hacer es obviamente, configurar el Bluetooth para que se comuniquen ambos dispositivos. La nokia 770 dira que no se puede hacer transferencia de datos, mas que algo relacionado con usar el dispositivo como medio de marcado.

Luego, hay que crear una nueva conexion, y utilizar el tipo de envio de paquetes (no de datos), en las propiedades de conexion solo necesitaran poner le numero al que se va a marcar, el cual es #777 (para iusacell).

En la palm, la configuracion del modem ahora debera de ser cambiada a conexion por bluetooth, pero, antes de hacer el cambio se debe deshabilitar el DUN (Dial Up Networking) incluido en la palm, de forma que se use solamente el de USB Modem (que ahora es Bluetooth Modem). Y luego, hacemos el marcado y si todo esta bien, estaremos navegando en 5 segundos face-smile.png .

Nokia 770
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Palm-Treo-700p-como-modem markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Palm-Treo-700p-como-modem Fri, 05 Oct 2007 15:00:32 -0500
<![CDATA[ Petter Criss key ring ]]> Petter Criss  key ring Some rock stuff ]]> http://islascruz.org/html/index.php?Blog/SingleView/id/Petter-Criss-key-ring markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Petter-Criss-key-ring Tue, 02 Oct 2007 22:28:25 -0500 <![CDATA[ New Sticker ]]> Pantera bien chido.
New Pantera Sticker
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/New-Sticker markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/New-Sticker Tue, 02 Oct 2007 20:01:12 -0500
<![CDATA[ Bam de Iusacell en Guadalajara. ]]> iusacell's BAM in Guadalajara, jalisco
Obviamente, coriendo en GNU/Linux ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Bam-de-Iusacell-en-Guadalajara markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Bam-de-Iusacell-en-Guadalajara Tue, 02 Oct 2007 11:02:19 -0500
<![CDATA[ Franklin CDU-680 en Slackware Linux ]]>
Bien, este es un pequenio How to, donde quiero cubrir algunos de los aspectos oscuros en la configuacion del Franklin CDU-680. Este aparatito es un modem EVDO que se conecta por USB y que aqui en Mexico Iusacell lo esta vendiendo como par te de su servicio "Banda Ancha Movil" (BAM).

Bien, lo tuve que comprar porque necesito conexion a internet desde mi casa y fue la, desde mi punto de vista, mejor eleccion entre los proveedores que hay aqui en Salamanca.
  • Cable: bien, para empezar ni siquiera tengo TV. Como quiera, no importa, lo que me interesa es la conexion. Ok, la mayor parte del tiempo estoy fuera de la casa por lo que no puedo esperar al CableGuy para que me haga la instalacion. Ademas, varias personas me han dicho que el servicio de internet por cable aqui en salamanca esta muy malo. Asi que no es opcion.
  • Prodigy Infinitum: La neta, para lo que yo uso Internet me parece bastante bien (salvo por el costo), no soy muy de descargar los millones de canciones al dia, y generalmente ocupo internet para hacer una que otra tarea, leer noticias y descargar pedazos de software que ocupo. El problema con Infinitum es que tengo que contratar una linea telefonica, y luego el internet, mismo caso que con el Cable, no tengo tiempo y no quiero contratar una linea telefonica!.
  • BAM: Entrega, se supone que en el momento, pero me tardaron un par de dias porque tenian problemas con el inventario. Ventaja: Conexion donde quiera que tenga recepcion de Celular (no estoy amarrado a la casa). Velocidad maxima de 3.1Mbps, promedio entre 80 y 800Kbps, upload entre 80 y 500. Bien, no tuve que esperar mucho, y no fueron a mi casa a instalar nada.
Bien, ahora que ya sabemos la historia vamos a la parte fea

BAM Iusacell Para empezar, debes tener un equipo con Windows y obviamente una conexion USB. Por que? porque los de iusacell no te dan el modem activado, asi que hay que activarlo uno. Apenas metiendo el modem al conector USB veras que el sistema lo reconoce como un medio de almacenamiento masivo, es decir, como cualquier otra USB, y por que?, bien, porque es en el mismo modem que se incluyen los controladores para Windows XP y Windows Vista. Entonces, instalar el controlador no tiene mayor problema.

Luego de la instalacion hay que activar el equipo, hay que abrir la aplicacion que se ha instalado, te pedira un numero para poder continuar, inicialmente el numero es 000000 (seis Ceros). y de ahi te pide un numero MIN y MDN, y el Home SID, si no los tienes llama a iusacell para que te los pasen.

Ok, despues, el modem se reinicia, y muy probablemente tambien tengas que reiniciar windows, enctonces, tu modem esta activado, y al lanzar de nuevo la aplicacion para conexion veras que te puedes conectar a la red de iusacell y navegar por internet. Hasta aqui todo muy bien (Usuarios de Windows, me deben 100 pesos por leer estas instrucciones, usuarios de Linux, ustedes me los pagan cuando terminen de leer este post).

En un principio pense que nada mas era de activar y listo, pero no, y me di cuenta porque a pesar de estar siguiendo las escuatas instrucciones que vi en internet sobre este aparato, nomas no funcionaba.

Para echarlo a andar:

Tu sistema, al igual que en Windows te reconocera el modem en primera instancia como un medio de almacenamiento masivo. Simplemente ignoralo. y mejor desmonta la unidad (si se ha montado automaticamente) no la necesitaras.

Luego deberias habilitar el modem usb usando el modulo usb_serial. Pero antes de que vayas de golozo y te lo fletes asi nomas porque si, hay que echarle un ojo a lsusb, que te dira algo asi:

root$ lsusb
Bus 2 Device 1: ID 0000:0000
Bus 1 Device 8: ID 16d8:6803
Bus 1 Device 1: ID 0000:0000
root$
Si notas en el dispositivo 8 veras que es diferente a los demas, entonces, aqui tienes el 'vendor' y el 'product' para ser usado con el moprobe:

modprobe usb_serial vendor=0x16d8 product=0x6803
Haz notado que he pusto "0x" antes de los numero que me ha dado lsusb ??.

Bien, Esto te dice algo de que se ha registrado el dispotivo y que ha sido asignado a ttyUSB0 o algo por es estilo. pero si usas wvdialconf no te va a funcionar. y He aqui el por que:

Recuerdas que dos veces he dicho que el sistema la reconocera como dispositivo de almacenamiento masivo?. Bien, es porque el aparato este tiene dos modos, modem y medio de almacenamiento masivo. Tipicamente esta en modo almacenamiento, luego, cuando ejecutas tu programa de conexion (en windows) este le cambia el modo y todo parece funcioarn bien. Que pasa en Linux, que nunca le haz cambiado el modo y por lo tanto, aunque el sistema te lo detecte como un convertidor USB Serial el modo Modem nomas no va a pelar.

Solucion, regresa otra vez a windows, el programa ese de conexion tiene un menu y unas configuraciones, y en la ultima pestania te puedes configurar el modo de deteccion del dispositivo. Esto cambia la forma en que se trabajara el disp. permitiendote ponerle modo Modem y Disco o Solo Disco. Curiosamente, el Solo Disco funciona bien para que esta cosa funcione como Modem en Linux.

Una vez que he hecho esto, me he hecho lo de arriba y me detecta el dispositivo y me crea loque deberia ser ttyUSB0 y ttyUSB1

usb-storage: device scan complete
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbserial_generic 1-3:1.0: generic converter detected
usb 1-3: generic converter now attached to ttyUSB0
usbserial_generic 1-3:1.1: generic converter detected
usb 1-3: generic converter now attached to ttyUSB1
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
Y si usas wvdialconf ahorita te dira que el dispositivo en ttyUSB0 esta al puro pedo para funcionar como modem. Y listo. Si alguien me hubiera dicho esto hace 5 horas ahora estaria dormio y este post seria 5 horas mas viejo.

En fin, algo que me paso a mi y que tal vez te pase a ti tambien es que a pesar de que dmesg me dice que el dispositivo esta en ttyUSB{0,1} en /dev/ no hay ningun ttyUSB* tuve que hacer mis enlaces a manita a /dev/tts/USB0 y /dev/tts/USB1.

Luego, usas el programa que quieras para conectarte, wvdial me ha salido con un fallo de conexion, pero KPPP me ha dejado trabajar a gusto.

En fin, espero que te sea util este pequenio post. Al menos te podria ahorrar un buen tiempo en lo que averiguas porque el jodido aparato no funciona como debe en linux.

BAM

Update: En cofradia.org han publicado que los 3G de Telcel jalan en linux sin mayores problema ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Franklin-CDU-680-en-Slackware-Linux markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Franklin-CDU-680-en-Slackware-Linux Thu, 27 Sep 2007 01:01:06 -0500
<![CDATA[ Usando el widget creado anteriormente ]]>
widgetTest.ogg
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Usando-el-widget-creado-anteriormente markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Usando-el-widget-creado-anteriormente Fri, 14 Sep 2007 16:44:13 -0500
<![CDATA[ Un contenedor GTK Redimensionable al gusto. ]]> gtk.Fixed, Este contenedor nos permite poner widgets de manera estatica en nuestra aplicacion. Es decir, si la ventana cambia de tamanio los widgets no se redimencionaran y tampoco cambiaran de posicion. Pocos lo utilizan por esto, pero a veces es necesario.

Pues resulta que en una de las aplicaciones lo tengo asi, simplemente porque los widgets NO se tienen que mover ni cambiar de tamanio si la ventana se redimenciona, aqui yo lo veo como algo bueno. En fin, El problema del GtkFixed es que nomas no me cacha los eventos, y meterlo en un gtk.EventBox me parece no tan optimo, puesto que yo quiero que los eventos los cache el Widget, no un EventBox.

Mi primer intento de solucion: Crear una clase que herede de gtk.Fixed y cachar los eventos para que cuando el cursor este dentro de un punto determinado se pueda redimencionar al muy puro estilo de click-arrastra-suelta. Problema, gtk.Fixed no me cacha los eventos, incluso si se los agrego a manita con gtk.Fixed.add_events.

Segundo intento: Hereda primero de un gtk.EventBox y luego de un Fixed: Si cacha los eventos, No te muestra ni madres. Inviertelo, Si te dibuja, pero no te cacha los eventos... (ya me estoy desesperando)

La solucion?, Bueno, nunca le habia echado el ojo al gtk.Layout,
entonces heredo de un gtk.Layout primero, este no me cacha los eventos, pero, me permite dibujar como si fuera un gtk.DrawingArea aunque tienes que dibujar sobre el bin_window de tu layout (gtk.Layout.bin_window) en lugar del window como tipicamente se hace en gtk.DrawingArea. Bien, tu segunda herencia es de un EventBox para poder cachar las seniales, y listo face-smile.png .

Es importante que Primero se herede de gtk.Layout y luego de algun otro widget (gtk.DrawingArea tambien funciona) para que Gtk no reniegue al tratar de agregar widgets a tu gtk.Layout.

El codigo seria mas o menos asi (Estoy seguro que de alguna manera se puede mejorar):

class groupWidget(gtk.Layout,gtk.EventBox):
        '''
        Una version modificada del gtk.Fixed
        '
''
        def __init__(self):
                gtk.Layout.__init__(self)
                gtk.EventBox.__init__(self)
                self.__buttonPressed = False
                self.set_name('groupWidget')
                self.set_size_request(50,50)
                self.set_property('events',
                                gtk.gdk.EXPOSURE_MASK |
                                gtk.gdk.ENTER_NOTIFY_MASK|
                                gtk.gdk.POINTER_MOTION_MASK |
                                gtk.gdk.BUTTON_RELEASE_MASK |
                                gtk.gdk.BUTTON_PRESS_MASK )
                self.add_events(
                                gtk.gdk.EXPOSURE_MASK |
                                gtk.gdk.ENTER_NOTIFY_MASK|
                                gtk.gdk.POINTER_MOTION_MASK |
                                gtk.gdk.BUTTON_RELEASE_MASK |
                                gtk.gdk.BUTTON_PRESS_MASK )
                self.connect('expose-event',self.__exposeEvent)
                self.connect('motion-notify-event',
                                self.__motionNotify)
                self.connect('button-press-event',
                                self.__buttonPressEvent)
                self.connect('button-release-event',
                                self.__buttonReleaseEvent)
       
        def __motionNotify(self,widget,event):
                if self.__buttonPressed:
                        x,y = self.get_pointer()
                        if (x,y ) > (0,0):
                                self.set_size_request(x,y)
                                self.__lastWH= [x,y]
        def __buttonPressEvent(self,widget,event):
                w,h = self.__lastWH
                px,py = self.get_pointer()
                if event.button == 1:
                        if w > px > w-5 and  h > py > h-6:
                                self.__buttonPressed = True
       
        def __buttonReleaseEvent(self,widget,event):
                if event.button == 1:
                        self.__buttonPressed = False
        def __exposeEvent(self,widget,event):
                '''
                Encargada de dibujar el widget
                '
''
                context = self.bin_window.cairo_create()
                x,y,w,h = self.allocation
                self.__lastWH = [w,h]
                context.set_line_width(1)
                context.set_antialias(cairo.ANTIALIAS_NONE)
                #Dibujamos el relleno y el borde
                context.move_to(0,0)
                context.rectangle(1,0,w-1,h-1)
                context.rectangle(1,0,w-1,h-1)
                context.set_source_rgba(1,1,1,0.5)
                context.fill_preserve()
                context.set_source_rgb(0,0,0)
                context.stroke()
                #Dibujamos un pequenio rectangulito
                # en la parte inferior derecha.
                context.rectangle(w-5,h-6,5,5)
                context.set_source_rgb(0.5,0.5,0.5)
                context.stroke()
 
Y se deberia ver asi:


En el video se puede apreciar que el boton esta dentro del contenedor, por eso de corta cuando el tamanio del contenedor es menor (se pueden usar Scrollbars gracias a la capacidad de gtk.Layout. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Un-contenedor-GTK-Redimensionable-al-gusto markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Un-contenedor-GTK-Redimensionable-al-gusto Thu, 13 Sep 2007 16:23:52 -0500
<![CDATA[ Cambiar la fuente por defecto en Gvim ]]> Select Font...', luego, ejecuta esto en el modo comando:

:set gfn?
Esto te devuelve algo como

guifont=Fixed Semi-Condensed 8
copia y pegalo en tu ~/.vimrc y listo, solo asegurate de escapar los espacios con backslashes

:set guifont=Fixed\ Semi-Condensed\ 8
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Cambiar-la-fuente-por-defecto-en-Gvim markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Cambiar-la-fuente-por-defecto-en-Gvim Thu, 13 Sep 2007 09:15:09 -0500
<![CDATA[ Bon Echo ]]> se me hizo curioso ver 'Bon Echo' en lugar de Mozilla Firefox.

Firefox 2.0.0.6
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Bon-Echo markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Bon-Echo Wed, 12 Sep 2007 11:53:42 -0500
<![CDATA[ Comprendiendo el error ]]>
En fin, reprobe, pero una companiera que por lo general reprobaba aprovo, y no me sorprendi mucho, puesto que supe desde el examen porque saldria bien. Tenia una copia del examen que se habia aplicado a otro grupo, en otras palabras, ya lo tenia resuelto.

Obviamente, yo me moleste con el profesor, le pregunte que por que a mi me reprobaba, yo que jugue limpio y a ella que se copio el examen la estaba aprobando?. El profesor me tiro a loco. En la tarde le comente a mis padres sobre mi resultado, y trantado de justificarme (tratando de aminorar el reganio) les plantee la misma situacion que con el profesor: A mi me reprobaron, pero fue limpio, y a una companiera la aprobaron, pero fue por copia....

Mi papa nomas meneo la cabeza y me dijo: Y a ti que te preocupa si ella aprobo o reprobo, preocupate por ti, y cuanta razon tiene mi padre. Sin importar si mi companiera hubiera aprobado o no, YO estaba reprobado, y no tenia razon, ni motivo para meterla a ella en mi justificacion, el problema era mio, de nadie mas, ni siquiera del profesor.

Por que recuerdo esto?, por el primer post de Miguel de Icaza el dia 7 de Septiembre. SImplemente trata de justificar la licencia de Moonlight y su problema de patentes, como? Sacando a colacion licencias como la de Adobe, Java, Helix Player y Flash Player. Que tiene razon, son licencias mucho mas feas, pero Y QUE?, el tema no son las licencias de Adobe, Java, Helix y Flash; es Moonlight.

Ahora, esto, el mismo Miguel lo puso como respuesta a un comentario:

* What about microsoft patents? If I create my own linux distro or I
> use a distro that is not mainstream or just doesn't have a deal with
> the daemon.. err Microsoft.. like Novell has.. Will I have to suffer
> the shadow of Microsoft patents over Silverlight when using or
> developing Moonlight?

Not as long as you get/download Moonlight from Novell which will include
patent
coverage.
Que implica esto, que Moonlight no es libre redistribucion, por que? por problemas de patentes.

Ahora, se me vino a la mente, cuando parte de Java aun no era libre (parte, aun no lo es), pero recuerdo a Richard Stallman haciendo referencia de la "Java Trap", Basicamente, no importaba que tu hicieras Software Libre, si, obligas al usuario a utilizar Software Propietario. Es decir, es bueno que tu esfuerzo sea libre, y merece todo el respeto, pero, estas forzando a los usuarios a usar algo que NO es libre, vaya contradiccion no?.

Lo mismo pasa con Moonlight. Puede ser libre bajo la licencia LGPL/X11, pero, de patentes no es libre, y te obliga a usar un software con patentes, y peor aun, si llegas a hacer algun cambio a Moonlight, entonces, No lo puedes redistribuir, o mejor dicho, si puedes, pero, corres el riesgo de sufrir una demanda por infringir patentes, que chido no?.

El software libre, como tal, puede ser libre dependiendo del punto de vista, para miguel de Icaza y novell puede ser libre, si no te importan las patentes, puede ser libre para ti tambien, pero si quieres redistribuir o si (como a mi) te importan las patentes, entonces, No es libre. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Comprendiendo-el-error markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Comprendiendo-el-error Sat, 08 Sep 2007 08:53:36 -0500
<![CDATA[ Remember the good old days, ]]>

when CPU was singular?

]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Remember-the-good-old-days markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Remember-the-good-old-days Wed, 05 Sep 2007 08:17:37 -0500
<![CDATA[ Respuesta ]]>
Armando: En las escuela esta muy dificil que te ensenien a usar PHP, y esta aun mas dificil que te ensenien a usar Python, mas cabron aun, que te ensenien a usar GTK. Desafortunadamente en mexico las escuelas estan dedicadas a enseniar cosas como Java o .NET porque:

1.- Es un circulo vicioso, los profesores lo saben, lo ensenian a los alumnos, los alumnos aprenden, la mayoria de los alumnos no aprenden otra cosa, y cuando les toca enseniar solo pueden enseniar lo que saben, asi terminan dando Java.

2.- Muchas escuelas estan casadas con Microsoft, asi que por fuerza lo han de dar face-smile.png .

De PHP hay infinidad de libros, y tutoriales libres muy buenos por la red, el libro con el que yo empece con PHP es con el de 'Proyectos Profesionales con PHP' de editorial ANAYA,

De Python, te recomiendo el tutorial de python que esta en la documentacion de python, 'Dive Into Python' y 'How to think like a computer scientist learning with python' .

De Gtk, Hay un tutorial muy bueno en la documentacion de PyGTK.

Un comentario, si piensas aprender PHP para usar GTK, te recomiendo mejor aprender Python para usarlo con GTK. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Respuesta markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Respuesta Thu, 09 Aug 2007 15:35:56 -0500
<![CDATA[ Cambio de teclado a cucusa ]]>
Cuando pedi el teclado lo pedi en espanol, pero, no habia con quien lo pedi (el equipo de soporte de ICTC) pero habia en ingles, y dije, ps diunavez. Asi que no tengo enies, ni acentos, ni nada de eso (por el momento), hay un triquito que aldo ya me lo ensenio, pero aun no me acostumbro.

En fin, aldo y nibblesmx coinciden en que para programar el teclado en ingles es la reata, asi que vamos a ver que tal le hago, nomas me acostumbro al nuevo teclado.

DSC06899.JPG DSC06898.JPG DSC06900.JPG
]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Cambio-de-teclado-a-cucusa markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Cambio-de-teclado-a-cucusa Fri, 03 Aug 2007 14:39:18 -0500
<![CDATA[ Gtk Change Theme ]]> WindowMaker, WIndowMaker esta bien, me encanta porque
  1. Es muy ligero
  2. Me da la sensacion de que trabajo con otro manejador de ventanas (XFCE me hace sentir que ando en una version rebajada de GNOME, disculpen, asi lo siento, no es malo, claro que no, pero asi lo siento)
  3. Se ve chingon y te consigues viejas de a monton usando WindowMaker tongue.png
En fin. esta chidin el WindowMaker, de acuerdo a mis gustos no para usarlo siempre, pero si eventualmente cuando no quieres cargar todo el entorno de GNOME, lo malo es que las aplicaciones GTK se ven feisimas!!, simplemente porque no tienen ningun theme aplicado, funcionan igual, pero se ven fellonas.

Solucion: gtk+ 2.0 Change Theme. El chunchecito este les deja cambiar el theme de GTK sin tener que arrancar el demonio de configuracion de Gnome, prob??????© otro por ahi, pero como nomas no pel??????? ya se me olvido su nombre, ha si, gtk-theme-switcher o algo asi. En fin, si usan algun manejador de ventanas que no les pone el theme en GTK, usen este, esta muy bueno, y no me dio broncas en compilada. es mas, no necesitas instalarlo, solo compila y desde ahi corres el gtk-chtheme y listones. ]]>
http://islascruz.org/html/index.php?Blog/SingleView/id/Gtk-Change-Theme markuz@islascruz.org (Marco Antonio Islas Cruz) http://islascruz.org/html/index.php?Blog/SingleView/id/Gtk-Change-Theme Sun, 29 Jul 2007 14:44:51 -0500
<![CDATA[ Como dibujar un imagen (jpg, png, gif, etc..) en Cairo ]]>
def setPixbuf(self,pixbuf):
        if type(pixbuf) != gtk.gdk.Pixbuf:
                raise TypeError("Pixbuf debe ser %s recibido %s"%(gtk.gdk.Pixbuf, type(pixbuf)))
        self.__Pixbuf = pixbuf
        self.emit("expose-event",gtk.gdk.Event(gtk.gdk.EXPOSE))
def exposeEvent(self, widget,event):
        x,y,w,h = self.allocation
        try:
                context =  self.window.cairo_create()
        except AttributeError:
                return True
        if self.__Pixbuf != None:
                scaledPixbuf = self.__Pixbuf.scale_simple(ancho,
                                alto,
                                gtk.gdk.INTERP_BILINEAR)
                ct = gtk.gdk.CairoContext(context)
                ct.set_source_pixbuf(scaledPixbuf,BORDER_WIDTH,BORDER_WIDTH)
                context.paint(