A group that meets once a month to chat about Ruby on Rails and the Ruby programming language.
Join Now. (it's free)

#indyrb IRC Log on irc.freenode.net

Index

IRC Log for 2009-12-07

Timestamps are in GMT/BST.

[7:05] * davidray (n=david@c-98-220-174-19.hsd1.in.comcast.net) has joined #indyrb
[8:24] * davidray2 (n=dave@c-98-220-174-19.hsd1.in.comcast.net) has joined #indyrb
[8:25] * davidray2 (n=dave@c-98-220-174-19.hsd1.in.comcast.net) Quit (Client Quit)
[15:37] * davidray2 (n=dave@c-98-220-174-19.hsd1.in.comcast.net) has joined #indyrb
[15:40] * dsp (n=dsp@dorado.c-60.org) Quit (barjavel.freenode.net irc.freenode.net)
[15:40] * mileszs (n=mileszs@99-138-55-6.lightspeed.iplsin.sbcglobal.net) Quit (barjavel.freenode.net irc.freenode.net)
[15:41] * mileszs (n=mileszs@99-138-55-6.lightspeed.iplsin.sbcglobal.net) has joined #indyrb
[15:41] * dsp (n=dsp@dorado.c-60.org) has joined #indyrb
[16:12] * baldwindavid (n=baldwind@173-15-43-57-Illinois.hfc.comcastbusiness.net) has joined #indyrb
[16:26] <baldwindavid> I really haven't used the case statement much in Ruby
[16:26] <davidray2> I like it sometimes
[16:27] <baldwindavid> surprised to find that rather than...when "something" || "otherthing"
[16:27] <baldwindavid> is instead...when "something", "otherthing"
[16:27] <baldwindavid> probably that is a code smell anyway
[16:28] <baldwindavid> davidray2: did you find what you need for Liquid syntax?
[16:29] <davidray2> Yes and no. I found enlightenment, but what I was really looking for was a syntax guide I can display to my users.
[16:32] <baldwindavid> I would just steal these pages...http://wiki.shopify.com/UsingLiquid ... http://wiki.shopify.com/FilterReference
[16:33] <baldwindavid> on the second link...the filters not specific to Shopify are listed
[16:34] <davidray2> Yeah... that's what I meant by enlightenment... I realized I might have actually been looking for a markitup syntax guide instead....
[16:34] <davidray2> :)
[16:34] <baldwindavid> Yeah, liquid is awesome, but for non-tech users go with Markdown or Textile
[16:34] <baldwindavid> ...unless you have them pressing buttons that drop in liquid tags automatically
[16:35] <baldwindavid> Do you want a Markdown cheatsheet?
[16:35] <davidray2> YEsh
[16:35] <baldwindavid> on the right is a pretty simple one...http://daringfireball.net/projects/markdown/dingus
[16:36] <davidray2> Btw, December and January are the months in which I will conquer my javascript fears
[16:36] <davidray2> and stop bugging you about it.
[16:37] <baldwindavid> Here's probably an even better one...http://effectif.com/nesta/markdown-cheat-sheet
[16:37] <baldwindavid> ...and this ain't bad...http://support.mashery.com/docs/customizing_your_portal/Markdown_Cheat_Sheet
[16:38] <baldwindavid> well I have many JS fears of my own
[16:39] <davidray2> I'll feel more well-rounded once I can get around on my own in JS.
[16:40] <baldwindavid> Yes, JS is one thing I think we're all going to have to learn regardless of server language
[16:41] <davidray2> G is going to hook me up with a few books, and I bought Prototype and Scriptaculous
[16:41] <davidray2> frm prag dave
[16:42] <baldwindavid> I have a few unread JS books
[16:43] <davidray2> Maybe indy.rb could sponsor a book exchange
[16:43] <davidray2> I have a few books I don't want but don't want to throw away.
[16:43] <baldwindavid> sounds good to me
[16:44] <davidray2> I think I'll bring them then.
[16:44] <baldwindavid> I will bring some books of mine that I haven't read and trade them with myself to hopefully motivate me to read them
[16:44] <davidray2> Nice.
[16:45] <baldwindavid> What can I say. I'm a saint
[16:45] <davidray2> Seriously - should you send out an email to everyone to bring books they don't want but are still relevant ?
[16:46] <davidray2> Probably not necessary to bring an OS9 book.
[16:46] <baldwindavid> ha
[16:46] <davidray2> And we could just make the rules "take about what you give or less".
[16:47] <baldwindavid> if you come up with the program and text I'll send it out? fair?
[16:47] <davidray2> Sure
[16:47] <baldwindavid> Excellent
[17:04] <davidray2> Just sent it off to you baldwindavid
[17:04] <baldwindavid> Perfect. Thanks
[17:34] * davidray2 (n=dave@c-98-220-174-19.hsd1.in.comcast.net) Quit ()
[18:17] * baldwindavid (n=baldwind@173-15-43-57-Illinois.hfc.comcastbusiness.net) Quit ()
[18:17] * baldwindavid (n=baldwind@173-15-43-57-Illinois.hfc.comcastbusiness.net) has joined #indyrb
[18:18] * baldwindavid (n=baldwind@173-15-43-57-Illinois.hfc.comcastbusiness.net) Quit (Client Quit)
[19:32] * baldwindavid (n=baldwind@cpe-66-61-163-196.indy.res.rr.com) has joined #indyrb
[20:21] * adamaig (n=adamaig@c-67-175-132-225.hsd1.in.comcast.net) has joined #indyrb
[21:04] * davidray2 (n=dave@c-98-220-174-19.hsd1.in.comcast.net) has joined #indyrb
[21:12] <davidray2> baldwindavid: You feeling tolerant for a stupid question?
[21:12] <baldwindavid> shoot
[21:12] <davidray2> In github, people commonly write instructions like this:
[21:12] <davidray2> script/plugin install git://github.com/collectiveidea/awesome_nested_set.git
[21:16] <baldwindavid> Is that a question or statement?
[21:17] <davidray2> sorry. interuption
[21:18] <davidray2> What do peeps do to make their computer automagically run ruby scripts without typing ruby?
[21:20] <baldwindavid> I don't know much about that kind of stuff, but I think it might have to do with ruby being in the path of my bash_login
[21:20] <baldwindavid> ?
[21:20] <baldwindavid> I don't have to type it
[21:21] <davidray2> duh, that makes sense
[21:21] <baldwindavid> this is in my bash_login... export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH"
[21:22] <davidray2> hmm. I have it in my path. Weird
[21:22] <baldwindavid> maybe your ruby is in a different place?
[21:22] <davidray2> Nope. I checked
[21:23] <baldwindavid> yeah, I'm reaching - my guess is many of the regulars here would know
[21:24] * adamaig_ (n=adamaig@c-67-175-132-225.hsd1.in.comcast.net) has joined #indyrb
[21:24] <davidray2> I'm fairly confident once someone answers the question I'll feel pretty stupid.
[21:27] <baldwindavid> what's it say when you enter "which ruby"
[21:31] * adamaig (n=adamaig@c-67-175-132-225.hsd1.in.comcast.net) Quit (Connection timed out)
[21:31] * adamaig_ is now known as adamaig
[21:57] <davidray2> sorry, another interruption baldwindavid
[21:57] <davidray2> it says /usr/bin
[21:59] <baldwindavid> I can tell you mine is /usr/local/bin/ruby
[22:00] <baldwindavid> what about within the project root?
[22:02] <davidray2> I think I figured it out.
[22:03] <davidray2> None of the files in script were executable
[22:03] <davidray2> Told you it would be stoop-ed
[22:03] <davidray2> Anybody upgrade to 2.3.5 yet?
[22:03] <baldwindavid> ah - yeah, I've had random problems with permissions and such
[22:03] <baldwindavid> I haven't, but will
[22:04] <davidray2> I tried and had probs with it escaping everything but the layout
[22:04] <davidray2> Worked locally, but didn't work when I deployed it
[22:05] <baldwindavid> that's the 3.0 html escape default
[22:05] <davidray2> yeah
[22:05] <baldwindavid> will be a good thing in the long run
[22:06] <davidray2> Yeah, I just gotta figure it out
[22:08] <baldwindavid> actually install is saying you need the RailsXss plugin for it to work
[22:08] <davidray2> Yeah, did that too
[22:37] <davidray2> So, I have a strange error coming from my prod site. If you go to trooptrack.com and click on the right/left arrows on the page, the main content changes.
[22:37] <davidray2> I have a controller action called next feature and a corresponding javascript that just replaces the div
[22:39] <davidray2> every now and then I get an email from exception notifier for a url like this
[22:40] <davidray2> trooptrack.com/welcom/next_feature/?pos=6 (or 3 or whatever)
[22:40] <davidray2> What I can't figure out is how users are getting sent to my next_feature action directly?
[22:41] <davidray2> I can't repro it on any browser
[22:41] <baldwindavid> it's not really supposed to hit the server right?
[22:41] <baldwindavid> make sure any links you are overriding with jQuery return false
[22:43] <davidray2> like this one: = link_to_remote(image_tag("/images/left.png"), :url => {:controller => :welcome, :action => :next_feature, :pos => @pos.to_i == 1 ? 6 : @pos.to_i - 1})
[22:43] <davidray2> ?
[22:44] <baldwindavid> seems like overkill unless that slider thingy is going to be pulling a bunch of new stuff
[22:45] <baldwindavid> something using the cycle plugin or something might be easier...http://malsup.com/jquery/cycle/int2.html
[22:45] <baldwindavid> not saying what you're doing is wrong
[22:48] <davidray2> Well, it's not like I know what I'm doing...
[22:49] <baldwindavid> BTW - the sales pitch on trooptrack is looking easy to digest
[22:49] <davidray2> Thanks
[22:49] <davidray2> I'm getting paranoid cuz it's slow right now. Hoping it's just cuz it's December
[22:50] <baldwindavid> my only thought would be you might consider screenshots rather than the stock photos
[22:50] <davidray2> Yeah, good call. I was hoping for some feedback about the art.
[22:51] <baldwindavid> There's no rules, but often stock photos help support a layout/design, whereas here they are being used to demonstrate a feature...
[22:52] <baldwindavid> ...in which case an actual screenshot probably tells the story better
[22:52] <davidray2> Yeah, agreed.
[22:53] <baldwindavid> although the right stock photo can tell a story - like I said, no rules - ha
[22:53] <davidray2> I'm worried that it tells the story "I'm too embarrassed to show you my app"
[22:54] <baldwindavid> ha - well, your customer are picking neither the page or zoom level of your screenshots
[22:55] <davidray2> true...
[23:02] <davidray2> Trying cycle now...