snuffeluffegus has quit [Remote host closed the connection]
Mars` has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
kaspergrubbe has joined #ruby
ereslibre has joined #ruby
tjbiddle has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
petey has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
smirn0v has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching_ has joined #ruby
mercwithamouth has joined #ruby
zz_tsykoduk is now known as tsykoduk
tdk2fe has joined #ruby
mrsolo has joined #ruby
T_T has quit [Remote host closed the connection]
nwertman has joined #ruby
T_T has joined #ruby
ereslibre has quit [Ping timeout: 245 seconds]
aryaching has quit [Ping timeout: 240 seconds]
|PiP|_ has joined #ruby
randomnick_ has quit [Quit: Leaving]
T_T has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
fwmath has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsykoduk is now known as zz_tsykoduk
aryaching has joined #ruby
tdk3fe has joined #ruby
adaoraul has joined #ruby
io_syl has joined #ruby
chuck has quit [Ping timeout: 248 seconds]
lfox has joined #ruby
T_T has joined #ruby
aryaching_ has quit [Ping timeout: 240 seconds]
endash has quit [Quit: endash]
T_T has quit [Remote host closed the connection]
w3pm has quit [Quit: This computer has gone to sleep]
uokesita_ has joined #ruby
sevenseacat has joined #ruby
tdk2fe has quit [Ping timeout: 272 seconds]
robert_ has quit [Read error: Connection reset by peer]
tdk3fe is now known as tdk2fe
kurt211 has quit [Quit: Leaving.]
roadt has joined #ruby
habstinat has joined #ruby
parzo has joined #ruby
|PiP|_ has quit [Ping timeout: 252 seconds]
geggam has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
wifinode has joined #ruby
ce_afk is now known as cescalante
mrsolo has quit [Quit: This computer has gone to sleep]
Xaitec has quit [Read error: Connection reset by peer]
fenec2 has joined #ruby
aryaching has joined #ruby
<fenec2>
hey guys
<fenec2>
what is the best way to parse stdin for my custmized script
Xaitec has joined #ruby
AndChat| has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
kil0byte has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
ereslibre has joined #ruby
ereslibre has joined #ruby
aryaching has joined #ruby
wifinode has quit [Ping timeout: 272 seconds]
gyre007 has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
<havenwood>
fenec2: gets.chomp
<havenwood>
fenec2: depends what you're trying to do
kaspergrubbe has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
ereslibre has quit [Ping timeout: 245 seconds]
|PiP|_ has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
jonahR has left #ruby [#ruby]
Xaitec has quit [Read error: Connection reset by peer]
geggam has joined #ruby
Xaitec has joined #ruby
<fenec2>
havenwood, is there a gem to parse a line to extract commands?
Xaitec has quit [Read error: Connection reset by peer]
Xaitec has joined #ruby
NicolasTarzia has quit [Quit: Leaving]
Reach has joined #ruby
Xaitec has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Read error: Operation timed out]
Mars` has joined #ruby
Xaitec has joined #ruby
fayimora has quit [Quit: zzzzz...]
b00stfr3ak has quit [Ping timeout: 245 seconds]
mgoszcz2 has joined #ruby
rgbdev has quit [Quit: rgbdev]
thesheff17 has quit [Quit: Leaving]
Xaitec has quit [Read error: Connection reset by peer]
thesheff17 has joined #ruby
fijimunk1i has joined #ruby
Xaitec has joined #ruby
fijimunkii has quit [Ping timeout: 240 seconds]
mgoszcz2 has quit [Read error: No route to host]
Tearan has quit [Quit: Sleepy Badger....]
<volty>
what kind of commands ?
<Reach>
is rubymonk a good way to learn basic ruby?
Atrumx has joined #ruby
|PiP|_ has quit [Ping timeout: 252 seconds]
<jrobeson>
Reach, it is ok enough.. you might want to try something that is a bit more flexible like the ruby koans
<jrobeson>
since you can just play with it on your own computer in your own text editor
zz_tsykoduk is now known as tsykoduk
<Reach>
well i've learned java well enough before, so i understand how to program. just learning syntax really, then going to do project euler or programmingpraxis
<fenec2>
volty, so basically i want to add command fron stdin and execute methods in my script
<jrobeson>
Reach, well especially then.. play with the ruby koans, you should be able to make it through quickly
veinofstars has joined #ruby
<Reach>
hm
<Reach>
jrobeson: my only problem is, while i can write code... these editors are confusing.
<jrobeson>
which editors?
<Reach>
well i downloaded textmate because that seems to be the most recommended one for ruby
<jrobeson>
ah i just use vim
<jrobeson>
however.. why not use the editor you already know?
<Reach>
i like emacs, but when i tried to learn lisp there was lispinabox, not sure how to turn ruby mode on in emacs
<jrobeson>
plenty of emacs ruby coders.. some googling should help you there
<jrobeson>
a colleague of mine wrote rails apps in emacs just fine, however i didn't know anything about his setup saldy to be able to offer any more specific advice
danshultz has joined #ruby
<havenwood>
Reach: I like TextMate 2, good stuff.
<havenwood>
fenec2: Yeah, there are good option parsers. Slop is a nice one, or Trollup.
<fenec2>
mm interesting
<fenec2>
thanks
<havenwood>
fenec2: Highline is a more full-featured thingy, prolly worth looking at as well.
<jrobeson>
unless you want a full featured thing like gli or methadone or whatever
<jrobeson>
it's hard to choose :(
Domon has joined #ruby
Xaitec has quit [Read error: Connection reset by peer]
Xaitec has joined #ruby
someish has quit [Quit: someish]
kilophoton has joined #ruby
fgo has quit [Remote host closed the connection]
LiVECrys has quit []
someish has joined #ruby
ngoldman has joined #ruby
Xaitec has quit [Read error: Connection reset by peer]
radic has joined #ruby
adkron has joined #ruby
radic_ has quit [Read error: Operation timed out]
tsykoduk is now known as zz_tsykoduk
horofox has joined #ruby
jeffdb has joined #ruby
fuhgeddaboudit has joined #ruby
baroquebobcat has joined #ruby
mhodgson has joined #ruby
Monie has joined #ruby
voidPirate has quit [Remote host closed the connection]
ce_afk is now known as cescalante
jeffdb has quit [Client Quit]
zz_tsykoduk is now known as tsykoduk
jeffdb has joined #ruby
Mars` has quit [Ping timeout: 252 seconds]
xk_id has quit [Quit:
veinofstars has quit [Ping timeout: 272 seconds]
rgbdev has joined #ruby
Jetchisel has joined #ruby
rjhunter has joined #ruby
ngoldman has quit [Remote host closed the connection]
ngoldman has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
veinofstars has joined #ruby
dmiller has quit [Remote host closed the connection]
cescalante is now known as ce_afk
ngoldman has quit [Ping timeout: 240 seconds]
em0ral has joined #ruby
blarghmatey has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
tsykoduk is now known as zz_tsykoduk
fgo has joined #ruby
volty has quit [Quit: Konversation terminated!]
tjbiddle has quit [Quit: tjbiddle]
xk_id has joined #ruby
kaspergrubbe has quit [Ping timeout: 246 seconds]
ngoldman has joined #ruby
brennanMKE has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 265 seconds]
mobileblue has quit [Ping timeout: 246 seconds]
kitak_ has quit [Remote host closed the connection]
Guest10547 has quit [Ping timeout: 272 seconds]
bugsinlights has joined #ruby
mixel has quit [Quit: mixel]
RealMarc has joined #ruby
burgess|vayo has joined #ruby
adkron has quit [Ping timeout: 272 seconds]
tdk2fe has quit [Remote host closed the connection]
horofox has quit [Quit: Leaving.]
tdk2fe has joined #ruby
bean has joined #ruby
Davey has joined #ruby
chinkung has quit [Quit: Bye!]
mobileblue has joined #ruby
brennanMKE has joined #ruby
Reach has quit [Remote host closed the connection]
julian-delphiki has quit [Ping timeout: 248 seconds]
ngoldman has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
braincra- has joined #ruby
ngoldman has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
adammokan has joined #ruby
LaPetiteFromage has joined #ruby
Kabaka has joined #ruby
rgbdev has quit [Quit: rgbdev]
varfoo has joined #ruby
machuga is now known as machuga|away
kreeves has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
ccbn has joined #ruby
ccbn is now known as ccbn2
adammokan has quit [Read error: Connection reset by peer]
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
krz has joined #ruby
qubit has joined #ruby
chxane has quit [Ping timeout: 245 seconds]
<qubit>
when working with the ruby C api, and you call rb_raise, is an explicit return needed, or is rb_return jumping out of the function? I cant find any clear answer, and examples are very inconsistent (sometimes even within the same example)
michael_mbp is now known as zz_michael_mbp
ce_afk is now known as cescalante
parzo has quit [Ping timeout: 240 seconds]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
cescalante is now known as ce_afk
chxane has joined #ruby
danshultz has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
T_T has joined #ruby
ereslibre has joined #ruby
|PiP|_ has joined #ruby
araujo has quit [Quit: Leaving]
arietis has joined #ruby
T_T has quit [Remote host closed the connection]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deception has joined #ruby
mrsolo has joined #ruby
ereslibre has quit [Ping timeout: 245 seconds]
ccbn2 has quit [Quit: Page closed]
Ox6abe_ has quit [Remote host closed the connection]
Ox6abe has joined #ruby
orien has joined #ruby
em0ral has quit [Remote host closed the connection]
mweshi has joined #ruby
orien has quit [Client Quit]
TheNotary has joined #ruby
TheNotary has quit [Client Quit]
orien has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Ox6abe has quit [Ping timeout: 265 seconds]
orien has quit [Client Quit]
orien has joined #ruby
heidi has joined #ruby
|PiP|_ has quit [Remote host closed the connection]
|PiP|_ has joined #ruby
|PiP|_ has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
g0bl1n has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
heidi has quit [Quit: Leaving.]
mrsolo has quit [Quit: This computer has gone to sleep]
GusGa has joined #ruby
Hanmac1 has quit [Quit: Leaving.]
mityaz has quit [Quit: See ya!]
veinofstars has quit [Quit: veinofstars]
SilverKey has quit [Quit: Sleep now]
GusGa has quit [Client Quit]
DanKnox is now known as DanKnox_away
bugsinlights has quit [Remote host closed the connection]
bugsinlights has joined #ruby
jeffdb has quit [Quit: jeffdb]
|PiP|_ has joined #ruby
LoRdToLsToI has joined #ruby
icemancast has joined #ruby
teapop has joined #ruby
darrik has quit [Ping timeout: 240 seconds]
intuxicated has quit [Ping timeout: 256 seconds]
lyanchih has quit [Quit: lyanchih]
jeffdb has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
Ren^ has quit [Ping timeout: 240 seconds]
adaoraul has quit [Quit: leaving]
duggiefresh has quit [Ping timeout: 265 seconds]
T_T has joined #ruby
* LoRdToLsToI
!reg
veinofstars has joined #ruby
astrobunny has joined #ruby
bricker`LA has quit [Ping timeout: 246 seconds]
soba has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
uokesita_ has quit [Quit: This computer has gone to sleep]
peterhu has joined #ruby
mweshi has quit [Quit: mweshi]
Atrumx has quit [Quit: Quitting]
ericmathison has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
Ren^ has joined #ruby
ce_afk is now known as cescalante
justsee has quit [Ping timeout: 256 seconds]
aryaching has quit []
freerobby has joined #ruby
parzo has joined #ruby
justsee has joined #ruby
astrobunny has joined #ruby
heidi has joined #ruby
fwmath has quit [Read error: Operation timed out]
bugsinlights has quit [Remote host closed the connection]
mrsolo has joined #ruby
bugsinlights has joined #ruby
marius has quit [Quit: x]
atSetKey has quit [Remote host closed the connection]
mrsolo has quit [Client Quit]
mrsolo has joined #ruby
parzo has quit [Remote host closed the connection]
cescalante is now known as ce_afk
parzo has joined #ruby
heidi has quit [Ping timeout: 240 seconds]
bricker`LA has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
LoRdToLsToI has quit [Ping timeout: 246 seconds]
adkron has joined #ruby
brennanM_ has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
T_T has quit [Remote host closed the connection]
astrobunny has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
Soda has joined #ruby
someish has quit [Quit: someish]
v0n has quit [Read error: Operation timed out]
abstractj has quit [Read error: Connection reset by peer]
burgess|vayo has quit [Quit: ^zzz]
bugsinlights has quit [Remote host closed the connection]
bugsinlights has joined #ruby
ereslibre has joined #ruby
astrobunny has quit [Ping timeout: 252 seconds]
Ox6abe has joined #ruby
Sail_ is now known as Sail
DrCode has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
DrCode has joined #ruby
DanKnox is now known as DanKnox_away
adkron has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
ereslibre has quit [Ping timeout: 245 seconds]
msoul has joined #ruby
mary5030 has quit [Remote host closed the connection]
astrobunny has joined #ruby
mary5030 has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
schaerli has joined #ruby
bluepojo_ is now known as bluepojo
mary5030 has quit [Ping timeout: 252 seconds]
astrobunny has quit [Ping timeout: 252 seconds]
haxrbyte has joined #ruby
fgo has quit [Remote host closed the connection]
justsee has joined #ruby
ngoldman has quit [Remote host closed the connection]
frustrum has joined #ruby
frustrum has quit [Client Quit]
ngoldman has joined #ruby
icemancast has quit [Quit: icemancast]
DonRichie has joined #ruby
larissa has quit [Quit: Leaving]
schaerli has quit [Remote host closed the connection]
lyanchih has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
schaerli has joined #ruby
astrobunny has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
ngoldman has quit [Ping timeout: 240 seconds]
DonRichie has quit [Client Quit]
schaerli has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
ChronocityLC has quit [Ping timeout: 272 seconds]
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
saarinen has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
tdk2fe has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
tdk2fe has joined #ruby
ce_afk is now known as cescalante
i_s has joined #ruby
zachrab has quit [Ping timeout: 272 seconds]
aagdbl has joined #ruby
tdk2fe has quit [Ping timeout: 256 seconds]
jpun has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
tdk2fe has joined #ruby
aagdbl has quit [Client Quit]
msoul has quit [Quit: -]
Macaveli has joined #ruby
lyanchih has joined #ruby
heidi has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
girija has joined #ruby
aagdbl has joined #ruby
girija has left #ruby [#ruby]
ewnd9 has joined #ruby
cescalante is now known as ce_afk
apeiros has quit [Remote host closed the connection]
jpun has joined #ruby
heidi has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has joined #ruby
coderhs has joined #ruby
fgo has joined #ruby
zz_tsykoduk is now known as tsykoduk
coderhs has quit [Client Quit]
wchun has joined #ruby
goganchic has joined #ruby
ngoldman has joined #ruby
varfoo has quit [Ping timeout: 265 seconds]
astrobunny has quit [Ping timeout: 252 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 265 seconds]
coderhs has joined #ruby
T_T has joined #ruby
ngoldman has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
T_T has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
tagrudev has joined #ruby
T_T has joined #ruby
tsykoduk is now known as zz_tsykoduk
roadt_ has joined #ruby
thesheff17 has quit [Ping timeout: 252 seconds]
roadt has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
haxrbyte_ has joined #ruby
Tearan has joined #ruby
goganchic has quit []
astrobunny has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
haxrbyte has quit [Read error: Operation timed out]
Fredericks has joined #ruby
Fredericks has quit [Max SendQ exceeded]
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
<weeb1e>
Would `if defined? @foo` be more efficient than `if @foo`?
<jrobeson>
why would it be?
<jrobeson>
i mean why would you think it would be?
<jrobeson>
they don't actually mean the same thing..
<jrobeson>
if @foo was false, then it would fail if @foo, but pass if defined? @foo
Lewix has quit [Ping timeout: 272 seconds]
mrsolo has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby
Heero has quit [Ping timeout: 272 seconds]
dzhulk has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
stkowski has quit [Quit: stkowski]
lukec has quit [Quit: lukec]
peterhu has quit [Ping timeout: 245 seconds]
dzhulk has quit [Client Quit]
parzo_ has joined #ruby
parzo has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
jeffdb has quit [Read error: Connection reset by peer]
jeffdb has joined #ruby
astrobunny has joined #ruby
freerobby has quit [Quit: Leaving.]
Elhu has joined #ruby
<weeb1e>
jrobeson: Well, I don't know exactly what `defined?` does internally, but I just saw that used with instance variables in the em-websocket gem, but I guess it's probably just another case of the author lacking ruby knowledge
<jrobeson>
it's in the docs
<weeb1e>
Which seems to be the case in almost every single ruby library I ever come across
<weeb1e>
That is the only reason I wondered if defined? would be more efficient for checking that
<jrobeson>
but quoting the docs as far as how it checks
<jrobeson>
defined? expression tests whether or not expression refers to anything recognizable (literal object, local variable that has been initialized, method name visible from the current scope, etc.). The return value is nil if the expression cannot be resolved. Otherwise, the return value provides information about the expression.
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<jrobeson>
it's possible that specific behaviour is wanted by the check, but without seeing the code in full i can't say.
kracekumar has joined #ruby
<weeb1e>
havenwood: Interesting, it is a very small difference though
teapop has quit [Remote host closed the connection]
zoee has joined #ruby
<jrobeson>
it's like a lot of those things.. people try stuff like that in every language for some useless speed increase
<weeb1e>
jrobeson: It isn't, it is used for checking if callbacks have been defined
<havenwood>
yeah, just a smidge
<weeb1e>
I will stick with my if @instance_var
<jrobeson>
when they are almost all i/o bound ..
rjhunter has quit [Remote host closed the connection]
<weeb1e>
I just took a big leap and spent two hours wrapping a ton of different EM callbacks from various gems and lots of my own implemented protocols in fibers
<weeb1e>
There will no doubt be some things that will still crash and burn and need to be wrapped, but after getting most of it done, the speed increase with database queries is looking good
astrobunny has joined #ruby
WillAmes has quit [Remote host closed the connection]
<jrobeson>
i haven't yet seen fibers in any of the code i've dealth with
<jrobeson>
weeb1e, what ruby are you using?
<jrobeson>
ruby implementation*
ce_afk is now known as cescalante
coderhs has joined #ruby
WillAmes has joined #ruby
<weeb1e>
I've avoided them up until now since I'm quite happy with block based callbacks, but keeping database queries synchronous has become an issue with the scale I need to achieve with my new realtime web based interface
<weeb1e>
1.9.3
<jrobeson>
so you're using mri ?
<weeb1e>
Yeah
<jrobeson>
tried rubinus yet?
haxrbyte_ has quit [Read error: Connection reset by peer]
Fredericks has joined #ruby
<weeb1e>
I'd love to, but last time I looked into it there were too many gems with MRI specific native code
<jrobeson>
i wanted to try rubinus..however the ruby serial port library is not good
<weeb1e>
I have a ton of dependencies :(
<jrobeson>
native code? extensions?
<weeb1e>
Yeah
senayar has joined #ruby
<jrobeson>
yeah even just my serialport lib is fail :(
alexju has quit [Remote host closed the connection]
<weeb1e>
The main reason for wanting to switch to rubinius was for its profiler, luckily I found perftools.rb a day ago
alexju has joined #ruby
|PiP|_ has quit [Ping timeout: 272 seconds]
<weeb1e>
It is really awesome for profiling reactor based applications in production
<weeb1e>
Has almost no overhead
T_T has quit [Remote host closed the connection]
<weeb1e>
What the hell is inno-talent.com and how do they know about me? I just got an email saying "My client, a Las Vegas based, well funded start-up is recruiting a strong Ruby on Rails Developer to play a critical role in the development of their platform. Your profile matches up nicely with the requirements. Please provide your phone number and availability for a call to learn more about this world changing opportunity!"
Lewix has quit [Remote host closed the connection]
<weeb1e>
I never made a profile for anything do to with ruby on rails, let alone on their site
<jrobeson>
email on github with ruby projects?
<jrobeson>
i got contacted by a new relic recruiter as soon as i made a rails project for the first time
<weeb1e>
Ah, I guess that address used to be yeah
<jrobeson>
like within a few days
<weeb1e>
But I only have like 1 tiny rails project from years ago
<weeb1e>
I learnt rails at the same time as ruby, but other than using it a little for two contracted jobs, I have rather used sinatra or rolled my own rack based framework
heidi has joined #ruby
alexju has quit [Ping timeout: 240 seconds]
cads has joined #ruby
<jrobeson>
i just picked up rails because it felt like i should at least try it for something..
jprovazn has joined #ruby
<jrobeson>
i'm already irritated at the lack of a proper datamapper implementation in ruby :(
DrCode has quit [Remote host closed the connection]
cescalante is now known as ce_afk
DrCode has joined #ruby
heidi has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
bigkevmcd has joined #ruby
<havenwood>
jrobeson: have you looked at Ruby Object Mapper?
hakunin_ has quit [Remote host closed the connection]
hakunin has joined #ruby
lurch_ has joined #ruby
i_s has quit [Remote host closed the connection]
workmad3 has joined #ruby
i_s has joined #ruby
<fenec2>
can you test stdout in rspec?
<Mon_Ouie>
You can use $stdout = StringIO.new add check what's in it after running your code
araujo has quit [Ping timeout: 272 seconds]
froy has joined #ruby
mengu has joined #ruby
diegoviola has joined #ruby
i_s has quit [Ping timeout: 272 seconds]
gmas has quit [Ping timeout: 240 seconds]
gyzmodo has joined #ruby
jeffdb has quit [Read error: Connection reset by peer]
jeffdb has joined #ruby
sr78ger has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
kilophoton has quit [Ping timeout: 240 seconds]
Kneferilis has joined #ruby
<apeiros>
hoelzro: congrats man! :D
ce_afk is now known as cescalante
<hoelzro>
apeiros: thanks =)
m8 has joined #ruby
skaflem has joined #ruby
camilasan has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
astrobunny has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
GeissT has joined #ruby
nfk has joined #ruby
Intrepidd has joined #ruby
NinjaPenguin_ is now known as NinjaPenguin
heidi has joined #ruby
alup has joined #ruby
avril14th has joined #ruby
peterwalker78 has quit [Remote host closed the connection]
ahawkins has joined #ruby
astrobunny has joined #ruby
<coderhs>
Hey guys, what would be the simplest way to explain a singleton class?
<sevenseacat>
call it a highlander class. 'there can be only one!'
cescalante is now known as ce_afk
zz_michael_mbp is now known as michael_mbp
troessner has joined #ruby
heidi has quit [Ping timeout: 240 seconds]
<coderhs>
sevenseacat, so how many times u call there will be only one instance ?
<sevenseacat>
thats pretty much it.
<apeiros>
per object
jeffdb has quit [Quit: jeffdb]
<apeiros>
the singleton class is a class which belongs to exactly one object and exists at the top of that objects inheritance chain (i.e., methods are first look up there, then on the class of the object etc.)
<likemike>
why methods are called methods and not functions ?
<apeiros>
a method has a receiver, a function does not
<apeiros>
i.e., a function has no concept of self or ivars
<NinjaPenguin>
A receiver?
<apeiros>
obj.do_something # obj is the receiver
<Intrepidd>
The object on which the method was called
<NinjaPenguin>
Oh yeah, right.
hjensas has joined #ruby
<apeiros>
the object which becomes `self` in the method's code
<tobiasvl>
likemike: functional programming vs. object-oriented programming
<apeiros>
stateful vs. stateless
<apeiros>
or maybe not
* apeiros
still needs to wake up
kracekumar has quit [Quit: Computer has gone to sleep.]
<likemike>
i thought that self resembles this pointer
<apeiros>
besides not being a pointer, it's pretty much that
orien has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
lsmola has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
io_syl has quit []
dawkirst has joined #ruby
astrobunny has joined #ruby
zarubin has joined #ruby
ZhBPi has quit [Ping timeout: 240 seconds]
h_kon has joined #ruby
Xeago has joined #ruby
mark06 has joined #ruby
orionstein is now known as orionstein_away
Guest76666 has joined #ruby
diegoviola is now known as Guest60102
timonv has joined #ruby
vince_prignano has joined #ruby
vince_prignano has quit [Max SendQ exceeded]
blaxter_ has joined #ruby
Guest60102 has quit [Read error: Operation timed out]
smirn0v has joined #ruby
hjensas has quit [Ping timeout: 240 seconds]
colonolGron has joined #ruby
ZhBPi has joined #ruby
coldbeer has joined #ruby
bluepojo has quit [Read error: Connection reset by peer]
varfoo has joined #ruby
varfoo has quit [Client Quit]
varfoo has joined #ruby
stefff has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
shaunbaker has joined #ruby
ghr has joined #ruby
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
tjad has joined #ruby
workmad3 has quit [Read error: Operation timed out]
Hanmac has joined #ruby
Jdubs has quit [Ping timeout: 240 seconds]
nessib has joined #ruby
schaerli has quit [Ping timeout: 252 seconds]
nessib has quit [Remote host closed the connection]
Jdubs has joined #ruby
pedda has joined #ruby
fenec2 has quit [Ping timeout: 246 seconds]
punktechnology has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
Zai00 has joined #ruby
Jetchisel has joined #ruby
peterhu has joined #ruby
fixl has joined #ruby
senayar has joined #ruby
nhhagen has quit [Quit: Leaving]
senayar_ has joined #ruby
aspiers has joined #ruby
astrobunny has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
heidi has joined #ruby
newbiehacker_ has joined #ruby
einarj has joined #ruby
kracekumar has joined #ruby
Advocation has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
lyanchih has quit [Ping timeout: 245 seconds]
senayar_ has quit [Remote host closed the connection]
kracekumar has quit [Max SendQ exceeded]
senayar has quit [Ping timeout: 256 seconds]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
lyanchih has joined #ruby
threesome has joined #ruby
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
Xeago_ has joined #ruby
claymore has joined #ruby
wildroman has joined #ruby
heidi has quit [Ping timeout: 246 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
tvw has quit []
Xeago has quit [Ping timeout: 252 seconds]
rmabbi has joined #ruby
Advocation has quit [Ping timeout: 256 seconds]
leonidlm has joined #ruby
ZhBPi has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
rmabbi has quit [Quit: This computer has gone to sleep]
elaptics`away is now known as elaptics
<joshAnderson99>
hi, plan to do some rails dev, but not sure of whether there would be a need much to use different ruby versions, or gem versions. would rvm nontheless be recommended as the preferred installing tool? over the gem package which i guess is the alternative.
ZhBPi has joined #ruby
* sevenseacat
counts how many times I told you not to use the system packages for Ruby
<sevenseacat>
i think four was my last count
<Hanmac>
joshAnderson99: #rubyonrails
peterhu has quit [Ping timeout: 245 seconds]
<joshAnderson99>
ok.. but even just in the ruby dept, you'd not find a need for rvm?
graft has quit [Ping timeout: 272 seconds]
<apeiros>
everybody and his stepchild uses rvm (or a similar tool)
<Hanmac>
joshAnderson99: and if you use rvm you need to "BEWARE!" because if you install it as user mode, you may can not access them with web-user … so you may need to install rvm into system-wide
adambeynon has joined #ruby
<joshAnderson99>
ok.. that's persuasive. i might give it try. thanks.
<Hanmac>
apeiros: on my home machine i do not, but on my working Mac i do because of the helping with compiler
graft has joined #ruby
<apeiros>
hanmac: you use a single ruby version on your home machine? or just version by hand?
<joshAnderson99>
erm.. helping with compiler? as in, it avoid issues that otherwise might arise when compiling gems?
brennanMKE has joined #ruby
<joshAnderson99>
well, i'm just about to start ruby. i'm not as yet in ruby development.
<coldbeer>
sevenseacat: why not use distro-packaged ruby?
<Hanmac>
apeiros: single ruby version … but still installed from ruby-trunk
<coldbeer>
i am guessing because of compile options - but why specifically?
<joshAnderson99>
experience in python is that 2.7 worked most of time, but sometimes it might have been nice to jump to 3, for the language improvements.
<sevenseacat>
a) its usually out of date, b) you cant keep multiple versions and c) debian cripped their installs in the past and i dont really care if theyve fixed it now
<coldbeer>
so debian aside
<sevenseacat>
why aside, given he's using a debian derivative?
<coldbeer>
oh sorry - im applying it to my own use case.
<Hanmac>
sevenseacat: debian has update-alternatives , and ruby itself is not so crippld … i mean you may not need the -dev packages
obs has joined #ruby
<coldbeer>
so lets say 1.8.7 - with typical compile options. why is that something you would not want to support at this point?
user258467 has quit [Ping timeout: 272 seconds]
<DefV>
because 1.8.x is OLD
<Hanmac>
coldbeer we dont talk about 1.8.7
<sevenseacat>
because 1.8.7 is past EOL
<coldbeer>
all RHEL distros run on that. so not supporting it means not supporting RHEL, Scientific, CentOS, and all derivities
<joshAnderson99>
sold on rvm, checking up some stackoverflow comments as well, thanks.
<jrobeson>
coldbeer, that's why we all use rvm/rbenv/chruby
mikecmpbll has joined #ruby
<Hanmac>
coldbeer: thats not a pro point for RHEL
<sevenseacat>
even my ubuntu says the latest version it has is 1.9.3-p194 which is still nowhere near as recent as i want
<jrobeson>
because distros ship with that nonsense
<coldbeer>
hanmac - so RVM is what you would run on a production RHEL env?
brennanMKE has quit [Ping timeout: 260 seconds]
<jrobeson>
yes..
nfk has quit [Remote host closed the connection]
<Hanmac>
yes, or maybe compile it myself
<postmodern>
coldbeer, upgrade to fedora, it's going to be the next RHEL anyways
<TMM>
coldbeer, use the puppetlabs ruby 1.9 packages and package your gems with fpm, that is how a few people (including me) here do it
<jrobeson>
fpm? hmm
<coldbeer>
before i say anything else - want to make sure im not coming off as a d***. i appreciate pulling in the latest no doubt.
<coldbeer>
but
<TMM>
coldbeer, do not ever run RVM on a production system, there is no good way of managing your versions once you hide everything behind a chroot/rvm type thing
<coldbeer>
i also appreciate stability in operating systems
<jrobeson>
it's not about latest.. it's about using what's supported ..
<DefV>
douche has 4 *'s
<DefV>
5, even
<coldbeer>
and not maintaining my own copy of any language
<TMM>
(I would say to never use gem on a production system either btw)
nfk has joined #ruby
* sevenseacat
uses rvm and gem on production systems
<jrobeson>
coldbeer, in other languages that's somewhat possible.. sadly not true with ruby
<jrobeson>
it's all about what your apps support .. if the app you want to run requires a newer ruby.. what do you do?
workmad3 has joined #ruby
<jrobeson>
or all the libraries for that matter
* sevenseacat
wonders if the next version of ubuntu will come with ruby1.8, ruby1.9, and ruby2 packages just to add more mess
Log1x has quit [Ping timeout: 252 seconds]
<TMM>
I'm not saying it's not possible, it is also possible to run production systems off of a bunch of dell desktops under your desk. you can call 'production' whatever you want. But if you have a whole bunch of servers running ruby RVM makes it really much harder than necessary to do centralized version management. especially if you end up with multiple rvm installations on a server (and you inevitably will)
<jrobeson>
why would you?
<sevenseacat>
o.O
<sevenseacat>
why would you.... i dont think i want to know
kil0byte has joined #ruby
<postmodern>
sevenseacat, apt-get install ruby on 13.04 installs 1.9.3 :)
<jrobeson>
if you install it globally why would you have multiple versions?
<TMM>
you're... installing rvm globally?
<sevenseacat>
postmodern: yes, thats what i said before
<TMM>
wtf
blackmes1 has joined #ruby
<joshAnderson99>
hanmac: thanks for tip, will be sure then to install rvm in root, to void the web user problem mentioned.
<jrobeson>
i'm not.. i don't use rvm
<TMM>
ok
<postmodern>
sevenseacat, i like how they even added a ruby1.9.3 virtual package to reduce confusion
<TMM>
anyway happy fun meeting time
<coldbeer>
dudes... lets face it. RHEL dominates the stability market in large enterprises. so it has 1.8.7 - what do you do, GO.
Kar- has joined #ruby
<jrobeson>
but i don't see what is wrong with doing so ..
ShawnMcCool has left #ruby ["Konversation terminated!"]
<jrobeson>
coldbeer, you don't run any modern ruby application
<sevenseacat>
coldbeer: lol
<jrobeson>
you don't run rails 4 either
<sevenseacat>
you install a better OS
dEPz has joined #ruby
<postmodern>
coldbeer, dude you should face it, 1.8.7 is End Of Lifed
<sevenseacat>
1.8.7 is *past* EOL
<postmodern>
coldbeer, no more security patches, no patches at all
<sevenseacat>
you do not use 1.8.7 anymore
<TMM>
coldbeer, fpm + puppetlabs 1.9 packages. It's really the best way to go, you can still use yum and all your other version management tools and you don't go against what your distro provides.
gregf_ has joined #ruby
<Hanmac>
my plan is, that each person who wants help about 1.8 i redirect them to #rubyonrails … and i do it only because i can ;P
<sevenseacat>
we'll just laugh at them there too.
<coldbeer>
I understand - but are you saying that everyone that maintains RHEL is just ridiculous for not pulling in 1.9.x ? I won't pretend to front that I know event a little about rubys release cycle and what that means for stability - but why does RHEL6 not have 1.9+ when it was around during their release?
jrhe has joined #ruby
<sevenseacat>
because they're enterprise :P
<postmodern>
coldbeer, yes use 1.9.3 it's perfectly stable, fedora has used it for a year now
<jrobeson>
coldbeer, it doesn't matter what you think about anything.. if no ruby app works with it.. what's the point
<postmodern>
coldbeer, if you run your code on 1.8.7, you are potentially putting your systems and user's data at risk
<jrobeson>
1.8.7 means.. don't run ruby..
<Hanmac>
sevenseacat: you mean as old as the very first enterprise episodes? ;P
timonv has joined #ruby
newbiehacker has joined #ruby
<coldbeer>
Sorry guys I didn't mean to start any spam flame wars on your channel. Just genuinely curious.
<likemike>
solaris still ships only 1.8.7 ruby heh
cainus has quit [Ping timeout: 246 seconds]
<coldbeer>
I have developed in 1.8.7 so far (last few months) on RHEL just getting to know the language in general.
nazty has quit [Ping timeout: 272 seconds]
jbpros has joined #ruby
<postmodern>
coldbeer, use Fedora, release 19 already upgraded to 2.0.0, before that they used 1.9.3 for 1-2 years
<Hanmac>
coldbeer: or use nightly because it has fixed some segfaults i found
bigkevmcd has joined #ruby
<jrobeson>
too bad fedora has nothing like ppa :(
<jrobeson>
i mean like how nice it is for people to use ..
<coldbeer>
postmodern: thats possible for me to do personally, sure. but say I work for a megacorporation, and I implement a very large piece of software that does cloud deployments for very large clusters that are expected to live for more than 3 or 4 years.
newbiehacker_ has quit [Ping timeout: 252 seconds]
blaxter_ is now known as blaxter
ereslibre has joined #ruby
ereslibre has joined #ruby
<coldbeer>
gentoo + latest ruby is not the way to go in that case. compiling every other month is just not maintainable at scale.
<coldbeer>
well - if you have SLA's at scale anyways.
<nemysis>
have used Gentoo 6 Years now use only FreeBSD/PCBSD
* Hanmac
compiles ruby minimum each time he gets home at weekend
<coldbeer>
hanmac: totally get that and am with you on that one buddy
<coldbeer>
wish everyting could always be latest
<Hanmac>
otherwise something like that could happen:
<jrobeson>
coldbeer, then you do what TMM suggested .. keep the base os and stuff
<jrobeson>
and still have all your ruby versions and libs managed with your package manager
<apeiros>
coldbeer: aka no true scottsman fallacy?
ereslibre has quit [Ping timeout: 264 seconds]
<jrobeson>
coldbeer, any ruby project.. even if the ruby version was fine and new.. would still require gems that are not packaged as rpms
peterwalker78 has joined #ruby
buibex has joined #ruby
<jrobeson>
in rhel.. only a few gems (deps of other packages) are packages in rpm.. like direct deps of rails for example
<jrobeson>
but most apps would have things that are not in fact in there
<jrobeson>
so no matter what.. you're pulling in other things
sevenseacat has quit [Quit: Leaving.]
<jrobeson>
and i can't imagine it'd be different in php or many other languages
<coldbeer>
but why has the language evolved so quickly and backward-incompatibly that it is not otherwise viable for enterprise use?
<apeiros>
quickly?
<apeiros>
lol?
<jrobeson>
python is the outlier here due to being relied upon by so many of redhat's packages and being a scripting language for unixy stuff
<apeiros>
1.9 has been out for over 5 years now.
<apeiros>
if you think that's quick you must be working for the government…
<jrobeson>
coldbeer, are you saying that github is in fact not enterprisy?
<coldbeer>
apeiros: i understand no doubt man. but why then did RHEL6 choose 1.8.7
<jrobeson>
are you saying that none of the people who run rails apps are enterprisey???
<Hanmac>
coldbeer: becauese they coundnt find older ruby
ephemerian has joined #ruby
<jrobeson>
lol
<apeiros>
coldbeer: I have no insight into RHEL's decision making
<coldbeer>
absolutely not. i realize it seems like i am assaulting the ruby community which i am not.
<jrobeson>
you just have unrealistic expecations for webapps
<jrobeson>
it'd be the same for any language that isnt pyton or perl
camilasan has quit [Remote host closed the connection]
<apeiros>
coldbeer: but honestly, I can't find a good reason other than: "it'd have been a lot of work to make sure everything works with the newer version"
<likemike>
coldbeer: do you need all your servers to have latest ruby ?
<apeiros>
funny enough you can apply that mantra forever.
<apeiros>
and everything.
Mars` has joined #ruby
camilasan has joined #ruby
cainus has joined #ruby
<jrobeson>
perl due to legacy, and python being the replacement.. thus most things end up being packaged
<jrobeson>
however.. as soon as you build a django webapp.. boom.. now you need stuff that isn't packaged
<jrobeson>
of course.. you'd probably deploy it with fabric, after bundling stuff locally
<jrobeson>
same as in ruby. with capistrano or the like
parzo_ has quit [Remote host closed the connection]
<coldbeer>
So my dilemma is - I work at Cisco. I implemented a *TON* of shit in PHP over some years. I love Ruby - even though I only know 1.8.7. How can I sell this to people who truly believe the RHEL philosophy?
parzo has joined #ruby
<jrobeson>
coldbeer, and you haven't had to use 3rd party php libraries that aren't packaged?
francisfish has joined #ruby
klaut has joined #ruby
<coldbeer>
libraries sure
<likemike>
coldbeer: i mean we have 30k Solaris servers and we certainly do not have a ruby apps on all of them
<coldbeer>
the language itself - never
<jrobeson>
oh.. i thought you were also arguing generally against depedencies downloaded from the internet
ce_afk is now known as cescalante
<jrobeson>
coldbeer, on rhel with php.. i can't imagine not using the remi repositories not to get at least php 5.4
<coldbeer>
jrobeson: I am - we ship product on-premise to any customer who wants that actually.
<likemike>
jrobeson: in "true" enterprise you cant even use the official repositories from vendor...you need to have your own mirror in intranet
<coldbeer>
php 5.4 is really not necessary for a quality and performant application.
<coldbeer>
but please i dont mean to bring language wars into here.
<jrobeson>
if you like working with fake ass closures .. sure :)
<jrobeson>
without even local bindings
lkba has joined #ruby
<jrobeson>
that's up to you i guess
<apeiros>
I think that's besides the point
dangerousdave has joined #ruby
<apeiros>
to the point would be questions about EOL'd PHP versions, backwards incompatibility there and what version RHEL provides.
<jrobeson>
likemike, sure.. wouldn't have have a staging server and then a gold server or whatever?
<likemike>
jrobeson: this
bricker`LA has quit [Ping timeout: 252 seconds]
<jrobeson>
i've never worked in such environments, but it's hard not to hear about if you've been around the block a few times
<coldbeer>
there is no "server" in enterprise. You define things in software.
camilasan has quit [Ping timeout: 272 seconds]
<likemike>
jrobeson: i have never worked in small / startup company
Log1x has joined #ruby
<jrobeson>
uhmm.. i think we've all understood that server is just a way of saying.. a physical device that runs services ..
Log1x is now known as Guest59718
<apeiros>
or a logical device
<jrobeson>
or perhaps that's even too specific.. since virutalizaiton
<jrobeson>
yes
parzo has quit [Ping timeout: 241 seconds]
<jrobeson>
which i failed to spell anywhere near correctly
<Hanmac>
php is getting old … i heard if they would make an 100% object oriented rewrite of php … it would be look like ruby ;D
<jrobeson>
hanmac, well they finally added generators and the yield keyword
<apeiros>
and goto
<jrobeson>
and they have traits
<apeiros>
at least we can now generate parsers in php :)
<jrobeson>
goto somewhereelse();
buibex has quit [Remote host closed the connection]
buibex has joined #ruby
<jrobeson>
facebook is starting to fork php now..
<coldbeer>
sure - the syntax is older. its obvious people want more out of it, what with facebooks "hack" (<?hh), hiphop, whatever else.
obs has quit [Quit: Konversation terminated!]
<apeiros>
you're misinformed
<apeiros>
php isn't older than ruby
<jrobeson>
it's about the same age
<jrobeson>
within a yearish
abrausch has joined #ruby
<jrobeson>
1995
<coldbeer>
ok - i just look at PHP and thing "if I know C, I can understand this", but with Ruby it is different now.
<jrobeson>
apeiros, he just meant the syntax was older style..
<jrobeson>
algol style
wildroman has quit [Remote host closed the connection]
<Hanmac>
coldbeer: if you know C you can use it for your evil ruby plans and write C-Extensions ,P
<jrobeson>
EVIL PLANS
wildroman has joined #ruby
abrausch has quit [Remote host closed the connection]
<apeiros>
jrobeson: I assumed he meant php was older, hence used older idioms. and that'd be wrong.
<jrobeson>
he said the sytnax is older.. not the language
<coldbeer>
so all of this aside
<coldbeer>
i think PHP has a community that is more welcoming than Ruby.
heidi has joined #ruby
<coldbeer>
as I've been in here many times and gotten "the treatment" every time.
<mikecmpbll>
coldbeer: get out
<apeiros>
lol
<apeiros>
ok
<mikecmpbll>
(jokign)
<mikecmpbll>
s/gn/ng
<coldbeer>
you can all probably tell but im a total n00b to IRc - like 2 weeks now. but just trying to give some feedback to a language that I like and want to adopt.
<jrobeson>
coldbeer, i'd say the ruby community has its share of overly pedantic folks
klaut has quit [Remote host closed the connection]
<coldbeer>
no doubt - every channel does. no fault of #ruby's
<jrobeson>
more than its fair share really
cescalante is now known as ce_afk
deception has quit [Quit: Goodbye]
JaTochNietDan has quit [Ping timeout: 246 seconds]
<coldbeer>
just throwing out my so-far unbiased opinion of what goes on in IRC.
<jrobeson>
coldbeer, i've coded in php for years.. but i can't ever expect help from php irc channels.. it's almost always full of people who are all just as new as everybody else
bricker`LA has joined #ruby
<jrobeson>
so it's useless for anybody experienced
<jrobeson>
ruby feels like the opposite
<mikecmpbll>
^this
<coldbeer>
jrobeson: I can see that for sure. so how is ruby different?
<jrobeson>
perhaps people with TOO much experience
<workmad3>
we're all jaded and cynical in here :(
<coldbeer>
i asked what eigenclass was like 2 weeks ago, no one gave me an answer, everyone made jokes, so i left.
wildroman has quit [Ping timeout: 252 seconds]
<jrobeson>
somebody did answer you i thought
<apeiros>
coldbeer: this got asked today and it got two IMO reasonable answers.
Advocation has joined #ruby
JaTochNietDan has joined #ruby
<likemike>
you are all overqualified and you will be replaced by cheap workforce in India !
<jrobeson>
they answered somebody in the last few years anyways
<apeiros>
I think 1 occurrence doesn't constitute a statistic.
heidi has quit [Ping timeout: 245 seconds]
<jrobeson>
likemike, if htere were more qualified indian developers who use ruby.. perhaps :)
<jrobeson>
yet kids still make a ton of money in california
klaut has joined #ruby
<coldbeer>
some kids know what they are doing.
<coldbeer>
;)
<jrobeson>
not really
<workmad3>
coldbeer: the term 'eigenclass' is one that causes arguments and heated debates even now :(
abstractj has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
<jrobeson>
workmad3 hello!
<workmad3>
coldbeer: and is aggravated by it not being the accepted term
<likemike>
jrobeson: maybe that's because they are not working in corporations lol
* workmad3
hates that the accepted term is 'singleton_class'... but that's what it is, so oh well
* apeiros
thinks the same as workmad3
<jrobeson>
workmad3 == scholar and gentleman
<workmad3>
jrobeson: a.k.a. british :P
<jrobeson>
oh i forgot :(
<workmad3>
;)
<apeiros>
I'd preferred eigenclass. but there's IMO no point in arguing about it.
user258467 has joined #ruby
<coldbeer>
eigenclass seems like the "accepted" for ruby to me
<mikecmpbll>
having no familiarity with the term eigenclass in other languages, i see no advantage of the term.
<jrobeson>
i've never seen singleton_class spoken of.. everybody i've seen says eigenclass
<mikecmpbll>
it's no more descriptive to me :p
<apeiros>
mikecmpbll: do you really want to warm up the debate again? :)
<mikecmpbll>
pls :'D
<jrobeson>
eigenclass is more used in ruby blogposts
<apeiros>
mikecmpbll: it's also wrong. I recommend googling for "ola bini eigenclass"
<mikecmpbll>
nah. i don't care.
<coldbeer>
i dont care what it is called TBH - but I also still don't completely understand what it is so..
<Hanmac>
i think the problem with singleton_class is that others mix them with Singleton Module ...
<workmad3>
hanmac: pretty much
klaut has quit [Remote host closed the connection]
<mikecmpbll>
coldbeer: no one's going to be able to explain it better in IRC than from a blog post
bamdad has joined #ruby
<jrobeson>
coldbeer, well you've grasped the whole classes themselves are objects right?
Advocation has quit [Ping timeout: 246 seconds]
klaut has joined #ruby
<workmad3>
hanmac: and even if there wasn't the Singleton module, people who've read GoF book would still get it confused with a Singleton pattern
* mikecmpbll
goes back to debugging activerecord
jb41 has joined #ruby
<workmad3>
coldbeer: if you don't object to book recommendations, I found 'Metaprogramming Ruby' to be a good source for firming up and filling in knowledge gaps in the ruby object model
Guest59718 has left #ruby ["Leaving"]
<jrobeson>
metaprogramming is so 2000 (or some other fake year) .. i metametaprogram !
<workmad3>
coldbeer: and unfortunately, the place that singleton_classes fit into that is something that needs a certain amount of grounding in order to appreciate
<apeiros>
hm, that only includes my reply… well, the other reply would be around that time too
<workmad3>
apeiros: that's today's log
<apeiros>
coldbeer: the most common use of the singleton_class is in defining class methods.
<jrobeson>
hmm.. i wonder what would happen if you comapred usages of singleton_class vs eigenclass in those logs from all time
<apeiros>
workmad3: yes. I stated that precisely that question has been answered today already :)
<workmad3>
jrobeson: probably a preference for eigenclass
<workmad3>
jrobeson: unfortunately, the method for grabbing it in ruby was introduced as 'singleton_class'
<jrobeson>
yes.. i noticed workmad3 :)
parzo has joined #ruby
<coldbeer>
ok so - eigenclass = singleton_class = (what other names) ?
<jrobeson>
that's it i think?
<apeiros>
metaclass
<workmad3>
^^
<apeiros>
but today it's really singleton_class and other names should no longer be used.
<jrobeson>
aha.. meta programming wiht meta class
<coldbeer>
werd- ok so eigen, singleton, meta.
<workmad3>
coldbeer: the different terms are really only good for language archeology now :)
<jrobeson>
i've found eigenclass most popualr in blog posts from rubyists
<apeiros>
hm, sad, english doesn't seem to have a nice term for "ewiggestrig"
<coldbeer>
workmad3: gotcha - really this should get firmed up in the next ruby versions. this topic will continue to come up in this channel otherwise, I'm sure.
<coldbeer>
is the documentation firm in terminology?
<apeiros>
coldbeer: the other terms have not been used by the language
<apeiros>
so there's nothing to firm up
<jrobeson>
coldbeer, it's singleton_class at least for a yearish :)
justsee has quit [Ping timeout: 240 seconds]
<apeiros>
jrobeson: 5yearish
<apeiros>
since it was introduced with 1.9
<jrobeson>
i just know it wasn't changing in 2.1
<coldbeer>
i see - so really the term is singleton_class.
<jrobeson>
and that's coming out in december?
<coldbeer>
the others are accessories.
Mars` has quit [Remote host closed the connection]
<apeiros>
the others are legacies
Mars` has joined #ruby
<jrobeson>
apeiros, what i meant is not changing from this point forwarrd for at least year
<apeiros>
jrobeson: ok
<jrobeson>
it likely won't ever.. just stating it for coldbeer
jrhe has quit [Quit: jrhe]
<jrobeson>
that it will be part of the standard until some unspecified ruby in the future
camilasan has joined #ruby
<coldbeer>
jrobeson: thats pretty much what i was looking for.
<workmad3>
yeah... there was enough argument about what term to use that tbh any choice was going to cause complaints
<apeiros>
indeed
<jrobeson>
coldbeer, ?
<workmad3>
and I doubt it's ever going to change and re-open the complaints for a new round of term-bashing :)
<jrobeson>
bikeshedding
<workmad3>
jrobeson: and yak-shaving
* workmad3
blanked those two terms initially
* apeiros
off
<jrobeson>
initially when?
jrhe has joined #ruby
<coldbeer>
the correct terminology - i find it hard to believe there are >3 terms for the same concept in any language which are considered all current and valid
<jrobeson>
there is only one.. but people still talk about eigenclass in blog posts
<workmad3>
coldbeer: they aren't all considered current and valid
<jrobeson>
only one is
<jrobeson>
i thought we cleared that up
<coldbeer>
you did
<jrobeson>
oh ok .. you were restating what you didn't know
<jrobeson>
got it
<coldbeer>
:P
peterhu has joined #ruby
obs has joined #ruby
<jrobeson>
but now in fact do :)
RumpledElf has joined #ruby
Mars` has quit [Ping timeout: 256 seconds]
<RumpledElf>
wow, lots of people O_o
beilabs has quit [Ping timeout: 240 seconds]
<coldbeer>
yes - thank you. kind_of? singleton_class returns true, others return NameError, so singleton_class is the term.
<Hanmac>
RumpledElf: we are all bots there ;P
<jrobeson>
it's a botfest
* RumpledElf
smiles and nods
<Hanmac>
coldbeer: on newer ruby you can do: class_object.singleton_class? to know if a class is a singleton class or not
<RumpledElf>
I'm just here because I've heard of this ruby thing, and I have a site I need to rewrite. I'm open to options
gregf_ has left #ruby [#ruby]
Azulinho has quit [Ping timeout: 272 seconds]
<Hanmac>
coldbeer: but there are 3! only three objects where obj.singleton_class.singleton_class? returns false ;P
<Hanmac>
RumpledElf: is it ruby on rails? if yes try in this room #rubyonrails
<coldbeer>
i am curious on why 1.8.7 got flamed so hard when i joined the channel. what kinds of things in code will force a 1.9+ dependency?
obs has quit [Ping timeout: 248 seconds]
klaut has quit [Read error: Connection reset by peer]
<RumpledElf>
hanmac: its php right now, with asp.net ... I'm open to options like I said
<hoelzro>
coldbeer: it's just that 1.8 is way old
<hoelzro>
and it's no longer supported (iirc)
<RumpledElf>
I went to some meetup a few weeks ago where they rewrote a high traffic site in ruby.
klaut has joined #ruby
peterhu has quit [Ping timeout: 248 seconds]
newbiehacker has quit [Read error: Connection reset by peer]
<jrobeson>
coldbeer, everything modern
<jrobeson>
there are a lot of gems that are 1.9+ now
<jrobeson>
rails 4 is such also
einarj has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 272 seconds]
<jrobeson>
and.. a lot of people were holding into 1.8.7 code for compat .. and hating every second of it
<jrobeson>
big sighs of relief were heard across the land
beilabs has joined #ruby
Azulinho has joined #ruby
parzo has quit [Remote host closed the connection]
<Hanmac>
man it would be fun if debian and ubuntu drops ruby1.8 totally from the repository ;P
<RumpledElf>
the closest I get to ruby normally is screaming in horror if compass isn't installed >.>
swordsmanz has quit [Read error: Connection reset by peer]
<coldbeer>
well i understand well and good that newer programs require 1.9+, but I am asking specifically, what features of a program would force it to require 1.9+ ?
lyanchih has quit [Ping timeout: 256 seconds]
<coldbeer>
like if I include library XYZ assuming it is in stdlib, does that make it 1.9.x? etc
lyanchih has joined #ruby
<joshAnderson99>
to install libxml, i'd use install gem install libxml, but using rvm would it be rvm pkg install libxml? (notice there's libxml2, but assume that's a different thing)
<jrobeson>
coldbeer, you can lok up the the changelog and new features
swordsmanz has joined #ruby
h_kon has quit [Remote host closed the connection]
fayimora has joined #ruby
yacks has joined #ruby
<kaspergrubbe>
coldbeer: new features, new syntax, changed method names etc.
<Hanmac>
joshAnderson99: use the gem "nokogiri" its twice that much fun with xml
einarj has joined #ruby
Azulinho has quit [Ping timeout: 260 seconds]
<peterwalker78>
INTERCAL is clearly the best language for all occasions
<joshAnderson99>
i would, but using a script that someone else wrote that required libxml. thanks for the suggestion though, should i have some xml processing to do sometime.
<workmad3>
peterwalker78: nah, Java2k is much superiour
<workmad3>
*superior
mark06 has left #ruby [#ruby]
<workmad3>
coldbeer: 1.9 introduced some new syntax features too
tatsuya_o has joined #ruby
nfk has quit [Ping timeout: 240 seconds]
<peterwalker78>
but does java2k raise exceptions if your code is either impolite or too polite?
<peterwalker78>
I think not!!!
<workmad3>
peterwalker78: no
<workmad3>
peterwalker78: but it does make all your calls probabilistic
<workmad3>
peterwalker78: so your system calls have about a 90% chance of succeeding
<peterwalker78>
okay, that's quite amusing
<peterwalker78>
:)
<workmad3>
(and then goes down from there)
<peterwalker78>
and obviously the best place to store complex data is in flat files
<peterwalker78>
databases are overrated
<peterwalker78>
:D
<workmad3>
peterwalker78: pfft, I store all my data in /dev/null
<workmad3>
peterwalker78: you should see my benchmark speeds!
<peterwalker78>
lol
<coldbeer>
correct me if I am wrong please: but Ruby does not have declared visibility on class or object methods, right?
<workmad3>
coldbeer: you mean public, protected and private?
<workmad3>
coldbeer: they're present
<coldbeer>
declared visibility is like you can access it or you cant.
orien has joined #ruby
<coldbeer>
workmad3: yeah exactly
<workmad3>
coldbeer: you can declare methods as private, protected or public
<coldbeer>
so is it "public" unless otherwise specified?
staafl has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
h_kon has joined #ruby
<jrobeson>
coldbeer, that is one thing that changed between ruby versions right there.. whether they shows as something via respond_to
<peterwalker78>
hmm... I just redirected all my db calls to /dev/null to improve performance as you suggested
<peterwalker78>
I can't find my data now though
<peterwalker78>
:D
<RumpledElf>
peterwalker78: try /dev/random
<workmad3>
^^
<peterwalker78>
lol
leonidlm has joined #ruby
<workmad3>
peterwalker78: your data is in there... somewhere...
<peterwalker78>
I want my data to be lost more consistently than that though
fayimora has quit [Quit: zzzzz...]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
francisfish has quit [Ping timeout: 246 seconds]
<coldbeer>
you heard the man - lose the data every time! not just most times...
<workmad3>
that's difficult when you have true randomness :(
Soda has quit [Remote host closed the connection]
<workmad3>
and I mean, who doesn't link up /dev/random to geiger counters pointed at their coffee?
tintintin has joined #ruby
tintintin has left #ruby ["Leaving"]
Bry8Star{T2 has joined #ruby
zarubin has quit [Ping timeout: 252 seconds]
<coldbeer>
woah 3:16am.
ZhBPi has quit [Ping timeout: 260 seconds]
<coldbeer>
alright everyone. thanks for your opinions, guidance, and other whatnottery. talk to you later.
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
coldbeer has quit [Quit: leaving]
Azulinho has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
ewnd9 has joined #ruby
ce_afk is now known as cescalante
postmodern has quit [Quit: Leaving]
jbpros has quit [Quit: jbpros]
kil0byte_ has joined #ruby
astrobunny has joined #ruby
kil0byte has quit [Ping timeout: 272 seconds]
timonv has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
timonv has joined #ruby
heidi has joined #ruby
lyanchih has quit [Quit: lyanchih]
cescalante is now known as ce_afk
thesheff17 has joined #ruby
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
araujo has joined #ruby
otherj has joined #ruby
heidi has quit [Ping timeout: 245 seconds]
dayepa has quit [Quit: dayepa]
h_kon has quit [Remote host closed the connection]
dayepa has joined #ruby
otherj has quit [Client Quit]
francisfish has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
Guest8342 has joined #ruby
starfox21 has joined #ruby
nari has joined #ruby
<joshAnderson99>
anyone know why this line.delete!("#&") gives "invalid byte sequence in UTF-8"?
petey has quit [Ping timeout: 240 seconds]
peterhu has joined #ruby
<apeiros>
because your receiver is a string which claims to be utf-8 but isn't.
<apeiros>
(or rather, which you told ruby it was utf-8, but isn't)
<joshAnderson99>
ah, it's the receiver.. but following error msg says (ArgumentError)
Fredericks has quit [Read error: Connection reset by peer]
<apeiros>
yeah, they should probably introduce ReceiverError :)
<joshAnderson99>
but what you say is the only explanation really
<joshAnderson99>
ah huh.. good to know. thanks
<apeiros>
it's a bit crude, but you can consider `self` to be a permanent argument to all methods.
narcan has joined #ruby
<apeiros>
and yes, I agree, the error doesn't make itself very clear
<joshAnderson99>
in ruby i'm sure there would be quite a few possibilities. with the strong sense of message sending it adopts. but rather new to ruby at the moment, so i'll just tend to agree for the moment, but it seems reasonably. i doubt absence of refined error class is due to laziness.
<joshAnderson99>
*reasonable
kaspergrubbe has joined #ruby
<joshAnderson99>
i think you're right.. that brings some sense to the error msg.
orien has quit [Quit: Computer has gone to sleep.]
<shevy>
hanmac this is so insane
Mars` has joined #ruby
<shevy>
hanmac I grew up to Tom and Jerry. now that is what I call "normal" ... a cartoon with a tree making love to a woman is just insanity
pothibo has joined #ruby
<shevy>
joshAnderson99 the encoding kills me all the time. even when I set "# Encoding: ASCII-8BIT" it's not enough when I read in external data as it wants to default to utf-8, then it complains about my german umlauts
<joshAnderson99>
just added this: line = line.encode!('UTF-8'), but still the same error msg.
mephux has quit [Ping timeout: 246 seconds]
orien has joined #ruby
<shevy>
wait
<shevy>
that line seems odd
dangerousdave has quit [Quit: Leaving...]
<apeiros>
joshAnderson99: according to your error, the string already is marked to be utf-8
<apeiros>
your steps to resolve this are: a) figure out what encoding your data source uses, b) open the source with that encoding, c) transcode it to utf-8 and operate normally on it
nfk has joined #ruby
Azulinho has quit [Ping timeout: 256 seconds]
dangerousdave has joined #ruby
<joshAnderson99>
just got to check something. i believe there was reliance on inconv.. to convert to utf8, which i replaced with encode. perhaps for libxml.
mephux has joined #ruby
lyanchih has joined #ruby
Mars` has quit [Ping timeout: 245 seconds]
machuga|away is now known as machuga
<joshAnderson99>
otherwise, it might be better left out, if it's causing that error msg before.
<joshAnderson99>
at least using ruby 2.0, in which handling of text encoding would probably have improved over earlier versions.
<apeiros>
open + transcode can be done in 1 step: encoding: 'source-encoding:utf-8'
<joshAnderson99>
some optimism then that there may be a way through this character confusion.
<apeiros>
joshAnderson99: no, as of ruby 1.9, you have no reliance on iconv.
<apeiros>
unless you explicitly choose to do so
heftig has quit [Ping timeout: 245 seconds]
<joshAnderson99>
there was use of that.. as in line = Iconv::iconv('utf-8', 'cp1251',line).to_s #convert to utf-8
<apeiros>
that'd be explicitly using iconv, yes :)
<joshAnderson99>
presumably the author of the script did that because of libxml
postmodern has joined #ruby
dEPz has quit [Remote host closed the connection]
<apeiros>
you're working on an existing script?
<joshAnderson99>
if i leave the encoding to utf8 out, would expect libxml to complain. i might try.
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<shevy>
require 'iconv'
kracekumar has quit [Quit: Computer has gone to sleep.]
Guest27553 is now known as lemonsparrow
<shevy>
kernel_require.rb:55:in `require': iconv will be deprecated in the future, use String#encode instead.
<shevy>
:(
ereslibre has quit [Remote host closed the connection]
<joshAnderson99>
yeah, but if it's too hairy, i might replace the libxml code with... another library. someone mentioned before. n... something.
timonv has quit [Read error: Connection reset by peer]
<apeiros>
shevy: so when you finally made the jump from 1.8, you only went to 1.9? :)
<apeiros>
nokogiri
<joshAnderson99>
ya.. but i'd prefer to use existing script first if can get around the encoding problem.
timonv has joined #ruby
<apeiros>
yes, nokogiri is generally accepted as better than libxml/rexml (note that it too uses the libxml C library underneath)
<shevy>
apeiros, yup, my yaml files do not work with psych, I am using syck with 1.9. I need to figure out what to do with my yaml files first before I can switch to 2.x, else all my system configuration is unusable
<joshAnderson99>
inconv isn't supported any longer in 2.0, so that's why i've used encode instead.
<shevy>
but it's the last remaining problem for me :D
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
Azulinho has joined #ruby
<apeiros>
shevy: read them with syck, write the back with psych. You can use YAML::ENGINE.yamler = 'syck' / 'psych' to switch yaml engines.
fayimora has joined #ruby
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
swordsmanz has quit [Ping timeout: 252 seconds]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
wildroman has joined #ruby
aagdbl has joined #ruby
francisfish has quit [Ping timeout: 245 seconds]
Domon has quit [Remote host closed the connection]
Hanmac has quit [Quit: Leaving.]
evelyette has joined #ruby
apeiros has quit [Remote host closed the connection]
<evelyette>
hi, I'm printing the following with puts command: "Test #{self.mystring}", where the mystring is generated by the user: can a user supply such an input string to break out of the puts string and inject arbitrary command ?
kaspergrubbe has quit [Remote host closed the connection]
apeiros has joined #ruby
kaspergr_ has joined #ruby
kilophoton has joined #ruby
eka has joined #ruby
thesheff17 has quit [Ping timeout: 272 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
khushildep has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
kilophoton has quit [Ping timeout: 248 seconds]
Guest8342 has quit [Ping timeout: 246 seconds]
obs has joined #ruby
Azulinho has quit [Read error: Connection reset by peer]
ce_afk is now known as cescalante
fayimora has quit [Quit: zzzzz...]
astrobunny has joined #ruby
bamdad has joined #ruby
peterhu has quit [Ping timeout: 272 seconds]
robertjpayne has joined #ruby
AlSquire has joined #ruby
<robertjpayne>
Is there an easy way in a subclass to mark methods as protected that otherwise would be public?
horofox has joined #ruby
<apeiros>
protected :foo
<robertjpayne>
perfec ttanks!
<robertjpayne>
can you do more than 1? :)
<apeiros>
sure. also it's a plain method call, so it's documented in Module's API
mercwithamouth has quit [Ping timeout: 246 seconds]
<robertjpayne>
apeiros: yea just saw that whoops.
<apeiros>
np, just telling :)
Elhu has quit [Quit: Computer has gone to sleep.]
tessi has joined #ruby
Azulinho has joined #ruby
svector has joined #ruby
heidi has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
cescalante is now known as ce_afk
beilabs has quit [Ping timeout: 240 seconds]
aryaching has quit []
drumsrgr8forn8 has joined #ruby
heidi has quit [Ping timeout: 272 seconds]
camilasan has quit [Ping timeout: 246 seconds]
beilabs has joined #ruby
leonidlm has quit [Read error: Operation timed out]
fayimora has joined #ruby
fayimora has quit [Client Quit]
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
camilasan has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
ewnd9 has quit [Ping timeout: 252 seconds]
AndChat| has joined #ruby
wildroman has quit [Remote host closed the connection]
Hanmac has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
DonRichie has joined #ruby
wildroman has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
obs has joined #ruby
lkba has quit [Ping timeout: 253 seconds]
diego1 has joined #ruby
obs has quit [Remote host closed the connection]
kraljev has joined #ruby
diego1 is now known as diegoviola
astrobunny has joined #ruby
obs has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
Hanmac has quit [Read error: Operation timed out]
filipe has quit [Remote host closed the connection]
it_tard has joined #ruby
<kraljev>
May I ask
<kraljev>
Why is String#index
<kraljev>
sory
<kraljev>
String#insert
<kraljev>
not with exclamation mark
<kraljev>
since it's desctructive
<kraljev>
And it's not the lonely example
<apeiros>
it's not a requirement for in-place methods to have a bang
buibex has quit [Remote host closed the connection]
<apeiros>
! just means "be careful", and it's most often present when copy-returning and in-place methods are paired
buibex has joined #ruby
relix has joined #ruby
marcgg_ has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
buibex has quit [Read error: Connection reset by peer]
buibex has joined #ruby
<kraljev>
And how is this principle called?
leonidlm has joined #ruby
<kraljev>
KISS or the principle of least surprise?
<kraljev>
ok, any reason insert doesn't return new string instance
renanoronfle has quit [Ping timeout: 240 seconds]
<kraljev>
since there is not benefit on modifying in place, both cases O(n)
mklappstuhl has joined #ruby
<kraljev>
...? these are the inconsistencies that should get settled in ruby 3.0
RumpledElf has left #ruby [#ruby]
<tobiasvl>
why is it an inconsistency?
bamdad has quit [Quit: bamdad]
<workmad3>
kraljev: insert is inserting one string into another... not creating a third string
blackmes1 has joined #ruby
<tobiasvl>
String#insert has the string as the receiver, it makes sense that the method modifies its receiver, doesn't it?
<kraljev>
tobiasvl, gsub also has string s receiver
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
<kraljev>
or replace
kofno has quit [Read error: Operation timed out]
yalue has joined #ruby
fayimora has joined #ruby
larissa has joined #ruby
horofox has quit [Quit: Leaving.]
<apeiros>
personally I'd have preferred if ruby had adopted clear semantics.
<kraljev>
Documentation bug: #initialize_copy is listed on the left, but without any description
<kraljev>
but hanmac, I don't see how such a simple method as take while could benefit from knowing array structure....
gwb3 has quit [Quit: leaving]
gwb3 has joined #ruby
heidi has quit [Ping timeout: 248 seconds]
<Hanmac>
kraljev .. on Enumerable#take_while it needs to collect the items and then build an new array … on Array#take_while it can use the index and create an SubArray
newbiehacker has joined #ruby
xk_id has joined #ruby
<Hanmac>
ok that might not be 100% true but that how i would do it
boxmein has joined #ruby
boxmein_ has joined #ruby
boxmein has quit [Client Quit]
boxmein_ has quit [Client Quit]
<kraljev>
guess we should benchmark really how much it benefits
<kraljev>
but it certainly doesn't in terms of computational complexity, the thing that matters most
<habstinat>
New to Ruby and trying to get <https://github.com/alecgorge/edline-api> to work for me. Running Debian oldstable. I have all the dependencies in deps.txt, but when I try to do "./start", I get this error: <http://sprunge.us/MVPM> What can I do to debug / fix this?
<MrZYX>
fenec2: a do while loop is handy in such situations, in ruby you can write one with begin; body; end while condition
shaunbak_ has quit [Remote host closed the connection]
petey has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
mj12albert has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
schaerli has joined #ruby
valesk has joined #ruby
mahlon_ is now known as mahlon
mj12albert has quit [Max SendQ exceeded]
newbiehacker has quit [Ping timeout: 240 seconds]
<hoelzro>
if an exception occurs
<hoelzro>
it will infinite loop
<hoelzro>
since cmd will never change
iamjarvo has joined #ruby
apeiros has joined #ruby
Xeago has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
schaerli has quit [Remote host closed the connection]
bean__ has quit [Quit: Computer has gone to sleep.]
pnbeast has joined #ruby
atmosx has quit [Remote host closed the connection]
atmosx has joined #ruby
soheil has joined #ruby
<nhmood>
If I am storing a portion of an array to a new var (new_var = old_array[5..-1]) does it return those values or does it just store a reference to the original array
timonv has quit [Remote host closed the connection]
Kar- has quit [Ping timeout: 240 seconds]
<nhmood>
aka, if I perform some operations on the new array, does it affect the original array?
kyle__ has quit [Ping timeout: 248 seconds]
<canton7>
try it and see!
mj12albert has joined #ruby
<apeiros>
nhmood: it returns a new array.
<nhmood>
hmmm ok, I would imagine it would but the behavior I'm seeing is different
<apeiros>
nhmood: implementation detail: under the hood, MRI (other runtimes may be different) only really copies the VALUEs when one of the two arrays changes (Copy-On-Write -> COW)
<nhmood>
I just wanted to make sure it wasn't some array behavior I wasn't aware of
<apeiros>
nhmood: a new array does not mean it makes a deep copy, mind you.
<apeiros>
the objects *in* the array are still the same.
<canton7>
pastie a reproducible example?
<volty>
>> a = (1..9).to_a; b = a[5..-1]; [a.__id__, b.__id__] # whenever doubts if reference
monkegjinni has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 272 seconds]
<canton7>
habstinat, what version of thin are you using?
<havenwood>
apeiros: the 'bounty' is at $30 >.>
<apeiros>
lol
<apeiros>
and somebody say *nix users were cheap…
monkegjinni has joined #ruby
a1ph4g33k has joined #ruby
<canton7>
$45 now...
maletor has joined #ruby
vborja has joined #ruby
uokesita_ has joined #ruby
blackmesa has joined #ruby
RichardBaker has joined #ruby
einarj has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
<canton7>
habanany, ...?
priyam__ is now known as priyam_
monkegjinni has quit [Ping timeout: 240 seconds]
maycon has quit [Quit: Saindo]
superscott[8] has joined #ruby
r0bgleeson has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
dangerousdave has joined #ruby
mobileblue has quit [Read error: Connection reset by peer]
<habstinat>
canton7: OK, that just happened to be the version packaged by my distro but I can backport 2.0. I'm using thin 1.2.4.
<Trudko>
hi guys I am array of objects with attribute points I user sort by this attribute but this attribute can be nil how to handle that? code @league_teams.sort_by! {|t| [-t.total_points_with_bonus, -t.score] }
atno has quit [Remote host closed the connection]
ferdev has joined #ruby
<fenec2>
hoelzro, thanks it was very helpful
s2013 has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
vince_prignano has quit []
zeade has joined #ruby
<canton7>
habstinat, sounds old. 'gem update'
<canton7>
assuming gem is managing your system gems. if debian is managing them, fsg help us all
nathancahill has joined #ruby
Ox6abe has quit [Remote host closed the connection]
<apeiros>
*sob*, I think keyword args weren't well thought through when introduced :-/
arietis has quit [Quit: Computer has gone to sleep.]
<apeiros>
I'd bring that up in the ML
<apeiros>
@ bricker
<habstinat>
canton7: I was previously using debian to manage my gems, but I've now installed rubygems and am doing a gem update now.
astrobun_ has quit [Ping timeout: 240 seconds]
tjbarber has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
rektide has joined #ruby
<bricker>
apeiros: thanks
<Hanmac>
bricker use **params
<rektide>
hi. i'm trying to install and use a ruby gem locally. i'm not sure what additional steps I need besides specifying a GEM_HOME, which I've done. example attempt: http://pastebin.com/3TSjwcum
uokesita_ has joined #ruby
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
vborja has left #ruby [#ruby]
astrobunny has joined #ruby
Kar- has joined #ruby
ique has quit [Ping timeout: 265 seconds]
adkron has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mando has quit [Remote host closed the connection]
mando has joined #ruby
krz has quit [Quit: krz]
<rektide>
ah the -i is bad now that i have a GEM_HOME. i think.
djbender has quit [Quit: djbender]
<shevy>
rektide did you install sass
<rektide>
the -i was a previous attempt at local gem installs
<shevy>
or rather, where is it :D
<rektide>
shevy: i would really appreciate it if you would check out the pastebin i put up and tell me
<rektide>
shevy: my guess is yes but i dunno
ique has joined #ruby
vpretzel has joined #ruby
<rektide>
there somes to be some dissention in the runtime over that question
zachrab has quit [Ping timeout: 240 seconds]
T_T has joined #ruby
boxmein has joined #ruby
interactionjaxsn has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
r0bby_ has quit [Read error: Connection reset by peer]
<shevy>
I see output but I would not trust the output alone
vpretzel has quit [Remote host closed the connection]
mando has quit [Ping timeout: 265 seconds]
<shevy>
"gem list"
vpretzel has joined #ruby
<shevy>
my gems are in /Programs/Ruby/Current/lib/ruby/gems/1.9.1/gems/, there are 87 gems there, all are found by ruby gems. gem version is 2.1.7, ruby version is 1.9.3something
robbyoconnor has joined #ruby
<canton7>
habstinat, coolies
<rektide>
oh good question. i've updated the pastebin to ls * the results, showing the contents: http://pastebin.com/5HHS7Sfm
<shevy>
waxjar I am not sure what to do with that... what is pattern matching used for? I mean, the way you did there, it seems complex
<shevy>
rektide when you run "gem env", does the path /opt/ghost-git/gems show up?
<shevy>
under GEM PATHS it should be shown
<rektide>
yes it's in my GEM_PATHS
Mars` has quit [Ping timeout: 272 seconds]
terrellt has quit [Ping timeout: 264 seconds]
<waxjar>
shevy, it's basically a way to have different behaviour depending on the arguments that are passed to a method
blackmesa has quit [Ping timeout: 240 seconds]
rgbdev has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Kar- has quit [Remote host closed the connection]
bean__ has joined #ruby
elaptics is now known as elaptics`away
marcdel has joined #ruby
T_T has quit [Read error: Connection reset by peer]
T_T has joined #ruby
mikeric has joined #ruby
jerius has quit []
kevinykchan has quit [Ping timeout: 240 seconds]
mercwith1mouth has joined #ruby
byprdct has joined #ruby
uokesita_ has quit [Quit: Leaving]
kevinykchan has joined #ruby
SilverKey has quit [Quit: Sleep now]
CreativeEmbassy has joined #ruby
fayimora has quit [Quit: zzzzz...]
Monie has joined #ruby
petey has quit [Remote host closed the connection]
someish has quit [Quit: someish]
petey has joined #ruby
mando has joined #ruby
buibex has joined #ruby
timonv has joined #ruby
blackmesa has joined #ruby
zarubin has quit [Ping timeout: 256 seconds]
pen has joined #ruby
Notte has joined #ruby
buibex has quit [Remote host closed the connection]
<shevy>
all those strange things from the months before
<shevy>
I can not even visually remember it :(
thesheff17 has quit [Quit: Leaving]
<shevy>
when I was young, an elderly lady had a huge collection of Walt Disney movies. so I was formed by these things
byprdct has quit [Read error: Connection reset by peer]
<pushpak>
did u steal het collections by any chance ?
teapop_ has quit [Read error: Connection reset by peer]
<pushpak>
sher*
aspires has joined #ruby
thesheff17 has joined #ruby
<Hanmac>
did you know there is a "Lord of the Rings" cartoon Movie? …
atSetKey has joined #ruby
pencilcheck has joined #ruby
teapop_ has joined #ruby
nwertman_ has quit [Quit: Lost terminal]
<pushpak>
nope but i do know there is "The Hobbit" porn movies
pen has quit [Read error: Connection reset by peer]
nwertman_ has joined #ruby
<Hanmac>
there is a cartoon movie … but i think its older than i ;D
teapop has quit [Ping timeout: 240 seconds]
CreativeEmbassy has joined #ruby
<terrellt>
Came out in 1978.
pen has joined #ruby
zigomir has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
jibi has joined #ruby
BizarreCake has quit [Ping timeout: 245 seconds]
relix has joined #ruby
<Hanmac>
yeah i was right … its 10j older than i
relix has quit [Max SendQ exceeded]
rickmasta has joined #ruby
mogle has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Ox6abe has quit [Remote host closed the connection]
Ox6abe has joined #ruby
adkron has quit [Ping timeout: 268 seconds]
atSetKey has quit [Ping timeout: 264 seconds]
pencilcheck has quit [Ping timeout: 272 seconds]
weSpe is now known as Wasp
nwertman has quit [Quit: leaving]
wildroman has quit [Remote host closed the connection]
nwertman_ has quit [Quit: leaving]
nwertman has joined #ruby
relix has joined #ruby
nomenkun has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
<shevy>
pushpak I hate the hobbits so much, when they jumped on the bed, I wanted to murder them all
<shevy>
hanmac hmm I think so... the old one was actually better than the new ones :D
tomzx_mac_ has joined #ruby
<shevy>
today movies technology and philosophy is ... create a generic template for an "orc" or a "troll", clone this 100.000 with CGI effects, call this an "epic battle". Profit!!!
zastern_ has joined #ruby
tomzx_mac has quit [Ping timeout: 260 seconds]
Davey has joined #ruby
SHyx0rmZ has joined #ruby
Azulinho_ has joined #ruby
<Hanmac>
hm i want to watch some kind of action film what "really" suprise me … in most of them you know already what will happen
tsykoduk is now known as zz_tsykoduk
<shevy>
because the target audience must be kept dumb
Eaven has joined #ruby
zarubin has joined #ruby
Azulinho has quit [Ping timeout: 240 seconds]
wildroman has joined #ruby
<Hanmac>
shevy: yeah like in ExcelSaga … where the main char dies after 5 minutes of the first episode … and then was revited with the words "Excel you cant die! you are important for the Plot!"
zastern has quit [Ping timeout: 272 seconds]
DanKnox is now known as DanKnox_away
zastern_ has quit [Ping timeout: 268 seconds]
djbender has joined #ruby
wudofyr has quit [Ping timeout: 272 seconds]
Beoran has quit [Read error: Operation timed out]
pirelenito has joined #ruby
xk_id has quit [Quit:
tvw has joined #ruby
Beoran has joined #ruby
pumper has quit [Remote host closed the connection]
habanany has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
aspiers has joined #ruby
schaerli has joined #ruby
heidi has quit [Quit: Leaving.]
heidi has joined #ruby
brunoro has joined #ruby
heidi has quit [Client Quit]
pirelenito has quit [Client Quit]
adkron has joined #ruby
mogle has quit [Remote host closed the connection]
adkron has left #ruby [#ruby]
rickmasta has quit [Quit: Leaving...]
RichardBaker has joined #ruby
fayimora has joined #ruby
scottstamp has quit [Quit: Au revoir!]
scottstamp has joined #ruby
scottstamp has quit [Client Quit]
scottstamp has joined #ruby
NinjaPenguin has quit [Ping timeout: 272 seconds]
scottstamp has quit [Read error: Connection reset by peer]
scottstamp has joined #ruby
heidi has joined #ruby
djbender has quit [Quit: djbender]
marcdel has joined #ruby
loj has joined #ruby
loj has left #ruby [#ruby]
djbender has joined #ruby
kindjal has joined #ruby
simplex_ has quit [Quit: simplex_]
rickmasta has joined #ruby
nathancahill has quit [Quit: nathancahill]
wudofyr has joined #ruby
Mitchell_ has joined #ruby
Mitchellvanw has quit [Ping timeout: 240 seconds]
Ox6abe has joined #ruby
jrhe has quit [Quit: jrhe]
Mitchell_ is now known as Mitchellvanw
someish has quit [Quit: someish]
jlebrech has joined #ruby
teapop_ has quit [Remote host closed the connection]
colonolGron has quit [Ping timeout: 240 seconds]
teapop has joined #ruby
jrhe has joined #ruby
tpayne84 has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ph88 has joined #ruby
colonolGron has joined #ruby
<ph88>
hi i installed heroku with ruby and foreman ... when i try to run foreman i get Bad file descriptor how can i reinstall foreman ?
<ph88>
Remove executables: foreman in addition to the gem? [Yn] what should i answer here ?
<havenwood>
yes
<ph88>
Successfully uninstalled foreman-0.63.0
<havenwood>
yeah, i mispelled >.>
scottstamp has quit [Read error: Connection reset by peer]
<ph88>
oh this version doesnt work
scottstamp has joined #ruby
<ph88>
how can i try 0.61 ?
<havenwood>
gem install foreman -v 0.61
<ph88>
works now ! (that means ... different error)
nyuszika7h has left #ruby ["WeeChat 0.4.3-dev"]
<havenwood>
ph88: Do you have a file called `Gemfile` in the project root directory?
<ph88>
no
<havenwood>
ph88: ahh, kk. A Gemfile is typical, then you run `bundle` instead of manually resolving dependencies
<ph88>
oh ok i didnt know that
* Hanmac
can live without Gemfile
zz_tsykoduk is now known as tsykoduk
Xeago has joined #ruby
<ph88>
it's a node.js app and i downloaded the heroku toolbelt
ferdev has joined #ruby
michael_mbp is now known as zz_michael_mbp
Zolo has quit [Ping timeout: 272 seconds]
<ph88>
that's so crazy, i now have python2.7, python 3.3 , php 5.5.4, ruby and node.js installed -___-
Soda has joined #ruby
<ph88>
21:45:40 web.1 | exited with code 3 21:45:40 system | sending SIGKILL to all processes what should i do about this ? is this ruby/foreman or node.js stuff ?
leonidlm has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
robustus has quit [Read error: Connection reset by peer]
heidi has quit [Quit: Leaving.]
Soda has quit [Read error: Operation timed out]
mark_locklear has quit [Ping timeout: 245 seconds]
<havenwood>
ph88: i blame node, dunno :P
brennanMKE has joined #ruby
<ph88>
ok thx a lot havenwood !
decoponio has quit [Quit: Leaving...]
Soda has joined #ruby
djbender has quit [Quit: djbender]
maycon has joined #ruby
xk_id has joined #ruby
valesk has quit [Quit: Leaving]
robustus has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
burlyscudd1 has joined #ruby
Ox6abe_ has joined #ruby
Speed has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zastern has joined #ruby
inimit has joined #ruby
skaflem has quit [Quit: Leaving]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
benweint has joined #ruby
Ox6abe has quit [Ping timeout: 268 seconds]
barratt has joined #ruby
barratt has quit [Remote host closed the connection]
djbender has joined #ruby
deception has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
rubyracer has joined #ruby
benweint has quit [Client Quit]
adlerdias has quit [Quit: Leaving]
astrobunny has quit [Ping timeout: 240 seconds]
newton has quit [Changing host]
newton has joined #ruby
zastern has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
petey has joined #ruby
ghr has joined #ruby
heidi has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
Jdubs has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<random0munky_>
@bean__ For stock code, do you mean that I didn't alter anything after I did rvm install 1.9.3 and bundle install
<bean__>
yes
<random0munky_>
No I didn't alter anything
tgandrews has quit [Remote host closed the connection]
<random0munky_>
I have also tried doing an rvm reinstall 1.9.3 but nothing changed
Lewix has joined #ruby
Lewix has quit [Changing host]
Ox6abe_ has quit [Remote host closed the connection]
Lewix has joined #ruby
Ox6abe has joined #ruby
<bean__>
random0munky_: I'm likely going to be of no help then.
v0n has joined #ruby
<random0munky_>
No worries. Thanks for trying to help though. Do you happen to know anyone in the chat room or any forum / place I can re-post the question to see about getting this resolved?
<bean__>
I'd probably contact the author of the code.
<random0munky_>
Ah okay. It's interesting that other people are able to get it to run.
claymore has quit [Quit: night]
<random0munky_>
As well as the author
zachrab_ has joined #ruby
mikeric has quit []
workmad3 has joined #ruby
Jdubs has joined #ruby
cody-- has joined #ruby
maz-dev has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
Ox6abe_ has joined #ruby
<bean__>
they probably did something different
<bean__>
not sure
<bean__>
so, random0munky_, you say its line 28… but line 28 is just response = request.get
<bean__>
line 30 is where it calls .update
Mars` has quit [Remote host closed the connection]
<random0munky_>
Hmm that is interesting. When I do a foreman start it says line 28. Let me double check that the version of the code is the same as it is that I linked
Mars` has joined #ruby
Hanmac has joined #ruby
<RubyPanther>
random0munky_: I do see in the error the class is MetricCacheInfo but the update method I see is on class Metric
Ox6abe has quit [Ping timeout: 272 seconds]
alekst has joined #ruby
braoru has joined #ruby
petey_ has quit [Remote host closed the connection]
Ox6abe_ has quit [Remote host closed the connection]
<random0munky_>
Yea it looks like my metrics.rb is totally different
<random0munky_>
this is how my version looks:: def self.update u = URI.parse(ENV['GRAPHITE_URL']) if (!ENV['GRAPHITE_USER'].empty? && !ENV['GRAPHITE_PASS'].empty?) u.user = ENV['GRAPHITE_USER'] u.password = ENV['GRAPHITE_PASS'] end response = RestClient.get("#{u.to_s}/metrics/index.json") @@paths = JSON.parse(response) MetricCacheInfo.update end end class MetricCacheInfo < Sequel::Model def update sup
Mars` has quit [Read error: Connection reset by peer]
<random0munky_>
darn not able to paste in code
xk_id has joined #ruby
petey has quit [Read error: Connection reset by peer]
petey has joined #ruby
johnnyfuchs has joined #ruby
<RubyPanther>
and in general looking at this package... yikes! in a model, it reopens NilClass to add an empty method_missing. I would say the code is a WTF and not to use it.
<random0munky_>
haha interesting how I've read that this author outputs good 'solid' code
thumpba has quit [Quit: thumpba]
<apeiros>
RubyPanther: oh wow, seriously, wtf…
baroquebobcat has quit [Quit: baroquebobcat]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
phantasm66 has quit [Quit: *sleeeep….]
<apeiros>
that's indeed awful
<RubyPanther>
I'm sure all of his code that isn't iffy is very solid. Perhaps this package does not meet his usual standards...
<apeiros>
lets hope so…
jprovazn has quit [Quit: Odcházím]
maletor has quit [Quit: Computer has gone to sleep.]
<random0munky_>
Well.. he did mention that this frontend isn't even in alpha stage but still, you would think that he would write solid code from the beginning
<apeiros>
he does the NilClass monkey patch in every file in this package, though
Hanmac has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
zz_michael_mbp is now known as michael_mbp
Bry8Star{T2 has joined #ruby
<apeiros>
also defining empty superclasses instead of just requiring it? o0
<RubyPanther>
it seems like by the 2nd or 3rd one, you'd just add an init somewhere
vpretzel has quit [Remote host closed the connection]
<RubyPanther>
I'm guessing he did it this way to avoid coupling
<apeiros>
directly accessing env vars in the middle of the library is also rather icky
beneggett has joined #ruby
kaspergrubbe has joined #ruby
DeanH has joined #ruby
ferdev has quit [Quit: ferdev]
sambao21 has quit [Quit: Computer has gone to sleep.]
bradleyprice has joined #ruby
<apeiros>
well, `class Sequel::Model` is quite specific. I don't see how `require 'sequel/model'` could increase coupling
IceyEC has left #ruby [#ruby]
<apeiros>
unless sequel/model is itself written in an icky way which requires load order or some other mess.
bradleyprice has quit [Remote host closed the connection]
<apeiros>
ah well…
bradleyprice has joined #ruby
* apeiros
goes back to writing shitty C code (shitty not because of C but because I'm still a n00b at it…)
IceyEC has joined #ruby
Notte has quit [Remote host closed the connection]
<random0munky_>
=)
<workmad3>
apeiros: mmm, buffer overflows
<apeiros>
workmad3: strlcat to the rescue!
* RubyPanther
goes back to leaning on his C libraries so he doesn't need to learn C
deception has quit [Quit: Goodbye]
Mitchellvanw has joined #ruby
<a1ph4g33k>
bean__, There is no class method "update" on Sequel::Model
wildroman has quit [Remote host closed the connection]
<random0munky_>
a1ph4g33k: oh?
<bean__>
yar
<a1ph4g33k>
There is an instance method ... not a class method
<random0munky_>
Ah no worries I got it. To be honest, I don't know how to write a lick of ruby. Just have experience with python and bash
kaldrenon has quit [Remote host closed the connection]
IceyEC has quit [Quit: IceyEC]
<a1ph4g33k>
so ... normally, you will have your controller do a find on the instance you want to work with ... and then you will call update on that instance.
kaldrenon has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
<a1ph4g33k>
A global function doesn't make sense in this context.
<a1ph4g33k>
... but no worries.
<a1ph4g33k>
just letting you know why your code ( on line #30 ) is breaking.
<random0munky_>
Ah thanks. I'm posting an issue to the author on github about this issue
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gyzmodo has quit []
<random0munky_>
Would it be okay to copy some of the chat history here with your username?
<random0munky_>
Just asking for your consent
forced_request has joined #ruby
<a1ph4g33k>
So ... again... something like MetricCacheStatus.find( ... ).update( ... ) would work.
<a1ph4g33k>
Fine with me.
<random0munky_>
Cool
sambao21 has joined #ruby
<a1ph4g33k>
now, if you only have 1 record in that table ... you could also just do: MetricCacheState.first.update( ... )
clov3r has quit [Remote host closed the connection]
kaldrenon has quit [Ping timeout: 245 seconds]
clov3r has joined #ruby
braoru has quit [Ping timeout: 246 seconds]
<random0munky_>
Ah
yourmysin has quit [Ping timeout: 265 seconds]
jibi has joined #ruby
boxmein has quit [Ping timeout: 268 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
simplex_ has quit [Quit: simplex_]
mixel has joined #ruby
momomomomo has joined #ruby
zachrab_ has quit [Read error: Connection reset by peer]
<random0munky_>
a1ph4g33k: Thanks for your help as well as bean__ too.
zachrab has joined #ruby
<bean__>
np
<bean__>
sorry i was less than helpful
<a1ph4g33k>
glad to help
<random0munky_>
No worries at all. I have no idea wth I'm doing. Just bashing keys on ze keyboard
Elhu has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
clov3r has quit [Ping timeout: 246 seconds]
kpshek has quit []
sambao21 has joined #ruby
zigomir has quit [Ping timeout: 260 seconds]
NicolasTarzia has joined #ruby
thumpba has joined #ruby
petey has quit [Remote host closed the connection]
lfox has joined #ruby
petey has joined #ruby
maz-dev has joined #ruby
petey has quit [Read error: Connection reset by peer]
ravster has joined #ruby
petey has joined #ruby
alex__c2022 has joined #ruby
superscott[8] has quit [Quit: superscott[8]]
<random0munky_>
Whelp, I'm going to close this window. Thanks again a1ph4g33k and beans. If I need some more resolutions over "solid" code, I'll come back
<random0munky_>
=)
kirun has quit [Quit: Client exiting]
roadt_ has quit [Ping timeout: 272 seconds]
kindjal has quit [Ping timeout: 268 seconds]
random0munky_ has quit [Quit: Page closed]
braoru has joined #ruby
jonathanwallace has quit [Read error: Operation timed out]
Hanmac has joined #ruby
ndrei has joined #ruby
braoru has quit [Read error: Connection reset by peer]
ph88 has quit [Quit: Page closed]
|PiP|_ has quit [Ping timeout: 240 seconds]
kindjal has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
cody-- has quit [Quit: derp]
jaylingo has joined #ruby
nomenkun has quit [Remote host closed the connection]
<SloggerKhan>
if I have class A with def self.x and class B < A with def self.x, and a method def y in class A, how can I be sure that if called from B it refers to B's version of self.x instead of a's (inside of def y)?
larissa has joined #ruby
<RubyPanther>
SloggerKhan: you shouldn't
brennanMKE has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
brennanMKE has joined #ruby
<SloggerKhan>
So it's not like I wanted to end up in that situation.
brennanMKE has quit [Read error: Connection reset by peer]
ssmithstone has joined #ruby
ace_striker has joined #ruby
brennanMKE has joined #ruby
jbpros has joined #ruby
aspiers has quit [Ping timeout: 246 seconds]
|PiP|_ has quit [Ping timeout: 264 seconds]
<MrZYX>
self.class.x
<RubyPanther>
in the debugging situation I just add a puts to find out if I got where I wanted to go. But usually that sort question is where somebody wants to know about how the package using the code is using it, in which case the problem is in the caring about it
<SloggerKhan>
Big thanks! I agree that it's a messed up structure.
Elhu has quit [Quit: Computer has gone to sleep.]
thumpba has quit [Quit: thumpba]
<SloggerKhan>
Alternatives seem likely to have a disproportionate time investment at the moment.
catcher_dev has joined #ruby
justsee has quit [Quit: leaving]
fayimora has quit [Ping timeout: 265 seconds]
Taranis has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
fayimora has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
stefff has quit [Read error: Operation timed out]
Hanmac has quit [Ping timeout: 245 seconds]
petey has quit [Remote host closed the connection]
petey has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
stefff has joined #ruby
MrZYX is now known as MrZYX|off
clov3r has joined #ruby
ace_striker has quit [Ping timeout: 250 seconds]
catcher_dev has quit [Quit: Leaving]
mmitchel_ has joined #ruby
glaksmono has joined #ruby
<glaksmono>
ruby is by default pass by reference for object?
petey_ has joined #ruby
<Lewix>
glaksmono: not numbers
<glaksmono>
Lewix: got it
petey has quit [Read error: Connection reset by peer]
<RubyPanther>
or resets it as nil if it is already nil. But if it might be false but if it is nil or false you want it to be nil, that would be the use case.
Scientz has joined #ruby
<RubyPanther>
more likely use case is foo ||= false where you don't want the nil
tspike has quit [Ping timeout: 240 seconds]
<BrightNewFuture>
Yeah, I don't like this operator. :) That makes sense though. Thank you!!!!!!
monkegjinni has quit [Ping timeout: 272 seconds]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
joshAnderson99 has joined #ruby
ewnd9 has joined #ruby
mikeric has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
peterhu has quit [Ping timeout: 245 seconds]
rubyracer has quit [Remote host closed the connection]
mixel has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
thumpba has joined #ruby
araujo has quit [Ping timeout: 245 seconds]
Ahti333_ has joined #ruby
aryaching has joined #ruby
tjbiddle has joined #ruby
lassebunk has joined #ruby
mmitchell has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
icemancast has joined #ruby
orien has joined #ruby
rins has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
toah has joined #ruby
kofno has joined #ruby
mlpinit has quit [Remote host closed the connection]
mois3x_ has quit [Quit: Konversation terminated!]
Ahti333 has quit [Ping timeout: 268 seconds]
Ahti333_ is now known as Ahti333
mois3x_ has joined #ruby
mlpinit has joined #ruby
lfox has quit [Quit: ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zarubin has quit [Ping timeout: 272 seconds]
sambao21 has quit [Client Quit]
pentameter has quit [Remote host closed the connection]
yfeldblum has joined #ruby
mmitchell has quit [Ping timeout: 272 seconds]
marcdel has joined #ruby
sepp2k1 has joined #ruby
banisterfiend has joined #ruby
astrobunny has joined #ruby
nonamehero has joined #ruby
smathieu has joined #ruby
freezey has quit [Remote host closed the connection]
lfox has joined #ruby
mando has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Client Quit]
sepp2k has quit [Ping timeout: 268 seconds]
mando has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tatsuya_o has quit [Remote host closed the connection]
phantasm66 has joined #ruby
tatsuya_o has joined #ruby
mois3x_ has quit [Ping timeout: 240 seconds]
starfox21 has joined #ruby
SloggerKhan has left #ruby [#ruby]
mando has quit [Ping timeout: 245 seconds]
kaspergr_ has quit [Remote host closed the connection]
heidi has quit [Quit: Leaving.]
icemancast has quit [Quit: icemancast]
kaspergrubbe has joined #ruby
tatsuya_o has quit [Ping timeout: 246 seconds]
k610 has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Ping timeout: 246 seconds]
stonevil has joined #ruby
carlyle has quit [Remote host closed the connection]
tspike has joined #ruby
ShellFu has joined #ruby
icemancast has joined #ruby
sambao21 has joined #ruby
kaspergrubbe has quit [Ping timeout: 246 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
Deele has quit [Ping timeout: 260 seconds]
stonevil has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
RORgasm has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 260 seconds]
kitak has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
rgbdev has joined #ruby
<ShellFu>
Given that I have several hashes, all with a key :my_parent and :name. :my_parent has the name of the parents hash. Its possible for :my_parent to be empty, and also possible for the chain to be quite long. What im currently doing is looking up the name of interest, and looking to see if it has_key? :my_parent. If it does I do the sequence again.
mando has joined #ruby
<ShellFu>
This works fine with a fixed depth but if I do not know how many parents there are how can I recursively search for them
benweint has quit [Quit: Computer has gone to sleep.]
martxel has joined #ruby
martxel has joined #ruby
martxel has quit [Changing host]
<ShellFu>
thinking a while loop and a toggle switch that when it finds an empty :my_parent key it breaks out of the loop
mando has quit [Remote host closed the connection]
astrobunny has joined #ruby
<ShellFu>
not sure if that is the smartest path, but its my only theory atm
einarj has quit [Remote host closed the connection]
kitak has joined #ruby
einarj has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
ssmithstone has quit [Ping timeout: 265 seconds]
ner0x has joined #ruby
ldnunes has joined #ruby
jrhe has quit [Quit: jrhe]
b00stfr3ak has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
SilverKey has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
SilverKey has quit [Max SendQ exceeded]
mrsolo has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
ephemerian has quit [Quit: Leaving.]
predator217 has quit [Ping timeout: 240 seconds]
kofno has quit [Ping timeout: 272 seconds]
clov3r has quit [Remote host closed the connection]
heidi has joined #ruby
clov3r has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
TigerWolf has joined #ruby
brennanMKE has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 272 seconds]
predator117 has joined #ruby
reset has joined #ruby
ferdev has quit [Quit: ferdev]
veinofstars has quit [Quit: veinofstars]
postmodern has joined #ruby
tspike has quit [Ping timeout: 268 seconds]
clov3r has quit [Ping timeout: 272 seconds]
CreativeEmbassy has joined #ruby
marcdel has joined #ruby
momomomomo has quit [Quit: momomomomo]
tatsuya_o has joined #ruby
mixel has quit [Quit: mixel]
maletor has quit [Quit: Computer has gone to sleep.]
phantasm66 has joined #ruby
ismlages has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
atSetKey has quit [Remote host closed the connection]
atSetKey has joined #ruby
Hanmac has joined #ruby
mixel has joined #ruby
burlyscudd has quit [Quit: Leaving.]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
tatsuya_o has quit [Ping timeout: 265 seconds]
mark06 has joined #ruby
RORgasm has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
nwertman has quit [Remote host closed the connection]
fgo has joined #ruby
rorra has quit [Quit: rorra]
DonRichie has quit [Quit: Verlassend]
dagnachew has quit [Read error: Connection reset by peer]
phantasm66 has quit [Quit: *sleeeep….]
ssmithstone has joined #ruby
butblack has joined #ruby
filipe has joined #ruby
heidi has quit [Quit: Leaving.]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisja has quit [Quit: leaving]
fwmath has joined #ruby
tjbarber has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
aspires has quit [Quit: aspires]
Mars` has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Mars` has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
benweint has joined #ruby
ssmithstone has quit [Ping timeout: 240 seconds]
drusepth has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
dsrw has joined #ruby
dsrw has quit [Remote host closed the connection]
horofox has joined #ruby
astrobunny has joined #ruby
kofno has joined #ruby
mansi has joined #ruby
zeade has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
twoism has quit [Remote host closed the connection]