apeiros changed the topic of #ruby to: Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Wolland has quit [Ping timeout: 246 seconds]
m104 has joined #ruby
tkuchiki has joined #ruby
<platzhirsch> waxjar: and for module it's then class Module; def method_added...
<waxjar> hmm, Modules doesn't inherit from Object?
Xuisce has joined #ruby
crazymykl has joined #ruby
<waxjar> *Module
<pipecloud> Module::ancestors
fonz has joined #ruby
Xuisce has left #ruby [#ruby]
mikemac has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
chipotle has quit [Quit: cya]
maddog__ has quit [Ping timeout: 252 seconds]
<waxjar> strange
<havenwood> >> Module.superclass
<eval-in> havenwood => Object (https://eval.in/99983)
maddog_ has joined #ruby
platzhirsch has quit [Ping timeout: 245 seconds]
<havenwood> waxjar: i like this as a reference: http://www.gliffy.com/go/publish/5152080
pwh has joined #ruby
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
<waxjar> ha, yeah i've got that one bookmarked. handy too look up Exceptions
gstamp has joined #ruby
Kricir has quit [Ping timeout: 248 seconds]
pdtpatrick has joined #ruby
<havenwood> waxjar: agreed!
dorei has joined #ruby
<diegoviola> why is MRI more used than rubinius
rlvm has quit [Remote host closed the connection]
Megtastique has quit []
<centrx> diegoviola, MRI is the default/official interpreter that comes with Ruby
<centrx> diegoviola, Also, Rubinius has not always been up-to-date with compatibility with Ruby releases
<diegoviola> i see
<havenwood> diegoviola: MRI is the reference implementation, has been useable in production for much longer, and it is a safe bet that it will stay around with support.
tectonic has quit []
predator217 has joined #ruby
dx7 has joined #ruby
eka has joined #ruby
<diegoviola> right
pdtpatrick has quit [Quit: pdtpatrick]
<diegoviola> as rubinius gains better compatibility, we can expect people to switch to it right?
<diegoviola> in the not so far future
Xuisce has joined #ruby
Simpller has left #ruby ["Leaving"]
mattp__ has quit [Ping timeout: 250 seconds]
<AntelopeSalad> any thor experts around? is there a way to detect if a task was invoked?
<havenwood> diegoviola: rubinius 2.0.0 was pretty broken and varied wildly from the release candidate, and there hasn't been much time for people to get comfortable with 2.2.x yet.
<diegoviola> i see
<havenwood> diegoviola: Also, those who prefer parallel threads to forking often turn to JRuby, giving Rubinius competition.
predator117 has quit [Ping timeout: 250 seconds]
<diegoviola> i see
<havenwood> diegoviola: And the paid rubinius team has been shrinking, up until Engine Yard stopped support a few months back
whatasunnyday has quit [Quit: whatasunnyday]
<diegoviola> oh
<havenwood> diegoviola: I don't know how much community support they've garnered since 2.0.
best_pony is now known as Mapley
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
Megtastique has joined #ruby
jonr22 has quit [Client Quit]
<havenwood> diegoviola: The hope was to survive in the open source community now that Engine Yard thinks they're ready (or wants to fund other things or whatever).
pothibo has joined #ruby
<havenwood> I think*
sparrovv has quit [Remote host closed the connection]
<diegoviola> right
<diegoviola> i can see rubinius doing just fine with that
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
<havenwood> diegoviola: Yeah, some neat stuff. And maybe RubiniusX can test out some ideas that make it back into Ruby. I don't know..
whatasunnyday has joined #ruby
pfg has joined #ruby
<diegoviola> that would be nice to see
Hanmac has quit [Ping timeout: 246 seconds]
<havenwood> diegoviola: mruby and JRuby are getting a lot of love
pothibo has quit [Client Quit]
platzhirsch has joined #ruby
<havenwood> Especially with mruby's 1.0.0 release that seems to have gone completely under the radar!!
<waxjar> mruby reached 1.0? :o
<havenwood> And JRuby 2.0 upcoming this year.
<havenwood> waxjar: Yup, shhhhhhhh!
<platzhirsch> 2.0 ho ho ho
<Markvill_> havenwood: problem is, hardware to run it is not easily found
<havenwood> waxjar: Nobody seems to have realized. :P
<havenwood> Markvill_: To run mruby?
<Markvill_> havenwood: yea, deb boards
<Markvill_> dev*
<diegoviola> nice
ephemerian has left #ruby [#ruby]
stkowski has quit [Quit: stkowski]
<havenwood> I've got preliminary support for mruby in ruby-install ready. Just waiting on code review.
mattp__ has joined #ruby
coca_rails has joined #ruby
vlad_starkov has joined #ruby
thesheff17 has quit [Ping timeout: 246 seconds]
<havenwood> Maybe I'll add mruby-1.0.0 to ruby-build and RVM if somebody else doesn't sometime soon.
Hanmac has joined #ruby
<havenwood> I think they will, once news of 1.0 release gets out.. :)
<Markvill_> havenwood you seen to me up to date with mruby. Current efforts are to make mruby a language for embedded development (eg: small ARM boards) or to use it as scripting language inside other apps (like lua)?
tkuchiki has quit [Remote host closed the connection]
<havenwood> Markvill_: Both.
RaCx_ has joined #ruby
Vivekananda has joined #ruby
tkuchiki has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
RaCx_ is now known as RaCx
<Markvill_> havenwood: no special interest in one?
<centrx> havenwood, What are the limitations of mruby?
<centrx> "complying to (part of) the ISO standard."
<havenwood> Markvill_: Matz said something to the effect that he wanted Ruby to be able to run anywhere, on your toaster or embedded in another language.
Xiti has joined #ruby
stkowski has joined #ruby
stkowski has left #ruby [#ruby]
iMe_away is now known as iMe
baroquebobcat has quit [Quit: baroquebobcat]
angusiguess has joined #ruby
zz_karupanerura is now known as karupanerura
tkuchiki has quit [Ping timeout: 245 seconds]
GinoMan has quit [Ping timeout: 245 seconds]
tempered_ has joined #ruby
<havenwood> centrx: Dependencies are few. To build mruby you need make and bison. Hanmac pointed me at a project that was even running mruby in an EFI shell: http://masamitsu-murase.github.io/mruby_on_efi_shell/
tempered has quit [Ping timeout: 250 seconds]
tempered_ is now known as tempered
DouweM has quit [Ping timeout: 260 seconds]
<havenwood> centrx: A smaller stdlib (if you consider that a limitation) but already there is a working mrbgems that lets you extend areas you need.
<platzhirsch> so when self.included is defined in module X is it executed after include X has been executed. How can I make this generic for every module?
<waxjar> we'll all soon run rails on our toasters
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
stkowski has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
thesheff17 has joined #ruby
andrewfree has joined #ruby
<andrewfree> Is there a way to use the ruby select without losing the context of the original thing?
mojjojo has quit [Quit: mojjojo]
stkowski has left #ruby [#ruby]
kitak has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
<waxjar> andrewfree, it does that by default:
<waxjar> >> x = [1,2,3,4]; x.select { |y| y > 2 }; x
<eval-in> waxjar => [1, 2, 3, 4] (https://eval.in/99990)
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx> platzhirsch, included is run after the module has been included, based on looking at the source code
<centrx> platzhirsch, What do you mean "How can I make this generic"
GinoMan has joined #ruby
<havenwood> andrewfree: #select! or #keep_if on the other hand would modify the receiver
Davey has joined #ruby
stkowski has joined #ruby
<platzhirsch> centrx: I want the method to be executed if any module is included, not just a specific module where I define the method
Deele has quit [Ping timeout: 245 seconds]
<platzhirsch> centrx: I did this for method_added by defining it on class Object, but there seems to be no equivalent, because writing module Module;... is illegal
stkowski has quit [Remote host closed the connection]
stkowski has joined #ruby
<centrx> platzhirsch, How about class Module :)
stkowski has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
<platzhirsch> centrx: the same, but let me revisit that
stkowski has joined #ruby
<platzhirsch> centrx: class Module; def included
<platzhirsch> centrx: there it works, thanks. I thought I tried that already :)
wildroman2 has joined #ruby
marr has quit [Ping timeout: 260 seconds]
angusiguess has joined #ruby
dachi has quit [Quit: ...]
wildroman2 has quit [Ping timeout: 260 seconds]
coca_rails has quit [Remote host closed the connection]
enape_101 has joined #ruby
tkuchiki has joined #ruby
Hobogrammer has joined #ruby
Nucc has joined #ruby
Nucc has quit [Client Quit]
zcreative has quit [Quit: Computer has gone to sleep.]
Wolland has joined #ruby
kenneth has joined #ruby
dachi has joined #ruby
`petey` has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
camilo has quit [Remote host closed the connection]
jhass is now known as jhass|off
bklane has quit [Remote host closed the connection]
mattp__ has quit [Quit: WeeChat 0.4.1]
mattp_ has joined #ruby
jerius has joined #ruby
bklane has joined #ruby
Radar_ is now known as Radar
Kricir has joined #ruby
<AlexRussia> how to work with git branches like * (detached from origin/refractoring)?
enape_101 has quit [Ping timeout: 252 seconds]
robustus has quit [Ping timeout: 245 seconds]
Wolland has quit [Read error: Connection reset by peer]
mocfive has quit [Remote host closed the connection]
Wolland has joined #ruby
mocfive has joined #ruby
bklane has quit [Ping timeout: 252 seconds]
ageis has joined #ruby
`petey` has joined #ruby
helpa has joined #ruby
robustus has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
mocfive has quit [Ping timeout: 250 seconds]
havenwood has quit []
tjr9898 has joined #ruby
<platzhirsch> const_get will throw a NameError if it does not exist. How can I check this without using the exception to decide whether it exists or not?
tjr9898 has quit [Remote host closed the connection]
pwh has quit []
mavcunha has joined #ruby
ktosiek has quit [Ping timeout: 245 seconds]
pfg has quit [Quit: Textual IRC Client: www.textualapp.com]
<platzhirsch> well I guess not
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<centrx> platzhirsch, There should be a method that lists all the constants
<centrx> or const_defined? is there as well
<centrx> Docs are good
<platzhirsch> centrx: ah right Kernel, man I am lazy
mavcunha_ has quit [Ping timeout: 260 seconds]
tjr9898 has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
tectonic has joined #ruby
iml has joined #ruby
<pipecloud> AlexRussia: #git
tjr9898 has quit [Remote host closed the connection]
<pipecloud> platzhirsch: defined?
<pipecloud> It's a keyword.
<dorei> defined? is magic :)
Megtastique has quit []
<pipecloud> devyn: It's a keyword! :D
<chrisseaton> defined? is fascinating - it's actually a sort of parallel semantics applied to the same AST - it's pretty unique across all programming languages
<dorei> pipecloud: being a keyword is what makes it magical :)
maletor has joined #ruby
mavcunha has quit [Quit: Computer has gone to sleep.]
<pipecloud> dorei: Is it?
whatasunnyday has quit [Quit: whatasunnyday]
<pipecloud> I think alias is more magical.
<dorei> passing a keyword as an arg to defined? gives SyntaxError :)
amclain has quit [Read error: Connection reset by peer]
Cache_Money_ has joined #ruby
amclain has joined #ruby
<dorei> hmm, pry throws the SyntaxError
vlad_starkov has joined #ruby
<AlexRussia> pipecloud: drugs?
whatasunnyday has joined #ruby
<pipecloud> dorei: :D
jso has quit [Ping timeout: 246 seconds]
Tomasso has joined #ruby
wfreeman has joined #ruby
wfreeman has left #ruby [#ruby]
whatasunnyday has quit [Client Quit]
n88 has quit [Ping timeout: 245 seconds]
jso has joined #ruby
chipotle has joined #ruby
n88 has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
RaCx has quit [Ping timeout: 265 seconds]
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
adeponte has quit [Ping timeout: 246 seconds]
RaCx has joined #ruby
fonz has quit [Remote host closed the connection]
adeponte has joined #ruby
bahar has quit [Ping timeout: 252 seconds]
bahar has joined #ruby
nobitanobi has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
Hiall has joined #ruby
chipotle has quit [Quit: cya]
krisbulman is now known as [krisbulman]
Vivekananda has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> which is the right ruby collection if I have to add a lot of elements (and in the end turn into an array) to this collection?
<Fire-Dragon-DoL> I have to run a lot of <<
Tomasso has quit [Ping timeout: 245 seconds]
Tomasso has joined #ruby
zastern has joined #ruby
timonv has joined #ruby
<RubyTitmouse> Fire-Dragon-DoL: I can't tell what you're asking
IceDragon has quit [Ping timeout: 252 seconds]
Megtastique has joined #ruby
<Fire-Dragon-DoL> RubyTitmouse: I want a collection that has O(1) append operation because I may need to add ~1 000 000 items to it
mehlah has quit [Quit: Leaving...]
<Fire-Dragon-DoL> RubyTitmouse: if I know initially the size, maybe an array is better
<RubyTitmouse> Fire-Dragon-DoL: Use array and << is a good choice, push should be about the same
<RubyTitmouse> knowing the size doesn't help in Ruby
<RubyTitmouse> it does a good job at appending
timonv has quit [Ping timeout: 246 seconds]
<RubyTitmouse> Fire-Dragon-DoL: an important thing to consider is that if you're looping and then adding to the array, make sure the inside of your loop calls a method, don't just loop over a block, because you don't want your temp vars to live until the block goes out of scope... when the outer method finishes
brunops has quit [Ping timeout: 245 seconds]
<RubyTitmouse> if you have more methods, that each do 1 tiny step, your memory management is less likely shoot your foot
stonevil has joined #ruby
<Fire-Dragon-DoL> mhhh RubyTitmouse can you provide an example? I'm not sure I understand what you mean
<Fire-Dragon-DoL> I can provide a gist
justinxreese has joined #ruby
Sid05 has quit [Quit: Leaving.]
Tomasso has quit [Ping timeout: 245 seconds]
brunops has joined #ruby
`petey` has quit [Remote host closed the connection]
<pontiki> February must be Premature Optimization month
<Fire-Dragon-DoL> pontiki: if I know I may load up to 100 000 * 100 records
<Fire-Dragon-DoL> all at once
<Fire-Dragon-DoL> it's not premature optimization
<Fire-Dragon-DoL> definitely not lol
<pontiki> i have to ask what you are actually doing with that many records in memory at all
<Fire-Dragon-DoL> I'm providing the user an "all" method (fetched from an API) all at once
<Fire-Dragon-DoL> they do are cached
<pontiki> lol
<pontiki> how big is each record
<Fire-Dragon-DoL> considering that users are crazy
<Fire-Dragon-DoL> they may want to load all records at once
<pontiki> how much time do you think they want to wait for it all to download?
<pontiki> how much memory do you think they'll care to have their browsers use all at once?
<pontiki> you're optimizing for the wrong thing
stonevil has quit [Ping timeout: 245 seconds]
<Fire-Dragon-DoL> pontiki: API may be used for big load of data written in DB
IceDragon has joined #ruby
<Fire-Dragon-DoL> probably through a rake task
<pontiki> then there is no client
<Fire-Dragon-DoL> the programmer using the gme
<pontiki> and so your server doesn't need to store it all at once either
<Fire-Dragon-DoL> gem*
pu22l3r has joined #ruby
<Fire-Dragon-DoL> no infact but considering that a programmer may (still) misues the gem (I provide an #each method that doesn't load everything) I know I can handle it
<Fire-Dragon-DoL> and anyway it's enough to specify the array size
<Fire-Dragon-DoL> this will stop any array cloning issue
vlad_starkov has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> should turn entire push in an O(1)
<pontiki> lets even just assume each record is 1024 bytes, 100,000*100*1024 --> somewhere around 10G
`petey` has joined #ruby
<pontiki> you should look at providing an enumerator that doesn't require having all the data at hand
<RubyTitmouse> Fire-Dragon-DoL: Right, you have one giant procedural method
mlpinit has quit [Quit: Leaving...]
<RubyTitmouse> You're going to have a zillion copies of everything in memory at the same time
m104 has quit [Quit: bye]
<Fire-Dragon-DoL> I do have an enumerator
<pontiki> finish reading my sentence
axl_ has joined #ruby
<Fire-Dragon-DoL> oh, it doesn't
fgo has joined #ruby
<Fire-Dragon-DoL> the #all method is inteded for a different usage
<Fire-Dragon-DoL> (it's the one loading everything in memory)
<Fire-Dragon-DoL> the #all method is intended for when you have a very "precise" query like something that gets around ~100 records
<Fire-Dragon-DoL> and you want them all at same time in memory (probably to display them somewhere)
snuffeluffegus has quit [Quit: Leaving]
<RubyTitmouse> each method should do 1 or 2 things. If you have a block like foos.each {|f| step 1; step 2 step 3} all your temp vars wait until the enclosing method exits to free. If instead you have def step_1 foo ; step_2(foo) end ; def step_2; foos.each{|f| do_some_work(f) } end # then everything can get freed sooner
<RubyTitmouse> OOP, not procedural :) Perl is much better at procedural nested scopes...
<Fire-Dragon-DoL> I do have an each that does the following
<RubyTitmouse> Ruby will murder your memory if you drive it crazy with that stuff
stonevil has joined #ruby
<centrx> Murder
<centrx> Your
<centrx> Memory
<Fire-Dragon-DoL> call the #page method (which loads all records of a page in memory, up to 100)
<Fire-Dragon-DoL> loop through all these and while looping
<pontiki> what *is* your gem for?
<Fire-Dragon-DoL> loads the next page in memory (so up to 200 records at same time in memory, but standard will be 50 per page so up to 100)
<Fire-Dragon-DoL> when it has finished looping data in first page, I can actually discard that data
<RubyTitmouse> like talking to a wall that echos back the opposite of what you said. if it was an island in an epic poem I might be entertained
<Fire-Dragon-DoL> I can't make a method
axl__ has joined #ruby
<RubyTitmouse> yes you can
<Fire-Dragon-DoL> step_1 step_2 step_3
axl_ has quit [Ping timeout: 248 seconds]
axl__ is now known as axl_
<pontiki> ok, i'm done
<Fire-Dragon-DoL> damn
<pontiki> have fun
<RubyTitmouse> I think I can I think I can I think I can
<Fire-Dragon-DoL> wait few seconds
<Fire-Dragon-DoL> providing source so you may understand
<Fire-Dragon-DoL> I can't make a method
<Fire-Dragon-DoL> for each page
<RubyTitmouse> no
<Fire-Dragon-DoL> is the opposite of dynamic language
<Fire-Dragon-DoL> lol
<RubyTitmouse> You don't understand. At all.
<RubyTitmouse> You can _always_ make a method.
<Fire-Dragon-DoL> I do not understand what you mean so
<RubyTitmouse> If you really-really-really couldn't use OOP, you shouldn't use Ruby.
<RubyTitmouse> But you can. Really.
<Fire-Dragon-DoL> god
RoxasShadowRS has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> wait for my code
<RubyTitmouse> dude, you have no idea
<Fire-Dragon-DoL> no before saying
<Fire-Dragon-DoL> I have no idea
<Fire-Dragon-DoL> try to provide me an example
<Fire-Dragon-DoL> it's ten or 15 years I'm programming in oop way
<Fire-Dragon-DoL> I know what OOP means
<RubyTitmouse> how silly it is to think I need to see the code. There is not going to be, cannot be, anything in the code that prevents you from using small methods. You know why? Because we don't even have pass-by-value! We only have pass-by-reference!
<Fire-Dragon-DoL> and my method looks oop, if you are talking something SPECIFIC
<RubyTitmouse> If this was COBOL, I'd need to see the code first
<Fire-Dragon-DoL> about ruby, then please provide me an example because I'm not understanding what you mean with step_1, step_2, step_3
<Fire-Dragon-DoL> my code IS split in small methods
<Fire-Dragon-DoL> like if I don't know that we pass everything as pass-by-reference
<Fire-Dragon-DoL> it's the base of every non programmer-managed memory i tried so far
<Fire-Dragon-DoL> except for C# structs
danshultz has joined #ruby
<RubyTitmouse> each method should do 1 or 2 things. If you have a block like foos.each {|f| step 1; step 2 step 3} all your temp vars wait until the enclosing method exits to free. If instead you have def step_1 foo ; step_2(foo) end ; def step_2; foos.each{|f| do_some_work(f) } end # then everything can get freed sooner
x77686d has quit [Quit: x77686d]
aces1up9939 has joined #ruby
sriehl has joined #ruby
<aces1up9939> anyone here use ruby mine? i'm trying to figure out where i can setup a custom gem directory for an interpreter?
<RubyTitmouse> it has to do with the nature of closures, and blocks being closures
<RubyTitmouse> and ruby not having lexical scoping in the way that Perl does
wallerdev has quit [Quit: wallerdev]
<Fire-Dragon-DoL> now let me understand
<RubyTitmouse> simply pasting the inside of a block into a method, and calling that method, changes where GC gets triggered in an important way
<Fire-Dragon-DoL> (link is for giving you context, please notice I didn't finish the return part of the method)
Davey has quit [Quit: Computer has gone to sleep.]
<Fire-Dragon-DoL> let me work my mind a bit on what you described
stonevil has quit [Ping timeout: 248 seconds]
<RubyTitmouse> like in your gist https://gist.github.com/Fire-Dragon-DoL/b86066c66b4605743bc8 line 12 that is holding all the temp vars created inside, for every iteration, until the whole method returns
<Fire-Dragon-DoL> RubyTitmouse: well in that method, records allocated are not supposed to be released considering I'm passing them to user
whatasunnyday has joined #ruby
<RubyTitmouse> if each block, and each sub-block, does 1 thing, calls method this_step(...) then all the stuff inside this_step() can get freed _at the end of each loop_ instead of when the outermost method is finished
wallerdev has joined #ruby
<Fire-Dragon-DoL> the all method is supposed to be used with SMALL amount of users, still some crazy guy may run it against 1 000 000 records, who knows
<Fire-Dragon-DoL> #all sorry
<Fire-Dragon-DoL> don't you double the #each block in this way'
<Fire-Dragon-DoL> ?
<RubyTitmouse> Usually nobody cares because they have small data and all their temp variables fit easily into memory at the same time, and that type of procedural stuff is only panned for being ugly and disgusting. But in your case, it is substantially harmful.
carif has joined #ruby
<Fire-Dragon-DoL> so for example
<Fire-Dragon-DoL> if I have to load
hamakn has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
<Fire-Dragon-DoL> (let's say) 100 users, then I have to transform them into something else
<Fire-Dragon-DoL> I have first a loop (100 times) to load those
<RubyTitmouse> foos.each{|f| some_work(f) } ... def some_work f ; f.bars.each { |b| some_more_work(b) }
hamakn has joined #ruby
<RubyTitmouse> The inside of the loop should be exactly 1 line, regardless of how much work there is
<Fire-Dragon-DoL> ok now I understand what you mean
<RubyTitmouse> And the outer method should only be doing 1 thing anyways
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Fire-Dragon-DoL> is ; considered one line? :P
<RubyTitmouse> yeah it is a synonym for a newline
<Fire-Dragon-DoL> so no it's not one line with ;
<Fire-Dragon-DoL> ok anyway the #all method is ok like that, I must work on having a single line on the #each method
Sir_Funk has quit [Ping timeout: 265 seconds]
<RubyTitmouse> You can't type of a def statement without a newline or ;
<Fire-Dragon-DoL> as I said #all is supposed to be used with small amount of records (I'll type it in the readme)
<Fire-Dragon-DoL> I'll let you check the #each method if you'll have free time
trickyhero has joined #ruby
<Fire-Dragon-DoL> not program-check I mean just give it a sight
<Fire-Dragon-DoL> don't want code-correction, that's my job xD
nari has joined #ruby
<Fire-Dragon-DoL> ok and to increase the "danger" of that method
trickyhero has left #ruby ["Leaving"]
<Fire-Dragon-DoL> I'll add a !
tt1187 has quit [Ping timeout: 272 seconds]
amclain has quit [Read error: Connection reset by peer]
amclain has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
Noldorin has quit []
verto has quit [Remote host closed the connection]
tjr9898 has joined #ruby
bklane has joined #ruby
Davey has joined #ruby
[gmi] has quit [Read error: Connection reset by peer]
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby
verto_ has joined #ruby
<RubyTitmouse> if you don't want code correction, it is probably hard to get help, because a lot of people expect you to fix crappy code first, and find the bugs second
verto_ is now known as verto
OdNairy has joined #ruby
vlad_starkov has joined #ruby
tylersmith has joined #ruby
george2 has quit [Remote host closed the connection]
<Fire-Dragon-DoL> RubyTitmouse: you can code correct but I feel like abusing your time
<Fire-Dragon-DoL> it's not that I don't want ^^
<pontiki> hehe
Sir_Funk has joined #ruby
jumpingcloud has quit [Ping timeout: 245 seconds]
[krisbulman] is now known as krisbulman
kenneth has joined #ruby
OdNairy has quit [Ping timeout: 272 seconds]
geggam has quit [Ping timeout: 245 seconds]
pu22l3r has quit [Remote host closed the connection]
gnephiak has joined #ruby
geggam has joined #ruby
jerius has quit []
whatasunnyday has quit [Quit: whatasunnyday]
pdtpatrick has joined #ruby
`petey` has quit [Remote host closed the connection]
rm_ has quit [Remote host closed the connection]
`petey` has joined #ruby
snkcld has joined #ruby
<snkcld> how does rake go about building schema.rb, when i run rake db:migrate?
duggiefresh has joined #ruby
mercwithamouth has quit [Ping timeout: 250 seconds]
hamakn has joined #ruby
havenwood has joined #ruby
<pipecloud> snkcld: Are you talking about rails?
mgberlin has joined #ruby
markalanevans has joined #ruby
<snkcld> pipecloud: i guess
<pipecloud> #rubyonrails:
<markalanevans> Hey folks, if I have class like this: http://pastie.org/8717006
<markalanevans> And i do Genius::setDB(db);
<markalanevans> where db is a Mysql::new()
hamakn has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 265 seconds]
hamakn has joined #ruby
<markalanevans> I'm a bit confused as to why doing that, would make the @ attribute available for all future Genius:: methods
hamakn has quit [Read error: Connection reset by peer]
`petey` has quit [Ping timeout: 245 seconds]
<markalanevans> Being the @DB is an instance variable.
hamakn has joined #ruby
pu22l3r has joined #ruby
<Fire-Dragon-DoL> markalanevans: Genius::setDb is a CLASS method so any "instance" variable you set are set for that instace of CLASS Class, in this case, Genius
<Fire-Dragon-DoL> if is Genius#setDb obviously it's different
<markalanevans> Fire-Dragon-DoL: so how does it differ to @@
<Fire-Dragon-DoL> it doesn't
<markalanevans> But i'm using @ instead of @@
<markalanevans> so because it inside of a self.method
<Fire-Dragon-DoL> yes but you are doing it on a class method
whatasunnyday has joined #ruby
<Fire-Dragon-DoL> not on an instance method
<markalanevans> ok.
<markalanevans> So thats the reason why.
xlogic has quit [Remote host closed the connection]
<Fire-Dragon-DoL> if you do it on a class method, you set it for the CLASS Class instance
<markalanevans> So i'm trying to understand the pattern for creating a DB connection for my App.
<Fire-Dragon-DoL> if you do it for an instance method, you do it for the class Genius instance xD
<havenwood> markalanevans: A few suggestions: https://gist.github.com/havenwood/a068171cd5926662d607
estebistec has joined #ruby
<markalanevans> I thought it should use some sort of singleton pattern.
<markalanevans> Because during a sinatra request if i were to use a @@ then that same connection is shared across all users.
Zunonia_ has joined #ruby
finges has quit [Ping timeout: 252 seconds]
<Fire-Dragon-DoL> if that's what you want, then use it
<havenwood> markalanevans: for calling methods, use `.` not `::`, so: Genius.set_db
sriehl has quit []
havenwood has quit []
Hanmac1 has joined #ruby
<markalanevans> why?
wlanboy has quit [Ping timeout: 240 seconds]
<markalanevans> doesn't matter if its a class or instance method?
<AntelopeSalad> is there a way to trick __method__ so it tells me what method invoked a certain method call? i'm trying to figure out if a thor task was invoked or not
<AntelopeSalad> spent so long trying to do this haha, i can't find anything online
sensen has joined #ruby
<pontiki> AntelopeSalad: you can query caller and see if it is in the caller backtrace
wlanboy has joined #ruby
wlanboy has quit [Changing host]
wlanboy has joined #ruby
<AntelopeSalad> pontiki: SO says caller_locations(1,1)[0].label
<pontiki> nod
vongrippen has quit [Quit: No Ping reply in 180 seconds.]
<AntelopeSalad> but that returns "run"
Hanmac has quit [Ping timeout: 260 seconds]
Megtastique has quit []
<AntelopeSalad> which doesn't even make sense to me
<pontiki> it may be up from there
vongrippen has joined #ruby
<centrx> markalanevans, :: works too
<AntelopeSalad> pontiki: so 0 is the first, just keep incrementing until i find it?
mdpatrick_ has joined #ruby
mdpatrick has quit [Quit: No Ping reply in 180 seconds.]
<pontiki> remeber that blocks produce stack frames as well as intervening methods
Solnse has joined #ruby
<markalanevans> Fire-Dragon-DoL: So then for a standard database connection, what is the right way to set it up if each web request needs its own connection?
enape_101 has joined #ruby
<AntelopeSalad> pontiki: it always reports "run"
<AntelopeSalad> and i have to use negative indexes i guess
maletor has quit [Quit: Computer has gone to sleep.]
<AntelopeSalad> it only has one for -1 and 0
Sid05 has joined #ruby
<pontiki> what does the documentation for caller and caller_locations say?
cjsarette has joined #ruby
<AntelopeSalad> it says it returns an array of backtrace location objects
<AntelopeSalad> so 1,1 needs to be changed it seems, not the array index
dorei has quit []
rm_ has joined #ruby
chipotle has joined #ruby
<AntelopeSalad> pontiki: no dice tho, it always returns the method where the puts is to display the caller_locations
sergicles has joined #ruby
sergicles has quit [Client Quit]
<AntelopeSalad> wait, haha this is crazy... i got it
<AntelopeSalad> thanks man
Sid05 has quit [Ping timeout: 265 seconds]
duggiefresh has quit [Remote host closed the connection]
browndawg has joined #ruby
LLKCKfan has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
kitak has quit [Read error: Connection reset by peer]
dx7 has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> markalanevans: I'm not sure I understand your question, there isn't a standard way, you can use instance or class methods, your choice
RaCx has quit [Ping timeout: 245 seconds]
LLKCKfan has joined #ruby
kitak has joined #ruby
dx7 has joined #ruby
yarou has quit []
<markalanevans> Fire-Dragon-DoL: so i'm just now understanding that in ruby + sinatra @@ or class variables are shared amongst all web requests.
<markalanevans> So if i had 2 users making two separate web requests
<markalanevans> and i for example had @@ip = request.ip
RaCx has joined #ruby
<markalanevans> the variable value could change through the life of the request if multiple requests were hitting my server at once
<markalanevans> so @@ is dangerous
<markalanevans> So that make sense to me.
<centrx> markalanevans, Yes, class variables are generally to be avoided
<markalanevans> So I want to know the right way to create a "global" connection to my database which can be access by any class.
duggiefresh has quit [Ping timeout: 265 seconds]
<markalanevans> but scoped by the request
<markalanevans> *web request so that different users are not stepping on each others @@DB reference.
krz has joined #ruby
<markalanevans> Fire-Dragon-DoL: centrx does that make sense?
enape_101 has quit [Ping timeout: 252 seconds]
<centrx> markalanevans, Usually you use a "Connection Pool", e.g. http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/ConnectionPool.html
kenndel has joined #ruby
<centrx> That is one implementation
geggam has joined #ruby
Zunonia_ has quit [Quit: Computer has gone to sleep.]
<centrx> markalanevans, This one seems to be popular: http://rubygems.org/gems/connection_pool
Davey has quit [Quit: Computer has gone to sleep.]
pixelgremlins_ba has quit [Read error: Connection reset by peer]
<markalanevans> centrx: so doesn't mysql already kind of manage the # of connections allowed?
<markalanevans> For instance i can configure mysql to allow 10000 connections
pixelgremlins_ba has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
<markalanevans> I just want to make sure that each web request has its connection isolated.
<markalanevans> Right now it seems every user that visits my site would be using the same database connection.
<Fire-Dragon-DoL> markalanevans: that's not possible
maletor has joined #ruby
<Fire-Dragon-DoL> markalanevans: that's why you use a connection pool
<centrx> markalanevans, MySQL limits the number of connections it allows. It does not isolate your threads from each other
<markalanevans> Fire-Dragon-DoL: whats not possible?
stonevil has joined #ruby
<Fire-Dragon-DoL> markalanevans: 1 connection per user
<Fire-Dragon-DoL> markalanevans: think about facebook... 1 billion connection if all users connect at same time?
oso96_2000 is now known as oso|away
<markalanevans> hmmm.
<Fire-Dragon-DoL> markalanevans: connection pool is there for a reason, it allows a fixed size of connections, for example, 20
<Fire-Dragon-DoL> markalanevans: when a user try to access a new connection and all connections are reserved
<Fire-Dragon-DoL> markalanevans: the request starts waiting (user see slowdown)
<markalanevans> Fire-Dragon-DoL: ok.
<Fire-Dragon-DoL> markalanevans: once one connection has done its job and is released, user request will be noticed with "ehy I have a free connection now"
<Fire-Dragon-DoL> user start using connection :P
<markalanevans> So currently i'm not using any connection pooling
<markalanevans> I'm just using sinatra + the mysql gem
<markalanevans> and it appears i have just been using a class instance connection
<Fire-Dragon-DoL> yea, wrong approach, you should use at least 1 connection per user
<Fire-Dragon-DoL> it's not great as a connection pool, but it's a start
<markalanevans> Wait!
<markalanevans> you just said its not possible
<Fire-Dragon-DoL> it's not possible for performance reasons
<Fire-Dragon-DoL> supposing your sinatra app will grow
<pipecloud> Why are you reinventing connection pooling?
<markalanevans> I'm not
<RubyTitmouse> Fire-Dragon-DoL: what are you talking about?!
<markalanevans> i'm learning about it
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
rm_ has quit [Remote host closed the connection]
<centrx> RubyTitmouse, Where is my hat!?
<pipecloud> markalanevans: So you're reinventing it to learn how it works?
<Fire-Dragon-DoL> pipecloud: we are not, we just mentioned existence
<RubyTitmouse> centrx: on my head, haha
<markalanevans> pipecloud: what are you talking about. I haven't invented anything
rm_ has joined #ruby
echevemaster has quit [Remote host closed the connection]
<Fire-Dragon-DoL> RubyTitmouse: we were talking about markalanevans issue
<pipecloud> markalanevans: You can say that again.
<markalanevans> I"m just saying what I have currently done which is nothing
Yahkob has joined #ruby
<markalanevans> just one class variable so far.
<Fire-Dragon-DoL> infact, no one reinvented connection pooling
<RubyTitmouse> No, I mean, something is possible or not possible, if you a possible thing is not possible, don't then say it is for performance reasons
<Fire-Dragon-DoL> I was just explaining how it works
<RubyTitmouse> that is just not making sense
<markalanevans> pipecloud: thats not helpful.
<Fire-Dragon-DoL> RubyTitmouse: ok so let change in *it's not suggested* do you like it?
stonevil has quit [Ping timeout: 251 seconds]
<RubyTitmouse> markalanevans: I don't know about Sinatra, but for example if you're doing something with ActiveRecord you can create a new connection whenever you want, so if you divide up the execution into the units you want, per-request or whatever, you can easily manage the connections in the same scope
krisbulman is now known as [krisbulman]
<markalanevans> RubyTitmouse: I'm using sinatra + data mapper.
<RubyTitmouse> Like in the old days with apache there was often one db connection per backend process, and a pool of backend processes, and n front end connections
<markalanevans> Basically i have an app. I now have thousands of users, I want to setup my sinatra app and connections to mysql to be done correctly.
echevemaster has joined #ruby
<markalanevans> RubyTitmouse: right. i'm coming from the PHP space. :(
<markalanevans> so each web request would be isolated and its connection would be new per request
<centrx> PHP is an abomination and a scourge on the face of the earth.
thomasxie has joined #ruby
<Fire-Dragon-DoL> ahah
casheew has joined #ruby
<RubyTitmouse> markalanevans: normally the request would be isolated but get re-used
<RubyTitmouse> the connection would get reused
<markalanevans> But w/ sinatra and rack it seems its all loaded in ram, and class variables are shared across all users so i have to be careful how i use them.
Hobogrammer_ has joined #ruby
vlad_starkov has joined #ruby
whowantstolivef2 has joined #ruby
BrianJ_ has quit [Quit: Computer has gone to sleep.]
ageis has quit [Read error: Operation timed out]
<Fire-Dragon-DoL> markalanevans: you are right, my suggestion is do not use them (I'm not joking)
<Fire-Dragon-DoL> use constants
Yahkob_ has joined #ruby
<Fire-Dragon-DoL> if you really require it, make it threadsafe at least
tjr9898 has quit [Remote host closed the connection]
lukeholder has joined #ruby
dx7 has quit [Remote host closed the connection]
lukeholder has quit [Max SendQ exceeded]
tjr9898 has joined #ruby
<Fire-Dragon-DoL> but you usually won't neeed it
fgo_ has joined #ruby
hamakn_ has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Remote host closed the connection]
<Fire-Dragon-DoL> and if you need something shared across requests
<Fire-Dragon-DoL> store it in database
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
<RubyTitmouse> markalanevans: there are lots and lots of ways to do it. A simple way is to use mongrel_cluster with apache proxy balancer, then instead of trying to have a connection per request, you can choose a sensible number of shared connections, and that many backends will be spawned by mongrel_cluster
casheew_ has quit [Read error: Connection reset by peer]
whowantstolivef3 has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Read error: Connection reset by peer]
Yahkob has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Excess Flood]
hamakn has quit [Read error: Connection reset by peer]
fgo has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
robbyoconnor has quit [Client Quit]
MissionCritical has quit [Ping timeout: 260 seconds]
adeponte has quit [Ping timeout: 260 seconds]
helpa has quit [Ping timeout: 260 seconds]
banister has quit [Ping timeout: 260 seconds]
<Fire-Dragon-DoL> RubyTitmouse: I suppose is a learning-purpose project
snkcld has quit [Ping timeout: 260 seconds]
Nowaker has quit [Ping timeout: 260 seconds]
<RubyTitmouse> you can't share anything and scale horizontally, that is why all modern frameworks are "share nothing"
Waheed has joined #ruby
<Waheed> #c++
<Waheed> sorry
<Waheed> :)
rm_ has quit []
<Fire-Dragon-DoL> lol
breaking_ has quit [Ping timeout: 260 seconds]
helpa has joined #ruby
<Fire-Dragon-DoL> you injecting wrong programming language in wrong channel!!!!! Waheed!
Nowaker has joined #ruby
Waheed is now known as whaeedi
snkcld has joined #ruby
whaeedi is now known as waheedi
awkisopen has quit [Ping timeout: 260 seconds]
Yahkob_ has quit [Remote host closed the connection]
<waheedi> now trying to hide :P Fire-Dragon-DoL
<waheedi> lol
meatherly has joined #ruby
<waheedi> didn't mean to
mocfive has joined #ruby
<waheedi> i love both
breakingthings has joined #ruby
Zackio has quit [Ping timeout: 260 seconds]
Patteh has quit [Ping timeout: 260 seconds]
<RubyTitmouse> #c or c-- ?
rm_ has joined #ruby
Yahkob has joined #ruby
<waheedi> lol
<waheedi> boost++
Patteh has joined #ruby
<AntelopeSalad> array question for you guys, let's say you have an array of objects and you want to use .include? on it but you want to check an attribute of one of those objects, how can i do this with the least amount of pain?
<centrx> AntelopeSalad, Enumerable#any?
<markalanevans> Well Its more about getting a better understanding of how to approach a few issues: 1: Sharing a reference to an object across a Sinatra App while keeping the reference thread safe. 2: Managing connections when I have large # of users, what things do i need to consider?
<AntelopeSalad> i know i can each through the array and then do an if statement in the each block
e^0 has joined #ruby
<AntelopeSalad> but that seems non-rubyish
<centrx> AntelopeSalad, Enumerable#any?
<AntelopeSalad> checking the docs centrx
adeponte has joined #ruby
Zackio has joined #ruby
<markalanevans> RubyTitmouse: reading about mongrel cluster
<RubyTitmouse> markalanevans: You should really be trying to learn how to not want to share things
<RubyTitmouse> sharing means only being able to scale vertically. You can't always buy bigger iron.
<AntelopeSalad> centrx: yep looks good, didn't run any official tests yet but it seems to be working
<centrx> AntelopeSalad, Did I win?
<AntelopeSalad> yeah because that's 100x more elegant than my non-ruby garbage can code
<markalanevans> RubyTitmouse: true.
ageis has joined #ruby
<centrx> Victory!
<platzhirsch> so here is my Poor Man's Method Profiler: https://gist.github.com/platzhirsch/0791872fabe11f194c16
<platzhirsch> it's super effective
ageis is now known as Guest25108
<Fire-Dragon-DoL> What's the "standard" way to implement an iterator? I'm reading about Enumerator::new with a block, but what if I want to make each_with_index available in my class too ?
Yahkob has quit [Ping timeout: 272 seconds]
<platzhirsch> popl: should I wrap the monkey bitching inside a module?
<RubyTitmouse> platzhirsch: TypeError: no implicit conversion of nil into String
<centrx> platzhirsch,This "Monkey Bitch" code, can I use this?
duggiefresh has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
<platzhirsch> RubyTitmouse: ah right, thanks.. I catch this case. You need to define 'COUNT_CALLS_TO', like this: COUNT_CALLS_TO='String#size' ruby -r ./solution.rb -e '(1..100).each{|i| i.to_s.size if i.odd? }'
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
brunops has quit [Quit: leaving]
<platzhirsch> centrx: huh?
<RubyTitmouse> poor mans is right, I need to set ENV before pasting into irb, what?! lol
awkisopen has joined #ruby
awkisopen has joined #ruby
<RubyTitmouse> platzhirsch: thanks though :)
<platzhirsch> RubyTitmouse: heh yeah, well I just adhered to the challenge requirements
MissionCritical has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
arityfn has joined #ruby
i8igmac has quit [Remote host closed the connection]
<platzhirsch> The code is pretty ugly, I need to add some doc to mask it
<arityfn> Best place for ruby documentation? for example if I want to look up documentation on chomp.
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
Sirupsen has joined #ruby
<popl> platzhirsch: probably be cleaner
<popl> *it'd
timonv has joined #ruby
<popl> perldoc -f chomp
<popl> ;P
duggiefresh has quit [Ping timeout: 248 seconds]
<AntelopeSalad> arityfn: i've been having luck on the main ruby site
<AntelopeSalad> yeah that one
<centrx> There it is
<arityfn> oh, sweet!
<popl> I like being able to look at the implementation
<arityfn> is there something similar for the command line?
tjr9898_ has joined #ruby
Tokenizer has quit [Quit: Tokenizer]
jonah_k has joined #ruby
binaryhat has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
<RubyTitmouse> Foo.omg called 10 times # very nice
tjr9898 has quit [Ping timeout: 260 seconds]
<Fire-Dragon-DoL> RubyTitmouse: I'm starting with loops, I suppose this is an ok loop: self.total_pages.times { |current_page| self.page(current_page + 1) }
tjr9898_ has quit [Remote host closed the connection]
<RubyTitmouse> arityfn: we have ri but it isn't really perldoc's equal
tjr9898 has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
<RubyTitmouse> Fire-Dragon-DoL: I'd probably have self.next_page(current_page) instead, but generally that is the right idea yes
whatasunnyday has joined #ruby
whatasunnyday has quit [Client Quit]
<Fire-Dragon-DoL> RubyTitmouse: the fact is that is more like the [] operator
danshultz has quit [Remote host closed the connection]
binaryhat has quit [Remote host closed the connection]
arityfn has quit [Quit: Lost terminal]
<Fire-Dragon-DoL> that's why I didn't use next_page
danshultz has joined #ruby
carif has quit [Ping timeout: 246 seconds]
<Fire-Dragon-DoL> RubyTitmouse: what about this? https://gist.github.com/Fire-Dragon-DoL/a554a35fe5d8b366720f
<Fire-Dragon-DoL> I suppose it loads everything in Enumerator class in that way
lukeholder has joined #ruby
lukeholder has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
<RubyTitmouse> Fire-Dragon-DoL: I'm not sure exactly how the implicit temp var that holds the return value from #page is handled by ruby, that may be okay, or in fact it might still sit in GC until the method exits
nick_h has quit [Ping timeout: 252 seconds]
<RubyTitmouse> if implicit temp vars are like regular local vars but just hidden away, then putting that line inside a method would cause it to get collected right away when that method exits, instead of when each_page exits
Hiall has quit [Quit: hiall]
<Fire-Dragon-DoL> mh
<Fire-Dragon-DoL> ok I'll change it back
Es0teric has quit [Ping timeout: 252 seconds]
gnephiak has quit [Quit: Konversation terminated!]
Es0teric has joined #ruby
IceDragon has joined #ruby
cyong has joined #ruby
bigmac_ has joined #ruby
<Fire-Dragon-DoL> RubyTitmouse: this is what I came up with: https://gist.github.com/Fire-Dragon-DoL/a554a35fe5d8b366720f
bigmac_ is now known as i8igmac
danshultz has quit [Ping timeout: 272 seconds]
Hobogrammer_ has quit [Ping timeout: 265 seconds]
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
vlad_starkov has quit [Remote host closed the connection]
<platzhirsch> centrx: sure, use it
vlad_starkov has joined #ruby
Hobogrammer_ has joined #ruby
axl_ has quit [Quit: axl_]
griffindy has quit [Quit: Computer has gone to sleep.]
lukeholder has joined #ruby
ConstantineXVI has quit [Ping timeout: 265 seconds]
nfk has quit [Quit: yawn]
Hanmac has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Sid05 has joined #ruby
ConstantineXVI has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
Hanmac1 has quit [Ping timeout: 250 seconds]
radic has quit [Ping timeout: 252 seconds]
freezey has joined #ruby
<centrx> platzhirsch, Monkey bitch is mine!
freezey has quit [Read error: Connection reset by peer]
freezey has joined #ruby
monkey_bitch has joined #ruby
Sid05 has quit [Ping timeout: 245 seconds]
<monkey_bitch> centrx: You like that, don't you
radic has joined #ruby
mocfive has quit [Ping timeout: 245 seconds]
<centrx> Is that you, monkey bitch?
geggam has quit [Remote host closed the connection]
<monkey_bitch> centrx: yes my dear
rndstr has quit [Ping timeout: 276 seconds]
ziyadb has quit [Ping timeout: 276 seconds]
im0b__ has quit [Ping timeout: 276 seconds]
guilleiguaran has quit [Ping timeout: 246 seconds]
im0b__ has joined #ruby
rndstr has joined #ruby
ziyadb_ has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
guilleiguaran has joined #ruby
jerius has joined #ruby
mgberlin has quit [Quit: mgberlin]
e^0 has quit [Quit: WeeChat 0.4.2]
braincrash has quit [Quit: bye bye]
<RubyTitmouse> I wanted to link lifo's old "zomg wtf is polymorphs" image but I can't find it... anybody remember what year/month that was?
Rollabunna has quit [Read error: Connection reset by peer]
Megtastique has joined #ruby
Rollabunna has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
mgberlin has joined #ruby
Hobogrammer has joined #ruby
monkey_bitch has quit [Quit: Page closed]
Zunonia_ has joined #ruby
braincrash has joined #ruby
Hobogrammer_ has quit [Ping timeout: 246 seconds]
stonevil has joined #ruby
ItSANg___ has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer has quit [Ping timeout: 245 seconds]
whomp_ has joined #ruby
ItSANgo has quit [Ping timeout: 272 seconds]
stonevil has quit [Ping timeout: 265 seconds]
sparrovv has joined #ruby
[krisbulman] is now known as krisbulman
nanoyak has joined #ruby
nisstyre has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
ItSANg___ has quit [Ping timeout: 245 seconds]
ItSANgo__ has joined #ruby
sparrovv has quit [Ping timeout: 245 seconds]
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
meatherly has quit [Remote host closed the connection]
parduse has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
parduse has quit [Read error: Connection reset by peer]
parduse has joined #ruby
jwang has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
RaCx has quit [Ping timeout: 246 seconds]
RaCx has joined #ruby
pu22l3r has joined #ruby
Shidash has joined #ruby
agjacome has quit [Ping timeout: 260 seconds]
rubyracer has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 246 seconds]
angusiguess has quit [Ping timeout: 246 seconds]
meatherly has joined #ruby
meatherly has quit [Ping timeout: 265 seconds]
decoponio has joined #ruby
chrisseaton has quit []
Chris- has quit [Quit: Chris-]
estebistec has quit [Remote host closed the connection]
maroloccio has quit [Ping timeout: 260 seconds]
axl_ has joined #ruby
finges has joined #ruby
gja has joined #ruby
axl_ has quit [Quit: axl_]
danshultz has joined #ruby
Deele has joined #ruby
ndrei_ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
jerius has quit []
yacks has joined #ruby
parduse has quit []
danshultz has quit [Ping timeout: 248 seconds]
ndrei has quit [Ping timeout: 272 seconds]
parduse has joined #ruby
meatherly has joined #ruby
fgo_ has quit [Remote host closed the connection]
Yahkob has joined #ruby
sski has joined #ruby
meatherly has quit [Ping timeout: 246 seconds]
sski has quit [Ping timeout: 248 seconds]
aagdbl has joined #ruby
thams has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
axl_ has joined #ruby
fgo has joined #ruby
z has quit [Quit: Lost terminal]
mgberlin has quit [Quit: mgberlin]
mgberlin has joined #ruby
maletor has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
havenwood has joined #ruby
freezey has quit [Remote host closed the connection]
dukz has joined #ruby
gja has joined #ruby
stonevil has joined #ruby
vlad_starkov has joined #ruby
Yahkob has quit []
krisbulman is now known as [krisbulman]
tylersmith has joined #ruby
vlad_sta_ has joined #ruby
bthesorceror has quit [Remote host closed the connection]
mgberlin has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
endash has joined #ruby
endash has quit [Client Quit]
bthesorceror has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
maletor has quit [Read error: Connection reset by peer]
stonevil has quit [Ping timeout: 245 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has joined #ruby
platzhirsch has left #ruby [#ruby]
tylersmith has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
makara has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
JBreit has quit [Ping timeout: 248 seconds]
gnephiak has joined #ruby
JBreit has joined #ruby
IceDragon has quit [Ping timeout: 250 seconds]
timonv has quit [Ping timeout: 250 seconds]
nisstyre has quit [Quit: Leaving]
tjr9898_ has joined #ruby
kate_r has joined #ruby
decoponyo has joined #ruby
Krajsnick has joined #ruby
Guest3567 has quit [Changing host]
Guest3567 has joined #ruby
Krajsnick has quit [Client Quit]
Guest3567 is now known as seekwill
RaCx has quit [Ping timeout: 260 seconds]
RaCx has joined #ruby
fgo has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
decoponio has quit [Ping timeout: 260 seconds]
tjr9898 has quit [Ping timeout: 260 seconds]
Nisstyre-laptop has joined #ruby
dukz has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
dukz has joined #ruby
IceDragon has joined #ruby
Megtastique has quit []
danijoo has quit [Read error: Connection reset by peer]
Nisstyre-laptop is now known as nisstyre
danijoo has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
araujo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
habanany has joined #ruby
gja has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
stonevil has joined #ruby
ninegrid has quit [Ping timeout: 272 seconds]
gja has quit [Quit: This computer has gone to sleep]
sensen has quit [Ping timeout: 246 seconds]
stonevil has quit [Ping timeout: 265 seconds]
Jetchisel has joined #ruby
gja has joined #ruby
Guest25108 is now known as ageis
phansch has joined #ruby
sski has joined #ruby
aces1up9939 has quit [Read error: Connection reset by peer]
Sid05 has joined #ruby
waheedi has quit [Quit: waheedi]
sarlalian has quit [Quit: WeeChat 0.4.0]
sarlalian has joined #ruby
centrx has quit [Quit: Leaving]
JasmeetQA has joined #ruby
Sid05 has quit [Ping timeout: 250 seconds]
nanoyak has joined #ruby
tylersmith has joined #ruby
cyong has quit [Quit: Leaving.]
clamstar has quit [Quit: ZNC - http://znc.in]
meatherly has joined #ruby
rm_ has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
Markvill_ has quit [Quit: Computer has gone to sleep.]
Zunonia_ has quit [Ping timeout: 248 seconds]
meatherly has quit [Ping timeout: 272 seconds]
ndrei_ has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
aagdbl0 has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
crus has quit [Remote host closed the connection]
crus has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
tjr9898 has joined #ruby
timonv has joined #ruby
lukeholder has quit [Ping timeout: 245 seconds]
Zunonia has joined #ruby
sensen has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
nisstyre has quit [Quit: WeeChat 0.4.2]
Nisstyre-laptop has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Shidash1 has joined #ruby
bklane has quit [Remote host closed the connection]
evilbug has quit [Quit: Leaving]
Cache_Money_ has quit [Quit: Cache_Money_]
dukz_ has joined #ruby
Shidash has quit [Ping timeout: 245 seconds]
Nisstyre-laptop is now known as nisstyre
dukz has quit [Ping timeout: 252 seconds]
d3scala has quit [Ping timeout: 264 seconds]
Rollabunna has quit [Read error: Connection reset by peer]
nobitanobi has quit [Quit: Leaving]
descala has joined #ruby
sensen has quit [Ping timeout: 252 seconds]
Rollabunna has joined #ruby
Astralum has joined #ruby
rm_ has quit [Remote host closed the connection]
habanany has quit [Read error: Connection reset by peer]
sensen has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
axsuul has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
pietr0 has joined #ruby
ndrei has quit [Read error: Operation timed out]
pietr0 has quit [Client Quit]
ngoldman has joined #ruby
tectonic has quit []
kiri has joined #ruby
kevinykchan has joined #ruby
heftig has quit [Quit: Quitting]
tjr9898 has quit []
kevinykc_ has quit [Ping timeout: 248 seconds]
kitak_ has joined #ruby
LLKCKfan has quit [Ping timeout: 246 seconds]
aagdbl0 is now known as aagdbl
ayaz_ has joined #ruby
ayaz_ has quit [Max SendQ exceeded]
whomp_ has quit [Read error: Connection reset by peer]
iMe is now known as iMe_away
habanany has joined #ruby
kitak has quit [Ping timeout: 245 seconds]
sensen has quit [Ping timeout: 246 seconds]
ayaz_ has joined #ruby
bklane has joined #ruby
tonni_ has quit [Remote host closed the connection]
sensen has joined #ruby
tagrudev has joined #ruby
tonni has joined #ruby
whomp has joined #ruby
ndrei has joined #ruby
IceDragon has joined #ruby
tonni has quit [Ping timeout: 260 seconds]
stonevil has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
stonevil has quit [Ping timeout: 248 seconds]
Zunonia has quit [Quit: Computer has gone to sleep.]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Mon_Ouie has joined #ruby
tuttinator has joined #ruby
Zunonia_ has joined #ruby
Sid05 has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
Sid05 has quit [Ping timeout: 260 seconds]
Monk_code has joined #ruby
jack_rabbit has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
tylersmith has quit [Remote host closed the connection]
tonni has joined #ruby
meatherly has joined #ruby
IceDragon has quit [Quit: Space~~~]
tylersmith has joined #ruby
havenwood has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
havenwood has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
duggiefresh has quit [Ping timeout: 260 seconds]
juni0r has quit [Ping timeout: 272 seconds]
meatherly has quit [Ping timeout: 260 seconds]
Mon_Ouie has quit [Read error: Operation timed out]
havenwood has quit [Ping timeout: 252 seconds]
iMe_away is now known as iMe
amclain has quit [Quit: Leaving]
bthesorceror has quit [Remote host closed the connection]
george2 has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
cjsarette has quit [Ping timeout: 264 seconds]
GinoMan has quit [Ping timeout: 260 seconds]
popl has quit [Read error: Operation timed out]
tylersmith has joined #ruby
existensil has quit [Remote host closed the connection]
tempered has quit [Quit: !q]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dachi has quit [Quit: ...]
iMe is now known as iMe_away
whomp has quit [Ping timeout: 246 seconds]
dachi has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
bklane has quit [Quit: Leaving...]
axsuul has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
bal has joined #ruby
phansch has quit [Quit: Leaving]
marr has joined #ruby
juni0r has joined #ruby
cjsarette has joined #ruby
pierre1__ has quit [Ping timeout: 272 seconds]
rm_ has joined #ruby
supersym has quit [Quit: WeeChat 0.4.2]
echevemaster has quit [Quit: Leaving]
existensil has joined #ruby
_tpavel has joined #ruby
tonni has quit [Ping timeout: 265 seconds]
ngoldman has quit []
RSTJNII has joined #ruby
vlad_starkov has joined #ruby
user258467 has joined #ruby
OdNairy has joined #ruby
arietis has joined #ruby
ohcibi_ has joined #ruby
ohcibi has quit [Read error: Connection reset by peer]
halfie has quit [Ping timeout: 246 seconds]
_shrine has joined #ruby
fgo has joined #ruby
halfie has joined #ruby
<_shrine> hello
agent_white has quit [Ping timeout: 260 seconds]
_shrine has quit [Client Quit]
noop has joined #ruby
wildroman2 has joined #ruby
RaCx_ has joined #ruby
RaCx has quit [Ping timeout: 250 seconds]
RaCx_ is now known as RaCx
Kricir has quit [Remote host closed the connection]
havenwood has joined #ruby
axsuul has quit [Ping timeout: 248 seconds]
tonni has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
himsin has joined #ruby
vlad_sta_ has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
nisstyre has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 245 seconds]
vlad_sta_ has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
halfie has quit [Ping timeout: 246 seconds]
jprovazn has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
scott_fakename has joined #ruby
dubios has quit [Excess Flood]
dagobah has joined #ruby
<bnagy> hi
vlad_starkov has joined #ruby
<pontiki> o/
halfie has joined #ruby
ndrei has joined #ruby
abra has quit [Ping timeout: 260 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<scott_fakename> Howdy. I tried to make a short program that used fork, fifos, and Marshal.dump to communicate.
stonevil has joined #ruby
abra has joined #ruby
<bnagy> was it awful?
<scott_fakename> The idea was that each fork would write an integer to the fifo. And it worked, but the reader would only read one number. If I do writer.write(Marshal.dump(9)); writer.write(Marshal.dump(10))
pdtpatrick has quit [Quit: pdtpatrick]
<scott_fakename> in one, then Marshal.load(reader.read)
<RubyTitmouse> scott_fakename: Marshal is a bad idea. Use drb if you can.
<scott_fakename> would only pull one number off.
<scott_fakename> RubyTitmouse: oh thanks
timonv has joined #ruby
<Monk_code> RubyTitmouse: can you explain?
<bnagy> well drb uses marshal
vlad_starkov has quit [Remote host closed the connection]
<bnagy> it's the fifo that sounds dodgy to me
<scott_fakename> t was horrible. :) but it was just practice. I just wanted to get IPC working
<scott_fakename> bnagy: I also tried it with sockets.
<RubyTitmouse> scott_fakename: if you really have to communicate directly, just create new objects based on values. If you need to speed it up later, you can reimplement the class in C
dubios has joined #ruby
_bart has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<scott_fakename> RubyTitmouse: This was just me messing with fork, trying to get IPC to work.
tuttinator has quit [Quit: Linkinus - http://linkinus.com]
dukz_ has quit [Remote host closed the connection]
agent_white has joined #ruby
<scott_fakename> Do you mean, by "create a new class by values" that I should just write with writer.puts(number) and read with reader.readline.chomp.to_i
dukz has joined #ruby
jonah_k has quit [Remote host closed the connection]
<scott_fakename> and that stuff? dump and parse like that or am I misunderstanding you
Solnse has quit [Ping timeout: 252 seconds]
<RubyTitmouse> scott_fakename: also see: https://github.com/apeiros/fork
<RubyTitmouse> scott_fakename: right, stuff like that
blaxter has joined #ruby
ktosiek has joined #ruby
sski has quit [Read error: Connection reset by peer]
sski has joined #ruby
stonevil has quit [Ping timeout: 245 seconds]
Sid05 has joined #ruby
bigkevmcd has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Galgorth has joined #ruby
Galgorth has quit [Client Quit]
<scott_fakename> While we're on the subject, is there a major difference between using kernel.fork do blah end vs Process.new do blah end? They both spawn a separate process... Am I missing anything? Didn't see anything when I was reading earlier
kitak_ has quit [Read error: Connection reset by peer]
kitak has joined #ruby
jackneill1 has joined #ruby
vlad_starkov has joined #ruby
Hiall has joined #ruby
blaxter has quit [Ping timeout: 245 seconds]
Sid05 has quit [Ping timeout: 260 seconds]
phansch has joined #ruby
aryaching has joined #ruby
<RubyTitmouse> scott_fakename: you have to either fork, which continues the same process twice, or execute a program of some sort, you can't really just create a blank process
meatherly has joined #ruby
blaxter has joined #ruby
blaxter is now known as blaxter_
blaxter_ is now known as blaxter
jackneill1 has quit [Quit: WeeChat 0.4.2]
tonni has quit [Read error: Connection reset by peer]
jackneill has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
rm_ has joined #ruby
_bart has joined #ruby
dukz_ has joined #ruby
ktosiek_ has joined #ruby
meatherly has quit [Ping timeout: 250 seconds]
gja has joined #ruby
ekarlso has quit [Ping timeout: 246 seconds]
scott_fakename has quit [Quit: thanks for the help]
lsmola has joined #ruby
ekarlso has joined #ruby
jhass|off is now known as jhass
ktosiek has quit [Ping timeout: 250 seconds]
ahawkins has joined #ruby
dukz has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
fgo has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
pietr0 has joined #ruby
pietr0 has quit [Client Quit]
rm_ has quit [Ping timeout: 250 seconds]
ace_striker has joined #ruby
dr0ff has left #ruby [#ruby]
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
agent_wh1te has joined #ruby
agent_white has quit [Read error: No route to host]
aganov has joined #ruby
kitak has quit [Read error: Connection reset by peer]
tonni has joined #ruby
kitak has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
ekarlso has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
sergicles has joined #ruby
arctaruz has joined #ruby
ekarlso has joined #ruby
arctaruz has left #ruby [#ruby]
kevinykchan has quit [Quit: Computer has gone to sleep.]
tonni has quit [Remote host closed the connection]
kiri has quit [Quit: Leaving]
Macaveli has joined #ruby
dukz_ has quit [Read error: Connection reset by peer]
dukz has joined #ruby
dukz has quit [Read error: Connection reset by peer]
gja has quit [Quit: This computer has gone to sleep]
dukz has joined #ruby
claymore has joined #ruby
agent_wh1te has quit [Read error: Connection reset by peer]
G has quit [Ping timeout: 252 seconds]
ConstantineXVI has quit [Ping timeout: 265 seconds]
pavilionXP has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
jcarouth has quit [Ping timeout: 265 seconds]
gja has joined #ruby
ConstantineXVI has joined #ruby
agent_white has joined #ruby
einarj has joined #ruby
predator217 has quit [Ping timeout: 245 seconds]
ace_striker has quit [Ping timeout: 245 seconds]
araujo has quit [Remote host closed the connection]
pdtpatrick has joined #ruby
jcarouth has joined #ruby
G has joined #ruby
mojjojo has joined #ruby
pavilionXP has joined #ruby
RaCx has quit [Ping timeout: 260 seconds]
dachi has quit [Quit: ...]
RaCx has joined #ruby
OdNairy has joined #ruby
JasmeetQA1 has joined #ruby
dachi has joined #ruby
JasmeetQA has quit [Ping timeout: 260 seconds]
b00stfr3ak has quit [Ping timeout: 245 seconds]
mradmacher has joined #ruby
funburn has joined #ruby
dukz_ has joined #ruby
charliesome has joined #ruby
havenwood has joined #ruby
stonevil has joined #ruby
dawkirst has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
andikr has joined #ruby
wildroman2 has quit [Remote host closed the connection]
tonni has joined #ruby
habanany has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 252 seconds]
sk87 has joined #ruby
marr has quit [Ping timeout: 272 seconds]
mojjojo has quit [Quit: mojjojo]
Xeago has joined #ruby
Tokenizer has joined #ruby
jrobertfox has quit [Remote host closed the connection]
noop has quit [Ping timeout: 248 seconds]
charliesome has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
charliesome has joined #ruby
mengu has joined #ruby
Sid05 has joined #ruby
TMM has quit [Quit: Ex-Chat]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Ch4rAss has joined #ruby
dukz_ has quit [Remote host closed the connection]
TripleDE1 is now known as TripleDES
dukz has joined #ruby
ocx has joined #ruby
<ocx> hello, i have a project where i would create a localwebserver on my laptop which reads files from a certain directory and show the pictures in thumbail format on the webserver, i will be then be able to select these pictures individually and press on a button called "upload" which will copy these imagesto a remote server, can someone guide me in this matter?
fgo has joined #ruby
<pontiki> what have got so far, ocx?
Sid05 has quit [Ping timeout: 245 seconds]
Shidash1 has quit [Ping timeout: 246 seconds]
mojjojo has joined #ruby
<ocx> pontiki: nothing , i want to start with this project
<pontiki> well then, what do you know about programming in ruby?
<ocx> mainly the localwebserver runs linux/apache
<ocx> i need some guidance, maybe build on something already done
greenarrow has joined #ruby
meatherly has joined #ruby
<ocx> pontiki: i worked a bit with ruby/sinatra but i would be happy if you can guide me in which modules/libraries to use to achieve my project in a smart way
<pontiki> i can't do that
nvrch has joined #ruby
RaCx has quit [Ping timeout: 248 seconds]
<pontiki> not yet anyway
wildroman2 has joined #ruby
RaCx has joined #ruby
<ocx> anyone can help?
arturaz has joined #ruby
<pontiki> what is the remote server?
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ocx> pontiki: linux/apache too
<pontiki> are you writing both local and remote servers?
<ocx> no remote server will be used for storage only
<pontiki> i think you need to think more about how the whole thing is going to work, not worry about what modules and libraries will be needed yet
meatherly has quit [Ping timeout: 246 seconds]
<ocx> pontiki: it goes as follow, the local server points to a local directory where files are stored, it will show these files as thumbail in the webserver graphical interface, i can select some files and click upload, this will upload the files to a external server
<ocx> as easy as that...
<pontiki> as easy as that...
<pontiki> how will the external server know you are uploading to it?
<ocx> its ftp
<ocx> or http post
<pontiki> then it is as easy as using sinatra to display a directory of pictures, and for it to send to the server via ftp. done.
rm_ has joined #ruby
<ocx> pontiki: yea so 1) how can i display files as thumbnail and 2) i need to implement progressive upload means when a connection is lost during big file transfer, i need to resume it when the connection restores
<pontiki> oh, see, now more info comes out
sikor_sxe has joined #ruby
<pontiki> as the thumbnail display is entirely local, it's okay to simply bound it with height and width tags in the html
predator117 has joined #ruby
<sikor_sxe> hello, i struggle at currying in ruby. i'd like to verify the Class for every item in a list. naively i'd say this can be achieved by doing something like this "[1,2].map &:is_a?.curry.(Integer)"
<sikor_sxe> however the interpreter says, there is no curry method on an object :/
bricker`LA has quit [Ping timeout: 265 seconds]
bricker`LA has joined #ruby
rm_ has quit [Ping timeout: 260 seconds]
roolo has joined #ruby
claymore has quit [Read error: Operation timed out]
[gmi] has joined #ruby
ohcibi_ is now known as ohcibi
wildroman2 has quit [Remote host closed the connection]
phansch has quit [Quit: Leaving]
<ocx> pontiki: should i go ruby on rails or sinatra only?
<sikor_sxe> can i achieve this w/o writing a wrapper? "wrapper = -> (x, y) { y.is_a? x }"?
<pontiki> ocx: so far, i haven't heard of any stipulation that would make me think of usign rails
bakedb has quit [Remote host closed the connection]
bakedb has joined #ruby
jrobertfox has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
stonevil has quit [Quit: Computer has gone to sleep.]
Markvilla has joined #ruby
OdNairy has joined #ruby
jackneill has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
coderhs has joined #ruby
coderhs has quit [Client Quit]
gja has joined #ruby
jaxxstorm has joined #ruby
troessner has joined #ruby
<agent_white> pontiki: wait wat
jinie_ has joined #ruby
obs has joined #ruby
<pontiki> watwat?
iml has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
rootshift has joined #ruby
msuszczy has joined #ruby
jinie has quit [Ping timeout: 264 seconds]
asmodlol has joined #ruby
jackneill has joined #ruby
mojjojo has quit [Quit: mojjojo]
jinie_ is now known as jinie
Davey has joined #ruby
claymore has joined #ruby
mojjojo has joined #ruby
fgo has quit [Remote host closed the connection]
<ocx> how can i do progressive upload in ruby?
<ocx> like if the connection breaks, resume
<pontiki> how is it done outside ruby?
<ocx> dunno
<pontiki> me neither
_Andres has joined #ruby
Kneferilis has joined #ruby
TMM has joined #ruby
parzo has joined #ruby
kenneth has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
heftig has joined #ruby
mailo has joined #ruby
greenarrow has quit [Quit: 500]
roolo has quit [Read error: Connection reset by peer]
jlebrech has joined #ruby
yacks has quit [Quit: Leaving]
sikor_sxe has quit [Remote host closed the connection]
noop has joined #ruby
yasushi has joined #ruby
marr has joined #ruby
greenarrow has joined #ruby
Davey is now known as grumbles
mojjojo has quit [Quit: mojjojo]
shaunbaker has joined #ruby
rdark has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kenneth has joined #ruby
yasushi has quit [Remote host closed the connection]
ephemerian has joined #ruby
fgo has quit [Remote host closed the connection]
JasmeetQA1 has quit [Read error: Connection reset by peer]
JasmeetQA has joined #ruby
michael_lee has joined #ruby
michael_lee has quit [Max SendQ exceeded]
thomasxie has joined #ruby
gianlucadv has joined #ruby
Sid05 has joined #ruby
nari has quit [Ping timeout: 264 seconds]
jackneill has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
withnale has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
jhass is now known as jhass|off
zeeraw has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
sk87 has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
klaut has joined #ruby
Sid05 has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
raphaelivan has joined #ruby
meatherly has joined #ruby
_bart has quit []
ndrei has quit [Ping timeout: 260 seconds]
noop has quit [Ping timeout: 260 seconds]
meatherly has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
ndrei has joined #ruby
rm_ has joined #ruby
jxport has joined #ruby
AlSquirrel has joined #ruby
obs has quit [Quit: Konversation terminated!]
_tpavel has quit [Quit: Leaving]
stonevil has joined #ruby
Hiall has quit [Quit: hiall]
jackneill has joined #ruby
withnale has joined #ruby
rm_ has quit [Ping timeout: 260 seconds]
vlad_sta_ has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
vlad_sta_ has quit [Remote host closed the connection]
vlad_st__ has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
agent_white has quit [Quit: goodnight all]
phansch has joined #ruby
mailo has quit [Quit: Leaving...]
fgo has joined #ruby
Ziarkaen has joined #ruby
aagdbl has joined #ruby
roolo has joined #ruby
SloggerKhan has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 260 seconds]
kitak has quit [Read error: Connection reset by peer]
eka has joined #ruby
kitak has joined #ruby
SloggerKhan has joined #ruby
havenwood has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
limited_cosmos is now known as jojon
torstein has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
marr has quit [Ping timeout: 250 seconds]
stonevil has joined #ruby
noop has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
VTLob has joined #ruby
kung has joined #ruby
kung has quit [Client Quit]
wildroman2 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
jrist has quit [Ping timeout: 272 seconds]
gizmore has quit [Ping timeout: 272 seconds]
<krz> is it normal if i did 2/3 = 0? and i need to do 2.to_f / 3 ?
<workmad3> krz: 2/3 does integer division, so yes '0' is normal there
<workmad3> krz: you can do '2.fdiv(3)' though
<krz> oh neat fdiv
stonevil has quit [Quit: Computer has gone to sleep.]
Zunonia_ has quit [Quit: Computer has gone to sleep.]
stonevil has joined #ruby
chandras10 has joined #ruby
yacks has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
mengu has quit [Remote host closed the connection]
bleak has quit [Ping timeout: 248 seconds]
_Andres has quit [Read error: Connection reset by peer]
garybrett has joined #ruby
timonv has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Steven__ has joined #ruby
wildroman2 has joined #ruby
sparrovv has joined #ruby
jrist has joined #ruby
Hiall has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gja has quit [Quit: This computer has gone to sleep]
sk87 has joined #ruby
pdtpatrick has joined #ruby
Zai00 has joined #ruby
Hanmac1 has joined #ruby
xlogic has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
hukl has joined #ruby
fgo has quit [Remote host closed the connection]
dangerousdave has joined #ruby
zeeraw has joined #ruby
yasushi has joined #ruby
estebanrules has joined #ruby
estebanrules has quit [Remote host closed the connection]
OdNairy has joined #ruby
<Tokenizer> how can I get the list of all class constants .... like Foo::BAR , etc etc .... i know instance_variables && class_variables .... but how do i get the list of constants?
Wolland has joined #ruby
<Tokenizer> Class.constants returns all including the parent's constants, i just want the child class'es
Sid05 has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
estebanrules has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
estebanrules has quit [Client Quit]
Sid05 has quit [Ping timeout: 272 seconds]
banister has joined #ruby
fgo has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
grumbles is now known as Davey
dorei has joined #ruby
meatherly has joined #ruby
chandras10_ has joined #ruby
chandras10 has quit [Ping timeout: 245 seconds]
sparrovv has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ace_striker has quit [Ping timeout: 245 seconds]
aagdbl0 has joined #ruby
ktosiek_ is now known as ktosiek
sensen has quit [Quit: leaving]
sparrovv has joined #ruby
meatherly has quit [Ping timeout: 260 seconds]
aagdbl has quit [Ping timeout: 272 seconds]
sk87 has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
mehlah has quit [Quit: Leaving...]
bleak has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
Steven__ has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
fgo has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
Hanmac has joined #ruby
Wolland has joined #ruby
estebanrules has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
jhass|off is now known as jhass
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chandras10_ has quit [Quit: Now if you will excuse me, I have a giant ball of oil to throw out my window]
Rollabunna has quit [Remote host closed the connection]
torzech_ has quit [Ping timeout: 265 seconds]
torzech has joined #ruby
_Andres has joined #ruby
browndawg has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
maroloccio has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
timonv_ has quit [Remote host closed the connection]
dachi has quit [Quit: ...]
stonevil has joined #ruby
ace_striker has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
yasushi has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
wildroman2 has quit [Remote host closed the connection]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
Ziarkaen has quit [Ping timeout: 250 seconds]
lkba has joined #ruby
stonevil has quit [Ping timeout: 272 seconds]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
vlad_st__ has quit [Remote host closed the connection]
browndawg has joined #ruby
wildroman2 has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
aryaching_ has joined #ruby
wildroman2 has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
GreatSUN has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
aryaching has quit [Ping timeout: 250 seconds]
max96at has joined #ruby
<GreatSUN> rehi
top4o has joined #ruby
browndawg has joined #ruby
sparrovv has quit [Remote host closed the connection]
mehlah has joined #ruby
browndawg has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby
jrobertfox has quit [Remote host closed the connection]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
mmealling has quit [Remote host closed the connection]
fgo has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
fgo has quit [Read error: No route to host]
browndawg has quit [Max SendQ exceeded]
angusiguess has joined #ruby
fgo has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
Steven__ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
fgo has quit [Ping timeout: 272 seconds]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
timonv has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
gja has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
Sid05 has joined #ruby
arturaz has quit [Remote host closed the connection]
browndawg has joined #ruby
Rollabunna has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
Sid05 has quit [Read error: Operation timed out]
ConstantineXVI has quit [Ping timeout: 265 seconds]
koalallama has quit [Ping timeout: 246 seconds]
zeeraw has quit [Remote host closed the connection]
jcarouth has quit [Ping timeout: 250 seconds]
Jb___ has joined #ruby
pabloh has quit [Quit: Saliendo]
koalallama has joined #ruby
shahmy has joined #ruby
meatherly has joined #ruby
nari has joined #ruby
shahmy has left #ruby [#ruby]
Columcil1e has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
fgo has joined #ruby
barratt has joined #ruby
karupanerura is now known as zz_karupanerura
Columcille has joined #ruby
koalallama has quit [Ping timeout: 246 seconds]
meatherly has quit [Ping timeout: 265 seconds]
cout has quit [Ping timeout: 252 seconds]
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0/20140127194636]]
ocx has quit [Ping timeout: 245 seconds]
cout has joined #ruby
jcarouth has joined #ruby
gr33n7007h has joined #ruby
Al___ has joined #ruby
ConstantineXVI has joined #ruby
jinie has quit [Ping timeout: 246 seconds]
endash has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Lorn has joined #ruby
eka has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
relix has joined #ruby
sk87 has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
dukz has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 245 seconds]
ritek has quit [Changing host]
ritek has joined #ruby
ritek has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
dachi has joined #ruby
koalallama has joined #ruby
kitak has quit [Remote host closed the connection]
tibounise has joined #ruby
<tibounise> hi !
soulcake has joined #ruby
jinie has joined #ruby
rmorello has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
chrisseaton has joined #ruby
mojjojo has joined #ruby
fgo has quit [Remote host closed the connection]
havenwood has joined #ruby
maoko has joined #ruby
dachi has quit [Quit: ...]
ndrei has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
hema3 has joined #ruby
tedstriker has joined #ruby
stonevil has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
ndrei has quit [Ping timeout: 248 seconds]
jkamenik has joined #ruby
RaCx has quit [Ping timeout: 250 seconds]
RaCx has joined #ruby
dachi has joined #ruby
bean has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
knigitz has quit [Ping timeout: 252 seconds]
knigitz has joined #ruby
endash has quit [Quit: endash]
endash has joined #ruby
ace_striker has quit [Ping timeout: 245 seconds]
yangfinder has joined #ruby
ndrei has joined #ruby
Wolland has quit [Remote host closed the connection]
razibog has joined #ruby
Xeago has quit [Remote host closed the connection]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
yangfinder has left #ruby ["Leaving"]
Mon_Ouie has quit [Read error: Operation timed out]
bthesorceror has joined #ruby
yalue has joined #ruby
griffindy has joined #ruby
Virtualize|away has joined #ruby
<Hiall> Trying to do a maths response but based upon form data so my operator is a string. Is there a way of achieving this? http://paste2.org/tLdx9GE3
Czupa has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
yasushi has joined #ruby
larrybotha has joined #ruby
hema3 is now known as tt1187
tt1187 has left #ruby [#ruby]
ndrei has quit [Ping timeout: 260 seconds]
v0n has joined #ruby
obs has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sk87 has quit [Client Quit]
larrybotha has quit [Client Quit]
kevinykchan has joined #ruby
ndrei has joined #ruby
Sid05 has joined #ruby
kevinykc_ has joined #ruby
Wolland has joined #ruby
MattStratton has joined #ruby
browndawg has quit [Quit: Leaving.]
Steven__ has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
endash has quit [Quit: endash]
arietis has joined #ruby
kevinykchan has quit [Ping timeout: 245 seconds]
Sid05 has quit [Read error: Operation timed out]
stryek has quit [Ping timeout: 260 seconds]
ElCapitanMarklar has joined #ruby
kevinykchan has joined #ruby
RaCx has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
RaCx has joined #ruby
kevinykc_ has quit [Ping timeout: 260 seconds]
iMe_away is now known as iMe
mforrester has joined #ruby
<jmaister> hiall: check my comment
danshultz has joined #ruby
[krisbulman] is now known as krisbulman
meatherly has joined #ruby
ctp has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
e^0 has joined #ruby
bthesorceror has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meatherly has quit [Ping timeout: 248 seconds]
pedda has joined #ruby
rm_ has joined #ruby
ndrei has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
ktun has joined #ruby
dachi has quit [Quit: ...]
RoxasShadowRS has joined #ruby
jhass is now known as jhass|off
Tokenizer has left #ruby [#ruby]
rm_ has quit [Ping timeout: 245 seconds]
<Hiall> jmaister: savage thanks
himsin has quit [Quit: himsin]
nZac has joined #ruby
dachi has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
mavcunha has joined #ruby
<jmaister> raging pleasure
arietis has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
JasmeetQA has quit [Ping timeout: 265 seconds]
iMe is now known as iMe_away
Squarepy has joined #ruby
IceyEC has joined #ruby
jzig has joined #ruby
alexherbo2 has quit [Ping timeout: 252 seconds]
DaniG2k has joined #ruby
dx7 has joined #ruby
marcoecc has joined #ruby
zcreative has joined #ruby
dblessing has joined #ruby
Monk_code has quit [Read error: Connection reset by peer]
Monk_code has joined #ruby
RaCx has quit [Ping timeout: 252 seconds]
mojjojo has quit [Quit: mojjojo]
ElCapitanMarklar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dachi> who made crystal? was it ruby man?
<dachi> :|
Monk_code has quit [Read error: No route to host]
Monk_code has joined #ruby
RaCx has joined #ruby
lpvn has joined #ruby
jhass|off is now known as jhass
gianlucadv has quit [Quit: Ex-Chat]
ndrei has joined #ruby
razibog has quit [Ping timeout: 260 seconds]
aagdbl0 is now known as aagdbl
fgo has joined #ruby
ffranz has joined #ruby
iMe_away is now known as iMe
sk87 has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
tedstriker has quit [Quit: I have grown tired of your feeble excuses]
sk87 has quit [Client Quit]
aagdbl has quit [Quit: This computer has gone to sleep]
fgo has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
kaliya has joined #ruby
chipotle has quit [Quit: cya]
stringoO has joined #ruby
pen has quit [Remote host closed the connection]
arietis has joined #ruby
vpretzel has joined #ruby
obs has quit [Quit: Konversation terminated!]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
pdtpatrick has joined #ruby
atmosx has joined #ruby
evilbug has joined #ruby
pu22l3r has joined #ruby
<pontiki> and g'day!
vlad_starkov has quit [Ping timeout: 272 seconds]
<atmosx> hello
zachallett has joined #ruby
vlad_starkov has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
mark_locklear has joined #ruby
mojjojo has joined #ruby
wildroman2 has quit [Remote host closed the connection]
browndawg has joined #ruby
wildroman2 has joined #ruby
agjacome has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
bal has quit [Quit: bal]
wildroman2 has joined #ruby
dblessing has quit [Quit: dblessing]
Sid05 has joined #ruby
cjk101010 has quit [Ping timeout: 252 seconds]
wildroman2 has quit [Read error: Connection reset by peer]
bal has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
mmcclimon has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
wildroman2 has joined #ruby
dblessing has joined #ruby
atmosx has quit [Ping timeout: 248 seconds]
dukz has joined #ruby
cjk101010 has joined #ruby
Sid05 has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
jsilver_ has joined #ruby
jsilver has quit [Read error: Connection reset by peer]
dukz_ has joined #ruby
kaldrenon has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meatherly has joined #ruby
dukz has quit [Ping timeout: 250 seconds]
sk87 has joined #ruby
bthesorceror has joined #ruby
parzo has quit [Ping timeout: 260 seconds]
kpshek has joined #ruby
m8 has joined #ruby
dukz_ has quit [Ping timeout: 248 seconds]
pu22l3r has quit [Remote host closed the connection]
mavcunha has quit [Quit: Computer has gone to sleep.]
meatherly has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
raphaelivan has quit [Quit: Leaving.]
iMe is now known as iMe_away
stonevil has joined #ruby
havenwood has joined #ruby
rm_ has joined #ruby
angusiguess has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
greenarrow has quit [Quit: 500]
gianlucadv has joined #ruby
rm_ has quit [Ping timeout: 260 seconds]
gianlucadv has quit [Client Quit]
relix has joined #ruby
makara has quit [Ping timeout: 260 seconds]
Ninjex has joined #ruby
Czupa has quit [Remote host closed the connection]
stonevil has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
jobewan has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
stonevil has joined #ruby
dangerousdave has joined #ruby
dweeb has joined #ruby
mjs2600_ has joined #ruby
mary5030 has joined #ruby
lele has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
nZac has quit [Ping timeout: 248 seconds]
Speed has quit [Ping timeout: 260 seconds]
wildroman2 has quit [Remote host closed the connection]
dukz has joined #ruby
lele has joined #ruby
dukz has quit [Read error: Connection reset by peer]
nZac has joined #ruby
Speed has joined #ruby
Speed is now known as Guest38691
dukz has joined #ruby
dkamioka has joined #ruby
rubyracer has joined #ruby
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
snath has quit [Ping timeout: 260 seconds]
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
TheShaun has left #ruby ["Textual IRC Client: www.textualapp.com"]
stryek has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Guest38691 has quit [Ping timeout: 260 seconds]
banister has joined #ruby
luke has joined #ruby
wildroman2 has joined #ruby
luke is now known as Guest58349
jerius has joined #ruby
tonni has quit [Read error: Operation timed out]
agjacome has quit [Ping timeout: 265 seconds]
m8 has quit [Quit: Sto andando via]
angusigu1ss has joined #ruby
Guest58349 has quit [Client Quit]
nszceta has joined #ruby
barratt has quit [Ping timeout: 260 seconds]
jzig has joined #ruby
pen has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
Steven__ has joined #ruby
greenarrow has joined #ruby
dukz_ has joined #ruby
im0b__ is now known as im0b
ndrei has quit [Ping timeout: 272 seconds]
aryaching_ has quit [Quit: sayonara! ^_^]
pen has quit [Read error: Operation timed out]
ndrei has joined #ruby
Steven__ has quit [Read error: Operation timed out]
dukz has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #ruby
kure_ has joined #ruby
OdNairy has quit [Read error: Connection reset by peer]
OdNairy has joined #ruby
thomasxie has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
Guest38691 has joined #ruby
kure has quit [Ping timeout: 260 seconds]
angusigu1ss has quit [Ping timeout: 252 seconds]
Ziarkaen has joined #ruby
ayaz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
barratt has joined #ruby
tibounise has quit [Quit: WeeChat 0.4.2]
<AntelopeSalad> question on creating gems, is it normal to put all of your related files in lib , or lib/gemname? (same location as version.rb)
Guest38691 has quit [Read error: No route to host]
_Andres has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
maximski has joined #ruby
dkamioka has quit [Remote host closed the connection]
dukz_ has quit [Read error: Connection reset by peer]
yeticry_ has joined #ruby
dukz has joined #ruby
pierre1__ has joined #ruby
ktun has quit [Remote host closed the connection]
devdazed has joined #ruby
karl___ has joined #ruby
<dorei> AntelopeSalad: i depends on how u want to 'require' them
Jake232 has joined #ruby
tonni has joined #ruby
pen has joined #ruby
mary5030 has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<AntelopeSalad> dorei: is there no standard?
<troessner> AntelopeSalad, there is
duggiefresh has joined #ruby
<AntelopeSalad> most people use lib/gemname.rb as an entry point to their gem right?
<troessner> just do a "bundle gem foobar" AntelopeSalad
<AntelopeSalad> but do they keep the root lib dir empty other than that file?
<troessner> and look at the directory structure
<AntelopeSalad> i did troessner, it doesn't mention anything about gem related files
<AntelopeSalad> other than the standard boilerplate stuff
yeticry has quit [Ping timeout: 250 seconds]
<troessner> AntelopeSalad, no idea what you mean with "gem-related" files? code?
<dorei> AntelopeSalad: when u install the gem, the lib/ becomes part of the $:
nZac has quit []
<AntelopeSalad> well, let's say you write some code and it happens to be 5 classes
<AntelopeSalad> and you have it broken up into 5 files
grayWolf has joined #ruby
maximski has quit []
grayWolf has quit [Changing host]
grayWolf has joined #ruby
<AntelopeSalad> would you toss them all in foo/lib/* or foo/lib/foo/*?
grayWolf is now known as Speed
colli5ion has joined #ruby
<dorei> AntelopeSalad: foo/lib/foo/* seems better
<troessner> foo/lib/foo/ AntelopeSalad
<AntelopeSalad> because foo/lib/foo is where version.rb is and foo/lib is where the boilerplated foo.rb is located
<AntelopeSalad> ok, so treat lib/foo as the root of your gem and lib/foo.rb as the entry point?
<dorei> AntelopeSalad: if they're under foo/lib/foo/* u require them as 'require /foo/some_class' so no conflicts
pen has quit [Ping timeout: 260 seconds]
<AntelopeSalad> makes sense, thanks
<troessner> AntelopeSalad, yes, exactly
Ziarkaen has quit [Read error: Operation timed out]
<AntelopeSalad> i didn't even think about conflicts
Ziarkaen has joined #ruby
Sid05 has joined #ruby
MrPopinjay has joined #ruby
zcreative has quit [Ping timeout: 252 seconds]
<MrPopinjay> Hi guys. Can anyone explain this hash behaviour to me please? http://bpaste.net/show/pgVrb3E1MCMJ2Ww8WFOE/ Thank you
Markvilla has joined #ruby
dukz has quit [Read error: Connection reset by peer]
nZac has joined #ruby
Megtastique has joined #ruby
zcreative has joined #ruby
dukz has joined #ruby
ndrei has joined #ruby
lfox has joined #ruby
rm_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Sid05 has quit [Ping timeout: 248 seconds]
enape_101 has joined #ruby
acumiskey has quit [Ping timeout: 272 seconds]
barratt has quit [Quit: Leaving...]
Ziarkaen` has joined #ruby
<AntelopeSalad> btw is it normal to namespace things in a module if you don't really do "classy" things? i have a grab bag of functions that i want to break out into separate files
danijoo has quit [Read error: Connection reset by peer]
ephemerian has quit [Read error: Operation timed out]
<AntelopeSalad> the functions have no state and making an instance of them wouldn't make sense AFAIK
danijoo has joined #ruby
Ziarkaen has quit [Ping timeout: 246 seconds]
meatherly has joined #ruby
pixelgremlins has joined #ruby
<Ninjex> I definitely need to learn how to designed a good programming structure
stonevil has joined #ruby
<troessner> AntelopeSalad, yes, this is normal
<troessner> however this also indicates that you havent thought enough about proper structuring your code
ndrei has quit [Ping timeout: 260 seconds]
<troessner> if you have such a "grab bag" module, that is
<Ninjex> If someone doesn't mind: https://github.com/Ninjex/Confabulation I could use some insight on what I can do better design wise. I know the file check_command.rb is a fluttered right now, and I will work on scaling it. I'm more interested in things to improve design wise
MrPopinjay has quit [Quit: Lost terminal]
machindo has joined #ruby
Kricir has joined #ruby
dukz has quit [Read error: Connection reset by peer]
<AntelopeSalad> troessner: well, the first thing i did was make it work and now i have 1 file with about 15 private "helper" methods
ctp has quit [Quit: Linkinus - http://linkinus.com]
<AntelopeSalad> next step was to break up into multiple namespaced files
<Ninjex> Also, in case you can't tell by the code it's an IRC bot
dukz has joined #ruby
pixelgremlins_ba has quit [Ping timeout: 272 seconds]
<machindo> Is this the right place to ask about an dvm install issue?
<machindo> *rvm
TK|2 is now known as Karunaomn
Karunaomn is now known as Karunamon
Es0teric has joined #ruby
dukz has quit [Read error: Connection reset by peer]
meatherly has quit [Ping timeout: 250 seconds]
<Ninjex> machindo: I wouldn't know, but what is the issue?
<Ninjex> rvm should be a simple install really
tvw has quit []
<machindo> I can install it locally for single user no problems
dukz has joined #ruby
<machindo> but i'm setting up my VPS for multi-user and multi app deployments
<machindo> using recap
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
IceDragon has joined #ruby
tylersmith has joined #ruby
<machindo> so i've installed rvm as multi-user on my Debian box
<machindo> but not all the users can see the executable
<machindo> so the capsitrano tasks fail because user 'someappuser' can't execute bundle
jlast has joined #ruby
<Ninjex> hmmm
<Ninjex> I've never actually installed rvm for system wide use
Ch4rAss has quit [Ping timeout: 250 seconds]
jonah_k has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
dukz_ has joined #ruby
kate_r has quit [Ping timeout: 260 seconds]
dukz has quit [Ping timeout: 250 seconds]
razibog has joined #ruby
iMe_away is now known as iMe
machindo has quit [Ping timeout: 246 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
machindo has joined #ruby
axl_ has joined #ruby
mary5030 has joined #ruby
Monk_code has quit []
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
barratt has joined #ruby
stonevil has joined #ruby
dukz_ has quit [Remote host closed the connection]
dukz has joined #ruby
dukz has quit [Remote host closed the connection]
stonevil has quit [Client Quit]
Guest58167 has joined #ruby
tvw has joined #ruby
maasha has joined #ruby
wildroman2 has quit [Remote host closed the connection]
diegovio1 has joined #ruby
speakingcode has joined #ruby
<maasha> StringIO and pp behaves funny - I get <"foobar"> expected but was <"\"foobar\"\n">. https://gist.github.com/maasha/584e57ed6493aa1cdfa2 ???
mengu has quit [Remote host closed the connection]
ayaz_ has joined #ruby
ayaz_ has quit [Remote host closed the connection]
Guest58167 has quit [Remote host closed the connection]
carlyle has joined #ruby
<maasha> Ah, pp wraps a string in "" to indicate it is a string.
<maasha> nm
endash has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
axl_ has quit [Quit: axl_]
mudmaster has joined #ruby
mavcunha has joined #ruby
browndawg has quit [Ping timeout: 246 seconds]
Steven__ has joined #ruby
slowcon has joined #ruby
mudmaste_ has joined #ruby
marcgg has quit [Ping timeout: 252 seconds]
asmodlol has quit [Remote host closed the connection]
dkamioka has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tagrudev has quit [Quit: Me = Awesome]
sk87 has joined #ruby
mudmaster has quit [Ping timeout: 245 seconds]
axl_ has joined #ruby
wildroman2 has joined #ruby
mgberlin has joined #ruby
wallerdev has joined #ruby
wildroman2 has quit [Remote host closed the connection]
BWestOz has joined #ruby
<BWestOz> hello
wildroman2 has joined #ruby
stonevil has joined #ruby
ndrei has joined #ruby
<BWestOz> hello wildroman2
<BWestOz> Any ruby devs here?
BWestOz has left #ruby [#ruby]
gianlucadv has joined #ruby
iMe is now known as iMe_away
stonevil has quit [Client Quit]
RaCx has quit [Quit: Computer has gone to sleep.]
freezey has joined #ruby
Steven__ has quit [Remote host closed the connection]
mgberlin has quit [Client Quit]
Steven__ has joined #ruby
havenwood has joined #ruby
RaCx has joined #ruby
noop has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
pen has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
gianlucadv has quit [Client Quit]
gianlucadv_ has joined #ruby
heftig has quit [Quit: Quitting]
Ziarkaen` has quit [Ping timeout: 246 seconds]
gja has joined #ruby
hamakn_ has quit [Remote host closed the connection]
<sdelmore> I'm a bit of a newbie but might be able to help. What's up BWestOz?
pen has quit [Read error: Connection reset by peer]
Steven__ has quit [Read error: Connection reset by peer]
gianlucadv_ has quit [Client Quit]
pen has joined #ruby
pochemu has joined #ruby
hamakn has joined #ruby
evilbug has quit [Quit: Leaving]
alainus has left #ruby ["Leaving"]
Steven__ has joined #ruby
browndawg has joined #ruby
pen has quit [Read error: Connection reset by peer]
evilbug has joined #ruby
mansi has joined #ruby
<workmad3> sdelmore: he ran away
RaCx has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Xeago_ has joined #ruby
Steven__ has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 245 seconds]
jonah_k has quit [Remote host closed the connection]
x77686d has joined #ruby
octoberry has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
stonevil has joined #ruby
marcgg has joined #ruby
_bart has joined #ruby
xlogic_ has joined #ruby
GreatSUN has quit [Ping timeout: 245 seconds]
xlogic has quit [Read error: Connection reset by peer]
clamstar has joined #ruby
stonevil has quit [Client Quit]
tjr9898 has joined #ruby
baroquebobcat has joined #ruby
pde2 has joined #ruby
santiago__ has joined #ruby
santiago__ is now known as loc22
dx7 has quit [Remote host closed the connection]
momomomomo has joined #ruby
dx7 has joined #ruby
loc22 has quit [Client Quit]
pde2 has quit [Quit: leaving]
Slavox is now known as Slavox|AFK
rayners has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
chrisja has joined #ruby
DanBoy has joined #ruby
Sid05 has joined #ruby
Fire-Dragon-DoL has joined #ruby
dx7 has quit [Ping timeout: 272 seconds]
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
Solnse has joined #ruby
iMe_away is now known as iMe
Cache_Money_ has joined #ruby
yasushi has quit [Remote host closed the connection]
stonevil_ has joined #ruby
meatherly has joined #ruby
jprovazn has quit [Quit: Leaving]
stonevil_ has quit [Client Quit]
mikepack has joined #ruby
Sid05 has quit [Ping timeout: 260 seconds]
kpshek has quit []
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thesheff17 has quit [Ping timeout: 246 seconds]
octoberry has quit [Ping timeout: 260 seconds]
tonni has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
sailias has joined #ruby
meatherly has quit [Read error: Operation timed out]
DaniG2k has quit [Quit: leaving]
geggam has joined #ruby
sambao21 has joined #ruby
razibog has quit [Read error: Operation timed out]
pochemu has quit [Read error: Connection reset by peer]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
Hamburglr has joined #ruby
sambao21 has quit [Client Quit]
IceDragon has joined #ruby
Serpent7776 has joined #ruby
clov3r has joined #ruby
axsuul has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
stonevil_ has joined #ruby
maasha has quit [Ping timeout: 245 seconds]
thesheff17 has joined #ruby
rootshift has joined #ruby
sambao21 has joined #ruby
<ghr> Anyone used liquid (templating engine)? Am I missing something here? http://pastie.org/private/j1wfmzqje8obffd6i3aisg
dethkrieg has joined #ruby
senj has joined #ruby
acrussell has joined #ruby
<dethkrieg> Good design question: In Ruby, should you declare all instance variables in your initialize, even if initalize does nothing to them at the time?
pen has joined #ruby
<dethkrieg> so the variable may be: @names_array = Array.new
<dethkrieg> and later you add to that array in the class functions
<jhass> if all you do is initializing them with nil... I wouldn't do that. Ruby does it already for you
oso|away is now known as oso96_2000
<jhass> @names = [] is a good thing to do in an initializer though
<dethkrieg> okay
<jhass> instead of doing something like (@names ||= []) << bar later or whatever you consider the alternative to that
<dethkrieg> right
<dethkrieg> plus, the class method add_name may never get called, so @names will be an empty array instead of nil
yarou has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<dethkrieg> thanks
rayners has quit [Read error: No route to host]
rootshift has quit [Ping timeout: 250 seconds]
sk87 has joined #ruby
pierre1__ has quit [Ping timeout: 246 seconds]
Macaveli has quit [Ping timeout: 246 seconds]
bean has joined #ruby
obs has joined #ruby
<Ninjex> If someone doesn't mind: https://github.com/Ninjex/Confabulation I could use some insight on what I can do better design wise. I know the file check_command.rb is a fluttered right now, and I will work on scaling it. I'm more interested in things to improve design wise
rayners has joined #ruby
bean has quit [Client Quit]
snath has joined #ruby
pen has quit [Ping timeout: 265 seconds]
<jhass> don't use require './', setup your $LOAD_PATH or at least use require_relative
gigetoo has quit [Remote host closed the connection]
razibog has joined #ruby
<Ninjex> Alright, bad practice I assume
<jhass> yeah
<Ninjex> What about using autoload?
diegovio1 is now known as diegoviola
<jhass> I don't see many people do that
<jhass> I guess that's mainly because it's still somewhat unclear whether it's threadsafe
pwh has joined #ruby
gigetoo has joined #ruby
asmodlol has joined #ruby
<Ninjex> I see, I agree I don't see many people use it
bal has quit [Quit: bal]
<Ninjex> Any other things you see that I am doing out of norm? I'm 100% self taught and have been programming < 2 years
<jhass> Okay, next point: I think that classes should require their dependencies at the top, not the parents their childs at the bottom, in your case core.rb (which is bot.rb since it contains the Bot class) should require constructor (which configuration.rb since it contains the Configuration class)
kpshek has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<Ninjex> Ahhh, I see
<jhass> Also in this case I'd probably don't let Bot inherit from Configuration but instead take one as a parameter and access it
<jhass> Bot isn't really a special type of Configuration but rather a user of it
terrellt has joined #ruby
mradmacher has quit [Quit: Lost terminal]
_Andres has joined #ruby
kevind has joined #ruby
<Ninjex> hrmmm, I'm not quite sure how I would set that up
soulcake has quit [Ping timeout: 260 seconds]
<jhass> class Bot; def initialize(configuration); @configuration = configuration; end; end; Bot.new(Configuration.new(...))
<jhass> you never seem to close your TCPSocket btw
terrellt_ has joined #ruby
<jhass> if you don't mind a few style notes:
<Ninjex> Ahhhh, yes I forgot to close the socket
<Ninjex> and yeah, sure
tvw has quit []
<Ninjex> I'm taking notes
NaStYdoG has joined #ruby
dx7 has joined #ruby
<lpvn> Ninjex, it seems you're developing a project you intend to be public, I'd start with a README file and a good project description
<jhass>   'PING' == @input[0] ? send_data("PONG #{@input[1]}") : nil # I don't think that using ternary for control flow is nice, this is a perfect example since you have to add : nil to the end, use the modifer if instead: do_this if condition
terrellt has quit [Disconnected by services]
terrellt_ is now known as terrellt
bthesorceror has quit [Remote host closed the connection]
jonah_k has joined #ruby
tylersmith has quit [Remote host closed the connection]
<jhass> I don't see many people using if then, especially since most of yours could be rewritten with the aforementioned modifier if
razibog has quit [Ping timeout: 260 seconds]
<Ninjex> I actually didn't know that there was an alternative for if then like so
tylersmith has joined #ruby
mojjojo has quit [Quit: mojjojo]
yeticry has joined #ruby
bthesorceror has joined #ruby
<Ninjex> So, that makes complete since
<jhass> in Bot none of your instance variables seem to leave the method, so make them locals
dawkirst has quit [Ping timeout: 260 seconds]
pwh has quit []
momomomomo has quit [Quit: momomomomo]
mforrester has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
<Ninjex> I think I was having issues passing some data around to functions inside the /access/ folder
<jhass> @state seems to contain numbers that have a special meaning for you. We call these magic values. You should separate them out to constants, enums or in ruby we prefer to use symbols for that
deception has joined #ruby
Axsuul_ has joined #ruby
freezey has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 272 seconds]
kate_r has joined #ruby
ndrei has joined #ruby
<jhass> don't use ; in real code, don't fear a few line breaks ;)
<Ninjex> @state just determines if we identified with the server yet or not, so I can def find a symbolic name for it
thams has quit [Quit: thams]
mojjojo has joined #ruby
<Ninjex> No more one liners, check
<Ninjex> well, ugly one liners
<jhass> state = :connected and state = :unconnected would be the classical example
<Ninjex> indeed
brennanMKE has quit [Remote host closed the connection]
dweeb has quit [Quit: Computer has gone to sleep.]
yeticry_ has quit [Ping timeout: 272 seconds]
mgberlin has joined #ruby
bean has joined #ruby
brennanMKE has joined #ruby
intuxicated_ has joined #ruby
<Ninjex> So, passing data around to the methods, without having the data global, was giving me the whole 'undefined variable' deal
razibog has joined #ruby
<Ninjex> So should I explicitly call the variables as a param, or nay
tylersmith has quit [Ping timeout: 265 seconds]
artm_ has quit [Quit: Connection closed for inactivity]
<jhass> I think you need to use a lot more objects
Markvilla has quit [Ping timeout: 248 seconds]
Azure has joined #ruby
Kricir_ has joined #ruby
JasmeetQA has joined #ruby
pmullin has joined #ruby
<jhass> building a plugin system over top level methods seems odd, typically you'd have a Registry and each plugin a class and register that class (or an instance of it) at that registry
<AntelopeSalad> is there something special about having a module/file named 'server.rb'?
<jhass> you then would have some way to iterate over your plugins and determine whether they should proccesss the current message
baroquebobcat has joined #ruby
<jhass> AntelopeSalad: not in ruby itself
momomomomo has joined #ruby
<AntelopeSalad> i have it namespaced but for some whacky reason ruby throws an error saying "cannot load such file"
<Ninjex> Okay, I'll brainstorm that idiom and hopefully get this code looking nice
james_d_hen has joined #ruby
<jhass> Ninjex: cinchrb gives a good example for an IRC bot framework
Wolland has quit [Remote host closed the connection]
<Ninjex> I will take a peak, thanks jhass
<AntelopeSalad> i have a module being loaded successfully, i literally copy/pasted it and changed the module name from Foo to Server
yeticry_ has joined #ruby
<AntelopeSalad> and then it stopped working
fedesilva has joined #ruby
<james_d_hen> Is there a full up to date list of all % modifiers like %w, I see a lot of them listed here http://ruby-doc.org/core-2.0.0/doc/syntax/literals_rdoc.html#label-Percent+Strings but it doesn't list the ones for numbers as well. I'd ideally like to find a cheat sheet of them.
<jhass> AntelopeSalad: Server is a pretty generic name, are you sure you're not in conflict with something else in your project?
pfg has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
dseitz has joined #ruby
<AntelopeSalad> jhass: i have it namespaced to tho like: module MyApp ; module Server
Kricir has quit [Ping timeout: 245 seconds]
<AntelopeSalad> i also renamed it to module Listen , and i get the same error
<jhass> james_d_hen: that's the complete list afaik
<jhass> AntelopeSalad: you never told us the error ;)
bean has quit [Quit: Textual IRC Client: www.textualapp.com]
jonah_k has quit [Remote host closed the connection]
<AntelopeSalad> jhass: `require': cannot load such file -- server (LoadError)
yeticry has quit [Ping timeout: 260 seconds]
<AntelopeSalad> that is when i had named 'server' rather than 'listen'
<jhass> well then your server.rb isn't in your load path
<Ninjex> %q, %Q, %r, %i, %l, %w, %W, %x
pabloh has joined #ruby
mforrester has joined #ruby
Wolland has joined #ruby
<jhass> AntelopeSalad: the contained code and a files name are completely uninteresting to ruby, keeping them in sync is just for us humans ;) require only cares about the file names
bean has joined #ruby
<mjuszczak> Curious, if I'm running "bundle" as part of an instruction set but not running it as root, where is ruby installing all of these libraries/dependencies?
<AntelopeSalad> jhass: but i have another called "foo" in the same exact folder and that one is getting required successfully
<AntelopeSalad> that is the part that is driving me mad
intuxicated_ is now known as intuxicated
meatherly has joined #ruby
intuxicated has quit [Changing host]
intuxicated has joined #ruby
<jhass> mjuszczak: typically in your $GEM_HOME but with the --path option bundler supports arbitrary locations. There's also the --user-install option to gem that could be set in one of your gemrc's
vt102 has joined #ruby
<jhass> mjuszczak: also have a look at the output of gem env
dangerousdave has joined #ruby
endash has quit [Quit: endash]
<slowcon> question about getting results to print to a newline in nokogiri
baroquebobcat has quit [Quit: baroquebobcat]
<AntelopeSalad> jhass: here's a gist of the setup and issue https://gist.github.com/AntelopeSalad/8919426
rayners has quit [Remote host closed the connection]
<james_d_hen> Ninjex: yet I don't ever see %.2f
TMM has quit [Quit: Ex-Chat]
Axsuul_ is now known as axsuul
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Client Quit]
rayners has joined #ruby
rm_ has quit [Read error: Connection reset by peer]
<james_d_hen> I can find lots of lists but they all seem to be missing somethign, we just wondering if there was a reference quality list, I guess I'll just comb through parse.y
rm_ has joined #ruby
x77686d has quit [Quit: x77686d]
b00stfr3ak has joined #ruby
enape_101 has quit [Ping timeout: 246 seconds]
froy has joined #ruby
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
<jhass> james_d_hen: %.2f is not a literal, it's a formatter, check Kernel#sprintf
<AntelopeSalad> oh man, i think i see the problem, so sick
<Ninjex> It's like c/c++ printf options
<james_d_hen> jhass: thanks!
<AntelopeSalad> i'm not sure how to fix it tho :<
ndrei has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
carlyle has quit [Remote host closed the connection]
yeticry_ has quit [Ping timeout: 252 seconds]
<AntelopeSalad> if you have a bunch of files in the same directory, are you not able to require them by their relative file name?
danijoo has joined #ruby
mansi_ has joined #ruby
<Ninjex> you are
mansi has quit [Read error: Connection reset by peer]
<havenwood> slowcon: #puts will add a "\n" to the string if it doesn't end with one, but if it already does it won't add another
<AntelopeSalad> Ninjex: what if the files are double namespaced by a module?
<jhass> AntelopeSalad: you are, though the preferred method is to add that directory to your $LOAD_PATH
rayners has quit [Remote host closed the connection]
<AntelopeSalad> jhass: look at my gist please
<havenwood> slowcon: `puts "#{genre}\n\n#{subgenre}"` or `puts genre; puts; puts subgenre`
Kricir_ has quit [Remote host closed the connection]
<jhass> AntelopeSalad: again, require looks at filenames, not at the contents
joelbrewer has joined #ruby
<AntelopeSalad> when i do that, server and foo are both not found -- it just so happens foo was included by a previous module i'm using
<AntelopeSalad> so i only get the error with server
<jhass> AntelopeSalad: and your gist won't reproduce your problem, it'll yield the error for both requires
<havenwood> slowcon: or `puts genre, "\n", subgenre`
<AntelopeSalad> well, the problem seems to be with how i'm requiring the files
<AntelopeSalad> i can't use a relative path
<jhass> AntelopeSalad: just setup $LOAD_PATH
<AntelopeSalad> do i need to require them with the module namespaces?
<slowcon> havenwood: the genre variable only lists one result every time. the subgenre will result many. trying to breakup just the subgenres
<AntelopeSalad> what is $LOAD_PATH?
<slowcon> havenwood: let me test your suggestions
<canton7> require_relative ...; require './stuff'; add __dir__ to $LOAD_PATH
<jhass> AntelopeSalad: the array of directories require looks for files
<AntelopeSalad> this is for a gem btw
agjacome has joined #ruby
baroquebobcat has joined #ruby
<jhass> hm then gem should already add lib/ to your load path
<canton7> rubygems will add your gem's lib/ to $LOAD_PATH
<AntelopeSalad> basically all of these files are in: lib/myapp/server and lib/myapp/foo
<jhass> then require 'myapp/server' and require 'myapp/foo' should work
<joelbrewer> I just wrote a time converter from 24hr to 12hr as a programming challenge. I was wondering if someone would like to take a look at the code and provide some critique?
<AntelopeSalad> but it's a self executing file, so i've been testing it without any gem stuff at all
<AntelopeSalad> jhass: even if all 3 files live in the same directory (usage, server, foo)
<slowcon> havenwood: the results of subgenre are "ROCK AND ROLLMETALPOP PUNK"
<jhass> joelbrewer: your class variable wants to be a constant ;)
<jhass> AntelopeSalad: yes
hamakn has joined #ruby
bbloom has joined #ruby
<slowcon> havenwood: trying to get them ROCK AND ROLL(new line) METAL(new line) POP PUNK(new line)
<AntelopeSalad> jhass: it still says cannot load file when i do myapp/server and myapp/server
senj has quit [Quit: Sleep Now]
<joelbrewer> jhass: ahh, good!
<joelbrewer> anything else?
einarj has quit [Remote host closed the connection]
<jhass> AntelopeSalad: well because as said you don't have gem setting up the loadpath for you (yet)
<canton7> AntelopeSalad, $LOAD_PATH is only set right once it's installed as a gem. until then use ruby -Lpath/to/lib (at least I think it's -L...)
<havenwood> slowcon: sounds to me like you want `subgenre` to be an Array of Strings not a single String then?
<AntelopeSalad> jhass: how else am i supposed to test this tho?
juni0r has quit [Ping timeout: 265 seconds]
rayners has joined #ruby
<slowcon> havenwood: ah yes you got it
<canton7> aah no, it's -I
<jhass> joelbrewer: I'd shift the to_i into get_time_to_convert, you're repeating it a lot
<AntelopeSalad> canton7: lib/myapp/server still fails
mgberlin has quit [Quit: mgberlin]
<canton7> ruby -Ipath/to/lib then require 'myapp/server'
<mjuszczak> jhass: got it. It's weird, looks like the gems are being installed in /var/lib/gem/1.9.1/gems... but I didn't run the "bundle" command as root
<AntelopeSalad> since i'm using #!/usr/bin/env ruby , can i add the -I to that?
baroquebobcat has quit [Client Quit]
<slowcon> havenwood: i added a .split to the .text
<slowcon> havenwood: thanks for pointing that out for me
yeticry has joined #ruby
<canton7> sure, for testing only (remove it before building it as a gem)
<havenwood> slowcon: no prob, now i'm on a hunt for coffee!
ktun has joined #ruby
colli5ion has quit []
<AntelopeSalad> -I../lib would be ok then i guess?
bthesorceror has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> I think so
<AntelopeSalad> since the file is in /bin and /lib is one directory back from there
<jhass> joelbrewer: and you have some duplicated code in convert_to_twelve_hour, make them another method or at least move them behind the if/else
baroquebobcat has joined #ruby
markalanevans has quit [Quit: markalanevans]
hakunin has joined #ruby
x77686d has joined #ruby
bluenemo has quit [Remote host closed the connection]
mmcclimon has quit [Remote host closed the connection]
<Ninjex> drink all the booze **** all the things
<joelbrewer> jhass: is there a way I can do what I'm doing in convert_to_twelve_hour with a printf?
hamakn has quit [Ping timeout: 260 seconds]
hakunin_ has quit [Read error: Connection reset by peer]
<joelbrewer> jhass: lines 57 and 64 and just splicing the string and adding a colon. I wasn't sure how to do that another way..
bthesorc_ has joined #ruby
senj has joined #ruby
<AntelopeSalad> canton7: it says no such file, maybe relative paths don't work?
pietr0 has joined #ruby
Sid05 has joined #ruby
barratt has quit [Remote host closed the connection]
ahawkins has quit [Quit: leaving]
<canton7> AntelopeSalad, it might be relative to the CWD when the file is run?
rm_ has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
jzig has quit [Remote host closed the connection]
<AntelopeSalad> i tried both -I../lib and -Ilib
<Ninjex> AntelopeSalad: Did you say you got this error after renaming the file?
<jhass> joelbrewer: don't see a much smarter way, you can slice out ranges though: ts[0..1] and ts[2..3]
ephemerian has joined #ruby
rm_ has joined #ruby
vlad_starkov has joined #ruby
<AntelopeSalad> Ninjex: no, it's not that. the names match up on both sides -- it's some loading path bs error
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jzig has joined #ruby
<jhass> joelbrewer: and reduce the if / else to just doing the -= 1200, everything else is duplicated
<canton7> AntelopeSalad, if you're fed up with this, just require_relative '../lib/myapp/server' :P
momomomomo has joined #ruby
<Ninjex> [11:58:19] [CRITICAL] connection timed out to the target URL or proxy :'[[
echevemaster has joined #ruby
<jhass> joelbrewer: time = @time24; postfix = 'AM'; if time >= 1200; time -= 1200; postfix = 'PM'; end; print_stuff
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<AntelopeSalad> canton7: ok, i'll give that a shot
nemesit|znc has quit [Ping timeout: 240 seconds]
<jhass> joelbrewer: also no need to to_s on the formatter, %d accepts Fixnums just fine
jonah_k has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
obs has quit [Quit: Konversation terminated!]
relix has joined #ruby
sk87 has joined #ruby
someword has joined #ruby
carlyle has joined #ruby
<sdelmore> Can anyone point me to even a trivial example of how to use faraday to parse an xml response? I have it setup to hit an xml rest service but it returns the response as string, not xml.
<sdelmore> I know I can cast it manually, but I feel like I am using faraday_middleware incorrectly.
Kricir has joined #ruby
Sid05 has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jzig has quit [Ping timeout: 272 seconds]
mansi_ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
<joelbrewer> jhass: thanks so much!
alexherbo2 has quit [Ping timeout: 245 seconds]
Cache_Money_ has quit [Quit: Cache_Money_]
dagobah has quit [Quit: Leaving...]
<AntelopeSalad> canton7: now i get an unitialized constant error but it seems to have required the files
<canton7> cool
pmullin has quit [Quit: Textual IRC Client: www.textualapp.com]
banister has joined #ruby
terrellt_ has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<AntelopeSalad> "seems to have" as in, i didn't get an error anymore about requiring
terrellt has quit [Disconnected by services]
terrellt_ is now known as terrellt
hobodave has joined #ruby
<canton7> yeah, sounds about right
<AntelopeSalad> if we go back to the gist file, https://gist.github.com/AntelopeSalad/8919426#file-usage-rb-L9
aganov has quit [Remote host closed the connection]
<AntelopeSalad> these are the lines that throw the unitialized error
razibog has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
<canton7> you're asking it for MyApp::MyApp::Foo, I think?
pwh has joined #ruby
Kricir has quit [Remote host closed the connection]
<AntelopeSalad> canton7: that is the error yeah, it double myspaces MyApp in the error
Kricir has joined #ruby
<AntelopeSalad> *namespaces
<someword> https://paste.fedoraproject.org/75885/20519691/ - tips on how I can properly have line #4 get the key name in variable 'key_name' ?
<canton7> So, include Foo or include ::MyApp::Foo
Noldorin has joined #ruby
ndrei has joined #ruby
jonah_k has quit [Remote host closed the connection]
<AntelopeSalad> hmm
<AntelopeSalad> is ::MyApp::Foo the same as MyApp::MyApp::Foo?
meatherly has quit [Remote host closed the connection]
<canton7> ::MyApp::Foo means 'go back to the root, then go to 'MyApp' then 'Foo'
momomomomo has quit [Quit: momomomomo]
meatherly has joined #ruby
<canton7> MyApp::Foo means 'starting from where you are, go to 'MyApp', then 'Foo''
<AntelopeSalad> is that considered idiomatic ruby? and is this something i would need to do even with the proper load_path supplied by bundler?
yasushi has joined #ruby
<canton7> just include Foo
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
<AntelopeSalad> awesome, it seems to work
kirun has joined #ruby
hobodave has quit [Client Quit]
garybrett has quit [Quit: Leaving...]
<AntelopeSalad> thanks a ton, i'll stick with using just include Foo
Slavox|AFK is now known as Slavox
<canton7> someword, you'll have to break up and parse key_name yourself
<AntelopeSalad> i guess it's because i'm already in the MyApp module so it knows?
vpretzel has quit [Remote host closed the connection]
<AntelopeSalad> since all 3 files live in the same module, including it with a namespace is not necessary?
<canton7> AntelopeSalad, exactly. If you're in MyApp, you don't need to add MyApp to your includes
<someword> canton7: ok it's not just a variable interpolation problem?
<AntelopeSalad> great, all of that makes sense -- thanks again
<canton7> someword, you've asked it for hashy["['outer']['parent']['child']"] - that can be a valid key :P
vpretzel has joined #ruby
krisbulman is now known as krisbulman|food
<someword> canton7: Ya i was just wondering if some method exists for fetching the specific sub key when the key name is a variable
pabloh has quit [Ping timeout: 246 seconds]
<slowcon> havenwood: you find your coffee?
<havenwood> slowcon: indeed! :D
<slowcon> havenwood: annnnnnndddd the day has started :)
platzhirsch has joined #ruby
meatherly has quit [Ping timeout: 250 seconds]
yasushi has quit [Ping timeout: 246 seconds]
kcombs has joined #ruby
<canton7> someword, use regex to find the key names from that, then use those :P
ghr has quit [Quit: Computer has gone to sleep.]
* platzhirsch chomps at the bit
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
<someword> canton7: thanks
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
seoNinjaWarrior has joined #ruby
<joelbrewer> jhass: for some reason my "gets" call is just getting skipped over now... any reason why it isn't waiting for input?
<canton7> someword, to get you started: key_path.scan(/\['(.+?)'\]/)
maletor has joined #ruby
chipotle has quit [Quit: cya]
<jhass> joelbrewer: yeah, I guess you misunderstood me moving .to_i, here's a quickly touched up version: http://paste.mrzyx.de/pbdbd7a5a/ note that I also switched your table which was backward
<AntelopeSalad> canton7: only problem i see with this whole setup now is that my editor can't find the methods anymore
<canton7> that's your editor's problem :P
<AntelopeSalad> yeah
<joelbrewer> jhass: ahh. I see. thanks!
Es0teric has quit [Quit: Computer has gone to sleep.]
hukl has quit [Quit: Linkinus - http://linkinus.com]
alexherbo2 has joined #ruby
<AntelopeSalad> canton7: i did find a work around though, i set the lib folder as a "load stuff from here" root path
<slowcon> havenwood: adding the .split created the array i was looking for. problem is the output is not splitting the data correctly. http://pastebin.com/SxdVRpXL
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<AntelopeSalad> also i'm curious, when you guys develop gems do you just keep doing the local build step to test? so you don't have to mess with ../lib madness?
Serpent7776 has left #ruby ["Leaving"]
machindo has quit [Quit: machindo]
aspires has joined #ruby
raphaelivan has joined #ruby
Kricir has quit [Remote host closed the connection]
<jhass> ? I just have my spec/test_helper add lib to the load path
dubsteph has joined #ruby
phansch has quit [Quit: Leaving]
<joelbrewer> jhass: what are your lines 62 and 63 doing?
sk87 has joined #ruby
razibog has joined #ruby
sabooky has joined #ruby
<AntelopeSalad> jhass: what if you want to really run it? in this case it's a command line app
baroquebobcat has quit [Quit: baroquebobcat]
<jhass> joelbrewer: 62 slices the last two characters out, 63 remove those sliced out characters leaving only the hours
havenwood has quit [Remote host closed the connection]
<joelbrewer> jhass: why not [-2, -3] in 62?
tauebel has joined #ruby
pabloh has joined #ruby
havenwood has joined #ruby
madb055 has joined #ruby
<sabooky> I'm modifying a class changing it's initialize, I was wondering how do I use "super" in that case?
<sabooky> I'm not subclassing
gianlucadv has joined #ruby
<jhass> AntelopeSalad: for a commandline app I'd probably just have my bin/whatever make sure the load path's setup
momomomomo has joined #ruby
senj has quit [Ping timeout: 255 seconds]
noop has joined #ruby
<joelbrewer> jhass * [-1, -2]
<joelbrewer> ?
<AntelopeSalad> jhass: i see, i'll look into that -- thanks
sk87 has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
jlebrech has quit [Quit: Konversation terminated!]
ashepelev has joined #ruby
<AntelopeSalad> i wonder how rails is doing it because they don't have the load path in their bin file
arietis has joined #ruby
mojjojo has joined #ruby
<jhass> joelbrewer: [-2, 2] says start at the end, go back two characters, return the next two characters
ashepelev has left #ruby [#ruby]
<sabooky> If there's a better way to do this, please let me know. Basically there's SomeApi::Client, SomeApi::Job, SomeApi::Build, etc.. I can either subclass all of them, and modify Client to use my version of job, build, etc.. or I can override the classes (I need to change their initialize)
<jhass> AntelopeSalad: rails is a gem
mjs2600_ has quit [Remote host closed the connection]
<jhass> AntelopeSalad: so gem adds their lib to the load path
nvrch has quit [Quit: nvrch]
<jhass> when you have it installed
<AntelopeSalad> jhass: i figured they might have some type of load_path stuff in their bin to handle developing it
<joelbrewer> jhass: ahh. I see. I need to review the documentation. thanks again!
vlad_starkov has joined #ruby
barratt has joined #ruby
freezey has joined #ruby
<jhass> AntelopeSalad: maybe just add a wrapper (outside bin/) that does ruby -Ilib bin/yourcommand
gja has quit [Quit: This computer has gone to sleep]
havenwood has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
dubsteph has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
<AntelopeSalad> jhass: the rails bin code has $:.unshift(path)
<AntelopeSalad> googling is saying that command is key for setting the load_path
<jhass> AntelopeSalad: and only include that in your repo, not in the gem
<sabooky> Anyone know the answer to my question? or atleast what to google. I can't seem to find anything online for it.
havenwood has joined #ruby
<jhass> $: and $LOAD_PATH is the same, yeah
<AntelopeSalad> what's with their git check tho?
kobain has joined #ruby
centrx has joined #ruby
santiago has joined #ruby
<AntelopeSalad> i guess the gem does not ship with a .git folder?
<AntelopeSalad> so then if .git exists it must be a developer's version of the gem, so inject the ../lib path?
<jhass> yeah, they look whether the current directory is git repository
<jhass> yup
Kricir has joined #ruby
<AntelopeSalad> makes sense, i didn't know $: was the same as $LOAD_PATH
<AntelopeSalad> no one could just flat out guess that haha
jrobertfox has joined #ruby
santiago is now known as loc22
<jhass> yeah the globals like $: $~ $^ etc are all cryptic to me, that's why I never use the m:P
<centrx> What is the m:P global
freezey has quit [Ping timeout: 245 seconds]
<AntelopeSalad> i didn't even know $ was a global identifier until yesterday
<jhass> s/the m/them/
<slowcon> havenwood: you still around?
Uranio has joined #ruby
duggiefresh has quit [Remote host closed the connection]
gja has joined #ruby
i_s has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
philcrissman has joined #ruby
<agent_white> Mornin folks
sski has quit [Remote host closed the connection]
GinoMan has joined #ruby
mattp_ has quit [Read error: Connection reset by peer]
sski has joined #ruby
<centrx> agent_white, Have you heard of the m:P global
markalanevans has joined #ruby
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
barratt has quit [Ping timeout: 260 seconds]
m8 has joined #ruby
rh1n0 has joined #ruby
<agent_white> centrx: I have not?
seoNinjaWarrior has joined #ruby
meinside has quit [Ping timeout: 245 seconds]
<centrx> Brand new global, limited time only
duggiefresh has joined #ruby
wchun has quit [Ping timeout: 265 seconds]
Xeago_ has quit [Remote host closed the connection]
ggherdov has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<slowcon> having some trouble with the output of a string to array using split. http://pastebin.com/SxdVRpXL
havenwood has quit [Remote host closed the connection]
<slowcon> cant figure out what to use as the seperator
vlad_starkov has joined #ruby
nateberkopec has joined #ruby
ngoldman has joined #ruby
havenwood has joined #ruby
zeade has joined #ruby
gianlucadv has quit [Quit: Ex-Chat]
Xeago has joined #ruby
bedouin has quit [Ping timeout: 264 seconds]
Raboo has quit [Ping timeout: 265 seconds]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sski has quit [Ping timeout: 272 seconds]
<agent_white> centrx: wat
rh1n0 has quit [Client Quit]
Raboo has joined #ruby
mikepack_ has joined #ruby
meinside has joined #ruby
peterhu has quit [Quit: leaving]
<centrx> slowcon, That looks more like a scraping issue that a split issue
endash has joined #ruby
<jhass> if it isn't though:
<jhass> >> "HouseHard".split(/(?=[A-Z])/)
<eval-in> jhass => ["House", "Hard"] (https://eval.in/100150)
kwerle has joined #ruby
shaunbaker has quit [Remote host closed the connection]
razibog has quit [Read error: Operation timed out]
rm_ has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 250 seconds]
<jhass> but yeah, looks like a scraping issue
havenwood has quit [Ping timeout: 248 seconds]
carraroj has joined #ruby
Hobogrammer has joined #ruby
<slowcon> centrx: the element being pulled from (".subforum a") is a test string. sometimes one word, sometimes two.
moted has joined #ruby
kevind_ has joined #ruby
<slowcon> text string*
sfroehler has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
<kwerle> I'm interested in the target release timeframe for the next 2.1 bump. In specific, the one containing the fix for https://github.com/ruby/ruby/commit/e7fe564. Is there somewhere I can find out when that might be?
pfg has quit [Read error: Connection reset by peer]
ggherdov has joined #ruby
sambao21 has joined #ruby
<slowcon> jhass: is there a way I can save these results with a delimiter?
mikepack_ has quit [Ping timeout: 250 seconds]
MyStartx has joined #ruby
<jhass> slowcon: I've trouble to understand how you get that array in the first place if .subforum a contains just one or two words
echevemaster has quit [Ping timeout: 264 seconds]
sfroehler has joined #ruby
kevind has quit [Ping timeout: 245 seconds]
kevind_ is now known as kevind
endash has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
<jhass> slowcon: I think you get more than element for ".subforum a" and should iterate over them, or iterate over the common parent with ".forumtitle"
Evenix has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
mojjojo has joined #ruby
intuxicated has quit [Read error: No route to host]
Evenix is now known as Evenix
tylersmith has joined #ruby
<slowcon> jhass: there are multiple subgenres for each genre
jonah_k has joined #ruby
dubsteph has joined #ruby
roolo has quit [Quit: Leaving...]
<slowcon> jhass: for visual representation
<jhass> so you get multiple results for ".subforum a" and calling text on that just concatenated them all, try .map(&:text)
thams has joined #ruby
rm_ has joined #ruby
Sirupsen has joined #ruby
<slowcon> jhass: and there we have it :)
ndrei has joined #ruby
Sawbones has joined #ruby
<slowcon> jhass: going to read up some more on .map
<centrx> kwerle, The mailing lists would be a better bet
<slowcon> jhass:thanks man
<kwerle> Thanks.
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
greenarrow has quit [Quit: 500]
<agent_white> I wouldn't question her about it
hobodave has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
mansi has quit [Remote host closed the connection]
madb055 has quit [Read error: Connection reset by peer]
madb055 has joined #ruby
bedouin has joined #ruby
MattStratton has quit [Ping timeout: 272 seconds]
mansi has joined #ruby
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
<kwerle> Nothing explicit, but there is chatter from the likes of github.com that they are also looking for a release - http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/60526. So I'm guessing not too long. Thanks again.
mansi has quit [Ping timeout: 250 seconds]
Sid05 has joined #ruby
momomomomo has quit [Quit: momomomomo]
JasmeetQA has quit [Read error: Connection reset by peer]
blaxter has quit [Ping timeout: 260 seconds]
kwerle has quit [Quit: kwerle]
rainmanjam has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
dzhulk has joined #ruby
chrisseaton has quit [Read error: Connection reset by peer]
Sirupsen has quit [Ping timeout: 245 seconds]
krisbulman|food is now known as krisbulman
dzhulk has quit [Client Quit]
dzhulk has joined #ruby
peterhu has joined #ruby
Sid05 has quit [Read error: Operation timed out]
dx7 has quit [Remote host closed the connection]
ndrei has quit [Read error: Connection reset by peer]
mansi has joined #ruby
dx7 has joined #ruby
momomomomo has joined #ruby
jzig has joined #ruby
troyready has joined #ruby
klaut has quit [Remote host closed the connection]
mikepack has joined #ruby
havenwood has joined #ruby
dx7 has quit [Ping timeout: 245 seconds]
Tomasso has joined #ruby
pranny has joined #ruby
chrisseaton has joined #ruby
freezey has joined #ruby
mforrester has quit [Ping timeout: 260 seconds]
kaliya has quit [Quit: Lost terminal]
hobodave has quit [Quit: Computer has gone to sleep.]
meatherly has joined #ruby
enape_101 has joined #ruby
dubsteph has quit [Ping timeout: 245 seconds]
mojjojo has quit [Quit: mojjojo]
gja has quit [Quit: This computer has gone to sleep]
hobodave has joined #ruby
pwh has quit []
loc22 has quit [Read error: Connection reset by peer]
nichtdiebohne has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
tauebel has left #ruby [#ruby]
troessner has quit [Quit: Leaving]
asmodlol has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 250 seconds]
bricker`LA has joined #ruby
phansch has joined #ruby
loc22 has joined #ruby
pel_daniel has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
thams has quit [Quit: thams]
madb055 has quit [Read error: Connection reset by peer]
madb055 has joined #ruby
saarinen has joined #ruby
gnephiak has quit [Quit: Konversation terminated!]
x77686d has quit [Quit: x77686d]
S0da has quit [Read error: Connection reset by peer]
S0da has joined #ruby
mark_locklear has quit [Ping timeout: 260 seconds]
Kricir has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
lmickh has joined #ruby
mocfive has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
razibog has joined #ruby
mavcunha has quit [Quit: Computer has gone to sleep.]
nZac has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
Kricir has joined #ruby
Speed has left #ruby ["WeeChat 0.4.2"]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
<AntelopeSalad> if i have a cli app that is a gem that uses thor to call a rails generator then i would need to add_dependency 'rails' right in the gemspec right?
<AntelopeSalad> i don't want the cli app to load rails, it just calls it
x77686d has joined #ruby
mforrester has joined #ruby
browndawg has left #ruby [#ruby]
<RubyTitmouse> AntelopeSalad: what exact is the difference between "loading" and "calling?"
bean has joined #ruby
Solnse has quit [Ping timeout: 252 seconds]
blaxter_ has joined #ruby
<AntelopeSalad> RubyTitmouse: i guess nothing, it really does nothing more than run 'rails ...'
jlast has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
<AntelopeSalad> where run is a thor command
shadoi has joined #ruby
<RubyTitmouse> AntelopeSalad: one thing you can do is create a group like "install" that you can use to install gems, but that you'll never use to init bundler
kate_r has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
<AntelopeSalad> but since that command would error out without the existence of rails, it needs to add it as a regular dependency to the gem's gemspec right?
Kricir has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xuisce has quit [Quit: Account terminated by the PanicBNC Staff Team.]
tjr9898 has quit [Remote host closed the connection]
werdnativ has joined #ruby
<AntelopeSalad> RubyTitmouse: i just didn't want to load rails in memory when it loaded my gem because that wouldn't be necessary
<AntelopeSalad> it just so happens that it calls rails to do something, in the same way it might call git to clone a directory
meatherly has joined #ruby
pkrnj has joined #ruby
sputnik13 has quit [Remote host closed the connection]
jfoy has joined #ruby
Spami has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
thesheff17 has quit [Remote host closed the connection]
<havenwood> slowcon: get it figured out?
ktun has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
ktun has joined #ruby
endash has joined #ruby
endash has quit [Client Quit]
mark_locklear has joined #ruby
madb055 has quit [Quit: Konversation terminated!]
madb055 has joined #ruby
sparrovv has joined #ruby
zeade has quit [Quit: Leaving.]
alekst has joined #ruby
griffindy has joined #ruby
jonah_k has quit [Remote host closed the connection]
rubyracer has quit [Quit: Konversation terminated!]
tonni has joined #ruby
rdark has quit [Quit: leaving]
bricker`LA has quit [Ping timeout: 265 seconds]
bricker`LA has joined #ruby
mojjojo has joined #ruby
mr_red has quit [Quit: Bye :)]
pabloh has quit [Quit: Saliendo]
<mjuszczak> Is bundle the same as bundle install?
<jhass> yes
rubyracer has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pranny has quit [Read error: Connection reset by peer]
pranny has joined #ruby
saarinen has quit [Quit: saarinen]
dzhulk has quit [Ping timeout: 260 seconds]
pranny has quit [Client Quit]
mr_red has joined #ruby
jonah_k has joined #ruby
pwh has joined #ruby
saarinen has joined #ruby
madb055 has quit [Read error: Connection reset by peer]
<havenwood> but you save eight characters that you can use elsewhere or donate
LLKCKfan has joined #ruby
madb055 has joined #ruby
razibog has quit [Ping timeout: 260 seconds]
<jhass> plz dnte i al tme
mocfive has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 246 seconds]
mocfive has joined #ruby
blaxter_ has quit [Quit: foo]
duggiefresh has quit [Read error: Connection reset by peer]
asmodlol has joined #ruby
duggiefresh has joined #ruby
jhunter has quit [Quit: leaving]
madb055 has quit [Client Quit]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
madb055 has joined #ruby
Kricir has joined #ruby
pranny has joined #ruby
bricker has joined #ruby
soulcake has joined #ruby
<shevy> what
<shevy> are you drunk
bricker_ has joined #ruby
lfox has quit [Quit: ZZZzzz…]
enape_101 has quit [Ping timeout: 260 seconds]
<havenwood> shevy: no, just dealing with a shortage of characters!
shadoi has quit [Read error: Connection reset by peer]
dzhulk has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
shadoi has joined #ruby
<havenwood> shevy: consrv chrctrs!
baroquebobcat has joined #ruby
mocfive has quit [Ping timeout: 246 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<shevy> oh man
mocfive has joined #ruby
kobain has quit [Ping timeout: 248 seconds]
<dorei> many languages ommit vowels on their written form xD
<shevy> rby
carlyle has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 252 seconds]
mforrester has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Client Quit]
maletor has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
maletor has joined #ruby
baroquebobcat has joined #ruby
kobain has joined #ruby
yeticry has quit [Quit: leaving]
tjr9898 has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
loc22 has quit [Quit: Konversation terminated!]
bean has joined #ruby
Jake232 has joined #ruby
Sid05 has joined #ruby
<ddd> y u no rite smlr
<Morrolan> Mrrln? I think not.
<RubyTitmouse> The good news, few of those languages are used anymore
MyStartx has quit [Ping timeout: 245 seconds]
mudmaste_ has quit [Ping timeout: 272 seconds]
enape_101 has joined #ruby
<mjuszczak> What did I start
yeticry has joined #ruby
<shevy> What will I end
<ddd> ? dd u st?
glen has joined #ruby
<Morrolan> mjuszczak: Don't worry, that's what most discussions turn into in here. :D
<shevy> pns
<shevy> guess that word
mansi has quit [Read error: Connection reset by peer]
pu22l3r_ has joined #ruby
mr_red has quit [Quit: Bye :)]
<ddd> something tell me I should be glad you ran out of vowels
<glen> hi. i have some nested (deep) json structure (loaded by JSON.parse(STring), how to replace all "keys" not to contain spaces?
mansi has joined #ruby
Dreamer3 has quit [Ping timeout: 265 seconds]
MyStartx has joined #ruby
Sid05 has quit [Ping timeout: 250 seconds]
<mjuszczak> Morrolan: haha gotcha :)
Dreamer3 has joined #ruby
<mjuszczak> So bundle manages Rubygems, berks manages Chef cookbooks, and Librarian manages Puppet modules. hence why with chef cookbooks one sometimes uses both bundle and berks.
pu22l3r has quit [Read error: Operation timed out]
wildroman2 has quit [Remote host closed the connection]
Mapley has quit [Quit: bai!]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
mr_red has joined #ruby
tvw has joined #ruby
Mapley has joined #ruby
banister has joined #ruby
<RubyTitmouse> glen: JSON.parse doesn't return JSON, so you don't have a json structure anymore at the point of your question
Hiall has quit [Ping timeout: 246 seconds]
<glen> RubyTitmouse: i mentioned json because it's easier to understand what the structure will look like
<RubyTitmouse> glen: focus on the Ruby objects you have :) and what class they are
jaxxstorm has quit [Quit: ZNC - http://znc.in]
<glen> i'm sure keys are always String, values can be anything depending on json structure
Dreamer3 has quit [Ping timeout: 250 seconds]
jaxxstorm has joined #ruby
<glen> {{{"key here":{"another key":[123,3]}},"key key":null}} should became {{{"key_here":{"another_key":[123,3]}},"key_key":null}} when serialized back
<RubyTitmouse> wtf is a "key"?
wildroman2 has joined #ruby
<platzhirsch> That's interesting. If you define a singleton method on a module like on a class, it will not appear in the list of A.methods
<Morrolan> hash key.
<lagweezle> The thing you use to pull a value from a dict? O.o
wildroman2 has quit [Remote host closed the connection]
<platzhirsch> but in A.singleton_methods
<lagweezle> Or rather, a map.
<lagweezle> map is the concept, dict is a means of implementing?
<glen> "key" is anthing that is not an "value"
pu22l3r_ has quit [Remote host closed the connection]
<platzhirsch> oh no that's wrong, nevermind
<RubyTitmouse> No. "key" is a string.
wildroman2 has joined #ruby
<Morrolan> Anyway. I'd google for "Ruby recursively transform hash keys", and adapt one of those suggestions.
<Morrolan> Activesupport has Hash#stringify_keys for example, though I'm unsure if that one works recursively.
pu22l3r has joined #ruby
<RubyTitmouse> I guarantee you that key is not a Ruby type
<Morrolan> None claimed it was, RubyTitmouse.
carlyle has joined #ruby
<RubyTitmouse> Morrolan: jeebus dude
<RubyTitmouse> ^
madb055 has quit [Read error: Connection reset by peer]
<platzhirsch> 925 users, good, good
madb055 has joined #ruby
<Morrolan> You're not making any sense (to me).
noop has quit [Ping timeout: 246 seconds]
madb055 has quit [Read error: Connection reset by peer]
<RubyTitmouse> Morrolan: okay, so don't help me help, just help on your own ;)
madb055 has joined #ruby
<RubyTitmouse> They gotta know what class their object is first, that is a critical part of the thought process
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<RubyTitmouse> from there, they can start looking for what methods to use
vlad_starkov has joined #ruby
clamstar has quit [Quit: ZNC - http://znc.in]
dx7 has joined #ruby
madb055 has quit [Client Quit]
Vivekananda has joined #ruby
madb055 has joined #ruby
OdNairy has joined #ruby
shadoi has quit [Quit: Leaving.]
enape_101 has quit [Ping timeout: 265 seconds]
rootshift has joined #ruby
tauebel has joined #ruby
momomomomo has quit [Quit: momomomomo]
<havenwood> platzhirsch: You could tell people in #python and #php that they're being discussed here.
<havenwood> >.>
<platzhirsch> Oh, don't lure me into pranking
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Azure has quit [Quit: My MBP went to sleep.]
stkowski has joined #ruby
<joelbrewer> rails question (because no one in #rubyonrails is responding)
stkowski has left #ruby [#ruby]
<joelbrewer> is it bad practice to bypass validations using "new" if I want to allow unvalidated models to be created? My reasoning is that I will check for validity when a user goes to "publish" the model.
momomomomo has joined #ruby
<platzhirsch> joelbrewer: new?
lesshaste has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
acorwin has joined #ruby
<joelbrewer> platzhirsch: from the rails guides: "Note that an object instantiated with new will not report errors even if it's technically invalid, because validations are not run when using new."
<platzhirsch> ah ok, to me this sounds like bad practice
baroquebobcat_ has joined #ruby
jrobertfox has quit [Remote host closed the connection]
<centrx> joelbrewer, Why not make the validation not be on create?
<platzhirsch> because you use a hack to circumvent the validation which probably could be done in an official way
<joelbrewer> centrx: I want to allow the user to update their profile over time.
<jhass> the validations will be run once you .save the object
<joelbrewer> centrx: once they are ready, I want them to "publish" their profile
Mariano9 has joined #ruby
<joelbrewer> jhass: ahh I see. so that wouldn't have worked anyways.
nari has quit [Ping timeout: 272 seconds]
cpruitt has joined #ruby
Azure has joined #ruby
<platzhirsch> havenwood: Bittarman: platzhirsch, they can say what they like. they will still see :sex as sex symbol.... everyone else just thinks colon sex.
<joelbrewer> how can I allow my users to continually update their profiles then, and only "validate" them when they choose to "publish"?
baroquebobcat has quit [Ping timeout: 260 seconds]
baroquebobcat_ is now known as baroquebobcat
<Mariano9> hi guys. Newbie question here, I have "text1 | text2" and I need to keep text1 and delete text2, which would be the right function to do this?
baroquebobcat has quit [Client Quit]
jlast has joined #ruby
<jhass> Mariano9: .split(' | ').first
wildroman2 has quit [Remote host closed the connection]
bogeyd6 has joined #ruby
<Mariano9> jhass: thank you
alvaro_o has joined #ruby
enape_101 has joined #ruby
<joelbrewer> platzhirsch: jhass: centrx: any ideas?
baroquebobcat has joined #ruby
<jhass> These days I'd have the wizard entirely client side and do a single request at the end
kenneth has joined #ruby
sdelmore has quit [Quit: Leaving.]
<centrx> joelbrewer, Run the validation in the publish method..?
<platzhirsch> joelbrewer: I am sure it's documented somehow
Al___ has quit [Quit: Al___]
diegoviola has quit [Quit: WeeChat 0.4.2]
<joelbrewer> centrx: yeah. but I still want to be able to save the model
superscott[8] has joined #ruby
<joelbrewer> centrx: even if it isn't valid
ktun has quit [Remote host closed the connection]
<platzhirsch> havenwood: At least in #php they responded, in #python they released a giant snake and I got eaten alive. Python developers… %$!@#92$ animals
<centrx> joelbrewer, RubyTitmouse> joelbrewer: .\save(validate: false)
<glen> lpvn: no rails here, just ruby
<centrx> Wow you are actually use eight spaces for indentation
<joelbrewer> centrx: ah. thanks :)
<glen> centrx: me?
<platzhirsch> Eight spaces? Do you want to build the Tower of Babel?
gja has joined #ruby
Nisstyre-laptop has joined #ruby
<glen> what i pasted, was tabs, but not sure what lpvn was referring to
<glen> sorry centrx
Nisstyre-laptop is now known as nisstyre
clamstar has joined #ruby
imcookie has joined #ruby
raphaelivan has quit [Quit: Leaving.]
<havenwood> glen: They did make it nice and modular such that you can get HashWithSilliness without the rest of Rails easily: require 'active_support/core_ext/hash/indifferent_access'
vlad_starkov has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
momomomomo has quit [Ping timeout: 250 seconds]
<lpvn> glen, listen to havenwood
Sou|cutter has joined #ruby
sailias has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
jerius has quit [Ping timeout: 260 seconds]
jrobertfox has joined #ruby
<platzhirsch> havenwood: Your prank really sparked a discussion in #php, they discussed languages which ended in someone being muted for using too many insulting words
tauebel has quit [Quit: Leaving.]
Mon_Ouie has quit [Ping timeout: 250 seconds]
<glen> but i didn't want hash keys to be :symbols, i wanted to s/ /_/g the keys
<centrx> You pranked #php without telling me!?
<platzhirsch> centrx: I tried to get more people to join #ruby so we break the 1,000 user mark
echevemaster has joined #ruby
<Mariano9> jhass: does this look ok? @event['check']['output'].split(' | ').first
jonah_k has quit [Remote host closed the connection]
jerius has joined #ruby
<Mariano9> to keep all the text before the | and reject the text after it
<Mariano9> ?
<glen> centrx: but i still would need trasnform_keys method, pure-ruby doesn't have it
<centrx> Mariano9, Yes
<centrx> glen, copy it
<jhass> Mariano9: yes, just keep in mind that this isn't self modifying, so you need to assign the result to something
<centrx> glen, The source is right there
IceDragon has joined #ruby
<Mariano9> jhass: def foo /n @event['check']['output'].split(' | ').first /n end /n puts foo
momomomomo has joined #ruby
<Mariano9> ?
Sir_Funk2 has joined #ruby
<jhass> or like that, yeah
Uranio has quit [Quit: WeeChat 0.3.2]
<glen> centrx: should i monkey-patch hash in my code, or i can make that transform_keys to take hash as method parameter?
freezey has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
<centrx> glen, If you are only doing this in one place, just copy the logic, you don't even need to make a transform_keys method
Sir_Funk has quit [Ping timeout: 265 seconds]
<centrx> glen, If you are doing in many places, I would tend to add it to Hash, but that is a preference
evilbug has quit [Quit: Leaving]
<glen> it needs to be recursive, what that ransform keys is not
<glen> so i'll stick with one i already made: http://sprunge.us/FHMG
thesheff17 has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
SteveBenner09 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
S0da has quit [Read error: Connection reset by peer]
<platzhirsch> >> class A; class B; end; end; A::B.is_a?(Module)
<eval-in> platzhirsch => true (https://eval.in/100166)
aryaching_ has joined #ruby
<platzhirsch> Why?!
jzig has quit [Remote host closed the connection]
nZac has joined #ruby
asmodlol has quit [Remote host closed the connection]
<Mariano9> jhass: is not working though..here's what I need: https://gist.github.com/Mariano-gon/8922747
mehlah has quit [Quit: Leaving...]
jzig has joined #ruby
<SteveBenner09> So, just found something about Ruby I DON'T like. I'm confused about the nature of ENV - I must be missing something about the low-level nature of Ruby processes because I can't find any justification for this adkward choice of implementation.
freezey has joined #ruby
jzig has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
pwh has quit []
<SteveBenner09> ran into issues with the fact ENV has a #to_has method, but is a global constant, not an actual class that can be overriden
<jhass> Mariano9: ah so it's "foo |bar" not "foo | bar" like you stated
<SteveBenner09> its just weird.
<jhass> Mariano9: time to understand what it actually does ;)
<SteveBenner09> and inconsistent.
<platzhirsch> A nested class is a Module and a Class at the same time.
<Mariano9> jhass: sorry if I missexplained this
mrevd has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<glen> centrx: how do i make it local function and pass string? deep_transform_keys(string, { |key| key.to_s.upcase }) ?
wildroman3 has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
<jhass> SteveBenner09: You could view it as an instance of Object with methods added to its singleton class
<centrx> glen, Change "each" to "string.each"
asmodlol has joined #ruby
<centrx> glen, That should do it
pkrnj has quit [Quit: Computer has gone to sleep.]
<centrx> glen, and then you have to change value.deep_transform_keys(&block) to deep_transform_keys(value, &block)
vlad_starkov has quit [Remote host closed the connection]
mark_locklear has quit [Quit: Leaving]
<shevy> SteveBenner09 ENV is a cheating constant
<SteveBenner09> jhass: Yep, I follow that. I immediately knew it had to be a singleton when I got the error about not being a Class... My questioning is about the reasoning behind the C implementation, haha
<shevy> SteveBenner09 ruby uses more cheaters such as $1 $2 $3 and of course some automagical things always happen like STDIN = $stdin
<jhass> SteveBenner09: probably just a leftover from the early days :P
decoponyo has quit [Quit: Leaving...]
<SteveBenner09> I don't follow why it needs the #to_hash method either, when it already implements other enumerables... It's a pain since I'm trying to convert objects to hashes for this library I'm working on, and I don't see how ruby even needs a #to_hash if the ONLY case is on ENV, having enumerables already!!!
<SteveBenner09> also, we have XMLRPC#FaultException, lol
stonevil_ has quit [Quit: Computer has gone to sleep.]
<glen> centrx: syntax error: json.rb:96: syntax error, unexpected '}', expecting $end
<glen> json = deep_transform_keys(s, { |key| key.to_s.upcase })
<shevy> well, ENV.to_hash converts it into a real hash
<SteveBenner09> XMLRPCFaultException#to_hash i mean
acrussell has quit [Quit: Leaving.]
wildroman2 has quit [Ping timeout: 260 seconds]
<centrx> glen, You need to call it like: deep_transform_keys(s) { |key| etc
<centrx> glen, The block is outside the parentheses. Even though the method signature looks like the block is inside the parentheses.
tibounise has joined #ruby
<SteveBenner09> shevy: exactly, the reason this messes up my library, is because I implement Object#to_hash in order to convert my structs to hashes. As soon as i include my lib in anything, ENV gets loaded, which unfortunately has this implementation of #to_hash already, and it prevents me from using my own method then
DrShoggoth has joined #ruby
<glen> centrx: thanks. that is where i got stuck
<SteveBenner09> I guess I can use metaprogramming now though
<shevy> cool
landon__ has left #ruby [#ruby]
<SteveBenner09> I'm just baffled as to why Matz (or whomever) set up Hash.c in such a way
<shevy> but can't you make an exception for ENV?
<shevy> since you modified class Object anyway
<Mariano9> jhass: greeeeeeat, replaced for split(' |').first and did the work
ngoldman has left #ruby [#ruby]
<shevy> when I startup irb, objects don't have a #to_hash method
Noldorin has quit []
<SteveBenner09> yes, that's what I'm going to do, but I think it's kind of lame to have to inject logic and extra code into a method that is just returning self (it just fills out the value of a hash recursively), so Object#to_hash is just returning self and I'd rather keep it that slim...
tomoe-mami- has joined #ruby
<SteveBenner09> shevy: exactly, because the only Ruby implementation is on ENV which is an Object instance
<shevy> hmmmmmm
<jhass> If I call #to_hash on something I don't expect it to return self unless it is a hash, so that's odd anyway
asmodlol has quit [Quit: Quitte]
yfeldblum has joined #ruby
jonah_k has joined #ruby
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
<RubyTitmouse> SteveBenner09: stuff like ENV follows traditional unix practices, it is a constant because it gets passed in, and it is not an interface to it; eg, you don't change the calling environment
RoryHughes has joined #ruby
rh1n0 has joined #ruby
<SteveBenner09> jhass: the library is called Hashugar and it's a recursive struct type of thing; it has to return self from any object because you are recursively setting the values of the Hashes
MyStartx has quit [Ping timeout: 245 seconds]
<jhass> value = object.respond_to?(:to_hash) ? object.to_hash : object
<RubyTitmouse> also note that #to_hash is something that objects claiming to be a real hash should have, and other things should get #to_h instead, which is a representation of a hash
<RubyTitmouse> like Array has #to_h but not #to_hash, and other classes might query if an object has #to_hash in order to find out if it quacks Hash
male4sex has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy> RubyTitmouse why did you change your nick
<Fire-Dragon-DoL> So, ruby allows to put _ between thousands, isn't it probably the best feature in any programming language since ages? O.o xD
<shevy> Fire-Dragon-DoL dunno. ruby just disregards _
pixelgremlins_ba has joined #ruby
xlogic_ has quit [Remote host closed the connection]
<shevy> >> 1_______________0_000
<eval-in> shevy => /tmp/execpad-93e3a505c325/source-93e3a505c325:2: trailing `_' in number ... (https://eval.in/100193)
<shevy> oops
pushpak has joined #ruby
tauebel has joined #ruby
<RubyTitmouse> shevy: I changed it for the snow and ice storm :) it is finally melting today
<shevy> >> 1_000_000000000_0_0
<eval-in> shevy => 100000000000000 (https://eval.in/100194)
<Fire-Dragon-DoL> shevy: yes but it's still great
<SteveBenner09> RubyTitmouse: right, I think that taking out #to_hash though, because is a good idea because it could be implemented another way without forcing everyone to conform, as ENV is ALWAYS loaded before arbitrary code libraries. Just an opinion
<shevy> cool.... for a moment I really thought it would allow more than _ subsequently
Sid05 has joined #ruby
<male4sex> any female here for cam 2 cam sex
mansi has quit [Remote host closed the connection]
<SteveBenner09> jhass: thats what I'm looking at for my method
<male4sex> pm me
Xiti` has joined #ruby
<shevy> male4sex go learn ruby man
<platzhirsch> I accidently asked a question in #ruby-lang
<shevy> yay platzhirsch
<shevy> did you get an answer
<male4sex> what i learn
<SteveBenner09> RubyTitmouse: I agree
mansi has joined #ruby
asmodlol has joined #ruby
mojjojo has quit [Quit: mojjojo]
<shevy> male4sex knowledge which translates into money which translates into you no longer having to beg for sex
<male4sex> hahahha
<male4sex> nice
tuttinator has joined #ruby
<male4sex> answer
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
b00stfr3ak has quit [Ping timeout: 250 seconds]
pixelgremlins has quit [Ping timeout: 265 seconds]
<male4sex> are u agreeed to teach me?
vlad_starkov has joined #ruby
einarj has joined #ruby
pkrnj has joined #ruby
<shevy> I dont have time, I have to go to bed in less than 2 hours and wake up in six hours then to work for about 8-9 hours (depending on coffee break) :(
shaunbaker has joined #ruby
<shevy> this is my free time now! I am chilling out until I fall asleep...
<centrx> Sounds like you two should hook up
Hobogrammer has quit [Ping timeout: 250 seconds]
<shevy> why
jaxxstorm has quit [*.net *.split]
nvll has quit [*.net *.split]
vjt has quit [*.net *.split]
BackEndCoder has quit [*.net *.split]
JStoker has quit [*.net *.split]
blooberr____ has quit [*.net *.split]
zaargy has quit [*.net *.split]
mnemon has quit [*.net *.split]
poikon_ has quit [*.net *.split]
Tranquility has quit [*.net *.split]
mattmcclure has quit [*.net *.split]
Guest42566 has quit [*.net *.split]
mattyohe has quit [*.net *.split]
justinmcp has quit [*.net *.split]
itamaryu has quit [*.net *.split]
mostlybadfly has quit [*.net *.split]
jeregrine has quit [*.net *.split]
niftylettuce_ has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
octarine has quit [*.net *.split]
ritek has quit [*.net *.split]
pipecloud has quit [*.net *.split]
chihhsin_cloud has quit [*.net *.split]
dekz__ has quit [*.net *.split]
savage- has quit [*.net *.split]
lectrick has quit [*.net *.split]
antonishen has quit [*.net *.split]
Avahey has quit [*.net *.split]
aspiers has quit [*.net *.split]
frem_ has quit [*.net *.split]
ws2k3 has quit [*.net *.split]
joshwines_ has quit [*.net *.split]
dotemacs has quit [*.net *.split]
LBRapid has quit [*.net *.split]
wildharvest__ has quit [*.net *.split]
pusewicz has quit [*.net *.split]
hoelzro has quit [*.net *.split]
BaconOverflow has quit [*.net *.split]
rakm has quit [*.net *.split]
nhmood has quit [*.net *.split]
mtlatif_ has quit [*.net *.split]
bluehavana has quit [*.net *.split]
illbyte has quit [*.net *.split]
jrunning__ has quit [*.net *.split]
lupine has quit [*.net *.split]
mjc_ has quit [*.net *.split]
supershabam has quit [*.net *.split]
drjblouse_ has quit [*.net *.split]
alol has quit [*.net *.split]
kofno has quit [*.net *.split]
culturelabs has quit [*.net *.split]
DrewRWx has quit [*.net *.split]
Sthebig has quit [*.net *.split]
Guest85414______ has quit [*.net *.split]
ckrailo has quit [*.net *.split]
JoeTheGuest__ has quit [*.net *.split]
gazoombo has quit [*.net *.split]
flowerhack has quit [*.net *.split]
shaileshg_____ has quit [*.net *.split]
frode15243 has quit [*.net *.split]
dnyy has quit [*.net *.split]
BRMatt has quit [*.net *.split]
kapowaz has quit [*.net *.split]
poguez_ has quit [*.net *.split]
moeSeth_ has quit [*.net *.split]
percival__ has quit [*.net *.split]
yo61 has quit [*.net *.split]
davorb has quit [*.net *.split]
dmoe has quit [*.net *.split]
tommyvyo has quit [*.net *.split]
pcarrier has quit [*.net *.split]
fayimora has quit [*.net *.split]
<shevy> did you not read anything at all centrx :(
hoelzro has joined #ruby
ws2k3 has joined #ruby
lupine has joined #ruby
<centrx> Free time !
<centrx> oh carp
rurban_ has quit [Ping timeout: 272 seconds]
Sthebig has joined #ruby
JStoker has joined #ruby
male4sex has left #ruby [#ruby]
<shevy> did you just wake up from out of nowhere when sex was mentioned :P
Guest85414______ has joined #ruby
Xiti has quit [Ping timeout: 252 seconds]
rh1n0 has quit [Ping timeout: 260 seconds]
nvll\ has joined #ruby
nvll\ is now known as nvll
dnyy has joined #ruby
bluehavana_ has joined #ruby
tommyvyo has joined #ruby
<centrx> MAN OVERBOARD!
nvll has quit [Changing host]
nvll has joined #ruby
JoeTheGuest__ has joined #ruby
lectrick has joined #ruby
DrewRWx has joined #ruby
mattyohe has joined #ruby
DrShoggoth has quit [Remote host closed the connection]
<shevy> now who can code in ruby while having sex
shaileshg_____ has joined #ruby
james_d_hen has quit [Quit: Lost terminal]
dotemacs has joined #ruby
davorb has joined #ruby
BRMatt has joined #ruby
frode15243 has joined #ruby
percival__ has joined #ruby
rurban_ has joined #ruby
<RubyTitmouse> SteveBenner09: all of the methods named similar to C stdlib are low-level wrappers, too. Only the Ruby-ish stuff is high level.
danshult_ has joined #ruby
justinmcp has joined #ruby
illbyte has joined #ruby
danshultz has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
poikon_ has joined #ruby
supershabam has joined #ruby
Tranquility__ has joined #ruby
Sid05 has quit [Ping timeout: 260 seconds]
nhmood_ has joined #ruby
dmoe has joined #ruby
jrunning__ has joined #ruby
mjc_ has joined #ruby
mansi has quit [Ping timeout: 250 seconds]
pusewicz_ has joined #ruby
rakm has joined #ruby
chihhsin_cloud has joined #ruby
joshwines_ has joined #ruby
14WAB5IF8 has joined #ruby
mnemon has joined #ruby
mostlybadfly has joined #ruby
<Fire-Dragon-DoL> what's the difference between this channel and #ruby-lang ?
tekacs has joined #ruby
aspires has quit []
dekz__ has joined #ruby
RKornmeyer has quit [Ping timeout: 245 seconds]
BaconOverflow_ has joined #ruby
<jhass> this channel has more people in it ;P
jds has quit [Ping timeout: 264 seconds]
octarine has joined #ruby
itamaryu has joined #ruby
yo61 has joined #ruby
kofno has joined #ruby
<Fire-Dragon-DoL> shevy: you have a problem if you code ruby while having sex, unless actually is passive sex
ritek has joined #ruby
jeregrine has joined #ruby
culturelabs has joined #ruby
pcarrier has joined #ruby
poguez_ has joined #ruby
drjblouse_ has joined #ruby
clov3r has quit [Remote host closed the connection]
fayimora has joined #ruby
LBRapid has joined #ruby
danshult_ has quit [Remote host closed the connection]
<shevy> hey it takes all my concentration to code in ruby
Jakee` has quit [Ping timeout: 245 seconds]
machty has quit [Ping timeout: 245 seconds]
flowerhack has joined #ruby
alol has joined #ruby
mattmcclure has joined #ruby
clov3r has joined #ruby
blooberr____ has joined #ruby
moeSeth_ has joined #ruby
wildharvest__ has joined #ruby
<RubyTitmouse> ruby-lang is more official and full of BOFHs
asteros has joined #ruby
Avahey has joined #ruby
zxq9 has quit [Read error: Connection reset by peer]
SegFaultAX has joined #ruby
danshultz has joined #ruby
mtlatif_ has joined #ruby
frem_ has joined #ruby
<Fire-Dragon-DoL> RubyTitmouse: ...which means? XD
<shevy> #ruby-lang is more restricted, you need to be registered in order to speak to the high lords and ladies there
<SteveBenner09> Exactly - thats why I think this is a design point that should be changed to be MORE Ruby-like. As is, anyone wanting to implement something like #to_hash or #to_a sits at a gate guarded by ENV, which prevents the overriding of Object being an easy task. Why? It should be the other way around - that Ruby implements some more expensive code in order to provide the methods, while keeping ENV from crowding things out
<RubyTitmouse> this channel includes inane offtopic banter
pkrnj has quit [Ping timeout: 250 seconds]
mojjojo has joined #ruby
antonishen has joined #ruby
<shevy> SteveBenner09 now you talked yourself into ONLY ONE WAY TO GO FROM HERE
shevy_ has joined #ruby
<Fire-Dragon-DoL> shevy: well that's why I said "passive" sex, lol
savage-_ has joined #ruby
Jakee` has joined #ruby
ziyadb_ has quit [Ping timeout: 264 seconds]
DrShoggoth has joined #ruby
RKornmeyer has joined #ruby
ckrailo has joined #ruby
<SteveBenner09> Rails uses the delegation technique to do something similar, I just can't imagine that ENV could not be improved so it's not sitting as a chokepoint in Object
niftylettuce_ has joined #ruby
<shevy> SteveBenner09 you must file a request to see ENV changed at https://bugs.ruby-lang.org/projects/ruby-trunk/issues?set_filter=1&tracker_id=2
<RubyTitmouse> SteveBenner09: #to_a is symetrical with #to_h, if you're saying #to_hash then the compliment is #to_ary
<SteveBenner09> shevy: right and I intend to; I think it would make Ruby better :)
aspires has joined #ruby
<shevy> perhaps
<Fire-Dragon-DoL> mhhh I don't get, what's the problem with ENV?
<shevy> you never know until matz will have seen it
<shevy> then he may write just one sentence which points out that you OVERLOOKED something
<RubyTitmouse> SteveBenner09: it is very very poor style and "considered dangerous" to override anything in Object
<shevy> then you learned something
<SteveBenner09> RubyTitmouse: ok well my point in general is they are all convenience methods, but in effect they are making things inconvenient for people extending Object; it could be reworked to not do so is my claim
<shevy> RubyTitmouse everyone can modify class Object in ruby
rmorello has joined #ruby
<shevy> if matz would agree with it he would not have allowed you to change it
<RubyTitmouse> so if things CONSIDERED HARMFUL have various minor obstacles to step over, that is not even bad. That is Ruby. Throw down some tacks, and if you want to walk over them, it doesn't stop you
<SteveBenner09> well that's the point of a library though - to experiment and provide unique utility and behavior
ziyadb_ has joined #ruby
freezey has quit [Remote host closed the connection]
mansi has joined #ruby
<shevy> k but any library can do modifications to core :P
<SteveBenner09> I agree with your point, which is why i want to keep my method simple, such as returning self, and without extra logic to check for other things.
timonv has quit [Remote host closed the connection]
<SteveBenner09> right but not this; it's implemented in C
<shevy> see Fire-Dragon-DoL? we all want to be simple
<SteveBenner09> shevy: I think it's not overridable by C alone, but I could be wrong
kapowaz has joined #ruby
<RubyTitmouse> SteveBenner09: Ruby is not Perl, we do not assume that all possible ways are equal. The recommended way is superior and optimized, the other possible ways are permitted but no effort will be made to make them easy without a solid use case
<SteveBenner09> shevy: er by Ruby alone
clov3r has quit [Ping timeout: 245 seconds]
<Fire-Dragon-DoL> mh?
<shevy> SteveBenner09 no idea, you really should discuss with ruby core team, not with us lowlives, sexhungry poor bastards here ;)
gazoombo has joined #ruby
<Fire-Dragon-DoL> you can do in Ruby C same things you do in ruby
jonah_k has quit [Remote host closed the connection]
michagogo|cloud has joined #ruby
<shevy> do refinements still not work?
machty has joined #ruby
<michagogo|cloud> Question: is this a line of code that will work?
<michagogo|cloud> dump=`python pywallet.py --dumpwallet #{"--datadir=#{wallet_dir}" unless wallet_dir == "."} --wallet=#{wallet_name}`
<shevy> eeeks
<RubyTitmouse> If you have strong ideas about how Things Should Be you're going to hate Ruby, because we reject both the One True Way, and the All Ways Are Good
<shevy> A SNAKE ATTACKS US
<SteveBenner09> shevy: haha I'm putting it on the core forum
<shevy> SteveBenner09 help defend us first!
<shevy> AN INVASION
<shevy> where there is one, there could be many
<michagogo|cloud> I saw that File.split, if it contains no slashes, returns "." as the first item in the array
nisstyre has quit [Quit: WeeChat 0.4.2]
<Fire-Dragon-DoL> OHHH I do have a question
zxq9 has joined #ruby
<RubyTitmouse> michagogo|cloud: for what values of "work?"
<Fire-Dragon-DoL> which I made on stackoverflow
<Fire-Dragon-DoL> and they closed it as every fucking question
<shevy> michagogo|cloud ah now I see what you mean... you store the result in the variable dump
<michagogo|cloud> RubyTitmouse: Will it do what I'm expecting?
jds has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<shevy> michagogo|cloud the placement of your {} looks very odd
<RubyTitmouse> michagogo|cloud: doubtful
<michagogo|cloud> Specifically, I want to collect the output of `python pywallet.py --dumpwallet --wallet=#{wallet_name}` if wallet_dir is "."
vlad_starkov has joined #ruby
<SteveBenner09> RubyTitmouse: hmm I think you misunderstand me; I'm pointing out that ENV forces you to work around the convenience methods any time you want to override Object. That is effectively saying 'this is how it should be', its saying excatly what you point out is NOT Ruby, that you aren't supposed to (or dont need to) modify Object
acorwin has left #ruby [#ruby]
<RubyTitmouse> michagogo|cloud: interpolate step by step, you're trying to golf your string
<michagogo|cloud> Otherwise, I want the output of `python pywallet.py --dumpwallet --datadir=#{wallet_dir} --wallet=#{wallet_name}`
<shevy> michagogo|cloud you can always assemble your full string, then send it into `` such as: cmd; `#{cmd}`
<michagogo|cloud> golf?
<shevy> golfing stinks
<RubyTitmouse> SteveBenner09: ENV forces you do to nothing, and you should not "want to override Object"
<shevy> we have ruby, why use ugly constructs
<Fire-Dragon-DoL> What's the most used way, in ruby, to write something similar to an interface for documenting purposes when the interface will be used by another programmer. So for example if for duck-typing I expect an object which #has_power?(power) how can I document it/write something that allows the programmer to understand what the object needs to implement ?
<SteveBenner09> it should be changed so that modifying Object isn't so difficult, because ENV doesn't need the convenience methods as much as programmers need a simple way to play with core classes :) thats my opinion about Ruby
<michagogo|cloud> What is golfing?
<agent_white> pry is a putter's paradise
<RubyTitmouse> You are _supposed_ to not want to "override Object." You're _allowed_ to. But you're not supposed to want to.
<shevy> to maximize expressivity by minimizing the amount of characters used
pr1x has quit [Ping timeout: 245 seconds]
<RubyTitmouse> If you're doin' it wrong, it ain't gonna be pretty either way
<Fire-Dragon-DoL> oh
lesshaste has quit [Quit: Leaving]
<shevy> even my wrong code is still pretty!
<agent_white> michagogo|cloud: Playing with code. Lets try this *putt*... or this *putt*
<Fire-Dragon-DoL> I got the problem SteveBenner09, ENV is an object and not a different class
diegoviola has joined #ruby
<RubyTitmouse> and I extend Object regularly, and I've never had ENV step into my way
<shevy> me neither!
<SteveBenner09> RubyTitmouse: that's opinionated, because what if I think my library serves its purpose best by overriding Object? in that case it should not be penalized in terms of development because ENV is silly the way it implements convenience methods
pr1x has joined #ruby
<shevy> but ENV scares me still because it is a big cheater
<RubyTitmouse> And if it did, I'd up my game and use a config file lol
iMe is now known as iMe_away
<Fire-Dragon-DoL> mhh yes
fakefakefake has joined #ruby
<Fire-Dragon-DoL> ENV should have its own class
<Fire-Dragon-DoL> I have no idea why they didn't do it
<michagogo|cloud> Okay, so I'll just do this:
zxq9 has quit [Remote host closed the connection]
<RubyTitmouse> There are very few uses of ENV, and all of them are for a cli interface that should be isolated from the rest of your code and should know nothing at all about how you're abusing Object
<SteveBenner09> ENV doesn't need to directly implement the methods, it can use a more expensive BUT MORE CONVENIENT technique, just like I mentioned, Rails solves a similar problem with delgation.
<SteveBenner09> Fire-Dragon-DoL: I agree
<Fire-Dragon-DoL> I mean, we have a NilClass and a TrueClass, why shouldn't we have an EnvClass
wildroman3 has quit [Read error: Connection reset by peer]
<RubyTitmouse> Well, and webserver->framework config communication
zxq9 has joined #ruby
<Fire-Dragon-DoL> RubyTitmouse: small usage is not an excuse for programming language flaw
<SteveBenner09> The reason it's so oddly inconvenient is that ENV is loaded at runtime before your libraries get to do anything really
imcookie has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<SteveBenner09> so it's a choke-point for design
<SteveBenner09> you see my point there right?
<platzhirsch> What the heck. Are you really raging about the ENV variable?
<RubyTitmouse> NilClass is a lot less real than you think on the C side :)
<SteveBenner09> platzhirsch: The problem is it's not a variable, it's a global constant implemented in C :)
<SteveBenner09> platzhirsch: and it plays dirty :P
<platzhirsch> SteveBenner09: sounds nice
<Fire-Dragon-DoL> yea but I mean
<Fire-Dragon-DoL> it just need to be
<Fire-Dragon-DoL> a different class
fakefakefake has left #ruby [#ruby]
<Fire-Dragon-DoL> so like Object class do exist
<platzhirsch> SteveBenner09: well, if you run into edgy cases then it means you are doing cool stuff
<Fire-Dragon-DoL> when env is loaded
<Fire-Dragon-DoL> I'm sure the same can be done for ENV variable
<RubyTitmouse> That is nonsense because ENV is not an interface!
<shevy> ENV your mother!!!
<Fire-Dragon-DoL> lol+
<platzhirsch> spell it backwards, holy shit VNE
Dreamer3 has joined #ruby
<Fire-Dragon-DoL> SteveBenner09: did you report it?
<shevy> he still did not!
<shevy> he is too lazy!
<michagogo|cloud> Oh, something else: I need to take a string, dump, consisting of a bunch of garbage text, followed by a JSON blob, and parse the JSON blob.
<shevy> lazy lazy lzay
<michagogo|cloud> Is there a better way to do that than data=JSON.parse("{"+dump.split("\n{")[1])
Dreamer3 has quit [Max SendQ exceeded]
<michagogo|cloud> ?
<RubyTitmouse> you _receive_ an environment from your *nix shell. changes do not go back out to your shell. There is no reason to do a bunch of nonsense and treat it like an interface
Lewix has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
Sammael has joined #ruby
evilbug has joined #ruby
<SteveBenner09> platzhirsch: I totally think so :) https://github.com/SteveBenner/hashugar
<shevy> the bug report that will never ever happen
* shevy sings loudly.
* agent_white dances
<SteveBenner09> Fire-Dragon-DoL: I will be
<shevy> lol
glen has left #ruby [#ruby]
lamba has left #ruby [#ruby]
<SteveBenner09> Fire-Dragon-DoL: I
<Fire-Dragon-DoL> SteveBenner09: give me the link if you post it, I'll support you
yfeldblum has joined #ruby
<shevy> agent_white you are quite the party man
<platzhirsch> SteveBenner09: cool, I will give you a start
<SteveBenner09> Fire-Dragon-DoL: I'll be putting it on the mailing lists and stuff
<platzhirsch> star
russfrank is now known as rf
duggiefresh has quit [Read error: Connection reset by peer]
<SteveBenner09> hey thanks. It's a fun project and Hashugar is NOT my creation but I wanted to make it super useful because I'm already addicted to the concept as a util library
<SteveBenner09> =D
<shevy> god
duggiefresh has joined #ruby
<shevy> I hate the name
<shevy> Hashugar
<SteveBenner09> lol same here
zxq9 has quit [Remote host closed the connection]
<shevy> only Hashie is a worse name
<platzhirsch> You are allowed to rename it after forking
<shevy> who of you guys wrote Hashie
<SteveBenner09> I'm probaby going to remake the library... I just dont want to feel 'stealy' because original cred is totally due
<SteveBenner09> haha Hashei
<shevy> platzhirsch I know!!! That's what I do... I rename all the stupid names to beautiful ones
<SteveBenner09> well okay I might go ahead since it will have more changes soon as well, and be its own library for sure
<platzhirsch> SteveBenner09: It's still MIT, so go ahad
<SteveBenner09> shevy: ahaha we think alike then :)
<platzhirsch> shevy: Yeah, make it all lower caps and replace _ with -
<SteveBenner09> Yeah I'm new to Ruby dev but I like what we are offered with this language, can't stop coding in it
zxq9 has joined #ruby
fedesilv_ has joined #ruby
<SteveBenner09> lol
<shevy> good!
<RubyTitmouse> New but already know what Ruby is supposed to be lol
Xiti` has quit [Quit: Leaving]
frx has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
<RubyTitmouse> As long as your horse can see over the cart, you'll be fine
<shevy> ACK
kevind has quit [Quit: kevind]
<SteveBenner09> RubyTitmouse: Ruby is my lover, and we were meant to be from birth, so don't be a hater. I have over 1k hours programming in ruby in the last 2 years
duggiefresh has joined #ruby
<shevy> "#1 Updated by Nobuyoshi Nakada 2 days ago Agree. And today I've thought about deprecation of rb_argv0 too."
<shevy> oh
<shevy> rb_argv0
<shevy> I thought rb_argv
yfeldblum has quit [Remote host closed the connection]
<platzhirsch> SteveBenner09: 1,000 hours? Do you get your payoff per hours coded or why do you know
<SteveBenner09> Toggl
<SteveBenner09> and I'm boot strapping a startup
lfox has joined #ruby
<SteveBenner09> so I have to record my work so they know the value obvoiusly of what I do
<SteveBenner09> also for school I recorded hours
mjs2600 has joined #ruby
<platzhirsch> so California yes?
<SteveBenner09> projects in school naturally were recorded because soem of it was independent study
bean has joined #ruby
<SteveBenner09> yep actually :)
<platzhirsch> where?
<platzhirsch> SteveBenner09: Total surveillance
bthesorc_ has quit [Remote host closed the connection]
fedesilva has quit [Ping timeout: 260 seconds]
Megtastique has quit []
<SteveBenner09> Napa valley, tiny ass school called PUC
<SteveBenner09> but I'm on the east coast with my co-founders at the moment :)
<SteveBenner09> in NYC
<platzhirsch> SteveBenner09: so not planning on studying?
<SteveBenner09> platzhirsch: hahah I started recording the hours I work because thats the best way for them to understand how long I actually do this per day so they believe me
<SteveBenner09> platzhirsch: I'm the hardest working of the team
<SteveBenner09> platzhirsch: objectively :)
zxq9 has quit [Read error: Connection reset by peer]
<SteveBenner09> uh no
<SteveBenner09> I'm done; my school gutted the last of their pathetic CS program so there is nothing for me there
<platzhirsch> well, College, not school
<SteveBenner09> if my startup doesn't pay off then I'll just get an industry job afterwards
zxq9 has joined #ruby
<SteveBenner09> I have plenty of opportunity for that.. and yeah you are correct but I am not interested in academics at the moment
<platzhirsch> well, then I better don't ask you to hire me through H-1B visa
jackneill has quit [Ping timeout: 248 seconds]
<SteveBenner09> perhaps someday do a PhD program because I enjoy research, but I'm not going to sit though classes where I'm not learning things
maletor has quit [Quit: Computer has gone to sleep.]
<SteveBenner09> RubyTitmouse: so would you recommend putting up an issue on the site shevy posted? on bugs.ruby-lang.org issues?
<RubyTitmouse> SteveBenner09: No, it is not a bug it is an "I wouldn't have made the same choice as Matz" which is an anti-feature by definition
<SteveBenner09> or is github considered also good? As I said in terms of the development community I am new to things.
Virtualize|away has quit [Quit: Leaving...]
<SteveBenner09> I totally agree
pu22l3r has quit [Remote host closed the connection]
bthesorc_ has joined #ruby
jkamenik has quit [Quit: Leaving.]
<RubyTitmouse> SteveBenner09: You would actually be expected to lurk on the ruby-lang mailing list for a year or two, then post your suggestion there
<RubyTitmouse> That is where that type of discussion happens
<SteveBenner09> Well that's what I'm doing, posting on the mailing list first
intuxicated has joined #ruby
<shevy> SteveBenner09 feature requests go there as well
bthesorc_ has quit [Remote host closed the connection]
<shevy> man
<SteveBenner09> and I don't believe in the concept of subjective experience as a pre-requisite for understanding or valuable contribution - I have spent a lot of time in Ruby and I think I'm perfectly qualified to suggest core changes
IceDragon has quit [Ping timeout: 260 seconds]
<michagogo|cloud> Is there a better way to take a string containing garbage text followed by a JSON blob and parse the JSON than this?
bthesorceror has joined #ruby
<michagogo|cloud> data=JSON.parse("{"+dump.split("\n{")[1])
<SteveBenner09> ok thanks
<shevy> you are chickening out now! :(
<RubyTitmouse> Ruby is all about the subjective
Spami has quit [Quit: This computer has gone to sleep]
<RubyTitmouse> For example the "Principle of Least (Matz) Surprise"
<SteveBenner09> michagogo|cloud: have you taken a look at String#scrub, new in ruby 2? is that the kind of 'garbage' you mean?
<michagogo|cloud> Okay, let me rephrase: is there a less hackish method to do it?
<RubyTitmouse> I don't want a language that is least surprising to Joe Programmer
Dreamer3 has joined #ruby
<michagogo|cloud> SteveBenner09: I'm using 1.9.3 at the moment
krisbulman is now known as [krisbulman]
<SteveBenner09> RubyTitmouse: I'm the first to admit that I don't know 'Matz' or the core programmers, so I can't claim anything but opinion on the core-ruby implementation. But I clearly see the ENV thing as a surprise because it's preventing me from playing with Object, when it could easily avoid that with some alternative implementation
sambao21 has joined #ruby
stonevil_ has joined #ruby
<RubyTitmouse> SteveBenner09: It should NOT be preventing you from playing with Object.
<michagogo|cloud> SteveBenner09: And no, that's not what I mean
<michagogo|cloud> It's regular text, just unwanted
iMe_away is now known as iMe
<RubyTitmouse> "It hurts when I abuse Object in this very exact way!" "Don't do that, it hurts"
<SteveBenner09> RubyTitmouse: but it is - you can't override Object with these instance methods unless you look at the code and match their results because they are already forced into your runtime being loaded with env
IceDragon has joined #ruby
shaunbaker has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
<RubyTitmouse> Right, you cannot "override Object" without reading a lot of source, and you still might blow your hand off
<SteveBenner09> michagogo|cloud: oh ok - well your use case would have to be explained better I guess, for me to suggest anything less hackish :)
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
mikepack has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Noldorin has joined #ruby
<RubyTitmouse> You're actually supposed to create your own classes with your own methods
<SteveBenner09> RubyTitmouse: Well I can't change your thoughts on that, but obviously if there is any chokepoint such as ENV presents, we should consider fixing it. It could use another class or several techniques to provide the convenience methods, and also leave Object open to simple modification.
bthesorceror has quit [Ping timeout: 272 seconds]
tvw has quit []
mocfive has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
<RubyTitmouse> These aren't my thoughts, that is the first mistake. I am dutifully trying to explain the Ruby Way to a newb.
kevind has joined #ruby
<SteveBenner09> You can't do what I'm trying with Hashugar without modifying Object of course :)
<RubyTitmouse> If Ruby was built using my ideas, it would look more like Perl and be a total insane mess
<michagogo|cloud> Basically, I have a string that looks like this:
<SteveBenner09> ok well I'll be posting on the mailing list for now, to see what we all think of this
<RubyTitmouse> That is why I use Ruby, Matz is more sensible than I am
axsuul has joined #ruby
<cout> oh to be young and less cynical again
<michagogo|cloud> SteveBenner09: I have that string, and I know that there will never be a junk line starting with a {
<michagogo|cloud> And I also know that the JSON goes all the way to the end
<SteveBenner09> michagogo|cloud: looks like you are looking for a smart regex :)
mikepack has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
timonv has joined #ruby
<michagogo|cloud> I don't care about the text at the beginning, just about the JSON, which I want to parse
echevemaster has quit [Ping timeout: 264 seconds]
* michagogo|cloud knows ~no regex
<cout> I know a dirty way to parse that
<SteveBenner09> lol
tomoe-mami- has left #ruby ["WeeChat 0.4.3-rc2"]
<RubyTitmouse> michagogo|cloud: that is pretty awful pastebin you have there
<SteveBenner09> oooh are you a dirty, dirty regex, yeah, yes you are
<michagogo|cloud> I know that . is one character and * is 0 or more of the previous character
maletor has joined #ruby
<cout> JSON.parsr(str[idx..-`]) and keep incrementing idx until it succeeds :)
dangerousdave has joined #ruby
<cout> s/parsr/parse/
Hanmac has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
<SteveBenner09> oh I thought this was ruby-lang haha
<SteveBenner09> fail.
mocfive_ has joined #ruby
<platzhirsch> I wrote my own programming and the compiler uses regular expression for parsing.
mocfive has quit [Ping timeout: 260 seconds]
<cout> you wrote your own what?
<SteveBenner09> michagogo|cloud: do you know how many curly braces come beofre the JSON
<ericwood> his own programming
<platzhirsch> just kidding, that's so bad I have to throw up in my mouth every time I think about that.
<platzhirsch> language
<SteveBenner09> I believe he was clear, yeah. His own programming definition
<platzhirsch> a programming language
<RubyTitmouse> michagogo|cloud: http://stuff.rubypanther.com/images/irc.png
<platzhirsch> jesus, read context sensitive
<michagogo|cloud> SteveBenner09: anywhere from zero to several thousand
<SteveBenner09> haha
<michagogo|cloud> RubyTitmouse: heh...
stonevil_ has quit [Ping timeout: 246 seconds]
<michagogo|cloud> Oh, it loaded after a second or two
<RubyTitmouse> see subject for a better place
<michagogo|cloud> RubyTitmouse: I'm aware
<Fire-Dragon-DoL> RubyTitmouse: I don't agree with the fact that you shouldn't override methods in ruby Object class
<michagogo|cloud> Just mildly lazy
<michagogo|cloud> (and IRCCloud's pastebin is integrated into IRCCloud)
<Fire-Dragon-DoL> RubyTitmouse: #nil? #present? and such methods are really useful there and they do fit there
<michagogo|cloud> cout: I already have something that works
<michagogo|cloud> data=JSON.parse("{"+dump.split("\n{")[1])
<RubyTitmouse> Fire-Dragon-DoL: Adding utility methods is not the same as to "override methods"
<michagogo|cloud> I was just wondering if I'm reinventing the wheel here
<Fire-Dragon-DoL> RubyTitmouse: you are not overriding a method if it's not in the object class
<RubyTitmouse> It is Considered Dangerous, and if you even name then wrong, it is Considered Harmful
clov3r has joined #ruby
<RubyTitmouse> This is all well trodden ground that Ruby went through during 2005-8 as people adjusted to Railsisms
nanoyak has joined #ruby
octaplus has joined #ruby
<Fire-Dragon-DoL> RubyTitmouse: I don't see any #empty? method in the ruby object
<Fire-Dragon-DoL> I can override it
<Fire-Dragon-DoL> it's clear: an object is empty if it's nil, false, blankspace
<RubyTitmouse> The default is that it is dangerous and bad. Sometimes, it is pragmatic and useful. But if you're tripping over ENV, that is not going to be pragmatic
io_syl has joined #ruby
<Fire-Dragon-DoL> or 0
<Fire-Dragon-DoL> (personal choice)
<centrx> Fire-Dragon-DoL, That is not called overriding
<Fire-Dragon-DoL> no infact I'm adding a new method
<Fire-Dragon-DoL> to object centrx
<Fire-Dragon-DoL> but there is an issue now
bthesorceror has joined #ruby
<Fire-Dragon-DoL> you are actually overriding ENV #empty? method
<Fire-Dragon-DoL> but you didn't even notice
GinoMan has quit [Ping timeout: 250 seconds]
<Fire-Dragon-DoL> keep telling me that this is not a bug
<centrx> NoMethodError: undefined method `empty?' for main:Object
<Fire-Dragon-DoL> now
<Fire-Dragon-DoL> ENV.empty?
<Fire-Dragon-DoL> =)
<RubyTitmouse> ENV is not a generic interface, it is the *nix environment
dubsteph has joined #ruby
<Fire-Dragon-DoL> ENV is an Object
echevemaster has joined #ruby
<centrx> Fire-Dragon-DoL, ENV is a class
<Fire-Dragon-DoL> no it's a class in doc
<Fire-Dragon-DoL> ENV.class => Object
<RubyTitmouse> You're not SUPPOSED to be fiddling it. If you want to fiddle, you make a hash, put the values in it, and fiddle with that.
<centrx> Fire-Dragon-DoL, ENV inherits from Object
<Fire-Dragon-DoL> I read the doc too centrx but ENV.class # => object
<ekarlso> btw/win 30
<Fire-Dragon-DoL> RubyTitmouse: the point is I was overriding the #empty? method for all objects, I didn't want at all to override the ENV #empty? method
<Fire-Dragon-DoL> sorry I was ADDING
<Fire-Dragon-DoL> the #empty? method to all objects
<RubyTitmouse> @my_env = ENV.to_h
axsuul has quit [Ping timeout: 265 seconds]
RoryHughes has quit []
<Fire-Dragon-DoL> yes but in that way you break all libraries that uses ENV
<RubyTitmouse> If you override a method on Object in a way that breaks something, the bug is in what you did, not in what you broke. That is not opinion, that is the Ruby way.
LLKCKfan has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
<RubyTitmouse> Seriously this is as absurd as the blond joke where she has a broken finger and goes to the doctor and says, "doctor, every time I touch something (ow!) it hurts! (ow!)" "don't do that, it hurts"
<Fire-Dragon-DoL> I'm not overriding anything
<Fire-Dragon-DoL> I'm ADDING a method
<Fire-Dragon-DoL> to Object
SegFaultAX has quit [Excess Flood]
<Fire-Dragon-DoL> Object doesn't have ANY #empty? method
<RubyTitmouse> does your method have a generic name? That is CONSIDERED HARMFUL
<SteveBenner09> RubyTitmouse: you still don't grasp the concept of my library. It's actually pretty simple if you look at the single file ;)
<SteveBenner09> but more importantly
<RubyTitmouse> if your method is named #firedragon_empty? then it is NOT generic, and it is totally OK
<SteveBenner09> is that ENV is hard-coded into Ruby
LLKCKfan has joined #ruby
<Fire-Dragon-DoL> RubyTitmouse: ok so next time you program please remember to prefix all your methods with class name because otherwise method name is too generic
<Fire-Dragon-DoL> that's what you just said
<SteveBenner09> and thus should take extra care not to prevent essential core concepts like meta-programming and modifying core classes
havenwood has quit [Remote host closed the connection]
<SteveBenner09> the issue with ENV is not because I'm trying to modify Object
SegFaultAX has joined #ruby
<Fire-Dragon-DoL> yes so instead of reading a very readable
sambao21 has quit [Quit: Computer has gone to sleep.]
<RubyTitmouse> you are NOT supposed to add GENERIC named methods to core or stdlib classes, unless you are doing it inside of a framework like Rails and are responsible for making it happy there
badweather has joined #ruby
<Fire-Dragon-DoL> myobj.empty?
aryaching_ has quit [Ping timeout: 260 seconds]
<Fire-Dragon-DoL> i have an horrible myobj.firedragon_empty
<SteveBenner09> it's because the object is declared from the get-go, and thus you cant override it once your Ruby program/script is running
havenwood has joined #ruby
<SteveBenner09> you cant say def ENV ... end
<SteveBenner09> you can't say ENV = ...
<SteveBenner09> because it's in C
<SteveBenner09> and a global constant
<Fire-Dragon-DoL> I wouldn't have used at all a myobj.active_support_nil? lol
<RubyTitmouse> #empty? is 100% generic named, generic names are reserved for whatever use the core/stdlib might have for them
<Fire-Dragon-DoL> ahem sorry .blank?
mikepack has quit [Remote host closed the connection]
nZac has quit [Ping timeout: 250 seconds]
<Fire-Dragon-DoL> yes but in whatever other object
<Fire-Dragon-DoL> you have #empty?
<Fire-Dragon-DoL> considering they do inherit from Object
<Fire-Dragon-DoL> you won't have any issue
<Fire-Dragon-DoL> the empty? method will be overridden by the inheriting class
Mariano9 has left #ruby [#ruby]
<Fire-Dragon-DoL> EXCEPT in one case
Solnse has joined #ruby
<Fire-Dragon-DoL> in ENV because it's an Object instance and not a different class
tauebel has left #ruby [#ruby]
<Fire-Dragon-DoL> not only that
clov3r has quit [Remote host closed the connection]
<RubyTitmouse> >> class << ENV; def omg!; "ponies" end end ; ENV.omg!
<eval-in> RubyTitmouse => "ponies" (https://eval.in/100203)
<SteveBenner09> I find it ludicrous how you are generalizing this, RubyTitmouse. generic names considered harmful? That is EXACTLY what I'm concerned about. There is a slew of generic names forced into the object universe that you can't override, and they are CONVENIENCE METHODS, they are NON-ESSENTIAL.
nZac has joined #ruby
mikepack has joined #ruby
<RubyTitmouse> being implemented in C doesn't stop you from using it from the Ruby side
whatasunnyday has joined #ruby
<centrx> ENV.empty? still works if you override Object::empty?
clov3r has joined #ruby
<Fire-Dragon-DoL> let's have
<Fire-Dragon-DoL> more fun
<centrx> "override"
RoryHughes has joined #ruby
<Fire-Dragon-DoL> ENV.respond_to?(:empty?) # => true
<Fire-Dragon-DoL> ENV.class.instance_methods.include?(:empty?)
<Fire-Dragon-DoL> false
<RubyTitmouse> SteveBenner09: I am defending only the standard Ruby practices, these are NOT some sort of opinions I came up with.
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<RubyTitmouse> You are NOT supposed to add generic named methods to core classes, that is known to be considered harmful
<Rylee> "considered harmful" considered harmful
<RubyTitmouse> If you disagree, it is STILL TRUE
<Fire-Dragon-DoL> ok and what about
<Fire-Dragon-DoL> what I said
rootshift has joined #ruby
<RubyTitmouse> It just means you don't like that about Ruby
<SteveBenner09> RubyTitmouse: http://codepad.org/6Uteu4Pw
<RubyTitmouse> That is okay. But it is not a bug or a shortcoming in Ruby for you to have different opinions than Matz.
kobain has quit [Ping timeout: 256 seconds]
havenwood has quit [Ping timeout: 250 seconds]
<Fire-Dragon-DoL> {}.class.instance_methods.include?(:empty?) # => true | {}.respond_to?(:empty?) # => true | ENV.respond_to?(:emtpy?) # => true | ENV.class.instance_methods.include?(:empty?) # => false
<RubyTitmouse> SteveBenner09: what is that? It isn't a gist, and it doesn't have a useful title in the link
<platzhirsch> I updated my poor man's Ruby profiler, now it's 100% YARD documented. https://gist.github.com/platzhirsch/0791872fabe11f194c16
clov3r_ has joined #ruby
<SteveBenner09> RubyTitmouse: http://codepad.org/RKi5uc51
GinoMan has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
clov3r has quit [Read error: Connection reset by peer]
<SteveBenner09> I dunno some website I googled to show code interpretation results
kobain has joined #ruby
<RubyTitmouse> >> ENV.methods.include?(:empty?)
<eval-in> RubyTitmouse => true (https://eval.in/100204)
<RubyTitmouse> d'oh! ;)
<SteveBenner09> but I'm wasting my time here I feel, RubyTitmouse you do not understand the problem I think
Erenzie has joined #ruby
MrJoshua has joined #ruby
<Fire-Dragon-DoL> RubyTitmouse: I consider this a big inconsistency lol
<RubyTitmouse> Right, right, you're the newb I'm the old fart, I probably just don't understand at all
jrist has quit [Ping timeout: 272 seconds]
<Fire-Dragon-DoL> so the instance methods of your class don't have the method, but you do have the method?
<RubyTitmouse> Fire-Dragon-DoL: It should be inconsistent, because ENV is a unix-ism and most of Ruby is a modern high-level language
Sid05 has joined #ruby
<Fire-Dragon-DoL> unixism?
<Fire-Dragon-DoL> you have it
<Fire-Dragon-DoL> in ALL oses
bricker`LA has quit [Ping timeout: 250 seconds]
bricker`LA has joined #ruby
jlast has quit [Remote host closed the connection]
<RubyTitmouse> Even Windown NT4 was POSIX compatible
<Fire-Dragon-DoL> ok so
badweather has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> you have it EVERYWHERe
<Fire-Dragon-DoL> in all computers that are used now
<SteveBenner09> This is not personal; I'm just done flogging a head horse. You don't see my point of view and it's one I think is obvious, so no point in arguing
jonah_k has joined #ruby
<RubyTitmouse> That doesn't keep it from being a unixism just because "everybody" does it now
<shevy> why is there a gem called fileutils https://rubygems.org/gems/fileutils
<Fire-Dragon-DoL> okay but like the system tray
<shevy> and why does it fucking depend on this
<shevy> Runtime Dependencies
<shevy> rmagick >= 2.13.1
freezey has joined #ruby
Hobogrammer has joined #ruby
<SteveBenner09> lol
<Fire-Dragon-DoL> now it's available to all APIs because is spread everywhere
<RubyTitmouse> Another thing you'll find is that all the Ruby methods named the same a C stdlib method are thin wrappers around the C stdlib
<Fire-Dragon-DoL> I can consider the same for ENV
<shevy> gem needs a serious overhaul
<SteveBenner09> rmagick is where the special sauce comes from shevy
<shevy> no kidding
<shevy> SteveBenner09 I accidentally had a stray requirement in a .gemspec file in one of my projects, that including fileutils
<RubyTitmouse> Why is that? Because, as Matz has said, Ruby is rooted in Japanese *nix culture
<shevy> I was actually referring to the stdlib
<shevy> then when I tried to gem install it
dik_dak has quit [Ping timeout: 248 seconds]
<shevy> it suddenly failed on fucking rmagick
<SteveBenner09> shevy: lol I get it yeah
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
<Fire-Dragon-DoL> yes but we are speaking about a convention here RubyTitmouse, not a huge inconsistency
<SteveBenner09> shevy: that's awesome. oh I have to find this post now, about gem naming
<shevy> the most useless and stupid failure I ever saw. a fileutils one that depends on rmagick?! anyway... without me having made the mistake, I would not even have noticed, so I have to blame myself, but still this is such stupid shit that you can call the same name as gem as stdlib/core... and on top of that, why it requires rmagick...
kobain has quit [Remote host closed the connection]
<shevy> they can not even make stdlib gems only
<shevy> because those names are BLOCKED!
kobain has joined #ruby
<RubyTitmouse> There is nothing inconsistent. If you fiddle Object in a way that breaks stuff, stuff is broken. It is NOT expected that changes to Object not break _everything_
aryaching has joined #ruby
danshultz has quit [Remote host closed the connection]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jlast has joined #ruby
danshultz has joined #ruby
<SteveBenner09> shevy: I loved that
Sid05 has quit [Ping timeout: 246 seconds]
<shevy> it makes me want to murder people
<shevy> especially the gem designers
<Fire-Dragon-DoL> anyway, brb, food time
<shevy> SteveBenner09 actually I dont mind these names
<shevy> but take names like "configuration"
Jake232 has joined #ruby
<SteveBenner09> I'm going to name my next gem like 'ban_nun_sex' or something
<shevy> whoever is the first to snatch it gets to keep it
Spami has joined #ruby
<RubyTitmouse> shevy: clicking on the source link gives a 404, so that solves that ;)
<shevy> but my class is called Configuration and I will sure enough not rename it
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<shevy> texticle (thanks for the reminder @scottmlikens)
<shevy> omg
<SteveBenner09> hahah awesome
<shevy> analdiffist
<cout> are these real projects?
<RubyTitmouse> shevy: if you murder people for choosing generic names, I promise not to turn you in
<shevy> whoa <-- ok can you guess what this gem does?
<shevy> it is literally called whoa
<SteveBenner09> lol
<SteveBenner09> whoa.
<RubyTitmouse> whoa is a good name, it is not generic
<cout> shevy: I would guess that it's a ruby interface to who -a
<shevy> this is what it does: "Simple Active-Recordy API to the Google Website Optimizer (WO) API."
<SteveBenner09> RubyTitmouse: I'm going to name my gem 'ruby'
<shevy> cout well I guess half of these are fake projects probably
<shevy> but the other half is real
<SteveBenner09> shevy: lol BUT WHICH ONES
<RubyTitmouse> SteveBenner09: make sure you ahve ext/ruby.h too
<cout> if it has a name like that and comes from the seattle ruby brigade, then it's probably real
<shevy> I dont think even they would pick such names
<shevy> they pick other strange names
<shevy> like
<shevy> hoe
<SteveBenner09> lol, 'clitt'
<shevy> which is a whore right?
<cout> yes
sambao21 has joined #ruby
<SteveBenner09> i still re-read this article every now and then haha
<shevy> SEATTLE!!!
Xeago has joined #ruby
Fraeon has quit [Ping timeout: 252 seconds]
<RubyTitmouse> No, a hoe is a garden tool you might choose instead of a rake
<shevy> you don't live near seattle RubyTitmouse!!!!!!
<cout> see they could have called it shovel or trowel, but they intentionally chose the garden tool that has an alternative meaning
Notte has joined #ruby
zoscoy has joined #ruby
<RubyTitmouse> There was already a ruby rake, so they made it a ruby hoe. If you want to replace it, I recommend shovel
danshultz has quit [Ping timeout: 245 seconds]
<cout> RubyTitmouse: why not pitchfork?
<RubyTitmouse> Seattle is a 5 hour drive
<SteveBenner09> haha
nanoyak has quit [Quit: Computer has gone to sleep.]
<RubyTitmouse> Isn 't htere already a pitchfork?
mocfive_ has quit [Remote host closed the connection]
MyStartx has joined #ruby
phansch has quit [Quit: Leaving]
mocfive has joined #ruby
<SteveBenner09> if not, make a fork
<shevy> 5 hours is quite long
<shevy> I'd be in different countries if I'd drive from here!
<RubyTitmouse> "Hoe is a rake/rubygems helper for project Rakefiles" it is pretty clearly the garden tool
rf has quit [Changing host]
rf has joined #ruby
<shevy> gem install hoe
<shevy> I can see it!
s2013 has joined #ruby
<s2013> https://gist.github.com/ss2k/f9965cc113657a3b2a37 how can i refactor this?
<cout> RubyTitmouse: yes, clearly, and also clearly has a double-meaning
jrist has joined #ruby
<RubyTitmouse> Why? I mean, are you saying that all uses of the word "hoe" have a double meaning, even when they're a play on the word "rake?"
LLKCKfan has quit [Excess Flood]
<RubyTitmouse> What about, "my own row to hoe?"
<cout> RubyTitmouse: I'm saying I know zenspider :)
LLKCKfan has joined #ruby
mojjojo has quit [Quit: mojjojo]
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> s2013 can't you use .map on it and treat it like a filter?
vlad_starkov has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<shevy> RubyTitmouse knows zenspider too! after all he got banned from #ruby-lang
Tomasso has quit [Ping timeout: 250 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<s2013> hmmm.. maybe
nZac has quit [Ping timeout: 251 seconds]
<shevy> though the ban was lifted a long time ago too :(
mocfive has quit [Ping timeout: 252 seconds]
<s2013> well i am adding the aggregate time at the end of the arrays for each hash key
<SteveBenner09> oh damn. I just realized I should probably have not signed up with my real name
nZac has joined #ruby
mehlah has joined #ruby
clov3r_ has quit [Remote host closed the connection]
Megtastique has joined #ruby
<RubyTitmouse> I agree that the ones in the link under "probably offensive" are all bad. But hoe is fine. I have a hoe, and I garden. Nobody titters at the community garden if you say, "may I borrow your hoe?"
<shevy> SteveBenner09 chiiiiiiiiicken!
<cout> RubyTitmouse: I don't think anyone said there was anything wrong with the name
clov3r has joined #ruby
tempered has joined #ruby
<shevy> SteveBenner09 just be very polite ;)
sambao21 has joined #ruby
<SteveBenner09> well I'm not familiar with the garden community. But when I'm chillin with my pimps in the club, and I say 'may I borrow your hoe?' they dont' titter either
<SteveBenner09> they respect that shit.
<platzhirsch> Or Matz will send the Yakuza
<shevy> "Hi my name is George and I suggest to the ruby core team to change the ENV-related code."
<SteveBenner09> shevy: gotcha, I think I will use that name
<shevy> and when they reject it, you go
<platzhirsch> crr
<SteveBenner09> shevy: Right; I'm composing something formal/polite here, not a 4chan rant :)
<shevy> "YOU STUPID IDIOTS!!! WHY DON'T YOU DO AS I TOLD YOU!!!!!"
vlad_starkov has quit [Read error: Connection reset by peer]
<s2013> https://gist.github.com/ss2k/f9965cc113657a3b2a37 added some more comments
<shevy> right
<shevy> leave that task to platzhirsch
<platzhirsch> :D
<shevy> platzhirsch or do you deny that you often get totally drunk?!
<platzhirsch> shevy: I just drunk a bottle of Tannzäpfle
<shevy> a what?
dik_dak has joined #ruby
<platzhirsch> Tannenzäpfle
<shevy> I cant even read that... tannzöpfle?
<shevy> hmm
<RubyTitmouse> Yeah, Ruby needs a new Trans, he hasn't been as active lately
<platzhirsch> Tannenzaepfle
<shevy> now it makes more sense, as word, but I still have not heard of it before
<SteveBenner09> Ich möchte das auch trinkenf
<shevy> I get that it reminds me of a Tannenzapfen! but that there is a drink called that way I did not know
<platzhirsch> SteveBenner09: good fuel
<platzhirsch> AnyWHO... if they dont' respond SteveBenner09, send them some Pigeon bones and fake salt to eat it
<SteveBenner09> platzhirsch: Ich finde Franziskaner auch ganz toll
<SteveBenner09> mmmm
zachallett has quit [Remote host closed the connection]
clov3r has quit [Ping timeout: 260 seconds]
ehc has joined #ruby
clov3r has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<shevy> lol
<platzhirsch> Umlauts working ä ü ö?
<shevy> the bavarians have some good beer
<shevy> but northern germany omg that is hopeless
kevinykchan has joined #ruby
<platzhirsch> Jever, Flennsburg :D
dik_dak has quit [Client Quit]
psyprus has joined #ruby
jaimef has quit [Excess Flood]
<shevy> I don't know what it is, more piss than beer
<platzhirsch> It's bitter, like my coffee
mojjojo has joined #ruby
machindo has joined #ruby
mzr has joined #ruby
bthesorceror has quit [Remote host closed the connection]
Guest59812 has quit []
Dreamer3 has quit [Ping timeout: 260 seconds]
machindo has quit [Remote host closed the connection]
<platzhirsch> on Friday night my neighbour called the police because my TV was too loud
<platzhirsch> I fucking hate him
bthesorceror has joined #ruby
<mzr> Hey guys, how long would it take me to learn enough ruby to get a website up and running?
Dreamer3 has joined #ruby
jhass is now known as jhass|off
agjacome has quit [Quit: leaving]
<platzhirsch> mzr: Website? This is under-specified
<SteveBenner09> haha
<cout> mzr: 20
<SteveBenner09> well american beer is sad after being in germany
Fraeon has joined #ruby
<centrx> A "website" could be five minutes
<SteveBenner09> alol
<platzhirsch> You can execute python -m SimpleHTTPServer in a directory and it will have a running webserver serving the content of that directory mzr
<SteveBenner09> 20 weeks
<shevy> mzr how many hours can you spend per day fully concentrated
<mzr> sorry; 5-10 pages with some kind of ability to sell items
<SteveBenner09> mzr: I recommend Sinatra
<shevy> obviously if you can spend only 10 minutes a day it would take you months
<mzr> ~4
<shevy> k
joelbrewer has quit [Ping timeout: 250 seconds]
<shevy> a week maximum if you have 4 hours a day and if you are concentrated and dedicated
<shevy> if you can already program then much earlier
chrisja has quit [Quit: leaving]
<SteveBenner09> host it on https://www.heroku.com/
<mzr> and shevy is ruby what I should be looking at?
<platzhirsch> Heroku is so expensive
bthesorceror has quit [Ping timeout: 248 seconds]
bklane has joined #ruby
Dreamer3 has quit [Max SendQ exceeded]
<SteveBenner09> for a single webapp can't you host it for free
<platzhirsch> true
<SteveBenner09> there you go!
<platzhirsch> But my web application has workers and mad stuff
<SteveBenner09> depends on what you're selling
<SteveBenner09> I mean like, if you're selling people you may want something with more security
felixjet has quit [Read error: Connection reset by peer]
Dreamer3 has joined #ruby
<SteveBenner09> but otherwise, yay heroku! or AWS
<platzhirsch> Linode does just fine
<platzhirsch> AWS and Heroku (paid) seems to be the choice if you want to scale it up
<SteveBenner09> do you have experience with Rackspace?
<SteveBenner09> they just had a great deal for startups I signed up for - 6 months free for $50 worth of their cloud stuff
<platzhirsch> no
timonv has quit [Remote host closed the connection]
jaimef has joined #ruby
ktun has joined #ruby
bovi has joined #ruby
<platzhirsch> SteveBenner09: http://metadata-census.com/
mengu has joined #ruby
terrellt has quit [Ping timeout: 272 seconds]
octaplus has quit [Ping timeout: 250 seconds]
fedesilv_ has quit [Read error: Connection reset by peer]
fedesilva has joined #ruby
<SteveBenner09> platzhirsch: uh so is that your webiste? or ...
<shevy> mzr that depends on your reasons why you need a programming language, only you can give a list of what you seek
mattp_ has joined #ruby
<centrx> Use HTML
<platzhirsch> SteveBenner09: yeah, has quite some performance issues, but for a running web app at the end of a Master's thesis I think it's okay for now
<SteveBenner09> mzr: https://rubymonk.com/
<mzr> and that is unknown, seeing that I'm not at all familiar with web dev
bklane has quit [Quit: Leaving...]
mlpinit has joined #ruby
<SteveBenner09> mzr: http://www.codecademy.com/
<SteveBenner09> platzhirsch: I was going to say, some of the pages are loading slow for me. Could be my end but yeah
<SteveBenner09> platzhirsch: it looks really slick
<shevy> mzr webstuff requires a lot of non-single languages. you should know html css javascript and database stuff
<mzr> so, in other words this coult take forever
<platzhirsch> SteveBenner09: it's really the web app, too slow :) I need to pre-cache more values, CPU Priority is really bad
<shevy> I picked ruby because php was not good enough
<SteveBenner09> mzr: replace what shevy said with slim, sass, and coffeescript
<centrx> PHP is an abomination and a scourge on the face of the earth.
<shevy> mzr yeah but you have to start somewhere
<SteveBenner09> shevy: jk jk ;)
<platzhirsch> shevy: stop lieing, you snorted cocaine and got lost in #ruby and just decided to stay
<shevy> even with slim sass coffeescript he still has to learn or understand it all
<shevy> no, the old matz interview convinced me to ruby
<SteveBenner09> No I agree I was messing with him; I'm a huge advocate of learning the base languages way before moving on
Hanmac1 is now known as Hanmac
<shevy> it is still valid even 10 years lateron
<shevy> matz is a clever person
<shevy> his english is awful but he is brilliant
<shevy> and he always smiles
<mzr> guys I appreciate all the inks, but a bunch of resources with no explanation is a bit self-destructive
<platzhirsch> I don't know what brought me to Ruby,... around 2012 it was very vibrant
zachallett has joined #ruby
<shevy> mzr yeah, ignore them, read what I linked you
<SteveBenner09> I've seen videos of him at rubycon but thats about it
<SteveBenner09> ncie link shevy
<platzhirsch> lol
<shevy> the sad thing is
<shevy> matz' english is better than the english of most other japanese ruby devs
<shevy> :(
<shevy> (save 1 or 2 exceptions)
<platzhirsch> lokl
tvw has joined #ruby
xlogic has joined #ruby
mocfive has joined #ruby
jonah_k has quit []
<shevy> he kinda thinks in japanese when talking english
<SteveBenner09> shevy awww, my links are totally valid :P
<shevy> you can hear it when he makes a pause or a break, he utters japanese speaking-break sounds
* platzhirsch invalidates SteveBenner09's links
<platzhirsch> not anymore
<SteveBenner09> lol
<SteveBenner09> fml
RoryHughes has quit []
agjacome has joined #ruby
<mzr> so shevvy it sounds like ruby's a good language...now I just gotta learn it
RoryHughes has joined #ruby
Squarepy has quit [Remote host closed the connection]
RoryHughes has quit [Max SendQ exceeded]
Mapley is now known as Queen_Mapley
RoryHughes has joined #ruby
sabooky has quit [Ping timeout: 245 seconds]
kure_ has quit [Ping timeout: 248 seconds]
mojjojo has quit [Quit: mojjojo]
terrellt has joined #ruby
jrist has quit [Ping timeout: 246 seconds]
Queen_Mapley is now known as Mapley
<lagweezle> ruby is made of happy
nanoyak has joined #ruby
mavcunha has joined #ruby
bthesorceror has joined #ruby
RoryHughes has quit [Client Quit]
pixelgremlins_ba has quit [Ping timeout: 265 seconds]
clov3r has quit [Remote host closed the connection]
clov3r has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deception has quit [Quit: Goodbye]
duggiefresh has quit [Read error: Connection reset by peer]
DrShoggoth has quit [Quit: Leaving]
duggiefresh has joined #ruby
pr0ggie has joined #ruby
habanany has joined #ruby
<mzr> http://www.railstutorial.org or codecademy, or something else?
ElCapitanMarklar has joined #ruby
DrShoggoth has joined #ruby
jonah_k has joined #ruby
clov3r has quit [Ping timeout: 261 seconds]
bovi has quit [Quit: bovi]
failshell has joined #ruby
RoryHughes has joined #ruby
TomRone has quit [Quit: Peace Out]
Xeago has quit [Remote host closed the connection]
<aloysius_> Hello, folks. I'm having gem troubles: To wit, when I install a gem, I get "Invalid gem: package data is missing in /home/me/.rvm/gems/ruby-2.1.0/cache/whatever-gem-name-and-version.
<aloysius_> I've tried deleting the ruby-2.1.0 directrory in the gems and starting from scratch but after installing one or two gems, I get the error again.
clov3r has joined #ruby
bthesorceror has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mojjojo has joined #ruby
jrist has joined #ruby
Xeago has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
<Notte> aloysius_: i'd try rbenv
Shidash has joined #ruby
<centrx> mzr, Find something you like
<centrx> mzr, Also, see http://sivers.org/kimo
mjs2600 has quit [Remote host closed the connection]
heftig has joined #ruby
<aloysius_> Notte: I would've switched by now but I'm on a team using bundler.
Sid05 has joined #ruby
RoryHughes has quit []
<shevy> mzr well here is the problem
<shevy> mzr you say ruby is a good language - and then you instantly look at railstutorial.org
vlad_starkov has joined #ruby
<aloysius_> That's a terrible tutorial.
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
tibounise has quit [Quit: WeeChat 0.4.2]
<aloysius_> Unless you know everything it teaches already. Then it's great.
<shevy> mzr I think if you want to learn rails then ignore ruby and just learn the rails way
<shevy> lol aloysius_
<shevy> kinda defeats the point of a tutorial
<momomomomo> aloysius_: shevy - I started with ruby via that tutorial, I don't think it's a bad way to start.
<mzr> sorry, what's the difference that I'm ignorant to?
<shevy> mzr ok see I linked you to that interview
<shevy> when I started with ruby, rails did not exist
Al___ has joined #ruby
<momomomomo> shevy: I started about a year + ago
alexherbo2 has quit [Ping timeout: 245 seconds]
<shevy> yeah I am from another generation
Es0teric has joined #ruby
<shevy> you guys go enter puberty first!!!
<platzhirsch> pontiki: Pontaka left
IceyEC has quit [Quit: IceyEC]
[gmi] has quit [Read error: Connection reset by peer]
<shevy> pontiki where is ponwiki!
Sid05 has quit [Ping timeout: 265 seconds]
<mzr> okay shevy so can you point me in the direction of a good legit tutorial?
Fraeon has quit [Ping timeout: 260 seconds]
caveat- has quit [Ping timeout: 252 seconds]
tauebel has joined #ruby
zachallett has quit [Remote host closed the connection]
<slowcon> having some troulbe with the sequel gem accepting an array to store to a DB. http://pastebin.com/gfrx6tP1
vlad_starkov has quit [Ping timeout: 250 seconds]
wchun has joined #ruby
<slowcon> i currently have genre set as .text to test the script as a single string, which works correctly
caveat- has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<mzr> shevy anything?
Tomasso has joined #ruby
SHyx0rmZ has quit [Ping timeout: 272 seconds]
jrist has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<platzhirsch> I thought pontiki is RubyTitmouse, ah no... RubyTitmouse was RubyPanther
havenwood has joined #ruby
pwh has joined #ruby
rblackwe has quit [Ping timeout: 272 seconds]
<slowcon> let me rephrase. trying to get the array output to pass through the sequel gem, with each array object on a new line.
momomomomo has quit [Quit: momomomomo]
rblackwe has joined #ruby
<slowcon> how goes it havenwood
clov3r has quit [Remote host closed the connection]
<havenwood> hi
agjacome has quit [Ping timeout: 265 seconds]
kaldrenon has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
carlyle_ has joined #ruby
clov3r has joined #ruby
<havenwood> slowcon: already pasted a Gist?
mojjojo has quit [Quit: mojjojo]
clov3r has quit [Read error: Connection reset by peer]
<slowcon> i currently have genre set as .text while i was testing the script as a single string, which works correctly
clov3r has joined #ruby
jerius has quit []
<havenwood> slowcon: An aside, but no need to `require 'rubygems'` unless you're using 1.8 which is past end-of-life.
xlogic has quit [Remote host closed the connection]
danshultz has joined #ruby
yekta has joined #ruby
<slowcon> havenwood: noted
kcombs has quit [Remote host closed the connection]
yekta has quit [Client Quit]
platzhirsch has quit [Read error: Operation timed out]
carlyle has quit [Ping timeout: 240 seconds]
<havenwood> slowcon: It isn't idiomatic to `puts "#{subgenre}"`, just `puts subgenre` unless you have something else to interpolate
IceDragon has quit [Ping timeout: 246 seconds]
<slowcon> havenwood: also noted
alexherbo2 has joined #ruby
momomomomo has joined #ruby
pwh has quit []
rm_ has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
aspires has quit [Read error: Connection reset by peer]
danshultz has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
pwh has joined #ruby
<havenwood> slowcon: what do you mean "pass through"? you want to save the array as a run-on string?
<slowcon> taking out the "#{}" from variables made the output alot more readable
<slowcon> all displays nicely on new lines now
<havenwood> slowcon: I don't think I understand the problem yet.
failshel_ has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
<havenwood> slowcon: you can also: puts "These are the genre links:", genrelink
<havenwood> stylistic preference
<slowcon> havenwood: trying to save two peices of information to the database. 1 - genre 2 - genrelink
<slowcon> havenwood: can ignore subgenre for now
mary5030 has joined #ruby
<havenwood> slowcon: I haven't had a change to really figure out what is going on, but makes me wonder if you don't want to: genres.each do |genre|
nanoyak has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shevy has quit [Ping timeout: 272 seconds]
<havenwood> slowcon: nice to use plural case when more than one, and singular case if one
nanoyak has quit [Max SendQ exceeded]
<havenwood> looks like you did that with the hash key but not the local variable
pwh has quit []
failshell has quit [Ping timeout: 260 seconds]
<slowcon> havenwood: noted about case. let me see if i can explain better
failshel_ has quit [Ping timeout: 250 seconds]
nanoyak has joined #ruby
sparrovv has quit [Remote host closed the connection]
<slowcon> havenwood: script should go to the url listed. scrape the GENRE name, input it in the DB under genre. Then scrape the URL associated with that Genre, input it in the forum_id field in the DB.
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
<slowcon> havenwood: each forum ID is in the form of "forumdisplay.php?f=60" so really I am only looking for the INT, but I was going to worry about that later
IceDragon has joined #ruby
einarj has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 272 seconds]
cburyta has joined #ruby
<havenwood> slowcon: genre_bodies = genre_links.map { |genre_link| client.get(genre_link).bod... etc
kirun has quit [Quit: Client exiting]
<havenwood> slowcon: First thing, pick an HTTP client.
tuttinator has left #ruby ["Linkinus - http://linkinus.com"]
carlyle_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby
itadder has joined #ruby
<itadder> hi
<slowcon> i read somewhere that i can just specify it as RUBY?
dx7 has quit [Remote host closed the connection]
<havenwood> slowcon: I'd recommend mastering Mechanize and HTTPClient.
mavcunha has quit [Quit: Computer has gone to sleep.]
dx7 has joined #ruby
<havenwood> slowcon: You can use Net::HTTP or one of its many wrappers (including Mechanize).
<havenwood> itadder: hey
dethkrieg has quit []
<itadder> I just cane frin wirj
<itadder> came
<itadder> my head is about to explod
<itadder> but I want to dive in to ruby
<havenwood> slowcon: Net::HTTP is in the stdlib, so you just: require 'net/http'
RoryHughes has joined #ruby
<itadder> I installed davclient gem
dik_dak has joined #ruby
platzhirsch has joined #ruby
<platzhirsch> Hello my dears, I got disconnected
<AntelopeSalad> is this the standard way to get a gem's path? Bundler.rubygems.find_name('json').first.full_gem_path
<havenwood> itadder: installing 5-year-old gems isn't a recommended way to learn ruby
nanoyak has quit [Ping timeout: 246 seconds]
<itadder> sudo gem install davclient, but I am getting a error message "/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- hpricot (LoadError)"
<itadder> havenwood: oh
<havenwood> itadder: but hpricot is another gem
<itadder> I am trying to start my project
Morx_Placidus has joined #ruby
<havenwood> itadder: hpricot was an awesome gem that has been deprecated in favor of nokogiri
Morx_Placidus has left #ruby [#ruby]
<itadder> one of the problem I am trying to slove is to connect to the webdav server, where omnifocus has the synch database
<itadder> oh
<itadder> so I should be doing this from scratch the connection that seems to advance for me
sambao21 has joined #ruby
jlast has quit [Remote host closed the connection]
<itadder> becuase I belive that the first thing I need to slove right havenwood
dx7 has quit [Ping timeout: 245 seconds]
dx7 has joined #ruby
nszceta has quit [Remote host closed the connection]
sputnik13 has joined #ruby
mgolisch_ has quit [Ping timeout: 252 seconds]
<havenwood> AntelopeSalad: do you want the gem dir or bin dir?
<havenwood> AntelopeSalad: gem dir i guess
jlast has joined #ruby
<havenwood> AntelopeSalad: Gem::Specification.find_by_name('json').gem_dir
yfeldblu_ has joined #ruby
shevy_ is now known as pipecloud
pipecloud has quit [Changing host]
pipecloud has joined #ruby
pipecloud has joined #ruby
pipecloud has quit [Changing host]
joelbrewer has joined #ruby
mlpinit has quit [Remote host closed the connection]
shevy has joined #ruby
<kiba> hmm
tauebel has left #ruby [#ruby]
* kiba don't know how to handle 302 request
Fraeon has joined #ruby
<havenwood> kiba: follow it!
sailias has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 265 seconds]
<itadder> is my approach all wrong havenwood
<kiba> havenwood: well, I am not used to dealing with HTTP
<platzhirsch> kiba: let the library handle it
<platzhirsch> don't write follow location routines yourself
aloysius_ has quit [Ping timeout: 245 seconds]
<kiba> "net/http" does that?
<platzhirsch> for instance for libcurl there is an option to let that happen
<platzhirsch> maybe
<kiba> so you think I should use libcurl instead of using net/http?
dr0ff has joined #ruby
nanoyak has joined #ruby
dubsteph has quit [Read error: Connection reset by peer]
<AntelopeSalad> havenwood: yep, the gem dir
<SteveBenner09> that is a pretty good start I think
<havenwood> kiba: A lot of Ruby HTTP clients follow redirect, some don't.
whomp has joined #ruby
<platzhirsch> kiba: if you don't have a problem with C library dependencies use Curb, it's nice
<SteveBenner09> it is ideal for those who are new to programming in general
iMe is now known as iMe_away
<SteveBenner09> or even dynamic languages
dx7 has quit [Remote host closed the connection]
dubsteph has joined #ruby
<havenwood> kiba: mechanize, httpclient, curb, etc follow redirects
dx7 has joined #ruby
<platzhirsch> curb doesn't do by default, but it can be configured to
<havenwood> kiba: just avoid net/http
Jdubs has joined #ruby
<platzhirsch> there is also a number of redirects before it quits, once I actually had a redirect loop
<havenwood> platzhirsch: true, mechanize does by default
charliesome has joined #ruby
<kiba> havenwood: does any of the clients does parallelized download?
<kiba> or do I have to write it myself?
<platzhirsch> kiba: Typhoeus
<havenwood> kiba: i'd vote learn mechanize and httpclient
fedesilva has quit [Read error: Connection reset by peer]
<havenwood> kiba: many do
<kiba> oh
fedesilva has joined #ruby
<itadder> so what is a recent dav web dav client gem
<kiba> oh
<platzhirsch> a library sent directly from the Olympe
<havenwood> kiba: typhoeus is awesome too
felixjet has joined #ruby
<havenwood> platzhirsch: +1
* kiba realized he spent a disportionate amount of time learning how threading work
<kiba> it's not a waste though
<havenwood> kiba: check this out, pick the HTTP client that matches your needs: https://docs.google.com/spreadsheet/pub?key=0AiZsKd8d4hSJdF9WRHVoRElnaV9paThuZ1FBSU1Ob3c&single=true&gid=4&output=html
<havenwood> kiba: a ton of smart people have put in countless hours, lets stand on the shoulders of giants!
<havenwood> kiba: learning threading is indeed worthwhile i think
<slowcon> havenwood: a friend recommended typhoeus, do you have a preferrerd http client?
<kiba> havenwood: it's a good thing to learn threading, but it's also a good thing to stand on the shoulder of giant
mr_red has quit [Ping timeout: 260 seconds]
rm___ has joined #ruby
rm___ is now known as Guest45876
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
dx7 has quit [Ping timeout: 260 seconds]
<havenwood> slowcon: HTTPClient is pure Ruby. Typhoeus wraps libcurl, which is awesome in its own right, and adds its hydra parallelism.
pel_daniel has quit [Ping timeout: 272 seconds]
mr_red has joined #ruby
<havenwood> slowcon: There isn't a right choice, and many usecases overlap, but sometimes one of them fits.
<kiba> I pinged rubygems.org
<kiba> 7 packets transmitted, 100% loss
sergicles has quit [Quit: sergicles]
Jdubs has quit [Remote host closed the connection]
<slowcon> havenwood: thanks, will read into the different kinds
rm_ has quit [Ping timeout: 248 seconds]
<kiba> also, my download script refused to run
<SteveBenner09> check it ^
<havenwood> slowcon: It's one of the best, that is no doubt. :)
<kiba> well, it ran
parzo has joined #ruby
blandflakes has quit [Ping timeout: 245 seconds]
coca_rails has joined #ruby
<havenwood> SteveBenner09: Is that the latest? I'm bad about finding the latest link to that spreadsheet. I should bookmark it.
<havenwood> Does change though.
<SteveBenner09> havenwood: believe so
<SteveBenner09> but don't quote me lol
<SteveBenner09> you're right it does change
<itadder> havenwood: so any guide what I need
<havenwood> itadder: first figure out what protocols you might be able to connect on. if webdav is the only option, i have no experience personally.
fedesilv_ has joined #ruby
<itadder> I just tweeted to see if omnifocus has a API
fedesilv_ has quit [Remote host closed the connection]
<havenwood> SteveBenner09: I think my link is newer, looking at it.
<havenwood> SteveBenner09: There may be newer yet.
Astralum has quit [Ping timeout: 260 seconds]
<havenwood> Would be nice to have a good way of getting latest!
<itadder> "Well, OmniFocus has had automatic syncing between Mac and iOS devices that can use most WebDAV servers since 2008"
fgo has joined #ruby
jobewan has quit [Quit: Leaving]
<itadder> havenwood: tht the first thing I need to slove to figure out how to connect
<itadder> and make it secure connection
<slowcon> havenwood: thanks for all of the info. thanks for those little tips too, they make all the difference being new
<slowcon> havenwood: heading out of work, will be back on in a little bit
<havenwood> slowcon: no prob, happy hacking!
aloysius_ has joined #ruby
<slowcon> havenwood: (y)
aloysius_ has quit [Read error: Connection reset by peer]
pipecloud is now known as spacecloud
slowcon has quit []
fedesilva has quit [Read error: Connection reset by peer]
aloysius_ has joined #ruby
<havenwood> itadder: do you need a webdav gem or to wrap your own
<itadder> I just got home from work
aloysius_ has quit [Read error: Connection reset by peer]
<itadder> I a bi
aloysius_ has joined #ruby
aloysius_ has quit [Read error: Connection reset by peer]
<itadder> I think I should write my own but that to advance
aloysius_ has joined #ruby
<itadder> the webdav gem I am trying to use it old
aloysius_ has quit [Read error: Connection reset by peer]
claymore has quit [Quit: Leaving]
aloysius_ has joined #ruby
aloysius_ has quit [Read error: Connection reset by peer]
<itadder> I am getting type sof error messages
<havenwood> itadder: maybe check this out: https://github.com/georgi/rack_dav#readme
aloysius_ has joined #ruby
aloysius_ has quit [Read error: Connection reset by peer]
<havenwood> itadder: for sure ditch webdav
aloysius_ has joined #ruby
aloysius_ has quit [Read error: Connection reset by peer]
<havenwood> ASAP
nZac has quit [Ping timeout: 260 seconds]
<itadder> but I belive the the only way I can connect to omnifocus sync
aloysius_ has joined #ruby
aloysius_ has quit [Read error: Connection reset by peer]
<havenwood> itadder: that is one of many gems
<havenwood> itadder: but it isn't maintained
aloysius_ has joined #ruby
<itadder> yea
aloysius_ has quit [Read error: Connection reset by peer]
<itadder> :(
<itadder> oh I see
<havenwood> itadder: if it was, it'd prolly be viable
<itadder> your saying thier some other gems
<havenwood> itadder: but it isn't
billy_ran_away has quit [Ping timeout: 272 seconds]
<havenwood> yes
aloysius_ has joined #ruby
aloysius_ has quit [Read error: Connection reset by peer]
<havenwood> the one i pointed at is my fav, based on a wild guess
dblessing has quit [Quit: dblessing]
funburn has joined #ruby
<itadder> oh that raack one
aloysius_ has joined #ruby
aloysius_ has quit [Read error: Connection reset by peer]
<havenwood> yup
mzr has left #ruby [#ruby]
<havenwood> i guess that is more on the receiver end
<itadder> should I unistall taht gem then if I won't use it
tonni has quit [Quit: Leaving...]
Sid05 has joined #ruby
fedesilva has joined #ruby
<havenwood> itadder: you need a working gem
<havenwood> itadder: i don't know this space
greenrose has joined #ruby
Kricir_ has joined #ruby
nanoyak has quit [Ping timeout: 252 seconds]
<havenwood> i guess davclient is a year less ancient..
Xuisce has joined #ruby
Xuisce has quit [Excess Flood]
greenrose has quit [Client Quit]
<havenwood> itadder: i'd suggest searching, if no avail solicit help in creating an open source solution
mary5030 has quit [Remote host closed the connection]
chrisseaton has quit [Ping timeout: 250 seconds]
ktun has quit [Remote host closed the connection]
subbyyy has joined #ruby
Wolland has quit [Remote host closed the connection]
<havenwood> if webdav is something people still often need to use?
v0n has quit [Ping timeout: 260 seconds]
yfeldblu_ has quit [Remote host closed the connection]
enape_101 has quit [Ping timeout: 260 seconds]
Xuisce has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
Jdubs has joined #ruby
yfeldblum has joined #ruby
Kricir_ has quit [Remote host closed the connection]
fedesilva has quit [Remote host closed the connection]
<itadder> oh
<Xuisce> itadder: hey
<jsilver_> I'm against programming
<itadder> hi Xuisce
Sid05 has quit [Ping timeout: 252 seconds]
freezey has quit [Remote host closed the connection]
<havenwood> jsilver_: i'm for it, lets joust!
<itadder> bah thi sis giving me a headache
<jsilver_> Fuck apps!
<jsilver_> lol
<itadder> wow a client just called havenwood
* jsilver_ rides at you on a horse with a joust
<jsilver_> Die lowlander!!!
* centrx
michagogo|cloud has left #ruby [#ruby]
nanoyak has joined #ruby
<itadder> my adhd is getting to me
<itadder> adderal wore off and I am making dinner
<itadder> so hungry
<jsilver_> every had a hot girl touch your arm and it was so hot you had to touch yourself furiously later
<jsilver_> that was last night for me
freezey has joined #ruby
cburyta has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 252 seconds]
thesheff17 has quit [Ping timeout: 260 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
<jsilver_> FUCK Adderall
txdv has quit [Ping timeout: 260 seconds]
<jsilver_> weed is all there is
Nisstyre-laptop has joined #ruby
Nisstyre-laptop is now known as nisstyre
[krisbulman] is now known as krisbulman
<itadder> yes
<itadder> but I am a 32 year old virgin :(
txdv has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<itadder> who loves to chat on irc
postmodern has joined #ruby
<itadder> and loves macs since 1984
<itadder> not just since 2008
Deele has quit [Ping timeout: 246 seconds]
ffranz has quit [Quit: Leaving]
* centrx takes notes
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zz_karupanerura has quit [Ping timeout: 256 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
echevemaster has quit [Ping timeout: 264 seconds]
Al___ has quit [Quit: Al___]
nanoyak has quit [Ping timeout: 260 seconds]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zz_karupanerura has joined #ruby
cschneid has joined #ruby
<lpvn> omg lol
cajone has joined #ruby
<lpvn> what's going on here? lol
nanoyak has joined #ruby
zz_karupanerura is now known as karupanerura
asmodlol has quit [Read error: Connection reset by peer]
<SteveBenner09> lol adhd
<lpvn> TL;DR for me pls
vlad_starkov has joined #ruby
cburyta has joined #ruby
brennanMKE has quit [Remote host closed the connection]
<itadder> rackdav is a webdav server in webbricks
<platzhirsch> good night
<centrx> Quack quack
platzhirsch has left #ruby [#ruby]
<itadder> brb
Notte has quit []
Soliah has joined #ruby
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
billy_ran_away has joined #ruby
x77686d has quit [Quit: x77686d]
vlad_starkov has quit [Read error: Connection reset by peer]
ponpon is now known as ponbiki
bogeyd6 has quit [Read error: Connection reset by peer]
stryek has quit [Read error: Operation timed out]
sambao21 has joined #ruby
ukd1 has joined #ruby
kpshek has quit []
RoryHughes has quit []
Hanmac1 has joined #ruby
LLKCKfan has quit [Read error: Connection reset by peer]
pr0ggie has quit [Quit: Bye folks]
nZac has joined #ruby
enape_101 has joined #ruby
zachallett has joined #ruby
<AntelopeSalad> does anyone know what would cause the $LOAD_PATH to not include my gem anywhere in its array?
Hanmac has quit [Ping timeout: 260 seconds]
<AntelopeSalad> i'm using $:.first in some spots and it works fine but in certain files it just grab another gem's path rather than its own
brunops has joined #ruby
LLKCKfan has joined #ruby
w1zeman1p has joined #ruby
yxhuvud has quit [Ping timeout: 247 seconds]
Xeago has quit [Remote host closed the connection]
Lewix has joined #ruby
Xeago has joined #ruby
<bnagy> why not just avoid messing with load path? It's hackery.
stringoO has quit [Quit: stringoO]
<bnagy> hackery leads to stuff not working
<snkcld> when i use serialize :blah, Array in one model, its working fine, but in another, it sees it as a string
<dorei> AntelopeSalad: the whole rubygem system is just a "smart" way of managing $:
<AntelopeSalad> bnagy: i'm trying to use a file in my gem
<AntelopeSalad> relative paths didn't seem to work in the case i was using it in
x77686d has joined #ruby
<bnagy> AntelopeSalad: then use require_relative
someword has quit [Quit: Leaving.]
<AntelopeSalad> it's not a require call, it needs to open the file and read it
yxhuvud has joined #ruby
mavcunha has joined #ruby
<AntelopeSalad> it's copying some contents of the file to stdout
rootshift has joined #ruby
<bnagy> :/ yeah that's kind of a pain
geggam has quit [Remote host closed the connection]
habanany has quit [Ping timeout: 260 seconds]
<bnagy> imho refactor so you can use require_relative
habanany1 has joined #ruby
Sawbones has quit [Remote host closed the connection]
<bnagy> embed the data into a simple wrapper
<AntelopeSalad> earlier someone said to use Gem::Specification.find_by_name('json').gem_dir
MyStartx has quit [Ping timeout: 245 seconds]
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
<AntelopeSalad> and this will work but man that's annoying to type hah
superscott[8] has quit [Quit: superscott[8]]
<AntelopeSalad> i'm really surprised there wasn't a way to somehow load the full path from a relative path
Xeago has quit [Ping timeout: 245 seconds]
<bnagy> there's __FILE__
<AntelopeSalad> would it stupid to declare something like FOO_DIR=Gem::Specification.find_by_name('json').gem_dir as a constant in my gem's entry point?
_Andres has joined #ruby
<AntelopeSalad> i would love to use relative paths all over internally in my gem if i could get away with it
chipotle has joined #ruby
nanoyak has quit [Ping timeout: 250 seconds]
x77686d has quit [Client Quit]
tjr9898 has quit [Remote host closed the connection]
v0n has joined #ruby
rayners has quit [Remote host closed the connection]
terrellt_ has joined #ruby
terrellt has quit [Ping timeout: 272 seconds]
kenneth has joined #ruby
terrellt_ has quit [Read error: Connection reset by peer]
terrellt_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
nanoyak has joined #ruby
mansi has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
terrellt_ has quit [Client Quit]
mansi has joined #ruby
lfox has quit [Quit: ZZZzzz…]
nszceta has joined #ruby
freezey has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
dorei has quit [Ping timeout: 250 seconds]
slash_nick is now known as spacepipe
dzhulk has joined #ruby
nanoyak has quit [Client Quit]
dzhulk has quit [Client Quit]
carlyle has joined #ruby
stkowski has joined #ruby
mansi has quit [Ping timeout: 250 seconds]
<Paradox> any recommendations for a web mocking gem? I've used VCR before
rainmanjam has quit [Remote host closed the connection]
jh_ has joined #ruby
axsuul has joined #ruby
<bricker> Paradox: I always use webmock
<havenwood> Paradox: WebMock seems to be the other popular alternative. Just mention it when you crosspost!
jh_ is now known as Guest5449
<Paradox> we used VCR at pivotal…2 years ago
<Paradox> on the project i was on anyway
<Paradox> but i was never too big a fan
<Paradox> thanks for the tips
<Paradox> ah, thoughtbot article on it
terrellt has joined #ruby
mojjojo has joined #ruby
cpruitt has quit [Quit: cpruitt]
carlyle has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has joined #ruby
mrevd has quit [Quit: Leaving.]
<SteveBenner09> Fire-Dragon-DoL: https://www.ruby-forum.com/topic/4422711#new
pushpak has quit [Quit: Linkinus - http://linkinus.com]
staticshock has joined #ruby
vlad_starkov has joined #ruby
MyStartx has joined #ruby
pixelgremlins_ba has joined #ruby
<staticshock> can i use rvm with a system ruby but a custom gemset?
v0n has quit [Ping timeout: 248 seconds]
e^0 has quit [Quit: WeeChat 0.4.2]
tylersmith has quit [Remote host closed the connection]
e^0 has joined #ruby
sailias has joined #ruby
<staticshock> i tried rvm use --create system@somegemset; gem install x; but it's trying to write the gems to /Library/Ruby/Gems/2.0.0
nZac has quit [Ping timeout: 245 seconds]
ephemerian has left #ruby [#ruby]
nanoyak has joined #ruby
pyk has joined #ruby
momomomomo has quit [Quit: momomomomo]
ElCapitanMarklar has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_starkov has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
<bnagy> there's #rvm, which might be more helpful
<bnagy> afaict rvm is now the least used version manager around here
gregf has quit [Quit: WeeChat 0.4.2]
Jdubs has quit [Remote host closed the connection]
<staticshock> i'm out of the loop. what's recommended?
<pyk> rbenv
<bnagy> chruby, probably
<staticshock> you guys are disagreeing
<havenwood> +1 chruby
<Paradox> welcome to ruby
madb055 has quit [Read error: Connection reset by peer]
sambao21 has quit [Client Quit]
<Paradox> all three are good
<SteveBenner09> chruby seems to be getting popular
<staticshock> chruby is winning by one vote!
madb055 has joined #ruby
<SteveBenner09> im on rbenv - is it good enough to replace rbenv?
<Paradox> pick which one you like
<Paradox> i like rbenv
<SteveBenner09> (to anyone who'se used it)
<havenwood> SteveBenner09: Yes.
<SteveBenner09> havenwood: haha ok. I'll have to give it a shot then
<staticshock> chruby still winning 3 to 2!
zachallett has quit [Remote host closed the connection]
samuelkadolph has joined #ruby
<bnagy> don't think rbenv has a gem switcher, so if you want that then it might be too light
rylinaux has joined #ruby
<bnagy> I don't
coca_rails has quit [Remote host closed the connection]
<SteveBenner09> gem switcher?
<SteveBenner09> Bundler?
<staticshock> bnagy: oh, yes, i love me some gem switchers
<havenwood> bnagy: and if you do, there's always chgems, gs, gst and ohmygems
<staticshock> thanks, that seals the deal
<postmodern> there's rbenv-gemsets, but apparently it kills your shells performance for some reason
TryX has joined #ruby
<bnagy> can you use chgems by itself?
<bnagy> cause it sounds like that's what you actually asked for
DrShoggoth has quit [Quit: Leaving]
<bnagy> s/you/staticshock/
<staticshock> is that *just* a gem switcher?
<havenwood> bnagy: not necessarily the others, but yeah for chgems (dunno)
txdv has quit [Ping timeout: 246 seconds]
<postmodern> bnagy, yep you can use chgems, ohmygems, gs, gst, individually
Hobogrammer has quit [Ping timeout: 245 seconds]