andrearko.com
Announcing Ruby Together
http://www.andrearko.com/2015/03/18/announcing-ruby-together
All of the infrastructure used by Ruby developers today, including Bundler. Is maintained and developed by volunteers. While it’s good that no one company controls resources shared by the community, it’s terrible that the only people who work on our shared infrastructure are doing so for free and in their spare time. Was founded so the community can cooperate to solve that problem. It will fund on-call rotations, maintenance work, and improvements to the shared, public infrastructure. If you or your comp...
andrearko.org
Rails from the ground up: HTTP
http://www.andrearko.org/2014/07/14/rails-from-the-ground-up-http
Rails from the ground up: HTTP. Welcome to Rails from the ground up! In this series of posts, I’m going to talk about the many pieces that underlie every Ruby on Rails application. By the end, anyone who has read every post will hopefully understand both how each layer of the Rails stack works, why it’s there, and how to implement it themselves. Fortunately, it turns out that HTTP at its simplest is just a few lines of text. Here is a valid HTTP 1.1 request:. GET / HTTP/1.1. It’s possible to see th...
andrearko.org
Rails from the ground up: HTML
http://www.andrearko.org/2014/09/29/rails-from-the-ground-up-html
Rails from the ground up: HTML. LasLast time, we learned about status codes. And created an HTTP server that was able to serve a response to a web browser. This time, we’re going to change the response body to be. HTML stands for “HyperText Markup Language”. HTML is written as plain text, but. Here’s an expanded version of our HTTP server from last time that returns HTML instead of plaintext. HTTP/1.0 200 OK. Html body h1 hi /h1 /body /html. Go ahead and run that code and then brows to localhost:3000.
andrearko.org
Announcing Ruby Together
http://www.andrearko.org/2015/03/18/announcing-ruby-together
All of the infrastructure used by Ruby developers today, including Bundler. Is maintained and developed by volunteers. While it’s good that no one company controls resources shared by the community, it’s terrible that the only people who work on our shared infrastructure are doing so for free and in their spare time. Was founded so the community can cooperate to solve that problem. It will fund on-call rotations, maintenance work, and improvements to the shared, public infrastructure. If you or your comp...
andrearko.com
How does Bundler work, anyway?
http://www.andrearko.com/2015/04/28/how-does-bundler-work-anyway
How does Bundler work, anyway? A history of ruby dependency management. This post was originally given as a presentation at RailsConf 2015. Using Ruby code written by other developers is easy! Just add it to your Gemfile, run. And start using it. But what’s really happening when you do that? How can use you someone else’s code just by putting it in your Gemfile? Starting with good old-fashioned. We’ll discuss how Ruby allows you to load code from files and directories. Next, we’ll look at. Method has bee...
andrearko.com
Rails from the ground up: Status Codes & Headers
http://www.andrearko.com/2014/07/22/rails-from-the-ground-up-headers--status-codes
Rails from the ground up: Status Codes and Headers. Now that we know what the tiniest possible response looks like, we can talk about what a valid and correct HTTP response looks like. That means explaining. To send a fully correct HTTP response, we need to first tell the client our HTTP version and the status code of our response. Status codes tell the client what kind of response is going to be sent. For the smallest possible response, we only need one status code:. Other common status codes include.
andrearko.com
RubyFuza 2014
http://www.andrearko.com/2014/02/19/rubyfuza-2014
How to build the web with empathy for non-Americans. The community in South Africa isn’t as mature as it is in the US, but it didn’t feel as jaded, either. As I met locals and talked to them, I was reminded most strongly of the early days of the American Ruby community. No one was buying their own custom sports cars (at least, not yet), but everyone was excited about using Ruby and excited about building things. While there were many excellent talks, the highlights for me were Zachary Scott’s. Could defi...
andrearko.com
Strings in Ruby are UTF-8 now… right?
http://www.andrearko.com/2013/12/01/strings-in-ruby-are-utf-8-now
Strings in Ruby are UTF-8 now right? In Ruby 1.8, Strings were (basically) just arrays of bytes with some extra methods, but Ruby 1.9 added explicit encoding support. Now every string knows how it is encoded! This fixes all of our issues with non-ASCII characters, right? Behold, as narrated by The String Type Is Broken. Exactly how many ways Ruby completely fails to comprehend UTF-8 strings. First, special characters that have to be handled in a way that is aware of how they work. 100% fail.
andrearko.com
TCP delays and retransmissions on Illumos
http://www.andrearko.com/2014/08/01/tcp-delays-and-retransmissions-on-illumos
TCP delays and retransmissions on Illumos. The other day, I helped debug an issue on some production Joyent Cloud servers (which use SmartOS, based on Illumos, the open-source successor to Solaris). The solution turned out to be so non-obvious, and the cause pretty interesting, so I thought it was worth writing up. We eventually narrowed it down to the app servers themselves, writing a script to fire off around 10,000 requests as quickly as they could be served by a single set of unicorn server processes...
andrearko.org
Extreme Makeover: Rubygems Edition
http://www.andrearko.org/2013/12/09/extreme-makeover-rubygems-edition
Extreme Makeover: Rubygems Edition. This was also a talk given at RubyConf 2013 in Miami Beach, FL. If you prefer, you can watch the video. From the talk. This post contains the slide deck from the talk, and a written version of the content. So, what happened last year? The other significant issues this year have been more diffuse and inconsistent. Is everybody familiar with Travis, the hosted continuous integration service? How does rubygems.org work now? The plan, Stan. What have we done? This summer, ...
SOCIAL ENGAGEMENT