havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
tubulife- has joined #ruby
xxneolithicxx has joined #ruby
dotix has joined #ruby
<Daneel> well time to sleep for me
<Daneel> bb
Daneel has quit [Quit: Page closed]
weemsledeux has joined #ruby
<adaedra> I don't understand why, it's only 1.
aeontech has quit [Quit: aeontech]
baweaver has quit [Remote host closed the connection]
<Ox0dea> Sleep is for Animalia.
<adaedra> Ox0dea: also, plenking.
<Ox0dea> Is plenking quite a French thing, then?
<Ox0dea> shevy introduced me to the term and he's not particularly French.
blackmesa has quit [Ping timeout: 260 seconds]
<adaedra> The language requires an unbreakable space before ! ? and some other punctuation
Xeago has joined #ruby
mary5030 has joined #ruby
AndyBotwin has joined #ruby
<adaedra> So it's a common error for us, even if someone plenking is not always french-speaking, of course.
<adaedra> I have no idea if other languages do it, though.
<Ox0dea> What happens if an unbreakable space meets an unhyphenable word?
<adaedra> more spaces than letters in the line.
<CustosLimen> How do I call the function inside module Something ?
dotix has quit [Ping timeout: 246 seconds]
<Ox0dea> CustosLimen: You want `def self.test`.
<Ox0dea> It needs to be a singleton method on the module.
<CustosLimen> thanks
<Ox0dea> As it stands, you're invoking Kernel#test with an explicit receiver.
<Ox0dea> >> method(:test)
<ruboto> Ox0dea # => #<Method: Object(Kernel)#test> (https://eval.in/470809)
gambl0re has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
Guest97 is now known as thisguy123
<Ox0dea> That's why the error mentions privacy rather than nonexistence.
Emmanuel_Chanel has quit [Quit: Leaving]
mary5030 has quit [Ping timeout: 264 seconds]
dfockler has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
htmldrum has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
B1n4r10 has quit [Quit: Lost terminal]
shinnya has joined #ruby
roxtrongo has joined #ruby
jessemcgilallen has joined #ruby
<tejasmanohar> is Rack::Auth::Basic just http basic authentication? do most browsers just know the pop up an alert-ish box asking for user/pass when they visit a page that requires this?
dnewkerk has joined #ruby
<Ox0dea> tejasmanohar: Yep.
Xeago has quit [Ping timeout: 260 seconds]
<Ox0dea> It's essentially just a header.
<adaedra> And a status code, to trigger the dialog.
<Ox0dea> Oh, right.
<adaedra> You server says "You're not allowed to access this page, I require a password.", so the browser shows the dialog, and retries with the information provided.
colegatron has quit [Ping timeout: 255 seconds]
MeMoc has quit [Quit: Connection closed for inactivity]
inoperable has quit [Quit: ZNC 1.7.x-git-473-cc76522 - http://znc.in]
jdawgaz has joined #ruby
<adaedra> HTTP Basic is rather old tech now, so you can expect all browser to know it.
freerobby has joined #ruby
inoperable has joined #ruby
arooni has quit [Quit: Leaving]
nej_ has quit [Changing host]
nej_ has joined #ruby
baweaver has joined #ruby
nej_ is now known as ja
sanjayu has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
stannard has joined #ruby
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
arooni has joined #ruby
arooni has quit [Max SendQ exceeded]
arooni has joined #ruby
pwnd_nsfw has quit [Remote host closed the connection]
shaileshg has joined #ruby
Ilyes512 has joined #ruby
rgrmatt has joined #ruby
pwnd_nsfw has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
jatb has quit [Ping timeout: 244 seconds]
stannard has quit [Read error: Connection reset by peer]
n_blownapart has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
colegatron has joined #ruby
jatb has joined #ruby
Melpaws has quit [Quit: Leaving.]
babblebre has quit [Quit: Connection closed for inactivity]
jetpackjoe has joined #ruby
amclain has quit [Quit: Leaving]
sepp2k has quit [Quit: Leaving.]
<tejasmanohar> yeap
gregf_ has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Moyst has joined #ruby
diegoviola has joined #ruby
rgrmatt has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 250 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aeontech has joined #ruby
aeontech has quit [Client Quit]
karapety_ has quit [Read error: Connection reset by peer]
setient has joined #ruby
rgrmatt has joined #ruby
simplyianm has quit [Remote host closed the connection]
gregf_ has joined #ruby
karapetyan has joined #ruby
DLSteve has joined #ruby
purplexed- has quit [Ping timeout: 250 seconds]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
catphish has joined #ruby
<catphish> is there a correct way to write this: @variable ||= do; block; end
tulak has quit [Remote host closed the connection]
RegulationD has joined #ruby
<catphish> where block returns a value to set variable to
<Radar> catphish: real code plz
<catphish> @variable ||= do; 1; end
uri has joined #ruby
<catphish> where i want to set @variable to 1 if it's not already set
<catphish> obviously in reality "1" will actually involve some processing, but i wanted to keep it simple :)
<catphish> ah, i think the correct answer is: @variable ||= begin; 1; end
<adaedra> just do `@variable ||= expression`
<adaedra> @variable ||= 1 # is valid
<catphish> adaedra: my point was that instead of 1, i wanted a block of code
<catphish> that ultimately returns a value to assign
jessemcgilallen has quit [Quit: jessemcgilallen]
<adaedra> ||= has the same semantics than =
<adaedra> so yes, you can use begin; ...; end if it's a long calculation, or call a method
<catphish> sorry, i think a better example would be: @variable ||= begin; 1 + 2 + n; end
RegulationD has quit [Ping timeout: 250 seconds]
<adaedra> why not `@variable ||= 1 + 2 + n` ?
<Ox0dea> catphish: That's not really "processing".
tkuchiki has joined #ruby
<Ox0dea> If you don't need to do anything stateful, just nix the `begin` wrapper.
<catphish> sorry, i was trying to make my example fit on one line :)
<adaedra> you may want to explain what you want to do in the first place, the whole picture.
<catphish> anyway, the answer is that the keyword is "begin" not "do"
symbol has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<catphish> sorry for the poor question, slightly tired
rgrmatt has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<catphish> Ox0dea: that makes sense i guess, i'm usually guilty of writing overly long methods
uri has quit [Quit: Textual IRC Client: www.textualapp.com]
rgtk has joined #ruby
sdothum has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
dotix has joined #ruby
dotix has joined #ruby
<Ox0dea> Metrics/MethodLength:
rgtk has quit [Read error: No route to host]
<Ox0dea> Max: 42
<Ox0dea> Problem solved.
rgtk has joined #ruby
northfurr has joined #ruby
gambl0re has quit []
rgtk has quit [Read error: No route to host]
Fire-Dragon-DoL has quit []
abucha has joined #ruby
dotix has quit [Ping timeout: 244 seconds]
leafybasil has quit [Remote host closed the connection]
rgtk_ has joined #ruby
riotjones has joined #ruby
vigintas has quit [Ping timeout: 264 seconds]
rgtk_ has quit [Read error: No route to host]
_stu_ has quit [Quit: _stu_]
rgtk has joined #ruby
mistermo_ has joined #ruby
rgtk has quit [Read error: No route to host]
snockerton has quit [Quit: Leaving.]
rgtk has joined #ruby
thisguy123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 252 seconds]
rgtk has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
rgtk has joined #ruby
cwong_on_irc1 has quit [Quit: Leaving.]
catphish has left #ruby ["Leaving"]
Jardayn has quit [Quit: Leaving]
mistermocha has quit [Ping timeout: 260 seconds]
yoongkang has joined #ruby
mistermo_ has quit [Ping timeout: 244 seconds]
rgtk has quit [Read error: No route to host]
stannard_ has joined #ruby
rgtk has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
tubulife- has quit [Ping timeout: 244 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
cdg has quit [Remote host closed the connection]
n_blownapart has quit []
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubulife- has joined #ruby
yoongkang has quit [Ping timeout: 264 seconds]
ruby-lang803 has joined #ruby
IrishGringo has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
karapetyan has quit [Remote host closed the connection]
kies has joined #ruby
karapetyan has joined #ruby
stannard has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
ruby-lang803 has left #ruby [#ruby]
cjbottaro has joined #ruby
northfurr has quit [Read error: Connection reset by peer]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
bruce_lee has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
stannard_ has quit [Ping timeout: 272 seconds]
benlovell has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
rgrmatt has joined #ruby
_blizzy_ has quit [Quit: Leaving]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: i've nodded off.]
benlovell has quit [Ping timeout: 246 seconds]
Respek has joined #ruby
trosborn has joined #ruby
northfurr has joined #ruby
rgrmatt has quit [Remote host closed the connection]
craysiii has joined #ruby
marr has quit []
tubulife- has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stannard has quit [Ping timeout: 250 seconds]
antoniobeyah has joined #ruby
rakm has joined #ruby
sdfgsdfg has joined #ruby
howdoico1 has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
Rodya_ has joined #ruby
tkuchiki has joined #ruby
beneggett has joined #ruby
dorei has quit []
Musashi007 has joined #ruby
trav408 has left #ruby ["WeeChat 1.2"]
Rodya_ has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
roxtrong_ has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
roxtrongo has quit [Ping timeout: 255 seconds]
slackbotgz has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
baweaver has joined #ruby
Fire-Dragon-DoL has joined #ruby
roxtrongo has joined #ruby
roxtrong_ has quit [Read error: Connection reset by peer]
moei has joined #ruby
Musashi007 has quit [Ping timeout: 244 seconds]
northfurr has quit [Quit: northfurr]
roxtrongo has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 250 seconds]
VESTINST has joined #ruby
roxtrongo has joined #ruby
riotjone_ has joined #ruby
roxtrongo has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
roxtrongo has joined #ruby
zenguy_pc has quit [Read error: Connection timed out]
dnewkerk has quit [Quit: dnewkerk]
riotjone_ has quit [Ping timeout: 240 seconds]
kies has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
dlitvak has joined #ruby
TheNet has joined #ruby
roxtrong_ has joined #ruby
roxtrongo has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has quit [Remote host closed the connection]
jetpackjoe has joined #ruby
haraoka has joined #ruby
UnArmed has joined #ruby
DLSteve has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roxtrong_ has quit [Read error: Connection reset by peer]
bosh has joined #ruby
mistermocha has joined #ruby
<bosh> a
tubulife- has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
sanjayu has quit [Ping timeout: 250 seconds]
shinnya has quit [Ping timeout: 260 seconds]
<kiki_lamb> What's the simplest way of inquiring whether an object can be .dup-ed?
mistermocha has quit [Ping timeout: 246 seconds]
northfurr has joined #ruby
DroidBurgundy has joined #ruby
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
rbowlby has quit [Remote host closed the connection]
<kiki_lamb> .respond_to?(:dup) doesn't seem adequate - nilclass responds true, but then throws 'can't dup nil' if you try.. fixnums don't exen have .respond_to? available.
CorySimmons has quit [Quit: Bye!]
johnny56 has quit [Ping timeout: 244 seconds]
Fire-Dragon-DoL has joined #ruby
Musashi007 has joined #ruby
diegoaguilar has quit [Ping timeout: 244 seconds]
johnny56 has joined #ruby
skweek has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
axsuul_ has quit [Read error: Connection reset by peer]
howdoico1 has joined #ruby
<jhass> >> 1.respond_to? :+
<ruboto> jhass # => true (https://eval.in/470821)
slackbotgz has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
rgrmatt has joined #ruby
rgrmatt has quit [Remote host closed the connection]
northfurr has quit [Ping timeout: 244 seconds]
skweek has quit [Ping timeout: 264 seconds]
jamto11 has joined #ruby
bruno- has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<jhass> kiki_lamb: given activesupport defines duplicable?, there's probably none in stdlib and you have to rescue http://api.rubyonrails.org/classes/Object.html#method-i-duplicable-3F
benlieb has quit [Quit: benlieb]
rgrmatt has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
antoniobeyah has joined #ruby
diegoaguilar has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
shadoi has quit [Quit: Leaving.]
<kiki_lamb> jhass: yeah, i looked back and i mistyped my respond_to? check on fixnum, sorry. Hmm, okay... so I should basically just go with 'o.dup rescue o'.
northfurr has joined #ruby
<jhass> kiki_lamb: well, why are you so unsure about what you get but want to copy it all? seems a bit odd
bruno- has quit [Ping timeout: 260 seconds]
zenguy_pc has quit [Max SendQ exceeded]
zenguy_pc has joined #ruby
CanTonic has joined #ruby
CanTonic has quit [Client Quit]
mistermocha has joined #ruby
roxtrong_ has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
UtkarshRay has joined #ruby
howdoico1 has quit [Ping timeout: 240 seconds]
<kiki_lamb> jhass: i'm writing some attribute helper methods for a set of classes, which accept an optional default. if the default is mutable, like a hash, we need to dup it so that instances don't end up sharing references to the same default object... but for other default values, like integers or boolean values, we don't need to call dup, and just want to pass the value straight to instance_variable_set to set the underlying storage variable.
moeabdol has joined #ruby
roxtrong_ has quit [Read error: Connection reset by peer]
roxtrongo has joined #ruby
<kiki_lamb> jhass: if you're interested, specifically, I'm working on the first method shown in this file, into which i've just stuck a 'default.dup rescue default' expression on line 15 -> https://github.com/kiki-lamb/drumtool/blob/devel/lib/drumtool/models/bubbles/traits/klass.rb
rgrmatt has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<jhass> kiki_lamb: stdlib solves this by storing blocks that are called when needed, compare for example Hash#default and Hash#default_proc
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
s2013 has joined #ruby
roxtrongo has quit [Read error: Connection reset by peer]
roxtrongo has joined #ruby
TheRokh1 has joined #ruby
moeabdol has quit [Ping timeout: 272 seconds]
UnArmed has quit [Quit: gone]
s2013 has quit [Read error: Connection reset by peer]
Pupp3tm4_ has joined #ruby
TheRokh has quit [Ping timeout: 260 seconds]
roxtrong_ has joined #ruby
Melpaws has joined #ruby
roxtrongo has quit [Read error: Connection reset by peer]
roxtrong_ has quit [Remote host closed the connection]
<kiki_lamb> jhass: makes sense. is there anything particularly wrong with the rescue version, though? I'm already using my block parameter for an &after Proc that happens after the setter sets, and it's a little easier on the eye for this method's user to just pass a value instead of a big cumbersome Proc.new { value }.
Pupp3tm4st3r has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
Respek has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> Proc.new { value } is indeed odd, it's be proc { value }, lambda { value } or -> { value } rather.
M-prosodyContext has quit [Ping timeout: 240 seconds]
xcesariox has joined #ruby
howdoico1 has joined #ruby
kent\n has quit [Ping timeout: 240 seconds]
zenguy_pc has quit [Read error: Connection timed out]
<jhass> so the sad state is that few people implement .dup / .initialize_copy correctly
kent\n has joined #ruby
<jhass> so while it probably will most likely work for stdlib stuff, for user/library defined datatypes it might break subtly
<jhass> also think about cases where sharing the same instance might even be desired
dotix has joined #ruby
dotix has joined #ruby
<kiki_lamb> Okay... the likely defaults are pretty much all stdlib items or classes I'm writing, so it's probably alright.
<kiki_lamb> Yeah, I considered that - the only case I can think of, so far, where sharing a default makes for these atrribute would be when the default is a Module or Class.
<kiki_lamb> So, on that basic I've revised the expression to: (Module === default ? default : (default.dup rescue default)))
willardg has joined #ruby
<kiki_lamb> er, basis
pwnd_nsfw has quit [Ping timeout: 240 seconds]
trosborn has quit [Quit: trosborn]
nateberkopec has joined #ruby
M-prosodyContext has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kiki_lamb> I can't think of another situation where sharing state would make sense for these. They're arranged in a tree structure, and behaviour covering when they should access each others state is already implemented (and working well) elsewhere, so sharing state via shared default objects seems at best unnecessary and more often than not a source for cconfusion and errors.
dotix has quit [Ping timeout: 240 seconds]
jrhorn has joined #ruby
riotjones has joined #ruby
safe has joined #ruby
kies has joined #ruby
<kiki_lamb> Plus, these aren't really used to hold a mutating state over time, so any benefits related to that are moot. Once the objects have been built, they're essentially used as is, the only thing that's mutated over time after building them is literally a single Fixnum counter value on the topmost scope.
TheHodge has quit [Quit: Connection closed for inactivity]
xcesariox has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
ibouvousaime has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
xcesariox has joined #ruby
howdoico1 has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 260 seconds]
riotjones has quit [Ping timeout: 272 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlovell has joined #ruby
Bloomer has joined #ruby
<kiki_lamb> (these 'bubbles' are essentially nodes in an AST created from the program's DSL, which is, at the moment, purely declarative and does not include mutable states... mutable states will probably be added in the future, but when that happens the DSL's AST and it's current program state will likely be held in separate objects, since, in addition to mutating state while keeping the same AST, here we're actually also going to need the ability to rebuild the
northfurr has quit [Quit: northfurr]
BrunoSaboia has joined #ruby
northfurr has joined #ruby
CloCkWeRX has joined #ruby
<kiki_lamb> it's a livecoding tool for performing music, so being able to update the code while it's running is kind of the entire point... mutable state would only be useful here if I can continue to update the program's code during execution without destroying that state. :) fun stuff.
Guest97 has joined #ruby
pwnd_nsfw has joined #ruby
jetpackjoe has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 244 seconds]
trosborn has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
dlitvak has quit [Remote host closed the connection]
jdawgaz has joined #ruby
big|bad|wolf has joined #ruby
northfurr has quit [Read error: Connection reset by peer]
jrhorn_ has joined #ruby
trosborn has quit [Client Quit]
jrhorn has quit [Ping timeout: 246 seconds]
Tempesta has joined #ruby
s00pcan_ has joined #ruby
jrhorn424 has joined #ruby
jrhorn_ has quit [Ping timeout: 240 seconds]
mjwhitta has joined #ruby
sekrit has quit [Ping timeout: 608 seconds]
jrhorn424 has quit [Ping timeout: 240 seconds]
Oli` has joined #ruby
jrhorn424 has joined #ruby
dlitvak has joined #ruby
patrick2 has quit [Ping timeout: 250 seconds]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest25364 has quit [Ping timeout: 244 seconds]
TheNet has quit [Remote host closed the connection]
sekrit has joined #ruby
Rickmasta has joined #ruby
dlitvak has quit [Ping timeout: 255 seconds]
TheNet has joined #ruby
mjwhitta has quit [Quit: mjwhitta]
s00pcan_ has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
jdawgaz has quit [Quit: Textual IRC Client: www.textualapp.com]
UtkarshRay has quit [Remote host closed the connection]
xaxisx has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
jgpawletko has joined #ruby
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
tmtwd has joined #ruby
Oli` has quit [Read error: Connection reset by peer]
Oli` has joined #ruby
djbkd has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maikowblue has quit [Quit: .]
bosh has quit [Ping timeout: 255 seconds]
DroidBurgundy has quit []
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Derailed has quit [Ping timeout: 260 seconds]
Derailed has joined #ruby
red_horned_rihno has quit [Ping timeout: 246 seconds]
ibouvousaime has joined #ruby
howdoico1 has joined #ruby
beneggett has joined #ruby
northfurr has joined #ruby
qiukun has joined #ruby
northfurr has quit [Client Quit]
Bloomer has quit [Remote host closed the connection]
peppers has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
iateadonut has joined #ruby
braincrash has quit [Quit: bye bye]
riotjone_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jrhorn424 has quit [Quit: WeeChat 1.4-dev]
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
braincrash has joined #ruby
peppers has quit [Quit: Leaving]
patrick has joined #ruby
patrick is now known as Guest89699
Musashi007 has joined #ruby
ta has quit [Read error: Connection reset by peer]
killsomehiggers has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
riotjone_ has quit [Ping timeout: 255 seconds]
benlieb has joined #ruby
ta has joined #ruby
Yzguy has quit [Quit: Zzz...]
benlieb has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
rgtk has quit [Remote host closed the connection]
dopie has joined #ruby
Bloomer has joined #ruby
benlieb has joined #ruby
shortdudey123 has quit [Max SendQ exceeded]
shortdudey123 has joined #ruby
hs366 has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
noobsu has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
Meow-J has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
ruby-lang104 has joined #ruby
<ruby-lang104> Hello
<ruby-lang104> could someone help me, i need a quick fix
Eiam_ has joined #ruby
towski_ has joined #ruby
jessemcgilallen has joined #ruby
towski_ has quit [Remote host closed the connection]
fedexo has joined #ruby
qiukun has left #ruby [#ruby]
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby-lang104> anyone here?
axsuul has joined #ruby
howdoico1 has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
Contigi has quit [Ping timeout: 276 seconds]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
<ruby-lang104> if i use the same words for a class and the code is created by 2 different person who do not know one another, how do i solve the problem
afaris has joined #ruby
yoongkang has joined #ruby
<Aria> Namespace collision?
<Aria> That's tough. Rename one.
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
<ruby-lang104> i tried to but it crashes
Emmanuel_Chanel has joined #ruby
<Aria> But what crashes?
<ruby-lang104> the program
<Aria> Right. Renaming isn't simple.
<ruby-lang104> hm
<Aria> Where do these two classes come from
<Aria> ?
<ruby-lang104> the class is actually used in the main program, the script i am talking about are extensions\
<ruby-lang104> so its not like i thought
juddey has quit [Ping timeout: 252 seconds]
<ruby-lang104> i have a question
<ruby-lang104> if i write class < class2
<ruby-lang104> what does that mean
jetpackjoe has joined #ruby
darkf has joined #ruby
yoongkang has quit [Ping timeout: 240 seconds]
casadei has quit [Remote host closed the connection]
cmoneylulz has joined #ruby
Bloomer has quit [Remote host closed the connection]
ICantCook has joined #ruby
moeabdol has joined #ruby
shinenelson has joined #ruby
<ruby-lang104> would anyone be willing to do some ruby work for 5$
<ruby-lang104> 5 or 10$
krz has joined #ruby
<killsomehiggers> yes
<killsomehiggers> what kind of work?
<ruby-lang104> compatibility
<ruby-lang104> do you have paypal
bruno- has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
jetpackjoe has quit [Read error: No route to host]
bosh has joined #ruby
moeabdol has quit [Ping timeout: 272 seconds]
skweek has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has joined #ruby
<ruby-lang104> hello
wprice has quit [Quit: wprice]
jetpackjoe has joined #ruby
nateberkopec has quit [Quit: Leaving...]
xaxisx_ has joined #ruby
graffix has joined #ruby
qiukun has joined #ruby
xaxisx has quit [Ping timeout: 252 seconds]
benlovell has joined #ruby
psy has joined #ruby
psy has quit [Max SendQ exceeded]
afaris has quit [Ping timeout: 250 seconds]
krz has quit [Ping timeout: 246 seconds]
psy has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
killsomehiggers was kicked from #ruby by Aria [Your name is not allowed by our code of conduct]
antoniobeyah has quit [Quit: antoniobeyah]
Bloomer has joined #ruby
weemsledeux has joined #ruby
Guest38 has joined #ruby
Guest38 has joined #ruby
RegulationD has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 240 seconds]
<Melpaws> what am i doing wrong here ? Using mongo and trying to use insert for a new document
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 260 seconds]
jetpackjoe has joined #ruby
gambl0re has joined #ruby
psy has quit [Quit: Leaving]
craysiii has quit [Quit: Leaving.]
gix has joined #ruby
xaxisx_ has quit [Quit: Leaving]
chipotle has quit [Quit: cheerio]
antoniobeyah has joined #ruby
latemus has joined #ruby
<crdpink> Melpaws: if using newer driver use insert_one. Also you're wrapping single values in interpolated strings, just use the value.
benlieb has quit [Quit: benlieb]
dotix has joined #ruby
<Melpaws> yay ! you da ' bess @crdpink . Thank you
<Melpaws> thank you. I think a lot of the guides i'm using online are out dated :(
latemus has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
crdpink has quit [Excess Flood]
crdpink has joined #ruby
dotix has quit [Ping timeout: 252 seconds]
cmoneylulz has quit [Remote host closed the connection]
riotjones has joined #ruby
bigkevmcd has quit [Ping timeout: 240 seconds]
<ruby-lang104> anybody wanna work for 5 or 10$
Emmanuel_Chanel has quit [Quit: Leaving]
antoniobeyah has quit [Quit: antoniobeyah]
yes`r has joined #ruby
<Aria> ruby-lang104: class Class1 < Class2 means that it makes a new class Class1 based on Class2 (inheritance)
duoi has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
lkba_ has joined #ruby
Musashi007 has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
rbowlby has joined #ruby
<ruby-lang104> ok thanks
<ruby-lang104> inheritance means inherit all attributes?
rbowlby has quit [Remote host closed the connection]
jessemcgilallen has quit [Ping timeout: 240 seconds]
rbowlby has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
agent_white has joined #ruby
agent_white has left #ruby [#ruby]
cmoneylulz has joined #ruby
blue_deref has quit [Quit: bbn]
patdohere has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
quazimodo has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
Emmanuel_Chanel has joined #ruby
Gadgetoid has quit [Ping timeout: 272 seconds]
bosh has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
cmoneylulz has quit []
graffix has quit [Ping timeout: 260 seconds]
peppers has joined #ruby
patdohere has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
benlieb has joined #ruby
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
safe has quit [Quit: Leaving]
rbowlby has quit [Remote host closed the connection]
krz has joined #ruby
BSab has joined #ruby
zenguy_pc has joined #ruby
kobain has quit [Ping timeout: 264 seconds]
rakm has quit [Client Quit]
BrunoSaboia has quit [Ping timeout: 265 seconds]
tildes has joined #ruby
qiukun has quit [Quit: qiukun]
quazimodo has joined #ruby
bruno- has joined #ruby
griffindy has joined #ruby
antoniobeyah has joined #ruby
graffix has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
jetpackjoe has joined #ruby
Guest38 is now known as afaris
wprice has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
arooni has quit [Ping timeout: 240 seconds]
tubulife- has quit [Ping timeout: 265 seconds]
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
jessemcgilallen has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
zenguy_pc has quit [Read error: Connection timed out]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
qiukun has joined #ruby
sanjayu has joined #ruby
<nofxx> ruby-lang104: yup.. and methods and all
cwong_on_irc has joined #ruby
<nofxx> Melpaws: use the new gem site, there's a single page readme/doc
<ruby-lang104> is there an online ruby debugger that i could use
<ruby-lang104> easy to use
<ruby-lang104> i am new
tubulife- has joined #ruby
Gadgetoid has joined #ruby
<nofxx> ruby-lang104: so much easy just install it on yr machine
<ruby-lang104> i use notepad++
<nofxx> ruby-lang104: nah, I don't do drugs.
<Radar> online ruby debugger? What?
rbowlby has joined #ruby
tubulife- has quit [Ping timeout: 246 seconds]
ruby-lang104 has quit [Ping timeout: 246 seconds]
eminencehc has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Quit: Leaving...]
bMalum has joined #ruby
riotjones has joined #ruby
bMalum has quit [Ping timeout: 240 seconds]
bMalum has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
lurch_ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
segmond has quit [Ping timeout: 240 seconds]
dhjondoh has joined #ruby
janelleb_ has quit [Quit: leaving]
janelleb has joined #ruby
chrissonar has joined #ruby
riotjones has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
vdamewood has joined #ruby
jamto11 has quit []
ibouvousaime has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 250 seconds]
axsuul_ has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
Caius has quit [Quit: ""]
tubulife- has joined #ruby
cagmz has joined #ruby
axsuul has quit [Ping timeout: 272 seconds]
pabs has quit [Ping timeout: 272 seconds]
Ca1us has joined #ruby
Guest97 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pabs has joined #ruby
<cagmz> anyone know why my jekyll install is failing? maybe its my ruby install? anyone know why my install is failing? https://bpaste.net/show/31aca15438cc
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
vdamewood has quit [Read error: Connection reset by peer]
<Radar> "rvm" well there's your problem
<Radar> (I kid, I kid)
<Radar> cagmz: Weird error to be getting. Did you install "apt-get install build-essential"?
<cagmz> Radar, yes it's installed already, so is ruby-dev
<Radar> cagmz: Then I don't know, sorry.
<cagmz> i just want to be cool and use ruby :(
chipotle has joined #ruby
yfeldblum has joined #ruby
eminencehc has quit [Read error: Connection reset by peer]
eminencehc has joined #ruby
duncannz has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
moeabdol has quit [Ping timeout: 276 seconds]
yoongkang has joined #ruby
ICantCook has quit [Quit: bye]
colegatron has joined #ruby
freerobby1 has quit [Quit: Leaving.]
favadi has joined #ruby
arup_r has joined #ruby
ibouvousaime has joined #ruby
ICantCook has joined #ruby
lxsameer has quit [Remote host closed the connection]
yoongkang has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
Fire-Dragon-DoL- has joined #ruby
komanda3 has joined #ruby
komanda3 is now known as Komanda
<Mon_Ouie> cagmz: Did you also install libffi and its development headers?
Fire-Dragon-DoL- has quit [Client Quit]
hinbody has joined #ruby
<Komanda> i'm trying to follow that tutorial
<Komanda> i created the config.ru, but when i reate a php file nothing happens
<cagmz> Mon_Ouie, yes, they are installed
<cagmz> Reading state information... Done libffi-dev is already the newest version. libffi6 is already the newest version.
<shevy> Komanda come on man - php for ##php, ruby for #ruby
aufi has joined #ruby
<Komanda> shevy: it has nothing to do with php
<Komanda> it's a ruby tool, a ruby ecosystem
bruno- has joined #ruby
tubulife- has quit [Ping timeout: 255 seconds]
<Mon_Ouie> Okay, Try having a look at the log files mentioned at the end of the message you pasted. Do they mention a more specific error?
<Komanda> it's about POW, i don't know how i can "let it know" of the existence of the config.ru
<Komanda> do i have to execute the config.ru or whut?
aganov has joined #ruby
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has joined #ruby
Fire-Dragon-DoL- has joined #ruby
jetpackjoe has joined #ruby
jetpackjoe has quit [Client Quit]
bruno- has quit [Ping timeout: 260 seconds]
tagrudev has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
AndyBotwin has quit [Ping timeout: 240 seconds]
TheNet has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
IrishGringo has quit [Ping timeout: 246 seconds]
perrier has quit [Remote host closed the connection]
perrier has joined #ruby
build22 has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Read error: No route to host]
riotjones has joined #ruby
Musashi007 has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
AndyBotwin has joined #ruby
anisha has joined #ruby
cgfbee has quit [Excess Flood]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
sinkensabe has joined #ruby
Musashi007 has quit [Client Quit]
juddey has joined #ruby
ta has quit [Remote host closed the connection]
diegoaguilar has quit [Remote host closed the connection]
rgtk has joined #ruby
skade has joined #ruby
norc has joined #ruby
chipotle has quit [Quit: cheerio]
dhjondoh has quit [Remote host closed the connection]
cagmz has quit [Read error: Connection reset by peer]
linocisco has joined #ruby
linocisco is now known as Guest0099
<Guest0099> hi all
<Guest0099> what is the best ruby book who knows only a few programming syntax like C,C++?
<Guest0099> what is the best ruby book for one who knows only a few programming syntax like C,C++?
joonty has joined #ruby
benlieb has quit [Quit: benlieb]
fedexo has quit [Ping timeout: 240 seconds]
Guest97 has joined #ruby
<bronson> Guest0099: I don't know of any good ruby books. I tried the pickeaxe book and hated it -- terrible examples. And it's really dated now.
<bronson> I mostly tried programming stuff, googling and asking on irc when I got stuck.
peppers has quit [Quit: Leaving]
<norc> Guest0099: There is a couple books around. Pickaxe used to be the one and only, though as bronson mentioned, it is a bit outdated.
<Guest0099> bronson, honestly, I learnt programming like C, Pascal long time ago and I now remember only hello world program and forgot all syntax. now want to start learning ruby because want to develop rails
<norc> There is also "The Ruby Programming Language" by Matz himself, pretty decent book.
<bronson> Maybe Learn Ruby the Hard Way, I've heard good things about that series.
<Guest0099> norc, thanks
<bronson> but haven't heard anything about the Ruby version itself.
<bronson> I agree with learning Ruby before Rails, it will seem a lot less magic that way.
BSab has quit [Quit: Leaving]
<norc> Also it will drastically improve your code in the short run.
Komanda has quit [Remote host closed the connection]
<norc> Too many people who start using Rails, and think of all their classes as magical things, forgetting that they are dealing with just normal Ruby classes and modules.
<Guest0099> norc, yes. that is why I want to start with ruby learning first
segmond has joined #ruby
abucha has quit [Quit: Leaving...]
speakingcode has quit [Ping timeout: 246 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has joined #ruby
noobsu has joined #ruby
tkuchiki has quit [Remote host closed the connection]
rgtk has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
Coldblackice has joined #ruby
noobsu has quit [Ping timeout: 252 seconds]
anisha_ has joined #ruby
xcesariox has joined #ruby
subscope has joined #ruby
tkuchiki has joined #ruby
jackjackdripper has joined #ruby
<kiki_lamb> How can I ask a class what it's instances respond to without instantiating one?
moeabdol has joined #ruby
_blizzy_ has joined #ruby
jackjackdripper has quit [Client Quit]
Guest0099 has quit [Ping timeout: 244 seconds]
jackjackdripper has joined #ruby
<Mon_Ouie> Module#method_defined?
jetpackjoe has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
afaris has quit [Quit: Textual IRC Client: www.textualapp.com]
<norc> &ri Module#instance_methods
<norc> kiki_lamb: ^^
andikr has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
<norc> kiki_lamb: You will have to walk through the ancestors chain to get a near complete list (you will be missing singleton_methods however, but you cannot know that without instantiating)
St1gma has quit [Ping timeout: 260 seconds]
eminencehc has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving]
bigkevmcd has joined #ruby
<kiki_lamb> Mon_Ouie, norc: perfect, makes sense... thanks, I'll give it a go. :)
<norc> >> String.ancestors.map(&:instance_methods)
<ruboto> norc # => [[:<=>, :==, :===, :eql?, :hash, :casecmp, :+, :*, :%, :[], :[]=, :insert, :length, :size, :bytesize ...check link for more (https://eval.in/470923)
AndyBotwin has quit [Ping timeout: 250 seconds]
johnny56_ has joined #ruby
Xeago has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
Pupp3tm4_ has quit [Remote host closed the connection]
dlitvak has joined #ruby
Xeago has quit [Remote host closed the connection]
AndyBotwin has joined #ruby
VESTINST has quit [Ping timeout: 250 seconds]
johnny56 has quit [Ping timeout: 244 seconds]
cgfbee has joined #ruby
<Mon_Ouie> instance_methods includes inherited methods, unless you explicitly give it a parameter set to false
VESTINST has joined #ruby
<norc> Oh yeah, silly me. :)
Guest5916 is now known as aps
<kiki_lamb> So... if instance_methods walks the tree for me, then that's probbly a simpler way to do it than method_defined?, it sounds like.
dlitvak has quit [Ping timeout: 260 seconds]
<Mon_Ouie> method_defined? also returns true for inherited methods
<kiki_lamb> Mon_Ouie: okay, so norc's original comment that I'd have to walk the ancestors chain was incorrect?
Fire-Dragon-DoL has quit []
* apeiros stealer of wizard (witch?) hats
Bloomer has quit []
<apeiros> sorceress hats. there :)
juddey has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
qiukun has quit [Quit: qiukun]
solars has joined #ruby
Macaveli has joined #ruby
willardg has quit [Quit: Textual IRC Client: www.textualapp.com]
Tempesta has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 265 seconds]
Fire-Dragon-DoL has joined #ruby
aibot has quit [Remote host closed the connection]
yoongkang has joined #ruby
aibot has joined #ruby
aibot has quit [Read error: Connection reset by peer]
Macaveli_ has joined #ruby
Macaveli_ has quit [Read error: Connection reset by peer]
aibot has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
aibot has quit [Remote host closed the connection]
Macaveli has joined #ruby
aibot has joined #ruby
Guest97 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 276 seconds]
yoongkang has quit [Ping timeout: 264 seconds]
Fire-Dragon-DoL has quit []
patdohere has joined #ruby
Fire-Dragon-DoL- has quit [Quit: Quit]
troulouliou_div2 has joined #ruby
red_horned_rihno has joined #ruby
bMalum has quit [Quit: bMalum]
Fire-Dragon-DoL has joined #ruby
joonty has quit [Quit: joonty]
bMalum has joined #ruby
houhoulis has joined #ruby
patdohere has quit [Ping timeout: 250 seconds]
mark2 has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
TomyWork has joined #ruby
_blizzy_ has quit [Quit: Leaving]
elaptics`away is now known as elaptics
Macaveli_ has joined #ruby
<norc> kiki_lamb: Indeed.
tubulife- has joined #ruby
Macaveli has quit [Ping timeout: 244 seconds]
ta has joined #ruby
<norc> kiki_lamb: I was just thinking in terms of the object model, forgetting that Module#instance_method walks the ancestry chain already.
nofxx has quit [Remote host closed the connection]
norc has quit [Quit: Page closed]
nofxx has joined #ruby
howdoi has joined #ruby
elaptics is now known as elaptics`away
quazimodo has joined #ruby
djellemah_ has joined #ruby
Macaveli_ has quit [Quit: Textual IRC Client: www.textualapp.com]
it-m has joined #ruby
djellemah__ has joined #ruby
ValicekB has quit [Ping timeout: 276 seconds]
yes`r has quit [Ping timeout: 264 seconds]
it-m has quit [Client Quit]
Macaveli has joined #ruby
SCHAAP137 has joined #ruby
Macaveli has quit [Max SendQ exceeded]
djellemah has quit [Ping timeout: 264 seconds]
speakingcode has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
bMalum has quit [Quit: bMalum]
_fumk is now known as fumk
djellemah_ has quit [Ping timeout: 265 seconds]
emilkarl has joined #ruby
Macaveli has joined #ruby
montagne_goat has joined #ruby
Macaveli has quit [Max SendQ exceeded]
quazimodo has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL1 has joined #ruby
Macaveli has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
davedev24 has quit []
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
tubulife- has quit [Ping timeout: 264 seconds]
kp666 has joined #ruby
bMalum has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
jackjackdripper1 has joined #ruby
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
moeabdol has joined #ruby
jackjackdripper has quit [Ping timeout: 260 seconds]
Guest72295 is now known as awk
mostlybadfly has quit [Quit: Connection closed for inactivity]
zachrose_ has quit [Ping timeout: 250 seconds]
desmondhume has joined #ruby
adac has joined #ruby
moeabdol has quit [Ping timeout: 255 seconds]
DoubleMalt has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
zachrose_ has joined #ruby
benlovell has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
rdark has joined #ruby
skade has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
dhjondoh has joined #ruby
joonty has joined #ruby
bweston92 has joined #ruby
Zai00 has joined #ruby
czsr has joined #ruby
bruno- has joined #ruby
lipoqil has joined #ruby
linocisco has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
simplyianm has joined #ruby
kimegede has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
bruno- has quit [Ping timeout: 272 seconds]
marr has joined #ruby
yes`r has joined #ruby
nixmaniack has joined #ruby
codecop has quit [Remote host closed the connection]
rbowlby has quit [Remote host closed the connection]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
senayar has joined #ruby
pandaant has joined #ruby
c0m0 has joined #ruby
dhjondoh has joined #ruby
Billias has quit [Read error: Connection reset by peer]
neanderslob has quit [Ping timeout: 250 seconds]
neanderslob has joined #ruby
czsr has quit [Ping timeout: 240 seconds]
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
jackjackdripper1 has joined #ruby
bigkevmcd has joined #ruby
Billias has joined #ruby
jackjackdripper1 has quit [Client Quit]
jackjackdripper has quit [Ping timeout: 255 seconds]
matcz has quit [Ping timeout: 255 seconds]
<linocisco> hi
<apeiros> moin linocisco
<linocisco> i have installed ruby on ubuntu using apt-get install ruby. but it is only ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
Jackneill has joined #ruby
<havenwood> linocisco: Brightbox maintains up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
Fredrich010 has quit [Read error: Connection reset by peer]
Fredrich010 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
dhjondoh has quit [Quit: dhjondoh]
montagne_goat has quit [Ping timeout: 240 seconds]
linocisco has quit [Ping timeout: 255 seconds]
Pupp3tm4st3r has joined #ruby
lukaszes has joined #ruby
Fredrich_ has joined #ruby
desmondhume has quit [Remote host closed the connection]
Fredrich010 has quit [Ping timeout: 276 seconds]
iateadonut has quit [Ping timeout: 246 seconds]
tulak has joined #ruby
lurch_ has quit [Quit: lurch_]
lurch_ has joined #ruby
linocisco has joined #ruby
nixmaniack has quit [Remote host closed the connection]
nixmaniack has joined #ruby
darkf has quit [Ping timeout: 246 seconds]
darkf has joined #ruby
stan has joined #ruby
postmodern has quit [Quit: Leaving]
desmondhume has joined #ruby
dhjondoh has joined #ruby
dhjondoh has quit [Client Quit]
nixmaniack has quit [Remote host closed the connection]
benhuda has joined #ruby
Ilyes512 has joined #ruby
<yorickpeterse> morning
<apeiros> moin
nixmaniack has joined #ruby
marr has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
Peg-leg has joined #ruby
karapetyan has joined #ruby
benhuda has quit [Client Quit]
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
linocisco has quit [Ping timeout: 276 seconds]
haraoka has quit [Ping timeout: 240 seconds]
dmolina has joined #ruby
TPBallbag has joined #ruby
Voker57 has quit [Remote host closed the connection]
axsuul_ has quit [Ping timeout: 265 seconds]
SCHAAP137 has quit [Read error: Connection reset by peer]
ibouvousaime has quit [Read error: Connection reset by peer]
futilegames has joined #ruby
Xeago has joined #ruby
jas02 has joined #ruby
bluOxigen has joined #ruby
bruno- has joined #ruby
dfdfdf has joined #ruby
Pupeno has joined #ruby
yoongkang has joined #ruby
sonOfRa has quit [Quit: Bye!]
sonOfRa has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
timonv has joined #ruby
leafybasil has joined #ruby
jimms has joined #ruby
yoongkang has quit [Ping timeout: 260 seconds]
leafybasil has quit [Remote host closed the connection]
bluOxigen has left #ruby [#ruby]
leafybasil has joined #ruby
jimms has left #ruby [#ruby]
linocisco has joined #ruby
benhuda has joined #ruby
colli5ion has joined #ruby
RegulationD has joined #ruby
nixmaniack has quit [Remote host closed the connection]
nixmaniack has joined #ruby
rodfersou has joined #ruby
moeabdol has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noobsu has joined #ruby
yashinbasement has joined #ruby
iateadonut has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
maashsa has joined #ruby
moei has quit [Quit: Leaving...]
<maashsa> Is there an easy way to convert YARD doc for specific classes into wiki pages in Github markdown?
Macaveli has joined #ruby
futilegames has quit [Quit: futilegames]
SCHAAP137 has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
iateadonut has quit [Remote host closed the connection]
rodfersou is now known as rodfersou|tee
soloone has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
dhjondoh has joined #ruby
karapetyan has quit [Remote host closed the connection]
lxsameer has joined #ruby
soloone has joined #ruby
johnny56_ has quit [Quit: WeeChat 1.4-dev]
SCHAAP137 has joined #ruby
mistermocha has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
SenpaiSilver_ has quit [Quit: Leaving]
SenpaiSilver has joined #ruby
platzhirsch has joined #ruby
ta has quit [Remote host closed the connection]
skade has joined #ruby
linocisco has quit [Ping timeout: 255 seconds]
platzhirsch has quit [Ping timeout: 265 seconds]
skade has quit [Quit: Computer has gone to sleep.]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
platzhirsch has joined #ruby
futilegames has joined #ruby
houhoulis has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
diegoviola has quit [Quit: WeeChat 1.3]
axsuul has joined #ruby
marr has joined #ruby
karapetyan has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
dlitvak has joined #ruby
banister has quit [Read error: Connection reset by peer]
futilegames has quit [Quit: futilegames]
lurch_ has quit [Quit: lurch_]
platzhirsch has joined #ruby
rodfersou|tee is now known as rodfersou
ldnunes has joined #ruby
jetpackjoe has quit [Quit: Textual IRC Client: www.textualapp.com]
axsuul has quit [Ping timeout: 260 seconds]
Tempesta has joined #ruby
karapetyan has quit [Remote host closed the connection]
lurch_ has joined #ruby
Xeago has quit [Remote host closed the connection]
beast has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
shredding has joined #ruby
Pumukel has joined #ruby
svkurowski_ has quit [Remote host closed the connection]
bruno- has joined #ruby
jackjackdripper has joined #ruby
svkurowski has joined #ruby
dlitvak has quit [Remote host closed the connection]
jackjackdripper1 has joined #ruby
Guest97 has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
Macaveli has quit [Ping timeout: 260 seconds]
zenguy_pc has joined #ruby
dhjondoh has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
<adaedra> Hi
jackjackdripper has quit [Ping timeout: 240 seconds]
gregf_ has quit [Quit: leaving]
johnzorn has joined #ruby
cyb3rspy has quit [Quit: leaving]
bruno- has quit [Ping timeout: 276 seconds]
cyb3rspy has joined #ruby
codecop has joined #ruby
gregf_ has joined #ruby
neanderslob has quit [Ping timeout: 252 seconds]
Guest97 has quit [Ping timeout: 265 seconds]
araujo has joined #ruby
araujo has joined #ruby
roxtrongo has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
neanderslob has joined #ruby
roxtrong_ has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
chipotle has joined #ruby
Hounddog has joined #ruby
bMalum has quit [Quit: bMalum]
chriscoffee has joined #ruby
roxtrongo has quit [Ping timeout: 255 seconds]
CloCkWeRX has quit [Ping timeout: 264 seconds]
gizmore has joined #ruby
yoongkang has joined #ruby
ruid has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
Hounddog has joined #ruby
Hounddog has quit [Excess Flood]
dhjondoh has joined #ruby
yoongkang has quit [Ping timeout: 250 seconds]
prestorium has joined #ruby
arup_r has joined #ruby
Hounddog has joined #ruby
chipotle has quit [Quit: cheerio]
scripore has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
blueOxigen has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tulak has quit [Remote host closed the connection]
wickedau8 has joined #ruby
dlitvak has joined #ruby
Ox0dea has joined #ruby
prestorium has quit [Remote host closed the connection]
vondruch has quit [Quit: Ex-Chat]
yoongkang has joined #ruby
kstuart has joined #ruby
<Ox0dea> Bon matin.
<Ox0dea> (Look how French I'm not.)
Rickmasta has joined #ruby
adac has quit [Ping timeout: 260 seconds]
<adaedra> Ahah
emilkarl has quit [Quit: emilkarl]
bob_f has quit [Changing host]
bob_f has joined #ruby
krz has quit [Ping timeout: 264 seconds]
Coldblackice has quit [Ping timeout: 244 seconds]
mostlybadfly has joined #ruby
jackjackdripper1 has joined #ruby
ta has joined #ruby
jackjackdripper1 has quit [Client Quit]
jackjackdripper1 has joined #ruby
prestorium has joined #ruby
vondruch has joined #ruby
wickedau8 has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
<pontiki> hi
<Ox0dea> Hey.
AndyBotwin has quit [Remote host closed the connection]
terabytes has joined #ruby
tvw has joined #ruby
adac has joined #ruby
terabytes has quit [Client Quit]
dfdfdf has quit [Quit: Leaving]
terabytes has joined #ruby
big|bad|wolf has joined #ruby
Xeago has joined #ruby
grepwood has joined #ruby
<grepwood> hi everyone
<grepwood> I've a problem with a chef recipe
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ohcibi_ is now known as ohcibi
<pontiki> not to put you off, grepwood; there is a #chef channel. i've gotten some good help there. but please ask your question
subscope has joined #ruby
<grepwood> pontiki, the chef recipe I have seems to be completely ignoring parts of itself
GarethAdams has joined #ruby
GarethAdams has quit [Changing host]
GarethAdams has joined #ruby
<pontiki> can you post it?
<pontiki> what's it trying to do?
<ruboto> grepwood, as I told you already, please use https://gist.github.com
yashinbasement has quit [Ping timeout: 250 seconds]
<pontiki> which part seems to be ignored?
<grepwood> line 2
<GarethAdams> I don't know what I'm doing wrong that my field interpolation isn't working for nested fields. `mutate { add_field => { "field" => "%{event}" } }` correctly replaces with the dynamic value, but `mutate { add_field => { "field" => "%{[properties][userId]}" } }` adds the literal value "%{[properties][userId]}" to the field
<grepwood> that recipe should be run, but isn't
<grepwood> it's even specified as a dependency for this cookbook
<GarethAdams> oops, wrong channel
<grepwood> nope, completely ignored
Macaveli has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
tubulife- has joined #ruby
<pontiki> no error, no message?
desmondhume has quit [Remote host closed the connection]
desmondhume has joined #ruby
sepp2k has joined #ruby
karapetyan has joined #ruby
<Ox0dea> You're certain you're specifying the dependency correctly?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has quit [Ping timeout: 252 seconds]
* pontiki shrugs
desmondhume has quit [Ping timeout: 250 seconds]
<grepwood> Ox0dea, yes, I got "depends 'apt'" in metadata.rb
Xeago has quit [Remote host closed the connection]
<grepwood> and this is the output, http://pastebin.com/raw.php?i=HNpvxXEu
<ruboto> grepwood, as I told you already, please use https://gist.github.com
jackjackdripper1 has quit [Quit: Leaving.]
basex has joined #ruby
<Ox0dea> > failed to find gem net-ldap
<Ox0dea> That can't be good.
<Ox0dea> Why isn't it using HTTPS?
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
jas02 has left #ruby [#ruby]
<pontiki> grepwood: what led you to the conclusion that it's line 2 that is the source of the issue?
<pontiki> is the error with chef_gem a result of something in apt? the output does show it didn't ignore apt
ibouvousaime has joined #ruby
maashsa has quit [Quit: Page closed]
Guest54 has joined #ruby
Guest54 has quit [Max SendQ exceeded]
<pontiki> grepwood: to Ox0dea's point, what sources are you telling chef_gem to use?
Xeago has joined #ruby
Guest54 has joined #ruby
Guest54 has quit [Max SendQ exceeded]
bMalum has joined #ruby
leafybasil has quit []
lipoqil has joined #ruby
leafybasil has joined #ruby
shredding has quit [Ping timeout: 260 seconds]
<grepwood> pontiki, the issue can be fixed by running apt-get update before invoking chef-client to run the ldap-thingy recipe
<grepwood> and I've no idea what sources are called
leafybasil has quit [Client Quit]
KrzaQ has left #ruby ["undefined"]
KrzaQ has joined #ruby
Pupeno has quit [Remote host closed the connection]
<KrzaQ> Is here anyone knowledgeable in ruby-graphviz? I'm trying to force position of nodes, but I have no idea how to achieve it, and the docs are less than useful, and so is the code.
Pupeno has joined #ruby
big|bad|wolf has quit [Quit: Textual IRC Client: www.textualapp.com]
Mon_Ouie has joined #ruby
noobsu has quit [Remote host closed the connection]
<KrzaQ> Alternatively, I could use an another gem that could create images out of graphs
dellavg has quit [Ping timeout: 252 seconds]
K3rvyN has quit [Ping timeout: 240 seconds]
mission712 has quit [Ping timeout: 252 seconds]
crayfishx has quit [Ping timeout: 252 seconds]
chriscoffee has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 250 seconds]
haxrbyte has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
karapetyan has quit [Remote host closed the connection]
haxrbyte has quit [Client Quit]
karapetyan has joined #ruby
yoongkang has quit [Remote host closed the connection]
<pontiki> grepwood: this would be more for the #chef channel, i think, but does the apt recipe run the update even if you're not running apt to install/update/remove an apt package?
yoongkang has joined #ruby
bMalum has quit [Quit: bMalum]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<grepwood> pontiki, Ox0dea I really don't think so http://pastebin.com/raw.php?i=ymhJgutb
<ruboto> grepwood, as I told you already, please use https://gist.github.com
subscope has joined #ruby
subscope has quit [Client Quit]
htmldrum has quit [Ping timeout: 265 seconds]
CloCkWeRX has left #ruby [#ruby]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
johnzorn has quit [Remote host closed the connection]
<pontiki> grepwood: are you purposely ignoring ruboto ?
<grepwood> yes
<grepwood> I've an account on pastebin :/
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
gerep has joined #ruby
CloCkWeRX has joined #ruby
emilkarl has joined #ruby
kp666 has joined #ruby
CloCkWeRX has left #ruby [#ruby]
scripore has quit [Quit: This computer has gone to sleep]
CloCkWeRX has joined #ruby
scripore has joined #ruby
vigintas has joined #ruby
emilkarl has left #ruby [#ruby]
colegatron has joined #ruby
<gerep> Hello good people. I was tasked to fix a problem on a server where when trying to run 'ruby' it returns ' cannot load such file -- rubygems.rb'. I noticed that the ruby, gem and bundle binaries are located at '/opt/ruby/install/bin' I tried to install rubygems 'rubygem-bundler-1.3.1-1.noarch.rpm' but it says it is installed already
<gerep> Maybe it is a problem with environment variables?
<gerep> Any suggestions?
CloCkWeRX has quit [Ping timeout: 250 seconds]
benlovell has quit [Ping timeout: 240 seconds]
Zai00 has quit [Quit: Zai00]
scripore has quit [Client Quit]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
karapetyan has quit [Remote host closed the connection]
<gerep> The rubygems folder is this one: /opt/ruby/ruby-2.0.0-p353/lib/rubygems
roxtrong_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
senayar has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<gerep> Ant the binary: /opt/ruby/install/lib/ruby/2.0.0/rubygems
wprice has quit [Quit: wprice]
<gerep> Not binary, the libs folder :)
benlovell has joined #ruby
wprice has joined #ruby
<apeiros> grepwood: I can tell you that there's a couple of high profile helpers here who'll simply ignore your questions for using pastebin.com (myself included)
yokel has quit [Ping timeout: 276 seconds]
skade has joined #ruby
joonty has quit [Quit: joonty]
yokel has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
ta has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
tulak has joined #ruby
<Ox0dea> Dat modesty.
<grepwood> well that really makes ruby an inclusive language
<grepwood> I feel oppressed </joke>
benlovell has quit [Ping timeout: 246 seconds]
ruid has quit [Ping timeout: 252 seconds]
ta has joined #ruby
KervyN has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
arup_r has quit []
johnny56 has joined #ruby
dellavg has joined #ruby
tvw has quit [Read error: Connection reset by peer]
yokel has joined #ruby
mikecmpbll has joined #ruby
tvw has joined #ruby
TPBallbag has joined #ruby
nixmaniack has quit []
<grepwood> not really a fan of github
arup_r has joined #ruby
mistermocha has joined #ruby
dwithers1 is now known as pl1ght
arup_r is now known as Guest36383
CloCkWeRX has joined #ruby
prestorium_ has joined #ruby
desmondhume has joined #ruby
desmondhume has quit [Remote host closed the connection]
desmondhume has joined #ruby
Guest36383 is now known as arup_r
Zai00 has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
icey has joined #ruby
desmondhume has quit [Remote host closed the connection]
desmondhume has joined #ruby
prestorium has quit [Ping timeout: 252 seconds]
anisha has quit [Quit: Leaving]
anisha_ has quit [Remote host closed the connection]
roxtrongo has joined #ruby
anisha has joined #ruby
norc has joined #ruby
<norc> Hi.
tulak has quit [Remote host closed the connection]
<Ox0dea> Ahoy!
desmondhume has quit [Remote host closed the connection]
<grepwood> hi
desmondhume has joined #ruby
umgrosscol has quit [Remote host closed the connection]
skade has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
sdothum has joined #ruby
blueOxigen has quit [Ping timeout: 276 seconds]
anisha has quit [Client Quit]
CloCkWeRX has quit [Quit: Leaving.]
skade has joined #ruby
RegulationD has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
joonty has joined #ruby
ruby-lang359 has joined #ruby
ruby-lang359 has quit [Client Quit]
ruby-lang463 has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
prestorium_ is now known as prestorium
solocshaw has joined #ruby
<ruby-lang463> Hello. I have a Sinatra App and i want to run someAcceptance tests using Watir. it works when i test my production environment but when i make changes and want to run those test doesnt work .
yes`r has quit [Ping timeout: 246 seconds]
<ruby-lang463> do you know if there is a way to connect watir and Rack::Test
prestorium_ has joined #ruby
aryaching has joined #ruby
anisha has joined #ruby
tulak has joined #ruby
ibouvousaime has quit [Remote host closed the connection]
pl1ght has quit [Ping timeout: 240 seconds]
prestorium has quit [Ping timeout: 260 seconds]
k3asd` has joined #ruby
benlovell has joined #ruby
tulak has quit [Remote host closed the connection]
roxtrongo has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
shredding has joined #ruby
prestorium_ is now known as prestorium
lxsameer has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
codecop has quit [Remote host closed the connection]
djellemah__ is now known as djellemah
favadi has joined #ruby
synthroid has joined #ruby
_blizzy_ has quit [Quit: Leaving]
quazimodo has joined #ruby
abc has joined #ruby
sgambino has joined #ruby
TheRokh1 has quit [Read error: Connection reset by peer]
roxtrongo has joined #ruby
abc is now known as Guest22559
htmldrum has joined #ruby
shredding has quit [Ping timeout: 250 seconds]
favadi has quit [Read error: Connection reset by peer]
<Guest22559> Hey, I'm having a bit of trouble using Curl's ruby wrapper 'curb' and timeout. I set c.timeout= 5 and/or c.timeout_ms= 5000, but it looks as if the timeout is not being applied (i.e. the request runs for longer). Any hints?
decoponio has joined #ruby
avahey has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
Encapsulation has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
ibouvousaime has joined #ruby
nomadic has quit [Ping timeout: 250 seconds]
code_ has quit [Ping timeout: 250 seconds]
bradland has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
bradland has joined #ruby
towler has quit [Ping timeout: 250 seconds]
rikkipitt has joined #ruby
GarethAdams has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
jac_ has quit [Quit: leaving]
nomadic has joined #ruby
TheNet has joined #ruby
ibouvousaime has quit [Ping timeout: 252 seconds]
GarethAdams has joined #ruby
towler has joined #ruby
code_ has joined #ruby
root__ has joined #ruby
ibouvousaime has joined #ruby
johnernaut has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
gusTester has joined #ruby
gusTester has left #ruby [#ruby]
Jackneill has quit [Ping timeout: 250 seconds]
sanjayu has quit [Remote host closed the connection]
root__ has left #ruby [#ruby]
GarethAdams has quit [Read error: Connection reset by peer]
ruby-lang463 has quit [Ping timeout: 246 seconds]
krz has joined #ruby
desmondhume has quit [Remote host closed the connection]
desmondhume has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
ItSANgo has joined #ruby
karapetyan has joined #ruby
sdothum has joined #ruby
SHyx0rmZ has joined #ruby
kobain has joined #ruby
desmondhume has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
pl1ght has joined #ruby
mikecmpbll has joined #ruby
karapetyan has quit [Ping timeout: 246 seconds]
TheNet has quit [Remote host closed the connection]
desmondhume has joined #ruby
Pumukel has joined #ruby
wilsonc91 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
umgrosscol has joined #ruby
roxtrong_ has joined #ruby
Sembei has quit [Ping timeout: 260 seconds]
rwilcox has joined #ruby
krz has quit [Read error: Connection reset by peer]
atomical has joined #ruby
krz has joined #ruby
Voker57 has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
codecop has joined #ruby
davedev24 has joined #ruby
roxtrongo has quit [Ping timeout: 276 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
Ilyes512 has joined #ruby
rodfersou is now known as rodfersou|lunch
tomaz_b has joined #ruby
zenguy_pc has joined #ruby
Melpaws has quit [Quit: Leaving.]
rikkipitt has quit [Quit: Leaving...]
The_Phoenix has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: i've nodded off.]
grepwood has left #ruby ["Leaving"]
casadei has joined #ruby
mikecmpbll has joined #ruby
houhoulis has joined #ruby
tomaz_b has quit [Quit: Leaving]
DrShoggoth has quit [Quit: Leaving]
ESpiney has joined #ruby
yoongkang has quit [Remote host closed the connection]
roxtrong_ has quit [Remote host closed the connection]
desmondhume has quit [Remote host closed the connection]
sankaber has joined #ruby
Macaveli has joined #ruby
vdamewood has joined #ruby
dmitch has joined #ruby
<shevy> people rejoice!
<shevy> it is a Caturday again
lulzmachine has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
lipoqil has quit [Quit: Connection closed for inactivity]
Xeago has joined #ruby
HZun has joined #ruby
houhoulis has quit [Remote host closed the connection]
malconis has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
sankaber has quit [Remote host closed the connection]
sankaber has joined #ruby
TomPeed has joined #ruby
johnernaut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has joined #ruby
bkxd has joined #ruby
andikr has quit [Remote host closed the connection]
TheNet has joined #ruby
ibouvousaime has quit [Ping timeout: 240 seconds]
ibouvousaime has joined #ruby
livcd has left #ruby [#ruby]
ta has quit [Remote host closed the connection]
grill has joined #ruby
tflat_ has quit [Quit: Textual IRC Client: www.textualapp.com]
lsmola has quit [Ping timeout: 240 seconds]
tflat has joined #ruby
grill has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
tomphp has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
dhjondoh has quit [Quit: dhjondoh]
lsmola has joined #ruby
tflat has quit [Client Quit]
lsmola has quit [Read error: Connection reset by peer]
noobsu has joined #ruby
kp666 has quit [Remote host closed the connection]
HZun has quit [Remote host closed the connection]
aspiers has quit [Quit: WeeChat 1.3]
futilegames has joined #ruby
Silex has quit [Quit: WeeChat 0.4.3]
babblebre has joined #ruby
Silex has joined #ruby
whippythellama has joined #ruby
tubulife- has quit [Ping timeout: 244 seconds]
djcp1 has joined #ruby
futilegames has quit [Client Quit]
TPBallbag is now known as Comakip_
tkuchiki has joined #ruby
zotherstupidguy` has joined #ruby
GarethAdams has joined #ruby
GarethAdams has quit [Changing host]
GarethAdams has joined #ruby
Comakip_ is now known as TPBallbag
IrishGringo has joined #ruby
IrishGringo has quit [Remote host closed the connection]
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
desmondhume has joined #ruby
brainfire has joined #ruby
<brainfire> anyone here knows regular expressions?
slash_quit is now known as slash_nick
<havenwood> brainfire: Regexp question?
vigintas has quit [Quit: vigintas]
<brainfire> havenwood: yeah I've been trying for a while but don't seem to get it
anisha has quit [Quit: Leaving]
<cyb3rspy> you know what brainfire / havenwood... I can't seem to get the hang of it either... it just seems so alien to me!
zotherstupidguy` has quit [Quit: rcirc on GNU Emacs 24.3.1]
lipoqil has joined #ruby
<brainfire> I have a large mysql database dump, the data I'm looking for is in the form (number, 'string') with many of those occuring in the same line. I get a positive match if I do /\(*,*\)/.match(line) in ruby but whenever I try to be a little more specific like /\(\d{1,3},'*'\)/.match(line) it fails
roxtrongo has joined #ruby
<brainfire> also I can't seem to get the actual matches, the match object just has the length 1 though the file should have hundreds of matches
rippa has joined #ruby
<gregf_> brainfire: /\(*,*\)/ is'nt what you think its doing
<gregf_> s/is\'nt/doesnt do/
kirun has joined #ruby
<brainfire> gregf_: the asterisk * is a placeholder for any character type and number right?
<apeiros> no
<apeiros> * is a quantifier
<gregf_> >> "(foo,bar)".scan(/\(.*,.*\)/)
<ruboto> gregf_ # => ["(foo,bar)"] (https://eval.in/471273)
<apeiros> it says that the previous pattern is matched 0 to ∞ times
<apeiros> . is a placeholder for "any character" (except \n if used without the //m flag)
<gregf_> >> "(foo,bar)".scan(/\(*,*\)/) # thats what you're trying
<ruboto> gregf_ # => [")"] (https://eval.in/471274)
<brainfire> ah I see
<apeiros> i.e., \(* is "zero or more left-parens"
<brainfire> that explains it
pietr0 has quit [Ping timeout: 240 seconds]
roxtrongo has quit [Ping timeout: 252 seconds]
TheNet has quit [Remote host closed the connection]
<gregf_> >> "(1,234) (12,456)".scan(/\(\d{1,3},\d{1,3}\)/) # this will probably get you what you're after
<ruboto> gregf_ # => ["(1,234)", "(12,456)"] (https://eval.in/471275)
tkuchiki has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
tagrudev has quit [Read error: Connection reset by peer]
UniFreak has joined #ruby
wilsonc91 has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
absolutejam has left #ruby ["WeeChat 1.3"]
weemsledeux has joined #ruby
flak has joined #ruby
solocshaw has joined #ruby
s2013 has joined #ruby
TheNet has joined #ruby
<UniFreak> I'm tring to install jekyll and redcarpet in cygwin, but here is the error output:http://paste.ubuntu.com/13330689/
erbeshar1 has joined #ruby
<UniFreak> it said I didn't install rdoc
<brainfire> thanks guys I'll play around with it.. may have more questions later though :)
<UniFreak> but I checked with the cygwin's installer, I did install it
sdfgsdfg has quit [Remote host closed the connection]
lsmola has joined #ruby
karapetyan has joined #ruby
<apeiros> ?guys brainfire
<ruboto> brainfire, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
shinnya has joined #ruby
rippa has quit [Ping timeout: 246 seconds]
<brainfire> ?
RegulationD has joined #ruby
<havenwood> UniFreak: An easy workaround would be to not generate docs. You can add `gem: "--no-document"` to your ~/.gemrc.
<havenwood> UniFreak: Or do you want docs generated?
<UniFreak> havenwood: I don't even know what that mean
<apeiros> brainfire: not quite sure what the "?" is supposed to ask :)
<havenwood> UniFreak: After installing each gem Ruby generates documentation. Since that takes time it's fairly popular to disable documentation generation.
antoniobeyah has joined #ruby
<brainfire> apeiros: I wasn't sure what the problems with "guys" is
TheNet has quit [Remote host closed the connection]
tmtwd has joined #ruby
<havenwood> UniFreak: Ruby Documentation (rdoc).
roxtrongo has joined #ruby
<apeiros> brainfire: I think the message from the bot is pretty understandable?
<brainfire> apeiros: is this a gender thing?
<apeiros> yes
solocshaw1 has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
<brainfire> ok
RegulationD has quit [Ping timeout: 244 seconds]
<UniFreak> havenwood: I did that, now the installation is silence
<Papierkorb> brainfire: you have as much the right to be offended by anything just as much as you have the right to not care if you don't want. (Oh, when I use that method it's for trolling purposes.)
<havenwood> UniFreak: I'm not sure why rdoc isn't found with your cygwin install. Hem.
<havenwood> UniFreak: But that works!
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> Papierkorb: just that people who don't care about certain things in this channel can be shown the door.
casadei has quit [Remote host closed the connection]
<apeiros> (which in no way inhibits their right to still not care)
<brainfire> no one's offended right?
<apeiros> brainfire: no, not at this point :)
<brainfire> good ;)
arup_r has quit [Remote host closed the connection]
riotjones has quit [Remote host closed the connection]
subscope has joined #ruby
Guest36 has joined #ruby
mistermocha has joined #ruby
dhollinger has joined #ruby
codecop has quit [Remote host closed the connection]
tubulife- has joined #ruby
karapetyan has quit [Remote host closed the connection]
<brainfire> ok so if I may ask another question: the scan method for the string object should return an array which contains all the matches of the regular expression that it was invoked with right?
<apeiros> correct
tkuchiki has joined #ruby
<apeiros> if your regex contains capturing groups, the result will be an array of arrays, with the inner array being the captured values
tvw has quit []
tvw has joined #ruby
B1n4r10 has joined #ruby
<apeiros> >> "x=2, y=3, z=4".scan(/\w=\d/)
<ruboto> apeiros # => ["x=2", "y=3", "z=4"] (https://eval.in/471295)
<apeiros> >> "x=2, y=3, z=4".scan(/(\w)=(\d)/)
antoniobeyah has quit [Quit: antoniobeyah]
<ruboto> apeiros # => [["x", "2"], ["y", "3"], ["z", "4"]] (https://eval.in/471296)
<brainfire> ok, so I've tried string.scan(/\(\d*,'.*'\)/) on that string containing all this data in the brackets like I mentioned earlier, it's all in a single line because mysqldump did it that way. It returns a match, but the array only has length one with this one containing all the matches ...
<brainfire> apeiros: yeah I tried that too, same deal -.-'
<apeiros> brainfire: the .* happily matches as far as it can
<apeiros> you probably want [^']*' or .*?'
momomomomo has joined #ruby
podman has joined #ruby
karapetyan has joined #ruby
TheNet has joined #ruby
<brainfire> okay
mistermocha has quit [Read error: Connection reset by peer]
tubulife- has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
benhuda has joined #ruby
blubjr` has joined #ruby
sankaber has quit [Remote host closed the connection]
<brainfire> the .*? seems to be working.
teotwaki has quit [Ping timeout: 240 seconds]
DanKnox^ has quit [Ping timeout: 240 seconds]
countryHick has quit [Ping timeout: 240 seconds]
johnhamelink has quit [Ping timeout: 240 seconds]
<brainfire> apeiros: could you tell me what exactly that did?
sankaber has joined #ruby
mistermocha has quit [Remote host closed the connection]
linc01n has quit [Ping timeout: 240 seconds]
dopie has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
karapetyan has quit [Remote host closed the connection]
<Papierkorb> brainfire: .*? makes .* non-greedy
tpendragon has quit [Ping timeout: 240 seconds]
cschneid has quit [Ping timeout: 240 seconds]
n1ftyn8_ has quit [Ping timeout: 240 seconds]
lancetw has quit [Ping timeout: 240 seconds]
G has quit [Ping timeout: 240 seconds]
jevs has quit [Ping timeout: 240 seconds]
<Papierkorb> >> "foo|bar|baz"[/.*\|/]
<ruboto> Papierkorb # => "foo|bar|" (https://eval.in/471300)
blackjid has quit [Excess Flood]
<Papierkorb> >> "foo|bar|baz"[/.*?\|/]
<ruboto> Papierkorb # => "foo|" (https://eval.in/471301)
<Papierkorb> brainfire: ^
blubjr has quit [Ping timeout: 240 seconds]
countryHick has joined #ruby
G has joined #ruby
lancetw has joined #ruby
jevs has joined #ruby
blackdev1l has joined #ruby
n1ftyn8_ has joined #ruby
<blackdev1l> hi
chrissonar has quit [Read error: Connection reset by peer]
Rollabunna has quit [Remote host closed the connection]
htmldrum has joined #ruby
blackjid has joined #ruby
mistermo_ has joined #ruby
teotwaki has joined #ruby
<brainfire> hm I think I get it now
roxtrongo has quit [Read error: Connection reset by peer]
krak3n has joined #ruby
Rollabunna has joined #ruby
DanKnox[away] has joined #ruby
<brainfire> thought if I enclose it with ' it would work
cschneid has joined #ruby
<brainfire> anyway, thanks folks ;)
tpendragon has joined #ruby
linc01n has joined #ruby
tmtwd has quit [Ping timeout: 264 seconds]
<gregf_> brainfire: what does the string look like?
<apeiros> >> "x=2, y=3, z=4".scan(/(.)=(\d)/)
<ruboto> apeiros # => [["x", "2"], ["y", "3"], ["z", "4"]] (https://eval.in/471302)
<brainfire> gregf_: in the dump file it's (number,'string') including the single quotes
<apeiros> brainfire: take ^, the . matches a single char, but any. now if we want "any amount of", and simply add *, see what happens
<apeiros> >> "x=2, y=3, z=4".scan(/(.*)=(\d)/)
<ruboto> apeiros # => [["x=2, y=3, z", "4"]] (https://eval.in/471303)
axl_ has joined #ruby
Rickmasta has joined #ruby
<apeiros> since "=2, " all are "any character" too, the .* will continue to match
<gregf_> brainfire: ah - ok
zenguy_pc2 has joined #ruby
momomomomo has left #ruby [#ruby]
momomomomo has joined #ruby
<apeiros> brainfire: and one strategy is to replace "any character" with "any character *except*":
freerobby has joined #ruby
<apeiros> >> "foo=2, bar=3, z=4".scan(/([^=]*)=(\d)/)
<ruboto> apeiros # => [["foo", "2"], [", bar", "3"], [", z", "4"]] (https://eval.in/471308)
<brainfire> apeiros: it takes anything left of the last "=" right
roxtrongo has joined #ruby
zenguy_pc has quit [Ping timeout: 276 seconds]
<apeiros> yes. because the last = is needed to still satisfy the expression
Rollabunna has quit [Ping timeout: 260 seconds]
_stu_ has joined #ruby
<apeiros> basically the .* will match until the end of the string, notice that it then can't satisfy the "=(\d)" part, and backtrack until it can.
|ifei5good has quit [Remote host closed the connection]
<apeiros> (a modern regex engine will probably optimize how it does this, though)
zenguy_pc2 has quit [Max SendQ exceeded]
ruby-lang798 has joined #ruby
<brainfire> i see
kimegede has quit [Quit: Leaving...]
basex has quit [Quit: basex]
htmldrum has quit [Ping timeout: 246 seconds]
zenguy_pc2 has joined #ruby
<brainfire> the ^ matches something to the beginning of the string though?
karapetyan has joined #ruby
johnhamelink has joined #ruby
<apeiros> [] is a character class. and [^] is a negated character class. [^a] is "any character except a"
<apeiros> [^abc] is "any character except a, b or c"
<brainfire> right. I remember actually lol
<brainfire> apeiros: thank you, you've been very helpful
<apeiros> yw
aufi has quit [Ping timeout: 252 seconds]
grill has joined #ruby
<Spami> I'm trying to run a cronjob on my macbook that execute a script every 10min
<Spami> I know the script is running because the log file is being created every 10minutes but nothing happens: nothing in the log files and the API supposed to be hit isn't being hit
<Spami> (the scripts uses capybara)
<Spami> any idea of what can be the issue?
noobsu has quit [Ping timeout: 240 seconds]
<apeiros> Spami: it crashes?
|ifei5g00d has joined #ruby
<norc> Spami: Also it is possible I keep deleting your log files.
aibot has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 246 seconds]
nertzy2 has quit [Quit: This computer has gone to sleep]
zenguy_pc2 has quit [Max SendQ exceeded]
arup_r has joined #ruby
zenguy_pc2 has joined #ruby
emilkarl has joined #ruby
arup_r is now known as Guest78000
Voker57 has quit [Read error: Connection reset by peer]
blackdev1l has quit [Quit: WeeChat 1.3]
karapetyan has quit [Remote host closed the connection]
<Spami> apeiros, where could I see it a log of it crashing?
aufi has joined #ruby
<apeiros> Spami: you'll have to make it write one. e.g. by instructing cron to redirect stderr to a file.
mark2 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :verne.freenode.net"]
mistermocha has joined #ruby
<apeiros> (and/or stdout)
Guest78000 is now known as arup_r
norc has quit [Ping timeout: 246 seconds]
<gregf_> brainfire: what apeiros said. but yeah, a quantifier comes after what you want. \d,\w,., \s,\S etc and then you append a quantifier to it
aibot has joined #ruby
<Spami> apeiros, I do: */10 * * * * /bin/bash -l -c 'ruby /Users/charly/Projects/job-distribution/postingjob.rb > /Users/charly/Projects/logs/crontab.log'
<apeiros> that iirc only redirects stdout
aibot has quit [Remote host closed the connection]
<Spami> oh
aibot has joined #ruby
<ruboto> apeiros, I will remember that redirection is http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html
aibot has quit [Remote host closed the connection]
rodfersou|lunch is now known as rodfersou
ibouvousaime has quit [Ping timeout: 250 seconds]
maddmaxx has joined #ruby
gerep has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jimms has joined #ruby
roxtrongo has quit [Ping timeout: 276 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Spami> apeiros, super useful thanks. I'll see the result in 9minutes :)
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ibouvousaime has joined #ruby
sapslaj has quit [Ping timeout: 260 seconds]
sapslaj has joined #ruby
purplexed- has joined #ruby
purplexed- has joined #ruby
tkuchiki has quit [Remote host closed the connection]
nettoweb has joined #ruby
dmitch has joined #ruby
momomomomo has quit [Quit: momomomomo]
johnny56 has quit [Ping timeout: 244 seconds]
zenguy_pc2 has quit [Read error: Connection timed out]
sinkensabe has quit [Remote host closed the connection]
fr has joined #ruby
zenguy_pc2 has joined #ruby
mistermo_ has quit [Ping timeout: 255 seconds]
yes`r has joined #ruby
aibot has joined #ruby
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
ruurd has joined #ruby
iateadonut has joined #ruby
<fr> Hello, I've a question. I'm beginner and I trying to have a non breakable space after a colon using haml.
<fr> %h3 row : &nbsp;
tvw has quit []
tvw has joined #ruby
sinkensabe has joined #ruby
<fr> someone has an idea ?
<fr> Thx
howdoi has quit [Quit: Connection closed for inactivity]
komanda3 has joined #ruby
xcesariox has joined #ruby
komanda3 is now known as Komanda
<ruboto> Komanda, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/64a43de605d142b1397f
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
maikowblue has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Peg-leg has quit [Quit: Leaving.]
blackmesa has joined #ruby
<Komanda> So i'm trying to follow this tutorial; i get the pastebin error
<Komanda> (only when using .php file; in general for html things work fine
<crankharder> fr: works for me. what are you seeing
<crankharder> Komanda: something is probably already running on 61987, probably your app
<Komanda> crankharder: the port number seems to be random
<Komanda> every time i refresh it changes
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
skade has joined #ruby
Jardayn has joined #ruby
casadei has joined #ruby
<crankharder> no idea. never used pow
<crankharder> localhost works fine for me
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
B1n4r10 has quit [Ping timeout: 246 seconds]
pwnd_nsfw has joined #ruby
atomical has joined #ruby
<fr> @crankharder . I mean when I reduce a the window of my app the colon go down
<Komanda> i found the #rack channel, any other places people might know about #pow
arooni has joined #ruby
<Komanda> i'm new to the ruby ecosystem
gizmore has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
psy_ has joined #ruby
mary5030 has joined #ruby
aspiers has joined #ruby
Xeago has quit [Remote host closed the connection]
zenguy_pc2 has quit [Ping timeout: 244 seconds]
bMalum has quit [Quit: bMalum]
mary5030 has quit [Remote host closed the connection]
aibot has quit [Remote host closed the connection]
mary5030 has joined #ruby
aibot has joined #ruby
I has joined #ruby
I is now known as Guest33405
brainfire has quit [Quit: Konversation terminated!]
hohenfall has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
ibouvousaime has quit [Ping timeout: 240 seconds]
riotjone_ has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brainfire has joined #ruby
beast has quit [Quit: Leaving]
riotjone_ has quit [Ping timeout: 246 seconds]
erbeshar1 has quit [Remote host closed the connection]
TomyWork has quit [Remote host closed the connection]
banister has joined #ruby
fr has quit [Quit: Page closed]
eminencehc has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
afaris has joined #ruby
afaris has joined #ruby
Ilyes512 has joined #ruby
moeSeth has joined #ruby
_blizzy_ has joined #ruby
B1n4r10 has joined #ruby
emilkarl has quit [Quit: emilkarl]
dorei has joined #ruby
Komanda has quit [Remote host closed the connection]
Guest33405 has quit [Quit: This computer has gone to sleep]
Guest33405 has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
pwnd_nsfw has joined #ruby
gregf has joined #ruby
benlieb has joined #ruby
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ochkoffein has joined #ruby
benlieb has quit [Client Quit]
aufi has quit [Quit: Konversation terminated!]
rbowlby has joined #ruby
Guest54738 is now known as C0deMaver1ck
benlieb has joined #ruby
benlieb has quit [Client Quit]
wilsonc91 has joined #ruby
eminencehc has quit [Remote host closed the connection]
nateberkopec has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
blunckr has joined #ruby
<hohenfall> Hey all, I've got some questions about multiple assignment. The code works as-is, but I'm trying to clean it up a bit.
<hohenfall> I posted the relevant part on Gist: https://gist.github.com/rirel/5a94724b29eb2fe1ba55
mistermocha has joined #ruby
<blunckr> exit
blunckr has quit [Client Quit]
beanHolez has joined #ruby
<hohenfall> ?
jackjackdripper has joined #ruby
jimbeaudoin has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lemur has quit [Remote host closed the connection]
adac has quit [Ping timeout: 264 seconds]
k3asd` has quit [Ping timeout: 250 seconds]
sinkensabe has joined #ruby
wldcordeiro has quit [Ping timeout: 240 seconds]
peitera- has quit [Ping timeout: 240 seconds]
atomicjolt has joined #ruby
jimms has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 244 seconds]
atomicjolt has quit [Client Quit]
<adaedra> Whay did you try, hohenfall
peitera has joined #ruby
last_staff has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
<hohenfall> adaedra: Primarily what I'm looking for a way to discard uneeded in a multiple assignment operation
<adaedra> ok, what did you try?
<hohenfall> sorry, I'm not sure what you mean by that
<adaedra> I see `_, y, z = %w{a b c}` in your code, what's wrong with it?
<adaedra> >> _, y, z = %w{a b c}; [y, z]
<ruboto> adaedra # => ["b", "c"] (https://eval.in/471333)
yes`r has quit [Ping timeout: 265 seconds]
<hohenfall> strange
<hohenfall> doesn't seem to work in irb
Pupeno has quit [Quit: Leaving...]
yes`r has joined #ruby
<adaedra> show us?
<hohenfall> I'm using 2.3.0
SCHAAP137 has quit [Remote host closed the connection]
<hohenfall> if I execute this: _, y, z = %w{a b c}
<hohenfall> the underscore contains the entire list
<adaedra> can you gist your IRB session?
snockerton has joined #ruby
<hohenfall> sure
<adaedra> Also, 2.3.0 is still preview at this time :/
<hohenfall> I pasted it at the end of the existing gist
<hohenfall> :)
<jhass> hohenfall: that's because irb reassings _ to the last expressions value. The value of an assignment is its right hand side
<adaedra> try _ again after that
symm- has joined #ruby
<hohenfall> so _ is a built-in variable?
<adaedra> more or less
<jhass> hohenfall: compare _, y, z = %w{a b c}; _ in irb
<jhass> not really built-in, irb just uses it
terminalrecluse has joined #ruby
<hohenfall> ah, so only in irb
<jhass> yes
tkuchiki has joined #ruby
ruby-lang798 has quit [Ping timeout: 246 seconds]
<adaedra> _ is often used to discard things
nanoz has joined #ruby
lulzmachine has quit [Quit: Connection closed for inactivity]
pdoherty has joined #ruby
<hohenfall> didn't realize irb was reassigning it
<adaedra> depending on your needs, you can also use * to discard things (but it works differently): *, y, z = %w[a b c]
<adaedra> In your case, I think you want _.
<adaedra> Also, for the nested assignment, you can use () instead of [].
<adaedra> >> a, (b, c) = [1, [2, 3]]; [a, b, c]
<hohenfall> ah, so that's what it was
<ruboto> adaedra # => [1, 2, 3] (https://eval.in/471334)
Kero has quit [Ping timeout: 240 seconds]
lurch_ has quit [Quit: lurch_]
last_staff has quit [Ping timeout: 246 seconds]
<adaedra> _ will take one element from an array, * will take all remaining.
<hohenfall> all remaining?
<jhass> _ is really just a variable name
<adaedra> >> a1, *, a2 = (1..5).to_a; b1, _, b2 = (1..5).to_a; [[a1, a2], [b1, b2]]
<ruboto> adaedra # => [[1, 5], [1, 3]] (https://eval.in/471335)
yqt has joined #ruby
<jhass> the only special thing is that ruby -w won't warn about reusing it inside a single expression and it won't warn about it never being read
s2013 has joined #ruby
<hohenfall> ah, I see
<jhass> and that holds true for all variables starting with _, so _foo, _bar and so on
beanHolez has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
<jhass> _ is too just a variable starting with _ so to say ;)
<hohenfall> thanks guys ^_^
Kero has joined #ruby
<hohenfall> that pretty much explains everything
tkuchiki has quit [Ping timeout: 255 seconds]
treehug88 has joined #ruby
rbowlby has quit [Ping timeout: 265 seconds]
Guest33405 has quit [Quit: This computer has gone to sleep]
nateberkopec has quit [Quit: Leaving...]
benlovell has quit [Ping timeout: 260 seconds]
Kero has quit [Ping timeout: 272 seconds]
Guest33405 has joined #ruby
Kero has joined #ruby
<Spami> apeiros, nothing in the log still: "*/10 * * * * /bin/bash 'ruby /Users/theonegri/Projects/job-distribution/postingjob.rb &> /Users/theonegri/Projects/logs/crontab.log'"
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
zachrose_ has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Remote host closed the connection]
axsuul has joined #ruby
dionysus69 has joined #ruby
fedexo has joined #ruby
Voker57 has joined #ruby
UniFreak1 has joined #ruby
<crankharder> Spami: I don't think that redirection catches all output
<crankharder> think you want.... command > file.log 2>&1
<crankharder> specifically, it might not be logging error output
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
wldcordeiro has joined #ruby
ruurd has joined #ruby
UniFreak has quit [Ping timeout: 276 seconds]
UniFreak1 is now known as UniFreak
umgrosscol has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
karapetyan has joined #ruby
timonv has quit [Ping timeout: 276 seconds]
mary5030 has joined #ruby
RegulationD has joined #ruby
eminencehc has joined #ruby
mary5030 has quit [Remote host closed the connection]
sankaber has quit [Read error: Connection reset by peer]
<Papierkorb> Does someone know the fatal error "No live threads left. Deadlock?" in rubys thread.rb? Getting that message (with an abort afterwards) when trying to use xmpp4r to connect to an XMPP server
sankaber has joined #ruby
<Papierkorb> Googling shows that it occurs for a bunch of ruby tools
mary5030 has joined #ruby
yoongkang has joined #ruby
<Papierkorb> ah, no, the error is raised from within xmpp4r, sorry
solars has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
|ifei5good has joined #ruby
riotjone_ has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
loechel has joined #ruby
loechel is now known as Pumukel
prestorium has quit [Quit: Leaving]
|ifei5g0_ has joined #ruby
tubulife- has joined #ruby
|ifei5g00d has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
aphprentice has joined #ruby
|ifei5g0_ has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
yoongkang has quit [Ping timeout: 272 seconds]
|ifei5g00d has joined #ruby
mary5030 has joined #ruby
riotjone_ has quit [Ping timeout: 260 seconds]
joonty has quit [Quit: joonty]
|ifei5good has quit [Ping timeout: 255 seconds]
lubarch has joined #ruby
iateadonut has quit [Quit: Leaving.]
tubulife- has quit [Ping timeout: 246 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
karapetyan has quit [Remote host closed the connection]
eminence_ has joined #ruby
rakm has joined #ruby
eminencehc has quit [Ping timeout: 260 seconds]
woodruffw has quit [Ping timeout: 240 seconds]
TheNet has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
wldcordeiro has quit [Quit: WeeChat 1.3]
Rollabunna has joined #ruby
wldcordeiro has joined #ruby
idefine has joined #ruby
pdoherty has quit [Ping timeout: 272 seconds]
SCHAAP137 has joined #ruby
htmldrum has joined #ruby
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krz has quit [Read error: Connection reset by peer]
skade has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
woodruffw has joined #ruby
lubarch has quit [Quit: leaving]
eminence_ has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
senayar has quit []
aryaching_ has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
aryaching has quit [Ping timeout: 246 seconds]
amclain has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
eminence_ has joined #ruby
dancer_ has quit [Quit: ZNC - 1.6.0 - http://znc.in]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has joined #ruby
rbowlby has joined #ruby
atomical has joined #ruby
c0m0 has quit [Quit: Leaving]
dancer_ has joined #ruby
arthurix_ has joined #ruby
nertzy2 has joined #ruby
dancer_ has quit [Changing host]
dancer_ has joined #ruby
baweaver has joined #ruby
afaris has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jardayn has quit [Quit: Leaving]
arthurix has quit [Ping timeout: 244 seconds]
Jardayn has joined #ruby
tubuliferous_ has quit [Read error: Connection reset by peer]
tubulife- has joined #ruby
benlieb has joined #ruby
roxtrongo has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ibouvousaime has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
yashinbasement has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
desmondhume has quit [Read error: Connection reset by peer]
skweek has joined #ruby
Hounddog has quit [Remote host closed the connection]
desmondhume has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
nofxx_ has joined #ruby
thither has quit [Ping timeout: 250 seconds]
pietr0 has joined #ruby
roxtrongo has quit [Ping timeout: 276 seconds]
terminalrecluse has quit [Quit: Textual IRC Client: www.textualapp.com]
jimms has joined #ruby
beanHolez has joined #ruby
yashinbasement has quit [Ping timeout: 264 seconds]
zenguy_pc has joined #ruby
zenguy_pc has quit [Max SendQ exceeded]
bMalum has joined #ruby
Daneel has joined #ruby
<Daneel> hi
Ilyes512 has joined #ruby
terminalrecluse has joined #ruby
zenguy_pc has joined #ruby
yardenbar has joined #ruby
<Daneel> i am absolut newby in ruby
TPBallbag has quit [Remote host closed the connection]
<Daneel> i would like to write multi line in a file
<Daneel> i found out to create a file descriptor : http://ruby-doc.org/core-2.2.3/File.html#method-c-new
<Daneel> but then i am blocked
TPBallbag has joined #ruby
<jhass> Daneel: File.write("foo.txt", "first line\nsecond line")
<Daneel> can some one explain how to use this FD ?
<Daneel> jhass: how to write several line like with EOF in Bash ?
<jhass> google "Ruby heredoc"
<Daneel> the nearer i found is this http://www.tutorialspoint.com/ruby/ruby_syntax.htm
blackmesa has quit [Ping timeout: 260 seconds]
<jhass> ?quickref
mostlybadfly has joined #ruby
mrtomme has quit [Ping timeout: 260 seconds]
<Daneel> jhass: i am reading
<jhass> lengthy version: File.open("foo.txt") do |file| file.puts "first line"; file.puts "second line"; end
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ZhdispjJHD has joined #ruby
mrtomme has joined #ruby
s2013 has joined #ruby
<jhass> er, File.open("foo.txt", "w") actually
eminence_ has quit [Ping timeout: 252 seconds]
tubuliferous_ has joined #ruby
ZhdispjJHD has left #ruby [#ruby]
aryaching_ has quit []
<Daneel> jhass: i don't want to have to make one line then a second line etc
DoubleMalt has quit [Remote host closed the connection]
TPBallbag has quit [Ping timeout: 246 seconds]
<Daneel> i want to put all lines like they will be in the futur file
desmondhume has quit [Remote host closed the connection]
<tobiasvl> so a heredoc
thither has joined #ruby
<tobiasvl> or just "foo
<tobiasvl> bar"
<tobiasvl> ?
<tobiasvl> or %{string \n strang}
<tobiasvl> %Q|foo\n bar|
<tobiasvl> lots of ways
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Ping timeout: 246 seconds]
<Daneel> with the heredoc method the use the puts command
<Daneel> but the put command does not write to a file
blunckr has joined #ruby
<jhass> Daneel: File.write "foo.txt", <<MY_DIARY
<jhass> hello
<jhass> MY_DIARY
blunckr has left #ruby [#ruby]
<Daneel> ah it looks what i am looking for
<Daneel> i make some checks
aspiers has quit [Ping timeout: 240 seconds]
lipoqil has quit [Quit: Connection closed for inactivity]
eminencehc has joined #ruby
<Daneel> jhass: the write method is not in http://ruby-doc.org/core-2.2.3/File.html
s2013 has quit [Read error: Connection reset by peer]
<jhass> it's actually inherited from IO http://ruby-doc.org/core-2.2.3/IO.html#method-c-write
<Daneel> ah ok
<Daneel> it looks like climbing a huge mountain for me but simple for you :D
<Daneel> thank you for the help
secretsignal has joined #ruby
secretsignal has left #ruby [#ruby]
<jhass> btw you can use newlines inside a regular "quoted string" too
dmolina1 has joined #ruby
secretsignal has joined #ruby
dmolina has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
idefine has quit []
baweaver has joined #ruby
thither has left #ruby ["WeeChat 1.0.1"]
stan has quit [Ping timeout: 250 seconds]
shadoi has joined #ruby
demonlove has joined #ruby
jimms has quit [Remote host closed the connection]
riotjones has joined #ruby
momomomomo has quit [Quit: momomomomo]
<demonlove> hello m going to partivipate in my first hackthon, i want to make some awesome app in ruby any idea?
<jhass> isn't coming up with your own idea sorta the deal with these?
afaris has joined #ruby
afaris has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
<demonlove> no i ahve some api making idea
kies has quit [Ping timeout: 252 seconds]
dmolina1 has quit [Ping timeout: 255 seconds]
<demonlove> actually this will be my first hackthon so getting confused how much they are expexting?
dhollinger has quit [Ping timeout: 240 seconds]
<jhass> I don't think there's some standard for that, aim for something you'll be proud of to realize
<jhass> in that timeframe
banister has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
<demonlove> ok!!
krak3n has quit [Ping timeout: 250 seconds]
<demonlove> like stock market teding api
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<demonlove> trading
fedexo has quit [Ping timeout: 240 seconds]
grill has joined #ruby
<Papierkorb> demonlove: flappy bird with the level being generated out of live stock trading data
segmond has quit [Ping timeout: 246 seconds]
colegatron has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
<demonlove> Papierkorb explain litle bit..
tulak has joined #ruby
beanHolez has quit [Remote host closed the connection]
<Papierkorb> demonlove: well you must've heard of flappy bird. you control a flying 'object' (a bird or so), and can only really interact with it by telling it to fly up a bit, after which it quickly descends again. then, the original ripped sprites out of super mario (or something), and put pipes from the bottom and the top, creating a course which you have to navigate through. The object goes to the right by itself. that course could technically be
<Papierkorb> generated out of stock data.
Lorn_ is now known as Lorn
Lorn has quit [Changing host]
Lorn has joined #ruby
jericon has quit [Quit: leaving]
<Papierkorb> demonlove: not claiming it's a good game mechanic though :P
ruurd has quit [Quit: ZZZzzz…]
ta has joined #ruby
<demonlove> awesome
EllisTAA has joined #ruby
eminencehc has quit [Ping timeout: 250 seconds]
jericon has joined #ruby
htmldrum has joined #ruby
nertzy2 has quit [Quit: This computer has gone to sleep]
<Papierkorb> demonlove: flappy bird was basically a rip off mechanically wise from the 'helicoptergame' http://www.helicoptergame.net/ (warning, requires flash)
omninonsense is now known as [spoiler]
grill has quit [Quit: Textual IRC Client: www.textualapp.com]
beanHolez has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Connection closed for inactivity]
jamto11 has joined #ruby
lipoqil has joined #ruby
<Daneel> so
pdoherty has joined #ruby
<Daneel> i i made somes tests here my code and error message
<Daneel> what is wrong ?
s2013 has joined #ruby
<adaedra> The comma after write.
<Daneel> ah ok
Pumukel has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
secretsignal has left #ruby [#ruby]
<demonlove> Papierkorb: is it built on ruby?
kimegede has joined #ruby
<Papierkorb> demonlove: what? That game? Nah, original was ActionScript2/Flash, there are also a bunch of Javascript clones of it
<Papierkorb> demonlove: and flappy bird .. probably java. not noteworthy. everything of it was an rip off anyway.
shadoi has quit [Quit: Leaving.]
spider-mario has joined #ruby
htmldrum has quit [Ping timeout: 252 seconds]
Eiam_ has joined #ruby
<demonlove> that was what i guesiing
<demonlove> i want to do in ruby
<demonlove> not a to-do like app
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 240 seconds]
<Papierkorb> Then I guess this is the right moment to learn about doing graphics in ruby :)
dhollinger has joined #ruby
platzhirsch has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 272 seconds]
<demonlove> ha ha
tomphp has joined #ruby
ht__ has joined #ruby
<demonlove> Papierkorb: one more thing do you have any idea about the making of game which appear on chrome homepage at the time of dns error
frem has joined #ruby
<Papierkorb> demonlove: no idea, I don't use chrome
bMalum has quit [Quit: bMalum]
eminencehc has joined #ruby
<demonlove> i prefer firefox but sometimes i use chrome and when there no internet connection that game works fine
<demonlove> complete timewaster
<Papierkorb> Doesn't work in Chromium. Oh, and "doesnotexist.com" is a shim, it does exist
benhuda has joined #ruby
<demonlove> chrome and chromium are different i guess
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
al2o3-cr has joined #ruby
arup_r has quit []
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdark has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
grill has joined #ruby
<Daneel> jhass: thank you for help
pandaant has quit [Remote host closed the connection]
<demonlove> +1
<jhass> Daneel: I intentionally didn't show you that way to do it, it's the least favorable
<jhass> Daneel: also note that MY_DIARY was aribtrary, actually to highlight that the identifier you can choose is arbitrary
roxtrongo has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> Daneel: use File.open with a block or File.write
Ilyes512 has joined #ruby
tomphp has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
St1gma has joined #ruby
psmolen has joined #ruby
adac has joined #ruby
tubuliferous_ has joined #ruby
dlitvak has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
roxtrongo has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
<adaedra> <demonlove> chrome and chromium are different i guess
centrx has joined #ruby
lukaszes has joined #ruby
<adaedra> chromium is the full open-source version, without some components like Flash or the PDF reader, afaik
troulouliou_div2 has quit [Remote host closed the connection]
<nofxx_> pdf is there, flash thankfully don't
nofxx_ is now known as nofxx
<adaedra> I actually have Chrome on my computer only for the rare cases I need Flash
nofxx has quit [Changing host]
nofxx has joined #ruby
eminence_ has joined #ruby
codecop has joined #ruby
blackmesa has joined #ruby
eminencehc has quit [Ping timeout: 260 seconds]
<Daneel> jhass: yep i know this is a TAG
B1n4r10 has quit [Ping timeout: 264 seconds]
<Daneel> jhass: it is normal to not give all the keys and lets search. it is better for learning
<Daneel> jhass: your are a good teacher :D
St1gma has quit [Ping timeout: 255 seconds]
simplyianm has quit [Ping timeout: 260 seconds]
<adaedra> you are*
TPBallbag has joined #ruby
jetpackjoe has joined #ruby
eminence_ has quit [Ping timeout: 244 seconds]
jetpackjoe has quit [Max SendQ exceeded]
symbol has joined #ruby
<Daneel> oups adaedra :D
blackmesa has quit [Ping timeout: 244 seconds]
shadoi has joined #ruby
B1n4r10 has joined #ruby
rgtk has joined #ruby
rgtk has quit [Remote host closed the connection]
rgtk has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leitz has joined #ruby
<leitz> On antiquated Ruby, what do you have to "require" for an "exit" to end the program?
<adaedra> define “antiquated”
TPBallbag has quit [Ping timeout: 255 seconds]
renderfu_ has joined #ruby
<leitz> 1.8.7
al2o3-cr has quit [Ping timeout: 240 seconds]
ibouvousaime has quit [Ping timeout: 252 seconds]
ht__ has joined #ruby
j416 has quit [Quit: o/]
<adaedra> 18>> method(:exit)
<ruboto> adaedra # => #<Method: Object(Kernel)#exit> (https://eval.in/471363)
simplyianm has joined #ruby
wilsonc91 has joined #ruby
<adaedra> it should be there, leitz
<leitz> I thought so too, but it kept complaining about a syntax error after the exit.
renderf__ has quit [Ping timeout: 260 seconds]
jsageryd has joined #ruby
nettoweb has joined #ruby
arthurix_ has quit [Read error: Connection reset by peer]
arthurix has joined #ruby
baweaver has quit [Remote host closed the connection]
beanHolez has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
_blizzy_ has joined #ruby
St1gma has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
Kabaka has quit [Quit: WeeChat 1.3]
dravine has joined #ruby
simplyianm has quit [Ping timeout: 276 seconds]
s2013 has joined #ruby
Kabaka has joined #ruby
teemo_shrooms has joined #ruby
<shevy> what code did you use
linocisco has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
Kabaka has quit [Changing host]
Kabaka has joined #ruby
ur5us has joined #ruby
<leitz> shevy, I just put the exit before the offending code to isolate it. Wound up putting it before everything and it still choked.
<leitz> I've fixed the offending issue, as it was operator error. Just confused about the exit.
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<leitz> Now I'm confused about gets. My confusion grows! Home ill today, so even more confused than normal.
<Daneel> bb
<leitz> Before I get too far in gets, is there a more "secure" option? I know the C crowd pales at using their gets.
<adaedra> It depends on your needs
eminence_ has joined #ruby
<adaedra> You can also take a look at https://github.com/JEG2/highline
<leitz> Well, let me share a personal challenge. I've been trying to understand the whole "put stuff in and out of a datastore" thing for a few years and in more than one language.
<leitz> In this case I'm working on editing stuff in a JSON file. https://gist.github.com/LeamHall/9367e672672da3ac6eef
krak3n has joined #ruby
build22_ has joined #ruby
riotjone_ has joined #ruby
jsageryd is now known as jsageryd_
jsageryd_ is now known as jsageryd__
jsageryd__ is now known as jsageryd___
<mg^> gets in C is broken because it has no bounds checking and the target buffer is fixed size.
jsageryd___ is now known as jsageryd
<mg^> that's not the case in Ruby so it's fine if you just want to read a little bit of stuff
<linocisco> I am reading "Learn the ruby the hard way" by Zee Shaw
Daneel has quit [Ping timeout: 246 seconds]
<leitz> Every once in a while I come back to an attempt to finally figure this out. SInce my wife is out of town on a trip, I figured this might be the time. May also keep me out of trouble...
chipotle has quit [Remote host closed the connection]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
<leitz> mg^, thanks.
darkf has quit [Quit: Leaving]
<leitz> One day I'd like to look at more secure coding skills. Right now I'm still in coder kindergarden.
<EllisTAA> if you were asked to search one’s genome for a specific set of proteins, what would be the most efficient way to do that? i got asked this in an interview yesterday
hackeron has quit [Remote host closed the connection]
<shevy> EllisTAA just run a BLAST search on it
juddey has joined #ruby
<EllisTAA> shevy: i’ve never heard of it, ill look it up
ht__ has quit [Client Quit]
ta has quit [Remote host closed the connection]
<shevy> the algorithm is explained somewhere... k-mer search ... https://en.wikipedia.org/wiki/BLAT_%28bioinformatics%29#Search_stage
<mg^> Sounds like the interview questions I got asked at Google
<EllisTAA> shevy: interesting ….
jsageryd has quit [Changing host]
jsageryd has joined #ruby
duncannz has joined #ruby
momomomomo has joined #ruby
<mg^> EllisTAA: does the job involve genetics or was this one of those random ethings?
<EllisTAA> mg^: random
riotjone_ has quit [Ping timeout: 240 seconds]
duncannz has quit [Max SendQ exceeded]
<shevy> hehe
<mg^> don't know how that e snuck in there
momomomomo has quit [Client Quit]
St1gma has quit [Ping timeout: 240 seconds]
ht__ has joined #ruby
<shevy> I guess you could abstract it for any other needle-in-haystack search whenever you have a huge haystack (and no needle hidden inside hahaha)
duncannz has joined #ruby
baweaver has joined #ruby
duncannz has quit [Max SendQ exceeded]
<mg^> One of the google interview questions I got was a "how would you search X to find Y" and I stupidly said "oh, I'd probably write a regex for it"
<EllisTAA> lol
<mg^> and the guy hands me a whiteboard marker
duncannz has joined #ruby
duncannz has quit [Client Quit]
<mg^> then proceeded to tell me how each attempt was wrong
<EllisTAA> mg^: lol was he at least a nice guy
<EllisTAA> mg^: sounds like a good appracoh to me
duncannz has joined #ruby
<shevy> depends on whether they hired him or just lectured him!
duncannz has quit [Max SendQ exceeded]
joshf_ has joined #ruby
<mg^> They offered me a job (RHEL sysadmin) but not the job I was interviewed for (site reliability engineer).
<shevy> yikes
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
DoubleMalt has joined #ruby
<leitz> Hmm...I could use a job like that. Either one,actually.
duncannz has joined #ruby
<mg^> I didn't really have the experience they were looking for for that SRE job anyway, good call on their part
<baweaver> Their phone screen is horrid
pdoherty has quit [Quit: Leaving]
<mg^> Also had a good job as a Linux admin at another giant company, so I ultimately said no
<baweaver> you have to remember pointless details of man pages for some of it
<slash_nick> it's unbelievable how many roles they have
duncannz has quit [Client Quit]
<leitz> I interviewed for an SRE job there a while back. The interviewer didn't thiink Bash was a programming language.
casadei has quit [Remote host closed the connection]
ht__ has quit [Client Quit]
jetpackjoe has joined #ruby
ht__ has joined #ruby
bb010g has joined #ruby
tulak has quit [Remote host closed the connection]
rwilcox has quit [Quit: WeeChat 1.2-dev]
<leitz> Still not getting the gets thing to work yet.
jetpackjoe has quit [Max SendQ exceeded]
Rollabunna has joined #ruby
<shevy> user_input = gets.chomp
tulak has joined #ruby
jetpackjoe has joined #ruby
kadoppe has quit [Ping timeout: 250 seconds]
hackeron has joined #ruby
kadoppe has joined #ruby
lapide_viridi has joined #ruby
linocisco has quit [Ping timeout: 255 seconds]
tulak has quit [Remote host closed the connection]
ht__ has quit [Client Quit]
ht__ has joined #ruby
Musashi007 has joined #ruby
nertzy2 has joined #ruby
<leitz> Note that my expectation is "operator error", just haven't figured out the paticular error. Off to make a little coffee, back shortly.
colli5ion has quit []
Rollabunna has quit [Ping timeout: 276 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
htmldrum has joined #ruby
jamto11_ has joined #ruby
casadei has joined #ruby
tomphp has joined #ruby
umgrosscol has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
tubuliferous_ has quit [Ping timeout: 250 seconds]
St1gma has joined #ruby
eminence_ has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
baweaver has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 240 seconds]
<mg^> leitz: a bare gets is equivalent ARGF.gets, so the result is the first line of the first file you gave it on the command line. Try STDIN.gets instead
stannard has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
cdg has quit [Remote host closed the connection]
symbol has quit [Quit: WeeChat 1.1]
<leitz> mg^, STDIN.gets did the trick, thanks!
stannard has quit [Ping timeout: 260 seconds]
diegoaguilar has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
trosborn has joined #ruby
lapide_viridi has quit [Quit: Leaving]
decoponio has quit [Quit: Leaving...]
linuxboytoo has joined #ruby
socialjackie has joined #ruby
minimalism is now known as oreillelapin
rehat_ has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
Renich has joined #ruby
Renich has quit [Client Quit]
postmodern has joined #ruby
Renich has joined #ruby
demonlove has quit [Ping timeout: 240 seconds]
sp4rrow has joined #ruby
ciwolsey has joined #ruby
ciwolsey has left #ruby ["Leaving"]
graffix has quit [Quit: graffix]
eminencehc has joined #ruby
oreillelapin is now known as minimalism
karapetyan has joined #ruby
chipotle has joined #ruby
pkrnj has joined #ruby
ibouvousaime has joined #ruby
newdan has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhollinger has quit [Ping timeout: 240 seconds]
icey has quit [Ping timeout: 240 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juddey has quit [Ping timeout: 276 seconds]
icey has joined #ruby
<leitz> In an attempt to graduate Coder Kindergarden, any suggestions on improving the code? #!/usr/bin/env ruby
<leitz> # edit_json.rb
<leitz> # 0.0.1
<leitz> require 'json'
<leitz> $my_hash = Hash.new
<leitz> def valid_json?(json)
<leitz> begin
<leitz> data = JSON.parse(json)
<leitz> return data, true
<leitz> rescue Exception => e
<leitz> return false
<leitz> end
<leitz> end
<leitz> def show_keys(hash)
<newdan> leitz: Use dpaste.org or something
<leitz> hash_keys = Array.new
<leitz> hash.each_key do |key|
<newdan> leitz: Don't paste code right into IRC
<leitz> hash_keys << key
<leitz> end
<leitz> hash_keys.sort!
<leitz> return hash_keys
<leitz> end
mistermocha has quit [Ping timeout: 240 seconds]
<leitz> def edit_key(key)
<leitz> if $my_hash.has_key?(key)
<leitz> puts "Okay, we'll edit #{key}."
<leitz> subkeys = Array.new
<leitz> $my_hash[key].each_key do |subkey|
<leitz> subkeys << subkey
<leitz> end
<leitz> subkeys.sort!
<leitz> subkeys.each do |sk|
<leitz> print "#{sk} "
demonlove has joined #ruby
<leitz> end
<leitz> puts
<leitz> puts "Which subkey do you want to edit?"
<leitz> subkey_to_edit = STDIN.gets.chomp
<leitz> puts "Okay, fixing #{subkey_to_edit}."
<centrx> What are you doing
<leitz> puts "That subkey is currently #{$my_hash[key][subkey_to_edit]}."
<Mon_Ouie> !kick leitz
<atomical> are you live coding?
leitz was kicked from #ruby by ruboto [leitz]
<newdan> Haha thank you Mon_Ouie
leitz has joined #ruby
<leitz> if valid
<leitz> keys_list = show_keys($my_hash)
<leitz> puts "There are #{keys_list.count} keys. Which would you like to edit?"
al2o3-cr has quit [Ping timeout: 240 seconds]
<leitz> STDOUT.flush
<centrx> You just failed Coder Kindergarten
<newdan> Wtf
idefine has joined #ruby
<leitz> key_to_edit = STDIN.gets.chomp
<Mon_Ouie> !mute leitz 5m
<mg^> well, that went downhill fast
<atomical> that's how you do it
Thaxll has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
benlovell has joined #ruby
<newdan> No need to berate him for not knowing not to paste in IRC. Everyone's new at some point...
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nertzy2 has quit [Quit: This computer has gone to sleep]
<Thaxll> pastebin is down
<newdan> There's tons, gist is mentioned in the topic and https://dpaste.de is one I use a lot for some reason
blackmesa has joined #ruby
<shevy> lol
dmitch has joined #ruby
<shevy> leitz man what up!!!
<leitz> Yeah, shevy. I tried to cut and paste too fast.
<leitz> I *thought* was I was pasting the Gist URL...
<shevy> what IRC client do you use?
<leitz> XChat
<shevy> curious :)
benlovell has quit [Ping timeout: 260 seconds]
<shevy> I had similar problems with irssi and weechat... I never managed to get it right
<leitz> I run on a CentOS 6 laptop.
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leitz> Nyah, this was purely operator error.
<Thaxll> anyone good with deep knowledge of system and os related to ruby?
<shevy> I hate laptop keyboards... I can't write as quickly on them as I can on my desktop machine at home
solars has joined #ruby
yashinbasement has joined #ruby
subscope has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<leitz> That's why I have a big one plugged into mine. :)
matp has quit [Ping timeout: 260 seconds]
<leitz> There's really no good excuse for that last bit.
<leitz> I will point out, though, that no one seemed to see the apology before booting me or calling me a dumba$$.
<shevy> Thaxll best you can do is to try and ask anyway
<atomical> leitz: I don't think your apology came through
<shevy> leitz spammers must die early!
<atomical> i didn't see it
arescorpio has joined #ruby
<Mon_Ouie> No one saw the apology because it wasn't sent to us
s2013 has quit [Read error: Connection reset by peer]
<leitz> It was at the :57 mark, right after the spam.
<leitz> Odd it didn't come through.
<Mon_Ouie> Your client probably throttled the amount of messages that it actually sent to avoid getting killed for spam, that's what happens when you try sending many messages at once
<Thaxll> I have a realy weird problem it's related to puppet + passenger on Centos 7, I got that error first: http://pastebin.com/EjDAqMV1 for some reason it can't execute hostname and env
<mg^> I'm pretty sure that either your client or the IRC server was rate limiting you
<ruboto> Thaxll, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/0ce88c18cb15bd1e2834
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<darix> shevy: irssi actually asks before sending more than 5 lines
subscope has quit [Client Quit]
matp has joined #ruby
<shevy> I can try to test that!!!
yoongkang has joined #ruby
subscope has joined #ruby
<shevy> I don't actually remember, it was a long time ago
v0n has quit [Ping timeout: 260 seconds]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
<Thaxll> hostname and env are available to all users after doing some strace() on passenger process I found that it was trying to execute those commands with the wrong path
<leitz> Interesting. My client shows the entire mess.
yfeldblum has quit [Remote host closed the connection]
<Mon_Ouie> The last message I saw before muting you was "key_to_edit = STDIN.gets.chomp", FYI
moei has joined #ruby
<Mon_Ouie> Anyway feel free to paste in a link to your code if you want us to actually answer your question :p
<leitz> Ah, okay, Mon_Quie,
dhollinger has joined #ruby
nertzy2 has joined #ruby
* leitz tests his paste first...
Ilyes512 has joined #ruby
eminencehc has quit [Remote host closed the connection]
riotjone_ has joined #ruby
sye has quit [Remote host closed the connection]
Ilyes512 has quit [Client Quit]
sye has joined #ruby
mistermocha has joined #ruby
beanHolez has joined #ruby
ldnunes has quit [Quit: Leaving]
<Mon_Ouie> You should probably have a look at the list of methods in Hash, some of the things you implement are already available as methods on that class
yoongkang has quit [Ping timeout: 272 seconds]
<Mon_Ouie> For example, collecting an array with all the keys of a hash is simply hash.keys
dionysus69 has quit [Ping timeout: 244 seconds]
dmitch has quit [Ping timeout: 260 seconds]
v0n has joined #ruby
riotjone_ has quit [Ping timeout: 240 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mg^> For that matter, you also shouldn't rescue Exception. You should get as specific as possible, in this case a JSON::ParseError I believe.
ht__ has quit [Quit: Konversation terminated!]
simplyianm has joined #ruby
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
isjaylee1 has joined #ruby
socialjackie has quit [Quit: Leaving]
haxrbyte has joined #ruby
djcp1 has quit [Ping timeout: 240 seconds]
jetpackjoe has joined #ruby
moeSeth has quit [Quit: Connection closed for inactivity]
<leitz> Mon_Quie, thanks! I've made that change and eliminated the show_keys method.
<hohenfall> this is more of a stylistic choice I guess, but you may want to consider putting this functionality into a class instead of using global variables
Renich has quit [Quit: leaving]
Renich has joined #ruby
ht__ has joined #ruby
<leitz> mg^, I'm still learning to use Exceptions, lemme go read up on JSON::ParseError.
sye has quit [Remote host closed the connection]
<mg^> The main thing is that you want to rescue things you expect, so that unexpected things don't cause mystery errors.
<leitz> hohenfall, I'm even worse at classes than I am at IRC. :) Still, your point is vaild and I'd really like to put this into a class.
sye has joined #ruby
<mg^> For example if you manage to delete require 'json', then JSON doesn't exist anymore, but your valid_json? simply starts to return false for everything
_stu_ has quit [Quit: _stu_]
nertzy2 has quit [Quit: This computer has gone to sleep]
pwnd_nsfw has quit [Quit: Leaving]
<mg^> and while in a small thing like this that's easy to spot, once you get into bigger things you'll tear your hair out and start shouting "BUT THAT IS VALID JSON!!!" at your monitor
<shevy> so this is how you lost your hair
pwnd_nsfw has joined #ruby
Musashi007 has quit [Quit: Musashi007]
al2o3-cr has joined #ruby
futilegames has joined #ruby
htmldrum has joined #ruby
<mg^> I don't think I lost any that way, though in my early days transitioning from a lazy bash/perl programmer to a Ruby programmer, I certainly rescued more than my fair share of Exceptions :)
sankaber has quit [Remote host closed the connection]
sankaber has joined #ruby
shadoi has quit [Quit: Leaving.]
baweaver has joined #ruby
skade has joined #ruby
shredding has joined #ruby
craysiii has joined #ruby
htmldrum has quit [Ping timeout: 252 seconds]
al2o3-cr has quit [Ping timeout: 252 seconds]
adac has quit [Ping timeout: 260 seconds]
eminencehc has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
juddey has joined #ruby
diegoaguilar has quit [Ping timeout: 252 seconds]
futilegames has quit [Quit: futilegames]
benlovell has joined #ruby
teemo_shrooms has quit [Quit: teemo_shrooms]
roxtrongo has joined #ruby
dikaio has joined #ruby
lukaszes has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
momomomomo has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
VeryBewitching has joined #ruby
<VeryBewitching> G'day folks.
roxtrongo has quit [Ping timeout: 260 seconds]
TPBallbag has joined #ruby
TPBallbag is now known as Comakip_
jwaldrip has joined #ruby
Comakip_ is now known as TPBallbag
howdoicomputer has joined #ruby
tvw has quit [Read error: Connection reset by peer]
adac has joined #ruby
renderf__ has joined #ruby
yashinbasement has quit [Ping timeout: 240 seconds]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lukaszes has joined #ruby
<shevy> hello bery vewitching
_stu_ has joined #ruby
s2013 has joined #ruby
renderfu_ has quit [Ping timeout: 240 seconds]
moeabdol has quit [Read error: Connection reset by peer]
eminencehc has quit [Remote host closed the connection]
moeabdol has joined #ruby
B1n4r10 has quit [Ping timeout: 260 seconds]
B1n4r10 has joined #ruby
casadei has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
Guest36 has quit [Ping timeout: 264 seconds]
shredding has quit [Ping timeout: 252 seconds]
<baweaver> shevy: I can tell you have some reverseations about their name
futilegames has joined #ruby
Dreamer3 has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
shinnya has joined #ruby
isjaylee1 has left #ruby [#ruby]
TPBallbag has joined #ruby
Musashi007 has joined #ruby
benlovell has joined #ruby
cdg has joined #ruby
* leitz crosses his fingers before pasting...
jwaldrip has quit [Quit: Be back later ...]
<leitz> I've started on some exceptions.
DoubleMalt has quit [Ping timeout: 250 seconds]
ItSANgo has quit [Quit: Leaving...]
bitri has joined #ruby
jwaldrip has joined #ruby
jwaldrip has quit [Remote host closed the connection]
<leitz> Still have a couple things to fix. There's no clean way to exit out before updating. Also, it assumes a two depth hash. Some of the ones I need to work on are one deep or more than two.
trosborn has quit [Quit: trosborn]
baweaver has quit [Remote host closed the connection]
<newdan> leitz: your valid_json? method is real weird conceptually
tubuliferous_ has joined #ruby
tubuliferous_ has quit [Remote host closed the connection]
<newdan> leitz: Usually methods ending with ? return true/false, but yours returns [data, true] *or* raises a ParserError
<leitz> newdan, how so? It came from my errors editing json manually. vaild_json is mainly a way to ensure I'm actually using json.
benlovell has quit [Ping timeout: 272 seconds]
tubuliferous_ has joined #ruby
<leitz> The parser error is about half an hour old. I heard about it somewhere.
<leitz> The other bits, yeah, I see what you mean.
<newdan> newdan: I would name it maybe something like try_parse_json and have it return [data, true] or [nil, false]
skweek has joined #ruby
<leitz> What about the exception? That was mg^'s point, I thought. To show more than just "it broke".
kies has joined #ruby
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krak3n has quit [Quit: WeeChat 1.3]
tomphp_ has joined #ruby
codecop has quit [Remote host closed the connection]
<newdan> leitz: Either let it propagate (meaning don't even bother rescue-ing it if you're just gonna raise it again), or handle it there
dlitvak has quit [Remote host closed the connection]
<newdan> leitz: Returning [data, true] in one case makes it seem like your method is *meant* to handle invalid data in the bad case, by doing something like returning [nil, false]. But instead it just raises a ParserError, which doesn't buy you anything over just calling JSON.parse directly instead of calling valid_json?
s2013 has quit [Read error: Connection reset by peer]
tomphp has quit [Ping timeout: 255 seconds]
bitri has quit [Quit: Textual IRC Client: www.textualapp.com]
rakm has joined #ruby
riotjones has joined #ruby
DoubleMalt has joined #ruby
<newdan> In your calling code you still need to begin/rescue JSON::ParserError, so the question then is why use valid_json? instead of JSON.parse?
quazimodo has quit [Ping timeout: 276 seconds]
<leitz> Hmm...lemme go try that.
s2013 has joined #ruby
<newdan> leitz: You don't seem to be handling the ParserError at the call site anyway. So you could probably just delete valid_json? altogether and use JSON.parse directly
trosborn has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
Musashi007_ has joined #ruby
s2013 has joined #ruby
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Ping timeout: 246 seconds]
alexherbo2 has quit [Quit: WeeChat 1.3]
EllisTAA has quit [Quit: EllisTAA]
riotjones has quit [Ping timeout: 272 seconds]
bkxd has quit [Ping timeout: 250 seconds]
vdamewood has quit [Quit: Life beckons.]
mistermocha has joined #ruby
scripore has joined #ruby
mistermocha has quit [Remote host closed the connection]
scripore has quit [Max SendQ exceeded]
scripore has joined #ruby
mistermocha has joined #ruby
<leitz> Is there a way to get just a very short message on an exception"? The JSON::ParserErrror gives me an IRC paste worth of screen.
eminencehc has joined #ruby
<leitz> I can do my own error, but wasn't sure if there's a more Ruby way to do it.
Rollabunna has joined #ruby
<shevy> you can do your own error?
<shevy> you should not be doing any errors!
haxrbyte has quit [Quit: Leaving...]
<newdan> shevy: I think he means show an error to the user
<shevy> oh
saddad has joined #ruby
rbowlby has quit [Remote host closed the connection]
<leitz> I think I'm quite prficient at errors! Wanna see some code? :P
s2013 has quit [Read error: Connection reset by peer]
simplyianm has quit [Remote host closed the connection]
<newdan> leitz: Oh and I was mistaken when I said you weren't rescuing the error anyway. You are on line 54. So instead of outputting "bang" you can just, say, puts "Error: JSON is invalid"
simplyianm has joined #ruby
futilegames has quit [Quit: futilegames]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
baweaver has joined #ruby
momomomomo has quit [Quit: momomomomo]
<newdan> leitz: Although it's generally good to write to STDERR and return a nonzero status code to the OS. #abort does both of those
<newdan> leitz: So on line 55 you can do `abort "JSON is invalid"`
icey has quit [Quit: icey]
nertzy2 has joined #ruby
s2013 has joined #ruby
ixti has joined #ruby
<newdan> leitz: And since you don't use the exception object you might as well turn line 54 into just `rescue JSON::ParserError` (taking away the `=> bang` at the end)
icey has joined #ruby
ta has joined #ruby
icey has quit [Remote host closed the connection]
momomomomo has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
Musashi007_ has quit [Quit: Musashi007_]
<mg^> ALso get used to using single-quoted strings when you don't need interpolation, or someday Rubocop is going to come around and shoot you in the nethers
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbowlby has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
synthroid has quit []
bb010g has quit [Quit: Connection closed for inactivity]
<ljarvis> nooo
eminencehc has quit [Remote host closed the connection]
<adaedra> Or just disable this warning, it's not really important
<ljarvis> yeah, fuck using single-quoted strings just because you dont need interpolation
casadei has joined #ruby
idefine has quit [Remote host closed the connection]
icey has joined #ruby
wilsonc91 has joined #ruby
<mg^> I'm kind of on board with it a bit, but mostly due to habit formed from using languages that are more fast and loose with interpolation
icey has quit [Remote host closed the connection]
zeroDivisible has quit [Ping timeout: 255 seconds]
icey has joined #ruby
joshf_ has quit [Quit: Connection closed for inactivity]
skweek has joined #ruby
<mg^> e.g echo "That will cost $50" in bash
amoeba_ has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
yfeldblum has joined #ruby
idefine has joined #ruby
<leitz> Tried to just use the Hash.keys option but it puts all the subkeys into one string as opposed to an array item each.
<leitz> Line 14 failed.
<mg^> You're concatenating when you use <<
<mg^> doesn't do what you expect
<leitz> Oh...
Pumukel has joined #ruby
lukaszes has joined #ruby
<leitz> Why doesn't L15-L17 do the same?
<mg^> well, your line 14 concatenates an array as a single element
<mg^> that is, it's an array nested in an array
pwnd_nsfw has quit [Quit: Leaving]
doddok has quit [Quit: Leaving]
TPBallbag has quit [Quit: don't try and hack my account Ballkenende]
<mg^> your 15-17 are concatenating individual keys, so that's getting what you want
jpfuentes2 has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby
<leitz> Okay, I'll stick with 15-17.
DrShoggoth has joined #ruby
icey has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 240 seconds]
k3asd` has joined #ruby
rgtk has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
icey has joined #ruby
pwnd_nsfw has joined #ruby
<leitz> I need to take a break and see if I can figure out the multi-level issue.
<mg^> After your break, read the docs on what Hash#keys does
<mg^> specifically what it returns
<newdan> leitz: Also don't be afraid to play around with small snippets and methods in irb/pry
<mg^> yeah pry is your friend
icey has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 250 seconds]
eminencehc has joined #ruby
UniFreak has quit [Ping timeout: 244 seconds]
eminencehc has quit [Read error: Connection reset by peer]
axsuul has quit [Ping timeout: 250 seconds]
eminencehc has joined #ruby
zeroDivisible has joined #ruby
idefine has joined #ruby
sinkensabe has joined #ruby
icey has joined #ruby
brainfire has quit [Quit: Konversation terminated!]
maikowblue has quit [Ping timeout: 250 seconds]
maddmaxx has quit []
maddmaxx has joined #ruby
maikowblue has joined #ruby
maikowblue has quit [Client Quit]
eminencehc has quit [Ping timeout: 240 seconds]
rehat_ has quit [Ping timeout: 252 seconds]
nertzy2 has quit [Quit: This computer has gone to sleep]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
B1n4r10 has quit [Ping timeout: 260 seconds]
icey has quit [Remote host closed the connection]
icey has joined #ruby
beanHolez has quit []
adac has quit [Ping timeout: 255 seconds]
tenderlove has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
ruurd has quit [Quit: ZZZzzz…]
casadei has quit [Remote host closed the connection]
<kiki_lamb> Hey, I've noticed that when I use Object.send(:remove_const,blah) to undefine a class and then re-load, it's instances seemingly retain their old behaviour. Is there a way to have the instances adopt the behaviour of the reloaded class?
mary5030 has quit [Remote host closed the connection]
s2013 has joined #ruby
s2013 has quit [Max SendQ exceeded]
al2o3-cr has quit [Ping timeout: 264 seconds]
icey has quit [Remote host closed the connection]
jetpackjoe has joined #ruby
icey has joined #ruby
s2013 has joined #ruby
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle_ has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
idefine has quit [Ping timeout: 240 seconds]
webopsx has joined #ruby
jottr has joined #ruby
idefine has joined #ruby
webopsx has quit [Max SendQ exceeded]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aef has joined #ruby
eminencehc has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
s2013 has joined #ruby
yoongkang has joined #ruby
fifi-v has joined #ruby
momomomomo has quit [Quit: momomomomo]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
rgtk has joined #ruby
eminencehc has quit [Ping timeout: 252 seconds]
DoubleMalt has quit [Ping timeout: 244 seconds]
rattatmatt has quit [Quit: Leaving]
yoongkang has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
CloCkWeRX has joined #ruby
benlovell has joined #ruby
dhollinger has quit [Quit: WeeChat 1.2]
Rollabunna has joined #ruby
Melpaws has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 255 seconds]
Ox0dea has joined #ruby
moeabdol has joined #ruby
<Ox0dea> kiki_lamb: Classes don't undergo garbage collection, so you'll almost certainly have to drop down to C or do some hackery with Fiddle to completely forget a class definition.
benlovell has quit [Ping timeout: 272 seconds]
<TTilus> kiki_lamb: you are asking for changing object's class on the fly
waxjar has joined #ruby
axsuul has joined #ruby
newdan has quit [Remote host closed the connection]
<TTilus> afaik it is not possible in pure ruby
<Ox0dea> TTilus: Fiddle.
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TTilus> ok, yes, with fiddle
sgambino has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 42.0/20151029151421]]
heinrich5991 has quit [Quit: quit.]
Rollabunna has quit [Ping timeout: 244 seconds]
arescorpio has quit [Quit: Leaving.]
<TTilus> i reserve the right to feel that fiddle isn't "pure ruby" ;)
iTim has joined #ruby
<Ox0dea> An artificial limitation at best.
<eam> why don't classes undergo garbage collection?
DoubleMalt has joined #ruby
iTim has left #ruby [#ruby]
sinkensabe has quit [Remote host closed the connection]
<Ox0dea> kiki_lamb: https://eval.in/471388
St1gma has quit [Quit: Leaving]
sgambino has quit [Client Quit]
<Ox0dea> There's surely a way to do it without creating an instance of the new class, but the simplicity of this approach is nice.
<eam> Ox0dea: they look like they gc to me
<eam> loop { Class.new } is memory-stable
<TTilus> Ox0dea: why wouldn't classes gc?
<TTilus> afaik they do
<TTilus> it might be that at some point they didn't
Guest22572 has quit [Ping timeout: 255 seconds]
<Ox0dea> It seems only anonymous classes get collected.
axsuul has quit [Ping timeout: 260 seconds]
<Ox0dea> s/seems/is the case that/
<Ray`> I was trying to figure out how to use the equivalent of destructors in ruby classes
<Ray`> there is a way, it's not particularly clean though
gizmore has quit [Ping timeout: 252 seconds]
moei has quit [Ping timeout: 250 seconds]
saddad has quit [Ping timeout: 272 seconds]
<TTilus> hmm, does class become anonymous if you unbind the name with remove_const?
axsuul has joined #ruby
<Ox0dea> It's still alive in ObjectSpace.
<TTilus> Ray`: define_finalizer?
<Ox0dea> eam, TTilus: https://eval.in/471392
<Ox0dea> On my machine, that prints C and a RangeError because the second has been recycled.
moei has joined #ruby
<Ox0dea> Not sure why the results are different on eval.in.
trosborn has quit [Quit: trosborn]
<TTilus> Ox0dea: object space, good point
<Ox0dea> >> ObjectSpace
<ruboto> Ox0dea # => ObjectSpace (https://eval.in/471393)
kies has quit [Ping timeout: 276 seconds]
<Ox0dea> Even assigning the new class to a local instead of a constant prevents it being collected.
<Ox0dea> Does this mean we should try to use only anonymous classes?
pwnd_nsfw has quit [Ping timeout: 240 seconds]
quazimodo has joined #ruby
Coldblackice has joined #ruby
grill has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has quit [Read error: Connection reset by peer]
<TTilus> or that there should only exist a finite (and limited) set of classes during the lifetime of a process
nettoweb has joined #ruby
benlovell has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
s2013_ has joined #ruby
<TTilus> corollary: classes should be thought as static stuff
<spaceghost|work> plsno
Synthead has joined #ruby
baweaver has joined #ruby
<TTilus> didn't rails dev mode used to leak classes just because of non-anonymous classes not being collected?
<kiki_lamb> Ox0dea: okay, so if I decide to actually try doing this i'll go with anon classes, then.
waka has quit [Remote host closed the connection]
<kiki_lamb> Ox0dea: also, thanks, you always have really good answers to my perverse questions, heh.
<TTilus> kiki_lamb: if you need them to be collected, apparently you have to
<Ox0dea> kiki_lamb: How come? You're almost certainly approaching your problem the wrong way, but it's been demonstrated that it's quite easy to just swap a class in.
waka has joined #ruby
<Ox0dea> I suppose you'll want to use anonymous ones if you'll end up creating millions of 'em.
benlovell has quit [Ping timeout: 255 seconds]
<Ox0dea> And you're welcome, of course. I quite enjoy the perverse questions. ^_^
gizmore has joined #ruby
<kiki_lamb> Ox0dea: this question's not immediately applicable to any particular problem I'm having, it's more just speculation at this point.
pwnd_nsfw has joined #ruby
<Ox0dea> I see. Well, the slightly saner way to juggle behavior is Module#prepend.
howdoicomputer has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Ping timeout: 265 seconds]
Rollabunna has joined #ruby
neanderslob_ has joined #ruby
<Ox0dea> It's essentially redefinition, except you still have the option to "super down" into the old behavior.
neanderslob has quit [Ping timeout: 272 seconds]
zeroDivisible has quit [Ping timeout: 276 seconds]
jottr has quit [Ping timeout: 240 seconds]
sanjayu has joined #ruby
<kiki_lamb> hahah. you might recall, i'm working on that drum livecoding thing... so, I'm sitting there working on it, editing code in one pane and watching it's output scroll in another, hammering the save button in the text editor and then tabbing over to the other pane to start/stop my tool every minute or two to see the result of the changes I just made...
CloCkWeRX has quit [Ping timeout: 260 seconds]
<kiki_lamb> soo, the thought had occured to me that i could save a lot of starting/stopping of the tool if I just made it undefine and reload half it's class structure on every clock tick. :P
Can-ned_Food has joined #ruby
Thaxll has quit [Quit: Leaving]
<kiki_lamb> but apparently this is not that practical, and as that behaviour has no serious value in the finished product, it's not worth putting a lot of work into, I suppose.
NeverTired has joined #ruby
<Ox0dea> kiki_lamb: Why not practical? https://vimeo.com/36579366
<Ox0dea> Bret Victor is a visionary.
ibouvousaime has quit [Ping timeout: 246 seconds]
maddmaxx has quit []
trosborn has joined #ruby
<kiki_lamb> Ox0dea: eh, I've already got enough weird fun things to implement for the end use without sinking a lot of time into writing things solely useful for my own use during development
gizmore has quit [Ping timeout: 255 seconds]
<Ox0dea> kiki_lamb: Users and developers are mutually exclusive, you say? :P
howdoicomputer has joined #ruby
<kiki_lamb> i mean, really, in practical terms, i can basically get the effect i want on that front by setting my program to play 1 bar and then die and wrapping it in a bash while loop
rodfersou has quit [Quit: leaving]
<Ox0dea> Yikes.
spider-mario has quit [Read error: Connection reset by peer]
<kiki_lamb> Ox0dea: well... clearly not very exclusive, given the nature of what i'm making in the first place
sepp2k has quit [Quit: Leaving.]
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
<spaceghost|work> kiki_lamb: You could get a bit nutty and use something like guard?
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea> Guard isn't nutty.
maxz has joined #ruby
myztic has joined #ruby
<kiki_lamb> spaceghost|work: hahah, I can only handle so many layers of nuttiness at once.
<spaceghost|work> kiki_lamb: No, seriously, try it.
<spaceghost|work> It is a nice fs watcher that can do different configurable things when fs events match what you specify.
cornerma1 has joined #ruby
<spaceghost|work> There's bunches of plugins available too.
diegoaguilar has joined #ruby
<kiki_lamb> if the goal is merely saving me some hammering of 'C-cC-c!!\n' in bash, a while loop suffices, and lets me focus all the nuttiness at the heart of my actual program, where it belongs.
Oli`` has joined #ruby
benlovell has joined #ruby
Oli`` is now known as Guest2975
<kiki_lamb> spaceghost|work: oh, sure, i'm definitely not saying it's bad. from a cursory glance, it looks like i could probably use this to reimplement the loader class I use to read this thing's input language more cleanly.
<spaceghost|work> kiki_lamb: It'd give you new processes!
<kiki_lamb> but, for now, that component is working fine and I have a long list of fun and useful features to add elsewhere before revisiting it.
<spaceghost|work> Use something like spring or a preloader too.
quazimodo has quit [Ping timeout: 272 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
banister has joined #ruby
cornerman has quit [Ping timeout: 250 seconds]
umgrosscol has quit [Remote host closed the connection]
cornerma1 is now known as cornerman
yardenbar has quit [Ping timeout: 250 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kiki_lamb> maybe someday, sure. one day the loader will be visited, and some of that stuff could probably be handy.
Oli` has quit [Ping timeout: 276 seconds]
zeroDivisible has joined #ruby
tkuchiki has joined #ruby
lxsameer has quit [Quit: Leaving]
Ropeney has joined #ruby
Rollabunna has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 246 seconds]
Cache_Money has joined #ruby
Rollabunna has joined #ruby
Xeago has joined #ruby
<Cache_Money> What should I change so that I write to a tab-separated file instead of a csv? https://gist.github.com/anonymous/0da192d0ba7a9ad0a748
myztic has quit [Quit: leaving]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kiki_lamb> right now though, i've got a full plate: more advanced loop manipulation features, MIDI CC events, 'multiplayer mode', nodes that evolve on their own over time and figuring out how to produce some event models based on more complex math, like geometry and physics simulations, are all currently higher on the list than tampering with the loader.
myztic has joined #ruby
gusTester has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sp4rrow has joined #ruby
<shevy> you build a game?
<kiki_lamb> i've got some ideas for some genetic algorithm like behaviour to toy with too, once i've got the randomly mutating nodes
gusTester has quit [Client Quit]
<kiki_lamb> shevy: nah, music tool
gizmore has joined #ruby
<Can-ned_Food> hi everybody! quick question: i can't find use of the word “recipe” outside Ruby, so it originated with it? synonym for script or is there a nuance i'm missing?
eminencehc has joined #ruby
<adaedra> That's chef vocabulary, no?
Rollabunna has quit [Ping timeout: 260 seconds]
<kiki_lamb> right now it basically just lets you write interesting drum beats a lot more quickly, but if I manage to implement all those features it should be able to do about 80% of the composition required to produce a fairly decent techno tune with little more than a gentle nudge.
yfeldblum has quit [Ping timeout: 246 seconds]
<mg^> yeah that's a Chef thing
<Can-ned_Food> i thought so, but i've seen it on some generic ruby webpages.
baweaver has joined #ruby
<Can-ned_Food> guess it was a retroactive adoption there.
<mg^> well, I think there's been a longstanding use of the word "recipe" for "brief instructions" for a long time
<Ox0dea> Can-ned_Food: Just fluffy language, then.
<Can-ned_Food> cool beans, thanks all.
<mg^> I am sure you can find things like "here's a bash recipe for doing X"
<mg^> that pre-date Chef or even Ruby
<mg^> its just that your major search engine results are going to bury those pretty deep
mary5030 has joined #ruby
mjwhitta has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
<Ox0dea> From which we could reasonably conclude that it's simply not the right terminology.
k3asd` has quit [Ping timeout: 255 seconds]
scripore has joined #ruby
<Cache_Money> Has anyone worked with writing to Tab-Seperated files before?
zeroDivisible has quit [Quit: WeeChat 1.3]
zeroDivisible has joined #ruby
<adaedra> Surely.
<adaedra> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
CloCkWeRX has joined #ruby
ahmetkapikiran has joined #ruby
<Can-ned_Food> Ox0dea i agree, it sounds too much like a human-user set of instructions
<Cache_Money> adaedra: I did above: What should I change so that I write to a tab-separated file instead of a csv? https://gist.github.com/anonymous/0da192d0ba7a9ad0a748
stannard has joined #ruby
<adaedra> Change the separator to the tab character?
baweaver has quit [Ping timeout: 260 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
elcontrastador has joined #ruby
<Cache_Money> adaedra: How would I do that? I tried https://gist.github.com/anonymous/be4dd2960709c8615954 but got an error
riotjones has joined #ruby
mjwhitta has quit [Client Quit]
<Ox0dea> Cache_Money: CSV.open('foo', 'w', col_sep: "\t") { ... }
pdoherty has joined #ruby
nofxx has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
nofxx has joined #ruby
<Cache_Money> OxOdea: Sweet, that worked. Thanks!
exadeci has joined #ruby
djcp1 has joined #ruby
<Ox0dea> Cache_Money: Happy to help.
yfeldblum has joined #ruby
freerobby has quit [Quit: Leaving.]
jpfuentes2 has quit [Quit: Textual IRC Client: www.textualapp.com]
Azure has joined #ruby
sepp2k has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 272 seconds]
smallpeen has joined #ruby
s2013_ has quit [Read error: Connection reset by peer]
heinrich5991 has joined #ruby
<smallpeen> hello everyone what is a good way to find the middle value of an array?
heinrich5991 has quit [Remote host closed the connection]
<Ox0dea> smallpeen: Do you mean the median or the mode?
<smallpeen> yes
<Ox0dea> I'm phoning the authorities.
<smallpeen> the median means the middle number but if it's even you add up the two middle numbers and divide by 2
smallpeen is now known as smallpen
mjwhitta has joined #ruby
<Ox0dea> Well, look how smurt you are. Sounds like you have everything you need?
<smallpen> well i have no idea how to code it
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
s2013 has joined #ruby
<Ox0dea> Use a keyboard.
krz has joined #ruby
<adaedra> *woop* *woop* here iz polis
s2013 has quit [Max SendQ exceeded]
<Ox0dea> I meant mean, not mode.
idefine has quit [Remote host closed the connection]
SCHAAP137 has quit [Ping timeout: 260 seconds]
<smallpen> i mean median
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<smallpen> the middle number if it's even
komanda3 has joined #ruby
<Ray`> well, you have the size of the array
<Ox0dea> You mean the middle number if the number of elements is odd.
<smallpen> no
<smallpen> [1,2,3,4,5,6]
<Ray`> you also have functions to tell if it's odd or even
<Ox0dea> smallpen: What's the median there?
<Ray`> I mean, you can go from there
lkba has joined #ruby
<smallpen> Ox0dea: the median there is 3.5
<Ox0dea> smallpen: Yes, and in [1,2,3]?
<smallpen> 2.5
<Ox0dea> No.
heinrich5991 has joined #ruby
<Ray`> ^
jpfuentes2 has joined #ruby
<smallpen> 2 + 3 is 5 and 5 / 2 is 2.5
<smallpen> can you not count?
<smallpen> why are there trolls in here?
komanda3 is now known as Komanda
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
<Ox0dea> Komanda: I suspect you have a question?
<Komanda> i want to add an additional condition, the path shouldnt end with .css or .js
<Ox0dea> Ray`: I don't know why I fed it for so long, but please let it starve.
idefine has joined #ruby
arthurix_ has joined #ruby
<Ray`> yeah good point
<Komanda> Ox0dea: had to think about how i should formulate my question :')
<Can-ned_Food> speaking of starving
<smallpen> Ray`: that's exactly what i'm saying
zenguy_pc has joined #ruby
Liothen has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
banister has joined #ruby
<Ox0dea> Komanda: Fair enough; are you wanting to monkey-patch this exact method, then?
<Komanda> yes
<Komanda> basically this is my config.ru
solocshaw has quit [Ping timeout: 244 seconds]
s2013 has joined #ruby
<Komanda> when i comment out "use Rack::Legacy::Cgi" it works fine with .js & .css files but obviously not with cgi files
Liothen has quit [Client Quit]
<Komanda> if i don't comment out that line, the cgi works fine but .js files & .css files throw errors
arthurix has quit [Ping timeout: 264 seconds]
<Ox0dea> Komanda: Adding `&& path !~ /\.(css|js)$/` should do the trick.
solocshaw has joined #ruby
<Komanda> i'm completely new to ruby, i have located the cgi.rb on my harddrive
s2013 has quit [Read error: Connection reset by peer]
<Ox0dea> Komanda: You can just reopen the class and directly redefine the method. ^_^
mjwhitta has quit [Quit: mjwhitta]
<Komanda> ok awesome
idefine has quit [Ping timeout: 250 seconds]
<Can-ned_Food> anyone here who contributed to tryruby.org ? i've caught a bug (and i'm going fishing)
<Ox0dea> Can-ned_Food: Are you sure?
Liothen has joined #ruby
<Can-ned_Food> yes, Ox0dea, but it's a small one. it inspects results, not input.
<Ox0dea> Hm?
Liothen has quit [Changing host]
Liothen has joined #ruby
<Komanda> Ox0dea: HOLY SHIT I HAVE IT WORKING
<Komanda> :DDD
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Komanda> <33
<Ox0dea> Huzzah!
<Ox0dea> <3
nofxx_ has joined #ruby
<Can-ned_Food> Ox0dea: well, when it wants you to try the to_s method on an integer, then reverse it, i can prompt it to advance in the tutorial simply by reversing the string myself viz. "40".reverse — meh
<adaedra> bed << self
SCHAAP137 has joined #ruby
blue_deref has joined #ruby
<Can-ned_Food> the cartoon characters are cute, though.
<Ox0dea> adaedra: The call is coming from inside the mattress!
diegoviola has joined #ruby
<adaedra> :)
wprice has quit [Quit: wprice]
Rollabunna has joined #ruby
<Ox0dea> Can-ned_Food: You're right that it does do that, but it's really for the best; spending an inordinate amount of time parsing your input to determine if you're up to no good wouldn't make much sense.
nofxx has quit [Ping timeout: 246 seconds]
quazimodo has joined #ruby
<Can-ned_Food> sure, that's why i appended the “meh” when i'd finished writing that. time for supper.
<Ox0dea> Don't you have to catch it first?
Croves has joined #ruby
<Can-ned_Food> bug -> minnow -> trout
<eam> what is "is your ruby interpreter running" alex
howdoicomputer has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
Komanda has quit [Remote host closed the connection]
lemur has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
RegulationD has quit [Remote host closed the connection]
trosborn has quit [Quit: trosborn]
bb010g has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
demonlove has quit [Ping timeout: 250 seconds]
lemur has quit [Ping timeout: 240 seconds]
chipotle_ has quit [Quit: cheerio]
DoubleMalt has quit [Remote host closed the connection]
lukaszes has quit [Quit: Textual IRC Client: www.textualapp.com]
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
Cache_Money has quit [Ping timeout: 260 seconds]
Cache_Money has joined #ruby
ohcibi has quit [Remote host closed the connection]
trosborn has joined #ruby
ohcibi has joined #ruby
jrvlima has joined #ruby
tlaxkit has joined #ruby
ismaelga has joined #ruby
krustykoder has joined #ruby
krustykoder has quit [Client Quit]
trosborn has quit [Quit: trosborn]
yes`r has quit [Ping timeout: 240 seconds]
roxtrongo has joined #ruby
dnewkerk has joined #ruby
yfeldblum has quit [Remote host closed the connection]
segmond has joined #ruby
krz has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
shadoi has quit [Quit: Leaving.]