havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
lemur has joined #ruby
Balllkenende has joined #ruby
Balllkenende is now known as JanPeter
<al2o3-cr> £)
BigDiesel007 has quit [Quit: Textual IRC Client: www.textualapp.com]
DEA7TH has quit [Quit: DEA7TH]
tmtwd has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
elperdut_ has joined #ruby
<al2o3-cr> shevy: yeah i like the graphs there
<al2o3-cr> shevy: rock bottom at the min (no pun intended)
finisherr has quit [Quit: finisherr]
lemur has quit [Ping timeout: 240 seconds]
elton has quit [Remote host closed the connection]
okdas has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
CloCkWeRX has joined #ruby
BSab has joined #ruby
zylogz80 has quit [Ping timeout: 255 seconds]
FernandoBasso has quit [Quit: WeeChat 1.3]
cirenyc has quit [Quit: Leaving...]
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
benlieb has quit [Client Quit]
<al2o3-cr> i am an ape man (ce ce ce ce ce ce ce) i am an ape man
BrunoSaboia has quit [Ping timeout: 244 seconds]
brt has quit [Quit: peace]
idefine has joined #ruby
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mistermocha has joined #ruby
Pupeno has joined #ruby
linduxed has quit [Ping timeout: 264 seconds]
chrisja has quit [Quit: leaving]
idefine has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<harly> noice... irb: 10.1 / 100
<harly> what'st he best way to get what i want there? :)
<al2o3-cr> harly: ?
linduxed has joined #ruby
skade has quit [Read error: Connection reset by peer]
<harly> me not having to deal with floats ofr a long time. gives 0.10099999~ instead of 0.101
mistermocha has quit [Ping timeout: 265 seconds]
skade has joined #ruby
<al2o3-cr> floats ain't precise
<harly> yeah.
<harly> so what's the best way to get what i really want, which is an accurate 0.101 ?
<eam> >> 10.1r / 100r
<ruboto> eam # => (101/1000) (https://eval.in/463260)
axsuul has quit [Read error: Connection reset by peer]
<netule> you need to compare using an epsilon value
axsuul has joined #ruby
crdpink2 has quit [Quit: q term]
<al2o3-cr> harly: bigdecimal
TheNet has quit [Remote host closed the connection]
skade has quit [Client Quit]
<al2o3-cr> &ri BigDecimal # harly
<harly> cool thanks i'll read tha tup
<eam> bigdecimal or rational, depending on what kind of operations
dhollinger has quit [Quit: WeeChat 1.2]
TheNet has joined #ruby
crdpink has joined #ruby
lkr_ has quit [Ping timeout: 250 seconds]
axsuul has quit [Ping timeout: 240 seconds]
nietzschette has joined #ruby
<harly> ty. some bedtime reading :)
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CalydOn has quit [Quit: Leaving]
elperdut_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nietzschette> hey i have a quick question question
rakm has joined #ruby
mordocai has joined #ruby
<al2o3-cr> harly: best time reading
<al2o3-cr> ?ask nietzschette
<ruboto> nietzschette, Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JanPeter is now known as Balllkenende
jottr has joined #ruby
<jericon> In my script I'm using mysql2 to retrieve a value from MySQL. It will always be a single row returned (I'm doing SELECT TO_DAYS(now());). What I want is to get the result of that query into its own variable. What is the best way to do that?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
firstdayonthejob has quit [Ping timeout: 252 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
<harly> eam: missed your suggestion. I like that. to get it printed out as a decimal, is it best like (10.1r/100r).to_f or should I use something that doesn't involve a float?
<nietzschette> I have a tk app and when I bind a command to a button, it appears I am limited to commands in the global scope. Is there a way to reslove the local scope in a string?
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
<al2o3-cr> ?code nietzschette
<ruboto> nietzschette, We can't help you without your code, please post it to https://gist.github.com
DEA7TH has joined #ruby
infamos has joined #ruby
<ericwood> huh there's Tk ruby bindings?
<al2o3-cr> ericwood: yep
<ericwood> I used to do so much Tkinter stuff when I started out with python, it was kinda fun!
<ericwood> oh boy oh boy
<eam> harly: it depends on your use case -- the thing to keep in mind is that the number base dictates which operations can and can't be performed accurately
sdwrage has quit [Quit: Leaving]
shmilan has joined #ruby
<eam> harly: just like 1/3 is a repeating decimal in base 10, other values are repeating (and un-expressable without loss) in base 2
RegulationD has joined #ruby
<ericwood> oh my god ActiveState TCL
<ericwood> now there's a phrase I haven't heard in a while :o
chibs has quit [Ping timeout: 240 seconds]
<al2o3-cr> nietzschette: that semicolon should be a comma
ixti has quit [Quit: WeeChat 1.3]
<al2o3-cr> *them
<ericwood> oh my god...it works
<nietzschette> you see the ugly portion in the string i have to name my module, my class, and a member of my class before I even get to the funtion. is there a way to reference that function directly, or provide the scope programaticly?
riotjones has joined #ruby
cdg has quit [Remote host closed the connection]
<harly> eam: ok i get that. so if I have Rational(1.3) and I want that printed out as decimal with a precision of 3. what's the best approach? (reading through precision docs in Rational but i think that's not applicable)
<harly> Rational(1,3) i mean.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
Porfa has quit [Quit: Porfa]
antgel has quit [Ping timeout: 260 seconds]
Rickmasta has quit [Client Quit]
<nietzschette> you mean, like Rational(1,3).to_f.round(3)
acke has quit [Ping timeout: 246 seconds]
<eam> harly: probably use bigdecimal for that
<al2o3-cr> nietzschette: interpolate the string
<harly> nietzchette: yes i mean that. but i wonder if I should still avoid float and use something else.
Rickmasta has joined #ruby
<eam> to_f will have the same rounding issues as the original expression
treaki has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
<eam> Rational is nice if you want to represent the exact rational value
jgt1 has quit [Ping timeout: 260 seconds]
<eam> BigDecimal will give you more precision for actually doing the division
antgel has joined #ruby
charliesome has joined #ruby
<harly> eam. in this case i'm happy to stay in rational until i just want to represent the final answer.
riotjones has quit [Ping timeout: 252 seconds]
<eam> you can always BigDecimal.new(some_rational)
<harly> eam. so just trying to fish for the best way to take the final rational, say Rationa(1,3) after all the calculations, and represeent it as a string "1.333". what .to_f.round(3) does.
htmldrum has joined #ruby
<harly> 0.333 of course.
mattwildig has quit []
sankaber has joined #ruby
charliesome has quit [Client Quit]
pdoherty has joined #ruby
<eam> >> BigDecimal.new(Rational(1,3), 3)
<ruboto> eam # => uninitialized constant BigDecimal (NameError) ...check link for more (https://eval.in/463261)
<eam> >> require 'bigdecimal'; BigDecimal.new(Rational(1,3), 3)
<ruboto> eam # => #<BigDecimal:411864c4,'0.333E0',9(27)> (https://eval.in/463262)
patdohere has joined #ruby
patdohere has quit [Client Quit]
patdohere has joined #ruby
csaunders has quit [Quit: later tater]
patdohere has quit [Client Quit]
<eam> >> require 'bigdecimal'; BigDecimal.new(Rational(1,3), 3).to_s("F")
<ruboto> eam # => "0.333" (https://eval.in/463263)
<harly> eam: great thanks. i'd gotten close, but I was missing the second argument to big decimal.
csaunders has joined #ruby
to_json has quit [Quit: Leaving.]
tulak has joined #ruby
atomical has joined #ruby
<nietzschette> "#{0.333}"
elton has joined #ruby
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
to_json has quit [Client Quit]
<eam> nietzschette: yes, the problem is surrounding values which can't be expressed in IEEE float
<eam> >> "#{10.1/100}"
<ruboto> eam # => "0.10099999999999999" (https://eval.in/463264)
Balllkenende has quit [Read error: Connection reset by peer]
<eam> >> require 'bigdecimal'; BigDecimal.new(Rational(10.1, 100), 3).to_s("F")
<ruboto> eam # => "0.101" (https://eval.in/463265)
Balllkenende has joined #ruby
<nietzschette> ah yes, I remember those problems now.
<eam> if you push your math into Rationals you know you won't encounter errors due to the rounding limits of the type -- and BigDecimal is the way to do the final high precision conversion
<harly> although. in this case small final precision probably makes it all a bit moot
charliesome has joined #ruby
<nietzschette> uhg math is outdated
<harly> >> (10.1/100).round(3)
<ruboto> harly # => 0.101 (https://eval.in/463266)
<al2o3-cr> nietzschette: nature is maths
<nietzschette> maths is a discription of nature
<al2o3-cr> yes it is
<nietzschette> nature is not math
<blubjr> hm..no
<al2o3-cr> nietzschette: and it's description
treaki has joined #ruby
<nietzschette> semantics are difficult to argue
vigintas has quit [Ping timeout: 246 seconds]
<al2o3-cr> pfft
charliesome has quit [Client Quit]
Balllkenende has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
lkba_ has joined #ruby
<nietzschette> anyway, anybody have answers for my metaprograming prolblem?
joufflu has joined #ruby
<al2o3-cr> ?meta
<ruboto> I don't know anything about meta
charliesome has joined #ruby
pdoherty has quit [Quit: Leaving]
Balllkenende has joined #ruby
tkuchiki has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<harly> i get 404 on your gist nietzschette
<nietzschette> lemmy regist
beagles has quit [Ping timeout: 260 seconds]
<al2o3-cr> what?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
marr has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Remote host closed the connection]
DEA7TH has quit [Quit: DEA7TH]
<al2o3-cr> i must be reading a totally different gist :[
devoldmx has quit [Ping timeout: 260 seconds]
sandals has quit [Quit: Textual IRC Client: www.textualapp.com]
b3nt_pin has joined #ruby
<harly> this is the one i tried to read: https://gist.github.com/anonymous/e0b59981d3361972552e
b3nt_pin is now known as Guest46631
bricker has quit [Ping timeout: 272 seconds]
<nietzschette> here is a better discription
<nietzschette> the comment at the bottom: change line 4 to 12 cause i'm a nub
Porfa has joined #ruby
<eam> nietzschette: I don't understand your question, what do you want to access?
al2o3-cr has quit [Ping timeout: 246 seconds]
platzhirsch has joined #ruby
nettoweb has joined #ruby
<nietzschette> :selection is a method
<nietzschette> I can't just say: command "selection"
<nietzschette> and i can't say: command "self.selection"
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nietzschette> i have to name the module and instances explicitly
Spami has quit [Quit: This computer has gone to sleep]
<eam> command "#{self}.selection" ?
<nietzschette> however, those names can often change
<eam> you're building a string right
mistermocha has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nietzschette> yeah
<eam> >> module Goo; class Foo; "self: #{self}"; end; end
<ruboto> eam # => "self: Goo::Foo" (https://eval.in/463267)
Pupeno has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
<nietzschette> and calling a function in the scope of that class's instance. the TK::Button appears to only envoke commands in global scope though
rgtk has joined #ruby
s2013 has joined #ruby
<nietzschette> okay, lemmy try that
mleung has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
elton has quit [Remote host closed the connection]
<al2o3-cr> my connection is going crazy gonna say bye bye real soon to them money oriented fucks
<nietzschette> no, that doesn't work for some reason
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nietzschette> I think because i'm dealing with an instance of the class
rgtk has quit [Read error: No route to host]
<nietzschette> and not just the class as a constant
<al2o3-cr> an instance variable is good as a global
rgtk has joined #ruby
Rollabunna has joined #ruby
bubbys has quit [Ping timeout: 240 seconds]
<al2o3-cr> can be addressed from *
rgtk has quit [Read error: No route to host]
bubbys has joined #ruby
tulak has quit [Remote host closed the connection]
rgtk has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
s2013 has quit [Client Quit]
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
rgtk has quit [Read error: No route to host]
chibs has joined #ruby
<al2o3-cr> poll: emacs, vim, nano vote 0, 1, 2 respectivley # if it wasn't sent
bricker has joined #ruby
<nietzschette> 2
<al2o3-cr> check
rgtk has joined #ruby
netule has quit [Ping timeout: 250 seconds]
EllisTAA has quit [Quit: EllisTAA]
Rollabunna has quit [Ping timeout: 244 seconds]
djellemah_ has joined #ruby
rgtk has quit [Read error: No route to host]
<al2o3-cr> who watched the film sneakers?
kalusn has quit [Remote host closed the connection]
<nietzschette> cattle mutilations are up
rgtk has joined #ruby
<al2o3-cr> ?
purplexed- has quit [Ping timeout: 272 seconds]
<nietzschette> 'mother' says that in sneakers
snockerton has quit [Quit: Leaving.]
<al2o3-cr> no, i'm woundering if you was in it
mistermocha has quit [Ping timeout: 240 seconds]
TheNet has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
purplexed- has joined #ruby
<al2o3-cr> nietzschette: thats are german name if ever a saw one
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
infamos has quit [Ping timeout: 240 seconds]
bricker has quit [Ping timeout: 264 seconds]
djellemah has quit [Ping timeout: 252 seconds]
rgtk has quit [Read error: No route to host]
<al2o3-cr> nietzschette: you are german, right?
|RicharD| has quit [Quit: Sto andando via]
<nietzschette> mine ansestors are from hartz mountains. i'm american white trash
hmsimha_ has quit [Ping timeout: 265 seconds]
rgtk has joined #ruby
Guest53555 has quit [Ping timeout: 264 seconds]
<al2o3-cr> nietzschette: tut tut
TheNet has joined #ruby
jubal has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
TheNet has quit [Remote host closed the connection]
jubal has quit [Remote host closed the connection]
bb010g has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheNet has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgtk has quit [Read error: No route to host]
<nietzschette> this vijeo is false. it should be two banjers
rgtk has joined #ruby
zylogz80 has joined #ruby
<eam> never seen Deliverance?
<al2o3-cr> nietzschette: chill dude!
infamos has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
<nietzschette> i ain't keen on keepin' up on those new fangled pitcure radio shows
Azure has joined #ruby
<eam> spoiler: a second banjer arrives on scene
OS-18454-1 is now known as OS-18454
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
TheNet has quit [Remote host closed the connection]
<al2o3-cr> keep on rockin' in a free world!
TheNet has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
s2013 has joined #ruby
elperdut_ has joined #ruby
d34th4ck3r has joined #ruby
elperdut_ has quit [Max SendQ exceeded]
sidearmsplit has quit [Quit: sidearmsplit]
rgtk has quit [Read error: No route to host]
elperdut_ has joined #ruby
gigetoo has joined #ruby
rgtk has joined #ruby
<al2o3-cr> colorado rocks is a nice drink, who tasted this
elperdut_ has quit [Max SendQ exceeded]
Guest97 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elperdut_ has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
mdih has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
hmsimha_ has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
<al2o3-cr> nietzschette: https://www.youtube.com/watch?v=6X9tBHX_Fl4 # what is this?
diego2 has joined #ruby
<nietzschette> halarity
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
<nietzschette> one of those things I find difficult to rectify the existance of
elton has joined #ruby
<al2o3-cr> nietzschette: hahaaaaahaahaaaaahhhhaa
RegulationD has joined #ruby
Balllkenende has quit []
rgtk has quit [Read error: Connection reset by peer]
ekinmur has joined #ruby
rgtk has joined #ruby
dopamean_ has quit [Ping timeout: 268 seconds]
riotjones has joined #ruby
rgtk has quit [Read error: No route to host]
willardg has joined #ruby
rgtk has joined #ruby
CloCkWeRX has quit [Ping timeout: 255 seconds]
crdpink2 has joined #ruby
rgtk has quit [Read error: No route to host]
crdpink has quit [Ping timeout: 246 seconds]
rgtk has joined #ruby
charliesome has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
VeryBewitching has quit [Ping timeout: 250 seconds]
Azure has quit [Quit: Oops.]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
<nietzschette> oh well, i guess I'll just restructure some things
Azure has joined #ruby
CloCkWeRX has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 252 seconds]
rgtk has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Ping timeout: 255 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
rgtk has quit [Read error: Connection reset by peer]
reaVer has quit [Ping timeout: 252 seconds]
<al2o3-cr> >> nietzschette i guess so
<ruboto> al2o3-cr # => undefined local variable or method `so' for main:Object (NameError) ...check link for more (https://eval.in/463277)
rgtk has joined #ruby
roshanavand has joined #ruby
rgtk has quit [Read error: No route to host]
CloCkWeRX has quit [Ping timeout: 244 seconds]
symm- has quit [Ping timeout: 272 seconds]
VeryBewitching has joined #ruby
rgtk has joined #ruby
<al2o3-cr> wtf is main:Object
jottr_ has joined #ruby
<nietzschette> it is everything
jottr has quit [Ping timeout: 244 seconds]
<nietzschette> the 'gobal' scope
Rickmasta has joined #ruby
rgtk has quit [Read error: No route to host]
<shevy> al2o3-cr THE MOTHER OF ALL OBJECTS
<shevy> WHO IS UR DADDY
vigintas has joined #ruby
abucha has joined #ruby
rgtk has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<nietzschette> main is the blank, empty void await command after IRB.start
<al2o3-cr> >> self.singleton_class.send :undef_method, :inspect
<ruboto> al2o3-cr # => #<Class:#<Object:0x41fe2e3c>> (https://eval.in/463278)
sankaber has joined #ruby
sankaber has quit [Remote host closed the connection]
<al2o3-cr> you know i jk right?
rgtk has quit [Read error: Connection reset by peer]
BSab has quit [Ping timeout: 246 seconds]
sankaber has joined #ruby
<nietzschette> i'll know when you say something funny ;p
<al2o3-cr> :P
infamos has quit [Ping timeout: 265 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgtk has joined #ruby
<havenwood> al2o3-cr: See just: self.singleton_class
roshanavand has quit [Ping timeout: 272 seconds]
reaVer has joined #ruby
<al2o3-cr> havenwood: but i wanted to undefine the method whilst i was at it :P
rgtk has quit [Read error: No route to host]
<shevy> you people are evil
<havenwood> al2o3-cr: Note:
<al2o3-cr> self as singleton methods to_s and inspect
<havenwood> >> self.singleton_class.send :undef_method, :inspect; self
<ruboto> havenwood # => /tmp/execpad-0034ce16b55f/source-0034ce16b55f:1:in `p': undefined method `inspect' for #<Object:0x41 ...check link for more (https://eval.in/463279)
<shevy> now you did it
<shevy> you broke the ruby
rgtk has joined #ruby
<havenwood> shevy: No worries:
peterhu_ has quit [Quit: leaving]
<havenwood> >> class << self; remove_method :inspect end; self
<ruboto> havenwood # => #<Object:0x407c2e38> (https://eval.in/463280)
vigintas has quit [Ping timeout: 272 seconds]
elperdut_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgtk has quit [Read error: No route to host]
<al2o3-cr> self.singleton_class.instance_eval { undef_method :to_s; undef_method :inspect; self }
<al2o3-cr> >> self.singleton_class.instance_eval { undef_method :to_s; undef_method :inspect; self }
<ruboto> al2o3-cr # => #<Class:#<Object:0x4068ee40>> (https://eval.in/463285)
<al2o3-cr> >> self.singleton_class.instance_eval { undef_method :to_s; undef_method :inspect; self.respond_to? :to_s }
rgtk has joined #ruby
<ruboto> al2o3-cr # => true (https://eval.in/463287)
peterhu has joined #ruby
<al2o3-cr> >> self.singleton_class.instance_eval { remove_method :to_s; remove_method :inspect; self.respond_to? :to_s }
<ruboto> al2o3-cr # => true (https://eval.in/463289)
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
willardg has joined #ruby
<al2o3-cr> well
elton has quit [Read error: Connection reset by peer]
rgtk has quit [Read error: No route to host]
shadoi has quit [Quit: Leaving.]
elton has joined #ruby
rgtk has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> i hate that syntax class << self
zenguy_pc has joined #ruby
rgtk has quit [Read error: No route to host]
<havenwood> al2o3-cr: Why?
craysiii has quit [Quit: Leaving.]
rgtk has joined #ruby
qwertme has quit [Read error: Connection reset by peer]
dopamean_ has joined #ruby
rabbithole has joined #ruby
qwertme has joined #ruby
<al2o3-cr> when i see it in classes it just pisses me off, why not just self.method?
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
<nietzschette> why not just method for that matter
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
<al2o3-cr> nietzschette: depends if you want an instance method or class(or a million other name) method
slawrence00 has joined #ruby
<al2o3-cr> but all instance methods are really singleton_class methods
rgtk has quit [Read error: Connection reset by peer]
asad_ has joined #ruby
rgtk has joined #ruby
<asad_> Is there an array method to perform a binary search?
<al2o3-cr> asad_: as in how?
<havenwood> asad_: Array#bsearch
rgrmatt has joined #ruby
<nietzschette> .bsearch
rgtk has quit [Read error: No route to host]
<havenwood> &ri Array#bsearch
<nietzschette> you will need a gem if you're 1.9
rgrmatt has quit [Remote host closed the connection]
hxegon has quit [Ping timeout: 244 seconds]
rgtk has joined #ruby
<al2o3-cr> thinking something totally diff there then (wow) this shit is strong
jottr_ has quit [Quit: WeeChat 1.3]
<havenwood> But 1.9 is past end-of-life so *of course* nobody is using it anymore. :P
<al2o3-cr> havenwood: no one?
<nietzschette> i still use!
mikecmpbll has quit [Quit: i've nodded off.]
rgtk has quit [Read error: No route to host]
<nietzschette> but i'm obsolete so, whatev
Croves has joined #ruby
rgtk has joined #ruby
Jardayn has quit [Quit: Leaving]
jorb has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
tkuchiki has joined #ruby
_stu_ has joined #ruby
rgtk has quit [Read error: No route to host]
<al2o3-cr> i still use 1.8.7 @_''_@
<nietzschette> use does not mean use usefully
jorb has joined #ruby
rgtk has joined #ruby
<al2o3-cr> nietzschette: when i mean use i mean use
<nietzschette> I used to make vijeo games with ruby sdl and i none of them work with 2.0
juanpablo__ has joined #ruby
rgtk has quit [Read error: No route to host]
<al2o3-cr> nietzschette: when you say vijeo is that what i think it means
CloCkWeRX has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
diego2 is now known as diegoviola
<havenwood> al2o3-cr: Stop using 1.8. Live in the now!
baweaver has quit [Ping timeout: 240 seconds]
<nietzschette> it means i'm mildly retarted about spelling and so i try to fail as spectacularly as possible
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
<al2o3-cr> havenwood: i'm a vegetarian too, no i'm just kidding :p
<havenwood> al2o3-cr: phew
<al2o3-cr> ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
<al2o3-cr> 4.2.5-1-ARCH
bryanray_ has joined #ruby
<nietzschette> i remember talking to zenspider about this a long time ago. it appears to be working, eh?
bruno- has joined #ruby
<al2o3-cr> nietzschette: take no offence
ss_much has quit [Quit: Connection closed for inactivity]
rgtk has quit [Read error: No route to host]
bryanray has quit [Ping timeout: 250 seconds]
dopamean_ has quit [Ping timeout: 240 seconds]
bruno- is now known as Guest72185
rgtk has joined #ruby
juanpablo__ has quit [Ping timeout: 246 seconds]
arescorpio has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EllisTAA has joined #ruby
blue_deref has quit [Ping timeout: 265 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
<asad_> how do refinements work in ruby > 2.0?
rgtk has joined #ruby
Guest72185 has quit [Ping timeout: 246 seconds]
swgillespie has joined #ruby
asad_ has quit [Quit: Page closed]
rgtk has quit [Read error: No route to host]
<al2o3-cr> asad_: create a module create you refinement then include wherever
<al2o3-cr> except Object
eminencehc has quit [Remote host closed the connection]
rgtk has joined #ruby
willardg has joined #ruby
Musashi007 has joined #ruby
<havenwood> asad, oh, left?
<havenwood> Rename?
radgeRayden_ has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
platzhirsch has left #ruby [#ruby]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
radgeRayden has quit [Ping timeout: 265 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
RobertBirnie has joined #ruby
blue_deref has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
yqt has quit [Ping timeout: 260 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
hxegon has joined #ruby
bruce_lee2 has joined #ruby
abucha_ has joined #ruby
bruce_lee2 has quit [Changing host]
bruce_lee2 has joined #ruby
bruce_lee is now known as Guest53301
Guest53301 has quit [Killed (cameron.freenode.net (Nickname regained by services))]
bruce_lee2 is now known as bruce_lee
rgtk has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
<al2o3-cr> havenwood: what gcc you got
<havenwood> al2o3-cr: All of them.
<al2o3-cr> what the lastest 5.2.0?
adaoraul has joined #ruby
abucha has quit [Ping timeout: 240 seconds]
nopolitica has quit [Ping timeout: 244 seconds]
<havenwood> al2o3-cr: Seems at the moment 5.2 on OS X and 4.8 on FreeBSD.
charliesome has joined #ruby
<havenwood> al2o3-cr: Or :P Apple LLVM version 7.0.0 (clang-700.1.76)
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dorei has quit []
colegatron has quit [Ping timeout: 255 seconds]
<al2o3-cr> you play about with free?
rgtk has quit [Ping timeout: 260 seconds]
willardg has joined #ruby
<al2o3-cr> havenwood: can i ask are macbooks worth it?
<al2o3-cr> 13" versions
riotjones has joined #ruby
<havenwood> al2o3-cr: I'm about to relocate, but yeah good computers.
Musashi007 has quit [Quit: Musashi007]
<havenwood> al2o3-cr: rMBP you mean? Or Macbook?
<havenwood> (Which isn't 13".)
<al2o3-cr> retina one
<al2o3-cr> no retina in 13"?
<havenwood> al2o3-cr: There is, but not Macbook.
<havenwood> al2o3-cr: Very solid, you'll love it.
<al2o3-cr> link me
blackmesa has joined #ruby
<havenwood> al2o3-cr: Macbook is retina but not very burly (tiny with no fans or moving parts at all).
<al2o3-cr> thinking between dell xps 13 or mac 13
<havenwood> al2o3-cr: 13" rMBP is quite nice.
<al2o3-cr> last time i had a mac was a mac mini :p
nietzschette has quit [Quit: Nettalk6 - www.ntalk.de]
Vile` has quit [Remote host closed the connection]
inteq has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
<al2o3-cr> havenwood: when i mac mini i mean one of these http://thumbs.dreamstime.com/z/apple-macintosh-128k-19134615.jpg
Vile` has joined #ruby
<al2o3-cr> havenwood: isn't osx built on openBSD
rgtk has joined #ruby
<eam> anyone here good with ffi?
kp666_ has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 240 seconds]
_djbkd has quit [Quit: My people need me...]
Kero has quit [Ping timeout: 246 seconds]
kies^ has joined #ruby
mdih has joined #ruby
rgtk has quit [Read error: No route to host]
mdih has quit [Max SendQ exceeded]
rgtk has joined #ruby
<al2o3-cr> that is a thing of beauty http://www.laptopmag.com/images/uploads/4348/g/dell-xps-13-2015-g04.jpg but RAM is integrated :(
Gooddaytoyousir has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mdih has joined #ruby
OS-18454 is now known as OS-18454-1
mdih has quit [Max SendQ exceeded]
mdih has joined #ruby
mdih has quit [Max SendQ exceeded]
<al2o3-cr> eam: use fiddle
<eam> is fiddle the new hotness?
mdih has joined #ruby
<al2o3-cr> probably not
<al2o3-cr> stdlib though
<eam> already using ffi
mdih has quit [Max SendQ exceeded]
Fire-Dragon-DoL has quit []
s2013 has joined #ruby
adaoraul has quit [Quit: Lost terminal]
<al2o3-cr> for what
rgtk has quit [Read error: No route to host]
towski_ has quit [Remote host closed the connection]
mdih has joined #ruby
rgtk has joined #ruby
<eam> usb device driver
hxegon has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
<al2o3-cr> ah, i remember you talking about that
colegatron has joined #ruby
<bnagy> eam: I have done a lot of ffi
rgtk has quit [Read error: No route to host]
<al2o3-cr> wasn't it this https://github.com/larskanis/libusb
<bnagy> not sure if that counts as 'good' until I hear the question :)
nateberkopec has quit [Quit: Leaving...]
hxegon has joined #ruby
<eam> I'll cross post from their sleepy channe:
<eam> buf = Thing.read; struct = MyFFIStruct.new FFI::MemoryPointer.from_string buf # is this the best / most efficient way to perform what in C might be read(f, &my_struct, sizeof(my_struct)) ?
rgtk has joined #ruby
elton has quit []
<eam> al2o3-cr: yeah I'm using that
devoldmx has joined #ruby
cmoney has joined #ruby
<eam> Thing in this case is a usb handle
Bloomer has joined #ruby
<eam> wondering specifically about a clean string/buf -> struct path
RegulationD has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
<bnagy> eam: pretty much, afaik
<eam> ok rad
<eam> it seems to be working well
<bnagy> you can use FFI::Pointer or MemoryPointer
<eam> what's the difference?
<bnagy> but if you're starting with a string that's certainly what I'd do
leafybas_ has quit [Remote host closed the connection]
<bnagy> FFI::Pointer comes from Other Stuff eg things return em
<eam> aha
leafybas_ has joined #ruby
freerobby has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
axsuul has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
babblebre has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
axsuul has quit [Max SendQ exceeded]
devoldmx has quit [Ping timeout: 260 seconds]
<al2o3-cr> whats a pointer
axsuul has joined #ruby
moeabdol has joined #ruby
<bnagy> I guess you could avoid the intermediate buf variable, but I probably wouldn't :)
baweaver has joined #ruby
<eam> al2o3-cr: an integer that points to a location of memory
purplexed- has quit [Ping timeout: 250 seconds]
axsuul has quit [Max SendQ exceeded]
<al2o3-cr> eam: ah ok
<eam> bnagy: makes sense :)
to_json has quit [Quit: Leaving.]
axsuul has joined #ruby
<eam> now I have a method that given a descriptor and a FFI::Struct class will read 'em off the wire
<eam> seems to be working ok
<al2o3-cr> int foo = 1; int_ptr = &foo; <-- ?
<eam> yeah
rgrmatt has joined #ruby
<eam> and then *int_ptr = 5 # changes the memory location of foo, so foo == 5
leafybas_ has quit [Ping timeout: 244 seconds]
<al2o3-cr> so whats the difference between `*` and `&`
rgtk has joined #ruby
rbennacer has joined #ruby
<eam> & is address-of, * is points-to
<bnagy> direction
willardg has joined #ruby
<al2o3-cr> ah ok :)
<al2o3-cr> whats the difference between struct and typedef?
rgrmatt has quit [Remote host closed the connection]
roxtrong_ has joined #ruby
juanpablo__ has joined #ruby
Kero has joined #ruby
<eam> al2o3-cr: a struct is an ordered layout of variables in memory with names, like a ruby class with no methods or a hash (but with a different layout)
<eam> a typedef is essentially an alias
ESpiney has joined #ruby
<eam> typedef int magic_number; magic_number foo; # foo is an int
<al2o3-cr> eam: ok awesome
Pupeno has joined #ruby
willardg has quit [Ping timeout: 255 seconds]
rgtk has quit [Ping timeout: 260 seconds]
bryanray_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
simplyianm has quit [Remote host closed the connection]
<al2o3-cr> c boats
Rollabunna has joined #ruby
juanpablo__ has quit [Ping timeout: 260 seconds]
simplyia_ has joined #ruby
<al2o3-cr> so eam this is valid char *foo[] = "ksjdkj";
<eam> just char *foo = "ksjdkj";
<eam> in C, a double quoted string is a pointer
d34th4ck3r has quit [Quit: zzz]
Pupeno has quit [Ping timeout: 246 seconds]
axsuul has quit [Ping timeout: 244 seconds]
<eam> in fact,this is valid C: "asdf"[2] or this: 2["asdf"] -- they're the same thing
<al2o3-cr> eam: why though?
rgrmatt has joined #ruby
<eam> x[y] is just shorthand for *(x + y)
maikowblue has quit [Quit: .]
swgillespie has joined #ruby
<eam> if you have char *foo = "abcd"; and "abcd" is at memory location 1000, then it means *(1001) is the byte 'b'
<eam> which is foo[1], or 1000 + 1
<al2o3-cr> eam: so a char is one byte?
Rollabunna has quit [Ping timeout: 240 seconds]
<eam> generally (not sure if always on all platforms?)
<al2o3-cr> should be upto 64bits
<eam> a C char isn't a unicode character
bruno- has joined #ruby
<eam> C doesn't have a concept of character datatypes
krz has joined #ruby
bruno- is now known as Guest84504
rgrmatt has quit [Remote host closed the connection]
rgtk has joined #ruby
<eam> wikipedia says POSIX guarantees char = 8 bits
<eam> other platforms might differ
<al2o3-cr> eam: kk
<eam> most of the datatypes have a minimum size, but no max
<eam> which is why stuff like int can grow to larger values on new architectures
<al2o3-cr> but a double on 32bit is 4 64bit 8?
<al2o3-cr> eam: have you tried overflowing the stack on 64bit arch?
axsuul has joined #ruby
Croves has quit [Quit: Textual IRC Client: www.textualapp.com]
chibs has quit [Ping timeout: 265 seconds]
<eam> double is a floating point type
<al2o3-cr> of course
rgtk_ has joined #ruby
Guest84504 has quit [Ping timeout: 264 seconds]
<eam> on most systems it's a standard size
rgtk has quit [Read error: Connection reset by peer]
<eam> floating point is unrelated to the integer size, or pointer size
<al2o3-cr> eam: correct
eminencehc has joined #ruby
mistermocha has joined #ruby
rgrmatt has joined #ruby
rgtk_ has quit [Ping timeout: 260 seconds]
eminencehc has quit [Ping timeout: 252 seconds]
dopamean_ has joined #ruby
bryanray has joined #ruby
newmanships has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tjbiddle has joined #ruby
rgtk has joined #ruby
<al2o3-cr> eam: you know assembly ia32/
<al2o3-cr> eam: you know assembly ia32/64
tjbiddle has quit [Client Quit]
nopolitica has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
favadi has joined #ruby
rgrmatt has quit [Remote host closed the connection]
dopamean_ has quit [Ping timeout: 244 seconds]
mistermocha has quit [Remote host closed the connection]
DiCablo has joined #ruby
OS-18454-1 is now known as OS-18454
rgtk has joined #ruby
kp666_ has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
mistermocha has joined #ruby
<al2o3-cr> >> "bonfire lollies all around " * 9
<ruboto> al2o3-cr # => "bonfire lollies all around bonfire lollies all around bonfire lollies all around bonfire lollies al ...check link for more (https://eval.in/463354)
nopolitica has quit [Ping timeout: 240 seconds]
axsuul_ has joined #ruby
rabbithole has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
<havenwood> ruboto: No spamming!
axsuul_ has quit [Max SendQ exceeded]
sdothum has joined #ruby
vdamewood has quit [Quit: Life beckons.]
<havenwood> ?cookie ruboto
<ruboto> ruboto, here's your cookie:
rgtk has quit [Ping timeout: 260 seconds]
hxegon has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
axsuul_ has joined #ruby
<al2o3-cr> havenwood: how to add ?
axsuul_ has quit [Max SendQ exceeded]
EllisTAA has quit [Quit: EllisTAA]
<havenwood> >> '>' * 2 << ':)'
<ruboto> havenwood # => ">>:)" (https://eval.in/463355)
<al2o3-cr> havenwood: how to add ?to ruboto?
axsuul has quit [Ping timeout: 250 seconds]
riotjones has quit [Ping timeout: 255 seconds]
<al2o3-cr> >> @nil.frozen?
<ruboto> al2o3-cr # => true (https://eval.in/463356)
diegoaguilar has quit [Ping timeout: 260 seconds]
<al2o3-cr> havenwood: how to add?
zenguy_pc has quit [Ping timeout: 240 seconds]
<havenwood> al2o3-cr: You'd have to have the ruboto commit bit to add commands proper but I think you can add facts.
mistermocha has joined #ruby
yfeldblu_ has joined #ruby
hxegon has joined #ruby
<al2o3-cr> havenwood: syntax?
blackmesa has quit [Ping timeout: 255 seconds]
<al2o3-cr> to add facts that is
<havenwood> al2o3-cr: !fact (add |mk) LABEL TEXT
axsuul has joined #ruby
<al2o3-cr> havenwood: and can you also remove?
<havenwood> al!fact (remove | rm) LABEL
<al2o3-cr> kk ;)
<havenwood> <tab>
yfeldblum has quit [Ping timeout: 246 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
purplexed- has joined #ruby
purplexed- has joined #ruby
tigarcia has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
rabbithole has joined #ruby
al2o3-cr has quit [Ping timeout: 252 seconds]
<havenwood> al2o3-cr: In any case, #ruby-community is a good place to discuss new facts or commands. Or changes to the current ones. Etc.
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
baweaver has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
<al2o3-cr> ?gambling
<ruboto> I don't know anything about gambling
<al2o3-cr> !gambling
<al2o3-cr> !fact add gambling give it up cowboy!!!
<al2o3-cr> !gambling
_blizzy_ has quit [Quit: Leaving]
<al2o3-cr> auth == nimble ;(
<havenwood> al2o3-cr: Seems to be restricted or need approval.
<havenwood> al2o3-cr: gambling give it up cowboy!!!
<al2o3-cr> havenwood: yeah got disconnected, didn't mean to send so many if they went through
nateberkopec has quit [Ping timeout: 250 seconds]
zenguy_pc has joined #ruby
patrick2 has quit [Quit: Leaving]
Feyn has joined #ruby
mloy has left #ruby ["Leaving"]
moeabdol has quit [Ping timeout: 265 seconds]
diegoaguilar has joined #ruby
<al2o3-cr> havenwood: how come?
Icey has quit [Ping timeout: 240 seconds]
Oatmeal has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
rbennacer has quit [Remote host closed the connection]
<al2o3-cr> havenwood: how'd ya get privs?
arescorpio has quit [Quit: Leaving.]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> al2o3-cr: I'm an OP. The #ruby-community channel is probably the best place to discuss ruboto to keep #ruby for Ruby questions.
<al2o3-cr> havenwood: Ok, thank you havenwood
<havenwood> al2o3-cr: No prob
yfeldblu_ has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
arup_r has joined #ruby
arup_r is now known as Guest79230
blue_deref has quit [Quit: bbn]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hectorsq has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
neanderslob__ has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
EllisTAA has joined #ruby
opensource_ninja has quit [Ping timeout: 240 seconds]
ibouvousaime has quit [Ping timeout: 265 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Oatmeal has joined #ruby
Guest79230 has quit [Quit: Leaving]
OS-18454 has quit [Quit: Textual IRC Client: www.textualapp.com]
chibs has joined #ruby
Porfa has quit [Quit: Porfa]
braincrash has quit [Quit: bye bye]
bruno- has joined #ruby
idefine has joined #ruby
jdawgaz has joined #ruby
bruno- is now known as Guest72367
conail has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
conail has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
gix has quit [Ping timeout: 246 seconds]
chibs has quit [Ping timeout: 252 seconds]
idefine has quit [Ping timeout: 255 seconds]
Guest72367 has quit [Ping timeout: 264 seconds]
BSab has joined #ruby
baweaver has quit [Remote host closed the connection]
braincrash has joined #ruby
astrobun_ has joined #ruby
OS-18454 has joined #ruby
gix has joined #ruby
rehat has joined #ruby
CloCkWeRX has joined #ruby
cmoney has quit [Remote host closed the connection]
ss_much has joined #ruby
OS-18454 has quit [Client Quit]
cmoney has joined #ruby
fedexo has joined #ruby
BSab has quit [Ping timeout: 265 seconds]
Eiam_ has joined #ruby
treaki_ has joined #ruby
cmoney has quit [Remote host closed the connection]
swgillespie has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
treaki has quit [Ping timeout: 240 seconds]
dopamean_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nopolitica has joined #ruby
Wsewolod has quit [Ping timeout: 240 seconds]
shinenelson has joined #ruby
DiCablo has quit [Quit: Textual IRC Client: www.textualapp.com]
swgillespie has joined #ruby
darkf has joined #ruby
yfeldblum has joined #ruby
hxegon_ has joined #ruby
riotjones has joined #ruby
mistermocha has joined #ruby
opensource_ninja has joined #ruby
hxegon has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
sgambino has joined #ruby
infamos has joined #ruby
riotjones has quit [Ping timeout: 265 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Remote host closed the connection]
s2013 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
_stu_ has quit [Quit: _stu_]
lubarch has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
infamos has quit [Ping timeout: 268 seconds]
_djbkd has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cmoney has joined #ruby
dopamean_ has quit [Ping timeout: 268 seconds]
nopolitica has quit [Ping timeout: 250 seconds]
tigarcia has quit [Remote host closed the connection]
RegulationD has joined #ruby
juanpablo__ has joined #ruby
nateberkopec has joined #ruby
devoldmx has joined #ruby
tigarcia has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
TheNet has quit [Remote host closed the connection]
rakm has joined #ruby
neanderslob__ has quit [Remote host closed the connection]
moeabdol has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
cmoney has quit []
cmoney has joined #ruby
juanpablo__ has quit [Ping timeout: 240 seconds]
GeneralElectric has quit [Quit: Connection closed for inactivity]
devoldmx has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
tigarcia has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
cmoney has quit [Client Quit]
moeabdol has quit [Ping timeout: 240 seconds]
cmoney has joined #ruby
dopamean_ has joined #ruby
cmoney has quit [Client Quit]
Guest97 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
macs1 has joined #ruby
macs1 has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
d34th4ck3r has joined #ruby
qwertme has joined #ruby
<eam> al2o3-cr: yes
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmoney has joined #ruby
rbennacer has joined #ruby
Rollabunna has joined #ruby
<al2o3-cr> eam: yes?
dolemite_ has joined #ruby
<dolemite_> can i use ruby to make gaems?
<al2o3-cr> dolemite_: gosu
Pupeno has quit [Ping timeout: 272 seconds]
dolemite_ has left #ruby ["Leaving"]
mistermocha has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 265 seconds]
devoldmx has joined #ruby
chibs has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
bruno- is now known as Guest59785
newmanships has joined #ruby
cmoney has quit [Changing host]
cmoney has joined #ruby
mistermocha has joined #ruby
mndoci has joined #ruby
chibs has quit [Ping timeout: 260 seconds]
cmoney has quit []
Guest59785 has quit [Ping timeout: 272 seconds]
cmoneylulz has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
wldcordeiro has quit [Ping timeout: 252 seconds]
iateadonut has joined #ruby
mallu has joined #ruby
rbennacer has quit [Remote host closed the connection]
rabbitho1e has joined #ruby
Tarellel_ has joined #ruby
Tarellel_ has quit [Client Quit]
purplexed- has quit [Ping timeout: 265 seconds]
asianMike has joined #ruby
rabbithole has quit [Ping timeout: 268 seconds]
vigintas has joined #ruby
baweaver has quit [Ping timeout: 246 seconds]
skade has joined #ruby
<mallu> I'm learning Ruby and can someone please tell me why this doesnt work?http://pastebin.com/gUm25Gc4
<ruboto> mallu, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/689871c86da58f3c71f1
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
<mallu> https://gist.github.com/anonymous/689871c86da58f3c71f1 Trying to return the elements that are present exactly once in the array.
<al2o3-cr> mallu: just do [Array]#uniq
d34th4ck3r has quit [Quit: zzz]
<mallu> al2o3-cr: I don't wat 2 and 3 to appear
<al2o3-cr> mallu: How do you mean?
<mallu> Given [1,2,2,3,3,4,5], the method should return [1,4,5]
vigintas has quit [Ping timeout: 250 seconds]
<al2o3-cr> >> [1,2,2,3,3,4,5].uniq
<ruboto> al2o3-cr # => [1, 2, 3, 4, 5] (https://eval.in/463410)
<al2o3-cr> oops
<al2o3-cr> >> [1,2,2,3,3,4,5].values_at(0,5,-1)
<ruboto> al2o3-cr # => [1, 4, 5] (https://eval.in/463411)
<al2o3-cr> mallu: But that's prolly not what you want
localredhead has joined #ruby
<mallu> no thats not what I want...
baweaver has joined #ruby
<al2o3-cr> mallu: explain more
Rinzlit has joined #ruby
<mallu> the method should work for any given array
<al2o3-cr> mallu: Well, that depends on alot of factors
<al2o3-cr> mallu: size of the array, datatype etc
s2013 has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
tigarcia has joined #ruby
Rinzlit_ has quit [Ping timeout: 246 seconds]
<mallu> for example the method should return correct arrays for non_duplicated_values([1,1,5,7,7]) and non_duplicated_values([2,3,6,6])
s2013 has quit [Max SendQ exceeded]
<al2o3-cr> mallu: Can you show you code?
<al2o3-cr> *your
djellemah_ is now known as djellemah
moeabdol has joined #ruby
<al2o3-cr> mallu: and what should be the return value?
<mallu> [1,4,5]
<mallu> my code is returning an empty array
krz has quit [Quit: WeeChat 1.2]
<al2o3-cr> mallu: give me sec
Tarellel has joined #ruby
<Ropeney> mallu, dont you want > 1?
riotjones has joined #ruby
asianMike has quit []
<Ropeney> nvm didnt read above
<mallu> Ropeney: Actually I wanted <= 1
<mallu> thank you
<mallu> that worked
<Ropeney> :D
<mallu> BTW if you care this would also work... just in case if you are curious def non_duplicated_values(values) values.find_all { |x| values.count(x) == 1 } end
Helheim has joined #ruby
blackmesa has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
ebbflowgo has quit [Quit: ebbflowgo]
axsuul has joined #ruby
haraoka has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
sanjayu has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Ping timeout: 240 seconds]
nopolitica has joined #ruby
<al2o3-cr> mallu: there's a totally better way than this but, you know
<al2o3-cr> >> [1,2,2,3,3,4,5].chunk(&:itself).select { |x, y| y.size == 1 }.flatten(2).uniq
<ruboto> al2o3-cr # => [1, 4, 5] (https://eval.in/463437)
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cacam9621 has joined #ruby
<mallu> ok thanks
blackmesa has quit [Ping timeout: 252 seconds]
<cacam9621> hi
mndoci has quit [Remote host closed the connection]
purplexed- has joined #ruby
<al2o3-cr> o? cacam9621
bryanray has joined #ruby
<al2o3-cr> o/
newmanships has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benlieb has joined #ruby
d34th4ck3r has joined #ruby
dopamean_ has quit [Ping timeout: 240 seconds]
<al2o3-cr> cacam9621: How may we help you?
Musashi007 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Oatmeal has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
tigarcia has quit [Remote host closed the connection]
voltagex has left #ruby ["WeeChat 1.3"]
agent_white has quit [Quit: nottonight]
mistermocha has joined #ruby
nopolitica has quit [Ping timeout: 246 seconds]
zenguy_pc has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axsuul has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
mleung has joined #ruby
kobain has quit [Ping timeout: 268 seconds]
Musashi007 has quit [Quit: Musashi007]
tigarcia has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
roxtrong_ has joined #ruby
Oatmeal has joined #ruby
mistermocha has joined #ruby
haxrbyte has joined #ruby
htmldrum has joined #ruby
tigarcia has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
hxegon_ has quit [Ping timeout: 240 seconds]
favadi has joined #ruby
roxtrong_ has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
infamos has joined #ruby
Guest97 has quit [Quit: Textual IRC Client: www.textualapp.com]
haxrbyte has quit [Ping timeout: 268 seconds]
zylogz80 has quit [Ping timeout: 268 seconds]
opensource_ninja has quit [Ping timeout: 252 seconds]
mistermocha has quit [Remote host closed the connection]
dionysus69 has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
al2o3-cr has joined #ruby
infamos has quit [Ping timeout: 246 seconds]
tigarcia has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest10832
NeverTired has joined #ruby
krz has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
wprice has quit [Quit: wprice]
tkuchiki has joined #ruby
c0dedead has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
drizzle has joined #ruby
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
Guest10832 has quit [Ping timeout: 264 seconds]
<c0dedead> I tried asking this in #rubyonrails but did not get a response. How do I combine an ActiveRecord_Relation and an ActiveRecord_AssociationRelation so that I end up with a single relation which holds all of data from both relations?
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neanderslob has joined #ruby
newmanships has joined #ruby
BSab has joined #ruby
chibs has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GeissT has quit [Ping timeout: 244 seconds]
haxrbyte_ has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
last_staff has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
c0dedead has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
mndoci has joined #ruby
tenderlo_ has joined #ruby
mordocai has quit [Quit: sleep]
tenderlove has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
dopamean_ has joined #ruby
ruurd has joined #ruby
newmanships has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
BSab has quit [Ping timeout: 255 seconds]
juanpablo__ has joined #ruby
yardenbar has joined #ruby
blackmesa has joined #ruby
tagrudev has joined #ruby
dhjondoh has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
mndoci has quit [Remote host closed the connection]
hxegon_ has joined #ruby
hxegon has quit [Ping timeout: 265 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
riotjones has quit [Ping timeout: 264 seconds]
juanpablo__ has quit [Ping timeout: 246 seconds]
Feyn has quit [Quit: Leaving]
Porfa has joined #ruby
an0ma1y has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
moeabdol has joined #ruby
agit0 has joined #ruby
Musashi007 has joined #ruby
trosborn has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
nateberkopec has joined #ruby
nopolitica has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
kiddorails has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dhjondoh has quit [Quit: dhjondoh]
mallu has quit [Ping timeout: 246 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
genpaku has quit [Ping timeout: 265 seconds]
dhjondoh has joined #ruby
Pupp3tm4st3r has joined #ruby
ESpiney has quit [Quit: Leaving]
genpaku has joined #ruby
d34th4ck3r has quit [Quit: zzz]
Pupp3tm4_ has joined #ruby
_djbkd has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
infamos has joined #ruby
abucha has joined #ruby
skade has joined #ruby
jso has quit [Ping timeout: 272 seconds]
baweaver has quit [Remote host closed the connection]
nopolitica has quit [Ping timeout: 240 seconds]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
CloCkWeRX has joined #ruby
Pupp3tm4st3r has quit [Ping timeout: 246 seconds]
abucha_ has quit [Ping timeout: 252 seconds]
fedexo has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
Tarellel has quit [Quit: Tarellel]
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
vigintas has joined #ruby
rabbitho1e has quit [Ping timeout: 265 seconds]
acke has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
Rollabunna has quit [Ping timeout: 250 seconds]
swgillespie has joined #ruby
vigintas has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
beast has joined #ruby
devoldmx has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> moin
simplyia_ has quit [Remote host closed the connection]
Porfa has quit [Quit: Porfa]
simplyianm has joined #ruby
GeissT has joined #ruby
swgillespie has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd_ has joined #ruby
lsmola has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
jas02 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tigarcia has quit []
yfeldblum has quit [Ping timeout: 268 seconds]
al2o3-cr has quit [Ping timeout: 264 seconds]
predator117 has joined #ruby
rabbithole has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
al2o3-cr has joined #ruby
GeissT_ has joined #ruby
mleung has quit [Quit: mleung]
GeissT has quit [Ping timeout: 260 seconds]
joonty has joined #ruby
c0dedead has joined #ruby
c0dedead has quit [Client Quit]
djbkd_ has quit [Remote host closed the connection]
tvw has joined #ruby
karapetyan has joined #ruby
charliesome has joined #ruby
treaki_ has quit [Ping timeout: 252 seconds]
firstdayonthejob has joined #ruby
al2o3-cr has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
localredhead has quit [Ping timeout: 244 seconds]
yeticry has joined #ruby
DoubleMalt has joined #ruby
colegatron has quit [Ping timeout: 268 seconds]
zenguy_pc has quit [Ping timeout: 264 seconds]
riotjones has quit [Ping timeout: 260 seconds]
Porfa has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
codecop has joined #ruby
GeissT has joined #ruby
kiddorails has quit [Remote host closed the connection]
Porfa has quit [Client Quit]
bricker has joined #ruby
ruurd has joined #ruby
GeissT_ has quit [Ping timeout: 255 seconds]
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
colegatron has joined #ruby
segmond has quit [Ping timeout: 246 seconds]
bricker has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
zenguy_pc has joined #ruby
nateberkopec has quit [Ping timeout: 244 seconds]
segmond has joined #ruby
futilegames has joined #ruby
TomyWork has joined #ruby
roxtrong_ has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
haraoka has quit [Remote host closed the connection]
pietr0 has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
ibouvousaime has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
baweaver has quit [Ping timeout: 240 seconds]
terlar has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
devoldmx has joined #ruby
krzkrz has joined #ruby
riffraff has joined #ruby
krz has quit [Read error: Connection reset by peer]
axsuul has quit [Ping timeout: 268 seconds]
rattatmatt has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
davedev24 has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
lubarch has quit [Quit: leaving]
d34th4ck3r has joined #ruby
ibouvousaime has quit [Ping timeout: 260 seconds]
polysics has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ibouvousaime has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
mgorbach has quit [Ping timeout: 255 seconds]
davedev24 has quit [Client Quit]
blaxter has joined #ruby
juanpablo__ has joined #ruby
timonv has joined #ruby
nopolitica has joined #ruby
chibs has quit [Ping timeout: 244 seconds]
solars has joined #ruby
SCHAAP137 has joined #ruby
Pupeno has joined #ruby
GeissT has quit [Quit: Bye!]
juanpablo__ has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mgorbach has joined #ruby
kalusn has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
rgtk has joined #ruby
troulouliou_div2 has joined #ruby
charliesome has joined #ruby
bMalum has joined #ruby
ruurd has joined #ruby
nettoweb has joined #ruby
lipoqil has joined #ruby
charliesome has quit [Client Quit]
htmldrum has quit [Ping timeout: 260 seconds]
camilasan has quit [Remote host closed the connection]
riotjones has joined #ruby
blackmesa has joined #ruby
nopolitica has quit [Ping timeout: 250 seconds]
vigintas has joined #ruby
Guest11942 is now known as dellavg
riotjones has quit [Ping timeout: 246 seconds]
sebstrax has joined #ruby
shredding has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
dellavg is now known as Guest60692
Guest10035 has joined #ruby
neanderslob has quit [Ping timeout: 252 seconds]
tomaz_b has joined #ruby
neanderslob has joined #ruby
darkf_ has joined #ruby
bruno- has joined #ruby
riffraff_ has joined #ruby
bruno- is now known as Guest1858
<tomaz_b> hi... i have one newbie question and would really appreciate some help. i need so solve something with ruby. can someone suggest/direct/show me link/tutorial/something that would show me how to sign XML programmably with certficate.
<tomaz_b> i found some (quite old) gems.
<tomaz_b> what would you use today?
riffraff has quit [Ping timeout: 240 seconds]
kimegede has joined #ruby
roshanavand has joined #ruby
purplexed- has quit [Ping timeout: 255 seconds]
an0ma1y has joined #ruby
nateberkopec has joined #ruby
Guest10035 is now known as dellavg
darkf has quit [Ping timeout: 240 seconds]
roshanav_ has joined #ruby
aufi has joined #ruby
qiukun has joined #ruby
tvw has quit []
Guest1858 has quit [Ping timeout: 260 seconds]
<adaedra> Hello
yfeldblum has joined #ruby
<shevy> hey undeadra
camilasan has joined #ruby
senayar has joined #ruby
roshanavand has quit [Ping timeout: 268 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
roshanav_ has quit [Ping timeout: 246 seconds]
relix has joined #ruby
krzkrz has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 250 seconds]
TheHodge has joined #ruby
blaxter has quit [Ping timeout: 268 seconds]
krzkrz has joined #ruby
platzhirsch has joined #ruby
mikecmpbll has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
rgtk has quit [Remote host closed the connection]
blueOxigen has left #ruby [#ruby]
startupality has joined #ruby
trajing has joined #ruby
Caius has joined #ruby
atom3 has joined #ruby
pusewicz has joined #ruby
Caius has joined #ruby
Caius has quit [Changing host]
marr has joined #ruby
qiukun has quit [Ping timeout: 268 seconds]
platzhirsch has quit [Ping timeout: 250 seconds]
qiukun has joined #ruby
karapetyan has quit [Remote host closed the connection]
hmsimha_ has quit [Quit: Leaving]
karapetyan has joined #ruby
purplexed- has joined #ruby
purplexed- has joined #ruby
Rollabunna has joined #ruby
rattatmatt has quit [Quit: Leaving]
polysics has quit []
musashi has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
<musashi> I'm not sure this is the best place for this but can I ask you guys how I would write a regex that would match with "o/" and not "\o/"
baweaver has joined #ruby
adac has joined #ruby
rabbithole has quit [Ping timeout: 240 seconds]
<tobiasvl> musashi: negative lookbehind
<musashi> sorry?
Rollabunna has quit [Ping timeout: 272 seconds]
<tobiasvl> musashi: you can use something called a "negative lookbehind" to achieve that
<tobiasvl> '\o/'.match(/(?<!\\)o\//)
<tobiasvl> >> '\o/'.match(/(?<!\\)o\//)
<ruboto> tobiasvl # => nil (https://eval.in/463565)
<tobiasvl> >> 'o/'.match(/(?<!\\)o\//)
<ruboto> tobiasvl # => #<MatchData "o/"> (https://eval.in/463566)
blaxter has joined #ruby
<tobiasvl> the (?<!\\) is the negative lookbehind group
xfbs has joined #ruby
kashyap has left #ruby [#ruby]
<musashi> searching. thank you
rgtk has joined #ruby
tomphp has joined #ruby
harly has quit [Quit: Leaving]
diegoviola is now known as dviola
baweaver has quit [Ping timeout: 240 seconds]
astrobun_ has quit [Remote host closed the connection]
qiukun has quit [Ping timeout: 252 seconds]
tulak has joined #ruby
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qiukun has joined #ruby
stan has joined #ruby
agit0 has joined #ruby
tulak_ has joined #ruby
nfk|laptop has joined #ruby
bubuntu has quit [Ping timeout: 264 seconds]
bubuntu has joined #ruby
chibs has joined #ruby
tulak has quit [Ping timeout: 250 seconds]
abucha_ has joined #ruby
lkba_ has quit [Ping timeout: 255 seconds]
Peg-leg has joined #ruby
teclator has joined #ruby
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
abucha has quit [Ping timeout: 240 seconds]
elaptics`away is now known as elaptics
startupality has quit [Quit: startupality]
ta has joined #ruby
Voker57 has joined #ruby
rabbithole has joined #ruby
chibs has quit [Ping timeout: 250 seconds]
bnizzle has joined #ruby
astrobun_ has joined #ruby
bMalum has quit [Quit: bMalum]
lukaszes has joined #ruby
roshanavand has joined #ruby
charliesome has joined #ruby
ta has quit [Remote host closed the connection]
<aps> running "bundle" command gives me following error. What could be wrong here?
<aps> <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
xfbs has quit []
lukaszes has quit [Client Quit]
bubuntu has quit [Ping timeout: 244 seconds]
<adaedra> do you have requires in your Gemfile?
bubuntu has joined #ruby
<aps> adaedra: this is happening even when there's no gemfile
<adaedra> ah. what's your OS?
nopolitica has joined #ruby
diegobiavati has joined #ruby
<aps> adaedra: Amazon Linux (CentOS)
roshanavand has quit [Ping timeout: 264 seconds]
jgt1 has joined #ruby
musou has quit [Quit: Connection closed for inactivity]
<adaedra> CentOS... what ruby version?
tvw has joined #ruby
jgt1 has quit [Read error: Connection reset by peer]
<aps> adaedra: 2.2.2 (installed via ruby-build)
riotjones has joined #ruby
<adaedra> strange
jgt1 has joined #ruby
arup_r has joined #ruby
<aps> adaedra: please suggest me something for this - "What is the best way to install a particular ruby version system-wide?"
blackmesa has joined #ruby
arup_r is now known as Guest69551
<aps> catch is: this is a CI agent machine, it can't choose env via shell. It needs binaries in path
lukaszes has joined #ruby
Guest69551 is now known as arup_r
zenguy_pc has quit [Ping timeout: 272 seconds]
<adaedra> best is suggestive.
lukaszes has quit [Client Quit]
<adaedra> You know what CentOS version your OS is based on?
<aps> adaedra: not really
lukaszes has joined #ruby
<adaedra> Because you have this for 6/7 which can be an alternative https://www.softwarecollections.org/en/scls/rhscl/rh-ruby22/
riotjones has quit [Ping timeout: 265 seconds]
<aps> adaedra: thanks, I'll try this
platzhirsch has joined #ruby
sdfgsdfg has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
pusewicz has quit [Quit: Bye! http://www.layer22.com]
lxsameer has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Porfa has joined #ruby
htmldrum has joined #ruby
bruno- has joined #ruby
<adaedra> TIL bundler has a bitbucket: option.
bruno- is now known as Guest56044
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
tulak_ has quit [Remote host closed the connection]
leafybas_ has joined #ruby
Guest56044 has quit [Ping timeout: 255 seconds]
leafybas_ has quit [Remote host closed the connection]
ta has joined #ruby
leafybas_ has joined #ruby
radgeRayden_ has quit [Ping timeout: 252 seconds]
bweston92 has joined #ruby
Xeago has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
kramsee_ has joined #ruby
kramsee_ has quit [Client Quit]
Rollabunna has joined #ruby
arup_r has quit [Quit: Leaving]
nfk|laptop has quit [Ping timeout: 246 seconds]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lukaszes has joined #ruby
gigetoo has quit [Ping timeout: 244 seconds]
futilegames has quit [Quit: futilegames]
blackmesa has joined #ruby
trosborn has quit [Quit: trosborn]
astrobun_ has joined #ruby
adac has quit [Ping timeout: 246 seconds]
rdark has joined #ruby
<ljarvis>
bruno-_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> I don't see what you mean.
nkts has joined #ruby
<apeiros> but that's so painfully obvious
gregf_ has quit [Quit: Lost terminal]
Balllkenende has joined #ruby
bruno-_ has quit [Read error: Connection reset by peer]
jgt1 has quit [Ping timeout: 260 seconds]
bruno-_ has joined #ruby
nfk|laptop has joined #ruby
juanpablo__ has joined #ruby
ta has quit [Remote host closed the connection]
agit0 has joined #ruby
curses has joined #ruby
devoldmx has joined #ruby
riffraff_ has quit [Quit: Leaving]
gregf_ has joined #ruby
rodfersou has joined #ruby
juanpablo__ has quit [Ping timeout: 250 seconds]
krzkrz has quit [Ping timeout: 240 seconds]
sonOfRa has quit [Remote host closed the connection]
rgtk has quit [Remote host closed the connection]
sonOfRa has joined #ruby
krzkrz has joined #ruby
DEA7TH has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
astrobun_ has quit [Remote host closed the connection]
marr has quit [Ping timeout: 240 seconds]
suchness has joined #ruby
CalydOn has joined #ruby
sgambino has joined #ruby
nateberkopec has joined #ruby
chthon has joined #ruby
ibouvousaime has quit [Ping timeout: 260 seconds]
jgt1 has joined #ruby
ruby-lang410 has joined #ruby
ibouvousaime has joined #ruby
<ruby-lang410> http://pastebin.com/rvicQPNA ........ This code is accepting the test string ... not sure why :(
<ruboto> ruby-lang410, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/555775dd148477baa1d9
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
nateberkopec has quit [Ping timeout: 272 seconds]
<ruby-lang410> https://gist.github.com/555775dd148477baa1d9 ........ This code is accepting the test string ... not sure why :(
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
SenpaiSilver has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
drizzle has quit [Quit: WeeChat 1.3]
Xeago has quit [Ping timeout: 250 seconds]
<ruby-lang410> https://gist.github.com/555775dd148477baa1d9 ........ This code is accepting the test string ... not sure why :(
ldnunes has joined #ruby
<canton7> ruby-lang410, you're being caught out by too little escaping and too much interpolation
<izzol> I have an API in sinatra, and I need to have a fast nice fronted to it. What is the best for this? :-)
Pupeno has quit [Remote host closed the connection]
riotjones has joined #ruby
<canton7> ruby-lang410, example... Test_String.scan(/...\....\....\..../) works fine
<canton7> ruby-lang410, similarly, Regex_Pattern = '...\....\....\....' and Regex_Pattern = "...\\....\\....\\...." are fine
lipoqil has quit [Quit: Connection closed for inactivity]
dhjondoh has quit [Quit: dhjondoh]
musashi has quit [Ping timeout: 265 seconds]
krzkrz has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
<ruby-lang410> canton7: Thank you verymuch ... I just changed " " to ' ' and it worked?? ... However I am still confused why :/
d34th4ck3r has quit [Quit: zzz]
<ruby-lang410> canton7: Any suggestions on what to google to know more about this
<canton7> ruby-lang410, within " ", \ acts as an escape character. so ruby sees "\.", and goes "ok, he's escaping a period - but that's not an escape sequence, so I'll just insert a period"
<canton7> ... so you lose the backslash before you get near the #scan method call
DoubleMalt has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
<canton7> within ' ' there is no escaping, so this doesn't happen. likewise "\\." means ruby goes "ok, he's escaping.. a backslash. which results in a backslash. next, there's a period..."
roshanavand has quit [Remote host closed the connection]
<ruby-lang410> canton7: OMG ... this so valuable knowledge!! ... Thank you so much !! ... May god bless you :)
roshanavand has joined #ruby
kramsee has quit [Quit: leaving]
darthdeus has left #ruby [#ruby]
otiasogirdor has joined #ruby
kramsee has joined #ruby
RegulationD has joined #ruby
blackmesa has joined #ruby
matp has quit [Quit: Textual IRC Client: www.textualapp.com]
Gooddaytoyousir has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
otiasogirdor has quit [Remote host closed the connection]
matp has joined #ruby
knight_ has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
<cek> Hi. Wondering why native exts are being put in extensions/x86_64-linux/2.1.0/gem/ext.so ? Or is that a temp compile dir?
krzkrz has joined #ruby
<cek> i see it's being loaded from gems/$gem/lib/ext.so and not from that location
ss_much has quit [Quit: Connection closed for inactivity]
sepp2k has joined #ruby
dhjondoh has joined #ruby
Porfa has quit [Remote host closed the connection]
Porfa has joined #ruby
ErhardtMundt has joined #ruby
marr has joined #ruby
postmodern has quit [Quit: Leaving]
bruno-_ has quit [Ping timeout: 240 seconds]
but3k4 has joined #ruby
<ErhardtMundt> hello
<ErhardtMundt> I have a problem with ruby
<ErhardtMundt> well, ruby on rails, precisely
<ErhardtMundt> the solution might be trivial
<ErhardtMundt> anyway, I pass a JSON to a rails controller
<ErhardtMundt> and I don't know why on Earth an array becomes an hash
<ErhardtMundt> with index as keys
mr_blue has joined #ruby
<ErhardtMundt> it's driving me crazy
<ErhardtMundt> is there anything I can do to tell the deserializer to behave as one would expect?
<adaedra> If it's rails, it's with #rubyonrails that you should see.
sross07 has joined #ruby
<ErhardtMundt> thanks adaedra
sross_work|2 has quit [Ping timeout: 244 seconds]
favadi has joined #ruby
stamina has joined #ruby
tkuchiki has quit [Remote host closed the connection]
brock has joined #ruby
ruby-lang410 has quit [Ping timeout: 246 seconds]
lipoqil has joined #ruby
qiukun has quit [Quit: qiukun]
baweaver has joined #ruby
prestorium has joined #ruby
leafybas_ has quit [Read error: Connection reset by peer]
leafybas_ has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
Moblin has joined #ruby
<brock> list
baweaver has quit [Ping timeout: 240 seconds]
qiukun has joined #ruby
brock has quit [Quit: ChatZilla 0.9.92 [Firefox 41.0.2/20151014143721]]
krzkrz has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
Ebok has quit [Ping timeout: 246 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
CalydOn has quit [Ping timeout: 244 seconds]
curses has quit []
giuseppesolinas_ has left #ruby ["Leaving"]
Gooddaytoyousir has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
chibs has joined #ruby
klingeldraht has joined #ruby
ErhardtMundt has left #ruby [#ruby]
chibs has quit [Ping timeout: 272 seconds]
bluOxigen has joined #ruby
User458764 has joined #ruby
elperdut_ has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gooddaytoyousir has joined #ruby
elperdut_ has quit [Client Quit]
blueOxigen has joined #ruby
solars has quit [Ping timeout: 252 seconds]
s00pcan has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
colorisco has joined #ruby
s00pcan has joined #ruby
karapetyan has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjone_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
u3DyxaH_4aTap has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
juanpablo__ has joined #ruby
riotjone_ has quit [Ping timeout: 250 seconds]
roshanavand has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
idefine has joined #ruby
juanpablo__ has quit [Ping timeout: 240 seconds]
krzkrz has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhjondoh has quit [Quit: dhjondoh]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sluukkonen has quit [Ping timeout: 272 seconds]
lubarch has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
jmonreal has quit [Ping timeout: 264 seconds]
u3DyxaH_4aTap has quit [Quit: ShakeIT Script - Be the Best!]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpablo__ has joined #ruby
Xeago has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
juanpablo__ has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
bruno- is now known as Guest61643
jmonreal has joined #ruby
Porfa has quit [Quit: Porfa]
Xeago has quit [Remote host closed the connection]
darkf_ is now known as darkf
tulak has joined #ruby
sanjayu has quit [Ping timeout: 240 seconds]
dhjondoh has joined #ruby
Guest61643 has quit [Ping timeout: 272 seconds]
s00pcan has quit [Ping timeout: 240 seconds]
Porfa has joined #ruby
s00pcan has joined #ruby
WillAmes has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 1.3]
WillAmes has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
shredding has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
sdothum has joined #ruby
bMalum has joined #ruby
arup_r has joined #ruby
arup_r is now known as Guest12797
newbsduser has joined #ruby
<newbsduser> hello, i want to generate raw http packets with ethernet header.. i want to inject these packets specific interface. for instance: eth3. how can i do that with ruby? if u advise me a tutorial or library name i ll be glad
Guest12797 is now known as arup_r
karapetyan has quit [Remote host closed the connection]
devoldmx has joined #ruby
mooru has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 268 seconds]
sluukkonen has joined #ruby
weckl has joined #ruby
skweek has quit [Ping timeout: 252 seconds]
roshanavand has quit [Remote host closed the connection]
jgt1 has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
solars has joined #ruby
karapetyan has joined #ruby
CVirus has joined #ruby
ta has joined #ruby
CVirus has left #ruby ["Leaving"]
ta has joined #ruby
tulak has quit [Remote host closed the connection]
mikecmpb_ has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
karapetyan has quit [Read error: No route to host]
favadi has joined #ruby
Mon_Ouie has joined #ruby
codecop has quit [Remote host closed the connection]
qiukun has quit [Quit: qiukun]
avril14th has joined #ruby
solocshaw has joined #ruby
roshanavand has joined #ruby
cacam9621 has quit [Quit: Leaving]
Balllkenende has quit [Remote host closed the connection]
joufflu has quit [Read error: Connection reset by peer]
jgt1 has joined #ruby
stamina has quit [Quit: WeeChat 1.3]
stamina has joined #ruby
BSab has joined #ruby
gigetoo has joined #ruby
diegobiavati has quit [Read error: Connection reset by peer]
htmldrum has quit [Ping timeout: 240 seconds]
elperdut_ has joined #ruby
donske has joined #ruby
nateberkopec has joined #ruby
blackmesa has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
moeabdol has quit [Read error: Connection reset by peer]
infamos has quit [Ping timeout: 268 seconds]
riotjones has joined #ruby
build22_ has joined #ruby
moeabdol has joined #ruby
duckpuppy has joined #ruby
solocshaw has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
inteq has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
riotjones has quit [Ping timeout: 260 seconds]
roshanavand has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
karapetyan has joined #ruby
rabbithole has quit [Ping timeout: 252 seconds]
Icey has joined #ruby
roshanavand has joined #ruby
Wsewolod has joined #ruby
Icey has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
Icey has joined #ruby
solars has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
karapetyan has joined #ruby
Balllkenende has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
bruno- has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
bruno- is now known as Guest45427
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lukaszes has joined #ruby
tkuchiki has joined #ruby
tulak has joined #ruby
prestorium has quit [Quit: Leaving]
Balllkenende has quit [Ping timeout: 240 seconds]
subscope has joined #ruby
tkuchiki has quit [Remote host closed the connection]
codecop has joined #ruby
tkuchiki has joined #ruby
<rob_> newbsduser: look at socket library
roshanavand has quit [Remote host closed the connection]
BSab has quit [Quit: Leaving]
prestorium has joined #ruby
joonty has quit [Quit: joonty]
roshanavand has joined #ruby
synthroid has joined #ruby
rabbithole has joined #ruby
abucha_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<yorickpeterse> Socket doesn't let you inject packets into any interfaces
shredding has joined #ruby
<shevy> it sounds non-trivial what newbsduser wants to do
gigetoo has joined #ruby
favadi has joined #ruby
jmonreal has quit [Quit: Lost terminal]
dANO- has joined #ruby
Balllkenende has joined #ruby
tulak has quit [Remote host closed the connection]
<adaedra> that's low level (and requires root under Linux, afaik)
lipoqil has quit [Quit: Connection closed for inactivity]
ghoti has quit [Ping timeout: 246 seconds]
atomical has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Icey has quit [Quit: icey]
ghoti has joined #ruby
Icey has joined #ruby
sgambino has joined #ruby
Icey has quit [Client Quit]
<Moblin> Is there a ruby method that inherently puts a number to a string with commas?
Moblin is now known as Ebok
Icey has joined #ruby
chibs has joined #ruby
lxsameer has quit [Quit: Leaving]
momomomomo has joined #ruby
treehug88 has joined #ruby
<apeiros> Ebok: asking a question and then changing nick ain't smart.
<Ebok> Fair
joonty has joined #ruby
<Ebok> I only noticed it was the backup nick after asking
Porfa has quit [Quit: Porfa]
<apeiros> I don't really know what you're asking for either, though :)
jdawgaz has joined #ruby
<Ebok> ghr that makes something I read yesterday make so much more sense.
Jardayn has joined #ruby
chibs has quit [Ping timeout: 244 seconds]
gusTester has joined #ruby
<ghr> awesome :)
antgel has quit [Ping timeout: 240 seconds]
mozzarella has quit [Ping timeout: 252 seconds]
skweek has joined #ruby
antgel has joined #ruby
nkts_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
build22_ has quit []
nkts has quit [Ping timeout: 240 seconds]
<apeiros> ?commify
<ruboto> I don't know anything about commify
<ruboto> apeiros, I will remember that commify is https://gist.github.com/apeiros/9d3c8b1fcff9d1769569
<apeiros> Ebok: ^ might also be useful
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> 363665.localize # => "363,665"
freerobby has joined #ruby
pl1ght has joined #ruby
mary5030 has joined #ruby
<Ebok> Hm
<Ebok> Cool!
Balllkenende has quit [Remote host closed the connection]
<apeiros> updated to include `places` arg: -1234.56.localize(thousands: "'", decimal: ",", places: 4) # => "-1'234,5600"
karapetyan has joined #ruby
<apeiros> better naming of arguments welcome :)
Balllkenende has joined #ruby
juanpablo__ has joined #ruby
colegatron has quit [Ping timeout: 250 seconds]
_stu_ has joined #ruby
riotjones has joined #ruby
<Ebok> that regex ... take the first number, looking forward at three numbers, and put a "," there. I like it ^^
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<apeiros> that one's actually stolen. iirc from zenspider
jas02 has quit [Quit: jas02]
gusTester has left #ruby [#ruby]
karapetyan has quit [Ping timeout: 260 seconds]
roshanavand has quit [Remote host closed the connection]
solocshaw1 has joined #ruby
<Ebok> Im mostly happy to be able to read that regex tbh. I'm just starting to come to terms with lookforward lookback
_blizzy_ has joined #ruby
dhjondoh has quit [Remote host closed the connection]
<apeiros> lookaround is the umbrella term ;-)
roshanavand has joined #ruby
juanpablo__ has quit [Ping timeout: 252 seconds]
<Ebok> noted
riotjones has quit [Ping timeout: 260 seconds]
bryanray has joined #ruby
<mikecmpb_> if i have a module with some behaviour, is there a good pattern for being able to overwrite some default values that the module uses from the class which includes it?
Xeago has joined #ruby
<mikecmpb_> i've extracted some password reset code out into a module and i want to have a default password expiry but allow that to be changed by the class which includes the module, not sure what approach to take.
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw1 is now known as solocshaw
mary5030 has quit [Ping timeout: 260 seconds]
<apeiros> mikecmpb_: define them as methods
mikecmpb_ is now known as mikecmpbll
<apeiros> including class can then just define those methods itself
<jhass> constant resolution should win as well
<mikecmpbll> ah yes.
timonv has quit [Ping timeout: 255 seconds]
karapetyan has joined #ruby
<apeiros> I usually prefer methods as they allow logic too. but granted, not always actually.
<mikecmpbll> jhass: how could that work?
abucha has joined #ruby
<jhass> >> module Foo; X = 1; def x; X; end; end; class A; X = 2; include Foo; end; class B; include Foo; end; [A.new.x, B.new.x]
<ruboto> jhass # => [1, 1] (https://eval.in/463711)
<jhass> mh
<jhass> >> module Foo; X = 1; def x; self.class::X; end; end; class A; X = 2; include Foo; end; class B; include Foo; end; [A.new.x, B.new.x]
<ruboto> jhass # => [2, 1] (https://eval.in/463712)
Pupp3tm4st3r has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
erbesharat has joined #ruby
<jhass> weird, I thought the first case works
<apeiros> >> module Adder; def value; base + summand; end; def base; 0; end; def summand: 10; end; end; class FutureYear; include Adder; def base; Time.now.year; end; end; FutureYear.new.value
<ruboto> apeiros # => /tmp/execpad-dbeb92f3a286/source-dbeb92f3a286:2: syntax error, unexpected ':', expecting ';' or '\n' ...check link for more (https://eval.in/463713)
dstarh has joined #ruby
segfalt has quit [Ping timeout: 272 seconds]
<apeiros> plerp
markfletcher has joined #ruby
<apeiros> with constant you need self::
<apeiros> or self.class::
<apeiros> >> module Adder; def value; base + summand; end; def base; 0; end; def summand; 10; end; end; class FutureYear; include Adder; def base; Time.now.year; end; end; FutureYear.new.value
<ruboto> apeiros # => 2025 (https://eval.in/463714)
diegoaguilar has joined #ruby
<apeiros> there. accidentally a :
<apeiros> meh, /me late. jhass already corrected himself :)
Fire-Dragon-DoL has joined #ruby
hxegon_ has quit [Ping timeout: 240 seconds]
bryanray has quit [Client Quit]
Guest45427 has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Read error: Connection reset by peer]
diegoaguilar has joined #ruby
Pupp3tm4_ has quit [Ping timeout: 265 seconds]
<mikecmpbll> apeiros, jhass: excellent, thank you both!
<mikecmpbll> i thought i'd get some redefining constant error if i did that, for some reason.
jdawgaz has joined #ruby
<jhass> nah, those are really two separate constants in their own namespaces
MuffinPimp has joined #ruby
<jhass> it's just resolution that makes it work, A::X winning over Foo::X
<mikecmpbll> gotcha
diegoaguilar has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 252 seconds]
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
colegatron has joined #ruby
rdark has quit [Ping timeout: 268 seconds]
rodfersou is now known as rodfersou|lunch
dreinull75 has left #ruby ["undefined"]
dionysus69 has joined #ruby
al2o3-cr has joined #ruby
juanpablo__ has joined #ruby
JDiPierro has joined #ruby
roshanavand has quit [Remote host closed the connection]
suchness has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
<Ebok> aperios: actually, while I can read it, I'm not entirely certain of the implications of this part of that gsub regex: +$, does that actually make the regex start from right to left? "+ end of line"
Guest53 has joined #ruby
solars has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> Ebok: + is a quantifier, it affects the expression before it, not after
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> .+ is any character (.), one or more times (+)
zacstewart has joined #ruby
<jhass> ah okay, shold've looked at the context
skweek has quit [Ping timeout: 246 seconds]
<jhass> Ebok: in this case we already have the quantifier, {3}
<jhass> that's three times
<jhass> \d is any number, so three digits
<apeiros> \d{3}+ is shorthand for (?:\d{3})+, so a multiple of 3
<Ebok> I see. so its {3}+ together
<apeiros> +digits
<Ebok> Right
<jhass> wait, it's not the no backtrace thing, what was it called again?
<Ebok> I guess I just need to look up and read more about how 'end of line" functions
<apeiros> jhass: greediness?
<jhass> yeah, no
aredridel is now known as Aria
<jhass> possessive
constantinexvi has quit [Ping timeout: 268 seconds]
<apeiros> yeah, * is possessive, ? is lazy (iirc)
<Ebok> possessive sounds familiar
<jhass> non-greedy still backtraces
<apeiros> ah, *+ is possessive
<jhass> apeiros: it's a lookahead, so I have my doubts about your interpretation
<jhass> can't have dynamic width things there
<apeiros> yes, I think {m} is a special case
constantinexvi has joined #ruby
tinyhippo is now known as sadhippo
<apeiros> in other cases you'd have to write the (?:) out iirc
<apeiros> as said, that part is stolen :D
<jhass> {m} is a fixed width, yeah
Rickmasta has joined #ruby
sankaber has joined #ruby
<jhass> but "\d{3}+ is shorthand for (?:\d{3})+" would make it dynamic width
<jhass> I think it's possessive rather, no?
sankaber has quit [Remote host closed the connection]
<apeiros> was there a diff between atomic group and possessive quant?
sankaber has joined #ruby
<jhass> atomic group is the superset, possessive quantifiers are shorthands to certain variants
agit0 has joined #ruby
cdg has joined #ruby
<apeiros> if it was just possessive, it wouldn't work as far as I understand. because it'd match the quantified pattern only once. i.e. {3} is the quantifier then. + is only modifying that to be possessive.
<jhass> "You can make a quantifier possessive by placing an extra + after it. * is greedy, *? is lazy, and *+ is possessive. ++, ?+ and {n,m}+ are all possessive as well."
<apeiros> I'm there too
<jhass> it might be just ignored in a lookahead
<apeiros> but in all those cases, the first part is what quantifies. the last char is only changing greediness between greedy, lazy and possessive
karapetyan has quit [Remote host closed the connection]
colorisco has quit [Quit: colorisco]
<jhass> yeah
<Ebok> That regex page looks like fun
<apeiros> currently wondering whether I can come up with a case which would clear things up :)
InternetFriend has joined #ruby
<Ebok> Imma read it all the way through tonight
<jhass> well, do one million?
<apeiros> but actually I think I should get back to work. already squandered quite a bit :D
kobain has joined #ruby
<apeiros> -1234567.89.localize(thousands: "'", decimal: ",", places: 4) # => "-1'234'567,8900"
<apeiros> works fine with 1 million
norc has joined #ruby
<jhass> mh
momomomomo has quit [Quit: momomomomo]
<jhass> Regexp needs an AST printer :P
<Ebok> Basically the reason I asked was I was just looking at /(\d)(?=\d{3}+$)/ on Rubular, and noticed that it grabbed 45 0 00 0 000, in 450million. the last instance of 0 puts the comma after it, but then its only two 0 before the next injection, unless the comma counted. So I wasnt clear what was actually happening
maikowblue has joined #ruby
karapetyan has joined #ruby
sandals has joined #ruby
<Ebok> Going from right to left in this instance would be a cool trick >_>; if that was actaully happening
<Ebok> I mean I know the method is returning the values correctly
<Ebok> I suspect reading that tutorial will provide me some of the answers
<apeiros> jhass: yeah, that'd be really nice
momomomomo has joined #ruby
umgrosscol has joined #ruby
sandals is now known as powerful_pdev
<adaedra> I had a site like that
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
devoldmx has joined #ruby
<_blizzy_> some guy was arguing that ruby is unreadable. Im like how?
ekinmur has joined #ruby
davedev24 has joined #ruby
<_blizzy_> it's one of the most readable languages I know of.
<adaedra> here it is https://www.debuggex.com/
wprice has joined #ruby
tomaz_b has quit [Ping timeout: 260 seconds]
<apeiros> _blizzy_: ask Ox1DEA
blue_deref has joined #ruby
<apeiros> they've got some pretty unreadable ruby code to share :D
<_blizzy_> oh.
<apeiros> you can write unreadable code in almost any language
<apeiros> but yeah, IMO wrt common code readability, ruby is one of the most readable languages out there.
blackmesa has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
<jhass> it does take a bit to get used to, but then it's very readable
malconis has joined #ruby
lukaszes has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
<jhass> I do remember my first impression of it being confusing too
Xeago has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 250 seconds]
kp666_ has quit [Remote host closed the connection]
ESpiney has joined #ruby
lukaszes has quit [Client Quit]
<jhass> adaedra: doesn't like our case unfortunately
mooru has quit [Ping timeout: 268 seconds]
antgel has joined #ruby
chibs has joined #ruby
freerobby has quit [Quit: Leaving.]
Arnvald has joined #ruby
bigmac has joined #ruby
bigmac has quit [Client Quit]
Arnvald has quit [Remote host closed the connection]
abucha has quit [Remote host closed the connection]
abucha has joined #ruby
chibs has quit [Ping timeout: 260 seconds]
huddy has quit [Quit: Connection closed for inactivity]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
exadeci has quit [Quit: Connection closed for inactivity]
abucha_ has joined #ruby
rbennacer has joined #ruby
Xeago has joined #ruby
mag42c has joined #ruby
diegoaguilar has joined #ruby
roshanavand has quit [Remote host closed the connection]
juanpablo__ has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
<jhass> apeiros: I think it's a special case in oniguruma, similar to what Java does, expanding (?=\d{3}+$) to (?=\d{9}$|\d{6}$|\d{3}$) automatically, starting with 3**n <= remaining string length
roshanavand has joined #ruby
<jhass> and then iterating n down to 1
<apeiros> that's actually a pretty nice performance optimization
favadi has joined #ruby
<jhass> at least that's the only way I'm able to explain that expressions behavior to me
abucha has quit [Ping timeout: 252 seconds]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qwertme has joined #ruby
tmtwd has joined #ruby
favadi has quit [Max SendQ exceeded]
roshanavand has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
<apeiros> I think {3} is not a quantifier in the classical sense
JDiPierro has quit [Remote host closed the connection]
<apeiros> in that it is fixed
<apeiros> i.e. \d{3} is really just (?:\d\d\d)
<jhass> mh, no, it's \d{,m} actually
<apeiros> no
<jhass> well, m,m
<apeiros> \d{,m} is \d{0,m}
<jhass> yeah derped there for a sec, I meant {m,m}
<apeiros> and \d{3} is \d{3,3}, which is (?:\d\d\d)
zacstewart has quit [Remote host closed the connection]
Eiam has quit [Read error: Connection reset by peer]
<jhass> but your expansion would be an optimization over the general case
rdark has joined #ruby
<apeiros> hence I think \d{3}[+*?] is unrelated to greedy/possessive/lazy. \d{3}? would be "3 or none"
<apeiros> and not "lazily 3"
JDiPierro has joined #ruby
<apeiros> same with \d{3}*, it'd be "a multiple of 3, with factor starting at 0"
Guest53 has joined #ruby
tulak has joined #ruby
<jhass> the Java behavior for \d{n,m}+ is take the max (m) and generate alternations of \d{m**i} with max(m**i) <= remaining string length
<apeiros> I'd bet that's also only true for n != m
<jhass> according to regular-expressions.info
bronson has quit [Read error: Connection reset by peer]
cliffstah has quit [Ping timeout: 255 seconds]
wlanboy has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
whippythellama has joined #ruby
<jhass> and it's only doing that inside lookarounds, outside it's possessive
aeris22 has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
<jhass> but lookarounds are already atomic
xnr has quit [Ping timeout: 240 seconds]
brendan- has quit [Max SendQ exceeded]
SHyx0rmZ has quit [Ping timeout: 246 seconds]
<adaedra> jhass: yeah, it would be even cooloer with a Ruby mode.
scottymeuk has quit [Ping timeout: 250 seconds]
shawnacscott has quit [Ping timeout: 250 seconds]
j2k has quit [Ping timeout: 250 seconds]
norc has quit [Ping timeout: 246 seconds]
justinweiss has quit [Ping timeout: 250 seconds]
julie_harshaw has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
Flipez has quit [Ping timeout: 240 seconds]
ctp_ is now known as ctp
parus has quit [Ping timeout: 265 seconds]
Dreamer3 has quit [Max SendQ exceeded]
shadeslayer has quit [Ping timeout: 255 seconds]
riotjones has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tulak has quit [Remote host closed the connection]
Rollabunna has quit [Read error: Connection reset by peer]
user083 has quit [Ping timeout: 250 seconds]
euoia has quit [Ping timeout: 250 seconds]
cliffstah has joined #ruby
Rollabunna has joined #ruby
roshanavand has joined #ruby
euoia has joined #ruby
raenk has quit [Ping timeout: 250 seconds]
user083 has joined #ruby
yqt has joined #ruby
DiCablo has joined #ruby
TTilus has joined #ruby
peteykun has joined #ruby
julieeharshaw has joined #ruby
scottymeuk has joined #ruby
Fraeon has joined #ruby
<jhass> apeiros: http://www.regular-expressions.info/lookaround.html#limitbehind the paragraph starting with "Java ..."
raenk has joined #ruby
Flipez has joined #ruby
shawnacscott has joined #ruby
shadeslayer has joined #ruby
Fraeon has quit [Ping timeout: 250 seconds]
drew2_ has quit [Ping timeout: 246 seconds]
ibouvousaime has quit [Ping timeout: 250 seconds]
chrisarcand has quit [Ping timeout: 250 seconds]
low-prof1 has quit [Ping timeout: 250 seconds]
TTilus has quit [Ping timeout: 250 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morrolan has quit [Ping timeout: 250 seconds]
gigetoo has quit [Ping timeout: 255 seconds]
roshanavand has quit [Remote host closed the connection]
blueOxigen has quit [Read error: Connection reset by peer]
ekem has quit [Ping timeout: 250 seconds]
abra0 has quit [Remote host closed the connection]
DiCablo has quit [Client Quit]
banister has joined #ruby
chrisarcand has joined #ruby
Wsewolod has quit [Quit: Leaving]
RTG` has quit [Read error: Connection reset by peer]
Spleeze has quit [Excess Flood]
Dreamer3 has joined #ruby
bluOxigen has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
theRoUS has quit [Ping timeout: 250 seconds]
xnr has joined #ruby
ibouvousaime has joined #ruby
wlanboy has joined #ruby
diesel has quit [Ping timeout: 250 seconds]
abra0 has joined #ruby
bartj3 has quit [Ping timeout: 250 seconds]
nopc0de has joined #ruby
brendan- has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
riotjones has quit [Ping timeout: 246 seconds]
diesel has joined #ruby
babblebre has joined #ruby
bruno- has joined #ruby
_aeris_ has joined #ruby
acy has joined #ruby
ekem has joined #ruby
rippa has joined #ruby
Jackneill has joined #ruby
mr_blue has quit [Quit: leaving]
bruno- is now known as Guest48008
mleung has joined #ruby
RTG` has joined #ruby
zacstewart has joined #ruby
Morrolan has joined #ruby
cschneid has joined #ruby
nertzy has joined #ruby
solocshaw has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
minver has joined #ruby
Xeago has quit [Remote host closed the connection]
theRoUS has joined #ruby
purplexed- has left #ruby ["Leaving"]
bartj3 has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
parus has joined #ruby
roshanavand has joined #ruby
acy is now known as acy_
atomical has joined #ruby
<minver> Is it possible to raise formatted error? Same format as when using puts
acy_ is now known as acy
donske has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
acy has left #ruby ["Leaving"]
Guest48008 has quit [Ping timeout: 265 seconds]
griffindy has joined #ruby
<apeiros> minver: you can create custom error classes and you can write custom rescue blocks
rabbithole has quit [Ping timeout: 240 seconds]
<apeiros> and ruby doesn't care what you put in the message string even with the core exception classes
peitera has joined #ruby
<apeiros> as for custom error classes: just inherit from StandardError (NOT from Exception!)
Xeago has joined #ruby
spew has joined #ruby
shinnya has joined #ruby
CloCkWeRX has joined #ruby
Xeago has quit [Remote host closed the connection]
p0wn3d__ has joined #ruby
newbsduser has quit [Remote host closed the connection]
Spleeze has joined #ruby
Fire-Dragon-DoL has quit []
jgt1 has joined #ruby
musou has joined #ruby
cwong_on_irc has joined #ruby
mary5030 has joined #ruby
tkuchiki has joined #ruby
tagrudev has quit [Remote host closed the connection]
bruno-_ has joined #ruby
<minver> apeiros: Even if I have a custom error and override the message method raise() still seems to skip formatting. I want newlines and tabs in the error message
dopamean_ has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
nfk|laptop has quit [Quit: yawn]
Xeago has joined #ruby
The_Phoenix has joined #ruby
<minver> apeiros: nvm, thanks!
minver has quit [Quit: Page closed]
polishdub has joined #ruby
shmilan has joined #ruby
abucha_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
kp666_ has joined #ruby
abucha has joined #ruby
abucha_ has joined #ruby
Xeago has joined #ruby
elperdut_ has quit [Ping timeout: 240 seconds]
dhollinger has joined #ruby
jmonreal has joined #ruby
pdoherty has joined #ruby
elperdut has joined #ruby
rabbithole has joined #ruby
<jmonreal> hey there folks. I am using optparse to parse the arguments of command line, but when I do not enter anything, the script does not show the help
<jmonreal> I was wondering what am I missing
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
abucha_ has quit [Remote host closed the connection]
elperdut has quit [Max SendQ exceeded]
but3k4_ has joined #ruby
solars has quit [Ping timeout: 260 seconds]
<Ebok> how do you ask a regex to look ahead for two conditions?
to_json has joined #ruby
to_json has joined #ruby
jgt1 has quit [Ping timeout: 252 seconds]
abucha has quit [Ping timeout: 272 seconds]
rdark has quit [Quit: leaving]
elperdut has joined #ruby
<Ebok> example find any letter followed by 'a' and 'b'
rdark has joined #ruby
rdark has quit [Changing host]
rdark has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
<Ebok> assume a and b could be anything
Xeago has quit [Remote host closed the connection]
qwertme has quit [Quit: Textual IRC Client: www.textualapp.com]
momomomomo has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
abucha has joined #ruby
dopie has quit [Ping timeout: 272 seconds]
rgtk has joined #ruby
infamos has joined #ruby
<jmonreal> Ebok: you mean somehitn like DCab would match C
<jmonreal> ?
<jmonreal> or would match DC?
n has joined #ruby
n is now known as Guest15449
Guest15449 is now known as pard
<pard> greet
<Ebok> I mean, lets say I had Aabc Dabc and I wanted to grab A D
abucha has quit [Remote host closed the connection]
bluOxigen has left #ruby [#ruby]
abucha has joined #ruby
<jmonreal> Ebok: your regex would be /.*(\w{1})ab.*/
<Ebok> but a might be a number and b might be a series of letters. so like... A23pass...B67pass
pandaant has joined #ruby
<Ebok> I shouldve clarified in the same line, my bad
pard has quit [Client Quit]
jgt1 has joined #ruby
goodcodeguy has joined #ruby
<jmonreal> do you have an example Ebok
<jmonreal> ?
teclator has quit [Ping timeout: 260 seconds]
<Ebok> Alright, let me write one up.
daivyk has joined #ruby
mordocai has joined #ruby
<jmonreal> Ebok: do you know about Finite-state machine?
Bloomer has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
<havenwood> >> 'Aabc Dabc'.scan /.(?=ab)/
<ruboto> havenwood # => ["A", "D"] (https://eval.in/463751)
axl_ has joined #ruby
<Ebok> A23W--ahasbaB45X needs to output A and B
<havenwood> Ebok: 23W is different than 45X. What's the rule?
hxegon has joined #ruby
mercerist has joined #ruby
<gregf_> >>"A23W--ahasbaB45X".scan(/(.)\d+[A-Z]+/)
<ruboto> gregf_ # => [["A"], ["B"]] (https://eval.in/463753)
<Ebok> the search considition in this case is /[A-Z](?=[0-9])/ >_>
<havenwood> Ebok: Any two digits followed by a capital letter, or a known list of options or?
dopamean_ has joined #ruby
<gregf_> Ebok: if whats following A and B are dynamic, then God help you :|
<Ebok> gregf gave me what I needed
<Ebok> And yeah I know
<Ebok> xD
<gregf_> Ebok: that was just a guess, havenwood has asked quite a valid question ;)
nertzy has quit [Quit: This computer has gone to sleep]
step1step2_ has joined #ruby
<jmonreal> great!
<jmonreal> do you folks know how to tell optparse to validate the required fields?
<Ebok> havenwood, I dont have a specific need outside needing to be able to look ahead for multiple conditions, say, take X when its followed by anyY and Z
<Ebok> The answer was literally +
<Ebok> >_>;
<Ebok> \d(?=[a-zA-Z]+\d) <== an example. match a number thats followed by letters and one more number
freerobby has joined #ruby
solars has joined #ruby
daivyk has quit [Quit: ZZZzzz…]
<Ebok> I'll be more clear when I ask questions in the future, sorry for the headache, thanks for the assist
<gregf_> >>[ /(?<foo>\d+\w+\d+)/ =~ "123foo456" ]
<ruboto> gregf_ # => [0] (https://eval.in/463758)
freerobby1 has joined #ruby
beast has quit [Quit: Leaving]
freerobby has quit [Read error: Connection reset by peer]
jwaldrip has joined #ruby
<Ebok> faienough
bryanray has joined #ruby
segfalt has joined #ruby
beauby has joined #ruby
_stu_ has quit [Quit: _stu_]
momomomomo has quit [Quit: momomomomo]
hashpuppy has joined #ruby
rodfersou|lunch is now known as rodfersou
millerti has joined #ruby
User458764 has joined #ruby
dorei has joined #ruby
elperdut has quit [Ping timeout: 240 seconds]
jgt1 has quit [Ping timeout: 240 seconds]
dnomyar has joined #ruby
step1step2__ has joined #ruby
elperdut has joined #ruby
dopamean_ has quit [Read error: Connection reset by peer]
Pupp3tm4_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
tulak has joined #ruby
agit0 has joined #ruby
step1step2_ has quit [Ping timeout: 272 seconds]
NeverDie has quit [Quit: http://radiux.io/]
Pupp3tm4st3r has quit [Ping timeout: 246 seconds]
dopamean_ has joined #ruby
ibouvousaime has quit [Ping timeout: 272 seconds]
davedev24 has quit [Remote host closed the connection]
pu22l3r has joined #ruby
bricker has joined #ruby
but3k4_ has quit [Read error: Connection reset by peer]
yardenbar has quit [Ping timeout: 265 seconds]
but3k4 has joined #ruby
karapetyan has joined #ruby
davedev24 has joined #ruby
Guest12746 is now known as ZeeNoodleyGamer
ZeeNoodleyGamer is now known as Iota-Spencer
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sadhippo is now known as grumpyhippo
Marsupermammal has joined #ruby
asad_ has joined #ruby
<asad_> What sorting algorithm is implemented by Array#sort?
radgeRayden_ has joined #ruby
riotjones has joined #ruby
User458764 has quit [Ping timeout: 240 seconds]
matled has quit [Remote host closed the connection]
<apeiros> asad_: it uses qsort
matled has joined #ruby
<apeiros> but don't rely on a particular implementation
solars has quit [Ping timeout: 260 seconds]
karapetyan has quit [Ping timeout: 272 seconds]
teclator has joined #ruby
lubarch has quit [Quit: leaving]
_stu_ has joined #ruby
bricker has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
dopamean_ has quit [Ping timeout: 240 seconds]
radgeRayden_ has quit [Ping timeout: 255 seconds]
riotjones has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
slawrence00 has joined #ruby
aufi has quit [Quit: Konversation terminated!]
dopamean_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
Xeago has joined #ruby
Pupp3tm4st3r has joined #ruby
Guest53 has joined #ruby
mary5030_ has joined #ruby
Spleeze has quit [Ping timeout: 244 seconds]
decoponio has joined #ruby
abucha has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 264 seconds]
elperdut has quit [Ping timeout: 240 seconds]
abucha has joined #ruby
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
hectorsq has joined #ruby
Pupp3tm4_ has quit [Ping timeout: 252 seconds]
mary5030 has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
Yzguy has joined #ruby
devoldmx has joined #ruby
mary5030_ has quit [Remote host closed the connection]
shinenelson has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
aganov has quit [Quit: Leaving]
abucha has quit [Ping timeout: 252 seconds]
acke has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
jgt1 has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
synthroid has joined #ruby
startupality has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupp3tm4st3r has quit [Remote host closed the connection]
rgtk has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
asad_ has quit [Quit: Page closed]
momomomomo has joined #ruby
build22 has joined #ruby
kimegede has quit [Quit: Leaving...]
idefine has joined #ruby
dopamean_ has quit [Remote host closed the connection]
hxegon has quit [Ping timeout: 268 seconds]
bruno-_ has quit [Read error: Connection reset by peer]
pdoherty has quit [Ping timeout: 260 seconds]
<Ebok> can you iterate within gsub, like replace every vowel with an escalating 1 2 3 4 5. H1ll2 W3rld?
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
bruno- has joined #ruby
<Ebok> I know there are other ways to do this, I'm just wondering if gsub can do it
treehug88 has joined #ruby
bruno- is now known as Guest15285
cwong_on_irc has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Ebok> the other curiousity I have with gsub is when the pattern is matched, can we modify the pattern? example "hello world".gub(/[aeiou]/,pat.next) turning e into f, o into p, etc
cwong_on_irc has joined #ruby
<pu22l3r> Hi anyone here ever see this error: http://pastebin.com/MaccxFFR
<ruboto> pu22l3r, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/20e8e19131e7add28cca
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
karapetyan has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
<platzhirsch> Pastebin is the devil
gregf has quit [Quit: WeeChat 1.3]
Fredrich010 has joined #ruby
colegatron has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
step1step2__ has quit [Quit: Leaving]
zylogz80 has joined #ruby
<pu22l3r> Sorry ... I don't typically have to paste stuff too much
<pu22l3r> and that was the only one I could think of
<pu22l3r> cool that it moves it though
gregf has joined #ruby
dopie has joined #ruby
<Ebok> nm gsub(pattern) {|match| block } → new_str <-- answered my own questions
roshanavand has joined #ruby
bMalum_ has joined #ruby
inteq has joined #ruby
rgtk has joined #ruby
NeverDie has joined #ruby
bMalum has quit [Ping timeout: 264 seconds]
bMalum_ is now known as bMalum
arthurix has joined #ruby
<pu22l3r> So anyone ever seen that ssl error? it's driving me nuts ...
dopamean_ has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<jhass> pu22l3r: the october iso is missing certs
<jhass> whoops, wrong channel
<jhass> pu22l3r: windows?
<pu22l3r> nah mac
<jhass> mh
<jhass> ssl error on doing what exactly?
pdoherty has joined #ruby
arthurix_ has quit [Ping timeout: 240 seconds]
<pu22l3r> jhass: well ... it's actually a chef omnibus project ... trying to download the latest copy of openssl from openssl.org
pietr0 has joined #ruby
<platzhirsch> so it says in my ActiveRecord::Base.connection @open_connection, wonder how I can close it
<jhass> pu22l3r: you gotta give a ton more context if you want any help
karapetyan has joined #ruby
<pu22l3r> jhass: ok sure, one sec while i post the output of what I'm running
<jhass> derp, haven't seen the initial gist
bMalum has quit [Quit: bMalum]
karapetyan has quit [Remote host closed the connection]
NeverDie has quit [Quit: http://radiux.io/]
<jhass> pu22l3r: I think the easiest solution apart from using RVM on OS X was to get the curl ca bundle and use that explicitly
<pu22l3r> jhass: curl ca bundle ?
chibs has joined #ruby
<pu22l3r> rvm on osx gives me an error when trying to update the certs ...
dravine_ has joined #ruby
Guest15285 has quit [Read error: Connection reset by peer]
idefine_ has joined #ruby
sanjayu has joined #ruby
karapetyan has joined #ruby
syath has joined #ruby
bruno-_ has joined #ruby
SleepySensei has joined #ruby
<jhass> ugh
Yzguy has quit [Quit: Textual IRC Client: www.textualapp.com]
idefine has quit [Ping timeout: 265 seconds]
Guest46631 has quit [Ping timeout: 244 seconds]
<jhass> rvmsudo ?
atomical_ has joined #ruby
dravine has quit [Ping timeout: 246 seconds]
dravine_ is now known as dravine
bryanray has joined #ruby
<pu22l3r> updated it
<jhass> well, try using an RVM ruby
<jhass> currently you're using the system ruby
fedexo has joined #ruby
idefine has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
chibs has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Remote host closed the connection]
<pu22l3r> ok I will try that, thanks
bMalum has joined #ruby
jdawgaz has joined #ruby
dionysus69 has joined #ruby
mleung has quit [Quit: mleung]
idefine has quit [Read error: Connection reset by peer]
atomical has quit [Ping timeout: 255 seconds]
rcvalle has joined #ruby
karapetyan has quit [Remote host closed the connection]
idefine has joined #ruby
NeverDie has joined #ruby
karapetyan has joined #ruby
mistermocha has joined #ruby
gigetoo has joined #ruby
NeverDie has quit [Client Quit]
b3nt_pin has joined #ruby
nfk has joined #ruby
b3nt_pin is now known as Guest91242
idefine_ has joined #ruby
hxegon has joined #ruby
idefine has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
NeverDie has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Remote host closed the connection]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
low-prof1 has joined #ruby
Rollabunna has quit [Quit: Leaving...]
bruno-_ has quit [Read error: Connection reset by peer]
bruno-_ has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
<karapetyan> why this don't works
<karapetyan> hsh[i] #=> nil
<karapetyan> hsh[i].to_i += 1 #=> undefined method `to_i=' for nil:NilClass
karapetyan has quit [Remote host closed the connection]
riotjones has joined #ruby
drew2_ has joined #ruby
<zwdr> because you're calling a method on nil
gregf_ has quit [Read error: Connection reset by peer]
<zwdr> since hsh[i] isnt assigned
solocshaw has joined #ruby
mistermocha has joined #ruby
karapetyan has joined #ruby
hxegon has quit [Ping timeout: 265 seconds]
Guest91242 is now known as beagles
mag42c_ has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
iamvery_ has joined #ruby
dnomyar_ has joined #ruby
mag42c has quit [Ping timeout: 250 seconds]
mag42c_ is now known as mag42c
hippyphysicist has joined #ruby
tercenya_ has joined #ruby
segfalt__ has joined #ruby
<apeiros> karapetyan: to what should += assign?
djbkd_ has joined #ruby
Eiam has joined #ruby
<karapetyan> apeiros: hsh = {}
<zwdr> karapetyan: you're calling a method on hsh[i], which isnt set
astrobun_ has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<karapetyan> i know
borodin_ has joined #ruby
chinmay_dd_ has joined #ruby
<apeiros> karapetyan: a += b is strictly a = a + b
<karapetyan> and i want increment it += 1 anyway set it or not
cdg_ has joined #ruby
gregf_ has joined #ruby
bcavileer_ has joined #ruby
<apeiros> so hsh[i].to_i += 1 is hsh[i].to_i = hsh[i].to_i + 1
maletor has joined #ruby
hippyphysicist has quit [Read error: Connection reset by peer]
pmarreck_ has joined #ruby
<apeiros> hsh = Hash.new(0); hsh[i] += 1
<apeiros> set the default to 0
<apeiros> or whatever starting value "not set" should have for you. because "incrementing *not set* by one" makes no sense.
<karapetyan> apeiros: ok, is there another way than:? hsh[i].nil? ? hsh[i] = 1 : hsh[i] += 1
Spami_ has joined #ruby
nibbo has quit [Ping timeout: 244 seconds]
<hanmac> shevy yeah i know isnt that awesome? ;P
<karapetyan> apeiros: ok, thanks
Meow-J has quit [Ping timeout: 264 seconds]
hippyphysicist has joined #ruby
Killerkeksdose has joined #ruby
NeverDie has quit [Max SendQ exceeded]
roshanavand has quit [Remote host closed the connection]
ELCALOR_ has joined #ruby
ex0ns has joined #ruby
jokester has quit [Quit: reboot]
markfletcher has quit [Quit: Leaving]
Eising_ has joined #ruby
hippyphysicist has quit [Client Quit]
moeabdol has quit [Ping timeout: 240 seconds]
JStoker has quit [Killed (holmes.freenode.net (Nickname regained by services))]
mblagden_ has joined #ruby
roshanavand has joined #ruby
hippyphysicist has joined #ruby
spew_ has joined #ruby
JStoker has joined #ruby
badeball_ has joined #ruby
jokester has joined #ruby
spew_ has quit [Client Quit]
lagweezl1 has joined #ruby
jaredrhine_ has joined #ruby
yokel_ has joined #ruby
valeri_uF0 has joined #ruby
mh_laaks1 has joined #ruby
mistermocha has quit [Remote host closed the connection]
null__ has quit [Ping timeout: 264 seconds]
rdema_ has joined #ruby
Lorn_ has joined #ruby
jschoolcraft has joined #ruby
mistermocha has joined #ruby
rippa has quit [Ping timeout: 264 seconds]
hippyphysicist has quit [Read error: Connection reset by peer]
netwoodle has joined #ruby
Gnubie_ has joined #ruby
zenspider_ has joined #ruby
maletor has quit [Client Quit]
halfdan_ has joined #ruby
hippyphysicist has joined #ruby
htmldrum has joined #ruby
hippyphysicist has quit [Read error: Connection reset by peer]
lagweezl1 has quit [Changing host]
lagweezl1 has joined #ruby
eminencehc has joined #ruby
beagles has quit [Ping timeout: 264 seconds]
crankhar1er has joined #ruby
roshanavand has quit [Remote host closed the connection]
null__ has joined #ruby
alexblom has joined #ruby
beagles has joined #ruby
lagweezle has quit [Killed (leguin.freenode.net (Nickname regained by services))]
lagweezl1 is now known as lagweezle
maletor has joined #ruby
maletor has quit [Client Quit]
janno_ has joined #ruby
pocketprotector- has joined #ruby
maletor has joined #ruby
rvchangue_ has joined #ruby
heinrich5991_ has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
Diabolik has quit [Disconnected by services]
simplyianm has quit [Remote host closed the connection]
Diabolik has joined #ruby
Diabolik has quit [Excess Flood]
NightMonkey_ has joined #ruby
darkf_ has joined #ruby
simplyianm has joined #ruby
noodle has quit [Disconnected by services]
netwoodle is now known as noodle
Diabolik has joined #ruby
Diabolik has quit [Excess Flood]
Meow-J has joined #ruby
NeverDie has joined #ruby
redtomahawk has joined #ruby
_aeris_ has quit [Ping timeout: 265 seconds]
yosafbridge` has joined #ruby
Eiam has quit [Ping timeout: 272 seconds]
SirCmpwn_ has joined #ruby
Diabolik has joined #ruby
symm- has joined #ruby
tulak has quit [Remote host closed the connection]
_aeris_ has joined #ruby
polishdub_ has joined #ruby
retornam_ has joined #ruby
Oatmeal has quit [Ping timeout: 264 seconds]
Edward123 has joined #ruby
cjk101010 has quit [Ping timeout: 264 seconds]
snockerton has joined #ruby
greenbig- has joined #ruby
cbetta_ has joined #ruby
C0deMaver1ck has joined #ruby
[Butch] has joined #ruby
hfp__work has joined #ruby
darkf has quit [Ping timeout: 240 seconds]
C0deMaver1ck is now known as Guest8163
NeverDie has quit [Max SendQ exceeded]
lsmola has quit [Ping timeout: 246 seconds]
BSaboia has joined #ruby
rabbithole has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
constantinexvi has quit [Ping timeout: 264 seconds]
Trieste has quit [Ping timeout: 264 seconds]
idefine_ has quit [Remote host closed the connection]
casadei has joined #ruby
agentmeerkat has joined #ruby
redtomahawk has quit [Client Quit]
cjk101010 has joined #ruby
rflot_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
Trieste has joined #ruby
stamina has quit [Ping timeout: 252 seconds]
idefine has joined #ruby
im0b_ has joined #ruby
roshanavand has quit [Remote host closed the connection]
NeverDie has joined #ruby
pdoherty_ has joined #ruby
danzilio_ has joined #ruby
pdoherty has quit [*.net *.split]
wldcordeiro has quit [*.net *.split]
slawrence00 has quit [*.net *.split]
agit0 has quit [*.net *.split]
dnomyar has quit [*.net *.split]
segfalt has quit [*.net *.split]
spew has quit [*.net *.split]
polishdub has quit [*.net *.split]
cdg has quit [*.net *.split]
stan has quit [*.net *.split]
an0ma1y has quit [*.net *.split]
Spami has quit [*.net *.split]
tercenya has quit [*.net *.split]
Guest60692 has quit [*.net *.split]
Lorn has quit [*.net *.split]
Guest34991 has quit [*.net *.split]
greenbigfrog has quit [*.net *.split]
alexblom_ has quit [*.net *.split]
bcavileer has quit [*.net *.split]
CVTJNII has quit [*.net *.split]
A124 has quit [*.net *.split]
EdwardIII has quit [*.net *.split]
YIota has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
iamvery has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
yokel has quit [*.net *.split]
mahlon has quit [*.net *.split]
djbkd has quit [*.net *.split]
existensil has quit [*.net *.split]
Gnubie__ has quit [*.net *.split]
frode15243 has quit [*.net *.split]
im0b has quit [*.net *.split]
pocketprotector has quit [*.net *.split]
mh_laakso has quit [*.net *.split]
astrobunny has quit [*.net *.split]
rdema has quit [*.net *.split]
pmarreck has quit [*.net *.split]
rflot has quit [*.net *.split]
danzilio has quit [*.net *.split]
halfdan has quit [*.net *.split]
ELCALOR has quit [*.net *.split]
stevednd has quit [*.net *.split]
cbetta has quit [*.net *.split]
GnuYawk has quit [*.net *.split]
hfp_work has quit [*.net *.split]
retornam has quit [*.net *.split]
crankharder has quit [*.net *.split]
mblagden has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
zenspider has quit [*.net *.split]
Killerkeksdose_ has quit [*.net *.split]
ex0ns_ has quit [*.net *.split]
heinrich5991 has quit [*.net *.split]
Eising has quit [*.net *.split]
jaredrhine has quit [*.net *.split]
janno has quit [*.net *.split]
badeball has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
chinmay_dd has quit [*.net *.split]
rvchangue has quit [*.net *.split]
Edward123 is now known as EdwardIII
hfp__work is now known as hfp_work
heinrich5991_ is now known as heinrich5991
NightMonkey_ is now known as NightMonkey
valeri_uF0 is now known as valeri_ufo
yokel_ is now known as yokel
_aeris_ has quit [Ping timeout: 265 seconds]
rvchangue_ is now known as rvchangue
constantinexvi has joined #ruby
bmn has quit [Ping timeout: 264 seconds]
chinmay_dd_ is now known as chinmay_dd
existensil has joined #ruby
retornam_ is now known as retornam
beauby has quit [Ping timeout: 244 seconds]
stan has joined #ruby
baroquebobcat has joined #ruby
SCHAAP137 has joined #ruby
stevednd has joined #ruby
bcavileer_ is now known as bcavileer
_aeris_ has joined #ruby
CVTJNII has joined #ruby
<shevy> ack, mass nick renaming
bmn has joined #ruby
wldcordeiro has joined #ruby
danzilio_ is now known as danzilio
BSaboia has quit [Ping timeout: 246 seconds]
JDiPierro has quit [Remote host closed the connection]
bweston92 has quit [Read error: Connection reset by peer]
vigintas has quit [Ping timeout: 240 seconds]
cornerma1 has joined #ruby
halfdan_ is now known as halfdan
pmarreck_ is now known as pmarreck
nibbo has joined #ruby
an0ma1y has joined #ruby
vigintas has joined #ruby
rflot_ is now known as rflot
GnuYawk has joined #ruby
<gregf_> shevy is now known as _shevy_ *runs*
synthroid has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
im0b_ has quit []
BSaboia has joined #ruby
cbetta_ is now known as cbetta
towski_ has joined #ruby
cbetta has quit []
guest192123 has joined #ruby
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
TheNet has quit [Read error: Connection reset by peer]
daivyk has joined #ruby
MissionCritical has quit [Ping timeout: 246 seconds]
TheNet has joined #ruby
bruno-_ has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
towski__ has joined #ruby
towski_ has quit [Read error: Connection reset by peer]
frode15243 has joined #ruby
Oatmeal has joined #ruby
bruno- is now known as Guest98334
cbetta has joined #ruby
Peg-leg has quit [Quit: Leaving.]
tubuliferous has quit [Read error: Connection reset by peer]
tubuliferous has joined #ruby
tulak has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
bricker has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
arup_r has quit [Ping timeout: 255 seconds]
sanjayu has quit [Ping timeout: 260 seconds]
<jmonreal> I still havent been able to use optparse and to show me the arguments when none is passed
roshanavand has joined #ruby
tulak has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
tulak has joined #ruby
<shevy> this is why nobody likes optparse!
<bougyman> I love optparse
<bougyman> and use it often
Musashi007 has joined #ruby
<eam> I don't
mahlon has joined #ruby
<bougyman> I can do things with it slop doesn't allow
mistermocha has quit [Client Quit]
<bougyman> and I always avoid unecessary dependencies
bubbys has quit [Ping timeout: 252 seconds]
krzkrz has quit [Ping timeout: 272 seconds]
<darix> jmonreal: just curious ... what would be your expected behavior
rabbithole has joined #ruby
bubbys has joined #ruby
MissionCritical has joined #ruby
hxegon has joined #ruby
<jmonreal> when running my script without arguments, to show me that there are arguments missing
<jmonreal> and show me the help
roshanavand has quit [Ping timeout: 250 seconds]
<darix> uhm
ascarter has joined #ruby
tulak has quit [Ping timeout: 264 seconds]
atomical has joined #ruby
<eam> jmonreal: how would it know you require those arguments?
<darix> jmonreal: if opts.someopt.nil? ; $stderr.puts "missing param" ; exit 1 ; done
<shevy> but he asked for optparse
d5sx43 has joined #ruby
<shevy> it's trivial with ARGV alone :>
<darix> shevy: opts was my optparse instance
bubbys has quit [Ping timeout: 265 seconds]
<shevy> aha
atomical_ has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
bubbys has joined #ruby
p0wn3d__ has quit [Ping timeout: 240 seconds]
krzkrz has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d5sx43 has quit [Client Quit]
shadoi has joined #ruby
<jmonreal> darix: so I have to do if for each argument
<jmonreal> there's no module that has that by default?
<darix> jmonreal: atm there is no way to tell optparser "this is required"
syath has quit [Quit: WeeChat 1.2]
<jmonreal> darix: as for the OptionParser module doc, says that there is
<jmonreal> required
SleepySensei has quit [Ping timeout: 240 seconds]
sebstrax has quit [Quit: Connection closed for inactivity]
leafyba__ has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A124 has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jmonreal> but when running the example darix it does not seem to take the argument as required
chibs has joined #ruby
eminencehc has quit [Remote host closed the connection]
Wsewolod has joined #ruby
dhollinger has quit [Quit: WeeChat 1.2]
lukaszes has joined #ruby
leafybas_ has quit [Ping timeout: 265 seconds]
RobertBirnie has joined #ruby
borodin_ has quit [Ping timeout: 246 seconds]
subscope has joined #ruby
leafyba__ has quit [Ping timeout: 272 seconds]
cyle has joined #ruby
<cyle> test
eminencehc has joined #ruby
Guest53 has joined #ruby
<adaedra> Didn't work.
<cyle> :)
<cyle> Quick question: What's the point of CI servers? Just automated testing on pull requests?
<adaedra> Basically, automated tests on push, yes.
benlieb has joined #ruby
CalydOn has joined #ruby
<TheNet> does anyone know if ObjectSpace.each_object(ClassName) is sorted by object creation time?
<cyle> I guess it's just to keep people honest then? I always test locally before pushing.
<TheNet> cyle: for compiled languages it can also run builds
<adaedra> Keep track, test automatically, test on different platforms
djbkd has joined #ruby
<cyle> I should probably be doing this for my gems then
<cyle> thanks!
<adaedra> I do it to see if everything is okay in multiple ruby versions and platforms (jruby, rbx)
<TheNet> from my tests it seems like ObjectSpace.each_object is sorted by object creation time, but I can't find anything to verify this
goodcodeguy has joined #ruby
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
terminalrecluse has joined #ruby
benlieb has quit [Client Quit]
bruce_lee has quit [Read error: Connection reset by peer]
senayar has quit []
TheNet has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 246 seconds]
Balllkenende has quit [Remote host closed the connection]
mdih has quit [Ping timeout: 260 seconds]
subscope has quit [Quit: Textual IRC Client: www.textualapp.com]
chthon has quit [Ping timeout: 244 seconds]
Xeago has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
woods has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<woods> good morning
solocshaw has quit [Ping timeout: 246 seconds]
mattwildig has joined #ruby
musashi has joined #ruby
musashi has quit [Remote host closed the connection]
synthroid has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
terminal_ has joined #ruby
Pupp3tm4st3r has joined #ruby
mrtomme has quit [Ping timeout: 260 seconds]
krzkrz has quit [Ping timeout: 240 seconds]
mrtomme has joined #ruby
Bloomer has joined #ruby
weckl has quit [Remote host closed the connection]
terminalrecluse has quit [Ping timeout: 244 seconds]
terminal_ has quit [Client Quit]
shredding has quit [Ping timeout: 272 seconds]
bryanray has joined #ruby
tomphp has joined #ruby
Musashi007 has quit [Quit: Musashi007]
The_Phoenix has quit [Read error: Connection reset by peer]
chibs has quit [Quit: leaving]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
pocketprotector- is now known as pocketprotector
pocketprotector has quit [Changing host]
pocketprotector has joined #ruby
karapetyan has joined #ruby
devoldmx has joined #ruby
JDiPierro has joined #ruby
slawrence00 has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
Guest53 has joined #ruby
cfloare has quit [Ping timeout: 250 seconds]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigkevmcd has joined #ruby
cfloare has joined #ruby
d10n-work has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
beauby has joined #ruby
rgtk has quit []
codecop has joined #ruby
stan has quit [Ping timeout: 240 seconds]
avril14th has quit [Read error: Connection reset by peer]
zotherstupidguy has quit [Quit: WeeChat 1.3]
<shevy> yo woods
<shevy> don't go to close to the fire
antgel has quit [Ping timeout: 260 seconds]
<woods> shevy, i never go close to the fire
idefine has quit [Read error: Connection reset by peer]
simplyianm has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
darkf_ has quit [Quit: Leaving]
simplyianm has joined #ruby
RobertBirnie has quit [Ping timeout: 264 seconds]
idefine has joined #ruby
kalusn has quit [Remote host closed the connection]
RegulationD has joined #ruby
<slash_nick> everything you do in life, do withintent... except building fires. never build fire within tent.
SirCmpwn_ is now known as SirCmpwn
<woods> nice
mistermocha has joined #ruby
skweek has joined #ruby
mostlybadfly has joined #ruby
jessemcgilallen has joined #ruby
p0wn3d__ has joined #ruby
<shevy> hah
firstdayonthejob has joined #ruby
RobertBirnie has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
rdark has quit [Quit: leaving]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
Musashi007 has joined #ruby
bryanray has joined #ruby
ahegyi has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
pwnd_nsfw has joined #ruby
dn5 has joined #ruby
<woods> I am going through the Introduction to Algorithms 3rd Edition book, and trying to implement everything in ruby, it has been a lot of fun
tvw has quit [Remote host closed the connection]
<dn5> Could anyone give me a hint why does response.body gives strange undefined chars in terminal?
<dn5> Is it up to encoding?
zenguy_pc has joined #ruby
<slash_nick> woods: is that the "CLR" text book?
<slash_nick> (i think there's 4 authors now)
<slash_nick> "CLR_" text
Expl0s3 has joined #ruby
bryanray has quit [Ping timeout: 260 seconds]
<eam> so if this converts from a string to a struct: s = struct_class.new FFI::MemoryPointer.from_string buf
nettoweb has joined #ruby
<eam> is this the best way to do the reverse? s.to_ptr.read_string(struct_class.size)
baweaver has joined #ruby
<slash_nick> yup... CLR = Cormen Leiserson Rivest
<woods> That is what I figured it stood for
NeverDie has quit [Ping timeout: 240 seconds]
<slash_nick> woods: that's on googles list of things to read before an interview
<woods> Why do suppose I am reading it? :)
build22 has quit []
<slash_nick> woods: good luck! :)
<woods> slash_nick, thanks!
NeverDie has joined #ruby
<woods> I feel like I didn't grasp many of those concepts as well as I should have in school, so now that I have more time, I'm going back and reviewing.
TheNet has joined #ruby
jackjackdripper has joined #ruby
Expl0s3 has quit [Ping timeout: 246 seconds]
<slash_nick> woods: are you also reading programming pearls & the one on programming interviews as well?
jwaldrip has quit [Quit: Be back later ...]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
Yzguy has joined #ruby
dtordable has joined #ruby
dtordable has joined #ruby
beauby has quit [Ping timeout: 252 seconds]
TheNet has quit [Remote host closed the connection]
jwaldrip has joined #ruby
jwaldrip_ has joined #ruby
jwaldrip_ has quit [Remote host closed the connection]
diegoaguilar has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
momomomomo has joined #ruby
shmilan has joined #ruby
dtordable has quit [Client Quit]
yqt has quit [Ping timeout: 272 seconds]
netule has joined #ruby
peteykun has quit [Ping timeout: 260 seconds]
beauby has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jwaldrip has quit [Ping timeout: 240 seconds]
tylerm has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
Spleeze has joined #ruby
<woods> slash_nick, I don't have programming pearls, but a co-worker let me borrow "Cracking the Coding Interview"
<tylerm> howdy - i'm looking at allinoneruby and tar2rubyscript but not having much luck and these seem like old projects.. is there a newer approach you can recommend
sdfgsdfg has quit [Read error: Connection reset by peer]
CalydOn has quit [Ping timeout: 240 seconds]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tylerm> i want to deploy my app and complete ruby env to another linux machine with them needing to install anything.
fantazo has joined #ruby
kerunaru has joined #ruby
<tylerm> going to give http://phusion.github.io/traveling-ruby/ a try.. but seems a lot of work ;)
Musashi007 has quit [Quit: Musashi007]
NeverDie has quit [Quit: http://radiux.io/]
karapetyan has quit [Remote host closed the connection]
dtordable has joined #ruby
karapetyan has joined #ruby
<slash_nick> woods: i was thinking of "programming interviews exposed"
lemur has joined #ruby
dtordable has quit [Client Quit]
dtordable has joined #ruby
dstarh has joined #ruby
Guest53 has joined #ruby
mattwild_ has joined #ruby
zacstewart has quit [Remote host closed the connection]
vigintas1 has joined #ruby
Log1x has quit [Ping timeout: 272 seconds]
humd1ng3r has quit [Ping timeout: 272 seconds]
vigintas has quit [Remote host closed the connection]
vigintas1 is now known as vigintas
TheNet has joined #ruby
tenderlove has joined #ruby
tenderlo_ has quit [Read error: Connection reset by peer]
sevin has quit [Ping timeout: 272 seconds]
diegoaguilar has joined #ruby
zacstewart has joined #ruby
hackeron has quit [Ping timeout: 272 seconds]
awk has quit [Ping timeout: 272 seconds]
Prira has quit [Read error: Connection reset by peer]
awk has joined #ruby
hackeron has joined #ruby
bigkevmcd has quit [Ping timeout: 272 seconds]
mattwildig has quit [Ping timeout: 272 seconds]
sevin has joined #ruby
awk is now known as Guest16071
kirun has joined #ruby
dopamean_ has quit [Read error: Connection reset by peer]
Log1x has joined #ruby
humd1ng3r has joined #ruby
cyle has quit [Ping timeout: 252 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
lemur has quit [Ping timeout: 265 seconds]
Prira has joined #ruby
karapetyan has joined #ruby
User458764 has joined #ruby
tulak has joined #ruby
cndiv has joined #ruby
rakm has joined #ruby
dopamean_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
blaxter has quit [Quit: foo]
teclator has quit [Ping timeout: 255 seconds]
User458764 has quit [Remote host closed the connection]
Pupp3tm4st3r has quit [Remote host closed the connection]
User458764 has joined #ruby
yxhuvud has quit [Remote host closed the connection]
startupality has joined #ruby
Mon_Ouie has joined #ruby
pandaant has quit [Remote host closed the connection]
idefine has joined #ruby
yxhuvud has joined #ruby
roshanavand has joined #ruby
sdothum has joined #ruby
startupality has quit [Ping timeout: 255 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
opensource_ninja has joined #ruby
baweaver has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 240 seconds]
th0m_ has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
araujo has quit [Ping timeout: 244 seconds]
jpfuentes2 has joined #ruby
JDiPierro has joined #ruby
tulak has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 244 seconds]
momomomomo has quit [Quit: momomomomo]
tulak has joined #ruby
diegoaguilar has quit [Ping timeout: 264 seconds]
tomaz_b has joined #ruby
Wsewolod has quit [Quit: Leaving]
simplyianm has quit [Remote host closed the connection]
simplyia_ has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
tulak has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 252 seconds]
edj has joined #ruby
freerobby1 has quit [Quit: Leaving.]
<edj> can someone explain .each do?
<TheNet> how can I get the last instance of a class that was created?
<edj> or .each?
<edj> i dont understand what its doing and why
<TheNet> edj: takes a block and runs it for each item in a hash or array
dn5 has quit [Quit: Lost terminal]
<TheNet> so [1, 2, 3].each { |item| puts item }
<edj> TheNet:thanks man
<TheNet> puts 1 2 and 3
freerobby has joined #ruby
<TheNet> if you call .each on a hash each key/value pair is passed to the block, so { a_key: 'a value }.each { |key, value| puts value }
<TheNet> but you could really just google all this
<shevy> he is a webchattster so he won't google :)
_blizzy_ has joined #ruby
tylerm has quit [Ping timeout: 246 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
<edj> I defiantly understand .each now. Thank you so much
roshanavand has joined #ruby
borodin_ has joined #ruby
dtordable has quit [Remote host closed the connection]
spider-mario has joined #ruby
<borodin_> how do I remove \" from a string in ruby. i.e. "This\"string" becomes "Thisstring"
<borodin_> tried a lot of things, nothing works
kadoppe has quit [Ping timeout: 244 seconds]
<TheNet> borodin_: .gsub('\', '') ?
diegoaguilar has joined #ruby
<TheNet> or actually .gsub('\\', '') probably
<havenwood> borodin_: A backslash or all the backslashes?
djbkd has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
<TTilus> borodin_: how about http://pastie.org/10532655
kadoppe has joined #ruby
roshanavand has quit [Remote host closed the connection]
Helheim has quit [Ping timeout: 246 seconds]
<apeiros> um
<apeiros> "foo\"string" does not contain a single backslash
borodin__ has joined #ruby
<TTilus> borodin_: \" is a quoted double quote, i.e. what apeiros said
blackmesa has quit [Ping timeout: 260 seconds]
<borodin__> got kicked off
<apeiros> s/quoted/escaped7
<TTilus> oh
<borodin__> TTilus I missed what you guys said
<TTilus> apeiros: stand corrected
<borodin__> the gsub('\\','') doesn't work
<apeiros> 20:22 apeiros: um
<apeiros> 20:22 apeiros: "foo\"string" does not contain a single backslash
<apeiros> borodin__: ^
idefine has quit [Read error: Connection reset by peer]
<TTilus> borodin_: how about http://pastie.org/10532655
borodin_ has quit [Ping timeout: 246 seconds]
<apeiros> >> puts "hello \" world"
<ruboto> apeiros # => hello " world ...check link for more (https://eval.in/463850)
dtordable has joined #ruby
<borodin__> ok I see thanks
fedexo has quit [Ping timeout: 240 seconds]
QORRiE has joined #ruby
lxsameer has joined #ruby
yqt has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> >> 'hello " world' # alternative way to show this :)
<ruboto> apeiros # => "hello \" world" (https://eval.in/463851)
erbesharat has quit [Remote host closed the connection]
idefine has joined #ruby
axl_ has quit [Quit: axl_]
djbkd has joined #ruby
infamos has quit [Ping timeout: 255 seconds]
Guest98334 has quit [Ping timeout: 240 seconds]
mattwild_ has quit [Remote host closed the connection]
agent_white has joined #ruby
moeabdol has joined #ruby
eminencehc has quit [Remote host closed the connection]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
to_json has quit [Quit: Leaving.]
Musashi007 has joined #ruby
eminencehc has joined #ruby
to_json has joined #ruby
to_json has joined #ruby
idefine has quit [Read error: Connection reset by peer]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
Guest53 has joined #ruby
symbol has joined #ruby
cndiv has quit [Quit: Be back later ...]
symbol has quit [Client Quit]
z4ph0d has quit [Ping timeout: 240 seconds]
z4ph0d has joined #ruby
roxtrong_ has joined #ruby
<tomaz_b> hi... i am newbie in ruby ... i have to create XML, based on .xsd files. I came across soap4r and cmd tool xsd2ruby.rb. Now I got huge file full of classes and everything. But somehow ... I am not sure that I know how to build XML (actualy create one)... after instantiating some of those classes
stamina has joined #ruby
<tomaz_b> can someone please help/suggest me how to proceed
NeverDie has joined #ruby
cdg_ has quit [Remote host closed the connection]
idefine has quit [Read error: Connection reset by peer]
eminencehc has quit [Remote host closed the connection]
lemur has joined #ruby
<tomaz_b> anybody?
Musashi007 has quit [Quit: Musashi007]
<TheNet> tomaz_b: you might want https://github.com/jimweirich/builder
baweaver has quit [Remote host closed the connection]
idefine has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
Bloomer has quit [Remote host closed the connection]
syath has joined #ruby
|ifei5g00d has joined #ruby
tw1sted has quit [Remote host closed the connection]
baweaver has joined #ruby
dhollinger has joined #ruby
Eiam has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
nchambers has joined #ruby
j5s7 has joined #ruby
diegoaguilar has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Remote host closed the connection]
dcoy has joined #ruby
j5s7 has quit [Client Quit]
monq has joined #ruby
j5s7 has joined #ruby
idefine has quit [Read error: Connection reset by peer]
j5s7 has quit [Client Quit]
rippa has joined #ruby
idefine has joined #ruby
xfbs has joined #ruby
millerti has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
bruno- is now known as Guest57263
mistermocha has quit [Remote host closed the connection]
j5s7 has joined #ruby
j5s7 has quit [Client Quit]
monq has quit [Remote host closed the connection]
rabbithole has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
j5s7 has joined #ruby
rodfersou has quit [Quit: leaving]
northfurr has joined #ruby
j5s7 has quit [Client Quit]
j5s7 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
stamina has quit [Ping timeout: 250 seconds]
j5s7 has quit [Client Quit]
User458764 has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
nettoweb has joined #ruby
aufi has joined #ruby
j5s7 has joined #ruby
babblebre has joined #ruby
yfeldblum has joined #ruby
northfurr has quit [Client Quit]
j5s7 has quit [Client Quit]
VeryBewitching has joined #ruby
baweaver has quit [Remote host closed the connection]
tulak has joined #ruby
devoldmx has joined #ruby
diegoaguilar has joined #ruby
idefine has quit [Read error: Connection reset by peer]
idefine_ has joined #ruby
jobewan has joined #ruby
vigintas has quit [Ping timeout: 255 seconds]
momomomomo has quit [Client Quit]
User458764 has joined #ruby
cyle has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
luriv has joined #ruby
EllisTAA has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
vigintas has joined #ruby
tw1sted has joined #ruby
aufi has quit [Quit: Konversation terminated!]
<TheNet> is this the best way to set a class-wide variable that independent for each inheritance? https://gist.github.com/net/f13fe33096d3aaa90fac
<Sou|cutter> TheNet: I might take a look at ActiveSupport's class_attribute
mercerist has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
<apeiros> TheNet: class ivar. you can initialize it in self.inherited.
<apeiros> my pattern is usually to have a private self.initialize_class and call that via send from self.inherited.
karapetyan has quit [Remote host closed the connection]
<apeiros> I dislike ||= in accessors
idefine_ has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
jorb has quit [Ping timeout: 264 seconds]
hectorsq has joined #ruby
elaptics is now known as elaptics`away
jorb has joined #ruby
idefine has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
jdawgaz has joined #ruby
ldnunes has quit [Quit: Leaving]
<woods> slash_nick, sorry for the delayed response, i was out of the office, ill have to check that one out as well
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pocketprotector is now known as notworking
griffindy has joined #ruby
griffindy has quit [Client Quit]
griffindy has joined #ruby
griffindy has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
kstuart has quit [Read error: Connection reset by peer]
Coldblackice has joined #ruby
Musashi007 has quit [Quit: Musashi007]
blackmesa has joined #ruby
maletor has quit [Ping timeout: 260 seconds]
idefine has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 246 seconds]
kstuart has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
idefine has joined #ruby
tw1sted has quit [Changing host]
tw1sted has joined #ruby
neanderslob has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
skweek has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Ping timeout: 272 seconds]
QORRiE has quit [Quit: Leaving]
Guest57263 has quit [Read error: Connection reset by peer]
bruno-_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
Oatmeal has quit [Ping timeout: 240 seconds]
notworking is now known as pocketprotector
jessemcgilallen has quit [Quit: jessemcgilallen]
diegoaguilar has quit [Remote host closed the connection]
arthurix_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
idefine has joined #ruby
mistermocha has joined #ruby
arthurix has quit [Ping timeout: 260 seconds]
prestorium has quit [Quit: Leaving]
fantazo has quit [Ping timeout: 244 seconds]
Aswebb_ has quit [Remote host closed the connection]
Guest53 has joined #ruby
eminencehc has joined #ruby
step1step22 has joined #ruby
xfbs has quit []
mistermocha has quit [Ping timeout: 255 seconds]
zotherstupidguy has joined #ruby
woods has quit [Ping timeout: 272 seconds]
ahegyi has quit [Ping timeout: 260 seconds]
vdamewood has joined #ruby
zenguy_pc has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trosborn has joined #ruby
skade has joined #ruby
Oatmeal has joined #ruby
Ox0dea has joined #ruby
baweaver has joined #ruby
zotherstupidguy has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 240 seconds]
ibouvousaime has joined #ruby
startupality has quit [Quit: startupality]
stannard has quit [Remote host closed the connection]
stamina has joined #ruby
<Ox0dea> So, you can include "Rakefile" in a gem's extension list to have your default Rake task executed post-install; this is pretty awesome, but RubyGems is mucking about with the output streams, so printing is annoying. :<
<Ox0dea> https://eval.in/463874 only prints "--0--", indicating that I apparently have to repurpose stdin for output, and I don't wanna do that.
stannard_ has joined #ruby
treehug88 has quit [Ping timeout: 246 seconds]
<Ox0dea> Please adivse.
<Ox0dea> *advise
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
zylogz80 has quit [Ping timeout: 260 seconds]
zacstewart has quit [Remote host closed the connection]
DEA7TH has joined #ruby
idefine has quit [Read error: Connection reset by peer]
platzhirsch has left #ruby [#ruby]
shellie_ has quit [Quit: .]
rabbithole has joined #ruby
jxs_ has joined #ruby
idefine has joined #ruby
decoponio has quit [Quit: Leaving...]
woods has joined #ruby
mistermocha has joined #ruby
ruurd has joined #ruby
TheNet has quit [Remote host closed the connection]
tomphp has joined #ruby
TheNet has joined #ruby
TheNet has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
bruno-_ has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
bruno- is now known as Guest65882
moeabdol has joined #ruby
duckpupp1 has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
zotherstupidguy has joined #ruby
lemur has quit [Remote host closed the connection]
woods has quit [Ping timeout: 244 seconds]
marcosantoniocar has joined #ruby
al2o3-cr has joined #ruby
to_json has quit [Quit: Leaving.]
treehug88 has joined #ruby
dopamean_ has quit [Read error: Connection reset by peer]
infamos has joined #ruby
hxegon has quit [Ping timeout: 252 seconds]
p0wn3d__ has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
mozzarella has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
idefine has quit [Read error: Connection reset by peer]
arup_r has quit [Quit: Leaving]
arthurix has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
segfalt has joined #ruby
segfalt__ has quit [Read error: Connection reset by peer]
infamos has quit [Ping timeout: 260 seconds]
bricker has joined #ruby
infamos has joined #ruby
zotherstupidguy has quit [Ping timeout: 255 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: http://radiux.io/]
idefine has quit [Read error: Connection reset by peer]
idefine has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
arthurix_ has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
NeverDie has joined #ruby
idefine has quit [Read error: Connection reset by peer]
idefine has joined #ruby
kirun has quit [Quit: Client exiting]
momomomomo has joined #ruby
codecop has quit [Remote host closed the connection]
Wsewolod has joined #ruby
petricore has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
InternetFriend has joined #ruby
hxegon has joined #ruby
eminencehc has quit [Remote host closed the connection]
acke has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
NeverDie has quit [Quit: http://radiux.io/]
acke has quit [Remote host closed the connection]
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
acke has joined #ruby
Coldblackice has joined #ruby
beauby has joined #ruby
ruurd has joined #ruby
trosborn has quit [Quit: trosborn]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
idefine has quit [Remote host closed the connection]
blackmesa has joined #ruby
roshanavand has joined #ruby
User458764 has quit [Remote host closed the connection]
step1step22 has quit [Quit: Leaving]
User458764 has joined #ruby
niftylettuce has joined #ruby
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has joined #ruby
TheHodge has joined #ruby
RegulationD has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Ping timeout: 246 seconds]
ruurd has quit [Read error: Connection reset by peer]
roshanavand has quit [Ping timeout: 272 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Ping timeout: 260 seconds]
craysiii has joined #ruby
ruurd has joined #ruby
hanmac has joined #ruby
nettoweb has joined #ruby
casadei_ has joined #ruby
acke has quit [Remote host closed the connection]
Balllkenende has joined #ruby
trosborn has quit [Quit: trosborn]
casadei has quit [Ping timeout: 250 seconds]
jschoolcraft has quit [Quit: peace]
acke has joined #ruby
CalydOn has joined #ruby
<shevy> Ox0dea
<shevy> you are losing against hanmac
ruurd has quit [Read error: Connection reset by peer]
syath has quit [Quit: WeeChat 1.2]
<hanmac> shevy i am in the ruby changelog, beat that shevy ;P
tomaz_b has quit [Ping timeout: 260 seconds]
<shevy> Ox0dea also I found this commit funny :D https://github.com/ruby/ruby/blob/trunk/ChangeLog#L38
<Ox0dea> shevy: If that's what you meant, I got there first?
<shevy> don't try Ox0dea! nobu prefers hanmac!!
ruurd has joined #ruby
<Ox0dea> This is all very weird.
User4587_ has joined #ruby
<shevy> I think they like hanmac's english style
<shevy> it's very unique
<shevy> I guess the ruby changelog is much funnier than the python changelog
User458764 has quit [Ping timeout: 272 seconds]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has joined #ruby
acke has quit [Ping timeout: 264 seconds]
<Ox0dea> I bet if I fixed #11655, nobu would merge it.
<Ox0dea> But I don't even know where to begin. :<
<shevy> hah
<shevy> luckily I don't know C so I could not fix anything
<Ox0dea> He's just gonna let it die too. :(
Oatmeal has quit [Ping timeout: 255 seconds]
<shevy> we need matz back!
klaas has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
edj_ has joined #ruby
<Ox0dea> He went on a little spree just the other day; I missed my opportunity to update #11286 while he was looking for things to chime in on.
<edj_> hey guys
<edj_> so im a little confused going through the code academy course on ruby
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
<edj_> it says i need to make this "books.sort { |firstBook, secondBook| firstBook <=> secondBook }" sort them in decending order
<Ox0dea> edj_: Do you understand the <=> operator?
<edj_> is there a way to do that without making it an if else?
<edj_> no i do not
<Ox0dea> edj_: Yes, it's extremely easy.
_stu_ has quit [Quit: _stu_]
<Ox0dea> &ri Comparable#<=> @ edj_
<`derpy> No results
<Ox0dea> Derp.
goodcodeguy has joined #ruby
<Ox0dea> edj_: Anyway, it's searchable name is the "spaceship" operator; look into it.
jmo has joined #ruby
<edj_> Ox0dea:thanks
jmo has quit [Remote host closed the connection]
<CalydOn> Hello, I'm writing a Ruby code and I have some trouble with user input . When I use gets.chomp command I can't move the cursor backward terminal (with the left arrow key) , the terminal print [ [C ^ . I wonder if someone Could help me . Thanks
<Ox0dea> >> [1, 2, 3].sort { |a, b| b <=> a } # edj_
<ruboto> Ox0dea # => [3, 2, 1] (https://eval.in/463953)
<Ox0dea> But really, stop to get a hold on how <=> works.
ruurd has quit [Quit: ZZZzzz…]
<edj_> OOOOOOH lmao
<havenwood> Ox0dea: I do like 11286. It matches my expectation and seems quite nice.
<edj_> dude
<edj_> thats so easy
<Ox0dea> CalydOn: Your Ruby was compiled without readline support.
<edj_> wow
<Ox0dea> havenwood: I know, right?!
sshbio has joined #ruby
|ifei5g00d has quit [Remote host closed the connection]
powerful_pdev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> CalydOn you can use require 'readline'; Readline.readline(' > Prompt here', true)
chipotle has quit [Quit: cheerio]
simplyia_ has quit [Remote host closed the connection]
<slash_nick> shevy: whoa i'm there too!
<havenwood> Ox0dea: Are there any downsides? Nothing is using the single argument arity and I'd not suspect it's a common monkey patch.
skade has joined #ruby
segfalt has quit [Ping timeout: 250 seconds]
donske has joined #ruby
<Ox0dea> havenwood: None that come to mind, and I've thought about it hard-ish.
segfalt has joined #ruby
<shevy> slash_nick lol
<shevy> "rename tailing to trailing"
<slash_nick> :)
<shevy> is this a pun or something
<slash_nick> substantive, i know
<shevy> "put the cat on the mat"
<shevy> "take the dog out of the fog"
<shevy> aaaah ok
<shevy> typo fix
<slash_nick> i thought i posted this in offtopic
zacstewart has joined #ruby
<slash_nick> i'm lost.
diegoaguilar has joined #ruby
<shevy> CalydOn what did you do just now, your nick appears wrong
skweek has quit [Ping timeout: 240 seconds]
<CalydOn> nothing i just use notice command
<shevy> ok
ta has quit [Remote host closed the connection]
<shevy> that scared the squirrel out of me
<Ox0dea> CalydOn: You shouldn't.
<shevy> CalydOn readline support is available from the official ruby tarball such as ftp://ftp.ruby-lang.org/pub/ruby/ruby-2.2.3.tar.xz - it is in that directory in ext/readline/
<shevy> if you compiled from source, the makefile will try to see if you have readline + ncurses available, then the bindings will be compiled; distributions may have a readline package so you could try to use that
beauby has quit [Ping timeout: 260 seconds]
<CalydOn> why i shouldn't (i m new on irc, I made an mistake ?)
<Ox0dea> CalydOn: Sorry, I've inadvertently led you on a goose chase. Your Ruby was almost certainly compiled with readline, you just have to explicitly request it as shevy is explaining.
nfk has joined #ruby
<shevy> it depends how you obtained your ruby... perhaps you are on windows... not sure if they have readline support available by default, I assume no
<shevy> *depends on
skade has quit [Quit: Computer has gone to sleep.]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
segfalt has quit [Ping timeout: 240 seconds]
skcin7 has joined #ruby
<havenwood> Ox0dea: Yup, I like.
Oatmeal has joined #ruby
ruurd has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
<CalydOn> Thanks shevy and Ox0dea it works !
opensource_ninja has quit [Quit: opensource_ninja]
|ifei5g00d has joined #ruby
opensource_ninja has joined #ruby
<Ox0dea> havenwood: Merci pour le +1.
<shevy> \o/
opensource_ninja has quit [Client Quit]
vigintas1 has joined #ruby
trosborn has joined #ruby
CalydOn has quit [Quit: Leaving]
grumpyhippo is now known as sadhippo
simplyianm has joined #ruby
JDiPierro has quit [Remote host closed the connection]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has quit [Read error: Connection reset by peer]
vigintas has quit [Ping timeout: 264 seconds]
vigintas1 is now known as vigintas
<havenwood> Ox0dea: avec plaisir
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> Ship it!
devoldmx has joined #ruby
radgeRayden_ has joined #ruby
ruurd has joined #ruby
mattwildig has joined #ruby
ekinmur has joined #ruby
Oatmeal has quit [Excess Flood]
atomical has quit [Ping timeout: 255 seconds]
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
last_staff has quit [Quit: last_staff]
karapetyan has quit [Remote host closed the connection]
cyle has quit [Ping timeout: 252 seconds]
Icey has quit [Quit: icey]
devoldmx has quit [Ping timeout: 264 seconds]
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
riotjones has quit [Read error: Connection reset by peer]
riotjone_ has joined #ruby
leafybas_ has joined #ruby
infamos has quit [Ping timeout: 260 seconds]
danzilio has quit [Ping timeout: 240 seconds]
TomPeed has joined #ruby
d10n-work has quit [Ping timeout: 240 seconds]
cschneid has quit [Ping timeout: 240 seconds]
johnhamelink has quit [Ping timeout: 240 seconds]
donske has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay_dd has quit [Ping timeout: 240 seconds]
epochwolf has quit [Ping timeout: 240 seconds]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
guest192123 has quit [Ping timeout: 240 seconds]
Guest8163 has quit [Ping timeout: 240 seconds]
Diabolik has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
rehat has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
Ebok has quit [Ping timeout: 240 seconds]
thesheff17 has quit [Ping timeout: 240 seconds]
catbusters has quit [Ping timeout: 240 seconds]
tris has quit [Ping timeout: 240 seconds]
d10n-work has joined #ruby
dhollinger has quit [Quit: WeeChat 1.2]
dhollinger has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
zacstewart has quit [Remote host closed the connection]
thesheff17 has joined #ruby
zacstewart has joined #ruby
craysiii has quit [Quit: Leaving.]
Ropeney has joined #ruby
Ebok has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
infamos has joined #ruby
Musashi007 has joined #ruby
C0deMaver1ck has joined #ruby
Diabolik has joined #ruby
C0deMaver1ck is now known as Guest35761
chinmay_dd has joined #ruby
tris has joined #ruby
catbusters has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: Leaving]
sepp2k has quit [Quit: Leaving.]
TheNet has joined #ruby
Oatmeal has joined #ruby
dogetime has joined #ruby
guest192123 has joined #ruby
hectorsq has joined #ruby
danzilio has joined #ruby
Balllkenende has quit []
bMalum has joined #ruby
_blizzy_ has quit [Read error: Network is unreachable]
epochwolf has joined #ruby
lukaszes has joined #ruby
_blizzy_ has joined #ruby
Mia has quit [Ping timeout: 246 seconds]
Guest53 has joined #ruby
Aasha has joined #ruby
ESpiney has quit [Quit: Leaving]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BLuEGoD has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
momomomomo has quit [Quit: momomomomo]
DarkBushido has quit [Ping timeout: 246 seconds]
Wsewolod has quit [Ping timeout: 246 seconds]
cschneid has joined #ruby
DarkBushido has joined #ruby
zenguy_pc has quit [Ping timeout: 244 seconds]
duckpupp1 has quit [Ping timeout: 260 seconds]
kerunaru has joined #ruby
maxz has joined #ruby
vF3hNGxc47h8 has joined #ruby
sadhippo is now known as tinyhippo
BLuEGoD has joined #ruby
Oatmeal has quit [Ping timeout: 264 seconds]
sankaber has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
d10n-work has quit [Quit: Connection closed for inactivity]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spider-mario has quit [Read error: Connection reset by peer]
borodin__ has quit [Ping timeout: 246 seconds]
pwnd_nsfw has joined #ruby
nateberkopec has quit [Quit: Leaving...]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jackneill has quit [Ping timeout: 252 seconds]
polishdub_ has quit [Quit: Leaving]
dogetime has left #ruby ["Leaving"]
dhollinger has quit [Quit: WeeChat 1.2]
GeissT has joined #ruby
hxegon has quit [Ping timeout: 260 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
Azure has quit [Quit: Oops.]
rbennacer has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
teclator has joined #ruby
ekinmur has joined #ruby
<tsunamie> hihi
jessemcgilallen has joined #ruby
ekinmur has quit [Client Quit]
ekinmur has joined #ruby
<tsunamie> is anyone able to help me with the following guide? I did code academy now I am doing online stuff to try and get more experience
<tsunamie> http://ruby.bastardsbook.com/chapters/web-crawling/ is the guide I am following
<tsunamie> however I am trying to understand the difference between Mechanize and Nokogiri
htmldrum has joined #ruby
<tsunamie> how do I find out? IS there like a javadocs eqiviliant?
zenguy_pc has joined #ruby
shmilan has joined #ruby
yfeldblum has joined #ruby
maxz has quit [Ping timeout: 246 seconds]
ruurd has quit [Read error: Connection reset by peer]
hectorsq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EllisTAA has joined #ruby
sshbio has quit [Ping timeout: 250 seconds]
maxz has joined #ruby
DarkBushido has quit [Ping timeout: 246 seconds]
htmldrum has quit [Ping timeout: 240 seconds]
Oatmeal has joined #ruby
User4587_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
htmldrum has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
griffindy has quit [Read error: Connection reset by peer]
momomomomo has quit [Client Quit]
lemur has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
<Ox0dea> tsunamie: Parsing XML and driving a browser are very different things.
moeabdol has joined #ruby
<tsunamie> sp Mechanize is for parsing XML? As I can see from nokriki I am taking in HTML as a massive string and this gem seems to have the ability to parse over it
dcoy has quit [Quit: Textual IRC Client: www.textualapp.com]
symm- has quit [Ping timeout: 260 seconds]
ruurd has joined #ruby
<manveru> mechanize automates browsing, it clicks links, fills forms, etc
<Ox0dea> tsunamie: Then why would you assume Mechanize was the XML parser in my comparison?
<manveru> nokogiri parses and modifies xml and html using xpath, css, SAX, and other stuff
<tsunamie> I see, Ox0dea sorry I have only seen a few docs on MEchanize. I have read more on Nokogiri
edj has quit [Ping timeout: 246 seconds]
<tsunamie> manveru, I nsee
TheNet has quit [Remote host closed the connection]
kedare has quit [Ping timeout: 272 seconds]
<tsunamie> looks like I need to read more
dnomyar has joined #ruby
DarkBushido has joined #ruby
<manveru> just try them, they are both fun :)
edj_ has quit [Ping timeout: 246 seconds]
<manveru> well, relatively speaking anyway
lemur has quit [Ping timeout: 265 seconds]
moeabdol has quit [Ping timeout: 272 seconds]
ruby-lang498 has joined #ruby
dnomyar_ has quit [Ping timeout: 246 seconds]
vF3hNGxc47h8 has quit [Ping timeout: 250 seconds]
nibbo has quit [Ping timeout: 244 seconds]
<tsunamie> manveru, I feel stiupid
<tsunamie> manveru, the codeacademy stuff is so much simpler than these guides. like for example.
exadeci has joined #ruby
<ruboto> tsunamie, as I told you already, please use https://gist.github.com
jinie has quit [Ping timeout: 240 seconds]
rob_ has left #ruby [#ruby]
A124 has quit [Ping timeout: 268 seconds]
A124 has joined #ruby
A124 has quit [Changing host]
A124 has joined #ruby
djbkd has quit [Remote host closed the connection]
<tsunamie> I get it's looping throught rows. and that it looping throught rows. How ever I am currently assuming that rows is a string
luriv has quit [Ping timeout: 260 seconds]
jinie has joined #ruby
dnomyar has quit [Ping timeout: 272 seconds]
synthroid has quit []
ruurd has quit [Read error: Connection reset by peer]
<tsunamie> and that each value is having css selector run throught them all. However I am getting stuck on the row.css("td a").map{ |a|
<tsunamie> a['href'] if a['href'].match("/wiki/")
<tsunamie> }.compact.uniq
<tsunamie> section
<tsunamie> manveru, I am trying to understand lines 2-4
johnhamelink has joined #ruby
<manveru> well, what don't you understand about it?
<manveru> what map is? what 'td a' selects? what an href is?
<tsunamie> manveru, I think a better question is. IS there an eqiviliant to javadoc's for ruby. Where I can lookup methodes roles, actions and so on for specific objects?
<tsunamie> manveru, I think teaching me how to fish is the best way to go
Azure has joined #ruby
<manveru> ruby-doc usually
<Ox0dea> tsunamie: In your defense, that code isn't great.
<ruby-lang498> im trying to open a txt file, pass all data into a new array and then match the array value with hash keys and im having some trouble...
jessemcgilallen has joined #ruby
<ruby-lang498> some help would be appreciated...
<manveru> https://rubygems.org/gems/nokogiri rubygems almost always has a link to the docs
<ruby-lang498> warning: ive not included all code for simplification purposes, so instance variable ARE in a class...
<Ox0dea> tsunamie: Well, never mind; I realize they do want the href attributes themselves, not just the links for which the attribute matches.
jessemcgilallen has quit [Client Quit]
ruurd has joined #ruby
<manveru> oh nice, a savegame?
nibbo has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tsunamie> manveru, Ox0dea thanks
<manveru> ruby-lang498: what's the format of that txt file?
<manveru> is it just one line per item?
Mia has quit [Ping timeout: 255 seconds]
<ruby-lang498> yes
<ruby-lang498> manveru,
<ruby-lang498> or item per line that is.
stannard_ has quit [Remote host closed the connection]
<tsunamie> gaaa so I am really confused now
stannard has joined #ruby
djbkd has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
<tsunamie> http://www.nokogiri.org/tutorials/parsing_an_html_xml_document.html so what is the objects that gets created from doc = Nokogiri::HTML(open("http://www.threescompany.com/"))
<tsunamie> ?
<tsunamie> I understood it to be a string
Mia has joined #ruby
yfeldblum has quit [Remote host closed the connection]
eminencehc has joined #ruby
yfeldblum has joined #ruby
<tsunamie> so no, humm so doc or whatever I parse using Nokogiri::HTML is a Nokogiri documents
lkba has joined #ruby
diegoviola has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
TomyWork has quit [Ping timeout: 260 seconds]
<manveru> ruby-lang498: most important is probably the strip, since otherwise your item lines have newlines at the end
<ruby-lang498> thanks
<ruby-lang498> im unframiliar with strip
htmldrum has quit [Quit: Lost terminal]
<manveru> welcome to the strip club
<ruby-lang498> lol
<ruby-lang498> i can google it but got a brief explanation of its use?
<manveru> it removes whitespace at the start and end of a string
<Ox0dea> &ri String#strip @ ruby-lang498
Guest93971 has quit [Quit: Connection closed for inactivity]
jessemcgilallen has joined #ruby
<ruby-lang498> ahh
<ruby-lang498> easy enough
* adaedra should look at fixing the bot.
<manveru> " foo\n ".strip == "foo"
bMalum has quit [Quit: bMalum]
TomyWork has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
Voker57 has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
kimegede has joined #ruby
northfurr has joined #ruby
Spami has joined #ruby
inteq has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 260 seconds]
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ibouvousaime has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<tsunamie> okay starting to understand that it's it's own object and not a string. http://www.nokogiri.org/tutorials/modifying_an_html_xml_document.html
Oatmeal has quit [Ping timeout: 246 seconds]
kerunaru has joined #ruby
stamina has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
davedev24 has joined #ruby
<tsunamie> manveru, Ox0dea do you know how the logic for this works? row.css("td a").map?
simplyianm has quit [Remote host closed the connection]
phutchins has joined #ruby
<tsunamie> so I get that row is an Nokogiri::HTML object
<tsunamie> and that css is simply a method of that object that allows your the parse for items with that identification in the xml
kerunaru has quit [Client Quit]
riotjones has joined #ruby
<Ox0dea> tsunamie: Just so; #map is just a method on Enumerable that transforms the collection however you specify in the body of the block.
_stu_ has joined #ruby
<tsunamie> however I don't understand where they got the map method from as I can't see it in the nologiri documents. So I assuming it's the method thats apart of an array
<Ox0dea> tsunamie: #map is a core method provided by the Enumerable module.
radgeRayden_ has quit [Ping timeout: 255 seconds]
<Ox0dea> >> [1,2,3].map { |n| n + 1 } # tsunamie
<ruboto> Ox0dea # => [2, 3, 4] (https://eval.in/463958)
<Ox0dea> It's available on anything which responds to #each.
radgeRayden has joined #ruby
<Ox0dea> It's arguably the most used and useful method in all of Ruby.
northfurr has quit [Quit: northfurr]
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
<tsunamie> is that what I should be reading?
<Ox0dea> tsunamie: Yes, Enumerable is <3.
<ruby-lang498> manveru, why is it attaching a "/n" too the strings it add?
riotjone_ has quit [Ping timeout: 260 seconds]
radgeRayden_ has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
radgeRayden has quit [Ping timeout: 244 seconds]
<tsunamie> Ox0dea, so how do I know what objects I can run each on? As I understand it Nokogiri is it's own object right? Which is a gem that structures the HTML into a searchable object
donske has joined #ruby
CloCkWeRX1 has joined #ruby
<tsunamie> so how did it know each method could be used on it?
CloCkWeRX has quit [Quit: Leaving.]
<tsunamie> or how do I know what methodes can be run on a Nokogiri object? Since each is not in the docs for it
<ericwood> tsunamie: don't node lists include enumerable? if so you can use any method in the enumerable module (in the ruby docs)
<tsunamie> Ox0dea, I feel like I am missing something. A fundermental understanding. Like how actaully nokogiri is just a set of arrays/hashs
<apeiros> tsunamie: don't forget the ancestry
simplyianm has joined #ruby
Ox0dea has quit [Disconnected by services]
<apeiros> classes inherit from other classes and include modules.
<ericwood> apeiros: respect your ancestors
Ox0dea has joined #ruby
<ericwood> "Includes: Enumerable, Searchable"
jdawgaz has joined #ruby
maikowblue has quit [Ping timeout: 240 seconds]
<apeiros> tsunamie: and you can always ask ruby from where something comes and what methods an object supports (except methods via method_missing)
<apeiros> see Object#respond_to? and #methods
<apeiros> and Method#owner
<Ox0dea> s/from where/whence/
<Ox0dea> apeiros: Why do you hate beautiful language?
<ericwood> I could have sworn apeiros and ruby were bffs
<apeiros> Ox0dea: to upset you
<ericwood> but, I haven't been active here in ages
<Ox0dea> apeiros: I knew it!
dave1984 has joined #ruby
<apeiros> Ox0dea: we all do, teehee
<apeiros> ericwood: Ox0dea refers to english, not ruby ;-)
<tsunamie> wait okay apeiros sorry to make you spell it out for me. How do I check or find out?
NeverDie has joined #ruby
haylon has joined #ruby
zacstewart has quit []
<Ox0dea> >> Array.instance_method(:map).owner # tsunamie
<ruboto> Ox0dea # => Array (https://eval.in/463959)
<apeiros> >> {}.method(:find).owner
<Ox0dea> Dammit.
<ruboto> apeiros # => Enumerable (https://eval.in/463960)
eminencehc has quit [Remote host closed the connection]
<apeiros> -> the method "find" on that hash came from Enumerable
mordocai has quit [Read error: Connection reset by peer]
<Ox0dea> tsunamie: Array overrides #map for performance reasons, but many of its other methods come directly from Enumerable.
ruby-lang498 has quit [Quit: Page closed]
Oatmeal has joined #ruby
<apeiros> Ox0dea: yeah, I checked first in pry since a couple are overridden in core :)
<Ox0dea> Sneaky devil.
simplyianm has quit [Ping timeout: 255 seconds]
<Ox0dea> tsunamie: https://eval.in/463961
<dave1984> I'm trying to create a collection so I can group my "projects". I made a folder called _projects/, added the collection and output: true in my _config.yml, and tried looping through it with {% for project in site.projects %} <h1>{{ project.title }}</h1> {% endfor %}. But it's not finding anything. Did I miss a step?
<Ox0dea> Simply by defining your own #each (which should yield all your thing's elements in turn) and including Enumerable, you get >50 methods "for free".
kalusn has joined #ruby
<tsunamie> apeiros, so you saying if I run {}.method(:find).owner where inside the {} is the method it will show me the original owner
<Ox0dea> tsunamie: No, {} is a Hash literal.
<Ox0dea> >> {}.class
<ruboto> Ox0dea # => Hash (https://eval.in/463962)
<Ox0dea> >> Hash.include? Enumerable # tsunamie
<ruboto> Ox0dea # => true (https://eval.in/463963)
<apeiros> {} is an example of an object you want to query
<zenspider_> >> {}.method(:method)
<ruboto> zenspider_ # => #<Method: Hash(Kernel)#method> (https://eval.in/463964)
<apeiros> you do my_obj.method(method_i_want_to_know_where_it_comes_from).owner
<Ox0dea> >> require 'prime'; 1.prime? # zenspider_
<ruboto> Ox0dea # => false (https://eval.in/463965)
shazaum_ has joined #ruby
ruurd has joined #ruby
<apeiros> dave1984: you missed the step of telling us what the heck you're talking about
<dave1984> apeiros: lol my bad, did I ever
<dave1984> jekyll, though I found a irc chan for it
<zenspider_> Ox0dea: welcome to math?
to_json has quit [Quit: Leaving.]
<Ox0dea> zenspider_: Cicadas.
<tsunamie> okay trying to absorb all of this, please be gental
baweaver has joined #ruby
<zenspider_> dave1984: I think that exact code would work fine in zenweb :)
jobewan has quit [Ping timeout: 250 seconds]
<apeiros> beware, the spider lures in the zenweb
<zenspider_> Ox0dea: that's nice
<dave1984> zenspider_: are you plugging something? I have no idea what that is
teclator has quit [Ping timeout: 244 seconds]
eminencehc has joined #ruby
<apeiros> oh, lurk, not lure
<tsunamie> okay does anyone know how I can run this on a command line?
<tsunamie> Array.instance_method(:map).owner
opensource_ninja has joined #ruby
lacrymol1gy has joined #ruby
<zenspider_> tsunamie: either `ruby -e 'code'` or fire up irb and do it in there
<Ox0dea> zenspider_: "Mind of a Hacker" was a nice listen, but 1 is composite, so you're a bad cicada.
axsuul has joined #ruby
<Ox0dea> s/composite/not prime/
nibbo has quit [Ping timeout: 244 seconds]
kies^ has quit [Remote host closed the connection]
Rickmasta has joined #ruby
nateberkopec has joined #ruby
simplyianm has joined #ruby
<lacrymol1gy> I've got a list with hashes, and I want to map it into a list of a certain field: [{foo: 1, bar: 2}, {foo: 3, bar: 4}].pluck(:foo) => [1, 3]
Oatmeal has quit [Max SendQ exceeded]
<lacrymol1gy> is there an idiom for this?
<zenspider_> again: that's nice.
<tsunamie> zenspider_, irb? I have cygwin and I just ran ruby -e "Array.instance_method(:map).owner"
<tsunamie> and it gave me nothing back
<zenspider_> tsunamie: you didn't ask it to print anytihng
<zenspider_> puts or p in front
<zenspider_> irb should work for you
<zenspider_> if it doesn't, something is wrong
tmtwd has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
axsuul_ has joined #ruby
MiracleBlue has quit [Ping timeout: 264 seconds]
Iacobus has quit [Ping timeout: 264 seconds]
<tsunamie> okay I think I am going to far for tonight
<tsunamie> my brain is about to explode
<zenspider_> lacrymol1gy: we wouldn't have a method on array specific to accessing sub-hashes. Instead, use #map: hashes.map { |h| h[:key] }
prasselpikachu has quit [Ping timeout: 264 seconds]
<zenspider_> >> [].method(:map)
<ruboto> zenspider_ # => #<Method: Array#map> (https://eval.in/463966)
<zenspider_> >> [].method(:find)
<ruboto> zenspider_ # => #<Method: Array(Enumerable)#find> (https://eval.in/463967)
<zenspider_> see the difference?
rbennacer has joined #ruby
<zenspider_> map is specifically on Array, where find is actually in Enumerable
prasselpikachu has joined #ruby
Iacobus has joined #ruby
ujjain- has quit [Ping timeout: 264 seconds]
MiracleBlue has joined #ruby
axsuul has quit [Ping timeout: 252 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
nopolitica has joined #ruby
EasyCo has quit [Ping timeout: 264 seconds]
soloone has quit [Ping timeout: 264 seconds]
ruurd has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
soloone has joined #ruby
EasyCo has joined #ruby
Trieste has quit [Ping timeout: 264 seconds]
A124 has quit [*.net *.split]
idefine has joined #ruby
eminencehc has quit [Remote host closed the connection]
Iacobus has quit [Ping timeout: 264 seconds]
Iacobus has joined #ruby
_aeris_ has quit [Ping timeout: 265 seconds]
jobewan has joined #ruby
diegok has quit [Ping timeout: 264 seconds]
diegok has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
_aeris_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
eminencehc has joined #ruby
<tsunamie> humm... okay I am not saying I understand fully. However I think something went in
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arthurix_ has joined #ruby
Trieste has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
haylon has quit [Quit: Leaving]
postmodern has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
atomical has joined #ruby
chipotle has joined #ruby
Guest65882 has quit [Ping timeout: 272 seconds]
<Ox0dea> tsunamie: You are experiencing the pain and confusion of attempting to run without legs.
bruno- has joined #ruby
<Ox0dea> Learn Ruby first.
<tsunamie> Ox0dea, how, I did codeacademy
bruno- is now known as Guest53152
mistermocha has quit [Remote host closed the connection]
<tsunamie> what would you sugest I do?
arthurix has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
prasselpikachu has quit [Ping timeout: 264 seconds]
<tsunamie> I give you an example of stuff not covered in that online course. I have looked at this guide. http://ruby.bastardsbook.com/chapters/html-parsing/, I have looked at these tutorials for http://www.nokogiri.org/tutorials/modifying_an_html_xml_document.html and I have read some of the tabs on http://www.rubydoc.info/github/sparklemotion/nokogiri
TomyWork has joined #ruby
<tsunamie> I can not find any where in these docs where css came from and what it does
dave1984 has quit [Quit: Bye!]
infamos has quit [Ping timeout: 244 seconds]
<tsunamie> the closest I come is a non official giude http://ruby.bastardsbook.com/chapters/html-parsing/ which explains how to use it
<netule> tsunamie, .css is a method that allows you to use CSS selectors to search for elements
prasselpikachu has joined #ruby
<tsunamie> netule, Hi, I get that sorry. What I am trying to give myself is the tools to find that info
<tsunamie> in some meaning full way
<Ox0dea> tsunamie: Codecademy never shows you #map?
trosborn has quit [Quit: trosborn]
idefine has quit [Read error: Connection reset by peer]
idefine_ has joined #ruby
<tsunamie> Ox0dea, it gave me examples of map and how to use it. However that was never my problem. My problem was or the limited stuff that course covered are the absolut basics
krzkrz has joined #ruby
<tsunamie> it instantiated that each object has it's own set of methodes unique to processing the object itself
mistermocha has quit [Read error: Connection reset by peer]
<tsunamie> It never talked about how to read docs or search for which methods were avaiable to an object or how to check hieachy
mistermocha has joined #ruby
<tsunamie> it just assumed you knew all the methodes avaiable to manipulating something. IT never gavce me the fishing rod and said. by the way. Here's how you work out which methodes can be used on the object you just created
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tsunamie> every single example just walked throught like this. Here is a string, ow you can use CAPUP bla bla bla all these methdos
snockerton has quit [Quit: Leaving.]
<tsunamie> sorry ranted a bit
_aeris_ has quit [Ping timeout: 265 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<netule> that's what references are for, though. You can hardly expect them to teach you all of the interfaces for all of the classes in Ruby
<Ox0dea> netule: Codecademy is not a "reference"; it advertises that it teaches the student how to use Ruby.