<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Daniel Blanco Rojas on Medium]]></title>
        <description><![CDATA[Stories by Daniel Blanco Rojas on Medium]]></description>
        <link>https://medium.com/@dblancorojas?source=rss-5c19065942f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*mHcXcMSgMXJRGm3n.jpeg</url>
            <title>Stories by Daniel Blanco Rojas on Medium</title>
            <link>https://medium.com/@dblancorojas?source=rss-5c19065942f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:41:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dblancorojas/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[RVM => ruby-install & chruby]]></title>
            <link>https://medium.com/@dblancorojas/rvm-ruby-install-chruby-5fe61c42e124?source=rss-5c19065942f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fe61c42e124</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Daniel Blanco Rojas]]></dc:creator>
            <pubDate>Thu, 19 May 2016 17:41:29 GMT</pubDate>
            <atom:updated>2016-05-19T17:41:29.258Z</atom:updated>
            <content:encoded><![CDATA[<p>RVM is great, but I feel is not as easy as it should be, I want something really simple for my development environment a I believe <a href="https://github.com/postmodern/ruby-install">ruby-install</a> and <a href="https://github.com/postmodern/chruby">chruby</a> are the perfect way for me to manage my rubies.</p><p>First of all I need to remove RVM from my system:</p><pre>$ rvm implode<br>$ sudo rm -rf ~/.rvm</pre><h3>ruby-install</h3><p>To install ruby-install, I’m following the readme instructions for OSX and brew:</p><pre>$ brew install ruby-install</pre><p>Once that is finished I want to know what rubies I can install:</p><pre>$ ruby-install</pre><p>Since I want the latest stable version I run:</p><pre>$ ruby-install ruby</pre><p><strong><em>Boom!</em></strong> I’m having troubles with openssl:</p><pre>ossl_ssl.c:95:5: error: use of undeclared identifier ‘TLSv1_2_method<br>...<br>ossl_ssl.c:2266:23: error: invalid application of &#39;sizeof&#39; to an incomplete type &#39;const struct (anonymous struct at ossl_ssl.c:85:14) []&#39;<br>    ary = rb_ary_new2(numberof(ossl_ssl_method_tab));<br>...</pre><p>I think it has to do with my openssl version:</p><pre>$ openssl version<br>OpenSSL 0.9.8zg 11 Jun 2015</pre><p>So I installed openssl with brew and forced the links:</p><pre>$ brew install openssl<br>$ brew link --overwrite openssl --force</pre><p>Tried again:</p><pre>$ ruby-install ruby</pre><p><strong><em>Success!!</em></strong> Ruby 2.3.1 was installed in:</p><pre>~/.rubies/</pre><h3>chruby</h3><p>To install chruby I run:</p><pre>$ brew install chruby</pre><p>To enable auto-switching of Rubies specified by .ruby-version files,<br>I added the following to my <strong>~/.zshrc</strong>:</p><pre>source /usr/local/share/chruby/chruby.sh<br>source /usr/local/share/chruby/auto.sh</pre><p>Since I want to user Ruby 2.3.1 as my default ruby I created a <strong>.ruby-version </strong>file in my home directory:</p><pre>$ echo &quot;ruby-2.3.1&quot; &gt; ~/.ruby-version</pre><p>Now, I restart my <strong>iTerm</strong> and run:</p><pre>$ ruby -v<br>ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]</pre><p>One thing that I’m missing is a way to manage gems (I had that with RVM’s gemsets). Browsing the web around I found out that bundler provides a way to download and install gems to the project folder by running:</p><pre>$ bundle install --path=vendor</pre><p>which will create a folder called <strong><em>vendor</em></strong> in the current directory and install gems to it.</p><p>The only caveat is that I need to prefix any command that I run with <strong>bundle exec</strong>, for example:</p><pre>$ bundle exec rake test</pre><p>That’s it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fe61c42e124" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GIT tip]]></title>
            <link>https://medium.com/@dblancorojas/git-tip-3944d61eded4?source=rss-5c19065942f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3944d61eded4</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Daniel Blanco Rojas]]></dc:creator>
            <pubDate>Wed, 18 May 2016 23:18:09 GMT</pubDate>
            <atom:updated>2016-05-18T23:18:09.265Z</atom:updated>
            <content:encoded><![CDATA[<p>Working in one ticket for my own project I noticed that I committed my code to my <strong>local master</strong> branch.</p><p>I never commit/push directly to <strong>master</strong> branch, so this is what I did:</p><pre>git checkout -b newbranch</pre><p>Create a new branch from master, this will copy the committed work to my new branch.</p><pre>git push</pre><p>This will update remote with my new branch data.</p><pre>git checkout master<br>git reset --hard origin/master</pre><p>And checkout master and make it the same as remote.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3944d61eded4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTTPS for my site]]></title>
            <link>https://medium.com/@dblancorojas/https-for-my-site-68519e10c54a?source=rss-5c19065942f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/68519e10c54a</guid>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <dc:creator><![CDATA[Daniel Blanco Rojas]]></dc:creator>
            <pubDate>Wed, 20 Apr 2016 04:35:19 GMT</pubDate>
            <atom:updated>2016-04-20T04:35:19.536Z</atom:updated>
            <content:encoded><![CDATA[<p>I have a website <a href="https://www.xgenyz.com/">https://www.novaself.com</a> and without noticing my SSL certificate expired, this caused that every visit to the website was received with a problematic message like this one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QwqUoctr8eMxu3aVJmzR3Q.png" /></figure><p>To fix this problem I renewed my SSL certificate but now I need to install the new certificate in my website.</p><h4>Before I begin</h4><p>If you need the private key file (<strong>.key)</strong> and the certificate signing request file (<strong>.csr</strong>), the easiest way is to install openssl and run:</p><pre>openssl genrsa -out <a href="http://www.mysite.com.key/">www.domain.com.key</a> 2048<br>openssl req -new -key <a href="http://www.mysite.com.key/">www.domain.com.key</a> -out <a href="http://www.mysite.com.csr/">www.domain.com.csr</a></pre><p>Last command will prompt a few questions, like below:</p><pre>Country Name (2 letter code) [AU]:US<br>State or Province Name (full name) [Some-State]:Texas<br>Locality Name (eg, city) []:Dallas<br>Organization Name (eg, company) [Internet Widgits Pty Ltd]:DuckyDucks<br>Organizational Unit Name (eg, section) []:IT<br><strong>Common Name (eg, YOUR name) []:www.domain.com<br></strong>Email Address []:admin@domain.com</pre><p>The <strong>Common Name</strong> is the most important field, that should be the exact domain name for which you are requesting SSL, in most cases, it should be “<strong>www.domain.com</strong>”. If you are buying for a subdomain, then it should be something like “<strong>subdomain.domain.com</strong>”. If for wildcard, it should be “<strong>*.domain.com</strong>”.</p><p>After you finish, you should have 2 files now, <a href="http://www.mysite.com.key/">www.domain.com.key</a> and <a href="http://www.mysite.com.csr./">www.domain.com.csr</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*kps7ccZzIdgwzDUIUhLzQA.png" /></figure><p>Now goto GoDaddy’s site, and buy the SSL. Use the generated files to setup your certificate within GoDaddy and download the SSL certificate (zip file).</p><h4>Installing the new certificate</h4><p>After downloading my certificate from my provider I have the following files:</p><pre>5c24e1396dce188.crt<br>gd_bundle-g2-g1.crt</pre><p><strong>I need to combine both files into one file</strong>, with my domain ssl file on top.</p><pre>cat 5c24e1396dce188.crt gd_bundle-g2-g1.crt &gt; <a href="http://www.novaself.com.crt/">www.novaself.com.crt</a></pre><p>If I don’t combine them, browser will not be able to verify certificate authority (CA), and popup dialog or warning messages, which will certainly scare my site visitors away (what is happening right now).</p><p>Now I’m going to upload my combined <strong>crt</strong> file into my server and setup my nginx.conf to look like this:</p><pre>ssl_certificate /path/to/ssl/www.novaself.com.crt;<br>ssl_certificate_key /path/to/ssl/ssl/www.novaself.com.key;</pre><p>After that I just need reload nginx to make the change take effect.</p><pre>sudo nginx -s reload</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68519e10c54a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginning]]></title>
            <link>https://medium.com/@dblancorojas/beginning-83e7ef9525b2?source=rss-5c19065942f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/83e7ef9525b2</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Daniel Blanco Rojas]]></dc:creator>
            <pubDate>Tue, 19 Apr 2016 16:11:28 GMT</pubDate>
            <atom:updated>2016-04-19T16:11:28.132Z</atom:updated>
            <content:encoded><![CDATA[<p>I have tried to start a blog multiple time already, but for some reason I keep forgetting that I own a blog and that I need to post content :p</p><p>So, instead of going for the pretty and well thought blog, I’m going to write about my coding while coding (pretty much like <a href="http://www.imdb.com/name/nm0251986/?ref_=tt_cl_t1">Jesse Eisenberg</a> did in Social Network movie).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*JzOp87joGxxWq8eDCGDi-Q.jpeg" /></figure><p>Hopefully this way I can learn how to blog and help others as well.</p><p>Before I start I should say a few things about me:</p><ol><li>I’m not a native English speaker (my main language is Spanish) so why I’m writing this blog in English? because I want to practice my writing skills. So if you see any typo or grammar errors please let me know, I cannot improve if someone does not tell me that I am doing something wrong ;)</li><li>I am from Costa Rica.</li><li>I am a Ruby on Rails developer (currently learning Elixir).</li><li>I love vim + tmux.</li><li>My main goal is to have my own company.</li></ol><p>If you have questions and what to know more about me, you can contact me at <a href="https://medium.com/u/5c19065942f1">Daniel Blanco Rojas</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83e7ef9525b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>