havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
<wrkrcoop> what would i do then …
<wrkrcoop> raise an exception?
<shevy> well depends on the error
<shevy> (1) cat on the keyboard
<shevy> (2) someone wants to beat you up
<shevy> (3) corrupted filesystem
<jhass> wrkrcoop: what'll make your exception different than the one you're replacing with it?
<wrkrcoop> jhass: idk i was just going to google dif between exceptions and rescue
rueben has quit [Ping timeout: 276 seconds]
<shevy> you can rescue an exception
<wrkrcoop> so if something breaks during the process that everything else depends on would i just log that?
chopin has quit [Remote host closed the connection]
<jhass> wrkrcoop: it's the same difference between methods and arguments
<wrkrcoop> or put it in a failed queue
<shevy> you can rescue and log
<jhass> related but entirely different things
chopin has joined #ruby
<jhass> wrkrcoop: there's no general always correct "solution" here
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> it depends _heavily_ on context
<jhass> else why would make ruby make you deal with it in the first place instead of the one correct thing there would be to do?
<wrkrcoop> ok well im doing this thing where i grab data from 5 apis one after the other — all depend on each other … so if one breaks the rest cant continue so i should probably just log it or put it in a failed queue
<wrkrcoop> right?
lightt has quit [Remote host closed the connection]
<wrkrcoop> thats pretty logical thing it seems
araujo has quit [Ping timeout: 244 seconds]
chopin has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 260 seconds]
<jhass> can't judge, way to vague about what you even mean with what you say, what your actual situation is and what your implementation looks like
mikecmpbll has joined #ruby
ahuman has quit [Ping timeout: 276 seconds]
araujo has joined #ruby
roamingdog has quit [Remote host closed the connection]
ekinmur has joined #ruby
ekinmur has quit [Client Quit]
ahuman has joined #ruby
kalopsian has quit [Ping timeout: 244 seconds]
lopin has joined #ruby
araujo has quit [Max SendQ exceeded]
Axy has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
araujo has joined #ruby
saneax is now known as saneax_AFK
lictor36 has quit [Quit: lictor36]
noobsu has joined #ruby
ellistaa has joined #ruby
achamian has joined #ruby
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
xall has joined #ruby
griffindy has joined #ruby
lopin has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noobsu has quit [Ping timeout: 250 seconds]
ellistaa has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
lopin has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
achamian has quit [Ping timeout: 264 seconds]
RobertBirnie has joined #ruby
toretore has quit [Ping timeout: 250 seconds]
davedev24 has quit [Read error: Connection reset by peer]
frem_ has quit [Quit: Connection closed for inactivity]
<shevy> :D
davedev24 has joined #ruby
rcvalle has quit [Quit: rcvalle]
flashpoint9 has quit [Remote host closed the connection]
n_blownapart has joined #ruby
arooni has quit [Ping timeout: 250 seconds]
davedev2_ has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
RobertBirnie has quit [Ping timeout: 260 seconds]
nadir has quit [Quit: Connection closed for inactivity]
cschneid has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]
aupadhye has joined #ruby
rkazak has quit [Ping timeout: 276 seconds]
whathappens has joined #ruby
certainty has joined #ruby
blur3d has joined #ruby
giz|work has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
flashpoint9 has joined #ruby
mleung has quit [Quit: mleung]
palms has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 240 seconds]
soLucien has joined #ruby
whathappens has quit [Ping timeout: 276 seconds]
<soLucien> what is the difference between the bin\ folder and the exec\ folder ?
nankyokusei has quit [Ping timeout: 246 seconds]
n_blownapart has quit []
<havenwood> soLucien: Say more about the context?
nando293921 has quit [Quit: Lost terminal]
<soLucien> i executed bundle --binstubs exec
jackjackdripper has quit [Quit: Leaving.]
bruce_lee has quit [Remote host closed the connection]
<soLucien> then i got some auto-generated files in the exec\ folder
<soLucien> they are the same as the ones in bin\
binaryplease1 has quit [Ping timeout: 246 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
lightt has joined #ruby
hahuang65 has quit [Ping timeout: 272 seconds]
nando293921 has joined #ruby
marr has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 272 seconds]
benlieb has quit [Quit: benlieb]
wrkrcoop has quit [Quit: wrkrcoop]
djbkd has quit [Quit: My people need me...]
<jhass> well you explicitly made that folder then
terminal_ has joined #ruby
terminal_ has quit [Client Quit]
diegoaguilar has joined #ruby
hahuang65 has joined #ruby
flashpoint9 has joined #ruby
kies has quit [Ping timeout: 246 seconds]
Dios has joined #ruby
al2o3-cr has quit [Ping timeout: 272 seconds]
roamingdog has quit [Remote host closed the connection]
rkazak has joined #ruby
skweek has joined #ruby
ElFerna has joined #ruby
sartan has left #ruby ["Leaving"]
mistermocha has joined #ruby
dorje has quit [Ping timeout: 264 seconds]
aberen has joined #ruby
SilverKey has joined #ruby
nando293921 has quit [Ping timeout: 252 seconds]
aberen has quit [Ping timeout: 240 seconds]
highbass has quit [Remote host closed the connection]
MyMind has quit [Ping timeout: 244 seconds]
kies has joined #ruby
Wolland has joined #ruby
terminal_ has joined #ruby
xlegoman has joined #ruby
ekinmur has joined #ruby
sp4rrow has joined #ruby
yfeldblum has quit [Remote host closed the connection]
diegoaguilar has quit [Remote host closed the connection]
xlegoman has quit [Read error: Connection reset by peer]
SilverKey has quit [Quit: Halted.]
xlegoman_ has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zeroDi has quit [Quit: WeeChat 1.5]
xlegoman_ has quit [Client Quit]
xlegoman_ has joined #ruby
Dios has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
MyMind has joined #ruby
postmodern has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnDoe111 has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
rkazak has quit [Quit: Sleep.....ing....]
bmorrison has quit [Quit: bmorrison]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
textchimp has joined #ruby
Dios has joined #ruby
bmorrison has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnDoe111 has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
mistermocha has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
Ropeney has joined #ruby
<textchimp> does anyone have any experience require'ing external gems into Sonic Pi?
tmtwd has joined #ruby
CloCkWeRX has joined #ruby
dopamean_ has joined #ruby
palms has quit [Ping timeout: 252 seconds]
MrBusiness3 has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nando293921 has joined #ruby
<pilne> would anyone know why the ruboto IRB is no longer on the play store (i found the apk, just curious).
rueben has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
arkore has quit []
certainty has joined #ruby
roamingdog has joined #ruby
AcidCras_ has joined #ruby
harai54 has quit [Ping timeout: 246 seconds]
ensyde has joined #ruby
AcidCrash has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
harai54 has joined #ruby
tildes_ has quit [Ping timeout: 272 seconds]
aufi has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
yatish27 has quit [Remote host closed the connection]
rueben has quit [Ping timeout: 260 seconds]
Wolland has quit [Remote host closed the connection]
aufi has quit [Ping timeout: 250 seconds]
kgrz has joined #ruby
snath has joined #ruby
aberen has joined #ruby
Coldblackice has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest38 has joined #ruby
aberen has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
yfeldblum has joined #ruby
elifoster has joined #ruby
nocco has joined #ruby
xall_ has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev2_ has quit []
xall has quit [Ping timeout: 244 seconds]
araujo_ has joined #ruby
araujo has quit [Ping timeout: 264 seconds]
nocco has quit [Ping timeout: 272 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
MrBusiness3 has quit [Quit: Leaving]
houhoulis has joined #ruby
araujo_ has quit [Max SendQ exceeded]
whathappens has joined #ruby
skweek has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
araujo_ has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
c355e3b has quit [Quit: Connection closed for inactivity]
Wolland has joined #ruby
elifoster has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<darkman738> hey guys, I'm trying to sterilize input to prevent sql injection on a postgres db. Any suggestions on an easy way to do it? ActiveRecord::Base::sanitize is just quoting the string which is interfering with my query
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
xlegoman_ has quit [Quit: xlegoman_]
araujo_ has quit [Ping timeout: 258 seconds]
lightt has quit [Ping timeout: 244 seconds]
araujo has joined #ruby
whathappens has quit [Remote host closed the connection]
noobsu has joined #ruby
blockchan has joined #ruby
skweek has joined #ruby
lopin has quit [Ping timeout: 250 seconds]
lopin has joined #ruby
harai54 has quit [Ping timeout: 258 seconds]
noobsu has quit [Ping timeout: 260 seconds]
bmorrison has quit [Quit: bmorrison]
skweek has quit [Ping timeout: 264 seconds]
blockchan has quit [Ping timeout: 258 seconds]
tjbiddle has joined #ruby
<kgrz> darkman738: Better to ask in the #RubyOnRails channel.
<dsea> darkman738, whitelist queries or put an IPS in front
certainty has joined #ruby
nankyokusei has joined #ruby
cdg has joined #ruby
jackjackdripper has joined #ruby
LoneHerm_ has joined #ruby
darkman738 has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
ksinkar has joined #ruby
jancel has joined #ruby
certainty has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 272 seconds]
roamingdog has quit [Remote host closed the connection]
nocco has joined #ruby
mistermocha has quit [Remote host closed the connection]
vikaton has quit [Quit: Connection closed for inactivity]
LoneHerm_ has quit [Ping timeout: 276 seconds]
nando293921 has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
maletor has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
tmtwd has quit [Ping timeout: 252 seconds]
nocco has quit [Ping timeout: 258 seconds]
bmorrison has joined #ruby
MrBusiness has joined #ruby
ensyde__ has joined #ruby
skweek has joined #ruby
arlek has joined #ruby
araujo has quit [Ping timeout: 246 seconds]
aberen has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
p337rB has joined #ruby
ensyde has quit [Ping timeout: 264 seconds]
araujo has joined #ruby
ElFerna has joined #ruby
p337rB has quit [Ping timeout: 240 seconds]
aberen has quit [Ping timeout: 252 seconds]
nando293921 has joined #ruby
pilne has quit [Quit: Quitting!]
roamingdog has quit [Remote host closed the connection]
sandstrom has joined #ruby
RobertBirnie has joined #ruby
chipotle has quit [Ping timeout: 258 seconds]
roamingdog has joined #ruby
amclain has quit [Read error: Connection reset by peer]
amclain has joined #ruby
chipotle has joined #ruby
jaguarmagenta has joined #ruby
Yiota has joined #ruby
braincra- has quit [Quit: bye bye]
jaguarmagenta has quit [Ping timeout: 252 seconds]
bumao has quit [Ping timeout: 250 seconds]
roamingdog has quit []
Trynemjoel has quit [Quit: Quitting]
textchimp has quit [Remote host closed the connection]
kraken has joined #ruby
kraken is now known as kraken_
<kraken_> if I have an array that contains this: #<Person:0x000000020e61e8 @name="bob", @gender="male">
<kraken_> What is that?
<kraken_> is it an object? What does #<foo> signifiy?
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kraken_> nvm I got it :{
braincrash has joined #ruby
Trynemjoel has joined #ruby
k3rn31 has joined #ruby
jancel has quit [Remote host closed the connection]
jancel has joined #ruby
araujo has quit [Ping timeout: 260 seconds]
MrSamuel has joined #ruby
|8|chan has joined #ruby
nando293921 has quit [Quit: Lost terminal]
<|8|chan> HELLO NIGGERS
<|8|chan> =D
araujo has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
certainty has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
araujo has quit [Ping timeout: 258 seconds]
<Arcaire> wew lad
mistermocha has quit [Read error: Connection reset by peer]
<Arcaire> Dear diary,
<Arcaire> Today I yelled racist things in a programming language channel.
<Arcaire> It made me feel really good, today was productive!
<soLucien> hah
<Arcaire> Love,
<Arcaire> /baphomet/
kraken_ has quit [Quit: Leaving]
<soLucien> i think it is against freenode's policy
LoneHermit has joined #ruby
mistermocha has joined #ruby
<Arcaire> It generally appears that people with the disposition to scream such things don't have the comprehension ability to read something as long as Freenode's ToS.
<Arcaire> It is pretty long and convoluted, and it's more than >one greentext
certainty has quit [Ping timeout: 250 seconds]
<Arcaire> >meme arrow
<Arcaire> >pepe pointer
<Arcaire> whatever
maletor has quit [Quit: Computer has gone to sleep.]
johnDoe111 has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
araujo has joined #ruby
<soLucien> hahaha
<baweaver> !troll |8|chan
|8|chan was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
<Arcaire> Why even bother?
<Arcaire> Also, trolling is a bannable offence?
kareeoleez has joined #ruby
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
nocco has joined #ruby
* baweaver shrugs
<Arcaire> Build the wall ten feet higher around #ruby.
k3rn31 has joined #ruby
gix has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby
govg has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
duncannz has joined #ruby
nocco has quit [Ping timeout: 240 seconds]
achamian has joined #ruby
damncabbage has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nofxx has quit [Remote host closed the connection]
jancel has quit [Remote host closed the connection]
damncabbage has left #ruby [#ruby]
mistermocha has joined #ruby
gix has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 240 seconds]
tmtwd has joined #ruby
achamian has quit [Ping timeout: 264 seconds]
Yiota has joined #ruby
bumao has joined #ruby
fiifi has joined #ruby
aberen has joined #ruby
johnDoe111 has quit [Ping timeout: 276 seconds]
fiifi has quit [Client Quit]
mistermocha has joined #ruby
dh64 has joined #ruby
aberen has quit [Ping timeout: 252 seconds]
mistermo_ has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
tildes_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
Guest38 has joined #ruby
mistermocha has joined #ruby
lightt has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
craigp has quit [Ping timeout: 258 seconds]
jancel has joined #ruby
cdg has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
duncannz has quit [Ping timeout: 246 seconds]
johnDoe111 has joined #ruby
hk238 has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jancel has quit [Ping timeout: 252 seconds]
shakedown has joined #ruby
devbug has joined #ruby
tjbiddle has quit [Ping timeout: 244 seconds]
alfiemax has quit [Ping timeout: 250 seconds]
tubuliferous_ has quit [Ping timeout: 264 seconds]
soLucien has quit [Read error: Connection reset by peer]
lopin has quit [Read error: Connection reset by peer]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Wolland has quit [Remote host closed the connection]
johnDoe111 has quit [Ping timeout: 246 seconds]
guardianJ has joined #ruby
chouhoulis has joined #ruby
zapata has quit [Quit: WeeChat 1.5]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
ketherah has quit [Quit: Connection closed for inactivity]
shakedown has quit [Remote host closed the connection]
Dios has quit [Remote host closed the connection]
bmorrison has quit [Quit: bmorrison]
ElFerna has quit [Ping timeout: 276 seconds]
bmorrison has joined #ruby
kyrose has joined #ruby
nankyokusei has joined #ruby
certainty has joined #ruby
nadir has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
certainty has quit [Ping timeout: 246 seconds]
Respek has joined #ruby
lightt has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
govg has joined #ruby
blockchan has joined #ruby
chipotle_ has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
tmtwd has quit [Ping timeout: 276 seconds]
arlek has quit [Ping timeout: 250 seconds]
chipotle_ has quit [Max SendQ exceeded]
chipotle has joined #ruby
edwardly has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.5]
p337rB has joined #ruby
LoneHermit has quit [Remote host closed the connection]
aberen has joined #ruby
paul__ has quit [Ping timeout: 244 seconds]
der-landgraf has joined #ruby
der-landgraf has quit [Changing host]
der-landgraf has joined #ruby
arescorpio has joined #ruby
p337rB has quit [Ping timeout: 258 seconds]
tmtwd has joined #ruby
aberen has quit [Ping timeout: 252 seconds]
truenito has joined #ruby
alfiemax has joined #ruby
lightt has joined #ruby
johnDoe111 has joined #ruby
truenito has quit [Ping timeout: 276 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
etehtsea has joined #ruby
SpikeMaster has joined #ruby
ensyde__ has quit [Ping timeout: 244 seconds]
guardianJ has quit [Remote host closed the connection]
mistermo_ has quit [Remote host closed the connection]
zapata has joined #ruby
SpikeMaster has left #ruby [#ruby]
jaguarmagenta has joined #ruby
aagdbl has joined #ruby
kyrose has quit [Quit: Leaving]
tubuliferous_ has joined #ruby
craigp has joined #ruby
mistermocha has joined #ruby
kraken has joined #ruby
kraken is now known as kraken_
aagdbl has quit [Client Quit]
chopin has joined #ruby
<kraken_> If I'm loading from a YAML file that contains multiple store objects, and I store YAML::load(yaml_string) in a variable, then that variable is only containing the first object in the yaml file. What am I doing wrong here? Should it contains an array of the objects?
mistermo_ has joined #ruby
griffindy has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
pawnbox has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
chopin has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
chopin has joined #ruby
blackgoat has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<kraken_> Figured it out, I used YAML.load_stream instead of YAML.load
mistermo_ has quit [Ping timeout: 250 seconds]
Wolland has joined #ruby
jenrzzz has joined #ruby
pawnbox has quit [Remote host closed the connection]
chopin has quit [Ping timeout: 260 seconds]
harai54 has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
LaT0rtue has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
alfiemax has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
JesseH has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
nocco has joined #ruby
kareeoleez has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
lipoqil has quit [Ping timeout: 250 seconds]
kapowaz has quit [Ping timeout: 250 seconds]
jmhmccr has quit [Ping timeout: 250 seconds]
shadowshell has quit [Ping timeout: 250 seconds]
hayden__ has quit [Ping timeout: 250 seconds]
deepak has quit [Ping timeout: 250 seconds]
zero7 has quit [Ping timeout: 250 seconds]
jord has quit [Ping timeout: 250 seconds]
imanc has quit [Ping timeout: 250 seconds]
JackMc has quit [Ping timeout: 250 seconds]
pmarreck has quit [Ping timeout: 250 seconds]
jlyndon has quit [Ping timeout: 250 seconds]
AdamMeghji__ has quit [Ping timeout: 250 seconds]
ramblinpeck has quit [Ping timeout: 250 seconds]
skmp has quit [Ping timeout: 250 seconds]
cardoni has quit [Ping timeout: 250 seconds]
Guest4184_______ has quit [Ping timeout: 250 seconds]
zipkid has quit [Ping timeout: 250 seconds]
Travis-42 has quit [Ping timeout: 250 seconds]
bestie has quit [Ping timeout: 250 seconds]
yo61 has quit [Ping timeout: 250 seconds]
bedouin has quit [Ping timeout: 250 seconds]
joaomdmoura__ has quit [Ping timeout: 272 seconds]
mroth has quit [Ping timeout: 250 seconds]
rflot has quit [Ping timeout: 250 seconds]
LinuxHippie has quit [Ping timeout: 250 seconds]
caw has quit [Ping timeout: 250 seconds]
zzak___ has quit [Ping timeout: 250 seconds]
daxroc has quit [Ping timeout: 250 seconds]
bove has quit [Ping timeout: 250 seconds]
jmhmccr has joined #ruby
hayden__ has joined #ruby
kireevco has quit [Ping timeout: 250 seconds]
adamf has quit [Ping timeout: 250 seconds]
tax has joined #ruby
andersh has quit [Ping timeout: 272 seconds]
Eleeleth has quit [Ping timeout: 272 seconds]
vikid has quit [Ping timeout: 260 seconds]
digitalfiz has quit [Ping timeout: 260 seconds]
knowtheory has quit [Ping timeout: 260 seconds]
chorgi has quit [Ping timeout: 260 seconds]
angiebadillo has quit [Ping timeout: 260 seconds]
swgillespie has quit [Ping timeout: 260 seconds]
braderhart has quit [Ping timeout: 260 seconds]
Hates_ has quit [Ping timeout: 260 seconds]
ijij_ has quit [Ping timeout: 260 seconds]
halfdan has quit [Ping timeout: 260 seconds]
dukedave has quit [Ping timeout: 260 seconds]
akitada has quit [Ping timeout: 260 seconds]
manveru has quit [Ping timeout: 260 seconds]
alxndr has quit [Ping timeout: 260 seconds]
tfitts has quit [Ping timeout: 260 seconds]
im0b has quit [Ping timeout: 260 seconds]
tonini has quit [Ping timeout: 260 seconds]
jmcc___________ has quit [Ping timeout: 260 seconds]
twodayslate has quit [Ping timeout: 260 seconds]
mjc_ has quit [Ping timeout: 260 seconds]
jxf has quit [Ping timeout: 260 seconds]
Meow-J has quit [Ping timeout: 260 seconds]
olivierjanss has quit [Ping timeout: 260 seconds]
gmci has quit [Ping timeout: 260 seconds]
kdisneur has quit [Ping timeout: 260 seconds]
mrfooo has quit [Ping timeout: 260 seconds]
daemonwrangler has quit [Ping timeout: 260 seconds]
machty has quit [Ping timeout: 260 seconds]
HashNuke__ has quit [Ping timeout: 260 seconds]
rfv has quit [Ping timeout: 260 seconds]
bcavileer has quit [Ping timeout: 260 seconds]
Lloyd has quit [Ping timeout: 260 seconds]
shelling__ has quit [Ping timeout: 260 seconds]
the-eat-scout has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
pawnbox has joined #ruby
siovene has quit [Ping timeout: 272 seconds]
flyinprogrammer has quit [Ping timeout: 272 seconds]
acalewin has quit [Ping timeout: 272 seconds]
ckrailo has quit [Ping timeout: 272 seconds]
deimos__ has quit [Ping timeout: 272 seconds]
boxrick1 has quit [Ping timeout: 272 seconds]
grvgr has quit [Ping timeout: 260 seconds]
mitsuhiko has quit [Ping timeout: 260 seconds]
deeprave has quit [Ping timeout: 260 seconds]
vcoinminer has quit [Ping timeout: 260 seconds]
jpinnix_______ has quit [Ping timeout: 260 seconds]
ELCALOR has quit [Ping timeout: 260 seconds]
avdi has quit [Ping timeout: 260 seconds]
lancetw has quit [Ping timeout: 260 seconds]
davidmichaelkarr has quit [Ping timeout: 260 seconds]
jimeh has quit [Ping timeout: 260 seconds]
jabreity__ has quit [Ping timeout: 260 seconds]
zrl_ has quit [Ping timeout: 260 seconds]
incomprehensibly has quit [Ping timeout: 250 seconds]
dmnd has quit [Ping timeout: 250 seconds]
AndyWojo has quit [Ping timeout: 250 seconds]
mistermocha has quit [Read error: Connection reset by peer]
kapowaz has joined #ruby
err_ok has quit [Ping timeout: 260 seconds]
chrisseaton has quit [Ping timeout: 260 seconds]
adambeynon has quit [Ping timeout: 260 seconds]
cbetta has quit [Ping timeout: 260 seconds]
colstrom has quit [Ping timeout: 260 seconds]
ggherdov has quit [Ping timeout: 260 seconds]
podman has quit [Ping timeout: 260 seconds]
meinside has quit [Ping timeout: 272 seconds]
cstrahan has quit [Ping timeout: 272 seconds]
bttf has quit [Ping timeout: 272 seconds]
codepete has quit [Ping timeout: 272 seconds]
acerna has quit [Ping timeout: 272 seconds]
nyandoge has quit [Ping timeout: 272 seconds]
troter__________ has quit [Ping timeout: 272 seconds]
spastorino has quit [Ping timeout: 272 seconds]
frode15243 has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
mistermocha has joined #ruby
kireevco has joined #ruby
daxroc has joined #ruby
zzak___ has joined #ruby
vikid has joined #ruby
daemonwrangler has joined #ruby
LinuxHippie has joined #ruby
mroth has joined #ruby
adamf has joined #ruby
bove has joined #ruby
knowtheory has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
ijij_ has joined #ruby
HashNuke__ has joined #ruby
olivierjanss has joined #ruby
Lloyd has joined #ruby
twodayslate has joined #ruby
mtkd has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
frode15243 has joined #ruby
tfitts has joined #ruby
Eleeleth has joined #ruby
alxndr has joined #ruby
bcavileer has joined #ruby
sauvin has joined #ruby
sauvin has quit [Max SendQ exceeded]
jxf has joined #ruby
rfv has joined #ruby
meinside has joined #ruby
boxrick1 has joined #ruby
dmnd has joined #ruby
err_ok has joined #ruby
incomprehensibly has joined #ruby
mtkd has joined #ruby
flyinprogrammer has joined #ruby
braderhart has joined #ruby
Hates_ has joined #ruby
angiebadillo has joined #ruby
im0b has joined #ruby
andersh has joined #ruby
bttf has joined #ruby
harai54 has quit [Ping timeout: 244 seconds]
Travis-42 has joined #ruby
kraken_ has quit [Quit: Leaving]
imanc has joined #ruby
nyandoge has joined #ruby
podman has joined #ruby
jmcc___________ has joined #ruby
deepak_ has joined #ruby
mistermo_ has joined #ruby
kdisneur has joined #ruby
ELCALOR has joined #ruby
mjc_ has joined #ruby
jimeh has joined #ruby
tonini has joined #ruby
avdi has joined #ruby
adambeynon has joined #ruby
mrfooo has joined #ruby
zipkid has joined #ruby
jord has joined #ruby
saneax_AFK is now known as saneax
vcoinminer has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
caw has joined #ruby
sauvin has joined #ruby
rflot has joined #ruby
lancetw has joined #ruby
colstrom has joined #ruby
mitsuhiko has joined #ruby
deeprave has joined #ruby
grvgr has joined #ruby
digitalfiz has joined #ruby
chorgi has joined #ruby
swgillespie has joined #ruby
dukedave has joined #ruby
gmci has joined #ruby
acerna has joined #ruby
the-eat-scout has joined #ruby
cbetta has joined #ruby
shadowshell has joined #ruby
mistermocha has quit [Ping timeout: 276 seconds]
siovene has joined #ruby
chrisseaton has joined #ruby
codepete has joined #ruby
deimos__ has joined #ruby
skmp has joined #ruby
lipoqil has joined #ruby
acalewin has joined #ruby
davidmichaelkarr has joined #ruby
jpinnix_______ has joined #ruby
troter__________ has joined #ruby
shelling__ has joined #ruby
cstrahan has joined #ruby
ckrailo has joined #ruby
jabreity__ has joined #ruby
joaomdmoura__ has joined #ruby
machty has joined #ruby
AdamMeghji__ has joined #ruby
manveru has joined #ruby
halfdan has joined #ruby
Guest4184_______ has joined #ruby
bedouin has joined #ruby
JackMc has joined #ruby
cardoni has joined #ruby
bestie has joined #ruby
spastorino has joined #ruby
ramblinpeck has joined #ruby
akitada has joined #ruby
zrl_ has joined #ruby
solars has quit [Ping timeout: 276 seconds]
arescorpio has quit [Quit: Leaving.]
etehtsea has quit [Quit: Computer has gone to sleep.]
jlyndon has joined #ruby
mistermocha has joined #ruby
AndyWojo has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
pmarreck has joined #ruby
zero7 has joined #ruby
Meow-J has joined #ruby
yo61 has joined #ruby
jackjackdripper has joined #ruby
blackmesa has joined #ruby
bobbycvi has quit [Quit: ...]
johnDoe111^ has quit [Ping timeout: 250 seconds]
ggherdov has joined #ruby
tax has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
etehtsea has joined #ruby
etehtsea has quit [Client Quit]
bmorrison has quit [Quit: bmorrison]
maletor has joined #ruby
etehtsea has joined #ruby
Ishido has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
nano- has quit [Ping timeout: 244 seconds]
bmorrison has joined #ruby
mistermocha has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
nano- has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has quit [Ping timeout: 250 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
mistermo_ has joined #ruby
jaguarmagenta has joined #ruby
mistermocha has quit [Ping timeout: 276 seconds]
mistermo_ has quit [Read error: No route to host]
MrSamuel has quit [Quit: MrSamuel]
aberen has joined #ruby
johnDoe111^ has joined #ruby
last_staff has joined #ruby
kareeoleez has joined #ruby
mistermo_ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 272 seconds]
<blingrang> Why can I do this-> h = {'0'=>'test'}.to_json then print h
aberen has quit [Ping timeout: 252 seconds]
<blingrang> but not print {'0'=>'test'}.to_json directly
jas02 has joined #ruby
mistermocha has joined #ruby
johnDoe111^ has quit [Ping timeout: 276 seconds]
ur5us has quit [Remote host closed the connection]
tildes_ has quit [Ping timeout: 258 seconds]
nano- has quit [Ping timeout: 276 seconds]
<al2o3-cr> blingrang: use perentheses
<nocco> Anyone that has knowledge working with ruby and automator service on mac? I have some problems with the require method. :/
mistermo_ has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
neanderslob has quit [Ping timeout: 244 seconds]
MrSamuel has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
neanderslob has joined #ruby
MrSamuel has quit [Client Quit]
emilkarl has joined #ruby
<blingrang> al2o3-cr: got it, thanks.
firstdayonthejob has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
<al2o3-cr> np
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
lightt has quit [Remote host closed the connection]
<al2o3-cr> blingrang: You can also use Kernel#j for printing objects as json strings
pmarreck has quit [Ping timeout: 272 seconds]
tubuliferous_ has joined #ruby
Meow-J has quit [Ping timeout: 250 seconds]
jlyndon has quit [Ping timeout: 250 seconds]
ramblinpeck has quit [Ping timeout: 272 seconds]
AndyWojo has quit [Ping timeout: 260 seconds]
amclain has quit [Quit: Leaving]
n1x-nz has joined #ruby
fenre has joined #ruby
skade has joined #ruby
Wolland has joined #ruby
pmarreck has joined #ruby
Meow-J has joined #ruby
jlyndon has joined #ruby
AndyWojo has joined #ruby
ramblinpeck has joined #ruby
certainty has joined #ruby
<blingrang> al2o3-cr: I can't seem to find any 'j' function in the docs under kernel
tubuliferous_ has quit [Ping timeout: 276 seconds]
<al2o3-cr> It adds it to Kernel when you require 'json'
Wolland has quit [Read error: Connection reset by peer]
johnDoe111^ has joined #ruby
Wolland has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
acher has quit [Ping timeout: 260 seconds]
<al2o3-cr> >> require 'json'; j('0' => "test")
<ruby[bot]> al2o3-cr: # => {"0":"test"} ...check link for more (https://eval.in/585814)
nocco has quit [Ping timeout: 250 seconds]
nocco has joined #ruby
<al2o3-cr> or jj for a beautiful output :)
RobertBirnie has joined #ruby
bier_ has quit [Excess Flood]
bier has joined #ruby
<blingrang> perfect thanks.
<al2o3-cr> yw
etehtsea has joined #ruby
ta_ has joined #ruby
tmtwd has joined #ruby
djbkd has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
djbkd has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
Asher has quit [Quit: Leaving.]
eGGshke has joined #ruby
nocco has quit [Ping timeout: 252 seconds]
agit0 has quit [Quit: zzzZZZ….]
LoneHerm_ has quit [Ping timeout: 252 seconds]
djbkd has quit [Ping timeout: 260 seconds]
fenre has quit [Remote host closed the connection]
fenre has joined #ruby
lxsameer has joined #ruby
darkxploit has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
nano- has joined #ruby
codecop has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pepee has quit [Quit: bye $IRC]
johnDoe111 has quit [Ping timeout: 240 seconds]
araujo_ has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
psmolen has quit [Ping timeout: 260 seconds]
araujo has quit [Ping timeout: 276 seconds]
blaxter has joined #ruby
dionysus69 has joined #ruby
RazorX has quit [Remote host closed the connection]
sandstrom has joined #ruby
RazorX has joined #ruby
darkxploit has joined #ruby
giz|work has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nocco has joined #ruby
solars has joined #ruby
jennings has joined #ruby
johnDoe111 has joined #ruby
kraken has joined #ruby
kraken is now known as kraken_
<kraken_> What does :: mean? For instance in Net::HTTP.start
tubuliferous_ has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
<al2o3-cr> kraken_: it's the constant/namespace/scope resolution operator
AcidCras_ is now known as AcidCrash
<kraken_> al2o3-cr, so it's accessing the HTTP constant in the Net class?
<al2o3-cr> In the Net Module, yes
p337rB has joined #ruby
giz|work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<kraken_> ahh I c
sameerynho has joined #ruby
anisha has joined #ruby
tubuliferous_ has quit [Ping timeout: 258 seconds]
LaT0rtue has joined #ruby
aberen has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
kraken_ has quit [Quit: Leaving]
kareeole_ has joined #ruby
p337rB has quit [Ping timeout: 246 seconds]
agit0 has joined #ruby
alfiemax has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
djbkd has joined #ruby
certainty has quit [Ping timeout: 244 seconds]
kareeoleez has quit [Ping timeout: 244 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
nadir has joined #ruby
chipotle has quit [Ping timeout: 244 seconds]
chipotle_ has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aberen has quit [Ping timeout: 252 seconds]
tubuliferous_ has joined #ruby
chipotle_ has quit [Max SendQ exceeded]
emilkarl has joined #ruby
johnDoe111 has quit [Ping timeout: 276 seconds]
noobsu has joined #ruby
psmolen has joined #ruby
RazorX has quit [Remote host closed the connection]
chipotle has joined #ruby
RazorX has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
harai54 has joined #ruby
Wolland has joined #ruby
tubuliferous_ has quit [Ping timeout: 276 seconds]
RazorX has quit [Remote host closed the connection]
RazorX has joined #ruby
raeoks has joined #ruby
kareeole_ is now known as kareeoleez
RazorX has quit [Remote host closed the connection]
RazorX has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
bmorrison has quit [Quit: bmorrison]
Edward__ has joined #ruby
bmorrison has joined #ruby
ur5us has joined #ruby
yfeldblum has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
sameerynho has quit [Ping timeout: 276 seconds]
TomyWork has joined #ruby
bmorrison has quit [Client Quit]
meatchicken has quit [Ping timeout: 246 seconds]
solocshaw has quit [Ping timeout: 264 seconds]
haxrbyte has quit [Remote host closed the connection]
bnjf has quit [Ping timeout: 276 seconds]
haxrbyte has joined #ruby
bnjf has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
biberu has joined #ruby
RazorX has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
RazorX has joined #ruby
RazorX has quit [Remote host closed the connection]
moei has joined #ruby
RazorX has joined #ruby
aganov has joined #ruby
certainty has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
hightower2 has joined #ruby
c0mrad3 has joined #ruby
jackjackdripper has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.5]
solocshaw has joined #ruby
djbkd has quit []
hightower3 has quit [Ping timeout: 258 seconds]
LoneHerm_ has joined #ruby
madgen has joined #ruby
certainty has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 272 seconds]
LaT0rtue has quit [Ping timeout: 244 seconds]
PeteyT has joined #ruby
sandstrom has joined #ruby
pierrehoudyer has joined #ruby
PeteyT has quit [Client Quit]
pmyjavec has joined #ruby
ptierno has joined #ruby
LoneHerm_ has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
certainty has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
aberen has joined #ruby
al2o3-cr has joined #ruby
flughafen_ has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
MrBusiness2 has joined #ruby
blackmesa has joined #ruby
MrBusiness3 has joined #ruby
MrBusiness has quit [Ping timeout: 272 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has quit [Ping timeout: 246 seconds]
MrBusiness2 has quit [Ping timeout: 250 seconds]
certainty has quit [Ping timeout: 276 seconds]
ishe_ua has joined #ruby
jaruga___ has joined #ruby
spyder55 has joined #ruby
spyder55 has quit [Max SendQ exceeded]
spyder55 has joined #ruby
antgel has joined #ruby
araujo__ has joined #ruby
araujo__ has quit [Max SendQ exceeded]
devbug has quit [Ping timeout: 260 seconds]
kareeoleez has quit [Remote host closed the connection]
araujo_ has quit [Ping timeout: 276 seconds]
alfiemax has joined #ruby
ur5us has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Changing host]
troulouliou_div2 has joined #ruby
kareeoleez has joined #ruby
houhoulis has quit [Remote host closed the connection]
polysics has joined #ruby
phrozen77 has quit [Read error: Connection reset by peer]
Bish has quit [Remote host closed the connection]
certainty has joined #ruby
<polysics> hello! weird thing going on here
<polysics> I have installed nio4r with some cflags, with the correct version that is in my Gemfile
<polysics> yet bundle install fails, because it fails at compiling the gem native extensions
agent_white has joined #ruby
<polysics> it makes no sense that it is trying to reinstall it
<polysics> oh nvm, vendored gems
<polysics> brain fart :)
phrozen77 has joined #ruby
mikecmpbll has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
tubuliferous_ has joined #ruby
Eiam has quit [Ping timeout: 246 seconds]
achamian has joined #ruby
joonty has joined #ruby
giz|work has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
blockchan has quit [Ping timeout: 244 seconds]
blockchan has joined #ruby
binaryplease1 has joined #ruby
Couch has joined #ruby
<flughafen_> morning
<polysics> hey
jenrzzz has quit [Ping timeout: 250 seconds]
alfiemax has quit [Ping timeout: 250 seconds]
chussenot has joined #ruby
marr has joined #ruby
kareeoleez has quit [Remote host closed the connection]
craigp has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
aswen has joined #ruby
nocco has quit [Remote host closed the connection]
nocco has joined #ruby
mdw has joined #ruby
pandaant has joined #ruby
craigp has joined #ruby
ta_ has quit [Remote host closed the connection]
flughafen_ has quit [Ping timeout: 244 seconds]
yatish27 has joined #ruby
yatish27 has quit [Remote host closed the connection]
ur5us has joined #ruby
blackmesa has joined #ruby
flughafen_ has joined #ruby
aupadhye has quit [Quit: Leaving]
nankyokusei has joined #ruby
diegoaguilar has joined #ruby
aswen has quit [Ping timeout: 276 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
binaryplease1 has quit [Ping timeout: 240 seconds]
spyder55 has quit [Ping timeout: 244 seconds]
ksinkar` has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
spyder55 has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
ksinkar has quit [Ping timeout: 252 seconds]
soc42 has joined #ruby
bnjf has quit [Ping timeout: 252 seconds]
kareeoleez has quit [Ping timeout: 260 seconds]
edwinvdgraaf has joined #ruby
agit0 has quit [Quit: I'm off]
ksinkar`` has joined #ruby
kareeoleez has joined #ruby
bnjf has joined #ruby
ksinkar` has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
kareeole_ has joined #ruby
ta_ has joined #ruby
moeabdol has joined #ruby
govg has quit [Quit: leaving]
ocbtec has joined #ruby
ocbtec has quit [Client Quit]
govg has joined #ruby
dumdedum has joined #ruby
dumdedum has quit [Client Quit]
govg has quit [Client Quit]
govg has joined #ruby
kareeoleez has quit [Ping timeout: 272 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
RyanMcCoskrie has joined #ruby
edwinvdgraaf has joined #ruby
RyanMcCoskrie has left #ruby [#ruby]
bruce_lee has joined #ruby
lightt has joined #ruby
kareeole_ is now known as kareeoleez
dionysus69 has joined #ruby
mark_66 has joined #ruby
araujo has joined #ruby
ta_ has quit [Remote host closed the connection]
araujo has quit [Max SendQ exceeded]
skade has joined #ruby
tubuliferous_ has joined #ruby
araujo has joined #ruby
polysics_ has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
ptierno has quit [Quit: Lost terminal]
howdoi has joined #ruby
johnDoe111 has joined #ruby
nocco has quit [Remote host closed the connection]
polysics has quit [Ping timeout: 260 seconds]
salexa has joined #ruby
MrBusiness2 has joined #ruby
tubuliferous_ has quit [Ping timeout: 258 seconds]
salexa has quit [Remote host closed the connection]
polysics_ has quit [Ping timeout: 246 seconds]
madgen has quit [Ping timeout: 244 seconds]
mdw_ has joined #ruby
MrBusiness3 has quit [Ping timeout: 250 seconds]
johnDoe111 has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
vasilakisfil has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
chipotle has quit [Ping timeout: 240 seconds]
<vasilakisfil> "When you buy Sidekiq Pro, a custom URL associated with your email address will be sent to you. You add this URL to your Gemfile and everything else is seamless"
mdw has quit [Ping timeout: 252 seconds]
<vasilakisfil> how can I do the same with my gem?\
<vasilakisfil> is there a service for that ?
jackjackdripper has joined #ruby
nocco has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
urtokk has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
LoneHermit has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
emilkarl_ has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
ocbtec has joined #ruby
emilkarl has quit [Ping timeout: 250 seconds]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
yopp has joined #ruby
skade has joined #ruby
yopp has left #ruby ["woop-woop-woop"]
c355e3b has joined #ruby
edwinvdg_ has joined #ruby
diegoaguilar has quit [Ping timeout: 250 seconds]
polysics has joined #ruby
ruby773 has joined #ruby
ur5us has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
workmad3 has joined #ruby
cunctat0r has joined #ruby
cunctat0r has quit [K-Lined]
ruby773 has quit [K-Lined]
comforte has quit [K-Lined]
lirimaery has quit [K-Lined]
araujo has quit [Quit: Leaving]
bnjf has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
<jhass> vasilakisfil: mike recently wrote up how he does it
triangles2 has joined #ruby
bnjf has joined #ruby
polysics has quit [Remote host closed the connection]
ta_ has joined #ruby
tubuliferous_ has joined #ruby
triangles has quit [Ping timeout: 276 seconds]
polysics has joined #ruby
Snowy has joined #ruby
haxrbyte has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
joonty has quit [Remote host closed the connection]
haxrbyte has joined #ruby
qba73 has joined #ruby
sepp2k has joined #ruby
qba73 has quit [Remote host closed the connection]
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
johnDoe111 has joined #ruby
araujo has joined #ruby
alfiemax has joined #ruby
toretore has joined #ruby
xall_ has quit [Ping timeout: 276 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
nirix has left #ruby ["Textual IRC Client: www.textualapp.com"]
n1x-nz has quit [Quit: Computer says no]
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Client Quit]
lopezcryto_ has joined #ruby
kyle__ has quit [Ping timeout: 244 seconds]
johnDoe111 has quit [Ping timeout: 272 seconds]
achamian_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
achamian has quit [Ping timeout: 244 seconds]
Macaveli has joined #ruby
blockchan has quit [Quit: blockchan]
moeabdol has quit [Ping timeout: 258 seconds]
tubuliferous_ has joined #ruby
pawnbox_ has joined #ruby
mistermocha has joined #ruby
tvw has joined #ruby
blockchan has joined #ruby
swistak35 has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
nocco has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 240 seconds]
thorgi has joined #ruby
nocco has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
edwinvdg_ has quit [Ping timeout: 260 seconds]
lightt has quit [Remote host closed the connection]
ferr1 has joined #ruby
RobertBirnie has joined #ruby
dionysus69 has joined #ruby
nocco has quit [Ping timeout: 272 seconds]
edwinvdgraaf has joined #ruby
jaruga___ has quit [Read error: Connection reset by peer]
jaruga___ has joined #ruby
axxyhtrx has joined #ruby
edwinvdg_ has joined #ruby
duncannz has quit [Remote host closed the connection]
gomix has quit [Ping timeout: 246 seconds]
achamian has joined #ruby
pawnbox has joined #ruby
ruby173 has joined #ruby
johnmilton has quit [Remote host closed the connection]
achamian_ has quit [Ping timeout: 240 seconds]
<ruby173> 1
agit0 has joined #ruby
ruby480 has joined #ruby
<adaedra> 2
pawnbox_ has quit [Ping timeout: 240 seconds]
<jhass> 3
edwinvdgraaf has quit [Ping timeout: 276 seconds]
<shevy> 5
<jhass> 8
<bruce_lee> no! it's 7!
<bruce_lee> btw. \(^_^)/ @all
mdw has joined #ruby
rubyhatesme has joined #ruby
<bruce_lee> sorry, I was wrong
<bruce_lee> now I think it's 13!
<rubyhatesme> hi, does anyone have any experience with mandrill?
<shevy> the monkeys?
jrafanie has joined #ruby
mdw_ has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
diverdude has joined #ruby
<apeiros> 21
<diverdude> Hi there, if i want to install this gem: https://github.com/seamusabshere/mysql2xxxx what would be the easiest way to do it? I am on ubuntu
hk238|2 has joined #ruby
ruby480 has quit [Ping timeout: 250 seconds]
kedare has joined #ruby
the_drow has joined #ruby
<hanmac> diverdude: if you installed the ruby devs already or build ruby yourself otherwise i would recommend you install "apt-get build-dep ruby2.3" first ... that does have other stuff you might need to build
<diverdude> hanmac, i body installed ruby and ruby-dev from repo
<bruce_lee> diverdude: I'm relatively new to ruby, according to: http://stackoverflow.com/questions/2577346/how-to-install-gem-from-github-source
mostlybadfly has joined #ruby
<bruce_lee> gem 'redcarpet', :git => 'git://github.com/tanoku/redcarpet.git'
<hanmac> diverdude: then you need the dev packages from mysql for the dependencies
nankyokusei has joined #ruby
<diverdude> hanmac, mmm ok you write ruby v2.3.... the version from repo seems to be 1.9.3p484...i guess that version is ok as well?
<diverdude> hanmac, mmm ok you write ruby v2.3.... the version from repo seems to be 1.9.3p484...i guess that version is ok as well?
blackmesa has quit [Ping timeout: 252 seconds]
<hanmac> diverdude: hm yeah that should be okay too (i prefer newest ruby but you shouldnt have a problem)
<diverdude> hanmac, allright...ill just go apt-get build-dep ruby then?
<jhass> diverdude: you shouldn't need to, tried a plain gem install mysql2xxxxx yet?
<diverdude> jhass, no didnt try that..moment ill try it
<hanmac> for mysql you need stuff like libmysqlclient-dev too
<diverdude> jhass, hmm ERROR: Could not find a valid gem 'mysql2xxxxx' (>= 0) in any repository
emilkarl has joined #ruby
<jhass> https://rubygems.org/gems/mysql2xxxx wrong amount of x?
emilkarl_ has quit [Ping timeout: 260 seconds]
<diverdude> jhass, ahhh hmmm that might actually work
<diverdude> it did stuff :D
emilkarl has quit [Client Quit]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 276 seconds]
hk238|2 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
hk238 has joined #ruby
<diverdude> jhass, hmm according to https://github.com/seamusabshere/mysql2xxxx that should have eg. mysql2json binary. Shouldnt that then be available in the commandline now?
moeabdol has joined #ruby
<bruce_lee> is there something like "apt-cache search" or "yum list" for ruby-gems?
<diverdude> jhass, any idea how i can verify if it was installed properly?
<workmad3> bruce_lee: you mean like `gem list -r <search string>`?
<jhass> diverdude: still have the full output of the install command? -> gist it
<diverdude> jhass, sure do..moment
<bruce_lee> workmad3: does this list gems that are not yet installed too?
<jhass> ?try bruce_lee
<ruby[bot]> bruce_lee: Why don't you try it and see for yourself?
<bruce_lee> :)
<bruce_lee> it works!
<diverdude> jhass, here it is: http://paste.ubuntu.com/17140706/
<jhass> diverdude: well that's a failure output
<diverdude> damn :/
troulouliou_div2 has quit [Remote host closed the connection]
<diverdude> i need some dependencies?
<jhass> you're missing libmysqlclient-dev (or libmariadbclient-dev or whatever)
<diverdude> ahhhhhhhh
moeabdol has quit [Ping timeout: 264 seconds]
<diverdude> now it works :D
<diverdude> at least its installed hehe
edwinvdg_ has quit [Ping timeout: 276 seconds]
<jnoob22> trying to learn oop in ruby, but I'm not doing something right -> http://paste.ofcode.org/4KpupLL8sPVVcZ5gECUiXb ... a downstream class that I'm not even using just yet is setting values to variables in other class... surely I'm missing the point.
rany has joined #ruby
<rany> pastie: hi!
blackmesa has joined #ruby
<jhass> jnoob22: don't. use. class. variables.
<rany> pastie: 123qweasdzxcvfrtgbnhyujm,kiool./;p[']
<jnoob22> then how do you access them jhass ?
<jhass> "them"?
<jnoob22> class. variables. :-)
certainty has quit [Ping timeout: 240 seconds]
<jhass> well that shouldn't be an issue if you don't use them ;)
rany has left #ruby ["Leaving"]
<jnoob22> why not use them?
<jhass> because of their terrible scoping rules you just discovered
edwinvdgraaf has joined #ruby
<jhass> you likely want instance variables here
<jhass> btw you don't need to "declare" anything
<jnoob22> ok... how do i do that in this case?
spikeheadon has joined #ruby
spikey has joined #ruby
spikey has quit [Remote host closed the connection]
<jnoob22> ive read about instance variables and class variables in ruby docs but im missing something it seems. This can be done easily in Python or Java
<toretore> jnoob22: don't. use. class. variables.
<jhass> jnoob22: class variables are more like static attributes in Java, only worse
<jnoob22> this makes ruby extremely limited.
<jnoob22> based on what you've told me.
etehtsea has joined #ruby
<toretore> no, you just don't know how to use it
<jnoob22> how do i use them in this case?
<jhass> jnoob22: give me a minute, it's quite some code to change
<jnoob22> i got this from ruby docs
<jhass> not like that, no
<toretore> jnoob22: you're thinking in terms of "fields" or "attributes", which ruby doesn't have
<jnoob22> egad.
<jnoob22> ok, i have to believe there's more to it then
johnDoe111 has joined #ruby
<jnoob22> ive been programming for close to 20 years and have never heard of that for any oop capable language. Now I'm intrigued :-)
moeabdol has joined #ruby
<pmyjavec> When making your own exception classes is it common place to define 'message'?
<jhass> jnoob22: https://p.jhass.eu/2q.rb
<shevy> pmyjavec I'd say it is less common
gnufied has joined #ruby
<jhass> pmyjavec: I wouldn't say there's a general rule, it depends whether a default message makes sense or the caller should always give it, or whether prepending something to a callers message makes sense
<shevy> about 90% of the definitions I see are like: class Foo < Exception; end and that's about it usually
<jnoob22> jhass, thanks... going over it ...
etehtsea has quit [Client Quit]
<toretore> not < Exception i hope ..
mdw has quit [Quit: Sleeping Zzzzz]
<pmyjavec> ok, I'll show you why I hate having to specify it ;)...
<jnoob22> I see attr_reader and super ... super I can figure out ... but attr_reader ?
etehtsea has joined #ruby
<jhass> defines the getter for you
mrgrieves has quit [Quit: leaving]
yqt has joined #ruby
<pmyjavec> Well I don't hate it, but yeah
<jnoob22> jhass, ok, cool .... thanks for pointing this out to me :-)
<jnoob22> jhass, I'm assuming super in this context means 'override' perhaps?
<pmyjavec> http://pastebin.com/xb1yUuDE, my code looks messy
<ruby[bot]> pmyjavec: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/3e5c1b838cdf0feae14c6d673696ee88
<ruby[bot]> pmyjavec: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<diverdude> is it possible to open an interactive ruby session?
<workmad3> jnoob22: btw, you've got a fact wrong - `@lays_eggs = false` is not true in general for Mammal ;)
<jhass> jnoob22: initialize is just a regular method called by new on the fresh object, super simply calls the parent method
<jnoob22> diverdude, irb you're looking for?
<jhass> ?pry diverdude
<ruby[bot]> diverdude: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<jnoob22> jhass, ah got it
<pmyjavec> I think the way I'm doing validations is the problem to be honest
<jnoob22> workmad3, yep true :-)
<pmyjavec> what do people think ?
<workmad3> jnoob22: gotta love those annoying monotremes, right?
mdw has joined #ruby
<jnoob22> workmad3, true that.
<jhass> jnoob22: and super without arguments passes the exact arguments present in the current method to it
moeabdol has quit [Ping timeout: 264 seconds]
<jnoob22> jhass, ok, cool I'll read up on that. Thanks so much for pointing me in the right direction
<workmad3> jhass: `super` passes exact arguments, `super()` passes no arguments... (thanks for that, ruby :/ )
<adaedra> this one is a bit stupid, yeah
<jhass> jnoob22: another thing to realize is that classes are just instances/objects too (of class Class), so if you need "per class attributes/static attributes" simply use instance variables at the class level
<jhass> workmad3: I know, didn't want to complicated right now :/
<jhass> *to get too
<jnoob22> will do ... will stay away from @@ stuff
<adaedra> @_@
etehtsea has quit [Client Quit]
Macaveli has quit [Remote host closed the connection]
<toretore> yes, no use @@
<diverdude> ahh nice...so inside irb when i write a = Mysql2xxxx::JSON.new :user => 'dbuser', :password => 'dbpassword', :database => 'dbname', :execute => "select * from automobile_makes" i get: "uninitialized constant Mysql2xxxx". Do i somehow need to import that first?
etehtsea has joined #ruby
<workmad3> jhass: I know... but saying `super without arguments` would lead very quickly to attempting `super()` if someone happened to like explicit parens (such as from a java background) and then their code breaks :)
<jhass> jnoob22: though IME 90% of all @@ or class level @ uses in Ruby would be just fine or better off using just a CONSTANT
<jnoob22> makes sense now that I see the light a little better ;-)
moeabdol has joined #ruby
johnDoe111 has quit [Ping timeout: 252 seconds]
johnmilton has joined #ruby
etehtsea has quit [Client Quit]
joonty has joined #ruby
<jnoob22> this still was a lot easier than putting the same thing together for Java.
aries_liuxueyang has joined #ruby
etehtsea has joined #ruby
<jnoob22> the only thing going for me is that I understand Java errors a lot better at this point and know how to make it behave.
chussenot has quit [Quit: chussenot]
Xentil has joined #ruby
Vingador has joined #ruby
skade has joined #ruby
<workmad3> jnoob22: I hate java errors... they're not quite as bad as C++ errors, but they're still pretty nasty (especially if they're generated inside a framework like spring)
johnDoe111 has joined #ruby
nocco has joined #ruby
* jhass goes with Crystal errors :P
<jnoob22> oh Lord, yes workmad3 ... I work with that everyday ... doing support for Alfresco
<workmad3> "Here's 2000 lines of stack trace caused by a NullPointerException that's wrapping 5 other exceptions up, and the error you're looking for is nothing to do with any of this"
jancel has joined #ruby
<jnoob22> exactly
<jnoob22> and it's such a pain to hook up and debug.
<workmad3> I think I spent 2 days tracking one of those down... and it was because I had the same library loaded in both the jar and in the container :(
<jnoob22> heh heh dont you love non-obvious error messages? heh Java is full of them. At least with Python, Ruby and PHP I can narrow it down (assuming i know what it means)
<jnoob22> a NPE almost never leads to any useful info.
<ddv> for java you need to set your display in potrait mode
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> pmyjavec: I guess the question is whether you actually need that many and specific exception classes, or if they don't get redundant to their message. The question to ask yourself is: which will be rescued by the caller _and_ handled differently?
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<elomatreb> jnoob22: You're right, 'undefined method "something" for nil:NilClass' is so much more helpful :P
<jnoob22> well java's good for some things.... you have an obsessive disorder and love extreme organizing.... you cannot stand dynamic programming and like everything defined all the way down without allowances for anything outside the box...
davedev24 has joined #ruby
<jnoob22> elomatreb, actually if i would have understood the instance vars better, that would have made sense. But nothing's perfect I guess ;-)
<pmyjavec> jhass, yes, now I've completed the task at hand and had time to look at it again, I think I could just change the way my methods return things
jmignault has joined #ruby
jaguarma_ has joined #ruby
<jnoob22> ... on the java note .... you still think XML files are the best at describing a data structure.
<pmyjavec> Probably just raising too often and unnecessarily
achamian has quit [Remote host closed the connection]
jancel has quit [Ping timeout: 244 seconds]
Vingador has quit [Remote host closed the connection]
<elomatreb> jnoob22: What are your alternatives if you need more complex structures than JSON offers? YAML isn't much better than XML
moos3 has joined #ruby
Vingador has joined #ruby
rodfersou has joined #ruby
<jnoob22> elomatreb, you're messing up my rant. stop it.
<jnoob22> :-D
<pmyjavec> I think i've been programming too much towards and implementation if I'm honest
<elomatreb> heh, sorry
Vingador has quit [Read error: Connection reset by peer]
webhat_ is now known as webhat
<ddv> JSON = XML with curly braces
<pmyjavec> most methods are turning something useless and uninformative
<pmyjavec> *returning
jaguarmagenta has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
<adaedra> ddv: far from it, actually
<jnoob22> ddv elomatreb at least with json/dicts you are not having to define/describe what those curly braces and brackets mean ;-)
davedev2_ has joined #ruby
<elomatreb> ddv: At least there are no external entities or references in JSON, making it much safer
<ddv> I was trolling :-)
<adaedra> ddv: if you dig that, you can do JSONx though.
pawnbox has joined #ruby
* jhass actually likes JSON schema
<ddv> me2
Vingador has joined #ruby
<elomatreb> adaedra: That's one of those technologies that *had* to come from IBM
<adaedra> hehe
evidex has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 250 seconds]
axxyhtrx has joined #ruby
phredus has joined #ruby
<diverdude> ahhh so the mysql2xxx library i am trying to user cannot log in..it keeps getting access denied even though i know for 100% certainty that i supply the correct credentials...but it also spits out a warning: "iconv will be deprecated in the future, use String#encode instead." Might it be because this library has not been updated in a while that it encodes characters wrong and thus cannot log in?
<jhass> I doubt it tbh
k3rn31 has joined #ruby
<jhass> I mean your username and password is probably all ASCII anyway?
<elomatreb> You mean I shouldn't put emoji in my database passphrase?
<jhass> most of the time it's stuff like your user only being allowed to login via localhost and then your DB and your client disagree whether localhost is 127.0.0.1, ::1 or either of your local interface addresses
<jhass> elomatreb: I mean you absolutely should
<jhass> just that it's unlikely you did
<elomatreb> :key emoji: is going to be my password now :P
<diverdude> jhass, yes it is
<jhass> elomatreb: that's still ascii :(
<diverdude> jhass, but i log in via ssh and specify host to by localhost
<diverdude> jhass, and still i get access denied
<jhass> mysql is picky about that stuff
<elomatreb> jhass: I really don't trust my hacked-together ZNC to make emoji work on IRC, that's why I typed that like that
<diverdude> jhass, ok...any way around it?
<jhass> diverdude: regular mysql cli works?
<diverdude> jhass, yes
lightt has joined #ruby
<jhass> tried an explicit -h localhost ?
<diverdude> jhass, yes if i do that i get access denied and if i try 127.0.0.1 then i get cannot connect
<jhass> -h "::1" perhaps?
<diverdude> jhass, then i also get: /var/lib/gems/1.9.1/gems/mysql2xxxx-0.2.1/lib/mysql2xxxx/writer.rb:41:in `real_connect': Can't connect to MySQL server on '::1' (111) (Mysql::Error)
alfiemax has quit [Ping timeout: 264 seconds]
<jhass> so interestingly your mysql server isn't even listening to localhost?
Macaveli has joined #ruby
lightt has quit [Remote host closed the connection]
<diverdude> jhass, but when i just do mysql -uxxxx -p i can connect with no problem
<elomatreb> something else: Are you really using Ruby 1.9.1? (ruby -v) I don't think you still get security patches with that version
agent_white has quit [Read error: Connection reset by peer]
<jhass> ?abi elomatreb
<ruby[bot]> elomatreb: Each Ruby release has actually two versions, the interpreter version and the ABI version. The interpreter version is what commonly is referred to, like 2.1.5. The ABI version is for the binary interface used by compiled extensions and it is what you see in your paths. It's shared among on
<ruby[bot]> e release series, for example for the Ruby versions 2.1.0 to 2.1.5 the ABI version is 2.1.0.
<diverdude> ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
duckpupp1 has joined #ruby
<elomatreb> mh, ok. Didn't even know that
ldnunes has joined #ruby
<diverdude> jhass, so it seems normal client works fine...php also connects fine...i also manage to connect ruby via active_record gem...no problem....but this script which is exactly what i need cannot connect :(
Spami has joined #ruby
<jhass> "The value of host may be either a host name or an IP address. If host is NULL or the string "localhost", a connection to the local host is assumed. For Windows, the client connects using a shared-memory connection, if the server has shared-memory connections enabled. Otherwise, TCP/IP is used. For Unix, the client connects using a Unix socket file."
ELLIOTTCABLE is now known as ec
<jhass> so looks like it connects via unix socket by default these days
<jhass> idk
<diverdude> jhass, you mean the mysql2xxx lib?
sdothum has joined #ruby
JoshL has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
Wolland has quit [Remote host closed the connection]
<jhass> mysql2xxxx passes nil to the mysql2 gem when no host is given, which passes NULL to mysql_real_connect(3) if host is nil
<diverdude> jhass, ok....that should be ok then no?
<jhass> anyway, that finicky user/authentication stuff is one of the reasons I avoid mysql
pmyjavec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> I would expect so
<diverdude> jhass, yeah but i cannot really avoid mysql :( I need to export the entire database into json and found this to be an easy to gem to use..apparantly not :( :( :(
<jhass> since your DB is only running on a unix socket apparently anyway, perhaps get a user with @*
<diverdude> jhass, what does that mean?
<diverdude> ahhh
<diverdude> i understand
<nocco> Anyone that use ruby with macs automator script? I have problems require gems. :(
<diverdude> hmmm i actually think the user i have has wildcard on domain
skade has quit [Quit: Computer has gone to sleep.]
<jhass> ?anyone nocco
<ruby[bot]> nocco: Just ask your question, if anyone has or can, they will respond.
Yiota has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
skade has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lsmola has joined #ruby
certainty has joined #ruby
Yiota has quit [Ping timeout: 252 seconds]
<nocco> When require other gems when running ruby script in automator, it tells me that there is no something called "gem-name". What I tried to do is run it in a shell, specific told which ruby version and exporting my PATH. What more to do?
LBRapid has quit [Ping timeout: 260 seconds]
norc has joined #ruby
SirCmpwn has quit [Ping timeout: 252 seconds]
JoshL has joined #ruby
<jhass> nocco: which ruby version does it run?
<nocco> 2.3.0
<nocco> jhass: 2.3.0
rbr has joined #ruby
<elomatreb> nocco: What is the specific gem it complains about?
<jhass> nocco: and ruby -rgemname -e "" doesn't complain? what's gem env where it doesn't complain? can you run gem env where it does complain and is it different?
<nocco> elomatreb: rest-client and nokogiri
<nocco> jhass: when I run the script in the terminal, it works fine.
kapo has joined #ruby
jaguarmagenta has joined #ruby
<elomatreb> Are you using rvm or something similar?
<nocco> elomatreb: Yes, I use rvm
<norc> nocco: Gist the full error message (including stack traces) please..
hanmac has joined #ruby
<elomatreb> nocco: I am not a Mac user, but I would assume that what you're using to run the script does not use the rvm environment, so it can't see your gems
AlexJakeGreen has joined #ruby
chussenot has joined #ruby
jaguarma_ has quit [Ping timeout: 260 seconds]
rodferso1 has joined #ruby
joonty has joined #ruby
kalopsian has joined #ruby
<norc> nocco: Have you tried setting GEM_PATH manually?
LBRapid has joined #ruby
<elomatreb> Doesn't rvm generate some kind of wrapper scripts for use-cases like this?
<jhass> nocco: ^ don't do that or what you're doing currently, investigate rvm wrappers or rvm do
<norc> elomatreb: RVM is a huge pile of intrusive hacks into shell commands.
spikey has joined #ruby
rodfersou has quit [Ping timeout: 250 seconds]
<nocco> norc: Yeah I tried that but then in the gem there is another require for another gem, and so on.. :(
codecop has quit [Remote host closed the connection]
LaT0rtue has joined #ruby
<nocco> Is rvm wrapper they way to go?
<norc> I would not call it "the way to go"
SirCmpwn has joined #ruby
<norc> But then again Im biased against RVM all the way.
<elomatreb> I've been using rvm since a few years now, are there good (read: easy) alternatives?
<Arcaire> ruby-install + chruby
<norc> ^-
<Arcaire> oops
spikeheadon has quit [Ping timeout: 240 seconds]
emilkarl has joined #ruby
ElFerna has joined #ruby
<elomatreb> Mh, I'll try those later today I think.
<Arcaire> far easier / cleaner than rvm
ruby435 has joined #ruby
triangles has joined #ruby
<nocco> which one? ruby-install?
ElFerna has quit [Client Quit]
lxsameer has quit [Quit: WeeChat 1.5]
triangles has quit [Max SendQ exceeded]
ElFerna has joined #ruby
triangles has joined #ruby
dabonka has joined #ruby
<jhass> nocco: won't magically get rid of your issue either. Try rvm wrappers
jmignault has quit [Ping timeout: 260 seconds]
triangles2 has quit [Ping timeout: 240 seconds]
<nocco> jhass: Yeah I will probably try that first. But is neither of you using rvm? Haven't done ruby for a while..
<jhass> RVM's popularity certainly is not increasing anymore, more on the contrary
lsmola has quit [Ping timeout: 240 seconds]
ruby435 has quit [Ping timeout: 250 seconds]
d10n-work has joined #ruby
jmignault has joined #ruby
<norc> nocco: To your question, they are usually used in tandom.
<norc> *tandem.
blackmesa has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
ffgghhj has joined #ruby
minimalism has quit [Quit: minimalism]
nocco has quit []
johnDoe111 has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
emilkarl is now known as emilkarl[away]
aeterne has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
emilkarl[away] has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 276 seconds]
triangles2 has joined #ruby
triangles has quit [Ping timeout: 252 seconds]
allcentury has joined #ruby
Yiota has joined #ruby
raeoks has quit [Ping timeout: 272 seconds]
jaruga___ has quit [Ping timeout: 252 seconds]
jaruga___ has joined #ruby
rodferso1 has quit [Quit: leaving]
rodfersou has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
k3rn31 has quit [Quit: Computer has gone to sleep.]
synthroid has joined #ruby
spyder55 has quit []
nankyokusei has joined #ruby
Coldblackice has quit [Ping timeout: 276 seconds]
allcentury has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
emilkarl has joined #ruby
antgel has joined #ruby
shadeslayer has quit [Ping timeout: 264 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
emilkarl has quit [Client Quit]
workmad3_ has joined #ruby
emilkarl has joined #ruby
edwinvdgraaf has joined #ruby
emilkarl is now known as emilkarl[away]
emilkarl[away] is now known as emilkarl
nankyokusei has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
ElFerna has quit [Ping timeout: 244 seconds]
Wolland has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
edwinvdg_ has joined #ruby
kareeoleez has quit []
edwinvdgraaf has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
dstarh has joined #ruby
allcentury has joined #ruby
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
p337rB has joined #ruby
mikecmpbll has joined #ruby
shadeslayer has joined #ruby
kareeoleez has joined #ruby
pmyjavec has joined #ruby
myntcake has joined #ruby
Ropeney has joined #ruby
Ropeney has quit [Client Quit]
LoneHermit has joined #ruby
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axxyhtrx has joined #ruby
Niham has joined #ruby
edwinvdg_ has quit [Ping timeout: 244 seconds]
yqt has joined #ruby
aufi has joined #ruby
LoneHermit has quit [Ping timeout: 250 seconds]
VeryBewitching has joined #ruby
<VeryBewitching> Mornin' #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flashpoint9 has joined #ruby
edwinvdgraaf has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
kalopsian has quit [Ping timeout: 260 seconds]
ramortegui has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
edwinvdgraaf has quit [Ping timeout: 260 seconds]
tlaxkit has joined #ruby
kies has quit [Ping timeout: 260 seconds]
davedev2_ has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
triangles has joined #ruby
deadnull_ has joined #ruby
tk__ has joined #ruby
k3rn31 has joined #ruby
LinuxPenT has quit [Ping timeout: 250 seconds]
LaT0rtue has quit [Ping timeout: 244 seconds]
aries_liuxueyang has quit [Read error: Connection reset by peer]
triangles2 has quit [Ping timeout: 252 seconds]
troulouliou_div2 has joined #ruby
Saloun has joined #ruby
edwinvdgraaf has joined #ruby
aries_liuxueyang has joined #ruby
CJKinni has joined #ruby
edwinvdg_ has joined #ruby
<Saloun> can anyone tell me why im getting these errors: http://pastebin.com/KQvkSirr
<ruby[bot]> Saloun: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/846543e0def5b1a55deb37580c5320f1
<ruby[bot]> Saloun: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
prestorium has joined #ruby
rubyhatesme has quit [Quit: Page closed]
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> Saloun: because you either didn't install the cinch gem, installed it for a different ruby than you run now or installed it via bundler and run outside the context of your bundle (no require "bundler/setup" and neither using bundle exec)
ruby173 has quit [Ping timeout: 250 seconds]
<Saloun> How to fix this then?
lightt has joined #ruby
<Saloun> gem install cinch?
<jhass> depends on which of the three options it is
<Saloun> ok i will try that
<Veejay> jhass: Is using a Gemfile and Bundler in the project directory the "best" practice?
<adaedra> .
<Veejay> It's what I usually do
aegis3121 has joined #ruby
<jhass> often
<Veejay> I feel like it's well compartmented that way
<jhass> I'm against dogma
<Veejay> If that's even a word
<Veejay> heh
<Saloun> i installed cinch and still the same errors
<jhass> but I do too most of the time
<Veejay> Healthy way of living one's life
<lupine> best practice is avoiding that many dependencies ^^
edwinvdgraaf has quit [Ping timeout: 260 seconds]
<lupine> but without that, committing a Gemfile (and sometimes Gemfile.lock, depending on how bad it is) can help
tlaxkit has quit [Quit: ¡Adiós!]
johnDoe111 has joined #ruby
<jhass> eh, always commit the lock
freerobby has quit [Quit: Leaving.]
<lupine> it's arguably inappropriate in expected-to-be-library code
<adaedra> why?
<jhass> I never got why
<Saloun> jhass: how to fix this then? i mean a command to run or something.
<adaedra> what's going to be library is determined by the gemspec, not the repo
<jhass> Saloun: we still don't know the cause
<lupine> because when someone requires your library, they're not likely to take your gemfile.lock
tlaxkit has joined #ruby
<Saloun> :/
<adaedra> Gemfile != gemspec
<lupine> indeed
<jhass> the Gemfile and Gemfile.lock in a library is so that I can reproduce the environment I have in for example CI
<ruby[bot]> giz|work: 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
<jhass> not a library users environment
<adaedra> gemspec is for library users, while Gemfile is for developping the gem, I think.
<jhass> lupine: rubygems isn't using the libraries Gemfile either, so I shouldn't commit it too?
Madplatypus has quit [Quit: Connection closed for inactivity]
<lupine> it's a fairly abstract thing, but if you've got the deps specified there very precisely, it's easier to write code that is going to break
plantigrade has quit [Quit: WeeChat 1.0.1]
<lupine> jhass: a gemfile typically (but not always, of course) has much looser version dependencies, and can even be shared with the gemspec
<lupine> which *will* go into transitive dependencies
avelldiroll has joined #ruby
<jhass> I see the argument, it doesn't convince me at all
blockchan has quit [Ping timeout: 264 seconds]
<lupine> I'm pretty on the fence about it
<lupine> in practice, everything is broken everywhere all the time
<lupine> the amount of difference this makes to that is likely to be mininal
<lupine> minimal*
<jhass> Saloun: so how did you install Ruby? did you install cinch before? if so how? what was the output of the gem install command? what's the output of the gem env command? Do you see a Gemfile?
<Saloun> no i did "apt-get install ruby-full"
pandaant has quit [Remote host closed the connection]
<jhass> 1/7
dcluna has joined #ruby
<Saloun> lol
chouhoulis has quit [Remote host closed the connection]
<lightt> hello fine ppl
tvw has quit [Ping timeout: 276 seconds]
swills has joined #ruby
diegoaguilar has joined #ruby
<Saloun> jhass: so what else i need to install
<jhass> Saloun: sorry, 1/6, will you answer the remaining five questions?
<Saloun> oh ok
<Saloun> 2/6: nope
<Saloun> i didnt install cinch before
<jhass> 3/6 then
<jhass> use a gist for 4 & 6
<Saloun> what's the output of the gem env command? Do you see a Gemfile?: Nope
freerobby has joined #ruby
<jhass> er 4 & 5
freerobby has quit [Client Quit]
<jhass> 4/6, nope is an invalid answer to 5
<Saloun> 5/6 i didnt do that lol
malconis has joined #ruby
<jhass> run it, gist the output
<Saloun> oh nvm
<Saloun> gisting
blockchan has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
Xiti has quit [Quit: Xiti]
<adaedra> why are you working as root?
maesitos has joined #ruby
<maesitos> Hello I have a simple question
<Saloun> ignore that last line lol
<maesitos> @shipment_country ||= params[:shipment_country]
<maesitos> @shipment_country ||= cookies[:shipment_country]
<maesitos> @shipment_country ||= extract_country_from_ip
<Saloun> i had it copied like 10mins ago so..
<jhass> Saloun: this is very confusing, your first prompt is a user and the prompt after the command returned is root
<adaedra> but both have a #
<Saloun> no just ignore that last line
<Saloun> lol. read what i said ^^
<jhass> gem env also looks like it was ran as root
<maesitos> will that 3rd line execute extract_country_from_ip if @shipment_country is 1 ?
<Saloun> ok i will run it as root wait
gomix has joined #ruby
<lupine> maesitos: ||= will only replace false and nil
kareeoleez has quit [Remote host closed the connection]
<jhass> Saloun: 4/6 is still open too btw
<adaedra> ˚_o
<maesitos> lupine: but I need extract_country_from_ip to be executed only if @shipment_country is false or nill
<lupine> then you're in luck
<Saloun> 4/6: i didn't install cinch
<jhass> 15:14 <Saloun> i installed cinch and still the same errors
<Saloun> oh thats after
ishe_ua has quit [Remote host closed the connection]
<Saloun> yeah
<maesitos> lupine: I mean, extract_country_from_ip is looking up the country based on the IP and it's using a paid service. I want to call that function only if neccesary
<Saloun> gem install cinch
<lupine> as-is, it will only be called if @shipment_country is nil or false
<maesitos> so my question is will the function be evaluated?
antgel has quit [Ping timeout: 240 seconds]
<jhass> maesitos: no
kareeoleez has joined #ruby
<adaedra> >> a = 1; a ||= proc { puts "Oops" }.call
<ruby[bot]> adaedra: # => 1 (https://eval.in/586177)
edwardly has quit [Ping timeout: 246 seconds]
<jhass> maesitos: the best approximation for a ||= b is a || a = b, || short circuits
<Saloun> 4/6: gem install cinch
Xiti has joined #ruby
<Saloun> 6/6: no
<jhass> 4/6 asks for the full output of the command
last_staff has quit [Quit: last_staff]
sepp2k has quit [Quit: Leaving.]
GinoManWorks has joined #ruby
<Saloun> ok 1second
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
Wolland has joined #ruby
fjfpvd has joined #ruby
<maesitos> jhass: thanks
<maesitos> jhass: a simple test in irb confirmed that!
<jhass> Saloun: so you just did that only now?
<jhass> did it fix the issue?
malconis has quit [Remote host closed the connection]
Niham has joined #ruby
<adaedra> Still working as root, I see
<Saloun> jhass: Nope it didnt fix the issue
<jhass> Saloun: since you ran that as root now and should run the bot as your regular user, I'll need a definitive and clear comparison of gem env run as root and as your regular user, your previous gist of it was unclear under what circumstances it was run
kgrz has quit [Ping timeout: 250 seconds]
Niham has quit [Max SendQ exceeded]
<Saloun> lol..
<Saloun> okay fine
willemb has joined #ruby
Niham has joined #ruby
eljimbo has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
<willemb> Hi . I have a problem where gem install <whatever> frequently times out on some of my servers. We have used geminabox with unicorn to set up a proxy so that all our hosts don't hit rubygems.org at the same time, but the problem is only better, not solved
<Saloun> jhass: i run gem env under my user? right?
<willemb> research on the internet says I should have some luck if I upgrade from rubygems 2.2.2 to rubygems 2.3.0.
<willemb> but why?
ChiefAlexander has quit [Remote host closed the connection]
sankarshanmudkav has joined #ruby
<jhass> Saloun: run it twice, once under your user that you want to run the bot with and once as root, clearly mark which is which in your gist
<Saloun> okay fine.
malconis has joined #ruby
<jhass> okay thank you. what's the output of gem which cinch, again under either user
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> that's the output of gem install cinch, I'm asking for gem which cinch under either user
ChiefAlexander has joined #ruby
qba73 has joined #ruby
<Saloun> jhass:
<Saloun> saloun@alpha:~$ gem which cinch
<Saloun> -> /var/lib/gems/2.1.0/gems/cinch-2.3.2/lib/cinch.rb
freerobby has joined #ruby
ffgghhj has quit [Quit: Leaving]
palms has joined #ruby
qba73 has quit [Client Quit]
<jhass> are you sure you see no Gemfile? are you sure it's still giving the same error? what's the output of command -v ruby and which ruby under your regular user?
giz|work has quit [Ping timeout: 250 seconds]
dabonka has quit [Ping timeout: 250 seconds]
edwinvdg_ has quit [Read error: Connection reset by peer]
<shevy> might be a debian ruby
<Saloun> root@alpha:~# ruby -v
<Saloun> -> ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
edwinvdg_ has joined #ruby
<Saloun> exactly
<jhass> I didn't ask you to run it as root
<Saloun> saloun@alpha:~$ which ruby
johnDoe111 has quit [Ping timeout: 260 seconds]
<Saloun> -> /usr/bin/ruby
<Saloun> saloun@alpha:~$ ruby -v
<Saloun> ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
<Saloun> there we are
chipotle has quit [Ping timeout: 240 seconds]
<jhass> two questions still open ;)
Macaveli has joined #ruby
<Saloun> i dont see a gemfile and there is still the same error.
<Saloun> I'm sure.
JesseH has quit [Quit: Leaving]
<jhass> exact same?
tk__ has quit [Quit: ばいばい]
<jhass> it's not stuck on another missing gem perhaps?
<jhass> still says can't find cinch?
<Saloun> yeah
<jhass> this is quite impossible tbh
theunraveler has joined #ruby
<Saloun> - /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- cinch/plugins/identify (LoadError)
bkxd has joined #ruby
<Saloun> :(
<jhass> so it did change after all!
<Saloun> no
<jhass> yes!
Yiota has joined #ruby
<Saloun> i just showed u the 1st error of cinch
tlaxkit has joined #ruby
<adaedra> look closer.
<Saloun> others are still there
get_drunk has joined #ruby
<get_drunk> what is class << some_object?
kobain has joined #ruby
<adaedra> > cannot load such file -- cinch (LoadError)
zacstewart has joined #ruby
<adaedra> > cannot load such file -- cinch/plugins/identify (LoadError)
<adaedra> those are not the same
<Saloun> thats what i get now
<jhass> Saloun: adaedra was faster than me, see how it changed?
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yiota has quit [Client Quit]
<shevy> get_drunk for class methods usually; like: class Foo; def self.bar; puts 'hi from Foo.bar'; end; end; Foo.bar
<Saloun> oh. yeah true. Sorry i must get glasses
<jhass> even the line number of the last line in backtrace changed
<get_drunk> ah
<jhass> get_drunk: it opens the singleton class of some_object
antgel has joined #ruby
lightt has quit [Ping timeout: 260 seconds]
<get_drunk> ok, so I can use that to define methods at the instance level of some object?
<jhass> Saloun: https://rubygems.org/gems/cinch-identify appears to be the missing gem
<Saloun> yeah it changed indeed. just compared the two gists
<jhass> get_drunk: yup
kgrz has joined #ruby
<jhass> get_drunk: but only consider it for long-lived objects, like classes
<Saloun> jhass: done.. but now i have more errors
<Saloun> lol
<get_drunk> i am messing around with prototyped objects, is this a dead-end?
<jhass> get_drunk: not sure what that is
<jhass> you try to do JS in ruby?
pierrehoudyer has quit []
<get_drunk> instead of a class, there's an object whose behavior I can clone
<get_drunk> lua, but yeah
<get_drunk> js is the same way
<jhass> I think you're already drunk then, adjust you nick :P
get_drunk is now known as got_drunk
jaruga___ has quit [Remote host closed the connection]
jaruga___ has joined #ruby
<Saloun> lol
<jhass> Saloun: https://rubygems.org/gems/domainatrix you'll get the pattern
<shevy> get_drunk you can use struct and openstruct, like Weapon = Struct.new :weapon; Sword = Weapon.new
johnDoe111 has joined #ruby
<shevy> and modify everything at runtime
edwinvdgraaf has joined #ruby
<jhass> got_drunk: is there an underlying design problem you try to solve, is it "because I'm used to it" or just for the lulz?
<shevy> I once thought of having a MUD just via ad-hoc structs or struct-like objects... but somehow I always end up specifying stuff via classes in ruby :(
Kneecaps has joined #ruby
<willemb> ok, from the changelog, it looks like 2.3.0 added more than one performance improvement for dependency resolution. I guess if I am still on Debian Wheezy with ruby 1.8, I am out of luck in streamlining gem installs
snath has quit [Ping timeout: 250 seconds]
soc42 has quit [Remote host closed the connection]
ekinmur has joined #ruby
<adaedra> willemb: get rid of 1.8 already
triangles has quit [Read error: Connection reset by peer]
kgrz has quit [Ping timeout: 252 seconds]
<jhass> willemb: the correct sentence is "if I'm still on debian wheezy I'm out of luck", the specific don't matter really :P
Ch4rAss has joined #ruby
mdw has joined #ruby
ekinmur has quit [Remote host closed the connection]
cdg has joined #ruby
<willemb> all good and well. almost 2000 web hosting servers :(
<jhass> Saloun: https://rubygems.org/gems/uuid I urge you, try to recognize the pattern! that's what human brains are made for after all!
kgrz has joined #ruby
<willemb> and they don't play well with linux 3.16 because their disk partitions arent 1MiB aligned :(
edwinvdg_ has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
blackmesa has joined #ruby
<Saloun> oh ok
<jhass> willemb: well, perhaps time to get half a dozen additional boxes, designing a new deployment strategy (which you can automate) and starting to migrate
<jhass> migrate a box, use it as spare
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Max SendQ exceeded]
<jhass> your goal should probably be that you can just reimage a box at any point
eGGshke has quit [Quit: Leaving...]
mistermocha has joined #ruby
<Saloun> jhass: new errors now, different from the others
<willemb> jhass: Don't worry, we are working on deployment strategies. biggest hurdle is 'slow network, so no shared storage'. data on local disks, so takes LONG to move customers to different servers
platzhirsch has joined #ruby
<jhass> meh
<jhass> Saloun: show?
<willemb> the joys of mass shared web hosting
aganov has quit [Remote host closed the connection]
<Saloun> jhass: when running the bot: boom: https://gist.github.com/saloun/27ba1a998ae8ec4a9e20f9224c933c95
dopamean_ has quit [Ping timeout: 240 seconds]
<Saloun> well the 1st error is on my config file but not the rest
kgrz has quit [Ping timeout: 244 seconds]
<jhass> Saloun: well, the error message says it all, fix your yaml config
<jhass> "the rest" is the same error
<Saloun> ok then
<jhass> just tracing back where it originates in the code
<jhass> aka "backtrace" or "stack trace"
<Saloun> line 7 is only the name of a chan lol
craigp has quit [Ping timeout: 272 seconds]
moredhel has quit [Quit: byee]
<adaedra> Read the error message.
kies has joined #ruby
davedev24 has joined #ruby
<adaedra> It tells you what the problem is.
<Saloun> oh
<Saloun> i think i found it
mistermocha has quit [Ping timeout: 250 seconds]
spikeheadon has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
theunrav_ has joined #ruby
chipotle has joined #ruby
edwinvdg_ has joined #ruby
JesseH has joined #ruby
chipotle has quit [Max SendQ exceeded]
spikeheadon has quit [Max SendQ exceeded]
spikeheadon has joined #ruby
fenre has quit [Ping timeout: 276 seconds]
spikey has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
spikeheadon has quit [Max SendQ exceeded]
theunraveler has quit [Ping timeout: 250 seconds]
spikeheadon has joined #ruby
Fernando-Basso has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
snath has joined #ruby
johnDoe111 has quit [Ping timeout: 258 seconds]
spikeheadon has quit [Max SendQ exceeded]
spikeheadon has joined #ruby
moredhel has joined #ruby
<Saloun> jhass: "bncim-bot.rb:55:in `initialize': Permission denied @ rb_sysopen - log/irc-ircnetwork.log (Errno::EACCES)"
<Saloun> what does this means?
jaguarmagenta has joined #ruby
jas02 has quit [Quit: jas02]
spikeheadon has quit [Max SendQ exceeded]
<adaedra> Permission denied opening log/irc-network.log
johnDoe111 has joined #ruby
<adaedra> log/irc-ircnetwork.log*
spikeheadon has joined #ruby
<Saloun> how to fix it?
<jhass> that you don't have write permissions to the directory you run the bot in with the user you run it with
<Saloun> oh
<jhass> see man chown chgrp chmod
<adaedra> stop switching to root all the time :p
mtkd has quit [Ping timeout: 272 seconds]
<Saloun> i think thats the best solution lol
myntcake has quit [Ping timeout: 260 seconds]
<jhass> it is
<adaedra> ?root
<ruby[bot]> general advice in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
hutch34 has joined #ruby
spikeheadon has quit [Max SendQ exceeded]
myntcake has joined #ruby
myntcake has quit [Remote host closed the connection]
mtkd has joined #ruby
spikeheadon has joined #ruby
<Saloun> jhass: more errors.. omg this is annoying
<got_drunk> yeah i hate when things that I did are my own problems
jaguarmagenta has quit [Ping timeout: 246 seconds]
<got_drunk> if only there was a way to only do exactly what I choose to do...
johnDoe111 has quit [Ping timeout: 250 seconds]
babblebre has joined #ruby
<Saloun> :/
aljailaa has joined #ruby
<jhass> Saloun: hard to say without code, my guess is that you have a number in your config where a string is expected
<Saloun> ill send u the code
aljailaa has quit [Client Quit]
Jardayn has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
<Saloun> jhass: PM
kalopsian has joined #ruby
flughafen_ has quit [Ping timeout: 244 seconds]
<Saloun> ok
<jhass> likely your password is just numbers, make sure it's a string in your yaml
<got_drunk> this just keeps getting better
<got_drunk> is it 123456
skade has quit [Quit: Computer has gone to sleep.]
<Saloun> yes its numbers
<Saloun> gonna fix
<got_drunk> just do .to_s, then
k3rn31 has quit [Quit: Computer has gone to sleep.]
blackgoat has quit [Quit: WeeChat 1.5]
aufi has quit [Ping timeout: 246 seconds]
vondruch has quit [Ping timeout: 246 seconds]
<adaedra> proper storing in the YML is a better solution imo.
pawnbox has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
norc has quit [Ping timeout: 250 seconds]
chopin has joined #ruby
<Saloun> jhass:
RobertBirnie has joined #ruby
<jhass> are you sure you didn't change the code?
hxegon_ak is now known as hxegon
<Saloun> no i didnt.
nankyokusei has joined #ruby
<jhass> well line 74 is just an end in the code on github
achamian has joined #ruby
<jhass> quite impossible for that error to happen there
<Saloun> oh
pawnbox has joined #ruby
blockchan has quit [Ping timeout: 250 seconds]
senayar has quit [Read error: Connection reset by peer]
senayar has joined #ruby
ncthom91 has joined #ruby
Yiota has joined #ruby
maletor has joined #ruby
Wolland has joined #ruby
<Saloun> jhass: no
<Saloun> same lines
<Saloun> 94 line
<Saloun> 95*
<jhass> bncim-bot.rb:74:in `block (3 levels) in <main>': uninitialized constant MonitorPlugin (NameError)
<Saloun> same on git i gave u
<jhass> that one says 74
<Saloun> yes
<Saloun> whats wrong?
<Saloun> with 74
<jhass> it's an end
<jhass> that error can't happen there
fjfpvd has quit [Read error: Connection reset by peer]
<jhass> so your local code must look different
<Saloun> i will paste u my local code then
maletor has quit [Client Quit]
polishdub has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
malconis_ has joined #ruby
bkxd has quit [Ping timeout: 272 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<jhass> very weird
<Saloun> :/
spyder55 has joined #ruby
malconis has quit [Ping timeout: 276 seconds]
SilverKey has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
jrafanie has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
chopin_ has joined #ruby
davedev24 has quit [Remote host closed the connection]
hobodave has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<Saloun> what do you think, jhass?
<jhass> I think that I have no clue and won't try to locally setup up this mess to investigate
malconis_ is now known as malconis
<Saloun> :/
<Saloun> i got it to work last year
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Saloun> i don't remember the friend who i asked and he got that shit working
chopin has quit [Ping timeout: 240 seconds]
rodfersou is now known as rodfersou|lunch
<elomatreb> Whoever recommmended me to switch to ruby-install/chruby over rvm earlier today: thank you. Works quite well!
ash_workz has joined #ruby
Yiota_ has joined #ruby
saneax is now known as saneax_AFK
Yiota has quit [Ping timeout: 240 seconds]
blockchan has joined #ruby
<pmyjavec> Broad question but how do people like to handy a something missing situation, for example, a method which tries to get something form a database, if it can't be found, what would most people expect it to do ?
<pmyjavec> *handle?
<pmyjavec> return nil?
<elomatreb> Depends on the method. I would design it like rails: Where you expect one result (like Model::find) throw an exception, where there may be more return an empty set
<pmyjavec> elomatreb , may I show you what i'm doing and see what you think ?
Ch4rAss has quit [Ping timeout: 276 seconds]
<elomatreb> please do :)
<pmyjavec> would love some feedback, i've been doing a bit of go and erlang and there seems to be a more distinct way to deal with this issue
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pmyjavec> cheers, one second
<jhass> pmyjavec: both is a valid, a guidance may be that exceptions are for exceptional cases
<jhass> if the absence of the record is a configuration or data integrity error, I'd throw an exception
freerobby has quit [Quit: Leaving.]
Yiota_ has quit [Ping timeout: 272 seconds]
<jhass> if it simply may or may not be there nil seems more sensible
skade has joined #ruby
dopamean_ has joined #ruby
Saloun has left #ruby [#ruby]
Saloun has joined #ruby
<pmyjavec> there would be a pattern for this problem, I just don;t know what it is...
ChiefAlexander has quit [Remote host closed the connection]
aufi has joined #ruby
freerobby has joined #ruby
<pmyjavec> jhass , elomatreb, there is is, my actual problem is how do I respond to clients when something is either indexed, a query is made, or a removal happens, I would like to respond in a standard way
AlexJakeGreen has quit [Quit: Leaving]
dcluna has quit [Remote host closed the connection]
<jhass> well, take perspective
<jhass> if I query, my question can very well be "is this there?"
<elomatreb> One thing I notice is that I would create more exception classes. Just raising OperationError everywhere is probably not ideal
<jhass> if I ask you to remove it should have verified it's there and it's my mistake to ask you to remove something that's not there
Yiota has joined #ruby
<pmyjavec> elomatreb I did have multiple exception classes, it was just a bit too crazy
<pmyjavec> easy to restore it though
<pmyjavec> Having too many classes means if I have a client library that uses thise object, it has to check for a lot of cases
gfvcastro has joined #ruby
<pmyjavec> which what made me thing my design is a little floored
Guest38 has joined #ruby
<elomatreb> If they're all specific to your library extend them from a common baseclass, allowing a user to catch all with one rescue statement
sepp2k has joined #ruby
<pmyjavec> elomatreb, yup that's not a bad idea
noobsu has quit [Remote host closed the connection]
Yiota has quit [Client Quit]
duckpuppy has joined #ruby
<pmyjavec> how about returning a struct or hash with the result?
Yiota has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
edwinvdg_ has quit [Read error: Connection reset by peer]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
blockchan has quit [Ping timeout: 272 seconds]
edwinvdg_ has joined #ruby
<pmyjavec> jhass, can you repeat what you said before?
<pmyjavec> might be a type
<pmyjavec> *typo, oh the irony...
Jardayn has quit [Read error: Connection reset by peer]
ta_ has quit [Remote host closed the connection]
<jhass> I was giving general guidance, not my opinion on the specific situation
mdw has joined #ruby
duckpupp1 has quit [Ping timeout: 276 seconds]
achamian has quit [Remote host closed the connection]
<pmyjavec> Sure, I'm interested in your view, I think you might've just miss typed it ?
<jhass> ?logs
<ruby[bot]> You can find a log of this channel at http://irclog.whitequark.org/ruby/
<jhass> I don't think I did
<pmyjavec> "If I ask you to remove it should have verified it's there and it's my mistake to ask you to remove something that's not there"
kgrz has joined #ruby
mdw_ has joined #ruby
maletor has joined #ruby
<jhass> okay well there's a missing I before should
<jhass> I thought you're still referring to the exception classes
<pmyjavec> The exception classes work well enough
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
<pmyjavec> But I'm definitely not sure if it's the right approach
<TomyWork> i want to display notification popups from within a vagrant plugin (i.e. from a command line application). what chances do i have?
LoneHerm_ has quit [Remote host closed the connection]
<shevy> why are you not happy if things work well enough pmyjavec
mdw has quit [Ping timeout: 244 seconds]
alfiemax has joined #ruby
<TomyWork> on windows 7,8,8.1 and 10
<TomyWork> linux would be nice, too
<pmyjavec> shevy, fair point I guess :)
eeinb has joined #ruby
kareeoleez has quit [Remote host closed the connection]
tjohnson has joined #ruby
aufi has quit [Ping timeout: 250 seconds]
<elomatreb> TomyWork: There's https://rubygems.org/gems/notify, I think I remember using it, but only on Linux
<pmyjavec> elomatreb , what did you think of the solution in general ?
<TomyWork> i'll play with it a bit, thanks
<pmyjavec> Using the exceptions in that way?
pld has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
kgrz has quit [Ping timeout: 276 seconds]
<elomatreb> That's pretty much how I would do it, my only problem is probably the name of the query/index method
mdw has joined #ruby
sandelius has joined #ruby
<elomatreb> They probably make sense when you know the exact usecase, but I think something like find/add would be more intuitive
SilverKey has joined #ruby
ChiefAlexander has joined #ruby
<pmyjavec> elomatreb , cool, I'll run with it and see how it goes longer term, cheers
kobain has quit [Ping timeout: 260 seconds]
<pmyjavec> thank you for the feedback all
<pld> hi, can someone me enlighten on what scope i should use for the variable model_changed if i want this to work? https://bpaste.net/show/48c538787b81
<TomyWork> elomatreb "Desctop" - sounds promising :)
mdw__ has joined #ruby
<pld> i need a scope that is valid only within a method but the whole method
<elomatreb> heh, that's what I though as well. It's also last updated in 2013, so it may be useless
mdw_ has quit [Ping timeout: 250 seconds]
<eeinb> exit
<elomatreb> TomyWork: I just tested it, it works on Linux
eeinb has quit [Quit: leaving]
spyder55 has quit []
eein_ has joined #ruby
karmatr0n has joined #ruby
mdw has quit [Ping timeout: 252 seconds]
eein_ has quit [Client Quit]
frem_ has joined #ruby
<elomatreb> TomyWork: This seems to be a more popular version: https://rubygems.org/gems/notiffany
<TomyWork> tiffany
kobain has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Remote host closed the connection]
maesitos has quit []
eein_ has joined #ruby
johnDoe111 has joined #ruby
griffindy has joined #ruby
mdw has joined #ruby
spikeheadon has quit [Ping timeout: 240 seconds]
duoi has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
urtokk has quit [Quit: WeeChat 1.5]
alfiemax has quit [Ping timeout: 252 seconds]
<jhass> pld: from the code visible the current version seems correct
sandelius has joined #ruby
eein_ has quit [Client Quit]
mdw__ has quit [Ping timeout: 250 seconds]
johnDoe111 has quit [Ping timeout: 260 seconds]
<pld> jhass: thanks, i relied on my IDE (rubymine) which told me the local variable wasn't being used in the .each_message block
<pld> jhass: turns out that information was wrong!
<pld> jhass: do you notice anything that could be more idiotic or improved about the code?
duoi has joined #ruby
<pld> idiomatic
<jhass> pld: Hash.new's default value is suspicious
<shevy> :D
<jhass> pld: note that the _same object_ is used on missing keys
<pld> i'm new with ruby and constantly find new gimmicks
<jhass> it's not copied
<shevy> you have suspicious code elements!
kalopsian has quit [Quit: leaving]
<pld> jhass: i'm not quite sure on how it works internally either but that is the default implementation that comes with the Dashboard "Dashing" for updating the data, or at least the model part is
chorgi has quit [Quit: Connection closed for inactivity]
allcentury has quit [Ping timeout: 252 seconds]
<pld> it confused me at first that they don't send the keys, only the values
<jhass> doesn't make it any less suspicious
chussenot has quit [Quit: chussenot]
<pld> what exactly do you mean with the "same object"?
<malconis> i guess, didn't notice
<pld> it sends an array of hashes
diverdude has quit [Ping timeout: 246 seconds]
<malconis> wrong chat
spyder55 has joined #ruby
tubuliferous_ has joined #ruby
johnDoe111 has joined #ruby
<jhass> pld: what the argument to Hash.new sets is Hash#default, Hash#default is the value that is returned when a key in the hash is fetched that does not exist
<jhass> that value is returned, not an object of it
truenito has joined #ruby
<jhass> >> a = []; h = Hash.new(a); h[:a] << 1; h[:b] << 2; a
<ruby[bot]> jhass: # => [1, 2] (https://eval.in/586269)
Vingador has quit [Read error: Connection reset by peer]
<jhass> er, *not a copy of it I meant to say
<TomyWork> elomatreb together with rb-notifu it works on windows as well :)
moos3 has quit [Quit: leaving]
blur3d has quit [Ping timeout: 276 seconds]
Vingador has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TomyWork> so now my plan is to spawn a simple tcp or http server inside the where i receive status messages from a modified puppet agent in the vagrant box
<TomyWork> inside the vagrant process*
davedev24 has joined #ruby
certainty has quit [Ping timeout: 244 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
got_drunk has quit [Ping timeout: 250 seconds]
etehtsea has joined #ruby
<TomyWork> or maybe i'll monkey-patch something in order to intercept some of the puppet output as it flows through vagrant
spikeheadon has joined #ruby
haraigo has joined #ruby
lightt has joined #ruby
lightt has quit [Max SendQ exceeded]
lightt has joined #ruby
harai54 has quit [Ping timeout: 258 seconds]
synthroid has quit [Remote host closed the connection]
Yiota has joined #ruby
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has joined #ruby
nando293921 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 264 seconds]
johnDoe111 has quit [Ping timeout: 250 seconds]
edwinvdg_ has quit [Ping timeout: 260 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
gfvcastro has joined #ruby
bobina22 has joined #ruby
xlegoman has joined #ruby
achamian has joined #ruby
<shevy> hack!
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LaT0rtue has joined #ruby
tubuliferous_ has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
Yiota has joined #ruby
<TomyWork> that's the plan
<shevy> monkey-do, monkey-hack
<TomyWork> vagrant isnt very cooperative, so i have to hack
GinoManWorks has quit [Read error: Connection reset by peer]
lightt has quit [Ping timeout: 264 seconds]
mwlang has quit [Ping timeout: 250 seconds]
pepee has joined #ruby
tubuliferous_ has joined #ruby
<ash_workz> s/Vagrant/Docker ftw.
GinoManWorks has joined #ruby
<jhass> use mongo yo, it's webscale. MySQL not webscale
Vingador has quit [Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.]
helpa has quit [Remote host closed the connection]
codecop has joined #ruby
helpa has joined #ruby
<TomyWork> ash_workz try running a different kernel in your container :)
Vingador has joined #ruby
<ash_workz> TomyWork: ?
<TomyWork> ash_workz that's exactly the video i was thinking about when shevy said that :D
antgel has quit [Ping timeout: 244 seconds]
<ash_workz> TomyWork++
Couch has quit [Ping timeout: 272 seconds]
norc has joined #ruby
<hxegon> mongo not web scale enough, use artifact
<TomyWork> ok maybe not that video, but the song i think is playing
<TomyWork> i dont have sound
<TomyWork> but the title suggests it's that one
exadeci has joined #ruby
roamingdog has joined #ruby
<ash_workz> TomyWork: "code monkey get up, get coffee; code monkey go to job. Code monkey have boring meeting, boring manager rob"
<TomyWork> yep
<hxegon> ha, I just read that
<shevy> lol
amclain has joined #ruby
<shevy> I did not know that video
spyder55 has quit []
<ash_workz> that_video++
deadnull_ has quit [Quit: Bye]
maletor has quit [Quit: Computer has gone to sleep.]
<TomyWork> so now i'll have to write my very first gem \o/
<ash_workz> TomyWork: anyway, please elaborate on your issue with Docker? I am not a *huge* Docker fan... I just appreciate it for my purposes; but I like to have different perspectives
spikeheadon has quit [Ping timeout: 276 seconds]
aufi has joined #ruby
<ash_workz> s/have/hear
<TomyWork> ash_workz well for one 90% of my users use windows, which eliminates any overhead advantage docker has when setting up a single vm
<TomyWork> and then the software i deploy on the vm is large and monolithic and requires an oracle enterprise db in a vm
tubuliferous_ has quit [Ping timeout: 240 seconds]
<TomyWork> and one requirement is to run this on the customers' OS
<shevy> beastly software stacks
<TomyWork> wrong kernel + correct userland isnt going to cut it :)
noobsu has joined #ruby
<ash_workz> TomyWork: so, a couple things to note
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chopin_ has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
chopin has joined #ruby
symm- has joined #ruby
<ash_workz> TomyWork: I don't know how strict your requirements are, but shimming huge code into a docker images is something I've seen people fail to try to do before and it's not the "docker way". The idea there would be to link volumes of data to whatever you're trying to use and have docker service containers to run said code...
sauvin_ has joined #ruby
sandelius has joined #ruby
<ash_workz> TomyWork: secondly; docker native is apparently breaking the WIndows wall; I think it already has broken the Mac wall, so that shouldn't be a problem soon? Idk. But who can wait for that, right? But yeah, I have never used boot2docker before so I don't know of any such woes
noodle has quit [Quit: /quit]
phredus has quit [Quit: No Ping reply in 180 seconds.]
sauvin has quit [Max SendQ exceeded]
phredus has joined #ruby
etehtsea has quit [Ping timeout: 250 seconds]
banister_ has quit [Max SendQ exceeded]
<TomyWork> it's definitely not the docker way
<TomyWork> but i dont see how i can make the docker way work with this application
kedare has quit [Quit: Leaving]
chussenot has joined #ruby
banister has joined #ruby
noobsu has quit [Ping timeout: 240 seconds]
<TomyWork> i need to use the OS-specific packages (rpm, deb), too
<TomyWork> i forgot to mention that
<TomyWork> so I pretty much need to set up the customer's OS as a docker container first and then install the packages into that
<TomyWork> and then i still havent solved the kernel problem
joonty has quit [Quit: This computer has gone to sleep]
tubuliferous_ has quit [Ping timeout: 258 seconds]
<ash_workz> TomyWork: lastly, if used correctly, there are some benefits that I would think people would like in a wide range of applications; the layering allows you to have multiple images share sources so you don't have to redownload a bunch of stuff; containers are intended to be ephemeral, so the destruction and creation of them are a breeze; docker-compose makes management of VERY complicated...
<ash_workz> ...environments easy
<TomyWork> i think that's an unsolvable problem, too, unless i run docker *on* the customer's OS
xlegoman has joined #ruby
kgrz has joined #ruby
pontiki has joined #ruby
<ash_workz> TomyWork: I'm not entirely sure what your workflow is like in my mind
kapo has quit [Ping timeout: 276 seconds]
<TomyWork> i'd focus on the unsolvable problems first
<ash_workz> TomyWork: But if you want, you can always log into your docker containers to add whatever package managers you want (rpm, deb, etc)... or (ideally) just build them into the image.
<TomyWork> i.e. the kernel
skade has quit [Quit: Computer has gone to sleep.]
noodle has joined #ruby
<ash_workz> TomyWork: so, what is the issue with that exactly?
<TomyWork> with docker, host and guest share the same kernel
<ash_workz> TomyWork: feel free to break this discussion... at best we'll both gain some insight to the pros and cons of docker, but I don't think you're going to change anything.
<ash_workz> TomyWork: yes... so what's the conflict exactly?
<TomyWork> one of my requirements is to use the customer's os
<TomyWork> including the kernel
LaT0rtue has quit [Read error: Connection reset by peer]
tubuliferous_ has joined #ruby
jrafanie has joined #ruby
<ash_workz> yeah, you're right. I don't think that's solvable.
kgrz has quit [Ping timeout: 250 seconds]
synthroid has joined #ruby
ramfjord has joined #ruby
craigp has joined #ruby
idefine has joined #ruby
rodfersou|lunch is now known as rodfersou
noobsu has joined #ruby
jaruga___ has quit [Quit: jaruga___]
sankarshanmudkav has quit [Quit: sankarshanmudkav]
flashpoint9 has quit [Remote host closed the connection]
jhack has joined #ruby
snath has quit [Ping timeout: 250 seconds]
platzhirsch has quit [Quit: WeeChat 1.4]
finisherr has joined #ruby
rkazak has joined #ruby
symm- has quit [Ping timeout: 258 seconds]
p337rB has quit [Ping timeout: 264 seconds]
Asher has joined #ruby
idefine has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
rbr has quit [Ping timeout: 276 seconds]
jhack has quit [Read error: Connection reset by peer]
craigp has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
aberen has quit [Ping timeout: 244 seconds]
allcentury has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
snath has joined #ruby
mleung has joined #ruby
moeabdol has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
SCHAAP137 has joined #ruby
malconis has quit [Read error: Connection reset by peer]
Guest38 has joined #ruby
sneakers has joined #ruby
jhack has joined #ruby
jhack has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 264 seconds]
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 260 seconds]
aegis3121 has quit [Ping timeout: 276 seconds]
malconis has joined #ruby
blockchan has joined #ruby
koooge has quit [Quit: Leaving...]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
certainty has joined #ruby
p337rB has joined #ruby
SilverKey has quit [Quit: Halted.]
tubuliferous_ has joined #ruby
RobertBirnie has joined #ruby
moeabdol1 has joined #ruby
hiyosi has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
<tgeeky> hmm. I have a class named SourceQBCustomers with a file named /lib/source_qb_customers.rb; and I am autolaoding the /lib directory, yet it will not find it
<tgeeky> suggestions?
moeabdol has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 250 seconds]
diegoaguilar has joined #ruby
skade has joined #ruby
nankyokusei has joined #ruby
p337rB has quit [Ping timeout: 252 seconds]
jhack has joined #ruby
giz|work has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
blockchan has quit [Ping timeout: 246 seconds]
ChiefAlexander has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 244 seconds]
Wolland has joined #ruby
aufi has quit [Ping timeout: 244 seconds]
senayar has quit []
nankyokusei has quit [Ping timeout: 276 seconds]
pondering_ has joined #ruby
<pondering_> I have a static class with a variable that I only want to set the first time it is accessed. Is there a recommended way to do that?
skweek has joined #ruby
norc_ has joined #ruby
<jhass> pondering_: def foo; @foo ||= compute_foo; end;
tubuliferous_ has quit [Ping timeout: 244 seconds]
Wolland has quit [Ping timeout: 250 seconds]
<pondering_> @jhass that seems pretty straight forward. Thanks!
amclain_ has joined #ruby
Rasi has quit [Ping timeout: 246 seconds]
dhollinger has joined #ruby
amclain has quit [Ping timeout: 246 seconds]
blockchan has joined #ruby
andikr has quit [Remote host closed the connection]
norc has quit [Ping timeout: 264 seconds]
kareeoleez has joined #ruby
moredhel has left #ruby [#ruby]
Snowy has quit [Remote host closed the connection]
jhack has quit [Ping timeout: 244 seconds]
duckpuppy has quit [Quit: WeeChat 1.5]
Snowy has joined #ruby
p337rB has joined #ruby
tubuliferous_ has joined #ruby
buddhabrot has joined #ruby
mikecmpbll has joined #ruby
spyder55 has joined #ruby
kith has joined #ruby
sankarshanmudkav has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
emptyflask has joined #ruby
lopezcryto_ has quit [Quit: Leaving]
chussenot has quit [Quit: chussenot]
hahuang61 has joined #ruby
Snowy has quit [Ping timeout: 250 seconds]
moeabdol1 has quit [Ping timeout: 276 seconds]
amclain has joined #ruby
Coldblackice has joined #ruby
johnDoe111 has joined #ruby
jackjackdripper has joined #ruby
<emptyflask> is there a gemspec syntax that lets me specify a version range that includes prereleases, such as 1.5.0 - 2.0.0.rc1, including a future 2.0.0 release?
p337rB has quit [Ping timeout: 250 seconds]
pondering_ has quit [Ping timeout: 250 seconds]
spyder55 has quit [Client Quit]
jhack has joined #ruby
emilkarl has joined #ruby
amclain_ has quit [Ping timeout: 252 seconds]
duckpuppy has joined #ruby
mistermocha has quit [Remote host closed the connection]
buddhabrot has quit [Ping timeout: 244 seconds]
giz|work has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
flashpoint9 has joined #ruby
<Sou|cutter> emptyflask: maybe `< 2.1` ?
hahuang61 has quit [Ping timeout: 264 seconds]
Rasi has joined #ruby
<Sou|cutter> nah, I don't think that works like you'd want
jhack has quit [Ping timeout: 260 seconds]
danostrowski has joined #ruby
chris2 has quit [Ping timeout: 250 seconds]
<emptyflask> no, it ignores prereleases unless specified
rbr has joined #ruby
AndyBotwin has joined #ruby
<Sou|cutter> including pre-releases seems like not a great idea
PaulCape_ has quit [Quit: .]
<emptyflask> it's not for public consumption :)
<Sou|cutter> most people just keep a separate branch for pre-releases
<emptyflask> i guess that's the best way to handle this
PaulCapestany has joined #ruby
hackeron has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
kgrz has joined #ruby
giz|work has joined #ruby
<emptyflask> the main reason is a rails 5 requirement on mime-types that conflicts with rest-client < 2.0
moredhel has joined #ruby
moeabdol2 has joined #ruby
yqt has joined #ruby
<emptyflask> once the new rails and rest-client are released, all will be ok
whathappens has joined #ruby
hahuang61 has joined #ruby
gfvcastro has joined #ruby
pepee has quit [Quit: bye $IRC]
skade has quit [Quit: Computer has gone to sleep.]
aegis3121 has joined #ruby
johnDoe111 has quit [Ping timeout: 276 seconds]
kgrz has quit [Ping timeout: 272 seconds]
pepee has joined #ruby
p337rB has joined #ruby
adgtl has quit [Disconnected by services]
adgtl has joined #ruby
achamian has quit [Remote host closed the connection]
Further has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
ramfjord has quit [Ping timeout: 240 seconds]
nwhirschfeld has quit [Quit: nwhirschfeld]
norc_ has quit [Ping timeout: 264 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
Further has quit [Client Quit]
danostrowski has quit [Ping timeout: 276 seconds]
chris2 has joined #ruby
hahuang61 has quit [Ping timeout: 272 seconds]
p337rB has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
diegoviola has joined #ruby
spikeheadon has joined #ruby
lunarg has joined #ruby
ChiefAlexander has joined #ruby
<hxegon> why does pry -r lib/whatever.rb not work, but pry -r ./lib/whatever.rb will?
cschneid has joined #ruby
sp4rrow has joined #ruby
rcvalle has joined #ruby
<jhass> because it's the same as Kernel#require
<workmad3_> hk238: `-r foobar` is the equivalent of writing `require "foobar"` as the first line of the session
jackjackdripper has quit [Quit: Leaving.]
<workmad3_> hk238: and `.` isn't on the default load path
p337rB has joined #ruby
<jhass> so one alternative is pry -Ilib -rwhatever
workmad3_ is now known as workmad3
<hxegon> ah, ok. Thanks
whathapp_ has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
<lunarg> quit
cdg has quit [Remote host closed the connection]
lunarg has quit [Client Quit]
whathapp_ has joined #ruby
cdg has joined #ruby
allcentury has joined #ruby
GinoManWorks has quit [Read error: Connection reset by peer]
GinoManWorks has joined #ruby
whathappens has quit [Ping timeout: 244 seconds]
mtkd has quit [Ping timeout: 246 seconds]
domgetter has joined #ruby
domgetter has quit [Client Quit]
djbkd has joined #ruby
mtkd has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aufi has joined #ruby
jrafanie has joined #ruby
<pmyjavec> How do people go about using Object.send to methods which take different number of arguments? Is there a nice pattern to deal with that ?
skweek has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<pmyjavec> Are keyword args compatible with Object.send?
mosh has quit [Ping timeout: 260 seconds]
asdf123 has joined #ruby
<jhass> I generally avoid #send, for the few legitimate usecases I use #public_send
Guest4184_______ has quit [Ping timeout: 260 seconds]
<asdf123> can anyone recommend a free book to learn ruby
<jhass> both take regular arguments, keywords arguments, splats and double splats just well
<asdf123> preferably not too length, something i could read in a day or two
certainty has joined #ruby
<baweaver> what have you found so far?
Guest4184_______ has joined #ruby
beatdown has joined #ruby
<pmyjavec> How do you send a keyword argument, I can't see it in the documentation?
last_staff has joined #ruby
pondering_ has joined #ruby
<jhass> just like you would to a regular method
SilverKey has joined #ruby
<pondering_> @jhass one more question. I'm only accessing that variable within that class. Is that still how you would write it?
<jhass> pondering_: yes, perhaps make the method private
asdf123 has quit [Client Quit]
pld has quit [Quit: Connection closed for inactivity]
<jhass> pondering_: that is if it has to be lazy, else just assign it in initialize
<pondering_> @jhass no initialize, it is static
<jhass> there's no such thing in ruby
TomyLobo has joined #ruby
<pondering_> @jhass I mean I am not creating instances of my classes
<pondering_> everything is self.something
<jhass> then they should be modules btw
<jhass> or you use a singleton pattern
certainty has quit [Ping timeout: 258 seconds]
<pondering_> There were problems with that
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lysw123 has joined #ruby
<pondering_> all of my variables are constants except this one
<jhass> a class with only self. methods is in no way different from a module
<pondering_> So it hasn't been an issue
<pondering_> jhass I'm using a test framework that didn't like it
<jhass> >> Class.ancestors
<ruby[bot]> jhass: # => [Class, Module, Object, Kernel, BasicObject] (https://eval.in/586312)
<pondering_> I can't remember why not
<pondering_> now*
Xiti has quit [Quit: Xiti]
<pondering_> But it refused to let me use modules for some reason
blaxter has quit [Quit: foo]
<jhass> sounds like a quite stupid framework
sameerynho has joined #ruby
<pondering_> Well, it's what I've got
<pondering_> So basically if I want to access @foo, I actually need to access "foo" not "@foo"
<pondering_> correct?
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore> pondering_: it would be much easier to give advice if you provided some code to demonstrate the actual use case
<SegFaultAX> >> ("abc" "def")
<ruby[bot]> SegFaultAX: # => "abcdef" (https://eval.in/586313)
<SegFaultAX> ^ is there a multiline form if that?
cdg has quit [Ping timeout: 250 seconds]
<pondering_> okay...
<toretore> SegFaultAX: heredocs
<SegFaultAX> toretore: Not quite
<SegFaultAX> I don't want the newlines
<toretore> that's the "multiline" part
<SegFaultAX> But I don't want the literal to have to be all on one line.
Wolland has joined #ruby
<SegFaultAX> toretore: You cannot have ("abc" <newline>"def")
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<SegFaultAX> It doesn't concatenate all the strings together like it does in Python
flashpoint9 has quit [Remote host closed the connection]
<SegFaultAX> It ignore everything but the last line in the parens.
<toretore> escape the newline
<SegFaultAX> I literally just said I don't want to use line continuations
<toretore> i literally just didn't say that
mikecmpbll has joined #ruby
* baweaver grabs popcorn
<toretore> escape the newline in your code, not inside the string
<SegFaultAX> Yes
<SegFaultAX> And I literally said I don't want to do that
<SegFaultAX> Assuming you mean make this:
<SegFaultAX> 2.3.0 :001 > ("abc"
<SegFaultAX> 2.3.0 :002?> "def")
<SegFaultAX> => "def"
sergey_makagon has joined #ruby
<SegFaultAX> 2.3.0 :003 > ("abc" \
<SegFaultAX> 2.3.0 :004 > "def")
<SegFaultAX> => "abcdef"
<SegFaultAX> That
<SegFaultAX> Sorry for the six line paste, btw.
<toretore> so what's wrong with it? it does exactly what you want
<SegFaultAX> My original question was, is there a multiline form of that so I don't have to use a line continuation.
<baweaver> Use a +, relying on compiler weirdness is a good way to have later issues.
jenrzzz has quit [Ping timeout: 240 seconds]
<toretore> it's not compiler weirdness, \ is the escape character, and in this case it escapes the newline
<SegFaultAX> baweaver: Yea that's what I was thinking I'd have to resort to
Wolland has quit [Ping timeout: 250 seconds]
<baweaver> toretore no no, not that
swills_ has joined #ruby
<baweaver> >> "this" "thing"
<ruby[bot]> baweaver: # => "thisthing" (https://eval.in/586319)
swills has quit [Remote host closed the connection]
<SegFaultAX> It's string to be that a parenthesized list doesn't concat all the strings
<SegFaultAX> That seems like a reader bug to me.
<baweaver> off I go
<SegFaultAX> It's strange to me*
<SegFaultAX> I can't type, ugh.
<eam> seems like "this" <newline> "string" ought to concat both strings
miqlas-H has joined #ruby
<eam> ruby would be a better language if it had an explicit semicolon statement delimiter
rbr has quit [Ping timeout: 276 seconds]
<toretore> *expression
mdw has joined #ruby
<ytti> you take that back right meow
<toretore> :)
<SegFaultAX> eam: When inside parens, I agree. As for semicolons, no.
<eam> you know it's true in your heart of hearts
<SegFaultAX> I know it's idiotic in my heart of hearts. :)
<pondering_> @toretore @jhass here's some pseudocode http://pastebin.com/6hFaQpmY
<ruby[bot]> pondering_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/4396cac10346782ede8e9aa2bb279690
<ruby[bot]> pondering_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
rueben_ has joined #ruby
<pondering_> >_>
gfvcastro has joined #ruby
<toretore> pondering_: first of all, why are you using classes like that?
<toretore> singletons are bad
<pondering_> It's going to take me a long time to explain that
<toretore> pondering_: secondly, it's still not an actual real-life use case
<pondering_> I'm not allowed to paste the real code
<toretore> good policy, i'd definitely steal it
danostrowski has joined #ruby
<pondering_> Heh, I know it's not worth stealing but it offers insight into how my company's application works
<toretore> the code you pasted wouldn't work because one is an instance method and one is a "class method"
<pondering_> So rather than get fired, I'm writing pseudocode
nando293921 has quit [Ping timeout: 276 seconds]
eeinqt has joined #ruby
<pondering_> @toretore yes, I know it doesn't work
<pondering_> That's why I'm talking in this channel
<pondering_> :)
<toretore> and i still don't understand what it is you want to do
craigp has joined #ruby
<pondering_> okay...
cdg has joined #ruby
<pondering_> Our app runs on an iPad
yfeldblum has joined #ruby
<toretore> is there a reason why one is an instance and the other a class method?
eeinqt has quit [Client Quit]
<pondering_> iPad apps have developer settings which are toggled by a user
<pondering_> @toretore jhass suggested it
dar123 has joined #ruby
alfiemax has quit [Ping timeout: 250 seconds]
<jhass> pondering_: back when that context wasn't clear at all
<pondering_> I'm afraid I don't know which question to answer now
<jhass> I should not existent
<jhass> *should say
<pondering_> Do you want the backstory or...?
<toretore> ok, continue..
hahuang61 has joined #ruby
<toretore> i want to understand what it is you're trying to do
<pondering_> okay, so iPads have developer settings that toggle options based on user preference. Let's say this one user preference is called "preference1"
<toretore> the more data we get, the better advice we can give
giz|work has quit [Ping timeout: 252 seconds]
<pondering_> I don't know until the app is running whether the user preference is true or false
<pondering_> So I can't just set it like we set our normal variables
<pondering_> Therefore:
<pondering_> I need to be able to set it one time (not more than one time) and only on run-time
<pondering_> Within the class it is in
<pondering_> Which happens to be a class and not a module
<pondering_> And everything in that class happens to use self
dionysus70 has joined #ruby
<pondering_> And no that's not going to change today
cstrahan has quit [Ping timeout: 250 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
colegatron has quit [Ping timeout: 244 seconds]
eeinqt has joined #ruby
eeinqt has quit [Client Quit]
flashpoint9 has joined #ruby
pmarreck has quit [Ping timeout: 260 seconds]
<pondering_> Does that make any more sense?
c355e3b has quit [Ping timeout: 250 seconds]
<jhass> pondering_: you should take the time to research and understand what def self. actually does
nekomune has quit [Ping timeout: 244 seconds]
<pondering_> Sigh
<toretore> ok, so you basically have a singleton instance (the "static" class), which is how the app runs, and inside its methods you access a preference which is also a method on this class?
eeinqt has joined #ruby
eeinqt has quit [Client Quit]
zrl_ has quit [Ping timeout: 272 seconds]
jabreity__ has quit [Ping timeout: 250 seconds]
eeinqt has joined #ruby
<pondering_> Almost
<pondering_> The app is running on an iPad and contains a web service the ruby code talks to
<pondering_> User says "i want to tap on object a on the screen"
lysw123 has quit [Quit: Page closed]
cstrahan has joined #ruby
pmarreck has joined #ruby
eeinqt has quit [Client Quit]
<pondering_> my code says "okay, first let me ask the app what Preference1 is
Kneecaps has quit [Quit: leaving]
<toretore> where is "my code" when this happens?
dionysus69 has quit [Ping timeout: 244 seconds]
dionysus70 is now known as dionysus69
<toretore> and what exactly does it mean to ask the app about pref1?
jabreity__ has joined #ruby
<pondering_> There are a lot of layers of code
<pondering_> user test --> layer that parses user test --> helper class --> talk to app
c355e3b has joined #ruby
<pondering_> user doesn't care about helper classes
zrl_ has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
exadeci has quit [Ping timeout: 250 seconds]
<pondering_> helper class needs to be able to appropriately set the string for the preference in the ruby code based on the app setting
shinnya has joined #ruby
<pondering_> if preference1 is true, @active_overlay = "A", if false, @active_overlay = "B"
<pondering_> But I don't want to keep sending queries to the app because it's expensive
ta_ has joined #ruby
exadeci has joined #ruby
Raboo has quit [Ping timeout: 244 seconds]
colegatron has joined #ruby
<pondering_> some_method_to_determine_value(...) --> represents the call to the app
Lildirt has quit [Quit: Leb wohl, meine Freunde. Ich wünsche Ihnen das beste von Tagen.]
<toretore> how and from where do you read @active_overlay ?
<pondering_> AnotherClass.foo(@active_overlay)
Xiti has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
Raboo has joined #ruby
<toretore> where exactly is this run from?
cstrahan has quit [Ping timeout: 250 seconds]
<pondering_> In the example above it would be tap(@active_overlay) where tap is a method owned by the base test framework we built on
kobain has joined #ruby
<pondering_> A computer running OSX
jpinnix_______ has quit [Ping timeout: 276 seconds]
sanika has joined #ruby
c0mrad3 has quit [Ping timeout: 260 seconds]
giz|work has joined #ruby
acalewin has quit [Ping timeout: 276 seconds]
postmodern has joined #ruby
digitalfiz has quit [Ping timeout: 272 seconds]
hobodave_ has joined #ruby
<pondering_> All I really want to know is how to set a class instance variable only the first time it is used
voodoofish430 has quit [Ping timeout: 260 seconds]
<toretore> you don't, you use a method
<toretore> don't access @active_overlay directly
cstrahan has joined #ruby
<pondering_> OK that is the answer to the question I asked awhile back :)
<jhass> there's no difference between a "class instance variable" and an "instance variable", they just have different objects where they reside
voodoofish4302 has joined #ruby
jancel has joined #ruby
<pondering_> Sigh.
<toretore> it might be that you're just looking to do def active_overlay; @active_overlay ||= SomethingElse.pref1; end
jpinnix_______ has joined #ruby
acalewin has joined #ruby
<pondering_> That's what jhass said a long time ago
c0mrad3 has joined #ruby
<pondering_> When you asked me for the code, I was asking a follow-up question about that
<toretore> ok, so does that not work?
digitalfiz has joined #ruby
<pondering_> It did not. But I will continue looking into it.
hobodave has quit [Ping timeout: 260 seconds]
ksinkar`` has quit [Remote host closed the connection]
nekomune has joined #ruby
xfbs has joined #ruby
hakunin has joined #ruby
SilverKey has quit [Ping timeout: 272 seconds]
Kneecaps has joined #ruby
yo61 has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
Lildirt has joined #ruby
<jhass> understanding that classes and modules are just instances of Class and Module and that every Ruby object has an implicit singleton class is a very worthwhile effort for your career as a Ruby programmer
SilverKey has joined #ruby
<jhass> it'll also make the solution to your current problem immediately obvious
sergey_makagon has quit [Remote host closed the connection]
<Saloun> jhass: any idea about that problem yet?
<jhass> I didn't and don't plan to spend any time on it
ta_ has quit [Read error: Connection reset by peer]
<Saloun> :/ ok
ta_ has joined #ruby
pondering_ has quit [Quit: Page closed]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
yqt has quit [Ping timeout: 252 seconds]
digitalfiz has quit [Ping timeout: 250 seconds]
jpinnix_______ has quit [Ping timeout: 250 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
eeinqt has joined #ruby
aberen has joined #ruby
humd1ng3r has quit [Ping timeout: 276 seconds]
jancel has quit [Remote host closed the connection]
mdw has quit [Quit: Sleeping Zzzzz]
jenrzzz has joined #ruby
humd1ng3r has joined #ruby
yo61 has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sergey_makagon has joined #ruby
sergey_makagon has quit [Remote host closed the connection]
jpinnix_______ has joined #ruby
jaguarmagenta has joined #ruby
Xiti has quit [Quit: Xiti]
sergey_makagon has joined #ruby
digitalfiz has joined #ruby
alfiemax has quit [Ping timeout: 250 seconds]
ta_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
aberen has quit [Ping timeout: 272 seconds]
Kneecaps has quit [Quit: leaving]
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
sauvin_ has quit [Read error: Connection reset by peer]
digitalfiz has quit [Ping timeout: 272 seconds]
mark_66 has quit [Remote host closed the connection]
jrafanie has joined #ruby
zrl_ has quit [Ping timeout: 250 seconds]
TinkerTyper has quit [Read error: Connection reset by peer]
evidex has quit [Ping timeout: 246 seconds]
norc_ has joined #ruby
jrafanie has quit [Client Quit]
kobain has quit [Ping timeout: 260 seconds]
<Synthead> is there a better way to do "not [ ... ].any?" ?
ta__ has joined #ruby
allcentury has joined #ruby
digitalfiz has joined #ruby
jrafanie has joined #ruby
<shevy> cool
<shevy> I don't think I have ever used none? so far
smathy has joined #ruby
<shevy> these devdoc are really nicer to read than the official ruby docu
kobain has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.5]
zrl_ has joined #ruby
mensvaga has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
der-landgraf has joined #ruby
TinkerTyper has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
swgillespie has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 276 seconds]
<mensvaga> What's the best way to insert a # in front of every line in a string? I could gsub(/\n/,/\n#/) , but that wouldn't get the first line.
<jhass> mmh, I think gsub(/^/, "#") works
<mensvaga> I could split("\n") , then concatenate,
swgillespie has joined #ruby
<jhass> .lines.map.join is the other option, yeah
alfiemax has joined #ruby
certainty has joined #ruby
ta__ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<jhass> >> "a\nb\nc".gsub(/^/, "#")
<ruby[bot]> jhass: # => "#a\n#b\n#c" (https://eval.in/586386)
ta_ has joined #ruby
<mensvaga> Well, hey. THat's pretty cool. I wouldn't have thought of using ^ like that.
karmatr0n has joined #ruby
Xiti has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
voodoofish4302 has quit [Ping timeout: 246 seconds]
jabreity__ has quit [Ping timeout: 260 seconds]
whathapp_ has quit [Remote host closed the connection]
<tgeeky> mensvaga: that's how i comment out blocks in vim
<tgeeky> :s/^/#/
voodoofish430 has joined #ruby
iamdevnul has quit [Ping timeout: 260 seconds]
jabreity__ has joined #ruby
Ishido has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 240 seconds]
<mensvaga> It makes sense, but it's not how I would think about using ^ , especially in a multi-line-string.
<mensvaga> Two things; first, regex flags probably allow you to say that ^ only corresponds to the beginning of the string, not necessarily the beginning of a new line in the string
nankyokusei has joined #ruby
<mensvaga> second, that the concept of ^ is something to be replaced.
voodoofish4302 has joined #ruby
<mensvaga> But, if it works, it works.
<jhass> Ruby's a bit different here
<jhass> \A is beginning of string
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> ^ is beginning of line
sameerynho has quit [Ping timeout: 258 seconds]
<jhass> m only affects .
dangerousdave has joined #ruby
<mensvaga> Makes sense.
iamdevnul has joined #ruby
lupine has quit [Remote host closed the connection]
Ishido has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
<mensvaga> I'm writing something that generates nagios configurations from a data structure. But, that data structure is automatically generated from something else.
<tgeeky> can someone help me guess how to specify this XML via the hash?
whathappens has joined #ruby
<tgeeky> I have tried :active_status => :all, and lots of other options, none seem to work
ta_ has quit [Read error: Connection reset by peer]
tlaxkit has quit [Quit: ¡Adiós!]
<mensvaga> So, I'm using data_structre.pretty_inspect.gsub(/^/,"#") , which puts the data structure in the output file as well (for debugging)
dangerousdave has joined #ruby
ta_ has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
lupine has joined #ruby
<tgeeky> ^ re my reques; gem is qbwc, and the max_returned part works already
dangerousdave has joined #ruby
voodoofish430 has quit [Ping timeout: 276 seconds]
aufi has quit [Ping timeout: 252 seconds]
multi_io has quit [Ping timeout: 258 seconds]
dangerousdave has quit [Max SendQ exceeded]
Wolland has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
ferr1 has quit [Quit: WeeChat 1.5]
agit0 has joined #ruby
monod has joined #ruby
multi_io has joined #ruby
moeabdol2 has quit [Quit: WeeChat 1.4]
whathappens has quit [Ping timeout: 244 seconds]
dar123 has quit [Ping timeout: 240 seconds]
iamdevnul has quit [Ping timeout: 260 seconds]
ta_ has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
moeabdol has joined #ruby
cdg has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
dangerousdave has joined #ruby
<smathy> tgeeky, the docs you linked to show qbXML as version 13.0, and your XML says it's 7.0
<smathy> ...maybe 7.0 had a different set of elements.
<tgeeky> smathy: I didn't think of that initially, but I checked it about 4 minutes ago
<tgeeky> they are the same
<tgeeky> good catch, but that's not it :)
iamdevnul has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
<smathy> Seems fine then.
Kneecaps_ has joined #ruby
dukedave has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
ducklobster has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
chridal has quit [Ping timeout: 250 seconds]
dukedave has joined #ruby
davidmichaelkarr has quit [Ping timeout: 264 seconds]
kirun has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
davidmichaelkarr has joined #ruby
Spami has quit [Quit: Leaving]
ta_ has joined #ruby
sphex_ has quit [Ping timeout: 244 seconds]
chridal has joined #ruby
sphex has joined #ruby
chridal has quit [Changing host]
chridal has joined #ruby
eeinqt has quit [Ping timeout: 240 seconds]
tubuliferous_ has quit [Ping timeout: 258 seconds]
snath has quit [Ping timeout: 264 seconds]
gmci has quit [Ping timeout: 240 seconds]
ec has quit [Ping timeout: 240 seconds]
snath has joined #ruby
caw has quit [Ping timeout: 264 seconds]
whiteline has quit [Remote host closed the connection]
whiteline has joined #ruby
gmci has joined #ruby
bestie has quit [Ping timeout: 240 seconds]
mrfooo has quit [Ping timeout: 240 seconds]
caw has joined #ruby
synthroid has quit []
bestie has joined #ruby
matp has quit [Ping timeout: 240 seconds]
mrfooo has joined #ruby
postmodern has quit [Ping timeout: 250 seconds]
Dimik has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
eljimbo has quit [Quit: This computer has gone to sleep]
digitalfiz has quit [Ping timeout: 272 seconds]
kallisti5 has quit [Ping timeout: 260 seconds]
gmci has quit [Ping timeout: 250 seconds]
DarkBushido has quit [Ping timeout: 276 seconds]
digitalfiz has joined #ruby
kallisti5 has joined #ruby
DarkBushido has joined #ruby
DarkBushido has joined #ruby
DarkBushido has quit [Changing host]
gmci has joined #ruby
AustinMatherne has quit [Remote host closed the connection]
babblebre has joined #ruby
monod has quit [Ping timeout: 244 seconds]
sneakers has quit [Ping timeout: 260 seconds]
Kneecaps_ has quit [Quit: leaving]
Kneecaps has joined #ruby
johnDoe111 has joined #ruby
k3rn31 has joined #ruby
hahuang61 has joined #ruby
speaking1ode has quit [Ping timeout: 250 seconds]
zeroDi has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
exadeci has quit [Quit: Connection closed for inactivity]
postmodern has joined #ruby
diegoviola has joined #ruby
speakingcode has joined #ruby
ocbtec has quit [Quit: leaving]
yqt has joined #ruby
ocbtec has joined #ruby
ta_ has quit [Remote host closed the connection]
flughafen_ has joined #ruby
matp has joined #ruby
voodoofish4302 has quit [Ping timeout: 276 seconds]
johnDoe111 has quit [Ping timeout: 260 seconds]
voodoofish430 has joined #ruby
jenrzzz has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aberen has joined #ruby
peitur has joined #ruby
sameerynho has joined #ruby
DTZUBDUB has quit [Ping timeout: 264 seconds]
<pmyjavec> Hey all, on line 5 of this https://gist.github.com/pmyjavec/e7dcdac39914863fb6a0f024fdeb6b3b, the method does not exist, but for some reason the exception is being caught and my application jsut hangs?
sp4rrow has joined #ruby
wrkrcoop has joined #ruby
<pmyjavec> Can anyone see why it's not being picked up by the VM and the application should just crash ?
whathappens has quit [Quit: Leaving...]
diegoaguilar has quit [Read error: Connection reset by peer]
aberen has quit [Ping timeout: 252 seconds]
<wrkrcoop> can someone take a look @ this and tell me if i’m using rescue correctly? https://gist.github.com/ellismarte/bea2e991f292cf3c9a8710860f2c8a08
<adaedra> First, def ... end blocks act as begin .. end block, so you can put a rescue at method level too
<wrkrcoop> im trying to rescue if the key doesn’t exist and also rescue if the internal logic doesn’t work
flughafen_ has quit [Ping timeout: 240 seconds]
<adaedra> I don't see where it can raise
peitur has quit []
<wrkrcoop> adaedra: is that what im supposed to do?
<wrkrcoop> raise …
<adaedra> You should not be using exceptions for control flow
<adaedra> Better to check your data
gfvcastro has quit [Ping timeout: 250 seconds]
<adaedra> Also, rescuing StandardError is a very large nest, you shall be aiming for more precise exceptions to catch
tubuliferous_ has joined #ruby
<wrkrcoop> adaedra: i feel like exception isn’t the right word … if the key isn’t there i just want to log it and not crash the server
spider-mario has joined #ruby
elaptics is now known as elaptics`away
<pmyjavec> adaedra, who are you talking too ? :)
<adaedra> pmyjavec: wrkrcoop
<havenwood> pmyjavec: wrkcoop
<adaedra> havenwood: tab key
<pmyjavec> cheers
<pmyjavec> Has anyone had problems when you `raise` then nothing happens? It's like i'm capturing my exception and then nothing is happening
<shevy> adaedra he just needs more coffee!
* havenwood gulps
<adaedra> wrkrcoop: if your goal is just to manage the case where arg has no "data" key, you can do an early return, like `return [] unless arg.key?("data")`
sandelius has joined #ruby
allcentury has joined #ruby
<shevy> pmyjavec could be if you also read user input or wait otherwise on something to happen, or in a thread that is still running but silencing what it yields
<adaedra> if you can check for case that can raise and throw them away like that, all the better, wrkrcoop
danostrowski has joined #ruby
<pmyjavec> shevy , I am doing that
<havenwood> wrkrcoop: +1 for avoiding raising for flow control - treat exceptions as exceptional
<adaedra> pmyjavec: you can try to run Ruby in debug mode to see raised exceptions even if caught
<shevy> I had to use "Thread.abort_on_exception = true" for the first time in my life, about 3 months ago or so. a ruby gtk program had errors but it never exited
kgrz has joined #ruby
<pmyjavec> Yeah, it's pretty confusing to be honest
<wrkrcoop> am i right in assuming rescue raises an exception?
<adaedra> No, rescue catches it.
aegis3121 has quit [Ping timeout: 252 seconds]
<adaedra> >> begin; raise 'Oops'; rescue; puts "Oh noes"; end
<ruby[bot]> adaedra: # => Oh noes ...check link for more (https://eval.in/586406)
<wrkrcoop> hmm i thought it caught errors
<wrkrcoop> or handled exceptions — is that the smae thing?
<adaedra> there's two steps
tubuliferous_ has quit [Ping timeout: 244 seconds]
<pmyjavec> shevy, it must be catching some exception outside of the exceptions my application raises
<pmyjavec> something like that...
<adaedra> raising the exception is creating it, rescue catches the raised exception
<wrkrcoop> so confused
arlek has joined #ruby
<adaedra> let me write a little thing
agent_white has joined #ruby
<wrkrcoop> wow thanks
sandstrom has quit [Quit: My computer has gone to sleep.]
<agent_white> Afternoon
Kneecaps has quit [Quit: leaving]
NorthernHorse has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<adaedra> wrkrcoop: https://eval.in/586408
<pmyjavec> shevy, thanks that helped, it seems the exception is one I'm supposed to be handling
allcentury has quit [Ping timeout: 252 seconds]
<pmyjavec> just locks up the whole thread
<wrkrcoop> adaedra: so the oh noes part is that like an error happens, and because an error happens raise an exception called Dragon?
govg has quit [Quit: leaving]
kgrz has quit [Ping timeout: 240 seconds]
flughafen_ has joined #ruby
<adaedra> no, "Dragon" is the text associated to the exception: it's the exception I encounter
<wrkrcoop> so lets say i try to access some key
<wrkrcoop> and the key is not there
eljimbo has joined #ruby
<wrkrcoop> would i raise a ‘key not found’?
<adaedra> no, it does not in ruby, it returns nil.
<wrkrcoop> yeah it returns nil, so what is an example of something i’d raise?
<shevy> pmyjavec YAY!!! I have random superpowers!
<pontiki> what are they this round, shevy ?
<adaedra> But that's where you get in the "Don't use exceptions for control flow rule": You can pretty well check for existance of the key and handle the case directly
<shevy> pontiki I don't know yet! I have to discover them properly first I think
eljimmy has quit [Read error: Connection reset by peer]
<wrkrcoop> hmmm ok, what is the point of exceptions?
sameerynho has quit [Ping timeout: 258 seconds]
eljimmy has joined #ruby
<adaedra> You can raise in your program because you call `#each` which does not exists on nil
<shevy> wrkrcoop to indicate different failure types
certainty has joined #ruby
<shevy> like you have in bash, the exit codes
<adaedra> Exceptions are for exceptional cases
monod has joined #ruby
<adaedra> shevy: no
<pontiki> man, if superpowers were like fluxx cards
<pontiki> you get your hand telling you what you superpowers are each day
<shevy> pontiki only one superpower per day?
<wrkrcoop> ok let me see if i understand, i use begin - raise - rescue - end in order to prevent my code from crashing. raise indicates the type of error i encounter, and rescue handles it?
<pontiki> you get dealt 5
cdg has quit [Ping timeout: 240 seconds]
NorthernHorse has left #ruby [#ruby]
<adaedra> wrkrcoop: yes
<wrkrcoop> so i could have several raises right next to each other?
<pontiki> still not getting the concept, i fear
mrmortondk has joined #ruby
<wrkrcoop> raise syntax error, raise someOtherError, etc
<adaedra> wrkrcoop: you should read up online on exceptions; explaining like that on IRC is not the best way to teach I'm afraid
pepee has quit [Read error: Connection reset by peer]
<wrkrcoop> ok
<wrkrcoop> thanks for the help
pepee has joined #ruby
<adaedra> Also, other calls can raise exceptions, and that's the point: Exceptions stop the current program flow and are going up in the stack until they are caught
postmodern has quit [Ping timeout: 250 seconds]
<adaedra> But they should be reserved for rare cases that should not happen at all in normal usage
certainty has quit [Ping timeout: 246 seconds]
<adaedra> On these words, I have to leave for a bit
polll has joined #ruby
sp4rrow has joined #ruby
polll has quit [Client Quit]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki> wrkrcoop: i recommend "Exceptional Ruby" by Avdi Grimm for a learning about what exceptions are and how to use them -- and as much how *not* to use them
wrkrcoop has quit [Quit: wrkrcoop]
Eiam has joined #ruby
<tgeeky> smathy: FYI, since you helped: it was the order of arguments. The elements of the request have to be ordered exactly as the specification.
ledestin has joined #ruby
<smathy> tgeeky, sigh, stupid APIs.
<smathy> Glad you got it sorted.
<tgeeky> aye. thanks.
Wolland has joined #ruby
aegis3121 has joined #ruby
solars has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
A124 has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
postmodern has joined #ruby
roamingdog has quit [Remote host closed the connection]
sergey_makagon has quit []
<ule> Hey guys
aufi has quit [Client Quit]
<ule> anyone here using VIM + NERDTree + vim-bundle ?
pawnbox has quit [Remote host closed the connection]
<ule> Fernando-Basso: ping
sandstrom has joined #ruby
swills_ has quit [Remote host closed the connection]
symm- has joined #ruby
<norc_> ule, I wanted to buy a Peugeot, so I went to a BMW shop.
<ule> norc_: yeah, maybe you could get a good deal getting an used car there
swills has joined #ruby
<hxegon> norc_: illusion of transparency?
<hxegon> ule: is this a ruby question?
Madplatypus has joined #ruby
truenito has left #ruby ["Bye!"]
truenito has joined #ruby
<ule> hxegon: it's a plugin to code ruby in vim
postmodern has quit [Ping timeout: 250 seconds]
<tgeeky> ule: none of the three you listed are?
<tgeeky> vim-bundle is close, since it's a ruby bundler
<ule> yes
<tgeeky> ule: what is the question/problem?
Spami has joined #ruby
<ule> tgeeky: nevermind
<ule> I noticed that here there is no ruby developers using VIM
<tgeeky> i am
<tgeeky> there are a bunch, probably.
<hxegon> so am I
<tgeeky> I don't use vim-bundle, though. Or NERDtree.
<ule> tgeeky: When I execute NERDtree, and then :Bopen in order to open a gem source
<hxegon> I use nerdtree, but that isn't specific to ruby at all
<ule> it opens the files on the LEFT window instead of opening the files on the right window
prestorium has quit [Quit: Leaving]
<tgeeky> ule: ah. that is probably a nerdtree configuration option
<ule> in NERDTree, when you select a file from left window (tree of files) it opens the files in right side
<ule> but only when I type :Bopen it craches
<ule> tgeeky: I'll open an issue on vim-bundle github
<ule> thanks anyways
Pumukel has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
truenito has quit [Ping timeout: 272 seconds]
DTZUBDUB has joined #ruby
giz|work has quit [Ping timeout: 244 seconds]
duckpuppy has joined #ruby
<tgeeky> ule: also, it seems that even vim-bundle is not "ruby specific". It's just a (not very highly used) vim "bundle" manager
<tgeeky> ie, it doesn't appear to have anything to do with bundler
<tgeeky> i would use vundle or one of the other big vim bundlers
wrkrcoop has joined #ruby
cdg has joined #ruby
<smathy> Bopen opening the gem in the current window seems to be the correct behavior, fwiw.
<wrkrcoop> adaedra: so this works: https://gist.github.com/ellismarte/bea2e991f292cf3c9a8710860f2c8a08 but i’m not raising anything … should i be raising something?
solars has joined #ruby
<ule> smathy: it opens the gem inside the three (left side)
<ule> *tree
<hxegon> have you tried #vim?
<ule> hxegon: I'll try.. thanks
xfbs has quit []
<smathy> ule, right, that's what Bopen does. Just sounds like nerdtree doesn't integrate with vim-bundler.
ocbtec has quit [Quit: leaving]
<tgeeky> oh, vim-bundler is... a bundler vim thing.
<tgeeky> weird, there are three of those
mdw has joined #ruby
<tgeeky> ule: reading the manual
<tgeeky> it seems you went something like :Bsplit, or :btabedit
<tgeeky> perhaps you could remap one of those on top of :Bopen
* smathy just CtrlPs
<ule> tgeeky: that makes sense
<tgeeky> ule: it's the first thing I've thought today that does make sense, so that's progress
Vingador has quit [Remote host closed the connection]
Xentil has quit [Ping timeout: 246 seconds]
A124 has joined #ruby
tildes_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.5]
postmodern has joined #ruby
sankarshanmudkav has quit [Quit: sankarshanmudkav]
johnmilton has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
sepp2k has joined #ruby
solocshaw has quit [Ping timeout: 264 seconds]
solocshaw has joined #ruby
workmad3 has joined #ruby
johnDoe111 has joined #ruby
norc_ has quit [Ping timeout: 264 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
arlek has quit [Ping timeout: 250 seconds]
tildes_ has quit [Ping timeout: 252 seconds]
minimalism has joined #ruby
blackgoat has joined #ruby
al2o3-cr has joined #ruby
roamingdog has joined #ruby
AnoHito_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
AnoHito_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
achamian has joined #ruby
johnDoe111 has quit [Ping timeout: 244 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
<wrkrcoop> if i called a method like scrub_data(data)
<wrkrcoop> and wrapped it in a begin rescue end
<wrkrcoop> if theres an error inside the data will i rescue it ?
<toretore> yes
<wrkrcoop> cool :)
<toretore> if there is an exception
<toretore> error != exception
<wrkrcoop> toretore: is an exception just another name for error?
<wrkrcoop> oh shit
<wrkrcoop> really?
<toretore> error can mean many things. in your case "error in data" could mean malformed data that does not cause an exception
jaguarmagenta has joined #ruby
Yiota has joined #ruby
<toretore> you have an end too many there
<wrkrcoop> toretore: but i have to begin rescue statements?
<wrkrcoop> two*
<toretore> or improper indentation, i can't tell
<wrkrcoop> improper indentation
<toretore> if it works, proably the latter
<wrkrcoop> so whats the dif between an error and exception?
<toretore> "error" doesn't mean anything in particular
spikey has joined #ruby
<toretore> forget about "error", focus only on exceptions
hahuang61 has joined #ruby
<toretore> if an exception is raised, a rescue will rescue it (as long as it is-a whatever you told it to rescue)
achamian has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
<tgeeky> how does one normally place .rb files which modify base stuff (object, string, array, etc) in a git repo?
<tgeeky> lib/<name>/extending?
<toretore> one does not normally write those
flughafen_ has quit [Ping timeout: 276 seconds]
<tgeeky> well one has no choice
jaguarmagenta has quit [Ping timeout: 244 seconds]
<shevy> tgeeky I tend to have a directory called core/
<toretore> a boy has been naughty
<tgeeky> shevy: ok thanks
<workmad3> tgeeky: I'd normally go lib/ext/<thing>
whathappens has joined #ruby
<wrkrcoop> what is the dif between an exception and error
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
<pontiki> rails uses 'lib/core-ext/...'
<toretore> there is always a choice; you could choose the light or you could succumb to the darkness of monkey patching
spikeheadon has quit [Ping timeout: 250 seconds]
<workmad3> toretore: monkey patching isn't always evil :P
<pontiki> there's no standard i'm aware of; because, yeah, you shouldn't
<shevy> wrkrcoop I guess an exception is easier to define than an "error". Is any bug an error for instance?
tubuliferous_ has joined #ruby
spikeheadon has joined #ruby
<workmad3> but yeah, no standard, because you should always consider it carefully
<toretore> workmad3: when is it not?
whathappens has quit [Client Quit]
nobitanobi has joined #ruby
<wrkrcoop> if the owners of the language change the language how is that different from monkey patching? it isn’t as far as i can tell
yfeldblum has joined #ruby
<pontiki> my rule of thumb for "what's an exception" is a failure of some part that your program does not expect to handle
shinnya has quit [Ping timeout: 250 seconds]
<workmad3> toretore: I'd have to really dig around for a good concrete example, but in the abstract - it's not evil when it's simple, easy to grok and solves your problem in a much simpler fashion than the non-monkey-patched approach
chouhoulis has quit []
spikey has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
<pontiki> an exception is raised at the point, for hopefully some higher-level part (or the system) to handle
<workmad3> toretore: such situations are uncommon, but not non-existant IME
kgrz has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore> workmad3: i've seen cases where it *probably* doesn't cause harm and is the easy way out, but i guess the point is the "probably" - you never really know
Yiota has joined #ruby
tubuliferous_ has quit [Ping timeout: 260 seconds]
colegatron_origi has joined #ruby
<workmad3> toretore: hmm... 'probably doesn't cause harm' - are you mostly classing monkey-patching as altering existing methods on core/stdlib objects?
haxrbyte has quit [Quit: Leaving...]
nando293921 has joined #ruby
colegatron has quit [Ping timeout: 246 seconds]
allcentury has quit [Ping timeout: 252 seconds]
jmignault has quit [Quit: rcirc on GNU Emacs 24.5.1]
roamingdog has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 250 seconds]
kraken has joined #ruby
kraken is now known as Guest56458
roamingdog has joined #ruby
<toretore> workmad3: not exclusively - also adding new methods - but as it is a global namespace there is always a chance of collision, where the "winner" does not necessarily do the same thing as the "loser"
dionysus69 has joined #ruby
<workmad3> toretore: right... but that's true of pretty much the entirety of your codebase, if you want to get pedantic
certainty has joined #ruby
<Guest56458> Hey could somebody please help me understand this? https://gist.github.com/KrakenHH/acacaf6cd0ffaac70a4a9ffc6520bd32 ? I really don't get whats going on. I was thinking that the first line starts the web server, the second line gets the page, and then the third line displays the body on the page, but I don't get why the third lines isn't: puts http.req.body
sesquipedalian has quit [Ping timeout: 260 seconds]
<hxegon> (on monkey patching) This gets rid of most of the evil of monkey patching IMO http://devblog.avdi.org/2015/05/20/so-whats-the-deal-with-ruby-refinements-anyway/
<toretore> workmad3: i guess if you can confine it to only your own code the chance of collision is minimized
<toretore> i think refinements too are a solution to a problem that shouldn't exist
whathappens has joined #ruby
<wrkrcoop> i want to run a command, and then send all lines with error into error.txt, i tried “the_command_to_run | grep error | cat > error.txt” and it didn’t do anything
<workmad3> toretore: sure... I'm much more heavily against monkey-patching in libraries... I see monkey-patching as a tool for application developers to tweak under the hood a bit, not as something to happen much in distributed code
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
<wrkrcoop> says Errno::EPIPE: Broken pipe - <STDOUT>
<toretore> Guest56458: req is just an object containing the data for the request, it doesn't perform the request itself, http does
<pontiki> EEGREGIOUSCAT
sesquipedalian has joined #ruby
<workmad3> Guest56458: the first line creates an HTTP client and yields it to the block. The second line creates a request object. The third line passes the request to the client (which executes the request) and grabs the body from the response
<workmad3> Guest56458: at no point does that start an HTTP web server... it only talks to one
<toretore> workmad3: i just don't understand what's so difficult about putting it somewhere else i guess
APhilp has joined #ruby
SCHAAP137 has quit [Ping timeout: 276 seconds]
guacamole has quit [Read error: Connection reset by peer]
<pontiki> wrkrcoop: when you say "didn't do anything" does that mean the error.txt file was empty?
<wrkrcoop> pontiki: yes
<wrkrcoop> if i remove the grep part it works
<toretore> instead of core_obj.something just do MyUtils.something(core_obj)
<wrkrcoop> logs to the file
certainty has quit [Ping timeout: 244 seconds]
<pontiki> wrkrcoop: do you know if the lines containing "error" are being written to STDOUT?
nankyokusei has joined #ruby
<workmad3> toretore: sometimes a well placed monkey-patch just makes things so much neater it's hard to justify a different approach
whathappens has quit [Client Quit]
<toretore> workmad3: we have different definitions of neat i think :P
<wrkrcoop> pontiki: no
<workmad3> toretore: one 3 line monkey patch == dozens of lines of reduction and improved readability throughout large parts of a codebase
<Guest56458> Thank you toretore and workmad3 much more clear now
<workmad3> toretore: that's the sort of neatness I'm talking about
qasaur has joined #ruby
elifoster has joined #ruby
Noxilex has joined #ruby
<toretore> workmad3: i will still choose the (imo) "proper" way, but to each his own i guess, as long as you're not publishing these into the wild
<workmad3> toretore: and I've had that happen on occasion... but not usually on a core object, I have to admit (normally, I add a quick method like that to another gem's code because it's a really simple, obvious extension)
qasaur has quit [Client Quit]
machinewar has joined #ruby
<machinewar> I get the whole ampersand to_proc stuff except the call part, does map send #call to procs?
<machinewar> [1,2,3].map(&:upcase)
<machinewar> what actaully sends call to the proc?
<workmad3> machinewar: the & calls `to_proc` and passes the result as the block parameter to the method
<toretore> machinewar: ruby does
<workmad3> machinewar: the method would then yield/call the block
nankyokusei has quit [Ping timeout: 246 seconds]
Wolland has joined #ruby
<machinewar> so upcase is calling the block? I think I'm just confused because it seems implicit
<machinewar> I mean calling the Proc
<workmad3> machinewar: so `[1,2,3].map(&:upcase)` == `[1,2,3].map { |target, *args| target.send(:upcase, *args) }`
<machinewar> i..e why doesn't [1,2,3,4,].map(some_proc) return [Proc.new, Proc.new, Proc.new, etc.]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<machinewar> its realling returning [Proc.new.call(a), Proc.new.call(b)]
<machinewar> etc.
<workmad3> machinewar: map calls a provided block once for each item in the collection, passing in the item, and returns a new array consisting of the result of those calls
<workmad3> machinewar: that's literally the entire point of the map method...
<machinewar> ohhhhhhh
<machinewar> so map is calling it
<machinewar> damn totally makes sense now
hdawg has joined #ruby
hdawg has quit [Client Quit]
<workmad3> machinewar: correct... some_method(&:blah) passes the result of :blah.to_proc to `some_method` as a block argument... `some_method` still has to call the block
Wolland has quit [Ping timeout: 250 seconds]
sesquipedalian has quit [Ping timeout: 276 seconds]
<workmad3> machinewar: also it would be `[some_proc.call(a), some_proc.call(b)]` not `[Proc.new.call(a), ...]` ;)
dionysus69 has quit [Ping timeout: 276 seconds]
diegoviola has quit [Quit: WeeChat 1.5]
sesquipedalian has joined #ruby
SCHAAP137 has joined #ruby
guacamole has joined #ruby
colegatron has joined #ruby
colegatron_origi has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
Staticillmatic has joined #ruby
qasaur has joined #ruby
Guest56458 has quit [Quit: Leaving]
dmitrij_1003 has joined #ruby
SilverKey has quit [Quit: Halted.]
sandelius has joined #ruby
jrafanie has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
monod has quit [Quit: Sto andando via]
polll has joined #ruby
dmitrij_1003 has quit [Read error: Connection reset by peer]
johnmilton has joined #ruby
Staticillmatic has quit [Ping timeout: 276 seconds]
<machinewar> workmad3: definitely just meant to show its an instance of Proc, which is was some_proc would be
<machinewar> but totally get what you're saying
diegoviola has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tatsuo has joined #ruby
CJKinni has quit [Ping timeout: 260 seconds]
johnmilton has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
rueben_ has quit [Ping timeout: 240 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rueben_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
TomyLobo has quit [Ping timeout: 250 seconds]
johnDoe111 has joined #ruby
Flush has joined #ruby
ldnunes has quit [Quit: Leaving]
aberen has joined #ruby
Gasher has joined #ruby
roamingdog has joined #ruby
johnmilton has joined #ruby
smathy is now known as smathy_afk
johnDoe111 has quit [Ping timeout: 260 seconds]
blockchan has quit [Ping timeout: 252 seconds]
gregf has joined #ruby
aberen has quit [Ping timeout: 252 seconds]
al2o3-cr has quit [Quit: WeeChat 1.5]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
firstdayonthejob has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramortegui has quit [Quit: Ex-Chat]
nemish has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
whathappens has joined #ruby
<wrkrcoop> i’m making an api call, would it make sense to raise response.code, and have rescue blocks for each code type …
bobina22 has quit [Ping timeout: 252 seconds]
<jhass> not. at. all.
tubuliferous_ has joined #ruby
<wrkrcoop> lo
<wrkrcoop> l
ash_workz has quit [Ping timeout: 272 seconds]
<wrkrcoop> but dont i want to rescue when the code comes back and its not a 200?
ta_ has joined #ruby
<jhass> [stuff that makes sense] <- over here your idea somewhere -> [over here]
<shevy> lol
kareeoleez has quit [Remote host closed the connection]
<wrkrcoop> thanks
<wrkrcoop> feeling a lil hurt
allcentury has joined #ruby
<jhass> good
kareeoleez has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> wrkrcoop you can check for that control flow already by checking on response.code alone, like via if/else or case/when
kgrz has joined #ruby
<wrkrcoop> shevy: got it …
flashpoint9 has quit [Remote host closed the connection]
<wrkrcoop> but can’t you check everything then? why have exceptions
ta_ has quit [Read error: Connection reset by peer]
dmitrij_2691 has joined #ruby
<shevy> well
<shevy> you can do crazy things
nando293921 has quit [Ping timeout: 240 seconds]
bruce_lee has quit [Ping timeout: 244 seconds]
<shevy> we also have catch/throw
ta_ has joined #ruby
<shevy> I feel catch/throw to stare at me like an alien when I use it :(
<jhass> for exceptional cases from which you can't recover, at least not in the code you're currently in
tubuliferous_ has quit [Ping timeout: 260 seconds]
<wrkrcoop> jhass: couldn’t you just check for that somehow?
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
<wrkrcoop> and not use exceptions
nando293921 has joined #ruby
<shevy> well there are things that can be dangerous
<jhass> sure there are exception free API designs
<jhass> all C code is exception free
<jhass> doesn't make it easier to handle
<wrkrcoop> shevy: like whart
swills has quit [Ping timeout: 240 seconds]
<shevy> for instance wrkrcoop - create a directory, foo/; enter it, start irb; remove the directory somehow, then try to do something, then you get errors such as: "Errno::ENOENT: No such file or directory @ rb_sysopen"
allcentury has quit [Ping timeout: 246 seconds]
danostrowski has joined #ruby
<wrkrcoop> so why not just say if “Errno::ENOENT” do this
kareeoleez has quit [Ping timeout: 276 seconds]
<wrkrcoop> wouldn’t not doing that break the ‘dont use exceptions for flow control’ rule
<shevy> would that syntax work?
<wrkrcoop> well u know get the syntax righ
kgrz has quit [Ping timeout: 264 seconds]
<shevy> I don't know, I never saw it... I don't know how you get it there
<wrkrcoop> thanks for the tips
machinewar has quit [Remote host closed the connection]
certainty has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
senayar has joined #ruby
skweek has joined #ruby
polysics_ has joined #ruby
whathappens has quit [Quit: Leaving...]
sandstrom has quit [Quit: My computer has gone to sleep.]
smathy_afk is now known as smathy
biberu has quit []
certainty has quit [Ping timeout: 260 seconds]
polysics has quit [Ping timeout: 272 seconds]
p337rB_ has joined #ruby
Wolland has joined #ruby
Azure|dc has joined #ruby
benzrf_ has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
p337rB has quit [Ping timeout: 264 seconds]
<benzrf_> hey!
p337rB_ has quit [Ping timeout: 244 seconds]
<benzrf_> is there a convention for splitting a large class or module over a few files, where only one of them is meant to be used with require?
Azure has quit [Ping timeout: 240 seconds]
<benzrf_>
Wolland has quit [Ping timeout: 250 seconds]
finisherr has quit [Quit: finisherr]
<shevy> benzrf_ I don't think there is any convention
last_staff has quit [Quit: last_staff]
<benzrf_> hneh
<shevy> for requires, as gems, the typical convention would be to require "name_of_gem_here"
roamingdog has quit [Remote host closed the connection]
<shevy> internally it should not matter how you arrange the other files. I sometimes tend to spit things up when they seem logical to me
hahuang61 has quit [Ping timeout: 276 seconds]
polll has quit [Quit: leaving]
palms has quit [Ping timeout: 252 seconds]
<shevy> like, some utility scripts go into utility_scripts/
<shevy> run.rb may have code that is used to run/start the code, the workhorse
halpmepls has joined #ruby
<halpmepls> what's the difference between doing input = gets.chomp and input.upper! versus doing: input = gets.chomp.upper
flashpoint9 has joined #ruby
moeabdol has quit [Ping timeout: 258 seconds]
<eam> the latter makes more copies of the string
pilne has joined #ruby
<halpmepls> how so?
Noxilex has quit [Ping timeout: 246 seconds]
<benzrf_> i think the mutation is more important, eam
yfeldblum has quit [Remote host closed the connection]
<benzrf_> halpmepls: upper! mutates the string; upper returns a new version
<halpmepls> i see
<halpmepls> so the new version is a second copy?
<benzrf_> yeah
<benzrf_> >> foo = "hello world!'; foo.upper!; puts foo
<benzrf_> man, wheres an eval bot when you need it >.<
flashpoint9 has quit [Ping timeout: 250 seconds]
<halpmepls> got it, thanks
<jhass> benzrf_: you have to identify
<benzrf_> :)
<benzrf_> jhass: ah
bruce_lee has quit [Read error: Connection reset by peer]
<eam> benzrf_: well, the mutation and the extra copy stem from the same behavior
<eam> a change either must occur in a second copy, or in the original thing itself
<benzrf_> eam: yeah, but the fact that more copies are made is less directly relevant to the programmer's interests than the fact that it mutates
<benzrf_> even though they are tied to each other
<eam> I guess? The copy in his example is lost without reference
<halpmepls> ^ that's what i thought
<benzrf_> eam: oh, right
<benzrf_> mb, i wasn't paying sufficient attention to context
<benzrf_> :(
<halpmepls> so then the verdict?
<halpmepls> it doesn't matter
<halpmepls> ?
<eam> benzrf_: you're not wrong though!
<benzrf_> pretty much
jancel has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
snath has quit [Ping timeout: 250 seconds]
halpmepls has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
yfeldblum has joined #ruby
skade has joined #ruby
hobodave_ has quit [Quit: Computer has gone to sleep.]
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
sandstrom has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
Pumukel has quit [Ping timeout: 264 seconds]
Azure|dc has quit [Remote host closed the connection]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pmyjavec has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
joelwallis has joined #ruby
<shevy> what is .upper
jackjackdripper has joined #ruby
darkxploit has quit [Ping timeout: 252 seconds]
johnDoe111 has joined #ruby
Flush has quit []
dhollinger has quit [Quit: WeeChat 1.4]
theunrav_ has quit []
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #ruby
kgrz has joined #ruby
achamian has joined #ruby
aegis3121 has quit [Ping timeout: 250 seconds]
johnDoe111 has quit [Ping timeout: 276 seconds]
jaguarmagenta has joined #ruby
benzrf_ has quit [Quit: leaving]
jancel has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 240 seconds]
achamian has quit [Ping timeout: 264 seconds]
jaguarmagenta has quit [Ping timeout: 252 seconds]
polishdub has quit [Quit: Leaving]
kirun has quit [Quit: Client exiting]
darkxploit has joined #ruby
snath has joined #ruby
allcentury has joined #ruby
mistermocha has quit [Remote host closed the connection]
darkxploit has quit [Excess Flood]
mistermocha has joined #ruby
spider-mario has quit [Remote host closed the connection]
roamingdog has joined #ruby
darkxploit has joined #ruby
griffindy has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
solars has quit [Ping timeout: 246 seconds]
roamingdog has quit [Client Quit]
kies has quit [Ping timeout: 244 seconds]
certainty has joined #ruby
kobain has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 260 seconds]
Gasher has quit [Quit: Leaving]
SilverKey has joined #ruby
lightt has joined #ruby
SCHAAP137 has quit [Ping timeout: 276 seconds]
Azure has joined #ruby
nankyokusei has joined #ruby
emptyflask has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 240 seconds]
jancel has joined #ruby
ChiefAlexander has quit [Quit: Leaving...]
nankyokusei has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
polysics_ has quit []
Wolland has joined #ruby
blackmesa has joined #ruby
coffeecupp has joined #ruby
senayar has joined #ruby
SilverKey has quit [Quit: Halted.]
nadir has quit [Quit: Connection closed for inactivity]
guacamole has quit [Remote host closed the connection]
smathy is now known as smathy_afk
Wolland has quit [Ping timeout: 250 seconds]
jancel has quit [Remote host closed the connection]
dopamean_ has quit [Quit: home]
SCHAAP137 has joined #ruby
alfiemax has joined #ruby
moeabdol has joined #ruby
MrBusiness3 has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smathy_afk is now known as smathy
spikeheadon has quit [Ping timeout: 240 seconds]
iceden has joined #ruby
danostrowski has joined #ruby
whathappens has joined #ruby
MrBusiness2 has quit [Ping timeout: 250 seconds]
moeabdol has quit [Ping timeout: 246 seconds]
joelwallis has quit [Quit: Leaving]
araujo has quit [Ping timeout: 246 seconds]
whathappens has quit [Client Quit]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo has joined #ruby
cbyrda has joined #ruby
bmorrison has joined #ruby
tildes_ has joined #ruby
araujo has quit [Max SendQ exceeded]
binaryplease has quit [Read error: Connection reset by peer]
binaryplease has joined #ruby
araujo has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
yfeldblum has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
swills has joined #ruby
guacamole has joined #ruby
mleung has joined #ruby
yfeldblum has joined #ruby
duckpuppy has joined #ruby
firstdayonthejob has quit [Ping timeout: 264 seconds]
replay has joined #ruby
jancel has joined #ruby
matp has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 258 seconds]
toretore has quit [Ping timeout: 252 seconds]
cschneid has quit [Remote host closed the connection]
GreyKite has quit [Read error: Connection reset by peer]
JesseH has quit [Remote host closed the connection]
GreyKite has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
zeroDi has quit [Quit: WeeChat 1.5]
aberen has joined #ruby
saneax_AFK is now known as saneax
rueben_ has quit [Quit: Ex-Chat]
freerobby has joined #ruby
rueben_ has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
rueben_ has quit [Max SendQ exceeded]
aberen has quit [Ping timeout: 240 seconds]
rueben_ has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cbyrda has quit [Quit: Gone]
nando293921 has quit [Ping timeout: 258 seconds]
KINGSABRI has joined #ruby
nando293921 has joined #ruby
jancel has quit [Remote host closed the connection]
sumobob has joined #ruby
allcentury has joined #ruby
griffindy has joined #ruby
sameerynho has joined #ruby
Channel6 has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathy has quit [Ping timeout: 260 seconds]
JesseH has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
smathy has joined #ruby
ElFerna has joined #ruby
sameerynho has quit [Ping timeout: 276 seconds]
emptyflask has joined #ruby
symm-_ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
symm- has quit [Ping timeout: 276 seconds]
certainty has joined #ruby
cdg has quit [Remote host closed the connection]
senayar has quit []
Respek has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
_ht_ has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
_ht has joined #ruby
nando293921 has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
karmatr0n has quit [Ping timeout: 264 seconds]
ash_workz has joined #ruby
blur3d has joined #ruby
Wolland has joined #ruby
bmorrison has quit [Quit: bmorrison]
jancel has joined #ruby
freerobby has quit [Quit: Leaving.]
symm-_ is now known as symm-
nando293921 has quit [Ping timeout: 244 seconds]
hutch34 has quit [Ping timeout: 250 seconds]
koooge has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
whathappens has joined #ruby
<bougyman> saw some syntax I don't even know what it means today: !!endpoint ^ !!sigver
<bougyman> and another one: raise "Must specify both proxyPort and proxyHost (or neither)" if !!proxy_host ^ !!proxy_port
agent_white has quit [Quit: leaving]
<bougyman> what is the purpose of using the xor operator against those negated values?
<bougyman> I can't wrap my head around it.
Channel6 has quit [Ping timeout: 260 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
Respek has quit [Quit: Textual IRC Client: www.textualapp.com]
noobsu has quit [Remote host closed the connection]
k3rn31 has joined #ruby
gnufied has quit [Ping timeout: 250 seconds]
Ropeney has joined #ruby
<bougyman> like... what does the XOR do for boolean values?
kies has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
c355e3b has quit [Quit: Connection closed for inactivity]