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