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
Joufflu_Fail has joined #ruby
Derperperd has joined #ruby
infernix has joined #ruby
boshhead has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
username_ has quit [Ping timeout: 255 seconds]
AustinMatherne has joined #ruby
_aeris_ has joined #ruby
aglorei1 has joined #ruby
uZiel has joined #ruby
boshhead has joined #ruby
quiller has joined #ruby
goyox86 has joined #ruby
_aeris_ has quit [Read error: Connection reset by peer]
uZiel has quit [Read error: Connection reset by peer]
aglorei1 has quit [Read error: Connection reset by peer]
Joufflu has quit [Ping timeout: 246 seconds]
mayamai has joined #ruby
Cork has joined #ruby
tomaw has joined #ruby
darix has joined #ruby
FastJack has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
nobitanobi has quit [Remote host closed the connection]
boshhead has joined #ruby
boshhead has quit [Changing host]
elliottcable is now known as Guest43987
Iacobus is now known as Guest42469
rann is now known as Guest46105
Tristan-Speccy is now known as Guest68257
alamar is now known as Guest70510
Fenhl is now known as Guest48111
Pisuke is now known as Guest3423
bougyman is now known as Guest19682
Map is now known as Guest76516
moogumbo is now known as Guest67616
graingert is now known as Guest65270
okdas has quit [Changing host]
okdas has joined #ruby
infernix has joined #ruby
infernix has quit [Changing host]
edwardly has quit [Changing host]
edwardly has joined #ruby
KramerC has quit [Changing host]
KramerC has joined #ruby
armyriad has joined #ruby
electrostat has joined #ruby
BSaboia has joined #ruby
ikopico has joined #ruby
byte512 has joined #ruby
kculpis has joined #ruby
DenSchub has joined #ruby
nchambers has joined #ruby
TomyLobo has joined #ruby
mtkd has joined #ruby
seitensei has joined #ruby
nobitanobi has joined #ruby
m27frogy has joined #ruby
bogdanteleaga has joined #ruby
sindork has joined #ruby
nicoulaj has joined #ruby
jphase has joined #ruby
giraffe has joined #ruby
giraffe is now known as Guest83487
WebDawg has joined #ruby
thinkpad has joined #ruby
duderonomy has joined #ruby
ahrs has joined #ruby
aglorei1 has joined #ruby
hahuang65 has joined #ruby
aglorei1 has quit [*.net *.split]
MissionCritical has joined #ruby
gix has quit [Quit: Client exiting]
skweek has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
jtdowney has quit [Quit: Ping timeout (120 seconds)]
Tagami[m] has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
nobitanobi has quit [Ping timeout: 246 seconds]
brent__ has quit [Remote host closed the connection]
skweek has quit [Max SendQ exceeded]
brent__ has joined #ruby
skweek has joined #ruby
bruno- has joined #ruby
jenrzzz has joined #ruby
kkiero is now known as kiero
kiero has quit [Quit: leaving]
Guest85042 has quit [Ping timeout: 260 seconds]
funkateer has joined #ruby
kiero has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
hahuang65 has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
afromankenobi has joined #ruby
funkycrunchy has joined #ruby
kiero has quit [Changing host]
kiero has joined #ruby
elcontrastador has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
aidalgol has joined #ruby
joenas[m] has joined #ruby
M107262[m] has joined #ruby
yana[m] has joined #ruby
jonjits[m] has joined #ruby
torarne has joined #ruby
aviraldg has joined #ruby
dman[m] has joined #ruby
turt2live has joined #ruby
Giphy[m] has joined #ruby
heftig has joined #ruby
KevinMGranger has joined #ruby
gokul_mr[m] has joined #ruby
lasenna[m] has joined #ruby
Matt[m]1 has joined #ruby
aagdbl[m] has joined #ruby
velu_aon[m] has joined #ruby
xuanrui has joined #ruby
Silthias has joined #ruby
elcontrastador has quit [Ping timeout: 260 seconds]
funkycrunchy has quit [Quit: WeeChat 1.9]
funkycrunchy has joined #ruby
im0nde has quit [Quit: im0nde]
sagax has quit [Read error: Connection reset by peer]
NeverTired has joined #ruby
sagax has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
gusrub has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
__Yiota has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
perniciouscaffei has joined #ruby
carnegie has joined #ruby
wilbert_ has joined #ruby
kiero has quit [Quit: leaving]
tvw has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 240 seconds]
jphase has quit [Remote host closed the connection]
_aeris_ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
jphase has joined #ruby
aglorei1 has joined #ruby
mtkd has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
jphase has quit [Ping timeout: 246 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
funkycrunchy has quit [Ping timeout: 255 seconds]
funkycrunchy has joined #ruby
xuanrui has quit [Ping timeout: 240 seconds]
nopolitica has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
senera has joined #ruby
milardovich has joined #ruby
Derperperd has quit [Changing host]
Derperperd has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
frozengeek_ has quit [Quit: frozengeek_]
Silthias has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
gix has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
afromankenobi has quit [Remote host closed the connection]
afromankenobi has joined #ruby
frozengeek_ has joined #ruby
s3nd1v0g1us has joined #ruby
gizmore|2 has joined #ruby
uZiel has joined #ruby
afromankenobi has quit [Ping timeout: 260 seconds]
gizmore has quit [Ping timeout: 240 seconds]
jtperreault has quit [Quit: WeeChat 1.4]
jtperreault has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
m27frogy has quit [Ping timeout: 255 seconds]
cdg has quit [Remote host closed the connection]
mwlang has joined #ruby
mwlang has quit [Quit: mwlang]
MrBismuth has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
duderonomy has joined #ruby
MrBusiness has quit [Ping timeout: 246 seconds]
astrobunny has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui_ has joined #ruby
hightower2 has quit [Remote host closed the connection]
afromankenobi has joined #ruby
ecuanaso has joined #ruby
belmoussaoui_ has quit [Quit: belmoussaoui_]
PorcoRex has joined #ruby
<PorcoRex> Evening Ruby.
harfangk has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
Guest19682 has quit [Changing host]
Guest19682 has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Guest19682 is now known as bougyman
senera has quit [Quit: leaving]
cdg has joined #ruby
Dimik has joined #ruby
goyox86 has quit [Quit: goyox86]
AnoHito has joined #ruby
beilabs has joined #ruby
AnoHito_ has quit [Ping timeout: 255 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
umaaji has joined #ruby
beilabs has quit [Ping timeout: 248 seconds]
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
jinie_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
harfangk has quit [Ping timeout: 240 seconds]
<bougyman> hahaha
<bougyman> rvm doesn't work under #/bin/sh
<bougyman> took me like 10 minutes to figure that out.
jinie_ has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
belmoussaoui has joined #ruby
ta_ has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
<sneep> Anyone else living in the Ruby City?
<sneep> (Matsue)
ozcanesen has joined #ruby
funkycrunchy has quit [Ping timeout: 260 seconds]
afromankenobi has quit [Remote host closed the connection]
afromankenobi has joined #ruby
afromankenobi has quit [Remote host closed the connection]
afromankenobi has joined #ruby
afromankenobi has quit [Remote host closed the connection]
afromankenobi has joined #ruby
afromankenobi has quit [Remote host closed the connection]
afromankenobi has joined #ruby
afromankenobi has quit [Remote host closed the connection]
afromankenobi has joined #ruby
afromankenobi has quit [Remote host closed the connection]
afromankenobi has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
elcontrastador has joined #ruby
afromankenobi has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
cagomez has joined #ruby
elcontrastador has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
goyox86 has joined #ruby
carnegie has quit [Remote host closed the connection]
carnegie has joined #ruby
alfiemax has joined #ruby
kn-928 has joined #ruby
ur5us has quit []
alfiemax has quit [Ping timeout: 246 seconds]
xuanrui has joined #ruby
m27frogy has joined #ruby
tacotime has quit [Ping timeout: 240 seconds]
m27frogy has quit [Ping timeout: 240 seconds]
tacotime has joined #ruby
m27frogy has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
afromankenobi has joined #ruby
carnegie has quit [Remote host closed the connection]
eregon has quit [K-Lined]
m27frogy has quit [Ping timeout: 240 seconds]
sarbs has quit [Ping timeout: 255 seconds]
m27frogy has joined #ruby
goyox86 has quit [Quit: goyox86]
funkycrunchy has joined #ruby
nacsurte has joined #ruby
PorcoRex has quit [Quit: Leaving]
alfiemax has joined #ruby
govg has joined #ruby
nacsurte has quit [Ping timeout: 260 seconds]
nofxxx has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
Silthias1 has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
DTZUZO has joined #ruby
Silthias has joined #ruby
nofxxxx has quit [Ping timeout: 240 seconds]
s3nd1v0g1us has quit [Quit: tempusfugit]
nobitanobi has joined #ruby
gix has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
cadillac_ has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
cadillac_ has joined #ruby
shortdudey123 has quit [Remote host closed the connection]
gix has joined #ruby
opekktar has joined #ruby
opekktar has quit [Remote host closed the connection]
justin_pdx has joined #ruby
_whitelogger has joined #ruby
joenas[m] has quit [Ping timeout: 276 seconds]
Guest70510 has quit [Ping timeout: 276 seconds]
joenas[m] has joined #ruby
aagdbl[m] has quit [Ping timeout: 276 seconds]
Marc- has quit [Ping timeout: 276 seconds]
aagdbl[m] has joined #ruby
RealMarc has joined #ruby
alamar has joined #ruby
alamar is now known as Guest35874
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
benjen has joined #ruby
milardovich has quit [Remote host closed the connection]
hoangtg has joined #ruby
milardovich has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
milardovich has quit [Ping timeout: 276 seconds]
shortdudey123 has joined #ruby
kculpis has quit [Quit: Leaving]
kculpis has joined #ruby
Puffball_ has joined #ruby
Puffball has quit [Ping timeout: 255 seconds]
oleo has joined #ruby
milardovich has joined #ruby
kn-928 has quit [Quit: WeeChat 1.9]
nobitanobi has quit [Remote host closed the connection]
funkycrunchy has quit [Ping timeout: 248 seconds]
naprimer2 has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 268 seconds]
nacsurte has joined #ruby
naprimer has quit [Ping timeout: 276 seconds]
phate408 has quit [Read error: Connection reset by peer]
phate408 has joined #ruby
aupadhye has joined #ruby
watzon has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
runescape07rsps has joined #ruby
<watzon> So weird, I can join #ruby but not #rubyonrails
uZiel has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
Puffball_ has quit [Remote host closed the connection]
worknick has joined #ruby
<worknick> how to connect to Push API in WAMP websocket?
Puffball has joined #ruby
<roboncloud> @watzon i think you need to be identified to join #rubyonrails becos DHH is a troll magnet
funkycrunchy has joined #ruby
wilbert_ has quit [Quit: wilbert_]
<watzon> I am identified though haha. I even re-identified just to make sure
<roboncloud> hum
<roboncloud> what happens when you join..?
<roboncloud> you might have a happier life if you don't join anyway.
<watzon> I just get error `err_needreggednick`, you’re probably right though haha
<roboncloud> it depends what you're interested in but i don't consider the quality of conversation in that channel to be great
<watzon> Chances are I won’t need their help anyway
postmodern has quit [Quit: Leaving]
oleo has quit [Quit: irc client terminated!]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
belmoussaoui has quit [Remote host closed the connection]
Bock has joined #ruby
djbkd has joined #ruby
hahuang65 has joined #ruby
Puffball has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
PaulCape_ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 248 seconds]
dymaxion_ has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
afromankenobi has quit [Remote host closed the connection]
nacsurte has joined #ruby
AxelAlex has joined #ruby
dymaxion_ has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 240 seconds]
<Radar> watzon: according to /whois you're not registered with Nickserv.
<Radar> roboncloud: It's because we used to get a lot of spammers in the channel.
<Radar> watzon: /msg nickserv identify <your password>
nacsurte has quit [Ping timeout: 240 seconds]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
afromankenobi has joined #ruby
Puffball has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
harfangk has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
afromankenobi has quit []
quobo has joined #ruby
worknick has quit [Ping timeout: 248 seconds]
uZiel has quit [Ping timeout: 268 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
uZiel has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
alfiemax has quit [Remote host closed the connection]
Moosashi has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
Moosashi has quit [Client Quit]
djbkd has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
Moosashi has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
claw has quit [Ping timeout: 255 seconds]
claw has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
kies has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Guest46105 has quit []
high_fiver has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
Guest46105 has joined #ruby
Guest46105 has quit [Client Quit]
aglorei1 has quit [Remote host closed the connection]
Silthias has joined #ruby
aglorei1 has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
aglorei1 has quit [Remote host closed the connection]
Guest53 has joined #ruby
aglorei1 has joined #ruby
Silthias1 has quit [Ping timeout: 246 seconds]
nacsurte has joined #ruby
Moosashi has quit [Quit: Moosashi]
nofxxxx has joined #ruby
elcontrastador has joined #ruby
rann has joined #ruby
funkycrunchy has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
carnegie has joined #ruby
funkycrunchy has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
nofxxx has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
alfiemax_ has quit [Read error: Connection reset by peer]
elcontrastador has quit [Quit: Textual IRC Client: www.textualapp.com]
Murda has quit [Quit: Murda]
Guest48111 is now known as Fenhl
frozengeek_ has quit [Quit: frozengeek_]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
alfiemax has quit [Remote host closed the connection]
Silthias1 has joined #ruby
beilabs has joined #ruby
Guest65270 has quit []
Guest65270 has joined #ruby
Guest65270 has quit [Client Quit]
justin_pdx has quit [Quit: justin_pdx]
Silthias has quit [Ping timeout: 246 seconds]
graingert has joined #ruby
conta has joined #ruby
workmad3 has joined #ruby
m27frogy has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
akkad has quit [Quit: Emacs must have died]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
Mortomes|Work has joined #ruby
Joufflu_Fail has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
ta_ has joined #ruby
TomyWork has joined #ruby
cagomez has joined #ruby
twe4ked has quit [Ping timeout: 246 seconds]
akkad has joined #ruby
cagomez has quit [Ping timeout: 276 seconds]
nacsurte has joined #ruby
marchi has joined #ruby
ana_ has joined #ruby
hahuang65 has joined #ruby
nacsurte has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
twe4ked has joined #ruby
bladdezz has quit [Ping timeout: 246 seconds]
TomyWork has quit [Quit: Leaving]
TomyWork has joined #ruby
KeyJoo has joined #ruby
alex`` has joined #ruby
Burgestrand has joined #ruby
cagomez has joined #ruby
alfiemax has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
bladdezz has joined #ruby
Mia has joined #ruby
ams__ has joined #ruby
SteenJobs has joined #ruby
mathys has joined #ruby
aufi has joined #ruby
InfinityFye has joined #ruby
cagomez has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
rgr has joined #ruby
mikecmpbll has joined #ruby
nacsurte has joined #ruby
jaruga has joined #ruby
alfiemax has joined #ruby
Burgestrand has quit [Quit: Closing time!]
kapil___ has joined #ruby
Burgestrand has joined #ruby
tvw has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
Guest53 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 240 seconds]
Hobbyboy has quit [Ping timeout: 255 seconds]
vondruch has quit [Quit: vondruch]
harfangk has quit [Remote host closed the connection]
biberu has joined #ruby
hahuang65 has joined #ruby
djbkd has quit [Remote host closed the connection]
marchi has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 240 seconds]
carnegie has quit [Remote host closed the connection]
marchi has joined #ruby
marchi has quit [Ping timeout: 260 seconds]
huyderman has joined #ruby
_whitelogger has joined #ruby
Beams has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
mtkd has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
cagomez has quit [Ping timeout: 240 seconds]
nacsurte has joined #ruby
astrobunny has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
nacsurte has quit [Ping timeout: 276 seconds]
raynold has quit [Quit: Connection closed for inactivity]
marchi has joined #ruby
cagomez has joined #ruby
marchi has quit [Read error: Connection reset by peer]
marchi has joined #ruby
cagomez has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
lexruee has quit [Remote host closed the connection]
lexruee has joined #ruby
charliesome has joined #ruby
ramfjord has quit [Quit: Lost terminal]
ur5us has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 268 seconds]
uZiel has joined #ruby
lexruee_ has joined #ruby
Guest53 has joined #ruby
rgr_ has joined #ruby
Guest53 has quit [Client Quit]
rgr has quit [Read error: Connection reset by peer]
lexruee has quit [Ping timeout: 240 seconds]
belmoussaoui has joined #ruby
eroux has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
ur5us has joined #ruby
belmoussaoui has quit [Ping timeout: 276 seconds]
cagomez has quit [Ping timeout: 260 seconds]
belmoussaoui has joined #ruby
eroux has quit [Read error: Connection reset by peer]
lexruee__ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
lexruee_ has quit [Ping timeout: 255 seconds]
nacsurte has joined #ruby
sepp2k has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
howdoi has joined #ruby
KeyJoo has quit [Quit: Good luck! Have a nice Day!]
mjolnird has quit [Quit: Leaving]
mjolnird has joined #ruby
umaaji has quit [Quit: Leaving...]
nobitanobi has joined #ruby
hahuang65 has joined #ruby
belmoussaoui has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
nobitanobi has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
nobitanobi has joined #ruby
sleetdrop has joined #ruby
rgr_ has quit [Quit: rgr_]
nobitanobi has quit [Ping timeout: 240 seconds]
NeverTired has quit [Quit: Connection closed for inactivity]
<gr33n7007h> good morning rublings
harfangk has joined #ruby
dymaxion_ has joined #ruby
dymaxion_ has quit [Ping timeout: 240 seconds]
beilabs has quit [Remote host closed the connection]
charliesome has quit [Read error: Connection reset by peer]
apparition has joined #ruby
marchi has quit [Quit: WeeChat 1.9]
charliesome has joined #ruby
frozengeek_ has joined #ruby
yosafbridge has quit [Quit: Leaving]
nacsurte has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
funkycrunchy has quit [Ping timeout: 240 seconds]
m27frogy has joined #ruby
belmoussaoui has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui has joined #ruby
G_ is now known as G
t-recx has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
charliesome_ has joined #ruby
m27frogy has quit [Ping timeout: 240 seconds]
m27frogy has joined #ruby
yosafbridge has joined #ruby
adlerdias has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
charliesome_ has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
charliesome has joined #ruby
tvw has quit [Read error: Connection reset by peer]
ur5us has quit [Remote host closed the connection]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
charliesome has quit [Ping timeout: 255 seconds]
nopolitica has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
charliesome has joined #ruby
opencw has quit [Quit: Leaving]
sagax has quit [Quit: Konversation terminated!]
sagax has joined #ruby
rikai has quit [Quit: No Ping reply in 180 seconds.]
nacsurte has joined #ruby
rikai has joined #ruby
cagomez has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 240 seconds]
Seenox has joined #ruby
charliesome has joined #ruby
chmurifree has quit [Ping timeout: 248 seconds]
guardianx has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
chmurifree has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
xcesariox has joined #ruby
<dminuoso> apeiros: Encoding expert!
_aeris_ has quit [Remote host closed the connection]
aglorei1 has quit [Read error: Connection reset by peer]
uZiel has quit [Read error: Connection reset by peer]
uZiel has joined #ruby
synthroid has joined #ruby
aglorei1 has joined #ruby
<dminuoso> I have a codepoint 0xA7 that is supposed to represent ß - encoding could this possibly be?
<roboncloud> it's easy to be an encoding expert when the alphabet of your native tongue isn't only ascii.
laekur has joined #ruby
laekur has quit [Remote host closed the connection]
<dminuoso> roboncloud: I have tested all ~200 encodings ruby is aware of
_aeris_ has joined #ruby
<dminuoso> None of them knows this to be an ß
<roboncloud> what's your test code look like?
<dminuoso> roboncloud: Encoding.constants.map { |e| begin 0xa7.chr(Encoding.const_get(e)); rescue; end }
bmurt has joined #ruby
uZiel has quit [Remote host closed the connection]
<roboncloud> p Encoding.constants.find { |e|
<roboncloud> }
<roboncloud> end
<roboncloud> 0xa7.chr(Encoding.const_get(e))
<roboncloud> if not Exception === e
<roboncloud> i get :ASCII_8BIT
charliesome has quit [Ping timeout: 240 seconds]
<roboncloud> huh
<roboncloud> p Encoding.constants.map { |e|
<roboncloud> end
<roboncloud> x and e
<roboncloud> x = 0xa7.chr(Encoding.const_get(e)) rescue nil
<roboncloud> if not Exception === e
<roboncloud> }.compact
<dminuoso> roboncloud: That's not enough
<roboncloud> many encodings there..
<dminuoso> There's quite a handful of encodings where that codepoint is valid.
<dminuoso> But none of them represent ß
<dminuoso> The bizarre thing is, macOS Textedit implicitly knows the encoding
<dminuoso> file -I fails however
bruno- has joined #ruby
<roboncloud> yeah.. for 165 of them it's valid.
<dminuoso> roboncloud: now print those ;)
DTZUZO has quit [Ping timeout: 260 seconds]
<roboncloud> cat t.rb
<roboncloud> x = 0xa7.chr(Encoding.const_get(e)) rescue nil
<roboncloud> if not Exception === e
<roboncloud> p Encoding.constants.map { |e|
<roboncloud> # coding: utf-8
<roboncloud> x and e
<roboncloud> end
<roboncloud> }.compact.find {|e|
<roboncloud> 0xa7.chr(Encoding.const_get(e)) == "ß"
<roboncloud> }
<roboncloud> de nada.
<dminuoso> Haha I like that exception handling
lxnr has joined #ruby
charliesome has joined #ruby
<ineb> yeah. that code is truly worth to be posted line by line
lxnr has left #ruby [#ruby]
<dminuoso> roboncloud: Well there is an encoding, TextEdit can handle it/
<dminuoso> But.. I got an idea.
<roboncloud> i thought one of the awesome things about encodings in ruby is suppose to be that it supported all of them
<Papierkorb> roboncloud: It would be really nice if you could use a paste service like https://gist.github.com/ instead of pasting large swaths of code directly into the channel.
<dminuoso> Papierkorb: Dont fix his behavior, fix my encoding!
<roboncloud> yeah. sorry, my irc client usually does it but didn't this time.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb> roboncloud: It hasn't done it either yesterday.
<roboncloud> what did i paste yesterday?
hahuang65 has joined #ruby
<Papierkorb> roboncloud: No idea, can't be bothered to look up tbh. Yesterday chunks of code were posted here all the time, so I simply assumed it was you. Apologies if I'm wrong.
bmurt has joined #ruby
<roboncloud> well, if you have "no idea" then yes, you shouldn't throw accusations around.
<roboncloud> but probably i did, so i will fix the client
DTZUZO has joined #ruby
<dminuoso> roboncloud: also turns out we have Encoding.list :P
<roboncloud> nice
guardianx has quit [Remote host closed the connection]
guardianx has joined #ruby
chouhoulis has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
<dminuoso> roboncloud: THe thing that majorly throws me off is that textedit understands it
<dminuoso> And its not Mac Os Roman
<dminuoso> There's also nothing in extended file attributes
<roboncloud> could try with iconv i guess..
<dminuoso> roboncloud: iconv cant guess, it just converts based on specified encodings
<dminuoso> essentially what we just did with ruby
<dminuoso> though I could probably iterate over all available encodings until I find the one that doesnt mojibake
<roboncloud> yea. worth a shot
harfangk has quit [Remote host closed the connection]
uZiel has joined #ruby
DTZUZO has quit [Ping timeout: 260 seconds]
guardianx has quit []
<gr33n7007h> hmm, that's weird
nacsurte has joined #ruby
<dminuoso> Still no luck. What is going on ?
K3rber0s has joined #ruby
<roboncloud> does textedit display the encoding its using?
K3rber0s has quit [Client Quit]
__Yiota has joined #ruby
mathys has quit [Quit: Leaving]
<dminuoso> No
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> But I found one mistake I did. There's an extended attribute, denoting the encoding as "macintosh;"
nacsurte has quit [Ping timeout: 240 seconds]
<roboncloud> if you paste the char into textedit, save, then read in ruby with: `p File.binread(..)`. what's it look like?
<dminuoso> Yes thats it!
<dminuoso> My iconv trick must have had a bug. I's the standardized macintosh encoding.
cdg has joined #ruby
<roboncloud> ah k
<roboncloud> so what encoding is it?
<dminuoso> macintosh.
<dminuoso> That is an actual character encoding it turns out
<roboncloud> 👏
<dminuoso> The really strange thing though is.
<dminuoso> That code point thing..
<roboncloud> does the ruby method work now?
<roboncloud> without iconv
<dminuoso> roboncloud: ruby does not have that encoding
<roboncloud> ahhh
<roboncloud> bummer =[
kapil___ has joined #ruby
<dminuoso> roboncloud: the rfc says differently though...
<roboncloud> ah ok, yea prefer not to start my morning with RFCs.
<dminuoso> Oh well that was painful
nopolitica has joined #ruby
ana_ has quit [Quit: Leaving]
charliesome has quit [Ping timeout: 248 seconds]
aufi has quit [Ping timeout: 240 seconds]
ana_ has joined #ruby
charliesome has joined #ruby
bmurt has joined #ruby
Polymorphism has joined #ruby
<Polymorphism> I still love ruby
<Polymorphism> if I need to make something fast or anything involving web its my go-to
<Polymorphism> elegant, beautiful, clean
milardovich has joined #ruby
nacsurte has joined #ruby
DTZUZO has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<roboncloud> most of the time :P
nacsurte has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby
raynold has joined #ruby
milardov_ has joined #ruby
jinie_ has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 260 seconds]
Mon_Ouie has quit [Ping timeout: 255 seconds]
aufi has joined #ruby
Mon_Ouie has joined #ruby
jinie_ has joined #ruby
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 246 seconds]
jphase has joined #ruby
<dminuoso> Polymorphism: I wouldnt go as far as calling it clean
konsolebox has quit [Ping timeout: 246 seconds]
ta_ has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 268 seconds]
charliesome_ has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
InfinityFye has quit [Quit: Leaving]
bmurt has joined #ruby
gnufied has joined #ruby
charliesome has joined #ruby
ana_ has quit [Quit: Leaving]
ana__ has joined #ruby
ana__ has quit [Client Quit]
ana_ has joined #ruby
oleo has joined #ruby
aufi_ has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
ana_ has quit [Remote host closed the connection]
ana_ has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
charliesome_ has joined #ruby
dymaxion_ has joined #ruby
aupadhye has quit [Ping timeout: 276 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MichaelBurge has quit [Read error: Connection reset by peer]
Joufflu_Fail has joined #ruby
MichaelBurge has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dymaxion_ has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
statelesscode has quit [Ping timeout: 240 seconds]
eb0t has joined #ruby
__Yiota has joined #ruby
xzhao has quit [Remote host closed the connection]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
7ITABEAC5 is now known as nug
arne has joined #ruby
<arne> anyone familiar with faye-websocket?
<gr33n7007h> anyone know why `int uuid_generate_time_safe(uuid_t out);` works in C but return -1 with ffi bindings?
howdoi has quit [Quit: Connection closed for inactivity]
<arne> im trying to send a messag eto all websockets, how woulld i do that+
bmurt has joined #ruby
<Papierkorb> arne: you just keep a list of clients around, and send one to #each
NeverTired has joined #ruby
Guest53 has joined #ruby
polishdub has joined #ruby
<Papierkorb> arne: in the simplest case, a @@class_var where each client adds itself to on connect, and removes itself on disconnect. That's quite crude, but for fine for prototyping (or getting started)
<arne> Papierkorb: hmpf, okay
<Papierkorb> arne: For more production-oriented stuff, I commonly have a ClientManager or similar offering a #broadcast
<arne> nah it's just a PoC
<arne> still depressed about the way i have to do this with ruby
<gr33n7007h> disregard what i just said, i didn't read the man page properly
<Papierkorb> arne: "about the way"?
<arne> yes, this is not very clean
<herwin> which is often true for PoCs
<Papierkorb> ^
dionysus69 has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
chouhoul_ has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
carnegie has joined #ruby
nopolitica has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
Mon_Ouie has quit [Ping timeout: 276 seconds]
Joufflu_Fail has quit [Ping timeout: 240 seconds]
carnegie has quit [Ping timeout: 276 seconds]
Mon_Ouie has joined #ruby
bmurt has joined #ruby
Rapture has joined #ruby
hahuang65 has joined #ruby
nopolitica has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 248 seconds]
Guest53 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has quit [Ping timeout: 240 seconds]
brahmana has joined #ruby
bmurt has joined #ruby
goyox86 has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
sleetdrop has quit [Quit: Computer has gone to sleep.]
Caerus has joined #ruby
armando has quit [Ping timeout: 255 seconds]
carnegie has joined #ruby
ana_ has quit [Ping timeout: 255 seconds]
armando has joined #ruby
theunraveler has joined #ruby
carnegie has quit [Ping timeout: 240 seconds]
apparition has quit [Quit: Bye]
nopoliti1 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
bruno- has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
wkoszek has joined #ruby
xall has joined #ruby
charliesome_ has quit [Ping timeout: 240 seconds]
ski7777 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
Guest53 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
charliesome has joined #ruby
nopoliti1 has quit [Quit: WeeChat 1.9]
ecuanaso has joined #ruby
armando has quit [Ping timeout: 240 seconds]
armando has joined #ruby
ltem has joined #ruby
cdg has quit []
ozcanesen has joined #ruby
ozcanesen has quit [Client Quit]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
armando has quit [Ping timeout: 240 seconds]
armando has joined #ruby
cdg has joined #ruby
universa1 has quit [Read error: Connection reset by peer]
universa1 has joined #ruby
cdg has quit [Client Quit]
charliesome has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
ltem has quit [Quit: Leaving]
mikecmpbll has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyLobo has joined #ruby
armando has quit [Quit: No Ping reply in 180 seconds.]
armando has joined #ruby
runescape07rsps has quit [Ping timeout: 248 seconds]
Fin1te has joined #ruby
cagomez has joined #ruby
setuid has joined #ruby
<setuid> Is there a web-based ruby profiler, something like jqplay, for testing conditionals, filters, things like that?
cdg has quit []
<setuid> I'm profiling a conditional change to a stanard if... else... then... test
armando has quit [Ping timeout: 248 seconds]
<havenwood> setuid: It's not web-based but benchmark-ips is a good tool: https://github.com/evanphx/benchmark-ips#readme
<setuid> havenwood: I'll pastebin something, just making sure I've got this syntactically correct:
<havenwood> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
armando has joined #ruby
nacsurte has joined #ruby
<setuid> Does this look right? https://paste.debian.net/hidden/023b9443/
cdg has joined #ruby
BlueDragons has joined #ruby
Guest53 has quit [Quit: Textual IRC Client: www.textualapp.com]
kies has quit [Ping timeout: 276 seconds]
cdg has quit [Remote host closed the connection]
BlueDragons has quit [Client Quit]
brent__ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has joined #ruby
armando has quit [Ping timeout: 240 seconds]
AxelAlex has quit [Quit: AxelAlex]
herbmillerjr has quit [Quit: Konversation terminated!]
bmurt has joined #ruby
cdg has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
__Yiota has joined #ruby
cdg has quit [Client Quit]
<setuid> havenwood: Reasonable replacement?
nobitanobi has quit [Remote host closed the connection]
carnegie has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
cadillac_ has joined #ruby
<havenwood> setuid: No, avoid ternaries like that.
<havenwood> setuid: default['foo']['bar']['blort'] = if ...
<matthewd> setuid: No, that looks to be neither reasonable nor a replacement. What are you trying to do?
carnegie has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
username has joined #ruby
<havenwood> setuid: Only use ternaries straightforwardly, on one line, when it's quite simple.
<havenwood> setuid: Assign to the result of the conditional rather than inside the conditional when you can.
howdoi has joined #ruby
MrBismuth has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
balazs__ has quit [Quit: Ex-Chat]
balazs has joined #ruby
Xiti has quit [Quit: Xiti]
cdg has joined #ruby
cwonrails has joined #ruby
<setuid> havenwood: So you recommend NOT using a conditional there? Ok.
<havenwood> setuid: An if statement is a conditional, no?
cdg has quit [Remote host closed the connection]
npgm has quit [Quit: Connection closed for inactivity]
<setuid> Well, yes, but not a ternary conditional... I should have clarified
<havenwood> setuid: You could replace that if statement with a case statement or ternary. They're all conditionals.
<setuid> I'll make a PR to the code where this was found, using your suggestion
cdg has joined #ruby
<matthewd> setuid: You still haven't clarified what your goal is. What is your purpose for changing the code at all?
aufi_ has quit [Quit: Leaving]
Xiti has joined #ruby
cwonrails has quit [Remote host closed the connection]
rippa has joined #ruby
wilbert has joined #ruby
<setuid> matthewd: Just trying to clean up the readability and maintainership, I very much prefer to change a line of code in one place, not two. IOW, if 'foo' becomes 'foobar', I have to change it in two places in the current check, vs. havenwood's example, where I change it in one place.
carnegie has joined #ruby
xuanrui has quit [Quit: Ex-Chat]
Moosashi has joined #ruby
herbmillerjr has joined #ruby
Xeago has joined #ruby
beilabs has joined #ruby
justin_pdx has joined #ruby
saltsa has quit [Quit: Reconnecting]
saltsa has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
cdg has quit []
nimzowitsch has joined #ruby
<nimzowitsch> hello all
<nimzowitsch> ip_set: #<Set: {"UNKNOWN"}>
<nimzowitsch> so I have a have an array of ips, which I then turn into a set
<nimzowitsch> and then I iterate over the set and delete duplicates from another array
<nimzowitsch> at the end of the iteration the result is #<Set: {"UNKNOWN"}>
<nimzowitsch> what gives?
<nimzowitsch> I've never seen before..
<nimzowitsch> and could not find anything about it on google
Moosashi has quit [Quit: Moosashi]
eckhardt has joined #ruby
<havenwood> nimzowitsch: Have you been able to create a minimal reproduction example of the issue yet?
<havenwood> nimzowitsch: Or can you show the code that results in it?
<havenwood> >> Set.new << "UNKNOWN"
<ruby[bot]> havenwood: # => uninitialized constant Set (NameError) ...check link for more (https://eval.in/845675)
<havenwood> => #<Set: {"UNKNOWN"}>
<havenwood> nimzowitsch: It looks like you have one element in your set, the string: "UNKNOWN"
aurelien has quit [Changing host]
aurelien has joined #ruby
Beams has quit [Quit: .]
dlitvak has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
conta has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
beilabs has quit [Remote host closed the connection]
uZiel has quit [Remote host closed the connection]
hahuang65 has joined #ruby
goyox86 has quit [Quit: goyox86]
[Butch] has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
uZiel has joined #ruby
Fin1te has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZU has quit [Quit: WeeChat 1.9]
brw_ is now known as brw
SteenJobs has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
moei has quit [Quit: Leaving...]
johnny56 has quit [Ping timeout: 264 seconds]
MrBismuth has joined #ruby
johnny56 has joined #ruby
t-recx has quit [Quit: t-recx]
brahmana has quit [Ping timeout: 260 seconds]
Joufflu_Fail has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dviola has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
conta2 has joined #ruby
Tohuw is now known as Guest68958
Guest68958 has quit [Killed (herbert.freenode.net (Nickname regained by services))]
tohuw_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
jphase has quit [Remote host closed the connection]
bmurt has joined #ruby
jphase has joined #ruby
SeepingN has joined #ruby
uZiel has quit [Ping timeout: 268 seconds]
carnegie has quit [Quit: Leaving...]
theunraveler has quit []
uZiel has joined #ruby
brent__ has quit [Remote host closed the connection]
nopolitica has joined #ruby
brent__ has joined #ruby
xuanrui has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
Fin1te has joined #ruby
cahoots has joined #ruby
perniciouscaffei has joined #ruby
benlieb has joined #ruby
creature has joined #ruby
nimzowitsch has quit [Ping timeout: 260 seconds]
<creature> Hello. I need to generate a lot of unique identifiers. I can do this with a call to `SecureRandom.uuid`, but that "secure" part gives me pause. I'm not worried about the security; speed is more important. Is there a less-secure way to generate UUIDs?
<creature> (I'm guessing that SecureRandom will back onto the system's entropy pool, and could block if I read a lot of data out of that... but I might be out of date with this knowledge.)
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
ski7777 has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
cadillac_ has quit [Read error: Connection reset by peer]
Guest35874 has quit [Ping timeout: 240 seconds]
alamar has joined #ruby
alamar is now known as Guest51933
hanmac has quit [Ping timeout: 246 seconds]
cadillac_ has joined #ruby
ShekharReddy has joined #ruby
Hobbyboy has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
Joufflu_Fail has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
Joufflu_Fail has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kies has joined #ruby
hackeron has quit [Quit: Lost terminal]
hanmac has joined #ruby
dfedde has joined #ruby
dfedde has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
dfedde has joined #ruby
Bock has quit [Ping timeout: 240 seconds]
conta2 has quit [Ping timeout: 246 seconds]
<havenwood> creature: Internally it'll use the nanosecond from the system clock, etc, to seed openssl then: OpenSSL::Random.random_bytes(n)
<havenwood> creature: Benchmark it to see the speed.
quobo has joined #ruby
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
<creature> havenwood: Does OpenSSL use /dev/urandom? Can I rely on that behaviour?
goyox86 has joined #ruby
<creature> My concern is less "Generating a secure random number is going to be too slow", and more along the lines of "If I try to generate a million at once, am I going to inadvertently end up with a million blocking reads on /dev/random?"
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
dfedde has quit [Ping timeout: 240 seconds]
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
SteenJobs has joined #ruby
<roboncloud> see here: https://bugs.ruby-lang.org/issues/9569 for what `random_bytes` may be generated by.
<roboncloud> so may not go to OpenSSL, or /dev/urandom, if OS provides something.
aphelion is now known as aphel
<havenwood> creature: Presuming you have OpenSSL installed?
vedu has left #ruby ["Konversation terminated!"]
Polymorphism has left #ruby ["Leaving"]
Fin1te has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<creature> Presumably!
<roboncloud> is that recent for HEAD?
<havenwood> creature: I'd suggest trying a few million at once. ;-)
<creature> Mmm. :) I was hoping to find a documented "This might not be crytographically secure, but is definitely non-blocking" method though. (As opposed to "reading the code shows Ruby currently reads from urandom, but I can't guarantee that remaining the case in future.")
<creature> Thank you for the help! I think I can deal with the knowledge that it backs onto urandom for now.
<creature> I'm probably being overly cautious.
<roboncloud> this is frustrating, but when people refuse to read the advice, who cares i guess. /dev/urandom is the second preference, openssl is the last, but read the first preference, it is neither of those
<roboncloud> it is a function provided by the OS
<creature> roboncloud: Sorry! I did read the advice, but I guess I missed that nuance to it.
brent__ has quit [Remote host closed the connection]
SuperLag has quit [Quit: Lost terminal]
<roboncloud> if you hit the first, i think it should be fast, especially on OpenBSD where arc4random is available.
brent__ has joined #ruby
SuperLag has joined #ruby
tvw has joined #ruby
Dimik has joined #ruby
ltem has joined #ruby
moei has joined #ruby
<uZiel> where can I find documentation of TCPSocket methods?
<roboncloud> rubydoc.info
DTZUZO has joined #ruby
<uZiel> that has only a few methods while TCPSocket_Object.methdos lists a lot more
<uZiel> I am not sure what is the difference bw write, printf, print, putc, puts, syswrite etc.. where to find documentation for these?
SteenJobs has quit [Quit: SteenJobs]
adlerdias has left #ruby [#ruby]
<roboncloud> http://www.rubydoc.info/stdlib/socket/TCPSocket - it inherits from "IPSocket", so you can check the docs there, and anything else in its inheritance chain, but `.methods()` includes everything it responds to from all ancestors afaik, so it's not a good gauge.
<roboncloud> sock.method(:printf).owner will tell you what module/class it resolves to
jaequery has joined #ruby
setuid has left #ruby [#ruby]
justin_pdx has quit [Quit: justin_pdx]
tvw has quit [*.net *.split]
hanmac has quit [*.net *.split]
cadillac_ has quit [*.net *.split]
perniciouscaffei has quit [*.net *.split]
jphase has quit [*.net *.split]
MrBismuth has quit [*.net *.split]
dlitvak has quit [*.net *.split]
Xeago has quit [*.net *.split]
wilbert has quit [*.net *.split]
Xiti has quit [*.net *.split]
howdoi has quit [*.net *.split]
Caerus has quit [*.net *.split]
ResidentBiscuit has quit [*.net *.split]
chouhoul_ has quit [*.net *.split]
eb0t has quit [*.net *.split]
MichaelBurge has quit [*.net *.split]
gnufied has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
synthroid has quit [*.net *.split]
Seenox has quit [*.net *.split]
sagax has quit [*.net *.split]
m27frogy has quit [*.net *.split]
djbkd has quit [*.net *.split]
claw has quit [*.net *.split]
PaulCapestany has quit [*.net *.split]
phate408 has quit [*.net *.split]
creeg has quit [*.net *.split]
creature has quit [*.net *.split]
jtperreault has quit [*.net *.split]
MichaelBurge has joined #ruby
creature has joined #ruby
creature has joined #ruby
creature has quit [Changing host]
Xeago has joined #ruby
Caerus has joined #ruby
Xiti has joined #ruby
Seenox has joined #ruby
synthroid has joined #ruby
claw has joined #ruby
gnufied has joined #ruby
cadillac_ has joined #ruby
jphase has joined #ruby
tvw has joined #ruby
chouhoulis has joined #ruby
phate408 has joined #ruby
jtperreault has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Caerus is now known as Guest80368
m27frogy has joined #ruby
djbkd has joined #ruby
redondos has joined #ruby
dlitvak has joined #ruby
howdoi has joined #ruby
MrBismuth has joined #ruby
hanmac has joined #ruby
creeg has joined #ruby
goyox86 has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
eb0t has joined #ruby
theta8 has joined #ruby
PaulCapestany has joined #ruby
<cjohnson> is foo(&:bar) the same as foo() { |x| x.bar } ?
bokayio has quit [Ping timeout: 240 seconds]
<Papierkorb> cjohnson: yes
<havenwood> cjohnson: A bit faster, but yes.
<cjohnson> Awesome thanks
benjen has quit [Ping timeout: 260 seconds]
jinie has quit [Ping timeout: 260 seconds]
S007 has quit [Ping timeout: 246 seconds]
<cjohnson> Is it just the & that does that?
<havenwood> cjohnson: The `&` is sugar that calls #to_proc on the `:bar` symbol.
mtkd has quit [Ping timeout: 260 seconds]
<havenwood> cjohnson: And passes the result as the block.
<cjohnson> Ahhhh nice
<uZiel> roboncloud: thanks
jinie has joined #ruby
benjen has joined #ruby
bokayio has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
wilbert has joined #ruby
<cahoots> hi, i see that gems like https://rubygems.org/gems/method_source/versions/0.8.2 don't have any license. does that mean that you can't even download them, because they're protected by copyright law?
FernandoBasso has joined #ruby
Guest80368 has quit [Quit: Leaving]
dionysus69 has joined #ruby
Guest80368 has joined #ruby
S007 has joined #ruby
ur5us has joined #ruby
mikecmpbll has joined #ruby
<havenwood> cahoots: That gem is licensed MIT.
<havenwood> cahoots: It's just missing from the gemspec.
drcode has quit [Read error: Connection reset by peer]
Guest80368 is now known as Caerus
username has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
<havenwood> cahoots: The author's implicit copyright doesn't prevent you from downloading work they've publicly posted.
ur5us has quit [Ping timeout: 276 seconds]
<matthewd> Indeed, that logic would make it rather hard to browse the web
Fin1te has joined #ruby
sagax has joined #ruby
dstrunk has joined #ruby
<roboncloud> more likely you'll have issues with GPL software on rubygems than any 'proprietary' licensing issues.
ResidentBiscuit has joined #ruby
mars777 has joined #ruby
mars777 has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
hutch34 has joined #ruby
WeiJunLi has joined #ruby
nostalgiccloud has joined #ruby
gusrub has joined #ruby
inoperable has joined #ruby
eckhardt has joined #ruby
SteenJobs_ has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.8]
jphase has quit [Remote host closed the connection]
Caerus has quit [Quit: Leaving]
skweek has quit [Ping timeout: 260 seconds]
jaruga has quit [Quit: jaruga]
SteenJobs_ has quit [Ping timeout: 240 seconds]
eroux has joined #ruby
weaksauce has joined #ruby
jphase has joined #ruby
<dviola> roboncloud: how so?
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dviola> roboncloud: you mean like in the case of using a GPL library in a proprietary codebase and distributing it?
<roboncloud> yea
<roboncloud> for web software i guess it doesn't matter
Guest85042 has joined #ruby
SteenJobs_ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
<roboncloud> i think you're also obliged to share any improvements you make to GPL code. it's the most complicated and restrictive of open source licenses i've come across, and proprietary licenses generally aren't a thing on rubygems. maybe very rare cases.
jphase has quit [Ping timeout: 246 seconds]
<dviola> that's because it wasn't created with "open source" in mind, but it was written as a free software license, different terms for different meanings
SteenJobs_ has quit [Ping timeout: 276 seconds]
Rapture has joined #ruby
<cahoots> havenwood, ah i see, thanks
SteenJobs_ has joined #ruby
<cahoots> can you believe anyone uses gpl?
dfedde has joined #ruby
<roboncloud> i avoid it if i can.
<Papierkorb> dviola: Well of course, Free Software isn't "Open Source" :)
<eam> you're not obligated to share improvements to gpl code, but you are obligated to provide the source code to anyone you distribute it to
<eam> it's no more restrictive than any other commercial license
<matthewd> eam: Except when it's applied to a library
<eam> nope
<roboncloud> i think it's less restrictive cos at least you can look at the source and modify it, but in the realm of open source licenses it's more annoying than useful.
<dviola> the GPL encourages contributions as it is a strong copyleft license, whereas the other licenses have weak copyleft or none at all
<eam> even with libraries, the GPL is strictly more permissive than the default controls provided by copyright -- it must be, because it leverages copyright
<Papierkorb> imho, LGPL for libs is quite reasonable
<eam> often people freak out because "the GPL is viral" or whatever, but they forget that it's actually copyright itself which behaves that way
<matthewd> eam: You said "any other commercial license", not "unlicensed copyright"
<roboncloud> dviola a lot of that requires buying into stallmans world view.
dionysus69 has quit [Ping timeout: 240 seconds]
<eam> matthewd: or unlicensed copyright
<eam> anything the GPL prohibits, unlicensed use also prohibits
<eam> it's a strict subset
<dviola> roboncloud: personally I think his arguments are rational and make sense, proprietary software is a bad thing
<matthewd> Any standard commercial license for a software library will [in general] permit works using said library to be distributed without their source
<eam> it has to be, because it derives its authority *from* copyright
<eam> matthewd: nah, plenty of my licenses don't permit me to distribute at all - only use
SteenJobs_ has quit [Ping timeout: 276 seconds]
Rapture has quit [Ping timeout: 260 seconds]
<matthewd> You said "any other commercial license". Not "copyright" (which yes, is obviously more restrictive by default), and not "plenty of my licenses".
workmad3 has quit [Ping timeout: 246 seconds]
<roboncloud> dviola, i'm not arguing for closed source, but i'm not arguing for a license every venture i make, commercial or not, has to be made open source. GPL is fine but if you want the most freedom, to reuse it in commercial setting or not, best to avoid GPL if you can, and i only said it's more troublesome other licenses in context of rubygems.
wilbert_ has joined #ruby
<dviola> roboncloud: I disagree, there is no reason to fear the GPL unless you want to enslave your users into using proprietary stuff
postmodern has joined #ruby
<roboncloud> ?
<roboncloud> i just want to offer users fun software
<roboncloud> that's useful and high quality
<roboncloud> im not enslaving them and tbh it seems kinda crazy to think that way. there's already a balance that prevents closed source running rampant.
<matthewd> eam: To be clear, I'm not arguing a "GPL is bad because it's viral" position; I'm arguing "GPL is not strictly as/more permissive than 'any other commercial license'"
jphase has joined #ruby
wilbert has quit [Ping timeout: 240 seconds]
ams__ has quit [Quit: Connection closed for inactivity]
FernandoBasso has quit [Ping timeout: 255 seconds]
Fin1te has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Guest85042 is now known as lxsameer
lxsameer has quit [Changing host]
lxsameer has joined #ruby
guacamole has joined #ruby
nostalgiccloud has quit [Read error: Connection reset by peer]
<cahoots> let's say i have a gem with a dependency with a version like "~> 1.1", and i want to restrict it to using a specific version, say, 1.1.1. how can i do this?
<roboncloud> "=1.1.1"
<cahoots> roboncloud, so would i add that i want the dependency explicitly and give it a specific version in the same file as i specify the gem with that dependency?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
username has joined #ruby
<dviola> roboncloud: freedom and rights are not crazy things at all
<roboncloud> Gem::Specification.new { |s| s.add_runtime_dependency "mygem", "=1.1.1" }, maybe just "1.1.1" works. not sure where i'm getting "=1.1.1" from.
SteenJobs_ has joined #ruby
nostalgiccloud has joined #ruby
<cahoots> hopefully there's an easier way than doing real code
<roboncloud> @dviola yeah, sure, but i think stallman is just another side of an extreme solution to the problem. open source & business should be able to integrate and work well together, but GPL makes that more diffilcult, other open source licenses are preferable if you want to make money to actually survive in life, before you can worry about the dreamy ideals of mr stallman.
<cahoots> i was thinking i could do it in the dsl of a Gemfile
SteenJobs_ has quit [Ping timeout: 240 seconds]
nostalgiccloud has quit [Read error: Connection reset by peer]
FernandoBasso has joined #ruby
AnoHito_ has joined #ruby
<roboncloud> stallman basically never left university, don't forget that. he's had a lot of time dream of an ideal world while not worrying about how to pay his rent. his contribution is still very valuable, but not practical as the ultimate solution.
<dviola> roboncloud: I don't see it as extreme at all, if anything, his arguments are rational and makes tons of sense, if you read their website you'll see that they are not against businesses or selling software, their whole point is about what your end users *receive* -- do they receive something they can change and fix themselves or share it with others?
goyox86 has joined #ruby
<dviola> that's the whole point of the GPL license
<matthewd> cahoots: Yes, you can just specify your own more specific dependency in your Gemfile... though one might wonder why you would want to.
goyox86 has left #ruby [#ruby]
<dviola> I understand the GPL will conflict with some people's desire to profit though by limiting what users can and cannot do (removing their freedom/rights)
<roboncloud> i don't think it's practical in the real world, but if he wins and it becomes the main model for software, great, because it would be better.
AnoHito has quit [Ping timeout: 240 seconds]
goyox86_ has joined #ruby
SteenJobs_ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
ecuanaso has joined #ruby
sepp2k has quit [Quit: Leaving.]
nostalgiccloud has joined #ruby
goyox86_ has quit [Ping timeout: 260 seconds]
SteenJobs_ has quit [Ping timeout: 255 seconds]
nostalgiccloud has quit [Read error: Connection reset by peer]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dviola> roboncloud: there was a discussion about this on HN just a couple of days ago: https://news.ycombinator.com/item?id=14974563
nacsurte has quit [Ping timeout: 240 seconds]
<cahoots> matthewd, just keeping versions constant because our legal team requires all open-source stuff to be approved by them. so if i leave the version open-ended, technically they could release a new version with a different license
<matthewd> cahoots: Gemfile.lock is probably sufficient for that
nacsurte has joined #ruby
<cahoots> the way i'm specifying the dependency version is by just listing out that dependency as a separate gem, and it seems to work. is there a better way?
<cahoots> so i should edit the Gemfile.lock with s/~> /=/ ?
<matthewd> It is, by definition, a list of exact versions of every package in use
<matthewd> No, you don't need to edit anything
<cahoots> the issue is that ~> doesn't restrict it to a single version
<roboncloud> @dviola yeah stallman is an inspiration.
<matthewd> List your dependencies with sensible range selectors in Gemfile, then use Gemfile.lock as the list of exact versions in use
<roboncloud> but when you cross into commercial software, "here's my product, go rebrand it in china, and resell it in hong kong, for free!" doesn't work.
<cahoots> even when i list out my dependencies in the Gemfile, the Gemfile.lock still shows "~>". but in practice it seems to download the gem i want
cdg_ has joined #ruby
cdg_ has quit [Client Quit]
<matthewd> cahoots: The top level under specs: lists all the gems, with the exact version in use. Nested underneath each of those is a copy of that version's stated dependencies.
alfiemax has quit [Remote host closed the connection]
<cahoots> matthewd, it lists the exact version of the gem, but not the exact version of its dependencies necessarily
<matthewd> So yes, pry is happy with any coderay ~> 1.1.0, but you're currently using exactly coderay (1.1.1)
<matthewd> Yes, it does
<matthewd> Clean out your Gemfile to just list your top-level deps (so no mention of coderay), then bundle to regenerate the lockfile
<matthewd> It'll disappear from the DEPENDENCIES section, but under specs: you'll still see "coderay (1.1.1)"
cdg_ has joined #ruby
<matthewd> This is exactly what the lockfile is for: reproducible deployments of a well-defined set of package versions
nacsurte has quit [Ping timeout: 246 seconds]
ecuanaso has joined #ruby
dviola is now known as Guest51898
dviola has joined #ruby
Guest51898 has quit [Ping timeout: 246 seconds]
<dviola> roboncloud: people have found other ways to still make a profit while working on free software, both things are entirely compatible and were never against each other
synthroid has quit [Remote host closed the connection]
nacsurte has joined #ruby
<dviola> roboncloud: see all those developers earning money with patreon or Red Hat
<matthewd> roboncloud: dviola: I think it's time for this conversation to head to #ruby-offtopic
<dviola> matthewd: ok, agreed
<roboncloud> "other ways" makes an already difficult venture even more difficult.
cdg_ has quit [Remote host closed the connection]
ShekharReddy has quit [Quit: Connection closed for inactivity]
skweek has joined #ruby
cdg has joined #ruby
minimalism has joined #ruby
cdg_ has joined #ruby
cdg__ has joined #ruby
cdg has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
cdg_ has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
tacotime has quit [Ping timeout: 240 seconds]
cahoots has quit [Ping timeout: 260 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FernandoBasso has quit [Ping timeout: 255 seconds]
jaequery has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cahoots has joined #ruby
alfiemax has quit [Remote host closed the connection]
cdg__ has quit []
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg_ has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
SuperTaz has quit [Ping timeout: 240 seconds]
Azure has quit [Quit: Oops.]
FernandoBasso has joined #ruby
wilbert_ has quit [Ping timeout: 276 seconds]
FernandoBasso has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
jaequery has quit [Client Quit]
Azure has joined #ruby
ldnunes has quit [Quit: Leaving]
FastJack has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
Sembei has joined #ruby
Fin1te has joined #ruby
Guest3423 has quit [Ping timeout: 240 seconds]
ltem has quit [Quit: Leaving]
TomyLobo has quit [Read error: Connection reset by peer]
dfedde has quit [Read error: Connection reset by peer]
Tharbakim has quit [Read error: Connection reset by peer]
high_fiver has quit [Ping timeout: 246 seconds]
Tharbakim has joined #ruby
Tharbakim has joined #ruby
Tharbakim has quit [Changing host]
workmad3 has joined #ruby
kn-928 has joined #ruby
gusrub has quit [Remote host closed the connection]
sinequanon has joined #ruby
alfiemax has joined #ruby
Fin1te has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
sinequanon has quit [Client Quit]
slayman has joined #ruby
alfiemax has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
nacsurte has quit [Ping timeout: 248 seconds]
slayman has quit [Quit: Leaving]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
m27frogy has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Azure has joined #ruby
seitensei has quit [Ping timeout: 240 seconds]
linduxed has quit [Ping timeout: 246 seconds]
SpComb has quit [Ping timeout: 246 seconds]
alfiemax has quit [Remote host closed the connection]
runescape07rsps has joined #ruby
arthurnn has quit [Ping timeout: 246 seconds]
abort has quit [Ping timeout: 240 seconds]
Guest76516 has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
Murda has joined #ruby
abort has joined #ruby
SpComb has joined #ruby
seitensei has joined #ruby
alfiemax has quit [Remote host closed the connection]
gusrub has joined #ruby
linduxed has joined #ruby
arthurnn has joined #ruby
alfiemax has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
jinie_ has quit [Read error: Connection reset by peer]
Map has joined #ruby
Map is now known as Guest82777
alfiemax has quit [Remote host closed the connection]
Murda has quit [Quit: Murda]
mikecmpbll has quit [Quit: inabit. zz.]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
jinie_ has joined #ruby
alfiemax has joined #ruby
cahoots has joined #ruby
alex`` has quit [Ping timeout: 246 seconds]
t-recx has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
dogman has joined #ruby
alfiemax has quit [Remote host closed the connection]
spheric has quit [Ping timeout: 276 seconds]
<dogman> hello everyone
alfiemax has joined #ruby
<dogman> im just begining to learn ruby, and was wondering if i can get some help
runescape07rsps has quit [Quit: Leaving]
alfiemax has quit [Remote host closed the connection]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
<dogman> i just wrote a very basic HTTP server and based off the book im using they recommend to use the TRAP method. I couldnt really find anything online on what this method does. i understand its a signal but from where is it expectig a signal?
huyderman has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
cdg_ has quit []
elnner has joined #ruby
<Radar> dogman: do you have some example code for this trap method?
<dogman> yes on second
justinmcp_ has quit [Quit: No Ping reply in 180 seconds.]
<dogman> server = WEBrick::HTTPServer.new(:Port => 1234)
<dogman> trap('INT'){server.shutdown}
<dogman> server.mount '/',Myservlet
<dogman> server.start
alfiemax has quit [Remote host closed the connection]
justinmcp has joined #ruby
alfiemax has joined #ruby
aglorei1 has quit [Ping timeout: 268 seconds]
<Radar> That looks to be calling the Kernel#trap method. It will catch Ctrl+C or interrupt signals sent to your process and gracefully shut down your server.
<Radar> Try commenting out that line, running the program and then hitting Ctrl+C. Look at how the behaviour differs.
alfiemax has quit [Remote host closed the connection]
huyderman has joined #ruby
AndBobsYourUncle has joined #ruby
nacsurte has joined #ruby
aglorei1 has joined #ruby
<roboncloud> 💪 webrick
<dogman> Radar: ahh ok i see now. thank you. so 'INT' is interpreted by the kernel then. would i be able to find different possible params to the method, or is it kernel specific?
carnegie has joined #ruby
<Radar> >> Signal.list
<ruby[bot]> Radar: # => {"EXIT"=>0, "HUP"=>1, "INT"=>2, "QUIT"=>3, "ILL"=>4, "TRAP"=>5, "ABRT"=>6, "IOT"=>6, "FPE"=>8, "KILL ...check link for more (https://eval.in/845698)
<Radar> dogman: depends on your operating system too
<Radar> Signal.list in your irb console might return a different list to that one.
alfiemax has joined #ruby
<dogman> thats great thank you again...and yeah i see the list
xuanrui has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 268 seconds]
dogman has quit [Quit: leaving]
WeiJunLi has quit [Remote host closed the connection]
ur5us has quit []
nadir has quit [Quit: Connection closed for inactivity]
hahuang65 has joined #ruby
nostalgiccloud has joined #ruby
jphase has quit [Remote host closed the connection]
ur5us has joined #ruby
jphase has joined #ruby
biberu has quit []
m27frogy has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
jphase has quit [Remote host closed the connection]
ecuanaso has joined #ruby
jphase has joined #ruby
<zenspider> also `kill -l`
m27frogy has quit [Ping timeout: 240 seconds]
m27frogy has joined #ruby
guacamole has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
SeepingN has quit [Ping timeout: 255 seconds]
<Cyrus> So a common pattern in my code is to define an empty array before iterating through an Enumerable and then appending the result of a method called from within the Enumerable's block into the array. I feel like maybe there's a better more Rubyesque way to handle this common need/pattern?
<Papierkorb> Cyrus: `Enumerable#map`
<Papierkorb> >> [2,3,4].map{|x| x ** 2}
<ruby[bot]> Papierkorb: # => [4, 9, 16] (https://eval.in/845703)
<Cyrus> Hrm, yeah, I suppose that would work.
<Cyrus> Thanks!
alfiemax has joined #ruby
tvw has quit [Remote host closed the connection]
<elomatreb> I know rspec is a little unpopular here, but I'll ask anyway: Does anyone know a way to group examples (and have before/after and subject) without having to give that grouping a name (like context does)?
<Papierkorb> elomatreb: isn't the context name optional?
alfiemax has quit [Ping timeout: 240 seconds]
<elomatreb> ...
<elomatreb> It is, thank you
bruno- has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 240 seconds]
username has quit [Ping timeout: 246 seconds]