havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<colstrom_> @Ox0dea Why would you... ew.
zenguy_pc has joined #ruby
<Ox0dea> colstrom_: I didn't make it valid.
<Ox0dea> Used sanely, destructuring is pretty nifty; I just like pushing things.
<colstrom_> Oh, sure. Destructuring is a very reasonable concept.
devoldmx has quit [Ping timeout: 268 seconds]
<colstrom_> But... the idea is generally to IMPROVE clarity.
<colstrom_> Still, learned something (horrible and) new.
rbowlby has joined #ruby
<crime> mmm thats like lispy and perly
<crime> horrid yet functional
torpig has joined #ruby
<colstrom_> Perly Lisp?
<crime> im glad thats not a thing
<colstrom_> All of the power, none of the elegance?
<Ox0dea> crime: You're... in #ruby?
<danneu> meanwhile, in langs without destructuring, you feel like a dingus with your intermediate value you have to manually assign apart
Alina-malina has quit [Ping timeout: 250 seconds]
<crime> Ox0dea: ? was i getting too far off topic?
<Ox0dea> crime: No, I meant to indicate that "Perl-y Lisp" is a decent first brush at succinctly describing Ruby.
dfinninger has joined #ruby
workmad3 has joined #ruby
<crime> id say its more of a perly lisp, and id also argue that theres a difference, because ruby has a consistent model of computation and perl less so
<crime> a lispy perl is just higher order perl, which theres plenty of crap on cpan for
h99h9h88 has joined #ruby
<crime> but a perly lisp has convenient variables already set, and a way to interface with the code that is consistent all the way down, which ruby has
<Ox0dea> Exactly...
<crime> oh
<colstrom_> Ox0dea Perl-y Lisp with a health dose of Smalltalk?
dfinninger has quit [Remote host closed the connection]
<crime> misread you
<Ox0dea> colstrom_: Just so.
<crime> s/all that/yep
h99h9h88 has quit [Remote host closed the connection]
AnoHito has quit [Ping timeout: 250 seconds]
craysiii has quit [Remote host closed the connection]
<crime> smalltalk died an unjust death
<crime> cog vm tho, that cog vm
<crime> i was real excited about Cardinal as well, before it died
ss_much has joined #ruby
<colstrom_> And thus we have my journey FROM Perl and Smalltalk, TO Ruby. I picked up Lisp later, but use it alongside Ruby.
XxionxX has left #ruby [#ruby]
<crime> my first language was lisp, then perl, lua, and now ruby
<crime> emacs killed lisp for me
<crime> after a while anyways
<colstrom_> @crime Smalltalk isn't dead! It's... as alive as it ever really was. Probably moreso now, if you count people using it. Pharo and such!
K1MOS has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
<colstrom_> So much conceptual beauty.
<colstrom_> Wrapped in a development model that just... never caught on.
<colstrom_> And we're all poorer for it.
pu22l3r has quit [Remote host closed the connection]
<crime> i tried a while back to get pharo to compile and never could
emptyflask has joined #ruby
<colstrom_> One day... maybe one day, I'll bring those things I loved from Smalltalk's tooling to Ruby.
<crime> i got squeak running after that and quickly realized I don't know the first thing about smalltalk programming
workmad3 has quit [Ping timeout: 240 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<crime> I really like reading about it, and you know what else I've found, there's another language that has a really interesting model that is worth trying to learn from
<crime> tcl
<crime> really fascinating architecture, clean code most of the time unless you're reading tk junk
<crime> documentation is p terrible, though
Alina-malina has joined #ruby
Limix has quit [Quit: Limix]
Rodya_ has joined #ruby
step1step2 has quit [Read error: Connection reset by peer]
jwaldrip has quit [Quit: Be back later ...]
eminencehc has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
Wompy has joined #ruby
colstrom_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MyMind has joined #ruby
baweaver has quit [Remote host closed the connection]
Wompy has quit [Client Quit]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
_blizzy_ has joined #ruby
_blizzy_ has quit [Max SendQ exceeded]
p0wn3d has quit [Ping timeout: 250 seconds]
_blizzy_ has joined #ruby
_blizzy_ has quit [Max SendQ exceeded]
millerti has joined #ruby
Sembei has quit [Ping timeout: 255 seconds]
_blizzy_ has joined #ruby
_blizzy_ has quit [Max SendQ exceeded]
eminencehc has quit [Ping timeout: 240 seconds]
_blizzy_ has joined #ruby
_blizzy_ has quit [Max SendQ exceeded]
_blizzy_ has joined #ruby
_blizzy_ has quit [Max SendQ exceeded]
elaptics` is now known as elaptics`away
_blizzy_ has joined #ruby
jgt1 has joined #ruby
felixrsmith has quit [Quit: Konversation terminated!]
<zenspider> !ban _blizzy_ !T 1d please fix your connection
_blizzy_ was banned on #ruby by ChanServ [_blizzy_!*@*]
_blizzy_ was kicked from #ruby by ChanServ [Banned: please fix your connection]
jessemcgilallen has quit [Quit: jessemcgilallen]
eminencehc has joined #ruby
alcipir has joined #ruby
<zenspider> !unban _blizzy_
solocshaw1 has joined #ruby
jgt has quit [Ping timeout: 272 seconds]
Pupeno has quit [Remote host closed the connection]
<zenspider> damnit ruboto
<crime> so I made my 'clever' solution: https://gist.github.com/anonymous/d0712fc26e4dee48280d
<zenspider> !ban _blizzy_ !T 0d argh
<ruboto> zenspider, could not find a matching user for "_blizzy_"
<zenspider> ruboto: FUCK YOU
cpruitt has quit [Quit: cpruitt]
<crime> ?rude
<ruboto> I don't know anything about rude
<crime> yes you do
<zenspider> you can't be rude to a robot
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw1 is now known as solocshaw
symm- has quit [Quit: Leaving...]
<shevy> so this is why skynet wanted to get rid of mankind
<crime> he was rude to you
<crime> ?the skynet master plan
<ruboto> skynet, I don't know anything about the
<crime> mhm just what I thought
<crime> tough guy
northfurr has quit [Quit: northfurr]
djbkd has quit [Quit: My people need me...]
Rickmasta has joined #ruby
<crime> you know what if skynet was just a HA thing?
northfurr has joined #ruby
<crime> if they had written that in erlang, maybe that wouldntve happened
<crime> just let it crash, right?
<Ox0dea> crime: Your solution doesn't work for 101.
<Ox0dea> And, of course, infinitely many other inputs.
_blizzy_ has joined #ruby
_blizzy_ was banned on #ruby by ChanServ [_blizzy_!*@*]
_blizzy_ was kicked from #ruby by ChanServ [Banned: please fix your connection]
<zenspider> damnit
<crime> 101 isnt possible
<zenspider> I hate you ruboto
<Ox0dea> crime: The next largest number after 101 that uses the same digits is 110.
<crime> oh
<crime> thats problematic
<Ox0dea> No, you.
<crime> edge case, probably no big deal whatevs
<Ox0dea> crime: It also doesn't work for 202.
<crime> yes it does though
<crime> i just tried it
Dairenn has quit []
<millerti> I wish there were a Ruby equivalent to Sympy.
joufflu has joined #ruby
<crime> thats weird, I got it, and how it inf loops when I try it again
<crime> i did get the answer though
wildlander has joined #ruby
<Ox0dea> crime: Your "solution" is non-deterministic by dint of its reliance on #shuffle.
<crime> right
grambo has joined #ruby
<crime> but i let it run for at least ten seconds
<crime> surely that would be enough
<Ox0dea> Surely.
<crime> i didnt mean to call you that
dfockler has quit [Ping timeout: 244 seconds]
<crime> so tried it with jruby, and got back the answer instantly, tried it again and it hangs forever
<Ox0dea> That's non-determinism for ya.
<crime> tried it again with ruby, got answer instantly, then never
<crime> well then in a manner of speaking, it might not be possible to reproduce bug reports
<crime> so i'm good
<crime> this is someone else's problem now
<Ox0dea> The universe's.
<zenspider> crime: think about the 'never' part... why is that?
<crime> this may crash codewars one sec
<crime> oh they have a time limit that sucks
<crime> zenspider: idk, because the first time you run it, it works instantly
<crime> thats the weird thing about it
<crime> oh something weird is happening
<crime> i .tap'd my update variable and its dropping a digit somewhere and just saying 11 over and over when I give it 101
<crime> but only the second time i run it
<Ox0dea> >> '011'.to_i # crime
bruno- has joined #ruby
<ruboto> Ox0dea # => 11 (https://eval.in/457450)
<crime> omg
<crime> that would've taken my dumb ass ages to figure out
bruno- is now known as Guest80553
<Ox0dea> >> '%d' % '011' # How about this one?
<ruboto> Ox0dea # => "9" (https://eval.in/457451)
ekinmur has joined #ruby
<crime> so if 0 is the first digit, it cant be a thing, got it
<crime> i can fix this and bogo on
EllisTAA has quit [Quit: EllisTAA]
pu22l3r has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
vigintas has quit [Ping timeout: 272 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spider-mario has quit [Remote host closed the connection]
Guest80553 has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapin has joined #ruby
tomchapin has quit [Client Quit]
step1step2 has joined #ruby
cpruitt has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
cpruitt has quit [Client Quit]
tomchapin has joined #ruby
agent_white has joined #ruby
atom3 has quit [Read error: Connection reset by peer]
<crime> mk this is not working
<zenspider> crime: not finishing == bad logic. what logic in your code might not finish?
<zenspider> also, your code formatting ... no. just no.
skinux_ has quit [Ping timeout: 265 seconds]
<crime> yeah i know
<crime> im working a better version now
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<crime> dont worry
<Ox0dea> crime: Is that Lua's influence, then?
<crime> but it keeps shuffling to 011 and dropping the 0 im just trying to figure out how to call .to_s on it before it drops that 0
<crime> not really thats just ugly code i wrote because i suck
<Ox0dea> crime: I'm referring to things like `then` and `until` at the front of the line.
<crime> doing this particular thing in ruby would be slightly more obnoxious
<crime> yes
<Ox0dea> crime: You should consider a deterministic approach.
<crime> i will after the bogo-approach is actually working
shinnya has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
howdoicomputer has quit [Ping timeout: 272 seconds]
atom3 has joined #ruby
eminencehc has quit [Remote host closed the connection]
eminencehc has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
pathrocle has quit []
nighthwk1 has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
<crime> this works and will work until someone figures out what edge case it doesnt handle properly: https://gist.github.com/anonymous/debb99e693099afb548d
<crime> it doesnt do the NEXT biggest
<crime> ugh
jwaldrip has joined #ruby
gregoriokusows-1 has quit [Quit: gregoriokusows-1]
baweaver has joined #ruby
eminencehc has quit [Remote host closed the connection]
shpoont has quit [Quit: Textual IRC Client: www.textualapp.com]
al2o3-cr has joined #ruby
Jardayn has quit [Quit: Leaving]
<Ox0dea> crime: Go shopping?
dpulliam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<crime> ?
emptyflask has quit [Ping timeout: 272 seconds]
<Ox0dea> "<foo> is hard; let's go shopping" is a thing.
<crime> im about to just travel another layer deeper into bogo
<crime> oh
<crime> im gonna fill an array of results and pick the smallest one
towski_ has quit [Remote host closed the connection]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> crime: What if `n` has over 9000 digits?
gregf has joined #ruby
<crime> not a test case on codewars and is out of scope of my implementation
jwaldrip has quit [Ping timeout: 246 seconds]
SenpaiSilver has joined #ruby
<Ox0dea> Now you're thinking inside the box.
verdoc has quit [Ping timeout: 246 seconds]
<zenspider> crime: "until someone figures out" == you
tedstriker has joined #ruby
edenc has quit [Quit: ZNC - 1.6.0 - http://znc.in]
nighthwk1 has quit [Ping timeout: 240 seconds]
<crime> yeah
<zenspider> you need to think about your code BEFORE you type. it isn't on us to think for you
basiles has joined #ruby
dpulliam has joined #ruby
verdoc has joined #ruby
<Ox0dea> crime: Do you own a hammock?
dpulliam has quit [Client Quit]
<crime> im living out of my car currently
<crime> so no
<Ox0dea> Anything is a hammock if you're brave enough.
tvw has quit [Ping timeout: 256 seconds]
chorgi has joined #ruby
bubbys has quit [Ping timeout: 272 seconds]
bubbys has joined #ruby
roxtrongo has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
chorgi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
<crime> this passed the codewar tests, in only a quarter of a second I might add. not exactly a snail's pace! https://gist.github.com/anonymous/3832495ce868e217cb68
chipotle_ has joined #ruby
finisherr has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
bryanray has joined #ruby
<crime> it passes the tests, but it still takes too long to run somehow. I'm able to run even large numbers in subsecond time, and they are taking more than 6000ms to test 4 numbers each under 10000
saddad has joined #ruby
<zenspider> where is the problem description?
<crime> the pragmatic approach is just to swap lower digits towards the right
<baweaver> won't really work
<zenspider> ugh. I can't see anything w/o making an acct
<crime> oh
<crime> you take a number and find the next biggest number with the same digits unless one cant be formed
chipotle has quit [Ping timeout: 244 seconds]
<crime> so 213 is 231
<baweaver> zenspider: Given a number (4312) find the next largest with the same digits (4321)
<crime> 111 is a fail
ivanskie has joined #ruby
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pdoherty has quit [Quit: Leaving]
<zenspider> so the time should be proportional to the size of the number and shouldn't use things like shuffle or while/until
<baweaver> crime: what can you notice about those numbers you gave?
<baweaver> you're scanning from the right until you happen to see....
<crime> i know
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> 213 -> 231, 4312 -> 4321, 101 -> 110
emptyflask has joined #ruby
leafybasil has quit [Remote host closed the connection]
<baweaver> something partitioning, swapping, and sorting
<crime> im actually gonna call it a night, starbucks is closing
d34th4ck3r has joined #ruby
<crime> i'll fix it after work tomorrow i guess
leafybasil has joined #ruby
stannard has joined #ruby
bricker has quit [Ping timeout: 272 seconds]
chipotle_ is now known as chipotle
govg has quit [Ping timeout: 264 seconds]
alexdunne has joined #ruby
<zenspider> swapping?
finisherr has quit [Quit: finisherr]
thejamespinto has joined #ruby
<zenspider> oh, n/m... I read partitioning differently
<zenspider> I didn't partition or swap
<zenspider> it's ugly, but most 1-liners are
leafybasil has quit [Ping timeout: 240 seconds]
stannard has quit [Ping timeout: 250 seconds]
finisherr has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
gregoriokusowski has joined #ruby
alexdunne has quit [Ping timeout: 268 seconds]
verdoc has quit [Quit: No Ping reply in 180 seconds.]
<bigmac__> how do i print all combinations of 0..1, 10 in length
idealexit has joined #ruby
verdoc has joined #ruby
<Ox0dea> bigmac__: The same way you did for length 8.
pullcheezy has joined #ruby
<baweaver> what have you tried?
<zenspider> haha
hahuang65 has quit [Ping timeout: 240 seconds]
roxtrongo has quit [Remote host closed the connection]
poguez_ has quit [Quit: Connection closed for inactivity]
Guest7725 has quit [Quit: Leaving]
dopie has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
user083 has joined #ruby
Contigi has joined #ruby
<Ox0dea> I almost didn't recognize you with the second underscore.
dfinninger has joined #ruby
<havenwood> bigmac__: Change 8 to 10 or 255 to 1023.
floh1695 has joined #ruby
bigmac__ has quit [Ping timeout: 256 seconds]
bonhoeffer has joined #ruby
weemsledeux has joined #ruby
<baweaver> ran off
saddad has quit [Ping timeout: 255 seconds]
<baweaver> went and scared another one Ox0dea :(
wldcordeiro has quit [Ping timeout: 256 seconds]
marr has quit [Ping timeout: 250 seconds]
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chopin has joined #ruby
idealexit has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
<baweaver> well, back home I go. Cheers.
skcin7 has joined #ruby
govg has joined #ruby
K1MOS has joined #ruby
pu22l3r has quit [Remote host closed the connection]
K1MOS has quit [Client Quit]
bruce_lee2 has joined #ruby
<Ox0dea> Remind me to forget next time.
deimos_ has quit []
tkuchiki has joined #ruby
baweaver has quit [Remote host closed the connection]
K1MOS has joined #ruby
deimos has joined #ruby
K1MOS has quit [Client Quit]
K1MOS has joined #ruby
K1MOS has quit [Client Quit]
gregf has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skinux_ has joined #ruby
bruce_lee has quit [Ping timeout: 252 seconds]
skinux_ is now known as skinux
skinux has quit [Changing host]
skinux has joined #ruby
jerry_tao has joined #ruby
colstrom_ has joined #ruby
bruno- has joined #ruby
gregf has quit [Client Quit]
bruno- is now known as Guest74339
K1MOS has joined #ruby
floh1695 has left #ruby ["Leaving"]
K1MOS has quit [Client Quit]
dopieee has joined #ruby
Alazoral has joined #ruby
pullcheezy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
dopie has quit [Ping timeout: 252 seconds]
bigmac__ has joined #ruby
Guest74339 has quit [Ping timeout: 260 seconds]
h99h9h88 has joined #ruby
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
h99h9h88 has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
EllisTAA has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
s00pcan_ has joined #ruby
pullcheezy has joined #ruby
diegoaguilar has quit [Ping timeout: 260 seconds]
chopin has quit [Ping timeout: 240 seconds]
dfinninger has quit [Remote host closed the connection]
Sceko has quit [Quit: www.oklop.me]
Fire-Dragon-DoL has quit []
h99h9h88 has joined #ruby
RegulationD has joined #ruby
northfurr has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
colstrom_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Alazoral has quit [Quit: Textual IRC Client: www.textualapp.com]
h99h9h88 has joined #ruby
gregf has joined #ruby
northfurr has quit [Client Quit]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
<bigmac__> i found in my history
emptyflask has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 256 seconds]
matp has joined #ruby
h99h9h88 has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
<Ox0dea> It's always in the last place to which you get direct-linked.
devoldmx has joined #ruby
northfurr has joined #ruby
sp4rrow has joined #ruby
<havenwood> bigmac__: Does it need to be ordered?
alcipir has quit [Remote host closed the connection]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
alcipir has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
fedexo has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
p1k has joined #ruby
govg has quit [Ping timeout: 252 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
moeabdol has quit [Ping timeout: 246 seconds]
purplexed^ has quit [Read error: Connection reset by peer]
<havenwood> >> bigmac = 10; (2**bigmac).times.map { |n| '%08b' % n }
<ruboto> havenwood # => ["00000000", "00000001", "00000010", "00000011", "00000100", "00000101", "00000110", "00000111", "00 ...check link for more (https://eval.in/457463)
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
<Ox0dea> s/8/10/
swgillespie has joined #ruby
<havenwood> Ox0dea: gah
<havenwood> >> bigmac = 10; (2**bigmac).times.map { |n| "%0#{bigmac}b" % n }
<ruboto> havenwood # => ["0000000000", "0000000001", "0000000010", "0000000011", "0000000100", "0000000101", "0000000110", " ...check link for more (https://eval.in/457464)
banister has joined #ruby
jonnie has joined #ruby
<havenwood> Ox0dea: I'm not the only one having trouble going from 8 to 10. ;)
govg has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
dopamean_ has joined #ruby
<Ox0dea> >> bigmac__ = 10; '%0*b' % [bigmac__, 42]
<ruboto> Ox0dea # => "0000101010" (https://eval.in/457465)
<Ox0dea> I quite like that part of sprintf's semantics.
shinenelson has quit [Quit: Connection closed for inactivity]
s00pcan_ has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
dikaio has joined #ruby
weemsledeux has joined #ruby
<havenwood> mmm
znz_jp has quit [Quit: kill -QUIT $$]
l_tonz has joined #ruby
pullcheezy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
mollusk_ has joined #ruby
znz_jp has joined #ruby
bonhoeffer has quit [Read error: Connection reset by peer]
ruby-newb has joined #ruby
jdawgaz has joined #ruby
<ruby-newb> hi
bollullera has left #ruby [#ruby]
<ruby-newb> anyone here familiar with ruby?
<pipework> What is ruby?
in0perable has joined #ruby
<Ox0dea> I only know of the gemstone and the Kaiser Chiefs song by that name.
p0wn3d has joined #ruby
jonnie has quit [Ping timeout: 260 seconds]
<Ox0dea> I suspect it must be asking about one of the two.
cmoneylu_ has joined #ruby
cmoneylu_ is now known as cmoney
<ruby-newb> This might be a silly question.. but is there anything special going on if you define an initialize method on a class singleton
<ruby-newb> versus as an instance method
<Ox0dea> ruby-newb: You can't create instances of singleton classes, so `def self.initialize` doesn't make a great deal of sense.
benlovell has joined #ruby
<in0perable> aint no python boy
<ruby-newb> well, that's kind of my question
<ruby-newb> is it okay then to define that singleton class method for a different purpose
<ruby-newb> since you can't create an instance
finisherr has quit [Quit: finisherr]
<ruby-newb> and nothing funky will go on?
step1step2 has quit [Quit: Leaving]
zenguy_pc has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
<Ox0dea> ruby-newb: You are not morally obligated to concern yourself with the mental well-being of the next person to read your code.
<Ox0dea> But it might be you, and that's something to bear always in mind.
null__ has quit [Quit: ZNC - http://znc.in]
<ruby-newb> Well.. I actually did write this code.. and it's committed.. and deployed, but I looked back at it and thought.. that's kind of confusing
null__ has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
lfox has quit [Quit: Textual IRC Client: www.textualapp.com]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby-newb> I'm asking, because I have a feeling it's being called twice.. even though I only ever explicitly call it once
m3_del has joined #ruby
<ruby-newb> Was wondering if the awkward/confusing method choice might be the reason why
<Ox0dea> Post code?
benlovell has quit [Ping timeout: 265 seconds]
m3_del has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 240 seconds]
skcin7 has joined #ruby
chenillen has joined #ruby
l_tonz has quit [Remote host closed the connection]
hahuang65 has joined #ruby
chenillen has quit [Client Quit]
Asher has quit [Read error: Connection reset by peer]
<ruboto> ruby-newb, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/d82d559b2a5f6c06958c
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
Asher has joined #ruby
<ruby-newb> thank you ruboto
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruby-newb> I call the initialize method on the class just once in my initializors folder
<ruby-newb> It appears my events are getting listened to (logged) twice though
<Ox0dea> ruby-newb: The actual #initialize method on the singleton class, not #new on the class itself, yes?
<ruby-newb> yes
<Ox0dea> How come?
<ruby-newb> How come what?
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sl33k has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> I guess I'm just wondering why you chose the most confusing name possible.
<ruby-newb> Well, I wrote this when I was first learning ruby, so I didn't think much of it
<ruby-newb> The name does make sense, all confusion aside
Igorshp has quit [Remote host closed the connection]
bruno- has joined #ruby
ibouvousaime has quit [Ping timeout: 260 seconds]
<ruby-newb> I suppose I'll change it, but was just wondering if have picked that name could explain for why the listeners appear to be getting initialized twie
<ruby-newb> twice*
bruno- is now known as Guest29198
sanjoseninja has joined #ruby
pullcheezy has joined #ruby
<Ox0dea> ruby-newb: Co-opting #initialize for your own purposes is confusing, and it may well indeed explain the strange behavior you're seeing.
moeabdol has joined #ruby
favadi has joined #ruby
<Ox0dea> It'd be easy enough to debug-print `caller` to determine whence you're being invoked a second time.
zenguy_pc has joined #ruby
Guest29198 has quit [Ping timeout: 240 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Read error: Connection reset by peer]
p0wn3d has quit [Ping timeout: 264 seconds]
EllisTAA has quit [Quit: EllisTAA]
dfinninger has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
darkf has joined #ruby
darkf has quit [Changing host]
darkf has joined #ruby
sanjoseninja has left #ruby ["Leaving"]
pullcheezy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slawrence00 has joined #ruby
ryba has joined #ruby
konrath has quit [Quit: Leaving]
wldcordeiro has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AnoHito has joined #ruby
Contigi777 has joined #ruby
kenichi has quit [Quit: ZNC - http://znc.in]
pullcheezy has joined #ruby
Contigi has quit [Ping timeout: 256 seconds]
davedev2_ has joined #ruby
auzty has joined #ruby
jgt1 has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
Soda has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
davedev24 has quit [Ping timeout: 240 seconds]
jwaldrip has joined #ruby
The_Phoenix has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 246 seconds]
m3_del has joined #ruby
wennefer has joined #ruby
davedev24 has joined #ruby
ruby-newb has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
zenguy_pc has joined #ruby
rshetty has joined #ruby
wennefer has quit [Client Quit]
bnizzle has quit [Ping timeout: 250 seconds]
AnoHito_ has joined #ruby
AnoHito has quit [Ping timeout: 250 seconds]
wennefer has joined #ruby
jwaldrip has quit [Ping timeout: 240 seconds]
bnizzle has joined #ruby
m3_del has quit [Read error: Connection reset by peer]
robbyonr1ils has quit [Ping timeout: 260 seconds]
uber has quit [Ping timeout: 255 seconds]
jdawgaz has joined #ruby
m3_del has joined #ruby
wennefer has quit [Client Quit]
wennefer has joined #ruby
govg has quit [Ping timeout: 272 seconds]
wennefer has quit [Client Quit]
zenguy_pc has quit [Max SendQ exceeded]
Eiam_ has joined #ruby
zenguy_pc has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
eminencehc has joined #ruby
davedev24 has joined #ruby
pullcheezy has quit [Ping timeout: 252 seconds]
northfurr has quit [Quit: northfurr]
zenguy_pc has quit [Read error: Connection reset by peer]
northfurr has joined #ruby
wennefer has joined #ruby
wennefer has quit [Client Quit]
wennefer has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 256 seconds]
eminencehc has joined #ruby
wennefer has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 264 seconds]
dopieee has quit [Quit: This computer has gone to sleep]
wennefer has joined #ruby
djbkd has joined #ruby
eminencehc has quit [Remote host closed the connection]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
baweaver has joined #ruby
cwong_on_irc has joined #ruby
wennefer has quit [Client Quit]
Trynemjoel has joined #ruby
freerobby has quit [Quit: Leaving.]
wennefer has joined #ruby
rshetty has quit [Remote host closed the connection]
uber has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
v4n has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blueOxigen has quit [Ping timeout: 250 seconds]
rshetty has joined #ruby
bluOxigen has joined #ruby
wennefer has quit [Client Quit]
m3_del has quit [Remote host closed the connection]
rshetty_ has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
kenichi has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
george2 has joined #ruby
rshetty_ has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 244 seconds]
Trynemjoel has joined #ruby
p0wn3d has joined #ruby
govg has joined #ruby
l_tonz has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
v4n has quit [Quit: WeeChat 1.3]
wennefer_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
hahuang65 has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
l_tonz has quit [Ping timeout: 265 seconds]
wennefer_ has quit [Client Quit]
crime has quit [Quit: Connection closed for inactivity]
zenguy_pc has quit [Read error: Connection reset by peer]
joufflu has quit [Ping timeout: 272 seconds]
Coldblackice has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
hays_ is now known as hays
p0wn3d has quit [Ping timeout: 268 seconds]
tubuliferous_ has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
naftilos76 has joined #ruby
dorei has quit []
Soda has quit [Remote host closed the connection]
alexdunne has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest95333
workmad3 has joined #ruby
l_tonz has joined #ruby
emptyflask has joined #ruby
alexdunne has quit [Ping timeout: 264 seconds]
Guest95333 has quit [Ping timeout: 265 seconds]
emptyflask has quit [Client Quit]
workmad3 has quit [Ping timeout: 240 seconds]
d34th4ck3r has quit [Quit: zzz]
pullcheezy has joined #ruby
unreal has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
unreal has joined #ruby
moeabdol has joined #ruby
rshetty has joined #ruby
zenguy_pc has joined #ruby
<Eiam_> Is there a way to do multiple .map(&:one).map(&:two) in the same map?
jgt1 has joined #ruby
<Eiam_> (I realize the data set is changing after each map)
finisherr has joined #ruby
<Eiam_> I guess a reduce
<bigmac__> j'u78uyu[u,, fjkufitrrtpll111111111111111111111111111111111111111111111111111111111111111vghhpoopop[o
<Eiam_> bigmac__: meow
bigmac__ has quit [Quit: Leaving]
speaking1ode has quit [Remote host closed the connection]
adamholt has quit [Ping timeout: 244 seconds]
davidt has quit [Ping timeout: 244 seconds]
moeabdol has quit [Ping timeout: 272 seconds]
chopin has joined #ruby
davidt has joined #ruby
M-prosodyContext has quit [Quit: node-irc says goodbye]
swgillespie has quit [Excess Flood]
Puffball has quit [Remote host closed the connection]
pullcheezy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has joined #ruby
sshuff|gone has quit [Ping timeout: 244 seconds]
jgt1 has quit [Ping timeout: 272 seconds]
swgillespie has joined #ruby
adamholt has joined #ruby
Puffball has joined #ruby
<baweaver> Eiam_: use the block form
<baweaver> data.map { |v| v.one.two }
<Eiam_> yeah.. meh
<baweaver> don't get carried away in shorthand
<Eiam_> baweaver: It always opens up new areas of ruby to me every time someone points out some weird shorthand
<Eiam_> baweaver: so I usually ask because someone plops out "o this thing" I'm im like what the hell is taht I've never seen that!
<baweaver> could you make it do that, yeah
<baweaver> should you? Probably not
l_tonz has quit [Remote host closed the connection]
gener1c has joined #ruby
<Eiam_> but yes, the longform of .map{|x| x.a.b.c} certainly works
jdawgaz has joined #ruby
tmtwd has joined #ruby
sshuff|gone has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
diegoaguilar has quit [Quit: Leaving]
alcipir has quit [Quit: Lost terminal]
sdwrage has quit [Quit: This computer has gone to sleep]
jwaldrip has joined #ruby
kitallis has quit [Quit: going, bye]
bluOxigen has joined #ruby
<baweaver> >>module Enumerable;def stream(*meths) self.map{|i|meths.reduce(i){|s,m|s.send(m)}} end end; (1..10).stream(:to_s, :chars, :size)
<ruboto> baweaver # => [1, 1, 1, 1, 1, 1, 1, 1, 1, 2] (https://eval.in/457509)
gener1c_ has quit [Ping timeout: 264 seconds]
m3_del has joined #ruby
rshetty has quit [Remote host closed the connection]
<Eiam_> haha, well thats creating a mechanism to do it =)
braincrash has quit [Quit: bye bye]
<baweaver> hence the 'can you' bit
ruby-lang163 has joined #ruby
zenguy_pc has quit [Read error: No route to host]
ruby-lang163 has quit [Client Quit]
speaking1ode has joined #ruby
<Eiam_> baweaver: Like I always tell leadership "its code, we can do whatever we want!"
<Eiam_> =0
hmsimha_ has joined #ruby
* baweaver raises finger
* baweaver lowers finder
<Ox0dea> Eiam_: I'm going to show you something.
<baweaver> you'll figure it out
<Eiam_> but I dont' pitch features so, no one hates me
astrobun_ has quit [Quit: Leaving...]
<baweaver> here we go
<baweaver> buckle up mate
<Eiam_> (The glib statement makes no work for everyone)
<baweaver> things are about to get wild
<Eiam_> lol
finisherr has quit [Quit: finisherr]
<Ox0dea> baweaver: It's just Uberscore this time.
<Eiam_> Ox0dea: I'm.. excited yet concerned
leafybasil has joined #ruby
<baweaver> When Ox0dea drops code you know things are going down
<Ox0dea> I like it, but you probably shouldn't.
<Eiam_> undef_method *instance_methods
<Eiam_> that doesn't seem good
<Ox0dea> Hm?
<Eiam_> okay well, lets see if I can understand this =)
rshetty has joined #ruby
<Ox0dea> It's so that #method_missing can catch anything you attach to `&_`.
inteq has joined #ruby
<baweaver> what's the verbose bit for?
<Ox0dea> baweaver: You're not supposed to undef #__send__ and #__id__.
<baweaver> ah
braincrash has joined #ruby
<Eiam_> isn't that why he defines :_ ?
davedev24 has quit [Ping timeout: 246 seconds]
<Ox0dea> s/__id__/object_id/, apparently.
<Ox0dea> Eiam_: I define #_ on Kernel so that you can use `&_` from "anywhere".
<Ox0dea> With Uberscore, you can say `foo.map(&_one.two.red.blue)`.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> *&_.one
<Ox0dea> Symbols are hard; let's go prosing.
<Eiam_> right you define it on kernel
<Ox0dea> Otherwise you'd have to explicitly `include` Uberscore wherever you wanted to use it, and that'd be lame.
leafybasil has quit [Ping timeout: 244 seconds]
<baweaver> problem is it'd be nasty slow.
EllisTAA has joined #ruby
<sl33k> hi all
<sl33k> how is ruby the language able to pull off all that magic that adding "has_secure_password" to a model gives you?
<Eiam_> so basically every time you try to call another ., it adds it into your chain array, which & calls to_proc on
<Eiam_> which then just reduces through the array of failed method_missing calls ?
<Ox0dea> Eiam_: Almost; #to_proc is being invoked on an instance of Uberscore::Context, not @chain.
<Eiam_> it works backwards ..
<Ox0dea> It doesn't.
<baweaver> sl33k: #RubyOnRails
<sl33k> baweaver: this is a language question.
<baweaver> it's a method
<sl33k> the language gives it the power
<Ox0dea> sl33k: In short, everything is always open.
<sl33k> baweaver: so that is a method call?
<baweaver> it's a method
<sl33k> so in the method do they add instance variables to an existing object
<baweaver> read Eiam_'s link
<sl33k> okay
ivanskie has joined #ruby
<Eiam_> (its the source for its implementation as far as i can tell)
<Eiam_> looks pretty straightforward at a glance but I'm hardly a pro
<baweaver> looks like it at least.
<Eiam_> nothing like what Ox0dea posted =)
Blaguvest has quit []
<Ox0dea> Uberscore is remarkably straightforward for what it does...
<Eiam_> Ox0dea: =p unregistering instance methods, and abusing method_missing
<Eiam_> not exactly ruby 101
<Eiam_> just DSL 101
<Ox0dea> It's the only way...?
<sl33k> Eiam_: the method definition helps me in understanding. thanks
dopieee has joined #ruby
<sl33k> i dont know enough of ruby modules to understand the top of the code page though ( would ignore that for now)
<danneu> uberscore looks nice. ruby is too verbose without `.map(_+2)` style shortcuts
arescorpio has joined #ruby
* sl33k magic
<Ox0dea> danneu: I emphatically agree.
<Ox0dea> That map(&:foo) can't be chained or receive arguments is a wart, in my opinion.
<danneu> agreed
<baweaver> it's mostly a weakness from freestyle parens
<danneu> it's no clojure, for sure
<Ox0dea> Clojure has freestyle parens? :P
EllisTAA has quit [Quit: EllisTAA]
<Eiam_> Ox0dea: hah, yeah thats basically exactly what I was asking for
<danneu> nah just cool style
<baweaver> it has all the parens you could dream of
<Eiam_> I'm loath to actually put this in my code though
willardg has joined #ruby
<Ox0dea> Eiam_: Then you have to open an explicit block or invoke #map twice.
<Eiam_> Ox0dea: right
<danneu> i also like the hack https://github.com/sconover/wrong
<Ox0dea> Eiam_: You'd only run into trouble if you used Uberscore in a scope where you had a local named _.
<baweaver> Look into Scala if you like that style
zenguy_pc has joined #ruby
<Eiam_> sl33k: include <blah> just craps all the module methods in
<Eiam_> sl33k: the rest of its literally just basic method calls & enums
benlovell has joined #ruby
<sl33k> seen
<sl33k> ruby feels to powerful and kinda feel i might cut myself too easily coming from Java
<Ox0dea> Ruby is a Swiss-army footgun.
Pupeno has joined #ruby
Pupeno has joined #ruby
gix has quit [Ping timeout: 260 seconds]
<danneu> you just have to learn to shoot through the hole you keep making in your foot
<sl33k> s/to/too
<Eiam_> its only a problem when you have t odebug someone elses code
<Eiam_> who is using their footgun
<Ox0dea> But "someone else" could be you in five minutes.
<danneu> e.g. your own code in a few months
* baweaver hates Java
braincra- has joined #ruby
arup_r has joined #ruby
willardg has quit [Client Quit]
<Eiam_> Ox0dea: all my code is write once, because the projects change every year
<Eiam_> so I never get to reuse anything anyway
chopin has quit [Remote host closed the connection]
<danneu> ruby conspires against you in simple ways too. like `require 'thing'` dumping into the global namespace.
<Eiam_> write once, extend a few times through out the year, then throw out
<danneu> nice lil obstacle for you in a week
stannard has joined #ruby
<danneu> "so where did this come from"
<Eiam_> repeat all over again
<Eiam_> but yeah, if I was writing code I had to maintain
<Eiam_> I probably wouldn't choose ruby (even tho I love ruby)
<baweaver> you can write junk in any language
<Ox0dea> > There is no good and evil, there is only power, and those too weak to seek it.
<baweaver> it's not the fault of the language
<Eiam_> baweaver: I don't think there is a problem with Ruby
<Eiam_> I think that a LOT of people see a problem and in ruby they think "time for A DSL"
<Eiam_> and that can make interfacing with the rest of the ruby eco system very cumbersome
gix has joined #ruby
<Eiam_> because i've got 30 libs using method_missing
rshetty has quit [Remote host closed the connection]
<Eiam_> and stepping through it all becomes a painful experience
braincrash has quit [Ping timeout: 265 seconds]
benlovell has quit [Ping timeout: 268 seconds]
<danneu> "i'll just grep this method and look up the source code!"
<Ox0dea> But we have #source_location.
<baweaver> and ctags
Pupeno has quit [Ping timeout: 260 seconds]
<baweaver> and sift
<Eiam_> battle vets show their stripes
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> baweaver: Is it actually better than ag?
<baweaver> yeah
<Ox0dea> Their benchmarks look artificial.
<baweaver> spent all that time looking at ag to find this a week later
<baweaver> not sure
tmtwd has quit [Ping timeout: 246 seconds]
<baweaver> ops friend recommended it
<baweaver> hadn't had a chance to test it
<baweaver> but ag works fine for most things
<danneu> #source_location that takes you to method_missing?
stannard has quit [Ping timeout: 272 seconds]
cmoney has quit []
wildlander has quit [Quit: Saliendo]
<baweaver> Ox0dea: *snarks* they're using it to extract HTML with REGEXP
<baweaver> Maybe they're using the simpler implementation of Regex? PCRE and friends are actually kinda nasty slow
<Ox0dea> I think they're using simpler everything.
<baweaver> I'll have to look into it later honestly
<baweaver> ag is proven good so I still tend to use it a lot
<baweaver> that and emmet, especially with angularJS apps
<Ox0dea> baweaver: That they're dead-silent on the actual files used to get their numbers smells of snake oil.
<baweaver> mmm, good catch
govg has quit [Ping timeout: 260 seconds]
dfinninger has quit [Remote host closed the connection]
davedev24 has joined #ruby
jerry_tao has left #ruby [#ruby]
bruno- has joined #ruby
bruno- is now known as Guest78238
tubuliferous_ has quit [Ping timeout: 252 seconds]
l_tonz has joined #ruby
<Ox0dea> Eiam_: Uberscore is scarcely a proper target for DSL hatred.
<Ox0dea> Here, take this: https://eval.in/457517
hahuang65 has joined #ruby
<Eiam_> Ox0dea: I didn't say it was
benlieb has quit [Quit: benlieb]
davedev24 has quit [Ping timeout: 240 seconds]
Guest78238 has quit [Ping timeout: 252 seconds]
<Ox0dea> I know, I just wanted to show that. :P
stardiviner has joined #ruby
<Ox0dea> '!' isn't the best character for drawing Langton's ant, but it's ' ' + 1 and that was convenient.
moeabdol has joined #ruby
Rodya_ has quit [Quit: Leaving...]
benlieb has joined #ruby
ElSif has quit [Read error: Connection reset by peer]
zenguy_pc has quit [Read error: Connection reset by peer]
sanjayu has joined #ruby
mloy has joined #ruby
davedev24 has joined #ruby
blur3d has joined #ruby
tubuliferous_ has joined #ruby
sl33k has quit [Quit: sl33k]
foooobear has joined #ruby
d34th4ck3r has joined #ruby
arescorpio has quit [Quit: Leaving.]
devoldmx has joined #ruby
blur3d has quit [Ping timeout: 260 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
opensource_ninja has quit [Quit: opensource_ninja]
mloy has left #ruby ["Leaving"]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
pocketprotector- has quit [Ping timeout: 250 seconds]
leafybasil has joined #ruby
skinux has quit [Quit: Leaving]
s2013 has joined #ruby
towski_ has joined #ruby
leafybasil has quit [Ping timeout: 268 seconds]
moeabdol has quit [Quit: WeeChat 1.3]
alatebloomer has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has joined #ruby
jgt1 has joined #ruby
alatebloomer is now known as Bloomer
<Bloomer> hi all
<Bloomer> i am new here, first time
jdawgaz has joined #ruby
<Bloomer> anyone can see my message?
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
fedexo has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
djbkd has joined #ruby
<Ox0dea> Hi, Bloomer.
<Bloomer> hi there
<Bloomer> thanks for reply
stardiviner has joined #ruby
<Bloomer> i thought no one can see me lol
EllisTAA has joined #ruby
sp4rrow has joined #ruby
EllisTAA has quit [Client Quit]
nemo_ has joined #ruby
<Ox0dea> > The world is quiet here.
jgt1 has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
stardiviner has quit [Client Quit]
<Bloomer> hahaha
<Bloomer> i got some question
<Bloomer> i am going to build a api with rails
stardiviner has joined #ruby
<Bloomer> what you guys recommend?
<Bloomer> use grape or rails-api or any others?
nemo__ has joined #ruby
<Ox0dea> Bloomer: Is it going to be a tiny little thing?
nemo_ has quit [Read error: Connection reset by peer]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
<Bloomer> i think so, very basic api
<Bloomer> but maybe need to also incldue some webpage
<Ox0dea> Then every offering in the space is likely to provide the functionality you'll need.
<Bloomer> webpage and api
<Bloomer> what you mean?
<Bloomer> you mean to use rails-api gem?
HANJIN has joined #ruby
weemsledeux has joined #ruby
<Ox0dea> Have you looked into it and found it to be deficient for your purposes?
<Bloomer> ok~
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Bloomer> if I need API functino and web app in same rails app
<Bloomer> can I do that?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> Probably want to be asking in #RubyOnRails
<baweaver> but in general yeah, you can. Look into responds_to and go through a basic rails tutorial
shinenelson has joined #ruby
moeabdol has joined #ruby
ruby964 has joined #ruby
<Ox0dea> >> Class.instance_methods & Enumerable.instance_methods
<ruboto> Ox0dea # => [:include?] (https://eval.in/457518)
Musashi007 has joined #ruby
<Ox0dea> Pop quiz: when is that a problem?
<Bloomer> sorry~i dont know we have #RubyOnRails
<Bloomer> i will ask it there
workmad3 has joined #ruby
lxsameer has joined #ruby
willardg has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mia has quit [Read error: Connection reset by peer]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beauby has quit [Ping timeout: 250 seconds]
sp4rrow has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
govg has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
HakN99 has joined #ruby
favadi has joined #ruby
Musashi007 has quit [Quit: Musashi007]
solocshaw has joined #ruby
tkuchiki has quit [Remote host closed the connection]
l_tonz has quit [Remote host closed the connection]
HakN99 has quit [Client Quit]
HakN99 has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
m3_del has quit [Remote host closed the connection]
flyinprogrammer has joined #ruby
jwaldrip has quit [Quit: Be back later ...]
<Bloomer> Why I cannot talk in #RubyOnRails channel?
h99h9h88 has joined #ruby
<Ox0dea> ?rails Bloomer
<ruboto> Bloomer, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
davedev2_ has joined #ruby
HakN99 has quit [Quit: Peace!]
quazimodo has joined #ruby
<quazimodo> anyone here use Rally for project management?
yashinbasement has quit [Ping timeout: 268 seconds]
HakN96 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<Bloomer> ok~ let me try
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
ruby964 has quit [Ping timeout: 246 seconds]
davedev24 has quit [Ping timeout: 240 seconds]
<arup_r> Bloomer: Good you joined #ruby. Your life will be changed now
niemcu has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
Moblin has joined #ruby
rodfersou has quit [Quit: leaving]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
craysiii has joined #ruby
<Bloomer> : )
krz has joined #ruby
Ebok has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
yeticry_ has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
astrobunny has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has quit [Ping timeout: 256 seconds]
thejamespinto has quit []
quaj has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gnomethrower has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
Cyther has quit [Quit: Leaving]
psy_ has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
bruno- is now known as Guest28507
dionysus69 has joined #ruby
p1k has quit [Ping timeout: 264 seconds]
bricker has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest28507 has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
agent_white has quit [Ping timeout: 272 seconds]
dhjondoh has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
danieli has quit [Quit: *does an epic backflip into nowhere*]
hahuang65 has quit [Ping timeout: 264 seconds]
krz has quit [Read error: Connection reset by peer]
mollusk_ has quit [Ping timeout: 240 seconds]
Guest78532 has joined #ruby
charliesome has joined #ruby
ta has quit [Remote host closed the connection]
astrobunny has joined #ruby
krz has joined #ruby
dionysus69 has quit [Quit: dionysus69]
benlovell has joined #ruby
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
l_tonz has joined #ruby
l_tonz has quit [Remote host closed the connection]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has joined #ruby
l_tonz has joined #ruby
towski_ has quit [Remote host closed the connection]
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
benlovell has quit [Ping timeout: 252 seconds]
quaj has quit [Ping timeout: 268 seconds]
big|bad|wolf has joined #ruby
craysiii has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 246 seconds]
jgt1 has joined #ruby
vdamewood has joined #ruby
dionysus69 has quit [Remote host closed the connection]
Rollabunna has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
dionysus69 has joined #ruby
agent_white has joined #ruby
ruurd has joined #ruby
dionysus69 has quit [Remote host closed the connection]
Musashi007 has joined #ruby
dionysus69 has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Client Quit]
jgt1 has quit [Ping timeout: 272 seconds]
yardenbar has joined #ruby
tagrudev has joined #ruby
aganov has joined #ruby
patdohere has joined #ruby
amclain has quit [Quit: Leaving]
patdohere has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
dionysus69 has quit [Changing host]
dionysus69 has joined #ruby
m3_del has joined #ruby
The_Phoenix has quit [Ping timeout: 250 seconds]
grambo has quit [Quit: Leaving]
The_Phoenix has joined #ruby
skade has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
krz has quit [Read error: Connection reset by peer]
m3_del has quit [Ping timeout: 250 seconds]
favadi has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
duncannz has joined #ruby
Motoservo has joined #ruby
rshetty has quit [Remote host closed the connection]
jwaldrip has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
rshetty has joined #ruby
krz has joined #ruby
lkba has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
ss_much has quit [Quit: Connection closed for inactivity]
Motoservo has quit [Ping timeout: 252 seconds]
Musashi007 has quit [Quit: Musashi007]
favadi has quit [Ping timeout: 255 seconds]
jwaldrip has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
astrobunny has joined #ruby
trosborn has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
A124 has quit [Ping timeout: 268 seconds]
ta has joined #ruby
riotjones has joined #ruby
trosborn has quit [Quit: trosborn]
northfurr has quit [Quit: northfurr]
bruno- has joined #ruby
duoi has quit [Remote host closed the connection]
skade has quit [Ping timeout: 255 seconds]
bruno- is now known as Guest73514
northfurr has joined #ruby
Pupp3tm4st3r has joined #ruby
duoi has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest73514 has quit [Ping timeout: 268 seconds]
hahuang65 has joined #ruby
ta has quit [Remote host closed the connection]
skade has joined #ruby
Xeago has joined #ruby
workmad3 has joined #ruby
Xeago has quit [Client Quit]
jas02 has joined #ruby
Guest78532 has left #ruby [#ruby]
trautwein has joined #ruby
skcin7 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
h99h9h88 has quit [Read error: Connection reset by peer]
sgambino has joined #ruby
djbkd has quit [Remote host closed the connection]
favadi has joined #ruby
vdamewood has quit [Quit: Life beckons.]
ta has joined #ruby
northfurr has quit [Quit: northfurr]
l_tonz has quit [Remote host closed the connection]
andikr has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
duncannz has quit [Ping timeout: 256 seconds]
yardenbar has quit [Ping timeout: 260 seconds]
duncannz has joined #ruby
astrobunny has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rshetty has quit [Ping timeout: 264 seconds]
rshetty has joined #ruby
l_tonz has joined #ruby
p1k has joined #ruby
rshetty has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
l_tonz has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
dionysus69 has joined #ruby
howdoi has joined #ruby
Motoservo has joined #ruby
benlieb has quit [Quit: benlieb]
arup_r has quit [Ping timeout: 260 seconds]
caliostro has joined #ruby
terlar has quit [Ping timeout: 250 seconds]
<caliostro> hi there"
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
m3_del has joined #ruby
yardenbar has joined #ruby
neanderslob has joined #ruby
Motoservo has quit [Ping timeout: 260 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
jackjackdripper has joined #ruby
<Ox0dea> Hey, caliostro. Still looking for a debugger? :P
A124 has joined #ruby
jackjackdripper has quit [Client Quit]
<caliostro> hi 0x0dea, i am playing which byebug
<caliostro> it's very fun!
m3_del has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
Fredrich010 has joined #ruby
jonnie has joined #ruby
<caliostro> i am using it to do thread debugging, it works for me
ruurd has joined #ruby
wldcordeiro has quit [Ping timeout: 256 seconds]
Pumukel has joined #ruby
codecop has joined #ruby
krz has quit [Read error: Connection reset by peer]
rehat has quit [Remote host closed the connection]
<caliostro> i would like to found a plugin for emacs
terlar has joined #ruby
htmldrum has quit [Ping timeout: 255 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
benlieb has joined #ruby
krz has joined #ruby
SCHAAP137 has joined #ruby
trosborn has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
benlovell has joined #ruby
<shevy> you poor man
favadi has quit [Max SendQ exceeded]
sl33k has joined #ruby
astrobunny has quit [Remote host closed the connection]
<sl33k> how do you even choose the right gems?
leafybasil has joined #ruby
<sl33k> in java world, we had things like Apache, Google, Sun/Oracle libraries that we could trustt
<ljarvis> sl33k: does it work? when was it last updated/is it still maintained? the first one being of utmost importance
<sl33k> playing around and I typed: blog gems, found tens of hits
bruno- has joined #ruby
<sl33k> ljarvis: i cant invest the time checking all of them gems
bruno- is now known as Guest41644
<ljarvis> uh
yardenbar has joined #ruby
<sl33k> its a sincere question man
<ljarvis> I mean, I don't expect you to check them all
<sl33k> ...or woman
<ljarvis> but pick 2 popular ones
trosborn has joined #ruby
dopieee has quit [Quit: This computer has gone to sleep]
<ljarvis> do you have a partcular example or are you speaking in general?
<sl33k> apparently found out a friend of mine wrote a gem for batch into ActiveRecord yesterday
benlieb has quit [Quit: benlieb]
<apeiros> ?toolbox sl33k
<ruboto> sl33k, https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
trosborn has quit [Client Quit]
<apeiros> sl33k: toolbox also includes some metrics in its overview which can help with the decision.
<apeiros> but generally, there's no guarantees.
TomyWork has joined #ruby
<sl33k> truth be told, i know this friend from Java world...either way I'll rather use a Hibernate or Spring library than his code. Why? I have assurance of continuality maintenance from last two than some individual
astrobunny has joined #ruby
<ljarvis> yeah unfortuantely that's hardly guarenteed, it's a price you have to pay and a chance you have to take
leafybasil has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
<ljarvis> i wish i had moretime for oss at the moment :( *still* no internet in the new place even after 5 weeks
<apeiros> oh wow, that's fucked
<sl33k> thanks for toolbox link...looks better
Guest41644 has quit [Ping timeout: 265 seconds]
<ljarvis> yeah, been working at family/friends/coffee shops :(
<sl33k> ljarvis: i hope to start doing OSS earlu y next year
<ljarvis> sl33k: great!
ruurd has quit [Quit: ZZZzzz…]
<sl33k> just a lot of stuff to take in first >-<
HakN96 has quit [Quit: Peace!]
calleerlandsson has quit []
aufi has joined #ruby
last_staff has joined #ruby
colegatron has joined #ruby
<colegatron> good morning
AxonetBE has joined #ruby
froginvasion has joined #ruby
<froginvasion> hello folks
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
skade has joined #ruby
Peg-leg has joined #ruby
duncannz has quit [Ping timeout: 260 seconds]
astrobunny has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
jonnie has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
haxrbyte has quit [Ping timeout: 252 seconds]
troulouliou_div2 has joined #ruby
norc has joined #ruby
bruce_lee2 has quit [Changing host]
bruce_lee2 has joined #ruby
bruce_lee2 is now known as bruce_lee
<norc> Is there a way to specify a quantifier for a regex group before the group?
<norc> I just feel like it decreases readability so much to have this at the end.
blaxter has joined #ruby
<apeiros> norc: no
<apeiros> quantifier comes after the quantified element
<apeiros> you'd have to write your own engine, or a "transpiler" (yay, buzzword!)
rshetty_ has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<norc> apeiros: Fair enough. I mean with your tip from yesterday regarding /x it is not such a big deal, because with good indention and commenting I can work with it.
jgt1 has joined #ruby
Pupeno has joined #ruby
sl33k has quit [Quit: sl33k]
pandaant has joined #ruby
jgt1 has quit [Ping timeout: 252 seconds]
<froginvasion> norc, just wondering but why do you want this besides readability? I think it's unavoidable that regexes are already unreadable either way
kimegede has joined #ruby
<froginvasion> not "unreadable", but as in a sense, you need to 'parse' it with your mind in order to make sense of it
rshetty_ has quit [Remote host closed the connection]
rshetty has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
<apeiros> for the amount of information a regex contains, I find them actually quite readable
sdwrage has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
<apeiros> I've seen tries of more readable expression engines and the result was not pretty (stuff like "3 times 'x', 3-5 times 'z'")
<apeiros> I mean they looked nice for tiny expressions. but anything reasonably complex simply exploded.
<norc> Honestly anything that approaches complex is often easier handled with a proper parser.
<apeiros> honestly, you're wrong ;-)
<norc> Possibly. :)
<norc> I have just seen Perl programs. So maybe Im just branded in a bad way here.
<apeiros> I mean yes, there's cases where people try with insanely complex regex where I'd agree a proper parser would probably be better.
<norc> apeiros: So it comes down to what you and I consider "complex" :)
<apeiros> but parsers are complex themselves too and come with their own set of problems.
<apeiros> regex have the advantage of being rather compact, which gives you a large amount of locality. that helps a lot with understanding what's going on.
big|bad|wolf has joined #ruby
Motoservo has joined #ruby
trosborn has joined #ruby
hfp_work has quit [Ping timeout: 240 seconds]
lipoqil has joined #ruby
m3_del has joined #ruby
solars has joined #ruby
<apeiros> one of my largest regexen is for email validation, covering most of email address BNF (deliberately left some stuff out because I don't want that to be valid - like multiline addresses).
yfeldblum has quit [Ping timeout: 260 seconds]
<apeiros> you could write that with a parser
<apeiros> but I think it'd be a *lot* more pain.
hfp_work has joined #ruby
Fredrich010 has quit [Read error: Connection reset by peer]
Fredrich010 has joined #ruby
kerunaru has joined #ruby
Motoservo has quit [Ping timeout: 272 seconds]
astrobunny has joined #ruby
<apeiros> norc: https://gist.github.com/apeiros/361975e9551c06cc5ea7 <- that's complex ;-)
m3_del has quit [Ping timeout: 250 seconds]
<norc> apeiros: Ah well. This supposedly RFC 822 compliant regex is a bit more complex. http://ex-parrot.com/~pdw/Mail-RFC822-Address.html
<apeiros> rfc822 is obsolete, though
alexdunne has joined #ruby
<norc> apeiros: But yeah, this is not what I meant when I said complex. :)
<apeiros> the domain part btw. is [^@] because there's a separate test for that
<norc> Gotcha. It is an interesting example to look at though.
troulouliou_div2 has joined #ruby
<adaedra> Hi
<norc> But it shows that what I have been doing yesterday (splitting my regex into the smallest parts, and interpolating them into the next logical bits again) was not wrong. :)
<apeiros> yes, IME that's quite a successful strategy.
unclouded has quit [Read error: No route to host]
<apeiros> it also allows testing the small chunks individually.
Pupeno has quit [Remote host closed the connection]
trosborn has quit [Quit: trosborn]
mikecmpbll has joined #ruby
workmad3 has joined #ruby
mark2 has joined #ruby
CrazyEddy has joined #ruby
<norc> apeiros: Yeah. Definitely beats http://pastie.org/10510639 (that is what AddrSpec apparently yields after all interpolations)
<apeiros> granted, if you wrote it by hand, you'd probably drop all the (?:-imx…) parts
joonty has joined #ruby
marr has joined #ruby
<apeiros> *sob*, rugged docs wrong, or I can't read.
cwong_on_irc has quit [Quit: Leaving.]
Pupeno has joined #ruby
Pupeno has joined #ruby
benhuda has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
ibouvousaime has joined #ruby
CrazyEddy has quit [Ping timeout: 265 seconds]
elaptics`away is now known as elaptics`
elaptics` is now known as elaptics
Azure has quit [Ping timeout: 260 seconds]
yashinbasement has joined #ruby
jonnie has joined #ruby
stan has joined #ruby
techsethi has joined #ruby
zipace has joined #ruby
zipace has quit [Changing host]
zipace has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
big|bad|wolf has joined #ruby
DrCode has quit [Ping timeout: 244 seconds]
big|bad|wolf has quit [Client Quit]
vigintas has joined #ruby
_joes__ has quit [Ping timeout: 240 seconds]
chthon has joined #ruby
Motoservo has joined #ruby
_joes__ has joined #ruby
Hounddog has joined #ruby
rbowlby has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 260 seconds]
hmsimha_ has quit [Ping timeout: 265 seconds]
mbrownes has joined #ruby
yardenbar has joined #ruby
TomyWork has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
Motoservo has quit [Ping timeout: 268 seconds]
bonemind has joined #ruby
subscope has joined #ruby
Hounddog has joined #ruby
<mbrownes> Hi there! I'm new to ruby and I'm working on a small project where I'm building a connect four clone for in the terminal. I was thinking of using (n)curses to make the UI more usable. My question is: would this be to hard for a beginner and which curses library would you recommend?
<mbrownes> I see that the original stdlib library has gone stale
<mbrownes> is it stale good to use?
<mbrownes> stil*
nfk|laptop has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
quazimodo has joined #ruby
bnizzle has quit [Read error: Connection reset by peer]
<caliostro> i can found a lot of tutorial on ruby and tcl tk integration
gizless has joined #ruby
<mbrownes> I'm not necessarily looking for a full on GUI solution, I still want the program to run in the terminal
<mbrownes> Thanks though
bnizzle has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
Archyme_ has joined #ruby
<caliostro> Look for this book, "Build Awesome Command-Line Applications in Ruby"
<caliostro> You will go deep into writing ruby command line application, using OptionParser and Gli
lkba has quit [Ping timeout: 244 seconds]
karapetyan has quit [Remote host closed the connection]
<oddmunds> mbrownes: i've used ncurses
<oddmunds> it was some years ago, but the libraries were abandoned and outdated
yfeldblum has joined #ruby
<mbrownes> did you use a ruby wrapper or the native library?
jgt1 has joined #ruby
tolo123 has joined #ruby
tolo123 has left #ruby [#ruby]
krz has quit [Read error: Connection reset by peer]
<oddmunds> let's see
TheHodge has joined #ruby
govg has joined #ruby
<oddmunds> ncursesw
<mbrownes> Because I really don't like having an interactive game in a terminal where every gamestate is printed again to the screen one after another
<mbrownes> would be nice if i could just update the game board in the terminal
yfeldblum has quit [Ping timeout: 244 seconds]
<mbrownes> is this your project?
<oddmunds> yes
<oddmunds> ncursesw is probably what you want (unless there's come something better since)
jgt1 has quit [Ping timeout: 260 seconds]
<oddmunds> it let's you use unicode
<mbrownes> there's the original stdlib library curses
<mbrownes> i'm checking out ncursesw right now
yardenbar has quit [Ping timeout: 240 seconds]
Feyn has joined #ruby
<mbrownes> yeah curses still has some commits from this year
Voker57 has joined #ruby
krz has joined #ruby
Timba-as has joined #ruby
m3_del has joined #ruby
foooobear has quit [Quit: (null)]
Motoservo has joined #ruby
karapetyan has joined #ruby
dmolina has joined #ruby
radgeRayden has quit [Quit: Leaving]
m3_del has quit [Ping timeout: 268 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
Motoservo has quit [Ping timeout: 240 seconds]
beauby has joined #ruby
jimms has joined #ruby
dikaio has joined #ruby
yardenbar has joined #ruby
niemcu has joined #ruby
jgt1 has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
<caliostro> what is the advantage of using Fiber over Thread ?
rodfersou has joined #ruby
<apeiros> that question makes as much sense as asking "what's the advantage of eating an apple over a pear?"
<apeiros> fibers and threads are different. which one you should use depends on what you want to do.
<ljarvis> well.. the shape of the apple makes me feel more comfortable, pears are insane
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
<apeiros> the main difference is that threads are preemptive and fibers are cooperative
leafybasil has joined #ruby
<ljarvis> and apples are tastier
<apeiros> ljarvis: lies!
<ljarvis> :O
leafybasil has quit [Remote host closed the connection]
<ljarvis> sacrilege
<apeiros> actually I don't even know.
<apeiros> don't remember when I last ate a pear.
<ljarvis> same tbh
Guest987 has quit [Ping timeout: 240 seconds]
<ljarvis> but i eat apples, so logic
leafybasil has joined #ruby
<apeiros> hm, nice. just realized that this test app doesn't need to use rails. at all. so plain gem. yay :D
<ljarvis> that's what you call success
<caliostro> i understand
<apeiros> and finally finished one part of my git tool - I can now check whether an acceptance branch contains commits which are "problematic" (read: not coming from another branch, not just a merge commit, and change something else than just Gemfile & Gemfile.lock)
<caliostro> i am new to this concept, i've never found it in othere languages , os ,...
quazimodo has joined #ruby
foooobear has joined #ruby
yfeldblum has joined #ruby
Musashi007 has joined #ruby
<apeiros> caliostro: quite a couple of languages implement concurrency in one way or the other. and your OS certainly does.
<apeiros> though, php and javascript don't.
favadi has joined #ruby
<apeiros> (unless you count webworkers, but I'd like to pretend that webworkers don't exist)
<adaedra> pear > apple
favadi has quit [Max SendQ exceeded]
<adaedra> (and I'd like to pretend PHP don't exist)
jgt1 has quit [Ping timeout: 272 seconds]
benlovell has quit [Ping timeout: 246 seconds]
yardenbar has quit [Ping timeout: 250 seconds]
akem has joined #ruby
blue_deref has quit [Quit: bbn]
<apeiros> oh how I'd like to be able to pretend php doesn't exist…
<apeiros> luckily it only resurfaces only every now and then anymore.
AxonetBE has left #ruby [#ruby]
tvw has joined #ruby
niemcu has quit [Ping timeout: 260 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
yayu___ has joined #ruby
vsh_ has joined #ruby
vsh_ has left #ruby [#ruby]
benlovell has joined #ruby
quazimodo has quit [Ping timeout: 246 seconds]
yayu___ has left #ruby ["Textual IRC Client: www.textualapp.com"]
<adaedra> :<
jgt1 has joined #ruby
trautwei_ has joined #ruby
<norc> adaedra: JS has some form of concurrency tho in form of the event queues
<apeiros> norc: nope. all concurrency happens outside of js.
tkuchiki_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
<apeiros> there's no way to concurrently run *js code*. (insert webworker comment)
Rickmasta has joined #ruby
trautwein has quit [Ping timeout: 272 seconds]
Bloomer has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
Musashi007 has quit [Quit: Musashi007]
sameerynho has joined #ruby
Olipro_ has joined #ruby
Olipro_ is now known as Guest37565
yardenbar has joined #ruby
colegatron has quit [Ping timeout: 268 seconds]
Musashi007 has joined #ruby
astrobunny has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
astrobunny has joined #ruby
bruno- is now known as Guest44110
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ibouvousaime_ has joined #ruby
ibouvousaime has quit [Ping timeout: 268 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gregoriokusowski has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
<norc> apeiros: I just meant stuff like XHR (granted, it is just a simple form of cooperative multitasking) - so there is *some* concurrency at least. :)
<apeiros> norc: but XHR is not javascript code running concurrently.
krisquigley has joined #ruby
sgambino has joined #ruby
<norc> Yeah.
tkuchiki_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
Pathfinder has joined #ruby
jimms has quit [Remote host closed the connection]
<norc> The pain you get for real concurrency with shared resources is immense though.
<apeiros> but you could implement an event system like what js uses with fibers quite easily (I once did with threads, then realized I could have just used fibers - so stupid)
l_tonz has joined #ruby
<workmad3> http://joearms.github.io/2013/04/05/concurrent-and-parallel-programming.html <-- JS can be concurrent, but not parallel (unless you use webworkers)
<norc> Doesnt Ruby have a GIL in the MRI to prevent real parallelism?
<workmad3> norc: it prevents more than 1 thread being active at once... you could still have parallelism at a higher system level by having multiple ruby processes
<norc> workmad3: I think the only instance where you can actually interrupt code is through some immediate events which need to get processed immediately.
subscope has joined #ruby
<workmad3> norc: concurrency doesn't require interruptible code... it just means two 'things' can be ongoing at once, e.g. while one 'thing' is waiting for an ajax response, another 'thing' could be responding to an event
Coldblackice has quit [Ping timeout: 252 seconds]
ibouvousaime has joined #ruby
davedev24 has joined #ruby
Motoservo has joined #ruby
colegatron has joined #ruby
l_tonz has quit [Ping timeout: 240 seconds]
<apeiros> workmad3: no, JS can't even be concurrent.
<yorickpeterse> norc: a GIL prevents in-process parallelism
ibouvousaime_ has quit [Read error: Connection reset by peer]
<apeiros> a mistake surprisingly many people make
<workmad3> apeiros: so you're saying than you can never have an ajax request waiting while other events happen?
<apeiros> you can offload work to an external party which probably even does it in parallel
<apeiros> workmad3: no, I say ajax is not *js code* being concurrently run
<apeiros> it's work offloaded to an external party. outside your js runtime.
subscope has quit [Client Quit]
astrobunny has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 260 seconds]
<apeiros> and the response has to wait for the JS runtime to signal the ability to process it (i.e., no code running anymore)
astrobunny has joined #ruby
<norc> apeiros has a point here. ajax does just a call to the XMLHttpRequest API of the browser. When its done, the browser then inserts an event into the JS event queue
<workmad3> hmm... I'd still argue that semantically, that's concurrency in your JS app, because conceptually your JS code is waiting on the response to an ajax request (so things are progressing there) while other things can occur
<workmad3> but I'm not particularly invested in that view, so feel free to knock it down ;)
Motoservo has quit [Ping timeout: 250 seconds]
<apeiros> workmad3: given that a JS usually consists of more than JS, I'd agree. but JS itself is not capable of concurrency.
<apeiros> i.e. *js app* is concurrent. *js code* is not.
<workmad3> apeiros: ah, there's the difference... I see concurrency as a property of a system, not at the code level :)
<apeiros> in that case, anything which can be embedded can be concurrent.
<apeiros> which makes the distinction somewhat pointless IMO :)
Igorshp has quit [Remote host closed the connection]
jwaldrip has joined #ruby
karapetyan has joined #ruby
<workmad3> apeiros: I'm not sure which distinction you're referring to there
Igorshp has joined #ruby
ldnunes has joined #ruby
metalic has joined #ruby
blaxter has quit [Quit: foo]
jwaldrip has quit [Ping timeout: 240 seconds]
Renich has quit [Quit: leaving]
karapetyan has quit [Ping timeout: 244 seconds]
hfp_work has quit [Ping timeout: 272 seconds]
hfp__work has joined #ruby
Azure has joined #ruby
m3_del has joined #ruby
hfp__work is now known as hfp_work
pard has joined #ruby
<pard> greet
agent_white has quit [Quit: Lost terminal]
<froginvasion> apeiros, of course you can make 'concurrent' requests, or so they will appear to be. JS works with an event-loop-model
agent_white has joined #ruby
davedev2_ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pard> in 2.0, this won't work def _l(l,L) print l, L end _l /l/, 12
gregf has quit [Quit: WeeChat 1.3]
tesuji_ has joined #ruby
<pard> i'm not sure why
<pard> because it actually works in the prev versoins
m3_del has quit [Ping timeout: 260 seconds]
dhjondoh has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
<pard> am i maybe doing sth in a wrong way?
davedev24 has quit [Ping timeout: 240 seconds]
<workmad3> pard: 'SyntaxError: (irb):1: formal argument cannot be a constant' <-- seems pretty clear why they finally got around to disallowing it
<pard> oh thanks
govg has joined #ruby
<pard> i'm not sure though as why this won't work too def l_(l,_l) print l, _l end l_ /l/, 12
stamina has joined #ruby
<workmad3> pard: needs a ; to terminate the def statement
<workmad3> >> def l_(l,_l) print l, _l end; l_ /l/, 12
<ruboto> workmad3 # => (?-mix:l)12nil (https://eval.in/457695)
<pard> thanks a lot; will it work in 2.0 ?
Musashi007 has joined #ruby
<workmad3> pard: yup
<pard> thanks
<workmad3> pard: def l_(l,_l) print l, _l end l_ /l/, 12 doesn't work in 1.9 either btw
* pard goes to put it to test
<workmad3> 19>> def l_(l,_l) print l, _l end l_ /l/, 12
<ruboto> workmad3 # => /tmp/execpad-0e929bbf254f/source-0e929bbf254f:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/457696)
<workmad3> 18>> def l_(l,_l) print l, _l end l_ /l/, 12
<ruboto> workmad3 # => /tmp/execpad-bb49f54954f6/source-bb49f54954f6:2: syntax error, unexpected tIDENTIFIER, expecting kEN ...check link for more (https://eval.in/457697)
<norc> workmad3: Which ambiguity does that help solving though?
<workmad3> norc: statements need either a newline or a ; to terminate... def l_(l,_l) print l, _l end is a statement
minimalism has quit [Quit: leaving]
<norc> Good point
RegulationD has joined #ruby
<norc> Hopefully some day I might not be terrible at all of this. :(
astrobunny has quit [Remote host closed the connection]
syath has joined #ruby
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
beast has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
hmsimha_ has joined #ruby
RegulationD has joined #ruby
y0da has joined #ruby
Igorshp has joined #ruby
ruby-lang903 has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
d34th4ck3r has quit [Quit: zzz]
RegulationD has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
vasilakisfil has joined #ruby
RegulationD has joined #ruby
ruurd has joined #ruby
<vasilakisfil> hey! just wondering.. is there any performance/memory difference when you have defined a class inside another class vs a class inside a module ?
<vasilakisfil> and instantiate the inner class of course
kerunaru has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zotherstupidguy has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
ledestin has joined #ruby
Pathfinder has quit [Remote host closed the connection]
Jackneill has joined #ruby
allcentury has joined #ruby
<norc> vasilakisfil: Use what makes more sense, and worry about performance after: a) you have written functional code, b) written tests, c) profiled, and d) deduced that this is a bottleneck.
tkuchiki has quit [Remote host closed the connection]
RegulationD has quit [Read error: Connection reset by peer]
mbrownes has quit [Quit: Leaving]
ruby-lang903 has quit [Ping timeout: 246 seconds]
<vasilakisfil> Yeah that's what I do.. but I was just wondering..
RegulationD has joined #ruby
RegulationD has quit [Read error: No route to host]
RegulationD has joined #ruby
sepp2k has joined #ruby
dikaio has quit [Quit: ........]
RegulationD has quit [Read error: Connection reset by peer]
<norc> vasilakisfil: From what I understand about the object model it should not make a difference either way though.
RegulationD has joined #ruby
pard has quit [Quit: Leaving]
Igorshp has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.2]
<norc> vasilakisfil: To your question though: class Foo; end -- this creates a new Class, and adds a constant ("Foo") to the constant table of whatever "self" is in that context.
<norc> (Someone correct me if Im wrong here)
<norc> vasilakisfil: So based on your question, there is no difference.
RegulationD has quit [Ping timeout: 246 seconds]
Timba-as has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
Timba-as has joined #ruby
pard has joined #ruby
jonnie has quit [Ping timeout: 252 seconds]
<pard> def l ( _12 ) print _12 end ; 5 / l 5
<pard> what might be wrong?
<pard> i mean
<pard> why SyntaxError: (irb):2: syntax error, unexpected tINTEGER, expecting keyword_do or '{' or '('
* pard is actually highly baffled
<adaedra> I'm not even sure what this code is supposed to do.
<adaedra> Also, give real names to your arguments. What is "_12" supposed to mean.
<pard> sorry
Igorshp has joined #ruby
<pard> def baffl (anArgument) anArgument end ; 5 / baffl 5
<adaedra> A name should describe what you method/variable/class/module/dinosaur/etc is supposed to be/do.
<ccooke> pard: the parser does not like a statement after a methodd definition
Jackneill_ has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
weihan has joined #ruby
<adaedra> pard: add parenthesis around baffl argument. Otherwise, there's an ambiguity.
<pard> thanks a lot ccooke
<norc> >> p not true
<ruboto> norc # => /tmp/execpad-813912d63833/source-813912d63833:2: syntax error, unexpected keyword_true, expecting '( ...check link for more (https://eval.in/457711)
<pard> thanks a lot adaedr
solocshaw has quit [Ping timeout: 246 seconds]
<norc> Why does this not work? o_o
chipotle has quit [Quit: cheerio]
<pard> adaedra thanks
Jackneill has quit [Ping timeout: 244 seconds]
<adaedra> norc: because it does `(p not) true`
<norc> >> p(not true)
<norc> still.
<ruboto> norc # => /tmp/execpad-8b3fbe21f0a8/source-8b3fbe21f0a8:2: syntax error, unexpected keyword_true, expecting '( ...check link for more (https://eval.in/457712)
niftylettuce has joined #ruby
<adaedra> interesting.
kirun has joined #ruby
<ccooke> it's still ambiguous
<ccooke> >> p(not(true))
<ruboto> ccooke # => false ...check link for more (https://eval.in/457713)
hmsimha_ has quit [Ping timeout: 265 seconds]
spankthemonkee has quit [Read error: Connection reset by peer]
<pard> why?
<pard> adaedra, i thought e1 e2 l means e1(e2(l))
zotherstupidguy has joined #ruby
<norc> ccooke: An SO answer claims this is because Ruby uses an LALR parser for a non-LALR grammar mmm.
Voker57 has quit [Read error: Connection reset by peer]
<ccooke> makes sense
<pard> they have been doing it in a harder-than-actually-necessary
<pard> their solution in my humble opinion is more of a problem
<caliostro> useless code, unexpected tINTEGER, expecting keyword_do or '{' or '(' from (irb):107:in `eval'
<workmad3> pard: it does... but you're not using that particular rule, you're using infix /, so you're getting (5 / baffl) 5 effectively
<workmad3> >>d ef baffl(anArgument) anArgument end ; 5./ baffl 5
<ruboto> workmad3 # => /tmp/execpad-a74cd13241ab/source-a74cd13241ab:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/457722)
<workmad3> >> def baffl(anArgument) anArgument end ; 5./ baffl 5
<ruboto> workmad3 # => 1 (https://eval.in/457723)
<workmad3> oops :)
jonnie has joined #ruby
zenguy_pc has joined #ruby
<pard> thanks, so l 5 is an expressiol? or an statemen?
<norc> class Foo; end; # If I run this on main object, where does the constant "Foo" get added to?
user083 has quit [Ping timeout: 240 seconds]
blaxter has joined #ruby
<pard> i mean, can it be thought of as having less precedenc than / ?
dhjondoh has joined #ruby
etyety has joined #ruby
prestorium has joined #ruby
chipotle has joined #ruby
civil_ has joined #ruby
eikood has quit [Ping timeout: 244 seconds]
<norc> Oh nvm I remember. It gets added to Object (its eigenclass)
but3k4 has joined #ruby
y0da has quit [Read error: Connection reset by peer]
Motoservo has joined #ruby
impostorship has joined #ruby
impostorship has quit [Changing host]
impostorship has joined #ruby
impostorship is now known as CrazyEddy
<pard> >> def l(e) e end; l(l 5)
<ruboto> pard # => 5 (https://eval.in/457737)
<pard> ruboto, thanks ; so l 5 _is_ an expressoin?
alexdunne has quit [Ping timeout: 246 seconds]
Motoservo has quit [Ping timeout: 265 seconds]
<apeiros> froginvasion: read. the. backlog.
foooobear has quit [Quit: (null)]
<pard> apeiros, greetin's
<pard> def baffl (anArgument) anArgument end ; 5 / baffl 5 won't work
p0wn3d has joined #ruby
Fredrich010 has quit []
<pard> can it be caused by the list-op havng a less precedenc than / ?
eikood has joined #ruby
<norc> pard: For operator precedence, take a look at this nicely formatted table: http://stackoverflow.com/a/21060235
<shevy> hah
<shevy> how did you find that norc
chorgi has joined #ruby
<pard> norc, thanks a lot
mbeasley has left #ruby ["WeeChat 0.4.2"]
<shevy> pard was asking for exactly that yesterday wasn't he
<pard> no he was not
ruurd has quit [Quit: Bye]
<norc> shevy: I randomly typed URLs until I found what I was looking for. (Note, this statement might not be true)
m3_del has joined #ruby
<pard> so, list-op is not an actual op ? it is not listd there
alexdunne has joined #ruby
trabulmonkee has joined #ruby
trabulmonkee has quit [Client Quit]
ruurd has joined #ruby
<pard> shevy , greetin's; no, what i'm asking is whether list-op is an actual op , and if it is , what is its precedenc
jimms has joined #ruby
<norc> err
m3_del has quit [Ping timeout: 246 seconds]
HANJIN has quit [Quit: HANJIN]
TPBallbag has joined #ruby
<pard> norc, thanks but could not find list-op ;sir, as for what list-op means, in l 12, 12 l is a list-op
sdothum has joined #ruby
gregf has joined #ruby
<pard> am i being a nitpicker?
<shevy> and what is l 12, 12 l
<shevy> looks like a palindrome to me
<pard> shevy , i meant l 12, 12
<pard> l is calld a list-op
<shevy> ok that is l(12,12) right?
<pard> yes sir
<shevy> ok ma'am
<pard> sorry
naztharune has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
<shevy> well it's a method call
hughjass has joined #ruby
<shevy> you are right, the tables don't mention rules for ()
<pard> yes :\
subscope has joined #ruby
<pard> i'm trying to unravel the reason sth lik 5 / l 5 won't work
<pard> i have been told it is because / takes precedenc over list-op , so it actually becomes ( 5 - l ) 5
<norc> pard: If you repeadedly refuse to read the answer you have been given already, Im not sure shevys response will help you.
<shevy> pard how can it become ( 5 - l ) 5
<shevy> where is the /
<shevy> :D
<pard> sorry i meant /
<norc> shevy: Today I learned something bizarre.
<shevy> hehe
<norc> For real!
<shevy> norc does it have something to do with cats?
<norc> It can.
<shevy> yay!
<shevy> tell
solocshaw has joined #ruby
Cyther has joined #ruby
<norc> >> def cats(a) end; cats(not true)
<ruboto> norc # => /tmp/execpad-59afbbbc3b79/source-59afbbbc3b79:2: syntax error, unexpected keyword_true, expecting '( ...check link for more (https://eval.in/457745)
<norc> I actually stared at this for a good minute, until someone here explained it to me.
The_Phoenix has quit [Quit: Leaving.]
<pard> norc, by 'list-op' i mean an actuall op , not a list of op's, and i could not find it in the links i was given; my apologies though, i should have clarified it
CloCkWeRX has joined #ruby
<pard> *actual
Pupp3tm4st3r has quit [Remote host closed the connection]
<norc> pard: Have you tried looking for yourself?
<pard> i did ; no avail :\
<pard> looks like an anomaly
synthroid has joined #ruby
<norc> pard: Well, given the data you have, Im sure you can quickly test that one case for yourself.
<pard> i will :)
<pard> thanks
<shevy> norc right, I think someone here mentioned that once... eam probably, he is a parser-guru (in perl)
<pard> >> def l(_e) _e end; print l 5, l 5
<ruboto> pard # => /tmp/execpad-11ee811382a2/source-11ee811382a2:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/457753)
<norc> shevy: You mean he wrote an LALR parser using nothing but regular expressions?
<shevy> pard did we not start with that syntax error yesterday :D
benhuda has joined #ruby
<shevy> norc I dunno... perhaps he did in the past when he was using perl. he is much older now, like larry wall's younger brother
agent_white has quit [Quit: brb]
<shevy> ruby people tend to do extremely weird stuff when they are bored
agent_white has joined #ruby
<norc> pard: If you really want to write unreadable code, I recommend you give perl a try. You will have much better success there. ;-)
<pard> no ; it was the L.getInt /e/ - 5 thing (for which i was given an answr)
atomical has joined #ruby
<shevy> yeah, // makes regex
<shevy> >> /foo/.class
<ruboto> shevy # => Regexp (https://eval.in/457758)
<pard> norc, sir, i'm doing a torture test on the parser;by shevy!
<shevy> but it still always is L.getInt(/e/ - 5)
<shevy> Ox0dea what happened to [k ?
<pard> >> class L; def L.getInt(e) 5 end end; L.getInt /e/ - 5
<ruboto> pard # => undefined method `-' for /e/:Regexp (NoMethodError) ...check link for more (https://eval.in/457760)
<pard> >> class L; def L.getInt(e) 5 end end; L.getInt / 5 / - 5
<ruboto> pard # => wrong number of arguments (0 for 1) (ArgumentError) ...check link for more (https://eval.in/457761)
Motoservo has joined #ruby
<shevy> hmm
<pard> its quirky
<shevy> did you find a bug there
<pard> i presume no; a quirk
<pard> i wonder why they have not yet considerd a man-made parser
<pard> much like the llvm's cpp thing
<shevy> why is this not a bug?
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pard> i have been told it's all about semi-sginificant space
beauby has quit [Ping timeout: 260 seconds]
Motoservo has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
sanjayu has quit [Ping timeout: 246 seconds]
<norc> pard: Because Matz said so.
<shevy> ah I see
<pard> you naild it pard :)
chorgi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pard> i wonder though, making parens an optional thing has little merits
<pard> i might be wrong though
crime has joined #ruby
sanjayu has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
yashinbasement has quit [Ping timeout: 265 seconds]
agent_white has quit [Remote host closed the connection]
odigity has quit [Ping timeout: 240 seconds]
roxtrongo has joined #ruby
<pard> it's much like a misleading ad -- <h1>"it's optional!"</h1> <h12>"except where it is not"</h12>
agent_white has joined #ruby
Igorshp has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt1 has quit [Ping timeout: 246 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sanjayu has quit [Ping timeout: 244 seconds]
<norc> pard: No it is still optional.
<pard> what about this
<norc> pard: Operator precedence does not affect this.
<norc> >> def a(a) 2.0 end; 3 / (a 5)
<ruboto> norc # => 1.5 (https://eval.in/457781)
<norc> See?
<norc> The () to call a is still optional.
<pard> >> def l(e) e end; print l 5, l 5
<ruboto> pard # => /tmp/execpad-7928da07e314/source-7928da07e314:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/457782)
<pard> ?
<pard> it's optional where it's not actually requird
<norc> >> def l(e) e end; print (l 5), (l 5)
<ruboto> norc # => 55nil (https://eval.in/457783)
andykingking has joined #ruby
<norc> It is still optional.
andykingking has left #ruby [#ruby]
<pard> unless where it is not, like the one you gave
<norc> pard: And I showed you how it is optional.
<pard> thanks
<norc> I made two calls to l without ().
auzty has quit [Quit: Leaving]
<norc> The extra paranthesis I added are not for method calls, but to guide the parser.
<pard> still they are requir'd, thoug not to signify an invocation
<norc> Just like paranthesis can be required various mathematical notations to change the precendence of operators. They are still *optional*
Pupp3tm4st3r has joined #ruby
<pard> but print l 5, l 5 won't parse; that's what i mean sir
tk__ has joined #ruby
benlovell has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
user083 has joined #ruby
<pard> i cede though, that might be the parser's stupidity in reducing print l 5, l 5 as (print l 5, l) 5
<norc> pard: Nope, thats not it.
jdawgaz has joined #ruby
<norc> >> def l(e) e end; [l 5, l 5]
Pupeno has quit [Quit: Leaving...]
<ruboto> norc # => /tmp/execpad-54ca05e29043/source-54ca05e29043:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/457784)
<norc> Same error.
user083 has quit [Read error: Connection reset by peer]
<pard> it actually is
Igorshp has quit [Remote host closed the connection]
flughafen has quit [Remote host closed the connection]
jwaldrip has joined #ruby
<pard> it would actually parse as (l 5, l) 5
Igorshp has joined #ruby
<pard> which is highly annoying parser stupidity (HAPS)
<norc> uhh
davedev24 has joined #ruby
<pard> yes :\
<norc> l(5, l 5) you mean
Xzanron has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
user083 has joined #ruby
p1k has quit [Quit: Leaving]
<norc> That however looks broken.
govg has quit [Ping timeout: 255 seconds]
jwaldrip has quit [Ping timeout: 260 seconds]
user083 has quit [Read error: Connection reset by peer]
benlovell has joined #ruby
russt has quit [Ping timeout: 240 seconds]
<pard> norc, yes, that is the way the parser should do it , but it won't :\
chorgi has joined #ruby
stardiviner has quit [Ping timeout: 256 seconds]
subscope has joined #ruby
user083 has joined #ruby
<norc> pard: No it does that actually. Put it in you still get the same error message.
<pard> even in case of l(5, l 5), HAPS makes it parse to be l((5, l) 5)
<norc> >> def l(e) e end; [5, l 5]
<ruboto> norc # => /tmp/execpad-df983d92401b/source-df983d92401b:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/457801)
CloCkWeRX has quit [Ping timeout: 256 seconds]
jimms has quit [Remote host closed the connection]
<pard> Should Old Men Not Be Mad? :)
joonty has quit [Quit: joonty]
<pard> 5, l 5 will become (5, l) 5
russt has joined #ruby
<pard> what is it but HAPS? :)
benlovell has quit [Ping timeout: 240 seconds]
allcentury has quit [Ping timeout: 252 seconds]
Motoservo has joined #ruby
user083 has quit [Read error: Connection reset by peer]
Feyn has quit [Quit: Leaving]
thejoecarroll_ has quit [Quit: ZNC - http://znc.in]
metalic has quit [Ping timeout: 250 seconds]
user083 has joined #ruby
user083 has quit [Read error: Connection reset by peer]
* pard is going to do a parser-on-chip, in SysC
thejoecarroll has joined #ruby
tak1n has joined #ruby
tak1n has quit [Quit: Leaving]
tak1n has joined #ruby
JammyHammy has quit [Read error: Connection reset by peer]
pard has quit [Quit: Leaving]
Motoservo has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
sdwrage has joined #ruby
user083 has joined #ruby
user083 has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby
freerobby has quit [Client Quit]
odigity has joined #ruby
m3_del has joined #ruby
akem has quit [Read error: No route to host]
stannard has joined #ruby
akem has joined #ruby
jgt1 has joined #ruby
user083 has joined #ruby
user083 has quit [Read error: Connection reset by peer]
HayesHimself has joined #ruby
skinux has joined #ruby
m3_del has quit [Ping timeout: 265 seconds]
stannard has quit [Ping timeout: 240 seconds]
<skinux> Anyone have issues installing gems because of SSL errors?
CloCkWeRX has joined #ruby
jaygen has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
dmitch has joined #ruby
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
<jhass> windows?
cwong_on_irc has joined #ruby
synthroid has quit []
quazimodo has joined #ruby
iamvery has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cwong_on_irc has quit [Max SendQ exceeded]
<jhass> skinux: ^
naftilos76 has quit [Ping timeout: 272 seconds]
cwong_on_irc has joined #ruby
<skinux> Yes
<skinux> 10
<jhass> gem -v?
cajone has joined #ruby
<skinux> 2.4.8
user083 has joined #ruby
Chaoborid has joined #ruby
<jhass> mmh, weird
user083 has quit [Read error: Connection reset by peer]
<skinux> ?
<jhass> well, then I don't know. The common problem there was an old rubygems versions with an outdated cert bundled
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
user083 has joined #ruby
Chaoborid has quit [Client Quit]
binaryplease has joined #ruby
akem2 has joined #ruby
akem has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
user083 has quit [Read error: Connection reset by peer]
techsethi has quit [Quit: techsethi]
Rickmasta has joined #ruby
joonty has joined #ruby
elaptics is now known as elaptics`away
iamvery has joined #ruby
basiles has joined #ruby
nzst has joined #ruby
rshetty_ has joined #ruby
<nzst> Hi, I use rbenv and am working on an upgrade mechanism for ruby versions through puppet. I am wondering how I can check which ruby unicorn, rails and my gems are currently running under
benlovell has joined #ruby
rshetty_ has quit [Remote host closed the connection]
rbennacer has joined #ruby
rshetty_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
malconis has joined #ruby
<skinux> I believe this is the gem it's trying to run rubygems-update-2.0.3.gem
malconis has quit [Remote host closed the connection]
user083 has joined #ruby
rshetty_ has quit [Remote host closed the connection]
shredding has joined #ruby
malconis has joined #ruby
<skinux> Or install
allcentury has joined #ruby
user083 has quit [Read error: Connection reset by peer]
aswen has joined #ruby
RegulationD has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
<jhass> skinux: how come?
mag42c has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
<skinux> I don't know. The main goal is to install rails
<jhass> nzst: not sure there's a way beyond /proc/<pid>/exe
RegulationD has joined #ruby
<jhass> skinux: but what lead you to that assumption?
tvw has quit [Ping timeout: 264 seconds]
Fire-Dragon-DoL has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
benlovell has quit [Ping timeout: 250 seconds]
benlovell has joined #ruby
RegulationD has joined #ruby
skweek has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
jonnie has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
metalic has joined #ruby
`tim` has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
jimms has joined #ruby
jimms has quit [Read error: Connection reset by peer]
GnuYawk has quit [Ping timeout: 272 seconds]
diegoaguilar has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
Chaoborid has joined #ruby
jimms has joined #ruby
tkuchiki has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
Vile` has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
riotjones has quit [Remote host closed the connection]
RegulationD has joined #ruby
user083 has joined #ruby
cdg has joined #ruby
gambl0re has quit [Ping timeout: 255 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
user083 has quit [Read error: Connection reset by peer]
Vile` has joined #ruby
waxjar has quit [Remote host closed the connection]
odigity has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
blackoperat has joined #ruby
rbennacer has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 250 seconds]
froginvasion has quit [Quit: Leaving]
tkuchiki has joined #ruby
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
everbot has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
rwilcox has joined #ruby
cdg has quit [Remote host closed the connection]
<arup_r> atmosx: hi
blackoperat has quit [Client Quit]
pu22l3r has joined #ruby
cdg has joined #ruby
beauby has joined #ruby
Chaoborid has quit [Quit: WeeChat 1.3]
episage has joined #ruby
millerti has joined #ruby
Chaoborid has joined #ruby
Rinzlit has joined #ruby
Motoservo has joined #ruby
NeverDie has joined #ruby
RobertBirnie has joined #ruby
Xeago has joined #ruby
millerti has quit [Max SendQ exceeded]
user083 has joined #ruby
jonnie has joined #ruby
user083 has quit [Read error: Connection reset by peer]
NeverDie has quit [Client Quit]
platzhirsch has joined #ruby
Rinzlit_ has quit [Ping timeout: 246 seconds]
beauby has quit [Ping timeout: 265 seconds]
Motoservo has quit [Ping timeout: 240 seconds]
sgambino has joined #ruby
RobertBirnie has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwnd_nfsw has quit [Quit: Leaving]
astrobunny has quit [Remote host closed the connection]
govg has joined #ruby
RobertBirnie has joined #ruby
odigity has joined #ruby
inteq has quit [Remote host closed the connection]
dhjondoh has quit [Ping timeout: 264 seconds]
user083 has joined #ruby
user083 has quit [Read error: Connection reset by peer]
centrx has joined #ruby
dhjondoh has joined #ruby
lkba has joined #ruby
lkba_ has joined #ruby
decoponio has joined #ruby
iceden has quit [Ping timeout: 256 seconds]
sankaber has joined #ruby
beauby has joined #ruby
basiles has joined #ruby
RegulationD has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has joined #ruby
verdoc has quit [Ping timeout: 240 seconds]
user083 has joined #ruby
sankaber has quit [Remote host closed the connection]
stannard has joined #ruby
sankaber has joined #ruby
nfk has joined #ruby
user083 has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 250 seconds]
edenc has joined #ruby
Bloomer has joined #ruby
Guest53 has joined #ruby
m3_del has joined #ruby
<izzol> there is anything else then nokogiri for parsing HTML page?
verdoc has joined #ruby
<izzol> I'm tired to fighting with nokogiri installation process.
nemo__ has quit [Remote host closed the connection]
<havenwood> izzol: Oga
mag42c has quit [Quit: mag42c]
solocshaw has quit [Ping timeout: 240 seconds]
<izzol> Successfully installed oga-1.3.1
<izzol> finally :-)
<izzol> havenwood: thanks, I'm going to try it.
InternetFriend has joined #ruby
InternetFriend has quit [Client Quit]
Guest53 has quit [Client Quit]
akem2 has quit [Remote host closed the connection]
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
m3_del has quit [Ping timeout: 244 seconds]
user083 has joined #ruby
user083 has quit [Read error: Connection reset by peer]
iceden has joined #ruby
darthdeus has left #ruby ["Linkinus - http://linkinus.com"]
aufi has quit [Ping timeout: 272 seconds]
edenc has quit [Quit: ZNC - 1.6.0 - http://znc.in]
solocshaw has joined #ruby
edenc has joined #ruby
whippythellama has joined #ruby
sanjayu has joined #ruby
<nzst> jhass: my terminal couldn't handle the characters in /proc/<pid>/exe
Pupeno has joined #ruby
Pupeno has joined #ruby
Guest53 has joined #ruby
Igorshp has joined #ruby
sunya7a has quit [Quit: leaving]
mag42c has joined #ruby
last_staff has quit [Remote host closed the connection]
sunya7a has joined #ruby
sunya7a has quit [Client Quit]
mikolalysenko has joined #ruby
s2013 has joined #ruby
pwnd_nsfw has joined #ruby
<jhass> nzst: of course not, it's a link to the binary
jgpawletko has joined #ruby
marahin has joined #ruby
hughjass has quit []
<nzst> jhass: oh, i wonder if there is a file in thet proc/<pid> directory that might tell me what ruby version is running my unicorn
hughjass has joined #ruby
dnomyar has joined #ruby
<nzst> i ack-grep and it seems like it's using the expected version, but i don't know my way around that directory at all
hughjass has left #ruby [#ruby]
<yorickpeterse> Yeah Oga is pretty neat
l_tonz has joined #ruby
dhjondoh has quit [Ping timeout: 272 seconds]
<jhass> nzst: /proc/<pid>/exe -v
Fire-Dragon-DoL has quit [Remote host closed the connection]
<norc> >> "".match(/(.*)/)[1]
jwaldrip has joined #ruby
<ruboto> norc # => "" (https://eval.in/457859)
<norc> Why does this give me an empty string rather than nil?
jdawgaz has joined #ruby
<nzst> jhass: awesome, that was the trick, thanks
metalic has quit [Ping timeout: 260 seconds]
<yorickpeterse> norc: because you're matching something that's optional
Xeago has quit [Remote host closed the connection]
hughjasss has joined #ruby
<yorickpeterse> >> ''.match(/.*/)
<ruboto> yorickpeterse # => #<MatchData ""> (https://eval.in/457860)
<yorickpeterse> >> ''.match(/.+/)
<ruboto> yorickpeterse # => nil (https://eval.in/457861)
<norc> yorickpeterse: Ah. I guess that makes sense.
<marahin> Hello, I'm having an issue where I try to access remote API over http. Everything is described on gist: https://gist.github.com/Marahin/436861c3708ed439e4a1
<havenwood> >> "".match /x*/
<ruboto> havenwood # => #<MatchData ""> (https://eval.in/457862)
user083 has joined #ruby
<norc> >> "".match(/(?:(.+)?)/)[1]
<ruboto> norc # => nil (https://eval.in/457863)
<norc> So that is my fix then?
user083 has quit [Read error: Connection reset by peer]
<norc> I mean I want the match data if it matches, and a nil otherwise.
<yorickpeterse> eh, you'd have to use something like +
dnomyar has quit [Ping timeout: 265 seconds]
<norc> I used it there, and surrounded with a ? to make the match optional again (but that group is not referenced)
jwaldrip has quit [Ping timeout: 260 seconds]
hiyosi has joined #ruby
<hughjasss> marahin can u gist the response i cant be bothered to run snippet
<norc> Seems to work. Thanks for the help yorickpeterse
<marahin> hughjasss: oh, of course, one moment
cwong_on_irc has quit [Quit: Leaving.]
Xeago has joined #ruby
l_tonz has quit [Ping timeout: 255 seconds]
ruurd has quit [Ping timeout: 244 seconds]
<norc> All the hidden bugs Im suddenly finding still after a couple hundred tests. :)
RegulationD has quit [Remote host closed the connection]
<marahin> hughjasss: I added the resp.txt file, https://gist.github.com/Marahin/436861c3708ed439e4a1
RegulationD has joined #ruby
<marahin> response.txt*
<marahin> it has been pointed out that I might not "translate" from gzip format, I'm not really sure how to implement that then...
joncol has joined #ruby
Guest44110 has quit [Ping timeout: 268 seconds]
basiles has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hughjasss> \x1f\x8b you gettin gzip
ibouvousaime has quit [Ping timeout: 264 seconds]
jonnie has quit [Quit: leaving]
Aswebb_ has joined #ruby
tk__ has quit [Quit: ばいばい]
<joncol> Are there any EventMachine users here?
<hughjasss> marahin if you accessing an api have a look at how the response needs to come back in doco
hanmac has quit [Ping timeout: 246 seconds]
<marahin> hughjasss: can you point me in some direction? I don't really get what you just said
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ibouvousaime has joined #ruby
Dar has joined #ruby
kalusn has joined #ruby
<hughjasss> marahin give me 5 seconds ill load it up
<marahin> hughjasss: thank you very much
jwaldrip has joined #ruby
doublemalt_ has joined #ruby
dopamean_ has quit [Ping timeout: 246 seconds]
Guest53 has joined #ruby
chorgi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
user083 has joined #ruby
jwaldrip has quit [Read error: Connection reset by peer]
Pupp3tm4st3r has quit [Read error: Connection reset by peer]
failshell has joined #ruby
umgrosscol has joined #ruby
Pupp3tm4st3r has joined #ruby
jwaldrip has joined #ruby
Chaoborid has quit [Quit: WeeChat 1.1.1]
wldcordeiro has joined #ruby
Chaoborid has joined #ruby
user083 has quit [Read error: Connection reset by peer]
dhjondoh has joined #ruby
Chaoborid has quit [Client Quit]
lkba_ has quit [Ping timeout: 268 seconds]
Pupp3tm4st3r has quit [Read error: Connection reset by peer]
joncol has quit [Quit: leaving]
jobewan has joined #ruby
Pupp3tm4st3r has joined #ruby
<hughjasss> marahin is this api publically accessable?
NeverDie has joined #ruby
<marahin> hell, I think so?
<hughjasss> no keys needed?
nzst has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 260 seconds]
<marahin> let me check, maybe it's my browser's session that allows me to access it
nzst has joined #ruby
riotjones has joined #ruby
<hughjasss> im getting []
chorgi has joined #ruby
dhjondoh has quit [Client Quit]
<marahin> hughjasss: indeed I just noticed it, when I create a new browser session it responses with "[]"
<hughjasss> my guess is its a private/protected api and you need to pass over an access key in the headers or similar
<marahin> i logged in steamcommunity.com, however I am currently logged off - I guess session stores something that still allows you to access API but doesnt keep you logged in
tesuji_ has quit [Read error: Connection reset by peer]
<marahin> huh
codecop has quit [Remote host closed the connection]
<marahin> hughjasss: well shouldn't I be available to look up the access key from chrome devtools?
<hughjasss> not necessarily
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hughjasss> it depends how the api is secured
mary5030 has joined #ruby
chorgi has quit [Max SendQ exceeded]
jwaldrip has quit [Ping timeout: 272 seconds]
<hughjasss> my suggestions are to get a api client like postman and play around in it then convert it ruby code once you understand it better
dopieee has joined #ruby
Igorshp has quit [Remote host closed the connection]
JDiPierro has joined #ruby
jimms has quit []
mary5030 has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 244 seconds]
kerunaru has quit [Read error: No route to host]
metalic has joined #ruby
episage has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
Xiti has quit [Quit: Xiti]
krz has joined #ruby
nzst has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
sonOfRa has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
user083 has joined #ruby
hanmac has joined #ruby
user083 has quit [Read error: Connection reset by peer]
jdawgaz has joined #ruby
ta has quit [Remote host closed the connection]
sonOfRa has joined #ruby
A124 has quit [Ping timeout: 268 seconds]
shinenelson has quit [Quit: Connection closed for inactivity]
kimegede has quit [Quit: Leaving...]
rbennacer has joined #ruby
binaryplease has quit [Ping timeout: 252 seconds]
A124 has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
user083 has joined #ruby
user083 has quit [Read error: Connection reset by peer]
gusTester has joined #ruby
axl_ has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
Xiti has joined #ruby
kirun_ has joined #ruby
kirun_ has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 246 seconds]
jwaldrip has joined #ruby
Alayde has joined #ruby
dopamean_ has joined #ruby
kirun has quit [Ping timeout: 264 seconds]
monsieurp has quit [Ping timeout: 255 seconds]
but3k4 has quit [Ping timeout: 244 seconds]
but3k4 has joined #ruby
freerobby has joined #ruby
jessemcgilallen has joined #ruby
GhettoCode has joined #ruby
dravine has quit [Ping timeout: 246 seconds]
Dar has quit [Ping timeout: 246 seconds]
GhettoCode has quit [Client Quit]
bonemind has quit [Quit: WeeChat 1.0]
Alayde has quit [Client Quit]
kerunaru has joined #ruby
Alayde has joined #ruby
slawrence00 has joined #ruby
rshetty has joined #ruby
bonemind has joined #ruby
mag42c has quit [Quit: mag42c]
agent_white has quit [Remote host closed the connection]
dravine has joined #ruby
rodfersou is now known as rodfersou|lunch
gregf has joined #ruby
Rollabunna has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty has quit [Remote host closed the connection]
Rollabunna has joined #ruby
BTRE has quit [Quit: Leaving]
user083 has joined #ruby
rshetty has joined #ruby
user083 has quit [Read error: Connection reset by peer]
zotherstupidguy has quit [Quit: WeeChat 1.3]
benlovell has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
araujo_ has joined #ruby
monsieurp has joined #ruby
monsieurp has joined #ruby
araujo_ has quit [Max SendQ exceeded]
m3_del has joined #ruby
araujo_ has joined #ruby
dnomyar has joined #ruby
benlovell has joined #ruby
Fire-Dragon-DoL has joined #ruby
Rollabunna has quit [Ping timeout: 256 seconds]
bruno-_ has joined #ruby
araujo_ has quit [Client Quit]
araujo has quit [Ping timeout: 256 seconds]
BTRE has joined #ruby
kramsee_ has quit [Ping timeout: 240 seconds]
nemo_ has joined #ruby
musicmatze has quit [Ping timeout: 240 seconds]
mordocai has joined #ruby
etyety has quit [Ping timeout: 240 seconds]
rshetty has quit [Ping timeout: 265 seconds]
etyety has joined #ruby
Jardayn has joined #ruby
m3_del has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
dnomyar has quit [Ping timeout: 240 seconds]
towski_ has joined #ruby
rodfersou|lunch has quit [Quit: leaving]
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
iateadonut has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
user083 has joined #ruby
user083 has quit [Read error: Connection reset by peer]
ibouvousaime_ has joined #ruby
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Client Quit]
joncol has joined #ruby
Wompy has joined #ruby
musicmatze has joined #ruby
mag42c has joined #ruby
<joncol> Is there any recommended way of defining in-place an object with a specific method `update`? Something like a local lambda only used for one thing? I could do `Class.new { def update; ...; end }.new` but that doesn't look very nice.
user083 has joined #ruby
freerobby has quit [Quit: Leaving.]
user083 has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
ef__ has joined #ruby
rodfersou has joined #ruby
<joncol> Maybe I cannot even declare a class in a function...
chopin has joined #ruby
crime has quit [Quit: Connection closed for inactivity]
kramsee has joined #ruby
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
beauby has quit [Read error: Connection reset by peer]
<adaedra> just a one time object?
<apeiros> Object.new.tap { |o| o.define_method(:update) { … } }
diegoaguilar has quit [Ping timeout: 272 seconds]
<apeiros> but this has the sound of code smell
<apeiros> this has the air of a code smell? yeah, I think that fits better :)
tvw has quit []
speaking1ode has quit [Ping timeout: 250 seconds]
tagrudev has quit [Remote host closed the connection]
tvw has joined #ruby
benlovel1 has joined #ruby
dopieee has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
arthurix_ has joined #ruby
ryba has quit [Ping timeout: 246 seconds]
synthroid has joined #ruby
karapetyan has joined #ruby
paulcsmith has joined #ruby
paulcsmith has quit [Remote host closed the connection]
rodfersou is now known as rodfersou|lunch
beauby has joined #ruby
Xzanron has quit [Quit: Leaving]
aganov has quit [Remote host closed the connection]
AnoHito_ has quit [Ping timeout: 260 seconds]
l_tonz has joined #ruby
AnoHito has joined #ruby
arthurix has quit [Ping timeout: 260 seconds]
user083 has joined #ruby
treehug88 has joined #ruby
IrishGringo has joined #ruby
dnomyar has joined #ruby
beauby has quit [Read error: Connection reset by peer]
AnoHito has quit [Read error: Connection reset by peer]
vasilakisfil has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
l_tonz has quit [Remote host closed the connection]
naztharune has quit [Ping timeout: 264 seconds]
blaxter has quit [Ping timeout: 252 seconds]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
Guest53 has joined #ruby
y0da has joined #ruby
dfinninger has joined #ruby
dfockler has joined #ruby
karapetyan has quit [Remote host closed the connection]
mag42c_ has joined #ruby
p0wn3d__ has joined #ruby
mag42c has quit [Ping timeout: 260 seconds]
mag42c_ is now known as mag42c
chouhoulis has joined #ruby
beauby has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
shock_one has joined #ruby
karapetyan has quit [Remote host closed the connection]
p0wn3d has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
inteq has joined #ruby
aswen has quit [Quit: WeeChat 1.3]
eminencehc has joined #ruby
<yorickpeterse> So before I venture forth into hell, is there a Gem out there capable of parsing PostgreSQL's "EXPLAIN ANALYZE" output?
<yorickpeterse> All I can find are Gems that can parse SQL queries
<yorickpeterse> but not the output of EXPLAIN
nemo_ has quit [Remote host closed the connection]
jessemcgilallen has quit [Quit: jessemcgilallen]
roxtrongo has quit [Remote host closed the connection]
rcvalle has joined #ruby
beauby has quit [Ping timeout: 252 seconds]
Voker57 has joined #ruby
<norc> yorickpeterse: What do you mean by "parsing" ?
dmitch has joined #ruby
karapetyan has quit [Remote host closed the connection]
<yorickpeterse> Turning it from the string based form into something more meaningful that can be queried
ekinmur has joined #ruby
<yorickpeterse> e.g. being able to walk through the steps of a query plan, see the columns a step uses, the time it took, etc
<norc> yorickpeterse: That is probably the closest thing around
chouhoulis has quit [Remote host closed the connection]
arthurix has joined #ruby
darkf has quit [Quit: Leaving]
<norc> yorickpeterse: Anyway, switch on JSON output for your explain path, and then you can play with the tree yourself.
<yorickpeterse> ergh, Perl
<yorickpeterse> wait
<yorickpeterse> EXPLAIN ANALYZE can spit out JSON?
<yorickpeterse> ffffuuuuckkk
blaxter has joined #ruby
<norc> :-)
<norc> YAML too.
<yorickpeterse> yay not having to write a parser
<yorickpeterse> <3
<norc> Well, it still is a complex task
crunk_bear has joined #ruby
crunk_bear has quit [Max SendQ exceeded]
tkuchiki has quit [Remote host closed the connection]
beauby has joined #ruby
barhum2013 has joined #ruby
Motoservo has joined #ruby
arthurix_ has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
jas02 has quit [Quit: jas02]
RobertBirnie has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
<yorickpeterse> Huh, seems it can't do EXPLAIN ANALYZE in JSON, only regular EXPLAIN
<yorickpeterse> unless I suck at the syntax
vr_mex has joined #ruby
ef__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
caliostro has left #ruby ["Exit-Chat"]
emilkarl has joined #ruby
jdawgaz has joined #ruby
<yorickpeterse> oh durr
<yorickpeterse> explain (format json, analyze) ...
<yorickpeterse> god these Postgres people really think of everything
<yorickpeterse> I wonder if Pg can also do my laundry
norc has quit [Ping timeout: 246 seconds]
swgillespie has joined #ruby
joncol has quit [Quit: leaving]
swgillespie has quit [Client Quit]
<workmad3> yorickpeterse: I think that's on the roadmap for 9.7
<yorickpeterse> create extension pg_laundry;
lkba has joined #ruby
snockerton has joined #ruby
ruurd has joined #ruby
Igorshp has quit [Remote host closed the connection]
vr_mex has quit [Quit: vr_mex]
wldcordeiro has quit [Ping timeout: 250 seconds]
asad_ has joined #ruby
gusTester has left #ruby [#ruby]
dopieee has joined #ruby
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
<asad_> How do keyword arugments work? Does ruby take a hash and create local variables with the same name as hash keys?
Igorshp has joined #ruby
Timba-as_ has joined #ruby
Motoservo has joined #ruby
<yorickpeterse> Local variables are basically "indexes" so to speak
<yorickpeterse> So for example
<yorickpeterse> def some_method(foo); foo; end
<yorickpeterse> could basically be replaced with
<yorickpeterse> def some_method(0); 0; end
<yorickpeterse> IIRC keyword arguments map to local variables in a similar way, though MRI does use a Hash internall to store the keyword arguments
<yorickpeterse> * internal
tomeara has joined #ruby
ESpiney has joined #ruby
roger_rabbit has joined #ruby
tomeara has quit [Client Quit]
<asad_> when passing keyword args, we're actually passing a hash right?
beauby has quit [Ping timeout: 250 seconds]
Timba-as__ has joined #ruby
<yorickpeterse> Don't fully remember how MRI implemented it from the top of my head
<Ox0dea> asad_: Essentially, yes, but not technically.
<asad_> Ox0dea: Is there a good article online on how keyword args work technically?
Timba-as has quit [Ping timeout: 264 seconds]
<asad_> Ox0dea: I couldn't find anything.
<Ox0dea> asad_: The source is authoritative.
skade has joined #ruby
Timba-as_ has quit [Ping timeout: 240 seconds]
ReK2 has joined #ruby
willardg has joined #ruby
<Ox0dea> asad_: For YARV, they are indeed parsed and converted to the internal hash structure, and from there "injected" into the local variable table, more or less.
northfurr has joined #ruby
NeverDie has joined #ruby
towski_ has quit [Remote host closed the connection]
K1MOS has joined #ruby
emilkarl has quit [Quit: emilkarl]
<asad_> Ox0dea: What about the default keyword args in a method definition? Does ruby internally create local variables with those values initially?
<Ox0dea> asad_: Yes.
<asad_> Ox0dea: The default args in a method definition look like a hash. Is it a hash?
<Ox0dea> asad_: It's not a Hash at the "Ruby level" at the time you define the method, but it so very quickly becomes one under the hood that the distinction is of little consequence.
northfurr has quit [Client Quit]
<Ox0dea> Note the `getlocal` opcoes near the bottom.
<Ox0dea> *opcodes
northfurr has joined #ruby
<asad_> Ox0dea: I have no idea what that is...
fedexo has joined #ruby
<Ox0dea> asad_: Ruby is compiled to bytecode and it's the bytecode that gets interpreted.
aufi has joined #ruby
barhum2013 has quit [Quit: barhum2013]
<asad_> Ox0dea: Yeah I know that...I just don't understand the output..
<Ox0dea> In any case, it shows that keyword arguments do become locals.
cyle has joined #ruby
northfurr has quit [Client Quit]
keen________ has quit [Read error: Connection reset by peer]
rismoney1 has joined #ruby
m3_del has joined #ruby
barhum2013 has joined #ruby
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
timonv has joined #ruby
weihan has quit [Ping timeout: 260 seconds]
keen________ has joined #ruby
Motoservo has joined #ruby
cwong_on_irc has joined #ruby
trautwei_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has joined #ruby
tak1n has quit [Remote host closed the connection]
asad_ has quit [Quit: Page closed]
dionysus69 has joined #ruby
m3_del has quit [Ping timeout: 268 seconds]
s2013 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
binaryplease has joined #ruby
wprice has quit [Quit: wprice]
<Ox0dea> Does this conclusively prove that YARV doesn't allocate a Ruby Hash for keyword signatures? https://eval.in/457921
sameerynho has quit [Quit: Leaving]
mengu has quit [Ping timeout: 240 seconds]
<yorickpeterse> Ox0dea: No
<Ox0dea> I figured not.
<SebastianThorn> is the gem oga the new cool kid on the block?
<yorickpeterse> Ox0dea: because IIRC it doesn't allocate Hash but the underlying st_ stuff
<Ox0dea> yorickpeterse: Yes, I know that part.
<yorickpeterse> but I last looked into this when kwargs were first introduced, so I could be wrong
<yorickpeterse> SebastianThorn: yes
<yorickpeterse> it's _very_ cool
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
barhum2013 has quit [Quit: barhum2013]
wldcordeiro has joined #ruby
p0wn3d has joined #ruby
Xeago has quit [Remote host closed the connection]
<Ox0dea> What should `Prime.include?` do?
<Ox0dea> >> Class.instance_methods & Enumerable.instance_methods
<ruboto> Ox0dea # => [:include?] (https://eval.in/457922)
metalic has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
p0wn3d__ has quit [Ping timeout: 240 seconds]
willardg has quit [Ping timeout: 255 seconds]
<Ox0dea> This "problem" is also present for the Gem::Specification class, but it at least returns `false` rather than looping forever looking for a module in the primes.
max_Q_ has quit [Ping timeout: 268 seconds]
BSaboia has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
based_pdev has quit [Read error: Connection reset by peer]
based_pdev has joined #ruby
mrtomme has quit [Ping timeout: 260 seconds]
eminencehc has quit [Remote host closed the connection]
<shevy> is .include? not a general method?
ibouvousaime_ has quit [Quit: Leaving]
Xeago has joined #ruby
<Ox0dea> It's an instance method on Class and Enumerable.
ftj has joined #ruby
<Ox0dea> s/Class/Module/, technically.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
eminencehc has joined #ruby
<Ox0dea> Prime and Gem::Specification both have Enumerable mixed into their singleton classes, which makes for this unfortunate ambiguity.
mrtomme has joined #ruby
colegatron has quit [Read error: Connection reset by peer]
<Ox0dea> `Prime.include?(Enumerable)` "should" be true, but so should `Prime.include?(17)`.
<Ox0dea> Only the latter is the case at present.
pullcheezy has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
<Ox0dea> >> require 'prime'; ObjectSpace.each_object(Class).select { |c| c.include? Enumerable }
<ruboto> Ox0dea # => (https://eval.in/457924)
<Ox0dea> ^ The dog that bit me.
<Ox0dea> I think it's a bug, but specializing `Prime.include?` also seems weird for some reason.
arthurix_ has joined #ruby
tno has joined #ruby
polishdub has quit [Quit: Leaving]
Motoservo has joined #ruby
l_tonz has joined #ruby
willardg has joined #ruby
stardiviner has quit [Ping timeout: 256 seconds]
fedexo has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
arthurix has quit [Ping timeout: 256 seconds]
aufi has quit [Quit: Konversation terminated!]
Motoservo has quit [Client Quit]
arthurix has joined #ruby
darthdeus has joined #ruby
redtomahawk has joined #ruby
tvw has quit [Read error: Connection reset by peer]
l_tonz has quit [Ping timeout: 264 seconds]
polishdub has joined #ruby
arthurix_ has quit [Ping timeout: 260 seconds]
rodfersou|lunch is now known as rodfersou
Peg-leg has quit [Quit: Leaving.]
Emmanuel_Chanel has joined #ruby
Soda has joined #ruby
aspiers has joined #ruby
stan has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
spider-mario has quit [Ping timeout: 246 seconds]
mark2 has quit [Quit: Leaving.]
<eam> oh ruby
ryba has joined #ruby
<shevy> eam woke up!
beast has quit [Quit: Leaving]
* Ox0dea used Hypnosis.
stan has joined #ruby
<yorickpeterse> "ActiveRecord is, in my opinion, the best implementation of an ORM I have ever worked with."
<yorickpeterse> "However, often I find myself having to drop into Arel or straight up SQL in order to get what I need."
daffy_duck has quit [Remote host closed the connection]
<yorickpeterse> ...
dorei has joined #ruby
<yorickpeterse> ergh, stupid AR
snockerton has quit [Ping timeout: 265 seconds]
pullcheezy has quit [Quit: Textual IRC Client: www.textualapp.com]
rbennacer has quit [Remote host closed the connection]
jordanm has quit [Quit: Konversation terminated!]
RobertBirnie has joined #ruby
jordanm has joined #ruby
towski_ has joined #ruby
tak1n has joined #ruby
kirun has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
niemcu has joined #ruby
govg has quit [Ping timeout: 246 seconds]
HayesHimself has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thun has joined #ruby
corpsicle has left #ruby [#ruby]
<shevy> hah epic contradiction
<shevy> I guess it won't do your laundry after all
<thun> If have a file hashes.rb with a simple hash declared in it (not in a class) and I include it with require './hashes.rb' How do I access the hashes declared in hashes.rb?
denver has joined #ruby
<thun> Is it possible?
<shevy> a coding thuna!
Pumukel has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
<shevy> thun several ways; a very simple and primitive one is to make your hash a constant like HASH = {}
<thun> shevy: It's a config file used in another project. Was trying to just quickly parse out some of the hashes.
<shevy> a better way for longevity of code is to namespace everything; put it into a module or class, use @ there even on the module/class level, use class/module methods to access/manipulate it (or also put it into a hash constant residing in your main namespace)
p0wn3d__ has joined #ruby
<thun> Can I get access to those variables without changing the original hashes.rb?
<Ox0dea> thun: Are they local variables?
<shevy> you can also use $hash which is a sure sign that you did not know of alternatives
<mg^> filthy dollars
<shevy> hah
<shevy> we chould propose ? for global variables in ruby
SCHAAP137 has quit [Remote host closed the connection]
<mg^> No, I've done way worse than that
Xeago has quit [Remote host closed the connection]
troulouliou_div2 has quit [Ping timeout: 252 seconds]
snockerton has joined #ruby
p0wn3d has quit [Ping timeout: 268 seconds]
Timba-as__ has quit [Quit: Be back later ...]
<shevy> thun these are local variables
<Ox0dea> thun: You'll have to use eval, then.
<mg^> I made a singleton class called Global that uses method_missing and a mutex to hold universally accessible things
<Ox0dea> (Don't.)
tkuchiki has quit [Ping timeout: 246 seconds]
<shevy> mg^ I like the name Global
Alayde has left #ruby ["WeeChat 1.1.1"]
troulouliou_div2 has joined #ruby
<mg^> So I can do things like Global.foo = "foo" and then access Global.foo later in another thread...
<shevy> thun this is a cool line here: require '.\hashes.rb'
<thun> Ty ;)
<thun> lol
eminencehc has quit [Remote host closed the connection]
solars has quit [Ping timeout: 264 seconds]
Motoservo has joined #ruby
eminencehc has joined #ruby
binaryplease has quit [Ping timeout: 272 seconds]
benlovell has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
<thun> Ox0dea: How do you mean? I am looking for a quick hack
<Ox0dea> thun: Reconsider.
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlovel1 has quit [Ping timeout: 256 seconds]
<thun> This is a piece of throwaway code, I did not write 'hashes.rb' and can not change it
<thun> But I need to programmatically loop over the hashes
n008f4g_ has joined #ruby
<mg^> Is this homework, by chance?
<thun> No
<thun> I am moving a bunch of variables to another app and might have to do it every now and then.
niemcu has quit [Ping timeout: 256 seconds]
<Ox0dea> > This is a piece of throwaway code
<thun> Yes... it is middleman code to generate other code
aspiers has quit [Ping timeout: 260 seconds]
<thun> But if somone changes the original hashes I will have to re-run
maletor has joined #ruby
<Ox0dea> "Someone"?
<thun> Lol yes
<Ox0dea> Who is "someone" in this context?
<mg^> Ok so you've got this hashes.rb that someone else writes. You need to get at the contents of that, take the data stored in the hashes, at put it somewhere else. That's a correct summary?
<thun> mg^ Ys
<thun> *Yes
<thun> I do not maintain hashes.rb
<Ox0dea> `eval(File.read('hashes.rb'))`, and may the fates frown upon you.
<thun> Lol perfect ty...
troulouliou_div2 has quit [Ping timeout: 265 seconds]
subscope has quit [Quit: Textual IRC Client: www.textualapp.com]
frozenfoxx has joined #ruby
kalusn has quit []
andikr has quit [Remote host closed the connection]
mhib has joined #ruby
m3_del has joined #ruby
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
txtsd has joined #ruby
eminencehc has quit [Remote host closed the connection]
<txtsd> Hi. I have a quick question. How do I call a method that's in a class that's in a module?
eminencehc has joined #ruby
skinux has quit [Ping timeout: 265 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> txtsd: What kind of method?
metalic has joined #ruby
bruno-_ has quit [Ping timeout: 240 seconds]
<Ox0dea> `M::C.foo` if it's a class method, otherwise you'll need to have an instance of M::C to invoke #foo.
<txtsd> It's defined as def extract!
timonv has quit [Ping timeout: 240 seconds]
bonemind has quit [Quit: WeeChat 1.0]
<Ox0dea> txtsd: Are you allowed to say exactly which method you're trying to call?
m3_del has quit [Ping timeout: 265 seconds]
treehug88 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<txtsd> Uh, yes?
rakm has joined #ruby
K1MOS has joined #ruby
<Ox0dea> Which module and class, then?
NeverDie has joined #ruby
<txtsd> It's from gemoji. I'm trying to call extract from extractor.rb
nateberkopec has joined #ruby
redtomahawk has quit [Quit: Leaving...]
pard has joined #ruby
<darix> this change seems wrong. wouldnt a better fix be to use ".compact" instead of ".compact!"? https://github.com/discourse/discourse/commit/6c172a30d3165eeaf6e13006c06441c29a41f3ab
<pard> greet
m3t4l1c_s0ul has joined #ruby
iateadonut has quit [Quit: Leaving.]
<pard> norc you there ?
CooloutAC has left #ruby ["Selakem Shalom, PEACE"]
<Ox0dea> darix: Yes. I don't think that fellow realized `diff` was being reassigned.
skade has joined #ruby
mengu has joined #ruby
karapetyan has quit [Remote host closed the connection]
jdawgaz has joined #ruby
<pard> shevy you there?
<pard> Ox0dea, greetin's
mengu has quit [Remote host closed the connection]
metalic has quit [Ping timeout: 246 seconds]
<Ox0dea> txtsd: So are you opposed to creating your own instance of Emoji::Extractor, or?
<shevy> pard somewhat... have to buy food soon
<shevy> hah
<pard> :)
<shevy> you find the articles that you asked for days ago!
<pard> ?
<txtsd> Ox0dea: I don't know any ruby. I have a python background. I don't know how to do that. I figured I would just need to write one line of code to call that method.
rbowlby has joined #ruby
<shevy> Ox0dea is such a stalker
shredding has quit [Ping timeout: 240 seconds]
<Ox0dea> Of myself...?
<shevy> of everyone
<atmosx> Hello everyone
<pard> what is it ?
<shevy> do I have to stalk you now where you stalk others
<Ox0dea> pard: Just visit the link?
Wompy has quit [Remote host closed the connection]
<Ox0dea> pard: I just thought it was humorous that you linked me to an article to which I linked somebody else not terribly long ago.
karapetyan has joined #ruby
<txtsd> Ox0dea: Is this not all I need to call that method? `Emoji::Extractor.extract()`
<shevy> pard finally he added the explanation, he had me wonder as well ;)
yardenbar has quit [Ping timeout: 250 seconds]
<pard> sorry i'm so slow getting things
<Ox0dea> txtsd: No, because #extract is an instance method, so you need an instance of Emoji::Extractor.
<Ox0dea> Looking at the constructor, you'll need to provide the desired size of the resultant images and in which directory you'd like them placed.
<Ox0dea> Emoji::Extractor.new(42, '/tmp/foo').extract! or some such.
SCHAAP137 has joined #ruby
Wompy has joined #ruby
Wompy has quit [Remote host closed the connection]
Wompy has joined #ruby
<pard> what matters is now i have it , gsl
p0wn3d has joined #ruby
stan has quit [Ping timeout: 250 seconds]
p0wn3d__ has quit [Ping timeout: 240 seconds]
akem has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
mprelude has joined #ruby
e1senhorn has joined #ruby
Blaguvest has joined #ruby
e1senhorn has left #ruby [#ruby]
<pard> shevy , reading it ?
<atmosx> Extending a class like: class Person;attr_reader :sex;end; class Woman < Person; attr_reader :name;end ... is a violation of the Liskov principle right?
rismoney1 has quit [Remote host closed the connection]
synthroid has joined #ruby
jgt1 has quit [Ping timeout: 265 seconds]
<atmosx> Liskov Sub Principle to be more precise.
<txtsd> Ox0dea: I would never have worked out that format. Thanks. Where should I actually call this from though?
<txtsd> Ox0dea: I need to change that EMOJI_TTF variable to point to a custom location, so I can't use the official gem.
p0wn3d__ has joined #ruby
<Ox0dea> txtsd: Just redefine that constant.
pard has left #ruby ["Leaving"]
<frozenfoxx> I'm having some problems with some code (https://github.com/frozenfoxx/hack-doom/blob/master/certain/lib/libcertain.rb). I need to be able to fire off a system command and capture/process its output/input in realtime. I've tried a variety of methods like IO.popen("command") and such but either they all exit early, don't seem to respond to stdin, don't output stdout, or similar. I've gotten somewhat there with Open3.pipeline("command") but don't know
<Ox0dea> txtsd: You'll get a warning, but it won't be the end of the world.
<frozenfoxx> I'm sorry for bugging you folks with it but I'm kindo f at my wit's end, I'm just not really sure what I need to do. The affected code is in line 23 on that file.
<shevy> yeah sounds like a job for popen, you can assign to stdout stderr etc..
<frozenfoxx> shevy: When using IO.popen("command") it just terminates early, don't know why.
<frozenfoxx> shevy: thanks, I'll have a look.
<shevy> no idea about IO.popen, never used it. in ruby there is... system, then there is `` and for anything else there is popen3
p0wn3d has quit [Ping timeout: 240 seconds]
<shevy> I hate how much code one has to write compared to system() or `` there :(
evo2020 has joined #ruby
<frozenfoxx> shevy: Thanks, I'll have a look at this too. If it helps, I'm basically wrapping up a CLI server so I can hand it off to websocketd.
<frozenfoxx> shevy: That means I need to be able to grab certain lines of output based on regex to call other commands to send over the websocket, and capture/process commands from stdin over websocket to determine how to pass it to the cli server.
DoubleMalt has joined #ruby
<evo2020> I have been looking for a way to keep score in a procedural ruby app. All I can find are OOP references. Has anyone ever encountered a problem like that?
<frozenfoxx> shevy: looks like this should help me get rolling, so I'll let you know what happens.
skinux has joined #ruby
s2013 has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nemo_ has joined #ruby
<shevy> \o/
dnomyar has quit [Ping timeout: 260 seconds]
failshell has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
treehug88 has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
failshell has quit [Remote host closed the connection]
Eiam has joined #ruby
Musashi007 has joined #ruby
Xeago has joined #ruby
Mon_Ouie has joined #ruby
wprice has joined #ruby
_tpavel has joined #ruby
senayar has quit []
tedstriker has quit [Quit: Anti-Fraping status set.]
failshell has joined #ruby
joonty has quit [Quit: joonty]
barhum2013 has joined #ruby
hfp_work has quit [Ping timeout: 244 seconds]
<evo2020> shevy are you able to point me in the right direction with my question?
<evo2020> U probably know resources that I dont
Eiam_ has joined #ruby
<evo2020> @shevy
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hfp_work has joined #ruby
evo2020 has quit [Quit: Leaving]
dmitch has joined #ruby
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pandaant has quit [Remote host closed the connection]
musou has joined #ruby
Guest___ has joined #ruby
Guest___ is now known as L8
wprice has quit [Quit: wprice]
Y_Ichiro has quit [Ping timeout: 240 seconds]
L8 has quit [Changing host]
L8 has joined #ruby
<Ox0dea> frozenfoxx: Status?
<txtsd> Ox0dea: I have no idea what I'm doing. Help. https://bpaste.net/show/7dab3aa38018
Xeago has quit [Read error: Connection reset by peer]
wharr_ has quit [Read error: Connection reset by peer]
hfp_work has quit [Ping timeout: 264 seconds]
denver has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<Ox0dea> txtsd: It seems they never pushed the update that added Extractor to RubyGems.
wprice has joined #ruby
<txtsd> Ox0dea: So my code is proper?
K1MOS has joined #ruby
hfp_work has joined #ruby
leafybas_ has joined #ruby
<txtsd> Is there a way I can install the gem from source? I have the git repo cloned.
<Ox0dea> txtsd: You're assigning to the wrong constant.
Y_Ichiro has joined #ruby
Y_Ichiro has joined #ruby
<txtsd> Oh what's the correct way to override the constant?
v4n_ has joined #ruby
alexdunne has quit [Ping timeout: 252 seconds]
<Ox0dea> `Emoji::Extractor::EMOJI_TTF` is the one you want.
Yzguy has joined #ruby
p0wn3d__ has quit [Ping timeout: 240 seconds]
<txtsd> Oh yea, that makes sense.
leafybas_ has quit [Remote host closed the connection]
jxl180 has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
leafybas_ has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<Ox0dea> txtsd: `gem b *spec && gem i *gem` from the top of the repo.
dmolina has quit [Quit: Leaving.]
tkuchiki has quit [Ping timeout: 244 seconds]
leafybasil has quit [Ping timeout: 268 seconds]
superscott has joined #ruby
Aswebb_ has quit [Read error: Connection reset by peer]
dmolina has joined #ruby
Xeago has joined #ruby
Aswebb_ has joined #ruby
postmodern has joined #ruby
trosborn has joined #ruby
blaxter has quit [Ping timeout: 260 seconds]
<Ox0dea> txtsd: Sorry, I accidentally made you chase a goose. :<
treehug88 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> You'll just need to require 'emoji/extractor'.
dmolina has quit [Client Quit]
leafybas_ has quit [Ping timeout: 250 seconds]
<Ox0dea> I don't know where that file disappeared to when I went looking for it, but it's definitely there in the current version of the gem.
dfinninger has quit [Remote host closed the connection]
hooper has joined #ruby
hooper has quit [Max SendQ exceeded]
treehug88 has joined #ruby
failshell has quit []
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
hooper has joined #ruby
hooper has quit [Max SendQ exceeded]
<txtsd> Wait so I don't need to install from source?
hooper has joined #ruby
<Ox0dea> txtsd: No, that shouldn't be necessary.
jessemcgilallen has joined #ruby
duckpuppy has joined #ruby
<txtsd> Okay, good. But emoji/extractor is relative to the gem, right? How will it know where to look for it?
willardg has joined #ruby
<Ox0dea> txtsd: The gem's lib/ directory gets added to the load path, so it'll be found just fine.
NeverDie has quit [Ping timeout: 246 seconds]
sanjayu has quit [Ping timeout: 250 seconds]
NeverDie_ has joined #ruby
superscott has left #ruby [#ruby]
<frozenfoxx> Ox0dea: status, food. It's lunchtime where I am. :)
<Ox0dea> frozenfoxx: That's no way to run a command ferry!
nemo_ has quit [Remote host closed the connection]
ledestin has joined #ruby
<txtsd> Ox0dea: Doesn't look like it's working https://bpaste.net/show/e40ee96fa519
shinnya has joined #ruby
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<frozenfoxx> Ox0dea: I promise as soon as lunch is over I'm going to try shevy's suggestion. :)
<frozenfoxx> Ox0dea: I've been beating my head on this for weeks, so I'll be happy to have ANY progress.
Hounddog has quit [Remote host closed the connection]
<frozenfoxx> Ox0dea: what's funny about it is I'm pretty sure how to get this rolling in bash, but I really need it done in Ruby. Because Ruby.
<Ox0dea> frozenfoxx: https://eval.in/457987
jxl180 has quit [Quit: ChatZilla 0.9.92 [Firefox 41.0.2/20151015125802]]
<Ox0dea> I couldn't execute it on eval.in because it forks, but playing with it locally should get you headed in the right direction.
nemo_ has joined #ruby
<frozenfoxx> Ox0dea: thanks, I'll try this one, too.
<Ox0dea> When you run it, it'll wait for your input; lines containing "echo" will be sent to `sh` and the result displayed, and all other lines will be ignored.
dnomyar has joined #ruby
superscott has joined #ruby
<frozenfoxx> Ox0dea: that's awesome, definitely something I can use!
psy_ has joined #ruby
<frozenfoxx> Ox0dea: I'll give it a try as soon as food's over.
__tpavel has joined #ruby
<Ox0dea> I should probably eat myself.
<Ox0dea> I'm rolling; food if I don't get all Strings.
<Ox0dea> >> [*ObjectSpace.each_object].sample 3
<ruboto> Ox0dea # => ["'", "test_files", " super \"You don't have write permissions for the \#{directory} directory.\" ...check link for more (https://eval.in/457992)
<Ox0dea> Grr.
ryba has quit [Ping timeout: 240 seconds]
<Ox0dea> txtsd: I'm afraid it's working fine here. :<
al2o3-cr has quit [Ping timeout: 268 seconds]
millerti has joined #ruby
<millerti> How can I do a reverse each_index in Ruby? array.reverse.each_index doesn't do the trick.
<txtsd> Ox0dea: Some env settings perhaps?
NeverDie_ has quit [Max SendQ exceeded]
User458764 has joined #ruby
<Ox0dea> txtsd: God dammit. I was right the first time; the version on RubyGems doesn't have Extractor.
<jhass> millerti: (array.size-1).downto(0) do |i|
<txtsd> How is it working for you then?
<Ox0dea> The `gem` command must be doing some caching that got in the way.
<millerti> jhass: Ok. I wasn't sure if there was a better way...
<millerti> thanks
<Ox0dea> txtsd: It's working because I installed from source.
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Wompy has quit [Remote host closed the connection]
<txtsd> Oh alright. I'll do that then. I replace the *spec and *gen with the actual filenames, right?
_tpavel has quit [Ping timeout: 250 seconds]
<Ox0dea> txtsd: Well, it'd work fine with the asterisks in this case, but sure.
Wompy has joined #ruby
<Ox0dea> txtsd: I apologize for making this so much more trouble than it might've been.
m3_del has joined #ruby
Wompy has quit [Read error: Connection reset by peer]
BSaboia has quit [Ping timeout: 246 seconds]
Wompy has joined #ruby
eminencehc has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
[Butch] has joined #ruby
eminencehc has quit [Remote host closed the connection]
treehug88 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has joined #ruby
shinnya has quit [Read error: No route to host]
Igorshp has quit [Remote host closed the connection]
skade has quit [Client Quit]
shinnya has joined #ruby
skade has joined #ruby
snockerton has quit [Quit: Leaving.]
<txtsd> Ox0dea: I had globbing turned off so the asterisks weren't working. I finally found a reason to enable globbing lol.
<txtsd> And don't worry about the trouble. Just as long as I can get this done.
<Ox0dea> txtsd: *All* globbing?!
m3_del has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
based_pdev_ has joined #ruby
cyle has quit [Ping timeout: 244 seconds]
<karapetyan> can i pass block to array.include?
<txtsd> Yep. I was trying to learn zsh and shell concepts by making my own zshrc.
BSaboia has joined #ruby
<Ox0dea> txtsd: Fair enough, but ditching globbing altogether is absurd. :P
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> karapetyan: No, you want Array#any?.
<txtsd> I just couldn't find a reason to use it. Plus I liked not having to quote my URLs.
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
based_pdev has quit [Ping timeout: 250 seconds]
<txtsd> Ox0dea: I think ttfunk is throwing an error now https://bpaste.net/show/bb296fc88f29
<karapetyan> Ox0dea: yes, thanks
<Ox0dea> karapetyan: Sure thing.
dfinninger has joined #ruby
<Ox0dea> txtsd: Yeah, you'll have to manually install that; Gemoji doesn't specify it as a dependency.
CanTonic has joined #ruby
ta has joined #ruby
<txtsd> Ox0dea: From source? I have it installed via `gem`
LBRapid_ has quit [Remote host closed the connection]
CanTonic has quit [Client Quit]
hfp_work has quit [Ping timeout: 268 seconds]
<Ox0dea> txtsd: Oh, sorry; I just assumed you were getting the LoadError that I did.
CanTonic has joined #ruby
Guest53 has joined #ruby
sl33k has joined #ruby
NeverDie has joined #ruby
h99h9h88 has joined #ruby
CanTonic has quit [Client Quit]
<millerti> Anyone know how to install ruby-prof in Ubuntu 15.10? I trued using gem, but it complains that it doesn't have dev tools, although I have installed ruby-dev. And apparently, apt-get no longer has a ruby-dev package I can get from the Ubuntu repos.
<pipework> millerti: I use chruby and ruby-install for managing my ruby versions.
<pipework> Not the distro repos.
LBRapid has joined #ruby
baweaver has joined #ruby
h99h9h88 has quit [Ping timeout: 240 seconds]
dfinninger has quit [Remote host closed the connection]
KensoDev has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<karapetyan> if i iterating array using select and condition fails. What i should return from block to return nothing in select? '' ?
<karapetyan> nil ?
chthon has quit [Ping timeout: 244 seconds]
<Ox0dea> karapetyan: Either falsey value will do.
etyety has quit []
dfinninger has joined #ruby
ftj has joined #ruby
L8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<karapetyan> is it okay?
<Ox0dea> karapetyan: Why #delete? Why return a name in a boolean context?
<Ox0dea> txtsd: I can't make ttfunk break like that. :/
mikecmpbll has joined #ruby
yardenbar has joined #ruby
Xeago has quit [Remote host closed the connection]
<Ox0dea> Are you on an older Ruby?
<txtsd> Ox0dea: I went ahead and gem installed the dependencies of ttfunk too. Still throws the same error.
<txtsd> ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
TomyWork has quit [Ping timeout: 260 seconds]
tak1n has quit [Ping timeout: 272 seconds]
<txtsd> Ox0dea: are you using it on the correct font file though?
firstdayonthejob has quit [Ping timeout: 255 seconds]
<Ox0dea> txtsd: I can't say whether we have the exact same one, but I'd imagine we do.
bricker_ has joined #ruby
<millerti> So since Ruby has a GIL, does it have some convenient IPC functions? For instance, can I easily launch a child process and communicate with it using queues?
<Ox0dea> ~ $ md5sum AppleColorEmoji.ttf
<Ox0dea> 76479dd8ae4aecf3dd12dd92021fbaef AppleColorEmoji.ttf
<frozenfoxx> Ox0dea: question about your eval.in post, do you need to do Thread.join at the bottom?
<Ox0dea> frozenfoxx: No, but you need to tell the input stream you're done one way or another.
hfp_work has joined #ruby
nertzy has joined #ruby
dfockler has quit [Ping timeout: 260 seconds]
bricker has quit [Read error: Connection reset by peer]
<txtsd> Ox0dea: 87b2a869cf824dd42347963b38e3a863 AppleColorEmoji.ttf This one's from 10.11.1
danneu has quit [Quit: WeeChat 0.4.1]
treehug88 has joined #ruby
danneu has joined #ruby
<Ox0dea> txtsd: Well, there it is.
<txtsd> Ox0dea: That's no reason for it to break though.
User458764 has joined #ruby
TPBallbag has quit []
<txtsd> Ox0dea: What version are you on?
al2o3-cr has joined #ruby
<Ox0dea> txtsd: I'm chruby'd to 2.2.3p173 for this problem.
<frozenfoxx> Ox0dea: Hmm, putting your example in still prematurely terminates my code. :(
bricker_ has quit [Ping timeout: 272 seconds]
<frozenfoxx> Ox0dea: I can't tell if it's celluloid or not, going to see if I can disable it
akem has quit [Quit: Bye]
<Ox0dea> frozenfoxx: I confess to not having written it with any particular view to its inclusion in a larger system.
<txtsd> Ox0dea: Send me your ttf. Let me try running it on that.
<karapetyan> Ox0dea: #<ArgumentError: comparison of Hash with Hash failed> why ? https://gist.github.com/anonymous/358b8c28f3f6c4296197
snockerton has joined #ruby
thun has quit [Quit: Page closed]
hfp_work has quit [Ping timeout: 264 seconds]
<frozenfoxx> Ox0dea: No worries. I think it might be conflicting with celluloid
hfp_work has joined #ruby
<Ox0dea> txtsd: http://git.io/vWyLn
<frozenfoxx> Ox0dea: If I can do this without celluloid that'd probably be better, it just seemed like it'd be a better way to do concurrency. That said, if I can't get this done in it then I'd prefer to have something that works in an ugly way than a pretty way that doesn't work
<Ox0dea> For some reason, `parse!` isn't being called in time for `@strikes` to get initialized.
hfp__work has joined #ruby
<Ox0dea> I've no idea why a slightly different input font file would cause that to happen.
<Ox0dea> frozenfoxx: The POC was more meant to indicate how to use Open3 for basic "command and control"; $thing you described would certainly benefit from not blocking, so you'll want to marry the two.
|\|370 has joined #ruby
skade has quit [Ping timeout: 272 seconds]
h99h9h88 has joined #ruby
alexdunne has joined #ruby
<djellemah> millerti: http://ruby-doc.org/core-2.2.3/IO.html#method-c-popen with cmd as '-' . Never tried it myself though.
<karapetyan> any help guys?
Aderium has joined #ruby
|\|370 has quit [Client Quit]
<frozenfoxx> Ox0dea: Agreed, I'm playing around with it a little bit and think I might have this working.
hfp_work has quit [Ping timeout: 264 seconds]
hfp__work is now known as hfp_work
niftylettuce has quit [Quit: Connection closed for inactivity]
<Mon_Ouie> millerti: There is no such thing in stdlib (well, there's IO as mentioned above, you would still need to serialize your objects though). Also keep in mind the GIL does not affect multiple processes, only multiple threads running within the same process.
h99h9h88 has quit [Remote host closed the connection]
mghaig has joined #ruby
|\|370 has joined #ruby
h99h9h88 has joined #ruby
<millerti> I've done multiprocess Ruby before, where one Ruby program calls via popen another and communicates via stdio. I was just wondering if anyone had streamlined it.
al2o3-cr1 has joined #ruby
<txtsd> Ox0dea: I've been looking at that line, but I have no idea what to make of it.
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has joined #ruby
<postmodern> what's the defacto way to determine if a mechanize response is html?
h99h9h88_ has joined #ruby
<postmodern> !page.kind_of?(Mechanize::File) ?
<txtsd> Ox0dea: Can you try running it on the ttf I queried you?
<frozenfoxx> Ox0dea: yeah, the more I work with this the more I think it'll work. Thank you so much! Thanks to you, too, shevy, I'll give the links you sent me a closer look later as well
alexdunne has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Ping timeout: 240 seconds]
<frozenfoxx> Ox0dea: At the risk of being dumb, is there a good quick way to signify the end of input? I'm thinking in the while loop just a "while res = o.gets || res != 'quit'" or something?
|\|370 has quit [Client Quit]
h99h9h88_ has quit [Remote host closed the connection]
h99h9h88_ has joined #ruby
shadoi has joined #ruby
<millerti> Grr. I'm trying to use ruby-prof, and it keeps producing bogus dot files.
shadoi has left #ruby [#ruby]
h99h9h88 has quit [Ping timeout: 265 seconds]
<frozenfoxx> Ox0dea: OH! And one more question (because I apparently take tips from the Steve Jobs of "one more thing"), the new thread is reading from "i" which is mapped to stdin which means ANYTHING in my program that interacts with stdin SHOULD be interpreted by that thread, yes?
Xiti has quit [Read error: Connection reset by peer]
paulcsmith has joined #ruby
paulcsmith has quit [Remote host closed the connection]
Xiti has joined #ruby
paulcsmith has joined #ruby
paulcsmith has quit [Remote host closed the connection]
h99h9h88_ has quit [Remote host closed the connection]
paulcsmith has joined #ruby
paulcsmith has quit [Remote host closed the connection]
raldu has quit [Remote host closed the connection]
justicefries has left #ruby [#ruby]
al2o3-cr1 is now known as al2o3-cr
<djellemah> millerti: there are a couple of parallel each / parallel map gems. I vaguely remember being dissatified with them. Yeah I know, not helpful :-|
<Ox0dea> frozenfoxx: Well, that loop should terminate when there's nothing more to read, but that'll never happen if the source is a stream.
tak1n has joined #ruby
<millerti> djellemah: The reason I ask is mostly so that I don't keep reinventing the wheel.
Xeago has joined #ruby
<millerti> Also, I wish there were an equivalent to sympy for Ruby.
cyle has joined #ruby
<Ox0dea> frozenfoxx: Kernel#gets actually reads from ARGF, which is essentially $stdin if you didn't leave any filenames in ARGV.
bryanray has joined #ruby
<Ox0dea> txtsd: Same error for that TTF.
eminencehc has joined #ruby
cdg has quit [Remote host closed the connection]
kadoppe has quit [Ping timeout: 260 seconds]
GnuYawk has joined #ruby
jord has joined #ruby
<frozenfoxx> Ox0dea: Good stuff, I think I understand. As I'm testing it out here it's working nicely. This also means that, nifty as Celluloid is, I probably won't have to use it and less external dependencies makes me a happy camper.
kadoppe has joined #ruby
<Ox0dea> *fewer
<Ox0dea> <3
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<frozenfoxx> Ox0dea: I've had little sleep, so I'm going to mulligan my Engrish.
<frozenfoxx> Ox0dea: anyway, thanks so much, I've beat my head on that for three weeks now trying to figure out how to make it work.
<Ox0dea> frozenfoxx: It's much fewer abrasive if you interpret it as a Game of Thrones reference.
<djellemah> millerti: There is a very old and crufty (1.9.3) symbolic algebra library here http://blade.nagaokaut.ac.jp/~sinara/ruby/math/algebra/algebra-0.72/doc/index.html
<txtsd> Ox0dea: Am I SOL then? I just want to extract the damn PNGs :(
<frozenfoxx> Ox0dea: I'm that horrible heretic that doesn't like Game of Thrones. Please don't make me Sean Bean!
<millerti> djellemah: There's also a C version of sympy called symengine that has been made into a Ruby extension, but it's incomplete.
<Ox0dea> txtsd: I mean, do you want the older TTF for which it works just fine?
<Ox0dea> (See query.)
<txtsd> Ox0dea: No, I need the new emojis from the most recent version.
<Ox0dea> frozenfoxx: He lives!
m3t4l1c_s0ul has quit [Quit: Leaving]
<workmad3> frozenfoxx: blasphemy! Your punishment is to be every Sean Bean character in every film and show he's ever been in!
<Ox0dea> txtsd: I suppose your only option is to file an issue with ttfunk, then. :<
h99h9h88 has joined #ruby
<frozenfoxx> workmad3: in that case, quoting Black Death, "victory is mine!"
Guest53 has joined #ruby
mbrune has joined #ruby
<pipework> frozenfoxx: you mean Stewie Griffin.
lkba has quit [Ping timeout: 264 seconds]
jdawgaz has joined #ruby
<mbrune> hey all I am doing an ssh.exec!("") and I have an awk string that I want to run but I can't seem to escape it in such a way that ruby and awk both understand
karapetyan has quit [Remote host closed the connection]
<mbrune> awk 'END{print "\"id\":\""$1 "\", \"image\":\"" $2"\""}'
<mbrune> that that works in bash/sh/etc
<frozenfoxx> pipework: no, he says it right before he's got his limbs pulled off at the end of the movie.
<pipework> frozenfoxx: it was a joke
karapetyan has joined #ruby
<frozenfoxx> pipework: sorry, it didn't come across that way with text. :/
lkba has joined #ruby
<pipework> frozenfoxx: If someone says that Family Guy says anything original, it's either a joke or a reflection of their lack of a worthwhile educational background.
h99h9h88 has quit [Ping timeout: 260 seconds]
m3_del has joined #ruby
failshell has joined #ruby
sl33k_ has joined #ruby
sl33k has quit [Read error: Connection reset by peer]
sl33k_ is now known as sl33k
karapetyan has quit [Ping timeout: 252 seconds]
IrishGringo has quit [Ping timeout: 246 seconds]
benlovell has joined #ruby
benlovel1 has joined #ruby
<drbrain> mbrune: try using %q[…]
<drbrain> >> %q[ this is a string that can have ", ' or {} inside it ]
<ruboto> drbrain # => " this is a string that can have \", ' or {} inside it " (https://eval.in/458010)
karapetyan has joined #ruby
<djellemah> Ox0dea: thanks for that thaw code using Fiddle, it gives me one way of doing what I want. Now, all I have to do is resist the many temptations down that road ;-)
<Ox0dea> djellemah: Sure thing. That particular rabbit hole does indeed run quite deep. :)
dmolina has joined #ruby
Xeago has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
m3_del has quit [Ping timeout: 265 seconds]
dmolina1 has joined #ruby
<skinux> I seem to have Ruby 2.1.5p273 (which I just downloaded yesterday), which contains a CA certificate issue. How do I update so this issue is resolved? Do I have to download and install Ruby again?
Xeago has joined #ruby
<Ox0dea> drbrain: Thoughts on `Prime.include?`?
<skinux> I found documentation for update fix versions online, which shows 2.0 and 2.2, but not 2.1
<drbrain> Ox0dea: ?
rbennacer has quit [Remote host closed the connection]
benlovel1 has quit [Ping timeout: 240 seconds]
<Ox0dea> >> Class.instance_methods & Enumerable.instance_methods # drbrain
<ruboto> Ox0dea # => [:include?] (https://eval.in/458015)
rbennacer has joined #ruby
v4n has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
jhn has joined #ruby
dmolina has quit [Ping timeout: 240 seconds]
<drbrain> Ox0dea: it exposes that sometimes #include? is crappy
<Ox0dea> Fair enough.
<Ox0dea> Still, it could be made to respond sensibly.
<drbrain> I guess there should be a note in the documentation
<drbrain> yes, it could
<Ox0dea> Should it?
v4n_ has quit [Ping timeout: 264 seconds]
`based_pdev` has joined #ruby
rehat_ has joined #ruby
<skinux> How do I tell gem to install from a local file?
<drbrain> skinux: gem install local_file_name.gem
<drbrain> Ox0dea: I think it should
<skinux> I did that, it said it couldn't find it in repository
<drbrain> since it can never return false
platzhirsch has quit [Ping timeout: 256 seconds]
<drbrain> skinux: and `ls local_file_name.gem` exists?
Xeago has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
<skinux> I'm using Windows
<skinux> But yes it exists
<shevy> skinux did you try "gem install ./name.gem" too
<Ox0dea> drbrain: But it can return false?
based_pdev_ has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
al2o3-cr has quit [Remote host closed the connection]
<drbrain> skinux: try gem install --local local_file_name.gem then
<drbrain> Ox0dea: I don't see how
<drbrain> Enumerable#include? assumes a finite set
dfinninger has quit [Remote host closed the connection]
<Ox0dea> Well, sure, but if Prime.include? is to be specialized, I don't see why a bit of domain knowledge couldn't be applied.
<skinux> That worked
axl_ has quit [Quit: axl_]
al2o3-cr has joined #ruby
dmolina1 has quit [Quit: Leaving.]
<shevy> \o/
<Ox0dea> drbrain: https://eval.in/458018
<Ox0dea> There's the patch I intended to propose.
dikaio has joined #ruby
northfurr has joined #ruby
<drbrain> Ox0dea: you might get better performance by divmod each prime with value
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Really, `Prime.include?` is hardly the best way to check for primality, but it should at least not lie.
<drbrain> ↑ yes
diegoaguilar has quit [Ping timeout: 250 seconds]
<Ox0dea> Gem::Specification is another such "enumerable class", but its finitude absolves it somewhat.
nemo_ has quit [Remote host closed the connection]
<Ox0dea> Using ObjectSpace to find the classes which include Enumerable leads to a bad time if you've required 'prime'.
Dakota-choad has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
Dakota-choad has quit [Remote host closed the connection]
bryanray has quit [Ping timeout: 252 seconds]
willardg has joined #ruby
Coldblackice has joined #ruby
<pipework> Ox0dea: I'm willing to bet that most sentences involving "Using ObjectSpace" lead to a bad time.
G186 has joined #ruby
<Ox0dea> pipework: Wrong channel?
<pipework> Ox0dea: No, why would you think that?
<pipework> [12:12:38 PM] <Ox0dea>Using ObjectSpace to find the classes which include Enumerable leads to a bad time if you've required 'prime'.
yfeldblum has joined #ruby
tvw has joined #ruby
h99h9h88 has joined #ruby
skade has quit [Read error: Connection reset by peer]
mghaig has quit [Remote host closed the connection]
daffy_duck has joined #ruby
dionysus69 has joined #ruby
skade has joined #ruby
<Ox0dea> pipework: The part where you don't think it's great that we *can* analyze the entire system threw me off.
mhib has quit [Ping timeout: 255 seconds]
<pipework> Ox0dea: Oh, it's not that it's not great, just that bad times are had.
bricker has joined #ruby
poguez_ has joined #ruby
<Ox0dea> > Terrible, yes, but great.
Lucky__ has joined #ruby
<Ox0dea> ObjectSpace is Voldemort confirmed.
mghaig_ has joined #ruby
<pipework> He who shall not be introspected?
dfinninger has joined #ruby
firstdayonthejob has joined #ruby
<shevy> stop peeking at inside ruby!
mghaig_ has quit [Client Quit]
arthurix_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
Bloomer has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Read error: Connection reset by peer]
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
sepp2k has quit [Quit: Leaving.]
Fire-Dragon-DoL has joined #ruby
kerunaru has joined #ruby
<drbrain> reminds me of a bug where you could crash ruby by using ObjectSpace to find the String gsub was using to build the result string and adding characters to it
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<drbrain> or something like that
diegoaguilar has joined #ruby
karapetyan has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Eiam_ has joined #ruby
arthurix has quit [Ping timeout: 264 seconds]
kerunaru has quit [Client Quit]
Salve has joined #ruby
pdoherty has joined #ruby
kerunaru has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
<skinux> Umm..apparently gem is set to use JRuby,how do I set it to use regular Ruby?
targaf has joined #ruby
<slash_nick> skinux: are you using rvm?
<skinux> Not unless it's doing it automagically
ruurd has joined #ruby
<shevy> hah I once had fun with jruby too and installed into /usr prefix, then I wondered why ruby no longer worked
<adaedra> sounds like you were asking for trouble.
<skinux> I installed JRuby after I installed Ruby, but on Windows, I didn't set any custom locations.
al2o3-cr has quit [Remote host closed the connection]
mhib has joined #ruby
Eiam_ has quit [Ping timeout: 265 seconds]
uber has quit [Ping timeout: 240 seconds]
trosborn has quit [Quit: trosborn]
karapetyan has quit [Remote host closed the connection]
lemur has joined #ruby
ayonkhan has joined #ruby
PaulCapestany has quit [Quit: .]
duckpuppy has quit [Ping timeout: 265 seconds]
baweaver_ has joined #ruby
krz has quit [Quit: WeeChat 1.2]
PaulCapestany has joined #ruby
v4n_ has joined #ruby
lemur has quit [Ping timeout: 250 seconds]
syath has quit [Quit: WeeChat 1.2]
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
v4n has quit [Ping timeout: 265 seconds]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
skade has quit [Ping timeout: 265 seconds]
ivanskie has joined #ruby
northfurr has quit [Quit: northfurr]
Yzguy has quit [Ping timeout: 246 seconds]
platzhirsch has joined #ruby
northfurr has joined #ruby
northfurr has quit [Client Quit]
sepp2k has joined #ruby
<skinux> I think I figured it out. JRuby was before Ruby in PATH, so I moved switched it around. We'll see if that works.
northfurr has joined #ruby
Xiti has quit [Quit: Xiti]
<skinux> Maybe not the real way of doing it, but it seems to be working.
skade has joined #ruby
<skinux> Work-around if nothing else.
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xiti has joined #ruby
northfurr has quit [Client Quit]
TheHodge has quit [Quit: Connection closed for inactivity]
northfurr has joined #ruby
<mbrune> wtf redis?
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<mbrune> http://pastebin.com/7YqzWGwY returns the correct and current unix time
<ruboto> mbrune, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/847855ec24a8a4e38349
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<mbrune> but when I go to the redis server the only key there is "test"
<mbrune> any ideas?
skade has quit [Read error: Connection reset by peer]
skweek has joined #ruby
C0r3 has joined #ruby
skade has joined #ruby
northfurr has quit [Client Quit]
uber has joined #ruby
m3_del has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
lxsameer has joined #ruby
northfurr has joined #ruby
NeverDie_ has joined #ruby
<targaf> is there a way to call a ruby file from another file and pass variables along with the call?
al2o3-cr has joined #ruby
<C0r3> I have basic programming experience... By 'basic' I mean it literally and not the language 'BASIC'.. :P I have prior experience in PHP and now I wish to migrate to Ruby. Can anyone guide me the right way??
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Ping timeout: 260 seconds]
swgillespie has joined #ruby
<shevy> C0r3 write as much code as possible in ruby
<shevy> start with something small that you would do in php
Motoservo has joined #ruby
<C0r3> shevy: I used php for developing web apps. Also use a framework.
<C0r3> shevy: Can you please tell me any nice example tasks that can help me enhance my Ruby programming skills?
skweek has quit [Ping timeout: 240 seconds]
<Ox0dea> C0r3: Scratch an itch.
Soda has quit [Remote host closed the connection]
<shevy> C0r3 well do you have irb running locally already; if so start it
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
`tim` has joined #ruby
Guest53 has joined #ruby
<Ox0dea> targaf: Could you elaborate? The broadest applicable answer is "yes, structure your code appropriately".
m3_del has quit [Ping timeout: 255 seconds]
h99h9h88 has joined #ruby
<Salve> targaf: yeah, use a pipe and stream the data
<C0r3> shevy: I don't even know what is IRB. I'll give a search..
<Ox0dea> C0r3: Why did you capitalize it?
<Salve> c0r3: interactive ruby
skweek has joined #ruby
<targaf> fair enough. I'm using https://github.com/yob/pdf-reader/blob/master/examples/extract_images.rb and need to pass certain variables from my main script (directory, filename, etc..) to it
ahegyi has joined #ruby
<shevy> C0r3 ok, it allows you to evaluate ruby code as you type it in, very simple to test your code. it comes distributed with ruby normally
ruurd has quit [Quit: ZZZzzz…]
<targaf> I'm looking to call that linked file so it has access to the variables I mentioned but I don't know the appropriate syntax.
benlovell has joined #ruby
benlovel1 has joined #ruby
<C0r3> Ox0dea: It seemed to me like some acronym.
<C0r3> shevy: Something like Python Interactive Shell.
skade has quit [Quit: Computer has gone to sleep.]
psy_ has quit [Ping timeout: 268 seconds]
decoponio has quit [Quit: Leaving...]
<shevy> yeah
<shevy> in python you get it when running "python" without arguments
<C0r3> shevy: I understood. I'll install it. Give me a minute.
<Ox0dea> C0r3: It's only an acronym if you pronounce it "herb", elseways it's just an initialism.
<shevy> in ruby that is separate, usually resides in bin/irb
<shevy> ok when you have irb running, let me know
<C0r3> shevy: Okay... Ox0dea: Alright!
bender_unit has joined #ruby
northfurr has quit [Quit: northfurr]
`tim` is now known as TomPeed
bender_unit has quit [Read error: Connection reset by peer]
<C0r3> shevy: Done!
skade has joined #ruby
benlovel1 has quit [Ping timeout: 244 seconds]
benlovell has quit [Ping timeout: 244 seconds]
northfurr has joined #ruby
__tpavel has quit [Quit: Leaving]
Renich has joined #ruby
<shevy> ok
<shevy> C0r3 have a look at this site: https://pine.fm/LearnToProgram/chap_01.html
<shevy> it may appear too primitive for you since you already know php, but just type in the examples given into irb
<shevy> after that tutorial you will know yield, procs, methods, classes and modules
uber has quit [Ping timeout: 255 seconds]
<shevy> (just skip the homework/assignment stuff)
northfurr has quit [Client Quit]
<C0r3> shevy: Okay.. So I shall continue this tutorial till end?
pdoherty has quit [Ping timeout: 265 seconds]
willardg has joined #ruby
<shevy> yeah, just skip when you feel you can't learn from that page
<shevy> chap_04.html will probably be more useful but look at the 3 chapters too
rodfersou has quit [Quit: leaving]
pdoherty has joined #ruby
arup_r has quit [Quit: Leaving]
opensource_ninja has joined #ruby
<shevy> the code to that tutorial is pretty cool too, it's a single .rb file
<shevy> I once wanted to publish an updated version but it's so much work :(
skade has quit [Client Quit]
<C0r3> shevy: That's your website?
<shevy> nope
<shevy> chris pine
<shevy> here is how you can look at the source if you want to: https://pine.fm/LearnToProgram/?ShowTutorialCode=true
<shevy> it's a bit weird though, I would not write it like that, but it's cool that it is a single .rb file
<shevy> but anyway, work through the chapters first!
h99h9h88 has quit [Remote host closed the connection]
djbkd has joined #ruby
<C0r3> shevy: The entire website is a single .rb file???
<shevy> yeah
<shevy> he wrote it in 2003 or so if you look at the copyright notice :)
<C0r3> shevy: I can't believe..
karapetyan has joined #ruby
ruurd has joined #ruby
G186 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<C0r3> Awesome!!
Steve_Jobs has quit [Ping timeout: 244 seconds]
dopamean_ has quit [Read error: Connection reset by peer]
<shevy> by the way C0r3 also read this short interview - it is also very old but this is the best difference between ruby and e. g. python, the philosophy: http://www.artima.com/intv/ruby.html
pocketprotector- has joined #ruby
jriggins has joined #ruby
<C0r3> shevy: Hang on I'll make a note of all the recommendations...
prasselpikachu is now known as Fridtjof
<C0r3> shevy: Tell me more.
<shevy> the interview is really short, it's like only 8 paragraphs in question-answer style
<shevy> dunno... both articles linked above actually originated from 2003 :\
<shevy> one thing that you should later learn is how to write a .gem file yourself for your code to distribute it
<C0r3> I'll check that. I noted it down.
yfeldblum has quit [Remote host closed the connection]
jriggins has quit [Client Quit]
dopamean_ has joined #ruby
ldnunes has quit [Quit: Leaving]
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bender_unit has joined #ruby
<C0r3> Okay.. How much time should I expect to get a grip over Ruby? If I have 1 year of programming experience. And you can see my code at www.github.com/Qumonto/usersys
trosborn has joined #ruby
trosborn has quit [Client Quit]
<C0r3> I feel the Ruby community is more friendly than the PHP community. Is it always like this?
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has joined #ruby
bender_unit has quit [Read error: Connection reset by peer]
lipoqil has quit [Quit: Connection closed for inactivity]
Yzguy has joined #ruby
yashinbasement has joined #ruby
swgillespie has joined #ruby
cwong_on_irc has quit [Read error: Connection reset by peer]
<mozzarella> did ruby ever ship with a static web server?
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
<jhass> ruby -run -ehttpd
cwong_on_irc has joined #ruby
<havenwood> mozzarella: For example, current dir on port 8080: ruby -run -ehttpd . -p 8080
bender_unit has joined #ruby
G186 has joined #ruby
Oatmeal has joined #ruby
G186 has quit [Client Quit]
nertzy has joined #ruby
dionysus69 has quit [Quit: dionysus69]
<C0r3> shevy: Thanks for the info...
ruurd has quit [Quit: ZZZzzz…]
C0r3 has quit [Quit: ZZzzZzZZzzzZZzzzz]
<mozzarella> so, it loads the "un" file and executes "httpd" as code (which calls the httpd function)?
<havenwood> C0r3: Your experience should speed up learning nicely. Can't say what a grip on Ruby is or how long it might take you. It's a nice community!
uber has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bb010g has quit [Quit: Connection closed for inactivity]
<jhass> mozzarella: method, yeah
jessemcgilallen has quit [Quit: jessemcgilallen]
alexdunne has joined #ruby
stamina has quit [Ping timeout: 240 seconds]
synthroid has quit []
ruurd has joined #ruby
Steve_Jobs has joined #ruby
ni291187 has joined #ruby
<ni291187> why are niggers racist?
<havenwood> !mute ni291187
dionysus69 has joined #ruby
bruno- has joined #ruby
al2o3-cr has quit [Ping timeout: 268 seconds]
bruno- is now known as Guest53513
alexdunne has quit [Ping timeout: 250 seconds]
v4n_ has quit [Ping timeout: 252 seconds]
<skinux> Does Rails have it's own version of Ruby packaged???
Guest53513 has quit [Client Quit]
<danneu> skinux: no, as in rails runs on whichever ruby you have installed
momomomomo has joined #ruby
<skinux> Hmm. I installed needed packages using command-line, but RubyMine keeps saying their missing and fails to install them.
bender_unit has quit [Ping timeout: 272 seconds]
<skinux> It's trying to install debase, but it says it cannot install dependency debase-ruby_core_source
chouhoul_ has joined #ruby
<skinux> It shouldn't be trying to because both are already installed.
<momomomomo> skinux: maybe try in the jetbrains support email
kerunaru has joined #ruby
<skinux> Yeah..so I can wait a day or two for them to reply.
ruurd has quit [Quit: ZZZzzz…]
skweek has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Ping timeout: 244 seconds]
<momomomomo> skinux: just suggesting an avenue that might be of help to you; that's a product-specific integration. You probably need to ensure that you've got the right ruby environment configured for rubymine
codecop has quit [Remote host closed the connection]
ni291187 has quit [Remote host closed the connection]
symm- has joined #ruby
jamesaxl has joined #ruby
<skinux> Honestly I wish I knew how to develop extensions to Eclipse, so I could create my own custom "IDE".
<momomomomo> I don't use an IDE for ruby
<momomomomo> only for c++ and java
arthurnn has joined #ruby
<skinux> I was just thinking maybe I should just use Sublime Text or Notepad++ and either Gradle or Maven individually instead of using RubyMine
<shevy> yeah
Couch has quit [Ping timeout: 265 seconds]
<momomomomo> skinux: some people like IDEs, some people like text editors, it's all preference
<momomomomo> try sublime text, it's nice
<shevy> try notepad++ if you are on windows, and try to stay as simple as possible. ruby is simple, one should not need eclipse for it
ahegyi has quit [Ping timeout: 244 seconds]
<skinux> I prefer IDEs, but if I can't get an IDE to work with me then I'll use a text editor, ruby/rails themselves, and whatever other tools needed via command-line.
<momomomomo> skinux: that's generally the way of things
<Radar> Sublime Text 3 or death
<shevy> haha
arthurix has joined #ruby
<Radar> IDEs are not that great for Ruby because it is a dynamic language
<skinux> I like IDEs, for one thing because I don't have to learn all the commands of various things.
svkurowski has joined #ruby
<momomomomo> I use vim + syntastic
<Radar> I often see a lot of people (coworkers included!) who spend more time fiddling around with their IDE to run commands like "git commit" or Rake tasks.
<svkurowski> ruby -e "require 'date'; puts Date.rfc3339('2009-04-04T09:51:28+00:00').strftime('%Y/%m-%B/%d-%A/%H-%M')" > Why does this print 0 for the minute and the hour value?
<Radar> Like, how hard is to tab over into the terminal and run the commands?
Musashi007 has quit [Quit: Musashi007]
<momomomomo> or just stay in the terminal and use vim
<momomomomo> or emacs if that's your thing
<Radar> svkurowski: Is this an interview question?
<svkurowski> Nope
<svkurowski> I'm trying to batch process a bunch of files
<Radar> svkurowski: It's because you're using Date and not Time.
<Radar> svkurowski: Date is for days, months and years.
nertzy has quit [Quit: This computer has gone to sleep]
<havenwood> >> require 'date'; puts DateTime.rfc3339('2009-04-04T09:51:28+00:00').strftime('%Y/%m-%B/%d-%A/%H-%M')
<momomomomo> >> puts Time.rfc3339('2009-04-04T09:51:28+00:00').strftime('%Y/%m-%B/%d-%A/%H-%M')"
<ruboto> havenwood # => 2009/04-April/04-Saturday/09-51 ...check link for more (https://eval.in/458061)
<ruboto> momomomomo # => /tmp/execpad-c2e1fcd0568d/source-c2e1fcd0568d:2: syntax error, unexpected tSTRING_BEG, expecting key ...check link for more (https://eval.in/458062)
<momomomomo> derp
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> Sorry, DateTime in this instance since Time does not have that method.
<svkurowski> Wow, I'm stupid
<svkurowski> thanks :)
<momomomomo> svkurowski: nah, that's a small mistake
arthurix_ has quit [Ping timeout: 246 seconds]
VeryBewitching has joined #ruby
nfk|laptop has quit [Quit: yawn]
al2o3-cr has joined #ruby
ivanskie has joined #ruby
Guest53 has joined #ruby
jord has quit [Quit: Connection closed for inactivity]
platzhirsch has quit [Ping timeout: 244 seconds]
m3_del has joined #ruby
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
firstdayonthejob has quit [Ping timeout: 256 seconds]
eggoez has quit [Ping timeout: 240 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
prestorium has quit [Quit: Leaving]
Igorshp has joined #ruby
h99h9h88 has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
m3_del has quit [Ping timeout: 240 seconds]
bnagy_ has joined #ruby
bnagy has quit [Ping timeout: 272 seconds]
jessemcgilallen has joined #ruby
JDiPierro has quit [Remote host closed the connection]
eggoez has joined #ruby
Couch has joined #ruby
momomomomo has quit [Quit: momomomomo]
stamina has joined #ruby
Musashi007 has quit [Quit: Musashi007]
roxtrongo has joined #ruby
Igorshp has quit [Ping timeout: 272 seconds]
h99h9h88 has quit [Ping timeout: 256 seconds]
rwilcox has quit [Quit: WeeChat 1.2-dev]
Musashi007 has joined #ruby
NeverDie has joined #ruby
Xeago has joined #ruby
yqt has joined #ruby
NeverDie_ has quit [Ping timeout: 256 seconds]
allcentury has quit [Ping timeout: 240 seconds]
swgillespie has joined #ruby
h99h9h88 has joined #ruby
targaf has left #ruby ["Textual IRC Client: www.textualapp.com"]
crime has joined #ruby
failshell has quit [Remote host closed the connection]
shock_one has quit [Remote host closed the connection]
hashpuppy has joined #ruby
jackjackdripper has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
yqt has quit [Ping timeout: 255 seconds]
<hashpuppy> how can i remove all elements that have more than 2 values. so, [1, 1, 2, 3, 4, 4, 4] would return [2, 3]
<hashpuppy> more than 1 value
<hashpuppy> lol
mag42c has quit [Ping timeout: 240 seconds]
everbot has joined #ruby
ivanskie has quit [Ping timeout: 260 seconds]
h99h9h88 has quit [Ping timeout: 255 seconds]
ruurd has joined #ruby
<baweaver_> what have you tried?
kerunaru has joined #ruby
<baweaver_> hashpuppy: ^
Igorshp has joined #ruby
<havenwood> hashpuppy: Are duplicates always together or might they be in any order?
<hashpuppy> [1, 1, 1, 2, 3, 4, 4].group_by{|x| x}.values.select{|x| x.length == 1}.flatten
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hashpuppy> any order
numbertheory_isP has joined #ruby
twe4ked has quit [Read error: Connection reset by peer]
Igorshp has quit [Remote host closed the connection]
<baweaver_> you can also use group_by(&:itself)
<havenwood> >> [1, 1, 2, 3, 4, 4, 4].chunk(&:itself).map(&:last).select(&:one?).flatten
<ruboto> havenwood # => [2, 3] (https://eval.in/458065)
devoldmx has quit [Ping timeout: 272 seconds]
twe4ked has joined #ruby
<havenwood> and select(&:one?)
<hashpuppy> hmm... thanks
akem has joined #ruby
<hashpuppy> just like learning different ways to do things
<Ox0dea> havenwood: hashpuppy said any order?
devoldmx has joined #ruby
<havenwood> Ox0dea: I asked, hashpuppy didn't say.
<Ox0dea> They did.
<havenwood> Ox0dea: ah, yes, any order - hashpuppy did say
<baweaver_> yep
<havenwood> i missed that
<baweaver_> havenwood made a mistake! Let the merciless heckling begin!
<baweaver_> ha!
<baweaver_> well I'm done
<havenwood> hehe
<havenwood> hashpuppy: So then, final answer: group_by(&:itself).values.select(&:one?).flatten
mag42c has joined #ruby
<hashpuppy> why do i get NoMethodError: undefined method `itself' for 1:Fixnum
<Ox0dea> hashpuppy: You're using an old Ruby.
<baweaver_> ruby -v
y0da has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hashpuppy> 2.1.1
<havenwood> hashpuppy: 2.1.7 is the latest 2.1 but for 2.2 features use 2.2.3.
<hashpuppy> i'm behind
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> hashpuppy: In 2.1: group_by { |i| i }.values.select(&:one?).flatten
pocketprotector- has quit [Read error: Connection reset by peer]
pocketprotector- has joined #ruby
<Ox0dea> >> [1,2,3,2,3,4].reduce([]) { |m, x| m.delete(x) || m << x; m }
<ruboto> Ox0dea # => [1, 4] (https://eval.in/458071)
<Ox0dea> I quite like that one.
<hashpuppy> yeah, not bad
<havenwood> >> [1,2,3,2,3,4].each_with_object([]) { |x, m| m.delete(x) || m << x }
<ruboto> havenwood # => [1, 4] (https://eval.in/458072)
<havenwood> slight variation ^
Trynemjoel has joined #ruby
<hashpuppy> delete in reduce seems weird to me, though it's probably not
<Ox0dea> hashpuppy: It is.
<Ox0dea> But it's referentially transparent, so still "functional".
ss_much has joined #ruby
blackmesa has joined #ruby
<Ox0dea> We're not modifying the receiver, just our internal scratch buffer.
nateberkopec has quit [Quit: Leaving...]
<dreinull75> "foo"[2].chr #=> "o" which is ok, "foo"[3].chr returns an error. Is it possible to find out which class/method returned the nil?
<Ox0dea> >> 'foo'[3] # dreinull75
<ruboto> Ox0dea # => nil (https://eval.in/458075)
<Ox0dea> It was #[]!
<Ox0dea> Get 'im.
<baweaver_> In Ruby, purity isn't the best idea. Referential Transparency is what you want to aim for
Igorshp has joined #ruby
<Ox0dea> ^ This fellow's got the right of it.
<dreinull75> Ox0dea, um, well I know the source here. I mean dynamically. This is not my actual code :)
<Ox0dea> dreinull75: Read the backtrace?
* baweaver_ also uses Haskell
<dreinull75> I want to return some specific message
shock_one has joined #ruby
<dreinull75> It's a string creating app that can't have nil. I need some readable stuff.
<dreinull75> So in order to give the user some idea what's going on I need to tell them where the nil originated from.
nateberkopec has joined #ruby
<Ox0dea> dreinull75: NameError#receiver is a thing in 2.3.
<Ox0dea> I suspect that is of no benefit to you at this time.
<dreinull75> :)
<dreinull75> If it's worth waiting for?
shock_one has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
shock_one has joined #ruby
<Ox0dea> ~ $ ruby -e '42.foo rescue p $!.receiver'
<Ox0dea> 42
<Ox0dea> It's pretty nifty.
failshell has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
rehat_ has quit [Read error: Connection reset by peer]
<ytti> i didn't know that, cool
<ytti> but also, i get dirty, nasty ideas
<ytti> that will make the next person reading the code bestow ancient curse on my family
<dreinull75> "foo"[3].chr rescue p $!.receiver still returns nil though
<Ox0dea> dreinull75: It's unclear which branch of magic you're hoping Ruby has studied.
RegulationD has quit [Remote host closed the connection]
<Ox0dea> Are you wanting to monitor every single method invocation and respond "appropriately" if the return value is `nil`?
swgillespie has joined #ruby
bender_unit has joined #ruby
<Papierkorb> Asking random.org might be a good idea in that case.
nateberkopec has quit [Ping timeout: 246 seconds]
<Ox0dea> Or TracePoint.
danielpclark has joined #ruby
<Ox0dea> But seven hells.
alexdunne has joined #ruby
<dreinull75> Ox0dea I've thought about that too and I'm not sure. For my decorators that's a good idea. For everthing else nil might come handy too.
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
matp has quit [Remote host closed the connection]
Salve has quit []
bender_unit has quit [Client Quit]
<dreinull75> I could handle these things just fine with nil checks but it will look ugly. So I'm trying to simplify things a bit for the user.
<drbrain> dreinull75: "foo"[3] is nil, though, so what do you want it to return?
<Ox0dea> A user-friendly error message, it seems.
allcentury has joined #ruby
bender_unit has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
hxegon has joined #ruby
arthurix_ has joined #ruby
<dreinull75> The problem ist that I'm working with DB associations. If they are missing there's a problem. So I want to tell the user to check their data. If not just spit out some Strings with data.
bender_unit has quit [Max SendQ exceeded]
umgrosscol has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 250 seconds]
<drbrain> it seems the best you could do is guess at where the error occurred
<dreinull75> I'm using these method calls in slim templates so there is not much room for logic
yfeldblum has joined #ruby
<drbrain> Either the contents of the string or the argument to String#[] could be the source
jwaldrip has quit [Quit: Be back later ...]
alexdunne has quit [Ping timeout: 255 seconds]
mhib has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
<dreinull75> Is there a way to create wrapper methods in the simple delegate subclass for the methods concerned? If nil, return some message, if valid forward them?
arthurix has quit [Ping timeout: 256 seconds]
arthurix_ has quit [Read error: Connection reset by peer]
arthurix has joined #ruby
numbertheory_isP has quit [Quit: Leaving]
matp has joined #ruby
eminencehc has quit [Remote host closed the connection]
bender_unit has joined #ruby
bb010g has joined #ruby
<Ox0dea> dreinull75: Do you know about Module#prepend?
Pupeno has quit [Remote host closed the connection]
<dreinull75> Ox0dea: yes
<dreinull75> Ox0dea thought maybe there'S a simpler method
shadoi has joined #ruby
skade has joined #ruby
shadoi has left #ruby [#ruby]
jwaldrip has joined #ruby
benlovel1 has joined #ruby
benlovell has joined #ruby
Igorshp has quit [Remote host closed the connection]
Pupeno has joined #ruby
akem has quit [Quit: Bye]
shazaum_ has joined #ruby
nateberkopec has joined #ruby
jwaldrip has quit [Ping timeout: 250 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
benlovel1 has quit [Ping timeout: 252 seconds]
benlovell has quit [Ping timeout: 252 seconds]
yashinbasement has quit [Ping timeout: 268 seconds]
<Ox0dea> dreinull75: https://eval.in/458084
bender_unit has quit [Read error: Connection reset by peer]
ivanskie has joined #ruby
<Ox0dea> I decided not to try to figure out how to get the nil-causing argument(s).
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
kirun has quit [Quit: Client exiting]
malconis has quit [Ping timeout: 246 seconds]
slawrence00 has joined #ruby
failshell has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 260 seconds]
<dreinull75> Ox0dea: wow, that's cool. Thank you!
<Ox0dea> dreinull75: Don't say things like that.
<Ox0dea> (You're welcome.)
blue_deref has joined #ruby
shock_one has quit [Remote host closed the connection]
opensource_ninja has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
rbennacer has quit [Remote host closed the connection]
m3_del has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tak1n has quit [Remote host closed the connection]
<Ox0dea> dreinull75: https://eval.in/458086
<Ox0dea> Simple enough, no?
pu22l3r_ has joined #ruby
leafybasil has joined #ruby
<Ox0dea> For sufficiently warped definitions of "simple", granted.
ruurd has quit [Quit: ZZZzzz…]
Igorshp has joined #ruby
bender_unit has joined #ruby
<dreinull75> :)
<dreinull75> I think I've seen that before...
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
opensource_ninja has joined #ruby
sl33k has quit [Quit: sl33k]
yashinbasement has joined #ruby
yashinbasement has quit [Max SendQ exceeded]
yashinbasement has joined #ruby
sankaber has quit [Remote host closed the connection]
bollullera has joined #ruby
bender_unit has quit [Client Quit]
m3_del has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
pu22l3r has quit [Ping timeout: 272 seconds]
northfurr has joined #ruby
sankaber has joined #ruby
leafybasil has quit [Remote host closed the connection]
<dreinull75> in a more controlled environment this looks straight forward :)
ruurd has joined #ruby
firstdayonthejob has joined #ruby
jgpawletko has joined #ruby
ecksit has joined #ruby
jgpawletko has quit [Client Quit]
jwaldrip has joined #ruby
skade has quit [Read error: No route to host]
failshell has joined #ruby
skade has joined #ruby
New_to_Ruby has joined #ruby
jgpawletko has joined #ruby
maxz has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
<New_to_Ruby> Hi
<adaedra> Ah, here comes the ruby expert
<havenwood> New_to_Ruby: hi
jwaldrip has quit [Ping timeout: 240 seconds]
h99h9h88 has joined #ruby
scoot_ has joined #ruby
nateberkopec has joined #ruby
baweaver_ has quit [Read error: Connection reset by peer]
mghaig has joined #ruby
northfurr has quit [Quit: northfurr]
mghaig has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
bender_unit has joined #ruby
h99h9h88 has quit [Ping timeout: 265 seconds]
jessemcgilallen has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
failshell has quit [Remote host closed the connection]
<shevy> New_to_Ruby hey you are no longer new
<shevy> you were here yesterday too!
dnomyar has quit [Ping timeout: 250 seconds]
lxsameer has quit [Quit: Leaving]
BlackCoyote has joined #ruby
New_to_Ruby is now known as Less_new_to_Ruby
jgpawletko has joined #ruby
northfurr has joined #ruby
<shevy> yay \o/
<Less_new_to_Ruby> I am trying to get my head around why when defining a method I would pass it an argument.
<shevy> how do you define a method without arguments Less_new_to_Ruby
mary5030 has quit [Ping timeout: 246 seconds]
<Less_new_to_Ruby> def method_name rather than def method_name(arguments)
Alina-malina has quit [Ping timeout: 244 seconds]
<shevy> yeah
<shevy> the second one accepts arguments, the first one does not
<havenwood> Less_new_to_Ruby: Use just a method if that suffices. Choose the simplest thing.
benlovell has joined #ruby
benlovel1 has joined #ruby
<Less_new_to_Ruby> I'm doing the koans and am seeing methods defined with arguments and they're throwing me off.
troyready has quit [Ping timeout: 250 seconds]
malconis has joined #ruby
Jackneill_ has quit [Ping timeout: 240 seconds]
bender_unit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
naztharune has joined #ruby
cornerma1 has joined #ruby
<Less_new_to_Ruby> I'm at the point where (8 days in) I feel as though I should be past the basics. I feel a little dumb for being hung up on, what I think, seems like an easy enough concept to everyone else.
benlovel1 has quit [Ping timeout: 268 seconds]
benlovell has quit [Ping timeout: 268 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.3]
superscott has quit []
roxtrongo has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<shevy> it's just a method
<shevy> you bind code into it
<shevy> when you invoke the method, that code is run
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
Blaguvest has quit []
roxtrongo has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
malconis has quit [Ping timeout: 268 seconds]
roxtrongo has quit [Remote host closed the connection]
chouhoulis has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
<Less_new_to_Ruby> I understand it better after reading and trying this example. http://goo.gl/bUKt0h
leafybasil has joined #ruby
quazimodo has joined #ruby
djbkd has joined #ruby
skade has quit [Read error: No route to host]
skade has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
mois3x has joined #ruby
platzhirsch has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
RegulationD has joined #ruby
nateberkopec has joined #ruby
tkuchiki has joined #ruby
opensource_ninja has quit [Remote host closed the connection]
opensource_ninja has joined #ruby
hiyosi has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
agit0 has joined #ruby
agit0 has quit [Client Quit]
Less_new_to_Ruby has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
Underdogg has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
yardenbar has quit [Ping timeout: 268 seconds]
mordocai has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
<TheNet> is there a way to toggle between instance variables being writable or readable?
bruno- has joined #ruby
agit0 has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> You can freeze instances, but instance variables can always be reaffected.
Igorshp has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
<TheNet> can I create my own accessor methods?
<adaedra> of course
<TheNet> how would I create a write method?
<adaedra> attr_reader, attr_writer, attr_accessor for default behavior, otherwise define `name` and `name=(_)` to your convienence
nertzy has joined #ruby
<shevy> def foo=(i); @foo = i # TheNet
<TheNet> thanks!
BlackCoyote has quit [Quit: Leaving]
gregoriokusowski has quit [Quit: gregoriokusowski]
ruby-lang734 has joined #ruby
ruurd has joined #ruby
dopamean_ has quit [Ping timeout: 252 seconds]
Ropeney has joined #ruby
dopamean_ has joined #ruby
Igorshp has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
avahey has joined #ruby
mollusk_ has joined #ruby
tno has quit [Quit: Ex-Chat]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
polishdub has quit [Quit: Leaving]
ruby-lang734 has quit [Ping timeout: 246 seconds]
naztharune has quit [Ping timeout: 264 seconds]
inteq has quit [Remote host closed the connection]
Igorshp has quit [Ping timeout: 240 seconds]
yardenbar has joined #ruby
Igorshp has joined #ruby
yfeldblum has quit [Quit: Leaving...]
jgpawletko has quit [Quit: jgpawletko]
nateberkopec has joined #ruby
Alina-malina has joined #ruby
quazimodo has quit [Read error: Connection reset by peer]
cyle has quit [Ping timeout: 260 seconds]
codeurge has joined #ruby
Or1on has joined #ruby
yfeldblum has joined #ruby
pathlost has joined #ruby
yardenbar has quit [Ping timeout: 256 seconds]
m3_del has joined #ruby
<Ox0dea> dreinull75: Still about?
<dreinull75> Ox0dea kinda, doing the Javascript tour now
pathlost has quit [Client Quit]
jobewan has quit [Quit: Leaving]
nateberkopec has quit [Ping timeout: 250 seconds]
<dreinull75> I should really check out opal
dopamean_ has quit [Ping timeout: 252 seconds]
sanjayu has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
failshell has joined #ruby
<Ox0dea> dreinull75: Well, I decided to go all out on your crazy nil-monitoring idea: https://eval.in/458098
ruurd has joined #ruby
mag42c has quit [Quit: mag42c]
<dreinull75> Ox0dea: wow, I tried something similar via the initialize method but probably called super too late.
Rickmasta has joined #ruby
m3_del has quit [Ping timeout: 265 seconds]
Wompy has quit [Remote host closed the connection]
skinux has quit [Ping timeout: 265 seconds]
<dreinull75> Ox0dea I'm going to study this tomorrow, I'm falling asleep. Thank you for looking into it.
<Ox0dea> dreinull75: Sure thing. I would actually advise you to forget all you witnessed here today.
quazimodo has joined #ruby
andersoldahl has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
dfinninger has joined #ruby
andersoldahl has quit [Client Quit]
<dreinull75> Ox0dea why? It solves a problem and I'm using this in a local environment only. So as long as I'm happy and it works I'm fine.
failshell has quit [Remote host closed the connection]
<Ox0dea> dreinull75: Fair enough, I guess.
yashinbasement has quit [Quit: Leaving]
<Ox0dea> I've gotta reboot; kernel upgrades break automount. :<
Ox0dea has quit [Quit: WeeChat 1.4-dev]
pocketprotector- has quit [Ping timeout: 240 seconds]
ESpiney has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
Ox0dea has joined #ruby
htmldrum has joined #ruby
karapetyan has joined #ruby
northfurr has quit [Quit: northfurr]
nfk has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
charliesome has joined #ruby
bender_unit has joined #ruby
northfurr has joined #ruby
roxtrongo has joined #ruby
malconis has joined #ruby
mbrune has quit [Quit: leaving]
dopieee has quit [Quit: This computer has gone to sleep]
bryanray has joined #ruby
h99h9h88 has joined #ruby
yardenbar has joined #ruby
<svkurowski> Which environment variable do i have to set s.t. Datetime#strftime outputs day and month names in another language than English? I tried LANG=de_DE.UTF-8 LC_ALL=de_DE.UTF-8 LANGUAGE=de_DE ./script.rb but it still outputs english names
karapetyan has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
willharrison has joined #ruby
CloCkWeRX has quit [Ping timeout: 268 seconds]
JammyHammy has joined #ruby
skinux has joined #ruby
bender_unit has quit [Ping timeout: 268 seconds]
h99h9h88 has quit [Ping timeout: 244 seconds]
failshell has joined #ruby
chipotle has quit [Quit: cheerio]
ReK2 has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
dorei has quit []
jwaldrip has joined #ruby
failshell has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kristofferR has joined #ruby
gizless has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
freerobby has quit [Quit: Leaving.]
bender_unit has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
roxtrongo has quit [Remote host closed the connection]
gambl0re has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
TheHodge has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
chopin has quit []
chipotle has joined #ruby
jwaldrip has quit [Ping timeout: 244 seconds]
chipotle_ has joined #ruby
stamina has quit [Ping timeout: 250 seconds]
weemsledeux has joined #ruby
blue_deref has quit [Quit: bbn]
chipotle has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
alexdunne has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
dopamean_ has joined #ruby
skweek has joined #ruby
Underdogg has quit [Read error: Connection reset by peer]
_aeris_ has quit [Ping timeout: 268 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
eminencehc has joined #ruby
nateberkopec has joined #ruby
pontiki has joined #ruby
jwaldrip has joined #ruby
jgt1 has joined #ruby
pandaant has joined #ruby
alexdunne has quit [Ping timeout: 265 seconds]
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_aeris_ has joined #ruby
<pontiki> o/
jessemcgilallen has quit [Quit: jessemcgilallen]
<shevy> yo snowtiki
<shevy> xmas is coming with more snow and a ruby release
dfinninger has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 255 seconds]
jgpawletko has joined #ruby
rcvalle has quit [Quit: rcvalle]
DefV has quit [Ping timeout: 260 seconds]
Jan_ has joined #ruby
l_tonz has joined #ruby
l_tonz has quit [Remote host closed the connection]
l_tonz has joined #ruby
<crime> what are we getting?
shazaum_ has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
whippythellama has quit [Quit: WeeChat 1.3]
<shevy> preliminary frozen string support, at the least via some configure-compile option: https://github.com/ruby/ruby/blob/trunk/ChangeLog#L132
<crime> frozen as in immutable?
<crime> nvm, i'll read the thing
<shevy> I don't quite know with what to send to configure to for the next ruby version, I'll probably test frozen strings as early as possible so it will bite me as little as possible lateron
<shevy> yeah
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> I guess _ = '' will be similar to _ = ''.freeze
vigintas has quit [Ping timeout: 246 seconds]
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
bender_unit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jwaldrip has quit [Quit: Lingo: www.lingoirc.com]
Pupeno has quit [Remote host closed the connection]
jord has joined #ruby
fowl has joined #ruby
northfurr has quit [Quit: northfurr]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro has quit [Ping timeout: 255 seconds]
roger_rabbit has quit [Read error: Connection reset by peer]
pontiki has quit [Ping timeout: 246 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 250 seconds]
ja is now known as mk
mk is now known as ja
barhum2013 has quit [Quit: barhum2013]
willharrison has joined #ruby
barhum2013 has joined #ruby
m3_del has joined #ruby
nateberkopec has joined #ruby
barhum2013 has quit [Client Quit]
iateadonut has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle_ has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
Xiti has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
mg^ has quit [Read error: Connection reset by peer]
hxegon has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
malconis has joined #ruby
malconis has quit [Client Quit]