<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]
<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)
<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
<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
<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
<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.
<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…]
<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]/)
<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>
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
<_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?
<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)
<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
<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
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
<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
<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
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
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>
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.
<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.
<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
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]
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]
<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.
<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]
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