<popl>
therefore there is no magic happening there
<volty>
i agree
serp` has joined #ruby
<volty>
our universe is deterministic - whatever say the chaotic supporters of the chaos :)
SeySayux_ has quit [Ping timeout: 245 seconds]
BRMatt has joined #ruby
saarinen has quit [Quit: saarinen]
<volty>
i needed some 'cycling magic' and was playing around - in the end i understood that cycling has sense only with next, and nothing else - nor each, nor special to_a, and do not talk about map
SeySayux has joined #ruby
<volty>
nice languages are bad for productivity - because of (too much) playing around
burlyscudd has quit [Quit: Leaving.]
soheil has quit [Read error: Connection timed out]
petey has joined #ruby
<plotter>
What was wrong valesk?
soheil has joined #ruby
Cyrus has joined #ruby
rbento has joined #ruby
Valesk has quit [Read error: Connection reset by peer]
kitak has quit [Remote host closed the connection]
ziyadb has quit [Ping timeout: 264 seconds]
denysonique has quit [Ping timeout: 252 seconds]
petey has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
Valesk has joined #ruby
nwertman_ has joined #ruby
davidboy has quit [Ping timeout: 240 seconds]
lectrick has quit [Ping timeout: 240 seconds]
tsykoduk is now known as zz_tsykoduk
Valesk has quit [Client Quit]
karlfreeman has quit [Ping timeout: 260 seconds]
cj3kim_ has quit [Read error: Connection reset by peer]
zero7 has quit [Ping timeout: 252 seconds]
Scorchin has quit [Ping timeout: 256 seconds]
Valesk has joined #ruby
serp` has quit [Ping timeout: 248 seconds]
cj3kim_ has joined #ruby
Valesk has quit [Remote host closed the connection]
fourq__ has quit [Ping timeout: 245 seconds]
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
HavokOC has quit [Ping timeout: 240 seconds]
Guest85414___ has quit [Ping timeout: 256 seconds]
rndstr has quit [Ping timeout: 252 seconds]
io_syl has joined #ruby
kitak has joined #ruby
drumsrgr8forn8 has joined #ruby
sectionme has joined #ruby
johnnyfuchs has joined #ruby
Valesk has joined #ruby
petey has joined #ruby
Valesk has quit [Client Quit]
jerius has joined #ruby
Valesk has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
amsi has quit [Quit: Leaving]
<Valesk>
plotter: It wasn't recognizing my windows 8 partitions.. spent a whole day running different fixes and nothing seemed to work. Rolled back to windows 7 and partitioned it out, installed, works perfectly.
oktapodi has joined #ruby
Ivo has joined #ruby
sectionme has quit [Ping timeout: 240 seconds]
<Ivo>
I'm trying to debug jekyll mysteriously not replacing liquid template tags.. can anyone help?
maletor has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
dankest has quit [Quit: dankest]
katsrc has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
burlyscudd has quit [Ping timeout: 248 seconds]
tomoe-mami has quit [Quit: WeeChat 0.4.1]
hogeo has joined #ruby
tomoe-mami has joined #ruby
Bira_ has joined #ruby
justsee_ has joined #ruby
julweber has quit [Ping timeout: 245 seconds]
DrOwl has quit [Read error: Operation timed out]
DrOwl has joined #ruby
Bira has quit [Read error: Connection reset by peer]
justsee has quit [Read error: Connection reset by peer]
MissionCritical has quit [Ping timeout: 256 seconds]
ebobby has quit [Ping timeout: 260 seconds]
freezey has quit [Remote host closed the connection]
emergion has joined #ruby
brupeb has joined #ruby
imbric has quit [Quit: imbric]
endash has quit [Quit: endash]
sevenseacat has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
kaosx has joined #ruby
tvw has quit []
<bnagy>
it's not?
BRMatt has quit [Ping timeout: 245 seconds]
cj3kim_ has quit [Read error: Connection reset by peer]
Voodoofish430 has quit [Quit: Leaving.]
c0rn has quit [Quit: Lates.]
<popl>
butblack: what's your actual question?
<butblack>
popl: it's ok I got it
<butblack>
thanks
<kaosx>
Maybe an easy question, I'm seeing in examples that you can run File.exists?(~/test/).expand, is there something like that for Dir.exists?, I can't seem to find it in the documentation
<bnagy>
oh, you mean it's not matching? You probably want your \p{Han} inside the charset
DonRichie has quit [Ping timeout: 246 seconds]
cj3kim_ has joined #ruby
DonRichie has joined #ruby
iamjarvo has joined #ruby
chrisja has quit [Quit: leaving]
<bnagy>
KaosX: that's not valid syntax
tomoe-mami has quit [Quit: WeeChat 0.4.1]
<bnagy>
but File.directory? might be what you're after, once you work out how to File.expand_path
<bnagy>
or you can use Dir[]
Lewix has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
Lewix has joined #ruby
hogeo has joined #ruby
cpruitt has quit [Quit: cpruitt]
dodosan has quit [Remote host closed the connection]
<bnagy>
also, File.existsis true for dirs as well as regular files
<kaosx>
bnagy: thanks, I just figured the same would exist for Dir
<bnagy>
it does
tkuchiki has joined #ruby
<bnagy>
(I discover, just now ;)
Popple has joined #ruby
imbric has joined #ruby
<kaosx>
Weird, maybe I'm looking at old documentation
oktapodi has quit [Remote host closed the connection]
MissionCritical has joined #ruby
zolpidem is now known as diazepam
diazepam is now known as zolpidem
zolpidem is now known as scottstamp
Es0teric has quit [Quit: Computer has gone to sleep.]
siwica has quit [Ping timeout: 260 seconds]
cj3kim__ has joined #ruby
jamesaanderson has joined #ruby
dankest has quit [Quit: dankest]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
anotherwise has joined #ruby
cj3kim_ has quit [Ping timeout: 260 seconds]
matrix9180 has joined #ruby
dhruvasagar has joined #ruby
randomnick_ has quit [Quit: Leaving]
Mars` has joined #ruby
sarlalian has quit [Read error: Operation timed out]
T_T has quit [Remote host closed the connection]
zeade has joined #ruby
cj3kim__ has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 264 seconds]
Mars` has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
Mars` has joined #ruby
cj3kim_ has joined #ruby
Asher has quit [Quit: Leaving.]
cj3kim_ has quit [Read error: Connection reset by peer]
Mars` has quit [Ping timeout: 256 seconds]
freezey has joined #ruby
tsykoduk is now known as zz_tsykoduk
vxxr has quit [Ping timeout: 248 seconds]
adeponte has quit [Remote host closed the connection]
cody-- has joined #ruby
DanKnox is now known as DanKnox_away
adeponte has joined #ruby
ldnunes has quit [Quit: Leaving]
zz_tsykoduk is now known as tsykoduk
quoin has joined #ruby
Popple has quit [Quit: Computer has gone to sleep.]
GeissT has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
mlpinit has joined #ruby
DrShoggoth has quit [Quit: Leaving]
cody-- has quit [Quit: derp]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quoin has quit [Ping timeout: 260 seconds]
brianpWins has quit [Quit: brianpWins]
burlyscudd has joined #ruby
ssvo has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
Ivo has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
dankest has joined #ruby
dankest has quit [Remote host closed the connection]
jonog has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
freezey has quit [Remote host closed the connection]
rbento has quit [Quit: ZZZzzz…]
IceyEC has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
jonog has quit [Quit: Konversation terminated!]
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
<asteros>
hey guys, what's the general convention around defining methods dynamically? say I have 3 methods that are very similar, has_attr, add_attr, and remove_attr - is it bad form to define them using define_method
mayorga has quit [Ping timeout: 256 seconds]
<banisterfiend>
asteros no
<banisterfiend>
it's fine if it's DRYer
<pontiki>
is attr something generic you're replacing per use?
<banisterfiend>
asteros but don't expect show-source in pry to be particularly useful
<pontiki>
like it's really has_pickle, add_pickle, and remove_pickle?
<pontiki>
otherwise.. extend Object and be done?
snovak has quit [Read error: Connection reset by peer]
iamjarvo_ has joined #ruby
dopie has quit [Read error: Connection reset by peer]
drumsrgr8forn8 has joined #ruby
snovak_ has joined #ruby
tsykoduk is now known as zz_tsykoduk
emergion has joined #ruby
<banisterfiend>
asteros though if they have code in common, it might be nicer to just define a private helper method and call that in each of their definitions
twoism has quit [Remote host closed the connection]
vxxr has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
mayorga has joined #ruby
<asteros>
pontiki: banisterfiend ah, got it - thanks for the tip
<asteros>
the shared code was error code, and the attribute isn't generic
Bosox20051 has joined #ruby
<asteros>
I'm storing an integer column that encodes attributes by bit shifting
<asteros>
so 'foo' would be 1, 'bar' would be 2, 'blah' would be 4, etc
<banisterfiend>
asteros you might prefer symbols to numbers
<banisterfiend>
depending on your use case, of course
<asteros>
numbers was so I could easily store it in a DB column
<asteros>
and query by Object.column & TYPES[key]
<asteros>
so has_attr would be that
<asteros>
add_attr would be Object.column |= TYPES[key]
<asteros>
and remove_attr would be Object.column ^= TYPES[key]
<asteros>
the shared code was error handling
Domon has joined #ruby
fuhgeddaboudit has joined #ruby
<banisterfiend>
sometimes a decorator can be good for shared code
<banisterfiend>
depending
xjiujiu has joined #ruby
<asteros>
banisterfiend: ah, hadn't thought of doing that
Es0teric has joined #ruby
<banisterfiend>
decorators aren't that straight-forward in ruby anyway
Es0teric has quit [Max SendQ exceeded]
Vasari has quit [Read error: Connection reset by peer]
<banisterfiend>
(requires some pretty hairy metaprogramming to do a good job)
Vasari has joined #ruby
IceyEC has quit [Quit: IceyEC]
iliketurtles has joined #ruby
mary5030 has quit [Remote host closed the connection]
<pontiki>
coming in 2.1, though?
nari has joined #ruby
<banisterfiend>
they look prettier in 2.1, but just as difficult to implement
jerius has joined #ruby
cpruitt has joined #ruby
lfox has joined #ruby
thesheff17_ has joined #ruby
vim_shim has quit [Ping timeout: 240 seconds]
clov3r has joined #ruby
jamesaanderson has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
thesheff17 has quit [Ping timeout: 248 seconds]
clov3r has joined #ruby
thesheff17_ is now known as thesheff17
Ripp__ has quit []
jwicked has joined #ruby
skasio has joined #ruby
freezey has joined #ruby
ziyadb has joined #ruby
fghd has quit [Remote host closed the connection]
lectrick has joined #ruby
zero7 has joined #ruby
karlfreeman has joined #ruby
HavokOC has joined #ruby
cpruitt has quit [Quit: cpruitt]
rndstr has joined #ruby
davidboy has joined #ruby
fourq__ has joined #ruby
Scorchin has joined #ruby
Guest85414___ has joined #ruby
vlad_starkov has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
denysonique has joined #ruby
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
diegoviola has joined #ruby
anotherwise has quit [Ping timeout: 248 seconds]
radic has joined #ruby
cutmail has joined #ruby
oz has quit [Quit: EOF]
mlpinit has quit [Remote host closed the connection]
jerius has joined #ruby
radic_ has quit [Read error: Operation timed out]
Lewix has quit [Remote host closed the connection]
jerius has quit [Client Quit]
burlyscudd has quit [Quit: Leaving.]
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
zets has joined #ruby
vim_shim has joined #ruby
jerius has joined #ruby
oz has joined #ruby
Mars` has joined #ruby
lfox has quit [Quit: ZZZzzz…]
brupeb has quit [Read error: Connection reset by peer]
brupeb has joined #ruby
Mars`_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has quit [Remote host closed the connection]
twoism_ has joined #ruby
Targen has quit [Ping timeout: 240 seconds]
Mars` has quit [Ping timeout: 245 seconds]
twoism_ has quit [Remote host closed the connection]
twoism_ has joined #ruby
twoism has quit [Ping timeout: 245 seconds]
Ivo has joined #ruby
Mars`_ has quit [Remote host closed the connection]
hamakn has joined #ruby
Mars` has joined #ruby
conner has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
saclark has joined #ruby
twoism_ has quit [Ping timeout: 240 seconds]
jerius has joined #ruby
airtonix has quit [Ping timeout: 264 seconds]
Thelxinoe- has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
Thelxinoe- is now known as Guest28426
krz has joined #ruby
Guest28426 has quit [Remote host closed the connection]
saclark has quit [Quit: saclark]
iliketurtles has quit [Quit: zzzzz…..]
iliketurtles has joined #ruby
jamesaanderson has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
drumsrgr8forn8_ has joined #ruby
jamesaanderson has quit [Client Quit]
mikepack has joined #ruby
zodiak has joined #ruby
rbento has joined #ruby
rbento has quit [Max SendQ exceeded]
adeponte has joined #ruby
airtonix has joined #ruby
dcunit3d has quit [Ping timeout: 256 seconds]
Asher has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
dcunit3d has joined #ruby
vishal has quit [Read error: Connection reset by peer]
vishal has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
rahulkmr has quit [Quit: Leaving.]
rahulkmr1 has joined #ruby
rahulkmr1 has quit [Client Quit]
rahulkmr has joined #ruby
rahulkmr has quit [Read error: Connection reset by peer]
rahulkmr1 has joined #ruby
dmiller has joined #ruby
Aryasam has joined #ruby
devoldmx has joined #ruby
rahulkmr1 has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
rahulkmr has quit [Client Quit]
rahulkmr1 has joined #ruby
rahulkmr1 has quit [Client Quit]
jerius has quit [Quit: Computer has gone to sleep.]
rahulkmr has joined #ruby
rahulkmr has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
rahulkmr has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
rahulkmr has quit [Client Quit]
rahulkmr1 has joined #ruby
browndawg has joined #ruby
brupeb has quit [Read error: Connection reset by peer]
nanothief has joined #ruby
brupeb has joined #ruby
Inside has joined #ruby
sloucher has quit [Ping timeout: 240 seconds]
<Inside>
Gasp! Why is there no Range#rand o:
rahulkmr1 has quit [Ping timeout: 245 seconds]
<xybre>
What about rand(1..6)
<Inside>
I found that, but it's weird!
<Inside>
most everything I've seen in ruby has been a class method
Bira_ has quit [Remote host closed the connection]
varfoo has joined #ruby
mayorga has quit [Ping timeout: 256 seconds]
sloucher has joined #ruby
jamesaanderson has joined #ruby
<xybre>
I agree its weird. So class Range; def rand; ::Kernel.rand(self.begin, self.end); end
<xybre>
; end
brupeb_ has joined #ruby
brupeb has quit [Read error: Connection reset by peer]
clov3r has quit [Remote host closed the connection]
artmann_ has quit [Quit: No Ping reply in 180 seconds.]
<bnagy>
should be #sample
brupeb_ has quit [Read error: Connection reset by peer]
brupeb has joined #ruby
artmann has joined #ruby
brianpWins has joined #ruby
<xybre>
Yep, I agree. It'd match the Array semantics then.
brupeb has quit [Read error: Connection reset by peer]
<Inside>
:D
<Inside>
oh well, it works.
<xybre>
You could also do (1..10).to_a.sample
brupeb has joined #ruby
<Inside>
I was fiddling with Rails time objects
freezey has quit [Remote host closed the connection]
<xybre>
Its simpler to write, but more resource intensive internally
<Inside>
rand(10.year.ago..Time.now)
ewokchewy has joined #ruby
brupeb has quit [Read error: Connection reset by peer]
brupeb has joined #ruby
artmann has quit [Client Quit]
heidi has quit [Quit: Leaving.]
bonhag has joined #ruby
bonhag has quit [Remote host closed the connection]
cads has joined #ruby
artmann has joined #ruby
__nh__ has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has quit [Quit: Space~~~]
emergion has quit [Quit: Computer has gone to sleep.]
brupeb has quit [Read error: Connection reset by peer]
xjiujiu has quit [Ping timeout: 248 seconds]
ce_afk is now known as cescalante
brupeb has joined #ruby
tylersmith has joined #ruby
xjiujiu has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
krz has quit [Quit: krz]
varfoo has joined #ruby
varfoo has quit [Client Quit]
mlpinit has joined #ruby
krz has joined #ruby
serp` has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
jerius has joined #ruby
Guest80927 has quit [Ping timeout: 245 seconds]
quoin has joined #ruby
nanothief has quit [Read error: Connection reset by peer]
nanothief has joined #ruby
bio has joined #ruby
bio is now known as Guest42271
cj3kim_ has joined #ruby
varfoo has joined #ruby
mlpinit has quit [Ping timeout: 264 seconds]
zodiak has quit [Read error: Connection reset by peer]
jerius has quit [Client Quit]
quoin has quit [Ping timeout: 260 seconds]
jwicked has quit [Ping timeout: 245 seconds]
adeponte has joined #ruby
Targen has joined #ruby
kiddorails has joined #ruby
soba has joined #ruby
iliketur_ has joined #ruby
Kabaka has quit [Quit: brb]
Lewix has joined #ruby
mrsolo has joined #ruby
iliketurtles has quit [Ping timeout: 264 seconds]
DanKnox_away is now known as DanKnox
ewokchewy has quit [Remote host closed the connection]
jerius has joined #ruby
jerius has quit [Client Quit]
tgraham has quit [Quit: Leaving...]
brupeb has quit [Read error: Connection reset by peer]
asteros has quit [Quit: asteros]
brupeb has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
sectionme has joined #ruby
ewokchewy has joined #ruby
jerius has joined #ruby
Thelxinoe- has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
Thelxinoe- is now known as Guest68373
iamjarvo has joined #ruby
Alex- has joined #ruby
alx- has quit [Read error: Connection reset by peer]
serp` has quit [Quit: serp`]
leehambley has quit [Ping timeout: 264 seconds]
jerius has quit [Client Quit]
leehambley has joined #ruby
coderhs has joined #ruby
butblack has quit [Quit: butblack]
sectionme has quit [Ping timeout: 248 seconds]
Guest68373 has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Ping timeout: 256 seconds]
Alex- has quit [Quit: Leaving...]
Jdubs_ has joined #ruby
jonahR has joined #ruby
<Jdubs_>
Hey guys, any idea what might cause a very simple route not to show up? I'm not getting any errors at all other than the route not actually showing up
<Jdubs_>
i restarted the server and it still won't show up
DanKnox is now known as DanKnox_away
<Jdubs_>
oops
<Jdubs_>
meant to post in rails
<Jdubs_>
my bad xD
mol has joined #ruby
swordsmanz has quit [Quit: swordsmanz]
cutmail has quit [Remote host closed the connection]
Aryasam has joined #ruby
cutmail has joined #ruby
Kabaka has joined #ruby
T_T has joined #ruby
coderhs has quit [Ping timeout: 246 seconds]
kiddorails has quit [Quit: Leaving.]
DanKnox_away is now known as DanKnox
kiddorails has joined #ruby
polaco is now known as polaco_zZz
whorking has quit [Quit: Computer has gone to sleep.]
mike1992 has joined #ruby
<mike1992>
how do i say
<mike1992>
call method x on object foo if the method exists
cutmail has quit [Ping timeout: 246 seconds]
Clooth has joined #ruby
brianpWins has quit [Quit: brianpWins]
DanKnox is now known as DanKnox_away
FDj has quit [Ping timeout: 248 seconds]
fridim_ has quit [Ping timeout: 260 seconds]
dodosan has joined #ruby
<pontiki>
foo.x if foo.method_defined? :x
Aryasam has quit [Ping timeout: 260 seconds]
DanKnox_away is now known as DanKnox
yekta has quit [Quit: yekta]
bluepojo_ has joined #ruby
<pontiki>
does not work if x is a private method, obv
diegoviola has quit [Ping timeout: 252 seconds]
drumsrgr8forn8_ has quit [Ping timeout: 240 seconds]
<mike1992>
gotcha, thanks
whorking has joined #ruby
<mike1992>
also
<mike1992>
what is the exact term for :x with the colon behind it?
<sevenseacat>
a symbol?
ner0x has quit [Quit: Leaving]
bluepojo has quit [Ping timeout: 248 seconds]
<pontiki>
when the : is *behind* the word, aka x:, it a key-assignment in a hash
<pontiki>
(deja vu all over again)
petey has joined #ruby
brupeb has quit [Remote host closed the connection]
mol has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
mol has joined #ruby
<pontiki>
you can also do foo.x if foo.respond_to? :x
<pontiki>
which includes ancestors
tgraham has joined #ruby
<sevenseacat>
thats the way i would do it
tafryn has quit [Quit: tafryn]
<pontiki>
respond_to? also works if the module/class implements missing_method, which method_defined? does not
clov3r has joined #ruby
<pontiki>
or actually, if it implements respond_to_missing?
<pontiki>
which it could without the other
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
DrCode has quit [Remote host closed the connection]
diegoviola has joined #ruby
xjiujiu has quit [Ping timeout: 248 seconds]
DrCode has joined #ruby
tgraham has quit [Ping timeout: 245 seconds]
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
rickmasta has quit [Quit: Leaving...]
dmiller has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
kreeves has quit [Ping timeout: 264 seconds]
DanKnox is now known as DanKnox_away
flagg0204 has quit [Remote host closed the connection]
Seich has joined #ruby
quoin has joined #ruby
fgo has joined #ruby
thetristan has quit [Quit: thetristan]
r0bgl33s0n has quit [Ping timeout: 252 seconds]
FDj has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
kilophoton has quit [Ping timeout: 245 seconds]
scottstamp is now known as zz_scottstamp
skasio has quit [Quit: Lost terminal]
Es0teric has joined #ruby
lukec has quit [Quit: lukec]
mikepack has quit [Remote host closed the connection]
graydot has joined #ruby
Es0teric has quit [Max SendQ exceeded]
sarkis has quit [Read error: Connection reset by peer]
sarkis has joined #ruby
ewokchewy has quit [Remote host closed the connection]
ewokchewy has joined #ruby
vim_shim has quit [Ping timeout: 256 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
coderhs has quit [Quit: Leaving]
bricker`LA has quit [Ping timeout: 240 seconds]
ewokchewy has quit [Remote host closed the connection]
schaerli has joined #ruby
iliketurtles has joined #ruby
ewokchewy has joined #ruby
amclain has joined #ruby
twoism has joined #ruby
Vasari has quit [Remote host closed the connection]
Bosox20051 has quit [Ping timeout: 256 seconds]
platzhirsch has joined #ruby
<platzhirsch>
boak boak
dancardamore has quit []
zeade has quit [Quit: Leaving.]
jwicked has joined #ruby
codecop has joined #ruby
dhruvasagar has joined #ruby
postmodern has quit [Quit: Leaving]
twoism has quit [Remote host closed the connection]
postmodern has joined #ruby
fgo has quit [Remote host closed the connection]
dmiller has joined #ruby
browndawg has left #ruby [#ruby]
emergion has joined #ruby
kiddorails has quit [Ping timeout: 252 seconds]
jwicked has quit [Ping timeout: 246 seconds]
fgo_ has joined #ruby
mlpinit has joined #ruby
brianpWins has joined #ruby
Thelxinoe- has joined #ruby
Thelxinoe- is now known as Guest23740
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
haxrbyte has joined #ruby
mlpinit has quit [Ping timeout: 246 seconds]
cj3kim_ has quit [Remote host closed the connection]
rahulkmr has joined #ruby
maletor has joined #ruby
schaerli has quit [Ping timeout: 240 seconds]
cutmail has joined #ruby
fgo_ has quit [Remote host closed the connection]
kiddorails has joined #ruby
petey has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
karupa64 has quit [Ping timeout: 256 seconds]
aagdbl has joined #ruby
atno has joined #ruby
dodosan has joined #ruby
tobago has joined #ruby
dcunit3d has quit [Ping timeout: 248 seconds]
DonRichie has quit [Read error: Operation timed out]
freerobby has quit [Quit: Leaving.]
karupa64 has joined #ruby
Inside has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
dodosan has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
Jdubs_ has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
Jdubs_ has joined #ruby
finnnnnnnnnnn has joined #ruby
tgraham has joined #ruby
brennanMKE has quit [Remote host closed the connection]
kiddorails has quit [Read error: Connection reset by peer]
kiddorails has joined #ruby
finnnnnnnnnnn has quit [Client Quit]
jwicked has joined #ruby
|jemc| has joined #ruby
ananthakumaran has joined #ruby
defrag has quit [Ping timeout: 264 seconds]
tgraham has quit [Ping timeout: 245 seconds]
zz_scottstamp is now known as scottstamp
fgo has joined #ruby
mengu has joined #ruby
davidboy has quit [Ping timeout: 240 seconds]
quoin has joined #ruby
ananthakumaran has quit [Ping timeout: 245 seconds]
tagrudev has joined #ruby
nbrosnahan has joined #ruby
thesheff17 has quit [Ping timeout: 248 seconds]
mikepack has joined #ruby
ferr has joined #ruby
nextdropping has joined #ruby
dcunit3d has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
<platzhirsch>
Is it possible to retrieve all the aliases of a class, module, etc?
haxrbyte has joined #ruby
quoin has quit [Ping timeout: 248 seconds]
axsuul has joined #ruby
coderhs has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
sectionme has joined #ruby
tonycoco has joined #ruby
<tonycoco>
hello!
defrag has joined #ruby
kilophoton has joined #ruby
mengu has quit [Remote host closed the connection]
sectionme has quit [Ping timeout: 246 seconds]
mike1992 has quit [Ping timeout: 252 seconds]
mol has quit [Read error: Connection reset by peer]
<|jemc|>
platzhirsch: I would try looping through ObjectSpace, comparing each object to the object you want to match
Guest93851 is now known as lemonsparrow
<|jemc|>
may not be the most efficient way though
<platzhirsch>
|jemc|: oh, I only meant method aliases :)
kilophoton has quit [Ping timeout: 240 seconds]
<platzhirsch>
but even if this would be possible,... I am not sure if this is technically an alias. I found out that .(arg) is an alias for .call(arg)
<popl>
platzhirsch: what are you trying to do?
<platzhirsch>
nothing
atno has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
tonycoco has quit [Quit: Leaving]
haxrbyte_ has joined #ruby
<bnagy>
is there even such a thing as an alias?
zz_tsykoduk is now known as tsykoduk
<bnagy>
like I thought alias_method just created a shim method
adeponte has quit [Remote host closed the connection]
<platzhirsch>
bnagy: but?
zoee has joined #ruby
<bnagy>
but what?
mol has joined #ruby
<bnagy>
if it defines a shim / proxy whatever then it's just a method
<bnagy>
so I don't see how you could pull it out at runtime. You would need to parse the source
<platzhirsch>
bnagy: so basically like you would define it yourself
diegoviola has quit [Ping timeout: 240 seconds]
<bnagy>
but I may be wrong about how it works, I haven't checked
<bnagy>
banisterfiend would know :P
<Hanmac>
bnagy, wrong … alias and alias does not create a slim method … they work a little bit different
<bnagy>
do tell :)
<Hanmac>
when you have a Method Object from an alias method, you can access the orginal method name (on newer ruby)
haxrbyte has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
wallerdev has quit [Quit: wallerdev]
<bnagy>
newer being?
<|jemc|>
I know it is possible to delete a method after aliasing it and have the new one still work
<platzhirsch>
so how do you think about .() being a shortcut for .call() ? Alias?
<bnagy>
anyway, hanmac, how how to see the alias on reduce / inject
<bnagy>
*show
ananthakumaran has joined #ruby
mengu has joined #ruby
mike1992 has joined #ruby
<Hanmac>
bnagy in this case its not an alias, its the same method defined with two names (C side) thats why overwriding one, does not destroy the other too
ewnd9 has joined #ruby
cj3kim_ has joined #ruby
<Hanmac>
platzhirsch: .() -> .call is not an alias, its only an method call
brennanMKE has joined #ruby
rrichardsr3 has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
cj3kim_ has quit [Remote host closed the connection]
<platzhirsch>
hanmac: mh, but a method call without a name?
Clooth has quit [Quit: Leaving...]
rrichardsr3 has quit [Client Quit]
ferr has quit [Ping timeout: 240 seconds]
<platzhirsch>
so either I use .call which has a fully quantified name or just the dot, which is not
zarubin has joined #ruby
amclain has quit [Quit: Leaving]
tvw has joined #ruby
<Hanmac>
platzhirsch: hm i was wrong, .() is not a method itself, its a parser feature
atno has joined #ruby
<platzhirsch>
hanmac: how did you find out
beilabs has joined #ruby
dash_ has joined #ruby
<bnagy>
hanmac: ahh.. ok just do it with a toy class then
<Hanmac>
platzhirsch: i just guess? i mean there is no () method or something so it must be something different , right?
<platzhirsch>
hanmac: yes, hits my common sense
<platzhirsch>
so not an alias in a technical sense
<platzhirsch>
hanmac: point me to the Ruby MRI source code line :P
cj3kim has quit [Remote host closed the connection]
kx has joined #ruby
zerofive has joined #ruby
dangerousdave has joined #ruby
arturaz has joined #ruby
zerofive has left #ruby [#ruby]
kaspergrubbe has joined #ruby
Zai00 has joined #ruby
freerobby has joined #ruby
h_kon has quit [Ping timeout: 245 seconds]
Seich has joined #ruby
schaerli has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
rdark has joined #ruby
zz_tsykoduk is now known as tsykoduk
Seich has quit [Ping timeout: 245 seconds]
tonni has quit [Read error: Connection reset by peer]
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbpros has quit [Quit: jbpros]
tesuji has joined #ruby
ace_striker_ has quit [Ping timeout: 250 seconds]
mengu has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
JPascal has joined #ruby
xk_id has quit [Quit:
tgraham has joined #ruby
ace_striker has joined #ruby
Macaveli has joined #ruby
lucazi_away is now known as lucazi
mengu has joined #ruby
atno__ has quit [Ping timeout: 246 seconds]
io_syl has quit []
|jemc| has quit [Read error: Operation timed out]
jbpros has joined #ruby
threesome has joined #ruby
Anticom has joined #ruby
tgraham has quit [Ping timeout: 245 seconds]
Elhu has joined #ruby
tsykoduk is now known as zz_tsykoduk
davidboy has joined #ruby
lucazi has quit []
quoin has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
tonni has joined #ruby
justsee_ has quit [Ping timeout: 245 seconds]
avril14th has joined #ruby
troessner has joined #ruby
quoin has quit [Ping timeout: 252 seconds]
mrbrdo has joined #ruby
julweber has quit [Remote host closed the connection]
<mrbrdo>
anyone knows if it's possible to include shell scripts in a gem's bin directory? it seems it's ran as a ruby script when I try, even though I put the #!/bin/sh there
<pontiki>
interesting
<pontiki>
i have no idea
cj3kim has joined #ruby
<pontiki>
i would have assumed so, especially with the shebang
<pontiki>
oh wait, are you trying to run them with bundle exec?
<mrbrdo>
pontiki: it only sets some env settings I believe
<pontiki>
well.. hmm
<ace_striker>
it's possible for sure..
ace_striker has quit []
<pontiki>
you have execute permission on?
funburn has joined #ruby
tonni has quit [Remote host closed the connection]
<mrbrdo>
yes
<pontiki>
yup, you're right, i can bundle exec bin/shscript
<pontiki>
idk
<pontiki>
it's working for me?
<mrbrdo>
what is?
<pontiki>
running a shell script from a gem's bin
<mrbrdo>
I have a script in a gem and it's executing as ruby script
<workmad3>
pontiki: how about running a shell script from an installed gem?
<mrbrdo>
I'm talking about gem executable that is inside the gem and you use it in shell
<workmad3>
pontiki: after rubygems has gotten its hand on it and wrapped all the bin/ files up in the rubygems version selection script-fu :)
kiddorails has left #ruby [#ruby]
user258467_ has joined #ruby
nbrosnahan has joined #ruby
Xeago_ has quit [Remote host closed the connection]
zarubin has joined #ruby
kitak_ has joined #ruby
kitak has quit [Read error: Connection reset by peer]
emergion has joined #ruby
soheil has quit [Remote host closed the connection]
soheil has joined #ruby
bricker`LA has joined #ruby
DaZ_ is now known as DaZ
<pontiki>
it seems to work fine...
<pontiki>
i installed it, and it's sitting in the .gem/ruby/2.0.0/bin directory
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
h_kon has joined #ruby
alup has joined #ruby
<workmad3>
pontiki: have you checked the contents of that file?
ayaz has joined #ruby
ephemerian has joined #ruby
andikr has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
soheil has quit [Ping timeout: 252 seconds]
<pontiki>
just what i put in
Coffers has joined #ruby
<workmad3>
pontiki: weird... all the scripts in bin/ on mine are a rubygems script that checks for a _version_ option, activates the appropriate version of the gem and then does 'load Gem.bin_path(...)'
adeponte has joined #ruby
<pontiki>
i had that problem with something else...
<mrbrdo>
pontiki: are you sure you run the command like this: "cd some_rails_app && my_gem_cmd"
<pontiki>
was told to use a different directory
<pontiki>
err. no...
emergion has quit [Quit: Computer has gone to sleep.]
atno has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
user258467_ has quit [Quit: Quitte]
senayar has joined #ruby
user258467 has quit [Quit: Quitte]
user258467 has joined #ruby
<Hanmac>
i still dont get why you want to run sh scripts when you have ruby ...
rahulkmr1 has joined #ruby
<workmad3>
hanmac: +1
jbpros has quit [Quit: jbpros]
<workmad3>
I've written sh scripts that bootstrap a machine into having ruby
krz has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
<mrbrdo>
hanmac: because ruby MRI is faster than JRuby, and I'd like to give the user the option to run something through a different ruby if he wants, because for this script it's irelevant
<mrbrdo>
hanmac: e.g. through a .somerc file or env setting
<mrbrdo>
faster = i meant boots up much faster
rahulkmr has quit [Ping timeout: 264 seconds]
<Hanmac>
yeah MRI is better ;P
<mrbrdo>
well let's not go into that, but it does load up much faster, so that's why I wanted to have a shell script in my gem
elaptics`away is now known as elaptics
<workmad3>
mrbrdo: surely they already have that option simply by installing your gem in the appropriate ruby?
atno has quit [Read error: Operation timed out]
h_kon has quit [Remote host closed the connection]
<mrbrdo>
workmad3: yeah but you would have jruby "active" in this case
<workmad3>
mrbrdo: also, how are you going to achieve the switch? :)
<mrbrdo>
workmad3: if using rvm it's pretty easy, just use the right path to run ruby
<mrbrdo>
probably similar for rbenv
finnnnnnnnnnn has joined #ruby
<pontiki>
ah, yeah, i got it
<mrbrdo>
and I am not using any other dependencies so gems are not relevant
sr78ger has joined #ruby
<pontiki>
you use --no-wrappers
<workmad3>
mrbrdo: right... but you need to inspect and discover what (if any) manager is being used
<mrbrdo>
workmad3: like I said the user would set this himself if he wanted (i.e. he would have to specify the full path to the ruby somewhere)
h_kon has joined #ruby
<workmad3>
mrbrdo: bleh... I'd just ctrl-c out, switch and run again
<workmad3>
mrbrdo: rather than type in the path to a ruby interpreter
<mrbrdo>
workmad3: what do you mean?
krz has joined #ruby
jaybe has quit [Read error: Connection reset by peer]
<mrbrdo>
pontiki: I'm confused about that option, what exactly does it do
adeponte has quit [Ping timeout: 260 seconds]
<workmad3>
mrbrdo: '<cmd>' oh crap, wanted to do that on MRI, '<ctrl-c>chruby 2.0.0 <cmd>'
tonni_ has joined #ruby
<pontiki>
mrbrdo: it does not wrap the bin files in the thing workmad3 was talking about
<mrbrdo>
pontiki: this is a switch to gem build or gem install?
<pontiki>
it just symlinks it
<workmad3>
mrbrdo: gem install
<workmad3>
you can't force someone to use it
<pontiki>
gem install
<mrbrdo>
that's cool
<pontiki>
i think the convo has moved on
<postmodern>
you could set --no-wrappers in .gemrc?
Macaveli has quit [Read error: Connection reset by peer]
<mrbrdo>
workmad3: the point is to let the "theine" command run with ruby MRI if you set the path somewhere (maybe a .theine file)
<mrbrdo>
which would shave off a second or so
Macaveli has joined #ruby
zeel has joined #ruby
<workmad3>
mrbrdo: hmm... I guess I can just about see the point there
petey has quit [Remote host closed the connection]
<pontiki>
postmodern: you can
solars has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<pontiki>
gnite
<workmad3>
mrbrdo: dunno, I'm afraid
kaspergrubbe has joined #ruby
<workmad3>
mrbrdo: I'm not aware of a way you can force the bin scripts to be linked without wrappers from the gem-side
hamakn has quit [Read error: Connection reset by peer]
funburn has quit [Quit: funburn]
<mrbrdo>
well if --no-wrappers works then I can just write that in the readme
mklappstuhl has joined #ruby
blaxter_ has joined #ruby
SkuliOskarsson has joined #ruby
mengu has quit [Remote host closed the connection]
Macaveli has quit [Read error: Connection reset by peer]
dcunit3d has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
dayepa1 has quit [Quit: dayepa1]
Jetchisel has joined #ruby
Macaveli has joined #ruby
atno has joined #ruby
emergion has quit [Client Quit]
freerobby has joined #ruby
jaybe has joined #ruby
einarj has joined #ruby
dayepa1 has joined #ruby
ace_striker has joined #ruby
sayan has quit [Quit: Leaving]
emergion has joined #ruby
iliketurtles has joined #ruby
hogeo_ has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
zz_tsykoduk is now known as tsykoduk
shaunbaker has joined #ruby
julweber has joined #ruby
Cheos has joined #ruby
shaunbak_ has joined #ruby
jbpros has joined #ruby
<mrbrdo>
pontiki: used --no-wrappers but it still runs as ruby script :(
hogeo has quit [Ping timeout: 252 seconds]
<mrbrdo>
in the installed gem the bin file is not changed (same as how I wrote it, no wrappers)
Clooth has quit [Ping timeout: 256 seconds]
headius has joined #ruby
gcds has joined #ruby
<gcds>
Hello
tgraham has joined #ruby
noname001__ has joined #ruby
<gcds>
where is better to store configurations for server utilities? /etc or home/.app ?
shaunbaker has quit [Ping timeout: 245 seconds]
<postmodern>
gcds, depends if it runs as a service or is ran by a user
funburn has joined #ruby
<gcds>
not user
<gcds>
maybe service
<postmodern>
gcds, user specific configuration should go into ~/.config/ as per the XDG specification
<gcds>
and system to /etc?
cj3kim has joined #ruby
fgh has joined #ruby
<postmodern>
gcds, i believe so
<gcds>
ok :)
<gcds>
Thanks
<gcds>
hmm maybe someone knows how to ask user for password for creating dir in etc ?
quoin has joined #ruby
tgraham has quit [Ping timeout: 240 seconds]
Stygia has joined #ruby
nextdropping_ has joined #ruby
apfelbox has joined #ruby
tsykoduk is now known as zz_tsykoduk
nextdropping has quit [Ping timeout: 248 seconds]
Buuyo has quit [Ping timeout: 246 seconds]
apfelbox has quit [Remote host closed the connection]
whorking has quit [Quit: Computer has gone to sleep.]
jonahR has quit [Quit: jonahR]
ayaz has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
<mrbrdo>
pontiki: lol.. when I use --no-wrappers on MRI it works, but when I use it while on jruby it doesn't work
marcgg_ has joined #ruby
ace_striker has quit [Ping timeout: 250 seconds]
<bnagy>
postmodern: sup bra you slummin? ;)
jbpros has quit [Quit: jbpros]
Cheos has quit [Quit: Leaving...]
marcgg has quit [Ping timeout: 245 seconds]
staafl has joined #ruby
<postmodern>
bnagy, which urban dictionary definition of slummin' are you using? :)
lsmola has quit [Ping timeout: 240 seconds]
jbpros has joined #ruby
<bnagy>
down here in the #ruby projects
yfeldblum has quit [Read error: Operation timed out]
<bnagy>
.. I have been possibly watching too much Wire
<postmodern>
bnagy, im in all the channels brah
<postmodern>
bnagy, actually like the liveliness of #ruby vs. #ruby-lang
petey has joined #ruby
<bnagy>
in that it represents 100% of my 'moving pictures with sound' consumption for the past month
<gcds>
hey guys which permission set to dir inside /etc what ruby could read and write ?
mneorr has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<bnagy>
gcds: whatever perms needed for the user running the script runs as
ayaz has joined #ruby
<clocKwize>
gcds: English::ParseError
<bnagy>
s/running//
<bnagy>
ETOOMUCHRUM
ayaz has quit [Max SendQ exceeded]
funburn has quit [Quit: funburn]
<popl>
bnagy: captain all up in you?
<gcds>
clocKwize: I mean i am going to create dir with sudo in /etc and would like to change permissions what ruby running in uknown user could write to it :)
<bnagy>
actually yes!
vlad_starkov has joined #ruby
<popl>
bnagy: gaaaaaaay
<postmodern>
bnagy, beer + rum = brum?
<popl>
:)
<clocKwize>
gcds, if you don't know the user, you need to give the directory read+write permissions to everyone
<clocKwize>
unless you know the group the user is in
<clocKwize>
then you could just give rw to that group
<bnagy>
I am trying all combinations of [captain,grapefruit,cran,oj,soda]
<popl>
ew
<bnagy>
postmodern: bum, moran
<gcds>
if i chmod 666 i get permission denied
<bnagy>
popl: and I'll thank you not to use 'gay' as a pejorative
<clocKwize>
if you aint down with chmod bitmasks, you aint shit
* clocKwize
joking
<clocKwize>
u+w is good..
<clocKwize>
didn't know you could do that
<popl>
sure, but the bitmasks are fine too
<clocKwize>
gcds, what are you getting permission denied on?
<gcds>
when creating file
<gcds>
in that dir :)
<gcds>
if it's already where its no problem
<gcds>
777 will do the trick but I am thing about something else
<bnagy>
777 was a joke
<clocKwize>
777 should make no difference?
<gcds>
in first run ask user to run the script by sudo
<bnagy>
just ask boeing
<gcds>
bnagy: without 777 you cant create files
<clocKwize>
if 6 doesn't work, giving it execute shouldn't either as thats just running files as cod.e.
<workmad3>
clocKwize: I think he means the directory permissions
<workmad3>
clocKwize: directories need the execute bit set
<gcds>
workmad3: yes :)
<clocKwize>
doooo they?
<clocKwize>
news to me
* clocKwize
is far from a linux guru
<clocKwize>
I manage though :p
allsystemsarego has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
ermajn has joined #ruby
<Rydekull>
clocKwize: you need execute on a dir to be able to access files in that dir, read and execute to list files
<clocKwize>
cool
<ermajn>
hello, I'm new to ruby.. i have this in my code syntax and i'm trying to understand it: command "redis-metrics.rb --scheme hardware.:::name:::.redis"
<workmad3>
clocKwize: 755 is a common set of perms for directories ;)
<Rydekull>
as such, r-x or the equivalent 5, is the recommended setting for a dir, 755 is a universal let owner do anything, everyone else list content and read stuff
<ermajn>
on execution that :::name::: under quote is envolved into hostname..
<ermajn>
but i can not reproduce that with standard strings...
<Rydekull>
Please do not, ever go 777, stop at 755
greengriminal has joined #ruby
<ermajn>
what's that :::something::: mean?
<popl>
you never, *ever* go full 777
<Rydekull>
popl: thank you for underlining :-)
blueOxigen has quit [Ping timeout: 240 seconds]
<popl>
it's only effective if people get the reference
<workmad3>
pfft, I find my servers are much easier to manage if I do 'chmod -R 777 /'
<bnagy>
thanks popl you saved my life man
<Rydekull>
workmad3: probably not, infact, they wont work :-)
<bnagy>
only straight bum for me from now on
<workmad3>
Rydekull: yeah, I can just say 'server is down' :D
<popl>
bnagy: seriously? :P
<workmad3>
Rydekull: for everything
<bnagy>
sure! beer + rum! Drink of champions, like that Queen song
<workmad3>
Rydekull: also, you're assuming that I'm allowed out of safe, chrooted jails ;)
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Ripp__ has quit []
<Rydekull>
workmad3: Well, let me just say, I could understand why you are in safe chrooted jails if that'd be your practice :-)
<popl>
bnagy: No, I meant as in "I seriously saved your life?" :P
dhruvasagar has quit [Ping timeout: 248 seconds]
<workmad3>
Rydekull: :D
iliketurtles has quit [Quit: zzzzz…..]
<workmad3>
Rydekull: next you'll be asking about my awesome .dll organisation on windows...
row248 has joined #ruby
18WAEEUBU has quit [Remote host closed the connection]
marcgg has joined #ruby
<bnagy>
copy them all to system32?
headius has quit [Quit: headius]
<workmad3>
bnagy: system32/a for all the dlls beginning with a...
dhruvasagar has joined #ruby
funburn has joined #ruby
apfelbox has joined #ruby
<ermajn>
nobody can tell me what :::something::: mean in ruby?
yfeldblum has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
<tobiasvl>
ermajn: what do you mean?
<tobiasvl>
ermajn: code example?
<ermajn>
tobiasvl: I have this in one of ruby files: command "redis-metrics.rb --scheme hardware.:::name:::.redis"
<ermajn>
on execution, this :::name::: is envolved into hostname
petey has quit [Remote host closed the connection]
<tobiasvl>
that's not ruby syntax. look in redis-metrics.rb and see what it does with that parameter?
<tobiasvl>
what do you mean, "evolved"?
marcgg_ has quit [Ping timeout: 252 seconds]
<ermajn>
tobiasvl: it become a stirng with hostname value
<ermajn>
string*
<tobiasvl>
yes
<tobiasvl>
but HOW?
<tobiasvl>
how does the code translate it?
<Hanmac>
system32 under windows64 is a totally joke ;D
<ermajn>
tobiasvl: that's what I don't undestande, and do not know where to search
<clocKwize>
if you accidentally go to the corner of the screen on osx, and it puts screensaver on, it dims down to it, when I do this by accident, my natural response is to close my eyes… I'm not sure why.
obs has joined #ruby
xk_id has joined #ruby
justsee has joined #ruby
predator217 has quit [Ping timeout: 264 seconds]
predator117 has joined #ruby
sevenseacat has quit [Quit: Leaving.]
xk_id has quit [Ping timeout: 252 seconds]
sayan has joined #ruby
fgo has quit [Remote host closed the connection]
pushpak has joined #ruby
Bry8Star{T2 has joined #ruby
nari has quit [Ping timeout: 245 seconds]
adambeynon has joined #ruby
Kar- has joined #ruby
bricker`LA has quit [Ping timeout: 264 seconds]
ahawkins has joined #ruby
freerobby has joined #ruby
Soda has quit [Remote host closed the connection]
Xeago has joined #ruby
Squarepy has joined #ruby
ferr has joined #ruby
nextdropping_ has quit [Ping timeout: 248 seconds]
zz_tsykoduk is now known as tsykoduk
freerobby has quit [Ping timeout: 260 seconds]
jbpros has quit [Quit: jbpros]
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar has quit [Read error: Connection reset by peer]
siwica has joined #ruby
senayar has joined #ruby
ciziar has quit [Quit: Computer has gone to sleep.]
<gcds>
you mean split("/").each val = hash[key] end return val ?
zarubin has quit [Ping timeout: 246 seconds]
<Hanmac>
something like "settings.text.user".split('.').inject(hash,:[])
<bnagy>
boo
<gcds>
hanmac: :O
zz_tsykoduk is now known as tsykoduk
<gcds>
wau...
<gcds>
nice
<gcds>
that's why i love ruby
<gcds>
:D
<bnagy>
no, it's not
<hoelzro>
agreed
<Hanmac>
this is more fail proof if the key does not exist: "settings.text.user".split('.').inject(hash) {|h,k| h ? h[k] : nil}
senayar has joined #ruby
<bnagy>
you think it is, because you're trying to do a crazy thing
Xeago has quit [Ping timeout: 245 seconds]
<hoelzro>
code golf is fun, but it's not maintainable =/
freerobby has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
lsmola has joined #ruby
senayar has joined #ruby
nari has joined #ruby
zoee has quit [Quit: zoee]
<bnagy>
I swear overnested hashes is some ORM disease that took root a few years ago :<
nextdropping has joined #ruby
<workmad3>
bnagy: I see it more as a symptom of people extending things that were intended initially as throwaway scripts, so they just used plain hashes and arrays rather than creating proper data structures
Lewix has quit [Remote host closed the connection]
tgraham has joined #ruby
<workmad3>
bnagy: also people dealing with JSON data and again not wrapping it up into a decent data structure for their use :)
kaspergrubbe has quit [Remote host closed the connection]
<bnagy>
yeh but even s.test.pass .. if I have a KV store that has not been written with someone's feet, why not literally have "settings.test.pass" => "kitty"
reskp_ has quit [Remote host closed the connection]
<bnagy>
they all have native prefix suffix ops :/
<bnagy>
instead we have to build retarded hashes that don't raise when you deref nil
<workmad3>
:)
obs has joined #ruby
nanothief has joined #ruby
obs has quit [Read error: Connection reset by peer]
<ferr>
where should I search for ruby characters like / \ = += . () #{} and etc definitions?
<bnagy>
man ascii
<tobiasvl>
ferr: so you're wondering where you can learn ruby syntax?
obs has joined #ruby
<bnagy>
nah, it's not well documented in ruby-doc, try the quickref, that's awesome
postmodern has quit [Quit: Leaving]
cj3kim has joined #ruby
<ferr>
ye, I got exercise and I need to name them and tell what they do
rahulkmr has quit [Read error: Connection reset by peer]
<ferr>
I know what they do, but I don't know the names
tgraham has quit [Ping timeout: 252 seconds]
BabaLui has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
staafl has quit [Ping timeout: 240 seconds]
<bnagy>
oh.. huh, bootstrapping issue
rahulkmr has joined #ruby
<BabaLui>
hi, how can i force a newline after a line like print SOME_VARIABLE ? It doesnt newline and output ends up behind [username@servername] when i run it in terminal
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
visof has quit [Quit: Leaving]
<gcds>
hmm Is it possible to extend Logger with own logger which just basicaly set ups it ?
allsystemsarego has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
kay_ has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
ferr has quit [Ping timeout: 240 seconds]
<Hanmac>
gcds in ruby you can extend nearly every object with every module (except some instances of core classes like Fixnum or Symbol)
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
dash_ has quit [Ping timeout: 260 seconds]
<gcds>
hanmac: Ok, I want to return configured Logger with my logger class I am thinking about initilazation of my class which self.new and configures logger but don't know how correctly make it
dkannan has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
freerobby has joined #ruby
shaunbaker has quit [Remote host closed the connection]
Lewix has joined #ruby
<Hanmac>
i tihnk it works with some kind of decorator object … (if that is what you want) … i think you should make a pastie about this that shows what you mean ...
dash_ has joined #ruby
<Hanmac>
from what you said i thought logger.extend(MyModuleName)
mneorr has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
zz_tsykoduk is now known as tsykoduk
ldnunes has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
Elhu has joined #ruby
Lewix has joined #ruby
<gcds>
Oh it was really easy :D class MyLogger < Logger def initialize(lvl) super(STDOUT); level = lvl end end
SkuliOskarsson has quit [Quit: SkuliOskarsson]
ArchBeOS has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
SkuliOskarsson has joined #ruby
chairabanta has joined #ruby
obs has quit [Ping timeout: 248 seconds]
ewnd9 has quit [Read error: Operation timed out]
Speed has joined #ruby
<Hanmac>
or like that, but its not really "extend" ;P
Lewix has quit [Remote host closed the connection]
<Hanmac>
gcds: you need self.level = lvl … only level = lvl does not work
Jdubs_ has joined #ruby
<gcds>
oh
Lewix has joined #ruby
devoldmx3 has joined #ruby
<heftig>
gcds: i'd recommend defaulting to STDERR, not STDOUT
<gcds>
why?
<gcds>
I am using only info
<heftig>
because that's where the messages go, typically
<gcds>
ok ok
<gcds>
oh ok*
dawkirst has joined #ruby
tsykoduk is now known as zz_tsykoduk
dagobah has joined #ruby
tgraham is now known as tgraham|away
funburn has joined #ruby
devoldmx27 has joined #ruby
<Hanmac>
or you can use IO::NULL ;P
devoldmx has quit [Ping timeout: 256 seconds]
Jdubs__ has joined #ruby
<heftig>
i suppose that's /dev/null on unix and NUL: on windows
<Hanmac>
heftig: yeah , isnt that cool?
petey has joined #ruby
row248 has quit [Read error: Connection reset by peer]
tgraham|away is now known as tgraham
fgh has quit [Ping timeout: 240 seconds]
Jdubs_ has quit [Ping timeout: 245 seconds]
fgh has joined #ruby
devoldmx3 has quit [Ping timeout: 260 seconds]
petey has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
rahulkmr1 has joined #ruby
iamjarvo has joined #ruby
rahulkmr has quit [Ping timeout: 246 seconds]
krz has quit [Quit: krz]
varfoo has quit [Quit: WeeChat 0.4.0]
sectionme has joined #ruby
malkomalko has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
staafl has quit [Ping timeout: 245 seconds]
chairabanta has quit [Quit: Leaving...]
Jdubs__ has quit [Remote host closed the connection]
Jdubs_ has joined #ruby
rh1n0 has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
sayan has quit [Ping timeout: 248 seconds]
Popple has quit [Quit: Computer has gone to sleep.]
IceyEC has joined #ruby
IceyEC has quit [Client Quit]
claymore has joined #ruby
mrnugget has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Xeago has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
zastern has joined #ruby
mephux has quit [Ping timeout: 256 seconds]
rockets has quit [Ping timeout: 240 seconds]
zz_tsykoduk is now known as tsykoduk
Xeago has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 264 seconds]
tvw has quit []
guilleiguaran_ has quit [Ping timeout: 246 seconds]
tommyvyo has quit [Ping timeout: 245 seconds]
chuk_ has quit [Ping timeout: 245 seconds]
chuk_ has joined #ruby
mattyohe has quit [Ping timeout: 245 seconds]
dnyy has quit [Ping timeout: 245 seconds]
Guest15226 has joined #ruby
kapowaz has quit [Ping timeout: 264 seconds]
keyvan_ has quit [Ping timeout: 245 seconds]
bluehavana has quit [Ping timeout: 245 seconds]
heidar has quit [Ping timeout: 245 seconds]
graydot has joined #ruby
wallerdev has joined #ruby
cool has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
sayan has joined #ruby
browndawg has joined #ruby
g3orge has joined #ruby
xcv has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
Lewix has quit [Remote host closed the connection]
Rollabunna has joined #ruby
g0bl1n has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
mneorr_ has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
colonolGron has joined #ruby
staafl has joined #ruby
browndawg has joined #ruby
SkuliOskarsson has quit [Quit: SkuliOskarsson]
wallerdev has quit [Quit: wallerdev]
mneorr has quit [Ping timeout: 246 seconds]
mark_locklear has joined #ruby
gwb3 has joined #ruby
jkamenik has joined #ruby
jbpros_ has joined #ruby
jcromartie has joined #ruby
tkuchiki has quit [Remote host closed the connection]
jbpros has quit [Ping timeout: 246 seconds]
jbpros_ is now known as jbpros
<jcromartie>
Why would I use this: require File.dirname(__FILE__) + '/whatever'; instead of just: require_relative 'whatever'
brupeb has joined #ruby
<jcromartie>
I see, Ruby 1.9.2 ...
kaspergrubbe has quit [Remote host closed the connection]
<shevy>
jcromartie because require is better than require_relative, just not the way whoever wrote that code did
malkomalko has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 256 seconds]
funburn has quit [Quit: funburn]
staafl has quit [Ping timeout: 248 seconds]
<jcromartie>
looking at popular gems, they seem to do
banisterfiend has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 260 seconds]
<jcromartie>
hm
<jcromartie>
this is not becoming any clearer to me :)
banisterfiend has joined #ruby
kaspergrubbe has joined #ruby
SkuliOskarsson has joined #ruby
<lupine>
there is good practice and bad practice
vlad_starkov has joined #ruby
mlpinit_ has joined #ruby
<lupine>
bad practice is used out of ignorance or necessity
tgraham is now known as tgraham|away
justsee has quit [Quit: leaving]
<jcromartie>
I guess if I have a proper gem setup then my gem can 'require "foo/bar"' to load internal files without issue, because the gem's lib dir will be added to the Ruby load path by rubygems
schaerli has quit [Remote host closed the connection]
<jcromartie>
and during development, I just need to set RUBY_LIB=./lib
<jcromartie>
err, RUBYLIB
browndawg has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
<jcromartie>
that should keep things simple
monkegjinni has joined #ruby
WhiteHorse has joined #ruby
browndawg has joined #ruby
krawchyk has joined #ruby
freerobby has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jdubs_ has quit [Remote host closed the connection]
<shevy>
huh where did he go
<shevy>
famous last words eh ...
shaunbaker has joined #ruby
cj3kim has joined #ruby
kilophoton has joined #ruby
zz_tsykoduk is now known as tsykoduk
xk_id has joined #ruby
sloucher has quit [Quit: sloucher]
freerobby has quit [Ping timeout: 240 seconds]
marcgg_ has joined #ruby
breakingthings has joined #ruby
Jetchisel has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
Guest79008 has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
kil0byte_ has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
marcgg_ has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
evenix has quit [Ping timeout: 260 seconds]
platzhirsch has joined #ruby
Lewix has joined #ruby
freerobby has joined #ruby
admin0 has joined #ruby
mengu has joined #ruby
kaldrenon has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
obs has joined #ruby
obs has quit [Client Quit]
juni0r has left #ruby ["WeeChat 0.3.8"]
osvico has quit [Ping timeout: 248 seconds]
kvirani has joined #ruby
BizarreCake has joined #ruby
rdark has joined #ruby
lfox has joined #ruby
DrCode has quit [Remote host closed the connection]
aleron has joined #ruby
pothibo has joined #ruby
kvirani has quit [Read error: Connection reset by peer]
kvirani_ has joined #ruby
tgraham|away is now known as tgraham
lkba has joined #ruby
iamjarvo has joined #ruby
jbpros has quit [Ping timeout: 256 seconds]
KobraKao has joined #ruby
atno has quit [Remote host closed the connection]
jbpros has joined #ruby
fixl has quit [Remote host closed the connection]
gja has joined #ruby
jbsnake has quit [Quit: leaving]
KobraKao has quit [Read error: Connection reset by peer]
mrnugget has quit [Quit: mrnugget]
DrCode has joined #ruby
KobraKao has joined #ruby
jibi has joined #ruby
angusiguess has joined #ruby
wallerdev has joined #ruby
alexju has joined #ruby
kil0byte has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
tommyvyo has joined #ruby
vince_prignano has quit [Remote host closed the connection]
tobiasvl has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
xcv has joined #ruby
DrCode has quit [Excess Flood]
KobraKao has quit [Ping timeout: 260 seconds]
Lewix has quit [Remote host closed the connection]
Kabaka has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
devoldmx27 has quit [Ping timeout: 240 seconds]
tobiasvl has joined #ruby
kil0byte_ has quit [Ping timeout: 252 seconds]
cj3kim has joined #ruby
DrCode has joined #ruby
zz_tsykoduk is now known as tsykoduk
alexju has quit [Read error: Connection reset by peer]
alexju has joined #ruby
drumsrgr8forn8_ has quit [Ping timeout: 240 seconds]
soba has quit [Ping timeout: 240 seconds]
xk_id has joined #ruby
rudisimo has joined #ruby
aryaching_ has joined #ruby
aryaching_ is now known as aryaching
cj3kim has quit [Ping timeout: 252 seconds]
aryaching is now known as aryaching_
aryaching_ is now known as aryaching
TheBrainWork has joined #ruby
momomomomo has joined #ruby
thetristan has joined #ruby
dodosan has joined #ruby
momomomomo has quit [Client Quit]
niceguyjames has joined #ruby
interactionjaxsn has joined #ruby
thetristan has quit [Client Quit]
khushildep has joined #ruby
tsykoduk is now known as zz_tsykoduk
r0bgl33s0n has joined #ruby
niceguyjames has quit [Client Quit]
geekbri has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
joast has quit [Quit: Leaving.]
Desert_eagle has joined #ruby
thetristan has joined #ruby
snovak_ has quit [Remote host closed the connection]
KobraKao has joined #ruby
Anticom has joined #ruby
joast has joined #ruby
snovak has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
Anticom has quit [Read error: Connection reset by peer]
mayorga has joined #ruby
fangari has joined #ruby
T_T has joined #ruby
jamesaanderson has joined #ruby
aryaching_ has joined #ruby
Anticom has joined #ruby
dodosan has quit [Remote host closed the connection]
elplatt has joined #ruby
kil0byte_ has joined #ruby
zeel has quit [Quit: klined]
Anticom has quit [Read error: Connection reset by peer]
thetristan has left #ruby [#ruby]
thetristan has joined #ruby
xcv has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 248 seconds]
elplatt has quit [Client Quit]
T_T has quit [Remote host closed the connection]
FDj has quit [Ping timeout: 240 seconds]
bamdad has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
Anticom has joined #ruby
rh1n0 has joined #ruby
obs has joined #ruby
elplatt has joined #ruby
mayorga has quit [Ping timeout: 256 seconds]
mayorga has joined #ruby
sailias has joined #ruby
elplatt has quit [Client Quit]
jcromartie has joined #ruby
mayorga has quit [Max SendQ exceeded]
bluOxigen has quit [Ping timeout: 246 seconds]
mayorga has joined #ruby
bean__ has joined #ruby
vishal has quit [Remote host closed the connection]
aryaching_ is now known as aryaching
gwb3 has quit [Remote host closed the connection]
mlpinit_ has quit [Remote host closed the connection]
devoldmx has joined #ruby
larissa has joined #ruby
mayorga has quit [Max SendQ exceeded]
kil0byte has joined #ruby
geekbri has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
mayorga has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
geekbri has joined #ruby
aleron has quit [Quit: leaving]
fuhgeddaboudit has joined #ruby
mlpinit has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
quoin has quit [Remote host closed the connection]
aleron has joined #ruby
brennanMKE has joined #ruby
quoin has joined #ruby
mayorga has quit [Max SendQ exceeded]
kil0byte_ has quit [Ping timeout: 240 seconds]
mayorga has joined #ruby
zz_tsykoduk is now known as tsykoduk
KobraKao has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
KobraKao has joined #ruby
io_syl has joined #ruby
alekst has joined #ruby
Matriks has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
shaunbaker has quit [Remote host closed the connection]
devoldmx has joined #ruby
svector has joined #ruby
codecop has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
fmcgeough has joined #ruby
burlyscudd has joined #ruby
xk_id has quit [Quit:
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsykoduk is now known as zz_tsykoduk
dodosan has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Phobos has joined #ruby
<Phobos>
Hello All
wallerdev has quit [Quit: wallerdev]
petey has joined #ruby
<Phobos>
I had a frustrating problem this morning.. I pushed a gem to rubygems database.. But it seems that this version had some serious bugs.. So I have yanked it and pushed a new version
<Phobos>
The problem is that this version is still available in the home page of the gem
petey has quit [Remote host closed the connection]
wallerdev has joined #ruby
Anticom has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
elux has joined #ruby
petey has joined #ruby
sr78ger has quit [Read error: Operation timed out]
<Phobos>
hanmac, thank you.. I was there this morning.. the gem version is already yanked but still showed in the home page... What I want is to set the version 0.0.2 in the home page instead of the old one
mmitchell has joined #ruby
<Phobos>
and their statement : "Yanking a gem effectively removes it from being found and will do the trick in 99% percent of situations' is not correct
<dawkirst>
In rubocop output, what does "Missing top-level class documentation comment" want exactly?
<Hanmac>
Phobos: not for me, the front pag only shows 0.0.2.pre for me
shaunbaker has quit [Ping timeout: 245 seconds]
<Phobos>
hanmac, incredible :s what I see here is :This gem has been yanked, but it is still available for download for other gems that may have depended on it. For more information or if you need to remove it permanently, please click here."
<Phobos>
in the home page
bluehavana has joined #ruby
guilleiguaran_ has joined #ruby
cj3kim has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Phobos>
hanmac, I even removed browser caches and even opened another browser.. but still got same page
burlyscudd has joined #ruby
<Hanmac>
toolbox says: Current Version: 0.0.2.pre
<Phobos>
hanmac, yes now click on the link
cool has joined #ruby
tesuji has quit [Ping timeout: 245 seconds]
<Hanmac>
OH you mean this, ok it seems that something is not updated yet on rubygems
narcan has quit [Client Quit]
<Hanmac>
Phobos: try at #rubygems
svector has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
<Phobos>
hanmac, yes I was already there.. but are you sure that when you access this link : https://rubygems.org/gems/event_dispatcher you ended up in the new version 0.0.2pre ?
<mrbrdo>
is there a way to tell ruby to not garbage collect some object?
iamjarvo has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
nari has quit [Ping timeout: 240 seconds]
<mrbrdo>
as a workaround if I put it into a global variable will that do?
iamjarvo has joined #ruby
__nh__ has quit [Remote host closed the connection]
<Hanmac>
mrbrdo: everything that is not stored into a variable will be collected, so you need to store it somewhere, like an instance variable, or a global variable, or even a local variable in main space
thesheff17 has joined #ruby
duggiefresh has joined #ruby
<mrbrdo>
okay thanks
gilesw_ has quit [Ping timeout: 246 seconds]
flowerhack has quit [Ping timeout: 252 seconds]
karnowski has quit [Read error: Operation timed out]
xpirator has quit [Read error: Operation timed out]
[Neurotic] has quit [Read error: Operation timed out]
HavokOC has quit [Read error: Operation timed out]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ziyadb has quit [Ping timeout: 248 seconds]
blooberr_ has quit [Ping timeout: 264 seconds]
priyam_ has quit [Ping timeout: 248 seconds]
<nhmood>
In Ruby, is the convention to return 0 for success and 1 for failure? Or is it preferred to return true/false, string, ect?
[0x1a]_ has quit [Ping timeout: 252 seconds]
vim_shim has joined #ruby
lectrick has quit [Ping timeout: 246 seconds]
keyvan_ has quit [Read error: Operation timed out]
dekz has quit [Read error: Operation timed out]
denysonique has quit [Ping timeout: 248 seconds]
Domon_ has quit [Ping timeout: 248 seconds]
zero7 has quit [Ping timeout: 240 seconds]
bluehavana has quit [Read error: Operation timed out]
mroth has quit [Ping timeout: 256 seconds]
cool has quit [Ping timeout: 240 seconds]
shaileshg has quit [Read error: Operation timed out]
joker_ has quit [Ping timeout: 260 seconds]
khushildep_ has joined #ruby
<nhmood>
I know Perl (failure = 0, success = 1) has it opposite from C/C++
randym_ has quit [Ping timeout: 245 seconds]
rubyguy has quit [Ping timeout: 245 seconds]
heidar has quit [Ping timeout: 252 seconds]
davidboy has quit [Ping timeout: 252 seconds]
fourq__ has quit [Ping timeout: 252 seconds]
Guest85414___ has quit [Ping timeout: 252 seconds]
rndstr has quit [Ping timeout: 264 seconds]
TheHodge has quit [Ping timeout: 264 seconds]
kil0byte_ has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
xerxas has quit [Ping timeout: 264 seconds]
s2r2 has quit [Ping timeout: 256 seconds]
guilleiguaran_ has quit [Ping timeout: 245 seconds]
JoeTheGuest has quit [Ping timeout: 260 seconds]
<apeiros>
nhmood: usually failure is communicated through exceptions
notbrent_ has quit [Ping timeout: 248 seconds]
geoffw8_ has quit [Ping timeout: 248 seconds]
jbpros has quit [Quit: jbpros]
Zespre has quit [Ping timeout: 264 seconds]
octarine has quit [Ping timeout: 246 seconds]
mattyohe has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
jpinnix has quit [Ping timeout: 248 seconds]
chuk_ has quit [Ping timeout: 240 seconds]
dziga has quit [Ping timeout: 245 seconds]
ckrailo has quit [Ping timeout: 256 seconds]
cam`_ has quit [Ping timeout: 256 seconds]
mostlybadfly has quit [Ping timeout: 256 seconds]
djd has quit [Ping timeout: 256 seconds]
<cout>
I'm going to start calling freenode the "ping timeout network"
alexju has quit [Remote host closed the connection]
karlfreeman has quit [Ping timeout: 240 seconds]
kpshek has joined #ruby
dnyy has quit [Ping timeout: 260 seconds]
tsykoduk is now known as zz_tsykoduk
svector has quit [Ping timeout: 256 seconds]
kapowaz has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Ping timeout: 264 seconds]
niftylettuce has quit [Ping timeout: 268 seconds]
ggherdov has quit [Ping timeout: 268 seconds]
strax has quit [Ping timeout: 268 seconds]
moeSeth__ has quit [Ping timeout: 268 seconds]
alexju has joined #ruby
alx- has joined #ruby
<nhmood>
apeiros: Is that not for failures that prohibit the program from continuing though? (divide by 0, can't open file, ect)
khushildep has quit [Ping timeout: 246 seconds]
khushildep_ is now known as khushildep
bamdad has quit [Quit: bamdad]
nanoxd has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
<nhmood>
apeiros: I have a method that does some text parsing and I was thinking more along the lines of found match / didn't find match pass/fail
<nhmood>
apeiros: return "string" if found, return {some value, 1 or 0) if failure
<gcds>
My coworkers though i was watching some kind of porn so many whips :DDDDD
tonni_ has quit [Remote host closed the connection]
tobago-work has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
cj3kim has joined #ruby
zz_tsykoduk is now known as tsykoduk
dash_ has quit [Quit: dash_]
ggherdov has joined #ruby
strax has joined #ruby
HavokOC has joined #ruby
dekz has joined #ruby
SkuliOskarsson has joined #ruby
s2r2 has joined #ruby
priyam__ has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
endash has joined #ruby
tabolario has joined #ruby
jb41 has joined #ruby
Zespre has joined #ruby
mostlybadfly has joined #ruby
g3orge has quit [Quit: leaving]
flowerhack has joined #ruby
TheHodge has joined #ruby
davidboy has joined #ruby
lessless has joined #ruby
tbrock_ has joined #ruby
enebo has joined #ruby
dmiller_ has joined #ruby
noopq has quit [Ping timeout: 248 seconds]
cj3kim has quit [Ping timeout: 260 seconds]
dkannan has quit [Quit: dkannan]
xcv has quit [Remote host closed the connection]
pen has joined #ruby
leehambley has quit [Ping timeout: 245 seconds]
shevy has joined #ruby
__nh__ has joined #ruby
<nhmood>
Phobos, Yeah I know the "Ruby" way is much different, I've been trying to do things properly as I learn Ruby
<nhmood>
Phobos, Thanks for the link though, I will give it a look
boxmein has joined #ruby
mansi has quit [Remote host closed the connection]
dmiller_ has quit [Ping timeout: 264 seconds]
JMcAfreak has joined #ruby
tsykoduk is now known as zz_tsykoduk
kapowaz has joined #ruby
mansi has joined #ruby
tommyvyo has joined #ruby
Davey has joined #ruby
graydot has joined #ruby
Xeago has joined #ruby
Davey has quit [Client Quit]
wchun has quit [Quit: Leaving]
leehambley has joined #ruby
zz_tsykoduk is now known as tsykoduk
mengu has quit [Remote host closed the connection]
Davey has joined #ruby
mengu has joined #ruby
__nh__ has quit [Remote host closed the connection]
lukec has joined #ruby
Clooth has quit [Quit: Leaving...]
tobago has quit [Remote host closed the connection]
tobago-work has quit [Remote host closed the connection]
solars has left #ruby ["WeeChat 0.4.0"]
ckrailo has joined #ruby
lessless has quit [Remote host closed the connection]
mike1992 has joined #ruby
<Hanmac>
haha, the Newcomers doc on the ruby-doc.com page it totally outdated ;D
sarbull has quit [Ping timeout: 256 seconds]
cescalante is now known as ce_afk
<Hanmac>
"Last updated: Nov 25, 2002." :D
sarkis has quit [Ping timeout: 248 seconds]
wyclif has joined #ruby
graydot has quit [Quit: graydot]
krz has joined #ruby
arturaz has quit [Ping timeout: 264 seconds]
baordog_ has joined #ruby
petey has quit [Remote host closed the connection]
jkamenik has quit [Quit: Leaving.]
io_syl has quit []
taptapdan has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elplatt has joined #ruby
jprovazn_mtg has quit [Quit: Leaving]
mrsolo has quit [Quit: This computer has gone to sleep]
andredublin has joined #ruby
khushildep_ has joined #ruby
alex__c2022 has joined #ruby
bluOxigen has joined #ruby
petey has joined #ruby
<jcromartie>
oh Nokogiri, you're so *clever*
<jcromartie>
so clever that you can't just add an arbitrary tag with Nokogiri::XML:Builder without using send
<jcromartie>
because it solely relies on metaprogramming to generate tags
<jcromartie>
fuck that
khushildep has quit [Ping timeout: 264 seconds]
khushildep_ is now known as khushildep
<Hanmac>
jcromartie: whats the name of the tag you want?
mayorga has quit [Read error: Operation timed out]
jamesaanderson has joined #ruby
tonni has joined #ruby
gcds has quit [Quit: gcds]
<jcromartie>
the name is whatever key in the hash I'm iterating over
<jcromartie>
i.e. it is only known at runtime
dash_ has joined #ruby
<Hanmac>
and how do you think it should work without send? thats not a found of nokogiri
<Hanmac>
not a foult
<jcromartie>
fault?
<jcromartie>
there should be a method to add a new element
<jcromartie>
as such, there is no actual method to simply add an element to the document
<jcromartie>
I think that's a shitty API
Stygia has quit [Ping timeout: 248 seconds]
tatsuya_o has quit [Remote host closed the connection]
dancardamore has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
io_syl has joined #ruby
andredublin has left #ruby [#ruby]
andredublin has joined #ruby
mercwithamouth has joined #ruby
Stygia has joined #ruby
cj3kim has joined #ruby
ce_afk is now known as cescalante
Macaveli has quit [Quit: Computer has gone to sleep.]
heidar has joined #ruby
momomomomo has joined #ruby
<Hanmac>
there is add_child for the nodes, but you use the builder-mode … each other method would break the builder itself because it cant be used as "tag" anymore
freezey has joined #ruby
dancardamore has quit [Ping timeout: 248 seconds]
krz has quit [Ping timeout: 246 seconds]
SkuliOskarsson has quit [Quit: SkuliOskarsson]
maletor has joined #ruby
maletor has quit [Client Quit]
cj3kim has quit [Ping timeout: 246 seconds]
heftig has quit [Quit: Quitting]
fgh has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
michael_mbp is now known as zz_michael_mbp
ixti has joined #ruby
admin0 has quit [Read error: Connection reset by peer]
rippa has joined #ruby
pel_daniel has joined #ruby
maletor has joined #ruby
maletor has quit [Client Quit]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac>
shevy: someone in ruby-forum ask for a "basic code protection" in ruby … how much should i laugh about him? ;P
burlyscudd has joined #ruby
Thelixinoe- has joined #ruby
Targen_ has joined #ruby
clov3r has joined #ruby
alx- has quit [Quit: Leaving...]
Targen has quit [Ping timeout: 252 seconds]
momomomomo has quit [Quit: momomomomo]
jacktrick has joined #ruby
__nh__ has joined #ruby
tsykoduk is now known as zz_tsykoduk
tkuchiki has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
row248 has joined #ruby
row248 has quit [Max SendQ exceeded]
row248 has joined #ruby
tbrock_ has quit [Ping timeout: 246 seconds]
khushildep_ has joined #ruby
Trudko has joined #ruby
SkuliOskarsson has joined #ruby
schaerli has joined #ruby
bricker`LA has joined #ruby
zeel has joined #ruby
<Trudko>
hi guys I am opening CSV http://pastie.org/8369909 by line CSV.foreach(file.path, :quote_char => "\'",:encoding => "windows-1251:utf-8", headers: true) do |row| and i have error "\x98" to UTF-8 in conversion from Windows-1251 to UTF-8
lkba has joined #ruby
beaky has joined #ruby
<beaky>
hello
kaspergrubbe has quit [Remote host closed the connection]
<beaky>
WARNING: You don't have /home/beaky/.gem/ruby/2.0.0/bin in your PATH,
<beaky>
how do I resolve that problem?
tkuchiki has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
phantasm66 has joined #ruby
khushildep has quit [Ping timeout: 245 seconds]
khushildep_ is now known as khushildep
__nh__ has quit [Remote host closed the connection]
fangari has left #ruby [#ruby]
kaspergrubbe has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
asobrasil has joined #ruby
tylersmith has joined #ruby
baroquebobcat has joined #ruby
Bira has joined #ruby
aganov has quit [Remote host closed the connection]
elplatt_ has joined #ruby
tylersmith has quit [Ping timeout: 248 seconds]
__nh__ has joined #ruby
vlad_starkov has joined #ruby
dhruvasagar has joined #ruby
Thelixinoe- has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
mengu has quit [Remote host closed the connection]
Thelixinoe- has joined #ruby
vpretzel_ has joined #ruby
jamesaanderson has joined #ruby
mengu has joined #ruby
evenix has joined #ruby
boxmein has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
elplatt has quit [Ping timeout: 240 seconds]
elplatt_ is now known as elplatt
Spami has quit [Quit: This computer has gone to sleep]
<bean__>
beaky: by adding it to your $PATH
<beaky>
ah
<beaky>
ok i will check
<bean__>
likely in your ~/.bash_profile or similar
mikecmpbll has joined #ruby
Clooth has joined #ruby
mattyohe has joined #ruby
<beaky>
yay that fixed it thank!
<beaky>
gem install heroku
vlad_sta_ has joined #ruby
<beaky>
oops wrong window
jamesaanderson has quit [Client Quit]
alup has quit [Quit: Leaving]
evenix_ has quit [Ping timeout: 245 seconds]
<beaky>
I lvoe ruby
<beaky>
before I learned asp.net i used ruby to make webapps
Thelixinoe- has quit [Ping timeout: 246 seconds]
<beaky>
it taught me mvc paradigm
<beaky>
and ruby is very elegnat language
ahawkins has quit [Quit: leaving]
Valesk_ has joined #ruby
DaZ has quit [Ping timeout: 260 seconds]
cj3kim_ has joined #ruby
fgh has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
dagobah has quit [Remote host closed the connection]
cj3kim_ has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
DaZ_ has joined #ruby
freezey has quit [Remote host closed the connection]
mjc_ has joined #ruby
leonidlm has joined #ruby
xcv has joined #ruby
atno has joined #ruby
mansi has quit [Read error: Connection reset by peer]
octarine has joined #ruby
mansi has joined #ruby
evenix has quit [Remote host closed the connection]
freezey has joined #ruby
bricker`1A has joined #ruby
evenix has joined #ruby
freerobby has quit [Quit: Leaving.]
bricker`LA has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
freerobby has joined #ruby
heidi has joined #ruby
sectionme has quit [Ping timeout: 248 seconds]
<jb41>
is it possible to make it cleanier map(&:something).map(&:something_else) ?
<Hanmac>
jb41: only with a block or a proc
gwb3 has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<jb41>
ok, thanks
thesheff17 has quit [Remote host closed the connection]
ehc has joined #ruby
jibi has quit [Ping timeout: 240 seconds]
leonidlm has quit [Ping timeout: 252 seconds]
ssvo has joined #ruby
Stygia has quit [Quit: Leaving]
Soda has joined #ruby
mlpinit has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
lfox has quit [Quit: ZZZzzz…]
headius has joined #ruby
<Trudko>
pontiki: no user can upload file and I am not sure which encoding it will be
<Trudko>
it can be windows 1250 or utf 8
<pontiki>
fair warning: i *really* hate encodings :>
<Trudko>
I am using csv foreach to parse csv which gives you encoding option but it has source and destination and i can have two different source encoding.
<apeiros>
lol
<pontiki>
so i could be very wrong about this
petey has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 260 seconds]
<apeiros>
Trudko: force_encode it to utf-8 and do valid_encoding?
dhruvasagar has joined #ruby
lukec has quit [Quit: lukec]
<apeiros>
if it is valid, it is either not win1250 or does not contain conflicting chars (0x80-0xff)
<pontiki>
you may need to read it, check the encoding, the parse it
alx- has joined #ruby
<Trudko>
can you please post example?
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
if i had one handy
<pontiki>
i'm not going to go write one
<apeiros>
if it is not valid, it's not utf-8, and if you only have utf-8 or win1250, it therefore must be win1250
<relix>
even though (especially?) because it was a cache miss
<Eiam>
oh, rails question
<Eiam>
#rubyonrails
a1ph4g33k has joined #ruby
<relix>
Eiam yeah I figured it wasn't rails related though
devoldmx has quit [Ping timeout: 260 seconds]
dash_ has quit [Quit: dash_]
mikepack has quit [Remote host closed the connection]
asteros has joined #ruby
<relix>
how do I clone the array so that it's no longer frozen?
sarlalian has joined #ruby
xk_id has quit [Quit:
<relix>
it's an array that contains other Objects, since I only need a new array with the same objects
sarlalian has quit [Client Quit]
<relix>
it can be shallow, I gues using #dup?
Kar- has joined #ruby
Ripp__ has joined #ruby
sarlalian has joined #ruby
asteros has quit [Client Quit]
<a1ph4g33k>
good morning all.
<banisterfiend>
a1ph4g33k morn'
rockets has joined #ruby
sectionme has quit [Ping timeout: 264 seconds]
asteros has joined #ruby
zastern has quit [Ping timeout: 248 seconds]
wchun has joined #ruby
iliketurtles has joined #ruby
apfelbox has quit [Remote host closed the connection]
ciziar has joined #ruby
apfelbox has joined #ruby
freezey has quit [Remote host closed the connection]
zastern__ has quit [Remote host closed the connection]
zastern has joined #ruby
Hanmac has quit [Quit: Leaving.]
saarinen has joined #ruby
rockets has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
dash_ has joined #ruby
apfelbox has quit [Ping timeout: 245 seconds]
musl has quit [Quit: WeeChat 0.4.1]
Elhu has quit [Quit: Computer has gone to sleep.]
elaptics is now known as elaptics`away
MrZYX|off is now known as MrZYX
lukec has joined #ruby
havenwood has joined #ruby
freezey has joined #ruby
tjkrusinski has joined #ruby
ewnd9 has quit [Ping timeout: 240 seconds]
xcv has quit [Remote host closed the connection]
leonidlm has joined #ruby
xk_id has joined #ruby
<Eiam>
relix: I sometimes dump an object out with marshal then load it into another object
<Eiam>
to get a deep copy =p
<relix>
Eiam hah
xcv has joined #ruby
<relix>
.dup is doing fine for now for me :)
rdark has quit [Quit: leaving]
<Eiam>
den shallow copies.. sometimes too shallow =)
<Eiam>
dem
<Eiam>
x = Marshal.load(Marshal.dump(y))
<Eiam>
# copy damnit!
lfox has joined #ruby
asteros has quit [Quit: asteros]
T_T has quit [Remote host closed the connection]
dankest has joined #ruby
asteros has joined #ruby
<Eiam>
banisterfiend: why can't I, in binding.pry, do something like "puts x;continue" ?
<banisterfiend>
Eiam because commands are not methods
asteros has quit [Client Quit]
jcromartie has joined #ruby
<banisterfiend>
Eiam can you do this: puts x; _pry_.run 'continue'
<Eiam>
ah I see, that makes sense
<banisterfiend>
Eiam make that _pry_.run_command
<banisterfiend>
Eiam that was a deliberate choice, if they were methods we'd have to worry about conflicts and overriding etc
pellenation has quit [Quit: Leaving.]
<banisterfiend>
and if pry is dumping a bunch of methods everywhere it could interfere with your app, and a debugger that interferes with an app is not a good debugger ;)
tgraham|away is now known as tgraham
tonni has quit [Remote host closed the connection]
kreisys has joined #ruby
<Eiam>
sure, I understand
Tricon has joined #ruby
troessner has quit [Quit: Leaving]
jkamenik has joined #ruby
kpshek has quit []
<Eiam>
thanks for the crash course
adeponte has joined #ruby
kaldrenon has quit [Remote host closed the connection]
kaldrenon has joined #ruby
burlyscudd has quit [Quit: Leaving.]
jbpros has joined #ruby
kay_ has quit [Remote host closed the connection]
Freeaqingme has quit [Ping timeout: 264 seconds]
troessner has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
dash_ has quit [Quit: dash_]
row248 has quit [Read error: Operation timed out]
iliketurtles has joined #ruby
kaldrenon has quit [Ping timeout: 240 seconds]
Targen_ has quit [Ping timeout: 240 seconds]
cj3kim_ has joined #ruby
nbrosnahan has joined #ruby
newUser1234 has quit [Remote host closed the connection]
tylersmith has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
heidi has joined #ruby
troessner has quit [Client Quit]
nbrosnahan has quit [Max SendQ exceeded]
blaxter_ has joined #ruby
T_T has joined #ruby
nbrosnahan has joined #ruby
khushildep has quit [Ping timeout: 240 seconds]
whunt has joined #ruby
newUser1234 has joined #ruby
Freeaqingme has joined #ruby
apeiros has joined #ruby
Doc_X has joined #ruby
Freeaqingme is now known as Guest99659
kreisys has quit [Quit: Computer has gone to sleep.]
Doc_X has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
kaldrenon has joined #ruby
Doc_X has joined #ruby
petey has quit [Remote host closed the connection]
cj3kim_ has quit [Ping timeout: 264 seconds]
Guest99659 is now known as Freeaqingme
io_syl has joined #ruby
zipace has joined #ruby
zipace has joined #ruby
ciziar has quit [Ping timeout: 241 seconds]
blz37 has quit [Ping timeout: 245 seconds]
dash_ has joined #ruby
Guest79008 has quit [Read error: Connection reset by peer]
thinkclay has joined #ruby
adeponte has joined #ruby
nanothief has quit [Ping timeout: 248 seconds]
ziprar has quit [Ping timeout: 264 seconds]
alex__c2022 has quit [Quit: alex__c2022]
soheil has joined #ruby
apfelbox has joined #ruby
ldnunes has quit [Quit: Leaving]
zz_tsykoduk is now known as tsykoduk
rackburn has left #ruby [#ruby]
c0rn has joined #ruby
sniffingcats has joined #ruby
blaxter_ has quit [Quit: foo]
__nh__ has joined #ruby
tsykoduk is now known as zz_tsykoduk
gcds has joined #ruby
apfelbox has quit [Ping timeout: 260 seconds]
Advocation has joined #ruby
Phobos has quit [Quit: Leaving]
thesheff17 has joined #ruby
petey has joined #ruby
a1ph4g33k has quit [Quit: Leaving]
vlad_sta_ has quit [Remote host closed the connection]
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pinage404 has quit [Excess Flood]
<Hanmac>
apeiros: GTA V is offline, GTA 1 is offline too … find the joke ;P
Elinos has joined #ruby
petey has quit [Remote host closed the connection]
zastern_ has joined #ruby
<apeiros>
there is no joke. only neverending agony.
Authenticator has joined #ruby
shaunbaker has joined #ruby
<Hanmac>
apeiros: GTA V should get an online mode … but the server died ;D
zarubin has joined #ruby
rockets has joined #ruby
kil0byt__ has quit [Remote host closed the connection]
<Authenticator>
When I start a program, issue a Dir.chdir call, `pwd` shows the new dir but some commands still seem to be run from the old directory. Any ideas why?
julweber has quit [Remote host closed the connection]
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
zastern has quit [Ping timeout: 240 seconds]
pinage404 has joined #ruby
dhruvasagar has joined #ruby
m_3 has quit [Quit: leaving]
__nh__ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Thelixinoe- has joined #ruby
sayan has joined #ruby
heidi has quit [Quit: Leaving.]
heidi has joined #ruby
decoponio has quit [Quit: Leaving...]
m_3 has joined #ruby
petey has joined #ruby
Macaveli has joined #ruby
freezey has quit [Remote host closed the connection]
Thelixinoe- has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
<MrZYX>
Authenticator: best is to provide a minimal example reproducing your issue, since we can only guess what you're doing otherwise
<gcds>
Maybe someone could explain why after I extend Logger i loose .debug function or I don't know what happens https://gist.github.com/gcds/6782282
<gcds>
I get ArgumentError: wrong number of arguments (1 for 0)
jbpros has quit [Quit: jbpros]
<gcds>
then i call logger.debug "msg"
burlyscudd has joined #ruby
<bean__>
lose*
<MrZYX>
gcds: attr_accessor :debug overwrites the original debug method
<gcds>
oh .... thanks mane !! :)
<gcds>
man*
xcv_ has joined #ruby
dmiller_ has joined #ruby
xcv has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
enebo has quit [Quit: enebo]
jibi has quit [Quit: .]
swordsmanz has joined #ruby
Advocation has quit [Quit: Advocation]
alex__c2022 has joined #ruby
burlyscudd has quit [Ping timeout: 245 seconds]
xcv_ has quit [Remote host closed the connection]
nanothief has joined #ruby
xcv has joined #ruby
voidPirate has joined #ruby
Speed has left #ruby ["WeeChat 0.4.1"]
shaunbaker has quit [Remote host closed the connection]
voidPirate has quit [Remote host closed the connection]
iamjarvo_ has quit [Remote host closed the connection]
jbynum has joined #ruby
gcds has quit [Quit: gcds]
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo_ has joined #ruby
neo_ has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Read error: Operation timed out]
xcv_ has joined #ruby
<reactormonk>
how do I start a process and get its pid?
snovak has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chairabanta has quit [Quit: Leaving...]
sectionme has joined #ruby
jamesaanderson has joined #ruby
xcv has quit [Ping timeout: 240 seconds]
<havenwood>
reactormonk: pid = fork do
diegoviola has joined #ruby
pellenation has quit [Quit: Leaving.]
tjad has joined #ruby
<diegoviola>
damn it, one of my job requests as a programmer have been to teach someone what i know about programming with ruby, but the guy is completely clueless and want me to spoonfeed him on EVERYTHING, i want to quit my job at this point *frustrated*
<Authenticator>
diegoviola: Can they code in any language? Do they not have any motivation?
<aldo>
factorial is supposed to take, whatever it is on number times whatever is is on down variable, each time
<diegoviola>
Authenticator: the guy is a designer
Matriks has quit [Remote host closed the connection]
<aldo>
all I get instead is the number that I enter
<diegoviola>
Authenticator: he said he knows php or something, but he doesn't even know how to use git apparently
<diegoviola>
Authenticator: he expects me to give him commands over skype so he can copy/paste
<diegoviola>
i'm very frustrated at this point
<diegoviola>
don't know how he go thired
mlpinit has joined #ruby
<diegoviola>
s/go thired/got hired/
<havenwood>
aldo: a fun factoid, you can use #pred to subtract 1: number = gets.chomp.to_i.pred
huoxito has joined #ruby
<diegoviola>
Authenticator: he doesn't seem to be too motivated, i think he can't even learn things on his own
<MrZYX>
aldo: think about what will down be in your last iteration and what will number be at that time
Ripp__ has quit []
<workmad3>
diegoviola: wouldn't surprise me
<diegoviola>
and i hate wasting my time
<havenwood>
aldo: instead of `while down >= 1...` the Rubyist way is `down.downto(1)`
<diegoviola>
with crap like this
Mars` has quit [Remote host closed the connection]
<diegoviola>
sorry about that
<havenwood>
aldo: gets.chomp.to_i.pred.downto(1).each do |n|
vlad_starkov has joined #ruby
petey has joined #ruby
<workmad3>
aldo: or gets.chomp.to_i.downto(1).inject(&:*)
ultimoo has joined #ruby
chairabanta has joined #ruby
<Authenticator>
aldo: You don't reuse factorial. I think you mean to use it like an accumulator. Get rid of 'down'.
<billiam>
diegoviola: is there some sort of non-free training/site he could be using, rather than burning 2 developers' time?
mwic has quit [Quit: Leaving]
<apeiros_>
workmad3: inject accepts just the symbol. quite a bit faster.
<workmad3>
apeiros_: we've had this discussion before
<apeiros_>
we did?
<workmad3>
apeiros_: it turned out to be a weirdness in the particular way you were benchmarking ;)
<diegoviola>
billiam: i'm not sure, i've just been told by the employer to spend time with the guy as a "priority"
<aldo>
Authenticator: all i am trying to do is to find the factorial of the number the user gives
<apeiros_>
o0
vlad_starkov has quit [Remote host closed the connection]
* Hanmac
increase the "we had this discussion before" counter
Elhu has joined #ruby
Uranio has quit [Ping timeout: 264 seconds]
Xanderby has quit [Quit: Xanderby]
<Authenticator>
diegoviola: Are you trying to work with him, or give him exercises to bring him up to speed? You could assign some code-eval challenges as those are something he should be able to do without asking you a bunch of work-related questions.
|jemc| has joined #ruby
<diegoviola>
he can't even bother to google it seems
<Authenticator>
aldo: Yeah, but get rid of 'down' and use the 'factorial' variable in its place.
Uranio has joined #ruby
<diegoviola>
i'm going to kill myself
as-cii has joined #ruby
<apeiros_>
workmad3: you sure you're not confusing cases?
dankest has quit [Quit: dankest]
havenwood has quit [Remote host closed the connection]
<diegoviola>
Authenticator: he is a designer who is supposed to work in "front-end stuff", but instead of googling and setting up the application on his own, he instead asks me every possible thing on skype
havenwood has joined #ruby
Tricon has quit [Quit: Tricon]
<workmad3>
apeiros_: pretty sure
<diegoviola>
Authenticator: like how to install ruby, how to git clone, how to do this and that
__nh__ has joined #ruby
dankest has joined #ruby
Tricon has joined #ruby
<apeiros_>
because with inject :+ vs &:+, the case is pretty clear
brennanMKE has joined #ruby
* aldo
is confused :/
<diegoviola>
Authenticator: i have no problem to give him a few tips, but i expect people to do their own thing too
<apeiros_>
(didn't test with * since + is more bound on injects own performance)
Spami has quit [Quit: This computer has gone to sleep]
<aldo>
nevermind. :) i'll Google :D
<aldo>
Thanks.
aldo has quit [Quit: Lost terminal]
<Hanmac>
inject does magic when using symbols
as-cii has quit [Client Quit]
<workmad3>
apeiros_: using the symbol might be a *tiny* bit faster
<workmad3>
apeiros_: I'm noticing 0.5s difference across 1 million iterations
dankest has quit [Client Quit]
Macaveli has quit [Ping timeout: 256 seconds]
<apeiros_>
workmad3: 50% with :+
<workmad3>
that's not a 50% ;)
Macaveli has joined #ruby
<apeiros_>
no, my testcase
yfeldblum has joined #ruby
<workmad3>
apeiros_: yeah, I recall your testcase
<workmad3>
apeiros_: and when I redid it (and you redid it) with plain benchmark, the 50% dropped to something like 5%
<Hanmac>
apeiros_: i am not sure but it seems in newer ruby they increase the speed of &:sym so it might be a little bit faster than {|o| o.sym }
<banisterfiend>
Eiam if you use pp it should still work
<Eiam>
instead of swallowing the prior command
alvaro_o has joined #ruby
<workmad3>
apeiros_: still, I'm somewhat 'meh' about it :)
<apeiros_>
*sob*, I'm once again out of touch with writing C code :(
<Eiam>
ah
<banisterfiend>
Eiam since that writes to stdout
<banisterfiend>
it just doesn't display the return value
<banisterfiend>
but u can easily get that; return_value = target.eval(a)
<apeiros_>
hanmac: would make sense
<workmad3>
apeiros_: I tend to prefer to just always do &:sym for enumerable methods, seeing as .inject is the only one where you can pass the symbol directly
graft has quit [Ping timeout: 245 seconds]
Doc_X has quit [Remote host closed the connection]
xcv_ has quit [Remote host closed the connection]
mayorga has joined #ruby
<apeiros_>
workmad3: I'd like it if map would too
RichardBaker has quit [Quit: RichardBaker]
<apeiros_>
that's the other one where I use that pattern very often
jamesaanderson has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros_>
it could be further optimized as ruby could do a specialized call-site cache of the invoked function¨
asteros has quit [Quit: asteros]
<banisterfiend>
waxjar yeah they're playing horrible horrible dutch music all afternoon
amsi has quit [Ping timeout: 245 seconds]
<waxjar>
hehe.
<banisterfiend>
waxjar my god, dutch folk songs (or whatever they are) are some of the most boring things i've ever listened to
<banisterfiend>
and i live right next to the carpark where they have a stage setup and live bands going @ it :(
<waxjar>
they really are :P
<banisterfiend>
waxjar is tomorrow bigger than queens day?
c0rn has quit [Quit: Computer has gone to sleep.]
dash_ has quit [Ping timeout: 245 seconds]
<waxjar>
yeah, though this is a Leiden-only thing
<banisterfiend>
yeah
chairabanta has quit [Quit: Leaving...]
johnkary has joined #ruby
<banisterfiend>
waxjar what's it about?
johnkary has quit [Client Quit]
heftig has joined #ruby
<waxjar>
the liberation from the spaniards in 1600 something
_whitelogger____ has joined #ruby
<heftig>
reactormonk: syscall(37,1800)
Thelixinoe- has joined #ruby
<heftig>
yay for nonportability
C0deMave- has quit [Changing host]
C0deMave- has joined #ruby
Sp4rKy_ has joined #ruby
telling_ has joined #ruby
Thelixinoe- has quit [Remote host closed the connection]
aetaric_ has joined #ruby
staafl has joined #ruby
C0deMaver1ck has quit [Disconnected by services]
C0deMave- is now known as C0deMaver1ck
arusso has quit [*.net *.split]
jacobat has quit [*.net *.split]
jokke has quit [*.net *.split]
aetaric has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
derf- has quit [*.net *.split]
Spitfire has quit [*.net *.split]
nhmood has quit [*.net *.split]
jimeh has quit [*.net *.split]
mist has quit [*.net *.split]
Kelet has quit [*.net *.split]
Taranis has quit [*.net *.split]
Dwarf has quit [*.net *.split]
jso has quit [*.net *.split]
jinie has quit [*.net *.split]
ned has quit [*.net *.split]
Nightmare has quit [*.net *.split]
s00pcan has quit [*.net *.split]
jalcine has quit [*.net *.split]
mumblerit has quit [*.net *.split]
klip has quit [*.net *.split]
canton7 has quit [*.net *.split]
shtirlic_ has quit [*.net *.split]
slash_nick has quit [*.net *.split]
jeekl has quit [*.net *.split]
BeanDip__ has quit [*.net *.split]
go|dfish has quit [*.net *.split]
gregj has quit [*.net *.split]
telling has quit [*.net *.split]
brjannc has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
gsvolt has quit [*.net *.split]
lupine has quit [*.net *.split]
kennym has quit [*.net *.split]
Lorn has quit [*.net *.split]
sirecote has quit [*.net *.split]
ixx has quit [*.net *.split]
crazysim has quit [*.net *.split]
Buuyo has quit [*.net *.split]
TDJACR has quit [*.net *.split]
kke has quit [*.net *.split]
yano has quit [*.net *.split]
lunarjar has quit [*.net *.split]
mjc_ has quit [*.net *.split]
swistak35 has quit [*.net *.split]
Guest42271 has quit [*.net *.split]
Sammael has quit [*.net *.split]
SirFunk has quit [*.net *.split]
mburns has quit [*.net *.split]
Martinez has quit [*.net *.split]
XenoWolf has quit [*.net *.split]
bier has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
rgoodwin has quit [*.net *.split]
justinmcp has quit [*.net *.split]
LBRapid has quit [*.net *.split]
mvangala has quit [*.net *.split]
cschneid has quit [*.net *.split]
G has quit [*.net *.split]
MetaCosm has quit [*.net *.split]
bnagy has quit [*.net *.split]
_whitelogger___ has quit [*.net *.split]
lele has quit [*.net *.split]
taion809 has quit [*.net *.split]
Paradox has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
ahuman has quit [*.net *.split]
_br_ has quit [*.net *.split]
tj`_ has quit [*.net *.split]
yugui_zzz has quit [*.net *.split]
Norrin has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
naquad has quit [*.net *.split]
Mekkis has quit [*.net *.split]
foobArrr has quit [*.net *.split]
Nanuq has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
fcoury has quit [*.net *.split]
fasta has quit [*.net *.split]
LBRapid_ is now known as LBRapid
Wasp has quit [*.net *.split]
lupine_85 is now known as lupine
rgoodwin_ is now known as rgoodwin
nuba has quit [*.net *.split]
newton has quit [*.net *.split]
NorrinRadd is now known as Norrin
peteyg_ has quit [*.net *.split]
fcoury_ is now known as fcoury
mist___ has joined #ruby
Thelixinoe- has joined #ruby
SirFunk_ has joined #ruby
aetaric_ is now known as aetaric
mumblet has joined #ruby
kpshek has quit []
mumblet is now known as mumblerit
crazedpsyc has joined #ruby
Martinez has joined #ruby
apfelbox_ has joined #ruby
yosafbridge has joined #ruby
TheTFEF is now known as Nightmare
jinie has joined #ruby
Macaveli has joined #ruby
arusso has joined #ruby
lunarjar has joined #ruby
DonRichie has joined #ruby
juni0r has joined #ruby
clov3r has quit [Remote host closed the connection]
swistak35 has joined #ruby
brjannc has joined #ruby
naquad has joined #ruby
clov3r has joined #ruby
blackmesa has joined #ruby
cschneid has joined #ruby
mengu has joined #ruby
marius has joined #ruby
Mars` has joined #ruby
mist___ is now known as mist
apfelbox has quit [Ping timeout: 248 seconds]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RichardBaker has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jalcine has joined #ruby
blackmesa has quit [Client Quit]
kstephens has quit [Ping timeout: 256 seconds]
bier has joined #ruby
Thelixinoe- has quit [Ping timeout: 256 seconds]
boxmein has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
apfelbox_ has quit [Ping timeout: 248 seconds]
clov3r has quit [Read error: Connection reset by peer]
graft has joined #ruby
clov3r has joined #ruby
vlad_starkov has joined #ruby
relix has joined #ruby
jcromartie has joined #ruby
Xeago has joined #ruby
kstephens has joined #ruby
kvirani_ has joined #ruby
kvirani has quit [Read error: Connection reset by peer]
mvangala_ has quit [Read error: Connection reset by peer]
Mars`_ has joined #ruby
asteros has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
mvangala has joined #ruby
<shevy>
heftig hehehe
brennanMKE has quit [Remote host closed the connection]
haxrbyte has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
Buuyo has joined #ruby
sankage has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
burlyscudd has quit [Read error: Operation timed out]
petey has quit [Remote host closed the connection]
gwb3 has joined #ruby
<Hanmac>
codezomb: use next
HavokOC has quit []
<Hanmac>
or use a lambda
Spami has joined #ruby
Fraeon has quit [Ping timeout: 246 seconds]
phutchins has quit [Ping timeout: 246 seconds]
snovak has joined #ruby
ahuman_ is now known as ahuman
orionstein_away is now known as orionstein
jonahR has left #ruby [#ruby]
robustus has quit [Read error: Connection reset by peer]
tatsuya_o has quit [Ping timeout: 251 seconds]
Emmanuel_Chanel has joined #ruby
<codezomb>
hanmac: thanks
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
__nh__ has joined #ruby
dmiller_ has joined #ruby
ehaliewi` has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
ehaliewi` has joined #ruby
rrichardsr3 has quit [Quit: -- I'm getting very tired --]
c0rn has joined #ruby
aleron has quit [Quit: leaving]
m8 has joined #ruby
tommylom1ykins has quit [Quit: leaving]
mvangala has quit [Read error: Connection reset by peer]
robustus has joined #ruby
cj3kim has joined #ruby
tommylommykins has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
mvangala has joined #ruby
dmiller_ has quit [Ping timeout: 246 seconds]
deception has joined #ruby
joofsh has quit [Remote host closed the connection]
gwb3 has quit [Remote host closed the connection]
xk_id has quit [Quit:
matrix9180 has quit [Ping timeout: 248 seconds]
burlyscudd has joined #ruby
<apeiros_>
golf_prelude.c in ruby2 looks suspicious…
<apeiros_>
*very* suspicious
twoism has quit [Read error: Connection reset by peer]
tricon_ has quit [Read error: Operation timed out]
twoism has joined #ruby
tatsuya__ has joined #ruby
tatsuya_o has quit [Read error: Connection reset by peer]
sirecote has joined #ruby
<Hanmac>
for the kickstarter project Mighty#9 are only 4h left … but the good news: only a very few goals are left to reach ;D
cj3kim has quit [Ping timeout: 248 seconds]
Tricon has quit [Ping timeout: 240 seconds]
huoxito has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
heidi has quit [Quit: Leaving.]
relix has joined #ruby
heidi has joined #ruby
tatsuya__ has quit [Ping timeout: 246 seconds]
telling_ is now known as telling
whunt has quit [Quit: Computer has gone to sleep.]
telling has quit [Changing host]
telling has joined #ruby
volty has joined #ruby
brennanMKE has joined #ruby
<pontiki>
probably not as suspecious as bach_prelude.rb in C would look...
popl has joined #ruby
__nh__ has quit [Quit: smoke]
nwertman_ has joined #ruby
whunt has joined #ruby
__nh__ has joined #ruby
cody-- has quit [Quit: derp]
Goopyo has quit [Ping timeout: 248 seconds]
huoxito has quit [Ping timeout: 240 seconds]
Goopyo has joined #ruby
tatsuya_o has joined #ruby
rrichardsr3 has joined #ruby
Tricon has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
jrobeson has quit [Ping timeout: 256 seconds]
chxane has quit [Quit: Leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TDJACR has joined #ruby
Trynemjoel has joined #ruby
<Trudko>
Guys I do comparison ['m', 'muz', 'muž'].include? sex_downcased which return false even when sex_downcased is muž. Sex_downcased comes from CSV with encoding windows-1250 which doesn't match encoding of array csv http://oi39.tinypic.com/x6a2yh.jpg /
TDJACR has quit [Max SendQ exceeded]
TDJACR has joined #ruby
ssvo has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
elux has quit [Quit: Bye!]
<Hanmac>
Trudko: i think the default encoding is wrong … you may want to do sex_downcased.encode("binary")
angusiguess has quit [Ping timeout: 245 seconds]
b6 has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.1]
<Hanmac>
i hate playing with windows encodings, you should teach your CSV to convert it
<b6>
is there a nice golf way to generate an array with, e.g., 10 random numbers?
bio has joined #ruby
klip has joined #ruby
tobiasvl has joined #ruby
colonolGron has joined #ruby
ianclarksmith has joined #ruby
ianclarksmith is now known as ics
<popl>
Windows codepages can all burn in fiery torment.
Fraeon has joined #ruby
<Hanmac>
b6 Array.new(10) {rand}
bio is now known as Guest27870
<Trudko>
hanmac: how would i do that?
<b6>
hanmac: ah, interesting. thanks.
go|dfish has joined #ruby
havenwood has quit [Remote host closed the connection]
kilophoton has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
soulcake has quit [Ping timeout: 260 seconds]
<apeiros_>
Trudko: ensure all have the same encoding
Lewix_ has joined #ruby
<apeiros_>
I think I remember that you said you could have utf-8 too - I'd just convert all input to utf-8 and internally deal with utf-8 only.
<apeiros_>
makes things quite a bit easier.
Lewix has quit [Disconnected by services]
Lewix_ is now known as Lewix
Lewix has quit [Changing host]
Lewix has joined #ruby
soulcake has joined #ruby
<Trudko>
apeiros_: so i can enforce encoding of csv which is stored as windows - 1250 to be utf 8?
Notte has joined #ruby
snovak has joined #ruby
rrichardsr3 has quit [Quit: -- I'm getting very tired --]
b6 has left #ruby ["*"]
jamesaanderson has quit [Ping timeout: 240 seconds]
leynos has joined #ruby
amsi has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
<Hanmac>
it should be possible to use the encoding: option on foreach ...
chxane has joined #ruby
krawchyk has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 248 seconds]
tatsuya_o has quit [Read error: Connection reset by peer]
relix has joined #ruby
zz_michael_mbp is now known as michael_mbp
segmond has quit [Ping timeout: 250 seconds]
tatsuya_o has joined #ruby
jamesaanderson has joined #ruby
b00stfr3ak has joined #ruby
<apeiros_>
Trudko: sure
<Trudko>
how ? if I used CSV.foreach(file.path, :quote_char => "\'",:encoding => "utf-8",:col_sep => ";", headers: true) do |row| i get error invalid byte sequence in UTF-8
joofsh has joined #ruby
<apeiros_>
ah, I remember - I had my issues with CSV too wrt encodings. I didn't take my time to properly resolve it.
<apeiros_>
I simply used File.read and parsed the string
blz37 has joined #ruby
Mars` has joined #ruby
Mars`_ has quit [Ping timeout: 240 seconds]
<apeiros_>
e.g. File.read(path, encoding: 'windows-1250').encode('utf-8')
ermajn has quit [Ping timeout: 245 seconds]
<apeiros_>
there probably is a nicer solution, but this should work
cj3kim has joined #ruby
vlad_starkov has joined #ruby
b00stfr3ak has quit [Client Quit]
tatsuya__ has joined #ruby
Xeago has quit [Remote host closed the connection]
tatsuya_o has quit [Read error: Connection reset by peer]
<shevy>
good old encoding
cody-- has joined #ruby
Xeago has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
<Hanmac>
normaly it should work with encoding: "windows-1250:utf-8"
cj3kim has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
saarinen has quit [Quit: saarinen]
tjad has quit [Ping timeout: 240 seconds]
kpshek has joined #ruby
schaerli has quit [Remote host closed the connection]
DaZ has quit [Ping timeout: 260 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
ermajn has joined #ruby
rickmasta has joined #ruby
tonni has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
leynos has quit [Quit: Off to dreams of Laserdiscs and Neo-Geos]
Guest27870 is now known as Biohazard
evenix has quit [Remote host closed the connection]
tatsuya__ has quit [Read error: Connection reset by peer]
tatsuya_o has joined #ruby
mary5030 has joined #ruby
evenix has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
apfelbox has joined #ruby
mary5030 has quit [Remote host closed the connection]
DaZ_ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
mary5030 has joined #ruby
byprdct has joined #ruby
brianpWins has joined #ruby
apfelbox has quit [Read error: Operation timed out]
huoxito has joined #ruby
agent_white has joined #ruby
<Trudko>
yeah that work
evenix has quit [Ping timeout: 260 seconds]
<Trudko>
so I guess I will check encoding at the start and if there is not right encoding i will just user know.
mansi has quit [Remote host closed the connection]
s00pcan_ has quit [Remote host closed the connection]
soheil has quit [Remote host closed the connection]
s00pcan has joined #ruby
mansi has joined #ruby
<Lewix>
what am I doing wrong? foo.reduce(0) { | sum, sub | sum + 1 if item.test == nil }
hanmac1 has joined #ruby
mansi has quit [Read error: Connection reset by peer]
Hanmac has quit [Read error: Operation timed out]
s00pcan has quit [Client Quit]
<mjc__>
Trudko: you could let the user specify the encoding?
mansi has joined #ruby
s00pcan has joined #ruby
<Trudko>
mjc__: well user creates csv from predefined excel sheet. I will work with users who lacks knowledge about encoding
zz_tsykoduk is now known as tsykoduk
dash_ has quit [Ping timeout: 248 seconds]
mansi has quit [Read error: Connection reset by peer]
<Lewix>
NoMethodError: undefined method `+' for nil:NilClass
__nh__ has quit [Remote host closed the connection]
<apeiros_>
Lewix: your reduce block can return nil
soheil has joined #ruby
<apeiros_>
Trudko: as said earlier today, just assume it's utf-8, test for valid_encoding?, recode if it's not valid
mrsolo has quit [Quit: This computer has gone to sleep]
jonathanwallace has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
<apeiros_>
with only these 2 encodings that should work perfectly
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Lewix>
apeiros_: say it again
Voodoofish430 has joined #ruby
soheil has quit [Remote host closed the connection]
pleal has joined #ruby
<Trudko>
apeiros_: so my understanding is that valid_encoding is false if characters in file doesnt match its encoding right?
tatsuya__ has joined #ruby
cody-- has quit [Quit: derp]
tatsuya_o has quit [Ping timeout: 252 seconds]
byprdct has quit [Read error: Connection reset by peer]
TheBrainWork has quit [Quit: Leaving.]
havenwood has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
<apeiros_>
Trudko: yes. but in your two encodings, it only makes sense invoking it on utf-8 strings.
ciziar has joined #ruby
<apeiros_>
since windows-1250 is a single-byte encoding, and I think every codepoint is mapped, so every byte is always valid
Lewix has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 252 seconds]
byprdct has joined #ruby
<Trudko>
apeiros_: when do you think such a problem could occure in my case? it is more likely that they will save file in econding which doesnt match what I expect. Wouldnt it make more sense to compare if file I am loading has windows-1250 encoding and if not I will let user know.
scarolan has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Ping timeout: 240 seconds]
<apeiros_>
I don't quite understand what you just said
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
tsykoduk is now known as zz_tsykoduk
<Lewix>
apeiros_: the block can't return nil?
gcds has joined #ruby
<apeiros_>
Lewix: you understand that in inject, the blocks return value is the value for the accumulator in the next yield?
<apeiros_>
*block's
<apeiros_>
so if your block returns nil, your accumulator will be nil
zarubin has quit [Read error: Connection reset by peer]
<apeiros_>
and `nil + whatever` simply won't work
Macaveli has quit [Quit: Computer has gone to sleep.]
Davey has joined #ruby
gcds has quit [Client Quit]
mrsolo has joined #ruby
jamesaanderson has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
funburn has joined #ruby
byprdct has quit [Read error: Connection reset by peer]
RichardBaker has quit [Quit: RichardBaker]
<Lewix>
apeiros_: hmm i do understand that - but apparently not if thats the problem
joesavage has joined #ruby
<apeiros_>
the error you get says that it is the problem
<apeiros_>
your smiley operators produce different results!
petey has joined #ruby
ermajn has quit [Quit: Leaving]
apeiros_ is now known as apeiros
<Hanmac>
volty hm yeah, but you need to think about what will happen if the range is an empty range?
duggiefresh has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
cj3kim_ has joined #ruby
<volty>
Hanmac: yes, i saw your example // apeiros the last smile is prefixed with an initial value
kaldrenon has quit [Ping timeout: 245 seconds]
<apeiros>
volty: it wasn't a question about the why ;-)
jonathanwallace has joined #ruby
jerius has quit []
ukd1 has joined #ruby
<volty>
apeiros: i had no doubt about that & :-)
<apeiros>
0-1-2-…10 being different from (+)1-2-…10 is IMO pretty obvious
havenwood has joined #ruby
MrZYX is now known as MrZYX|off
asteros has joined #ruby
havenn has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
mlpinit has quit [Remote host closed the connection]
jkamenik has quit [Quit: Leaving.]
_maes_ has joined #ruby
<shevy>
somehow I am project fatigued
Kar- has quit [Ping timeout: 245 seconds]
kilophoton has joined #ruby
<shevy>
like my old projects are not too appealing to improve...
<volty>
i finally passed on 1.9.3 // a good source (or better: simple list) on all differences respect to 1.8.x ?
<volty>
shevy: you need a rest
<shevy>
hey
mary5030 has quit [Remote host closed the connection]
<shevy>
I am on 1.9.3 too
<shevy>
switched a few months ago
<billiam>
shevy: time to start exciting new projects?
<shevy>
volty I think the biggest change was encoding. some minor changes are a little syntax differences... and some different warnings... and BasicObject ... hmm
<shevy>
billiam yeah... hmmmm
thinkclay has quit [Quit: Leaving.]
<shevy>
billiam but what
<shevy>
I feel a bit as if I am walking into a dead end
mark_locklear has quit [Quit: Leaving]
m8 has quit [Quit: Sto andando via]
elplatt has quit [Remote host closed the connection]
elplatt has joined #ruby
havenn has quit [Ping timeout: 240 seconds]
codecop has quit [Remote host closed the connection]
<shevy>
it's like a question of what is relevant... and what is not... and right now, most of that all seems not very relevant or important... :(
joofsh has quit [Remote host closed the connection]
<bean__>
psh, 1.9.3, why not just use 2.0
<volty>
shevy: there are numerators, for example // today I found that 1.9 has cycle method (though i don't like that implementation)
scarolan_ has joined #ruby
kreisys has quit [Ping timeout: 240 seconds]
<shevy>
bean__ I tried! but syck is gone and my yaml files are invalid as psych rightly judges (but I still want syck, syck accepts it just fine...)... I need to solve this first before I can switch, else my yaml files won't work (which is my configuration on linux)
scarolan has quit [Read error: Operation timed out]
<banisterfiend>
volty that's not any argument, infinite data structures their use
<banisterfiend>
have their*
alex__c2022 has joined #ruby
ned has joined #ruby
jokke has joined #ruby
ned is now known as Guest94584
<volty>
banisterfiend: that is an argument - since you cannot do to_a but you are allowed to do that
snovak has quit [Remote host closed the connection]
Nanuq has joined #ruby
<banisterfiend>
volty then don't do to_a on it? you should know from your own code that doesn't make sense. Many languages, especially functional/lazy languages make use of lazy data structures
<banisterfiend>
volty for example:
cj3kim_ has quit [Remote host closed the connection]
<banisterfiend>
>> (1..Float::INFINITY).lazy.select(&:even?).map { |v| v * 100 }.take(10)
<volty>
i repeat: i was talking about the 'to_a' method
<banisterfiend>
volty "cycle with no param is not ok"
<banisterfiend>
volty yes it is ok
<bnagy>
ruby doesn't promise you safety rails, there are a jillion ways you can screw up your runtime
<volty>
banisterfiend: I see
<banisterfiend>
volty haskell works the same way, if you 'force' an infinite data structure, you'll be waiting a long time
<bnagy>
so some dumb guard against someone calling to_a on an infinite or just HUGE enumerator is far too special a case to bother with
<bnagy>
just Don't Do That
<popl>
that's interesting because 'ruby on rails'
<volty>
you omitted the previous comment, you ignore the contest, i was talking about its FULL implementation
cescalante is now known as ce_afk
dhruvasagar has quit [Read error: Connection reset by peer]
apfelbox has quit [Read error: Operation timed out]
zeade has quit [Quit: Leaving.]
burlyscudd has joined #ruby
ehaliewi` has quit [Remote host closed the connection]
<banisterfiend>
volty to_a is part of that type, what do you want them to do? remove the method? the method does exactly what it should do.
<volty>
return just the original sequence or exception
<volty>
the method does nothing since it cannot finish
nutella has joined #ruby
<bnagy>
how does Enumerator#to_a know it's not going to finish?
ce_afk is now known as cescalante
<volty>
bnagy: but the cycle knows that
Notte has quit [Remote host closed the connection]
<bnagy>
and it returns an Enumerator
<bnagy>
should it return something else? InfiniteEnumerator?
<shevy>
hmmm
dhruvasagar has joined #ruby
<shevy>
what is an infinite enumerator ...
cescalante is now known as ce_afk
* shevy
ponders ...
interactionjaxsn has quit [Ping timeout: 252 seconds]
leonidlm has quit [Ping timeout: 252 seconds]
<banisterfiend>
volty to_a 'cycle' is just a method that returns an Enumerator. So you want them to *override* the to_a implementation specifically for an Enumerator returned by 'cycle' ?
<banisterfiend>
volty define a singleton method just for that?
<bnagy>
nono, only for SOME of the Enumerators returned by cycle :)
<bnagy>
maybe we could add a @non_childsafe ivar to some Enumerators
<volty>
i do not say they have to (do something)
<volty>
i say that «I» do not like it
c0rn has quit [Quit: Computer has gone to sleep.]
<volty>
Ok for you?
<banisterfiend>
volty if you can't see how nasty that is you're either a neophyte programmer or you're just bad ;)
pheno is now known as phenocode
<volty>
heh? me?
<volty>
leave it!
vim_shim has quit [Ping timeout: 252 seconds]
<banisterfiend>
let's all extend an anonymous module into just one kind of Enumerator returned by one method..just in case someone does something completely stupid
kpshek has quit []
tgraham is now known as tgraham|away
<volty>
it is just an example, do not attach as a cat to the balls -- trying to be smarty teacher
<banisterfiend>
ok, provide an elegant solution to this problem and we might agree with you :)
<bnagy>
oh god this again
iamjarvo has joined #ruby
<popl>
as a cat to the balls?
mercwithamouth has quit [Ping timeout: 264 seconds]
<volty>
you return a specialized subclass of enumerator that overrides to a and returns the seq
leynos has quit [Quit: Off to dreams of Laserdiscs and Neo-Geos]
<volty>
have nothing to prove to you
noop has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
nanoxd has quit [Remote host closed the connection]
<banisterfiend>
lol, just so you can prevent a loop when someone forces an infinite collection
nanoxd has joined #ruby
<volty>
no, just to_a
<bnagy>
if you do that they'll make you boil the ocean
<bnagy>
'but this to_a saves me when I am an asshat, how come this other area doesn't??'
vlad_starkov has quit [Read error: Connection reset by peer]
iamjarvo_ has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
<bnagy>
"Range should only allow to_a if the resulting Array will fit in memory!"
nanoxd has quit [Remote host closed the connection]
<bnagy>
"to_a should be a UN observer in Syria!"
<nutella>
<bnagy> --> too funny
nwertman_ has quit [Ping timeout: 248 seconds]
iamjarvo has quit [Ping timeout: 252 seconds]
<volty>
bnagy: you are not up // but you can continue as long as you wish, for me you are like a buzzing mosquito without sting
<banisterfiend>
volty reminds me of that BARRIER guy
drizz has quit [Ping timeout: 252 seconds]
<volty>
i was about infinite cycling to_a, not about memory capacity
zeade has joined #ruby
zarubin has quit [Ping timeout: 252 seconds]
<volty>
or you do not understand or you are not honest
Elhu has joined #ruby
elplatt has quit [Quit: elplatt]
<bnagy>
mosquitos don't have stings btw
<bnagy>
fyi
<volty>
enough kidding
<nutella>
uhhh
<bnagy>
I'm completely serious, the females have specialised mouthparts
<nutella>
low bow
nhhagen has joined #ruby
funburn has quit [Quit: funburn]
<volty>
people, do not be gangy, it is not nice, you can argue or just ignore
dmiller__ has joined #ruby
<bnagy>
we did, we argued, then won
<bnagy>
you just didn't get the memo, as usual, so now I am mocking you
<volty>
happy you
Monie has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
nhhagen has quit [Remote host closed the connection]
<BigBeerJR>
hi, I'm very new to ruby, looking at something that worked with ruby 1.8.7, but does not pass syntax check with 1.9, wondering if someone can give me a explanation on what the syntax means so I can go find the answer... I really don't know what term I should be looking for
<BigBeerJR>
I have a case has "when false, "false", :false:"
kilophoton has quit [Ping timeout: 248 seconds]
<BigBeerJR>
the trailing : is what fails, but I don't know what the :'s mean
thesheff17 has quit [Ping timeout: 245 seconds]
<heftig>
BigBeerJR: you can remove them and either replace them with a newline or a "then"
<BigBeerJR>
like it's a bool, then a string then something else
<heftig>
er, the trailing ones, i mean
<heftig>
:false (leading colon) is a symbol with the value "false"
ciziar has joined #ruby
<BigBeerJR>
did the trailing : use to mean something?
<heftig>
BigBeerJR: yes, it terminated the "when" list
<volty>
u there?
<heftig>
but you can also use a newline (or a "then")
ciziar has quit [Quit: Computer has gone to sleep.]
<rien>
banisterfiend: let me show you the code I wish I could write
<banisterfiend>
oki
tatsuya_o has joined #ruby
dmiller__ has joined #ruby
dodosan has quit [Remote host closed the connection]
gwb3 has joined #ruby
gwb3 has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
musl has quit [Quit: WeeChat 0.4.1]
<volty>
now, nasty, get all the methods - ancestors.methods, rename and redefine all of them to call the hook method with their name and params, and the hook that is going to dispatch to the right one
zcourts has quit [Quit: Leaving.]
<workmad3>
volty: heh :) I was thinking of that way too
musl has joined #ruby
petey has joined #ruby
cpruitt has quit [Quit: cpruitt]
<volty>
the only way workmad3 :) as long as I know
justsee has joined #ruby
musl has quit [Client Quit]
<volty>
as far
drumsrgr8forn8_ has joined #ruby
<banisterfiend>
volty or use set_trace_func :)
<workmad3>
volty: well, set_trace_func too
<banisterfiend>
let's you define any hook you want
<volty>
yes, I forgot it, i did a debugger for my ide but don't know if it works - not having used it
dmiller__ has quit [Ping timeout: 240 seconds]
<volty>
nice to know, thx
<rien>
any links with an example?
axl_ has quit [Quit: axl_]
ukd1_ has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
Inside has quit [Changing host]
musl has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
cescalante is now known as ce_afk
RORgasm has quit [Remote host closed the connection]
musl has quit [Client Quit]
ukd1 has quit [Read error: Operation timed out]
<Hanmac>
the only links left are in the Zelda games
<banisterfiend>
rien you didn't type your question
<bnagy>
you are wasted in programming, hanmac, you should be in standup
<banisterfiend>
rien mean 'code you wish you could write':)
<banisterfiend>
rien i can show you how to write a decorate that does that to specified methods, but you probably already know that :)
kay__ has joined #ruby
<banisterfiend>
decorator*
dcunit3d has joined #ruby
<Hanmac>
but i am too lazy … i would not survive as "stand"-up
Valesk_ has quit [Ping timeout: 248 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
johnnyfuchs has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
<bnagy>
*rimshot*
kvirani_ has quit [Remote host closed the connection]
<bnagy>
:D
gsvolt_ has quit [Remote host closed the connection]
<banisterfiend>
bnagy hanmac is an original character ;)
kvirani has joined #ruby
musl has joined #ruby
Thelixinoe- has joined #ruby
ravster has joined #ruby
musl has quit [Client Quit]
musl has joined #ruby
mary5030 has joined #ruby
<banisterfiend>
rien show me what you wish you could write, cos you really shouldn't be using debugging APIs in real code
<volty>
rien: i'm looking in my old code, and if I remember & understand well, you set a trace_func of your own and then, inside it, ignore till called with your object id (or class)
<bnagy>
we should have hanmac day
<banisterfiend>
bnagy he's the teutonic _why
<bnagy>
where we all make deadpan german jokes and solve all questions with each.with_object
<banisterfiend>
hahaha
brennanMKE has quit [Remote host closed the connection]
<workmad3>
bnagy: it would be a better hanmac day if we made deadpan german jokes and then explained them with each.with_object
mansi has quit [Remote host closed the connection]
<bnagy>
followed by a detailed big-O analysis
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
big-O joke analysis
<workmad3>
I think I just found a new, highly lucrative consultancy gig
mansi has joined #ruby
<Hanmac>
beware or i will begin telling saxony jokes ;P
kvirani has quit [Ping timeout: 248 seconds]
<workmad3>
hanmac: it's ok
<workmad3>
hanmac: I have /ignore ;)
freerobby has joined #ruby
Thelixinoe- has quit [Ping timeout: 260 seconds]
amacgregor has quit [Read error: Connection reset by peer]
kilophoton has joined #ruby
Guest71721 has quit [Ping timeout: 240 seconds]
<volty>
rien: u there?
petey has quit [Remote host closed the connection]
amacgregor has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
neo_ has joined #ruby
jamesaanderson has joined #ruby
Mars`_ has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
colonolGron has quit [Quit: Lost terminal]
ultimoo has quit [Ping timeout: 248 seconds]
blaxter has quit [Quit: KTHXBYE]
mrsolo has quit [Quit: This computer has gone to sleep]
tatsuya_o has quit [Remote host closed the connection]
KobraKao has joined #ruby
ColKurtz has joined #ruby
<workmad3>
hanmac: it makes me think I'm on a c2 wiki page that's missing the stylesheets
justsee has quit [Quit: leaving]
<rien>
volty: sorry, yes I'm back now
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<workmad3>
hanmac: otherwise I think it's fine... I'd probably say it's more a link along the lines of 'You've done 1 week of ruby... here's a list of things that may help you now'
<Hanmac>
workmad3: look at the last line when this page was updated ;P
<workmad3>
hanmac: hehe
<workmad3>
can I claim tiredness and it being past midnight?
<volty>
cannot be done, right away, as a hook for methods, though you can intercept the calls
DonRichie has quit [Read error: Connection reset by peer]
DonRichie has joined #ruby
lnormous has joined #ruby
<banisterfiend>
rien i don't really see the diff in those two code snippets
clov3r has quit [Remote host closed the connection]
clov3r has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
ehc has quit [Quit: ehc]
ehc has joined #ruby
<workmad3>
banisterfiend: in the first one, he's creating a hash of 'vendor_id => :integer' (so if vendor_id is 4, that's '4 => :integer')
ehc has quit [Client Quit]
<workmad3>
banisterfiend: which is passed to the check_params method
<workmad3>
*check_types
<banisterfiend>
brb
<workmad3>
banisterfiend: in the second, he's saying he wishes he could get the same using the 1.9 symbol-hash syntax
siwica has joined #ruby
<workmad3>
rien: long story short... you can't get that
<workmad3>
rien: 'some_method(foo: "value")' is only usable for symbols, nothing else
clov3r has quit [Ping timeout: 264 seconds]
<workmad3>
rien: and a method hook decorator to alter that... ewww
julweber has quit [Remote host closed the connection]
<banisterfiend>
yeah
<banisterfiend>
don't bother fren
Freeaqingme has joined #ruby
Freeaqingme is now known as Guest46651
b00stfr3ak has quit [Ping timeout: 240 seconds]
Guest46651 is now known as Freeaqingme
tgraham is now known as tgraham|away
pleal has quit [Ping timeout: 240 seconds]
predator217 has joined #ruby
BRMatt has quit [Read error: Operation timed out]
apfelbox has joined #ruby
zz_zolpidem is now known as scottstamp
brennanMKE has joined #ruby
gyre007 has joined #ruby
butblack has quit [Quit: butblack]
apfelbox has quit [Read error: Operation timed out]
twoism has quit [Remote host closed the connection]
amacgregor_ has joined #ruby
predator117 has quit [Ping timeout: 256 seconds]
PragCypher has quit [Quit: Leaving]
amacgregor__ has joined #ruby
amacgregor has quit [Ping timeout: 256 seconds]
geggam has quit [Remote host closed the connection]
kay__ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
petey has joined #ruby
brupeb has quit [Remote host closed the connection]
petey_ has joined #ruby
petey_ has quit [Remote host closed the connection]
petey_ has joined #ruby
petey has quit [Read error: Connection reset by peer]
amacgregor_ has quit [Ping timeout: 256 seconds]
sarkis has quit [Ping timeout: 240 seconds]
julweber has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
VTLob has quit [Quit: VTLob]
justsee has quit [Ping timeout: 240 seconds]
anderSon has joined #ruby
ephemerian has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
graft has quit [Ping timeout: 246 seconds]
simplyaubs has joined #ruby
ravster has quit [Quit: Leaving.]
jaimef has quit [Excess Flood]
apeiros has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
jaimef has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
<volty>
I think I will go, in the next days, in the python channel. I'm curious to see how ppl behave there. If they have little pompous gangy, sly, autoreferential boys that recite knowledge. And, if not found, I'm going to eval if it's worth to write a few words about the minor, deceptive, recitative souls that harm the sense of ruby's community
Xanderby has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
zz_michael_mbp is now known as michael_mbp
havenwood has quit [Remote host closed the connection]
<banisterfiend>
volty u r an angry and dark man
<volty>
not at all
tylersmith has quit [Ping timeout: 260 seconds]
<banisterfiend>
r 2
<sam113101>
I wouldn't step there if I were you
<volty>
it's you who are dark, and, above, all, deceptive
<banisterfiend>
volty hehehe
<volty>
hehehe as long as it is friendly
vim_shim has joined #ruby
<banisterfiend>
volty occupied a hate-filled world of madness and rage
<banisterfiend>
occupies*
<banisterfiend>
:D :D
gcds has quit [Quit: gcds]
<volty>
enough to read the log
jb41 has quit [Ping timeout: 260 seconds]
butblack has joined #ruby
michael_mbp is now known as zz_michael_mbp
<volty>
you are just a provoker, i'm too old to get angry or raged