Joined November 2013
·
Posted to
An algorithm to generate fake but realistic looking graph data(that trends too)
over 1 year
ago
yes, spam. i got my hopes up.
Achievements
88 Karma
4,426 Total ProTip Views
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/forked1-63f23ad054823f6065b4526f8552dbc2c4fbaa75d22db7150d700201218ac426.png)
Forked
Have a project valued enough to be forked by someone else
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/charity-bab6d575c53894cc9e395db7cdb1f0f91f176fa0cc8122c5f824e672f3d556a4.png)
Charity
Fork and commit to someone's open source project in need
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/mongoose3-3c4898df9b91ea4bec8bce0c83908998df630cbbf749d2dcfadba121af2bf1fa.png)
Mongoose 3
Have at least three original repos where Ruby is the dominant language
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/mongoose-299fb33af2a4e416505b484d73e79ee3ff1840f3c7385d6bbbc158f76be054cb.png)
Mongoose
Have at least one original repo where Ruby is the dominant language
I hit a huge gotcha. We wanted to make a single page amp'ified and then move to a more generalized layout. We simply added
Mime::Type.register "text/html", :amp
to mimetypes.rb thinking it was adding an additional format. However, this wipes out the original "text/html" mime type in Rails and runs requests through amp layouts. If you don't create the .amp.erb layout, it will give 500 error with ActionView::MissingTemplate exception. Instead, you want `Mime::Type.registeralias "text/html", :amp`.