News for hackers. Stuff that matters.
Re:Show HN: My first RoR project. Domain appraisal engine by flexd on Tuesday January 15, 2013 @09:48AM (#5060313)
It's dead for me.

NoMethodError in SearchController#search

undefined method `[]' for nil:NilClass

http://www.domainmongrel.com/search?utf8=%E2%9C%93&domai...

Re:Show HN: My first RoR project. Domain appraisal engine by rauljara on Tuesday January 15, 2013 @09:52AM (#5060339)
Same error for me, too. Not at all surprising that a first time Rails app wouldn't be able to handle the craziness that is showing up on the hacker news front page.

My sympathies to the author. This stuff is hard. Don't get dispirited by it.

Re:Show HN: My first RoR project. Domain appraisal engine by jvc26 on Tuesday January 15, 2013 @09:55AM (#5060355)
Same here, still looks to be down ...
Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @09:52AM (#5060338)
It stopped working suddenly! I just restarted the server. Hopefully everything should be ok.
Re:Show HN: My first RoR project. Domain appraisal engine by jimg on Tuesday January 15, 2013 @09:57AM (#5060369)
No Joy. Still NoMethodError in SearchController#search
Re:Show HN: My first RoR project. Domain appraisal engine by travisp on Tuesday January 15, 2013 @10:04AM (#5060403)
I'm still getting "undefined method `[]' for nil:NilClass" in "lib/modules/google_count.rb:22:in `search_count'"
Re:Show HN: My first RoR project. Domain appraisal engine by dpritchett on Tuesday January 15, 2013 @10:14AM (#5060451)
I'm going to guess that your Google API parser is being rate limited thanks to the traffic volume you're seeing. Try adding some logging to that piece.

Also, you are running an outdated version of Rails that needs a security patch.

Great look for a first Rails project though, keep plugging away! Remember that most people aren't lucky enough to have popularity break their app ;)

Edit for code sample:

    Rails.logger.info " * Hitting Google now: #{your_google_parser.response.inspect}"
Redeploy, then:

   heroku logs -tail
Second edit for Google API advice:

From what I remember the GDATA APIs have not-entirely-documented rate limits. One naive solution I wrote in the past merely waited one second between sequential requests. This will obviously impact your app's responsiveness, so you'll want to figure out another strategy once you get it back up. Also, once you implement your rate limiting you still might have to wait ten minutes or so before Google lets you back in.

Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @10:20AM (#5060484)
You guessed it right... unfortunately, this will end up killing my break on hn :( I will try to increase google rate limits
Re:Show HN: My first RoR project. Domain appraisal engine by dpritchett on Tuesday January 15, 2013 @10:38AM (#5060593)
Try faking the Google piece for now (maybe only on every other request?) to get the app up and running again. You can legitimately fix it after the traffic dies down.

Edit: You got muted down to the 4th page, at #130 something down from the top 30. Probably the victim of some flagging or a moderator. Sorry.

Re:Show HN: My first RoR project. Domain appraisal engine by throwit1979 on Tuesday January 15, 2013 @10:21AM (#5060488)
Nope. Most assuredly not ok.
Re:Show HN: My first RoR project. Domain appraisal engine by snampall on Tuesday January 15, 2013 @10:03AM (#5060396)
Same here :-(
Re:Show HN: My first RoR project. Domain appraisal engine by mrThe on Tuesday January 15, 2013 @09:37AM (#5060264)
http://www.domainmongrel.com/search?domain[]= duuude. Run app in production mode, to avoid this page with debug info. And add some filtration for input data.
Re:Show HN: My first RoR project. Domain appraisal engine by mrThe on Tuesday January 15, 2013 @09:45AM (#5060302)
Re:Show HN: My first RoR project. Domain appraisal engine by xutopia on Tuesday January 15, 2013 @10:18AM (#5060471)
That would happen automatically by running in production mode.
Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @09:43AM (#5060293)
I thought checking for empty strings and non alphanumeric characters was good enough. Needs more work!
Re:Show HN: My first RoR project. Domain appraisal engine by Inversechi on Tuesday January 15, 2013 @09:42AM (#5060287)
I like it :) Some pointers...

- Validation on the input form

- HTML looks like it's been generated in some WYSIWYG editor... Have a read over this: http://learn.shayhowe.com/advanced-html-css/

Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @09:50AM (#5060328)
thanks :-) I did the html with a lot of <br/> statements and ad hoc CSS. I need to learn how to do this more professionally. Thanks for the link.
Re:Show HN: My first RoR project. Domain appraisal engine by byoung2 on Tuesday January 15, 2013 @09:20AM (#5060178)
The Domain domainmongrel.com is valued at: $0.01 You should give yourself more credit! I'm guessing you pull whois data, PageRank, Compete, MozRank, and Alexa data, and use that to score the domain?
Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @09:23AM (#5060189)
exactly! Alexa Rank and also I applied some linear regression, Zipf power law with R language. R is really cool!!
Re:Show HN: My first RoR project. Domain appraisal engine by fekberg on Tuesday January 15, 2013 @09:25AM (#5060197)
I "valued" two of my domains one that has a lot of visitis and one that does not, the one that does not seemed to get higher valued because it was a .com address.

Looking forward to see the code on github, thanks for sharing.

Re:Show HN: My first RoR project. Domain appraisal engine by byoung2 on Tuesday January 15, 2013 @09:26AM (#5060202)
Nice! I like it, even though some of my domains aren't worth the $8 I paid for them.
Re:Show HN: My first RoR project. Domain appraisal engine by itsmeduncan on Tuesday January 15, 2013 @09:33AM (#5060238)
Should the action of the button be 'Appraise' instead of 'Appraisal'?
Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @09:35AM (#5060254)
Yeah! It should be 'Appraise' or 'Go', thanks for pointing it out.
Re:Show HN: My first RoR project. Domain appraisal engine by volkanvardar on Tuesday January 15, 2013 @09:45AM (#5060305)
It says that my domain (http://vv20.com) worth $64K cant understand why. http://www.domainmongrel.com/search?utf8=%E2%9C%93&domai...
Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @09:58AM (#5060376)
It is down :( :( I really appreciate the good will of the hn community. Any tips on what went wrong.
Re:Show HN: My first RoR project. Domain appraisal engine by egze on Tuesday January 15, 2013 @10:01AM (#5060383)
Care to post how you set it up? It seems that the app was running in development mode.
Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @10:04AM (#5060404)
yeah I ran it in development mode. I tried running it with rails server -e production -p 80 but it did not work.
Re:Show HN: My first RoR project. Domain appraisal engine by jenius on Tuesday January 15, 2013 @10:05AM (#5060411)
open source it and we'll send in pull requests : )
Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @10:37AM (#5060592)
I will need to sanitize the code before uploading it to the github. Also, I found the culprit.. google api :(
Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @09:19AM (#5060173)
This is my first Show HN post and also my first HackerNews submission. Please leave feedback.
Re:Show HN: My first RoR project. Domain appraisal engine by hisyam on Tuesday January 15, 2013 @09:51AM (#5060336)
It doesn't work for me. I tried google.com but it throws a Rails error page.
Re:Show HN: My first RoR project. Domain appraisal engine by ragnarr on Tuesday January 15, 2013 @09:52AM (#5060340)
" NoMethodError in SearchController#search "...
Re:Show HN: My first RoR project. Domain appraisal engine by brador on Tuesday January 15, 2013 @09:34AM (#5060248)
What tools and methods did you use to make that logo? I like the style.
Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @09:40AM (#5060276)
I used MS paint. I don't remember the exact font. Image I got from google search.
Re:Show HN: My first RoR project. Domain appraisal engine by jvc26 on Tuesday January 15, 2013 @09:56AM (#5060362)
I assume it is a CC-Licensed image?
Re:Show HN: My first RoR project. Domain appraisal engine by rk0567 on Tuesday January 15, 2013 @10:16AM (#5060461)
Re:Show HN: My first RoR project. Domain appraisal engine by fekberg on Tuesday January 15, 2013 @09:18AM (#5060170)
Got some code to show?

The UTF-8 "check" in the URL was pretty cool.

Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @09:22AM (#5060187)
Thanks for the comment! I have a github account. I will upload it there and paste the link here.
Re:Show HN: My first RoR project. Domain appraisal engine by capsicum on Tuesday January 15, 2013 @09:31AM (#5060224)
that would be cool, would love to see how it works
Re:Show HN: My first RoR project. Domain appraisal engine by itsmeduncan on Tuesday January 15, 2013 @09:35AM (#5060252)
That is a workaround for an Internet Explorer bug. You can read about it here:

http://stackoverflow.com/questions/4104474/rails-3-utf-8-que...

Re:Show HN: My first RoR project. Domain appraisal engine by kidgorgeous on Tuesday January 15, 2013 @10:08AM (#5060427)
dead here. This might be of particular interest to a hacker though: _csrf_token: "nVpKIc5NEHWvddNf5r3Hrzo/4KsB2+1BAVlOk3IY1Mw=" session_id: "e771d56b3c20aff090dc76b3e994fc5e"
Re:Show HN: My first RoR project. Domain appraisal engine by bdfh42 on Tuesday January 15, 2013 @09:30AM (#5060219)
anything .co.uk looks to be worth 0 so .com centric?
Re:Show HN: My first RoR project. Domain appraisal engine by fekberg on Tuesday January 15, 2013 @09:42AM (#5060288)
> "The Domain google.co.uk is valued at: $0.00"

> "The Domain google.com is valued at: $2,009,961,449.08"

Re:Show HN: My first RoR project. Domain appraisal engine by redmaverick on Tuesday January 15, 2013 @09:33AM (#5060236)
.com .org .info .us .jp .es .in .br .fr pretty much I don't have enough info on .co.uk
Re:Show HN: My first RoR project. Domain appraisal engine by capsicum on Tuesday January 15, 2013 @09:38AM (#5060268)
same for .me