<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mario Carrion &#187; english</title>
	<atom:link href="http://blog.mariocarrion.com/tag/english/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mariocarrion.com</link>
	<description>personal blog</description>
	<lastBuildDate>Tue, 18 Oct 2011 00:03:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Clickjacking and Facebook</title>
		<link>http://blog.mariocarrion.com/2011/03/01/clickjacking-and-facebook/</link>
		<comments>http://blog.mariocarrion.com/2011/03/01/clickjacking-and-facebook/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 05:29:32 +0000</pubDate>
		<dc:creator>Mario Carrion</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[2011]]></category>
		<category><![CDATA[clickjacking]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[march]]></category>

		<guid isPermaLink="false">http://blog.carrion.mx/?p=649</guid>
		<description><![CDATA[Sometimes it amuses me how stupid and innocent we (humans) are. Detecting a scam when getting an email or receiving a call saying you won X amount of dollars is easy to tell. But when a friend is saying something is more complicated to detect the trick. Because it&#8217;s your friend saying it and you [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it amuses me how stupid and innocent we (humans) are. Detecting a scam when getting an email or receiving a call saying you won X amount of dollars is easy to tell. But when a friend is saying something is more complicated to detect the trick. Because it&#8217;s your friend saying it and you somehow trust him/her. Right?</p>
<p>Tonight I noticed the following link on my Facebook wall:</p>
<p><a href="http://www.flickr.com/photos/mariocarrion/5488140914/" title="Clickjacking by Mario Carrion, on Flickr"><img src="http://farm6.static.flickr.com/5258/5488140914_8ed607ee8e.jpg" width="500" height="130" alt="Clickjacking" class="aligncenter"/></a></p>
<p>Yes the first thing you notice is the butt of what it looks like a &#8220;schoolgirl&#8221;. It looks fishy after you see that lots of your friends liked that link. Is a really good meme or a trick. Anyway after googling <em>victorialinn@live.com</em> (the email included in the source code of the page) I found an <a href="http://blog.kotowicz.net/2010/10/dont-textinfo-fightingguyinfo-facebook.html">interesting analysis</a> of all this. It is so fascinating. Take your time to read that blog. Is really interesting.</p>
<p><em>Disclaimer: I would lie to you by saying I didn&#8217;t click it. I did it indeed. Naughty Mario I shouldn&#8217;t had clicked it. But hey I&#8217;m a man!! The photo was depicting a schoolgirl. I had to click it!! <img src='http://blog.mariocarrion.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mariocarrion.com/2011/03/01/clickjacking-and-facebook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Die bug!</title>
		<link>http://blog.mariocarrion.com/2011/01/12/die-bug/</link>
		<comments>http://blog.mariocarrion.com/2011/01/12/die-bug/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 18:29:12 +0000</pubDate>
		<dc:creator>Mario Carrion</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[2011]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[january]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[resolutions]]></category>

		<guid isPermaLink="false">http://blog.carrion.mx/?p=647</guid>
		<description><![CDATA[Every once in a while I have to fix a bug that really drives me crazy. When this happens I usually recall one morning in the Computer Lab, back in college, one of my professors saying: &#8220;It doesn&#8217;t matter what you do, it doesn&#8217;t matter if you get upset or mad. You won&#8217;t beat the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/mariocarrion/5349091765/" title="Dead fly by Mario Carrion, on Flickr"><img src="http://farm6.static.flickr.com/5208/5349091765_7618eedc5b_m.jpg" width="240" height="160" alt="Dead fly" class="aligncenter" /></a></p>
<p>Every once in a while I have to fix a bug that really drives me crazy. When this happens I usually recall one morning in the Computer Lab, back in college, one of my professors saying: &#8220;It doesn&#8217;t matter what you do, it doesn&#8217;t matter if you get upset or mad. You won&#8217;t beat the computer&#8221;. That morning I didn&#8217;t understand what he was trying to say. Actually I thought he was making fun of us. Foolish Mario, he wasn&#8217;t trying to do that. He was trying to advice us: to always stay calm.</p>
<p>Software Development could be stressful sometimes, if you write software you already know that. Even if you are an experienced programmer knowing the tools and loving writing software you will eventually face a situation, usually fixing a bug, that will drive you crazy and this gets worse when time is constrained, which usually is. At that time is when you have to breath deeply and evaluate every single piece of the puzzle. That&#8217;s when you begin enjoying the situation.</p>
<p>Software programmers like to fix, create and understand stuff, specially people with technical background, like me. We are also kind of masochists and we never give up. In my case I like saving those tips because I&#8217;m certain that I will need that information in the future.</p>
<p>The following is a list of tips that I wanted to share (<strong>and save!</strong>) and might be useful when debugging and/or writing software on Linux. Almost all tips are for debugging shared libraries however most of them will work for anything else besides shared libraries. There might be similar alternatives for the other OSs, I&#8217;m not sure though. </p>
<h3>LD_DEBUG</h3>
<p>If you write shared libraries or if have built any package from source you might be familiar with LD_LIBRARY_PATH, an environment variable meant to be used for specifying directories where to search libraries first, recommended for <i>development and testing</i>, nothing else. Well there&#8217;s another environment variable called <i>LD_DEBUG</i>, really useful for debugging. It basically outputs all dl* function calls. Use <i>LD_DEBUG=help command</i> for help.</p>
<h3>nm and objdump</h3>
<p>GNU Binutils is fascinating and has several utilities, however most of the time you will use only those two commands. Reading the manual is the best way to understand them. Basically they help you by listing the symbols used and exported in object files. I&#8217;ve used this two commands to make sure the final file, after linking, doesn&#8217;t reference to any other library I don&#8217;t need, and to make sure my shared libraries export the functions that were meant to export.</p>
<h3>stop-on-solib-events</h3>
<p>One of the hidden gems of gdb. Setting <a href="http://sourceware.org/gdb/download/onlinedocs/gdb/Files.html#Files">stop-on-solib-events</a> to 1 will allow you to pause the execution of your program when a shared library is loaded. Really useful to know <i>why is my shared library loaded twice?</i> or <i>who is loading what library?</i>. See the other commands to specify files.</p>
<h3>ldd and pmap</h3>
<p>These are quite similar, both somehow tell you dependencies. The main difference is that <i>ldd</i> shows what libraries are required and <i>pmap</i> shows you process memory mapping, this means memory used and what libraries are actually used for the program.</p>
<h3>strace</h3>
<p>Traces all calls and signals used by the program. Using -e to define expressions is required unless you want to see lines and lines of calls. It could be useful if you want to profile you program.</p>
<h3>valgrind</h3>
<p>Required for profiling. In my previous job I used a lot since all applications were running 24&#215;7 and memory was one of the most important things. I usually leave the application running for days using the following arguments: <i>&#8211;leak-check=full &#8211;leak-resolution=high &#8211;show-reachable=yes</i> then I comeback <i>ctrl+c</i> and I see the results.</p>
<h3>Something else?</h3>
<p>I&#8217;m sure I&#8217;m missing more commands, some of them language/platform-specific however I&#8217;m also sure this list will help me recalling what to check first when debugging shared libraries.</p>
<h3>References</h3>
<ul>
<li><a href="http://tldp.org/HOWTO/Program-Library-HOWTO/index.html">Programming Howto</a></li>
<li><a href="http://www.gnu.org/software/binutils/">Binutils</a></li>
<li><a href="http://sourceware.org/gdb/download/onlinedocs/gdb/index.html">Debugging with gdb</a></li>
<li><a href="http://www.network-theory.co.uk/docs/valgrind/">Valgrind 3.3 &#8211; Advanced Debugging and Profiling</a>, you can buy the book on <a href="http://www.amazon.com/Valgrind-3-3-Debugging-Profiling-applications/dp/0954612051/ref=sr_1_1?ie=UTF8&#038;qid=1294854842&#038;sr=8-1">Amazon</a> too.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mariocarrion.com/2011/01/12/die-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mono Accessibility 2.1</title>
		<link>http://blog.mariocarrion.com/2010/08/26/mono-accessibility-2-1/</link>
		<comments>http://blog.mariocarrion.com/2010/08/26/mono-accessibility-2-1/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 14:09:37 +0000</pubDate>
		<dc:creator>Mario Carrion</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[a11y]]></category>
		<category><![CDATA[august]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[resolutions]]></category>
		<category><![CDATA[uia]]></category>

		<guid isPermaLink="false">http://blog.carrion.mx/?p=645</guid>
		<description><![CDATA[Last Tuesday, we presented Mono Accessibility 2.1. We worked really hard on this release. Our main goals were, among other things, to improve our UI Automation Client API implementation, polish the interaction with at-spi2, better Moonlight accessibility and to handle custom and client-side providers. The great work made by all the contributors was the reason [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.flickr.com/photos/mariocarrion/4886351160/" title="Candles by Mario Carrion, on Flickr"><img src="http://farm5.static.flickr.com/4136/4886351160_d6472b6aea_m.jpg" width="240" height="160" alt="Candles" class="aligncenter" /></a>
</p>
<p>
Last <a href="http://mono-project.com/Accessibility:_Release_Notes_2.1">Tuesday</a>, we presented <a href="http://mono-project.com/Accessibility">Mono Accessibility</a> 2.1. We worked really hard on this release. Our main goals were, among other things, to improve our <a href="http://msdn.microsoft.com/en-us/library/ms753107.aspx">UI Automation</a> Client API implementation, polish the interaction with at-spi2, better Moonlight accessibility and to handle custom and client-side providers. The great work made by all the contributors was the reason this release accomplished those goals.
</p>
<h3>What happened since last time?</h3>
<p>
Explaining this release is kind of hard if you are not involved in Mono Accessibility, and even more difficult if you&#8217;re not involved in Accessibility at all. However, if you&#8217;re familiar with Mono and .NET you are, also, aware of the possibility of developing .NET-based applications that run on both platforms with minor* changes or no changes at all. But, before the implementation of Mono Accessibility, there was something missing: all those applications were not accessible.
</p>
<p>
This meant two things. First Atk-based Assistive Technologies (ATs) were not able to access Windows Forms nor Silverlight applications. Second .NET-based ATs using UI Automation were not able to run on Mono. Making them useless for people requiring Accessibility to interact with software running Mono on Linux**.
</p>
<p>
After the implementation of Mono Accessibility, we have: </p>
<ul>
<li>UI Automation API Framework</li>
<li>Bridge between UI Automation and ATK</li>
</ul>
<p>
This way ATs using either Accessibility Technology, Atk or UI Automation, will be able to interact with Gtk+, Windows Forms and Silverlight applications, with no changes at all.
</p>
<h3>This is what happened</h3>
<p>
In the following video: (if you are using a RSS reader click <a href="http://www.youtube.com/watch?v=NwMXYXGincE">this link</a>) <a href="http://live.gnome.org/Gcalctool">gcalctool</a> is launched and an application, using UI Automation Client API, interacts with it, clicking buttons &#8220;2&#8243;, &#8220;+&#8221;, &#8220;3&#8243; and &#8220;=&#8221;.
</p>
</p>
<p>
Then <a href="http://github.com/mattguo/UIAExplorer">UIA Explorer</a>, a .NET- based application using UI Automation Client API, also interacts with gcalctool, if you pay attention you will notice that UIA Explorer also lists all other Gtk+ based applications, such as Nautilus and the GNOME Panel.
</p>
<p>
Finally Mozilla Firefox is executed (both Novell Moonlight with Accessibility Support and Novell Moonlight Accessibility Extensions plugins were installed prior running it) and an Atk-based Accessility Debugger, <a href="http://live.gnome.org/Accerciser">Accerciser</a>, is launched to interact with the Moonlight application.
</p>
<p>
<object width="425" height="330"><param name="movie" value="http://www.youtube.com/v/NwMXYXGincE?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/NwMXYXGincE?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="330"></embed></object>
</p>
<p>The source code used to test GCalctool is the following:</p>
<pre class="brush:csharp; ruler:true">// gmcs -pkg:mono-uia gcalc.cs &#038;&#038; mono gcalc.exe

using System;
using System.Linq;
using System.Windows.Automation;

namespace Mono.A11y.Examples {
	public class GCalc {
		public static void Main (string []args)
		{
			AndCondition cond
				= new AndCondition (new PropertyCondition (AutomationElementIdentifiers.ControlTypeProperty,
				                                            ControlType.Window),
				                    new PropertyCondition (AutomationElementIdentifiers.NameProperty, "Calculator"));
			var gcalc = AutomationElement.RootElement.FindFirst (TreeScope.Children, cond);

			cond = new AndCondition (new PropertyCondition (AutomationElementIdentifiers.ControlTypeProperty,
			                                                 ControlType.Button),
			                         new PropertyCondition (AutomationElementIdentifiers.NameProperty, "Add"));
			var addButton = gcalc.FindFirst (TreeScope.Descendants, cond);

			cond = new AndCondition (new PropertyCondition (AutomationElementIdentifiers.ControlTypeProperty,
			                                                 ControlType.Button),
			                         new PropertyCondition (AutomationElementIdentifiers.NameProperty, "Numeric 2"));
			var Button2 = gcalc.FindFirst (TreeScope.Descendants, cond);

			cond = new AndCondition (new PropertyCondition (AutomationElementIdentifiers.ControlTypeProperty,
			                                                 ControlType.Button),
			                         new PropertyCondition (AutomationElementIdentifiers.NameProperty, "Numeric 3"));
			var Button3 = gcalc.FindFirst (TreeScope.Descendants, cond);

			cond = new AndCondition (new PropertyCondition (AutomationElementIdentifiers.ControlTypeProperty,
			                                                 ControlType.Button),
			                         new PropertyCondition (AutomationElementIdentifiers.NameProperty, "Calculate result"));
			var calcButton = gcalc.FindFirst (TreeScope.Descendants, cond);

			cond = new AndCondition (new PropertyCondition (AutomationElementIdentifiers.ControlTypeProperty,
			                                                 ControlType.Button),
			                         new PropertyCondition (AutomationElementIdentifiers.NameProperty, "Calculate result"));
			var resultText = gcalc.FindFirst (TreeScope.Descendants, cond);

			// Clicking buttons
			InvokePattern addInvoke = (InvokePattern) addButton.GetCurrentPattern (InvokePattern.Pattern);
			InvokePattern Invoke2 = (InvokePattern) Button2.GetCurrentPattern (InvokePattern.Pattern);
			InvokePattern Invoke3 = (InvokePattern) Button3.GetCurrentPattern (InvokePattern.Pattern);
			InvokePattern calcInvoke = (InvokePattern) calcButton.GetCurrentPattern (InvokePattern.Pattern);

			System.Console.WriteLine ("Pressing \"2\"");
			System.Threading.Thread.Sleep (500);
			Invoke2.Invoke ();

			System.Console.WriteLine ("Pressing \"+\"");
			System.Threading.Thread.Sleep (500);
			addInvoke.Invoke ();

			System.Console.WriteLine ("Pressing \"3\"");
			System.Threading.Thread.Sleep (500);
			Invoke3.Invoke ();

			System.Console.WriteLine ("Pressing \"=\"");
			System.Threading.Thread.Sleep (500);
			calcInvoke.Invoke ();
		}
	}
}</pre>
<h3>Where do I get it?</h3>
<p>
If you installed <a href="2010/03/03/accessibility-in-moonlight/">Mono Accessibility 2.0</a> an option to upgrade should be available now, if not Mono Accessibility is available for a variety of Linux distributions, including:</p>
<ul>
<li>openSUSE 11.2 <a href="http://download.opensuse.org/repositories/Mono:/UIA/openSUSE_11.2/mono-uia.ymp">1-Click Install</a></li>
<li>Ubuntu Karmic Koala <a href="https://edge.launchpad.net/~mono-a11y/+archive/releases">Package Archive on Launchpad</a></li>
<li>Fedora 12 <a href="http://download.opensuse.org/repositories/Mono:/UIA/Fedora_12/ Repository">openSUSE Build Service<a /></a></li>
</ul>
<p>Moonlight applications require the following extra steps:</p>
<ul>
<li>Install the updated <em>xulrunner</em> package from the above repositories. <em>(Required until patch on <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=480317">bug #480317</a>) gets approved.</em></li>
<li>Install Novell Moonlight with Accessibility Support for <a href="http://www.mono-a11y.org/archive/moonlight-plugins/2.3.99.0accessibility/novell-moonlight-2.3.99.0accessibility-i586.xpi">32 bit</a> or <a href="http://www.mono-a11y.org/archive/moonlight-plugins/2.3.99.0accessibility/novell-moonlight-2.3.99.0accessibility-x86_64.xpi"> 64 bit</a>.</li>
<li>Install <a href="http://www.mono-a11y.org/archive/moonlight-a11y-plugins/2.1/novell-moonlight-a11y-2.1-noarch.xpi">Novell Moonlight Accessibility Extensions</a></li>
</ul>
<p>Have fun and if you find any bug with this release, please <a href="https://bugzilla.novell.com/enter_bug.cgi?product=UI%20Automation file bugs">file it</a>. If you want to contribute or need specific assistance, please join our <a href="http://forge.novell.com/mailman/listinfo/mono-a11y">mailing list</a>, or drop in <a href="irc://irc.gimp.org/mono-a11y">#mono-a11y</a> on irc.gimp.org.</p>
<p>
* <em>Of course this depends on what APIs you are using. If you want to know how compatible is your application try <a href="http://www.mono-project.com/MoMA">MoMA</a>.</em><br />
** <em>Notice however, even though Mono is muti platform and UI Automation is included in both Mono and Silverlight, in order to allow other ATs running on other platforms, different than Linux, you will require to implement an specific bridge to talk to you OS Accessibility Layer.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mariocarrion.com/2010/08/26/mono-accessibility-2-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hackweek V: YaSTroid</title>
		<link>http://blog.mariocarrion.com/2010/06/22/hackweek-v-yastroid/</link>
		<comments>http://blog.mariocarrion.com/2010/06/22/hackweek-v-yastroid/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 19:54:14 +0000</pubDate>
		<dc:creator>Mario Carrion</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[hackweek]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[june]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[resolutions]]></category>
		<category><![CDATA[yastroid]]></category>

		<guid isPermaLink="false">http://blog.carrion.mx/?p=643</guid>
		<description><![CDATA[Hackweek is an excellent opportunity to try something new. Hackweek V was not the exception. From June 7th to June 11th I joined a fantastic group of hackers to implement YaSTroid, our Android Front-end to WebYaST. The week was fun. Learning new stuff, in this case Android, always helps me to see things different and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://features.opensuse.org/hackweek">Hackweek</a> is an excellent opportunity to try something new. Hackweek V was not the exception. From June 7th to June 11th I joined a fantastic group of hackers to implement <a href="http://gitorious.org/opensuse/yastroid">YaSTroid</a>, our Android Front-end to <a href="http://en.opensuse.org/YaST/Web">WebYaST</a>.</p>
<p>The week was fun. Learning new stuff, in this case <a href="http://www.android.com/">Android</a>, always helps me to see things different and somehow makes me appreciate other development platforms. Recalling Java was not that difficult. Honestly I thought Java had something new to offer to all developers, but it seems that Java hasn&#8217;t changed dramatically in years.</p>
<h3>WebYaST and YaSTroid</h3>
<p>WebYaST is an open source project which goal is to provide a web front-end for YaST functionality to enable remote 1:1 management. The interaction is basically like this (see the <a href="http://en.opensuse.org/YaST/Web/Architecture">detailed diagram</a> to get more information):</p>
<p><a href="http://www.flickr.com/photos/mariocarrion/4725368064/" title="WebYaST by Mario Carrion, on Flickr"><img src="http://farm2.static.flickr.com/1203/4725368064_2e9b9b8c0e.jpg" width="181" height="305" alt="WebYaST" class="aligncenter" /></a></p>
<p>WebYaST and YaSTroid communicate using the <a href="http://en.opensuse.org/YaST/Web/Development/REST_Service_Documentation">REST API</a>. If you have installed WebYaST you can access the documentation locally using:</p>
<pre>http://localhost/restdoc</pre>
<p>This website should show you a list of available methods and their arguments, if any, and examples showing you how to use them and the data returned. Pretty straightforward. Is also good idea to read the <a href="http://gitorious.org/opensuse/yast-rest-service">source code</a> in case the documentation is missing. Everything is written in Ruby, so it should really simple to read.</p>
<h3>Getting YaSTroid</h3>
<p>Developing YaSTroid requires having <a href="http://developer.android.com/sdk/index.html">Eclipse and Android</a> installed. After that clone the repository. Make sure you are using Android 1.5 when defining your virtual device.</p>
<pre>git clone git@gitorious.org:opensuse/yastroid.git</pre>
<h3>Result</h3>
<p><a href="http://www.flickr.com/photos/mariocarrion/4724778779/" title="WebYaST + YaSTroid by Mario Carrion, on Flickr"><img src="http://farm2.static.flickr.com/1030/4724778779_8956a64b5f_m.jpg" width="240" height="127" alt="WebYaST + YaSTroid" class="aligncenter"  /></a>&nbsp;&nbsp;<a href="http://www.flickr.com/photos/mariocarrion/4725501446/" title="WebYaST + YaSTroid by Mario Carrion, on Flickr"><img src="http://farm2.static.flickr.com/1200/4725501446_c826ac04d4_m.jpg" width="240" height="126" alt="WebYaST + YaSTroid"  class="aligncenter"  /></a></p>
<p>Stephen and Scott recorded a video demoing the application using a real device, I recommend watching it full-screen to see all details:</p>
<p>
<div><embed type="application/x-shockwave-flash" src="http://www.novell.com/common/flash/jwplayer/player.swf" width="360" height="240" style="undefined" id="media" name="media" bgcolor="#000000" quality="high" allowfullscreen="true" allowscriptaccess="always" flashvars="file=http://cdn.novell.com/cached/video/2010/misc/yastroid.flv&amp;backcolor=333333&amp;frontcolor=eeeeee&amp;autostart=false&amp;skin=http://www.novell.com/common/flash/jwplayer/skin_fy09launch.swf&amp;plugins=gapro-1&amp;gapro.accountid=UA-9518721-1"></embed></div>
</p>
<p>If you can&#8217;t see the embedded video <a href="http://www.novell.com/common/flash/play.php?media=http://cdn.novell.com/cached/video/2010/misc/yastroid.flv">follow this link</a>.</p>
<h3>Useful links</h3>
<ul>
<li><a href="http://www.decriptor.com/2010/06/22/yastroid/">YaSTroid</a> by Stephen Shaw</li>
<li><a href="http://en.opensuse.org/YaST">YaST &#8211; openSUSE</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mariocarrion.com/2010/06/22/hackweek-v-yastroid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Comparing Ruby and C#: Equality</title>
		<link>http://blog.mariocarrion.com/2010/03/17/comparing-ruby-and-c-equality/</link>
		<comments>http://blog.mariocarrion.com/2010/03/17/comparing-ruby-and-c-equality/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 17:42:12 +0000</pubDate>
		<dc:creator>Mario Carrion</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[march]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[resolutions]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby&c#]]></category>

		<guid isPermaLink="false">http://blog.carrion.ws/?p=637</guid>
		<description><![CDATA[While reading The Ruby Programming Language I wrote a couple of notes about the language comparing it to C#. This is the first post of the series talking about those notes. C# and Ruby share a similar syntax to compare equality in objects. Both use the operator equals (==) and, at least, one method to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/mariocarrion/4439073605/" title="Beauty by Mario Carrion, on Flickr"><img src="http://farm3.static.flickr.com/2792/4439073605_ef6885dd43_m.jpg" width="240" height="180" alt="Beauty" class="aligncenter" /></a></p>
<p>While reading <a href="2010/01/21/the-ruby-programming-language/">The Ruby Programming Language</a> I wrote a couple of notes about the language comparing it to C#. This is the first post of the series talking about those notes.</p>
<p>C# and Ruby share a similar syntax to compare equality in objects. Both use the operator equals (==) and, at least, one method to compare. Ruby uses <em>equal?</em> and <em>eql?</em>, C# uses <em>Equals</em>. Also, both support overriding the equals (==) operator to provide a different logic in case that&#8217;s required. The methods&#8217; name are different but they work pretty much the same.</p>
<p>Understanding the difference between both languages is really simple. If you already know the difference between reference types and values types you are pretty much all set.</p>
<h3>Ruby</h3>
<h4>Method equal?</h4>
<p>Method used to test reference equality in two objects. For example:</p>
<pre class="brush:ruby">#!/usr/bin/env ruby

a = 0
b = 0.0
c = b
d = e = 0

# "false" pointer c points to b, and b and a
# are different types.w
puts "c.equal?(a) #{c.equal?(a)}"
# "false" b and a are different types
puts "b.equal?(a) #{b.equal?(a)}"
# "true" Same type, same value.
puts "d.equal?(e) #{d.equal?(e)}"</pre>
<h4>Method eql?</h4>
<p>Synonym of equal?, not strict type conversion. Notice Hash classes uses this method for creating the hash, so if two values are the same the hash method should return the same value.</p>
<pre class="brush:ruby">#!/usr/bin/env ruby

a = 0
b = 0.0
c = b
d = e = 0

# "false" Pointer c points to b, and b and a are different types
puts "c.eql?(a) #{c.eql?(a)}"
# "false" Different types
puts "b.eql?(a) #{b.eql?(a)}"
# "true" Same type, same value.
puts "d.eql?(e) #{d.eql?(e)}"</pre>
<h4>Operator equals (==)</h4>
<p>By default, in Object class, it&#8217;s a synonym of equal?. Tests reference equality.</p>
<pre class="brush:ruby">#!/usr/bin/env ruby

a = 0
b = 0.0
c = b
d = e = 0

# "true" Even when pointer c points to b, and b and a
# are different types, the value is the same
puts "c == a #{c == a}"
# "true" Type is casted to allow comparing them
puts "b == a #{b == a}"
# "true" Same type, same value.
puts "d == e #{d == e}"</pre>
<h3>C#</h3>
<p>Before explaining the equality options, notice one important difference between Ruby and C#.</p>
<p><strong>First</strong>, Ruby is a <strong>dynamic typed language</strong>. When declaring variables there&#8217;s no <em>meaning</em> of <em>variable type</em>, all variables can be used to identify instances of different types depending on the situation. For example, we can define a variable <em>x</em> to act as a <em>string</em>, and then use the same variable <em>x</em> to act as an <em>integer</em>, this doesn&#8217;t mean we are converting the string to integer, this means we are using the same pointer (variable x) for two different types, string and integer, pointing to two different addresses in memory. For example:</p>
<pre class="brush:ruby">#!/usr/bin/env ruby

a = "I'm string"
# Output: "a Value: 'I'm string' Class: 'String'"
puts "a Value: '#{a}' Class: '#{a.class}'"

# Output: "a Value: '10.0' Class: 'Float'"
a = 10.0
puts "a Value: '#{a}' Class: '#{a.class}'"</pre>
<p>C# is a <strong>static typed language</strong>, all variables must indicate their type before instantiating an object. For example, when declaring a variable <em>x</em> of type <em>string</em>, you will be able to create an instance of <em>string</em>, <strong>only</strong>, there&#8217;s no way to &#8220;reuse&#8221; <em>x</em> as an <em>integer</em> in the same scope. Try to compile the following example, it <strong>will</strong> fail:</p>
<pre class="brush:csharp">public class RubyAndCSharp {

	public static void Main (string []args) {
		string x = "I'm string";
		System.Console.WriteLine ("a Value: '{0}' Class: '{1}'", x, x.GetType ());

		x = 10.0; // It will fail here: "error CS0029: Cannot implicitly convert type `double' to `string'"
		System.Console.WriteLine ("a Value: '{0}' Class: '{1}'", x, x.GetType ());
	}
}</pre>
<p><strong>Second</strong>, memory management. Both languages manage memory automatically: by default all memory is created and released automatically, there is no need to explicitly release or allocate memory, unless the programmer wants to do so. However, in C# there&#8217;s a &#8220;difference&#8221; between types. There are two <em>type categories</em>: <a href="http://msdn.microsoft.com/en-us/library/s1ax56ch.aspx">Value Type</a> and <a href="http://msdn.microsoft.com/en-us/library/490f96s2.aspx">Reference Type</a>. The difference, related to memory use, is the way they work and the addresses in memory they use. Declaring value types automatically allocates memory, declaring reference types declares a pointer and the memory is allocated when the object pointed by the variable is instantiated. The Value Types are allocated in the <a href="http://en.wikipedia.org/wiki/Stack-based_memory_allocation">stack</a> and the Reference Types are allocated in the <a href="http://en.wikipedia.org/wiki/Dynamic_memory_allocation">heap</a>.</p>
<p>This difference is really important. Comparing two instances of objects with different &#8220;category&#8221;, one value type and one reference type, does not work, it just fails. Is like comparing an apple to an orange. Is comparing a value stored in the stack to a value stored in the heap. We can&#8217;t compare them without writing any extra code.</p>
<p>And this extra code means using the base class <em>object</em> as the pointer for different types, because both types, value type and reference type, are subclasses of object, in one way or another. Let&#8217;s try to compile the following example:</p>
<pre class="brush:csharp">public class RubyAndCSharp {

	public static void Main (string []args) {
		object x = "I'm string";
		// Output: "a Value: 'I'm string' Class: 'System.String'"
		System.Console.WriteLine ("a Value: '{0}' Class: '{1}'", x, x.GetType ());

		x = 10.0;
		// Output: "a Value: '10' Class: 'System.Double'"
		System.Console.WriteLine ("a Value: '{0}' Class: '{1}'", x, x.GetType ());
	}
}</pre>
<p>After this short (or long?) explanation we are ready to see talk about the methods.</p>
<h4>Method Object.Equals()</h4>
<p>Is used to test reference equality in reference types and bitwise equality in value types. For example:</p>
<pre class="brush:csharp">public class RubyAndCSharp {

	class MyClass {
		public string Name { get; set; }
		public override string ToString () { return Name; }
	}

	public static void Main (string []args) {
		// object.Equals in Reference Types uses address memory
		MyClass myClass0 = new MyClass () { Name = "test" };
		MyClass myClass1 = myClass0;

		System.Console.WriteLine ("object.Equals('{0}','{1}') = {2}", myClass0, myClass1, object.Equals (myClass0, myClass1));

		// Let's try again. This will return false. myClass1 and myClass2 are different instances
		myClass1 = new MyClass () { Name = "test" };

		System.Console.WriteLine ("object.Equals('{0}','{1}') = {2}", myClass0, myClass1, object.Equals (myClass0, myClass1));

		// It doesn't matter myInt0 and myInt1 are different variables, equality will be true.
		int myInt0 = 1;
		int myInt1 = 1;

		System.Console.WriteLine ("object.Equals('{0}','{1}') = {2}", myInt0, myInt1, object.Equals (myInt0, myInt1));
	}
}</pre>
<h4>Operator equals (==)</h4>
<p>Is, basically, a synonym of object.Equals, same rules apply.</p>
<pre class="brush:csharp">public class RubyAndCSharp {

	class MyClass {
		public string Name { get; set; }
		public override string ToString () { return Name; }
	}

	public static void Main (string []args) {
		// == in Reference Types uses address memory
		MyClass myClass0 = new MyClass () { Name = "test" };
		MyClass myClass1 = myClass0;

		System.Console.WriteLine ("object.Equals('{0}','{1}') = {2}", myClass0, myClass1, myClass0 == myClass1);

		// Let's try again. This will return false. myClass1 and myClass2 are different instances
		myClass1 = new MyClass () { Name = "test" };

		System.Console.WriteLine ("object.Equals('{0}','{1}') = {2}", myClass0, myClass1, myClass0 == myClass1);

		// It doesn't matter myInt0 and myInt1 are different variables
		int myInt0 = 1;
		int myInt1 = 1;

		System.Console.WriteLine ("object.Equals('{0}','{1}') = {2}", myInt0, myInt1, myInt0 == myInt1);
	}
}</pre>
<h4>Operator Object.ReferenceEquals()</h4>
<p>Pretty straightforward, tests reference:</p>
<pre class="brush:csharp">public class RubyAndCSharp {

	class MyClass {
		public string Name { get; set; }
		public override string ToString () { return Name; }
	}

	public static void Main (string []args) {
		// Object.ReferenceEquals in Reference Types uses address memory
		MyClass myClass0 = new MyClass () { Name = "test" };
		MyClass myClass1 = myClass0;

		System.Console.WriteLine ("object.Equals('{0}','{1}') = {2}", myClass0, myClass1, System.Object.ReferenceEquals (myClass0, myClass1));

		// Let's try again. This will return false. myClass1 and myClass2 are different instances
		myClass1 = new MyClass () { Name = "test" };

		System.Console.WriteLine ("object.Equals('{0}','{1}') = {2}", myClass0, myClass1, System.Object.ReferenceEquals (myClass0, myClass1));

		// This will also return false.
		int myInt0 = 1;
		int myInt1 = 1;

		System.Console.WriteLine ("object.Equals('{0}','{1}') = {2}", myInt0, myInt1, System.Object.ReferenceEquals (myInt0, myInt1));
	}
}</pre>
<h4>Colophon</h4>
<p>Sometimes you will have to use an <strong>object</strong> reference to refer to both types, value and reference, if you are planning to compare their value you have to use the static method <strong>object.Equals(a,b)</strong>. Using the operator equals (==) will always return false, because of the <a href="http://msdn.microsoft.com/en-us/library/yz2be5wk(VS.80).aspx">boxing/unboxing</a>:</p>
<pre class="brush:csharp">public class RubyAndCSharp {

	public static void Main (string []args) {
		string str0 = "hola";
		string str1 = "hola";

		object obj0 = str0;
		object obj1 = str1;

		System.Console.WriteLine ("Equals: {0}, Using ==: {1}, object.Equals {2}",
		                          obj0.Equals (obj1), // True
		                          obj0 == obj1, // True
		                          object.Equals (obj0, obj1)); // True

		bool bool0 = true;
		bool bool1 = true;

		obj0 = bool0;
		obj1 = bool1;

		System.Console.WriteLine ("Equals: {0}, ==: {1}, object.Equals {2}",
		                          obj0.Equals (obj1), // True
		                          obj0 == obj1, // False
		                          object.Equals (obj0, obj1)); // True

	}
}</pre>
<p><em>Updated 2010-03-17</em>: Thanks to <em>sukru</em> for noticing the error in the examples.</p>
<p><em>Updated 2010-03-18</em>: Fixed typos, thanks to <em>yoeri</em> and <em>doza</em> noticing them.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mariocarrion.com/2010/03/17/comparing-ruby-and-c-equality/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Accessibility in Moonlight</title>
		<link>http://blog.mariocarrion.com/2010/03/03/accessibility-in-moonlight/</link>
		<comments>http://blog.mariocarrion.com/2010/03/03/accessibility-in-moonlight/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 18:02:27 +0000</pubDate>
		<dc:creator>Mario Carrion</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[a11y]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[march]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[uia]]></category>

		<guid isPermaLink="false">http://blog.carrion.ws/?p=639</guid>
		<description><![CDATA[An important milestone happened on Friday, February 26: Mono Accessibility 2.0 was released. It&#8217;s important because all applications running on Moonlight 2.0, or greater, will be accessible from now on. Accessibility? If you are not familiar with this word, Accessibility, it might mean nothing to you and, probably, you will need a more formal definition: [...]]]></description>
			<content:encoded><![CDATA[<p>An important milestone happened on Friday, February 26: <a href="http://mono-project.com/Accessibility">Mono Accessibility</a> 2.0 <a href="http://mono-project.com/Accessibility:_Release_Notes_2.0">was released</a>. It&#8217;s important because all applications running on <a href="http://www.mono-project.com/Moonlight">Moonlight</a> 2.0, or greater, will be accessible from now on.</p>
<h3>Accessibility?</h3>
<p>If you are not familiar with this word, <em>Accessibility</em>, it might mean nothing to you and, probably, you will need a more <em>formal</em> definition:</p>
<blockquote><p>&#8220;<em>Accessibility is a general term used to describe the degree to which a product, device, service, or environment is accessible by as many people as possible. Accessibility can be viewed as the <strong>ability to access</strong> and possible benefit of some system or entity. Accessibility is often used to focus on people with disabilities and their right of access to entities, often through use of assistive technology.&#8221; <a href="http://en.wikipedia.org/wiki/Accessibility">Wikipedia</a></em></p></blockquote>
<p>You have interacted with Accessibility in real life, even if this is your first time reading this word. Have you seen those tiny bumps on the floor when taking the subway? Wheelchairs ramps or the dots on elevator buttons? Have you heard that noise, like beeping, when crossing the street? Have you noticed the audio jack in some ATMs?</p>
<p>These are real life examples of Accessibility. Accessibility in software is similar, it&#8217;s basically the degree of interaction between your software and people with temporal or permanent disabilities. People who can only use the keyboard or the mouse, people with low vision, blind people or people with hearing disabilities. All of them will be able to interact and use your application only if it&#8217;s accessible. That&#8217;s why Accessibility is important.</p>
<h3>Accessibility and Moonlight</h3>
<p><a href="http://www.silverlight.net/">Microsoft Silverlight</a> is web application framework for building media experiences and rich interactive applications for the Web. Moonlight is an open source implementation of Silverlight. Besides providing a rich experience for the web, applications running on Moonlight are now available for people with disabilities, allowing them to interact and use these applications. The interaction between these new applications and existent Accessibility Technologies (ATs), such as screen readers, is the same. All existent ATs are reused, it&#8217;s like interacting with any other desktop application. ATs in GNOME should work right now without any change and, if any change is required, it will help to provide a better integration with this framework.</p>
<h3>Implementation</h3>
<p><a href="http://www.flickr.com/photos/mariocarrion/4402576905/" title="Moonlight Atk Bridge by Mario Carrion, on Flickr"><img src="http://farm3.static.flickr.com/2745/4402576905_5c2ec4cefd.jpg" width="419" height="230" alt="Moonlight Atk Bridge" class="aligncenter" /></a></p>
<p><em>Refer to <a href="http://www.mono-project.com/Accessibility:_Architecture">Accessibility Architecture</a> for a detailed explanation of the complete architecture.</em></p>
<p>In both Accessibility implementations, Silverlight and Moonlight, <a href="http://msdn.microsoft.com/en-us/library/ms747327.aspx">Microsoft UI Automation</a> is used for interacting and exposing data of UI elements of the application. These data are used by ATs to access and manipulate those UI elements. Properties such as visibility, sensitivity or interaction, are exposed by <a href="http://msdn.microsoft.com/en-us/library/ms747229.aspx">Automation Peers</a> (also known as Automation Providers), along with <a href="http://msdn.microsoft.com/en-us/library/ms742306.aspx">Automation Patterns</a> to indicate the type of interaction in the control, for example: accepting selection or allowing clicking. There&#8217;s always a relation one to one, one Automation Peer and one Control. The properties are available to ATs through the information exposed by the UIA/Atk Bridge module. This module is loaded by the Moonlight application to interact with ATs. It keeps a tree of <a href="http://library.gnome.org/devel/atk/">Atk</a> objects to represent every UI Automation element in the Moonlight application.</p>
<p>The interaction between ATs and Moonlight applications is like this:</p>
<ol>
<li>An AT requests information about the Moonlight control in Firefox.</li>
<li>Firefox asks Moonlight this information.</li>
<li>Moonlight uses the <em>A11yHelper</em> to load the UIA/Atk bridge module and returns the <a href="http://anonsvn.mono-project.com/viewvc/trunk/uia2atk/MoonAtkBridge/MoonAtkBridge/Moonlight.AtkBridge/RootVisualAdapter.cs">root accessible</a>, it represents the control&#8217;s Automation Peer: <a href="http://anonsvn.mono-project.com/viewvc/trunk/moon/class/System.Windows/System.Windows.Automation.Peers/WindowAutomationPeer.cs">WindowAutomationPeer</a>.</li>
<li>From now on, new AutomationPeers will be mapped, one-to-one, to an Atk.Object. All data requested by an AT will be accessed through the associated Atk.Object, and this one will return information contained in the AutomationPeer.</li>
</ol>
<p>If you are curious you can checkout the sources to see the final implementation:</p>
<ul>
<li><a href="http://anonsvn.mono-project.com/viewvc/trunk/moon/">Moonlight</a>: important bits located in <em>class/System.Windows/System.Windows.Automation.Peers/</em> and <em>class/System.Windows/Mono/A11yHelper.cs</em>.
  </li>
<li><a href="http://anonsvn.mono-project.com/viewvc/trunk/uia2atk/">Moonlight UIA/Atk Bridge</a>: implementation located in <em>MoonAtkBridge/</em>.</li>
</ul>
<h3>How do I install it?</h3>
<p>Before installing, make sure <a href="http://library.gnome.org/users/user-guide/stable/goscustaccess-11.html.en">Assistive Technologies</a> is enabled, then add the Mono UIA repository  (see <a href="http://mono-project.com/Accessibility:_Release_Notes_2.0#Downloading">Downloading</a>) and follow the instructions (taken from <a href="http://mono-project.com/Accessibility:_Release_Notes_2.0#Installing">Installing</a>):</p>
<ol>
<li>Install the updated <em>xulrunner</em> package from the above repositories. (This is required until Firefox 3.7 because of <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=480317">bug #480317</a>)</li>
<li>Install <em>Novell Moonlight with Accessibility Support</em> for <a href="http://mono-a11y.org/releases/2.0/i586/novell-moonlight.xpi">32 bit</a> or <a href="http://mono-a11y.org/releases/2.0/x86_64/novell-moonlight.xpi">64 bit</a>.</li>
<li>Install <em><a href="http://mono-a11y.org/releases/2.0/noarch/novell-moonlight-a11y.xpi">Novell Moonlight Accessibility Extensions</a></em></li>
<li>Restart Firefox</li>
<li>Enjoy!</li>
</ol>
<h3>Useful links</h3>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/windows/bb735024.aspx">Accessibility. Windows Developer Center</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/cc707824(VS.95).aspx">Silverlight: Accessibility Overview</a></li>
<li><a href="http://projects.gnome.org/accessibility/">GNOME Accessibility</a></li>
<li><a href="http://brad.getcoded.net/blog/entry.php?e=1537848530">Mono Accessibility 2.0 unleashed!</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mariocarrion.com/2010/03/03/accessibility-in-moonlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tasque 0.1.9!</title>
		<link>http://blog.mariocarrion.com/2010/02/16/tasque-0-1-9/</link>
		<comments>http://blog.mariocarrion.com/2010/02/16/tasque-0-1-9/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 01:37:10 +0000</pubDate>
		<dc:creator>Mario Carrion</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[february]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[resolutions]]></category>
		<category><![CDATA[tasque]]></category>

		<guid isPermaLink="false">http://blog.carrion.ws/?p=638</guid>
		<description><![CDATA[Yes! Your favorite task management application is back. Tasque v0.1.9 was released today!. New features include: Support for Mono >= 2.6 Customizable color highlighting in tasks. Hiveminder improvements New translations And more! See the announce email to get more information. Get it while it&#8217;s hot! Screenshots? &#160;&#160;&#160; More here! Where to get? Main Downloads page [...]]]></description>
			<content:encoded><![CDATA[<p>Yes! Your favorite task management application is back. <a href="http://live.gnome.org/Tasque">Tasque</a> v<a href="http://mail.gnome.org/archives/tasque-list/2010-February/msg00007.html">0.1.9</a> was released today!. New features include:</p>
<ul>
<li>Support for Mono >= 2.6</li>
<li>Customizable color highlighting in tasks.</li>
<li>Hiveminder improvements</li>
<li>New translations</li>
<li>And more!</li>
</ul>
<p>See the <a href="http://mail.gnome.org/archives/tasque-list/2010-February/msg00007.html">announce email</a> to get more information.</p>
<p><strong><a href="http://live.gnome.org/Tasque/Download">Get it</a></strong> while it&#8217;s hot!</p>
<h3>Screenshots?</h3>
<p><a href="http://www.flickr.com/photos/mariocarrion/4364109000/" title="Tasque 0.1.9 by Mario Carrion, on Flickr"><img src="http://farm5.static.flickr.com/4030/4364109000_a866485a33_m.jpg" width="148" height="240" alt="Tasque 0.1.9" /></a>&nbsp;&nbsp;&nbsp;<a href="http://www.flickr.com/photos/mariocarrion/4364139136/" title="Tasque Preferences by Mario Carrion, on Flickr"><img src="http://farm3.static.flickr.com/2727/4364139136_f3988cd31b_m.jpg" width="240" height="224" alt="Tasque Preferences" /></a></p>
<p><a href="http://live.gnome.org/Tasque/Screenshots">More here!</a></p>
<h3>Where to get?</h3>
<ul>
<li><a href="http://live.gnome.org/Tasque/Download" title="Download page" alt="Download page">Main Downloads page</a></li>
<li><a href="http://ftp.gnome.org/pub/GNOME/sources/tasque/0.1/" title="Download sources" alt="Download sources">Sources</a></li>
<li><a href="http://ftp.gnome.org/pub/GNOME/binaries/mac/tasque/0.1/" title="Download Mac OS X binaries" alt="Download Mac OS X binaries">Mac OS X binaries</a></li>
<li><a href="http://ftp.gnome.org/pub/GNOME/binaries/win32/tasque/0.1/" title="Download MS Windows binaries" alt="Download MS Windows binaries">MS Windows binaries</a></li>
</ul>
<h3>More information?</h3>
<ul>
<li><a href="http://live.gnome.org/Tasque">Wiki</a></li>
<li><a href="http://live.gnome.org/Tasque/FAQS">FAQs</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mariocarrion.com/2010/02/16/tasque-0-1-9/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Parallel Development Environments? Pulque!</title>
		<link>http://blog.mariocarrion.com/2010/01/25/parallel-development-environments-pulque/</link>
		<comments>http://blog.mariocarrion.com/2010/01/25/parallel-development-environments-pulque/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 03:15:59 +0000</pubDate>
		<dc:creator>Mario Carrion</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[january]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[pulque]]></category>
		<category><![CDATA[resolutions]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.carrion.ws/?p=634</guid>
		<description><![CDATA[By Claire L. Evans / CC BY-ND 2.0 This is an updated version of Multiple Parallel Mono Environments. What is Pulque? Pulque is a collection of applications written in Ruby and Bash scripting to maintain parallel development environments. Why does Pulque exist? Three reasons: I need to keep multiple versions installed of the same software, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/astro-dudes/2735367731/"><img title="¡Quiero pulque! by Claire L. Evans" src="http://farm4.static.flickr.com/3108/2735367731_73c00175a0_m.jpg" alt="¡Quiero pulque!" width="240" height="180" /></a></p>
<p><a rel="cc:attributionURL" href="http://www.flickr.com/photos/astro-dudes/">By Claire L. Evans</a> / <a rel="license" href="http://creativecommons.org/licenses/by-nd/2.0/">CC BY-ND 2.0</a></p>
<p><em>This is an updated version of <a href="/2009/07/01/multiple-parallel-mono-environments/">Multiple Parallel Mono Environments</a>.</em></p>
<h3>What is Pulque?</h3>
<p><em>Pulque</em> is a collection of applications written in Ruby and Bash scripting to maintain parallel development environments.</p>
<h3>Why does Pulque exist?</h3>
<p>Three reasons:</p>
<ol>
<li>I need to keep <em>multiple versions installed</em> of the same software,</li>
<li>I need to know what <em>Version Control System</em> is used by the software, and the most important</li>
<li>I want to keep myself <strong>sane</strong>.</li>
</ol>
<p>At work, I have to interact with different open source projects, most of them use <a href="http://subversion.tigris.org/">Subversion</a> and <a href="http://git-scm.com/">Git</a>, but some others use <a href="http://bazaar.canonical.com/en/">Bazaar</a> and <a href="http://mercurial.selenic.com/">Mercurial</a>. Keeping track of the current parallel development environment and the VCS used by the software is exhausting.</p>
<p>You spend time focusing on something that shouldn&#8217;t be that important: </p>
<ul>
<li>Managing your parallel environments and,</li>
<li>Keeping track of the VCS used by the software</li>
</ul>
<p>Is easy to get confused when interacting with the repository, for example, executing <em>svn update</em> when the software is stored in a <em>git</em> repository. Is silly, but <strong>it happens</strong>. Unless you are using an IDE that support Multiple Parallel Development Environments you will need the terminal to configure and build your projects.</p>
<p><em>Pulque</em> helps you maintaining parallel development environments by: </p>
<ul>
<li>Printing in the bash prompt the <em>name of the parallel development environment</em> and <em>the type of the VCS</em>, this information is updated depending on the working directory, </li>
<li>Defining aliases to the default commands used to configure and build the software project, to always prefix your projects using your parallel environment, and</li>
<li>Showing a failure or success alert when the command finishes.</li>
</ul>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/Fj3dsNwWOVQ&#038;hl=en_US&#038;fs=1&#038;color1=0x3a3a3a&#038;color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Fj3dsNwWOVQ&#038;hl=en_US&#038;fs=1&#038;color1=0x3a3a3a&#038;color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<h3>Installing and using Pulque</h3>
<p>Follow the instructions in <a href="http://github.com/mariocarrion/pulque/blob/master/INSTALL">INSTALL</a>, or if you are using openSUSE 11.2:</p>
<p style="text-align: center;"><a href="http://download.opensuse.org/repositories/home:/MarioCarrion/openSUSE_11.2/pulque.ymp"><img alt="OneClick Install" src="http://www.mariocarrion.com/icons/oneclick.png" title="OneClick Install" width="162" height="46" class="aligncenter"  /><br />Click here to drink Pulque!</a></p>
<p>Don&#8217;t forget to add the function <em>pswitch</em> to your <em>.bashrc</em>. Bash will autocomplete your environment name when using <em>TAB TAB</em>.</p>
<pre class="brush:bash">
function pswitch {
  source /usr/bin/__pswitch $1
}
</pre>
<p>Read the <a href="http://github.com/mariocarrion/pulque/blob/master/USING">USING</a> file to understand how to use <em>Pulque</em> in the daily basis. If you find something weird or interesting please <a href="http://github.com/mariocarrion/pulque/issues">create an issue</a> to fix it.</p>
<h3>Colophon</h3>
<p>According to <a href="http://en.wikipedia.org/wiki/Pulque ">Wikipedia</a>: &#8220;<em>Pulque, or octli, is a milk-colored, somewhat viscous alcoholic beverage made from the fermented sap of the maguey plant, and is a traditional native beverage of Mexico.</em>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mariocarrion.com/2010/01/25/parallel-development-environments-pulque/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Ruby Programming Language</title>
		<link>http://blog.mariocarrion.com/2010/01/21/the-ruby-programming-language/</link>
		<comments>http://blog.mariocarrion.com/2010/01/21/the-ruby-programming-language/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 04:50:49 +0000</pubDate>
		<dc:creator>Mario Carrion</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[january]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[resolutions]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.carrion.ws/?p=635</guid>
		<description><![CDATA[A couple of days ago I finished reading: The Ruby Programming Language, book written by David Flanagan and Yukihiro Matsumoto. If I have to say anything about the book and, the language, of course, is: I am impressed. The syntax is pretty for writing and simple for reading. Its simplicity makes you understand the code, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/mariocarrion/4294063393/" title="Ruby by Mario Carrion, on Flickr"><img src="http://farm3.static.flickr.com/2758/4294063393_54d8564980_m.jpg" width="240" height="160" alt="Ruby" /></a></p>
<p>A couple of days ago I finished reading: <a href="http://www.amazon.com/Ruby-Programming-Language-David-Flanagan/dp/0596516177">The Ruby Programming Language</a>, book written by David Flanagan and Yukihiro Matsumoto. If I have to say anything about the book and, the language, of course, is: I am impressed. The syntax is pretty for writing and simple for reading. Its simplicity makes you understand the code, is like visualizing the goal of the program in your mind by reading it, not running it. It is like reading a well written letter. You just understand.</p>
<p>I must say, when I was reading the book, at the beginning. I did not feel comfortable with the weird, at that time, syntax. Method decorations such as <em>&#8220;!&#8221;</em> and <em>&#8220;?&#8221;</em>, and the support for methods aliases made no sense. Actually I thought I was wasting my time by trying to learn the language. I was wrong.</p>
<p>When I learned C++ several years ago, I did not have reference to object orientation or any object-oriented programming language. Learning it was difficult, but, at the same time, easy. Difficult because I did not know the paradigm, easy because it was my first time learning that kind of syntax. After learning C++ I decided to learn Java and after that, I decided to learn C#.</p>
<p>And I learned them all the same way. I <em>&#8220;translated&#8221;</em> the syntax. Translated it from the <em>&#8220;new language&#8221;</em> to the <em>&#8220;old language&#8221;</em>. I did learn them all. And I thought, for long time, that the rule was: <em>&#8220;Learn all the languages the same way: by translation&#8221;</em>. I was wrong. Again.</p>
<p>Learning a new programming language, in my opinion, is better when you do not translate the new language. Similar to learn to speak a new language. In both cases, you have <strong>to think in the language</strong>. I decided to think in the new language. To do it that way. The Ruby way. The results were amazing. Were so amazing that inspired me to write <a href="http://github.com/mariocarrion/pulque">a project</a> in Ruby. I wanted to try out the syntax, the platform and the community. To see if the language was that good as I thought. </p>
<p>After trying it out. No disappointments at all. Actually is interesting that C# and Ruby share a lot of things, syntactically speaking. Both of them are pretty languages. Probably they do not share goals. However, I&#8217;m sure they share one goal: to make the life of the software developer easier. And, to a software developer, a programming language, and everything around it, that makes your life easier is what matters the most.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mariocarrion.com/2010/01/21/the-ruby-programming-language/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hackweek IV: Gwibber + Sharing</title>
		<link>http://blog.mariocarrion.com/2009/07/27/hackweek-iv-gwibber-sharing/</link>
		<comments>http://blog.mariocarrion.com/2009/07/27/hackweek-iv-gwibber-sharing/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 17:51:56 +0000</pubDate>
		<dc:creator>Mario Carrion</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[opensuse]]></category>

		<guid isPermaLink="false">http://blog.carrion.ws/?p=589</guid>
		<description><![CDATA[I decided to try something different this Hackweek to learn a programming language and get involved into another exciting software libre project. There were too many options, too many good projects to work on. I selected gwibber because of three reasons: gwibber supports several microblogging services, including my favorites: Twitter and Facebook. gwibber is written [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to try something different this <a href="http://news.opensuse.org/2009/07/08/hack-week-iv-approaches/">Hackweek</a> to learn a programming language and get involved into another exciting <em>software libre</em> project. There were too many options, too many good projects to work on. I selected <a href="http://live.gnome.org/Gwibber">gwibber</a> because of three reasons:</p>
<ol>
<li>gwibber supports several <a href="http://bazaar.launchpad.net/~gwibber-committers/gwibber/trunk/files/head%3A/gwibber/microblog/">microblogging services</a>, including my favorites: <a href="http://www.twitter.com/">Twitter</a> and <a href="http://www.facebook.com/">Facebook</a>.</li>
<li>gwibber is written in Python.</li>
<li>gwibber doesn&#8217;t integrate with other gnome applications, for example <a href="http://projects.gnome.org/cheese/">Cheese</a> or <a href="http://live.gnome.org/Nautilus">Nautilus</a>.</li>
</ol>
<h3>So&#8230; what&#8217;s the new cool feature?</h3>
<p>Something I like to call &#8220;Sharing Services&#8221;. What&#8217;s a <em>sharing service</em>? A sharing service is a service using an online provider to share data, easier impossible. For example: Images would be shared using <a href="http://twitpic.com/">Twitpic</a>, Videos would use <a href="http://yfrog.com/">yfrog</a>, Files would use <a href="http://drop.io/">Drop.io</a> and Plaint Text files would use <a href="http://pastebin.ca/">Pastebin</a> (this is configurable, in case you were wondering) I&#8217;m sure you got the idea.</p>
<p><a title="Data Sharing on Gwibber by Mario Carrion, on Flickr" href="http://www.flickr.com/photos/mariocarrion/3761746699/"><img src="http://farm3.static.flickr.com/2429/3761746699_f73e35f00b_m.jpg" alt="Data Sharing on Gwibber" width="240" height="186" /></a> <a title="Data Sharing on Gwibber by Mario Carrion, on Flickr" href="http://www.flickr.com/photos/mariocarrion/3762563436/"><img src="http://farm3.static.flickr.com/2528/3762563436_6dacc2b37b_m.jpg" alt="Data Sharing on Gwibber" width="240" height="183" /></a></p>
<h3>Technical approach</h3>
<p>The implementation is based on the following UML class diagram:</p>
<p><a title="Data Sharing on Gwibber by Mario Carrion, on Flickr" href="http://www.flickr.com/photos/mariocarrion/3762526330/"><img src="http://farm4.static.flickr.com/3516/3762526330_ccfdc15155_m.jpg" alt="Data Sharing on Gwibber" width="240" height="236" /></a></p>
<p>The idea is simple, subclass <em>Provider</em> and override <em>share</em> method and you are pretty much all set. I already implemented 3 services: <em>twitpic</em> to share images, <em>yfrog</em> to share images and video, and <em>pastebin.ca</em> to share plain text files. My plans include to implement the following providers:</p>
<h4>Plain text</h4>
<ul>
<li><a href="http://www.pastebin.cz/info/api">Pastebin.cz</a></li>
<li><a href="http://openpaste.org/en/help/#api-tools">OpenPaste</a></li>
</ul>
<h4>Video</h4>
<ul>
<li><a href="http://www.vimeo.com/">Vimeo</a></li>
<li><a href="http://twitvid.io/">Twitvid</a></li>
</ul>
<h4>Files</h4>
<ul>
<li><a href="http://drop.io/">Drop.io</a></li>
</ul>
<p>To allow communication between gnome/gtk/dbus-based applications I added a new dbus method: <em>share(filename,message)</em>, that way you can &#8220;share&#8221; your file using a message, you don&#8217;t need to explicitly tell the provider+service to use, gwibber will use the filename&#8217;s mime-type to get the valid provider and the configured service, convenient isn&#8217;t it?</p>
<p><a title="Data Sharing on Gwibber  by Mario Carrion, on Flickr" href="http://www.flickr.com/photos/mariocarrion/3762638188/"><img src="http://farm3.static.flickr.com/2472/3762638188_992bfb26c3_m.jpg" alt="Data Sharing on Gwibber " width="240" height="183" /></a></p>
<h3>Where to get it?</h3>
<p>I branched <a href="https://code.launchpad.net/~gwibber-committers/gwibber/trunk">trunk</a> to implement this feature, you can read <a href="https://code.launchpad.net/~mario-carrion/gwibber/gwibber-services">launchpad</a> to get more information, basically you need to:</p>
<pre class="bash">bzr branch lp:~mario-carrion/gwibber/gwibber-services</pre>
<p>and execute:</p>
<pre class="bash">./bin/gwibber</pre>
<p>I also included a patch for cheese, I&#8217;m using <a href="http://git.gnome.org/cgit/cheese/log/?h=gnome-2-26">gnome-2-26</a> branch, in case you want to share your videos and images on gwibber using cheese.</p>
<h3>Cool video</h3>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/nbeRTHTfZjM&amp;hl=en&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/nbeRTHTfZjM&amp;hl=en&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h3>Known bugs and issues</h3>
<p>I&#8217;m aware of several bugs, for example: web timeouts, invalid responses and random deadlocks, so take it easy, remember: <strong>this is a preview, be happy</strong>. Also I need to think about multiple instances and implementing a real HTTP handler instead of using the MultiPartForm class, will decide it later.</p>
<p>OpenSUSE 11.1 Users: you may need to install python-related dependencies. OpenSUSE 11.1-64, if you want to use the nautilus extension, you will need create a symbolic link in <em>/usr/lib/</em> for <em>libpython2.6.so</em>. I&#8217;m going to report the packing bug as soon as possible.</p>
<p>BTW, you can always follow me on twitter: <a href="http://www.twitter.com/mariocarrion">@mariocarrion</a> in case you want to recommend me a new provider.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mariocarrion.com/2009/07/27/hackweek-iv-gwibber-sharing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

