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
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]
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]
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 }.
<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]
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
<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?
<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.]
<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. :)
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]
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.
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…]
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]
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]
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?
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
<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]
<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.
<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]
<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)
<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.
<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
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…]
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>
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]
<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]
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]
<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]
<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]
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" ;)
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.
<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]
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
<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]