<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
    <channel>
    <title>Daniel&#039;s spot</title>
    <link>http://www.blog.dcastro.com/</link>
    <description>Daniel de Castro&#039;s random thoughts</description>
    <language>en-us</language>           
    <generator>Nucleus CMS v3.64</generator>
    <copyright>&#169;</copyright>             
    <category>Weblog</category>
    <docs>http://backend.userland.com/rss</docs>
    <image>
        <url>http://www.blog.dcastro.com//nucleus/nucleus2.gif</url>
        <title>Daniel&#039;s spot</title>
        <link>http://www.blog.dcastro.com/</link>
    </image>
    <item>
    <title>Missing fonts after moving /usr/share</title>
    <link>xml-rss2.php?itemid=69</link>
    <description><![CDATA[My Ubuntu installation was accusing low space at <b>/usr</b>. It was a 15GB partition and nevertheless it had about 600MB free. <br />
<br />
As I had overestimated the size of <b>/var</b>, I decided to reduce it (using gparted) and create another partition for <b>/usr/share</b>, which would give me about 6GB of free space at <b>/usr</b>. <br />
<br />
Everything worked as a charm. I went about my normal day and, after a few hours of normal work, I moved to a different task. I am teaching a class and had not uploaded the slides for the students. So, I opened the presentation on Impress (Libre-Office's "Powerpoint") and most of the text was gone. I still had pictures, the titles were there, but the actual content was gone. <br />
<br />
I pulled back some backups, nothing. Then, after a cup of coffee to clear my mind, I realized that it could be related to the changes I had done in my file system. Trying to understand better what happened, I looked at the slides again. I noticed that the missing text were using specific fonts. For example, I used <b>courier</b> for code snippets, and in the one single case I forgot, the code was there. Now,  guess where the fonts are stored? yes: <b>/usr/share/fonts</b>. Everything started to make sense. <br />
<br />
So, after poking around, I found that there is a cache of fonts and I concluded that moving <b>/usr/share</b>to another partition, I messed with the cache. So, I rebuilt it and.. voi-la! It works. <br />
<br />
If you come across a similar problem, the command to rebuild that cache is as follows: <br />
<br />
<div style="border:solid 1px #ccc; background-color:#eee; padding:2px 4px;">sudo fc-cache -f -v<br />
</div><br />
]]></description>
    <category>Linux</category>
    <comments>xml-rss2.php?itemid=69</comments>
    <pubDate>Sun, 12 Apr 2015 01:43:15 +0000</pubDate>
</item><item>
    <title>Ubuntu: Fixing NO_PUBKEY error from apt-get</title>
    <link>xml-rss2.php?itemid=65</link>
    <description><![CDATA[This error is likely to appear when you added an extra repository to your sources (e.g., ppa.launchpad.net). In my case, it was due to Gnome3. <br />
<br />
After running apt-get update, I received the following error message: <br />
<br />
<div style="border:solid 1px #ccc; background-color:#eee; padding:2px 4px;">W: GPG error: http://ppa.launchpad.net trusty Release: The following signature couldn't be verified because the publix key is not available: NO_PUBKEY &#8810;SIGNATURE&#8811;<br />
</div><br />
<br />
Where &#8810;SIGNATURE&#8811; was the source signature and consisted of a hexadecimal representation of a large number. <br />
<br />
The reason for that error is that I had added the repository, but not its public key. My system couldn't verify it was dealing with the right repository and not a fake one. <br />
<br />
To fix it, we have to get the key from some source that we trust. In my case, I got it from Ubuntu. (I am using their system, so I kind of trust them anyway.) <br />
<br />
The command to add the key is as follows: <br />
<br />
<div style="border:solid 1px #ccc; background-color:#eee; padding:2px 4px;">sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys &#8810;SIGNATURE&#8811;<br />
sudo apt-get update<br />
</div><br />
<br />
The last command I used just to confirm everything was right. ;) ]]></description>
    <category>General</category>
    <comments>xml-rss2.php?itemid=65</comments>
    <pubDate>Sun, 11 Jan 2015 19:17:31 +0000</pubDate>
</item><item>
    <title>University of Calgary Alumni talk: James Gosling</title>
    <link>xml-rss2.php?itemid=62</link>
    <description><![CDATA[Last night, I attended to a really interesting talk, given by one of the most recognizable alumni of the University of Calgary: James Gosling, a.k.a., the "Father of Java". He talked about his more recent work, and the talk even included robots in the ocean being attacked by huge sharks. He also showed to be a really approachable person, welcoming any questions he received... And it was a lot, in particular after the talk.  <br />
]]></description>
    <category>General</category>
    <comments>xml-rss2.php?itemid=62</comments>
    <pubDate>Fri, 14 Mar 2014 17:57:00 +0000</pubDate>
</item><item>
    <title>Microsoft: Meet the company</title>
    <link>xml-rss2.php?itemid=60</link>
    <description><![CDATA[Quick note: Tonight (or last night), at the university, we had a little talk from Microsoft. The idea was "inviting" students to apply for a job at that company. The highlight that I have to share: at the beginning of the presentation, the Powerpoint froze. They had to call the task manager. The talk was delayed by about 10 minutes. The presenters were visibly embarrassed. Everyone was laughing. And I thought these problems in presentations were pure legend. hehehe]]></description>
    <category>General</category>
    <comments>xml-rss2.php?itemid=60</comments>
    <pubDate>Wed, 26 Sep 2012 01:57:23 +0000</pubDate>
</item><item>
    <title>Trying Mageia</title>
    <link>xml-rss2.php?itemid=56</link>
    <description><![CDATA[For the first time in a long time, I decided to go out of my "comfort zone". I would try a distro that wasn't based on <a href="http://www.ubuntu.com">Ubuntu</a> or even <a href="http://www.debian.org">Debian</a>. I needed to change my installation anyway, from 32 to 64 bits, so I used it as an excuse for my adventure.<br />
<br />
I decided to try <a href="http://www.mageia.org">Mageia</a>, a distro which is derived from <a href="http://www.mandriva.com">Mandriva</a> (from the company created by the fusion between the French Mandrake and the Brazilian Conectiva), just like <a href="http://www.fedoraproject.org">Fedora</a> derived from <a href="http://www.redhat.com">RedHat</a>. <br />
<br />
Unfortunately, my experience was not really pleasing. The DVD installation didn't work. When I booted my computer, the graphical driver wouldn't work. I ended up successfully installing from the Live CD. But, with my lack of familiarity with the environment (e.g., "Where is the "apt-get" equivalent?"), I found the system quite unstable. <br />
<br />
I even tried <a href="http://www.enlightenment.org">Enlightenment (E17)</a>... Honestly, it was pretty but not really good. I found E17 to be too slow and with too much animation. I think that a more efficient configuration tool that allows fine-tuning might make E17 a more interesting alternative. <br />
<br />
As Sheldon said once: "There is a reason for why it's called 'comfort zone'". So, at least for now, I am going back "home". This afternoon/night, I'd be reinstalling <a href="http://www.linuxmint.com">Linux Mint 13</a>, (now the 64 bit variation) running <a href="http://www.lxde.org">LXDE</a>. When time permits, I might do another adventure in another "foreign distro".<br />
]]></description>
    <category>Linux</category>
    <comments>xml-rss2.php?itemid=56</comments>
    <pubDate>Fri, 27 Jul 2012 14:49:46 +0000</pubDate>
</item><item>
    <title>Solution for the &quot;.bashrc vs ssh command&quot; problem</title>
    <link>xml-rss2.php?itemid=47</link>
    <description><![CDATA[Some Linux users (including myself) have been unsuccessfully trying to execute a command via SSH, for example: <br />
<br />
<pre>ssh user@host mycommand</pre> <br />
<br />
The problem seems to be that "mycommand" is in a directory that is not in the PATH. However, when they connect normally, they can see the directory in the PATH environment variable. <br />
<br />
It seems that most of these users (again, including myself) update the PATH variable in the <b>.bashrc</b> file and, apparently, the <b>.bashrc</b> file is not executed when connected "non-interactively" via ssh. <br />
<br />
After looking for a good while, many people suggested to check if the <b>.bashrc</b> was called by <b>.profile</b> or <b>.bash_profile</b> or something like that. Well... that did not solve my problem. <br />
<br />
What, in fact, happened was that <b>.bashrc</b> was being called (or "sourced") by SSH, but the guys from the distro decided to add the following lines in it: <br />
<br />
<pre># If not running interactively, don't do anything<br />
[ -z "$PS1" ] && return<br />
</pre><br />
<br />
Basically, the test above only allows the execution of the rest of <b>.bashrc</b> if it is an interactive shell, thus it does not work for my needs. Why is it there? I have no idea... anyway... I just commented the test and it worked perfectly. <br />
]]></description>
    <category>Linux</category>
    <comments>xml-rss2.php?itemid=47</comments>
    <pubDate>Mon, 25 Jun 2012 01:18:19 +0000</pubDate>
</item><item>
    <title>Coffee for Turing</title>
    <link>xml-rss2.php?itemid=42</link>
    <description><![CDATA[Today, the honors go to <a href="http://en.wikipedia.org/wiki/Alan_Turing">Alan Turing</a>, the "Father of Computer Science", who would be celebrating 100 years since his birth. Among other achievements, for example as a successful cryptologist during the Second World War, he was the person who created the concept of computers and programs. <br />
 <br />
<div style="text-align: center"><img src="http://www.blog.dcastro.com/media/1/20120623-coffee-turing.png" width="279" height="229" alt="20120623-coffee-turing.png" title="20120623-coffee-turing.png" /></div><br />
<br />
The coffee cup was a gift from <a href="http://www.acm.org">ACM</a> for my first year as member. And that coffee was in his honor. <br />
<br />
Thank you, Mr. Turing, for creating what is now a science and the profession of many (including myself). ]]></description>
    <category>Coffee</category>
    <comments>xml-rss2.php?itemid=42</comments>
    <pubDate>Sat, 23 Jun 2012 20:41:00 +0000</pubDate>
</item><item>
    <title>Now, Xoom&#x2122;ing with Ice Cream Sandwich</title>
    <link>xml-rss2.php?itemid=38</link>
    <description><![CDATA[I have recently starting using a <a href="http://www.motorola.com/xoom">Motorola Xoom&#8482;</a>  with <a href="http://www.android.com/about/ice-cream-sandwich/">Android 4.0 (Ice Cream Sandwich)</a>. <br />
<br />
My cellphone has Froyo (Android 2.2) installed and, comparing to that version of Android, the ICS came a long way and it's a lot better. First thing I noticed was that we can now organize the home screen putting Icons into "folders", just by moving an icon over another one. While I used all the five home screens in my cellphone and feel I needed more, with this feature, I don't use more than 2 home screens in the Xoom. <br />
<br />
What I didn't like much was the camera. I have tried to take pictures of my daughter and I barely can get one that is not blurred. (Granted, my daughter simply can't be still for a picture... too much energy!) On a good side, I really like the landscape option for the camera. It worked nicely... Now I just need to get an opportunity to find a nice landscape to photograph. <br />
<br />
In terms of performance, I don't know if it's because of the limited number of applications I am using, but I really find the tablet to be quite fast and battery has lasted a bit more than one day (with moderate use, which I find it to be acceptable.<br />
<br />
Also, I liked the fact it has 32GB of internal storage (which is a lot compared to other products) and still accepts micro-SD card.   <br />
<br />
My favorite apps for it, so far, are:<br />
- <a href="https://play.google.com/store/apps/details?id=org.connectbot">ConnectBot</a>: a SSH client for Android<br />
- <a href="https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard">Hacker's Keyboard</a>: A substitute for the original keyboard that gives you a PC keyboard on screen (with numbers over the first row of letters, for example). <br />
- <a href="https://play.google.com/store/apps/details?id=com.anddoes.launcher">Apex Launcher</a>: "Launcher" is the android equivalent to Windows Managers in Linux. This one is quite light and provides some nice customization options, including number of home screens and animations. ]]></description>
    <category>General</category>
    <comments>xml-rss2.php?itemid=38</comments>
    <pubDate>Fri, 22 Jun 2012 14:18:04 +0000</pubDate>
</item><item>
    <title>Coffee helps preventing Alzheimer’s</title>
    <link>xml-rss2.php?itemid=34</link>
    <description><![CDATA[I had already heard that Coffee would be good for memory, but things seem to be even better. <br />
<br />
A recent <a href="http://www.alphagalileo.org/ViewItem.aspx?ItemId=120795&amp;CultureCode=en">study</a> from <a href="http://www.usf.edu">University of South Florida</a> and <a href="http://www.miami.edu">University of Miami</a> with older adults (over 65) who drank coffee regularly during their lives (about 3 cups a day) had less chances of developing Alzheimer's. <br />
 ]]></description>
    <category>Coffee</category>
    <comments>xml-rss2.php?itemid=34</comments>
    <pubDate>Sat, 16 Jun 2012 14:13:00 +0000</pubDate>
</item><item>
    <title>Coffee on Saturdays</title>
    <link>xml-rss2.php?itemid=29</link>
    <description><![CDATA[Starting today, this blog will have, as much as possible, "Coffee on Saturdays" (temporary name). This idea was inspired by another blog and for recent news. <br />
<br />
The blog is by <a href="http://www.schneier.com/">Bruce Schneier</a>. He has what he called "Squid Fridays", with random posts about... squid. I mean the animal, not the <a href="http://www.squid-cache.org/">software</a>. I hope Bruce doesn't mind my adaptation of his idea. <br />
<br />
My other inspiration was recent news about coffee. As many of my friends know, I am rather addicted to coffee, and I mean the drink, no references to the <a href="http://www.java.com">programming language</a>. While some people consider coffee to be bad for one's health, this week I learned that a <a href="http://www.nih.gov/news/health/may2012/nci-16.htm">study </a>from US National Institutes of Health, and to be published on the New England Journal of Medicine, suggests the people who drink 2 to 3 cups of coffee a day has less chances of dying from a number of causes. The list of causes includes heart and pulmonary diseases, diabetes and even accidents.  <br />
<br />
So, from now on, I'll try to keep my Saturday's posts somewhat related to coffee. ]]></description>
    <category>Coffee</category>
    <comments>xml-rss2.php?itemid=29</comments>
    <pubDate>Sat, 19 May 2012 21:39:00 +0000</pubDate>
</item>
  </channel>
</rss>