Sunday, May 11, 2014

Rails: translation missing: en.hello_world

I've just been tearing my hair out for the last hour or two trying to get the simplest "hello world" application working with internationalization (i18n) on my rails app.  No matter what I did, I kept getting the "translation missing" message.  I tried tweaking the load paths, changing how it was called, everything.  My "out of the box" en.yml file looked like this:


# Sample localization file for English. Add more files in this directory for other locales.
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.

en:
hello: "Hello world"

en:
time:
formats:
w3c: "%Y-%m-%dT%H:%M:%S+00:00"


After killing myself, it turns out having two "en:" in that file was causing it to quietly break. Apparently .yml files are notorious for quietly breaking. Changing it to the following fixed it:


# Sample localization file for English. Add more files in this directory for other locales.
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.

en:
hello: "Hello world"

time:
formats:
w3c: "%Y-%m-%dT%H:%M:%S+00:00"


fml. Hopefully this helps.

Thursday, December 12, 2013

Is It Gluten-Free?

If you liked our last 24 hour project, What's That Charge?! You're going to also like our newest one: Is Gluten-Free?!  Google is the user interface, and Is Gluten-Free is there to help you quickly figure out if whatever you're about to stuff into your face hole is gluten-free or not.

Thursday, November 07, 2013

How old are NFL players?

I was wondering how old are NFL players.  Or, how old am I compared to NFL players, so I downloaded all of the NFL rosters as of 11/7/2013 and charted the ages! Here are some stats:

Youngest: 21 (23 players)
Oldest: 40 (Adam Vinatieri)
Average: 26.1
Median: 25
25th Percentile: 24
75th Percentile: 28
95th Percentile: 32
99th Percentile: 36

So basically, if you're over 30, you're older than 85% of the NFL.  If you're over 40, well. You're not in the NFL.  Here's the frequency distribution chart of ages:


Thursday, March 15, 2012

Newest 24 hour idea: What's That Charge?!

Dan and I just launched our newest "24 hour" idea, What's That Charge?!  You know how sometimes you see strange or cryptic looking charges on your credit card statement?  I often google them to see what the heck it is, but there doesn't seem to be a site out there that indexes these charges.  That's where What's That Charge?! Comes in.  The user interface is google.  Just google the strange charges that come up on your statement, and hopefully What's That Charge?! comes up in the results and has your answer for you!

Wednesday, October 19, 2011

Fine Lines Studios

Those interested in permanent makeup in San Diego should check out Fine Lines Studios!  My friend Karey runs it and she does a fantastic job! :)

Friday, October 14, 2011

Monday, January 31, 2011

Web Listings, Inc. is a SCAM

These things really piss me off: I just got a letter in the mail that looks identical to an invoice from "Web Listings, Inc." It is actually a solicitation to try to get me to transfer a domain to them. Transferring a domain should cost around $10, but they are charging $85.
You can tear off the little bottom portion, fill in the "Amount Paid" and return it in their envelope (not pre-paid, unfortunately) to "pay your bill. There is ONE LINE (which I'm sure they need to include to be barely in compliance with the law) that says "This is not a bill...", but they obviously exist solely on misinformed, busy people who don't understand domain names and think this is a real invoice from a generic sounding company they have done business with before.
Transferring a domain to them is a TERRIBLE idea. If you're reading this and you've already paid, do NOT go through with the registration. Keep your domain with a reputable registrar or you'll probably be paying $85 every year instead of $10 and I'm sure you'll have a huge headache if you ever try to transfer away.
Anyway, these guys are theives as far as I'm concerned. Hopefully a spam bot is reading this and can e-mail them at: info@web-listings.net