havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.3; 2.2.6; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
masta`` has joined #ruby
<echosystm> what's the latest hotness in background jobs that could satisfy this?
dogweather has joined #ruby
nettoweb has joined #ruby
binaryplease has joined #ruby
dnicole has joined #ruby
<echosystm> the schedule will never change, so it can be hard-coded
toretore has quit [Ping timeout: 256 seconds]
JoshS has joined #ruby
<soahccc> Any witches here? I implemented keyboard controls with curses and everything is fine. Now I want to pipe stuff into the program and now the keyboard events are like delayed by 5 seconds :( What can I do?
jcao219 has quit [Ping timeout: 250 seconds]
l33n has joined #ruby
johnmccabe has joined #ruby
jmignault has joined #ruby
Snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Olipro has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SCHAAP137 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
rwb has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
nettoweb has quit [Ping timeout: 268 seconds]
nettoweb has joined #ruby
firstdayonthejob has joined #ruby
siaw23 has quit [Quit: siaw23]
raul782 has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
bathtub_shark has joined #ruby
csk has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
Elemenn has joined #ruby
nettoweb1 has joined #ruby
Tempesta_ has joined #ruby
masta`` has quit []
<eam> I wish ruby 1.8 had File.write
<eam> soahccc: is curses trying to interact with your pipe?
firstdayonthejob has quit [Ping timeout: 260 seconds]
chrisja has quit [Quit: leaving]
d0nn1e has quit [Ping timeout: 260 seconds]
<soahccc> eam: yeah I just realized, no idea how that even works. I read stdin (pipe) and stdin(typing) :S
Alina-malina has joined #ruby
Tempesta has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
d5sx43 has joined #ruby
moei has quit [Quit: Leaving...]
SteenJobs has quit [Quit: peaceee]
nelsonsar has joined #ruby
fullofcaffeine has joined #ruby
d0nn1e has joined #ruby
<soahccc> I think I scrap this idea of keyboard controls :D Even without pipe I only get every second typed character, I don't wanna go down this road I think
dmtd has joined #ruby
SCHAAP137 has quit [Ping timeout: 268 seconds]
dogweather has quit [Remote host closed the connection]
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
l33n has quit [Quit: Leaving]
benlieb has joined #ruby
<eam> you can read from the tty even if stdin is directed elsewhere, but it usually takes some deliberate mechanations
<eam> the app may naively expect to do terminal ops on stdin and that may be the problem
<eam> basically, somewhere you have to have a descriptor to your tty and get curses to use that instead of stdin
dnicole has quit [Remote host closed the connection]
d^sh has quit [Ping timeout: 260 seconds]
<eam> good example of this: echo echo hi | sudo sh
Kestrel-029 has joined #ruby
nettoweb has joined #ruby
threedee has joined #ruby
d5sx43 has quit [Quit: Leaving...]
Akuma has joined #ruby
<eam> the way sudo makes that work is it iterates the entire set of stdin,out,err to test which ones are terminals and then it explicitly does the password prompt interaction via that descriptor
Azure|dc has joined #ruby
Akuma has quit [Client Quit]
Elemenn has quit [Ping timeout: 250 seconds]
Dragonai has quit [Quit: zzz]
Azure has quit [Read error: Connection reset by peer]
d^sh has joined #ruby
Rodya_ has quit [Remote host closed the connection]
bathtub_shark has quit [Ping timeout: 260 seconds]
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
ocbtec has quit [Quit: leaving]
threedee has quit [Quit: Ex-Chat]
threedee has joined #ruby
jmignault has quit [Ping timeout: 250 seconds]
threedee has quit [Client Quit]
SCHAAP137 has joined #ruby
threedee has joined #ruby
Illianthe has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
l33n has joined #ruby
threedee has quit [Client Quit]
threedee has joined #ruby
polysics has joined #ruby
Sammichmaker has joined #ruby
domgetter has joined #ruby
sinktyler has joined #ruby
CasaBlanco has left #ruby [#ruby]
threedee has quit [Client Quit]
threedee has joined #ruby
threedee has quit [Client Quit]
saneax is now known as saneax-_-|AFK
sinktyler has quit [Client Quit]
bathtub_shark has joined #ruby
bathtub_shark has quit [Excess Flood]
polysics has quit [Ping timeout: 246 seconds]
csk has quit [Quit: ZZZzzz…]
bathtub_shark has joined #ruby
Rodya_ has joined #ruby
skweek has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
Azure|dc has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
Immune has joined #ruby
blackmesa has joined #ruby
Azure has joined #ruby
sarbs has quit [Read error: Connection reset by peer]
Elemenn has joined #ruby
smlocal has quit [Remote host closed the connection]
smlocal has joined #ruby
aphprentice has joined #ruby
Rodya_ has quit [Remote host closed the connection]
sniff has quit [Remote host closed the connection]
tris has quit [Ping timeout: 250 seconds]
Giordano has joined #ruby
smlocal has quit [Ping timeout: 250 seconds]
<Giordano> hello all. Is there a way to check if a file is binary or text just by it's content?
Rich_Morin has joined #ruby
Elemenn has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
sarbs has joined #ruby
terlar has joined #ruby
ur5us has joined #ruby
<Rich_Morin> I'm having some trouble making sense out of REXML's behavior. Help? (see http://pastie.org/10968744#1)
firstdayonthejob has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<hightower2> Hey, what's some way in which I can run a certain method, and see all methods that were executed from that point until I got the result back?
<elomatreb> hightower2: The TracePoint API sounds like what you want
ruby500 has joined #ruby
karapetyan has joined #ruby
Joufflu has left #ruby [#ruby]
Elemenn has joined #ruby
<ruby500> hi all, I am trying to install the mailcatcher on ubuntu 14.04 and is getting the following error i.e. /usr/bin/ruby2.2 -r ./siteconf.rb extconf.rb mkm.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed, exit code 1
ur5us has quit [Ping timeout: 244 seconds]
Joufflu has joined #ruby
<Joufflu> .
<adam12> ruby500: You might need ruby-dev apt package.
jmignault has joined #ruby
<hightower2> elomatreb, indeed, looks pretty good. Thanks!
karapetyan has quit [Ping timeout: 245 seconds]
Giordano has left #ruby [#ruby]
<ruby500> adam12: I installed the ruby-dev but still getting the above message along with "Gem files will remain installed in /var/lib/gems/2.2.0/gems/eventmachine-1.0.9.1 for inspection"
<ruby500> I don't know what to do?
tris has joined #ruby
<adam12> ruby500: You just installed ruby-dev or you did prior to me mentioning anything?
<ruby500> I just installed after you have advised
<adam12> How did you install Ruby the first time? exact line.
jmignault has quit [Ping timeout: 268 seconds]
<ruby500> I am trying to use PHP to send email and it is using mail catcher.... When I am installing mail catcher then it asked to install ruby > 2.0 then I used the following command to install ruby2.2.0 version i.e. apt-get install ruby2.2
<adam12> so maybe you need ruby2.2-dev
<adam12> is that the one you installed?
hutch34 has joined #ruby
<ruby500> no i installed ruby-dev
<adam12> OK try installing that one, presuming it exists..
<ruby500> so I try the 2.2-dev version then
<ruby500> adam12: you rock mate :) now the mailcatcher is installing
<adam12> good stuff.
<ruby500> Thanks I wasted my 2-hours to google and didn't find any help then thought to come and ask here... I got late :P
Dragonai has joined #ruby
<adam12> lol
Jackneill_ has quit [Remote host closed the connection]
Elemenn has quit [Ping timeout: 250 seconds]
Dragonai has quit [Client Quit]
hutch34 has quit [Ping timeout: 250 seconds]
bathtub_shark has quit [Ping timeout: 260 seconds]
swills has quit [Remote host closed the connection]
serard has quit [Ping timeout: 268 seconds]
<ruby500> adam12: can you give hand in this error i.e. /usr/lib/ruby/2.2.0/net/smtp.rb:541:in initialize': Connection refused - connect(2) for 127.0.0.1 port 1025 (Errorno::ECONNREFUSED)
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adam12> What are you doing when that happens?
<domgetter> ruby500 is there an smtp server running?
<ruby500> no
<ruby500> I am trying to send email from php script using php mail() function and got the above error
swills has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
l33n has quit [Quit: Leaving]
<adam12> It's a weird error...
<adam12> You get that after typing `mailcatcher` ?
bathtub_shark has joined #ruby
railswebdev has joined #ruby
Alina-malina has quit [Ping timeout: 252 seconds]
Elemenn has joined #ruby
Alina-malina has joined #ruby
nikivi has quit [Quit: irc]
Rodya_ has joined #ruby
yuki_is_bored has quit [Ping timeout: 265 seconds]
palms has joined #ruby
hutch34 has joined #ruby
bathtub_shark has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 245 seconds]
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
Elemenn has quit [Ping timeout: 250 seconds]
firstdayonthejob has quit [Ping timeout: 250 seconds]
nelsonsar has quit [Remote host closed the connection]
kobain has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
nelsonsar has joined #ruby
polysics has joined #ruby
nelsonsar has quit [Ping timeout: 260 seconds]
tvw has quit []
polysics has quit [Ping timeout: 250 seconds]
Pupeno has joined #ruby
nelsonsar has joined #ruby
nelsonsar has quit [Remote host closed the connection]
gh has joined #ruby
nelsonsar has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has quit [Ping timeout: 245 seconds]
amclain has quit [Quit: Leaving]
its_over_9000 has joined #ruby
nelsonsar has quit [Ping timeout: 260 seconds]
brianpWins has joined #ruby
raul782 has quit [Remote host closed the connection]
railswebdev has joined #ruby
Mike777 has joined #ruby
sneakerhax has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
binaryplease has quit [Ping timeout: 256 seconds]
Mike777 has quit [Client Quit]
blackmesa has quit [Ping timeout: 268 seconds]
sepp2k has quit [Quit: Leaving.]
fullofcaffeine has quit [Remote host closed the connection]
bathtub_shark has joined #ruby
fullofcaffeine has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
Felipe__ has joined #ruby
blackmesa has joined #ruby
Felipe__ has quit [Client Quit]
bturker has quit [Ping timeout: 256 seconds]
csk has joined #ruby
fubu has joined #ruby
unknowns2k2 has joined #ruby
dnicole has joined #ruby
fullofcaffeine has quit [Ping timeout: 252 seconds]
QoQOoO has joined #ruby
QoQOoO has quit [Client Quit]
QoQOoO has joined #ruby
jschoolcraft has quit [Quit: peace]
gh has quit [Quit: Leaving]
dnicole has quit [Ping timeout: 240 seconds]
d^sh has quit [Ping timeout: 268 seconds]
potatoes___ has quit [Quit: This computer has gone to sleep]
d^sh has joined #ruby
fullofcaffeine has joined #ruby
Immune has quit [Quit: ZzzZZZzzzz]
tjbiddle has joined #ruby
domgetter has quit [Ping timeout: 268 seconds]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
chihhsin has joined #ruby
fullofcaffeine has joined #ruby
railssmith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bogdanteleaga has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
xall has joined #ruby
Rodya_ has joined #ruby
bogdanteleaga has joined #ruby
fullofcaffeine has quit [Ping timeout: 246 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
xall has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Ping timeout: 240 seconds]
Elemenn has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
hutch34 has joined #ruby
astrobunny has joined #ruby
pnbeast has joined #ruby
ResidentBiscuit has quit [Ping timeout: 256 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
railssmith has joined #ruby
railswebdev has joined #ruby
fubu has quit [Excess Flood]
polysics has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
fubu has joined #ruby
raul782 has joined #ruby
QoQOoO_ has joined #ruby
QoQOoO has quit [Read error: Connection reset by peer]
rfoust has joined #ruby
meinside has joined #ruby
csk has quit [Quit: ZZZzzz…]
polysics has quit [Ping timeout: 260 seconds]
potatoes___ has joined #ruby
nitrix has joined #ruby
bufu has joined #ruby
aupadhye has joined #ruby
fubu has quit [Ping timeout: 265 seconds]
Elemenn has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
babblebre has joined #ruby
ruby500 has quit [Quit: Page closed]
bathtub_shark has quit [Ping timeout: 246 seconds]
QoQOoO_ has quit []
optiz0r has quit [Ping timeout: 268 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 250 seconds]
libastral has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
libastral has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tau has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
ResidentBiscuit has quit [Ping timeout: 258 seconds]
bathtub_shark has joined #ruby
Joufflu has quit [Ping timeout: 246 seconds]
railssmith has quit [Quit: Textual IRC Client: www.textualapp.com]
joneshf-laptop has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
harai has quit [Ping timeout: 258 seconds]
optiz0r has joined #ruby
<duper> Hi.. I'm just wondering if there's a gem that expands glob patterns (i.e. not for filesystems, but similar to curl) like '[00-01]' == ['00', '01'] and {0,1,3} == [0,1,3]
railswebdev has joined #ruby
<adam12> duper: What's your exact usecase?
Elemenn has joined #ruby
ICantCook has left #ruby ["bbl"]
howdoi has joined #ruby
Rodya_ has joined #ruby
jaguarmagenta has joined #ruby
<duper> adam12: similar to curl.. if I have a hostname patterns like web-a.host.dom, web-b.host.dom, etc. I wnat to be able to represent them with a pattern..
<duper> instead of having to type them all out
<duper> same with numeric IP addresses
A5101 has joined #ruby
<adam12> I thought maybe the Addressable gem would work .. but I'm thinking no.
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gener1c has quit [Ping timeout: 250 seconds]
BackEndCoder has quit [Excess Flood]
Rodya_ has quit [Ping timeout: 240 seconds]
BackEndCoder has joined #ruby
unknowns2k2 is now known as antoniobeyah
antoniobeyah has quit [Changing host]
antoniobeyah has joined #ruby
astrobunny has joined #ruby
<pnbeast> duper, just a simple range iteration won't do what you want?
jenrzzz has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
polysics has joined #ruby
harai has joined #ruby
astrobunny has quit [Remote host closed the connection]
Channel6 has joined #ruby
astrobunny has joined #ruby
<antoniobeyah> duper: if you can use ruby (eval) it wouldn’t be too hard..
astrobunny has quit [Remote host closed the connection]
bhaak has quit [Ping timeout: 252 seconds]
bhaak has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
Pupeno has joined #ruby
infernix has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
Rich_Morin has left #ruby [#ruby]
<antoniobeyah> are you matching against a list or generating the list?
optiz0r has quit [Remote host closed the connection]
polysics has quit [Ping timeout: 258 seconds]
inoperable has quit [Ping timeout: 245 seconds]
harai has quit [Ping timeout: 248 seconds]
inoperable has joined #ruby
<duper> pnbeast: How would I convert a String into a Range?
fubu has joined #ruby
optiz0r has joined #ruby
<duper> because I want to be able to pass this as input
<baweaver> >> 'a'..'z'
<ruby[bot]> baweaver: # => "a".."z" (https://eval.in/684360)
bufu has quit [Ping timeout: 258 seconds]
Pupeno has quit [Ping timeout: 260 seconds]
<duper> that's a range, yes..
<baweaver> def make_url(*subpaths) subpaths.map { |s| "your_url#{s}" } end
<baweaver> ish
Fire-Dragon-DoL has joined #ruby
<duper> I wanna be able to pass this in ARGV
<baweaver> ARGV[start..-1].map
<baweaver> or a CSV or something like that with a flag using optparse
<baweaver> which may be more flexible
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<duper> okay, so what abour curly braces then?
<duper> {a,xy,0,q} = ['a','xy','0','q']
raul782 has quit [Remote host closed the connection]
<duper> s[1..-2].split(',') # nvmd this works
fubu has quit []
<baweaver> >> %w(a xy 0 q)
<ruby[bot]> baweaver: # => ["a", "xy", "0", "q"] (https://eval.in/684367)
fubu has joined #ruby
hutch34 has joined #ruby
<baweaver> whitespace delimited. Might help
<antoniobeyah> duper: be careful if you are trying to recreate curl’s behavior. it has special handling for some ranges
<antoniobeyah> i.e 000-999
<duper> antoniobeyah: what do u mean
<antoniobeyah> 000-999 is can be parsed as 0-999 if you are pulling in the number
<duper> yah, that's the code i've been looking at
<antoniobeyah> which might not be what you want
<duper> antoniobeyah: I just did ('00'..'03').to_a and it worked fine
<duper> i think
<antoniobeyah> 2.3.1 :010 > (000..55).collect(&:to_s)
<antoniobeyah> => ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55"]
<antoniobeyah> just write a test case to make sure your expected == actual
<antoniobeyah> thats all
sinktyler has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
<duper> oic
<duper> thx
hanmac has quit [Ping timeout: 240 seconds]
<baweaver> >> ('1'..'55').to_a
<ruby[bot]> baweaver: # => ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", ...check link for more (https://eval.in/684371)
<baweaver> Skip ze middleman
<baweaver> considering ARGV items are strings anyways....
<baweaver> Also range does funny things
<baweaver> >> ('0.0.0'..'2.1.2').to_a
<ruby[bot]> baweaver: # => ["0.0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", ...check link for more (https://eval.in/684372)
<baweaver> >> '2.1.2'.next
<ruby[bot]> baweaver: # => "2.1.3" (https://eval.in/684373)
<baweaver> :D
sinktyler has quit [Ping timeout: 252 seconds]
ResidentBiscuit has joined #ruby
infernix has joined #ruby
last_staff has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
dnicole has joined #ruby
herbmillerjr has joined #ruby
dnicole has quit [Ping timeout: 245 seconds]
gix has quit [Ping timeout: 245 seconds]
jcao219 has joined #ruby
ResidentBiscuit has quit [Read error: Connection reset by peer]
<fubu> baweaver: # => "2.1.3" (https://eval.in/684373)
<fubu> baweaver: # => "2.1.3" (https://eval.in/684373)
<baweaver> yes, what about it?
jaguarmagenta has quit [Read error: Connection reset by peer]
hanmac has joined #ruby
fubu has quit []
<baweaver> ....ok then
jaguarmagenta has joined #ruby
gix has joined #ruby
ResidentBiscuit has joined #ruby
_sfiguser has quit [Ping timeout: 265 seconds]
ledestin has joined #ruby
igniting has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
potatoes__ has joined #ruby
ledestin has quit [Client Quit]
potatoes___ has quit [Ping timeout: 252 seconds]
nowhereman has quit [Remote host closed the connection]
aryaching has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
raul782 has joined #ruby
nowhereman has joined #ruby
fubu has joined #ruby
aryaching has joined #ruby
valkyr2e has quit [Quit: Bye.]
jmignault has joined #ruby
Rodya_ has joined #ruby
jmignault has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
_sfiguser has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
valkyr2e has joined #ruby
nowhereman has quit [Read error: Connection reset by peer]
raul782 has quit [Remote host closed the connection]
last_staff has quit [Read error: Connection reset by peer]
hutch34 has quit [Ping timeout: 268 seconds]
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
railswebdev has joined #ruby
rwb has joined #ruby
r3vDev has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
polysics has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby
r3vDev has quit [Quit: Leaving.]
polysics has quit [Ping timeout: 265 seconds]
potatoes__ has quit [Quit: This computer has gone to sleep]
jaguarmagenta has quit [Remote host closed the connection]
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
r3vDev has joined #ruby
fubu has quit [Ping timeout: 250 seconds]
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
r3vDev has quit [Ping timeout: 260 seconds]
bufu has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
d0nn1e has quit [Ping timeout: 258 seconds]
d0nn1e has joined #ruby
Dobler has quit [Ping timeout: 260 seconds]
fullofcaffeine has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
pawnbox has joined #ruby
raul782 has joined #ruby
enterprisey has joined #ruby
fullofcaffeine has quit [Ping timeout: 252 seconds]
enterprisey has quit [Max SendQ exceeded]
enterprisey has joined #ruby
eggshke has joined #ruby
xall has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
audiodude has joined #ruby
xall has quit [Ping timeout: 244 seconds]
tuxaddicted has quit [Quit: Leaving]
tuxaddicted has joined #ruby
igniting has joined #ruby
zapata has quit [Quit: WeeChat 1.6]
AlexRussia has joined #ruby
bocaneri has joined #ruby
Rodya_ has joined #ruby
astrobunny has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
Dragonai has joined #ruby
ResidentBiscuit has quit []
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 256 seconds]
Dimik has joined #ruby
Dragonai has quit [Quit: <3]
fullofcaffeine has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
domgetter has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
palms has quit [Ping timeout: 250 seconds]
bufu has quit [Ping timeout: 260 seconds]
brianpWins has quit [Ping timeout: 244 seconds]
tdy1 has quit [Read error: Connection reset by peer]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
gingray has joined #ruby
tdy has joined #ruby
ledestin has joined #ruby
charliesome has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dnicole has joined #ruby
matp has quit [Remote host closed the connection]
matp has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
sdothum has joined #ruby
matp has quit [Remote host closed the connection]
matp has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
gingray has quit [Ping timeout: 244 seconds]
terlar has quit [Ping timeout: 260 seconds]
saneax-_-|AFK is now known as saneax
enterprisey has quit [Quit: Leaving]
moei has joined #ruby
Rodya_ has joined #ruby
fullofca_ has joined #ruby
Pupeno has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
tenderlove has quit [Ping timeout: 246 seconds]
fullofcaffeine has joined #ruby
Rodya_ has quit [Ping timeout: 256 seconds]
fullofca_ has quit [Ping timeout: 260 seconds]
fullofca_ has joined #ruby
polysics has joined #ruby
fullofcaffeine has quit [Ping timeout: 245 seconds]
hahuang65 has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
muelleme has joined #ruby
echosystm has quit [Quit: leaving]
Channel6 has quit [Quit: Leaving]
cyphase has quit [Ping timeout: 252 seconds]
joneshf-laptop has quit [Ping timeout: 248 seconds]
audiodude has quit [Quit: Textual IRC Client: www.textualapp.com]
aidalgol has joined #ruby
hutch34 has joined #ruby
wugy has joined #ruby
wugy has quit [Excess Flood]
hutch34 has quit [Ping timeout: 256 seconds]
jaguarmagenta has joined #ruby
zapata has joined #ruby
r3vDev has joined #ruby
dar123 has joined #ruby
wugy has joined #ruby
wugy has quit [Excess Flood]
Rodya_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 248 seconds]
cyphase has joined #ruby
Jameser has joined #ruby
Rodya_ has quit [Ping timeout: 256 seconds]
bturker has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
vuoto has joined #ruby
joneshf-laptop has joined #ruby
jgnagy has quit [Remote host closed the connection]
bturker has quit [Ping timeout: 256 seconds]
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
antoniobeyah has quit [Ping timeout: 245 seconds]
bmurt has quit [Client Quit]
raul782 has quit [Remote host closed the connection]
unknowns2k2 has joined #ruby
unknowns2k2 has quit [Client Quit]
raul782 has joined #ruby
polysics has quit [Ping timeout: 260 seconds]
symm- has quit [Ping timeout: 265 seconds]
raul782 has quit [Ping timeout: 256 seconds]
xall has joined #ruby
conta has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
poikon has quit [Ping timeout: 250 seconds]
fullofca_ has quit [Remote host closed the connection]
Guest2 has joined #ruby
antoniobeyah has joined #ruby
fullofcaffeine has joined #ruby
poikon has joined #ruby
AlexRussia has joined #ruby
firstdayonthejob has joined #ruby
xall has quit [Ping timeout: 245 seconds]
fullofca_ has joined #ruby
hutch34 has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
muelleme has quit [Ping timeout: 245 seconds]
bturker has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofc__ has joined #ruby
fullofc__ has quit [Remote host closed the connection]
pnbeast has quit [Quit: leaving]
hutch34 has quit [Ping timeout: 252 seconds]
fullofcaffeine has joined #ruby
railswebdev has joined #ruby
fullofca_ has quit [Ping timeout: 248 seconds]
bturker has quit [Ping timeout: 256 seconds]
firstdayonthejob has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
fullofcaffeine has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
jaguarmagenta has joined #ruby
govg has joined #ruby
last_staff has quit [Ping timeout: 240 seconds]
xall has joined #ruby
terlar has joined #ruby
biberu has joined #ruby
Cohedrin has joined #ruby
gautam has joined #ruby
<gautam> I keep getting ``block in <main>': undefined method `use_ssl=' for #<Net::HTTP::Put PUT> (NoMethodError)` Is there a way to make https put call in ruby?
andikr has joined #ruby
<baweaver> specifically: http://stackoverflow.com/a/11297962
mvxlr has joined #ruby
<gautam> Thanks
william3 has joined #ruby
gingray has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
hutch34 has joined #ruby
aganov has joined #ruby
benlieb has quit [Quit: benlieb]
pawnbox has quit [Remote host closed the connection]
railswebdev has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
agit0 has quit [Read error: Connection reset by peer]
dminuoso has quit [Changing host]
dminuoso has joined #ruby
blaxter has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
terlar has quit [Ping timeout: 250 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
_2easy has joined #ruby
codfection has joined #ruby
ereslibre has joined #ruby
TomyWork has joined #ruby
Guest2 has quit [Quit: Textual IRC Client: www.textualapp.com]
A5101 has quit [Ping timeout: 260 seconds]
ishe_ua has joined #ruby
Immune has joined #ruby
pawnbox has joined #ruby
Snickers has joined #ruby
aryaching_ has joined #ruby
aufi has joined #ruby
aryaching has quit [Ping timeout: 248 seconds]
n3b has joined #ruby
n3b has quit [Client Quit]
marktwo has joined #ruby
marktwo has quit [Changing host]
marktwo has joined #ruby
claudiuinberlin has joined #ruby
n3b has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bturker has joined #ruby
SesMan has joined #ruby
n3b has left #ruby [#ruby]
n3b has joined #ruby
n3b has left #ruby [#ruby]
Immune has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blaxter has quit [Quit: foo]
Pupeno has quit [Remote host closed the connection]
the_drow has joined #ruby
byte512 has joined #ruby
millerti has quit [Ping timeout: 250 seconds]
polysics has joined #ruby
pandaant has joined #ruby
railswebdev has joined #ruby
pandaant has quit [Remote host closed the connection]
kith has quit [Quit: kith]
mark_66 has joined #ruby
Humdai has joined #ruby
Jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
pandaant has joined #ruby
kith has joined #ruby
codfection has quit [Remote host closed the connection]
mvxlr has quit [Ping timeout: 260 seconds]
flori has joined #ruby
ur5us has joined #ruby
mikecmpbll has joined #ruby
hutch34 has joined #ruby
terlar has joined #ruby
Chair has joined #ruby
ishe_ua has quit [Remote host closed the connection]
<vali> morning
flori has quit [Quit: leaving]
hutch34 has quit [Ping timeout: 240 seconds]
flori has joined #ruby
wugy has joined #ruby
<terlar> good morning
Beams has joined #ruby
ereslibre has quit [Quit: Bye!]
a1fa has quit [Remote host closed the connection]
Immune has joined #ruby
Immune has quit [Max SendQ exceeded]
Rodya_ has joined #ruby
nankyokusei has joined #ruby
Immune has joined #ruby
dnicole has joined #ruby
_2easy has quit [Ping timeout: 256 seconds]
jcao219 has quit [Ping timeout: 258 seconds]
r3vDev has quit [Ping timeout: 250 seconds]
jcao219 has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
doublemalt_ has joined #ruby
nankyokusei has quit [Remote host closed the connection]
jgnagy has joined #ruby
Silthias1 has quit [Ping timeout: 248 seconds]
lenwood has joined #ruby
dasher00 has quit [Ping timeout: 265 seconds]
s2013 has joined #ruby
astrobunny has quit [Remote host closed the connection]
zukin has joined #ruby
jgnagy has quit [Ping timeout: 260 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Definity has joined #ruby
bayed has joined #ruby
_2easy has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
terens has joined #ruby
Silthias has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
karapetyan has joined #ruby
Sembei has quit [Ping timeout: 268 seconds]
agit0 has joined #ruby
r3vDev has joined #ruby
frozengeek____ has joined #ruby
chocolatemario has joined #ruby
aupadhye has quit [Quit: Leaving]
ereslibre has joined #ruby
hutch34 has joined #ruby
r3vDev has quit [Client Quit]
r3vDev has joined #ruby
nobitanobi has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zukin has quit [Ping timeout: 268 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
chocolatemario has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
<vali> hi guys
chocolatemario has joined #ruby
<vali> anyone here using logstash ?
<vali> I know i'm not the the LS channel..
zukin has joined #ruby
polysics has quit []
gautam has quit [Ping timeout: 260 seconds]
JesseH has quit [Ping timeout: 250 seconds]
frozengeek_____ has joined #ruby
chocolatemario has quit [Remote host closed the connection]
<blackbom1> vali: just state your problem, and if someone knows, you'll get a reply.
chocolatemario has joined #ruby
frozengeek____ has quit [Ping timeout: 258 seconds]
ocbtec has joined #ruby
jsrn_ has joined #ruby
xall has quit [Ping timeout: 248 seconds]
chocolatemario has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
<vali> ok. I'm using some input that generated multiple events/messages and the issue is that logstash combines them into one event/message
<vali> and ideas on how to make LS treat them as individual messages ?
rodfersou has joined #ruby
<blackbom1> how does this relate to ruby
<vali> well..logstash uses ruby
Immune has quit [Ping timeout: 265 seconds]
<vali> you can write ruby code directly in logstash
<vali> and I was thinking on how to hack the message and split it on the way to output
lenwood has quit [Quit: Konversation terminated!]
<vali> I think I found a way...
lenwood has joined #ruby
govg has quit [Ping timeout: 245 seconds]
tomphp has joined #ruby
ledestin has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
lel has quit [Ping timeout: 258 seconds]
TvL2386 has joined #ruby
Definity has quit [Ping timeout: 248 seconds]
maokomioko has joined #ruby
Definity has joined #ruby
frozengeek____ has joined #ruby
maokomioko has quit [Client Quit]
ur5us has quit [Ping timeout: 258 seconds]
its_over_9000 is now known as mazafaka
mazafaka is now known as savage
frozengeek_____ has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
Definity has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
bturker has joined #ruby
aryaching has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has joined #ruby
<vali> any ideas why I get this error ? => Ruby exception occurred: undefined method `start_with?'
aryaching_ has quit [Ping timeout: 252 seconds]
<canton7> you're trying to call #start_with? on something which doesn't define that method?
A124 has quit [Quit: '']
<vali> seems to be using /opt/logstash/vendor/bundle/jruby/1.9/
Rodya_ has quit [Ping timeout: 258 seconds]
<vali> canton7, => undefined method `start_with?' for :attributes:Symbol
<xrlk> wow u know so much about ruby....
<xrlk> ur brain must be very big.....
<vali> canton7, I'm using logstash with a ruby filter that basically allows to execute ruby code on the current event/message
Elemenn is now known as elementaru
tomphp has quit [Read error: Connection reset by peer]
A124 has joined #ruby
tomphp has joined #ruby
kassav has joined #ruby
r3vDev has quit [Ping timeout: 250 seconds]
Pupeno has joined #ruby
mikecmpbll has quit [Quit: inabit.]
<dminuoso> Mmm, pry and minimagick are not friends.
solocshaw has joined #ruby
AlexRussia has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hyuk has joined #ruby
<blackbom1> dminuoso: how come?
tomphp_ has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
zukin has quit [Ping timeout: 248 seconds]
jaguarmagenta has joined #ruby
bathtub_shark has quit [Quit: WeeChat 1.6]
nadir has quit [Quit: Connection closed for inactivity]
ledestin has joined #ruby
bathtub_shark has joined #ruby
railswebdev has joined #ruby
tomphp has quit [Ping timeout: 250 seconds]
zukin has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
<vali> any ideas why ruby 1.9 is failing with some json data?
doublemalt_ has quit [Read error: Connection reset by peer]
<sonOfRa> the variable you call json isn't a ruby hash
ereslibre has quit [Quit: Bye!]
<sonOfRa> You can do {"Foo" => "bar"} or {:foo => "bar"} or { foo: "bar"}, but not { "foo": "bar" }
workmad3 has joined #ruby
<sonOfRa> My ruby's a bit rusty, but I think that's not valid ruby in any ruby version, not even newer than 1.9
<ljarvis> it is
<ljarvis> >> { "foo": "bar" }
<ruby[bot]> ljarvis: # => {:foo=>"bar"} (https://eval.in/684655)
<ljarvis> 19>> { "foo": "bar" }
<ruby[bot]> ljarvis: # => /tmp/execpad-25f6d59cffa2/source-25f6d59cffa2:2: syntax error, unexpected ':', expecting tASSOC ...check link for more (https://eval.in/684657)
<sonOfRa> aha
<ljarvis> not sure which version it was, probably 2.0
<ljarvis> but yeah, you're right about this being the error of course
<ljarvis> vali: json = JSON.parse("your json here")
<dminuoso> 19>> { foo: "bar" }
<ruby[bot]> dminuoso: # => {:foo=>"bar"} (https://eval.in/684662)
binaryplease has joined #ruby
ereslibre has joined #ruby
<dminuoso> blackbom1: I'm doing image = MiniMagick::Image.read(blob); image.resize "100x100"; binding.pry - at this point image just gives me lots of interesting errors.
ferr has joined #ruby
<blackbom1> hrm
BTRE has quit [Read error: Connection reset by peer]
Salih_ has joined #ruby
nettoweb has joined #ruby
dionysus69 has joined #ruby
<sonOfRa> vali: Just a thought, but maybe consider dropping ruby 1.9. afaik it has been effectively dead (no more security patches) since February 2015
ldnunes has joined #ruby
hutch34 has joined #ruby
Salih_ has quit [Client Quit]
Salih has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
Salih has quit [Client Quit]
_2easy has quit [Ping timeout: 268 seconds]
Salih has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
tomphp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_drow has quit [Quit: This computer has gone to sleep]
BTRE has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pandaant has quit [Remote host closed the connection]
r3vDev has joined #ruby
saneax is now known as saneax-_-|AFK
dionysus69 has quit [Ping timeout: 245 seconds]
Rodya_ has joined #ruby
jmignault has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
frozengeek____ has quit [Quit: frozengeek____]
zukin has quit [Ping timeout: 268 seconds]
hightower3 has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
careta has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
terlar has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 260 seconds]
moei has quit [Quit: Leaving...]
jinie has joined #ruby
<vali> ljarvis, sorry for the late reply. I'm checking it now
toretore has joined #ruby
moei has joined #ruby
careta has quit [Ping timeout: 260 seconds]
_2easy has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
railswebdev has joined #ruby
saneax-_-|AFK is now known as saneax
johnmccabe has joined #ruby
mim1k|wo1k has joined #ruby
careta has joined #ruby
tomphp has joined #ruby
mim1k|work has quit [Ping timeout: 268 seconds]
the_drow has joined #ruby
aryaching_ has joined #ruby
careta has quit [Ping timeout: 245 seconds]
r3vDev has quit [Ping timeout: 252 seconds]
Pupeno has quit [Remote host closed the connection]
careta has joined #ruby
<vali> sonOfRa, unfortunately I cannot switch the ruby version. It's coming with logstash.
<vali> ljarvis, I'm still getting the same error unfortunately
aryaching has quit [Ping timeout: 245 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<vali> with ruby-2.3.0 everything works as expected
binaryplease has quit [Ping timeout: 265 seconds]
jcao219 has joined #ruby
joneshf-laptop has quit [Quit: Leaving]
muhammad_ has joined #ruby
muhammad__ has joined #ruby
<muhammad__> hello everyone
muhammad_ has quit [Client Quit]
Snowy has joined #ruby
<muhammad__> hello Snowy
<Snowy> hi
<muhammad__> Just joined this group for the first time
<Snowy> welcome!
<muhammad__> thanks!
<muhammad__> anything interesting happening?
<Snowy> i really couldn't say. i'm not hugely active on the channel.
<muhammad__> aah, I see...
psychicist__ has joined #ruby
muhammad__ has quit [Quit: Page closed]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tempesta has quit [Quit: AdiIRC is updating to v2.7 Beta Build (2016/11/24) 32 Bit]
Tempesta has joined #ruby
domgetter has quit [Ping timeout: 260 seconds]
<xrlk> hey
<xrlk> ruby
<xrlk> im a c dev
<vali> I'm not a developer. Does that count? :)
Rodya_ has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
enyo has joined #ruby
sepp2k has joined #ruby
csk has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
ldnunes has joined #ruby
<dminuoso> xrlk: Does one have to be one or the other?
<xrlk> no
<xrlk> languages are irrelevant
<xrlk> all you need is an OOP mindset and knowledge of design patterns
sparch has joined #ruby
<toretore> oop mindset
frozengeek____ has joined #ruby
c355e3b has joined #ruby
<dminuoso> xrlk: Languages are quite relevant. They dictate specific patterns and mindsets. Also broad knowledge of libraries and language facilities is required to be good. ;-)
solocshaw has joined #ruby
nelsonsar has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xrlk> I'll pay some junior dev to do that
solocshaw has quit [Ping timeout: 256 seconds]
jaguarmagenta has joined #ruby
csk has quit [Remote host closed the connection]
ereslibre has quit [Quit: Bye!]
_sfiguser has quit [Ping timeout: 245 seconds]
jaguarmagenta has quit [Ping timeout: 256 seconds]
ereslibre has joined #ruby
terlar has joined #ruby
lenwood has quit [Quit: Konversation terminated!]
lenwood has joined #ruby
r3vDev has joined #ruby
byte512 has quit [Ping timeout: 268 seconds]
xall has joined #ruby
* apeiros has OP mindest
<apeiros> *mindset
<dminuoso> apeiros: Were you hungover?
blackmesa has joined #ruby
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
_sfiguser has joined #ruby
_sfiguser has quit [Max SendQ exceeded]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_sfiguser has joined #ruby
_sfiguser has quit [Max SendQ exceeded]
_sfiguser has joined #ruby
charliesome has joined #ruby
byte512 has joined #ruby
nelsonsar has quit [Ping timeout: 256 seconds]
bastilian_ has quit []
bastilian_ has joined #ruby
r3vDev has quit [Ping timeout: 252 seconds]
bastilian_ is now known as bastilian
<apeiros> dminuoso: from the cuba libres?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codfection has joined #ruby
mvxlr has joined #ruby
ereslibre has quit [Quit: Bye!]
codfection has quit [Remote host closed the connection]
pandaant has joined #ruby
_2easy has quit [Ping timeout: 252 seconds]
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
ereslibre has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
jcao219 has quit [Ping timeout: 256 seconds]
jgnagy has joined #ruby
_sfiguser has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
koooge has quit [Quit: Leaving...]
Azure|dc has joined #ruby
_2easy has joined #ruby
Azure has quit [Ping timeout: 256 seconds]
jgnagy has quit [Ping timeout: 256 seconds]
Snowy has quit [Quit: ragequit]
tuxaddicted has quit [Ping timeout: 246 seconds]
AlexJakeGreen has joined #ruby
kobain has joined #ruby
_2easy has quit [Ping timeout: 250 seconds]
nelsonsar has joined #ruby
nelsonsa_ has joined #ruby
tau has joined #ruby
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
nelsonsar has quit [Ping timeout: 244 seconds]
<kke> i'm getting "undefined method `using'" on travis for ruby-2.0.0. i thought using/refinements were already in 2.0?
supergeek has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
_sfiguser has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
pandaant has quit [Remote host closed the connection]
tvw has joined #ruby
<kke> pfft. i think 2.0 can only refine globally?
Macaveli has joined #ruby
<kke> maybe i can somehow workaround by defining Module.using to call Object.using if ruby version < 2.1
acovrig has joined #ruby
r3vDev has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<acovrig> I’m trying to catch a Mechanize exception - I’m getting this: Mechanize::ResponseCodeError: 404 => Net::HTTPNotFound for http://127.0.0.1:3000/asdfasdf -- unhandled response from this: https://gist.github.com/acovrig/45124fdf77e4796a004fec5a26a02584 how am I not catching it?
railswebdev has joined #ruby
<toretore> acovrig: something is not what you think it is - gist the whole file
yuki_is_bored has joined #ruby
supergeek has quit [Remote host closed the connection]
gingray has quit [Ping timeout: 250 seconds]
supergeek has joined #ruby
rykou has joined #ruby
_2easy has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
AlexJakeGreen has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
masta`` has joined #ruby
banisterfiend has joined #ruby
jaguarmagenta has joined #ruby
binaryplease has joined #ruby
lel has joined #ruby
terlar has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
_2easy has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaguarmagenta has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
xall has quit [Ping timeout: 265 seconds]
lel_ has joined #ruby
sepp2k has quit [Quit: Leaving.]
last_staff has quit [Client Quit]
sepp2k has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
raul782 has joined #ruby
eggshke has quit []
rfoust has joined #ruby
rfoust has quit [Client Quit]
ropeney has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore> acovrig: can you add the entire stack trace too?
<toretore> make sure line numbers match
jmignault has quit [Ping timeout: 265 seconds]
sinktyler has joined #ruby
nelsonsa_ has quit [Remote host closed the connection]
nelsonsar has joined #ruby
tomphp has joined #ruby
rodfersou is now known as rodfersou|lunch
psychicist__ has quit [Ping timeout: 250 seconds]
banisterfiend has joined #ruby
dionysus69 has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nelsonsar has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
psychicist__ has joined #ruby
tpendragon has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
GodFather has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
saneax is now known as saneax-_-|AFK
crissae has joined #ruby
crissae has quit [Client Quit]
Rodya_ has quit [Ping timeout: 258 seconds]
ledestin has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
neminis has joined #ruby
claudiuinberlin has quit [Read error: Connection reset by peer]
jmignault has joined #ruby
claudiuinberlin has joined #ruby
acovrig has quit [Quit: acovrig]
ramortegui has joined #ruby
acovrig has joined #ruby
nelsonsar has joined #ruby
M-shine has quit [Read error: Connection reset by peer]
drorp24[m] has quit [Read error: Connection reset by peer]
Luca[m] has quit [Read error: Connection reset by peer]
Giphy[m] has quit [Read error: Connection reset by peer]
meaggan[m] has quit [Write error: Connection reset by peer]
riotgsmport[m] has quit [Read error: Connection reset by peer]
zeto[m] has quit [Read error: Connection reset by peer]
kineticrootkit[m has quit [Write error: Connection reset by peer]
Donalmartin[m] has quit [Read error: Connection reset by peer]
M-mistake has quit [Read error: Connection reset by peer]
TheGillies has quit [Read error: Connection reset by peer]
Michael5[m] has quit [Read error: Connection reset by peer]
coreyja[m] has quit [Write error: Connection reset by peer]
cpfeilschifter[m has quit [Write error: Connection reset by peer]
daveyboi[m] has quit [Read error: Connection reset by peer]
eliotk[m] has quit [Write error: Connection reset by peer]
laithshadeed[m] has quit [Write error: Connection reset by peer]
philidor[m] has quit [Write error: Connection reset by peer]
velu_aon[m] has quit [Read error: Connection reset by peer]
davix[matrix] has quit [Write error: Connection reset by peer]
h42r62[m] has quit [Read error: Connection reset by peer]
serah[m] has quit [Read error: Connection reset by peer]
M-manveru has quit [Write error: Connection reset by peer]
bascht has quit [Write error: Connection reset by peer]
fladson[m] has quit [Read error: Connection reset by peer]
tobyn[m] has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghostlight has quit [Ping timeout: 256 seconds]
railswebdev has joined #ruby
Beams has quit [Ping timeout: 245 seconds]
Beams has joined #ruby
careta has quit [Ping timeout: 252 seconds]
<acovrig> toretore: woow… I resized my terminal window to see the entire stack, and relized I was catching the exception, printing it, then raising it, therefore throwing it right back…
<acovrig> I need a bigger display lol
etehtsea has joined #ruby
ghostlight has joined #ruby
xall has joined #ruby
jaguarmagenta has joined #ruby
etehtsea has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
TvL2386 has quit [Quit: Ex-Chat]
shinnya has joined #ruby
BackEndCoder has quit [Excess Flood]
jaguarmagenta has quit [Remote host closed the connection]
BackEndCoder has joined #ruby
jaguarmagenta has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
gnufied has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Remote host closed the connection]
supergeek has quit [Quit: Goodbye cruel world...]
drorp24[m] has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
fullofcaffeine has joined #ruby
JesseH has joined #ruby
sinktyler has quit [Quit: sinktyler]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mvxlr has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kke> i think even osx sierra still has ruby 2.0 by default. annoying.
<neminis> is it possible to use my_hash_of_arrays = Hash.new []
Xeago has quit [Ping timeout: 256 seconds]
sinktyler has joined #ruby
<matthewd> neminis: Yes, but you don't want to. Use a block.
<neminis> I had to use my_hash_of_arrays['new_key'] ||= []
terlar has joined #ruby
<dminuoso> Hash.new(obj) does not do what most people think it does.
<kke> neminis: that will give you a hash that returns an empty array for undefined items. my_hash_of[:foo] is [] you can do my_hash_of[:foo] << "foo" without first doing something like my_hash_of[:foo] = []
nettoweb has joined #ruby
<dminuoso> nettoweb: Hash.new([]) will use a single object and not create a new empty array each time.
<neminis> oh i understand now
ereslibre has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
<kke> oh, right, that too
<dminuoso> >> h = Hash.new([]); h[1] << 1; puts h[2]
<ruby[bot]> dminuoso: # => 1 ...check link for more (https://eval.in/684899)
<neminis> because it was filling the same array over and over and giving it to all keys
<dminuoso> >> h = Hash.new([]); h[1] << 1; p h[2]
<ruby[bot]> dminuoso: # => [1] ...check link for more (https://eval.in/684900)
<neminis> it's really counter intuitive yes
Xeago has joined #ruby
<dminuoso> nettoweb: If you think about it for a second it makes sense. ;-)
gnufied has joined #ruby
<neminis> yes
<neminis> it is actually handier when you need to do that, it saves time
<neminis> otherwise it is best to use a block then
<neminis> i understand now, thank you all
jmignault has quit [Ping timeout: 250 seconds]
aryaching_ has quit [Ping timeout: 260 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackbom1 has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
acovrig has quit [Quit: acovrig]
sinktyler has quit [Quit: sinktyler]
pawnbox has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
ereslibre has joined #ruby
Luca[m] has joined #ruby
jomakasi[m] has joined #ruby
davix[matrix] has joined #ruby
Michael5[m] has joined #ruby
coreyja[m] has joined #ruby
kineticrootkit[m has joined #ruby
tobyn[m] has joined #ruby
TheGillies has joined #ruby
daveyboi[m] has joined #ruby
laithshadeed[m] has joined #ruby
meaggan[m] has joined #ruby
bascht has joined #ruby
riotgsmport[m] has joined #ruby
Giphy[m] has joined #ruby
M-shine has joined #ruby
eliotk[m] has joined #ruby
M-mistake has joined #ruby
velu_aon[m] has joined #ruby
philidor[m] has joined #ruby
cpfeilschifter[m has joined #ruby
M-manveru has joined #ruby
Donalmartin[m] has joined #ruby
serah[m] has joined #ruby
h42r62[m] has joined #ruby
fladson[m] has joined #ruby
_2easy has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
BackEndCoder has quit [Excess Flood]
chouhoulis has quit [Ping timeout: 252 seconds]
etehtsea has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
BackEndCoder has joined #ruby
karapetyan has joined #ruby
tpendragon has joined #ruby
_2easy has quit [Ping timeout: 268 seconds]
Snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 244 seconds]
igniting has quit [Ping timeout: 245 seconds]
<neminis> by the way, is there an idiomatic way to iterate over all elements but the last?
_2easy has joined #ruby
_2easy has quit [Changing host]
_2easy has joined #ruby
<neminis> in an array
houhoulis has joined #ruby
<neminis> i will have to use three dots actually
<TheBrayn> a[0...-1].each
terens has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 260 seconds]
vuoto has quit [Remote host closed the connection]
<neminis> TheBrayn: thanks!
vuoto has joined #ruby
<apeiros> also a[0..-2].each
<neminis> apeiros: thanks
millerti has joined #ruby
jmignault has joined #ruby
banisterfiend has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
salut has quit [Quit: salut]
Rodya_ has joined #ruby
jmignault has quit [Ping timeout: 246 seconds]
vuoto has quit [Remote host closed the connection]
<dminuoso> neminis: Avoid triple points.
vuoto has joined #ruby
<dminuoso> neminis: They are subtle and easy to miss. 0..-2 is clearer.
salut has joined #ruby
pragmaticus has joined #ruby
vuoto has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 260 seconds]
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
ferr has quit [Quit: WeeChat 1.5]
Snowy has joined #ruby
mtkd has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
mtkd has joined #ruby
<neminis> dminuoso: okay, thanks
BackEndCoder has quit [Excess Flood]
jaguarmagenta has quit [Ping timeout: 244 seconds]
ledestin has quit [Read error: Connection reset by peer]
mvxlr has joined #ruby
BackEndCoder has joined #ruby
mvxlr has quit [Client Quit]
railswebdev has joined #ruby
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
rfoust has joined #ruby
nettoweb has joined #ruby
harai has joined #ruby
jmignault has joined #ruby
blackmesa has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
domgetter has joined #ruby
jmignault has quit [Ping timeout: 245 seconds]
Snickers has joined #ruby
Beams_ has joined #ruby
Beams has quit [Ping timeout: 256 seconds]
aganov has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
careta has joined #ruby
_2easy has quit [Ping timeout: 258 seconds]
TomyWork has quit [Ping timeout: 256 seconds]
nickjj has quit [Read error: Connection reset by peer]
jmignault has joined #ruby
Jardayn has joined #ruby
djellemah_ has joined #ruby
nickjj has joined #ruby
blackbom1 has joined #ruby
BackEndCoder has quit [Excess Flood]
nelsonsar has quit [Remote host closed the connection]
BackEndCoder has joined #ruby
nelsonsar has joined #ruby
jmignault has quit [Ping timeout: 256 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaruga___ has joined #ruby
blackbom1 has quit [Ping timeout: 244 seconds]
nelsonsar has quit [Ping timeout: 248 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
railswebdev has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
fullofcaffeine has joined #ruby
nelsonsar has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
agit0_ has joined #ruby
_2easy has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
rodfersou|lunch is now known as rodfersou
djellemah_ has quit [Ping timeout: 250 seconds]
agit0 has quit [Ping timeout: 258 seconds]
Rickmasta has joined #ruby
wugy has quit []
fullofcaffeine has quit [Remote host closed the connection]
agit0_ has quit [Ping timeout: 260 seconds]
blackbom1 has joined #ruby
Rodya_ has joined #ruby
rippa has joined #ruby
lenwood has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Ping timeout: 245 seconds]
aufi has quit [Ping timeout: 258 seconds]
zacts has quit [Quit: WeeChat 1.6]
zacts has joined #ruby
_2easy has quit [Ping timeout: 260 seconds]
mark_66 has quit [Remote host closed the connection]
sagax has joined #ruby
benlieb has joined #ruby
kassav has quit [Ping timeout: 248 seconds]
igniting has joined #ruby
psychicist__ has quit [Ping timeout: 246 seconds]
blackwind_123 has quit [Ping timeout: 244 seconds]
fullofcaffeine has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_2easy has joined #ruby
reverberations has quit [Quit: Leaving]
reverberations has joined #ruby
pawnbox has quit [Remote host closed the connection]
Rickmasta has joined #ruby
andikr has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
pawnbox has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
nadir has joined #ruby
gingray has joined #ruby
DLSteve has joined #ruby
railswebdev has joined #ruby
sinktyler has joined #ruby
symm- has joined #ruby
fullofcaffeine has joined #ruby
_sfiguser has quit [Ping timeout: 250 seconds]
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
vuoto has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
_2easy has quit [Ping timeout: 256 seconds]
jphase has quit [Ping timeout: 260 seconds]
kyle has joined #ruby
kyle is now known as Guest39204
xall has quit [Ping timeout: 256 seconds]
tenderlove has joined #ruby
eljimmy has joined #ruby
sinktyler has quit [Quit: sinktyler]
sinktyler has joined #ruby
roychri has joined #ruby
jnj has joined #ruby
<jnj> How can I tell when the user first uses my program?
<jnj> Could I just have a config file with a boolean, firstrun?
_sfiguser has joined #ruby
<eam> jnj: sure, saving something in a file is one way
_sfiguser has quit [Max SendQ exceeded]
_sfiguser has joined #ruby
_sfiguser has quit [Max SendQ exceeded]
<jnj> eam: Cool, that's what I was thinking of using, but I'm just wondering - are there any other ways? I haven't really been able to think of any
_sfiguser has joined #ruby
nobitanobi has quit [Remote host closed the connection]
_2easy has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
<blackbom1> why even care about the contents
<blackbom1> just check if it exists
<eam> yeah, you could use the ctime
<eam> jnj: the filesystem tends to be the one guaranteed place to store state. If you have a database you could put it in there
<eam> if you have a long-running program and you just want to know the time it started (not between multiple invocations) then you can get that directly from proc
xall has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fmcgeough has quit [Quit: fmcgeough]
last_staff has joined #ruby
anuxivm has joined #ruby
sinktyler has quit [Quit: sinktyler]
A5101 has joined #ruby
Definity has joined #ruby
Chair has quit [Ping timeout: 252 seconds]
jsrn_ has quit [Quit: Leaving]
Lildirt has quit [Ping timeout: 256 seconds]
terlar has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
Joufflu has joined #ruby
s2013 has joined #ruby
jaruga___ has quit [Quit: jaruga___]
jaguarmagenta has joined #ruby
<abc2> Is there any more efficient way to increment an integer by 1 than: x += 1?
nelsonsar has quit [Remote host closed the connection]
Lildirt has joined #ruby
nelsonsar has joined #ruby
railswebdev has joined #ruby
ledestin has joined #ruby
jgnagy has joined #ruby
<havenwood> abc2: There are many ways but that's a good one.
Rodya_ has quit [Ping timeout: 260 seconds]
<dminuoso> abc2: x = x.succ is probably the most efficient
<dminuoso> asm>> x.succ
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/684979
<havenwood> x.to_i.next
<havenwood> :P
<Papierkorb> asm>> x += 1
<dminuoso> havenwood: .succ is still faster because it has a specialized opcode
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<abc2> dminuoso, right I was looking for that, awesome, thanks
<havenwood> dminuoso: i just prefer #next
<abc2> dminuoso, havenwood : sure, both work, I was just trying with 'inc' and didn't find anything
<havenwood> next and pred are handy
<abc2> dminuoso, havenwood : ah, but since there is no '!' version, I still need x = x.succ
<dminuoso> abc2: Yeah.
jaguarmagenta has quit [Ping timeout: 268 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
<dminuoso> asm>> foo.next
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/684980
nelsonsar has quit [Ping timeout: 258 seconds]
claudiuinberlin has quit []
jgnagy has quit [Ping timeout: 258 seconds]
binaryplease has quit [Ping timeout: 244 seconds]
<Joufflu> what's the answer to 0 % 10 ?
herbmillerjr has joined #ruby
<xrlk> deez nutz
<dminuoso> Joufflu: Use your fingers. First you need to set up a hand in such a way that it has 0 fingers - I can help you with that.
djellemah_ has joined #ruby
<rykou> lol
<Joufflu> har har har
<Joufflu> thought you guys would know just off hand
<Joufflu> guess not; bunch of quacks
<xrlk> SaaS is all quacks
<xrlk> why are you surprised
<Joufflu> true
<abc2> dminuoso, havenwood : I consistently get around 10M-10.5M ops/s using #next, and 11.1M-12.2M using #succ or += 1
frozengeek____ has quit [Quit: frozengeek____]
joufflu_ has joined #ruby
<dminuoso> abc2: Yup. Ruby transforms #next into a method call which is slower. #succ uses an optimized opcode which tests if the operand is a fixnum and just saves a bit of cpu time
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
joufflu_ has quit [Client Quit]
<abc2> dminuoso, though it must be that on 2.3.3 at least += 1 does the same thing
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
<dminuoso> abc2: That's certainly possible.
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
Lildirt has quit [Quit: Leb wohl, meine Freunde. Ich wünsche Ihnen das beste von Tagen.]
<dminuoso> abc2: Look at RubyVM::InstructionSequence.compile(%q`foo += 1`).disasm and see whether it uses opt_succ
frozengeek____ has joined #ruby
Lildirt has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
icharlie has joined #ruby
conta has quit [Quit: conta]
<abc2> dminuoso, uses putobject and opt_plus, but performance is equal to succ
frozengeek____ has quit [Remote host closed the connection]
<abc2> Great, thanks for the discussion
nelsonsar has joined #ruby
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
conta has joined #ruby
<dminuoso> abc2: Oh wasn't aware opt_plus also existed.
<dminuoso> Interesting.
<dminuoso> abc2: Did you rerun a few times for cache reasons?
Silthias has quit [Quit: Leaving.]
<abc2> dminuoso, yes
<abc2> from within irb
<dminuoso> abc2: Curious. What's the purpose? Are you actually experiencing performance issues or are you just benchmarking things?
rodfersou has quit [Ping timeout: 250 seconds]
<abc2> dminuoso, havenwood: I tested with bench(1e7){ h[:a]+= 1} , where bench() is my method defined as: http://pastebin.ca/3741947
<abc2> dminuoso, just trying to make this addition as optimized as possible since it's in the critical path. But didn't have any issues using += 1, just wanted to test.
<dminuoso> abc2: Fair enough. :)
rodfersou has joined #ruby
conta has quit [Ping timeout: 246 seconds]
whathappens has joined #ruby
Snowy has quit [Remote host closed the connection]
edwardly has quit [Ping timeout: 245 seconds]
skweek has quit [Ping timeout: 244 seconds]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
TvL2386 has joined #ruby
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
karapetyan has joined #ruby
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
<havenwood> abc2: Try with benchmark-ips: https://github.com/evanphx/benchmark-ips#readme
terlar has quit [Ping timeout: 248 seconds]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
cdg has joined #ruby
<havenwood> dminuoso: The Fixnum next and succ are the same, no? Same as the Integer next and succ.
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 256 seconds]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
<abc2> havenwood, nice tip, thanks!
<havenwood> I said that badly, I mean the aliases are the same but the class implementations are different.
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
* havenwood goes in search of coffee
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
careta has quit [Ping timeout: 260 seconds]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
Definity has quit [Ping timeout: 260 seconds]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 248 seconds]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
<apeiros> !fixcon frozengeek____
OnyxRaven_ has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
OnyxRaven has quit [Ping timeout: 256 seconds]
OnyxRaven_ is now known as OnyxRaven
s2013 has quit [Ping timeout: 252 seconds]
dasher00 has joined #ruby
Humdai has quit [Quit: Leaving]
dn` has quit [Ping timeout: 244 seconds]
kab has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
dn` has joined #ruby
sinktyler has joined #ruby
Beams_ has quit [Quit: .]
symm- has quit [Ping timeout: 246 seconds]
symm-_ has joined #ruby
dasher00 has quit [Ping timeout: 250 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
jnj has quit [Ping timeout: 244 seconds]
czerasz has joined #ruby
blackmesa has joined #ruby
muelleme has joined #ruby
ereslibre has quit [Quit: Bye!]
domgetter has quit [Ping timeout: 260 seconds]
sinktyler has quit [Quit: sinktyler]
blackmesa has quit [Ping timeout: 256 seconds]
pawnbox_ has joined #ruby
tercenya has quit [Remote host closed the connection]
Rodya_ has joined #ruby
tercenya has joined #ruby
dasher00 has joined #ruby
domgetter has joined #ruby
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
kab has quit [Quit: Leaving]
sinktyler has joined #ruby
govg has quit [Ping timeout: 248 seconds]
muelleme has quit [Quit: WeeChat 1.5]
Rodya_ has quit [Ping timeout: 258 seconds]
Livecodingtv_Ale has joined #ruby
nelsonsar has quit [Ping timeout: 246 seconds]
herwin- has joined #ruby
herwin- is now known as herwin
blackmesa has joined #ruby
nelsonsar has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
teclator has quit [Remote host closed the connection]
anisha has joined #ruby
railswebdev has joined #ruby
r3vDev has quit [Ping timeout: 256 seconds]
sinktyler has quit [Quit: sinktyler]
buglessdr has quit [Ping timeout: 260 seconds]
icharlie has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 246 seconds]
claudiuinberlin has joined #ruby
SCHAAP137 has quit [Ping timeout: 265 seconds]
houhoulis has quit [Remote host closed the connection]
xall has quit [Ping timeout: 260 seconds]
miqlas-H has joined #ruby
enyo has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
terlar has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
nettoweb has quit [Ping timeout: 250 seconds]
SCHAAP137 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
nettoweb has joined #ruby
blackmesa has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
<Papierkorb> Quick poll, which of these two snippets would you prefer? https://gist.github.com/Papierkorb/57d1ec9044984b370a4df68153ad27e1
hightower2 has joined #ruby
d0nn1e has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
czerasz has quit [Quit: Ex-Chat]
<apeiros> Papierkorb: #1
djellemah_ has quit [Ping timeout: 250 seconds]
hightower3 has quit [Ping timeout: 246 seconds]
<apeiros> though I'd change else + inline if to elsif
axisys has quit [Quit: leaving]
kirun has joined #ruby
<toretore> the whole thing seems a little confusing tbh
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
<blackbom1> agree with toretore
blackmesa has joined #ruby
<Papierkorb> Without context, of course, but I can't change how the UDP protocol works
jaruga___ has joined #ruby
<Papierkorb> apeiros: Funny that I overlooked that one, thanks
<blackbom1> i vote 3 :-0
<blackbom1> when it was 1 and 2 only it felt like a choice between clinton and trump, but with 3 it feels like ron paul is an option too.
<matthewd> `case @id`?
domgetter has quit [Ping timeout: 256 seconds]
millerti has joined #ruby
anuxivm has quit [Remote host closed the connection]
anuxivm has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
symm-_ has quit [Quit: Leaving...]
symm- has joined #ruby
Rodya_ has joined #ruby
mati_urunda has joined #ruby
xall has joined #ruby
railswebdev has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathappens has quit [Ping timeout: 268 seconds]
jaguarmagenta has joined #ruby
enyo has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
Rodya_ has quit [Ping timeout: 256 seconds]
A5101 has quit [Ping timeout: 260 seconds]
TvL2386 has quit [Ping timeout: 244 seconds]
millerti has joined #ruby
A5101 has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
gnufied has quit [Ping timeout: 258 seconds]
jgnagy has joined #ruby
pawnbox_ has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 250 seconds]
enyo has quit [Disconnected by services]
pawnbox has joined #ruby
zeroDi has joined #ruby
gnufied has joined #ruby
blackmesa has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Cohedrin has joined #ruby
jnj has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 246 seconds]
TvL2386 has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
leitz has joined #ruby
skweek has joined #ruby
ur5us has joined #ruby
tristanp has quit [Ping timeout: 246 seconds]
millerti has joined #ruby
djellemah_ has joined #ruby
Fernando-Basso has joined #ruby
al2o3-cr has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
neminis has quit [Remote host closed the connection]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has joined #ruby
codfection has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
ur5us has joined #ruby
e1z0_ has joined #ruby
djellemah_ has quit [Quit: Leaving]
miqlas-H has quit [Ping timeout: 260 seconds]
herbmillerjr has joined #ruby
govg has joined #ruby
karapetyan has quit [Remote host closed the connection]
railswebdev has joined #ruby
karapetyan has joined #ruby
miqlas-H has joined #ruby
karapetyan has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
dasher00 has quit [Ping timeout: 246 seconds]
<zacts> hi rubyists
byte512 has quit [Ping timeout: 248 seconds]
icharlie has joined #ruby
<dminuoso> havenwood: Yes but the AST>Bytecode compiler inserts a special opcode when it recognize a method call "next" or "+" which first tests what the receiver is.
<dminuoso> havenwood: If it's a Fixnum receiver for example no method is actually called.
vondruch has joined #ruby
<dminuoso> asm>> 1.next; 1.succ; # havenwood you can see this here
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/685013
icharlie has quit [Client Quit]
<dminuoso> havenwood: One emits the instruction "opt_send_without_block" (which is just a .send() basically), and the other first checks if it can avoid a method didspatch
railssmith has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
thebrianguy has joined #ruby
<havenwood> dminuoso: gotcha
<havenwood> dminuoso: that'd be a nice thing for the docs to point out!, or rather for next to do as well - seems like an oversight
jnj has quit [Ping timeout: 252 seconds]
<havenwood> dminuoso: interesting
karapetyan has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
kobain has joined #ruby
whathappens has joined #ruby
<thebrianguy> If I have 5 objects: user1, user2.. until user 5 can I interpolate 2 through 5 into a method parameter? Since the question may not make sense I have included the following example: https://gist.github.com/anonymous/09e7d9218f93319bc31c8b6dab2a0b52
<Papierkorb> thebrianguy: Use an array?
<havenwood> thebrianguy: user.public_send "user#{x}"
<havenwood> oh
<havenwood> i misread
urbanmonk has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<apeiros> variable<num> type variable names are a code smell telling you very loudly that you want an array ;-)
Snowy has joined #ruby
<apeiros> (as Papierkorb apparently already said)
<thebrianguy> ok I understand. That main reason for doing this is for testing code in a console like irb.
<blackbom1> apeiros: unless it's erlang :P
Snowy_ has joined #ruby
<apeiros> blackbom1: for real?
<blackbom1> no just a joke
<thebrianguy> Thanks for your help
<dminuoso> I want a debugger for Ruby.
<dminuoso> A real debugger.
<havenwood> p
* dminuoso sighs
elastix has joined #ruby
<havenwood> ;-)
<apeiros> dminuoso: gdb?
Rodya_ has joined #ruby
<dminuoso> apeiros: Yeah uh...
<bougyman> what's wrong with gdb?
<havenwood> Tooling ftw
<ruurd> hah that would be fun if you could write ruby expressions in gdb
<bougyman> ruurd: you can.
<apeiros> you can?
<apeiros> that was not supposed to be a question :)
dionysus69 has quit [Ping timeout: 260 seconds]
<bougyman> call rb_eval_string()
Snowy has quit [Ping timeout: 256 seconds]
<ruurd> eeew schroedingers cat
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> lldb
ldnunes has quit [Ping timeout: 260 seconds]
<bougyman> rbtrace has helped us debug some gnarly conditions recently
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso> bougyman: It's more than just lacking really.
Macaveli has joined #ruby
sparch has quit [Ping timeout: 260 seconds]
nicokavts has joined #ruby
TvL2386 has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 258 seconds]
<ruurd> working with gdb like this is really like performing open heart surgery
<ruurd> and that is a quote
<dminuoso> ruby[bot]: working with gdb is always like performing open heart surgery, that remark was a little silly.
bturker has quit [Ping timeout: 256 seconds]
^mtkd has joined #ruby
<ruurd> yes and invoking anything in the debuggee like that is playing dangerous games while doing it.
pawnbox has quit [Remote host closed the connection]
mtkd has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<matthewd> If you don't want to evaluate any ruby in the debugged process, it doesn't matter whether you can write ruby expressions
fullofcaffeine has quit [Remote host closed the connection]
Madplatypus has joined #ruby
elastix has quit [Read error: Connection reset by peer]
<thebrianguy> bougyman: I think the eval is what I needed for on the fly. Is this what you are referring to? https://gist.github.com/anonymous/40a6d8a102abdfbc10aa5a47bb1a0167
anisha has quit [Quit: Leaving]
elastix has joined #ruby
<thebrianguy> I tried it in the console and got what I was looking for. Thanks
<blackbom1> huh
Rodya_ has joined #ruby
<blackbom1> use send() or public_send()
<blackbom1> oh nvm
<blackbom1> it's a local right?
<thebrianguy> This would just be for on the fly code in a console
<blackbom1> ah
<blackbom1> ok
jenrzzz has quit [Ping timeout: 245 seconds]
<blackbom1> binding.local_variable_get() should work too but if it's just for testing it dont matter
blackmesa has joined #ruby
<thebrianguy> Thanks I will look into that as well
<matthewd> thebrianguy: FWIW, the real answer is don't have user1..user5 in the first place; that's what arrays are for.
nankyokusei has joined #ruby
nankyokusei has quit [Remote host closed the connection]
Joufflu has quit [Ping timeout: 258 seconds]
axisys has joined #ruby
<thebrianguy> mathewd: You are right. I see now. Even on the fly I should be creating the objects in the array first and then I won't have this problem.
savage has quit [Quit: Connection closed for inactivity]
moei has quit [Quit: Leaving...]
william3 has quit [Remote host closed the connection]
nankyokusei has joined #ruby
thebrianguy has quit [Quit: Leaving]
railswebdev has joined #ruby
william3 has joined #ruby
Snowy_ has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 250 seconds]
Snowy has joined #ruby
marr has joined #ruby
Renich has quit [Quit: leaving]
william3 has quit [Ping timeout: 246 seconds]
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
futilegames has joined #ruby
eljimbo has joined #ruby
terlar has quit [Ping timeout: 244 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whathappens has quit [Ping timeout: 260 seconds]
antoniobeyah has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
eljimmy has quit [Ping timeout: 248 seconds]
Snowy has quit [Remote host closed the connection]
akkmaxon has joined #ruby
Snowy has joined #ruby
akkmaxon has quit [Client Quit]
CrashOverride has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
masta`` has quit []
zeroDi has quit [Quit: WeeChat 1.6]
Snowy has quit [Ping timeout: 246 seconds]
coyo has joined #ruby
coyo has quit [Changing host]
coyo has joined #ruby
fullofcaffeine has joined #ruby
callenb has joined #ruby
Pupeno has quit [Remote host closed the connection]
chocolatemario has joined #ruby
jcao219 has joined #ruby
Pupeno_ has joined #ruby
whathappens has joined #ruby
e1z0_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DTZUZU has joined #ruby
nettoweb has joined #ruby
futilegames has quit [Quit: futilegames]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 248 seconds]
lenwood has joined #ruby
anuxivm has quit [Remote host closed the connection]
anuxivm has joined #ruby
firstdayonthejob has joined #ruby
igniting has quit [Ping timeout: 244 seconds]
railswebdev has joined #ruby
function has joined #ruby
callenb has quit [Quit: Leaving.]
Rodya_ has quit [Remote host closed the connection]
miqlas-H has quit [Ping timeout: 244 seconds]
palms has joined #ruby
jaruga___ has quit [Quit: jaruga___]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
jaguarmagenta has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
jenrzzz has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
nettoweb has joined #ruby
jaguarmagenta has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
<shadeslayer> Hi, I was wondering if there's a good example somewhere of subclassing Array?
<apeiros> shadeslayer: the general consensus is that it's not a good idea
<apeiros> use composition + delegation for classes you don't own
<apeiros> see Forwardable
<shadeslayer> got a tutoria .. ah :)
* shadeslayer looks
karapetyan has quit [Remote host closed the connection]
CrashOverride has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chocolatemario has quit [Ping timeout: 250 seconds]
nelsonsar has quit [Ping timeout: 244 seconds]
nofxx has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
callenb has joined #ruby
callenb has quit [Read error: Connection reset by peer]
eljimmy has joined #ruby
eljimbo has quit [Ping timeout: 245 seconds]
claudiuinberlin has quit []
vuoto has joined #ruby
anuxivm has quit [Quit: ¡Saliendo!]
nelsonsar has joined #ruby
chopin has quit [Remote host closed the connection]
rfoust has joined #ruby
chopin has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
chopin has quit [Ping timeout: 256 seconds]
palms has quit [Ping timeout: 250 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CrashOverride has joined #ruby
A5101 has quit [Ping timeout: 268 seconds]
fullofcaffeine has joined #ruby
Salih has quit [Quit: Leaving]
fullofca_ has joined #ruby
Salih has joined #ruby
CloCkWeRX has joined #ruby
tdy has quit [Ping timeout: 258 seconds]
Salih has quit [Client Quit]
fullofca_ has quit [Read error: Connection reset by peer]
fullofca_ has joined #ruby
railswebdev has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
fullofcaffeine has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
fullofca_ has quit [Ping timeout: 256 seconds]
maloik has quit [Remote host closed the connection]
fullofcaffeine has quit [Read error: Connection reset by peer]
maloik has joined #ruby
fullofcaffeine has joined #ruby
whathappens has quit [Ping timeout: 260 seconds]
wilbert has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 252 seconds]
Definity has joined #ruby
nankyokusei has joined #ruby
nankyokusei has quit [Remote host closed the connection]
blackmesa has joined #ruby
nobitanobi has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
charliesome has joined #ruby
Definity2 has joined #ruby
Definity has quit [Ping timeout: 250 seconds]
futilegames has joined #ruby
Cohedrin has joined #ruby
naprimer_3 has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
vuoto has quit [Remote host closed the connection]
Definity has joined #ruby
naprimer_3 has joined #ruby
Definity2 has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
palms has joined #ruby
Definity has quit [Ping timeout: 268 seconds]
jcao219 has quit [Ping timeout: 244 seconds]
centrx has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
zeroDi has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
palms has quit [Ping timeout: 260 seconds]
Definity has joined #ruby
Definity has quit [Client Quit]
moei has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naprimer_3 has quit [Quit: Leaving]
naprimer_3 has joined #ruby
ReK2 has quit [Remote host closed the connection]
binaryplease has joined #ruby
ramortegui has quit [Remote host closed the connection]
ReK2 has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
CrashOverride has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
futilegames_ has joined #ruby
futilegames has quit [Ping timeout: 260 seconds]
futilegames_ is now known as futilegames
charliesome has joined #ruby
futilegames has quit [Client Quit]
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
CrashOverride has joined #ruby
Pupeno has quit [Ping timeout: 265 seconds]
govg has quit [Ping timeout: 250 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wilbert has quit [Quit: quit]
SCHAAP137 has quit [Ping timeout: 256 seconds]
CrashOverride has quit [Ping timeout: 258 seconds]
millerti has joined #ruby
xall has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vikaton has joined #ruby
harai has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Changing host]
SCHAAP137 has joined #ruby
tvw has quit []
n[m] has joined #ruby
charliesome has quit [Client Quit]
tvw has joined #ruby
chopin has joined #ruby
sepp2k has quit [Quit: Leaving.]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower2 has quit [Ping timeout: 240 seconds]
hightower2 has joined #ruby
antoniobeyah has joined #ruby
nicokavts has quit [Read error: Connection reset by peer]
_sfiguser has quit [Ping timeout: 250 seconds]
hightower3 has joined #ruby
tvw has quit []
jaguarmagenta has joined #ruby
charliesome has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
hightower3 has quit [Ping timeout: 250 seconds]
binaryplease has quit [Ping timeout: 260 seconds]
chopin has quit [Remote host closed the connection]
Ishido has quit [Read error: Connection reset by peer]
jaguarmagenta has quit [Ping timeout: 245 seconds]
chopin has joined #ruby
FastJack has quit [Ping timeout: 264 seconds]
william3 has joined #ruby
nelsonsar has quit [Remote host closed the connection]
FastJack has joined #ruby
nelsonsar has joined #ruby
_sfiguser has joined #ruby
chopin has quit [Ping timeout: 265 seconds]
mim1k|wo1k has quit [Ping timeout: 250 seconds]
william3 has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
railswebdev has joined #ruby
nelsonsar has quit [Ping timeout: 252 seconds]
mim1k|work has joined #ruby
zeroDi has quit [Quit: WeeChat 1.6]
<bougyman> gah.
<bougyman> how do I turn '01110111' into 01110111 ?
tuxaddicted has joined #ruby
<baweaver> &ri String#to_i
<baweaver> raddix iirc
<bougyman> I tried to_i
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bougyman> >> ['01110111'.to_i, '01110111'.to_i(2)]
<ruby[bot]> bougyman: # => [1110111, 119] (https://eval.in/685154)
<bougyman> neither are correct.
binaryplease has joined #ruby
<baweaver> It truncates padding
<bougyman> yep
urbanmonk has joined #ruby
kirun has quit [Quit: Konversation terminated!]
<toretore> how is it not 119?
_2easy has quit [Ping timeout: 245 seconds]
<Zarthus> >> '01110111'.to_s # bougyman
<ruby[bot]> Zarthus: # => "01110111" (https://eval.in/685158)
* Zarthus hides
<bougyman> dork.
<bougyman> it was .to_i(2), for my purposes.
<bougyman> I swore that didn't work before, but whatev.
firstdayonthejob has quit [Ping timeout: 244 seconds]
<Zarthus> it has worked for as long as i've been writing ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bougyman> '01001000 01100001 01110000 01110000 01111001 00100000 01000111 01100101 01101110 01101111 01100011 01101001 01100100 01100101 00100000 01000100 01100001 01111001 00100001'.split.map{|n|n.to_i(2)}.pack('c*')
<bougyman> >> '01001000 01100001 01110000 01110000 01111001 00100000 01000111 01100101 01101110 01101111 01100011 01101001 01100100 01100101 00100000 01000100 01100001 01111001 00100001'.split.map{|n|n.to_i(2)}.pack('c*')
<ruby[bot]> bougyman: # => "Happy Genocide Day!" (https://eval.in/685159)
<bougyman> that
bturker has joined #ruby
<Zarthus> I dunno man, UTC is still at 23:43
nankyokusei has joined #ruby
millerti has joined #ruby
XV8 has joined #ruby
ropeney has joined #ruby
koooge has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
naprimer_2 has joined #ruby
elastix has quit [Quit: Leaving]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naprimer_3 has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]