baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
the_drow has quit [Ping timeout: 272 seconds]
LoneHermit has quit [Ping timeout: 264 seconds]
prawnzy has quit [Read error: Connection reset by peer]
prawnzy has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
the_drow has joined #ruby
threh has quit [Ping timeout: 244 seconds]
horst has quit [Quit: horst]
the_drow has quit [Client Quit]
horst has joined #ruby
nando293921 has joined #ruby
<croberts> nm figured it out
<croberts> after playing around with the single/double quotes I got it to work
roflmyeggo has joined #ruby
getxsick has joined #ruby
<getxsick> it's weird but i can't find newer documentation for Minitest than 2.0, where to find it?
tubuliferous has quit [Ping timeout: 260 seconds]
<getxsick> basically the library its not included into stdlib 2.3 doc...
roflmyeggo has quit [Ping timeout: 265 seconds]
tubuliferous has joined #ruby
jshjsh has joined #ruby
jshjsh is now known as JoshS
marr has quit [Ping timeout: 272 seconds]
jeffreylevesque has quit [Ping timeout: 252 seconds]
akkad has joined #ruby
bob434 has joined #ruby
ResidentBiscuit has quit [Ping timeout: 272 seconds]
ashZ has quit [Ping timeout: 265 seconds]
chrisseaton has quit []
threh has joined #ruby
fullofcaffeine has joined #ruby
chrisseaton has joined #ruby
xemehc has joined #ruby
rsampaio_ has quit [Ping timeout: 265 seconds]
Rickmasta has joined #ruby
xemehc has quit [Client Quit]
jhack has joined #ruby
<getxsick> basically the library its not included into stdlib 2.3 doc...
<getxsick> ops
shinnya has quit [Ping timeout: 240 seconds]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
prawnzy has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
threh has quit [Ping timeout: 244 seconds]
ResidentBiscuit has quit [Ping timeout: 255 seconds]
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sleepee has joined #ruby
sleepee has quit [Max SendQ exceeded]
codelogix has joined #ruby
tyang has joined #ruby
salut has joined #ruby
codelogix has quit [Ping timeout: 265 seconds]
P1ro has quit [Remote host closed the connection]
tyang has quit [Read error: Connection reset by peer]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgt1 has joined #ruby
dtscode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
salut has quit [Ping timeout: 272 seconds]
frozengeek has quit [Ping timeout: 240 seconds]
jgt has quit [Ping timeout: 244 seconds]
leea has joined #ruby
nankyokusei has joined #ruby
tristanp has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Madplatypus has joined #ruby
JakFrist[WVU] has joined #ruby
JeanCarloMachado has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
csk has joined #ruby
LoneHerm_ has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
wingwalker has quit [Ping timeout: 272 seconds]
Channel6 has joined #ruby
csk has quit [Quit: ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
wingwalker has joined #ruby
PhishPhood has quit [Ping timeout: 250 seconds]
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby
NetSage has quit [Remote host closed the connection]
dtscode has joined #ruby
wisn has quit [Ping timeout: 244 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby
P1ro has joined #ruby
crdpink has joined #ruby
crdpink has quit [Remote host closed the connection]
crdpink has joined #ruby
<zenspider> getxsick: minitest is packaged as a real gem in newer ruby's, not a fake gem that is copied into /lib. But you should still get rdoc generated just fine when it is installed unless you're using something hacky/bad like rvm
<zenspider> you can try `gem rdoc minitest` to fix
<zenspider> and the latest doco is always published to http://docs.seattlerb.org
JeanCarloMachado has quit [Ping timeout: 272 seconds]
pratch has joined #ruby
l4v2 has joined #ruby
threh has joined #ruby
<zenspider> drbrain: halp. I probably asked you this exact same question this time last year... my cert expired on minitest. What do I need to do besides bump version and repackage? `gem cert --help` is not helpful in knowing the steps
LuckyABA has joined #ruby
chouhoulis has quit [Remote host closed the connection]
rsampaio_ has joined #ruby
<getxsick> zenspider: well, i'm new to ruby, so google doesn't help when you don't know some stuff and presents mainly results from ruby-docs
chouhoulis has joined #ruby
r3vDev has joined #ruby
inteq has joined #ruby
<zenspider> well... if you look up on rubygems.org, they have a sidebar with a doco link: http://www.rubydoc.info/gems/minitest/5.9.0
<zenspider> that should always work
<zenspider> but the doco on our website is prettier. :)
PhishPhood has joined #ruby
tristanp has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 244 seconds]
ur5us_ has quit [Remote host closed the connection]
<zenspider> arg. I need someone who knows ssl cmdline stuffs
ur5us has joined #ruby
<zenspider> how do I debug/list a pub/private key file to see the expiration date n' such?
roflmyeggo has joined #ruby
threh has quit [Ping timeout: 244 seconds]
<getxsick> zenspider: thx for the information
optiz0r has quit [Ping timeout: 240 seconds]
jhack0 has joined #ruby
jhack has quit [Ping timeout: 265 seconds]
jaguarmagenta has joined #ruby
<zenspider> ugh. I'm so lost with security shit. *eyesglazeover*
djbkd has quit [Quit: My people need me...]
<matthewd> zenspider: `openssl x509 -in filename.pem -text`, I think?
ur5us has quit [Ping timeout: 265 seconds]
arescorpio has joined #ruby
optiz0r has joined #ruby
<zenspider> hah. just found that. :P
<zenspider> I _think_ I did everything I need to do... just need to release a new gem. Even tho nothing really changed in it other than the signing
a7d7p has quit [Quit: a7d7p]
postmodern has joined #ruby
inteq has quit []
inteq has joined #ruby
jaguarmagenta has quit [Ping timeout: 272 seconds]
Jardayn has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
<getxsick> zenspider: how can i check what version of Minitest is imported?
<zenspider> getxsick: gem list -d minitest
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
jblack_ has quit [Quit: Lost terminal]
zenspider has left #ruby ["ERC (IRC client for Emacs 25.1.1)"]
ichkv has joined #ruby
zenspider has joined #ruby
fullofcaffeine has quit [Ping timeout: 255 seconds]
fullofcaffeine has joined #ruby
leea has joined #ruby
threh has joined #ruby
getxsick has quit [Quit: leaving]
yeticry_ has quit [Ping timeout: 244 seconds]
AlexxNica has joined #ruby
yeticry has joined #ruby
skweek has joined #ruby
djbkd has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
sjums has quit [Quit: Connection reset by beer]
fullofcaffeine has joined #ruby
sjums has joined #ruby
yosafbridge has quit [Quit: Leaving]
jgpawletko has joined #ruby
m4rCsi has quit [Quit: No Ping reply in 180 seconds.]
m4rCsi has joined #ruby
yosafbridge has joined #ruby
fullofcaffeine has quit [Ping timeout: 244 seconds]
prawnzy has joined #ruby
marchelzo has quit [Ping timeout: 265 seconds]
skweek has quit [Ping timeout: 260 seconds]
Axy has joined #ruby
prawnzy has quit [Ping timeout: 265 seconds]
Mia has quit [Ping timeout: 264 seconds]
h0ffmann has quit [Quit: Textual IRC Client: www.textualapp.com]
codelogix has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 1.5]
codelogix has quit [Ping timeout: 265 seconds]
redpants has joined #ruby
r3vDev has quit [Ping timeout: 255 seconds]
jaguarmagenta has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
AnoHito_ has joined #ruby
crdpink has quit [Quit: Konversation terminated!]
AnoHito has quit [Ping timeout: 265 seconds]
ichkv has quit [Remote host closed the connection]
inteq has quit []
tristanp has joined #ruby
crdpink has joined #ruby
redpants has quit [Ping timeout: 272 seconds]
nando293921 has quit [Quit: leaving]
nankyokusei has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
eljimmy has joined #ruby
LoneHerm_ has quit [Ping timeout: 265 seconds]
tristanp has quit [Ping timeout: 265 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
crdpink has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
crdpink has joined #ruby
nando293921 has joined #ruby
a7d7p has joined #ruby
Bellthoven has joined #ruby
moneylotion has joined #ruby
keith_ has joined #ruby
threh has quit [Ping timeout: 265 seconds]
armyriad has quit [Ping timeout: 276 seconds]
armyriad has joined #ruby
prawnzy has joined #ruby
harfangk has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
symm- has quit [Ping timeout: 260 seconds]
Rickmasta has joined #ruby
ixti has quit [Quit: WeeChat 1.5]
Azure has quit [Ping timeout: 265 seconds]
braincrash has joined #ruby
A_Drone has joined #ruby
a7d7p has quit [Quit: a7d7p]
threh has joined #ruby
djbkd has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
prawnzy has quit [Remote host closed the connection]
pawnbox has joined #ruby
roamingdog has joined #ruby
salut has joined #ruby
marchelzo has joined #ruby
salut has quit [Ping timeout: 244 seconds]
jgpawletko has quit [Quit: jgpawletko]
tubuliferous has quit [Ping timeout: 244 seconds]
marchelzo has quit [Ping timeout: 252 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
r3vDev has joined #ruby
gix- has quit [Ping timeout: 272 seconds]
eljimmy has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
craigp_ has quit [Ping timeout: 272 seconds]
dminuoso has joined #ruby
pawnbox has quit [Remote host closed the connection]
gix has joined #ruby
Azure has joined #ruby
jaguarmagenta has joined #ruby
h0ffmann has joined #ruby
hahuang62 has quit [Ping timeout: 265 seconds]
Rickmasta has joined #ruby
dtscode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tubuliferous has joined #ruby
jgt1 has quit [Ping timeout: 265 seconds]
jhack0 has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
nofxx has quit [Ping timeout: 252 seconds]
Guest38 has joined #ruby
Azure has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
pawnbox has quit [Remote host closed the connection]
LuckyABA has joined #ruby
threh has quit [Ping timeout: 264 seconds]
eprasad has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bellthoven has quit []
tristanp has joined #ruby
beauby has quit [Read error: Connection reset by peer]
crdpink_ has joined #ruby
dminuoso has quit [Ping timeout: 265 seconds]
AlexxNic_ has joined #ruby
fusmu has joined #ruby
prawnzy has joined #ruby
A_Drone has quit [Remote host closed the connection]
AlexxNica has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
beauby has joined #ruby
crdpink has quit [Ping timeout: 255 seconds]
fullofcaffeine has joined #ruby
pawnbox has quit [Remote host closed the connection]
eljimmy has quit [Quit: This computer has gone to sleep]
ponga has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
roflmyeggo has quit [Ping timeout: 255 seconds]
arescorpio has quit [Quit: Leaving.]
Rickmasta has joined #ruby
fullofcaffeine has quit [Ping timeout: 265 seconds]
fullofcaffeine has joined #ruby
eizua has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
jtzero has quit [Ping timeout: 252 seconds]
Dimik has joined #ruby
SteenJobs has joined #ruby
fullofcaffeine has quit [Ping timeout: 265 seconds]
Channel6 has quit [Quit: Leaving]
LoneHermit has joined #ruby
marchelzo has joined #ruby
SteenJobs has quit [Client Quit]
sdothum has quit [Quit: ZNC 1.6.3 - http://znc.in]
LoneHermit has quit [Remote host closed the connection]
marchelzo has quit [Ping timeout: 255 seconds]
ajaiswal_ is now known as ajaiswal
ARCADIVS has joined #ruby
conta has joined #ruby
AndyBotwin has joined #ruby
djbkd has quit [Quit: My people need me...]
MrBusiness2 has joined #ruby
astrobunny has joined #ruby
beauby has quit [Ping timeout: 265 seconds]
codelogix has joined #ruby
hahuang62 has joined #ruby
MrBusiness has quit [Ping timeout: 265 seconds]
A_Drone has joined #ruby
fusmu has quit []
tmtwd has quit [Ping timeout: 255 seconds]
codelogix has quit [Ping timeout: 265 seconds]
hahuang62 has quit [Ping timeout: 255 seconds]
hahuang62 has joined #ruby
salut has joined #ruby
webus has joined #ruby
roflmyeggo has joined #ruby
salut has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
roflmyeggo has quit [Ping timeout: 265 seconds]
tenderlove has quit [Read error: Connection reset by peer]
tenderlo_ has joined #ruby
codelogix has joined #ruby
h0ffmann has quit [Quit: h1ph0p1337@hmamail.com hola at me! If u need contact]
r3vDev has quit [Quit: Leaving.]
nankyokusei has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 260 seconds]
codelogix has quit [Ping timeout: 244 seconds]
tmtwd has joined #ruby
yeticry has quit [Ping timeout: 272 seconds]
Immune__ has joined #ruby
yeticry has joined #ruby
hogetaro_ has joined #ruby
jidar_ has joined #ruby
Fetch_ has joined #ruby
diprotic has joined #ruby
aurelien` has joined #ruby
hays_ has joined #ruby
staticfox has quit [Disconnected by services]
staticfox` has joined #ruby
Marsjan has joined #ruby
ereslibre_laptop has joined #ruby
ereslibre_laptop has joined #ruby
ereslibre_laptop has quit [Changing host]
zzak_ has joined #ruby
aalmenar_ has joined #ruby
daemonwrangler_ has joined #ruby
charles81_ has joined #ruby
staticfox` is now known as staticfox
jpinnix________ has joined #ruby
darthvorik_ has joined #ruby
pfg_ has joined #ruby
tubuliferous has quit [Ping timeout: 264 seconds]
Tony-St4rk_ has joined #ruby
ELCALOR_ has joined #ruby
cardoni_ has joined #ruby
digitalfiz_ has joined #ruby
jhill_ has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Canucktux_ has joined #ruby
dukedave_ has joined #ruby
jxf_ has joined #ruby
rikai_ has joined #ruby
rbr has quit [Disconnected by services]
knight_ has joined #ruby
boshhead_ has joined #ruby
justinmcp_ has joined #ruby
Antiarc_ has joined #ruby
rbr has joined #ruby
sylario_ has joined #ruby
jmhmccr_ has joined #ruby
ericwood_ has joined #ruby
saltsa_ has joined #ruby
silverdust has joined #ruby
lianj_ has joined #ruby
connor_g1odwolf has joined #ruby
rflot_ has joined #ruby
bairyn has joined #ruby
peterhu_ has joined #ruby
rubirc_ has joined #ruby
LiquidIn1ect has joined #ruby
miah_ has joined #ruby
strongco1e has joined #ruby
ineb_ has joined #ruby
eam_ has joined #ruby
silverdust is now known as Guest61812
pinky_ has joined #ruby
angseus_ has joined #ruby
djbkd has joined #ruby
evansbee_ has joined #ruby
dagelf has joined #ruby
jericon_ has joined #ruby
trif_ has joined #ruby
raddazong has joined #ruby
chrisarc1nd has joined #ruby
queequeg2 has joined #ruby
philtr_ has joined #ruby
thomas1 has joined #ruby
danst_ has joined #ruby
jackhill_ has joined #ruby
unreal_ has joined #ruby
nexace_ has joined #ruby
matti_ has joined #ruby
VladGh_ has joined #ruby
tsadok has joined #ruby
hinbody_ has joined #ruby
irick_ has joined #ruby
valeri_uF0 has joined #ruby
sami_ has joined #ruby
bw___ has joined #ruby
Ariadeno has joined #ruby
zzxc_ has joined #ruby
fumk has joined #ruby
radic- has joined #ruby
sami_ is now known as Guest5325
jimcroft_ has joined #ruby
jlyndon_ has joined #ruby
aarongodin_ has joined #ruby
bove_ has joined #ruby
manveru_ has joined #ruby
wsmoak_ has joined #ruby
olivierjanss_ has joined #ruby
ghostlight has quit [Ping timeout: 272 seconds]
ramblinpeck_ has joined #ruby
]reed[ has joined #ruby
okdas has joined #ruby
]reed[ has joined #ruby
]reed[ has quit [Changing host]
okdas has joined #ruby
okdas has quit [Changing host]
Evan has joined #ruby
mr_rich102 has joined #ruby
Radar_ has joined #ruby
jasondotstar_ has joined #ruby
adeponte has joined #ruby
marahin_ has joined #ruby
IcyDragon has joined #ruby
lex- has joined #ruby
greenhat has joined #ruby
web_nanners has joined #ruby
ghormoon_ has joined #ruby
Fridtjof has joined #ruby
Morrolan_ has joined #ruby
drale2k_ has joined #ruby
D9_ has joined #ruby
jinie_ has joined #ruby
z3uS| has joined #ruby
Lightsword_ has joined #ruby
dmarr_ has joined #ruby
[spoiler] has joined #ruby
joconcepts has joined #ruby
iNs_ has joined #ruby
n8o- has joined #ruby
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jswe has joined #ruby
matthewd_ has joined #ruby
tekku has joined #ruby
segy_ has joined #ruby
jpterry has joined #ruby
bakingbread has joined #ruby
goezz has joined #ruby
Kruppe has joined #ruby
gsingh93- has joined #ruby
nchambers^ has joined #ruby
wlanboy has joined #ruby
soud_ has joined #ruby
pragmati- has joined #ruby
bogdanteleaga_ has joined #ruby
redondos has joined #ruby
Aria has joined #ruby
IceDragon has quit [Disconnected by services]
Evan is now known as Guest84826
\13k_ has joined #ruby
spacemud_ has joined #ruby
headius_ has joined #ruby
bodie__ has joined #ruby
hfp_ has joined #ruby
IcyDragon is now known as IceDragon
D9_ is now known as Guest87605
Radar has quit [Disconnected by services]
elem has joined #ruby
JoshL_ has joined #ruby
twistedpixels_ has joined #ruby
twistedpixels_ has joined #ruby
rcs_ has joined #ruby
audibleb- has joined #ruby
SirCmpwn_ has joined #ruby
Nilium_ has joined #ruby
saneaxL has joined #ruby
mgorbach_ has joined #ruby
IceDragon is now known as Guest94464
marsjaninzmarsa has quit [*.net *.split]
jackhill has quit [*.net *.split]
danst has quit [*.net *.split]
jinie has quit [*.net *.split]
jhill has quit [*.net *.split]
VladGh has quit [*.net *.split]
hinbody has quit [*.net *.split]
M-mistake has quit [*.net *.split]
joast has quit [*.net *.split]
omninonsense has quit [*.net *.split]
headius has quit [*.net *.split]
nexace has quit [*.net *.split]
joconcepts_ has quit [*.net *.split]
hogetaro has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
cardoni has quit [*.net *.split]
giraffe_ has quit [*.net *.split]
olivierjanss has quit [*.net *.split]
bove has quit [*.net *.split]
Iacobus has quit [*.net *.split]
aarongodin has quit [*.net *.split]
pfg has quit [*.net *.split]
pinky has quit [*.net *.split]
Tony-St4rk has quit [*.net *.split]
ELCALOR has quit [*.net *.split]
gsingh93 has quit [*.net *.split]
jxf has quit [*.net *.split]
wsmoak has quit [*.net *.split]
digitalfiz has quit [*.net *.split]
jpinnix_______ has quit [*.net *.split]
ramblinpeck has quit [*.net *.split]
marienz has quit [*.net *.split]
jimcroft has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
sylario has quit [*.net *.split]
arthurnn has quit [*.net *.split]
[reed] has quit [*.net *.split]
Lloyd has quit [*.net *.split]
manveru has quit [*.net *.split]
rumikk2 has quit [*.net *.split]
angseus has quit [*.net *.split]
charles81 has quit [*.net *.split]
daemonwrangler has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
matthewd has quit [*.net *.split]
JoshL has quit [*.net *.split]
peterhu has quit [*.net *.split]
svkurowski has quit [*.net *.split]
rlex has quit [*.net *.split]
drale2k has quit [*.net *.split]
audibleblink has quit [*.net *.split]
Majost has quit [*.net *.split]
Kero has quit [*.net *.split]
bogdanteleaga has quit [*.net *.split]
mgorbach has quit [*.net *.split]
biox has quit [*.net *.split]
connor_goodwolf has quit [*.net *.split]
StoBrendo has quit [*.net *.split]
saneax-_-|AFK has quit [*.net *.split]
vdl has quit [*.net *.split]
madhatter has quit [*.net *.split]
webnanners has quit [*.net *.split]
mlehrer has quit [*.net *.split]
jlyndon has quit [*.net *.split]
Rasi has quit [*.net *.split]
D9 has quit [*.net *.split]
\13k has quit [*.net *.split]
segy has quit [*.net *.split]
twistedpixels has quit [*.net *.split]
jonadab has quit [*.net *.split]
nchambers has quit [*.net *.split]
soud has quit [*.net *.split]
ghormoon has quit [*.net *.split]
jasondotstar has quit [*.net *.split]
pygospa has quit [*.net *.split]
dmarr has quit [*.net *.split]
Morrolan has quit [*.net *.split]
greenhat_ has quit [*.net *.split]
Nilium has quit [*.net *.split]
redondos_ has quit [*.net *.split]
Fridtjof_ has quit [*.net *.split]
Lightsword has quit [*.net *.split]
boshhead has quit [*.net *.split]
zzak has quit [*.net *.split]
hays has quit [*.net *.split]
eam has quit [*.net *.split]
icedp has quit [*.net *.split]
rflot has quit [*.net *.split]
mclee has quit [*.net *.split]
wlanboy_ has quit [*.net *.split]
hirvi has quit [*.net *.split]
programmerq has quit [*.net *.split]
jswe- has quit [*.net *.split]
monoprotic has quit [*.net *.split]
rikai has quit [*.net *.split]
dagelf_ has quit [*.net *.split]
knight- has quit [*.net *.split]
miah has quit [*.net *.split]
bairyn_ has quit [*.net *.split]
aurelien has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
philtr has quit [*.net *.split]
Fetch has quit [*.net *.split]
trif has quit [*.net *.split]
jesk has quit [*.net *.split]
darthvorik has quit [*.net *.split]
Immune_ has quit [*.net *.split]
jmhmccr has quit [*.net *.split]
cyphactor has quit [*.net *.split]
pragmatism has quit [*.net *.split]
unreal has quit [*.net *.split]
n8o has quit [*.net *.split]
dukedave has quit [*.net *.split]
rubirc has quit [*.net *.split]
pocketprotector has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
silverdu1t has quit [*.net *.split]
Canucktux has quit [*.net *.split]
[dmp] has quit [*.net *.split]
Guest80777 has quit [*.net *.split]
rcs has quit [*.net *.split]
ineb has quit [*.net *.split]
DrCode has quit [*.net *.split]
strongcode has quit [*.net *.split]
justinmcp has quit [*.net *.split]
eggoez has quit [*.net *.split]
spacemud has quit [*.net *.split]
radic has quit [*.net *.split]
xpt has quit [*.net *.split]
Hobogrammer has quit [*.net *.split]
matti has quit [*.net *.split]
jpterry_ has quit [*.net *.split]
jidar has quit [*.net *.split]
aredridel has quit [*.net *.split]
Guest57142 has quit [*.net *.split]
Guest196 has quit [*.net *.split]
bodie_ has quit [*.net *.split]
zz_barkerd427 has quit [*.net *.split]
jwl has quit [*.net *.split]
Antiarc has quit [*.net *.split]
existensil has quit [*.net *.split]
zzxc has quit [*.net *.split]
iNs has quit [*.net *.split]
mr_rich101 has quit [*.net *.split]
seitensei has quit [*.net *.split]
ReinH_ has quit [*.net *.split]
okdas_ has quit [*.net *.split]
chrisarcand has quit [*.net *.split]
ekem has quit [*.net *.split]
thomas has quit [*.net *.split]
z3uS has quit [*.net *.split]
scottschecter has quit [*.net *.split]
saltsa has quit [*.net *.split]
ereslibre has quit [*.net *.split]
hfp has quit [*.net *.split]
aalmenar has quit [*.net *.split]
fedruantine has quit [*.net *.split]
sami has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
lianj has quit [*.net *.split]
evansbee has quit [*.net *.split]
irick has quit [*.net *.split]
heinrich5991 has quit [*.net *.split]
bw_ has quit [*.net *.split]
tekk has quit [*.net *.split]
marahin has quit [*.net *.split]
ericwood has quit [*.net *.split]
fumck has quit [*.net *.split]
jericon has quit [*.net *.split]
hfp_ is now known as hfp
z3uS| is now known as z3uS
]reed[ is now known as [reed]
segy_ is now known as segy
Nilium_ is now known as Nilium
matthewd_ is now known as matthewd
soud_ is now known as soud
bodie__ is now known as bodie_
svkurowski_ has joined #ruby
soud has joined #ruby
soud has quit [Changing host]
matti_ is now known as matti
bogdanteleaga_ is now known as bogdanteleaga
valeri_uF0 is now known as valeri_ufo
\13k_ is now known as \13k
prawnzy has quit [Remote host closed the connection]
marahin_ is now known as marahin
tnsi has joined #ruby
Marsjan is now known as marsjaninzmarsa
Radar_ is now known as Radar
Radar has joined #ruby
Radar has quit [Changing host]
pocketprotector has joined #ruby
nchambers^ is now known as nchambers
Guest94464 is now known as IceDragon
gsingh93- is now known as gsingh93
Lightsword_ is now known as Lightsword
svkurowski_ is now known as svkurowski
fedruantine has joined #ruby
mgorbach_ is now known as mgorbach
mlehrer has joined #ruby
crdpink_ has quit [Quit: Konversation terminated!]
biox has joined #ruby
marahin is now known as Guest68476
Majost has joined #ruby
aarongodin_ is now known as aarongodin
Kero has joined #ruby
M-mistake1 has joined #ruby
hirvi has joined #ruby
heinrich5991 has joined #ruby
scottschecter has joined #ruby
A_Drone has quit [Remote host closed the connection]
jpinnix________ is now known as jpinnix_______
zzak_ is now known as zzak
pawnbox has joined #ruby
arthurnn has joined #ruby
vcoinminer has quit [Ping timeout: 245 seconds]
olivierjanss_ is now known as olivierjanss
A_Drone has joined #ruby
zrl has quit [Ping timeout: 255 seconds]
HashNuke has quit [Ping timeout: 265 seconds]
cardoni_ is now known as cardoni
wsmoak_ is now known as wsmoak
JackMc has quit [Ping timeout: 255 seconds]
caw has quit [Ping timeout: 244 seconds]
crdpink has joined #ruby
jmhmccr_ is now known as jmhmccr
pizzaops has quit [Ping timeout: 250 seconds]
pfg_ has quit [Ping timeout: 252 seconds]
jimcroft_ is now known as jimcroft
rfv has quit [Ping timeout: 265 seconds]
jmcc____________ has quit [Ping timeout: 265 seconds]
discopatrick has quit [Ping timeout: 265 seconds]
cstrahan has quit [Ping timeout: 265 seconds]
sylario_ is now known as sylario
darthvorik_ is now known as darthvorik
DrCode has joined #ruby
rann has quit [Ping timeout: 250 seconds]
deimos has quit [Ping timeout: 276 seconds]
Guest81107 has joined #ruby
daemonwrangler_ is now known as daemonwrangler
yo61 has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
zero7 has quit [Ping timeout: 265 seconds]
Affix-Phobos is now known as Affix
charles81_ is now known as charles81
jhill_ has quit [Ping timeout: 252 seconds]
Lloyd has joined #ruby
Tony-St4rk_ is now known as Tony-St4rk
Affix is now known as Guest7319
digitalfiz_ is now known as digitalfiz
ramblinpeck_ is now known as ramblinpeck
bove_ is now known as bove
ReinH_ has joined #ruby
existensil has joined #ruby
mclee has joined #ruby
jxf_ is now known as jxf
[dmp] has joined #ruby
xpt has joined #ruby
vdl has joined #ruby
Hobogrammer has joined #ruby
marienz has joined #ruby
rumikk2 has joined #ruby
jesk has joined #ruby
coffeejunk has joined #ruby
ELCALOR_ is now known as ELCALOR
rflot_ is now known as rflot
ghostlight has joined #ruby
Rasi has joined #ruby
StoBrendo has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
manveru_ is now known as manveru
HashNuke has joined #ruby
crdpink has quit [Remote host closed the connection]
jmcc____________ has joined #ruby
dukedave_ is now known as dukedave
dminuoso has joined #ruby
rann has joined #ruby
vcoinminer has joined #ruby
codelogix has joined #ruby
discopatrick has joined #ruby
pfg_ has joined #ruby
cstrahan has joined #ruby
rfv has joined #ruby
Mission-Critical has joined #ruby
Iacobus has joined #ruby
jhill_ has joined #ruby
pizzaops has joined #ruby
deimos has joined #ruby
jlyndon_ is now known as jlyndon
crdpink has joined #ruby
caw has joined #ruby
tmtwd has quit [Ping timeout: 272 seconds]
zero7 has joined #ruby
Devalo has joined #ruby
JackMc has joined #ruby
yo61 has joined #ruby
codelogix has quit [Ping timeout: 265 seconds]
zrl has joined #ruby
prawnzy has joined #ruby
exadeci has joined #ruby
marchelzo has joined #ruby
pygospa has joined #ruby
JackMc has quit [Excess Flood]
sonyayahab has joined #ruby
JackMc has joined #ruby
marchelzo has quit [Ping timeout: 265 seconds]
jshjsh has joined #ruby
l4v2 has quit [Quit: l4v2]
JoshS has quit [Ping timeout: 244 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
pokui has joined #ruby
hahuang62 has quit [Ping timeout: 272 seconds]
jcao219 has quit [Quit: ByrdIRC]
jcao219 has joined #ruby
last_staff has joined #ruby
jshjsh is now known as JoshS
chouhoulis has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Devalo has quit [Ping timeout: 265 seconds]
sonyayahab has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Ping timeout: 255 seconds]
ashZ has joined #ruby
jshjsh has joined #ruby
jgt1 has joined #ruby
teclator has joined #ruby
nofxx has joined #ruby
JoshS has quit [Ping timeout: 244 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
jshjsh is now known as JoshS
eprasad has quit [Quit: Leaving]
zotherstupidguy has joined #ruby
duderonomy has joined #ruby
webus has quit [Ping timeout: 244 seconds]
elifoster has quit [Quit: sleep]
craigp_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
horst has quit [Quit: horst]
keith_ has quit [Quit: Leaving]
afisher has quit [Ping timeout: 240 seconds]
warmchizrhints has joined #ruby
thomas1 has quit [Quit: leaving]
thomas has joined #ruby
astrobunny has quit [Remote host closed the connection]
jidar_ is now known as jidar
17SAADNYV has joined #ruby
lxsameer has joined #ruby
jackjackdripper has joined #ruby
astrobunny has joined #ruby
firstdayonthejob has joined #ruby
vdamewood has quit [Quit: Life beckons.]
17SAADNYV has quit [Ping timeout: 264 seconds]
NTrash has joined #ruby
ledestin has joined #ruby
blackmesa has joined #ruby
warmchizrhints has quit [Ping timeout: 252 seconds]
marchelzo has joined #ruby
aurelien` is now known as aurelien
aurelien has quit [Changing host]
aurelien has joined #ruby
antru has joined #ruby
conta has joined #ruby
firstdayonthejob has quit [Ping timeout: 252 seconds]
A_Drone has quit [Remote host closed the connection]
ramfjord has joined #ruby
marchelzo has quit [Ping timeout: 264 seconds]
A_Drone has joined #ruby
craigp_ has quit [Quit: WeeChat 1.5]
craigp has joined #ruby
hahuang62 has joined #ruby
rnda has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
steveh7 has joined #ruby
rnda has quit [Max SendQ exceeded]
rnda has joined #ruby
rnda has quit [Max SendQ exceeded]
rnda has joined #ruby
pokalyis has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
hahuang62 has quit [Ping timeout: 265 seconds]
Guest89142 has quit [Quit: WeeChat 1.5]
Luna_Moonfang has joined #ruby
Ropeney has quit [Ping timeout: 260 seconds]
_sfiguser has quit [Ping timeout: 244 seconds]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prawnzy has quit [Remote host closed the connection]
blaxter has joined #ruby
pokalyis has joined #ruby
TomyWork has joined #ruby
nankyokusei has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emlee has joined #ruby
Ropeney has joined #ruby
anisha has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
vqrs has quit [Ping timeout: 240 seconds]
submitnine has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
vqrs has joined #ruby
_sfiguser has joined #ruby
the_drow has joined #ruby
existensil has joined #ruby
biberu has joined #ruby
bsrd has joined #ruby
Pumukel has joined #ruby
aidalgol has joined #ruby
tonini has joined #ruby
pwnd_nsfw has quit [Quit: Leaving]
frozengeek has joined #ruby
symm- has joined #ruby
andikr has joined #ruby
joconcepts has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
alfiemax has joined #ruby
aganov has joined #ruby
joconcepts has joined #ruby
pwnd_nsfw has joined #ruby
pandaant has joined #ruby
claudiuinberlin has joined #ruby
djbkd has quit [Quit: My people need me...]
<devil_tux> mornin
<pokui> good morning
joconcepts_ has joined #ruby
alfiemax has quit [Remote host closed the connection]
pokalyis has joined #ruby
A_Drone has quit [Remote host closed the connection]
pandaant has quit [Ping timeout: 265 seconds]
joconcepts has quit [Ping timeout: 264 seconds]
wugy has joined #ruby
pandaant has joined #ruby
paha80 has joined #ruby
jonyijoe has quit [Remote host closed the connection]
dionysus69 has joined #ruby
codelogix has joined #ruby
reaVer_ has quit [Ping timeout: 250 seconds]
last_staff has quit [Excess Flood]
jonyijoe has joined #ruby
jshjsh has joined #ruby
last_staff has joined #ruby
mark_66 has joined #ruby
djbkd has joined #ruby
JoshS has quit [Ping timeout: 264 seconds]
JoshS has joined #ruby
codelogix has quit [Ping timeout: 264 seconds]
jshjsh has quit [Disconnected by services]
jonyijoe has quit [Ping timeout: 272 seconds]
leea has joined #ruby
frozengeek has quit [Quit: frozengeek]
aufi has joined #ruby
leea has quit [Client Quit]
marchelzo has joined #ruby
ishe has joined #ruby
vondruch has joined #ruby
ishe has quit [Client Quit]
Snickers has joined #ruby
bweston92 has quit [Quit: Leaving]
bweston92_ is now known as bweston92
sandelius has joined #ruby
oddmunds1 is now known as oddmunds
marchelzo has quit [Ping timeout: 240 seconds]
NTrash has quit [Quit: Konversation terminated!]
submitnine has quit []
Silthias has joined #ruby
joconcepts has joined #ruby
submitnine has joined #ruby
turbo64 has joined #ruby
antgel has joined #ruby
<turbo64> how do you call a method inside a heredoc block
NTrash_ has joined #ruby
<turbo64> like i know you can "escape" a variable with #{foo} but is there a way to do that with a method call?
nofxx has quit [Ping timeout: 265 seconds]
<turbo64> when i put the call in #{} it calls the method before the heredoc for some reason
<Snickers> Could someone tell me how to set source IP address int TCP/UDP socket?
NTrash_ has quit [Client Quit]
blackmesa has quit [Ping timeout: 252 seconds]
bsrd has quit [Quit: WeeChat 1.5]
Silthias1 has joined #ruby
NTrash_ has joined #ruby
<dminuoso> Snickers: sock.addr ?
joconcepts_ has quit [Ping timeout: 244 seconds]
<pokui> turbo64: the way string interpolation works is all the #{} are "run" then the final string created with the output plus the "constant" text unless I'm missing something.
<dminuoso> Snickers: i.e. IPSocket#addr
Silthias has quit [Ping timeout: 252 seconds]
reaVer has joined #ruby
<Snickers> dminuoso thx, that's it
<dminuoso> Snickers: Or even the straight Socket#accept returns a socket/addrinfo pair that you can use directly.
<turbo64> pokui is there a way to make it "run" within the block
<elomatreb> turbo64: Sounds like what you want is a lambda
<Snickers> wait, IPSocket#addr will return source IP addres, but i want to set it
<dminuoso> Snickers: You want to... "set" it?
A_Drone has joined #ruby
<dminuoso> Snickers: What exactly are you trying to do?
<dminuoso> Snickers: Client opens a connection, server accepts it. You don't "change" the existing connection to have it point somewhere else.
leea has joined #ruby
jshjsh has joined #ruby
<Snickers> I have, multiple ip address on server and I want to specify what address should be used
<dminuoso> Snickers: You mean the bind address?
A_Drone has quit [Remote host closed the connection]
unforgiven512 has quit [Quit: ZNC - http://znc.in]
erlingur has joined #ruby
<Snickers> bind is rather for serever to listen on address
tvw has joined #ruby
<Snickers> i want to sent packet with specific source address
A_Drone has joined #ruby
<dminuoso> Snickers: What?
<dminuoso> 09:51 < dminuoso> Snickers: What exactly are you trying to do?
<dminuoso> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<turbo64> when i use the lambda its still outputting before the containing string
<dminuoso> Snickers: If you want to send with a specific source address, bind your socket to it, and have your client connect to that. That is how sockets work.
<dminuoso> You don't "fake" source IP addresses, it simply will not work.
JoshS has quit [Ping timeout: 244 seconds]
<Snickers> dminuoso it would work eq IP spoofing
<Snickers> but this is only part of problem
<dminuoso> Snickers: No it would not.
<dminuoso> 09:51 < dminuoso> Snickers: What exactly are you trying to do?
<Snickers> dminuoso you now how IP header look?
<dminuoso> Snickers: Do you know how TCP works?
wingwalker has quit [Ping timeout: 255 seconds]
djbkd has quit [Quit: Leaving...]
alfiemax has joined #ruby
<dminuoso> Snickers: Are you trying to do a MITM?
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
<Snickers> dminuoso I know, I don't want to do MITM.
<Snickers> I have computer with several ip addreses
<Snickers> I want to specyfie what adres will be used to open connection to server
mikecmpbll has joined #ruby
<Snickers> or do IP spoofing, whatever, just wana know how to set this source address in socket
aspiers_ is now known as aspiers
weckl has joined #ruby
rsampaio_ has quit [Ping timeout: 255 seconds]
_main_ has joined #ruby
A_Drone has quit [Remote host closed the connection]
unforgiven512 has joined #ruby
erlingur has quit [Ping timeout: 264 seconds]
__main__ has quit [Ping timeout: 250 seconds]
marr has joined #ruby
roamingdog has quit []
_main_ is now known as __main__
A_Drone has joined #ruby
ocbtec has joined #ruby
Shmulik has joined #ruby
<Shmulik> hi, i wondered how to deal with line with string structure that i get from read file,
ferr has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
<Shmulik> the line include 10 parameters without spaces like any sign and then the date creation etc
Burgestrand has joined #ruby
__main__ has joined #ruby
<Shmulik> i want to build any structure that will get the file and place each parameter in right place, so i can work with params
Burgestrand has quit [Client Quit]
dionysus69 has quit [Remote host closed the connection]
Burgestrand has joined #ruby
whiteline has quit [Remote host closed the connection]
dionysus69 has joined #ruby
priodev has quit [Ping timeout: 276 seconds]
whiteline has joined #ruby
<turbo64> whats a good way to print a list of all of an object's attributes
<sandelius> turbo64 what kind of attributes? instance variables?
priodev has joined #ruby
<turbo64> yes
salut has joined #ruby
<sandelius> turbo64 easy as object.instance_variables # => []
Dimik has quit [Ping timeout: 260 seconds]
<elomatreb> Alternatively, you can use Kernel#p for debugging, or dump the object as YAML if it's too long
jsrn_ has joined #ruby
<turbo64> im trying to print cgi environment variables
teclator has quit [Remote host closed the connection]
<elomatreb> You could `require "yaml"`, then `puts ENV.to_yaml`
<turbo64> on the cgi page on ruby-doc it says the environmental variables are available as read-only attributes of the cgi object
<turbo64> and im not sure how to access read-only attributes
aryaching has quit [Read error: Connection reset by peer]
senayar has joined #ruby
<elomatreb> Just like regular attributes, you just can't set them
gingray has joined #ruby
<turbo64> for example cgi.REMOTE_ADDR doesn't work
Hobogrammer has quit [Ping timeout: 244 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
Hobogrammer has joined #ruby
<pokui> turbo64: sorry was afk. I think I understand your original problem wrt to here-docs. http://pastebin.com/wuWbfuQR if I understand correctly.
<ruby[bot]> pokui: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/dcc246890e6bf0f91de83b55d759fcbf
<ruby[bot]> pokui: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
jaruga___ has joined #ruby
<turbo64> what about codepad?
<turbo64> is that one ok
<turbo64> i dont believe it has ads
<pokui> turbo64: not sure. but the gist the bot created has the code I wanted to show anyway.
emlee has quit [Ping timeout: 265 seconds]
<turbo64> ok ill try that and see what happens
<turbo64> alright cool
<turbo64> yeah i didnt think about returning
<turbo64> i was just printing it within the method
killuminati has joined #ruby
aryaching has joined #ruby
marchelzo has joined #ruby
<killuminati> Killuminati ! Banish secret societies like illuminati !!!!! Psychiatry is a FRAUD !!!!!!!!! Israel terrorist state want put me in psychiatric yard!!!!!! Come and destroy this country now!!!!!!!!!
Couch has joined #ruby
blackmesa has joined #ruby
postmodern has quit [Quit: Leaving]
marchelzo has quit [Ping timeout: 276 seconds]
killuminati has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ghostlight has quit [Ping timeout: 265 seconds]
hahuang62 has joined #ruby
nando293921 has quit [Quit: Lost terminal]
ghostlight has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
hahuang62 has quit [Ping timeout: 255 seconds]
drptbl has joined #ruby
<dyjakan> wow killuminati, this is exactly the stuff I was expecting from #ruby
drptbl has quit [Client Quit]
teclator has joined #ruby
nando293921 has joined #ruby
JeanCarloMachado has joined #ruby
bsrd has joined #ruby
conta has quit [Ping timeout: 244 seconds]
jonyijoe has joined #ruby
erlingur has joined #ruby
auzty has joined #ruby
nankyokusei has joined #ruby
TheDeadSerious has joined #ruby
TheDeadSerious has quit [Client Quit]
jgt1 has quit [Quit: WeeChat 1.4]
<devil_tux> I knew Yukihiro was part of the freemasons
A_Drone has quit [Remote host closed the connection]
tomphp has joined #ruby
SirCmpwn_ is now known as SirCmpwn
nankyokusei has quit [Ping timeout: 244 seconds]
jonyijoe has quit [Remote host closed the connection]
JoshS has joined #ruby
Wizznt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jonyijoe has joined #ruby
nando293921 has quit [Quit: Lost terminal]
jshjsh has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 272 seconds]
troulouliou_div2 has joined #ruby
jonyijoe has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
LoneHermit has joined #ruby
rnda has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
nando293921 has joined #ruby
A_Drone has joined #ruby
workmad3 has joined #ruby
zotherst1 has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
LoneHermit has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 265 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nando293921 has quit [Quit: Lost terminal]
zotherst1 has quit [Quit: WeeChat 1.5]
paha80 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A_Drone has quit [Remote host closed the connection]
ardian has quit [Quit: WeeChat 1.4]
killuminati has joined #ruby
troulouliou_div2 has quit [Ping timeout: 276 seconds]
<killuminati> Killuminati ! Banish secret societies like illuminati !!!!! Psychiatry is a FRAUD !!!!!!!!! Israel terrorist state want put me in psychiatric yard!!!!!! Come and destroy this country now!!!!!!!!!
A_Drone has joined #ruby
jonyijoe has joined #ruby
Ropeney has joined #ruby
<pokui> sigh. then killuminati shows up with another IP in itally.
A_Drone has quit [Remote host closed the connection]
nando293921 has joined #ruby
<pokui> sorry s/itally/israel/
araujo has joined #ruby
<elomatreb> The other IP was from Isreal too
<pokui> elomatreb: yeah.
codelogix has joined #ruby
araujo has quit [Max SendQ exceeded]
<killuminati> I was in traffic
<elomatreb> Not a bot :O
<hirvi> lol
paha80 has joined #ruby
blackmesa has joined #ruby
araujo has joined #ruby
<killuminati> Hey... Very bad beer...here!!!
flying has joined #ruby
* pokui ignores
<killuminati> I buy a Carlsberg..byt i think is not authentic.
<killuminati> They falsified many here!!! Vodka, beer...many thinks.
araujo has quit [Max SendQ exceeded]
<elomatreb> Maybe you should find a channel other than one focusing on a specific programming language?
conta has joined #ruby
araujo has joined #ruby
codelogix has quit [Ping timeout: 240 seconds]
<pokui> hmm. immutable strings by default. time to dig up the last script i wrote to see if it'll be "cleaner" to use string.new or rewrite anything that builds a string with += or <<
<apeiros> killuminati: #ruby-offtopic is the channel for random noise.
araujo has quit [Max SendQ exceeded]
_sfiguser has quit [Remote host closed the connection]
killuminati has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
araujo has joined #ruby
pawnbox has joined #ruby
Ropeney has quit [Ping timeout: 276 seconds]
paha80 has quit [Quit: Textual IRC Client: www.textualapp.com]
araujo has quit [Max SendQ exceeded]
nadir has quit [Quit: Connection closed for inactivity]
araujo has joined #ruby
NTrash_ has quit [Quit: Konversation terminated!]
Pumukel has quit [Ping timeout: 272 seconds]
jaguarmagenta has quit [Remote host closed the connection]
<pokui> Shmulik: you'd have to paste a gist of what the line looks like. if there are no separators how do you tell where the records are? number of characters?
troulouliou_div2 has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 265 seconds]
blackwind_123 has joined #ruby
Pumukel has joined #ruby
jshjsh has joined #ruby
JeanCarloMachado has joined #ruby
ur5us has quit [Remote host closed the connection]
ashZ has quit [Quit: Leaving]
JoshS has quit [Ping timeout: 244 seconds]
<turbo64> [03:40] <killuminati> Killuminati ! Banish secret societies like illuminati !!!!! Psychiatry is a FRAUD !!!!!!!!! Israel terrorist state want put me in psychiatric yard!!!!!! Come and destroy this country now!!!!!!!!!
<turbo64> where did this guy come from
<elomatreb> The Wonderful World of Random Dudes in IRC
AnoHito_ has quit [Ping timeout: 252 seconds]
stamina has joined #ruby
JeanCarloMachado has quit [Ping timeout: 265 seconds]
JeanCarloMachado has joined #ruby
Snowy has joined #ruby
webus has joined #ruby
<pokui> hmm. I wonder if the row[] objects from 'csv' will also be immutable. I tend to do a lot of "".gsub! there :(
marchelzo has joined #ruby
koooge has quit [Quit: Leaving...]
killuminati has joined #ruby
<killuminati> Killuminati ! Banish secret societies like illuminati !!!!! Psychiatry is a FRAUD !!!!!!!!! Israel terrorist state want put me in psychiatric yard!!!!!! Come and destroy this country now!!!!!!!!!
killuminati has quit [Client Quit]
leitz has joined #ruby
pragmaticus has joined #ruby
jonyijoe_ has joined #ruby
LoneHerm_ has joined #ruby
jonyijoe has quit [Ping timeout: 265 seconds]
jonyijoe_ has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
jonyijoe has joined #ruby
eizua has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 260 seconds]
jonyijoe has quit [Ping timeout: 255 seconds]
DaniG2k has joined #ruby
gregf_ has joined #ruby
aidalgol has quit [Quit: zZzZzzzzz]
<devil_tux> what a retard this guy killuminati is
killuminati has joined #ruby
<devil_tux> killuminati: f.. off
Yagger has joined #ruby
<Yagger> Hello, what is the gem / module I need to use within ruby to access the locate database file created by updatedb on Linux systems?
<elomatreb> devil_tux: Who can ban in this channel?
<devil_tux> can someone from op IP ban this bot
c355e3b has joined #ruby
tlaxkit has joined #ruby
symm- has quit [Quit: Leaving...]
astrobunny has quit [Remote host closed the connection]
oz has quit [Ping timeout: 250 seconds]
killuminati has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nando293921 has quit [Ping timeout: 264 seconds]
tvw has quit []
<DaniG2k> has anyone here taken Udacity's ML course? is it worth it?
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Pumukel has quit [Ping timeout: 255 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
<dyjakan> #python might be better place to ask that :P
Yagger has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
Pumukel has joined #ruby
marchelzo has quit [Ping timeout: 265 seconds]
AlexxNic_ has quit [Quit: AlexxNic_]
atmosx_ is now known as atmosx
alfiemax has joined #ruby
JoshS has joined #ruby
oz has joined #ruby
hakunin_ has joined #ruby
jshjsh has quit [Ping timeout: 265 seconds]
jshjsh has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
AlexxNica has joined #ruby
JoshS has quit [Ping timeout: 255 seconds]
hahuang62 has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
<turbo64> how do i open a file in a directory with a wildcard
<turbo64> like i know how to glob a directory to find all the matching files but i dont know how to open them
<turbo64> and print the contents
<ciawal> same way you'd open one otherwise
DaniG2k has quit [Ping timeout: 240 seconds]
<turbo64> Dir.glob("#{path}*").each do |f|
<turbo64> output = file.read
<turbo64> file = File.open(f)
<turbo64> i tried this but it didnt work
<ciawal> doesn't work?
hahuang62 has quit [Ping timeout: 255 seconds]
<dminuoso> ?work
<ruby[bot]> dminuoso: I don't know anything about work
<dminuoso> ruby[bot]: That's right you lazy bum.
leitz has quit [Quit: Nappy time]
JoshS has joined #ruby
jshjsh has quit [Ping timeout: 244 seconds]
ta_ has quit [Remote host closed the connection]
oblique has joined #ruby
nankyokusei has joined #ruby
<pokui> turbo64: try `puts file.read` if you want the output on stdout. you really should go through http://tryruby.org/
rodfersou has joined #ruby
hanmac has quit [Ping timeout: 272 seconds]
<pokui> dminuoso: lol.
<pokui> ?File.read
<pokui> ?read
<ruby[bot]> pokui: I don't know anything about read
<pokui> hmm.
<oblique> i'm new to ruby. i don't understand why the second .map of the following code doesn't work:
<oblique> ['1', '2'].map &:to_i; def foo(x) puts x end; ['1', '2'].map &:foo
<oblique> i found that i need to do it with &method(:foo)
daemonwrangler has quit []
<ghr> because Array doesn't have a method called foo
<oblique> but i don't understand why
<ciawal> &:foo means, call the foo method on the object
<ciawal> not call the foo method *with* the object
<ciawal> so it's '1'.to_i, '1'.foo
connor_g1odwolf is now known as connor_goodwolf
nankyokusei has quit [Ping timeout: 265 seconds]
<oblique> i see, so what is changed with method()?
<apeiros> ?dontwork turbo64 /cc dminuoso
<ruby[bot]> turbo64: we charge $120/h to figure out what you mean by "does not work". alternatively you can give us a proper explanation of what you expected to happen, and what happened instead, including the full exception if one occurred.
Nahra` has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
auzty has quit [Quit: Leaving]
jshjsh has joined #ruby
Snowy has quit [Quit: ragequit]
Tempesta has quit [Quit: See ya!]
<pokui> oblique: it run's Object#method with :foo and 1 (then 2) as the arguments. http://ruby-doc.org/core-2.3.1/Object.html#method-i-method
Nahra has joined #ruby
habitullence has quit [Quit: habitullence]
JoshS has quit [Ping timeout: 260 seconds]
habitullence has joined #ruby
whiteline has quit [Remote host closed the connection]
habitullence has quit [Client Quit]
whiteline has joined #ruby
<oblique> pokui: thanks!
hanmac has joined #ruby
JoshS has joined #ruby
jshjsh has quit [Ping timeout: 272 seconds]
habitullence has joined #ruby
jespada has joined #ruby
sameerynho has joined #ruby
GodFather has joined #ruby
bumao has quit [Quit: ZNC 1.6.3 - http://znc.in]
bumao has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
ldnunes has joined #ruby
marchelzo has joined #ruby
NuckingFuts has quit [Ping timeout: 276 seconds]
codelogix has joined #ruby
bumao has quit [Quit: ZNC 1.6.3 - http://znc.in]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nuck has joined #ruby
nuck is now known as Guest31880
pokalyis has joined #ruby
marienz has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
claudiuinberlin has quit [Remote host closed the connection]
pokalyis has quit [Read error: Connection reset by peer]
pokalyis has joined #ruby
codelogix has quit [Ping timeout: 265 seconds]
marienz has joined #ruby
AlexxNica has quit [Quit: AlexxNica]
johnmilton has quit [Quit: Namaste]
pokalyis has quit [Client Quit]
tlaxkit has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bumao has joined #ruby
nadir has joined #ruby
humd1ng3r has quit [Ping timeout: 250 seconds]
pokalyis has joined #ruby
tlaxkit has joined #ruby
marienz_ has joined #ruby
joevandyk has quit [Ping timeout: 250 seconds]
sunya7a has quit [Ping timeout: 250 seconds]
sunya7a has joined #ruby
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 240 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
humd1ng3r has joined #ruby
redpants has joined #ruby
jonyijoe has joined #ruby
joevandyk has joined #ruby
jeffreylevesque has joined #ruby
alfiemax has joined #ruby
skweek has joined #ruby
marienz_ has quit [Quit: just one of me is quite sufficient]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
fladson[m] has joined #ruby
TvL2386 has joined #ruby
jeffreylevesque has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 272 seconds]
camilasann is now known as camilasan
LoneHerm_ has quit [Remote host closed the connection]
csk has joined #ruby
rtl has quit [Ping timeout: 250 seconds]
bumao has quit [Quit: ZNC 1.6.3 - http://znc.in]
rtl has joined #ruby
bumao has joined #ruby
johnmilton has joined #ruby
johnmilton has quit [Remote host closed the connection]
csk has quit [Client Quit]
johnmilton has joined #ruby
mrbobbytables has joined #ruby
ta_ has joined #ruby
sdothum has joined #ruby
antgel has quit [Ping timeout: 244 seconds]
icey has joined #ruby
tsadok is now known as jonadb
jonadb is now known as jonadab
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fnux has quit [Quit: ZNC - http://znc.in]
ta_ has quit [Remote host closed the connection]
jonyijoe has quit [Remote host closed the connection]
jonyijoe has joined #ruby
gnufied has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
lucast_ has quit [Quit: Something went wrong.]
lucast has joined #ruby
pokui has quit [Read error: Connection reset by peer]
sonyayahab has joined #ruby
aswen has joined #ruby
fnux has joined #ruby
redpants has quit [Ping timeout: 264 seconds]
lex- has quit [Disconnected by services]
rlex has joined #ruby
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 255 seconds]
frozengeek has joined #ruby
yoot has joined #ruby
<yoot> is there a source for ruby's documentation?
marchelzo has quit [Ping timeout: 255 seconds]
<dminuoso> yoot: Yes, the source code itself.
fmcgeough has joined #ruby
<dminuoso> As a random example.
<yoot> i mean like python-docs -> for instance "to_s is ...." short examples
<dminuoso> yoot: ri
<dminuoso> ?
<yoot> ri?
<dminuoso> ri.
<dminuoso> type ri, be amazed.
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> Even has an interactive mode :)
<elomatreb> ... provided you installed the docs with your Ruby
<elomatreb> Also: http://ruby-doc.org/
pokalyis has joined #ruby
<yoot> ri works fine
<yoot> ri Array
<yoot> ri Array.sort
blackmesa has joined #ruby
<dminuoso> yoot: You should prefer Array#sort generally :-)
<dminuoso> yoot: It's less ambiguous.
<dminuoso> >> Array.sort
<ruby[bot]> dminuoso: # => undefined method `sort' for Array:Class (NoMethodError) ...check link for more (https://eval.in/650195)
claudiuinberlin has joined #ruby
yoot has quit [Quit: Page closed]
tlaxkit has quit [Read error: Connection reset by peer]
antgel has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hutch34 has joined #ruby
gingray has quit [Ping timeout: 265 seconds]
claudiuinberlin has quit [Ping timeout: 244 seconds]
tlaxkit has joined #ruby
getxsick has joined #ruby
<getxsick> since ruby2.3 String objects are immutable. so my question is what is a difference between symbols and strings now?
<dminuoso> getxsick: symbols are much much faster to compare.
<dminuoso> getxsick: and they lack any of the methods that String comes with.
jtzero1 has joined #ruby
diprotic is now known as monoprotic
GinoManWorks has joined #ruby
<dminuoso> getxsick: Think of symbols as "numbers with a string representation" because thats what they just are. Strings are just strings.
bob434 has quit [Quit: This computer has gone to sleep]
<dminuoso> getxsick: So the difference is essentially "numbers you cant do arithmetic with vs immutable strings"
claudiuinberlin has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
alfiemax has quit [Remote host closed the connection]
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jardayn has joined #ruby
camilasan has quit [Ping timeout: 252 seconds]
jeffreylevesque has joined #ruby
sameerynho has quit [Quit: WeeChat 1.5]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
camilasan has joined #ruby
marchelzo has joined #ruby
hahuang62 has joined #ruby
<apeiros> getxsick: string objects aren't immutable in ruby 2.3
<apeiros> >> ["foo".frozen?, RUBY_VERSION]
Fetch_ is now known as Fetch
<ruby[bot]> apeiros: # => [false, "2.3.0"] (https://eval.in/650198)
<getxsick> dminuoso: this is due to the fact operations on symbols are based on hash-values?
Robtop__ has joined #ruby
<jeffreylevesque> is there a difference between: output = `ls`, and system = "ls"?
claudiuinberlin has quit [Remote host closed the connection]
bob434 has joined #ruby
<apeiros> jeffreylevesque: try it
<dminuoso> getxsick: No. Symbols are just numbers.
pawnbox has quit [Ping timeout: 244 seconds]
hightower4 has quit [Ping timeout: 250 seconds]
hahuang62 has quit [Ping timeout: 255 seconds]
<dminuoso> getxsick: The basic idea is this: The Ruby VM has a lot of places where it must compare whether a == b, such as method names. With strings, that has a complexity of O(n), whereas an integer can be compared in O(1). So Symbols were added as a middleground.
pwnd_nsfw` has quit [Ping timeout: 272 seconds]
binaryplease has joined #ruby
<jeffreylevesque> ls: cannot open directory .: Operation not permitted
binaryplease has quit [Client Quit]
<dminuoso> getxsick: The symbol gets immediately transformed into a numbed, so that comparisons with it can be done in a single instruction. :-)
<dminuoso> *number
<jeffreylevesque> i just want to know the best way to store the output of a shell commadn to a variable
<dminuoso> jeffreylevesque: What is "the output" ?
<ciawal> system = "ls" is just assigning a string
<jeffreylevesque> system "type -p wbinfo > /dev/null 2>&1"
<dminuoso> jeffreylevesque: The closest thing *I* would understand as output is the return value.
<getxsick> dminuoso: but still somehow transformation has to be done, i bet it's by hash function
<dminuoso> getxsick: Oh yeah. :)
<jeffreylevesque> output = system "type -p wbinfo > /dev/null 2>&1"
<jeffreylevesque> yeah i want output/return
<jeffreylevesque> not the exit code
<getxsick> dminuoso: kewl :)
<dminuoso> getxsick: actually let me think about this.
<dminuoso> getxsick: Im not entirely sure. I think it's much simpler.
tk__ has joined #ruby
<getxsick> ok, but ruby3.0 is providing immutable strings, then a difference between symbols and strings will be much much smaller. i guess only performance
claudiuinberlin has joined #ruby
<dminuoso> getxsick: No, they are not comparable.
<dminuoso> They are different things for different purposes.
<dminuoso> It's like comparing 1 with "1" - sure, they look similar, but they are simply different.
webus has quit [Ping timeout: 265 seconds]
<dminuoso> And you can convert one into the other, but they are still fundamentally different.
pawnbox has joined #ruby
ramortegui has joined #ruby
nankyokusei has joined #ruby
LoneHerm_ has joined #ruby
shinnya has joined #ruby
headius_ is now known as headius
jonyijoe has quit [Remote host closed the connection]
jonyijoe has joined #ruby
<dminuoso> That is the core of it.
frozengeek has quit [Quit: frozengeek]
pawnbox has quit [Ping timeout: 264 seconds]
frozengeek has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Ping timeout: 252 seconds]
csk has joined #ruby
adac has joined #ruby
pawnbox has joined #ruby
<adac> what is an alternative way to write "HTTParty.get(URI::encode(@url)" Rubocop doesn't like the ::
<jeffreylevesque> what do i need to adjust - https://bpaste.net/show/6c794eed9a46
sczizzo has joined #ruby
<jeffreylevesque> the syntax seems it should be really short and simple
<canton7> adac, use '.', like you did with 'HTTParty.get'?
jonyijoe has quit [Ping timeout: 265 seconds]
<adac> canton7, oh right that works too :)
<adac> thank you!
cdg has joined #ruby
braincrash has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
aegis3121 has joined #ruby
boshhead_ is now known as boshhead
<dminuoso> adac: :: is commonly only used to access constants inside namespaces.
braincrash has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
<jeffreylevesque> why can't ruby run the `type` shell command?
JoshS has quit [Ping timeout: 265 seconds]
cdg has joined #ruby
dionysus69 has joined #ruby
Snickers has quit [Ping timeout: 276 seconds]
<dminuoso> jeffreylevesque: because "type" is a shell builtin.
<jeffreylevesque> can i run shell, or is there an alternative syntax?
<dminuoso> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<dminuoso> jeffreylevesque: What are you trying to do?
<jeffreylevesque> i want to run `if type -p wbinfo > /dev/null 2>&1; then if wbinfo -p > /dev/null 2>&1; then echo "true"; else echo "false"; fi; else echo "false"; fi`
gingray has joined #ruby
<jeffreylevesque> the bash is not the best, and probably can be reduced
<jeffreylevesque> i want to convert that to ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
<dminuoso> jeffreylevesque: find_executable in mkmf is probably the more elegant solution
<dminuoso> (Granted, mkmf feels a bit wrong here, but its the best we have I think)
bmurt has joined #ruby
marchelzo has quit [Ping timeout: 260 seconds]
<jeffreylevesque> should i use `find_executable` to find `type`?
braincrash has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Read error: Connection reset by peer]
claudiuinberlin has joined #ruby
tyang has joined #ruby
marchelzo has joined #ruby
braincrash has joined #ruby
[k- has joined #ruby
mniip has quit [Quit: This page is intentionally left blank.]
Ishido has joined #ruby
codelogix has joined #ruby
AnoHito has joined #ruby
gregf_ has quit [Ping timeout: 240 seconds]
mniip has joined #ruby
JoshL_ has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
SteenJobs has joined #ruby
codelogix has quit [Ping timeout: 260 seconds]
JoshL has joined #ruby
jespada has quit [Quit: WeeChat 1.5-dev]
jcao219 has quit [Ping timeout: 265 seconds]
bsrd has quit [Quit: WeeChat 1.5]
tvw has quit [Ping timeout: 276 seconds]
ta_ has quit [Remote host closed the connection]
patarr has joined #ruby
patarr has quit [Client Quit]
JeanCarloMachado has quit [Quit: Lost terminal]
jenrzzz has joined #ruby
millerti has joined #ruby
jaguarmagenta has joined #ruby
hinbody_ is now known as hinbody
sczizzo has quit []
l4v2 has joined #ruby
blackmesa has quit [Quit: WeeChat 1.5]
tvw has joined #ruby
jolamb_ is now known as jolamb
jenrzzz has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Read error: No route to host]
teclator has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
millerti has quit [Ping timeout: 244 seconds]
moneylotion has quit [Quit: ZNC 1.6.3 - http://znc.in]
moneylotion has joined #ruby
patarr has joined #ruby
fullofcaffeine has joined #ruby
Guest21 has joined #ruby
Guest21 is now known as falcon3
falcon3 is now known as kevwilde
kevwilde is now known as kevinvw
vqrs has quit [Ping timeout: 240 seconds]
<dminuoso> Need some input. I have the need for a Base class level function to set some class-level state for a derived - how would you do that?
coolboy has joined #ruby
maddmaxx_ has joined #ruby
<apeiros> delegate to the base class
<apeiros> def foo=(value); BaseClass.foo=(value); end
<apeiros> if it's per-base-class, then self.class.foo=(value) instead of BaseClass.foo=
<dminuoso> apeiros: I need the state per-derived-class
<apeiros> then what I said last :)
alfiemax has joined #ruby
blackmesa has joined #ruby
jtzero1 has quit [Quit: Leaving.]
jaguarmagenta has quit [Remote host closed the connection]
<dminuoso> apeiros: And how does the DerivedClass have that accessor?
<dminuoso> Ah wait I can fix that.
<dminuoso> Yeah that works, thanks.
rprimus has joined #ruby
<dminuoso> Or I think it should. :D
<apeiros> in the base class: class << self; attr_writer :foo; end
<dminuoso> Yeah
<apeiros> the remaining open question is: which default?
<dminuoso> What do you mean with "default" ?
JakFrist[WVU] has joined #ruby
<dminuoso> Also I don't like class << self much anymore :|
<dminuoso> But that's nothing class_eval wont fix.
<dminuoso> apeiros: This hack is going to be awesome. :D
blackmesa has quit [Client Quit]
ChiefAlexander has joined #ruby
mtkd has quit [Ping timeout: 252 seconds]
vqrs has joined #ruby
LoneHerm_ has joined #ruby
am55 has joined #ruby
hk238 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Snowy has joined #ruby
mtkd has joined #ruby
zacts has quit [Ping timeout: 265 seconds]
<dminuoso> apeiros: I cant get it to work actually. Let me show you what Im trying to do
<dminuoso> apeiros: https://eval.in/650300
<dminuoso> Heh. I guess I screwed something uyp.
<dminuoso> It works (:
JeanCarloMachado has joined #ruby
tubuliferous has joined #ruby
GodFather has quit [Ping timeout: 255 seconds]
[k-_ has joined #ruby
[k- has quit [Ping timeout: 244 seconds]
<apeiros> dminuoso: use proper initialization :-p
saneaxL is now known as saneax-_-|AFK
craigp has quit [Ping timeout: 272 seconds]
<dminuoso> apeiros: Sure. Tell me how?
<dminuoso> apeiros: derived callback?
haylon_ has joined #ruby
<apeiros> give me a minute
<dminuoso> apeiros: the problem is that the inherited callback is in a different class
<dminuoso> I cannot for the life figure out how to make it work with def self.inherited
ta_ has joined #ruby
<apeiros> I wish ruby had a nicer idiom for things like that
Guest43_ has joined #ruby
Guest43_ is now known as Rufus
<dminuoso> apeiros: My eyes..
<apeiros> not sure what you mean by "the inherited callback is in a different class"
tubuliferous has quit [Ping timeout: 260 seconds]
<dminuoso> apeiros: You have a base class talk to a derived class. :(
joelwallis has joined #ruby
<dminuoso> Im sure that's a <fancy word> inversion right there!
<apeiros> if ruby had a mechanism which allowed it to be done the other way round, I'd use that
<apeiros> i.e. the equivalent of initialize_copy
<apeiros> IMO initialize_subclass should be a thing
tdy has quit [Ping timeout: 272 seconds]
<apeiros> or self.initialize
<Burgestrand> Derived1.q should == [:foo], and Derived2.q should == [:foo, :bar]?
<Burgestrand> Hihi. :)
<dminuoso> apeiros: Once this is done, Ill show it to you
<apeiros> sure :)
moneylotion has quit [Ping timeout: 260 seconds]
getxsick has quit [Quit: Page closed]
ta_ has quit [Remote host closed the connection]
workerbeetwo has joined #ruby
<workerbeetwo> lib/transfer.rb:26:1: E: unexpected token $end
<workerbeetwo> What does that mean? ITs the output of rubocop
alfiemax has quit [Remote host closed the connection]
<dminuoso> workerbeetwo: It means that the file has a superfluous "end"
<dminuoso> workerbeetwo: the error could be a missing do or perhaps something else.
marchelzo has quit [Ping timeout: 265 seconds]
moneylotion has joined #ruby
<workerbeetwo> its a very simple file module X class Y << self def Z (stuff) end end end
fbt has joined #ruby
<dminuoso> tada
SteenJobs has quit [Quit: SteenJobs]
<apeiros> workerbeetwo: please gist the unaltered code
<apeiros> ?gist workerbeetwo
<ruby[bot]> workerbeetwo: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
jottr has joined #ruby
<apeiros> dminuoso: gotta make a phone call real quick, will take a look after that :)
alfiemax has joined #ruby
platzhirsch has joined #ruby
<fbt> Is this the right channel to ask questions as a beginner learning ruby? The only lang I'm good with is bash right now, just to set the bar.
<fbt> Also went through the codecademy ruby course.
SteenJobs has joined #ruby
Zamyatin has joined #ruby
<apeiros> fbt: sure
claudiuinberlin has quit [Read error: Connection reset by peer]
asal has joined #ruby
<fbt> Nice. I'll hang around here then.
moos3 has left #ruby ["WeeChat 1.5"]
claudiuinberlin has joined #ruby
<apeiros> fbt: if we're unhappy with a question, we usually try to tell you about how to improve your question. generally a good thing to do is:
<apeiros> show that & what you've tried yourself (even if unsuccessful), show what you expected, and what you got instead
<fbt> I'd like to think I'm not new to asking questions, but everyone slips up due to being lazy sometimes.
dminuoso has quit [Ping timeout: 265 seconds]
alfiemax has quit [Remote host closed the connection]
<fbt> And yeah, show what you wanted, tried and recieved, keep the XY problem in mind, etc :)
Snickers has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
a7d7p has joined #ruby
alfiemax has joined #ruby
<workerbeetwo> apeiros: http://pastebin.com/DCa15Chu
<ruby[bot]> workerbeetwo: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<fbt> But some questions will still be weird, as I'm still trying to wrap my head around the OOP model .-.
a7d7p has quit [Client Quit]
tk__ has quit [Quit: ばいばい]
marchelzo has joined #ruby
pawnbox has quit [Remote host closed the connection]
<apeiros> fbt: sure. that's the advantage of irc, it's interactive.
scorphus has quit [Changing host]
scorphus has joined #ruby
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vqrs has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
JakFrist[WVU] has joined #ruby
<apeiros> workerbeetwo: your code contains line numbers?
pawnbox has quit [Remote host closed the connection]
<jeffreylevesque> this look reasonable - https://bpaste.net/show/c136cf689e97?
pawnbox has joined #ruby
<workerbeetwo> apeiros: no. it is copied from vim.
<workerbeetwo> forgot to set off the numbers
pawnbox has quit [Read error: Connection reset by peer]
submitnine has quit [Remote host closed the connection]
pawnbox has joined #ruby
<apeiros> workerbeetwo: looks like you've got non-space/newline whitespace there
<apeiros> workerbeetwo: http://www.fileformat.info/info/unicode/char/2002/index.htm - that's in your pastebin
pawnbox has quit [Read error: No route to host]
<apeiros> and just for the record, I'll not open another pastebin.
pawnbox has joined #ruby
mjuszczak has joined #ruby
dminuoso has joined #ruby
joast has joined #ruby
<apeiros> dminuoso: _ at the end of a variable name? what's the intended meaning?
zacts has joined #ruby
<dminuoso> apeiros: Originally this came as a mixin, so I used it to prevent potential conflicts.
<apeiros> interesting code, relations for PORO :)
<dminuoso> Yeah.
<apeiros> somehow I thought tenderlove had already done something for that
vqrs has joined #ruby
<apeiros> dminuoso: ah, I see. I usually "namespace" such mixin variables (if I can't avoid them altogether), e.g. @mylib_foovariable
pawnbox has quit [Ping timeout: 252 seconds]
<dminuoso> apeiros: Next step is to fake reflections, so that the integration into various rails things is much nicer.
jphase has joined #ruby
_whitelogger has joined #ruby
<apeiros> certainly looks like something which can be serious fun (but might also be pain… let's hope it stays at fun :D)
theRoUS has quit [Changing host]
theRoUS has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
asal has quit [Ping timeout: 244 seconds]
tvw has quit [Read error: Connection reset by peer]
<dminuoso> apeiros: The real pain is looking at those gists, and wondering wtf vim is doing - I dont understand why I still have tabs in my files.
jokester has quit [Ping timeout: 265 seconds]
hahuang62 has joined #ruby
<apeiros> dminuoso: heh. I use sublime text. it sometimes detects 3, 5 or even 8 spaces for indent. I have no effing clue how it comes to that conclusion.
OnyxRaven has joined #ruby
nando293921 has joined #ruby
jokester has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
rippa has joined #ruby
tyang has quit [Ping timeout: 264 seconds]
elifoster has joined #ruby
dionysus69 has joined #ruby
<jeffreylevesque> dminuoso: what do you think of https://bpaste.net/show/20bac097e186
nettoweb has joined #ruby
teclator has joined #ruby
<dminuoso> jeffreylevesque: I think Puppet problems belong to #puppet
hahuang62 has quit [Ping timeout: 255 seconds]
<dminuoso> jeffreylevesque: I barely know anything about puppet, so I cant even say whether anything what you are doing is sensible. Perhaps puppet has facilities to do any of that for you
<jeffreylevesque> no problem
<jeffreylevesque> yeah, i'm a noob in both fields
<jeffreylevesque> this is like my first ruby script
<jeffreylevesque> thanks for your help
<dminuoso> jeffreylevesque: http://i.stack.imgur.com/1Vuvp.png
<dminuoso> jeffreylevesque: You can use this general chart as a guideline.
<jeffreylevesque> thank you very much
<jeffreylevesque> and sorry to bother this morning
a7d7p has joined #ruby
jackhill_ is now known as jackhill
wingwalker has joined #ruby
tdy has joined #ruby
habitullence has quit [Quit: habitullence]
LoneHerm_ has joined #ruby
<OnyxRaven> I’m getting a ruby crash when using sqlite3 after forking (eg, in spring, or even in a spec) - It started when upgrading to osx sierra - https://gist.github.com/onyxraven/ce190bc4c9f31db07ec3c27578d33641 - There were a bunch of notes about troubles python had with the sierra bundled libsqlite3. has anyone run across this?
hobodave has joined #ruby
polishdub has joined #ruby
last_staff has quit [Quit: runs]
codelogix has joined #ruby
gregf_ has joined #ruby
malcolmva has quit [Ping timeout: 272 seconds]
Jardayn has quit [Read error: Connection reset by peer]
aegis3121 has quit [Ping timeout: 265 seconds]
threh has joined #ruby
redpants has joined #ruby
sumobob has joined #ruby
TvL2386 has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
jonyijoe has joined #ruby
fredlinhares1 has joined #ruby
NTrash has joined #ruby
JeanCarloMachado has quit [Ping timeout: 244 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso> OnyxRaven: Stack traces please.
<OnyxRaven> the gist above is from the osx crash log. Do you want the ruby side as well?
_whitelogger_ has joined #ruby
_whitelogger has quit [Remote host closed the connection]
malcolmva has joined #ruby
LuckyABA has joined #ruby
[k-_ has quit [Read error: Connection reset by peer]
[k- has joined #ruby
<apeiros> OnyxRaven: if you compiled against system sqlite3 - did you recompile?
<OnyxRaven> I have, yeah
truenito has joined #ruby
<OnyxRaven> full gem pristine
tyang has joined #ruby
<OnyxRaven> i’ve also tried to get it to compile against homebrew but I cant seem to get it to do so
truenito has quit [Remote host closed the connection]
truenito has joined #ruby
truenito has quit [Remote host closed the connection]
mikecmpb_ has joined #ruby
jphase_ is now known as jphase
truenito has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
kevinvw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aryaching has quit [Quit: Bye]
aryaching has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
Johne has joined #ruby
aganov has quit [Quit: Leaving]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Johne> whats the best way to go about converting time zones? date string I have is '2016-09-26T22:00:00Z'
habitullence has joined #ruby
dyjakan has quit [Quit: leaving]
bmurt has joined #ruby
KnownSyntax has quit [Ping timeout: 276 seconds]
ItSANgo has joined #ruby
weaksauce has joined #ruby
eljimmy has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
Oclair has joined #ruby
mgorbach has quit [Ping timeout: 265 seconds]
Rufus has quit [Quit: Textual IRC Client: www.textualapp.com]
skweek has joined #ruby
Oclair_ has quit [Ping timeout: 265 seconds]
aswen has quit [Quit: WeeChat 1.5]
theRoUS has left #ruby ["Off to another part of the maze of twisty little passages"]
marchelzo has quit [Ping timeout: 244 seconds]
mgorbach has joined #ruby
croberts has quit [Ping timeout: 244 seconds]
johnmilton has quit [Ping timeout: 252 seconds]
johnmilton has joined #ruby
marchelzo has joined #ruby
wingwalker has quit [Ping timeout: 255 seconds]
croberts has joined #ruby
aufi has quit [Quit: Leaving]
mikee has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
nando293921 has joined #ruby
LemonJuice has joined #ruby
joelwallis has quit [Quit: Leaving]
spiette has joined #ruby
<chris2> and what do you want?
[Butch] has joined #ruby
marchelzo has quit [Ping timeout: 255 seconds]
johnmilton has quit [Ping timeout: 244 seconds]
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnmilton has joined #ruby
nikivi has joined #ruby
<Johne> to change it to Eastern time instead of UTC, I see lots of rails stuff
JakFrist[WVU] has joined #ruby
JakFrist[WVU] has quit [Client Quit]
threh has joined #ruby
bsrd has joined #ruby
flying has quit []
SteenJobs has quit [Quit: SteenJobs]
marchelzo has joined #ruby
craigp has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SteenJobs has joined #ruby
craigp has quit [Client Quit]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
craigp has joined #ruby
conta has quit [Ping timeout: 264 seconds]
sumobob has quit [Ping timeout: 272 seconds]
Asher has quit [Quit: Leaving.]
rodfersou is now known as rodfersou|lunch
alfiemax has quit [Remote host closed the connection]
Asher has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
redpants has quit [Ping timeout: 244 seconds]
craigp has quit [Ping timeout: 264 seconds]
marchelzo has quit [Ping timeout: 252 seconds]
amclain has joined #ruby
ben__ has joined #ruby
jaguarmagenta has joined #ruby
programmerq has joined #ruby
Guest38 has joined #ruby
ben______ has quit [Ping timeout: 250 seconds]
jsrn_ has quit [Quit: Leaving]
dionysus70 has joined #ruby
teclator has quit [Ping timeout: 265 seconds]
<chris2> is your computer time zone eastern?
<chris2> then just
<chris2> >> Time.parse('2016-09-26T22:00:00Z').localtime
<ruby[bot]> chris2: # => undefined method `parse' for Time:Class (NoMethodError) ...check link for more (https://eval.in/650383)
<chris2> >> require 'time'; Time.parse('2016-09-26T22:00:00Z').localtime
<ruby[bot]> chris2: # => 2016-09-26 22:00:00 +0000 (https://eval.in/650384)
Travis-42 has quit [Ping timeout: 265 seconds]
<chris2> well, that server runs on UTC it seems :)
marchelzo has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
Travis-42 has joined #ruby
craigp has joined #ruby
<Johne> what about not localtime then
ben__ has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
ben__ has joined #ruby
threh has quit [Ping timeout: 244 seconds]
icarus has joined #ruby
teclator has joined #ruby
avdi has quit [Ping timeout: 265 seconds]
<chris2> you can pass an offset to localtime, but not a zone name
<chris2> >> require 'time'; Time.parse('2016-09-26T22:00:00Z').localtime("+02:00")
<ruby[bot]> chris2: # => 2016-09-27 00:00:00 +0200 (https://eval.in/650385)
alfiemax has joined #ruby
jmcc____________ has quit [Read error: Connection reset by peer]
avdi has joined #ruby
bsrd has quit [Read error: Connection reset by peer]
jmcc____________ has joined #ruby
erlingur has quit [Ping timeout: 260 seconds]
aegis3121 has quit [Ping timeout: 240 seconds]
webus has joined #ruby
<Johne> ah, so theres no 'pretty' way of doing it.
marxarelli has joined #ruby
<chris2> i dunno one
<chris2> you can change ENV["TZ"] :>
<Johne> lol yea
<elomatreb> Johne: You can also use the Rails utility library in your own code, it's called ActiveSupport
<chris2> > no 'pretty' way of doing it. ;)
TomyWork has quit [Ping timeout: 240 seconds]
mjuszczak has quit []
tomphp has quit [Ping timeout: 252 seconds]
nikivi has quit [Quit: irc]
Silthias has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
mikecmpbll has joined #ruby
Couch has quit [Ping timeout: 265 seconds]
Silthias1 has quit [Ping timeout: 244 seconds]
mikecmpb_ has quit [Ping timeout: 264 seconds]
fullofca_ has joined #ruby
harfangk has joined #ruby
tvw has joined #ruby
eam_ is now known as eam
weckl has quit [Quit: Leaving]
duderonomy has quit [Ping timeout: 265 seconds]
lightener has joined #ruby
Silthias1 has joined #ruby
lightener has quit [Client Quit]
Snowy has quit [Remote host closed the connection]
Silthias has quit [Ping timeout: 276 seconds]
fullofcaffeine has quit [Ping timeout: 260 seconds]
threh has joined #ruby
bmurt has joined #ruby
fullofcaffeine has joined #ruby
fullofca_ has quit [Ping timeout: 272 seconds]
ben_____ has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
[k-_ has joined #ruby
watersoul has quit [Ping timeout: 250 seconds]
[k- has quit [Ping timeout: 265 seconds]
danostrowski has joined #ruby
tlaxkit has quit [Quit: tlaxkit]
breitz has joined #ruby
breitz has left #ruby [#ruby]
wugy has quit []
alfiemax has quit []
ben__ has quit [Ping timeout: 272 seconds]
nando293921 has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
mjuszczak has joined #ruby
jackjackdripper has joined #ruby
asal has joined #ruby
nando293921 has joined #ruby
frozengeek has quit [Ping timeout: 265 seconds]
roger_rabbit has joined #ruby
pawnbox has joined #ruby
tyang has quit [Ping timeout: 264 seconds]
miah_ is now known as miah
craigp has quit [Ping timeout: 252 seconds]
miah has quit [Quit: DevOps? DerpOps maybe!]
miah has joined #ruby
nikivi has joined #ruby
Eiam has joined #ruby
senayar has quit []
pawnbox has quit [Remote host closed the connection]
JoshS has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adac has joined #ruby
asal has quit [Ping timeout: 255 seconds]
mikecmpb_ has quit [Ping timeout: 255 seconds]
n8o- has quit [Quit: ZNC - http://znc.in]
cschneid_ has joined #ruby
NTrash has quit [Ping timeout: 244 seconds]
JeanCarloMachado has joined #ruby
n8o has joined #ruby
Pumukel has quit [Ping timeout: 276 seconds]
mjuszczak has quit []
jottr has quit [Quit: WeeChat 1.5]
claudiuinberlin has quit []
pawnbox has joined #ruby
mg^ has joined #ruby
webus has quit [Quit: goodbye]
bmurt has joined #ruby
codelogix has quit [Ping timeout: 272 seconds]
platzhirsch has quit [Quit: WeeChat 1.4]
jhack has joined #ruby
banisterfiend has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
mjuszczak has joined #ruby
jaruga___ has quit [Quit: jaruga___]
ta_ has joined #ruby
nitric has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
weaksauce has quit [Ping timeout: 265 seconds]
antgel has quit [Ping timeout: 244 seconds]
hahuang62 has joined #ruby
LoneHerm_ has joined #ruby
nogic has joined #ruby
jcao219 has joined #ruby
nogic has quit [Max SendQ exceeded]
scorphus has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
Contigi has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
Devalo has joined #ruby
craigp has joined #ruby
bsrd has joined #ruby
hahuang62 has quit [Ping timeout: 252 seconds]
conta has joined #ruby
LoneHerm_ has quit [Ping timeout: 276 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SuperLag has quit [Quit: leaving]
hahuang61 has quit [Quit: WeeChat 1.5]
bmurt has joined #ruby
mikecmpbll has joined #ruby
frozengeek has joined #ruby
frozengeek has quit [Remote host closed the connection]
MeMoc has joined #ruby
pwnd_nsfw has joined #ruby
wldcordeiro has quit [Ping timeout: 250 seconds]
gregf_ has quit [Ping timeout: 240 seconds]
Cohedrin has joined #ruby
bsrd has quit [Quit: WeeChat 1.5]
gizless has joined #ruby
MeMoc has left #ruby [#ruby]
the_drow has joined #ruby
sumobob has joined #ruby
Robtop__ has quit [Ping timeout: 272 seconds]
nankyokusei has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
bob434 has quit [Quit: This computer has gone to sleep]
the_drow has quit [Read error: Connection reset by peer]
maddmaxx_ has quit [Read error: Connection reset by peer]
bob434 has joined #ruby
maddmaxx_ has joined #ruby
the_drow has joined #ruby
sanket has joined #ruby
sanket has left #ruby ["Leaving"]
sanketdg has joined #ruby
bob434 has quit [Client Quit]
workerbeetwo has quit [Remote host closed the connection]
<sanketdg> Hi I wanted to know whether is it *required* to have the 'version' tag in a Gemfile?
<sanketdg> sorry I mean the ruby tag
jcao219 has quit [Ping timeout: 252 seconds]
<havenwood> sanketdg: no
<sanketdg> havenwood: cool thanks
nankyokusei has quit [Ping timeout: 265 seconds]
JakFrist[WVU] has joined #ruby
asal has joined #ruby
Dimik has joined #ruby
rcvalle has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
firstdayonthejob has joined #ruby
icarus has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
bmurt has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
threh has quit [Ping timeout: 252 seconds]
Devalo has quit [Remote host closed the connection]
conta has quit [Ping timeout: 265 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
bmurt has quit [Client Quit]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
aegis3121 has joined #ruby
Pupeno_ has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
asal has quit [Ping timeout: 264 seconds]
Devalo has joined #ruby
salut has quit [Quit: salut]
watersoul has joined #ruby
Pupeno__ has joined #ruby
wldcordeiro has joined #ruby
wldcordeiro has quit [Client Quit]
Devalo has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
rodfersou|lunch is now known as rodfersou
wldcordeiro has joined #ruby
bmurt has joined #ruby
Pupeno has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
ichkv has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
biberu has quit [Ping timeout: 265 seconds]
Devalo has joined #ruby
the_drow has joined #ruby
claudiuinberlin has joined #ruby
Pupeno_ has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
marchelzo has quit [Ping timeout: 272 seconds]
nando293921 has joined #ruby
pawnbox has joined #ruby
mjuszczak has quit []
Rodya_ has joined #ruby
bob434 has joined #ruby
Devalo has quit [Ping timeout: 244 seconds]
the_drow has quit [Read error: Connection reset by peer]
sanketdg has quit [Quit: Leaving]
hahuang65 has joined #ruby
the_drow has joined #ruby
codelogix has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 264 seconds]
AlphaAtom has joined #ruby
the_drow has joined #ruby
codelogix has quit [Ping timeout: 272 seconds]
pragmati- is now known as pragmatism
elifoster has quit [Ping timeout: 252 seconds]
hogetaro has joined #ruby
jenrzzz has joined #ruby
cevett has joined #ruby
hogetaro_ has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
asal has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.2 Aria]
the_drow has quit [Quit: This computer has gone to sleep]
mjuszczak has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
mjuszczak has quit [Client Quit]
BriFacto1ing has joined #ruby
JeanCarloMachado has quit [Ping timeout: 272 seconds]
theery has joined #ruby
shinnya has joined #ruby
Cohedrin_ has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
ramfjord has joined #ruby
BriFacto1ing is now known as BriNutButterSand
jaguarmagenta has joined #ruby
tyang has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
Snowy has joined #ruby
ben__ has joined #ruby
mjuszczak has quit [Read error: Connection reset by peer]
Pupeno__ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
snguyen has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
replay has joined #ruby
banisterfiend has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
tyang has quit [Ping timeout: 264 seconds]
redpants has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
threh has joined #ruby
ben_____ has quit [Ping timeout: 272 seconds]
claudiuinberlin has joined #ruby
zeroDi has joined #ruby
mikecmpbll has joined #ruby
ramfjord_ has joined #ruby
marxarelli is now known as marxarelli|afk
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli|afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 276 seconds]
tyang has joined #ruby
BriNutButterSand is now known as BriCursion
chwbacca has joined #ruby
AnarchyAo has joined #ruby
habitullence has quit [Ping timeout: 244 seconds]
weaksauce has joined #ruby
marxarelli has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Xeago has quit [Ping timeout: 250 seconds]
habitullence has joined #ruby
marxarelli is now known as marxarelli|afk
Pumukel has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
tvw has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
marxarelli|afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
tvw has joined #ruby
claudiuinberlin has joined #ruby
biberu has joined #ruby
CSWookie has quit [Quit: Page closed]
Devalo has joined #ruby
bocaneri has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
Zamyatin has joined #ruby
erlingur has joined #ruby
tdy has joined #ruby
Devalo has joined #ruby
inukshuk_ has joined #ruby
inukshuk_ has quit [Client Quit]
<l4v2> WHen I click on the lego block on the ruby api docs to view the source. Is that source c code to show how to write the method or is it something? https://ruby-doc.org/core-2.2.0/Array.html#method-i-flatten
codelogix has joined #ruby
<baweaver> It's literally the source code that defines that method in C.
<l4v2> It seems like it is just a small snippet to the library, but does not show how the method was created.
<baweaver> The docs are extracted from comments in the C libraries
<baweaver> so whatever happens to be right below a doc comment is rendered as its source.
jshjsh has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
<baweaver> off I go
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has quit [Ping timeout: 260 seconds]
JoshS has quit [Ping timeout: 265 seconds]
icarus has joined #ruby
ramfjord_ has quit [Ping timeout: 252 seconds]
cdg has quit [Remote host closed the connection]
antgel has joined #ruby
blackmesa has joined #ruby
ben__ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bob434 has quit [Quit: This computer has gone to sleep]
symm- has joined #ruby
pandaant has quit [Remote host closed the connection]
snguyen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JakFrist[WVU] has joined #ruby
agent_white has joined #ruby
<agent_white> Afternoon' folks
ramfjord has joined #ruby
adac has quit [Ping timeout: 260 seconds]
LoneHermit has joined #ruby
ratatine has joined #ruby
miqlas-H has joined #ruby
Pupeno has quit [Remote host closed the connection]
fxn has joined #ruby
ben__ has joined #ruby
<l4v2> baweaver so it down’t show the code used to solve it? And if it did it would be in C right?
LoneHermit has quit [Ping timeout: 240 seconds]
<l4v2> I just want to see how they wright these methods to see if my thinking is the same
Pupeno has joined #ruby
<l4v2> never mind, they do solve them, but it’s in C
SeepingN has joined #ruby
johnmilton has quit [Remote host closed the connection]
jenrzzz has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
passbe has quit [Ping timeout: 272 seconds]
Devalo has joined #ruby
sumobob has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Xiti has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
Xiti has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
hahuang62 has joined #ruby
sumobob has joined #ruby
ChiefAlexander_ has joined #ruby
Xiti` has quit [Ping timeout: 255 seconds]
aegis312_ has joined #ruby
nando293921 has quit [Ping timeout: 272 seconds]
Xiti has joined #ruby
Devalo has quit [Ping timeout: 265 seconds]
ChiefAlexander has quit [Ping timeout: 265 seconds]
<ironcamel> is there a way to make ruby automatically raise an exception if any system or `` command fails (like perl's autodie) ?
aegis3121 has quit [Ping timeout: 252 seconds]
<bougyman> I wrap those in a #run method for that.
<bougyman> basically checks $? after each command and raises on fail.
<ironcamel> a custom run method right?
<bougyman> correct.
<ironcamel> ok, that works
hahuang62 has quit [Ping timeout: 255 seconds]
csk has quit [Read error: Connection reset by peer]
SteenJobs has quit [Quit: SteenJobs]
<Papierkorb> ironcamel: Basically I do: module SafeShell; def system(*args); Kernel.system(*args); raise "it broke" unless $?.success?; end; end
<Papierkorb> And then include that module wherever you need it
Pupeno has quit [Remote host closed the connection]
<adaedra> You could do a refinement now :p
passbe has joined #ruby
<ironcamel> nice
antgel has quit [Ping timeout: 244 seconds]
stamina has quit [Ping timeout: 265 seconds]
BillSussman has joined #ruby
antgel has joined #ruby
Pupeno has joined #ruby
SteenJobs has joined #ruby
AndyBotwin has quit [Ping timeout: 255 seconds]
csk has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
sai_ has joined #ruby
aswen has joined #ruby
skweek has quit [Ping timeout: 265 seconds]
johnmilton has joined #ruby
platzhirsch has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aswen has quit [Client Quit]
dionysus69 has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
aswen has joined #ruby
sai__ has joined #ruby
Snowy has quit [Ping timeout: 265 seconds]
sai_ has quit [Read error: Connection reset by peer]
pokalyis has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
threh has quit [Ping timeout: 244 seconds]
<ironcamel> Papierkorb: does that alter the system method globally? even outside of the class where you included that module?
theery has quit [Remote host closed the connection]
<Papierkorb> ironcamel: No, it does not
<ironcamel> ok good
rikai_ is now known as rikai
rikai has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AlexxNica has joined #ruby
rikai has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
Guest21 has joined #ruby
aswen has quit [Quit: WeeChat 1.5]
sai__ is now known as _mross
aswen has joined #ruby
tomphp has joined #ruby
sumobob has quit [Ping timeout: 255 seconds]
Guest21 has quit [Client Quit]
antgel has quit [Ping timeout: 272 seconds]
threh has joined #ruby
rnda has joined #ruby
redpants has quit [Ping timeout: 260 seconds]
nando293921 has joined #ruby
chelly has joined #ruby
sumobob has joined #ruby
tvw has quit []
hahuang62 has joined #ruby
ocbtec has quit [Quit: leaving]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Guest21 has joined #ruby
nikivi has quit [Quit: irc]
fxn has quit [Quit: bye]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz has quit [Ping timeout: 265 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
sumobob has quit [Ping timeout: 255 seconds]
the_drow has joined #ruby
bsrd has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
Guest21 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
Rutix has quit []
the_drow has joined #ruby
kingkong_ has quit [Quit: No Ping reply in 180 seconds.]
aswen has quit [Quit: WeeChat 1.5]
kingkong- has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
prawnzy has joined #ruby
Guest5325 is now known as sami
sergio_101 has joined #ruby
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aegis312_ has quit [Ping timeout: 276 seconds]
LyndsySimon has joined #ruby
soulisson has joined #ruby
sami has left #ruby [#ruby]
stamina has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
elifoster has joined #ruby
the_drow has joined #ruby
LuckyABA has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
aegis3121 has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
zacstewart has joined #ruby
jaguarmagenta has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Connection closed for inactivity]
jaguarmagenta has quit [Ping timeout: 265 seconds]
cdg has joined #ruby
truenito has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
the_drow has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
bob434 has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
replay has quit [Ping timeout: 244 seconds]
soulisson has quit [Quit: Quitte]
fullofcaffeine has quit [Remote host closed the connection]
Guest43 has joined #ruby
Guest43 has joined #ruby
Guest43 has quit [Changing host]
Guest43 is now known as Rufus
fullofcaffeine has joined #ruby
futilegames has joined #ruby
GreatSUN has quit [Quit: Page closed]
tyang has quit [Ping timeout: 255 seconds]
codelogix has quit [Ping timeout: 276 seconds]
<fbt> So. I want my mainloop in a script to wait for data input from threads. What is the best way to do that? So far I have a script that just checks a global hash all the time, but that's obviously far from ideal
<fbt> This is what I came up with
codelogix has joined #ruby
Devalo has quit [Remote host closed the connection]
<fbt> As expected, it hogs a CPU thread
Devalo has joined #ruby
marxarelli has joined #ruby
KnownSyntax has joined #ruby
fullofcaffeine has quit [Ping timeout: 264 seconds]
Xaitec has joined #ruby
<fbt> Queue seems to be the answer actually
<fbt> Wait, no. I might be misunderstanding something
fullofcaffeine has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
lel has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
gizmore has joined #ruby
gizless has quit [Ping timeout: 265 seconds]
Devalo has quit [Ping timeout: 265 seconds]
SteenJobs has joined #ruby
the_drow has joined #ruby
brendan- has joined #ruby
Groscheri has joined #ruby
raldu has quit [Ping timeout: 250 seconds]
futilegames has quit [Quit: futilegames]
<fbt> Basically I need my mainloop to only do something when a thread signals it to do so
Xaitec has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving]
fullofcaffeine has quit [Remote host closed the connection]
tomphp has joined #ruby
fullofcaffeine has joined #ruby
SuperLag has joined #ruby
Pumukel has quit [Remote host closed the connection]
<havenwood> fbt: how about a Fiber for the main loop?
<fbt> Reading about that...
matp has quit [Quit: Bye!]
<fbt> So I create a fiber and resume it from threads when I need to update the data?
beauby has joined #ruby
<havenwood> fbt: yeah, fibers can be resumed like that and are fairly lightweight. say more about what you're doing?
fullofcaffeine has quit [Ping timeout: 276 seconds]
<fbt> I'm rewriting my lemonbar script in ruby
<fbt> It's in zsh currently
JakFrist[WVU] has joined #ruby
JakFrist[WVU] has quit [Client Quit]
LoneHerm_ has joined #ruby
matp has joined #ruby
elastix has joined #ruby
<havenwood> fbt: i'm not sure what that entails, but you might want to also look at reactor primative like nio4r: https://github.com/celluloid/nio4r
tyang has joined #ruby
<havenwood> or say more about the specifics of what you're trying to achieve?
csk has quit [Read error: Connection reset by peer]
the_drow has quit [Read error: Connection reset by peer]
futilegames has joined #ruby
<havenwood> fbt: The concurrent-ruby gem is a high quality grab bag of concurrency primitives in Ruby that you also might want to look at: https://github.com/ruby-concurrency/concurrent-ruby
pawnbox_ has joined #ruby
<fbt> Well. The thing is supposed to it there waiting for data from various modules to update, then re-draw the whole panel
<toertore> fibers can't be resumed across threads
pawnbox has quit [Read error: Connection reset by peer]
bob434 has quit [Quit: This computer has gone to sleep]
the_drow has joined #ruby
<fbt> to sit*
LoneHerm_ has quit [Ping timeout: 265 seconds]
<toertore> fbt: Queue will probably work
claudiuinberlin has quit []
<fbt> I don't seem to quite get it or find an example that would make sense to me :<
<fbt> Being dumb is hard
redpants has joined #ruby
<toertore> loop{ data = q.pop; puts advance_state(data) }
jshjsh has quit [Ping timeout: 265 seconds]
nando293921 has quit [Ping timeout: 255 seconds]
<fbt> Oh. q.pop blocks!
<toertore> yes
codelogix has quit [Ping timeout: 240 seconds]
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
<fbt> Oh this was so simple D:
replay has joined #ruby
moneylotion has quit [Ping timeout: 260 seconds]
<fbt> Yep, it works very well
<fbt> I just update the hash and push into the queue
<fbt> Thanks, guys. Although I will probably ask many more questions during this project
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_drow has quit [Read error: Connection reset by peer]
csk has joined #ruby
blackmesa has quit [Quit: WeeChat 1.5]
blackmesa has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
sadin has joined #ruby
tyang has quit [Ping timeout: 264 seconds]
moneylotion has joined #ruby
nando293921 has joined #ruby
the_drow has joined #ruby
fullofcaffeine has joined #ruby
dminuoso has joined #ruby
erlingur has quit [Ping timeout: 244 seconds]
futilegames has quit [Quit: futilegames]
Tele has quit [Ping timeout: 272 seconds]
pawnbox_ has quit [Remote host closed the connection]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ichkv has quit [Remote host closed the connection]
fnovd has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
Tele has joined #ruby
elifoster has quit [Quit: class]
nando293921 has joined #ruby
<fbt> Interesting. My script works as intended (seemingly), but lemonbar won't update. That's... weird. It happily updates from a simple while loop.
craigp has quit [Ping timeout: 244 seconds]
the_drow has quit [Read error: Connection reset by peer]
JeanCarloMachado has joined #ruby
codelogix has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
<fbt> Yeah, it's supposed to update on a new line
<fbt> And it does with a shell script, doesn't with a ruby one
<fbt> I've even written a dumb one that just repeats a line in a loop
fredlinhares1 has quit [Quit: WeeChat 1.4]
<toertore> try STDOUT.sync = true
gnufied has joined #ruby
djbkd has quit [Remote host closed the connection]
the_drow has joined #ruby
<fbt> Yep. Works.
djbkd has joined #ruby
sergio_101 has quit [Quit: Textual IRC Client: www.textualapp.com]
jhack0 has joined #ruby
<fbt> I've even encountered the exact same problem in C and forgot
haylon_ has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
jhack has quit [Ping timeout: 240 seconds]
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
pwnd_nsfw has quit [Ping timeout: 272 seconds]
ledestin has joined #ruby
prawnzy has quit [Remote host closed the connection]
<adaedra> C should by default flush on \n. Ruby, on the other hand, stops automatically flushing when it detects a non-terminal output.
bauruine has quit [Quit: ZNC - http://znc.in]
hobodave has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
<Johne> how do i determine if a hash exists or not? .empty? isnt doing it for me
whathapp_ has joined #ruby
bauruine has joined #ruby
<toertore> Johne: provide more context
<Johne> Hash["a" => 100, "b" => 200].empty?
whathappens has quit [Ping timeout: 240 seconds]
<Johne> returns false
<aegis3121> Seems...correct?
<dminuoso> Johne: What exactly are you trying to do?
<Johne> so lets say i do this Hash["a" => 100, "b" => 200][0].empty?
<Johne> I get an error
<dminuoso> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
Rajamaa has quit [Quit: Konversation terminated!]
<dminuoso> Johne: Provide more context still.
<dminuoso> Or gist the whole thing.
<aegis3121> A gist of your console after trying all of these would probably be most helpful.
vqrs has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
_mross has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
vqrs has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
the_drow has quit [Ping timeout: 265 seconds]
Rajamaa has joined #ruby
the_drow has joined #ruby
BillSussman has quit [Quit: Leaving]
<Johne> json converted to hash, so if the json doesnt exist... there's my problem
hahuang61 has joined #ruby
<Johne> json path*
Snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 252 seconds]
<aegis3121> well, you're accessing a key of 0 in a hash. And getting nothing, because that key doesn't exist.
hahuang62 has quit [Ping timeout: 240 seconds]
<dminuoso> boy.
SeepingN has joined #ruby
_mross has joined #ruby
wldcordeiro has quit [Ping timeout: 244 seconds]
_mross has quit [Remote host closed the connection]
bsrd has quit [Quit: WeeChat 1.5]
<toertore> Johne: you should take some more time to read about how various parts of ruby work
_mross has joined #ruby
<dminuoso> Johne: That condition will *always* yield false.
<dminuoso> Johne: do not use defined? - it will not do what you think it does.
<dminuoso> Johne: And in case you do not believe me: https://eval.in/650452
moeSizlak has joined #ruby
<moeSizlak> datamapper noob. I create a data model called IMDBCacheEntry
ldnunes has quit [Quit: Leaving]
<moeSizlak> datamapper creates a sqlite table called imdb_cache_entries
<moeSizlak> how/why?
the_drow_ has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
eizua has joined #ruby
<dminuoso> Johne: And the second check against it, will *always* say that tv is defined?
<dminuoso> Johne: https://eval.in/650454
<dminuoso> Johne: So yeah, do not ever rely on whether something is defined in Ruby.
_mross has quit [Client Quit]
SteenJobs has joined #ruby
<Johne> but this has nothing to do with that, I'm dealing with the hashes on line 32
<dminuoso> Johne: Im just pointing out you have some serious flaws in your code. But feel free to ignore it.
<dminuoso> Johne: if game['linescore']['currentPeriodOrdinal'].empty? == false
<aegis3121> Right, that's failing because not everything responds to empty?
sumobob has joined #ruby
<Johne> I'm not going to ignore it :) just trying to figure out my initial question
<dminuoso> Johne: do this instead: if !game['linescore']['currentPeriodOrdinal'].empty?
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Johne> its not empty, it doesn't exist sometimes.
<aegis3121> So you'd want to check if it's #nil?
<dminuoso> Johne: My point is just, don't compare boolean against a boolean such as: foo.exists? == false
<dminuoso> Johne: if !foo.exists?; unless foo.exists?; if not foo.exists?; those three are tons better than: if foo.exists? == false
<Johne> in tcl i would do if [dict exists]
the_drow_ has quit [Read error: Connection reset by peer]
craigp has joined #ruby
the_drow has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
SteenJobs has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
<Johne> ah nice nil? is what I needed now to clean up a lot
<dminuoso> Johne: Even that you don't need to test for, nil evaluages as falsy.
<dminuoso> >> if nil; puts "is truthy"; else; puts "is falsey"; end
<ruby[bot]> dminuoso: # => is falsey ...check link for more (https://eval.in/650455)
<baweaver> careful with the english one
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> aegis3121: this will save you time
<baweaver> &ri NilClass#nil?
banisterfiend has joined #ruby
<aegis3121> yea, I just always forget what the ampersand shortcut is.
<baweaver> assuming you're auth'd
ramortegui has quit [Quit: Ex-Chat]
<aegis3121> No idea, let's find out.
chouhoulis has joined #ruby
<aegis3121> &ri NilClass#nil?
jeffreylevesque has quit [Ping timeout: 272 seconds]
<aegis3121> yea, figured. And as I typed it, realized you meant against the Nickserv not...some other authorization
<aegis3121> It's monday. I'm not doing great lol.
rodfersou has quit [Quit: leaving]
craigp has quit [Ping timeout: 272 seconds]
<baweaver> better than most
Burgestrand has joined #ruby
eizua has quit [Remote host closed the connection]
<strongco1e> is there a built in command to run `gem build` and `gem install` or should I make a Rake task?
ninja007 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
d10n-work has joined #ruby
chouhoulis has joined #ruby
Ishido has quit [Remote host closed the connection]
<toertore> strongco1e: what do you need it for?
<ninja007> Hi
sniff__ has quit [Quit: sniff__]
nitric_ has joined #ruby
sniff_ has joined #ruby
djbkd has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<strongco1e> toertore local gem development
<strongco1e> very lazy to issue 2 commands
<strongco1e> s/very/too
<strongco1e> why the fuck is my nickname like this
strongco1e is now known as strongcode
sumobob has quit [Ping timeout: 272 seconds]
dminuoso has quit [Ping timeout: 272 seconds]
nitric has quit [Ping timeout: 272 seconds]
wldcordeiro has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
the_drow has joined #ruby
<toertore> strongcode: why do you need it for local development?
tyang has joined #ruby
<ninja007> any one know if there is a hash value compare function?
Groscheri has quit [Quit: Quis custodiet ipsos custodes ?]
<ninja007> recursively compare two hashes — which values could be array, string, or another contained hash?
<toertore> strongcode: more to the point: why are you building and installing a gem during development?
<toertore> Hash#== works like that ninja007
jcao219 has joined #ruby
<ninja007> what does that mean?
<strongcode> its a command line gem and I want to test the menu system interactively
SuperLag has quit [Quit: Lost terminal]
<ninja007> hash ‘#==‘ ?
<toertore> if you're having issues then it's because your concept of equality is not the same as that defined by *#==
stamina has quit [Ping timeout: 244 seconds]
<toertore> strongcode: right. so why are you building and installing it?
sumobob has joined #ruby
<strongcode> to use the executable in /bin
<strongcode> and test the menu system interactively
<ninja007> Hi Toertore,
<ninja007> I’m new to Ruby, what is the operation ‘#==‘?
<ninja007> or how to use it? thanks.
<toertore> strongcode: is there something special in your build that results in something that you don't have before?
<toertore> ninja007: provide more context
<toertore> context means code
<ninja007> No problem
<ninja007> I have two hashes,
<toertore> ?gist
toertore is now known as toretore
<ninja007> ha={1=>1, 2=>[1,2], 3=>{1=>1, 2=>2, 3=>3}}
vqrs has quit [Ping timeout: 264 seconds]
<ninja007> hb={1=>1, 2=>[1,2,3], 3=>{1=>1, 2=>2}}
<ninja007> how to compare that ha and hb have same keys,
<ninja007> and same values recursively?
<toretore> ha == hb => false; those are not equal
<toretore> you have a definition of equality unique to your context
<ninja007> how the ‘==‘ operator works?
<toretore> ?gist some real data
<ruby[bot]> toretore: I don't see no some, whom should I tell about gist?
<ninja007> does it compare recursively? or just compare pointers, or first a few levels?
<toretore> goddamnit
jackjackdripper has joined #ruby
<toretore> ninja007: http://www.rubydoc.info/stdlib/core/Hash#%3D%3D-instance_method
threh has quit [Ping timeout: 260 seconds]
vqrs has joined #ruby
<ninja007> @toretore, thanks for your link — but the example only shows one layer, really shallow
<toretore> it explains exactly and completely how it works
<ninja007> I’m not clear whether it works for a complex data structure, say, hash of hash, hash of array, etc.
<toretore> but you have not yet managed to define your problem in a way that i can answer it
<ninja007> Never mind, I’ll throw a complex data structure onto it…
<ninja007> and see ‘==‘ works or not
<ninja007> at least the examples shows it is not comparing memory pointers. :)
gingray has quit [Ping timeout: 240 seconds]
the_drow has quit [Read error: Connection reset by peer]
<strongcode> toretore running the executable directly doesn't pick up my code changes
<strongcode> which I find odd
Yzguy has joined #ruby
<toretore> strongcode: what does running directly mean exactly?
<strongcode> `./bin/foo`
the_drow has joined #ruby
<toretore> what does bin/foo look like?
Rajamaa has quit [Read error: Connection reset by peer]
the_drow has quit [Client Quit]
mikecmpbll has joined #ruby
<strongcode> the answer was `ruby -Ilib ./bin/foo`
<toretore> that's because you had it installed as a gem, otherwise it would have given you a LoadError
craigp has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.4]
<strongcode> I do not have it installed
wldcordeiro has joined #ruby
<toretore> did you get an error?
<strongcode> no
<toretore> then it was in your load path somehow
<toretore> and if, as you say, it was "old code", then it was a different file
<strongcode> yes it is in the load path because that is what the `-I` flag is for
<strongcode> you're confused
<strongcode> we're talking about 2 separate instances
<toretore> what do you mean instances?
<strongcode> nevermind, this isn't worth clarifying
the_drow has joined #ruby
beauby has quit [Read error: Connection reset by peer]
the_drow has quit [Read error: Connection reset by peer]
replay has quit [Ping timeout: 244 seconds]
Burgestrand has quit [Quit: Textual IRC Client: www.textualapp.com]
chwbacca has quit [Remote host closed the connection]
the_drow has joined #ruby
blackwind_123 has quit [Ping timeout: 264 seconds]
craigp has quit [Ping timeout: 252 seconds]
fnovd has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
blackwind_123 has joined #ruby
prawnzy has joined #ruby
patarr has quit [Ping timeout: 272 seconds]
beauby has joined #ruby
<zenspider> WHY ARE NONE OF YOU MENTIONING THEIR USE OF TABS?!? HEATHENS
ixti has joined #ruby
<zenspider> strongcode: confirmed. -I is the right way to go while working in the codebase
<havenwood> ?tabs
<ruby[bot]> Ruby community standards recommend using 2 spaces as indentation (see https://github.com/bbatsov/ruby-style-guide#spaces-indentation and https://ukupat.github.io/tabs-or-spaces/).
SuperLag has joined #ruby
vqrs has quit [Ping timeout: 244 seconds]
<zenspider> ninja007: please read the doco on Object#== and friends.
<zenspider> ninja007: `ri Object.==` and `ri Hash.==` etc
<ninja007> Got it.
vqrs has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<baweaver> zenspider: there be a secret trick
<baweaver> &ri Object#==
the_drow has quit [Read error: Connection reset by peer]
<zenspider> baweaver: yeah. I don't care for that. I want people to learn to use their tools
<ninja007> @zhenspider, I read the doc with ‘ri',
biberu has quit [Read error: Connection reset by peer]
<ninja007> the problem lies in: the example are only one layer — I mean, the key, and values are of string/integer type,
<ninja007> not array/hash or other types.
<zenspider> ninja007: then you read more doco
<ninja007> the comments about Hash.== function
<zenspider> you need to read Array.== as well
<ninja007> said that is equality tests: each key-value pair should be the same —
<zenspider> this isn't hard. nor is it hard to experiment to answer your own question. irb is really good for this
last_staff has quit [Quit: goes moo moo]
<ninja007> I did that with my complex data example and it works!
<ninja007> the Hash.== does do recursively compare.
<ninja007> what I mean is, I’m new to Ruby, and find the comments to very concise — maybe elaborated with more advanced example could help a lot.
jeffreylevesque has joined #ruby
redpants has quit [Ping timeout: 244 seconds]
<ninja007> nevethelss, Ruby is cool!
<ninja007> and thanks a lot for help.
whathapp_ has quit [Remote host closed the connection]
the_drow has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rcvalle has quit [Quit: rcvalle]
AlexxNica has quit [Quit: AlexxNica]
Rickmasta has joined #ruby
rcvalle has joined #ruby
hutch34 has quit [Ping timeout: 265 seconds]
rcvalle has quit [Client Quit]
whathappens has joined #ruby
<baweaver> Ah, zenspider, did I show you what I did to a hash earlier?
<mikecmpbll> sounds dirty.
<zenspider> hah
<zenspider> yes it does
flying has joined #ruby
hutch34 has joined #ruby
<baweaver> Oh it is
GodFather has quit [Ping timeout: 265 seconds]
<baweaver> mikecmpbll: What do hash and proc have in common?
<mikecmpbll> is this a joke, before i put too much thought in to it?
<baweaver> No, but a safe assumption with me
<mikecmpbll> also, digging the path explode hash ...
<baweaver> Proc can be called with :[]
aegis3121 has quit [Ping timeout: 264 seconds]
<baweaver> which, handy enough, is the hash accessor
<baweaver> I'm going to remake it later to be a tree search that returns a new hash matching the structure
<zenspider> that's horrific
<mikecmpbll> oh yeah.
<baweaver> zenspider: you misspelled beautiful
<mikecmpbll> :D
firstdayonthejob has quit [Ping timeout: 255 seconds]
rcvalle has joined #ruby
NTrash has joined #ruby
ramfjord_ has joined #ruby
nitric_ has quit [Quit: sleep]
flying has quit [Client Quit]
icarus has quit [Ping timeout: 265 seconds]
<baweaver> DISCLAIMER: This should probably not ever be used in production anything
<baweaver> It makes Matz sad.
bronson has joined #ruby
jphase_ has joined #ruby
craigp has joined #ruby
<mikecmpbll> mais non. i can see it in ruby 3.
ramfjord has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 252 seconds]
icarus has joined #ruby
<baweaver> Je sais que les péchés que j'ai commis ici.
ChiefAlexander_ has quit [Remote host closed the connection]
<mikecmpbll> :D
<baweaver> Je ne demande pas pardon, pour ce que je l'ai fait est trop mal
<mikecmpbll> i thought peches was fish
<mikecmpbll> ah, pêche, fishing
<mikecmpbll> damn school-level french.
jphase has quit [Ping timeout: 244 seconds]
<baweaver> Sons fishy
jphase_ has quit [Ping timeout: 244 seconds]
<baweaver> Mi francés es malo con honestidad. Mi español es mejor, pero no mucho.
danostrowski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 252 seconds]
<baweaver> Though I could live without hunting for accent marks on this keyboard.
Joufflu has joined #ruby
Rufus has quit [Ping timeout: 244 seconds]
[k-_ has quit [Quit: -a- IRC for Android 2.1.32]
Yzguy has quit [Quit: Zzz...]
elastix has quit [Quit: elastix]
nitric has joined #ruby
Yzguy has joined #ruby
aries_liuxueyang has joined #ruby
bronson has joined #ruby
daffy_duck_2 has joined #ruby
whathappens has quit [Quit: Leaving...]
<Radar> baweaver: Using a mac?
<baweaver> Yep.
<baweaver> doesn't mean I'm fast at it
yasno_poka has quit [Ping timeout: 276 seconds]
<Radar> Hold down the keys (like a, e) and there'll be a little menu that pops up where you can find the accents. Not sure if you knew it?
<Radar> And you can do the é quickly by doing Opt+E, E.
<baweaver> well, that's faster.
<baweaver> ti ringrazio
Yzguy has quit [Client Quit]
snguyen has joined #ruby
<baweaver> Radar: did you see the evil I did to hashes?
workmad3 has quit [Ping timeout: 240 seconds]
<Radar> baweaver: not yet.
[Butch] has quit [Quit: I'm out . . .]
<baweaver> What does a Proc and a Hash have in common?
GodFather has joined #ruby
<baweaver> https://gist.github.com/baweaver/3273c626cc96a6959843beadb721d0b5 - The answer may shock and appall you
<Radar> They can both have #[] called on them
<baweaver> bingo
Yzguy has joined #ruby
<Radar> That's a good interview question :P
<baweaver> Now what happens when Hash can't find a key?
<matthewd> Also #to_proc
<Radar> It'll find the default value.
<baweaver> which is a block
<Radar> matthewd: #touche
<baweaver> Now what happens if someone were to put a lambda in there?
<Radar> Hey I accented that e!
artisangoose has joined #ruby
Guest38 has joined #ruby
<baweaver> Check that gist, and be afraid
beauby has quit [Read error: Connection reset by peer]
<baweaver> matthewd: you too, it's fun
bronson has quit [Ping timeout: 252 seconds]
horst has joined #ruby
redpants has joined #ruby
<baweaver> I'll probably make another version that treats it like a tree search, returning a hash with only matching nodes
fullofcaffeine has quit [Remote host closed the connection]
Jon30 has joined #ruby
minimalism has joined #ruby
<Radar> neat as
polishdub has quit [Quit: Leaving]
<Jon30> hey guys, i have a string with this unicode hexidecimal 0x2013 which is basically a non default dash character, but when it tries to output it in html file, it gives me some weird characters –
<Jon30> how can I correct it so it display the dash?
fullofcaffeine has joined #ruby
<Jon30> --instead of the strange characters
<matthewd> Jon30: What's actually in the string? And what are you doing with it at the moment?
<elomatreb> Jon30: Check if your web server serves the HTML file with the correct encoding
<Jon30> matthewd: writing it to HTML file
<Jon30> elomatreb: it's Rake
<elomatreb> Jon30: Your file is saved as UTF8?
<baweaver> >>dh=Hash.new{|h,k|if k=~/\./;k.split.reduce(h){|a,n|a[n]};else; h[k]=Hash.new(&:h.default_proc);end};dh[?1][?2][?3]=4;dh['1.2']
<ruby[bot]> baweaver: # => undefined method `default_proc' for :h:Symbol (NoMethodError) ...check link for more (https://eval.in/650462)
antru has quit [Ping timeout: 260 seconds]
<baweaver> >>dh=Hash.new{|h,k|if k=~/\./;k.split.reduce(h){|a,n|a[n]};else; h[k]=Hash.new(&h.default_proc);end};dh[?1][?2][?3]=4;dh['1.2']
<ruby[bot]> baweaver: # => stack level too deep (SystemStackError) ...check link for more (https://eval.in/650463)
beauby has joined #ruby
<baweaver> later it is then
<elomatreb> heh
<Jon30> elomatreb: I am saving it as a file, and then also saving it to MySQL database, Rails API then outputs it as those weird characters
jackjackdripper has joined #ruby
<elomatreb> Jon30: These "weird characters" are your Unicode dash, just interpreted as a different character encoding (Most likely something like ISO8859-*)
<elomatreb> You have to ensure that the encoding of your database, your file, and the transport are correct
<Jon30> hmm I found this htmlentities gem, hopefully it will resolve it.
rnda has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
<elomatreb> That's another solution, but if you have encoding errors, you really should look into what causes them, as it can be hard to fix if your data gets corrupted
Bellthoven has joined #ruby
ur5us has quit [Read error: No route to host]
ur5us has joined #ruby
cschneid_ has quit [Remote host closed the connection]
Bellthoven has quit [Client Quit]
<Jon30> elomatreb: I am fetching this text from another API - a very old one
<Jon30> htmlentities doesn't seem to be fixing the problem with those specific characters
beauby has quit [Read error: Connection reset by peer]
<elomatreb> Assuming it's a HTTP API, take a look at the headers sent by the API and check the Content-Type header
theery has joined #ruby
pragmaticus has quit [Ping timeout: 265 seconds]
Bellthoven has joined #ruby
<elomatreb> Maybe you can transcode to get proper UTF8 on your side
the_drow_ has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
bronson_ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
fnovd has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
OnyxRaven has quit [Quit: OnyxRaven]
AlphaAtom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fnovd has quit [Client Quit]
beauby has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
LuckyABA has joined #ruby
craigp has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
JakFrist[WVU] has joined #ruby
prawnzy has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 265 seconds]
bronson_ has quit [Ping timeout: 252 seconds]
gnufied has quit [Quit: Leaving]
theery has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 252 seconds]
elastix has joined #ruby
bronson has joined #ruby
LoneHerm_ has joined #ruby
theery has joined #ruby
brendan- has joined #ruby
elastix has quit [Client Quit]
bronson has quit [Ping timeout: 252 seconds]
arnonhongklay has joined #ruby
prawnzy has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
icarus has quit [Read error: Connection reset by peer]
AnarchyAo has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
bob434 has joined #ruby
the_drow_ has quit [Quit: This computer has gone to sleep]
maddmaxx_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
coolboy has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
Guest87605 has quit [Quit: Quit]
D9 has joined #ruby
tubuliferous has joined #ruby
nofxx has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
bronson_ has joined #ruby
Guest38 has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
beauby has quit [Read error: Connection reset by peer]
beauby has joined #ruby
antru has joined #ruby
a7d7p has quit [Quit: a7d7p]
bronson_ has quit [Read error: Connection reset by peer]
bronson has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
<fbt> Well. I have a working panel with two basic modules
<fbt> Yay
replay has joined #ruby
craigp has joined #ruby
sadin has quit [Remote host closed the connection]
rose__ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rose__> Hi. I'm trying to use Mechanize to download some images from a website, but this website is protected by CloudFlare, and in the Mechanize::get, I always get 503... Someone knows how can I stablish and maintain the connection?
duderono_ has joined #ruby
theery has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 272 seconds]
Yzguy has quit [Quit: Zzz...]
ur5us has joined #ruby
demophoon has quit [Disconnected by services]
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
FernandoBasso has quit [Ping timeout: 272 seconds]
beauby has quit [Read error: Connection reset by peer]
beauby has joined #ruby
nitric has quit [Ping timeout: 252 seconds]
nando293921 has quit [Ping timeout: 276 seconds]
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
cdg has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
AlexxNica has joined #ruby
koooge has joined #ruby
marxarelli is now known as marxarelli|afk
bronson has quit [Ping timeout: 252 seconds]
bronson_ has joined #ruby
<duderono_> Trying to run watir-webdriver. When this line runs: browser = Watir::Browser.new
<duderono_> ,it never seems to return. This is first time to run any scripted browser on this macOS computer. So clearly something need to be set up (or dialed down, like security settings or something). Firefox just launches, white page, and nothing. Any specific ideas as to what I could search and read?
A_Drone has joined #ruby
JakFrist[WVU] has joined #ruby
A_Drone has quit [Remote host closed the connection]
nando293921 has joined #ruby
bronson has joined #ruby
bronson_ has quit [Read error: Connection reset by peer]
Robtop__ has joined #ruby
A_Drone has joined #ruby
<rose__> Hi. I'm trying to use Mechanize to download some images from a website, but this website is protected by CloudFlare, and in the Mechanize::get, I always get 503... Someone knows how can I stablish and maintain the connection?
wldcordeiro has quit [Ping timeout: 244 seconds]
<SeepingN> duderono_: well it appears to be for browser based testing, so I'd assume you have to feed it a page to load and then directions on what to do
ramfjord_ has quit [Ping timeout: 244 seconds]
Yzguy has joined #ruby