havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Can't talk? Register/identify with Nickserv first! || 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/
baweaver has quit [Remote host closed the connection]
<BraddPitt> [ace] is there a ruby example of this? I'm having a bit of trouble
chills42 has joined #ruby
juanpablo_ has joined #ruby
tjbiddle has joined #ruby
s00pcan has quit [Ping timeout: 264 seconds]
Jardayn has quit [Quit: Leaving]
gray-blade has joined #ruby
renderf__ has quit [Remote host closed the connection]
s00pcan has joined #ruby
valeness has joined #ruby
valeness has left #ruby ["Leaving"]
gray-blade has quit [Quit: leaving]
<shevy> zenspider yeah, solved the encoding issue I had
juanpablo_ has quit [Ping timeout: 272 seconds]
northfurr has joined #ruby
<pragmatism> Well, Valeness, that was annoying as fuck
hyanW has quit [Quit: leaving]
ghosTzin has quit [Quit: Leaving]
gray_blade has joined #ruby
<nofxx> pragmatism, I'm glad it didn't worked
<zenspider> pragmatism: didn't actually work for me. I was hoping to be logged out of github and I'm not :(
<nofxx> at least GH
Kallis has quit [Read error: Connection reset by peer]
<pragmatism> Kicked me off Google and Amazon.
freerobby has quit [Quit: Leaving.]
<zenspider> think of it as getting a fresh new bowl of cookies! you threw out all the stale ones
<pragmatism> Thanks. That really helps my feeling of productivity.
jenrzzz has quit [Ping timeout: 252 seconds]
GeissT has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
jas02 has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
gwendall has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pyon has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gray_blade has quit [Quit: leaving]
grenierm has joined #ruby
gray_blade has joined #ruby
weemsledeux has joined #ruby
<zenspider> pragmatism: maybe you shouldn't go clicking random links. you wouldn't do that on an email from someone you didn't know...
stardiviner has joined #ruby
SCHAAP137 has quit [Ping timeout: 260 seconds]
jas02 has quit [Ping timeout: 250 seconds]
nyon has quit [Disconnected by services]
pyon is now known as nyon
nkts has quit [Remote host closed the connection]
casadei_ has joined #ruby
<pipework> zenspider: But if that puppy doesn't get 15,000 more likes by tomorrow morning, they're going to give him cancer and then adopt him out to a small child.
maletor has quit [Quit: Computer has gone to sleep.]
<zenspider> eww. small children are gross
<pipework> zenspider: Then you understand where I'm coming from here. Think of the children!
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nofxx has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
nofxx has joined #ruby
casadei_ has quit [Remote host closed the connection]
chipotle has quit [Read error: Connection reset by peer]
mleung has quit [Ping timeout: 260 seconds]
drewvanstone has quit [Ping timeout: 240 seconds]
goodcodeguy has quit [Quit: Textual IRC Client: www.textualapp.com]
northfurr has quit [Quit: northfurr]
TheNet has joined #ruby
drewvanstone has joined #ruby
maletor has joined #ruby
araujo_ has joined #ruby
Lucky__ has joined #ruby
araujo has quit [Ping timeout: 250 seconds]
radgeRayden has joined #ruby
gray_blade has quit [Quit: Changing server]
MasterPiece has quit [Ping timeout: 264 seconds]
xcesariox has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
drewvanstone has quit [Ping timeout: 240 seconds]
duncannz has quit [Ping timeout: 256 seconds]
SCHAAP137 has quit [Client Quit]
grenierm has quit [Quit: grenierm]
dorei has quit []
sp4rrow has quit [Quit: Textual IRC Client: www.textualapp.com]
craysiii has quit [Remote host closed the connection]
<zenspider> not terribly scientific: virginal rails app startup: 1.4s removing Bundler.require: 1.2s
<zenspider> but it gives me hope that I'm working in the right direction
tkuchiki has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
diegoviola has joined #ruby
workmad3 has joined #ruby
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tkuchiki has quit [Remote host closed the connection]
<[ace]> it's literally string concat to prepend and slice to remove
<[ace]> be aware this only provides confidentiality of the data, not integrity
aa10ll has quit [Ping timeout: 246 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<[ace]> BraddPitt: any chance you can just use https://github.com/cryptosphere/rbnacl ?
<BraddPitt> [ace] sorry I got it
aa10ll has joined #ruby
<BraddPitt> thought I had to do string pack/unpacking
workmad3 has quit [Ping timeout: 255 seconds]
northfurr has joined #ruby
<BraddPitt> but that link helps a lot! Thank you again
FernandoBasso has quit [Quit: WeeChat 1.3]
sankaber has joined #ruby
pontiki has joined #ruby
Spami has joined #ruby
Rickmasta has joined #ruby
Rickmasta has joined #ruby
<pontiki> hi o/
TheNet has quit [Quit: Leaving...]
oo_ has joined #ruby
ramfjord_ has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
bestbrents has joined #ruby
drewvanstone has joined #ruby
sn0wb1rd has left #ruby ["Leaving..."]
bestbrents_ has quit [Ping timeout: 240 seconds]
inteq has quit [Remote host closed the connection]
Ropeney has joined #ruby
devdazed has joined #ruby
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rushed has joined #ruby
devoldmx_ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou has quit [Ping timeout: 264 seconds]
xaxisx has quit [Ping timeout: 265 seconds]
chipotle has quit [Read error: Connection reset by peer]
sepp2k has quit [Read error: Connection reset by peer]
Yzguy has quit [Quit: Zzz...]
devoldmx has quit [Ping timeout: 272 seconds]
drewvanstone has quit [Ping timeout: 246 seconds]
catcher has joined #ruby
jenrzzz has joined #ruby
araujo__ has joined #ruby
Viata has joined #ruby
ebertx_ has joined #ruby
jenrzzz_ has joined #ruby
chipotle has joined #ruby
WajidKagzi has joined #ruby
araujo_ has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
WajidKagzi has quit [Client Quit]
jenrzzz has quit [Ping timeout: 246 seconds]
EllisTAA has quit [Quit: EllisTAA]
cih has joined #ruby
chills42 has quit [Remote host closed the connection]
cih has quit [Remote host closed the connection]
aa10ll has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
iamninja has quit [Ping timeout: 240 seconds]
ngscheurich has joined #ruby
chills42 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
pietr0 has quit [Quit: pietr0]
ngscheurich has quit [Client Quit]
ngscheurich has joined #ruby
shadoi has quit [Quit: Leaving.]
ramfjord_ has quit [Ping timeout: 255 seconds]
casadei_ has joined #ruby
howdoico1 has quit [Ping timeout: 272 seconds]
dfockler has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 260 seconds]
casadei_ has quit [Remote host closed the connection]
x-light has quit [Ping timeout: 240 seconds]
keen__________22 has joined #ruby
aa10ll has joined #ruby
cvtsx1 has quit [Read error: Connection reset by peer]
keen__________21 has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
bricker has quit [Ping timeout: 272 seconds]
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diegoviola is now known as Guest65456
diego2 is now known as diegoviola
xaxisx has joined #ruby
elfuego has quit [Quit: elfuego]
Guest65456 has quit [Ping timeout: 250 seconds]
eternal1 is now known as neurotech
JimmyNeutron is now known as Guest43569
bruno- has joined #ruby
veduardo has joined #ruby
baweaver has joined #ruby
rushed has quit [Quit: rushed]
amclain has quit [Quit: Leaving]
x-light has joined #ruby
towski_ has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
rushed has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> YES!!!!! I just reduced startup time by 60% by removing Bundler.require against a non-trivial Gemfile + rails initializers
northfurr has joined #ruby
<pontiki> W00T!! W00T!! another conference talk secured!!
bruno- has quit [Ping timeout: 240 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
davedev2_ has joined #ruby
<pipework> HELL YEAH, I'm still more ginger than any of you!
catcher has quit [Quit: catcher]
davedev24 has quit [Ping timeout: 240 seconds]
<pontiki> it is true :((
webguynow has quit [Ping timeout: 250 seconds]
<pontiki> just a blonde
webguynow has joined #ruby
<pipework> pontiki: The blondes are the last to suffer in the ginger uprising, and not all will be placed on strict waffle-making duty.
<pontiki> oh, but my waffles are ace!!
<pontiki> you want them, you really, really do
<zenspider> but but... you guys... This is __automated__ static analysis to put requires at the top of files so you don't need bundler's (horrible) autoload
karapetyan has joined #ruby
<pontiki> i'm all for it, zenspider
<pipework> zenspider: But I've written code that needs requires at the bottom after the definition of a class. :(
<pipework> If it doesn't move requires, we're good.
tkuchiki has joined #ruby
<zenspider> doesn't touch current requires... only adds requires based on analysis of the file's actual usage
<pipework> oh, then fuck yeah.
<zenspider> I need to make it smarter, I need to make it work with git checkouts in the Gemfiles :/ and I need to make it ... well, smarterer... invalidate against known coverage on previous requires
Andrey has joined #ruby
<Andrey> hello
<Andrey> i need some beginner help plz
<zenspider> "beer && code".sub(/beer/, "whisky") is starting soon
<zenspider> Andrey: just ask
<zenspider> (and use gists for code samples > 4 lines)
<pontiki> what's the whisky tonite?
<baweaver> !gist
<zenspider> mmmm good question
<baweaver> fah
chipotle has joined #ruby
nettoweb has joined #ruby
nietzschette has joined #ruby
webguynow has quit [Ping timeout: 256 seconds]
<Andrey> got ya, thanks (super noob here, last time I used IRC was 20 years ago, lol)
karapetyan has quit [Ping timeout: 265 seconds]
<zenspider> I have some costco bourbon I should probably finish off soon. some balvanie Caribbean cask... and I'm not opening this bottle of blanton's until I have a good reason
aa10ll has quit [Quit: aa10ll]
webguynow has joined #ruby
<zenspider> so probably the costco one... dunno what it actually is under the kirkland label
<zenspider> I should search around
tkuchiki has quit [Ping timeout: 240 seconds]
<Andrey> do I just post the gist url here?
metalic has quit [Quit: Leaving]
<baweaver> does help
shmilan has joined #ruby
<BraddPitt> zenspider its quite high quality
<BraddPitt> iirc they distil at the same distillery that does grey goose
<Andrey> when I run it - it always goes to the "WRONG" option, even if the answer is correct, what's my mistake?
amstrad has quit [Ping timeout: 265 seconds]
<zenspider> Andrey: answer.to_i creates an integer and throws it away
<zenspider> it doesn't mutate the variable magically
<zenspider> so line 11 will always be false
<baweaver> unless a method has ! on the end, chances are high it won't mutate anything
<Andrey> Duh!! :) Thanks, as I said - noob :)
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Andrey> answer.to_i==correct_answer should do it, then
freerobby has quit [Quit: Leaving.]
northfurr has quit [Quit: northfurr]
juanpablo_ has joined #ruby
<zenspider> that or answer = answer.to_i
<zenspider> also: 2 spaces per indent
Melpaws has quit [Quit: Leaving.]
<BraddPitt> and please space in between operators and variables
<zenspider> good use of string interpolation
<zenspider> use spaces more
<zenspider> indent your while body
<zenspider> (and use a text editor which will do the latter for you)
northfurr has joined #ruby
<Andrey> I'm actually using Sublime Text, for some reason it doesn't indent when I go back and add something (like the "while" - it didn't indent it)
shmilan has quit [Ping timeout: 246 seconds]
amstrad__ has joined #ruby
amstrad__ is now known as amstrad
meatherly has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
<Andrey> I meant, it didn't indent what can after "while" , because I added it afterwards
<Andrey> can=came
<Ox0dea> gg=G
juanpablo_ has quit [Ping timeout: 260 seconds]
<zenspider> BraddPitt: one article I just read says: "Mystery solved. Kirkland is from Buffalo Trace and tastes like Jim Beam — a little bit, anyway." (still speculative, but probably accurate)
<zenspider> Andrey: prolly have to select all of it and tell ST to reindent
umgrosscol has joined #ruby
<zenspider> ok. B&&C... off I go
SpikeMaster has joined #ruby
chipotle has joined #ruby
solocshaw has quit [Ping timeout: 265 seconds]
<Andrey> advice taken! thanks again guys, I'm sure I'll be back many times :) I'll leave you to your whiskey for now :P
<pontiki> Andrey: Sublime has a re-indent feature
freerobby has joined #ruby
northfurr has quit [Client Quit]
<Ox0dea> Andrey: Wait! There's something important.
<Andrey> pontiki: I'll google it, thanks ffor the tip
<Andrey> Qx?
<Ox0dea> You should be using `loop do`, not this "bare while" you've got, which isn't actually a thing.
<Ox0dea> Your loop is actually `while num1=rand(10)`.
northfurr has joined #ruby
webguynow has quit [Ping timeout: 240 seconds]
<Ox0dea> That'll always be "truthy", so it's fine, for some definition of the term.
MichaelSmith has quit [Quit: Connection closed for inactivity]
webguynow has joined #ruby
chrishough has joined #ruby
<Andrey> well, I was trying to create a loop, but I haven't gotten to "loop do" yet in my studies :)
<adam12> Is there a way to build this lazy? Assuming this is in a class method of the instance it's initializing. start.step(stop, step).map {|value| new(value) }.each
<Ox0dea> Andrey: Aye, something like "while true" is common enough, but Ruby gives us something a little better.
Eddieh_ has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
<Ox0dea> adam12: Perhaps you're looking for the #lazy method.
<adam12> I was thinking that, but it didn't yield (har har) the result I wanted.
<Ox0dea> adam12: #force it to!
<adam12> Clever
<Ox0dea> <3
<adam12> I'll check it out. Thanks.
<Ox0dea> Happy to help.
<nietzschette> is there a quicker way for me to express true/fase as 0/1 other than "[true, false].rindex(expression)"
renderfu_ has joined #ruby
northfurr has quit [Quit: northfurr]
SpikeMaster has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<Ox0dea> nietzschette: Reconsider. :)
<Ox0dea> Just `expr ? 1 : 0` should do, though?
<Andrey> Ox: I believe you 100%, but at this point I'm just at the very basics and wanted to create an endless math multiplication exercise.
<nietzschette> quicker=i mean less verbose
<Ox0dea> Andrey: Yes, that much is clear; what I'm trying to convey is that your code is (inadvertently) misleading.
<Ox0dea> Andrey: https://eval.in/434733
<Andrey> Ox: I see what you are saying, "loop" is much better (and more descriptive) than "while" when building a loop :)
<Ox0dea> Andrey: It is, but that's also not the lesson I mean to pass on.
zotherstupidguy has joined #ruby
<nietzschette> I get expr: syntax error
<Ox0dea> Parenthesize it, then.
renderfu_ has quit [Ping timeout: 252 seconds]
webguynow has quit [Ping timeout: 252 seconds]
<Ox0dea> nietzschette: Um... replace `expr` with the actual expression you want to convert. :P
<Ox0dea> Andrey: Did you check the link?
webguynow has joined #ruby
<nietzschette> oh right!
<Andrey> Ox: Just did. But in my case - it actually did loop :)
<pontiki> time to let it go, Ox0dea
<Ox0dea> Andrey: Yes, but only "accidentally", as it were.
<Ox0dea> Don't write accidentally "correct" code.
amstrad has quit [Ping timeout: 255 seconds]
<Ox0dea> nietzschette: It'd be nice if `true.to_i` were 1, huh?
chipotle has quit [Ping timeout: 244 seconds]
<Andrey> Ox: It wasn't accidental. While num1=rand(10) will always be true, so the code will continue to loop until I end the program. I understand that it's wrong to write it like that, but I am working with a very limited knowledge (for now).
<Ox0dea> Andrey: Then why didn't you write it that way?
<Ox0dea> How come you've got `while` on a line by itself?
phutchins has quit [Ping timeout: 272 seconds]
<pontiki> Ox0dea: please
Melpaws has joined #ruby
vyorkin has joined #ruby
rehat has joined #ruby
<Andrey> Ox: I built it from the inside out, i.e. I first built the if/else and then I was wondering how to loop it, so I came up with "while".
zotherstupidguy has quit [Ping timeout: 252 seconds]
<Andrey> (which is why "while" wasn't indented)
<nietzschette> regex - I still don't understand it. I feel like 80% of what I code could be tossed if I understood it
<Andrey> (I mean, everything after while wasn't indented)
beauby has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
vyorkin has quit [Client Quit]
<adam12> Ox0dea: Enum::Lazy doesn't respond to #join (which Rails needs for whatever). I can likely #force, but I think that negates the purpose of #lazy. Any thoughts?
theery has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
amstrad__ has joined #ruby
amstrad__ is now known as amstrad
howdoi has joined #ruby
webguynow has quit [Ping timeout: 264 seconds]
webguynow has joined #ruby
chipotle has joined #ruby
arescorpio has joined #ruby
blackmesa has joined #ruby
theery has quit [Client Quit]
<Ox0dea> adam12: Could you clarify why you want to lazily generate these?
<adam12> tbh, no specific reason. Just seemed like it fit the use case.
chills42 has quit [Remote host closed the connection]
<Ox0dea> I don't think it does.
<adam12> It's options for a select form. With a 1 minute step, it would build 3600? objects. I'm sure the GC would cleanup, but was avoiding it.
<adam12> I'm fine generating it up front, but figured lazy might be more optimal.
siaw has quit [Quit: siaw]
<Ox0dea> adam12: Wouldn't the user need all 3600 entries regardless?
<adam12> Yes.
shmilan has joined #ruby
<adam12> Maybe you're right
ehth77 has quit [Quit: "Everyone's gotta leave someday."]
<adam12> I guess they have to be generated regardless.
<Ox0dea> Indeed.
catcher has joined #ruby
<pontiki> did i read that right? 3600 options in a select tag?
<nietzschette> what would be a situation to use a lazy enum over any other type?
<Ox0dea> pontiki: The pathological case, to be sure.
<Ox0dea> >> require 'prime'; (1..Float::INFINITY).lazy.select(&:prime?).take(10) # nietzschette
<ruboto> Ox0dea # => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: 1..Infinity>:select>:take(10)> (https://eval.in/434737)
<Ox0dea> >> require 'prime'; (1..Float::INFINITY).lazy.select(&:prime?).take(10).force
<ruboto> Ox0dea # => [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] (https://eval.in/434738)
<Ox0dea> nietzschette: That 10 could be some dynamic value.
workmad3 has joined #ruby
<adam12> Only 1440 options. Still absurd. I'm not saying that's what there is, only that's what there _could_ be.
blackmesa has quit [Ping timeout: 246 seconds]
Rurik has quit [Read error: Connection reset by peer]
eminencehc has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
ponga has joined #ruby
<Ox0dea> nietzschette: Do you know about #cycle and #uniq?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nietzschette> yes, as array methods
<Ox0dea> nietzschette: Right. Well, what would you expect `[1, 2].cycle.uniq` to return?
eminencehc has joined #ruby
Rurik has joined #ruby
<nietzschette> 1,2
Andrey has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
<Ox0dea> Indeed, but alas, it does not, since Enumerator#uniq doesn't exist.
dopie has joined #ruby
<nietzschette> yes, I just irb'd it
<Ox0dea> It could be implemented, of course, and Enumerator::Lazy would be just the thing.
webguynow has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
webguynow has joined #ruby
<nietzschette> so lazy is used to cap itterations of enumerators?
<Ox0dea> Just the opposite, really.
<postmodern> arg bite by ruby > 1.9s constant scoping and instance_eval
<Ox0dea> >> Enumerator.new{}.next rescue $! # nietzschette
<ruboto> Ox0dea # => #<StopIteration: iteration reached an end> (https://eval.in/434742)
tkuchiki has joined #ruby
<Ox0dea> Regular Enumerators can reach "the end", as it were, whereas lazy ones might never do so.
davedev2_ has quit []
<Ox0dea> >> literally_every_even_number = (1..Float::INFINITY).lazy.select(&:even?)
<ruboto> Ox0dea # => #<Enumerator::Lazy: #<Enumerator::Lazy: 1..Infinity>:select> (https://eval.in/434743)
The_Ball has quit [Ping timeout: 252 seconds]
rom has joined #ruby
<Ox0dea> nietzschette: Try (1..Float::INFINITY).select(&:even?) in irb. >:)
urbanmonk has quit [Read error: Connection reset by peer]
rom is now known as urbanmonk
webguynow has quit [Ping timeout: 240 seconds]
urbanmonk has quit [Client Quit]
webguynow has joined #ruby
<nietzschette> . . . If feel like it's a trap!
<Ox0dea> Well spotted.
<Ox0dea> And thus was enlightenment had?
<nietzschette> like, I'm going to collapse my cpu into a singularity
<Ox0dea> You'd just make it run a little hotter.
<Ox0dea> Forever.
baroquebobcat has joined #ruby
<nietzschette> so lazy isn't even iterating anything?
<Ox0dea> Precisely.
<nietzschette> how . . . well . . . LAZY!
<Ox0dea> postmodern: Hm?
chipotle has quit [Ping timeout: 240 seconds]
UtkarshRay has joined #ruby
<Ox0dea> #instance_eval doesn't introduce a new scope in any of the Rubies I've got on hand.
<postmodern> Ox0dea, it changes const lookup to start at the receiver, not the original scope of the block
PlasmaStar has quit [Ping timeout: 246 seconds]
<Ox0dea> postmodern: Seems like a positive change, though?
<postmodern> Ox0dea, indeed, except when it causes issues with DSLs, then it causes the grumbles
chipotle has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
PlasmaStar has joined #ruby
jenrzzz has joined #ruby
charliesome has joined #ruby
s2013 has joined #ruby
The_Ball has joined #ruby
catcher has quit [Quit: catcher]
juanpablo_ has joined #ruby
webguynow has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
ruby-lang831 has joined #ruby
moeabdol1 has quit [Read error: Connection reset by peer]
ruby-lang831 has left #ruby [#ruby]
moeabdol1 has joined #ruby
pwnd_nfsw has quit [Ping timeout: 246 seconds]
juanpablo_ has quit [Ping timeout: 250 seconds]
drewvanstone has joined #ruby
baroquebobcat has joined #ruby
shmilan has quit [Remote host closed the connection]
Guest50 has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gener1c has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
gener1c_ has quit [Ping timeout: 240 seconds]
aaeron has quit [Quit: Leaving.]
nofxx has quit [Ping timeout: 244 seconds]
TheRinger has joined #ruby
braincrash has quit [Quit: bye bye]
inteq has joined #ruby
braincrash has joined #ruby
MichaelSmith has joined #ruby
ledestin has joined #ruby
webguynow has quit [Ping timeout: 255 seconds]
webguynow has joined #ruby
iamninja has joined #ruby
segmond has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
youngbaks has joined #ruby
iamninja has quit [Ping timeout: 246 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
lampshades has joined #ruby
dima_ has joined #ruby
Lucky__ has joined #ruby
programmerq has quit [Ping timeout: 244 seconds]
huhghbluhgh has joined #ruby
programmerq has joined #ruby
webguynow has quit [Ping timeout: 272 seconds]
webguynow has joined #ruby
jgpawletko has quit [Remote host closed the connection]
TheRinger has quit [Quit: Konversation terminated!]
auzty has joined #ruby
youngbaks has quit [Ping timeout: 240 seconds]
youngbaks has joined #ruby
eminencehc has quit [Remote host closed the connection]
jeffreylevesque has joined #ruby
beast has joined #ruby
elton has quit []
<jeffreylevesque> how can i adjust https://github.com/jeff1evesque/machine-learning/blob/c5067ca19beccc1e8e16109ae9f706bead9b10da/Rakefile so that if the unit_test directory is empty, the Rakefile won't error?
huhghbluhgh has quit [Quit: WeeChat 1.3]
bluOxigen has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
RustyJ has joined #ruby
RustyJ has left #ruby ["Leaving"]
r_baron has quit [Ping timeout: 240 seconds]
weemsledeux has joined #ruby
gix has quit [Ping timeout: 260 seconds]
<jeffreylevesque> any ruby masters here?
sixty4k_ has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
elton has joined #ruby
RobertBirnie has joined #ruby
RobertBirnie has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
mary5030 has joined #ruby
ngscheurich has quit [Ping timeout: 240 seconds]
weemsledeux has quit [Read error: No route to host]
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has joined #ruby
mary5030_ has joined #ruby
chipotle has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
s00pcan has quit [Ping timeout: 250 seconds]
hashrocket has quit [Quit: Connection closed for inactivity]
mary5030_ has quit [Ping timeout: 240 seconds]
weemsledeux has joined #ruby
s00pcan has joined #ruby
umgrosscol has quit [Quit: End of Line]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dima_ has quit [Quit: This computer has gone to sleep]
jas02 has joined #ruby
tenderlove has quit [Quit: Leaving...]
banjara has quit [Quit: Leaving.]
jas02 has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
tkuchiki has joined #ruby
chipotle_ has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 260 seconds]
Luming has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
EllisTAA has joined #ruby
<baweaver> jeffreylevesque: just ask your question, you're a lot more likely to get an answer.
AustinMatherne has quit [Quit: Lost terminal]
AustinMatherne has joined #ruby
<jeffreylevesque> baweaver: is https://github.com/jeff1evesque/machine-learning/tree/c5067ca19beccc1e8e16109ae9f706bead9b10da ok? I'm curious what if there is no such directory, or if it's empty. Will i get an error, or will it simply ignore trying to run test files ?
Luming has quit [Remote host closed the connection]
<baweaver> which file specifically?
Luming has joined #ruby
sixty4k_ has joined #ruby
<jeffreylevesque> baweaver: currently i haven't defined any test files (unit tests), which is why i'm wondering if https://github.com/jeff1evesque/machine-learning/tree/c5067ca19beccc1e8e16109ae9f706bead9b10da will generate errors, if i haven't defined any files
<baweaver> your repo is Python
<baweaver> the only Ruby in there is related to Vagrant
Luming has quit [Max SendQ exceeded]
<baweaver> and your link goes to a repo, not a file
Luming has joined #ruby
AustinMatherne has quit [Read error: Connection reset by peer]
<jeffreylevesque> i haven't defined any unit_test/*.rb
Luming has quit [Max SendQ exceeded]
<baweaver> shouldn't, though have you tried it yet?
AustinMatherne has joined #ruby
<baweaver> that just means it gets a blank array
webguynow has quit [Ping timeout: 240 seconds]
<jeffreylevesque> can i run ruby unit tests on javascript, or python
<jeffreylevesque> ah ok
<jeffreylevesque> i'm new to travis, docker
<baweaver> there's no point in it
<baweaver> use python to test python
<baweaver> javascript to test javascript
<jeffreylevesque> well https://github.com/travis-ci/docker-sinatra with respect to my repository
webguynow has joined #ruby
<baweaver> chances are you should be asking in a docker or python channel
<jeffreylevesque> ok
Luming has joined #ruby
Luming has quit [Max SendQ exceeded]
Luming has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
youngbaks has quit [Ping timeout: 255 seconds]
wldcordeiro_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Luming has quit [Max SendQ exceeded]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
chipotle_ has quit [Read error: Connection reset by peer]
Luming has joined #ruby
cih has joined #ruby
wldcordeiro_ has joined #ruby
Luming has quit [Max SendQ exceeded]
workmad3 has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
tejasmanohar has quit [Quit: tejasmanohar]
chipotle has joined #ruby
webguynow has quit [Ping timeout: 256 seconds]
webguynow has joined #ruby
Luming has joined #ruby
cih has quit [Ping timeout: 272 seconds]
youngbaks has joined #ruby
darkf has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
Luming has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 264 seconds]
Luming has joined #ruby
Luming has quit [Max SendQ exceeded]
SHLV has joined #ruby
kalzz has quit [Ping timeout: 252 seconds]
kalz has quit [Ping timeout: 252 seconds]
tejasmanohar has joined #ruby
ramfjord has joined #ruby
Luming has joined #ruby
karapetyan has joined #ruby
oo_ has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Luming has quit [Max SendQ exceeded]
Viata has quit [Ping timeout: 252 seconds]
Luming has joined #ruby
kalz has joined #ruby
hays_ has quit [Ping timeout: 244 seconds]
kalzz has joined #ruby
aaeron has joined #ruby
jgpawletko has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
meatherly has quit []
<howdoi> say the matrix is like [[1,2,3],[4,5,6],[7,8,9]] I am trying to traverse it to [[1, 5, 9], [2, 6],[4,8], [3],[7]]; as in principal diagonal first and then subdiagonals and superdiagonals
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tejasmanohar has quit [Quit: tejasmanohar]
Guest5 has quit [Quit: Textual IRC Client: www.textualapp.com]
aaeron has quit [Client Quit]
yfeldblum has joined #ruby
veduardo has quit [Ping timeout: 256 seconds]
youngbaks has quit [Ping timeout: 260 seconds]
radgeRayden_ has joined #ruby
chipotle has quit [Quit: cheerio]
tjbiddle has quit [Ping timeout: 240 seconds]
wldcordeiro_ has quit [Remote host closed the connection]
<nietzschette> howdoi, is that a question?
webguynow has quit [Ping timeout: 246 seconds]
<howdoi> nietzschette: heh heh yes, given [[1,2,3],[4,5,6],[7,8,9]] I want to end up with [[1, 5, 9], [2, 6],[4,8], [3],[7]]
<nietzschette> as an array of covectors, perhaps?
msankhala has joined #ruby
webguynow has joined #ruby
<howdoi> nietzschette: plain array in my case
Luming has quit [Remote host closed the connection]
<nietzschette> 3x3 or any nxm sized initial matrix
<baweaver> So first Python eh?
wldcordeiro_ has joined #ruby
juanpablo_ has joined #ruby
Luming has joined #ruby
sixty4k_ has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
s00pcan has quit [Ping timeout: 240 seconds]
Luming has quit [Max SendQ exceeded]
<howdoi> nietzschette: mxn m=n square matrix
tjbiddle has joined #ruby
Luming has joined #ruby
Symbiosisz has quit [Ping timeout: 256 seconds]
webguynow has quit [Ping timeout: 240 seconds]
Luming has quit [Max SendQ exceeded]
s00pcan has joined #ruby
fedexo has joined #ruby
webguynow has joined #ruby
<nietzschette> hmm, that's surprisingly complicated
juanpablo_ has quit [Ping timeout: 272 seconds]
Luming has joined #ruby
<go|dfish> 33+
Luming has quit [Max SendQ exceeded]
<howdoi> 33+?
Luming has joined #ruby
rehat has quit [Remote host closed the connection]
Luming has quit [Max SendQ exceeded]
s2013 has joined #ruby
Luming has joined #ruby
s2013 has quit [Client Quit]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
s2013 has joined #ruby
Luming has quit [Max SendQ exceeded]
wldcordeiro_ has quit [Remote host closed the connection]
Rutix has quit []
Luming has joined #ruby
Luming has quit [Max SendQ exceeded]
<howdoi> nietzschette: http://stackoverflow.com/questions/23069388/listing-elements-in-a-nested-lists-diagonally is the closest solution i came across, but it returns [[7], [4, 8], [1, 5, 9], [2, 6], [3]] instead of [[1, 5, 9], [2, 6],[4,8], [3],[7]]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
Luming has joined #ruby
<howdoi> we can reach there by recursively popping out the middle element , but that would be a bad solution
mary5030 has joined #ruby
Luming has quit [Max SendQ exceeded]
<howdoi> if we could range(-N+1, N) in that solution it must work
<nietzschette> I'm thinking about it
wldcordeiro_ has joined #ruby
blackmesa has joined #ruby
Luming has joined #ruby
agent_white has joined #ruby
webguynow has quit [Ping timeout: 240 seconds]
<nietzschette> I'm looking at the source for Matrix#each currently
The_Ball has quit [Ping timeout: 240 seconds]
<agent_white> Evenin'
<howdoi> cool
webguynow has joined #ruby
rezzack has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
xaxisx has quit [Ping timeout: 244 seconds]
ramfjord_ has joined #ruby
phutchins has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Gnomethrower has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
Luming has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
<nietzschette> and I have a funtion that almost works
Luming has joined #ruby
The_Ball has joined #ruby
webguynow has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
oo_ has joined #ruby
saddad has quit [Ping timeout: 246 seconds]
Luming has quit [Max SendQ exceeded]
pawnbox has joined #ruby
skade has joined #ruby
Luming has joined #ruby
FrankD has quit [Ping timeout: 246 seconds]
arescorpio has quit [Quit: Leaving.]
araujo__ has quit [Quit: Leaving]
araujo has joined #ruby
krz has joined #ruby
youngbaks has joined #ruby
rushed has quit [Quit: rushed]
zotherstupidguy has joined #ruby
<howdoi> pls do share nietzschette
youngbaks has quit [Read error: Connection reset by peer]
ramfjord_ has quit [Ping timeout: 256 seconds]
houhoulis has joined #ruby
webguynow has quit [Ping timeout: 252 seconds]
webguynow has joined #ruby
iamninja has joined #ruby
Soda has quit [Remote host closed the connection]
drewvanstone has quit [Ping timeout: 272 seconds]
Axy has joined #ruby
dhjondoh has joined #ruby
<nietzschette> well, the lasy way would be to sort the previous array by the length of the subarrays.
<nietzschette> lazy^
bruno- has joined #ruby
<nietzschette> I'm still working on it for some reason
Luming has quit [Remote host closed the connection]
iamninja has quit [Ping timeout: 256 seconds]
Mia has quit [Ping timeout: 265 seconds]
Luming has joined #ruby
MichaelSmith has quit [Quit: Connection closed for inactivity]
Luming has quit [Max SendQ exceeded]
Luming has joined #ruby
radgeRayden_ has quit [Quit: Leaving]
Luming has quit [Max SendQ exceeded]
lokulin has quit [Changing host]
lokulin has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
Luming has joined #ruby
<nietzschette> I have a function that works for all except the last term!
<nietzschette> I can't figure it out, the very last one returns nil
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<ruboto> nietzschette, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/630f147dabd43ade43f2
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<nietzschette> it is almost there
Luming has quit [Remote host closed the connection]
Luming has joined #ruby
<Ox0dea> howdoi: Still about?
arup_r has joined #ruby
Luming has quit [Max SendQ exceeded]
Luming has joined #ruby
oo_ has quit [Remote host closed the connection]
x-light has quit [Ping timeout: 250 seconds]
<nietzschette> I think I'm going to retry this using % opperator
Luming has quit [Max SendQ exceeded]
<Ox0dea> >> m = n = 3; (m * n).times.map { |i| i * (m + 1) % (m * n) + 1 }
<ruboto> Ox0dea # => [1, 5, 9, 4, 8, 3, 7, 2, 6] (https://eval.in/434808)
oo_ has joined #ruby
webguynow has quit [Ping timeout: 265 seconds]
webguynow has joined #ruby
Luming has joined #ruby
zotherstupidguy has quit [Ping timeout: 264 seconds]
<Ox0dea> >> m = n = 10; (m * n).times.map { |i| i * (m + 1) % (m * n) + 1 }.uniq.size
<ruboto> Ox0dea # => 100 (https://eval.in/434810)
<Ox0dea> Slicing into proper diagonals is left as an exercise. :P
Luming has quit [Max SendQ exceeded]
bb010g has joined #ruby
Luming has joined #ruby
dopieee has joined #ruby
RobertBirnie has joined #ruby
zotherstupidguy has joined #ruby
minimalism has quit [Quit: leaving]
Luming has quit [Max SendQ exceeded]
redondo has quit [Ping timeout: 272 seconds]
webguynow has quit [Ping timeout: 260 seconds]
Luming has joined #ruby
dopie has quit [Ping timeout: 265 seconds]
webguynow has joined #ruby
Luming has quit [Max SendQ exceeded]
Luming has joined #ruby
wldcordeiro_ has quit [Remote host closed the connection]
Luming has quit [Max SendQ exceeded]
minimalism has joined #ruby
retornam has quit [Ping timeout: 255 seconds]
pawnbox has quit [Remote host closed the connection]
fedexo has quit [Ping timeout: 246 seconds]
retornam has joined #ruby
rmrrn has quit [Ping timeout: 255 seconds]
wldcordeiro_ has joined #ruby
luyu_ has joined #ruby
TheMoonMaster has quit [Ping timeout: 255 seconds]
rmrrn has joined #ruby
luyu_ has quit [Max SendQ exceeded]
dionysus69 has joined #ruby
luyu_ has joined #ruby
<nietzschette> done
tagrudev has joined #ruby
dionysus69 has quit [Remote host closed the connection]
luyu_ has quit [Max SendQ exceeded]
<nietzschette> although I'm sure someone who can regex can make me look like a chimp!
dionysus69 has joined #ruby
radgeRayden has quit [Ping timeout: 246 seconds]
<nietzschette> never mind the repeated puts command at the end!
<nietzschette> howdoi: !
<nietzschette> how do I send message?
<nietzschette> to alert them?
felixrsmith has quit [Ping timeout: 250 seconds]
Luming has joined #ruby
symm- has joined #ruby
TheMoonMaster has joined #ruby
martinbjeldbak has quit [Ping timeout: 255 seconds]
Luming has quit [Max SendQ exceeded]
yardenbar has joined #ruby
Luming has joined #ruby
rubie has quit [Remote host closed the connection]
Luming has quit [Max SendQ exceeded]
pawnbox has joined #ruby
firstdayonthejob has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
<nietzschette> what do you think, to clunky?
martinbjeldbak has joined #ruby
Luming has joined #ruby
Luming has quit [Max SendQ exceeded]
devoldmx has joined #ruby
Luming has joined #ruby
Luming has quit [Max SendQ exceeded]
Luming has joined #ruby
devoldmx_ has quit [Ping timeout: 255 seconds]
Luming has quit [Max SendQ exceeded]
Luming has joined #ruby
bluOxigen has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
Luming has quit [Max SendQ exceeded]
webguynow has quit [Ping timeout: 265 seconds]
Luming has joined #ruby
blueOxigen has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
MichaelSmith has joined #ruby
lsmola has joined #ruby
Luming has quit [Max SendQ exceeded]
<certainty> moin
Luming has joined #ruby
gener1c_ has joined #ruby
workmad3 has joined #ruby
gener1c has quit [Ping timeout: 250 seconds]
Luming has quit [Max SendQ exceeded]
Luming has joined #ruby
miguelff has joined #ruby
emilkarl has joined #ruby
hadrig has joined #ruby
Luming has quit [Max SendQ exceeded]
emilkarl has quit [Client Quit]
rushed has joined #ruby
Luming has joined #ruby
banjara has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
c1v0 has joined #ruby
alexUaN has joined #ruby
Luming has quit [Max SendQ exceeded]
karapetyan has joined #ruby
Luming has joined #ruby
Luming has quit [Max SendQ exceeded]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
hayricicek has joined #ruby
jgt1 has joined #ruby
Luming has joined #ruby
Luming has quit [Max SendQ exceeded]
Luming has joined #ruby
Luming has quit [Max SendQ exceeded]
pandaant has joined #ruby
<howdoi> afk brb
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Luming has joined #ruby
freezevee has joined #ruby
khebbie has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Luming has quit [Max SendQ exceeded]
Luming has joined #ruby
hadrig has quit [Read error: Connection reset by peer]
<nietzschette> howdoi scroll up!
hadrig has joined #ruby
PlasmaStar has quit [Ping timeout: 246 seconds]
Gnomethrower has quit [Max SendQ exceeded]
Luming has quit [Max SendQ exceeded]
UtkarshRay has joined #ruby
astrobunny has joined #ruby
Luming has joined #ruby
hadrig has quit [Remote host closed the connection]
PlasmaStar has joined #ruby
Luming has quit [Max SendQ exceeded]
hadrig has joined #ruby
Luming has joined #ruby
firstdayonthejob has quit [Ping timeout: 252 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Luming has quit [Max SendQ exceeded]
<howdoi> nietzschette: checking :)
opensource_ninja has quit [Quit: opensource_ninja]
juanpablo_ has joined #ruby
<howdoi> nietzschette: sweet, what's the complexity like? looks like O(n)
lkba_ has joined #ruby
Luming has joined #ruby
<howdoi> O(n^2)
<certainty> there is a nested loop
<certainty> yeah
ta has quit [Remote host closed the connection]
Luming has quit [Max SendQ exceeded]
<nietzschette> well, what would you suggest?
Ox0dea has quit [Quit: WeeChat 1.3]
riotjones has joined #ruby
<howdoi> thinking if it could get better....hmm..doesn't look like
riotjones has quit [Remote host closed the connection]
Luming has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
Luming has quit [Max SendQ exceeded]
Luming has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
Rixius has quit [Ping timeout: 256 seconds]
Luming has quit [Max SendQ exceeded]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Luming has joined #ruby
oo_ has joined #ruby
naftilos76 has joined #ruby
codecop has joined #ruby
<howdoi> nietzschette: nice, thanks! :)
rushed has quit [Quit: rushed]
Rixius has joined #ruby
Luming has quit [Max SendQ exceeded]
Luming has joined #ruby
rushed has joined #ruby
hadrig has quit [Read error: Connection reset by peer]
_hadrig_ has joined #ruby
Luming has quit [Max SendQ exceeded]
symm- has quit [Ping timeout: 246 seconds]
_hadrig_ has quit [Client Quit]
<apeiros> uh, did bundler go full retarted mode? 'spec.bindir = "exe"'
<certainty> where is that from?
<apeiros> certainty: that's from a bundler generated gemspec
<wasamasa> nietzschette: this is known as "highlight", just put their nick on the beginning of the message and their client highlights it
<apeiros> seems like they didn't know a better way to deal with binstubs vs. executables
<certainty> apeiros: well i guess because the executables are not binaries. Kind of reasonable
<certainty> oh well they give another rational
Balzrael has joined #ruby
<certainty> i thought it was just the name
symm- has joined #ruby
Luming has joined #ruby
Luming has quit [Max SendQ exceeded]
mikelodeon has joined #ruby
webguynow has quit [Ping timeout: 252 seconds]
skullcrasher has joined #ruby
miguelff has quit [Ping timeout: 265 seconds]
mikelodeon is now known as miguelff
webguynow has joined #ruby
symm- has quit [Ping timeout: 256 seconds]
banjara has quit [Quit: Leaving.]
khebbie has quit [Remote host closed the connection]
cih has joined #ruby
skade has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
firstdayonthejob has joined #ruby
last_staff has joined #ruby
last_staff has quit [Client Quit]
last_staff has joined #ruby
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
stan has joined #ruby
aganov has joined #ruby
lewd_n_rude has joined #ruby
msankhala has quit [Quit: Leaving]
blackmesa has joined #ruby
Macaveli has joined #ruby
<lewd_n_rude> is there a way I can pass the name of a method to select? I'd like to do something like '[1,2,3,4,5].select(:even?)'
Spami has joined #ruby
miguelff has quit [Read error: Connection reset by peer]
mrityunjay has joined #ruby
miguelff has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
GeissT has quit [Remote host closed the connection]
GeissT has joined #ruby
FrankD has joined #ruby
<certainty> lewd_n_rude: yes, see Symbol#to_proc
oo_ has quit [Remote host closed the connection]
<lewd_n_rude> ah
<certainty> >> [1,2,3].select(&:even?)
<ruboto> certainty # => [2] (https://eval.in/434825)
mordocai has joined #ruby
<lewd_n_rude> perfect, thanks
<certainty> yw
oo_ has joined #ruby
miguelff has quit [Client Quit]
solars has joined #ruby
<lewd_n_rude> so thats a special shorthand, that should work with anything that can be .to_proc'd, right?
<certainty> lewd_n_rude: note that there is also Method#to_proc so if you want to use the same technique for methods you can do it by passing &method(:method_name)
<certainty> lewd_n_rude: yes
mrityunjay has quit [Ping timeout: 250 seconds]
<lewd_n_rude> yeah i was reading about the Method class trying to solve this
Rurik has quit [Ping timeout: 260 seconds]
towski_ has joined #ruby
<Melpaws> hello all. I'm trying to regex through an array with match but i think my regex is off. the value is 'ftp_tux' but no luck with - /ftp_[a-z]/)
GeissT has quit [Ping timeout: 260 seconds]
<apeiros> >> 'ftp_tux' =~ /ftp_[a-z]/
<ruboto> apeiros # => 0 (https://eval.in/434827)
<apeiros> Melpaws: matches just fine
<apeiros> though, note that it matches only the "ftp_t" part.
<Melpaws> I've tried a few ways. Any suggestions? I need just ftp_t* as there will be ore than ftp_tux like ftp_user1 ftp_user2
<certainty> >> a = []; ('a' .. 'z').each(&a.method(:<<)); a
<ruboto> certainty # => ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", ...check link for more (https://eval.in/434829)
ramfjord has joined #ruby
<certainty> lewd_n_rude: ^ contrived example but it shows the idea
<Melpaws> *need more than ftp_t (sorry)
<apeiros> certainty: obfuscating [*'a'..'z']=
<apeiros> ?
<apeiros> oh
<apeiros> nvm :)
<certainty> apeiros: no looking for a somewhat simple example to show Method#to_proc :)
webguynow has quit [Ping timeout: 246 seconds]
<lewd_n_rude> nice
<apeiros> certainty: yeah, just read up. didn't see the backlog :)
webguynow has joined #ruby
<apeiros> Melpaws: [a-z] matches a single character. use [a-z]+ to match "one or more of [a-z]"
towski_ has quit [Remote host closed the connection]
<Melpaws> ah . cool!
khebbie has joined #ruby
jas02 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<apeiros> however, /ftp_[a-z]/ does match ftp_user1 etc. too, it's just that the matching ends at "ftp_u"
solars has quit [Quit: WeeChat 0.4.2]
solars has joined #ruby
khebbie has quit [Remote host closed the connection]
<Melpaws> yeah. was noticing that. thanks for the tip
lampshad_ has joined #ruby
lampshad_ has quit [Client Quit]
Rurik has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
<apeiros> can't help but think that this "bin collides with binstubs, lets therefore move all executables to exe instead!" is a "we're in a hole! let's dig deeper!" kind of solution… :-/
lampshades has quit [Ping timeout: 250 seconds]
SCHAAP137 has joined #ruby
cih has quit [Remote host closed the connection]
emilkarl has joined #ruby
CloCkWeRX1 has joined #ruby
<certainty> sounds like it yeah
arup_r has quit [Ping timeout: 250 seconds]
cih has joined #ruby
moeabdol1 has quit [Ping timeout: 246 seconds]
iamninja has joined #ruby
mrityunjay has joined #ruby
houhoulis has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
rattatmatt has joined #ruby
webguynow has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 265 seconds]
webguynow has joined #ruby
khebbie has joined #ruby
TheHodge has joined #ruby
rushed has quit [Quit: rushed]
dopieee has quit [Read error: Connection reset by peer]
dopie has joined #ruby
khebbie has quit [Remote host closed the connection]
rushed has joined #ruby
Pupp3tm4st3r has joined #ruby
ndrei has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
firstdayonthejob has quit [Ping timeout: 240 seconds]
nietzschette has quit [Quit: Nettalk6 - www.ntalk.de]
jenrzzz has joined #ruby
SHLV has quit [Quit: Leaving]
moeabdol1 has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
ta has joined #ruby
Oka has quit [Quit: o/]
Pupeno has joined #ruby
aswen has joined #ruby
karapetyan has quit [Remote host closed the connection]
jas02 has quit [Quit: jas02]
CloCkWeRX1 has left #ruby [#ruby]
Pupeno has quit [Ping timeout: 240 seconds]
webguynow has quit [Ping timeout: 265 seconds]
duncannz has joined #ruby
AlexRussia has quit [Remote host closed the connection]
webguynow has joined #ruby
baweaver has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
dopieee has joined #ruby
dopie has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
Pupeno has joined #ruby
khebbie has joined #ruby
allomov has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
bayed has joined #ruby
poguez_ has joined #ruby
skade has joined #ruby
<yorickpeterse> morning
webguynow has quit [Ping timeout: 260 seconds]
webguynow has joined #ruby
<certainty> o/
devoldmx has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
lewd_n_rude has quit [Ping timeout: 246 seconds]
darkf_ has joined #ruby
rubie has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
khebbie has quit [Remote host closed the connection]
workmad3 has joined #ruby
leafybasil has quit [Remote host closed the connection]
darkf has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
arup_r has joined #ruby
Hounddog has joined #ruby
drptbl has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
<adaedra> Bonjour
jmarrec has joined #ruby
cih has quit [Read error: Connection reset by peer]
cih_ has joined #ruby
Pathfinder has joined #ruby
lkba_ has quit [Ping timeout: 264 seconds]
renderfu_ has joined #ruby
ght has quit [Ping timeout: 250 seconds]
miguelff has joined #ruby
youngbaks has joined #ruby
krisquigley has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
webguynow has quit [Ping timeout: 265 seconds]
webguynow has joined #ruby
rdark has joined #ruby
renderfu_ has quit [Ping timeout: 240 seconds]
ruby-lang713 has joined #ruby
hadrig has joined #ruby
hadrig has quit [Client Quit]
jgt1 has quit [Ping timeout: 260 seconds]
ruby-lang713 has quit [Client Quit]
cih has joined #ruby
cih_ has quit [Read error: Connection reset by peer]
The_Ball has quit [Read error: Connection reset by peer]
youngbaks has quit [Ping timeout: 240 seconds]
juanpablo_ has joined #ruby
unsymbol_ has quit [Quit: cheerio]
unsymbol has joined #ruby
bruno- has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
bruno- has quit [Ping timeout: 244 seconds]
Zai00 has joined #ruby
beauby has joined #ruby
DoubleMalt has joined #ruby
chthon has joined #ruby
allomov has joined #ruby
leafybasil has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
webguynow has quit [Ping timeout: 240 seconds]
leafybasil has joined #ruby
webguynow has joined #ruby
khebbie has quit [Remote host closed the connection]
atmosx_laptop has joined #ruby
Voker57 has joined #ruby
karapetyan has quit [Remote host closed the connection]
<certainty> i know in recent ruby we have Kernel#id which is very handy. What did you do before that was available. #something { |e| e } is kind of ugly
ReK2 has quit [Ping timeout: 268 seconds]
<certainty> there was supposed to be a ?
blaxter has joined #ruby
x-light has joined #ruby
anaeem1_ has joined #ruby
duncannz has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
CustosLimen has joined #ruby
Aswebb_ has joined #ruby
jenrzzz has joined #ruby
yfeldblum has joined #ruby
dopieee has quit [Quit: This computer has gone to sleep]
<adaedra> #something(&:itself) ?
beast_ has joined #ruby
f4cl3y has joined #ruby
c1v0 has quit []
anaeem1_ has quit [Quit: Leaving...]
<certainty> adaedra: yeah
<certainty> only that #itself doesn't exist in ruby 2.1
rattatmatt has quit [Quit: Leaving]
<certainty> i meant Kernel#itself not Kernel#id
ReK2 has joined #ruby
<certainty> sorry for the confusion
<apeiros> that'd be Object#itself
<certainty> oh i see
<certainty> i thought it was kernel
<apeiros> Kernel only has methods which have no relation to self
<certainty> makes sense though
<apeiros> i.e. which you never call with a receiver
[k- has joined #ruby
<apeiros> (though, iirc that's actually only a documentation cheat, effective implementation differs from docs)
marr has joined #ruby
xfbs has joined #ruby
niik00 has joined #ruby
<certainty> of so we're in pre Object#itself land
<certainty> s/of/ok/
aswen has quit [Ping timeout: 260 seconds]
webguynow has quit [Ping timeout: 272 seconds]
<apeiros> in pre .itself land - we used indeed the ugly #something { |e| e }
webguynow has joined #ruby
Luming has joined #ruby
<apeiros> but you can always backport it: unless Object.method_defined?(:itself); class Object; def itself; self; end; end; end
<certainty> damn i feared that
<apeiros> I usually have lib/project/patches.rb where I do such backports
<niik00> Hi, guys, I have a class
<certainty> makes sense, thanks apeiros
<apeiros> yw
Luming has quit [Max SendQ exceeded]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
iamninja has joined #ruby
Luming has joined #ruby
rushed has quit [Quit: rushed]
Luming has quit [Max SendQ exceeded]
<niik00> guys I have a class Foo, I'm wondering if it's something *normal* to add require in the class definition to add methods to the class ?
<apeiros> niik00: it's normal to have the requires at the top of your file.
<adaedra> You may want to show us code samples though, I'm not sure to see what you're meaning.
<apeiros> requiring from within class bodies makes no difference, so that's only a style question
<apeiros> and from within methods, you'd only do it when it makes sense. e.g. you only want to require a file under specific circumstances
<apeiros> also
<apeiros> ?guys niik00
<ruboto> niik00, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
charliesome has joined #ruby
chipotle has joined #ruby
<niik00> Because I'd like to use that gem : https://github.com/joshbuddy/optitron , basically you have to define a method by command, so to organize my code I wanted to split methods by files.
<niik00> So basically I could do something like that : http://pastebin.com/QMd7ugq3
<ruboto> niik00, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/985d4cca863cb12dd1f1
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
jgt1 has joined #ruby
<adaedra> You can re-open classes so have code for the same class in multiple files, for what it's worth.
x-light has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
<niik00> Yeah I think I'm gonna do that. require position is important right ? I mean I have to define my class first and then add requires ?
webguynow has quit [Ping timeout: 244 seconds]
<certainty> niik00: did you try that out?
<certainty> i mean what you pasted
<niik00> certainty: yep but it says that methods are private
<adaedra> Well, usually, you put require at top-level, in top of file
amstrad has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
<adaedra> Like apeiros said, you can put them in methods if you want conditional loading
webguynow has joined #ruby
<adaedra> but yeah, just do a class declaration in all of the files, and require them all in your top script
jenrzzz has quit [Ping timeout: 250 seconds]
oo_ has quit [Quit: Leaving...]
charliesome has quit [Ping timeout: 264 seconds]
<certainty> niik00: what exactly was the error message?
x-light has joined #ruby
Igorshp has joined #ruby
karapetyan has joined #ruby
siaw has joined #ruby
charliesome has joined #ruby
miguelff has quit [Ping timeout: 265 seconds]
fella5s has quit [Ping timeout: 240 seconds]
drewvanstone has joined #ruby
<niik00> I didn't read the gem code source so I don't know if it's a behaviour from the gem or from ruby. If what I'm doing is correct I guess the gem makes it happen
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
<certainty> niik00: see it says the method is undefined
<certainty> not private
<certainty> which it really is because the code doesn't work as you assume
Spami has joined #ruby
<certainty> you wanted to require the file i guess?
drewvanstone has quit [Ping timeout: 250 seconds]
<certainty> instead printing the path
<certainty> the result should still be the same
solocshaw has joined #ruby
solocshaw has quit [Remote host closed the connection]
<certainty> bbl
solocshaw has joined #ruby
ReK2 has quit [Remote host closed the connection]
<Pathfinder> Hey guys how do I enter the special character SOH in irb?
lkba has joined #ruby
<Pathfinder> I have tried a = "\U+0001" .. but when I do a.length I get 6 instead of 1
<niik00> certainty: my bad I badly c/c the code. I've update the gist with the "good" error and require instead of puts
gwendall has joined #ruby
da3mian has joined #ruby
<certainty> niik00: ok. I guess the Optitron::CLI class implements require. Probably using class_eval with the contents of the file
<certainty> that's not the way require normally works
<niik00> certainty: ok I'm gonnay try without require but but with class reopen
<niik00> thanks for your help :)
<certainty> yeah that's the saner approach imho
chipotle has quit [Quit: cheerio]
<adaedra> >> "\x01" # Pathfinder
fella5s has joined #ruby
<ruboto> adaedra # => "\u0001" (https://eval.in/434888)
lkba_ has joined #ruby
niik00 has left #ruby [#ruby]
<Pathfinder> I have found a list with ASCII codes for control characters - http://ascii.cl/control-characters.htm
<Pathfinder> SO in this case I have just done 1.chr
iszak has quit [Ping timeout: 255 seconds]
<Pathfinder> 1.chr => "\x01"
<adaedra> You also have it in `man ascii` ;)
Evan_ has quit [Ping timeout: 246 seconds]
<Pathfinder> Haha..thanks for the pointer :)
ruisantos has quit [Ping timeout: 246 seconds]
rtl has quit [Ping timeout: 246 seconds]
pabs has quit [Ping timeout: 246 seconds]
M-Technic has quit [Ping timeout: 246 seconds]
ruisantos has joined #ruby
Evan_ has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
rtl has joined #ruby
iszak has joined #ruby
Spami has quit [Read error: Connection reset by peer]
M-Technic has joined #ruby
pabs has joined #ruby
senayar has joined #ruby
Spami has joined #ruby
<adaedra> man pages are life, man pages are love
x-light has quit [Ping timeout: 272 seconds]
mordocai has quit [Remote host closed the connection]
* agent_white runs `man mount` and giggles
cvtsx has joined #ruby
dorei has joined #ruby
<shevy> I am all for girl pages
ramfjord has quit [Ping timeout: 252 seconds]
<[k-> shevy: dirty dirty
xfbs has quit [Ping timeout: 250 seconds]
senayar has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
MichaelSmith has quit [Quit: Connection closed for inactivity]
hayricicek has quit [Ping timeout: 250 seconds]
minimalism has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
<adaedra> % man -k girl
<adaedra> girl: nothing appropriate
karapetyan has joined #ruby
da3mian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ght has joined #ruby
_lazarevsky_ has joined #ruby
<_lazarevsky_> hello
<_lazarevsky_> anyone around
<_lazarevsky_> I need helping parsing this weird string
<_lazarevsky_> it's neither JSON nor YAML :/
<_lazarevsky_> it's a response from an SQS queue
<adaedra> What does it looks like?
darkf_ is now known as darkf
<karapetyan> why this dont works?
<karapetyan> arr = [1,2,3,4,5]
ishahnaz has joined #ruby
<[k-> this works
<certainty> :)
<adaedra> karapetyan: what do you expect, how is it different from what you got?
<karapetyan> arr.slice!(-1..-2) ?
<karapetyan> it returns []
<karapetyan> i ve got empty array and it's don't remove 2 last elements in array, but should
<karapetyan> i expect => [1,2,3]
ramfjord has joined #ruby
<universa1> karapetyan: (-1..-2).to_a => []
<[k-> arr.pop(2) or arr[0..-2]
<adaedra> you got a negative range
<karapetyan> universa1: no, i already have array and i need to remove 2 last elements
<karapetyan> [k-: thx
<[k-> -1 refers to the last element
<adaedra> just inverse the boundaries
jgt1 has quit [Ping timeout: 272 seconds]
<universa1> _lazarevsky_: example of the weird string?
<adaedra> >> a = [1, 2, 3, 4, 5]; b = a.slice!(-2..-1); [ a, b ]
<ruboto> adaedra # => [[1, 2, 3], [4, 5]] (https://eval.in/434900)
charliesome has joined #ruby
Spami has quit [Ping timeout: 265 seconds]
webguynow has quit [Ping timeout: 256 seconds]
hadrig has joined #ruby
webguynow has joined #ruby
<_lazarevsky_> universa1: I did try a couple of times to add line wrap but git hub wouldn't let me do it..
blackmesa has joined #ruby
<universa1> _lazarevsky_: split at new lines, then split at ": "
<adaedra> Looks like mail headers
beauby has quit [Ping timeout: 260 seconds]
rikkipitt has joined #ruby
<adaedra> Looks like a mail, actually
skade has quit [Quit: Computer has gone to sleep.]
hadrig has quit [Read error: Connection reset by peer]
rikkipitt has quit [Client Quit]
<_lazarevsky_> adaedra: spot on
<_lazarevsky_> universa1: so split by \n, then by : and then just iterate over the lements of the array til I find the one I need?
<universa1> _lazarevsky_: what do you actaully want to do?
<_lazarevsky_> I'm sure there's some built in ruby wizardry that I can utilise
<_lazarevsky_> universa1: <p>tests SQS<br>\n</p> <-
<adaedra> You may want to look into gems that can handle mails.
<_lazarevsky_> and the sender from
<adaedra> Then another one to handle the HTML content of the mail.
<universa1> _lazarevsky_: require "maiL"; Mail.new(your_string)
astrobunny has quit [Remote host closed the connection]
<universa1> *mail
<universa1> m.from
webguynow has quit [Ping timeout: 240 seconds]
ruby-lang046 has joined #ruby
<ruby-lang046> word up!
webguynow has joined #ruby
<universa1> adaedra: just guessed from your tip with the mail ;)
blackmesa has quit [Ping timeout: 240 seconds]
jgt1 has joined #ruby
<_lazarevsky_> oh is that a gem?
<universa1> _lazarevsky_: no, stdlib i guess. works for me in a plain irb session
<adaedra> seems to come from tk
<adaedra> &ri Mail
<_lazarevsky_> nope
<_lazarevsky_> I get uninitialised constant Controller:Mail
priklyp34r has joined #ruby
<adaedra> Try ::Mail
juanpablo_ has joined #ruby
<universa1> _lazarevsky_: might actually be the mail gem
UtkarshRay has quit [Ping timeout: 246 seconds]
aswen has joined #ruby
<universa1> _lazarevsky_: yep, it's the mail gem. sorry about the stdlib guess.
<_lazarevsky_> no probs
<_lazarevsky_> ok and one last question
<_lazarevsky_> it's really a Rails question but today I've been getting more responses here
<_lazarevsky_> may I go ahead and ask it here?
moeabdol1 has quit [Ping timeout: 260 seconds]
emilkarl has quit [Quit: emilkarl]
<TTilus> don't ask to ask
<TTilus> worst you could get is to be pointed to another channel
<_lazarevsky_> ok cool, so I need to write a piece of code which would keep polling this SQS queue for incoming messages. What's the correct way to do it in Rails
tjbiddle has quit [Quit: tjbiddle]
<_lazarevsky_> or rather, what's the correct place to do it from in Rails
<_lazarevsky_> I'm thinking.. from an initializer?
<ruby-lang046> hey guys, can I get some help with some search algorithms here?
da3mian has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
<adaedra> You know, you can put multiple files in the same gist.
<ytti> def foo bar, **baz
<universa1> _lazarevsky_: background job.
<ytti> def foo bar, baz={)
<ytti> def foo bar, baz={}
<ytti> are there behavioral differences?
<_lazarevsky_> universa1: background job?
<adaedra> One is not supported in older ruby versions, ytti
<_lazarevsky_> universa1: k I'll read up on it
<ytti> adaedra, i know
<ytti> adaedra, but if i have ruby2.0 code with **baz
<ytti> adaedra, can i safely change it to baz={}
<workmad3> _lazarevsky_: a background job, or use something like clockwork to set up a cron-esque schedule to run your polling from
<ytti> adaedra, and restore 1.9.3 compatibility
<ytti> adaedra, or are there some behavioral differences
<adaedra> I'd say so, but I'm not sure
rubie has quit [Ping timeout: 265 seconds]
startupality has joined #ruby
Igorshp has quit [Remote host closed the connection]
<ruby-lang046> I didn't knew that, adaedra
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruby-lang046> git@gist.github.com:68a2e460cff05f5e20e6.git
chipotle has joined #ruby
<ruby-lang046> did it a bit better
Spami has joined #ruby
<ruby-lang046> I need some help with finding paths between the nodes, I'm saving stuff with the dictionary structure but then I'd like to get all possible paths between my nodes
beast has quit [Ping timeout: 272 seconds]
Igorshp has joined #ruby
<ruby-lang046> basic CS stuff, I know
krisquigley has joined #ruby
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
Spami has quit [Ping timeout: 260 seconds]
<ruby-lang046> my problem is with that find_paths part there
ta has quit [Remote host closed the connection]
<ruby-lang046> I can return in the trivial case, but I don't know where to start to do a full search
beast has joined #ruby
ta has joined #ruby
<workmad3> ruby-lang046: start by googling up the a* pathfinding algorithm
rikkipitt has joined #ruby
tiger_uppercut has joined #ruby
<tiger_uppercut> hello all
cantaberry has quit [Ping timeout: 256 seconds]
<tiger_uppercut> i have run into a problem that i can't seem to solve
<tiger_uppercut> running cucumber tests, i get "invalid byte sequence in UTF-8 (ArgumentError)"
Zai00 has quit [Quit: Zai00]
krz has quit [Quit: WeeChat 1.2]
chills42 has joined #ruby
sgambino has joined #ruby
<jhass> tiger_uppercut: please make a gist with: the full backtrace and the code (around) the last entry of the backtrace going through non library code
<ytti> jhass, do you know if 'def foo bar, **baz' and 'def foo bar, baz={}' are functionally equivalent? Either can be change to either, and no dependening code will break?
<ytti> (excluding the obvious, one is not supported in <2.0)
<tiger_uppercut> jhass, sure thanks
hayricicek has joined #ruby
<jhass> >> def foo(**bar); p bar; end; foo('a' => 'b') # ytti here's one difference, it doesn't allow arbitrary syntax on the caller side
<ruboto> jhass # => wrong number of arguments (1 for 0) (ArgumentError) ...check link for more (https://eval.in/434909)
_lazarevsky_ has quit [Quit: Page closed]
<jhass> >> def foo(**bar); p bar; end; foo(**{'a' => 'b'}) # and you need symbol keys to pass a hash
<ruboto> jhass # => wrong argument type String (expected Symbol) (TypeError) ...check link for more (https://eval.in/434910)
zapata has quit [Ping timeout: 240 seconds]
<tiger_uppercut> jhass, here's the gist: http://pastebin.com/bxabKb68
<ruboto> tiger_uppercut, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/5974534a752d7d7ac488
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
jenrzzz has joined #ruby
<tiger_uppercut> :)
da3mian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybasil has quit [Ping timeout: 240 seconds]
<tiger_uppercut> jhass, in the gist i've posted versions of ruby and cucumber along with OS
leafybas_ has joined #ruby
<ytti> jhass, darn
da3mian has joined #ruby
<ytti> jhass, but that seems to indicate you can't go to **foo from foo={}
<shevy> what's those **
<ytti> jhass, is there something that would forbod going fto foo={} from **foo
<jhass> ytti: for most common usages you can, but there's no guarantee
<workmad3> shevy: the keyword arg equivalent of the *args variable argument list
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ishahnaz has quit []
<certainty> but take it slowly shevy. you only recently realized that there is something other that latin1
<certainty> than
<adaedra> shots fired
<certainty> xD
<jhass> tiger_uppercut: might be worth to hack into there and add `p f` in the block, to check what it fails on
<shevy> certainty yeah, lots of wrong decisions made
<certainty> :)
jenrzzz has quit [Ping timeout: 250 seconds]
<tiger_uppercut> jhass, you mean the block in configuration.rb file that you posted above?
chipotle has quit [Read error: Connection reset by peer]
<tiger_uppercut> excuse my lack of expertise in ruby please
<shevy> certainty I actually haven't yet used keyword arguments... I find the syntax weird... do I really need to use those **, that so reminds me of @@
<jhass> tiger_uppercut: yes, in /home/okash/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/gems/cucumber-1.3.19/lib/cucumber/cli/configuration.rb on line 97
<shevy> I also haven't used -> either yet
<tiger_uppercut> jhass, thanks
<jhass> tiger_uppercut: you can always go back to the original with gem pristine cucumber, so don't be afraid to hack around in it
<zotherstupidguy> anybody ever heard of code transplant?! do we have this in ruby?
<tiger_uppercut> sure :)
<certainty> shevy: well if you want to pass them on to other methods, yes
karapetyan has quit [Remote host closed the connection]
ruby-lang046 has quit [Ping timeout: 246 seconds]
<certainty> shevy: are you using hash rockets still?
<shevy> I use both => and : actually
Zai00 has joined #ruby
karapetyan has joined #ruby
<certainty> what's so weird about the syntax of kwargs then for you shevy?
<shevy> : usually when terse is nicer
<certainty> ah you mean the double **
<shevy> yeah
sdothum has joined #ruby
<shevy> zotherstupidguy extend!
<certainty> double ** would be **** right?
<shevy> what the...
<certainty> anyway, you know what i mean
beauby has joined #ruby
rikkipit_ has joined #ruby
atmosx_laptop has quit [Quit: Lost in trance]
rikkipitt has quit [Ping timeout: 272 seconds]
zapata has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
rodfersou has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
<certainty> shevy: i have no idea
sepp2k has joined #ruby
jamesaxl|2 has joined #ruby
karapetyan has joined #ruby
but3k4 has joined #ruby
timonv has joined #ruby
karapetyan has quit [Remote host closed the connection]
<shevy> ****
jamesaxl has quit [Ping timeout: 246 seconds]
<certainty> shevy: your password?
UtkarshRay has joined #ruby
<shevy> yeah
stamina has joined #ruby
<apeiros> why do you type your password in plaintext here? o0
y0da has joined #ruby
c0m0 has joined #ruby
<shevy> I could type it in unicode!
<shevy> the snowman is to become my new password
chthon has quit [Quit: Ex-Chat]
but3k4 has quit [Ping timeout: 255 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
<tiger_uppercut> jhass, that helped make progress! it errors on an mp3 file
<jhass> tiger_uppercut: I don't think that it's an mp3 file is relevant, rather an odd filename
lsmola has quit [Ping timeout: 256 seconds]
<tiger_uppercut> jhass, ah isee
<tiger_uppercut> yes it does have a funny filename too
lsmola has joined #ruby
<tiger_uppercut> "features/data/ext_drive_test_files/11 \xC1guas de Mar\xE7o (Waters of March) [Live].mp3"
leafybas_ has quit [Read error: Connection reset by peer]
webguynow has quit [Ping timeout: 240 seconds]
<tiger_uppercut> jhass, ^
webguynow has joined #ruby
leafybasil has joined #ruby
<jhass> yeah, that's definitely not valid UTF-8 :P
<tiger_uppercut> great :)
<jhass> tiger_uppercut: let me guess, NTFS drive, windows created file?
<tiger_uppercut> spot on!
<jhass> now the question is why your system doesn't convert it to system encoding I guess
<tiger_uppercut> any suggestions for work around?
<jhass> besides renaming?
<tiger_uppercut> right
<jhass> ntfs-3g I suppose?
<tiger_uppercut> i can rename it i guess but this is shared source code
<tiger_uppercut> :D
<jhass> your system locale is UTF-8, right? check the output of locale
<tiger_uppercut> jhass, it returns several lines. the top one is LANG=en_GB.UTF-8
<tiger_uppercut> all lines say en_GB.UTF-8
<jhass> cool
tkuchiki has quit [Remote host closed the connection]
<jhass> how is that drive mounted?
<tiger_uppercut> except the last one: LC_ALL=
emilkarl has joined #ruby
<tiger_uppercut> it's a VM runing inside Win7 host
bruno- has joined #ruby
jgt1 has quit [Ping timeout: 255 seconds]
Kallis has joined #ruby
Kallis has quit [Max SendQ exceeded]
<tiger_uppercut> jhass, i guess i can google around setting locale to utf-8 on ubuntu vm
<jhass> eh, en_GB.UTF-8 is a utf8 locale
<tiger_uppercut> oh ok
<jhass> mmh, so it's a samba mount or how did virtualbox do it again?
<tiger_uppercut> of course,,, i meant may be the fact that it's a VM may interfere
<tiger_uppercut> not a samba mount
<tiger_uppercut> it's a VHD
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
<jhass> okay, so that brings me back to how it's mounted
otisZart has joined #ruby
<jhass> since for the guest that will appear as a normal disk
<tiger_uppercut> do you want me to run mount command?
<tiger_uppercut> it's ext4
<jhass> wut
<jhass> why did you say yes earlier if I asked if it's NTFS then?
<tiger_uppercut> i meant the file was created on a windows NTFS system
dionysus69 has quit [Ping timeout: 264 seconds]
<tiger_uppercut> misunderstood it
<jhass> and how was it copied to the ext4 disk?
<Pro|> is there way to turn [['hi', 'hello']] into {'hi': 'hello'}
<jhass> Pro|: .to_h
<Pro|> ok thanks
<tiger_uppercut> pulled it from a source control server
<jhass> less vague please?
<jhass> what SCM?
jeffreylevesque has quit [Ping timeout: 264 seconds]
Pupp3tm4st3r has joined #ruby
<tiger_uppercut> i got it from a perforce server hosted on a linux machine
dhjondoh has joined #ruby
mprelude has joined #ruby
<jhass> I have no idea if that's a proprietary SCM of simply an appliance using an open source SCM
<jhass> *or
sugardrunk has joined #ruby
<tiger_uppercut> perforce?
<sugardrunk> hello
webguynow has quit [Ping timeout: 252 seconds]
<jhass> but since it's a commercial product you probably should complain to their support how the hell they managed to create a non-UTF8 filename on a ext4 drive
<jhass> yes
webguynow has joined #ruby
<tiger_uppercut> yes it is... good point
auzty has quit [Quit: Leaving]
<tiger_uppercut> in the meanwhile i'll change the name locally and see the tests run
otisZart has quit [Quit: Textual IRC Client: www.textualapp.com]
tesuji has joined #ruby
Jennifer22 has joined #ruby
<tiger_uppercut> jhass, thanks a lot for your help! if you were around, i'd buy you a beer :)
tomaz_b has joined #ruby
<jhass> tiger_uppercut: I suspect it'll also work if you rename the file on the VM to the same name again, so it becomes valid UTF8 and commit that
tomaz_b has quit [Remote host closed the connection]
<tiger_uppercut> i see
tomaz_b has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
_lazarevsky_ has joined #ruby
<tiger_uppercut> jhass, just out of interest, how come this file doesn't give any problems on a windows machine? if it is non-utf-8 it shouldn't it be non-utf-8 on windows too?
<_lazarevsky_> universa1: that worked like a charm
<_lazarevsky_> What a beautiful gem! :)
<_lazarevsky_> thanks
<jhass> tiger_uppercut: windows still defaults to latin1 sadly
<_lazarevsky_> now I've got a question
<_lazarevsky_> how can I encrypt and decrypt a hash in ruby
<_lazarevsky_> the hash will have 2 attributes, an array of ids and a string
agent_white has quit [Remote host closed the connection]
<tiger_uppercut> riiight
<sugardrunk> I got this problem: trying to pass a set or array from ruby/sinatra to the js via AJAX. I am not able to get it as an array. It is always a string. Code:
<jhass> _lazarevsky_: hash is commonly used as term for a one way function, not encryption
bubbys has quit [Ping timeout: 272 seconds]
<jhass> sugardrunk: serialize from and to JSON
<sugardrunk> jhass: it is a must?
<_lazarevsky_> jhass: yes
mhib has joined #ruby
<jhass> sugardrunk: it's a shit load easier than anything else
<sugardrunk> I was able to pass @div_content = s1 just like that
UtkarshRay has quit [Ping timeout: 240 seconds]
<sugardrunk> but that is not AJAX
<_lazarevsky_> jhass: I would have done that. The question still remains how to encrypt and decrypt the data
<sugardrunk> s1 is a set I mean
<jhass> _lazarevsky_: I guess I'm missing a ton of context here
<jhass> just pointed out the term misuse ;)
<sugardrunk> so what is the diffrence?
<_lazarevsky_> so basically i wanna encrypt an array of ids
<_lazarevsky_> include it in an email
<_lazarevsky_> send that email to a user
<_lazarevsky_> and if my app gets a notification that the user has replied to that email with "OK"
<jhass> sugardrunk: with "AJAX" it goes over the network, @foo = bar just sets an instance variable that's available in your view, that's still all server side and the same (Ruby) process even
<_lazarevsky_> I wanna get the encrypted value, decrypt it, extract the projects with the given ids and update a field on each one of them
<_lazarevsky_> but I'd much rather they saw an obscure string than an array of ids in the email they receive, kapish? :)
<sugardrunk> jhass: that is what I thought... just started playin with ruby/sinatra few days ago
<sugardrunk> jhass: thanks
<jhass> _lazarevsky_: I'd suggest you store it in the DB (no encryption madness), generate a random token and add that to the mail and use it to fetch the data back from the DB
dhjondoh has quit [Remote host closed the connection]
<_lazarevsky_> jhass: that's really an overkill.. I really dont need to store this data in the DB :/
<jhass> it's way easier than getting an encryption scheme right
syath has joined #ruby
suchness has joined #ruby
UtkarshRay has joined #ruby
<jhass> (since you ask about encryption I'm assuming the data is sensitive and shouldn't be visible to the user or any bystander)
<_lazarevsky_> jhass: not really sensitive
<_lazarevsky_> I just thought i'd be better to see an obscured string than an array
dopamean_ has joined #ruby
<jhass> because?
<_lazarevsky_> because I wouldn't want them to realise what those numbers mean
<jhass> you can just serialize it to json and base64 encode it afterwards, url-safe and as opaque to average joe
<_lazarevsky_> our app is only used internally and can only be accessed from within our VPN
<jhass> so it's sensitive after all
<_lazarevsky_> umm.. not so much sensitive as irrelevant to them
<jhass> why aren't they allowed to "realize what the numbers mean" then?
<jhass> that's as much of a textbook definition of sensitive as it gets IMO
<_lazarevsky_> so are you proposing I create a new db table
<_lazarevsky_> which'll have 3 fields: id, token and ids (of type string)
<jhass> probably, but then I still no nothing about what you're doing
<jhass> er, *know
atmosx_laptop has joined #ruby
<_lazarevsky_> I explained it above
chipotle has quit [Quit: cheerio]
<jhass> "send a mail with a link that does something" is fairly meaningless tbh
<jhass> it's a how to solve a problem already, not a description of the problem
dhjondoh has joined #ruby
<_lazarevsky_> ok so yeah.. currently the managers receive an email containing projects which data they have not updated in at least a week
<_lazarevsky_> so they have to go through hundreds of projects weekly and click a button called "Confirm"
<_lazarevsky_> basically means "yes i've had a look at the data and I vouch that the data is still valid"
Hrorek has joined #ruby
jgt1 has joined #ruby
<_lazarevsky_> since this is rather cumbersome I offered to implement this feature whereby they could just reply to the said email and we'd update the projects "freshness" for them
dopamean_ has quit [Ping timeout: 272 seconds]
ldnunes has joined #ruby
<_lazarevsky_> there's a field on the project model called "manual_baseline" which gets updated whenever the users click the Confirm button
Rurik has quit [Ping timeout: 246 seconds]
<_lazarevsky_> so I was thinking of encrypting the ids of the projects, sending them through in the email somewhere below the footer
<_lazarevsky_> and then when my app gets a push notification that an email has been received, I parse the content, get the encrypted value, decrypt it and update all the projects with the given ids
<_lazarevsky_> that's why I don't think the data is sensitive per se
<jhass> so your problem is that you have no authentication
<_lazarevsky_> so the app can only be accessed from within our VPN
<_lazarevsky_> and our company uses Kerberos
webguynow has quit [Ping timeout: 272 seconds]
dhjondoh has quit [Client Quit]
<jhass> or rather want to construct authentication through prove of having received a mail I guess
<_lazarevsky_> plus, in the notification I receive, I can get the 'from" email address
<jhass> which can be faked easily
webguynow has joined #ruby
<jhass> but anyway, I'd go for the token route
<jhass> least headaches
<_lazarevsky_> token + new table?
<jhass> yeah
<_lazarevsky_> kk
elperdut has joined #ruby
<jhass> if you got postgres, it has a neat array datatype
<_lazarevsky_> for frugality sake, should I be nuking the records stored after I've received an email and updated the projects?
<jhass> yes
<jhass> and have a uniqueness constraint on the token of course
<jhass> something like SecureRandom.hex(64) should be good enough for the token
<_lazarevsky_> yes of course
<_lazarevsky_> ok great; thanks so much
<jhass> stick it into a loop checking for duplicates of course
<apeiros> SecureRandom.uuid
Igorshp has quit [Remote host closed the connection]
<jhass> also maybe add a cronjob or something and an expiration date to the tokens
<jhass> and the cronjob cleaning up expired ones
<apeiros> and he tells me I'm pedantic…
<certainty> heh
<_lazarevsky_> haha
<adaedra> Stop fighting, you two.
<jhass> apeiros: lazy managers fill up database tables in no time!
skullcrasher_ has joined #ruby
Igorshp has joined #ruby
skullcrasher has quit [Read error: Connection reset by peer]
dhjondoh has joined #ruby
<certainty> always pretend that there are no resource limits, yolo
<tagrudev> :D
<adaedra> limits are for the weak.
<adaedra> the cloud is infinite!
<_lazarevsky_> oi fellows
<_lazarevsky_> my company's hiring
<_lazarevsky_> :)
* certainty has just been hired
<_lazarevsky_> I would strongly encourage you to apply with us :)
<corpsicle> adaedra: try backing up the internet in the cloud! then we'll see if its infinite!
<_lazarevsky_> it's one of the top 5 IT giants
<apeiros> I'd probably perform the deletion in the same process which generates the new tokens
<adaedra> _lazarevsky_: is it the "guess where I work" game?
<jhass> Microsoft?
<_lazarevsky_> adaedra: I don't feel comfortable saying it here in main
<certainty> ok i take a guess.... google?
<_lazarevsky_> for whoever's interested, drop me a line
<_lazarevsky_> we've been told to aggressively scout for SDEs
<_lazarevsky_> :)
<adaedra> Difficult to be interested without at least a geographical zone.
<_lazarevsky_> Cape Town, South Africa
<_lazarevsky_> Seattle, USA
<certainty> amazon
<adaedra> So far away
<_lazarevsky_> adaedra: #yolo
chipotle has joined #ruby
<_lazarevsky_> certainty: ;)
jenrzzz has joined #ruby
moeabdol1 has joined #ruby
moeabdol1 has quit [Client Quit]
<certainty> a colleague of mine is currently in the process with you guys
da3mian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has quit [Ping timeout: 255 seconds]
David27 has joined #ruby
<_lazarevsky_> certainty: wish him luck and tell him to brush up on Data Structure more than anything else really
<certainty> _lazarevsky_: yeah he figured as such. currently sharpening his ninja skills in both datastructures and algorithms
<certainty> will do
<apeiros> what's a datastructure?
<_lazarevsky_> it's a piece of data which is also a structure.. duh
<certainty> my poor english way to say data structure maybe?
<bazbing80> *fry.jpg* can't tell if joking
<_lazarevsky_> alright dudes.. I'm off for now
<_lazarevsky_> thanks for your help again
<adaedra> who uses .jpg for this kind of images
<adaedra> girls don't deserve a good bye? :(
<certainty> dudes and dudettes
<bazbing80> adaedra: true, the format you want is Windows Imaging Format (tm) :P
<_lazarevsky_> depends.. is sevencatsea here?
jenrzzz has quit [Ping timeout: 240 seconds]
<adaedra> bazbing80: :p
<apeiros> _lazarevsky_: sevenseacat? usually. but doesn't seem to be online atm
<certainty> she's not the only women here though
dgutierrez1287 has joined #ruby
atmosx_laptop has quit [Quit: Lost in trance]
Pathfinder_ has joined #ruby
<apeiros> certainty: I wasn't actually criticizing your spelling btw.
Pathfinder has quit [Ping timeout: 265 seconds]
<certainty> apeiros: yeah i've figured from the follow up. Could've been the case though :)
stardiviner is now known as chris|Linux
<apeiros> but I guess it's difficult to pull off the "clueless noob" when you're somewhat known :)
webguynow has quit [Ping timeout: 250 seconds]
<certainty> yeah nobody believes you if you ask things like that
Andrey has joined #ruby
webguynow has joined #ruby
juanpablo_ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
nietzschette has joined #ruby
<apeiros> that said, I'm curious _lazarevsky_ - what level of knowledge do they expect? that you understand how a basic hash table might be built? or the differences between an AVL and a RB tree? or even more exotic?
<adaedra> You lost me at AVL :(
chipotle has quit [Quit: cheerio]
<certainty> i guess more like nifty distributed hashtables, tries, graphs
<certainty> all sorts of algos ... maybe things like paxos
juanpablo_ has quit [Ping timeout: 252 seconds]
<certainty> amazon as all big players operate much in the distributed system world so i'd expect things like these
lkba_ has quit [Read error: Connection reset by peer]
lkba has joined #ruby
meatherly has joined #ruby
<apeiros> hm, consensus algorithms. that's something I still should and want to spend some time on.
<certainty> yeah
blackmesa has joined #ruby
<certainty> leader election in a ring is what i want to try next
krisquigley has quit [Remote host closed the connection]
webguynow has quit [Ping timeout: 240 seconds]
but3k4 has joined #ruby
<apeiros> ah and there's the "byzantine failure" again. hello there old friend, have you come to meet again…
y0da has quit [Read error: Connection reset by peer]
webguynow has joined #ruby
<certainty> yepp
RobertBirnie has joined #ruby
gokulnath has joined #ruby
<adaedra> Hello darkness my old friend ♪
<certainty> doing the good old data structures doesn't hurt though. I've currently doing this as well.
<apeiros> heh adaedra, right, that's the tune which I thought to that :D
nettoweb has joined #ruby
gokulnath has quit [Client Quit]
<adaedra> apeiros: classical.
Pathfinder_ has quit [Ping timeout: 272 seconds]
Igorshp has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
webguynow has quit [Ping timeout: 240 seconds]
mpoussin has joined #ruby
<adaedra>
mpoussin has left #ruby [#ruby]
<certainty> whenever i hear byzantine failure i think of askemos
<apeiros> bon-apps adaedra
webguynow has joined #ruby
<apeiros> certainty: askemos?
<certainty> apeiros: http://askemos.org
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> oy, reading two lines and almost got a buzzword bingo :D
<certainty> xD
jdawgaz has joined #ruby
<apeiros> does sound intriguing, though
dionysus69 has joined #ruby
moeabdol has joined #ruby
nietzschette has quit [Quit: Nettalk6 - www.ntalk.de]
<certainty> see the byzantine askemos language layer
<apeiros> tbh, I'd love to be paid to break something like that :D
Pathfinder has joined #ruby
<certainty> :)
<certainty> tbh i don't fully understand what that is all about
<certainty> the creator is a smart guy. too brainy for me
andyrs has joined #ruby
<apeiros> the name though… ask emos
elperdut has joined #ruby
Hrorek has quit [Ping timeout: 265 seconds]
atomical has joined #ruby
<certainty> haha
<certainty> never saw it that way
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
Rurik has joined #ruby
Rurik has joined #ruby
ishahnaz has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
iateadonut has quit [Quit: Leaving.]
Jackneill has joined #ruby
<shevy> eskimos are the biggest emos
cantaberry has joined #ruby
khebbie has joined #ruby
webguynow has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
khebbie has quit [Ping timeout: 240 seconds]
sdfgsdfg has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
mrityunjay has quit [Quit: Leaving]
beauby has quit [Ping timeout: 246 seconds]
dhjondoh has joined #ruby
slackbotgz has joined #ruby
<shevy> they have it as part of their name intrinsically
tkuchiki has joined #ruby
chills42 has quit [Remote host closed the connection]
poli has joined #ruby
Andrey has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
<jhass> everybody got the joke, guess why nobody laughed
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
lxsameer has joined #ruby
redondo has joined #ruby
Melpaws has quit [Ping timeout: 240 seconds]
rikkipit_ has quit [Remote host closed the connection]
<CustosLimen> jhass, cos it was not funny ? and eskimo is a derogatory term ?
Rurik has quit [Read error: Connection reset by peer]
<jhass> CustosLimen: it was a rhetorical question
<jhass> but yes
Rurik has joined #ruby
<CustosLimen> \o/
victortyau has joined #ruby
<CustosLimen> got it right !
jenrzzz has joined #ruby
<jhass> not really, answering a rhetorical question disqualifies
<CustosLimen> aww ;(
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
k3asd` has joined #ruby
krisquigley has joined #ruby
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> jhass are you everybody
otisZart has joined #ruby
<shevy> ?jhass
<ruboto> jhass is anybody. They're a member of the op staff in #ruby, contributor to ruboto and ruby-community.com
davispuh has joined #ruby
<shevy> aha!
devoldmx has joined #ruby
webguynow has quit [Ping timeout: 244 seconds]
webguynow has joined #ruby
devoldmx has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 256 seconds]
vondruch has quit [Quit: Ex-Chat]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tesuji has quit [Ping timeout: 246 seconds]
allcentury has quit [Ping timeout: 260 seconds]
juanpablo_ has joined #ruby
pwnd_nfsw has joined #ruby
webguynow has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
suchness has quit [Remote host closed the connection]
tkuchiki has joined #ruby
xcesariox has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
gwendall has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 250 seconds]
juanpablo_ has quit [Ping timeout: 252 seconds]
<shevy> %[] is the very same as %() right?
<jhass> yes
<adaedra> Oh, you've extended the people descriptions? Nice.
<shevy> I wonder what the preferences are... whether people would use more [] over ()
blackmesa has joined #ruby
sankaber has joined #ruby
<adaedra> I tend to use () for %q
<chris2> i like [] for arrays
chouhoulis has joined #ruby
UtkarshRay has joined #ruby
<adaedra> [] for all % that gives arrays, () for others, usually
<adaedra> I've used || for some time, also
<chris2> and {} for %Q
<chris2> not sure why :)
<shevy> adaedra yeah, the || are probably more exotic
<chris2> probably because it nests better
<chris2> >> %Q|foo#{1|6}|
<ruboto> chris2 # => "foo7" (https://eval.in/434985)
<chris2> works too..
<adaedra> It works with a lot of things
<chris2> #{} parses recursively anyway
davispuh has quit [Remote host closed the connection]
<chris2> perl is qw() often
<adaedra> Using (), [], {} or <> has an advantage, though
<adaedra> >> %(hello (parenthesis))
<ruboto> adaedra # => "hello (parenthesis)" (https://eval.in/434988)
<chris2> vi % ?:)
<chris2> oh
<chris2> fun
suchness has joined #ruby
davispuh has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
webguynow has quit [Ping timeout: 255 seconds]
webguynow has joined #ruby
nietzschette has joined #ruby
drewvanstone has joined #ruby
da3mian has joined #ruby
slackbotgz has quit [Remote host closed the connection]
p0wn3d_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
JDiPierro has joined #ruby
dEPy has joined #ruby
chouhoulis has joined #ruby
blackjid has quit [Max SendQ exceeded]
<certainty> ?shevy
<ruboto> shevy is the hound of baskerville (see http://irclog.whitequark.org/ruby/2015-08-13#13699759)
blackjid has joined #ruby
<shevy> that really only was a response to the prior statement!
<certainty> xD
<adaedra> that's how legends are born
<jhass> shevy: you're the last allowed to complain about context free quotes
<adaedra> context is boring, out-of-context quotes are fun!
<adaedra> we still have no way of keeping quotes?
meatherly has quit []
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
gwendall has joined #ruby
<shevy> jhass oh yeah ... reminds me of your unicode quote :)
<jhass> adaedra: you didn't make any
allcentury has joined #ruby
<shevy> let me see if I have one from adaedra
mhib has quit [Remote host closed the connection]
chills42 has joined #ruby
<shevy> hmm nope...
JoshL has joined #ruby
<adaedra> jhass: well, I remember someone else was on it
<shevy> got one from sevenseacat though
sgambino has joined #ruby
<shevy> <Master44> why would you not include the last item btw?
<shevy> <sevenseacat> when you dont want the last item
<shevy> I got one with platzhirsch! remind me when he is back ...
gambl0re has quit [Ping timeout: 250 seconds]
elperdut has joined #ruby
<jhass> adaedra: well, I don't
<adaedra> that was long ago, though
<shevy> the internet forgets
elperdut has quit [Client Quit]
<adaedra> never!
danieli has joined #ruby
dEPy has quit [Remote host closed the connection]
nietzschette has quit [Quit: Nettalk6 - www.ntalk.de]
Rurik has quit [Ping timeout: 272 seconds]
Rurik has joined #ruby
Rurik has quit [Changing host]
Rurik has joined #ruby
redondo has quit [Ping timeout: 256 seconds]
arup_r has quit [Ping timeout: 252 seconds]
beauby has joined #ruby
freerobby has joined #ruby
<shevy> "s/?x/"x"/. Don't use tricky code, please."
<shevy> haha :D
dhjondoh has quit [Quit: dhjondoh]
tcopeland has quit [Quit: Leaving.]
<jhass> hah, gotta show that 0x0dea later
dhjondoh has joined #ruby
dhjondoh has quit [Client Quit]
nettoweb has joined #ruby
CustosLimen has quit [Ping timeout: 240 seconds]
Ropeney has joined #ruby
elperdut has joined #ruby
bmurt has joined #ruby
da3mian has quit [Ping timeout: 256 seconds]
webguynow has quit [Ping timeout: 255 seconds]
webguynow has joined #ruby
allomov has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 240 seconds]
malconis has joined #ruby
allomov_ has joined #ruby
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
JDiPierro has quit [Remote host closed the connection]
drewvanstone has quit [Ping timeout: 264 seconds]
devdazed has joined #ruby
platzhirsch has joined #ruby
Guest50 has joined #ruby
kobain has joined #ruby
Spami has joined #ruby
devdazed has quit [Client Quit]
andyrs has joined #ruby
Timba-as has joined #ruby
chthon has joined #ruby
webguynow has quit [Ping timeout: 260 seconds]
davispuh has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
webguynow has joined #ruby
davispuh has joined #ruby
Dopagod has joined #ruby
whippythellama has joined #ruby
karapetyan has joined #ruby
mary5030 has joined #ruby
webguynow has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
umgrosscol has joined #ruby
mary5030 has joined #ruby
elfuego has joined #ruby
webguynow has joined #ruby
cih_ has joined #ruby
cih has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 250 seconds]
JDiPierro has joined #ruby
nettoweb has quit [Ping timeout: 246 seconds]
voltalio has joined #ruby
michael_imac is now known as michael_mbp
rikkipitt has joined #ruby
nettoweb has joined #ruby
juanpablo_ has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
tagrudev has quit [Remote host closed the connection]
Pathfinder has quit [Ping timeout: 246 seconds]
bigbadbear has joined #ruby
nettoweb has quit [Max SendQ exceeded]
juanpablo_ has quit [Ping timeout: 255 seconds]
freezevee has quit [Remote host closed the connection]
dstarh has joined #ruby
tcopeland has joined #ruby
Junaos has quit [Quit: ZNC - http://znc.in]
nettoweb has joined #ruby
umgrosscol has quit [Remote host closed the connection]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat1 has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
zotherstupidguy has joined #ruby
* certainty somehow read that as 0xdeadletter
drptbl has quit [Ping timeout: 255 seconds]
chills42 has quit [Remote host closed the connection]
jtdowney has quit [Max SendQ exceeded]
arup_r has joined #ruby
nettoweb has quit [Ping timeout: 240 seconds]
jtdowney has joined #ruby
jtdowney has quit [Changing host]
jtdowney has joined #ruby
Kruppe has quit [Ping timeout: 240 seconds]
Junaos has joined #ruby
webguynow has quit [Ping timeout: 256 seconds]
webguynow has joined #ruby
lxsameer has quit [Quit: Leaving]
Kruppe has joined #ruby
khebbie has joined #ruby
allomov_ has quit [Remote host closed the connection]
CanTonic has joined #ruby
saddad has joined #ruby
nettoweb has joined #ruby
amystephen has joined #ruby
rude_dude has joined #ruby
chills42 has joined #ruby
<rude_dude> hey guys i saw a thing where you could pass a block to Hash#new, and implement a fixed size hash that automatically deletes keys, since they are ordered, but i havent been able to replicate the same thing
<rude_dude> i have a simple example that doesnt work: https://repl.it/BIoG/1
<rude_dude> the post i saw was talking about 1.9, but I dont see anything in the 2.0+ docs that indicate the behavior has changed
khebbie has quit [Remote host closed the connection]
rikkipitt has quit [Remote host closed the connection]
dman777_alter has joined #ruby
juanpablo_ has joined #ruby
<apeiros> rude_dude: behavior didn't change since 1.9
<apeiros> rude_dude: the block is invoked when you *access* a key which does not exist
<dman777_alter> in javascript, if I can assign a value pear if apple is empty with foo = apple || pear. does ruby have something similar?
<apeiros> so if you keep *setting* keys, it's never triggered
<yorickpeterse> apeiros beat me to it
<rude_dude> so i must just be writing it wrong then
<yorickpeterse> 2fast4me
skade has quit [Quit: Computer has gone to sleep.]
<rude_dude> oh
<yorickpeterse> dman777_alter: x = y || z
<yorickpeterse> >> x = 10 || 20
<ruboto> yorickpeterse # => 10 (https://eval.in/435041)
<yorickpeterse> >> x = nil || 20
hayricicek has quit [Ping timeout: 250 seconds]
<ruboto> yorickpeterse # => 20 (https://eval.in/435042)
<apeiros> >> apple = nil; pear = "pear"; foo = apple || pear; foo
<ruboto> apeiros # => "pear" (https://eval.in/435043)
<apeiros> dman777_alter: ^
<yorickpeterse> 2fast4u
<apeiros> or in other words:
<yorickpeterse> :P
<apeiros> ?try dman777_alter
<ruboto> dman777_alter, Why don't you try it and see for yourself?
karapetyan has quit [Remote host closed the connection]
uber_ is now known as uber
<yorickpeterse> that's really meta
<apeiros> yorickpeterse beat me to it
karapetyan has joined #ruby
<yorickpeterse> ᕕ(ᐛ)ᕗ
<yorickpeterse> platzhirsch: ᕕ(ᐛ)ᕗ ᕕ(ᐛ)ᕗ ᕕ(ᐛ)ᕗ
<yorickpeterse> :D
chills42 has quit [Remote host closed the connection]
<dman777_alter> oh wow.... thanks. I thought I would have to use a unless statement but wasn't sure. thanks
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> dman777_alter: the difference is that there are a lot more 'falsey' values in JS than in ruby... in ruby, only `nil` and `false` are falsey, while in JS falsey values also include things like 0 and ""
sanguisdex has quit [Quit: Leaving.]
<rude_dude> i fixed my code, thanks for the help
<rude_dude> i knew it was something simple like that i was missing
skade has joined #ruby
<workmad3> dman777_alter: so if by 'empty' you mean 'empty string', then you're gonna be disappointed... but if you just mean nil, then you're fine ;)
chills42 has joined #ruby
podman has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
<rude_dude> have you guys watched 'Nothing is Something' by Sandi Metz? Really great talk about falsey-ness in ruby and some smalltalk history
<dman777_alter> workmad3: yep...nil...interesting...thanks!
codecop has quit [Remote host closed the connection]
devdazed has joined #ruby
mary5030 has quit [Remote host closed the connection]
<dman777_alter> workmad3: hmm... if device is a string, would this work? device_id = device.try(:id) || device
karapetyan has quit [Ping timeout: 250 seconds]
sanguisdex has joined #ruby
mary5030 has joined #ruby
drptbl has joined #ruby
sanguisdex has left #ruby [#ruby]
TheHodge has quit [Quit: Connection closed for inactivity]
<yorickpeterse> If it's in Rails, yes
<yorickpeterse> but you might as well do `device_id = device.is_a?(WhateverDefinesTheIdMethod) ? device.id : device`
s2013 has joined #ruby
Ox0dea has joined #ruby
<Ox0dea> rude_dude: https://eval.in/435047
<Ox0dea> Burn after reading, of course.
<yorickpeterse> you monster
mary5030 has quit [Ping timeout: 250 seconds]
kies^ has joined #ruby
<rude_dude> thats more like it
<Ox0dea> No.
<rude_dude> yeah thats tight
<Ox0dea> Stop it.
solars has quit [Ping timeout: 252 seconds]
<rude_dude> have you ever used lua? __index is the coolest thing ever
<rude_dude> this is that
nanoz has joined #ruby
baroquebobcat has joined #ruby
polishdub has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
kgirthofer has joined #ruby
jordanm has quit [Remote host closed the connection]
poli has quit [Ping timeout: 240 seconds]
<shevy> platzhirsch -> <platzhirsch> I entered it and now gem installs the whole internet
radgeRayden has joined #ruby
jordanm has joined #ruby
tjohnson has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
<Ox0dea> ~ $ gem i `gem search`
<Ox0dea> bash: /home/dea/bin/ruby/gem: Argument list too long
St1gma has joined #ruby
drptbl has joined #ruby
poli has joined #ruby
baroquebobcat has joined #ruby
<Ox0dea> But I want all ze gems!
<shevy> <jhass> hah, gotta show that 0x0dea later
<shevy> Ox0dea check it out!!!
KervyN has joined #ruby
<Ox0dea> shevy: That is a very nice blank line.
<Ox0dea> Are there others like it?
ndrei has joined #ruby
<suchness> Ox0dea: Try line 12
<shevy> oh right there was a new addition
<rude_dude>
<rude_dude> just for you
Rurik has quit [Quit: Leaving]
<Ox0dea> Oh, I see.
<shevy> "s/?x/"x"/. Don't use tricky code, please."
alexherb1 has joined #ruby
<Ox0dea> Why do you suppose Motohiro-san didn't remove every single instance of ?c in the codebase?
<shevy> he gave up!
<Ox0dea> There's some wisdom in that.
<shevy> he also would have to change Shugo's recent code too!!!
Rutix has joined #ruby
Rutix has joined #ruby
tomaz_b has quit [Ping timeout: 260 seconds]
<Ox0dea> Imagine the nerve.
I has joined #ruby
<Ox0dea> The semantics of ?c were fleshed out in the documentation just a few days ago.
I is now known as Guest53780
elfuego has quit [Quit: elfuego]
<Ox0dea> >> ?\M-\C-x
<ruboto> Ox0dea # => "\x98" (https://eval.in/435071)
<platzhirsch> shevy: whaat?
alexherb1 is now known as alexherbo2
tacit7 has joined #ruby
alexherbo2 has quit [Client Quit]
<Ox0dea> It's not a dead construct, and I maintain that the visual distinction is a feature.
alexherbo2 has joined #ruby
Guest53780 has quit [Client Quit]
dopie has joined #ruby
s2013 has quit [Ping timeout: 246 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<rude_dude> ? is just character literals right?
Rurik has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Dopagod has quit [Ping timeout: 252 seconds]
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
<Ox0dea> rude_dude: That's okay to a first approximation, but Ruby doesn't actually have anything which might be called a character type (anymore).
<Ox0dea> Unless you're formatting with '%c'.
<rude_dude> so just shorthand for ''?
webguynow has quit [Ping timeout: 244 seconds]
<Ox0dea> >> ?x == 'x'
<ruboto> Ox0dea # => true (https://eval.in/435074)
<rude_dude> yeah, so whats the big deal?
<Ox0dea> >> ?\M-\C-x == "\M-\C-x"
<ruboto> Ox0dea # => true (https://eval.in/435075)
webguynow has joined #ruby
allomov has joined #ruby
havenwood has joined #ruby
<shevy> platzhirsch forgot that already? :)
<bougyman> hrm, hard to google this.
<rude_dude> im not sure i understand, so the ? is just '\', shouldnt the unquoted M make an error?
elfuego has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> platzhirsch was at 09.02.2014
<platzhirsch> oooh right :D
<platzhirsch> yeah I remember
<bougyman> so I have an app that runs a loop with a signal trap (on INT, QUIT, and TERM) and is also wrapped in an ensure block to write state data.
drewvanstone has joined #ruby
<bougyman> well, even when the thing dies because of a fatal error, it always exits with 0
<bougyman> instead of non-zero.
<bougyman> do I have access to the real exit code in the ensure block?
<bougyman> so I can exit <some-non-zero-thing> ?
<[k-> i think exit(code) works
<bougyman> yes, but what is 'code'
<[k-> &ri Kernel#exit
rippa has joined #ruby
<[k-> the exit code?
<bougyman> I know the #exit method
<eam> bougyman: there is no exit code until the process exits
saddad has quit [Ping timeout: 272 seconds]
<Ox0dea> [k-: bougyman doesn't want to just make up an exit code.
<eam> you don't have access to it; it doesn't exist
<bougyman> I don't know how to access the exit code from within the ensure block/finalizer.
<eam> the exit code is produced by exit()
<bougyman> I want the exit code it would have exited with if my ensure block wasn't there.
<Ox0dea> (Can't believe you had to spell it out that hard.)
umgrosscol has joined #ruby
<bougyman> I didn't know that having an ensure block changed an exit code, but it does.
<eam> bougyman: well, it changes the way in which the program exits
<bougyman> right.
rubie has joined #ruby
naftilos76 has quit [Ping timeout: 240 seconds]
<bougyman> I guess I just check to see if there was an exception inside the ensure block.
<eam> yeah, if you're trapping a signal for example TERM it's no longer fatal so your program wouldn't communicate "exited due to TERM" via $?
<Ox0dea> What would $! be in that case?
<eam> since it's totally legit to, for example, trap and respond to a thousand terms
andyrs has joined #ruby
dima_ has joined #ruby
<eam> $! is unrelated, yeah? $! is the perror() of errno
drewvanstone has quit [Ping timeout: 260 seconds]
neonalpine has joined #ruby
<eam> whereas $? is the value returned by exit()
karapetyan has joined #ruby
ishahnaz has quit []
<dman777_alter> workmad3: hmm... I have device_id = device.try(:id) || device which gives me NoMethodError (undefined method `id' for "184477":String)
<eam> bougyman: you can also re-send the signal you caught, and die that way
rude_dude has quit [Ping timeout: 246 seconds]
<eam> after clearing handlers
<bougyman> eam: yeah I already handled that one.
<bougyman> it's the exception case I need to handle now.
kies^ has quit [Ping timeout: 265 seconds]
<bougyman> eam: $! means there was an exception before the ensure block.
<Ox0dea> Isn't that what you need?
<bougyman> it's the only piece of info I have there I can choose on, no?
<Ox0dea> I believe so. :/
<bougyman> Ox0dea: yes, I think it is.
<eam> why not rescue?
<bougyman> ensure comes after rescue
<Ox0dea> There's nothing like #caller_locations for exceptions, if I'm not much mistaken.
<eam> yeah but if you're exiting due to an exception you'll be in the rescue
<bougyman> there's $@
<bougyman> location of last error
<bougyman> but it's only populated if $! is
<eam> if this is true, ruby has redefined $! and $@ in weird ways
<Ox0dea> That it has.
andyrs has quit [Client Quit]
<bougyman> $? only makes sense for subprocesses.
<bougyman> it has nothing to do with the current running process.
gwendall has quit [Remote host closed the connection]
ishahnaz has joined #ruby
<bougyman> trying with $!
blackjid has quit [Max SendQ exceeded]
<eam> I don't think $! is involved at all
<Ox0dea> bougyman: $@ should contain more than just the last error, but it's "stringly-typed" like #caller.
ishahnaz has quit [Remote host closed the connection]
drptbl has joined #ruby
blackjid has joined #ruby
<Ox0dea> That's why I mentioned there not being some #caller_locations analog.
<bougyman> Ox0dea: i'm finding out very soon
Guest83780 has joined #ruby
Guest83780 has left #ruby [#ruby]
CustosLimen has joined #ruby
rikkipitt has joined #ruby
tejasmanohar has joined #ruby
failshell has joined #ruby
aganov has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
<bougyman> i'm hoping calling #exit inside ensure doesn't cause a crazyloop
meatherly has joined #ruby
<sonOfRa> when using extconf.rb to create my makefile, how do I supply options like -Wall, -Werror etc to the Makefile?
<eam> $! appears to only be set in rescue, not in ensure
<bougyman> eam: ugh.
<eam> bougyman: but if you're capturing raise that's what you want anyway
andyrs has joined #ruby
<bougyman> eam: again, ensure runs after.
karapetyan has quit [Remote host closed the connection]
<eam> bougyman: it does, but why do you think that's an issue?
<bougyman> i'd have to set something in the rescue block that the ensure block could use.
<[k-> ?try
<ruboto> Why don't you try it and see for yourself?
<eam> why not just handle exceptions in rescue and any other exit paths in ensure?
<bougyman> i'm waiting on a code review approval to try, that's why.
<eam> surely the computer you are typing on is capable of running ruby
tkuchiki has joined #ruby
emilkarl has quit [Quit: emilkarl]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<Ox0dea> bougyman: Do you care about particular exit codes?
<[k-> the reraise didnt work though
<[k-> but ruby exited with 1
<Ox0dea> Ruby exits with 1 if $! isn't nil.
<shevy> that's a good exit code isn't it?
skade has quit [Quit: Computer has gone to sleep.]
<eam> they're all pretty good
f4cl3y has quit [Ping timeout: 252 seconds]
<shevy> come to think about it, something like ArgumentError would be more description than exit 42
<Ox0dea> shevy: You sound like a PowerShell user.
mbeasley has joined #ruby
chris|Linux has quit [Quit: Code, Sex, Just fucking world.]
mbeasley has quit [Client Quit]
<Ox0dea> "128 exit codes should be enough for anybody."
mbeasley has joined #ruby
<apeiros> bougyman: not read the full backlog, so maybe this was already covered, but: an ensure block alone does not change the exit code of an app
<eam> there's more than 128!
mbeasley has quit [Client Quit]
<Ox0dea> Nuh-uh.
mbeasley has joined #ruby
<shevy> Ox0dea ah the powershell had some nice ideas
<[k-> this works: https://eval.in/435095
AlexRussia has joined #ruby
<shevy> I still want to be able to pipe objects around
<eam> Ox0dea: yuh huh, 16 bit value
<eam> what you see in sh is 8 bits in $?
mbeasley has left #ruby [#ruby]
<bougyman> apeiros: no, but not having a re-raise or exit at the end of a rescue block does.
<Ox0dea> ~ $ `exit 257`; echo $?
<Ox0dea> 1
<bougyman> *solved*
<Ox0dea> eam: Oh, really?
<Ox0dea> How do I get at the higher bits?
kies^ has joined #ruby
<apeiros> bougyman: correct. if you rescue an exception as the last part of your app then exit code is 0
rushed has joined #ruby
startupality has quit [Quit: startupality]
yardenbar has quit [Ping timeout: 240 seconds]
<eam> Ox0dea: check out the datatypes used by wait(2)
MichaelSmith has joined #ruby
Pupp3tm4st3r has quit [Ping timeout: 250 seconds]
allcentury has quit [Quit: WeeChat 1.2]
webguynow has quit [Ping timeout: 240 seconds]
<eam> the program can set 8 bits, and other bits are set by the OS
stan has quit [Ping timeout: 265 seconds]
webguynow has joined #ruby
<apeiros> bougyman: if you need to have different code for rescue/non-rescue, there's also `else` in `begin/rescue/else/ensure/end`
<eam> I think in ruby $? has some special methods to access those
gwendall has joined #ruby
[Butch] has joined #ruby
davispuh has quit [Read error: Connection reset by peer]
elfuego has quit [Quit: elfuego]
<shevy> those $ are really hard to remember
zotherstupidguy has quit [Ping timeout: 255 seconds]
jmarrec has quit [Quit: Leaving]
<eam> I actually don't see a way to get the status from $? in ruby :(
alexUaN has quit [Quit: alexUaN]
davispuh has joined #ruby
zotherstupidguy has joined #ruby
<Ox0dea> eam: If the status is masked before being returned to the parent (as is indeed the case), the information is irretreivably lost, no?
<eam> that's unfortunate; the wrapper methods on $? are gonna be system-dependent and non-portable and are often going to lag upstream behavior (eg: I don't see WIFCONTINUED available)
<eam> Ox0dea: it's not masked before being returned to the parent, it's returned to the parent when the parent calls wait()
mary5030 has joined #ruby
<eam> by convention the parent masks it before populating $?, in a shell
mary5030 has quit [Remote host closed the connection]
<eam> (and maybe prints "killed" or somesuch to the tty)
sharpmachine has joined #ruby
mary5030 has joined #ruby
tcopeland has quit [Quit: Leaving.]
<eam> what ruby appears to do is read some of those higher bits and set methods like $?.termsig with them
<eam> but doesn't appear to actually make the real value available
<eam> it'd be nice if ruby had a $?.status or similar with the full int value returned by wait()
beast_ has quit [Remote host closed the connection]
Neverdie has joined #ruby
k3asd` has quit [Ping timeout: 240 seconds]
<eam> hm, actually it looks like to_i does that
krz has joined #ruby
Xiti has quit [Ping timeout: 246 seconds]
webguynow has quit [Ping timeout: 260 seconds]
<eam> or it's supposed to, buuuut
webguynow has joined #ruby
Musashi007 has joined #ruby
<eam> yeah to_i
paulcsmith has joined #ruby
* adaedra feels like a rubber duck
<Ox0dea> eam: Fun fact: they stick it on a hidden instance variable.
Pathfinder has joined #ruby
blackmesa has joined #ruby
pietr0 has joined #ruby
<eam> adaedra: isn't that what this channel is for?
webguynow has quit [Ping timeout: 240 seconds]
<shevy> Ox0dea really hates hidden things - be it RubyVM or hidden instance variables, it's just not his thing
webguynow has joined #ruby
<eam> it's only hidden if you wear the ruby colored glasses
<Ox0dea> shevy: Is it hatred that I enjoy finding them?
<adaedra> Ox0dea is very open.
<Ox0dea> eam: And not even then. :)
<shevy> Ox0dea ah I don't remember what you said back then but you were not too happy
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> I don't like that they're hidden, true enough, but that's no reason to dislike the things themselves.
Zai00 has quit [Quit: Zai00]
<[k-> and that's how eam works everybody!
keen__________22 has quit [Ping timeout: 244 seconds]
<eam> haha
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sixty4k has joined #ruby
<gregf_> that Hash with block has kinda fascinated me :)
<Ox0dea> eam: I would imagine these higher bits are used quite pervasively by the Linux kernel, but for what?
<shevy> oh dear
tacit7 has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<shevy> gregf_ don't give in to [k- and Ox0dea
<Ox0dea> gregf_: Autovivification, you say?
rcvalle has joined #ruby
drewvanstone has joined #ruby
<gregf_> yeah. thats default in Perl
<eam> Ox0dea: that's how stuff like $?.termsig is communicated. There's a set of macros for reading 'em
<eam> all the WIF*() stuff here: http://linux.die.net/man/2/wait
elfuego has joined #ruby
<moeabdol> in RSpec3 how to expect(method).to raise_error(NotImplementedError) ?
<yorickpeterse> moeabdol: expect { method }.to raise_error(...)
eminencehc has joined #ruby
<moeabdol> yorickpeterse: why do I have to surround the method call with {}
karapetyan has joined #ruby
Igorshp has quit [Remote host closed the connection]
<yorickpeterse> So it uses a block, which allows ".to raise_error" to work properly
<yorickpeterse> otherwise you call "method" before the raise_error bit
Igorshp has joined #ruby
platosha has quit [Read error: Connection reset by peer]
Igorshp has quit [Remote host closed the connection]
<yorickpeterse> which would result in the error being triggered before the expectation could be set
atomical has joined #ruby
<moeabdol> yorickpeterse: I see...thanks a lot :)
Pathfinder has quit [Ping timeout: 246 seconds]
platosha has joined #ruby
<Ox0dea> eam: These higher bits are metametadata.
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Or maybe metadatadata.
drewvanstone has quit [Ping timeout: 240 seconds]
Igorshp has joined #ruby
eminencehc has quit [Remote host closed the connection]
<eam> well, it's the exit status
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
<eam> 8 bits of which the exiting app is permitted to set to whatever it wishes
SCHAAP137 has quit [Remote host closed the connection]
<Ox0dea> You're right; it only looks like metadata about the exit status from the right (wrong?) vantage point.
<eam> :)
otisZart has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> metadata is just data
<[k-> so deep
<eam> kinda like how metaphysics by definition does not exist
<Ox0dea> I guess I should refrain from deconstructing that one.
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> It's true that "metaphysics" is certainly the wrong term for the things one might consider truly intangible.
<Ox0dea> But, like, where does the thought go when I forget what I was talking about?
rcvalle has quit [Quit: rcvalle]
<[k-> to java's gc
<[k-> java makes you write so much you forget about what you are actually doing!
<Ox0dea> What about my lap? Where does it go when I stand up?
<Ox0dea> Checkmate, monists!
dfockler_ has joined #ruby
tcopeland has joined #ruby
andyrs has quit [Quit: I'm leaving now, bye.]
ngscheurich has joined #ruby
unop has joined #ruby
davispuh has quit [Ping timeout: 255 seconds]
jgt1 has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
davispuh has joined #ruby
drewvanstone has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
Lucky__ has joined #ruby
webguynow has quit [Ping timeout: 246 seconds]
redondo has joined #ruby
gwendall has quit []
drewvanstone has quit [Ping timeout: 240 seconds]
webguynow has joined #ruby
sixty4k has quit [Quit: Textual IRC Client: www.textualapp.com]
banister has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 255 seconds]
skullcrasher_ has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
stamina has quit [Quit: WeeChat 1.3]
rushed has quit [Quit: rushed]
Rollabunna has quit [Remote host closed the connection]
miguelff has joined #ruby
towski_ has joined #ruby
r_baron has joined #ruby
moted has joined #ruby
jamesaxl|2 has quit [Ping timeout: 246 seconds]
CanTonic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
apt-get has joined #ruby
<eam> Ox0dea: are you suggesting that information is lost?
<eam> sounds very metaphysical
beast_ has joined #ruby
rcvalle has joined #ruby
The_Phoenix has joined #ruby
<Ox0dea> eam: All I know is that my lap springs into and out of existence when I respectively sit and stand.
cschneid_ has joined #ruby
<Ox0dea> The laws of physics just can't explain that.
aswen has quit [Ping timeout: 260 seconds]
<apeiros> Ox0dea: maybe you're a 5 dimensional being and your lap just crosses our 3 dimensions
karapetyan has joined #ruby
amclain has joined #ruby
eminencehc has quit [Remote host closed the connection]
banister has quit [Ping timeout: 250 seconds]
<Ox0dea> apeiros: But do you not observe the very same phenomenon?
<eam> what is "stand"
eminencehc has joined #ruby
mordocai has joined #ruby
<apeiros> eam: it's lying. but rotated by 90°
<Ox0dea> Yaw-wise.
<Ox0dea> (I think.)
tatsuya_o has quit [Remote host closed the connection]
The_Phoenix has quit [Client Quit]
<Ox0dea> Depends on your frame of reference, really.
<apeiros> Ox0dea: I expected the proper transformation matrix from you! I'm so disappointed now!
skade has joined #ruby
Igorshp has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 244 seconds]
renderful has joined #ruby
<[k-> such disappointment comes with a price!
<Ox0dea> eam: It'd be fine and perfectly congruent with entropic decay if laps just disappeared and never came back, but that we can just sit down and regenerate them seems pretty damned extropic to me.
allomov has quit [Remote host closed the connection]
bricker has joined #ruby
r_baron has quit [Ping timeout: 265 seconds]
wldcordeiro_ has quit [Ping timeout: 240 seconds]
<[k-> when we stand up, so much energy is produced that it destroys the lap
phutchins has quit [Read error: Connection reset by peer]
<[k-> when we sit down, the energy produced is used to regenerate the lap
Timba-as has quit [Quit: Be back later ...]
karapetyan has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
RobertBirnie has joined #ruby
renderful has quit [Ping timeout: 265 seconds]
phutchins has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<Ox0dea> [k-: The second law of thermodynamics would like a word with you.
elperdut has joined #ruby
<Ox0dea> Per the destruction of the lap in the first case, to clarify.
karapetyan has joined #ruby
f00dMonsta has quit [Ping timeout: 240 seconds]
naftilos76 has joined #ruby
wryfi has left #ruby [#ruby]
Jennifer22 has quit [Ping timeout: 250 seconds]
wryfi has joined #ruby
wryfi has left #ruby [#ruby]
darkf has quit [Quit: Leaving]
bruno- has joined #ruby
elfuego has left #ruby [#ruby]
<[k-> jokes on it! i dont understand what is the second law of thermodynamics is
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
casadei__ has joined #ruby
banister has joined #ruby
drewvanstone has joined #ruby
<shevy> the chaos law?
BTRE has joined #ruby
<[k-> your face is a law!
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
eminencehc has joined #ruby
towski_ has quit [Remote host closed the connection]
maletor has joined #ruby
<adaedra> - It has been *0* days since the last "your face" -
<Ox0dea> "We've always been at war with your face."
<Ox0dea> I should've said Yourfasia.
<[k-> your face is a war zone
bb010g has quit [Quit: Connection closed for inactivity]
<Ox0dea> * is a war zone.
p0wn3d_ has quit [Ping timeout: 265 seconds]
unop has quit [Ping timeout: 246 seconds]
<moeabdol> in rspec3 how to expect(double_object).to receive(message) when I call another object
drewvanstone has quit [Ping timeout: 240 seconds]
drewvanstone has joined #ruby
<Ox0dea> moeabdol: I think you nailed it.
f00dMonsta has joined #ruby
p0wn3d_ has joined #ruby
<moeabdol> Ox0dea: if i have to double that I want to make sure they are called in specific order when calling another object
<moeabdol> Ox0dea: two doubles* sorry
beauby has quit [Ping timeout: 246 seconds]
<Ox0dea> Order-dependent tests, you say?
renderful has joined #ruby
<moeabdol> Ox0dea: no..it's in the same test
kobain has quit [Ping timeout: 256 seconds]
<moeabdol> you see I have a composite object
<cantaberry> I'm using Chef which is an automation engine, built on Ruby. Starting the Ruby compiler takes a while on Linux and Windows. Is there any tricks to expediting startup?
<moeabdol> which holds component objects as array
<moeabdol> I want to execute them in order
<moeabdol> am trying to test if they are exectued in order
<Ox0dea> moeabdol: So you do have multiple expectations?
<moeabdol> in my composite object I have an execute method which loops the array of components and in turn runs execute command on components
<moeabdol> yes
marr has quit [Ping timeout: 250 seconds]
<moeabdol> expect(component1).to receive(:execute)
<moeabdol> expect(component2).to receive(:execute)
<moeabdol> in the same test
symm- has joined #ruby
<moeabdol> i have this
<moeabdol> it "should execute in order" do
<moeabdol> expect(component1).to receive(:execute)
<moeabdol> expect(component2).to receive(:execute)
<moeabdol> composite.execute
<moeabdol> end
<moeabdol> it runs successfully
<Ox0dea> moeabdol: Why not just `composite.each { |component| expect(component) ... }`?
<moeabdol> but i'm sure the test is not checking for order of execution
towski_ has joined #ruby
<moeabdol> Ox0dea: but then in this case i'm testing the components and not the composite...don't you think?
towski_ has quit [Remote host closed the connection]
Rurik has quit [Ping timeout: 272 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<Ox0dea> moeabdol: Yeah, fair enough. Why you want such stateful tests?!
leafybasil has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 255 seconds]
pragmatism has joined #ruby
<moeabdol> Ox0dea: i'm currently reading the "design patterns in ruby" book by russ olsen
<moeabdol> awesome book
tatsuya_o has joined #ruby
<moeabdol> however all code is production code
<moeabdol> and I want to test the examples
<moeabdol> right now I'm reading the command pattern chapter
<moeabdol> and I'm trying to follow the examples of building a simple installation wizard
<moeabdol> where the wizard is a composite_command holding an array of component_commands
benlieb has joined #ruby
<moeabdol> commands that will create/copy/delete files
c0m0 has quit [Ping timeout: 250 seconds]
<Sou|cutter> TLDR; chain .ordered on your receive()
jamesaxl has joined #ruby
<moeabdol> Ox0dea: You're the man :D....worked like a charm!
fedexo has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<Ox0dea> Sou|cutter: ^
karapetyan has quit [Remote host closed the connection]
<moeabdol> oh sorry Sou|cutter
<moeabdol> the thrill made me blind (O.O)
Pathfinder has joined #ruby
<moeabdol> thanks to all :)
cajone has left #ruby [#ruby]
tenderlove has joined #ruby
karapetyan has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
unop has joined #ruby
ruby410 has joined #ruby
shadoi has joined #ruby
ruby410 has left #ruby [#ruby]
<shevy> code code code
rubie has quit [Read error: Connection reset by peer]
failshell has quit [Remote host closed the connection]
dopamean_ has joined #ruby
mghaig has joined #ruby
jenrzzz has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
sdfgsdfg has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
<[k-> no code is best code
<adaedra> that's why you don't code [k- ?
bruno- has joined #ruby
<[k-> that's an excuse, yeah
webguynow has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
FernandoBasso has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
wldcordeiro has joined #ruby
cschneid has joined #ruby
krisquigley has quit [Remote host closed the connection]
Rurik has joined #ruby
mghaig has quit [Quit: Page closed]
kobain has joined #ruby
<slash_nick> [k-: no code has the least bugs
AccordLTN has joined #ruby
voltalio has joined #ruby
<[k-> delegate_to(shevy)
paulcsmith has joined #ruby
<shevy> undeniable :)
webguynow has quit [Ping timeout: 240 seconds]
marr has joined #ruby
startupality has joined #ruby
nateberkopec has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
youngbaks has joined #ruby
AccordsLTN has quit [Ping timeout: 272 seconds]
dopie has joined #ruby
krisquigley has joined #ruby
<shevy> I want to use ruby to create songs.
RobertBirnie has joined #ruby
<apeiros> shevy: afair there's a gem which lets you write music in code with ruby
rdark has quit [Quit: leaving]
<apeiros> forgot the name, but ruby-toolbox and/or google might help
tiger_uppercut has quit [Remote host closed the connection]
<shevy> yeah, I remember you also wrote alle meine entlein once
<adaedra>
Xiti has joined #ruby
<adaedra> so many train emoji tho
freerobby has quit [Quit: Leaving.]
ivanskie has joined #ruby
freerobby has joined #ruby
firstdayonthejob has joined #ruby
<banister> shevy puts 7.chr
tkuchiki has joined #ruby
<banister> >> puts 7.chr
<ruboto> banister # => ...check link for more (https://eval.in/435161)
towski_ has joined #ruby
miguelff has quit [Quit: miguelff]
Rurik has quit [Read error: Connection reset by peer]
Eiam_ has joined #ruby
Eiam_ has quit [Client Quit]
Rurik has joined #ruby
chouhoulis has quit [Remote host closed the connection]
tfsdafdsf has joined #ruby
beast has quit [Quit: Leaving]
tfsdafdsf has quit [Client Quit]
Musashi007 has joined #ruby
ruby228 has joined #ruby
Pathfinder has quit [Ping timeout: 240 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 246 seconds]
Timba-as has joined #ruby
ruby228 has quit [Client Quit]
sharpmachine has quit []
<ivanskie> hi
atomical has joined #ruby
AccordLTN has quit [Ping timeout: 240 seconds]
<ivanskie> so a while back I've installed ruby 2.2.3 with rbenv/rubybuild... it's not showing up in chruby for some reason.. (not end of the world.. but just curious.)
hanmac has quit [Ping timeout: 246 seconds]
KervyN has quit [Ping timeout: 252 seconds]
<Ox0dea> banister: cat /dev/bell
AccordLTN has joined #ruby
mghaig has joined #ruby
rakm has joined #ruby
bb010g has joined #ruby
KervyN has joined #ruby
atomical has quit [Client Quit]
mghaig has left #ruby [#ruby]
banjara has joined #ruby
shmilan has joined #ruby
mghaig has joined #ruby
xcesariox has joined #ruby
rikkipitt has quit [Remote host closed the connection]
<postmodern> ivanskie, you have to add ~/.rbenv/rubies/* to RUBIES
<ivanskie> hm
<postmodern> ivanskie, the README has some example code
<ivanskie> alright thanks!
HAL2328 has joined #ruby
postmodern has quit [Quit: Leaving]
lsmola has quit [Ping timeout: 240 seconds]
fedexo has quit [Ping timeout: 240 seconds]
The_Phoenix has quit [Quit: Leaving.]
wldcordeiro has quit [Quit: Leaving because reasons...]
wldcordeiro has joined #ruby
CustosLimen has quit [Ping timeout: 256 seconds]
valeri_ufo has quit [Ping timeout: 272 seconds]
mghaig has left #ruby [#ruby]
pragmatism has quit [Ping timeout: 240 seconds]
Rurik has quit [Read error: Connection reset by peer]
blaxter has quit [Quit: foo]
hanmac has joined #ruby
Rurik has joined #ruby
maletor has quit []
DoubleMalt has quit [Remote host closed the connection]
petricore has joined #ruby
BrazenBraden has joined #ruby
startupality has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
beast_ has quit [Ping timeout: 272 seconds]
krisquigley has quit [Remote host closed the connection]
failshell has joined #ruby
<ivanskie> i dont get it ... I went over my carrierwave config.. set my uploaders to file storage.. and just in case fixed the carrierwave initializer fog setings with proper env names... and set the env in figaro file.. aaand .env (with dotenv gem (yep only need 1 of them..)) but im trying to figure out why i still get
<ivanskie> service.rb:244:in `validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError)
benlieb has joined #ruby
<ivanskie> everytime im trying to run rake or something
chthon has quit [Quit: Ex-Chat]
<ivanskie> so frustrating
shmilan has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Ping timeout: 272 seconds]
_lazarevsky_ has quit [Ping timeout: 246 seconds]
<tubbo> ivanskie: i feel your pain, moving ruby managers is hard. there's no real good way to do it imho
<ivanskie> im not moving ruby managers tho
tkuchiki has joined #ruby
andyrs has joined #ruby
neonalpine has quit [Remote host closed the connection]
<ivanskie> i've even put fog initizliazer.. still didn't do enything
benlieb has quit [Quit: benlieb]
webguynow has quit [Ping timeout: 264 seconds]
drewvanstone has quit [Ping timeout: 264 seconds]
yardenbar has joined #ruby
staticat has joined #ruby
cndiv has joined #ruby
maletor has joined #ruby
suchness has quit [Remote host closed the connection]
drewvanstone has joined #ruby
webguynow has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
chills42 has quit [Remote host closed the connection]
ndrei has joined #ruby
skade has joined #ruby
gheegh has joined #ruby
linuxboytoo has joined #ruby
Timba-as has quit [Quit: Be back later ...]
maletor has quit []
_lexjm has joined #ruby
Asher has quit [Quit: Leaving.]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
Neverdie has quit [Quit: http://radiux.io/]
ChasedSpade has quit [Quit: No reason specified.]
marr has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
ChasedSpade has joined #ruby
platzhirsch has quit [Remote host closed the connection]
cih_ has quit [Remote host closed the connection]
da3mian has joined #ruby
Pathfinder has joined #ruby
maletor has joined #ruby
aswen has joined #ruby
chills42 has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
cih has joined #ruby
leafybasil has joined #ruby
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
Pathfinder has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
shinnya has joined #ruby
webguynow has quit [Ping timeout: 256 seconds]
leafybasil has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
webguynow has joined #ruby
nb_bez___ has joined #ruby
Neverdie has joined #ruby
JoshL has quit []
kidoz has joined #ruby
benlieb has joined #ruby
elperdut has joined #ruby
aswen has quit [Ping timeout: 260 seconds]
jgt1 has joined #ruby
aaeron has joined #ruby
aaeron has quit [Client Quit]
chipotle has joined #ruby
baweaver has joined #ruby
Rollabunna has joined #ruby
baweaver has quit [Remote host closed the connection]
blueOxigen has joined #ruby
baweaver has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
Aswebb_ has quit []
allomov has joined #ruby
baweaver has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Rollabunna has quit [Ping timeout: 256 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
Vile` has quit [Read error: Connection reset by peer]
Pupeno has quit [Remote host closed the connection]
Asher has joined #ruby
Vile` has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
aaeron has joined #ruby
grekko has joined #ruby
aaeron has quit [Client Quit]
aaeron has joined #ruby
diegoviola has joined #ruby
Rurik has joined #ruby
Timba-as has joined #ruby
dima_ has quit [Quit: This computer has gone to sleep]
dima_ has joined #ruby
justin_pdx has joined #ruby
Vile` has quit [Write error: Connection reset by peer]
dopamean_ has quit [Ping timeout: 272 seconds]
aaeron has quit [Client Quit]
banister has quit [Ping timeout: 240 seconds]
<shevy> more code creates more problems?
Vile` has joined #ruby
SenpaiSilver has joined #ruby
<tubbo> ivanskie: oh right, you just want it to show up in chruby
havenwood has joined #ruby
hashrocket has joined #ruby
<tubbo> ivanskie: did you make sure you set your $RUBIES var to the paths that rbenv installed ruby to?
<ivanskie> yarr. its alright. not a big deal. i'm gonna be doing a clean install of EL Cap.. soon so.
<ivanskie> nope
<tubbo> ivanskie: that's your problem :)
<tubbo> chruby reads from a $RUBIES variable that determines the paths in which it looks for Ruby version, you have to set that before loading chruby.
chipotle has quit [Quit: cheerio]
<ivanskie> tubbo I looked at the readme of chruby, and couldn't figure out where rubies variable was set.. so i just gave up in first few seconds. i don't have rvm so switching between ruby versions with rbenv or chruby works either way. i'll just have to do a better job next time i set up my dev env.
<diegoviola> do you guys know codility?
r0x0rZ has joined #ruby
baweaver has joined #ruby
<tubbo> ivanskie: even better, https://github.com/postmodern/chruby#rbenv
<ivanskie> oh thanks
<tubbo> ivanskie: you have to set that var *before* running the `source` lines
<tubbo> that's what the README might not tell you
freerobby has quit [Quit: Leaving.]
<ivanskie> tubbo thanks :)
<tubbo> np man
<tubbo> it threw me for a loop too when i first started using chruby :)
<havenwood> ivanskie: The RUBIES env var is automatically set to include any Rubies in the /opt/rubies/ or in ~/.rubies/ directories here: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh#L2-L6
<ivanskie> mine got installed in ~/.rbenv/versions/
<havenwood> ivanskie: You can add additional https://github.com/postmodern/chruby#rubies-1
<ivanskie> next time i'll just make sure ruby build puts it in /opt/rubies or something
<havenwood> That should really show: RUBIES+=(
da3mian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> I would have sword that had already been fixed in the docs. Maybe in another place.
<havenwood> sworn*
<havenwood> Ah, yup, another place. Fixing.
workmad3 has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
Vile` has quit [Read error: Connection reset by peer]
yardenbar has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
<cndiv> This is kind of a dumb question. I'm trying to run rspec in Atom (the editor I'm using) and the command is Ctrl+Alt+T - is that the same as ctrl+option-t? Or ctrl-shift-option-shift-T? What's the combo there?
tvw has joined #ruby
<cndiv> I'm sitting here trying options and making sure I'm not doing this terribly wrong. How long have I used a Mac? Forever and a combo like that is still odd to me.
Vile` has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
<shevy> macs are odds
aaeron has joined #ruby
HAL2328 has quit [Quit: Leaving]
<cndiv> There's of course also the option of I don't have it configured right.
moeabdol has joined #ruby
youngbaks has quit [Read error: Connection reset by peer]
<shevy> can you rebind key shortcuts in atom?
n008f4g_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
aaeron has quit [Client Quit]
aaeron has joined #ruby
marr has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cndiv> oy, I don't think I had it installed right. Readmes not always for n00bs.
voltalio has joined #ruby
<havenwood> tubbo: ivanskie: Fixed appending to RUBIES example: https://github.com/postmodern/chruby#rubies-1
paulcsmith has quit [Read error: Connection reset by peer]
<ivanskie> yeah where does this go "RUBIES+=("...
rattatmatt has joined #ruby
r0x0rZ has quit []
<ivanskie> in env?
paulcsmith has joined #ruby
<tubbo> havenwood: i had no idea you contributed to chruby :)
<tubbo> gj!
<havenwood> tubbo: \o/
webguynow has quit [Ping timeout: 256 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
<tubbo> cndiv: there's also the command key, you're forgetting about
aaeron1 has joined #ruby
webguynow has joined #ruby
<cndiv> tubbo: Actually now with it installed, it's working. I guess that's a key component to making things work - installing them :-)
<tubbo> cndiv: definitely. installation is the first step. :P
aaeron has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
devdazed has joined #ruby
<tubbo> to recovery
skade has quit [Quit: Computer has gone to sleep.]
* cndiv writes that down in sharpie on left forearm
UtkarshRay has quit [Quit: Leaving]
<cndiv> thanks everyone, better questions usually.
devdazed has quit [Client Quit]
<adaedra> What's a "better" question?
youngbaks has joined #ruby
eminencehc has joined #ruby
<cndiv> adaedra: One that isn't solved by me 10 seconds after asking it, haha
<adaedra> 10"? pft.
<adaedra> I answer my questions by hitting "Return".
devdazed has joined #ruby
<adaedra> :p
eminencehc has quit [Remote host closed the connection]
<cndiv> adaedra: I'm just thankful you all are here to help out. I'm learning this language! one way or another!
voltalio has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
jobewan has joined #ruby
sanguisdex has joined #ruby
niemcu has joined #ruby
ramfjord has joined #ruby
<adaedra> Good!
<cndiv> adaedra: It's actually my first programming language, way overdue in my mind.
Spami has joined #ruby
benlieb has quit [Quit: benlieb]
ixti has quit [Quit: WeeChat 1.2]
Burgestrand has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
<adaedra> Important is to learn well, at your own pace, and have fun.
blackmesa has quit [Ping timeout: 246 seconds]
<cndiv> adaedra: Yep, and I happen to have the time at the moment to spend a lot of time on it. I'm starting to brew fun things in my head to work on, and there are existing projects I know the people behind them, and would love to help out.
iateadonut has joined #ruby
<Ox0dea> >> e = Enumerator.new { |y| y << e.rewind }; e.next.next.next == e
<ruboto> Ox0dea # => true (https://eval.in/435192)
benlieb has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
ndrei has quit [Read error: Connection reset by peer]
<Ox0dea> What would you call such a data structure?
dopamean_ has joined #ruby
<Ox0dea> It's like if the Ouroboros were eating its head rather than its tail.
<adaedra> a Ox0deaism
<Papierkorb> RingEnumerator?
<Ox0dea> I guess that's about right.
<shevy> I would call it madness
<shevy> or revolver
webguynow has quit [Ping timeout: 250 seconds]
camilasan has quit [Ping timeout: 246 seconds]
<shevy> RevolvEnumerator !
voltalio has joined #ruby
webguynow has joined #ruby
krisquigley has joined #ruby
camilasan has joined #ruby
bears has joined #ruby
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
dima_ has quit [Quit: This computer has gone to sleep]
krisquigley has quit [Ping timeout: 246 seconds]
<karapetyan> rabbits
<karapetyan> o_O
slayerjain has joined #ruby
kirun has joined #ruby
aswen has joined #ruby
<adaedra> () ()
<adaedra> (º º)
cih has quit [Remote host closed the connection]
vdamewood has joined #ruby
<cndiv> BTW, does anyone use Atom for Ruby editing? I'm taking the pragmatic studio course, and they use Textmate, which seems to have some automatic things that I haven't found in Atom yet. I'm on the "testing" chapter, using Rspec, and it seems to have the ability to auto-fill an example from a 'require_relative' file.
<adaedra> Are you trying to start an editor war?
<cndiv> nope.
<cndiv> No vi vs emacs within me, or osx vs windows vs linux.
<cndiv> use what works for you, everyone.
rattatmatt has quit [Ping timeout: 250 seconds]
<bougyman> an editor has to be usable over a high-latency text-only shell, for me.
<cndiv> They also don't explain what key combo would find that example and pull it in, either. I'm just wondering if that exists in Atom, maybe someone could tell me the key combo.
<bougyman> so many of the popular options simply 'don't work' for my use case
hal_9000_ has joined #ruby
<bougyman> sup hal
<hal_9000_> heya
bears has quit [Remote host closed the connection]
andyrs has joined #ruby
eminencehc has joined #ruby
freerobby has joined #ruby
thang_ is now known as thang
Macaveli has joined #ruby
emilkarl has joined #ruby
cndiv has quit [Ping timeout: 250 seconds]
voltalio has quit [Ping timeout: 255 seconds]
cndiv has joined #ruby
kadoppe has quit [Ping timeout: 265 seconds]
kadoppe has joined #ruby
slayerjain has quit [Quit: Textual IRC Client: www.textualapp.com]
iateadonut has quit [Read error: Connection reset by peer]
cantaberry has quit [Read error: No route to host]
chipotle has joined #ruby
casadei__ has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
snockerton has joined #ruby
jenrzzz has joined #ruby
toretore has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Rurik has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
symm- has quit [Quit: Leaving...]
nettoweb has quit [Read error: Connection reset by peer]
SlenderMan has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
Senjai has quit [Ping timeout: 250 seconds]
Thr3d_ has quit [Ping timeout: 255 seconds]
sharkman has joined #ruby
<sharkman> what does <> mean in the context of a ruby regex?
<apeiros> context, sharkman.
rattatmatt has joined #ruby
<apeiros> it doesn't mean the same thing in all places.
<sharkman> hmm
<sharkman> (<away_team>\S+) vs (?<home_team>\S+)/.match(@row)
<apeiros> I bet you forgot a ? there
<apeiros> (?<NAME>…) is a named capturing group
<sharkman> yes probably apeiros i was editing, and undid some changes to copy it here for you guys
<sharkman> oh i see, so it is (?<NAME> pattern to match)
<sharkman> like that?
<sharkman> so the \S+ is what is being captured?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> (<blarp>…) otoh is a normal capturing group which matches something which starts with "<blarp>"
<apeiros> yes
<apeiros> and you can access it via match_data[:away_team]
<apeiros> (and/or :home_team)
jschoolcraft has joined #ruby
<sharkman> great thanks
hayricicek has joined #ruby
voltalio has joined #ruby
nettoweb has quit [Ping timeout: 240 seconds]
* apeiros hopes sharkman learnt 3 things here :-p
nettoweb has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
jschoolcraft has quit [Client Quit]
<Ox0dea> Good on you not to have gone for four.
<hal_9000_> 4th = cut/paste, don’t retype? :)
<apeiros> damn Ox0dea, now I want to know what no. 4 is…
<apeiros> hal_9000_: that was my no. 2
<sharkman> im scraping from bovada.l
<hal_9000_> ah
<sharkman> bovada.lv
justin_pdx has quit [Quit: justin_pdx]
<apeiros> no. 1 being "provide sensible contextual information"
<Ox0dea> apeiros: The magical local variables from Regep#=~.
<apeiros> Ox0dea: oh, well, I didn't say anything about those, so he couldn't learn that, no?
cndiv has quit [Ping timeout: 255 seconds]
<Ox0dea> apeiros: Yes, and kudos to you.
webguynow has quit [Ping timeout: 252 seconds]
<apeiros> and no. 3 of course being the answer to his question (that (?<k>) are named captures)
VeryBewitching has joined #ruby
baweaver has joined #ruby
valeri_ufo has joined #ruby
webguynow has joined #ruby
eminencehc has quit [Remote host closed the connection]
voltalio has quit [Ping timeout: 246 seconds]
<sharkman> okay guys ill be back in a bit thanks!!
lkba has joined #ruby
eminencehc has joined #ruby
voltalio has joined #ruby
baweaver has quit [Ping timeout: 246 seconds]
Senjai has joined #ruby
RickHull has joined #ruby
<tejasmanohar> if i want to write a ruby service that interacts w/ cocopoads, do i make it interact w/ the cocopoads program installed on a system (i.e. `pods` installed via `gem install pods` at the system-level), or is it possible to interact w/ the gem's ruby code / functions itself? https://github.com/CocoaPods/CocoaPods
atomical has joined #ruby
baweaver has joined #ruby
sharkman has quit [Ping timeout: 252 seconds]
Pathfinder has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
wookiehangover has quit [Ping timeout: 240 seconds]
miguelff has joined #ruby
ta has joined #ruby
linuxboy_ has joined #ruby
chipotle has joined #ruby
eminencehc has quit [Remote host closed the connection]
tuxero has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
eminencehc has joined #ruby
linuxboytoo has quit [Ping timeout: 240 seconds]
Contigi has joined #ruby
leksster has joined #ruby
<apeiros> Ox0dea: ah, I see
workmad3 has joined #ruby
aaeron1 has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
aaeron has joined #ruby
<ivanskie> wel thats funny..
<Ox0dea> apeiros: I think it's right near the top of Ruby's weirdest features.
<ivanskie> chruby found 2.2.3 on its own somehow.
<ivanskie> *shrug*
karapetyan has joined #ruby
<apeiros> Ox0dea: indeed.
diegoviola has quit [Quit: WeeChat 1.3]
<ivanskie> man i wish i had more real estate on my 13"..
<ivanskie> the only mac i have, and can't afford to upgrade to 15" or imac
<RickHull> tejasmanohar: almost certainly you want to use the API, not the CLI. i.e. your ruby program would probably start with: require 'cocoapods`
<tejasmanohar> the last part... i know :P
workmad3 has quit [Ping timeout: 240 seconds]
wookiehangover has joined #ruby
vdamewood has quit [Read error: Connection reset by peer]
linux_dr has joined #ruby
nettoweb has joined #ruby
tuxero has quit [Ping timeout: 264 seconds]
youngbaks has quit [Read error: Connection reset by peer]
sharkman has joined #ruby
voltalio has joined #ruby
Thr3d_ has joined #ruby
Pupeno has joined #ruby
David27_ has joined #ruby
tatsuya_o has joined #ruby
but3k4 has quit [Ping timeout: 246 seconds]
rikkipitt has joined #ruby
nietzschette has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
but3k4 has joined #ruby
opensource_ninja has joined #ruby
David27 has quit [Ping timeout: 246 seconds]
David27_ is now known as David27
hayricicek has quit [Ping timeout: 244 seconds]
_aeris_ has quit [Remote host closed the connection]
rattatmatt has quit [Quit: leaving]
_aeris_ has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
baweaver has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bungoman has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
rattatmatt has joined #ruby
voltalio has joined #ruby
emilkarl has quit [Quit: emilkarl]
ldnunes has quit [Ping timeout: 272 seconds]
dudedudeman has joined #ruby
cih has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
<linux_dr> I’m quite confused by some vagrant code I’m working on… Can someone please explain this: https://gist.github.com/loren-osborn/6c4d9593ec75abf53699 ???
<linux_dr> DOH!!! I just answered my own question…
<linux_dr> (does anyone have a paper dog I can borrow? lol)
ldnunes has joined #ruby
rakm has joined #ruby
Pupeno has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
Pupeno has joined #ruby
rikkipitt has quit [Read error: No route to host]
rikkipit_ has joined #ruby
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
miguelff has quit [Read error: Connection reset by peer]
apt-get has quit [Ping timeout: 250 seconds]
Melpaws has joined #ruby
<dudedudeman> shevy:
<dudedudeman> i miss thee
<shevy> what happened to you
<shevy> you seemed to be busy in reallife
<atmosx> hello
chills42 has quit [Remote host closed the connection]
but3k4 has quit [Read error: Connection reset by peer]
but3k4_ has joined #ruby
Pupeno has quit [Ping timeout: 255 seconds]
<shevy> hey atmosx
skade has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
platzhirsch has joined #ruby
Pupeno has joined #ruby
tuxero has joined #ruby
<platzhirsch> Working with a closed source library, hard life, hard life
<platzhirsch> yorickpeterse: I saw that provocation earlier, but I was in a catchup at that point, sorry mate
andyrs has joined #ruby
<shevy> getting rich while working, easy life, easy life
<platzhirsch> shevy: where did you dig out the gem install the internet :D
andyrs has quit [Client Quit]
Illusioneer has quit [Ping timeout: 256 seconds]
<shevy> platzhirsch dunno, I just kept track of it from back then in a local file, irc quotes
chipotle has quit [Read error: Connection reset by peer]
<platzhirsch> (y)
coont has joined #ruby
mjuszczak has quit []
<coont> does anyone know how khan academy programmed their programming tutorials?
Jardayn has joined #ruby
baweaver has quit [Remote host closed the connection]
Pathfinder has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
<dudedudeman> shevy: yeah, the new company looks like it blocks irc ports, so i'm having to jump on the webchat version :(
rikai_ has quit [Quit: No Ping reply in 180 seconds.]
<miah> i bet they dont block ssh ;)
<platzhirsch> tunnel your way out
chrishough has joined #ruby
<platzhirsch> how can you block IRC, bastards
rikai has joined #ruby
<miah> or 443/tcp. tunnel everything.
apt-get has joined #ruby
baweaver has joined #ruby
<shevy> Ox0dea you are better than sherlock holmes
<miah> a previous company thought they'd websense me. i setup a ssh tunnel and configured my browser to proxy through it.
<Ox0dea> ?shevy
<ruboto> shevy is the hound of baskerville (see http://irclog.whitequark.org/ruby/2015-08-13#13699759)
<miah> lol
<darix> openvpn tcp/443 ;)
<shevy> miah websense? is that like stalking?
<darix> the rescue for all the stupid coffeeshops, hotels
<miah> shevy: it is.
hotguitar has joined #ruby
ghostlines has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
phutchins has quit [Ping timeout: 252 seconds]
Pupeno has quit [Remote host closed the connection]
<darix> miah: is websense also trying to break ssl traffic?
<platzhirsch> miah: websense?
bruno- has quit [Ping timeout: 240 seconds]
<platzhirsch> track what you're browsing?
<miah> tracks, filters, etc
<miah> eg, your employer can declare reddit a time waster.
miguelff has joined #ruby
<miah> or stackoverflow etc
tubbo has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<shevy> :(
<miah> was really annoying. so i just subverted it. i worked in IT Security at the time too, my boss made us implement it. so i told him i would just subvert it until i didnt work there anymore
FernandoBasso has quit [Quit: Leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> haha
<miah> they had no right to tell me what was wrong on the internet, they were a giant ponzi scheme
<platzhirsch> is that even legal?
<miah> yes
<miah> your employer holds all the rights to you working for them
<miah> they can terminate you at any time for any reason
<platzhirsch> burn them
<miah> its also why i dont believe in '2 week notice'
<miah> but this is all a topic for #ruby-offtopic
<platzhirsch> See, don't obey the rules
<miah> =)
<miah> i just have a problem witih authorities, and im not one so.
<yorickpeterse> platzhirsch: ᕕ(ᐛ)ᕗ ᕕ(ᐛ)ᕗ ᕕ(ᐛ)ᕗ ᕕ(ᐛ)ᕗ
<platzhirsch> Can Oga parse that yorick?
karapetyan has quit [Remote host closed the connection]
skade has joined #ruby
<yorickpeterse> platzhirsch: yes
<platzhirsch> good
Pupeno has joined #ruby
baweaver has quit [Remote host closed the connection]
phutchins has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
startupality has quit [Quit: startupality]
Pathfinder has joined #ruby
<dfockler_> ᕕ(ᐛ)ᕗpᕕ(ᐛ)ᕗThis is the new HTMLᕕ(ᐛ)ᕗ/pᕕ(ᐛ)ᕗ
skade has quit [Client Quit]
Oka has joined #ruby
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
nanoz has quit [Read error: Connection reset by peer]
Laaw has joined #ruby
<Laaw> hey got an install question on centos, when I do "yum install ruby-devel" on an x64 system, it tries to download the ruby-libs package for i686
<Laaw> why's it doing that?
karapetyan has joined #ruby
<Laaw> "Processing Dependency: ruby-libs = 1.8.7.352-13.el6 for package: ruby-devel-1.8.7.352-13.el6.x86_64" => "Package ruby-libs.i686 0:1.8.7.352-13.el6 will be installed"
but3k4_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Laaw> the x86 ruby-libs is actually already on the system too, and doesn't seem to care
<dudedudeman> it should just be sudo yum install ruby?
<Laaw> yeah, but when I try 'gem install fab' I get 'mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h'
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
p0wn3d__ has joined #ruby
<dudedudeman> what's your path look like
syath has quit [Quit: WeeChat 1.2]
Jackneill has quit [Ping timeout: 240 seconds]
leat has joined #ruby
karapetyan has joined #ruby
p0wn3d_ has quit [Ping timeout: 272 seconds]
<jhass> Laaw: that's a #centos question, Ruby 1.8 is long out of official support anyway
Trynemjoel has joined #ruby
<Laaw> hm srry ty
MasterPiece has joined #ruby
Pupeno has quit [Remote host closed the connection]
cornerma1 has joined #ruby
workmad3 has joined #ruby
<havenwood> Laaw: Ruby 2.1 or 2.2 are the currently fully-supported Rubies if you're able to bump.
<Laaw> I'm stuck on whatever centos 6 has
krisquigley has joined #ruby
<havenwood> Laaw: Can you install say pkgsrc or you must use yum?
<darix> Laaw: even if upstream doesnt support ruby 1.8 anymore. your distro still does.
tubbo has joined #ruby
<Laaw> I asked in #centos
<darix> Laaw: can you do "rpm -q --requires ruby-devel" after installation?
cornerman has quit [Ping timeout: 250 seconds]
jaequery has joined #ruby
cornerma1 is now known as cornerman
<Laaw> well install fails because it tries to install the full i686 dedpendency tree
<darix> ah
dgutierrez1287 has quit [Remote host closed the connection]
<darix> Laaw: i would check if there is a bug for this already
bungoman has quit []
<darix> Laaw: plain ruby is installed already right?
<Laaw> yeah
aaeron has quit [Quit: Leaving.]
aaeron has joined #ruby
<Laaw> yeah this is all just me trying to get fab installed
<darix> and you have ruby-libs for x86_64 installed?
<havenwood> Laaw: If pkgsrc's Ruby 2.1 is an option: https://pkgsrc.joyent.com/install-on-linux/
<Laaw> darix: yeah
<Laaw> well fpm, not fab
<darix> Laaw: rpm -q ruby ruby-libs
<darix> Laaw: fpm?
<Laaw> f***king package manager, it's a gem
<darix> uhm
<Laaw> maker? maybe, it builds rpms
<darix> Laaw: learning proper rpm packaging isnt that hard
<Laaw> well yeah, this tool makes it a little easier imo
DLSteve has joined #ruby
<Laaw> we use it elsewhere with great success, but this build server I'm creating is having problems
baweaver has joined #ruby
<darix> Laaw: is the stuff you build opensource?
<Laaw> it is not
<miah> fpm gives you a nice little dsl for creating packages in various formats, from one definition you can get rpm, deb, etc
<darix> ah
krisquigley has quit [Ping timeout: 255 seconds]
<miah> so, yes its not hard to write a rpm spec, but i wouldnt wish that hell on anybody
<darix> i might be biased but ... really ... rpm packaging is really easy
<miah> (having worked for a rpm based linux distribution in the past, and built my own distro based on redhat 6.2)
<Laaw> I've never tried tbh
<darix> miah: the real "fun" starts with cross distro :p
<miah> i wouldnt call much of computing fun at the moment
<darix> Laaw: did you ever look into one?
michael_mbp has quit [Excess Flood]
<Laaw> I may have a few years ago
<Ox0dea> miah: Where did you find such a massive brush?
<Laaw> btw the output of that command was "ruby-1.8.7.374-4.el6_6.x86_64 ruby-libs-1.8.7.374-4.el6_6.x86_64"
umgrosscol has quit [Remote host closed the connection]
<miah> Ox0dea: i made it myself
<darix> miah: redhat 6.2 is like yesterday ;)
MasterPiece has quit [Ping timeout: 260 seconds]
<miah> not redhat enterprise linux
<miah> im talking about the time before enterprise linux
<darix> Laaw: here is the question ... you have ruby-1.8.7.374-4.el6_6.x86_64 ruby-libs-1.8.7.374-4.el6_6.x86_64
<darix> but you try to install ruby-devel-1.8.7.352-13.el6.x86_64
<Laaw> yes, are you wondering why? heh
<darix> should you install ruby-devel-1.8.7.374-4.el6_6.x86_64
<miah> 6.2 was released 3 April 2000
<Laaw> can I be that specific with yum?
<darix> which would actually match your installed ruby packages.
<darix> Laaw: yes
BrazenBraden has quit [Quit: Leaving]
<Laaw> hm ok
<Laaw> yep, and heres' the problem: "No package ruby-devel-1.8.7.374-4.el6_6.x86_64 available."
aaeron has quit [Quit: Leaving.]
<shevy> miah there is a ruby package-generator, #fpm ... I don't know it yet, I have high hopes for it to generate me some .deb and .rpm and I'd never have to deal with any problems related to these formats ever again
<darix> miah: and tbh ... rpm packaging improved a ton since 2000 ;)
ckinniburgh has joined #ruby
ckinniburgh has quit [Client Quit]
<Laaw> I'm using an internal repo, it's probably just missing this package
<miah> darix: oh sure, but still.
<darix> Laaw: yes. that is your real problem. :)
<miah> shevy: yes, we were talking about that =)
<Laaw> thanks for the help :D
michael_mbp has joined #ruby
bears has joined #ruby
baweaver has quit [Remote host closed the connection]
bears has quit [Client Quit]
<darix> also it was fun when i found some arch games which basically just unpack opensuse rpms to install some stuff ;)
<shevy> oh right
danieli has quit [Quit: *does an epic backflip into nowhere*]
arup_r has quit [Quit: Leaving]
<miah> rpm2cpio ftw
<darix> ugh
pawnbox has quit [Remote host closed the connection]
tvw has quit [Read error: No route to host]
EllisTAA has joined #ruby
Pupeno has joined #ruby
x-light has joined #ruby
agent_white has joined #ruby
Pupeno has quit [Remote host closed the connection]
leafybasil has joined #ruby
JDiPierro has quit [Remote host closed the connection]
nym has joined #ruby
bmurt has quit []
agent_white has left #ruby [#ruby]
redondo has quit [Ping timeout: 260 seconds]
redondo has joined #ruby
danieli has joined #ruby
rbennacer has quit [Remote host closed the connection]
siaw has quit [Quit: siaw]
rbennacer has joined #ruby
<shevy> ugh2rpm
skade has joined #ruby
<yorickpeterse> life would be easier if it wasn't for almost every distro using a different packaging format
moeabdol has quit [Read error: Connection reset by peer]
<yorickpeterse> https://xkcd.com/927/
<Ox0dea> Quick, everyone use Arch!
<darix> yorickpeterse: yeah we could blame those arch and gentoo people for not picking rpm or deb at least
krz has quit [Quit: WeeChat 1.2]
<darix> yorickpeterse: it aint that much work to build for fedora/redhat and opensuse/suse from one 1 spec
<pipework> Ox0dea: lolwhy?
<pipework> Slack or die?
solars has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
<Ox0dea> darix: Can't we blame everyone else for using packaging formats in the first place?
<darix> Ox0dea: no
davispuh has quit [Ping timeout: 264 seconds]
<yorickpeterse> darix: or for Ubuntu deciding to fork apt
bruno- has joined #ruby
<yorickpeterse> s/for/
<yorickpeterse> But yeah, Arch's PKGBUILD format is kinda.....wack
<Ox0dea> That's a paddl^W syntax error.
baweaver has joined #ruby
<Ox0dea> It's scarcely a format.
yfeldblum has joined #ruby
Yzguy has joined #ruby
<darix> you need packaging. whether you prefer building locally or take binary packages depends on your user base.
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meatherly has quit []
moeabdol has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
leafybasil has joined #ruby
bahar has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 264 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
rikkipit_ has quit [Remote host closed the connection]
bahar has joined #ruby
weemsledeux has joined #ruby
solocshaw has joined #ruby
f00dMonsta has quit [Ping timeout: 240 seconds]
solocshaw has quit [Remote host closed the connection]
_lexjm has quit [Quit: zzz...]
mary5030 has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
allomov has quit [Remote host closed the connection]
GnuYawk has quit [Ping timeout: 252 seconds]
but3k4 has joined #ruby
Burgestrand has quit []
bigbadbear has quit [Ping timeout: 246 seconds]
meatherly has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
nb_bez___ has quit [Quit: Connection closed for inactivity]
Spami has joined #ruby
Neverdie has joined #ruby
duncannz has joined #ruby
Yzguy has quit [Quit: Zzz...]
Pathfinder has quit [Read error: Connection reset by peer]
miguelff has quit [Quit: miguelff]
jgpawletko has quit [Quit: jgpawletko]
havenwood has quit [Ping timeout: 250 seconds]
minimalism has joined #ruby
krisquigley has joined #ruby
rakm has joined #ruby
linux_dr_ has joined #ruby
Pathfinder has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
linux_dr has quit [Ping timeout: 256 seconds]
linux_dr_ is now known as linux_dr
havenwood has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
f00dMonsta has joined #ruby
tkuchiki has joined #ruby
krisquigley has quit [Ping timeout: 252 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
rodfersou has quit [Quit: be back later]
tkuchiki has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
r_baron has joined #ruby
karapetyan has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
karapetyan has joined #ruby
Azure has quit [Quit: Oops.]
<linux_dr> Umm… did someone ping me in here?
skade has joined #ruby
bruno- has joined #ruby
FernandoBasso has joined #ruby
<iamayam> probably the spammer
joufflu has joined #ruby
cndiv has joined #ruby
<joufflu> sup!
aaeron has joined #ruby
ghostlines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 255 seconds]
Lumio has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lumio has left #ruby [#ruby]
spider-mario has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
<BraddPitt> with OpenSSL, is there a way to turn on more verbose debugging? The error doesn't help without context...
<jhass> BraddPitt: do you actually want more verbose logging for your HTTP lib or something?
solars has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
araujo has quit [Ping timeout: 244 seconds]
<BraddPitt> no for testing
<BraddPitt> like, I know it gives a vague error message for security reasons
<BraddPitt> but I need to circumvent that while testing and debugging
<jhass> uhm
<jhass> not my experience
Spami has quit [Quit: This computer has gone to sleep]
<BraddPitt> dman
<BraddPitt> damn*
<jhass> what's the error message and what do you expect instead?
paulcsmith has quit [Quit: Be back later ...]
<BraddPitt> I'm encrypted a value, storing it in S3, then retrieving that file and trying to decrypt the value
<BraddPitt> and I think something with the blocksize/byte order is messed uop
devdazed has quit [Quit: Computer has gone to sleep.]
<BraddPitt> >OpenSSL::Cipher::CipherError
jgpawletko has joined #ruby
<jhass> and you think there's some sort of verbose mode where it magically detects and tells you what is messed up and where you messed it up?
<BraddPitt> I'm asking if there is, jhass
victortyau has quit [Quit: Leaving]
<BraddPitt> which I think is a pretty innocent question
<jhass> it just tries to decrypt it and if that's not possible it tells you that
<jhass> no magic guessing the right things
<BraddPitt> jhass I'm not asking for magic
<BraddPitt> I'm asking if there is something that will tell me if its IV/block size/whatever related
<jhass> I highly doubt that
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<darix> BraddPitt: got some reproducer code extracted? does it also happen if you skip the S3 step?
<BraddPitt> does not happen if i skip S3
rikkipitt has joined #ruby
<BraddPitt> hence why I think S3 object adds something to the response
<BraddPitt> that I can't see in plaintext
<BraddPitt> what would be the best way to see if that is the case?
ngscheurich has quit [Ping timeout: 246 seconds]
banjara has quit [Quit: Leaving.]
Kallis has joined #ruby
Kallis has quit [Max SendQ exceeded]
jgpawletko has quit [Quit: jgpawletko]
Pupeno has joined #ruby
yfeldblu_ has joined #ruby
<BraddPitt> call #unpack and compare?
Rollabunna has joined #ruby
leksster has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
Ron__ has joined #ruby
DLSteve has quit [Ping timeout: 244 seconds]
decoponyo has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
jobewan has quit [Quit: Leaving]
dopie has quit [Quit: This computer has gone to sleep]
webhat has quit [Read error: Connection reset by peer]
c0ncealed has quit [Ping timeout: 250 seconds]
lotherk_ has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
decoponio has quit [Ping timeout: 244 seconds]
quarcu has quit [Ping timeout: 250 seconds]
dopie has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
webhat has joined #ruby
<BraddPitt> calling #bytes returns the exact same byte array
lotherk has joined #ruby
quarcu has joined #ruby
c0ncealed has joined #ruby
charliesome has joined #ruby
snath has joined #ruby
snath has left #ruby [#ruby]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aswen has quit [Ping timeout: 260 seconds]
rikkipitt has quit [Remote host closed the connection]
saddad has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
Ron__ has quit [Ping timeout: 246 seconds]
dudedudeman has quit [Ping timeout: 246 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
slackbotgz has joined #ruby
opensource_ninja has quit [Read error: Connection reset by peer]
gheegh has quit [Ping timeout: 252 seconds]
SenpaiSilver_ has joined #ruby
postmodern has joined #ruby
kies^ has quit [Ping timeout: 244 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
northfurr has joined #ruby
<dpp> can optparse handle selecting the same siwtch twice?
<dpp> say, -v -v for being extra verbose?
<dpp> or even -vv?
SenpaiSilver has quit [Ping timeout: 255 seconds]
<dpp> would would I handle that as an optional param for more V?
ta has joined #ruby
Voker57 has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 260 seconds]
northfurr has quit [Client Quit]
dman777_alter has quit [Quit: Lost terminal]
cih has quit [Remote host closed the connection]
<apeiros> ?try dpp
<ruboto> dpp, Why don't you try it and see for yourself?
tobiasvl has quit [Ping timeout: 252 seconds]
northfurr has joined #ruby
howdoico1 has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
tatsuya_o has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
neonalpine has joined #ruby
opensource_ninja has joined #ruby
Guest has joined #ruby
tatsuya_o has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
phutchins has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
blueOxigen has quit [Ping timeout: 250 seconds]
p0wn3d__ has quit [Ping timeout: 244 seconds]
Guest has quit [Client Quit]
pauly_oc has joined #ruby
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rikkipitt has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
pontiki has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
ramfjord has joined #ruby
banister has joined #ruby
[k- has quit [Quit: -a- IRC for Android 2.1.23]
benlieb has quit [Quit: benlieb]
apt-get has quit [Quit: Quit]
<sharkman> hey guys i scraping
<BraddPitt> is the only difference between << and + with strings that + returns a new object and << modifies the original?
dfockler_ has quit [Remote host closed the connection]
chridal has quit [Ping timeout: 246 seconds]
<jhass> yes, that's quite a significant difference though ;)
sankaber has joined #ruby
<BraddPitt> right
<BraddPitt> hm
<BraddPitt> god damn this crypto/s3 problem
coont has quit [Ping timeout: 246 seconds]
solocshaw1 has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
Pathfinder has quit [Ping timeout: 252 seconds]
GnuYawk has quit [Quit: WeeChat 1.0]
unop has quit [Ping timeout: 240 seconds]
slackbotgz has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
Seich has quit [Ping timeout: 246 seconds]
poli_ has joined #ruby
chridal has joined #ruby
pontiki has quit [Quit: meh]
Seich has joined #ruby
rikkipitt has quit [Remote host closed the connection]
poli has quit [Ping timeout: 246 seconds]
dfockler_ has joined #ruby
bluOxigen has joined #ruby
blackmesa has quit [Quit: WeeChat 1.3]
ta has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
grekko has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mordocai has quit [Remote host closed the connection]
tuxero has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
<dpp> apeiros: because sometimes it doesn't seem obvious until after you've asked. And regardless there might have been a more clever but less obvious option!
<apeiros> dpp: your question was literally "can X do Y". and all those questions can be answered by "just try and see". and then, when you get stuck in the process, you come and ask.
dgutierrez1287 has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
<dpp> indeed. again, litterally, the idea of what try is the result of the question, rather than the other way around.
JDiPierro has joined #ruby
<apeiros> then ask that
<dpp> It does, of course, actaully work....
<dpp> at least well 'nuff.
gambl0re has joined #ruby
cschneid_ has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
_djbkd has joined #ruby
hal_9000_ has quit [Quit: hal_9000_]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Azure has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
renderful has quit []
mjuszczak has quit []
dfockler_ has quit [Remote host closed the connection]
neonalpine has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
EllisTAA has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
benlieb has quit [Quit: benlieb]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
paulcsmith has joined #ruby
juanpablo_ has quit [Quit: (null)]
aaeron has quit [Quit: Leaving.]
meatherly has quit []
<sharkman> im scraper
ta has joined #ruby
aaeron has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
cih has joined #ruby
cih has quit [Remote host closed the connection]
ta has quit [Ping timeout: 252 seconds]
momomomomo has quit [Quit: momomomomo]
sankaber has joined #ruby
stardiviner has joined #ruby
minimalism has quit [Quit: leaving]
ta has joined #ruby
baweaver has quit [Remote host closed the connection]
mjuszczak has joined #ruby
startupality has joined #ruby
rcvalle has quit [Quit: rcvalle]
pwnd_nfsw has quit [Ping timeout: 246 seconds]
tatsuya_o has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
juanpablo_ has joined #ruby
decoponyo has quit [Quit: Leaving...]
tkuchiki has joined #ruby
beauby has joined #ruby
wldcordeiro has quit [Ping timeout: 250 seconds]
snockerton has quit [Quit: Leaving.]
Melpaws has quit [Quit: Leaving.]
tatsuya_o has quit [Ping timeout: 240 seconds]
juanpablo_ has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
atomical has joined #ruby
<BraddPitt> heh, joined the gitter channel for aws-sdk and baweaver is in there
minimalism has joined #ruby
Ropeney has joined #ruby
startupality has quit [Quit: startupality]
JDiPierro has quit [Remote host closed the connection]
Alayde has quit [Quit: WeeChat 1.1.1]
dopie has joined #ruby
JDiPierro has joined #ruby
eminencehc has quit [Remote host closed the connection]
veduardo has joined #ruby
staticat has quit [Quit: Leaving]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
eminencehc has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
<sharkman> Total Team (Runs|Points) (.+)$/
<sharkman> here is a regex
<sharkman> how would i maintain the same function, but make it so regex.captures.first returns the (.+) text
Jardayn has quit [Quit: Leaving]
urbanmonk has joined #ruby
<sharkman> in other words, the parenthesis around (Runs|Points) is just to signify that i want to match either the word "Runs" or the word "Points" not because i need to capture that text
mordocai has joined #ruby
<sharkman> hello?
baweaver has joined #ruby
jgt1 has quit [Ping timeout: 250 seconds]
x-light has quit [Ping timeout: 265 seconds]