Skip to content
Browse files

Site updated at 2012-12-19 10:12:09 UTC

  • Loading branch information...
1 parent a1ea4a1 commit b1472ef976e79664a9cd32776e60f0f082fd682c @luisalima committed Dec 19, 2012
Showing with 2,896 additions and 215 deletions.
  1. +93 −1 atom.xml
  2. +173 −0 blog/2012/12/14/analytics-js/index.html
  3. +194 −0 blog/2012/12/14/how-i-test/index.html
  4. +163 −0 blog/2012/12/18/inspiring-ted-talk/index.html
  5. +55 −1 blog/archives/index.html
  6. +43 −0 blog/categories/analytics/atom.xml
  7. +135 −0 blog/categories/analytics/index.html
  8. +1 −1 blog/categories/blog/atom.xml
  9. +33 −0 blog/categories/business/atom.xml
  10. +135 −0 blog/categories/business/index.html
  11. +1 −1 blog/categories/console/atom.xml
  12. +1 −1 blog/categories/cool-gems/atom.xml
  13. +1 −1 blog/categories/future/atom.xml
  14. +1 −1 blog/categories/grooveshark/atom.xml
  15. +33 −0 blog/categories/inspiring/atom.xml
  16. +135 −0 blog/categories/inspiring/index.html
  17. +1 −1 blog/categories/interesting/atom.xml
  18. +43 −0 blog/categories/js/atom.xml
  19. +135 −0 blog/categories/js/index.html
  20. +1 −1 blog/categories/log/atom.xml
  21. +1 −1 blog/categories/message/atom.xml
  22. +1 −1 blog/categories/octopress/atom.xml
  23. +1 −1 blog/categories/ot/atom.xml
  24. +64 −0 blog/categories/rails-/atom.xml
  25. +135 −0 blog/categories/rails-/index.html
  26. +1 −1 blog/categories/rails-tips/atom.xml
  27. +28 −30 blog/categories/rails/atom.xml
  28. +18 −0 blog/categories/rails/index.html
  29. +1 −1 blog/categories/raspberrypi/atom.xml
  30. +1 −1 blog/categories/rspec/atom.xml
  31. +1 −1 blog/categories/ssh/atom.xml
  32. +33 −0 blog/categories/talks/atom.xml
  33. +135 −0 blog/categories/talks/index.html
  34. +49 −1 blog/categories/tdd/atom.xml
  35. +18 −0 blog/categories/tdd/index.html
  36. +33 −0 blog/categories/ted/atom.xml
  37. +135 −0 blog/categories/ted/index.html
  38. +64 −0 blog/categories/testing-/atom.xml
  39. +135 −0 blog/categories/testing-/index.html
  40. +1 −1 blog/categories/testing/atom.xml
  41. +1 −1 blog/categories/thin/atom.xml
  42. +1 −1 blog/categories/verbose/atom.xml
  43. +1 −1 blog/categories/vnc/atom.xml
  44. +43 −0 blog/categories/webdev/atom.xml
  45. +135 −0 blog/categories/webdev/index.html
  46. +1 −1 blog/categories/webrick/atom.xml
  47. +317 −0 blog/page/2/index.html
  48. +151 −161 index.html
  49. +14 −2 sitemap.xml
View
94 atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
@@ -14,6 +14,98 @@
<entry>
+ <title type="html"><![CDATA[Inspiring TED talk]]></title>
+ <link href="http://luisalima.github.com/blog/2012/12/18/inspiring-ted-talk/"/>
+ <updated>2012-12-18T11:06:00+00:00</updated>
+ <id>http://luisalima.github.com/blog/2012/12/18/inspiring-ted-talk</id>
+ <content type="html"><![CDATA[<p>For anyone who works in business (especially startups), this is most probably (or most definitely) the most important TED talk that you&#8217;ll ever get to watch. Or the most important talk/piece of advice that you&#8217;ll ever get, I believe.</p>
+
+<p><a href="http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action.html">How great leaders inspire action</a></p>
+
+<p>The fact is that this is what attracts me (and many people, probably) to startups. It&#8217;s just easier to find this sharing of common beliefs &#8211; and if it&#8217;s not, it&#8217;s the wrong startup.</p>
+
+<p><strong>People don&#8217;t buy what you do, they buy why you do it.</strong></p>
+
+<p>People buy what you believe in. Somehow this makes me believe in mankind a bit more :-)</p>
+]]></content>
+ </entry>
+
+ <entry>
+ <title type="html"><![CDATA[Analytics js & a mash of interesting rails stuff]]></title>
+ <link href="http://luisalima.github.com/blog/2012/12/14/analytics-js/"/>
+ <updated>2012-12-14T13:34:00+00:00</updated>
+ <id>http://luisalima.github.com/blog/2012/12/14/analytics-js</id>
+ <content type="html"><![CDATA[<h2>Analytics.js</h2>
+
+<p>I don&#8217;t know whether this library is very common, but it definitely shows a lot of promise:</p>
+
+<p><a href="http://segmentio.github.com/analytics.js/">Segmentio&#8217;s Analytics.js</a></p>
+
+<p>It provides provider-agnostic hooks to route to analytics services. They also have a hosted version where the analytics services can be changed without touching the code. Looks really clean and neat.</p>
+
+<h2>Nice video: to_proc</h2>
+
+<p><a href="http://www.youtube.com/watch?v=aISNtCAZlMg">This video by CooperPress</a> explains in a very clear fashion how to use the &#8220;to_proc&#8221; feature of Ruby (and understand some weird code you might come across). It is also well worth it to subscribe to <a href="http://www.youtube.com/user/CooperPress?feature=watch">their other videos</a>.</p>
+
+<h2>Faster Rails partial rendering and caching</h2>
+
+<p>I sure will try out <a href="http://ninjasandrobots.com/rails-faster-partial-rendering-and-caching/">this gem (multi_fetch_fragments)</a> to optimize Rails when I get to that point of my work&#8230;</p>
+
+<h2>Indexes in Rails databases</h2>
+
+<p><a href="http://tomafro.net/2009/08/using-indexes-in-rails-index-your-associations">Extremely good article by Tom Ward on using indexes in rails associations</a>. An excellent guide to determine what indexes your app should include (no more, no less).</p>
+]]></content>
+ </entry>
+
+ <entry>
+ <title type="html"><![CDATA[How I test - Part I: Environment]]></title>
+ <link href="http://luisalima.github.com/blog/2012/12/14/how-i-test/"/>
+ <updated>2012-12-14T11:43:00+00:00</updated>
+ <id>http://luisalima.github.com/blog/2012/12/14/how-i-test</id>
+ <content type="html"><![CDATA[<p>Not that I am an authority in testing&#8230; this is just a compilation of the so-called &#8220;best practices&#8221; that I&#8217;ve been seeing around, as well as some extra tips from my (very limited) experience. I&#8217;d love to hear the feedback from more experienced people&#8230; I&#8217;m going to do several of these as I go along.</p>
+
+<h2>Gems I use</h2>
+
+<p>I test using <a href="http://rspec.info">rspec</a> and <a href="https://github.com/thoughtbot/shoulda">shoulda</a>, which dramatically reduces the size of the tests. But beware &#8211; rspec is a DSL, and I think that I only got a bit more intuition on what I was exactly testing after doing some tests in Test::Unit. I also use <a href="https://github.com/thoughtbot/factory_girl">FactoryGirl</a> for setting up the test data, instead of fixtures. Last but not least, the <a href="https://github.com/colszowka/simplecov">simplecov</a> gem is amazing, and although you shouldn&#8217;t rely on it to determine when to stop testing, it really is good to get a (very precise) sense of what&#8217;s covered and what&#8217;s not in their beautiful html reports.</p>
+
+<h2>General tips</h2>
+
+<p>When all your tests are red for no apparent reason, it&#8217;s because you were messing around with the db and then forgot to do</p>
+
+<pre><code>rake db:test:clone</code></pre>
+
+
+<p>Yup, the reason I am mentioning it here even though it seems completely obvious is because I am distracted and do that a lot&#8230; :-)</p>
+
+<h2>Tips for running guard/spork in vagrant</h2>
+
+<p>I use vagrant to keep my environment all neatly in one place. However, there are downsides. When running guard inside the guest OS, use</p>
+
+<pre><code>bundle exec guard -p</code></pre>
+
+
+<p>Otherwise, guard won&#8217;t detect changes in the guest filesystem.</p>
+
+<h2>FactoryGirl tips</h2>
+
+<p>You can keep all factories in one file, for me that is more intuitive (and also, I don&#8217;t have to keep opening files while I&#8217;m testing, it&#8217;s all in one place.)</p>
+
+<p>To try FactoryGirl methods in the console, run:</p>
+
+<pre><code>FactoryGirl.find_definitions</code></pre>
+
+
+<p>At least in my case, I would get a <a href="http://stackoverflow.com/questions/8409787/factorygirl-factory-not-registered-user-argumenterror">factory not registered</a> error when I didn&#8217;t do that.</p>
+
+<h2>Better Errors</h2>
+
+<p>Not exactly related to testing, but this gem has been a life changer! When there is an error, the standard error page gets replaced by a much better and useful error page, which has a full trace, the local and instance variables that are set at the time, and a terminal that you can use to inspect and make changes to the variables in the models and controllers in real time (or code whatever you want). I know I already mentioned it in another post, but I can&#8217;t stress enough how cool this gem is!</p>
+
+<p>In the next posts, I&#8217;ll give an overview of how I test the models and controllers, which I only started testing this week!</p>
+]]></content>
+ </entry>
+
+ <entry>
<title type="html"><![CDATA[Rails tip #2 - less Rspec in more color]]></title>
<link href="http://luisalima.github.com/blog/2012/12/14/rails-tip-number-2-less-rspec-in-color/"/>
<updated>2012-12-14T11:04:00+00:00</updated>
View
173 blog/2012/12/14/analytics-js/index.html
@@ -0,0 +1,173 @@
+
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Analytics js & a mash of interesting rails stuff - Entreprevelopment adventures</title>
+ <meta name="author" content="Luisa Lima">
+
+
+ <meta name="description" content="Analytics.js I don&#8217;t know whether this library is very common, but it definitely shows a lot of promise: Segmentio&#8217;s Analytics.js It &hellip;">
+
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+
+ <link href="/atom.xml" rel="alternate" title="Entreprevelopment adventures" type="application/atom+xml">
+ <link rel="canonical" href="">
+ <link href="/favicon.png" rel="shortcut icon">
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+
+</head>
+
+<body>
+ <header id="header" class="inner"><h1><a href="/">Entreprevelopment adventures</a></h1>
+<nav id="main-nav"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</nav>
+<nav id="mobile-nav">
+ <div class="alignleft menu">
+ <a class="button">Menu</a>
+ <div class="container"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</div>
+ </div>
+ <div class="alignright search">
+ <a class="button"></a>
+ <div class="container">
+ <form action="http://google.com/search" method="get">
+ <input type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+ </div>
+ </div>
+</nav>
+<nav id="sub-nav" class="alignright">
+ <div class="social">
+
+
+
+ <a class="twitter" href="http://twitter.com/luisamoyalima" title="Twitter">Twitter</a>
+
+
+ <a class="github" href="https://github.com/luisalima" title="GitHub">GitHub</a>
+
+
+
+
+
+
+
+ <a class="rss" href="/atom.xml" title="RSS">RSS</a>
+
+ </div>
+ <form class="search" action="http://google.com/search" method="get">
+ <input class="alignright" type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+</nav>
+
+</header>
+
+
+<div id="banner" class="inner">
+ <div class="container">
+ <ul class="feed"></ul>
+ </div>
+ <small><a href="http://twitter.com/luisamoyalima">luisamoyalima</a> @ <a href="http://twitter.com">Twitter</a></small>
+ <div class="loading">Loading...</div>
+</div>
+<script src="/javascripts/twitter.js"></script>
+<script type="text/javascript">
+ (function($){
+ $('#banner').getTwitterFeed('luisamoyalima', 4, false);
+ })(jQuery);
+</script>
+
+
+ <div id="content" class="inner"><article class="post">
+ <h2 class="title">Analytics Js & a Mash of Interesting Rails Stuff</h2>
+ <div class="entry-content"><h2>Analytics.js</h2>
+
+<p>I don&#8217;t know whether this library is very common, but it definitely shows a lot of promise:</p>
+
+<p><a href="http://segmentio.github.com/analytics.js/">Segmentio&#8217;s Analytics.js</a></p>
+
+<p>It provides provider-agnostic hooks to route to analytics services. They also have a hosted version where the analytics services can be changed without touching the code. Looks really clean and neat.</p>
+
+<h2>Nice video: to_proc</h2>
+
+<p><a href="http://www.youtube.com/watch?v=aISNtCAZlMg">This video by CooperPress</a> explains in a very clear fashion how to use the &#8220;to_proc&#8221; feature of Ruby (and understand some weird code you might come across). It is also well worth it to subscribe to <a href="http://www.youtube.com/user/CooperPress?feature=watch">their other videos</a>.</p>
+
+<h2>Faster Rails partial rendering and caching</h2>
+
+<p>I sure will try out <a href="http://ninjasandrobots.com/rails-faster-partial-rendering-and-caching/">this gem (multi_fetch_fragments)</a> to optimize Rails when I get to that point of my work&#8230;</p>
+
+<h2>Indexes in Rails databases</h2>
+
+<p><a href="http://tomafro.net/2009/08/using-indexes-in-rails-index-your-associations">Extremely good article by Tom Ward on using indexes in rails associations</a>. An excellent guide to determine what indexes your app should include (no more, no less).</p>
+</div>
+
+
+<div class="meta">
+ <div class="date">
+
+
+
+
+
+
+
+
+
+
+
+<time datetime="2012-12-14T13:34:00+00:00" pubdate data-updated="true">Dec 14<span>th</span>, 2012</time></div>
+ <div class="tags">
+
+
+ <a class='category' href='/blog/categories/analytics/'>analytics</a>, <a class='category' href='/blog/categories/js/'>js</a>, <a class='category' href='/blog/categories/rails/'>rails</a>, <a class='category' href='/blog/categories/webdev/'>webdev</a>
+
+
+</div>
+
+</div></article>
+
+ <div class="share">
+ <div class="addthis_toolbox addthis_default_style ">
+
+
+ <a class="addthis_button_tweet"></a>
+
+
+ <a class="addthis_counter addthis_pill_style"></a>
+ </div>
+ <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid="></script>
+</div>
+
+
+</div>
+ <footer id="footer" class="inner">Copyright &copy; 2012
+
+ Luisa Lima
+
+</footer>
+ <script src="/javascripts/slash.js"></script>
+<script src="/javascripts/jquery.fancybox.pack.js"></script>
+<script type="text/javascript">
+(function($){
+ $('.fancybox').fancybox();
+})(jQuery);
+</script> <!-- Delete or comment this line to disable Fancybox -->
+
+
+
+
+
+
+</body>
+</html>
View
194 blog/2012/12/14/how-i-test/index.html
@@ -0,0 +1,194 @@
+
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>How I test - Part I: Environment - Entreprevelopment adventures</title>
+ <meta name="author" content="Luisa Lima">
+
+
+ <meta name="description" content="Not that I am an authority in testing&#8230; this is just a compilation of the so-called &#8220;best practices&#8221; that I&#8217;ve been seeing &hellip;">
+
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+
+ <link href="/atom.xml" rel="alternate" title="Entreprevelopment adventures" type="application/atom+xml">
+ <link rel="canonical" href="">
+ <link href="/favicon.png" rel="shortcut icon">
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+
+</head>
+
+<body>
+ <header id="header" class="inner"><h1><a href="/">Entreprevelopment adventures</a></h1>
+<nav id="main-nav"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</nav>
+<nav id="mobile-nav">
+ <div class="alignleft menu">
+ <a class="button">Menu</a>
+ <div class="container"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</div>
+ </div>
+ <div class="alignright search">
+ <a class="button"></a>
+ <div class="container">
+ <form action="http://google.com/search" method="get">
+ <input type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+ </div>
+ </div>
+</nav>
+<nav id="sub-nav" class="alignright">
+ <div class="social">
+
+
+
+ <a class="twitter" href="http://twitter.com/luisamoyalima" title="Twitter">Twitter</a>
+
+
+ <a class="github" href="https://github.com/luisalima" title="GitHub">GitHub</a>
+
+
+
+
+
+
+
+ <a class="rss" href="/atom.xml" title="RSS">RSS</a>
+
+ </div>
+ <form class="search" action="http://google.com/search" method="get">
+ <input class="alignright" type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+</nav>
+
+</header>
+
+
+<div id="banner" class="inner">
+ <div class="container">
+ <ul class="feed"></ul>
+ </div>
+ <small><a href="http://twitter.com/luisamoyalima">luisamoyalima</a> @ <a href="http://twitter.com">Twitter</a></small>
+ <div class="loading">Loading...</div>
+</div>
+<script src="/javascripts/twitter.js"></script>
+<script type="text/javascript">
+ (function($){
+ $('#banner').getTwitterFeed('luisamoyalima', 4, false);
+ })(jQuery);
+</script>
+
+
+ <div id="content" class="inner"><article class="post">
+ <h2 class="title">How I Test - Part I: Environment</h2>
+ <div class="entry-content"><p>Not that I am an authority in testing&#8230; this is just a compilation of the so-called &#8220;best practices&#8221; that I&#8217;ve been seeing around, as well as some extra tips from my (very limited) experience. I&#8217;d love to hear the feedback from more experienced people&#8230; I&#8217;m going to do several of these as I go along.</p>
+
+<h2>Gems I use</h2>
+
+<p>I test using <a href="http://rspec.info">rspec</a> and <a href="https://github.com/thoughtbot/shoulda">shoulda</a>, which dramatically reduces the size of the tests. But beware &#8211; rspec is a DSL, and I think that I only got a bit more intuition on what I was exactly testing after doing some tests in Test::Unit. I also use <a href="https://github.com/thoughtbot/factory_girl">FactoryGirl</a> for setting up the test data, instead of fixtures. Last but not least, the <a href="https://github.com/colszowka/simplecov">simplecov</a> gem is amazing, and although you shouldn&#8217;t rely on it to determine when to stop testing, it really is good to get a (very precise) sense of what&#8217;s covered and what&#8217;s not in their beautiful html reports.</p>
+
+<h2>General tips</h2>
+
+<p>When all your tests are red for no apparent reason, it&#8217;s because you were messing around with the db and then forgot to do</p>
+
+<pre><code>rake db:test:clone</code></pre>
+
+
+<p>Yup, the reason I am mentioning it here even though it seems completely obvious is because I am distracted and do that a lot&#8230; :-)</p>
+
+<h2>Tips for running guard/spork in vagrant</h2>
+
+<p>I use vagrant to keep my environment all neatly in one place. However, there are downsides. When running guard inside the guest OS, use</p>
+
+<pre><code>bundle exec guard -p</code></pre>
+
+
+<p>Otherwise, guard won&#8217;t detect changes in the guest filesystem.</p>
+
+<h2>FactoryGirl tips</h2>
+
+<p>You can keep all factories in one file, for me that is more intuitive (and also, I don&#8217;t have to keep opening files while I&#8217;m testing, it&#8217;s all in one place.)</p>
+
+<p>To try FactoryGirl methods in the console, run:</p>
+
+<pre><code>FactoryGirl.find_definitions</code></pre>
+
+
+<p>At least in my case, I would get a <a href="http://stackoverflow.com/questions/8409787/factorygirl-factory-not-registered-user-argumenterror">factory not registered</a> error when I didn&#8217;t do that.</p>
+
+<h2>Better Errors</h2>
+
+<p>Not exactly related to testing, but this gem has been a life changer! When there is an error, the standard error page gets replaced by a much better and useful error page, which has a full trace, the local and instance variables that are set at the time, and a terminal that you can use to inspect and make changes to the variables in the models and controllers in real time (or code whatever you want). I know I already mentioned it in another post, but I can&#8217;t stress enough how cool this gem is!</p>
+
+<p>In the next posts, I&#8217;ll give an overview of how I test the models and controllers, which I only started testing this week!</p>
+</div>
+
+
+<div class="meta">
+ <div class="date">
+
+
+
+
+
+
+
+
+
+
+
+<time datetime="2012-12-14T11:43:00+00:00" pubdate data-updated="true">Dec 14<span>th</span>, 2012</time></div>
+ <div class="tags">
+
+
+ <a class='category' href='/blog/categories/tdd/'>TDD</a>, <a class='category' href='/blog/categories/rails-/'>rails,</a>, <a class='category' href='/blog/categories/testing-/'>testing,</a>
+
+
+</div>
+
+</div></article>
+
+ <div class="share">
+ <div class="addthis_toolbox addthis_default_style ">
+
+
+ <a class="addthis_button_tweet"></a>
+
+
+ <a class="addthis_counter addthis_pill_style"></a>
+ </div>
+ <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid="></script>
+</div>
+
+
+</div>
+ <footer id="footer" class="inner">Copyright &copy; 2012
+
+ Luisa Lima
+
+</footer>
+ <script src="/javascripts/slash.js"></script>
+<script src="/javascripts/jquery.fancybox.pack.js"></script>
+<script type="text/javascript">
+(function($){
+ $('.fancybox').fancybox();
+})(jQuery);
+</script> <!-- Delete or comment this line to disable Fancybox -->
+
+
+
+
+
+
+</body>
+</html>
View
163 blog/2012/12/18/inspiring-ted-talk/index.html
@@ -0,0 +1,163 @@
+
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Inspiring TED talk - Entreprevelopment adventures</title>
+ <meta name="author" content="Luisa Lima">
+
+
+ <meta name="description" content="For anyone who works in business (especially startups), this is most probably (or most definitely) the most important TED talk that you&#8217;ll ever &hellip;">
+
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+
+ <link href="/atom.xml" rel="alternate" title="Entreprevelopment adventures" type="application/atom+xml">
+ <link rel="canonical" href="">
+ <link href="/favicon.png" rel="shortcut icon">
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+
+</head>
+
+<body>
+ <header id="header" class="inner"><h1><a href="/">Entreprevelopment adventures</a></h1>
+<nav id="main-nav"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</nav>
+<nav id="mobile-nav">
+ <div class="alignleft menu">
+ <a class="button">Menu</a>
+ <div class="container"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</div>
+ </div>
+ <div class="alignright search">
+ <a class="button"></a>
+ <div class="container">
+ <form action="http://google.com/search" method="get">
+ <input type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+ </div>
+ </div>
+</nav>
+<nav id="sub-nav" class="alignright">
+ <div class="social">
+
+
+
+ <a class="twitter" href="http://twitter.com/luisamoyalima" title="Twitter">Twitter</a>
+
+
+ <a class="github" href="https://github.com/luisalima" title="GitHub">GitHub</a>
+
+
+
+
+
+
+
+ <a class="rss" href="/atom.xml" title="RSS">RSS</a>
+
+ </div>
+ <form class="search" action="http://google.com/search" method="get">
+ <input class="alignright" type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+</nav>
+
+</header>
+
+
+<div id="banner" class="inner">
+ <div class="container">
+ <ul class="feed"></ul>
+ </div>
+ <small><a href="http://twitter.com/luisamoyalima">luisamoyalima</a> @ <a href="http://twitter.com">Twitter</a></small>
+ <div class="loading">Loading...</div>
+</div>
+<script src="/javascripts/twitter.js"></script>
+<script type="text/javascript">
+ (function($){
+ $('#banner').getTwitterFeed('luisamoyalima', 4, false);
+ })(jQuery);
+</script>
+
+
+ <div id="content" class="inner"><article class="post">
+ <h2 class="title">Inspiring TED Talk</h2>
+ <div class="entry-content"><p>For anyone who works in business (especially startups), this is most probably (or most definitely) the most important TED talk that you&#8217;ll ever get to watch. Or the most important talk/piece of advice that you&#8217;ll ever get, I believe.</p>
+
+<p><a href="http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action.html">How great leaders inspire action</a></p>
+
+<p>The fact is that this is what attracts me (and many people, probably) to startups. It&#8217;s just easier to find this sharing of common beliefs &#8211; and if it&#8217;s not, it&#8217;s the wrong startup.</p>
+
+<p><strong>People don&#8217;t buy what you do, they buy why you do it.</strong></p>
+
+<p>People buy what you believe in. Somehow this makes me believe in mankind a bit more :-)</p>
+</div>
+
+
+<div class="meta">
+ <div class="date">
+
+
+
+
+
+
+
+
+
+
+
+<time datetime="2012-12-18T11:06:00+00:00" pubdate data-updated="true">Dec 18<span>th</span>, 2012</time></div>
+ <div class="tags">
+
+
+ <a class='category' href='/blog/categories/business/'>business</a>, <a class='category' href='/blog/categories/inspiring/'>inspiring</a>, <a class='category' href='/blog/categories/talks/'>talks</a>, <a class='category' href='/blog/categories/ted/'>ted</a>
+
+
+</div>
+
+</div></article>
+
+ <div class="share">
+ <div class="addthis_toolbox addthis_default_style ">
+
+
+ <a class="addthis_button_tweet"></a>
+
+
+ <a class="addthis_counter addthis_pill_style"></a>
+ </div>
+ <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid="></script>
+</div>
+
+
+</div>
+ <footer id="footer" class="inner">Copyright &copy; 2012
+
+ Luisa Lima
+
+</footer>
+ <script src="/javascripts/slash.js"></script>
+<script src="/javascripts/jquery.fancybox.pack.js"></script>
+<script type="text/javascript">
+(function($){
+ $('.fancybox').fancybox();
+})(jQuery);
+</script> <!-- Delete or comment this line to disable Fancybox -->
+
+
+
+
+
+
+</body>
+</html>
View
56 blog/archives/index.html
@@ -7,7 +7,7 @@
<meta name="author" content="Luisa Lima">
- <meta name="description" content="2012 Rails tip #2 - less Rspec in more color Dec 14 TDD, rails, rails_tips, rspec, testing Rails tip #1 - environment variables Dec 14 rails, &hellip;">
+ <meta name="description" content="2012 Inspiring TED talk Dec 18 business, inspiring, talks, ted Analytics js & a mash of interesting rails stuff Dec 14 analytics, js, rails, webdev &hellip;">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@@ -98,6 +98,60 @@
<section class="archives"><h1 class="year">2012</h1>
<article>
+ <h2 class="title"><a href="/blog/2012/12/18/inspiring-ted-talk/">Inspiring TED talk</a></h2>
+ <div class="meta">
+ <span class="date">Dec 18</span>
+ <span class="tags">
+
+
+ <a class='category' href='/blog/categories/business/'>business</a>, <a class='category' href='/blog/categories/inspiring/'>inspiring</a>, <a class='category' href='/blog/categories/talks/'>talks</a>, <a class='category' href='/blog/categories/ted/'>ted</a>
+
+
+</span>
+
+ </div>
+</article>
+
+
+
+
+<article>
+ <h2 class="title"><a href="/blog/2012/12/14/analytics-js/">Analytics js & a mash of interesting rails stuff</a></h2>
+ <div class="meta">
+ <span class="date">Dec 14</span>
+ <span class="tags">
+
+
+ <a class='category' href='/blog/categories/analytics/'>analytics</a>, <a class='category' href='/blog/categories/js/'>js</a>, <a class='category' href='/blog/categories/rails/'>rails</a>, <a class='category' href='/blog/categories/webdev/'>webdev</a>
+
+
+</span>
+
+ </div>
+</article>
+
+
+
+
+<article>
+ <h2 class="title"><a href="/blog/2012/12/14/how-i-test/">How I test - Part I: Environment</a></h2>
+ <div class="meta">
+ <span class="date">Dec 14</span>
+ <span class="tags">
+
+
+ <a class='category' href='/blog/categories/tdd/'>TDD</a>, <a class='category' href='/blog/categories/rails-/'>rails,</a>, <a class='category' href='/blog/categories/testing-/'>testing,</a>
+
+
+</span>
+
+ </div>
+</article>
+
+
+
+
+<article>
<h2 class="title"><a href="/blog/2012/12/14/rails-tip-number-2-less-rspec-in-color/">Rails tip #2 - less Rspec in more color</a></h2>
<div class="meta">
<span class="date">Dec 14</span>
View
43 blog/categories/analytics/atom.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title><![CDATA[Category: analytics | Entreprevelopment adventures]]></title>
+ <link href="http://luisalima.github.com/blog/categories/analytics/atom.xml" rel="self"/>
+ <link href="http://luisalima.github.com/"/>
+ <updated>2012-12-19T10:09:58+00:00</updated>
+ <id>http://luisalima.github.com/</id>
+ <author>
+ <name><![CDATA[Luisa Lima]]></name>
+
+ </author>
+ <generator uri="http://octopress.org/">Octopress</generator>
+
+
+ <entry>
+ <title type="html"><![CDATA[Analytics js & a mash of interesting rails stuff]]></title>
+ <link href="http://luisalima.github.com/blog/2012/12/14/analytics-js/"/>
+ <updated>2012-12-14T13:34:00+00:00</updated>
+ <id>http://luisalima.github.com/blog/2012/12/14/analytics-js</id>
+ <content type="html"><![CDATA[<h2>Analytics.js</h2>
+
+<p>I don't know whether this library is very common, but it definitely shows a lot of promise:</p>
+
+<p><a href="http://segmentio.github.com/analytics.js/">Segmentio's Analytics.js</a></p>
+
+<p>It provides provider-agnostic hooks to route to analytics services. They also have a hosted version where the analytics services can be changed without touching the code. Looks really clean and neat.</p>
+
+<h2>Nice video: to_proc</h2>
+
+<p><a href="http://www.youtube.com/watch?v=aISNtCAZlMg">This video by CooperPress</a> explains in a very clear fashion how to use the "to_proc" feature of Ruby (and understand some weird code you might come across). It is also well worth it to subscribe to <a href="http://www.youtube.com/user/CooperPress?feature=watch">their other videos</a>.</p>
+
+<h2>Faster Rails partial rendering and caching</h2>
+
+<p>I sure will try out <a href="http://ninjasandrobots.com/rails-faster-partial-rendering-and-caching/">this gem (multi_fetch_fragments)</a> to optimize Rails when I get to that point of my work...</p>
+
+<h2>Indexes in Rails databases</h2>
+
+<p><a href="http://tomafro.net/2009/08/using-indexes-in-rails-index-your-associations">Extremely good article by Tom Ward on using indexes in rails associations</a>. An excellent guide to determine what indexes your app should include (no more, no less).</p>
+]]></content>
+ </entry>
+
+</feed>
View
135 blog/categories/analytics/index.html
@@ -0,0 +1,135 @@
+
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Category: analytics - Entreprevelopment adventures</title>
+ <meta name="author" content="Luisa Lima">
+
+
+ <meta name="description" content="Category: analytics">
+
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+
+ <link href="/atom.xml" rel="alternate" title="Entreprevelopment adventures" type="application/atom+xml">
+ <link rel="canonical" href="">
+ <link href="/favicon.png" rel="shortcut icon">
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+
+</head>
+
+<body>
+ <header id="header" class="inner"><h1><a href="/">Entreprevelopment adventures</a></h1>
+<nav id="main-nav"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</nav>
+<nav id="mobile-nav">
+ <div class="alignleft menu">
+ <a class="button">Menu</a>
+ <div class="container"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</div>
+ </div>
+ <div class="alignright search">
+ <a class="button"></a>
+ <div class="container">
+ <form action="http://google.com/search" method="get">
+ <input type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+ </div>
+ </div>
+</nav>
+<nav id="sub-nav" class="alignright">
+ <div class="social">
+
+
+
+ <a class="twitter" href="http://twitter.com/luisamoyalima" title="Twitter">Twitter</a>
+
+
+ <a class="github" href="https://github.com/luisalima" title="GitHub">GitHub</a>
+
+
+
+
+
+
+
+ <a class="rss" href="/atom.xml" title="RSS">RSS</a>
+
+ </div>
+ <form class="search" action="http://google.com/search" method="get">
+ <input class="alignright" type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+</nav>
+
+</header>
+
+
+<div id="banner" class="inner">
+ <div class="container">
+ <ul class="feed"></ul>
+ </div>
+ <small><a href="http://twitter.com/luisamoyalima">luisamoyalima</a> @ <a href="http://twitter.com">Twitter</a></small>
+ <div class="loading">Loading...</div>
+</div>
+<script src="/javascripts/twitter.js"></script>
+<script type="text/javascript">
+ (function($){
+ $('#banner').getTwitterFeed('luisamoyalima', 4, false);
+ })(jQuery);
+</script>
+
+
+ <div id="content" class="inner">
+
+
+
+
+
+ <section class="archives"><h1 class="year">2012</h1>
+
+<article>
+ <h2 class="title"><a href="/blog/2012/12/14/analytics-js/">Analytics js & a mash of interesting rails stuff</a></h2>
+ <div class="meta">
+ <span class="date">Dec 14</span>
+ <span class="tags">
+
+
+ <a class='category' href='/blog/categories/analytics/'>analytics</a>, <a class='category' href='/blog/categories/js/'>js</a>, <a class='category' href='/blog/categories/rails/'>rails</a>, <a class='category' href='/blog/categories/webdev/'>webdev</a>
+
+
+</span>
+
+ </div>
+</article>
+
+</div>
+ <footer id="footer" class="inner">Copyright &copy; 2012
+
+ Luisa Lima
+
+</footer>
+ <script src="/javascripts/slash.js"></script>
+<script src="/javascripts/jquery.fancybox.pack.js"></script>
+<script type="text/javascript">
+(function($){
+ $('.fancybox').fancybox();
+})(jQuery);
+</script> <!-- Delete or comment this line to disable Fancybox -->
+
+
+
+
+
+
+</body>
+</html>
View
2 blog/categories/blog/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: blog | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/blog/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
33 blog/categories/business/atom.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title><![CDATA[Category: business | Entreprevelopment adventures]]></title>
+ <link href="http://luisalima.github.com/blog/categories/business/atom.xml" rel="self"/>
+ <link href="http://luisalima.github.com/"/>
+ <updated>2012-12-19T10:09:58+00:00</updated>
+ <id>http://luisalima.github.com/</id>
+ <author>
+ <name><![CDATA[Luisa Lima]]></name>
+
+ </author>
+ <generator uri="http://octopress.org/">Octopress</generator>
+
+
+ <entry>
+ <title type="html"><![CDATA[Inspiring TED talk]]></title>
+ <link href="http://luisalima.github.com/blog/2012/12/18/inspiring-ted-talk/"/>
+ <updated>2012-12-18T11:06:00+00:00</updated>
+ <id>http://luisalima.github.com/blog/2012/12/18/inspiring-ted-talk</id>
+ <content type="html"><![CDATA[<p>For anyone who works in business (especially startups), this is most probably (or most definitely) the most important TED talk that you'll ever get to watch. Or the most important talk/piece of advice that you'll ever get, I believe.</p>
+
+<p><a href="http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action.html">How great leaders inspire action</a></p>
+
+<p>The fact is that this is what attracts me (and many people, probably) to startups. It's just easier to find this sharing of common beliefs -- and if it's not, it's the wrong startup.</p>
+
+<p><strong>People don't buy what you do, they buy why you do it.</strong></p>
+
+<p>People buy what you believe in. Somehow this makes me believe in mankind a bit more :-)</p>
+]]></content>
+ </entry>
+
+</feed>
View
135 blog/categories/business/index.html
@@ -0,0 +1,135 @@
+
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Category: business - Entreprevelopment adventures</title>
+ <meta name="author" content="Luisa Lima">
+
+
+ <meta name="description" content="Category: business">
+
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+
+ <link href="/atom.xml" rel="alternate" title="Entreprevelopment adventures" type="application/atom+xml">
+ <link rel="canonical" href="">
+ <link href="/favicon.png" rel="shortcut icon">
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+
+</head>
+
+<body>
+ <header id="header" class="inner"><h1><a href="/">Entreprevelopment adventures</a></h1>
+<nav id="main-nav"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</nav>
+<nav id="mobile-nav">
+ <div class="alignleft menu">
+ <a class="button">Menu</a>
+ <div class="container"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</div>
+ </div>
+ <div class="alignright search">
+ <a class="button"></a>
+ <div class="container">
+ <form action="http://google.com/search" method="get">
+ <input type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+ </div>
+ </div>
+</nav>
+<nav id="sub-nav" class="alignright">
+ <div class="social">
+
+
+
+ <a class="twitter" href="http://twitter.com/luisamoyalima" title="Twitter">Twitter</a>
+
+
+ <a class="github" href="https://github.com/luisalima" title="GitHub">GitHub</a>
+
+
+
+
+
+
+
+ <a class="rss" href="/atom.xml" title="RSS">RSS</a>
+
+ </div>
+ <form class="search" action="http://google.com/search" method="get">
+ <input class="alignright" type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+</nav>
+
+</header>
+
+
+<div id="banner" class="inner">
+ <div class="container">
+ <ul class="feed"></ul>
+ </div>
+ <small><a href="http://twitter.com/luisamoyalima">luisamoyalima</a> @ <a href="http://twitter.com">Twitter</a></small>
+ <div class="loading">Loading...</div>
+</div>
+<script src="/javascripts/twitter.js"></script>
+<script type="text/javascript">
+ (function($){
+ $('#banner').getTwitterFeed('luisamoyalima', 4, false);
+ })(jQuery);
+</script>
+
+
+ <div id="content" class="inner">
+
+
+
+
+
+ <section class="archives"><h1 class="year">2012</h1>
+
+<article>
+ <h2 class="title"><a href="/blog/2012/12/18/inspiring-ted-talk/">Inspiring TED talk</a></h2>
+ <div class="meta">
+ <span class="date">Dec 18</span>
+ <span class="tags">
+
+
+ <a class='category' href='/blog/categories/business/'>business</a>, <a class='category' href='/blog/categories/inspiring/'>inspiring</a>, <a class='category' href='/blog/categories/talks/'>talks</a>, <a class='category' href='/blog/categories/ted/'>ted</a>
+
+
+</span>
+
+ </div>
+</article>
+
+</div>
+ <footer id="footer" class="inner">Copyright &copy; 2012
+
+ Luisa Lima
+
+</footer>
+ <script src="/javascripts/slash.js"></script>
+<script src="/javascripts/jquery.fancybox.pack.js"></script>
+<script type="text/javascript">
+(function($){
+ $('.fancybox').fancybox();
+})(jQuery);
+</script> <!-- Delete or comment this line to disable Fancybox -->
+
+
+
+
+
+
+</body>
+</html>
View
2 blog/categories/console/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: console | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/console/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
2 blog/categories/cool-gems/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: cool_gems | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/cool-gems/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
2 blog/categories/future/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: future | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/future/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
2 blog/categories/grooveshark/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: grooveshark | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/grooveshark/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
33 blog/categories/inspiring/atom.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title><![CDATA[Category: inspiring | Entreprevelopment adventures]]></title>
+ <link href="http://luisalima.github.com/blog/categories/inspiring/atom.xml" rel="self"/>
+ <link href="http://luisalima.github.com/"/>
+ <updated>2012-12-19T10:09:58+00:00</updated>
+ <id>http://luisalima.github.com/</id>
+ <author>
+ <name><![CDATA[Luisa Lima]]></name>
+
+ </author>
+ <generator uri="http://octopress.org/">Octopress</generator>
+
+
+ <entry>
+ <title type="html"><![CDATA[Inspiring TED talk]]></title>
+ <link href="http://luisalima.github.com/blog/2012/12/18/inspiring-ted-talk/"/>
+ <updated>2012-12-18T11:06:00+00:00</updated>
+ <id>http://luisalima.github.com/blog/2012/12/18/inspiring-ted-talk</id>
+ <content type="html"><![CDATA[<p>For anyone who works in business (especially startups), this is most probably (or most definitely) the most important TED talk that you'll ever get to watch. Or the most important talk/piece of advice that you'll ever get, I believe.</p>
+
+<p><a href="http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action.html">How great leaders inspire action</a></p>
+
+<p>The fact is that this is what attracts me (and many people, probably) to startups. It's just easier to find this sharing of common beliefs -- and if it's not, it's the wrong startup.</p>
+
+<p><strong>People don't buy what you do, they buy why you do it.</strong></p>
+
+<p>People buy what you believe in. Somehow this makes me believe in mankind a bit more :-)</p>
+]]></content>
+ </entry>
+
+</feed>
View
135 blog/categories/inspiring/index.html
@@ -0,0 +1,135 @@
+
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Category: inspiring - Entreprevelopment adventures</title>
+ <meta name="author" content="Luisa Lima">
+
+
+ <meta name="description" content="Category: inspiring">
+
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+
+ <link href="/atom.xml" rel="alternate" title="Entreprevelopment adventures" type="application/atom+xml">
+ <link rel="canonical" href="">
+ <link href="/favicon.png" rel="shortcut icon">
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+
+</head>
+
+<body>
+ <header id="header" class="inner"><h1><a href="/">Entreprevelopment adventures</a></h1>
+<nav id="main-nav"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</nav>
+<nav id="mobile-nav">
+ <div class="alignleft menu">
+ <a class="button">Menu</a>
+ <div class="container"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</div>
+ </div>
+ <div class="alignright search">
+ <a class="button"></a>
+ <div class="container">
+ <form action="http://google.com/search" method="get">
+ <input type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+ </div>
+ </div>
+</nav>
+<nav id="sub-nav" class="alignright">
+ <div class="social">
+
+
+
+ <a class="twitter" href="http://twitter.com/luisamoyalima" title="Twitter">Twitter</a>
+
+
+ <a class="github" href="https://github.com/luisalima" title="GitHub">GitHub</a>
+
+
+
+
+
+
+
+ <a class="rss" href="/atom.xml" title="RSS">RSS</a>
+
+ </div>
+ <form class="search" action="http://google.com/search" method="get">
+ <input class="alignright" type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+</nav>
+
+</header>
+
+
+<div id="banner" class="inner">
+ <div class="container">
+ <ul class="feed"></ul>
+ </div>
+ <small><a href="http://twitter.com/luisamoyalima">luisamoyalima</a> @ <a href="http://twitter.com">Twitter</a></small>
+ <div class="loading">Loading...</div>
+</div>
+<script src="/javascripts/twitter.js"></script>
+<script type="text/javascript">
+ (function($){
+ $('#banner').getTwitterFeed('luisamoyalima', 4, false);
+ })(jQuery);
+</script>
+
+
+ <div id="content" class="inner">
+
+
+
+
+
+ <section class="archives"><h1 class="year">2012</h1>
+
+<article>
+ <h2 class="title"><a href="/blog/2012/12/18/inspiring-ted-talk/">Inspiring TED talk</a></h2>
+ <div class="meta">
+ <span class="date">Dec 18</span>
+ <span class="tags">
+
+
+ <a class='category' href='/blog/categories/business/'>business</a>, <a class='category' href='/blog/categories/inspiring/'>inspiring</a>, <a class='category' href='/blog/categories/talks/'>talks</a>, <a class='category' href='/blog/categories/ted/'>ted</a>
+
+
+</span>
+
+ </div>
+</article>
+
+</div>
+ <footer id="footer" class="inner">Copyright &copy; 2012
+
+ Luisa Lima
+
+</footer>
+ <script src="/javascripts/slash.js"></script>
+<script src="/javascripts/jquery.fancybox.pack.js"></script>
+<script type="text/javascript">
+(function($){
+ $('.fancybox').fancybox();
+})(jQuery);
+</script> <!-- Delete or comment this line to disable Fancybox -->
+
+
+
+
+
+
+</body>
+</html>
View
2 blog/categories/interesting/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: interesting | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/interesting/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
43 blog/categories/js/atom.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title><![CDATA[Category: js | Entreprevelopment adventures]]></title>
+ <link href="http://luisalima.github.com/blog/categories/js/atom.xml" rel="self"/>
+ <link href="http://luisalima.github.com/"/>
+ <updated>2012-12-19T10:09:58+00:00</updated>
+ <id>http://luisalima.github.com/</id>
+ <author>
+ <name><![CDATA[Luisa Lima]]></name>
+
+ </author>
+ <generator uri="http://octopress.org/">Octopress</generator>
+
+
+ <entry>
+ <title type="html"><![CDATA[Analytics js & a mash of interesting rails stuff]]></title>
+ <link href="http://luisalima.github.com/blog/2012/12/14/analytics-js/"/>
+ <updated>2012-12-14T13:34:00+00:00</updated>
+ <id>http://luisalima.github.com/blog/2012/12/14/analytics-js</id>
+ <content type="html"><![CDATA[<h2>Analytics.js</h2>
+
+<p>I don't know whether this library is very common, but it definitely shows a lot of promise:</p>
+
+<p><a href="http://segmentio.github.com/analytics.js/">Segmentio's Analytics.js</a></p>
+
+<p>It provides provider-agnostic hooks to route to analytics services. They also have a hosted version where the analytics services can be changed without touching the code. Looks really clean and neat.</p>
+
+<h2>Nice video: to_proc</h2>
+
+<p><a href="http://www.youtube.com/watch?v=aISNtCAZlMg">This video by CooperPress</a> explains in a very clear fashion how to use the "to_proc" feature of Ruby (and understand some weird code you might come across). It is also well worth it to subscribe to <a href="http://www.youtube.com/user/CooperPress?feature=watch">their other videos</a>.</p>
+
+<h2>Faster Rails partial rendering and caching</h2>
+
+<p>I sure will try out <a href="http://ninjasandrobots.com/rails-faster-partial-rendering-and-caching/">this gem (multi_fetch_fragments)</a> to optimize Rails when I get to that point of my work...</p>
+
+<h2>Indexes in Rails databases</h2>
+
+<p><a href="http://tomafro.net/2009/08/using-indexes-in-rails-index-your-associations">Extremely good article by Tom Ward on using indexes in rails associations</a>. An excellent guide to determine what indexes your app should include (no more, no less).</p>
+]]></content>
+ </entry>
+
+</feed>
View
135 blog/categories/js/index.html
@@ -0,0 +1,135 @@
+
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Category: js - Entreprevelopment adventures</title>
+ <meta name="author" content="Luisa Lima">
+
+
+ <meta name="description" content="Category: js">
+
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+
+ <link href="/atom.xml" rel="alternate" title="Entreprevelopment adventures" type="application/atom+xml">
+ <link rel="canonical" href="">
+ <link href="/favicon.png" rel="shortcut icon">
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+
+</head>
+
+<body>
+ <header id="header" class="inner"><h1><a href="/">Entreprevelopment adventures</a></h1>
+<nav id="main-nav"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</nav>
+<nav id="mobile-nav">
+ <div class="alignleft menu">
+ <a class="button">Menu</a>
+ <div class="container"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</div>
+ </div>
+ <div class="alignright search">
+ <a class="button"></a>
+ <div class="container">
+ <form action="http://google.com/search" method="get">
+ <input type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+ </div>
+ </div>
+</nav>
+<nav id="sub-nav" class="alignright">
+ <div class="social">
+
+
+
+ <a class="twitter" href="http://twitter.com/luisamoyalima" title="Twitter">Twitter</a>
+
+
+ <a class="github" href="https://github.com/luisalima" title="GitHub">GitHub</a>
+
+
+
+
+
+
+
+ <a class="rss" href="/atom.xml" title="RSS">RSS</a>
+
+ </div>
+ <form class="search" action="http://google.com/search" method="get">
+ <input class="alignright" type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+</nav>
+
+</header>
+
+
+<div id="banner" class="inner">
+ <div class="container">
+ <ul class="feed"></ul>
+ </div>
+ <small><a href="http://twitter.com/luisamoyalima">luisamoyalima</a> @ <a href="http://twitter.com">Twitter</a></small>
+ <div class="loading">Loading...</div>
+</div>
+<script src="/javascripts/twitter.js"></script>
+<script type="text/javascript">
+ (function($){
+ $('#banner').getTwitterFeed('luisamoyalima', 4, false);
+ })(jQuery);
+</script>
+
+
+ <div id="content" class="inner">
+
+
+
+
+
+ <section class="archives"><h1 class="year">2012</h1>
+
+<article>
+ <h2 class="title"><a href="/blog/2012/12/14/analytics-js/">Analytics js & a mash of interesting rails stuff</a></h2>
+ <div class="meta">
+ <span class="date">Dec 14</span>
+ <span class="tags">
+
+
+ <a class='category' href='/blog/categories/analytics/'>analytics</a>, <a class='category' href='/blog/categories/js/'>js</a>, <a class='category' href='/blog/categories/rails/'>rails</a>, <a class='category' href='/blog/categories/webdev/'>webdev</a>
+
+
+</span>
+
+ </div>
+</article>
+
+</div>
+ <footer id="footer" class="inner">Copyright &copy; 2012
+
+ Luisa Lima
+
+</footer>
+ <script src="/javascripts/slash.js"></script>
+<script src="/javascripts/jquery.fancybox.pack.js"></script>
+<script type="text/javascript">
+(function($){
+ $('.fancybox').fancybox();
+})(jQuery);
+</script> <!-- Delete or comment this line to disable Fancybox -->
+
+
+
+
+
+
+</body>
+</html>
View
2 blog/categories/log/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: log | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/log/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
2 blog/categories/message/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: message | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/message/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
2 blog/categories/octopress/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: octopress | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/octopress/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
2 blog/categories/ot/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: OT | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/ot/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
64 blog/categories/rails-/atom.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title><![CDATA[Category: rails, | Entreprevelopment adventures]]></title>
+ <link href="http://luisalima.github.com/blog/categories/rails-/atom.xml" rel="self"/>
+ <link href="http://luisalima.github.com/"/>
+ <updated>2012-12-19T10:09:58+00:00</updated>
+ <id>http://luisalima.github.com/</id>
+ <author>
+ <name><![CDATA[Luisa Lima]]></name>
+
+ </author>
+ <generator uri="http://octopress.org/">Octopress</generator>
+
+
+ <entry>
+ <title type="html"><![CDATA[How I test - Part I: Environment]]></title>
+ <link href="http://luisalima.github.com/blog/2012/12/14/how-i-test/"/>
+ <updated>2012-12-14T11:43:00+00:00</updated>
+ <id>http://luisalima.github.com/blog/2012/12/14/how-i-test</id>
+ <content type="html"><![CDATA[<p>Not that I am an authority in testing... this is just a compilation of the so-called "best practices" that I've been seeing around, as well as some extra tips from my (very limited) experience. I'd love to hear the feedback from more experienced people... I'm going to do several of these as I go along.</p>
+
+<h2>Gems I use</h2>
+
+<p>I test using <a href="http://rspec.info">rspec</a> and <a href="https://github.com/thoughtbot/shoulda">shoulda</a>, which dramatically reduces the size of the tests. But beware -- rspec is a DSL, and I think that I only got a bit more intuition on what I was exactly testing after doing some tests in Test::Unit. I also use <a href="https://github.com/thoughtbot/factory_girl">FactoryGirl</a> for setting up the test data, instead of fixtures. Last but not least, the <a href="https://github.com/colszowka/simplecov">simplecov</a> gem is amazing, and although you shouldn't rely on it to determine when to stop testing, it really is good to get a (very precise) sense of what's covered and what's not in their beautiful html reports.</p>
+
+<h2>General tips</h2>
+
+<p>When all your tests are red for no apparent reason, it's because you were messing around with the db and then forgot to do</p>
+
+<pre><code>rake db:test:clone</code></pre>
+
+
+<p>Yup, the reason I am mentioning it here even though it seems completely obvious is because I am distracted and do that a lot... :-)</p>
+
+<h2>Tips for running guard/spork in vagrant</h2>
+
+<p>I use vagrant to keep my environment all neatly in one place. However, there are downsides. When running guard inside the guest OS, use</p>
+
+<pre><code>bundle exec guard -p</code></pre>
+
+
+<p>Otherwise, guard won't detect changes in the guest filesystem.</p>
+
+<h2>FactoryGirl tips</h2>
+
+<p>You can keep all factories in one file, for me that is more intuitive (and also, I don't have to keep opening files while I'm testing, it's all in one place.)</p>
+
+<p>To try FactoryGirl methods in the console, run:</p>
+
+<pre><code>FactoryGirl.find_definitions</code></pre>
+
+
+<p>At least in my case, I would get a <a href="http://stackoverflow.com/questions/8409787/factorygirl-factory-not-registered-user-argumenterror">factory not registered</a> error when I didn't do that.</p>
+
+<h2>Better Errors</h2>
+
+<p>Not exactly related to testing, but this gem has been a life changer! When there is an error, the standard error page gets replaced by a much better and useful error page, which has a full trace, the local and instance variables that are set at the time, and a terminal that you can use to inspect and make changes to the variables in the models and controllers in real time (or code whatever you want). I know I already mentioned it in another post, but I can't stress enough how cool this gem is!</p>
+
+<p>In the next posts, I'll give an overview of how I test the models and controllers, which I only started testing this week!</p>
+]]></content>
+ </entry>
+
+</feed>
View
135 blog/categories/rails-/index.html
@@ -0,0 +1,135 @@
+
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Category: rails, - Entreprevelopment adventures</title>
+ <meta name="author" content="Luisa Lima">
+
+
+ <meta name="description" content="Category: rails,">
+
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+
+ <link href="/atom.xml" rel="alternate" title="Entreprevelopment adventures" type="application/atom+xml">
+ <link rel="canonical" href="">
+ <link href="/favicon.png" rel="shortcut icon">
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+
+</head>
+
+<body>
+ <header id="header" class="inner"><h1><a href="/">Entreprevelopment adventures</a></h1>
+<nav id="main-nav"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</nav>
+<nav id="mobile-nav">
+ <div class="alignleft menu">
+ <a class="button">Menu</a>
+ <div class="container"><ul class="main">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+</div>
+ </div>
+ <div class="alignright search">
+ <a class="button"></a>
+ <div class="container">
+ <form action="http://google.com/search" method="get">
+ <input type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+ </div>
+ </div>
+</nav>
+<nav id="sub-nav" class="alignright">
+ <div class="social">
+
+
+
+ <a class="twitter" href="http://twitter.com/luisamoyalima" title="Twitter">Twitter</a>
+
+
+ <a class="github" href="https://github.com/luisalima" title="GitHub">GitHub</a>
+
+
+
+
+
+
+
+ <a class="rss" href="/atom.xml" title="RSS">RSS</a>
+
+ </div>
+ <form class="search" action="http://google.com/search" method="get">
+ <input class="alignright" type="text" name="q" results="0">
+ <input type="hidden" name="q" value="site:luisalima.github.com">
+ </form>
+</nav>
+
+</header>
+
+
+<div id="banner" class="inner">
+ <div class="container">
+ <ul class="feed"></ul>
+ </div>
+ <small><a href="http://twitter.com/luisamoyalima">luisamoyalima</a> @ <a href="http://twitter.com">Twitter</a></small>
+ <div class="loading">Loading...</div>
+</div>
+<script src="/javascripts/twitter.js"></script>
+<script type="text/javascript">
+ (function($){
+ $('#banner').getTwitterFeed('luisamoyalima', 4, false);
+ })(jQuery);
+</script>
+
+
+ <div id="content" class="inner">
+
+
+
+
+
+ <section class="archives"><h1 class="year">2012</h1>
+
+<article>
+ <h2 class="title"><a href="/blog/2012/12/14/how-i-test/">How I test - Part I: Environment</a></h2>
+ <div class="meta">
+ <span class="date">Dec 14</span>
+ <span class="tags">
+
+
+ <a class='category' href='/blog/categories/tdd/'>TDD</a>, <a class='category' href='/blog/categories/rails-/'>rails,</a>, <a class='category' href='/blog/categories/testing-/'>testing,</a>
+
+
+</span>
+
+ </div>
+</article>
+
+</div>
+ <footer id="footer" class="inner">Copyright &copy; 2012
+
+ Luisa Lima
+
+</footer>
+ <script src="/javascripts/slash.js"></script>
+<script src="/javascripts/jquery.fancybox.pack.js"></script>
+<script type="text/javascript">
+(function($){
+ $('.fancybox').fancybox();
+})(jQuery);
+</script> <!-- Delete or comment this line to disable Fancybox -->
+
+
+
+
+
+
+</body>
+</html>
View
2 blog/categories/rails-tips/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: rails_tips | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/rails-tips/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
58 blog/categories/rails/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: rails | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/rails/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
@@ -14,6 +14,33 @@
<entry>
+ <title type="html"><![CDATA[Analytics js & a mash of interesting rails stuff]]></title>
+ <link href="http://luisalima.github.com/blog/2012/12/14/analytics-js/"/>
+ <updated>2012-12-14T13:34:00+00:00</updated>
+ <id>http://luisalima.github.com/blog/2012/12/14/analytics-js</id>
+ <content type="html"><![CDATA[<h2>Analytics.js</h2>
+
+<p>I don't know whether this library is very common, but it definitely shows a lot of promise:</p>
+
+<p><a href="http://segmentio.github.com/analytics.js/">Segmentio's Analytics.js</a></p>
+
+<p>It provides provider-agnostic hooks to route to analytics services. They also have a hosted version where the analytics services can be changed without touching the code. Looks really clean and neat.</p>
+
+<h2>Nice video: to_proc</h2>
+
+<p><a href="http://www.youtube.com/watch?v=aISNtCAZlMg">This video by CooperPress</a> explains in a very clear fashion how to use the "to_proc" feature of Ruby (and understand some weird code you might come across). It is also well worth it to subscribe to <a href="http://www.youtube.com/user/CooperPress?feature=watch">their other videos</a>.</p>
+
+<h2>Faster Rails partial rendering and caching</h2>
+
+<p>I sure will try out <a href="http://ninjasandrobots.com/rails-faster-partial-rendering-and-caching/">this gem (multi_fetch_fragments)</a> to optimize Rails when I get to that point of my work...</p>
+
+<h2>Indexes in Rails databases</h2>
+
+<p><a href="http://tomafro.net/2009/08/using-indexes-in-rails-index-your-associations">Extremely good article by Tom Ward on using indexes in rails associations</a>. An excellent guide to determine what indexes your app should include (no more, no less).</p>
+]]></content>
+ </entry>
+
+ <entry>
<title type="html"><![CDATA[Rails tip #2 - less Rspec in more color]]></title>
<link href="http://luisalima.github.com/blog/2012/12/14/rails-tip-number-2-less-rspec-in-color/"/>
<updated>2012-12-14T11:04:00+00:00</updated>
@@ -68,33 +95,4 @@ end
]]></content>
</entry>
- <entry>
- <title type="html"><![CDATA[Adding automatic code reloading to rails console]]></title>
- <link href="http://luisalima.github.com/blog/2012/12/13/adding-automatic-code-reloading-in-rails-console/"/>
- <updated>2012-12-13T10:56:00+00:00</updated>
- <id>http://luisalima.github.com/blog/2012/12/13/adding-automatic-code-reloading-in-rails-console</id>
- <content type="html"><![CDATA[<p>So I have no idea why the rails console in development mode doesn't already do this, since the whole idea of the console in development mode is for us to mess around and test random stuff in development mode, right? Anyway, I got inspired and helped by <a href="http://jkfill.com/">Jkfill</a> with his post on <a href="http://jkfill.com/2012/12/08/automatic-code-reloading-in-rails-console">Automatic Code Reloading in Rails Console</a>, so here goes, more for my records than yours since you should follow the instructions in his post. I am using Rails 3.2.9, so I had to copy the code from the <a href="https://github.com/rails/rails/blob/master/railties/lib/rails/console/app.rb#L25">reload! method in the rails console code</a>, which is not exactly the best practice, but it's just for dev mode and it works :-)</p>
-
-<pre><code> #this should be in config/initializers/irb_reloading.rb
- if defined?(IRB::Context) && !defined?(Rails::Server) && Rails.env.development?
-
- class IRB::Context
- def evaluate_with_reloading(line, line_no)
-
- ActionDispatch::Reloader.cleanup!
- ActionDispatch::Reloader.prepare!
- evaluate_without_reloading(line, line_no)
- end
- alias_method_chain :evaluate, :reloading
- end
-
- puts "=> IRB code reloading enabled"
-end
-</code></pre>
-
-
-<p>In the meanwhile, shortly browsed the code at <a href="https://github.com/rails">the Rails gihub project</a> and it's really a nice way to learn more about rails... must do it more often.</p>
-]]></content>
- </entry>
-
</feed>
View
18 blog/categories/rails/index.html
@@ -98,6 +98,24 @@
<section class="archives"><h1 class="year">2012</h1>
<article>
+ <h2 class="title"><a href="/blog/2012/12/14/analytics-js/">Analytics js & a mash of interesting rails stuff</a></h2>
+ <div class="meta">
+ <span class="date">Dec 14</span>
+ <span class="tags">
+
+
+ <a class='category' href='/blog/categories/analytics/'>analytics</a>, <a class='category' href='/blog/categories/js/'>js</a>, <a class='category' href='/blog/categories/rails/'>rails</a>, <a class='category' href='/blog/categories/webdev/'>webdev</a>
+
+
+</span>
+
+ </div>
+</article>
+
+
+
+
+<article>
<h2 class="title"><a href="/blog/2012/12/14/rails-tip-number-2-less-rspec-in-color/">Rails tip #2 - less Rspec in more color</a></h2>
<div class="meta">
<span class="date">Dec 14</span>
View
2 blog/categories/raspberrypi/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: raspberrypi | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/raspberrypi/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
2 blog/categories/rspec/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: rspec | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/rspec/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
2 blog/categories/ssh/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: ssh | Entreprevelopment adventures]]></title>
<link href="http://luisalima.github.com/blog/categories/ssh/atom.xml" rel="self"/>
<link href="http://luisalima.github.com/"/>
- <updated>2012-12-14T11:14:31+00:00</updated>
+ <updated>2012-12-19T10:09:58+00:00</updated>
<id>http://luisalima.github.com/</id>
<author>
<name><![CDATA[Luisa Lima]]></name>
View
33 blog/categories/talks/atom.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title><![CDATA[Category: talks | Entreprevelopment adventures]]></title>
+ <link href="http://luisalima.github.com/blog/categories/talks/atom.xml" rel="self"/>
+ <link href="http://luisalima.github.com/"/>
+ <updated>2012-12-19T10:09:58+00:00</updated>
+ <id>http://luisalima.github.com/</id>
+ <author>
+ <name><![CDATA[Luisa Lima]]></name>
+
+ </author>
+ <generator uri="http://octopress.org/">Octopress</generator>
+
+
+ <entry>
+ <title type="html"><![CDATA[Inspiring TED talk]]></title>
+ <link href="http://luisalima.github.com/blog/2012/12/18/inspiring-ted-talk/"/>
+ <updated>2012-12-18T11:06:00+00:00</updated>
+ <id>http://luisalima.github.com/blog/2012/12/18/inspiring-ted-talk</id>
+ <content type="html"><![CDATA[<p>For anyone who works in business (especially startups), this is most probably (or most definitely) the most important TED talk that you'll ever get to watch. Or the most important talk/piece of advice that you'll ever get, I believe.</p>
+
+<p><a href="http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action.html">How great leaders inspire action</a></p>
+
+<p>The fact is that this is what attracts me (and many people, probably) to startups. It's just easier to find this sharing of common beliefs -- and if it's not, it's the wrong startup.</p>
+
+<p><strong>People don't buy what you do, they buy why you do it.</strong></p>
+
+<p>People buy what you believe in. Somehow this makes me believe in mankind a bit more :-)</p>
+]]></content>