havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
Hunter1 has quit [Remote host closed the connection]
Hunter1 has joined #ruby
yosafbridge` has quit [Quit: Leaving]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cagomez has quit []
<SeepingN> ugh. false alert, thx tho
<SeepingN> one of our IT "professionals" doens't know how to rsync, started rsyncing /home !!!!!!!!! wtf
hutch34 has joined #ruby
<SeepingN> and on top of that, it copied old files over new, so he doesn't know where to rsync form or how to use it to update files
twistedpixels_ has quit [Quit: ZNC - http://znc.in]
yosafbridge has joined #ruby
<SeepingN> my old dot files were restored, which pointed to my local gem repository (now empty). Ugh
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
JeanCarl1Machado has quit [Ping timeout: 268 seconds]
joast has quit [Ping timeout: 260 seconds]
JeanCarl1Machado has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
fmccann has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rakm has joined #ruby
Guest29587 has quit [Changing host]
Guest29587 has joined #ruby
<SeepingN> unbelievable. I better go home before I shove the ESXi down this windows boob's throat
Guest29587 is now known as Kestrel-029
mrconfused has joined #ruby
hplar has quit [Ping timeout: 240 seconds]
drcode has joined #ruby
zachk has quit [Quit: Leaving]
Hunter1 has quit [Remote host closed the connection]
joast has joined #ruby
Hunter1 has joined #ruby
MrBismuth has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
jenrzzz has quit [Ping timeout: 246 seconds]
MrBusiness has joined #ruby
raul782 has joined #ruby
raul782 has quit [Client Quit]
perniciouscaffei has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
hutch34 has quit [Read error: Connection reset by peer]
nitric has quit [Ping timeout: 260 seconds]
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Kestrel-029 has quit [Read error: Connection reset by peer]
AndBobsYourUncle has quit [Quit: Textual IRC Client: www.textualapp.com]
drcode has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
pete_ has joined #ruby
pete_ has quit [Client Quit]
skweek has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
ur5us has quit [Remote host closed the connection]
JeanCarl1Machado has quit [Ping timeout: 268 seconds]
Cohedrin has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
Cohedrin has joined #ruby
cam27 has quit [Quit: cam27]
Rodya_ has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
mrconfused has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asdx35 has joined #ruby
ghoti has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: minimalism]
Rodya_ has quit [Ping timeout: 260 seconds]
<asdx35> I'm writing python code at work these days but I miss ruby a lot
aguynamedben has joined #ruby
apparition has joined #ruby
duderonomy has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
minimalism has joined #ruby
knight33 has joined #ruby
mrconfused has joined #ruby
marr has quit [Ping timeout: 240 seconds]
<asdx35> not sure if I should just rewrite the project, what would you guys suggest?
<asdx35> it's something I feel I can do quickly
<Radar> How big of a project is it (LoC)? Do management require the project to be written in Python?
gizmore|2 has joined #ruby
oborot has joined #ruby
<Radar> asdx35: ^
<Radar> Do you work with other people who only know Python?
<asdx35> ~5k LoC
alveric4 has joined #ruby
alveric3 has quit [Ping timeout: 260 seconds]
<asdx35> our manager just quit but he used to prefer python and was biased towards it, "python is faster than ruby" he claimed, but I bet the last time he used ruby was in the 1.8 days
gizmore has quit [Ping timeout: 240 seconds]
<asdx35> Radar: yes, but they could adapt
<bougyman> if doing something computationally expensive, neither python nor ruby (the common implementations) are the right choice, usually.
<bougyman> so that's a lame argument.
<asdx35> right
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghoti has joined #ruby
oborot has quit [Ping timeout: 260 seconds]
jzigmund has quit [Ping timeout: 245 seconds]
uZiel has joined #ruby
dviola has joined #ruby
<asdx35> I argued with this person a lot at work, I think that might have been one of the reasons of why he decided to quit
asdx35 has quit [Quit: leaving]
mrconfused has quit [Ping timeout: 272 seconds]
oliv_____ has joined #ruby
<Radar> :\
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
jenrzzz has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
<michael_mbp> Something I'm working on, I'm making calls from Ruby to C++, crunching in C14, and then passing JSON back to the Rails app
<michael_mbp> planning to extend with gRPC at somepoint. Take away here, don't get fixated on a singular language.
<michael_mbp> complex modelling took me a under a couple hours in Ruby, vs. porting said logic to C++.
jenrzzz has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
fmccann has joined #ruby
Nicmavr has joined #ruby
Nicmavr has quit [Changing host]
Nicmavr has joined #ruby
jusa has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
mrconfused has joined #ruby
fern has joined #ruby
fern has quit [Client Quit]
jenrzzz has quit [Ping timeout: 268 seconds]
hugo_dc has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusa has quit [Ping timeout: 268 seconds]
d^sh has quit [Ping timeout: 268 seconds]
d^sh_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
jrafanie has joined #ruby
fmccann has quit [Quit: Textual IRC Client: www.textualapp.com]
balazs has joined #ruby
iliketur_ has joined #ruby
BSAlb has joined #ruby
mrconfused has quit [Ping timeout: 268 seconds]
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
PorcoRex has joined #ruby
<PorcoRex> Good evening Ruby.
cschneid_ has quit [Ping timeout: 258 seconds]
oliv_____ has quit [Remote host closed the connection]
iliketur_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
BSAlb has quit [Read error: Connection reset by peer]
jameser has joined #ruby
oliv_____ has quit [Ping timeout: 258 seconds]
oborot has joined #ruby
itarato has joined #ruby
genpaku has quit [Remote host closed the connection]
pen has joined #ruby
genpaku has joined #ruby
bruno-_ has quit [Ping timeout: 268 seconds]
gnufied has joined #ruby
mwlang has joined #ruby
ledestin has joined #ruby
bougyman has quit [Ping timeout: 255 seconds]
jhack has quit [Quit: Leaving]
uxp_ has quit [Read error: Connection reset by peer]
uxp has joined #ruby
vahe has joined #ruby
gnufied has quit [Ping timeout: 272 seconds]
bougyman has joined #ruby
bougyman is now known as Guest20275
KeyJoo has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
mrconfused has joined #ruby
gnufied has joined #ruby
Rodya_ has joined #ruby
itarato has quit [Ping timeout: 260 seconds]
mrconfused has quit [Ping timeout: 255 seconds]
Talltree has quit [Remote host closed the connection]
cyphase has joined #ruby
Rodya_ has quit [Ping timeout: 272 seconds]
Talltree has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
gnufied has quit [Quit: Leaving]
mim1k has joined #ruby
d^sh_ has quit [Ping timeout: 240 seconds]
ResidentBiscuit has joined #ruby
d^sh has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
olivi____ has joined #ruby
ResidentBiscuit has quit [Quit: So long and thanks for all the fsh]
olivi____ has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
cgfbee has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
ascarter has joined #ruby
jphase has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
nanoz has joined #ruby
dviola has quit [Quit: WeeChat 1.8]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bambanx has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
uZiel has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
cyphase has quit [Ping timeout: 246 seconds]
Talltree has quit [Ping timeout: 240 seconds]
Talltree has joined #ruby
tessi_zz has quit [Ping timeout: 260 seconds]
jeffreylevesque has joined #ruby
tessi_zz has joined #ruby
cyphase has joined #ruby
cgfbee has joined #ruby
romeoh has quit [Remote host closed the connection]
Rodya_ has joined #ruby
nullobject has joined #ruby
oborot has quit [Ping timeout: 260 seconds]
eightlimbed has joined #ruby
<eightlimbed> hi
<havenwood> eightlimbed: hey
minimalism has joined #ruby
jgt1 has joined #ruby
eightlimbs has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
guest3456 has joined #ruby
guest3456 has left #ruby [#ruby]
<eightlimbs> hi
eightlimbed has quit [Ping timeout: 240 seconds]
<PorcoRex> eightlimbs, hello.
pwnd_nsfw` has joined #ruby
jgt1 has quit [Ping timeout: 246 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eightlimbs> hi PorcoRex
jphase has quit []
eightlimbs has quit [Ping timeout: 240 seconds]
hugo_dc has quit [Remote host closed the connection]
redaudit has quit [Quit: Cya]
charliesome has joined #ruby
cahoots has joined #ruby
<cahoots> hi, is there a library that will sample the code every so often and just show me what it's doing? like, every second it prints out what the script is doing at that moment
<cahoots> i just need to very broadly understand what the bottlenecks
raspado has joined #ruby
<baweaver> cahoots: depends
<baweaver> mostly it's literally just throwing puts statements in it to log out
<cahoots> baweaver, it would just be more convenient to attach something. it can also be a decently large file where many bottlenecks may arise
<PorcoRex> baweaver, I think he wants to profile the app.
<baweaver> ruby-prof in that case
<baweaver> but for what it's doing at specific points, literally it's just logging
Dimik has joined #ruby
raspado has quit [Ping timeout: 246 seconds]
<cahoots> yeah it looks like ruby-prof will work, thanks :)
dhollinger has joined #ruby
dhollinger has quit [Client Quit]
yeticry has quit [Ping timeout: 246 seconds]
dhollinger has joined #ruby
yeticry has joined #ruby
ski7777 has joined #ruby
iliketurtles has joined #ruby
renchan has joined #ruby
bruno- has quit [Ping timeout: 268 seconds]
nofxx has joined #ruby
uZiel has joined #ruby
nofxxx has quit [Ping timeout: 260 seconds]
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 260 seconds]
fern has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fern has quit [Client Quit]
Rodya_ has joined #ruby
cahoots has quit [Ping timeout: 246 seconds]
luckyruby has quit [Quit: Leaving...]
fern has joined #ruby
nofxxx has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
fern has quit [Client Quit]
nofxx has quit [Ping timeout: 246 seconds]
xall has joined #ruby
ascarter has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
romeoh has joined #ruby
paradisaeidae_ has left #ruby [#ruby]
nanoz has quit [Quit: <3]
paradisaeidae has left #ruby [#ruby]
P1ro has joined #ruby
Cohedrin has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
romeoh has quit [Ping timeout: 240 seconds]
nofxxxx has joined #ruby
marr has joined #ruby
nofxxx has quit [Ping timeout: 268 seconds]
ben______ has joined #ruby
gusrub has quit [Ping timeout: 268 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ben_____ has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
aufi has quit [Client Quit]
pen has quit []
juggler has joined #ruby
ascarter has joined #ruby
xall has quit [Quit: xall]
oleo has quit [Quit: irc client terminated!]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
rdw200169__ has joined #ruby
rdw200169_ has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mwlang has quit [Quit: mwlang]
brent__ has joined #ruby
anisha has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
brent__ has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
jgt1 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has quit [Ping timeout: 246 seconds]
patarr has joined #ruby
pankaj_ has joined #ruby
jgt1 has quit [Ping timeout: 258 seconds]
patarr has quit [Ping timeout: 240 seconds]
<foxmask> bonjello
enterprisey has quit [Remote host closed the connection]
muelleme has joined #ruby
_whitelogger has joined #ruby
romeoh has joined #ruby
nofxxx has joined #ruby
romeoh has quit [Ping timeout: 246 seconds]
nofxxxx has quit [Ping timeout: 240 seconds]
perniciouscaffei has joined #ruby
jgt1 has joined #ruby
enterprisey has joined #ruby
Bock has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pankaj_ has quit [Quit: Leaving]
pankaj_ has joined #ruby
conta has joined #ruby
iliketurtles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PorcoRex has quit [Quit: Leaving]
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
muelleme has quit [Ping timeout: 240 seconds]
ski7777 has quit [Ping timeout: 268 seconds]
TomyLobo has quit [Ping timeout: 246 seconds]
KeyJoo has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
Rodya_ has joined #ruby
perniciouscaffei has joined #ruby
charliesome has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
juggler has quit [Remote host closed the connection]
andikr has joined #ruby
nofxx has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nofxxx has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
bkxd has joined #ruby
TomyWork has joined #ruby
biberu has joined #ruby
ThirstySurfer has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
romeoh has joined #ruby
nobitanobi has joined #ruby
romeoh has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Ping timeout: 255 seconds]
alazred has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
aufi has joined #ruby
mark_66 has joined #ruby
ur5us has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
nofxxxx has joined #ruby
Cohedrin has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 240 seconds]
herbmillerjr has quit [Remote host closed the connection]
herbmillerjr has joined #ruby
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
silentoxygen has joined #ruby
pandaant has joined #ruby
pankaj_ has quit [Ping timeout: 260 seconds]
zacts has quit [Ping timeout: 246 seconds]
ThirstySurfer has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
mim1k has joined #ruby
Rodya_ has joined #ruby
zacts has joined #ruby
ThirstySurfer has joined #ruby
Rodya_ has quit [Ping timeout: 255 seconds]
patarr has joined #ruby
nofxxx has joined #ruby
brent__ has joined #ruby
mikecmpbll has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
nofxxxx has quit [Ping timeout: 272 seconds]
dionysus69 has joined #ruby
brent__ has quit [Ping timeout: 246 seconds]
ThirstySurfer has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
workmad3 has joined #ruby
DaniG2k has joined #ruby
Silthias1 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Silthias has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 260 seconds]
romeoh has joined #ruby
nofxxxx has joined #ruby
<TheBrayn> should I escape “/” in regexpes if I use %r{} instead of //?
nofxxx has quit [Ping timeout: 260 seconds]
romeoh has quit [Ping timeout: 240 seconds]
<dminuoso> TheBrayn: !tias
<dminuoso> TheBrayn: ?tias
<dminuoso> ?tias TheBrayn
<ruby[bot]> TheBrayn: Why don't you try it and see for yourself?
<TheBrayn> it both works that's why I'm asking for best practices
<dminuoso> TheBrayn: If it's required its not a best practice but a requirement.
<dminuoso> If it's not required, then you can't "escape it"
<dminuoso> So this is not a question of best practices, but whether you have to esacpe or not.
<dminuoso> Or well I guess its optional in that case.
<TheBrayn> orly
<dminuoso> TheBrayn: One of the reasons %r{} exists is that you dont have to escape those slashes.
<dminuoso> well I guess it never even occured to me to even try and escape something that needs no escaping
ur5us has quit [Remote host closed the connection]
mim1k has joined #ruby
charliesome has joined #ruby
lxsameer has joined #ruby
flying has joined #ruby
silentoxygen has quit []
nekomune has quit [Read error: Connection reset by peer]
nofxxx has joined #ruby
oded has quit [Quit: Konversation terminated!]
dionysus69 has quit [Remote host closed the connection]
nofxxxx has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
antgel has joined #ruby
tomphp has joined #ruby
cyclonis has joined #ruby
oborot has joined #ruby
aupadhye has joined #ruby
TreyG_ has quit [Ping timeout: 272 seconds]
TreyG has joined #ruby
aupadhye has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Quit: leaving]
oborot has quit [Ping timeout: 255 seconds]
Kug3lis has joined #ruby
alazred has quit [Ping timeout: 268 seconds]
Rodya_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aupadhye has joined #ruby
yogg-saron has joined #ruby
dionysus69 has quit [Remote host closed the connection]
armando has quit [Ping timeout: 268 seconds]
cfec0b8d has quit [Quit: Leaving]
nofxx has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
nofxxx has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 268 seconds]
mim1k has joined #ruby
tvw has quit []
pragmaticus has joined #ruby
armando has joined #ruby
bambanx has quit [Quit: Leaving]
deepinuser has joined #ruby
<selim> I'll try to disable the online fetching with -l but it does just ignore that if I do a gem install -l <gemname> it's still checking on api.rubygem.org but I do not have Internet access on those systems so I get a timeout of more than 30 minutes for every package
<selim> can someone tell me how to disable that for good?
<selim> is that a bug, I have that issue mostly on SLES systems
aspiers has quit [Quit: ZNC - http://znc.sourceforge.net]
fern has joined #ruby
fern has quit [Client Quit]
romeoh has joined #ruby
ur5us has joined #ruby
postmodern has quit [Quit: Leaving]
ur5us has quit [Remote host closed the connection]
romeoh has quit [Ping timeout: 268 seconds]
herbmillerjr has quit [Remote host closed the connection]
robotmay has joined #ruby
herbmillerjr has joined #ruby
gusrub has joined #ruby
ta_ has quit [Remote host closed the connection]
nullobject has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
gusrub has quit [Ping timeout: 246 seconds]
mlkkk has joined #ruby
vikas027 has joined #ruby
minimalism has quit [Quit: minimalism]
nofxxx has joined #ruby
mrgrieves has quit [Quit: leaving]
cyclonis has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 268 seconds]
cyclonis has joined #ruby
<vikas027> Hey All, How can I have 'optparse' to show help. This is my code. https://dpaste.de/CsTN Options are working fine, but not help
lacuna has joined #ruby
pankaj_ has joined #ruby
<vikas027> don't worry, It is done :) Sometimes, you just need a cofee
xall has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
pragmaticus has quit [Remote host closed the connection]
ThirstySurfer has joined #ruby
dionysus69 has joined #ruby
ferr has joined #ruby
jgt1 has quit [Read error: Connection reset by peer]
jgt1 has joined #ruby
ta_ has joined #ruby
fern has joined #ruby
fern has quit [Client Quit]
Rodya_ has joined #ruby
nofxxx has quit [Read error: Connection reset by peer]
nofxxxx has joined #ruby
bkxd_ has joined #ruby
patarr has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
romank has joined #ruby
toretore has joined #ruby
tvw has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
mim1k has joined #ruby
jameser has quit [Ping timeout: 268 seconds]
faces has quit [Read error: Connection reset by peer]
deepinuser has quit [Ping timeout: 240 seconds]
romeoh has joined #ruby
vall has joined #ruby
ThirstySurfer has quit [Ping timeout: 240 seconds]
pankaj_ has quit [Quit: Leaving]
romeoh has quit [Ping timeout: 255 seconds]
itarato has joined #ruby
oliv_____ has joined #ruby
adaedra has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 246 seconds]
nullobject has joined #ruby
<adaedra> Hello
jenrzzz has quit [Ping timeout: 268 seconds]
jaruga has joined #ruby
mlkkk has quit []
cyphase has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
`derpy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
itarato has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 268 seconds]
cyphase has joined #ruby
jaruga has quit [Ping timeout: 260 seconds]
ged has quit [Ping timeout: 240 seconds]
mahlon has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Beams has joined #ruby
mahlon has joined #ruby
Beams has quit [Read error: Connection reset by peer]
ged has joined #ruby
Beams has joined #ruby
Beams has quit [Client Quit]
DaniG2k has joined #ruby
vahe has quit [Quit: Leaving.]
Beams has joined #ruby
Beams has quit [Client Quit]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
faces has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
alazred has joined #ruby
mim1k has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
nullobject has quit [Ping timeout: 240 seconds]
cfec0b8d has joined #ruby
BSaboia has joined #ruby
KeyJoo has joined #ruby
oborot has joined #ruby
Hunter1 has quit [Remote host closed the connection]
Hunter1 has joined #ruby
jaruga has joined #ruby
nobitanobi has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
oborot has quit [Ping timeout: 246 seconds]
jaruga has quit [Client Quit]
nobitanobi has quit [Remote host closed the connection]
anisha_ has joined #ruby
anisha has quit [Ping timeout: 255 seconds]
xall has quit [Quit: xall]
rgr has joined #ruby
jenrzzz has joined #ruby
Beams has joined #ruby
b0mbnet has joined #ruby
DaniG2k has quit [Quit: leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
Beams has quit [Ping timeout: 255 seconds]
harfangk has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 240 seconds]
Hunter1 has quit [Remote host closed the connection]
oliv_____ has quit [Remote host closed the connection]
Hunter1 has joined #ruby
alazred has quit [Ping timeout: 246 seconds]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
romeoh has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
bkxd_ has joined #ruby
jrafanie has joined #ruby
Beams has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
xa0s_ has joined #ruby
ta_ has quit [Remote host closed the connection]
romeoh has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
xa0s_ has quit [Client Quit]
nofxxx has joined #ruby
patarr has joined #ruby
itarato has joined #ruby
nofxxxx has quit [Ping timeout: 260 seconds]
pankaj has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
uZiel has quit [Ping timeout: 246 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
jgt2 has joined #ruby
romeoh_ has joined #ruby
jgt1 has quit [Ping timeout: 255 seconds]
nullobject has joined #ruby
pandaant has quit [Remote host closed the connection]
dionysus69 has joined #ruby
mochiyoda_ has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
JeanCarl1Machado has joined #ruby
JeanCarloMachado has joined #ruby
quobo has joined #ruby
fern has joined #ruby
fern has quit [Client Quit]
nullobject has quit [Ping timeout: 255 seconds]
robotmay has quit [Remote host closed the connection]
robotmay has joined #ruby
itarato has quit [Ping timeout: 268 seconds]
vall has quit [Ping timeout: 260 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
knight33 has joined #ruby
synthroid has joined #ruby
nobitanobi has joined #ruby
mochiyoda_ has joined #ruby
patr0clus has quit [Quit: tempusfugit]
DeeJayh has quit [Ping timeout: 268 seconds]
patr0clus has joined #ruby
oliv_____ has joined #ruby
Beams has quit [Quit: .]
DeeJayh has joined #ruby
mrconfused has joined #ruby
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
oli______ has joined #ruby
oliv_____ has quit [Ping timeout: 260 seconds]
jgt3 has joined #ruby
oli______ has quit [Remote host closed the connection]
jgt2 has quit [Ping timeout: 255 seconds]
oliv_____ has joined #ruby
nadir has joined #ruby
patr0clus has quit [Ping timeout: 260 seconds]
anvor has joined #ruby
Fysicus has quit [Ping timeout: 246 seconds]
<pupsicle> adaedra: hello
dviola has joined #ruby
alazred has quit [Ping timeout: 260 seconds]
<dminuoso> adaedra: elo.
oliv_____ has quit [Ping timeout: 260 seconds]
itarato has joined #ruby
marahin has joined #ruby
<marahin> Hello! Can someone please explain behaviour of this code to me: "a = Hash.new([]); a['1280x720'].push({'key' => 'value'})"?
<marahin> `a` returns `{}`, but `a['1280x720']` returns `{'key' => 'value'}` Hash.
<marahin> How is that? Why `a` returns empty hash, even though it _contains_ a value?
oliv_____ has joined #ruby
<canton7> you haven't actually added anything to the hash
<marahin> canton7 how come then?
jeffreylevesque_ has quit [Ping timeout: 240 seconds]
<marahin> how come I can reference to '1280x720' key in variable a?
<tobiasvl> huh
<canton7> Note that 'Hash.new([])' returns the *same* array instance whenever an unknown key is requested
<canton7> it doesn't generate a new array instance - it keeps using the same one
jzigmund has joined #ruby
<canton7> you want the form 'Hash.new{ |h,k| h[k] = [] }', which generates a new array instance each time you request an unknown key
<marahin> ah.
<marahin> canton7 so this is somehow related to reference?
bastrud has joined #ruby
mrconfused has quit [Ping timeout: 260 seconds]
<canton7> yeah, that's part of it
<marahin> OK. Cool.
<marahin> canton7 thank you for showing me the solution :)
<canton7> with your first attempt, you'll now notice that `a['foo']` returns `[{'key' => 'value'}]`
<canton7> when you accessed `a['1280x720']` you were given that array instance you passed to Hash.new, but it didn't add a new key to the hash. You modified that array instance (changing the default value)
<vikas027> How do I return two values in a method and please rubocop as well https://dpaste.de/kMJH
nicesignal has quit [Ping timeout: 258 seconds]
<vikas027> Try 2 works fine, but rubocop complains that return is redundant
<canton7> `[hash['publicValue], hash['secretValue']]`
<vikas027> wow , that was super quick canton7. Thanks much
<dminuoso> vikas027: Or you know, stop blindly following rubocop.
<dminuoso> vikas027: Configure it to tell you what you care about.
<dminuoso> I like explicit returns.
<vikas027> dminuoso, I like it too... but my team doesn't. They try to please rubocop as much as they can..
bkxd_ has joined #ruby
lacuna has joined #ruby
DeeJayh has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
apparition has joined #ruby
DeeJayh has joined #ruby
<dminuoso> vikas027: There's nothing wrong with that then. Consistency matters more than personal preference.
alazred has joined #ruby
Fysicus has joined #ruby
<dminuoso> I just see it far too often that people "please rubocop" instead of stating "following convention"
<vikas027> dminuoso: True. And I am still a beginner in Ruby, have to abide all rules :)
eightlimbed has joined #ruby
gnufied has joined #ruby
<canton7> yeah, I do think it's important that when you're starting a language, you drop all of your preconceptions about style and try to use the idioms of the language. Later on, you can decide which bits of style you do and don't like
<vikas027> cantom7: Rightly said
mrconfused has joined #ruby
oborot has joined #ruby
<dminuoso> Though for what its worth, the default rubocop configuration is quite decent already.
eightlimbed has quit [Ping timeout: 246 seconds]
nullobject has joined #ruby
jgt3 has quit [Ping timeout: 260 seconds]
oborot has quit [Ping timeout: 240 seconds]
xenops has joined #ruby
fusta has joined #ruby
jeffreylevesque has joined #ruby
alazred has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
pandaant has joined #ruby
tomphp has joined #ruby
ramortegui has joined #ruby
toretore has quit [Ping timeout: 260 seconds]
vikas027 has quit [Read error: Connection reset by peer]
mrconfused has quit [Ping timeout: 245 seconds]
DeeJayh has quit [Ping timeout: 246 seconds]
DeeJayh has joined #ruby
oliv_____ has quit [Remote host closed the connection]
vall has joined #ruby
JeanCarloMachado has quit [Quit: Lost terminal]
JeanCarl1Machado has quit [Quit: Lost terminal]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 246 seconds]
toretore has joined #ruby
cdg has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd_ has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
DLSteve has joined #ruby
Jakaria has joined #ruby
bruno- has joined #ruby
<Jakaria> can anyone tell me what's the role of "do" keyword in this code- https://gist.github.com/JakariaBlaine/6425dbf910484009a4d417b8ef9102e5
<Jakaria> I am learning Ruby.... I saw this code in Rails....
cam27 has joined #ruby
<elomatreb> Jakaria: do ... end is one form to write a "block", which is a fairly unique to ruby concept
bastrud has quit [Ping timeout: 258 seconds]
DeeJayh has quit [Ping timeout: 260 seconds]
Beams has joined #ruby
Beams has quit [Client Quit]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
yogg-saron has joined #ruby
synthroid has joined #ruby
mim1k has joined #ruby
<tobiasvl> Jakaria: as elomatreb says, the stuff between "do" and "end" is what's called a block. it's passed to the "concern" method
<Jakaria> can you show me a script of using do...end??? it might be helpful for me to understand about it....
DeeJayh has joined #ruby
<elomatreb> You probably won't find much Ruby code that doesn't use them
<tobiasvl> Jakaria: maybe https://mixandgo.com/blog/mastering-ruby-blocks-in-less-than-5-minutes (haven't read it myself)
bkxd has quit [Ping timeout: 246 seconds]
<tobiasvl> or just read any ruby book
<tobiasvl> how are you learning ruby?
<Jakaria> I've watched some series of basic ruby tutorials in YouTube...
<Jakaria> now, I am learning Rails from RailsForZombie
tomphp has joined #ruby
<Jakaria> thanks tobiasvl, that link you gave has some useful information about do...end
nullobject has quit [Ping timeout: 240 seconds]
pandaant has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
<Jakaria> so, do..end block works almost like Proc?
oleo has joined #ruby
harfangk has joined #ruby
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
<tobiasvl> yes, almost. they're both closures
jamesaxl has quit [Read error: Connection reset by peer]
jgt3 has joined #ruby
jamesaxl has joined #ruby
<Jakaria> thanks, man..... that was very helpful....
* Bish things of blocks as proc literals
fusta has quit [Ping timeout: 240 seconds]
* Bish might be wrong though.
<elomatreb> Procs are objects, blocks are not unless you make them into one using the &block syntax
olivi____ has joined #ruby
stoffus_ has quit [Ping timeout: 246 seconds]
SaschaVoid has joined #ruby
Rodya_ has joined #ruby
griffindy has joined #ruby
__Yiota has joined #ruby
yogg-saron has joined #ruby
jrafanie has joined #ruby
<Bish> elomatreb: that description is misleading, blocks cannot become an object
olivi____ has quit [Ping timeout: 255 seconds]
<Bish> you can provide a proc that acts as a block, but blocks wont become objects during that
olivi____ has joined #ruby
<elomatreb> Yes, I meant "make them into a proc object", *effectively* turning them into one just like the proc method turns a block into a Proc
Rodya_ has quit [Ping timeout: 255 seconds]
yogg-saron has quit [Client Quit]
<Bish> > blocks are not unless you make them into one using the &block syntax, <thats not the only way block can become procs, it's even the most complicated
mim1k has quit [Read error: Connection reset by peer]
<Bish> that's what i found misleading
<elomatreb> What would be the other ways?
<Bish> well.
<Bish> >> Proc.new { puts "hi" }.call
<ruby[bot]> Bish: # => hi ...check link for more (https://eval.in/800208)
lightstalker has quit [Ping timeout: 240 seconds]
<Bish> >> ->(){}
yogg-saron has joined #ruby
<ruby[bot]> Bish: # => #<Proc:0x41989be4@/tmp/execpad-9297ea5d937a/source-9297ea5d937a:2 (lambda)> (https://eval.in/800209)
<elomatreb> OK, stabby lambda I'd agree with, but the others are just methods that *could* do the same with &block internally (I have no idea how similar the C level stuff that does that is though)
bheesham has joined #ruby
lightstalker has joined #ruby
<Bish> even though it wouldn't be the only way, which your description stated
yogg-saron has quit [Client Quit]
dasher00 has quit [Ping timeout: 240 seconds]
vall has quit [Ping timeout: 260 seconds]
<Bish> and no they couldn't do it with &block.. because &block turns them into proc, which would proc need to call proc
dasher00 has joined #ruby
toretore has quit [Read error: Connection reset by peer]
toretore has joined #ruby
toretore has quit [Read error: Connection reset by peer]
bmgoog has left #ruby [#ruby]
hutch34 has joined #ruby
<dminuoso> 15:58:49 Bish | elomatreb: that description is misleading, blocks cannot become an object │ armyriad
<dminuoso> >> Proc{}
<ruby[bot]> dminuoso: # => undefined method `Proc' for main:Object (NoMethodError) ...check link for more (https://eval.in/800212)
<dminuoso> >> proc{}
<ruby[bot]> dminuoso: # => #<Proc:0x41789b64@/tmp/execpad-c886ed900973/source-c886ed900973:2> (https://eval.in/800213)
<dminuoso> Voila! block just became an objcet ;o
<elomatreb> Did it actually, or did we get an object the holds/represents a block?
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> elomatreb: a block is a special control structure. All a proc is is a block with an object header
<elomatreb> Or did we construct a Proc object *from* a block?
<Bish> dminuoso knows the c internals very well.
<dminuoso> elomatreb: A proc is basically just an RObject with a pointer to a block.
<elomatreb> See, that's the answer I wanted. I should read that Ruby internals book some time
<hxegon> There's a ruby internals book? *googles*
<dminuoso> hxegon: Yes. Ruby under a microscope
<dminuoso> It's a bit dated, the source code examples dont match well anymore but conceptually it's largely still correct.
User458764 has joined #ruby
__Yiota has joined #ruby
mim1k has joined #ruby
mustmodify has joined #ruby
ascarter has joined #ruby
<Bish> dminuoso: how good will ruby3 multithreading be?
marr has quit [Ping timeout: 240 seconds]
<dminuoso> Bish: I barely know anything about Ruby 3.
yogg-saron has joined #ruby
<mustmodify> I went to a [jewelery conference](https://goo.gl/uJjJef) one time because it was important to her. I told her it was time for her to come to a code conference with me. :) She said she would go if it wasn't *entirely* about coding... some inspirational speakers or less in-the-woods discussions. Are you aware of anything like that?
olivi____ has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 246 seconds]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has joined #ruby
yogg-saron has quit [Client Quit]
lacuna has joined #ruby
<havenwood> mustmodify: Rails Camp is just camp for adults. It's very in-the-woods though. ;-)
<havenwood> No code.
yogg-saron has joined #ruby
jgt3 has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
lacuna has quit [Client Quit]
<havenwood> mustmodify: RubyConf is in New Orleans this year. There are often non-technical tracks these days.
ski7777 has joined #ruby
<havenwood> Talks haven't been selected yet.
<havenwood> mustmodify: http://rubyconf.org/
yogg-saron has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dminuoso> mustmodify: Is she looking for after-conf partying like the greek?
tvw has quit [Remote host closed the connection]
memph1s has joined #ruby
bilal has joined #ruby
tvw has joined #ruby
memph1s has quit [Client Quit]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerematic has joined #ruby
fusta has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
uZiel has joined #ruby
User458764 has joined #ruby
hashrocket has joined #ruby
yogg-saron has joined #ruby
yogg-saron has quit [Client Quit]
nullobject has joined #ruby
tvw has quit [Remote host closed the connection]
tgragnato has joined #ruby
tvw has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaruga has joined #ruby
Jakaria has quit [Quit: WeeChat 1.4]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jgt3 has quit [Ping timeout: 272 seconds]
vahe has joined #ruby
alazred has joined #ruby
oborot has joined #ruby
perniciouscaffei has joined #ruby
xall has joined #ruby
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
jrafanie has joined #ruby
chouhoulis has joined #ruby
Bhootrk_ has quit [Read error: Connection reset by peer]
<mustmodify> havenwood: thanks! Good ideas!
aufi has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
elsevero has joined #ruby
xall has quit [Ping timeout: 246 seconds]
jgt3 has joined #ruby
nobitano_ has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
jrafanie_ has joined #ruby
jrafanie has quit [Ping timeout: 240 seconds]
jgt3 has quit [Ping timeout: 246 seconds]
itarato has quit [Ping timeout: 268 seconds]
nobitanobi has quit [Ping timeout: 240 seconds]
trwyth has left #ruby [#ruby]
ascarter has joined #ruby
bkxd has joined #ruby
nullobject has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
lacuna has joined #ruby
bheesham has quit [Ping timeout: 240 seconds]
raspado has joined #ruby
Pumukel has joined #ruby
ThirstySurfer has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bilal_ has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
bilal has quit [Read error: Connection reset by peer]
bilal__ has joined #ruby
kegster has joined #ruby
pankaj has quit [Ping timeout: 268 seconds]
sleetdrop has joined #ruby
lacuna has joined #ruby
conta has quit [Ping timeout: 240 seconds]
bilal_ has quit [Ping timeout: 260 seconds]
jgt3 has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
cschneid_ has joined #ruby
ltem has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has quit [Remote host closed the connection]
jaruga has quit [Quit: jaruga]
jgt3 has quit [Ping timeout: 245 seconds]
jaruga has joined #ruby
jgt3 has joined #ruby
eightlimbed has joined #ruby
majuk has joined #ruby
itarato has joined #ruby
jaruga has quit [Ping timeout: 240 seconds]
quobo has quit [Quit: Connection closed for inactivity]
andikr has quit [Remote host closed the connection]
iliketurtles has joined #ruby
skweek has joined #ruby
iliketurtles has quit [Client Quit]
gmoney has joined #ruby
etehtsea has joined #ruby
ThirstySurfer has quit [Ping timeout: 240 seconds]
itarato has quit [Ping timeout: 240 seconds]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
itarato has joined #ruby
hobodave has joined #ruby
nchambers is now known as god
rgr_ has joined #ruby
god is now known as nchambers
rgr has quit [Ping timeout: 272 seconds]
ferr has quit [Quit: WeeChat 1.7]
gnufied has quit [Ping timeout: 255 seconds]
eightlimbs has joined #ruby
pankaj has joined #ruby
flyingX has joined #ruby
hobodave has quit [Ping timeout: 255 seconds]
eightlimbs has left #ruby [#ruby]
eightlimbs has joined #ruby
flyingX has quit [Remote host closed the connection]
flying has quit [Read error: Connection reset by peer]
flyingX has joined #ruby
hobodave_ has joined #ruby
eightlimbed has quit []
eightlimbs has left #ruby [#ruby]
ForeignBiscuit has quit [Ping timeout: 246 seconds]
eightlimbed has joined #ruby
uZiel has quit [Ping timeout: 246 seconds]
synthroid has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
bilal has joined #ruby
tomphp has joined #ruby
uZiel has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit []
bilal__ has quit [Ping timeout: 246 seconds]
t-recx has joined #ruby
Saganesque has joined #ruby
postmodern has joined #ruby
bilal has quit [Ping timeout: 240 seconds]
bilal has joined #ruby
gnufied has joined #ruby
ascarter has joined #ruby
brent__ has joined #ruby
bheesham has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
renchan has quit [Read error: Connection reset by peer]
nitric has joined #ruby
renchan has joined #ruby
ascarter has joined #ruby
b0mbnet has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
bilal has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 240 seconds]
flyingX has quit []
uZiel has quit [Ping timeout: 260 seconds]
bilal has joined #ruby
gusrub has joined #ruby
nullobject has joined #ruby
uZiel has joined #ruby
amclain has joined #ruby
hutch34 has joined #ruby
t-recx has quit [Ping timeout: 240 seconds]
t-recx has joined #ruby
pankaj has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 246 seconds]
rkazak has joined #ruby
jgt3 has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
gusrub has joined #ruby
itarato has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
ruurd is now known as Guest58547
mim1k has joined #ruby
tgragnato has quit [Read error: Connection reset by peer]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tgragnato has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sleetdrop has quit [Quit: Computer has gone to sleep.]
hogetaro has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
ascarter has quit [Ping timeout: 260 seconds]
mrconfused has joined #ruby
SaschaVoid has quit [Quit: die();]
pupsicle has quit [Quit: pupsicle]
TomyWork has quit [Ping timeout: 240 seconds]
sleetdrop has joined #ruby
nullobject has quit [Ping timeout: 246 seconds]
ascarter has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
qba73 has joined #ruby
rkazak has quit [Quit: rkazak]
perniciouscaffei has joined #ruby
sleetdrop has quit [Client Quit]
__Yiota has joined #ruby
alazred has quit [Ping timeout: 246 seconds]
mark_66 has quit [Remote host closed the connection]
Guest20275 has quit [Changing host]
Guest20275 has joined #ruby
mrconfused has quit [Ping timeout: 240 seconds]
olivi____ has quit [Remote host closed the connection]
mrconfused has joined #ruby
bilal has quit [Ping timeout: 246 seconds]
pupsicle has joined #ruby
olivi____ has joined #ruby
jgt3 has joined #ruby
md5sumo has joined #ruby
bheesham has quit [Ping timeout: 246 seconds]
bilal has joined #ruby
devyn has quit [Ping timeout: 240 seconds]
devyn_ has joined #ruby
perniciouscaffei has quit [Ping timeout: 255 seconds]
mrconfused has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
olivi____ has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
elsevero has quit [Quit: elsevero]
pankaj has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
DeeJayh has quit [Remote host closed the connection]
DeeJayh has joined #ruby
rakm has joined #ruby
rkazak has joined #ruby
marr has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
jgt3 has quit [Ping timeout: 240 seconds]
cahoots has joined #ruby
cam27 has quit [Quit: cam27]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fern has joined #ruby
oliv_____ has joined #ruby
cahoots has quit [Client Quit]
Burgestrand has quit [Quit: Closing time!]
alazred has joined #ruby
alazred has quit [Changing host]
alazred has joined #ruby
mikecmpbll has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
gizmore|2 is now known as gizmore
jackjackdripper has joined #ruby
itarato has joined #ruby
Dimik has joined #ruby
jgt3 has joined #ruby
fern has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ascarter has joined #ruby
huddy has joined #ruby
rgr_ has quit [Ping timeout: 255 seconds]
qba73 has quit []
Kug3lis has joined #ruby
nowhere_man has quit [Ping timeout: 255 seconds]
mrconfused has joined #ruby
h0777777 has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
olivi____ has quit [Remote host closed the connection]
armyriad has joined #ruby
blackwind_123 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cahoots has joined #ruby
TomyLobo has joined #ruby
jgt3 has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgr has joined #ruby
mrconfused has quit [Ping timeout: 258 seconds]
<cahoots> hi, i'm working with a compile command that includes a file path i want to extract, and that file path may have escaped spaces. if it didn't have spaces, i could just do ([^\s]+) to get it, but since it does how can i easily get it out?
Uranio has joined #ruby
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eightlimbed has quit [Ping timeout: 240 seconds]
DeeJayh has quit [Ping timeout: 246 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
sleetdrop has joined #ruby
ascarter has joined #ruby
jrafanie has joined #ruby
anisha_ has quit [Quit: Leaving]
pankaj has quit [Ping timeout: 246 seconds]
mustmodify has left #ruby [#ruby]
Uranio has left #ruby ["while you read this, a kitty dies"]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
pankaj has joined #ruby
<al2o3-cr> cahoots: show us what you're working with and what your desired output is
nanoz has joined #ruby
DeeJayh has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
lacuna has joined #ruby
renchan has quit [Quit: Leaving...]
jackjackdripper has joined #ruby
ascarter has joined #ruby
vahe has quit [Quit: Leaving.]
alazred has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
tgragnato has quit [Ping timeout: 246 seconds]
quobo has joined #ruby
nowhere_man has joined #ruby
nullobject has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
nanoz has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
theunraveler has joined #ruby
<cahoots> al2o3-cr, so i have a string like "gcc -o file path/to/with\ spaces/file.c -more -flags"
<cahoots> and i want to extract that whole path
hobodave has joined #ruby
<cahoots> in fact, i want to split up the entire string by non-escaped spaces into tokens
aupadhye has quit [Ping timeout: 246 seconds]
mrconfused has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hobodave_ has quit [Ping timeout: 268 seconds]
lacuna has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Quit: Leaving.]
jusa has joined #ruby
bheesham has joined #ruby
nowhere_man has quit [Quit: Konversation terminated!]
tildes has joined #ruby
<cahoots> shellsplit, nice. thanks!
nowhere_man has joined #ruby
gusrub has joined #ruby
<baweaver> note that it's a gem
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
bilal has quit [Quit: bilal]
jackjackdripper has joined #ruby
gusrub has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
nullobject has quit [Ping timeout: 268 seconds]
rkazak has quit [Quit: Sleep.....ing....]
pandaant has joined #ruby
jaruga has joined #ruby
Silthias1 has quit [Quit: Leaving.]
polishdub has joined #ruby
majuk has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
muelleme has joined #ruby
aarwine_ has joined #ruby
Rodya_ has joined #ruby
<aarwine_> I'm trying to simplify some api access by writing a gem. Currently the gem has an initialize that sets up class variables, but i'm wondering if I should be using attr_accessor instead
<aarwine_> This is for the credentials to auth against the api with
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has quit [Read error: Connection reset by peer]
elsevero has joined #ruby
gusrub has joined #ruby
<baweaver> y'mean instance variable?
<baweaver> attr_* methods just create instance variables and method accessors
<havenwood> aarwine_: You might consider using a Singleton Class.
<havenwood> aarwine_: Use @ instance variables unless you really have a reason to use @@ class instance variables (it's not common).
__Yiota has joined #ruby
s2013 has joined #ruby
polishdub has joined #ruby
uZiel has joined #ruby
t-recx has quit [Quit: t-recx]
nobitano_ has quit [Remote host closed the connection]
hongkongphooy has quit [Quit: Konversation terminated!]
tildes has quit [Ping timeout: 260 seconds]
SaschaVoid has joined #ruby
uZiel has quit [Ping timeout: 240 seconds]
BSaboia has quit [Read error: Connection reset by peer]
PatrikasZvaigzde has quit [Ping timeout: 240 seconds]
zooman_68 has joined #ruby
PatrikasZvaigzde has joined #ruby
duderonomy has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
jaruga has quit [Quit: jaruga]
uZiel has joined #ruby
itarato has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Quit: Leaving.]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eightlimbed has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
pankaj has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
cahoots has quit [Quit: leaving]
pankaj has joined #ruby
mikecmpbll has joined #ruby
brent__ has quit [Remote host closed the connection]
bastrud has joined #ruby
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
jackjackdripper has joined #ruby
ledestin has joined #ruby
tgragnato has joined #ruby
cdg has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 260 seconds]
gusrub_ has joined #ruby
muelleme has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Quit: Leaving...]
gusrub has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
kirun has joined #ruby
Bock has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
rkazak has joined #ruby
jamesaxl has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
benlieb has joined #ruby
nullobject has joined #ruby
zooman_68 has quit [Ping timeout: 260 seconds]
itarato has joined #ruby
cyclonis has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
xall has joined #ruby
KeyJoo has quit [Ping timeout: 240 seconds]
jrafanie_ has joined #ruby
eightlimbed has quit [Ping timeout: 240 seconds]
jrafanie has quit [Ping timeout: 246 seconds]
rkazak has quit [Quit: Sleep.....ing....]
Dimik has joined #ruby
gusrub_ has quit [Remote host closed the connection]
raatiniemi_ has quit [Quit: raatiniemi_]
newrubycoder has joined #ruby
jgt3 has joined #ruby
skweek has joined #ruby
itarato has quit [Quit: WeeChat 1.8]
gil_ has quit [Ping timeout: 260 seconds]
raatiniemi has joined #ruby
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
gusrub has joined #ruby
jgt3 has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
nullobject has quit [Ping timeout: 240 seconds]
jaruga has joined #ruby
SaschaVoid has quit [Ping timeout: 240 seconds]
<jrm> When I run rake secret, for a ruby application (mastodon), it complains about not finding a library, libcld3.so, which is in /usr/local/lib/ruby/gems/2.3/gems/cld3-3.1.2/lib/libcld3.so. Here are the details: http://ftfl.ca/paste/mastodon_rake_secret.html
User458764 has joined #ruby
<jrm> The Rakefile contains: http://ftfl.ca/paste/mastodon_rakefile.html
<jrm> Any suggestions on how to fix this?
tildes has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 240 seconds]
jackrandom has joined #ruby
aswen has joined #ruby
Pierreb|home has joined #ruby
patarr has joined #ruby
gnufied has quit [Ping timeout: 260 seconds]
romeoh has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has joined #ruby
jaruga has quit [Quit: jaruga]
psychicist__ has joined #ruby
romeoh_ has quit [Ping timeout: 260 seconds]
diego4 has joined #ruby
DeeJayh has quit [Remote host closed the connection]
dviola has quit [Ping timeout: 272 seconds]
DeeJayh has joined #ruby
tildes has joined #ruby
<newrubycoder> guys how do i open my basic server to the internet? it works with localhost as hostname but not with ipv4 ip
diego4 has quit [Changing host]
diego4 has joined #ruby
diego4 is now known as dviola
zacts has quit [Ping timeout: 246 seconds]
<SeepingN> port forwarding on your router
<newrubycoder> i need to set up stuff on my router?
<baweaver> Think of it like a house
<baweaver> every house has an address that's publicly accessible
<baweaver> rooms inside the house can only be routed to by giving a certain name (port) and defining which name (port) goes to which room (machine)
majuk has joined #ruby
gnufied has joined #ruby
<newrubycoder> wow this stuff is complicated, hoped i could do it through just ruby lol
brent__ has quit []
guardian has quit [Quit: Coyote finally caught me]
biberu has quit []
<newrubycoder> is it safe to open a port?
<elomatreb> Depending on what you expose, maybe
<newrubycoder> just a very basic ruby server i will only run for some minutes per day
<elomatreb> If it's not a risk that someone else besides you might access it (i.e. it's properly authenticated, etc)
<baweaver> Anything that talks to the internet is a risk
zacts has joined #ruby
rgr has quit [Ping timeout: 258 seconds]
bernd27 has joined #ruby
Kanbi_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
jackrandom has quit [Ping timeout: 255 seconds]
pankaj has quit [Quit: Leaving]
SaschaVoid has joined #ruby
DeeJayh has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
DoubleMalt has joined #ruby
SaschaVoid has quit [Read error: Connection reset by peer]
muelleme has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
<SeepingN> ^
SaschaVoid has joined #ruby
DeeJayh has joined #ruby
joaumg has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
SaschaVoid has quit [Read error: Connection reset by peer]
SaschaVoid has joined #ruby
redaudit has joined #ruby
nullobject has joined #ruby
synthroid has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jusa has quit [Ping timeout: 268 seconds]
muelleme has quit [Ping timeout: 240 seconds]
bastrud has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
MrBusiness has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tildes has quit [Ping timeout: 272 seconds]
cdg has joined #ruby
nobitanobi has quit [Ping timeout: 255 seconds]
oliv_____ has joined #ruby
gusrub has quit [Remote host closed the connection]
nullobject has quit [Ping timeout: 245 seconds]
oborot has quit [Ping timeout: 246 seconds]
<atmosx> Hello, I have a list of domain names, 100-150k domains. I want to scan very quickly (I wanna know if a domain query is part of that list). What would the fastest approach? A Redis or an SQL? there are some in-memory SQL implementation IIRC
<elomatreb> You could implement some sort of binary search yourself, if you sort them beforehand
DeeJayh has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
<atmosx> right, I didn't thought about this.
nh_cham has joined #ruby
benlieb has quit [Quit: benlieb]
<nh_cham> Hey guys, the Preeventualist Lost+Found page is down again.
cam27 has quit [Quit: cam27]
ozcanesen has joined #ruby
oborot has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<baweaver> nh_cham: Is this a Ruby question?
<nh_cham> Sorry, no question.
tomphp has joined #ruby
ascarter has joined #ruby
nh_cham has quit [Quit: AtomicIRC: The nuclear option.]
patarr has joined #ruby
gusrub has joined #ruby
AndroUser2 has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gil_ has quit [Ping timeout: 268 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
gusrub has quit [Ping timeout: 268 seconds]
ascarter has joined #ruby
aswen has quit [Quit: WeeChat 1.6]
benlieb has joined #ruby
<zenspider> does someone have a 1.9 around somewhere I can poke at?
benlieb has quit [Client Quit]
SaschaVoid has quit [Quit: die();]
ascarter has quit [Client Quit]
oliv_____ has quit [Remote host closed the connection]
Puffball has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
romeoh has quit []
Puffball has joined #ruby
montyboy has quit [Quit: WeeChat 1.7.1]
DeeJayh has joined #ruby
<atmosx> zenspider: by poke you have get ssh access to?
<atmosx> *mean*
<zenspider> not necessarily... Just need to know if something is valid in 1.9
enterprisey has quit [Ping timeout: 240 seconds]
<zenspider> ruby19 -we 'p def self.m; x.y do; end; end'
<zenspider> what's that evaluate to?
<atmosx> 1.9.3-p551 :001 >
skweek has quit [Ping timeout: 260 seconds]
<atmosx> nil
<zenspider> that's what I thought. Anyone know when def started to return the name? I think it was 2, no?
<zenspider> still a valid construct in 1.9..., but meaningless
<zenspider> I guess that should be valid syntax for 1.8 as well
<zenspider> (trying to figure out where to place this ruby_parser test)
Puffball has quit [Ping timeout: 240 seconds]
Puffball has joined #ruby
synthroid has joined #ruby
nullobject has joined #ruby
Lyfe has quit [Read error: Connection reset by peer]
Lyfe has joined #ruby
mr_rich101 has quit [Ping timeout: 240 seconds]
MrBusiness has joined #ruby
Lyfe has quit [Read error: Connection reset by peer]
mr_rich101 has joined #ruby
jidar has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
daed has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
synthroid has quit []
jidar has joined #ruby
<havenwood> zenspider: yup, same in 1.8 and symbol in 2.0
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> 20>> def self.m; x.y do; end; end
<ruby[bot]> havenwood: # => nil (https://eval.in/800630)
<havenwood> err
Lyfe has joined #ruby
__Yiota has joined #ruby
jeffreylevesque has quit [Ping timeout: 240 seconds]
<havenwood> zenspider: It's 2.1
<zenspider> cool. actual semantics aren't important for me... just curious why anyone would write such crap
<havenwood> 21>> def self.m; x.y do; end; end
<ruby[bot]> havenwood: # => :m (https://eval.in/800631)
jenrzzz has joined #ruby
<zenspider> got it patched up in 1.8, 1.9, 2+
<havenwood> 2.0 is nil
<havenwood> 2.1+ :m
patarr has quit [Ping timeout: 268 seconds]
<dminuoso> >> 2.0.nil?
<ruby[bot]> dminuoso: # => false (https://eval.in/800638)
<dminuoso> havenwood: lies.
<zenspider> cool. thanks y'all
<dminuoso> Glad to help.
SteenJobs has joined #ruby
ltem has quit [Quit: Leaving]
raspado has quit [Remote host closed the connection]
Lyfe has quit [Ping timeout: 240 seconds]
oborot has quit [Ping timeout: 272 seconds]
raspado has joined #ruby
Kanbi_ has quit [Quit: Leaving]
joaumg has quit [Quit: Leaving]
jidar has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
quiller has quit [Ping timeout: 268 seconds]
h0777777 has quit [Ping timeout: 246 seconds]
Bish has quit [Ping timeout: 240 seconds]
Lyfe has joined #ruby
bronson has joined #ruby
jidar has joined #ruby
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
Bish has joined #ruby
yqt has joined #ruby
oliv_____ has joined #ruby
MrMuff_ has quit [Remote host closed the connection]
MrMuff has joined #ruby
SeepingN_ has joined #ruby
SeepingN has quit [Disconnected by services]
DeeJayh has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quiller has joined #ruby
<baweaver> dminuoso there's a method to the madness
<zenspider> I need some sort of regexp sanitizer
<dminuoso> baweaver: What is it?
<baweaver> >> def madness; 42 end
<ruby[bot]> baweaver: # => :madness (https://eval.in/800642)
<zenspider> something better than Regexp.new $1 :)
<baweaver> zenspider: echo > /dev/null
<zenspider> but not as useless as Regexp.new Regexp.escape $1
oborot has joined #ruby
<baweaver> ultimate sanitizing experience
patarr has joined #ruby
DeeJayh has joined #ruby
<zenspider> >> /\A(?<paren>\(\g<paren>*\))*\z/ =~ '(())'
<ruby[bot]> zenspider: # => 0 (https://eval.in/800646)
ascarter has joined #ruby
nofxxxx has joined #ruby
hutch34 has joined #ruby
ur5us has joined #ruby
<al2o3-cr> Regexp.union $1 :P
nofxxx has quit [Ping timeout: 246 seconds]
<zenspider> havenwood: that allows _anything_ inside the regexp
<zenspider> I don't want to prove it as halting or anything... but limiting what it can do to a sane subset would be really nice
<zenspider> back in the day I wrote a regexp to match regexps in perl... it was 4 lines long. I'd prefer not to do that either. :)
DoubleMalt has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> zenspider, do you come from Perl?
<dminuoso> Because whenever I think of you, I think of this grey bearded regexp expert wearing Perl5 t-shirts..
<zenspider> that's a loaded question. I come from Seattle. I've coded in perl. I've coded in a ton of languages.
bheesham has quit [Ping timeout: 246 seconds]
<dminuoso> heh
<dminuoso> Fair enough
gusrub has joined #ruby
voxxit has quit [*.net *.split]
mim1k has joined #ruby
MrMuff has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
<zenspider> perl, python, ruby, c, pascal, smalltalk, lisp (mostly scheme), etc etc etc (in no particular order)
theunraveler has quit []
dviola has quit [Quit: WeeChat 1.8]
<zenspider> huh. I have `ri Regexp.json_create` output... but can't seem to use it?
god has joined #ruby
god has quit [Remote host closed the connection]
SteenJobs has quit [Quit: SteenJobs]
<baweaver> dminuoso: well zenspider _could_ grow a pretty magnificent beard.
<dminuoso> baweaver: You mean a regular beard?
<zenspider> but you'll never see me in a perl t-shirt. or any t-shirt w/ words/logos
mim1k has quit [Ping timeout: 260 seconds]
<al2o3-cr> zenspider: require 'json/add/core'
<zenspider> how strange. the ri says it is in ruby-core, which implies you don't require anything
mrconfused has quit [Ping timeout: 255 seconds]
<zenspider> raise XXX, "Not allowed: /#{re.inspect}/" if re !~ /\A([\w()|]+)\z/
<zenspider> should I add anything else?
<zenspider> I doubt {} constructs would be needed
<dminuoso> zenspider: Im guessing the comment got core and stdlib mixed up
<zenspider> maybe [] ?
eightlimbed has joined #ruby
<zenspider> it's a start
DeeJayh has quit [Remote host closed the connection]
fusta has quit [Ping timeout: 260 seconds]
DeeJayh has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
cdg has quit [Ping timeout: 260 seconds]
bheesham has joined #ruby
cdg has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
psychicist__ has quit [Quit: Lost terminal]
oliv_____ has quit [Remote host closed the connection]
ramortegui has quit [Quit: Ex-Chat]
oliv_____ has joined #ruby
daed has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Konversation terminated!]
Burgestrand has joined #ruby
tvw has joined #ruby
agentsmith has joined #ruby
guardian has joined #ruby
agentsmith is now known as Guest80086
eckhardt has joined #ruby
cfec0b8d has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Quit: It's a dud! It's a dud! It's a du...]
Emmanuel_Chanel has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
jordanm has quit [Remote host closed the connection]
hobodave has joined #ruby
bkxd has joined #ruby
blackwind_123 has joined #ruby
bernd9000 has joined #ruby
bernd27 has quit [Read error: Connection reset by peer]
jeffreylevesque has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
devyn_ has quit [Ping timeout: 260 seconds]
devyn has joined #ruby
sepp2k has quit [Quit: Leaving.]
Burgestrand has quit [Quit: Closing time!]
sepp2k has joined #ruby
<baweaver> Here's a fun one
<dminuoso> baweaver is no fun.
SloggerKhan has joined #ruby
* dminuoso has already ruined it
<baweaver> say you had a string: "event.first_alerted > 1.day.ago && event.status == 2"
DeeJayh has quit [Ping timeout: 240 seconds]
<dminuoso> I would say ditch rails.
<baweaver> how would you choose to evaluate that from a string?
<dminuoso> eval.
<elomatreb> Step 1) Don't
<baweaver> Tempting, but dangerous
<dminuoso> YOLO.
<baweaver> Trying to get a rules engine going for some alerts
<baweaver> debating on how I want to go about it
ascarter has joined #ruby
<dminuoso> baweaver: you could parse it and analyze the AST
<dminuoso> though..
<dminuoso> no, wont work
<baweaver> maybe: condition: {event: {first_alerted: '> 1 day', status: 'critical'}}
<dminuoso> baweaver: Next idea invent a trivial language that you can evaluate to some form of algebraic expressions
<zenspider> baweaver: EventInterpreter.new RubyParser.new.parse string
rikai has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<baweaver> just go with SEXPs.
<baweaver> psuedo
<zenspider> where EventInterpreter subclasses SexpProcessor
<zenspider> dminuoso: why won't that work?
sepp2k has quit [Ping timeout: 240 seconds]
<dminuoso> zenspider: Oh, I was thinking about once passed it could be piped back to Ruby in its raw form. But that's definitely not possible.
<SloggerKhan> When working with binary in Ruby is there an easy way of making the result of an op like ~0x0040 give 0xFFBF instead of 0xFBF? (Related, why does it give 0xFBF over 0xBF, even for ~0x40?)
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> dminuoso: it is with ruby2ruby
<dminuoso> zenspider: no wai.
<dminuoso> zenspider: seattlerb is you?
jusa has joined #ruby
<dminuoso> :o
<zenspider> yup
<zenspider> baweaver: parsed it looks like: s(:and, s(:call, s(:call, s(:call, nil, :event), :first_alerted), :>, s(:call, s(:call, s(:lit, 1), :day), :ago)), s(:call, s(:call, s(:call, nil, :event), :status), :==, s(:lit, 2)))
<zenspider> and is pretty damn easy to interpret
ascarter has quit [Ping timeout: 260 seconds]
DeeJayh has joined #ruby
<zenspider> you could interpret it yourself, or write a "sanitizer" (interpreter w/o actions), pump that through r2r and then eval it
<baweaver> Yeah. May go with the hash nesting route to make it a bit clearer
<havenwood> eval Ripper.lex("event.first_alerted > 1.day.ago && event.status == 2").select { |_, type, _| %i[on_ident on_period on_sp on_op on_int].include? type }.map(&:last).join
<havenwood> ;-P
<zenspider> but Ripper is horrible
<havenwood> what harm could you possibly do with periods, identifiers?
* havenwood grins
<baweaver> I heard those knuckles crack dminuoso and havenwood
ascarter has joined #ruby
<dminuoso> baweaver: That's fine. I taught my coworker how to throw a punch properly.
<baweaver> I assume it was a hit
rikai has joined #ruby
<baweaver> were they hooked?
<dminuoso> Nha
oleandros has joined #ruby
oleandros is now known as aleandros
<baweaver> Just taking a jab at ya
<zenspider> oh hey! they fixed my favorite ripper bug!
<zenspider> >> require "ripper"; Ripper.sexp("I'm a little teapot")
<ruby[bot]> zenspider: # => nil (https://eval.in/800654)
jusa has quit [Ping timeout: 246 seconds]
<dminuoso> zenspider: What did that produce before?
<zenspider> that used to parse
<dminuoso> Wat?
<zenspider> junk
<zenspider> 19>> require "ripper"; Ripper.sexp("I'm a little teapot")
<ruby[bot]> zenspider: # => [:program, [[:command, [:@const, "I", [1, 0]], [:args_add_block, [[:string_literal, [:string_content ...check link for more (https://eval.in/800655)
<dminuoso> zenspider: Considering how Ripper is implemented that is really surprising..
<zenspider> yup!
<zenspider> 20>> require "ripper"; Ripper.sexp("I'm a little teapot")
<ruby[bot]> zenspider: # => [:program, [[:command, [:@const, "I", [1, 0]], [:args_add_block, [[:string_literal, [:string_content ...check link for more (https://eval.in/800656)
<zenspider> 21>> require "ripper"; Ripper.sexp("I'm a little teapot")
<ruby[bot]> zenspider: # => [:program, [[:command, [:@const, "I", [1, 0]], [:args_add_block, [[:string_literal, [:string_content ...check link for more (https://eval.in/800657)
<zenspider> 22>> require "ripper"; Ripper.sexp("I'm a little teapot")
<ruby[bot]> zenspider: # => nil (https://eval.in/800658)
SeepingN_ has quit [Ping timeout: 246 seconds]
<zenspider> haha
<zenspider> took them a long while
<zenspider> I still don't trust it one bit
<zenspider> also really dislike the [[]] s
<dminuoso> zenspider: Oh neat. You wrote a recursive descent parser for Ruby? :)
<zenspider> no :( that's nearly impossible. I wrote a racc parser
<dminuoso> Ohh. I was looking at your ruby2ruby and didnt realize what was going on..
aleandros has quit [Client Quit]
<dminuoso> zenspider: I tried to debug a parsing bug before. After 8 hours of debugging bison state tables I simply gave up.
<dminuoso> I mean a ruby parsing bug
<zenspider> it's pretty horrible
<zenspider> I have some tools and methods to figure stuff out, since I'm just trying to match ruby... but still horrible
fusta has joined #ruby
<dminuoso> zenspider: Indeed. After that I understood why so many large projects such as GCC and clang have switched to hand writtern (weaker) RDPs..
<dminuoso> You can't even do sensible diagnostics with a LR parser
quobo has quit [Quit: Connection closed for inactivity]
<zenspider> yup. the fact that GCC and clang have flipped to RDP gives me hope that it may be possible for ruby... but I'm not willing to put the time into doing a LR -> LL flip for free
patr0clus has joined #ruby
oliv_____ has quit [Remote host closed the connection]
SeepingN has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oliv_____ has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
elsevero has quit [Quit: elsevero]
hutch34 has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Ping timeout: 240 seconds]
DeeJayh has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
pifon is now known as mississippian|SU
mississippian|SU is now known as mississippiman|S
mississippiman|S is now known as M|SS|SS|PP|
<oborot> Is it safe to use an ruby pre-built on Ubuntu 14.04 in Ubuntu 16?
polishdub has quit [Quit: Leaving]
<oborot> Trying to install the backup gem on some LAMP servers but seems like overkill to downlod and build a dedicated ruby when I just need it for the occasional backup
patarr has quit [Ping timeout: 268 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
DeeJayh has joined #ruby
<oborot> It takes a quite a while to build the backup gem too since it seems to require some native extensions to work
<oborot> Tried to get the traveling ruby by Phusion to work for this, but no dice
ecuanaso has joined #ruby
skweek has joined #ruby
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 260 seconds]
bruno-_ has joined #ruby
<havenwood> oborot: Brightbox also maintains up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: WeeChat 1.7]
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
bruno- has quit [Ping timeout: 240 seconds]
mrconfused has joined #ruby
<oborot> havenwood: I'm trying to automate the setup with an ansible script. It would be preferable to just ship one pre-built ruby binary to rule them all during server provisioning
cagomez has joined #ruby
majuk has quit [Remote host closed the connection]
<havenwood> oborot: You could use Travis or RVM's precompiled, statically linked binaries. Here're Travis's: http://rubies.travis-ci.org/
<havenwood> oborot: They have 14.04 as do RVM.
<oborot> I'll try them, thanks
<oborot> I probably wouldn't even need a ruby version manager on the remote server either...
go|dfish has quit [Ping timeout: 240 seconds]
raspado has quit [Remote host closed the connection]
<oborot> I could probably just set the GEM_PATH or whatever
<havenwood> oborot: Or you can install Ruby from source with ruby-install to /usr/local easily.
raspado has joined #ruby
<havenwood> oborot: ruby-install --system --latest ruby
<havenwood> sudo !!
AndroUser2 has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 272 seconds]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
raspado has quit [Ping timeout: 240 seconds]
eightlimbed has quit [Ping timeout: 268 seconds]
DeeJayh has quit [Ping timeout: 260 seconds]
redCOAT_ has quit [Remote host closed the connection]
tvw has quit []
tgragnato has quit [Ping timeout: 268 seconds]
DeeJayh has joined #ruby
mrconfused has quit [Ping timeout: 240 seconds]
jgt3 has joined #ruby
gusrub has quit [Remote host closed the connection]
cschneid_ has quit [Remote host closed the connection]
ascarter has joined #ruby
skweek has quit [Ping timeout: 268 seconds]
mim1k has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synstack is now known as sunstock
joelwallis has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 240 seconds]
DeeJayh has quit [Ping timeout: 260 seconds]
duderono_ has joined #ruby
gnufied has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 255 seconds]
knight33 has joined #ruby
xenops has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
newrubycoder has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cschneid_ has joined #ruby
shinnya has joined #ruby
mrconfused has joined #ruby
Bhootrk_ has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
sunstock is now known as synstack
cschneid_ has quit [Ping timeout: 272 seconds]
DeeJayh has joined #ruby
cam27 has joined #ruby
patarr has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Bhootrk_ has quit [Quit: Leaving]
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has quit [Ping timeout: 240 seconds]
bernd9000 has quit [Read error: Connection reset by peer]
bernd9000 has joined #ruby
ta_ has joined #ruby
ecuanaso has joined #ruby
alveric1 has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
boombox_ has joined #ruby
quiller has quit [Quit: I out! ::mic drop::]
gusrub has quit [Remote host closed the connection]
alveric4 has quit [Ping timeout: 260 seconds]
nitric has quit [Ping timeout: 240 seconds]
bernd9000 has quit [Ping timeout: 240 seconds]
bernd27 has joined #ruby
jusa has joined #ruby
boombox_ has quit [Remote host closed the connection]
oborot has quit [Ping timeout: 255 seconds]