havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
_djbkd has joined #ruby
AlmightyA has quit []
sepp2k1 has quit [Read error: Connection reset by peer]
opensource_ninja has quit [Quit: opensource_ninja]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blaxter has quit [Quit: foo]
JaReAx has quit [Read error: Connection reset by peer]
cjbottaro has joined #ruby
ecksit has joined #ruby
JaReAx has joined #ruby
atomical has joined #ruby
cjbottaro has quit [Client Quit]
unsymbol has quit [Ping timeout: 272 seconds]
Gadgetoid has quit [Ping timeout: 272 seconds]
loc22 has quit [Quit: Be back later ...]
canton7 has quit [Ping timeout: 272 seconds]
minimalism has joined #ruby
shadoi has quit [Quit: Leaving.]
canton7 has joined #ruby
canton7 has quit [Changing host]
canton7 has joined #ruby
chipotle has quit [Quit: cheerio]
unsymbol has joined #ruby
Gadgetoid has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
cjbottaro has joined #ruby
jwaldrip__ has quit [Quit: Be back later ...]
finisherr has quit [Quit: finisherr]
cjbottaro has quit [Client Quit]
jwaldrip__ has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jardayn has quit [Quit: Leaving]
Azure has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
Azure has joined #ruby
jwaldrip___ has joined #ruby
marr has quit [Ping timeout: 268 seconds]
Lycanii has joined #ruby
jwaldrip__ has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
wookiehangover has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
cjbottaro has joined #ruby
cantaberry has joined #ruby
jwaldrip___ has quit [Ping timeout: 240 seconds]
sdwrage has quit [Client Quit]
sdwrage has joined #ruby
loc22 has joined #ruby
solocshaw has joined #ruby
haasn` is now known as haasn
wookiehangover has joined #ruby
tier has quit [Remote host closed the connection]
Ropeney has joined #ruby
rubybeginner has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cheerio]
tomchapin has joined #ruby
rubybeginner has joined #ruby
nicdev_ is now known as sipo
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
cantaberry has quit [Ping timeout: 260 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
cantaberry has joined #ruby
mwlang has quit [Quit: mwlang]
tomchapin has quit [Read error: No route to host]
tmtwd has quit [Remote host closed the connection]
Ox0dea has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
<Ox0dea> "3 milligrams, noob."
Azure has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
moted has quit []
jenrzzz has quit [Ping timeout: 240 seconds]
tier has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> You Key Hero - Mats Sumo Toe
<Ox0dea> He's good.
<Ox0dea> It was a Rubus puzzle.
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest24980
diego1 is now known as diegoviola
Guest24980 has quit [Ping timeout: 252 seconds]
Asher has quit [Quit: Leaving.]
charliesome has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
v4n has quit []
tmtwd has joined #ruby
tmtwd has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tawaffan has joined #ruby
sanjayu has quit [Ping timeout: 264 seconds]
Guest29226 has quit [Quit: Leaving]
_djbkd has quit [Remote host closed the connection]
Guest29226 has joined #ruby
<Ox0dea> cd
<Ox0dea> Jesus.
<Ox0dea> Sorry.
rubybeginner has quit [Ping timeout: 264 seconds]
Asher has joined #ruby
rubybeginner has joined #ruby
_djbkd has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
charliesome has quit [Read error: Connection reset by peer]
zenguy_pc has quit [Read error: No route to host]
charliesome has joined #ruby
tkuchiki has joined #ruby
opensource_ninja has joined #ruby
houhoulis has joined #ruby
doddok has quit [Ping timeout: 252 seconds]
j_mcnally has joined #ruby
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cyther has quit [Quit: Leaving]
Cyther has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Cyther has quit [Remote host closed the connection]
Cyther has joined #ruby
Cyther has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 246 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
<BraddPitt> to us or Jesus?
bricker has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 268 seconds]
ByronJohnson has joined #ruby
ramfjord has joined #ruby
dorei has quit [Remote host closed the connection]
loc22 has quit [Quit: Lingo: www.lingoirc.com]
diegoviola has quit [Ping timeout: 240 seconds]
roychri has joined #ruby
maletor_ has joined #ruby
<roychri> Is there an elegant way of handling exception from different ruby version? I see this open source project rescuing from Net::OpenTimeout which is a ruby 2.x but that project tries to be compatible with 1.9.3 too. I'd like to do a PR with a fix. Any recommendations?
moted has joined #ruby
zenguy_pc has joined #ruby
<Ox0dea> roychri: You can give `rescue` an arbitrarily complex expression so long as it evaluates to an exception.
<roychri> sounds interesting.... ok, I will take a look, thank you
<Ox0dea> roychri: Something like `rescue RUBY_VERSION >= ?2 ? Net::OpenTimeout : SomethingElse` should suffice.
<roychri> Sounds simple enough, I will try it :) Thank you
<Ox0dea> Happy to help.
swgillespie has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 250 seconds]
leat has joined #ruby
<havenwood> |>
cjbottaro has joined #ruby
<Ox0dea> .=
<Ox0dea> Both would be welcome additions.
EllisTAA has quit [Quit: EllisTAA]
podman has quit [Quit: Connection closed for inactivity]
<havenwood> Christmas 2016?
<havenwood> Probably later...
<havenwood> 3.0 after 2.3 or after 2.4? I wonder.
diegoviola has joined #ruby
<havenwood> I suspect 2.3 -> 3.0 but I'm always temporally optimistic.
ReK2 has quit [Quit: Konversation terminated!]
PaulCapestany has joined #ruby
<havenwood> Ox0dea: I'm envious of the planned pipeline parallelism stuff in Elixir 1.3. I'd love to see something along those lines in Ruby.
diegoviola has quit [Read error: Connection reset by peer]
<havenwood> |> \o/ !!!
diegoviola has joined #ruby
cih has joined #ruby
PaulCapestany has quit [Max SendQ exceeded]
eminencehc has joined #ruby
dome22xl has joined #ruby
<Ox0dea> havenwood: Tried Streem any?
devoldmx has joined #ruby
<havenwood> Ox0dea: I'm the sole member of #streem! ;)
PaulCapestany has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cih has quit [Remote host closed the connection]
maletor has quit []
eminencehc has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 250 seconds]
j_mcnally has joined #ruby
dome22xl has quit [Quit: Bye]
Spami has quit [Quit: This computer has gone to sleep]
tkuchiki has joined #ruby
Musashi007 has quit [Quit: Musashi007]
towski_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
wookiehangover has quit [Ping timeout: 246 seconds]
spotted1 has quit [Ping timeout: 240 seconds]
spotted has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dome22xl has joined #ruby
agent_white has quit [Quit: leaving]
wookiehangover has joined #ruby
bruno- has joined #ruby
ByronJohnson has quit [Ping timeout: 272 seconds]
_djbkd has quit [Quit: My people need me...]
David27 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
David27 has joined #ruby
inteq has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tejasmanohar> |>
ByronJohnson has joined #ruby
<tejasmanohar> Speaking of Elixir, conference right now! :)
<Ox0dea> .=
<tejasmanohar> |>
<tejasmanohar> :)
amystephen has quit [Quit: amystephen]
<havenwood> tejasmanohar: I've been doing alchemy all day. Wish I could be there...
workmad3 has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
<tejasmanohar> TIL Alchemy can explore elixir source
<tejasmanohar> Found out when Chris discovered it during his workshop :)
<havenwood> tejasmanohar: Ooh, you're there? Nice!
cih has joined #ruby
Guest29226 has quit [Ping timeout: 240 seconds]
dikaio has quit [Ping timeout: 240 seconds]
<tejasmanohar> :) yep
<tejasmanohar> First programming language conference I've been to
<havenwood> tejasmanohar: Awesome.
cih has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 244 seconds]
<tejasmanohar> havenwood: are you also doing phoenix?
<havenwood> tejasmanohar: yup
<tejasmanohar> nice
brendan- has quit [Ping timeout: 268 seconds]
tmtwd has joined #ruby
<tejasmanohar> i have also been doing phoenix. i'm going to try writing an app just through rolling out my own stuff w/ plug though
umgrosscol has quit [Remote host closed the connection]
<tejasmanohar> wonder how that'll be... plug is pretty robust. has route matching and all
workmad3 has quit [Ping timeout: 265 seconds]
<tejasmanohar> havenwood: this just came out btw https://pragprog.com/book/phoenix/programming-phoenix :) - may have already seen
<havenwood> tejasmanohar: I already have a copy but (spoiler) the Channels chapter reads: Content to be supplied later.
tmtwd has quit [Remote host closed the connection]
<tejasmanohar> havenwood: i heard that today :\
<tejasmanohar> 2 more chapters to go... and prolly bunch of revisions
varunwachaspati has joined #ruby
<havenwood> tejasmanohar: Yeah, but looks good. I've been really impressed with Phoenix.
<tejasmanohar> yea, i started reading plug chapter. it's pretty in-depth, i like.
FrankD has joined #ruby
<havenwood> tejasmanohar: Pretty elegant.
icarus has joined #ruby
TheWhiteOx has joined #ruby
jpfuentes2 has joined #ruby
swgillespie has joined #ruby
robbyoconnor has joined #ruby
<tejasmanohar> Yep havenwood
deavid has quit [Ping timeout: 265 seconds]
<havenwood> tejasmanohar: Relocating but enjoy the conference! I look forward to watching any talks that get posted.
<zenspider> drbrain: ping
<tejasmanohar> havenwood: thanks!
TheWhiteOx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
A124 has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
evanjs has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 244 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
A124 has joined #ruby
casadei has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
casadei has quit [Remote host closed the connection]
arescorpio has joined #ruby
Musashi007 has joined #ruby
tmtwd has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
Musashi007 has quit [Quit: Musashi007]
tmtwd has quit [Remote host closed the connection]
tmtwd has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has quit [Remote host closed the connection]
Evan_ has quit [Quit: Oh shit the geek died!]
favadi has joined #ruby
favadi has quit [Client Quit]
favadi has joined #ruby
charliesome has joined #ruby
Evan_ has joined #ruby
psy_ has quit [Ping timeout: 268 seconds]
dome22xl has quit [Ping timeout: 255 seconds]
devoldmx has joined #ruby
opensource_ninja has quit [Ping timeout: 264 seconds]
cjbottaro has quit [Ping timeout: 240 seconds]
fantazo has joined #ruby
vdamewood has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
icarus has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
icarus has joined #ruby
moted has quit []
otacon- has quit [Quit: Lost terminal]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deavid has joined #ruby
nettoweb has joined #ruby
kobain has quit [Ping timeout: 268 seconds]
sankaber has joined #ruby
zlogan has joined #ruby
matp has quit [Remote host closed the connection]
diegoviola has quit [Changing host]
diegoviola has joined #ruby
freerobby has quit [Quit: Leaving.]
bestbrents has quit [Ping timeout: 246 seconds]
eminencehc has joined #ruby
matp has joined #ruby
KensoDev has quit []
maletor_ has quit [Quit: Computer has gone to sleep.]
zlogan has quit [Ping timeout: 240 seconds]
psy has joined #ruby
psy has quit [Max SendQ exceeded]
psy has joined #ruby
rubybeginner has quit [Ping timeout: 272 seconds]
jun has joined #ruby
noethics has quit [Quit: Leaving]
nateberkopec has quit [Quit: Leaving...]
konsolebox has joined #ruby
DenSchub has quit [Read error: Connection reset by peer]
DenSchub has joined #ruby
tier has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
gener1c_ has quit [Read error: Connection reset by peer]
Flyy7 has joined #ruby
gener1c has joined #ruby
stardiviner has joined #ruby
wldcordeiro has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
moeabdol1 has quit [Quit: WeeChat 1.3]
jeffreylevesque has joined #ruby
ecksit has joined #ruby
ecksit has quit [Client Quit]
<jeffreylevesque> anyone know a good cli package for xml linting?
braincrash has quit [Quit: bye bye]
dome22xl has joined #ruby
diego1 has joined #ruby
mxrguspxrt has joined #ruby
diegoviola has quit [Ping timeout: 265 seconds]
moeabdol has joined #ruby
braincrash has joined #ruby
<Ox0dea> Is there an efficient way to obtain the anonymous module introduced by a wrapped load?
<Ox0dea> Storing all the modules, doing the load, and then finding the new one is too expensive.
Meow-J has joined #ruby
mary5030 has quit [Remote host closed the connection]
mxrguspxrt has quit [Remote host closed the connection]
diego2 has joined #ruby
mary5030 has joined #ruby
diego1 has quit [Ping timeout: 272 seconds]
tmtwd has joined #ruby
tmtwd has quit [Remote host closed the connection]
mooe has joined #ruby
mary5030 has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Remote host closed the connection]
arup_r has joined #ruby
diego2 has quit [Ping timeout: 250 seconds]
diego2 has joined #ruby
pontiki has joined #ruby
darkf has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 250 seconds]
Helheim has quit [Ping timeout: 252 seconds]
diego2 has quit [Ping timeout: 240 seconds]
jun has quit [Remote host closed the connection]
gix has joined #ruby
opensource_ninja has joined #ruby
chipotle has joined #ruby
charliesome has joined #ruby
yfeldblum has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
diego3 has joined #ruby
diego3 has quit [Client Quit]
RegulationD has joined #ruby
iamjarvo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
workmad3 has joined #ruby
amystephen has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 240 seconds]
jun has joined #ruby
_djbkd has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
Rickmasta has joined #ruby
jadergabriel has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
amystephen has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
MrFishy has joined #ruby
<MrFishy> If you do a hash merge
<MrFishy> is it smart enough to add or subtract numbers of two keys? so like { 'test' => 1} {'test'=>1} would merge into {'test'=2}
<MrFishy> or is that just crazy talk?
<Ox0dea> MrFishy: You can instruct it to do so.
<MrFishy> ahh nice
ramfjord_ has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
<Ox0dea> >> a = b = {foo: 21}; a.merge(b) { |h, a, b| a + b } # MrFishy
<ruboto> Ox0dea # => {:foo=>42} (https://eval.in/443288)
Musashi007 has quit [Client Quit]
hanmac has quit [Remote host closed the connection]
<Ox0dea> In the block there, `h` is the receiver, and `a` and `b` are the "old" and "new" values, respectively.
<MrFishy> h being the new hash?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> No, the Hash on which you're calling #merge.
<MrFishy> ahh
<MrFishy> so in this case it would be a?
kobain has joined #ruby
mghaig has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<Ox0dea> MrFishy: Shit, sorry. The block parameters are the *key* with a merge conflict and the old and new values.
dome has joined #ruby
<MrFishy> ahh okay
<MrFishy> so h would be foo and a and b are 21 and 21
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> You got it.
mary5030 has joined #ruby
<Ox0dea> >> {a: 1, b: 2}.merge(a: 3, b: 4) { |*args| args.join }
<ruboto> Ox0dea # => {:a=>"a13", :b=>"b24"} (https://eval.in/443289)
dome22xl has quit [Ping timeout: 240 seconds]
opensource_ninja has quit [Quit: opensource_ninja]
yfeldblum has quit [Remote host closed the connection]
I has joined #ruby
I is now known as Guest80230
Guest80230 has quit [Client Quit]
charliesome has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
psy has quit [Disconnected by services]
psy_ has joined #ruby
nateberkopec has joined #ruby
eminencehc has joined #ruby
<baweaver> Ox0dea made a mistake?
* baweaver starts selling stocks
* baweaver hunkers down for apocalypse
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
conrman has joined #ruby
<Ox0dea> The end is asymptotically now!
eminencehc has quit [Ping timeout: 255 seconds]
mxrguspxrt has joined #ruby
<Ox0dea> baweaver: Any ideas on how to get hold of that damned module?
<Ox0dea> TracePoint doesn't pick it up. :/
nateberkopec has quit [Ping timeout: 246 seconds]
jt__ has quit [Ping timeout: 246 seconds]
Macaveli has joined #ruby
bronson has quit [Remote host closed the connection]
ramfjord_ has quit [Ping timeout: 272 seconds]
Macaveli has quit [Client Quit]
Musashi007 has joined #ruby
CooloutAC has joined #ruby
<CooloutAC> hello all
ramfjord has joined #ruby
<CooloutAC> i'm trying to learn ruby, i'm a programming noob
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
<CooloutAC> i was practicing with .upcase and .downcase but I always get the word nil on the last line i'm not sure why
agent_white has quit [Client Quit]
agent_white has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
Eiam_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
<CooloutAC> if I do print"CooloutAC".upcase i get the word nil at the end
<CooloutAC> COOLOUTACnil
<agent_white> Evenin' folks!
<CooloutAC> agent_white: can I ask a noob question?
s00pcan has quit [Ping timeout: 264 seconds]
<CooloutAC> then i'll leaev ya alone i promise lol
<CooloutAC> agent_white: how come when i do print"CooloutAC".upcase i get nil at the end
<CooloutAC> COOLOUTACnil
<Ox0dea> CooloutAC: In irb, right?
<Ox0dea> Or some online REPL?
<CooloutAC> Ox0dea: i don't know what irb is, i'm sorry i'm learning programming fo the first time
<CooloutAC> REPL?
<CooloutAC> it is an online course yes
s00pcan has joined #ruby
<CooloutAC> codecademy
<Ox0dea> CooloutAC: REPL == "read-eval-print loop"
<Ox0dea> The #print method returns `nil`, but with the side effect of displaying some text.
<Ox0dea> You're seeing both of those actions in conjunction.
<Ox0dea> `1 + 1`, for instance, has no side effects and simply evaluates to 2, so that's what you'd see at the REPL.
varunwachaspati has quit [Quit: Connection closed for inactivity]
mary5030 has quit [Ping timeout: 246 seconds]
<agent_white> CooloutAC: What happens when you replace 'print' with 'puts'? Then with '
<agent_white> 'p'?
<CooloutAC> it puts the nil on the next line
shmilan has joined #ruby
<agent_white> And then?
datanoise has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<CooloutAC> i'm sorry are you telling me to at 'p' ?
<CooloutAC> *ad
Rickmasta has joined #ruby
<agent_white> CooloutAC: `puts "hello"` - `print "hello"` - `p "hello"`
<Ox0dea> CooloutAC: #p is a method like #puts and #print, except it evaluates to the object being printed rather than `nil`.
<Ox0dea> CooloutAC: You should install Ruby.
Flyy7 has quit [Quit: Lost terminal]
<CooloutAC> oh i see ok so p didn't put nil, it just put hello again on the next line
<agent_white> CooloutAC: Also make note of what Ox0dea asked (if you were in irb or not). Try out `puts "hi"` in irb, then outside the interpreter to compare return vals.
<CooloutAC> agent_white: i get permission denied when i try that
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<CooloutAC> so you are saying its doing that because i'm doing it in an interpreter
<CooloutAC> so I guess i'll just ignore it for now?
<Ox0dea> CooloutAC: No, because you're at a REPL.
<agent_white> Ox0dea: ^
<Ox0dea> agent_white: v
<agent_white> Rather, CooloutAC ^
* agent_white prepares tennis-racker
<agent_white> racket even...
<agent_white> CooloutAC: What Ox0dea said... ignore me saying "interpreter". That's wrong.
<Ox0dea> agent_white: You are not ready for this satisfaction: http://i.imgur.com/xk99LNG.gifv
<CooloutAC> ok well nevermind
<Ox0dea> CooloutAC: Does this help any? https://eval.in/443290
<Ox0dea> The #print method writes its argument without a newline and returns nil.
<Ox0dea> The #puts method writes its argument with a newline and returns nil.
<Ox0dea> The #p method "inspects" the object, prints what it finds, and returns the object itself.
devoldmx has joined #ruby
<agent_white> Ox0dea: You just wrapped warm-blankets around my eyes. .‿.
<CooloutAC> i was just trying to figure out how to print a single line without the word nil
<CooloutAC> p doesn't say nil, but prints it twice
baweaver has quit [Remote host closed the connection]
dome has quit [Ping timeout: 260 seconds]
<agent_white> >> print "hello".upcase.inspect
<ruboto> agent_white # => "HELLO"nil (https://eval.in/443291)
<agent_white> >> puts "hello".upcase.inspect
<ruboto> agent_white # => "HELLO" ...check link for more (https://eval.in/443292)
<agent_white> >> p "hello".upcase.inspect
<ruboto> agent_white # => "\"HELLO\"" ...check link for more (https://eval.in/443293)
<Ox0dea> CooloutAC: https://eval.in/443294
devoldmx has quit [Ping timeout: 246 seconds]
<Ox0dea> eval.in is using a "real" Ruby interpreter to run the code; it is not a REPL and so the `nil` problem is not present.
<CooloutAC> Ox0dea: lol but how did he do it?
<CooloutAC> oh i see
ramfjord has quit [Ping timeout: 246 seconds]
<CooloutAC> so thats what I mean, its because i'm using this online course interpreter thing
<Ox0dea> It's because you're using a REPL...
I has joined #ruby
<CooloutAC> so I'll guess i'll just ignore the nil at the end for now
I has quit [Remote host closed the connection]
<CooloutAC> ok i'll look that up
dopie has joined #ruby
<Ox0dea> CooloutAC: [R]ead an expression, [E]valuate it, [P]rint that result (!important), [L]oop.
<agent_white> CooloutAC: Look at what I said above... or rather, the first question Ox0dea asked you.
<Ox0dea> agent_white: I think we're almost there.
spotted has joined #ruby
datanoise has quit [Quit: Textual IRC Client: www.textualapp.com]
<agent_white> Ox0dea: I believe!
<Ox0dea> CooloutAC: The printing is happening in [E], because that's just what these methods do, but the *result* of a call to #print is `nil`, which is getting displayed in [P].
jschoolcraft has quit [Ping timeout: 240 seconds]
<Ox0dea> These methods kind of mix [P] into [E], which is the source of your confusion.
yfeldblum has joined #ruby
spotted1 has joined #ruby
<Ox0dea> CooloutAC: In any case, do yourself a favor: ditch Codecademy, install Ruby, and do the Koans: https://github.com/neo/ruby_koans
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Client Quit]
<CooloutAC> i'll stick with codecademy tks though
charliesome has joined #ruby
charliesome has quit [Client Quit]
<Ox0dea> "Wading in shit builds character", they said.
<CooloutAC> ya thats what coming in this channel is like
<CooloutAC> all you had to do was say its because i'm using the interpreter on codecademy
<Ox0dea> Some people.
<CooloutAC> but you just kept going on and on making my brain hurt
<CooloutAC> jesus christ
<agent_white> CooloutAC: That was his first question.
<CooloutAC> i'm just going to stick to google from now on lmao
<agent_white> Don't worry, you'll get there :)
<Ox0dea> Doubtful.
<CooloutAC> agent_white: ya and he went on about this REPL shit
<CooloutAC> confused the fuck out of me
<CooloutAC> lmao
<agent_white> CooloutAC: Because it's the answer to your question?
<CooloutAC> some people just have to make things complicated.....
<CooloutAC> agent_white: ....
paulcsmith has joined #ruby
<CooloutAC> when i said oh its because i'm using the interpreter in codecademy, instead of him saying no and continuing to talk on and on about confusing shit
<CooloutAC> he should of just said, yes.
<CooloutAC> period.
<CooloutAC> no way i'm fucking coming in here again, i'll stick with google.
CooloutAC has left #ruby ["Selakem Shalom, PEACE"]
<Ox0dea> It'd be funny if it weren't tragic.
shmilan has quit [Ping timeout: 240 seconds]
dome has joined #ruby
<agent_white> It'd be funny if he weren't PM'ing me.
<agent_white> Lawdy.
<Ox0dea> My condolences.
arescorpio has quit [Quit: Leaving.]
paulcsmith has quit [Client Quit]
<agent_white> I wish he joined #learnprogramming instead. We're even less lenient there, actually.
tkuchiki has joined #ruby
maletor has joined #ruby
solocshaw has quit [Ping timeout: 272 seconds]
cih has joined #ruby
DanKnox has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
SylarRuby has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
cih has quit [Ping timeout: 268 seconds]
nateberkopec has joined #ruby
wookiehangover has quit [Ping timeout: 240 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
wookiehangover has joined #ruby
mghaig has left #ruby [#ruby]
mxrguspxrt has joined #ruby
dome22xl has joined #ruby
ramfjord has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
dome has quit [Ping timeout: 246 seconds]
Torrieri has joined #ruby
Contigi has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
bronson has joined #ruby
[k- has joined #ruby
baweaver has joined #ruby
fullofcaffeine has joined #ruby
chipotle has quit [Quit: cheerio]
tsujp has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
atal421 has joined #ruby
DanKnox has quit [Ping timeout: 268 seconds]
<tejasmanohar> Lol this guy
atal421 has left #ruby [#ruby]
jun has quit [Remote host closed the connection]
astrobunny has joined #ruby
[k- has quit [Read error: Connection reset by peer]
[k-_ has joined #ruby
<agent_white> hoo
dionysus69 has joined #ruby
DOSHI has joined #ruby
charliesome has joined #ruby
<DOSHI> Hii :)
charliesome has quit [Client Quit]
tk__ has joined #ruby
houhoulis has quit [Remote host closed the connection]
<DOSHI> Any one here pro in ruby lazy enumeration?
astrobunny has quit [Remote host closed the connection]
<bnagy> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
fullofcaffeine has quit [Remote host closed the connection]
<baweaver> Ox0dea: not a clue, beyond me.
[k-_ has quit [Read error: No route to host]
<Ox0dea> DOSHI: Fire away.
[k- has joined #ruby
* agent_white prepares the sandbags
charliesome has joined #ruby
<DOSHI> ? Sorry .. I'm new to IRC ... :)
workmad3 has joined #ruby
[k- has quit [Read error: No route to host]
<DOSHI> I want to create a factorial function using lazy ... something like this
<DOSHI> puts 1.upto(Float::INFINITY).lazy.inject { |x,y| x*y }
[k-_ has joined #ruby
<DOSHI> ^Though it is incorrect
makman has joined #ruby
charliesome has quit [Client Quit]
zenguy_pc has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<Ox0dea> DOSHI: You'll have to be a little more verbose than that, I'm afraid.
[k-_ has quit [Read error: No route to host]
<Ox0dea> I'm not entirely sure why Lazy#inject exists, to be honest.
[k- has joined #ruby
fullofcaffeine has joined #ruby
<DOSHI> I not sure too .. I am learning about lazy ... so I thought why not try a factorial function .. by factorial here i mean 1*2*3*4*5*6.....*n where n is an integer
workmad3 has quit [Ping timeout: 240 seconds]
dhjondoh has joined #ruby
SylarRuby has quit [Remote host closed the connection]
makman is now known as MakMan
charliesome has quit [Client Quit]
<DOSHI> Ox0dea: p (1..5).lazy.inject { |x,y| x*y } #output 120 Works fine
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> inject is a value function
<baweaver> won't work
toretore has quit [Quit: This computer has gone to sleep]
<[k-> so mathy
<bnagy> also, you can just inject(:*) there, as ruby shorthand
DoYouKnow has quit [Changing host]
DoYouKnow has joined #ruby
DoYouKnow has quit [Changing host]
DoYouKnow has joined #ruby
<Ox0dea> Lazy factorial is kind of silly.
<DOSHI> baweaver: ok so only map, select, collect works for lazy and not inject or reduce ... right?
<[k-> { x: x is part of the factorial chain of n }
<[k-> Ox0dea!
<Ox0dea> Hiya!
mxrguspxrt has quit [Remote host closed the connection]
<Ox0dea> >> [42].cycle.reduce{} # DOSHI
<ruboto> Ox0dea # => (https://eval.in/443316)
jun has joined #ruby
<[k-> >> p nil
<ruboto> [k- # => nil ...check link for more (https://eval.in/443317)
<[k-> why is it blank
<baweaver> >> (1..Float::INFINITY).lazy.each_cons(2).map { |x,y| x * y }.take(20).last
<Ox0dea> Because it timed out.
<ruboto> baweaver # => undefined method `last' for #<Enumerator::Lazy:0x407c3edc> (NoMethodError) ...check link for more (https://eval.in/443318)
slackr has joined #ruby
<baweaver> >> (1..Float::INFINITY).lazy.each_cons(2).map { |x,y| x * y }.take(20).to_a.last
<ruboto> baweaver # => 420 (https://eval.in/443319)
slackr has quit [Client Quit]
<baweaver> I need to play with Ruby lazy more.
<Ox0dea> What's that 420, though?
<baweaver> huh, odd.
<[k-> thats wrong!
<baweaver> there's an echo in here
<[k-> each cons = a,b b,c c,d
<Ox0dea> cons != 2, for what that's worth.
<Ox0dea> Ruby isn't literally Lisp.
<Ox0dea> DOSHI: Here's a generative factorial that "feels" more reasonable: https://eval.in/443320
<Ox0dea> Determining when it explodes is left as an exercise to the coder.
<[k-> i bet it's a hash default proc
fullofcaffeine has quit [Remote host closed the connection]
DOSHI has quit [Quit: Page closed]
<[k-> ah it isn't
<Ox0dea> Nope, those eventually overflow, and I don't entirely understand why. :/
<[k-> because it keeps a huge trace?
<Ox0dea> Well, yeah, I do; Hash#[] is still a method call.
blueOxigen has joined #ruby
RegulationD has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
FrankD has quit [Changing host]
FrankD has joined #ruby
dnewkerk has joined #ruby
htmldrum has quit [Ping timeout: 252 seconds]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
Me_Engine has joined #ruby
<baweaver> >> factorials = Enumerator.new{|y|v,a=1,1;loop{y<<a;a*=v+1;v+=1}}; factorials.take(5)
<ruboto> baweaver # => [1, 2, 6, 24, 120] (https://eval.in/443321)
zenguy_pc has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
paulcsmith has joined #ruby
haraoka has joined #ruby
<baweaver> Enumerator works well enough for it, not sure if lazy is really even needed
<Ox0dea> Enumerator.new{|y|v,a=1,1;loop{y<<a;a*=v+1;v+=1}}
<Ox0dea> Enumerator.new{|y|n,i=1,0;loop{y<<n*=i+=1}
<Ox0dea> That's kinda cute.
<Ox0dea> Our inner variables are Ivan deranged.
<shevy> so ugly
<Ox0dea> Your soul.
<baweaver> >> Enumerator.new{|y|v=2;loop{y<<v;v=v<<1}}.take(10)
<ruboto> baweaver # => [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024] (https://eval.in/443324)
maletor has joined #ruby
shinnya has quit [Ping timeout: 268 seconds]
<Ox0dea> [k-: https://eval.in/443325 :<
<baweaver> >> Enumerator.new{|y|v=2;loop{y<<v;v+=v}}.take(10)
<ruboto> baweaver # => [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024] (https://eval.in/443326)
aganov has joined #ruby
tagrudev has joined #ruby
Rickmasta has joined #ruby
<baweaver> Ox0dea: y'do know that's not TCO right?
<Ox0dea> baweaver: Because of the assignment, presumably?
_djbkd has quit [Quit: My people need me...]
<baweaver> TCO involves passing along an accumulator
<baweaver> reduce looks a lot more like an optimized TCO
MakMan has quit [Quit: Leaving]
<baweaver> a tail call optimized recursion is defined by the passing of an accumulator along with arguments in the tail position of a method
<baweaver> which allows it to not have to screw with stach
<baweaver> fascinating really
<baweaver> though fair warning, I'm half asleep and prone to mistakes right now
fullofcaffeine has joined #ruby
<baweaver> there we go, this is clearer: http://nithinbekal.com/posts/ruby-tco/
j416 has quit [Ping timeout: 240 seconds]
<Ox0dea> What stops the Hash acting as the "accumulator" in my misguided approach?
<baweaver> TCO is only so clever in ruby
<baweaver> I think it's limited to functions
<pipework> Yeah, it's fairly weak stuff, really.
MakMan has joined #ruby
TomyLobo has joined #ruby
bougyman has quit [Ping timeout: 240 seconds]
<certainty> moin
havenwood has joined #ruby
MakMan has quit [Read error: Connection reset by peer]
MakMan has joined #ruby
MakMan has quit [Read error: Connection reset by peer]
amclain has quit [Quit: Leaving]
rushed has quit [Quit: rushed]
astrobunny has joined #ruby
Ilyes512 has joined #ruby
ozz has joined #ruby
karapetyan has joined #ruby
htmldrum has joined #ruby
MakMan has joined #ruby
last_staff has joined #ruby
MakMan has quit [Read error: Connection reset by peer]
dikaio has joined #ruby
TvL2386 has joined #ruby
nateberkopec has joined #ruby
zomgbie has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
banjara has joined #ruby
Torrieri has quit [Quit: Be back later ...]
Torrieri has joined #ruby
Me_Engine has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
tk__ has quit [Quit: ばいばい]
charliesome has quit [Client Quit]
charliesome has joined #ruby
charliesome has quit [Client Quit]
<shevy> hey certainty
dhjondoh has quit [Quit: dhjondoh]
krz has joined #ruby
Torrieri has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Ping timeout: 268 seconds]
mosez_ has quit [Quit: Switching back to real life]
<certainty> o/
paulcsmith has quit [Ping timeout: 246 seconds]
mosez has joined #ruby
bronson has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
tangentstorm is now known as agent_storm
banjara has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 260 seconds]
s00pcan has quit [Ping timeout: 272 seconds]
<certainty> did you recognize that on a standard keyboard layout ruby is really close to be fuck typed?
<shevy> certainty we have an agents invasion here
<shevy> agent_storm, agent_white and agentmeerkat
<certainty> there can only be one agent
<certainty> which is agent_white
<shevy> what do you mean with standard layout, english?
<pipework> There can only be juan.
<certainty> shevy: yeah quertz, querty
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> on my german keyboard the {} annoy me, I frequently mistype the } with a ß or \
<Ox0dea> shevy: C has digraphs for that.
riotjone_ has quit [Quit: Leaving...]
<shevy> so no solution either
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> actually I think I want {} without modifier keys
<crdpink2> Regexp docs have no mention of \K in Anchors, which works (2.1.6) - docs for this anywhere?
agent_white is now known as mitt3ns
<Ox0dea> certainty: Pressing the keys directly to the right gets you "tinu", "unit" backwards.
bougyman has joined #ruby
<Ox0dea> Coincidence? I think not.
<shevy> wat
<shevy> how can you go tinu
charliesome has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mitt3ns is now known as agent_white
<crdpink2> No mention there either of \K, which discards all input to that point
<Ox0dea> Say what?
<certainty> Ox0dea: there is no such thing as coincidence. I get the feeling we're in the twilight zone
<Ox0dea> I think so too.
<Ox0dea> What're the odds that the digital sum of the 2,222nd Fibonacci number would be 2222?
MakMan has joined #ruby
<certainty> i don't know like 2 in cheesecake?
<Sigma00> zero
<Sigma00> the odds are zero
<certainty> wont they feel bad about that?
<certainty> i mean zero is a noble number
<Sigma00> yeah, just eat the cheesecake and you'll feel better
Rickmasta has joined #ruby
<certainty> but still
<Ox0dea> crdpink2: You're right that Onigmo supports \K, but it doesn't seem to be documented anywhere. :x
DanKnox has joined #ruby
<crdpink2> try "Hello there".match(/Hello\K.+/) and point me to where it documents that :)
<crdpink2> aha
<crdpink2> right I was hoping I wasn't going mad
astrobunny has quit [Remote host closed the connection]
<atmosx> morning
<crdpink2> Ox0dea: thanks for confirming
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> ruby $ ag '\\K' | wc -l
<Ox0dea> 5
<Ox0dea> It's even tested.
toretore has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
<crdpink2> funny I was using it with gsub which is how I got there
astrobunny has joined #ruby
devoldmx has joined #ruby
chipotle has joined #ruby
MakMan has quit [Quit: Leaving]
charliesome has joined #ruby
sdwrage has quit [Quit: Leaving]
MakMan has joined #ruby
cassioscabral_ has quit [Quit: cassioscabral_]
eGGsha has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
firstdayonthejob has joined #ruby
tenderlo_ has joined #ruby
<baweaver> can be done nicely with reduce
<Ox0dea> baweaver: And each_cons(5).
Anti-Pizza has joined #ruby
symm- has joined #ruby
astrobunny has quit [Remote host closed the connection]
paulcsmith has joined #ruby
Lucky__ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tenderlove has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
<baweaver> read it again
rdark has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
<baweaver> using a hash with reduce is actually quite handy as a state paradigm
rushed has joined #ruby
<Ox0dea> > read it again
<baweaver> not a fan of the bit at 13, could probably be optimized
dhjondoh has joined #ruby
arooni has quit [Ping timeout: 240 seconds]
<Ox0dea> I'm not proud of most of those, but the Ruby one is pretty great.
<havenwood> delete("\n").each_char.map(&:to_i).each_cons(13).max_by { |a| a.inject :* }
maletor has quit [Quit: Computer has gone to sleep.]
<baweaver> eh, was trying to avoid using reduce each loop
<baweaver> makes it a tinge slower
<Ox0dea> baweaver: Oh, I see now. They've changed the problems a bit since I last played.
TomyLobo has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
agent_storm is now known as darkt
MakMan has quit [Quit: Leaving]
fullofcaffeine has quit [Remote host closed the connection]
<certainty> havenwood: nice!
tkuchiki has joined #ruby
dhjondoh1 has joined #ruby
<Ox0dea> havenwood: Needs to be #map + #max, technically.
<Ox0dea> Otherwise, great minds and all that.
dhjondoh has quit [Ping timeout: 256 seconds]
dhjondoh1 is now known as dhjondoh
<baweaver> no love for state reduction :'(
MakMan has joined #ruby
<Ox0dea> I like it!
stardiviner has quit [Ping timeout: 264 seconds]
<certainty> personally i find it cumbersome
minimalism has quit [Quit: leaving]
<Ox0dea> You've got a sneaky little sized queue in there as well.
<certainty> whenever i have to do that it feels bad
kraljev11 has joined #ruby
dhjondoh1 has joined #ruby
stardiviner has joined #ruby
MakMan has quit [Read error: Connection reset by peer]
<baweaver> it allows me to fully isolate the state of a function to a certain area
<baweaver> making it a lot easier to factor out when desired.
<baweaver> granted not fully since I don't clone that array instead
<Ox0dea> Weird you ended up with Scala and not Clojure, in light of this revelation.
<havenwood> baweaver: I'd be tempted to use `=/` just since the opportunity presents. ;)
moeabdol has quit [Ping timeout: 240 seconds]
<Ox0dea> What is `=/`?
<havenwood> I mean: /=
<havenwood> It's late for me. >.>
<Ox0dea> He can't; there's another operation afterward.
<havenwood> Ah, right.
<havenwood> In that case, I'll stick with: +/
<havenwood> =/
<baweaver> cheap way of popping a number off an accumulator
<havenwood> Dang.
<baweaver> unless it's zero
dhjondoh has quit [Ping timeout: 256 seconds]
dhjondoh1 is now known as dhjondoh
dhjondoh has quit [Client Quit]
<havenwood> Ox0dea: I change my story, it was a sideways smile all along.
<baweaver> then you either have to have another sliding array (expensive) or reduce it
<Ox0dea> I knew it!
<baweaver> =/
Fire1o6 has quit [Read error: Connection reset by peer]
code1o6 has quit [Read error: Connection reset by peer]
<baweaver> >>==
<ruboto> baweaver # => /tmp/execpad-addd44f9f381/source-addd44f9f381:2: syntax error, unexpected == (https://eval.in/443363)
<baweaver> heh
<baweaver> always forget that one
SylarRuby has joined #ruby
<baweaver> and an extra equals
* certainty only know >>=
<baweaver> Ox0dea: Scala because Spark, and Scala is less likely to scare the children
<certainty> knows even
<baweaver> echo again
<baweaver> fancy that
<certainty> woops
<certainty> sorry
spotted1 has left #ruby [#ruby]
rushed has quit [Quit: rushed]
<Ox0dea> baweaver: So, I can't get yours to work? What's this `first_four`?
<baweaver> Ox0dea: mind you I know enough Clojure / Lisp / Scheme to be dangerous
<baweaver> ...did I typo that?
MakMan has joined #ruby
MakMan has quit [Max SendQ exceeded]
ruurd has quit [Quit: ZZZzzz…]
<Ox0dea> Changing it to `first_thirteen` doesn't help matters. :<
<baweaver> works for me
<baweaver> odd.
<baweaver> edited gist
<Ox0dea> Ah, yeah, it's all good.
<baweaver> I'd been testing with 4
<baweaver> easier to trace
<Ox0dea> I didn't bother to check the new correct answer 'til just now; I only saw that you had some zeroes in the final stack and thought that couldn't be right.
<baweaver> ah, looks like I may be giving a talk in SF for JS code generation titled "You Type Too Much"
chipotle has quit [Quit: cheerio]
<baweaver> covering bash/zsh aliasing, then to editor snippets/macros, then to Yeoman generators, and finishing up with hook generators for REST APIs
<baweaver> if an API is kind enough to tell you its params and expected types, you can easily generate a client against it.
riotjones has joined #ruby
allomov has joined #ruby
paulcsmith has quit [Ping timeout: 240 seconds]
jas02 has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
MakMan has joined #ruby
nateberkopec has joined #ruby
stan has joined #ruby
MakMan is now known as MakMan
<baweaver> well bed for me, then back to preparing talk materials. I'll rig that talk to use rails generators instead of yeoman for railsconf later :D
dionysus69 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
ruurd has joined #ruby
dionysus69 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lubarch has joined #ruby
Ilyes512 has joined #ruby
nfk|laptop has joined #ruby
nateberkopec has quit [Ping timeout: 246 seconds]
felixr has joined #ruby
bronson has joined #ruby
codecop has joined #ruby
Soda has joined #ruby
Soda has quit [Read error: Connection reset by peer]
skade has joined #ruby
workmad3 has joined #ruby
vondruch has joined #ruby
SCHAAP137 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
ruurd has quit [Quit: ZZZzzz…]
workmad3 has quit [Ping timeout: 246 seconds]
dome has joined #ruby
chipotle has joined #ruby
cih has joined #ruby
zomgbie has quit [Ping timeout: 250 seconds]
zeroDivisible has quit [Ping timeout: 240 seconds]
ozz has left #ruby [#ruby]
toretore has quit [Quit: This computer has gone to sleep]
Xeago has joined #ruby
dome22xl has quit [Ping timeout: 268 seconds]
ozz has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
ljarvis has joined #ruby
<ozz> I'm trying to install a gem package 'rugged' on arch. I keep getting an error saying that I have to install development tools first. But I've already installed base-devel. Any one knows how to solve this?
Glenjamin has joined #ruby
<Glenjamin> Hi all, is there any way to create an anonymous scope which doesn't leak local variables?
<apeiros> proc { localsherearenotleaked }.call
<apeiros> what do you need it for, Glenjamin?
<Glenjamin> in a chef recipe, i want to share a value between only_if and ruby_block
<Glenjamin> but not worry about namespace clashes
<Glenjamin> proc {}.call seems reasonable enough - basically the same an as IIFE in JS
<ljarvis> moin
firstdayonthejob has quit [Ping timeout: 268 seconds]
LBRapid has joined #ruby
<jhass> ozz: what's the full error?
paulcsmith has joined #ruby
<Ox0dea> apeiros, jhass: Any way to get the anonymous module from load('foo', true) without walking ObjectSpace?
<apeiros> Glenjamin: IMO if you have an issue with local variables clashing you have a larger issue at hand anyway
chipotle has quit [Quit: cheerio]
htmldrum has quit [Ping timeout: 240 seconds]
<apeiros> Ox0dea: with code in the loaded module. which sucks. I wish load returned it.
<Ox0dea> For serious.
DoubleMalt has joined #ruby
<apeiros> Ox0dea: had to come up with my own way for a plugin system of mine because of that.
<Glenjamin> well, the correct fix is to create an LWRP
<Ox0dea> apeiros: That's exactly where I'm at.
<Glenjamin> but sometimes i'm lazy, and i was wondering what the band-aid version is
<ozz> jhass: here is the full error : http://pastebin.com/sMCfRvE2
<ruboto> ozz, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/687f1e51403196b51627
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<apeiros> Ox0dea: anonymous modules have another issue too - some code relies on being able to resolve the namespace
<jhass> ozz: pacman -S libgit2
<apeiros> Ox0dea: which is why I resorted to Plugins::All.const_set("Plugin#{SecureRandom.uuid.delete('-')}", Module.new)
Moblin has quit [Read error: Connection reset by peer]
<apeiros> (actually back then with rand, not securerandom, also added a while loop + mutex to ensure the const didn't exist)
<Ox0dea> This'll be fun.
Torrieri has joined #ruby
Torrieri has joined #ruby
<Ox0dea> I'm not loading modules. :<
Glenjamin has left #ruby [#ruby]
<Ox0dea> The loaded files contain top-level method definitions and instance variables.
petricore has joined #ruby
<ozz> jhass: I'm still getting the same error.
<jhass> ozz: are you sure it's exactly the same output?
<Ox0dea> ozz: $ gem install rugged -- --use-system-libraries
<Ox0dea> Oh, never mind.
joonty has joined #ruby
<ozz> jhass: yeah, it looks the same
<jhass> well, you only saw (considered relevant) "please install development tools" last time :P
ByronJohnson has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Trieste has quit [Ping timeout: 240 seconds]
<ozz> jhass: I diffed both the outputs. No change :(
Torrieri has quit [Ping timeout: 244 seconds]
<jhass> ozz: /home/ozz/.gem/ruby/2.2.0/extensions/x86-linux/2.2.0/rugged-0.23.2/gem_make.out then
<Ox0dea> jhass: Have you tried to reproduce?
<jhass> sure, I have rugged installed
<Ox0dea> It installed fine here as well.
<jhass> it's a pronto dependency
pawnbox has joined #ruby
<ozz> I'm new to ruby. How can I find out what packages rugged depends on?
<jhass> please gist the log file I mentioned
<Ox0dea> ozz: It has no runtime dependencies.
<jhass> well, libgit2 ;)
<Ox0dea> But they try to vendor that.
<Ox0dea> That is, they do vendor it.
<jhass> nothing special
charliesome has joined #ruby
<jhass> are you sure you installed libgit2? pacman -Qi libgit2
Gnomethrower has quit [Remote host closed the connection]
<ozz> jhass: yeah I did
<jhass> do you have a mkmf.log next to gem_make.out?
SylarRuby has quit []
dome22xl has joined #ruby
<apeiros> Ox0dea: "I'm not loading modules" - the other part of what I wrote is module_eval(File.read(path), path) - which essentially means it does what load(path, true) does, just with a named instead of an anonymous module, plus I have a ref to the mod
<Ox0dea> apeiros: Yep, I figured I'd need to resort to eval'ing strings. :/
<apeiros> Ox0dea: require/load don't do anything else anyway
<Ox0dea> I know, but it still feels icky.
<apeiros> (apart from require's ability to load native extensions, of course)
dome has quit [Ping timeout: 268 seconds]
DoYouKnow has quit []
<Ox0dea> Are you saying Ruby can't parse ELF?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Only kidding, of course; we've got FFI.
<jhass> ozz: so you got a 32bit box?
Soda has joined #ruby
tvw has joined #ruby
mjago has quit [Remote host closed the connection]
lubarch has quit [Read error: Connection reset by peer]
paulcsmith has quit [Ping timeout: 250 seconds]
<ozz> jhass: yeah its a 32
<Ox0dea> ozz: Is this a recent Arch install?
lubarch has joined #ruby
<ozz> yup
ruurd has joined #ruby
postmodern has quit [Quit: Leaving]
<Ox0dea> Would you consider blowing it away and starting fresh? :P
<Ox0dea> You've managed to get it into a bad state mighty quickly.
<Ox0dea> Seems like a multilib issue at first glance.
<Ox0dea> What with the redefinition warnings.
zotherstupidguy has quit [Quit: WeeChat 1.2]
<jhass> yeah, perhaps installed lib32- stuff on a 32bit system
<jhass> ozz: pacman -Qs lib32 anything?
<ozz> jhass: nothing
drptbl has joined #ruby
<Ox0dea> ozz: Did you install everything from base-devel?
peteykun has joined #ruby
<ozz> Ox0dea: went with the default all
<Ox0dea> Pleb.
<Ox0dea> <3
Balzrael has joined #ruby
<jhass> I don't have a libgcc.so even
<Ox0dea> ozz: You installed ruby-rugged from the AUR, didn't you?
mjago has joined #ruby
<jhass> ozz: pacman -Qo /usr/lib/libgcc.so ?
<ozz> Ox0dea: I dont remember doing it.
<Ox0dea> But you did or didn't?
<ozz> Ox0dea: I didnt
<ozz> jhass: No package owns /usr/lib/libgcc.so
<Ox0dea> Yikes.
<jhass> well, that's not good
<jhass> where does it come from?
<shevy> outer space!
mike___1234 has joined #ruby
dhjondoh has joined #ruby
arup_r has quit [Ping timeout: 252 seconds]
icarus has joined #ruby
<shevy> hmm I have no libgcc.so here
<Ox0dea> ozz: Uh-oh. Do you use SSH?
DrCode has quit [Remote host closed the connection]
<ozz> Anyways thanks guys (jhass Ox0dea). I'm tired of debugging this any further. I'm re installing my OS. Hopefully that should solve the problem
<ozz> Or else I'll change my distro
<ozz> :(
<Ox0dea> Might wanna do. :(
<jhass> well, pkgfile libgcc.so returns nothing
<jhass> it didn't come from arch
<Ox0dea> It's apparently a virus? http://superuser.com/q/863997
DLSteve has joined #ruby
<jhass> you probably did sudo make install gcc at some point or something
<Ox0dea> Maybe he got configuration-happy with sshd.
<jhass> Ox0dea: that doesn't sound like the virus crated libgcc.so there, rather infected it
<ozz> jhass: Yeah, I remember doing something like that
<jhass> ozz: well there you go, don't
<Ox0dea> Don't compile your compiler.
<Ox0dea> Brian Kernighan warned us this would happen.
haxrbyte has quit [Quit: Leaving...]
<jhass> never sudo make install anything unless you damn well know what you're doing
<ozz> :D. I was experimenting how to compile a while back
<jhass> especially on arch where somebody packaged anything
<jhass> and broke your compiler in the process, good job I guess
<Ox0dea> ozz: You just find your Configure and Make keys and press them in rapid succession, right?
<ozz> Ox0dea: absolutely
<Ox0dea> ozz: Cool, wanted to make sure I've been compiling right.
<Ox0dea> ozz: There's one last thing you might try before you start over.
<ozz> Ox0dea: what is it?
mxrguspxrt has joined #ruby
<Ox0dea> pacman -S clang && export CC=clang && gem install ...
nateberkopec has joined #ruby
<jhass> CXX=clang++
<jhass> both that is
<yorickpeterse> morning
sjums has left #ruby [#ruby]
<Ox0dea> >> 'yorickpeterse'.size == ('shevy' + 'ozz' + 'jhass').size
<ruboto> Ox0dea # => true (https://eval.in/443389)
<Ox0dea> It's jarring as shit.
<Ox0dea> It's almost like I hear you come in.
<Ox0dea> (I wouldn't have it any other way.)
wasamasa has quit [Excess Flood]
wasamasa has joined #ruby
wasamasa has joined #ruby
wasamasa has quit [Excess Flood]
bronson has joined #ruby
wasamasa has joined #ruby
wasamasa has quit [Changing host]
wasamasa has joined #ruby
ByronJohnson has joined #ruby
<yorickpeterse> ?
<Ox0dea> yorickpeterse: WeeChat's nick column auto-widens to accommodate the longest nick.
ByronJohnson has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 246 seconds]
<Ox0dea> It was just us <6ers for a while and then everything got mushed muchly to the right.
<Ox0dea> <=
<yorickpeterse> Aah
<Ox0dea> Are you insinuating that I'm taking this too seriously?
zomgbie has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
<yorickpeterse> Sounds more like you have a bad case of OCD
mjago has quit [Quit: Asta la vista]
dome has joined #ruby
phatypus has joined #ruby
zomgbie has quit [Ping timeout: 240 seconds]
paulcsmith has joined #ruby
mjago has joined #ruby
nfk|laptop has quit [Ping timeout: 250 seconds]
zomgbie has joined #ruby
dome22xl has quit [Ping timeout: 272 seconds]
dionysus69 has joined #ruby
jimms has joined #ruby
jimms has left #ruby [#ruby]
<ljarvis> :/
yardenbar has joined #ruby
Oka has quit [Quit: o/]
zomgbie has quit [Ping timeout: 246 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ariadeno has quit [Remote host closed the connection]
cih has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
cih has joined #ruby
parduse is now known as Guest77378
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest77378 has quit [Ping timeout: 272 seconds]
pardusf has joined #ruby
MakMan has quit [Ping timeout: 240 seconds]
dhjondoh has quit [Remote host closed the connection]
yardenbar has quit [Remote host closed the connection]
dikaio has quit [Quit: ........]
devoldmx has quit [Ping timeout: 240 seconds]
phatypus has quit [Quit: .>]
Ariadeno has joined #ruby
Ariadeno is now known as Guest66444
DrCode has joined #ruby
rdark has joined #ruby
rdark has quit [Client Quit]
<yorickpeterse> so TIL we have this https://about.gitlab.com/team-pets/
<yorickpeterse> which is amazing
rdark has joined #ruby
rdark has quit [Changing host]
rdark has joined #ruby
Macaveli has joined #ruby
skade has quit [Ping timeout: 256 seconds]
DLSteve has quit [Ping timeout: 244 seconds]
Macaveli has quit [Client Quit]
<dionysus69> getting this error: Your Ruby version is 2.1.2, but your Gemfile specified 2.2.3, I am using rvm and I should have 2.2.3, I dont understand where 2.1.2 would come from at all how do I remove it and let my project see 2.2.3?
bankair has quit [Quit: WeeChat 0.3.8]
Ilyes512 has joined #ruby
lubarch has quit [Ping timeout: 268 seconds]
marr has joined #ruby
<jhass> dionysus69: got a .ruby-version ?
<dionysus69> meaning? ?
<jhass> do you have a .ruby-version file in your project root
<dionysus69> nope
<dionysus69> just a gem file
dnewkerk has quit [Quit: dnewkerk]
<jhass> rvm use 2.2.3 --default then I guess
<dionysus69> it is defaulted and its selected it
<dionysus69> but it still gets me that error
<jhass> rvm current ?
<dionysus69> when I write ruby -v it gives me 2.2.3 correctly
<jhass> type -a bundle ?
<dionysus69> rvm current tells me 2.2.3 too
<dionysus69> bundle is /usr/bin/bundle
<jhass> there you go, that's not good
<dionysus69> why ? :S
<jhass> gem install bundler
<dionysus69> oh damn
<jhass> that's very likely having a hashbang pointing to your system ruby
<dionysus69> i figured it out, I installed it using aptitude
<dionysus69> i guess I should have installed it using gem
<dionysus69> but I had gem
<dionysus69> ok nvm i ll try remove it
pawnbox has quit [Remote host closed the connection]
<jhass> gem install bundler should add a proper one prior into your PATH when using RVM
ruurd has quit [Quit: Bye]
<jhass> but sure, getting rid of the global one doesn't hurt
jud has quit [Quit: Leaving]
<dionysus69> cool that worked, removed apt bundler installed gem and done
<dionysus69> thanks ))
ruurd has joined #ruby
lubarch has joined #ruby
<dionysus69> how is the ruby community's opinion about jruby?
<dionysus69> is it stable and is it worth getting familiar to?
cih has quit [Remote host closed the connection]
sundhell has joined #ruby
zotherstupidguy has joined #ruby
G has quit [Quit: leaving]
<apeiros> dionysus69: jruby is excellent
zotherstupidguy has quit [Client Quit]
ByronJohnson has joined #ruby
pawnbox has joined #ruby
paulcsmith has quit [Ping timeout: 240 seconds]
<apeiros> it's better than MRI in a couple of use cases. mostly when startup time doesn't matter (server processes) and C extensions aren't an issue.
sundhell has quit [Client Quit]
<dionysus69> ye it looks good, java has pretty rich library so if it works good then its a dream framework for some people
<apeiros> also when you want parallelism. mri only offers concurrency.
<apeiros> that too. when you actually want to use java libs it may also be a good choice. we e.g. use a jruby instance tethered via DRb to process PDF files
Juanchito has joined #ruby
cih has joined #ruby
Spami has joined #ruby
zomgbie has joined #ruby
<dionysus69> hmm what is drb?
cantaberry has quit [Ping timeout: 260 seconds]
<jhass> Ruby stdlib's RPC mechanism
<apeiros> a way to connect ruby processes and exchange data/call methods in the remote instance
<dionysus69> hmm nice lol i am not that advanced unfortunately
Voker57 has joined #ruby
<apeiros> DRb is pretty easy to use
dome has quit [Ping timeout: 265 seconds]
doddok has joined #ruby
<ruurd> dionysus69 apeiros however be advised that if you are going to use Java stuff you're bound to JRuby from that point onward.
<dionysus69> well I will probably look into it whenever I will want some kind of GUI application
<dionysus69> because so far I havent seen anything good about shoes
karapetyan has quit [Remote host closed the connection]
bubbys has quit [Ping timeout: 264 seconds]
arturaz has joined #ruby
karapetyan has joined #ruby
ByronJohnson has quit [Remote host closed the connection]
workmad3 has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
arturaz has quit [Remote host closed the connection]
adadada has joined #ruby
adadada has quit [Remote host closed the connection]
adadada has joined #ruby
karapetyan has quit [Ping timeout: 272 seconds]
<jhass> ruby-gir, rwx, dunno about Qt
workmad3 has quit [Ping timeout: 240 seconds]
<dionysus69> are those GUI frameworks?
fgo has joined #ruby
<jhass> bindings to GUI frameworks
funkenstrahlen has joined #ruby
mikecmpbll has joined #ruby
<dionysus69> ruby-gir? google didnt throw anything
dhjondoh has joined #ruby
charliesome has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
charliesome has quit [Client Quit]
<jhass> guess it renamed
tawaffan has quit []
bronson has joined #ruby
bubbys has joined #ruby
<dionysus69> kk :p
ledestin has quit [Max SendQ exceeded]
paulcsmith has joined #ruby
Hobbyboy has quit [Quit: I think the BNC broke.]
yardenbar has joined #ruby
yardenbar has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 250 seconds]
based_pdev_ has joined #ruby
noodle has quit [Ping timeout: 265 seconds]
nertzy2 has joined #ruby
yardenbar has joined #ruby
symm-_ has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
fgo has quit [Quit: WeeChat 1.1.1]
headius_ has joined #ruby
ByronJohnson has joined #ruby
funkenstrahlen_ has joined #ruby
doddok has quit [Quit: Leaving]
doddok has joined #ruby
chouhoul_ has joined #ruby
dasher00 has quit [Ping timeout: 240 seconds]
Rennex_ has joined #ruby
yardenbar has quit [Remote host closed the connection]
S0da has joined #ruby
gregf__ has joined #ruby
martinbjeldbak_ has joined #ruby
sp__ has joined #ruby
ozzloy_ has joined #ruby
rapha_ has joined #ruby
jamo__ has joined #ruby
bakedb_ has joined #ruby
abyss_ has joined #ruby
agentmee1kat has joined #ruby
yardenbar has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
symm- has quit [Ping timeout: 250 seconds]
headius has quit [Ping timeout: 250 seconds]
martinbjeldbak has quit [Ping timeout: 250 seconds]
peterhu has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
perry has quit [Ping timeout: 250 seconds]
timmow has quit [Ping timeout: 250 seconds]
sp_ has quit [Ping timeout: 250 seconds]
M-prosodyContext has quit [Ping timeout: 250 seconds]
ozzloy has quit [Ping timeout: 250 seconds]
funkenstrahlen has quit [Ping timeout: 250 seconds]
finges_ has quit [Ping timeout: 250 seconds]
Soda has quit [Ping timeout: 250 seconds]
Alina-malina has quit [Ping timeout: 250 seconds]
nertzy has quit [Ping timeout: 250 seconds]
akkad has quit [Ping timeout: 250 seconds]
Morrolan has quit [Ping timeout: 250 seconds]
mprelude has quit [Ping timeout: 250 seconds]
Jamo has quit [Ping timeout: 250 seconds]
EdwardIII has quit [Ping timeout: 250 seconds]
linduxed has quit [Ping timeout: 250 seconds]
AustinMatherne has quit [Ping timeout: 250 seconds]
cescalante has quit [Ping timeout: 250 seconds]
Rennex has quit [Ping timeout: 250 seconds]
pl1ght has quit [Ping timeout: 250 seconds]
spectra has quit [Ping timeout: 250 seconds]
zenguy_pc has quit [Ping timeout: 250 seconds]
agentmeerkat has quit [Ping timeout: 250 seconds]
`based_pdev` has quit [Ping timeout: 250 seconds]
_mak has quit [Ping timeout: 250 seconds]
marens has quit [Ping timeout: 250 seconds]
rapha has quit [Ping timeout: 250 seconds]
bakedb has quit [Ping timeout: 250 seconds]
Brando753 has quit [Ping timeout: 250 seconds]
abyss has quit [Ping timeout: 250 seconds]
boshhead has quit [Ping timeout: 250 seconds]
gregf_ has quit [Ping timeout: 250 seconds]
Meeh has quit [Ping timeout: 250 seconds]
ahuman has quit [Ping timeout: 250 seconds]
crowell has quit [Ping timeout: 250 seconds]
AustinMatherne has joined #ruby
dwithers has joined #ruby
dhjondoh has joined #ruby
Morrolan has joined #ruby
Kendos-Kenlen has joined #ruby
crowell has joined #ruby
crowell has quit [Changing host]
crowell has joined #ruby
Meeh has joined #ruby
ahuman has joined #ruby
EdwardIII has joined #ruby
bubbys has quit [Ping timeout: 252 seconds]
<ruurd> QtRuby
<ruurd> qtbindings
boshhead has joined #ruby
zomgbie has joined #ruby
mxrguspxrt has joined #ruby
marens has joined #ruby
cescalante has joined #ruby
_mak has joined #ruby
peterhu has joined #ruby
mprelude has joined #ruby
zenguy_pc has joined #ruby
perry has joined #ruby
perry has quit [Changing host]
perry has joined #ruby
finges_ has joined #ruby
timmow has joined #ruby
linduxed has joined #ruby
Napear has joined #ruby
Hobbyboy has joined #ruby
Brando753 has joined #ruby
spectra has joined #ruby
joonty has quit [Quit: joonty]
akkad has joined #ruby
noodle has joined #ruby
skade has joined #ruby
lubarch has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
dhjondoh has joined #ruby
livathinos has quit [Remote host closed the connection]
yeticry has quit [Quit: leaving]
dasher00 has joined #ruby
ledestin has joined #ruby
bubbys has joined #ruby
mxrguspxrt has quit []
charliesome has joined #ruby
paulcsmith has quit [Ping timeout: 246 seconds]
Me_Engine has joined #ruby
MakMan has joined #ruby
subshad has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
S0da has quit [Remote host closed the connection]
platzhirsch has joined #ruby
dionysus69 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch has left #ruby [#ruby]
haraoka has quit [Remote host closed the connection]
wottam has joined #ruby
charliesome has joined #ruby
platzhirsch has joined #ruby
dasher00 has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
blackmesa has joined #ruby
charliesome has quit [Client Quit]
dhjondoh has quit [Quit: dhjondoh]
rapha_ has quit [Quit: WeeChat 1.3]
Musashi007 has quit [Quit: Musashi007]
DanKnox has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<EdwardIII> just been flicking through ruby
<EdwardIII> i see a lot of info about the how of symbols but not much about the why?
Musashi007 has joined #ruby
herbst has joined #ruby
nateberkopec has joined #ruby
moeabdol has quit [Ping timeout: 255 seconds]
nettoweb has joined #ruby
darkt is now known as tangentstorm
c0m0 has joined #ruby
<Radar> why not?
nateberkopec has quit [Ping timeout: 246 seconds]
<Napear> Someone please correct me if Im wrong... but using symbols is about managing objects in memory... there is always only the one refference to symbols
<Napear> I think... :-)
kraljev11 has quit [Ping timeout: 268 seconds]
blaxter has joined #ruby
dasher00 has joined #ruby
Alina-malina has joined #ruby
dhjondoh has joined #ruby
David27 has quit [Remote host closed the connection]
lubarch has joined #ruby
<jhass> EdwardIII: any background we can relate to?
davedev24 has joined #ruby
<Napear> ??
paulcsmith has joined #ruby
<jhass> Napear: that is somewhat correct, in short Ruby guarantees that :foo.object_id == :foo.object_id will always be true
<jhass> no matter how you construct :foo
<EdwardIII> jhass: my background? i've done a lot of php, python and some perl dev
Musashi007 has quit [Quit: Musashi007]
<jhass> mmh, dunno about perl but the other two don't have enums :/
<Napear> jhass: thanks
<EdwardIII> and some C#
TheHodge has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
stamina has joined #ruby
<jhass> so in Ruby you use symbols mostly for when you'd use an enum or magic numbers elsewhere
<jhass> it's an identifying value
lkba_ has joined #ruby
Lycanii has quit [Remote host closed the connection]
<EdwardIII> but unlike most enums it's standalone, doesn't need to belong to a collection?
claw has joined #ruby
<jhass> yes, or it's one single huge enum if you will
skade has quit [Ping timeout: 246 seconds]
<jhass> as said Ruby guarantees that only one instance ever exists in memory, which makes comparing a symbol to a symbol very cheap, thus it's good for hash keys and such too
lkba has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
<EdwardIII> mmm ok
<jhass> as a rule of thumb use a string if you care about the string value, say you plan operations such "foo".downcase or "foo".size == 3
<EdwardIII> it's funny because a lot of people who release ruby apps tend to use ruby as the config language too
<EdwardIII> and that was always confusing heh
<jhass> use a symbol if you plan to use it as an identifier, that is for operations like foo == :foo, case foo; when :bar; some_hash[:baz]
<EdwardIII> 3 seconds of reading the docs cleared up what it was used for
<EdwardIII> right
<EdwardIII> i think i might dl a couple of frameworks and have a play
<jhass> and another rule of thumb: in doubt use a string
<EdwardIII> ruby seems kinda smalltalkey a little bit looking at some of the docs, like the continuous-passing and super-object-fest
monq has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
<EdwardIII> one thing sounded a bit dodgy: one of the ruby intro docs on the website says that rails monkey patches Fixnum to get some additional functionality
<EdwardIII> is that fairly common in the community?
<jhass> rails (well, a part of it, activesupport) patches basically every core class in existence
konsolebox has quit [Quit: Leaving]
<jhass> that library is specifically done to do that, so it's its contract to do so
<jhass> randomly patching your needs in is not so common, thankfully
blaxter has quit [Ping timeout: 240 seconds]
RealMarc has joined #ruby
nfk|laptop has joined #ruby
DanKnox has joined #ruby
HammyJammy has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Rickmasta has joined #ruby
JammyHammy has quit [Ping timeout: 252 seconds]
Me_Engine has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
relix has joined #ruby
devoldmx has joined #ruby
agent_white has quit [Quit: night]
jun has quit []
herbst has quit [Remote host closed the connection]
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
bluOxigen has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
bruno-_ has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
j_mcnally has joined #ruby
<EdwardIII> ah OK
<EdwardIII> i've had some headaches from monkey patching in JS projects before
bruno- has quit [Ping timeout: 264 seconds]
funkenstrahlen_ has left #ruby ["WeeChat 1.1.1"]
paulcsmith has quit [Ping timeout: 246 seconds]
blaxter has joined #ruby
j_mcnally has quit [Client Quit]
<BrazenBraden> i have a ruby project comprising of scripts which do work and send emails and such (no rails). looking for a good mail queue gem (like Rescue Mailer) but is for plain ruby code. any suggestions? (i am using gem mail for email sending)
K1MOS has joined #ruby
<jhass> maybe just run a generic queue? resque, sidekiq, delayed_job, ...
bluOxigen has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
charliesome has joined #ruby
Ilyes512 has joined #ruby
<BrazenBraden> jhass, will research if those suite my needs.
felixr has quit [Ping timeout: 268 seconds]
Kendos-Kenlen has joined #ruby
OrbitalKitten has joined #ruby
monq has quit [Quit: monq]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beast has joined #ruby
Me_Engine has joined #ruby
iateadonut has joined #ruby
joonty has joined #ruby
doddok has quit [Ping timeout: 268 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
doddok has joined #ruby
haasn has quit [Ping timeout: 264 seconds]
riskish has joined #ruby
riskish has quit [Remote host closed the connection]
rodfersou has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
rubybeginner has joined #ruby
timonv has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
Anti-Pizza has quit [Read error: Connection reset by peer]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
keen___________2 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paulcsmith has joined #ruby
ghormoon has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 244 seconds]
dhjondoh has quit [Quit: dhjondoh]
ghormoon has joined #ruby
keen___________1 has quit [Ping timeout: 255 seconds]
sdothum has joined #ruby
adadada has quit [Ping timeout: 252 seconds]
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
tkuchiki has quit [Remote host closed the connection]
DanKnox has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DanKnox has joined #ruby
danielpclark has joined #ruby
ramfjord has joined #ruby
jun has joined #ruby
charliesome has joined #ruby
naftilos76 has joined #ruby
ruurd has joined #ruby
arup_ has joined #ruby
arup_ has quit [Remote host closed the connection]
jun has quit [Remote host closed the connection]
lubarch has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
Coldblackice has joined #ruby
lubarch has joined #ruby
htmldrum has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
skade has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
paulcsmith has quit [Ping timeout: 246 seconds]
skade has quit [Ping timeout: 260 seconds]
gizmore has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
nateberkopec has quit [Ping timeout: 264 seconds]
emilkarl has joined #ruby
Napear has quit [Quit: leaving]
adadada has joined #ruby
dome22xl has joined #ruby
Coldblackice has quit [Ping timeout: 268 seconds]
ledestin_ has joined #ruby
ledestin has quit [Ping timeout: 252 seconds]
herbst has joined #ruby
northfurr has joined #ruby
DanKnox has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
rushed has joined #ruby
shmilan has joined #ruby
Anti-Pizza has joined #ruby
Gnomethrower has quit [Ping timeout: 264 seconds]
UtkarshRay has joined #ruby
skade has joined #ruby
AlexRussia has joined #ruby
elperdut_ has joined #ruby
moeabdol has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
bubbys has quit [Ping timeout: 256 seconds]
shmilan has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: joonty]
moeabdol has quit [Ping timeout: 260 seconds]
htmldrum has quit [Ping timeout: 252 seconds]
jeffreylevesque has quit [Ping timeout: 246 seconds]
lubarch has quit [Ping timeout: 250 seconds]
bubbys has joined #ruby
solocshaw has joined #ruby
DanKnox has joined #ruby
ozz has quit [Quit: Lost terminal]
lubarch has joined #ruby
OrbitalKitten has joined #ruby
paulcsmith has joined #ruby
arturaz has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
yardenbar has quit [Remote host closed the connection]
arturaz has quit [Remote host closed the connection]
prestorium has joined #ruby
yardenbar has joined #ruby
Trieste has joined #ruby
chipotle has joined #ruby
yardenbar has quit [Remote host closed the connection]
yardenbar has joined #ruby
peteykun has quit [Quit: Leaving]
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
blaxter has quit [Quit: foo]
skade has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.2]
adadada has quit [Ping timeout: 260 seconds]
Napear has joined #ruby
sgambino has joined #ruby
trautwein has joined #ruby
hackeron has quit [Ping timeout: 260 seconds]
trautwein has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dome has joined #ruby
trautwein has joined #ruby
yardenbar has quit [Remote host closed the connection]
trautwein has quit [Client Quit]
<mikecmpbll> is there anything similar to ObjectSpace.trace_object_allocations_start and ObjectSpace.dump_all(..) for Ruby 2.0.0?
<mikecmpbll> trying to track down a memory leak and all the techniques i can find are for 2.1 :'(
Rennex_ is now known as Rennex
dome22xl has quit [Ping timeout: 260 seconds]
yardenbar has joined #ruby
<jhass> time to upgrade \o/
<jhass> scnr
<mikecmpbll> heh, ikr. will do it this weekend
<mikecmpbll> but i'm impatient and bored and want to debug it naoo
jadergabriel has quit [Ping timeout: 260 seconds]
pandaant has joined #ruby
adadada has joined #ruby
<mikecmpbll> guess i can do it not in production, more faff tho.
A124 has quit [Quit: '']
rikkipitt has joined #ruby
sundhell has joined #ruby
Jardayn has joined #ruby
paulcsmith has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
ruby-lang255 has joined #ruby
<ruby-lang255> hello
nateberkopec has joined #ruby
<ruby-lang255> I would like some very basic help/advice.
bronson has joined #ruby
<bnagy> don't sleep in socks
<Napear> hah
<ruby-lang255> Problem one: I have an array (or list, no clue what you guys call it), it is of the shape [1,7,4,3,....]
tagrudev has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 246 seconds]
jadergabriel has joined #ruby
<dionysus69> how do I remove the gems that were installed by older version of ruby?
<ruby-lang255> how can I take the elements, say, two at a time?
yardenbar has quit [Remote host closed the connection]
<dionysus69> for example I have shoes installed and it doesnt show up in gem list
tagrudev has joined #ruby
<bnagy> ruby-lang255: read the docs for Enumerable
<[k-> &ri Enumerable
<ruby-lang255> let me see...
m4dfry has joined #ruby
<[k-> A [] construct is called an Array in Ruby
<Napear> ruby-lang255: this might also help...
SylarRuby has joined #ruby
<ruby-lang255> .each_slice seems to be it, thanks, great
<Napear> your welcome
atomical has joined #ruby
<jhass> dionysus69: rvm list
<ruby-lang255> two. Assume I got a slice, how do I make a comma-separated, non-bracketed string out of it?
bronson has quit [Ping timeout: 246 seconds]
<jhass> dionysus69: and rvm remove or something, rvm help has plenty of docs
j416 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<m4dfry> hi guys, i need help w/ a debian installation where it seems i can't install ImageMagick (according to this: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798597)
naftilos76 has quit [Ping timeout: 268 seconds]
<[k-> ruby-lang255: read all of Array, Enumerable and String
<[k-> they are helpful
marens_ has joined #ruby
<jhass> m4dfry: you shouldn't need the debug symbols (that's what -dbg packages contain)
lele|w has joined #ruby
bakedb_ has quit [Remote host closed the connection]
<dionysus69> jhass: I removed old versions of ruby
marens has quit [Ping timeout: 246 seconds]
<dionysus69> but shoes and stuff like that stil lremained and I had to delete them by hand
<ruby-lang255> [k-, I'm sure they would be helpful, but it has words that I don't know
Prira has quit [Read error: Connection reset by peer]
Pisuke has joined #ruby
<[k-> they are accompanied by explanations, elaborations, and examples
<jhass> dionysus69: rvm help gemset or clean or cleanup or something I suppose, I'm sure there's a command somewhere
jeffreylevesque has joined #ruby
<ruby-lang255> they don't explain what an object is, to begin with...
bakedb has joined #ruby
<m4dfry> jhass: when i do apt-get install i got this libmagickwand-dev : Depends: libmagickwand-6.q16-dev but it is not going to be installed
<ruby-lang255> I still haven't managed to understand that bit
<jhass> ruby-lang255: every value in Ruby is an object, all you need for the moment
<ruby-lang255> so an object is a value
<shevy> objects have methods
<jhass> in Ruby, yes
<ruby-lang255> so, for example, 12 has a method?
<shevy> many methods
<mikecmpbll> 12.methods
<ruby-lang255> uhm... what is a method?
<jhass> yes, since it's an instance (aka object) of the class Fixnum which provides a bunch of methods
<mikecmpbll> >> 12.methods
<shevy> >> 12.+(5)
<ruboto> mikecmpbll # => [:to_s, :inspect, :-@, :+, :-, :*, :/, :div, :%, :modulo, :divmod, :fdiv, :**, :abs, :magnitude, :== ...check link for more (https://eval.in/443591)
<ruboto> shevy # => 17 (https://eval.in/443592)
<shevy> + is a method there
cantaberry has joined #ruby
<ruby-lang255> so a method is an operator?
<mikecmpbll> an operator is a method (sometimes)
<jhass> m4dfry: sounds like something for #debian
<shevy> why do you want to call this method an operator :D
<mikecmpbll> :p
MyMind has quit [Ping timeout: 244 seconds]
<ruby-lang255> since it operates on two values, and gives a result
s00pcan has joined #ruby
Prira has joined #ruby
<m4dfry> jhass: there's a way to remove the dependencies of imagemagick in my gemfile ?
<jhass> ruby-lang255: most operators are implemented as methods in Ruby, yet the concepts are largely orthogonal
s00pcan has quit [Remote host closed the connection]
dionysus69 has quit [Read error: Connection reset by peer]
<jhass> ruby-lang255: a method is a function that has an implicit argument which is the object the method is invoked upon
<jhass> m4dfry: maybe, maybe not. I have no clue about your app and its needs
s00pcan has joined #ruby
Ox0dea has quit [Ping timeout: 240 seconds]
<ruby-lang255> ... it has arguments that I don't even know of?
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
<shevy> self
<ruby-lang255> then how can I expect it to behave properly?
<shevy> self!!!
<m4dfry> jhass: ok thanks, i think i will google a little more
<ruby-lang255> self what?
<mikecmpbll> ruby-lang255: the object the method is called on == self
<shevy> self refers to your first object there
<[k-> the concept of I
<shevy> python has explicit self in methods
<[k-> I refers to myself
dionysus69 has joined #ruby
<shevy> def foo(self, yadda):
s00pcan has quit [Remote host closed the connection]
jadergabriel has quit [Quit: Konversation terminated!]
<[k-> python just carries state around
<[k-> the methods are pure
<ruby-lang255> ... you guys got lost me there
<[k-> ?books
<ruboto> You can find a list of recommended books at http://ruby-community.com/pages/links
<[k-> read a book!
<jhass> [k-: is just trying to impress with their haskell knowledge, fine to ignore
banister has quit [Read error: Connection reset by peer]
<shevy> yeah ignore haskell
ruurd has joined #ruby
<adaedra> ruby-lang255: all methods are called on an object. When you do foo.bar, you call bar on foo. In all methods, there is an implicit argument, "self", which represent the object you call the method on, in the foo.bar sample, foo.
<ruby-lang255> well, is that going to help me finally understand this whole object oriented programming concept, so that ultimately I will be able to split an array into smaller pieces?
p0wn3d__ has joined #ruby
arup_r has joined #ruby
universa1 has quit [Remote host closed the connection]
<jhass> nobody said you need to fully grasp OOP to do that
<shevy> an array is an object
<jhass> you already found each_slice, that's all you need
<mikecmpbll> i want you to write a book on OOP before approaching this array task please
<shevy> .each_slice is a method
tier has joined #ruby
<ruby-lang255> it's a function. Or subroutine, if you will.
A124 has joined #ruby
<shevy> no it is connected to an object
<shevy> so it is a method
michael_mbp has quit [Excess Flood]
* ddv gets popcorn
<shevy> why do you want to call it a function
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> ruby-lang255: a function that implicitly receives the value (object) it operates on, yes
<jhass> aka method
sundhell has quit [Quit: WeeChat 1.3]
<ruby-lang255> shevy, because I don't understand what a method is, and I want to call it something that I do understand
yardenbar has joined #ruby
<bnagy> s/aka/iow/
<[k-> a method is an action available
<[k-> for example, pokemon
<ddv> I don't understand the color red therefore I will call it blue
<A124> pokemon.spawn
<[k-> there is fight, run, flee and rubbish
<shevy> ruby-lang255 http://stackoverflow.com/questions/928443/ruby-functions-vs-methods <--- first answer is good
davo has joined #ruby
<[k-> fight, run, flee are actions
<[k-> and those are methods of a pokemob
universa1 has joined #ruby
yardenbar has quit [Remote host closed the connection]
<ruby-lang255> well, let me just read what shevy linked
<shevy> there even is a class Method
s00pcan has joined #ruby
<shevy> to make things more complicated
<jhass> shevy: not sure that's helping atm...
<mikecmpbll> lol
joonty has quit [Quit: joonty]
<mikecmpbll> i don't even think that SO answer will help.
<jhass> yeah
<shevy> you will see
Soda has joined #ruby
<ruby-lang255> read it, it didn't make sense
<mikecmpbll> too concerned with Method, lambda, proc.
<mikecmpbll> ruby-lang255: have you ever seen a class definition?
<shevy> well it's hard to make a method more complicated than it is!
<jhass> ruby-lang255: can you summarize what you understood so far? does the term object make some rough sense in the docs to you by now? if so you (and we) should just move on
<ruby-lang255> mikecmpbll, no. What is a class?
joonty has joined #ruby
michael_mbp has joined #ruby
<bnagy> >> def upcase s; s.tr 'a-z', 'A-Z'; end; upcase "foo" # function
<ruboto> bnagy # => "FOO" (https://eval.in/443617)
<mikecmpbll> hmm, smells this smells troll-like.
<mikecmpbll> -1smells
<bnagy> >> "foo".upcase #method
<ruboto> bnagy # => "FOO" (https://eval.in/443618)
<bnagy> also +1, troll detected
<shevy> mikecmpbll well gateway-chatter :-)
<ruby-lang255> thanks, yea, shevy said so too yesterday
<shevy> not just yesterday, literally since months
<mikecmpbll> heh
<ddv> maybe apeiros should explain the kick method :p
<jhass> bnagy: shall we point out that both are methods in Ruby? :P
<ruby-lang255> eh? the only thing I came here was a programming ppl yesterday
<ruby-lang255> programming problem*
<jhass> ruby-lang255: could you answer my question please?
<bnagy> jhass: :| y u do dis
<ruby-lang255> I can understand so far that there are things you call objects, methods and so on.
<mikecmpbll> lol.
<ruby-lang255> The term object does not make sense in the docs to me.
<A124> Maybe read up poignants guide or so.
sundhell has joined #ruby
<ruby-lang255> sorry for being late on that, jhass
<[k-> do you know the English definition of object?
Antiarc has quit [Ping timeout: 244 seconds]
<ruby-lang255> well, can search it in Oxford dic, just a moment
<jhass> ruby-lang255: mmh, that's not much tbh, did you actually think about the explanations you've been given, I do have to wonder
<ruby-lang255> jhass, I thought about them, but they don't clarify much if anything
<[k-> well, he doesn't know what object means, that's the problem
paulcsmith has joined #ruby
<shevy> objects are the working units in ruby
<A124> I once came upon Ruby, somehow discarded that.. and then again in 2008. I loved the way it works. Objects, methods, it just felt so natural to .. nature and logic. So there I was. Objects are analogic to objects in real life.
<ruby-lang255> and what are they working on?
<A124> Methods are the "stuff" you make with them or happen to them.
<[k-> actions
<ruby-lang255> okay, so that's the other way, objects are worked on
jokester has quit [Quit: WeeChat 1.0.1]
<mikecmpbll> ruby-lang255: ruby-lang255: https://gist.github.com/mikecmpbll/1c079946c1ad184ec5b2
Xeago has quit [Remote host closed the connection]
<bnagy> if you have a dishwasher, it's an object and the buttons are methods
<[k-> a boooooook
<mikecmpbll> now you know how to create them, you don't need to know what they are, abstractly, now go forth and write programs!
<shevy> god, have you never looked how cars are made in a factory? you put stuff in, a car comes out, then you can car.drive around
<bnagy> shevy: whoa whoa let's not get too technical here
<ruby-lang255> So if I have an object, I can tell it what to do without actually describing how to do it?
<[k-> mikecmpbll whoa whoa let's not ignore concepts here
jokester has joined #ruby
<ruby-lang255> that sounds very prolog-like, if anything
<mikecmpbll> he can't understand concepts :(
<[k-> ruby-lang255: what's your background?
<jhass> ruby-lang255: let's make this practical. Go solve your problem, read the docs. If you have a concrete thing in the docs you don't understand come back and ask about that concrete example
<shevy> he is just having fun trollolling
<A124> And classes themselves are objects. For example you have a class cat .. that is whole system. Inside that class youhave the inner workigns of cat and you expose the methods (actions) and other objects. Then when you want a new cat named Timmy and act upon that cat you crate an instance of that class (timmy = Cat.new) and then you make actions upon it that were either inherited or defined in that class.
<A124> ruby-lang255 Helped even a little bit?
prestorium has quit [Quit: Leaving]
prestorium has joined #ruby
<A124> You can imagine everything in Ruby as a "box".
<A124> Even the Ruby interpretor is a box.
<ruby-lang255> no, and shevy's claims are tending to the offensive. Yesterday he was crying "post code or gtfo", and then I did, then "moar code!", and then I did; and now I'm coming back today, and once again he cries "troll"
* mikecmpbll throws the troll a dead goat
<jhass> ruby-lang255: let's just do what I said and I promise it'll stop
<A124> Well, apparently knowledgable people get often heated up by trolls or people that are on a troll level. I know that a lot ... from other chans.
<A124> Read a guide. Search poignant guite to ruby.
<ruby-lang255> jhass, but the docs are several hundreds of pages, and filled with concepts/words which I don't grasp
SylarRuby has quit []
dnewkerk has joined #ruby
<A124> Read a guide.
<mikecmpbll> what do you do when you get to a work in a novel that you don't understand?
<jhass> ruby-lang255: I'm not saying read them like a book, search through them for a concrete problem
<mikecmpbll> you work it out from the context or you look it up
<mikecmpbll> s/work/word
<jhass> ruby-lang255: you try to discuss things in the abstract but reject and abstract explanations and analogies given
<jhass> that just doesn't work, not for you and not for us
<jhass> *any
<Napear> ironiclly its easier than it sounds
paulcsmith has quit [Ping timeout: 240 seconds]
<ruby-lang255> no, I want simply solutions to what I'm trying to program but I know not how. I could program it in fortran, except that fortran doesn't do no HTTPS gets
<mikecmpbll> lol
lele|w has quit [Remote host closed the connection]
<herbst> i prefered Why's guide -> http://mislav.uniqpath.com/poignant-guide/
<ruby-lang255> let's see...
<jhass> ruby-lang255: you've been given a simple solution (look at Enumerable) and then complained that you don't know what an object is
<herbst> it was like reading a fun book while learned some ruby
<EdwardIII> what about the koans?
<jhass> that complain had nothing to do with your concrete problem
<[k-> ruby-lang255: first learn Ruby, Ruby is a different beast than fortran
RobertBirnie has joined #ruby
<ruby-lang255> yea well, I had figured that out already, [k-
<bnagy> >> [1,1,2,2,3,3,4,4].each_slice(2).map {|x,y| x+y}
<ruboto> bnagy # => [2, 4, 6, 8] (https://eval.in/443621)
<[k-> yes, you should have
<bnagy> ruby-lang255: there we go. Cya.
Antiarc has joined #ruby
<ruby-lang255> I don't want their absolute value or sum them up
darkhex has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
<jhass> you have a great talent in saying what you don't want without ever leaking a detail about what you do want. Stop it. Come back with a concrete problem ("I tried this to achieve this other concrete thing but it does this other thing instead")
* A124 is waiting for dist-upgrade t finish
ivanf has quit [Ping timeout: 265 seconds]
<ruby-lang255> what I want is this. I have a list/array of numbers. I need to make a HTTPS request on them to a server, through a CGI where the list of numbers goes behind a question mark. The server responds with a JSON, which I need to examine whether or not they're fitting certain conditions, then put them in an array
<ruby-lang255> but only those which match the conditions
wpp has joined #ruby
<jhass> that's only the middle part, missing 1 & 3
<ruby-lang255> the CGI enables up to 200 requests for numerical IDs to be made at once
headius_ is now known as headius
ivanf has joined #ruby
* jokester smells potential potential vulnerability in the air
<ruby-lang255> 1 & 3 being?
rapha has joined #ruby
<rapha> Hi!
Antiarc has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
<rapha> On http://stackoverflow.com/questions/2268679/output-line-number-in-rails-log-file it says to use a "decorator" on the Logger class. I'm loading that code snippet and sort of expected logger.warn "blah" to magically show line numbers now, but nothing changed. What is the trick with this?
northfurr has quit [Quit: northfurr]
allcentury has quit [Ping timeout: 264 seconds]
<jhass> ruby-lang255: what you tried so far and what it does instead
decoponio has joined #ruby
<jhass> 1) attempt, 2) desired outcome 3) actual outcome
northfurr has joined #ruby
Antiarc has joined #ruby
rushed has quit [Quit: rushed]
<jhass> that makes a great question that will get you a great and effective answer
adadada has quit [Ping timeout: 264 seconds]
<jhass> instead of all this meta bullshit that you're not really willing to invest into anyway
dionysus70 has joined #ruby
<ruby-lang255> 1) tried getting them one by one. 2) getting the list filled 3) the list is getting filled eventually but due to the https session overhead, it being established ~70000 times, it's slow like hell
<jhass> 1) involves code in 90% of the cases
<ruby-lang255> (been running for about 7 hours now and still counting.. 43k currently)
dandrade has joined #ruby
<[k-> Array is inefficient for large datasets if you are going through every single element of it to find a single elemebt
<jhass> [k-: thanks for no contribution
<ruby-lang255> well, the code was provided by somebody on this channel yesterday. I don't quite know how it does what it does, but at any rate it seems to be doing it
dionysus69 has quit [Ping timeout: 265 seconds]
dionysus70 is now known as dionysus69
<jokester> rapha: the answer creates a new object which wraps the original logger with fancy lines
<bnagy> it sounds like you should hire a programmer
nolic has joined #ruby
tno has joined #ruby
<jhass> ruby-lang255: it was me and I simply rephrased your logic, it's still your logic
<jokester> are you calling #warn on the new object? can we see the code?
yardenbar has joined #ruby
<A124> ruby-lang255 PM me if you want personal help, got some time and maybe even patience.
<A124> Also how many requests only 70k?
<[k-> I'm not really following what his problem is in the first case, array + selection + many elements + slowness = ???
<A124> Also most servers you should wait to let other users use the site, or autobans occur.
<A124> [k- SSL negotiation and RTT connection overhead, at least he thinks that.
<ruby-lang255> A124, that happened so I added a random delay timer. Which obviously doesn't speed things up at all
<ruby-lang255> and searched and copied some bits that handle 502 and similar messages
<bnagy> sounds like idx_list.each_slice(200).map {|s| parse_json(do_api_req(s)).compact}.each {|result| insert(result)}
zomgbie has quit [Ping timeout: 240 seconds]
<ruby-lang255> and one Net::ReadTimeout
<jokester> (what) is being eatablished many times? TCP connection or SSL session?
rubybeginner has quit [Ping timeout: 260 seconds]
<jhass> ruby-lang255: .each_slice and .join will allow you to build up the parameter list with two changed lines (and probably another .each depending the response), I don't think you attempted anything yet to solve your current problem
_el_fer_ has joined #ruby
<A124> ruby-lang255 PM me about it or silence.
<A124> You are getting annoing on the channel, sorry to say.
darkhex has quit [Read error: No route to host]
Napear has quit [Quit: leaving]
p0wn3d_ has joined #ruby
OrbitalKitten has joined #ruby
gwendall has joined #ruby
northfurr has quit [Quit: northfurr]
dandrade has quit [Read error: Connection reset by peer]
yardenbar has quit [Remote host closed the connection]
nsuke has joined #ruby
cih has quit [Remote host closed the connection]
p0wn3d__ has quit [Ping timeout: 240 seconds]
cantaberry has quit []
last_staff has quit [Quit: last_staff]
<shevy> that is the real purpose of a troll
yardenbar has joined #ruby
TvL2386 has quit [Ping timeout: 252 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
yardenbar has quit [Remote host closed the connection]
<jhass> shevy: just drop it, turn away if you feel annoyed but don't fuel the heat
monq has joined #ruby
j____ has joined #ruby
`tim` has joined #ruby
nettoweb has quit [Ping timeout: 268 seconds]
bmurt has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
wookiehangover has joined #ruby
<mikecmpbll> libv8 i hate youuuuuu *rages
rushed has joined #ruby
sinkensabe has joined #ruby
htmldrum has joined #ruby
Torrieri has joined #ruby
Torrieri has joined #ruby
dome has quit [Ping timeout: 246 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
ruby-lang764 has joined #ruby
MakMan has quit [Quit: Leaving]
The_Phoenix has joined #ruby
Gnomethrower has quit [Ping timeout: 256 seconds]
ruby-lang255 has quit [Ping timeout: 246 seconds]
ruby-lang764 is now known as ruby-lang255
umgrosscol has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
hackeron has joined #ruby
jgpawletko has joined #ruby
allcentury has joined #ruby
bronson has joined #ruby
fmcgeough has joined #ruby
JaRe_Ax has joined #ruby
prestorium_ has joined #ruby
symbol_ has joined #ruby
Gnomethrower has quit [Ping timeout: 246 seconds]
JaReAx has quit [Ping timeout: 240 seconds]
JaRe_Ax is now known as JaReAx
danielpclark has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 265 seconds]
zotherstupidguy has joined #ruby
rushed has quit [Quit: rushed]
bronson has joined #ruby
prestorium has quit [Ping timeout: 264 seconds]
jun_ has joined #ruby
adadada has joined #ruby
TvL2386 has joined #ruby
jun_ has quit [Client Quit]
Xeago has joined #ruby
rippa has joined #ruby
UtkarshRay has quit [Quit: Leaving]
whippythellama has joined #ruby
ekleog has quit [Read error: Connection reset by peer]
dravine has quit [Ping timeout: 264 seconds]
ekleog has joined #ruby
asxbr has joined #ruby
moeabdol has joined #ruby
dravine has joined #ruby
cih has joined #ruby
malconis has joined #ruby
terlar has joined #ruby
karapetyan has joined #ruby
_el_fer_ has quit [Quit: Leaving]
moeabdol has quit [Ping timeout: 265 seconds]
danielpclark has joined #ruby
haasn has joined #ruby
JaRe_Ax has joined #ruby
dome22xl has joined #ruby
devoldmx has joined #ruby
iamjarvo_ has joined #ruby
lavros has joined #ruby
Ja_Re_Ax has joined #ruby
JaReAx has quit [Ping timeout: 260 seconds]
Ja_Re_Ax is now known as JaReAx
CloCkWeRX has joined #ruby
JaRe_Ax has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Remote host closed the connection]
ekinmur has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
JDiPierro has joined #ruby
Ast_ has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
krz has joined #ruby
mary5030 has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
tagrudev has quit [Remote host closed the connection]
TvL2386 has quit [Read error: Connection reset by peer]
aganov has quit [Read error: Connection reset by peer]
joonty has quit [Quit: joonty]
m4dfry has quit [Quit: Page closed]
A124 has quit [Quit: '']
Torrieri has quit [Quit: Be back later ...]
joonty has joined #ruby
jokester has quit [Quit: WeeChat 1.0.1]
gusTester has joined #ruby
Torrieri has joined #ruby
dome22xl has quit [Ping timeout: 244 seconds]
paulcsmith has joined #ruby
Xeago has quit [Remote host closed the connection]
paulcsmith has joined #ruby
A124 has joined #ruby
devdazed has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jokester has joined #ruby
Iouns has joined #ruby
Xeago has joined #ruby
paulcsmith has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
paulcsmith has joined #ruby
htmldrum has quit [Ping timeout: 255 seconds]
DLSteve has joined #ruby
Torrieri has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
freerobby has joined #ruby
mary5030 has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 246 seconds]
bigmac__ has joined #ruby
riotjones has quit [Quit: Leaving...]
mary5030 has joined #ruby
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
OrbitalKitten has joined #ruby
lubarch has quit [Ping timeout: 240 seconds]
ruby-lang255 has quit [Ping timeout: 246 seconds]
doddok has quit [Read error: Connection reset by peer]
WizJin has joined #ruby
inteq has quit [Remote host closed the connection]
j____ has quit [Quit: Lost terminal]
tkuchiki has joined #ruby
dorei has joined #ruby
prestorium_ is now known as prestorium
NeverDie has joined #ruby
casadei has joined #ruby
devoldmx has joined #ruby
sanjayu has joined #ruby
m8 has joined #ruby
bruno-_ has quit [Ping timeout: 252 seconds]
JaReAx has quit [Read error: Connection reset by peer]
wpp has quit [Quit: ZZZzzz…]
JaReAx has joined #ruby
dhollinger has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
last_staff has joined #ruby
bronson has quit [Remote host closed the connection]
TPBallbag has joined #ruby
evanjs has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
samukasmk has joined #ruby
decoponio has quit [Ping timeout: 246 seconds]
decoponyo has joined #ruby
ruby-lang255 has joined #ruby
emilkarl has quit [Quit: emilkarl]
sinkensabe has quit [Remote host closed the connection]
rikkipitt has quit [Remote host closed the connection]
dionysus69 has quit [Read error: Connection reset by peer]
freerobby has quit [Read error: Connection reset by peer]
amystephen has joined #ruby
freerobby has joined #ruby
dionysus69 has joined #ruby
rikkipitt has joined #ruby
uri_ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
sinkensabe has joined #ruby
emilkarl has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Ast_ has quit [Quit: Page closed]
unshadow has joined #ruby
sinkensabe has quit [Client Quit]
chipotle has joined #ruby
sharkman has joined #ruby
glider has joined #ruby
Cyther has joined #ruby
tvw has quit []
samukasmk has quit [Ping timeout: 240 seconds]
mustmodify_ has joined #ruby
<mustmodify_> Is there a way to make an instance of a class falsey?
<glider> Why is the output: block given to 'one' returns "three" instead of block given to 'two' returns "three" over here https://eval.in/443657 ?
samukasmk has joined #ruby
<[k-> mustmodify_: no
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rutix has joined #ruby
Rutix has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
<[k-> glider: one(two) do
<[k-> do belongs to one because it has high precedence
evanjs has quit [Remote host closed the connection]
evanjs has joined #ruby
fullofcaffeine has joined #ruby
evanjs has quit [Remote host closed the connection]
<glider> [k-: What do you mean by high precedence?
mjago has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
<[k-> precedence determines the order which things are evaluated in
<glider> If I used one two { "three" } the output would be "block given to 'two' returns 'three'", why?
freerobby has joined #ruby
<[k-> {} has lower precedence
<[k-> do you remember BODMAS and PEDMAS from school?
<[k-> ?quickref glider
<glider> [k-: Yeah. How does that apply here?
allcentury has quit [Quit: WeeChat 1.2]
<[k-> Brackets have the highest precedence
<glider> you just said {} has lower precedence
<[k-> do has a higher precedence, it is evaluated first
<[k-> yes, {} has a lower precedence
<[k-> one(two { "three" })
<shevy> "Keep in mind that the bracket syntax has a higher precedence than the do..end syntax."
<glider> brackets must have higher precedence to be evaluated first?
nsuke has quit [Remote host closed the connection]
_mak has left #ruby [".."]
<shevy> dunno, {} are also used for Hashes so it should be more complex for the parser than do/end
Ilyes512 has joined #ruby
dionysus69 has joined #ruby
<[k-> no, it has lower precedence than an application of the method one
<[k-> one gets evaluated first
ruby-lang255_ has joined #ruby
<[k-> then "two { " three" }"
ruby-lang255 has left #ruby [#ruby]
<mustmodify_> [k-: blah, that's what I worried about. OK thanks.
<[k-> do has a higher precedence
<mustmodify_> blah! Stupid prepositions.
ruby-lang255_ is now known as ruby-lang255
spcmastertim has joined #ruby
<[k-> "one do" gets evaluated first
<[k-> then "two"
pawnbox has quit []
glider has left #ruby ["Leaving"]
c0m0 has quit [Ping timeout: 264 seconds]
SimpleBIT has joined #ruby
SimpleBIT has quit [Client Quit]
sanjayu has quit [Read error: Connection reset by peer]
Me_Engine has quit [Read error: Connection reset by peer]
sanjayu has joined #ruby
glider has joined #ruby
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
<glider> {} has higher precedence and do end has lower precedence.
<glider> With do...end the example I asked about gets executed as one(two) do "three" end. I think.
<[k-> i may have gotten precedence wrong, but the way its evaluated is exactly what i said earlier
chipotle has quit [Ping timeout: 264 seconds]
<shevy> yeah as written on stackoverflow above :) you can have the above work if you would be more explicit, for instance:
<shevy> one(two) { 'three' } # if two is an argument; if it is a method then re-shuffle the )
danielpclark has quit [Ping timeout: 268 seconds]
<glider> shevy: Yup!
<shevy> or a hash
<shevy> one(two) {{ cat: 'tom', mouse: 'jerry' }}
<shevy> haha
bruno- has joined #ruby
Me_Engine has joined #ruby
TheWhiteOx has joined #ruby
deavid has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
freerobby has quit [Quit: Leaving.]
<glider> Is it more conventional to use Integer("1") or "1".to_i ?
Me_Engine_ has joined #ruby
cassioscabral has joined #ruby
<shevy> the behaviour is different
kobain has joined #ruby
chouhoulis has joined #ruby
<shevy> >> Integer(nil)
<ruboto> shevy # => can't convert nil into Integer (TypeError) ...check link for more (https://eval.in/443675)
<[k-> the second
Me_Engine_ has quit [Client Quit]
kobain has quit [Max SendQ exceeded]
davidt has joined #ruby
<shevy> yeah, rare to see Integer() in real code
<adaedra> glider: it depends. Integer() will throw errors on invalid input, not to_i.
<glider> shevy: Also how does Integer("1") work? Isn't Integer a class?
chouhoul_ has quit [Read error: Connection reset by peer]
<adaedra> It's a class and a method.
kobain has joined #ruby
<adaedra> >> method(:Integer)
<ruboto> adaedra # => #<Method: Object(Kernel)#Integer> (https://eval.in/443677)
<shevy> glider it was a def Integer() cleverly fooling you :)
<glider> adaedra: How would I create a something that is a class and method myself?
<[k-> you can define methods with uppercase
kobain has quit [Max SendQ exceeded]
<[k-> the class and the method are different things
<shevy> >> class Foo; end; def Foo(); puts 'hi'; end; Foo()
<ruboto> shevy # => hi ...check link for more (https://eval.in/443678)
kobain has joined #ruby
<shevy> and you can also define []
<glider> Names don't conflict with each other?
Me_Engine_ has joined #ruby
Me_Engine has quit [Ping timeout: 264 seconds]
<shevy> >> class Foo; def self.[](i = 'hello world'); puts i; end; end; Foo[]
<ruboto> shevy # => hello world ...check link for more (https://eval.in/443680)
Me_Engine_ has quit [Client Quit]
<adaedra> ?try glider
<ruboto> glider, Why don't you try it and see for yourself?
<shevy> glider the ruby parser came from hell... was a twitter message once
<[k-> the () tells ruby you are referring to the method
<shevy> but it can infer the intent, like if you use () then it can not be a variable, and it can not be []
<[k-> ruby assumes the class otherwise
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bb010g has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
monq has quit [Remote host closed the connection]
emilkarl has quit [Quit: emilkarl]
stardiviner has quit [Ping timeout: 255 seconds]
TheWhiteOx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has joined #ruby
Torrieri has joined #ruby
danielpclark has joined #ruby
<shevy> how many ruby programs make use of github-checkouts? I think bundler can do so e. g. download from github... any other ruby-program?
ruurd has quit [Quit: ZZZzzz…]
inteq has joined #ruby
<DylanJ> hi guys. if i have [{'x':1}, {'x':2}, .. {'x':'foo'}] - are there any tricks to get this array? [1,2,..,'foo']? just curious if there's something shorter than arr.map{|h|h['x']} => [1,2,..,'foo']. ty
ekinmur has quit [Quit: Textual IRC Client: www.textualapp.com]
darkf has quit [Quit: Leaving]
jeff_laplante has joined #ruby
nfk|laptop has quit [Quit: yawn]
TheWhiteOx has joined #ruby
karapetyan has quit [Remote host closed the connection]
<[k-> Hash#values does this
<mustmodify_> DylanJ: Glad you provided your own solution. When I started reading I was like, "Homework!!!" Could be because I have a teenager named Dylan. LOL.
<shevy> isn't that already short?
karapetyan has joined #ruby
deavid has joined #ruby
<mustmodify_> It's short but much less readable than #values
karapetyan has quit [Remote host closed the connection]
<mustmodify_> well
bronson has joined #ruby
<shevy> you even optimized a ' ' away when you wrote arr.map{ rather than arr.map {
<mustmodify_> he has an array of hashes.
<shevy> :D
<mustmodify_> so you would want
karapetyan has joined #ruby
<mustmodify_> array.map(&:values).flatten
<shevy> longer!
A124 has quit [Quit: '']
SCHAAP137 has quit [Remote host closed the connection]
ndrei has joined #ruby
TheWhiteOx has quit [Client Quit]
<shevy> good that he uses the key 'x'
<mustmodify_> more readable?
<mustmodify_> YMMV
<mustmodify_> I like shorter but not at the expense of expressing intent.
<avdi> using #values assumes that there are only values of 'x', no values of 'y' that need to be extracted separately
<DylanJ> mustmodify_: i know ruby ;). for instance if i had [a,b,c] where a,b,c were objects that had the method `x` then i could have done arr.map(&:x) - since you can call a method on the object you're yielding to. i don't know how to pass an argument to that though. and maybe it's possible with tricks.
<shevy> nah you can't pass an argument to &:x sadly
<DylanJ> QQ
<shevy> perhaps in ruby 3.0
patchedmonkey has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
Me_Engine has joined #ruby
relix has quit [Read error: Connection reset by peer]
<avdi> unlikely. Ruby isn't like JavaScript; it doesn't treat subscripting and object methods as nearly identical.
relix has joined #ruby
slawrence00 has joined #ruby
<glider> part
Me_Engine has quit [Client Quit]
glider has quit [Quit: Page closed]
naftilos76 has joined #ruby
<avdi> You can get the desired behavior with an extra step of converting all the hashes to ostructs
_el_fer_ has joined #ruby
jgpawletko is now known as jgpawletko_away
<ruboto> avdi, we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/395ba703a4bf29ad660d
<ruboto> irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
<DylanJ> :( extrastep -> more characters. weak trick.
ramfjord has joined #ruby
<jhass> but that's slow and verbose if you only do it for the sake of being able to map(&:x)
<avdi> jhass: indeed
fmcgeough has quit [Quit: fmcgeough]
<jhass> so I guess the answer is no
<avdi> ruboto: irccloud does so have syntax highlighting
<avdi> and yes I know I'm talking to a robot
moeabdol has quit [Client Quit]
<tubbo> yeah i was wondering about that
<tubbo> what's with the irccloud hate :P
<jhass> very very subtle
<tubbo> we only hate pastie in rails (and i'm also not sure why, i've never had a problem viewing pasties)
<jhass> and the font is tiny
<tubbo> #ror*
<Papierkorb> tubbo: wasn't pastebin banned, but pastie ok?
<shevy> ruboto is opinionated
<tubbo> Papierkorb: that's what it is
<avdi> jhass: I can't see how it's any more subtle than the gist highlighting
<avdi> somebody should tell ruboto that TMTOWTDI
baroquebobcat has quit [Quit: baroquebobcat]
adadada has quit [Ping timeout: 246 seconds]
NeverDie has quit [Quit: http://radiux.io/]
<avdi> oh well, if ruboto wants to auto-gist my pastes, I'm happy to let it do the work
ramfjord has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
<DylanJ> this guy has tricks
lsmola has quit [Ping timeout: 252 seconds]
leat has quit [Quit: leat]
p0wn3d_ has quit [Ping timeout: 272 seconds]
<avdi> DylanJ: well yeah, I can show you all kinds of stuff like that. There's a very simple Array#to_proc extension I've been tempted to submit as Ruby patch.
samukasmk has quit [Ping timeout: 255 seconds]
<DylanJ> Do you have some of that posted anywhere?
sanjayu has quit [Read error: Connection reset by peer]
That_noob has joined #ruby
<jhass> I still like Crystals syntax rewrite, .map &.["x"] or .map &.fetch("x")
<avdi> jhass: me too
sanjayu has joined #ruby
ekinmur has joined #ruby
ruurd has joined #ruby
moeabdol has joined #ruby
<ruboto> avdi, as I told you already, please use https://gist.github.com
<avdi> wow, ruboto gets cranky
sundhell has quit [Ping timeout: 240 seconds]
samukasmk has joined #ruby
<avdi> because I care about robot feelings: https://gist.github.com/33cacf9e195987effd06
<DylanJ> ruboto: whatcha gunna do about it brah
<DylanJ> the robot doesnt even forgive
<mustmodify_> I like that it's stateful. Kinda funny.
jas02 has quit [Quit: jas02]
<mustmodify_> I wonder if you could do sudo ... irccloud...
j_mcnally has joined #ruby
<mustmodify_> and it would say "sudo make me a sandwich"
TheWhiteOx has joined #ruby
sanjayu has quit [Read error: Connection reset by peer]
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davo has quit [Read error: Connection reset by peer]
sanjayu has joined #ruby
TheWhiteOx has quit [Client Quit]
moeabdol has quit [Quit: WeeChat 1.3]
<avdi> DylanJ: oh, BTW, some of us here aren't guys :-)
<Coraline> Thanks avdi
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
eminencehc has joined #ruby
kies has quit [Ping timeout: 256 seconds]
patchedmonkey has joined #ruby
<DylanJ> Obviously by me saying guys I was addressing my question to the men of the channel. /me rollseyes. Sorry for not being politically correct.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sanjayu has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
<mustmodify_> <echo-voice>ONLY MANLY MEN MAY ANSWER THE QUESTIONS I POSE.</echo-voice> -some religious guy
bruno- has quit [Read error: Connection reset by peer]
<Coraline> Nice attitude
ldnunes has quit [Ping timeout: 240 seconds]
<avdi> DylanJ: I don't care about PC. I care about my friends, and how they feel when people use needlessly male-centric language in a field that is already needlessly male dominated. I wouldn't like it if I were them, so I don't like it on their behalf.
bazbing80 has joined #ruby
NeverDie has joined #ruby
ldnunes has joined #ruby
<mikecmpbll> uhmm, this is the weirdest thing
<mustmodify_> avdi: I don't want to go too far OT but I really wish our language had more gender-neutral pronouns or ... I'm not sure guys is a pronoun as much as a pseudo-pronoun.
RobertBirnie has joined #ruby
<mikecmpbll> i'm not doing anything and my Gemfile.lock keeps reverting
<avdi> I say "folks". It works great.
<mustmodify_> ah yep, that's a good one.
bruno- has joined #ruby
<bazbing80> is there an initialize function for modules? So whenever I include module A, certain methods inside module A are included automatically?
<mustmodify_> mikecmpbll: first guess... check your assumptions.
<eam> DylanJ: don't worry about it, "guys" is not a gender specific term
tommylommykins has quit [Remote host closed the connection]
<eam> this is all just signaling
<mustmodify_> bazbing80: yep. I think it's "included" but not sure.
leat has joined #ruby
<mikecmpbll> i've checked everything i can think of. 1 sec making a gist
<avdi> eam: yes, it couldn't possibly be because I care about how people feel.
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has quit [Read error: Connection reset by peer]
terlar has quit [Ping timeout: 246 seconds]
<bazbing80> mustmodify_: awesome...just adding a ruby question. you know, because this is #ruby :P
j_mcnally has joined #ruby
tommylommykins has joined #ruby
<mustmodify_> I mean, when I emit "guys" I mean it gender-neutrally, in the same way that we take "all men are created equal" and "where no man has gone before" to mean mankind. (whether that was the original intent or not.) But I think pushing back there is culturally useful.
dopie has quit [Ping timeout: 246 seconds]
jgpawletko_away is now known as jgpawletko
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> avdi: that's what signaling is - you care, and construct a disingenuous position in order to broadcast it
<mikecmpbll> i did a bundle update libv8, it picks up 3.16.14.11 and updates the Gemfile.lock like you'd expect
<Coraline> Take it to #ruby-offtopic
<eam> no fault on the person you're blaming, is the pint
<eam> point, even
<eam> Coraline: it can all go there, as far as I'm concerned
<eam> I didn't bring up the subject
DLSteve has quit [Ping timeout: 244 seconds]
<Coraline> Drop it
<mikecmpbll> then just reverts.
<mustmodify_> eam: drop it
<mikecmpbll> like it's hot
sjums has joined #ruby
<mustmodify_> oh geez :)
<eam> I think we're supposed to give her the last word, let's talk about ruby
bruno- has quit [Read error: Connection reset by peer]
andikr has joined #ruby
<DylanJ> good old $! whatchu know about the last exception
symbol has joined #ruby
apt-get has joined #ruby
<shevy> so what now
<shevy> will we have arguments to &:foo or will we have not
<shevy> :>
sjums has left #ruby ["Leaving"]
<shevy> a.map(&:+.with(2)) is very ugly though
<shevy> a.map &->(_) { _ + 2 } # omg
ReK2 has joined #ruby
<shevy> [k-, did you suggest this?
<herbst> omg would that work
<shevy> no please
<jhass> mikecmpbll: spring?
<jhass> guard? anything else?
<Diabolik> what's the fastest way of summing numbers in an array of hashes?
<Diabolik> like so
<mikecmpbll> spring yep.. good point
symbol_ has quit [Ping timeout: 240 seconds]
leafybasil has joined #ruby
sepp2k has quit [Quit: Leaving.]
<DylanJ> herbst: only if you're okay with adding methods to the Symbol class.
eminencehc has quit [Remote host closed the connection]
<herbst> hm, not abd
<herbst> bad*
<DylanJ> its kind of bad.
<DylanJ> :)
<DylanJ> it makes so much less sense than just doing .map { foo }
<shevy> herbst likes the naughty ideas
<herbst> sure, but i can easily confuse my co workers with it xD
`tim` has joined #ruby
lubarch has joined #ruby
eminencehc has joined #ruby
<mustmodify_> funny. I saw "What's the fastest" and read "what's the fanciest" ... and I was like ... hm... let me see ...
sharkman has quit [Quit: Leaving]
lubarch has quit [Client Quit]
<bazbing80> mustmodify_: ah. included doesn't work. any ideas?
lubarch has joined #ruby
<mustmodify_> oh wow they have method_added now... that's ... a bit too meta for me. :)
<mikecmpbll> jhass: think it was some spring weirdness—thanks for the prompt :)
<bazbing80> mustmodify_: haha...ill check it out
<avdi> mustmodify_: method_added has been there for a very long time
cball has quit [Read error: Connection reset by peer]
Jerrod has joined #ruby
<jhass> Diabolik: that's some odd structure
<avdi> mustmodify_: it's how you make things like 'private' work to make all following methods private
<jhass> Diabolik: any influence on it in the first place?
<Diabolik> tell em about it jhass
<Diabolik> nope
<Diabolik> *me
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<jhass> so over what do you want the sum?
<mustmodify_> avdi: hm...
<jhass> Diabolik: what's your desired output?
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naftilos76 has quit [Quit: Αποχώρησε]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<Diabolik> jhass i want to know if the sum of all of the numbers is anything other than 0
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
<Diabolik> it should return true if its not zero, false if is
<Diabolik> *if it
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
chouhoulis has quit [Remote host closed the connection]
mjuszczak has joined #ruby
imperator has joined #ruby
chouhoulis has joined #ruby
<jhass> each_slice(2).flat_map {|_, clock| clock.values }.map(&:to_i).inject(0, :+) I guess
<jhass> tack .zero? to the end to get a boolean
* imperator is sucking at regexes today
ruurd has quit [Quit: ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
drptbl has quit [Ping timeout: 252 seconds]
symm- has joined #ruby
karapetyan has joined #ruby
<Diabolik> i tried something similar jhass
<Diabolik> but then i got
ruurd has joined #ruby
<Diabolik> NoMethodError: undefined method `values' for ["tuesday", {"am"=>"0", "pm"=>"0"}]:Array
minimalism has joined #ruby
TheWhiteOx has joined #ruby
<ljarvis> grep(Hash).flat_map { |v| v.values.map(&:to_i) }.inject(:+)
<jhass> then you didn't do the _, I guess
tkuchiki has joined #ruby
TheWhiteOx has quit [Client Quit]
symm-_ has quit [Ping timeout: 255 seconds]
<jhass> .inject(0) {|sum, elem| next unless elem.is_a? Hash; sum + elem["am"].to_i + elem["pm"].to_i } for the no intermediate arrays version
<jhass> er, next sum
treehug88 has joined #ruby
ruurd has quit [Client Quit]
<ljarvis> map(&method(:Array)).flatten.map(&:to_i).inject(:+) # who cares about non-ints :D
karapetyan has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
niftylettuce has joined #ruby
towski_ has joined #ruby
<Diabolik> jhass
<Diabolik> i did do the _
leafybasil has quit [Remote host closed the connection]
elperdut_ has quit [Ping timeout: 240 seconds]
<imperator> dumb regex question i seem incapable of handling today
<imperator> given id = "/subscriptions/xyz/resourceGroups/mygroup/providers/yadayada"
bricker has joined #ruby
devoldmx has joined #ruby
<imperator> why isn't id[/\/resourceGroups\/(.*?)\/\1/] giving me "mygroup" ?
rubybeginner has joined #ruby
elperdut_ has joined #ruby
rodfersou is now known as rodfersou|lunch
Lucky__ has joined #ruby
cirenyc has joined #ruby
barhum2013 has joined #ruby
<jhass> uh, well, why would it?
dfockler has joined #ruby
<jhass> why the backreference?
<imperator> bah, wrong paste
kidoz has joined #ruby
<loincloth> imperator: backref is confusing yeah but if you want a capture from #[] you need the second arg for which capture
Kendos-Kenlen has quit [Quit: Konversation terminated!]
ruurd has quit [Quit: ZZZzzz…]
favadi has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
Mon_Ouie has joined #ruby
rubybeginner has quit [Ping timeout: 260 seconds]
kinlo has joined #ruby
favadi has quit [Max SendQ exceeded]
bronson has joined #ruby
favadi has joined #ruby
nfk has joined #ruby
maletor has joined #ruby
favadi has quit [Max SendQ exceeded]
amclain has joined #ruby
mistermocha has joined #ruby
favadi has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<kinlo> what's the proper way to implement a producer/consumer pattern? I've tried using a Queue (from the thread package) but when I try to read from the same queue with multiple threads, it seems that consumers get the same data - not being thread safe
joonty has quit [Quit: joonty]
favadi has quit [Max SendQ exceeded]
mikecmpbll has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
<jhass> that seems unlikely, code?
ruurd has joined #ruby
<kinlo> let me dumb down my example, give me 5 min
mistermocha has quit [Client Quit]
<jhass> take your time
casadei has quit [Remote host closed the connection]
favadi has joined #ruby
mistermocha has joined #ruby
<bazbing80> hey, can this be done? https://gist.github.com/anonymous/5b9037fe2c72b4f2428c setting an instance' instance variable automatically from an included module? just a wonderin'
bronson has quit [Ping timeout: 240 seconds]
<bazbing80> methods created by attr_reader are inherited no problem so...
<jhass> bazbing80: I don't think you ran your example
<jhass> but something else
favadi has quit [Max SendQ exceeded]
finisherr has joined #ruby
<bazbing80> jhass: true, error message should be undefined method 'set_default_val' for MyClass
<jhass> but yeah, those fake stuff hides your real problem
favadi has joined #ruby
<jhass> included is run when there's no single instance yet, so you can't act upon instances from there
araujo_ has joined #ruby
<bazbing80> jhass I wouldn't say "fake" it's making the problem as clear and as consise as possible IMHO...but yeah what I want is impossible to achieve?
<jhass> you have to lazily define the instance vars (def value; @value ||= 42; end;), define initialize and call super in the including's class initialize or define initialize call super and prepend the module
<ruboto> kinlo, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/e1d931a83084893e8349
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<jhass> what's the best way to achieve it depends on your circumstances
araujo_ has quit [Max SendQ exceeded]
platzhirsch has left #ruby [#ruby]
dagda1 has joined #ruby
dopie has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
<kinlo> crap, I dumbed it down too much
arooni has joined #ruby
<kinlo> ignore my question for now :p
araujo_ has joined #ruby
leafybasil has joined #ruby
<kinlo> heh, seems by asking the question I finally see what I've been not seeing for a few hours :p ignore me :)
ruurd has quit [Quit: ZZZzzz…]
araujo has quit [Ping timeout: 265 seconds]
JimmyNeutron has quit [Read error: Connection reset by peer]
araujo_ has quit [Max SendQ exceeded]
<shevy> "The verbosity of C in combination with the GLib/GTK+ conventions has an advantage: the code can be searched easily with a command like grep."
* shevy ponders the situation.
_djbkd has joined #ruby
araujo_ has joined #ruby
afs has joined #ruby
afs has quit [Read error: Connection reset by peer]
sasdasd has joined #ruby
araujo_ has quit [Max SendQ exceeded]
sasdasd has quit [Client Quit]
Jerrod has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo_ has joined #ruby
MasterPiece has joined #ruby
<jhass> kinlo: you're welcome ;) (for others reading along: the pop'ing is outside the consumer loop)
symbol has quit [Ping timeout: 265 seconds]
<kinlo> jhass: it was inside too, but I deleted it with some refactoring and didn't notice I deleted it
solocshaw has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
lkba has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
<jhass> kinlo: btw for is discouraged by most people, prefer things like .times, .upto, .downto, .each, .map
fullofcaffeine has quit [Remote host closed the connection]
goldfish6744 has joined #ruby
barhum2013 has quit [Quit: barhum2013]
<shevy> I have a strange problem
TDJACR has quit [Ping timeout: 250 seconds]
<kinlo> jhass: thanks, I'll refactor
momomomomo has joined #ruby
eminencehc has quit [Remote host closed the connection]
barhum2013 has joined #ruby
ruby-lang255 has quit [Quit: Page closed]
<shevy> the strange thing is that there is no mkmf.log at all as far as I can see
solocshaw has joined #ruby
towski_ has quit [Remote host closed the connection]
<shevy> this is nokogiri-1.6.6.2
<shevy> ah
<shevy> the mkmf.log exists, just in a weird subdir
apt-get has quit [Quit: Quit]
p0wn3d_ has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
ramfjord has joined #ruby
cschneid_ has joined #ruby
jamesaxl has joined #ruby
eminencehc has joined #ruby
Xeago has joined #ruby
atomical_ has joined #ruby
ruurd has joined #ruby
atomical has quit [Read error: Connection reset by peer]
allomov has quit [Remote host closed the connection]
ruurd has quit [Client Quit]
araujo_ has quit [Quit: Leaving]
polishdub has joined #ruby
TPBallbag has quit []
mclee_ has quit [Ping timeout: 240 seconds]
mustmodify_ has left #ruby [#ruby]
ruurd has joined #ruby
herbst has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
ruurd has quit [Client Quit]
casadei has joined #ruby
Eric- has joined #ruby
Rollabunna has joined #ruby
adadada has joined #ruby
cirenyc has quit [Ping timeout: 252 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rikkipitt has quit [Remote host closed the connection]
Rollabunna has quit [Read error: No route to host]
Rollabun_ has joined #ruby
TDJACR has joined #ruby
mjuszczak has quit []
NeverDie has quit [Quit: http://radiux.io/]
That_noob has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
railswebdev has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
That_noob has joined #ruby
adadada has quit [Ping timeout: 240 seconds]
SenpaiSilver has quit [Quit: Leaving]
amclain_ has joined #ruby
SenpaiSilver has joined #ruby
amclain has quit [Read error: Connection reset by peer]
amclain__ has joined #ruby
Musashi007 has joined #ruby
NeverDie has joined #ruby
ruurd has joined #ruby
Musashi007 has quit [Client Quit]
hanmac has joined #ruby
cornerma1 has joined #ruby
Musashi007 has joined #ruby
prestorium_ has joined #ruby
amclain_ has quit [Ping timeout: 246 seconds]
bashrw has quit [Ping timeout: 246 seconds]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
bodgix has left #ruby [#ruby]
towski_ has joined #ruby
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
prestorium has quit [Ping timeout: 260 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
UtkarshRay has joined #ruby
blackmesa has joined #ruby
favadi has quit [Ping timeout: 265 seconds]
leafybasil has quit [Ping timeout: 264 seconds]
TheWhiteOx has joined #ruby
TheWhiteOx has quit [Client Quit]
jgt has joined #ruby
cih has quit [Read error: Connection reset by peer]
cih has joined #ruby
Jackneill has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
barhum2013 has quit [Quit: barhum2013]
simplyianm has joined #ruby
j_mcnally has joined #ruby
prestorium_ is now known as prestorium
barhum2013 has joined #ruby
<imperator> id[/\/resourceGroups\/(.*?)\//, 1] :)
<imperator> 1, not \1, durr
<adaedra> meh, can't chain flatten!
sotojuan has joined #ruby
firstdayonthejob has joined #ruby
<shevy> hurr durr
<adaedra> ok
Ilyes512 has joined #ruby
jpfuentes2 has joined #ruby
j_mcnally has quit [Client Quit]
bronson has joined #ruby
momomomomo has quit [Ping timeout: 272 seconds]
simplyianm has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
jud has joined #ruby
otacon- has joined #ruby
eminencehc has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
rcvalle has joined #ruby
favadi has joined #ruby
<jhass> imperator: id[%r{/resourceGroups/(.+?)/}, 1]
j_mcnally has joined #ruby
crdpink2 has quit [Ping timeout: 246 seconds]
sanjayu has joined #ruby
lkba has joined #ruby
crdpink2 has joined #ruby
<imperator> i guess it is one or more rather than zero jhass :)
spotted_ has joined #ruby
favadi has quit [Max SendQ exceeded]
crdpink2 has quit [Read error: Connection reset by peer]
<jhass> yeah, but it's more about the %r{}
rodfersou|lunch has quit [Remote host closed the connection]
<jhass> a lot more readable with all the / inside IMO
favadi has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
crdpink2 has joined #ruby
rodfersou|lunch has joined #ruby
<shevy> but you added more chars!
<imperator> yah, true
benlieb has joined #ruby
barhum2013 has quit [Quit: barhum2013]
<shevy> hmm no you did not
<jhass> shevy: yup, it's one less actually
<shevy> yeah
spotted has quit [Ping timeout: 244 seconds]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<zotherstupidguy> anybody can invite me to the #philosophy channel? :)
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_djbkd has quit [Remote host closed the connection]
malconis has joined #ruby
goobagar has joined #ruby
<shevy> let's think about the zen of the ruby philosophy here
tkuchiki has quit [Remote host closed the connection]
_djbkd has joined #ruby
JDiPierro has joined #ruby
cih has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
fullofcaffeine has joined #ruby
tkuchiki has joined #ruby
dravine has quit [Quit: zzz]
mondayrain has joined #ruby
tkuchiki_ has joined #ruby
Porfa has joined #ruby
<Porfa> lol, so today i was running my script and this came out… p.rb:51: syntax error, unexpected tCONSTANT, expecting ')'
tkuchiki has quit [Read error: Connection reset by peer]
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Porfa> line 51 contains this ----> ALQFORNECEDOR = "TRISTAR"
<Porfa> with is going on? this never happened before
araujo has joined #ruby
wpp has joined #ruby
rushed has joined #ruby
<Porfa> fixed! (.. )
RegulationD has joined #ruby
araujo has quit [Max SendQ exceeded]
DLSteve has joined #ruby
zapata has quit [Quit: WeeChat 1.3]
Kendos-Kenlen has joined #ruby
havenwood has joined #ruby
t_mmyv has joined #ruby
petricore has joined #ruby
drptbl has joined #ruby
slawrence00 has quit [Ping timeout: 265 seconds]
eminencehc has quit [Remote host closed the connection]
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
Rollabun_ has quit [Quit: Leaving...]
zapata has joined #ruby
postmodern has joined #ruby
eminencehc has joined #ruby
rodfersou|lunch has quit [Quit: leaving]
hanmac has joined #ruby
rodfersou has joined #ruby
mistermo_ has joined #ruby
sanjayu has quit [Read error: Connection reset by peer]
mistermo_ has quit [Read error: Connection reset by peer]
sanjayu has joined #ruby
mistermo_ has joined #ruby
banister has joined #ruby
symm- has joined #ruby
casadei has quit [Remote host closed the connection]
wpp has quit []
senayar has joined #ruby
jamesaxl|2 has joined #ruby
solocshaw1 has joined #ruby
cih has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw1 is now known as solocshaw
Eiam_ has joined #ruby
araujo has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
DLSteve has quit [Quit: Leaving]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermo_ has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
yfeldblum has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybasil has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
blackjid has quit [Max SendQ exceeded]
gusTester has left #ruby [#ruby]
dwithers is now known as pl1ght
prestorium is now known as presto
blackjid has joined #ruby
Xeago has quit [Remote host closed the connection]
presto is now known as prestorium
Eiam_ has quit [Ping timeout: 260 seconds]
axl_ has joined #ruby
<shevy> damn
jobewan has joined #ruby
<shevy> are you still at it
maletor has quit [Read error: Connection reset by peer]
symbol has joined #ruby
adadada has joined #ruby
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
_djbkd has quit [Remote host closed the connection]
<imperator> shevy, huh?
eminencehc has quit [Remote host closed the connection]
t_mmyv is now known as tommyvyo
<shevy> imperator Porfa
<shevy> the ALQFORNECEDOR string is from his old code
eminencehc has joined #ruby
<imperator> oh
NeverDie has quit [Quit: http://radiux.io/]
ascarter has joined #ruby
edwardly has quit [Max SendQ exceeded]
_djbkd has joined #ruby
Xeago has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
p0wn3d_ has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 244 seconds]
senayar has quit [Remote host closed the connection]
jamesaxl|2 is now known as jamesaxl
<Porfa> shevy: timestamp, i'm halfway through the book, DID YOU KNOW there's something called GETS? i can drop all those lazy argv's inputed form the command line… thank you for telling me to learn some methods :p
rdark has quit [Quit: leaving]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
NeverDie has joined #ruby
TomyLobo has joined #ruby
sanjayu has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
Guest53 has joined #ruby
p0wn3d_ has joined #ruby
sanjayu has joined #ruby
<shevy> do you use methods now?
danielpclark has quit [Ping timeout: 272 seconds]
sotojuan has quit [Quit: Textual IRC Client: www.textualapp.com]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
samukasmk has quit [Ping timeout: 256 seconds]
simplyianm has joined #ruby
<treehug88> method to my madness
DoubleMalt has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
sotojuan has joined #ruby
finisherr has left #ruby [#ruby]
baroquebobcat has quit [Read error: Connection reset by peer]
sotojuan has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
devoldmx has joined #ruby
finisherr has joined #ruby
prefixed has joined #ruby
baroquebobcat has joined #ruby
<prefixed> Is it possible for a "true" returned by a method to be a string and not a variable?
samukasmk has joined #ruby
skweek has joined #ruby
poguez_ has joined #ruby
simplyianm has quit [Ping timeout: 240 seconds]
failshell has joined #ruby
<shevy> >> true.to_s
<ruboto> shevy # => "true" (https://eval.in/444054)
failshell has quit [Client Quit]
<prefixed> oh my god
prefixed has left #ruby [#ruby]
jgt has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
Mon_Ouie has quit [Quit: WeeChat 1.3]
j_mcnally has quit [Read error: Connection reset by peer]
rushed has quit [Quit: rushed]
Seich has joined #ruby
j_mcnally has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
jxv has joined #ruby
diegoviola has joined #ruby
danielpclark has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 260 seconds]
andikr has quit [Remote host closed the connection]
rushed has joined #ruby
K1MOS has quit [Read error: Connection reset by peer]
apt-get has joined #ruby
imperator has left #ruby ["Leaving"]
Xeago has joined #ruby
blackmesa has joined #ruby
Guest53 has quit [Ping timeout: 250 seconds]
lubarch has quit [Quit: leaving]
baweaver has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
lubarch has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 250 seconds]
kirun has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
SenpaiSilver has quit [Quit: Leaving]
stamina has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 246 seconds]
Anti-Pizza has quit [Quit: Quit]
freerobby has joined #ruby
casadei has joined #ruby
mondayrain has quit [Quit: Leaving]
lubarch has quit [Quit: leaving]
lubarch has joined #ruby
ndrei has joined #ruby
rushed has quit [Quit: rushed]
RegulationD has joined #ruby
jxv has left #ruby ["Leaving"]
icarus has quit [Ping timeout: 240 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
hooper1 has joined #ruby
roychri has quit [Quit: And that's the way the cookie crumbles!]
bnd has joined #ruby
bnd has quit [Client Quit]
rushed has joined #ruby
Porfa has quit [Ping timeout: 255 seconds]
adadada has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 255 seconds]
sanjayu has quit [Read error: Connection reset by peer]
drptbl has joined #ruby
mistermocha has quit [Remote host closed the connection]
drptbl has quit [Client Quit]
cantaberry has joined #ruby
sanjayu has joined #ruby
drptbl has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
drptbl has quit [Client Quit]
relix has joined #ruby
drptbl has joined #ruby
drptbl has quit [Client Quit]
mclee_ has joined #ruby
relix has quit [Remote host closed the connection]
mistermocha has joined #ruby
bubulububueno has joined #ruby
kiper has quit [Quit: Leaving]
yqt has joined #ruby
_djbkd has quit [Remote host closed the connection]
spotted_ has quit [Ping timeout: 265 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
`based_pdev` has joined #ruby
yellowgh0st has joined #ruby
drptbl has joined #ruby
abra1 has left #ruby ["-_-"]
mistermocha has joined #ruby
bakedb has quit [Ping timeout: 246 seconds]
bubulububueno has quit [Quit: leaving]
based_pdev_ has quit [Ping timeout: 246 seconds]
Kendos-Kenlen_ has joined #ruby
Kendos-Kenlen has quit [Ping timeout: 268 seconds]
bnd has joined #ruby
<bnd> hello
bakedb has joined #ruby
_aeris_ has quit [Remote host closed the connection]
NeverDie has quit [Quit: http://radiux.io/]
yfeldblum has quit [Ping timeout: 246 seconds]
gizmore has quit [Ping timeout: 260 seconds]
simplyianm has joined #ruby
imperator has joined #ruby
beast has quit [Quit: Leaving]
Coldblackice has joined #ruby
<imperator> anyone here successfully installed debase on osx?
sdwrage has joined #ruby
n008f4g_ has joined #ruby
leafybasil has quit [Remote host closed the connection]
araujo_ has joined #ruby
yellowgh0st has quit [Ping timeout: 260 seconds]
<imperator> somehow it's not finding vm_core.h
araujo has quit [Ping timeout: 272 seconds]
toretore has joined #ruby
leafybasil has joined #ruby
Ilyes512 has joined #ruby
bnd has quit [Quit: leaving]
bruno- has joined #ruby
mistermocha has quit [Remote host closed the connection]
simplyianm has quit [Ping timeout: 272 seconds]
Xiti has quit [Quit: Xiti]
iateadonut has quit [Quit: Leaving.]
tsujp has joined #ruby
yellowgh0st has joined #ruby
ramfjord has joined #ruby
blackmesa has joined #ruby
cih_ has joined #ruby
_aeris_ has joined #ruby
leafybasil has quit [Remote host closed the connection]
davedev24 has quit []
cih has quit [Read error: Connection reset by peer]
<havenwood> imperator: [BUG] Segmentation fault at 0x00000000000000
<havenwood> imperator: gem installs for me but tests blow up
gizmore has joined #ruby
shtirlic has quit [Quit: ZNC - http://znc.in]
NeverDie has joined #ruby
baweaver has quit [Remote host closed the connection]
j_mcnally has joined #ruby
paulcsmith has joined #ruby
shtirlic has joined #ruby
<havenwood> imperator: same on 2.0, 2.1 and 2.2
haylon has joined #ruby
<imperator> well, that's no good - rubymine wants it
Xiti has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1 has joined #ruby
David27 has joined #ruby
leafybasil has joined #ruby
finisherr has quit [Quit: finisherr]
eminencehc has joined #ruby
noethics has joined #ruby
ozzloy_ is now known as ozzloy
sanjayu has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
leafybasil has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<havenwood> imperator: Tests pass on FreeBSD. Hem.
sanjayu has joined #ruby
paulcsmith has quit [Ping timeout: 265 seconds]
<imperator> i can't even get it to install, bet it's an rbenv thing
dagda1 has quit [Client Quit]
<havenwood> imperator: I installed successfully with system Ruby and with ruby-install'd 2.0, 2.1 and 2.2.
bronson has joined #ruby
Ilyes512 has joined #ruby
<havenwood> Always: test/test_base.rb:17: [BUG] Segmentation fault
RegulationD has quit [Remote host closed the connection]
goldfish6744 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Would you like to know more?]
rushed has quit [Quit: rushed]
webopsx has joined #ruby
lavros has quit [Quit: leaving]
webopsx has quit [Max SendQ exceeded]
snockerton has joined #ruby
eam has quit [Read error: Connection reset by peer]
<imperator> welp, the great rubymine experiment is over
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
jpfuentes2 has joined #ruby
<havenwood> imperator: No segfault on Linux but a test fail where current_context.stack_size is 0 when 19 is expected.
<havenwood> imperator: Hehe, I poke at it about once a year but yeah it's never stuck with me. I keep going back to plain ole text editor.
Jackneill has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 260 seconds]
<imperator> havenwood, i rarely need one, but it's nice to have on those rare occasions
yellowgh0st has quit [Quit: yellowgh0st]
mistermocha has joined #ruby
centrx has joined #ruby
That_noob has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Jackneill has joined #ruby
tkuchiki has joined #ruby
JaRe_Ax has joined #ruby
yellowgh0st has joined #ruby
ruurd has joined #ruby
finisherr has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
Jackneill has quit [Remote host closed the connection]
gusTester has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
shtirlic has quit [Quit: ZNC - http://znc.in]
stamina has joined #ruby
hx01 has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
<hx01> ARGV is an array of all the arguments of a program. What is ARGF?
freerobby has quit [Quit: Leaving.]
<jhass> &ri ARGF
amoeba has quit [Quit: Leaving]
shtirlic has joined #ruby
shtirlic has quit [Client Quit]
DLSteve has joined #ruby
simplyianm has joined #ruby
JaReAx has quit [Ping timeout: 264 seconds]
JaRe_Ax is now known as JaReAx
<hx01> Does the F in ARGF stand for file?
tkuchiki has quit [Ping timeout: 240 seconds]
<jhass> probably? It's not mentioned in ^ so we can only guess too
shtirlic has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
curses has joined #ruby
VeryBewitching has joined #ruby
hx01 has quit [Quit: Page closed]
<havenwood> hx01: File or Foxes, you pick.
Torrieri has quit [Quit: Be back later ...]
agentmee1kat has left #ruby [#ruby]
deavid has quit [Ping timeout: 244 seconds]
<havenwood> The docs don't outright say it's arguing with foxes but...
leafybasil has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lubarch has quit [Ping timeout: 260 seconds]
leafybasil has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
subscope has joined #ruby
dhollinger has quit [Remote host closed the connection]
subscope_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 250 seconds]
<toretore> the f is for fun
<havenwood> Friday!
benlieb has quit [Quit: benlieb]
mistermocha has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
<jhass> right, ARGS on sunday, ARGM on monday, ARGT on tuesday, ARGW on wednesday, ARG... wait
dopie has quit [Quit: Leaving]
The_Phoenix has quit [Read error: Connection reset by peer]
imperator has left #ruby ["Leaving"]
evanjs has joined #ruby
sanjayu has quit [Read error: Connection reset by peer]
eminencehc has quit [Remote host closed the connection]
_djbkd has joined #ruby
sanjayu has joined #ruby
<havenwood> >> require 'date'; Date::ABBR_DAYNAMES.drop(1).map { |m| ["ARG#{m.chr}", m] }.to_h
<ruboto> havenwood # => {"ARGM"=>"Mon", "ARGT"=>"Thu", "ARGW"=>"Wed", "ARGF"=>"Fri", "ARGS"=>"Sat"} (https://eval.in/444079)
<havenwood> Sorry Sunday.
<havenwood> There can be only one ARGS!
<havenwood> Tuesday loses out as well.
deavid has joined #ruby
eminencehc has joined #ruby
jschmid has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 265 seconds]
spotted_ has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
ruurd has joined #ruby
based_pdev_ has joined #ruby
j_mcnally has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SenpaiSilver has joined #ruby
ngscheurich has joined #ruby
j_mcnally has quit [Client Quit]
krz has quit [Quit: WeeChat 1.2]
pandaant has quit [Remote host closed the connection]
mjago has joined #ruby
Wegzz has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
bb010g has quit [Quit: Connection closed for inactivity]
<shevy> After seeing this, I am quite sure that I don't want you folks to build a rocket to mars
`based_pdev` has quit [Ping timeout: 265 seconds]
d5sx43 has joined #ruby
|-_-| has joined #ruby
<haylon> I wouldn't trust me to build a rocket either.
d5sx43 has quit [Client Quit]
j_mcnally has joined #ruby
<miah> this isn't #forth ;)
_el_fer_ has quit [Quit: Leaving]
Wegzz has left #ruby ["Get bounce slid"]
workmad3 has joined #ruby
iceden has joined #ruby
sanjayu has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
Torrieri has joined #ruby
sanjayu has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
netmask has joined #ruby
schlubbi has joined #ruby
k3asd` has joined #ruby
falicy has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
ruurd has quit [Quit: ZZZzzz…]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
gusTester has left #ruby [#ruby]
sanjayu has quit [Read error: Connection reset by peer]
hahuang61 has quit [Quit: WeeChat 1.3]
baweaver has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
schlubbi has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
paulcsmith has joined #ruby
jpfuentes2 has joined #ruby
bronson has joined #ruby
devoldmx has joined #ruby
<shevy> are there any similar projects, in ruby, like machomebrew?
mistermocha has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
Xeago has joined #ruby
mistermocha has joined #ruby
baweaver has joined #ruby
JDiPierro has joined #ruby
spotted_ has quit [Ping timeout: 244 seconds]
<centrx> shevy, similar how? isn't homebrew written in ruby?
p0wn3d_ has quit [Ping timeout: 250 seconds]
<haylon> Are you wanting it to do what HomeBrew does?
<miah> =)
elperdut_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miah> that directory structure though.. i wish they just set it up like regular ruby gems
hahuang65 has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
<shevy> centrx yeah. I wonder if it is the only project like that in ruby
elperdut_ has joined #ruby
paulcsmith has quit [Ping timeout: 252 seconds]
devoldmx has quit [Ping timeout: 268 seconds]
Xeago has quit [Remote host closed the connection]
schlubbi has joined #ruby
paulcsmith has joined #ruby
baweaver has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
mistermocha has quit []
araujo__ has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
k3asd` has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<miah> do you mean 'package manager' written in ruby?
anisha has joined #ruby
<miah> when you say 'like that'
shadoi has joined #ruby
dfockler has quit [Remote host closed the connection]
<centrx> I think homebrew is the only package manager for Mac OS X called homebrew written in Ruby
<shevy> miah sorta. anything similar to it really
blackmesa has joined #ruby
otacon- has quit [Ping timeout: 252 seconds]
<miah> well i guess what im looking for are, what similarities are you interested in most?
araujo_ has quit [Ping timeout: 256 seconds]
<shevy> something to compile and manage programs
schlubbi has quit [Remote host closed the connection]
DexterLB has quit [Read error: Connection reset by peer]
<shevy> they even have a webinterface http://braumeister.org/
nolic has quit [Ping timeout: 246 seconds]
bafbomb__ has joined #ruby
jenrzzz has joined #ruby
<shevy> mac hipsters :(
<shevy> gentoo has emerge/portage which I think is written in python
<miah> fpm generates packages mostly though, not really manage installations
<shevy> cool
<shevy> have not seen packman before
<miah> yast is written in ruby now too
Xeago has quit [Remote host closed the connection]
tkuchiki has joined #ruby
dikaio has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 246 seconds]
DexterLB has joined #ruby
<shevy> wheee lots of possibilities
Xeago has joined #ruby
sanjayu has joined #ruby
aibot has quit [Remote host closed the connection]
j_mcnally has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
aibot has joined #ruby
ascarter has joined #ruby
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
naftilos76 has joined #ruby
Xeago has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
allomov has joined #ruby
craysiii has joined #ruby
lxsameer has joined #ruby
shmilan has joined #ruby
Guest53 has joined #ruby
baweaver has joined #ruby
niro has quit [Quit: WeeChat 0.4.2]
pangur has joined #ruby
eminencehc has joined #ruby
benlieb has joined #ruby
DLSteve has quit [Quit: Leaving]
matp has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
<pangur> I am using Sinatra with Sequel to construct a very basic app. I have a table districts which has two fields: id and label. Label is a string such as 23A, which has an id of 21. I want to be able to do localhost:4567/district/23A and yield the id (21) of the district found. Any tips on how to do that please. The labelling is important to other people, so I cannot ditch it in favour of the id that I use.
dvlcloud has quit [Quit: Connection closed for inactivity]
dorei has quit [Remote host closed the connection]
matp has joined #ruby
_djbkd has joined #ruby
rushed has joined #ruby
Oka has joined #ruby
<toretore> get('/district/:label'){ sql('select id from districts where label = ?', params[:label])['id'] }
<pangur> thanks, toretore.
* pangur goes to try that
haylon has quit [Quit: Leaving]
dorei has joined #ruby
codecop has quit [Remote host closed the connection]
`tim` has joined #ruby
SCHAAP137 has joined #ruby
<pangur> toretore: I am a little confused as to how to use this.
SCHAAP137 has quit [Changing host]
SCHAAP137 has joined #ruby
RegulationD has quit [Remote host closed the connection]
<pangur> I understand that get('/district/:label') should be the route?
p0wn3d_ has joined #ruby
jmallen has joined #ruby
eam has joined #ruby
<pangur> Where does the code within the braces go, please?
naftilos76 has quit [Ping timeout: 246 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
fsociety has joined #ruby
<pangur> Do I do @district = District.where { sql('select id from districts where label = ?', params[:label])['id'] }
fsociety is now known as Guest23876
* pangur is sorry to be so ignorant
Guest23876 is now known as gnome
rushed has quit [Quit: rushed]
<toretore> get('/district/:label') responds to a GET request to /district/:label, then puts whatever :label is into params[:label]
jmallen has left #ruby [#ruby]
<gnome> How come ruby is able to detect gems when the gems directory isn't in its load path?
<toretore> the body of the response is whatever the associated block returns
sdothum has joined #ruby
zendrix has joined #ruby
<pangur> OK, toretore. I shall try my best to have another stab at that :)
<toretore> what the block returns is up to you. use params[:label] to get the data from the table and return the value
nb_bez___ has joined #ruby
CanTonic has joined #ruby
eminencehc has quit [Remote host closed the connection]
Xeago has joined #ruby
<mjago> pangur: break it down into bits that you can validate as you go maybe: label to id
drptbl has quit [Ping timeout: 240 seconds]
_djbkd has quit [Remote host closed the connection]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pangur> mjago, thanks. I am trying to work it out.
p0wn3d_ has quit [Ping timeout: 255 seconds]
<gnome> How is it possible to require a gem from within a script when http://ctrlv.it/id/2426/303389914
eminencehc has joined #ruby
_djbkd has joined #ruby
<shevy> sounds like debian
moeabdol has quit [Quit: WeeChat 1.3]
yes`r has joined #ruby
RobertBirnie has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gnome has left #ruby [#ruby]
yellowgh0st has quit [Quit: yellowgh0st]
paulcsmith has quit [Quit: Be back later ...]
moeabdol has joined #ruby
bronson has quit [Remote host closed the connection]
drptbl has joined #ruby
karapetyan has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
hahuang65 has joined #ruby
rushed has joined #ruby
cih_ has quit [Ping timeout: 260 seconds]
atmosx_laptop has joined #ruby
cih has joined #ruby
leafybasil has quit [Remote host closed the connection]
symbol has quit [Ping timeout: 244 seconds]
jmallen has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cih has quit [Read error: Connection reset by peer]
cih has joined #ruby
Spami has joined #ruby
m8 has quit [Quit: Sto andando via]
mjago has quit [Read error: Connection reset by peer]
mjago has joined #ruby
karapetyan has quit [Remote host closed the connection]
atmosx has quit [Quit: WeeChat 0.4.4-dev]
atmosx_laptop is now known as atmosx
karapetyan has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
maletor has joined #ruby
djcp has quit [Ping timeout: 268 seconds]
bmurt has quit []
firstdayonthejob has joined #ruby
shmilan has quit [Remote host closed the connection]
dopie has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
ricer2 has quit [Quit: Caught SystemExit exception.]
IceyEC_ has quit [Quit: Leaving]
dnewkerk has joined #ruby
pangur has left #ruby ["Leaving"]
bronson has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zendrix has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
blackmesa has joined #ruby
ricer2 has joined #ruby
zendrix has joined #ruby
Azure has joined #ruby
evanjs has quit [Remote host closed the connection]
yfeldblum has joined #ruby
k3asd` has quit [Ping timeout: 246 seconds]
netmask has quit [Remote host closed the connection]
prestorium has quit [Quit: Leaving]
netmask has joined #ruby
JDiPierro has quit [Remote host closed the connection]
MasterPiece has quit [Ping timeout: 255 seconds]
ldnunes has quit [Quit: Leaving]
netmask has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
danielpclark has quit [Ping timeout: 272 seconds]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybasil has joined #ruby
yellowgh0st has joined #ruby
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
benatkin has quit [Remote host closed the connection]
Guest53 has joined #ruby
BrazenBraden has quit [Remote host closed the connection]
nolic has joined #ruby
yellowgh0st has quit [Ping timeout: 246 seconds]
drocsid has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has joined #ruby
zendrix has left #ruby [#ruby]
DanKnox has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has quit [Client Quit]
spcmastertim has quit [Quit: Leaving]
havenn has joined #ruby
danielpclark has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
apt-get has quit [Ping timeout: 246 seconds]
elperdut_ has quit [Ping timeout: 240 seconds]
DanKnox has joined #ruby
dvlcloud has joined #ruby
elperdut_ has joined #ruby
elperdut_ has quit [Max SendQ exceeded]
dfockler has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
elperdut_ has joined #ruby
ledestin_ has quit [Quit: Textual IRC Client: www.textualapp.com]
zotherstupidguy has joined #ruby
RegulationD has joined #ruby
workmad3 has joined #ruby
rodfersou has quit [Quit: leaving]
tier has quit [Remote host closed the connection]
deavid has quit [Ping timeout: 255 seconds]
devdazed has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
mjago has quit [Ping timeout: 264 seconds]
cassioscabral has quit [Quit: cassioscabral]
last_staff has quit [Quit: last_staff]
freerobby has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leafybasil has quit [Remote host closed the connection]
yardenbar has joined #ruby
elperdut_ has quit [Ping timeout: 240 seconds]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CanTonic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 264 seconds]
inteq has quit [Quit: Leaving]
_djbkd has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
_djbkd has joined #ruby
tubuliferous_ has quit [Quit: ZNC - http://znc.in]
Aridere has joined #ruby
evanjs has joined #ruby
niemcu has joined #ruby
based_pdev_ has quit [Read error: Connection reset by peer]
subscope_ has quit [Quit: Leaving]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axl_ has quit [Quit: axl_]
based_pdev has joined #ruby
postmodern has joined #ruby
snockerton has quit [Ping timeout: 265 seconds]
snockerton1 has joined #ruby
devoldmx has joined #ruby
JimmyNeutron has joined #ruby
decoponyo has quit [Read error: Connection reset by peer]
Rutix has quit []
baweaver has quit [Remote host closed the connection]
decoponio has joined #ruby
petricore has joined #ruby
netmask has joined #ruby
tkuchiki has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
stuartb has left #ruby ["Textual IRC Client: www.textualapp.com"]
snockerton1 has quit [Quit: Leaving.]
NeverDie has quit [Quit: http://radiux.io/]
nofxx has joined #ruby
mosez has quit [Remote host closed the connection]
Papierkorb has quit [Ping timeout: 246 seconds]
snockerton has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
ngscheurich has quit [Ping timeout: 252 seconds]
inoperable has joined #ruby
evanjs has quit [Remote host closed the connection]
blackmesa has joined #ruby
moss has quit [Read error: Connection reset by peer]
ivanskie has quit [Ping timeout: 264 seconds]
NeverDie has joined #ruby
moss_ has joined #ruby
freerobby has quit [Quit: Leaving.]
ivanskie has joined #ruby
allomov has quit [Remote host closed the connection]
j_mcnally has joined #ruby
stamina has quit [Ping timeout: 240 seconds]
Aridere has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 265 seconds]
jgt has joined #ruby
gwendall has quit [Remote host closed the connection]
whippythellama has quit [Quit: WeeChat 1.3]
ngscheurich has joined #ruby
PaulCapestany has quit [Quit: .]
gwendall has joined #ruby
PaulCapestany has joined #ruby
evanjs has joined #ruby
ivanskie has quit [Ping timeout: 240 seconds]
kubunto has joined #ruby
ivanskie has joined #ruby
blackmesa has joined #ruby
<kubunto> I am trying to get this to work based on if a chat/message/div element has a span object or not, https://gist.github.com/sammarder/844c062a2238a9ed93cc
yfeldblum has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
inoperable has quit [Quit: the many sings to us]
deavid has joined #ruby
gwendall has quit [Ping timeout: 265 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
inoperable has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
michael_mbp has quit [Excess Flood]
NeverDie has joined #ruby
<kubunto> nvm
kubunto has left #ruby [#ruby]
michael_mbp has joined #ruby
bobTHEknob has joined #ruby
allomov has joined #ruby
subscope has quit [Read error: Connection reset by peer]
<bobTHEknob> I'm trying to make a class that can get a key reference to a get and set method in dot-notation and recursively read/set the variable. Is there anything like that out there?
dfockler has quit []
niftylettuce has quit [Quit: Connection closed for inactivity]
mary5030_ has joined #ruby
dcarmich has joined #ruby
freerobby has joined #ruby
Xeago has joined #ruby
Asher has quit [Ping timeout: 264 seconds]
shinnya has joined #ruby
yqt has quit [Ping timeout: 260 seconds]
jgt has quit [Read error: Connection reset by peer]
model-help has joined #ruby
weemsledeux has joined #ruby
davo_ has joined #ruby
<model-help> If I have a category of prices, a table of products, what's the best way to represent that model? Would it be:
baweaver has joined #ruby
<model-help> Product has_one price
<model-help> and
<model-help> Price belongs_to product
<model-help> and price has a tier and a value?
mary5030 has quit [Ping timeout: 255 seconds]
<Radar> model-help: ?rubyonrails
<Radar> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
Xeago has quit [Remote host closed the connection]
<model-help> ?rubyonrails
<ruboto> I don't know anything about rubyonrails
podman has joined #ruby
<model-help> how do I join ruby on rails? thanks!
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
soundslave- has joined #ruby
soundslave- has left #ruby ["Leaving"]
<iamayam> type /join #RubyOnRails
Xeago has joined #ruby
sanjayu has quit [Ping timeout: 264 seconds]
Papierkorb has joined #ruby
evanjs has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Textual IRC Client: www.textualapp.com]
Asher has joined #ruby
cschneid_ has joined #ruby
moeabdol has joined #ruby
[gmi] has joined #ruby
curses has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
benlieb has quit [Quit: benlieb]
model-help_ has joined #ruby
allomov has quit [Remote host closed the connection]
rushed has joined #ruby
eminencehc has quit [Remote host closed the connection]
model-help has quit [Ping timeout: 246 seconds]
cjbottaro has joined #ruby
zendrix has joined #ruby
eminencehc has joined #ruby
[gmi] has quit [Quit: Leaving]
null_ref has quit []
Xeago has quit [Remote host closed the connection]
evanjs has joined #ruby
benlieb has joined #ruby
mary5030_ has joined #ruby
zendrix has quit [Remote host closed the connection]
zendrix has joined #ruby
benlieb has quit [Client Quit]
VeryBewitching has quit [Quit: Konversation terminated!]
diegoviola has joined #ruby
inoperable has quit [Quit: the many sings to us]
mary5030 has quit [Ping timeout: 264 seconds]
evanjs has quit [Ping timeout: 244 seconds]
zendrix has quit [Ping timeout: 240 seconds]
<nb_bez___> what is the best approch to read uri path
<nb_bez___> I have http://foo.com/par1?id=222
cschneid_ has quit [Remote host closed the connection]
<nb_bez___> I want to read par1?id=222
senayar has joined #ruby
freerobby has joined #ruby
sanjayu has joined #ruby
senayar has quit [Remote host closed the connection]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<atmosx> nb_bez___: depends on what kind of object your URL is.
model-help_ has quit [Ping timeout: 246 seconds]
cih has quit [Remote host closed the connection]
ruby-lang045 has joined #ruby
Ox0dea has joined #ruby
senayar has joined #ruby
<nb_bez___> yeah i have https and I can log in the https://foo.com then I want to read the par1?id=222
simplyianm has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
johnzorn has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Quit: Lost terminal]
mary5030 has joined #ruby
simplyianm has joined #ruby
firstdayonthejob has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
lbs2015 has joined #ruby
johnzorn has joined #ruby
RegulationD has joined #ruby
bobTHEknob has quit [Ping timeout: 246 seconds]
simplyianm has quit [Remote host closed the connection]
<Ox0dea> >> require 'uri'; URI('http://foo.com/par1?id=222';).request_uri # nb_bez___
<ruboto> Ox0dea # => "/par1?id=222" (https://eval.in/444161)
mary5030 has quit [Ping timeout: 240 seconds]
lbs2015 has quit [Client Quit]
tkuchiki has quit [Ping timeout: 246 seconds]
<nb_bez___> cool, thanks but if the id is random generated , how can read those ids?
RegulationD has quit [Ping timeout: 265 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
zendrix has joined #ruby
jobewan has quit [Quit: Leaving]
mikecmpbll has quit [Quit: ciao.]
ngscheurich has quit [Ping timeout: 246 seconds]
centrx has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
NeverDie has quit [Quit: http://radiux.io/]
devdazed has joined #ruby
Trynemjoel has joined #ruby
<shevy> can't you use a regex
ascarter has joined #ruby
<Ox0dea> Most regular expression engines are functionally Turing-complete; you can always use a regex.
<Radar> if you like it then you should've put a regex on it
<Ox0dea> ^
ramfjord has quit [Ping timeout: 260 seconds]
ascarter has quit [Max SendQ exceeded]
<Ox0dea> nb_bez___: URI#query will give you the query string.
ascarter has joined #ruby
finisherr has quit [Quit: finisherr]
<eam> Ox0dea: they're expressively turing complete but surely not functionally :)
<eam> most regex engines don't scale well, arbitrary limits all over the place
<Ox0dea> >> 'foo=1&bar=2&baz=3'.split(?&).map { |p| p.split ?= }.to_h # nb_bez___
<ruboto> Ox0dea # => {"foo"=>"1", "bar"=>"2", "baz"=>"3"} (https://eval.in/444165)
<Ox0dea> eam: I guess "effectively" would've been better, but not by much.
atmosx has quit [Quit: Lost in trance]
<eam> oops I made a system capable of anything
<Ox0dea> Strange how it's so easy to do so.
<Ox0dea> The Unreasonable Effectiveness of Mathematics strikes again!
<eam> I mean, even a bunch of mud zapped by lightning turned into a turing complete computer once
<eam> took a while though
gwendall has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
<Ox0dea> How do we know the prokaryotes aren't somehow TC?
<eam> I mean, maybe they are
workmad3 has joined #ruby
<eam> no clue how early it occured, but certainly before humans popped up
charliesome has joined #ruby
<Ox0dea> > Given enough time, hydrogen begins to wonder where it came from and where it is going.
<nb_bez___> thanks all, I will try to use the regex, also if the URI#query give string I will try to read the value of it.
<Ox0dea> nb_bez___: Is this id parameter the only one in the URL?
eminencehc has quit [Remote host closed the connection]
<eam> I mean it's the carbon that's really inquisitive
<Ox0dea> So far as we can determine.
diegoviola has quit [Ping timeout: 252 seconds]
<shevy> eam reproducibility is a problem when it comes to find the origin of life
<eam> thank you for checking my carbon privilege
<nb_bez___> Ox0dea: yeah that is the only id parm
diegoviola has joined #ruby
<Ox0dea> nb_bez___: And it's always numeric?
peter___ has joined #ruby
DanKnox has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> shevy: Why's that?
<nb_bez___> it has 8 bit number and text
allomov has joined #ruby
vdamewood has joined #ruby
NeverDie has joined #ruby
Balzrael has quit [Read error: Connection reset by peer]
<Ox0dea> >> 'http://foo.com/par1?id=foo123';[/\w+$/] # nb_bez___
<ruboto> Ox0dea # => "foo123" (https://eval.in/444166)
<Ox0dea> It's not particularly robust, but it satisfies the use case you've described.
<Ox0dea> \w doesn't match '=', so that'll put out everything after it in your URL.
<nb_bez___> cool
gwendall has quit [Ping timeout: 268 seconds]
Napear has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
Napear has quit [Client Quit]
workmad3 has quit [Ping timeout: 264 seconds]
jgt has joined #ruby
hooper1 has quit [Quit: Leaving.]
nofxx has joined #ruby
niemcu has quit [Ping timeout: 255 seconds]
allomov has quit [Ping timeout: 264 seconds]
peter___ is now known as inanepenguin
_djbkd has quit [Quit: My people need me...]
Napear has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Napear has quit [Client Quit]
snockerton has quit [Quit: Leaving.]
charliesome has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
samukasmk has quit [Ping timeout: 264 seconds]
maletor has quit []
charliesome has quit [Client Quit]
simplyianm has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
charliesome has joined #ruby
atomical has joined #ruby
yfeldblum has quit [Quit: Leaving...]
charliesome has quit [Client Quit]
havenn has quit [Ping timeout: 264 seconds]
kirun has quit [Quit: Client exiting]
samukasmk has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
Voker57 has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
marr has quit []
netmask has quit [Remote host closed the connection]
devoldmx has joined #ruby
netmask has joined #ruby
inanepenguin has left #ruby [#ruby]
Soda has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
inanepenguin has joined #ruby
maletor has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
andywojo has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 240 seconds]
MrFishy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
inanepenguin has quit [Quit: `]
MrFishy has joined #ruby
MrFishy has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
ReK2 has quit [Ping timeout: 246 seconds]
inanepenguin has joined #ruby
jgt has quit [Read error: No route to host]
j_mcnally has quit [Quit: Textual IRC Client: www.textualapp.com]
zayaman has joined #ruby
jcdesimp has joined #ruby
Kendos-Kenlen_ has quit [Ping timeout: 252 seconds]
dikaio has quit [Quit: ........]
netmask has quit [Ping timeout: 268 seconds]
moss_ is now known as moss
Xeago has quit [Remote host closed the connection]
evanjs has joined #ruby
senayar has quit [Remote host closed the connection]
Rickmasta has joined #ruby
evanjs has quit [Remote host closed the connection]