apeiros changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
nisstyre has quit [Changing host]
nisstyre has joined #ruby
tvon has joined #ruby
Lewix has joined #ruby
Yzguy has joined #ruby
sevenseacat has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
<Mon_Ouie> >> 0 ** 0
<ruboto> Mon_Ouie # => 1 (https://eval.in/410710)
einarj has quit [Remote host closed the connection]
<craysiii> o.o
<Mon_Ouie> ^ does anyone else find it odd that they picked a definition for this?
<craysiii> 0 is truthy.
lwu has quit [Quit: This computer has gone to sleep]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Mon_Ouie: Better to define it than special-case the binomial theorem, it seems.
yfeldblum has quit [Ping timeout: 246 seconds]
Araq has joined #ruby
<Araq> hey guys!
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<Radar> lol
arooni-mobile has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
Musashi007 has joined #ruby
<Ox0dea> Araq: Girl, please.
<Araq> I don't mind
<craysiii> ?guys
<ruboto> You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
<craysiii> i finally got to do it
lwu has joined #ruby
<Ox0dea> Araq: You don't mind what?
<Araq> that you're a girl
<shevy> lol
htmldrum has quit [Ping timeout: 252 seconds]
Yzguy has quit [Quit: Zzz...]
michael_mbp has joined #ruby
swgillespie has joined #ruby
<Ox0dea> That seems indicative of you're having minded.
<Ox0dea> *your
<Ox0dea> Oraclespeak is hard.
tvon has quit [Ping timeout: 240 seconds]
<shevy> ohhh I did not realize who Araq was for a moment
<shevy> my xchat colours confused me for a moment
frem has quit [Quit: Connection closed for inactivity]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ap4y has quit [Ping timeout: 272 seconds]
lemur has joined #ruby
Channel6 has quit [Quit: Leaving]
tvon has joined #ruby
Kalov has joined #ruby
yfeldblum has joined #ruby
<pontiki> You owe the Oracle 1 million wood chucks
lwu has quit [Quit: This computer has gone to sleep]
Caius has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
Inside has joined #ruby
keen__________35 has joined #ruby
keen__________34 has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Remote host closed the connection]
hanmac has quit [Quit: Leaving.]
senayar has quit []
Caius has joined #ruby
strcmp1 has joined #ruby
perturbation has quit [Quit: Leaving]
hanmac has joined #ruby
tejasmanohar has quit [Ping timeout: 240 seconds]
sarkyniin has joined #ruby
<strcmp1> hey guys! what profiling tools are available for ruby/rails apps?
Araq has left #ruby [#ruby]
<al2o3-cr> ?rails strcmp1
<ruboto> strcmp1, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
duoi has quit [Remote host closed the connection]
duoi has joined #ruby
aphprentice_ has quit [Read error: Connection reset by peer]
bodgix1 has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
Silox| has quit [Quit: Connection closed for inactivity]
notfowl has joined #ruby
dh64 has joined #ruby
sarkyniin has quit [Remote host closed the connection]
schaerli has joined #ruby
fedexo has quit [Ping timeout: 244 seconds]
mamercad has joined #ruby
robbyoconnor has joined #ruby
CloCkWeRX has joined #ruby
schaerli has quit [Ping timeout: 246 seconds]
towski_ has quit [Remote host closed the connection]
<krainboltgreene> banister: It's disappointing to read that from you.
woodruffw has joined #ruby
mamercad_ has joined #ruby
mamercad has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
<al2o3-cr> krainboltgreene: people have their opinions!
Violentr has quit [Ping timeout: 265 seconds]
<krainboltgreene> So?
<al2o3-cr> stop complaining then
<sevenseacat> ?
<notfowl> Hey guys
<krainboltgreene> Easy block.
tejasmanohar has joined #ruby
<al2o3-cr> feel free
<notfowl> Whats going on in here? Brogrammer stuff?
j4cknewt has joined #ruby
<craysiii> things that belong in #ruby-offtopic
Igorshp has joined #ruby
<sevenseacat> apparently
eggoez has quit [Ping timeout: 256 seconds]
htmldrum has joined #ruby
towski_ has joined #ruby
htmldrum has quit [Read error: Connection reset by peer]
skade has joined #ruby
imperator has joined #ruby
<pontiki> stop complaining about people complaining about people complaining about people complaining about people having opinions that don't like complaining about people complaining ...
eggoez has joined #ruby
minmax has joined #ruby
<sevenseacat> :P
<craysiii> :P
<al2o3-cr> pontiki: yeah, whatever you said :P
leat has joined #ruby
<Nilium> What're we complaining about?
<Nilium> I'm in.
Igorshp has quit [Ping timeout: 260 seconds]
<pontiki> complaining!
<Ox0dea> [:complaining].cycle.reduce(:complain)
casadei_ has joined #ruby
htmldrum has joined #ruby
<pontiki> meanwhile, we're all so tired about the people complaining no one is listening
htmldrum has quit [Read error: Connection reset by peer]
mamercad_ has quit [Ping timeout: 244 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei_ has quit [Ping timeout: 244 seconds]
<Fire-Dragon-DoL> ok let's change topic
yh has joined #ruby
<Fire-Dragon-DoL> I like reading programming stuff on the beach. So during my holidays after 2 years, I'm trying to choose what should I read
<yh> I've got a Ruby application running - process is still going - but it seems to have stopped outputting to my logfile
<yh> How might I diagnose what's going on there, without terminating the process?
<Fire-Dragon-DoL> yh: mhhhh... it really depends on the application
htmldrum has joined #ruby
<yh> Fire-Dragon-DoL: what are the dependent variables
average has joined #ruby
<average> I worked hard on making this image. Anybody want to comment on it ? http://i.imgur.com/yxOZlQO.png
<Fire-Dragon-DoL> yh: Dunno, there are various apps that responds to signals like "USR1" and prints some debugg stuff somewhere. Or you can try to repty (reattach stdin/out/err) using reptyr. I imagine there are less rough ways but I'm not aware of them right now
<havenwood> average: that'd be good rainbow for the #ruby-offtopic channel
<average> havenwood: it's about ruby actually
<pontiki> Fire-Dragon-DoL: do you have a list of options? and what have you already read that you don't want to re-read?
rakm has joined #ruby
<al2o3-cr> average: in what context?
<pontiki> average: it sucks
rakm has quit [Client Quit]
<havenwood> yh: Tried a `binding.pry` yet to see what seems to be going on?
<al2o3-cr> ah, yeah i see a little ruby symbol in the bottom right hand corner
<yh> havenwood: unfortunately, restarting the process fixes it. It doesn't break until a week of running..
<yh> At least, not this time.
<havenwood> yh: eek
<strcmp1> k see u next week?
<average> al2o3-cr: can you expand ?
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<average> havenwood: can you expand on how you feel it's offtopic ?
<Mon_Ouie> Have you tried attaching to the process with strace to see if it's still issuing the system calls that would write to the logfile?
<Fire-Dragon-DoL> pontiki: eheh, that's a bit hard to write, I suppose it's easier to write a list of options. Anything related to architecture and good programming practices (I loved POODR), one book about Go, Haskell, or a programming language worth to study (not necessarily to use, but helpful for myself in general). I need also something about Salesforce, although I don't like it so much, it would be extremely helpful for my company right now
<yh> Mon_Ouie: I haven't, that's the best idea I've heard so far
<havenwood> strcmp1: nifty one i've been playing with: https://github.com/MiniProfiler/rack-mini-profiler
<pontiki> Fire-Dragon-DoL: have you read Beautiful Code?
<havenwood> average: Not about Ruby. Since there's actual Ruby talk going on take rainbows to #ruby-offtopic please.
<craysiii> ^
swgillespie has joined #ruby
<strcmp1> havenwood, awesome :)
leat has quit [Ping timeout: 255 seconds]
<Fire-Dragon-DoL> we are definitely developers in this channel
<Fire-Dragon-DoL> namespaces for irc channels too :P
<average> havenwood: yes but why do you feel it's not about Ruby ?
<havenwood> !mute average
<pontiki> Fire-Dragon-DoL: I'm also going to throw out Christopher Alexander: "A Pattern Language: Towns, Buildings, Constructions" it's a book on physical architecture
<havenwood> average: I'll tell you in #ruby-offtopic. :)
<pontiki> it's something i found really valuable in thinking about software and systems architecture
phutchins has joined #ruby
<Fire-Dragon-DoL> pontiki: mh ok, I wasn't sure if you were joking or not, lol
nikhgupta has joined #ruby
nikhgupta has quit [Remote host closed the connection]
<pontiki> i know -- but it's actually a rather useful approach
<pontiki> well, i found it so
saddad has joined #ruby
<pontiki> to be honest i 've on ly met one other person who mentioned it before i did
freerobby has quit [Quit: Leaving.]
s00pcan has joined #ruby
freerobby has joined #ruby
devbug has quit [Read error: Connection reset by peer]
devbug has joined #ruby
Yzguy has joined #ruby
khebbie has joined #ruby
hanmac has quit [Quit: Leaving.]
hanmac has joined #ruby
RegulationD has joined #ruby
prereflect has joined #ruby
khebbie has quit [Ping timeout: 260 seconds]
allcentury has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
<havenwood> !unmute average
prereflect has quit [Client Quit]
eggoez has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 244 seconds]
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
devbug_ has joined #ruby
eggoez has joined #ruby
nateberkope has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
arooni-mobile has joined #ruby
ap4y has joined #ruby
HoppingMadMan has quit [Quit: Leaving]
devbug has quit [Ping timeout: 256 seconds]
lemur has quit [Remote host closed the connection]
haraoka has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Musashi007 has quit [Quit: Musashi007]
zacstewart has joined #ruby
ishahnaz has quit []
tkuchiki has joined #ruby
allcentury has joined #ruby
towski_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
fedexo has joined #ruby
juanpablo_______ has joined #ruby
arooni-mobile has quit [Quit: Leaving]
tuelz has quit [Ping timeout: 240 seconds]
j4cknewt has quit [Remote host closed the connection]
<Fire-Dragon-DoL> I'm facing the test hell: one fixed, 10 more fails
juanpablo_______ has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
mdavid613 has joined #ruby
tuelz has joined #ruby
tubuliferous has joined #ruby
leat has joined #ruby
Mia has quit [Read error: Connection reset by peer]
dc has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
<Fire-Dragon-DoL> 5 tests more, I'll survive this
kies^ has joined #ruby
<Ox0dea> Insh'allah.
ruby-lang254 has joined #ruby
<al2o3-cr> ?
<Ox0dea> You're supposed to say "God willing" when you make claims about the future.
<al2o3-cr> oh lol
bruno-_ has quit [Ping timeout: 260 seconds]
Yzguy has quit [Quit: Zzz...]
dc has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DenSchub has quit [Ping timeout: 245 seconds]
ruby-lang254 has quit [Ping timeout: 246 seconds]
<Fire-Dragon-DoL> lol
<average> hey
GriffinHeart has quit [Remote host closed the connection]
djbkd has joined #ruby
DenSchub has joined #ruby
<pontiki> it's "god willin' and the creek don't rise"
<pontiki> get it right
GriffinHeart has joined #ruby
stardiviner has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
texasmade has quit [Ping timeout: 260 seconds]
Rickmasta has quit [Ping timeout: 250 seconds]
j3r0 has quit [Ping timeout: 246 seconds]
jonee has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
AlexAltea has quit [Ping timeout: 255 seconds]
Xaitec has joined #ruby
NeverDie has joined #ruby
phutchins has joined #ruby
jud has quit [Quit: Leaving]
mamercad has joined #ruby
GriffinHeart has joined #ruby
tkuchiki has quit [Remote host closed the connection]
saddad has quit [Quit: WeeChat 1.3-dev]
tkuchiki has joined #ruby
krz has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
mamercad has quit [Ping timeout: 240 seconds]
swgillespie has joined #ruby
mamercad has joined #ruby
arescorpio has joined #ruby
iateadonut has joined #ruby
iateadonut has left #ruby [#ruby]
dfockler has joined #ruby
krz has quit [Ping timeout: 252 seconds]
<Fire-Dragon-DoL> good night everyone, I'm exhausted
dfockler has quit [Ping timeout: 246 seconds]
tuelz has quit [Ping timeout: 246 seconds]
allcentury has quit [Ping timeout: 255 seconds]
_blizzy_ has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Ping timeout: 250 seconds]
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
mleung has quit [Quit: mleung]
Fire-Dragon-DoL has quit []
symm- has quit [Ping timeout: 250 seconds]
aytch has left #ruby [#ruby]
saddad has joined #ruby
lemur has joined #ruby
mamercad has quit [Ping timeout: 246 seconds]
M-_mis has quit [Read error: Connection reset by peer]
MatrixBridge has quit [Read error: Connection reset by peer]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatrixBridge has joined #ruby
j_mcnally has joined #ruby
j4cknewt has joined #ruby
Rickmasta has joined #ruby
lemur has quit [Ping timeout: 244 seconds]
dgutierrez1287 has joined #ruby
eggoez has quit [Ping timeout: 244 seconds]
saddad has quit [Ping timeout: 256 seconds]
tmtwd has quit [Ping timeout: 256 seconds]
j_mcnall_ has joined #ruby
dgutierrez1287 has quit [Ping timeout: 260 seconds]
eggoez has joined #ruby
casadei_ has joined #ruby
celly has joined #ruby
j_mcnally has quit [Ping timeout: 272 seconds]
casadei_ has quit [Ping timeout: 260 seconds]
bb010g has joined #ruby
bruno- has joined #ruby
kies^ has quit [Ping timeout: 252 seconds]
Yzguy has quit [Quit: Zzz...]
bruno- has quit [Ping timeout: 272 seconds]
djstorm has quit [Remote host closed the connection]
Volsus has quit [Quit: Leaving]
hahuang65 has joined #ruby
scripore has quit [Read error: Connection reset by peer]
i8igmac has quit [Ping timeout: 244 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
braincrash has quit [Quit: bye bye]
bodgix1 has quit [Ping timeout: 256 seconds]
bodgix has quit [Ping timeout: 256 seconds]
GriffinHeart has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Mia has joined #ruby
Mia has joined #ruby
Phrogz2 has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
jonee has quit [Ping timeout: 260 seconds]
jjj123 has joined #ruby
Inside has quit [Ping timeout: 265 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
braincrash has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.2]
Phrogz2 has joined #ruby
Casty has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has joined #ruby
null_ref_ has quit [Quit: Lost terminal]
GriffinHeart has joined #ruby
arup_r has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
mamercad has joined #ruby
krz has joined #ruby
swgillespie has quit [Quit: Textual IRC Client: www.textualapp.com]
lxsameer has joined #ruby
lxsameer has joined #ruby
Mia has quit [Read error: Connection reset by peer]
radgeRayden has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
jonee has joined #ruby
bodgix has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
bodgix has quit [Ping timeout: 252 seconds]
gix has quit [Ping timeout: 264 seconds]
jonee has quit [Ping timeout: 246 seconds]
diegoviola has quit [Quit: WeeChat 1.2]
darkf has joined #ruby
gix has joined #ruby
tubuliferous has joined #ruby
dopie has joined #ruby
leesharma has joined #ruby
niiamon has joined #ruby
pawnbox has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
texasmade has joined #ruby
astrobun_ has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
baegle has quit [Quit: Leaving]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
niiamon has quit [Remote host closed the connection]
atomical has joined #ruby
zacstewart has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
s00pcan has quit [Ping timeout: 246 seconds]
tmtwd has joined #ruby
s00pcan has joined #ruby
michael_mbp has joined #ruby
theery has joined #ruby
mamercad has quit [Ping timeout: 240 seconds]
kies^ has joined #ruby
djbkd has quit []
saddad has joined #ruby
leesharma has quit [Ping timeout: 264 seconds]
j4cknewt has quit [Remote host closed the connection]
Asher has quit [Remote host closed the connection]
j4cknewt has joined #ruby
Asher has joined #ruby
ivanskie has joined #ruby
Rinzlit has quit [Ping timeout: 265 seconds]
theery has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 244 seconds]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ReK2 has quit [Remote host closed the connection]
C1V0 has joined #ruby
s00pcan has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
Channel6 has joined #ruby
ReK2 has joined #ruby
yh has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
theery has joined #ruby
theery has quit [Remote host closed the connection]
i8igmac has joined #ruby
texasmade has quit [Ping timeout: 250 seconds]
astrobu__ has joined #ruby
stiky has joined #ruby
<stiky> where can i find some good ruby tutorials
imperator has quit [Quit: This computer has gone to sleep]
<pontiki> what level, stiky ?
Lewix has quit [Remote host closed the connection]
<stiky> more beginner. I am doing the codeacademy intro to ruby .
astrobun_ has quit [Ping timeout: 252 seconds]
<pontiki> okay, good start
Inside has joined #ruby
Inside has joined #ruby
<pontiki> there's learnrubythehardway.com
<stiky> kk yeah i saw that on a search
<stiky> saw a few ruby monk was another
<pontiki> rubykoans.net, i think?
<pontiki> can't remember the tld on that one
mamercad has joined #ruby
<pontiki> ruby monk is good
<stiky> k well its good to know im on a decent track then lol
<pontiki> sure
Kalov has quit []
<stiky> ill be around
<pontiki> theodinproject.com seems to be a great collection point for tuts and stuff
<stiky> ill prob add this to another idle room
devbug has joined #ruby
<stiky> to be*
<pontiki> #ruby-idle
UKFAGSMOKER has quit [Ping timeout: 246 seconds]
<stiky> lol kk
allcentury has joined #ruby
dfockler has joined #ruby
<pontiki> don't forget #ruby-rpg, too
theery has joined #ruby
<pontiki> shevy is DM
<bnagy> when did the Enumerator::Generator API change?
<Aeyrix> Last Thursday.
devbug_ has quit [Ping timeout: 250 seconds]
<pontiki> o.O
<bnagy> I'm un-bitrotting some code that last ran ~2 years ago :P
phutchins has joined #ruby
<bnagy> tbh it should always have been this way (seems like you use #each now not #next)
<bnagy> and no more awful rescue StopIteration
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mamercad has quit [Ping timeout: 260 seconds]
dfockler has quit [Ping timeout: 240 seconds]
allcentury has quit [Ping timeout: 246 seconds]
fedexo has quit [Ping timeout: 246 seconds]
phutchins has quit [Ping timeout: 256 seconds]
<bnagy> although.. now I don't see how to use it as an actual external iterator any more :|
allcentury has joined #ruby
CoderClown has joined #ruby
ReK2GnULinuX has joined #ruby
pawnbox has quit [Remote host closed the connection]
hakunin has quit []
_blizzy_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
schaerli has joined #ruby
<Ox0dea> bnagy: I can use Enumerator::Generator#next just fine on trunk?
<bnagy> hm.
<Ox0dea> Erm, no, never mind; it's just an Enumerator.
<bnagy> >> Enumerator::Generator.instance_methods.include? :next
<ruboto> bnagy # => false (https://eval.in/410835)
<bnagy> 19>> Enumerator::Generator.instance_methods.include? :next
<ruboto> bnagy # => false (https://eval.in/410836)
<bnagy> wtf
<bnagy> I guess #take is workable
duncannz has joined #ruby
<Ox0dea> Well, you said ~2 years ago; must've been 1.8 code.
<bnagy> :)
duncannz has quit [Max SendQ exceeded]
<bnagy> 1.8 was a tad more than two years ago
<Ox0dea> >> Enumerator::Lazy.instance_methods.include? :next
<ruboto> Ox0dea # => true (https://eval.in/410837)
countryHick has quit [Quit: Connection closed for inactivity]
<Ox0dea> It's essentially the same interface.
ReK2 has quit [Ping timeout: 246 seconds]
hmnhf has joined #ruby
<bnagy> yeah you're probably supposed to use lazy now and not Generator directly
<Ox0dea> I think so, yep.
cornerma1 has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
schaerli has quit [Ping timeout: 264 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
<bnagy> ... hrmmmm maybe not. Seems more like Enumerator.new &blk gives you the closest to the old Generator, a standard "external iterator"
s00pcan has quit [Ping timeout: 260 seconds]
<bnagy> lazy seems a better fit to mush collections into a lazy pattern for map / each etc
casadei_ has joined #ruby
gwendall has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 272 seconds]
fedexo has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
ReKWiLdS has joined #ruby
devdazed_ has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
busterarm has quit [Read error: Connection reset by peer]
busterarm has joined #ruby
krz has quit [Ping timeout: 265 seconds]
devdazed has joined #ruby
casadei_ has quit [Ping timeout: 240 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ReK2GnULinuX has quit [Ping timeout: 246 seconds]
emdub has quit [Ping timeout: 255 seconds]
emdub has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
lampd1 has quit [Remote host closed the connection]
cb_ has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
krz has joined #ruby
ofdtrinity has joined #ruby
Phrogz2 has quit [Remote host closed the connection]
zacstewart has joined #ruby
arescorpio has quit [Quit: Leaving.]
lampd1 has joined #ruby
bluOxigen has joined #ruby
mleung has joined #ruby
CoderClown has quit [Quit: Leaving]
RobertBirnie has joined #ruby
Vile` has quit [Ping timeout: 252 seconds]
j_mcnally has joined #ruby
devbug_ has joined #ruby
Vile` has joined #ruby
mleung has quit [Client Quit]
zacstewart has quit [Ping timeout: 244 seconds]
devbug has quit [Ping timeout: 246 seconds]
mleung has joined #ruby
schaerli has joined #ruby
GriffinHeart has joined #ruby
zacstewart has joined #ruby
mleung has quit [Ping timeout: 252 seconds]
mdavid613 has quit [Quit: Leaving.]
frem has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
j4cknewt has joined #ruby
mamercad has joined #ruby
thatsnotjack has quit [Remote host closed the connection]
thatsnotjack has joined #ruby
theery has quit [Remote host closed the connection]
riotjones has joined #ruby
celly has quit [Remote host closed the connection]
mamercad has quit [Ping timeout: 246 seconds]
dgutierrez1287 has joined #ruby
cb_ has quit []
gard has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
qiukun has joined #ruby
zacstewart has quit [Remote host closed the connection]
chouhoulis has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
dgutierrez1287 has quit [Ping timeout: 240 seconds]
theery has joined #ruby
AmBienCeD has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Remote host closed the connection]
astrobu__ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
kies^ has quit [Ping timeout: 250 seconds]
thatsnotjack has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 264 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thatsnotjack has joined #ruby
SOLDIERz has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
phutchins has joined #ruby
j_mcnally has joined #ruby
Rinzlit has joined #ruby
juanpablo_______ has joined #ruby
schaerli has quit [Remote host closed the connection]
krz has quit [Ping timeout: 255 seconds]
khebbie has joined #ruby
blue_deref has quit [Quit: bbn]
drewo has joined #ruby
arup_r has quit [Quit: Leaving]
mdavid613 has joined #ruby
GriffinHeart has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
DoubleMalt has joined #ruby
juanpablo_______ has quit [Ping timeout: 265 seconds]
tubuliferous has joined #ruby
aganov has joined #ruby
Inside has quit [Ping timeout: 240 seconds]
krz has joined #ruby
_blizzy_ has joined #ruby
khebbie has quit [Ping timeout: 260 seconds]
kies^ has joined #ruby
texasmade has joined #ruby
yardenbar has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
tubuliferous has quit [Ping timeout: 240 seconds]
qiukun has quit [Quit: qiukun]
lwu has joined #ruby
towski_ has joined #ruby
Anne has joined #ruby
ap4y has quit [Remote host closed the connection]
havenwood has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gard has quit [Ping timeout: 264 seconds]
zacstewart has joined #ruby
jjj123 has quit [Ping timeout: 244 seconds]
luckyruby has joined #ruby
gwendall has joined #ruby
towski_ has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
matcouto has joined #ruby
htmldrum has quit [Ping timeout: 256 seconds]
graydot has joined #ruby
gwendall has quit [Ping timeout: 256 seconds]
houhoulis has quit [Remote host closed the connection]
Chau has joined #ruby
qiukun has joined #ruby
mdavid613 has quit [Quit: Leaving.]
graydot has quit [Client Quit]
graydot has joined #ruby
graydot has quit [Client Quit]
tagrudev has joined #ruby
techsethi has joined #ruby
AlexRussia has joined #ruby
Channel6 has quit [Quit: Leaving]
lemur has joined #ruby
krz has quit [Ping timeout: 244 seconds]
Jarboe has quit []
zacstewart has quit [Remote host closed the connection]
blueOxigen has joined #ruby
minmax has quit [Quit: WeeChat 0.4.3]
bluOxigen has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
drewo has quit [Ping timeout: 272 seconds]
techsethi has quit [Quit: techsethi]
allcentury has joined #ruby
psy_ has quit [Quit: Leaving]
dc has quit [Read error: Connection reset by peer]
techsethi has joined #ruby
dc has joined #ruby
riotjones has joined #ruby
jas02 has joined #ruby
pawnbox has quit [Remote host closed the connection]
psy_ has joined #ruby
pawnbox has joined #ruby
Musashi007 has quit [Quit: Musashi007]
allcentury has quit [Ping timeout: 244 seconds]
saddad has quit [Ping timeout: 265 seconds]
pawnbox_ has joined #ruby
radgeRayden has quit [Ping timeout: 265 seconds]
celly has joined #ruby
<SOLDIERz> jhass darix thought it would be solved last week but it's not. So I want to ask you both again if you got one last idea after doing it with "soname" bundle install was returning me shared library not found because the shared library files are now named different which fits my needs but obviously not the one of bundle :-D any clue how could i handle this one? Because if there is no right solution for that which makes sense I will give up at this play.
<SOLDIERz> Because the only thing which makes sense is to managing it down to the minor version but not further with the tiny version I'm just stucked with problems
pawnbox has quit [Ping timeout: 252 seconds]
GriffinH_ has joined #ruby
GriffinHeart has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<flughafen> hey shevy sevenseacat certainty
<sevenseacat> afternoon flughafen
celly has quit [Ping timeout: 246 seconds]
<flughafen> how was your weekend sevenseacat
<sevenseacat> freaking busy.
<flughafen> w00ty w00ty
zacts has quit [Quit: leaving]
howdoi has joined #ruby
krz has joined #ruby
tvon has quit [Quit: leaving]
astrobu__ has joined #ruby
drewo has joined #ruby
chrissonar has joined #ruby
CustosLimen has quit [Ping timeout: 250 seconds]
zacts has joined #ruby
casadei_ has joined #ruby
Guest32 has joined #ruby
astrobun_ has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
olistik has joined #ruby
bronson has joined #ruby
casadei_ has quit [Ping timeout: 240 seconds]
mxrguspxrt has quit [Remote host closed the connection]
shoutsid has joined #ruby
njr has joined #ruby
bradleyprice has quit [Remote host closed the connection]
shoutsid has quit [Client Quit]
mxrguspxrt has joined #ruby
djbkd has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
juanpablo_______ has joined #ruby
krz has quit [Read error: Connection reset by peer]
<njr> Any idea why my parent process isn't capturing the childs stderr using "IO.popen(['command', *args], :err => :err) { |f| .... }"
krz has joined #ruby
kwd has joined #ruby
CustosLimen has joined #ruby
tkuchiki has quit [Remote host closed the connection]
juanpablo_______ has quit [Ping timeout: 244 seconds]
djbkd has quit []
brianpWins_ has joined #ruby
<bnagy> I don't use IO#popen because of cross platform problems
<bnagy> but you might find Open3 easier
bigkevmcd has joined #ruby
olistik has quit [Remote host closed the connection]
brianpWins has quit [Ping timeout: 244 seconds]
brianpWins_ is now known as brianpWins
<njr> bnagy: OK. Will take a look
andikr has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
_ht has joined #ruby
drewo has quit [Ping timeout: 260 seconds]
flughafen has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
theery has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
tkuchiki has joined #ruby
zacstewart has joined #ruby
drewo has joined #ruby
drewo has quit [Client Quit]
tmtwd has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
terlar has joined #ruby
martinium has joined #ruby
zacstewart has quit [Ping timeout: 246 seconds]
njr has quit [Ping timeout: 240 seconds]
GriffinH_ has quit [Read error: Connection reset by peer]
Mia has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
Mia has joined #ruby
htmldrum has joined #ruby
njr has joined #ruby
minmax has joined #ruby
arturaz has joined #ruby
i8igmac has quit [Ping timeout: 246 seconds]
schaerli has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
solars has joined #ruby
charliesome has quit [Quit: zzz]
pawnbox has joined #ruby
stan has joined #ruby
Mia has quit [Read error: Connection reset by peer]
pawnbox_ has quit [Ping timeout: 240 seconds]
jjj123 has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
TomyWork has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
charliesome has joined #ruby
staafl has joined #ruby
<TomyWork> hi
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
safeforge has joined #ruby
Violentr has joined #ruby
<TomyWork> I want to abuse rails' routing facilities for a FUSE file system. is there any way to do that?
<bnagy> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<TomyWork> there's rfusefs, which seems to work nicely, but i cant figure out how to get rails' routing without the rest of rails
<TomyWork> or rails-style routing
kies^ has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
tubuliferous has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
tmtwd has joined #ruby
yeticry has joined #ruby
poguez_ has joined #ruby
TvL2386 has joined #ruby
stardiviner has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 255 seconds]
pawnbox has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 246 seconds]
Guest24 is now known as lele
vondruch has joined #ruby
<Ox0dea> I expect you'd have a hell of a time trying to extricate something like that, though.
phutchins has joined #ruby
GriffinHeart has joined #ruby
CloCkWeRX has left #ruby [#ruby]
blueOxigen has quit [Ping timeout: 244 seconds]
schaerli has quit [Remote host closed the connection]
gwendall has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 240 seconds]
jjj123 has quit [Ping timeout: 255 seconds]
michael_mbp has quit [Excess Flood]
krz has joined #ruby
Oka has quit [Quit: さようなら]
charliesome has quit [Quit: zzz]
GriffinHeart has joined #ruby
roolo has quit [Remote host closed the connection]
mxrguspxrt has joined #ruby
michael_mbp has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
minotep has joined #ruby
gwendall has quit [Ping timeout: 272 seconds]
stardiviner has joined #ruby
GriffinHeart has joined #ruby
arup_r has joined #ruby
ReKWiLdS has quit [Quit: Konversation terminated!]
<TomyWork> ugh, ok, i'll code it myself then :)
ReK2 has joined #ruby
<TomyWork> thanks
Mia has quit [Write error: Connection reset by peer]
Igorshp has joined #ruby
ohaibbq has quit [Quit: Leaving...]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
dgutierrez1287 has joined #ruby
Philipp__ has joined #ruby
anisha has joined #ruby
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
gagrio has joined #ruby
khebbie has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
exadeci has joined #ruby
dgutierrez1287 has quit [Ping timeout: 246 seconds]
devbug has joined #ruby
allcentury has joined #ruby
wallerdev has joined #ruby
j4cknewt has quit [Remote host closed the connection]
senayar has joined #ruby
shpoont has joined #ruby
qiukun has quit [Quit: qiukun]
devbug_ has quit [Ping timeout: 244 seconds]
livathinos has joined #ruby
auzty has joined #ruby
brianpWins_ has joined #ruby
khebbie has quit [Remote host closed the connection]
surs has joined #ruby
brianpWins has quit [Ping timeout: 246 seconds]
brianpWins_ is now known as brianpWins
surs has quit [Changing host]
surs has joined #ruby
khebbie has joined #ruby
zacstewart has joined #ruby
qiukun has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
shpoont has quit [Quit: Textual IRC Client: www.textualapp.com]
khebbie has quit [Ping timeout: 272 seconds]
yaw has joined #ruby
layke_ has joined #ruby
yaw has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 272 seconds]
krz has quit [Ping timeout: 240 seconds]
dede has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
zacstewart has quit [Ping timeout: 260 seconds]
<layke_> How would I remove anythign ruby, and ruby gem related?
<layke_> ubuntu 14.04
<layke_> I want to start fresh on a new install, been struggling to install jekyll for a few days.
tmtwd has quit [Remote host closed the connection]
<sevenseacat> find whatever you installed, and uninstall it :)
<Rinzlit> ?
celly has joined #ruby
<Rinzlit> ?ruby
<ruboto> I don't know anything about ruby
olistik has joined #ruby
krz has joined #ruby
<Rinzlit> ?offtopic
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<Rinzlit> Forgot the link
<Rinzlit> Sorry
<sevenseacat> well no, it's not off-topic
Trynemjoel has quit [Ping timeout: 250 seconds]
<Rinzlit> I know its not I forgot the link sorry
<sevenseacat> but it's a vague question
bronson has quit [Remote host closed the connection]
pawnbox has joined #ruby
Trynemjoel has joined #ruby
<apeiros> layke_: that'd depend on how you installed ruby in the first place
<layke_> Was using apt, I jsut ran an apt-get purge
celly has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
lemur has quit [Remote host closed the connection]
krz has quit [Ping timeout: 246 seconds]
marr has joined #ruby
TheHodge has joined #ruby
jimms has quit [Remote host closed the connection]
yh has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
krz has joined #ruby
tmtwd has joined #ruby
wallerdev has quit [Quit: wallerdev]
jimms has joined #ruby
joonty has joined #ruby
<apeiros> rspec… every time I have to touch it again it has a new interface…
t_ has quit [Remote host closed the connection]
<layke_> how do you install from a gemfile?
j4cknewt has joined #ruby
<apeiros> layke_: `bundle`
<layke_> Thank you :)
robbyoconnor has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
rdark has joined #ruby
tmtwd has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
<adaedra> hi
t_ has joined #ruby
casadei_ has joined #ruby
senayar has quit [Remote host closed the connection]
joonty has quit [Read error: Connection reset by peer]
senayar has joined #ruby
joonty has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
<yorickpeterse> morning
ndrei has joined #ruby
casadei_ has quit [Ping timeout: 246 seconds]
nhhagen has joined #ruby
patteh has quit [Ping timeout: 246 seconds]
strcmp1 has quit [Ping timeout: 272 seconds]
safeforge has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 245 seconds]
j4cknewt has quit [Remote host closed the connection]
Philipp__ has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
safeforge has joined #ruby
norc has joined #ruby
olistik has quit [Read error: Connection reset by peer]
skade has joined #ruby
<norc> Hi. When defining a Hash {a: 1}, is it possible to include a pair based on a condition through some hackery way? http://pastie.org/10327073
<norc> The pastie shows the basic idea of what I want
layke_ has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
bronson has joined #ruby
gwendall has joined #ruby
leafybasil has joined #ruby
<rob_> norc: no, but you could do something like {a: 1, b: 2, c: 3}.select { |k,v| true if v != 2 }
<Ox0dea> >> foo = false; {a: 1, b: (2 if foo), c: 3}.reject { |_, v| v.nil? }
<ruboto> Ox0dea # => {:a=>1, :c=>3} (https://eval.in/410984)
<Ox0dea> norc: That only works if you won't have any nil values.
<norc> Ox0dea: That is the thing, I want to allow passing some nil values, but some I need to explicitely filter out.
<norc> Like "a" and "c" may have nil values, "b" needs to be excluded.
<Ox0dea> norc: Why do you think you need to do this within the Hash literal?
duper` has quit [Ping timeout: 246 seconds]
livathinos has quit [Ping timeout: 250 seconds]
<norc> Ox0dea: Oh I absolutely dont. I was just wondering whether there is some smooth way of doing it in a Hash literal since it would reduce the refactor work here.
leafybasil has quit [Ping timeout: 272 seconds]
<canton7> norc, there's a difference between a key with a nil value, and a missing key, in a hash. What's the issue with using nil?
<norc> canton7: I have an API that misbehaves if I pass null values to it in some fields.
k3asd` has joined #ruby
<canton7> ah, useful info
<canton7> so.. you're asking whether you can conditionally add an item to a hash?
<canton7> in the literal. gotcha. no, sorry
<norc> canton7: Well basically I want a poor mans slice from ActiveSupport.
<norc> Or no. What you said.
<norc> My bad.
htmldrum has quit [Ping timeout: 244 seconds]
mweshi has joined #ruby
mweshi has quit [Remote host closed the connection]
<sevenseacat> wouldnt slice just use select under the hood?
GriffinHeart has quit [Remote host closed the connection]
<sevenseacat> or not
charliesome has joined #ruby
GriffinHeart has joined #ruby
Mendenhall has joined #ruby
jenrzzz has joined #ruby
<norc> That seems to work
dseitz has joined #ruby
<Ox0dea> norc: Why not just `h[foo] = bar if baz`?
<Ox0dea> >> h = {}; h[:a] = 1 if false; h[:b] = 2 if true; h
<ruboto> Ox0dea # => {:b=>2} (https://eval.in/410992)
jamesaxl|2 has quit [Remote host closed the connection]
<canton7> that #tap method is pretty hard to read :P
<norc> Ox0dea: The gem I have in front of me is using nested literal hashes all over the place several levels deep. Its much faster if I can do this inline in the "subhashes"
<Ox0dea> Sounds like masochism.
<shevy> Someone called me?
<norc> Ox0dea: Unfortunately its not a perfect world. I will refactor this gem when I have time for it though. :)
<Ox0dea> norc: Hey, if #tap + #merge! is somehow better than #[]=, go for it.
luckyruby has quit [Quit: Leaving...]
<Ox0dea> Seems unlikely to be the case, though.
<canton7> norc, https://eval.in/410996
<canton7> still ugly...
leafybasil has joined #ruby
<norc> Ox0dea: The advatage of tap + merge is that I can do it inside a hash like { foo: {}.tap{ merge_stuff_here }, bar: {} }
<norc> actually.
<norc> Just ignore that remark of stupidity from me
<Ox0dea> Yay! Sanity prevails!
<norc> canton7: What the...
Iskarlar has joined #ruby
<canton7> welcome to what people think when they read your #tap solution :P
<norc> canton7: You have made Ruby look like Python! Congratulations!
<Ox0dea> Yeah, not quite.
<norc> Hehe
mikecmpbll has joined #ruby
<ccooke> Hmm. I've never actually used .tap
<Ox0dea> It's for keeping pipelines going.
<bougyman> I see {}.tap a lot at the office.
<bougyman> someone saw it at a conference once so it became a thing.
<bougyman> it bothers me but I have no real technical argument as to why, nor why I don't use it myself.
ghormoon has quit [Quit: ZNC - http://znc.in]
<shevy> haha
<shevy> I don't use it myself yet but the reason is more trivial, I have no idea where I need it
<Ox0dea> Sometimes a method just doesn't return the receiver when you wish it would.
spider-mario has joined #ruby
ghormoon has joined #ruby
rdark has quit [Quit: leaving]
rdark has joined #ruby
livathinos has joined #ruby
tubuliferous has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
Pupeno has quit [Quit: Leaving...]
marr has quit [Ping timeout: 265 seconds]
withnale___ has joined #ruby
Iskarlar has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> I don't think I wished for it so far :(
tubuliferous has quit [Ping timeout: 246 seconds]
Iskarlar has joined #ruby
rdark has quit [Ping timeout: 244 seconds]
rdark has joined #ruby
soc42 has joined #ruby
DexterLB has quit [Ping timeout: 260 seconds]
DexterLB has joined #ruby
apofis has joined #ruby
pawnbox has quit [Remote host closed the connection]
apofis has quit [Client Quit]
apofis_ has joined #ruby
jtdoncas has quit [Ping timeout: 240 seconds]
<yorickpeterse> and so begins the week of upgrading shit to Rails 4.2
<yorickpeterse> such excite
<yorickpeterse> very wow
<yorickpeterse> much enthousiasm
arup_r has quit [Remote host closed the connection]
<bnagy> ?rails yorickpeterse
<ruboto> yorickpeterse, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<bnagy> :D
<maloik> :D
<adaedra> :D
<yorickpeterse> oh shut up
<apeiros> yorickpeterse: you don't use oracle, right? if you do, don't upgrade…
<adaedra> we need a quote database
<yorickpeterse> apeiros: do I look like I work for a company with enough money to afford Oracle?
* apeiros just had to figure out why SomeModel.offset(n) crashed
<apeiros> yorickpeterse: oooooh riiiiiiiight
Trynemjoel has quit [Ping timeout: 250 seconds]
<bougyman> even if you could, why would you?
<yorickpeterse> also wtf, last Friday I rescheduled 700k reviews for reprocessing sentiment
apofis_ is now known as apofis
<yorickpeterse> and they still don't have any data
<yorickpeterse> wtf
<bougyman> wtf indeed.
<yorickpeterse> "ConcurrencyError: Detected invalid array contents due to unsynchronized modifications with concurrent users"
GriffinHeart has quit [Remote host closed the connection]
<yorickpeterse> lol JRuby
Trynemjoel has joined #ruby
<adaedra> huhu
<yorickpeterse> it's moaning about code that _is_ synchronized
<yxhuvud> I wouldn't mind some time to upgrade our installation to 4.2. Instead, I have to work at making our 200+ model app into a CMS.
<yorickpeterse> https://github.com/YorickPeterse/oga/blob/ed3cbe7975eeb9d142c4f649334038b6389abc0e/lib/oga/lru.rb#L77 dear JRuby, does this not look synchronized to you?
<apeiros> yxhuvud: sounds like you're having fun too :D
<adaedra> fun fun fun
<yorickpeterse> also I really should upgrade this to 9k
<apeiros> eh, AR::Base.subclasses.size # => 278
<yorickpeterse> but at most I can only find a few hundred errors, not 700 thousand
<yorickpeterse> Ah
<yxhuvud> indeed. Everything should also be serializable and possible to move between different installations. What could go wrong?
yeticry has quit [Read error: Connection reset by peer]
<yorickpeterse> 183000 HTTP 500s from Amazon S3
<shevy> you guys tell the horrors of rails
<yorickpeterse> something something no S3 is totally scalable
<apeiros> shevy: it's more about the horrors of apps grown too large
<apeiros> and nobody listening to devs who shout and scream for breaking those monsters apart
<yxhuvud> apeiros: I have something similar if I include stuff that include ActiveModel stuff. which a lot nonAR-stuff do.
<bougyman> is #subclasses a rails thing?
<adaedra> &ri Class#subclasses
<`derpy> No results
<sevenseacat> another bot?
<bougyman> I didn't find it on Object nor Kernel nor Class.
<apeiros> bougyman: yupp
<bougyman> that's why I asked.
<yorickpeterse> "ArgumentError: wrong number of arguments calling `initialize` (2 for 0)" lol the things that happen when running code in parallel
<adaedra> sevenseacat: no, it's a 3rd world worker I hire to search into the doc
<sevenseacat> so it wont mind if I kick it?
<yorickpeterse> adaedra: it's called Mechanical Turk these days
<yorickpeterse> also known as Mechanical VOC
flughafen has joined #ruby
<adaedra> sevenseacat: a little
<yorickpeterse> (https://en.wikipedia.org/wiki/Dutch_East_India_Company that's for the peasants)
<sevenseacat> then you should probably remove it so I don't hurt its feelings
<yorickpeterse> I especially love the term "VOC mentality" in Dutch
<shevy> volatile organic compounds?
lkba has joined #ruby
<yorickpeterse> see link
<yorickpeterse> It's the Dutch acronym for it
<yorickpeterse> or was it abbrevation?
<adaedra> sevenseacat: eh, apeiros didn't have a problem with it :(
<sevenseacat> cool, can we bring back helpa then? :)
<yorickpeterse> Ah, acronym
<shevy> let's call it helpacat
ndrei has quit [Ping timeout: 272 seconds]
yeticry has joined #ruby
<apeiros> sevenseacat: if we can manage that they have no overlap, sure. we didn't kick helpa either. we muted it because of overlap.
ndrei has joined #ruby
olistik has joined #ruby
allcentury has joined #ruby
yh has quit [Ping timeout: 265 seconds]
jtdoncas has joined #ruby
Asher has quit [Quit: Leaving.]
Mendenhall has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
Asher has joined #ruby
Blaguvest has quit []
haraoka has quit [Ping timeout: 272 seconds]
Trynemjoel has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
tuor has left #ruby ["WeeChat 1.1.1"]
Kalov has joined #ruby
quimrstorres has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
dionysus69 has joined #ruby
arup_r has joined #ruby
quimrsto_ has joined #ruby
<wasamasa> >> [{foo: 4}].map(&:foo)
<ruboto> wasamasa # => undefined method `foo' for {:foo=>4}:Hash (NoMethodError) ...check link for more (https://eval.in/411009)
<wasamasa> how would I grab that foo from the hash?
<adaedra> [:foo]
Trynemjoel has quit [Ping timeout: 250 seconds]
<adaedra> oh wait, misread
<adaedra> .map { |e| e[:foo] }
<wasamasa> .____.
<maloik> wasamasa: you can't with the map shorthand, because the method is [] with :foo as its argument
<wasamasa> oh well
jenrzzz has quit [Ping timeout: 250 seconds]
<adaedra> this is not javascript, hash values are not accessible as methods
<shevy> the evilness of putting hash into an array prison
<wasamasa> s/javascript/clojure/
Trynemjoel has joined #ruby
allcentury has joined #ruby
pawnbox has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
quimrstorres has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 246 seconds]
celly has joined #ruby
<gregf_> >> [{foo: 4}].map(&:keys)
<ruboto> gregf_ # => [[:foo]] (https://eval.in/411020)
<wasamasa> shevy: it's more hashes in an array and they have more keys
<wasamasa> shevy: I need only one of them for summing them up later
<wasamasa> shevy: the example has been simplified on purpose
arup_r_ has joined #ruby
arup_r_ has quit [Read error: Connection reset by peer]
arup_r_ has joined #ruby
marr has joined #ruby
celly has quit [Ping timeout: 244 seconds]
arup_r has quit [Ping timeout: 250 seconds]
apfeluser has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
Pumukel has joined #ruby
Trynemjoel has joined #ruby
Guest98942 has joined #ruby
texasmade has quit [Ping timeout: 256 seconds]
htmldrum has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
allcentury has quit [Ping timeout: 246 seconds]
sevenseacat has quit [Quit: .]
Guest98942 has quit [Ping timeout: 252 seconds]
minmax has quit [Quit: WeeChat 0.4.3]
Vile`` has joined #ruby
jbw has joined #ruby
mikecmpb_ has joined #ruby
casadei_ has joined #ruby
Hounddog has joined #ruby
apfeluser has quit [Quit: Leaving]
apfeluser has joined #ruby
apfeluser has quit [Client Quit]
apfeluser has joined #ruby
pawnbox has quit [Remote host closed the connection]
<chrisseaton> yorickpeterse: are you sure all threads are using just that method?
jbw has quit [Ping timeout: 240 seconds]
<chrisseaton> yorickpeterse: for example #resize uses the same instance variables and isn't synchronised
p8952 has quit [Quit: ZNC - http://znc.in]
<chrisseaton> yorickpeterse: you can't just say that one code path is synchronised and and assume all other possible code paths on the variables in it are also synchrnoised
rubytor_ has joined #ruby
ahuman_ has joined #ruby
pawnbox has joined #ruby
<chrisseaton> yorickpeterse: if you can figure out what methods are being called concurrently we can figure out where the problem might me
banister has joined #ruby
bayed has joined #ruby
Bish_ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
AlexAltea has joined #ruby
charliesome has quit [Quit: zzz]
casadei_ has quit [Ping timeout: 272 seconds]
Rickmast_ has joined #ruby
reprazent_ has joined #ruby
infernix has quit [Ping timeout: 240 seconds]
hfp has quit [Ping timeout: 240 seconds]
reprazent has quit [Ping timeout: 240 seconds]
Bish has quit [Ping timeout: 240 seconds]
araujo has quit [Ping timeout: 240 seconds]
rubytor has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Ping timeout: 240 seconds]
ahuman has quit [Ping timeout: 240 seconds]
WillAmes has quit [Ping timeout: 240 seconds]
renanoronfle has quit [Ping timeout: 240 seconds]
alem0lars has quit [Ping timeout: 240 seconds]
gagrio has quit [Ping timeout: 240 seconds]
dh64 has quit [Ping timeout: 240 seconds]
average has quit [Ping timeout: 240 seconds]
polyrob has quit [Ping timeout: 240 seconds]
krasnus has quit [Ping timeout: 240 seconds]
heyimwill has quit [Ping timeout: 240 seconds]
woodruffw has quit [Ping timeout: 240 seconds]
funnel has quit [Ping timeout: 240 seconds]
silverdust has quit [Ping timeout: 240 seconds]
silverdust has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
<chrisseaton> yorickpeterse: also, I'm not sure that reading @owner without any synchronisation like you do in #synchronize is safe - how do you guarantee that threads see modifications to this variable?
funnel_ has joined #ruby
gagrio has joined #ruby
hfp_ has joined #ruby
polyrob has joined #ruby
silverdust is now known as Guest84619
funnel_ is now known as funnel
mikecmpb_ is now known as mikecmpbll
hfp_ is now known as hfp
Tempesta has joined #ruby
renanoronfle has joined #ruby
Trynemjoel has joined #ruby
<yorickpeterse> chrisseaton: #resize _is_ synchronized for it's only called within methods that already synchronize themselves
<yorickpeterse> And the #synchronize method itself is pretty much a direct (if not direct) port of MonitorMixin's version
<chrisseaton> yorickpeterse: imagine thread A holds the lock, sets @owner = A, then releases the lock. thread B acquires the lock, sets @owner = B. How do you guarantee that A will see the new value for @owner?
apofis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo has joined #ruby
<chrisseaton> if you are relying on the lock being a synchronisation point then that's not good enough - the variable is set _after_ the lock is acquired
<chrisseaton> I think this could allow A to continue to think it has the lock, when it does not
alem0lars has joined #ruby
<krz> {"id"=>12, "expire_at"=>1438680089} how do i turn the keys to symbols so the hash ends up looking like {id: 12, expire_at: 1438680089} should i use openstruct?
<yorickpeterse> chrisseaton: the @owner is set within a synchronize call, as far as I can tell it can't be set concurrently because of that
<yorickpeterse> At worst N threads will race to https://github.com/YorickPeterse/oga/blob/master/lib/oga/lru.rb#L138
<yorickpeterse> and then block until they can take ownership
nofxx has quit [Ping timeout: 264 seconds]
Askilada has joined #ruby
<yorickpeterse> I could be wrong though
average has joined #ruby
bruno- has joined #ruby
<chrisseaton> hmm... not sure I agree - I think that A could have released the lock. B acquires it and sets @owner. But A doesn't see that @owner has been modified - it has the value cached as A somewhere - and so doesn't try to acquire the lock, and just runs the yield
allcentury has joined #ruby
<chrisseaton> @owner is a shared variable and you are reading it without any synchronisation - that can lead to not seeing updates made by other threads
<yorickpeterse> how would it have "the value cached somewhere"?
<yorickpeterse> Reading it in an unsynchronized manner shouldn't matter as ownership is _only_ taken in a synchronized manner
<chrisseaton> yorickpeterse: stored it in a register, on the stack etc - unless there is a synchronisation point the compiler isn't obligated to read it back from memory
radgeRayden has joined #ruby
<chrisseaton> yorickpeterse: it doesn't matter if the writer uses synchronisation - if the reader doesn't then it may not bother to read a fresh value from memory and so may not see the update
<al2o3-cr> >> {"id"=>12, "expire_at"=>1438680089}.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } # krz
<ruboto> al2o3-cr # => {:id=>12, :expire_at=>1438680089} (https://eval.in/411035)
<chrisseaton> yorickpeterse: and the reader doesn't use synchronisation - it releases the lock, then there are no synchronisation events by the reader again
<krz> nvm rails has symbolize_keys
<yorickpeterse> chrisseaton: I'm not sure if this is a problem, this is pretty much exactly how MonitorMixin works
<al2o3-cr> ah, ok
CustosLimen has quit [Ping timeout: 255 seconds]
<yorickpeterse> unless I messed something up when basing this on MonitorMixin
jbw has joined #ruby
infernix has joined #ruby
<chrisseaton> yorickpeterse: if that's how MonitorMixin works then I'm not not sure that is sound on the JVM - was it written with JRuby in mind?
<yorickpeterse> No, it was written with Ruby in mind
bruno- has quit [Ping timeout: 256 seconds]
<yorickpeterse> The main difference is that I don't have separate mon_enter methods and such
allcentury has quit [Ping timeout: 250 seconds]
<chrisseaton> yorickpeterse: I'm not sure it would be safe on Rubinius either - MRI has an explicit memory barrier on switching between threads, JRuby and Rubinius do not
bluOxigen has joined #ruby
<chrisseaton> I may be wrong - but I spent a couple of years working very closely with the Java memory model and that is what immediately strikes me as a potential problem
schaerli has joined #ruby
Guest32 has quit [Read error: Connection reset by peer]
<chrisseaton> whether Java or C++, the problem boils down to this - what in this program guarantees that the write to @owner in B will be sequenced before the read in A? As far as I can see - nothing
<yorickpeterse> Hmm
<chrisseaton> I'll open a JRuby issue to get some more opinions on this - I'll mention you
allcentury has joined #ruby
<yorickpeterse> I'll see if I can refactor this thing. The reason I had this in was to prevent recursive locking _without_ having to use MonitorMixin (I hate its API and it adds some overhead I don't want)
<yorickpeterse> No, this isn't JRuby specific so no need for it
<yorickpeterse> it only clutters my inbox
senayar has quit [Remote host closed the connection]
<yorickpeterse> If there's a synchronization problem it's my code that's at fault in this case
<chrisseaton> Isn't there a re-entrant lock you can use?
<yorickpeterse> it shouldn't be too hard to remove the recursive locking in the first place
senayar has joined #ruby
<chrisseaton> Ah this might be why it works in MonitorMixin - they *clear* @owner before leaving the lock
<chrisseaton> Try that
<chrisseaton> so @owner = nil after line 141
Outlastsheep has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
allcentury has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
k3asd` has quit [Ping timeout: 256 seconds]
ponga has joined #ruby
CustosLimen has joined #ruby
krz has quit [Read error: Connection reset by peer]
quimrsto_ has quit [Remote host closed the connection]
krz has joined #ruby
sdothum has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
ndrei has joined #ruby
Ilyes512 has joined #ruby
allcentury has joined #ruby
pengin has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
<shevy> the joy of threads
phutchins has joined #ruby
quimrstorres has joined #ruby
segfalt has joined #ruby
heyimwill has joined #ruby
krz has quit [Quit: WeeChat 1.2]
tubuliferous has joined #ruby
arup_r_ has quit [Read error: Connection reset by peer]
Ilyes512 has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
bodgix has joined #ruby
bodgix has quit [Client Quit]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swept has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
apofis has joined #ruby
zacstewart has joined #ruby
pengin has quit [Remote host closed the connection]
swept has left #ruby ["Leaving"]
bruno- has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
chills42 has joined #ruby
banister has joined #ruby
zz_Outlastsheep has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
kirun has joined #ruby
<yorickpeterse> chrisseaton: I'll take a look at it during the week
zacstewart has quit [Ping timeout: 244 seconds]
allcentury has joined #ruby
p8952 has joined #ruby
<shevy> does Thread.new freeze the ruby script that is run? I seem to freeze it when I use ruby-gnome at least...
<Rinzlit> Hey guys, can you run ruby on a chromebook?
<Rinzlit> Hey everyone*
<Rinzlit> My bad, I forgot >.<
<bougyman> yes, Rinzlit
michael_mbp has quit [Excess Flood]
pawnbox has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> shevy: No
<yorickpeterse> But when multiple threads are running on MRI it will switch between the threads
<yorickpeterse> if one of them runs the UI it will result in the UI being frozen
<yorickpeterse> so tl;dr use a Ruby that has multi-threading
radgeRayden has quit [Ping timeout: 244 seconds]
<yorickpeterse> and not a GIL
dc_ has joined #ruby
ndrei has joined #ruby
lannonbr has joined #ruby
C1V0 has quit [Ping timeout: 260 seconds]
<yorickpeterse> though ruby-gnome only works on MRI at this point
<yorickpeterse> gir-ffi however works fine
<yorickpeterse> (on both Rbx and JRuby IIRC)
lxsameer has quit [Ping timeout: 250 seconds]
dc has quit [Ping timeout: 244 seconds]
<shevy> aha
<shevy> I may finally have a use case to try out jruby then
olistik has quit [Remote host closed the connection]
<yorickpeterse> https://github.com/YorickPeterse/sql-gui I had this running using gir-ffi on Rubinius without any problems
centrx has joined #ruby
<shevy> do you have any call to system() or similar though?
pawnbox has joined #ruby
<yorickpeterse> how so?
<shevy> when you need to access to some underlying program, like mplayer
qiukun has quit [Quit: qiukun]
<yorickpeterse> Get to the point
<shevy> that is it
ta_ has quit [Remote host closed the connection]
<yorickpeterse> This particular program doesn't use system(), but what's your question about it?
<shevy> I use mplayer in system, in a thread, and it is blocking the main GUI
<yorickpeterse> If you mean "is system() supported on Rubinius" then yes, of course it is
<yorickpeterse> If it's in a separate thread it shouldn't block other threads
<shevy> yeah I thought so too :(
CustosLimen has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
pyrotecnix has quit [Ping timeout: 250 seconds]
Silox| has joined #ruby
auzty has quit [Quit: Leaving]
leat has quit [Remote host closed the connection]
leat has joined #ruby
zz_Outlastsheep has quit [Ping timeout: 244 seconds]
qiukun has joined #ruby
lxsameer has joined #ruby
dgutierrez1287 has joined #ruby
RegulationD has joined #ruby
ta has joined #ruby
CustosLimen has joined #ruby
krasnus has joined #ruby
segfalt has quit [Quit: segfalt]
ndrei has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
devbug_ has joined #ruby
ta has quit [Ping timeout: 255 seconds]
leat has quit [Remote host closed the connection]
sarkyniin has joined #ruby
leat has joined #ruby
safeforge has quit [Remote host closed the connection]
devbug has quit [Ping timeout: 244 seconds]
jbw has quit [Ping timeout: 240 seconds]
qiukun has quit [Quit: qiukun]
alveric has joined #ruby
celly has joined #ruby
jbw has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
nfk has joined #ruby
ldnunes has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ishahnaz has joined #ruby
celly has quit [Ping timeout: 244 seconds]
heidar has left #ruby [#ruby]
tuelz has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
<ELCALOR> is there a better way to do something like this? contracts.where(year: 2014).map { |contract| total_value += contract.total_value }
<yorickpeterse> Yes, run it in SQL
Vile`` has quit [Ping timeout: 272 seconds]
<yorickpeterse> also for Rails there's #rubyonrails
Vile` has joined #ruby
AugustoCesar has joined #ruby
<centrx> or can use inject instead of map
<apeiros> the db is definitively the right answer. relation.sum(:total_value)
pawnbox has joined #ruby
<kannan4k> hello, need quick help in finding the order of execution
<kannan4k> while (self.index += 1) < self.loaded.count || (self.has_more && load_next_batch)
<shevy> so many different answers
<kannan4k> which expr will be executed first? in this while loop?
<apeiros> kannan4k: self.index I'd say
<apeiros> kannan4k: stub it and see?
<yorickpeterse> That's parsed as following:
<yorickpeterse> while ((self.index += 1) < self.loaded.count || (self.has_more && load_next_batch))
<darix> putting FFI to the extreme: https://github.com/bmwiedemann/ctypes.sh
<yorickpeterse> so for every iteration it will try to run each arm
<yorickpeterse> If the first evaluates to true only that one is evaluated
<apeiros> darix: heh, love the "Here is what people have been saying about ctypes.sh" section
<yorickpeterse> now we wait for somebody to port it to zsh
<yorickpeterse> and Fish
<apeiros> no love for tcsh?
fgo has joined #ruby
<darix> apeiros: no
* apeiros hides
<yorickpeterse> Do I look like I'm 80?
<darix> apeiros: he is actually a coworker of mine
dgutierrez1287 has joined #ruby
gwendall has quit [Remote host closed the connection]
<kannan4k> yorickpeterse: if the first one fails, will it execute the second arm?
<yorickpeterse> kannan4k: fails as in it returns false? Yes
senayar has quit [Remote host closed the connection]
gwendall has joined #ruby
senayar has joined #ruby
<kannan4k> yorickpeterse: yeah, and first arm you mean this? (self.index += 1) < self.loaded.count
tuelz has quit [Ping timeout: 244 seconds]
njr has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
doertedev has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
jimms has quit []
[k- has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
<yorickpeterse> Yes
gwendall has quit [Ping timeout: 244 seconds]
<ELCALOR> centrx: how would i use inject?
casadei_ has joined #ruby
[k-_ has joined #ruby
fgo_ has joined #ruby
<yorickpeterse> ELCALOR: You don't, you use a SQL query for this
<darix> contracts.where(year: 2014).sum(total_value)
<darix> if i recall correctly
but3k4 has joined #ruby
<apeiros> missing a :
<ELCALOR> yorickpeterse: i do agree that that is way better. but i also need to accumulate some other information, which is not in the database
Trynemjoel has joined #ruby
<apeiros> ah, the joy of "let me show you only part of my problem"
fgo has quit [Ping timeout: 260 seconds]
dwithers is now known as pl1ght
olistik has joined #ruby
<darix> ELCALOR: maybe your other problems can be solved at sql level too
<yorickpeterse> The joy of fucking Mongoid/moped/whatever deciding that #to_json now returns {"$oid": "actual id"} instead of just "actual id"
* yorickpeterse changes 138102389012 files
AugustoCesar has left #ruby ["PONG :wilhelm.freenode.net"]
zacstewart has joined #ruby
<apeiros> yorickpeterse: it only does so because returning a hash scales better than returning an id.
<[k-> is that a random number
casadei_ has quit [Ping timeout: 250 seconds]
<darix> yorickpeterse: i thought you moved away from mongo
<centrx> ELCALOR, Get the sum from the DB, then add it to total_value. Each row does not need to be added to total_value one by one
<darix> and i think we need jslt
<darix> json transformation described in json
lkba has quit [Ping timeout: 246 seconds]
schaerli has quit [Remote host closed the connection]
<yorickpeterse> darix: we still have 1 app using it
<yorickpeterse> different cluster than the one we replaced with Postgres
yfeldblum has quit [Ping timeout: 246 seconds]
[k-_ has quit [Quit: -a- Connection Timed Out]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zacstewart has quit [Ping timeout: 244 seconds]
arup_r has quit [Remote host closed the connection]
rideh has joined #ruby
lidenbrock has joined #ruby
rideh has quit [Client Quit]
gagrio has quit [Ping timeout: 246 seconds]
rideh has joined #ruby
tmtwd has joined #ruby
ta has joined #ruby
olistik has quit [Remote host closed the connection]
mamercad has joined #ruby
benlovell has joined #ruby
woodruffw has joined #ruby
arup_r has joined #ruby
rodfersou has joined #ruby
sepp2k has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
avril14th has joined #ruby
lxsameer has joined #ruby
skade has quit [Ping timeout: 255 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
CustosLimen has quit [Ping timeout: 252 seconds]
tmtwd has quit [Ping timeout: 260 seconds]
Trynemjoel has joined #ruby
atomical has joined #ruby
Nahra has quit [Remote host closed the connection]
jas02 has quit [Quit: jas02]
jbw has quit [Ping timeout: 252 seconds]
gagrio has joined #ruby
pawnbox has quit [Remote host closed the connection]
<tsunamie> sorry I am a noob. please help me, I was wondering how to do the follow. Say I have a json in an enviroment variable created by a shell command. All this json is is effectibly a hash map. an application name and a version. how to I loop throught the hash map to get the application name and version number into a path and filename?
<shevy> how does that json look
omegamike has joined #ruby
<[k-> "{\"application\": .....}" probably
<adaedra> Captain Obvious is here
tkuchiki has joined #ruby
aryaching has joined #ruby
<apeiros> tsunamie: require 'json'; JSON.parse(ENV["ENVNAME"])
<apeiros> that gives you a normal ruby Hash
<apeiros> and you can use all the methods you know for it
<ruboto> tsunamie, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/e9b31d2ce72d0834125f
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<apeiros> well, that's actually an array of hashes, so that's what you'll get from parsing it too
jbw has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
techsethi has quit [Ping timeout: 244 seconds]
<tsunamie> apeiros, I want to loop throught the hash and process each of these togeather
oskar_ has joined #ruby
<apeiros> tsunamie: you don't know how to loop an array?
<apeiros> tsunamie: see Array#each
chouhoulis has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tvw has joined #ruby
CustosLimen has joined #ruby
banister has joined #ruby
<tsunamie> apeiros, I am writing sudo code and getting the template json stuff to show you what I am trying to do
ylg has joined #ruby
gwendall has joined #ruby
yh has joined #ruby
jbw has quit [Ping timeout: 265 seconds]
<apeiros> tsunamie: sudo -> pseudo?
sgambino has joined #ruby
skade has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
platosha_ has joined #ruby
Iskarlar has joined #ruby
banister has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 250 seconds]
platosha has quit [Ping timeout: 246 seconds]
banister has joined #ruby
LeDiegue has joined #ruby
Trynemjoel has joined #ruby
khebbie has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
tubuliferous has joined #ruby
erm has joined #ruby
<tsunamie> apeiros, this is the preudo code - http://pastebin.com/qYYPRxDi This here is the data from the artifact.json - http://pastebin.com/ZrGd0pnt and I want to splice it into another json file. 0- http://pastebin.com/fbBWfDYh
<ruboto> tsunamie, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1540e53cf5b1183ccb3a
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
segfalt has joined #ruby
skade has quit [Ping timeout: 252 seconds]
<apeiros> tsunamie: gist please
<apeiros> ruboto only repastes the first link
erm has quit [Client Quit]
<apeiros> tsunamie: though it looks to me like you should start out by learning ruby. e.g. by reading a book.
<[k-> does ruboto needs an upgrade?
<apeiros> it does
<[k-> \o/
<tsunamie> apeiros, hehe yea. Reading online guide now to try and do thids
<[k-> patch all the things!
dorei has joined #ruby
khebbie has quit [Ping timeout: 246 seconds]
tubuliferous has quit [Ping timeout: 250 seconds]
minotep has quit [Ping timeout: 264 seconds]
<tsunamie> apeiros, - are you willing to guide/help?
<apeiros> I'm willing to answer specific questions, but I'm not willing to teach you ruby.
sanguisdex has joined #ruby
olistik has joined #ruby
<[k-> (we all have a life!)
countryHick has joined #ruby
jbw has joined #ruby
Chau has quit [Ping timeout: 244 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
hinbody has joined #ruby
Trynemjoel has joined #ruby
bhorn1|away is now known as bhorn1
SOLDIERz has quit [Ping timeout: 265 seconds]
blue_deref has joined #ruby
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby
skade has joined #ruby
joonty has quit [Quit: joonty]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omegamike has quit [Remote host closed the connection]
jonee has joined #ruby
symm- has joined #ruby
ndrei has joined #ruby
akkmaxon has joined #ruby
astrobu__ has quit [Remote host closed the connection]
hmnhf has quit [Ping timeout: 246 seconds]
yh has quit [Ping timeout: 250 seconds]
victortyau has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
omegamike has joined #ruby
spider-mario has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
sarkyniin has quit [Ping timeout: 260 seconds]
<[k-> shevy: we should have infix lambdas in ruby
dc_ has quit [Remote host closed the connection]
jeremy04 has joined #ruby
gagrio has quit [Ping timeout: 260 seconds]
minotep has joined #ruby
gagrio has joined #ruby
bmurt has joined #ruby
lidenbrock has quit [Ping timeout: 246 seconds]
allcentury has joined #ruby
<oskar_> join #fsociety
oskar_ has left #ruby [#ruby]
jeremy04 has quit [Ping timeout: 256 seconds]
olas is now known as nlsun
<[k-> ahhhh we just got spammed!
yh has joined #ruby
aryaching_ has joined #ruby
LeDiegue has quit []
<yorickpeterse> it's such a convincing request too
<yorickpeterse> lets see what's in there
<yorickpeterse> "#fsociety: Cannot join channel (+i) - you must be invited"
<yorickpeterse> well
<yorickpeterse> that was disappointing
JoshL has joined #ruby
<[k-> /knock?
lkba has joined #ruby
<yorickpeterse> is not a command
aryaching has quit [Ping timeout: 240 seconds]
jtdoncas has quit [Ping timeout: 246 seconds]
<yorickpeterse> at least not in glorious weechat
<apeiros> /raw
<[k-> or /quote
devdazed has quit [Quit: Computer has gone to sleep.]
<[k-> KNOCK <channel>
lxsameer has quit [Ping timeout: 250 seconds]
tejasmanohar has quit [Ping timeout: 265 seconds]
CustosLimen has quit [Ping timeout: 272 seconds]
<centrx> /WHOSTHERE
preller_ has quit [Ping timeout: 264 seconds]
whippythellama has joined #ruby
ivanskie has joined #ruby
dfockler has joined #ruby
sarkyniin has joined #ruby
Axy has joined #ruby
lxsameer has joined #ruby
<yorickpeterse> too much effort
dblessing has joined #ruby
minotep has quit [Ping timeout: 250 seconds]
<[k-> i tried it for you
<[k-> no reply
celly has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
<yorickpeterse> prffft
lordkryss has joined #ruby
imperator has joined #ruby
dfockler has quit [Ping timeout: 252 seconds]
imperator has quit [Client Quit]
dgutierrez1287 has quit [Remote host closed the connection]
Silox| has quit [Quit: Connection closed for inactivity]
tmtwd has joined #ruby
celly has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
safeforge has joined #ruby
ylg has quit []
CustosLimen has joined #ruby
freerobby has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has joined #ruby
ylg has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
atomical has quit [Client Quit]
devbug_ has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
nateberkopec has joined #ruby
jeremy04 has joined #ruby
radgeRayden has joined #ruby
<adaedra> join #ruby
<mikecmpbll> sure.
gard has joined #ruby
<[k-> hello adaedra, im here, like you requested!
<adaedra> oh my
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
joonty has joined #ruby
<mikecmpbll> :D
jeremy04 has quit [Read error: Connection reset by peer]
<adaedra> Let's make a bot that joins random channels and say "You can stay here, it is fine too"
atomical has joined #ruby
casadei_ has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
Kellin has joined #ruby
Zai00 has joined #ruby
mamercad has quit [Ping timeout: 246 seconds]
bigbadbear has joined #ruby
freerobby has quit [Quit: Leaving.]
failshell has joined #ruby
freerobby has joined #ruby
braincra- has joined #ruby
Trynemjoel has joined #ruby
braincrash has quit [Ping timeout: 255 seconds]
braincra- is now known as braincrash
casadei_ has quit [Ping timeout: 265 seconds]
jpfuentes2 has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.2]
malconis has joined #ruby
keeguon has joined #ruby
sarkyniin has quit [Read error: Connection reset by peer]
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
apt-get_ has joined #ruby
al2o3-cr has joined #ruby
dorei has quit [Read error: Connection reset by peer]
dorei has joined #ruby
nhhagen has quit [Remote host closed the connection]
jeremy04 has joined #ruby
railsraider has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
decoponio has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
devdazed has joined #ruby
sshuff|gone is now known as sshuff
Askilada has quit [Ping timeout: 255 seconds]
zacstewart has joined #ruby
Trynemjoel has joined #ruby
gamename has quit [Remote host closed the connection]
gamename has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
gamename has quit [Remote host closed the connection]
gamename has joined #ruby
gamename has quit [Remote host closed the connection]
gard has quit [Ping timeout: 272 seconds]
devdazed has quit [Quit: Bye]
benlovell has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
tsvenson has joined #ruby
jeremy04_ has joined #ruby
mamercad has joined #ruby
jeremy04 has quit [Read error: Connection reset by peer]
Iskarlar has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
Iskarlar has joined #ruby
C1V0 has joined #ruby
gagrio has quit [Ping timeout: 246 seconds]
shlomo has joined #ruby
astrobun_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
<apeiros> grah! LDAP!
tagrudev has quit [Remote host closed the connection]
* apeiros pulls hair out
<apeiros> how tf do you query Net::LDAP for a DN? o0
aganov has quit [Remote host closed the connection]
yardenbar has quit [Quit: Leaving]
MatrixBridge has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
C1V0 has quit [Ping timeout: 240 seconds]
njs126 has joined #ruby
riotjones has quit [Remote host closed the connection]
ivanskie has joined #ruby
casadei_ has joined #ruby
soc42 has quit [Remote host closed the connection]
pawnbox has joined #ruby
<yorickpeterse> apeiros: start by drawing a pentagram on the floor and put candles on every corner
astrobun_ has quit [Ping timeout: 250 seconds]
akkmaxon has quit [Remote host closed the connection]
<yorickpeterse> Then find yourself a goat, kill it and place it in the center of the pentagram
<yorickpeterse> Then set yourself on fire
umgrosscol has joined #ruby
railsraider has quit [Quit: railsraider]
leesharma has joined #ruby
<apeiros> I might not have to do the last step
<apeiros> I think I'll spontaneously combust
<apeiros> it's like… "let's not explain how to look up entries by their ID, instead, lets show you all the ways to search"
* apeiros puzzled
TvL2386 has quit [Quit: Ex-Chat]
koos303 has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
Silox| has joined #ruby
CustosLimen has quit [Ping timeout: 272 seconds]
devdazed has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
<yorickpeterse> Code comments in a nutshell:
<yorickpeterse> # Presentation
<yorickpeterse> gem 'useragent'
<apeiros> ok, seems to be an ldap design. there's no lookup, only search.
bounder has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
mamercad has quit [Quit: leaving]
thoraxe has quit [Quit: signing off]
ndrei has joined #ruby
Trynemjoel has joined #ruby
<bounder> Hello! Anyone experienced with the gc.c source code around? I am trying force ruby to allocate a new heap page when it needs an allocation, so my current method is iterating through the objspace->heap_pages.sorted list and setting the free_slots count to zero, and setting the freelist to null in each page. This results in an expected heap_page_allo
<bounder> cate call, but reports a "same heap page is allocated" error
gagrio has joined #ruby
pauly_oc has quit [Ping timeout: 240 seconds]
c0def00d has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<yorickpeterse> bounder: why are you trying to force it?
dionysus69 has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
chills42 has joined #ruby
<c0def00d> How can I write a lamba that forwards it’s arguments to the “send” method of Object so that 'myLambda(:method, arg1, arg2)’ works?
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swills has joined #ruby
pfsh has joined #ruby
<bounder> I'm working with a parallel ruby project, and we require different virtual addresses for new allocations
<c0def00d> ‘lambda { |*args| myObject.send(args) }’ doesnt seem to work
<[k-> send(*args)
ndrei has quit [Ping timeout: 246 seconds]
<c0def00d> ahhh, stupid me!
bohallor has joined #ruby
hashrocket has joined #ruby
<apeiros> c0def00d: should take that ' from "it's" and use it in "doesnt" ;-p
<c0def00d> thanks!!
lannonbr has joined #ruby
<apeiros> (and yes, I wrote an actual answer first, but [k- was faster)
<c0def00d> apeiros: and yes, sorry for the sloppy writing!
<bounder> Making ruby think it needs more space is the cleanest way we came up with
<[k-> twice in a day apeiros!
<yorickpeterse> bounder: parallel....MRI... good luck with that
Iskarlar has joined #ruby
ndrei has joined #ruby
<yorickpeterse> Either way not sure, might be best asking on the ruby-core mailing list
<yorickpeterse> since the devs hang out there more so than they do in here
dopie has joined #ruby
<bounder> alright, thanks for the reference!
tuelz has joined #ruby
<rflot> hi all, curious if anybody's got any thoughts on the ruby-based CMS's out there. Looking at using refineryCMS for an upcoming project, would love to hear experiences
olistik has quit [Remote host closed the connection]
<yorickpeterse> bounder: if you actually need to run Ruby code in parallel you'll be out of luck with MRI/CRuby though
<[k-> rflot: have you asked on reddit yet?
tubuliferous has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
lkba_ has joined #ruby
<bounder> why do you say so?
jonee has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
<yorickpeterse> bounder: because MRI has a Global Interpreter Lock, preventing multiple threads from running in parallel
<pfsh> yorickpeterse: we know about the global vm lock and we found a way around it
<bounder> It is process based.
<pfsh> yeah
Trynemjoel has joined #ruby
<yorickpeterse> Ah yeah, good luck with the memory usage there
<bounder> oh, yeah, it hogs a ton of memory for sure
average has quit [Ping timeout: 240 seconds]
<yorickpeterse> For Rubies without a GIL look into Rubinius and JRuby and pick whatever suits your needs the most
Kalov has quit []
lkba has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 244 seconds]
j_mcnally has joined #ruby
<[k-> might as well into java/jvm if you want to use that much memory
gwendall has quit [Remote host closed the connection]
MatrixBridge has joined #ruby
average has joined #ruby
<rflot> [k: is reddit the normal place to ask about stuff like that?
<yorickpeterse> rflot: it's not
RegulationD has quit [Ping timeout: 250 seconds]
<yorickpeterse> rflot: it's just one of many places
<bounder> Thanks! The reason we are working with MRI is that by parallel I meant allowing the user to execute parallel code, mostly as a proof of concept for a C library that allows that in C, using processes
<yorickpeterse> I think these days refinery is still the way to go
<[k-> people would give well thought & good responses there
<yorickpeterse> others use something like Jekyll or nanoc
<bounder> As in, adding OpenMP-style directives to ruby
<rflot> cool, I'll throw it up there
<yorickpeterse> bounder: right, if that needs to be sandboxed then you'd need separate processes anyway
<bounder> but process based
<yorickpeterse> combined with something like cgroups
Trynemjoel has quit [Ping timeout: 250 seconds]
MatrixBridge has quit [Remote host closed the connection]
<yorickpeterse> "Errno::ENAMETOOLONG: File name too long @ rb_sysopen - /home/yorickpeterse/Private/Projects/olery/feedback/public/assets/jquery.mobile.angular-adapter-standalone-1.1.2.min-278b70283990c3a864662df9b47c4b6e249b81db68110fa60e5b0ec97c4049a8.js.70317718567280.17865.749176
<yorickpeterse> "
<yorickpeterse> oh fuck me
<yorickpeterse> now I gotta solve that too
jbw has quit [Ping timeout: 264 seconds]
<yorickpeterse> also where the hell did config/manifest.yml go in Rails 4
Trynemjoel has joined #ruby
gamename has joined #ruby
<yorickpeterse> there's no config/manifest.json either
<yorickpeterse> hrmpf
arup_r has quit [Remote host closed the connection]
norc has quit [Ping timeout: 246 seconds]
gamename has quit [Remote host closed the connection]
gamename has joined #ruby
Jarboe has joined #ruby
sameerynho has joined #ruby
tuelz has quit [Ping timeout: 250 seconds]
anisha has quit [Quit: Leaving]
kies^ has joined #ruby
arturaz has quit [Remote host closed the connection]
Billias has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
grope12yolds has joined #ruby
<grope12yolds> what is the apple chat channel?
denver has joined #ruby
olistik has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 265 seconds]
anisha has joined #ruby
<apeiros> #
celly has joined #ruby
<apeiros> (maybe not)
<yorickpeterse> #cult
<yorickpeterse> ᕕ(ᐛ)ᕗ
j4cknewt has quit [Remote host closed the connection]
sameerynho has quit [Ping timeout: 240 seconds]
olistik has quit [Remote host closed the connection]
<grope12yolds> that's cool
<grope12yolds> [10:41] == # Illegal channel name
olistik has joined #ruby
dblessing has quit [Ping timeout: 265 seconds]
gix has quit [Quit: Client exiting]
<yorickpeterse> grope12yolds: it was a joke
<twohlix> would be nice if that worked. I'd want #
<grope12yolds> anyone on a mac?
<twohlix> i am for work yea
sameerynho has joined #ruby
<grope12yolds> i'd kindly appreciate it if you could tell me where the photo stream folder is
<grope12yolds> i looked on google to no avail
gix has joined #ruby
<apeiros> /[^\x00\x07\x0A\x0D\x20,:]/n
gamename has quit [Remote host closed the connection]
gamename has joined #ruby
<twohlix> no idea, I really only use this for ruby/rails dev so i dont really use iPhoto or anything
kirun has quit [Ping timeout: 250 seconds]
shlomo has quit [Quit: WeeChat 1.2]
MatrixBridge has joined #ruby
<apeiros> technically, # should be valid
<twohlix> the server rejects it
j4cknewt has joined #ruby
<apeiros> and #
<apeiros> not spec compliant!!!
<twohlix> lol
<apeiros> (or I missed something in the BNF, or maybe outside, restricting it to 0x00-0x80)
relix has joined #ruby
<twohlix> or while the server may be able to support it, perhaps freenode has banned channels like that
prefixed has joined #ruby
dfockler has joined #ruby
<apeiros> nope, explicitly in: `chanstring =/ %x2D-39 / %x3B-FF` (https://tools.ietf.org/html/rfc2812#section-2.3.1)
<apeiros> yeah, maybe it's allowed by the message spec, but servers can clamp down valid channel names
texasmade has joined #ruby
<adaedra> apeiros » and #
<adaedra> so, #php
<adaedra> :>
<apeiros> yeah, could forward
Fire-Dragon-DoL has joined #ruby
<Fire-Dragon-DoL> 'morning
<adaedra> hi
<[k-> wouldn't it need to be a free target first?
msnyon has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> grope12yolds: try ##apple
prefixed has quit [Ping timeout: 260 seconds]
prefixed has joined #ruby
minotep has joined #ruby
dc has joined #ruby
<adaedra> also, dat nick
DCameronMauch has joined #ruby
<apeiros> oh, yeah, that's actually bannable…
<apeiros> !kick grope12yolds nick
grope12yolds was kicked from #ruby by ruboto [nick]
sameerynho has quit [Quit: Leaving]
* apeiros didn't even read the nick
<adaedra> took me some time to find it tbh
<apeiros> too busy trying to figure the insanity that is LDAP
senayar has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
safeforge has quit [Remote host closed the connection]
<adaedra> aaaah, LDAP.
<adaedra> Are you on drugs right now apeiros ?
platzhirsch has joined #ruby
<apeiros> I'm not sure whether ldap is broken or just AD's implementation of it
senayar has joined #ruby
<apeiros> adaedra: not yet. but it might make things easier.
jbw has joined #ruby
<adaedra> Ah, not only you're on LDAP, but on an AD one?
<apeiros> especially this headache induced by ldap.
<adaedra> I wish you good luck
<apeiros> I'm not sure luck will suffice
dfockler has quit []
<apeiros> I think I'll also need a sacrificial goat
<adaedra> :D
sanguisdex has quit [Remote host closed the connection]
<apeiros> maybe I'm doing this all wrong. but it seems to me like this doesn't work as advertized. filters seem to be ignored. searching for a DN returns all subtrees too…
<apeiros> this stuff… so f'ed up.
The_Phoenix has joined #ruby
xcesariox has joined #ruby
gwendall has joined #ruby
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby
sanguisdex has joined #ruby
<apeiros> ok, `scope` param helps with that subtree issue.
Trynemjoel has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<apeiros> now I got to figure why it ignores my filters…
NeverDie has joined #ruby
d10n-work has joined #ruby
surs has quit [Quit: WeeChat 0.3.7]
kwd has quit [Quit: kwd]
Iskarlar has quit [Quit: Textual IRC Client: www.textualapp.com]
nhhagen has joined #ruby
bruno- has joined #ruby
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
safeforge has joined #ruby
apt-get_ has quit [Ping timeout: 272 seconds]
j_mcnally has joined #ruby
krokuz has quit [Ping timeout: 246 seconds]
joast has quit [Quit: Leaving.]
M-prosodyContext has joined #ruby
M-mistake has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Hounddog has quit [Read error: Connection reset by peer]
dfockler has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
hashrocket has joined #ruby
rideh has quit [Quit: zap]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
bradleyprice has joined #ruby
ReK2 has quit [Read error: Connection reset by peer]
codecop has joined #ruby
rideh has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
j4cknewt has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
allcentury has quit [Quit: WeeChat 1.2]
eggoez has quit [Ping timeout: 246 seconds]
djstorm has joined #ruby
zacstewart has joined #ruby
jonee has joined #ruby
prefixed has quit [Changing host]
prefixed has joined #ruby
danzilio has joined #ruby
prefixed is now known as grill
eggoez has joined #ruby
apt-get_ has joined #ruby
quimrstorres has joined #ruby
danzilio has quit [Max SendQ exceeded]
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danzilio has joined #ruby
Muhannad has joined #ruby
last_staff has quit [Ping timeout: 244 seconds]
danzilio has quit [Client Quit]
danzilio has joined #ruby
CloCkWeRX has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
<shevy> anyone happens to know
<shevy> in a .gemspec file
Ropeney has joined #ruby
<shevy> how to properly pull in all executables under bin/ in a generic way?
Trynemjoel has joined #ruby
livathinos has quit []
<shevy> I have seen it happen in some bundler-ified gem
<shevy> ah
<shevy> s.executables = Dir['bin/*'].map { |f| File.basename(f) }
<shevy> probably
hashrocket has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saddad has joined #ruby
zacstewart has quit [Remote host closed the connection]
allcentury has joined #ruby
davedev2_ has joined #ruby
sargas has joined #ruby
michael_mbp has quit [Excess Flood]
tercenya has quit []
solars has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 244 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei_ has quit [Remote host closed the connection]
j_mcnally has joined #ruby
last_staff has joined #ruby
s00pcan has joined #ruby
radgeRayden_ has joined #ruby
ivanskie has joined #ruby
dgutierrez1287 has joined #ruby
baroquebobcat has joined #ruby
skade has joined #ruby
michael_mbp has joined #ruby
polyrob_ has joined #ruby
radgeRayden has quit [Ping timeout: 244 seconds]
chrissonar has quit [Remote host closed the connection]
rjno has joined #ruby
anisha has quit [Quit: Leaving]
senayar has quit [Remote host closed the connection]
vt102 has joined #ruby
senayar has joined #ruby
MatrixBridge has quit [Remote host closed the connection]
M-prosodyContext has quit [Remote host closed the connection]
M-mistake has quit [Remote host closed the connection]
riotjones has joined #ruby
polyrob has quit [Ping timeout: 264 seconds]
polyrob_ is now known as polyrob
pauly_oc has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
dgutierrez1287 has quit [Ping timeout: 265 seconds]
anisha has joined #ruby
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joast has joined #ruby
Muhannad has quit [Ping timeout: 252 seconds]
andikr has quit [Remote host closed the connection]
swgillespie has joined #ruby
fgo_ has quit [Quit: WeeChat 1.1.1]
rehat has joined #ruby
lkba has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Guest84619 is now known as silverdust
silverdust has quit [Changing host]
silverdust has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
techsethi has joined #ruby
lkba_ has quit [Ping timeout: 250 seconds]
casadei_ has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bounder has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
CorySimmons has joined #ruby
Ropeney has quit [Quit: Leaving]
DoubleMalt has quit [Remote host closed the connection]
banister has joined #ruby
JoshL_ has joined #ruby
JoshL has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
axl_ has quit [Quit: axl_]
sinkensabe has joined #ruby
alveric has quit [Ping timeout: 240 seconds]
texasmade has quit [Ping timeout: 246 seconds]
alveric has joined #ruby
axl_ has joined #ruby
anisha has quit [Quit: Leaving]
NeverDie has joined #ruby
<dudedudeman> hayyyy ruby!
<yorickpeterse> hi dude
<dudedudeman> suppy sup
CloCkWeRX has quit [Quit: Leaving.]
theery has joined #ruby
Iskarlar has joined #ruby
axl_ has left #ruby [#ruby]
MatrixBridge has joined #ruby
pdoherty has joined #ruby
DCameronMauch has quit [Remote host closed the connection]
mleung has joined #ruby
tvw has quit []
diegoviola has joined #ruby
axl_ has joined #ruby
hmnhf has joined #ruby
kakusu has quit [Ping timeout: 260 seconds]
michael_mbp has quit [Excess Flood]
boobi has joined #ruby
techsethi has quit [Ping timeout: 246 seconds]
DCameronMauch has joined #ruby
Drakevr has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
kakusu has joined #ruby
lkba_ has joined #ruby
Drakevr has joined #ruby
bruno- has quit [Quit: Lost terminal]
bruno- has joined #ruby
DCameronMauch has quit [Client Quit]
rcvalle has joined #ruby
hmnhf has quit [Read error: Connection reset by peer]
stiky has quit [Quit: Leaving]
bruno- is now known as Guest25020
joonty has quit [Quit: joonty]
mxrguspxrt has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 250 seconds]
boobi has quit [Ping timeout: 252 seconds]
leesharma has quit [Ping timeout: 244 seconds]
boobi has joined #ruby
Ilyes512 has joined #ruby
mxrguspxrt has joined #ruby
chills42 has quit [Remote host closed the connection]
hashrocket has joined #ruby
j4cknewt has joined #ruby
<atmosx> hello dudedudeman
boobi has quit [Client Quit]
senayar has quit []
<shevy> how to obtain the way how a user invoked a .rb file?
polpak has joined #ruby
boobi has joined #ruby
blueOxigen has joined #ruby
JoshL_ has quit []
lsmola has quit [Ping timeout: 244 seconds]
<adaedra> what do you mean, shevy
<adaedra> knowing if you are in direct execution, load or require?
bluOxigen has quit [Ping timeout: 264 seconds]
withnale____ has joined #ruby
<shevy> I want to feedback some help about the commandline usage
eGGsha has joined #ruby
<shevy> like when a user does pass --help
<adaedra> $0
bluOxigen has joined #ruby
dblessing has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby
tubuliferous has joined #ruby
TomyWork has quit [Ping timeout: 264 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
withnale___ has quit [Ping timeout: 240 seconds]
texasmade has joined #ruby
blueOxigen has quit [Ping timeout: 260 seconds]
segfalt has quit [Quit: segfalt]
withnale____ has quit [Ping timeout: 240 seconds]
aphprentice has quit [Remote host closed the connection]
c0def00d has quit [Quit: c0def00d]
bricker has joined #ruby
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chills42 has joined #ruby
<twohlix> shevy: adaedra got it right with $0 and OptionParser is pretty helpful for stuff like usage and options for the commandline if you're not already using it (http://apidock.com/ruby/OptionParser)
tubuliferous has quit [Ping timeout: 246 seconds]
theery has quit [Read error: Connection reset by peer]
joast has quit [Quit: Leaving.]
theery has joined #ruby
hashrocket has joined #ruby
joast has joined #ruby
sevin has quit [Ping timeout: 260 seconds]
BTRE has quit [Ping timeout: 256 seconds]
douglasssss has joined #ruby
spider-mario has joined #ruby
sevin has joined #ruby
blueOxigen has joined #ruby
failshell has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Trynemjoel has quit [Ping timeout: 245 seconds]
hashrocket has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
bohallor has quit [Ping timeout: 250 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
DarthGandalf has quit [Ping timeout: 264 seconds]
[Butch] has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
celly has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 250 seconds]
umgrosscol has quit [Ping timeout: 260 seconds]
hanmac has joined #ruby
j4cknewt_ has joined #ruby
Trynemjoel has joined #ruby
webopsx has joined #ruby
webopsx has quit [Max SendQ exceeded]
pengin has joined #ruby
j4cknewt has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
<shevy> yeah $0 seems to work fine. weird name though
Zai00 has quit [Quit: Zai00]
towski_ has joined #ruby
marr has quit []
Trynemjoel has joined #ruby
olistik has quit [Remote host closed the connection]
rideh has quit [Ping timeout: 260 seconds]
rideh^ has joined #ruby
segfalt has joined #ruby
BTRE has joined #ruby
RegulationD has quit [Remote host closed the connection]
bustrarm has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
[k- has quit [Quit: Lingo: www.lingoirc.com]
cornerma1 has joined #ruby
radgeRayden__ has joined #ruby
Violentr has quit [Ping timeout: 264 seconds]
khebbie has joined #ruby
benlovell has quit [Ping timeout: 272 seconds]
RobertBi_ has joined #ruby
hashrocket has joined #ruby
pietr0 has joined #ruby
texasmade has quit [Ping timeout: 240 seconds]
busterarm has quit [Ping timeout: 260 seconds]
marr has joined #ruby
celly has joined #ruby
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
<lampd1> how could one redefine a constant in a .class_eval do loop?
radgeRayden_ has quit [Ping timeout: 244 seconds]
<shevy> you can via .const_set()
stan has quit [Ping timeout: 246 seconds]
<apeiros> lampd1: you wouldn't choose a constant if you want to change it
<lampd1> cool, think I just need to bind in there; this monkeypatch is getting kinda cray
<lampd1> apeiros: I'm monkey patching something
olistik has joined #ruby
<lampd1> don't want to fork the base lib if I can avoid it
bricker has quit [Quit: Lost terminal]
<lampd1> thx shevy will give it a whirl
<shevy> apeiros but a constant in ruby can be changed willy-nilly! :)
khebbie has quit [Ping timeout: 260 seconds]
bricker has joined #ruby
leesharma has joined #ruby
<adaedra> shevy: not a weird name
Trynemjoel has quit [Ping timeout: 250 seconds]
keeguon has quit [Ping timeout: 246 seconds]
<shevy> $0 looks like a regex var
<adaedra> shevy: in other languages, like C, the program name is put as first element of argv array
<shevy> c is even weirder
radgeRayden_ has joined #ruby
umgrosscol has joined #ruby
<adaedra> ruby does not put it in ARGV though, but keeps it in $0 (same in shell)
<shevy> ewwww
<adaedra> weirder or not, ruby gets it like that from the system
<shevy> shell
<Mon_Ouie> $PROGRAM_NAME
<adaedra> this said, I'm out
<adaedra> \o
yh has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
<shevy> that's a better name
TinkerTyper has quit [Quit: ZNC restarting...]
<hanmac> shevy checkout the global variables like "$-w" ;P
<shevy> I dunno
Trynemjoel has joined #ruby
<shevy> >> $4890278902424 = 5
<ruboto> shevy # => /tmp/execpad-b7874c23194e/source-b7874c23194e:2: Can't set variable $2147483647 (https://eval.in/411199)
shadoi has joined #ruby
<shevy> did I try to set the variable $2147483647
<gregf_> ruby's lying there :/
radgeRayden__ has quit [Ping timeout: 255 seconds]
<Mon_Ouie> Not really, it is true that you cannot set variable $2147483647 :p
Alayde has joined #ruby
<shevy> hehe
<gregf_> >>$_4890278902424 = 5
<ruboto> gregf_ # => 5 (https://eval.in/411200)
dorei has quit [Ping timeout: 240 seconds]
<shevy> I only tried $ variables higher than 9 after Ox0dea complained about nobu's implementation
safeforge has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
texasmade has joined #ruby
last_staff has quit [Quit: last_staff]
<hanmac> hm interesting ... "$wx" is a valid variable name, "$-w" is too, "$-wx" is a syntax error ;P
Phoop has quit [Ping timeout: 260 seconds]
radgeRayden_ has quit [Ping timeout: 255 seconds]
radgeRayden has joined #ruby
<shevy> oh? a - can be used?
<shevy> well, I don't like global variables so I probably won't ever use it
<hanmac> shevy no, it does lie to you
<shevy> lol
<shevy> that's a feature! it discourages you from using global variables :)
<hanmac> $-w is "not" a real global variable ... it only looks like it
<Mon_Ouie> >> $-_ = 2; $-_
<ruboto> Mon_Ouie # => 2 (https://eval.in/411203)
<Mon_Ouie> You just can't have multiple letters after the hyphen
<hanmac> shevy your sample is also funny for me: $4890278902424 = 5 #=> "(irb):5: warning: `$4890278902424' is too big for a number variable, always nil SyntaxError: (irb):5: Can't set variable $0" .... i didnt try to set $0 but for some reason it does think i do oO
ndrei has joined #ruby
olistik has quit [Read error: No route to host]
<shevy> curious error
<shevy> a "number variable"... I don't think I have read that before
texasmade has quit [Ping timeout: 272 seconds]
Pumukel has quit [Ping timeout: 244 seconds]
arup_r has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
olistik has joined #ruby
towski_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
helpa has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 250 seconds]
helpa has joined #ruby
tenderlove has joined #ruby
jjj123 has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DarthGandalf has joined #ruby
celly has quit [Remote host closed the connection]
yh has joined #ruby
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alveric has quit [Ping timeout: 264 seconds]
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby
hashrocket has joined #ruby
j4cknewt_ has quit [Read error: Connection reset by peer]
apofis has quit [Ping timeout: 244 seconds]
Violentr has joined #ruby
j4cknewt has joined #ruby
thatsnotjack has quit [Remote host closed the connection]
olistik has quit []
leafybasil has quit [Remote host closed the connection]
thatsnotjack has joined #ruby
leafybasil has joined #ruby
Phoop has joined #ruby
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
chills42 has quit [Remote host closed the connection]
JoshL has joined #ruby
paulcsmith has joined #ruby
podman has joined #ruby
sargas has quit [Quit: Leaving]
leafybasil has quit [Ping timeout: 240 seconds]
tubuliferous has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
mikecmpbll has joined #ruby
nyandoge has joined #ruby
workmad3 has joined #ruby
danzilio has joined #ruby
ascarter has joined #ruby
jonee has quit [Ping timeout: 240 seconds]
boobi has quit [Ping timeout: 246 seconds]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
boobi has joined #ruby
icebourg has joined #ruby
casadei_ has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 245 seconds]
sshuff is now known as sshuff|gone
hashrocket has quit [Read error: Connection reset by peer]
dtzitz has joined #ruby
angrywombat has joined #ruby
texasmade has joined #ruby
s2013 has joined #ruby
qwerbicman has joined #ruby
Trynemjoel has joined #ruby
boobi has quit [Ping timeout: 240 seconds]
<qwerbicman> does anyone know how to reader UPC barcodes in ruby?
<qwerbicman> read*
<bougyman> the reader normally just throws output to stdin.
<bougyman> it's like a keyboard device.
wldcordeiro_ has joined #ruby
carlosoliveira has joined #ruby
<qwerbicman> I just need the actual numeric code from an image of a upc barcode
<bougyman> you have a barcode reader?
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<angrywombat> guys
blaines has joined #ruby
<qwerbicman> no i need a barcode reader
<dtzitz> ?guys
<ruboto> You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
<qwerbicman> for ruy
<bougyman> for ruy?
<qwerbicman> ruby
<angrywombat> i relate to guys
<angrywombat> sorry guys
Guest25020 has quit [Ping timeout: 240 seconds]
<qwerbicman> there seems to be a variety of barcode readers for javascript but only one for ruby
<qwerbicman> zbar-ruby unfortunately doesn't work on my system nor heroku
tkuchiki has joined #ruby
<qwerbicman> looks like even #ruby doesn't have an answer
<qwerbicman> surely even speedwagon is a afraid of this problem
dtzitz has left #ruby [#ruby]
dtzitz has joined #ruby
yh has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
Violentr has quit [Ping timeout: 246 seconds]
towski_ has joined #ruby
lkba_ has quit [Remote host closed the connection]
<shevy> I think someone here wrote a barcode reader
chills42 has joined #ruby
banister_ has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
<shevy> nick was starting with t
scriptor has joined #ruby
lee_ has joined #ruby
baweaver has joined #ruby
leesharma has quit [Ping timeout: 246 seconds]
pyon has quit [Ping timeout: 246 seconds]
scriptor has left #ruby [#ruby]
omfgtora has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Ping timeout: 250 seconds]
amclain has joined #ruby
blaines has quit [Read error: Connection reset by peer]
blaines has joined #ruby
banister has quit [Ping timeout: 252 seconds]
<shevy> toretore I think
bootstrappm has joined #ruby
<shevy> oh dang, that's a generator hmm
<shevy> but I could swear he also wrote a reader... he isn't online right now though
blaines has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
pyon has joined #ruby
<bootstrappm> morning all
blaines has joined #ruby
<qwerbicman> shevy yeah barby looks great but it's only for creating barcodes
symbol has joined #ruby
RegulationD has joined #ruby
blaines has quit [Read error: Connection reset by peer]
radgeRayden_ has joined #ruby
tubuliferous has quit [Ping timeout: 255 seconds]
blaines has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
chouhoul_ has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Read error: Connection reset by peer]
vdamewood has joined #ruby
denver has quit [Read error: Connection reset by peer]
dc has quit [Remote host closed the connection]
dtzitz is now known as anrgywombat
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
jpfuentes2 has joined #ruby
kidoz has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
anrgywombat is now known as dtzitz
EllisTAA has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
DLSteve has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
Eiam has joined #ruby
jonee has joined #ruby
dc has joined #ruby
tubuliferous has joined #ruby
leafybasil has joined #ruby
Vile` has joined #ruby
texasmade has quit [Ping timeout: 246 seconds]
frem has joined #ruby
qwerbicman has quit [Quit: Page closed]
solars has joined #ruby
jenrzzz has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Rollabunna has joined #ruby
khebbie has joined #ruby
sinkensabe has joined #ruby
kies^ has quit [Ping timeout: 265 seconds]
koos303 has quit [Quit: Connection closed for inactivity]
RegulationD has joined #ruby
gheegh has joined #ruby
casadei_ has joined #ruby
failshell has joined #ruby
Billias has joined #ruby
baweaver has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Ilyes512 has quit [Read error: Connection reset by peer]
dtzitz has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
<atmosx> I lost 3 hours for a CSS form/bug
tkuchiki has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
<atmosx> jesus-falsdfasdf-christ
banister_ has quit [Read error: Connection reset by peer]
segfalt has quit [Quit: segfalt]
dorei has joined #ruby
<angrywombat> atmosx: you should try brackets, i hear that fixes things
bohallor has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hashrocket has joined #ruby
Valeness has joined #ruby
<atmosx> the editor?
<angrywombat> yes
<angrywombat> it's front endy
<atmosx> I use syntastic + vim, it shows some errors (most of them) in code/syntax.
Criten has joined #ruby
<lampd1> sass or bust
<atmosx> my case was kinda different I used a <form> tag before a form_for which fucked up everything
ddv has quit [Changing host]
ddv has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
<atmosx> what is bust?
<angrywombat> i thought vim was for people that had slow computers
<atmosx> angrywombat: nah, it's for those who can type on a terminal.
terlar has joined #ruby
j4cknewt_ has joined #ruby
<angrywombat> atmosx: can i use it with powershell?
bradleyprice has quit [Remote host closed the connection]
<atmosx> angrywombat: I'd rather shoot myself in the knee than use windows for development.
gard has joined #ruby
<atmosx> s/in/on whatever
<lampd1> angrywombat: maybe?
<atmosx> angrywombat: you write ruby code on windows?
<angrywombat> well how else would you use a command line
jenrzzz_ has joined #ruby
<lampd1> i prefer https://babun.github.io/ if i'm locked into win dev tho :P
<lampd1> way more unixy
darkf has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 244 seconds]
<lampd1> except it jails you into its own filestructure and you can't access the rest of your partition
<lampd1> via its shell
aryaching_ has quit [Ping timeout: 260 seconds]
RazorX has quit [Remote host closed the connection]
<lampd1> small price to pay for slashes that go the right direction
<angrywombat> wait, how do i install that?
<angrywombat> sorry if i sound retarded guys, im new to this
<Criten> who says unix has the correct slashes?
j4cknewt has quit [Ping timeout: 246 seconds]
preller has joined #ruby
khebbie has quit [Remote host closed the connection]
RazorX has joined #ruby
<angrywombat> what?
Soda has joined #ruby
Zai00 has joined #ruby
<angrywombat> anyway guys i'm trying to build a lyrics website
<angrywombat> i want to get a head on my comp sci skills before autumn
<angrywombat> i'm having trouble making this data base work tho
freerobby has joined #ruby
<angrywombat> does anyone know how to work with the data base?
baweaver has joined #ruby
<atmosx> angrywombat: command line == linux, Windows has a very lousy env
<atmosx> angrywombat: or anything unix-based
rdark has quit [Quit: leaving]
<eam> Criten: unix and windows use the same path separator
<angrywombat> atmosx: this wiki article i am reading says that linux is a unix, though.. is that correct?
<eam> DOS/Windows has always supported using foo/bar style directories
<atmosx> who cares about the path separator, that's not anyone's problem.
<angrywombat> i dont get it, if windows and unix both have bad command lines, am i supposed to use mac?
<atmosx> angrywombat: I have no idea, I thought that Windows was Unix and Unix was Linux.
last_staff has joined #ruby
jackjackdripper has joined #ruby
gelinas260 has joined #ruby
<angrywombat> well ok
<angrywombat> ill just use windows then
<atmosx> yeah do that.
<angrywombat> but the data base doesnt work
<atmosx> ignore does
<atmosx> just ignore the datbase you don't need it.
RobertBi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
preller has quit [Quit: leaving]
preller has joined #ruby
dtzitz has joined #ruby
<angrywombat> atmosx: how can i store this lyrics then?
<angrywombat> atmosx: are you just joking with me?
<atmosx> angrywombat: no, I'm serious. Why would you need a database
<angrywombat> i want to store user datas and also lyrics
platzhirsch has quit [Ping timeout: 260 seconds]
<dtzitz> angrywombat: just use local storage
<angrywombat> i have access already setup but i can't get obc to work with ruby
tubuliferous_ has joined #ruby
<angrywombat> i thnk that's where i am
<angrywombat> these tutorials tell me so many different things
<atmosx> what is obc?
<eam> odbc?
<dtzitz> angrywombat: html5 supports local storage
dopie has quit [Quit: This computer has gone to sleep]
<angrywombat> yeah sorry, i'm not too lingo-y yet
<atmosx> angrywombat: you don't need a database.
crdpink2 has joined #ruby
bruno- has joined #ruby
<angrywombat> then what is the point of using a ruby framework?
<Criten> Why would he use localstoage? lol
<Criten> sqlite maybe..
crdpink has quit [Ping timeout: 246 seconds]
<angrywombat> these guys are noobs i think
<angrywombat> ha ha
preller has quit [Client Quit]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
<atmosx> angrywombat: I'd pen and paper if I were you.
pietr0_ has joined #ruby
<atmosx> data lasts on paper, especially if the quality is appropriate.
tubuliferous has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 240 seconds]
<dtzitz> Criten: SQLite is a database
<Criten> Oh yeah, and we dont want htat
<dtzitz> atmosx says he doesn't need a database
<dtzitz> i agree
RobertBi_ has joined #ruby
pietr0 has quit [Ping timeout: 244 seconds]
pietr0_ is now known as pietr0
graydot has joined #ruby
<dtzitz> you should have ruby send the data over http to a python client that will pickle the lyrics
<atmosx> I think he needs a chromebook to enhance his development
<dtzitz> angrywombat: do you know how to pickle in python?
<atmosx> and when a request comes, read the lyrics from the paper and type them into the display.
<angrywombat> what?
<angrywombat> you guys are mean
<dtzitz> ?guys
<ruboto> You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
<atmosx> dtzitz: he is racist too.
<angrywombat> i just want to make a little money on the side during college so i thought lyrics is good after reading alot about searching optimization
<atmosx> angrywombat: you have anything against women in tech?
<angrywombat> atmosx: why would i?
rideh^ has quit [Quit: zap]
<atmosx> angrywombat: why did you call us "guys"
RobertBi_ has quit [Client Quit]
segfalt has joined #ruby
<atmosx> angrywombat: I feel kinda threatened.
<wasamasa> lol
<eam> this is ridiculous
<atmosx> and a little bit insulted.
<atmosx> ?guys
<ruboto> You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
<angrywombat> it says right there, persons of either sex
<angrywombat> people
<wasamasa> angrywombat: not like there's not a single lyrics website out there
<angrywombat> should i say people instead?
<atmosx> angrywombat: no, you says 'guys' in this context.
<atmosx> s/says/daid
<atmosx> lol
<atmosx> said
<eam> angrywombat: folks like atmosx are trying to redefine the term
<atmosx> whatever
<Criten> You guys should get a bot
<Criten> that does that for you
<eam> it's a bit of a word game
<Criten> s/says/daid
<atmosx> eam: no, ruboto did that.
<atmosx> eam: we either have to stick to the rules or not.
<angrywombat> why? are they the same people that redefined literally to mean figuratively?
<wasamasa> guise
<atmosx> Criten: I can write the method lol
blue_deref has quit [Quit: bbn]
<Criten> Guys, how do i add two strings together in ruby?
<atmosx> Criten: you just ask politely
<dtzitz> WHAT IS WITH THE GUYS THIHG
<atmosx> ?guys
<ruboto> You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
<atmosx> ...
<wasamasa> >> "Guys, how do i add two" + "strings together in ruby?"
<ruboto> wasamasa # => "Guys, how do i add twostrings together in ruby?" (https://eval.in/411227)
<angrywombat> oh that thing is a bot
<atmosx> wasamasa: u2! I can not believe this, this is a revolt!
turb0 has joined #ruby
<wasamasa> atmosx: it's a loophole!
Zai00 has quit [Quit: Zai00]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Criten> ?guys
<ruboto> You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
<atmosx> angrywombat: what is a bot? like a boat on the sea or something?
<Criten> ?apple
<ruboto> I don't know anything about apple
<atmosx> ?queer
<ruboto> I don't know anything about queer
mxrguspxrt has quit [Remote host closed the connection]
<wasamasa> this channel is lolboats
kies^ has joined #ruby
<atmosx> ?help
<ruboto> You can find an overview of my commands at http://ruby-community.com/ruboto/commands
<lannonbr> >> "this is another " "way as well I believe"
<ruboto> lannonbr # => "this is another way as well I believe" (https://eval.in/411228)
<angrywombat> what is wrong with you people
<dtzitz> wait so what are we trying to do
<angrywombat> i mean GUYS
jpfuentes2 has joined #ruby
<dtzitz> are we still on the barcode thing
<Criten> >> "#{adsf} #{adsf}
<ruboto> Criten # => /tmp/execpad-4e3e2bd7730e/source-4e3e2bd7730e:2:in `<main>': undefined local variable or method `ads ...check link for more (https://eval.in/411230)
<Criten> >> "#{adsf} #{adsf}"
<wasamasa> now you're doing it intentionally!
rideh has joined #ruby
<ruboto> Criten # => undefined local variable or method `adsf' for main:Object (NameError) ...check link for more (https://eval.in/411231)
AlexRussia has quit [Read error: Connection reset by peer]
symm- has joined #ruby
<Criten> >> "#{"adsf"} #{"adsf"}"
<ruboto> Criten # => "adsf adsf" (https://eval.in/411233)
<angrywombat> i just wanted my obc to work in ruby
<Criten> >> 200^200^200
<ruboto> Criten # => 200 (https://eval.in/411235)
<Criten> ok im done lol
<atmosx> angrywombat: why don't you try #NET
CorySimmons has quit [Quit: Bye!]
<baweaver> Ox0dea: How did you know about ?a for single character strings?
victortyau has quit [Ping timeout: 264 seconds]
<angrywombat> atmosx: net?
<angrywombat> why?
<atmosx> angrywombat: why not?
<dtzitz> iron ruby
<angrywombat> also typing out your name is really hard
sshuff|gone is now known as sshuff
<dtzitz> they don't use databases
<atmosx> dtzitz: well you can work around #NET not to use a database
<angrywombat> but i already *have* a data base
<atmosx> angrywombat: maybe visual basic is a good choice for your app.
<angrywombat> i just want to connect to it in ruby
<atmosx> drop it
Trynemjoel has quit [Ping timeout: 250 seconds]
<angrywombat> drop what?
TheHodge has quit [Quit: Connection closed for inactivity]
<angrywombat> the tables?
<eam> angrywombat: what kind of database?
<atmosx> that way you won't have to connect it
<atmosx> the computer
<dtzitz> angrywombat: try psycopsql2
<atmosx> eam: he is trolling
<angrywombat> atmosx: are you a troll?
<eam> atmosx: I'm not sure which of you are, but I'm willing to help him out
<atmosx> angrywombat: depends on the datime
<dtzitz> twist: we're all trolls
ndrei has joined #ruby
<angrywombat> no shit dick tracey
<angrywombat> it's been fun tho
<dtzitz> hahahaha
<baweaver> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
<angrywombat> i gotta say, DylanJ is one helpful guy
<atmosx> eam: he doesn't want help, he is just trolling.
baroquebobcat has quit [Quit: baroquebobcat]
* baweaver whistles and wanders off
graydot has quit [Quit: graydot]
dtzitz has left #ruby [#ruby]
<eam> atmosx: perhaps, but I'm still happy to answer his questions if he has any specific ones
nisstyre has quit [Remote host closed the connection]
celly has joined #ruby
<miah> hi
<eam> I find that's the best approach regardless of whether the question is sincere
<miah> is there a issue?
j_mcnally has joined #ruby
<baweaver> miah: shenanigans
<atmosx> eam: he is all yours, I just pushed the last commit for today.
baroquebobcat has joined #ruby
terlar has quit [Quit: WeeChat 1.2]
mxrguspxrt has joined #ruby
<baweaver> atmosx has details
blackmesa has joined #ruby
<angrywombat> atmosx: you seem luike someone that has been doing this for too long
Trynemjoel has joined #ruby
<shevy> miah came to the rescue
<Mon_Ouie> !ban angrywombat !T 1d
angrywombat was banned on #ruby by ChanServ [angrywombat!*@*]
angrywombat was kicked from #ruby by ChanServ [User is banned from this channel]
symbol has quit [Quit: WeeChat 1.1]
graydot has joined #ruby
<miah> wow that scrollback
<atmosx> baweaver: wombat is an old user, he knows the difference between windows/linux rails/ruby and what not.
<baweaver> more of a "there be shenanigans, probably better have ops paying attention" thing than anything
sinkensabe has quit [Remote host closed the connection]
<atmosx> baweaver: I started helping him but then I realised he was just mocking me.
* baweaver shrugs
<baweaver> figured let the ops sort things out and do what they think is right on it.
apt-get_ has quit [Quit: Quit]
riotjones has joined #ruby
pawnbox has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
danzilio has quit [Quit: My computer has fallen asleep!]
victortyau has joined #ruby
jackjackdripper has joined #ruby
danzilio has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
alveric has joined #ruby
michael_mbp has quit [Excess Flood]
<yorickpeterse> but guys I relate to guys so I'm going to use guys all the time
polpak has quit [Quit: Lost terminal]
<yorickpeterse> gais
riotjones has quit [Ping timeout: 265 seconds]
<yorickpeterse> and clearly atmosx is just a white knight trying to redefine the term for their own benefit
<yorickpeterse> how dare they
DLSteve has quit [Quit: Leaving]
<yorickpeterse> also there's a lot of liquid stuff coming out of my nose and I already used 1 kitchen towel for it
<yorickpeterse> it's really gross
<yorickpeterse> but I guess I gotta take that to #ruby-offtopic, grmbl
Trynemjoel has joined #ruby
michael_mbp has joined #ruby
Rickmast_ has quit [Ping timeout: 272 seconds]
dtzitz has joined #ruby
<atmosx> yorickpeterse: I'm back to regular guy now. Go on do your thing :-)
nahtnam has quit [Quit: Connection closed for inactivity]
bradleyprice has joined #ruby
<yorickpeterse> que?
redjack1964 has joined #ruby
dgutierrez1287 has joined #ruby
apfeluser has quit [Ping timeout: 244 seconds]
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 240 seconds]
dstarh has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Guest50 has joined #ruby
aryaching has joined #ruby
reset has joined #ruby
Oka has joined #ruby
celly has quit [Remote host closed the connection]
Kalov has joined #ruby
Trynemjoel has joined #ruby
bricker has quit [Quit: Lost terminal]
dgutierrez1287 has quit [Ping timeout: 252 seconds]
bb010g has joined #ruby
mleung has quit [Quit: mleung]
dc has quit []
baweaver has quit [Remote host closed the connection]
ascarter has joined #ruby
durazno has joined #ruby
Kalov has quit [Read error: Connection reset by peer]
durazno is now known as Kalov
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
avitzurel has joined #ruby
momomomomo has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
bzb has joined #ruby
Guest50 is now known as devmitch
sinkensabe has joined #ruby
krz has joined #ruby
blue_deref has joined #ruby
Rickmasta has joined #ruby
<devmitch> Is there a more accepted way of implementing success/error callbacks for a method than this (or some similar flavor)? http://www.mattsears.com/articles/2011/11/27/ruby-blocks-as-dynamic-callbacks
momomomomo has quit [Ping timeout: 255 seconds]
theery has quit [Remote host closed the connection]
bffff_ has quit [Quit: Connection closed for inactivity]
failshell has joined #ruby
gheegh has quit [Ping timeout: 240 seconds]
aknl has joined #ruby
blaines has joined #ruby
JoshL has quit []
<aknl> Is there a ruby construct that will set a variable to x, or y if x is not defined?
<Valeness> Ternary Operators in Ruby?
Zai00 has joined #ruby
<dfockler> Valeness: yes
failshell has quit [Ping timeout: 260 seconds]
<Mon_Ouie> You can always use the `defined?' keyword, but 'x could be either defined or not defined' is something that would normally only make sense in a templating language (such as ERB)
<aknl> In the context of a config file. If something was set in the config, set foo to that. Otherwise, set foo to bar
<Valeness> dfockler: Ok, then that should solve aknl's problem right?
Trynemjoel has quit [Ping timeout: 245 seconds]
<dfockler> x.defined? ? yes : no
umgrosscol has quit [Ping timeout: 246 seconds]
<Mon_Ouie> Do you mean `defined?(x)'?
<diegoviola> I have this code: @solution.fill_field(field[:label], :with => field[:value]) -- how should I define my fill_field() function so I can build a hash with this label/value?
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vdamewood has quit [Quit: Life beckons.]
Trynemjoel has joined #ruby
<diegoviola> if I def fill_field(label, value) my value is a hash then, so I'm not sure
<Mon_Ouie> aknl: I'm not sure what you mean, are you using local variables in your config file? Can you show an example?
blaines has joined #ruby
celly has joined #ruby
Muhannad has joined #ruby
<hanmac> devmitch: its interesting while not perfect, i think it can be improved but is an interesting begin to work with
EllisTAA has quit [Quit: EllisTAA]
<aknl> Mon_Ouie: say I have a directory I want to use. I might set that in a config.yml, but I'd like to default to directory $BAR
<shevy> perhaps he means x = y || z
<Mon_Ouie> So you don't have a set of variables, but a hash table, right?
<devmitch> hanmac: I know I could just use a slightly less dynamic approach and just have a couple of block arguments, which I may end up doing. It's a clever solution though.
RobertBirnie has joined #ruby
akkad has quit [Excess Flood]
<aknl> Mon_Ouie: I don't know if it's a hash table in Ruby, but I'm accessing as Rails.conifguration.foo.bar
<aknl> there is no bar, I'd like to set the variable to a default
EllisTAA has joined #ruby
<hanmac> devmitch: why i mean it can be better is because it does allways create a class object, ... imo that isnt often needed and can be turned into a more generic variant
jhack has joined #ruby
relix has joined #ruby
<jhack> hey
yh has joined #ruby
schaerli has joined #ruby
hashrocket has joined #ruby
<diegoviola> any ideas?
jenrzzz_ has quit [Ping timeout: 246 seconds]
<jhack> So i have three classes, a game class, human class, and a computer class. How do i access @colors which is in the game classes initialize in a method in the computer class?
<devmitch> hanmac: Meaning having a class that is more specific to the concern (i.e. not using the generic Class class), or meaning implementing a way that does not have to instantiate _any_ class?
dtzitz has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mdcox has joined #ruby
banister has joined #ruby
vdamewood has joined #ruby
<hanmac> devmitch: second one, use a more generic class, so you dont need to create a new class each time you want to use the function
angrywombat has joined #ruby
angrywombat was kicked from #ruby by ChanServ [User is banned from this channel]
<devmitch> hanmac: Gotcha. I'll look into that approach.
ascarter_ has joined #ruby
<Mon_Ouie> Oh, how does this work?
Ilyes512 has joined #ruby
<havenwood> jhack: In Game you do an `attr_reader :colors` to create a #colors instance method to expose the @colors instance variable to the outside.
<havenwood> jhack: Shorthand for: def colors; @colors end
<jhack> would attr_accessor be okay ?
<Ox0dea> >> def true.-(a, &b) a[] end; def false.-(a, &b) b[] end; (1 == 1).--> { p :ok } { fail Math } # hanmac
<ruboto> Ox0dea # => :ok ...check link for more (https://eval.in/411267)
<havenwood> jhack: That would also create the setter method.
phutchins has quit [Ping timeout: 250 seconds]
schaerli has quit [Remote host closed the connection]
<jhack> I'm getting an error -> undefined local variable or method `colors' for #<Computer:0x00000000bede58 @answer=[], @guess=[]> (NameError)
<havenwood> diegoviola: Show the data you have and what you want?
Trynemjoel has quit [Ping timeout: 250 seconds]
devoldmx has quit [Remote host closed the connection]
ascarter has quit [Ping timeout: 244 seconds]
<BraddPitt> jhack can you post your Computer class?
akkad has joined #ruby
<havenwood> jhack: Sounds like you're trying to use a bareword `colors` when you mean the instance variable `@colors`.
devoldmx has joined #ruby
Lewix has joined #ruby
<Lewix> Hi guys
<BraddPitt> oh, he said @colors is an instance variable of Game
<Lewix> how have you been pontiki
Trynemjoel has joined #ruby
last_staff has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
angrywombat_ has joined #ruby
angrywombat_ was kicked from #ruby by ChanServ [User is banned from this channel]
<BraddPitt> so you would need to create a Game object and then call .colors on it like so jhack Game.new().colors
<havenwood> BraddPitt: ah, good catch :)
<jhack> Yeah, i've changed it to @colors in my Computer class, but still getting an error -> in `make_guess': undefined method `sample' for nil:NilClass (NoMethodError)
j4cknewt_ has quit [Remote host closed the connection]
alveric has quit [Ping timeout: 264 seconds]
<BraddPitt> do you have attr_reader (or attr_accessor) for that variable, jhack ?
Jackneill has joined #ruby
<jhack> BraddPitt: i have attr_accessor
robbyoconnor has quit [Ping timeout: 260 seconds]
<BraddPitt> can you post Computer and Game classes?
<jhack> yeah
<BraddPitt> thanks
j4cknewt has joined #ruby
kies^ has quit [Ping timeout: 244 seconds]
alveric has joined #ruby
<havenwood> diegoviola: I don't know what a `field[:label]` or `field[:value]` is or what return value you want from them.
JimmyNeutron has quit [Remote host closed the connection]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
umgrosscol has joined #ruby
<BraddPitt> so on line 70 jhack, you are calling @colors without referencing the Mastermind class
<BraddPitt> so Ruby thinks there is a @colors variable for the current class scope (Computer)
<havenwood> diegoviola: Given `label` of x and `value` of y what z return value you do want from that method? Have some examples with dummy or better yet real data?
<BraddPitt> in order to call Mastermind's @colors, you need to make an instance of that object and then call .colors on it
Iskarlar has joined #ruby
<jhack> BraddPitt: so i'd do something like @mastermind = Mastermind.new ?
<jhack> and then @mastermind.colors?
<BraddPitt> exactly!
<jhack> What if i made colors a constant?
Iskarlar has quit [Max SendQ exceeded]
<jhack> would i still need to do this?
Trynemjoel has quit [Ping timeout: 245 seconds]
<BraddPitt> a constant in which class?
<BraddPitt> if your colors array never changes, it may be smart to make it a constant
not_angry_wom_ba has joined #ruby
<jhack> If i put @mastermind = Mastermind.new in my initialize, itll give me an error
<not_angry_wom_ba> hey guys, i have a question about odbc
<jhack> BraddPitt: yeah, it's a constant array
bradleyprice has quit [Remote host closed the connection]
<BraddPitt> or even better: a module that contains the array constant and then 'include' that module in your Computer class
Iskarlar has joined #ruby
<BraddPitt> and every other class that needs access to it
omegamike has quit [Remote host closed the connection]
<diegoviola> havenwood: https://gist.github.com/diegoviola/2abaecf38fa2d0829f55 <-- this is the data I have but I'm not really familiar with cucumber
gwendall has quit [Remote host closed the connection]
<jhack> BraddPitt: if i were to make colors a constant, would i still need to do @mastermind = Mastermind.new ?
<BraddPitt> no
gwendall has joined #ruby
<BraddPitt> well
RobertBirnie has quit [Ping timeout: 246 seconds]
<BraddPitt> it depends on where your constant lives
mxrguspxrt has joined #ruby
<jhack> constant will live in the Mastermind class
fantazo has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
<diegoviola> havenwood: I just want a hash from that method, with label as key and values, but my value is already a hash
dopie has joined #ruby
<BraddPitt> jhack I would advise you to make a Colors module that contains your constant
<jhack> BraddPitt: okay, will do that
<BraddPitt> and then include it where needed
swgillespie has joined #ruby
<havenwood> diegoviola: I don't use vegetables for testing. Hem, have just an example or two of what label and value might be and what that return value would look like?
<BraddPitt> It will keep your Mastermind class much cleaner
mdcox has quit [Quit: ZNC - http://znc.in]
RobertBirnie has joined #ruby
<diegoviola> havenwood: yeah I'm not liking cucumber either
not_angry_wom_ba is now known as happyworfrat
<happyworfrat> can someone advice me what "No such module: ODBC" means?
radgeRayden__ has joined #ruby
<jhack> BraddPitt: okay, will do that
<BraddPitt> ODBC is a database connector, happyworfrat
radgeRayden__ has quit [Client Quit]
<BraddPitt> I imagine your project cannot find it
<happyworfrat> yes im trying to connect to my access data base
<BraddPitt> can you post a code example please?
pawnbox has quit [Remote host closed the connection]
ascarter has joined #ruby
gwendall has quit [Ping timeout: 272 seconds]
<happyworfrat> ok
<happyworfrat> # SQLite version 3.x # gem install sqlite3
<happyworfrat> # Ensure the SQLite 3 gem is defined in your Gemfile # gem 'sqlite3'
<happyworfrat> # default: &default
<happyworfrat> adapter: sqlite3 pool: 5
<BraddPitt> a gist would be preferrable next time, please
<happyworfrat> timeout: 5000
Trynemjoel has quit [Ping timeout: 250 seconds]
<happyworfrat> i did tell you the gist, i can't conect to obc
<Ox0dea> ?gist happyworfrat
<ruboto> happyworfrat, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<BraddPitt> gist = https://gist.github.com/
<happyworfrat> the title says that i need to keep pastes under 2 lines?
<BraddPitt> yes
radgeRayden_ has quit [Ping timeout: 246 seconds]
radgeRayden has quit [Ping timeout: 246 seconds]
ascarter has quit [Max SendQ exceeded]
pengin has quit [Remote host closed the connection]
<happyworfrat> oh wow!!!
whiteline has quit [Quit: Leaving]
<happyworfrat> this is what you meant? ive never seen this before
<happyworfrat> ok! let me post a gist of my code ;)
ascarter has joined #ruby
Trynemjoel has joined #ruby
ascarter_ has quit [Ping timeout: 252 seconds]
DoubleMalt has joined #ruby
safeforge has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<happyworfrat> ok, here is my gist
<happyworfrat> :)~
khebbie has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yh has quit [Ping timeout: 272 seconds]
<Ox0dea> happyworfrat: There's no mention of ODBC in that YAML file.
<BraddPitt> happyworfrat is this a rails application?
<happyworfrat> i know, i dont know why
<happyworfrat> yes!!
DexterLB has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 245 seconds]
apfeluser has joined #ruby
<Mon_Ouie> ?rails happyworfrat
<ruboto> happyworfrat, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
banister has joined #ruby
<happyworfrat> but this is ruby
<happyworfrat> i want to learn rubby
celly has quit [Remote host closed the connection]
<happyworfrat> ruby* ha ha sorry i cant type sometimes
bricker has joined #ruby
<Mon_Ouie> But you're using Rails and knowledge of Rails seems to be required to fully answer your question
yh has joined #ruby
yqt has joined #ruby
<happyworfrat> ohj
<happyworfrat> so ruby is different from rails?
<Ox0dea> This guy.
<shevy> rails is using ruby
<happyworfrat> is ruby on rails like a new version or something?
<shevy> ruby is not using rails
<shevy> and somehow your nick reminds me of someone
<Mon_Ouie> Ruby is a programming language, Rails is a web framework written in Ruby
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> happy-worf-rat
<happyworfrat> idk guys im just trying to make a lyrics website
<shevy> angry-wombat
<happyworfrat> yes, i was angrywombat
<shevy> you make Mon_Ouie very angry!
<happyworfrat> mon ouie couldnt figure out how to unban me
<happyworfrat> he said i was unbanned but apparently your bot is broken or something i dont know
<Mon_Ouie> Also you may find it difficult to learn how to use Rails without getting familiar with the language before you do that
<happyworfrat> ok so how can i get started with making this work? i guess i see how rails is different
<happyworfrat> yeah i don't have to use that
Trynemjoel has joined #ruby
<havenwood> happyworfrat: Rails is one of many Rack adapters. Sinatra is another popular Rack adapter. Two more-recently created Rack adapters to consider are Lotus and Roda.
<happyworfrat> my friend's b4rother said ruby was a great language to learn if i wanted to make games when i get out of college
DexterLB has joined #ruby
solars has quit [Ping timeout: 244 seconds]
<happyworfrat> what's rack in all of that mean? is that the data base side of things
<happyworfrat> i don't know guys im so confused
bigkevmcd has quit [Remote host closed the connection]
<jhack> BraddPitt: awesome, i got it working. Thanks a lot!
jgpawletko has quit [Quit: jgpawletko]
<havenwood> happyworfrat: http://rack.github.io
<havenwood> happyworfrat: Try making a Rack app and running it with: rackup
bigkevmcd has joined #ruby
<havenwood> happyworfrat: Just take a `gem install rack` and a few lines. Give it a try.
<happyworfrat> ok cooL!
<yorickpeterse> chrisseaton: you're right, that LRU code is fucked
bradleyprice has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> thankfully just setting @owner to nil should solve it, as far as I can tell at least
<chrisseaton> Yes I think so
<yorickpeterse> would be nice if there was something like rspec but for asserting thread safety :/
<chrisseaton> A race detector?
platosha_ has quit [Read error: Connection reset by peer]
<happyworfrat> i keep getting a error
<yorickpeterse> chrisseaton: I suppose so
jcla1 has joined #ruby
<happyworfrat> does anyone know what i am doing rong?
<happyworfrat> wrong* he he
Iskarlar has quit [Quit: Textual IRC Client: www.textualapp.com]
platosha_ has joined #ruby
<BraddPitt> np jhack, glad I could help
<chrisseaton> There is a tool like that in one of the rubybib.org papers in parallelism
<yorickpeterse> chrisseaton: hmmm
kies^ has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> yorickpeterse: You could always wrap ThreadSanitizer?
<Mon_Ouie> happyworfrat: How did you install Ruby?
jcla1 has quit [Quit: leaving]
<BraddPitt> w4
banister has joined #ruby
<BraddPitt> oops
Trynemjoel has quit [Ping timeout: 245 seconds]
<happyworfrat> a vc i think
<happyworfrat> vm* ha ha i was thinking cvirtual computer
<yorickpeterse> Ox0dea: what now?
celly has joined #ruby
<Mon_Ouie> Then commands such as `gem install rack` will have to be executed inside the VM where you installed Ruby
<happyworfrat> ok
pengin has joined #ruby
rbennacer has joined #ruby
<happyworfrat> Mon_Ouie: thanks for you help so far
<Ox0dea> yorickpeterse: I was referring to https://code.google.com/p/thread-sanitizer/, but I suppose wrapping it wouldn't necessarily constitute race detection.
Trynemjoel has joined #ruby
baweaver has joined #ruby
<yorickpeterse> ah
diego3 has joined #ruby
codecop has quit [Remote host closed the connection]
Billias has quit [Ping timeout: 246 seconds]
<happyworfrat> i was thinking, is this because i didnt install windows 10 yet? my friend's brother told me not to install it yet because of driving errors with my hardwares
dseitz has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
Silox| has quit [Quit: Connection closed for inactivity]
<happyworfrat> this virtual machine is taking long time to turn on
<chrisseaton> yorickpeterse: one simple rule is usually enough - don't read or write shared variables except in a synchronised block
gamename has quit [Remote host closed the connection]
doertedev has quit [Quit: Lost terminal]
theery has joined #ruby
<chrisseaton> If you think you've found a clever way around that - like this owner thing or double checked locking - just assume it's wrong as it probably is and use synchronisation
safeforge has quit [Remote host closed the connection]
gamename has joined #ruby
<Ox0dea> chrisseaton: Who synchronizes the synchronizers?
<happyworfrat> ok i got the rack installed
<happyworfrat> did havenwood leave? she was helping me with this part
silkfox has joined #ruby
hashrocket has joined #ruby
<havenwood> happyworfrat: Now for your config.ru file.
<yorickpeterse> chrisseaton: In this particular case I hadn't considered threads racing _after_ the synchronize call
kadoppe has quit [Ping timeout: 244 seconds]
<yorickpeterse> granted monitormixin takes care of this I probably just wasn't paying attention when implementing this
Iskarlar has joined #ruby
<havenwood> happyworfrat: Installing the Rack gem gives you the `rackup` command. Now you just need a Rack config file named `config.ru` to run.
baweaver has quit [Ping timeout: 244 seconds]
dented42 has joined #ruby
<happyworfrat> ok
Billias has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<happyworfrat> it says my config isn't found??? i thought this made my config
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<havenwood> happyworfrat: You have to create the config.ru file and add it's contents. That's the making the Rack app part.
bigbadbear has quit [Ping timeout: 246 seconds]
<happyworfrat> oh
<happyworfrat> i will be right back!
<happyworfrat> i have to use the rest room
kadoppe has joined #ruby
jgpawletko has joined #ruby
khebbie has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
tkuchiki has joined #ruby
graydot has joined #ruby
<Ox0dea> I'm having trouble applying Hanlon's razor here.
khebbie has joined #ruby
baroquebobcat has joined #ruby
gamename has quit [Ping timeout: 250 seconds]
rjno has quit []
diego1 has joined #ruby
<Ox0dea> >> [*@ages_of_people_who_tell_the_channel_they_have_to_shit].any? { |x| x > 12 }
<ruboto> Ox0dea # => false (https://eval.in/411299)
Trynemjoel has quit [Ping timeout: 250 seconds]
diego3 has quit [Ping timeout: 272 seconds]
Trynemjoel has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
ArchRogem has quit [Quit: Connection closed for inactivity]
jonee has quit [Ping timeout: 260 seconds]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
Mendenhall has joined #ruby
khebbie has quit [Ping timeout: 272 seconds]
<happyworfrat> why is everyone so mean in here?
<happyworfrat> i just want to learn
<happyworfrat> :3
graydot has quit [Quit: graydot]
<happyworfrat> ?guys
<ruboto> You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
<happyworfrat> ?faggots
<ruboto> I don't know anything about faggots
<happyworfrat> yes you do
<havenwood> happyworfrat: No trolling.
<happyworfrat> everyone in here is one
<havenwood> !kick happyworfrat No trolling.
happyworfrat was kicked from #ruby by ruboto [No trolling.]
<Ox0dea> That took long enough.
icedp has quit [Ping timeout: 252 seconds]
graydot has joined #ruby
freerobby has quit [Quit: Leaving.]
happyworfrat has joined #ruby
<happyworfrat> sorry!
lilnero has joined #ruby
<happyworfrat> is it smart to use my sql?
robbyoconnor has joined #ruby
<happyworfrat> i've been googing around and it doesn't seem like odbc should work with ruby
<happyworfrat> so maybe i am just off track
chills42 has quit [Remote host closed the connection]
freerobby has joined #ruby
icedp has joined #ruby
Rollabunna has quit [Remote host closed the connection]
CustosLimen has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hashrocket has joined #ruby
failshell has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
bzb has quit [Quit: I hate to quit but my bladder's full. :-(]
DoubleMalt has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
blaines has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
frem has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
<havenwood> happyworfrat: A parting note for the day, the Sequel gem has an ODBC adapter.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xaitec has quit [Read error: Connection reset by peer]
<happyworfrat> oh neat!
podman has quit [Ping timeout: 240 seconds]
<happyworfrat> i was trying to do migrate but that wasn't working either
devoldmx has quit [Remote host closed the connection]
<happyworfrat> i even made some tables in the migrate file thing
devoldmx has joined #ruby
sdwrage has joined #ruby
frem has joined #ruby
baroquebobcat has joined #ruby
Musashi007 has joined #ruby
<havenwood> !ban happyworfrat !T 1d Trolling.
happyworfrat was banned on #ruby by ChanServ [happyworfrat!*@*]
happyworfrat was kicked from #ruby by ChanServ [Banned: Trolling.]
nhhagen has quit [Remote host closed the connection]
Mendenhall has quit [Ping timeout: 244 seconds]
<Mon_Ouie> Okay, now *I* have a hard time applying hanlon's rasor
podman has joined #ruby
tercenya has joined #ruby
yb_drowe has joined #ruby
yb_drowe has quit [Client Quit]
yfeldblum has joined #ruby
eggoez has quit [Ping timeout: 240 seconds]
<adaedra> o.O
celly has quit [Remote host closed the connection]
vdamewood has quit [Ping timeout: 260 seconds]
gwendall has joined #ruby
<adaedra> wow, read the backlog
aknl has quit [Quit: Page closed]
<adaedra> that's... impressive
<Ox0dea> It was fed by several different people for, like, half an hour. :/
qwerbicman_ has joined #ruby
<qwerbicman_> heyo
casadei_ has quit [Remote host closed the connection]
<havenwood> qwerbicman_: hi!
<qwerbicman_> anyone familiar with getting an instance variable from an object
<qwerbicman_> symbols.inspect returns [#<Zbar::Symbol:0x10147c668 @addon="", @data="9876543210128", @location= [...], @quality=15, @symbology="EAN-13">]
<qwerbicman_> trying to get @data from there
<Ox0dea> qwerbicman_: symbols.instance_variable_get(:@quality)
jjj123 is now known as jtdoncas
<Mon_Ouie> Well, symbols[0].instance_variable_get(…)
<Mon_Ouie> (most likely, anyway)
<qwerbicman_> first time seeing something like that
<Ox0dea> Something like #instance_variable_get?
gamename has joined #ruby
eggoez has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
celly has joined #ruby
<Mon_Ouie> It's mostly useful for metaprogramming and debugging. Normally the way you access another object's instance variables is by having defined a reader method on that object (e.g. attr_reader :data in that object's class)
gwendall has quit [Ping timeout: 265 seconds]
<qwerbicman_> yes
H3ALY has joined #ruby
Trynemjoel has joined #ruby
gheegh has joined #ruby
H3ALY has left #ruby ["Leaving"]
graydot has quit [Quit: graydot]
Ilyes512 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
s2013 has joined #ruby
qwerbicman_ has quit [Quit: Page closed]
netsurge has joined #ruby
Xaitec has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
pengin has quit [Remote host closed the connection]
netsurge has left #ruby [#ruby]
baweaver has joined #ruby
gelinas260 has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 260 seconds]
mjuszczak has joined #ruby
<jhack> I am encountering another problem, I may need to look over OOP again, I can't seem to access @answer from my Computer class -> https://gist.github.com/jhack32/e647cbb7369c5ee5ce01
<jhack> I have tried adding @computer = Computer.new into my Humans initialize
diegoviola has joined #ruby
pfsh has quit [Quit: Page closed]
devmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Muhannad has quit [Ping timeout: 265 seconds]
solars has joined #ruby
casadei_ has joined #ruby
<BraddPitt> jhack how are you trying to access @answer?
<jhack> @answer is supposed to contain the answer that the Computer class has created
ascarter_ has joined #ruby
<eam> jhack: Computer needs to share access to @answer so Humans can interact with it
matcouto has joined #ruby
<jhack> how would i do that? I have attr_accessor :answer under the Computer class
<eam> jhack: you're doing that with attr_accessor :answer, but then the way you access it is computer_object.answer
<eam> @answer only works inside Computer
matcouto has quit [Client Quit]
Guest50 has joined #ruby
matcouto has joined #ruby
<eam> attr_accessor is syntactic sugar for making a method called "answer" which returns the value of @answer when called
<jhack> So i would need to add a @computer_object = Computer.new into my Human class initialize?
pdoherty has joined #ruby
<BraddPitt> yes jhack
<BraddPitt> then you could call @computer_object.answer
matcouto has quit [Client Quit]
<jhack> hm
<jhack> okay
<jhack> Is there another way i can do this?
<jhack> to access it?
diegoviola has quit [Changing host]
diegoviola has joined #ruby
dudedudeman has quit [Ping timeout: 272 seconds]
shellie_ has joined #ruby
jpfuentes2 has joined #ruby
<jhack> after i have added the Computer.new into my Human class, the 'stack level is too deep'
matcouto has joined #ruby
<BraddPitt> you could make a class variable in Computer class
ascarter has quit [Ping timeout: 265 seconds]
EllisTAA has quit [Quit: EllisTAA]
matcouto has quit [Client Quit]
<BraddPitt> and then have a self.get_answer method in Computer that returns the @@answer variable
graydot has joined #ruby
ylg has quit []
<jhack> mm ok
graydot has quit [Client Quit]
matcouto has joined #ruby
EllisTAA has joined #ruby
matcouto has quit [Client Quit]
matcouto has joined #ruby
silkfox has quit [Read error: Connection reset by peer]
matcouto has quit [Client Quit]
j4cknewt has quit [Remote host closed the connection]
silkfox has joined #ruby
matcouto has joined #ruby
jenrzzz has joined #ruby
matcouto has quit [Client Quit]
celly has quit [Remote host closed the connection]
j4cknewt has joined #ruby
matcouto has joined #ruby
j_mcnally has joined #ruby
<jhack> I'm now getting a undefined method `get_answer' for Computer:Class (NoMethodError)
matcouto has quit [Client Quit]
<jhack> oh wait
ishahnaz has quit []
ponga has quit [Quit: Connection closed for inactivity]
<jhack> nevermind, i forgot to do self.get_answer
<jhack> sweet
devoldmx has quit [Remote host closed the connection]
<jhack> thanks!!
matcouto has joined #ruby
matcouto has quit [Client Quit]
devoldmx has joined #ruby
matcouto has joined #ruby
rbennacer has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
matcouto has quit [Client Quit]
devoldmx has joined #ruby
ap4y has joined #ruby
jeremy04_ has quit [Remote host closed the connection]
theery has quit [Remote host closed the connection]
msnyon_ has joined #ruby
msnyon has quit [Read error: Connection reset by peer]
<symm-> is ruby 1.9.3 a modern enough version?
Jackneill has quit [Ping timeout: 240 seconds]
msnyon_ has quit [Remote host closed the connection]
felltir has joined #ruby
<symm-> the examples here aren't all working for me http://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html
theery has joined #ruby
<symm-> and I'm wondering if its because my ruby is too old?
<BraddPitt> because that is 2.0.0 documentation
<BraddPitt> so, to answer your question, yes
<Ox0dea> symm-: 1.9.3 has been EOL'd, and is thus "dead".
<symm-> I see.. thanks
casadei_ has quit [Remote host closed the connection]
dseitz has quit [Quit: updating]
<adaedra> FYI We're at 2.2.2
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kyuujitsu has joined #ruby
<symm-> "If you don’t know what version to install and you’re getting started with Ruby, we recommend you use Ruby 2.1.X installers."
Trynemjoel has quit [Ping timeout: 245 seconds]
<symm-> should I go for 2.1.6 or 2.2.2?
<BraddPitt> 2.2.2
<symm-> thanks
cpruitt has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
<havenwood> symm-: With Windows thought... 2.1.6 probably.
celly has joined #ruby
<havenwood> though*
Trynemjoel has joined #ruby
<symm-> yeah I'm on windows
<havenwood> symm-: 32-bit 2.1.6
<symm-> thanks
theery has quit [Ping timeout: 260 seconds]
catbusters has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
yfeldblum has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
baroquebobcat has joined #ruby
Trynemjoel has joined #ruby
blue_deref has quit [Quit: bbn]
pdoherty has quit [Quit: Leaving]
rbennacer has joined #ruby
djbkd has joined #ruby
dseitz has joined #ruby
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
celly has quit []
yh has quit [Ping timeout: 265 seconds]
kraljev11 has joined #ruby
kraljev11 has quit [Remote host closed the connection]
bmurt has quit []
kraljev11 has joined #ruby
avitzure_ has joined #ruby
rideh has quit [Ping timeout: 250 seconds]
kraljev11 has quit [Client Quit]
kraljev11 has joined #ruby
kraljev11 has quit [Client Quit]
tuelz has joined #ruby
Musashi007 has joined #ruby
Lucky__ has joined #ruby
graydot has joined #ruby
kraljev11 has joined #ruby
skade has joined #ruby
kraljev11 has quit [Client Quit]
Igorshp has joined #ruby
kraljev11 has joined #ruby
kraljev11 has quit [Remote host closed the connection]
<jhack> anyone attending any software dev bootcamps? or any knowledge on em?
bohallor has quit [Ping timeout: 260 seconds]
avitzurel has quit [Ping timeout: 250 seconds]
dgutierrez1287 has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Moeh has joined #ruby
rubytor_ has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
<Moeh> Hello! What I would like to do is to connect to a database using the pg gem, export this database and then import it with a different name in another database on another server. Can anyone give me some pointers how to achieve that?
jenrzzz has quit [Ping timeout: 255 seconds]
devoldmx has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<Sou|cutter> You should probably just use pgdump
rodfersou has quit [Quit: leaving]
j4cknewt has joined #ruby
<Sou|cutter> why does it have to be using the pg gem?
polpak has joined #ruby
swgillespie has joined #ruby
j4cknewt has quit [Remote host closed the connection]
rakm has joined #ruby
Valeness has left #ruby ["Leaving"]
Rollabunna has joined #ruby
FernandoBasso has joined #ruby
_seanc_ has joined #ruby
failshell has quit []
C1V0 has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
C1V0 has quit [Client Quit]
polpak has quit [Client Quit]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<Moeh> Doesn't have to be, but would be nice because I already use it to establish the connection to the remote server
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
swgillespie has quit [Ping timeout: 250 seconds]
lilnero has quit [Ping timeout: 246 seconds]
dudedudeman has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwendall has joined #ruby
jpfuentes2 has joined #ruby
ldnunes has quit [Remote host closed the connection]
theery has joined #ruby
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
NeverDie has joined #ruby
Igorshp has quit [Remote host closed the connection]
dseitz has joined #ruby
skade has quit [Read error: Connection reset by peer]
tinyhippo has joined #ruby
jpfuentes2 has quit [Ping timeout: 264 seconds]
EllisTAA has quit [Quit: EllisTAA]
minotep has quit [Ping timeout: 244 seconds]
skade has joined #ruby
baweaver has joined #ruby
skade has quit [Read error: Connection reset by peer]
sepp2k has quit [Read error: Connection reset by peer]
EllisTAA has joined #ruby
skade has joined #ruby
<havenwood> Moeh: +1 pgdump and just scp it over
solars has quit [Ping timeout: 246 seconds]
<tinyhippo> how can I make sure that my gems are discoverable by a ruby script when running a script via env -i
_ht has quit [Quit: Konversation terminated!]
Mon_Ouie has quit [Ping timeout: 240 seconds]
skade has quit [Read error: Connection reset by peer]
farn has quit [Remote host closed the connection]
skade has joined #ruby
<havenwood> tinyhippo: Can you reset env vars or you want it to work with default PATH?
<havenwood> tinyhippo: Typically you source something that sets the env vars if you drop env.
<tinyhippo> havenwood: I want the script to be executable via Nagios which executes with no environment - I'm not sure how that translates to the options you asked
_seanc_ has quit [Quit: _seanc_]
minotep has joined #ruby
<havenwood> tinyhippo: How'd you install Ruby?
<tinyhippo> havenwood: rvm
<havenwood> tinyhippo: Then use wrappers. RVM creates a wrapper that sources a file containing the correct env vars when you run the wrapper.
pengin has joined #ruby
Lewix has quit [Remote host closed the connection]
<havenwood> tinyhippo: See: https://rvm.io/deployment/init-d
tmtwd has quit [Ping timeout: 260 seconds]
<havenwood> tinyhippo: It ships with RVM: https://github.com/rvm/gem-wrappers#readme
htmldrum has joined #ruby
apofis has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
<tinyhippo> thanks for the info havenwood
<havenwood> tinyhippo: you're welcome
lee_ has quit [Ping timeout: 244 seconds]
jgpawletko has joined #ruby
graydot has quit [Quit: graydot]
<tinyhippo> havenwood: awesome, it works - thanks! ^_^
<havenwood> tinyhippo: \o/
tinyhippo has left #ruby [#ruby]
Iskarlar has joined #ruby
j4cknewt has joined #ruby
benlovell has joined #ruby
pietr0 has quit [Ping timeout: 255 seconds]
farn has joined #ruby
iamayam has quit [Ping timeout: 260 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
omegamike has joined #ruby
graydot has joined #ruby
umgrosscol has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.2]
graydot has quit [Client Quit]
maq has joined #ruby
iamayam has joined #ruby
sinkensabe has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 255 seconds]
sinkensabe has joined #ruby
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
nofxx has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
lilnero has joined #ruby
lilnero has quit [Client Quit]
howdoi has quit [Quit: Connection closed for inactivity]
jtdoncas has quit [Ping timeout: 264 seconds]
jhack has quit [Quit: jhack]
qhartman has joined #ruby
silkfox has quit [Ping timeout: 260 seconds]
rbennacer has quit [Remote host closed the connection]
s2013 has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atomical has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sshuff is now known as sshuff|gone
rbennacer has joined #ruby
leesharma has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hashrocket has joined #ruby
banister has joined #ruby
opalraava has joined #ruby
casadei_ has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
dc has joined #ruby
prettiestPony11 has joined #ruby
danzilio has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei_ has quit [Ping timeout: 272 seconds]
felltir has quit []
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
paulcsmith has quit [Quit: Be back later ...]
baroquebobcat has joined #ruby
Milencho has joined #ruby
devbug has joined #ruby
arup_r has quit [Quit: Leaving]
skade has quit [Read error: No route to host]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
msnyon has joined #ruby
skade has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
pengin has quit [Remote host closed the connection]
leafybasil has quit []
leafybasil has joined #ruby
decoponio has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
Kyuujitsu has joined #ruby
FooMunki_ has joined #ruby
victortyau has quit [Quit: Leaving]
s00pcan has quit [Ping timeout: 256 seconds]
<exadeci> With rspec how could I call a controller action only once ? before(:all) doesn't work because it's too early but I can't be calling the action too many times because it contacts an API
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has joined #ruby
EllisTAA has joined #ruby
<Ox0dea> exadeci: "Too early"?
s2013 has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
<exadeci> Ox0dea: @route is nil
Kyuujitsu has joined #ruby
freerobby has quit [Quit: Leaving.]
EllisTAA has quit [Client Quit]
axl_ has quit [Quit: axl_]
skade has quit [Quit: Computer has gone to sleep.]
Iskarlar has joined #ruby
casadei_ has joined #ruby
EllisTAA has joined #ruby
sinkensabe has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
<cscheib> anyone know how to turn on Net::SMTP debugging with the mikel/mail ruby gem? not sure how to pass set_debug_output down through the Mail wrapper for Net::SMTP
sinkensabe has joined #ruby
<Ox0dea> exadeci: Order-dependent tests are generally a no-no.
jenrzzz has joined #ruby
<Ox0dea> Consider mocking the API call and/or integration tests.
SHyx0rmZ has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
baweaver has quit [Remote host closed the connection]
<exadeci> Ox0dea: It's not order dependent but I test severals informations in the returned content, I'll go with mocking thanks
<Ox0dea> cscheib: How does mikel/mail come into the picture?
<cscheib> that's acutally just a snippet of the code... there's a require 'mail' earlier
<cscheib> it's a wrapper to generate the message, and do the Net::SMTP stuff
sinkensabe has quit [Ping timeout: 260 seconds]
<Ox0dea> cscheib: Sure, but if you've got an SMTP object, you can just call #set_debug_output on it, no?
<cscheib> I was use Net::SMTP before, but it doesn't provide any methods to actually format the mail
<cscheib> well, I can't call mail.set_debug_output
<cscheib> I'm trying to figure out where to set it at.
<cscheib> very new to ruby, and passing this stuff througha wrapper is foreign to me
Trynemjoel has quit [Ping timeout: 245 seconds]
whippythellama has quit [Quit: WeeChat 1.2]
bazbing80 has joined #ruby
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
devdazed has quit [Ping timeout: 250 seconds]
<Ox0dea> cscheib: mikel/mail proxies to Net::SMTP where appropriate, so you should have a Net::SMTP instance.
<Ox0dea> On which you should be able to call #set_debug_output.
<cscheib> and I'm trying to figure out how to access said instance
sphex has quit [Ping timeout: 244 seconds]
symm- has quit [Quit: Leaving...]
gard has quit [Ping timeout: 250 seconds]
devoldmx has quit [Remote host closed the connection]
mkosaki has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cscheib> just not sure how to get at the net::smtp instance he's starting in there from the "mail" instance I've created
skade has joined #ruby
Lewix has joined #ruby
<Lewix> Hi people
nolic has joined #ruby
<Ox0dea> cscheib: It does seem that the gem makes this harder than it ought to be. :/
rbennacer has quit [Remote host closed the connection]
<cscheib> if you're aware of a better gem, I'd be plenty happy to switch
<cscheib> I'm not particularly attached to this one
<cscheib> it just seemed to be the most popular one
lannonbr has quit [Quit: WeeChat 1.2]
Lucky__ has joined #ruby
<Ox0dea> cscheib: I suppose you could try ripping out mikel/mail's formatting code and use it in conjunction with Net::SMTP?
<cscheib> that's a thought I've had
<Ox0dea> It's a great gem, as far as I can tell, but it seems opinionated in what deserves to be debug-printed.
<cscheib> I'm assuming the message object he creates doesn't need any extra mojo to be sent as the body of a message
dc has quit [Remote host closed the connection]
omegamike has quit [Remote host closed the connection]
<cscheib> s/body/full content/
<cscheib> cause the stuff I've output to STDOUT has looked valid
EllisTAA has quit [Quit: EllisTAA]
nolic has quit [Client Quit]
<Ox0dea> cscheib: To clarify, you just want to capture the error output, right?
dc has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
EllisTAA has joined #ruby
symm- has joined #ruby
Moeh has quit [Quit: Page closed]
<cscheib> well, the set_debut_output option outputs the whole SMTP session, which is useful (I'm hitting a customer email server, not one I control)
<cscheib> I'm hoping to eventually be able to trap the status of the message, so I can do something upon failure
devoldmx has joined #ruby
<cscheib> which, I can see there are .is_bounced? and .diagnostic_code methods (or whatever they're called), but they don't seem to be something I can output directly via "puts", in my experience
graydot has joined #ruby
gheegh has quit [Ping timeout: 252 seconds]
Mendenhall has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
<Ox0dea> cscheib: Yeah, mikel/mail certainly seems to provide everything you'd need to get at the information you need, but it's not wrapped up nicely and neatly.
<cscheib> I'll just switch delivery to Net::SMTP directly and re-visit this later
yfeldblum has quit [Remote host closed the connection]
gregf has joined #ruby
graydot has quit [Client Quit]
<cscheib> trying to wrap my ahead around too may concepts at once, being a relative ruby n00b.
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hal_9000 has quit [Quit: hal_9000]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Muhannad has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
gilest has joined #ruby
shinnya has joined #ruby
gilest has quit [Client Quit]
skade has quit [Quit: Computer has gone to sleep.]
pengin has joined #ruby
<cscheib> apologies if stuff I ask makes it seem like I didn't put effort forth to figure things out myself... sometimes I have a rough idea of what I think should be done, but need validation. but, I do actually try to tackle issues myself! appreciate the help, Ox0dea
charliesome has joined #ruby
<shevy> so much code!
<shevy> in this world
kies^ has quit [Ping timeout: 252 seconds]
<Ox0dea> cscheib: No worries, mate. It was obvious to me that you were attempting to fix the problem on your own.
minotep has quit [Ping timeout: 240 seconds]
omegamike has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> The problem(?) is that Mail isn't actually a subclass of Net::SMTP, so it doesn't get all of its instance methods.
<cscheib> are there #ruby recommended learning resources? I wen through the "codeacademy" ruby thing a couple months ago, and I have O'Reilly's Ruby Cookbook
<cscheib> not really in a mood to clutter my brain with rails stuff right now, but I have browseed the Hartl book
Yzguy has joined #ruby
casadei_ has quit [Remote host closed the connection]
FernandoBasso has quit [Ping timeout: 240 seconds]
sphex has joined #ruby
<Ox0dea> cscheib: Programming Ruby, Eloquent Ruby, and The Well-Grounded Rubyist are all great.
podman has quit [Quit: Connection closed for inactivity]
<cscheib> thanks
omegamike has quit [Ping timeout: 265 seconds]
bruno- has quit [Read error: Connection reset by peer]
bruno-_ has joined #ruby
carlosoliveira has quit [Quit: Connection closed for inactivity]
<Ox0dea> Back in a sec.
Ox0dea has quit [Quit: WeeChat 1.2]
baweaver has joined #ruby
FernandoBasso has joined #ruby
aryaching_ has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has quit [Remote host closed the connection]
Ox0dea has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
Fire-Dragon-DoL has quit []
elico has joined #ruby
theery has quit [Remote host closed the connection]
grill has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
khebbie has joined #ruby
Yzguy has quit [Quit: Zzz...]
casadei_ has joined #ruby
tejasmanohar has joined #ruby
RobertBirnie has joined #ruby
apofis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has quit [Remote host closed the connection]
polpak has joined #ruby
skade has joined #ruby
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Ping timeout: 250 seconds]
theery has joined #ruby
ragingcake has joined #ruby
radgeRayden has joined #ruby
Rinzlit1 has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
apfeluser has quit [Ping timeout: 246 seconds]
jbw has quit [Ping timeout: 260 seconds]
cpruitt has quit [Quit: cpruitt]
devoldmx_ has joined #ruby
swgillespie has joined #ruby
Rinzlit has quit [Ping timeout: 265 seconds]
Ropeney has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
hfp has left #ruby [#ruby]
jbw has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
Zai00 has quit [Quit: Zai00]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mansel has left #ruby ["Textual IRC Client: www.textualapp.com"]
skade has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
ndrei has joined #ruby
tmtwd has joined #ruby
prettiestPony11 has joined #ruby
jtdoncas has joined #ruby
leesharma has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
icebourg has quit []
sdwrage has joined #ruby
rehat has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: May the force be with you.]
Fire-Dragon-DoL has joined #ruby
bmurt has joined #ruby
sinkensabe has quit [Ping timeout: 240 seconds]
bayed has quit [Quit: Connection closed for inactivity]
ledestin has joined #ruby
FernandoBasso has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
computer has joined #ruby
lannonbr has joined #ruby
Milencho has quit [Ping timeout: 256 seconds]
<computer> any idea why these shared examples not working in rspec? (passing variables to rspec) https://gist.github.com/CLUSTERfoo/faa5edcd0abbbc750af8
sdothum has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
decoponio has quit [Quit: Leaving...]
tuelz has quit [Ping timeout: 252 seconds]
rcvalle has quit [Quit: rcvalle]
spider-mario has quit [Remote host closed the connection]
jbw has quit [Ping timeout: 252 seconds]
Alayde has quit [Ping timeout: 264 seconds]
graydot has joined #ruby
qhartman has quit [Quit: Ex-Chat]
dented42 has joined #ruby
blueOxigen has quit [Ping timeout: 272 seconds]
bohallor has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
Igorshp has joined #ruby
devoldmx_ has quit [Ping timeout: 252 seconds]
krz has quit [Quit: WeeChat 1.2]
Fire-Dragon-DoL has quit []
dgutierrez1287 has joined #ruby
hinbody has quit [Quit: leaving]
graydot has quit [Quit: graydot]
Feyn has joined #ruby
keen__________35 has quit [Ping timeout: 250 seconds]
OrbitalKitten has joined #ruby
graydot has joined #ruby
benlovell has joined #ruby
tuelz has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
pauly_oc has quit [Ping timeout: 240 seconds]
hashrocket has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby
ndrei has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_seanc_ has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
computer has quit [Quit: Leaving]
chouhoul_ has quit [Ping timeout: 250 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
jbw has joined #ruby
michael_mbp has quit [Excess Flood]
dc has quit [Remote host closed the connection]
theery has quit [Remote host closed the connection]
bohallor has quit [Ping timeout: 272 seconds]
omegamike has joined #ruby
mleung has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
mleung has quit [Client Quit]
mjuszczak has quit []
dfockler has quit []
bootstrappm has left #ruby [#ruby]
Tamae has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
omegamike has quit [Ping timeout: 244 seconds]
alveric_ has joined #ruby
weemsledeux has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Jarboe has quit []
alveric has quit [Ping timeout: 244 seconds]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dented42 has joined #ruby