| rane_ | umm, i have something "constant" that i'd like to be constant, but it's and url with a get-variable so should i make the url constant and replace the variable part later or? seems i'm so tired i'm starting to miss words |
| AnalphaBestie | that should work |
| rane_ | it should yes, but i'm just wondering if that's recommended at all |
| AnalphaBestie | why not? |
| rane_ | seems kinda awkward to me |
| action | manveru shouts out loud |
| manveru | shouts out loud |
| AnalphaBestie | manveru: mojn |
| manveru | moin :) |
| kiba_ | hmm |
| action | kiba_ is a clueless newbie in the land of rails |
| kiba_ | is a clueless newbie in the land of rails |
| rane_ | AnalphaBestie: i meant something like this ARCHIVE = "/archive.php?nick=%user%&album_id=all&page="; @http.request_get(ARCHIVE.gsub("%user%", username)) |
| AnalphaBestie | looks absolute okay to me |
| rane_ | cool |
| OJCIT | Hi guys, quick question can I call to_s on a symbol? |
| AnalphaBestie | OJCIT: shure |
| OJCIT | like the symbol itself |
| AnalphaBestie | -h |
| OJCIT | do I get a string? |
| AnalphaBestie | :asd.to_s # => "asd" OJCIT: try such things in irb |
| OJCIT | I know, but this window was already open :-) |
| AnalphaBestie | o_0 |
| OJCIT | i haven't had much human contact todayh |
| AnalphaBestie | hrhr |
| OJCIT | though irb is not the worst way to spend a saturday night that's probably my only complaint about the pickaxe book: it seemed to gloss over symbols and why I'd want them but the article somebody showed me at http://glu.ttono.us/articles/2005/08/19/understanding-ruby-symbols really helps thanks, and I'm off |
| nullpuppy | my ruby regex-fu is weak.. how does one check to see if a sequence of characters is in a string? specifically i need to check if ARGV[3] contains ARGV[0] |
| AnalphaBestie | "asdf" =~ /df/ ? ARGV[3].include?(ARGV0) |
| nullpuppy | hmm, that might do it |
| erikh | ARGV[3] =~ /#{ARGV[0]}/ # ? |
| AnalphaBestie | .include? should do it |
| LoganCapaldo | if ARGV[3][ARGV[0]] # wins the award for the most overuse of [] |
| nullpuppy | hehe apparently not working, but i think it's do to other problems.. |