Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
_whitelogger has joined #ruby-lang
_whitelogger0 has joined #ruby-lang
_whitelogger has joined #ruby-lang
hhatch has joined #ruby-lang
hhatch has joined #ruby-lang
lbrent has joined #ruby-lang
lbrent has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
woollyams has joined #ruby-lang
woollyams has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
lbrent has joined #ruby-lang
lbrent has joined #ruby-lang
rolfb has joined #ruby-lang
rolfb has joined #ruby-lang
csherin_ has joined #ruby-lang
csherin_ has joined #ruby-lang
lbrent has joined #ruby-lang
lbrent has joined #ruby-lang
justinmcp has joined #ruby-lang
justinmcp has joined #ruby-lang
lbrent has joined #ruby-lang
lbrent has joined #ruby-lang
lbrent has joined #ruby-lang
lbrent has joined #ruby-lang
<dominikh> :D
woollyams has joined #ruby-lang
woollyams has joined #ruby-lang
virunga has joined #ruby-lang
virunga has joined #ruby-lang
toretore has joined #ruby-lang
toretore has joined #ruby-lang
<injekt> has anyone here used garb?
tekin has joined #ruby-lang
tekin has joined #ruby-lang
xo71 has joined #ruby-lang
xo71 has joined #ruby-lang
chimkan___ has joined #ruby-lang
chimkan___ has joined #ruby-lang
xo71 has quit [#ruby-lang]
xo71 has quit [#ruby-lang]
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
meise has joined #ruby-lang
meise has joined #ruby-lang
Guest45296 has joined #ruby-lang
Guest45296 has joined #ruby-lang
<yorickpeterse> Nope
<Arnvald> injekt: I used it, but long long time ago
krzyhoo has joined #ruby-lang
krzyhoo has joined #ruby-lang
<krzyhoo> hello experts
jmeeuwen has joined #ruby-lang
jmeeuwen has joined #ruby-lang
<injekt> Arnvald: stupid question, did it work? :)
<krzyhoo> gotta question. I have placed my classes in an external file. Now I'd like to place a test in that file (Powercenter.rb) which cheks if the user has not executed this file by accident
<krzyhoo> ./Powewrcenter.rb should deliver a message
<Arnvald> injekt: yes, that time it did with no problems
<judofyr> krzyhoo: if $0 == __FILE__, then that file is being executed
benteaa has joined #ruby-lang
benteaa has joined #ruby-lang
<krzyhoo> judofyr: thanks dude
publicvoid__ has joined #ruby-lang
publicvoid__ has joined #ruby-lang
<injekt> Arnvald: kk thanks
slaytanic has joined #ruby-lang
slaytanic has joined #ruby-lang
setmeaway has joined #ruby-lang
setmeaway has joined #ruby-lang
Joeysomo_ has joined #ruby-lang
Joeysomo_ has joined #ruby-lang
Joeysomo_ has joined #ruby-lang
Joeysomo_ has joined #ruby-lang
Joeysomo has joined #ruby-lang
Joeysomo has joined #ruby-lang
thone_ has joined #ruby-lang
thone_ has joined #ruby-lang
dv310p3r has joined #ruby-lang
dv310p3r has joined #ruby-lang
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
tomzx has joined #ruby-lang
tomzx has joined #ruby-lang
gnufied has joined #ruby-lang
gnufied has joined #ruby-lang
urbanmonk has joined #ruby-lang
urbanmonk has joined #ruby-lang
looopy has joined #ruby-lang
looopy has joined #ruby-lang
Indian has joined #ruby-lang
Indian has joined #ruby-lang
toertore has joined #ruby-lang
toertore has joined #ruby-lang
virunga has joined #ruby-lang
virunga has joined #ruby-lang
gnufied has joined #ruby-lang
gnufied has joined #ruby-lang
gokul has joined #ruby-lang
gokul has joined #ruby-lang
tekin has joined #ruby-lang
tekin has joined #ruby-lang
looopy has joined #ruby-lang
looopy has joined #ruby-lang
<rue> The file is the “executable”. Files get executed all the time ;)
malev has joined #ruby-lang
malev has joined #ruby-lang
<judofyr> rue: :D
mark_locklear has joined #ruby-lang
mark_locklear has joined #ruby-lang
gongo has quit ["Leaving..."]
gongo has quit ["Leaving..."]
pw__ has joined #ruby-lang
pw__ has joined #ruby-lang
Spooner has joined #ruby-lang
Spooner has joined #ruby-lang
malev has joined #ruby-lang
malev has joined #ruby-lang
jxie has joined #ruby-lang
jxie has joined #ruby-lang
jesly has joined #ruby-lang
jesly has joined #ruby-lang
tbuehlmann has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<apeiros_> sounds deadly
<erikh> rue: I got yelled at once at a job for calling them 'binaries' by someone who spent way too much time thinking about it
noodl has joined #ruby-lang
noodl has joined #ruby-lang
<rue> Well, they *are* binary
<erikh> yeah
<rue> It just so happens that you can ASCII-decode them
<erikh> well you can ascii-decode a.out's too but they don't say a whole lot
<rue> So I think they spent too LITTLE time thinking about it ;)
<erikh> unless you're rob pike or headius or someone like that
<noodl> hai. trying to build ruby on os x 10.6 but it's not finding libyaml for psych. i installed libyaml with macports. how can i tell it to look in /opt/local please?
<erikh> how are you building ruby?
<erikh> if you're using straight ./configure, there should be a -- option there (./configure --help)
<noodl> from source with --prefix=~/.rbenv/versions/1.9.3-p125
<noodl> ok, will check the --help thanks
mistym has joined #ruby-lang
mistym has joined #ruby-lang
<Asher> and if you can't make that work you can also just create sym links in /usr/local
<erikh> oh, you can use ruby-build to od that
<erikh> rbenv should have formulae to deal with 1.9.3-p125
<erikh> unless you have a good reason for building your own
<noodl> not really..
<noodl> will try --with-opt-dir=/opt/local
jaisoares has joined #ruby-lang
jaisoares has joined #ruby-lang
<jaisoares> Hi everyone! Is there any way of dynamically comment out ruby code based on the current ruby version?
<erikh> if RUBY_VERSION > '1.8'
<erikh> it's not a comment though
<erikh> be forewarned it doesn't work with everything
<jaisoares> my problem is the comment part
<whitequark> jaisoares: extract the version-dependent code in a separate .rb file and load it conditionally
<whitequark> you won't get closer to comments without that.
<erikh> unless you use sed and rake
* erikh grins
<jaisoares> whitequark: that was my backup plan, any idea about an alternative solution?
<judofyr> if RUBY_VERSION > '1.8'; File.open(__FILE__) … end
<judofyr> :D
<tobiasvl> require
<tobiasvl> include
<judofyr> jaisoares: if RUBY_VERSION > '1.8'; eval(…) ?
<erikh> UGH
<erikh> how about just require
<erikh> or if you have to: load
<jaisoares> thanks judofyr, that was what I was looking for
<tobiasvl> yes. please use require instead.
<erikh> ^
<noodl> 1 sticky bun for erikh. --with-opt-dir did the trick, ty.
<tobiasvl> jaisoares: any reason you don't condone require? :)
<erikh> yay sticky buns!
<judofyr> code = %Q{hello\nworld}; code.gsub!(/^/, '#') if RUBY_VERSION > '1.8'; eval(code)
<erikh> judofyr: man
<jaisoares> tobiasvl: I just wanted to avoid a separate file
<tobiasvl> jesus
<tobiasvl> jaisoares: oh ok
<erikh> ugh
<erikh> UGGGGH
<judofyr> erikh: tobiasvl: :D
<jaisoares> thanks all for your quick brainstorming solutions
<erikh> might as well throw it in __END__ if you're gonna use %Q like that
willdrew has joined #ruby-lang
willdrew has joined #ruby-lang
Defusal has joined #ruby-lang
Defusal has joined #ruby-lang
Defusal has joined #ruby-lang
Defusal has joined #ruby-lang
justinxreese has joined #ruby-lang
justinxreese has joined #ruby-lang
pbjorklund has joined #ruby-lang
pbjorklund has joined #ruby-lang
mssola has joined #ruby-lang
mssola has joined #ruby-lang
sockmonk has joined #ruby-lang
sockmonk has joined #ruby-lang
robbrit has joined #ruby-lang
robbrit has joined #ruby-lang
m3nd3s has joined #ruby-lang
m3nd3s has joined #ruby-lang
dv310p3r has joined #ruby-lang
dv310p3r has joined #ruby-lang
<noodl> hai again. `gem list` shows that i have rails installed but ~/.rbenv/versions/1.9.3-p125/bin doesn't include the rails command. `rbenv rehash` isn't helping.. did i screw up. i'd ask #rubyonrails but that's rarely productive :/
<noodl> i tried both `bundle` in my app to install rails and `gem install rails`. neither has produced a binary.
looopy has joined #ruby-lang
looopy has joined #ruby-lang
<noodl> hmm bundle exec rails works. rbenv exec rails does not
lorenzo_ has joined #ruby-lang
lorenzo_ has joined #ruby-lang
<khaase> noodl: gem install rails; rbenv rehash; rbenv shims
tekin has joined #ruby-lang
tekin has joined #ruby-lang
<khaase> noodl: something like that
dous has joined #ruby-lang
dous has joined #ruby-lang
<noodl> khaase: trying to follow the suggestions here. https://github.com/sstephenson/rbenv/issues/73 didn't know about rbenv shims though, thanks. isn't rehash meant to do that?
<noodl> oh, it just lists them. no rails yet..
toykoaf has joined #ruby-lang
toykoaf has joined #ruby-lang
dejongge has joined #ruby-lang
dejongge has joined #ruby-lang
<noodl> it seems thatif you run "bundle" before "gem install rails" you will never get a rails executable
<shevy> hey noodl
<shevy> do you want an "e"?
<noodl> meh, "e"s are for wimps :P
<toykoaf> hey guys, I'm kinda new to ruby, looking for the ruby-est way to run a system command and get it's output, %x[..] won't accept a string as a parameter, anything else you guys recommend?
<apeiros_> toykoaf: um, %x[] does…
<apeiros_> ah, I understand - %x[] is like a string literal, just that it's being executed. you can use string interpolation:
<apeiros_> %x[#{cmd} #{arg1} …]
<khaase> noodl: I have no idea, I have similar issues with rspec
<apeiros_> also see Kernel#system and Open3
<khaase> noodl: make sure you gem install them. bundle install seems not to be enough.
<khaase> noodl: maybe rbenv-bundler helps?
gnufied has joined #ruby-lang
gnufied has joined #ruby-lang
<noodl> khaase: tried that several times. the gem is installed fine but having first run bundler, it seems that gem install won't add bin/rails
<toykoaf> thanks! it works
<noodl> can't see why though. .bundle/config in my app contains only an empty yaml hash
indstry has joined #ruby-lang
indstry has joined #ruby-lang
bglusman has joined #ruby-lang
bglusman has joined #ruby-lang
gnufied has joined #ruby-lang
gnufied has joined #ruby-lang
<noodl> hmm, `ls -al $(bundle show rails) shows just . and .. so apparently i have an empty rails gem
JEG2 has joined #ruby-lang
JEG2 has joined #ruby-lang
zmack has joined #ruby-lang
zmack has joined #ruby-lang
<noodl> khaase: `gem install railties && rbenv rehash` seems to fix it. no clues re rspec though, sorry.
enebo has joined #ruby-lang
enebo has joined #ruby-lang
Sailias has joined #ruby-lang
Sailias has joined #ruby-lang
kitallis has joined #ruby-lang
kitallis has joined #ruby-lang
ben has joined #ruby-lang
ben has joined #ruby-lang
wyhaines has joined #ruby-lang
wyhaines has joined #ruby-lang
grough has joined #ruby-lang
grough has joined #ruby-lang
slyphon has joined #ruby-lang
slyphon has joined #ruby-lang
mgraham has joined #ruby-lang
mgraham has joined #ruby-lang
jaisoares has quit [#ruby-lang]
jaisoares has quit [#ruby-lang]
rippa has joined #ruby-lang
rippa has joined #ruby-lang
lake has joined #ruby-lang
lake has joined #ruby-lang
francisfish has joined #ruby-lang
francisfish has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has joined #ruby-lang
slimfit has joined #ruby-lang
slimfit has joined #ruby-lang
srbaker has joined #ruby-lang
srbaker has joined #ruby-lang
Silex has joined #ruby-lang
Silex has joined #ruby-lang
frangiz has joined #ruby-lang
frangiz has joined #ruby-lang
yango has joined #ruby-lang
yango has joined #ruby-lang
hibariya has joined #ruby-lang
hibariya has joined #ruby-lang
segy has joined #ruby-lang
segy has joined #ruby-lang
sockmonk has joined #ruby-lang
sockmonk has joined #ruby-lang
frem has joined #ruby-lang
frem has joined #ruby-lang
rippa has joined #ruby-lang
rippa has joined #ruby-lang
apeiros_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
gregmoreno has joined #ruby-lang
gregmoreno has joined #ruby-lang
cschneid has joined #ruby-lang
cschneid has joined #ruby-lang
cyndis has joined #ruby-lang
cyndis has joined #ruby-lang
spectra has joined #ruby-lang
spectra has joined #ruby-lang
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
dju has joined #ruby-lang
dju has joined #ruby-lang
fireglow has joined #ruby-lang
fireglow has joined #ruby-lang
Tick-Tock has joined #ruby-lang
Tick-Tock has joined #ruby-lang
csherin has joined #ruby-lang
csherin has joined #ruby-lang
_ko1 has joined #ruby-lang
_ko1 has joined #ruby-lang
<roadkith> since #jruby isnt very active, maybe someone on here can help, i'm getting this:
<roadkith> 2012/02/28 15:50:59.792] !! org/jruby/RubyString.java:7147:in `encode!': code converter not found ({:invalid=>:replace, :undef=>:replace}) (Encoding::ConverterNotFoundError)
<roadkith> this happens when in cinch bot i do c.encoding = 'iso-8859-1'
jesly has joined #ruby-lang
jesly has joined #ruby-lang
<roadkith> or 'latin1'
<dominikh> roadkith: which version of jruby is that, and are you running in 1.9 mode?
<roadkith> jruby 1.6.3 (ruby-1.8.7-p330) - yes in 1.9 mode
<roadkith> magic comment is set like # encoding: iso-8859-1
<roadkith> p __ENCODING_ also says encoding is set to so-8859-1
<dominikh> they're not implementing String#encode! correctly.
<roadkith> is that a known bug?
akahn has joined #ruby-lang
akahn has joined #ruby-lang
<shevy> the bug is the whole Encoding
<dominikh> no idea, I just saw it for the first time, and I do not use jruby
<roadkith> shevy: different story tho
<shevy> yeah
<roadkith> dominikh: oh okay :S
<roadkith> i'm not l33t enough to send in patches/diffs
<roadkith> :(
<dominikh> roadkith: thing here is: String#encode! has a form where no encoding is explicitly supplied. jruby doesn't seem to know that
<dominikh> probably want to file a bug report with jruby
<shevy> well you can always ask headius (when he is here... which he usually is... but not right now)
macmartine has joined #ruby-lang
macmartine has joined #ruby-lang
jorgenpt has joined #ruby-lang
jorgenpt has joined #ruby-lang
benteaa has joined #ruby-lang
benteaa has joined #ruby-lang
<roadkith> dominikh: i guess i dont know enough details to file a bug
<roadkith> precisly point where/what/why/suggest fix
<shevy> just report that you found a bug
<shevy> if you did that is
<roadkith> shevy: yeah i wouldnt know if i did :D
<shevy> it could be a feature
<shevy> :>
<imperator> 1.6.3? they're up to 1.6.7 now
<roadkith> who knows
<shevy> oh
<roadkith> imperator: yeah i'll upgrade and see what happens
<shevy> yeah I suppose they dont want to maintain old versions
ConstantineXVI has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
<dominikh> shevy: do you even have a clue what you're talking about?
<shevy> dominikh yeah. ur mom
<dominikh> how do you "mantain old versions" without releasing new versions
<shevy> and is this question of importance to you dominikh?
<dominikh> god, you're still the same pathetic loser you used to be.
<shevy> less than your mom
<imperator> settle down kids
ascarter has joined #ruby-lang
ascarter has joined #ruby-lang
<roadkith> same with 1.6.7
<dominikh> roadkith: well, the bug is that their String#encode! doesn't handle the case where the first and only argument is the hash of options
<dominikh> that is what you can report.
jaisoares has joined #ruby-lang
jaisoares has joined #ruby-lang
<roadkith> dominikh: mind if i reference you? :D
<roadkith> reder to
<roadkith> refer to
<dominikh> feel free to.
<dominikh> after all it's my library that doesn't work on jruby :P
<roadkith> oh okay :D
rayners has joined #ruby-lang
rayners has joined #ruby-lang
<dominikh> feel free to link me to the bug, too, so I can concretize it just in case.
<roadkith> dominikh: i pasted it to their channel
<roadkith> will google if i can write a ticket too
<dominikh> yeah, irc is not how you report bugs to a big project :P
<roadkith> yeah i thought maybe someone there will be merciful and open a ticket for me :P
<roadkith> so i wont have to google, read up, etc on how to open a ticket with jruby :D
<imperator> roadkith, it's really not a big deal to report a bug; no one will bite :)
<roadkith> imperator: so says you... :D
<dominikh> you go to their bugtracker and open a ticket :P
<imperator> although, it does require a jira account, but it's free, so...
<dominikh> I've done it before. funnily enough because of Encoding issues, too
* imperator has over 100
<imperator> i think i should get a prize
bryancp has joined #ruby-lang
bryancp has joined #ruby-lang
zerdman has joined #ruby-lang
zerdman has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
<mistym> ChanServ message could use updating.
kek1 has joined #ruby-lang
kek1 has joined #ruby-lang
outoftime has joined #ruby-lang
outoftime has joined #ruby-lang
jaisoares has quit [#ruby-lang]
jaisoares has quit [#ruby-lang]
ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
<imperator> mistym, done
<mistym> imperator: Awesome!
<dominikh> didn't even know he had +o :>
Ksec has joined #ruby-lang
Ksec has joined #ruby-lang
<Ksec> Testing
<roadkith> dominikh: shamelessly stole your bug description: http://jira.codehaus.org/browse/JRUBY-6510
<roadkith> i filed my first ever bug report
<imperator> Ksec, hello, this is internet
<roadkith> now i need to get a new passport and hit the road
<dominikh> roadkith: haha, with a title that makes you look like an arse :>
<roadkith> dominikh: damn... too harsh?
<dominikh> roadkith: when I say that it's not implemented correctly, that's because I am bold and grumpy. when someone reports a bug and says "x not correctly implemented", that sounds quite harsh
<roadkith> dominikh: dude... you could have told me...
<roadkith> geez
<roadkith> now i will get flamed to death
<imperator> relax, it will be fine
<roadkith> :P
<dominikh> :D
<Ksec> Are there any thing done in Ruby 2.0 to prevent this?? http://twitpic.com/7fcx1n
indstry has joined #ruby-lang
indstry has joined #ruby-lang
<shevy> jira should learn from github issue reporting. Those are a lot of fun to use.
<dominikh> oh god, not that one again :D
<shevy> Ksec how would you go about preventing this?
darkf has joined #ruby-lang
darkf has joined #ruby-lang
csherin has joined #ruby-lang
csherin has joined #ruby-lang
m3nd3s has joined #ruby-lang
m3nd3s has joined #ruby-lang
<mistym> judofyr: I loved lolcode's implementation.
<imperator> Ksec, my "solution" is to use {} instead of do/end on occasion :)
<mistym> kthxxxxxxbye
<imperator> mistym, hm?
<shevy> it's lolcode
<mistym> imperator: lolcode's implementation of "ennnnnnd"
<shevy> ennnnnd is lol too but not so amusing
<imperator> oic
headius has joined #ruby-lang
headius has joined #ruby-lang
<andrewvos> shevy: If you agree with ennnd I'm going to /ignore you
<shevy> I think I count "end" faster than the "n" in there
<pbjorklund> Whats a good way to check *params == nil when forwarding it? Like https://gist.github.com/1933335 but … right?
<imperator> coincidentally, i was just going to ask how to start jirb in 1.9 mode...
<shevy> andrewvos, of course I don't. It is a joke suggestions after all.
<shevy> but I concur that several "end" can be annoying
<andrewvos> hehe
<andrewvos> yeah true
<judofyr> pbjorklund: params.empty?
<judofyr> pbjorklund: ehm, or wait
<judofyr> pbjorklund: you don't need the if
<imperator> pbjorklund, first concern: you're using .send
<judofyr> pbjorklund: just do "@client.send method, *params"
<shevy> hehe
<imperator> pbjorklund, second concern: @client#method should be able to deal with nil params, so you shouldn't have to worry about it
<shevy> combine method_missing with send!
slyphon has joined #ruby-lang
slyphon has joined #ruby-lang
<shevy> or was it missing_method ...
* imperator waves to headius, slyphon
<headius> hi there
<slyphon> hai!
<slyphon> headius: hey, did the whole rubygems integration thing ever get sorted out?
<shevy> oh roadkith is no longer here :(
<judofyr> pbjorklund: when you use *params it will *always* be an Array
<headius> slyphon: which thing are you referring to?
<slyphon> er
<slyphon> maven integration?
<slyphon> the "No, no, it's *metadata*" issue
<pbjorklund> imperator: Don't know whats wrong with send, care to share? :)
<pbjorklund> judofyr: Thanks, didn't realize that
<slyphon> pbjorklund: it usually means you're touching an object in inappropriate ways
<imperator> pbjorklund, why are you calling @client.send method instead of @client.method ?
<judofyr> imperator: because method is a paramter
<judofyr> parameter*
<imperator> oic
jeffmoss has joined #ruby-lang
jeffmoss has joined #ruby-lang
havenn has joined #ruby-lang
havenn has joined #ruby-lang
srbaker has joined #ruby-lang
srbaker has joined #ruby-lang
<imperator> jruby --1.9 -S jirb :)
<headius> slyphon: yeah, they ultimately just opened up rubyforge to external deps
<slyphon> oh
<headius> if you install "cloby" gem now it will also pull clojure from maven at the same time
<headius> but we need to clean it up and make it official in 1.7
<slyphon> sweet!
<imperator> interesting
<slyphon> now i can stop abusing gems
* slyphon looks this way and that to make sure drbrain isn't watching
<imperator> using extconf.rb files inappropriately again, eh slyphon?
<slyphon> X-/
<slyphon> shhh!
<slyphon> not so loud...
<slyphon> well, that and wrapping .jar files
ascarter has joined #ruby-lang
ascarter has joined #ruby-lang
<headius> yeah, it's obviously not great if everyone's pushing their own wrappers :)
<Ksec> i am sorry for the late reply, just reading that VERY log bug issue. I have absolute no idea how to prevent endless end, And some of my thought were already presented in the discussion on the bug listing.
<slyphon> totally
<slyphon> if only those java pricks would be more considerate to the jruby community and push *official* wrappers!
<headius> hah yes :)
<headius> we just need to get rubygems synced up with maven central!
<slyphon> well...let's not go crazy now
banseljaj has joined #ruby-lang
banseljaj has joined #ruby-lang
<rippa> end(3)
<rippa> ful retard
<rippa> *ll
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
slimfit has joined #ruby-lang
slimfit has joined #ruby-lang
l0st1 has joined #ruby-lang
l0st1 has joined #ruby-lang
skryking has joined #ruby-lang
skryking has joined #ruby-lang
malev_ has joined #ruby-lang
malev_ has joined #ruby-lang
fayimora has joined #ruby-lang
fayimora has joined #ruby-lang
ben has joined #ruby-lang
ben has joined #ruby-lang
savage- has joined #ruby-lang
savage- has joined #ruby-lang
apeiros_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
nark-1 has joined #ruby-lang
nark-1 has joined #ruby-lang
ankurgel has joined #ruby-lang
ankurgel has joined #ruby-lang
<darix> slyphon: it cant be worse people abusing rubygems to install system libraries for other gems (libv8 gem e.g.)
<slyphon> it can't be worse?
<slyphon> i mean, i do it for zookeeper
<slyphon> i inherited that though
<whitequark> darix: that's not rubygems abuse (through it may be substance abuse; I don't care)
<slyphon> it's a trade-off
<whitequark> therubyracer _must_ be linked against a very particular build # of libv8
<whitequark> and it _must_ be compiled against a very certain minor version of libv8
<whitequark> because of API/ABI wreckage in libv8
<whitequark> you can't expect all versions of %distronamehere% to include API-compatible libv8's.
<whitequark> err, and you could provide the source within the gem...
<darix> whitequark: it is. if the libv8 guys would get their soversions right... you dont need to care about that. also the "link against a certain minor version" is an solved issue (hello pkgconfig)
<whitequark> if only it would not compile for ages.
<whitequark> darix: the problem is that if you need to have version 3.5.8 exactly to build against, because API in .7 and .9 is different
<whitequark> you can't reasonably expect it to build on any major number of systems
<whitequark> and you wouldn't want to try to turn your code to a horrible #ifdef-mess
<whitequark> and you can't use FFI due to C++ templates
<darix> whitequark: and when will rubyracer upgrade to the new apis? givn that newer version might also incorporate security fixes?
ryanf has joined #ruby-lang
ryanf has joined #ruby-lang
<whitequark> darix: with the current scheme, they can do it whenever they want
<darix> whitequark: that doesnt solve the security issue problem.
<imperator> i remember that perl libraries with external deps would use an interactive command line interface
<imperator> that seemed the friendly thing to do
<whitequark> darix: because therubyracer authors now need to track security fixes in libv8?
<imperator> "you need this library - mind if I grab it and install it for you?"
<darix> whitequark: if they come at the cost of upgrading to a newer api, yes
<darix> because rubyracer hardlocks you on that particular version
<whitequark> darix: well, suppose that TRR uses the OS pkg management system now
<whitequark> 5% of the OSes have the "right" version, it updates with security fixes and everything's good
<whitequark> 95% of other installs use some horribly outdated and untrusted PPA
<whitequark> unmaintained at all
<whitequark> got the idea? that way it's only worse.
<whitequark> and yes, the split is huge. at least consider that most dev's machines would run a testing (Debian) or latest (Ubuntu) version of OS
<darix> whitequark: for the core distro packages the distributor will provide backports, for broken ppas the admin is responsible to monitor it
<whitequark> and their respective servers would be on stable (Debian) or LTS (Ubuntu)
<whitequark> they have incompatible v8's. I have checked
<whitequark> darix: you're an idealist
<whitequark> in an ideal world, that'd be true
<whitequark> this IS NOT true.
<whitequark> the PPA author does't give a fuck.
<darix> whitequark: well ... i know how i work. :)
<whitequark> darix: huh?
<darix> whitequark: i am package maintainer and admin.
<dominikh> tbuehlmann: are you still working on Ponder?
<darix> moin dominikh
<whitequark> yes, and that's why _your_ system is set up The Right Way
<dominikh> darix: hi.
<whitequark> darix: most other systems aren't. the libv8 gemhack is actually the best realistically possible solution here.
<tbuehlmann> dominikh, um, not at the moment at least
<dominikh> tbuehlmann: alright
<tbuehlmann> why?
slyphon has joined #ruby-lang
slyphon has joined #ruby-lang
<dominikh> tbuehlmann: I'm updating a comparison table of irc frameworks, one of the fields is "active development"
<darix> whitequark: the downside of the whole "oh lets start putting libs intree or abusing rubygems to install them, that now more people ask "i am too lazy to install the library for my gem manually. please put it intree"
<darix> whitequark: also intree libraries can get you extra fun when 2 gems ship the same library intree in 2 versions
<tbuehlmann> ah, I see. yea, no active development at the moment
<dominikh> alright
<darix> nice random crashes
<tbuehlmann> hit me with that comparison when it's done
<whitequark> darix: you're right. intree libraries are evil, and so is libv8
<dominikh> will do
<whitequark> darix: but there are not that many libs with such incredibly unstable api/abi
<darix> can we hit tbuehlmann without a comparison too?
<whitequark> darix: I'm not able to name a second one, for example.
<darix> whitequark: many multimedia libs
<darix> linux kernel
<whitequark> erm
<whitequark> I meant the ones which could be useful as gem dependencies
<whitequark> the kernel certainly has a very stable API/ABI.
<whitequark> for userspace, that is.
<darix> to the userspace maybe. drivers is a totally different beast :)
<whitequark> how many gems you seen contain linux drivers?
<darix> whitequark: hopefully none :D
<darix> i was just thinking about libs and stuff with unstable apis :)
<whitequark> well, not each lib is libv8
<whitequark> multimedia ones are mostly C
<whitequark> you can use FFI
<whitequark> you can, for example, catch exceptions or import libwhatever_version() and switch your imports against it or whatever
ConstantineXVI has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
knu has joined #ruby-lang
knu has joined #ruby-lang
butchanton has joined #ruby-lang
butchanton has joined #ruby-lang
setmeaway has joined #ruby-lang
setmeaway has joined #ruby-lang
<outoftime> is there a clever way to do a list comprehension over multiple input lists in ruby? here's my non-clever example for two input lists: http://pastie.org/3481523
paul0 has joined #ruby-lang
paul0 has joined #ruby-lang
<Kuukunen> outoftime: well, you could do like.... http://pastie.org/3481573
<Kuukunen> or something
<Kuukunen> nowait
<outoftime> Kuukunen: the problem there is that #zip only calls the block on elements with the same index
<Kuukunen> you meant all configurations? :P
<outoftime> Kuukunen: right
<Kuukunen> outoftime: well, I think that's clever enough :P
<outoftime> Kuukunen: fair enough : )
<outoftime> just wasn't sure if there was a built-in I was unaware of
<outoftime> also mildly curious as to how one might implement it for an arbitrary # of inputs lists -- will have to give that more thought
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ben has joined #ruby-lang
ben has joined #ruby-lang
<Kuukunen> outoftime: ah now I remember
<dominikh> tbuehlmann: the table: http://cinchrb.org/about – it kind of turned out more pathetic than hoped
<Kuukunen> outoftime: http://pastie.org/3481573
<outoftime> Kuukunen: yes!!
<Kuukunen> outoftime: works for more than two lists too
<outoftime> Kuukunen: yes yes yes. exactly what I was looking for. thanks!
<Kuukunen> outoftime: of course you're gonna have combinatorial explosion pretty quickly, but...
<outoftime> Kuukunen: no worries, in practice this is only two collections, both of which will have a small number of elements
H2H has joined #ruby-lang
H2H has joined #ruby-lang
<outoftime> Kuukunen: even better, by the way, to skip the #each -- #product yields the tuples if given a block
<Kuukunen> well, yea
<outoftime> wonderful. code prettier. thanks!
<outoftime> boo, #product doesn't work on Set instances
<outoftime> oh, I guess that makes sense.
rob_ has joined #ruby-lang
rob_ has joined #ruby-lang
daglees has joined #ruby-lang
daglees has joined #ruby-lang
daglees has joined #ruby-lang
daglees has joined #ruby-lang
airstream66 has joined #ruby-lang
airstream66 has joined #ruby-lang
<rob_> hi, do you use 'require' to include another bit of ruby code inline?
Heimidal has joined #ruby-lang
Heimidal has joined #ruby-lang
<yorickpeterse> It's not loaded inline as is done with say, PHP
<rob_> is there a way to load inline?
<yorickpeterse> It's loaded and evaluated, it's not injected into the file calling it
<yorickpeterse> What exactly are you trying to achieve?
<rob_> im using sinatra and writing an extension, i want the plugin init script to have the module stuff in it then require a routes.rb and helpers.rb into the relavent places
<tbuehlmann> dominikh, nice overview! I assume you want cinch to stay threaded?
<yorickpeterse> There's no real way of "injecting" code into another file, that's simply not how require() works
<yorickpeterse> and it's a bad idea anyway
<dominikh> tbuehlmann: definitely, yes.
<yorickpeterse> Just make sure it's loaded before you need it and you're good to go
<yorickpeterse> The usual thing people do is putting their require() calls at the top of a file
<rob_> yorickpeterse: ok, i'll avoid doing it then, thanks :)
burgestrand has joined #ruby-lang
burgestrand has joined #ruby-lang
<yorickpeterse> np
<yorickpeterse> dominikh: What was the motivation for threads in Cinch? The GIL makes it somewhat useless unless you're on jruby
<dominikh> yorickpeterse: uh, IO in 1.9 threads isn't as bad as in 1.8, so the GIL doesn't hurt there.
<yorickpeterse> True, but there still can only be one true thread :)
<dominikh> yorickpeterse: yeah, but it's an irc bot, not something that tries to compute Pi as efficiently as possible. The motivation for threads was the resulting API
rob_ has quit [#ruby-lang]
rob_ has quit [#ruby-lang]
<yorickpeterse> dominikh: fair enough
ben has joined #ruby-lang
ben has joined #ruby-lang
<dominikh> yorickpeterse: considering that common bot tasks are scraping websites or similar tasks, it's easiest to just have threads instead of trusting the user with managing thread pools
<yorickpeterse> Good point
zerokarmaleft has joined #ruby-lang
zerokarmaleft has joined #ruby-lang
skipper has joined #ruby-lang
skipper has joined #ruby-lang
airstream66 has quit [#ruby-lang]
airstream66 has quit [#ruby-lang]
amerine has joined #ruby-lang
amerine has joined #ruby-lang
mrsolo has joined #ruby-lang
mrsolo has joined #ruby-lang
malev has joined #ruby-lang
malev has joined #ruby-lang
achiu has joined #ruby-lang
achiu has joined #ruby-lang
m3nd3s has joined #ruby-lang
m3nd3s has joined #ruby-lang
francisfish has joined #ruby-lang
francisfish has joined #ruby-lang
skipper has joined #ruby-lang
skipper has joined #ruby-lang
rob_ has joined #ruby-lang
rob_ has joined #ruby-lang
<rob_> how do you convert an int to a symbol?
<rob_> i want to do a loop on some ints and then use them as keys in a hash..
<yxhuvud> uh, why make them to symbols for that?
<chris2> oO
<rob_> just thought it'd be nicer
<dominikh> you thought wrong.
<dominikh> (for your amusement, internally, symbols are ints)
<chris2> you can just use ints as keys
<chris2> dominikh: were
<rob_> dominikh: ah thanks :)
<dominikh> darn!
<rob_> oh
<dominikh> why can't people stop obsoleting my knowledge?
cjs226 has joined #ruby-lang
cjs226 has joined #ruby-lang
<chris2> dominikh: in 1.9 INT2SYM is gone iirc
<yxhuvud> Reminds me of the other day when I got bit by that Integer(:sym) doesn't give the same result as Integer("sym")
<rob_> im just used to using symbols as keys .. in this instance it's for a calendar so it makes sense to use symbols..
<chris2> if your keys are numbers, just use numbers :P
<chris2> why make them symbols?
amerine has joined #ruby-lang
amerine has joined #ruby-lang
<dominikh> considering it's a calendar, even arrays could make sense :P
<chris2> yes
<yxhuvud> if you really really want symbols, use :april oslt.
<rob_> good point
<rob_> about arrays
wmoxam has joined #ruby-lang
wmoxam has joined #ruby-lang
willdrew has joined #ruby-lang
willdrew has joined #ruby-lang
crudson has joined #ruby-lang
crudson has joined #ruby-lang
setmeaway2 has joined #ruby-lang
setmeaway2 has joined #ruby-lang
andrewhl has joined #ruby-lang
andrewhl has joined #ruby-lang
Tomtheun has joined #ruby-lang
Tomtheun has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
headius has joined #ruby-lang
headius has joined #ruby-lang
bosie has joined #ruby-lang
bosie has joined #ruby-lang
coreydaley has joined #ruby-lang
coreydaley has joined #ruby-lang
pogopolice has joined #ruby-lang
pogopolice has joined #ruby-lang
the_ace has joined #ruby-lang
the_ace has joined #ruby-lang
the_ace has quit [#ruby-lang]
the_ace has quit [#ruby-lang]
brianpWins has joined #ruby-lang
brianpWins has joined #ruby-lang
Tomtheun has joined #ruby-lang
Tomtheun has joined #ruby-lang
twittard has joined #ruby-lang
twittard has joined #ruby-lang
<rob_> thanks all
rob_ has quit [#ruby-lang]
rob_ has quit [#ruby-lang]
fayimora has joined #ruby-lang
fayimora has joined #ruby-lang
<shevy> Is there an easier way to define dynamic methods rather than use class_eval like here? http://pastie.org/3482177
mikeric has joined #ruby-lang
mikeric has joined #ruby-lang
qpingu has joined #ruby-lang
qpingu has joined #ruby-lang
<whitequark> shevy: you pervert
<whitequark> why do you want _that_?!
<shevy> whitequark in a class for every existing hash key, a reader method should exist
<whitequark> I think you want either define_singleton_method on the instance or method_missing on the instance, depending on how fast do you need that
<whitequark> I'd start with method_missing
<whitequark> define_method defines a method on all classes in existence
<whitequark> a) it is VERY SLOW
<whitequark> b) it is VERY WRONG
<manveru> whitequark: he wants OpenStruct
<whitequark> manveru: yeah, I know what OpenStruct is
delinquentme has joined #ruby-lang
delinquentme has joined #ruby-lang
<manveru> and i've long ago given up telling shevy what i think of his ideas
<shevy> provide an alternative?
<whitequark> shevy: you've been said: OpenStruct
<whitequark> it is exactly what you want.
<TTilus> whitequark: is define_method slower than define_singleton_method?
<shevy> well openstruct gives me setters too
<manveru> eval is faster than either
<manveru> but not eval with a block
<whitequark> TTilus: depends on your impl. but define_method will drop VM caches on each instance, and define_singleton_method may only drop VM caches on this particular instance, if you're lucky
<TTilus> whitequark: ah, now i get it, makes sense
<whitequark> manveru: do you mean that define_(singleton_)?method still makes a closure and whatnot
<manveru> whitequark: yeah
<whitequark> and with eval you can use attr_reader which hopefully has an accelerated implementation?
<manveru> no
<manveru> you can use attr_reader with __send__ anyway
<manveru> but that won't access the hash
<whitequark> oh, yes
<whitequark> hm.
<whitequark> I've seen evals with strings all over the place in Rails
<tbuehlmann> dominikh, isaac is EM based now, isn't it?
savage- has joined #ruby-lang
savage- has joined #ruby-lang
workmad3 has joined #ruby-lang
workmad3 has joined #ruby-lang
<hagabaka> shevy: method_missing then
<dominikh> tbuehlmann: hm yeah, kinda. they never released a new gem and the implementation seemed rather bogus from what I could tell
<shevy> hagabaka hmm
<tbuehlmann> ah, ok
<dominikh> I'm not 100% positive on the bogus part though
<shevy> omg
<manveru> maybe pass __LINE__ to eval too, makes for happier debugging
<shevy> hagabaka what irks me with method_missing is that I have the array of method names
<shevy> but method_missing gets called any time there is an unknown method
coreydaley has joined #ruby-lang
coreydaley has joined #ruby-lang
<manveru> oh
<manveru> so you do know all beforehand?
<shevy> yeah
<shevy> defined in a small yaml file
<shevy> but I will make use of your suggestion and look to openstruct :)
<manveru> well then :)
<whitequark> manveru: https://gist.github.com/1934508
<shevy> hmm well it's clean and short
<manveru> Struct actually works for that too, but you don't want writers
<manveru> whitequark: aye
<shevy> kk
<whitequark> it's not significantly slower
<shevy> thanks manveru
<hagabaka> doesn't openstruct use method_missing?
<manveru> hagabaka: yes
<manveru> whitequark: it used to be 2x slower or so
<whitequark> manveru: on jruby define_method is faster.
<manveru> hehe
<whitequark> eval 0.883000 0.000000 0.883000 ( 0.884000)
<whitequark> defmeth 0.754000 0.000000 0.754000 ( 0.755000)
<whitequark> so...
<whitequark> not a valid reason anymore
<manveru> it's still slower on rbx
<manveru> ah, there's the bench i looked for
<manveru> i've collected hundreds of benchmarks over the years
<manveru> most useless, but hey :)
<skyjumper> is it possible to use String#gsub with a character other than /
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
<manveru> skyjumper: you mean regex?
<skyjumper> manveru: yeah
<manveru> you can use %r() or %r[] or %r{} or %r<> or %rrr or %r|| or %r// etc...
* skyjumper researches
<manveru> ok, actually not %rrr :)
<drbrain> Like %r%foo/bat% ?
<manveru> the meanest is still %r foo/bar
twittard has joined #ruby-lang
twittard has joined #ruby-lang
<rippa> pry breaks on it
<delinquentme> Ok so im trying to *understand* a process thats happening in rails and no such luck in #RoR ... basically there is a gem called 'haml-rails' and on running bundler its supposed to modify a file w a process shown here:
* manveru runs
<delinquentme> via what method is this actually happening
<rippa> never though about using spaces there
<rippa> that's great
<rippa> a = % foo ;
<rippa> awesome
<delinquentme> is bundler invoking rake and using that to write the file ?
pemeon has joined #ruby-lang
pemeon has joined #ruby-lang
<rippa> daayum
<rippa> manveru: a = "%s" % % foo ;
<rippa> how cool is that
Tearan has joined #ruby-lang
Tearan has joined #ruby-lang
<shevy> argh
<rippa> or even
<rippa> a = % %s % % foo ;
<drbrain> Rippa: ha!
justinxreese has joined #ruby-lang
justinxreese has joined #ruby-lang
<drbrain> I wonder if I use String#% in return_bang…
Hackula has joined #ruby-lang
Hackula has joined #ruby-lang
tekin has joined #ruby-lang
tekin has joined #ruby-lang
gix has joined #ruby-lang
gix has joined #ruby-lang
slyphon has joined #ruby-lang
slyphon has joined #ruby-lang
virunga has joined #ruby-lang
virunga has joined #ruby-lang
<erikh> hello interbutts
macmartine has joined #ruby-lang
macmartine has joined #ruby-lang
twittard has joined #ruby-lang
twittard has joined #ruby-lang
twittard_ has joined #ruby-lang
twittard_ has joined #ruby-lang
Sailias_ has joined #ruby-lang
Sailias_ has joined #ruby-lang
<whitequark> manveru: ahem
<whitequark> it's even faster on rbx for me
<whitequark> eval 0.844053 0.000000 0.844053 ( 0.843274)
<whitequark> defmeth 0.536034 0.000000 0.536034 ( 0.543801)
curtism has joined #ruby-lang
curtism has joined #ruby-lang
curtism has joined #ruby-lang
curtism has joined #ruby-lang
dustacio has joined #ruby-lang
dustacio has joined #ruby-lang
VladGh has joined #ruby-lang
VladGh has joined #ruby-lang
<whitequark> or, overall
davidw has joined #ruby-lang
davidw has joined #ruby-lang
davidw has joined #ruby-lang
davidw has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
<hagabaka> what's rbx?
<hagabaka> oh
<whitequark> rubinius
woollyams has joined #ruby-lang
woollyams has joined #ruby-lang
grough has quit [#ruby-lang]
grough has quit [#ruby-lang]
slyphon has joined #ruby-lang
slyphon has joined #ruby-lang
ilyam has joined #ruby-lang
ilyam has joined #ruby-lang
dajmon has joined #ruby-lang
dajmon has joined #ruby-lang
pw_ has joined #ruby-lang
pw_ has joined #ruby-lang
DRCALKIN has joined #ruby-lang
DRCALKIN has joined #ruby-lang
Azure has joined #ruby-lang
Azure has joined #ruby-lang
<dajmon> I am a master’s student performing research at the University of Texas at Austin School of Information. I am observing the channel as part of a study on Ruby culture (IRB Study Number 2011-12-0078). I am not collecting any identifying information. Please feel free to message me if you are interested in participating in a short interview.
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
<dajmon> You may contact James Howison, the Principal Investigator, via e-mail at %22mailto:jhowison@ischool.u or phone at (512) 232-9219 with questions, comments, or suggestions.”
<skyjumper> dajmon: i think your email address is cut off
<dajmon> grr thanks
<dajmon> file:///Applications/Adium.app/Contents/Resources/Message%20Styles/Stockholm.AdiumMessageStyle/Contents/Resources/%22mailto:jhowison@ischool.u
<dajmon> did the rest of it send at all or do i need to break it up into shorter pieces?
<manveru> :)
<erikh> stop using drag & drop. :)
<dajmon> i wasn't i just c/ped :(
<erikh> ouch.
<manveru> ischool.us
<manveru> registered in austin, looks about right
<imperator> doesn't knowing that we're being watched change our behavior? ;)
<dajmon> i don't know, you tell me :p
<dajmon> actually they made me revise my proposal to include informing everyone
<dajmon> so, you know. hi
* manveru feels a disturbance in the force
<mistym> Hey!
<manveru> dajmon: informing everyone on irc is kinda hard
<dajmon> yeah that's what i said, but they said i should at least try when i enter the channel
<mistym> And you tried, so mission accomplished!
<dajmon> anyway in case this part got off i'm also interested in doing non structured interviews so if anyone wants to participate just lemme know
<imperator> dajmon, are you a programmer as well?
<dajmon> i'm an information studies student with a little programming experience. for this study i'm actually going to be teaching myself some ruby while hanging out in here
<manveru> yay
<imperator> nice
<dajmon> the idea being that by doing so i will be getting a unique participant observation experience that hasn't really been done in a programming community before as far as i know
<dajmon> people do it with music, but no one has with a programming language as far as i've found
<manveru> yeah, people usually just call it quits after counting the number of swearing words used in ruby source files
<mistym> dajmon: Information studies, eh? What's your focus of study?
<mistym> manveru: Or heatmapping the keys different programming languages use!
<dajmon> I'm actually finishing up my master's degree here and switching to a cultural studies PhD program with a focus in digital media
<dajmon> right now my "focus" is technically digital archives and digital preservation but I'm also coauthoring an intro chapter for a book about online communities
<manveru> mistym: yeah, nothing is more important for maintaining my handmade keyboard layout :)
* imperator would love to see a study on programming languages, syntax, aesthetics and its effect on learning
<mistym> dajmon: digital archives represent!!
<dajmon> and i'm interested in how people use digital media/technology for different purposes, especially activists + "subversive" communities. ruby is pretty unique so i decided to come hang out with y'all :)
<dajmon> do you study info studies?
<imperator> me? no
<dajmon> sorry - meant mistym
<mistym> dajmon: I graduated a few years ago.
<dajmon> oh cool! did you get a job doing digital stuff?
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
<mistym> I did indeed!
<dajmon> awesome :) another of my projects is helping to revamp the archives curriculum here to include more digital stuff in the main track, so it's always good to hear positive feedback.
<mistym> That's awesome. I found when I was going through my program that the coverage of digital archival issues was really too superficial and minor, p. much tacked on to the traditional courses.
<dajmon> the problem here is sort of opposite - there are a few REALLY GOOD and in-depth digital archiving courses that most people are too terrified to take, and no coverage of digital stuff at all in the main courses
<mistym> Making people not terrified to take the specialized courses would be a nice first step.
<dajmon> right now students spend their entire archives I semester processing a traditional collection so we're hoping to cut the time spent on that and build in some canned collections of born-digital materials, and to have them install and evaluate different digital tools
<dajmon> yeah right now you basically get thrown into the deep end of a pool, you spend like 4 weeks immersed in theory and then you get handed a digital collection that is full of unknown problems and you have to solve them
<dajmon> it doesn't really have wide appeal for obvious reasons, i thought it was fun though. there was one group when i took it who ended up having the Stoned boot sector virus on all of their floppy disks
francisfish has joined #ruby-lang
francisfish has joined #ruby-lang
Faris has joined #ruby-lang
Faris has joined #ruby-lang
<mistym> Ancient floppy bootsector viruses sound like *my* idea of fun.
havenn has joined #ruby-lang
havenn has joined #ruby-lang
s0ber_ has joined #ruby-lang
s0ber_ has joined #ruby-lang
y3llow_ has joined #ruby-lang
y3llow_ has joined #ruby-lang
<dajmon> i know, right! but most people were terrified!
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
tyman_ has joined #ruby-lang
tyman_ has joined #ruby-lang
hahuang65 has joined #ruby-lang
hahuang65 has joined #ruby-lang
bradland has joined #ruby-lang
bradland has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
petercooper has joined #ruby-lang
petercooper has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
matti has joined #ruby-lang
matti has joined #ruby-lang
robbrit has quit [#ruby-lang]
robbrit has quit [#ruby-lang]
ilyam_ has joined #ruby-lang
ilyam_ has joined #ruby-lang
y3llow_ has joined #ruby-lang
y3llow_ has joined #ruby-lang
malev_ has joined #ruby-lang
malev_ has joined #ruby-lang
savage-_ has joined #ruby-lang
savage-_ has joined #ruby-lang
kain has joined #ruby-lang
kain has joined #ruby-lang
cjs226 has joined #ruby-lang
cjs226 has joined #ruby-lang
savage-_ has joined #ruby-lang
savage-_ has joined #ruby-lang
daglees__ has joined #ruby-lang
daglees__ has joined #ruby-lang
matti_ has joined #ruby-lang
matti_ has joined #ruby-lang
s0ber has joined #ruby-lang
s0ber has joined #ruby-lang
Faris has joined #ruby-lang
Faris has joined #ruby-lang
DRCALKIN has joined #ruby-lang
DRCALKIN has joined #ruby-lang
pw_ has joined #ruby-lang
pw_ has joined #ruby-lang
dajmon has joined #ruby-lang
dajmon has joined #ruby-lang
davidw has joined #ruby-lang
davidw has joined #ruby-lang
VladGh has joined #ruby-lang
VladGh has joined #ruby-lang
dustacio has joined #ruby-lang
dustacio has joined #ruby-lang
curtism has joined #ruby-lang
curtism has joined #ruby-lang
macmartine has joined #ruby-lang
macmartine has joined #ruby-lang
gix has joined #ruby-lang
gix has joined #ruby-lang
justinxreese has joined #ruby-lang
justinxreese has joined #ruby-lang
Tearan has joined #ruby-lang
Tearan has joined #ruby-lang
qpingu has joined #ruby-lang
qpingu has joined #ruby-lang
Tomtheun has joined #ruby-lang
Tomtheun has joined #ruby-lang
andrewhl has joined #ruby-lang
andrewhl has joined #ruby-lang
wmoxam has joined #ruby-lang
wmoxam has joined #ruby-lang
burgestrand has joined #ruby-lang
burgestrand has joined #ruby-lang
Heimidal has joined #ruby-lang
Heimidal has joined #ruby-lang
H2H has joined #ruby-lang
H2H has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
butchanton has joined #ruby-lang
butchanton has joined #ruby-lang
knu has joined #ruby-lang
knu has joined #ruby-lang
apeiros_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
slimfit has joined #ruby-lang
slimfit has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has joined #ruby-lang
darkf has joined #ruby-lang
darkf has joined #ruby-lang
outoftime has joined #ruby-lang
outoftime has joined #ruby-lang
bryancp has joined #ruby-lang
bryancp has joined #ruby-lang
benteaa has joined #ruby-lang
benteaa has joined #ruby-lang
Tick-Tock has joined #ruby-lang
Tick-Tock has joined #ruby-lang
fireglow has joined #ruby-lang
fireglow has joined #ruby-lang
dju has joined #ruby-lang
dju has joined #ruby-lang
spectra has joined #ruby-lang
spectra has joined #ruby-lang
cyndis has joined #ruby-lang
cyndis has joined #ruby-lang
cschneid has joined #ruby-lang
cschneid has joined #ruby-lang
gregmoreno has joined #ruby-lang
gregmoreno has joined #ruby-lang
segy has joined #ruby-lang
segy has joined #ruby-lang
hibariya has joined #ruby-lang
hibariya has joined #ruby-lang
yango has joined #ruby-lang
yango has joined #ruby-lang
frangiz has joined #ruby-lang
frangiz has joined #ruby-lang
Silex has joined #ruby-lang
Silex has joined #ruby-lang
lake has joined #ruby-lang
lake has joined #ruby-lang
wyhaines has joined #ruby-lang
wyhaines has joined #ruby-lang
kitallis has joined #ruby-lang
kitallis has joined #ruby-lang
enebo has joined #ruby-lang
enebo has joined #ruby-lang
dejongge has joined #ruby-lang
dejongge has joined #ruby-lang
mssola has joined #ruby-lang
mssola has joined #ruby-lang
tbuehlmann has joined #ruby-lang
tbuehlmann has joined #ruby-lang
Indian has joined #ruby-lang
Indian has joined #ruby-lang
publicvoid__ has joined #ruby-lang
publicvoid__ has joined #ruby-lang
meise has joined #ruby-lang
meise has joined #ruby-lang
justinmcp has joined #ruby-lang
justinmcp has joined #ruby-lang
deryldoucette has joined #ruby-lang
deryldoucette has joined #ruby-lang
heftig has joined #ruby-lang
heftig has joined #ruby-lang
chendo_ has joined #ruby-lang
chendo_ has joined #ruby-lang
vmoravec has joined #ruby-lang
vmoravec has joined #ruby-lang
uniqanomaly has joined #ruby-lang
uniqanomaly has joined #ruby-lang
tla has joined #ruby-lang
tla has joined #ruby-lang
yxhuvud has joined #ruby-lang
yxhuvud has joined #ruby-lang
x0F_ has joined #ruby-lang
x0F_ has joined #ruby-lang
aza_kibou has joined #ruby-lang
aza_kibou has joined #ruby-lang
gentz has joined #ruby-lang
gentz has joined #ruby-lang
gianlucadv has joined #ruby-lang
gianlucadv has joined #ruby-lang
shtirlic has joined #ruby-lang
shtirlic has joined #ruby-lang
zounese has joined #ruby-lang
zounese has joined #ruby-lang
imperator has joined #ruby-lang
imperator has joined #ruby-lang
solars has joined #ruby-lang
solars has joined #ruby-lang
minsa has joined #ruby-lang
minsa has joined #ruby-lang
gregf has joined #ruby-lang
gregf has joined #ruby-lang
nazty has joined #ruby-lang
nazty has joined #ruby-lang
hexo has joined #ruby-lang
hexo has joined #ruby-lang
tommyvyo has joined #ruby-lang
tommyvyo has joined #ruby-lang
shevy has joined #ruby-lang
shevy has joined #ruby-lang
skyjumper has joined #ruby-lang
skyjumper has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
hagabaka has joined #ruby-lang
dbussink has joined #ruby-lang
hagabaka has joined #ruby-lang
dbussink has joined #ruby-lang
nacengineer has joined #ruby-lang
nacengineer has joined #ruby-lang
lele|w has joined #ruby-lang
lele|w has joined #ruby-lang
sj26 has joined #ruby-lang
sj26 has joined #ruby-lang
SubSpawn has joined #ruby-lang
SubSpawn has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
denysonique__ has joined #ruby-lang
denysonique__ has joined #ruby-lang
nuclearsandwich has joined #ruby-lang
nuclearsandwich has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
rue has joined #ruby-lang
rue has joined #ruby-lang
jordan` has joined #ruby-lang
jordan` has joined #ruby-lang
retro|cz has joined #ruby-lang
retro|cz has joined #ruby-lang
drbrain has joined #ruby-lang
drbrain has joined #ruby-lang
spuk has joined #ruby-lang
spuk has joined #ruby-lang
felideon has joined #ruby-lang
felideon has joined #ruby-lang
simon_weber has joined #ruby-lang
simon_weber has joined #ruby-lang
codelol has joined #ruby-lang
codelol has joined #ruby-lang
timbleck has joined #ruby-lang
timbleck has joined #ruby-lang
cldwalker has joined #ruby-lang
cldwalker has joined #ruby-lang
pvh has joined #ruby-lang
pvh has joined #ruby-lang
muzone_ has joined #ruby-lang
muzone_ has joined #ruby-lang
jbsan has joined #ruby-lang
jbsan has joined #ruby-lang
shyouhei_ has joined #ruby-lang
shyouhei_ has joined #ruby-lang
futurechimp has joined #ruby-lang
futurechimp has joined #ruby-lang
ramonmaruko has joined #ruby-lang
ramonmaruko has joined #ruby-lang
kith has joined #ruby-lang
kith has joined #ruby-lang
samuelk|away has joined #ruby-lang
samuelk|away has joined #ruby-lang
dreinull has joined #ruby-lang
dreinull has joined #ruby-lang
whitequark has joined #ruby-lang
whitequark has joined #ruby-lang
hackeron has joined #ruby-lang
hackeron has joined #ruby-lang
Aaaarg has joined #ruby-lang
Aaaarg has joined #ruby-lang
agilob has joined #ruby-lang
agilob has joined #ruby-lang
cynosure has joined #ruby-lang
cynosure has joined #ruby-lang
_br_ has joined #ruby-lang
_br_ has joined #ruby-lang
tomb has joined #ruby-lang
tomb has joined #ruby-lang
jarib has joined #ruby-lang
jarib has joined #ruby-lang
werwolf has joined #ruby-lang
werwolf has joined #ruby-lang
dominikh has joined #ruby-lang
dominikh has joined #ruby-lang
znouza has joined #ruby-lang
znouza has joined #ruby-lang
mika has joined #ruby-lang
mika has joined #ruby-lang
turboladen has joined #ruby-lang
turboladen has joined #ruby-lang
Caius has joined #ruby-lang
Caius has joined #ruby-lang
Oloryn_lt1 has joined #ruby-lang
Oloryn_lt1 has joined #ruby-lang
Foxmaster has joined #ruby-lang
Foxmaster has joined #ruby-lang
mtkd has joined #ruby-lang
mtkd has joined #ruby-lang
ged has joined #ruby-lang
ged has joined #ruby-lang
rtl has joined #ruby-lang
rtl has joined #ruby-lang
rhizmoe has joined #ruby-lang
rhizmoe has joined #ruby-lang
jammi has joined #ruby-lang
jammi has joined #ruby-lang
t0h has joined #ruby-lang
t0h has joined #ruby-lang
dvorak_ has joined #ruby-lang
dvorak_ has joined #ruby-lang
bougyman has joined #ruby-lang
bougyman has joined #ruby-lang
dRbiG has joined #ruby-lang
dRbiG has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
gate has joined #ruby-lang
gate has joined #ruby-lang
Natch| has joined #ruby-lang
Natch| has joined #ruby-lang
eydaimon has joined #ruby-lang
eydaimon has joined #ruby-lang
shajith has joined #ruby-lang
shajith has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
Nisstyre has joined #ruby-lang
Nisstyre has joined #ruby-lang
singpolyma has joined #ruby-lang
singpolyma has joined #ruby-lang
topaz has joined #ruby-lang
topaz has joined #ruby-lang
Muz has joined #ruby-lang
Muz has joined #ruby-lang
imajes has joined #ruby-lang
imajes has joined #ruby-lang
vereteran has joined #ruby-lang
vereteran has joined #ruby-lang
schlecht has joined #ruby-lang
schlecht has joined #ruby-lang
melter has joined #ruby-lang
melter has joined #ruby-lang
dhruvasagar has joined #ruby-lang
dhruvasagar has joined #ruby-lang
erikh has joined #ruby-lang
erikh has joined #ruby-lang
wilkie has joined #ruby-lang
wilkie has joined #ruby-lang
ChloeD has joined #ruby-lang
ChloeD has joined #ruby-lang
piglop has joined #ruby-lang
piglop has joined #ruby-lang
Rabbitt has joined #ruby-lang
Rabbitt has joined #ruby-lang
aef has joined #ruby-lang
aef has joined #ruby-lang
joschi has joined #ruby-lang
joschi has joined #ruby-lang
Kero has joined #ruby-lang
Kero has joined #ruby-lang
basicxman has joined #ruby-lang
basicxman has joined #ruby-lang
zenspider has joined #ruby-lang
zenspider has joined #ruby-lang
pabs has joined #ruby-lang
pabs has joined #ruby-lang
unsymbol has joined #ruby-lang
unsymbol has joined #ruby-lang
indeterminate has joined #ruby-lang
indeterminate has joined #ruby-lang
andman has joined #ruby-lang
andman has joined #ruby-lang
hachiya has joined #ruby-lang
hachiya has joined #ruby-lang
tpope has joined #ruby-lang
tpope has joined #ruby-lang
ReinH has joined #ruby-lang
ReinH has joined #ruby-lang
floyd2_ has joined #ruby-lang
floyd2_ has joined #ruby-lang
threeday1onk has joined #ruby-lang
threeday1onk has joined #ruby-lang
klarrimore has joined #ruby-lang
klarrimore has joined #ruby-lang
chris2 has joined #ruby-lang
chris2 has joined #ruby-lang
flebel has joined #ruby-lang
flebel has joined #ruby-lang
Aengus has joined #ruby-lang
Aengus has joined #ruby-lang
stepnem has joined #ruby-lang
stepnem has joined #ruby-lang
bryanl has joined #ruby-lang
bryanl has joined #ruby-lang
musl has joined #ruby-lang
musl has joined #ruby-lang
neurodamage has joined #ruby-lang
neurodamage has joined #ruby-lang
Pcboy____ has joined #ruby-lang
Pcboy____ has joined #ruby-lang
FastJack has joined #ruby-lang
FastJack has joined #ruby-lang
stderr- has joined #ruby-lang
stderr- has joined #ruby-lang
corundum has joined #ruby-lang
corundum has joined #ruby-lang
khaase has joined #ruby-lang
khaase has joined #ruby-lang
mlangenberg has joined #ruby-lang
mlangenberg has joined #ruby-lang
masterkorp has joined #ruby-lang
masterkorp has joined #ruby-lang
jstemmer has joined #ruby-lang
jstemmer has joined #ruby-lang
corsican has joined #ruby-lang
corsican has joined #ruby-lang
[dmp] has joined #ruby-lang
[dmp] has joined #ruby-lang
bryno has joined #ruby-lang
bryno has joined #ruby-lang
tty234 has joined #ruby-lang
tty234 has joined #ruby-lang
kalleth has joined #ruby-lang
kalleth has joined #ruby-lang
cronin101 has joined #ruby-lang
cronin101 has joined #ruby-lang
tris has joined #ruby-lang
tris has joined #ruby-lang
yeltzooo has joined #ruby-lang
yeltzooo has joined #ruby-lang
eban has joined #ruby-lang
eban has joined #ruby-lang
jimmy has joined #ruby-lang
jimmy has joined #ruby-lang
hrnt has joined #ruby-lang
hrnt has joined #ruby-lang
mqt has joined #ruby-lang
mqt has joined #ruby-lang
tommyblue has joined #ruby-lang
tommyblue has joined #ruby-lang
josh9 has joined #ruby-lang
josh9 has joined #ruby-lang
jwollert has joined #ruby-lang
jwollert has joined #ruby-lang
mephux has joined #ruby-lang
mephux has joined #ruby-lang
soahccc` has joined #ruby-lang
soahccc` has joined #ruby-lang
alip has joined #ruby-lang
alip has joined #ruby-lang
LanceHaig has joined #ruby-lang
LanceHaig has joined #ruby-lang
zz_chrismcg has joined #ruby-lang
zz_chrismcg has joined #ruby-lang
epitron has joined #ruby-lang
epitron has joined #ruby-lang
Utkarsh has joined #ruby-lang
Utkarsh has joined #ruby-lang
Keltia has joined #ruby-lang
Keltia has joined #ruby-lang
jaimef has joined #ruby-lang
jaimef has joined #ruby-lang
cola_zero has joined #ruby-lang
cola_zero has joined #ruby-lang
tdmackey has joined #ruby-lang
tdmackey has joined #ruby-lang
lele has joined #ruby-lang
lele has joined #ruby-lang
Stereokitsune has joined #ruby-lang
Stereokitsune has joined #ruby-lang
JoL1hAHN has joined #ruby-lang
JoL1hAHN has joined #ruby-lang
theoros has joined #ruby-lang
theoros has joined #ruby-lang
kvs has joined #ruby-lang
kvs has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
scyrmion has joined #ruby-lang
scyrmion has joined #ruby-lang
blowmage has joined #ruby-lang
blowmage has joined #ruby-lang
injekt has joined #ruby-lang
injekt has joined #ruby-lang
darix has joined #ruby-lang
darix has joined #ruby-lang
yibe has joined #ruby-lang
yibe has joined #ruby-lang
_rane has joined #ruby-lang
_rane has joined #ruby-lang
yellow5 has joined #ruby-lang
yellow5 has joined #ruby-lang
tobiasvl has joined #ruby-lang
tobiasvl has joined #ruby-lang
adgar has joined #ruby-lang
adgar has joined #ruby-lang
tasiu has joined #ruby-lang
tasiu has joined #ruby-lang
a3li has joined #ruby-lang
valeri_ufo has joined #ruby-lang
a3li has joined #ruby-lang
valeri_ufo has joined #ruby-lang
comboy has joined #ruby-lang
comboy has joined #ruby-lang
jsaak has joined #ruby-lang
jsaak has joined #ruby-lang
dubellz has joined #ruby-lang
dubellz has joined #ruby-lang
deryl has joined #ruby-lang
deryl has joined #ruby-lang
KillerFox has joined #ruby-lang
KillerFox has joined #ruby-lang
felipe has joined #ruby-lang
felipe has joined #ruby-lang
RegEchse has joined #ruby-lang
RegEchse has joined #ruby-lang
matled has joined #ruby-lang
matled has joined #ruby-lang
ruskie has joined #ruby-lang
ruskie has joined #ruby-lang
babinho has joined #ruby-lang
babinho has joined #ruby-lang
robgough has joined #ruby-lang
robgough has joined #ruby-lang
Arsen7 has joined #ruby-lang
Arsen7 has joined #ruby-lang
Y_Ichiro has joined #ruby-lang
Y_Ichiro has joined #ruby-lang
ammar has joined #ruby-lang
ammar has joined #ruby-lang
manveru has joined #ruby-lang
manveru has joined #ruby-lang
flori has joined #ruby-lang
flori has joined #ruby-lang
nick_h has joined #ruby-lang
nick_h has joined #ruby-lang
ioga_wrk has joined #ruby-lang
ioga_wrk has joined #ruby-lang
any-key has joined #ruby-lang
any-key has joined #ruby-lang
dhoss has joined #ruby-lang
dhoss has joined #ruby-lang
bnagy has joined #ruby-lang
bnagy has joined #ruby-lang
wasnotrice has joined #ruby-lang
wasnotrice has joined #ruby-lang
ddfreyne has joined #ruby-lang
ddfreyne has joined #ruby-lang
lantins has joined #ruby-lang
lantins has joined #ruby-lang
shaman42 has joined #ruby-lang
shaman42 has joined #ruby-lang
Kuukunen has joined #ruby-lang
Kuukunen has joined #ruby-lang
Tasser has joined #ruby-lang
Tasser has joined #ruby-lang
ozzloy has joined #ruby-lang
ozzloy has joined #ruby-lang
lzhz_ has joined #ruby-lang
lzhz_ has joined #ruby-lang
lupine_85 has joined #ruby-lang
lupine_85 has joined #ruby-lang
ohsix has joined #ruby-lang
ohsix has joined #ruby-lang
fahadsadah has joined #ruby-lang
fahadsadah has joined #ruby-lang
jalljo has joined #ruby-lang
jalljo has joined #ruby-lang
theconartist has joined #ruby-lang
theconartist has joined #ruby-lang
wallerdev has joined #ruby-lang
wallerdev has joined #ruby-lang
tekin_ has joined #ruby-lang
tekin_ has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
bradland has joined #ruby-lang
bradland has joined #ruby-lang
Zolrath has joined #ruby-lang
Zolrath has joined #ruby-lang
matti has joined #ruby-lang
matti has joined #ruby-lang
matti has joined #ruby-lang
matti has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
jimmy has joined #ruby-lang
jimmy has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
Indian has joined #ruby-lang
Indian has joined #ruby-lang
Jan_ has joined #ruby-lang
Jan_ has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
workmad3 has joined #ruby-lang
workmad3 has joined #ruby-lang
matti has joined #ruby-lang
matti has joined #ruby-lang
matti has joined #ruby-lang
matti has joined #ruby-lang
Indian has joined #ruby-lang
Indian has joined #ruby-lang
Bwild has joined #ruby-lang
Bwild has joined #ruby-lang
havenn has joined #ruby-lang
havenn has joined #ruby-lang
malev has joined #ruby-lang
malev has joined #ruby-lang
lsegal has joined #ruby-lang
lsegal has joined #ruby-lang
banseljaj has joined #ruby-lang
banseljaj has joined #ruby-lang
matti has joined #ruby-lang
matti has joined #ruby-lang
banseljaj has quit ["co'o ro do"]
banseljaj has quit ["co'o ro do"]
malev_ has joined #ruby-lang
malev_ has joined #ruby-lang
matti has joined #ruby-lang
matti has joined #ruby-lang
setmeaway has joined #ruby-lang
setmeaway has joined #ruby-lang
oilpastels has joined #ruby-lang
oilpastels has joined #ruby-lang
zerdman has quit [#ruby-lang]
zerdman has quit [#ruby-lang]
<oilpastels> i read somewhere once that we should avoid method names like "get_something", "make_something" or "process_something"
<oilpastels> is this true? why? and what should we use instead?
brushbox has joined #ruby-lang
brushbox has joined #ruby-lang
alex_k has joined #ruby-lang
alex_k has joined #ruby-lang
Heimidal_ has joined #ruby-lang
Heimidal_ has joined #ruby-lang
<skyjumper> something = Something.new; something->make(); something->get()
<skyjumper> perhaps
mistym has joined #ruby-lang
mistym has joined #ruby-lang
<oilpastels> hmm coul dbe
<Mon_Ouie> get_something because the convention is to just use obj.something and obj.something = val for getters and setters
<oilpastels> that's true
WillMarshall has joined #ruby-lang
WillMarshall has joined #ruby-lang
<alex_k> so i want to learn ruby
<alex_k> and I was thinking of starting with - The Well-Grounded Rubyist book
<deryl> good choice
<alex_k> cool :)
<mistym> alex_k: Good choise of language too ;)
<mistym> Choice even.
<alex_k> thanks
gasbakid has joined #ruby-lang
gasbakid has joined #ruby-lang
<alex_k> I would like to use ruby for web development and sytem administration commandline tools
<drbrain> alex_k: rails and chef
<alex_k> i like the look of this book
Carnage\ has joined #ruby-lang
Carnage\ has joined #ruby-lang
havenn has joined #ruby-lang
havenn has joined #ruby-lang
ziq_z has joined #ruby-lang
ziq_z has joined #ruby-lang
crudson has quit [#ruby-lang]
crudson has quit [#ruby-lang]
dajmon has quit [#ruby-lang]
dajmon has quit [#ruby-lang]
Tomtheun has joined #ruby-lang
Tomtheun has joined #ruby-lang
Heimidal has joined #ruby-lang
Heimidal has joined #ruby-lang
willdrew_ has joined #ruby-lang
willdrew_ has joined #ruby-lang
slyphon_ has joined #ruby-lang
slyphon_ has joined #ruby-lang
outoftime has joined #ruby-lang
outoftime has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has joined #ruby-lang
mgraham has joined #ruby-lang
mgraham has joined #ruby-lang
m3nd3s has joined #ruby-lang
m3nd3s has joined #ruby-lang
erpuds has joined #ruby-lang
erpuds has joined #ruby-lang
H2H has joined #ruby-lang
H2H has joined #ruby-lang
srbartlett has joined #ruby-lang
srbartlett has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
fayimora has joined #ruby-lang
fayimora has joined #ruby-lang
Karmaon has joined #ruby-lang
Karmaon has joined #ruby-lang
apeiros_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
havenn has joined #ruby-lang
havenn has joined #ruby-lang
Indian has joined #ruby-lang
Indian has joined #ruby-lang
publicvoid has joined #ruby-lang
publicvoid has joined #ruby-lang
Jarred has joined #ruby-lang
Jarred has joined #ruby-lang
<Jarred> What exactly *is* a symbol?
<Jarred> It seems like it can be pretty much anything
<Jarred> but that can't be right because why is there a need for yet another generic type when we have Object?
<erikh> a symbol is an object that is both immutable and omnipresent
<erikh> go into irb
<erikh> enter ':foo.object_id' a few times
<erikh> notice how the number never changes
<erikh> then do the same with "foo".object_id
<Jarred> What's the difference between a constant and an immutable object?
<erikh> constants hold objects
<Jarred> An an immutable is just an object?
<Jarred> er
<Jarred> an immutable object is just an object
<Jarred> hmm
<erikh> right
<erikh> go do what I said in irb
<Jarred> Yeah I did
<erikh> :foo never gets recreated
<erikh> once it's created, it lingers forever and is reused every time it's referenced
<erikh> fixnums are this way too.
<Jarred> So symbols can't be dereferenced whatsoever?
<erikh> they're objects like any other.
<erikh> ri Symbol
<erikh> (they have methods, attributes, etc)
<Jarred> yeah I see
<Jarred> How do symbols as methods work though?
<Jarred> Methods don't always return the same result
<erikh> they don't.. they're used frequently to reference methods
<erikh> but they are not methods themselves. methods are objects of type Method
<Jarred> so they're more like a pointer to the method
<Jarred> *method?
<erikh> not really, more like a hash key lookup.
<drbrain> in the internals, methods have symbols for names
<Jarred> so with ActiveRecord callbacks
<Jarred> when I say :before_save
<Jarred> Is that running the 'before_save' method?
<Jarred> What does that do exactly?
<erikh> :before_save is passed to a method, no?
<Jarred> er yeah
<Jarred> That's a bad example
<Jarred> In Rake
<Jarred> I can use either symbols or strings as the name of a task
<erikh> right
<Jarred> Why are they interchangable?
<Jarred> Is it just because in that situation, a symbol is just a string?
<erikh> right. honestly? 99% of the type it's because symbols take less typing
<erikh> s/type/time
<erikh> sorry, very tired
<Jarred> lol
<erikh> using symbols where you want strings is a pretty prevalent antipattern
<drbrain> erikh: pretty much
<drbrain> and, again
<Jarred> I wonder why so many text editor color schemes change the color of symbols then (Which gives it more significance)
<erikh> well symbols are different
<Jarred> They should just have it the same color as a string
<erikh> the problem is ... right
<erikh> that line of thinking causes this problem
<erikh> they are very different beasts
<drbrain> if you've got external input you should just use Strings
<erikh> the great benefit to symbols: you only have one copy of that "string" in memory. the drawback to symbols: you always have that copy of that "String" in memory
<erikh> it never gets garbage collected
<Jarred> lol
<Jarred> yeah
<Jarred> but why are symbols used as options so often?
<erikh> for the reasons stated above
<imperator> less typing mostly :)
<erikh> ^
<Jarred> Part of me thinks it's stupid.
Joeysomo has joined #ruby-lang
Joeysomo has joined #ruby-lang
<Jarred> But less typing is valuable
<erikh> that's not an uncommon reaction
<Jarred> Why don't they just make strings easier to type
brahmana has joined #ruby-lang
brahmana has joined #ruby-lang
* imperator blames qwerty
<brahmana> Hi all
Joeysomo has joined #ruby-lang
Joeysomo has joined #ruby-lang
<erikh> well, strings have a lot more going on really
<imperator> brahmana, hello, this is internet
<erikh> it's harder to embed, say, a newline in a symbol than it is in a string
<erikh> (not much, but it is harder)
<brahmana> I observed that the source files in gems have require statements with relative paths. Is that a special case for gem files?
<brahmana> When I try with my ruby files, requiring the files in the same directory with just the file name doesn't work.
shevy2 has joined #ruby-lang
shevy2 has joined #ruby-lang
<Jarred> imperator: Its a language designer's job to account for the pitfalls of how people are going to express the language (in this case, keyboards)
<Jarred> (or, part of it at least)
<erikh> nobody's perfect
Banistergalaxy has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
<brahmana> Is there a setting to tell ruby to look for files in the same directory as that of the file requiring?
<erikh> ruby -I.
<erikh> that's a capital i, not a lowercase L
<imperator> Jarred, you're talking to a guy who thinks we should have unicode literals in core :)
<brahmana> erikh: Is that done automatically for files in a gem?
<erikh> no.
Spooner has joined #ruby-lang
Spooner has joined #ruby-lang
<erikh> rubygems manipulates the $LOAD_PATH based on other environmental settings
<erikh> it does this when you "require 'rubygems'" or in 1.9 automatically by default
<Jarred> erikh: Yeah (at both nobody being perfect and harder to embed newlines), but with the newlines, why not just have a ShortString object? Something that maxes out at 255 characters that could be used as *like* a symbol, so that way symbols would have their own non-lazy use
<erikh> man
<erikh> that's the path to java
<Jarred> I guess
<Jarred> I guess adding more complexity isn't the solution
<Jarred> (or, a good solution)
<erikh> probably not -- enforcing culture is usually more effective
<Jarred> lol, I thought of Russification when you said that
<Jarred> (and how ineffective that was)
<brahmana> erikh: Do you mean to say that rubygems magic is related to path to java?!
<erikh> dummies will find a new way to junk it up if you take away their dumb option
<skyjumper> is irb line wrapping goofy for anyone else in GNU Screen?
<erikh> brahmana: no, I was talking to Jarred
<brahmana> oh ok
<imperator> people use screen? ;)
<skyjumper> everyone uses screen, damnit
<Jarred> Tmux ftw
<imperator> EVERYONE
<skyjumper> yes
<erikh> I used screen for ages
<erikh> I use tmux now
<erikh> as of last week
<imperator> i think i used it...twice
<erikh> I'm a hipster
<Jarred> It has a green bar and I can't scroll in it with MinTTY
<Jarred> Those are my complaints with it
<erikh> ^b [
<skyjumper> Jarred: there's a config flag to enable terminal scrolling
<erikh> then pgup/pgdn
<Jarred> It's a very matrix-esque "hacker" green
<skyjumper> and whatever green bar there is can be disabled
<erikh> KABLAM
<erikh> Jarred: they stole that green from hercules
<erikh> true story
kain has joined #ruby-lang
kain has joined #ruby-lang
macmartine has joined #ruby-lang
macmartine has joined #ruby-lang
<Jarred> It doesn't work still in MinTTY
<erikh> the tty doesn't do the scrolling
<erikh> tmux does
<Jarred> oh
<erikh> so you can't mousewheel or any of that stuff
<Jarred> Can I let the TTY do scrolling?
<Jarred> How would I configure Tmux to let me do that?
<erikh> maaaaybe, but I doubt it.
<erikh> I don't know.
<erikh> you had to do all sorts of termcrap crap to get that to work right in screen, and it completely broke splits and other features
<erikh> really, your two superior options are 1) learn the tmux history keys or 2) don't use tmux
<erikh> it's just the way those programs work
<Jarred> I kinda got it working
<skyjumper> Jarred: you can configure screen to let mintty do the scrolling
<brahmana> erikh: Does the $LOAD_PATH modification affect only the files in gems?!
cjs226 has joined #ruby-lang
cjs226 has joined #ruby-lang
<skyjumper> still, does anyone know how to make line wrapping work in irb in screen?
<Jarred> Will it not work because Tmux hides text, versus putting it all in the terminal?
<skyjumper> Jarred: yes, that is probably why
<Jarred> It's amazing how good caffieine makes you feel when you haven't slept enough
rushed has joined #ruby-lang
rushed has joined #ruby-lang
slyphon has joined #ruby-lang
slyphon has joined #ruby-lang
<Jarred> oh nice
<Jarred> I got it working well
<Jarred> set -g terminal-overrides 'xterm*:smcup@:rmcup@'
<brahmana> erikh: I printed $LOAD_PATH after requiring a gem. The lib/ directory of the gem were added but nothing more than that
<Jarred> in '~/.tmux.conf"
leonL has joined #ruby-lang
leonL has joined #ruby-lang
srbartlett has joined #ruby-lang
srbartlett has joined #ruby-lang
jesly has joined #ruby-lang
jesly has joined #ruby-lang
Aleran has joined #ruby-lang
Aleran has joined #ruby-lang
<erikh> brahmana: right, ruby itself can sort the rest out.
<erikh> Jarred: ah yeah that sounds a lot like the screen solution
<erikh> sec.
<erikh> termcapinfo xterm* ti@:te@
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
undersc0re has joined #ruby-lang
banisterfiend has joined #ruby-lang
banisterfiend has joined #ruby-lang
<brahmana> erikh: Ok.. another look at the source of the gem files made it clear. They do not actually use paths relative to current file directory, but they use paths relative to the gem's lib/ directory. Makes sense now
havenn has joined #ruby-lang
havenn has joined #ruby-lang
<brahmana> erikh: Thank you