reaVer has quit [Remote host closed the connection]
bjpenn has joined #ruby
reaVer has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
DonOtreply has quit [Quit: DonOtreply]
Moosashi has joined #ruby
Contigi has joined #ruby
charliesome has joined #ruby
achamian has quit [Ping timeout: 248 seconds]
zeroDivisible has quit [Quit: WeeChat 1.3]
kirun has quit [Remote host closed the connection]
Prominent has joined #ruby
boontdus` has quit [Ping timeout: 276 seconds]
darix has joined #ruby
uglybandersnatch has joined #ruby
bronson has joined #ruby
i8igmac has quit [Ping timeout: 276 seconds]
Spami has joined #ruby
Spami has quit [Client Quit]
rubie has quit [Remote host closed the connection]
Dimik has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
Moosashi has quit [Quit: Moosashi]
P4Titan has joined #ruby
fckyoufreenode has joined #ruby
Dimik has quit [Ping timeout: 244 seconds]
davedev2_ has joined #ruby
rkazak has joined #ruby
biberu has quit []
rubie has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
rmulligan has joined #ruby
<P4Titan>
Hello all. If I have many instances of a derived class, will instance variables in the base class be the same throughout all derived classes or can they differ?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Prominent has quit [Read error: Connection reset by peer]
shazaum_ has quit [Quit: Leaving]
fckyoufreenode has quit [Ping timeout: 248 seconds]
fckyoufreenode has joined #ruby
<Ox0dea>
P4Titan: An instance variable is only ever "owned" by a single instance; that's how it got its name.
eregi has quit [Ping timeout: 244 seconds]
htmldrum has joined #ruby
fullofcaffeine has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
Dimik has quit [Ping timeout: 264 seconds]
eregi has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
uglybandersnatch has quit [Ping timeout: 248 seconds]
<P4Titan>
so does each derived class create its own instances of base classes?
<Ox0dea>
A derived class defaults to using the #initialize of the base class.
jameser has joined #ruby
HowardwLo has joined #ruby
<Ox0dea>
That's essentially true of all methods, of course, and largely the point of object orientation. :P
HowardwLo has left #ruby [#ruby]
jameser has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
<P4Titan>
hm, ok
jameser has joined #ruby
<P4Titan>
so in the blank initialize function of D, if you called super's initialize, would D have access to @v
<Ox0dea>
Placing a `super` in D#initialize is essentially like pasting the contents of C#initialize there, so yes.
<Ox0dea>
It would be *instances* of D that had access to @v, mind, not D itself.
<P4Titan>
so are all instance variables inherited usually?
<P4Titan>
minus the Class class ones?
<Ox0dea>
It's situational, really. Most of the time, you subclass, invoke `super` to get the original behavior, and then add code to do whatever additional thing made you decide to subclass.
<P4Titan>
so if C had another function that set an instance variable @temp, and then D called that function, could D access @temp?
yuung has quit [Quit: leaving]
SCHAAP137 has quit [Quit: Leaving]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jam__ has joined #ruby
speaking1ode has joined #ruby
<Ox0dea>
P4Titan: Sounds like a great experiment. :)
mnrmnaugh has joined #ruby
hinbody has joined #ruby
pawnbox has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
<P4Titan>
tru
s00pcan_ has joined #ruby
<Ox0dea>
Be advised that there's a pretty crucial distinction to be made between C and an instance thereof.
<P4Titan>
yes
jam__ has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
mrd_ has quit [Quit: Leaving]
rmulligan has joined #ruby
johnmilton has quit [Ping timeout: 260 seconds]
houhoulis has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
johnmilton has joined #ruby
moeabdol3 has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
fullofca_ has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
achamian has joined #ruby
pzula has quit [Read error: Connection reset by peer]
_blizzy_ has quit [Quit: Leaving]
elifoster has joined #ruby
joonty has quit [Ping timeout: 244 seconds]
swedishfish has quit [Ping timeout: 246 seconds]
s00pcan_ has quit [Remote host closed the connection]
<lewis1711>
with unicode characters, some characters take up double width when displayed. is there anyway to get this info from a string, or is that related to the font itself?
<lewis1711>
Ox0dea, yeah they are all wide. except for the accent marks
<lewis1711>
or tone marks I should say, ˇ ˋ ˊ ˙
Vingador has quit [Ping timeout: 260 seconds]
<lewis1711>
makes sense that the rendering is up to the font though
marcdel has joined #ruby
jyaworski has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
LoneHerm_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 244 seconds]
marcdel has quit [Ping timeout: 260 seconds]
symm- has quit [Quit: Leaving...]
marcdel has joined #ruby
Guest34101 has joined #ruby
ponga has joined #ruby
B1n4r10 has joined #ruby
noodle has quit [Quit: /quit]
noodle has joined #ruby
mistermocha has joined #ruby
stardiviner has joined #ruby
dextertzu has joined #ruby
chipotle has joined #ruby
noodle has quit [Quit: /quit]
mistermocha has quit [Ping timeout: 268 seconds]
rmulligan has joined #ruby
noodle has joined #ruby
h3lper has joined #ruby
noodle has quit [Client Quit]
bronson has joined #ruby
CloCkWeRX has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
devbug_ has joined #ruby
Musashi007 has joined #ruby
noodle has joined #ruby
<Musashi007>
happy friday all
swedishfish has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
devbug has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
ensyde_ has joined #ruby
Asher has quit [Quit: Leaving.]
nando293921 has joined #ruby
SCHAAP137 has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 264 seconds]
hk238 has joined #ruby
ur5us has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
charliesome has joined #ruby
mistermocha has joined #ruby
rubie has quit [Remote host closed the connection]
rubie has joined #ruby
arescorpio has quit [Read error: Connection reset by peer]
jayc0b0 has joined #ruby
jayc0b0 has quit [Remote host closed the connection]
Asher has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
Musashi007 has quit [Quit: Musashi007]
swedishfish has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
tercenya_ has joined #ruby
braincrash has joined #ruby
duckpuppy has joined #ruby
tercenya has quit [Ping timeout: 244 seconds]
zast has joined #ruby
bry4n_ has joined #ruby
dopie has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
ramfjord has joined #ruby
LoneHerm_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
swedishfish has joined #ruby
achamian has quit [Remote host closed the connection]
mistermocha has joined #ruby
chipotle has quit [Quit: cheerio]
uglybandersnatch has joined #ruby
Chagel has joined #ruby
yatish27 has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 244 seconds]
treaki__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
Chagel has quit [Ping timeout: 248 seconds]
Chagel has joined #ruby
treaki_ has quit [Ping timeout: 244 seconds]
rmulligan has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
snguyen has joined #ruby
achamian has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
BtcBen has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
IrishGringo has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
bricker has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
uglybandersnatch has quit [Ping timeout: 268 seconds]
darkxploit has quit [Ping timeout: 260 seconds]
merida has joined #ruby
Guest38 has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
The_Phoenix has joined #ruby
Musashi007 has quit [Quit: Musashi007]
mistermocha has joined #ruby
mostlybadfly has joined #ruby
joonty has joined #ruby
dionysus69 has joined #ruby
gix has quit [Ping timeout: 248 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
joonty has quit [Ping timeout: 240 seconds]
graffix has quit [Ping timeout: 276 seconds]
rubie has quit [Remote host closed the connection]
yatish27 has joined #ruby
OnePunchMan has joined #ruby
darkxploit has joined #ruby
gix has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
moos3 has joined #ruby
eregi has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
Musashi007 has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
moos3 has quit [Ping timeout: 248 seconds]
cpup has joined #ruby
pawnbox has quit [Remote host closed the connection]
arthropododo has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
htmldrum has joined #ruby
bry4n_ has quit [Quit: WeeChat 1.4]
bry4n_ has joined #ruby
unreal has quit [Quit: Very funny Scotty. Now beam down my clothes!]
yatish27 has quit []
baweaver has joined #ruby
P4Titan has quit [Ping timeout: 276 seconds]
graffix has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 252 seconds]
unreal has joined #ruby
cunpetst has joined #ruby
<cunpetst>
there is nothing more that I hate than NÌGGÉRs
vdamewood has joined #ruby
Sucks has quit [Remote host closed the connection]
pawnbox has joined #ruby
trifling-jest has joined #ruby
trifling-jest has quit [Read error: Connection reset by peer]
rlpowell has joined #ruby
<rlpowell>
private method `tap' called for "":String -- I got that from a library call in a script, where I had "def tap" at the top level. Why would a top-level def cause a private method to appear on String??
merida has quit [Remote host closed the connection]
merida has joined #ruby
rmulligan has joined #ruby
<Ox0dea>
rlpowell: Top-level methods become private methods on Object.
aupadhye has joined #ruby
<cunpetst>
your nigger parents are private methods
merida has quit [Remote host closed the connection]
tercenya_ has quit [Ping timeout: 240 seconds]
merida has joined #ruby
<rlpowell>
Ox0dea: ... Wow, OK. So what's the idiom for write a simple one-off script when I don't want that?
ponga has quit []
<Ox0dea>
rlpowell: I'm not sure how you mean. You shouldn't run into this problem if you don't recycle core method names.
ramfjord has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
<Ox0dea>
Object#tap already exists as a public method, to clarify.
<rlpowell>
*nod*
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<rlpowell>
I assumed there was some simple idiom to scope things more sanely, like I dunno wrap it in Module or something. -_-
<rlpowell>
But yeah, that works too I guess.
rmulligan has quit [Ping timeout: 252 seconds]
<Ox0dea>
I mean, you can certainly do that, and indeed probably should.
<Ox0dea>
But if you don't want to explicitly qualify your methods (YourModule.foo), you'd have to do something like `include YourModule`, and you'd be in the same quandary.
mistermocha has joined #ruby
bihi has quit [Quit: Bye!]
<rlpowell>
... Huh.
bihi has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
Moosashi has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
vikas027 has joined #ruby
graffix has quit [Read error: Connection reset by peer]
whippythellama_ has joined #ruby
whippythellama_ has quit [Client Quit]
graffix has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
Musashi007 has quit [Quit: Musashi007]
fullofca_ has joined #ruby
cunpetst has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fullofcaffeine has quit [Ping timeout: 248 seconds]
norc_ has joined #ruby
eregi has joined #ruby
chipotle has joined #ruby
darkxploit has quit [Ping timeout: 252 seconds]
dikaio has joined #ruby
eregi has quit [Ping timeout: 260 seconds]
Musashi007 has joined #ruby
Musashi007 has quit [Client Quit]
sauvin has joined #ruby
marcdel has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
lewis1711 has quit [Quit: Ex-Chat]
stardiviner has quit [Ping timeout: 276 seconds]
darkxploit has joined #ruby
Moosashi has quit [Quit: Moosashi]
duckpuppy has joined #ruby
nerium has quit [Quit: nerium]
fullofca_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
jam__ has joined #ruby
rmulligan has joined #ruby
vdamewood has quit [Ping timeout: 252 seconds]
fexilal has joined #ruby
Trynemjoel has joined #ruby
djbkd has quit [Quit: My people need me...]
Moosashi has joined #ruby
merida has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 260 seconds]
merida has joined #ruby
LoneHerm_ has quit [Ping timeout: 246 seconds]
stardiviner has joined #ruby
gbgdev has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 252 seconds]
davedev2_ has quit []
vdamewood has joined #ruby
fullofca_ has joined #ruby
jehoesefat has joined #ruby
Moosashi has quit [Quit: Moosashi]
Guest34101 has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
bronson has joined #ruby
WizJin has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
devbug_ has quit [Ping timeout: 240 seconds]
bricker has joined #ruby
darkxploit has quit [Ping timeout: 264 seconds]
The_Phoenix has quit [Quit: Leaving.]
The_Phoenix has joined #ruby
adgtl has joined #ruby
chipotle has quit [Quit: cheerio]
Chagel has quit [Ping timeout: 260 seconds]
hakunin has quit [Read error: Connection reset by peer]
jehoesefat has quit []
hakunin has joined #ruby
sneakerhax has joined #ruby
hxegon has joined #ruby
moos3 has joined #ruby
adgtl_ has joined #ruby
Moosashi has joined #ruby
adgtl has quit [Ping timeout: 248 seconds]
darkxploit has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
moos3 has quit [Ping timeout: 244 seconds]
terlar has joined #ruby
A124 has quit [Quit: '']
graffix has joined #ruby
A124 has joined #ruby
eregi has joined #ruby
trifling-jest has joined #ruby
h3lper has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
joonty has quit [Client Quit]
eregi has quit [Ping timeout: 252 seconds]
trifling-jest has quit [Ping timeout: 244 seconds]
terlar has quit [Quit: WeeChat 1.4]
minimalism has quit [Quit: minimalism]
BtcBen has joined #ruby
howdoi has joined #ruby
djbkd has joined #ruby
rmulligan has joined #ruby
htmldrum has joined #ruby
rippa has joined #ruby
Moosashi has quit [Quit: Moosashi]
aryaching has joined #ruby
Chagel has joined #ruby
darkxploit has quit [Ping timeout: 264 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
htmldrum has quit [Ping timeout: 264 seconds]
bry4n_ has quit [Ping timeout: 250 seconds]
LoneHermit has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
trifling-jest has joined #ruby
trifling-jest has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
achamian has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 240 seconds]
Guest34101 has joined #ruby
jyaworski has quit [Quit: jyaworski]
Moosashi has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
hxegon has quit [Quit: BRB]
Moosashi has quit [Client Quit]
vdamewood has quit [Quit: Life beckons.]
Guest34101 has quit [Ping timeout: 248 seconds]
darkxploit has joined #ruby
hakunin has quit [Ping timeout: 244 seconds]
AlexRussia has quit [Ping timeout: 276 seconds]
davee_ has joined #ruby
B1n4r10 has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trifling-jest has joined #ruby
solocshaw has joined #ruby
trifling-jest has quit [Read error: Connection reset by peer]
Moosashi has joined #ruby
amclain has quit [Quit: Leaving]
Moosashi has quit [Client Quit]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
devbug has joined #ruby
hakunin has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
jam__ has quit [Remote host closed the connection]
ensyde_ has quit [Ping timeout: 244 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
graffix has quit [Ping timeout: 276 seconds]
trifling-jest has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
trifling-jest has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
pawnbox has joined #ruby
Dragooon has quit [Quit: Byes Byes]
vikas027 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eregi has joined #ruby
statelesscode has quit [Quit: statelesscode]
fullofca_ has quit [Remote host closed the connection]
moeabdol3 has joined #ruby
rmulligan has joined #ruby
bjpenn has joined #ruby
amincd has joined #ruby
eregi has quit [Ping timeout: 244 seconds]
eregi has joined #ruby
<amincd>
this Ruby reference says that you can access a value from a Hash using the following syntax: hash.[key]: http://www.tutorialspoint.com/ruby/ruby_hashes.htm But I can't get it to work. Is this obsolete?
Dreeg has quit [Ping timeout: 240 seconds]
<apeiros>
that one is certainly wrong
nwhirschfeld_ has quit [Ping timeout: 276 seconds]
<apeiros>
they either mean hash[], or hash.()
moeabdol3 has quit [Ping timeout: 252 seconds]
<apeiros>
and the latter doesn't even work, as it'd call Hash#call, which does not exist
bronson has quit [Remote host closed the connection]
bjpenn has quit [Ping timeout: 244 seconds]
<Ox0dea>
I suspect they meant `hash.[](key)`.
<amincd>
apeiros: hash.(key) doesn't work just tried it
rmulligan has quit [Ping timeout: 252 seconds]
<apeiros>
I assume it's just badly written. they mean to say hash[] and hash[]= a bit further down
<apeiros>
amincd: yes, as I told you too :)
<amincd>
you did!
<apeiros>
you could also just read the official documentation.
<apeiros>
?docs
<ruby[bot]>
you can use http://ruby-doc.org or the command line tool "ri" which should be installed along with your ruby to access documentation. Ri example: "ri Array#length"
<Ox0dea>
Hey, why didn't Hash#call become an alias for #[] when Hash got #to_proc?
steffkes has joined #ruby
bricker has joined #ruby
<apeiros>
I have no idea
<apeiros>
I somewhat expected it to exist
<Ox0dea>
It certainly seems appropriate.
the_drow has joined #ruby
<apeiros>
that's why I even mentioned it (then tried it and amended what I said with that it wouldn't work)
nwhirschfeld has joined #ruby
<apeiros>
agreed
amincd has quit [Ping timeout: 252 seconds]
safe has quit [Quit: Leaving]
duckpuppy has joined #ruby
bry4n_ has joined #ruby
Noxilex has joined #ruby
codecop has joined #ruby
amincd has joined #ruby
<amincd>
For the default value of a Hash, I thought the way you access it is hash["some_key_that_doesn't_exist"]..?
bricker has quit [Ping timeout: 240 seconds]
<Ox0dea>
Yeah, that'd do it.
j3r0 has joined #ruby
Dragooon has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
tercenya has joined #ruby
darkxploit has quit [Ping timeout: 244 seconds]
bry4n_ has quit [Ping timeout: 240 seconds]
nwhirschfeld has quit [Ping timeout: 264 seconds]
Dragooon has quit [Client Quit]
anton1x has joined #ruby
nwhirschfeld has joined #ruby
amincd has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
darkxploit has joined #ruby
mistermocha has joined #ruby
Dragooon has joined #ruby
graffix has joined #ruby
amincd has joined #ruby
hgl has joined #ruby
Dragooon has quit [Max SendQ exceeded]
Chagel has quit [Ping timeout: 268 seconds]
chipotle has joined #ruby
<amincd>
with regard to the default value of a Hash, I can get it to output by calling a non-existent key, but not if I have already populated the Hash with some key - value pairs. Is there any particular reason for that?
Dragooon has joined #ruby
tvw has joined #ruby
nerium has joined #ruby
dionysus69 has joined #ruby
moos3 has joined #ruby
<shevy>
huh
<shevy>
some key?
Dragooon has quit [Client Quit]
mistermocha has quit [Ping timeout: 252 seconds]
<amincd>
for example: months = Hash.new("unknown"); puts months[1]; works, but not months = Hash.new("unknown"); months = {2 => "February", 3 => "March"}; puts months[1];
<amincd>
^ to output the default 'unknown'
<Ox0dea>
amincd: You're re-assigning the variable.
<amincd>
it's interesting that .merge doesn't assign the hash calling it when it immediately follows the hash (e.g. hash.merge), but does assign the hash generated by the expression that generates that hash
bronson has quit [Ping timeout: 252 seconds]
graffix has quit [Ping timeout: 276 seconds]
tvw has joined #ruby
<amincd>
*does assign the hash generated by the expression that calls merge
<Ox0dea>
Hash#merge doesn't really have anything to do with assignment.
htmldrum has quit [Ping timeout: 248 seconds]
<Ox0dea>
There's a crucial distinction to observe between re-assignment of an identifier and in-place modification of an object.
<amincd>
Ox0dea: yes, the . syntactic feature
hgl has joined #ruby
blackmesa has joined #ruby
marr has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<Ox0dea>
`p foo` == `puts foo.inspect`, so it's even better!
Guest34101 has joined #ruby
<amincd>
oh wow
<Ox0dea>
For debug-printing, anyway.
<Ox0dea>
Ruby loves you and wants you to be happy. :)
adgtl_ has quit [Read error: Connection reset by peer]
<amincd>
with respect to the code: I was aware of how in place modification works. I was just surprised that hash.new(default_val).merge(initial_vals) worked on hash, without the ! in-place modifier
<amincd>
it's a subtle distinction
djbkd has quit [Quit: Leaving...]
<amincd>
Ox0dea: seems beautiful in its efficiency so far
toretore has quit [Ping timeout: 244 seconds]
nofxx has quit [Ping timeout: 244 seconds]
<Ox0dea>
amincd: It's beautiful in so many subtle ways, most of which I hope you chance upon on your journey.
<amincd>
Ox0dea: thank you
howdoi has quit [Quit: Connection closed for inactivity]
achamian has quit [Ping timeout: 248 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
graffix has joined #ruby
mistermocha has joined #ruby
phatypus has joined #ruby
Guest34101 has quit [Ping timeout: 276 seconds]
amincd_ has joined #ruby
baweaver has joined #ruby
Ishido has joined #ruby
amincd has quit [Ping timeout: 252 seconds]
The_Phoenix1 has joined #ruby
The_Phoenix has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 252 seconds]
baweaver has quit [Ping timeout: 248 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
Guest13710 has quit [Ping timeout: 250 seconds]
Chagel has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
toretore has joined #ruby
<shevy>
#ruby-preaching and #ruby-poetry are in the house!
Guest34101 has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
bjpenn has joined #ruby
Abrin_AWAY has quit [Ping timeout: 252 seconds]
jam___ has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
dopamean_ has quit [Ping timeout: 252 seconds]
Guest13710 has joined #ruby
dgncn has quit [Excess Flood]
Mon_Ouie has joined #ruby
b|ackwolf has joined #ruby
bjpenn has quit [Ping timeout: 252 seconds]
dmr8 has joined #ruby
zeroDivisible has joined #ruby
dgncn has joined #ruby
jameser` has joined #ruby
jam___ has quit [Ping timeout: 248 seconds]
mistermocha has joined #ruby
jameser has quit [Ping timeout: 246 seconds]
rmulligan has joined #ruby
jameser`` has joined #ruby
bjpenn has joined #ruby
eregi has joined #ruby
jameser` has quit [Ping timeout: 246 seconds]
<solars>
I came across the foreman gem looking for a gem that simplifies daemons. But it seems outdated - does anyone know if there are maintained alternatives?
mistermocha has quit [Ping timeout: 268 seconds]
Chagel has quit [Ping timeout: 252 seconds]
sandstrom has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
zeroXten has joined #ruby
eregi has quit [Ping timeout: 248 seconds]
<zeroXten>
Hi. This is hopefully a simple question. I've got a sinatra app that makes outbound calls using https.request. If one of those calls fails, it seems to blow up the whole sinatra app. I was hoping to check the response.code etc, but any failure seems to break the app. Is there an obvious fix? Cheers
Don_John has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
adgtl_ has joined #ruby
duncannz has quit [Remote host closed the connection]
adgtl__ has joined #ruby
<shevy>
solars I think there are... but I don't remember which one it was. If nobody here knows, you could lateron ask on the rails channel, I remember that a lot of those reloading-thingies happened in the rails land
adgtl has quit [Ping timeout: 260 seconds]
DmitryBochkarev has joined #ruby
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
graffix has joined #ruby
adgtl_ has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 244 seconds]
phredus has quit [Remote host closed the connection]
<norc_>
solars, this might be a bit obvious.. but.. what about the `daemons` gem?
mistermocha has joined #ruby
adgtl__ has quit [Ping timeout: 264 seconds]
<norc_>
zeroXten, you might want to try #sinatra for that question.
opencard has joined #ruby
<solars>
shevy, norc_ hm according to rubytoolbox foreman seems to be still quite popular
<solars>
benefits are that it automatically hooks into systemd etc
opencard has quit [Read error: Connection reset by peer]
<zeroXten>
norc_: ok, cheers
phatypus has quit [Quit: .>]
merqlove has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
jameser`` has quit [Ping timeout: 244 seconds]
<norc_>
solars, last commit was 10 months ago though as you have probably noticed.
<norc_>
Though if you consider it to be a really useful tool, why not contribute and help maintain yourself?
bricker has joined #ruby
Vingador has joined #ruby
davee_ has quit [Ping timeout: 268 seconds]
anton1x has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Noxilex has quit [Ping timeout: 244 seconds]
roshanavand has quit [Quit: This computer has gone to sleep]
<zeroXten>
maybe just some sort of try/catch could work
<zeroXten>
well, begin/rescue
JohnBat26 has quit [Read error: Connection reset by peer]
<norc_>
solars, honestly things like this is why I moved away from apache/nginx for my rails applications.
<norc_>
Its just disgusting to deal with.
<Radar>
you what
<Radar>
what do you use instead of apache or nginx?
adgtl has quit [Remote host closed the connection]
<norc_>
Plain unicorn, but then again I have the advantage of not caring about scalability.
<Radar>
Right.
adgtl has joined #ruby
JohnBat26 has joined #ruby
darkxploit has quit [Ping timeout: 268 seconds]
<solars>
norc_, I consider many tools as useful, but my time is limited :)
duckpuppy has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Guest13710 has quit [Ping timeout: 276 seconds]
bry4n_ has joined #ruby
<zeroXten>
heh. that did the job
chipotle has joined #ruby
<norc_>
solars, it does not look completely dead though, pull requests still have been regularly accepted for a while, there just havent been any releases for a year now.
<solars>
norc_, yeah I thought so as well, I will use it for now I think
Prominent has joined #ruby
<solars>
thought it might be outdated because there is a build error on github and commits seemed rather old
sandstrom has quit [Quit: My computer has gone to sleep.]
duckpuppy has quit [Ping timeout: 248 seconds]
sandstrom has joined #ruby
bry4n_ has quit [Ping timeout: 268 seconds]
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
sandstrom has quit [Client Quit]
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
achamian has joined #ruby
<norc_>
solars, wait I looked wrong, pull requests have not been accepted for a year!
graffix has quit [Ping timeout: 276 seconds]
<solars>
yeah
<norc_>
Last commit was 11 months ago, if pull requests had been accepted you would see merge commits. ;-)
<solars>
yeah 30 open requests
moos3 has joined #ruby
<norc_>
A perfect repository to fork and take over maintenance. :-)
<solars>
haha
achamian has quit [Ping timeout: 250 seconds]
<shevy>
yeah sometimes you gotta take over unmaintained dead things that still hold promise
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
BtcBen has quit [Ping timeout: 252 seconds]
User458764 has joined #ruby
moos3 has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
<solars>
shevy, so we have a volunteer? :)
<shevy>
I say let foreman die
<solars>
haha
<shevy>
:D
snguyen has joined #ruby
moeabdol3 has joined #ruby
OnePunchMan has quit [Quit: Connection closed for inactivity]
<norc_>
Ox0dea, funny. So for the first time I read some bison documentation - now I actually understand some of the weird symbols in parse.y :-)
gbgdev has joined #ruby
tvw has quit [Remote host closed the connection]
<Ox0dea>
norc_: What's with the /*%%%*/ comments?
<Ox0dea>
I know the stuff between /*% and %*/ is for Ripper.
hkumar has joined #ruby
Guest34101 has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 268 seconds]
hgl has quit [Ping timeout: 268 seconds]
spider-mario has joined #ruby
FooMunki has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
gbgdev has quit [Ping timeout: 268 seconds]
JohnBat26 has joined #ruby
pawnbox has joined #ruby
<norc_>
Ox0dea, all three are just delimiters for ext/ripper/tools/preproc.rb to identify which part should be used.
RegulationD has joined #ruby
<norc_>
The other bit is.. one second.
<norc_>
Ox0dea, cant find it from the top off my head, but basically ruby and ripper comment the other part out before compiling.
<Ox0dea>
norc_: Yep, I knew that much; I just always thought those /*%%%*/ bits were superfluous.
<norc_>
Ox0dea, you kind of have to tell the preprocessor where the non-ripper part begins?
<Ox0dea>
No sense making it harder than necessary to parse the parser, I guess.
<Ox0dea>
norc_: Well, sure, but the brackets are balanced?
zeroDivisible has quit [Quit: WeeChat 1.3]
<norc_>
Ox0dea, that would require parsing the grammar first. Running a simple preprocessor with regular expressions is far simpler.
RegulationD has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
<Ox0dea>
norc_: Granted, but the meta-ness of parsing a parser is far more amusing.
JohnBat26 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc_>
So at some point they realized they could do it all far more obvious and cleanlz...
<Ox0dea>
It makes good sense, of course.
dionysus69 has quit [Ping timeout: 276 seconds]
<norc_>
To have two completely different conventions (one based on C macros, and the other based on preprocessing) to cherry pick the semantic action for a production rule?
<norc_>
Only in Ruby.
gnufied has joined #ruby
Prominent has quit [Ping timeout: 268 seconds]
<norc_>
Well. Technically both is based on preprocessing...
mistermocha has quit [Ping timeout: 250 seconds]
postmodern has quit [Quit: Leaving]
<norc_>
Though I think ifndef_ripper is just a shorthand hack for the `op' production rule.
<norc_>
Well and keyword_variable
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
Prominent has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy>
norc_ cleanlz ... do you use an english keyboard as a german native speaker or the other way around :-)
graffix has joined #ruby
stardiviner has quit [Ping timeout: 252 seconds]
melter has quit [Ping timeout: 248 seconds]
elifoster has quit [Ping timeout: 246 seconds]
<norc_>
shevy, I switch between German and English keyboard fairly often that sometimes its difficult to keep track. :)
tomphp has joined #ruby
dionysus69 has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
<norc_>
Im willing to bet that MySQL in its standard configuration does some collation where y and z are considered the same character.
melter has joined #ruby
dmr8 has quit [Read error: Connection reset by peer]
dikaio has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby
Guest13710 has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
pecpec has joined #ruby
pecpec has quit [Write error: Broken pipe]
<xpt>
norc_: I'm using colemak to avoid switching my kbd. It has a learning curve but it's nice to be able to write in more than one language without switching keyboards
The_Phoenix has joined #ruby
htmldrum has joined #ruby
shanemcd_ has joined #ruby
dmr8 has joined #ruby
dikaio has joined #ruby
The_Phoenix1 has quit [Ping timeout: 248 seconds]
ebbflowgo has joined #ruby
BtcBen has joined #ruby
<norc_>
xpt, usually I just type in English layout though. Its just that at times I need special German characters. :/
<norc_>
And then I also have a MacBook so I have a slightly different layout there too.
The_Phoenix1 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
stardiviner has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
The_Phoenix has quit [Ping timeout: 276 seconds]
shanemcd_ has quit []
BtcBen has quit [Ping timeout: 252 seconds]
<xpt>
I do use Polish and English equally so I need Polish characters quite often. And I'm learning swedish so I have additional 3 chars that I need to know how to type, so for my use-case multilingual keyboard seems the best choice.
shanemcd has joined #ruby
swedishfish has quit [Ping timeout: 246 seconds]
merida has joined #ruby
hk238 has joined #ruby
kam270 has quit [Ping timeout: 246 seconds]
achamian has joined #ruby
graffix has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has quit [Ping timeout: 276 seconds]
snguyen has joined #ruby
rooose has joined #ruby
achamian_ has joined #ruby
achamian has quit [Ping timeout: 268 seconds]
adgtl has quit [Remote host closed the connection]
swedishfish has joined #ruby
htmldrum has joined #ruby
blackmesa has joined #ruby
gbgdev has joined #ruby
gbgdev_ has joined #ruby
gbgdev has quit [Read error: Connection reset by peer]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
htmldrum has quit [Ping timeout: 244 seconds]
trifling-jest has joined #ruby
jolts has joined #ruby
trifling-jest has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bry4n_ has joined #ruby
<shevy>
Neo__ ruby is superior to php but a newbie has to first learn how to not do things, so php is perfect
<Neo__>
oh.. and where do I start with php
<Neo__>
I am complete new..
<shevy>
did you not want to major in web development
<Neo__>
and someone recommended to work on ruby on rails if i aim for web design
<shevy>
and now you say that you have no idea why
<Neo__>
by major I mean.. my field..
<Neo__>
I don't knw where those paths may lead.. atleast now.. I put it as a goal!
<Neo__>
later I may not like it..
blaxter has joined #ruby
<shevy>
already sounds like an awful plan
<Neo__>
lol
<Neo__>
thne recommmend me an awesome plan?
<Neo__>
then*
<shevy>
perhaps become a carpenter
<Neo__>
But I don't like manual labour..
<adaedra>
herm.
<Neo__>
not advicable to me doctor says
<Neo__>
:\
<shevy>
then how about poetry
<adaedra>
-r
<Neo__>
My literary skills are good for nothing..
achamian has joined #ruby
<Neo__>
at this rate i' won't be able to earn money for my famil
bjpenn has quit [Ping timeout: 248 seconds]
<adaedra>
Can we focus back to ruby?
skade has joined #ruby
<Neo__>
yah
<Neo__>
..
<Neo__>
RUBY =D
<Neo__>
What do you suggest adaedra?
bry4n_ has quit [Ping timeout: 260 seconds]
<adaedra>
About what, beginning with ruby?
<Neo__>
yah
<adaedra>
Look at the resources linked, there's surely something for you to start with in them.
<Neo__>
ah.k
skade has quit [Read error: Connection reset by peer]
<Neo__>
then.. i'll strt digging from the link you gave
skade has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
krz has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
skade has quit [Read error: Connection reset by peer]
achamian has quit [Ping timeout: 248 seconds]
gigetoo has joined #ruby
<Neo__>
Thanks... I'll come back here! if any situation arises
<Neo__>
hope to find undead people..
<adaedra>
This is IRC, we're not all always looking. Just ask your question and wait if you have one.
rmulligan has joined #ruby
dionysus69 has joined #ruby
<Neo__>
o.O
eregi has joined #ruby
<Neo__>
1 more question
<Neo__>
How much time will it take a beginner to start working within Rails?
baweaver has joined #ruby
<adaedra>
Depends.
<fexilal>
you can start working in a few hours
BtcBen has joined #ruby
<Neo__>
on the beginner's understanding!
<Neo__>
?
Azure has quit [Remote host closed the connection]
<fexilal>
yes
<Neo__>
average tym?
rmulligan has quit [Ping timeout: 252 seconds]
<fexilal>
yes
<fexilal>
then you travel the long road to proficiency
<Zarthus>
programming is so big it takes between 0 and a lifetime years
<Neo__>
wew
<Neo__>
good to hear that!
eregi has quit [Ping timeout: 246 seconds]
Vingador has quit [Ping timeout: 244 seconds]
rippa has joined #ruby
blaxter has quit [Quit: foo]
B4daBing73 has joined #ruby
<B4daBing73>
Hi
<B4daBing73>
Does anyone know a good Ruby-Linter/Checker for NPM that can be installed globally to be used in Vim Syntastic?
charliesome has joined #ruby
<Zarthus>
I've only used rubocop, but that's not for npm afaik
baweaver has quit [Ping timeout: 268 seconds]
<apeiros>
B4daBing73: npm is in another channel. this is #ruby.
<Neo__>
What are Ruby Gems?
<apeiros>
oh dear, and a crossposter too…
<apeiros>
?crosspost B4daBing73
<ruby[bot]>
B4daBing73: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<apeiros>
Neo__: packages of ruby code and/or executables
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
Sidoniuns has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
johnmilton has joined #ruby
<chridal>
I'll give it a go here. I'm really interested in figuring out how much memory, cpu cycles things are taking in Ruby and in general. What sort of books should I be looking into?
duckpuppy has quit [Ping timeout: 248 seconds]
<chridal>
I'd love to understand how much time different operations end up taking and why they're taking so long
<chridal>
Is there any way of learning this other than learning C performance characteristics and reading the source of Ruby?
<chridal>
You'd think it'd be easy searching for books on these kinds of topics but I can't seem to find the right keywords.
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
x77686d has joined #ruby
bjpenn has joined #ruby
zotherstupidguy has joined #ruby
<chridal>
havenwood: Yea, I have that book actually but it seems to be more about the instructions that are ran rather than the performance characteristics
bronson has joined #ruby
<shevy>
Neo__ go back to oldschool, good old desktop computers!
steffkes has joined #ruby
<shevy>
chridal you can find a few snippets here and there on different blogs, a few video talks too
bjpenn has quit [Ping timeout: 276 seconds]
crowell has quit [Ping timeout: 276 seconds]
<shevy>
and you can always ask norc_ and Ox0dea here about the demons in the parser and the C files of ruby
<chridal>
Neo__: Do you mean stay connected as in persistent connection even when you close the app?
htmldrum has quit [Ping timeout: 244 seconds]
DJTrey has quit [Remote host closed the connection]
User458764 has joined #ruby
brendan- has joined #ruby
brendan- has quit [Client Quit]
eregi has joined #ruby
Chau has joined #ruby
brendan- has joined #ruby
<chridal>
In that case you have a couple of different options. www.irccloud.com might be interesting
<chridal>
But you could also set up a bouncer (such as ZNC). A bouncer will remain connected to IRC on your behalf, and you will then connect to the bouncer to get updates. http://znc.in
bronson has quit [Ping timeout: 252 seconds]
davee_ has joined #ruby
<chridal>
If you've got yourself a linux server somewhere you could set up weechat on it (which is the worlds best IRC client imo) and use http://www.glowing-bear.org/ as a frontend to it, which you can connect to from your phone.
Chagel has quit [Ping timeout: 260 seconds]
graffix has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
jehoesefat has joined #ruby
<chridal>
shevy: yea, but what about in general btw? What kinds of books should I get into to get down and dirty with the CPU cycles and memory usage of different operations
crowell has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
eregi has quit [Ping timeout: 276 seconds]
Tempesta_ has joined #ruby
norc__ has joined #ruby
cpruitt_ has joined #ruby
qhp_ has joined #ruby
havenn has joined #ruby
sandstro_ has joined #ruby
rlpowell_ has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
intrigue_ has joined #ruby
last_staff has quit [Ping timeout: 252 seconds]
last_staff has joined #ruby
htmldrum has joined #ruby
FooMunki has quit [Ping timeout: 252 seconds]
guardian has quit [Ping timeout: 252 seconds]
m4rCsi_ has joined #ruby
rubie has quit [Ping timeout: 252 seconds]
FooMunki has joined #ruby
cpruitt has quit [Ping timeout: 252 seconds]
Tempesta has quit [Ping timeout: 252 seconds]
coyo has quit [Ping timeout: 252 seconds]
speakingcode has quit [Ping timeout: 252 seconds]
Shidash has quit [Ping timeout: 252 seconds]
cpruitt_ is now known as cpruitt
bhaak has quit [Ping timeout: 252 seconds]
shaman42 has quit [Ping timeout: 252 seconds]
segy has quit [Ping timeout: 252 seconds]
FooMunki has quit [Client Quit]
davee_ has quit [Ping timeout: 252 seconds]
intrigueD has quit [Ping timeout: 252 seconds]
sandstrom has quit [Ping timeout: 252 seconds]
jolts has quit [Ping timeout: 252 seconds]
dmr8 has quit [Ping timeout: 252 seconds]
norc_ has quit [Ping timeout: 252 seconds]
Billias has quit [Remote host closed the connection]
i8igmac has quit [Ping timeout: 252 seconds]
mic_e has quit [Ping timeout: 252 seconds]
qhp has quit [Ping timeout: 252 seconds]
DoubleMalt has quit [Ping timeout: 252 seconds]
rlpowell has quit [Ping timeout: 252 seconds]
Authenticator has quit [Ping timeout: 252 seconds]
kp666 has quit [Ping timeout: 252 seconds]
creat has quit [Ping timeout: 252 seconds]
lujan has quit [Ping timeout: 252 seconds]
sarbs has quit [Ping timeout: 252 seconds]
Outlastsheep has quit [Ping timeout: 252 seconds]
Synthead has quit [Ping timeout: 252 seconds]
julieeharshaw has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 252 seconds]
mclee has quit [Ping timeout: 252 seconds]
m4rCsi has quit [Ping timeout: 252 seconds]
brainslug has quit [Ping timeout: 252 seconds]
havenn is now known as havenwood
rlpowell_ is now known as rlpowell
mic_e has joined #ruby
dmr8 has joined #ruby
Billias has joined #ruby
sarbs has joined #ruby
shaman42 has joined #ruby
Chau is now known as nhhc
speakingcode has joined #ruby
bhaak has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
LoneHerm_ has joined #ruby
s00pcan_ has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
nhhc_ has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
julieeharshaw has joined #ruby
mdw has joined #ruby
segy has joined #ruby
creat has joined #ruby
brainslug has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Shidash has joined #ruby
baweaver has joined #ruby
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
moos3 has joined #ruby
LoneHerm_ has quit [Ping timeout: 260 seconds]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
nettoweb has joined #ruby
mrmortondk has joined #ruby
bjpenn has joined #ruby
tk__ has quit [Quit: ばいばい]
sneep has joined #ruby
rkoller has joined #ruby
graffix has joined #ruby
Sidoniuns has quit [Ping timeout: 260 seconds]
<sneep>
Is the standard coding style in Ruby more EAFP or LBYL?
jolts has joined #ruby
jolts has quit [Max SendQ exceeded]
moos3 has quit [Ping timeout: 276 seconds]
baweaver has quit [Ping timeout: 268 seconds]
DonOtreply has joined #ruby
DonOtreply has quit [Client Quit]
davee_ has joined #ruby
mclee has joined #ruby
kp666 has joined #ruby
coyo has joined #ruby
coyo has joined #ruby
i8igmac has joined #ruby
lujan has joined #ruby
bjpenn has quit [Ping timeout: 268 seconds]
DoubleMalt has joined #ruby
dgncn has quit [Excess Flood]
mdw has quit [Ping timeout: 276 seconds]
<havenwood>
hmm, the European Association of Fish Pathologists
jam has joined #ruby
<havenwood>
sneep: we generally avoid rescuing errors for flow control when there are nicer ways
jam is now known as Guest77391
Sidoniuns has joined #ruby
gbgdev has joined #ruby
mdw has joined #ruby
al2o3-cr has joined #ruby
gbgdev has quit [Read error: Connection reset by peer]
<shevy>
chridal not sure, I guess one has to know C very well to make sense of all of that
<sneep>
I see. Thanks!
<shevy>
havenwood lol
gbgdev has joined #ruby
dgncn has joined #ruby
<chridal>
So that's what I have to do then. Working in this field not knowing the ms of a memory read is killing me.
<shevy>
that reminds me ... whatever happened to pontiki?
<chridal>
I feel like I can't make proper decisions about when to store a key in Redis and when to store it in Postgres. Etc. etc.
<chridal>
When something should use a threading model, or a pre-forking model
<chridal>
and the list goes on
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has quit [Client Quit]
merida has joined #ruby
<shevy>
yeah
<shevy>
what I learned is that posgresql is simply faster than sqlite!
dn5 has joined #ruby
<morfin>
:O
Guest13710 has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.3]
d0nn1e has quit [Ping timeout: 244 seconds]
d0nn1e has joined #ruby
pawnbox has joined #ruby
rkoller has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
ta__ has joined #ruby
Guest13710 has quit [Ping timeout: 248 seconds]
watersoul_ has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
bjpenn has joined #ruby
Mr0 has joined #ruby
dmarr_ has joined #ruby
houhoulis has joined #ruby
Mr0rris0 has quit [Disconnected by services]
Prominent has quit [Read error: Connection reset by peer]
Mr0 is now known as Mr0rris0
Prominent has joined #ruby
skydiver_ has joined #ruby
nlsun has joined #ruby
zenlot6 has joined #ruby
Guest33068 has quit [Ping timeout: 268 seconds]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
swgillespie_ has joined #ruby
ramblinpeck_ has joined #ruby
_musl_ has joined #ruby
Plas has joined #ruby
mando_ has joined #ruby
Expanse_ has joined #ruby
pabs_ has joined #ruby
kappy_ has joined #ruby
Freijo has joined #ruby
admin2 has joined #ruby
admin2 is now known as Guest10271
MalcolmReynolds has joined #ruby
dukedave__ has joined #ruby
icey_ has joined #ruby
adgtl has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection reset by peer]
watersoul has quit [Read error: Connection reset by peer]
dmarr has quit [Ping timeout: 246 seconds]
PlasmaStar has quit [Ping timeout: 246 seconds]
trajing has quit [Ping timeout: 246 seconds]
skydiver has quit [Ping timeout: 246 seconds]
swgillespie has quit [Ping timeout: 246 seconds]
DenSchub has quit [Ping timeout: 246 seconds]
IanMalcolm has quit [Ping timeout: 246 seconds]
admin1 has quit [Ping timeout: 246 seconds]
pragmatism has quit [Ping timeout: 246 seconds]
fourq has quit [Ping timeout: 246 seconds]
nlsun_ has quit [Ping timeout: 246 seconds]
daxroc has quit [Ping timeout: 246 seconds]
ElderFain has quit [Ping timeout: 246 seconds]
Expanse has quit [Ping timeout: 246 seconds]
beawesomeinstead has quit [Ping timeout: 246 seconds]
ramblinpeck has quit [Ping timeout: 246 seconds]
crayfishx has quit [Ping timeout: 246 seconds]
HashNuke has quit [Ping timeout: 246 seconds]
halfdan has quit [Ping timeout: 246 seconds]
dukedave_ has quit [Ping timeout: 246 seconds]
matt_d has quit [Ping timeout: 246 seconds]
zenlot has quit [Ping timeout: 246 seconds]
icey has quit [Ping timeout: 246 seconds]
daemonwrangler has quit [Ping timeout: 246 seconds]
r4z3r has quit [Ping timeout: 246 seconds]
kappy has quit [Ping timeout: 246 seconds]
musl_ has quit [Ping timeout: 246 seconds]
pabs has quit [Ping timeout: 246 seconds]
Guest99144 has quit [Ping timeout: 246 seconds]
shevy has quit [Ping timeout: 246 seconds]
lsmola has quit [Ping timeout: 246 seconds]
Lloyd has quit [Ping timeout: 246 seconds]
Mekkis_ has quit [Ping timeout: 246 seconds]
artmann_ has quit [Ping timeout: 246 seconds]
brixen has quit [Ping timeout: 246 seconds]
irick has quit [Ping timeout: 246 seconds]
twodayslate has quit [Ping timeout: 246 seconds]
greister has quit [Ping timeout: 246 seconds]
ikonia has quit [Ping timeout: 246 seconds]
artmann has joined #ruby
spastorino has quit [Ping timeout: 246 seconds]
amitchellbullard has quit [Ping timeout: 246 seconds]
Fraeon has quit [Ping timeout: 246 seconds]
trajing has joined #ruby
pragmatism_ has joined #ruby
Guest4184______ has quit [Ping timeout: 246 seconds]
deeprave has quit [Ping timeout: 246 seconds]
bestie has quit [Ping timeout: 246 seconds]
maletor has quit [Read error: Connection reset by peer]
speaking1ode has quit [Ping timeout: 260 seconds]
bitemyapp has quit [Ping timeout: 246 seconds]
daxroc_ has joined #ruby
DenSchub has joined #ruby
beawesomeinstead has joined #ruby
matt_d_ has joined #ruby
PaulCape_ has joined #ruby
ElderFain- has joined #ruby
ElderFain- is now known as ElderFain
ElderFain has joined #ruby
ElderFain has quit [Changing host]
irick has joined #ruby
bjpenn has quit [Ping timeout: 260 seconds]
Olipro_ has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]
swgillespie_ is now known as swgillespie
fourq has joined #ruby
bitemyapp has joined #ruby
shevy has joined #ruby
brixen_ has joined #ruby
Deck` has quit [Quit: bye]
r4z3r has joined #ruby
Olipro_ is now known as Guest71166
ramblinpeck_ is now known as ramblinpeck
fourq is now known as Guest836
ikonia has joined #ruby
lsmola has joined #ruby
Plas is now known as PlasmaStar
Mekkis has joined #ruby
crayfishx has joined #ruby
daxroc_ is now known as daxroc
bestie has joined #ruby
Expanse_ is now known as Expanse
deeprave has joined #ruby
Lloyd has joined #ruby
<adaedra>
* freenode is now known as downnode
daemonwrangler has joined #ruby
Guest4184______ has joined #ruby
mclee has quit [Ping timeout: 276 seconds]
spastorino has joined #ruby
B1n4r10 has joined #ruby
HashNuke has joined #ruby
halfdan has joined #ruby
jehoesefat has quit []
mclee has joined #ruby
twodayslate has joined #ruby
amitchellbullard has joined #ruby
nhhc_ has quit [Quit: Leaving]
nhhc has quit [Quit: Leaving]
Sidoniuns has quit [Quit: Saindo]
nhhc has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
Chagel has joined #ruby
snguyen_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snguyen has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
<shevy>
undeadnode for undeadra
cpup has joined #ruby
adgtl has joined #ruby
gbgdev has quit [Remote host closed the connection]
Authenticator has joined #ruby
<shevy>
hmm
rubie has joined #ruby
<shevy>
I am looking at code written by someone else and I see:
<shevy>
alias :say :print
Synthead has joined #ruby
<shevy>
is this technically the same as: alias say print ?
Chagel has quit [Ping timeout: 244 seconds]
nhhc has quit [Ping timeout: 260 seconds]
mdw has joined #ruby
nhhc has joined #ruby
Guest34101 has quit [Ping timeout: 240 seconds]
mdw has quit [Client Quit]
gregf has quit [Quit: WeeChat 1.4]
mdw has joined #ruby
<havenwood>
shevy: technically, there are two colons added :P
<havenwood>
shevy: but yeah, it's an keyword so use the bareword :)
<havenwood>
a keyword*
<shevy>
how peculiar
bjpenn has joined #ruby
<hanmac>
hm wasnt there a rubybot command where you can have it explain the code?
<b|ackwolf>
tobiasvl, some methods are written so they’ll at least do something, whether you pass them a code block or not.
fullofcaffeine has joined #ruby
<tobiasvl>
well... most methods do something, I agree with you there. some even take a block
<shevy>
b|ackwolf yeah but every method can accept a block, it is like an extra argument. by default it will be ignored unless you use yield or .call via & syntax
<havenwood>
dtordable: The red-covered Well-Grounded Rubyist, second edition.
morfin60 is now known as morfin
felltir has quit []
<havenwood>
dtordable: Or start with the links above right away.
<dtordable>
havenwood: from zero to code well is that?
<havenwood>
dtordable: No, it more assumes you have some programming experience. A Ruby-based book that's recommended for beginners is Learn to Program by Chris Pine.
<havenwood>
dtordable: Starting from scratch one could go from Learn to Program to the Well-Grounded Rubyist, in that order.
<fexilal>
dtordable : I'm sure you know this already, but you can't learn to drive a car by reading a book .. same goes for writing code in Roobay
bluOxigen has joined #ruby
<havenwood>
The Ruby Programming Language starts with a Sudoku solver. :)
<havenwood>
The Sparrow.
moos3 has quit [Ping timeout: 244 seconds]
<dtordable>
aha
<dtordable>
there was another bookç
<dtordable>
with minery cover or so
<havenwood>
The Pickaxe
<dtordable>
yeah
akkad has joined #ruby
<dtordable>
have it on pdf already
<dtordable>
let's say that I have amnesia, so programming skills are zero
baweaver has joined #ruby
<dtordable>
so the Pickaxe is a good book then?
<fexilal>
you're better of trying your best with your existing resources, instead of just keep on looking for that 'perfect book'
<dtordable>
there is no perfect book
* dtordable
likes getting erratas from every book lol
<fexilal>
'good book' then
<dtordable>
also fexilal :)
vdamewood has joined #ruby
bjpenn has joined #ruby
The_Phoenix1 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SenpaiSilver has joined #ruby
The_Phoenix has quit [Ping timeout: 268 seconds]
bjpenn has quit [Ping timeout: 244 seconds]
j416 has left #ruby ["o/"]
dionysus69 has quit [Ping timeout: 276 seconds]
<ljames>
what could cause $m[i] to not get updated with the map's value, while l is assigned the correct, non-nul, non-empty array value? in this example: m={}; l = $m[i] =|| x.map{|a| something.new(*a)}
<ljames>
*non-nil
<havenwood>
ljames: $m or m? gist a paste of the code?
firstdayonthejob has quit [Ping timeout: 246 seconds]
<ljames>
erm, I meant $m = {}
<ljames>
for some reason when I run it, l has the right value, but $m[i] becomes []
<ljames>
program works fine if I just remove the caching part with = $m[i] =||
dikaio has quit [Ping timeout: 264 seconds]
aryaching has quit [Ping timeout: 250 seconds]
Guest34101 has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
<ljames>
in other cases where I just have a = $cache[i] = func(...), it works fine, but for some reason the .map breaks it, I'm thinking I typo'd something somewhere, or some syntax weirdness
thegunbuster has joined #ruby
<dtordable>
havenwood: bought the pickaxe :)
<dtordable>
this is the best buy did in my life
dikaio has joined #ruby
ramfjord has joined #ruby
<hanmac>
ljames: map does return a new Hash/Array, i think you want map!
<ljames>
but I don't want to modify the value of x, basically I have x = [1,2,3], and I want an array like [SomeObj.new(1),SomeObj.new(2),SomeObj.new(3)]?
<ljames>
and I want that array stored in $m[i]
bjpenn has joined #ruby
<thegunbuster>
hey, I'm trying to write a C extension. The build succeeds and I have by .so object which loads alright when I step into IRB / Pry.
<thegunbuster>
But it fails with "ruby: symbol lookup error: /home/ubuntu/workspace/pcg_random/lib/pcg_random/pcg_random.so: undefined symbol: entropy_getbytes"
<thegunbuster>
when I try to access a module function I just defined
<thegunbuster>
Is it because I'm linking it wrong ?
<pwnd_nsfw>
who knows without code
<thegunbuster>
I'm sorry. I have very limited experience with building C beyond single file programs
fullofcaffeine has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<thegunbuster>
It's a "ruby: symbol lookup error" at Runtime
bjpenn has quit [Ping timeout: 260 seconds]
Limix has quit [Quit: Limix]
WizJin has joined #ruby
tomphp has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
Jet4Fire has quit []
merida_ has quit [Remote host closed the connection]
s1kx has joined #ruby
poerror has joined #ruby
fullofcaffeine has joined #ruby
rubie has joined #ruby
rkoller has joined #ruby
bjpenn has joined #ruby
edwinvdgraaf has joined #ruby
dikaio has quit [Remote host closed the connection]
dikaio has joined #ruby
bjpenn has quit [Ping timeout: 260 seconds]
`tim` has joined #ruby
slackbotgz has joined #ruby
quaristice has joined #ruby
rikai_ is now known as rikai
rmulligan has joined #ruby
eregi has joined #ruby
quaristice has quit [Client Quit]
The_Phoenix1 has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
Guest13710 has joined #ruby
finisherr has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
finisherr has left #ruby [#ruby]
eregi has quit [Ping timeout: 246 seconds]
The_Phoenix1 has joined #ruby
blackmesa has joined #ruby
bjpenn has joined #ruby
ohaibbq has joined #ruby
vikaton has joined #ruby
morfin60 has joined #ruby
The_Phoenix has quit [Ping timeout: 276 seconds]
futilegames has joined #ruby
fourq has joined #ruby
mostlybadfly has joined #ruby
morfin has quit [Ping timeout: 264 seconds]
_blizzy_ has joined #ruby
bjpenn has quit [Ping timeout: 240 seconds]
intrigueD has joined #ruby
Cohedrin has joined #ruby
firstdayonthejob has joined #ruby
dionysus69 has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
floatingpoint has joined #ruby
The_Phoenix has joined #ruby
fschuindt has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
davee_ has joined #ruby
The_Phoenix1 has quit [Ping timeout: 276 seconds]
The_Phoenix has joined #ruby
<fschuindt>
There's any other free Ruby Interpreter service like the hackerearth.com or repl.it? Or a gem that eval ruby safely, like a virtual machine; Once $SAFE = 4 is deprecated.
The_Phoenix1 has joined #ruby
The_Phoenix1 has quit [Max SendQ exceeded]
User458764 has joined #ruby
<thegunbuster>
c9.io ?
The_Phoenix1 has joined #ruby
<thegunbuster>
Make a workspace (VM) and do what you wish
roshanavand has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
<ljames>
hanmac, I ended up figuring out what the bug was. I was .pop'ing from that array afterwards without realizing the cache was being modified too, and that's why I ended up with empty arrays at the end. doing a = a.dup, solved the problem
Guest34101 has quit [Ping timeout: 240 seconds]
tomatoes has joined #ruby
slackbotgz has quit [Remote host closed the connection]
dikaio has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
dikaio has joined #ruby
camilasan has quit [Remote host closed the connection]
tomatoes has quit [Quit: Bye]
davee_ has quit [Ping timeout: 248 seconds]
BTRE has quit [Quit: Leaving]
camilasan has joined #ruby
Guest13710 has joined #ruby
darkf has joined #ruby
ariel_17 has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
WizJin has quit [Excess Flood]
futilegames has quit [Quit: futilegames]
BTRE has joined #ruby
Guest13710 has quit [Ping timeout: 240 seconds]
rmulligan has joined #ruby
gbgdev has joined #ruby
yqt has joined #ruby
safe has joined #ruby
LoneHermit has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
dikaio has quit [Remote host closed the connection]
dikaio has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
dopamean_ has joined #ruby
kspencer has quit [Changing host]
kspencer has joined #ruby
n008f4g_ has joined #ruby
Spami has quit [Read error: Connection reset by peer]
Spami has joined #ruby
huyderman has quit [Remote host closed the connection]
dopamean_ has quit [Client Quit]
bjpenn has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
crackerjacktown has quit [Ping timeout: 264 seconds]
huyderman has joined #ruby
Spami has quit [Client Quit]
jam__ has joined #ruby
JohnBat26 has joined #ruby
bry4n_ has joined #ruby
poerror has quit [Ping timeout: 276 seconds]
Guest13710 has joined #ruby
bjpenn has quit [Ping timeout: 248 seconds]
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
bry4n_ has quit [Ping timeout: 268 seconds]
poerror has joined #ruby
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
AlexRussia has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jyaworski has joined #ruby
intrigueD has quit [Remote host closed the connection]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
Stany has joined #ruby
lictor36 has joined #ruby
arlek has joined #ruby
DmitryBochkarev has joined #ruby
Tamae has quit [Ping timeout: 276 seconds]
bry4n has joined #ruby
Abrin_AWAY has quit [Quit: Nettalk6 - www.ntalk.de]
Chagel has joined #ruby
elifoster has joined #ruby
gregf has joined #ruby
nando293921 has joined #ruby
LoneHerm_ has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
Chagel has quit [Ping timeout: 240 seconds]
Abrin_AWAY has joined #ruby
djbkd has joined #ruby
Guest13710 has quit [Ping timeout: 276 seconds]
rmulligan has joined #ruby
nando293921 has quit [Ping timeout: 240 seconds]
fourq is now known as fourq|away
fourq|away is now known as fourq
jyaworski has quit [Quit: jyaworski]
bronson has joined #ruby
hololeap has joined #ruby
dtordable has quit [Remote host closed the connection]
<hololeap>
does the frozen_string_literal header need to be set on every ruby file where i want that to be enabled, or just the first ruby file that is loaded?
<adaedra>
Everyone, I think. So you can progressively migrate a big project if you want to.
dionysus69 has quit [Ping timeout: 244 seconds]
SCHAAP137 has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 248 seconds]
JohnBat26 has joined #ruby
Guest34101 has joined #ruby
uglybandersnatch has joined #ruby
ohaibbq has quit [Quit: Leaving...]
shredding has joined #ruby
dtordable has joined #ruby
ohaibbq has joined #ruby
yardenbar has quit [Ping timeout: 268 seconds]
poerror has quit [Ping timeout: 248 seconds]
bronson has quit [Remote host closed the connection]
poerror has joined #ruby
Prominent has quit [Read error: Connection reset by peer]
uglybandersnatch has quit [Ping timeout: 248 seconds]
<_grill>
are you telling me there's documentation for ruby? like, all of these methods are documented?
<_grill>
this is nuts! a language with documentation? this is next level shit!
<tobiasvl>
haha. yes it is quite a revolution
<_grill>
i've already read the documentation. it doesn't address how to move files within directories to another file. I need to do something like mv /some/dir/* /some/other/dir/
LoneHerm_ has joined #ruby
<tobiasvl>
did this not work? FileUtils.mv Dir.glob('/some/dir/*'), '/some/other/dir'
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mrgrieves has quit [Ping timeout: 252 seconds]
dsuper7 has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
dsuper7 has quit [Client Quit]
dn5 has quit [Ping timeout: 260 seconds]
dsuper7 has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
dn5 has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
postmodern has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
huyderman has quit [Ping timeout: 252 seconds]
dikaio has quit [Remote host closed the connection]
guardian has joined #ruby
dikaio has joined #ruby
huyderman has joined #ruby
cdg has joined #ruby
Ox0dea has quit [Ping timeout: 250 seconds]
<tobiasvl>
_grill: ^
<_grill>
looks like that might work
<shevy>
are you not entertained!
<_grill>
but won't that glob pattern miss some stuff?
<tobiasvl>
_grill: no idea, you were the one who wrote it
mistermocha has joined #ruby
<_grill>
I *think* it needs ot be **/*
<manveru>
if you move a directory, it moves its contents too
<tobiasvl>
**/* will descend into all subdirectories, yes
<tobiasvl>
so **/*.gif then I guess
<_grill>
and it'd get the hidden files?
fullofcaffeine has quit [Remote host closed the connection]
<manveru>
more like '{.,}**/{.,}*'
<tobiasvl>
or pass File::FNM_DOTMATCH
<manveru>
or that
<manveru>
so it'd work on windows too :)
zast has quit [Remote host closed the connection]
gizless has joined #ruby
jyaworski has quit [Quit: jyaworski]
bronson has joined #ruby
nettoweb has joined #ruby
SaintAardvark has quit [Ping timeout: 246 seconds]
<_grill>
ok
djbkd has quit [Remote host closed the connection]
<_grill>
that doesn't work because the directory where the files need to be moved to already exists
roshanavand has quit [Quit: This computer has gone to sleep]
<manveru>
well, it might not be sexy, but you can always use glob{|path|} and do it one by one
<tobiasvl>
add a trailing slash?
<tobiasvl>
if you used my example
gizmore has quit [Ping timeout: 264 seconds]
idletask has quit [Remote host closed the connection]
<tobiasvl>
to the destination dir, that is
idletask has joined #ruby
Ox0dea has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
crackerjacktown has quit [Quit: Konversation terminated!]
n008f4g_ has quit [Ping timeout: 264 seconds]
Guest13710 has quit [Ping timeout: 248 seconds]
<_grill>
tobiasvl the weird part is, I did add a trailing slash
rmulligan has joined #ruby
gizless has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
moeabdol has joined #ruby
dikaio has quit [Remote host closed the connection]
bry4n_ has joined #ruby
n008f4g_ has joined #ruby
dikaio has joined #ruby
intrigueD has joined #ruby
jam__ has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 252 seconds]
dsuper7 has quit [Ping timeout: 240 seconds]
bry4n_ has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
SaintAardvark has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
hololeap has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
swills has quit [Ping timeout: 276 seconds]
myntcake has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
mistermo_ has joined #ruby
fschuindt has quit [Ping timeout: 240 seconds]
mistermo_ has quit [Remote host closed the connection]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
mistermo_ has joined #ruby
MuffinPimp has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
symm- has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
A124 has quit [Quit: '']
A124 has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
swills has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
<shevy>
_grill you could also do a recursive copy via FileUtils.cp_r and remove the start directory lateron - that's sorta equivalent to a move action :>
Vingador has quit [Quit: Leaving]
<al2o3-cr>
I believe you can add source/. if you don't want to copy the dir itself
<al2o3-cr>
but i maybe wrong
dikaio has quit [Remote host closed the connection]
BSaboia has joined #ruby
mistermo_ has quit [Remote host closed the connection]
last_staff has joined #ruby
dikaio has joined #ruby
AlexRussia has joined #ruby
zenlot has joined #ruby
<_grill>
ok
<_grill>
what's the best way to copy a directory's attributes to another directoy
zenlot6 has quit [Ping timeout: 244 seconds]
pwnd_nsfw has quit [Read error: Connection reset by peer]
sandstrom has quit [Quit: My computer has gone to sleep.]
pwnd_nsfw has joined #ruby
sandstrom has joined #ruby
Azure has joined #ruby
al2o3-cr has quit [Ping timeout: 260 seconds]
htmldrum has joined #ruby
dikaio has quit [Remote host closed the connection]
djbkd has joined #ruby
dikaio has joined #ruby
rmulligan has joined #ruby
BtcBen has joined #ruby
Musashi007 has quit [Quit: Musashi007]
The_Phoenix has quit [Read error: Connection reset by peer]
htmldrum has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 252 seconds]
solocshaw has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
rkoller has quit [Ping timeout: 240 seconds]
rubie has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
fourq is now known as fourq|away
fourq|away is now known as fourq
<shevy>
cp_r
moos3 has joined #ruby
<Ox0dea>
This man needs mouth-to-mouth resuscitation!
dmr8 has quit [Quit: Leaving]
fedexo has quit [Ping timeout: 248 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
duckpuppy has joined #ruby
tekk has joined #ruby
j0n3 has joined #ruby
last_staff has quit [Quit: last_staff]
duckpuppy has quit [Ping timeout: 246 seconds]
dikaio has quit [Remote host closed the connection]
dikaio has joined #ruby
tjohnson has joined #ruby
SCHAAP137 has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hxegon has quit [Quit: BRB]
Guest10271 has quit [Quit: WeeChat 0.3.8]
nettoweb has joined #ruby
roger_rabbit has joined #ruby
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
Don_John has joined #ruby
blackmesa has joined #ruby
hxegon has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
dikaio has quit [Remote host closed the connection]
tomphp has joined #ruby
dikaio has joined #ruby
dnewkerk has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rmulligan has joined #ruby
shredding has quit [Ping timeout: 244 seconds]
mallu has joined #ruby
mallu has quit [Client Quit]
bjpenn has joined #ruby
moos3 has quit [Ping timeout: 244 seconds]
mallu has joined #ruby
vdamewood has quit [Quit: Life beckons.]
dikaio has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
dikaio has joined #ruby
swills has quit [Remote host closed the connection]
dikaio has quit [Remote host closed the connection]
dikaio has joined #ruby
<Ox0dea>
shevy: How do you have String#last?
edwinvdgraaf has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
dikaio has quit [Remote host closed the connection]
dikaio has joined #ruby
tvon has joined #ruby
s00pcan_ has quit [Quit: Lost terminal]
djbkd has quit [Ping timeout: 268 seconds]
toretore has joined #ruby
edwinvdgraaf has quit [Ping timeout: 276 seconds]
s00pcan_ has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
roshanavand has quit [Quit: This computer has gone to sleep]