<?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"
	>

<channel>
	<title>soledad penadés</title>
	<atom:link href="http://soledadpenades.com/feed" rel="self" type="application/rss+xml" />
	<link>http://soledadpenades.com</link>
	<description>repeat 4[fd 100 rt 90]</description>
	<pubDate>Sat, 15 Nov 2008 17:00:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>How to install hpricot in Ubuntu 8.4</title>
		<link>http://soledadpenades.com/2008/10/24/how-to-install-hpricot-in-ubuntu-84/</link>
		<comments>http://soledadpenades.com/2008/10/24/how-to-install-hpricot-in-ubuntu-84/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 09:56:59 +0000</pubDate>
		<dc:creator>sole</dc:creator>
		
		<category><![CDATA[ruby]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://soledadpenades.com/?p=778</guid>
		<description><![CDATA[This could be considered a fresh installation, speaking in ruby terms. I just had ruby installed, no ruby gems, nor ruby dev nor anything else ruby. So this should be enough for installing hpricot as well as ruby gems (which are required for installing hpricot). 
As you can see, I didn&#039;t download any source file, [...]]]></description>
			<content:encoded><![CDATA[<p>This could be considered a fresh installation, speaking in ruby terms. I just had ruby installed, no ruby gems, nor ruby dev nor anything else ruby. So this should be enough for installing hpricot as well as ruby gems (which are required for installing hpricot). </p>
<p>As you can see, I didn&#039;t download any source file, instead I was happy with using apt-get and the hpricot version from ubuntu repositories, although they are relatively old (for example rubygems is more than a year old). If I find any problem and need to update to newer versions I&#039;ll report that here ;-)</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">sudo apt-get install rubygems<br />
sudo rm /var/lib/gems/<span class="nu0">1.8</span>/source_cache<br />
sudo gem update<br />
sudo apt-get install ruby1<span class="nu0">.8</span>-dev<br />
sudo gem install hpricot</div>
</div>
<p>It&#039;s a pity they don&#039;t have a metapackage for ruby&#039;s development files (the ruby1.8-dev package), the same way there&#039;s a <strong>ruby</strong> metapackage which depends on the <strong>ruby1.8</strong> package, so whenever ruby is updated it will update the ruby version as well, without the user having to worry about the version number.</p>
<p>Even more, I instinctively tried a <em>naive</em><strong> sudo apt-get install rubydev</strong> and was greeted with a sad<em> &#034;Couldn&#039;t find package rubydev&#034;</em>. It somehow proves that a metapackage called rubydev would be quite useful&#8230; at least for instinctive users.</p>
<p>Enjoy your screen scrapping!</p>
]]></content:encoded>
			<wfw:commentRss>http://soledadpenades.com/2008/10/24/how-to-install-hpricot-in-ubuntu-84/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Embedding fonts in ActionScript 3, using Flex SDK</title>
		<link>http://soledadpenades.com/2008/10/21/embedding-fonts-in-actionscript-3-using-flex-sdk/</link>
		<comments>http://soledadpenades.com/2008/10/21/embedding-fonts-in-actionscript-3-using-flex-sdk/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 15:54:35 +0000</pubDate>
		<dc:creator>sole</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://soledadpenades.com/?p=776</guid>
		<description><![CDATA[Say you have a class and you want to use an embedded, non-system font in the class. That way you can rotate, scale, change alpha and apply filters to the text. And this is how it would look like, roughly:
public class MyClass extends Sprite
{
	[Embed(source="./../assets/MyFontLightItalic.TTF", fontFamily="MyFontFamily", fontWeight= "light", fontStyle = "italic", mimeType="application/x-font-truetype")]
	private var MyFont:Class;
	public function MyClass()
	{
		var [...]]]></description>
			<content:encoded><![CDATA[<p>Say you have a class and you want to use an embedded, non-system font in the class. That way you can rotate, scale, change alpha and apply filters to the text. And this is how it would look like, roughly:</p>
<div class="codesnip-container" >public class MyClass extends Sprite<br />
{<br />
	[Embed(source="./../assets/MyFontLightItalic.TTF", fontFamily="MyFontFamily", fontWeight= "light", fontStyle = "italic", mimeType="application/x-font-truetype")]<br />
	private var MyFont:Class;</p>
<p>	public function MyClass()<br />
	{<br />
		var tf:TextField = new TextField();<br />
		tf.embedFonts = true;<br />
		tf.defaultTextFormat = new TextFormat(&#034;MyFontFamily&#034;, 17, 0&#215;7F7F7F);<br />
	}<br />
}</p></div>
<h3>Interesting stuff</h3>
<p>Because most of the examples out there simply use &#034;Arial&#034; as font, they will never get the myriad errors I was getting, such as <em>&#034;Error: exception during transcoding: Font for alias &#039;Blah Blah Light Italic&#039; with plain weight and style was not found&#034;</em> or the much dreaded <em>&#034;Error: java.lang.Integer cannot be cast to java.lang.String&#034;</em>.</p>
<p>The problem is that there are more sophisticated True Type Fonts out there, which split the font in several files, one for each variation of weight and style, and if you try to embed a file for a non normal weight, normal style, the Flex compiler won&#039;t be able to find the definition of the shapes for the &#034;normal version&#034; and then will simply stop and let you wondering why it doesn&#039;t work.</p>
<p>So that&#039;s why we&#039;re specifying not only the source file but also the weight and style of the font, and that&#039;s what most of the examples never deal with &#8212; because Arial comes as a single file.</p>
<p>Then there&#039;s the other important thing: the private class to which the font file will be attached. Even if you simply use the embedded font with the new alias defined in fontFamily (&#034;MyFontFamily&#034; in this example), you still need to provide that variable, or you will get a big <em>&#034;Error #2136: the swf file contains invalid data&#034;</em>.</p>
<h3>More info</h3>
<p>I assembled the solution to my <em>woes</em> taking parts from several sources:</p>
<ul>
<li><a href="http://www.kirupa.com/forum/archive/index.php/t-257913.html">This thread from Kirupa</a> gave me some hints about the font style and weight</a></li>
<li><a href="http://board.flashkit.com/board/showthread.php?t=744674">This thread from FlashKit</a> has the answer to the error 2136 issue</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://soledadpenades.com/2008/10/21/embedding-fonts-in-actionscript-3-using-flex-sdk/feed/</wfw:commentRss>
		</item>
		<item>
		<title>mod_rewrite, mod_negotiation and empty $_GET&#039;s</title>
		<link>http://soledadpenades.com/2008/09/25/mod_rewrite-mod_negotiation-and-empty-_gets/</link>
		<comments>http://soledadpenades.com/2008/09/25/mod_rewrite-mod_negotiation-and-empty-_gets/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 18:49:32 +0000</pubDate>
		<dc:creator>sole</dc:creator>
		
		<category><![CDATA[apache]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://soledadpenades.com/?p=769</guid>
		<description><![CDATA[I had just added this simple rewrite rule into the .htaccess file
RewriteRule ^section/(\d+)/$ /section.php?id=$1 [L]
and went to section.php expecting to find the id value inside $_GET['id']. Big surprise when it was actually empty. I suspected this could be something to do with that Apache module which tries to guess which file were you referring to [...]]]></description>
			<content:encoded><![CDATA[<p>I had just added this simple rewrite rule into the .htaccess file</p>
<div class="codesnip-container" >RewriteRule ^section/(\d+)/$ /section.php?id=$1 [L]</div>
<p>and went to section.php expecting to find the id value inside $_GET['id']. Big surprise when it was actually empty. I suspected this could be something to do with <em>that Apache module which tries to guess which file were you referring to when a URL was misspelled</em>, since even if I commented out the rule it still executed <strong>section.php</strong> when entering <em>/section</em> in the URL. But if the .php file was completely unrelated to the rewrite pattern, (e.g. with RewriteRule ^kkkkkkk/(\d+)$/ /blablabla.php?id=$1)  it worked. Very odd!</p>
<p>Since I personally never needed that feature, I didn&#039;t know its name (although I have seen it in a couple of servers before). After a while and several google searches, I could confirm the guilty and the one to blame was <strong>mod_negotiation</strong>, precisely the module which tries to guess which file you really wanted.</p>
<p>I haven&#039;t investigated exactly what is going on inside apache, although I guess that basically mod_negotiation is executed before mod_rewrite has a chance to parse the request, and when mod_rewrite is called it receives an overwritten and modified version of $_GET which is completely useless at that point.</p>
<p>So there are two options for getting mod_negotiation out of our way: disabling it altogether or disabling it at .htaccess level.</p>
<h3>Disabling mod_negotiation</h3>
<p>You can only do this if you control the server, be it a dedicated server, a slice server, or a local computer. This is how I did it with Ubuntu (Hardy Heron):</p>
<div class="codesnip-container" >sudo a2dismod negotiation<br />
sudo /etc/init.d/apache2 force-reload</div>
<p>First line disables the module, second one forces apache to restart (obvious, but just in case someone got lost ;) )</p>
<h3>Disabling at .htaccess level</h3>
<p>If you&#039;re on a shared hosting or you need mod_negotiation for something else, there&#039;s still hope!</p>
<p>Just add this</p>
<div class="codesnip-container" >Options -Multiviews</div>
<p>at the top of .htaccess and that&#039;s it.</p>
<h3>Curious cat strikes back</h3>
<p>And out of curiosity&#8230; does anybody enable mod_negotiation on purpose? I personally find it more of an annoyance than a feature, specially when one wants to show only certain stuff and discovers that Apache is showing more than it should thanks to this evil module. Anyway, enjoy mod_rewrite ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://soledadpenades.com/2008/09/25/mod_rewrite-mod_negotiation-and-empty-_gets/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cloud computing is the new social network</title>
		<link>http://soledadpenades.com/2008/09/24/cloud-computing-is-the-new-social-network/</link>
		<comments>http://soledadpenades.com/2008/09/24/cloud-computing-is-the-new-social-network/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 14:33:05 +0000</pubDate>
		<dc:creator>sole</dc:creator>
		
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://soledadpenades.com/?p=764</guid>
		<description><![CDATA[I somehow anticipated it when commenting about Techchrnnnnch&#039;s views about Google Chrome, but it&#039;s now confirmed: Cloud computing is the new social network. Just take a look at this graph that I managed to produce with a couple of clicks and keypresses and the help of Google Trends:

Here&#039;s the entire report.
Unfortunately, the web 2.0 effect [...]]]></description>
			<content:encoded><![CDATA[<p>I somehow anticipated it when <a href="http://soledadpenades.com/2008/09/17/damn-geeks-and-more/">commenting about</a> <em>Techchrnnnnch</em>&#039;s views about Google Chrome, but it&#039;s now confirmed: <strong>Cloud computing is the new social network</strong>. Just take a look at this graph that I managed to produce with a couple of clicks and keypresses and the help of Google Trends:</p>
<p><img src="/imgs/cloud_social.png" alt="Cloud computing vs Social networks" /></p>
<p>Here&#039;s <a href="http://www.google.com/trends?q=cloud+computing%2C+social+network&#038;ctab=0&#038;geo=all&#038;date=ytd&#038;sort=0">the entire report</a>.</p>
<p>Unfortunately, the web 2.0 effect is still inducing waves of pleasure amongst the <em>cool-keyword-hunters</em>. If we dare to introduce the term into our cheap market research report generator, it reduces both <em>cloud computing</em> and <em>social networks</em> to an almost statistical nothingness.</p>
<p><img src="/imgs/cloud_social_web.png" alt="Cloud computing vs Social networks vs Web 2.0" /></p>
<p><a href="http://www.google.com/trends?q=cloud+computing%2C+social+network%2C+web+2.0&#038;ctab=0&#038;geo=all&#038;date=ytd&#038;sort=0">Entire report again</a>.</p>
<p>Yet with a bit of luck <em>cloud computing</em> will push our all time favourite term &#8211;semantic web&#8211; back where it belongs. Disguised as the more glamorous and shiny term <em>Web 3.0</em>, of course.</p>
<p>Meanwhile, you can keep labelling all terms and situations with <em>web 2.0</em>, but do not be afraid of topping your pub chats with a little bit of <em>cloud computing</em>, even more if you&#039;re in London. You know weather is a great conversation topic here!</p>
]]></content:encoded>
			<wfw:commentRss>http://soledadpenades.com/2008/09/24/cloud-computing-is-the-new-social-network/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Damn geeks (and more)</title>
		<link>http://soledadpenades.com/2008/09/17/damn-geeks-and-more/</link>
		<comments>http://soledadpenades.com/2008/09/17/damn-geeks-and-more/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 15:58:23 +0000</pubDate>
		<dc:creator>sole</dc:creator>
		
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://soledadpenades.com/?p=762</guid>
		<description><![CDATA[Let&#039;s continue the IT fun saga , although it has been suspended for around five months, shame on holidays and all that ;-)
Damn geeks
First, we have a bit of a desperate cry by a certain Solomon Grundy:

Damn geeks. They&#039;ve screwed up everything. They can&#039;t even get something as simple as the Internet right. No wonder [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#039;s continue the <a href="http://soledadpenades.com/2008/04/01/incendiary-fun/">IT fun saga </a>, although it has been suspended for around five months, shame on holidays and all that ;-)</p>
<h3>Damn geeks</h3>
<p>First, we have a bit of a desperate cry by a certain Solomon Grundy:</p>
<blockquote><p>
Damn geeks. They&#039;ve screwed up everything. They can&#039;t even get something as simple as the Internet right. No wonder 70% of financial application are still coded in COBOL and don&#039;t use the Internet as their primary avenue of communications.
</p></blockquote>
<p>from <a href="http://www.theregister.co.uk/2008/09/16/critical_vulnerability_demo_pulled/comments/#c_320974">the comments</a> at <q>Adobe yanks speech exposing critical &#039;clickjacking&#039; vulns</q>. By the way, why do the Register guys <strong>have anchors</strong> for each individual comment, but <strong>do not show</strong> them? I had to use the very helpful Web Developer Toolbar <em>once again</em> for revealing anchors in the page (<em>Information &#8212; Display anchors</em>, just in case you need it). <em>Damn geeks!</em></p>
<p>So yes, that&#039;s quite serious. It seems there&#039;s no way things can be done properly when <em>the internet factor</em> is in the mix. When in doubt, simply blame the <a href="http://en.wikipedia.org/wiki/Postel%27s_law">Robustness principle</a>: <q>Be liberal in what you accept, and conservative in what you send</q>.</p>
<h3>Googleskepticism or just plain common sense?</h3>
<p>Following the release of Google&#039;s Chrome, one had the immediate feeling that it was going to be a big news &#8212; not only appearing at generalist media but even prompting our families to ask us about <em>that new system Google has released for competing against Bill&#039;s</em> (literally). I wasn&#039;t impressed at all by the <em>G-move</em> neither did feel immediately compelled to download and test it (besides my computer doesn&#039;t run Windows anyway), so I just ignored the complete commotion. But it seems Ted Dziuba got a bit more irritated with all the publicity and media fueled bullshit and/or plain lies and simply ended up <a href="http://www.theregister.co.uk/2008/09/08/dziuba_chrome/">exploding</a>:</p>
<blockquote><p>I understand the argument that as web applications proliferate, the desktop operating system becomes less important, and emphasis is placed on the browser. That&#039;s all well and good, but let&#039;s be realistic here.<strong> It&#039;s a fucking web browser.</strong> It runs JavaScript a bit faster than other web browsers. That doesn&#039;t add up to a Windows killer.</p>
<p>[...]</p>
<p>People are calling Chrome a cloud operating system because it is a &#034;platform for running web apps&#034;. <strong>It renders HTML and interprets Javascript, you know, like every fucking browser made since 1995.</strong> It&#039;s also got Google Gears built in. Great. I&#039;ll alert Tim Berners-Lee.
</p></blockquote>
<p>(emphasis added by me)</p>
<p>He also notes the big amount of nonsense that Michael Arrington managed (once again) to produce for the occasion, with allusions to the new and upcoming hot keyword - cloud computing. I would suggest Ted &#8211;and any of you&#8211;, only one thing: do not read Techcrunch, for your own mental health.</p>
<h3>On confusing people</h3>
<p>Only two words: <a href="http://www.theregister.co.uk/2008/09/16/microsoft_sdl_initiatives/">Microsoft SDL</a>.</p>
<p>Why did they have to use an acronym which is so well established is something that I can&#039;t understand. Furthermore, Microsoft SDL doesn&#039;t stand up for anything remotely related to media or games. Do not even think they are ditching DirectX for <em>the true <a href="http://libsdl.org/">SDL</a></em>. In fact, <em>their</em> SDL is the deceptively boring acronym of <em>Secure Development Lifecycle</em>. Which, coming from Microsoft, absolutely deserves a place on the IT fun saga with a special award in the &#034;Irony&#034; category!</p>
]]></content:encoded>
			<wfw:commentRss>http://soledadpenades.com/2008/09/17/damn-geeks-and-more/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
