apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwardloveall has quit [Quit: Leaving.]
attamusc has joined #ruby
kobain has quit [Ping timeout: 244 seconds]
edwardloveall has joined #ruby
edwardloveall has left #ruby [#ruby]
Spami has quit [Quit: This computer has gone to sleep]
reactor has quit [Remote host closed the connection]
rylev has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
wsmoak has quit [Ping timeout: 244 seconds]
agent_white has quit [Read error: Connection reset by peer]
Dude007 has joined #ruby
wsmoak has joined #ruby
wsmoak has quit [Changing host]
wsmoak has joined #ruby
agent_white has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rylev has quit [Ping timeout: 265 seconds]
thsig has quit [Remote host closed the connection]
fabrice31 has joined #ruby
pasokk has joined #ruby
i8igmac has quit [Ping timeout: 244 seconds]
rylev has joined #ruby
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has quit [Ping timeout: 272 seconds]
kyoshero has quit [Ping timeout: 265 seconds]
kobain has joined #ruby
Dude007 has quit [Remote host closed the connection]
kyoshero has joined #ruby
Dude007 has joined #ruby
Dude007 has quit [Remote host closed the connection]
pasokk is now known as Pasok
oso96_2000 is now known as oso|away
Spami has joined #ruby
Dude007 has joined #ruby
dain has joined #ruby
jdj_dk has quit [Ping timeout: 244 seconds]
beilabs_________ has joined #ruby
<Earthnail> is there a way to get a temporary file name without creating the file itself? Tempfile.new always creates the file...
Earthnail has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
rylev has quit []
Earthnail has joined #ruby
<Earthnail> sry, got disconnected.
<Earthnail> is there a way to get a temporary file name without creating the file itself? Tempfile.new always creates the file...
mjuszczak has quit []
tjbiddle has quit [Quit: tjbiddle]
charliesome has quit [Quit: zzz]
startupality has quit [Quit: startupality]
<lbrf> Earthnail: what's the problem in create the file?! O_o
<Earthnail> lbrf: calling an external program (ffmpeg) to populate the file for me; ffmpeg complains about the file being there (yes, there is a -y option to make ffmpeg shut up but its ugly).
Narzew has quit [Quit: Wychodzi]
Bilge- has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
Bilge- has quit [Client Quit]
x1337807x has joined #ruby
dain has quit [Quit: dain]
Bilge- has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
rkalfane has quit [Client Quit]
<lbrf> Earthnail: you can't change it to call ffmpeg only when file is not temporary?
mary5030 has joined #ruby
Bilge- is now known as Bilge
<shevy> Earthnail I don't think there is a thing like a temporary file that is not a file, unless you handle it all in RAM
<rpag> Earthnail, you could generate a unique filename with SecureRandom and pass that to ffmpeg without much fuss
<Earthnail> rpag: yes, that would work. I was just wondering if something already existed in the standard libraries. Node's tempfile package has it, I think Python has it too.
DLSteve has quit [Quit: Leaving]
Tranquility has quit [Quit: Connection closed for inactivity]
jonr22 has joined #ruby
sevenseacat has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
<SHyx0rmZ> Earthnail, Dir::Tmpname.create looks good to me
<SHyx0rmZ> require 'tmpdir'
adriancb has quit [Remote host closed the connection]
x1337807x has quit [Read error: Connection reset by peer]
<Earthnail> SHyx0rmZ: awesome, thanks
oo_ has joined #ruby
x1337807x has joined #ruby
jdj_dk has joined #ruby
adriancb has joined #ruby
charliesome has joined #ruby
mloveless has quit [Remote host closed the connection]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
nkumari has joined #ruby
dorei has quit []
kirun has quit [Quit: Client exiting]
timonv_ has joined #ruby
adriancb has quit [Ping timeout: 244 seconds]
zcreative has joined #ruby
edwardloveall has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
x1337807x has quit [Read error: Connection reset by peer]
lemur has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
nkumari has quit [Remote host closed the connection]
x1337807x has joined #ruby
St_Marx has quit [Quit: WeeChat 1.0.1]
davedev24_ has joined #ruby
konsolebox has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
vieq has quit [Ping timeout: 240 seconds]
weeb1e has quit [Ping timeout: 258 seconds]
vieq has joined #ruby
bkolden has joined #ruby
weeb1e has joined #ruby
t0rc has joined #ruby
t0rc has left #ruby [#ruby]
St_Marx has joined #ruby
St_Marx has quit [Client Quit]
robustus has quit [Ping timeout: 250 seconds]
nkumari has joined #ruby
Takle has quit [Remote host closed the connection]
MattB2 has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has joined #ruby
shvelo has joined #ruby
St_Marx has joined #ruby
<shvelo> Anyone use chunky_png?
razieliyo has quit [Quit: Saliendo]
<P1RATEZ> cambells.jpg
armyriad has joined #ruby
MattB2 has quit [Ping timeout: 264 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
rshetty has joined #ruby
lkba has joined #ruby
P1RATEZ has quit [Quit: Bill Gates 1976-2014]
AndChat- has quit [Ping timeout: 265 seconds]
<redjack1964> Why i get a NameError exception when i create my object like that : my_session = Session.new("a string")
<redjack1964> class Session
<redjack1964> 31 attr_accessor :name
<redjack1964> 32
<redjack1964> 33 def initialize(name)
<redjack1964> 34 @name = name
<redjack1964> what's wrong?
adriancb has joined #ruby
<sevenseacat> depends on the full error
<benzrf> redjack1964: where is the namerror
<sevenseacat> also, use gist for code chunks, dont paste them here.
<redjack1964> i precise Class Session is set in another file (training.rb)
<redjack1964> training.rb:35:in `initialize': undefined local variable or method ` ' for #<Session:0x000000011e4870 @name="a string"> (NameError)
<sevenseacat> so whats on line 35
<redjack1964> 35 @exercises = []
<sevenseacat> yeah thats not valid syntax
<redjack1964> just an empty array
<sevenseacat> thats whats wrong :P
<apeiros> method ` ' # you probably have an unprintable character there which shouldn't be there
<apeiros> probably a non-breaking space.
<sevenseacat> did you mean ||= ?
<apeiros> also as sevenseacat already said - gist the code
<sevenseacat> or just @exercises = [] ?
<redjack1964> i think apeiros has right
tkuchiki has joined #ruby
<redjack1964> i use vim
<havenwood> redjack1964: we demand code!
<apeiros> giving it piecemeal is somewhat anoying
<apeiros> +n
<redjack1964> i removed this line and type it again, and right now, i don't have this error anymore
<KLVTZ> process of elimination...
<KLVTZ> redjack1964: btw, vim has a great plugin called gist-vim. Once you set it up, you just have to call :Gist and it will post to your personal account with an available link.
jonr2219 has joined #ruby
<KLVTZ> makes the process of sharing much easier
<redjack1964> good to know :-)
marr has quit []
cashnguns has joined #ruby
rshetty has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
jonr2219 has quit [Ping timeout: 272 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
boombadaroomba has joined #ruby
zz_jrhorn424 is now known as jrhorn424
renier has joined #ruby
boombadaroomba has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
Dude007 has quit [Client Quit]
NoNMaDDeN has quit [Remote host closed the connection]
reinaldob has joined #ruby
davasaurous has joined #ruby
reinaldob has quit [Ping timeout: 255 seconds]
hamakn has quit [Remote host closed the connection]
Earthnail has quit []
x1337807x has quit [Read error: Connection reset by peer]
arescorpio has joined #ruby
kiyote23 has joined #ruby
vyorkin has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
jonr22 has quit [Remote host closed the connection]
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
Areessell has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
jonr22 has quit [Remote host closed the connection]
chris613 has quit [Ping timeout: 265 seconds]
hamakn has joined #ruby
sdwrage has joined #ruby
fabrice31 has joined #ruby
echooo has joined #ruby
wsmoak has quit [Ping timeout: 250 seconds]
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
jonr22 has joined #ruby
mloveless has joined #ruby
<ericwood> if any of you nerds are in austin, I'm giving this talk tomorrow: http://www.meetup.com/austinrb/events/218735924/
fabrice31 has quit [Ping timeout: 240 seconds]
<pontiki> never gonna happen
<ericwood> false
<pontiki> i am never going to be in austin
<ericwood> you will be
<godd2> Roomby
<pontiki> never
<pontiki> ever
<ericwood> sucks 2 be u
<pontiki> not at all
<pontiki> it sucks to be in texas
<pontiki> alla time
<ericwood> it has its faults but I'm fond of it
<ericwood> mostly just Austin, though
psy has quit [Ping timeout: 265 seconds]
chu has joined #ruby
attamusc has quit [Quit: Connection closed for inactivity]
kireevco has joined #ruby
psy has joined #ruby
Takle has joined #ruby
freerobby has quit [Quit: Leaving.]
mjuszczak has joined #ruby
zcreative has quit [Quit: (null)]
Takle has quit [Ping timeout: 255 seconds]
jimbach has joined #ruby
nkumari has quit [Remote host closed the connection]
_ixti_ has quit [Ping timeout: 258 seconds]
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
KnownSyntax has quit [Quit: Connection closed for inactivity]
kish has quit [Ping timeout: 255 seconds]
kiyote23 has quit [Remote host closed the connection]
Areessell has joined #ruby
geggam has quit [Ping timeout: 265 seconds]
echooo1 has joined #ruby
renderful has joined #ruby
echooo has quit [Ping timeout: 252 seconds]
kireevco has quit [Quit: Leaving.]
jimbach has quit [Remote host closed the connection]
echooo has joined #ruby
mary5030 has joined #ruby
edwardloveall has quit [Quit: Leaving.]
renderful has quit [Ping timeout: 250 seconds]
edwardloveall has joined #ruby
rshetty has quit [Remote host closed the connection]
echooo1 has quit [Ping timeout: 264 seconds]
davedev24_ has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 252 seconds]
Abhijit has joined #ruby
_ixti_ has joined #ruby
_ixti_ has quit [Client Quit]
nkumari has joined #ruby
tjbiddle has joined #ruby
kiyote23 has joined #ruby
NoNMaDDeN has joined #ruby
lucyinthesky has joined #ruby
mary5030 has joined #ruby
lucyinthesky has quit [Quit: Quando não tinha nada, eu quis,]
timonv_ has joined #ruby
kiyote23 has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
nkumari has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
timonv_ has quit [Ping timeout: 264 seconds]
armyriad has joined #ruby
KLVTZ has quit [Ping timeout: 272 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
adriancb has joined #ruby
kireevco has joined #ruby
mikepack has joined #ruby
lemur has quit [Remote host closed the connection]
davedev24_ has joined #ruby
lemur has joined #ruby
echooo1 has joined #ruby
moritzs has quit [Ping timeout: 256 seconds]
tyll_ has joined #ruby
reactor has joined #ruby
echooo has quit [Ping timeout: 265 seconds]
tyll has quit [Ping timeout: 252 seconds]
armyriad has quit [Ping timeout: 264 seconds]
armyriad has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
centrx has joined #ruby
arup_r has joined #ruby
centrx has quit [Client Quit]
SCHAAP137 has quit [Quit: Leaving]
ohaibbq has quit [Ping timeout: 255 seconds]
davasaurous has quit [Remote host closed the connection]
reactor has quit [Remote host closed the connection]
apoorvparijat has joined #ruby
jimbach has joined #ruby
karmatr0n has joined #ruby
jimbach has quit [Remote host closed the connection]
jonr2219 has joined #ruby
jonr22 has quit [Remote host closed the connection]
iaj has quit [Ping timeout: 244 seconds]
iaj has joined #ruby
apeiros_ has quit [Remote host closed the connection]
davasaurous has joined #ruby
byprdct has joined #ruby
apeiros_ has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
renier has quit [Ping timeout: 240 seconds]
echooo has joined #ruby
shvelo has quit [Ping timeout: 265 seconds]
sski has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
jonr2219 has quit [Ping timeout: 255 seconds]
echooo1 has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
apeiros_ has quit [Ping timeout: 272 seconds]
kenndel has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
narcan has joined #ruby
x1337807x has joined #ruby
triple_b has joined #ruby
henesy has quit [Ping timeout: 258 seconds]
renier has joined #ruby
rshetty has quit [Remote host closed the connection]
edwardloveall has quit [Quit: Leaving.]
radic has quit [Ping timeout: 240 seconds]
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
lemur_ has joined #ruby
Ninjatarq has quit [Ping timeout: 246 seconds]
radic has joined #ruby
henesy has joined #ruby
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco1 has joined #ruby
diegoviola has quit [Remote host closed the connection]
kireevco has quit [Read error: Connection reset by peer]
karmatr0n has quit [Remote host closed the connection]
<benzrf> >> def x(n); puts n; end; x + 1
<eval-in__> benzrf => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/228769)
<benzrf> >> def x(n); puts n; end; x+1
<eval-in__> benzrf => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/228770)
<benzrf> >> def x(n); puts n; end; x+1
<eval-in__> benzrf => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/228771)
<benzrf> >> def x(n); puts n; end; x +1
<eval-in__> benzrf => 1 ... (https://eval.in/228772)
kapil__ has joined #ruby
<benzrf> shit
<redjack1964> how to make a ruby application linguistic?
bmichelsen has joined #ruby
<sevenseacat> redjack1964: thats a bit vague.
<redjack1964> i would like to translate my program in several languages
<redjack1964> like "en", "fr", and so on
kireevco1 has quit [Read error: Connection reset by peer]
<redjack1964> is there a way to do it?
kireevco has joined #ruby
<redjack1964> i know there is a tr() function in Qt for example that allows you to do that.
tokik has joined #ruby
<redjack1964> but i don't know if there is a similar method in Ruby to manage translation
<sevenseacat> well youre comparing a framework and a language
<sevenseacat> most frameworks have support for i18n
<chu> There's the `treat' framework for natural language processing, though I have no experience with it.
kireevco1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
<redjack1964> chu, interesting thanks.
vinleod has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
<benzrf> redjack1964: you dont want nlp
<benzrf> redjack1964: you want i18n
<benzrf> different things >:[
rshetty has joined #ruby
<sevenseacat> yep.
ajaiswal has joined #ruby
fabrice31 has joined #ruby
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
<redjack1964> benzrf, nice yes it's more that what i looked for :-)
<redjack1964> thank you
klmlfl has joined #ruby
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<benzrf> np
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
D9 has joined #ruby
tokik has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
i8igmac has joined #ruby
oo_ has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
Vile` has quit [Ping timeout: 256 seconds]
nkumari has quit [Remote host closed the connection]
kireevco1 has joined #ruby
Takle has joined #ruby
davedev24_ has quit [Ping timeout: 264 seconds]
kireevco has quit [Read error: Connection reset by peer]
kireevco1 has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
kireevco has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
klmlfl has quit [Remote host closed the connection]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
kireevco1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 256 seconds]
iamninja has quit [Quit: Textual IRC Client: www.textualapp.com]
braincrash has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
kiki_lamb has quit [Quit: leaving]
kiki_lamb has joined #ruby
{xenomorph} has quit [Ping timeout: 272 seconds]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
kireevco1 has joined #ruby
jimmyy has quit [Ping timeout: 265 seconds]
Vile` has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
ned__ has joined #ruby
kireevco has joined #ruby
Avahey has joined #ruby
linojon has quit [Quit: linojon]
goshdarnyou is now known as GOSHDARNYOU
Xeago has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
adriancb has quit [Remote host closed the connection]
ned__ has quit [Remote host closed the connection]
adriancb has joined #ruby
kyb3r_ has joined #ruby
krz has joined #ruby
uber_hulk has joined #ruby
NoNMaDDeN has quit [Quit: Leaving...]
diego_ar_ has joined #ruby
diego_ar_ has quit [Client Quit]
diego_ar[AFK] has quit [Ping timeout: 240 seconds]
lucywerther has joined #ruby
adriancb has quit [Ping timeout: 264 seconds]
lucywerther has left #ruby ["Leaving"]
iamninja has quit [Quit: Textual IRC Client: www.textualapp.com]
ned__ has joined #ruby
apeiros_ has joined #ruby
anaeem1 has joined #ruby
iamninja has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
apeiros_ has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Client Quit]
Dopagod has joined #ruby
<perturbation> is there anything similar to python's %s string substitution in regex?
x1337807x has joined #ruby
timonv_ has joined #ruby
<perturbation> (i.e., /%s/ % (foo())? # match on regular expression formed by what foo() returns?)
klmlfl has joined #ruby
jrhorn424 is now known as zz_jrhorn424
jdj_dk has quit [Ping timeout: 264 seconds]
<ericwood> perturbation: you want to programmatically form a regex?
<ericwood> if that's the case, you can build them up as a string and compile them to a regex
<lbrf> perturbation: "foo".match(/(?<word>foo)/)
<perturbation> I'm porting a pygments lexer
<perturbation> everything else was pretty one-to-one
<lbrf> perturbation: => #<MatchData "foo" word:"foo">
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<perturbation> but something like r'(%s)\b' % funcname(keywords) is what I was wondering how to replicate
timonv_ has quit [Ping timeout: 265 seconds]
<ericwood> Regexp.new("#{funcname(keywords)}\b")
<ericwood> ?????
<perturbation> thanks lbrf, ericwood
<perturbation> I'll give that a shot
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<ericwood> I'm having troube reading the original so that may not do what you want (it's just creating a regexp based on the result of the function)
kyote has joined #ruby
kyote has quit [Changing host]
davasaurous has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
nerdy has joined #ruby
rshetty has joined #ruby
diego_ar has joined #ruby
davasaurous has joined #ruby
oo_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lbrf> I misunderstood :-)
Nameo0 has joined #ruby
<Nameo0> Hello. =)
<Nameo0> I was wondering if there is a way to scrap a website for the nth b element?
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami has quit [Quit: This computer has gone to sleep]
<Nameo0> I have tried searching google, but I am not getting anywhere.
<ericwood> Nameo0: check out nokogiri for all of your HTML parsing needs!
mjuszczak has quit []
<ericwood> Nameo0: use something like open-uri or net/http for fetching the page, then parsing it with Nokogiri
<Nameo0> okay, thank you. I will look into it. =)
kireevco1 has joined #ruby
<ericwood> perturbation: oh btw this will also work! %r[(#{funcname(keywords)})\b]
kireevco has quit [Read error: Connection reset by peer]
<ericwood> forgot about that
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
apoorvparijat has quit [Remote host closed the connection]
<perturbation> cool! thanks
<totimkopf> ericwood: I'm in tx too, woooo!
kireevco1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
<ericwood> totimkopf: Austin?
<totimkopf> ericwood: I wish
mjuszczak has joined #ruby
<ericwood> DFW?
<totimkopf> worse
<ericwood> :o
<totimkopf> houston area
<ericwood> hmmm actually that bodes better
<ericwood> but I'm kinda not fond of Dallas
<totimkopf> than DFW?
<totimkopf> ok
<miah> i used to live in The Woodlands
tkuchiki has quit [Read error: Connection reset by peer]
<totimkopf> miah: what, aren't you in Turkey?
<miah> can't say I miss Houston
tkuchiki has joined #ruby
<miah> i am in San Francisco? though currently in Portland
<totimkopf> miah: ah, I thought you lived in Turkey
<totimkopf> my bad
<miah> different miah?
mjuszczak has quit [Client Quit]
<ericwood> almost ended up in portland, shame it never worked out :(
<totimkopf> probably, yeah :)
<miah> i am just here for the week for a work thing
<miah> then i will return home to the bay where everything is insane but its not as cold as portland
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
Pasok has quit [Ping timeout: 255 seconds]
jimmyy has joined #ruby
<ericwood> there's a chance of my moving to NYC in the next year
<ericwood> idk if I'm super into that but we'll see
<miah> i want to move somewhere less expensive; but its hard until my kids are a little older
<miah> really tired of $2500/mo rent
D9 has quit [Quit: Leaving]
<ericwood> come to Austin
<miah> nah; been there enough.
<miah> i have some friends there in the game development community
<miah> used to drive there when i lived in The Woodlands
koderok has joined #ruby
babykosh has joined #ruby
Takle has joined #ruby
jdj_dk has joined #ruby
<miah> when you're me you basically avoid overly red states.
mjuszczak has joined #ruby
<ericwood> typically I'd agree but I make an exception for austin
koderok has left #ruby [#ruby]
<sevenseacat> only $2.5k rent? aww
jimbach has joined #ruby
oo_ has quit [Remote host closed the connection]
miah_ has joined #ruby
miah has quit [Quit: Lost terminal]
miah_ has quit [Client Quit]
miah has joined #ruby
<miah> hrm. wtf. my connection just go byebye.
<miah> hotel wifi. go figures.
<ericwood> you should be out enjoying craft beer
<ericwood> I wanna go back to portland soon :(
<miah> so ya; austin. best place to live if i am going to live in Texas; but its still in Texas.
<miah> i don't really drink
<miah> i prefer to smoke my drug
rshetty has quit [Remote host closed the connection]
<havenwood> LA is nice but not much better for rent
oo_ has joined #ruby
rshetty has joined #ruby
<miah> LA is hectic and i feel like the social scene there is too concerned with appearances
Takle has quit [Ping timeout: 245 seconds]
<havenwood> mm
<ericwood> miah: if you enjoy smoking Austin is not a bad place to be, although it's no colorado ;)
diego_ar has quit [Remote host closed the connection]
<miah> i live in california already though
freerobby has joined #ruby
<miah> i mean; i grow my own plants even =)
<havenwood> i enjoyed visiting san diego
<miah> i went there once for a rave in 2000
jimbach has quit [Ping timeout: 258 seconds]
<miah> my friend still insists that when we were driving home we went the wrong way and almost ended up in mexico
<miah> but he was in the back seat peaking on some mdma and we went through one of the customs checks north of SD
<miah> so his story is a bit mixed up and he just wont accept my version
oleo__ has joined #ruby
<miah> i havent really spent much time there though; it seems to me to be very similar to houston
<miah> urban sprawl mostly supported by the oil industry
<miah> i grew up in michigan; i've lived in Boston, Ft. Lauderdale, Houston, and San Francisco
<miah> the nerd scene is best in the bay (from where i've lived), but i also enjoy portland and seattle
<miah> i just dont really care about 'cities'. they are all so similar nowadays.
oo_ has quit [Ping timeout: 258 seconds]
rshetty has quit [Ping timeout: 245 seconds]
oleo is now known as Guest47763
rocknrollmarc has joined #ruby
Guest47763 has quit [Ping timeout: 264 seconds]
nkumari has joined #ruby
Morkel has joined #ruby
mjuszczak has quit []
tomeara has quit [Ping timeout: 252 seconds]
x1337807x has quit [Read error: Connection reset by peer]
<miah> picked up a copy of 'effective ruby' at Powells today though; i think its the only Ruby book I don't own
<miah> well; didnt own =)
<ericwood> powells is great!
babykosh has quit [Quit: babykosh]
<ericwood> my GF worked a Weiden briefly, she lived right down the street so I'd go hang out there to wait for her
Hijiri has quit [Ping timeout: 265 seconds]
<miah> ya; im sad that they no longer have the technical stuff in its own building.
<miah> now i have to go mingle with the common folk ;)
freerobby has quit [Quit: Leaving.]
<miah> (its just seriously insane in the main (i guess only) building)
<miah> doesnt do well for my anxiety
<ericwood> I got lost a few times
fedexo has joined #ruby
<miah> ya its easily done
<ericwood> they color code everything and it was quite confusing
<ericwood> the antique/rare book room is awesome if you haven't seen it btw
<miah> i got lost a few time in the houston downtown tunnels
<ericwood> books several centuries old! it's crazy!
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
mloveless has quit [Read error: No route to host]
<miah> ya the technical section is right next to it now
<godd2> ericwood Plato's Apology is millenia old :)
mloveless has joined #ruby
Hijiri has joined #ruby
parabolize has joined #ruby
<ericwood> that's pretty awesomeeeeeee
<ericwood> okay now y'all have me wanting to go ride the trimet around and brewery hop
<ericwood> ha, "hop"...pun not intended
x1337807x has joined #ruby
<miah> im certain there will be many bars involved in this weeks trip; wish i could have fun in them
sumark has quit [Remote host closed the connection]
<ericwood> oh and the cured meats
<ericwood> olympic provisions was awesome
<miah> cured meats i am all down for
<ericwood> the northwest has that stuff figured out, wish it was more popular down south
sumark has joined #ruby
<miah> ya but Austin has all the bbq
* miah misses the saltlick
<ericwood> I'm right up the street from franklin's :)
<ericwood> the tacos are pretty great too
<miah> i havent found amazing bbq in SF; i've had 'good' but not 'amazing'
<ericwood> there's a little taco stand that set up shop across the street from me...I wish they were open this late
<ericwood> miah: I miss chinatown in SF
<miah> ah
<ericwood> I ate a bunch of things I didn't recognize for very little money last time I was there
Photism has quit [Quit: Leaving]
<miah> i live near chinatown oakland it has good stuff too. also my gf is chinese so we've got that food covered
spastorino has quit [Quit: Connection closed for inactivity]
<ericwood> haha same...she recognizes stuff and they actually serve us at the hole in the wall places :D
<miah> we rarely eat out; we just cook everything at home
<ericwood> one place they set the table with a single fork I was like really?
<miah> ya
<miah> lol
JoshGlzBrk has joined #ruby
<ericwood> she doesn't speak chinese though so sometimes they get upset about that
<miah> i use chopsticks as well as a native user
synergyz has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
synergyz has joined #ruby
<miah> ah ya; my gf doesnt really speak cantonese well but she understands it
<ericwood> her dad told me I had better skills than her, it was the apex of my chopsticks career
<miah> hah
<ericwood> lol GF only understands commands her mom would yell at her
<pontiki> the fork thing reminds me one time i took my daughter to a chinese place; we were using chopsticks, but she was having a bit of problem. waiter walked up and slapped a fork down next to her and shouted at her "you need fork!"
<ericwood> "come here" "stop that"
<ericwood> pontiki: the only way to teach 'em is to have them starve unless they learn
<pontiki> um
<pontiki> she was like 16
<miah> wow
mikepack has quit [Remote host closed the connection]
<pontiki> she does know how to use them
<pontiki> but everyone has a bad day, you know?
mary5030 has quit [Remote host closed the connection]
<ericwood> haha
mloveless has quit [Read error: No route to host]
<miah> day/week/month, ya =)
mary5030 has joined #ruby
<ericwood> I think my parents gave them to us a lot for entertainment value
<pontiki> ... i was not above such things ...
<miah> where i grew up they dont give you chopsticks really; nobody knows how to use them i didnt use them until my 20's
synergyz has quit [Read error: Connection reset by peer]
<pontiki> but my partner and i used chopsticks a lot, and the girls wanted to use them too
echooo1 has joined #ruby
<miah> ya; my daughters see us using them and they try too
<ericwood> it's a good skill!
<pontiki> it is
<miah> i make it difficult though because im left handed so showing them my technique; it doesnt really translate
mloveless has joined #ruby
synergyz has joined #ruby
echooo has quit [Ping timeout: 264 seconds]
<ericwood> lol we're discussing chopsticks while #javascript slowly comes unravelled
<ericwood> granted it's settled down
arescorpio has quit [Excess Flood]
<pontiki> give them a fork
mary5030 has quit [Ping timeout: 265 seconds]
<ericwood> they've lost their chopsticks priveleges
nkumari has quit [Remote host closed the connection]
<miah> hah
<pontiki> lol
<ericwood> this time of night is when a lot of non-english speakers hop in, things can get interesting
boombadaroomba has joined #ruby
davasaurous has quit [Remote host closed the connection]
<ericwood> frustrating for both parties :\
<Nameo0> Hello. I am suck trying to scrap a website using Nokogiri (like someone suggested earlier) and Mechanize. The website is pute html and I am trying to find the nth time that the "b" element appears and scrap the text from that element. I cannot figure this out and any advice would be greatly appreciated. =)
geowy has joined #ruby
<Nameo0> pure html = no css, no id, no name
<ericwood> Nameo0: mechanize seems a bit overkill! Why not use open-uri instead?
<Nameo0> I am just trying to find a way to make this work. =)
davasaurous has joined #ruby
oo_ has joined #ruby
<ericwood> one sec, lemme whip something up
boombadaroomba has quit [Ping timeout: 255 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<ericwood> sorry, I don't have nokogiri installed, one more sec
<Nameo0> No worries. =)
<miah> s/one more sec/15 more minutes
<ericwood> at work I use JRuby so I have a different version :)
<pontiki> only if you're installing on a Rpi :D
<miah> hah
nkumari has joined #ruby
ferr has joined #ruby
<ericwood> the JRuby one uses the java stdlib or something
<ajaiswal> Nameo0, just in case you want some ref, i have used this to parse a website.. http://ashish1099.github.io/blog/2014/10/15/ruby-subcene-dot-com-subtitle-downloader/
<miah> ya
<miah> i use bundle config build.nokogiri --use-system-libraries
<miah> so its not quite as painful
<ericwood> apparently I didn't have the OS X CLI tools installed...oops
klmlfl has quit [Remote host closed the connection]
<ericwood> Nameo0: regardless, this is basically what you want: https://gist.github.com/eric-wood/ce1830a4ea291075e5e2
geowy has left #ruby [#ruby]
<ericwood> I don't think .html is the right method but I haven't used nokogiri in a while :\
lxsameer has joined #ruby
Spami has joined #ruby
<Nameo0> OMG! I could kiss you right now!
<Nameo0> thank you, I will go from here. =)
Soda has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
Soda has quit [Read error: Connection reset by peer]
<ericwood> enjoy!
lucywerther_ has joined #ruby
samsquanch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* ericwood continues trying to install nokogiri in preparation for the future
lucywerther_ has quit [Client Quit]
kiyote23 has joined #ruby
rhalff has joined #ruby
chrishough has joined #ruby
klmlfl has joined #ruby
bdamos has quit [Remote host closed the connection]
bdamos has joined #ruby
kiyote23 has quit [Ping timeout: 245 seconds]
<miah> lol
Channel6 has quit [Quit: Leaving]
<ericwood> Nameo0: okay so in my gist change ".html" to ".content"
<ericwood> and it'll work
<ericwood> but no kissing please
<Nameo0> deal =)
<ericwood> Nameo0: I've updated the gist, go ahead and refresh it
Soda has joined #ruby
melik_______ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
x1337807x has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
oleo__ has quit [Quit: Verlassend]
posixpascal has joined #ruby
ferr has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
x1337807x has joined #ruby
perturbation has quit [Quit: Leaving]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
ferr has joined #ruby
posixpascal has quit [Client Quit]
<Nameo0> ericwood: My code is doing the basics of what it should be thanks to you. =)
nagaraj has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
jdj_dk has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
vt102 has quit [Remote host closed the connection]
RTG` has quit [Disconnected by services]
RTG` has joined #ruby
rshetty has quit [Remote host closed the connection]
goodenough has quit [Remote host closed the connection]
davasaurous has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
reactor has joined #ruby
klmlfl has quit [Remote host closed the connection]
reactor has quit [Ping timeout: 240 seconds]
rshetty has quit [Ping timeout: 272 seconds]
bdamos has quit [Remote host closed the connection]
rocknrollmarc has quit [Ping timeout: 244 seconds]
reinaldob has joined #ruby
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
timonv_ has joined #ruby
it0a has quit [Ping timeout: 265 seconds]
Nameo0 has quit [Quit: Leaving]
sinequanon has joined #ruby
lampd1 has joined #ruby
reinaldob has quit [Ping timeout: 256 seconds]
timonv_ has quit [Ping timeout: 256 seconds]
goodenough has joined #ruby
tobago has joined #ruby
nrsk has joined #ruby
nrsk is now known as _ash
bmichelsen has quit [Quit: ZZZzzz…]
sski has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
sski has joined #ruby
oo_ has joined #ruby
posixpascal has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
bmichelsen has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tagrudev has joined #ruby
anarang has joined #ruby
sski has quit [Ping timeout: 244 seconds]
Insti has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
x1337807x has joined #ruby
konsolebox has quit [Quit: Leaving]
noop has joined #ruby
last_staff has joined #ruby
codecop has joined #ruby
sdwrage has quit [Quit: Leaving]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
lbrf has quit [Quit: Textual IRC Client: www.textualapp.com]
goodenough has quit [Remote host closed the connection]
jusmyth1 has joined #ruby
apoorvparijat has joined #ruby
jdj_dk has joined #ruby
goodenough has joined #ruby
bMalum has joined #ruby
jimbach has joined #ruby
timonv_ has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
apoorvparijat has quit [Ping timeout: 272 seconds]
Jake232 has joined #ruby
jimbach has quit [Ping timeout: 258 seconds]
jonr22 has joined #ruby
Kricir has joined #ruby
mary5030 has quit [Remote host closed the connection]
Tranquility has joined #ruby
jonr22 has quit [Remote host closed the connection]
mary5030 has joined #ruby
jonr22 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
davedev24_ has quit []
jonr22 has joined #ruby
Takle has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
nkumari has quit [Remote host closed the connection]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has quit [Ping timeout: 264 seconds]
jdj_dk has quit [Remote host closed the connection]
lukeholder has joined #ruby
rshetty has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
rshetty has quit [Remote host closed the connection]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
ohaibbq has quit [Quit: Leaving...]
Senjai has quit [Ping timeout: 250 seconds]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
keen____ has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
timonv_ has quit [Remote host closed the connection]
keen____ has joined #ruby
mikepack has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
vyorkin has joined #ruby
yfeldblum has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
psy has quit [Read error: No route to host]
bigkevmcd has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
psy has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
noaon has quit [Quit: WeeChat 1.0.1]
fabrice31 has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
Macaveli has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
echooo1 has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 250 seconds]
echooo has joined #ruby
Senjai has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
dh64 has quit [Quit: Konversation terminated!]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
tvw has joined #ruby
Bish has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
henesy has quit [Quit: Ex-Chat]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
aganov has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
jonr22 has joined #ruby
andikr has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
vyorkin has joined #ruby
A8se has joined #ruby
x1337807x has joined #ruby
<A8se> hello
Takle has joined #ruby
mloveless has quit []
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
ta has quit [Remote host closed the connection]
karmatr0n has joined #ruby
A8se has quit []
vyorkin has quit [Ping timeout: 256 seconds]
apoorvparijat has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
CustosLimen has joined #ruby
garbanotas has quit [Read error: Connection reset by peer]
bdamos has joined #ruby
jonr2219 has quit [Remote host closed the connection]
<benzrf> bye
jonr22 has joined #ruby
jusmyth1 has left #ruby [#ruby]
benzrf is now known as benzrf|offline
garbanotas has joined #ruby
emmesswhy has quit [Quit: Leaving]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
braincra- has joined #ruby
beilabs_________ has quit [Ping timeout: 265 seconds]
jonr2219 has quit [Read error: Connection reset by peer]
beilabs_________ has joined #ruby
jonr22 has joined #ruby
JohnBat26 has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has quit [Ping timeout: 245 seconds]
jonr2219 has joined #ruby
ta has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
lolmaus has quit [Quit: Konversation terminated!]
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
_ash is now known as nrsk
banister has quit [Ping timeout: 250 seconds]
shvelo has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
posixpascal has joined #ruby
Crisix has joined #ruby
banister has joined #ruby
blueOxigen has joined #ruby
jonr2219 has quit [Remote host closed the connection]
amundj has joined #ruby
jonr22 has joined #ruby
bluOxigen has quit [Ping timeout: 258 seconds]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
Crisix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has quit [Read error: No route to host]
Takle has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
rshetty has joined #ruby
mary5030 has joined #ruby
lampd1 has quit []
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
moritzs has joined #ruby
oso|away has quit [Quit: Byebye]
jonr2219 has quit [Remote host closed the connection]
jonr22 has joined #ruby
bluOxigen has joined #ruby
o0oo0o has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
o0oo0o has joined #ruby
rshetty has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
blueOxigen has quit [Ping timeout: 255 seconds]
jonr22 has quit [Read error: Connection reset by peer]
iamdoo2 has joined #ruby
jonr22 has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
rociiu has joined #ruby
agjacome has joined #ruby
CpuID has quit [Ping timeout: 272 seconds]
giuseppesolinas has joined #ruby
rociiu has quit [Client Quit]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
Abhijit has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
kireevco1 has quit [Ping timeout: 244 seconds]
timonv_ has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
ferr has quit [Quit: Lost terminal]
ned__ has left #ruby [#ruby]
exadeci has joined #ruby
timonv_ has quit [Remote host closed the connection]
livathinos has joined #ruby
timonv_ has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
fjfish has quit [Remote host closed the connection]
jonr2219 has joined #ruby
timonv_ has quit [Remote host closed the connection]
jonr2219 has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
terlar has joined #ruby
jonr22 has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
qba73 has joined #ruby
binaryape has joined #ruby
moritzschaefer has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
sinequanon has quit [Remote host closed the connection]
renderful has joined #ruby
jonr22 has joined #ruby
binaryape has quit [Client Quit]
francisfish has quit [Ping timeout: 245 seconds]
moritzs has quit [Ping timeout: 264 seconds]
dcunit3d has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
x1337807x has quit [Client Quit]
Abhijit has joined #ruby
sk87 has joined #ruby
jonr2219 has quit [Ping timeout: 258 seconds]
sinequanon has joined #ruby
kyoshero has quit [Read error: Connection reset by peer]
renderful has quit [Ping timeout: 255 seconds]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ta has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jimbach has joined #ruby
timonv_ has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
rdark has joined #ruby
jimbach has quit [Ping timeout: 272 seconds]
jonr2219 has quit [Remote host closed the connection]
CpuID has joined #ruby
dumdedum has joined #ruby
jonr22 has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
olivier_bK has joined #ruby
hanmac1 has joined #ruby
startupality has joined #ruby
sea_local has quit [Remote host closed the connection]
Linuus has joined #ruby
ringarin has joined #ruby
elcheckito has quit [Quit: WeeChat 1.0.1]
apoorvparijat has quit [Remote host closed the connection]
apoorvparijat has joined #ruby
Takle_ has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
quazimodo has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
rshetty has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
sevenseacat has quit [Quit: Leaving.]
elaptics`away is now known as elaptics
quimrstorres has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
sk87 has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
DaniG2k has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
mityaz has joined #ruby
ikaros has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
AlSquire has joined #ruby
francisfish has joined #ruby
AlSquire has quit [Remote host closed the connection]
kwd has joined #ruby
kwd has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
ghr has joined #ruby
jonr2219 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
CpuID has quit [Read error: Connection reset by peer]
sinequanon has quit [Remote host closed the connection]
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
elcheckito has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
webgen has joined #ruby
Stoge88 has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
matchaw has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
giuseppesolinas has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
dts has joined #ruby
dramalho has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
kyb3r_ has quit [Read error: Connection reset by peer]
jonr22 has quit [Remote host closed the connection]
ringarin has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
lolmaus has joined #ruby
shvelo has joined #ruby
rshetty has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
rshetty has quit [Remote host closed the connection]
reinaldob has joined #ruby
Stoge88 has joined #ruby
AFKGeek has joined #ruby
mikepack has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
xaitec has joined #ruby
xaitec has left #ruby [#ruby]
AlSquire has joined #ruby
iwishiwerearobot has quit [Ping timeout: 250 seconds]
iwishiwerearobot has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
abuzze has joined #ruby
abuzze_ has quit [Read error: Connection reset by peer]
giuseppesolinas has joined #ruby
rshetty has joined #ruby
jonr2219 has quit [Ping timeout: 245 seconds]
mikepack has quit [Ping timeout: 258 seconds]
Linuus has quit [Ping timeout: 250 seconds]
nfk has joined #ruby
AlSquire has quit [Ping timeout: 265 seconds]
jheg has joined #ruby
bjornar has joined #ruby
rshetty has quit [Remote host closed the connection]
giuseppesolinas has quit [Client Quit]
giuseppesolinas has joined #ruby
giuseppesolinas has quit [Client Quit]
boombadaroomba has joined #ruby
ringarin has joined #ruby
charliesome has quit [Quit: zzz]
joonty has joined #ruby
startupality has quit [Quit: startupality]
boombadaroomba has quit [Ping timeout: 265 seconds]
Spami has joined #ruby
ctp has joined #ruby
_aeris_ has left #ruby ["Konversation terminated!"]
beilabs_________ has quit [Ping timeout: 255 seconds]
beilabs_________ has joined #ruby
havenwood has quit [Remote host closed the connection]
iamdoo2 has quit []
camilasann has quit [Remote host closed the connection]
msgodf has joined #ruby
camilasan has joined #ruby
ringarin has quit [Quit: Leaving]
timonv_ has joined #ruby
shvelo has quit [Ping timeout: 256 seconds]
thsig has joined #ruby
ringarin has joined #ruby
alaa has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
kwd has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
bMalum has quit [Quit: bMalum]
arup_r has joined #ruby
workmad3 has joined #ruby
<arup_r> Not working with string.sub(/(_\d+_\d+)\.{1}/,"").sub('cache/made/assets/content/','')
<rpag> cuz of \. ?
<tobiasvl> yes, arup_r, you match on numbers followed by a dot, and replace that with nothing
<tobiasvl> since you've wrapped the numbers in parens I'm guessing you thought that only that match group would be replaced, somehow?
Crisix has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> Yes.. tobiasvl: you are right
<workmad3> arup_r: two options to fix - 1 you can sub with "." instead of ""
narcan has joined #ruby
<arup_r> tobiasvl: Fix?
<workmad3> arup_r: 2, you could use a non-capturing look-ahead to match the .
<hanmac1> arup_r: .sub(/cache\/made\/assets\/content\/(.+)(_\d+_\d+)\.{1}/,'\1.\3')
<arup_r> workmad3: Can you modify regex according to your second choice ?
<rpag> uggggggh
<hanmac1> hm or maybe without \3
<workmad3> hanmac1: was gonna say ;)
<rpag> i preferred what arup_r came up with first because its 1000000 times more readable
<hanmac1> sorry have a bad morning ... nobu did break my binding again ... and with his newest change i might not be able to fix that :&
robustus has quit [Ping timeout: 255 seconds]
<workmad3> hanmac1: I'd probably also have personally used %r{} rather than // for that regexp
<hanmac1> hm yeah that would work too ...
<arup_r> not working string.sub(/(_\d+_\d+)(?:\.{1})/,"").sub('cache/made/assets/content/','')
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<rpag> why are you trying to match the period at all? looks like everything prior to that is abc.
robustus has joined #ruby
<workmad3> arup_r: that's because lookahead is (?=<regexp>) not (?:<regexp>)
* hanmac1 going into hermit mode and is only speaking to who they are listening
<workmad3> rpag: I'd assume it's to not mess up a filename along the lines of 'BLUE_OPAL_40_50_FIREBALL_DROP_EARRINGS_60_40.jpg'
<rpag> yeah must be
<arup_r> hanmac1: I didn't see your regex.. Now I seee :-)]
bluOxigen has quit [Ping timeout: 252 seconds]
<arup_r> workmad3: Sorry.. I got confused with the non capturing one. :p
* hanmac1 put his hand on their head, and the blind could see again
Jake232 has joined #ruby
<arup_r> hanmac1: lol
tvw has quit []
elcheckito has quit [Quit: WeeChat 1.0.1]
<arup_r> >> string = "http://capwell.co/assets/content/cache/made/assets/content/products/BLUE_OPAL_FIREBALL_DROP_EARRINGS_60_40.jpg" ; p string.sub(/(_\d+_\d+)(?=\.{1})/,"").sub('cache/made/assets/content/','')
<arup_r> working
<arup_r> :-)
<arup_r> workmad3: TRhanks
Mekkis has joined #ruby
Jake232 has quit [Client Quit]
Linuus has joined #ruby
apeiros_ has joined #ruby
lemur_ has quit [Remote host closed the connection]
lemur has joined #ruby
troulouliou_dev has joined #ruby
friedAy has joined #ruby
friedAy is now known as shortCircuit__
garycruise has joined #ruby
AndChat| has joined #ruby
AlSquire has joined #ruby
Crisix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maZtah_ is now known as maZtah
maZtah has quit [Changing host]
maZtah has joined #ruby
maZtah has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
jds has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
terlar has quit [Quit: WeeChat 1.0.1]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
garycruise has quit [Quit: 离开]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sevenseacat has joined #ruby
hao has joined #ruby
Xeago has joined #ruby
hao has quit [Client Quit]
Abhijit has quit [Remote host closed the connection]
<shevy> GOOD MORNING RUBY!
mloveless has joined #ruby
mloveless has quit [Remote host closed the connection]
sk87 has joined #ruby
nkts is now known as marius
jimbach has joined #ruby
<hanmac1> shevy nobu did break my binding again ... i dont know if i can get it working that fast again
postmodern has quit [Quit: Leaving]
pandaant has joined #ruby
robustus is now known as robustus|Off
jimbach has quit [Ping timeout: 272 seconds]
francisfish has quit [Remote host closed the connection]
as-cii has joined #ruby
ctp has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
apoorvparijat has quit [Remote host closed the connection]
timonv_ has joined #ruby
bmichelsen has joined #ruby
wolf4ood has joined #ruby
as-cii has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
apoorvparijat has joined #ruby
aust has joined #ruby
<aust> does anyone know of a way to remove duplicate lines from a txt file using ruby?
robustus|Off is now known as robustus
Xeago has quit [Remote host closed the connection]
<apeiros_> aust: duplicate lines in sequence or duplicate lines spread out?
<aust> spread out
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<aust> or it could check for uniqueness when writing to the file as well
Joufflu has quit [Read error: Connection reset by peer]
<apeiros_> read the lines into a set, write it back to file
<shevy> hanmac1 lol
<shevy> rpag showed me the binding-eval trick to load code into modules at runtime
j416 has quit [Quit: o/]
<shevy> as long as that works I am happy
Spami has quit [Quit: This computer has gone to sleep]
<shevy> though - when I tried to use it in real code, it actually seemed too complex to my eyes so I did not use it in the end :(
j416 has joined #ruby
francisfish has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
Timgauthier has joined #ruby
CpuID has joined #ruby
melik_______ has quit [Quit: (null)]
troulouliou_dev has quit [Quit: Leaving]
karmatr0n has quit [Remote host closed the connection]
j416 has quit [Quit: o/]
<hanmac1> shevy next weekend i might work on rwx again ... because nobu did break it, and currently i might have problems to fix it again (means rwx will currently not work with ruby-trunk) ...
<aust> thanks
j416 has joined #ruby
aust has quit [Quit: Page closed]
ldnunes has joined #ruby
Hobogrammer has quit [Quit: さようなら]
bigkevmcd_ has joined #ruby
bigkevmcd_ has quit [Read error: Connection reset by peer]
<shevy> \o/
Timgauthier is now known as timgauthier_away
32NAAK9JA has joined #ruby
francisfish has quit [Remote host closed the connection]
Areessell has quit [Ping timeout: 272 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Timgauthier has joined #ruby
<Timgauthier> shevy sup
timonv_ has quit [Remote host closed the connection]
<shevy> hey Mr. Tim
<shevy> like Tim the Enchanter from the movie "The holy grail"
TPBallbag has joined #ruby
<Timgauthier> YES!
<Timgauthier> LIGHTNING BOLT!
<shevy> haha
<shevy> Tim: "I do.?You seek the Holy Grail!"
tkuchiki has quit [Remote host closed the connection]
<shevy> Arthur: "That is our quest, you know much that is hidden, O Tim."
<shevy> Tim: "Quite."
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
timonv_ has joined #ruby
marr has joined #ruby
timonv_ has quit [Remote host closed the connection]
<hanmac1> shevy last weekend i did play to much with simutrans again ... what would be if the world would have such a growing industry than in my game? ;P
fabrice31 has quit [Remote host closed the connection]
<Timgauthier> i love games
<Timgauthier> with simulations
<Timgauthier> what game
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
Crisix has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
<shevy> hanmac1 what is simutrans?
Crisix has quit [Max SendQ exceeded]
<shevy> and why are there not more games in ruby
<shevy> hanmac1 I was young when SimCity 1 came out on DOS!
<shevy> I recently played some DOS games... gotta say, most of them were actually crap. but some really had great ideas going for them
<hanmac1> hm its not like simcity : http://www.simutrans.com/en/
<shevy> I loved the idea in SimAnt - you actually can learn about ants while playing; shame such a concept isn't feasible today anymore
terlar has joined #ruby
<Timgauthier> transport simulation is cool, i recommend City in motion 2
<Timgauthier> cities in motion rather
<Timgauthier> good game, same concept
bmichelsen has quit [Quit: ZZZzzz…]
arup_r has quit [Remote host closed the connection]
<gregf_> a=[]; File.read("foo.txt").split("\n").select { |val| a << val && true if !a.include?(val); false }; p a ?
<gregf_> aust^^
<gregf_> bah:/ that was way back. and he/she's left :/
chu has joined #ruby
<hanmac1> gregf_: why not uniq ?
<apeiros_> gregf_: there's a reason I said Set and not Array
<apeiros_> that suggestion is O(n^2)
<gregf_> yeah, true, set removes dups
<Timgauthier> this makes me endlessly sad http://www.bbc.com/news/world-europe-30268653
<hanmac1> apeiros_ hm why not File.readlines("path").uniq ?
<gregf_> apeiros_: sets are O(1)?
<apeiros_> gregf_: lookup, yes. so the problem is O(n)
<gregf_> yeah, faster :/
ponga has joined #ruby
ponga has joined #ruby
<apeiros_> hanmac1: that's the convenient solution for small files, yes
<gregf_> apeiros_++; hanmac1 thats good to know `uniq` :)
voltage_ has joined #ruby
<apeiros_> hanmac1: depending on whether you count \n to be part of the line or not, you have to adjust for last line without newline
ajaiswal has quit [Quit: Leaving]
<apeiros_> (same for all solutions, tho)
<shevy> Timgauthier yeah sucks; people get way too punch-happy. but seriously, to punch girls? that dude is just insane
bayed has joined #ruby
<shevy> oops... the article actually says it was a stone or a bat, not the fist ...
Photism has joined #ruby
<Timgauthier> yeah its much much worse then punching
<Timgauthier> he left and came back
<Timgauthier> to beat her to death
jonr22 has joined #ruby
fabrice31 has joined #ruby
iamninja has quit [Remote host closed the connection]
<Timgauthier> woowt, wrote my brothers thankyou card from my wedding, yea they're redicuously late lol
sk87 has joined #ruby
<gregf_> theres also an interview by abc on the cop that killed that young boy. now, i could be mistaken in that i'm trying to justify that cops action :/
<gregf_> but one needs to listen to both sides :/
<gregf_> he could've tasered him tho'. shooting is a bit too far, but.. in self defence :/
<Timgauthier> he didn't carry a tazer
Zackio has quit [Remote host closed the connection]
<Timgauthier> and i know a ton of cops who don't
jonr22 has quit [Ping timeout: 245 seconds]
<shevy> Timgauthier you thank your brothers for getting married? :>
lkba has joined #ruby
<Timgauthier> the whole situation sounds really weird, and the fact that it didn't go to the supreme court is more weird. but in this situation it COUDL have been justified, there however is a huge culture issue if black people feel so singled out. That needs to be addressed
kobain has joined #ruby
<Timgauthier> I thank my brother for coming to my wedding shevy
<shevy> gregf_ what confuses me is that he quit duty afterwards despite the jury stating he is free of error
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
agjacome_ has joined #ruby
kobain has quit [Max SendQ exceeded]
<shevy> Timgauthier ah ok ... I forgot, you married in Canada, Germany or somewhere else? I assume your brothers would live in or near Canada... would seem adventorous to travel over half the world to attend the marriage of a brother! :D
abuzze has quit [Remote host closed the connection]
Zackio has joined #ruby
Bish has joined #ruby
<shevy> wow difficult word... *adventurous
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<Timgauthier> we got married in canada, and in germany :P
charliesome has joined #ruby
<Timgauthier> adventurous
<Timgauthier> yeah thats a weird one
charliesome has quit [Client Quit]
AndChat| has quit [Ping timeout: 240 seconds]
<shevy> oh... so I guess two parties
<shevy> you must really like cake
Guest1882 has joined #ruby
Areessell has joined #ruby
<Timgauthier> a total of two bites of cake from my weddings :P
agjacome has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
Takle_ has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 264 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
wsmoak has joined #ruby
wsmoak has joined #ruby
kirloo has joined #ruby
kirloo is now known as Guest35729
oo_ has joined #ruby
nagaraj1 has joined #ruby
rshetty has joined #ruby
Guest1882 has quit [Ping timeout: 264 seconds]
rshetty has quit [Remote host closed the connection]
rodfersou has joined #ruby
iamninja has joined #ruby
Linuus has quit [Ping timeout: 258 seconds]
ctp has joined #ruby
ta has joined #ruby
nagaraj has quit [Ping timeout: 272 seconds]
oo_ has quit [Ping timeout: 252 seconds]
ringarin has quit [Read error: Connection reset by peer]
upp3r has joined #ruby
User458764 has joined #ruby
supersym has joined #ruby
kobain has joined #ruby
kobain has quit [Client Quit]
SCHAAP137 has joined #ruby
Tranquility has joined #ruby
kobain has joined #ruby
<hanmac1> Timgauthier: hm did you tryout simutrans too? imo its cool for a bit playing under linux
davidhq has joined #ruby
<hanmac1> apeiros_ spam from Guest35729
Morkel_ has joined #ruby
iamninja has quit [Remote host closed the connection]
<Timgauthier> hanmac1 no i havn't and i'm on a mac
timonv_ has joined #ruby
<Timgauthier> apeiros_ hanmac1 i also had that spam
<shevy> do we have a programming language that is built around a UNIX pipe model? e. g. each action that can be performed, is a filter-process
Morkel has quit [Ping timeout: 265 seconds]
Morkel_ is now known as Morkel
apoorvparijat has quit []
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hanmac1> Timgauthier: simutrans exist for mac too http://www.simutrans.com/en/download/mac ... hm and i like that nice graphic ...
<Timgauthier> i'm a bit over the old pixel art styles :P
bmichelsen has joined #ruby
<hanmac1> and as shevy would say, yeah i would love to program something like that in ruby too xD
BaconOverflow has joined #ruby
mkaesz has joined #ruby
wolf4ood has quit [Ping timeout: 265 seconds]
<shevy> it's all so much work
<shevy> it must be made simpler
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
shazaum has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
narcan has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
abuzze has joined #ruby
nastri has joined #ruby
bonhoeffer has joined #ruby
weemsledeux has joined #ruby
abuzze has quit [Remote host closed the connection]
sk87 has quit [Client Quit]
iamninja has joined #ruby
charliesome has joined #ruby
Linuus has joined #ruby
francisfish has joined #ruby
ixti has joined #ruby
Guest35729 has quit [K-Lined]
fxn has joined #ruby
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
wang has quit [Ping timeout: 252 seconds]
wang has joined #ruby
atta_ has quit [Remote host closed the connection]
atta has joined #ruby
weemsledeux has quit [Ping timeout: 264 seconds]
krz has quit [Quit: WeeChat 1.0.1]
stan5 has joined #ruby
krz has joined #ruby
elaptics is now known as elaptics`away
jespada has joined #ruby
nagaraj1 has quit [Ping timeout: 244 seconds]
User458764 has quit [Ping timeout: 264 seconds]
shazaum has quit [Quit: This computer has gone to sleep]
<stan5> \quit
rshetty has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<shevy> no don't
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<Timgauthier> i need to build a photo gallery that is password protected and i'd like to host my photos on aws to limit my costs
User458764 has joined #ruby
<stan5> TIME
ctp has joined #ruby
<Timgauthier> hm?
quimrstorres has quit [Remote host closed the connection]
<stan5> you want to build it from scratch?
stan5 has quit [Quit: WeeChat 1.0.1]
abuzze has joined #ruby
<hanmac1> shevy i would like something in the style of RollerCoasterTycoon(1-2) written in Ruby, what do you think, would you like that?
quimrstorres has joined #ruby
_5kg_ has joined #ruby
Spami has joined #ruby
_5kg has quit [Ping timeout: 258 seconds]
Linuus has quit [Ping timeout: 264 seconds]
SCHAAP137 has quit [Ping timeout: 245 seconds]
Linuus has joined #ruby
ringarin has joined #ruby
Takle_ has joined #ruby
SCHAAP137 has joined #ruby
Takle has quit [Ping timeout: 252 seconds]
posixpascal has joined #ruby
jimbach has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
upp3r has quit [Quit: upp3r]
yfeldblum has quit [Remote host closed the connection]
godd2 has quit [Ping timeout: 240 seconds]
User458764 has quit [Ping timeout: 240 seconds]
bMalum has joined #ruby
shvelo has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
jimbach has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
bmichelsen has joined #ruby
robustus is now known as robustus|Off
<Timgauthier> naw, can't beat the efficency of assembler bra
yfeldblum has quit [Ping timeout: 240 seconds]
kuda_ has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
livathin_ has joined #ruby
t3h_j4n170r has quit [Ping timeout: 258 seconds]
dark_lord has joined #ruby
t7y9r has quit [Ping timeout: 265 seconds]
DaniG2k_ has joined #ruby
<dark_lord> Hey I have opened two different terminal. In one of that I am checking gem list, it showed different output when I am doing the same on other terminal
renderful has joined #ruby
<dark_lord> Am I doing something wrong ?
t3h_j4n170r has joined #ruby
t7y9r has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
livathinos has quit [Ping timeout: 272 seconds]
DaniG2k has quit [Ping timeout: 252 seconds]
upp3r has joined #ruby
<hanmac1> Timgauthier: hey! ... i did wrote once a bit with a binding for a 3d engine like ogre ... my ruby app did had similar FPS than the C++ programm
<Timgauthier> cool
<hanmac1> so if written correctly a binding should not have much overhead than the library itself ...
<Timgauthier> yea
phutchins has joined #ruby
<Timgauthier> i want to setup a photogallery using AWS for hosting my photos
renderful has quit [Ping timeout: 258 seconds]
<arup_r> Any idea what is the reason of the error? https://gist.github.com/aruprakshit/c421633ff5ff25338b76 Error is - "void value expression (SyntaxError)"
iaj has quit [Ping timeout: 264 seconds]
jimmyy has quit [Ping timeout: 240 seconds]
nerdy has quit [Quit: Computer has gone to sleep.]
nagaraj has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shazaum has joined #ruby
claptor has quit [Quit: this channel is bakas]
kish has joined #ruby
<Areessell> Yeah
<Areessell> You have @on_sale = (EXPRESSION)
<Areessell> But in the expression, you use the return statement
<Areessell> Er conditional*
supersym has quit [Quit: WeeChat 1.0.1]
<Areessell> Seeing `include Virtus.model` makes me go O_o but that's actually how it's recommended you use it
<Areessell> So weird
yfeldblum has joined #ruby
uber_hulk has quit [Ping timeout: 264 seconds]
<olivier_bK> i dont understand why when i call a methode from another script i get an error
agjacome has joined #ruby
<Areessell> Okay, almost any question you ask that contains "get an error" or "exception" or something along those lines, go ahead and /include/ that exception with yout question. Cause that's gonna be the next thing asked
<hanmac1> olivier_bK: dont you want to use redefine or something?
<olivier_bK> no i just want to call colorize
<Areessell> Oh he did! I'm dumb
moritzschaefer has quit [Ping timeout: 255 seconds]
<Areessell> You;re only defining a module that has the colorize method
yfeldblum has quit [Ping timeout: 245 seconds]
<Areessell> If you want to call `"Some string".colorize` then you need to include that in a `class String`
yvemath has quit [Remote host closed the connection]
BLuEGoD has quit [Remote host closed the connection]
<hanmac1> olivier_bK: https://gist.github.com/zyriuse75/dc2596501849f3c76e1f#file-down-rb-L5 as i see that should raise or throw something ...
TPBallbag has quit [Remote host closed the connection]
<shevy> hanmac1 not sure I k now that; I only know TransportTycoon which was ok
agjacome_ has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
MattB2 has joined #ruby
<Areessell> Life isnt complete until you've built a death roller coaster and trapped your visitors in a park in RCT
<hanmac1> but currently you did define Color#colorize, but that does have nothing todo with String#colorize
BLuEGoD has joined #ruby
anaeem1 has quit [Remote host closed the connection]
Linuus has quit [Ping timeout: 264 seconds]
<hanmac1> Areessell: hey, i did make an accident that in a very small park the bob-bahn has a little bumb, and the train did fly away ... dont blame me, blame the physics ;P
<olivier_bK> in my class i've wrote include color
yfeldblu_ has joined #ruby
<hanmac1> olivier_bK: yes, that should crash, dont ask me why it didnt ... first it should have been "include Color" not "require color", second, it still does not affect String
<olivier_bK> ok
kirun has joined #ruby
chinmay_dd has joined #ruby
<Areessell> olivier_bK: You wrote `require` which is different. But even if you did, that it still wouldn't work
<hanmac1> shevy do you mean simutrans or RollerCoaterTycoon?
kish has quit [Changing host]
kish has joined #ruby
<Areessell> You are doing `"wget: #{f}".colorize("blue")` which is String#colorize, as hanmac1 said.
rylev has joined #ruby
iwishiwerearobot has quit [Ping timeout: 256 seconds]
iwishiwerearobot has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
<Areessell> Remove `require color` in line 5 of down.rb, and on line 2 add `class String; include Color; end`
fabrice31 has joined #ruby
iaj has joined #ruby
<Areessell> What you are doing with that is reopening the String class definition and including that Color module. This will define the `color` method to all String instances
rshetty has quit [Remote host closed the connection]
prasselpikachu has joined #ruby
<hanmac1> shevy i want something like http://www.pcgames.de/screenshots/original/2002/11/farmpark.jpg in ruby if possible
livathin_ has quit [Remote host closed the connection]
livathinos has joined #ruby
yfeldblu_ has quit [Ping timeout: 250 seconds]
<Areessell> I made a trainer for RCT 2 using VB6 like a decade ago when I was first starting
diego_ar has joined #ruby
uber_hulk has joined #ruby
thsig has quit [Remote host closed the connection]
vt102 has joined #ruby
oo_ has joined #ruby
spyderman4g63 has joined #ruby
TPBallbag has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
<shevy> hanmac1 not sure... a game that uses ruby. I don't know simutrans or roller coaster tycoon, I only know this one http://www.openttd.org/en/
chinmay_dd has quit [Ping timeout: 265 seconds]
samsquanch has joined #ruby
robustus|Off is now known as robustus
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
<arup_r> Areessell: I removed `return` https://gist.github.com/aruprakshit/c421633ff5ff25338b76#file-product-rb-L71 so it worked,.
<arup_r> Dunno what was wrong with `return` ?
<arup_r> weired...
<Areessell> arup_r: Yeah sure, one of the most popular open source games
<arup_r> Which one ?
<shevy> arup_r return can sometimes be unexpected
<Areessell> arup_r: return means "Stop everything that's happening and return the method
<Areessell> No it's fully expected
<shevy> Areessell no that is not true
<shevy> Areessell try return in attr_writer style methods
<Areessell> It breaks out of all loops, it stop the block excution, everything
<Areessell> breaks out of all conditionals as demonstrated here
snath has quit [Ping timeout: 258 seconds]
<arup_r> Areessell: You meant Virtus change the Ruby parser parse rule?
<Areessell> Anyways, you are setting an instance variable based on the result of a contitional.
<Areessell> What? How did you infer that from what I said
<arup_r> Ahh! sorry :-)
<arup_r> Then where was I wrong ?
aclearman037 has joined #ruby
<arup_r> I didn't get you then
<Areessell> Anyways, you are setting an instance variable based on the result of a contitional - and in the conditional you have a return statement. So it was skipping the assignment of the instance variable which Ruby said "Hey! That makes no sense"
<arup_r> Why not am I allowed to return inside the if-else block ?
<Areessell> Because return breaks out of everything and returns the given value immediantly
<Areessell> No, you can. But the if/else block (called a conditional) is an expression in this case that the result of which will set a variable
<Areessell> But you are skipping the setting of the variable by useing `return`
<arup_r> makes sense now.. But will that behaviour consistent with any kind of assignment ?
<Areessell> ...Yes
<Areessell> It's Ruby
<shevy> Areessell return returns the passed value?
<arup_r> Thanks for the explanation
posixpascal has joined #ruby
kg76 has joined #ruby
bMalum has quit [Quit: bMalum]
goodenough has quit [Remote host closed the connection]
<Areessell> Of course
DaniG2k_ has quit [Ping timeout: 252 seconds]
<arup_r> shevy: "void"
<shevy> class Foo; def set=(i); return 33; i; end; end; foo = Foo.new; result = foo.set = 1
jusmyth has joined #ruby
<shevy> will result be 33?
<Areessell> >> class Foo; def set=(i); return 33; i; end; end; foo = Foo.new; result = foo.set = 1
<eval-in__> Areessell => 1 (https://eval.in/228938)
<Areessell> Why would it be?
<shevy> but I used return there!
<Areessell> You are not setting an instance variable
<Areessell> All I stated was return BREAKS out of the current scope
codehotter has left #ruby ["WeeChat 0.4.2"]
<Areessell> Even without the return statement, that makes no sense
jusmyth has left #ruby [#ruby]
<shevy> I thought you said return breaks out of everything :(
<shevy> I am pulling your leg ;)
<arup_r> Areessell: Nice hidden game of Ruby today I learnt from my mistake... :-)
Linuus has joined #ruby
<arup_r> Areessell: Thanks for your explanation...
<Areessell> shevy: What is this black magic
<shevy> nah
<shevy> this is just so that mass assignment like this can work:
<shevy> foo.x = foo.y = foo.z = 1
<shevy> as otherwise it could not
shock_one has joined #ruby
<Areessell> >> class Foo; def set=(i); return 33; i; end; end; foo = Foo.new; foo.set = 1
<eval-in__> Areessell => 1 (https://eval.in/228939)
dukedave has quit [Ping timeout: 258 seconds]
<Areessell> I'm still confused and I've been making a living off of Ruby for a long time
<shevy> let me find the explanation for the ^^^ assignment there
<shevy> first time I saw it it surprised me too
<Areessell> I get the a = b = 3 thing
DaniG2k has joined #ruby
<Areessell> but I removed that on the last one I did
bMalum has joined #ruby
thsig has joined #ruby
dukedave has joined #ruby
TomyWork has joined #ruby
<shevy> I think it is only for methods on objects?
<hanmac1> shevy:
<hanmac1> >>class Foo; def set=(i); return 33; i; end; end; foo = Foo.new; result = foo.send(:set=, 1)
<eval-in__> hanmac1 => 33 (https://eval.in/228940)
<TomyWork> hi
<shevy> damn it hanmac1
dramalho has quit [Ping timeout: 250 seconds]
<shevy> so apparently it works with .send
<Areessell> Right but... I did `; foo.set = 1`
yvemath has joined #ruby
<shevy> so now I am confused
chu has quit [Ping timeout: 240 seconds]
<shock_one> Hi. How would I continuously read the optput of a subprocess? Like I start a webserver, which doesn't block execution of the current process, and then want to read the port it started on from the output. I tried this, but it requires closing a pipe before reading. https://gist.github.com/anonymous/33a6c99e07ed99872151
<TomyWork> what part of "bundle exec rails server -e $environment -p $port -b $iface $daemon" is application-specific? everything after "server"?
sk87 has joined #ruby
<Areessell> TomyWork: yep
<shevy> Areessell ah here is the first part from 2006 https://www.ruby-forum.com/topic/88198
<shevy> interestingly they also used .send ... I think I read another explanation from like 2009 or so which did not use .send
<shevy> lol
<shevy> foo.send(:set=, bar.send(:set=, baz.send(:set=, 1)))
<Areessell> I get it now
<Areessell> That's disgusting =S I hate little patches on logic like that. "Here is how this works! For everything! (except this one very very specific case)"
<shevy> hehe
<shevy> no rule without exception!
Crazy_Atheist has joined #ruby
<shevy> ^^^ expect an exception to the above rule!
User458764 has joined #ruby
<Areessell> shock_one: I think you can just `loop { puts werr.gets }`
<Areessell> I don't really spawn other processes too often
vyorkin has joined #ruby
<shock_one> Areessell, werrr is the write-only end of the pipe, I can't read from it.
shvelo has quit [Ping timeout: 245 seconds]
NoNMaDDeN has joined #ruby
doki-worry has joined #ruby
<Areessell> I guess I meant `wout`?
<shock_one> Ah, right. Wout is the write-only end of the pipe, I can't read from it.
<Areessell> Or rout I dunno ambiguous names!
adriancb has joined #ruby
<shock_one> ;)
<Areessell> I name things like `pipe_read_output` n stuff
<Areessell> We actually were discussing that the other day
<Areessell> We found a method with 18 underscores in the name
mjuszczak has joined #ruby
<shevy> woot is a cool name for a pipe component
<shock_one> And root?
<shevy> root reminds me of beer
chu has joined #ruby
<shock_one> Like when you had a couple of beers it's better not to login as a root?
<shevy> shock_one let me try to find the method with 18 underscores, you will stand paralyzed in awe ...
Xeago has joined #ruby
<shevy> hmm I don't have it in my IRC scrollback log here
adriancb has quit [Ping timeout: 240 seconds]
<TomyWork> Areessell bollocks, the app is documented horr^H^H^H^Hnot at all
uber_hulk has quit [Ping timeout: 258 seconds]
cibs has quit [Remote host closed the connection]
cibs has joined #ruby
livingstn has joined #ruby
elaptics`away is now known as elaptics
<Areessell> I hate when apps are documented horr^H^H^H^Hnot
upp3r has quit [Quit: upp3r]
<Areessell> =p
<TomyWork> :)
Xeago has quit [Read error: Connection reset by peer]
<TomyWork> where would i find the source to whatever executes first?
<shevy> aha found it!
<Areessell> Like the main entry point of your program?
<TomyWork> yes
Xeago has joined #ruby
<Areessell> That would be which ever ruby file you are running
<shevy> I am working hard to exceed that record :)
<Areessell> TomyWork: What command are you running to start your program?
<TomyWork> Areessell and in the case of bundle exec rails server?
vyorkin has quit [Ping timeout: 245 seconds]
Xeago has quit [Read error: Connection reset by peer]
samsquanch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has quit [Remote host closed the connection]
<Areessell> All explained there, my friend
kuda_ has quit [Quit: Textual IRC Client: www.textualapp.com]
spyderman4g63 has quit []
voltage_ is now known as volt_punch
<Areessell> Rails apps are bloated and a bit needlessly convoluted IMHO so it might take a minute to wrap your head around it
diego_ar has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
rkalfane has joined #ruby
gccostabr has joined #ruby
<shevy> rails apps are not fat
<shevy> just heavy boned
samsquanch has joined #ruby
<Areessell> Heavy boned? You mean big boned?
<Takumo> nah, heavy boned
<Takumo> lead bones
<Areessell> I can have heavy bones but not fat... like cast iron bones
spyderman4g63 has joined #ruby
brendenb has quit [Ping timeout: 258 seconds]
<Areessell> I hate when I get a case of the lead bones
<Areessell> From working at the factory
nagaraj has quit [Quit: nagaraj]
<TomyWork> Areessell there's no "rails" directory here
upp3r has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<TomyWork> is that odd or do i just skip the step?
<Areessell> rails.. directory?
boombadaroomba has joined #ruby
<TomyWork> yes, as mentioned in steps 1.5, 1.6 and 1.8 for instance
brendenb has joined #ruby
Trieste has quit [Ping timeout: 258 seconds]
<Areessell> Did you read the header of that article?
tylersmith has quit [Ping timeout: 258 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Areessell> "This guide explains the internals of the initialization process in Rails as of Rails 4."
<Areessell> You're gonna want to skip toooo (hold on)
tkuchiki has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
<TomyWork> this is 3.2, too
rshetty has joined #ruby
<Areessell> So that article is talking about the enitre initialization process of a Rails app
Seich has quit [Ping timeout: 258 seconds]
Trieste has joined #ruby
uber_hulk has joined #ruby
tylersmith has joined #ruby
<Areessell> It finally gets to files within your project around 1.10
triple_b has joined #ruby
<Areessell> See? Rails is so heavy-boned
Seich has joined #ruby
<shevy> it's cool that the higher the rails versions, the longer the installation procedure
boombadaroomba has quit [Ping timeout: 252 seconds]
<shevy> Areessell what do you use for web-related stuff in ruby? sinatra?
rkalfane has joined #ruby
<Areessell> I only use rails for really big projects. Most projects I can get away with Middleman or similar but for dynamic stuff I use Sinatra, sure.
lxsameer has quit [Quit: Leaving]
<Areessell> But I mostly just make webUIs for my applications or small sites I sell for far more than they are worth to some sap
MattB2 has quit []
dangerousdave has joined #ruby
DaniG2k has quit [Ping timeout: 272 seconds]
<shock_one> Here's how I resolved my output capturing issue. https://gist.github.com/anonymous/42a1c5cfc90f44f24c1d . Any ideas how to prettify it? Especially I don't like introducing a local variable early.
diegoviola has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
linojon has joined #ruby
yfeldblum has joined #ruby
shvelo has joined #ruby
whoisjake has joined #ruby
<Areessell> Sure, refactor with `port = stderr.find { ... }`
<Areessell> No wait
<Areessell> Meh not really, it looks fine
gr33n7007h has joined #ruby
<Areessell> What was wrong with using `rout.gets`? Did it throw an error or something?
<shevy> woot.gets !
diego_ar has joined #ruby
joonty has quit [Quit: Leaving]
<Areessell> Meh, I'm off
yfeldblum has quit [Ping timeout: 244 seconds]
shvelo has quit [Ping timeout: 240 seconds]
Areessell is now known as Areessell[ZZZ]
bluOxigen has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<Areessell[ZZZ]> Just a thought, should make a github crawler who's sole job is to find the method with the most underscores in the name and other completely useless facts
tkuchiki has joined #ruby
<shevy> yes
<shevy> IceDragon suggested that too
<shevy> I'll put this into my todo file
<shevy> I also have a temporary name for it ... class JokeStats
shortCircuit__ has quit [Remote host closed the connection]
BaconOverflow has quit [Quit: Connection closed for inactivity]
paulfm_ has joined #ruby
webgen has quit [Ping timeout: 255 seconds]
arup_r has quit [Remote host closed the connection]
DaniG2k has joined #ruby
DaniG2k has quit [Client Quit]
tkuchiki has quit [Ping timeout: 272 seconds]
tesaf has joined #ruby
_5kg_ has quit [Ping timeout: 255 seconds]
chinmay_dd has joined #ruby
uber_hulk has quit [Ping timeout: 250 seconds]
diego_ar has quit [Remote host closed the connection]
wsmoak has quit [Quit: wsmoak]
shvelo has joined #ruby
joonty has joined #ruby
diego_ar has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
linojon has quit [Quit: linojon]
<TomyWork> http://guides.rubyonrails.org/command_line.html#rails-server oh, there it is... all the arguments i was looking for
dANO has joined #ruby
Macaveli has joined #ruby
karmatr0n has joined #ruby
upp3r has quit [Quit: upp3r]
allcentu1 has joined #ruby
mjuszczak has quit []
chris613 has joined #ruby
Soda has quit [Remote host closed the connection]
upp3r has joined #ruby
jimbach has joined #ruby
s00pcan has joined #ruby
zarubin has quit [Remote host closed the connection]
kaspergrubbe has quit [Quit: leaving]
ta has quit [Remote host closed the connection]
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
kaspergrubbe has joined #ruby
blueOxigen has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
allcentu1 has quit [Quit: WeeChat 1.0]
Kricir has quit [Remote host closed the connection]
allcentury has joined #ruby
bweston92 has joined #ruby
wsmoak has joined #ruby
skmp has quit [Ping timeout: 258 seconds]
jerius has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
skmp_ has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mjuszczak has joined #ruby
mary5030 has joined #ruby
Photism has quit [Quit: Leaving]
workmad3 has joined #ruby
AlexRussia has joined #ruby
LBRapid has quit [Ping timeout: 258 seconds]
tkuchiki has joined #ruby
Darryl_ has joined #ruby
sjohnsen has quit [Ping timeout: 260 seconds]
giuseppesolinas has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
weemsledeux has joined #ruby
LBRapid has joined #ruby
giuseppesolinas has quit [Client Quit]
spyderman4g63 has joined #ruby
thsig_ has joined #ruby
quimrstorres has joined #ruby
spyderma_ has joined #ruby
thsig has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
upp3r has quit [Quit: upp3r]
AlexRussia has joined #ruby
spyderman4g63 has quit [Ping timeout: 244 seconds]
oleo has joined #ruby
evanjs has joined #ruby
kiyote23 has joined #ruby
renderful has joined #ruby
<gregf_> ruby -le '
<gregf_> bah :/ sorry
<gregf_> fortunately it aint a password :)
AlexRussia has quit [Ping timeout: 250 seconds]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dumdedum has quit [Ping timeout: 245 seconds]
snath has joined #ruby
renderful has quit [Ping timeout: 250 seconds]
AlexRussia has joined #ruby
MasterPiece has joined #ruby
josephndenton has joined #ruby
rkalfane has joined #ruby
doki-worry has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
ptrin has joined #ruby
joonty has quit [Quit: Leaving]
adriancb has joined #ruby
kiyote23 has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 244 seconds]
ConstantineXVI has joined #ruby
yfeldblum has joined #ruby
sailias has joined #ruby
<MasterPiece> http://paste.ubuntu.com/9331219/ What is the solution for this infinite loop of error?
devdazed has joined #ruby
dkphenom has joined #ruby
davedev24_ has joined #ruby
_5kg_ has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
ponga has joined #ruby
ponga has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Megtastique has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
last_staff has quit [Quit: last_staff]
tesuji has quit [Ping timeout: 272 seconds]
ConstantineXVI has quit [Remote host closed the connection]
corehook has joined #ruby
ConstantineXVI has joined #ruby
upp3r has joined #ruby
mynameisbrian has joined #ruby
<apeiros> MasterPiece: don't mix sudo and non-sudo gem installations.
<mynameisbrian> I really can't decide whether I should learn Ruby or Python, this is difficult. there are many pros and cons for both
<MasterPiece> apeiros, Thanks! your answer was helpful to me :)
linojon has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
<mynameisbrian> if anyone has any good links comparing the languages send them my way
beef-wellington has joined #ruby
francisfish has quit [Remote host closed the connection]
ringarin has joined #ruby
timonv_ has quit [Remote host closed the connection]
Kricir has joined #ruby
doki-worry has joined #ruby
Taranis has joined #ruby
francisfish has joined #ruby
sambao21 has joined #ruby
i8igmac has quit [Ping timeout: 250 seconds]
Stoge88 has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
mynameisbrian has quit [Quit: Page closed]
adriancb has quit [Ping timeout: 244 seconds]
francisfish has quit [Ping timeout: 255 seconds]
jonr22 has joined #ruby
jheg has quit [Ping timeout: 244 seconds]
mattmcclure has joined #ruby
adriancb has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
rkalfane has joined #ruby
corehook has quit []
j2p2 has joined #ruby
shvelo has quit [Ping timeout: 272 seconds]
moritzs has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 264 seconds]
bmichelsen has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Tranquility has quit [Quit: Connection closed for inactivity]
adriancb has joined #ruby
mary5030 has joined #ruby
j2p2 has quit [Ping timeout: 256 seconds]
mary5030 has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
moritzs has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
noaon has joined #ruby
nrsk has joined #ruby
robertt_dex has joined #ruby
yalue has joined #ruby
noop has quit [Ping timeout: 256 seconds]
bMalum has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
ccal has joined #ruby
posixpascal has joined #ruby
Stoge88 has joined #ruby
sk87 has joined #ruby
maestrojed has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
allcentury has joined #ruby
karmatr0n has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
Linuus has quit [Ping timeout: 240 seconds]
doki-worry has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
sevenseacat has quit [Remote host closed the connection]
tjbiddle has joined #ruby
uber_hulk has joined #ruby
gsd has joined #ruby
jobewan has joined #ruby
MattB2 has joined #ruby
tagrudev has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 265 seconds]
Photism has joined #ruby
thsig_ has quit [Remote host closed the connection]
thsig has joined #ruby
doki-worry has joined #ruby
uber_hulk has quit [Client Quit]
Takle has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
Takle has joined #ruby
klmlfl has quit [Remote host closed the connection]
iaj has quit [Ping timeout: 272 seconds]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby
Timgauthier is now known as timgauthier_away
axl_ has joined #ruby
timonv_ has joined #ruby
survili_ has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stoge88 has joined #ruby
dopie has quit [Remote host closed the connection]
chinmay_dd has quit [Quit: Leaving]
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
shock_one has quit [Quit: Be back later ...]
elaptics is now known as elaptics`away
doki-worry has quit [Ping timeout: 250 seconds]
vinleod has joined #ruby
elaptics`away is now known as elaptics
yfeldblum has joined #ruby
arup_r has joined #ruby
<survili_> hi @all, I'm using a gem that uses HTTParty. The gem's main class is defined as follows: "module Namecheap;class Client; include HTTParty"(; is newline). I've created the instance of the gem using "api = Namecheap::Client.new(x,y)" and I need to use a method "default_timeout" which is part of HTTParty. When I call in on my object "api.default_timeout" I get "undefined method" error. My question is, how can I access "default_timeout"
rylev has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
hanmac1 has quit [Quit: Leaving.]
rippa has joined #ruby
SCHAAP137_ has joined #ruby
kwd has quit [Quit: Sleeping now. ZZZzzz…]
duplex has quit [Ping timeout: 250 seconds]
Linuus has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
SCHAAP137 has quit [Ping timeout: 265 seconds]
Takle_ has joined #ruby
yfeldblu_ has quit [Ping timeout: 258 seconds]
upp3r has quit [Quit: upp3r]
32NAAK9JA has quit [Remote host closed the connection]
dol37_ has joined #ruby
nateberkopec has joined #ruby
bMalum has quit [Quit: bMalum]
charliesome has quit [Quit: zzz]
AlexRussia has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
anarang has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shazaum has quit [Quit: Leaving]
j2p2 has joined #ruby
it0a has joined #ruby
krz has joined #ruby
tobago has quit [Remote host closed the connection]
<ericwood> survili_: looking at the docs I don't see any mention of "Client"
<ericwood> what gem are you using with HTTParty?
ptrin has quit [Quit: Page closed]
<survili_> ericwood: I'm using another gem, that uses HTTParty. And it's gem's class definition goes as I wrote "module Namecheap;class Client; include HTTParty"(; is newline).
<ericwood> it'd be cool if you told us what the gem was
<survili_> ericwood: and then I create my object "api = Namecheap::Client.new(x,y)" . And here I need default_timeout
iaj has joined #ruby
rshetty has quit [Remote host closed the connection]
<ericwood> survili_: according to the docs timeout is a class method
<ericwood> not an instance method
madbytes has joined #ruby
paulfm_ has quit []
francisfish has joined #ruby
ctp has joined #ruby
francisfish has quit [Read error: Connection reset by peer]
<madbytes> I installed ruby2.1 on win7 from rubyinstaller.org. Now when i try to install any gem. it shows this error: http://pastie.org/pastes/9754314/text Any help?!
Guest84036 is now known as C0deMaver1ck
francisfish has joined #ruby
<gregf_> survili_: whats does Namecheap::Client::instance_variables print?
dblessing has joined #ruby
paulfm_ has joined #ruby
<dblessing> hey all. can you recommend a good (preferably free) online resource for a student to learn ruby?
rippa has quit [Read error: Connection reset by peer]
<survili_> ericwood: see http://www.rubydoc.info/github/jnunemaker/httparty/HTTParty/ClassMethods:default_timeout , HTTParty is included, and then default_timeout is used
rippa has joined #ruby
banister has joined #ruby
giuseppesolinas has joined #ruby
<survili_> gregf_: => [:@mattr_inheritable_attrs, :@default_options, :@default_cookies]
AxonetBE has joined #ruby
mateu has left #ruby [#ruby]
<ericwood> you won't have access to timeout unless it's set with attr_accessor
<AxonetBE> if I have an array of hashes, how can I overwrite a hash when it use the same name? https://gist.github.com/DriesS/de3e217e7077fc30e297
<redjack1964> which GUI toolkit is more used in Ruby?
<ericwood> redjack1964: Shoes
<survili_> ericwood: so, I need to modify the gem(3rd party), the one that uses HTTParty ?
<madbytes> This is really weird. cannot find any resources to guide with the error, even on google!
<ericwood> survili_: you can probably pop open the class and add attr_accessor
<ericwood> but that's weird and scary
<ericwood> there's probably a better way to do this
hamakn has joined #ruby
<survili_> ericwood: pop open ? i.e. monkey patch ?
thsig has quit []
shock_one has joined #ruby
<ericwood> yepyepyep
mkaesz has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
<survili_> ericwood: got it :( . btw, what would have been the correct way for the gem developer to expose all the functionality of HTTParty ? would he have to go over every single method and put attr_accessor ?
diegovio1 has joined #ruby
<redjack1964> ericwood, thanks
diegovio1 is now known as diegovio1a
<ericwood> survili_: not 100% sure off the top of my head but I'm splitting my time between this and work so I don't have chance to give it a good hard look :)
upp3r has joined #ruby
<survili_> ericwood: ok, thanks a lot! As I'm not ruby expert yet, I though maybe I was missing something. Thanks a lot again
<ericwood> np
TPBallbag has quit [Remote host closed the connection]
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ta has quit [Remote host closed the connection]
TPBallbag has joined #ruby
<workmad3> survili_: hmm... what is the problem exactly?
bluOxigen has joined #ruby
adriancb has quit [Remote host closed the connection]
Linuus has quit [Ping timeout: 240 seconds]
blueOxigen has quit [Ping timeout: 240 seconds]
<ericwood> workmad3: trying to set the timeout property of this class that includes HTTParty
Beoran_ has joined #ruby
<ericwood> but it's not exposed in a way that allows it to be changed
<workmad3> ericwood: timeout? or default_timeout?
<ericwood> (as far as I can tell)
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<ericwood> just timeout
<ericwood> I suggested monkeypatching but I'm sure there's a better way
<workmad3> because every request method (get/post/put/delete) in httparty takes a timeout option
triple_b has quit [Ping timeout: 252 seconds]
<workmad3> if you don't specify one, the class-level default_timeout is used
<ericwood> workmad3: the problem is it's wrapped in this case, although survili_ hasn't told us WHICH gem is used so we have no way to view the source
spastorino has joined #ruby
<ericwood> the gem's constructor could potentially not expose any of that
<ericwood> survili_: please tell us which gem you're using!
fabrice31 has quit [Remote host closed the connection]
triple_b has joined #ruby
Beoran__ has quit [Ping timeout: 252 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
treehug88 has joined #ruby
Megtastique has quit []
karmatr0n has joined #ruby
davidhq has quit [Quit: Textual IRC Client: www.textualapp.com]
Tranquility has joined #ruby
mikepack has joined #ruby
nkumari has joined #ruby
nkumari has quit [Remote host closed the connection]
SCHAAP137_ has quit [Quit: Leaving]
nkumari has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
livathin_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
beilabs_________ has quit [Ping timeout: 272 seconds]
beilabs_________ has joined #ruby
arrubin has joined #ruby
paulfm_ has quit []
ebbflowgo has quit [Quit: ebbflowgo]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has joined #ruby
dangerousdave has joined #ruby
nkumari has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 272 seconds]
paulfm_ has joined #ruby
livathin_ has quit [Ping timeout: 272 seconds]
fedexo has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ankhers has joined #ruby
Darryl_ has quit [Quit: Connection closed for inactivity]
joonty has joined #ruby
havenwood has joined #ruby
freerobby has joined #ruby
Hijiri has quit [Ping timeout: 265 seconds]
banister has joined #ruby
shock_one has quit [Quit: Lingo: www.lingoirc.com]
blueOxigen has joined #ruby
msgodf has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 265 seconds]
adriancb has joined #ruby
bMalum has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Spami has quit [Quit: This computer has gone to sleep]
mleone has joined #ruby
<redjack1964> ericwood, i just installed shoes through gem but i don't have the `shoes` command to execute code
<ericwood> redjack1964: iirc you just run your program via the ruby command like any other ruby code
joonty has quit [Quit: Leaving]
joncol has joined #ruby
SCHAAP137 has joined #ruby
<redjack1964> ericwood, Sorry, this gem currently does nothing. Team Shoes is working on Gemifying Shoes, and this is just a placeholder until then.
<ericwood> redjack1964: ah okay, I haven't worked with it so I wasn't sure
dumdedum has joined #ruby
<ericwood> redjack1964: Ruby has Tk bindings, although they may not be advanced enough for what you want to do
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ericwood> there's probably also GTK bindings as well via a gem
rylev has joined #ruby
<ericwood> honestly, for GUI work Ruby isn't the greatest choice :\
fedexo has quit [Read error: Connection reset by peer]
<joncol> I'm updating a project from 1.8.6 to 1.9.3, and I ran into some problems with String#hash. In 1.8.6 "hello".hash returns the same thing every time, but in 1.9.3, it seem to vary randomly... Can anyone explain this behavior?
<redjack1964> ericwood, i think Qt is better than theses lasts one :)
fedexo has joined #ruby
<ericwood> redjack1964: agreed. check this out: https://github.com/ryanmelt/qtbindings/
sambao21 has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
<canton7> joncol, seems OK to me: https://eval.in/229020
beilabs_________ has quit [Ping timeout: 240 seconds]
beilabs_________ has joined #ruby
<ericwood> heh the String#hash docs don't really reveal much about what it does :o
<joncol> canton7> try to start to irbs
<joncol> *two
dark_lord has quit [Remote host closed the connection]
<ericwood> ah okay it's just a hashing thing this makes sense
<ericwood> appears to be consistent using the lastest ruby
<joncol> I'm using 1.9.3
ta has joined #ruby
upp3r has quit [Quit: upp3r]
roolo has quit [Remote host closed the connection]
<canton7> joncol, yeah that is different, you're right
rylev has quit [Ping timeout: 245 seconds]
upp3r has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<canton7> interesting
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmichelsen has quit [Quit: ZZZzzz…]
<workmad3> ericwood: it should be consistent within a run (it's what Hash uses to store items in the internal hash table after all)
<workmad3> ericwood: but I don't think it's consistent between separate instances of ruby
<workmad3> >> "".hash
<eval-in__> workmad3 => 971943992 (https://eval.in/229021)
<workmad3> >> "".hash
<eval-in__> workmad3 => -428638478 (https://eval.in/229022)
<workmad3> >> "".hash
<eval-in__> workmad3 => -37873240 (https://eval.in/229023)
<workmad3> >> RUBY_VERSION
<eval-in__> workmad3 => "2.1.3" (https://eval.in/229024)
lmickh has joined #ruby
upp3r has quit [Client Quit]
kg76 has quit [Quit: Leaving]
timonv_ has quit [Remote host closed the connection]
<ericwood> it uses a random seed so yeah it won't be
<ericwood> but that's the idea
<ericwood> if you want it to be consistent across the board an MD5 might be a better choice
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
AxonetBE has quit [Quit: AxonetBE]
<workmad3> ericwood: I think they seeded it so as to avoid some attacks based on being able to predict the hash values and force collisions
<workmad3> ericwood: so if they moved to a consistent hash that provided the same advantage, that would likely mean SHA256 or better... and then it starts to get a bit expensive for such a heavily used calculation ;)
<ericwood> yepyepyep!
<workmad3> (hell, MD5 is probably too expensive for that)
CustosLimen has quit [Ping timeout: 258 seconds]
rockdon has quit [Ping timeout: 258 seconds]
ikaros has quit [Quit: Ex-Chat]
Darryl_ has joined #ruby
<rpag> workmad3, that is the reason, there was a vulnerability for it years ago
<workmad3> rpag: I had a vague recollection about seeing that vulnerability in a ruby weekly
<workmad3> rpag: but not enough to confidently state it was the reason for seeding :)
diegovio1a has quit [Quit: WeeChat 1.0.1]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
dangerousdave has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
paulfm_ has quit []
devoldmx has joined #ruby
<workmad3> ericwood: heh :) was just playing - 'def hash; Digest::SHA256.digest(to_s).unpack("b*").first.to_i(2); end'
rockdon has joined #ruby
wald0 has joined #ruby
triple_b has joined #ruby
anaeem1_ has joined #ruby
weemsledeux has joined #ruby
circ-user-cnelk has joined #ruby
<alex88> hi guys, I've this module and spec file https://gist.github.com/alex88/1ba36bc70bd2b106c3a2 problem is, after configuring ImageStore in second spec the third always fails, is there a way to reset the class between those tests
<alex88> ?
<alex88> or any other useful best practice
anaeem1_ has quit [Remote host closed the connection]
<workmad3> survili_: ah, cool... ok, so what I'd have suggested the author does for that is have each method take an 'http_opts' hash that gets passed through to the API call and finally to the 'self.class.get' method here: https://github.com/makifund/namecheap-ruby/blob/master/lib/namecheap/client.rb#L132
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rpag> httparty is the wrapper around net/http right?
eichenwald has joined #ruby
dfinninger has joined #ruby
<workmad3> survili_: for your situation, considering how inactive that repo is, I'd suggest simply forking the repository into your own github repo and modifying that line I just linked you to so that it passes the :timeout option into self.class.get
upp3r has joined #ruby
<workmad3> survili_: and then install the gem from your github fork (I'm assuming you're using bundler and so can do that easily)
<survili_> workmad3: ok, so no way for me to call default_timeout without monkey patching correct ?
<workmad3> rpag: pretty much, yeah
qba73 has quit []
<ericwood> workmad3: do you think making attr_accessor on that variable would be valid?
<ericwood> I think monkeypatching it is more fun :)
<workmad3> survili_: you may also be able to simply do 'Namecheap::Client.default_timeout 10' btw
<robertt_dex> alex88: remove_class_variable before :each
<workmad3> survili_: if you just have a static timeout you want to apply
<workmad3> ericwood: it's not an instance-level attribute, so no attr_accessor would not be valid
joncol has quit [Quit: leaving]
<ericwood> yeah I guess so :\
jonr22 has joined #ruby
MattB2 has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<survili_> workmad3: that worked!! that's what I was looking for :) got it now! in C++(my roots), if you call "static" method on object, it works fine, in ruby it's not..
<workmad3> survili_: yeah, class methods aren't in the lookup chain for instances in ruby ;)
ghostmoth has joined #ruby
<robertt_dex> alex88: you would probably want to check if class_variable_defined? before call remove
sambao21 has joined #ruby
<ericwood> what's the coolest way to add elements from an array to the beginning of another array
<ericwood> currently doing this:
<workmad3> survili_: partly because who would know when to stop at that point :)
j_mcnally has joined #ruby
<ericwood> >> [1,2,3].unshift(*[4,5,6])
<eval-in__> ericwood => [4, 5, 6, 1, 2, 3] (https://eval.in/229027)
<alex88> robertt_dex: thanks for the tip! ;)
<rpag> unshift seems like the best way to do that
<workmad3> ericwood: arr2 + arr1 ? arr1.unshift(arr2).flatten?
<survili_> workmad3: thanks a lot! btw, you mentioned above "self.class.get", it's really confusing. what is it for ? is it some kind of idom/pattern ?
<workmad3> ericwood: I quite like your splat :)
ponga has quit [Quit: Leaving...]
<ericwood> it's pretty awesome, right?!
livathinos has joined #ruby
<robertt_dex> np alex88. PM me if you have specific problems with your code.
<ericwood> array concatenation makes sense, I feel dumb now
<workmad3> survili_: 'self.class' calls the 'class' method on self
vyorkin has joined #ruby
<ericwood> although it's not as sexy
Channel6 has joined #ruby
<alex88> robertt_dex: thanks a lot for the help! it works fine btw ;) maybe I could either clear @client during the configuration part
<workmad3> survili_: so 'self.class.whatever' is an idiom for calling a class method from an instance method in ruby, without needing to hard-code the class name
<alex88> I'm not sure anyone would run configure 2 times
benzrf|offline is now known as benzrf
<survili_> workmad3: coool! neat, thanks a lot
robustus is now known as robustus|Off
chinmay_dd has joined #ruby
<workmad3> alex88: 'not sure anyone would do X' <-- expect X to be the most common thing anyone ever complains about
sailias has quit [Read error: Connection reset by peer]
sailias1 has joined #ruby
sailias1 is now known as sailias
<robertt_dex> alex88: make it idempotent would be good, but... don't waste time with it if you really dont need it.
<robertt_dex> alex88: may be a warn
<alex88> workmad3: in my case is a library and the config is done in the initializers, btw as robertt_dex adviced, maybe I'm going to remove the actual client class when re-running the configure method
jonr22 has quit [Ping timeout: 244 seconds]
beilabs_________ has quit [Quit: Be back later ...]
Timgauthier has joined #ruby
<workmad3> alex88: in that case, I beg you to not create a client library that only allows a single instance to be created in a ruby process
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<alex88> workmad3: so work as an Instantiable class and define the instance as global variable in the initializer?
allcentury has quit [Ping timeout: 258 seconds]
noaon has quit [Quit: WeeChat 1.0.1]
<workmad3> alex88: or, much more preferably, give sample code using connection_pool to show how to create a thread-safe pool of clients that you can check out ;)
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<workmad3> alex88: that way you don't screw over people who run multi-threaded clients or servers using your library ;)
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<alex88> workmad3: shouldn't people using multi-threaded things instanciate a client for each thread?
<workmad3> alex88: that's what connection_pool does
dkphenom has joined #ruby
gsd has joined #ruby
dkphenom has quit [Client Quit]
kidoz has joined #ruby
<workmad3> alex88: and if you've got a setup process that only allows the creation of a single client... you just screwed over every multi-threaded app out there :P
timonv^ has joined #ruby
geggam has joined #ruby
<alex88> well making it an instanciable class let you have n clients
chinmay_dd has quit [Quit: Leaving]
<workmad3> alex88: at which point, I'd still use connection_pool... but I'd be forced into using it to make sure only 1 thread was accessing the client at a time ;)
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
<alex88> ok gotcha, gonna have a look at that! thanks a lot man!
<redjack1964> qtbindings (4.8.6.0 ruby x86-mingw32) does x86-mingw32 means it is available only for Windows?
<ericwood> redjack1964: it's there to support it on windows most likely
<ericwood> the github page shows it supports a ton of platforms
jfran has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
upp3r has left #ruby [#ruby]
<workmad3> redjack1964: that says that there's a 4.8.6.0 for plain ruby, and a specific build for x86-mingw32
lemur has joined #ruby
vyorkin has quit [Ping timeout: 245 seconds]
<workmad3> redjack1964: the plain ruby version will have native extensions that should compile on most *nix platforms (as long as you have QT dev headers and libraries available, I suspect)
rylev has joined #ruby
<workmad3> redjack1964: but getting a sane compilation toolchain on windows can be difficult to impossible... so it's fairly common for gems with native extensions to provide pre-built binaries for windows under the x86-mingw32 platform
ta has quit [Remote host closed the connection]
alex88 has quit []
shvelo has joined #ruby
anaeem1 has joined #ruby
fedexo has quit [Ping timeout: 255 seconds]
survili_ has quit [Quit: Page closed]
<redjack1964> workmad3, ok :)
<gregf_> ericwood: php guys would do this: a,b = [1,2,3],[4,5,6];while 1; a.unshift(b.pop); break if b.length == 0;end; a :/
<ericwood> kill me now
anaeem1 has quit [Remote host closed the connection]
<workmad3> ericwood: arr2.concat(arr1) btw ;)
Solsist has joined #ruby
<rpag> >> ["vogue", "miley"].pop
<eval-in__> rpag => "miley" (https://eval.in/229028)
<ericwood> workmad3: yeah but it doesn't have a splat so that's lame
<shevy> php makes me sad
<gregf_> well, they're the most egotistic people sadly
<rpag> every year, it gets worse
<shevy> they inflate the amount of necessary instructions in order to achieve the desired result
<workmad3> ericwood: arr1.inject(arr2, &:<<)
<rpag> did you know that ":)" was being considered as the delimiter for namespaces in PHP?
<shevy> lol
<gregf_> heh
<shevy> that would have been better than \\
devoldmx has quit [Ping timeout: 245 seconds]
<shevy> oh it is just one \
<shevy> <?php namespace fub; echo \feline\Cat::says(), "<br />\n";
<rpag> yup
<workmad3> god that looks like shit...
<shevy> hahaha
<rpag> better than :)Feline:)Cat
devoldmx has joined #ruby
<shevy> HAHAHAHA
<shevy> well ok there is one practical reason
neoxquick has joined #ruby
<shevy> I thought it was two \
<workmad3> rpag: why couldn't they have just used :: like so many other languages? :P
<shevy> one \ is better than two chars though
eindoofus_ has joined #ruby
<workmad3> rpag: other than because they'd already been idiotic morons and used :: for something else? :)
<shevy> why is there a leading \ though?
<rpag> workmad3, i dont think it was technically possible
<rpag> yeah
St_Marx has quit [Quit: WeeChat 1.0.1]
<havenwood> i think a better delimiter for them would have been: (╯°□°)╯
troyready has joined #ruby
<rpag> hahahaha
<workmad3> how about `rm -rf`?
<workmad3> err, `rm -rf /`
St_Marx has joined #ruby
<workmad3> that would have been a fun 'namespace delimiter' >:D
<eindoofus_> hi, i'm learning the ruby language and i was just wondering if there is any major difference between 2.0.0 and 2.1.5 that would affect my studies?
<ericwood> workmad3: love the inject solution
<jhass> rm -rf .* is much better
mary5030 has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Soda has quit [Remote host closed the connection]
<jhass> eindoofus_: nope, just pick 2.1 ;)
anaeem1_ has joined #ruby
lemur has quit [Read error: Connection reset by peer]
<workmad3> jhass: `ls -a /**/* | rm -f`? :D
<jhass> .* already does that
<rpag> starting to look like namespaces in perl now
<jhass> matches ..
<jhass> and recurses into that
lemur has joined #ruby
<eindoofus_> jhass, already have 2.0.0 installed. will eventuall install 2.1 but i don't want to waste time with the environment right now if possible
<jhass> sure, go ahead
deric_skibotn has joined #ruby
<eam> workmad3: why the two stars?
andikr has quit [Remote host closed the connection]
<havenwood> eindoofus_: 2.0 is fine for learning. It's a short list of changes to catch up to 2.1.
<eindoofus_> thanks
<havenwood> nothing to unlearn, your code will work in 2.1 ;)
stunder has joined #ruby
NoNMaDDeN has quit [Quit: Leaving...]
devoldmx has quit [Ping timeout: 258 seconds]
<workmad3> eam: so I could drop the -r from rm and rely on ls to keep on going in the presence of permission issues (not sure rm -rf does anything if you don't have permission for the starting point)
sambao21 has quit [Quit: Computer has gone to sleep.]
devoldmx has joined #ruby
<shevy> try rm -rf /*
<rpag> it roots your machine, and then proceeds to delete everything when that happens
ki0 has quit [Ping timeout: 264 seconds]
drager has quit [Ping timeout: 265 seconds]
<workmad3> shevy: ooh... should I use that with sudo, yeah? :D
<shevy> workmad3 no, sudo users must not use dangerous code
drager has joined #ruby
<workmad3> shevy: aww, you ruin all my fun :(
<eam> workmad3: I mean, ** is the same as * inside ``
<shevy> eam knows all the ancient tricks
<eam> (also, you need xargs)
<shevy> he was there when unix was born
xymbol has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
lemur has quit [Ping timeout: 258 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<workmad3> eam: 'ls *' and 'ls **/*' return very different things inside `` on my machine :/
sambao21 has joined #ruby
<shevy> one returns cats
<shevy> the other one candy
<workmad3> oh... but same as 'ls */*'... I see what you mean
rockdon has quit [Ping timeout: 258 seconds]
<shevy> will there be a x-mas release of ruby?
shvelo has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
bricker`work has joined #ruby
<eam> workmad3: nope, they are identical
<eam> echo *|md5 ; echo **|md5
alaa has quit [Ping timeout: 252 seconds]
<eam> unless your machine has some crazy non-bourne shell /bin/sh
<workmad3> eam: echo **/*|md5
<eam> workmad3: ** and * are the same, the / doesn't matter
<benzrf> ive been bourne again
<shevy> the more * the better
<eam> in zsh ** recurses, but /bin/sh isn't zsh
<shevy> let's consolidate on ***
<workmad3> eam: ah... I use zsh :)
centrx has joined #ruby
<shevy> benzrf you have the monad shell
<eam> shevy: also the same as *!
<eam> workmad3: yeah, but you won't get zsh in ruby ``
mjuszczak has joined #ruby
Channel6 has quit [Quit: Leaving]
<workmad3> eam: I do :P
tadassce has joined #ruby
mityaz has quit [Quit: Leaving]
<ericwood> you can do `zsh`
<workmad3> eam: but I agree that you can't rely on it universally
<eam> workmad3: did you replace /bin/sh on your system?
<workmad3> nope
<ericwood> you use chsh
<ericwood> or change the login stuffs
<workmad3> I used chsh, yeah
Hijiri has joined #ruby
gmas has joined #ruby
<eam> chsh will not change ruby's 11
<eam> ``
<eam> doesn't matter
<eam> your login shell is unrelated to the shell ruby uses to parse backticks
<ericwood> exactly
<ericwood> but you can tell code to execute with zsh
einarj has quit [Remote host closed the connection]
<ericwood> `code | zsh`
<eam> sure, or use other symbols or any other number of things which weren't used above :)
<Solsist> hello everybody! i am new to ruby, i would like to ask you if i can promt the user for entering an integer and let ruby to create as many arrays as the integer promted by the user, and every array with Random.rand...
<wasamasa> yes
rockdon has joined #ruby
<centrx> yes, you can
<workmad3> eam: I think this is getting rather too pedantic for a flippant suggestion about PHP being idiotic btw ;)
ghr has quit [Ping timeout: 258 seconds]
<eam> you can run php in ``~
allcentury has quit [Ping timeout: 258 seconds]
oleo__ has joined #ruby
<Solsist> thank you something like puts"...." n=gets.chomp
<workmad3> eam: yeah... my suggestion was that the `` thing should be used by PHP for namespace separators
<Solsist> and then?
<workmad3> eam: so it wasn't really regarding ruby anyway :P
pwh has quit []
jerius_ has joined #ruby
<workmad3> eam: and I hadn't exactly bothered to make sure it was something that would work universally either ;)
gmas has quit [Client Quit]
<shevy> Solsist yes. one step at a time. via gets, you get user input. that is step #1
oleo__ has quit [Read error: Connection reset by peer]
sea_local has joined #ruby
<jhass> Solsist: convert it to an integer, have a look at the docs for the String class
<shevy> now you have finished step #1, it is time to go to step #2. you need to take that input, and create n arrays
<workmad3> eam: but still... it seems that you're right, `` just hadn't changed the $SHELL value while still parsing with /bin/sh
<Solsist> yeah thats where i got stuck
<shevy> Solsist here is an example of creating a 5x5 matrix
<shevy> >> Array.new(5) { Array.new(5) }
<eval-in__> shevy => [[nil, nil, nil, nil, nil], [nil, nil, nil, nil, nil], [nil, nil, nil, nil, nil], [nil, nil, nil, nil, nil], [nil, nil, nil, nil, nil]] (https://eval.in/229031)
<eam> workmad3: /bin/sh is hardcoded
tadassce has quit [Quit: leaving]
<Solsist> @shevy thank you a lot shevy
<shevy> \o/
oleo has quit [Read error: Connection reset by peer]
jerius has quit [Ping timeout: 250 seconds]
<wasamasa> Solsist: this is not twitter btw
lifenoodles has quit [Ping timeout: 258 seconds]
work_op has joined #ruby
<centrx> it's not a big truck
<workmad3> Solsist: you could also use the stdlib Matrix class
boombadaroomba has joined #ruby
<work_op> hi, im working through a ruby book that matz helped write, and im stuck on an example Sequence class
kidoz has quit [Quit: Ухожу я от вас]
<workmad3> Solsist: require 'matrix'; Matrix.new(5){nil}
<work_op> maybe someone can tell me what i doing wrong
commmmodo has quit [Quit: commmmodo]
<workmad3> (replace nil with rand if you want random values)
<Solsist> wasamasa because the @?....right^^
sailias1 has joined #ruby
sailias has quit [Quit: Leaving.]
<jhass> work_op: case matters. `class` vs `Class`
<work_op> oh. my. gosh.
<wasamasa> Solsist: type a few letters from the person's nickname you want to address, hit the tab key, enter your message
<work_op> i just spent ten minutes trying to find that
<work_op> thank you jhass, you rock
<rpag> @wasamasa good point
<wasamasa> rpag: no, not you too D:
<Solsist> i guess is very clear i am new of mirc, right?
timonv^ has quit [Read error: Connection reset by peer]
<rpag> ;)
<Solsist> :)
oleo has joined #ruby
kiyote23 has joined #ruby
wldcordeiro has joined #ruby
<jhass> @wasamasa: that's your new nick now
n1lo has joined #ruby
<workmad3> work_op: 1.step(10, 2) btw ;)
Hijiri has quit [Quit: WeeChat 1.0.1]
boombadaroomba has quit [Ping timeout: 240 seconds]
eguneys has joined #ruby
eguneys has quit [Client Quit]
<work_op> ooo, i like that workmad3, that seems fancier. i am just working through a book getting the basics down, hence my recycled code
<workmad3> work_op: fair enough... I think it's a slightly older book though, btw... enumerators have changed quite a bit in recent versions of ruby
lifenoodles has joined #ruby
<work_op> i picked this one up because Matz's name is on it, but I'm more than open to something up to date. I def want to be up to date
kiyote23 has quit [Ping timeout: 250 seconds]
dANO has quit []
sailias1 has quit [Read error: Connection reset by peer]
sailias has joined #ruby
boombadaroomba has joined #ruby
S3thc0n has joined #ruby
n1lo has quit [Client Quit]
n1lo has joined #ruby
adriancb has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
Narzew has joined #ruby
freerobby has joined #ruby
noop has joined #ruby
dfinninger has quit [Remote host closed the connection]
checkit has joined #ruby
vyorkin has joined #ruby
testing123 has joined #ruby
CustosLimen has joined #ruby
ConstantineXVI has quit []
diego_ar is now known as diego_ar|AFK
konsolebox has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
psy has quit [Disconnected by services]
psy_ has joined #ruby
testing123 has quit [Ping timeout: 258 seconds]
beef-wellington has quit [Ping timeout: 258 seconds]
j_mcnally has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
sambao21 has quit [Quit: Computer has gone to sleep.]
Jake232 has joined #ruby
psy_ has quit [Max SendQ exceeded]
j_mcnally has quit [Read error: Connection reset by peer]
tibbon has joined #ruby
psy_ has joined #ruby
fabrice31 has joined #ruby
<havenwood> work_op: you have the 1.9 version of The Ruby Programming Language, yeah?
rylev has quit [Ping timeout: 265 seconds]
<havenwood> that's a good book
<havenwood> 'the Sparrows'
<tibbon> Looking through the Ruby source; where is the unary operator method defined for usage in symbol to proc? (&:reverse) I see the sym_to_proc in string.c
<work_op> i was using 2.1, just because it's the latest
sambao21 has joined #ruby
<jhass> tibbon: yes, & calls .to_proc on its operand, you can't completely redefine it
<shevy> work_op hey
<shevy> ruby 2.1.5p273 (2014-11-13 revision 48405) [i686-linux]
<havenwood> work_op: as long as the book is 1.9+ everything's copacetic
wallerdev has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
AlexRussia is now known as AlexFromNowhere
ghr has joined #ruby
<jhass> tibbon: so you got the right method
arclitgold has joined #ruby
allcentury has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<work_op> i figured as much. so whats the best book then? like i said, i chose matz since he's an authority figure, but im open
<tibbon> jhass: Mostly looking to see how they made it happen, out of curiosity. I see where they define the .to_proc method, but not the & operator in the C code
circ-user-cnelk has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
sarlalian has joined #ruby
<havenwood> work_op: i like the book you have (assuming it's the one i'm thinking of). was just confirming it is the Sparrow you're talking about.
<havenwood> (pink sparrows on the cover)
ConstantineXVI has joined #ruby
ConstantineXVI has quit [Client Quit]
vyorkin has quit [Ping timeout: 264 seconds]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<havenwood> well, the birds are grey i guess
<work_op> yes
<work_op> thats the one
<havenwood> yeah, good book
gsd has joined #ruby
gsd has quit [Client Quit]
<work_op> right on
vyorkin has joined #ruby
alex88 has joined #ruby
nik_-_ has joined #ruby
madbytes has quit [Read error: Connection reset by peer]
trampi has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 264 seconds]
MattB2 has joined #ruby
adamski2600 has joined #ruby
Megtastique has joined #ruby
tibbon has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
vyorkin has quit [Ping timeout: 245 seconds]
work_op has quit [Quit: Page closed]
pietr0 has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
ConstantineXVI has joined #ruby
klmlfl has joined #ruby
testing123 has joined #ruby
TPBallbag has quit [Remote host closed the connection]
x1337807x has joined #ruby
karmatr0_ has joined #ruby
devoldmx has joined #ruby
weemsledeux has quit [Read error: Connection reset by peer]
Eiam has joined #ruby
nkumari has joined #ruby
<havenwood> i didn't notice that ruby-2.2.0-preview2 came out over the weekend
testing123 has quit [Client Quit]
<adam12> I'm using self.inherited(base) and base.class_eval to ensure included modules are available in subclasses. Does this sound right? I would assume including in the super class would make the methods available in subclasses.
anaeem1_ has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tibbon has joined #ruby
karmatr0n has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<centrx> Try and enjoy programming with Ruby 2.2.0-preview2, and report us your knowledge!
<centrx> adam12, You shouldn't need to do anything special to make mixin methods be available in subclasses?
beef-wellington has joined #ruby
ixti has joined #ruby
graydot has joined #ruby
<adam12> centrx: That was my thoughts, but just using Class#include inside the super class isn't making the mixin methods available in the subclasses.
mjuszczak has quit []
karmatr__ has joined #ruby
ValicekB has quit [Ping timeout: 258 seconds]
karmatr0_ has quit [Ping timeout: 244 seconds]
devoldmx has quit [Ping timeout: 244 seconds]
devoldmx has joined #ruby
karmatr0n has quit [Ping timeout: 255 seconds]
kaspertidemann has joined #ruby
<Hanmac> adam12: what methods are you talking about? can you show us an example?
<adam12> Let me put something together quick.
robustus|Off is now known as robustus
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
yfeldblum has joined #ruby
<fxn> adam12: that happens if there's one level of indirection, that is, if you include a module in a mixin
ValicekB_ has joined #ruby
livathinos has quit []
mityaz has joined #ruby
rshetty has joined #ruby
<fxn> so, if M is include in C, and after that you include N in M, C instances do not respond to the methods in N (which is kind of incosistent)
gregf has joined #ruby
ta has joined #ruby
kenichi has joined #ruby
ValicekB_ is now known as ValicekB
MatthewsFace has joined #ruby
<evanjs> mmmmm meds
<adam12> fxn: Thanks. I didn't realize that.
gsd has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
sinequanon has joined #ruby
<adam12> Anyways, I can't reproduce my issue now. Just calling Class#include inside the base class without any Class.inherited magic works as I assumed it would.
<fxn> adam12: it's a gotcha, Ruby linearizes the ancestor chain, and does not update it if included modules get their own chain modified, modules in MRI do not have links back to where they are included to be able to update
<fxn> if method lookup was truly dynamic, those methods should be found
rshetty has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 250 seconds]
vyorkin has joined #ruby
nkumari has quit [Remote host closed the connection]
Soda has joined #ruby
tsyan has joined #ruby
alex88 has quit []
TPBallbag has joined #ruby
livathinos has joined #ruby
devoldmx has quit [Ping timeout: 258 seconds]
dkphenom has joined #ruby
adriancb has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
tiagonobre___ has quit []
vyorkin has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
TPBallbag has quit [Remote host closed the connection]
tiagonobre___ has joined #ruby
tiagonobre___ has quit [Client Quit]
jdj_dk has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
tiagonobre has joined #ruby
vyorkin has joined #ruby
<havenwood> lots of nice goodies in 2.2 :)
<matti> :>
<matti> And still no File.lutimes ;]
<havenwood> this now works: {"whee, why not": true}
<j416> cool
giuseppesolinas has joined #ruby
goodenough has joined #ruby
<benzrf> >> {"whee, why not": true}[:'whee, why not']
<eval-in__> benzrf => /tmp/execpad-b534ea403f9b/source-b534ea403f9b:2: syntax error, unexpected ':', expecting => ... (https://eval.in/229043)
S3thc0n has quit [Remote host closed the connection]
<benzrf> 22>> {"whee, why not": true}[:'whee, why not']
<benzrf> dang
mjuszczak has joined #ruby
Solsist has quit []
<havenwood> benzrf: works in 2.2-preview
iamninja has quit [Remote host closed the connection]
econerd4ever has joined #ruby
<tsyan> Does anyone know why '&' was chosen as the operator for Ruby's symbol-to-proc implementation?
<tsyan> For example some_objects.map(&:foo). I understand that '&' is the unary ampersand, that it's calling .to_proc on :foo, and then passes the resulting block { |x| x.foo } as the argument to the .map method.
<tsyan> I understand what's going on, but I want to know why it makes sense to use '&' for this functionality rather than some other symbol or word.
<jhass> which symbol would make more sense in your opinion?
<tsyan> (sorry for extra lines, pasted from Sublime)
anaeem1_ has joined #ruby
<havenwood> tsyan: there're only so many symbols
vyorkin has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood> that are only a shift away*
<tsyan> but & already has lots of meanings
ndrei has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> so what do you think would be better?
<tsyan> there's the bitwise AND, the set intersection, the boolean AND...
<rpag> havenwood, \o/ for Method#curry
tibbon has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<tsyan> jhass: not sure what I would choose instead. probably a word.
<Hanmac> tsyan: there are only a few symbols that can be typed with the qwerty keyboard ... and its not a problem to reuse operators if it does make sense
jonr22 has joined #ruby
pawprint has joined #ruby
Timgauthier is now known as timgauthier_away
<tsyan> sure, but why pick that one? it sounds like you're saying it was picked at random, and I would guess that wasn't the case.
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ixti has quit [Ping timeout: 245 seconds]
<Hanmac> tsyan: i already have a problem with the "->" stabby lambda ...
tibbon has joined #ruby
AlexFromNowhere is now known as AlexRussia
baweaver has joined #ruby
<Hanmac> tsyan: and it was good that it was a one-symbol operator used for the block/proc thing, otherwise you would save less chars from it
freerobby has quit [Quit: Leaving.]
kaspertidemann has quit []
<tsyan> hanmac: yup, I agree, but that doesn't answer the underlying question
freerobby has joined #ruby
sinequanon has quit []
nkumari has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
livathinos has quit []
sambao21 has joined #ruby
baweaver has quit [Remote host closed the connection]
sinequanon has joined #ruby
<shevy> Hanmac do you use the stabby lambda?
<eindoofus_> does anyone have an idea why the last line doesn't work?: https://gist.github.com/anonymous/5197cd83022678b9a517
<Hanmac> shevy i am no brutus, so i do not ;P
<shevy> tsyan what other operator to pick by the way?
<eindoofus_> i thought Ticket.VENUES is the same as Ticket::VENUES
<shevy> with "word" you mean name of a method?
_2_Angie has joined #ruby
<shevy> and besides, what word exactly... you are not very specific ;)
<waxjar> eindoofus_: the . sends a message, the :: looks up a constant
<waxjar> VENUES is a constant
<_2_Angie> Hello
iceden has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<eindoofus_> ahh. makes sense. thanks waxjar
<havenwood> rpag: indeed, curry ALL THE THINGS!
Narzew has quit [Quit: Wychodzi]
shazaum has joined #ruby
baweaver has joined #ruby
<rpag> some cool additions througout
<rpag> throughout
Sammael has quit [Quit: ExoBNC - Free IRC Bouncers on demand]
arup_r has quit [Quit: Leaving.]
ta has joined #ruby
postmodern has joined #ruby
_2_Angie has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
<banister> rpag sup guy
parabolize has joined #ruby
<Hanmac> havenwood: "Ruby - now with 20% more curry" ... and next time there will be a Ramen Edition ;P
<havenwood> Method#ramen
pawprint has left #ruby ["Leaving"]
JoshGlzBrk has joined #ruby
<rpag> banister, just reading the release notes for ruby2.2, it has Method#curry
spider-mario has joined #ruby
MattB2 has quit [Remote host closed the connection]
<banister> rpag lol cute
ixti has joined #ruby
robustus is now known as robustus|Off
ohaibbq has joined #ruby
TPBallbag has joined #ruby
ghr has joined #ruby
TPBallbag has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
claymore has joined #ruby
rylev has joined #ruby
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0-preview1.tar.xz
<shevy> aha
<shevy> they get it ready for x-mas?
<shevy> don't open your presents before 24th
<tsyan> @shevy off the top of my head, maybe ^, as it only has one other common meaning which is exponent, and it's fairly obvious exponents wouldn't apply. ^ also seems to indicate converting to something because it's somewhat arrow-like. It's a tenuous connection, sure, but I'd say it's better than & which already has a strong meaning of joining two thin
<tsyan> gs.
<shevy> hmm
<rpag> shevy, before 25th
<shevy> array.map(^:to_s)
<peteyg> Is there a way to tell Ruby execute a certain block of code for x amount of time? Semantically, I want to do something like: "Execute { block } for 5000 milliseconds. If it did not return in that time, throw Timeout error."
bulters has joined #ruby
<shevy> >> [1,2,3] ^ [3,4,5]
<eval-in__> shevy => undefined method `^' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/229047)
<rpag> there's timeout.rb in stdlib
<shevy> I guess we don't use ^ a lot in ruby
<bulters> Is this the right place to ask about license stuff for Gems?
ghr has quit [Ping timeout: 250 seconds]
<shevy> bulters you could try #rubygems - the caretakers are on that channel like drbrain
<bulters> shevy: thanks, will try
<shevy> and he is not here on #ruby :(
<shevy> neither is chris2 ... nor manveru ... there are a lot of people on other channels but not on #ruby ...
<rpag> he's with the cool kids in #ruby-lang
<shevy> yeah
<shevy> our enemies
mjuszczak has quit []
<shevy> the SPLITTERS
x1337807x has joined #ruby
<bulters> omg... fractions within fractions
<peteyg> What's the difference between this channel and ruby-lang?
<shevy> from the popular people's front
<bulters> peteyg: probably politics
<peteyg> bulters: Oh :(
<bulters> left-wing rubyist vs right-wing rubyists
<shevy> peteyg we bringt light, they bring darkness!
dumdedum has quit [Quit: foo]
robustus|Off is now known as robustus
<bulters> some prever (1..2).to_a, others prefer (*0..2)
<bulters> erm [*0..2)
<bulters> I'm away, learning to type again...
devoldmx has quit [Ping timeout: 245 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bayed has quit [Quit: Connection closed for inactivity]
<shevy> peteyg in more seriousness, I think #ruby was registered first (not sure), the channel owner vanished or so, so #ruby-lang got used (I think) and somehow sticked to it ... but I might be totally wrong
rylev has quit [Ping timeout: 240 seconds]
<peteyg> Huh, interesting.
devoldmx has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<peteyg> So I should lurk in both channels to get maximum ruby exposure :P?
anaeem1 has joined #ruby
<bulters> peteyg: One can only handle a certain amount of exposure
<shevy> peteyg I guess you'd get more discussion in total
<bulters> I mean... rubies "radiate"... we all know too much radiation is bad for you
<peteyg> Hahaha :P
<shevy> for me it is too much to handle so I stick to #ruby only; plus I must register to talk on #ruby-lang and I can't do that
<havenwood> bulters: don't forget the `3.times.to_a` folk!
<peteyg> shevy: Why can't you register?
<bulters> havenwood: arent those lurking in #rails?
<bulters> or erm, #rubyonrails
<shevy> peteyg long long story
<havenwood> bulters: no, they abhor pure ruby
<havenwood> >> 3.times.to_a
<eval-in__> havenwood => [0, 1, 2] (https://eval.in/229048)
<havenwood> bulters: if it works without ActiveSupport, it is unholy!
<bulters> true
<peteyg> Wow, 3.times.to_a? Dang, that's a thing? Learned something new today...
<bulters> peteyg: know it, forget it... :P
razieliyo has joined #ruby
nik_-_ has quit [Quit: nik_-_]
valeriansaliou has joined #ruby
anaeem1 has quit [Ping timeout: 240 seconds]
econerd4ever has quit [Remote host closed the connection]
yfeldblum has joined #ruby
econerd4ever has joined #ruby
<bulters> havenwood: talking about falling of the end-of-the-world... Is there a map of some kind which shows where ruby-land begins and rails-world ends?
dumdedum has joined #ruby
<havenwood> bulters: it begins by going down the rabbit hole: gem install rails
posixpascal has joined #ruby
<havenwood> bulters: The methods defined in ActiveSupport core exts are a good place to look: http://guides.rubyonrails.org/active_support_core_extensions.html
yetanotherdave has joined #ruby
<havenwood> bulters: that's where DHH's language forays go
adriancb has quit [Ping timeout: 252 seconds]
adriancb has joined #ruby
baweaver has quit [Remote host closed the connection]
last_staff has joined #ruby
econerd4ever has quit [Ping timeout: 245 seconds]
<havenwood> >> [*0.upto(2), *3.times, *0..2]
yfeldblum has quit [Ping timeout: 240 seconds]
<eval-in__> havenwood => [0, 1, 2, 0, 1, 2, 0, 1, 2] (https://eval.in/229055)
luksaur has joined #ruby
<rpag> shevy, tell me the story im curious
<rpag> shevy, oh nvm
<rpag> you said it :p
<bricker`work> I recently learned that Ruby supports the flip-flop operator
<shevy> I am in youtube-idle mode right now! need my daily youtube soaps
odin22 has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<bulters> bricker`work: please elaborate... flip-flop?
valeriansaliou has quit [Quit: Be back later ...]
<rpag> bricker`work, it has been removed
mikepack has quit [Remote host closed the connection]
chipotle has joined #ruby
<havenwood> going to have to get some sandals
<rpag> why?
<bricker`work> rpag: it has?
<havenwood> no more flip flops
<rpag> hahahaha
<bricker`work> rpag: that is a pretty significant breaking change, I doubt they did it in a 2.x release
<bulters> it's called the havaiana operator now...
<tsyan> so, anyone have any solid info about '&' being used for symbol-to-proc, or are we just speculating?
rshetty has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
chipotle_ has joined #ruby
<rpag> bricker`work, sorry its scheduled for 3.0, but its not a breaking change imo because hardly anyone uses it
jerius_ has quit []
anaeem1 has joined #ruby
<bricker`work> rpag: still breaking, even if it's an unpopular feature
<soahccc> tsyan: maybe because you also pass procs like that?
jerius has joined #ruby
chipotle has quit [Ping timeout: 264 seconds]
rshetty has quit [Ping timeout: 240 seconds]
<bulters> rpag: sorry, but i just HAVE to refer to http://xkcd.com/1172/
<tsyan> soahccc: the question was why use '&' specifically
<rpag> bulters, hahaha
<eindoofus_> why is the last line false? does is_a? not work on Class objects? if that's the case why is it available?
<eindoofus_> brb
<shevy> >> class Foo; end; Foo.is_a? Class
<eval-in__> shevy => true (https://eval.in/229057)
adriancb has quit [Remote host closed the connection]
<shevy> eindoofus_ seems to work?
dfinninger has joined #ruby
dkphenom has joined #ruby
<bulters> eindoofus_: B is not an A
bdnelson has joined #ruby
<bulters> An instance of B is an A
bdnelson has quit [Client Quit]
nkumari has quit [Remote host closed the connection]
bdnelson has joined #ruby
nkumari has joined #ruby
TPBallbag has joined #ruby
<bulters> I'm going to be crucified for this, but here it goes: the class of Cat's is not a Mammal, an instance of the class of Cat's is a Mammal
<bulters> (here be pitchforks ladies and gentlemen!)
<banister> bulters there's nothing controversial about that :)
<banister> you would say "the superclass of Cat is Mammal"
devdazed has joined #ruby
MattB2 has joined #ruby
TPBallbag has quit [Remote host closed the connection]
StonePhone has joined #ruby
<havenwood> banister: i think cats might argue that the superclass of Cat is DemiGod
<banister> hehe
<StonePhone> I want to learn Ruby, but I am already a programmer and I don't want to read stories about dogs and onions
<banister> StonePhone then buy "eloquent ruby"
pengin has joined #ruby
<havenwood> StonePhone: how about foxes and bacon?
<crome> havenwood: +1
<StonePhone> s there a good ruby tutorial for experienced programmers who just want to get to the language
nkumari has quit [Remote host closed the connection]
<bulters> StonePhone: yes, it's called the source code ;-)
<havenwood> StonePhone: The Ruby Programming Language or Well Grounded Rubyist, Second Edition are others.
<bulters> StonePhone: Just take the pickaxe...
tsyan has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<waxjar> StonePhone: i like this as a quick introduction
<StonePhone> Havenwood - are either of those available digitally? Paid is fine but I'm in an airport
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood> StonePhone: yeah, both are
<StonePhone> Waxjar: Will read, thanks
<bulters> sorry for the commercial link...
<havenwood> StonePhone: http://www.manning.com/black3/
<StonePhone> Havenwood: Awesome. If you had to pick for an impatient person, which would you choose
kiyote23 has joined #ruby
shazaum has quit [Quit: Leaving]
<StonePhone> utlers: Commercial is fine
<StonePhone> Dude this phone IRC client is terrible
<havenwood> StonePhone: i haven't read Eloquent Ruby that banister suggested
<bulters> StonePhone: don't know what this chan's rules are considering commercial outings :P
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nastri has quit [Remote host closed the connection]
jgrevich has joined #ruby
<StonePhone> I just want a fast ramp and paid is fine to me
<StonePhone> k
ponga has joined #ruby
<StonePhone> two good leads
<StonePhone> Thanks, all
<bulters> StonePhone: It depends on experience, I just picked up the first pickaxe in 2005 or something
<havenwood> bulters: you link to a pickaxe two versions back; https://pragprog.com/book/ruby4/programming-ruby-1-9-2-0
ptrrr has joined #ruby
DLSteve has joined #ruby
<bulters> havenwood: thanks, it's the version I own (1st edition though)
<havenwood> StonePhone: Well-Grounded Rubyist dives right in
StonePhone has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
GPH|work has joined #ruby
ctp has joined #ruby
nkumari has joined #ruby
wald0 has quit [Quit: Lost terminal]
mary5030 has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
robustus is now known as robustus|Off
shvelo has joined #ruby
sambao21 has joined #ruby
adriancb has joined #ruby
fabrice31 has joined #ruby
kiyote23 has quit [Remote host closed the connection]
some_stranger has joined #ruby
doodlehaus has joined #ruby
<some_stranger> if you overload an array accessor, and then overload the []= method, does that second overload take into account the first?
tyll_ is now known as tyll
<rpag> ruby doesnt have method overloading
<rpag> it just redefines the method
<rpag> first definition is lost
anaeem1 has quit [Remote host closed the connection]
The_NetZ has joined #ruby
jimmyhoughjr has joined #ruby
<some_stranger> for arrays
fabrice31 has quit [Ping timeout: 256 seconds]
<some_stranger> like def []
<rpag> yeah it redefines the method
<some_stranger> if i redefine [] and then define []=. does []= use the new [] or the old []
<some_stranger> fine
anaeem1 has joined #ruby
<apeiros> []= is unrelated to []
anaeem1 has quit [Remote host closed the connection]
<apeiros> they are separate methods
<crome> they are 2 different methods
<rpag> it doesn't use [] at all, but depends on your implementation of []=
<some_stranger> i know that
<apeiros> it's like asking "if I redefine foo, does bar use the old foo or the new"
<rpag> it would use the new one, if you used it from []=
anaeem1_ has joined #ruby
<The_NetZ> hrm.... question. I can compile 2.1.5 on archlinux for x86_64, i686, and mingw-w64, but trying the same against ruby trunk fails.
anaeem1_ has quit [Remote host closed the connection]
<apeiros> and as rpag already said - if you redefine a method, the old one is gone
<apeiros> so no matter from where you call it, the new one will be used.
<The_NetZ> on extinit.c I get a helluvalotta undefined references to Init_{standardextshere}
aspires has quit []
jgrevich has quit [Quit: jgrevich]
Xeago has joined #ruby
jgrevich has joined #ruby
n1lo has quit [Quit: Leaving]
alvaro_o has quit [Quit: Ex-Chat]
rodfersou has quit [Quit: leaving]
Galas has joined #ruby
vyorkin has joined #ruby
mary5030 has joined #ruby
<The_NetZ> I know what Init_bigdecimal is, for example. its the function that gets called when you require 'bigdecimal', but checking extinit.c on trunk and 2.1.5 shows the same code.... bit befuddling.
nkumari has quit [Remote host closed the connection]
perrier has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
s2013 has joined #ruby
<s2013> is rubygems down for others as well?
<waxjar> loads fine for me
<rpag> down for me
<rpag> dns problems
<rpag> other sites are down too though
sambao21 has joined #ruby
n1lo has joined #ruby
<ericwood> DNSimple is down rn
sambao21 has quit [Client Quit]
<The_NetZ> no clues?
psycho_one has joined #ruby
nkumari has joined #ruby
ghr has joined #ruby
<ericwood> it's a DDoS: http://dnsimplestatus.com/
wallerdev has quit [Quit: wallerdev]
<Galas> gems doesn't load here either
some_stranger has quit [Ping timeout: 246 seconds]
cndiv has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
<ericwood> glad we have a gem cache server here...
aspires has joined #ruby
iamninja has joined #ruby
yfeldblum has joined #ruby
<The_NetZ> great.
chaos_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Hijiri has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
nkumari has quit [Ping timeout: 244 seconds]
anaeem1_ has joined #ruby
<chaos_> Hello, I'd like to implement something similar to this chess.com/explorer in Ruby, specifically the part where the pieces move around drag and drop, can someone recommend what technologies/classes I would need to achieve that
<s2013> i cant seem to instlal gem
doki-worry has joined #ruby
<havenwood> s2013: dns servers are being ddosed
<rpag> havenwood, why?
<havenwood> rpag: likely fun or profit. i'm not the one doing it! :P
<s2013> so rubygems uses dnsimple?
<havenwood> rpag: extortion is a common purpose
lolmaus has joined #ruby
<bulters> havenwood: that's what they all say
dangerousdave has joined #ruby
charliesome has joined #ruby
<rpag> havenwood, sucks :<
<havenwood> rpag: indeed
The_NetZ has quit [Ping timeout: 264 seconds]
<havenwood> we need a meta status: http://status.rubygems.org
<havenwood> status.status.rubygems.org
treehug88 has quit [Read error: Connection reset by peer]
adriancb has quit [Remote host closed the connection]
The_NetZ has joined #ruby
treehug88 has joined #ruby
aspires has quit []
nkumari has joined #ruby
<rpag> hope its fixed by tomorrow
<rpag> got a job interview -_-
Darryl_ has quit [Quit: Connection closed for inactivity]
<bulters> rpag: you can always give a "programming with nothin" demonstration
ldnunes has quit [Quit: Leaving]
<shevy> hehe
<shevy> not even with a computer bulters?
<shevy> future people will be happy - they can code without an interface other than their brain
SOLDIERz_ has joined #ruby
billy_ran_away has quit [Ping timeout: 264 seconds]
<bulters> shevy: You need to program something... so anything turing complete will suffice
<rpag> bulters, 2.1.5 doesnt ship with a testing library for some reason tho
<bulters> rpag: testing is overrated ;-)
<bulters> but you can always roll your own in 15 minutes or something
JoshGlzBrk has joined #ruby
<rpag> for extra points
<bulters> going to do that tomorrow, EmbeddedTests
Narzew has joined #ruby
<bulters> will run all methods in a Tests module in a class/module
ponga has quit [Remote host closed the connection]
The_NetZ has quit [Ping timeout: 240 seconds]
quimrstorres has joined #ruby
billy_ran_away has joined #ruby
robustus|Off is now known as robustus
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
econerd4ever has joined #ruby
<bulters> rpag: seriously, some kind of testing framework can be built ad-hoc.
jdj_dk has quit [Remote host closed the connection]
xymbol has quit [Quit: Be back later ...]
posixpascal has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister is now known as banisterfiend
paulfm_ has joined #ruby
<rpag> bulters, true dont disagree
dangerousdave has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<bulters> rpag: it's actually quite a nice idea... I'm going to have the next applicant do that :P
Xeago has quit [Remote host closed the connection]
uptownhr has joined #ruby
paulfm_ has quit [Client Quit]
anaeem1_ has quit [Remote host closed the connection]
paulfm_ has joined #ruby
nkumari has quit [Remote host closed the connection]
paulfm_ has quit [Client Quit]
paulfm_ has joined #ruby
paulfm_ has quit [Client Quit]
anaeem1 has joined #ruby
jerius has quit []
tibbon has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nkumari has joined #ruby
jespada has quit [Quit: Leaving]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerius has joined #ruby
tibbon has joined #ruby
aspires has joined #ruby
adriancb has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
anaeem1 has quit [Remote host closed the connection]
konsolebox has quit [Remote host closed the connection]
jjconti has joined #ruby
<jjconti> hi
<jjconti> is https://rubygems.org/ down?
<jjconti> i cant even access https://status.rubygems.org/
<Galas> yes it is
cndiv has quit [Quit: WeeChat 0.4.3]
<jjconti> any idea what happened?
<jjconti> any workaround?
<mozzarella> possibly a broken vacuum tube on the computer hosting them
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dumdedum has quit [Quit: foo]
robustus is now known as robustus|Off
<havenwood> jjconti: you might also try asking in #rubygems
<mozzarella> rubygems.org works for me
<mozzarella> but not the status page
<havenwood> mozzarella: https://status.rubygems.org
<havenwood> jjconti: i think part of a broader ddos
<mozzarella> as I said
<mozzarella> but not the status page
<havenwood> jjconti: there's a lot down right now
dangerousdave has joined #ruby
<jjconti> havenwood: whats boader ddos?
<mozzarella> a ddos that's more broad
<bulters> voluminous
anaeem1_ has joined #ruby
klmlfl has quit [Remote host closed the connection]
mbwe has joined #ruby
TPBallbag has joined #ruby
diego_ar|AFK is now known as diego_ar
charliesome has quit [Quit: zzz]
greenis has joined #ruby
MasterPiece has quit [Disconnected by services]
baweaver has joined #ruby
MasterPieceF has joined #ruby
beilabs_________ has joined #ruby
theRoUS is now known as theRoUS|afk|bbia
sambao21 has joined #ruby
mikepack has joined #ruby
charliesome has joined #ruby
<havenwood> neato
roolo has joined #ruby
circ-user-cnelk has joined #ruby
ki0 has joined #ruby
lucianosousa has joined #ruby
beilabs_________ has quit [Ping timeout: 264 seconds]
ConstantineXVI has quit [Ping timeout: 258 seconds]
mityaz has quit [Quit: See ya!]
beilabs_________ has joined #ruby
TPBallbag has quit [Ping timeout: 265 seconds]
ki0 has quit [Client Quit]
roolo has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
<bulters> yay, we survived!
dol37_ has quit [Quit: Connection closed for inactivity]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
<waxjar> how do i play this game havenwood? :P
<rpag> lol
jgrevich has quit [Quit: jgrevich]
<rpag> if you want to be on the attacking side apparently you get a plane to china
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
n1lo has quit [Quit: Leaving]
<redjack1964> what is this syntax ? button = Gtk::Button.new :label =>'Button'
<redjack1964> :label => '..'
<redjack1964> ?
<rpag> it's a hash literal
yfeldblum has joined #ruby
<rpag> creates a Hash object
<redjack1964> ah ok
<redjack1964> thanks
<jjconti> redjack1964: as first param of new
chrisja has joined #ruby
<jjconti> it's the same as Class.new({label: 'Button'})
<redjack1964> thank you for example
geggam__ has joined #ruby
beilabs_________ has quit [Ping timeout: 258 seconds]
beilabs_________ has joined #ruby
ctp has joined #ruby
rylev has joined #ruby
Milkweed has joined #ruby
geggam has quit [Disconnected by services]
geggam__ is now known as geggam
philpd has joined #ruby
<shevy> redjack1964 hey you are learning ruby gtk
ringarin has joined #ruby
seanosaur has joined #ruby
pengin has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
<eam> <?ruby
pengin has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elaptics is now known as elaptics`away
pwh has joined #ruby
pwh has quit [Client Quit]
weaksauce has joined #ruby
<shevy> eam better than php!
robertt_dex has quit [Remote host closed the connection]
jdj_dk has joined #ruby
jackjackdrpr has joined #ruby
nyanz has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jackjackdrpr has quit [Max SendQ exceeded]
seanosaur has quit [Client Quit]
beilabs_________ has quit [Ping timeout: 264 seconds]
NGC3982 has joined #ruby
doki-worry has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 265 seconds]
pengin has quit [Ping timeout: 252 seconds]
patrick99e99 has quit [Ping timeout: 252 seconds]
_1_mohammed2 has joined #ruby
<NGC3982> I'm new to Ruby. I'm trying to install subbot (from git hub) and it tells me to 'bundle install'. It tries to connect to rubygems.org - which seems to be down.
<NGC3982> Is there any way around it, or do i wait for the site to go up again?
<shevy> NGC3982 yeah it is down, can't install gems from there right now
beilabs_________ has joined #ruby
<shevy> in theory if you were to use non-rubygems.org gems, but not sure if there is a clean way to force that
* NGC3982 is not even sure why he needs more online content.
<NGC3982> Ok.
<shevy> you just need to fullfil the dependencies
<shevy> I always keep gems I use locally too
<NGC3982> Ok.
<_1_mohammed2> :'(
<NGC3982> The thing is, when the site is up i know i'll get an error message (i was originally about to contact you guys for).
anaeem1_ has quit [Remote host closed the connection]
<NGC3982> But i'll wait.
<NGC3982> Better not make bad things horribly more worse.
sambao21 has joined #ruby
<shevy> that sounds exciting
<shevy> to wait and wait - just for an error to come next
<jjconti> there should be a mirror
philpd has quit [Ping timeout: 252 seconds]
<NGC3982> shevy: I know. When i got it while installing the application last night i notet that the error message was horribly hard to google, and i did not really understand it.
<NGC3982> But yes, i'll wait (or i'll have to re-install linux again).
ringaring has joined #ruby
Trynemjoel has joined #ruby
pwh has joined #ruby
aspires has quit []
pwh_ has joined #ruby
beilabs_________ has quit [Ping timeout: 265 seconds]
ringarin has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
anaeem1_ has joined #ruby
decoponio has quit [Quit: Leaving...]
pwh has quit [Read error: Connection reset by peer]
ringaroses2 has joined #ruby
ghr has joined #ruby
goodenough has quit [Remote host closed the connection]
ndrei has quit [Read error: Connection reset by peer]
beilabs_________ has joined #ruby
ndrei has joined #ruby
valeriansaliou has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
linojon has quit [Quit: linojon]
_1_mohammed2 has quit [Quit: WhatsChat IRC Android APP]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
goodenough has joined #ruby
felltir has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
ringaring has quit [Ping timeout: 264 seconds]
AndyBotwin has joined #ruby
AndyBotwin has quit [Changing host]
AndyBotwin has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
jimmyy has joined #ruby
dr4 has joined #ruby
jrochkind has joined #ruby
diego_ar has quit [Remote host closed the connection]
theRoUS|afk|bbia is now known as theRoUS|bbia
theRoUS|bbia is now known as theRoUS
<dr4> can anyone help me out with mod_ruby? ;_; tried 3 distros and nothing worked so far
<redjack1964> rubygems.org is down :-(
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
beilabs_________ has quit [Ping timeout: 272 seconds]
<centrx> dr4, I think mod_ruby is ancient and no one uses it
weeb1e has joined #ruby
<dr4> oh, thanks. what sould I use then?
<centrx> passenger, unicorn, puma, rainbows, thin, ...
pengin has joined #ruby
<centrx> nginx as reverse proxy
<centrx> For development you can just use the built-in webrick
CpuID has joined #ruby
CpuID has joined #ruby
chu has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
<dr4> hm, thank you very much
<dr4> I'll look into it
wallerdev has joined #ruby
<dr4> what would you recommend for centos?
chu has joined #ruby
j_mcnally has joined #ruby
sevvie has joined #ruby
beilabs_________ has joined #ruby
ringaring has joined #ruby
<centrx> dr4, I don't know, distro shouldn't matter much
valeriansaliou has quit [Quit: Be back later ...]
ringaring has quit [Read error: Connection reset by peer]
<centrx> dr4, #rubyonrails may have more info about the best web server for your situation
<centrx> dr4, thin is good for basic things
_whitelogger_ has joined #ruby
qubit has joined #ruby
bestie_ has joined #ruby
tiagonobre_ has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
huddy_ has joined #ruby
mary5030_ has joined #ruby
bdnelson has quit [Quit: Textual IRC Client: www.textualapp.com]
ht has joined #ruby
lucianosousa_ has joined #ruby
<jrochkind> as far as security, I dont' know if there's any reason to choose one over the other, they all ought to be secure. (Aside from WEBrick, which just cause nobody uses it for production and it's not intended for such, might be more likely to have security problems)
peterhu_ has joined #ruby
sumark_ has joined #ruby
<jrochkind> For ease of use with good performance, I personally like passsenger a lot.
iceden has quit [Remote host closed the connection]
kalleth_ has joined #ruby
jerrett_ has joined #ruby
heftig_ has joined #ruby
quazimod1 has joined #ruby
xsdg_ has joined #ruby
kish_ has joined #ruby
dazeddev_ has joined #ruby
<jrochkind> passenger installs fine on centos, i've done it.
atta_ has joined #ruby
jzigmund_ has joined #ruby
triple_b_ has joined #ruby
qubit has left #ruby [#ruby]
byte48_ has joined #ruby
genpaku_ has joined #ruby
<dr4> ok, thank you
jdj_dk has quit [Remote host closed the connection]
<dr4> passenger it is then
vyorkin1 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<dr4> did you use apache or nginx? or is that a stupid question?
<dr4> because I'd like to use apache
Crazy_Atheist has quit [Ping timeout: 240 seconds]
ponga has quit [Ping timeout: 258 seconds]
<jrochkind> not a stupid question. i use apache. many people use nginx. use whichever you already have and are comfortable with.
danijoo has joined #ruby
<jrochkind> unless you feel like learning nginx, just use apache, sure.
<dr4> hm, no, I like nginx
<dr4> but I have only worked with apache so far
<jrochkind> ha, you just said you'd like to use apache!
oleo__ has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
Prawnzy_ has joined #ruby
noop has quit [Ping timeout: 258 seconds]
<jrochkind> you can use either one, both will work fine. nginx is thought to have better performance. the difference is probably of no account unless you are at a very large scale.
diego_ar has joined #ruby
tekacs has joined #ruby
blackgoat_ has joined #ruby
leslie_ has joined #ruby
cescalante has joined #ruby
<dr4> yeah, it's not high demand
shtirlic_ has joined #ruby
tekacs is now known as Guest36707
Jello__Raptor has joined #ruby
mclee_ has joined #ruby
v0n has quit [Quit: WeeChat 1.0.1]
<jrochkind> some people like nginx better, it's got somewhat more sane configuration and such. either will work fine with passenger.
mozzarel1 has joined #ruby
treehug88 has quit [Remote host closed the connection]
CpuID has quit [Quit: This computer has gone to sleep]
<jrochkind> you have to recompile nginx to install passenger, since nginx doesn't have plugins. apache is probably simpler. i don't really know, i've only used apache.
eichenwald1 has joined #ruby
tzero_ has joined #ruby
it0a_ has joined #ruby
treehug88 has joined #ruby
lpaste_ has joined #ruby
<jrochkind> passenger installation should be straightforward either way, the passenger team is really good at making things that Just Work.
v0n has joined #ruby
arrubin_ has joined #ruby
musicmatze1 has joined #ruby
M-Techni1 has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
JStoker has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
JStoker has joined #ruby
rotor` has joined #ruby
benj1 has joined #ruby
arrubin_ is now known as arubin
ndrei has joined #ruby
stunder has quit [Ping timeout: 252 seconds]
mleone_ has joined #ruby
Narzew has quit [Ping timeout: 245 seconds]
pasv^_^_ has joined #ruby
ConstantineXVI has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
nkumari has quit [Remote host closed the connection]
SOLDIERz_ has quit [Quit: Be back later ...]
dopie has joined #ruby
greenis has quit [Quit: Leaving]
Crazy_Atheist has joined #ruby
mleone has quit [Ping timeout: 264 seconds]
bulters has quit [Ping timeout: 245 seconds]
duncannz has joined #ruby
goodenough has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
ctp has quit [*.net *.split]
lucianosousa has quit [*.net *.split]
baweaver has quit [*.net *.split]
vyorkin has quit [*.net *.split]
dfinninger has quit [*.net *.split]
devoldmx has quit [*.net *.split]
tiagonobre has quit [*.net *.split]
oleo has quit [*.net *.split]
eichenwald has quit [*.net *.split]
triple_b has quit [*.net *.split]
arrubin has quit [*.net *.split]
spastorino has quit [*.net *.split]
it0a has quit [*.net *.split]
j2p2 has quit [*.net *.split]
Photism has quit [*.net *.split]
maestrojed has quit [*.net *.split]
kish has quit [*.net *.split]
atta has quit [*.net *.split]
quazimodo has quit [*.net *.split]
exadeci has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
sumark has quit [*.net *.split]
Vile` has quit [*.net *.split]
bracky has quit [*.net *.split]
apeiros has quit [*.net *.split]
toretore has quit [*.net *.split]
comma8 has quit [*.net *.split]
kith has quit [*.net *.split]
jhc76 has quit [*.net *.split]
dazeddev has quit [*.net *.split]
hfp has quit [*.net *.split]
ht__th has quit [*.net *.split]
bennyDaBeard has quit [*.net *.split]
cescalante_ has quit [*.net *.split]
bestie has quit [*.net *.split]
huddy has quit [*.net *.split]
Prawnzy has quit [*.net *.split]
maZtah has quit [*.net *.split]
aspiers has quit [*.net *.split]
_whitelogger has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
Guest45628 has quit [*.net *.split]
pasv^_^ has quit [*.net *.split]
twistedpixels has quit [*.net *.split]
peterhu has quit [*.net *.split]
mclee has quit [*.net *.split]
rotor has quit [*.net *.split]
SpaceKookie has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
shtirlic has quit [*.net *.split]
chrisseaton has quit [*.net *.split]
heftig has quit [*.net *.split]
blackgoat has quit [*.net *.split]
MiracleBlue has quit [*.net *.split]
unclouded has quit [*.net *.split]
tzero has quit [*.net *.split]
jimeh has quit [*.net *.split]
byte48 has quit [*.net *.split]
jzigmund has quit [*.net *.split]
Dwarf has quit [*.net *.split]
RoryHughes has quit [*.net *.split]
mattjbarlow has quit [*.net *.split]
Jello_Raptor has quit [*.net *.split]
lpaste has quit [*.net *.split]
shevy has quit [*.net *.split]
M-Technic has quit [*.net *.split]
xsdg has quit [*.net *.split]
mozzarella has quit [*.net *.split]
jerrett has quit [*.net *.split]
genpaku has quit [*.net *.split]
musicmatze has quit [*.net *.split]
kalleth has quit [*.net *.split]
leslie has quit [*.net *.split]
snapcase has quit [*.net *.split]
last_staff has quit [Remote host closed the connection]
lucianosousa_ is now known as lucianosousa
Jello__Raptor is now known as Jello_Raptor
M-Techni1 is now known as M-Technic
Fire-Dragon-DoL has quit [Quit: Leaving.]
tiagonobre_ is now known as tiagonobre
failshell has joined #ruby
spastorino_ is now known as spastorino
stunder has joined #ruby
bestie_ is now known as bestie
exadeci_ is now known as exadeci
chrisseaton_ is now known as chrisseaton
ndrei has quit [Ping timeout: 258 seconds]
Narzew has joined #ruby
oleo__ has joined #ruby
comma8 has joined #ruby
Fire-Dragon-DoL has joined #ruby
econerd4ever has quit [Remote host closed the connection]
oleo__ is now known as oleo
vyorkin1 has quit [Quit: WeeChat 1.0.1]
havenwood has quit [Remote host closed the connection]
diego_ar has quit [Remote host closed the connection]
TinkerTyper has quit [Quit: ZNC restarting...]
beilabs_________ has quit [Ping timeout: 258 seconds]
MiracleBlue_ is now known as MiracleBlue
huddy_ is now known as huddy
beilabs_________ has joined #ruby
fabrice31 has joined #ruby
maZtah_ is now known as maZtah
jheg has joined #ruby
evanjs has quit [Remote host closed the connection]
_whitelogger has joined #ruby
_whitelogger has joined #ruby
<nateberkopec> toertore: properties?
<apeiros__> god I hate those assholes (the dos'ers)
<apeiros__> toerte… :D
<toertore> dosers are assholes, this is true
<jrochkind> toertore: `about`? `metadata`?
Gadgetoid has quit [Ping timeout: 244 seconds]
<toertore> nateberkopec: best one yet
<nateberkopec> better probably to pick something based on the kind of data you were storing
<jheg> banzrf nah I aint got leathery wings
<lucianosousa> another DDos? hacksummit already said is that the problem with them today
nkumari has quit [Remote host closed the connection]
<toertore> nateberkopec: it's arbitrary :)
<nateberkopec> ouch
<nateberkopec> lol
<toertore> pretty much a shitty key/value store in a table
nkumari has joined #ruby
<nateberkopec> Call it PropertyManager ;)
charliesome has joined #ruby
<jrochkind> keys_and_values?
<nateberkopec> not_a_hash
<toertore> yeah
<jrochkind> stored_values
<toertore> mongos
freerobby has quit [Quit: Leaving.]
beilabs_________ has quit [Ping timeout: 256 seconds]
<jrochkind> fields
epicmonkey has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<toertore> fields is a good one
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<Rene> nateberkopec: actually i was trying ton install a gem, and had trouble with getting to https://rubygems.org, so i thouvht that maybe my ruby-install was too old.. apparently https://rubygems.org has the same problem as lvm.io
<toertore> damnit, i want to use "attributes"
epicmonkey has left #ruby [#ruby]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
arubin is now known as arrubin
beilabs_________ has joined #ruby
rdark has quit [Quit: leaving]
<toertore> going with properties, thanks nateberkopec
<nateberkopec> (thumbsup)
<toertore> one virtual awkward hug for you
mayday_jay has quit [Quit: c ya!]
rylev has quit [Remote host closed the connection]
<nateberkopec> i feel... awkward.
<toertore> relax.. just let it happen
konsolebox has joined #ruby
x1337807x has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
moted has joined #ruby
pwh_ has quit []
tesaf has quit [Quit: Lost terminal]
ghr has joined #ruby
che has joined #ruby
x1337807x has quit [Client Quit]
Alina-malina has quit [Ping timeout: 272 seconds]
che is now known as Guest96162
anaeem1_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
sevvie has joined #ruby
leslie_ has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
psycho_one has quit [Ping timeout: 258 seconds]
sambao21 has joined #ruby
jherbst has quit [Ping timeout: 255 seconds]
beilabs_________ has quit [Ping timeout: 264 seconds]
failshell has quit [Remote host closed the connection]
Alina-malina has joined #ruby
peterhu_ is now known as peterhu
francisfish has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
oleo has quit [Quit: Verlassend]
s2013 has quit [Remote host closed the connection]
CpuID has joined #ruby
oleo has joined #ruby
wjimenez5271 has joined #ruby
thumpba has joined #ruby
nkumari has quit [Remote host closed the connection]
devoldmx has joined #ruby
blackmesa has joined #ruby
<Rene> is there existing a mirror for rubygems.org?
rshetty has joined #ruby
Dopagod has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
fxn has quit [Quit: zZzZzZ...]
ptrrr has quit [Quit: ptrrr]
x1337807x has joined #ruby
mleone_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triple_b_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beilabs_________ has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
linojon has quit [Quit: linojon]
allcentury has quit [Ping timeout: 250 seconds]
nkumari has joined #ruby
jimmyy has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
ohaibbq has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 264 seconds]
dotix has joined #ruby
workmad3 has quit [Client Quit]
workmad3 has joined #ruby
ponga has joined #ruby
<dotix> hey guys. What's the best way to create a Hash from an array => %w(key value key value) ?
whoisjake has quit []
<jheg> to_h
<jheg> ?
<apeiros__> ha
<apeiros__> *na
apeiros__ is now known as apeiros
<dotix> to_h on arrays? :D
<apeiros> >> Hash[%w(key value key value)]
<eval-in__> apeiros => /tmp/execpad-0b0091c748fa/source-0b0091c748fa:2: warning: wrong element type String at 0 (expected array) ... (https://eval.in/229128)
<rpag> Hash[*a].
<apeiros> >> Hash[*%w(key value key value)]
<eval-in__> apeiros => {"key"=>"value"} (https://eval.in/229129)
<dotix> so with * ?
<apeiros> to_h requires [[k1, v1], [k2, v2], …]
circ-user-cnelk has quit [Ping timeout: 256 seconds]
<jheg> Oh I thought you could array.to_h
<jheg> no?
reinaldob has quit [Remote host closed the connection]
<apeiros> no. as said ^
dfinning_ has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 250 seconds]
<dotix> yeah.. thanks apeiros
x1337807x has joined #ruby
beilabs_________ has quit [Ping timeout: 272 seconds]
<dotix> I was looking over docs but didn't find *
<eam> weird that Array doesn't have to_h
MrIlyas has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Gadgetoid has joined #ruby
<apeiros> it has
<rpag> it does since ruby2
<jheg> apeiros: knew I shouldn’t have piped up
<jheg> :)
it0a_ has quit [Quit: WeeChat 1.0.1]
<dotix> because to_h have to interpret array as [key, value] pairs
<apeiros> but as I said before, the given structure is wrong for it.
<eam> also weird that it deals in pairs
dkphenom has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
felltir has quit []
<apeiros> it's the reverse of Hash#to_a
<apeiros> that's quite sane IMO
<eam> yeah that one's weird too
<workmad3> eam: it's the other format that Hash[] will accept
<eam> super clumsy to work with pairs
<workmad3> eam: what's weird about Hash.to_a giving you [[k,v](,[k,v]...)] pairs? :)
<apeiros> makes hash.each and hash.to_a.each equivalent
<eam> workmad3: it's almost never what you want
<apeiros> sure?
<apeiros> I have a different opinion then
<rpag> how else would you know they're pairs?
beilabs_________ has joined #ruby
<eam> btw, to_h isn't in 2.0.0p451 best I can tell
<eam> rpag: ordering
<apeiros> 20>> [[1,2]].to_h
<eval-in__> apeiros => undefined method `to_h' for [[1, 2]]:Array (NoMethodError) ... (https://eval.in/229130)
codecop has quit [Remote host closed the connection]
<apeiros> indeed, 2.1 then.
<rpag> you expect [1,2,3,4] ?
<eam> rpag: yeah
<apeiros> eam: perler?
<eam> natch
<workmad3> tbh, I've never really seen a need to convert an array to a hash
<workmad3> *hash to an array
jonathanwallace has joined #ruby
j2p2 has joined #ruby
<workmad3> (bleh, wrong way around)
SpaceKookie has joined #ruby
jhc76 has joined #ruby
<dotix> than you didn't parse anything
hfp has joined #ruby
<dotix> it's a common routine I guess
<eam> %{key val k2 v2}.to_h # I want this
nfk has quit [Quit: yawn]
<eam> %w
<apeiros> >> %{key val k2 v2}.each_slice(2).to_h
<eval-in__> apeiros => undefined method `each_slice' for "key val k2 v2":String (NoMethodError) ... (https://eval.in/229131)
<apeiros> >> %w{key val k2 v2}.each_slice(2).to_h
<eval-in__> apeiros => {"key"=>"val", "k2"=>"v2"} (https://eval.in/229132)
yfeldblum has joined #ruby
<workmad3> dotix: yeah, I often want array to hash
<workmad3> dotix: rarely hash to array
aspiers has joined #ruby
<dotix> aa sorry
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> I wish my Hash.zip was core
<workmad3> dotix: muddled them up typing it out :)
<dotix> I though you didn't want array to hash
<apeiros> (Hash.zip(keys, values))
<dotix> :D
shevy has joined #ruby
maestroj_ is now known as maestrojed
<rpag> apeiros-zip.patch => ruby-core.
<eam> also miss slice syntax :(
twistedpixels has joined #ruby
amitchellbullard has joined #ruby
havenwood has joined #ruby
henesy has joined #ruby
<apeiros> lol this game… "tip 49: too much gaming can ruin your social life" :D
unclouded has joined #ruby
<eam> s/ruin/become/
<workmad3> apeiros: too much social life can ruin your gaming
patrick99e99 has joined #ruby
beilabs_________ has quit [Ping timeout: 245 seconds]
<oleo> and now the sane reductio: too much life can ruin you!
<oleo> lol
<apeiros> and the name of the main char is "regret". awesome.
solidus-river has joined #ruby
<rpag> what game?
<apeiros> are you still just living? or already gaming?
<solidus-river> in a class method defintion whats does @ mean when it has nothing following it
<solidus-river> for example
<apeiros> rpag: not sure. zenonia I think. I'd have to quit it to see :)
<workmad3> oleo: biggest con of life - no one gets out of it alive
<solidus-river> in 5.methods there is a -@ and +@
<workmad3> solidus-river: unitary + and -
<solidus-river> i know thats the overloaded + / - but what is the @ / what does that mean
<solidus-river> i've never seen @ without a name after it
<workmad3> solidus-river: e.g. -1 and +1
<apeiros> s/unitary/unary/
<workmad3> apeiros: ah yeah, unary
<eam> workmad3: well not -1
<eam> but - 1
<eam> or -x
<solidus-river> workmad3: so what does the @ signify there?
davasaurous has quit [Remote host closed the connection]
<eam> solidus-river: it distinguishes from the infix -
<workmad3> solidus-river: that it's the unary method rather than the binary infix
<eam> a - b; -a
<apeiros> it's part of the method name
<eam> two separate operators
<apeiros> that is, `-x` is syntax sugar for `x.-@`
<solidus-river> oh i get it
s2013 has joined #ruby
<solidus-river> so is @ used for most unary infix operators?
<eam> but -1 isn't -@
<apeiros> yeah. -1 is a literal
<apeiros> doesn't invoke a method
<apeiros> solidus-river: afaik only +/-
<apeiros> the two other unary operators I know don't use @. they're ~ and !
<eam> >> class Fixnum; def -@; 42; end;end; [-1, - 1, -(1)]
<eval-in__> eam => [-1, 42, 42] (https://eval.in/229133)
<workmad3> solidus-river: they're only used for + and - to distinguish them from the binary ops
freerobby has quit [Quit: Leaving.]
<apeiros> I'm always surprised that `- 1` is not converted to `-1`
patrick99e99 has quit [Ping timeout: 272 seconds]
<workmad3> solidus-river: as ruby doesn't support parametric polymorphic functions
<solidus-river> kk, i get it now, but @ seems like an unfortunate choice since @ usually signifies an instance attribute in a class definition
jonr22 has joined #ruby
<workmad3> solidus-river: care to suggest an alternative? :)
<eam> they're so rare it'd probably be more clear to add something like "_unary" instead
renderful has joined #ruby
diego_ar has joined #ruby
baweaver_ has quit [Remote host closed the connection]
Solsist has joined #ruby
yfeldblum has quit [Remote host closed the connection]
godd2 has joined #ruby
rkalfane has joined #ruby
Photism_ has quit [Quit: Leaving]
patrick99e99 has joined #ruby
rkalfane has quit [Read error: Connection reset by peer]
beilabs_________ has joined #ruby
jimbach has quit [Remote host closed the connection]
shazaum has joined #ruby
<eam> it's interesting how ruby has basically no rules around what can be a method name
j_mcnally has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 245 seconds]
jonr22 has quit [Ping timeout: 264 seconds]
diego_ar has quit [Ping timeout: 258 seconds]
<workmad3> eam: you can't end a method with ?!
<workmad3> eam: or !?
jobewan has quit [Quit: Leaving]
<eam> >> define_method('!?!?!?!?!') {"hello world"}; send '!?!?!?!?!'
<eval-in__> eam => "hello world" (https://eval.in/229134)
<workmad3> eam: bah :P
<eam> can't parse it, sure
<workmad3> eam: cheating doesn't count ;)
<shevy> eam used too much ruby
<shevy> he is forgetting all his perl
banister has joined #ruby
<eam> ruby is pretty much way more awesome than perl
eindoofus_ has quit [Ping timeout: 255 seconds]
<eam> like, what's the shortest possible method name in ruby
<shevy> hey you must not hate on perl
<shevy> <eam> well that's super dumb
<shevy> <eam> I'm disappointed in perl
<shevy> well one char I guess
<eam> shevy: less
<shevy> how can you have a method name with less than one char?
<eam> >> define_method('') {"hello world"}; send ''
<eval-in__> eam => "hello world" (https://eval.in/229135)
davasaurous has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
<dotix> :))
<shevy> is that really a method?
beilabs_________ has quit [Ping timeout: 256 seconds]
<eam> yes
<eam> :'' is a valid symbol
<shevy> huh
<shevy> >> send
<eval-in__> shevy => no method name given (ArgumentError) ... (https://eval.in/229136)
<workmad3> shevy: there's a difference between nil and ''
<eam> well you have to give it a name
jackjackdrpr has joined #ruby
<eam> but the name can be zero characters long
charliesome has quit [Quit: zzz]
<shevy> we are not using nil here workmad3
<havenwood> def
diego_ar has joined #ruby
<shevy> how do you name ''
<workmad3> shevy: by not using an argument you sent nil ;)
<eam> >> :''
<eval-in__> eam => :"" (https://eval.in/229137)
<shevy> oh that is a dumb default
charliesome has joined #ruby
<shevy> >> :
<eval-in__> shevy => /tmp/execpad-9aea3406140d/source-9aea3406140d:2: syntax error, unexpected ':' (https://eval.in/229138)
<shevy> is that a symbol of length 0
<eam> havenwood: eval-in won't work with unicode :(
<shevy> >> ::
<eval-in__> shevy => /tmp/execpad-ec75ca138467/source-ec75ca138467:3: syntax error, unexpected keyword_rescue, expecting tCONSTANT ... (https://eval.in/229139)
cloaked1 has joined #ruby
cloaked1 has joined #ruby
<eam> >> ''.to_s
<eval-in__> eam => "" (https://eval.in/229140)
<shevy> huh... that's a rescue
<eam> >> ''.to_sym
<eval-in__> eam => :"" (https://eval.in/229141)
nkumari has quit [Remote host closed the connection]
<workmad3> shevy: you need to use the :"..." syntax to have 'fun' symbol literals (such as a 0-length symbol)
<shevy> yes yes we got it now ... '' is a valid method
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joshua___ has joined #ruby
<shevy> what about object.''
beilabs_________ has joined #ruby
<workmad3> shevy: parse error
<shevy> lol
<workmad3> shevy: need to use send ;)
<shevy> now you start to talk like eval-in__ workmad3
<shevy> eam is always looking for corner cases
<workmad3> eam: here's a question - can you manage to quine a symbol? :)
spider-mario has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
<joshua___> Hey guys, how can I vendor my gems for my Rails3 application? Not requiring a network. i.e. from my local machine into /vendor
baweaver has joined #ruby
yfeldblum has joined #ruby
joelteon has joined #ruby
<jrochkind> a popular question at the moment i suspect.
Dwarf has joined #ruby
goodenou_ has quit [Remote host closed the connection]
<joelteon> RIP
<joshua___> lol jrochkind indeed
Mia has quit [Read error: Connection reset by peer]
j_mcnally has joined #ruby
<eam> >> a = %|define_method(a) {a}; send a|; eval a
<eval-in__> eam => "define_method(a) {a}; send a" (https://eval.in/229142)
<eam> not a quine though :(
kiyote23 has joined #ruby
<jrochkind> the fact that bundler documentation is not currently up makes it more challenging to answer, although there's probably a cached version in google/wayback
nkumari has joined #ruby
<workmad3> joshua___: you can use 'bundle pack' to produce a 'packed' bundle, which is a copy of all the .gem files, which can then be installed without network access
Hijiri has quit [Quit: WeeChat 1.0.1]
<workmad3> joshua___: probably better than storing a fully vendored gem repo in your repository, as you maintain at least some machine independence (native extensions will still get compiled on the target machine, rather than simply breaking if you happen to develop on a mac and deploy on debian)
FutureTense has joined #ruby
adamski2600 has quit []
beilabs_________ has quit [Ping timeout: 272 seconds]
<workmad3> joshua___: probably won't help you until rubygems is back up though
<FutureTense> im trying to install jekyll and other packages but I'm getting a certificate verify failed problem. This is on Windows 8
<joshua___> workmad3: thanks :/
<joshua___> I need to deploy desperately
<FutureTense> oh, is ruby gems down now?
<jrochkind> ah, i was going to ask about that! how powerful is `bundle pack` for architecture differences though? for instance, concurrent_ruby has native extensions that only work on linux. If I bundle pack on OSX, and move it to linux, do I lose the native extensions?
Hijiri has joined #ruby
SCHAAP137 has joined #ruby
<jrochkind> FutureTense: DNS to rubygems is down, which is causing all manner of problems
<FutureTense> oh... that makes sense
kiyote23 has quit [Ping timeout: 244 seconds]
deric_skibotn has quit [Ping timeout: 244 seconds]
<workmad3> jrochkind: as long as it's a single .gem file, rather than separate platform-specific gems (like the x86-mingw32 platform variants), you'll pack the entire file, so it should work
devdazed has quit [Quit: Computer has gone to sleep.]
centrx has quit [Quit: Did gyre and gymble in ye wabe]
evanjs has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
DLSteve has quit [Read error: Connection reset by peer]
gccostabr has quit [Remote host closed the connection]
<jrochkind> workmad3: ah, makes sense, I have no way of knowing which are platform-specific gems, but that could def be a problem.
DLSteve has joined #ruby
gccostabr has joined #ruby
<workmad3> jrochkind: it's a problem if you're installing with --deployment anyway
kirun has quit [Quit: Client exiting]
<jrochkind> workmad3: why would installing with —deployment make a difference?
<workmad3> jrochkind: because the Gemfile.lock will then count as being locked to a different version
baweaver has quit [Remote host closed the connection]
<jrochkind> ah, righto. hmm.
mattjbarlow has joined #ruby
RoryHughes has joined #ruby
beef-wellington has quit [Ping timeout: 252 seconds]
deric_skibotn has joined #ruby
<jrochkind> workmad3: wait, I don't think the Gemfile.lock has platform-specificities in it, does it? Needs further investigation.
<workmad3> jrochkind: I've certainly encountered people where the windows-specific version got locked to and it caused --deployment to flag up an error ;)
<jrochkind> workmad3: clearly, I'm probably not the only one wondering if there could/should be a way to deal with this in way that works accross platform differences, to create a way to do deploys reliably without weird edge cases, when rubygems is unavailable.
freezey has joined #ruby
ohaibbq has joined #ruby
<workmad3> jrochkind: tbh, I think it's probably correct that if your Gemfile.lock last saw a windows-specific precompiled version and you're installing on a linux target then there's a definite inconsistency
<eam> finalizers calling close() :(
Solsist has quit []
CpuID has quit [Quit: This computer has gone to sleep]
banister has quit [Ping timeout: 250 seconds]
<workmad3> jrochkind: as for reliable deploys... you could run your own gem repo with mirrored copies of all the gems you need... you could build an omnibus installation of your app with all your gems (and all other required libraries) already installed into it, and then install that as a .deb or .rpm
stunder has quit [Quit: Screw you guys I'm going home]
graydot has quit [Quit: graydot]
diego_ar has quit []
<s2013> damn it. is rubygems still down
linojon has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<workmad3> jrochkind: and you could hook either of those up to a CI build server, so that the build server can push new/updated gems to a repository or build your .deb/.rpm file and push that to a company package repository (preferably starting with dev)
<jrochkind> workmad3: an automatic mirror is intriguing, built into bundler so every time you install something it stores that thing in your mirror automatically. Still platform-specific issues, though. The platform-specificities seem like the main sticking point, without them gem pack would be fine.
rylev has joined #ruby
<workmad3> jrochkind: so in the case of a failure you're not stopped from deploying your current version, just your builds can't go ahead if they require gem changes
Alina-malina has quit [Ping timeout: 264 seconds]
<jrochkind> workmad3: in general, I don't think Gemfile.lock has platform-specificness, it just lists the gem version you have installed. But there could be weird edge cases. Ah, so long as the gem has the same name and version on every platform — where it would woudl break where one platform has a dependency on another single-platform gem, like widget-jruby or widget-32linux or whatever.
<workmad3> jrochkind: I personally don't see the platform issue as a sticking point... if you're looking for reliable builds/deploys, then you should be running your tests, dev and staging servers on at least the same architecture
valeriansaliou has joined #ruby
<jrochkind> workmad3: i think it's pretty common to dev on osx but staging/prod on something else.
benj1 has quit [Quit: WeeChat 0.4.2]
banister has joined #ruby
StephenA1 has joined #ruby
snath has quit [Ping timeout: 264 seconds]
<workmad3> jrochkind: ah, by 'dev' I don't mean 'dev machines' I mean 'dev server' as in 'this is the current absolutely latest version of the code so we know it deploys cleanly and devs can poke at it'
rikai has quit [Ping timeout: 240 seconds]
rylev has quit [Remote host closed the connection]
<jrochkind> workmad3: i think it's pretty common to not have such a 'dev' environment. :)
gccostabr has quit [Quit: ZZZzzz…]
circ-user-cnelk has joined #ruby
<workmad3> jrochkind: I wouldn't do without it ;)
ghr has joined #ruby
beilabs_________ has joined #ruby
<workmad3> jrochkind: but still... your CI server producing your builds, staging and prod should be homogenous to at least OS level, IMO
<jrochkind> you're unusual. I do fine with an OSX dev box, a staging server, and a production server. The problem is that when rubygems is gone, with a typical capistrano setup, there's no good way to go from dev workstation to staging OR from staging to prod.
CpuID has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
s2013 has quit [Quit: Leaving]
thumpba has joined #ruby
<jrochkind> unless no gem dependencies have changed, of course.
beilabs_________ has quit [Read error: Connection reset by peer]
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
<shevy> all breaks down without rubygems.org
<waxjar> i wonder if there are any p2p package managers
davasaurous has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 250 seconds]
rkalfane has joined #ruby
hydrajump has joined #ruby
<godd2> like a Rubygems Blockchain?
<workmad3> jrochkind: heh :) I try to stay away from capistrano builds triggered from dev machines... they seem unnecessarily primitive (I'd like to get a company artifact server set up... but alas, no time so I'm still only doing chef-managed installs with bundling happening on deploy)
ConstantineXVI has joined #ruby
<waxjar> godd2: i have no idea what it would look like
<hydrajump> has anyone else experienced memory leaks with ruby 2.1.x on heroku?
davasaurous has joined #ruby
ConstantineXVI has quit [Remote host closed the connection]
<jrochkind> workmad3: so even in your setup, you're not gonna be able to deploy without rubygems, if gem dependencies aren't already set up on the target machine, right?
<hydrajump> I'm trying to help a friend diagnose his first rails 4 app.
rylev has joined #ruby
<workmad3> jrochkind: no... but I know the way I'd solve that (as already said)
<workmad3> jrochkind: and it's nothing particularly novel, tbh
<godd2> waxjar each push could be a transaction, and then set the difficulty so that every 30 minutes a new block is forged by the network
ghr has quit [Ping timeout: 264 seconds]
<jrochkind> making custom .deb/.rpm seems like overkill for this to me. But to each their own, it would certainly be one solution.
<godd2> no wait, the other direction. make blocks happen every minute or so. orphan blocks wont matter if there's no reward for completing a block
<jrochkind> and now i'm off.
<workmad3> godd2: rubygems would need to sort out the difficulties in producing signed, verifiable packages before that would be feasible, IMO
momomomomo has joined #ruby
StephenA1 has quit [Quit: StephenA1]
<workmad3> jrochkind: you could also produce docker images ;)
snath has joined #ruby
nkumari has quit [Remote host closed the connection]
SCHAAP137 has quit [Quit: Leaving]
<workmad3> jrochkind: basically all the solutions work on moving the grabbing of dependencies from deploy-time to a build step though (bundle pack, creating a .deb, push new dependencies to a mirror, create a new docker image...)
<workmad3> jrochkind: hf :)
<jrochkind> yeah, I like bundle pack, except for the platform specificity issues.
<workmad3> jrochkind: only time I've seen issues is windows dev -> *nix deploy
<godd2> workmad3 you mean so that pushes are only possible by the original private key holder?
giuseppesolinas has joined #ruby
graydot has joined #ruby
linojon has quit [Quit: linojon]
<workmad3> godd2: no, that would be problematic I suspect (orphaned names are a PITA)
<jrochkind> i can think of other cases where it could be a problem, with native extensions that only install on some platforms. i've been working with ruby_concurrent lately, which does such things, not sure if it does them in a way that would cause a problem here (and they keep reconsidering how they do it too).
Alina-malina has joined #ruby
<workmad3> godd2: but there needs to be a better verification and key distribution setup, so that we can easily verify that the author of a gem is someone we expect/trust
rshetty has joined #ruby
<jrochkind> A solution that "should probably work unless one of the gems happens to have done something that is known to break it" is not a trustworthy one, heh
eichenwald1 has quit [Quit: WeeChat 1.0.1]
Soliah has joined #ruby
baweaver has joined #ruby
thumpba has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 255 seconds]
<godd2> workmad3 there'd be a separate problem of the size of a push. surely every node wouldn't want to hold on to arbitrarily sized data. that could easily get out of hand
bulters has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
<workmad3> godd2: it would be pretty awesome if that information could be embedded in the blockchain too though... along the lines of needing to push a block with your key in it before you could push a gem release
<godd2> I suppose there could just be a p2p network that mirrors rubygems.org
<workmad3> godd2: and then the client flags up a warning if a gem author changes, so you can decide whether to trust the new author
hackeron_ has joined #ruby
zipper has joined #ruby
<workmad3> godd2: or pin a key, so the client only looks at, e.g. a rails gem pushed with the rails key authoring it
<zipper> Uh what could be causing this error?
b3itz has joined #ruby
finisherr has joined #ruby
<workmad3> zipper: if it's an error installing gems, probably that rubygems is down
dotix has quit [Ping timeout: 245 seconds]
<b3itz> hey guys.. what would the regexp be to search for an IPv4 address in a line?
<b3itz> im walking through a file searching for ipv4 addresses
hackeron has quit [Ping timeout: 265 seconds]
rshetty has quit [Ping timeout: 244 seconds]
<workmad3> b3itz: 4 blocks of up to 3 digits, separated by a .
evanjs has quit [Remote host closed the connection]
AndChat| has joined #ruby
baweaver has joined #ruby
<zipper> workmad3: rubygems is down?
<finisherr> Do “here docs” have string interpolation?
<workmad3> zipper: DNS issues
<b3itz> just curious about how to actually write that
evanjs has joined #ruby
Takle has quit [Remote host closed the connection]
CorySimmons has joined #ruby
<workmad3> b3itz: what have you attempted so far? :)
<b3itz> ................ :P
<zipper> `ERROR While executing gem ... (Gem::RemoteFetcher::UnknownHostError)`
<b3itz> i just started looking throgh examples
SCHAAP137 has joined #ruby
<zipper> `Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from https://rubygems.org/`
jimmyy has joined #ruby
nanashiRei has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
<zipper> An alternative to rubygems?
jimmyy has quit [Max SendQ exceeded]
duncannz has quit [Ping timeout: 255 seconds]
<workmad3> b3itz: try and figure something out, check out http://rubular.com to play
<b3itz> I'm looking at something like this "(?:\d{1,3}\.){3}\d{1,3}| "
<chrisja> started using Linode today, been trying to work out why rubygems wouldn't work for a couple of hours!
<godd2> zipper going to the gem's github and downloading it?
<soahccc> s/learned/tought (god my english is awful today)
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
<workmad3> chrisja: heh
<zipper> godd2: Will I get the dependencies?
MrIlyas has quit [Quit: Leaving]
<b3itz> ah that seems to work ok
<zipper> If it's a DNS issue I can just stick the IP address in place of the URL, no?
<godd2> zipper no youll have to grab those separately.
goodenough has joined #ruby
jimmyy has joined #ruby
<jhass> zipper: you can create an /etc/hosts entry
nkumari has joined #ruby
<bricker`work> zipper: that's right. Set `source` to the IP at the top of your Gemfile
jimmyy has quit [Max SendQ exceeded]
<bricker`work> or that
<godd2> zipper downloading the gems manually is not recommended, but it is a possible alternative if you *neeeeed* them
<zipper> I don't know the IP address
<zipper> :(
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
linojon has joined #ruby
<jhass> check my link
<bricker`work> zipper: two people have linked you to it in the past 3 minutes
<jhass> (read more than the initial tweet)
evanjs has quit [Ping timeout: 244 seconds]
<workmad3> jhass: I had issues with an /etc/hosts entry... it worked fine for fetching the source index, but couldn't manage to download from the aws repository mirrors
jimmyy has joined #ruby
<zipper> jhass: Yeah I'm sorry. I can be stoopid
<godd2> zipper they give an ip address in a tweet on the rubygems_status account
<jhass> workmad3: you need a second entry for bb-m., see my link
ponga has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
georgedrummond has joined #ruby
<godd2> lol I like how status.rubygems.org still says everything is okay
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<bricker`work> lol from twitter: "Lord! You guys have had this problem for years now. Any real solutions in sight? Have Oracle buy your "company"."
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<bricker`work> so much stupid
<workmad3> godd2: well, everything for rubygems.org *is* ok...
duncannz has joined #ruby
<workmad3> godd2: it's dnsimple that's having issues
<workmad3> godd2: pedantic, I know :)
<jhass> we do could use a bunch of public rubygems.org mirrors though
<workmad3> jhass: aha, I see it now :)
larissa has quit [Quit: Leaving]
<workmad3> jhass: cba to set up /etc/hosts now though... I'll hope that it's sorted by the morning :)
<jhass> dnsimple says they'll start scrubbing the ddos traffic any minute
echevemaster has joined #ruby
<havenwood> rubygems status is back for me: https://status.rubygems.org
<workmad3> havenwood: did you add a hosts entry? :)
jheg has quit [Quit: jheg]
<bricker`work> what does it mean to "scrub the traffic"? I've never heard that term.
mikepack has quit [Remote host closed the connection]
livingstn has joined #ruby
reactor has joined #ruby
parus has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
havenn has joined #ruby
Spami has joined #ruby
<zipper> Hey it's been a while since I used ruby. ANyway I tried installing some gems and got:
<zipper> `Your user account isn't allowed to install to the system Rubygems.`
<zipper> Shouldn't those gems just install into ~/.gem ? I don't see what's so complex. I'm running a bundle install.
SCHAAP137 has quit [Quit: Leaving]
<workmad3> bricker`work: I guess they have queues of requests that they need to empty out
havenwood has quit [Remote host closed the connection]
<bricker`work> workmad3: oh
axl_ has quit [Quit: axl_]
lbrf has joined #ruby
<bricker`work> workmad3: why do they need their data center to hook something up to do that?
<finisherr> Is it possible to pass multple values to an option with any of the existing ruby option parsers?
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh has joined #ruby
<workmad3> bricker`work: god knows where the queues and bad requests are... wouldn't surprise me if a lot of them were in routers that don't have remotely accessible admin panels to allow them to drop requests
SCHAAP137 has joined #ruby
<workmad3> bricker`work: I'm working on supposition here, but I can see why they'd need someone at the data-center to sort things
nkumari has quit [Remote host closed the connection]
rkalfane has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
<workmad3> bricker`work: hell, even more mundanely than that... their admin access would be at the *back* of the queues of data too ;)
adriancb has quit [Remote host closed the connection]
<bricker`work> workmad3: heh
<godd2> So DNSimple's solution to a volumetric DDoS is to increase capacity?
<bricker`work> godd2: what would you suggest?
<b3itz> ok, so im trying to read in a file line by line and look for IPv4 addresses... obviously im not far but im getting a syntax error(s) on line 12.. help!! https://gist.github.com/anonymous/08f79192835d16d8c24f
<Rene> why does not rubygems (and any other big site9 run their own dns??
nkumari has joined #ruby
<bricker`work> Rene: $$$$
stunder has joined #ruby
<bricker`work> (and time)
<bricker`work> but time = $$$ as we all know
<Rene> bricker`work: it does not cost anything...
<workmad3> Rene: it costs server resources
jheg has joined #ruby
<workmad3> Rene: an in order to cope with an attack, it costs a fair bit of server resources... and network resources... and administration time
gccostabr has joined #ruby
<Rene> i have run my own dns for my sites since i have had a server (about since 2000)
<bricker`work> Rene: maybe you should volunteer to do it for them :)
<Rene> and it's pretty much set and forget..
<Rene> all you need is two ip:s..
<workmad3> Rene: ever been targetted with a DDoS DNS amplification attack?
<bricker`work> Rene: Offer to do it for them for free
<bricker`work> I'm sure they would be thrilled
nanashiRei has joined #ruby
<godd2> bricker`work unless they realize that sometimes you get what you pay for :P
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Rene> well, if you get struck by DDoS, then it's targeted at you, and you can't do much about it. HAving a big DNS-provider struck by DDoS makes you just suffer :-(
<shevy> how much do they pay for PHP
<ericwood> fuck fuck fuck
<godd2> bricker`work also, my question was out of curiosity. Are there no other solutions to a volumetric ddos?
<ericwood> how do I get gems installed without rubygems.org?
<shevy> THIS IS ARMAGEDDON
<shevy> YOU CAN'T!
<ericwood> I need curses installed NOW for a presentation in an hour
<workmad3> ericwood: you go get a coffee
<ericwood> fucking shit fuck
<workmad3> ericwood: and cry
<shevy> hmm I don't have this .gem
<shevy> otherwise I could upload it quickly
baweaver has quit [Remote host closed the connection]
<ericwood> I've been preparing for this for a while...ugh...
<workmad3> ericwood: whereas I go to bed because it's midnight here and I don't need rubygems for another 10 hours :P
<ericwood> never ran any of my demos since I reimaged my machine
<shevy> WHO HAS THE CURSES GEM FOR ericwood
<ericwood> fork it over
<workmad3> ericwood: btw, there's details on how to get access with /etc/hosts on the twitter feed ;)
<Rene> having added this http://pastie.org/9754815 has not helped att all
<workmad3> ericwood: jhass has the link
b3itz has quit [Quit: Page closed]
<bricker`work> godd2: that's the shitty part about DDoS, is that there's no great programmatic way to avoid or alleviate it.
<shevy> Install
<shevy> $ gem install curses
<shevy> hahahaha ;)
treehug88 has quit []
<godd2> ericwood just download and use a version of ruby that still shipped with curses
<shevy> bricker`work can't you ignore the attacking IPs?
reactor has quit []
<ericwood> godd2: 1.9.3 did, right?
<shevy> aha! we are back with ruby 1.8.7!!!
<godd2> yea and I think 2.0.0
<bricker`work> shevy: if it's a serious attack, there will be thousands or millions of IPs
<ericwood> awesome, good thinking
Sawbones has joined #ruby
<shevy> bricker`work how can you have a million IPs
<workmad3> shevy: with a lot of volumetric attacks, the source IP isn't really the one running the target
<bricker`work> shevy: it's distributed
<godd2> 2.1.0 removed curses
baweaver has joined #ruby
<workmad3> shevy: basically, what you do is you send a packet to a DNS server with a spoofed source IP of the server you want to attack
davasaurous has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
<workmad3> shevy: and the DNS server responds with more data than was in the original packet
<workmad3> shevy: sending it on to the server you're attacking
<godd2> workmad3 you seem to know a lot about how to attack rubygems...
<ericwood> workmad3: well, I'm still boned because installing a new ruby version means installing the other deps for this
<shevy> godd2 he also wears a pyjama when he goes to bed
<workmad3> godd2: last time there was a DNS amplification attack, I read up on how they work ;)
<bricker`work> workmad3: JE ACCUSE!
<ericwood> which is impossible! ROFL
x1337807x has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<workmad3> godd2: anyway, I'm off to bed
<shevy> ericwood can't you download the zip and install it? https://github.com/ruby/curses - setup.rb should work just as gem install should
<workmad3> godd2: you'll know if it was me if the attack suddenly stops :P
lukeholder has joined #ruby
<soahccc> workmad3: am I right that DNSsec could protect against amplification attack?
<workmad3> soahccc: don't think so
b3itz has joined #ruby
CorySimmons has quit [Quit: Bye!]
<b3itz> hey guys, im getting several errors on this line and im not sure why.. im new to regex and ruby together: puts line.scan(?:\d{1,3}\.{3}\d{1,3})
<b3itz> the first is an unexpected $undefined on the d
Hijiri has quit [Quit: WeeChat 1.0.1]
<havenn> b3itz: a regexp literal starts and ends with /
<workmad3> soahccc: I'd need to think about it, but aiui, there isn't a way that DNSSec could protect against the way most DNS amplification attacks work
blackmesa has quit [Quit: WeeChat 1.0.1]
joshua___ has quit [Remote host closed the connection]
<ericwood> fuck. I absolutely cannot live without the serialport gem...which is uninstalled
<workmad3> soahccc: I'd be interested in hearing your view on it... but I really do need to run
davasaurous has joined #ruby
<workmad3> soahccc: so maybe I'll pick your brain tomorrow if you're around and I remember? :)
<ericwood> can someone walk me through installing a gem from source
<b3itz> havenn: so with puts line.scan(/?:\d{1,3}\.{3}\d{1,3}/) i get a target of repeat operator is not specified?
antoni1 has joined #ruby
<ericwood> yes, I know where the source is
<workmad3> ericwood: download .gem file, run 'gem install <file>'
<ericwood> ah duh
<twohlix_> just change your hosts file to make rubygems.org go to 54.186.104.15
<twohlix_> and it should work
<twohlix_> as a temporary fix.
econerd4ever has quit [Quit: Leaving...]
<ericwood> ah thanks
<shevy> you don't need a gem though, you can use setup.rb too https://github.com/rubyworks/setup - but if you have the .gemspec file you can simply build a new gem from there
<ericwood> freaked me out
<twohlix_> if you dont trust me, trust rubygems: https://twitter.com/rubygems_status/status/539513292105187328
<havenn> rubygems is working for me again
<soahccc> workmad3: my view on what? I'm not a DNS crack :) According to Microsoft DNSsec is more of a problem rather than the solution... Anyway you may zombie my brain anytime ;)
davasaurous has quit [Remote host closed the connection]
<shevy> nope
<shevy> 54.186.104.15 does not work at all
<havenn> reap the brains before they become zombies!
Trieste has quit [Ping timeout: 272 seconds]
SCHAAP137 has joined #ruby
<havenn> shevy: we ddosed it
<shevy> it's down :(
baweaver has quit [Remote host closed the connection]
AndyBotwin has quit [Quit: Leaving]
<twohlix_> shevy: works great for me right now :\
<ericwood> okay, thanks for the tip, this saved my presentation
<shevy> twohlix_ you in europe?
<twohlix_> shevy: outside of washington dc
<shevy> well
<shevy> someone from europe try!
<soahccc> I'm really thankful that we only had generic untargeted attacks. Oh well and we ddos'd ourselves once by selling a product for free (which was not intended unfortunately) :S Damn you reddit!
<shevy> workmad3 go try!
<havenn> shevy: works stateside
<shevy> he is from the UK - that's like 50% to europe and 50% to USA :)
<shevy> but I face the same dilemma... I have to sleep soon
<b3itz> havenn: ok so i got the line to work without errors.... but its not picking out any IP addresses at all: puts line.scan(/\d{1,3}\.{3}.\d{1,3}/)
<havenn> just bought another drone, i may have a drone addiction
<shevy> why do you need the drones?
<shevy> building skynet?
<chrisja> I can't ping 54.186.104.15 here in the UK.
toertore has quit [Quit: This computer has gone to sleep]
dcunit3d has joined #ruby
<rpag> chrisja, thats normal, it's not pingable
bulters has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<shevy> chrisja yay! the pain is shared! let's hug
<havenn> >> require 'ipaddr'; IPAddr::RE_IPV4ADDRLIKE
<eval-in__> havenn => / ... (https://eval.in/229168)
elementz has quit [Ping timeout: 252 seconds]
<b3itz> havenn: ???? I'm fairly new to ruby..
<twohlix_> shevy: i can't ping it either, but i can access it jsut fine, just like rpag said
<soahccc> shevy: seems to me that it doesn't work from DE, can't access it
<shevy> twohlix_ I am not pinging it, I put those numbers in my browser and it won't load
<twohlix_> ah
<twohlix_> k
<finisherr> optparse is what I want I think
<havenn> b3itz: open irb and look at this regexp: require 'ipaddr'; IPAddr::RE_IPV4ADDRLIKE
kith_ is now known as kith
urbanslug has joined #ruby
<chrisja> rpag. I can't access it either.
<b3itz> havenn: cool.. i will do that right now
rylev has quit [Remote host closed the connection]
Deltini has joined #ruby
davasaurous has joined #ruby
rylev has joined #ruby
<havenn> it's not the best at checking for valid ips :P
jgrevich has joined #ruby