fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
savage-_ has joined #ruby
savage- has quit [Read error: Connection reset by peer]
<horofox> sepp2k: like x = Class.new do
carrythezero has quit [Ping timeout: 246 seconds]
cantonic_ has joined #ruby
<horofox> sepp2k: ?
<davidcelis> x isn't a constant
<banisterfiend> horofox: x isn't a constant..........
<horofox> X
<davidcelis> banisterfiend: i win
<horofox> davidcelis: X
<banisterfiend> davidcelis: i spent extra time typing the '.'s ;)
<horofox> davidcelis: are u happy? lol
<davidcelis> horofox: more than you could ever know
<sepp2k> horofox: Yes. Or const_set if you're doing it inside a method.
carrythezero has joined #ruby
<sepp2k> Ruby doesn't like assigning constants inside methods otherwise.
S2kx has joined #ruby
<rking> banisterfiend: Please do not talk on #ruby when there are outstanding questions for you on #pry. KKthx.
cantonic has quit [Ping timeout: 272 seconds]
cantonic_ is now known as cantonic
S1kx has quit [Ping timeout: 252 seconds]
justsee has quit [Quit: Leaving...]
sailias has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
jimeh2 has quit [Ping timeout: 248 seconds]
johnjohnson has quit [Ping timeout: 245 seconds]
kokainepizza has quit [Quit: My pooter is sleep.]
<shevy> sepp2k hmmm... wonder why dynamic constant assignment is not possible via FOO = :bla ... but it is via const_set ...
billyoc has joined #ruby
<devnull_> I have a very stupid question but I go anyway http://pastebin.com/QYteFb1t should be really simple but for some reasons I get it wrong :P
frogprince_mac has quit [Ping timeout: 246 seconds]
<rking> devnull_: Try: drbanner["_rev"]
johnjohnson has joined #ruby
<devnull_> rking: yay :D
h4mz1d has joined #ruby
<devnull_> rking: thanks a lot !!
<rking> devnull_: The {…blah…} thingy is a Hash object, and you can dereference it using [key]. In this case your key is the String "_rev"
<devnull_> rking: yes I should have tried it before..just tried before using json on it and that was the issue as before it was not a hash object ! thanks
Takehiro has joined #ruby
t83823 has quit [Remote host closed the connection]
t6541 has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
deryl has quit [Ping timeout: 248 seconds]
TheNullByte has quit [Quit: TheNullByte]
aristidesfl has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sepp2k has quit [Read error: Connection reset by peer]
k04n has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
johnjohnson has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
deryl has joined #ruby
johnjohnson has joined #ruby
AlbireoX has quit [Ping timeout: 268 seconds]
voodoofish has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jarek has joined #ruby
banisterfiend has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 276 seconds]
saschagehlich has quit [Quit: saschagehlich]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
TheNullByte has joined #ruby
S2kx has quit [Quit: Leaving]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
hekin has joined #ruby
CarlB_the_great has joined #ruby
Vert has quit [Remote host closed the connection]
CannedCorn has joined #ruby
johnjohnson has quit []
jasonkuhrt has joined #ruby
vlad_starkov has joined #ruby
keppy has joined #ruby
chimkan_ has joined #ruby
<horofox> damn, I can't rename that damned instance.
jenrzzz has quit [Ping timeout: 248 seconds]
<horofox> is there any way to rename the .class of a instance which does not involve using const_set?
iori has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
Averna1 has joined #ruby
AndChat| has joined #ruby
Averna has quit [Ping timeout: 276 seconds]
Banistergalaxy has quit [Ping timeout: 246 seconds]
t6541 has quit [Remote host closed the connection]
t53455 has joined #ruby
cantonic has quit [Quit: cantonic]
Averna1 has quit [Ping timeout: 276 seconds]
<rking> horofox: OK, I'm going to have to ask you what in the heck you're doing before I even begin to think about actually helping you on your quest.
<rking> This sounds like a definite XY problem. =)
<blazes816> don't have to get sexist about it
LouisGB has quit []
<horofox> i want to fix a issue where the instance of something that uses that object doesn't get marshaled because it uses a anonymous class
<fowl> blazes816: i saw a license plate once that said IMA XXY ..it scared me ._.
<blazes816> haha, best of both worlds
<rking> horofox: So how is it supposed to unmarshal?
<rking> horofox: Can you replace the object with one with a bona-fide class?
<horofox> rking: what's a bona-fide class?
<fowl> horofox: you need to implement the marshalling methods for marshalling to work right
<horofox> do I need?
<fowl> in an anonymous class, they probably arent
wmoxam has joined #ruby
<fowl> horofox: if not you, someone
<fowl> meh, once i read "models" or "scaffolding" i lose interest
adeponte has joined #ruby
blazes816 has quit [Quit: blazes816]
kokainepizza has joined #ruby
Cache_Money has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
bier has quit [Ping timeout: 252 seconds]
xorgnak has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
stopbit has quit [Quit: Leaving]
adeponte has quit [Ping timeout: 255 seconds]
diegoviola has quit [Ping timeout: 246 seconds]
Averna has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
S1kx has quit [Quit: Leaving]
SCommette has joined #ruby
<ryanf> horofox: it seems like you're barking up the wrong tree
LouisGB has joined #ruby
LouisGB has quit [Remote host closed the connection]
<horofox> ryanf: why?
Takehiro has joined #ruby
diegoviola has joined #ruby
<ryanf> it's impossible to change what class something is an instance of
<horofox> ryanf: so what do I do?
<ryanf> find a way to refactor so that you don't need anonymous classes, I guess
<ryanf> I'm a little unclear on the actual source of the error so it's hard to be more helpful than that
<horofox> ryanf: I can't really do it.
gtuckerkellogg has joined #ruby
ringotwo has quit [Remote host closed the connection]
<ryanf> or alternately don't try to store activerecord objects in the session
<ryanf> because that causes lots of other problems too
bier has joined #ruby
<horofox> ryanf: I want to make it marshable.
<horofox> ryanf: like on friendly_id
<ryanf> oh neat, I didn't know that worked.
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
xorgnak has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 240 seconds]
jarek has quit [Quit: jarek]
SCommette has quit [Quit: SCommette]
xorgnak has joined #ruby
Hanmac1 has joined #ruby
<horofox> fowl: I know you can't marshal a anonymous class
<devnull_> hi another n'00b questions thanks but would be a good deed and lot of good karma if you help :) http://pastebin.com/Vc5JbUDY
<horofox> fowl: I want to make a anonymous class instance not be anonymous
Tiny has joined #ruby
xorgnak has quit [Remote host closed the connection]
Tiny has left #ruby [#ruby]
banisterfiend has joined #ruby
xorgnak has joined #ruby
<ryanf> horofox: have you pasted the actual code you're trying that isn't working?
Hanmac has quit [Ping timeout: 264 seconds]
<horofox> ryanf: i possibly have tried all combinations of const_get of all instances of objects of the whole universe
<horofox> ryanf: the problem is complex, just pasting code isn't going to make a difference
<devnull_> http://pastebin.com/Vc5JbUDY thanks again this is really easy is just that I need some help to get the right way to get that from the hash thanks again
franksort has joined #ruby
AndChat| has quit [Ping timeout: 252 seconds]
franksort has quit [Client Quit]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
SCommette has joined #ruby
<horofox> devnull_: hashname['rows']['value']['_rev']
nari has joined #ruby
<horofox> devnull_: hashname being edit
<horofox> devnull_: edit is a weird name for a hash
SCommette has quit [Client Quit]
<banisterfiend> horofox: you can't distill it town to a simple test case that illustrates the problem?
SCommette has joined #ruby
<horofox> banisterfiend: i can.
jarred has joined #ruby
manizzle has quit [Quit: Leaving]
<banisterfiend> horofox: k00, then paste teh code for that ;)
<horofox> banisterfiend: http://pastie.org/4659596
<devnull_> horofox: thanks a lot but now I get `[]': can't convert String into Integer (TypeError)
<horofox> devnull_: result.to_i
SCommette has quit [Client Quit]
hekin has quit [Quit: hekin]
mercwith1mouth has quit [Ping timeout: 264 seconds]
noyb has quit [Ping timeout: 246 seconds]
t53455 has quit [Remote host closed the connection]
manizzle has joined #ruby
t16215 has joined #ruby
<ryanf> horofox: so doing const_set on @class and on @uploader doesn't fix it?
<ryanf> also thanks, that's exactly what I was hoping to see
<devnull_> horofox: err where do I put that? :X :'(
<horofox> ryanf: this is the test, I have to fix the code
<horofox> devnull_: edit['rows']['value']['ip'].to_i
<ryanf> yeah, but does doing that in the test case make it work?
<horofox> ryanf: i haven't even tried, let me try.
<ryanf> const_set 'FooBar', @class; const_set 'BlahBlahBlah', @uploader
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
<devnull_> horofox: thanks a lot still error `[]': can't convert String into Integer (TypeError) after doing ...edit['rows']['value']['_rev'].to_i
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<ryanf> horofox: trying an analogous test case in the console, that works for me
<horofox> devnull_: the contents of rev is not a integer number
<horofox> devnull_: you can't convert 'banana' to a 3
<horofox> to 3*
<horofox> so 1+1 isn't banana
xorgnak has joined #ruby
<horofox> ryanf: ok, i'm trying...
<horofox> ryanf: NoMethodError:
<horofox> undefined method `const_set' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_3::Nested_2:0x00000102ab9d68>
<horofox> ryanf: oh well...
<devnull_> horofox: right I don't want an integer I just want edit['rows']['value']['ip'] value that is inside the hash ......
<horofox> devnull_: edit['rows']['value']['ip'].to_i * 1000000
<ryanf> horofox: yeah do like Kernel.const_set, it needs to be on a module
<ryanf> horofox: hadn't realized that
<devnull_> horofox: I don't want to transfor it to integer..I just want the value that is there e.g. "value"=>{"_id"=>"editdummy@hulk.li" I want the id that's all :)
banisterfiend has quit [Remote host closed the connection]
<horofox> ryanf: Class.const_set 'BlahBlahBlah', @instance like this?
<devnull_> horofox: or the rev or anything inside that hash without converting it to anything
<horofox> devnull_: edit['rows']['value']['ip'] = "123"
pingfloyd has joined #ruby
<devnull_> horofox: that would change its value I want the value inside that..I am not editing it sorry again for being such a pain
Banistergalaxy has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Remote host closed the connection]
<devnull_> horofox: edited for clarity http://pastebin.com/B2Ef3r43
<ryanf> horofox: you don't want to do anything with the instance
<ryanf> the instance is an instance. you care about the classes
<devnull_> horofox: thanks again if you have a flattr account or amazon wishlist let me know :) once I fix this I am done for the day :)
Dreamer3 has quit [Ping timeout: 240 seconds]
<ryanf> so, that, but with @class and @uploader instead
<ryanf> (as two separate lines)
Dreamer3 has joined #ruby
jonathanwallace has joined #ruby
<CannedCorn> does rubygems only respect release candidate gems when they have ".rcx" at the end
<CannedCorn> i'd like to omit the dot
mztriz has left #ruby [#ruby]
<horofox> ryanf: the test is Class.const_set 'BlahBlahBlah', @class; Class.const_set 'BlahBlahBlahhh', @uploader; Marshal.dump(@instance).should_not raise TypeError
<horofox> ryanf: right now, but it doesn't work
ZachBeta has quit [Quit: Computer has gone to sleep.]
<horofox> devnull_: haha, relax... w8 i'm going to take a look
ZachBeta has joined #ruby
<ryanf> horofox: hmm, are you sure it's still the same problem?
<ryanf> could be another anonymous class buried somewhere
<horofox> devnull_: oh sorry
<horofox> devnull_: it's edit['rows'][0]['id']
<horofox> devnull_: or edit['rows'][0]['value']['_id'] for the most nested one
<horofox> ryanf: there is a nested anonymous class right here: https://github.com/jnicklas/carrierwave/blob/master/lib/carrierwave/mount.rb line 141
ZachBeta has quit [Client Quit]
jonathanwallace has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
<horofox> ryanf: i can't even understand well what this method does, class_eval... and shit
<ryanf> yeah this is uh
<ryanf> pretty interesting code
<ryanf> I mean, to really fix this I think you'd have to go through and generate a constant name for every single anonymous class that gets generated everywhere in the codebase
hipertracker has quit [Quit: hipertracker]
<devnull_> horofox: wooooo the second worked woooo I was serious if you have a flattr or amazon list let me know :D
<ryanf> and make sure that the names are deterministic enough that you can always get stuff back out of the session later
<ryanf> I think doing all that just to support the antipattern of putting AR objects in the session is probably not worth it
uris has joined #ruby
<horofox> devnull_: I'm going to create a flattr them ;-)
<devnull_> horofox: please do I have anyway some money stuck there :X
<horofox> ryanf: what if somebody wants to cache a object that has a image?
<horofox> ryanf: memcached has to marshal the object
<horofox> ryanf: so... somehow, i think the fix is needed
<ryanf> horofox: hmm, that's a good point. is this really always a problem then?
<ryanf> it seems crazy that carrierwave could be so popular if that problem happens consistently
<ryanf> since people like to put stuff in caches sometimes
<horofox> ryanf: when you try to cache a object with a scope or that has an anonymous class
<horofox> ryanf: it does not get cached by rails.cache.fetch
<horofox> ryanf: but it doesn't complain.
banisterfiend has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
manizzle has quit [Ping timeout: 240 seconds]
<horofox> devnull_: this flattr idea is so cool
<horofox> ryanf: my latest job, people used rails.cache.fetch everywhere
mdelcx has quit [Quit: Lost terminal]
<horofox> ryanf: and guess what, everything were scope
<horofox> scoped*
<horofox> ryanf: so, nothing were actually cached :DDDD
<horofox> ryanf: but people were getting paid like it did.
xorgnak has quit [Read error: Connection reset by peer]
<horofox> ryanf: so like, i run a script to see which memcached keys were actually getting cached, and it as just one that was like Category.all (so no scope)
pipopopo has quit [Ping timeout: 272 seconds]
<ryanf> haha
pipopopo has joined #ruby
<ryanf> that's weird. I don't think I've ever run into that situation
Hunner has joined #ruby
<Hunner> Is there a way to take a string "==" and turn it into the actual operator?
<arubin> Hunner: eval?
<horofox> ryanf: this is actually funny, because I think most of people don't use memcached in rails right
<devnull_> horofox: done
<devnull_> horofox: yeah I think is a cool idea :P I really wanted to fix that thing so badly lol
<horofox> devnull_: hehe :D
<devnull_> horofox: you got it ?
Taichou has joined #ruby
pipopopo has quit [Ping timeout: 240 seconds]
<horofox> devnull_: oh yea :D thanks a lot
<devnull_> horofox: thank you :) really appreciated and I use flattr sometimes to say thank you like I know is not a lot but at least one can get a coffee or two hehe :)
<horofox> devnull_: hehe this is awesome, i've never got a coffee helping somebody here
<Hunner> arubin: I don't think so, since == is lexer not ... whatever is after the lexer
pipopopo has joined #ruby
<arubin> Hunner: I meant that you could use eval on an expression containing the string.
<horofox> ryanf: btw, if you have the time(as you look very good with metaprogramming), give some love to the issue i've sent you hehe :P
<devnull_> horofox: yeah vampires :>
<rking> horofox: Wait, what's the relationship of scopes to .cache?
<horofox> rking: it had a scope with a lambda inside, it didn't get cached.
<rking> Ahh
<horofox> rking: and rails isn't whiny about it... so like... things seemed right.
hekin has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<horofox> ryanf: i'm going to be a carrierwave maintainer and I've quit my job last week, so I'm trying my best to get to know better the codebase
radic has quit [Disconnected by services]
radic_ has joined #ruby
<Hunner> arubin: eval("\'foo\' #{'=='} \'foo\'") # <-- ugly as sin
<horofox> ryanf: but this mount_uploader seens way over my level and I don't know how to teach myself what it does and how.
radic_ is now known as radic
<rking> horofox: How did you end up figuring it out? Just taking a closer look at the SQL queries?
<horofox> rking: checked which keys were being cached running a memcached script
xorgnak has joined #ruby
<horofox> rking: kept banging my head over it for like a week and got it
TheNullByte has quit [Quit: TheNullByte]
<rking> horofox: Good work. =)
TheNullByte has joined #ruby
<horofox> rking: one of the best stackoverflow answers ive ever seen, it was worth the 1 week stress
<horofox> rking: the best rated
vitor-br has joined #ruby
Takehiro has joined #ruby
<ryanf> horofox: honestly I don't think I'm likely to have the time necessary to dive into that anytime soon
<ryanf> especially since I've never used carrierwave
<ryanf> maybe ask one of the other maintainers to help you with it?
<horofox> ryanf: i will probably do.
t16215 has quit [Remote host closed the connection]
jarred has quit [Quit: jarred]
<rking> horofox: Dang, that "mu is too short" cat is impressive.
t52162 has joined #ruby
<horofox> rking: nailed it
<rking> I wonder what his interest in the problem was.
<horofox> rking: I think it's about knowledge, he knew a lot about marshaling and thought in the first place about it... because memcached had to marshal the object.
<ryanf> I'm not sure I agree with his conclusion actually
<ryanf> I mean, caching a Relation like that is definitely the wrong thing
<ryanf> because, among other things, it probably hasn't even run the query yet in the given example
<ryanf> but calling .to_a first would make it reasonable, and I think a blanket rule against caching AR objects would be going too far
<ryanf> (since calling .to_a will make it just an array of AR models)
Takehiro has quit [Ping timeout: 246 seconds]
M- has joined #ruby
ZachBeta has joined #ruby
manizzle has joined #ruby
mercwith1mouth has joined #ruby
<horofox> ryanf: yea, i think you are right
Guedes has quit [Ping timeout: 244 seconds]
<horofox> ryanf: but the way he tracked down the problem was awesome hehe.
gqlewis has joined #ruby
manizzle has quit [Ping timeout: 240 seconds]
davidcelis is now known as jessepinkman
jessepinkman is now known as davidcelis
manizzle has joined #ruby
deryl has quit [Quit: deryl]
berserkr has quit [Quit: Leaving.]
xorgnak has quit [Remote host closed the connection]
Tearan has quit [Quit: Sleepy Badger....]
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
gqlewis has quit [Remote host closed the connection]
gqlewis has joined #ruby
c0rn_ has joined #ruby
noyb has joined #ruby
freeayu has quit [Ping timeout: 255 seconds]
manizzle has quit [Ping timeout: 244 seconds]
pvh has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
t52162 has quit [Remote host closed the connection]
freeayu has joined #ruby
t91601 has joined #ruby
wuwoot has joined #ruby
sonkei has joined #ruby
wuwoot has left #ruby [#ruby]
manizzle has joined #ruby
xorgnak has quit [Remote host closed the connection]
sonkei has quit [Client Quit]
xorgnak has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
seitensei has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
justsee has quit [Quit: Leaving...]
banisterfiend has quit [Ping timeout: 244 seconds]
Cache_Money has quit [Quit: Leaving]
horofox has quit [Quit: horofox]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
noyb has quit [Ping timeout: 246 seconds]
AlbireoX has joined #ruby
xorgnak has quit [Remote host closed the connection]
Takehiro has joined #ruby
ananthakumaran has joined #ruby
ringotwo has joined #ruby
ringotwo has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 240 seconds]
ringotwo has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
rubious has quit [Quit: Linkinus - http://linkinus.com]
g_bleezy has joined #ruby
macmartine has joined #ruby
emmanuelux has quit [Read error: Connection reset by peer]
sonkei has joined #ruby
g_bleezy has quit [Remote host closed the connection]
eric-wood is now known as ericwood
gtuckerkellogg has joined #ruby
uris has quit [Quit: leaving]
verto is now known as verto|off
seitensei has quit [Read error: Connection reset by peer]
TheNullByte has quit [Quit: TheNullByte]
gqlewis has quit [Remote host closed the connection]
Jotade11 has quit [Quit: Linkinus - http://linkinus.com]
quest88 has quit [Quit: quest88]
Guest5516 has joined #ruby
AlbireoX has quit [Remote host closed the connection]
pu22l3r has joined #ruby
gtuckerkellogg has quit [Ping timeout: 240 seconds]
AlbireoX has joined #ruby
chimkan___ has joined #ruby
itnomad has quit [Quit: Leaving]
chimkan___ has quit [Client Quit]
DrShoggoth has quit [Quit: Leaving]
t91601 has quit [Remote host closed the connection]
chimkan_ has quit [Ping timeout: 276 seconds]
t22068 has joined #ruby
CannedCorn has quit [Quit: Computer has gone to sleep.]
gqlewis has joined #ruby
devnull_ has quit [Remote host closed the connection]
gqlewis has quit [Remote host closed the connection]
Bosox20051 has joined #ruby
td123 has joined #ruby
sambio has quit [Quit: Saliendo]
yasushi has joined #ruby
Takehiro has joined #ruby
ttilley has joined #ruby
xyon has joined #ruby
spopescu has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
freeayu has quit [Read error: Connection reset by peer]
jgrevich_ has joined #ruby
xorgnak has joined #ruby
burgestrand has quit [Quit: Leaving.]
Takehiro has quit [Ping timeout: 246 seconds]
jgrevich has quit [Ping timeout: 268 seconds]
jgrevich_ is now known as jgrevich
pu22l3r has quit [Remote host closed the connection]
gtuckerkellogg has joined #ruby
fbernier has joined #ruby
<atno> morning
savage-_ has quit [Remote host closed the connection]
mdelcx has joined #ruby
fullofcaffeine has joined #ruby
<mdelcx> hey all - is there a way to pass arguments dynamically?
<mdelcx> for example, if I wanted to appends arguments for file2, file3, etc in this code: http://pastie.org/4660210
pu22l3r has joined #ruby
<bnagy> (1..3).each {|i| do_something( "file#{i}", ...
<bnagy> although normally I would iterate across the actual files themselves
<bnagy> so you're not tied to a naming scheme
freeayu has joined #ruby
<mdelcx> the actual problem is passing them as arguments
<mdelcx> the http_post method takes *fields or whatever
<mdelcx> so how can I send a dynamic number of them?
<mdelcx> i believe one option is to use .send(:http_post, Array fields)
<mdelcx> which works here, because the order of params doesn't matter
williamherry has quit [Ping timeout: 246 seconds]
<bnagy> do_something( *fnames ) will decompose an array
havenn has joined #ruby
<bnagy> so if there are 3 files in it it turns into do_something( f1, f2, f3 )
<mdelcx> hmm interesting
<mdelcx> pretty handy, ruby
<mdelcx> ... says the php developer
robacarp has quit [Ping timeout: 265 seconds]
fbernier has quit [Ping timeout: 246 seconds]
savage- has joined #ruby
<davidcelis> get out
adeponte has joined #ruby
mucker has quit [Ping timeout: 276 seconds]
robacarp has joined #ruby
robacarp is now known as Guest3479
<mdelcx> shouldn't I stay? to learn the supirior language gooder?
<davidcelis> i dunno dude
<davidcelis> i cant tell you what to do
<davidcelis> i'm a lot of talk
<TTilus> mdelcx: if you are after *superior* go learn lisp :)
<mdelcx> TTilus: which animal is on the cover of that one?
<davidcelis> dont listen to TTilus, he's an established troll
macmartine has quit [Quit: Computer has gone to sleep.]
<fullofcaffeine> Does anyone know what "alias do" does?
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
jarred has joined #ruby
<fullofcaffeine> I've used alias, but I have seen this syntax today:
<fullofcaffeine> class ElispSlave < Slave
<fullofcaffeine> alias do elisp_eval
<fullofcaffeine> ...
<fullofcaffeine> pretty cryptic
Progster has quit [Ping timeout: 244 seconds]
<libryder> fullofcaffeine: can you gist the whole block?
<libryder> i'm playing in irb
<fullofcaffeine> It's part of the relisp gem. 1sec.
<fullofcaffeine> this is the mirror I created
<fullofcaffeine> check line 312
<bnagy> an alias is just an extra name for a method
<fullofcaffeine> bnagy: I know
<fullofcaffeine> but this one uses do
<bnagy> so do will be aliased to eliasp_eval
<fullofcaffeine> Oh
Bosox20051 has quit [Quit: Leaving]
<bnagy> why is that weird?
<fullofcaffeine> Syntax highlighting confused me
<fullofcaffeine> OK, makes sense
<fullofcaffeine> It seemed as if it was accepting an incomplete block
<fullofcaffeine> but yeah, you're right.
<davidcelis> aliasing do... sounds dangerous
<fullofcaffeine> Thanks.
<bnagy> it's not dangerous
<libryder> haha just figured this out
<bnagy> it's confusing though
ttilley has quit [Quit: ttilley]
<libryder> makes sense, it basically passes the block you send a method into elisp_eval
<fullofcaffeine> Cool
<fullofcaffeine> Very nice idiom in fact
jjang has quit [Ping timeout: 240 seconds]
<bnagy> uh
<bnagy> I'm not 100% sure but I don't think that's right
<bnagy> like I think you're going to have to invoke do as a method, cause the syntax do is reserved
<bnagy> like slave.do "code string"
<bnagy> not slave do block_stuffs end
<bnagy> but that's without reading it
vitor-br has quit [Quit: Saindo]
td123 has quit [Quit: WeeChat 0.3.8]
<bnagy> (which is why I said it's confusing - imho it's a bad idiom)
enyo has joined #ruby
jjang has joined #ruby
savage- has quit [Quit: .]
manizzle has quit [Remote host closed the connection]
manizzle has joined #ruby
Spooner_ has quit [Ping timeout: 268 seconds]
sgmac has joined #ruby
sgmac has left #ruby [#ruby]
yasushi has quit [Remote host closed the connection]
mercwith1mouth has quit [Ping timeout: 268 seconds]
Guest5516 has quit [Ping timeout: 244 seconds]
sgmac has joined #ruby
Hanmac1 is now known as Hanmac
sgmac has left #ruby [#ruby]
<elico> bnagy: what's up?
spopescu has quit [Quit: Leaving]
ananthakumaran has quit [Quit: Leaving.]
chussenot has joined #ruby
banisterfiend has joined #ruby
<elico> i am wrting a cgi script and from a reason I dont find how i can identify the request type: POST\GET
burgestrand has joined #ruby
digitalcakestudi has quit [Ping timeout: 276 seconds]
und3f has joined #ruby
keppy has quit [Quit: Leaving]
pu22l3r has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 260 seconds]
c0rn_ has quit []
KevinSjoberg has joined #ruby
Takehiro has joined #ruby
machty has joined #ruby
sonkei has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
<fowl> >> 2880/48
<al2o3cr> (Fixnum) 60
<fowl> ty
<davidcelis> >> fowl.can_do?(Math)
<al2o3cr> -e:1:in `eval': undefined local variable or method `fowl' for main:Object (NameError), from -e:1:in `eval', from -e:1:in `<main>'
<davidcelis> oh shit
<davidcelis> shit bro, you don't even exist
<davidcelis> what the fuck
<fowl> maybe im just not in ur system
<fowl> lets not jump to conclusions here
<davidcelis> is life just an illusion??
noyb has joined #ruby
<Hanmac> >> fowl = Object.new; fowl.extend(Math)
<al2o3cr> (Object) #<Object:0x000000024cefd0>
<davidcelis> >> alias_method :can_do?, :respond_to?
<al2o3cr> -e:1:in `eval': undefined method `alias_method' for main:Object (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<davidcelis> >> alias :can_do? :respond_to?
<al2o3cr> (NilClass) nil
mercwith1mouth has joined #ruby
Drewch has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
zeromodulus has quit [Remote host closed the connection]
ciopte7 has quit [Quit: ciopte7]
kaushik_ has joined #ruby
<fullofcaffeine> >> puts 'test'
<al2o3cr> (NilClass) nil, Console: test
<fullofcaffeine> nice
<kaushik_> hi
zeromodulus has joined #ruby
areil has joined #ruby
<banisterfiend> >> $stdout = StringIO.new; puts 'test'
<al2o3cr> -e:1:in `eval': uninitialized constant StringIO (NameError), from -e:1:in `eval', from -e:1:in `<main>'
<burgestrand> >> $stdout.reopen(File::NULL); puts 'test'
<al2o3cr> -e:1:in `eval': No such file or directory - /dev/null (Errno::ENOENT), from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<burgestrand> :o
<fullofcaffeine> >> require 'rails'
<al2o3cr> -e:1:in `eval': cannot load such file -- rails (LoadError), from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require', from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<fullofcaffeine> wut? :D
khakimov has joined #ruby
<banisterfiend> fullofcaffeine: that's not surprising..
<banisterfiend> not everyone has rails installed
<banisterfiend> maybe a shock to you ;)
rakl has quit [Quit: sleeping]
<fullofcaffeine> But but.. It thought Ruby was a framework made on Rails
t22068 has quit [Remote host closed the connection]
<fullofcaffeine> jk :)
<fullofcaffeine> ok, time to go, good night : -)
AlbireoX has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
kokainepizza has quit [Quit: My pooter is sleep.]
<fowl> >> sleep while true
<reactormonk> >> require 'stringio'
<al2o3cr> (TrueClass) true
ananthakumaran1 has joined #ruby
tonini has joined #ruby
<Hanmac> look
<Hanmac> >> 1
<al2o3cr> (Fixnum) 1
<Hanmac> cool ... it seems that it can protect itself from the Fatal shit :P
<banisterfiend> >> require 'stringio'; $stdout = StringIO.new; puts "hi"
mercwith1mouth has quit [Ping timeout: 240 seconds]
<banisterfiend> >> require 'stringio'; $stdout = bing = StringIO.new; puts "hi"; bing.string
<banisterfiend> >> 1
<al2o3cr> (Fixnum) 1
dimday has joined #ruby
<fowl> >> 1 1/2
<al2o3cr> -e:1:in `eval': (eval):1: syntax error, unexpected tINTEGER, expecting $end (SyntaxError), 1 1/2, ^, from -e:1:in `<main>'
<fowl> how 2 do 1 and a half in the ruby
spopescu has joined #ruby
<KevinSjoberg> fowl: 1.5
answer_42 has joined #ruby
<havenn> fowl: Or: require 'mathn'; 2 + 1/2
banisterfiend has quit [Remote host closed the connection]
vectorshelve has joined #ruby
<vectorshelve> hemanth: Hi
<havenn> >> require 'mathn'; 2 + 1/2
<al2o3cr> (Rational) (5/2)
<hemanth> vectorshelve, yo
<havenn> >> '2.5'.to_r
<al2o3cr> (Rational) (5/2)
<vectorshelve> hemanth: how are you boss ? Long time :)
d3vic3 has quit [Ping timeout: 252 seconds]
<hemanth> vectorshelve, ya tons of work
d3vic3 has joined #ruby
<vectorshelve> hemanth: oh... but I hope you enjoying it.. and life as well :)
<hemanth> ;0) kina and u?
<mdelcx> i'd love feedback on this :) https://github.com/mdeltito/swift-file
<vectorshelve> hemanth: I am fine.. happy that we have started BDD and TDD using Rspec and Cucumber.. :) Also thinking about taking SCJP
<hemanth> SCJP lol
<hemanth> OCJP ? :D
senny has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
chimkan_ has joined #ruby
aristidesfl has quit []
sonkei has joined #ruby
mkopras has quit [Ping timeout: 248 seconds]
<vectorshelve> hemanth: why /
rakl has joined #ruby
<vectorshelve> hemanth: yeah sorry :D I still an old guy :D
spopescu has left #ruby [#ruby]
timonv has joined #ruby
kokainepizza has joined #ruby
tagrudev has joined #ruby
<hemanth> hmm
eridani has quit [Ping timeout: 272 seconds]
a_a_g has joined #ruby
hipertracker has joined #ruby
maesbn has joined #ruby
burgestrand has quit [Quit: Leaving.]
thaz has joined #ruby
yasushi has joined #ruby
<vectorshelve> hemanth: thought of taking one..
luoluoluo has joined #ruby
<luoluoluo> hi there, when I sort a directory by Dir['log/*'].sort...it gives me "in `sort': comparison of String with String failed (ArgumentError)"
<luoluoluo> What's wrong with my code?
s1n4 has joined #ruby
Takehiro has joined #ruby
yasushi has quit [Ping timeout: 252 seconds]
<Hanmac> luoluoluo make a pastie
gloomer has joined #ruby
<luoluoluo> just one line: Dir['log/*'].sort do |f| puts f end
<luoluoluo> just one line: Dir['log/*'].sort { |f| puts f }
<luoluoluo> ok
Takehiro has quit [Ping timeout: 246 seconds]
<luoluoluo> I got it. it should be Dir['log/*'].sort.each do |f| puts f end
<luoluoluo> I missed the .each
Morkel has joined #ruby
banisterfiend has joined #ruby
zigomir has joined #ruby
ringotwo has quit [Remote host closed the connection]
JohnDu has joined #ruby
Chryson has quit [Quit: Leaving]
adeponte has quit [Remote host closed the connection]
ananthakumaran1 has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
lolmaus has joined #ruby
JohnBat26 has joined #ruby
mahmoudimus has joined #ruby
noyb has quit [Ping timeout: 264 seconds]
zastav has joined #ruby
tonini has quit [Read error: No route to host]
zastav has quit [Remote host closed the connection]
tonini has joined #ruby
luoluoluo has quit [Quit: 离开]
khakimov has quit [Quit: Computer has gone to sleep.]
pingfloyd has quit [Quit: pingfloyd]
punkrawkR has quit [Read error: Connection reset by peer]
ringotwo has joined #ruby
Advocation has joined #ruby
aristidesfl has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
adeponte has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
_veer is now known as lolsuper_
hipertracker has quit [Quit: hipertracker]
adeponte has quit [Remote host closed the connection]
ringotwo has quit [Remote host closed the connection]
djdb has joined #ruby
chimkan_ has quit [Quit: chimkan_]
mohits has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
ph^ has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
Dreamer3 has quit [Quit: Leaving...]
qwerxy has joined #ruby
stepnem has joined #ruby
machty has quit [Ping timeout: 252 seconds]
ph^ has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
xorigin has joined #ruby
JohnBat26 has joined #ruby
ph^ has joined #ruby
kaushik_ has quit [Ping timeout: 276 seconds]
Dreamer3 has joined #ruby
aganov has joined #ruby
jgrevich has quit [Quit: jgrevich]
kokainepizza has quit [Quit: My pooter is sleep.]
aristidesfl has quit []
zommi has joined #ruby
<radic> what's there wrong? >> http://nopaste.info/90244b4faf.html
<radic> if I replace line 6 withe a = b[0,1] it works
<davidcelis> b[0,1] != b[1,1]
<davidcelis> you have i = 1
Rochefort has joined #ruby
matrixise has joined #ruby
<radic> ./ascii.rb:7:in `to_s': wrong number of arguments (1 for 0) (ArgumentError)
<radic> from ./ascii.rb:7
diegoviola has joined #ruby
JohnDu has quit [Ping timeout: 246 seconds]
jprovazn has joined #ruby
<Mon_Ouie> You're calling to_s on nil
<Mon_Ouie> And NilClass#to_s doesn't expect any argument, unlike Integer#to_s which expects a base
shadoi has quit [Quit: Leaving.]
saschagehlich has joined #ruby
Takehiro has joined #ruby
<vectorshelve> Mon_Ouie: hi man
<Mon_Ouie> Though you'd only have a string if this is 1.8
<Mon_Ouie> 'alut
<Mon_Ouie> an integer*
<radic> Mon_Ouie: but if b[i,1] is nil it shouldn't execute the while-loop
<Mon_Ouie> b[i, 1] isn't nil, it's an array
<Mon_Ouie> An empty string, rather
Takehiro has quit [Read error: No route to host]
<radic> Mon_Ouie: and b[0,1] is not a array?
Takehiro has joined #ruby
<Mon_Ouie> No, they're both strings (it would kind of help if your code was using variable names that actually meant something)
timonv has quit [Remote host closed the connection]
JohnDu has joined #ruby
Takehiro has quit [Remote host closed the connection]
LouisGB has joined #ruby
dhruvasagar has joined #ruby
arkiver has joined #ruby
ryanf has quit [Quit: leaving]
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
aristidesfl has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<radic> a=b[i-1,1] is working
Takehiro has joined #ruby
jimeh2 has joined #ruby
bradhe has quit [Remote host closed the connection]
Rochefort has quit [Remote host closed the connection]
wobr has joined #ruby
Rochefort has joined #ruby
thone has quit [Read error: Operation timed out]
maletor has quit [Quit: Computer has gone to sleep.]
d3vic3 has quit [Quit: leaving]
chendo_ has quit [Ping timeout: 244 seconds]
thone has joined #ruby
<Mon_Ouie> It would be simpler to just use an iteration method like each_char in 1.9; or at least iterate over the indices (e.g. string.size.times { … })
chendo_ has joined #ruby
qwerxy has quit [Quit: offski]
mneorr has joined #ruby
Moggle has joined #ruby
Taichou has quit [Remote host closed the connection]
<Moggle> Anyone hanging around that knows anything about Google Talk and why xmpp4r wont work with it by chance?
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
dfdsfds has joined #ruby
nilg has joined #ruby
Taichou has joined #ruby
perun_ has quit [Ping timeout: 252 seconds]
cantonic has joined #ruby
dfdsfds has quit [Client Quit]
arkiver has left #ruby ["Leaving"]
g33k has joined #ruby
cezar has joined #ruby
g33k has left #ruby [#ruby]
Taichou has quit [Remote host closed the connection]
cezar has quit [Client Quit]
arkiver has joined #ruby
nim_ has quit [Ping timeout: 245 seconds]
diegoviola has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
ttilley has joined #ruby
<Muz> Moggle: in general, or with the code you're trying to write/run?
a_a_g has quit [Quit: Leaving.]
robustus has joined #ruby
josh^ has quit [Ping timeout: 272 seconds]
g33k has joined #ruby
g33k has left #ruby [#ruby]
M- has quit [Quit: This computer has gone to sleep]
xorgnak has quit [Ping timeout: 246 seconds]
jarred has quit [Quit: jarred]
elaptics`away is now known as elaptics
josh^ has joined #ruby
zigomir has quit [Remote host closed the connection]
g33k has joined #ruby
jimeh2 has quit [Ping timeout: 244 seconds]
jimeh2 has joined #ruby
eldariof has joined #ruby
zigomir has joined #ruby
g33k has quit [Client Quit]
arkiver has quit [Quit: Leaving]
yxhuvud has joined #ruby
nim_ has joined #ruby
troessner has joined #ruby
g33k has joined #ruby
eighty4 has quit [Excess Flood]
arkiver has joined #ruby
g33k has quit [Client Quit]
arkiver has quit [Read error: Connection reset by peer]
KevinSjoberg has joined #ruby
eighty4 has joined #ruby
jwbuurlage has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<Moggle> The issue is Jabber::Client.auth(password)
<Moggle> GTalk supports different auth protocols as found here: https://developers.google.com/talk/open_communications#developer
<Moggle> xmpp4r doesnt _appear_ to support these
<Moggle> but it DID a year ago when I was working on this chat bot
<Moggle> xmpp4r has NO PROBLEM connecting to jabber.org accounts I have
<Moggle> but talk.google.com does have issues
BiHi has joined #ruby
CryptoSec has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0/20120826082904]]
hipertracker has joined #ruby
pskosinski has joined #ruby
damagednoob has joined #ruby
Takehiro has quit [Remote host closed the connection]
gtuckerkellogg has joined #ruby
bluebie has joined #ruby
<bluebie> dudes
adambeynon has joined #ruby
rakl has quit [Quit: sleeping]
<banisterfiend> bluebie: sup chick
<bluebie> nahmuch bro
<Paradox> how i picture python sperglords: http://i.imgur.com/zFrAs.jpg
<banisterfiend> Paradox: pickwick syndrome
<Paradox> banisterfiend, actually, agent orange
petrjanda has joined #ruby
<bluebie> ah funny story
<bluebie> quite a lot of the world's supply of agent orange was manufactured a few blocks away from my childhood home!
GeekOnCoffee has quit [Ping timeout: 244 seconds]
xbayrockx has joined #ruby
<banisterfiend> bluebie: i hope your head is more fully developed than the kids in the pic
GeekOnCoffee has joined #ruby
bradhe has joined #ruby
<bluebie> not to worry, on the internet nobody knows you have pickwick syndrome O_O
adeponte has joined #ruby
justsee has quit [Quit: Leaving...]
baphled has joined #ruby
Xeago has joined #ruby
tatsuya_o has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
jimeh3 has joined #ruby
catphish has joined #ruby
adeponte has quit [Ping timeout: 252 seconds]
<catphish> is there a good reason for this: https://gist.github.com/fdae8af521c868b5df98
<catphish> at first glance it seems like a bug
jimeh2 has quit [Ping timeout: 248 seconds]
<banisterfiend> catphish: it's the difference between each and for in
<banisterfiend> for..in doesnt create a new scope
<catphish> ah ok, does it leave the last entry sitting in the variable?
pk1001100011 has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
<catphish> ah it does
g33k has joined #ruby
g33k has quit [Read error: Connection reset by peer]
<catphish> good to know
<catphish> and i guess it has to create the local variable even if the array is empty
jenrzzz has joined #ruby
ttilley has quit [Quit: ttilley]
Takehiro has joined #ruby
smellynoser has joined #ruby
dpk has joined #ruby
mneorr has quit [Quit: Leaving.]
<JohnDu> is it good for a newbie to study Ruby for his/her first language ?
<catphish> sure
<damagednoob> i've installed a gem into a gemset but I can't seem to load it. here's a link to more info: http://pastebin.com/q8izqTtc
<JohnDu> catphish: oh thanks.
<catphish> assuming you want to learn an object oriented language
<damagednoob> i'm new to ruby so i'm not sure if i'm missing something glaringly obvious
hekin has quit [Quit: hekin]
<catphish> it's a great example
<JohnDu> dam: ok
mneorr has joined #ruby
petrjanda has left #ruby [#ruby]
Criztian has joined #ruby
<damagednoob> i would have thought that if i could see it with 'gem list' i would be able to start irb and require it
qwerxy has joined #ruby
<JohnDu> dam: do you use jRuby or else ?
<damagednoob> yeah
<JohnDu> ok
<damagednoob> not by choice :/
<JohnDu> oh.
rakl has joined #ruby
nilg has quit [Read error: Connection reset by peer]
havenn has joined #ruby
Taichou has joined #ruby
dimday has quit [Quit: Leaving]
fixl has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
Taichou has quit [Ping timeout: 244 seconds]
lkba has quit [Ping timeout: 252 seconds]
<Muz> damagednoob: the name you see in the gem list is the gem name, and not necessarily the name of the file you require to use it.
havenn has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 240 seconds]
<troessner> damagednoob, you can also check `p $LOAD_PATH`
<troessner> to check where ruby is looking for gems
<troessner> compare that to `gem which inline_attachment`
<damagednoob> troessner, yeah, i'm not seeing my gem path in there
d3vic3 has joined #ruby
<Muz> http://rubydoc.info/gems/inline_attachment/0.4.5/file/README.markdown#Installation Seems to suggest the gem is a) old, b) poorly written, c) used in either a non-standard or Rails-esque way.
d3vic3 has quit [Client Quit]
mneorr has quit [Quit: Leaving.]
<damagednoob> all of the above? :P
d3vic3 has joined #ruby
d3vic3 has quit [Client Quit]
<damagednoob> at the moment what i'm trying to do is get a working application running on xserve, running on linux
d3vic3 has joined #ruby
d3vic3 has quit [Client Quit]
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
<Xeago> also, require 'rubygems' before you require something else in irb
timonv has joined #ruby
<catphish> irb -rubygems is a better approach these days
<banisterfiend> Xeago: only if you're misfortunate enough to be stuck in 1.8 :)
<bluebie> oh my god new deloreans are in production and they're aiming to bring out an electric version in 2013 :O
<bluebie> If I were a millionaire...
mklappstuhl has joined #ruby
Advocation has quit [Quit: Advocation]
berserkr has joined #ruby
<JonnieCache> i wonder if they'll last longer than a year without falling apart this time
<bluebie> who cares!
<bluebie> they're deloreans!
<JonnieCache> theres supposedly only a couple of dozen of the originals that still drive
<JonnieCache> but yeah if youre buying a delorean you probably dont care
chendo_ has quit [Ping timeout: 244 seconds]
<JohnDu> I'm sorry.. I don't know what is delorean.
<JonnieCache> the car from back to the future
<JohnDu> oh! it means
<fowl> yes, electric model time machines.
<fowl> i wonder if there will be a charge-by-lightning-rod feature
tatsuya__ has joined #ruby
<JohnDu> I hope there's a ruby socked outside that delorean.
<bluebie> that'd be pretty cool
<JohnDu> :-p
Vert has joined #ruby
chendo_ has joined #ruby
tatsuya_o has quit [Read error: Connection reset by peer]
<bluebie> usb flash drives are so dodgy
<bluebie> I've bought two different brands with identical circuit boards inside
<catphish> depends how much you pay for them
<bluebie> except one has a blue flashing LED and one has a red LED
charliesome has joined #ruby
<catphish> cheap ones are terrible
<bluebie> except the ones with the blue LED are inside opaque black cases, so you can't see the light at all anyway, so why the hell did they use the most expensive colour of LED?!
<JohnDu> is blue LED the most expensive ?
<catphish> i don't imagine they're stupid, they probably got some cheap LEDs
<Muz> damagednoob: rather usefully the repo is dead too; https://github.com/JasonKing/inline_attachment
<bluebie> it's cheaper than it was in the 90s, but they were traditionally one of the most expensive
<bluebie> along with white
ephemerian has joined #ruby
Taichou has joined #ruby
<damagednoob> Muz: yeah, :/
troessner_ has joined #ruby
<bluebie> these are extremely cheap ones
<damagednoob> it looks like it's a permissions issue
<JohnDu> I'd like to use cloud storage services to save files there.
<bluebie> imation brand
<damagednoob> is it possible that the gem was packaged incorrectly?
hekin has joined #ruby
hekin has quit [Client Quit]
rakl has quit [Quit: sleeping]
tonini has quit [Remote host closed the connection]
pk1001100011 is now known as pskosinski
troessner has quit [Ping timeout: 268 seconds]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<JonnieCache> blue is indeed the most expensive, its also the brightest and most annoying
Virunga has joined #ruby
<JonnieCache> i fucking hate blue leds. half of the stuff on my desk at home has tape covering the blue leds
<JohnDu> :p
<bluebie> JonnieCache: So you're blue sensitive too :)
bradhe has joined #ruby
<banisterfiend> lol
statarb3 has quit [Ping timeout: 246 seconds]
<JonnieCache> didnt know there was such a thing as "blue sensitive" i think its just that blue LEDs are brighter and the human eye is generally very sensitive to the wavelength they put out
christor has joined #ruby
<JohnDu> is your keyboard Numlock LED is blue too ?
<JonnieCache> none of my keyboards have leds
<JohnDu> that's great...
<bluebie> Blue LEDs aren't generally any brighter, if anything blue is the least efficient colour of LED
<bluebie> aside from White
christor is now known as rorororo
<bluebie> if your blue LEDs are especially bright, it's either all your manifacturers for some reason like to use really bright ones, or you're blue sensitive
<JonnieCache> the arduino channel will know, ill ask them...
<rorororo> Hi, I got an error by doing : value = (Math.sqrt($1))*($2), I ve got String can't be coerced into Float?
nim__ has joined #ruby
<bluebie> blue is the most efficient colour in regulation of melatonin and circadian rhythms, so people who're already sensitive to light disruptions of their sleep-wake cycle are usually especially sensitive to blue lights
<bluebie> I found them extremely obnoxious to look at until I started taking some medicine which helped me sleep properly
<bluebie> among other things
<JohnDu> bluebie: you like to take some medicine to help you sleep ?
<bluebie> among other things :)
<JonnieCache> the thing is, i find them extremely irritating at all times, they hurt my brain to look at. not just when im trying to sleep
<JohnDu> wow.
bradhe has quit [Ping timeout: 248 seconds]
<bluebie> JonnieCache: yepyep
<bluebie> JonnieCache: Do you use flux on your computers?
<JonnieCache> hell yes. its amazing.
nim_ has quit [Ping timeout: 268 seconds]
<JonnieCache> the arduino channel seems to think that superbright blue leds are simply more common
<JonnieCache> you can get superbright ones in all colours, but for some reason the blue ones always tend to be superbright
<bluebie> most likely that most people don't perceive blue well
<JohnDu> more than the RED ones ?
<JonnieCache> and apparently the eye is actually most sensitive to green light
<bluebie> especially in to old age - we start out with few blue colour receptors and get less and less as we age
Rochefort has quit [Remote host closed the connection]
<JohnDu> I think RED is sensitive than blue to human
rorororo has quit [Quit: leaving]
cascalheira has joined #ruby
chendo_ has quit [Ping timeout: 244 seconds]
<JonnieCache> bluebie: what sleep medication are you taking if you dont mind me asking?
<JonnieCache> i had some melatonin pills but they didnt really work
<Hanmac> have you tryed honey + milk?
<fowl> JonnieCache: try benadryl
arietis has joined #ruby
<JonnieCache> fowl: lol. dipenhydramine. no thanks
<bluebie> I used to take melatonin, I found when I bought it from one pharmacy it worked really well and from another it didn't work at all, so I think there was something dodgy going on there
<fowl> JonnieCache: it works for me:)
freeayu has quit [Ping timeout: 244 seconds]
<bluebie> currently I don't take anything which is primarily for sleep - I take lamotrigine for type two bipolar and that sorts out the sleep stuff as well - the sun is less glaring and blue lights aren't nearly as annoying or disruptive
<JonnieCache> the best thing for sleep is lots of excercise during the day
<JonnieCache> thats why hackers can never sleep :)
<bnagy> I sleep fine, thx
<bnagy> ... depending on ceffeine intake, anyway :(
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
chendo_ has joined #ruby
<JohnDu> hmm. bnagy = hacker
<JohnDu> hacker = non-sleep
<JohnDu> nil ..
cnf has left #ruby ["Linkinus - http://linkinus.com"]
<matti> JohnDu: No.
<matti> JohnDu: bnagy is an AI written in Ruby.
<JohnDu> matti: you are right..
<bnagy> dammit, THAT'S why I never have any spare memory for, like, where the hell are my shoes, or 'why did I come in here again?'
<matti> bnagy: Yeah, sorry.
<fowl> your memories have been garbage collected
<matti> bnagy: We've had to cut corners here and there.
<matti> ;d
<JohnDu> bnagy: i'm sorry too..
<matti> bnagy: And don't look for your penis. We've replaced it with more universal interface.
<bluebie> bnagy: and those moments where you suddenly feel like you've lost a moment and feel disoriented? that's the garbage collector interupting your chain of throught for a couple dozen milliseconds
<JonnieCache> isnt the MRI garbage collector of the "stop-the-world" variety? he shouldnt be able to notice it...
<bnagy> I'm gonna associate two memories with each other as strongly as I can
<bnagy> and then forget them both
<matti> Hehe
<bluebie> JonnieCache: That's all well and good, but there's a world outside of ruby and that world keeps on computing while MRI is having a snooze
<bnagy> ... that might be the nerdiest joke I have made this week
<workmad3> bnagy: you're slacking
<bluebie> bnagy: and it wasn't even funny - congrats
Averna has quit [Quit: Leaving.]
<JohnDu> bnagy: you make a good day
<JonnieCache> anyone who's intro microcontrollers and embedded stuff, make sure you preorder your $5 arm boards from TI: https://estore.ti.com/Stellaris-LaunchPad.aspx
<matti> You guys are such a Nerds.
<matti> ;d
<bluebie> also that don't help you when the mark and sweeper comes
<workmad3> matti: *such nerds :P
<JohnDu> nice to talk you guys, see you
<bluebie> JonnieCache: How do you even program them?
JohnDu has left #ruby [#ruby]
<bluebie> are there open source libraries and tools for them?
<fowl> gcc for arm
<bluebie> I don't really see what I could do with a 16mhz arm cpu that I couldn't do with a 16mhz avr cpu..
alup has quit [Ping timeout: 244 seconds]
<bluebie> maybe do some maths a bit faster or something
<matti> workmad3: ;/
<JonnieCache> well the arm instruction set is nicer, if youre writing in assembly
<JonnieCache> and that arm cortex cpu has hardware crypto and stuff like that
gianlucadv has quit [Quit: ZNC - http://znc.sourceforge.net]
<workmad3> and don't forget about dropping down into 16bit THUMB instructions if you don't need 32bit processing :)
<JonnieCache> and that board has hibernation mode for powersaving. its generally a LOT more advanced than the avr stuff
<bluebie> avr's can hibernate down to 0.002ma generally
<bluebie> iirc
<bluebie> I've made some extremely low power avr stuff
<JonnieCache> also that cpu goes up to 80mhz i dont know where you got 16mhz from
deryl has joined #ruby
<banisterfiend> JonnieCache: you've done some ARM asm?
<banisterfiend> JonnieCache: anything on github?
<JonnieCache> did a little bit at university. it was more a case of studying the theoretical differences between x86 and arm than about writing code
<JonnieCache> nothing online, no
<bluebie> ah 80mhz is kinda cool :)
<bluebie> neat :)
gianlucadv has joined #ruby
<JonnieCache> anyway the point is, they $5 each XD
<bluebie> $5 doesn't even begin to approach how much time investment would go in to learning new tools and libraries, sadly
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<JonnieCache> depends if you view that as fun or not
<banisterfiend> JonnieCache: u got raspberry pi thingy?
<JonnieCache> no. didnt order one when i had the chance. no idea why
<bluebie> I have a pi downstairs torrenting stuff for me :)
<bluebie> it works well
<JonnieCache> ill probably get one of the second generation ones
<bluebie> going to hook up some 433mhz radios which arrived today and see if I can have a ruby script control lights and doorbell and capture people's car remote control codes and stuff like that :D
<JonnieCache> what form are these radios in?
<bluebie> little tiny PCBs with a data line and antenna hookup
<bluebie> they just do very low speed OOK
<bluebie> kinda like infrared protocols on remotes and stuff like that
<bluebie> I want to make a compressed version of IPv6 UDP run over the radios bridged through the raspberry pi so I can have little solar powered gadgets and buttons and things which interact with my LAN
resurew has joined #ruby
* fowl imagines bluebie's room full of spinning gadgets and gizmos
fermion has joined #ruby
<bluebie> that's not far from the truth o_o
<JonnieCache> bluebie: a bit like those xbee things
<banisterfiend> bluebie: are there many tech savy girl in your area?
<bluebie> JonnieCache: kinda, but about one fifth the price and waaaay lower bandwidth
<banisterfiend> girls*
<bluebie> banisterfiend: maybe <_<
<bluebie> why?
<bluebie> are you thinking of moving here to get with the ladies?
<banisterfiend> none that i know of in my area
<banisterfiend> hehe no
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
<Xeago> would this be proper english: "...\n This assignment forms the basis for/of my finals."
<bluebie> I control the lights and fan in my bedroom via the command line: http://creativepony.com/gallery/browse/Craft/Infrared%20Blaster
rs-ix has quit [Quit: ZNC - http://znc.in]
resure has quit [Quit: ZNC - http://znc.in]
resurew is now known as resure
<fowl> neat
<JonnieCache> bluebie: i got a couple of those rtl-sdr thingies the other day. need to get an antenna built...
<bluebie> neat
<Xeago> bluebie, do want
KevinSjoberg has joined #ruby
<JonnieCache> bluebie: nice site. i like the lightbulb terrarium
<JonnieCache> emptying lightbulbs is a bitch though
<bluebie> it's easier with a dremel
<bluebie> I've gotten fairly good at it
<bluebie> accelerometer + lightbulb = ???
<JonnieCache> its more the heinous chemicals coating the inside i was referring to
<JonnieCache> but i guess you can get ones without that stuff cant you. silly me
<bluebie> JonnieCache: Just get the clear type
<bluebie> I don't think the clay they use inside is that bad anyway
<bluebie> just stay away from anything fleuro-based
<bluebie> those have mercury and phosphors and all sorts of horrible stuff in them!
vlad_starkov has quit [Remote host closed the connection]
<bluebie> incandescent's the way to go :D
<JonnieCache> i think we broke one and the stuff went everywhere and we freaked out about inhaling it
<bluebie> I recently became friends with a glass blower though so I might not work with lightbulbs so much going forward
<bluebie> rightfully so
<bluebie> the correct response is to leave the building opening as many doors and windows as you can on the way out and give it a couple minutes
<JonnieCache> yeah once in a shop i was working in, one of those long tube lights broke, and we all got sent home for the day.
<fowl> are you sure you're not supposed to freak out and breathe in and out really fast?
<fowl> i feel like that would ventilate the area better
<Xeago> rofl
<workmad3> fowl: yeah, it would certainly ventilate your lungs very well
<Xeago> anyone that is more proficient in english than me who can assist me if the following sentence is proper english: "...\n This assignment forms the basis for/of my finals."
<JonnieCache> either "of" or "for" would be fine
<JonnieCache> of/for looks odd. pick one
<bluebie> yep, I think 'of' works better than 'for' in this context
wallerdev has quit [Quit: wallerdev]
<bnagy> for
<JonnieCache> bluebie: your site is cool, except the captions in the gallery bit are being excessively truncated
<JonnieCache> but im sure youre aware of that
<bluebie> yeah
<bluebie> I have better things to do than redesign that
<bnagy> except it should be in future / conditional
<bnagy> basis of a conclusion, basis for something that is going to happen
<bluebie> bnaggytrue that. For is better
<Xeago> for because of the futuristic'y of my finals?
<Xeago> btw bluebie, love the ripple game
<bluebie> the post-modern finals :D
<bluebie> hehe thanks Xeago
<Xeago> what is it made in?
<Xeago> js it seems?
<bluebie> I made an ipad version but I never released it because I made it in cocos2d and cocos2d is hellspawn
thunderstrike has joined #ruby
<bluebie> yep, ripple is in regular javascript, with canvas and <audio> tags
<bluebie> it never works reliably in any browser
<Xeago> it works lovely in safari :O
<bluebie> and works in different ones each time a new browser gets released
<bluebie> that's nice to hear :)
<Xeago> did you try on ipad, just using mobile safari?
<JonnieCache> bluebie: what words differently? im guessing the audio. canvas is fairly stable now isnt it?
<bluebie> audio for html5 games still sucks, if you aren't designing exclusively for chrome
<JonnieCache> *works
<bluebie> canvas is fine if you don't mind getting a framedrop or two every half a second or so due to the garbage collector _even if you made no mess at all_
<bluebie> Xeago: Mobile safari doesn't support sound in the ways it would require
<JonnieCache> bluebie: did you see the moog google logo?
<lolmaus> Could you please suggest the most awesome paid Ruby and RoR courses?
<bluebie> Xeago: Feel free to try running it in mobile safari to see what the performance is like, Mobile safari's canvas support is pretty bad also
<banisterfiend> bluebie: can u link to the ripple game? :)
<Xeago> it's a bit laggy on iPad retina simulator, but it works okay'ish, can't test for sound atm, am at work
<bluebie> banisterfiend: http://creativepony.com/games/ripple/
<Xeago> and should be working..
<bluebie> Xeago: The simulator is quite a bit faster than real hardware for this stuff
<banisterfiend> thx
<matti> banisterfiend: Hi hi
snearch has joined #ruby
<matti> banisterfiend: ;] ;] ;] ;] ;] ;] ;] ;]
theRoUS has joined #ruby
theRoUS has joined #ruby
<bluebie> I find in desktop safari on mac I have to click replay challenge once after each level loads because the timing is always wrong the first time it plays through :/
<bluebie> I should have used flash
<matti> Mac sux
<matti> ;d
<matti> Go Linux!
<Xeago> no flash
<Xeago> hell no
<Xeago> finally a fun addictive game that doesn't kill my cpu here!
adeponte has joined #ruby
<bluebie> I knew that'd get your attention :P
<banisterfiend> bluebie: cool
<bluebie> except it does kill your cpu
<bluebie> and it doesn't even work on computers that are more than a few years old
<Xeago> not like flash games would
<banisterfiend> bluebie: is that the game that won awards?
<bluebie> banisterfiend: Nope
<banisterfiend> it's pretty original
<Xeago> it doesn't kill a core
<banisterfiend> bluebie: can u like to that one?
<Xeago> like flash games do
<bluebie> … I could...
<bluebie> but that one REALLY doesn't work properly
<Xeago> in any case, bluebie you have it opensourced? can I hack away at a mobile version?
<bluebie> it was more of an installation than a web game..
<fowl> i wish i was a girl
<bluebie> Xeago: uh…. I haven't
SeySayux has quit [Ping timeout: 244 seconds]
<fowl> walk in irc and take all the attention
<bluebie> fowl: I hear they have a thing for that these days
<fowl> wear dresses, makeup :(
<bluebie> I don't wear dresses or makeup o_o
<JonnieCache> nothing stopping you wearing dresses and makeup man
<bluebie> yeah
<bluebie> goths do it
<JonnieCache> and i think all the attention is more due to the portfolio of interesting work
<Xeago> bluebie, hit me if you want to make it mobile
<Xeago> also got private repositories on github if that's what you want
<fowl> get invited to private repositories...
<bluebie> Xeago: No mobile browsers have the sorts of audio apis ripple requires, so just forget about it for now
<Xeago> I mean native version
<JonnieCache> LOL thats the best/worst chatup line ever
<bluebie> hey babe come back to my place I have private repositories
<JonnieCache> hey baby, how'd you like commit access to my private repository...
<Xeago> :D
Virunga has quit [Remote host closed the connection]
<Xeago> thanks for the english everyone!
tatsuya__ has quit [Remote host closed the connection]
<JonnieCache> lol now my head is just full of sexually explicit version control puns
adeponte has quit [Ping timeout: 240 seconds]
<bluebie> this bed has been marked 'friends only'
tatsuya_o has joined #ruby
<bnagy> how do you like to merge? Hard, soft or mixed?
<bluebie> also 'creative commons by-nc' - hope you're cool with that!
<bluebie> bnagy: Hard! live on the edge!
<bluebie> I like the idea of mixed merging
<JonnieCache> fork me until my api breaks
bradhe has joined #ruby
<bluebie> we need a new punctuation symbol for method names
<bluebie> where it does half/half
<bnagy> why don't you come down here and pull master
<JonnieCache> HAHAHAHA
<bnagy> OH KAY that's enough of that
<bluebie> yep
<banisterfiend> bluebie: the japanese prefer octopus merge
<bluebie> banisterfiend: how about I just finish the iPhone version and you download it in some months?
<fowl> haha
<banisterfiend> sure
<fowl> let him down easy
<bluebie> what are you even talking about fowl
<fowl> ;)
<bluebie> oh gods here come the winks!
jjang has quit [Ping timeout: 248 seconds]
<matti> Winks!?
<matti> ;] ;] ;]
<matti> Who ordered winks?!
<fowl> bluebie: one time a girl told me she'd call me in a few months
<bluebie> lol
<bluebie> that's pretty funny :D
<matti> fowl: ;p
tatsuya_o has quit [Ping timeout: 240 seconds]
charliesome is now known as epochfail
epochfail has quit [Disconnected by services]
charliesome has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
damagednoob has left #ruby [#ruby]
<bluebie> I think I'll just cover over the LEDs in these usb drives o_o
<JonnieCache> cant you desolder them?
<bluebie> could do
<JonnieCache> a lot of effort for some cheap usb drives i guess
<bluebie> but it's even easier to just not make holes for them to shine out of!
<bluebie> I'm making new cases for them anyway :)
<JonnieCache> ah right
<JonnieCache> you could paint them black thatd be even better
g33k has joined #ruby
<bluebie> this sort of thing JonnieCache http://creativepony.com/gallery/browse/Craft/Usbari
SeySayux has joined #ruby
<JonnieCache> is that sugru by any chance?
<bluebie> sculpey
<bluebie> sugru is very annoying to work with, you'd have to be a genious to make something look that consistent and nice
<bluebie> and feels horrible on the fingers
<JonnieCache> what, because it starts liquid?
<bluebie> hate filled goup
<bluebie> it starts goo
<bluebie> but it's really sticky
<JonnieCache> ive only ever used it to repair things, not for crafts
<bluebie> so you can't really impart a shape on to it very well, it just keeps sucking out with your fingers or tools
<bluebie> mmmmm
<bluebie> I like sculpey a lot
g33k has quit [Remote host closed the connection]
<bluebie> bakes at 130°C, which is much lower than the ~220°C soldering temperature of most electronics
<bluebie> sculpey is also much cheaper and lasts a lot longer in storage
<bluebie> sugru is totally useless if you don't use it within a year - or more realistically about six months
<JonnieCache> it seems similar to stuff called "fimo" i had as a kid
<bluebie> yep, fimo is a competing brand, same stuff
<bluebie> sculpey primo has a nicer texture I feel, but fimo for whatever reason seems to have a stronger retail presence :)
<bluebie> fimo has more colours available too, but IMO CMYK is all you need! :P
<JonnieCache> fimo is probably easier to pronounce in different languages around the world
<JonnieCache> i bet some countries would struggle with "sculpey"
ciopte7 has joined #ruby
<JonnieCache> maybe thats why its more common
<bluebie> yeah I can't imagine shoehorning 'sculpey' in to japanese very well
BiHi has quit [Quit: Computer has gone to sleep]
elico has quit [Quit: elico]
NiteRain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Takehiro has quit [Remote host closed the connection]
Foxandxss has joined #ruby
senny has quit [Remote host closed the connection]
senny has joined #ruby
senny has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
senny has joined #ruby
vlad_starkov has joined #ruby
Rochefort has joined #ruby
ciopte7 has quit [Quit: ciopte7]
Virunga has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ph^_ has joined #ruby
ph^_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 240 seconds]
QaDeS has joined #ruby
alistar has joined #ruby
<alistar> Hello when using reg ex with a case satement of when then format can you match both text and numbers in a rage e.g. examplexx where xx is in the range 20-30 say?
<Xeago> wait what are you trying to do?
<Xeago> case over the matching part in a regex?
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
resure has quit [Remote host closed the connection]
<alistar> yeah so for a larger example : when /example[20..30]/ then "we got it"
<Xeago> bluebie!!! I can't solve this level
<bluebie> alistar: You should probably just go with an if
<alistar> thats psudo obviously as it seems not to work
<alistar> bluebie: I have a larger number of switches tho
resure has joined #ruby
<bluebie> alistar: regular expressions as far as I know aren't capable of dealing with multiple digit numbers in such a sensible way
<Xeago> I recorded my screen, made it transparent and overlayed it over the challenge
<alistar> bluebie: whats the benefit?
<Xeago> I don't notice a difference!
<bluebie> and when statements as far as I know can only do local or's, not nested ands
<JonnieCache> alistar: depending on how consistent the strings are, you might want to just chop off the last two characters and convert it to an integer
<bluebie> Xeago: IDK which level you're talking about?
<Xeago> and I don't know how to find out?
<Xeago> is there a variable I can inspect?
<bluebie> screenshot maybe?
<alistar> Some of my other matches are as simple as when /"devils.*" then "here we are"
<alistar> so i cant split off the integer and treat the same
chimay has quit [Ping timeout: 246 seconds]
<alistar> can i really only regex for chars or a range but not both then?
<JonnieCache> basically regex only deals with individual characters, it isnt really capable of dealing with multiple chars
<JonnieCache> so you can test if a single digit is say, within 1-5, but not if two digits are within 50-70
<alistar> so in that case i need regex + the range
<JonnieCache> you need to extract out all the digits, and convert them to an integer object
<Xeago> is it needed that I make 2 ripples on a level?
<bluebie> game.challenges.indexOf(game.challenge) if you want
<Xeago> looked at the challenges.js
<alistar> i see now id need a lot of regex to accomplish the same if doing it char by char
<JonnieCache> yeah
philcrissman has joined #ruby
<bluebie> Xeago: yes, you can need two ripples
<Xeago> 5
joshman_ has joined #ruby
<JonnieCache> alistar: you could do it by unioning regexes: http://www.ruby-doc.org/core-1.9.3/Regexp.html#method-c-union
<Xeago> is that the first that requires 2 ripples?
<JonnieCache> alistar: but theres no real point.
<JonnieCache> bluebie: it sounds like you should port this game to the ipad and cash in :)
<bluebie> I made this game years ago - I have no idea how to load a level by numeric index
<bluebie> JonnieCache: I did but it was horrible so I stopped
<bluebie> maybe i'll redo it some day in rubymotion and sparrow framework
<bluebie> … or I could just make a different game that's even better?
<bluebie> I don't think this one is very fun
<bluebie> it's difficult to make many levels for it
<bluebie> good ones anyway
<Xeago> the level after the 2 horizontal ones
<Xeago> level 6, 1 indexed
<Xeago> lightning bolt design
<bluebie> yep that ones hard :)
<alistar> JonnieCache: I got ya :) Say if I wanted to match a hostname and print a group the hostname belongs to where some hostnames i just need to match the text but others i need to match the numerical id at the end to determine the group what do you think would be the best way of doing this?
<bluebie> and it does require two ripples
<alistar> Or anyone else for that matter :)
<Xeago> bluebie, why not have it auto generated?
<bluebie> Xeago: that'd be pretty lame
nateberkopec has joined #ruby
<Xeago> I'd try 1000 generations in about a week, mark the good ones and we got new levels?
<JonnieCache> sounds like a job for mechanical turk
<bluebie> sounds boring
<bluebie> anyway
<bluebie> I wouldn't sell an app for money
<bluebie> don't want to work in computers
<bluebie> I don't enjoy programming
banisterfiend has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
<Xeago> :O
<Xeago> then what are you doing in #ruby?
<Xeago> culture?
<bluebie> I enjoy teaching and making things :)
<bluebie> and you guys are heaps cool
<alistar> H I can do this in the when then cant i for those hostnames i know need the digits checked/
<bnagy> wah australia flashback
<bnagy> alistar: take a deep breath, man
<alistar> sorry pidgin froze
Rochefort has quit [Remote host closed the connection]
Rochefort has joined #ruby
Rochefort has quit [Remote host closed the connection]
Rochefort has joined #ruby
<alistar> I get it now I evaluate the digits on those hostnames i have matching inside the then using an if statement :)
brianpWins has quit [Quit: brianpWins]
bradhe has joined #ruby
Shrink has quit [Ping timeout: 252 seconds]
wez has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
<JonnieCache> i once saw a really good tutorial showing how to make a state machine parser with ruby's case statement and regexes
<JonnieCache> it showed you how to do proper parsing with a stack and everything. unfortunately i think it may have been in a book
<alistar> seen
<JonnieCache> i always try and find it to show people in this situation but with no success. maybe i should write one...
banisterfiend has joined #ruby
larissa has joined #ruby
TheShadowFog has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
fastred has joined #ruby
mneorr has joined #ruby
lushious has quit [Ping timeout: 252 seconds]
wez has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
philcrissman has quit [Remote host closed the connection]
mikekelly has joined #ruby
fantazo has quit [Remote host closed the connection]
fantazo has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
banisterfiend` has joined #ruby
Guedes0 is now known as Guedes
Guedes has quit [Quit: Saindo]
Guest59387 has joined #ruby
Guest59387 has quit [Read error: Connection reset by peer]
banisterfiend has quit [Ping timeout: 244 seconds]
Guedes0 has joined #ruby
BiHi has joined #ruby
Guedes0 is now known as Guedes
Guedes has quit [Changing host]
Guedes has joined #ruby
justsee has quit [Quit: Leaving...]
ZachBeta has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
v0n has joined #ruby
v0n has quit [Client Quit]
zarubin has joined #ruby
fearoffish has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
resure is now known as resure_away
lkba has joined #ruby
vitoravelino is now known as `vitoravelino
johnjohnson has joined #ruby
gloomer has quit [Ping timeout: 240 seconds]
Shrink has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
jimeh3 has quit [Ping timeout: 240 seconds]
Rochefor_ has joined #ruby
Virunga is now known as LennyLinux
digitalcakestudi has joined #ruby
CodeFriar has joined #ruby
Rochefort has quit [Ping timeout: 246 seconds]
mneorr has quit [Quit: Leaving.]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
kay-z has quit [Ping timeout: 244 seconds]
justsee has quit [Quit: Linkinus - http://linkinus.com]
niklasb has joined #ruby
cantonic has quit [Quit: cantonic]
verto|off is now known as verto
jimeh3 has joined #ruby
sepp2k has joined #ruby
Morkel has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
aces1up has quit [Ping timeout: 252 seconds]
aces1up has joined #ruby
jimeh4 has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
jimeh3 has quit [Ping timeout: 272 seconds]
tk_ has joined #ruby
chendo_ has quit [Ping timeout: 244 seconds]
chendo_ has joined #ruby
rohit has joined #ruby
bradhe has joined #ruby
tomku has quit [Ping timeout: 245 seconds]
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
krawchyk has joined #ruby
Takehiro has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
jonathanwallace has quit [Remote host closed the connection]
Rochefor_ has quit [Ping timeout: 246 seconds]
xorgnak has joined #ruby
karakedi has joined #ruby
BrokenCog has quit [Quit: leaving]
tomku has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
frogprince_mac has joined #ruby
geekbri has joined #ruby
mneorr has quit [Client Quit]
CarlB_the_great has joined #ruby
troessner_ has quit [Quit: Leaving]
<alistar> Thanks for all the help everyone now have it inspecting the digits inside the case statement using an if after matching the digits
cantonic has joined #ruby
Taichou has quit [Remote host closed the connection]
kokainepizza has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
jmorton_ has joined #ruby
carloslopes has joined #ruby
dhruvasagar has joined #ruby
kokainepizza has quit [Client Quit]
invisime has joined #ruby
xyon has quit [Ping timeout: 246 seconds]
<invisime> #{time_zone_appropriate_greeting}, rubyists!
mneorr has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
ph^ has joined #ruby
jmorton_ has quit [Quit: jmorton_]
saschagehlich has quit [Quit: saschagehlich]
rohit has quit [Quit: Leaving]
snearch has quit [Quit: Verlassend]
LennyLinux has quit [Remote host closed the connection]
nopper has quit [Quit: ZNC - http://znc.sourceforge.net]
fastred has quit [Quit: fastred]
sagax has joined #ruby
sambio has joined #ruby
machty has joined #ruby
Spooner has joined #ruby
yasushi has joined #ruby
chussenot_ has joined #ruby
<Muz> NameError: undefined local variable or method `time_zone_appropriate_greeting' for main:Object
chussenot has quit [Read error: No route to host]
chussenot_ is now known as chussenot
Taichou has joined #ruby
Taichou has quit [Remote host closed the connection]
jarek has joined #ruby
qwerxy has quit [Quit: offski]
<shevy> ack
<shevy> when Muz copy pastes, he does not append a '.'
GoGoGarrett has joined #ruby
<Muz> It wouldn't be right to not copy-paste verbatim.
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
tommyvyo has joined #ruby
Jay_Levitt has quit [Quit: Jay_Levitt]
Rochefort has joined #ruby
cantbecool has joined #ruby
chimay has joined #ruby
Agis__ has joined #ruby
Axsuul has quit [Ping timeout: 264 seconds]
chimay has quit [Changing host]
chimay has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
<Agis__> hey guys, I've cloned a ruby gem in my local system and used this line in the bundler: gem 'github_api', :path => "~/Desktop/github" and did bundle update. I broke the gem so it wouldn't work (just to check) but it's still working, meaning it still gets the gem from rubygems probably. Any ideas?
<Agis__> these are my gem file http://pastie.org/4662012
sailias has quit [Quit: Leaving.]
<Agis__> in my app I simply do a require 'github_api'
qwerxy has joined #ruby
<JonnieCache> Agis__: is the gem actually in ~/Desktop/github or in a dir inside that dir?
<JonnieCache> :path has to point to the root of the gem
<Agis__> it's right there
<Muz> When you broke the gem, did you update the version in the gemspec?
<JonnieCache> Muz: if its using :path that doesnt matter
<Muz> Ah.
<JonnieCache> :path ignores versions and just loads what it finds in the dir
<JonnieCache> he didnt specify a version anyway
<Muz> Gemfile.lock preserves versions though.
<Agis__> no i didn't change the version
<JonnieCache> maybe you didnt break it properly?
tatsuya_o has joined #ruby
<Muz> What did you do to break it?
jonathanwallace has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
nopper has joined #ruby
nopper has quit [Excess Flood]
linoj has joined #ruby
<Agis__> I removed some .rb files completely, and the main one that loads all the modules etc (in lib/)
williamherry has joined #ruby
<Agis__> and the one that defines the method I'm using in my app
<Agis__> could it be this line in Gemfile.lock that causes this? github_api!
<Agis__> it's specified on DEPENDENCIES group
williamherry has quit [Client Quit]
v0n has joined #ruby
<JonnieCache> i dont think bundler goes to rubygems if it cant find it in your :path it just fails as far as i know
kobac has joined #ruby
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
karakedi has quit [Ping timeout: 246 seconds]
<JonnieCache> try inserting `puts "HELLO FROM #{__FILE__}"` into the gem's entry point
<JonnieCache> thats always a useful trick
heftig has quit [Quit: leaving]
atno has left #ruby ["Leaving..."]
heftig has joined #ruby
koshii has joined #ruby
<Agis__> which would be?
<koshii> Morning everyone
joshman_ has quit [Quit: Computer has gone to sleep.]
<JonnieCache> Agis__: the entry point is the "main file"
<JonnieCache> the one you require
<Agis__> oh yeah ok
nopper has joined #ruby
<Xeago> if I agree on something it's an agreeance, what's the proper word?
<Xeago> agreement?
<Muz> Yes.
<Xeago> derp
LBRapid has joined #ruby
<Agis__> ok did that, it didn't got print
uris has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
<JonnieCache> ok so that file isnt getting loaded
devdazed has quit [Quit: Bye]
heisenmink has joined #ruby
<JonnieCache> on the command line, type `bundle show github_api`
infinitiguy has joined #ruby
<JonnieCache> and that should show you the local path that its loading
jwbuurlage has quit [Read error: Connection reset by peer]
jwbuurlage_ has joined #ruby
<Agis__> it's /Users/kontext/Desktop/github
<JonnieCache> which is correct...
<Agis__> yes
<Agis__> strange
<JonnieCache> have you loaded bundler correctly in your app?
<JonnieCache> it might not be actually using bundler and just loading the normal rubygems way, which would obv ignore the gemfile
<Agis__> well I just created the Gemfile, and inserted these: http://pastie.org/4662012 and did a bundle
Takehiro has joined #ruby
<JonnieCache> in your app you have to load bundler
<Agis__> require 'bundler' ?
<JonnieCache> require "bundler/setup"
devdazed has joined #ruby
<Agis__> oh worked!!
<Agis__> thanks!
<JonnieCache> if you want to use groups in your gemfile its a bit different, see http://gembundler.com/bundler_setup.html
aristidesfl has quit []
chylli has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<Agis__> didn't know that I needed ti require this
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<Agis__> haven't seen it before actually in any gems or apps
<chylli> anyone can recommend a ruby rails editor ? or emacs mode ?
LBRapid has quit [Quit: Farewell.]
<JonnieCache> Agis__: you will never see it in a gem
<catphish> gedit, mate
alup has joined #ruby
<chylli> catphish: thanks
<JonnieCache> Agis__: there should never be any bundler related code in a gem, ever
<catphish> mate has a lot of rails helpers if you're on os x
<JonnieCache> chylli: sublime text is the bomb
<JonnieCache> <3 sublime
LBRapid has joined #ruby
<Agis__> JonnieCache: but all the gems has a Gemfile aren't they?
<chylli> thanks
<JonnieCache> Agis__: thats for the gems used to develop the gem, testing and so on
<koshii> Hey in Ruby Koans, where it asks me to do the triangle work, should I be editing the triangle.rb in src/ or in koans/ . When I tried finishing triangle.rb in koans it threw a different kind of error (no colors, ASCII logo).
jrist-afk is now known as jrist
deryl has quit [Quit: deryl]
Takehiro has quit [Ping timeout: 240 seconds]
<JonnieCache> the actual gem code that will be loaded by the app using that gem should never have bundler stuff in it, or rubygems stuff even
<JonnieCache> or things will break
<JonnieCache> its kind of confusing, i know. look at the source of your favourite gems to better understand it
ciopte7 has joined #ruby
xorgnak has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
tatsuya_o has joined #ruby
cantonic has quit [Quit: cantonic]
llaskin has joined #ruby
<llaskin> hey, what am I doing wrong here?
<llaskin> well lots hahah but i hit enter too fast
tdelam has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
thorncp has quit [Ping timeout: 272 seconds]
CodeFriar has quit [Quit: Leaving...]
<llaskin> http://www.url.com:/folder.gsub(/.*:.*(:)/, ':8080') #I want to replace the 2nd ":" with :8080
jerrad has joined #ruby
<llaskin> correction: 'http://www.url.com:/folder'.gsub(/.*:.*(:)/, ':8080') #I want to replace the 2nd ":" with :8080
relix has joined #ruby
CarlB_th_ has joined #ruby
thorncp has joined #ruby
jwbuurlage_ has quit [Read error: Connection reset by peer]
cantbecool has quit [Quit: Textual IRC Client: www.textualapp.com]
jwbuurlage has joined #ruby
ciopte7 has quit [Quit: ciopte7]
qwerxy has quit [Quit: offski]
qwerxy has joined #ruby
lushious has joined #ruby
vlad_starkov has joined #ruby
chimkan_ has joined #ruby
cantonic has joined #ruby
<canton7> 1. if you're just replacing one instance, use sub not gsub. 2. stuff.sub(/(?<!http):/, ':8080')
<canton7> llaskin, ^^
seanwash has joined #ruby
nim__ has quit [Ping timeout: 246 seconds]
the_jeebster has joined #ruby
xorgnak has joined #ruby
<llaskin> ty
llaskin has left #ruby [#ruby]
imami|afk is now known as banseljaj
infinitiguy has quit [Quit: Leaving.]
<Agis__> JonnieCache: however, if an app requires some gems, shouldn't it use bundler? for ex. this one https://github.com/Agis-/github-stats/blob/master/gem-stats.rb
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<JonnieCache> you specify the dependencies in the gemspec
xorgnak has quit [Remote host closed the connection]
mmitchell has joined #ruby
jwbuurlage has quit [Read error: Connection reset by peer]
jwbuurlage has joined #ruby
<Agis__> then when we should use bundler?
stopbit has joined #ruby
jasonkuhrt has joined #ruby
futini has joined #ruby
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 276 seconds]
<catphish> otherwise, you will need to ping between 2 servers and use a packet sniffer to see where things are going missing
<catphish> wrong chan
<JonnieCache> Agis__: bundler is for full apps that load other gems
<mdelcx> catphish: lol sounds more fun
<JonnieCache> and for *development* dependencies of gems, which are loaded when youre writing the gem
<JonnieCache> rspec and so on
xorgnak has joined #ruby
abrausch has joined #ruby
<catphish> i'm something of a jack of all server trades
xorgnak has quit [Remote host closed the connection]
joshman_ has joined #ruby
sonkei has joined #ruby
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
awarner has joined #ruby
llaskin has joined #ruby
<llaskin> :log
<llaskin> wasn't this logged?
<llaskin> .log
thaz has quit [Quit: thaz]
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
busybox42 has quit [Ping timeout: 244 seconds]
xorgnak has joined #ruby
busybox42 has joined #ruby
kobac has quit [Remote host closed the connection]
iori has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 248 seconds]
<llaskin> canton, that is throwing an error of an undefined (?...) sequence
Morkel has joined #ruby
sailias has joined #ruby
<canton7> llaskin, ah, are you on ruby 1.8?
CodeFriar has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
<llaskin> yes sir
<canton7> righto, there's no negative lookbehind in that regex engine
clj_newb has joined #ruby
<llaskin> so no way to do it?
Morkel has quit [Client Quit]
xorgnak has quit [Remote host closed the connection]
<canton7> there is, just cleaning it up, 2 ticks
xorgnak has joined #ruby
verbad has joined #ruby
cantonic has quit [Quit: cantonic]
<llaskin> i tried doing it http://pastie.org/4662347 this way....but i get an endless loop for some reason
<canton7> 'http://www.url.com:/folder'.sub(/^(.*:.*):(.*)$/){ "#$1:8080#$2" } was the best I can come up with
lolmaus has quit []
Morkel has joined #ruby
<llaskin> any idea why my way sent me for a loop?
<canton7> hrm, your pastie works for me. must be another ruby 1.8 thing
xorgnak has quit [Remote host closed the connection]
adelcampo has joined #ruby
nim__ has joined #ruby
xorgnak has joined #ruby
AlbireoX has joined #ruby
internet_user has joined #ruby
xorgnak has quit [Remote host closed the connection]
adelcampo is now known as doritostains
tatsuya_o has quit [Remote host closed the connection]
xorgnak has joined #ruby
<Mon_Ouie> You don't need a block, you can use \1 and \2 in the replacement string
<Mon_Ouie> '\1:8080\2'
mmitchell has quit [Remote host closed the connection]
<canton7> ooh, very good point thanks!
mmitchell has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
johnjohnson has quit [Ping timeout: 240 seconds]
nari has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
chimkan_ has quit [Quit: chimkan_]
relix has quit []
bradhe has joined #ruby
rcassidy has joined #ruby
yeggeps has joined #ruby
verbad has quit []
johnjohnson has joined #ruby
s1n4 has quit [Quit: leaving]
dcope has left #ruby [#ruby]
mahmoudimus has joined #ruby
xorgnak has quit [Remote host closed the connection]
heisenmink has quit [Remote host closed the connection]
Takehiro has joined #ruby
xorgnak has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
xorgnak has quit [Remote host closed the connection]
jerrad has quit [Quit: Linkinus - http://linkinus.com]
xorgnak has joined #ruby
xbayrockx has left #ruby [#ruby]
dhruvasagar has quit [Ping timeout: 264 seconds]
Moggle has quit [Ping timeout: 252 seconds]
sonkei has quit [Quit: Computer has gone to sleep.]
xorgnak has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 268 seconds]
snuglepuss has joined #ruby
xorgnak has joined #ruby
cantonic has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
dkissell has joined #ruby
jwbuurlage has quit [Read error: Connection reset by peer]
jwbuurlage_ has joined #ruby
KevinSjoberg has joined #ruby
tatsuya_o has joined #ruby
xorgnak has quit [Remote host closed the connection]
Jay_Levitt has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
chimkan_ has joined #ruby
Synthead has joined #ruby
<KevinSjoberg> Is there a way to compare that two arrays are equal without taking order into consideration? I'm using minitest.
xorgnak has joined #ruby
Jay_Levitt has quit [Remote host closed the connection]
Jay_Levitt has joined #ruby
<heftig> KevinSjoberg: sort both.
<JonnieCache> array1.all? {|e| array2.include? e}
<Xeago> every item shows up in both arrays?
<JonnieCache> but that will be really really slow
<JonnieCache> basically, dont do that
<canton7> JonnieCache, and will return true if array2 contains items not in array1
<KevinSjoberg> JonnieCache: I got it. array =~ array
<heftig> JonnieCache: that will just test whether array2 is equal or a superset of array1
<Xeago> only nnlog(n) jonnie
<JonnieCache> good point. i didnt read the question properly/i suck
<Xeago> just do it the other way around aswell :)
<heftig> KevinSjoberg: what? array doesn't implement that
xclite has joined #ruby
<canton7> Xeago, or check the lengths are equal too
<KevinSjoberg> heftig: I noticed, didn't work. I think it's RSpec specific.
<JonnieCache> regardless, if the order of your collection doesnt matter maybe you should be using a set, not an array
<bluebie> KevinSjoberg: Maybe just convert them to a Set
<bluebie> Set's are inherantly unordered
<Xeago> how do you make a set :O?
<JonnieCache> Set.new
llaskin has left #ruby [#ruby]
SCommette has joined #ruby
<bluebie> Set.new(my_array)
<bluebie> Set is in the standard library, so require 'set' first
<heftig> yeah, but they're also unique
<heftig> so Set[1,1] == Set[1]
<bluebie> ah yeah is that a problem?
<heftig> KevinSjoberg: array1.sort == array2.sort
<Xeago> >> {1,3,4}.class
<al2o3cr> -e:1:in `eval': (eval):1: syntax error, unexpected ',', expecting tASSOC (SyntaxError), {1,3,4}.class, ^, from -e:1:in `<main>'
<Xeago> buhu :<
<bluebie> KevinSjoberg: Do you need your arrays to have several of the same thing?
<KevinSjoberg> heftig: Yeah, that will do it.
<heftig> >> require 'set'; Set[1,2,3]
<al2o3cr> (Set) #<Set: {1, 2, 3}>
<JonnieCache> heftig: that has the potential to be slow as shit as well
<Xeago> >> require 'set'; {1,3,4}.class
<al2o3cr> -e:1:in `eval': (eval):1: syntax error, unexpected ',', expecting tASSOC (SyntaxError), require 'set'; {1,3,4}.class, ^, from -e:1:in `<main>'
<KevinSjoberg> bluebie: No, a Set seem to be sufficient here.
<Xeago> is there any syntactic sugar for set?
<Xeago> I assume not because it is not in core
<JonnieCache> nope. thats why nobody uses it
<heftig> Xeago: no.
<Xeago> that's a bummer
tagrudev has quit [Quit: yolo]
bbttxu has joined #ruby
<heftig> hey, i do use sets
<heftig> set.include? foo is much faster than array.include? foo
<Xeago> howcome?
<heftig> set uses a hash to store
xorgnak has quit [Remote host closed the connection]
<heftig> Set[1,2,3] is internally a hash {1 => true, 2 => true, 3 => true}
xorgnak has joined #ruby
<bluebie> neat
<bluebie> that's exactly how I'd do it if I were inventing a set!
<bluebie> (it's how I do sets in javascript!)
<Xeago> >> require 'set'; Set[1,2,3].to_hash
<al2o3cr> -e:1:in `eval': undefined method `to_hash' for #<Set: {1, 2, 3}> (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<Xeago> >> require 'set'; Set[1,2,3].to_h
<al2o3cr> -e:1:in `eval': undefined method `to_h' for #<Set: {1, 2, 3}> (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<Xeago> derp
<Xeago> >> require 'set'; Hash[Set[1,2,3]]
<al2o3cr> -e:1:in `eval': odd number of arguments for Hash (ArgumentError), from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<JonnieCache> that conversion wouldnt make sense
<heftig> >> require 'set'; Set[1.2.3].instance_variable_get(:hash)
<al2o3cr> -e:1:in `eval': (eval):1: no .<digit> floating literal anymore; put 0 before dot (SyntaxError), require 'set'; Set[1.2.3].instance_variable_get(:hash), ^, (eval):1: syntax error, unexpected tINTEGER, require 'set'; Set[1.2.3].instance_variable_get(:hash), ^, from -e:1:in `<main>'
<heftig> >> require 'set'; Set[1,2,3].instance_variable_get(:hash)
<al2o3cr> -e:1:in `eval': `hash' is not allowed as an instance variable name (NameError), from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<heftig> er, whoops
<heftig> >> require 'set'; Set[1,2,3].hash
<al2o3cr> (Fixnum) -3300369963456675276
<rking> Hehe
<heftig> er
<heftig> set defines an attr_reader :hash
<heftig> >> require 'set'; Set[1,2,3].instance_variable_get(:@hash)
<al2o3cr> (Hash) {1=>true, 2=>true, 3=>true}
<heftig> there we go
<bluebie> yay
heisenmink has joined #ruby
<Xeago> dat be cool
<JonnieCache> i do that shit all the time, accidentally overriding the hash method and stuff
<JonnieCache> really annoying
<Xeago> Is this proper: "Documentation should not be made meaningless and must thus have a clear purpose."?
<JonnieCache> tbh that whole sentence is pointless
<Xeago> should be without meaning, right?
<JonnieCache> you may as well say "hitting my head is bad because it hurts"
<heftig> you should not use purple prose when writing documentation
<Xeago> I know
<Xeago> what is purple prose?
<heftig> very... flowery writing
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
<workmad3> Xeago: that entire sentence can be replaced with 'Documentation should have a clear purpose'
jimeh4 has quit [Ping timeout: 240 seconds]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
<workmad3> Xeago: the rest is just meaningless jibber-jabber :P
<bluebie> I like writing documentation because I get to put in lots of in jokes
<Xeago> which is kinda the point
<Xeago> it has to be buffed up alot
<workmad3> Xeago: in which case you're lying
<Xeago> because in the end, it's just concludes to working
xyon has joined #ruby
<Xeago> workmad3: why?
<Xeago> yea contradiction
<workmad3> Xeago: because your statement is that documentation should not be meaningless, but you're adding in a load of meaningless cruft
jimeh4 has joined #ruby
<Xeago> which makes that documentation not meaningless
<Xeago> :D?
<upasna> I'm getting errors on running this program, http://pastie.org/private/bs9uildvdxqdvtfn3qugyg.Need help!
<bluebie> upasna: I'm getting errors clicking your link!
<bluebie> File not found!
<workmad3> Xeago: it's so vague and meandering as to be meaningless
<bluebie> workmad3: I like that it's ironic
ananthakumaran has joined #ruby
<upasna> yeah! let me check
<workmad3> bluebie: I like that he's trying to claim it isn't :)
mahmoudimus has joined #ruby
<Xeago> well, because it is, it isn't.
<upasna> that's the link
baroquebobcat has joined #ruby
<bluebie> upasna: learncodeythehardway.org is not a website
<bluebie> you typod the domain
<bluebie> and it couldn't find it
<bluebie> because it doesn't exist!
<bluebie> so there you go :D
catphish has left #ruby ["Leaving"]
Rochefort has quit [Remote host closed the connection]
baroquebobcat has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
wmoxam has joined #ruby
Rochefort has joined #ruby
<upasna> bluebie: yeah, thanks
<Xeago> workmad3: however, meaning and purpose are distinctive aspects of the documentation
krawchyk has quit [Ping timeout: 272 seconds]
krawchyk has joined #ruby
<bluebie> Xeago: Padding out your text with words which add no meaning and only dilute information is a bad thing and you should feel bad for doing it
<Xeago> They cover two different aspects of the noun
<bluebie> I don't care if you think it's ironic or not, it's a misuse of other people's time and patience
xorgnak has quit [Remote host closed the connection]
<Xeago> my school making me write stuff like this is misuse of my time :\
<Xeago> in any case, thanks for the help, i'll go with the short version :)
<bluebie> yay!
specialGuest has quit [Ping timeout: 246 seconds]
<Xeago> well, I'll go with: Documentation should serve a clear purpose
<bluebie> sounds good to me
xorgnak has joined #ruby
yasushi has quit [Remote host closed the connection]
kjellski_ has joined #ruby
xorgnak has quit [Remote host closed the connection]
abrausch has quit [Quit: abrausch]
jonathanwallace has quit [Ping timeout: 272 seconds]
mark_locklear has quit [Remote host closed the connection]
pricees has joined #ruby
machty has quit [Ping timeout: 276 seconds]
Kneferilis has joined #ruby
enroxorz-work has joined #ruby
enroxorz-work is now known as Guest34300
Guest34300 has quit [Client Quit]
xorgnak has joined #ruby
SCommette_ has joined #ruby
gilesw has joined #ruby
xorgnak has quit [Remote host closed the connection]
<gilesw> heya rubiers
<gilesw> how do I set the search path for rdoc on the command line?
bluebie has quit [Quit: Linkinus - http://linkinus.com]
Criztian has quit [Ping timeout: 248 seconds]
<gilesw> so I can automatically pick /var/lib/gems/1.8/doc/<rubygem> docs
deryl has joined #ruby
SCommette has quit [Ping timeout: 246 seconds]
SCommette_ is now known as SCommette
plow has joined #ruby
heisenmink has quit [Remote host closed the connection]
<plow> hi, I've got a rails question, hope someone can help
<plow> My navigation has two levels, it looks a lot like this http://dribbble.com/shots/102006-Navigation-for-project-management-app, do I use one top-level layout, and a view for each mode, or is there a better way?
Criztian has joined #ruby
vectorshelve has quit [Quit: Page closed]
BSaboia__ has joined #ruby
<banisterfiend`> plow: Try a rails channel first #rubyonrails
<banisterfiend`> plow: this isn't really a rails chan
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
<plow> thanks
clj_newb has quit [Ping timeout: 245 seconds]
enroxorz has joined #ruby
plow has left #ruby [#ruby]
<enroxorz> hey guys, what is the ruby equiv of <> ?
phantasm66 has joined #ruby
xorgnak has joined #ruby
<banisterfiend`> enroxorz: !=
xorgnak has quit [Remote host closed the connection]
<enroxorz> thanks
rippa has joined #ruby
yasushi has joined #ruby
<banisterfiend`> enroxorz: what language uses <> ?
<Xeago> sql
<Xeago> windows batch shell iirc
BSaboia has quit [Ping timeout: 246 seconds]
<enroxorz> SQL
<enroxorz> im converting a sproc to business logic and i couldnt remember what <> was
<banisterfiend`> enroxorz: but i mean which proper programming language were you using that used <> ?
Guest3479 is now known as robacarp
<enroxorz> banisterfiend`: T-SQL to be exact.
<banisterfiend`> ah ok..
jprovazn is now known as jprovazn_away
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
<enroxorz> there is a SPROC that is taxing our DB when ran, so I am moving it over to the model.
eikko is now known as eikko-akem
mahmoudimus has quit [Quit: Computer has gone to sleep.]
CodeFriar has quit [Quit: Leaving...]
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
tatsuya_o has joined #ruby
und3f has quit [Quit: Leaving.]
tk_ has quit [Quit: ばいばい]
xorgnak has joined #ruby
adeponte has joined #ruby
dmiller has quit [Remote host closed the connection]
bradhe has joined #ruby
<JonnieCache> enroxorz: wont it be faster in the database than in ruby
baroquebobcat has quit [Quit: baroquebobcat]
mikepack has joined #ruby
<enroxorz> JonnieCache: The goal is to get as much logic outside of the DB. Fat Models instead of taxing the DB.
Jay_Levitt has quit [Quit: Jay_Levitt]
mark_locklear has joined #ruby
Morkel has quit [Quit: Morkel]
Jay_Levitt has joined #ruby
enroxorz is now known as enroxorz_
enroxorz has joined #ruby
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
enroxorz_ has quit [Quit: Page closed]
bradhe has quit [Ping timeout: 252 seconds]
<Xeago> Is this proper english: "Due to the possibility of the language barrier beeing an issue, conversations might stagger but they should nonetheless still achieve their desired result."
<Xeago> it's a horrible long sentence :\
xorgnak has quit [Remote host closed the connection]
<canton7> "beeing"
<Xeago> blergh, again
seanyo has joined #ruby
xorgnak has joined #ruby
sepp2k has quit [Quit: Leaving.]
<Xeago> thanks for spotting that one, reminds me to replaceall my docu..
xorgnak has quit [Remote host closed the connection]
<canton7> i'd also s/but they/but
axl_ has joined #ruby
<canton7> and s/might/may (but there's not much in that one)
billiam has joined #ruby
CodeFriar has joined #ruby
<canton7> and maybe also s/nonetheless/ (in the interests of shortening it)
truekonrads has joined #ruby
<Xeago> isn't may about permission?
jonathanwallace has joined #ruby
<Xeago> I mahmm
<Xeago> nvm
<canton7> maybe :P as a native speaker, I've never learnt the theory
<Xeago> may seems a better fit
<Xeago> rofl
<truekonrads> Hello. How can I specify the local interface for a tcp-connection in EventMachine?
<truekonrads> I want to have the connection originate from a specific source IP
nwest has joined #ruby
<banisterfiend`> Xeago: what do u mean by conversations?
<banisterfiend`> do you really mean to say conversations?
<banisterfiend`> Xeago: what's your native language btw
<Xeago> dutch, living in sweden atm
Jrz has joined #ruby
<Xeago> and just got my temporary permi
<Xeago> t
<Xeago> "A student demonstrates in practice to be able to a discuss in a result-oriented dialogue."
maesbn_ has joined #ruby
seanyo has quit [Read error: Connection reset by peer]
<Xeago> my sentence is a comment on theirs
maesbn has quit [Remote host closed the connection]
<banisterfiend`> Xeago: i thought the dutch had great english :P
<Xeago> I am nitpicking
ph^ has joined #ruby
<Xeago> the type of stuff I am writing is just plain horrible
nari has quit [Ping timeout: 246 seconds]
<Xeago> legal-text is easier to read
seanyo has joined #ruby
<banisterfiend`> well legal stuff is pithy, the stuff your'e pasting here is kind of verbose and awkward
<Xeago> legal stuff makes sense
evilsushi has quit [Read error: Connection reset by peer]
<Xeago> this doesn't
aganov has quit [Quit: aganov]
alvaro_o has joined #ruby
<Xeago> this is all just redundant
specialGuest has joined #ruby
<banisterfiend`> Xeago: who wrote this stuff?
<Xeago> a committee at my school
macmartine has joined #ruby
<banisterfiend`> haha
<Xeago> committee of examniers
<Xeago> without the typo
<banisterfiend`> and you have to rewrite it?
<Xeago> I have to comment about it, and then specify how I am achieving it
<Xeago> or fullfilling that performance indicator
xorgnak has joined #ruby
kuzushi has quit [Remote host closed the connection]
<Xeago> http://blog.xeago.nl/graduation/PI/english.txt or .html if you prefer that
maesbn_ has quit [Ping timeout: 246 seconds]
jjbohn has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
djbender has joined #ruby
<Xeago> I like it when urls in automated quit messages don't work..
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
Jrz has quit [Quit: Computer has gone to sleep.]
alvaro_o_ has joined #ruby
fragmachine has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
virtuose has joined #ruby
<fragmachine> can anyone tell me why this line hangs my script? `xclip -selection clipboard -in #{tmpfile.path}`
vlad_starkov has quit [Remote host closed the connection]
<fragmachine> sorry
Agis__ has quit [Quit: Agis__]
<fragmachine> `xclip -selection clipboard -i #{tmpfile.path}`
`vitoravelino is now known as vitoravelino`afk
<Xeago> what os are you running?
CodeFriar has quit [Quit: Leaving...]
<fragmachine> ubuntu
<rking> fragmachine: Divide and conquer.
dkissell has quit [Quit: dkissell]
alvaro_o has quit [Ping timeout: 260 seconds]
jgrevich has joined #ruby
<rking> There are several things. One I'd just use the clipboard gem.
djbender has quit [Quit: djbender]
<rking> Two I'd not use backticks for that — there's no output to capture, is there?
<fragmachine> no I had it as exec before
<rking> Three I'd make it echo first. I'm nto sure about that tmpfile.path
<rking> Exec is definitely not right, that replaces the current process.
<fragmachine> I didn't know there was a gem though, that's cool
<fragmachine> oh no wonder
<rking> Always default to array-args system
adeponte has quit [Remote host closed the connection]
<rking> system %W(echo xclip -selection clipboard -i #{tmpfile.path})
<fragmachine> /ignore * JOINS PARTS QUITS MODES NICKS
burgestrand has joined #ruby
<fragmachine> I get an error "wrong first argument"
<Hanmac> about the ruby dev kit on windows ... what does it include?
wpaulson has joined #ruby
<rking> fragmachine: Sorry, put a * in front of the %W to splat it out.
mneorr has joined #ruby
CarlB_the_great has joined #ruby
<fragmachine> hmm that just echoes the command but it doesn't look like it runs it
<rking> It won't. That's part of my division and conqueration plan.
<fragmachine> aha!
<rking> Does it look right? Can you paste it into a shell and it work there?
wpaulson has quit [Client Quit]
wobr has quit [Ping timeout: 252 seconds]
<fragmachine> yea it looks good to me
CarlB_th_ has quit [Ping timeout: 246 seconds]
mneorr has quit [Client Quit]
jasonkuhrt has quit [Quit: Leaving...]
<rking> That same line works perfectly from the shell?
mneorr has joined #ruby
koshii has quit [Read error: Operation timed out]
<fragmachine> it looks like it would, the script makes a tempfile so it's deleted when the script finishes
<fragmachine> it expands to xclip -selection clipboard -i /tmp/redditFormatter.2012-09-0423:29:26+080020120904-5143-p46dlb
koshii has joined #ruby
<Xeago> 'Traditionalists insist that one should distinguish between may (present tense) and might (past tense) in expressing possibility: I may have some dessert after dinner if I'm still hungry | I might have known that the highway would be closed because of the storm. In casual use, though, may and might are generally interchangeable: they might take a vacation next month | he may have called earlier, but the answering machine was broken."
<rking> Do $stdin.readline after that echo line so it pauses there, then run that in another terminal.
mklappstuhl has quit [Ping timeout: 246 seconds]
<Xeago> I might have never known that if I wasn't so curious
<fragmachine> that's genius I'll give it a go
Rochefort has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
juarlex has joined #ruby
<rking> Xeago: I may still fail to use it properly.
vlad_starkov has joined #ruby
heisenmink has joined #ruby
<fragmachine> I might too
<fragmachine> where do I put the xclip -selection clipboard -i /tmp/redditFormatter.2012-09-0423:36:19+080020120904-5157-fm8hwc
vitoravelino`afk is now known as `vitoravelino
<fragmachine> oops
<fragmachine> $stdin.readline?
<fragmachine> on the next line from the system call?
punkrawkR has joined #ruby
<rking> Yes.
<rking> Then to finish it you can either Ctrl+c to kill it or hit enter to let it continue.
chylli has quit [Remote host closed the connection]
Rochefort has joined #ruby
<fragmachine> I paste in the command, the script closes and nothing seems to have happened
<fragmachine> the text isn't in the clipboard
MasterIdler_ has joined #ruby
<rking> Hrm, how are you testing that it's in the clipboard?
areil has quit [Remote host closed the connection]
<fragmachine> just by trying to paste into firefox
<fragmachine> here's the whole thing http://pastie.org/4662856
<fragmachine> it works when I just use the command line
jwbuurlage_ has quit [Read error: Connection reset by peer]
johnlcox has joined #ruby
jwbuurlage has joined #ruby
<Xeago> 31th or 31st[h]?
<rking> fragmachine: Wow, it works with that jacked up bangpath?
<rking> Xeago: st
<rking> "env/" ☜
<fragmachine> the shebang?
yxhvuud has joined #ruby
heisenmink has quit [Remote host closed the connection]
<fragmachine> yea I dunno why that is there like that
<fragmachine> it doesn't work
<fragmachine> it was supposed to find the rvm version I'm using instead of system ruby I think
<fragmachine> #!/bin/ruby is better?
yasushi has joined #ruby
heisenmink has joined #ruby
<Xeago> #!/bin/env ruby is what I always use
<rking> fragmachine: You … no, #!/usr/bin/env ruby
yxhuvud has quit [Ping timeout: 252 seconds]
<fragmachine> oh
<Xeago> or wherever bin was..
MasterIdler_ has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Remote host closed the connection]
rakl has joined #ruby
<Xeago> what exactly does env do?
<rking> Xeago: Interesting. I wonder if the /usr is somehow beneficial. I'd like to golf it down if it isn't.
<Xeago> it is
MasterIdler_ has joined #ruby
<Xeago> /bin has different stuff
<Xeago> atleast on my machine it is needed
<rking> fragmachine: Anyway you have to tmpfile.close before you do the system
<fragmachine> ok now I get an error "can't convert nil into string"
<rking> fragmachine: That's probably because you forgot to give it an arg. =)
<Xeago> only system shell commands are in /bin
<Xeago> like cd pwd ls
<fragmachine> wait fixed that
<fragmachine> lol yea...
<rking> Xeago: I do have /bin/env
jorge_ has joined #ruby
<Xeago> :O
<Xeago> guess your system uses more ruby than mine
<rking> fragmachine: You may want to give it a better handling of that. Even something as simple as: fail "No args" unless ARGV.size > 0
<fragmachine> this is true, but once I've got the basic thing working I can fix that up
specialGuest has quit [Ping timeout: 246 seconds]
<rking> The env in this bangpath use is just a generic foo thing to let it pick up "ruby" from $PATH rather than from a specific place.
yasushi has quit [Ping timeout: 248 seconds]
rakl has quit [Client Quit]
larissa has quit [Quit: Leaving]
Criztian has quit [Remote host closed the connection]
<Hanmac> rking "/bin/env" do not exist on my system ...
<Xeago> try which env
Vert has quit [Remote host closed the connection]
<fragmachine> maybe I should just try the gem, can you remember what it was called?
wmoxam has quit [Quit: leaving]
davidcelis has quit [Quit: K-Lined.]
wmoxam has joined #ruby
<Hanmac> Xeago i knew where my env is ... i only said that "#!/bin/env ruby" is maybe wrong
<Xeago> is it possible to have manual and numbers in a html ol ?
<Xeago> e.g. manual supplied via value="3"
carloslopes has quit [Ping timeout: 268 seconds]
<Xeago> wait
<Xeago> I can just wrap that li in an li?
<rking> Hanmac: K, thanks. I'll keep /usr/bin/env'ing.
<johnjohnson> Xeago: what?
tatsuya_o has quit [Remote host closed the connection]
specialGuest has joined #ruby
heisenmink has quit [Remote host closed the connection]
eykosioux has joined #ruby
mmitchell has quit [Remote host closed the connection]
bradhe has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
<Xeago> I'll be snipping some of the LI out
<Xeago> and want a normal numbering, aswell as a manual numbering
eykosioux has quit [Client Quit]
<fragmachine> ok well thanks for your help guys I gotta go
fragmachine has quit [Quit: leaving]
<Xeago> without having the number part of the li's content
eykosioux has joined #ruby
tatsuya_o has joined #ruby
<johnjohnson> Xeago: ol provides numbering by default - what do you want that's custom?
<Xeago> having 2 sets of numbering
<Xeago> look at the source for the link, that numbering is hardcoded
<Xeago> I can move li;s up or down within the ol, without changing the numbering
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
<johnjohnson> I suppose then you could wrap wrap the ol with an li, or visa versa
<johnjohnson> Although that's a strange requirement ;p
jonathanwallace has quit [Ping timeout: 272 seconds]
jasonkuhrt has joined #ruby
spopescu has joined #ruby
mmitchell has joined #ruby
jonathanwallace has joined #ruby
CodeFriar has joined #ruby
zommi has quit [Quit: Leaving.]
baphled has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
daniel_hinojosa has joined #ruby
jasonkuhrt has quit [Client Quit]
timonv has quit [Remote host closed the connection]
krawchyk has quit [Read error: Connection reset by peer]
jxf has joined #ruby
krawchyk has joined #ruby
samflores has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
Rochefort has quit [Remote host closed the connection]
samflores has left #ruby [#ruby]
jlogsdon has joined #ruby
eldariof has quit [Ping timeout: 240 seconds]
senny has quit [Remote host closed the connection]
jso has joined #ruby
andrewstewart has joined #ruby
khakimov has joined #ruby
jonathanwallace has joined #ruby
pefavre has joined #ruby
pefavre has left #ruby [#ruby]
yasushi has joined #ruby
invisime has quit [Read error: Connection reset by peer]
s1n4 has joined #ruby
hadees has quit [Quit: hadees]
invisime has joined #ruby
diegoviola has joined #ruby
blazes816 has joined #ruby
robbyoconnor has quit [Ping timeout: 268 seconds]
sonkei has joined #ruby
alanp has quit [Remote host closed the connection]
CodeFriar has quit [Quit: Leaving...]
blazes816 has quit [Client Quit]
blazes816 has joined #ruby
mmitchell has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
truekonrads has quit [Read error: Connection reset by peer]
chimay has quit [Quit: WeeChat 0.3.9-rc1]
`vitoravelino is now known as vitoravelino
yasushi has quit [Remote host closed the connection]
matrixise has quit [Ping timeout: 246 seconds]
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
mahmoudimus has joined #ruby
sonkei has quit [Ping timeout: 246 seconds]
adeponte has joined #ruby
geggam has joined #ruby
gtuckerkellogg has joined #ruby
maletor has joined #ruby
jarek has left #ruby [#ruby]
jgrevich_ has joined #ruby
hadees has joined #ruby
heisenmink has joined #ruby
Chryson has joined #ruby
savage- has joined #ruby
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich_ is now known as jgrevich
davidcelis has joined #ruby
ping-pong has quit [Ping timeout: 245 seconds]
methodmat312 has joined #ruby
<methodmat312> Hello
rcloak has joined #ruby
<methodmat312> I am using a module in several classes, and I wanted to know if there was a way to list all the classes where the module is included?
resure_away is now known as resure
artOfWar has joined #ruby
daniel_hinojosa has quit [Read error: Connection reset by peer]
<Xeago> do a file search, preferably using grep
daniel_hinojosa has joined #ruby
<Xeago> err
<Xeago> ack
<Xeago> instead of grep
zii is now known as hahaha
<methodmat312> thanks xeago, so there isn't a way to do inside ruby while the code is running?
<methodmat312> without making system call?
<Xeago> no idea, why would you want it durin runtime?
<methodmat312> rails thing, i have a rake task that i want to run on all classes that include this module and i dont want to give it a specific list of classes
<JonnieCache> methodmat312: theres a callback method you can define on your module called included
<JonnieCache> that gets called whenever the module is included
<methodmat312> sweet thanks jonniecache
<JonnieCache> you can use that to build your own list and keep track of things
<methodmat312> that will do!
sepp2k has quit [Ping timeout: 246 seconds]
methodmat312 has quit [Quit: Leaving]
levieraf has joined #ruby
burgestrand has quit [Quit: Leaving.]
resure is now known as resure|haskell
tiripamwe has joined #ruby
xorgnak has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
xorgnak has joined #ruby
lampe2 has joined #ruby
johnjohnson has quit []
Xeago has quit [Ping timeout: 264 seconds]
<levieraf> hi guys
<levieraf> I have a question
<davidcelis> I have an answer
<davidcelis> ha ha ha just kidding, i don't know ruby
philcrissman has joined #ruby
cbuxton has joined #ruby
<rking> levieraf: Yes he does. Privmsg him incessantly.
ping-pong has joined #ruby
<davidcelis> rking: stop revealing my secrets
QaDeS has quit [Ping timeout: 246 seconds]
<levieraf> davidcelis, I m right now learning sinatra
<levieraf> my version sinatra is 1.3.3 and ruby version is 1.9.3p194 so, the problem is when I use require 'rack-flash'
chimkan_ has quit [Quit: chimkan_]
<levieraf> and then run with e.q. ruby recall.rb
<levieraf> the message is "!! Unexpected error while processing request: undefined method `<<' for nil:NilClass"
<davidcelis> well apparently you're calling << on nil
<davidcelis> but we can't know that without a gist of relevant code and the full trace
Jrz has joined #ruby
dmiller has joined #ruby
chimkan_ has joined #ruby
stkowski has joined #ruby
<canton7> (this has been answered in #sinatra. Please mention if you're cross-posting in future)
perun_ has joined #ruby
cakehero has joined #ruby
mneorr has quit [Quit: Leaving.]
Drewch has joined #ruby
fbernier has joined #ruby
IrishGringo has joined #ruby
<koshii> What is #sinatra all about?
shevy has quit [Ping timeout: 248 seconds]
<davidcelis> koshii: take a wild guess
kuzushi has joined #ruby
sepp2k has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 272 seconds]
Tref has quit [Quit: Tref]
linuxsable has joined #ruby
upasna is now known as sweet_kid
statarb3 has quit [Quit: Leaving]
clj_newb has joined #ruby
<levieraf> I have a question
<levieraf> how I can see the packe associate with a gem
SirRamon_ has joined #ruby
<levieraf> e.q as aptitude show Package
<levieraf> but using gem
<levieraf> something as gem show ..
<levieraf> exist any commond for that?
linuxsable has quit [Quit: linuxsable]
<levieraf> I can see the dependents that have a any gem
<levieraf> is posible that?
AlbireoX has quit [Read error: Connection reset by peer]
<davidcelis> read the man pages for gem
<davidcelis> gem --help
AlbireoX`Laptop has joined #ruby
linuxsable has joined #ruby
sambio has quit [Ping timeout: 246 seconds]
machty has joined #ruby
Chryson has quit [Quit: Leaving]
hipertracker has quit [Quit: hipertracker]
Advocation has joined #ruby
qwerxy has quit [Quit: offski]
<levieraf> davidcelis, thanks man
Spooner has quit [Ping timeout: 245 seconds]
shevy has joined #ruby
leoncamel has joined #ruby
TheShadowFog has quit [Read error: Connection reset by peer]
bluenemo has quit [Remote host closed the connection]
johnlcox_ has joined #ruby
baroquebobcat has joined #ruby
johnlcox has quit [Ping timeout: 245 seconds]
johnlcox_ is now known as johnlcox
enroxorz has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
heisenmink has quit [Remote host closed the connection]
mmitchell has joined #ruby
* Hanmac can install gems via apt
* davidcelis can install gems via brew
BSaboia has joined #ruby
gloomer has joined #ruby
gloomer has quit [Client Quit]
leoncamel has quit [Ping timeout: 260 seconds]
<shevy> hmmmm
* shevy can install gems via wget
cbuxton has quit [Quit: Leaving.]
moted has quit [Remote host closed the connection]
bricker88 has joined #ruby
haf has joined #ruby
BSaboia__ has quit [Ping timeout: 246 seconds]
<bricker88> I have a method called `linked`, and I just want to also be able to called `linked?` for clarity in some cases. Is there any disadvantage to using `alias_method` over just `def linked?; linked; end;`
<bricker88> I read that alias_method actually makes a copy of the method, but I'm not sure exactly what that means.
mascool has joined #ruby
mohits has quit [Ping timeout: 246 seconds]
xorigin has quit [Quit: leaving]
Takehiro has quit [Remote host closed the connection]
jxf has quit [Quit: Leaving]
<haf> Hi guys, I was wondering if someone could help me? I'm looking to get some test logging going, because of a failing test, and was wondering what is the best way to do logging in ruby/sinatra/rack?
Takehiro has joined #ruby
eignerchris has joined #ruby
sneakyness_wk has joined #ruby
bradhe has quit [Remote host closed the connection]
seanwash has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
carloslopes has joined #ruby
moted has joined #ruby
xorgnak has quit [Ping timeout: 246 seconds]
matrixise has joined #ruby
eldariof has joined #ruby
yxhvuud has quit [Ping timeout: 246 seconds]
johnlcox has quit [Ping timeout: 240 seconds]
elaptics is now known as elaptics`away
headius has joined #ruby
johnlcox has joined #ruby
johnlcox has quit [Client Quit]
mercwith1mouth has joined #ruby
apok has joined #ruby
johnlcox has joined #ruby
shadoi has joined #ruby
mmitchell has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 268 seconds]
c0rn_ has joined #ruby
futini has quit [Ping timeout: 246 seconds]
CodeFriar has joined #ruby
specialGuest has quit [Ping timeout: 246 seconds]
SirRamon_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
chussenot has quit [Quit: chussenot]
havenn has joined #ruby
paul_andrew has joined #ruby
riley526 has joined #ruby
timonv has joined #ruby
s1n4 has left #ruby ["leaving"]
jitesh_shetty has joined #ruby
heisenmink has joined #ruby
haxrbyte_ has joined #ruby
srnty has joined #ruby
srnty has left #ruby [#ruby]
xorgnak has joined #ruby
srnty has joined #ruby
yxhuvud has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
<srnty> So I'm trying to match all characters between two parentheses, including other parentheses. Anyone know how I might do that?
havenn has quit [Remote host closed the connection]
voodoofish430 has joined #ruby
<davidcelis> srnty: /\((.+)\)/
<srnty> Thank you.
<srnty> How do I keep the first paren and last paren out of the output?
<davidcelis> use the capture group
SegFaultAX|work2 has joined #ruby
<davidcelis> which i already put in that regex
<srnty> Okay. Thank you!
dmiller has quit [Remote host closed the connection]
heisenmink has quit [Remote host closed the connection]
fantazo has quit [Remote host closed the connection]
Ontolog has joined #ruby
sagax has joined #ruby
<Ontolog> is there a better way to check for an arbitrarily nested key? that is, better than doing something like this: session.has_key?(:auth_params) && session[:auth_params].has_key?(:email_token)
Advocation has quit [Quit: Advocation]
Asher has quit [Quit: Leaving.]
qwerxy has joined #ruby
xorgnak has quit [Remote host closed the connection]
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
fearoffish has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
xorgnak has joined #ruby
Asher has joined #ruby
xorgnak has quit [Remote host closed the connection]
<canton7> Ontolog, rely on the fact that, by default, hash[:undefined_key] returns nil?
<Ontolog> well ok you can take out the has_key? using thast fact
<Ontolog> but that's not what I'm getting at
<Ontolog> something like
<Ontolog> has_key?(:some, :long, :key, :path)
enroxorz has joined #ruby
Jay_Levitt has quit [Ping timeout: 272 seconds]
yshh has joined #ruby
fearoffish has joined #ruby
xorgnak has joined #ruby
adamkittelson has joined #ruby
xorgnak has quit [Remote host closed the connection]
mmitchell has joined #ruby
<davidcelis> monkeypatch Hash
Kneferilis has quit [Disconnected by services]
yshh has quit [Remote host closed the connection]
Spooner has joined #ruby
<joeyk> you could extend hash to return the inside object: class Hash; def does key; self[key] || {}; end; end -> hash.does(:auth_params).has_key?(:email_token)
axl_ has quit [Quit: axl_]
<joeyk> that's kind of ugly
<Ontolog> of course i can monkeypatch it
<Ontolog> just was hoping ActiveSupport did it for me already :p
<Ontolog> thanks
riley526_ has joined #ruby
statarb3 has joined #ruby
Jay_Levitt has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<davidcelis> it doesn't, unfortunately
mmitchell has quit [Ping timeout: 272 seconds]
johnlcox has quit [Read error: Operation timed out]
johnlcox has joined #ruby
xorgnak has joined #ruby
DrShoggoth has joined #ruby
mmitchell has joined #ruby
specialGuest has joined #ruby
jasonkuhrt has joined #ruby
riley526 has quit [Ping timeout: 276 seconds]
paul_andrew has quit [Quit: leaving]
sagax has quit [Remote host closed the connection]
<canton7> Ontolog, something like this? http://codepad.org/RwolPnxy
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
<Ontolog> canton7: yes just like that, but not going to monkey patch Hash just yet (this is for work)
<koshii> Wow, Codepad will interpret a lot of languages! I wonder how many security holes this has. :-)
<bricker88> I accidentally a keyboard shortcut yesterday in Textmate, and it aligned the 1.9-style hashes colons… but I couldn't figure out what I did. Does anybody know?
<canton7> it's been around for a while... so they've probably patched most of them :P
<koshii> That's super cool anyway.
<canton7> Ontolog, yeah cool. that's the concept anyway. def hash_has_keys?(hash, *keys) and replace self with hash :P
futini has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
axl_ has joined #ruby
SCommette has quit [Quit: SCommette]
xorgnak has quit [Remote host closed the connection]
SCommette has joined #ruby
Advocation has joined #ruby
paul_andrew has joined #ruby
mmitchell has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
nim__ has quit [Ping timeout: 246 seconds]
heisenmink has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
paul_andrew has joined #ruby
thunderstrike has quit [Remote host closed the connection]
mrsolo has joined #ruby
Advocation has quit [Client Quit]
paul_andrew has quit [Read error: Connection reset by peer]
minijupe has joined #ruby
baphled has joined #ruby
xorgnak has joined #ruby
statarb3 has quit [Ping timeout: 268 seconds]
Spooner has quit [Ping timeout: 240 seconds]
Advocation has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
mmitchell has quit [Ping timeout: 276 seconds]
paul_andrew has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
heisenmink has quit [Remote host closed the connection]
fermion has quit [Quit: P]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
sagax has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
mmitchell has joined #ruby
xorgnak has joined #ruby
manizzle has quit [Ping timeout: 272 seconds]
bradhe has quit [Remote host closed the connection]
paul_andrew has joined #ruby
saschagehlich has joined #ruby
nim__ has joined #ruby
xorgnak has quit [Remote host closed the connection]
berserkr has quit [Quit: Leaving.]
paul_andrew has quit [Read error: Connection reset by peer]
manizzle has joined #ruby
TheFuzzb_ is now known as TheFuzzball
eykosioux has quit [Quit: eykosioux]
spinagon has joined #ruby
Guest5516 has joined #ruby
prath has joined #ruby
eykosioux has joined #ruby
paul_andrew has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
clj_newb has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
ACK__ has joined #ruby
eykosioux has left #ruby [#ruby]
eykosioux has joined #ruby
<shadoi> banisterfiend`: so I use Boson/Hirb already in my CLI, and I'd love to add a shell / REPL feature, Pry seems like a great fit, do you think that sounds too crazy? Anyone else doing this?
rippa has quit [Ping timeout: 272 seconds]
<ACK__> hello i know basic of ruby well, but i want to go more deep in the ruby, so which book you recommend for it?
<ACK__> hello i know basic of ruby well, but i want to go more deep in the ruby, so which book you recommend for it?
<ACK__> hello i know basic of ruby well, but i want to go more deep in the ruby, so which book you recommend for it?
ACK__ has quit [Killed (idoru (Spam is off topic on freenode.))]
nim__ has quit [Ping timeout: 244 seconds]
<davidcelis> once is enough bro
<drPoggs> "The Importance of Not Spamming"
<shadoi> Not the one about looping, you've got that down already.
<drPoggs> or lmgtfy
xorgnak has joined #ruby
ACK__ has joined #ruby
<eykosioux> what is lmgtfy
reset has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
<drPoggs> eykosioux: please tell me you're being funny :)
<davidcelis> eykosioux: http://lmgtfy.com/?q=lmgtfy
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<ACK__> which book you recommend to dig deep in ruby?
<drPoggs> davidcelis: you beat me to it
specialGuest has quit [Ping timeout: 272 seconds]
<drPoggs> ACK__: This one: http://bit.ly/OQ76zb
<eykosioux> dammit
<davidcelis> http://lmgtfy.com/?q=lmgtfy&l=1 is a better link actually
<eykosioux> i shall not click
<ACK__> i already done it
Advocation has quit [Quit: Advocation]
<ACK__> i ask which one you reccommmend
yaymukund has joined #ruby
<davidcelis> you already asked the entire internet. this will be superfluous.
<drPoggs> ACK__: A tutorial, or a reference book?
<ACK__> ya
<davidcelis> that wasnt a yes or no question
<ACK__> i kinda both
<drPoggs> Pragmatic Progammers' books get my vote, but there are also others
<ACK__> <drPoggs> for both purpose
<davidcelis> metaprogramming ruby
<Hanmac> ACK__ read this: http://www.ruby-doc.org/core-1.9.3
hoelzro|away is now known as hoelzro
hoelzro is now known as hoelzro|away
chendo_ has quit [Ping timeout: 244 seconds]
<ACK__> hello
<ACK__> listen
<yaymukund> I've got module Very::Long::Class. From another class, how can I refer to it as Class instead of Very::Long:Class?
<Hanmac> and when you readed it twice, read this: http://www.ruby-doc.org/stdlib-1.9.3/
<eykosioux> ACK__: idiomatic ruby was interesting too, although i never finished
banseljaj is now known as imami|afk
cj3kim has quit [Client Quit]
<eykosioux> also, reading ruby source code on github from more talented ppl
<yaymukund> oh, I think I'm just looking for include
<yaymukund> ha
indigo747 has joined #ruby
xorgnak has quit [Remote host closed the connection]
Montas has joined #ruby
xorgnak has joined #ruby
johnlcox has quit [Quit: Computer has gone to sleep.]
sterex has joined #ruby
magmatt has joined #ruby
xorgnak has quit [Remote host closed the connection]
paul_andrew has joined #ruby
<Montas> Hi, how do i generate class method for each item in array? I have constant array with items and attribute mask. I want to generate method <item>? for each of items in contant to check if that bit is set. I know the code to chcek the bit, but i would like to generate methods automaticaly from cosntant array
<magmatt> my goodness... yield is hard to understand coming from python :)
indigo747 has left #ruby [#ruby]
<drPoggs> Actually doing Ruby for real things helped me a great deal
Takehiro has quit [Remote host closed the connection]
<ACK__> =======>> i want to write helpers in nanoc / rails / create my own following system in rails / tags system / or any other system so that i can implement on my rails/Sinatra/nanoc APP => and for all that i need to ruby very well so => FOR THIS PURPOSE TELL ME THE BOOK NAME <<<<<<<<<<=======
<davidcelis> bro why are you merge conflicting
<ACK__> THATS IT
<davidcelis> where are these merge conflicts even coming from
johnlcox has joined #ruby
xorgnak has joined #ruby
<drPoggs> XD
<drPoggs> davidcelis++
paul_andrew has quit [Read error: Connection reset by peer]
<davidcelis> ACK__: git commit -asm "Fix merge conflicts"
<ACK__> tell me
<davidcelis> there you go, hope that helps
hipertracker has joined #ruby
* Hanmac throws ACK__ into the #rubyonrails hole
seanyo has quit [Ping timeout: 246 seconds]
<davidcelis> Hanmac: no, please for the love of fuck no
wahly has joined #ruby
xorgnak has quit [Remote host closed the connection]
<ACK__> Hanmac throws ACK__ into the #rubyonrails hole =>>>>>>>>>>>>>SAVE ME
<drPoggs> ACK__: You probably need to start working on something and understand that you won't get it right first time if it's your first Ruby or Rails project - and that you gain understanding by *doing*, not just reading.
<ACK__> SAVEEEEEEEEEEEEEEEEE
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
nim__ has joined #ruby
elico has joined #ruby
<ACK__> <drPoggs> YES, i kown but you can tell any way to accomplish my goal
xorgnak has joined #ruby
specialGuest has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
<drPoggs> ACK__: By doing. Buy a Ruby book. Read it. Maybe buy some more books. They're cheap. Read the Internet. Actually get your hands dirty and *code*
<wahly> i'm looking for some pointers on how to make this script not suck so much: http://pastebin.com/482eJb8r. this is for a facter fact that is used in puppet. i want to get the CIDR address of each interface on the box, but the current script bombs out if there is an interface up with no address
stopbit has joined #ruby
<drPoggs> ACK__: People who don't code end up managing projects, and you don't want to be a Project Manager
paul_andrew has joined #ruby
eldar has joined #ruby
<ACK__> i have just started a ruby week ago
paul_andrew has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
<ACK__> what about buying ===>>>> The Well-Grounded Rubyist <<<<=====
<drPoggs> ACK__: Yes, I recommend that book
mrdodo has joined #ruby
<ACK__> but i m just started rubya week ago
<drPoggs> wahly: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/Socket.html should help you make that script better - rather than chopping the output of a shell command, you can *probably* work out the IP addresses of connected interfaces that way
<Hanmac> drPoggs you not need a book ... i learned ruby only from reading source & Docs ...
<Hanmac> i dont even remember how i learned it ... some day i woke up and then i understand ruby
<wahly> drPoggs: i'll give that a read. thanks
<philcrissman> ACK__: Well Grounded Rubyist is a good book.
<ACK__> but stuiable for biggens
<ACK__> beginners
<drPoggs> Hanmac: That's nothing - I learned Ruby through standing next to somebody on the train who had read a book about Ruby once.
eldariof has quit [Ping timeout: 245 seconds]
<drPoggs> ACK__: One question - why Ruby?
mmitchell has quit [Remote host closed the connection]
<Hanmac> "learning Ruby like Bacteria do" :P
<ACK__> because => >>>> Rails / Sinatra / nanoc
<ACK__> RAck
<ACK__> rack
havenn has joined #ruby
<drPoggs> ACK__: Those are just some words. *Why*? What's driving you to Ruby? What is it that appeals about Sinatra and Rails?
* Hanmac points at #rubyonrails and #sinatra
<ACK__> ok then Listen
<blob> "because all the cool kids are doing it"
haxrbyte_ has quit [Ping timeout: 244 seconds]
xorgnak has quit [Remote host closed the connection]
chendo_ has joined #ruby
<drPoggs> I started with Rails because I'd started with Catalyst back in the days when I didn't fully understand what the framework was, and before *it* understood what it was. I had a colleague who'd been doing Rails for a while, and decided I'd write a project of my own in Rails.
mmitchell has joined #ruby
<ACK__> ===========>>>>>>>> my vacation is going on, before Ruby i have tied PHP and Python but PHP semicolons and Python indentiation hurts me lot =>> Ruby has beautiful syntax and no semicoln <<<<==
alvaro_o__ has joined #ruby
<drPoggs> The project sucked, even though I'd read books. So I did another project, which was better. And then another which was even better. And each time I tackled something new, I learnt more because I'd pushed myself.
<ACK__> and large ECO=SYSTEM FOR LEARNING
metrix has joined #ruby
<drPoggs> I could have stuck with Catalyst, but I liked Ruby's ecosystem. I like the fact there are sites such as Peepcode and RailsCasts. I like the fact that people here come on IRC and =======> HIGHLIGHT <====== their text to get their point across.
<drPoggs> You don't get that with Java.
<ACK__> good for beginners like me
havenn has quit [Ping timeout: 240 seconds]
<drPoggs> ACK__: Do you have a specific *thing* you want to tackle in Ruby?
<ACK__> Java don't like 's me
Russell^^ has joined #ruby
alvaro_o has joined #ruby
<ACK__> <drPoggs> YES, =>>> I WANNA BE SUPER DUPER => web developer
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
paul_andrew has joined #ruby
<drPoggs> ACK__: OK, start by writing on IRC mostly in letters rather than symbols. And then check out http://railscasts.com/ and go pester the #rubyonrails people
<metrix> Is there a way to retrieve the location of a file I have required from within the file?
alvaro_o_ has quit [Ping timeout: 246 seconds]
paul_andrew has quit [Read error: Connection reset by peer]
musl has quit [Remote host closed the connection]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<ACK__> i hate railscasts
riley526_ has quit [Remote host closed the connection]
alvaro_o__ has quit [Ping timeout: 268 seconds]
<ACK__> is ruby for rails book OUTDADTED
musl has joined #ruby
Radar has joined #ruby
elico has quit [Ping timeout: 268 seconds]
<epochwolf> ACK__: all books are outdated.
Advocation has joined #ruby
<drPoggs> ACK__: You could probably spend your time better by coding some Ruby *now*.
<epochwolf> The only languages that move slow enough to warrant books are C99, Java, and javascript (for browsers)
Nisstyre_ has quit [Quit: Leaving]
<drPoggs> epochwolf: I want to quote you on that :)
machty has quit [Read error: Connection reset by peer]
machty_ has joined #ruby
<epochwolf> drPoggs: feel free
pefavre has joined #ruby
elico has joined #ruby
<drPoggs> epochwolf: are you on Twitter so I can attribute you?
paul_andrew has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
Nisstyre has joined #ruby
<epochwolf> sure
chimay has quit [Quit: WeeChat 0.3.9-rc1]
<epochwolf> @epochwolf
eikko-akem has quit [Ping timeout: 240 seconds]
<philcrissman> ACK__: Ruby for Rails is a bit old, but it's about Ruby, not rails, so probably 90% of it is still relevant. TWGR covers 1.9, so, it's more up to date. If you're still looking for books.
Nisstyre is now known as Nisstyre_
pefavre_ has joined #ruby
xorgnak has joined #ruby
linuxsable has quit [Quit: linuxsable]
cjs226 has joined #ruby
Takehiro has joined #ruby
ACK__ has quit [Ping timeout: 245 seconds]
mmitchell has quit [Remote host closed the connection]
ckrailo has joined #ruby
pefavre has quit [Ping timeout: 268 seconds]
Montas has quit [Quit: Page closed]
Ontolog has quit [Quit: Ontolog]
<drPoggs> phew, he pinged out
mmitchell has joined #ruby
Scient has joined #ruby
Virunga has joined #ruby
<epochwolf> drPoggs: rejoice
helpa has joined #ruby
el_diablo has joined #ruby
haf has quit [Quit: Page closed]
<matti> ?
paul_andrew has joined #ruby
whisller has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
whisller has left #ruby ["Leaving"]
jenrzzz has joined #ruby
<bricker88> What is the difference between `require File.expand_path("../../../config/environment", __FILE__)`, and `require File.join("path", "to", "config", "environment")`? One works and the other doesn't but I don't know why
yxhuvud has quit [Ping timeout: 244 seconds]
<Mon_Ouie> In the second one, what did you use as a path?
<Mon_Ouie> Anyway, you'd be better off setting up the load path properly
<matti> Hi hi Mon_Ouie
<Mon_Ouie> 'alut 'alut matti :p
<Hanmac> bricker88 i think the problem is that you should use require_relative :P
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
mneorr has joined #ruby
kjellski_ has quit [Quit: Leaving]
reset has quit [Quit: Leaving...]
<bricker88> Mon_Ouie: Hanmac: It was a lame error on my part, I was trying to use Rails.root before I had loaded Rails :P whoops. Thanks for the suggestions.
Radar has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
eikko-akem has joined #ruby
virtualroot has joined #ruby
heisenmink has joined #ruby
futini has quit [Ping timeout: 248 seconds]
dangerousdave has joined #ruby
digitalcakestudi has quit [Ping timeout: 244 seconds]
Takehiro has quit [Remote host closed the connection]
heisenmink has quit [Remote host closed the connection]
manizzle has quit [Ping timeout: 246 seconds]
xorigin has joined #ruby
Takehiro has joined #ruby
manizzle has joined #ruby
lampe2 has quit [Ping timeout: 246 seconds]
sambio has joined #ruby
spanner has quit [Ping timeout: 264 seconds]
CarlB_the_great has quit [Remote host closed the connection]
enroxorz has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
headius has quit [Quit: headius]
axl_ has quit [Quit: axl_]
Takehiro has quit [Ping timeout: 252 seconds]
fermion has joined #ruby
CarlB_the_great has joined #ruby
spanner has joined #ruby
pskosinski has quit [Ping timeout: 246 seconds]
triptec has joined #ruby
vitoravelino is now known as `vitoravelino
kirun has joined #ruby
el_diablo has quit [Quit: Page closed]
doomMonkey has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
mvangala has joined #ruby
pskosinski has joined #ruby
blazes816 has quit [Quit: blazes816]
<elico> anyone with eventmachine skills if you have used "set_sock_opt" method in a http client or other client i will be very glad to see how it's implemented
havenn has joined #ruby
musl has quit [Quit: WeeChat 0.3.9-rc1]
musl has joined #ruby
Jrz has quit [Quit: Computer has gone to sleep.]
theRoUS has quit [Ping timeout: 264 seconds]
specialGuest has quit [Ping timeout: 276 seconds]
specialGuest has joined #ruby
paul_andrew has joined #ruby
ringotwo has joined #ruby
Ontolog has joined #ruby
paul_andrew has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
samflores has joined #ruby
jonathanwallace has joined #ruby
linuxsable has joined #ruby
manizzle has quit [Ping timeout: 252 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
ringotwo has quit [Remote host closed the connection]
specialGuest has quit [Changing host]
specialGuest has joined #ruby
blazes816 has joined #ruby
paul_andrew has joined #ruby
jwbuurlage has quit [Quit: jwbuurlage]
mrdodo has quit [Read error: Connection reset by peer]
paul_andrew has quit [Read error: Connection reset by peer]
mrdodo has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jonathanwallace has quit [Ping timeout: 272 seconds]
metrix has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0/20120824154833]]
mwilson` has quit [Excess Flood]
Guedes is now known as Guedes_out
mwilson` has joined #ruby
Virunga has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
Advocation has quit [Read error: No route to host]
Takehiro has joined #ruby
Advocation has joined #ruby
manizzle has joined #ruby
pricees has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
rudyl313 has joined #ruby
Advocation has quit [Ping timeout: 276 seconds]
resure|haskell is now known as resure
resure has quit [Remote host closed the connection]
eikko-akem has quit [Ping timeout: 245 seconds]
Axsuul has joined #ruby
havenn has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
Ontolog has quit [Quit: Ontolog]
johnlcox_ has joined #ruby
johnlcox has quit [Ping timeout: 248 seconds]
johnlcox_ is now known as johnlcox
cbuxton has joined #ruby
reset has joined #ruby
linoj has quit [Ping timeout: 245 seconds]
cj3kim has quit [Ping timeout: 276 seconds]
Guest5516 has quit [Quit: Guest5516]
Advocation has joined #ruby
levieraf has quit [Quit: Saliendo]
Advocation has quit [Client Quit]
clj_newb has quit [Ping timeout: 244 seconds]
axl_ has quit [Quit: axl_]
pricees has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
deryl has quit [Quit: deryl]
Ontolog has joined #ruby
krawchyk has quit [Remote host closed the connection]
cj3kim has quit [Client Quit]
gfontenot has joined #ruby
Chryson has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
deryl has joined #ruby
ryanRT_ has quit [Quit: Ex-Chat]
flagg0204 has quit [Quit: leaving]
havenn has quit [Remote host closed the connection]
nim__ has quit [Ping timeout: 268 seconds]
eroc has joined #ruby
flagg0204 has joined #ruby
<eroc> I was just on ruby-docs.org and saw this line of code: "if File.basename(path)[0] == ..". What does the double-period equal? The semantics of the line is that we are checking to see if the path starts with a single period.
snorkdude has joined #ruby
havenn has joined #ruby
<snorkdude> Is anyone here able to easily tranlate C,Go,Java,JS,PHP, or PY to Ruby? I need a short file converted, only about 50 lines
<canton7> snorkdude, pastie it, and the bored people might give it a shot
beneggett has joined #ruby
<snorkdude> Canton7: pasted
xorgnak has quit [Ping timeout: 246 seconds]
<snorkdude> canton7, posted github link
ylluminate has quit [Read error: Connection reset by peer]
ylluminate has joined #ruby
magmatt has left #ruby [#ruby]
jbw has quit [Ping timeout: 248 seconds]
centipedefarmer has quit [Quit: Leaving]
evilsushi has quit [Quit: Lost terminal]
headius has joined #ruby
tatsuya_o has joined #ruby
khakimov has joined #ruby
samflores has left #ruby [#ruby]
moted has quit [Remote host closed the connection]
<canton7> snorkdude, is this.grid an array or an object? it's declared as an object, but treated as an array
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<snorkdude> canton7, I'm not quite sure. This is one of the confusing parts of the code.
<snorkdude> canton7, It seems like a 2D array though.
spinagon has quit [Ping timeout: 244 seconds]
moted has joined #ruby
<bricker88> What is the key command in Textmate to align the colons in 1.9-style hashes?
axl_ has joined #ruby
imami|afk is now known as banseljaj
ezyang has joined #ruby
pefavre_ has quit [Remote host closed the connection]
<ezyang> I have foo(x) {|a,b,c| bar a,b,c} but I only want to have to write something like foo(x) &bar. Possible?
tdelam has quit [Remote host closed the connection]
_bart has joined #ruby
<ezyang> (if I do that latter code, Ruby attempts to immediately execute the method
eldar has quit []
<Mon_Ouie> def foo(x, &bar); end
<Mon_Ouie> Although I'm not sure what you're asking for
<Mon_Ouie> You can use the block with just def foo(x) and yield
<ezyang> Mon_Ouie: No, because I want to do it with yield.
the_jeebster1 has joined #ruby
<ezyang> (the way foo is defined)
maxmmurphy has joined #ruby
<ezyang> I guess, I have a foo with only one arg, which yields things
<Mon_Ouie> Or you mean to pass bar as a block to foo? foo(x, &bar)
<canton7> snorkdude, my attempt: http://pastie.org/4664383 untested so take it with a pinch of salt
<ezyang> that doesn't work: it complains I'm passing too any arguments to foo.
<Mon_Ouie> Oh, foo(&:bar)
<Mon_Ouie> Well, foo(x, &:bar)
<ezyang> aha!
geekbri has quit [Remote host closed the connection]
jbw has joined #ruby
<Mon_Ouie> Except no, that doesn't work either, never mind
<ezyang> :-(
<Mon_Ouie> There is no shortcut for that construction
the_jeebster has quit [Ping timeout: 245 seconds]
<Mon_Ouie> If you have many arguments you can use a splat to just forward the arguments directly, like { |*a| bar(*a) }
nim__ has joined #ruby
<ezyang> bah humbug
<ezyang> ok, the splat is kind of handy
<Mon_Ouie> (I was thinking of the shortcut for { |o, *a| o.bar(*a) })
mmitchell has quit [Remote host closed the connection]
<canton7> snorkdude, actually improved: http://pastie.org/4664383
<snorkdude> canton7, testing now. I see what I was doing wrong. Thanks!
answer_42 has quit [Quit: WeeChat 0.3.8]
ezyang has left #ruby [#ruby]
havenn has quit [Remote host closed the connection]
Ontolog has quit [Quit: Ontolog]
khakimov has quit [Quit: Computer has gone to sleep.]
UdontKnow is now known as e
Ontolog has joined #ruby
axl_ has quit [Quit: axl_]
havenn has joined #ruby
mark_locklear has quit [Remote host closed the connection]
<snorkdude> canton7, I'm not getting the expected result but now this is easy for me to debug. Thanks mate!
<canton7> cool, np! let me know what I did wrong
<snorkdude> I'm sure it has to do with the array v object. Working on it now.
fbernier has quit [Ping timeout: 246 seconds]
mmitchell has joined #ruby
cascalheira has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby
cascalheira has quit [Read error: Connection reset by peer]
musl has quit [Quit: WeeChat 0.3.9-rc1]
ephemerian has joined #ruby
<bricker88> I'm trying to write a sort of custom rescue by putting some code inside of a block, and then doing some custom behavior in certain scenarios. Specifically, it's an HTTP request to an API and I'd like to do something custom on 404 response, 500 response, etc. Along these lines: https://gist.github.com/3626297 I know there are examples of this out there but I can't seem to find any lying around
kvirani has joined #ruby
mklappstuhl has joined #ruby
jimeh4 has quit [Ping timeout: 246 seconds]
xiaotian has joined #ruby
<mneorr> any Padrino / Datamapper users here? I have a quick , noob question :)
havenn has quit [Remote host closed the connection]
atmosx has joined #ruby
robustus has quit [Ping timeout: 244 seconds]
maxmanders has joined #ruby
tiripamwe has quit [Ping timeout: 246 seconds]
jharr has joined #ruby
<maxmanders> Hey, new to ruby and using Chef... in iterm2 or gnu screen all fine, but in tmux I get errors about not finding gems...
<maxmanders> ... not familiar enough with how ruby searches for gems to kmow where to start digging... ideas?
Takehiro has joined #ruby
<jharr> When I use an @instance variable inside a lambda, what's the object that the instance variable is tied to?
<maxmanders> s/ruby searches/ ruby search path etc/
snorkdude has quit [Remote host closed the connection]
clj_newb has joined #ruby
rubbish has joined #ruby
jimeh4 has joined #ruby
rubbish has left #ruby [#ruby]
snorkdude has joined #ruby
<Hanmac> jharr depending how the lambda is called
mmitchell has quit [Remote host closed the connection]
the_jeebster1 has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
sailias has quit [Quit: Leaving.]
<jharr> Hanmac: Any good reference websites for this? It's hard finding concise docs. Most things I'm finding are code vomit blog posts.
<mneorr> when I run `padrino console` ; create my object with the data; call object.save , everything works OK. But when I run the code from the website, it generates "TypeError at /json
<mneorr> can't dump hash with default proc"
axl_ has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
c0rn_ has joined #ruby
<mneorr> any ideas?
mmitchell has joined #ruby
<atmosx> too many ideas
<Hanmac> jharr look for instance_eval
<snorkdude> canton7, Are you creating a 2 dimensional array in line 6? http://pastie.org/4664383
statarb3 is now known as proshot
LBRapid has quit [Quit: Farewell.]
<jharr> Thanks, Hanmac
<canton7> snorkdude, yeah
<mneorr> the object has 2 properties, one is a string, second is Object
johnlcox has quit [Quit: Computer has gone to sleep.]
<canton7> snorkdude, "create an array of size size, each element of which is an array of size size, each element of which is zero"
<canton7> snorkdude, try it in irb
<snorkdude> I did, size is undefined :P
machty has joined #ruby
<canton7> snorkdude, well define it, and try again :)
machty_ has quit [Read error: Connection reset by peer]
<canton7> snorkdude, on line 6, it's defined because it's passed into intialize as a parameter
<canton7> *initialize
<geggam> sort of annoys me ... zero is defined.. as are nulls .. why do languages call it undefined ?
<canton7> hmm?
tatsuya_o has quit [Remote host closed the connection]
<canton7> undefined means that it hasn't been set to any value yet
<mneorr> atmosx: here's the paste from the application http://pastie.org/private/mduzvzakvg6p9dteh3xcq
<snorkdude> canton7, in line 34 shouldnt it be grid = Grid.initialize(5, 5, 5)?
<canton7> snorkdude, no
<atmosx> ah you're working with datamapper
<mneorr> atmosx: and the interesting fact is that if I don't call request.save, everything works good, but obviously - you can't find it anymore :)
<canton7> snorkdude, #new does lots of stuff, memory allocation etc, which includes calling #initialize
johnlcox has joined #ruby
<snorkdude> canton7, I see...
<mneorr> just wanted to try it on a small project; Haven't tried if this works with AR
khakimov has joined #ruby
<snorkdude> canton7, what language are you most fluent in besides Ruby? The array issues should be fine, I'm just trying to decipher why I am not getting the expected result.
cj3kim has quit [Quit: This computer has gone to sleep]
jeff_sebring has joined #ruby
Virunga has joined #ruby
havenn has quit [Remote host closed the connection]
<canton7> snorkdude, C#, php, C for microcontrollers, python
axl_ has quit [Ping timeout: 252 seconds]
<snorkdude> canton7, grid is also defined as an array in this python code... https://github.com/lociii/self-avoiding-walk/blob/master/test.py
<canton7> also do my fair share of js I guess
<snorkdude> canton7, so that part is the same in ruby
<canton7> yeah, and it behaves as an array in the js code
<canton7> I don't think that's the problem
brianpWins has joined #ruby
xiaotian has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<canton7> snorkdude, oops, line 17, replace || with &&
xiaotian has joined #ruby
xiaotian has quit [Client Quit]
<snorkdude> canton7, Right it should be "and" instead of "or"!
jenrzzz has joined #ruby
fearoffish has quit [Ping timeout: 244 seconds]
<snorkdude> canton7, It worked
xiaotian has joined #ruby
<snorkdude> thanks for all the help!
cjs226 has quit []
<canton7> snorkdude, cool, no worries
niklasb has quit [Ping timeout: 244 seconds]
<jharr> Hanmac: Thanks again -- that's exactly what I was looking for.
axl_ has joined #ruby
fearoffish has joined #ruby
MasterIdler_ has quit [Quit: MasterIdler_]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Ontolog has quit [Read error: Connection reset by peer]
Ontolog has joined #ruby
olrrai has joined #ruby
olrrai has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
jjbohn has joined #ruby
krz has joined #ruby
recycle has joined #ruby
jharr has left #ruby [#ruby]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
katherinem13 has quit [Quit: Might IS right.]
katherinem13 has joined #ruby
asobrasil has left #ruby [#ruby]
recycle has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
digitalcakestudi has joined #ruby
musl has joined #ruby
johnlcox has quit [Quit: Computer has gone to sleep.]
Criztian has joined #ruby
musl has quit [Client Quit]
recycle has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
musl has joined #ruby
johnlcox has joined #ruby
peregrine81 has joined #ruby
meskyanichi has quit [Quit: Linkinus - http://linkinus.com]
mneorr has quit [Quit: Leaving.]
musl has quit [Client Quit]
mneorr has joined #ruby
rorider has joined #ruby
havenn has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
GoGoGarrett has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
musl has joined #ruby
qwerxy has quit [Quit: offski]
rorider has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
musl has quit [Client Quit]
seanwash has joined #ruby
Speed has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 246 seconds]
jamaa has joined #ruby
kvirani has quit [Remote host closed the connection]
<jamaa> hi, I have two DateTime objects, one holding date and another one holding time, how can I combine them together ? is there some method for this ?
jesseatkinson has joined #ruby
jesseatkinson has quit [Client Quit]
fantazo has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
joshman_ has quit [Ping timeout: 240 seconds]
linuxsable has quit [Quit: linuxsable]
recycle has quit [Remote host closed the connection]
smellynoser has quit [Quit: This computer has gone to sleep]
hadees has quit [Quit: hadees]
havenn has quit [Remote host closed the connection]
c0rn_ has joined #ruby
carloslopes has quit [Quit: Leaving.]
proshot is now known as statarb3
Takehiro has joined #ruby
<reactormonk> jamaa: how about adding them together?
<jamaa> reactormonk, how ? I tried d+t but get an error
johnlcox has quit [Quit: Computer has gone to sleep.]
<reactormonk> jamaa: which one?
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
linuxsable has joined #ruby
<jamaa> reactormonk, TypeError: expected numeric
bapa has quit [Remote host closed the connection]
<reactormonk> jamaa: do a #to_i on the second one
jasonkuhrt has quit [Quit: Leaving...]
snorkdude has joined #ruby
havenn has joined #ruby
snorkdude has quit [Remote host closed the connection]
mafs has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
geggam has quit [Ping timeout: 268 seconds]
kirun has quit [Quit: Client exiting]
Ontolog has quit [Remote host closed the connection]
CarlB_the_great has quit [Remote host closed the connection]
jeff_sebring has quit [Quit: Leaving]
Ontolog has joined #ruby
<jamaa> reactormonk, hmmm there is no to_i to DateTime, and I can't figure out something similar
bapa has joined #ruby
musl has joined #ruby
johnlcox has joined #ruby
baphled has quit [Read error: Connection reset by peer]
musl has quit [Client Quit]
baphled has joined #ruby
Ontolog has left #ruby [#ruby]
mklappstuhl has joined #ruby
minijupe has quit [Quit: minijupe]
sdwrage has joined #ruby
robbyoconnor has joined #ruby
jonathanwallace has joined #ruby
xorigin has quit [Quit: leaving]
musl has joined #ruby
dangerousdave has quit [Quit: Leaving...]
musl has quit [Client Quit]
takamichi has quit [Ping timeout: 276 seconds]
musl has joined #ruby
takamichi has joined #ruby
hadees has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
musl has quit [Client Quit]
musl has joined #ruby
pricees has quit [Quit: leaving]
recycle has joined #ruby
musl has quit [Client Quit]
banseljaj is now known as imami|afk
ph^ has quit [Remote host closed the connection]
musl has joined #ruby
stepnem has quit [Ping timeout: 252 seconds]
saschagehlich has quit [Quit: saschagehlich]
recycle has quit [Remote host closed the connection]
torarne1 has joined #ruby
musl has quit [Client Quit]
emmanuelux has joined #ruby
musl has joined #ruby
<torarne1> Q: Is there a way to have a rubygem that builds a .cpp file into an exectuable? The extensions mechanism with 'mkmf' seems to build a shared library :/
hadees has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
Guest69953 has joined #ruby
<Guest69953> hi
recycle has joined #ruby
<Guest69953> any one wana chat
prath has quit [Remote host closed the connection]
bbttxu has quit [Quit: bbttxu]
cjs226 has joined #ruby
philcrissman_ has joined #ruby
sterex has quit [Read error: Connection reset by peer]
philcrissman_ has quit [Remote host closed the connection]
deryl has quit [Read error: Connection reset by peer]
sterex has joined #ruby
deryl has joined #ruby
jlogsdon has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 246 seconds]
Vert has joined #ruby
philcrissman has quit [Ping timeout: 252 seconds]
wmoxam has quit [Quit: leaving]
orzech has joined #ruby
orzech has left #ruby [#ruby]
johnlcox has quit [Ping timeout: 268 seconds]
DrShoggoth has quit [Quit: Leaving]
<TTilus> no
<Guest69953> y?
recycle has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
<fowl> z
bradhe has joined #ruby
spopescu has quit [Quit: Leaving]
<eykosioux> Ω
br4ndon has joined #ruby
<davidcelis> ∑
<Guest69953> ;)
<TTilus> &ouml;
<Guest69953> <3
<davidcelis> no
<maxmanders> if $GEM_PATH and $GEM_HOME aren't set in my environment, how to I determine where gems will get loaded from?
<TTilus> maxmanders: gem --help doesnt help you?
<Guest69953> bye borning
<maxmanders> TTilus: apologies - just getting started, I presume I should use --help, man and Google before I ask in here?
internet_user has quit [Remote host closed the connection]
Nisstyre_ has quit [Read error: Connection reset by peer]
hipertracker has quit [Quit: hipertracker]
recycle has joined #ruby
recycle has quit [Remote host closed the connection]
<TTilus> maxmanders: not a bad approach
Guest69953 has quit []
baphled has quit [Ping timeout: 240 seconds]
<TTilus> maxmanders: and --help man gg is pretty fast, you dont need to reald the whole /r/programming on the way :)
bier has quit [Read error: Operation timed out]
statarb3 has quit [Quit: Leaving]
havenn has joined #ruby
<TTilus> although if you do you sure learn alot evdry time ;)
yasushi has joined #ruby
zamn has joined #ruby
<zamn> hey im trying to instal this qtbindings gem and i keep getting errors from CMake such as: Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY)
<zamn> which im pretty sure i've set both of those
t0rc has joined #ruby
<t0rc> whats the difference between unit testing and a spec?
<eykosioux> they're not mutually exclusive
<eykosioux> a spec is a specification, i'd say, and it could be for a unit test
<eykosioux> unit testing is what you can do with specs
stopbit has quit [Quit: Leaving]
CodeFriar has quit [Quit: Leaving...]
yasushi has quit [Ping timeout: 245 seconds]
<maxmanders> TTilus: many thanks, I'll come back when I'm a more experienced Rubyist with less beginner questions to ask :-)
billiam has quit [Quit: Leaving]
CodeFriar has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
lampe2 has joined #ruby
<t0rc> eykosioux: mm good point. thanks.
invisime has quit [Quit: Leaving.]
s0ber has joined #ruby
pipopopo has quit [Ping timeout: 255 seconds]
Foxandxss has joined #ruby
<davidcelis> honestly a spec is a type of unit testing.
<davidcelis> the difference is semantics
tommyvyo has joined #ruby
axl_ has quit [Quit: axl_]
SCommette has quit [Quit: SCommette]
cakehero has quit [Quit: Computer has gone to sleep.]
cjs226 has quit []
<t0rc> davidcelis: that's kind of what i've gathered from seeing these things. It seems like specs are more a seemingly "english" and verbose way to describe your unit tests
eykosioux has quit [Quit: eykosioux]
cj3kim has quit [Quit: This computer has gone to sleep]
bier has joined #ruby
recycle has joined #ruby
lampe2 has quit [Quit: Verlassend]
zeromodulus has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
Synthead has quit [Quit: p33 ba115]
zeromodulus has joined #ruby
havenn has quit [Remote host closed the connection]
zamn has quit [Quit: leaving]
cableray has joined #ruby
emmanuelux has quit [Remote host closed the connection]
<maxmanders> Fixed the problem I was having - RVM wasn't being called so unexpected version of ruby being used - fixed that and gem install chef; everything working
billyoc` has joined #ruby
Nisstyre_ has joined #ruby
billyoc` has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
billyoc has quit [Ping timeout: 252 seconds]
gfontenot has quit []
stkowski has quit [Quit: stkowski]
zeromodulus has quit [Ping timeout: 260 seconds]
jasonkuhrt has joined #ruby
Takehiro has joined #ruby
jasonkuhrt has quit [Client Quit]
aarwine has joined #ruby
<aarwine> Is this the place to ask questions about gem sources?
jimeh4 has quit [Ping timeout: 264 seconds]
frogprince_mac has quit [Quit: Leaving...]
jjang has joined #ruby
havenn has joined #ruby
Virunga is now known as notte
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
sent-hil has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
<sent-hil> is there something like mockingbird for fb api?
notte is now known as Fragola
xiaotian has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby
<iamjarvo> hi all, i was wondering how does ruby know to keep track of values being returned during recursion
machty_ has joined #ruby
nari has joined #ruby
<reactormonk> iamjarvo: example?
Azure has quit [Quit: ZNC - http://znc.in]
Fragola is now known as Free-Beer
machty has quit [Read error: Connection reset by peer]
machty_ is now known as machty
Free-Beer is now known as Fragola
<iamjarvo> so basically it will keep going through till it finds the base case but then in the end it will add them how
Fragola is now known as Portos
<reactormonk> iamjarvo: ruby has expressions only, and returns the value of the last expression in a method by default
Portos is now known as Portos-
sent-hil has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 252 seconds]
<iamjarvo> reactormonk: understood but how does it know to do the calulation at the end. so when it hits the base case it basically goes back up each method call and then adds up the numbers
Portos- is now known as Porco
Porco is now known as IlPorco
dmiller has joined #ruby
chimkan__ has joined #ruby
IlPorco is now known as Porc
Porc is now known as Pork
br4ndon has joined #ruby
Pork has left #ruby [#ruby]
<iamjarvo> thanks
cakehero has joined #ruby
Azure has joined #ruby
pu22l3r has joined #ruby
chimkan_ has quit [Ping timeout: 246 seconds]
peregrine81 has quit [Quit: Computer sleeping.]
chimkan__ has quit [Ping timeout: 260 seconds]
headius has quit [Quit: headius]
hipertracker has joined #ruby
jjbohn has quit [Quit: Linkinus - http://linkinus.com]
havenn has quit [Remote host closed the connection]
goyox86 has joined #ruby
<goyox86> Somebody there?
cantonic has quit [Quit: cantonic]
Spooner has joined #ruby
<fowl> shh its nap time
<goyox86> fowl: I have a small coding style/convetion question
vlad_starkov has joined #ruby
<goyox86> fowl: Hi BTW!
* fowl throws a pillow at goyox86
<goyox86> fowl: Heh!
khakimov has joined #ruby
ph^ has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
<goyox86> Which one of these is more idiomatic Ruby? in -> https://gist.github.com/3628004
<goyox86> 1 or 2?
<GeekOnCoffee> what's the point of 2?
<GeekOnCoffee> you're setting a variable that's getting immediately thrown away
<GeekOnCoffee> t
<GeekOnCoffee> that's a waste of cycles
cantonic has joined #ruby
<goyox86> Yup think the same (is not my code BTW) ;)
<rking> goyox86: I was going to say what's the point of 1.
<GeekOnCoffee> if you were doing @graph ||= Koala::Facebook::API.new(oauth_token)
jasonkuhrt has joined #ruby
<GeekOnCoffee> then there'd at least be a point to it
mneorr has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 268 seconds]
<rking> And also I was going to chime in with my daily hate against use of needless parens, but I botched the gist comment (didn't indent), so my coolpoints are lost. =(
axl_ has joined #ruby
ph^ has quit [Ping timeout: 240 seconds]
<goyox86> Well the thing is that at some point of the "consumer" code calls connect and assings it to a var
<goyox86> @graph ||= Koala::Facebook::API.new(oauth_token)
<goyox86> Is certainly the best approach
CodeFriar has quit [Quit: Leaving...]
<goyox86> Thanks guys, I know what to do: SUPER REFACTOR of this code I have here ;)
<goyox86> Cheers!
* goyox86 going home :p
goyox86 has quit [Remote host closed the connection]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<t0rc> I just ran: which bundle and it gives me the path to my .rvm
Criztian has quit [Remote host closed the connection]
<t0rc> then I run: bundle
<t0rc> and it says it's not installed
rdesfo has joined #ruby
rdesfo has left #ruby [#ruby]
<t0rc> gem list also shows bundler as being installed
<iamjarvo> t0rc: did you try cding in and out of the directory
<t0rc> iamjarvo: yes, just tried, no change
stephenjudkins has joined #ruby
<dekz> Is anyone aware if it is possible to access the rackup options inside a unicorn configuration file (I'd like to get the port supplied which doesn't seem to be bassed into the configuration)
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
<iamjarvo> and when you do rvm gemset list it is using the right gemset
dpk has quit [Quit: Asleep at the keyboard.]
uris has quit [Quit: leaving]
M- has joined #ruby
<t0rc> iamjarvo: well I didn't explicitly configure gemsets
<t0rc> but yes
<t0rc> I am using the system ruby and it is using: .rvm/gems/system
cakehero has quit [Quit: Computer has gone to sleep.]
specialGuest has quit [Ping timeout: 276 seconds]
Jamone has joined #ruby
Jamone has quit [Changing host]
Jamone has joined #ruby
lolsuper_ has quit [Ping timeout: 246 seconds]
jasonkuhrt has quit [Quit: Leaving...]
lolsuper_ has joined #ruby
lolsuper_ has quit [Changing host]
lolsuper_ has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
jamaa has quit [Quit: Leaving]
pskosinski has quit [Quit: http://www.redeclipse.net -- Fast-paced online FPS]
jasonkuhrt has joined #ruby
Monie has quit [Ping timeout: 244 seconds]
cakehero has joined #ruby
jgrevich has quit [Quit: jgrevich]
|Monie| has joined #ruby
peregrine81 has joined #ruby
srnty has quit [Quit: srnty]
Jamone has quit [Ping timeout: 244 seconds]
v0n has quit [Quit: Leaving]
|Monie| has quit [Ping timeout: 240 seconds]
<bricker88> What is better to ensure that a method returns an array: `def columns; @columns || []; end`, or `attr_reader :columns; def initialize; @columns = []; end`
axl_ has quit [Quit: axl_]
stephenjudkins has quit [Quit: stephenjudkins]
havenn has joined #ruby
LouisGB has quit [Ping timeout: 255 seconds]
mikepack has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 245 seconds]
seanwash has quit [Quit: Computer has gone to sleep.]
Virunga has joined #ruby
chrishunt has joined #ruby
Virunga is now known as O123
awarner has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
butblack has joined #ruby
smellynoser has joined #ruby
tiripamwe has joined #ruby
BullShark has quit [Ping timeout: 240 seconds]
<davidcelis> depends on if you want columns to be an attr?
BSaboia has quit [Read error: Connection reset by peer]
BullShark` has joined #ruby
AlbireoX`Laptop has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
havenn has quit [Remote host closed the connection]
jjang has quit [Remote host closed the connection]
Takehiro has joined #ruby
LouisGB has joined #ruby