apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
xcvd`` has quit [Read error: Connection reset by peer]
arietis has joined #ruby
<bobrossasaurus> [0,1,2,3,4,5,6].partition {|item| item % 2 == 0}
xcvd`` has joined #ruby
<thibauts> bobrossasaurus: nice. what's cool with this kind of construct is it gives you plenty of inspiration
<bobrossasaurus> should give you [0,2,4,6] and [1,3,5]
Jasko has quit [Read error: Connection reset by peer]
manizzle has quit [Ping timeout: 260 seconds]
Jasko has joined #ruby
<thibauts> what about generators ?
<csmrfx> thibauts: you got ri?
<canton7> thibauts, enumerators
Iszak has joined #ruby
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
xcvd`` has quit [Quit: Leaving]
<thibauts> csmrfx: ri ?
<csmrfx> $ ri Enumerable
jrajav has quit [Quit: I tend to be neutral about apples]
heftig has joined #ruby
<kenneth> question: if you're doing to be teaching a beginner ruby
<canton7> also http://www.ruby-doc.org/core-1.9.3/Enumerator.html if you cba with ri
<kenneth> would it better to do it by making him type ruby files or by making him type stuff into a REPL?
<kenneth> i'm thinking the latter
stuartrexking has joined #ruby
cableray has joined #ruby
<csmrfx> imo ri is less of a*ing than google
<bobrossasaurus> kenneth: I learned most of my basics in IRB
Dario_ has joined #ruby
<csmrfx> irb is probably great for the first 2-3 hours
<bobrossasaurus> but IRB sucks for writing methods. I think .rb files is better because you can save your examples and refer to them later
<pdtpatrick> there's also pry
<bobrossasaurus> pdtpatrick: Yeah, pry is cool too.
<pdtpatrick> http://pryrepl.org/
<pdtpatrick> or you can decorate irb with irbtools
<stuartrexking> I am putting together a gemspec file. I have a Gemfile with two groups (production and test). How do I list out all the dependencies in the production group with their current versions, so that I can add them to the gemspec as dependencies?
<pdtpatrick> though github seems to be having issues right now
<thibauts> csmrfx: yes i have ri, i didn't know ^^ very useful, thanks
graeme has joined #ruby
pyr0commie has quit [Remote host closed the connection]
shiin has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
<canton7> stuartrexking, huh? If, in your gemfile you have `gem "thingy", "> 1.0",`, use `s.add_dependency "thingy", "> 1.0"` in your gemspe
<canton7> *gemspec
ozgor has quit [Quit: ozgor]
Dario_ has quit [Ping timeout: 264 seconds]
<stuartrexking> canton7: The versions are not specified in the Gemfile. This is the actually issue... Thanks.
<canton7> stuartrexking, then if you're not bothered about the versions, you don't need to add version constraints to the gemspec :P
<stuartrexking> Ha.
<stuartrexking> Thanks.
<canton7> check the Gemfile.lock iirc to see what bunder's dependency resolution figured out if you're curious
Nanuq has quit [Read error: Operation timed out]
PetePorty has joined #ruby
yxhuvud has joined #ruby
freakazoid0223 has joined #ruby
Nanuq has joined #ruby
ryannielson has joined #ruby
ryannielson has quit [Client Quit]
ryannielson has joined #ruby
ryanlecompte has joined #ruby
bobrossasaurus has quit [Remote host closed the connection]
yxhuvud2 has quit [Ping timeout: 246 seconds]
goraxe has joined #ruby
Catnaroek has quit [Quit: brb peepls!!1]
kennyvb has quit [Ping timeout: 244 seconds]
squidBits has quit [Read error: Connection reset by peer]
yaroslav has joined #ruby
kennyvb has joined #ruby
reppard has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
forcefsck has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
hadees has quit [Quit: hadees]
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
PetePorty has quit [Remote host closed the connection]
rakuN has joined #ruby
hero_ has joined #ruby
jfl0wers has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
charliesome has joined #ruby
havenn has joined #ruby
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby
icole has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Proshot has quit [Quit: Leaving]
h4mz1d has joined #ruby
yaroslav has quit [Quit: yaroslav]
ryanlecompte has quit [Remote host closed the connection]
postmodern has joined #ruby
mercwithamouth has quit [Ping timeout: 250 seconds]
skcin7 has joined #ruby
Iszak has quit []
slainer68 has quit [Remote host closed the connection]
jfl0wers has joined #ruby
cableray has quit [Quit: cableray]
topriddy has quit [Quit: topriddy]
tr4656 has joined #ruby
mayhew has joined #ruby
marr has quit [Read error: Connection reset by peer]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
stuartrexking has quit [Quit: Leaving...]
hoelzro is now known as hoelzro|away
apeiros_ has quit [Remote host closed the connection]
reppard has quit [Ping timeout: 252 seconds]
aapzak has quit [Ping timeout: 255 seconds]
_br_- has quit [Excess Flood]
_br_ has joined #ruby
aapzak has joined #ruby
Dario_ has joined #ruby
Gadgetoid has quit [Ping timeout: 272 seconds]
_br_ has quit [Excess Flood]
crackfu has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 244 seconds]
Dario_ has quit [Ping timeout: 260 seconds]
swex has quit [Remote host closed the connection]
_br_ has joined #ruby
soulcake has quit [Quit: ZNC - http://znc.in]
yxhuvud2 has joined #ruby
rondale_sc has joined #ruby
zigomir has quit [Quit: zigomir]
yxhuvud has quit [Ping timeout: 260 seconds]
swex has joined #ruby
love_color_text has joined #ruby
jonathanwallace has quit [Ping timeout: 265 seconds]
huoxito has joined #ruby
slainer68 has joined #ruby
graeme has quit [Quit: graeme]
soulcake has joined #ruby
NeedSomeHelp has joined #ruby
mercwithamouth has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
<mguy> Who broke github!
<NeedSomeHelp> hello
<shevy> mguy me!
crackfu has joined #ruby
<NeedSomeHelp> I dont know if this is directly a Ruby question, but I try. I have just installed Susy (for Compass/SASS) with 'gem install susy', and then started 'compass watch'. When loading the website, I get the error "Syntax error: File to import not found or unreadable: susy."
rondale_sc has quit [Quit: rondale_sc]
nerd has joined #ruby
kamsel has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
h4mz1d has joined #ruby
alanjc_ has quit [Quit: alanjc_]
<swarley> o-O
<swarley> mguy; the unicorns
Kuifje has quit [Ping timeout: 246 seconds]
postmodern has quit [Remote host closed the connection]
nick_h has quit [Ping timeout: 256 seconds]
radosch has joined #ruby
slainer68 has quit [Ping timeout: 265 seconds]
Virunga has quit [Remote host closed the connection]
<radosch> Hi, somebody can give me advice on monkey patching alternative? http://pastie.org/5566972 best practice, not to mess up the code ^^ ?
nick_h has joined #ruby
<radosch> I would like to avoid monkey patching, and having a Range Object in my subclass
<radosch> is this possible?
<radosch> Range.new(1,10) ----> MyGem::Range.new(1,10) with the additional object instance methods
reppard has joined #ruby
<maetthew> uh. i'm trying to install RVM and get this weird error
<maetthew> whenever i do "bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)"
<shevy> radosch you can subclass range or?
<maetthew> oh
<maetthew> github down?
<radosch> yeah github down for maintaince
<radosch> yes… I did
<radosch> @shevy: class MyRange < Range; end;
<maetthew> anyone know where i can get a mirror of rvm-installer?
<maetthew> since github is down
<shevy> radosch hmm I dont see that in your code at http://pastie.org/5566972
swex_ has joined #ruby
graeme has joined #ruby
<radosch> @shevy: no not anymore… let me change back
swex has quit [Ping timeout: 252 seconds]
<shevy> hehe
<radosch> @shevy: http://pastie.org/5566990
<shevy> ? class Range < Range
<shevy> also I think you may have to use super() somewhere
graeme has quit [Client Quit]
<shevy> and not sure this works in a module
<radosch> it does
<radosch> isolated, it works...
<shevy> never saw class Foo < Foo before
<radosch> hehe
<shevy> hmm so you can call it via Stackytags::Range
<radosch> yes
postmodern has joined #ruby
<shevy> well this confuses me
<shevy> (-5..-1) for instance is a Range
<shevy> how does the ruby parser find out that this is a Range?
<radosch> yes… but invalid for my use cases, so I want several check methods, to be sure, it is positive and "valid"
<radosch> its very interesting though that:
<radosch> (5..1).is_a? Range => true
<shevy> ah
<shevy> so this would be the same as:
<shevy> Range.new -5,-1
<radosch> yes
<radosch> (5..1).each{|i| puts i} => 5..1
<radosch> (1..5).each{|i| puts i}
<radosch> 1
<radosch> 2
<shevy> wonder how the ruby parsers finds that () with .. is a Range
<radosch> 3
<radosch> 4
<radosch> 5
<radosch> => 1..5
<radosch> yeah.. me 2
<shevy> anyway, I think in this example, subclass will never work :(
<radosch> the sublassing works actually
<shevy> it does?????
<radosch> yes… but… how can I get this converted :/
reppard has quit [Ping timeout: 255 seconds]
<shevy> what converted, the first example?
<radosch> because… when it comes into the method as an argument… it is already as a Range Object
<shevy> that it is a downcount? .to_a ?
<shevy> hmm
<shevy> strange
<shevy> can anyone explain why 1..5 is different to 5..1 ?
<radosch> so… I would have to do something veeery ugly with … begin / end and read it again to a Range of my Type
<radosch> or… monkey patching ;-)
<shevy> I dont get it
<shevy> (5..1).to_a # => []
<radosch> yea :D
<shevy> (1..5).to_a # => [1, 2, 3, 4, 5]
<radosch> hehe
<radosch> told ya
<shevy> (-1..-5).to_a # => []
<radosch> hehe
<shevy> why does it work only upwards?
<radosch> very strange
<radosch> must be a "convention"
<radosch> lol
rakuN has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
<radosch> in one of the answers… a monkey patch:
<shevy> ohhh
<shevy> I see the explanation
<shevy> "terating over a range in Ruby with each calls the succ method on the first object in the range."
dstywho has joined #ruby
postmodern has quit [Quit: Leaving]
<shevy> because .succ can go only one way
<radosch> yep
thomsch has joined #ruby
<shevy> [*-5..0].reverse.each { |i| puts i } # => [0, -1, -2, -3, -4, -5]
<shevy> hehe
<radosch> :D
<radosch> what is the asterisk for?
<heftig> splat
<heftig> expands the range into individual values
<radosch> aaah ok
<radosch> nice
<radosch> I love ruby
<radosch> again
<shevy> hehehe
<shevy> still... I want to know how ruby knows that (1..5) is a Range
<shevy> I think the ruby parser is a big cheater
<radosch> *chuckles*
Goles_ has joined #ruby
<shevy> matz didn't just write a language, he wrote a hidden AI
<radosch> hehe
thomsch has quit [Ping timeout: 255 seconds]
niklasb has quit [Ping timeout: 244 seconds]
Goles has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
<heftig> shevy: it doesn't have to
<heftig> shevy: *(foo) casts (foo) to Array, then does whatever splat means in that context
AlSquire has joined #ruby
apeiros_ has joined #ruby
benlieb has quit [Quit: benlieb]
<radosch> But… any clue how to convert the Range Object to my MyRange < Range Object?
Jasko has quit [Read error: Connection reset by peer]
perun_ has quit [Ping timeout: 255 seconds]
billy_ran_away has quit [Ping timeout: 265 seconds]
<radosch> I thought, that I could also extend the instance with: a = 1..5; a.extend(MyModule::Range)
emergion has joined #ruby
Jasko has joined #ruby
<heftig> MyRange.new(start,end,exclusive)
<radosch> would you really do that?
<heftig> why not?
<shevy> hmm
<radosch> :D ok… I thouhgt it's ugly…
<shevy> a few days ago I was using .extend
<shevy> it works only on that specific object yeah?
<shevy> so you could workaround monkey patching
<radosch> yes
<heftig> def MyRange(x); MyRange.new(x.begin, x.end, x.exclude_end?); end; MyRange(1..9)
<shevy> I still do not understand the MyRange.new part... this really works for (1..5) ?
<shevy> haha you cheat heftig :D
<radosch> hihi
<radosch> I ended up with those to approaches
<shevy> well
<radosch> heftig's and extend
<shevy> MyRange(1..9) vs (1..9)
billy_ran_away has joined #ruby
<heftig> extend thrashes caches, avoid it
<radosch> ok
<heftig> if you do that repeatedly (in a loop), it'll hurt performance
<radosch> ja… I think… Ill end up with the more verbose method
<radosch> at least, its easy to test… and normaly its the way to go
Dario_ has joined #ruby
<radosch> thanks a lot guys!
<radosch> final question… monkey patching is a no-go?
Slivka has quit [Read error: Connection reset by peer]
<ddd> bad bad bad
<radosch> ok… clear statement ;-) thnx
apeiros_ has quit [Ping timeout: 265 seconds]
Dario_ has quit [Ping timeout: 245 seconds]
dstywho has quit [Remote host closed the connection]
Gadgetoid has joined #ruby
freeayu has joined #ruby
thams has quit [Read error: Connection reset by peer]
rakl has quit [Quit: sleeping]
thams has joined #ruby
<ddd> np
perun_ has joined #ruby
jonathanwallace has joined #ruby
yxhuvud has joined #ruby
<havenn> i think we should monkey patch more, refine ALL THE THINGS
dsdeiz has quit [Ping timeout: 265 seconds]
<havenn> github being down is a bummer!
<havenn> :bomb:
samphippen has quit [Quit: Computer has gone to sleep.]
<shevy> havenn what I regret about monkey patch is
<shevy> there is no easy way to restore objects to a tabula rasa state right?
<shevy> like the default
yxhuvud2 has quit [Ping timeout: 252 seconds]
<shevy> so in an environment, modified objects stay modified :(
NeedSomeHelp has left #ruby [#ruby]
<havenn> shevy: Not for free, no. But you can dup and restore if you care to.
<havenn> shevy: If you use refinements, then not a problem. Even the file-scoped refinements are useful imho!
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
<shevy> DAMN
<shevy> github is down
<shevy> I just deleted libevent version 17
<shevy> and it's not there!
razibog has quit [Quit: Leaving.]
jrajav has joined #ruby
<shevy> god everyone moving to github... one day the www is going down because of such bottlenecks
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
icole has quit [Remote host closed the connection]
<jrajav> Yeah screw those awesome, accessible services
<jrajav> Nasty, poisonous things
slainer68 has joined #ruby
rakl has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
adeponte has joined #ruby
love_color_text has quit [Remote host closed the connection]
<shevy> gnu ftp works reliable!!!
<shevy> long live sourceforge, down with github!
Jasko has quit [Read error: Connection reset by peer]
<shevy> hmm let me have a look to #github :)
Jasko has joined #ruby
<shevy> pffffft got loled at there....
jenrzzz has joined #ruby
doritostains has joined #ruby
apeiros_ has joined #ruby
maetthew has quit [Quit: bye]
slainer68 has quit [Ping timeout: 264 seconds]
caemir has joined #ruby
<jrajav> What'd you say? :P
reppard has joined #ruby
apeiros_ has quit [Ping timeout: 265 seconds]
havenn has quit [Remote host closed the connection]
d2dchat has joined #ruby
havenn has joined #ruby
phelps has joined #ruby
crackfu has quit [Remote host closed the connection]
havenn has quit [Read error: Operation timed out]
maetthew has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
jfl0wers has quit [Remote host closed the connection]
<shevy> naaah one lol is enough
* waxjar wants to lol too :(
<shevy> :(
<shevy> you guys are mean!
Na_Klar has joined #ruby
h4mz1d has quit [Read error: Connection reset by peer]
h4mz1d has joined #ruby
<shevy> I am going to wait and sit here until I can download libevent...
ninegrid has quit [Ping timeout: 260 seconds]
<shevy> ERROR 503: Service Temporarily Unavailable.
<shevy> hmm nevermind, I'll write a ruby script checking every 10 minutes
jsilver has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
<Na_Klar> can I Thread.new { "filename.rb" } in any way? (this does not work, of course)
<jrajav> Na_Klar: That doesn't really make sense even as pseudocode...
<jsilver> support GlobalChat2! follow @GlobalChat2Pro :)
<jrajav> Can you explain what you're trying to accomplish?
<ryanf> Na_Klar: I think Thread.new { load "filename.rb" } would do what you want
<jsilver> world dominaion
havenn has joined #ruby
<Na_Klar> jrajav, yea, I want to thread some code which is in another file
<shevy> hmmmm
<ryanf> or definitely Thread.new { eval(File.read("filename.rb")) }
<shevy> so you want to load that code
<Na_Klar> ryanf, load, require, include does not work, the thread does not run any code
<Na_Klar> ryanf, eval would go, but i want to avoid evil stuff
<shevy> hehehehe
The_8473 has joined #ruby
<ryanf> Na_Klar: if you want to avoid evil stuff, you're barking up the wrong tree
<jrajav> This is Ruby
Siphonblast has joined #ruby
<shevy> Na_Klar I dont think there is a way to avoid eval
<jrajav> We're all quite evil here
<jrajav> Mua
<jrajav> Muaha
<jrajav> MuahahahahahahAHAHAHAHA
<ryanf> well what I meant is
<Na_Klar> well ...
icole has joined #ruby
<ryanf> treating it like a script and running it in a separate thread isn't that great a way of doing whatever you're trying to do
<ryanf> if you don't want to use eval, define a method or class in that file, load it first, and then Thread.new { some_actual_code }
<Na_Klar> yeah
<Na_Klar> I should load it as a class first ... ty
<waxjar> why not fork a process?
<Na_Klar> fork is the same as thread.new
<ryanf> waxjar: why fork a process?
The_8472 has quit [Ping timeout: 250 seconds]
<waxjar> or spawn or whatever
<shevy> hehe
<shevy> fork a spawn, spoon a process
<jsilver> node engineers are gayer and more trollish and also bigger n00bs
<jsilver> support GlobalChat2! follow @GlobalChat2Pro :)
<jsilver> <- the troll, says: mostly Ruby
<jsilver> and no, I can't get up and move
<shevy> jsilver man
<shevy> jsilver in the long run the drugs will kill you
<jsilver> what drugs
<mayhew> Na_Klar: are you just trying to run another program?
<shevy> now you even forgot their names :(
<mayhew> Na_Klar: do you care about the output or return value?
<jsilver> no, you're full of shit
<jsilver> follow my twitter
<jsilver> I'm a RockStar baby
<jsilver> Estrella
<shevy> and now you are out of arguments too
<jsilver> nope, Not backing down
<jsilver> U know I pimp
<jsilver> Bull/Shit
<havenn> Better to be a rockstar, wizard or ninja?
<jsilver> Tk yr own drugs
<shevy> you appeal to kids only jsilver
<jsilver> RockstarWizNinja
<nathan28> havenn: better to be a mediocre dev
<mercwithamouth> havenn: God
<jsilver> hmm, well yes Pigs can go fuck them selves
caemir has left #ruby ["Je pars..."]
<jsilver> if that's a bad thing to you
<shevy> that's a very low buzzword-bingo count jsilver
Jasko has quit [Read error: Connection reset by peer]
<jsilver> I think I'd Rather /ignore
<waxjar> no ops around? :(
<jsilver> yeah sure
<jsilver> budy
<nathan28> then you don't have to be the butt of jokes when your lolweb2.0dotbomb company goes teats up
nathan28 has left #ruby [#ruby]
<jsilver> n00b rats move in
Jasko has joined #ruby
<jsilver> someone with actual swag talkin
<jsilver> zombies
<jsilver> totally yea what was i thinking nathan28
<jsilver> i'll be up and moving right away and shall pass
maesbn has joined #ruby
<jsilver> OPS!
<jsilver> OPS!
<jsilver> Reeeeeeeeeeeee
pwelch has joined #ruby
<waxjar> he left dude
<jsilver> well
<jsilver> wack
<jsilver> heheh
pwelch has quit [Client Quit]
<shevy> I am gonna show kids what drugs can do to them, by making a screenshot of you jsilver
maesbn has quit [Remote host closed the connection]
<jsilver> oh shi
<jsilver> that'll show them how wack and untrustable u are for sure!
<jsilver> B/
<jsilver> S
_cheney has joined #ruby
<jsilver> man
<jsilver> big party in china town
<jsilver> u bringin yr snitches?
<shevy> jsilver even a 3 years old would win an argument with you :)
<jsilver> only if the 3 year old had a gun and was raised by the right pigs
<jsilver> maybe you
<jsilver> teach them to hold it with both hands though, buddy
<jsilver> i'm Israeli
<shevy> I am against guns, just look at people like you jsilver
<jsilver> yeah whatever
<jsilver> I don't agree with you n00blet
<shevy> jsilver no you are not
<jsilver> show me a Github
<jsilver> oh haha
Dario_ has joined #ruby
<jsilver> is this trolling, which you are doing
<jsilver> my perscription adderall?
<shevy> jsilver this channel is about the programming language ruby
<jsilver> support GlobalChat2! follow @GlobalChat2Pro :)
<jsilver> and unicorns
<waxjar> can you just stop jsilver, please?
<pdtpatrick> ahhh good ol' ignore :) ..
<jsilver> and polkadots
<jsilver> and the number 34
<wmoxam> #ruby is a ghetto
<wmoxam> :/
<jsilver> good
<jsilver> jews rule here
<jsilver> i hope you /ignore
<jsilver> you may trying involving the IRC Ops
<shevy> jsilver I can not ignore you, you are good for several screenshots
<jsilver> great
<jsilver> hope that you get me cited for acting like a Troll (which I am) and e-crimes
<shevy> jsilver but you should really pick at least one programming language
<wmoxam> jsilver: I'm not sure if it's sad or just pathetic that you're still up to this shit
<jsilver> because, you know, something actually happened
<jsilver> both
<jsilver> wmoxam: both
<wmoxam> I remember you doing this years ago in #ror
waxjar has left #ruby ["dick"]
<shevy> this is sad
<jrajav> What am I seeing here
<jsilver> rofl
<jsilver> you're seeing
<shevy> so many years ago and still doing the same jsilver
<jsilver> ruby community
<jsilver> attack one of it's own
<jsilver> for "trolling"
_cheney has quit [Client Quit]
<jsilver> when he is really just trying to get support for his ALL RUBY
<shevy> jsilver so that is why you are banned from #rubyonrails? :)
<jsilver> OSS project
d2dchat_ has joined #ruby
<jsilver> sure, because they are oversensative too yes
d2dchat has quit [Ping timeout: 252 seconds]
<havenn> dun feed the troll
<jsilver> and i feel its even more delusional then here
<jsilver> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<jsilver> wot
<jsilver> must be all the coke
<jsilver> and whores
kokainepizza has joined #ruby
<wmoxam> what a pathetic hobby
_cheney has joined #ruby
<jsilver> but delusional enterprise
<jsilver> can never beat
<jsilver> a real troll
<jsilver> but yes
<jsilver> this is ruby's zombies
<wmoxam> trolling technical IRC channels on a saturday night
<jsilver> eating one of it's own
<shevy> jsilver go do something constructive man, help out on a project
<jsilver> i MADE a project
<jsilver> helP ME
<jsilver> support GlobalChat2! follow @GlobalChat2Pro :)
<shevy> no you did not
gmci has joined #ruby
<shevy> spam is not a project man
<jsilver> don't click
<shevy> you use github?!?!?!
<jsilver> it will ruin u
<jsilver> well
<jsilver> i don't know
gmci is now known as Guest66575
<jsilver> if jsilverMDX really is me
<jsilver> (maybe)
<shevy> you use github AND spam what the ... man ...
<jsilver> then yes
Dario_ has quit [Ping timeout: 252 seconds]
<havenn> jsilver: Your link broke Github, great job dude...
<jsilver> i didn't spam i wante support
apeiros_ has joined #ruby
<jsilver> no
<jsilver> github itself down right now
<jsilver> but
<jsilver> look
<havenn> jsilver: your fault
<jsilver> maybe
<jsilver> if a butterfly's wings
<shevy> why did you show the github link first
<jsilver> can cause a typhoon in asia
<jsilver> because
<jsilver> I troll
<jsilver> and I can't get up and move right now
<jsilver> :)
<jsilver> rather sit here until a mountain grows on my back
<shevy> github is popular, you could have just used the other link :\
<jsilver> you're right
<shevy> now the illusion that you are a FULL troll is gone
<shevy> because you use github
<jsilver> true
<shevy> :/
<jsilver> i'm only a half troll
<jsilver> because i started hacker and went programmer
<shevy> things used to be better in the past
<jsilver> @shevy, when I spam next... probably in 6 mo's I will do as you said and only spam the new src on github as told
<jsilver> yes, it's true
<wmoxam> 'hacker'
<wmoxam> lol
<shevy> jsilver have you at least ued mIRC?
<shevy> *used
<jsilver> wmoxam: poser hacker on windows around the time of 2600 and irc.paradigm (1996ish)
<wmoxam> self proclaimed too
<jsilver> shevy: yes
<jsilver> wmoxam: more like a skript kiddie
<jsilver> i'm not trying to sound macho or juice
<wmoxam> I'll believe kiddie
<havenn> jsilver: hack the planet
<shevy> yeah, I remember the old irc wars on galaxynet, people used mIRC and mIRC scripts all the time
<jsilver> yes I was a pretty good kiddy and sourt of a n00b script hackertogetherer
caemir has joined #ruby
<jsilver> yes and winnuking
<jsilver> I had my own script
<shevy> well ok, then you can program at least
<jsilver> yesyes
johnmilton has joined #ruby
<trying> http://tree.oooo.tw/ christmas tree in many ways
<wmoxam> 'program'
<jsilver> it's true
<shevy> even though you use it for silly things :P
<jsilver> wmoxam: yes, I can't fix your bike
<jsilver> ^ lie
<jsilver> a man without his macbook...
<jsilver> troll?
<shevy> a good programmer needs only his brain
<jsilver> yes but pencil and a notepad can be great!
<jsilver> in stage 2
<havenn> shevy: And abody, to type with.
<jsilver> wmoxam: I'm not a loser.
<jsilver> - The Decendents
<shevy> jsilver, yeah but when you are in the zone, you dont have to make any notes, your brain just generates the way
<jsilver> agreed
yxhuvud2 has joined #ruby
<shevy> I am rarely in the zone :(
<jsilver> thats ok
<jsilver> experience and practice
<jsilver> can raise your lvl
<shevy> I think irc distracts from thinking
<shevy> pffft experience
<jsilver> nah its fine, but you can try closing it if it convinces you. it's what works for you
<shevy> who wants an old man?
<lepht> anyone happen to know where I can install rvm or rbenv from while github is down?
<shevy> people should be wise AND young
<jsilver> nobody knows how old you are or what you look like online and it doesnt matter
adeponte has quit [Remote host closed the connection]
<jsilver> no thats really against reason
<lepht> github being down makes my world break
<jsilver> nobody is
<jsilver> its whoever cares and thats it
<pdtpatrick> lepht: curl -L https://get.rvm.io | bash -s stable --ruby
<shevy> jsilver hmm I cant give up on irc yet... #ruby is cool... and there are a few more nice people on other channels too...
<jsilver> could be a man, woman, little girl, boy dog or a lien
<havenn> lepht: You should be trying to download chruby while Github is down!
<shevy> lepht mine too... I cant download libevent :(
<jsilver> shevy: yeah its just a little joke app really but the cool part is you chat 100% in Ruby or Node
<lepht> pdtpatrick: …I take it you didn't actually look at that
<pdtpatrick> maybe not :)
<jsilver> works great for a PM or a small channel, but if it were full of 670 ppl like this, it would be the same and nobody could kick the "troll", me, out :p
<jsilver> but maybe with added multiline pasting + log buffer replaying
<matip> do you know any good tutorial/manual/whatever of active record?
<shevy> jsilver there are like no ops here, it's chaos government on #ruby :P
<lepht> havenn: I'd give it a shot but github
<jsilver> it's great. #RubyOnRails is a police state
yxhuvud has quit [Ping timeout: 260 seconds]
<shevy> agreed
<pdtpatrick> is github in AWS ? they should definitely start using multiple AZs .. maybe i'll wait and read up on what happened with them
<jsilver> they make me out to seem worse than I really am.. which is a bigger crime IMO
<shevy> nazi powers requiring registration in order to voice
<havenn> Why hath Github forsaken us???
<lepht> first I've heard of chruby
<lepht> seriously, I'd rather have my gmail go down
<shevy> havenn we were not cool enough :(
<jsilver> shows the true natural progression of a corporate run state
<jsilver> coprorate->fascist->authoritarian
<shevy> I could live with gmail down for 2 days
<havenn> chruby 0.3.0 just got released, supports .ruby-version auto-switching.
<jsilver> this government principle itself I tried to defeat in GC2 by simply.. removing Ops and IRCops
<shevy> jsilver the first and third are both just different ways of fascism
<jsilver> any chat on GC2 is a #Euby
apeiros_ has quit [Ping timeout: 250 seconds]
<jsilver> agree
<lepht> was hoping one of these things would be mirrored on bitbucket, but of course no one actually *uses* bitbucket X|
<shevy> Euby?
<jsilver> #Ruby sorry
<shevy> the sound of that is so... wrong
<shevy> ok
<havenn> lepht: What OS?
<jsilver> you have to lay low.. which i don't so. but I like Rails the product! interesting which way the culture has gone
<shevy> naaah rails is too large these days
caemir_ has joined #ruby
<jsilver> right yea
<jsilver> and pretentious
<jsilver> ha ha
<lepht> havenn: os x… even my package manager is github based :|
<jsilver> ha
<jsilver> <- golf lover
theRoUS has joined #ruby
<jsilver> price of tea in china right
<shevy> hey... lepht you have a package manager??
<havenn> lepht: Was gunna say `brew install chruby` but yeah........ WHY GITHUB, WHY?!?!?
<shevy> aaaah
<lepht> lol
<shevy> now I get it :)
<shevy> brew is down
<lepht> derp
<shevy> omg omg omg...
<jsilver> "not enough to warrant incessant ruby knowledge hunger"
<jrajav> D:
<shevy> all you mac users using brew! I see why you complain :D
<lepht> this is what we get for abandoning ports… even though it barely ever worked
<jrajav> We complain?
<jrajav> lol
<shevy> "Sorry, we're down for maintenance"
<lepht> IT JUST WORKS DAMMIT
<jrajav> Homebrew is literally the best package manager I have ever used
<shevy> jrajav really?
<havenn> jrajav: +1
<pdtpatrick> ehhh i wouldn't go that far
<shevy> but it's mac only :(
<jsilver> yo
<jrajav> shevy: That's kind of the point
<jsilver> all you ppl that cant fix brew
<pdtpatrick> apt-get == AWESOME
<jsilver> rm -rf /usr/local
<jrajav> It's a package manager for OS X
<shevy> man
<lepht> it's also the only one that I've actually authored packages for… the way formula works is fantastic
<jsilver> and reinstall it
<shevy> I am gonna destroy brew one day with my package manager!
<lepht> apt-get is nice as well
<jrajav> pdtpatrick: Well I never used apt, so.. still true :P
<shevy> I will study brew heavily and then rip it apart bit by bit
<jsilver> apt is the only good one ever but gem is honestly better...
<jsilver> apt can shit too and its not much better than port
<lepht> I prefer apt > gem
<shevy> jsilver, please... debian changes packages so much
<shevy> debian does not like gems
<jrajav> gem isn't an OS package manager, it's a language lib package manager
<jsilver> their loss
<jsilver> yes
<lepht> we have neckbeards
PetePorty has joined #ruby
<shevy> lol
<jsilver> homebrew for linux would be better
<jsilver> yes
* jsilver strokes his
<shevy> they hate linux
<jsilver> their win
<havenn> BSD
<lepht> who does
<shevy> !!!
<shevy> machomebrew
<mayhew> Homebrew is terrible compared to apt-get.
<jsilver> i used to get a lot of hate for using linux
PetePorty has quit [Changing host]
PetePorty has joined #ruby
<lepht> shhh mayhew
<pdtpatrick> rpm to some extent is also very nice. I don't think homebrew automatically pull in dependencies. I think it just tells you what you're missing and then exits and expects you to install it and try again
<pdtpatrick> whereas apt-get would usually pull it down
<jrajav> It does
<shevy> well... at least homebrew is written in ruby, so that is cool in my book. I think apt-get is written in perl... and C?
<lepht> I thank god for linux… once apple fully locks down os x, I'm happy I won't have to go to windoze
Goles_ has quit [Quit: Computer has gone to sleep.]
<jrajav> Homebrew resolves dependencies, and well
<lepht> i hatehate rpm
<shevy> lepht tried win 8 yet?
<pdtpatrick> jrajav: it does? last I checked it told me to install mercurial (instead of installing it for me) when i was installing vim
<lepht> nuh. I have no interest in anything w/o posix shell
<lepht> (natively)
staafl has joined #ruby
<jrajav> pdtpatrick: Um... vim depends on mercurial......?
<havenn> pdtpatrick: If so, that is a formula-fail. Start a Github Issue.
<pdtpatrick> nope but i think it needs mercurial to check out the repo
<pdtpatrick> and i went -- *sigh* .. FAIL
<jrajav> Yeah it could be a bad formula
<jrajav> But still, that's not really a dependency, that's more of an overarching "build dep" for homebrew itself
<lepht> you're an overarching build dep
<jrajav> I don't know whether VCS's needed for formulae are specified by the formula themselves or handled internally (or not at all)
<jrajav> lepht: D:
<wmoxam> meh, I just use macports
<wmoxam> don't see the appeal of homebrew
<jrajav> wmoxam: I did too, back when I was young and naive
<havenn> Homebrew is lovely.
<lepht> haha, yeah old me that used macports was dum
<wmoxam> I've used both, and updated a package in macports
<havenn> wmoxam: Is macports still kicking? Well supported?
<wmoxam> havenn: yup
<havenn> wmoxam: Nice.
<wmoxam> it's still great. Not sure why ppl shit on it so much
<havenn> wmoxam: I have no qualms with macports, but no complaints with homebrew. :P
<pdtpatrick> i use whatever gets the job done.
caemir_ has quit [Quit: BNC → EXIT ! |DONE|]
<pdtpatrick> i just happen to use homebrew first and if it fails then i look and see what else is out there :)
<mayhew> wmoxam: doesn't Macports install stuff in the system directories?
<matip> I have "require 'bundler/setup' \n Bundler.require(:default)" in foo.rb and "require 'rubygems' \n require 'active_record'" in Gemfile
<postmodern> how much longer is github going to be down? estimates?
<matip> is it ok?
<matip> I'm getting an error:
<postmodern> considering mirroring some projects on bitbucket or gitorious
<matip> `<top (required)>': cannot load such file -- active_record/base (LoadError)
<pdtpatrick> wow GITHUB -- not looking purrty
<wmoxam> homebrew has less packages, and I don't find homebrew formulas any easier/better to write/edit than BSD style packages
<wmoxam> mayhew: no
<matip> but if I put the requires in foo.rb it works
h4mz1d has quit [Ping timeout: 265 seconds]
<havenn> postmodern: Good point. Do ya think Gitorious or BitBucket is a better stand-in?
<postmodern> preferences for alternative git hosting?
<wmoxam> mayhew: goes in /opt by default, but I think that's configurable
love_color_text has joined #ruby
<postmodern> havenn, good q, i mirrored some stuff on gitorious before
<postmodern> havenn, they allow creating projects with multiple repos, like organizations
emocakes has quit [Quit: emocakes]
<wmoxam> postmodern: sourceforge has git support now, trolololo
<havenn> postmodern: I've only dabbled in Bitbucket, will have to check out Gitorious.
<lepht> I actually sorta like bitbucket… and their native mac GUI vcs client is actually really great
<lepht> actually.
<postmodern> wmoxam, they also have excellent PHP support :P
<lepht> ick
<wmoxam> lol
<postmodern> wmoxam, which gets them hacked once a month
rakl has quit [Quit: sleeping]
<wmoxam> postmodern: I'm sure that their capable of that without php
<lepht> yes, but it comes back to the right tool for the job
<lepht> php is the right tool for that job
<lepht> when there's a link on hacker news to datafart.com, it has been a good day
lolcathost has joined #ruby
<jrajav> datafart describes quite a few HN submissions pretty well
<alexspeller> matip: you have "require 'rubygems' \n require 'active_record'" in Gemfile?
love_color_text has quit [Remote host closed the connection]
<matip> I don't know. do I?
<alexspeller> that's what you said above right?
<matip> (second day with Ruby, don't ask me :P)
<matip> that's what I have, it doesn't mean it's correct!
<alexspeller> OK, it's not
<alexspeller> Go look here: http://gembundler.com/v1.2/gemfile.html
<alexspeller> Your gemfile should have one or more 'source' lines at the top (usually just "source :rubygems")
<alexspeller> And then a load of gem statements
caemir has left #ruby ["Je pars..."]
<alexspeller> Also, one thing to note is that Bundler and the attendant Gemfiles are an optional, awesome extension to rubygems
<lepht> nice try, creator of bundler
<alexspeller> You can just do gem install foogem, and then use require 'foogem' in your scripts, and that'll work most of the time. The problem comes when using multiple versions of gems and ensuring the right ones install on your deployment environment.
<havenn> Other than the filename, I think Gemfile is an awesome idea!
yacks has quit [Ping timeout: 260 seconds]
<alexspeller> Lol I wish I'd created bundler
radosch has quit [Quit: radosch]
<jsilver> a lie
<matip> ah, ok.. it should have been: source :rubygems \n gem "activerecord"
<jsilver> re: BullShi
<matip> though it's still returning `<top (required)>': uninitialized constant ActiveRecord (NameError)
apeiros_ has joined #ruby
<matip> I suppose it is because it should be gem "activerecord", :require => "active_record" instead
<lepht> for the love of god, everything I'm trying to do right now ends up at a gd error page with the octocat in a hardhat
<alexspeller> lepht: I watched this great presentation by Greg Wilson about the lack of empiricism in software development (http://vimeo.com/9270320), and decided this evening to try and get some statistics together on the top github repos :(
<lepht> alexspeller: interesting, well that'll at least give me something to watch while my nerd is busted
phelps has quit [Quit: Computer has gone to sleep.]
<postmodern> lepht, btw i just mirrored chruby to bitbucket
caemir has joined #ruby
emocakes has joined #ruby
lolcathost has quit [Remote host closed the connection]
phelps has joined #ruby
phelps has quit [Remote host closed the connection]
lolcathost has joined #ruby
<lepht> postmodern: thx, I'll give it a look… although I ended up giving up and just compiling my own and replacing sysruby. what the sys admins don't know...
<postmodern> lepht, i hope you installed it into /usr/local
ewag has joined #ruby
<postmodern> lepht, otherwise the sysadmins will kill you
ryanf_ has joined #ruby
<lepht> bah. they're a grumpy bunch anyway, if I didn't give them this they'd find something else
bigmcq77 has quit [Quit: Computer has gone to sleep.]
caemir has left #ruby ["Je pars..."]
<lepht> postmodern: yep, /usr/local. wasn't on purpose though ;)
thomsch has joined #ruby
<lepht> effing debian boxes at work are running 1.8.5… guess that's what I get for working in a perl shop
apeiros_ has quit [Ping timeout: 265 seconds]
<postmodern> lol
<postmodern> lepht, convince them to upgrade to debian-testing
ryanlecompte has joined #ruby
thomsch has quit [Ping timeout: 244 seconds]
sayan has joined #ruby
reppard has quit [Ping timeout: 245 seconds]
aapzak has quit [Ping timeout: 252 seconds]
<lepht> if I had a nickel for every time I've convinced sys admins to do something reasonable… 0 nickels
<lepht> oh hey, chruby fixes a bunch of things that annoyed me about rbenv/rvm
aapzak has joined #ruby
<postmodern> lepht, less is more :)
radic has quit [Disconnected by services]
radic_ has joined #ruby
thmzlt has joined #ruby
emocakes has quit [Quit: emocakes]
thmzlt has quit [Remote host closed the connection]
Dario_ has joined #ruby
lolcatho` has joined #ruby
lolcatho` has quit [Read error: Connection reset by peer]
lolcathost has quit [Read error: Connection reset by peer]
thmzlt has joined #ruby
emmanuelux has quit [Ping timeout: 244 seconds]
alexspeller has quit [Remote host closed the connection]
thmzlt has quit [Remote host closed the connection]
<shevy> hmm not sure postmodern
alexspeller has joined #ruby
<shevy> less code is nice as it gives you less headache
<shevy> but there are still useful features to have!
<postmodern> shevy, less features i think is better
<postmodern> shevy, er minimal set of features
<shevy> dunno
<shevy> i'd say minimal, and "a little bit more" :)
anarchist has joined #ruby
<lepht> I hate features
Dario_ has quit [Ping timeout: 260 seconds]
<jrajav> "Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher." - Antoine de Saint-Exupéry, Terre des Hommes
<jrajav> It seems that perfection is reached not when there is nothing more to add, but when there is nothing to subtract.
matip_ has joined #ruby
billy_ran_away has quit [Ping timeout: 255 seconds]
waxjar has joined #ruby
<lepht> deep bro
<shevy> well
alexspeller has quit [Ping timeout: 252 seconds]
crackfu has joined #ruby
<shevy> DNA has only four information states at any one point, one of the four bases A,T,C,G. and from this alone, you can build all living organisms, including all of their morphs and, at least for simple reactions, their behaviour as well
billy_ran_away has joined #ruby
<jrajav> Holy emoji
matip has quit [Ping timeout: 252 seconds]
<lepht> I always wonder who will be able to actually view it when I use emoji
<lepht> I assume windows just blue screens
yxhuvud has joined #ruby
jenrzzz has joined #ruby
<postmodern> my irc client is too old for emoji :P
<lepht> hipster
<postmodern> it makes the text just feel more natural
yxhuvud2 has quit [Ping timeout: 265 seconds]
<lepht> well I use sh
<lepht> take that.
kamsel has quit [Ping timeout: 245 seconds]
<lepht> I do like weechat though… what are you using? and what did they emoji show up as?
pen has quit [Ping timeout: 252 seconds]
LouisGB has quit [Ping timeout: 245 seconds]
<postmodern> waiting for someone to claim they netcat into irc, and manually type PONG commands to stay connected
<Norrin> lepht, xchat
<lepht> gross
pen has joined #ruby
<postmodern> Norrin, lepht, xchat2
apeiros_ has joined #ruby
<ddd> can I claim to have *tried* that? :)
<lepht> as long as you didn't inhale
<ddd> damn
Russell^^ has quit [Quit: Russell^^]
<lepht> WOOOOOOT
<lepht> github is back
<ddd> then fine. i'ma go watch Jeff Dunham and call it an evening
<lepht> quick, do stuff before it goes away
<lepht> ugh. jeff dunham
<ddd> that fucker is F U N N Y!
<jrajav> Jeff Dunham is to funny like Jack Black is to metal
<havenn> I'm in Github withdrawal.
<jrajav> It's back up
<ddd> think its time to submit my dequel model files and the AR model files to the sequel list and see if i can get some help rewriting these.
<ddd> cause, i'm getting frustrated to hell and back trying to convert off ar
jenrzzz has quit [Read error: Connection reset by peer]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<ddd> just absolutely can not wrap my head around the associations
lolcathost has joined #ruby
miskander has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
staafl has quit [Quit: Leaving]
lolcathost has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
jenrzzz has joined #ruby
kokainepizza has quit [Quit: My pooter is sleep.]
<lepht> anyone know of a file pager — like less — that does color highlighting of stuff like README.md's, etc?
joofsh has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
PetePorty has quit [Remote host closed the connection]
nari_ has joined #ruby
pcarrier has quit []
havenn has quit [Remote host closed the connection]
parzorep_ has joined #ruby
stevechiagozie has joined #ruby
sayan has quit [Quit: Leaving]
havenn has joined #ruby
havenn has quit [Read error: Connection reset by peer]
parzorep has quit [Read error: Connection reset by peer]
parzorep_ is now known as parzorep
<jrajav> lepht: vimpager ftw :P
cj3kim has joined #ruby
ryannielson has left #ruby [#ruby]
<lepht> yeah, just blows on large files
tjasko__ has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
Jasko has quit [Ping timeout: 255 seconds]
<jrajav> Yeah, it's actually kind of surprising how poorly vim handles large files
<jrajav> I had to resort to ST2 to browse a ~100mb xml file a while ago
<jrajav> (On Windows)
ryanf__ has joined #ruby
apeiros_ has joined #ruby
VegetableSpoon has quit [Read error: Operation timed out]
ryanf_ has quit [Ping timeout: 260 seconds]
nari_ has quit [Ping timeout: 252 seconds]
emocakes has joined #ruby
Dario_ has joined #ruby
billy_ran_away has left #ruby ["Textual IRC Client: www.textualapp.com"]
apeiros_ has quit [Ping timeout: 255 seconds]
bigmcq77 has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
jzig has quit []
emocakes has quit [Ping timeout: 256 seconds]
formax has joined #ruby
acrocity_ has joined #ruby
Dario_ has quit [Ping timeout: 245 seconds]
acrocity has quit [Ping timeout: 248 seconds]
acrocity_ is now known as acrocity
theRoUS has quit [Ping timeout: 260 seconds]
thmzlt has joined #ruby
<lepht> …what are you doing with your life, jrajav
havenn has joined #ruby
miskander has quit [Quit: miskander]
<jrajav> I'm creating
<jrajav> Usually software
yxhuvud2 has joined #ruby
<jrajav> That does tend to involve 100mb xml files on occasion, believe it or not :P
<jrajav> It was a patent including chemical formulae, if you're curious
Takehiro has joined #ruby
yxhuvud has quit [Ping timeout: 244 seconds]
alexspeller has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
kil0byte_ has quit [Remote host closed the connection]
Takehiro has joined #ruby
emmanuelux has joined #ruby
<shevy> jrajav wheee you know chemistry!
<jrajav> I know software that works with patents :P
Teddy2steper has joined #ruby
ryanf__ has quit [Quit: broken pipes |||]
Takehiro has quit [Remote host closed the connection]
woolite64 has joined #ruby
Takehiro has joined #ruby
alexspeller has quit [Ping timeout: 252 seconds]
mayhew has quit [Quit: leaving]
yfeldblum has joined #ruby
banister_ has quit [Ping timeout: 250 seconds]
apeiros_ has joined #ruby
ananthakumaran has joined #ruby
huoxito has quit [Quit: Leaving]
apeiros_ has quit [Ping timeout: 244 seconds]
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
Teddy2steper has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
x82_nicole has joined #ruby
ryanlecompte has joined #ruby
cakeboss has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
thomsch has joined #ruby
iamjarvo has joined #ruby
ruzu has quit []
thomsch has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
g_bleezy has joined #ruby
vlad_starkov has joined #ruby
crackfu has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
Dario_ has joined #ruby
rippa has joined #ruby
savage- has joined #ruby
spinagon has joined #ruby
pen has quit [Remote host closed the connection]
savage- has left #ruby [#ruby]
nanothief has joined #ruby
Xeago has joined #ruby
apeiros_ has joined #ruby
mjolk has joined #ruby
kiyoura has quit [Ping timeout: 265 seconds]
Dario_ has quit [Ping timeout: 255 seconds]
rippa has quit [Ping timeout: 250 seconds]
jprovazn has quit [Ping timeout: 248 seconds]
<anarchist> i have a web app that runs on ruby. is there a way to drop to the command line, execute a bash script, and print the output from my web app?
xebappu has joined #ruby
tk__ has joined #ruby
<iamjarvo> anarchist: are you talking about a log output?
<aces1up> http://codepad.org/8fdg1Wqh can someone help my with this bit of exception code?
<aces1up> wondering if my custom exception will be cause by my general exception in the same block.
<anarchist> i want to drop down from ruby, execute a command line on the terminal, and come back up with the standard output
hero has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
yxhuvud has joined #ruby
gatorate has joined #ruby
<iamjarvo> anarchist: you can execute bash scripts from ruby http://stackoverflow.com/questions/2232/calling-bash-commands-from-ruby
bigmcq77 has joined #ruby
hero_ has quit [Ping timeout: 255 seconds]
<gatorate> iamjarvo I have a related question.
yxhuvud2 has quit [Ping timeout: 260 seconds]
<gatorate> Does anyone know how to check which processes are open, and kill them within a ruby script ?
apeiros_ has quit [Ping timeout: 255 seconds]
<gatorate> I am writing a ruby script that needs to ensure that no other ruby scripts are currently running.. if that makes sense.
<anarchist> it's something like ps -x | grep ruby
<anarchist> or ps -a | grep ruby
<anarchist> ps something
<shevy> we should make a poll
<iamjarvo> gatorate: don't have a solid answer for your but, I played around with process a bit http://www.ruby-doc.org/core-1.9.3/Process.html
<shevy> which programming language has the most sexy looking programmers
<iamjarvo> shevy: i think its ruby haha
<gatorate> shevy Ironically: Flash developers.
<shevy> gatorate whaaaaat???
mercwithamouth has quit [Ping timeout: 260 seconds]
emmanuelux has quit [Quit: emmanuelux]
<shevy> hmmm
<shevy> I am gonna google that up
<shevy> lol "how to become a flash developer" http://www.ehow.com/how_2070982_become-flash-developer.html
<shevy> granted, they know how to dress up
Na_Klar has quit [Quit: ChatZilla 0.9.87 [Firefox 17.0.1/20121129164337]]
<gatorate> You hate but I have a friend who's a flash developer. He makes like 140k. Apparently the demand is crazy since everyone hates flash, thus there is like nobody learning it.
emmanuelux has joined #ruby
<gatorate> Not flash design.
<gatorate> I mean like flash for streaming video
haxrbyte_ has quit [Ping timeout: 252 seconds]
<gatorate> ala youtube
<gatorate> hulu
<gatorate> netflix
<davidcelis> lol flash
<davidcelis> just do HTML5, save yourself 70% of your CPU
<gatorate> and lose customers davidcelis
<gatorate> Flash has higher penetration on pc.
<gatorate> than html5
<davidcelis> penetration? gross
elico has quit [Ping timeout: 255 seconds]
<gatorate> Real talk my friend.
mercwithamouth has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
elico has joined #ruby
<gatorate> anarchist ps a | grep ruby gives me all ruby processes
Slivka has joined #ruby
<anarchist> coolio
<gatorate> how can i pipe kill into that?
<anarchist> usually awk is the way to go, i'm just learning it
<gatorate> awk ?
<anarchist> yeah sed, awk and grep are the big three of linux
<davidcelis> awkward...
<anarchist> sed edits a stream line by line
<shevy> gatorate cant you just kill the process id?
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
<anarchist> awk understands each thing as a field so it's good for structured predictable output
<anarchist> and grep does what it do
<gatorate> "each thing"
<anarchist> this that the other
<anarchist> $1 = this
<shevy> Process.kill :QUIT, $PROCESS_ID
<anarchist> $2 = that
<anarchist> $3 = the
<anarchist> $4 = other
<shevy> yum, global variables
<shevy> if you don't like global variables,
<shevy> you just haven't been using them enough yet!
<gatorate> I understand anarchist.
<gatorate> so if "ps -a | grep ruby" gives me "2894 s002 R 0:00.00 grep ruby"
<gatorate> What I really want is that first word. 2894
<gatorate> this is the process ID
d2dchat_ has quit [Remote host closed the connection]
<gatorate> Actually I think that is my own process.
<gatorate> What if I kill my own process before the other ones I want to kill.
<gatorate> That sounds bad.
stevechiagozie has quit [Ping timeout: 245 seconds]
joofsh has quit [Remote host closed the connection]
zommi has joined #ruby
fir_ed has quit [Ping timeout: 252 seconds]
<shevy> lol
<shevy> gatorate you should get your own id in $PROCESS_ID right?
<shevy> Process.kill :QUIT, $PROCESS_ID <-- in irb, will make irb dysfunctional
icole has quit [Remote host closed the connection]
icole has joined #ruby
<anarchist> if you put it through awk $1 then that should do it
<anarchist> sorry i don't know the syntax off the top of my head but it's the first thing you'd learn in an awk primer
<shevy> lol
<shevy> that's the thing with this syntax, you forget it quickly
<shevy> so you learn awk, but you forget it :)
<shevy> gatorate cant you just split the string at .split(' ')[0] to obtain the id, then kill it?
Nisstyre-laptop has quit [Read error: Connection reset by peer]
gqlewis has joined #ruby
hadees has joined #ruby
<gatorate> Okay heres a dilemma for you
<gatorate> what if theres like 3 ruby processes
<gatorate> Now I need to split on \n newline right ?
<gatorate> and then loop through and kill .split(' ')[0]
<shevy> hmmm
<shevy> not sure how to find out the proper one in this case
<shevy> perhaps with the name of the script additionally
apeiros_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
gqlewis has quit [Remote host closed the connection]
<waxjar> there's a flag for ps that displays the whole command (including the parameters etc)
Slivka has quit [Remote host closed the connection]
mjolk has quit [Remote host closed the connection]
<aedorn> I imagine if I were able to put Ruby code in a blender that it would taste like a strawberry and blueberry smoothie.
eldariof has joined #ruby
xebappu has quit [Quit: Leaving]
<shevy> aedorn lol
cableray has joined #ruby
emergion has joined #ruby
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
Nisstyre-laptop has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
Nisstyre-laptop has joined #ruby
apeiros_ has quit [Ping timeout: 255 seconds]
pen has joined #ruby
rippa has joined #ruby
SirRamonGabriel has joined #ruby
spinagon has quit [Ping timeout: 250 seconds]
rippa has quit [Ping timeout: 250 seconds]
elico has quit [Remote host closed the connection]
rippa has joined #ruby
pen has quit [Read error: Connection reset by peer]
emergion has quit [Quit: Computer has gone to sleep.]
pen has joined #ruby
ner0x has joined #ruby
Dario_ has joined #ruby
yaroslav has joined #ruby
rippa has quit [Ping timeout: 250 seconds]
spinagon has joined #ruby
fir_ed has joined #ruby
rippa has joined #ruby
spinagon has quit [Read error: Connection reset by peer]
Dario_ has quit [Ping timeout: 260 seconds]
robustus has quit [Ping timeout: 244 seconds]
<aedorn> I've discovered that trying to find tires for my vehicle pains me more than trying to fix bugs in untested spaghetti code.
robustus has joined #ruby
<lepht> ...
<lepht> !UNSUBSCRIBE
iamjarvo has left #ruby [#ruby]
iamjarvo has joined #ruby
rippa has quit [Ping timeout: 250 seconds]
emocakes has joined #ruby
rippa has joined #ruby
yxhuvud2 has joined #ruby
Takehiro has joined #ruby
yxhuvud has quit [Ping timeout: 244 seconds]
Bosox20051 has quit [Quit: Leaving]
LouisGB has joined #ruby
emocakes has quit [Ping timeout: 244 seconds]
thams has quit [Quit: thams]
rippa has quit [Ping timeout: 250 seconds]
pen has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
Guest66575 has quit [Read error: Operation timed out]
rippa has joined #ruby
pen has joined #ruby
LouisGB has quit [Ping timeout: 264 seconds]
pencilcheck has joined #ruby
pen has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 250 seconds]
sayan has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
thomsch has joined #ruby
zommi has left #ruby [#ruby]
woolite64 has quit [Ping timeout: 272 seconds]
rippa has joined #ruby
rippa has quit [Ping timeout: 250 seconds]
Takehiro has quit [Remote host closed the connection]
fgro has joined #ruby
rippa has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
rippa has quit [Ping timeout: 250 seconds]
spinagon has joined #ruby
Nisstyre-laptop has joined #ruby
fjfish has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
SirRamonGabriel has quit [Remote host closed the connection]
<aedorn> Best interprocess communication between a high output application written in Ruby and a GUI written in some-other-language would be?
francisfish has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
spinagon has quit [Ping timeout: 250 seconds]
nerd has quit [Quit: WeeChat 0.3.9.2]
x82_nicole has quit [Quit: Computer has gone to sleep.]
<aedorn> I'm kind of leaning towards a ZeroMQ solution (with em-zeromq) ... but I'm wondering if there might be a better solution that I haven't really thought of
thmzlt has quit [Ping timeout: 255 seconds]
apeiros_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
fgro has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
<aedorn> guess RabbitMQ would work too... probably don't need to worry about much in the way of performance for 1 or 2 gui "clients" per singular app
rakl has joined #ruby
lenovodroid has joined #ruby
havenn has quit [Remote host closed the connection]
pencilcheck has quit [Remote host closed the connection]
havenn has joined #ruby
fir_ed has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 252 seconds]
Dario_ has joined #ruby
apeiros_ has quit [Ping timeout: 265 seconds]
havenn has quit [Ping timeout: 252 seconds]
h4mz1d has joined #ruby
<TTilus> rmq migt be an overkill
Dario_ has quit [Ping timeout: 252 seconds]
pen has joined #ruby
yxhuvud has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
iamjarvo has quit [Quit: Leaving.]
yxhuvud2 has quit [Ping timeout: 256 seconds]
nerd has joined #ruby
<reactormonk> aedorn, depends - how do the data dependencies look like?
Takehiro has joined #ruby
bluOxigen has joined #ruby
rakl has quit [Quit: sleeping]
t0dd has joined #ruby
nerd has quit [Quit: WeeChat 0.3.9.2]
apeiros_ has joined #ruby
rakl has joined #ruby
luckyruby has quit [Remote host closed the connection]
t0dd has quit [Quit: Leaving]
nemesit has joined #ruby
lenovodroid has quit [Read error: Connection reset by peer]
Beoran__ has joined #ruby
pmros has joined #ruby
Beoran_ has quit [Ping timeout: 265 seconds]
<pmros> hi!
vlad_starkov has quit [Remote host closed the connection]
Solnse has joined #ruby
Axsuul has quit [Read error: Connection reset by peer]
apeiros_ has quit [Ping timeout: 260 seconds]
nomenkun has joined #ruby
stayarrr has joined #ruby
arietis has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
Neomex has joined #ruby
Neomex has quit [Client Quit]
Dario_ has joined #ruby
cableray has quit [Quit: cableray]
Nss has joined #ruby
cableray has joined #ruby
apeiros_ has joined #ruby
Dario_ has quit [Ping timeout: 255 seconds]
fire has joined #ruby
yxhuvud2 has joined #ruby
yxhuvud has quit [Ping timeout: 264 seconds]
Juul has joined #ruby
pen has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 252 seconds]
pmros has quit [Quit: Konversation terminated!]
nomenkun has quit [Remote host closed the connection]
Virunga has joined #ruby
olivererxleben has joined #ruby
emocakes has joined #ruby
stayarrr has quit [Ping timeout: 244 seconds]
emocakes has quit [Ping timeout: 250 seconds]
tPl0ch has joined #ruby
_br_ has quit [Excess Flood]
ryanf has quit [Quit: leaving]
lkba has quit [Quit: Bye]
ryanf has joined #ruby
_br_ has joined #ruby
lenovodroid has joined #ruby
icole has quit [Remote host closed the connection]
icole has joined #ruby
_br_ has quit [Excess Flood]
yxhuvud2 has quit [Ping timeout: 244 seconds]
marr has joined #ruby
braoru has joined #ruby
ryanf has quit [Quit: leaving]
h4mz1d has quit [Ping timeout: 265 seconds]
_br_ has joined #ruby
apeiros_ has joined #ruby
thillux has joined #ruby
yxhuvud has joined #ruby
ner0x has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
cableray has quit [Quit: cableray]
ebouchut has joined #ruby
vlad_starkov has joined #ruby
jbw has quit [Ping timeout: 245 seconds]
Takehiro has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
yosafbridge has quit [Read error: Connection reset by peer]
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
pmros has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
lenovodroid has quit [Read error: Connection reset by peer]
busybox43 has quit [Ping timeout: 255 seconds]
gatorate has quit [Quit: gatorate]
yosafbridge has joined #ruby
chendo_ has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
Dario_ has joined #ruby
jbw has joined #ruby
darthdeus has quit [Quit: Leaving...]
emocakes has joined #ruby
<pmros> hi!
Dario_ has quit [Ping timeout: 265 seconds]
hotovson has joined #ruby
koshii has quit [Ping timeout: 252 seconds]
ananthakumaran has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
hero has quit [Quit: leaving]
apeiros_ has joined #ruby
cloud|nix has joined #ruby
ozgor has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
LouisGB has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
love_color_text has joined #ruby
nomenkun has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
nomenkun has quit [Ping timeout: 250 seconds]
kil0byte has joined #ruby
Solnse2 has joined #ruby
cloud|nix has quit [Ping timeout: 246 seconds]
dsdeiz has joined #ruby
Solnse has quit [Ping timeout: 276 seconds]
<dsdeiz> hi all is it possible to convert a hash to yaml format as a string?
nomenkun has joined #ruby
apeiros_ has joined #ruby
ozgor has quit [Quit: ozgor]
timonv has joined #ruby
radosch has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Nss has quit [Quit: Sto andando via]
matrixise has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
Juul has quit [Ping timeout: 260 seconds]
nomenkun has quit [Remote host closed the connection]
cloud|nix has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 252 seconds]
Virunga has quit [Remote host closed the connection]
kidoz has joined #ruby
Virunga has joined #ruby
emocakes has quit [Quit: emocakes]
Nss has joined #ruby
neurotec_ has joined #ruby
cakeboss has quit [Ping timeout: 264 seconds]
Solnse2 has quit [Ping timeout: 245 seconds]
neurotech has quit [Ping timeout: 260 seconds]
karakedi has quit [Ping timeout: 252 seconds]
icole has joined #ruby
aapzak has quit [Remote host closed the connection]
icole has quit [Ping timeout: 250 seconds]
sayan has joined #ruby
banisterfiend has joined #ruby
dsdeiz has quit [Ping timeout: 252 seconds]
assurbanipal_ has joined #ruby
elico has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
parzorep has quit [Quit: parzorep]
nilg has joined #ruby
assurbanipal_ has quit [Quit: Leaving]
assurbanipal_ has joined #ruby
S1kx has quit [Quit: Leaving]
jenrzzz has joined #ruby
tjasko__ has quit [Read error: Connection reset by peer]
shemerey has joined #ruby
tjasko__ has joined #ruby
shemerey has quit [Client Quit]
eka has joined #ruby
nick_h has quit [Ping timeout: 255 seconds]
nick_h has joined #ruby
<xybre> So, any ideas as to why a nested array of 160,000,000 elements takes up 6gigs of RAM?
<xybre> One large array with 450ish subarays, each with a few hundred thousand elements.
elico has quit [Quit: elico]
<xybre> My math says they're taking up like 40MB apiece, which has got to be wrong.
jimeh has joined #ruby
<banisterfiend> xybre: why don't you investigate it, inspect the contents at runtime to get a sense
<xybre> banisterfiend: I'm not aware of a good way of getting the actual memory usage of an object in memory from Ruby.
<jessta> xybre: isn't that 40 bytes
<xybre> jessta: Oh yeah. Woops. That makes more sense.
<xybre> :D
lkba has joined #ruby
esdf has joined #ruby
<apeiros_> jessta: iirc it's more around 20bytes (1.9)
<esdf> hey guys, this is my script, http://sprunge.us/QZaE?rb, and this is the json file im parsing, http://sprunge.us/HgWf?json. now while it parses good, i'm wondering how do I remove the quotation marks and make it print host_name and host_address in same line, instead of newline for each host_name & host_address
<esdf> I am using the json gem
<apeiros_> esdf: puts "#{a} #{b}"
<apeiros_> `p obj` is `puts obj.inspect`
vlad_starkov has joined #ruby
<xybre> apeiros_: 20B is probably the overhead, but it includes the actual object its holding, not just the array skeleton.
<apeiros_> the term for "#{…}" is 'string interpolation', and you can have any valid ruby expression within #{}
<esdf> apeiros_, so I replace p servers["host_name"] with puts "#{host_name} #{host_address}"?
<apeiros_> xybre: for an array, yes, you'd have to calculate 20B+N*4 (or 8 in 64bit rubies?)
<apeiros_> esdf: almost. you don't have a host_name variable. ruby can't guess that by hostname, you mean servers["host_name"] (how could it?)
<esdf> ah yeah, servers["host_name"] and servers["host_address"]
<apeiros_> yes
<xybre> apeiros_: well, I wasn't doing the math that way, I actually generated the numbers, pulled real world memory usage and then knowing about how many elements were created I could use that to divide the observed memory usage.
<esdf> tys
<xybre> So I'm including all the objects, the overhead of the interpreter, and everything.
sayan has quit [Ping timeout: 252 seconds]
cloud|nix has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
reppard has joined #ruby
<esdf> apeiros_, I might be doing this wrong, puts line doesnt print out the strings under servers array, it just prints out servers["host_name"] and host_address
<esdf> i mean, like it'd print out "Hello World"
emocakes has joined #ruby
<xybre> I was oringally sort of attemping to mirror the overall size of Ultima Ratio Regum's map which is 40,000 x 40,000 (1,600,000,000 elements)
<apeiros_> esdf: I don't get what you say
<apeiros_> esdf: maybe show your current code, the expected output and the actual output
tjasko__ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 246 seconds]
tjasko__ has joined #ruby
<esdf> apeiros, the expected output would be "Duel <ip address>", and the output is "servers[...]"
x42 has joined #ruby
<esdf> i've replaced the p servers["host_name"] with puts '#{servers["host_name"]'
<x42> I'm thinking about using ruby again for a new project - do i still should use rvm to install ruby?
<esdf> apeiros_, http://sprunge.us/VaQf?rb
emocakes has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
<apeiros_> esdf: single quotes don't work for interpolation
<apeiros_> you need double quotes
nomenkun has joined #ruby
<esdf> oh ok, let me retry
mrsrikanth has joined #ruby
<esdf> apeiros_, ah it works now, ty!
Goles has joined #ruby
<esdf> apeiros_, btw, can I grab the json from url instead of file?
maesbn has joined #ruby
nomenkun has quit [Ping timeout: 250 seconds]
nomenkun has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
<apeiros_> esdf: yes, look at open-uri
emergion has joined #ruby
ananthakumaran has joined #ruby
pmros has quit [Quit: Konversation terminated!]
<esdf> apeiros_, yeah figured it out, thought it was a gem and couldn't find it
<esdf> that's why i asked
ippif has joined #ruby
tenmilestereo has joined #ruby
marienz has joined #ruby
mrsrikanth has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
hotovson has quit [Remote host closed the connection]
maesbn has quit [Remote host closed the connection]
sayan has joined #ruby
elico has joined #ruby
banisterfiend has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
GeekOnCoffee has quit [Ping timeout: 245 seconds]
reppard has quit [Ping timeout: 255 seconds]
cousine has joined #ruby
GeekOnCoffee has joined #ruby
sayan has quit [Read error: Connection reset by peer]
ippif has quit [Quit: Computer has gone to sleep.]
eka has quit [Quit: Computer has gone to sleep.]
GeekOnCoffee has quit [Ping timeout: 276 seconds]
mrsrikanth has joined #ruby
stayarrr has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
philcrissman has joined #ruby
VegetableSpoon has joined #ruby
ippif has joined #ruby
olivererxleben has quit [Ping timeout: 255 seconds]
blaxter has joined #ruby
dilshod has joined #ruby
reppard has joined #ruby
dilshod has left #ruby [#ruby]
kamsel has joined #ruby
Hanmac1 is now known as Hanmac
elico has quit [Remote host closed the connection]
Iszak has joined #ruby
elico has joined #ruby
<anarchist> is there any way to get rid of "press 'q' to continue" on rvm? something like apt-get install -y somepackage?
AndChat| has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
MissionCritical has quit [Ping timeout: 244 seconds]
yacks has quit [Ping timeout: 264 seconds]
Takehiro has quit [Remote host closed the connection]
yacks has joined #ruby
reppard has quit [Quit: leaving]
nanothief has quit [Ping timeout: 256 seconds]
reppard has joined #ruby
stayarrr has quit [Quit: Leaving...]
ebouchut has joined #ruby
thillux has quit [Remote host closed the connection]
assurbanipal_ has quit [Remote host closed the connection]
sayan has joined #ruby
Xeago has quit [Remote host closed the connection]
graeme has joined #ruby
Assurbanipal has joined #ruby
Xeago has joined #ruby
shiin has joined #ruby
elaptics`away is now known as elaptics
elaptics is now known as elaptics`away
<anarchist> okay apparently even though i have chef i need a debian package called 'expect' to automate an interactive screen that tells me to press 'q' after installing what chef already installed
samphippen has joined #ruby
emocakes has joined #ruby
MissionCritical has joined #ruby
zmo_ has joined #ruby
<anarchist> i don't know if it's more important for chef to start incorporating expect or for rvm to have a flag that allows you to skip confirmation dialogs
Xeago has quit [Ping timeout: 252 seconds]
emocakes has quit [Ping timeout: 265 seconds]
ikaros has joined #ruby
<reppard> -y ?
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
S1kx has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
<csmrfx> 8)
emocakes has joined #ruby
mrsrikanth has quit [Remote host closed the connection]
nilg has quit [Read error: Connection reset by peer]
doritostains has quit [Quit: Leaving...]
reppard has quit [Ping timeout: 265 seconds]
maesbn has joined #ruby
mrsrikanth has joined #ruby
pen has joined #ruby
ippif has quit [Quit: Computer has gone to sleep.]
nilg has joined #ruby
Villadelfia_ has joined #ruby
Villadelfia has quit [Ping timeout: 260 seconds]
gmci has joined #ruby
emergion has joined #ruby
gmci is now known as Guest24232
SeySayux has quit [Ping timeout: 244 seconds]
nomenkun has joined #ruby
maesbn has quit [Remote host closed the connection]
SeySayux has joined #ruby
gener1c has joined #ruby
<gener1c> whats cucumber?
<gener1c> is it a testing suit a doc?
<gener1c> i dont understand it
ebouchut has quit [Quit: This computer has gone to sleep]
<apeiros_> it's a test "driver"
<apeiros_> it translates natural language to code/instructions, if you want
<apeiros_> just google, there's enough explanations online
maesbn has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
<gener1c> i did but when i saw natural language i got confused :P
BBonifield has quit [Ping timeout: 245 seconds]
fire has quit [Ping timeout: 260 seconds]
ebouchut has joined #ruby
rakuN has joined #ruby
BBonifield has joined #ruby
reppard has joined #ruby
maesbn has quit [Ping timeout: 245 seconds]
<TTilus> cukse.info
<TTilus> cukes even
<TTilus> damn cellphone keyboards :)
<TTilus> the language is called gherkin
<TTilus> loosely structured almost-natural-language
graeme has quit [Quit: graeme]
philips_ has quit [Excess Flood]
pats_Toms has joined #ruby
neurotec_ has quit [Ping timeout: 250 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
<pats_Toms> hi, I want to setup Bundler on ubuntu. I tread to use budle install, but command didn't work for mee - http://sprunge.us/OfDO . Any ideas?
AndChat| has quit [Quit: Bye]
fire has joined #ruby
Banistergalaxy has joined #ruby
<TTilus> pats_Toms: do you have gem binaries in PATH?
<pats_Toms> now I have them...
<pats_Toms> that were the problem
iaj has quit [Ping timeout: 265 seconds]
<yfeldblum> cucumber is for if you want to make things more complicated than they need to be
<matip_> what's the correct approach to handle errors in datamapper? specially duplicate violations errors (the official doc doesn't say anything)
rakuN has quit [Remote host closed the connection]
greenarrow has quit [Quit: IRC is just multiplayer notepad]
lkba has quit [Ping timeout: 255 seconds]
formax has left #ruby [#ruby]
ewag has quit [Ping timeout: 255 seconds]
reppard has quit [Ping timeout: 260 seconds]
nomenkun_ has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
tpe11etier_ has joined #ruby
iaj has joined #ruby
Assurbanipal has quit [Remote host closed the connection]
ebouchut has quit [Quit: This computer has gone to sleep]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
<apeiros_> yfeldblum: cucumber has its uses. but I think it's rarely ever used in a way to actually make use of them.
cibs has quit [Ping timeout: 245 seconds]
Goles has quit [Ping timeout: 265 seconds]
<TTilus> apeiros_: you hit the sweet spot
Guest24232 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<apeiros_> TTilus: we used cucumber at work, for its intended usage (communicate with stakeholders), but it didn't work out
ebouchut has joined #ruby
<TTilus> having used cuke, it worked wonders for me for the exactly same purpose
<TTilus> but not in every case
iamjarvo has joined #ruby
philcrissman has quit [Remote host closed the connection]
<TTilus> i havent quite figured out whats the combination of devops and customer (and other stakeholders) mindsets thamakes it work
marr has quit [Ping timeout: 256 seconds]
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
elico has quit [Quit: elico]
Goles has joined #ruby
stayarrr has joined #ruby
mnaser has quit [Excess Flood]
mnaser has joined #ruby
koshii has joined #ruby
zommi has joined #ruby
thomsch has quit [Ping timeout: 246 seconds]
thams has joined #ruby
Goles has quit [Quit: Out.]
Goles has joined #ruby
cibs has joined #ruby
Takehiro has joined #ruby
axl_ has joined #ruby
Virunga has quit [Remote host closed the connection]
Russell^^ has joined #ruby
gmci has joined #ruby
gmci is now known as Guest55540
Guest55540 has quit [Client Quit]
eka has joined #ruby
kirun has joined #ruby
lkba has joined #ruby
kil0byte_ has joined #ruby
zommi has quit [Quit: Leaving.]
<ddd> to me cucumber is one of those items that, outside of its documented intended usage pattern, helps refine things as you dive deeper. If you start out with cucumber features, and use those to broadly spec out what you want something to be/do at a high level..
hakunin_ has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
<ddd> then you can use that to drive your skeleton code, as well as your deeper specs (like rspec, though they're separate frameworks. i mean conceptually)
<ddd> then as you refine the deeper specs, you have a progressive map of an application's growth. and if you keep using cucumber to drive your thought processes and skeleton code and basic spec formulation, you eventnually end up with a well covered app, from concept to implementation.
kil0byte has quit [Ping timeout: 244 seconds]
<ddd> but thats just my thoughts on it
philips_ has joined #ruby
<shevy> quite a love story
cibs has quit [Ping timeout: 245 seconds]
<ddd> now if only reality matched the story right? ;)
cloud|nix has joined #ruby
<yfeldblum> ddd, yeah that's not how it works :D
<yfeldblum> ddd, i might use spinach over cucumber, but most of the time would use rspec to do the features/acceptance-tests
<ddd> it *can*.. in 1-dev shops but i doubt it'd ever succeed in a pattern like that for anything commercial using more than a few devs
<ddd> and only then if the commitment level *to* use it like that was there
<ddd> i've foregone cuking as well. i rspec-* these days. but hey it made for a great dream didn't it?! :)
<yfeldblum> ddd, of course it could work like that; but what would be the gain over simply using a test runner like test/unit or rspec?
<yfeldblum> ddd, just because someone can do something doesn't mean it's therefore a better way to go
<ddd> i tried turnip for awhile but you had to do quite a bit of custom work just to get the default level of output of cucumber. never really felt like doing that
<ddd> yfeldblum: i never said better.
dsdeiz has joined #ruby
<ddd> better dictates demonstrable improvements over some other process. i was stating a potential process pattern, not a 'better' one
cibs has joined #ruby
postmodern has quit [Quit: Leaving]
<yfeldblum> ddd, i tried visiting the promised land myself, too
axl_ has quit [Quit: axl_]
<ddd> hehe. long drive. lots of gas, no promise
axl_ has joined #ruby
razibog has joined #ruby
razibog1 has joined #ruby
emocakes has quit [Quit: emocakes]
wolfman2000 has joined #ruby
jbw has quit [Ping timeout: 246 seconds]
thone_ has joined #ruby
<wolfman2000> Morning. I created a sample zurb-foundation app for the purpose of bringing the foundation css files and other css files in use for another site together into one file. I've noticed, though, that there are imports to both "settings" and "foundation" in the app.scss file. _settings.scss exists, but _foundation.scss does not. Where is that file supposed to be located?
razibog1 has quit [Client Quit]
thone has quit [Ping timeout: 255 seconds]
yaroslav has quit [Quit: yaroslav]
nomenkun has joined #ruby
ajf_ has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
<dsdeiz> heya, kinda confused but is { |foo| ... } also called a block?
_whitelogger has joined #ruby
<ddd> yes, with a block local var (foo)
<ddd> usually used with collections. (the 'foo' is populated with each element, progressively, in the collection so you can apply the block content to each element)
Guest25886 has joined #ruby
<ajf_> Is there a way to have different named signals on an object, with different parameters in the callbacks. I know about Observable, but that only seems to allow one type of observer and mainly to tell if the object has "changed".
<dsdeiz> what is the difference if i do foo.bar do |baz| ... end instead?
rakl has quit [Quit: sleeping]
<ddd> do end has lower precedence than { }
jbw has joined #ruby
tk__ has quit [Quit: ばいばい]
<ddd> same thing, just { } is evaluated before do end is. convention states that do .. end is for multi-line blocks, and { } for single line blocks
<dsdeiz> ah cool. thx ddd
<ddd> np
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
axl_ has quit [Quit: axl_]
<esdf> is there any up to date curl lib aside from curl-multi
<esdf> seems like all work on it stopped in 2010
doritostains has joined #ruby
mercwithamouth has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
nick_h has quit [Ping timeout: 260 seconds]
malte_ has quit [Quit: malte_]
malte_ has joined #ruby
lorn has quit [Quit: ZNC - http://znc.sourceforge.net]
maesbn has joined #ruby
Teddy2steper has joined #ruby
nick_h has joined #ruby
lorn has joined #ruby
axl_ has joined #ruby
akemrir has joined #ruby
pcboy__ has joined #ruby
pcboy_ has quit [Ping timeout: 248 seconds]
doritostains has quit [Quit: Leaving...]
theRoUS_ has quit [Ping timeout: 245 seconds]
thams has quit [Read error: Connection reset by peer]
thams has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
maesbn has quit [Remote host closed the connection]
otters has quit [Ping timeout: 252 seconds]
skcin7 has joined #ruby
axl_ has quit [Quit: axl_]
kidoz has quit [Quit: Ухожу я от вас]
<dsdeiz> hi, anyone using vim? i have a script that truncates the current file opened and writes new content to it. i used f.truncate(0); f.write("foo"); but when i opened the file on vim i see a lot of ^@ characters
theRoUS_ has joined #ruby
<dsdeiz> any ideas?
<dsdeiz> ah crap i think i know now
<dsdeiz> oops, nope. still the same
reppard has joined #ruby
alexspeller has joined #ruby
pats_Toms has left #ruby [#ruby]
ikaros_ has joined #ruby
ikaros has quit [Ping timeout: 245 seconds]
freeayu has quit [Remote host closed the connection]
reppard has quit [Ping timeout: 246 seconds]
JohnBat26 has joined #ruby
reppard has joined #ruby
otters has joined #ruby
Guest25886 has quit [Quit: Guest25886]
eka has quit [Quit: Computer has gone to sleep.]
berserkr has joined #ruby
sailias has joined #ruby
sailias has quit [Client Quit]
sailias has joined #ruby
slash_nick has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
tpe11etier_ has quit [Quit: tpe11etier_]
hinmh has joined #ruby
matip_ has quit [Read error: Connection reset by peer]
love_color_text has quit [Remote host closed the connection]
matip_ has joined #ruby
<hinmh> Hi. I have a question about getting Ruby 2-preview2 to compile on OSX
kil0byte_ has quit [Remote host closed the connection]
malte_ has quit [Quit: malte_]
hinmh is now known as hinmn
v0n has joined #ruby
d2dchat has joined #ruby
<csmrfx> dsdeiz: #vim
pcboy__ has quit [Ping timeout: 252 seconds]
<dsdeiz> ah cool. thx
pcboy_ has joined #ruby
<slash_nick> someone just gave me a box of/win 2
d2dchat has quit [Remote host closed the connection]
marr has joined #ruby
_whitelogger has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
dnyy has quit [Remote host closed the connection]
matip_ has quit [Ping timeout: 245 seconds]
axl_ has joined #ruby
matip_ has joined #ruby
tjasko__ has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
<hinmn> When I compile attempt to compile using rvm and gcc-4.2 I get this:
<hinmn> Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.0.0-preview2, this may take a while depending on your cpu(s)...
<hinmn> ruby-2.0.0-preview2 - #downloading ruby-2.0.0-preview2, this may take a while depending on your connection...
<hinmn> ruby-2.0.0-preview2 - #extracting ruby-2.0.0-preview2 to /usr/local/rvm/src/ruby-2.0.0-preview2
tjasko__ has joined #ruby
<hinmn> ruby-2.0.0-preview2 - #extracted to /usr/local/rvm/src/ruby-2.0.0-preview2
<hinmn> ruby-2.0.0-preview2 - #configuring
<hinmn> Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-2.0.0-preview2 --with-gcc=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 --with-opt-dir=/usr/local/rvm/usr:/usr/local/rvm/usr', please read /usr/local/rvm/log/ruby-2.0.0-preview2/configure.log
<hinmn> There has been an error while running configure. Halting the installation.
<hinmn> And then this is the output of configure.log
bluOxigen has joined #ruby
<hinmn> cat /usr/local/rvm/log/ruby-2.0.0-preview2/configure.log
<hinmn> [2012-12-24 00:10:48] env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-2.0.0-preview2 --with-gcc=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 --with-opt-dir=/usr/local/rvm/usr:/usr/local/rvm/usr
<hinmn> checking build system type... x86_64-apple-darwin12.2.1
<hinmn> checking host system type... x86_64-apple-darwin12.2.1
<hinmn> checking target system type... x86_64-apple-darwin12.2.1
<hinmn> checking whether the C compiler works... no
<hinmn> configure: error: in `/usr/local/rvm/src/ruby-2.0.0-preview2':
<hinmn> configure: error: C compiler cannot create executables
<hinmn> See `config.log' for more details
sailias has quit [Ping timeout: 252 seconds]
<hinmn> I never had this problem on my linux box and it seems it's because of Xcode 4.2 using the LLVM-based gcc… However, I added the flags to use the proper gcc and that's what I get
slash_nick has left #ruby [#ruby]
<ddd> really? did you REALLY think it was ok to flood that to a channel?
CaptainJet has joined #ruby
<x42> hinmn try using gist.github.com if you don't want to upset some channel members
<hinmn> Guess I should've pastebin'd it. Sorry
<x42> np
<x42> just a hint
<ddd> that has absolutely nothing to do with whether the compiler is CLANG or LLVM backend. It has everything to do with you probably did not install A) the Command-Line Tools package from Apple's developer site, and B) installed the apple-gcc42 keg
<hinmn> Both are installed.
<hinmn> The new CLI tools via Apple's dev site and the dupe's apple-gcc42 keg
<ddd> C compiler cannot create executables means that Xcode isn;t installed correctly. see http://trac.macports.org/ticket/30628 and http://trac.macports.org/wiki/FAQ#missingxcode
phelps has joined #ruby
<ddd> applies equally to Homebrew
<hinmn> Thanks for pointing me in the right direction. I'll take a look. However, I did install the cli tools directly from Apple's site.
tpe11etier_ has joined #ruby
reppard has quit [Ping timeout: 244 seconds]
<ddd> but did you run Xcode at least once? You need to run the Xcode that was downloaded from the apple store at least once. that just downloads the installer
<ddd> and you should install the cli tools from *within* xcode
<ddd> Under Preferences
<hinmn> Ahhh, that I did not do.
axl_ has quit [Quit: axl_]
<hinmn> I downloaded the cli package separate
<ddd> yeah. busted xcode install is your issue
<hinmn> Thanks for the help. Much appreciated.
Artheist has joined #ruby
<ddd> I wrote a set of docs (used to be part of the RVM team) thats on rvm.io
<ddd> should detail how to go about setting everything up if its still there
<hinmn> I read dvm requirements and have been scanning google forever
<hinmn> I guess the issue is that I had assumed installing the cli tools would be enough.
<ddd> https://rvm.io/os/osx/ details part of the issue between apple's gcc and the GCC-4.2 compiler chain that was originally in Xcode 4.1, compat'd in Xcode 4.2, and totally removed in Xcode >=4.3
alexspeller has quit [Remote host closed the connection]
<ddd> nope. you can also forego xcode completely if yu want. install the osx-gcc-installer pacakge off github
alexspeller has joined #ruby
<ddd> typos are free :)
<hinmn> I was looking at the osx-gcc-installer also, but I saw some posts somewhere about issues with it and brew?
* dsdeiz finally created my first ruby script! not perfect but i think it looks okay
<hinmn> I'm new to Mac, by the way ;)
<shevy> dsdeiz what is it doing
<ddd> no issues at all
<ddd> we use it all the time.
<shevy> hinmn be a man, come to linux!
<ddd> Do note this: "Please note that MRI Rubies >= 1.9.3-p125, while they do compile with Xcode 4.3, are known to segfault quite often as do many native-compile gems."
<hinmn> shevy my desktop is a nix. Chakra.
<dsdeiz> nothing much. just rewrites the content of a file xD
<ddd> its an issue with *apple's* compiler, not ruby itself. thus why we have hoops to jump through. mpapis and I spent GOBS of time investigating all of this
<ddd> pita is what it is
<shevy> hinmn yippie!!!
<shevy> chakra khan!
<ddd> nothing wrong with using OSX. It *is* a Unix. :) its a matter of using the right compiler chain
<hinmn> ddd, yeah - that's kind of what I've gotten.
<ddd> hinmn: then you got the exactly right message :)
<hinmn> Anyway, downloading Xcode now. Will I need to remove the cli package first or should the xCode install just overwrite it?
friskd has joined #ruby
<ddd> ruby-core has been working on it. 1.9.3-p125 was the first version they started adding specific support, but there's been issues ever since. apple does something to their compiler chain that breaks stuff
<ddd> it won't overwrite unless you tell it to. I would remove and start froms cratch.
<ddd> you *might* have to log out then back in after removing due to settings and stuff before attempting the actual install itself once it downloads
alexspeller has quit [Ping timeout: 252 seconds]
<ddd> just cold reset the environment via logout.login
thams has quit [Read error: Connection reset by peer]
Teddy2steper has quit [Remote host closed the connection]
thams has joined #ruby
<ddd> you won't need xcode (unless you're building Node.js or something). you *can* just install osx-gcc-installer and call it a day
<ddd> you need xcode for node.js because of the cocoa headers
<phelps> Just my 2 cents, I've never had a problem with gems or segfaults under OS X
<hinmn> Sounds good. Thanks again and sorry for the crazy paste- been a while since I've been on irc so maybe my etiquette has slipped a touch ;)
<hinmn> I do plan on building some of my node apps as well
<ddd> phelps: thats whats made it so difficult. its not all the time, its not on every build, etc. we've been tracking this since Xcode 4.3 was released
<hinmn> I just haven't cloned them yet
<ddd> hinmn: then you'll definitely need xcode then
<hinmn> Gotcha.
nemesit has quit [Ping timeout: 256 seconds]
<ddd> xocde, cli tools, and apple-gcc42 dupe. pass —with-gcc= (iirc) to the homebrew builds you make. rvm *should* pick up the compiler from the apple-gcc42 dupe and use it over the xcode cli
<ddd> iirc mpapis put that logic in
<ddd> ask in #rvm
<ddd> or you can just set CC="/usr/local/bin/gcc-4.2" in $HOME/.rvmrc and then unset that var when you want to compile non ruby/non rvm stuff (or launch a non-login shell so that rvm doesn't load and that won't ever be set in the env)
<ddd> told ya it was a PITA ;)
kennyvb has quit [Ping timeout: 245 seconds]
GeekOnCoffee has joined #ruby
banisterfiend has joined #ruby
Takehiro has quit [Remote host closed the connection]
<hinmn> Yes.
cloud|nix has quit [Ping timeout: 246 seconds]
<shevy> let's improve the quality of ruby stuff
<hinmn> I should've come in here quite a while ago… I've had an open question on Ask Different for… a while, haha
kennyvb has joined #ruby
<aedorn> shevy: Okay, what are we improving?
<shevy> aedorn haha not sure. I try to maintain and improve on ruby-fpdf right now
tpe11etier_ has quit [Quit: tpe11etier_]
<shevy> so, pdf related
ltsstar has joined #ruby
<shevy> aedorn you find something too!
mengu has joined #ruby
darthdeus has joined #ruby
joofsh has joined #ruby
_bart has joined #ruby
Artheist has quit [Read error: Connection reset by peer]
pcarrier has joined #ruby
<shevy> this is so awful
<shevy> def Write()
<shevy> I am killing all those crap names...
greenarrow has joined #ruby
<shevy> def WriteHTML(html)
<aedorn> maybe I should make a gem to interact with RubyGems and find other gems that need love
<shevy> grrr
emocakes has joined #ruby
nemesit has joined #ruby
<shevy> aedorn hehe
<shevy> aedorn I think most gems are not good, a few ones are good
<shevy> improving the quality of the good, to medium gems would be best
<shevy> like that prawn gem
cloud|nix has joined #ruby
<shevy> wow, it has documentation :)
<aedorn> prawn has a lot of documentation
zmo_ has quit [Ping timeout: 260 seconds]
<yfeldblum> too bad prawn can't read pdfs
vlad_starkov has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
moos3 has joined #ruby
<aedorn> there are too many gems to filter out what is good and what is bad (and why can't we do any sorting of them besides alphabetical?) I feel like I'm missing something.
<yfeldblum> hmmm or can it?
mrsrikanth has quit [Quit: Leaving]
zmo_ has joined #ruby
kennyvb has quit [Ping timeout: 255 seconds]
ananthakumaran has quit [Quit: Leaving.]
emmanuelux has joined #ruby
Astral has joined #ruby
CaptainJet has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
Astral is now known as Guest54537
Guest54537 is now known as Astral_
moos3 has quit [Quit: Computer has gone to sleep.]
thmzlt has joined #ruby
<shevy> yfeldblum not sure, last time I tried it, it did not work for me
<shevy> that's why I then said "screw this" and started working on ruby fpdf
<shevy> I dont understand the current code yet though :(
soulcake has quit [Quit: ZNC - http://znc.in]
d2dchat has joined #ruby
stayarrr has quit [Quit: Leaving...]
Goles has joined #ruby
chrisramon has joined #ruby
axl_ has joined #ruby
Takehiro has joined #ruby
thams has quit [Read error: Connection reset by peer]
Slivka has quit [Read error: Operation timed out]
thams has joined #ruby
matip_ has quit [Quit: Leaving]
kennyvb has joined #ruby
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
voodoofish has quit [Remote host closed the connection]
Goles has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Ping timeout: 255 seconds]
mengu has left #ruby ["Leaving"]
wermel has joined #ruby
axl_ has quit [Quit: axl_]
voodoofish has joined #ruby
Iszak has quit []
esdf has quit [Ping timeout: 260 seconds]
l0wkey has quit [Quit: Leaving]
jlwestsr has joined #ruby
mockra has joined #ruby
bigmcq77 has joined #ruby
kennyvb has quit [Ping timeout: 252 seconds]
_FBi has joined #ruby
maesbn has joined #ruby
slainer68 has joined #ruby
deepboy has joined #ruby
d2dchat has quit [Remote host closed the connection]
<deepboy> how do generate all the permutations of the list=1,2,3,4,5 ?
<_FBi> Hello, I'm trying to get a program to work, and I'm getting this error: /usr/bin/ruby: no Ruby script found in input (LoadError)
Banistergalaxy has quit [Ping timeout: 255 seconds]
<_FBi> here is my enironment: http://pastebin.ca/2296092
fire has quit [Quit: WeeChat 0.3.9.2]
<deepboy> hello?
<shevy> deepboy hmm
nerd has joined #ruby
<shevy> try [1,2,3,4,5].permutation(3){|x| p x}
<shevy> not sure if that has all
<shevy> but look at the OFFICIAL DOCUMENTATION
kennyvb has joined #ruby
h4mz1d has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
<deepboy> how do i get the set from a list?
jgrevich has joined #ruby
axl_ has joined #ruby
deepboy has quit [Quit: leaving]
alexspeller has joined #ruby
maesbn has quit [Remote host closed the connection]
<aedorn> so you can get the last 50 updated/newest gems from rubygems.org, but there's no way to get historical data. hmm. Saddens me
kennyvb has quit [Ping timeout: 255 seconds]
<shevy> deepboy set from a list? what does that mean
mockra has quit [Remote host closed the connection]
alexspeller has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
jmpf has joined #ruby
ebouchut has joined #ruby
axl_ has quit [Quit: axl_]
fir_ed has joined #ruby
Banistergalaxy has joined #ruby
Goles has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
jlwestsr has quit [Quit: Ex-Chat]
cloud|nix_ has joined #ruby
cousine has quit [Remote host closed the connection]
eka has joined #ruby
cloud|nix has quit [Ping timeout: 246 seconds]
<swarley> yes hello I am from my banking company and they want me to write software to handle money. Should i use the BigNum class to handle these digits?
yaroslav has joined #ruby
Goles has quit [Quit: Out.]
Goles has joined #ruby
axl_ has joined #ruby
kennyvb has joined #ruby
Neomex has joined #ruby
Slivka has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
<eka> swarley: if you come here asking that question in such a way I think you shouldn't be doing it
<swarley> I'm kidding completely
<yfeldblum> swarley, you should use strings ... say someone has an account with a balance of "123" and then they double their balance; they should end up with a balance of "123" * 2
<swarley> Oh yes of course!
<eka> yfeldblum: that's cool
<eka> lol
_br_ has quit [Excess Flood]
axl_ has joined #ruby
<swarley> hmm... Maybe if i use a class that has an accessor for each decimal place
<swarley> and do operations like long devision!
<eka> devision… then you let Ruby handle division
<eka> but surely you want to handle devision etc...
berserkr has quit [Quit: Leaving.]
kennyvb has quit [Ping timeout: 252 seconds]
<eka> swarley: let me know what bank you work for … so I don't de business with them :)
<swarley> eka; NBOTT
_br_ has joined #ruby
<swarley> National Bank of TARDIS Travelers
Dreamer3 has quit [Quit: Computer has gone to sleep.]
_br_ has quit [Excess Flood]
axl_ has quit [Read error: Connection reset by peer]
<swarley> they see me trollin, they hatin
<swarley> i know in my heart they think i'm white and nerdy
<swarley> because I am :(
esdf has joined #ruby
regedarek has joined #ruby
_br_ has joined #ruby
jgrevich has quit [Read error: Operation timed out]
jgrevich has joined #ruby
thams has quit [Read error: Connection reset by peer]
thams has joined #ruby
friskd has quit [Quit: friskd]
rondale_sc has joined #ruby
cj3kim has joined #ruby
darthdeus has quit [Quit: Leaving...]
jedahan has joined #ruby
iamjarvo has quit [Quit: Leaving.]
Goles has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
hoelzro|away is now known as hoelzro
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
bluOxigen has quit []
nemesit has quit [Read error: Connection reset by peer]
stayarrr has joined #ruby
ltsstar has quit [Quit: ltsstar]
thmzlt has quit [Remote host closed the connection]
stayarrr has quit [Quit: Leaving...]
rondale_sc has quit [Ping timeout: 244 seconds]
whitedawg has joined #ruby
jonahR has joined #ruby
sepp2k has quit [Ping timeout: 255 seconds]
kaen has joined #ruby
_FBi has left #ruby ["Leaving"]
kennyvb has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
tintin has joined #ruby
<tintin> Hi, is it possible to make a good complete website with ruby?
<tintin> without using rails?
<heftig> tintin: Sinatra
<apeiros_> or rack
<tintin> No framework
<apeiros_> or rack-server-pages
<apeiros_> then use TCPServer
<tintin> apeiros_: Yes, i was also thinking about rack,
<tintin> apeiros_: But what is rack-server-pages?
x82_nicole has joined #ruby
<apeiros_> I guess you could go even lower level by using plain Socket. Enjoy.
<apeiros_> tintin: google is your friend
<tintin> apeiros_: Why rack-server-pages? what's wrong with rack only?
<apeiros_> why does having options mean that something is wrong with the other options?
<apeiros_> (hint: it doesn't.)
<tintin> If i ask for a suggestion, which one would you suggest? rack or rack-server-pages ?
<tintin> apeiros_: ^
<heftig> there's something wrong with every option. if there wasn't, the decision would be easy: just pick the perfect thing.
<emocakes> tintin, sinatra :p
<tintin> heftig: Which one is the perfect thing?
<tintin> emocakes: No framework
<emocakes> then rack*
<tintin> emocakes: ok
<yfeldblum> heftig, that's false
Takehiro has joined #ruby
<swarley> attempting a web server without framework is ill advised
phelps has quit [Quit: Textual IRC Client: www.textualapp.com]
<wmoxam> tintin: why no framework?
<heftig> it smells of NIH syndrome
<tintin> swarley: Why is it ill advised?
<swarley> I have some bad NIH and even I wouldn't attempt that
<wmoxam> you'll just end up reinventing half of sinatra
<tintin> apeiros_: Any suggestion from you between rack and rack-server-pages?
<swarley> thin is an option
katherinem13 has quit [Remote host closed the connection]
<heftig> pick a framework. odds are the authors solved problems in their implementation that you didn't even think of
katherinem13 has joined #ruby
<yxhuvud> tintin: what are the end goal? What will the server be used for?
katherinem13 has quit [Read error: Connection reset by peer]
<swarley> sinatra is about as low as you should ever want to go
<swarley> get, post
katherinem13 has joined #ruby
<tintin> swarley: No framework
<tintin> Only ruby and .erb
<wmoxam> tintin: why no framework?
<yfeldblum> tintin, why?
<swarley> You seriously have to tell us why
<swarley> Because that is a factor in our response
katherinem13 has quit [Remote host closed the connection]
akemrir has quit [Quit: WeeChat 0.3.9.2]
<wmoxam> reason is important to get the answer :p
<wmoxam> tintin: ^^^^^
akemrir has joined #ruby
<tintin> I don't want to be dependant to external gems or framework, i want to write code something like PHP
katherinem13 has joined #ruby
<tintin> so regula ruby like regular PHP
<swarley> PHP is a dependency in itself
<swarley> No
<wmoxam> tintin: rack is an external gem
Jackneill has quit [Read error: Operation timed out]
<swarley> Because PHP is designed for the web
<tintin> rack is the most minimal
<swarley> tintin; Rack is not anywhere near the same as the high level PHP
<yfeldblum> tintin, again, why?
<wmoxam> ok, so this is purely NiH wankery
<tintin> Is there any alternative to Rack?
<spike|spiegel> CGI is, as it's already built-in :P
<wmoxam> tintin: good luck ;p
<swarley> Almost all of the frameworks use rack
<tintin> Is there any alternative to Rack except CGI ?
<swarley> not that I know of
<wmoxam> that's it
<tintin> I know rails is based on Rack so is Sinatra
<swarley> Lol, I would never use CGI
<swarley> No
<swarley> They use Rack
<wmoxam> Rails used to use CGI
<yfeldblum> tintin, there are also goliath and webmachine
<wmoxam> yfeldblum: external!
<wmoxam> :p
<wmoxam> yfeldblum: he wants to be stdlib only
<wmoxam> tintin: CGI, then interface via fastCGI, just like PHP
<yfeldblum> wmoxam, they are alternative externals to rack; if he's picking one external, here are 3 to choose from
<tintin> You/I need a minimal gem to communicate with server for request-response, that's why something like Rack is accepted.
ebouchut has quit [Quit: This computer has gone to sleep]
Axsuul has joined #ruby
<wmoxam> lol
<yfeldblum> tintin, why?
<swarley> when you say
<wmoxam> #abartrary
<swarley> request/response
<swarley> Do you mean, HTTP or just communication via socket?
<swarley> Because at this point, I'm going t have to split hairs
<swarley> to*
<wmoxam> lol, hi manhunter
<yxhuvud> tintin: I'd still not go lower than sinatra. It has the *right* abstraction
sepp2k has joined #ruby
<swarley> Rack isn't meant to be used alone
<tintin> swarley: Does Rack work like socket?
hadees has quit [Quit: hadees]
<yfeldblum> tintin, no
<tintin> swarley: Does Rack work like HTTP? I think, YES
withnale has quit [Ping timeout: 260 seconds]
<yfeldblum> tintin, rack is not http
<yxhuvud> rack is a binding between a web server and an application
browndawg has quit [Quit: Leaving.]
<tintin> "Do you mean, HTTP or just communication via socket?" Then what does that mean?
<yfeldblum> tintin, why are you asking everyone this question
<tintin> yfeldblum: What question?
Jackneill has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
<yfeldblum> tintin, for a way to do an http application without gems
<wmoxam> #trolling
<wmoxam> :p
<tintin> without framework
<yfeldblum> tintin, fine
<tintin> No dependency with framework
<yfeldblum> tintin, why are you asking everyone that question?
<tintin> because framework is updated every 6 months, so you have to update your application often, that is painful maintainency
<swarley> ....
<wmoxam> lol
<swarley> When a framework is that popular
<yfeldblum> tintin, so just don't update it ...
<wmoxam> there are plenty of Rails 1.2 apps out there
<tintin> frameworks are updated regularly often frequently
<swarley> They almost HAVE to support backwards compatibility
<yxhuvud> wmoxam: *shudder*
<swarley> It* has*
chrisramon has quit [Quit: chrisramon]
tjasko__ has quit [Read error: Connection reset by peer]
<yfeldblum> swarley, they don't
<swarley> just put a specific version in your Gemfile
<yfeldblum> swarley, rails 4.1 is dropping a whole lot of surprises our way
tjasko__ has joined #ruby
<tintin> If you don't update your application with the update of framework then after 5 years you will be in problem when you will update the ruby
<swarley> yfeldblum; but for general purposes. I doubt sinatra is going to change get and post any time soon
<yfeldblum> swarley, true about sinatra
<wmoxam> tintin: same if you don't have a framework
<wmoxam> :p
cousine has joined #ruby
<swarley> tintin; I don't think you really understand what you're doing. This is a good time to revert to the cave where your php crawled out of
* yfeldblum wonders about all these major XY Problems
<tintin> wmoxam: No, you have to change less if you don't use frameworks
<yfeldblum> tintin, why didn't you ask in this channel how to avoid or mitigate maintenance burdens when writing an http application?
<wmoxam> tintin: untrue
<yxhuvud> tintin: you will probably have *less* trouble porting a small application built upon a framework than if you hack the functionality of the framework yourself.
<yfeldblum> yxhuvud, e.g. signed session cookies
<tintin> If i write from scratch, i can change/handle the code easily since i know all about that code
<wmoxam> tintin: in that case you have to handle your application code, and the libs you wrote to support it
<yfeldblum> tintin, if you're worried about future maintenance burdens, why don't you ask the people in this channel the best way to avoid or mitigate the maintenance burdens?
<wmoxam> == more code to maintain
<wmoxam> == more work
<tintin> If you don't update your application your application will be broken after 5 years, you will not get support for that older framework
<tintin> yfeldblum: Ok, i asked it now
bluOxigen has joined #ruby
otters has quit [Ping timeout: 265 seconds]
<swarley> tintin; There is also the problem that, the framework designers know how to keep things from breaking better than you do (I would assume)
<yfeldblum> tintin, if you use an open-source framework, you just make a copy of it and you can change the framework yourself if you need to fix a bug
cousine has quit [Remote host closed the connection]
<yfeldblum> tintin, or you can even just monkey-patch the framework from within your application to fix any bugs it has
<tintin> yfeldblum: That's a point, Do you think it's easy to change/fix bug for something like rails, it's a huge/lot of code
<tintin> It's not easy
<wmoxam> tintin: same goes for rack
<wmoxam> :p
<yfeldblum> tintin, i do it all the time
<yxhuvud> I agree that it is not easy diving into rails, but we are not advocating rails at the moment.
Nisstyre-laptop has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
<yfeldblum> tintin, usually not rails; usually it's other libraries that need more monkey-patching
katherinem13 has quit [Read error: Connection reset by peer]
<tintin> wmoxam: rack is way way way lighter than rails
Goles has joined #ruby
<yxhuvud> tintin: so is sinatra.
katherinem13 has joined #ruby
<tintin> yxhuvud: I know sinatra is light, sinatra is all about one file now, that is base.rb
<aedorn> there's also Cuba and Padrino
<wmoxam> tintin: you seem to know more than anyone here. So go ahead and knock yourself out
<emocakes> <3 wmoxam
<tintin> yxhuvud: sinatra can be an option, but making something like sinatray by own looks better to me that using sinatra because i know all about my code so i can change it easily
AlSquire has quit [Quit: This computer has gone to sleep]
<wmoxam> NiH
kokainepizza has joined #ruby
<tintin> s/sinatry/sinatra
<tintin> What is that NIH?
h4mz1d has joined #ruby
nemesit has joined #ruby
<TTilus> tintin: its always balancing between knowing your codebase and standing on the shoulders of giants
<aedorn> oh, and there's camping too
wolfman2000 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<spike|spiegel> giant == elephant in the room? ;)
AlSquire has joined #ruby
<tintin> TTilus: giats = rails ?
<TTilus> spike|spiegel: i prefer rhino
<TTilus> tintin: exactly the point :)
bluOxigen has quit []
<TTilus> tintin: except that rails2 was even more like that
Vert has joined #ruby
<tintin> wmoxam: That's true.
<aedorn> So yeah.. if you don't want rails, and you don't want Sinatra.. then if you don't want camping, padrino, or cuba... then you want rack and you want to build your own responders to rack because nothing exists that does what you want it to do the way you want it done.
<tintin> I'm with the NIH group.
<wmoxam> tintin: that's typically seen as a bad thing
<wmoxam> my suggestion is to stick with PHP
<TTilus> tintin: u sure sound like one ;)
<wmoxam> it's better suited to your needs
<tintin> I want to walk with Ruby these days, i have used PHP enough
emmanuelux has joined #ruby
<TTilus> wmoxam: id assume nih goes hand in hand with .net
<wmoxam> tintin: but you want to do things the PHP way
<wmoxam> TTilus: sort of
<yfeldblum> tintin, here's the first thing you need to know about ruby: we use each other's stuff; we use plenty of external libraries all over the place in all of our own applications
<wmoxam> TTilus: I worked with a company that made a Rails clone in .net
<wmoxam> TTilus: this was before MS came out with MVC.net
<yfeldblum> tintin, everything in the ruby ecosystem assumes you're going to go way past just the stdlib
<TTilus> wmoxam: ...and there are a ton of them
<tintin> wmoxam: Really? What is that company?
<TTilus> wmoxam: and nobody knows about each other :)
<yfeldblum> TTilus, NIaM goes hand-in-hand with .net
<wmoxam> TTilus: yeah, well they are all in consulting and they want vendor lock-in
havenn has joined #ruby
<tintin> wmoxam: Which company?
<wmoxam> tintin: none of your beeswax
<aedorn> TTilus: "We're the best in the business because there is no competition, or if there is, we haven't heard about them so they must not matter." .. I bet someone, somewhere, said that in response to someone telling them about other frameworks!
<tintin> wmoxam: sort of
whitedawg has quit [Quit: Leaving.]
jessta has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Ping timeout: 252 seconds]
<TTilus> aedorn: exactly =D
freakazoid0223 has joined #ruby
ryanf has joined #ruby
esdf has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Quit: Leaving]
axl_ has joined #ruby
Nisstyre-laptop has joined #ruby
<wmoxam> TTilus: the .net ppl have tried to pull together a community (ALT dotnet) but it seems to have died out
wermel has quit [Remote host closed the connection]
<TTilus> wmoxam: "community" and .net are like water and oil
Solnse has joined #ruby
<wmoxam> TTilus: a lot of their good people moved to Rails :p
<wmoxam> I think the main thing is: why volenteer to improve an ecosystem that is owned and subject to the whims of an industry giant?
<TTilus> big blue style "community" might work
<TTilus> wmoxam: ...so you need a "community" driven by that giant
<jonahR> .net? whoa, I felt a great disturbance in the Force, as if millions of voices suddenly cried out in terror and were suddenly silenced…
<aedorn> I have a mental problem where I make something that I think is great, but never release it to the public because I don't think anyone would care. For instance, I have a library that communicates with wpa_supplicant - but who needs that?
<TTilus> wmoxam: all the consultant shops send in their developers to listen to evangelism, eat, drink and talk
PetePorty has joined #ruby
PetePorty has quit [Changing host]
PetePorty has joined #ruby
<TTilus> aedorn: apparently you did
sbanwart has joined #ruby
<jonahR> adorn: if you have a problem someone will eventually have it too
<wmoxam> TTilus: yeah, they do have that
<TTilus> wmoxam: i just knew they had to :)
<aedorn> but it wasn't a problem =) I just wanted to figure out a way to have a Linux distribution that was entirely controlled by Ruby. There's a FreeBSD distro that is controlled via PHP, so why not Ruby and Linux? So I started making random things
SirRamonGabriel has joined #ruby
arturaz has joined #ruby
<tintin> aedorn: What random things?
<TTilus> wmoxam: the socialization is great, and it is necessary for fertile community too, but just not sufficient alone ;)
foohey has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
doritostains has joined #ruby
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
<jonahR> aedorn: sounds interesting, I'd love to take a look at it
foohey has joined #ruby
v0n has quit [Quit: WeeChat 0.3.9.2]
v0n has joined #ruby
<TTilus> aedorn: id jump in joy if somebody took all the perl out from debian and replaced the functionality using ruby
<aedorn> tintin: Mostly configuration stuff. wpa_supplicant was one, network configurations that covered vlans and such, iptables, vpn connections.
sayan has quit [Read error: Connection reset by peer]
<tintin> aedorn: wpa_supplicant ? what is that?
<TTilus> tintin: wlan thingy
<jonahR> aedorn: it would be nice to use it with a Raspberry PI
dsdeiz has quit [Ping timeout: 250 seconds]
akemrir has quit [Ping timeout: 252 seconds]
tjbiddle has joined #ruby
dsdeiz has joined #ruby
pcarrier has quit []
<aedorn> well, I'm certainly going to keep going. Guess I should gemify some of it though and toss it out there
Russell^^ has quit [Quit: Russell^^]
mercwithamouth has quit [Ping timeout: 246 seconds]
Neomex has quit [Quit: Neomex]
crackfu has joined #ruby
<emocakes> why TTilus?
<emocakes> whats wrong with perl?
<emocakes> perl > ruby
<tintin> Can anyone start using rails without knowing much ruby?
<emocakes> you can start tintin
<emocakes> not sure how far you get
<emocakes> i started rails like last week
<tintin> Suppose someone knows basic ruby
<emocakes> i guess so
<wmoxam> tintin: you've been asking these sort of questions for months
<tintin> emocakes: So how do you feel about ruby?
<emocakes> only ruby i had done before that was a couple of bots / web scrapers for online games
<emocakes> tintin ruby is aight, takes a whole to learn all the sugar
<emocakes> slowly your code looks less and less like php
<emocakes> :p
<wmoxam> :p
pcarrier has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
pcarrier has quit [Client Quit]
<emocakes> lol wmoxam
<emocakes> tintin, just jump in
rippa has quit [Ping timeout: 240 seconds]
<emocakes> shit happens, you become a better person at the end of it
Virunga has joined #ruby
dsdeiz has quit [Ping timeout: 252 seconds]
<emocakes> if youve never used a web framework b4 then you have double the fun
<ddd> emocakes: he knows the answer to what he's asking. he's been doing it for months now. since at *least* october
<emocakes> ddd, maybe my kind words will help him pull his finger out before he gets fired
<wmoxam> ddd: way before that, different username though
<emocakes> :p
<ddd> wmoxam: yep
woolite64 has joined #ruby
woolite64 has quit [Client Quit]
the_magic_zebra has joined #ruby
woolite64 has joined #ruby
<emocakes> lol
<tintin> emocakes: "maybe my kind words will help him pull his finger out before he gets fired" what do you mean by that?
<emocakes> well if these guys have been saying, that for the past many months, you have been coming here asking the same questions
<the_magic_zebra> exit
<the_magic_zebra> lolz
the_magic_zebra has quit [Client Quit]
<emocakes> so I assumed that, with your 'theoretical' question about a new dev who has to upgrade a project was referring to you
<emocakes> i.e: you have a project to upgrade
<emocakes> or you want to hire a newb to upgrade a site
<wmoxam> tintin: how many channels have you been banned from?
thufir_ has joined #ruby
elico has joined #ruby
LogPonder has joined #ruby
<emocakes> if this has been going on for months, and you havent realised its not such a hard job if you just give it a go, you probably wont have a job for much longer
<tintin> emocakes: "maybe my kind words will help him pull his finger out before he gets fired" what do you mean by that?
<wmoxam> #rubyonrails a few times for sure. #slackware too
LogPonder has quit [Remote host closed the connection]
<aedorn> ooh, I love slackware
<havenn> #ruby-lang is prolly quicker with the banhammer than here or ror
<thufir_> how do I use rbeautify.rb? http://arachnoid.com/ruby/rbeautify.rb.html I tried "ruby rbeautify.rb foo.rb" but that seems the wrong syntax...
onibox has joined #ruby
<tintin> So you people keep logs for my conversations? That's great , keep it forever
<emocakes> yes, just for you manhunter
<emocakes> aka tintin
<tintin> I have no logs,
<emocakes> )y_
<emocakes> (y)
<tintin> So you people log my conversation
<tintin> emocakes: "maybe my kind words will help him pull his finger out before he gets fired" what do you mean by that?
dsdeiz has joined #ruby
<tintin> emocakes: ^?
<emocakes> i told you, stop asking the same fucking question for months, pull your head out of your anus, and start to upgrade / learn rails
<emocakes> its really not difficult
<emocakes> I wouldnt have some slack ass employee working for me
<swarley> learn sinatra*
<tintin> emocakes: I know rails, i have used rails before, i didn't like the source code of rails
<emocakes> swarley, sinatra, rails all the same shit, its a framework, nothing magical, the hardest part is getting over any preconceptions you have about framework x, or y, or z
<emocakes> tintin, please, troll elsewhere :)
<emocakes> you can't really be that stupid and know how to use irc
<tintin> emocakes: "I wouldnt have some slack ass employee working for me" what do you mean by that?
<swarley> emocakes; you can now, thanks to mibbit!
<wmoxam> 14:34 < tintin> Can anyone start using rails without knowing much ruby
<emocakes> swarley, true, he has a regged user name though
<wmoxam> tintin: Why did you ask that 20 minutes ago in #rubyonrails?
<tintin> emocakes: Do you have employee?
<wmoxam> if you already know it?
<emocakes> Notice from NickServ: Information on manhunter (account manhunter):
<emocakes> 8:56 PM
<emocakes> Notice from NickServ: Registered : Feb 01 18:10:50 2010 (2 years, 46 weeks, 4 days, 01:45:28 ago)
<tintin> wmoxam: To get opinion from others
<emocakes> wmoxam, he's lonley, and is trying to provoke a reaction
<emocakes> i never do this, but he's made my ignore list
<wmoxam> emocakes: tech channel trolling is so damn wewird
<wmoxam> weird even
<emocakes> I know, I mean, trolling lifeproblems or something, yeah, i get it
<emocakes> i'm gay, but my dad doesnt know it yet, and i killed my sisters dog
<tintin> emocakes: "I wouldnt have some slack ass employee working for me" what do you mean by that?
<wmoxam> politics too
<tintin> emocakes: ?^
<emocakes> thats more fun than, 'how to use rails'?
<emocakes> or religion :D
<emocakes> btw, happy xmas
<wmoxam> "Of course I believe every child should be armed"
<tintin> emocakes: "I wouldnt have some slack ass employee working for me" what do you mean by that? Did you mean you don't hire lazy employee?
braoru has quit [Remote host closed the connection]
<wmoxam> tintin: you're on his ignore list
<tintin> lool
banisterfiend has joined #ruby
<tintin> banisterfiend: Hi?
Goles has quit [Ping timeout: 256 seconds]
eldariof has quit []
<banisterfiend> tintin: sup
<wmoxam> who are the mods in this channel anyways?
cousine has joined #ruby
<banisterfiend> wmoxam: i'm one, what's up
dsdeiz has quit [Ping timeout: 252 seconds]
<wmoxam> tintin: you're on his ignore list
<wmoxam> whoops
<wmoxam> banisterfiend: oh, just wondering
<havenn> banisterfiend: tintin (manhunter) just *trying* to troll again
<aedorn> so how come there's #ruby and #ruby-lang anyway
<banisterfiend> havenn: yeah i banned him a few months ago
<emocakes> hes back again banisterfiend
<emocakes> :p
<banisterfiend> :)
<shevy> aedorn officially, only #ruby-lang is the "main" ruby channel
<banisterfiend> maybe he'll behave himself now
cantonic has quit [Quit: cantonic]
<shevy> aedorn though logically, #ruby should be the main as, just like #perl #python #php etc...
<shevy> *main one
<havenn> aedorn: My take on it is that #ruby-lang is about a TV show called "Ruby" where the lady eats too much. This is #ruby the language.
<aedorn> I... see... heh
<shevy> aedorn I think it may have had to do with whoever registered #ruby back then
PetePorty has quit [Remote host closed the connection]
PetePorty has joined #ruby
PetePorty has quit [Changing host]
PetePorty has joined #ruby
<TTilus> emocakes: its not that much the perl itself than the codebase and the legacy cruft
cloud|nix_ has quit [Quit: Ex-Chat]
x82_nicole has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
tjasko__ has quit [Read error: Connection reset by peer]
tjasko__ has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
radosch has quit [Quit: - - - says bye bye - - -]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
pcarrier has joined #ruby
<thufir_> what's the syntax for running rbeautify.rb? https://gist.github.com/3105b3693c50604fdd8f
dsdeiz has joined #ruby
arturaz has quit [Read error: Operation timed out]
banisterfiend has quit [Remote host closed the connection]
kokosama has joined #ruby
grzywacz has joined #ruby
<kokosama> hi, is there a better way to rewrite this piece of code in ruby ? https://gist.github.com/204d316557132583975b
Takehiro has joined #ruby
tintin has quit [Quit: leaving]
<yfeldblum> kokosama, `else` should be indented the same as `if` and `end`; i like to list the alternate or error cases first, so `if result_hash.nil?` first; other than that, not really
mercwithamouth has joined #ruby
<aedorn> you can use inline rescue, or null object pattern
ner0x has joined #ruby
<yfeldblum> aedorn, i think kokosama is looking for "better", not "worse"
<canton7> thufir_, that's not you calling it wrong, that's it being badly written
shevy has quit [Ping timeout: 252 seconds]
dsdeiz has quit [Ping timeout: 265 seconds]
<thufir_> canton7: aha. oh, that sucks. is there a better one? I just want to fix indenting automatically,
<aedorn> yfeldblum: would those options really be worse?
dsdeiz has joined #ruby
<yfeldblum> aedorn, yes
<yfeldblum> aedorn, nearly always, yes
<kokosama> guys. sorry indentation was paste issue.. it's all indented in reality :)
<yfeldblum> aedorn, definitely here, yes
Banistergalaxy has quit [Ping timeout: 252 seconds]
<aedorn> yfeldblum: why so?
<yfeldblum> aedorn, because those two patterns ought to be used in very specific types of cases, but not in general
Banistergalaxy has joined #ruby
<aedorn> hmm
<yfeldblum> kokosama, you could do `result_hash ||= {} ; buys = result_hash["Buys"] || 0 ; etc ...`
adeponte has joined #ruby
<kokosama> yfeldblum, I love it! actually that's what I was looking for, to get rid of that if somehow using ||=
<yfeldblum> aedorn, for example, null objects are an OK pattern to use in views, where the null object abstracts the alternations between a real object's name and a default name for a nonexistent object, for example
<aedorn> (and you could also do result_hash ||= Hash.new{|k,v| k[v]=0})
<yfeldblum> aedorn, but most of the time, inside the program, we care about data, objects, and transformations, and there the null object pattern gets in your way; if something is null, then it's null, and you need to know
* lupine has *so much code* - that he hates - where the difference between false and nil matters
<kokosama> aedorn, don't understand what you mean by that
<yfeldblum> aedorn, that's good too, although `Hash.new(0)` does the same
<lupine> don't do it
<aedorn> ooh, pro tip there.. didn't know you could just set a default like that.
dross has quit [Quit: leaving]
<emocakes> refactor lupine
<aedorn> yfeldblum: okay, I see your point
<yfeldblum> kokosama, result_hash ||= Hash.new(0) ; buys = result_hash["Buys"]
dross has joined #ruby
<lupine> emocakes, touching legacy code Just Isn't Done unless it's broken ^^
dsdeiz has quit [Ping timeout: 252 seconds]
arturaz has joined #ruby
statarb3 has quit [Quit: Leaving]
<yfeldblum> aedorn, only do it that way for values, not objects; e.g. don't do `Hash.new([])`
<emocakes> come on lupine
<emocakes> we all have a bit of a masochist inside of us
<emocakes> let it out
<lupine> I've got better things to work with ^^
<emocakes> I for one have about 4controllers + models that I am afraid to touch
<emocakes> php
<kokosama> yfeldblum, I'm guessing that Hash.new(0) will return any key with value 0 ? if so, I prefer your first suggestion as there I can have different values other than 0
<aedorn> kokosama: It sets the default value, so if calling result_hash['buys'] returns nil, with the default value set (or a proc) then it will return that default value or proc result. In this case, nil values will be 0
<emocakes> i wrote them like, 7 months ago, and the application requirments have changed so much since them so they are just patched to the shithouse
<emocakes> no time :(
axl_ has quit [Quit: axl_]
<lupine> some of this stuff is from 4 years ago, and a bit of it is the first production code I ever wrote for money
<lupine> (a calendar application, of course - what else?)
<yfeldblum> kokosama, that's right; if you're going to have a bunch of different possible default values instead of just 0, then do my first suggestion
<emocakes> ahh lupine, sort of the same, my first big project which i was employed to do solo, just when i started and got told i had 2 weeks
<aedorn> yfeldblum: okay, so that's a shortcut to default=, and block is the shortcut to default_proc=
<kokosama> thanks a lot guys, it was more helpful than I hoped :)
<yfeldblum> aedorn, yes
kokosama has quit [Quit: Leaving]
<yfeldblum> kokosama, thank matz
<aedorn> now that I have learned some philosophy and something new about hashes, I shall buy a sandwich.
shevy has joined #ruby
banisterfiend has joined #ruby
dsdeiz has joined #ruby
chussenot has joined #ruby
banisterfiend has quit [Remote host closed the connection]
Proshot has joined #ruby
freakazoid0223 has joined #ruby
rakl has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
chussenot_ has joined #ruby
otters has joined #ruby
xandy is now known as xAndy
tjasko__ has quit [Read error: Connection reset by peer]
codezombie has joined #ruby
chussenot has quit [Ping timeout: 265 seconds]
chussenot_ is now known as chussenot
tjasko__ has joined #ruby
adeponte has quit [Remote host closed the connection]
osaut has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
Nss has quit [Quit: Sto andando via]
dsdeiz has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
yfeldblum has quit [Quit: Leaving]
havenn has joined #ruby
Na_Klar has joined #ruby
<Na_Klar> I thread.new a socket listener. Why does socket.bind throw no error or warning, when the script does not have permission to bind a port? (linux environment) The script goes ahead and the port is unbound.
<apeiros_> Na_Klar: Thread.abort_on_exception = true
<apeiros_> by default, threads just die when an exception happens within them
<Na_Klar> apeiros_: ty very much, kind sir
havenn has quit [Ping timeout: 252 seconds]
dsdeiz has joined #ruby
jenrzzz has joined #ruby
Takehiro has quit [Remote host closed the connection]
cantonic has joined #ruby
Bosma has joined #ruby
sbanwart has left #ruby ["Konversation terminated!"]
ebouchut has joined #ruby
jessta has joined #ruby
banisterfiend has joined #ruby
axl_ has quit [Quit: axl_]
PragCypher has joined #ruby
atmosx has joined #ruby
jfl0wers has joined #ruby
axl_ has joined #ruby
theRoUS has quit [Ping timeout: 250 seconds]
v0n has quit [Quit: WeeChat 0.3.9.2]
chussenot has quit [Quit: chussenot]
v0n has joined #ruby
osaut has quit [Quit: osaut]
thams has quit [Read error: Connection reset by peer]
thams has joined #ruby
banisterfiend has quit [Remote host closed the connection]
ebouchut has quit [Quit: This computer has gone to sleep]
moshee has quit [Ping timeout: 264 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
v0n has quit [Quit: WeeChat 0.3.9.2]
phelps has joined #ruby
v0n has joined #ruby
chussenot has joined #ruby
<jedahan> How to return an array of just one property of an array of structs?
slyv has joined #ruby
<canton7> jedahan, array_of_structs.map{ |x| x.whatever }
<jedahan> thanks canton7
mengu has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby
tpe11etier_ has joined #ruby
<apeiros_> map(&:whatevaaa!)
_alejandro has joined #ruby
jfl0wers has quit [Read error: Connection reset by peer]
<apeiros_> because you can!
havenn has joined #ruby
havenn has quit [Read error: Connection reset by peer]
jfl0wers has joined #ruby
havenn has joined #ruby
<rking> ObjectSpace.each_object{|e| e.watevaaa!}
zmo_ has quit [Quit: Leaving]
atmosx has quit [Quit: And so the story goes…]
<apeiros_> that returns a number
<apeiros_> youselz
<rking> You'd rather it act like #map, #each, or something else?
<apeiros_> no
<apeiros_> you can get that easily by using enum_for + map
otters has quit [Ping timeout: 252 seconds]
Solnse has quit [Ping timeout: 265 seconds]
banisterfiend has joined #ruby
chussenot_ has joined #ruby
cousine has quit [Remote host closed the connection]
havenn has quit [Read error: Operation timed out]
x82_nicole has joined #ruby
cantonic_ has joined #ruby
chussenot has quit [Ping timeout: 260 seconds]
chussenot_ is now known as chussenot
cantonic has quit [Ping timeout: 265 seconds]
cantonic_ is now known as cantonic
d2dchat has joined #ruby
chussenot has quit [Quit: chussenot]
cantonic has quit [Quit: cantonic]
dyrot has joined #ruby
vlad_starkov has joined #ruby
cantonic has joined #ruby
cantonic has quit [Client Quit]
cousine has joined #ruby
phelps has quit [Quit: Textual IRC Client: www.textualapp.com]
otters has joined #ruby
hoelzro is now known as hoelzro|away
vlad_starkov has quit [Read error: Connection reset by peer]
rdegraci has joined #ruby
<rdegraci> hello :)
vlad_starkov has joined #ruby
<rdegraci> often I see a core.rb file, is that the equivalent to the main.cpp in C++, where the int main() function is located for the app ?
tagrudev has joined #ruby
solidresolve has quit [Quit: Leaving]
tagrudev has quit [Client Quit]
crackfu has quit [Remote host closed the connection]
<Hanmac> rdegraci ruby does not have an main() function ... when you run an rb file, you are allready in the main object .P
<rdegraci> also if I am writing a ruby application, what exactly is the folder structure? is there a best practice for what the directory structure should be? I mean should I have a myapp/lib folder ? and what do I put inside of that folder ?
<rdegraci> Hanmac, so in my docs I should just tell the user to: ruby core.rb ?
<rdegraci> Should I create a myapp/modules folder and put my modules into there that I will include into my classes ?
tjasko__ has quit [Read error: Connection reset by peer]
<rdegraci> Right now, I just have myapp folder and it contains about 40 files :/
<Hanmac> you are free to make your own folder structure, we do not force you in some kind ...
Signum has joined #ruby
tjasko__ has joined #ruby
<Hanmac> only gems should have an specific folder structure, but this is only an conversion
<rdegraci> yes, but when I look at gems and rails, it has a lib folder and I think a helpers folder and a ext folder
<Hanmac> that what i meaned, when you do an non-gem you not need to follow that "rules"
<banisterfiend> rdegraci: usually there's a app/ folder
<banisterfiend> rdegraci: if you write a gem though, it's all based around a lib/ folder
<rdegraci> is there a website that has some suggested best practice for folder structure ?
<ddd> in my own gems, i use the rails-esque convention of my models in app/models/ but I add a load line in my lib/<gem_name>.rb to load them.
tpe11etier_ has quit [Quit: tpe11etier_]
<Hanmac> banisterfiend not 100% true, my gems does not have an lib/ folder, my are based areound /ext
<banisterfiend> Hanmac: well, in most cases (and by default) ruby gems copies your compiled .so from ext/ into lib/
havenn has joined #ruby
<banisterfiend> Hanmac: can i visit you in germany?
cantonic has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
sjhuang has quit [Ping timeout: 246 seconds]
zommi has joined #ruby
Dario_ has joined #ruby
sjhuang has joined #ruby
havenn has quit [Ping timeout: 260 seconds]
hackerdude has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
thams has quit [Read error: Connection reset by peer]
mengu has joined #ruby
thams has joined #ruby
kennyvb has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
grzywacz has quit [Ping timeout: 252 seconds]
jonahR has quit [Quit: jonahR]
Proshot has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
dr_neek has joined #ruby
kennyvb has joined #ruby
cousine has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
banisterfiend has joined #ruby
zommi has left #ruby [#ruby]
cantonic has joined #ruby
murz has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
Jackneill has quit [Remote host closed the connection]
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
jedahan has left #ruby ["Textual IRC Client: www.textualapp.com"]
vlad_starkov has joined #ruby
mockra has joined #ruby
hackerdude has quit [Remote host closed the connection]
jonahR has joined #ruby
_whitelogger has joined #ruby
Neomex has joined #ruby
Proshot has joined #ruby
<Signum> I'm new to Ruby and just toying around to learn it. What I wonder is why the .type attribute doesn't work here. I did: x=[1,2,3,4] // puts x.type // but I just getNoMethodError: undefined method `type'
<Signum> Or am I looking at an ancient tutorial?
lenovodroid has joined #ruby
<apeiros_> Signum: ancient tutorial
<apeiros_> you want x.class
<Signum> Ah, thanks. I'm working through http://www.rubycentral.com/pickaxe - is there a recommended and more up-to-date narrative introduction for programmers experienced in… say… python?
<apeiros_> I'm a bit out of touch with state of the art tutorials, sorry
<apeiros_> I think ruby-lang.org lists some tutorials
<apeiros_> iirc it even has some quick intros for "coming from X"
<Signum> Okay. I thought there was once natural recommendation. No worries. I've already picked up a good bit.
<Signum> Yes, the Python-to-Ruby introduction was very helpful indeed.
<Signum> I'm learning Ruby to get a better understanding for Rails applications and Chef/Puppet config management. Besides… quite some details in Python suck and I'm curious whether Ruby does that better.
picca has joined #ruby
francisfish has joined #ruby
arietis has joined #ruby
banisterfiend has joined #ruby
stayarrr has joined #ruby
xbayrockx has joined #ruby
matip has joined #ruby
mockra has joined #ruby
timonv has joined #ruby
picca has left #ruby [""Lingo IRC Client""]
<matip> Have you use the gem wrest (https://github.com/c42/wrest/)? It seems it doesn't raise errors when you do a async get. do you know any better gem?
<matip> used*
<matip> maybe I should use eventmachine..
mockra_ has joined #ruby
tjasko__ has joined #ruby
Nisstyre-laptop has joined #ruby
_whitelogger has joined #ruby
elico has joined #ruby
cousine has joined #ruby
chussenot has joined #ruby
kil0byte has joined #ruby
semlib has joined #ruby
<semlib> swarley: hi
<swarley> hi
<swarley> oh!
<swarley> LOL
* swarley reads idents a little too slowly
<semlib> :3
<swarley> semlib; well yes, this is where I'm impeding the progress of others while I'm helping you
alanp_ has joined #ruby
<swarley> Is anyone going to actually use the named parameters in ruby .0?
<swarley> 2.0*
alanp_ has joined #ruby
<swarley> I won't until it is at least 2 versions old.
kiyoura` has joined #ruby
kiyoura has joined #ruby
<swarley> Because as we've seen with 1.8.7, there are far too many people lagging behind to use a new feature like that immediately.
kiyoura has joined #ruby
doritostains has joined #ruby
niklasb has joined #ruby
_ponce has joined #ruby
* swarley takes autumn's
<swarley> _ << "'.' key"
hotovson has joined #ruby
vlad_starkov has joined #ruby
jgrevich_ has joined #ruby
Dario_ has joined #ruby
benlieb has joined #ruby
kokainepizza has joined #ruby
banisterfiend has joined #ruby
ippif has joined #ruby
jgrevich_ has joined #ruby
elico has joined #ruby
jslowe has joined #ruby
banisterfiend has joined #ruby
<jsilver> != a troll or druggie
<jsilver> follow @GlobalChat2Pro if u agree
apeiros_ has joined #ruby
<waxjar> oh for fuck's sake, shut up you dufus. nobody here's going to do anything with your project as long as you keep spamming it all over irc.
Dario_ has joined #ruby
<jsilver> !ops
robbyoconnor has joined #ruby
<jsilver> waxjar: troll
<jsilver> MINASWAN, dude
waxjar has left #ruby ["fuck off"]
tjasko__ has joined #ruby
<jsilver> good
<jsilver> I'll consider than equal to a GlobalChat kick.
<jsilver> (there is no GlobalChat kick.)
picca has joined #ruby
vlad_starkov has joined #ruby
atno has joined #ruby
luckyruby has joined #ruby
luckyruby has joined #ruby
_ponce has left #ruby [#ruby]
alexspeller has joined #ruby
oddraisin has joined #ruby