<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[Now From Home]]></title>
  <link href="http://nowfromhome.com/atom.xml" rel="self"/>
  <link href="http://nowfromhome.com/"/>
  <updated>2012-02-08T17:33:17+01:00</updated>
  <id>http://nowfromhome.com/</id>
  <author>
    <name><![CDATA[Jose Gonzalvo]]></name>
    
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[VirtualBox: slow network from Windows host to linux guest]]></title>
    <link href="http://nowfromhome.com/virtualbox-slow-network-from-windows-host-to-linux-guest/"/>
    <updated>2012-02-08T16:43:00+01:00</updated>
    <id>http://nowfromhome.com/virtualbox-slow-network-from-windows-host-to-linux-guest</id>
    <content type="html"><![CDATA[<p>I develop my Rails apps in Ubuntu. I run Ubuntu as a <a href="https://www.virtualbox.org/">Virtual Box</a> VM using Windows 7 as a host. For a long time I&#8217;ve had the problem that when accessing my rails apps from Windows, say to http://192.168.1.25:3000 the response was extremely slow.</p>

<p>Changing the network settings in VirtualBox had no effect (bridged, host only, NAT&#8230; no luck). It turns out that the problem wasn&#8217;t on Windows nor Ubuntu network configuration.</p>

<p>In order to fix the problem you have to change the following parameter in the Webrick config file:</p>

<figure class='code'><figcaption><span>~/.rvm/rubies/lib/ruby-1.9.3-p0/ruby/webrick/config.rb  </span></figcaption>
 <div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
</pre></td><td class='code'><pre><code class='ruby'><span class='line'><span class="c1"># :DoNotReverseLookUp =&gt; nil,</span>
</span><span class='line'><span class="ss">:DoNotReverseLookUp</span> <span class="o">=&gt;</span> <span class="kp">true</span><span class="p">,</span>
</span></code></pre></td></tr></table></div></figure>


<p>Now it works as expected.</p>

<p>That said, this slowness has come handy a couple of times when I wanted to test how my apps behave when the network is slow.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Got a Transcend 32GB USB 3.0 Flash Drive]]></title>
    <link href="http://nowfromhome.com/got-a-transcend-32gb-usb-3-dot-0-flash-drive/"/>
    <updated>2012-01-16T18:00:00+01:00</updated>
    <id>http://nowfromhome.com/got-a-transcend-32gb-usb-3-dot-0-flash-drive</id>
    <content type="html"><![CDATA[<p>I&#8217;m preparing a small trip to Seville to visit a couple of customers. One of them has a 12 GB SQL Server database so my current 8 GB USB flash drive is not going to make it. My current 8 GB pen drive is only 6 months old and I payed for it almost the same than for this one that has 4x times the capacity.</p>

<p><a href="http://www.amazon.com/gp/product/B004HXHIOM/ref=as_li_tf_il?ie=UTF8&tag=nowfromhomeco-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B004HXHIOM"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=B004HXHIOM&MarketPlace=US&ID=AsinImage&WS=1&tag=nowfromhomeco-20&ServiceVersion=20070822" ></a><img src="http://www.assoc-amazon.com/e/ir?t=nowfromhomeco-20&l=as2&o=1&a=B004HXHIOM" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<a href="http://www.amazon.com/gp/product/B004HXHIOM/ref=as_li_tf_tl?ie=UTF8&tag=nowfromhomeco-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B004HXHIOM">Transcend 32GB USB 3.0</a><img src="http://www.assoc-amazon.com/e/ir?t=nowfromhomeco-20&l=as2&o=1&a=B004HXHIOM" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>

<p>Of course the first thing I did with the drive was to <a href="http://www.nowfromhome.com/easily-protect-your-usb-pen-drive-data/">protect it</a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GITT: Git In The Trenches]]></title>
    <link href="http://nowfromhome.com/gitt-git-in-the-trenches/"/>
    <updated>2012-01-11T08:43:00+01:00</updated>
    <id>http://nowfromhome.com/gitt-git-in-the-trenches</id>
    <content type="html"><![CDATA[<p>My journey using SCMs has taken me through SourceSafe (ouch!), <a href="http://nowfromhome.com/moving-from-subversion-to-mercurial/">Subversion</a>, <a href="http://nowfromhome.com/moving-from-subversion-to-mercurial/">Mercurial</a> and finally <a href="http://nowfromhome.com/migrate-repository-from-mercurial-to-git/">Git</a>.</p>

<p>Despite all that experience, when I started using git I felt a bit lost. Beeing most of the time a sole developer, I really never used the most advanced features of those tools, only the basic stuff. Even with Mercurial, my branching model was based on cloning a full repository in another folder and pulling/pushing as needed.</p>

<p>Now I&#8217;m using git for most of my repositories and every day I learn something new. I really like git.</p>

<p>The best resource I&#8217;ve found to really grasp git is <a href="http://cbx33.github.com/gitt/">Git In The Trenches</a> by Peter Savage. Thanks to this book I moved from a &#8220;branch/merge&#8221; level of understanding, to use &#8220;rebase&#8221; confident about what is going to happen.</p>

<p>I like the style of the book because is based on scenarios you&#8217;ll likely face sooner or later. For example:</p>

<ul>
<li>Have you ever wanted to edit a commit message?</li>
<li>Wanted to merge two different commits into one?</li>
<li>Wanted to recreate a branch that was deleted by mistake?</li>
<li>Search where a change (a bug) was introduced, even automatically?</li>
<li>Discovered you have sensitive data (secrete keys) in your repository and want to remove it?</li>
</ul>


<p>It&#8217;s all there. It&#8217;s a really good book. Even though I read it cover to cover, I&#8217;m sure I&#8217;ll get back to it as a reference.</p>

<p>Oh! I almost forgot, it&#8217;s free, even the PDF  / e-book versions.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Migrate a repository from Mercurial to git]]></title>
    <link href="http://nowfromhome.com/migrate-repository-from-mercurial-to-git/"/>
    <updated>2012-01-05T12:31:00+01:00</updated>
    <id>http://nowfromhome.com/migrate-repository-from-mercurial-to-git</id>
    <content type="html"><![CDATA[<p>I&#8217;m using Linux more and more and I&#8217;m using git with my Linux projects. Now that I used both Mercurial and git, I feel more productive using git, basically for the branching. So I decided to move my Windows projects to git too, and get the same experience on both OS.</p>

<p>I&#8217;m hosting my projects on <a href="http://www.bitbucket.org">BitBucket</a> as they offer free private repositories.</p>

<p>There&#8217;s a lot of blogs covering how to migrate a repos from Mercurial to git, I&#8217;m posting the method that worked for me as a reference.</p>

<p>On Linux:</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>git clone git://repo.or.cz/fast-export.git
</span><span class='line'>mkdir new_git_repo
</span><span class='line'>cd new_git_repo
</span><span class='line'>git init
</span><span class='line'>/path/to/hg-fast-export.sh -r /path/to/hg_repo
</span><span class='line'>git add remote origin git@bitbucket.org:USER/repository_name.git
</span><span class='line'>git push origin master</span></code></pre></td></tr></table></div></figure>



]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Ubuntu server for Rails 3.1 and PostgreSQL 9.1]]></title>
    <link href="http://nowfromhome.com/setting-up-a-fresh-ubuntu-server-for-rails-3-dot-1-and-postgresql-9-dot-1/"/>
    <updated>2011-12-27T10:48:00+01:00</updated>
    <id>http://nowfromhome.com/setting-up-a-fresh-ubuntu-server-for-rails-3-dot-1-and-postgresql-9-dot-1</id>
    <content type="html"><![CDATA[<p>This is the second time I have to setup a VPS for a Rails/PostgreSQL so I&#8217;m documenting the steps in a customized guide to hopefully save me/you sometime in the future. These steps are collected from different sources, mostly from the <a href="http://library.linode.com/">Linode Library</a>.</p>

<p>The guide is on its <a href="http://nowfromhome.com/setting-up-a-vps-with-postgresql-9.1-and-rails.html">own page</a> because I hope to keep it updated.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Enjoying the simplicity of Octopress & Jekyll]]></title>
    <link href="http://nowfromhome.com/enjoying-the-simplicity-of-octopress-and-jekyll/"/>
    <updated>2011-12-23T14:48:00+01:00</updated>
    <id>http://nowfromhome.com/enjoying-the-simplicity-of-octopress-and-jekyll</id>
    <content type="html"><![CDATA[<p>As I spend more and more time on Linux, I&#8217;ve begun to enjoy the simplicity of the tools I use.</p>

<p>When I read about Jekyll and static site generators I fell in love with the idea.</p>

<p>I maintain a couple of blogs including this one and I&#8217;ve always used Wordpress because it is a one-click install in Dreamhost. Although extremly powerful it has some things that I don&#8217;t really like.</p>

<p>For instance, my posts are stored in a database (MySQL), which I have to backup. And then, there&#8217;s the blog template, which I tweaked a lot back then but now I don&#8217;t really know how to backup. I&#8217;d rather use git as I do with most of my documents and projects.</p>

<p>Anyway, I gave Jekyll a try on my Ubuntu box and I liked it a lot. Then I discovered Octopress which is just a framework on top of Jekyll and makes it really easy to work with Jekyll.</p>

<p>I&#8217;ve moved this blog from Wordpress to Octopress in a couple of hours, including setting up the comments (Disqus), the deployment (rsync) and the source control (git repository). Loving it!</p>

<p><a href="https://github.com/mojombo/jekyll" title="Jekyll on github">Jekyll</a></p>

<p><a href="http://octopress.org/" title="Octopess site">Octopress</a></p>

<p><a href="http://vitobotta.com/how-to-migrate-from-wordpress-to-jekyll/">Migrating from Wordpress to Jekyll</a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Rails, multi-tenant applications]]></title>
    <link href="http://nowfromhome.com/rails-multi-tenant-applications/"/>
    <updated>2011-09-15T00:00:00+02:00</updated>
    <id>http://nowfromhome.com/rails-multi-tenant-applications</id>
    <content type="html"><![CDATA[<p>I&#8217;m facing my second Rails project that has to manage multiple tenants. In both projects each customer gets its own subdomain and it&#8217;s own data . There&#8217;s three common approaches to solve this:</p>

<ul>
    <li>Share nothing (each tenant gets its own database)</li>
    <li>Share everything (a single database holds the data of all the tenants; table must include a tenant_id column)</li>
    <li>PostgreSQL schemas or namespaces (single database but a new schema is created per tenant with all the tables)</li>
</ul>


<p>I strongly recommend to check out this video &#8221;<a href="http://aac2009.confreaks.com/06-feb-2009-14-30-writing-multi-tenant-applications-in-rails-guy-naor.html">Writing Multi-Tenant Applications in Rails</a>&#8221;. It explains all these three options in detail.</p>


<p>For my first project I was a little paranoid about depending on just one column to select the correct data for each customer. If just one query misses to filter by that field you&#8217;ll be exposing private data to other customers. And what about backups? First option ruled out.</p>


<p>Even though the third option sounded appealing, I was just starting with Rails, Linux, etc. So I choose the &#8220;share nothing&#8221; approach using MySQL. It&#8217;s not trivial to make it work, and you have to add code to switch between databases per request. Migrations requires you to write some custom tasks too (future post?). That said, it&#8217;s working just fine. Backups are easy too as they are just different DBs.</p>


<p>For my new project I&#8217;m going to try PostgreSQL and the multiple schemas solution. One of the showstoppers for me to use this solution was that I didn&#8217;t know how to handle the hypothetical case that a customer needs to restore its data from a backup. In my mind there was no solution, but to restore the full database. I was wrong.</p>


<p>It&#8217;s as simple as dumping the database &#8220;per schema&#8221; using the PostgreSQL tool pg_dump which allows you to specify the schema.</p>


<p>Time to play with PostgreSQL and Rails 3. I&#8217;m using <a href="http://blog.jerodsanto.net/2011/07/building-multi-tenant-rails-apps-with-postgresql-schemas/">this post</a> as starting point.</p>

]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Windows 7 USB/DVD download tool unable to copy files]]></title>
    <link href="http://nowfromhome.com/windows-7-usbdvd-download-tool-unable-to-copy-files/"/>
    <updated>2011-09-14T00:00:00+02:00</updated>
    <id>http://nowfromhome.com/windows-7-usbdvd-download-tool-unable-to-copy-files</id>
    <content type="html"><![CDATA[<p>As everyone, I downloaded the <a href="http://msdn.microsoft.com/en-us/windows/apps/br229516" target="_blank">Windows 8 Developer Preview</a> to start playing with what it looks like a big step forward from Microsoft.</p>

<p>I downloaded the <a href="http://www.microsoftstore.com/store/msstore/html/pbPage.Help_Win7_usbdvd_dwnTool" target="_blank">Windows 7 USB/DVD Download tool</a> to create a bootable USB pendrive and it failed with the error message &#8220;Unable to copy files&#8230;&#8221;</p>

<p>I used this very same pendrive to install Ubuntu, so I guess that, even though I formatted the disk, something was still there, on the boot sector or MBR.</p>

<p>I found the solution in <a href="http://4sysops.com/archives/windows-7-usbdvd-download-tool-wudt-is-unable-to-copy-files/" target="_blank">this article</a>:</p>

<ul>
    <li>Run &#8220;diskpart&#8221; from a command prompt with admin rights</li>
    <li>list disk</li>
    <li>select disk # (the number of your USB)</li>
    <li>clean</li>
    <li>create partition primary</li>
    <li>select partition 1</li>
    <li>active</li>
    <li>format quick fs=fat32</li>
    <li>assign</li>
</ul>


<div>Run again the tool, it will work without problems now.</div>

]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[When your assets doesn't get an asset_id...]]></title>
    <link href="http://nowfromhome.com/when-your-assets-doesnt-get-an-asset_id/"/>
    <updated>2011-06-14T00:00:00+02:00</updated>
    <id>http://nowfromhome.com/when-your-assets-doesnt-get-an-asset_id</id>
    <content type="html"><![CDATA[<p>&#8230; check that the asset does exist.</p>

<p>I had the following code in my application layout template:</p>

<figure class='code'><figcaption><span>application.html.erb  </span></figcaption>
 <div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
</pre></td><td class='code'><pre><code class='ruby'><span class='line'><span class="o">&lt;!</span><span class="no">DOCTYPE</span> <span class="n">html</span><span class="o">&gt;</span>
</span><span class='line'><span class="o">&lt;</span><span class="n">html</span><span class="o">&gt;</span>
</span><span class='line'><span class="o">&lt;</span><span class="n">head</span><span class="o">&gt;</span>
</span><span class='line'>  <span class="o">&lt;</span><span class="n">title</span><span class="o">&gt;</span><span class="no">My</span> <span class="n">webpage</span> <span class="n">title</span><span class="o">&lt;</span><span class="sr">/title&gt;</span>
</span><span class='line'><span class="sr">  &lt;%= stylesheet_link_tag &#39;default&#39; %&gt;</span>
</span><span class='line'><span class="sr">  &lt;%= stylesheet_link_tag @current_subdomain %&gt;</span>
</span><span class='line'><span class="sr">  &lt;%= javascript_include_tag :defaults %&gt;</span>
</span><span class='line'><span class="sr">  &lt;%= csrf_meta_tag %&gt;</span>
</span><span class='line'><span class="sr">&lt;/</span><span class="n">head</span><span class="o">&gt;</span>
</span></code></pre></td></tr></table></div></figure>


<p>It works great to load a custom stylesheet depending on the current subdomain, however I noticed that for some subdomains Rails was not adding the asset_id:</p>

<figure class='code'> <div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
</pre></td><td class='code'><pre><code class='html'><span class='line'><span class="nt">&lt;link</span> <span class="na">type=</span><span class="s">&quot;text/css&quot;</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span> <span class="na">media=</span><span class="s">&quot;screen&quot;</span> <span class="na">href=</span><span class="s">&quot;/stylesheets/default.css?1307960871&quot;</span><span class="nt">&gt;</span>
</span><span class='line'><span class="nt">&lt;link</span> <span class="na">type=</span><span class="s">&quot;text/css&quot;</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span> <span class="na">media=</span><span class="s">&quot;screen&quot;</span> <span class="na">href=</span><span class="s">&quot;/stylesheets/sample.css&quot;</span><span class="nt">&gt;</span>
</span></code></pre></td></tr></table></div></figure>


<p>It is because sample.css must exist. <em>stylesheet_link_tag </em> does not check for the existence of the asset, and if it doesn&#8217;t exists it doesn&#8217;t add the asset timestamp.</p>

<p>Hope it saves you some time.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Program does not contain a static 'Main' method suitable for an entry point]]></title>
    <link href="http://nowfromhome.com/program-does-not-contain-a-static-main-method-suitable-for-an-entry-point/"/>
    <updated>2010-09-07T00:00:00+02:00</updated>
    <id>http://nowfromhome.com/program-does-not-contain-a-static-main-method-suitable-for-an-entry-point</id>
    <content type="html"><![CDATA[<p>I usually create projects in Visual Studio using the <em>Empty project</em> template, even if they are going to be a WPF application. As the code evolves I keep adding the appropriate references (<em>System.Xaml, PresentationCore</em> and so on).</p>

<p>At some point I’m ready to launch the application and I receive the mentioned error:</p>

<blockquote>Program XXXX does not contain a static &#8216;Main&#8217; method suitable for an entry point</blockquote>


<p>Invariably I keep forgetting where the problem is. So I start inspecting the project properties, the App class, etc. After some minutes, frustrated, I launch Google and I find the answer. It has happened way too many times, so I’m writing it here. Now I’m sure I will never forget it.</p>

<p>The file <em>App.xaml</em> is set to some other thing instead of <em>ApplicationDefinition</em>!!</p>

<p><img class="alignnone size-full wp-image-279" title="appxaml" src="http://nowfromhome.com/images/appxaml.jpg" alt="" width="260" height="174" /></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[If you get stucked with a RoR error, restart script/server]]></title>
    <link href="http://nowfromhome.com/if-you-are-stucked-with-a-ror-error-restart-scriptserver/"/>
    <updated>2010-05-21T00:00:00+02:00</updated>
    <id>http://nowfromhome.com/if-you-are-stucked-with-a-ror-error-restart-scriptserver</id>
    <content type="html"><![CDATA[<p>Yesterday I had an idea for a web app (again!). I decided to sketch it out using Ruby On Rails as a way to experiment what’s outside the .NET ecosystem. Besides, if the idea finally crystallizes, it will fit much better in a Linux box than on a Windows server mostly because I think it will be hard to find a good revenue model.</p>


<p>  <p>This post is just a note to myself. I have to admin than I’m totally lost with RoR for now. I’m following several screencasts and reading every beginner’s tutorial I can find. </p>  <p>Following one of those tutorials I got stucked. I checked my config files, checked that I had not misspelled anything but nothing came out. </p>  <p>Finally I saw an error on the server log:</p>  <blockquote>   <p>Rendering rescues/layout (internal server error)</p> </blockquote>  <p>That error message was logged 55 minutes ago!! Just restarting the ruby server made my error go away. This is the second time this happens, so I’m writing this post as a reminder. Depending of what files you touch, you could need to restart your app.</p></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Moving from Subversion to Mercurial]]></title>
    <link href="http://nowfromhome.com/moving-from-subversion-to-mercurial/"/>
    <updated>2010-03-25T00:00:00+01:00</updated>
    <id>http://nowfromhome.com/moving-from-subversion-to-mercurial</id>
    <content type="html"><![CDATA[<p><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="mercurial" border="0" alt="mercurial" align="right" src="http://nowfromhome.com/images/mercurial1.png" width="204" height="244" /> I’ve been using Subversion for the last 5 years and it has served me well. I can’t conceive writing any meaningful code without using it. Using a source control tool is the definitive backup tool for your code and you should be using one no matter what.</p>


<p>  <p>Because I work mostly alone, merging has never been a real issue for me. Mainly because I rarely branched my code to work on different branches in parallel. </p>  <p>I used to have just a main branch (trunk) where I add new code. When the code it’s ready to release, I tag it and branch it. Then I continue to add code to the trunk. The branch is used only for maintenance of the shipped code. </p>  <p>When I touch code in the maintenance branch I can merge with the trunk or usually just fix the code in the trunk manually.</p>  <p>That’s it. No branches per feature, usually no experimental branches, life was easy.</p>  <p>However, as some of my projects begun to get momentum (read ‘get real paying customers’), my needs started to grow. </p>  <p>Now I have to have more than one active maintenance branch. I also need branches to develop some custom modules for some customers, and as my time to develop a single feature grows I also need branches to develop features that need a long time to complete.</p>  <blockquote>   <p>If you branch a lot you have to merge a lot.</p> </blockquote>  <p>This implies that if you have problems merging you’ll try to avoid branching, and if you can’t branch as needed your source control tool is failing you.</p>  <p>I’ve been avoiding branching in subversion because the merging is sometimes complicated. More than once I end up applying changes manually or overwriting files from folder to folder. Not fun.</p>  <p>I started paying attention to all the buzz about <a href="http://git-scm.com/" target="_blank">git</a> and its branching/merging model. I installed it and played with it. I saw the benefits but I find some concepts difficult to grasp, so I continued to use subversion while playing with git. Then I found <a href="http://hginit.com/" target="_blank">hgInit</a>, a <a href="http://mercurial.selenic.com/" target="_blank">Mercurial</a> tutorial by <a href="http://www.joelonsoftware.com/" target="_blank">Joel Spolsky</a>. Turns out that Mercurial it’s pretty much like git, but simpler.</p>  <p>There are some differences that I’m not going to describe here, but they are not as important as their similarities. The key here is that merging code works great!</p>  <p>If you are using subversion please take a look at Mercurial or git. They are a really a big step forward. They have a different model than subversion so it takes a while to grasp the difference between a centralized and distributed source control system, but it’s worth it.</p>  <p>Here are some links that helped me see light:</p>  <p><a title="http://hginit.com/" href="http://hginit.com/">http://hginit.com/</a></p>  <p><a href="http://www.youtube.com/watch?v=4XpnKHJAok8" target="_blank">Linus Torvals on git</a></p></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Upgrading my network: Linksys WRT320n]]></title>
    <link href="http://nowfromhome.com/upgrading-my-network-linksys-wrt320n/"/>
    <updated>2010-02-16T00:00:00+01:00</updated>
    <id>http://nowfromhome.com/upgrading-my-network-linksys-wrt320n</id>
    <content type="html"><![CDATA[<p><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="Linksyssm" border="0" alt="Linksyssm" align="right" src="http://nowfromhome.com/images/Linksyssm.jpg" width="190" height="190" /></p>

<p>I <a href="http://www.nowfromhome.com/windows-7-x64-and-intel-82562v-2-dont-work-well-together/" target="_blank">wrote</a> some time ago that I was having problems with my Windows Home Server and my main PC, mainly because the transfer speeds from my WHS to my PC were ridiculous. Uploads were fine though.</p>

<p>After looking into it for a long time, the problem was that my router/switch, an SMC Barricade, was not handling the traffic from the WHS properly. Every other PC was working right.</p>

<p>Anyway, I’ve changed the router by a <a href="http://www.linksysbycisco.com/US/en/products/WRT320N" target="_blank">Linksys WRT320n</a>. This means that I’ve upgraded my LAN from 100 Mbps to 1 Gbps.</p>

<p>Transfer speeds are now ok, getting 60 MB/s out of the box. Also, the wireless speed has improved dramatically, specially when using my iPhone 3Gs. Using my old router I was unable to watch YouTube videos and now they are loaded in no time.</p>

<p>I’ve been using this router only for a couple of days, but I’m already very happy with the upgrade.</p>

<p>I have had only one minor problem setting up the wireless connection. For some reason none of my WIFI devices were able to connect to the router. I needed to manually change the &#8216;WIFI channel’ from <em>Auto</em> to <em>channel 11</em> in order to get it to work.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Shell extensions, the root of a lot of problems]]></title>
    <link href="http://nowfromhome.com/shell-extensions-the-root-of-a-lot-of-problems/"/>
    <updated>2010-02-16T00:00:00+01:00</updated>
    <id>http://nowfromhome.com/shell-extensions-the-root-of-a-lot-of-problems</id>
    <content type="html"><![CDATA[<p>In one of my computers, the simple action of creating a new folder or renaming a file was taking a lot of time. Windows Explorer seemed to freeze for a variable amount of time. Sometimes a few seconds sometimes as long a one minute!</p>

<p>Obviously some shell extension was the culprit, but which one? The idea of uninstalling one by one was discouraging, so I lived for a while with the problem until I found this little tool:</p>

<p><a href="http://www.nirsoft.net/utils/shexview.html">ShellExView</a></p>

<p><img class="alignnone" title="ShellExView" src="http://www.nirsoft.net/utils/shexview.gif" alt="" width="610" height="285" /></p>

<blockquote>The ShellExView utility displays the details of shell extensions installed on your computer, and allows you to easily disable and enable each shell extension.</blockquote>


<p>It literally save me a lot of time. You need to run this tool as an Administrator if you want to disable any shell extension.</p>

<p>It turns out that the shell extension that was causing the slow down was TortoiseSVN. For some reason it doesn&#8217;t seem to work well on my Windows 7 x64 computer. It does work ok on my laptop (W7 x86).</p>

<p>Time to update to the lastest version and review my settings.</p>

<p><em>Note: Installing TortoiseSVN&#8217;s latest version solved the problem, but I needed to run ShellExView again to enable it again.</em></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Can't modify my Visual Studio 2008 installation]]></title>
    <link href="http://nowfromhome.com/cant-modify-my-visual-studio-2008-installation/"/>
    <updated>2009-11-23T00:00:00+01:00</updated>
    <id>http://nowfromhome.com/cant-modify-my-visual-studio-2008-installation</id>
    <content type="html"><![CDATA[<p>I run setup to add the Web developer extensions to Visual Studio 2008 from the DVD and it complaint with the following message:</p>

<p> <blockquote> <br/>
A problem has been encountered while loading the setup components. Cancelling Setup
</blockquote></p>

<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://nowfromhome.com/images/vs2008_error.png" width="497" height="171" /></p>

<p>What!!!</p>

<p>Ok, I know what’s going on. The DVD has Microsoft Visual Studio 2008 installation program, but I have Visual Studio 2008 <strong>Service Pack 1</strong> installed.</p>

<p>So, I need to modify the installation using <em>Add/Remove programs </em>and select <em>Uninstall/Change. </em>Then I got this:</p>

<blockquote>   
A selected drive is no longer valid. Please review your installation path settings before continuing with setup.
</blockquote>


<p></p>

<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://nowfromhome.com/images/vs2008_error2.png" width="492" height="171" /></p>

<p>Oh, great!</p>

<p>After wasting some time through the internets, the solution was to uninstall the Service Pack 1, add or remove the features you want and reinstall Service Pack 1.</p>

<p>Hope this saves you some time.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[V 2009: I've been in some of the buildings inside Anna's mothership]]></title>
    <link href="http://nowfromhome.com/v-2009-ive-been-in-some-of-the-buildings-inside-annas-mothership/"/>
    <updated>2009-11-11T00:00:00+01:00</updated>
    <id>http://nowfromhome.com/v-2009-ive-been-in-some-of-the-buildings-inside-annas-mothership</id>
    <content type="html"><![CDATA[<p>I’ve managed to see the <a href="http://www.imdb.com/title/tt1307824/" target="_blank">V’s pilot episode</a>, the 2009 remake anyway. And there’s a scene where we see a panoramic view of the spaceship’s guts above New York. Instantly I recognized some buildings because they exist for real and in fact they are in my city, Valencia.</p>


<p>  <p>Take a look at the pictures. Next time I visit <a href="http://images.google.com/images?hl=en&amp;client=firefox-a&amp;rls=org.mozilla:en-US:official&amp;hs=cUc&amp;q=ciudad%20de%20las%20artes%20y%20las%20ciencias&amp;um=1&amp;ie=UTF-8&amp;sa=N&amp;tab=wi" target="_blank">La Ciudad de Las Artes y Las Ciencias</a> I’ll look at those buildings with suspicious eyes ;)</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="v_inside_mothership" border="0" alt="v_inside_mothership" src="http://nowfromhome.com/images/v_inside_mothership.jpg" width="500" height="327" /> </p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="valencia_ciudad_artes1" border="0" alt="valencia_ciudad_artes1" src="http://nowfromhome.com/images/valencia_ciudad_artes1.jpg" width="500" height="360" />&#160;</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="valencia_ciudad_artes2" border="0" alt="valencia_ciudad_artes2" src="http://nowfromhome.com/images/valencia_ciudad_artes2.jpg" width="500" height="375" /> </p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="valencia_ciudad_artes3" border="0" alt="valencia_ciudad_artes3" src="http://nowfromhome.com/images/valencia_ciudad_artes3.jpg" width="500" height="317" /></p></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Movistar, precio de los MMS]]></title>
    <link href="http://nowfromhome.com/movistar-precio-de-los-mms/"/>
    <updated>2009-10-28T00:00:00+01:00</updated>
    <id>http://nowfromhome.com/movistar-precio-de-los-mms</id>
    <content type="html"><![CDATA[<p><a href="http://www.nowfromhome.com/wp-content/uploads/2009/10/IMG_0004.jpg"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 8px; display: inline; border-top: 0px; border-right: 0px" title="IMG_0004" border="0" alt="IMG_0004" align="right" src="http://nowfromhome.com/images/IMG_0004_thumb.jpg" width="202" height="240" /></a>Como comenté en mi <a href="http://www.nowfromhome.com/firm-un-pacto-con-el-diablo/" target="_blank">post anterior</a>, ahora estoy con Movistar para poder disfrutar de un iPhone. Por cierto que el terminal es simplemente alucinante.</p>


<p>  <p>Como ya me temía, a cambio del iPhone estoy obligado a sufrir a este operador. No quisiera convertir este blog en mi muro de las lamentaciones contra Movistar pero…</p>  <p>Este es el mensaje que acabo de recibir:</p>  <blockquote>   <p>Por las características de tu terminal se informa que podrás enviar y recibir en un mismo mensaje: fotos, videos, melódías y hasta tu propia voz. Enviarlo es muy sencillo…</p>    <p>… Sólo te costará 1 euro más impuestos indirectos…</p> </blockquote>  <p> Sólo 1,16 € (pronto 1,18 €) !! Gracias por la información Movistar. Tiene gracia además que el mensaje te lo envían como un MMS y adjuntan una foto con 2 chiquitas muy monas usando sus teléfonos (apuesto a que no son de Movistar).</p>  <p>Como referencia, <a href="http://www.yoigo.com/tarifas/index.php" target="_blank">en Yoigo un MMS cuesta 30 céntimos</a>.</p>  <p>En fin, una funcionalidad menos que tiene el iPhone gracias a Movistar.</p></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Firmé un pacto con el diablo...]]></title>
    <link href="http://nowfromhome.com/firm-un-pacto-con-el-diablo/"/>
    <updated>2009-10-14T00:00:00+02:00</updated>
    <id>http://nowfromhome.com/firm-un-pacto-con-el-diablo</id>
    <content type="html"><![CDATA[<p><a href="http://www.nowfromhome.com/wp-content/uploads/2009/10/3225900092_2a9c90c85c_m.jpg"><img style="border-right-width: 0px; margin: 0px 0px 0px 10px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="3225900092_2a9c90c85c_m" border="0" alt="3225900092_2a9c90c85c_m" align="right" src="http://nowfromhome.com/images/3225900092_2a9c90c85c_m_thumb.jpg" width="244" height="165" /></a> Es decir, con Movistar. A cambio me concede el deseo de disfrutar de un iPhone. </p>


<p>  <p>En los comentarios de <a href="http://www.nowfromhome.com/iphone-3gs-disponibilidad-nula-en-valencia/" target="_blank">este post</a> comentaba que me había rendido en el tema del iPhone y que no quería seguirle el juego a Movistar. Sin embargo, caprichos del destino, mi teléfono decidió aprovechar el&#160; magnífico tiempo que hizo este pasado puente y se dió un chapuzón en la piscina. ¿Qué mejor excusa para retomar el tema de iPhone?</p>  <p>En fin que tomada la decisión, me empapé bien de las tarifas disponibles y me lancé de nuevo a la caza.</p>  <p>En la primera tienda que fui no tenían. En la segunda sí habían y esto es lo que pasó:</p>  <blockquote>   <p>Yo: Buenos días, ¿tienen iPhones en stock?</p>    <p>Movi: Me tienen que entrar… ¿para qué era?</p>    <p>Yo: Portabilidad</p>    <p>Movi: ah, pues me parece que alguno tengo en el almacén.</p>    <p>Yo: Entonces, ¿me espero? (había más gente en la tienda)</p>    <p>Movi: Sí, espérate.</p> </blockquote>  <p>Vamos a ver, ¿te tienen que entrar o tienes? ¿Es que depende de si es una portabilidad o no? La respuesta está clara.</p>  <p>Cuando termina con la persona que estaba atendiendo, mete la mano debajo del mostrador y saca un iPhone 3GS precintado.</p>  <p>Me quedo flipado con la desfachatez de la dependienta. La cosa sigue…</p>  <blockquote>   <p>Movi: Bueno tenemos varias tarifas…</p>    <p>Yo: Quiero la de Autónomos 12 con el plan de Internet básico de 15 €</p>    <p>Movi: A ver que consulte las tarifas…</p>    <p>(2 minutos mirando cosas en la pantalla del ordenador).</p>    <p>Movi: La tarifa de Autónomos 12 obliga a contratar el plan de datos Premium de 40 €</p>    <p>Yo: Imposible. Acabo de verlo en Internet</p>    <p>Movi: Bueno, ten en cuenta que la página de Internet trabaja con otras tarifas.</p>    <p>Yo: Ok, entonces me lo pillaré por Internet.</p>    <p>Movi: Espera que mire los correos electrónicos a ver si ha entrado algo más nuevo…</p>    <p>(Otro ratito jugando con el ratón)</font></p>    <p>Movi: A si, si. Aquí está tarifa 15 € con portabilidad… Vale, puedes contratar la de 15 €.</p>    <p>Movi: Bueno, pues entonces el móvil te sale por 139 €</p>    <p>Yo: Seguro, creo recordar que con portabilidad eran 99 €</p>    <p>Movi: Si, sí. Aquí lo tengo.</p>    <p>Yo: Pues estoy seguro de que he leído que eran 99 €. ¿Puedes meterte en la página del iPhone / Movistar y comprobarlo? Si pone 139 € me lo llevo sin más.</p>    <p>(Reticente, se pone a buscar pero no encuentra la tabla de precios)</p>    <p>Movi: Pues mira, no aparece y esto es la última información que me ha llegado.</p>    <p>Yo: ¿Estás de acuerdo conmigo en que no tiene sentido pagar 40 € más por lo mismo? ¿verdad?</p>    <p>Movi: Espera que voy a llamar…</p>    <p>(llama a alguien)</p>    <p>Movi: Ok, 99 €.</p>    <p>Yo: Vale. Vamos a hacer los papeles.</p> </blockquote>  <p>De verdad que estuve a punto de coger y marcharme. Pero pudo más la atracción de Apple.</p>  <p>Por supuesto el tema del seguro se lo reservó hasta que todo estuvo firmado. </p>  <blockquote>   <p>Movi: Ay!, casi se me olvida. Sabes que el seguro es obligatorio ¿no?</p>    <p>(haciéndome el tonto y con sonrisa socarrona)</p>    <p>Yo: ¿Seguro? ¿Qué seguro? Yo no quiero ningún seguro.</p>    <p>(con cara descompuesta y visiblemente nerviosa. A estas alturas la tienda estaba llena de gente</p>    <p>Movi: Si, sí, es obligatorio sacarse este seguro para todos los móviles que superan (no se cuántos) euros.</p>    <p>Yo: Ok, si que lo sabía. Me parece que tomáis el pelo a la gente y que probablemente no sea ni legal. Pero bueno, cobrame los 40 € del seguro.</p>    <p>Movi: Ok, pues ya está todo. En unos 6 días te llamaremos</p> </blockquote>  <p>Por si alguno tiene la duda de lo que te cubre el seguro, os lo pongo a continuación. A la vez da risa y ganas de ir a la OCU.</p>  <p>- Robo o hurto (no especifica cantidad pero me he enterado que cubre 200 €)</p>  <p>- Llamadas fraudulentas hasta 2 horas antes de la declaración del siniestro y hasta 1200€</p>  <p>- Reparación del terminal, hasta 90 € (periodo de carencia de 45 días)</p>  <p>- Pérdida, con reembolso de 100 €</p>  <p>Y ya está!. Teniendo en cuenta que tendría que pagarle a Movistar 584 € si no cumplo los 18 meses de permanencia, en caso de robo o rotura el seguro no sirve para nada. </p>  <p>Todo esto intentando captarme como cliente nuevo. Imaginaros dentro de 18 meses cuando quiera cambiar mi iPhone por otro. Terrible.</p>  <p>Espero que esto le sirva a alguien que todavía vaya detrás del iPhone. Ir preparados porque van a intentar jugarosla en todos los pasos.</p>  <p>También recomiendo leer los ya famosos posts de: <a href="http://www.tengounmac.com/archivo/odisea-comprar-iphone-3gs-espana-i.xhtml" target="_blank">La odisea de comprar un iPhone en España I</a>, <a href="http://www.tengounmac.com/archivo/odisea-comprar-iphone-3gs-espana-ii.xhtml" target="_blank">II</a> y <a href="http://www.tengounmac.com/archivo/odisea-comprar-iphone-3gs-espana-iii-final-feliz.xhtml" target="_blank">III</a></p></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Vado HD: Pocket high-definition video camera]]></title>
    <link href="http://nowfromhome.com/vado-hd-pocket-high-definition-video-camera/"/>
    <updated>2009-10-05T00:00:00+02:00</updated>
    <id>http://nowfromhome.com/vado-hd-pocket-high-definition-video-camera</id>
    <content type="html"><![CDATA[<p><img style="border-bottom: 0px; border-left: 0px; margin: 0px 0px 0px 10px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" align="right" src="http://nowfromhome.com/images/vado.png" width="272" height="275" />
Last month, my Sony HC-90 Handycam stopped working. The failure was quite simple, the objective’s cover didn’t fully open. I tried to repair it myself but it was impossible. I contacted Sony Service Support but they asked me 60 €. Too much for such a simple problem.</p>

<p>I decided to check what the market could offer me. I remembered to have read some great reviews about the <a href="http://www.theflip.com/products_flip_ultra.shtml#scene=sceneMain" target="_blank">Flip Ultra</a> camera, which opened&#160; a new segment called ultaportable video cameras. I started reading reviews and comparisons charts with other ultraportable cameras.</p>

<p>Turns out that the Flip can’t be bought in Spain, so I lean towards the <a href="http://us.creative.com/products/product.asp?category=833&amp;subcategory=834&amp;product=18108" target="_blank">Creative Vado HD</a>. It <a href="http://reviews.cnet.com/digital-camcorders/creative-vado-hd/4505-6500_7-33438638.html" target="_blank">compares very good with the MinoHD</a>.</p>

<p>For just 200 € shipped (much less if you can buy it from Amazon!) you get a video camera that fits in your pocket (just like a mobile phone), that can do HD (1280x720) and that has no moving parts. It has 8 GB of memory which is enough for 2 hours of high definition video. It also includes an HDMI cable.</p>

<p>Video quality is great even indoors with low light. Of course it cannot be compared with other bigger HD cameras, but it’s ok to shot home videos.</p>

<p>The camera has been designed with one goal in mind: simplicity. You turn on the camera (by the way is ready to shoot video in 1 second) and press the red button to start recording. Press it again to stop it. Each time you press the red button a new file is created.</p>

<p>The you can view the videos on the built-in small screen and delete those you don’t want. You can directly plug the camera to your TV (via HDMI), or connect it to any USB port in your computer and transfer the files.</p>

<p>It also includes some software to manage the videos and uploading them to YouTube and other services but I have not tried it yet. Honestly I don’t care about that software.</p>

<p>I’m very happy with the camera. The best advantage I see over traditional cameras is that you can bring it with you all the times and therefore you shoot a lot more videos. Ask my son ;)</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Windows 7 x64 and Intel 82562V-2 don't work well together]]></title>
    <link href="http://nowfromhome.com/windows-7-x64-and-intel-82562v-2-dont-work-well-together/"/>
    <updated>2009-09-09T00:00:00+02:00</updated>
    <id>http://nowfromhome.com/windows-7-x64-and-intel-82562v-2-dont-work-well-together</id>
    <content type="html"><![CDATA[<p><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="networkcard" border="0" alt="networkcard" align="right" src="http://nowfromhome.com/images/networkcard_thumb.jpg" width="240" height="188" /> As soon as Windows 7 RTM got released I upgraded my main computer and my laptop. On my main machine I put Windows 7 x64 as I have 8 GB there. Everything worked great except the network card. I was unable to get more than a couple of hundreds of KB/s of transfer speed.</p>

<p>I updated the drivers to <a href="http://downloadcenter.intel.com/filter_results.aspx?strTypes=all&amp;ProductID=998&amp;OSFullName=Windows+7%2C+64-bit*&amp;lang=eng&amp;strOSs=190&amp;submit=Go!">the latest</a> version from Intel, but it made no difference. Of course this was a show-stopping problem because backups takes forever and even browsing photos from a network share is simply impossible.</p>

<p>I’ve finally solved the problem purchasing a 6 € Gigabit network card. It works just fine and now I’m getting around 12 MB/s again (my network is 100MB for now).</p>

<p>I’m sure Intel will update their drivers before Windows 7 reaches General Availability.</p>
]]></content>
  </entry>
  
</feed>

