apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
<xxneolithicxx> inline if's and inline ternary assignment are great shorthands
ebbflowgo has quit [Quit: ebbflowgo]
triple_b has quit [Client Quit]
orolo has quit [Quit: This computer has gone to sleep]
Malcolm has joined #ruby
enebo has quit [Quit: enebo]
<shevy> I find that ternary compacts too much information
sonOfRa is now known as aRfOnos
<shevy> if foo? ? bar? : yo?
<shevy> hmm ignore the leading if there
<shevy> the ? made me dizzy
hiall has joined #ruby
charliesome has quit [Quit: zzz]
thiagofm has joined #ruby
<xxneolithicxx> its ugly when used with ruby's ? method convention but otherwise a great alternative to an unnecessary if/else for assignment
Malcolm has quit [Killed (idoru (Spam is off topic on freenode.))]
<xxneolithicxx> variable = condition ? true_val : falsy_val
olivier_bK has quit [Ping timeout: 264 seconds]
pengin has joined #ruby
o0oo0o has quit [Remote host closed the connection]
o0oo0o has joined #ruby
michaeldeol has joined #ruby
aspires has quit []
narcan has joined #ruby
havenwood has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
aspires has joined #ruby
triple_b has joined #ruby
lucyinthesky is now known as faithfuldog
AlexRussia has joined #ruby
faithfuldog is now known as lucyinthesky
|\|370 has joined #ruby
Mattx has joined #ruby
<Mattx> Hi
FutureTense has quit [Ping timeout: 264 seconds]
<Mattx> I'm using nokogiri to parse some pages that I downloaded using curb
<Mattx> is there a way to run the js code before that?
<Mattx> there are some tags that are created by js when the page loads, I'm missing all those tags
lucyinthesky has quit [Read error: Connection reset by peer]
thiagofm has quit [Ping timeout: 240 seconds]
Tranquility has quit [Quit: Connection closed for inactivity]
Joufflu_ has joined #ruby
<pontiki> use something like phantomjs
Joufflu_ has quit [Read error: Connection reset by peer]
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
CpuID has joined #ruby
CpuID has joined #ruby
Joufflu_ has joined #ruby
forgetful-lucy has joined #ruby
aspires has quit []
omarkj has left #ruby [#ruby]
Joufflu has quit [Ping timeout: 252 seconds]
larissa has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davasaurous has quit [Remote host closed the connection]
carif has joined #ruby
davasaurous has joined #ruby
giuseppesolinas has joined #ruby
baweaver has quit [Remote host closed the connection]
econerd4ever has joined #ruby
AlexRussia has quit [Ping timeout: 258 seconds]
shvelo has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
aRfOnos is now known as sonOfRa
linelevel has joined #ruby
frem_ has joined #ruby
arclitgold has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has joined #ruby
Mattx has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nkumari has quit [Remote host closed the connection]
chipotle has quit [Remote host closed the connection]
chipotle has joined #ruby
sk87 has joined #ruby
pandaant has quit [Remote host closed the connection]
<frem_> I want to use a single method in a module. Right now I'm adding that method to my class using `include ActionView::Helpers::TextHelper` and calling it via `truncate("some text")`. I don't like how it's not immediately obvious that the method isn't coming from TextHelper. Is there some way to call it like `TextHelper.truncate` without including a bunch of
<frem_> other helpers?
mbff has joined #ruby
<mbff> How do I install a gem so I can modify the source
Joufflu_ has quit [Read error: Connection reset by peer]
nkumari has joined #ruby
dc_ has joined #ruby
<mbff> I want to download a gem to a directory and modify it.
<eam> mbff: gem contents will show you the actual file locations
<eam> but you probably want to find where its source control is hosted and work from that
<waxjar> frem_: include ActionView::Helpers
<eam> have you looked at the metadata to see?
<mbff> hmmm? Sorry I am new to ruby
<frem_> waxjar: doesn't that also load every other helper in ActionView?
wallerdev has quit [Ping timeout: 244 seconds]
<banisterfiend> waxjar no..
konsolebox has joined #ruby
<waxjar> the constants are accessible, yes
wallerdev has joined #ruby
<banisterfiend> waxjar but the method is not accessible :)
<banisterfiend> so it's uselss to do that afaict
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<eam> mbff: gem specification, does it have a homepage? is it on github?
xymbol_ has quit [Quit: Be back later ...]
<waxjar> he wants to access it like Module.method, no?
<banisterfiend> waxjar yeah, but ti's not a class method, it's an instance method
wallerdev has quit [Client Quit]
<banisterfiend> waxjar nor is it a module_function
<waxjar> ah, i see
<eam> mbff: grab that, `gem build pirata.gemspec`
<eam> after making your changes
<waxjar> make it a module_function then :P
<banisterfiend> frem_ u can do this, but it's lame: text_helper = Object.new.tap { |x| x.extend ActionView::Helpers::TextHelper }
<banisterfiend> frem and then: text_helper.truncate()
<mbff> so git clone, make changes, run the command and then just require it like normal and require will use the changed version?
hiall has quit [Quit: hiall]
mloveles_ has joined #ruby
<eam> mbff: gem install the resulting gemfile that gem build will create
<eam> then, yes
<mbff> alright thanks
mloveles_ has quit [Remote host closed the connection]
<banisterfiend> frem_ basically though, ther'es no way. TextHelper is a mixin, it's not designed to be used in the way you say
mikepack has quit [Remote host closed the connection]
RyanV has joined #ruby
<frem_> mbff: If you're using bundler, you can also just point your Gemfile at your git repo.
jalopezsilva has joined #ruby
<frem_> banisterfiend: oh, well. thanks!
mloveless has quit [Ping timeout: 255 seconds]
<mbff> I am using bundler for my project...
supersymmetry has quit [Ping timeout: 264 seconds]
t0rc has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spastorino has quit [Quit: Connection closed for inactivity]
<frem_> mbff: the docs are over thisaway, if you want to do it. http://bundler.io/git.html
<mbff> thanks
maletor has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
sevenseacat has joined #ruby
arclitgold has joined #ruby
enebo has joined #ruby
jalopezsilva has quit [Ping timeout: 264 seconds]
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
mloveless has joined #ruby
zz_jrhorn424 is now known as jrhorn424
maletor has joined #ruby
Scriptonaut has joined #ruby
michaeldeol has joined #ruby
pengin has quit [Remote host closed the connection]
<Scriptonaut> anyone know why "require 'taglib'" won't work? it says: cannot load such file -- taglib (LoadError). I did gem install taglib-ruby (successfully), and I include rubygems before it
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
lbrf has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
anaeem1_ has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
sklik has joined #ruby
anaeem1 has joined #ruby
ghostmoth has joined #ruby
doug2 has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
pwh has joined #ruby
<jhass> the later is done automatically since ruby 1.9
davasaurous has quit [Remote host closed the connection]
<jhass> your ruby most likely runs in a different environment than your gem command
<jhass> check gem env
ghostmoth has quit [Client Quit]
<jhass> and compare for example to ruby --version
<jhass> also a good check is head -1 $(which gem)
Musashi007 has quit [Read error: Connection reset by peer]
<Radar> Scriptonaut: Where are you doing the require?
Galas has quit []
<jhass> also check what path gem which taglib reports, compared to your ruby version
forgetful-lucy has left #ruby ["Leaving"]
jrhorn424 is now known as zz_jrhorn424
dc_ has quit [Remote host closed the connection]
<Scriptonaut> oh, I iddn't se eyou guys replied, let me gist it
dfinninger has joined #ruby
havenn has joined #ruby
RyanV has quit [Quit: (null)]
<Scriptonaut> that's the entire file
anaeem1 has quit [Ping timeout: 272 seconds]
<Radar> Scriptonaut: Is this a plain Ruby script? no Bundler?
<Scriptonaut> ya, just rb
<Radar> Scriptonaut: And yeah, double check what jhass said.
havenwood has quit [Ping timeout: 250 seconds]
davasaurous has joined #ruby
Musashi007 has joined #ruby
<Scriptonaut> jhass, so my gem version is 1.8.23, the ruby version that "gem env" spits out is 1.9.3. My ruby --version is 1.9.3p44
<jhass> that's all a bit dated but seem to match so far
<jhass> what's which gem and which ruby ?
louism2wash has joined #ruby
phutchins has joined #ruby
<jhass> and does gem which taglib actually report a path?
boombadaroomba has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
<Scriptonaut> ERROR: Can't find ruby library file or shared library taglib
zz_jrhorn424 is now known as jrhorn424
<jhass> did the gem install taglib-ruby actually succeed?
mices has joined #ruby
<jhass> try running it again, pay attention to the output
SCHAAP137 has quit [Quit: Leaving]
<mices> i need to install mysql-ruby on fbsd is it not available through ports?
oo_ has quit [Read error: Connection reset by peer]
<jhass> that sounds like a #freebsd question
digdeep has joined #ruby
digdeep has left #ruby [#ruby]
<mices> yea it didnt get answered there yet
<Scriptonaut> oh god I'm an idiot
<shevy> OH YES YOU ARE
Spami has quit [Quit: This computer has gone to sleep]
<Scriptonaut> you have to install taglib first, it's just a binding :P
quimrstorres has quit [Remote host closed the connection]
<Scriptonaut> thanks jhass
SCHAAP137 has joined #ruby
oo_ has joined #ruby
<jhass> isn't that at the top of their site? :P
dfinninger has quit [Ping timeout: 244 seconds]
<mices> is "gem install mysql" depracted?
<Scriptonaut> I was just following some random tutorial on the web
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass> yeah
michaeldeol has quit [Read error: Connection reset by peer]
<mices> i mean depracated even
<jhass> official docs ftw ;)
<mices> jhass: that was me?
<jhass> no
<jhass> and it's not afaik
byprdct has quit [Ping timeout: 245 seconds]
<jhass> though most people use the mysql2 gem these days
<havenn> mices: like?: ruby20-mysql
Scriptonaut has quit [Quit: leaving]
<mices> i had an ebook agile web dev with rails i updated the book and "gem install mysql" has been removed from the newer edition
exadeci has quit [Quit: Connection closed for inactivity]
<sevenseacat> and what does it say instead?
<mices> jhass: that's a command? "mysql2 gem"
<jhass> no, it's a gem, obviously
yetanotherdave has quit [Ping timeout: 264 seconds]
<jhass> pretty sure your book explains what that is
<havenn> like the rubygem-mysql2 package rather than the rubygem-mysql package
<sevenseacat> though with AWDWR, who knows
<havenn> mices: what does the book now say?
<mices> The following are the available database adapters and the links to their
<mices> respective home pages:
<jhass> did you visit at least one of them
<mices> yea
<jhass> what do they say about installing them?
<mices> i just wanna make sure i can't do it through ports first
mengu has quit []
<mices> they have downloads i can dl and install
<jhass> still claim that part is a #freebsd question
<jhass> I *
<havenn> mices: but yes, you can - go forth an rubygem
michaeldeol has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<sevenseacat> 'the book tells me to do something, can i do it????'
<mices> ok i found rubygem-mysql2 in fbsd ports collection
<mices> it'll work with any mysql ver?
<sevenseacat> why the crap are you installing gems from something other than rubygems
AlexRussia has joined #ruby
<mices> cause i'm new and don't know what gems are yet
freerobby has joined #ruby
michaeldeol has quit [Client Quit]
<mices> gem is still just a word to me
bkolden has joined #ruby
<sevenseacat> yay for shitty books
<mices> i dunno why "gem install mysql" was removed from the book
<mices> ty
<sevenseacat> because mysql isnt the gem to use anymore
<mices> what's the gem to use?
<sevenseacat> what gem does the book tell you to use?
michaeldeol has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
<sevenseacat> this is the third time youve been asked
wjimenez_ has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
davasaurous has joined #ruby
<havenn> mices: typically you'd `gem install mysql2` to install the mysql2 gem
<mices> it doesn't, it tells me to download mysql-ruby-2.8pre4.tar.gz and then run "ruby extconf.rb" and then "make"
<sevenseacat> i'm rally hoping the book isnt that retarded.
<sevenseacat> *really
<sevenseacat> i knew it was a bad book, but i hope its not that bad.
midhir has quit [Remote host closed the connection]
<mices> why is the "official" book always the bad one
<mices> ty
<sevenseacat> its not 'the official' book.
<sevenseacat> there is no official book.
maletor has joined #ruby
<sevenseacat> ...though i see now it is prominently featured on the rails site. sigh.
Spami has joined #ruby
<sevenseacat> the community will always know the best books. AWDWR is one we warn against.
michaeldeol has quit [Read error: Connection reset by peer]
narcan has joined #ruby
marr has quit [Ping timeout: 264 seconds]
redjack1964_ has joined #ruby
<mices> i see, thanks
<shevy> it's a very wise cat
mary5030 has joined #ruby
quimrstorres has joined #ruby
lucyinthesky has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Deele has quit [Ping timeout: 260 seconds]
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
redjack1964 has quit [Ping timeout: 256 seconds]
chipotle has quit [Ping timeout: 264 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
tus has quit [Ping timeout: 264 seconds]
lyanchih_ has joined #ruby
jimbach has quit [Remote host closed the connection]
iamninja has quit [Remote host closed the connection]
rshetty has joined #ruby
chipotle has joined #ruby
<mices> got it installed thanks
<mices> now i can get on with this bad book
<mices> i hope these examples work
<mices> what's the good book?
lucyinthesky has left #ruby ["Mensagem"]
lucyinthesky has joined #ruby
Ysgard has quit [Remote host closed the connection]
<sevenseacat> we like to recommend Rails 4 in Action, because some of us wrote it.
luckyruby has joined #ruby
lbrf has quit [Quit: Be back later ...]
michaeldeol has joined #ruby
b3itz has joined #ruby
lucyinthesky has left #ruby ["Mensagem"]
davasaurous has quit [Ping timeout: 264 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
jrhorn424 is now known as zz_jrhorn424
Joufflu has joined #ruby
tkuchiki has joined #ruby
fabrice31 has joined #ruby
<b3itz> https://gist.github.com/anonymous/a1110c17a8487e1213b2 How do I get each string to rjust(3, "0")... I cant get it to come back right
wjimenez5271 has joined #ruby
AndyBotwin has joined #ruby
Akagi201 has joined #ruby
rshetty has quit [Remote host closed the connection]
<b3itz> eam:
aspires has quit []
econerd4ever has quit [Remote host closed the connection]
<b3itz> >>
<eval-in__> b3itz => nil (https://eval.in/230161)
coderhs has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<eam> b3itz: your intention is messed up. If you fix it, I will help
VBlizzard has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
<eam> I think if you fix it your problem might present itself more clearly
<b3itz> how so eam
<eam> well, try it and see
<b3itz> my intention is messed up?
triple_b has joined #ruby
<eam> hah, sorry. indention
<b3itz> oh lol. yeah i know
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Akagi201_ has quit [Ping timeout: 255 seconds]
goodenough has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 272 seconds]
havenn has quit [Ping timeout: 250 seconds]
tokik has joined #ruby
<mices> sevenseacat: do you have a download link?
<sevenseacat> !r4ia
<helpa> Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Steve Klabnik, Ryan Bigg, Yehuda Katz
xymbol_ has joined #ruby
<mices> ty
Dopagod has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
xiq_ has joined #ruby
carif_ has joined #ruby
<b3itz> >>
<eval-in__> b3itz => nil (https://eval.in/230162)
St_Marx has quit [Ping timeout: 250 seconds]
<banisterfiend> sevenseacat lol how did stevek get his name first in that link, when it's last on the book itself
<banisterfiend> that guy...
<mices> how much is the ebook?
<sevenseacat> did you click the link?
sinequanon has quit []
<mices> sorry nevermind
<banisterfiend> sevenseacat yep
<eam> b3itz: so, what is it doing that you don't like? can you describe what you get from that method, and what you expect?
<mices> that is the ebook
econerd4ever has joined #ruby
carif has quit [Ping timeout: 252 seconds]
<sevenseacat> yeah i dunno about the order of names on the book
lucyinthesky has joined #ruby
<sevenseacat> i'm amazed yehuda's name is still on the book
<mices> o i see, it includes the ebook, can i buy just the ebook?
<sevenseacat> yes.
quimrstorres has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 255 seconds]
<banisterfiend> sevenseacat he probalby wrote a tonne of the original content and they've just rejigged it for later rails versions
<mices> where's the order link?
<sevenseacat> banisterfiend: afaik he didnt write any of it.
<b3itz> eam: I'm getting ["192" "168" "240" "4"] whereas I would like it formatted [192.168.240.004]
<sevenseacat> mices: on the page i linked you to.
<banisterfiend> sevenseacat ah ok, marketing ploy then :)
xiq__ has quit [Ping timeout: 264 seconds]
<sevenseacat> banisterfiend: yeah i reckon
<banisterfiend> sevenseacat did ryan tell you that?
<sevenseacat> yeah
<banisterfiend> interesting
<b3itz> aray
<b3itz> so from that string array, i need to rjust and then join it back into an arry
<eam> b3itz: to_s returns that array-as-string sytax
<eam> syntax
xymbol_ has quit [Ping timeout: 256 seconds]
<eam> what you probably want is to rjust each array element individually
<eam> and then join "."
<b3itz> right
davasaurous has joined #ruby
robustus has joined #ruby
<b3itz> do i need to iterate each string in the array and rjust each one?
<eam> yes. one way to do that is with map
larissa has quit [Quit: Leaving]
Mongey has joined #ruby
rshetty has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
<eam> >> ["a", "b"].map {|str| str.rjust(3, '0').join '.'
<eval-in__> eam => /tmp/execpad-85cb1ab4073e/source-85cb1ab4073e:3: syntax error, unexpected keyword_rescue, expecting '}' ... (https://eval.in/230163)
<eam> >> ["a", "b"].map {|str| str.rjust(3, '0') }.join '.'
<eval-in__> eam => "00a.00b" (https://eval.in/230164)
<eam> b3itz: also, your "return" may be in the wrong place. Do you really want to return inside your loop?
<b3itz> no that was for testing
Azure has quit [Quit: My MBP went to sleep.]
<eam> k
<b3itz> im looking into the map thingy here
sklik has quit [Remote host closed the connection]
moritzschaefer has quit [Ping timeout: 240 seconds]
checkit has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
davedev2_ has joined #ruby
<b3itz> nice eam thats perfect
davedev24_ has quit [Ping timeout: 264 seconds]
<b3itz> so walk me through the array.map{\... .just(3... does
<b3itz> like what exactly does the map do
michaeldeol has joined #ruby
aspires has joined #ruby
<b3itz> eam: and now i have to create a hash to keep track of how many times that IP address shows up
<eam> b3itz: you understand array.each {} ?
<b3itz> i mean, that just walks through each element right?
mikepack has joined #ruby
<eam> right. So, if each block returns a value and that new list of returned values becomes another Array, which is returned - that's map
<eam> it's a way to transform one array to another given a function
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> >> [1,2,3].map {|n| n * n}
<eval-in__> eam => [1, 4, 9] (https://eval.in/230165)
<eam> does that make sense?
silkfox has joined #ruby
Azure has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<b3itz> ohhh yes
<b3itz> so youre basically storing n as that element
zB0hs has joined #ruby
<b3itz> i see
<eam> just like each { |n|
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<eam> foo.each {} just returns foo
<eam> foo.map {} returns a new Array with each element as the result of the block
<b3itz> oh neat!
<b3itz> and its all in one line all nice and pretty :)
tandoshi has quit [Ping timeout: 245 seconds]
mikepack has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
duncannz has joined #ruby
<mices> sevenseacat: i see dl links for source code and chapter 1
maletor has quit [Quit: Computer has gone to sleep.]
<mices> i dont see how to get just the ebook
<mices> i see meaps
<mices> meap+ebook
<mices> is that it?
<sevenseacat> yes.
jalopezsilva has joined #ruby
<mices> ty
zz_jrhorn424 is now known as jrhorn424
Mothore has joined #ruby
<mices> trade you a pdf of awdwr?
lampd1 has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<sevenseacat> i dont condone piracy.
davedev2_ has quit [Ping timeout: 264 seconds]
fisch has joined #ruby
SCHAAP137 has joined #ruby
davedev24_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
wjimenez5271 has quit [Remote host closed the connection]
<shevy> mices you could try with chocolate mice
jonr2219 has joined #ruby
jalopezsilva has quit [Ping timeout: 244 seconds]
<shevy> and I just notice that you have a very clever IRC nick
krz has joined #ruby
<shevy> or perhaps not...
<mbff> I just installed the deluge ruby gem and got this error. http://pastebin.com/xAKiQ6vG Any ideas?
<mices> i should try what with chocolate mice?
Fire-Dragon-DoL has quit [Quit: Leaving.]
<b3itz> eam: can you give me a quick hand with the incremental hash?
rshetty has quit [Remote host closed the connection]
<shevy> mices why, trading of course
wjimenez5271 has joined #ruby
<shevy> mbff you try to install rencode?
<mices> bbl
<mices> ty
mices has left #ruby [#ruby]
<shevy> mbff don't think this is real: http://rubygems.org/gems/deluge
<shevy> no dependencies specified; sounds fishy
lemur has joined #ruby
<shevy> so how can it want rencode
<shevy> here is rencode http://rubygems.org/gems/rencode
jonr2219 has quit [Client Quit]
snowpeas has quit [Ping timeout: 252 seconds]
nkumari has quit [Remote host closed the connection]
<mbff> I installed rencode and got this
<mbff> main.rb:9:in `require': cannot load such file -- deluge (LoadError)
<mbff> from main.rb:9:in `<main>'
<mbff> so less errors this time.
<shevy> lol
<eam> b3itz: sure, share your code?
<shevy> so wat mbff
gee_totes has joined #ruby
<shevy> rencode wants deluge
adriancb has quit [Ping timeout: 250 seconds]
<shevy> and deluge wants rencode
<shevy> mbff do you see that your errors can not make much sense? this is a circular dependency you are describing
<shevy> mbff ah
<shevy> mbff well try to install deluge again
chipotle has quit [Quit: cya]
<mbff> bundle or gem install?
<shevy> now you should have fulfilled rencode dependency
<shevy> no idea about bundler, I never use it
<sevenseacat> lol at never using bundler
frem_ is now known as frem
<sevenseacat> you poor thing
adriancb has joined #ruby
davasaurous has quit [Remote host closed the connection]
<shevy> what for
<b3itz> eam: ummm... not that far yet lol
<mbff> same error after "gem install deluge"
davasaurous has joined #ruby
davasaurous has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
<b3itz> eam: do i create a new empty hash, then add each string with a value of 1?
<shevy> mbff yeah I think that gem is broken; gems normally have specified their dependencies properly where you can see them online at rubygems.org too, that gem however does not list a dependency on rencode at all so the guy who wrote it possibly did not know what he was doing
<b3itz> a key of 1
<eam> b3itz: that should be fine, sure
<mbff> alright anyway I can fix it, I really need deluge for my project
mloveless has quit [Remote host closed the connection]
<eam> b3itz: or rather, you want to increment by one. right?
<b3itz> yes
mloveless has joined #ruby
jimbach has joined #ruby
<b3itz> test
<b3itz> >>
<eval-in__> b3itz => nil (https://eval.in/230166)
<sevenseacat> sigh
<b3itz> dammit i dropped my internet eam
<shevy> lol
<eam> your internet is running
<eam> better go catch it
<b3itz> >.<
<b3itz> ;p;
<b3itz> lol
chipotle has joined #ruby
zmisc has joined #ruby
<b3itz> eam: would i create the hash outside that matchArray def
<b3itz> ?
bricker`work has quit [Ping timeout: 245 seconds]
aspires has quit []
wjimenez5271 has quit [Remote host closed the connection]
aspires has joined #ruby
jonahR has quit []
jenrzzz has quit [Ping timeout: 255 seconds]
rshetty has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
roolo has joined #ruby
kyle__ has quit [Ping timeout: 245 seconds]
aspires has quit [Client Quit]
davedev24_ has quit [Ping timeout: 255 seconds]
davedev2_ has joined #ruby
<b3itz> did it again... wtf
tus has joined #ruby
t0rc has quit [Quit: WeeChat 1.0.1]
Megtasti_ has joined #ruby
zz_jrhorn424 is now known as jrhorn424
zmisc has quit [Remote host closed the connection]
michaeldeol has joined #ruby
jherbst has joined #ruby
zmisc has joined #ruby
zmisc has quit [Client Quit]
roolo has quit [Ping timeout: 256 seconds]
zmisc has joined #ruby
jbw has quit [Ping timeout: 264 seconds]
<eam> b3itz: what's the scope in which you intend to use it? Pick the smallest possible scope that's large enough
yourname has quit [Quit: leaving]
<shevy> this is so cool
<shevy> the perl guru eam is training the young ruby generation
jbw has joined #ruby
sevvie has joined #ruby
Megtastique has quit [Ping timeout: 252 seconds]
<eam> I'm a ruby guru no one uses perl anymore
<rpag> in 10 years, no one uses ruby?
<shevy> nah, there are still many in bioinformatics, will be hard to convince them... because bioperl is actually better than bioruby by far :(
<eam> oh it'll be less than 10
<shevy> what will they be using in 10 years?
<rpag> what do you think will replace it
<jhass> crystal! (scnr)
<eam> well, perl's better than ruby at webapps too but that switched over
<shevy> rpag javascript
poguez has quit [Quit: Connection closed for inactivity]
<rpag> i would put my dollah on javascript as well
abuzze_ has joined #ruby
<b3itz> eam: im going to do it after that def returns the string
<eam> well hopefully I will be both retired and no longer reliant on technology in 10 years >:(
jrhorn424 is now known as zz_jrhorn424
freerobby has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<work_op> lua...
jrhorn424 is now known as zz_jrhorn424
<eam> b3itz: your assignment to ip_hash
<eam> that doesn't increment
<b3itz> i know
<b3itz> is it right up till then?
<banisterfiend> rpag i think dart might take off actually, and rust
abuzze has quit [Ping timeout: 258 seconds]
<eam> b3itz: looks pretty ok
scrogson has left #ruby ["Auf Wiedersehen"]
<eam> banisterfiend: not go, though
<banisterfiend> nah, not go IMO, though it's not doing too badly
<banisterfiend> but we're talking +10 years from now
<eam> yeah
<eam> agree
<b3itz> eam: ok, where that 1 is.. what do i need to do to make like a key+1
<eam> foo = foo + 1
dfinninger has joined #ruby
<eam> b3itz: suggest also starting from zero, not one
<b3itz> ok so now i need to know if that string is already in the hash, then increment 1
michaeldeol has quit [Read error: Connection reset by peer]
<eam> b3itz: or just start at zero
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
vinleod has joined #ruby
jlast_ has joined #ruby
<b3itz> eam: if hash DOES NOT INCLUDE 'ip_string'
<b3itz> how would i write that
kyle__ has joined #ruby
<eam> b3itz: you mean, as a key?
<b3itz> ip_hash.!include?('ip_string')
jenrzzz has joined #ruby
<b3itz> i want to see if they key already exists in that hash, if not, create it and add a key of 1
snath has joined #ruby
<eam> b3itz: the expression is ip_hash.include?() and then you'd invert it
<eam> so the ! would be the first thing
mary5030 has quit [Remote host closed the connection]
<eam> but you shouldn't do that
<eam> b3itz: Hash.new(0)
<eam> what happens when you change that?
mary5030 has joined #ruby
dfinninger has quit [Ping timeout: 244 seconds]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<b3itz> eam: it makes the default key 1 or whatever you choose
bkolden has quit [Quit: Leaving]
<eam> right. So because you're starting from one you have to special case the first time through, right?
jlast has quit [Ping timeout: 258 seconds]
<eam> but if you start from zero ...
Xiti` has joined #ruby
tyfighter has joined #ruby
michaeldeol has joined #ruby
Mattx has joined #ruby
Mattx has joined #ruby
<b3itz> oh
michaeldeol has quit [Client Quit]
<parabolize> b3itz: this is going off your first gist but I think the variable names need some changes: http://pastie.org/private/vtbbqtzivc67zef1gskfa
<b3itz> 0 + 1 = 1
Xiti` has quit [Read error: Connection reset by peer]
<eam> b3itz: right
jarjar_prime has joined #ruby
jlast_ has quit [Ping timeout: 258 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snowpeas has joined #ruby
<b3itz> eam: so how do i get +1 in there rather than an integer
<eam> b3itz: not sure what you mean, can you ask with more context?
<eam> (use code?)
<b3itz> well.. let me take a step back eam
<b3itz> if the ip_string is NOT in the hash...
<b3itz> i need that first
mary5030 has quit [Ping timeout: 255 seconds]
<eam> why?
<b3itz> because if the ip_string is NOT in the hash, then create new hash element and +1
Xiti has quit [Ping timeout: 272 seconds]
NoNMaDDeN has joined #ruby
devdazed has joined #ruby
<b3itz> eam: this part is confusing me
xymbol_ has joined #ruby
<eam> >> h = Hash.new(0); h["foo"] = h["foo"] + 1; h
<eval-in__> eam => {"foo"=>1} (https://eval.in/230167)
jalopezsilva has joined #ruby
snath has quit [Ping timeout: 256 seconds]
<eam> b3itz: consider how you might write it without special casing the first time through
<eam> but if you really want to: if not hash.include?(thing)
<b3itz> ip_hash.has_key?(ip_string)
<b3itz> ?
<eam> yes
<b3itz> boom
<b3itz> thank you stackoverflow
<eam> b3itz: same as include?
<eam> include? and has_key? are aliases to the same method
Photism has quit [Quit: Leaving]
silkfox has quit [Ping timeout: 258 seconds]
<b3itz> why am i getting an undefined method? if ip_hash.has_key?('ip_string') == false
devdazed has quit [Quit: Computer has gone to sleep.]
xymbol_ has quit [Ping timeout: 245 seconds]
<eam> b3itz: what is the full error?
<eam> don't read selectively, read the entire line (or paste the entire line)
claptor has joined #ruby
<b3itz> syntax error, unexpected '=', expecting keyword_then or ';' or '\n' if ip_hash.has_key?('ip_string') = false
<b3itz> eam:
<eam> = vs ==
<b3itz> ok fixed that and got?
<b3itz> :
<b3itz> `block in <main>': undefined method `has_key?' for 0:Fixnum (NoMethodError) from Assignment5.rb:24:in `each_line' from Assignment5.rb:24:in `<main>'
jimbach has quit [Remote host closed the connection]
<eam> b3itz: reading the whole line, what do you think it means?
SCHAAP137 has quit [Quit: Leaving]
tyfighter has quit [Quit: tyfighter]
<b3itz> oh
<b3itz> that makes no sense
Xiti has joined #ruby
<eam> >> 0.has_key? "whatever"
<eval-in__> eam => undefined method `has_key?' for 0:Fixnum (NoMethodError) ... (https://eval.in/230168)
<b3itz> if false == false lol
sargas has quit [Quit: Leaving]
`ph8 has quit [Ping timeout: 240 seconds]
lucyinthesky is now known as angie
angie is now known as lucyinthesky
<b3itz> i dont get the logic for writing this line
<b3itz> eam:
graydot has quit [Quit: graydot]
evanjs has joined #ruby
<b3itz> i think i got it..
<centrx> >> %i(C a n y o u).map { |it| it }
<eval-in__> centrx => [:C, :a, :n, :y, :o, :u] (https://eval.in/230169)
rshetty has quit [Ping timeout: 264 seconds]
jalopezsilva has quit [Ping timeout: 245 seconds]
b3itz_ has joined #ruby
<banisterfiend> >> %i(C a n y o u).map(&:itself)
<eval-in__> banisterfiend => undefined method `itself' for :C:Symbol (NoMethodError) ... (https://eval.in/230170)
<b3itz_> >.< sorry eam
b3itz has quit [Ping timeout: 246 seconds]
<IceDragon> Whats going on now :O
<IceDragon> >> %i(C a n y o u)
<eval-in__> IceDragon => [:C, :a, :n, :y, :o, :u] (https://eval.in/230171)
duncannz has quit [Quit: Leaving]
<b3itz_> eam:
<b3itz_> whoops.. so if i need to increment a specific key..
Cache_Money has joined #ruby
<IceDragon> b3itz: hash[key] += 1
<IceDragon> b3itz_ ^
fisch has left #ruby [#ruby]
<b3itz_> IceDragon: i misspoke.. i need to increment the key of a matching elemetn
arrubin has quit []
Musashi007 has joined #ruby
<IceDragon> if the key matches something, then increment the value?
<IceDragon> iterate the keys.
<IceDragon> >.>
ph8 has joined #ruby
MattB2 has quit [Remote host closed the connection]
<b3itz_> yes
<IceDragon> hash.each_key { |key| hash[key] += 1 if key == something }
henesy has joined #ruby
boombadaroomba has joined #ruby
damic has quit [Ping timeout: 264 seconds]
melik has joined #ruby
<b3itz_> ice
<b3itz_> line 23 on
mloveless has quit [Remote host closed the connection]
epitron is now known as Epitron
weaksauce has quit [Ping timeout: 245 seconds]
djbkd has quit [Quit: My people need me...]
<eam> >> def method_missing(*f) "I can't even"; end; %i{c a n u e v e n}.map(&:to_proc).map{|f| send f}
<eval-in__> eam => ["I can't even", "I can't even", "I can't even", "I can't even", "I can't even", "I can't even", "I can't even", "I can't even"] (https://eval.in/230172)
razieliyo has quit [Quit: Saliendo]
renderful has joined #ruby
sk87 has joined #ruby
<centrx> >> p "as", "if" if "as" if "as"
<eval-in__> centrx => /tmp/execpad-5179899b08dc/source-5179899b08dc:2: warning: string literal in condition ... (https://eval.in/230173)
agrinb has joined #ruby
St_Marx has joined #ruby
<eam> >>$VERBOSE=nil; p "as", "if" if "as" if "as"
<eval-in__> eam => /tmp/execpad-837902b742db/source-837902b742db:2: warning: string literal in condition ... (https://eval.in/230176)
boombadaroomba has quit [Ping timeout: 264 seconds]
<mbff> Hello! Can someone help me create a json post request with httpparty?
Epitron is now known as epitron
<eam> >>$VERBOSE=nil; eval %{p "as", "if" if "as" if "as"}
<eval-in__> eam => "as" ... (https://eval.in/230184)
sklik has joined #ruby
<mbff> At least a starting point since I know IRC users hate doing all the work for people
<centrx> gah more work for people
tyll has quit [Ping timeout: 272 seconds]
JoshGlzBrk has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
davasaurous has joined #ruby
<eam> actually I love working for people
tyll has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
<eam> probably related to getting paid by people though hmm
wsmoak has quit [Quit: wsmoak]
TomyWork has quit [Ping timeout: 250 seconds]
<b3itz_> how can i create a hash value from a string variable?
<b3itz_> using default value
<eam> mbff: try formulating your question along the lines of what's recommended here: http://www.catb.org/esr/faqs/smart-questions.html
<eam> b3itz_: what's a hash value?
kapil__ has joined #ruby
<b3itz_> the default is 0
<centrx> b3itz_, You mean you don't want the same string variable to keep being re-used in all the hash values?
maestrojed has joined #ruby
Cyberheb has joined #ruby
<xxneolithicxx> is there any libs for using XSD files to generate ruby objects for creating XML
<b3itz_> centrx: what i mean is i need to just create a new key with the default value. the key will be a string variable ip_string
louism2wash has joined #ruby
<soahccc> eam: I wouldn't mind work for and getting paid by Glados. The only thing is the neurotoxin :/
davasaurous has quit [Ping timeout: 255 seconds]
<centrx> b3itz_, my_hash[my_hash.default] = ip_string ?
<eam> my_hash[ip_string] = my_hash.default
<parabolize> b3itz_: you do realize ipString in your last gist only returns the first address?
<IceDragon> actually, what the ffffff did I just write
<eam> or the amusing and confusing my_hash[ip_string] = my_hash[ip_string]
<eam> I like the confusing version because it seems like you can remove that line, but no
patrick99e99 has quit [Ping timeout: 250 seconds]
philwantsfish has joined #ruby
<IceDragon> basically that code is saying: if the ip_hash, has the key found in the file, set it to 0, the ip_hash is empty to begin with O_o;
<soahccc> haha we got one of these as well... I put a comment to reduce confusion but I always think "what does that for god sake"
echooo1 has joined #ruby
<IceDragon> eam: the ipString would make sense if only one ip was on each line..
echooo has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
<eam> b3itz_: why is 'ip_string' a string literal?
taiansu has quit [Read error: Connection reset by peer]
<b3itz_> eam: ?
<eam> why do you even have that if statement?
taiansu has joined #ruby
<b3itz_> eam: explain
<eam> Hash.new(0) means you automatically have a default value of 0
fabrice31 has joined #ruby
<eam> you don't need that conditional
<eam> b3itz_: just increment ip_hash[ip_string]
<mbff> alright here is a specific question. Why is this happening?
<mbff> syntax error, unexpected ':', expecting =>
<eam> mbff: are you using ruby 1.8?
troyready has quit [Ping timeout: 264 seconds]
<IceDragon> mbff: : mapping only works with symbols
<mbff> ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
nyanz has joined #ruby
<IceDragon> >> { 1: 2 }
<eval-in__> IceDragon => /tmp/execpad-a0823f35729f/source-a0823f35729f:2: syntax error, unexpected ':', expecting => ... (https://eval.in/230197)
<IceDragon> >> { symbol: 2 }
<eval-in__> IceDragon => {:symbol=>2} (https://eval.in/230199)
<IceDragon> >> { "string": 2 }
<eval-in__> IceDragon => /tmp/execpad-cb5a99af60c4/source-cb5a99af60c4:2: syntax error, unexpected ':', expecting => ... (https://eval.in/230200)
<IceDragon> @ mbff
<mbff> yes....
maestrojed has quit [Quit: Computer has gone to sleep.]
nkumari has joined #ruby
<mbff> I am writing json, why do I need to use => ?
centrx has quit [Ping timeout: 272 seconds]
<IceDragon> because ruby?
<IceDragon> would you happen to be using something like rabl to generate json?
<mbff> alright
<mbff> no.... just copy and pasting from docs
<mbff> haha
louism2wash has quit [Quit: This computer has gone to sleep]
<IceDragon> yeah, ruby syntax has the rockets =>
<IceDragon> :P So copy and paste json will explode
<mbff> syntax error, unexpected ',', expecting end-of-input
<mbff> new issue
lucyinthesky has quit [Quit: Leaving]
sklik has quit []
fabrice31 has quit [Ping timeout: 258 seconds]
<IceDragon> mbff: tailing comma somewhere outside of a array or hash, find it
<mbff> options = {"id" => 1, "method": "auth.login", "params": ["XXX"]}
<sevenseacat> programming by IRC, i love it
<b3itz_> parabolize: sooo... yes my logic is wrong
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maestrojed has joined #ruby
<mbff> sevenseacat, sorry?
<sevenseacat> paste code 'i got an error' fix code 'i got an error' change code 'i got an error'
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> well, you could also characterize it as learning by irc
<IceDragon> God, where's shevy when I want to nag him
<sevenseacat> if they're actually learning, which i doubt for a few people
<IceDragon> >_>
<IceDragon> <_<
<b3itz_> eam: this seems to be logically wrong
louism2wash has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
<eam> well yeah, the subject is missing
luucyinthesky has joined #ruby
agrinb has joined #ruby
xymbol_ has joined #ruby
<b3itz_> eam: ?
<eam> was ist "das"?
<IceDragon> eam: whats going in here right now, I'm lost, I'm just answering questions without digging into the situation ;(
jlast has joined #ruby
<b3itz_> im confused ll
<IceDragon> mbff: options = { "id" => 1, "method" => "auth.login", "params" => ["XXX"] }
<eam> IceDragon: b3itz_ is doing homework and I'm passive-aggressively teasing him until he asks better questions
<mbff> I figured it out on my own, but thanks
AlexRussia has quit [Ping timeout: 244 seconds]
<b3itz_> >.<
<mbff> So take that however said I don't learn from this
<eam> like "what is this"
<b3itz_> ok , this program all works except the actual logic. it prints out all the same address over and over
lbrf has joined #ruby
<eam> also mbff is being cranky which is sorta understandable but ultimately self-defeating since he's dependent on the good graces of others
<IceDragon> so thats the issue here, no wonder I felt lost
<eam> meanwhile I am debating whether to sign up for a world of warcraft subscription
mloveless has joined #ruby
<IceDragon> b3itz_ it would help if you explained what exactly your program should be doing aka. input, expected result, actual result
xxneolithicxx has left #ruby [#ruby]
<eam> b3itz_: what's your current code? why do you think it does that? what have you tried in terms of debugging it?
<IceDragon> eam: Do it, unless you're broke
<eam> I am not broke, but I am super cheap
<mbff> cranky? Errr sorry for the confusion. I really appreciate any help I get regardless of how much of the work is done for me.
<IceDragon> play a f2p mmo then
<IceDragon> :P
<eam> I played a little bit for free up to level 20
wallerdev has quit [Quit: wallerdev]
<eam> but no one wants to play at level 20
<eam> I guess it's $5 for a month right now, considering buying just one month
<b3itz_> def ipString seems to be returning the same ip over and over
<IceDragon> mbff: last time I had to convert json to ruby, I just copied it into a new file, and a find and replace on all : and changed them to =>
<eam> b3itz_: gist your current code
pietr0 has quit [Quit: pietr0]
Spami has quit [Quit: This computer has gone to sleep]
agrinb has quit [Remote host closed the connection]
<eam> b3itz_: what does your file look like?
<eam> does it have more than one line?
centrx has joined #ruby
<b3itz_> status sc-substatus sc-win32-status time-taken 2014-09-10 00:00:32 192.168.220.048 GET /_vti_inf.html - 80 - 192.168.220.048 Mozilla/4.0+(compatible;+MSIE+7.0;+FHLB-VC) 404 0 2 15 2014-09-10 00:00:32 192.168.220.048 POST /UAT4/fhlb.cwf.app/SystemControl.asmx - 80 - 192.168.220.048 Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+4.0.30319.18444) 401 2 5 31
mbff has quit [Remote host closed the connection]
triple_b has joined #ruby
<b3itz_> like its only showing the first address over and over
<b3itz_> <parabolize> b3itz_: you do realize ipString in your last gist only returns the first address?
Cache_Money has quit [Quit: Cache_Money]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<eam> b3itz_: is there more than one address in that file?
AlexRussia has joined #ruby
<b3itz_> yes
<eam> what are two examples of different addresses?
jalopezsilva has joined #ruby
luucyinthesky is now known as lucyinthesky
<b3itz_> 192.168.220.2
lucyinthesky has quit [Changing host]
lucyinthesky has joined #ruby
<eam> but the first address on every line is the same, right?
Cyberheb has quit [Quit: Computer has gone to sleep.]
banister has joined #ruby
<b3itz_> oh man.. i think youre right
oo_ has quit [Remote host closed the connection]
banister has quit [Max SendQ exceeded]
<b3itz_> so its not continuing along that line
banister has joined #ruby
<eam> remember when I asked you about whether you meant to return inside the loop in your method?
banister has quit [Max SendQ exceeded]
taiansu has quit [Remote host closed the connection]
oo_ has joined #ruby
mary5030 has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
louism2wash has quit [Quit: This computer has gone to sleep]
banister has joined #ruby
<b3itz_> eam: yes, and i kinda but not really see where this is going
oo_ has quit [Remote host closed the connection]
<eam> tell me what that loop does
oo_ has joined #ruby
russt has quit [Quit: russt]
melik has quit [Quit: (null)]
chipotle has quit [Quit: cya]
radic has quit [Ping timeout: 272 seconds]
radic has joined #ruby
Spami has joined #ruby
<b3itz_> match stores each instance of 1-3.1-3... then for each of those, split, map, rjust and join them
anafrogue_ has joined #ruby
<b3itz_> so im returning wrong?
banister is now known as banisterfiend
<eam> yes. The loop is iterating over an array of what?
adriancb has quit [Remote host closed the connection]
<eam> matches? Per line?
ajaiswal has joined #ruby
lmickh has joined #ruby
<eam> but you return after the first match (per line)
<b3itz_> for every instance of that pattern
mary5030 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
<eam> right, for every time the pattern is applied to one line
<b3itz_> ok ok i see
<b3itz_> so i need to return after the .each do
gee_totes has quit [Ping timeout: 244 seconds]
gee_totes has joined #ruby
anafrogue__ has quit [Ping timeout: 258 seconds]
<b3itz_> eam: dude you gotta help me with this last part lol.. im beating my head on my desk
<gee_totes> does anyone know anything about Capybara? is there a way i can run multiple capybara sessions in different threads?
<eam> b3itz_: I'll help you frame the problem :)
benzrf is now known as benzrf|offline
<b3itz_> thats all i need lol
oo_ has quit [Remote host closed the connection]
Mattx has quit [Read error: Connection reset by peer]
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
<parabolize> b3itz_: drop the string foo http://pastie.org/private/q59dekejbccbhguzdw88g
AndyBotwin has quit [Quit: Leaving]
jimbach has joined #ruby
rshetty has joined #ruby
adriancb has joined #ruby
<b3itz_> parabolize: supposed to use regex for the ip
jlast_ has joined #ruby
tyfighter has joined #ruby
fuhgeddaboudit has joined #ruby
<eam> b3itz_: how can you return the complete array of matches from your method?
KLVTZ has joined #ruby
<parabolize> and it does. It uses regex to grab the ip string and it converts it to something sane.
phutchins has quit [Ping timeout: 255 seconds]
<b3itz_> eam: so when i remove the return method, it works
diegoviola has quit [Remote host closed the connection]
<b3itz_> so what's it returning?
jlast has quit [Ping timeout: 258 seconds]
doug2 has joined #ruby
<parabolize> after looking at your data file I see you do only want one ip from each line..
TomyWork has joined #ruby
<eam> b3itz_: the last expression is returned by default. what's the last expression?
<b3itz_> split_array.map{|str| str.rjust(3, '0') }.join '.'
arup_r has joined #ruby
<eam> what does map return?
narcan has joined #ruby
chipotle has joined #ruby
gsd has joined #ruby
jenrzzz has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Milk_weed has quit [Ping timeout: 252 seconds]
<b3itz_> eam: an array ofstrings
<eam> what's being returned?
<b3itz_> an array of strings..
louism2wash has joined #ruby
<eam> does that explain everything?
<b3itz_> so each call of ipString returns an array of each address on that line as an array of strings?
mary5030 has joined #ruby
claw___ has quit [Ping timeout: 240 seconds]
<eam> it appears that's what it does, yes
evanjs has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
KLVTZ has quit [Ping timeout: 255 seconds]
mloveless has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
<b3itz_> eam: ok so now it doesnt look like the rjust is returning
<b3itz_> so its returning wrong
russt has joined #ruby
mary5030_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
benzrf|offline is now known as benzrf
bluOxigen has joined #ruby
emmesswhy has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
lbrf has quit [Quit: Lingo: www.lingoirc.com]
louism2wash has quit [Quit: This computer has gone to sleep]
sdrew has joined #ruby
<eam> b3itz_: can you elaborate on "wrong"? What do you see, what do you expect?
renanoronfle has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deric_skibotn has quit [Ping timeout: 272 seconds]
<b3itz_> eam: i expected the last line to be returned "split_array.map{|str| str.rjust(3, '0') }.join '.'"
dfinninger has joined #ruby
<b3itz_> but instead im getting back split_array = x.split(".")
taiansu has joined #ruby
braincrash has joined #ruby
dseitz has joined #ruby
aspires has joined #ruby
St_Marx has joined #ruby
<eam> what are the data points that cause you to believe that?
<b3itz_> eam: 192.168.220.5
<b3itz_> that gets returned
sski has joined #ruby
<eam> gist current code, example output?
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<parabolize> thats exactly what the map and join are doing to the string
<parabolize> or array rather
<benzrf> map followed by join?
ycodr has quit [Remote host closed the connection]
<b3itz_> parabolize: what about rjust?
<benzrf> sounds like bind to me
ycodr has joined #ruby
<parabolize> b3itz_: that too.
dfinninger has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
<parabolize> open up a repl and test each one of those methods
<parabolize> one by one
taiansu has quit [Remote host closed the connection]
ycodr has quit [Remote host closed the connection]
ycodr has joined #ruby
Vile` has quit [Quit: .]
wjimenez5271 has joined #ruby
VBlizzard is now known as Blizzy
davasaurous has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
ycodr has quit [Ping timeout: 255 seconds]
ycodr has joined #ruby
kyb3r_ has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
davasaurous has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
zmisc has quit [Ping timeout: 240 seconds]
JoshGlzBrk has quit [Ping timeout: 264 seconds]
chipotle_ has joined #ruby
zmisc2 has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
b3itz_ has quit [Quit: Page closed]
ycodr has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
lucyinthesky has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
JoshGlzBrk has joined #ruby
karstensrage has joined #ruby
yourabi has joined #ruby
ycodr has joined #ruby
<karstensrage> hi what is defined if you modify an array in a foreach over the array?
<benzrf> karstensrage: huh?
chipotle has quit [Ping timeout: 272 seconds]
<karstensrage> if you do a foreach over an array
echevemaster has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
<jhass> iirc the modifications can mess up the later iterations, although there's some internal code to protect against it
chipotle_ has quit [Ping timeout: 240 seconds]
<karstensrage> and you delete an element of the array
<karstensrage> in the loop
<jhass> fact is, you never really need that in ruby
<jhass> .reject!
<jhass> .select!
<jhass> .map!
echooo has joined #ruby
<jhass> use those
arup_r has quit [Quit: Leaving.]
ycodr has quit [Remote host closed the connection]
echooo1 has quit [Ping timeout: 264 seconds]
ycodr has joined #ruby
rshetty has quit [Remote host closed the connection]
framling has quit [Remote host closed the connection]
f00dMonsta has joined #ruby
havenwood has joined #ruby
zB0hs has joined #ruby
s00pcan has quit [Ping timeout: 245 seconds]
ycodr has quit [Remote host closed the connection]
zmisc2 is now known as zmisc
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has quit [Excess Flood]
ycodr has joined #ruby
ItSANgo has quit [Quit: Leaving...]
lbrf has joined #ruby
uber_hulk has joined #ruby
nkumari has quit [Remote host closed the connection]
oo_ has joined #ruby
jalopezsilva has quit [Quit: WeeChat 0.4.3]
BraddBitt has quit [Quit: Leaving]
luckyruby has quit [Ping timeout: 252 seconds]
mloveless has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
goodenou_ has joined #ruby
BraddPitt has joined #ruby
wjimenez5271 has joined #ruby
s00pcan has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
Cyberheb has joined #ruby
SOLDIERz__ has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
<epitron> hmmm.. is there a way to use ruby strings with interpolation similar to the way you'd use ERB templates?
davasaurous has joined #ruby
<epitron> like, i want to define: tmpl = "lalala #{thing}"
<epitron> then later, go: "thing = 5, tmpl.eval"
<epitron> ("thing" won't be defined when i create the template)
o0oo0o has quit [Remote host closed the connection]
<epitron> maybe... could i throw the string in a proc and do something with the proc's binding?
rshetty has joined #ruby
<soahccc> epitron: you cannot define local variables on runtime so you better use procs properly or create proxy objects which define it as a method
econerd4ever has quit [Remote host closed the connection]
tus has quit [Ping timeout: 244 seconds]
nkumari has joined #ruby
econerd4ever has joined #ruby
chipotle has joined #ruby
gee_totes has left #ruby [#ruby]
jimbach has quit [Remote host closed the connection]
<epitron> that's bullshit mang
<epitron> AHAAA! i know
rshetty has quit [Remote host closed the connection]
<epitron> i can use method missing and instance eval and binding.eval :D
<epitron> muahahah
* epitron converts locals to methods
emmesswhy has quit [Quit: This computer has gone to sleep]
nkumari has quit [Remote host closed the connection]
swartwulf has quit [Ping timeout: 240 seconds]
ebbflowgo has joined #ruby
oo_ has joined #ruby
st1gma1 has quit [Read error: Connection reset by peer]
dseitz has quit [Ping timeout: 240 seconds]
akkad has quit [Remote host closed the connection]
ycodr has quit [Remote host closed the connection]
nkumari has joined #ruby
jlast_ has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 255 seconds]
yourabi has quit [Quit: Textual IRC Client: www.textualapp.com]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Darryl_ has quit [Quit: Connection closed for inactivity]
<miah> sounds terrifying
jlast has joined #ruby
ycodr has joined #ruby
emmesswhy has joined #ruby
<epitron> it's pretty simple :)
<epitron> i'm going to add in binding_of_caller for extra fun
arup_r has joined #ruby
freerobby has quit [Quit: Leaving.]
swartwulf has joined #ruby
arup_r has quit [Remote host closed the connection]
Dopagod has quit [Read error: Connection reset by peer]
akkad has joined #ruby
<miah> interesting
Dopagod has joined #ruby
SOLDIERz__ has quit [Quit: Be back later ...]
Xiti` has joined #ruby
dseitz has joined #ruby
proxie has joined #ruby
VBlizzard has joined #ruby
mary5030 has joined #ruby
f00dMonsta has quit [Remote host closed the connection]
Xiti` has quit [Client Quit]
VBlizzard is now known as msg
suffice_ has joined #ruby
androidbruce_ has joined #ruby
Blizzy has quit [Disconnected by services]
msg is now known as blizzy
NoNMaDDeN has quit [Read error: Connection reset by peer]
chris6131 has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
billy_ran_away_ has joined #ruby
fabrice31 has joined #ruby
jonathanwallace_ has joined #ruby
kloeri_ has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
virtualize has quit [Read error: Connection reset by peer]
renderful has joined #ruby
billy_ran_away has quit [Max SendQ exceeded]
mary5030_ has quit [Remote host closed the connection]
androidbruce has quit [Ping timeout: 258 seconds]
suffice has quit [Ping timeout: 258 seconds]
jonathanwallace has quit [Ping timeout: 258 seconds]
xMopxShell has quit [Ping timeout: 258 seconds]
musl has quit [Ping timeout: 258 seconds]
Xiti has quit [Ping timeout: 258 seconds]
androidbruce_ is now known as androidbruce
cloaked1 has quit [Ping timeout: 258 seconds]
androidbruce has joined #ruby
androidbruce has quit [Changing host]
jonathanwallace_ is now known as jonathanwallace
atomical has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
xMopxShe- has joined #ruby
anafrogue__ has joined #ruby
NoNMaDDeN has joined #ruby
ixx has quit [Ping timeout: 258 seconds]
Afforess has quit [Ping timeout: 258 seconds]
anafrogue_ has quit [Ping timeout: 258 seconds]
nickjj has quit [Ping timeout: 258 seconds]
<epitron> so hax
arup_r has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
ixx has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
blackgoat has joined #ruby
xMopxShe- is now known as xMopxShell
ixx is now known as Guest49178
musl has joined #ruby
patrick99e99 has joined #ruby
<epitron> i just realized the downside: you can't loop :\
arup_r has quit [Remote host closed the connection]
<epitron> ah well, i guess i'll just use haml
akkad has quit [Remote host closed the connection]
swilr_ has joined #ruby
ItSANgo has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
jxport has quit [Ping timeout: 258 seconds]
pwh_ has joined #ruby
mgorbach_ has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
blackgoat_ has quit [Ping timeout: 258 seconds]
keelerm has quit [Ping timeout: 258 seconds]
pwh has quit [Ping timeout: 258 seconds]
mgorbach has quit [Ping timeout: 258 seconds]
Heartbroken has quit [Ping timeout: 258 seconds]
peeja has quit [Ping timeout: 258 seconds]
kyb3r_ has quit [Ping timeout: 258 seconds]
chris613 has quit [Ping timeout: 258 seconds]
roqo has quit [Ping timeout: 258 seconds]
tzero has quit [Ping timeout: 258 seconds]
swilr has quit [Ping timeout: 258 seconds]
Spleeze has quit [Ping timeout: 258 seconds]
peeja_ has joined #ruby
mgorbach_ is now known as mgorbach
peeja_ is now known as peeja
_ixti_ has quit [Ping timeout: 258 seconds]
kloeri has quit [Ping timeout: 622 seconds]
psyprus has quit [Ping timeout: 258 seconds]
jarjar_prime has quit [Max SendQ exceeded]
roqo has joined #ruby
Afforess has joined #ruby
kyb3r_ has joined #ruby
<miah> hax will be hax
psyprus has joined #ruby
lkba has quit [Ping timeout: 258 seconds]
roger_rabbit has quit [Ping timeout: 258 seconds]
lkba has joined #ruby
roger_rabbit has joined #ruby
Xiti has joined #ruby
nickjj has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
Spleeze has joined #ruby
Heartbroken has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
davasaurous has quit [Remote host closed the connection]
<zenspider> not haml... nooooooooo
byprdct has joined #ruby
lyanchih has joined #ruby
jxport has joined #ruby
akkad has joined #ruby
taiansu has joined #ruby
aspires has quit []
goodenou_ has quit [Remote host closed the connection]
codecop has joined #ruby
ghr has joined #ruby
perturbation has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
fedexo has joined #ruby
<jhass> epitron: String#% ?
nkumari has quit [Remote host closed the connection]
senera has quit [Ping timeout: 240 seconds]
<jhass> >> "Hello %{foo}" % {foo: 'World'}
<eval-in__> jhass => "Hello World" (https://eval.in/230231)
anaeem1_ has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
rshetty has joined #ruby
russt has quit [Quit: russt]
towski_ has quit [Remote host closed the connection]
jusmyth has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<epitron> jhass: oh snap!
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<epitron> that still has the looping issue though
<epitron> that also can't do arbitrary ruby expressions
<epitron> good to know though :)
chu has quit [Read error: Connection reset by peer]
hesco has joined #ruby
goodenough has joined #ruby
<banisterfiend> epitron why can't it do arbitrary ruby expressions?
<banisterfiend> >> "Hello %{foo}" % { foo: (1 + 3).to_s }
<eval-in__> banisterfiend => "Hello 4" (https://eval.in/230232)
<hesco> working on a new custom Facter fact, and getting: "resolution='<anonymous>': undefined method `[]=' for nil:NilClass". What does that mean?
<banisterfiend> >> "Hello %{foo}" % { foo: (1 + 3) }
<eval-in__> banisterfiend => "Hello 4" (https://eval.in/230233)
<banisterfiend> k00
Cache_Money has joined #ruby
<epitron> that's not how templates work :)
<epitron> in templates you can do arbitrary expressions in the %{}
<epitron> "Hello %{1+3}"
<banisterfiend> ah, didn't see the earlier part of the chat
russt has joined #ruby
<epitron> btw, is binding_of_caller in MRI yet?
krzkrz has joined #ruby
keelerm has joined #ruby
krz has quit [Read error: Connection reset by peer]
weaksauce has joined #ruby
byprdct has joined #ruby
sk87 has joined #ruby
byprdct has quit [Max SendQ exceeded]
<banisterfiend> epitron yeah
tzero has joined #ruby
konsolebox has quit [Ping timeout: 245 seconds]
_ixti_ has joined #ruby
<BraddPitt> can't you do that like
<BraddPitt> >> "Hello #{1+3}"
<eval-in__> BraddPitt => "Hello 4" (https://eval.in/230235)
<BraddPitt> ; ^)
<banisterfiend> BraddPitt think u're missing the point here ;)
<BraddPitt> perhaps, I just glanced at irc quickly
<banisterfiend> epitron anyway i wrote a thing that does that for pry
<banisterfiend> epitron we can interpolate arbitrary stuff into #{} in pry remember? like: cd #{_file_}
<epitron> BraddPitt: yes, you can, if you use some tricks: https://gist.github.com/epitron/0701603bbe76a0f3acd5
<banisterfiend> epitron what r u working on and why
<epitron> robotfeet.tk for fun!
<BraddPitt> ooh neat
<banisterfiend> epitron wtf is this
<banisterfiend> music vids?
<epitron> -!-!-!-
<rpag> yeah what is that
<banisterfiend> epitron pretty cool though, i like your spark!
sdrew has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
jenrzzz has joined #ruby
<epitron> banisterfiend: so how does the pry #{} work? does it just eval the contents?
<banisterfiend> epitron i think it's just a simple regex match and eval of the contents yeah
<banisterfiend> nothing fancy
<banisterfiend> with respect to the current binding
Channel6 has quit [Quit: Leaving]
wjimenez5271 has joined #ruby
konsolebox has joined #ruby
versatiletech has joined #ruby
arup_r has joined #ruby
nagaraj has joined #ruby
<epitron> impressive
arup_r_ has joined #ruby
Techguy305 has joined #ruby
<banisterfiend> epitron wha tis your webiste about
<banisterfiend> i dont get it
wjimenez5271 has quit [Ping timeout: 252 seconds]
<banisterfiend> yah
Cache_Money has quit [Quit: Cache_Money]
arup_r has quit [Ping timeout: 244 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
<work_op> that website lol
jusmyth has left #ruby [#ruby]
byprdct has joined #ruby
tyfighter has quit [Quit: tyfighter]
russt has quit [Quit: russt]
<soahccc> after that asian sort of link there I have no clue as well
<soahccc> music videos / burning cars ô.O
Musashi007 has quit [Quit: Musashi007]
russt has joined #ruby
<epitron> soahccc: that one is technically a music video. :)
tyfighter has joined #ruby
dfinninger has joined #ruby
Techguy305 has quit [Ping timeout: 264 seconds]
lucyinthesky has joined #ruby
oleo has quit [Quit: Verlassend]
nagaraj has quit [Ping timeout: 258 seconds]
Techguy305 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimmyy has quit [Read error: Connection reset by peer]
nagaraj has joined #ruby
<banisterfiend> epitron lives in a landscape of grey sponges and silent ships
jimmyy has joined #ruby
<centrx> sounds gross
jimmyy has quit [Max SendQ exceeded]
<epitron> what does that meannn
<banisterfiend> epitron darn eppy! http://robotfeet.tk/call.html
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jshultz has quit [Quit: Connection closed for inactivity]
sdrew has quit [Quit: *poof*]
kaiwren has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
dfinninger has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
sk87 has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
robbyoconnor has joined #ruby
benzrf is now known as benzrf|offline
arup_r has joined #ruby
roolo has joined #ruby
ndrei has joined #ruby
kiyote23 has quit [Remote host closed the connection]
abuzze_ has quit [Ping timeout: 256 seconds]
arup_r__ has joined #ruby
helpa has quit [Remote host closed the connection]
crazydiamond has joined #ruby
arup_r_ has quit [Ping timeout: 244 seconds]
helpa has joined #ruby
arup_r_ has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
arup_r has quit [Ping timeout: 255 seconds]
devoldmx33 has joined #ruby
goodenough has quit [Remote host closed the connection]
Mothore has quit [Quit: Be back later ...]
arup_r__ has quit [Ping timeout: 250 seconds]
tobago has joined #ruby
dseitz_ has joined #ruby
StoneCypher has quit [Ping timeout: 240 seconds]
dseitz has quit [Ping timeout: 272 seconds]
devoldmx33 has quit [Ping timeout: 245 seconds]
tobago has quit [Remote host closed the connection]
econerd4ever has joined #ruby
kiyote23 has joined #ruby
tobago has joined #ruby
nyanz has quit []
wjimenez5271 has joined #ruby
Musashi007 has joined #ruby
echooo1 has joined #ruby
oo_ has quit [Remote host closed the connection]
davasaurous has joined #ruby
Cache_Money has joined #ruby
echooo has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
Techguy305 has quit [Ping timeout: 240 seconds]
psy_ has quit [Ping timeout: 255 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
zmisc has quit [Ping timeout: 252 seconds]
doev has joined #ruby
pietr0 has joined #ruby
konsolebox has quit [Ping timeout: 250 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davasaurous has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has joined #ruby
davasaurous has joined #ruby
mbff has joined #ruby
crazydiamond has quit [Ping timeout: 264 seconds]
xiq_ has quit [Ping timeout: 264 seconds]
Joufflu has quit [Read error: Connection reset by peer]
sinequanon has joined #ruby
<mbff> Question: I am working with HTTParty and want to send back cookies I received with json. I can't seem to get the formatting right.
<mbff> theCookies = delugeResponse.headers.inspect
<mbff> :cookies => theCookies
centrx has quit [Quit: Did gyre and gymble in ye wabe]
goodenough has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
Kricir has joined #ruby
oo_ has quit [Remote host closed the connection]
tagrudev has joined #ruby
oo_ has joined #ruby
econerd4ever has quit [Remote host closed the connection]
arup_r_ has quit []
arup_r has joined #ruby
sinequanon has quit []
dseitz_ has quit [Ping timeout: 244 seconds]
sinequanon has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
Eiam_ has joined #ruby
last_staff has joined #ruby
oo__ has joined #ruby
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
Macaveli has joined #ruby
bMalum has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
anaeem1 has joined #ruby
konsolebox has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
boombadaroomba has joined #ruby
dc_ has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
tyfighter has quit [Quit: tyfighter]
konsolebox has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
troyready has joined #ruby
michael_mbp has quit [Excess Flood]
tgandrews has joined #ruby
renderful has joined #ruby
michael_mbp has joined #ruby
chipotle has quit [Quit: cya]
boombadaroomba has quit [Ping timeout: 255 seconds]
bal has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has joined #ruby
The_NetZ has joined #ruby
dfinninger has quit [Ping timeout: 272 seconds]
renderful has quit [Ping timeout: 258 seconds]
elusion has joined #ruby
<The_NetZ> heyo o/ question; if I'm simply creating ruby on the mingw-w64 platform to link against it, one could simply use make lib and make ruby-2.2.pc to create the dlls and pkg-config file; my question is, is there some nifty way of installing just the headers?
patrick99e99 has joined #ruby
null_ has joined #ruby
null_ is now known as sion
kamil has joined #ruby
elusion has quit [Ping timeout: 240 seconds]
shock_one has joined #ruby
JohnBat26 has joined #ruby
patrick99e99 has quit [Ping timeout: 258 seconds]
tgandrews has quit [Quit: This computer has gone to sleep]
Morkel has quit [Quit: Morkel]
rshetty has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
sion has quit [Quit: leaving]
nfk has joined #ruby
oo__ has quit [Remote host closed the connection]
<certainty> moin rubyists
<lbrf> certainty: o/
noop has joined #ruby
konsolebox has joined #ruby
oo_ has joined #ruby
shock_one has quit [Remote host closed the connection]
<The_NetZ> certainly :)
<The_NetZ> badpun is bad
blueOxigen has joined #ruby
<certainty> xD
bluOxigen has quit [Ping timeout: 255 seconds]
bMalum has quit [Quit: bMalum]
<The_NetZ> so, any ruby devs know the magick command for installing just the headers? :)
SOLDIERz__ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
oo_ has quit [Ping timeout: 244 seconds]
<sevenseacat> cant believe how long its taken you just to install ruby
<epitron> mbff: i'm not sure what you want to do. does httparty not save cookies for you? are you trying to manually save them?
<mbff> I may have figured it out... slowly
<mbff> But thanks.
<epitron> ok :)
<epitron> btw, the "http" gem is awesome
hanmac1 has joined #ruby
<hanmac1> did you guys noticed what happen to the ruby forum at https://www.ruby-forum.com/forum/ruby ?
anaeem___ has joined #ruby
<The_NetZ> sevenseacat: oh I have ruby, and linux ruby compiles fine, but mingw-w64 ruby fails on rubyw.exe and ruby.exe linkage :)
<The_NetZ> sevenseacat: I blame most of it due to windows being a shitty dev platform XD
oo_ has joined #ruby
<sevenseacat> concur.
<The_NetZ> why the fuck can't they POSIX XD
<hanmac1> The_NetZ: i have some very EVIL plots! do you want to see? ;P http://i.imgur.com/plNeV5W.png
<The_NetZ> but, I'm compiling mingw-w64-ruby simply as dev libs and headers, so the failure of ruby(w).exe is of little import to me :)
konsolebox has quit [Quit: Leaving]
arup_r_ has joined #ruby
bluehavana has joined #ruby
konsolebox has joined #ruby
adriancb has joined #ruby
<The_NetZ> make lib and make install-lib handles the dll's and such, and I can write a small install -Dm644 bit to place the pkg-config file, but the headers.... that's the real bitch, methinks.
konsolebox has quit [Client Quit]
anaeem1_ has quit [Ping timeout: 264 seconds]
<The_NetZ> hanmac1: nice cats
timonv_ has joined #ruby
arup_r has quit [Ping timeout: 245 seconds]
<The_NetZ> sevenseacat: also, my internet is quite shitty so researching takes far more time than someone on a good connection :)
andikr has joined #ruby
<work_op> hanmacl, its been overtaken by spam. i used to lurk 4chan's /prog/ textboard and it was shut down due to spam of the same nature as whats on ruby forum
<work_op> ...russians...
lbrf has quit [Quit: Be back later ...]
adriancb has quit [Ping timeout: 250 seconds]
dc_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 252 seconds]
goodenough has quit [Remote host closed the connection]
kloeri_ is now known as kloeri
Kricir has quit [Remote host closed the connection]
dc_ has joined #ruby
<hanmac1> stupid spammers :(
kiyote23 has quit [Remote host closed the connection]
<The_NetZ> ... that moment when you try to use ctrl+c to stop loading of a firefox page XD
xymbol_ has quit [Read error: Connection reset by peer]
amundj has joined #ruby
goodenough has joined #ruby
techsethi_ has joined #ruby
aganov has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
fabrice31 has joined #ruby
xymbol_ has joined #ruby
<The_NetZ> should have switched to eCigs long ago
matcouto has joined #ruby
taiansu has quit [Remote host closed the connection]
<mbff> I am having troubles changing a hash to json, yes I have tried to_json
taiansu has joined #ruby
<mbff> puts delugeResponse.body.to_json['result']
<mbff> this returns "result"
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
charliesome has quit [Quit: zzz]
taiansu has quit [Ping timeout: 272 seconds]
uber_hulk has quit [Quit: leaving]
abuzze has joined #ruby
shock_one has joined #ruby
timonv_ has quit [Remote host closed the connection]
<versatiletech> mbff: could you create a pastie with output of puts for delugeResponse.body
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Soda has joined #ruby
abuzze has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
<mbff> {"id": 1, "result": true, "error": null}
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mbff> why isn't puts delugeResponse.body["result"] working?
timonv_ has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
<versatiletech> mbff: puts delugeResponse.body.class, what does that output?
<mbff> String
<versatiletech> body is a string not a hash
<mbff> so do I need to parse it?
lbrf has joined #ruby
<mbff> JSON.parse ?
<versatiletech> that's why it wasn't working the way you were expecting it
hiall has joined #ruby
CpuID has quit [Ping timeout: 255 seconds]
rshetty has joined #ruby
<versatiletech> yes
jgoyon has joined #ruby
jgoyon has quit [Client Quit]
<mbff> thank you!
codecop has quit [Remote host closed the connection]
jgoyon has joined #ruby
nfk has quit [Quit: yawn]
codecop has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
doug2 has quit [Ping timeout: 258 seconds]
St_Marx has quit [Remote host closed the connection]
greenbagels has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
melik has joined #ruby
amundj has joined #ruby
<The_NetZ> anywho, sleepy time, later all :)
The_NetZ has quit [Quit: leaving]
shock_one has quit [Remote host closed the connection]
lbrf has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
sski has joined #ruby
kwd has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
wjimenez5271 has quit [Remote host closed the connection]
amundj has quit [Ping timeout: 252 seconds]
qba73 has joined #ruby
abuzze has joined #ruby
sski has quit [Ping timeout: 255 seconds]
versatiletech has quit [Quit: versatiletech]
hiall has quit [Quit: hiall]
sinequanon has quit [Remote host closed the connection]
sinequanon has joined #ruby
oo_ has joined #ruby
havenwood has quit [Remote host closed the connection]
lbrf has joined #ruby
davasaurous has joined #ruby
frem has joined #ruby
michael_mbp has quit [Excess Flood]
louism2wash has joined #ruby
sinequanon has quit [Ping timeout: 258 seconds]
AxonetBE has joined #ruby
einarj has joined #ruby
econerd4ever has joined #ruby
TinkerTyper has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
lbrf has quit [Ping timeout: 250 seconds]
Axy has joined #ruby
econerd4_ has joined #ruby
ht__th has quit [Ping timeout: 245 seconds]
bjornar has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 244 seconds]
ht__th has joined #ruby
arup_r has joined #ruby
econerd4ever has quit [Ping timeout: 258 seconds]
TinkerTyper has joined #ruby
CpuID has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r_ has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
kaspertidemann has joined #ruby
<arup_r> I am using Activemodel in my Ruby porject.. https://gist.github.com/aruprakshit/a52f0bef17a727bc8922 But getting error
<arup_r> What am I missing there ?
jgoyon has quit [Ping timeout: 272 seconds]
bayed has joined #ruby
taiansu has joined #ruby
devoldmx33 has joined #ruby
<tobiasvl> arup_r: I'm assuming the second file in that gist isn't really called error.rb, but product.rb?
psy_ has joined #ruby
<arup_r> Yes.. That I gave in gist arbitary
<arup_r> It is a product.rb
tokik has quit [Ping timeout: 252 seconds]
<tobiasvl> ok, good. you shouldn't give files arbitrary names when they're mentioned in the exception you want help with
<arup_r> Gave it proper name... Concern is Activemodel is not working
<arup_r> My custom vaildation is not working...
<mozzarella> what if you move the CategoryValidator class above the Product class?
agjacome has quit [Quit: leaving]
amundj has joined #ruby
<arup_r> Didn't try..
<arup_r> But does it matter.. ?
tokik has joined #ruby
Cyberheb has quit [Quit: Computer has gone to sleep.]
<hanmac1> arup_r: hm why not asking AR questions in the #rubyonrails channel?
<arup_r> error Product::CategoryValidator (NameError) is saying... Product looking for the class CategoryValidator inside it.. don't know why
devoldmx33 has quit [Ping timeout: 250 seconds]
razieliyo has joined #ruby
<arup_r> hanmac1: It is Ruby project.. not Rails :-(
<arup_r> So..
razieliyo has quit [Read error: Connection reset by peer]
<hanmac1> arup_r: but AR is Rails fault, so they need to fix it
<sevenseacat> yet activemodel is a rails gem
<mozzarella> arup_r: try it
troyready has quit [Ping timeout: 245 seconds]
<arup_r> ok
lucyinthesky has quit [Quit: You shut your mouth]
linocisco has joined #ruby
<linocisco> hi all i m compeletely new bie on Ruby
sameerynho has joined #ruby
<linocisco> But I am so confused that about the differenece between Ruby and Ruby on Rails
mark06 has joined #ruby
<mozzarella> ruby on rails is a web framework
<mozzarella> ruby is the programming language
<mark06> how can I get the site/vendor ruby dirs?
<linocisco> mozzarella, any example of other web framework?
spastorino has joined #ruby
<mark06> e.g. /usr/lib/ruby/vendor_ruby
<arup_r> mozzarella: worked..
<mozzarella> linocisco: sinatra, padrino, django, etc.
<arup_r> What is the reasoning ?
<linocisco> Morrolan, nothing them are popular. I heard only django a little
lxsameer has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
<mozzarella> arup_r: well, it must be defined when evaluating the line
<sevenseacat> just because you havent heard of them, doesnt mean theyre not popular
<arup_r> mozzarella: Humm.. Rails probably handle them some other way
<arup_r> They are Genious.
maestrojed has quit [Quit: Computer has gone to sleep.]
lolmaus__ has quit [Ping timeout: 240 seconds]
<mozzarella> linocisco: do you know the difference between python and django?
arup_r has quit [Remote host closed the connection]
<linocisco> Morrolan, i just heard django. dont know even what that is
krazyj has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<krazyj> hi guys… i’m writing a cron script that i want to be super robust. i have it written, now i want to implement logging… any thoughts on how to write these methods in a clear, concise way for logging: https://gist.github.com/joshavant/68a33519ec39f081bf48
Axy is now known as Mia
<krazyj> for example, on line 29, i have `if app_store_response.success?`
<krazyj> how might i rewrite that so, if it fails, i can write to a logfile
<krazyj> use a vanilla else-block?
dfinninger has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
alex88 has joined #ruby
mbff has quit [Quit: Leaving]
davedev2_ has quit [Remote host closed the connection]
hiall has joined #ruby
bjornar has joined #ruby
Eiam_ has joined #ruby
Takle has joined #ruby
sevenseacat has quit [Remote host closed the connection]
shock_one has joined #ruby
Xeago has joined #ruby
davasaurous has quit [Ping timeout: 256 seconds]
last_staff has quit [Quit: last_staff]
renderful has joined #ruby
livathinos has joined #ruby
Cyberheb has joined #ruby
pietr0 has quit [Quit: pietr0]
last_staff has joined #ruby
ElderFain has joined #ruby
rikai has quit [Ping timeout: 256 seconds]
AFKGeek has joined #ruby
ElderFain has quit [Changing host]
ElderFain has joined #ruby
CustosL1men has joined #ruby
Tranquility has joined #ruby
shvelo has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
roolo has joined #ruby
olivier_bK has joined #ruby
rikai has joined #ruby
patrick99e99 has joined #ruby
AlexRussia has joined #ruby
elaptics`away is now known as elaptics
last_sta1 has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
shortCircuit__ has joined #ruby
redjack1964_ has quit [Ping timeout: 240 seconds]
patrick99e99 has quit [Ping timeout: 258 seconds]
last_staff has quit [Ping timeout: 258 seconds]
<shevy> krazyj of course you must use the code that will actually log into a file
abuzze has quit [Remote host closed the connection]
ghr has joined #ruby
<shevy> ideally use a method that will log and call that
kaspertidemann has quit []
Spami has joined #ruby
joonty has joined #ruby
jheg has joined #ruby
amundj has quit [Ping timeout: 250 seconds]
maasha has joined #ruby
StoneCypher has joined #ruby
lolmaus__ has joined #ruby
reinaldob has joined #ruby
moritzschaefer has joined #ruby
abuzze has joined #ruby
PierreRambaud has quit [Quit: Quitte]
PierreRambaud has joined #ruby
lolmaus has joined #ruby
msgodf has joined #ruby
mbeasley has quit [Ping timeout: 245 seconds]
atomi has quit [Ping timeout: 245 seconds]
bMalum has joined #ruby
vieq has quit [Ping timeout: 272 seconds]
sea_local has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
yfeldblum has joined #ruby
vieq has joined #ruby
StoneCypher has quit [Ping timeout: 256 seconds]
mbeasley has joined #ruby
arup_r has joined #ruby
lolmaus__ has quit [Ping timeout: 240 seconds]
atomi has joined #ruby
<shortCircuit__> I have to change the address and specification in :params => {:company => { :id => 1 :address=> { :id=> 2}, :specification => { :id => 3}} to address_attributes and specification_attributes
psy_ has quit [Remote host closed the connection]
lolmaus_ has joined #ruby
lbrf has joined #ruby
sea_local has joined #ruby
linelevel has quit [Ping timeout: 245 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
marr has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
linelevel has joined #ruby
psy_ has joined #ruby
lolmaus__ has joined #ruby
lbrf has quit [Ping timeout: 245 seconds]
<shevy> :params => {:company => { :id => 1 :address_attributes => { :id=> 2}, :specification_attributes => { :id => 3}}
lolmaus has joined #ruby
arup_r_ has joined #ruby
jimmyy has quit [Read error: Connection reset by peer]
lolmaus_ has quit [Ping timeout: 240 seconds]
techsethi_ has quit [Quit: techsethi_]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
blackmesa has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
jimmyy has joined #ruby
econerd4_ has quit [Remote host closed the connection]
rdark has joined #ruby
lolmaus__ has quit [Ping timeout: 240 seconds]
zemiudo has joined #ruby
arup_r has quit [Ping timeout: 245 seconds]
econerd4ever has joined #ruby
zemiudo has quit [Max SendQ exceeded]
zemiudo has joined #ruby
<maasha> |\o/
sinelaw has joined #ruby
tgandrews has joined #ruby
<sinelaw> hi, I started documenting common ruby pitfalls.
lmickh has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
<shevy> hey maasha
<sinelaw> comments/suggestions are welcome
rshetty has joined #ruby
<shevy> sinelaw good
mollitz has joined #ruby
ki0 has joined #ruby
<shevy> I'll declare your file there as the new standard
<sinelaw> as are pull request
<shevy> I only pull legs
<maasha> hey shevy
<shevy> oh I know one
<shevy> sinelaw, return statements being ignored in object.foo= setups
moritzschaefer has quit [Ping timeout: 272 seconds]
ikaros has joined #ruby
tvw has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
<sinelaw> shevy, heh.
<sinelaw> shevy, example for that?
<shevy> yeah trying to find it
garbanotas has quit [Read error: Connection reset by peer]
garbanotas has joined #ruby
<canton7> iirc foo= methods always return a sensible value, regardless of anything you try and do
econerd4ever has quit [Ping timeout: 256 seconds]
<shevy> ah well I will use my example sinelaw -> http://pastie.org/9760013
<shevy> sinelaw what happened to my return 33 line :(
Deele has joined #ruby
<canton7> tbh it doesn't matter whether you've got line 4 in there at all iirc
<Mattx> do you know any way to evaluate <script> tags before parsing html code with nokogiri? I need to process all tags in that code, even the tags introduced by javascript
<shevy> canton7 how can this be! ruby ignores my instructions!!!
<canton7> it's stopping you from being silly ;)
<shevy> right - I have PHP for this
<shevy> sinelaw you could document common PHP pitfalls :)
<canton7> >> class A: def foo=(f); 'hi'; end; end; p A.new.foo = 'test'
<eval-in__> canton7 => /tmp/execpad-e0dffde26b71/source-e0dffde26b71:2: syntax error, unexpected ':', expecting '<' or ';' or '\n' ... (https://eval.in/230277)
<shevy> "from the same author ... the comparison to PHP" ... all stare at a document 10x as long
<canton7> >> class A; def foo=(f); 'hi'; end; end; p A.new.foo = 'test'
<eval-in__> canton7 => "test" ... (https://eval.in/230278)
<shevy> what's the : there canton7 are you forgetting ruby
bal has quit [Quit: bal]
<canton7> mis-pressed the shift key ;P
<canton7> heh, there's phpsadness for that
<canton7> and a few other websites
<shevy> sinelaw I think I have a few more pitfall examples... let me think ...
quimrstorres has joined #ruby
<shevy> sinelaw how about this one:
<shevy> >> x = 5.5; def x.hi; puts "hi"; end
<eval-in__> shevy => can't define singleton (TypeError) ... (https://eval.in/230279)
<shevy> why ruby not lets me define a method there!!!
bal has joined #ruby
<sinelaw> hmm
sea_local has quit [Remote host closed the connection]
charliesome has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sea_local has joined #ruby
quimrstorres has joined #ruby
<sinelaw> shevy, because x is a number, right?
reinaldob has quit [Remote host closed the connection]
<Areessell> immediant values
<certainty> shevy: might be because numbers are immediate? it should work with a custom class for example
Soda has quit [Remote host closed the connection]
<Mattx> any idea guys? haven't you had to scrap a webpage taking into account all tags created by js? how do you do that?
<shevy> sinelaw why is it important, I thought everything is an object :(
<shevy> sinelaw but yeah, speed considerations
<shevy> I think I have more examples still hmm
<shevy> actually, class_eval vs... what was the other eval?
<Areessell> In mruby, ints and symbols are defined as C types, while everything else is a mrb_value struct. It might be that way in MRI as well
<shevy> instance_eval I think. I always mix them up
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sea_local has quit [Ping timeout: 255 seconds]
econerd4ever has joined #ruby
SOLDIERz__ has quit [Ping timeout: 244 seconds]
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
<sinelaw> shevy, thanks
msgodf has quit [Ping timeout: 244 seconds]
wald0 has joined #ruby
SOLDIERz__ has joined #ruby
econerd4ever has quit [Ping timeout: 264 seconds]
louism2wash has quit [Quit: This computer has gone to sleep]
linocisco has quit [Ping timeout: 256 seconds]
<sinelaw> shevy, if you have more, let me know or send a pull request.
<shevy> yeah can't think of any right now
<shevy> next time some newcomer asks a question here on #ruby, I may file an issue request at your github link :D
<shortCircuit__> shevy :P I have to change it to the output you showed, like params[:company][:address_attributes] = params[:company].delete :address . but that may not work
<sinelaw> shevy cool, thanks
nerium has joined #ruby
<shevy> shortCircuit__ oh yeah... delete the old key, add a new key
lw has quit [Quit: s]
abuzze has quit [Remote host closed the connection]
<shevy> the above should work or? you remove the element with .delete, it is returned, then you call the method with the = and set a new one
<nerium> I'm having problem with invalid sha*.bundle files in my ruby 2.0 installation. I solved it last time by copying sha2.bundle and sha1.bundle from a previous installation, which I dont have anymore.
<nerium> Anyone knows where I can download these files?
yfeldblum has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<shortCircuit__> ok
kamil has quit [Quit: Leaving...]
<shortCircuit__> ee that worked!!
blackmesa has quit [Ping timeout: 255 seconds]
russt has quit [Quit: russt]
Hobogrammer has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
bobdobbs has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
aspiers has joined #ruby
mahtennek has joined #ruby
chiel has left #ruby [#ruby]
arup_r_ has quit [Remote host closed the connection]
synergyz has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
synergyz has joined #ruby
lolmaus has joined #ruby
SOLDIERz__ has quit [Ping timeout: 255 seconds]
mkaesz has joined #ruby
<maasha> I wish there was a method to remove bottlenecks :o/ => bottleneck.remove!
arup_r has joined #ruby
<maasha> If I delete this line 180 everthing would be much much faster - but broken ...
lyanchih has quit [Quit: lyanchih]
abuzze has joined #ruby
Areessell has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
<shevy> lol
<shevy> if you know C you could inline-C there
lolmaus has quit [Client Quit]
<maasha> shevy: Well, it is a hash of hashes of sets. Such a structure is messy to work with in C and probably with little gain. I need to think harder to come up with a better structure.
lolmaus has joined #ruby
<maasha> Set.add is the slow part.
abuzze has quit [Read error: Connection reset by peer]
abuzze_ has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
psy_ has quit [Remote host closed the connection]
robustus has joined #ruby
msgodf has joined #ruby
kaspertidemann has joined #ruby
<workmad3> maasha: is adding to the sets able to be done in batches separate from the reading the sets?
lbrf has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<workmad3> maasha: because if so, you may find it's more performant to add to arrays, and convert to a set at the end, rather than having each additional item causing a uniqueness check over the entire set (you'd want to benchmark that though to be sure)
lolmaus has joined #ruby
rshetty has quit [Ping timeout: 258 seconds]
<maasha> workmad3: Not at the moment - I am awere of Set.merge
rshetty has joined #ruby
arup_r_ has joined #ruby
<maasha> *aware
uber_hulk has joined #ruby
<maasha> I'd rather use NArray's than Sets, but it blows memory.
wolf4ood has joined #ruby
krazyj has quit [Quit: krazyj]
lbrf has quit [Ping timeout: 244 seconds]
taiansu has quit [Remote host closed the connection]
razieliyo has joined #ruby
razieliyo has joined #ruby
arup_r has quit [Ping timeout: 252 seconds]
razieliyo has quit [Client Quit]
<maasha> So I have a hash[8] of hashes[2**16] of sets[200000]. Number in [] indicate the number of keys.
<maasha> or values rather
Takle has quit [Remote host closed the connection]
<maasha> It is a shitload of Sets that have values added once at a time. I should really load the sets in a smarter way.
bMalum has quit [Quit: bMalum]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<maasha> maybe I should use Google Sparse Hash instead of Set ...
sinequanon has joined #ruby
msgodf has quit [Remote host closed the connection]
<maasha> Anyone happen to have a Google Sparse Hash vs Set benchmark laying around :oD ?
tokik has quit [Ping timeout: 264 seconds]
Takle_ has joined #ruby
<maasha> keys and values are Fixnums
kiyote23 has joined #ruby
timonv^ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sinequanon has quit [Ping timeout: 244 seconds]
Hobogrammer has quit [Ping timeout: 264 seconds]
kiyote23 has quit [Ping timeout: 244 seconds]
timonv_ has quit [Ping timeout: 264 seconds]
<shevy> Set is slow
lw has joined #ruby
oo_ has quit [Remote host closed the connection]
<shevy> you poor thing
shvelo has quit [Ping timeout: 250 seconds]
lw has quit [Read error: Connection reset by peer]
jenrzzz has quit [Quit: Lost terminal]
lw_ has joined #ruby
ldnunes has joined #ruby
davedev24_ has joined #ruby
zemiudo88 has joined #ruby
udoprog has quit [Quit: WeeChat 0.4.2]
chu has joined #ruby
chu has quit [Changing host]
chu has joined #ruby
zemiudo has quit [Ping timeout: 245 seconds]
rshetty_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
himsin has joined #ruby
ajaiswal has left #ruby ["Leaving"]
St1gma has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
zemiudo88 has quit [Ping timeout: 258 seconds]
damic has joined #ruby
<maasha> Yeah, I see that.
thsig has joined #ruby
<certainty> shevy: Set is slow?
<maasha> Ruby hash is faster
<certainty> which operations?
arturhoo has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<zenspider> maasha: sets of _what_? that's the important part
<canton7> and of what size...
lolmaus has joined #ruby
yfeldblum has joined #ruby
dc_ has quit [Remote host closed the connection]
<maasha> zenspider: sets of integers/Fixnums
samuel02 has joined #ruby
lolmaus has quit [Client Quit]
lolmaus has joined #ruby
<certainty> ah ok we're talking about insertion here
deleg has joined #ruby
<deleg> Why is respond_to? needed when method_missing is defined?
<zenspider> that's not really a good benchmark, overall...
<zenspider> but the only reason why set is slower is because it is 1 more method call over a hash
chishiki has quit [Ping timeout: 244 seconds]
<zenspider> deleg: doesn't that make sense? if method_missing winds up implementing something, the object should report that it responds to it
<maasha> zenspider: well, according to me profiling this index of mine, the bottleneck is Set.add. I will gain little by using Hash or google_hash
<zenspider> maasha: so the 0.59 extra is just the overhead of dispatching the exact same op to a hash... they're basically equivalent
<deleg> zenspider: how about responds_to_missing ?
<zenspider> the growth is exactly the same curve
chishiki has joined #ruby
hiall has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
fertapric has joined #ruby
<zenspider> deleg: I'm pretty sure google works for you just as well as everyone else here
boombadaroomba has joined #ruby
davedev24_ has joined #ruby
<zenspider> maasha: try out benchmark-ips or benchmark-bigoh (visualization of the former)
Timgauthier has joined #ruby
tacotaco_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<deleg> zenspider: I've already been looking through that and was looking for another perspective
<deleg> There's a lot of bad information out there relating to all this, and conflicting, too
<zenspider> super duper clear. glad to google for you. That'll be $5.
<maasha> zenspider: btw, have you messed around with NArrays? I was looking for example on how to manipulate NArrays with inline C. I can do NArray.to_s and get a packed bytearray which I can manipulate using inline C, but the other way around I never tried ...
mahtennek has quit []
<zenspider> maasha: I've never done narray via inline'd c, no.
<deleg> zenspider: already read it
<zenspider> but I was gonna suggest a packed byte array if you're really just doing sets of ints
tacotaco_ has quit [Client Quit]
tacotaco_ has joined #ruby
<zenspider> deleg: my reading services are much much more expensive than my googling services.
<maasha> zenspider: OK - could be useful I think.
<deleg> zenspider: no deal, there's been no value
<zenspider> and you should see the bill for my teaching services. daaamn.
renderful has joined #ruby
<zenspider> maasha: might want to experiment on bignums & bit manip methods first, just to see how they bench against sets.
boombadaroomba has quit [Ping timeout: 252 seconds]
lucyinthesky has joined #ruby
kp666 has joined #ruby
mahtennek has joined #ruby
grn_ has joined #ruby
<zenspider> maasha: hrm... except that there's no []= on bignums and you'll be creating bignums on a real add
<maasha> zenspider: I dont follow?
<zenspider> which means your benchmarks will be biased by GC
<maasha> NArrays are great for bitwise manipulation
grn_ has quit [Client Quit]
<zenspider> what're you actually working on anyhow?
renderful has quit [Ping timeout: 245 seconds]
Stalkr_ has joined #ruby
Xeago has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
DaniG2k has joined #ruby
kaiwren has quit [Ping timeout: 258 seconds]
psy_ has joined #ruby
wsmoak has joined #ruby
quimrstorres has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
nerium has left #ruby [#ruby]
lw_ has quit [Quit: s]
melik has quit [Quit: (null)]
gotscheu has joined #ruby
arturhoo has quit [Quit: arturhoo]
xymbol__ has joined #ruby
<maasha> zenspider: bioinformatics. DNA and RNA sequences. which basically are strings with a 4 char alphabet. Such strings we routinely break into overlapping kmers which can be encoded as list of integers and manipulated.
patrick99e99 has quit [Ping timeout: 244 seconds]
xymbol_ has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
kamil has joined #ruby
rshetty_ has quit [Ping timeout: 272 seconds]
xymbol__ has quit [Client Quit]
doodlehaus has joined #ruby
tzero has quit [Ping timeout: 256 seconds]
fgo has joined #ruby
fabrice31 has quit [Remote host closed the connection]
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
hiall has joined #ruby
gotscheu has quit [Quit: gotscheu]
maasha has quit [Ping timeout: 246 seconds]
nic019 has joined #ruby
gccostabr has joined #ruby
kaiwren has joined #ruby
rimenes has joined #ruby
rimenes has quit [Client Quit]
ponga has joined #ruby
ponga has joined #ruby
samuel02 has quit [Remote host closed the connection]
samuel02 has joined #ruby
samuel02 has quit [Remote host closed the connection]
lbrf has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
hiyosi has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
lucyinthesky has quit [Quit: Golden slumbers.]
hiall_ has joined #ruby
davasaurous has joined #ruby
hiall has quit [Ping timeout: 244 seconds]
hiall_ is now known as hiall
fabrice31 has joined #ruby
mkaesz has quit [Ping timeout: 244 seconds]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
tkuchiki has quit [Ping timeout: 264 seconds]
mahtennek has quit [Remote host closed the connection]
iamninja has joined #ruby
lbrf has quit [Ping timeout: 252 seconds]
St_Marx has joined #ruby
ebbflowgo has joined #ruby
davasaurous has quit [Ping timeout: 272 seconds]
tzero has joined #ruby
depesz has left #ruby ["WeeChat 1.1-dev"]
dangerousdave has joined #ruby
<arup_r_> ?
jimmyy has quit []
francisfish has joined #ruby
doev has quit [Read error: Connection timed out]
shock_one has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 244 seconds]
jimms has joined #ruby
davasaurous has joined #ruby
siaw has joined #ruby
shock_one has joined #ruby
tgandrews has joined #ruby
<siaw> please check this https://gist.github.com/siaw23/fab3ed64016503bef42c why doesn’t the class in the file RETURN/pring the method message? but in terminal i don’t need to use ‘puts'
<siaw> ?
Takle_ has quit [Remote host closed the connection]
<canton7> irb automagically prints everything it can
davasaurous has quit [Ping timeout: 256 seconds]
wchun has quit [Quit: Leaving]
<canton7> you probably need to 'puts t.event'
<arup_r_> I might then get books.. :-)
<arup_r_> Requesting to you guys.
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
apeiros_ has joined #ruby
<siaw> canton7: but why does irb behave that way?
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<canton7> siaw, because it's useful for debugging
timonv^ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
nic019 has quit [Quit: Leaving...]
<siaw> canton7: so it means irb will print anything that a method returns?
<canton7> sure
<canton7> and if you just type 'variable', it will print the value of the variable
ctp has joined #ruby
<siaw> i see
<siaw> canton7: thanks
n1lo has joined #ruby
rodfersou has joined #ruby
yfeldblu_ has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
goodenough has quit [Remote host closed the connection]
shazaum has joined #ruby
samuel02 has joined #ruby
sameerynho has quit [Quit: Leaving]
<shevy> arup_r_ but I don't wanna read more, I already have about 15 books on my left side, all about chemistry and biology! can't overcrowd my small brain with more programming-related books - plus I have said a while ago that I will finally learn C seriously :(
<shevy> that C book is somewhere under a pile of papers though... hahaha
<arup_r_> shevy: you just register using the link.. which will increase my wining probability.. :-)
yfeldblum has quit [Ping timeout: 256 seconds]
<shevy> what is the correct answer to the question
<claf> I have a slightly negative attitude towards spamming competitions, especially with referral, on this channel
<arup_r_> shevy: peter
lifenoodles has quit [Ping timeout: 272 seconds]
<arup_r_> Pete Keen
<shevy> hehe I was just wondering
yfeldblu_ has quit [Ping timeout: 256 seconds]
<shevy> you don't even know either! ;D
nic019 has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
<arup_r_> didn't get you..
<shevy> actually, I think in northern germany and the netherlands... Pete is a real name, or the variant Peter there... Pete Glocke... or perhaps it is actually written Piet or Pjet ... in poland it is pjotr
<shevy> well you wrote "peter" so I selected it... oh wait, there was only "pete" ;-)
dfinninger has joined #ruby
hgl has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
<txdv> peter pan und die sieben schwuchteln
Xeago has joined #ruby
nuomi has joined #ruby
nuomi has left #ruby [#ruby]
<arup_r_> shevy: Got you... :-)
<hgl> i'm trying to access a deeply nested attr like obj.a.b.c, is there a quick way to tell ruby that if any level returns a nil, return nil immediately?
arup_r_ has quit []
arup_r has joined #ruby
<shevy> txdv haha... what about the hobbits in lord of the rings when they were jumping sexily in the bed?
<txdv> em
txdv was kicked from #ruby by apeiros_ [language]
txdv has joined #ruby
<txdv> is german not allowed?
teddyp1c_ has joined #ruby
lifenoodles has joined #ruby
<apeiros_> you know full well what was the trigger.
Timgauthier is now known as timgauthier_away
<shevy> hgl I think not an intrinsic idiom; a primitive way would be to put it inside begin/rescue and rescue only nil errors like
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> >> nil.foo.class
<eval-in__> shevy => undefined method `foo' for nil:NilClass (NoMethodError) ... (https://eval.in/230349)
<txdv> its just one fun sentence because they were talking about peter ban all the time
<apeiros_> txdv: it's not fun. it's not acceptable in here.
<txdv> no acceptance of german homosexuality
dfinninger has quit [Ping timeout: 256 seconds]
txdv was banned on #ruby by apeiros_ [txdv!*@*]
txdv was kicked from #ruby by apeiros_ [txdv]
<hgl> shevy, ok, will try that, thanks.
<apeiros_> no. no acceptance of abusing it for laughs and giggles.
teddyp1cker has quit [Ping timeout: 244 seconds]
fgo has quit [Quit: WeeChat 1.0]
quimrstorres has quit [Remote host closed the connection]
fgo has joined #ruby
Timgauthier has joined #ruby
postmodern has quit [Quit: Leaving]
rageberry has joined #ruby
rvbt has joined #ruby
arup_r has quit [Remote host closed the connection]
quimrstorres has joined #ruby
timonv_ has joined #ruby
linelevel1 has joined #ruby
andikr has quit [Remote host closed the connection]
linelevel has quit [Ping timeout: 250 seconds]
kp666 has quit [Quit: Leaving]
<shortCircuit__> I have Company has_many employees and Employee has_many EmployeLeave. I have to get the employeeleaves for a particular company, I was goin to try @company..employees.joins(:employee_leaves) but that would give me Employee array. Is there a way to get the employeeleaves without doing looping statements like @company.employees.collect{|c| e.employee_leaves}
<shortCircuit__> *c.
<apeiros_> shortCircuit__: #rubyonrails?
<shortCircuit__> yohhh sorry
<shortCircuit__> my mistake
<wasamasa> what the hell are employeeleaves?
linelevel1 has quit [Read error: No route to host]
<wasamasa> is this a nickname for a psychoactive plant for drugging up code monkeys?
linelevel has joined #ruby
* apeiros_ would assume absences of employees
<shortCircuit__> I don't know it was given that way, the leaves taken by employees
tgandrews has joined #ruby
<shortCircuit__> employee_leaves
Areessell has joined #ruby
anaeem___ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lw has joined #ruby
linelevel has quit [Ping timeout: 244 seconds]
BaconOverflow has joined #ruby
linelevel has joined #ruby
himsin has quit [Quit: himsin]
* hanmac1 is a tree now and he is leafing now ;P
SCHAAP137 has joined #ruby
rshetty_ has joined #ruby
uber_hulk has quit [Ping timeout: 255 seconds]
carif_ has quit [Read error: Connection reset by peer]
linelevel1 has joined #ruby
lw has quit [Quit: b]
arup_r has joined #ruby
psy_ has quit [Remote host closed the connection]
linelevel has quit [Ping timeout: 244 seconds]
rshetty has quit [Ping timeout: 244 seconds]
lbrf has joined #ruby
siaw has left #ruby [#ruby]
linelevel1 has quit [Ping timeout: 256 seconds]
ton31337 has left #ruby [#ruby]
shvelo has joined #ruby
lbrf has quit [Ping timeout: 264 seconds]
nanSTA has joined #ruby
<nanSTA> Hello!
<nanSTA> i have a script that outputs a set of numbers and cannot figure out a way to add them up
sptx00 has joined #ruby
skywritergr has joined #ruby
<claf> ok, pastie?
robustus is now known as robustus|Off
uber_hulk has joined #ruby
doodlehaus has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
lw has joined #ruby
davasaurous has joined #ruby
<nanSTA> numbers = cc_number.split('').reverse numbers.each_with_index do |item, index| if index % 2 == 1 item = item.to_i * 2 if item > 9 item -= 9 end end puts item end end
<nanSTA> def luhn_check(cc_number) numbers = cc_number.split('').reverse numbers.each_with_index do |item, index| if index % 2 == 1 item = item.to_i * 2 if item > 9 item -= 9 end end puts item end end
Cyberheb has quit [Quit: Textual IRC Client: www.textualapp.com]
rshetty_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<hanmac1> nanSTA: are you looking for Enumerable#map ?
nagaraj has quit [Quit: nagaraj]
St_Marx has quit [Remote host closed the connection]
<nanSTA> yea
<hanmac1> because each_with_index does not change the values
ConstantineXVI has joined #ruby
<nanSTA> can you explain?
St_Marx has joined #ruby
mkaesz has joined #ruby
<nanSTA> if i iterate with each_with_index i cannot sum up my items
<nanSTA> ?
davasaurous has quit [Ping timeout: 256 seconds]
<hanmac1> each and each with index does not modifiy the array/list of numbers you have. the values used in "item" are frozen/not modifyable, so item -= 9 does not have any effect
<hanmac1> you need to use map.with_index instead of each_with_index
<nanSTA> oh okay
arup_r_ has joined #ruby
Takle has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
<hanmac1> hm try that: numbers.map.with_index {|item, index| index % 2 == 1 && (item = item.to_i * 2) > 9 ? item - 9 : item }
kaspertidemann has quit []
Timgauthier has joined #ruby
<nanSTA> hm no luck
shvelo has quit [Ping timeout: 264 seconds]
nagaraj has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
arup_r has joined #ruby
<nanSTA> how can i change an array of strings to ints?
aclearman037 has joined #ruby
blueOxigen has quit [Ping timeout: 245 seconds]
<gregf_> nanSTA: "12345".split("").map(&:to_i) ?
<gregf_> nanSTA: what hanmac1 said should work. no?
<Timgauthier> where the heck should i install imagemagik :S jeeze i am so lost in developer land sometimes lol
arup_r_ has quit [Ping timeout: 244 seconds]
redjack1964 has joined #ruby
<gregf_> nanSTA: "123456789".split("").reverse.each_with_index.map { |item, index| index % 2 == 1 ? item.to_i * 2 : item.to_i >= 9 ? item.to_i-9 : item }
himsin has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
himsin has quit [Client Quit]
<deleg> zenspider: big fat "do not use directly". contradicts what you were pushing
doodlehaus has joined #ruby
doki-worry has joined #ruby
kamil has quit [Quit: Leaving...]
claptor has quit [Quit: this channel is bakas]
sk87 has joined #ruby
teddyp1cker has joined #ruby
<nanSTA> can you guys help me understand the : colon operator
rageberry has quit [Ping timeout: 244 seconds]
Milkweed has joined #ruby
teddyp1c_ has quit [Ping timeout: 252 seconds]
sk87 has quit [Client Quit]
ycodr has quit [Ping timeout: 264 seconds]
ycodr has joined #ruby
<PierreRambaud> nanSTA, it's a symbol. Symbols have the distinct feature that any two symbols named the same will be identical
<claf> nanSTA: do you mean ternary?
<gregf_> nanSTA: you can translate "12345".split("").map(&:to_i) ==> "12345".split("").map { |char| char.to_i }
ddd has joined #ruby
joonty has quit [Ping timeout: 240 seconds]
<hanmac1> gregf_ why ".each_with_index.map" and not ".map.with_index" ?
quimrstorres has quit [Remote host closed the connection]
<PierreRambaud> nanSTA, ho sorry, thinking about symbol instead of ternary operator ><
<gregf_> hanmac1: well, map.with_index reads better :/ plus each_with does another loop i guess. map+each
samuel02 has quit [Read error: Connection reset by peer]
robustus|Off is now known as robustus
samuel02 has joined #ruby
patrick99e99 has joined #ruby
klmlfl has joined #ruby
<gregf_> hanmac1: is there a way to deparse a ruby code block? as in generate actual code ?
bMalum has joined #ruby
<hanmac1> gregf_ you mean turn a Proc into CodeString? oO
mahtennek has joined #ruby
<gregf_> like so, given [*1..10].each_with_index.map.select { |_, i| i %2 == 0 }.map(&:last) <= note: the map is prolly not needed
ponga has quit [Remote host closed the connection]
TPBallbag has joined #ruby
<gregf_> but yeah, true. proc to a codestring i.e a map translates to a for loop etc etc
ponga has joined #ruby
_5kg_ has quit [Ping timeout: 244 seconds]
doodlehaus has quit [Remote host closed the connection]
doki-worry has quit [Ping timeout: 258 seconds]
psy_ has joined #ruby
<apeiros_> [*1..10].each --> (1..10).each
<apeiros_> no need to create that ephemeral array
patrick99e99 has quit [Ping timeout: 250 seconds]
<hanmac1> gregf_: yours returns the indexes, do you want that?
<hanmac1> >> ("A".."K").each_with_index.map.select { |_, i| i %2 == 0 }.map(&:last)
<eval-in__> hanmac1 => [0, 2, 4, 6, 8, 10] (https://eval.in/230376)
<hanmac1> >> ("A".."K").each_with_index.map.select { |_, i| i %2 == 0 }.map(&:first)
<eval-in__> hanmac1 => ["A", "C", "E", "G", "I", "K"] (https://eval.in/230377)
bMalum has quit [Quit: bMalum]
sevenseacat has joined #ruby
joonty has joined #ruby
kobain has joined #ruby
<gregf_> hanmac1: yeah, thats just an eg. i know it returns indexes. i needs the indexes of all values divisible by 2 ;)
<hanmac1> gregf_: for yours, you dont even need map ... when you not want the indexes ...
<hanmac1> >> ("A".."K").select.with_index { |_, i| i %2 == 0 }
<eval-in__> hanmac1 => ["A", "C", "E", "G", "I", "K"] (https://eval.in/230380)
sk87 has joined #ruby
<hanmac1> gregf_: then you do it wrong, because currently you divide the indexes and not the values
<gregf_> hanmac1: i know i dont need. infact quite a few method calls are not needed. but what i was asking was if i include redundant method call, can i somehow get the code generated for those calls?
Dmr has joined #ruby
<hanmac1> gregf_: currently the best way i thought is:
<hanmac1> >> [2,4,5,6,7,8,3,3,2].each_with_index.select { |i, _| i %2 == 0 }.map(&:last)
<eval-in__> hanmac1 => [0, 1, 3, 5, 8] (https://eval.in/230381)
joonty has quit [Client Quit]
ponga has quit [Ping timeout: 250 seconds]
Darryl_ has joined #ruby
<gregf_> ah - nevrmind. its not about the code i was asking, the internally generated ruby code for a a method call i make
AlSquirrel has joined #ruby
russt has joined #ruby
klmlfl has quit [Remote host closed the connection]
AlSquire has quit [Ping timeout: 258 seconds]
nagaraj has quit [Quit: nagaraj]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<hanmac1> gregf_: and your question before: no you cant turn a proc into ruby code itself again
henesy has quit [Ping timeout: 258 seconds]
lbrf has joined #ruby
Tranquility has joined #ruby
ponga has joined #ruby
ponga has quit [Client Quit]
<hanmac1> gregf_: there is Proc#source_location but you cant trust it
iamninja has quit [Ping timeout: 250 seconds]
juuio has joined #ruby
rageberry has joined #ruby
lbrf has quit [Ping timeout: 258 seconds]
eichenwald has joined #ruby
Dmr has quit [Quit: Leaving]
triple_b has joined #ruby
yfeldblum has joined #ruby
mark06 has joined #ruby
<mark06> feedback is welcome
siaw has joined #ruby
thsig_ has joined #ruby
arup_r has quit [Remote host closed the connection]
<siaw> i have this: https://gist.github.com/siaw23/fbabd18e7caa2c03257c assuming i want to get rid of def initialize and use attr_accessor, how would I set @date to Time.now?
juuio has quit [Ping timeout: 250 seconds]
Guest35729 has joined #ruby
<waxjar> def time; @time ||= Time.now; end
Aryasam has joined #ruby
doev has joined #ruby
<siaw> waxjar: i down’t want to use a def
elemenopy has joined #ruby
<elemenopy> sad face :( i've got an app that i need to set the maximum amount of memory it is allowed to consume. i run the app with "ruby xxfilenameherexx.rb" and after about 10 hours of forks and threads it halts the system. how can i specify the maximum amount of memory that ruby is allowed to use as a whole?
<pontiki> siaw: at what point in the lifetime of the Ticket object do you want date to be set?
zB0hs has joined #ruby
<siaw> pontiki: a the point when the object is created
<pontiki> then you need to do it in initialize
orionsaresh is now known as orionstein
<canton7> siaw, you put it in the initializer then
<siaw> immediately the object is created
<canton7> that's what it's there for
davasaurous has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<siaw> canton7: that’s what i thought but i was thinking maybe there was a better shorter way
<waxjar> elemenopy: you'll have to use some tool that monitors memory usage
<waxjar> and kills/restarts your process if it consumes too much
Xeago has quit [Remote host closed the connection]
thsig has quit [Ping timeout: 256 seconds]
ctp has joined #ruby
<elemenopy> waxjar, ok let me google a little bit
siaw has left #ruby [#ruby]
nanSTA has quit [Ping timeout: 258 seconds]
dfinninger has joined #ruby
joast has quit [Quit: Leaving.]
davasaurous has quit [Ping timeout: 244 seconds]
<elemenopy> waxjar, it looks like i need to use god
<elemenopy> waxjar, www.godrb.com
<shevy> hey apeiros do you use "def foo(i)" or rather "def foo i" ?
<apeiros_> shortCircuit__: yes
<apeiros_> whoops
<apeiros_> shevy: yes
<apeiros_> (sorry shortCircuit__)
<shevy> hehe
St_Marx has quit [Remote host closed the connection]
<shevy> I think I finally understood why some ruby devs use the paren-less form
St_Marx has joined #ruby
<shevy> object.report_cost_of 'bla'
<shevy> def report_cost_of i
<shevy> def report_cost_of(i)
<shevy> the first def is actually easier
<waxjar> yeah i think god can do it elemenopy, but there is probably a more lightweight tool to do it
<elemenopy> dudes / dudettes, this god app is amazing, im reading the crap outta this document and it sounds insane
dfinninger has quit [Ping timeout: 240 seconds]
<claf> good god!
<waxjar> elemenopy: best solution would of course be to fix your memory leak :P
<ddv> god app?
<ddv> oh
<ddv> I would use systemd
<claf> god monitoring framework
KC9YDN has quit [Remote host closed the connection]
* hanmac1 wispers to shevy that the default value of a parameter in a ruby function can be a method call ;P
Timgauthier is now known as timgauthier_away
KC9YDN has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mkaesz has quit [Remote host closed the connection]
<hanmac1> there arent many other languages where the default parameter can be a method call
jherbst has joined #ruby
<elemenopy> waxjar, that's the thing it's a data mining tool for a nonprofit site. after about 8 hours it seems to be hitting a gigantic amount of data. so when that thread forks it consumes the machine. maybe i should first measure the length of html downloaded before even touching the data each time perhaps?
anaeem1_ has joined #ruby
tier has joined #ruby
jerius has joined #ruby
_5kg_ has joined #ruby
KC9YDN has quit [Client Quit]
mleone has joined #ruby
Xeago has joined #ruby
davedev24_ has quit [Remote host closed the connection]
elemenopy has quit [Remote host closed the connection]
wald0 has quit [Ping timeout: 250 seconds]
ptrrr has joined #ruby
KC9YDN has joined #ruby
wald0 has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
skywritergr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
kaiwren has quit [Quit: kaiwren]
whoisjake has joined #ruby
terlar has quit [Ping timeout: 252 seconds]
dblessing has joined #ruby
nanSTA has joined #ruby
mark06 has quit [Quit: http://pidgin.renatosilva.me - Pidgin++]
maestrojed has joined #ruby
joast has joined #ruby
quimrstorres has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
samuel02 has quit []
samuel02 has joined #ruby
hiyosi has quit [Quit: Textual IRC Client: www.textualapp.com]
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
allcentury has joined #ruby
ddd has left #ruby [#ruby]
ddd has joined #ruby
sinequanon has joined #ruby
thsig_ has quit [Remote host closed the connection]
nanSTA has quit [Ping timeout: 258 seconds]
rdark_ has joined #ruby
phutchins has joined #ruby
blackmesa has joined #ruby
sinequanon has quit [Ping timeout: 258 seconds]
tier_ has joined #ruby
rdark has quit [Ping timeout: 258 seconds]
xaaabk has joined #ruby
joonty has joined #ruby
Channel6 has joined #ruby
silkfox has joined #ruby
s00pcan has quit [Remote host closed the connection]
xaaabk has quit [Client Quit]
sambao21 has joined #ruby
shock_one has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
tier has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
xaaabk has joined #ruby
robustus is now known as robustus|Off
Spami has joined #ruby
KC9YDN has quit [Read error: Connection reset by peer]
<gregf_> hanmac1: thanks!
s00pcan has joined #ruby
LBRapid has quit [Quit: ZNC - http://znc.in]
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
LBRapid has joined #ruby
xaaabk has quit [Client Quit]
devdazed has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
xaaabk has joined #ruby
Aryasam has quit [Quit: Bye]
Takle has quit [Remote host closed the connection]
weems|mac has joined #ruby
Spami has quit [Client Quit]
apeiros_ has joined #ruby
weems|mac has quit [Changing host]
weems|mac has joined #ruby
darkmagex6 has left #ruby [#ruby]
Spami has joined #ruby
ducklobster has quit [Ping timeout: 272 seconds]
sailias has joined #ruby
lbrf has joined #ruby
thsig has joined #ruby
enebo has joined #ruby
livingstn has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
jrhorn424 is now known as zz_jrhorn424
Takle_ has joined #ruby
zmisc has joined #ruby
Timgauthier has joined #ruby
yfeldblum has joined #ruby
hiyosi has joined #ruby
Mattx has quit [Quit: Leaving]
lbrf has quit [Ping timeout: 250 seconds]
jimbach has joined #ruby
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
shock_one has joined #ruby
adriancb has joined #ruby
joonty has quit [Quit: Leaving]
lw has quit [Quit: s]
KC9YDN has joined #ruby
KC9YDN has quit [Changing host]
KC9YDN has joined #ruby
lolmaus has quit [Remote host closed the connection]
koderok has joined #ruby
lolmaus has joined #ruby
koderok has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 260 seconds]
orolo has joined #ruby
shvelo has joined #ruby
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
zz_jrhorn424 is now known as jrhorn424
adriancb has joined #ruby
noop has quit [Ping timeout: 272 seconds]
xaaabk has quit [Quit: Leaving]
<shevy> code code code
xaaabk has joined #ruby
razieliyo has joined #ruby
maestrojed has joined #ruby
uber_hulk has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
last_sta1 has quit [Quit: last_sta1]
chinmay_dd has joined #ruby
<apeiros_> aaaah lovely code I found due to a bug (not my code): ((Date.new(today.year, today.month + 1)..(Date.new(today.year + 5, today.month + 1)).select { |date| date.day == 1 }
tgandrews has quit [Quit: This computer has gone to sleep]
ddd has quit [Quit: leaving]
Channel6 has quit [Remote host closed the connection]
josephndenton has joined #ruby
tgandrews has joined #ruby
<shevy> so 5 years?
jrhorn424 is now known as zz_jrhorn424
<twohlix_> also seems like you generate a lot of shitty dates that way
francisfish has quit [Remote host closed the connection]
uber_hulk has joined #ruby
zz_jrhorn424 is now known as jrhorn424
Rahul_Roy_ has joined #ruby
francisfish has joined #ruby
francisfish has quit [Client Quit]
<apeiros_> well, the worst thing is - it breaks
<apeiros_> it doesn't work when today is in december
<apeiros_> (which is why the bug surfaced)
<apeiros_> and yes, it's quite wasteful to iterate 5*365.2425 days to collect 60 of them
lw has joined #ruby
jso has quit [Quit: Bye]
ddd has joined #ruby
kamil has joined #ruby
Advocation has joined #ruby
<twohlix_> apeiros_: yea, you could get a 33x speedup and 33x better memory footprint for that block of code. lol
noop has joined #ruby
emmesswhy has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
tier_ has quit [Remote host closed the connection]
kwd has quit [Quit: kwd]
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
juuio has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Meeh_ is now known as Meeh
Guest35729 has quit [Ping timeout: 264 seconds]
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
StoneCypher has joined #ruby
oleo has joined #ruby
StoneCypher has quit [Client Quit]
<hanmac1> apeiros_
<hanmac1> >> require "date": Date.today.next_month
<eval-in__> hanmac1 => /tmp/execpad-d2e807445836/source-d2e807445836:2: syntax error, unexpected ':', expecting keyword_end ... (https://eval.in/230412)
<hanmac1> >> require "date"; Date.today.next_month
<eval-in__> hanmac1 => #<Date: 2015-01-04 ((2457027j,0s,0n),+0s,2299161j)> (https://eval.in/230413)
Macaveli has quit [Ping timeout: 250 seconds]
boombadaroomba has joined #ruby
it0a has joined #ruby
treehug88 has joined #ruby
terlar has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
xymbol has joined #ruby
boombadaroomba has quit [Ping timeout: 256 seconds]
Takle_ has quit [Remote host closed the connection]
godd2 has quit [Ping timeout: 240 seconds]
jrhorn424 is now known as zz_jrhorn424
Takle has joined #ruby
evanjs has joined #ruby
ConstantineXVI has quit [Max SendQ exceeded]
zz_jrhorn424 is now known as jrhorn424
Takle_ has joined #ruby
<hanmac1> apeiros_ i think something similar to 60.times.with_object([Date.today.next_month]) {|_,a| a << a.last.next_month } might be nicer
Takle has quit [Read error: Connection reset by peer]
Soda has joined #ruby
TPBallbag has quit []
dotix has joined #ruby
noop has quit [Ping timeout: 245 seconds]
jrhorn424 is now known as zz_jrhorn424
<apeiros_> hanmac1: omits that you have to be at the beginning of the month. I didn't think much and just used Array.new(60) + divmod
Kricir has joined #ruby
patrick99e99 has joined #ruby
<apeiros_> probably not the nicest variant, but it works and is not utterly wasteful
tgandrews has joined #ruby
<dotix> Hey guys! Is there any way to get all the nodes from an Nokogiri::Html object?
zz_jrhorn424 is now known as jrhorn424
icbm has joined #ruby
<dotix> i.e. page is "<html><body><h1>Text</h1></body></html>" I want to get "html" and "body"
<dotix> can't find a solution on google
mahtennek has quit []
ctp has joined #ruby
jlast has joined #ruby
zB0hs has quit [Read error: Connection reset by peer]
<dotix> oh and "h1" in my prev example.. Forgot about it
jrhorn424 is now known as zz_jrhorn424
lampd1 has quit []
rdark has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
ConstantineXVI has joined #ruby
xymbol has quit [Quit: Be back later ...]
zz_jrhorn424 is now known as jrhorn424
Mothore has joined #ruby
rdark_ has quit [Ping timeout: 264 seconds]
xymbol has joined #ruby
jshultz has joined #ruby
<dotix> Got it with .traverse on the object
mary5030 has joined #ruby
tier has joined #ruby
<marahin> mozesz jeszcze dojebac .to_string(); (w C++!) i wio
<marahin> w/c
<marahin> sorry
<dotix> but this doesn't respect the order afterwhich they appear... hmm
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
tobago has quit [Remote host closed the connection]
freerobby has joined #ruby
yalue has joined #ruby
quimrstorres has joined #ruby
fella6s has quit [Read error: Connection reset by peer]
jusmyth1 has joined #ruby
jobewan has joined #ruby
nastri has joined #ruby
xymbol has quit [Ping timeout: 272 seconds]
renderful has joined #ruby
nanSTA has joined #ruby
akkad has quit [Ping timeout: 240 seconds]
danman has joined #ruby
akkad has joined #ruby
kaiwren has joined #ruby
russt has quit [Quit: russt]
<shock_one> Could you remind me how to create a class with constructor automatically? It's something like ClassName = MagicObject.create_class(foo: 1, bar: 2)
tagrudev has quit [Remote host closed the connection]
<shock_one> I forgot the MagicObject actual name.
xaaabk has quit [Quit: Leaving]
<shock_one> Nevermind, it's Customer = Struct.new(:name, :address)
yfeldblum has joined #ruby
<shevy> hehe
axl_ has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
nanSTA has quit [Ping timeout: 258 seconds]
ctp has quit [Quit: Connection reset by peer... Isn't he that short little Mexican with the wire cutters heading your way?]
SOLDIERz has joined #ruby
kaiwren has quit [Ping timeout: 265 seconds]
chrishough has joined #ruby
kiyote23 has joined #ruby
lbrf has joined #ruby
deleg has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
davasaurous has joined #ruby
econerd4ever has joined #ruby
deleg has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
dfinninger has joined #ruby
russt has joined #ruby
claw___ has joined #ruby
havenwood has joined #ruby
livathin_ has joined #ruby
lbrf has quit [Ping timeout: 264 seconds]
<mikedugan> anyone know if Hashie has an array index accessor available?
davasaurous has quit [Ping timeout: 260 seconds]
sevvie has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
SOLDIERz has quit [Quit: Be back later ...]
hanmac1 has quit [Quit: Leaving.]
dfinninger has quit [Ping timeout: 240 seconds]
taiansu has joined #ruby
livathinos has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
cloaked1 has quit [Quit: leaving]
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
anafrogue_ has joined #ruby
jlast_ has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
adriancb has quit [Remote host closed the connection]
doug2 has joined #ruby
uber_hulk has quit [Remote host closed the connection]
nkumari has joined #ruby
rshetty has joined #ruby
rippa has joined #ruby
robustus|Off is now known as robustus
jlast has quit [Ping timeout: 250 seconds]
uber_hulk has joined #ruby
anafrogue__ has quit [Ping timeout: 255 seconds]
econerd4ever has quit [Read error: Connection reset by peer]
lw has quit [Quit: s]
econerd4ever has joined #ruby
lw has joined #ruby
kaiwren has joined #ruby
kaiwren has quit [Client Quit]
nrsk has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kiyote23 has quit [Remote host closed the connection]
zmisc has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
AlexRussia has joined #ruby
nkumari has quit [Remote host closed the connection]
FutureTense has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
william3 has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
workmad3 has quit [Ping timeout: 244 seconds]
jrhorn424 is now known as zz_jrhorn424
kiyote23 has joined #ruby
doug2 has quit [Ping timeout: 265 seconds]
anarang has quit [Quit: Leaving]
charliesome has quit [Quit: zzz]
skywritergr has joined #ruby
nfk has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
jimms has quit []
bal has quit [Quit: bal]
morose has joined #ruby
ptrrr has quit [Quit: ptrrr]
rageberry has quit [Quit: WeeChat 0.4.2]
speed2 has joined #ruby
speed2 has quit [Client Quit]
renanoronfle has joined #ruby
sinequanon has joined #ruby
lw has quit [Quit: s]
klmlfl has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
pwestlund has joined #ruby
Guest18066 has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Leaving.]
adriancb has joined #ruby
dfinninger has joined #ruby
sinequanon has quit [Ping timeout: 272 seconds]
zz_jrhorn424 is now known as jrhorn424
tier_ has joined #ruby
Crazy_Atheist has joined #ruby
econerd4ever has joined #ruby
dotix has quit [Ping timeout: 258 seconds]
xymbol has joined #ruby
mollitz has quit [Ping timeout: 240 seconds]
gsd has joined #ruby
gsd has quit [Client Quit]
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tier has quit [Ping timeout: 244 seconds]
livathin_ has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
gsd has joined #ruby
eichenwald has quit [Quit: WeeChat 1.0.1]
Hobogrammer has joined #ruby
CustosLimen has quit [Ping timeout: 255 seconds]
CustosL1men has quit [Ping timeout: 256 seconds]
Beoran_ has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
econerd4ever has quit [Remote host closed the connection]
thsig_ has joined #ruby
byprdct has quit [Read error: Connection reset by peer]
mary5030_ has joined #ruby
<shevy> Hanmac, do you have your projects including the most recent one with the graphs, on github?
Kricir has quit [Remote host closed the connection]
econerd4ever has joined #ruby
wjimenez5271 has joined #ruby
cbetta_ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
ohcibi_ has joined #ruby
Y_Ichiro_ has joined #ruby
Su7 has joined #ruby
kiyote23 has joined #ruby
geggam has joined #ruby
suy_ has joined #ruby
Darryl__ has joined #ruby
Beoran__ has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
ereslibre has joined #ruby
gilmour_ has joined #ruby
rkalfane has joined #ruby
gigetoo_ has joined #ruby
Anarch_ has joined #ruby
PaulePan1er has joined #ruby
moloch has joined #ruby
aganov has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 264 seconds]
Hien_ has joined #ruby
teddyp1c_ has joined #ruby
Stoge88 has joined #ruby
s00pcan_ has joined #ruby
Akagi201 has quit [Remote host closed the connection]
thsig has quit [Read error: Connection reset by peer]
mary5030 has quit [Read error: Connection reset by peer]
cbetta has quit [Read error: Connection reset by peer]
Darryl_ has quit [Ping timeout: 265 seconds]
LRgraham has quit [Ping timeout: 265 seconds]
teotwaki has quit [Ping timeout: 265 seconds]
artgoeshere_ has quit [Ping timeout: 265 seconds]
suy has quit [Remote host closed the connection]
Karunamon has quit [Ping timeout: 265 seconds]
JaTochNietDan has quit [Ping timeout: 265 seconds]
Paradox has quit [Ping timeout: 265 seconds]
nemesit|znc has quit [Ping timeout: 265 seconds]
cschneid has quit [Ping timeout: 265 seconds]
ndrst has quit [Ping timeout: 265 seconds]
ElderFain has quit [Ping timeout: 265 seconds]
jokke has quit [Ping timeout: 265 seconds]
cicloid has quit [Ping timeout: 265 seconds]
terrellt has quit [Ping timeout: 265 seconds]
phrozen77 has quit [Ping timeout: 265 seconds]
epochwolf has quit [Ping timeout: 265 seconds]
G has quit [Ping timeout: 265 seconds]
dickoff has quit [Ping timeout: 265 seconds]
krisleech has quit [Ping timeout: 265 seconds]
razieliyo has quit [Ping timeout: 265 seconds]
Hien has quit [Ping timeout: 265 seconds]
Su7_ has quit [Ping timeout: 265 seconds]
SegFaultAX has quit [Ping timeout: 265 seconds]
ohcibi has quit [Ping timeout: 265 seconds]
F__i__L has joined #ruby
BackEndCoder has quit [Ping timeout: 265 seconds]
ereslibre_laptop has quit [Ping timeout: 265 seconds]
elektronaut has quit [Ping timeout: 265 seconds]
canton7 has quit [Ping timeout: 265 seconds]
Y_Ichiro has quit [Ping timeout: 265 seconds]
kalz has quit [Ping timeout: 265 seconds]
orionstein has quit [Ping timeout: 265 seconds]
zly has quit [Ping timeout: 265 seconds]
nug has quit [Ping timeout: 265 seconds]
lupine has quit [Ping timeout: 265 seconds]
majoh has quit [Ping timeout: 265 seconds]
s00pcan has quit [Ping timeout: 265 seconds]
Brando753 has quit [Ping timeout: 265 seconds]
gigetoo has quit [Ping timeout: 265 seconds]
gilmour has quit [Ping timeout: 265 seconds]
PaulePanter has quit [Ping timeout: 265 seconds]
Anarch has quit [Ping timeout: 265 seconds]
avelldiroll has quit [Ping timeout: 265 seconds]
shaman42 has quit [Ping timeout: 265 seconds]
KramerC has quit [Ping timeout: 265 seconds]
suy|BNC is now known as suy
cbetta_ is now known as cbetta
Brando753-o_O_o has joined #ruby
LRgraham has joined #ruby
vasilakisfil has quit [Ping timeout: 265 seconds]
gigetoo_ is now known as gigetoo
artgoeshere has joined #ruby
cicloid_ has joined #ruby
KramerC_ has joined #ruby
krisleech has joined #ruby
BackEndCoder has joined #ruby
ElderFain has joined #ruby
gnarld_ has joined #ruby
nemesit|znc has joined #ruby
lupine has joined #ruby
dickoff has joined #ruby
dickoff has joined #ruby
dickoff has quit [Changing host]
orionstein has joined #ruby
ndrst has joined #ruby
jokke has joined #ruby
KramerC_ is now known as KramerC
Karunamon has joined #ruby
elektronaut has joined #ruby
canton7 has joined #ruby
majoh has joined #ruby
razieliyo has joined #ruby
teotwaki has joined #ruby
phrozen77 has joined #ruby
Paradox has joined #ruby
Photism has joined #ruby
SegFaultAX has joined #ruby
einarj has quit [Read error: Connection reset by peer]
teddyp1cker has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
einarj has joined #ruby
JaTochNietDan has joined #ruby
avelldiroll has joined #ruby
cschneid has joined #ruby
Brando753-o_O_o is now known as Brando753
terrellt has joined #ruby
yfeldblum has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
epochwolf has joined #ruby
shaman42 has joined #ruby
sevvie has joined #ruby
kalz has joined #ruby
Nigel_ has joined #ruby
xxneolithicxx has joined #ruby
qba73 has quit []
<xxneolithicxx> hi all, has anyone used the rubyinstaller.org installer before for Windows? Have a qq on how it ends up being setup and really dont want to have to boot a Windows vm to try it: Does it automatically add ruby/gem to the environment PATH so you dont have to fully qualify it?
yfeldblum has quit [Ping timeout: 260 seconds]
<shevy> yes there is an option during install
<shevy> if you click it, the path is modified and when you then start cmd.exe "ruby" will work
doodlehaus has joined #ruby
<shevy> same with gem; "gem install bla" will also work
<xxneolithicxx> shevy: k cool, ty
robustus is now known as robustus|Off
apeiros_ has quit [Remote host closed the connection]
deleg has quit [Ping timeout: 250 seconds]
apeiros_ has joined #ruby
marr has quit [Ping timeout: 256 seconds]
abuzze_ has quit [Remote host closed the connection]
jimbach has quit [Read error: Network is unreachable]
sevvie has quit [Read error: Connection reset by peer]
jimbach has joined #ruby
sevvie has joined #ruby
mices has joined #ruby
BaconOverflow has quit [Quit: Connection closed for inactivity]
ConstantineXVI has quit [Ping timeout: 258 seconds]
AxonetBE has quit [Quit: AxonetBE]
sambao21 has quit [Quit: Computer has gone to sleep.]
lbrf has joined #ruby
StephenA1 has joined #ruby
apeiros_ has quit [Ping timeout: 260 seconds]
terlar has quit [Quit: WeeChat 1.0.1]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
terlar has joined #ruby
<mices> Fetching: execjs-2.2.2.gem (100%)
<mices> ERROR: While executing gem ... (Errno::ENOENT)
devoldmx33 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
sambao21 has quit [Client Quit]
<william3> Anyone know the best way to handle 9 different behaviours in ruby?
<mices> Could not find a valid gem 'execjs-2.2.2' (>= 0) in any repository Possible alternatives: execjs-async, execjs-rails, execjs-xtrn
<william3> I have 9 combinations of two variables
<mices> should i use one of the alts
tercenya has quit []
benzrf|offline is now known as benzrf
Y_Ichiro_ has quit [Read error: Connection reset by peer]
Y_Ichiro has joined #ruby
<benzrf> william3: explain a lil more please
emmesswhy has quit [Quit: This computer has gone to sleep]
einarj has quit [Remote host closed the connection]
<william3> I've got two factors: colour and height
xymbol_ has joined #ruby
wsmoak has quit [Quit: wsmoak]
<william3> with 3 different options for each
<william3> every combination leads to a different outcome
<william3> say
quimrstorres has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
mices has quit []
sambao21 has joined #ruby
the_f0ster has joined #ruby
xymbol has quit [Ping timeout: 264 seconds]
lbrf has quit [Ping timeout: 265 seconds]
quimrstorres has joined #ruby
quimrstorres has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
freerobby1 has joined #ruby
thirdknife has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
ki0 has quit [Ping timeout: 264 seconds]
<shevy> william3 you need to keep track of that behaviour somehow
mikepack has joined #ruby
kiyote23 has quit [Remote host closed the connection]
doev has quit [Ping timeout: 250 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
StephenA1 has quit [Quit: StephenA1]
<william3> I'm thinking having a hash of choices
<william3> choices = params.select { |key, value| key.to_s.match(/^choice\d+/) }
<william3> params = { :irrelevant => "A String",
<william3> :choice1 => "Oh look, another one",
<william3> :choice2 => "Even more strings",
<william3> :choice3 => "But wait",
<william3> :irrelevant2 => "The last string" }
<william3> something along those lines
<william3> just nested
pengin_ has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
tier_ has quit [Remote host closed the connection]
teddyp1c_ has quit [Remote host closed the connection]
doug2 has joined #ruby
teddyp1cker has joined #ruby
zmisc has joined #ruby
raldu_ is now known as raldu
raldu has quit [Changing host]
raldu has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
eichenwald has joined #ruby
Spami has quit [Client Quit]
Timgauthier has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
aspires has joined #ruby
Anarch has joined #ruby
Anarch_ has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Ping timeout: 245 seconds]
neoxquick has joined #ruby
startupality has joined #ruby
Abhijit has joined #ruby
yeticry_ has joined #ruby
jlast_ has quit [Remote host closed the connection]
uber_hulk has quit [Ping timeout: 240 seconds]
danman has quit [Quit: danman]
sambao21 has quit [Quit: Computer has gone to sleep.]
yeticry has quit [Ping timeout: 245 seconds]
danman has joined #ruby
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
sevvie has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
Spami has joined #ruby
sevvie has joined #ruby
olivier_bK has quit [Quit: Quitte]
ghostmoth has joined #ruby
nkumari has joined #ruby
marr has joined #ruby
spider-mario has joined #ruby
zmisc has quit [Read error: Connection reset by peer]
conniemj has joined #ruby
renderful has joined #ruby
nkumari has quit [Read error: Connection reset by peer]
nkumari has joined #ruby
samuel02 has quit [Remote host closed the connection]
deol has joined #ruby
sambao21 has joined #ruby
rajeshchawla has joined #ruby
phutchin1 has joined #ruby
freerobby1 has quit [Quit: Leaving.]
timonv_ has quit [Remote host closed the connection]
zmisc has joined #ruby
zmisc has quit [Client Quit]
taiansu has quit [Read error: Connection reset by peer]
danman has quit [Quit: danman]
taiansu has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
xymbol_ has quit [Quit: Be back later ...]
zmisc has joined #ruby
sk87 has joined #ruby
xymbol_ has joined #ruby
TheNumb has quit [Ping timeout: 250 seconds]
Dwarf has quit [Ping timeout: 272 seconds]
ki0 has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rennex has quit [Ping timeout: 240 seconds]
grn has quit [Ping timeout: 240 seconds]
Advocation has quit [Quit: Advocation]
patrick99e99 has joined #ruby
nkumari has quit [Remote host closed the connection]
|\|370 has quit []
axl_ has quit [*.net *.split]
phutchins has quit [*.net *.split]
ccooke has quit [*.net *.split]
iwishiwerearobot has quit [Read error: Connection reset by peer]
uber_hulk has joined #ruby
xymbol_ has quit [Ping timeout: 264 seconds]
gsd has joined #ruby
iwishiwerearobot has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
freerobby has joined #ruby
checkit has joined #ruby
deleg has joined #ruby
eindoofus_ has joined #ruby
whoisjake has quit []
lw has joined #ruby
lw has quit [Max SendQ exceeded]
jheg has quit [Quit: jheg]
ccooke has joined #ruby
uber_hulk has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
<eindoofus_> if i plan to do web testing for a rails project in the near future where they use rspec, is it better to learn "ruby -> respec -> rails" or "ruby -> rails -> rspec" ?
TheNumb has joined #ruby
gnarld_ is now known as nug
lw has joined #ruby
whoisjake has joined #ruby
lw_ has joined #ruby
grn has joined #ruby
uber_hulk has joined #ruby
bricker`work has joined #ruby
uber_hulk has quit [Client Quit]
<shock_one> Better do [ruby, rails, rspec] simultaniously.
Akagi201 has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
lw has quit [Ping timeout: 264 seconds]
kiyote23 has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
taiansu has quit [Remote host closed the connection]
<eindoofus_> shock_one, simultaniously?
triple_b has joined #ruby
<shock_one> Aha.
<eindoofus_> shock_one, i would say it's at least better to learn a language before a framework
<shock_one> Well, maybe Ruby would be a prerequisite.
<shock_one> :)
conniemj has quit [Quit: (null)]
<shock_one> RSpec and Rails are quite independent, though.
<eindoofus_> so rails and rspec go hand in hand? are there any books that actually teach both simultaneously for rails 4?
deol has quit [Read error: Connection reset by peer]
Akagi201 has quit [Ping timeout: 265 seconds]
<shock_one> Do you know MVC?
<shock_one> Any framework, or at least the GoF pattern.
michaeldeol has joined #ruby
Xeago has quit [Remote host closed the connection]
kiyote23 has quit [Ping timeout: 252 seconds]
Takle_ has quit [Remote host closed the connection]
Areessell has quit [Ping timeout: 264 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
conniemj has joined #ruby
Rennex has joined #ruby
mary5030_ has quit [Remote host closed the connection]
lkba has joined #ruby
iwishiwerearobot has quit [Read error: Connection reset by peer]
alex88 has quit []
troyready has joined #ruby
freerobby has quit [Quit: Leaving.]
blahwoop has joined #ruby
iwishiwerearobot has joined #ruby
<blahwoop> hi
<blahwoop> who is juuio and why is he sending me weird messages
Kricir has joined #ruby
livathinos has joined #ruby
<eindoofus_> i have the same question blahwoop
<[a]foo> blahwoop: go into #freenode
<[a]foo> paste his message and tell him he's spamming
<[a]foo> he'll get banned
<claf> ^
<terrellt> I'd do ruby -> rspec -> rails
<blahwoop> ok
DaniG2k has quit [Quit: leaving]
freerobby has joined #ruby
<eindoofus_> thanks terrellt. i was leaning towards that but wanted to get a second opinion
lbrf has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sea_local has joined #ruby
ixti has joined #ruby
fgo has joined #ruby
sambao21 has joined #ruby
_ixti_ has quit [Ping timeout: 244 seconds]
lbrf has quit [Ping timeout: 245 seconds]
shock_one has quit [Remote host closed the connection]
Xeago has joined #ruby
shazaum_ has joined #ruby
* IceDragon walks in and bows
<blahwoop> tinder!
mary5030 has joined #ruby
<IceDragon> I wonder if shock_one, was Shock One, the dnb artist :O
* jhass places his plate on IceDragon's back
eindoofus_ has left #ruby ["Leaving"]
* IceDragon uses his tail to lift the plate and stands up
<IceDragon> >.> I suppose you don't want this back
fgo has quit [Ping timeout: 250 seconds]
<jhass> nooo, my cookies!
<IceDragon> Cookies?
shazaum has quit [Ping timeout: 272 seconds]
* IceDragon noms everything including the plate
<IceDragon> P: delish
<jhass> :(
ki0 has quit []
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
Hijiri has joined #ruby
Spami has quit [Remote host closed the connection]
Rahul_Roy_ has joined #ruby
tyfighter has joined #ruby
Tranquility has joined #ruby
djbkd has joined #ruby
rshetty has quit [Remote host closed the connection]
tier has joined #ruby
nic019 has quit [Quit: Leaving...]
freerobby has quit [Quit: Leaving.]
Dwarf has joined #ruby
Advocation has joined #ruby
freerobby has joined #ruby
doev has joined #ruby
graydot has joined #ruby
blackmesa has joined #ruby
deric_skibotn has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
boombadaroomba has joined #ruby
bmichelsen has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
hiyosi has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ElderFain has quit [Changing host]
ElderFain has joined #ruby
Spami has joined #ruby
taiansu has joined #ruby
hiall has quit [Quit: hiall]
iwishiwerearobot has quit [Ping timeout: 255 seconds]
lw_ has quit [Quit: b]
deleg has quit [Ping timeout: 244 seconds]
jheg has joined #ruby
chrishough has joined #ruby
doev has quit [Ping timeout: 244 seconds]
michaeldeol has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
Macaveli has joined #ruby
ElderFain has quit [Quit: ZNC - http://znc.in]
klmlfl has quit [Remote host closed the connection]
jlast has joined #ruby
babykosh has joined #ruby
klmlfl has joined #ruby
Takle has joined #ruby
adriancb has quit [Remote host closed the connection]
thumpba has joined #ruby
roolo has quit [Remote host closed the connection]
ElderFain has joined #ruby
econerd4ever has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
qox31 has quit [Ping timeout: 240 seconds]
graydot_ has joined #ruby
goodenough has joined #ruby
roolo has joined #ruby
qox31 has joined #ruby
qox31 has quit [Read error: Connection reset by peer]
roolo has quit [Remote host closed the connection]
rajeshchawla has quit []
livathinos has quit [Remote host closed the connection]
graydot has quit [Read error: Connection reset by peer]
graydot_ is now known as graydot
shazaum_ is now known as Shazaum
roolo has joined #ruby
Shazaum has quit [Changing host]
Shazaum has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
michaeldeol has joined #ruby
thumpba has quit [Remote host closed the connection]
tvw has quit []
fabrice31 has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
St_Marx has quit [Remote host closed the connection]
droidburgundy has joined #ruby
shvelo has joined #ruby
roolo has quit [Ping timeout: 255 seconds]
juuio has quit [K-Lined]
St_Marx has joined #ruby
ptrrr has joined #ruby
kamil has quit [Quit: Leaving...]
qox31 has joined #ruby
qox31 has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
qox31 has joined #ruby
Takle has quit [Remote host closed the connection]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
devdazed has joined #ruby
mclee_ is now known as mclee
Megtasti_ has quit []
boombadaroomba has joined #ruby
deleg has joined #ruby
elaptics is now known as elaptics`away
yfeldblum has joined #ruby
neoxoen has joined #ruby
redjack1964 has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 264 seconds]
neoxquick has quit [Ping timeout: 250 seconds]
Megtastique has joined #ruby
qox31 has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
beef-wellington has joined #ruby
fgo has joined #ruby
noop has joined #ruby
robustus|Off is now known as robustus
robustus is now known as robustus|Off
deleg has quit [Ping timeout: 245 seconds]
qox31 has joined #ruby
atomical has joined #ruby
graydot has quit [Quit: graydot]
silkfox has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
fertapric has quit [Quit: Textual IRC Client: www.textualapp.com]
conniemj has quit [Read error: Connection reset by peer]
ddd has quit [Quit: leaving]
nkumari has joined #ruby
emmesswhy has joined #ruby
lmickh has joined #ruby
Vile` has joined #ruby
graydot has joined #ruby
ddd has joined #ruby
Advocation has quit [Quit: Advocation]
bkolden has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
ddd has quit [Client Quit]
goodenough has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
mkaesz has joined #ruby
parabolize has joined #ruby
shock_one has joined #ruby
jusmyth1 has quit [Quit: Leaving.]
lbrf has joined #ruby
tgandrews has joined #ruby
frem_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
mskaesz has joined #ruby
mskaesz has quit [Remote host closed the connection]
ghr has joined #ruby
mkaesz has quit [Read error: No route to host]
dfinninger has quit [Remote host closed the connection]
ddd has joined #ruby
abuzze has joined #ruby
quimrstorres has quit [Remote host closed the connection]
pushpak has joined #ruby
The_NetZ has joined #ruby
sinelaw has quit [Ping timeout: 240 seconds]
wjimenez5271 has joined #ruby
jheg has joined #ruby
<The_NetZ> w00t, filed a bug on redmine, got it fixed! mingw-w64-ruby-svn is a go! :)
abuzze has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
Abhijit has quit [Remote host closed the connection]
abuzze has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
Morkel has joined #ruby
doodlehaus has quit [Ping timeout: 240 seconds]
deleg has joined #ruby
Timgauthier is now known as timgauthier_away
ddd has quit [Quit: forgot a couple perl mods]
renderful has quit [Remote host closed the connection]
silkfox has joined #ruby
zmisc has quit [Ping timeout: 258 seconds]
skywritergr has quit [Quit: Textual IRC Client: www.textualapp.com]
beef-wellington has quit [Ping timeout: 250 seconds]
ddd has joined #ruby
treehug88 has quit []
rdark has quit [Quit: leaving]
tgandrews has quit [Quit: This computer has gone to sleep]
quimrstorres has joined #ruby
Juanchito has joined #ruby
xymbol_ has joined #ruby
mary5030 has joined #ruby
n1lo has quit [Ping timeout: 256 seconds]
xxneolithicxx has joined #ruby
tgandrews has joined #ruby
nkumari has quit [Remote host closed the connection]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dangerou_ has joined #ruby
treehug88 has joined #ruby
renderful has joined #ruby
klmlfl has quit [Remote host closed the connection]
<xxneolithicxx> is there any way to uniquely identify the specific call of a method (say you call the same method recursively, i need a way to differentiate one from the other). Would it have a unique id or stack address I can use?
<xxneolithicxx> *not looking to pass in an additional variable to track depth or anything
wolf4ood has quit [Quit: (null)]
mary5030 has quit [Remote host closed the connection]
melik has joined #ruby
moritzs has joined #ruby
mary5030 has joined #ruby
jimbach has quit [Remote host closed the connection]
<apeiros> xxneolithicxx: you can use caller
william3 has quit [Remote host closed the connection]
<claf> inversion of control patterns in ruby?
kyb3r_ has joined #ruby
klmlfl has joined #ruby
<claf> node people keep fuzzing over promises
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
<claf> but but
sinequanon has joined #ruby
<xxneolithicxx> apeiros: thx
aspires has quit []
thsig_ has quit [Remote host closed the connection]
zmisc has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
chinmay_dd has quit [Quit: Leaving]
aspires has joined #ruby
mloveless has joined #ruby
Takle has joined #ruby
danman has joined #ruby
teddyp1cker has joined #ruby
startupality has quit [Quit: startupality]
dangerou_ has quit [Ping timeout: 245 seconds]
Vile` has quit [Quit: brb]
geggam has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Quit: Leaving...]
michaeldeol has quit [Read error: Connection reset by peer]
teddyp1cker has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
redjack1964 has joined #ruby
lemur has joined #ruby
conniemj has joined #ruby
nkumari has joined #ruby
deleg has quit [Ping timeout: 245 seconds]
Vile` has joined #ruby
paulfm_ has quit [Quit: Goodbye]
ramfjord has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
sargas has joined #ruby
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
giuseppesolinas_ has quit [Client Quit]
bmichelsen has quit [Quit: ZZZzzz…]
<giuseppesolinas> Hello
bMalum has joined #ruby
terlar has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
<lbrf> giuseppesolinas: o/
djbkd has quit [Remote host closed the connection]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jheg has quit [Quit: jheg]
timonv_ has joined #ruby
Megtastique has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
paulfm has joined #ruby
dseitz has joined #ruby
mary5030 has joined #ruby
yfeldblum has joined #ruby
conniemj has quit [Ping timeout: 244 seconds]
tier has quit [Ping timeout: 272 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
crazydiamond has joined #ruby
dseitz has left #ruby [#ruby]
tier has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
xymbol_ has quit [Quit: Lingo: www.lingoirc.com]
adriancb has joined #ruby
cndiv_ has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
cndiv_ is now known as cndiv
Megtastique has joined #ruby
jenrzzz has joined #ruby
mr_foobar_baz has joined #ruby
dfinninger has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Quit: Leaving]
konsolebox has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
Lingos has joined #ruby
danman has quit [Quit: danman]
wald0 has quit [Ping timeout: 260 seconds]
nkumari has quit [Remote host closed the connection]
jherbst has joined #ruby
fgo has joined #ruby
blahwoop has quit [Remote host closed the connection]
davasaurous has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
nkumari has joined #ruby
dc_ has joined #ruby
St_Marx has joined #ruby
n1lo has joined #ruby
JoshGlzBrk has joined #ruby
kiyote23 has joined #ruby
St_Marx has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
St_Marx has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
Timgauthier has joined #ruby
nkumari has quit [Remote host closed the connection]
boombadaroomba has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
The_NetZ has quit [Ping timeout: 245 seconds]
davasaurous has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
shvelo has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
geggam has joined #ruby
jwingfi has joined #ruby
jheg has joined #ruby
tus has joined #ruby
bMalum has quit [Quit: bMalum]
yetanotherdave has joined #ruby
rbrs has joined #ruby
ghr has joined #ruby
nkumari has joined #ruby
claymore has joined #ruby
gilmour_ is now known as gilmour
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has quit []
noop has quit [Ping timeout: 244 seconds]
SCHAAP137 has quit [Quit: Leaving]
nastri has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
jdj_dk_ has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
a_random_dude has joined #ruby
roqo has quit [Changing host]
roqo has joined #ruby
n1lo has quit [Ping timeout: 272 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
doodlehaus has joined #ruby
aspires has quit []
babykosh has quit [Quit: babykosh]
Shazaum has quit [Quit: This computer has gone to sleep]
pengin_ has quit [Remote host closed the connection]
pengin_ has joined #ruby
aspires has joined #ruby
Stoge88 has joined #ruby
skroon has quit [Quit: leaving]
lxsameer has joined #ruby
lxsameer has joined #ruby
shock_one has quit [Remote host closed the connection]
bMalum has joined #ruby
brixen has quit [Quit: ZNC - http://znc.in]
nkumari has quit [Remote host closed the connection]
thirdknife has quit [Remote host closed the connection]
pengin_ has quit [Ping timeout: 272 seconds]
shock_one has joined #ruby
n1lo has joined #ruby
tier has quit [Remote host closed the connection]
brixen has joined #ruby
<michael_mbp> guys
iwishiwerearobot has joined #ruby
<michael_mbp> anyone recall the short code for referring to an exception?
jlast has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has joined #ruby
tier has joined #ruby
naftilos76 has joined #ruby
<tobiasvl> referring to it how?
diego_ar has joined #ruby
the_f0ster has quit [Remote host closed the connection]
fgo has joined #ruby
Asher2 is now known as Asher
graydot has quit [Quit: graydot]
shock_one has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinelaw has joined #ruby
klmlfl has quit [Remote host closed the connection]
ta_ has joined #ruby
sinelaw has left #ruby [#ruby]
klmlfl has joined #ruby
ptrrr has quit [Quit: ptrrr]
bMalum has quit [Quit: bMalum]
iwishiwerearobot has quit [Quit: Be back later ...]
AlexRussia has quit [Ping timeout: 265 seconds]
TheRinger has quit [Ping timeout: 240 seconds]
louism2wash has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
<shevy> michael_mbp I only know begin; bla(); rescue Exception => error; p error; end
nkumari has joined #ruby
lolmaus has joined #ruby
codezomb has joined #ruby
naftilos76 has quit [Remote host closed the connection]
AlexRussia has joined #ruby
freerobby has quit [Quit: Leaving.]
fifthofwry has joined #ruby
freerobby has joined #ruby
samuel02 has joined #ruby
fifthofwry has quit [Remote host closed the connection]
fabrice31 has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
fijimunkii has joined #ruby
michaeldeol has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
kish has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
kish has joined #ruby
djbkd has joined #ruby
n1lo has quit [Ping timeout: 240 seconds]
oleo is now known as Guest54174
oleo__ has joined #ruby
adriancb has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 255 seconds]
shock_one has joined #ruby
blahwoop has joined #ruby
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
Nigel_ has quit [Ping timeout: 244 seconds]
sk87 has joined #ruby
Guest54174 has quit [Ping timeout: 250 seconds]
sk87 has quit [Client Quit]
Nigel_ has joined #ruby
straydogstudio has joined #ruby
jimbach has joined #ruby
zmisc has quit [Quit: Using IRC from a phone is a bad idea.]
fijimunkii has quit [Quit: leaving]
jenrzzz has joined #ruby
dr4_ has joined #ruby
jimbach has quit [Read error: Connection reset by peer]
oleo__ has quit [Quit: Verlassend]
sambao21 has quit [Quit: Computer has gone to sleep.]
jimbach has joined #ruby
terlar has joined #ruby
tier has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
ghostmoth has quit [Quit: ghostmoth]
sambao21 has joined #ruby
graydot has joined #ruby
dr4__ has quit [Ping timeout: 255 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
djbkd has quit [Remote host closed the connection]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oop-learner has joined #ruby
oop-learner has quit [Client Quit]
rodfersou has quit [Quit: leaving]
tier has joined #ruby
iamninja has joined #ruby
n1lo has joined #ruby
jimbach has quit [Ping timeout: 258 seconds]
konsolebox has joined #ruby
oleo__ has joined #ruby
oleo__ is now known as oleo
ta has quit [Quit: Leaving...]
Photism has quit [Quit: Leaving]
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
RyanV has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mloveles_ has joined #ruby
yfeldblum has joined #ruby
d4nku has joined #ruby
cndiv has quit [Ping timeout: 264 seconds]
deleg has joined #ruby
mloveless has quit [Ping timeout: 256 seconds]
bMalum has joined #ruby
jamescarr has joined #ruby
supersym has joined #ruby
jonr22 has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
<jamescarr> how can I just install ruby and rubygems on ubuntu 14.04? I tried to instal ruby1.9.1 and got this
<jamescarr> ruby-mustache
allcentury has joined #ruby
<jamescarr> oops
<jamescarr> that's a lot of cruft I don't need
jonr22 has joined #ruby
<jamescarr> and it took eternity to pull down
chu has joined #ruby
tyfighter has quit [Quit: tyfighter]
<shevy> yeah
Fire-Dragon-DoL has joined #ruby
<shevy> you are stuck in ubuntu
Fire-Dragon-DoL has quit [Max SendQ exceeded]
Fire-Dragon-DoL has joined #ruby
<shevy> people who aren't stuck on ubuntu can just wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.bz2, compile it into /usr prefix and be done \o/
thsig has joined #ruby
Lingos has quit [Quit: Be back later ...]
eindoofus_ has joined #ruby
<shevy> most of these on the list are gems by the way
<jamescarr> shevy: but why/when did the ubuntu package install all those gems?
jdj_dk_ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<jamescarr> I just did an apt-get install ruby1.9.1 and now it wants to install every gem under the sun???
Morkel has quit [Quit: Morkel]
MrRojojojo has joined #ruby
<shevy> for instance what ubuntu calls ruby-rack-integration is in fact called "rack-integration" and is available on https://rubygems.org/gems/rack-protection
<shevy> don't ask me, ask the idiots who established this system on debian
<shevy> but this is not standard behaviour what you show jamescarr
postmodern has joined #ruby
<shevy> when I used debian-derivatives and did use apt-get install, it did not install those gems for me
<jamescarr> shevy: yeah! Who's this fool who decides to package up packages from a languages package management system as native packages on Debian?
<jamescarr> there's the same thing with pip and npm too
teddyp1cker has joined #ruby
<shevy> no idea, ask the debian guys - they hate competing systems so they morph and assimilate it :)
jenrzzz has quit [Ping timeout: 256 seconds]
<shevy> they even eliminate mkmf
jonr22 has quit [Ping timeout: 252 seconds]
<shevy> so you have to uncripple it via "apt-get install ruby1.9.1-dev"
<shevy> apparently their philosophy is "we are a server OS, there is no need for you to compile anything, we provide (10 years old) packages for you"
<eindoofus_> i'm confused by the use of "self" in this "well-grounded rubyist" example. why does line 21 refer to a class method, while line 25 seems to be for instance methods created through the attr_reader keyword:
jenrzzz has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
davedev24_ has quit [Ping timeout: 244 seconds]
lukevinc has joined #ruby
wallerdev has quit [Quit: wallerdev]
godd2 has joined #ruby
<jamescarr> so it's just ruby now
<jamescarr> "apt-get install ruby" gave me ruby 2.1.4p265
<jamescarr> with no nonsense
jimbach has joined #ruby
<shevy> eindoofus_ it simply adds itself when it gets initialized, to the Array called PEOPLE
<shevy> Person::PEOPLE # => [#<Person:0xb938b1fc @name="test", @hobbies=[], @friends=[]>]
<shevy> jamescarr must be a nightmare to run multiple versions of ruby at the same time on debian
<jamescarr> shevy: not really. This is inside a docker container
<jamescarr> otherwise I'd use rvm
chipotle has quit [Quit: cya]
thsig has quit [Remote host closed the connection]
ghr has joined #ruby
<jamescarr> I still might have the Dockerfile pull down ruby and compile. The verdict is out on that one for now
<jamescarr> *pull down a specific version of ruby
tus has quit [Ping timeout: 265 seconds]
<shevy> k but if you use rvm then you no longer use ubuntu anyway
o0oo0o has joined #ruby
<eindoofus_> shevy, the PEOPLE array makes sense. it's the "self.public_method_defined?" that is confusing me. is this because class are objects in ruby?
<shevy> so you won't need apt-get for ruby there
deleg has quit [Ping timeout: 265 seconds]
<shevy> eindoofus_ no idea. You can also do Person.public_method_defined?
giuseppesolinas has joined #ruby
<eindoofus_> shevy, does a "public_method" become an instance method in an instantiated object?
<shevy> eindoofus_ that's just a name
timonv_ has quit [Remote host closed the connection]
tyfighter has joined #ruby
<shevy> you can call it "abc?" and it will work the same
baweaver has joined #ruby
<eindoofus_> shevy, the separation between classes and instances is driving me nuts. lol
eguneys has joined #ruby
<eguneys> How do I solve this: Gem::LoadError: You have already activated i18n 0.6.1, but your Gemfile requires i18n 0.6.11. Prepending `bundle exec` to your command may solve this.
<shevy> not many methods are interpreted specially
<shevy> this one should be one "def self.inherited(i)"
<shevy> eindoofus_ you instantiante from a class
shock_one has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
<eindoofus_> shevy, what would be the equivalent to check for a class method?
<shevy> eindoofus_ so the class is the initial blueprint for your object; it even still will refer to it, if you modify the class, the method should exist on your object
<shevy> class Foo; end; foo = Foo.new
<shevy> so we have foo instantiated
<shevy> now we modify class Foo
<shevy> class Foo; def tester; puts 'hi'; end; end
timonv_ has joined #ruby
<shevy> foo.tester # hi
<shevy> and your foo instance has the tester() method
aspires has quit []
conniemj has joined #ruby
shock_one has joined #ruby
armyriad has joined #ruby
<shevy> eindoofus_ hmm
<shevy> Foo.class.instance_methods(false)
quimrstorres has joined #ruby
michaeldeol has joined #ruby
<shevy> I am not sure how to obtain class methods; I suppose they are also instance methods, just on some other level
<arup_r> shevy: what's time there ?
MrRojojojo has quit [Quit: Leaving]
<eindoofus_> thanks for the help
vedis has joined #ruby
<shevy> arup_r time where? in central europe? almost 21:40
<shevy> I am watching podcasts about viruses :D
<arup_r> ebola ?
<arup_r> :)
yano has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<shevy> ok cool so we can find out whether a method is public or not with .public_method_defined?
JBreit has joined #ruby
<parabolize> eindoofus_: self is still the classes object inside the classes singleton method.
<parabolize> >> class A; def self.f; self; end; end; A.f
<eval-in__> parabolize => A (https://eval.in/230575)
JBreit has left #ruby [#ruby]
bMalum has quit [Quit: bMalum]
taiansu has quit [Remote host closed the connection]
<shevy> arup_r nope, large viruses that have about 2.5 million base pairs in their genome. ebola has only 7500 base pairs
* parabolize is also reading that book. its great.
sea_local has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
<arup_r> no idea.. About these.. you. shevy, carry on. :)
lukevinc has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
djbkd has quit [Ping timeout: 244 seconds]
<ddv> dayuuumn shevy is so smart
FutureTense has quit [Ping timeout: 256 seconds]
havenn is now known as havenwood
<shevy> arup_r I don't know either, it's not so old a research really; mostly started (or rather discovered) in 2005. up until that point they thought all these viruses would be small
mattmcclure has joined #ruby
samuel02 has quit []
fgo has joined #ruby
frode15243 has left #ruby [#ruby]
tesaf has joined #ruby
n1lo has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 256 seconds]
decoponio has quit [Quit: Leaving...]
quimrstorres has quit [Remote host closed the connection]
chipotle has joined #ruby
jwingfi has quit []
timonv_ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
iwishiwerearobot has joined #ruby
chris__ has joined #ruby
chris__ has left #ruby [#ruby]
conniemj is now known as cjim
shredding has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
cesar_ has joined #ruby
danman has joined #ruby
iwishiwerearobot has quit [Client Quit]
cesar_ is now known as Guest74652
jlast has quit [Remote host closed the connection]
Guest74652 is now known as cesarstafe
baweaver has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
renderful has quit [Remote host closed the connection]
baweaver has joined #ruby
claymore has joined #ruby
<cesarstafe> hi people, a question about "begin .. rescue .. end" is it possible to use only "rescue" avoiding to put "begin & end" inside an ".each" block?
sea_local has joined #ruby
<apeiros> cesarstafe: no
aspires has joined #ruby
deleg has joined #ruby
<apeiros> there is inline rescue (similar as inline if), but you should not use it as you can't specify the exception class.
jenrzzz has joined #ruby
cesarsta1e has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
greenbagels has joined #ruby
jelera has joined #ruby
cesarstafe has quit [Ping timeout: 245 seconds]
wjimenez_ has joined #ruby
<cesarsta1e> hi people, a question about "begin .. rescue .. end" is it possible to use only "rescue" avoiding to put "begin & end" inside an ".each" block?
<cesarsta1e> I think that not because I have read that "def .. rescue .. end" works where "def" is the part that works as if it were a "begin"
<cesarsta1e> but not sure about that
<apeiros> cesarsta1e: if I answer you again, will you ask again?
ghostmoth has joined #ruby
wjimenez5271 has quit [Ping timeout: 255 seconds]
MattB2 has joined #ruby
geilt has joined #ruby
Megtastique has quit []
renanoronfle has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
valeriansaliou has joined #ruby
davasaurous has joined #ruby
<eguneys> I can't run `rake db:seed` so I run `ruby db/seeds.rb` does it make a difference? is that wrong
djbkd has joined #ruby
vedis has quit []
RyanV has quit [Quit: (null)]
sambao21 has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
<apeiros> eguneys: #rubyonrails, and yes, there's a difference. the rake task ensures everything necessary is loaded and prerequisites are met.
tvw has joined #ruby
aplarcher has joined #ruby
bMalum has joined #ruby
<eguneys> apeiros: i have a custom rack based project non rails , and I don't have rake in my Gemfile, it conflicts with my project what should I do. PS: I use standalone_migrations tasks which is not included in the Gemfile
<apeiros> eguneys: in that case: nobody here has a clue about what your rake tasks code consists of. so *zero* chance to tell.
<apeiros> read your code
baweaver has quit [Remote host closed the connection]
<eguneys> it's empty I just include standalone_migrations, and i18n has a conflict
davasaurous has quit [Ping timeout: 272 seconds]
<apeiros> eguneys: those are empty words which mean nothing
<apeiros> by what magic should we know what "standalone_migrations" or "i18n" in your custom rack app does?
<eguneys> ok the problem is, I require a gem which is not included in my Gemfile and it causes conflict
dopie has joined #ruby
eguneys has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Client Quit]
CpuID has joined #ruby
pengin_ has joined #ruby
jamescarr has quit [Remote host closed the connection]
sevvie has joined #ruby
<apeiros> is today jerkday?
sevvie has quit [Read error: Connection reset by peer]
ikaros has quit [Quit: Ex-Chat]
<aplarcher> hey guys, I'm new here
<havenwood> hi
<aplarcher> just want to know where to learn ruby
ramfjord has quit [Ping timeout: 244 seconds]
moritzs has quit [Ping timeout: 252 seconds]
zB0hs has joined #ruby
<havenwood> aplarcher: here's a list of resources: https://www.ruby-lang.org/en/documentation/
<havenwood> aplarcher: maybe start with tryruby.org
luksaur has quit [Quit: Leaving]
<aplarcher> tks havenwood, I just went to http://www.modruby.net/ but thats really not helful at all for me :)
nkumari has quit [Remote host closed the connection]
renderful has joined #ruby
<aplarcher> have any of you ever heard of codecademy ?
Dopagod has quit [Ping timeout: 250 seconds]
sevvie has joined #ruby
<havenwood> we have
<aplarcher> codecademy.com
<apeiros> I don't think modruby is viable anymore
<apeiros> is it even still maintained?
<aplarcher> 語ログ集
<apeiros> well, the website seems to indicate: no, no it isn't.
<aplarcher> I have no idea what is in that website
<apeiros> aplarcher: not modruby I'd say.
<aplarcher> it's on the welcome msg
<Hijiri> note that I've never learned ruby
<apeiros> oh dear. I wish I could change that…
<aplarcher> the hard way? why Hijiri, why?
<Hijiri> but people like the C tutorial that site has
<Hijiri> because "the hard way is easier"
<aplarcher> :)
jello^ has joined #ruby
chipotle has quit [Quit: cya]
CpuID has quit [Quit: This computer has gone to sleep]
bMalum has quit [Quit: bMalum]
<aplarcher> for the ones that know codecademy, is it any good?
<jello^> Hi. I'm producing templated cfg for an application, for a bunch of environments (i.e. retrofitting cfg mgmt with puppet to an existing infrastructure). I've turned one environment's cfg files into ERB templates. I'm wondering if I can use those templates in reverse to extract the existing cfg values from the other environments' config files
kiyote23 has quit [Read error: Connection reset by peer]
<jello^> That is, I can think of the existing cfg as the result of applying some values to the erb templates I have. Can I extract those values from the files by 'unrendering' the ERBs?
ramfjord has joined #ruby
kiyote23 has joined #ruby
<aplarcher> gotta go
<aplarcher> talk to you guys later
<aplarcher> tks for the info
aplarcher has quit [Quit: Leaving]
arup_r has quit [Quit: Leaving.]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tgandrews has quit [Quit: This computer has gone to sleep]
ta_ has quit [Remote host closed the connection]
<jello^> for example, in Perl, using Template Toolkit templates, I can do this with https://metacpan.org/pod/Template::Extract
tgandrews has joined #ruby
startupality has joined #ruby
<shevy> perl!
<shevy> eam wake up
<shevy> another perl user is here!
graft_ has quit [Ping timeout: 244 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
<jello^> I don't know whether to be happy or roll my eyes ;-)
<jello^> it's just an example of the equivalent with another language's templating system
diegoviola has joined #ruby
<jello^> although it does occur to me that I could set the template delimeter to <% %> rather than TT's [% %] and just use the perl library this one time...
nkumari has joined #ruby
<shevy> and what do you want to extract from the erb? the html code?
ghr has joined #ruby
<jello^> shevy: there is no html code. I think I've explained badly.
<shevy> hmm but you use erb there
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
<jello^> yeah. so I'm going to produce my app's config files using ERB templates. I've made those templates, by reversing one environment's config into templates and a yaml file - rendering those together produces files equivalent to the original files
<eam> jello^: shevy is a php user
<jello^> I have several other environments, each with their own config files, which have the same structure but different values/data
<jello^> I want to manage them using the same tools, so I want to extract the config values for each of those environmnts. Being a lazy programmer, I thought about how to automate it
<shevy> eh I abandoned php like 10 years ago
<jello^> normally you have: a) template and b) data to produce c) result
<jello^> I have a) and c) and want to use a) to extract b) from c)
<jello^> does that make sense?
<shevy> dunno
<shevy> :)
<jello^> I should've tried #metallica, huh?
<shevy> I have only seen erb used as a html generator
<jello^> erb doesn't generate any HTML, it's just used to template values into it
<xxneolithicxx> now thats an interesting problem, how many ERB we talking?
Timgauthier has quit [Max SendQ exceeded]
ta has joined #ruby
<shevy> in like sinatra views they use .erb files
ghr has quit [Ping timeout: 252 seconds]
<jello^> xxneolithicxx: 1 per file... 25 files per environment. 4 environments to do. 1 done (so I have the ERBs made, the yaml for that 1 env, the ruby code and puppet manifest to render them)
<xxneolithicxx> I would just convert the erb into an insanely large regex if its not that many and then run it against c)
<xxneolithicxx> wow
<jello^> but it's fine, the problem still reduces to 1 erb and 1 file
<jello^> the rest is just doing it in a loop...
vinleod has joined #ruby
<twohlix_> what format are your config files in?
<twohlix_> just various text formats?
<jello^> twohlix_: an amusing mixture of text formats, from yaml and json through to php code :D
<twohlix_> yaml is easy to read in and or dump
<jello^> hence wanting not to care too much about them other than being text with ERB includes
<twohlix_> so you've got yaml covered i hope
<jello^> twohlix_: sure, and my values are now in yaml
<jello^> twohlix_: my instinct is to approach this as a reverse templating, rather than trying to parse/load any of the files
<twohlix_> right, i read that part too
<jello^> are you advocating the opposite?
abuzze_ has joined #ruby
<twohlix_> I'm not sure, I've never really sucessfully tried parsing a file from the same template i use to output it :\
<twohlix_> it sounds like it would be nice and DRY
<shevy> :D
claymore has quit [Quit: Leaving]
<twohlix_> but
AlexRussia has quit [Ping timeout: 258 seconds]
<twohlix_> i just dont know.
anaeem1_ has quit [Remote host closed the connection]
<jello^> re your "compile a massive regex"
kaspertidemann has joined #ruby
crazydiamond has quit [Remote host closed the connection]
wallerdev has joined #ruby
<jello^> do ERBs in memory actually exist as massive regexes?
anaeem1 has joined #ruby
<jello^> I've never looked at the parser internals
whoisjake has quit []
AlexRussia has joined #ruby
whoisjake has joined #ruby
<apeiros> jello^: like most template systems, it's converted to native code
abuzze has quit [Ping timeout: 240 seconds]
<apeiros> converting it to a regex makes no sense
<xxneolithicxx> its converted to a bunch of strings concatted to the same variable
codecop has quit [Remote host closed the connection]
<apeiros> xxneolithicxx: strings alone could not express control structures or other code in templates
<jello^> apeiros: well, it makes a bunch of sense as an intuitive way to create a simple templating system, it's just a slow way to do it compared wth compiling code
<jello^> tomato, tomahto :)
taiansu has joined #ruby
<apeiros> care to show me how something like "hello <%= entity %>!" would look like as a regex template?
<apeiros> and how you feed data into that regex template…
<xxneolithicxx> oogly
<shevy> let's kick him if he can't answer!
<twohlix_> jello^, my first instinct is to use yaml as much as you can for your config files, it makes it trivial to parse / dump
<shevy> ^^^ the lazy way
evanjs has quit [Remote host closed the connection]
s00pcan_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
emmesswhy has joined #ruby
s00pcan has joined #ruby
<twohlix_> also jello^: JSON is the same way as yaml. so your yaml + json files should be covered, its all those other files you've got which are trickier.
<jello^> twohlix_: I agree, but I've joined this company who have a bunch of legacy tech and I'm making life easier by puppetising the cfg. I'm not going to go and rewrite, say, wordpress's DB cfg (in PHP) to load from YAML - at least, not as a dependency of introducing puppet
momomomomo has joined #ruby
<twohlix_> well right, thats when you use the regexes :)
<jello^> (they have a bunch of apps in several languages that make up one 'deployment')
<twohlix_> but parsing using your templates is the hard part
<twohlix_> i dont think thats doable :\
<jello^> intuitively it seems plausible, and a similar templating system in a similar language has support for it
<jello^> i'm just wondering if a gem exists already
<jello^> and/or whether anybody has advice or pointers on ways to attack writing one
fgo has joined #ruby
<xxneolithicxx> even with regex, it may not be that straightforward or even doable in a single regex depending how complicated your template is
quimrstorres has joined #ruby
<jello^> actually... it's perhaps as simple as diffing the template vs the cfg file, grabbing just the different characters [not lines], removing the <%= .. %> from one of them
rpag has left #ruby [#ruby]
rpag has joined #ruby
Hijiri has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
<rpag> apeiros, chanserv links to modruby.net when you join btw
<jello^> and then building the yaml from that is a simple problem
taiansu has quit [Ping timeout: 264 seconds]
moritzs has joined #ruby
cjim has quit [Read error: No route to host]
<apeiros> rpag: yeah, aplarcher reminded me of that already. sooo bad :(
diego_ar has quit [Remote host closed the connection]
<jello^> xxneolithicxx, twohlix_: thanks, you've been excellent rubber-ducks, I think I have a plan (sadly not involving actual reverse templating)
<xxneolithicxx> errmm, not really if your template have loops or other logic. is it just plain variable input
<jello^> xxneolithicxx: they don't, they are just simple substitution
fabrice31 has quit [Ping timeout: 240 seconds]
<jello^> lots of define('AUTH_KEY', "<%= wordpress.auth_key %>"); sort of thing
<xxneolithicxx> diff it up then
<jello^> yeah seems simple enough to do
<jello^> thanks :)
<twohlix_> jello^: you've just run into the common problem of outputting a file in a particular format, and reading it in that format. I've never really seen templates for it, always just have the parser and the writer :\
chipotle has joined #ruby
mary5030_ has quit [Remote host closed the connection]
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
jelera has quit [Quit: Leaving]
mary5030 has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
graft_ is now known as graft
<jello^> I'm not sure that IS the problem, but it is A problem
<jello^> anyway, thanks for helping me think this through
tus has joined #ruby
<twohlix_> yea, np yay irc
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
drkyro has joined #ruby
dfinninger has quit []
michaeldeol has joined #ruby
<jello^> apeiros: I'm just trying to recall whether ruby regexes have an equivalent to perl' s///e (i.e. evaluating the RHS as ruby code)
Musashi007 has joined #ruby
<jello^> apeiros: if so, it's dead simple to do a simple substitution templating regex...
<apeiros> jello^: no
<apeiros> you can pass it a block to execute code. you can't pass it a string.
<jello^> s{<%= ((?!%>)+) %>}{value($1)}e
Hijiri has joined #ruby
<jello^> would be fine
<jello^> in Perl, I mean. I guess there's an equivalent way to do that in ruby.
<apeiros> not really. also that doesn't take care of control structures.
<jello^> i.e. matching anything between <%= and %> using a negative lookahead assertion to avoid greedily capturing %>s
nkumari has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 272 seconds]
<apeiros> if all you want is *variable substitution*, which I wouldn't call template, then there are means, yes.
lnormous has joined #ruby
<apeiros> String#%, Kernel#sprintf, or String#gsub with a hash as second arg
<jello^> sure, but I did say "simple substitution templating". I agree with you entirely and I see why it was idiotic to wonder if ERB might be a regex internally given control structures etc
<jello^> apeiros: nod
<jello^> you're right and I'm just being overly literal about something that really wasn't my argument
djbkd has joined #ruby
<shevy> Hanmac add me to one of your gems!
bMalum has joined #ruby
nkumari has joined #ruby
jimbach has quit [Read error: Network is unreachable]
sinequanon has quit []
quimrstorres has quit [Remote host closed the connection]
jimbach has joined #ruby
econerd4ever has quit [Remote host closed the connection]
conniemj has joined #ruby
pengin_ has quit [Remote host closed the connection]
econerd4ever has joined #ruby
pengin_ has joined #ruby
tier has quit [Remote host closed the connection]
Mothore has quit [Quit: Be back later ...]
sk87 has joined #ruby
roolo has joined #ruby
aspires has quit []
iwishiwerearobot has joined #ruby
livingstn has quit []
lxsameer has quit [Quit: Leaving]
econerd4ever has quit [Ping timeout: 252 seconds]
econerd4ever has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
pengin_ has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
tesaf has quit [Quit: Lost terminal]
<Pro|> haanmac never sleeps
bMalum has quit [Quit: bMalum]
rbrs has quit [Quit: Leaving]
spider-mario has quit [Read error: Connection reset by peer]
jerius has quit [Ping timeout: 256 seconds]
patrick99e99 has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
freerobby has quit [Quit: Leaving.]
roolo has quit [Ping timeout: 258 seconds]
freerobby has joined #ruby
patrick99e99 has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
conniemj has quit [Quit: (null)]
<zenspider> Pro|: he's a ruby script.
iwishiwerearobot has quit [Ping timeout: 256 seconds]
<Pro|> maybe thats why
jlast has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
<kaspergrubbe_> Ruby scripts only sleeps when the GC is marking before a sweep
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
pengin_ has joined #ruby
jaequery has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
conniemj has joined #ruby
whoisjake has quit []
sevvie has quit [Ping timeout: 260 seconds]
o0oo0o has quit [Quit: WeeChat 0.4.3]
wsmoak has joined #ruby
wsmoak has joined #ruby
davasaurous has joined #ruby
blahwoop has quit [Remote host closed the connection]
davasaur_ has joined #ruby
nkumari has quit [Remote host closed the connection]
davasaurous has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
nkumari has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stalkr_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
nkumari has quit [Remote host closed the connection]
davasaurous has joined #ruby
davasaur_ has quit [Read error: Connection reset by peer]
mloveles_ has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<ged> Wow I never knew about gsub with a Hash. That's great!
mloveless has joined #ruby
<zenspider> ??
nkumari has joined #ruby
<zenspider> oh, as the substitutions? yeah. I haven't used it yet :)
<zenspider> 'lo ged. how goes?
<ged> Yeah. :)
<ged> It goes well!
rylev has joined #ruby
<ged> How about with you?
<zenspider> I'm super. been unemployed for ~2 mo now and it's great.
mloveless has quit [Remote host closed the connection]
<rpag> zenspider, i thought you were working with tenderlove?
AlexRussia has quit [Quit: WeeChat 1.1-dev]
<zenspider> rpag: was, when we were both at AT&T, but he (and I afterwards) left.
AlexRussia has joined #ruby
<zenspider> he's at redhat now.
rh1n0 is now known as rh1n0_away
conniemj has quit [Quit: (null)]
<zenspider> I applied. they supposedly liked me, but apparently balked at negotiations. budget, supposedly.
<rpag> sucks :(
<zenspider> eh. I'm enjoying the time off. helping our study group. doing a coursera course (I should be doing the final now). hacking on my own stuff.
ghr has joined #ruby
<ged> What're you hacking on? I haven't seen an ANN from you in a while, but then maybe it's just that I don't read ruby-talk as often anymore.
* apeiros now wonders about zenspider's asking price :D
mloveless has joined #ruby
havenwood has quit [Remote host closed the connection]
lbrf has quit [Quit: Be back later ...]
wjimenez_ has quit [Remote host closed the connection]
<zenspider> it's not unreasonable
<zenspider> ged: that's because omnifocus is really really mad at me right now.
KnownSyntax has quit []
<zenspider> I've got a big red badge in my menubar with "109" on it.
PaulePan1er is now known as PaulePanter
<zenspider> I should be doing that too
BTRE has quit [Remote host closed the connection]
<ged> Hahaha I know the feeling.
<zenspider> tho a ton of my stuff is stable now. I need a new project
BTRE has joined #ruby
davasaur_ has joined #ruby
mloveless has quit [Remote host closed the connection]
davasaurous has quit [Read error: Connection reset by peer]
anaeem1 has quit [Remote host closed the connection]
<rpag> ruby is max'ed out for libs
<zenspider> doubtful
treehug88 has quit [Ping timeout: 244 seconds]
paulfm has quit [Quit: Goodbye]
ghr has quit [Ping timeout: 256 seconds]
<ged> Hardly.
baweaver has quit [Remote host closed the connection]
davasaur_ has quit [Remote host closed the connection]
<apeiros> far from
<apeiros> zenspider: write a good barcode reader lib! :)
<chipotle> hi
<rpag> without reinventing other attempts it feels like it
<chipotle> how goes?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
* apeiros has to resort to jruby+zxing
<apeiros> and even had to patch that to get it to read binary data qr codes
sk87 has joined #ruby
livathinos has joined #ruby
bklane has joined #ruby
treehug88 has joined #ruby
KnownSyntax has joined #ruby
<headius> patch zxing I assume
<zenspider> rpag: some of those other attempts really need some reinventing. :)
<apeiros> headius: yes
graft has quit [Ping timeout: 264 seconds]
<zenspider> tenderlove had some code to read qrcodes via isight iirc
<apeiros> it tries to convert the binary data to utf-8. which fails for 0x80-0xff
eindoofus_ has quit [Ping timeout: 250 seconds]
<apeiros> zenspider: I didn't get his to compile reliably
<apeiros> iirc he relied on an old build of opencv
wjimenez5271 has joined #ruby
jlast has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
pandaant has joined #ruby
asteve has joined #ruby
jlast has joined #ruby
agent_white has joined #ruby
<asteve> if you're storing a key/val pair in a hash table, what method of requesting the table would you expect? pass in a key and get out a val?
jheg has quit [Quit: jheg]
duncannz has joined #ruby
deleg has quit [Ping timeout: 244 seconds]
<zenspider> apeiros: doesn't surprise me
<zenspider> asteve: requesting the table?
<zenspider> myhash[mykey] => result
ta has quit [Remote host closed the connection]
tgandrews has quit [Quit: This computer has gone to sleep]
graft has joined #ruby
blizzy has quit [Ping timeout: 255 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
momomomomo has quit [Ping timeout: 245 seconds]
rotary00 has joined #ruby
<rotary00> Hello sorry for this link http://i.imgur.com/trgo9YF.jpg
patsourakos has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
<rpag> jesus christ
rotary00 was kicked from #ruby by apeiros [gtfo]
sinequanon has joined #ruby
davasaurous has joined #ruby
fgo has joined #ruby
raja has joined #ruby
kith has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cya]
kith has joined #ruby
raja has quit [Max SendQ exceeded]
<zenspider> what the fuck?
<zenspider> apeiros: ya gots to stop banning by IP
<rpag> i think thats the worst thing i ever seen on the internet
treehug88 has quit []
<apeiros> zenspider: why?
<zenspider> because almost nobody has a static ip anymore
reset has joined #ruby
<zenspider> and IPs are frequently shared, which means your banning any poor sap who uses the same ISP
<apeiros> I don't assume this guy will reuse his nick. and by banning by ip, his effort to get around the ban is larger.
<apeiros> yeah, well, chances are ~1000 out of 4e10…
fgo has quit [Ping timeout: 244 seconds]
sinequanon has quit [Ping timeout: 258 seconds]
raja has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
<terrellt> The one time I hate limechat auto-opening images.
it0a has quit [Ping timeout: 264 seconds]
CpuID has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
doodlehaus has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
sevvie has joined #ruby
AlexRussia has joined #ruby
<xxneolithicxx> i was just about to clicky, that makes me not want to
<shevy> haha
shock_one has quit [Remote host closed the connection]
<shevy> terrellt I let trustworthy guys click on links before I click on them!
<terrellt> Limechat puts a preview in the screen, shevy.
<zenspider> haha
<shevy> omg that is bad
<agent_white> ouch D:
* terrellt just turned it off
<xxneolithicxx> wth
livathinos has quit []
momomomomo has joined #ruby
kireevco has joined #ruby
<zenspider> apeiros: no, chances are closer to 1 in <however-many-IPs-the-ISP-owns>. Could be 256 for all we know. *shrug*
chipotle has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
nkumari has joined #ruby
<zenspider> who do ppl ask questions and then never answer any followup questions? I never understand that. Do you want help or not?
benzrf is now known as benzrf|offline
gmind has joined #ruby
Spami has joined #ruby
<jello^> zenspider: telepathically.
quimrstorres has quit [Remote host closed the connection]
<gmind> hi guys, can anyone suggest me an editor for getting start with Ruby ( and rails ) ?
<zenspider> I guess entering the channel isn't enough for a telepath... they need to ask a q to connect
<jello^> zenspider: I guess it's the corrolary to Warnock's Dilemma
<jello^> gmind: vim, emacs, textmate, sublime
<jello^> rubyforge if you're feeling rich
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<xxneolithicxx> gmind: live dangerously: Windows Notepad :-D
<jello^> edlin.exe
<jello^> "editor? dude I just whistle down the phone"
<gmind> xxneolithicxx: well, I'm on Ubuntu
<jello^> real programmers align their RAM with incoming solar radiation and flip the bits that way
<zenspider> jello^: I hadn't seen that one before. (Oddly)... but that's from the questioner's perspective, no?
<agent_white> vim for world domination!
<jello^> zenspider: exactly, I just meant, the responder has a similar dilemma
pwh_ has quit [Ping timeout: 256 seconds]
<xxneolithicxx> gmind: hey no worry, I GOT U... just install wine and that sucker runs perfectly
AlexRussia has quit [Ping timeout: 250 seconds]
<zenspider> jello^: gotcha
<jello^> "why don't you reply? did you solve your problem? did i answer your question? are you dead?"
klmlfl has quit [Remote host closed the connection]
<zenspider> I'm going with dead. :)
<jello^> zenspider: hopefully. and definitely in the long run.
<jello^> I like to assume that my advice will either help someone with their problem, or give them enough rope to hang themself
mary5030 has joined #ruby
conniemj has joined #ruby
shredding has quit [Quit: shredding]
neoxoen has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
mloveless has joined #ruby
mloveless has quit [Remote host closed the connection]
<zenspider> gmind: I'll just throw in emacs to balance it out
gmind has quit [Client Quit]
conniemj has quit [Remote host closed the connection]
<zenspider> we helped another one!
<shevy> hehehe
conniemj has joined #ruby
<xxneolithicxx> emacs is the only truth, add emacs-goodies and color coding and we are off to the races
pwh has joined #ruby
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<xxneolithicxx> who needs stinkin editors with popup and autocomplete garbage
<jello^> I had a colleague who was really good at emacs
<jello^> sometimes he even wrote some code
<xxneolithicxx> lol
<agent_white> I don't need another OS to try
<jello^> no yo dawg?
<agent_white> nonodawg
narcan has joined #ruby
lbrf has joined #ruby
bricker`work has quit [Quit: leaving]
<shevy> it's kinda hard to reason against emacs in ruby. after all matz wrote ruby in emacs
mary5030 has quit [Ping timeout: 244 seconds]
<giuseppesolinas> dat feel when forced to use wordpress
lucyinthesky has joined #ruby
Hijiri has quit [Ping timeout: 258 seconds]
<xxneolithicxx> you mean ruby in your emacs?
<agent_white> I puts ruby in my coffee.
<zenspider> emacs-goodies and color coding?
<zenspider> you mean... emacs?
<xxneolithicxx> no emacs-goodies is the RHEL pkg with the support or the additional stuff or some crap like that
<agent_white> emacs... you mean... vim?!?!
<zenspider> I don't use OSes that cripple my packages
<agent_white> \o/
<zenspider> emacs is emacs
<zenspider> ruby is ruby
<zenspider> if they fuck with that because of some dogma, I flip the bozo bit
<terrellt> agent_white++
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
aloysius21 has joined #ruby
<mozzarella> u wot m8
wallerdev has quit [Quit: wallerdev]
<mozzarella> they just make extra packages
econerd4ever has joined #ruby
<zenspider> no, they split up the real package
segfalt has joined #ruby
sptx00 has quit [Quit: Ex-Chat]
<mozzarella> no
perturbation has joined #ruby
wallerdev has joined #ruby
<xxneolithicxx> who cares, all i know is i always install emacs and emacs-goodies for the extra plugins
pwh has quit [Ping timeout: 244 seconds]
AlexRussia has joined #ruby
<xxneolithicxx> all i need is smart indent and color coding and we are off to the races
lolmaus has quit [Read error: Connection reset by peer]
<terrellt> Life would be sad without all my vim plugins.
<xxneolithicxx> damn kids these days and their f'ing limes and lemons and what not
lolmaus has joined #ruby
<momomomomo> eh text editor is a text editor; if you’re comfortable with it, great - if not, switch
<zenspider> xxneolithicxx: I believe I made it clear that I care, but thanks for being dismissive
<xxneolithicxx> spend more time talking about their awesome editor then writing sane code
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
<xxneolithicxx> diff ppl need diff things, im not being dismissive
<wasamasa> emacs-goodies?
<xxneolithicxx> im just saying "I" dont use it
<wasamasa> haven't come across that one
* wasamasa reads backlog
pwh has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eichenwald has quit [Quit: WeeChat 1.0.1]
gtc has quit [Remote host closed the connection]
<zenspider> "who cares" is definitely being dismissive.
<zenspider> nice thing about IRC in emacs is the /fools list
<xxneolithicxx> i was being dismissive about the split of the packages, not the editors
vinleod has quit [Quit: Computer has gone to sleep.]
Shazaum has joined #ruby
maletor has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
louism2wash has quit [Quit: This computer has gone to sleep]
<jenrzzz> does anyone know of some good resources on perl's design and how it influenced ruby?
freerobby has quit [Quit: Leaving.]
mloveless has joined #ruby
charliesome has joined #ruby
lampd1 has joined #ruby
parduse has quit [Read error: Connection reset by peer]
<wasamasa> perl's design influenced ruby?
apeiros_ has joined #ruby
davasaurous has quit [Ping timeout: 256 seconds]
<jenrzzz> ruby took all the good parts of perl
<jenrzzz> and none of the bad
<wasamasa> ok, the terseness and MTOWTDI
nkumari has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
davasaurous has joined #ruby
<jenrzzz> rubygems was influenced a lot by CPAN
<shevy> well some global variables or strange volatile ones like $1
parduse has joined #ruby
<jenrzzz> they are the only languages AFAIK with the flip-flop operator
x1337807x has joined #ruby
<wasamasa> but there's no silly sigils or inane internals leaking through or lack of OOP
WillAmes has quit [Ping timeout: 264 seconds]
<wasamasa> or the entire business of "A good programming language should approximate a natural language" which is pretty much the only thing about perl you can actually find design resources on
AlexRussia has quit [Quit: WeeChat 1.1-dev]
<jenrzzz> yeah, i've been looking into that
<jenrzzz> where are the programming historians?
mloveless has quit [Remote host closed the connection]
dts|pokeball has quit [Ping timeout: 258 seconds]
AlexRussia has joined #ruby
<wasamasa> if you want to hear about that (and some aphorisms), there's a pretty nice larry wall video on youtube
<xxneolithicxx> reference some college programming languages books maybe? The one I have I think has an interview for Matz
<wasamasa> ok, last one, both perl and ruby encourage hacking something together quickly
sambao21 has quit [Quit: Computer has gone to sleep.]
<jenrzzz> xxneolithicxx: what's it called?
<jenrzzz> wasamasa: looks interesting, thanks!
<wasamasa> I've seen surprisingly many PoCs with both of them
davasaurous has quit [Read error: Connection reset by peer]
davasaur_ has joined #ruby
<wasamasa> perl for the older ones, ruby for the newer ones
Lingos has joined #ruby
<wasamasa> and with ruby, frameworks emerged
<wasamasa> like, metasploit
<wasamasa> or entire libraries for building exploits
<wasamasa> which is a pretty interesting thing and something that speaks for ruby as language
workmad3 has joined #ruby
nanSTA has joined #ruby
nanSTA has quit [Remote host closed the connection]
<jenrzzz> huh, didn't realize the first version of MSF was in perl
<wasamasa> see matasano for instance: http://matasano.com/research/
<xxneolithicxx> jenrzzz: looking at it now, mis-spoke it has bjorne and a few others
sambao21 has joined #ruby
Axy has joined #ruby
<xxneolithicxx> jenrzzz: it says Smalltalk, Eiffel, Ada, Perl and Python were the related/basis languages
<wasamasa> jenrzzz: hmm, didn't know that
<postmodern> wasamasa, actually metasploit was originally perl, and people convinced them to port to Ruby because Rails was all the rage at the time and perl was dying
<xxneolithicxx> jenrzzz: Concepts of Programming Languages 8e
<jenrzzz> xxneolithicxx: yeah, I know that, but I'm trying to dig a little deeper
<jenrzzz> fuck, i shoulda asked matz at rubyconf
tds has joined #ruby
Lingos has quit [Ping timeout: 245 seconds]
<jenrzzz> maybe the truth isn't all that interesting and we should come up with a legend
boombadaroomba has quit [Remote host closed the connection]
<tds> would anybody else consider this behaviour of double splats inconsistent and possibly incorrect: https://gist.github.com/timabdulla/2dda8cb8dfea980a96a6
Mia has quit [Ping timeout: 258 seconds]
hiyosi has joined #ruby
Deltini has joined #ruby
<tds> im considering whether or not to actually write up a bug report, but there's scant documentation available about the double-splat operator
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<zenspider> I can't tell what you're trying to point out as the problem
Areessell has joined #ruby
<tds> specifically line 10 result in an error
<tds> resulting*
<tds> its inconsistent with how the single-splat operator works
pushpak has quit [Quit: Linkinus - http://linkinus.com]
ghr has joined #ruby
<zenspider> how is that inconsistent? I don't get it
taiansu has joined #ruby
fabrice31 has joined #ruby
<tds> if you have an array that is empty, and you use the single-splat operator to expand that array into a method's argument list, but the method takes no arguments, there won't be a "wrong number of arguments" error, because an empty array expanded results in no arguments
<tds> if you have a hash that is empty, and you use the double-splat operator to expand that hash into a method's keyword arguments list, but the method take no arguments (keyword or otherwise), a "wrong number of arguments" error is raised, even though an empty hash expands into no arguments
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seryl has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
<tds> unless i am misunderstanding what the double-splat operator is meant to do, but at least in its current form, it is not a perfect analogue of the single-splat operator
<tds> kind of confusing
ghr has quit [Ping timeout: 244 seconds]
<zenspider> ruby -e 'def a; end; a(*[]); def b(*a); p a; end; b(*[]); b(**{}); a(**{})'
icbm has quit [Quit: Computer sleeping]
<zenspider> yeah. that seems odd.
CpuID has quit [Read error: Connection reset by peer]
taiansu has quit [Ping timeout: 245 seconds]
<zenspider> file a bug
Kricir has quit [Remote host closed the connection]
AlexRussia has joined #ruby
Takle has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
<tds> thanks for looking at that. just wanted to make sure i wasn't missing anything silly
zB0hs has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has quit [Ping timeout: 272 seconds]
henesy has joined #ruby
geggam has quit [Ping timeout: 264 seconds]
louism2wash has joined #ruby
seryl has quit [Client Quit]
rkalfane has quit [Read error: Connection reset by peer]
silkfox has joined #ruby
<zenspider> should use better names
jlast has joined #ruby
rkalfane has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
<zenspider> ruby -e 'def noargs; end; def pargs(*a); p a; end; pargs(*[]); pargs(**{}); noargs(*[]); noargs(**{});'
mostlybadfly is now known as mostlybadfox
lucyinthesky has left #ruby ["Leaving"]
jobewan has quit [Quit: Leaving]
mikepack has quit [Remote host closed the connection]
Areessell has quit [Ping timeout: 272 seconds]
<tds> yes, probably a little bit clearer than single-letter names :)
CpuID has joined #ruby
TheNet has joined #ruby
KLVTZ_ has joined #ruby
olivier_bK has joined #ruby
fgo has joined #ruby
Rejected has joined #ruby
nfk has quit [Quit: yawn]
mostlybadfox is now known as mostlybadfly
FutureTense has joined #ruby
Rejected has left #ruby [#ruby]
pragmatism has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
kiyote23 has quit [Remote host closed the connection]
nkumari has joined #ruby
giuseppesolinas has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Ping timeout: 244 seconds]
fgo has quit [Ping timeout: 245 seconds]
bklane has quit [Remote host closed the connection]
emmesswhy has joined #ruby
Nigel_ is now known as G
bklane has joined #ruby
allcentury has joined #ruby
kireevco has quit [Quit: Leaving.]
blahwoop has joined #ruby
bklane has quit [Read error: Connection reset by peer]
mleone has quit [Ping timeout: 250 seconds]
rylev has quit []
sevvie has quit [Quit: Reconnecting]
sevvie has joined #ruby
WillAmes has joined #ruby
kireevco has joined #ruby
hatzopoulos has joined #ruby
tvw has quit [Ping timeout: 250 seconds]
aloysius21 has quit [Remote host closed the connection]
jonr22 has joined #ruby
nkumari has quit [Remote host closed the connection]
tvw has joined #ruby
davasaur_ has quit [Ping timeout: 258 seconds]
lbrf has quit [Quit: Be back later ...]
nkumari has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
nkumari has quit [Remote host closed the connection]
michaeldeol has joined #ruby
zmisc has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
tvw has quit [Ping timeout: 250 seconds]
nkumari has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]