<nobitanobi>
speakingcode-wor, I am not saying if it matters or not. I was asking a specific question.
sheap has quit [Ping timeout: 264 seconds]
b00stfr3ak has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
<speakingcode-wor>
and i'm saying the specificity of your inquiry has no bearing on the behavior of arrays
javos_ has quit [Read error: Operation timed out]
<nobitanobi>
oh dear.
<speakingcode-wor>
if it has 1 element, or 1 million, the first element is acessed either by a[0] or a.first
pragmatism has quit [Ping timeout: 272 seconds]
<nobitanobi>
Ok speakingcode-wor . Thanks
<speakingcode-wor>
are you implying another condition that we are overlooking?
pskosinski has joined #ruby
jhamon has quit [Quit: jhamon]
<speakingcode-wor>
do you mean, only get the first element IF the array has only one element?
<nobitanobi>
speakingcode-wor, I just wanted to know what would be a good way to get first element just if the array has one element. So, if the array has 3 element, not get anything. But I already found a way I like
jerius has quit [Quit: Computer has gone to sleep.]
<bnagy>
nobitanobi: what you're doing is weird.. there's a related splat trick which is kind of the opposite though
<nobitanobi>
bnagy, I'm just playing :P
<bnagy>
var = *other - var will always be an array whether other is an array or a single elem
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<Kamuela>
basically, i'm thinking rails has a LOT of default actions. and these default actions behind the scenes, e.g. from inherited superclasses and things are keeling me
hogeo has quit [Ping timeout: 245 seconds]
Moike has joined #ruby
<bnagy>
you know where they know about that stuff?
<banister>
bnagy sup nagg-dogg
<bnagy>
nm, writing a lot of Go :/
<speakingcode-wor>
Kamuela: the concept of that is called 'convention over configuration'
pel_daniel has joined #ruby
karl___ has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
<speakingcode-wor>
things 'just work' a certain way, to make development faster/easier - but if you go 'off the rails' against convention, it can quickly get cumbersome and tedious
pel_daniel has left #ruby [#ruby]
<bnagy>
just smashed a bowl trying to get good sound out of bluetooth speaker, that was fun
<speakingcode-wor>
when you learn the conventions its less daunting, but rails certainly is a big blackbox
soba has joined #ruby
hogeo has joined #ruby
TaxmanBD has joined #ruby
hogeo has quit [Remote host closed the connection]
<Kamuela>
speakingcode-wor, i believe that, and i think it makes sense in terms of productivity and stuff, but i still have to wrap my head around the convention the first time, lol
duggiefresh has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
stevenhaddox has joined #ruby
paul_k_ has joined #ruby
d45h has joined #ruby
arcke has quit [Quit: leaving]
jrhe_ has joined #ruby
jrhe has quit [Read error: Connection reset by peer]
jrhe_ is now known as jrhe
sambao21 has quit [Quit: Computer has gone to sleep.]
VTLob has quit [Quit: VTLob]
<speakingcode-wor>
Kamuela: i'm the say way, and i actually got some flak at my job when i started my first rails project for not zipping away and wriitng functionality all the sudden
pr0ggie has quit [Read error: Connection reset by peer]
jkhwan_ has quit [Remote host closed the connection]
capicue has joined #ruby
jkhwan has joined #ruby
mjs2600 has quit [Remote host closed the connection]
hogeo has joined #ruby
lmickh has quit [Quit: lmickh]
Jetchisel has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
<Kamuela>
speakingcode-wor, i keep trying to be able to just ignore the logic behind things and use them blindly... too difficult and against the way i'm designed
<shevy>
hey Kamuela
jkhwan has quit [Read error: Connection reset by peer]
<shevy>
looks as if you are a resident #ruby idler now
jkhwan has joined #ruby
<Kamuela>
saying that is going to get me hurt
<shevy>
haha
<Kamuela>
i really wish you'd take it back, publicly
<shevy>
now that you are no longer a newbie
<shevy>
we are going to test your weekly new knowledge
<shevy>
Kamuela, what did you learn new in the last 7 days in regards to the language ruby?
burlyscudd has quit [Quit: Leaving.]
<xorgnak>
punctuation and grammar count.
<xorgnak>
500 words
stringoO has quit [Quit: stringoO]
raphaelivan has quit [Ping timeout: 246 seconds]
<Kamuela>
that's a terrible question
hogeo has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
kitak_ has joined #ruby
macmartine has quit [Remote host closed the connection]
jrhe has quit [Read error: Connection reset by peer]
<shevy>
ok
jrhe has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
ehaliewicz has quit [Ping timeout: 248 seconds]
lfox has joined #ruby
hadees has joined #ruby
<shevy>
Kamuela, name one thing that you did write the last 7 days in regards to ruby code
predator117 has joined #ruby
<Kamuela>
shevy, sample stuff, began an irc bot with galeforce, endlessly trying to understand rails
kitak has quit [Ping timeout: 246 seconds]
<shevy>
IRC bot! Yay!
einarj has quit [Ping timeout: 246 seconds]
<shevy>
that's how I started with ruby
<xorgnak>
me too
amigo99 has joined #ruby
<Kamuela>
Galeforce can invite you to the nitrious io and you can tandem code
blackmesa has quit [Ping timeout: 240 seconds]
predator217 has quit [Ping timeout: 264 seconds]
jerius has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
jerius has joined #ruby
hadees has quit [Quit: hadees]
sparrovv has quit [Quit: sparrovv]
<Galeforce>
workin on the bot now..
johnjohnson has joined #ruby
Guest40120 has quit [Read error: Connection reset by peer]
pragmatism has joined #ruby
fgo has quit [Remote host closed the connection]
dukedave has quit [Ping timeout: 248 seconds]
robustus has quit [Ping timeout: 245 seconds]
Dan_ has joined #ruby
Dan_ is now known as Guest52278
codeFiend has joined #ruby
thekkid has quit [Ping timeout: 272 seconds]
jerius has quit [Ping timeout: 272 seconds]
nobitanobi has joined #ruby
paul_k has joined #ruby
robustus has joined #ruby
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
fgo has joined #ruby
neverwearcondoms has joined #ruby
<neverwearcondoms>
What is the difference between declarations and directives in C++? For example: using namespace std; and using std::cout;
pragmatism has quit [Ping timeout: 248 seconds]
tharindu has quit [Ping timeout: 252 seconds]
Guest52278 has quit [Read error: Connection reset by peer]
pragmatism has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
myappleguy has joined #ruby
tylersmith has quit [Remote host closed the connection]
paul_k has quit [Ping timeout: 272 seconds]
TaxmanBD has quit [Read error: Operation timed out]
mansi has quit [Remote host closed the connection]
heidi has joined #ruby
baroquebobcat has joined #ruby
mansi has joined #ruby
<nobitanobi>
neverwearcondoms, what about asking in #c++?
<neverwearcondoms>
nobitanobi: i can't join c++ for some reason
Kricir_ has joined #ruby
kofno has joined #ruby
<nobitanobi>
what does it say?
<neverwearcondoms>
i'm the only person there
<nobitanobi>
??
Kricir has quit [Read error: Connection reset by peer]
<neverwearcondoms>
join #c++ and see for yourself :P
<nobitanobi>
Yes, I see ~480 users there?
<Kamuela>
##c++
<Kamuela>
two pounds
<Kamuela>
also, you may have to be a registered user
kevind has quit [Quit: kevind]
mansi has quit [Read error: Connection reset by peer]
<neverwearcondoms>
oh, thanks
mansi has joined #ruby
bradhe_ has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
bradhe has joined #ruby
apeiros_ has joined #ruby
<shevy>
hehe
Cork has quit [Ping timeout: 252 seconds]
sergicles has quit [Ping timeout: 246 seconds]
sergicles_ has joined #ruby
baroquebobcat has quit [Ping timeout: 245 seconds]
apeiros has quit [Read error: Connection reset by peer]
<Galeforce>
this is stupid
<Galeforce>
but i forgot how to add stuff into a hash
kofno has quit [Ping timeout: 245 seconds]
jerius has joined #ruby
amoli has quit [Ping timeout: 245 seconds]
capicue has quit [Read error: Connection reset by peer]
capicue has joined #ruby
hogeo has joined #ruby
benwoody has quit [Quit: benwoody]
tkuchiki has joined #ruby
<bnagy>
ruby-doc.org
<bnagy>
ri Hash
<bnagy>
Hash.methods
<neverwearcondoms>
thanks everyone!
<bnagy>
uh Hash.instance_methods ;)
fgo has quit [Remote host closed the connection]
CaptainJet has quit []
spoonman has joined #ruby
Cork has joined #ruby
maletor has joined #ruby
<Kamuela>
does IRC tend to represent active people in the Rails community
smathieu has quit [Remote host closed the connection]
Moike has left #ruby [#ruby]
Mars` has quit [Ping timeout: 252 seconds]
<slash_nick>
>> options = { :deep => :stuff }; options.merge!(:options => options.dup) # the value for the :options key is nested infinitely(?) deeply unless I call dup
thelorax123 has quit [Remote host closed the connection]
boboism has quit [Remote host closed the connection]
Vivekananda has joined #ruby
thelorax123 has joined #ruby
<s2013>
got a question about lookup times for chaining... is there a difference between chaining and doing each method individually?
ehc has quit [Quit: ehc]
<sevenseacat>
if there is it would likely be so small as to be completely irrelevant
<jrobeson>
not enough to matter
<s2013>
cool. just wondering. thanks
<jrobeson>
focus on writing readable code
mercwithamouth has quit [Ping timeout: 248 seconds]
jlast has quit [Remote host closed the connection]
* jrobeson
high fives sevenseacat
<s2013>
yeah i was just wondering if there is actually any significant difference
mikeric has joined #ruby
macmartine has joined #ruby
Kricir_ has quit [Remote host closed the connection]
sammyo has joined #ruby
hogeo has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
CaptainJet has quit []
dukz has joined #ruby
danielcharles has joined #ruby
myappleguy has quit [Ping timeout: 245 seconds]
zensavona_ has joined #ruby
danman has joined #ruby
Reach has joined #ruby
lfox has joined #ruby
tsykoduk is now known as zz_tsykoduk
sn0wb1rd has joined #ruby
danielcharles has quit [Ping timeout: 246 seconds]
newUser1234 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
vpretzel has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
vpretzel has joined #ruby
moneydouble1 has joined #ruby
vpretzel has quit [Client Quit]
j-allen has quit [Quit: j-allen]
moneydouble has quit [Ping timeout: 264 seconds]
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
brian___ has quit [Quit: brian___]
Aryasam has joined #ruby
ewnd9 has quit [Ping timeout: 252 seconds]
mary5030 has quit [Ping timeout: 265 seconds]
varfoo has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
estebistec has joined #ruby
ehc has joined #ruby
paul_k has joined #ruby
zeade has joined #ruby
zeade1 has joined #ruby
capicue has joined #ruby
shevy has joined #ruby
dukz has quit [Remote host closed the connection]
yfeldblum has joined #ruby
krainboltgreene has joined #ruby
kaldrenon has joined #ruby
danman has quit [Ping timeout: 264 seconds]
zeade has quit [Ping timeout: 252 seconds]
fridim_ has joined #ruby
<shevy>
test
<s2013>
ERROR
funburn has joined #ruby
macmartine has quit [Remote host closed the connection]
zeade has joined #ruby
paul_k has quit [Ping timeout: 272 seconds]
macmartine has joined #ruby
zeade1 has quit [Ping timeout: 252 seconds]
danman has joined #ruby
h0rrorvacui has quit [Remote host closed the connection]
liamkeily has joined #ruby
soba has joined #ruby
kaldrenon has quit [Ping timeout: 246 seconds]
<shevy>
:(
javos has quit [Quit: Leaving...]
liamkeily has quit [Client Quit]
liamkeily has joined #ruby
capicue has quit [Ping timeout: 248 seconds]
noyb has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
zz_tsykoduk is now known as tsykoduk
amritanshu_RnD has joined #ruby
endash_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Soliah has quit [Quit: Soliah]
yfeldblum has joined #ruby
kiba` is now known as kiba
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
duggiefresh has quit [Remote host closed the connection]
Soliah has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Client Quit]
duggiefresh has joined #ruby
moneydouble has joined #ruby
duggiefresh has quit [Remote host closed the connection]
endash_ has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
iliketurtles has joined #ruby
paul_k has joined #ruby
moneydouble1 has quit [Read error: Operation timed out]
kindjal has joined #ruby
hogeo has joined #ruby
iliketurtles has quit [Client Quit]
bradhe has quit [Ping timeout: 240 seconds]
kindjal has quit [Client Quit]
tsykoduk is now known as zz_tsykoduk
Soda has joined #ruby
nari_ has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
sam113101 has quit [Ping timeout: 252 seconds]
ravster has joined #ruby
noyb has quit [Ping timeout: 264 seconds]
gadgetoid has quit [Ping timeout: 260 seconds]
liamkeily has quit [Ping timeout: 246 seconds]
sam113101 has joined #ruby
mlpinit has joined #ruby
noyb has joined #ruby
endash has quit [Quit: endash]
psyl0n has joined #ruby
tkuchiki has quit [Ping timeout: 248 seconds]
jalcine- has joined #ruby
danshultz has joined #ruby
moneydouble has quit [Quit: Leaving.]
brianpWins has joined #ruby
nari_ has quit [Ping timeout: 272 seconds]
psyl0n has quit [Ping timeout: 245 seconds]
brianpWins has quit [Remote host closed the connection]
aspires has quit []
brianpWins has joined #ruby
moneydouble has joined #ruby
noyb has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
mlpinit has quit [Ping timeout: 265 seconds]
danshultz has quit [Ping timeout: 246 seconds]
Mars` has joined #ruby
myappleguy has joined #ruby
<shevy>
is ruby better than smalltalk?
capicue has joined #ruby
kevind has joined #ruby
kevind has quit [Client Quit]
Mars` has quit [Ping timeout: 240 seconds]
dukz has joined #ruby
coolcode has joined #ruby
tkuchiki has joined #ruby
wenshan has quit [Ping timeout: 272 seconds]
<poutine>
How do you feel Ruby compares to say, ISO-8859-1?
danman has quit [Quit: danman]
hogeo has quit [Ping timeout: 272 seconds]
tharindu has joined #ruby
gadgetoid has joined #ruby
dtateii has joined #ruby
lfox has quit [Quit: ZZZzzz…]
fijimunkii has joined #ruby
MrPot4to has quit [Remote host closed the connection]
hogeo has joined #ruby
Kricir has joined #ruby
rezzack has quit [Ping timeout: 246 seconds]
_maes_ has joined #ruby
coolcode has quit []
asteros has joined #ruby
macmarti_ has joined #ruby
dtateii has left #ruby [#ruby]
jalcine- is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
fijimunkii has quit [Remote host closed the connection]
macmartine has quit [Ping timeout: 272 seconds]
fijimunkii has joined #ruby
MrPot4to has joined #ruby
hogeo_ has joined #ruby
hogeo has quit [Ping timeout: 246 seconds]
Kricir has quit [Ping timeout: 272 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
HansonE has joined #ruby
sammyo has quit [Ping timeout: 260 seconds]
<slash_nick>
I have to ask in here... Is no one else weired out by `options = { :deep => :stuff }; options.merge!(:options => options)` ?... frankly I wouldn't expect that to nest values for :options infinitely deeply
tonni_ has quit [Read error: Connection reset by peer]
fijimunkii has quit [Ping timeout: 245 seconds]
paul_k_ has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby
myappleguy has quit [Ping timeout: 264 seconds]
sputnik13 has joined #ruby
nari_ has joined #ruby
jlast has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
d2dchat has quit [Remote host closed the connection]
nobitanobi has joined #ruby
mikeric has joined #ruby
<bnagy>
why is that weird?
<bnagy>
what's cool is that it doesn't stack overflow
<bnagy>
used to :/
dhruvasagar has joined #ruby
macmarti_ has quit [Read error: Connection reset by peer]
Aryasam has quit [Ping timeout: 246 seconds]
IceColdMax has joined #ruby
macmartine has joined #ruby
phansch has joined #ruby
<nobitanobi>
hello!
paul_k has quit [Ping timeout: 264 seconds]
<phansch>
morning!
mauro has joined #ruby
Hanmac has joined #ruby
<nobitanobi>
morning? dayum
macmartine has quit [Read error: Connection reset by peer]
chomskiii has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
estebistec has quit [Remote host closed the connection]
Paradigm__ has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
lukec has quit [Quit: lukec]
jlast has quit [Ping timeout: 265 seconds]
estebistec has joined #ruby
Paradigm_ has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
ravster has quit [Quit: Leaving.]
TaxmanBD has joined #ruby
aspires has joined #ruby
noyb has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
kristofers has quit [Remote host closed the connection]
mauro has quit [Remote host closed the connection]
Aryasam has joined #ruby
estebistec has quit [Remote host closed the connection]
macmartine has quit [Remote host closed the connection]
estebistec has joined #ruby
jonahR has joined #ruby
<slash_nick>
bnagy: it's weird because i don't know what's going on :)... it used to overflow, huh? very cool that it doesn't
jhamon has joined #ruby
justsee has joined #ruby
justsee has left #ruby [#ruby]
estebistec has quit [Read error: Operation timed out]
<bnagy>
slash_nick: it has detected a looped hash ref and figured it out for you - hence ...
smathieu has joined #ruby
TaxmanBD has quit [Ping timeout: 246 seconds]
<bnagy>
but you're free to follow it as many times as you like
krainboltgreene has quit []
mlpinit has joined #ruby
<slash_nick>
`options = { :deep => :stuff }; options.merge!(:options => options.dup)` <-- i expected something more like the result of this one
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
dzhulk has joined #ruby
s2013 has quit [Quit: Leaving]
johnnyfuchs has quit [Quit: Leaving.]
yacks has quit [Ping timeout: 246 seconds]
iajrz has quit [Quit: Page closed]
thekkid has quit [Read error: Operation timed out]
mlpinit has quit [Ping timeout: 252 seconds]
ananthakumaran1 has joined #ruby
salmonax has quit []
dzhulk has quit [Client Quit]
<slash_nick>
bnagy: I guess the sort of info i'm looking for is what prevents the SO... i'm reading (http://rxr.whitequark.org/mri/source/hash.c#1999), maybe after looking at it for a few weeks i'll understand
bradhe has quit [Ping timeout: 272 seconds]
ananthakumaran has quit [Ping timeout: 264 seconds]
dzhulk has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
thumpba_ has joined #ruby
ananthakumaran1 has quit [Client Quit]
<nobitanobi>
Where can I read about how to pass parameters in URLs?
<nobitanobi>
~
<nobitanobi>
where are the standards of this?
pwh has quit [Ping timeout: 265 seconds]
<slash_nick>
google "query string"
johnnyfuchs has joined #ruby
dzhulk has quit [Client Quit]
S0da has joined #ruby
johnnyfuchs has left #ruby [#ruby]
pwh has joined #ruby
Soda has quit [Ping timeout: 272 seconds]
macmartine has joined #ruby
thumpba_ has quit [Ping timeout: 246 seconds]
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
codeFiend has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
<shevy>
google "big boobs"
<nobitanobi>
I am working with an API and they just use 3 different ways of adding the parameters to the URL
<nobitanobi>
I was just trying to figure out method names :P
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
machi has quit [Ping timeout: 245 seconds]
macmartine has joined #ruby
vlad_starkov has joined #ruby
krz has joined #ruby
bradhe has joined #ruby
MrPot4to has quit [Remote host closed the connection]
iliketurtles has joined #ruby
zeade has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
jhamon has quit [Quit: jhamon]
jkhwan has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
jkhwan has joined #ruby
mikepack has joined #ruby
asteros has quit [Quit: asteros]
pika_pika__ has joined #ruby
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
jhamon has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
pika_pika_ has quit [Ping timeout: 272 seconds]
Seventoes has quit [Quit: Leaving]
ananthakumaran has joined #ruby
mikepack has quit [Ping timeout: 248 seconds]
Seventoes has joined #ruby
zz_tsykoduk is now known as tsykoduk
thumpba_ has joined #ruby
Seventoes has left #ruby [#ruby]
vlad_starkov has joined #ruby
noyb has quit [Ping timeout: 252 seconds]
noop has quit [Read error: Connection reset by peer]
noop has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
i_s has joined #ruby
dukz_ has joined #ruby
<Galeforce>
sevenseacat !
<sevenseacat>
howdy.
<Galeforce>
what you up 2?
psyl0n has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
jlast has joined #ruby
<sevenseacat>
working
tkuchiki has quit [Ping timeout: 245 seconds]
<Galeforce>
you work remote or @ office?
dzhulk has joined #ruby
dukz has quit [Ping timeout: 240 seconds]
i_s has quit [Ping timeout: 246 seconds]
osvico has joined #ruby
thumpba_ has quit [Remote host closed the connection]
<sevenseacat>
at an office
myappleguy has joined #ruby
Apane has quit [Ping timeout: 272 seconds]
brianpWins has quit [Quit: brianpWins]
Jetchisel has quit [Ping timeout: 260 seconds]
zipper has joined #ruby
myappleguy has quit [Ping timeout: 272 seconds]
jlast has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
bradhe has quit [Remote host closed the connection]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
apeiros_ has quit [Read error: Connection reset by peer]
popl has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
btanaka has quit [Quit: leaving]
<zipper>
Could someone help me with the following failing code? I tried asking yesterday but I was told that I have not clearly understood instance variables and methods. I read on them but I still cannot see what I did wrong. Here is the code: https://gist.github.com/urbanslug/7572219
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
Jetchisel has joined #ruby
TaxmanBD has joined #ruby
<sevenseacat>
zipper: your code and test are littered with typos
<sevenseacat>
i suggest fixing them first
<zipper>
sevenseacat: in the constructor. Thanks.
<sevenseacat>
also, writing a test that will pass tomorrow and fail tomorrow is a bit silly
<sevenseacat>
*pass today
<zipper>
I'm am bad with with american english which is what most languages use. I wonder why.
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
macmartine has quit [Remote host closed the connection]
pranny has joined #ruby
mlpinit has joined #ruby
<zipper>
sevenseacat: Thanks the issue actually was a typo in initialize. I didn't expect that to be the issue.
newUser1234 has quit [Ping timeout: 264 seconds]
<zipper>
sevenseacat: about the test though. How would you suggest I fix that? I am thinking a regex.
vlad_starkov has quit [Remote host closed the connection]
<sevenseacat>
zipper: i would freeze the time with timecop for a time-dependent test
<user258467>
Which version is recommended 2.0.0 or 1.9.3?
mfmfmfmfmfmf has joined #ruby
akonny has joined #ruby
phansch has quit [Ping timeout: 246 seconds]
<sevenseacat>
2.0
blaxter_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<user258467>
ok
echevemaster has quit [Quit: Leaving]
bradhe has joined #ruby
<Galeforce>
2.1.9.3
<Galeforce>
i keed
fridim_ has quit [Ping timeout: 272 seconds]
aganov has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
akonny has quit [Quit: akonny]
dhruvasagar has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
tonni has quit [Ping timeout: 272 seconds]
sheap has joined #ruby
ananthakumaran has joined #ruby
jprovazn has joined #ruby
_phansch has quit [Remote host closed the connection]
Astral_ has joined #ruby
linduxed has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
andikr has joined #ruby
Astralum has quit [Ping timeout: 272 seconds]
tziOm has quit [Read error: Connection reset by peer]
asteros has quit [Quit: asteros]
mfmfmfmfmfmf has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
tonni has joined #ruby
bigkevmcd has quit [Ping timeout: 252 seconds]
Aryasam_ has quit [Ping timeout: 246 seconds]
h_kon has joined #ruby
zoee has joined #ruby
io_syl has quit []
Es0teric has quit [Quit: Computer has gone to sleep.]
Aryasam has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
Weazy_ has quit [Remote host closed the connection]
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
mfmfmfmfmfmf has joined #ruby
Jabberish has quit [Ping timeout: 245 seconds]
capicue has quit [Read error: Connection reset by peer]
asteros has joined #ruby
ananthakumaran has joined #ruby
myappleguy has joined #ruby
yfeldblu_ has joined #ruby
brahman_work has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
drumusician has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
keen___ has joined #ruby
jkhwan has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
keen__ has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
hogeo has joined #ruby
bigkevmcd has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
tyfighter has joined #ruby
dhruvasagar has joined #ruby
linduxed has joined #ruby
myappleguy has quit [Ping timeout: 248 seconds]
wallerdev has quit [Quit: wallerdev]
tagrudev has joined #ruby
tonni has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Ping timeout: 272 seconds]
jkline has joined #ruby
wallerdev has joined #ruby
noname001__ has joined #ruby
srnsky has quit [Remote host closed the connection]
ditch has joined #ruby
relix has joined #ruby
ahawkins has joined #ruby
Aryasam has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
zipper has quit [Ping timeout: 265 seconds]
sayan has quit [Ping timeout: 272 seconds]
funburn has joined #ruby
ananthakumaran has joined #ruby
aspires has quit []
zipper has joined #ruby
lkeijser has joined #ruby
dangerousdave has joined #ruby
brtdv has joined #ruby
mikeric has joined #ruby
amacgregor_ has joined #ruby
d45h has joined #ruby
tonni has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
iMe has joined #ruby
phansch has joined #ruby
himsin has joined #ruby
<lkeijser>
hi, I'm completely new to ruby(gems) and just found a nice gem that I wanted to install: mctop. I have already installed it on CentOS but on Ubuntu (12.04) I get an error: http://dpaste.com/1476655/
amacgregor has quit [Ping timeout: 245 seconds]
bobbyz has joined #ruby
zipper has quit [Client Quit]
ditch has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bobbyz>
If I have a method that takes a block, but I don't want to change 'self' from the caller, is block.call the right approach to use, or is there something different? It seems like instance_eval and instance_exec both change self
io_syl has joined #ruby
<sheap>
lkdijser: maybe try installing the package "ruby-dev"?
<sheap>
lkeijser: maybe try installing the package "ruby-dev"?
Aryasam has joined #ruby
<sheap>
d'oh
amacgregor_ has quit [Ping timeout: 246 seconds]
asteros has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
estrela has joined #ruby
Aryasam has quit [Client Quit]
jhamon has quit [Quit: jhamon]
funburn has quit [Quit: funburn]
<lkeijser>
sheap: already installed
asteros has joined #ruby
jhamon has joined #ruby
brtdv has quit []
<rjhunter>
lkeijser: take a look through mkmf.log and see if there are any obvious-looking errors in there
marcgg has joined #ruby
<rjhunter>
bobbyz: are you seeing a difference between `mymethod { foo }` and `mymethod do ; foo ; end` ?
alup has joined #ruby
vt102 has quit [Ping timeout: 246 seconds]
funburn has joined #ruby
marcgg_ has joined #ruby
liamkeily has joined #ruby
mlpinit has joined #ruby
marcgg has quit [Ping timeout: 252 seconds]
sparrovv has joined #ruby
lyanchih has joined #ruby
Lewix has quit [Remote host closed the connection]
<lkeijser>
rjhunter: it complains about not being able to find pcap.h , but it it present (in /usr/include/pcap.h and /usr/include/pcap/pcap.h)
sandeepk has joined #ruby
jkline has quit [Quit: jkline]
<rjhunter>
lkeijser: can you gist your mkmf.log ?
xcess_denied has joined #ruby
<rjhunter>
it's likely that it's not just looking for the presence of the the file pcap.h but also trying to make sure it works (calling a function in pcap)
Lewix has quit [Remote host closed the connection]
xk_id has joined #ruby
funburn has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
typicalbender has quit [Ping timeout: 245 seconds]
xk_id has quit [Client Quit]
psyl0n has joined #ruby
tesuji has joined #ruby
io_syl has quit []
paul_k has quit [Ping timeout: 246 seconds]
jonahR has quit [Quit: jonahR]
d45h has quit [Ping timeout: 272 seconds]
nari_ has quit [Ping timeout: 246 seconds]
jgrevich has quit [Quit: jgrevich]
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
sheap has quit [Quit: Lost terminal]
Astral_ has quit [Ping timeout: 265 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
tonni has joined #ruby
ghr has joined #ruby
crus has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Quit: Leaving.]
zoee has joined #ruby
crus has joined #ruby
psyl0n has quit [Remote host closed the connection]
mojjojo has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
marcgg has joined #ruby
psyl0n has joined #ruby
marr has joined #ruby
fgo has quit [Remote host closed the connection]
marcgg_ has quit [Ping timeout: 246 seconds]
mlpinit has joined #ruby
workmad3 has joined #ruby
mojjojo has quit [Quit: mojjojo]
akonny has joined #ruby
ephemerian has joined #ruby
joonty has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
rdark has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
mlpinit has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
dhruvasagar has joined #ruby
bradhe has joined #ruby
<Galeforce>
holy sht guys
dhruvasagar has quit [Read error: Connection reset by peer]
<Galeforce>
win amp is shutting down dec 20
<Galeforce>
that was like my first music player
blackmesa has joined #ruby
<iamtew>
damn, end of an era
<Galeforce>
crazy
<Galeforce>
i even made a skin for it back in the day
ananthakumaran has quit [Read error: Connection reset by peer]
<iamtew>
I made several skins
<Galeforce>
:*(
Davey has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
timonv has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
reset has joined #ruby
kitak_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
<workmad3>
no more winamp? :'(
kitak has joined #ruby
jkline has quit [Quit: jkline]
<Galeforce>
:(((((((((((((((
_phansch has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
<workmad3>
not that I've used winamp for years...
sergicles has joined #ruby
<Galeforce>
yea lol
<Galeforce>
i thought it was already dead to be honest haha
<workmad3>
well, I had it on my phone a few years back, before I started using spotify :)
<workmad3>
it was better than the built-in one
<tobiasvl>
it really whipped the llama's ass :'(
<Galeforce>
YES!!
<Galeforce>
hahahaha
ananthakumaran has quit [Read error: Connection reset by peer]
<Galeforce>
before spotify i was pandora
<Galeforce>
and idunno what before pandora, maybe youtube
<workmad3>
tobiasvl: ok, you just made me ok with winamp shutting down
<Galeforce>
and then before that i think i was winamp
<workmad3>
tobiasvl: that poor llama's ass has surely been whipped enough now
lkeijser has left #ruby [#ruby]
<tobiasvl>
workmad3: laughter is the best medicine
mfmfmfmfmfmf has joined #ruby
phansch has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
Hanmac has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
jkline has joined #ruby
dhruvasagar has joined #ruby
coderhs has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
zipper has quit [Read error: Connection reset by peer]
zipper has joined #ruby
myappleguy has joined #ruby
LiquidInsect has quit [Ping timeout: 246 seconds]
tharindu has joined #ruby
sandeepk has quit [Quit: Leaving...]
zipper has quit [Ping timeout: 248 seconds]
myappleguy has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
zipper has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
jlast has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
mfmfmfmfmfmf has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
adambeynon has joined #ruby
hiall has quit [Quit: hiall]
fgo has joined #ruby
amacgregor has joined #ruby
dhruvasagar has joined #ruby
xk_id has joined #ruby
Ivo has quit [Quit: WeeChat 0.4.2]
<rdark>
I heard PETA was behind the shutdown
gyre007 has joined #ruby
amacgregor__ has joined #ruby
ananthakumaran has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
<tobiasvl>
lol
LiquidInsect has joined #ruby
paul_k has joined #ruby
kaldrenon has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 245 seconds]
amacgregor has quit [Ping timeout: 246 seconds]
jkline has quit [Quit: jkline]
mercwithamouth has quit [Ping timeout: 252 seconds]
sandeepk has joined #ruby
yjmsf20 has joined #ruby
stetho has joined #ruby
kaldrenon has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
paul_k has quit [Ping timeout: 272 seconds]
dev1x has quit [Quit: North Korea BEST KOREA]
dev1x has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
lyanchih has quit [Quit: lyanchih]
harrymoreno has joined #ruby
larssmit has joined #ruby
jibi has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
sbos99 has joined #ruby
ananthakumaran has joined #ruby
prahal has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 272 seconds]
moneydouble1 has joined #ruby
jkline has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
mikeric has quit []
jrhe has joined #ruby
mercwithamouth has joined #ruby
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
moneydouble has quit [Ping timeout: 272 seconds]
hogeo has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
aagdbl has joined #ruby
<krz>
have a similar question to yesterday. if i have a class called Foo. and methos clicks_count and views_count. i also have a variable: activity = 'views'. how can i dynamically call the method of Foo based on the value of var activity?
<krz>
can i still use send for this?
moneydouble1 has quit [Ping timeout: 272 seconds]
Mars` has quit [Remote host closed the connection]
<krz>
want to do something like pseudo code: Foo."#{activty}_count"
Mars` has joined #ruby
jrhe has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
<hoelzro>
you can use send
jrhe has joined #ruby
<krz>
yeap just got it
<hoelzro>
but if there aren't a lot of variants, consider just using if/else or case/when
<krz>
thanks
mercwithamouth has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
xcess_denied has quit [Quit: Leaving...]
konrads has joined #ruby
mengu_ has quit [Remote host closed the connection]
Mars` has quit [Ping timeout: 245 seconds]
<krz>
i can do Foo.send("#{activity}_count")
dik_dak has joined #ruby
<krz>
but lets say i want to do the equivalent of Foo.views_count = 10
<krz>
how can i do that with send?
jibi has quit [Read error: Connection reset by peer]
<workmad3>
krz: .send(:views_count=, 10)
<krz>
oh
<workmad3>
krz: 'Foo.views_count = 10' is just syntax sugar in ruby for 'Foo.views_count=(10)' ;)
dik_dak has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
bradhe has joined #ruby
Criztian has joined #ruby
mlpinit has joined #ruby
jibi has joined #ruby
<krz>
workmad3: how would i do it with the context of: Foo.send("#{activity}_count")
camilasan has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
<workmad3>
krz: exactly the same way
camilasan has joined #ruby
<krz>
ah
camilasan has quit [Read error: Connection reset by peer]
<krz>
got it
<workmad3>
krz: just remember that the method is called whatever_count=
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<krz>
thanks
<krz>
yea also put a symbol before the string
<krz>
: i mean
<workmad3>
krz: you don't need to do that bit ;)
<workmad3>
krz: .send can take either symbol or string as the method name
<krz>
@foo.send(:"#{a}_count=", 12)
bradhe has quit [Ping timeout: 245 seconds]
Gonzih has joined #ruby
Gonzih has quit [Read error: Connection reset by peer]
<krz>
you are right, thanks workmad3
Gonzih has joined #ruby
mlpinit has quit [Ping timeout: 246 seconds]
smathieu has joined #ruby
<Hanmac>
krz: you dont need the : ... send works with strings too
<workmad3>
Hanmac: it's like there's an echo in here :P
<workmad3>
Hanmac: thunder thief :P
brennanMKE has joined #ruby
prahal has joined #ruby
jkline has quit [Quit: jkline]
camilasan has joined #ruby
<Hanmac>
i am a failure as an echo, i speak before the original one does ;P
camilasan has quit [Read error: Connection reset by peer]
sandeepk has quit [Quit: Leaving...]
SnatchFrigate has quit []
camilasan has joined #ruby
guiocavalcanti has joined #ruby
Vivekananda has quit [Read error: No route to host]
xk_id has quit [Quit:
guiocavalcanti has quit [Remote host closed the connection]
stetho has joined #ruby
guiocavalcanti has joined #ruby
<workmad3>
Hanmac: this time you were echoy ;)
smathieu has quit [Ping timeout: 272 seconds]
_phansch is now known as phansch
<Hanmac>
one important thing is that send without symbol does not create one if the method does not exist
ldnunes has joined #ruby
h_kon has quit [Remote host closed the connection]
<workmad3>
Hanmac: that's useful to know :)
<workmad3>
Hanmac: err... wait a sec... doesn't method_missing end up with the method name as a symbol no matter what?
tsykoduk is now known as zz_tsykoduk
<workmad3>
>> def method_missing(*args); p args.first; end; send("foooo")
<prahal>
with ruby 1.9.3 , the issue would be in siphash (I restored rb_memhash in string.c and removed it from random.c) . Mind that I suspected an entropy issue but I phasee this option out , a confirm would sort this out
OdNairy has quit []
mojjojo has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
tedstriker has joined #ruby
shaunbaker has quit [Ping timeout: 252 seconds]
OdNairy has joined #ruby
sandeepk has joined #ruby
olistik has joined #ruby
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
dukz has quit [Ping timeout: 245 seconds]
akonny has quit [Quit: akonny]
camilasan has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
molawson has quit []
Mars` has joined #ruby
molawson has joined #ruby
molawson has quit [Client Quit]
molawson has joined #ruby
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
brahman_work has left #ruby [#ruby]
shredding has quit [Ping timeout: 272 seconds]
camilasa_ has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
mlpinit has quit [Ping timeout: 245 seconds]
smathieu has joined #ruby
burgess|vayo has quit [Quit: ^zzz]
h_kon has joined #ruby
sammyo has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
axilla has joined #ruby
myappleguy has joined #ruby
camilasan has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
soba has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
shtirlic has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
raphaelivan has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
molawson has quit []
sandeepk has quit [Quit: Leaving...]
shaunbaker has joined #ruby
myappleguy has quit [Ping timeout: 265 seconds]
xcess_denied has joined #ruby
sandeepk has joined #ruby
molawson has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
brennanMKE has joined #ruby
<Gonzih>
tested on pi with ruby 2.0.0p247. confirmed.
danielcharles has joined #ruby
graydot has quit [Quit: graydot]
molawson has quit [Client Quit]
thelorax123 has quit [Remote host closed the connection]
xk_id has joined #ruby
jrhe has joined #ruby
pranny has quit [Quit: Leaving.]
molawson has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
thelorax123 has joined #ruby
Guedes has left #ruby [#ruby]
jrhe has quit [Client Quit]
zoee has joined #ruby
tvw has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
zeeraw has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
choobie has quit [Ping timeout: 272 seconds]
aagdbl has joined #ruby
<Gonzih>
confirmed on ruby 1.9.3p0 on beaglebone (not black)
ananthakumaran has quit [Read error: Connection reset by peer]
gyre007 has quit [Remote host closed the connection]
Kneferilis has quit [Read error: Connection reset by peer]
amacgregor__ has quit [Ping timeout: 246 seconds]
dangerousdave has quit []
mklappstuhl has joined #ruby
funburn has quit [Quit: funburn]
dangerousdave has joined #ruby
Beoran__ has joined #ruby
Beoran_ has quit [Ping timeout: 248 seconds]
tharindu has quit [Quit: Leaving...]
tsykoduk is now known as zz_tsykoduk
mlpinit has joined #ruby
dzhulk has joined #ruby
lyanchih has quit [Ping timeout: 240 seconds]
falood has quit [Remote host closed the connection]
hogeo has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
danshultz has quit [Read error: Connection reset by peer]
falood has joined #ruby
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
Mon_Ouie has joined #ruby
Amnesia has joined #ruby
camilasan has joined #ruby
<Amnesia>
question, "Dir.entries('.').each {|ent| if ent !~ /01.ppm/; File.rename(ent, "0#{ent[1].to_i + 1}.ppm"); end }" raises the EBUSY exception, how's that possible?
<Amnesia>
Errno::EBUSY: Device or resource busy - (., 01.ppm)
<Amnesia>
to be precise
mlpinit has quit [Ping timeout: 272 seconds]
smathieu has joined #ruby
RaCx_ has joined #ruby
pranny has quit [Quit: Leaving.]
hogeo has quit [Ping timeout: 272 seconds]
RaCx has quit [Ping timeout: 252 seconds]
mfmfmfmfmfmf has quit [Remote host closed the connection]
RaCx_ is now known as RaCx
smathieu has quit [Ping timeout: 245 seconds]
amrit_ has joined #ruby
jprovazn has joined #ruby
fgo has joined #ruby
Guest43837 has joined #ruby
danshult_ has joined #ruby
reset has joined #ruby
sammyo has quit [Ping timeout: 260 seconds]
<rjhunter>
Amnesia: is this on windows?
Elhu has joined #ruby
EugenA has joined #ruby
decoponio has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
danshult_ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 272 seconds]
danshultz has joined #ruby
sandeepk has quit [Quit: Leaving...]
reset has quit [Ping timeout: 272 seconds]
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
<Amnesia>
rjhunter: nope, tux
brian___ has joined #ruby
nari_ has joined #ruby
tk__ has quit [Quit: ばいばい]
danshultz has quit [Remote host closed the connection]
sambao21 has joined #ruby
PPH has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
Kneferilis has joined #ruby
d45h has joined #ruby
<Amnesia>
ah wait, . and .. :)
jibi has quit [Ping timeout: 264 seconds]
<EugenA>
i'm not familiar with ruby, just learning capistrano... can you tell me what means "after 'deploy:create_symlink', 'drupal:symlink'"?
mengu_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
nari_ has quit [Ping timeout: 245 seconds]
javos has joined #ruby
mjs2600 has joined #ruby
machi has quit [Remote host closed the connection]
paul_k has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
maasha has joined #ruby
csgui has quit [Ping timeout: 250 seconds]
kobain has joined #ruby
<rjhunter>
EugenA: that's a "hook" (or was in Capistrano 2). In particular, it hooks the "create_symlink" step of the "deploy" recipe, and tells Capistrano to do something else ("drupal_symlink") after it's finished with the regular "create_symlink" step.
mlpinit has joined #ruby
RaCx has joined #ruby
robonerd has quit [Ping timeout: 246 seconds]
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d45h has quit [Ping timeout: 248 seconds]
robonerd has joined #ruby
Criztian has joined #ruby
zipper has quit [Quit: Lost terminal]
paul_k has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
jlast has joined #ruby
mostlybadfly has joined #ruby
mengu_ has joined #ruby
OdNairy has quit []
osvico has joined #ruby
d45h has joined #ruby
d45h has quit [Client Quit]
Amnesia has left #ruby [#ruby]
bradhe has quit [Ping timeout: 252 seconds]
tharindu has joined #ruby
Asher has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
amrit_ has quit [Quit: Leaving]
amritanshu_RnD has quit [Quit: Leaving]
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
it_tard has joined #ruby
RaCx has joined #ruby
zz_tsykoduk is now known as tsykoduk
shredding has quit [Quit: shredding]
noop has quit [Ping timeout: 245 seconds]
tharindu has quit [Ping timeout: 272 seconds]
sammyo has joined #ruby
mikecmpbll has joined #ruby
psyl0n has joined #ruby
AlSquire has joined #ruby
dhruvasagar has joined #ruby
zipper has joined #ruby
<zipper>
I have this issue with chruby it does not set the $GEM_HOME and $GEM_PATH even after reinstalling chruby.
<zipper>
Anyone know how I can fix this? I'm on archlinux
Macaveli has joined #ruby
osvico has quit [Ping timeout: 272 seconds]
<zipper>
They show up in gem env but not in $GEM_HOME or $GEM_PATH
stevenhaddox has quit [Ping timeout: 246 seconds]
tsykoduk is now known as zz_tsykoduk
cantonic_ has quit [Ping timeout: 252 seconds]
cantonic has joined #ruby
Guedes has joined #ruby
blackmesa has joined #ruby
stringoO has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher1 has joined #ruby
<zipper>
postmodern: hey uh can you help me with this chruby issue? chruby isn't picking up $GEM_HOME or $GEM_PATH
yacks has quit [Ping timeout: 245 seconds]
sayan has joined #ruby
it_tard has quit [Quit: yawn]
Harima_Kenji has joined #ruby
stevenhaddox has joined #ruby
Harima_Kenji has quit [Changing host]
Harima_Kenji has joined #ruby
MrPot4to has quit [Remote host closed the connection]
konrads has quit [Ping timeout: 248 seconds]
fgo has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
machi has joined #ruby
<rjhunter>
zipper: do you see the paths when you run `chruby-exec myruby -- env` ?
mark_locklear has joined #ruby
jkamenik has joined #ruby
ffranz has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
kiri has quit [Ping timeout: 265 seconds]
Criztian has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
mjs2600 has quit [Remote host closed the connection]
yacks has joined #ruby
<zipper>
rjhunter: I think it is fixed.
raphaelivan has quit [Quit: Leaving.]
<zipper>
Thanks but one question though.
stetho has joined #ruby
machi_ has joined #ruby
<zipper>
When I run `chruby system` then $GEM_HOME it doesn't show the $GEM_HOME
machi has quit [Ping timeout: 272 seconds]
<zipper>
but when I run `chruby 1.9.3` it does. Is this what is meant to happen?
kiri has joined #ruby
reset has joined #ruby
<zipper>
Also I get this but my gems are still running in irb. << WARNING: You don't have /home/urbanslug/.gem/ruby/2.0.0/bin in your PATH, gem executables will not run. >>
<zipper>
Where should gem executables not run in such a case.
burlyscudd has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
|RicharD| has joined #ruby
mfmfmfmfmfmf has joined #ruby
<|RicharD|>
hi to all
soulcake has quit [Read error: Connection reset by peer]
<|RicharD|>
i'm trying to do a script parser
soulcake has joined #ruby
<|RicharD|>
with nokogiri and i want save all data in db with active record
<|RicharD|>
but when i save it, give me an error because the data is already in db…so how i can do the validation that if the name is already on db, it skip the save ?
mklappstuhl has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
sailias has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
reset has quit [Ping timeout: 264 seconds]
akonny has joined #ruby
<Gonzih>
|RicharD|: just catch error and carry on
<|RicharD|>
and how i can do this ?
<|RicharD|>
on the class or when i do save action ?
Davey has joined #ruby
thelorax123 has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 272 seconds]
<Gonzih>
begin model.save!; rescue ExceptionClassHere; end
thelorax123 has joined #ruby
F1skr has joined #ruby
kcombs has joined #ruby
joshmyers has joined #ruby
rjhunter has quit [Remote host closed the connection]
kaldrenon has joined #ruby
danshultz has joined #ruby
spider-mario has joined #ruby
<Gonzih>
|RicharD|: or you can use model.save which will return false instead of causing error
<joshmyers>
hey guys, I have an array of a = [ 1,2,3 ], I want to be able to do a.join(','), but I need to add something to each element of the array ( [9300-9400] ), so it ends up like 1[9300-9400],2[9300-9400]
hamakn has quit [Remote host closed the connection]
marcgg_ has joined #ruby
h_kon has quit [Ping timeout: 252 seconds]
hamakn has joined #ruby
mmitchell has joined #ruby
<maasha>
Implementing this OTOH is a tough one.
Harima_Kenji has quit [Ping timeout: 245 seconds]
<workmad3>
maasha: I don't see how you can implement that...
<workmad3>
maasha: l19 looks like you're gonna break various ruby semantics :P
<workmad3>
maasha: or you're gonna have to special-case certain commands and change the return behaviour (which I doubt you'd want to do)
mgolisch has quit [Quit: No Ping reply in 180 seconds.]
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcgg has quit [Ping timeout: 246 seconds]
drumusician has joined #ruby
<maasha>
workmad3: so sanity check fail?
ShinySides has joined #ruby
<workmad3>
maasha: for that particular interface, yes
<maasha>
workmad3: I would think for a user in irb this would be very powerful
hamakn has quit [Ping timeout: 264 seconds]
fuhgeddaboudit has joined #ruby
<maasha>
workmad3: considering that it is meant for tools for bio science analysis and not just cut, grep, sort etc.
<workmad3>
maasha: it looks like a kinda clunky interface anyway, tbh :)
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
nomenkun has joined #ruby
<workmad3>
maasha: I'd be tempted with an interface like 'pipeline = cmd(:cat, input: "foo.txt") | cmd(:wc, output: $stdout)'
<maasha>
workmad3: clunky? I was thinking that it was very smooth :o) - but if you have better ideas, please!
<workmad3>
maasha: no chaining
mlpinit_ has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
<workmad3>
maasha: and because your .add command mutates the pipeline, it means you can't easily 'split' the pipeline with say 'p = cmd(:cat) | cmd(:awk
<workmad3>
bah, try again
zoee has joined #ruby
mgolisch has joined #ruby
<workmad3>
p = cmd(:cat) | cmd(:awk); p1 = p | cmd(:grep); p2 = cmd(:sed)
mlpinit has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
<maasha>
workmad3: I am pretty interested in being able to split a pipe into multiple parts at pivotal steps like grep.
lukec has joined #ruby
<maasha>
*multiple pipes - or subpipes
<maasha>
workmad3: so whey you write | its a custom method?
<maasha>
workmad3: ala unix pipe
sandeepk has joined #ruby
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
zoee has quit [Client Quit]
ananthakumaran has joined #ruby
<maasha>
workmad3: also, I really need to be able to read in data from multiple sources (each in its own format) before continued processing.
<waxjar>
| is a method
smathieu has quit [Ping timeout: 272 seconds]
mikecmpb_ has joined #ruby
failshell has joined #ruby
reset has joined #ruby
akonny has quit [Quit: akonny]
mikecmpbll has quit [Ping timeout: 245 seconds]
mikecmpb_ is now known as mikecmpbll
stetho has joined #ruby
parduse is now known as Guest95756
parduse has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 272 seconds]
deanrock0_ has quit [Read error: Connection reset by peer]
chavezgu has joined #ruby
Guest95756 has quit [Ping timeout: 272 seconds]
deanrock0_ has joined #ruby
reset has quit [Ping timeout: 260 seconds]
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
guiocavalcanti has quit [Ping timeout: 272 seconds]
chavezgu has quit [Quit: WeeChat 0.4.2]
_maes_ has joined #ruby
zoee has joined #ruby
kindkid7 has joined #ruby
konrads has quit [Ping timeout: 245 seconds]
mlpinit_ has quit [Remote host closed the connection]
<maasha>
workmad3: I like your idea. Can you whip up some proof of concept code?
duggiefresh has joined #ruby
<workmad3>
maasha: just did ;)
<bahar>
hey. i just installed rvm and some rubies, and when i do gem check, i see "bigdecimal-1.2.1.gem has 12 problems" "eventmachine-1.0.3.gem has 22 problems," etc, and all the problems are "extra file" any ideas?
Lewix has quit [Remote host closed the connection]
<SirFunk>
Is there a way (like map) to take a hash and grab X property on each value and return a hash that is original_key => new_property ?
<tobiasvl>
olivier_bK: your regex matches config["uid"'uid'] :) that's not what you want. you want this: grep(/config\[['"]uid['"]\]/)
jhaals has quit [Client Quit]
<workmad3>
maasha: how's it going? following the code ok?
akonny has joined #ruby
allsystemsarego has quit [Quit: Leaving]
sbos99 has quit [Quit: Leaving]
<olivier_bK>
tobiasvl, thanks men
<maasha>
workmad3: I am breaking it down to see what is going on.
zz_tsykoduk is now known as tsykoduk
tonni has quit [Read error: Connection reset by peer]
<kindkid7>
n/m. I just can't use the bare function name to call. I need to add params.
bean has joined #ruby
jhaals has joined #ruby
paul_k has quit [Ping timeout: 248 seconds]
kindjal has joined #ruby
<maasha>
workmad3: it looks usable - and fun.
<maasha>
workmad3: I need to setup some small tests and through all my requirements at it :o)
thekkid has joined #ruby
<maasha>
*throw
<workmad3>
maasha: cool :)
<tobiasvl>
kindkid7: you need to call it with parentheses because otherwise it will look for the constant
camilasa_ has joined #ruby
camilasan has quit [Read error: No route to host]
johnnyfuchs has joined #ruby
<maasha>
workmad3: thanks a lot for this! <schwatzenegger>I'll be back</schwatzenegger>
<olistik>
am I the only one that finds the Singleton module a bit uncomfortable?
ehc has joined #ruby
deception has quit [Read error: Connection reset by peer]
benwoody has joined #ruby
axilla has quit [Ping timeout: 246 seconds]
<workmad3>
maasha: and you could easily have that as a Pipeline::Cmd base class, and then have 'def cmd(c, *opts); Pipeline::Commands.const_get(c.to_s.capitalize).new(*opts); end' to provide a way to implement various different commands as separate classes rather than a single PipelineCmd class :)
rippa has joined #ruby
<workmad3>
olistik: you mean in the way it turns a class into a nice fake-global-var?
<olistik>
@workmad3 I'm more concerned about the fact that you can't easily reset it (especially for tests)
deception has joined #ruby
<workmad3>
olistik: welcome to the 'joy' of singletons
jragon has joined #ruby
<olistik>
^_^
<workmad3>
olistik: btw, I don't think I've *ever* seen a ruby code base that used it :)
theRoUS has joined #ruby
momomomomo has joined #ruby
kindkid7 has quit [Quit: Page closed]
akonny has quit [Quit: akonny]
<olistik>
workmad3: I've implemented a module that *tries* to reduce the pain
<olistik>
I'd like to receive brutal feedback about it
hiyosi has joined #ruby
mojjojo has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
g0bl1n has joined #ruby
<olivier_bK>
some one has already use gem colorize ?
nucatus has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nucatus has joined #ruby
evenix has joined #ruby
tsykoduk is now known as zz_tsykoduk
jhaals has joined #ruby
tharindu_ has quit [Quit: Leaving...]
<finnomenon>
olivier_bK: I have, but it's quite some time ago
<finnomenon>
it's been a while*
lukec has quit [Quit: lukec]
ndngvr` has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
rrichardsr3 has joined #ruby
rrichardsr3 has quit [Max SendQ exceeded]
ndngvr has quit [Ping timeout: 264 seconds]
<maasha>
workmad3: I didn't quite get that last part ...
dhruvasagar has joined #ruby
larssmit has quit [Quit: Leaving.]
<olivier_bK>
finnomenon, do you know how can colorize only variable like that
<olivier_bK>
hello blue welcome to
<olivier_bK>
i would want only blue in blue
<olivier_bK>
that's possible ?
kiri has quit [Ping timeout: 245 seconds]
freezey has joined #ruby
<finnomenon>
hello #{blue.to_s.blue} ??
banister has joined #ruby
<finnomenon>
I have no idea, I'm not an experienced ruby coder at all
CaptainJet has joined #ruby
dzhulk has quit [Quit: Leaving.]
<olivier_bK>
euhh okai i say nothing lol...
xcess_denied has joined #ruby
<finnomenon>
haha
khushildep has joined #ruby
<finnomenon>
just + the strings and .blue the part you want blue
<workmad3>
maasha: updated
<shevy>
finnomenon when you use #{} like that, they must always be inside "" so like "#{blue}", then .to_s is not needed anymore
<finnomenon>
ah
<workmad3>
maasha: basically a bit of metaprogramming to build in a way to add new commands :)
deception has quit [Read error: Connection reset by peer]
<maasha>
ok
<workmad3>
maasha: which lets you pass command-specific options, customise what gets output for different commands, etc
A124 has joined #ruby
<workmad3>
maasha: without having a massive, long case statement in Pipeline::Cmd :)
mikesplain has joined #ruby
codeFiend has quit [Quit: codeFiend]
dhruvasagar has quit [Read error: Operation timed out]
<maasha>
workmad3: I did have a feeling for a while that Ruby could do this. But its not beginners material :o)
<maasha>
well, I am not totally green, but in Ruby there is always more to learn
axl_ has joined #ruby
dhruvasagar has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mojjojo has quit [Quit: mojjojo]
<workmad3>
maasha: I'm gonna leave it to you to figure out how to add in nice output redirects ;)
ahawkins_ has joined #ruby
<maasha>
workmad3: right. thanks a lot
mojjojo has joined #ruby
sparrovv has joined #ruby
cburyta has joined #ruby
myappleguy has joined #ruby
ahawkins has quit [Ping timeout: 245 seconds]
mikesplain has quit [Ping timeout: 272 seconds]
enebo has joined #ruby
wald0 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wald0>
lol, i just readed something fun that i wanted to share here :)
<wald0>
there's a package in debian called "unhide", for security, and another one called "unhide.rb", which seems to be a ruby version of the first one
<wald0>
description says:
<wald0>
> It currently does the does the same checks as "unhide proc" and "unhide sys", while being about 10x faster than the original C code.
<sevenseacat>
that would have to be some real shit C code for that to be the case
fuhgeddaboudit has joined #ruby
cantonic has quit [Quit: cantonic]
dominikh has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Remote host closed the connection]
<wald0>
or maybe its just that ruby uses its own "optimized functions" on his best way and just writing it in a "high level" it ends in a cleaner procedure
anderson has quit [Read error: Connection reset by peer]
* wald0
sounds philosophic
hamakn has joined #ruby
iamjarvo has quit [Remote host closed the connection]
theRoUS has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
moneydouble1 has joined #ruby
anderson has joined #ruby
iamjarvo has joined #ruby
tannerburson has joined #ruby
moneydouble has quit [Read error: Operation timed out]
sevenseacat has quit [Remote host closed the connection]
<markalanevans>
you mean because of the .000000001
<havenwood>
yes
zastern has quit []
<markalanevans>
suppose thats a fraction of a penny
theRoUS has joined #ruby
iamjarvo has joined #ruby
<markalanevans>
but yea i see what your saying
<markalanevans>
ok. So i think in my case though your right.
Deele has quit [Quit: User excited]
<markalanevans>
For my data feed import i can keep it light w/ sprintf("%.2f", 2499.to_f/100)
<havenwood>
markalanevans: a fraction of a penny that isn't supposed to be there, now apply your function to my account a few billion times and I'M RICH \o/
<markalanevans>
as its simply conveying the # and storing it
<markalanevans>
but the moment i do math
<joonty>
brewster's millions
<markalanevans>
then i should use BigDecima
<markalanevans>
haha
lessless has joined #ruby
<markalanevans>
ok. Thanks for the clarification havenwood
<kindkid7>
I remember seeing something from Avdi Grimm once about subclassing the Module class, but my google-fu is failing me. I think it might have been a video. Anyone have any leads?
<lessless>
yeah, round up to the two digits after the point
<joonty>
kindkid7: ruby tapas?
<lessless>
I expected 1.95
<havenwood>
lessless: #ceil is for rounding up
Hanmac1 has quit [Ping timeout: 245 seconds]
mark_locklear has quit [Quit: Leaving]
sammyo has joined #ruby
einarj has quit [Remote host closed the connection]
mojjojo has quit [Ping timeout: 245 seconds]
<havenwood>
lessless: just checking, but you realize the number you pasted is a tiny fraction, right?
<TorpedoSkyline>
anyone know how to parse multipart/form data? =P
<joonty>
lessless: it's the same as 0.0000194.round
mikesplain1 has joined #ruby
saltnvinegar has quit [Quit: saltnvinegar]
mercwithamouth has joined #ruby
<lessless>
oh man
camilasan has quit [Read error: Connection reset by peer]
<lessless>
no, I did not
jerius has joined #ruby
camilasan has joined #ruby
aganov has quit [Remote host closed the connection]
<_br_>
havenwood: Yeah, I thought so too. Interesting the ruby bit.
<_br_>
joonty: exactly
<joonty>
yeh they do, you have to register with them
<joonty>
and pay a sum for the pleasure
<_br_>
havenwood: Probably they are connected somehow also to phone providers and postal in order to have the data?
drumusician has quit [Ping timeout: 272 seconds]
<_br_>
joonty: Yeah, pretty expensive.
shaunbak_ has quit [Remote host closed the connection]
movedx has joined #ruby
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<_br_>
I just found it an interesting problem to think about.
shaunbaker has joined #ruby
<havenwood>
_br_: That is what I assumed, that they buy something bulk, then augment. Like the listings WestLaw and Lexis have, I don't know who the bulk reseller is but they probably harvest from public records, bought or just manually processed.
<havenwood>
Voting records, postal records.
<_br_>
That makes a lot of sense yeah.
<movedx>
I've got a challenging problem. Hopefully there is a library for this, but if not it could prove difficult. If I have a subnet, let's say 192.168.1.0/24, and in this subnet a random, non-linear set of IPs are in use, how can I easily extrapolate the unused IPs from the subnet?
snuffeluffegus has joined #ruby
<movedx>
For further background, I am pulling this information from an MSSQL DB which in turn is the DB for an IPAM.
<movedx>
But sadly ther IPAM provides no API, let alone anything that can do this for me.
ngurumo has joined #ruby
aryaching has joined #ruby
ixti has joined #ruby
<_br_>
havenwood: joonty: Thanks for the input, appreciate the thoughts.
sammyo has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
csgui has joined #ruby
postmodern has quit [Quit: Leaving]
tharindu_ has joined #ruby
mlpinit_ has joined #ruby
<_br_>
movedx: Silly idea. Send out arp requests to see which nic's answer?
shaunbaker has quit [Ping timeout: 272 seconds]
mikepack has joined #ruby
danshultz has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 272 seconds]
<voidbottle>
how to break and return true? if requested_user.manager_id == current_user.id
shredding has quit [Quit: shredding]
mikepack_ has joined #ruby
kevind_ has joined #ruby
momomomomo has joined #ruby
existensil has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 245 seconds]
Guest21732 has quit [Ping timeout: 246 seconds]
mrsolo has joined #ruby
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
mikepack has quit [Ping timeout: 252 seconds]
sparrovv has quit [Quit: sparrovv]
jkhwan has joined #ruby
klip has quit [Remote host closed the connection]
apeiros has joined #ruby
MrPot4to has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<hersha>
@void you need to return the value of the have-permissions? call instead and move the return false to the end of the method to catch the nil case. right now if you hit the else block false will always get returned.
troessner has quit [Quit: Leaving]
truent has joined #ruby
akonny has joined #ruby
truent has left #ruby [#ruby]
mojjojo has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
jerius has joined #ruby
freakazoid0223 has joined #ruby
jhamon has joined #ruby
mfmfmfmfmfmf has joined #ruby
DonRichie has quit [Read error: Connection reset by peer]
DonRichie has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
DonRichie has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
Lewix has joined #ruby
ignoch has joined #ruby
nobitanobi has joined #ruby
maletor has joined #ruby
Kricir has joined #ruby
paul_k has quit [Ping timeout: 272 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
ssvo has joined #ruby
Czupa has joined #ruby
RaCx_ has quit [Ping timeout: 272 seconds]
jhamon has quit [Quit: jhamon]
iamjarvo has quit [Remote host closed the connection]
ignoch has left #ruby [#ruby]
sayan has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
timonv has quit [Remote host closed the connection]
RaCx has joined #ruby
markalanevans has quit [Ping timeout: 245 seconds]
jerius has quit [Quit: Computer has gone to sleep.]
dzhulk has joined #ruby
tvw has quit [Read error: Connection reset by peer]
<TorpedoSkyline>
ok, am I right in saying we use the CGI library to parse multipart/form?
<TorpedoSkyline>
otherwise, I'm stuck
burgess|vayo has joined #ruby
m8 has joined #ruby
<TorpedoSkyline>
there seems to be very little documentation on something like this, but what weird is I can find out with pretty much every other language
iamjarvo has quit [Ping timeout: 248 seconds]
<xibalba>
anyone know if there is an ubuntu pkg for the Ruby src?
bradhe has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
mlpinit has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
sergicles has quit [Quit: sergicles]
sayan has joined #ruby
aspires has joined #ruby
wallerdev has joined #ruby
jbpros has joined #ruby
liamkeily has joined #ruby
pel_daniel has joined #ruby
<hersha>
@xibalba there is but its usually very outdated
nvrch has quit [Quit: nvrch]
danshultz has joined #ruby
<xibalba>
whats the pkg name? can't find it.
maz-dev has quit []
<xibalba>
i dont mind the age of it currently
<hersha>
@xibalba ruby1.9.1
kaspergrubbe has joined #ruby
<xibalba>
hmm i've got 1.9.3 installed but it didn't come w/the src
voidbottle has quit [Quit: Ухожу я от вас]
mojjojo has joined #ruby
<hersha>
oh I'm sry didn't notice you wanted the src :/ i don't know about that
mikepack_ has quit [Remote host closed the connection]
<tobiasvl>
or just search for Proc in the ruby documentation
iliketurtles has joined #ruby
mikepack has joined #ruby
<tobiasvl>
or you can just pass the name of the method as a symbol
codeFiend has quit [Quit: codeFiend]
<tobiasvl>
Policy.add_rule(:some_method)
duggiefresh has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
<tobiasvl>
and then call send with the symbol as an argument inside
timonv has quit [Remote host closed the connection]
kofno has quit [Quit: leaving]
<Morrolan>
Might make for a nice API to have Policy.add_rule capture the block which it's passed.
<blossom_>
i think this skorks link is clearing it up for me, thank you!
timonv has joined #ruby
whunt has joined #ruby
pwh has quit []
hiall has quit [Quit: hiall]
<blossom_>
Morrolan: that's what I'm planning on doing, I think: I want to be able to dynamically define policies, so each instance of policy will have a unique rule list
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
kofno has joined #ruby
tharindu has joined #ruby
MrZYX|off is now known as MrZYX
qhartman has joined #ruby
jerius has joined #ruby
myappleguy has quit [Ping timeout: 264 seconds]
jlast has quit [Remote host closed the connection]
asteros has joined #ruby
jlast has joined #ruby
jerius has quit [Client Quit]
jlast has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 240 seconds]
io_syl has joined #ruby
froy has joined #ruby
zodiak has joined #ruby
bradhe_ has quit [Remote host closed the connection]
mark06 has left #ruby [#ruby]
lukec has joined #ruby
pwh has joined #ruby
bradhe has joined #ruby
IceDragon has joined #ruby
smathieu has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
coca_rails has quit [Remote host closed the connection]
coderhs has joined #ruby
Advocation has joined #ruby
coca_rails has joined #ruby
Astralum has joined #ruby
Xeago_ has joined #ruby
<mjc_>
awesome, love resolving version conflicts... super fun when I can't figure out what could possibly be requiring an old version of another gem
<_br_>
mjc_: Run it with debugger?
<mjc_>
_br_: bundler?
<_br_>
Bundle install throws weird things at you?
Xeago has quit [Read error: Operation timed out]
zigomir has joined #ruby
<mjc_>
yeah it says one gem depends on excon ~> but the gem doesn't specify that as a dependency 0.9.4
<_br_>
Did you try to delete gemfile.lock and retry?
<mjc_>
yeah, doesn't help
<_br_>
hm
psyl0n has joined #ruby
<_br_>
well, depending on the dependency hell you are in that might be tricky.
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<mjc_>
I think something autoscaler depends on, depends on this particular excon version
<mjc_>
but it doesn't tell me what
Es0teric has joined #ruby
<_br_>
maybe you can remove it and see if bundle executes correctly?
<mjc_>
it does
<mjc_>
but I need autoscaler :P
i_s has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
psyl0n has quit [Read error: Connection reset by peer]
psyl0n_ has joined #ruby
maletor has joined #ruby
<_br_>
Not sure they :/
<_br_>
s/y/n/
Es0teric has quit [Max SendQ exceeded]
Xeago_ has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
ericwood has quit [Remote host closed the connection]
ericwood has joined #ruby
Macaveli has quit [Remote host closed the connection]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
newUser1234 has quit [Ping timeout: 248 seconds]
krz has quit [Quit: krz]
timonv has quit [Remote host closed the connection]
<_br_>
mjc_: Maybe dragged in from some other gem then?
varfoo has quit [Quit: WeeChat 0.4.0]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<mjc_>
yeah it looks like it but I don't see any way to figure out which
ce_afk is now known as cescalante
xk_id has quit [Quit:
<rismoney>
say i have an array arr=['foo','bar','bat','baz'] Can i easily mod each element of the array, to have a prefix say: ['p_foo','p_bar','p_bat','p_baz']
terrellt has joined #ruby
Es0teric has joined #ruby
IceDragon has joined #ruby
nobitanobi has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
qhartman has quit [Quit: Ex-Chat]
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
<rismoney>
think i got it
<rismoney>
arr.map { |i| i = 'p_' + i}
olistik has quit [Remote host closed the connection]
<TheMoonMaster>
rismoney: arr.map {|x| "p_#{x}"}
<TheMoonMaster>
Ah, you got it
jerius has joined #ruby
mlpinit_ has joined #ruby
<rismoney>
havent slept
<TheMoonMaster>
lol I know that feeling.
zeade has joined #ruby
<Hanmac>
or that ,P arr.map(&"p_%d".method(:%))
<TheMoonMaster>
wat
R33C3 has quit [Read error: Connection reset by peer]
tvw has joined #ruby
atno has quit [Remote host closed the connection]
<TheMoonMaster>
I hope nobody would actually use that.
momomomomo has quit [Quit: momomomomo]
R33C3 has joined #ruby
<Hanmac>
hm yeah but you can ;P
<TheMoonMaster>
You can, but you really shouldn't.
<Hanmac>
it makes sense if you get the format string from an option or constant
benwoody has quit [Quit: benwoody]
coca_rails has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
lfox has joined #ruby
spider-mario has quit [Ping timeout: 272 seconds]
benwoody has joined #ruby
Tearan has joined #ruby
btanaka has joined #ruby
reset has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
dzhulk has quit [Quit: Leaving.]
sambao21 has quit [Ping timeout: 246 seconds]
spider-mario has joined #ruby
jkhwan has quit [Remote host closed the connection]
Elhu has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkhwan has joined #ruby
tvw has quit []
g0bl1n has quit [Ping timeout: 264 seconds]
jrhe has quit [Quit: jrhe]
sambao21 has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
mojjojo has quit [Quit: mojjojo]
hiyosi has joined #ruby
rfy692 has joined #ruby
mojjojo has joined #ruby
sparrovv has quit [Quit: sparrovv]
Ripp__ has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
bookies has quit []
DanBoy has quit [Remote host closed the connection]
dzhulk has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
moneydouble has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
sepp2k1 has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
Solnse has quit [Quit: Leaving.]
|RicharD| has quit [Ping timeout: 246 seconds]
jhn has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Ping timeout: 272 seconds]
jonahR has joined #ruby
matheuscaceres has quit [Remote host closed the connection]
parduse has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
parduse has joined #ruby
saarinen has joined #ruby
moneydouble has quit [Ping timeout: 245 seconds]
bradhe has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
rdark has quit [Quit: leaving]
kirun has joined #ruby
guiocavalcanti has quit []
tharindu has joined #ruby
cantonic has quit [Quit: cantonic]
guiocavalcanti has joined #ruby
drumusician has joined #ruby
krz has quit [Ping timeout: 246 seconds]
bricker has joined #ruby
bradhe_ has joined #ruby
jerius has joined #ruby
crus` has joined #ruby
Kricir has joined #ruby
csgui has quit [Ping timeout: 250 seconds]
freezey has quit [Remote host closed the connection]
crus has quit [Ping timeout: 272 seconds]
freezey has joined #ruby
jhaals has joined #ruby
kaspergrubbe has joined #ruby
tharindu has quit [Ping timeout: 245 seconds]
coderhs has quit [Quit: Leaving]
magoo has quit [Quit: WeeChat 0.4.2]
nanoyak has joined #ruby
jkhwan has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
cantonic has joined #ruby
machi_ has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
ace_striker has joined #ruby
iamjarvo has quit [Remote host closed the connection]
Monie has joined #ruby
momomomomo has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
momomomomo has quit [Client Quit]
iamjarvo has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
olistik has joined #ruby
DonRichie has quit [Ping timeout: 272 seconds]
mlpinit has joined #ruby
DrShoggoth has joined #ruby
banghouse2 has joined #ruby
decoponio has quit [Quit: Leaving...]
arietis has joined #ruby
iamjarvo_ has joined #ruby
coca_rails has quit [Remote host closed the connection]
jkhwan has quit [Remote host closed the connection]
mordocai has joined #ruby
jkhwan has joined #ruby
iamjarvo_ has quit [Ping timeout: 246 seconds]
trolling has quit [Ping timeout: 264 seconds]
Drewch has joined #ruby
mordocai has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
jlast has quit [Ping timeout: 252 seconds]
olistik has quit [Ping timeout: 245 seconds]
jhn has quit [Ping timeout: 272 seconds]
<platzhirsch>
meh, how do you name a method that performs JSON.load only on Strings which contain a hash or array and else return the original value? *-*
coca_rails has joined #ruby
trolling has joined #ruby
Y_Ichiro_ has quit [Ping timeout: 240 seconds]
nwertman has quit [Ping timeout: 252 seconds]
rfy692_ has joined #ruby
magoo has joined #ruby
Czupa has quit [Quit: Wychodzi]
interactionjaxsn has quit [Remote host closed the connection]
jkhwan has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
mojjojo has quit [Quit: mojjojo]
maletor has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sparrovv has joined #ruby
sheepman has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
cescalante is now known as ce_afk
aspires has quit []
moneydouble has joined #ruby
interact_ has joined #ruby
sheepman has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
tannerburson has quit [Quit: tannerburson]
<_br_>
platzhirsch: get_associative_containers
mlpinit has joined #ruby
<platzhirsch>
_br_: nice, very descriptive
tannerburson has joined #ruby
<_br_>
something like that :)
<platzhirsch>
although I cannot remember when I have used the word get the last time in a method name. In Java always, in Ruby I tended to move a bit away from the verb method names
moneydouble has quit [Ping timeout: 248 seconds]
pwh has quit []
<_br_>
well its a matter of taste I guess. there is no real right or wrong if you keep if simple and clear.
<apeiros>
platzhirsch: broken_abstraction is how I'd name it :-p
<_br_>
hehe
<platzhirsch>
yeah, someone has to clean up the mess
<apeiros>
sounds like some kind of normalization, so I'd probably call it normalize_whatever
<platzhirsch>
that's nice
DrShoggoth has quit [Quit: Leaving]
<_br_>
good point
newUser1234 has joined #ruby
myappleguy has joined #ruby
capicue has joined #ruby
<platzhirsch>
on a completely different note. Any idea why this bus unicode symbol cannot be displayed yet properly?
<withnale>
I have an array of hashes and I'm in an each block. What's the best method for editing the hash?
nanoyak has quit [Quit: Computer has gone to sleep.]
bryansray has joined #ruby
<apeiros>
withnale: all
mjs2600 has joined #ruby
bryansray is now known as proxie
DarthGandalf has joined #ruby
<apeiros>
withnale: seriously, depends completely on what you actually want to do and is utterly unrelated to the hash being in an array and you being in an each block.
olistik has joined #ruby
vlad_starkov has joined #ruby
<Hanmac>
apeiros: do you know the magic with #send + String != new symbol? ;P
whunt has quit [Quit: Computer has gone to sleep.]
<hello>
Hello
hello has left #ruby [#ruby]
jrhe has joined #ruby
blossom_ has quit [Quit: Page closed]
<s2013>
thanks Hanmac
mr_red has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<Hanmac>
platzhirsch: how its possible to check if a method leaks memory or not? like testing with a bicycle? but it under water and look if bubbles came out? ;P
jdguzman has joined #ruby
proxie has quit [Quit: Leaving...]
myappleguy has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Remote host closed the connection]
JesseH has quit [Quit: Leaving]
<platzhirsch>
Hanmac: with GC.start and ObjectSpace.count_objects ^^
colonolGron has joined #ruby
<platzhirsch>
ambushsabre: he/she surely is. Idling in #mongodb as well
jerius has quit [Quit: Computer has gone to sleep.]
hello has joined #ruby
ValicekB has joined #ruby
mjs2600 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
hello has left #ruby [#ruby]
lkba has joined #ruby
pothibo has joined #ruby
<ambushsabre>
platzhirsch: thanks, I made a slight change to the tutorial (answered a question several people had), so I was wondering if he wanted to look it over and maybe add it. You can't do PR's for the wiki pages on github for some reason
SHyx0rmZ has joined #ruby
Mars` has quit [Remote host closed the connection]
zoee has quit [Quit: This computer has gone to sleep]
Mars` has joined #ruby
mr_red has joined #ruby
akonny has quit [Quit: akonny]
CreativeEmbassy has joined #ruby
vlad_starkov has joined #ruby
Drewch has joined #ruby
paul_k has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
mjs2600 has joined #ruby
Voodoofish4301 has quit [Ping timeout: 245 seconds]
<bnagy>
platzhirsch: that is almost certainly not going to work
<platzhirsch>
bnagy: that's how I found some memory leaks
bret has joined #ruby
whunt has joined #ruby
<bnagy>
you'll possibly find >0
paul_k has quit [Ping timeout: 246 seconds]
<platzhirsch>
yeah, you cannot expect to find 0
<bnagy>
but nothing like even all the ruby leaks, let alone native leaks ( which is a much more common problem )
machi has joined #ruby
Virtualize|work has joined #ruby
BrixSat has joined #ruby
<BrixSat>
Hello
<BrixSat>
im having a problem with myql 2.9.1
workmad3 has joined #ruby
<BrixSat>
i install mysql via gem install mysql and then my script complains about mysql
pkrnj has joined #ruby
<BrixSat>
not existing
zz_tsykoduk is now known as tsykoduk
<BrixSat>
Could not find mysql-2.9.1 in any of the sources (Bundler::GemNotFound)
heidi has joined #ruby
dangerousdave has joined #ruby
burlyscudd1 has quit [Quit: Leaving.]
nanoyak has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<evocore>
hmm actually the ssh ones work, its just the string of :detect that isnt working
<Hanmac>
evocore: hm you can try config.vagrant.send("#{item}=", value.to_s) maybe that works better?
banister has joined #ruby
<evocore>
`host': undefined method `new' for ":detect":String
Davey has joined #ruby
<evocore>
when I comment it out, the rest all works so its just that one `host: ':detect'` yaml line
shanlar has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Tearan has joined #ruby
elux has quit [Quit: Bye!]
nisstyre has quit [Quit: Leaving]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fuhgeddaboudit has joined #ruby
lfox has quit [Quit: ZZZzzz…]
Xeago has quit [Ping timeout: 264 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
bradleyprice has quit [Remote host closed the connection]
dgfdgf has quit [Ping timeout: 246 seconds]
sergicles has joined #ruby
bradleyprice has joined #ruby
`MArceLL` has joined #ruby
axl_ has quit [Quit: axl_]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
nucatus has quit [Ping timeout: 245 seconds]
funburn has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<Hanmac>
evocore: it seems that the yaml file does not fit ... try this line "config.vagrant.send("#{item}=", value)" with this in the config: "host: :detect" (so without '' and "")
volty has left #ruby ["Konversation terminated!"]
tharindu has joined #ruby
nanoyak has joined #ruby
danshult_ has joined #ruby
orionstein is now known as orionstein_away
hashpuppy has joined #ruby
<evocore>
I think that worked
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
Speed has joined #ruby
<evocore>
I also tried this with the original yaml document and it doesnt error out either http://paste.laravel.com/19mp
<evocore>
not sure if I am just making stuff up or if that could really do it
<hashpuppy>
if `a` is a Hash, is this the best way to divide each value of the hash by 5.0? Hash[a.map{|k, v| [k, v / 5.0]}]
AlSquire has joined #ruby
* Hanmac
giggles because he sees that the syntax-highligher on http://paste.laravel.com is broken ;D
robbyoconnor has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
<evocore>
I probably shouldnt use a php pastebin lol
Bira has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
<evocore>
Hanmac: is that valid ruby to do something like that? to detect if :, strip it and then convert to sym?
<Hanmac>
hm it is valid ruby code, but i would prefer to fix the config files itself than write around of it
claymore has quit [Quit: Leaving]
<evocore>
I can try, but its an upstream repo
<evocore>
so little bit more difficult
ni772591 has joined #ruby
matematikaadit_ is now known as matematikaadit
ni772591 has left #ruby [#ruby]
ni772591 has joined #ruby
ni772591 has left #ruby [#ruby]
<evocore>
thanks for your input though, I really appreciate it, my first ruby code ahha
mfmfmfmfmfmf has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
mklappstuhl has joined #ruby
jkhwan has joined #ruby
<Hanmac>
evocore: you can short your code like that: config.vagrant.send("#{item}=", value.start_with?(':') ? value[1..-1].to_sym : value)
cantonic has joined #ruby
<evocore>
oh nice
jkline has joined #ruby
<evocore>
is if !value.nil? the same as if value ?
<evocore>
both check for nil
enebo has quit [Quit: enebo]
<Hanmac>
evocore: yes and no ... "if value" is a bit faster than "if !value.nil?" because both "nil?" and "!" are method calls
TaxmanBD has joined #ruby
<evocore>
interesting
jerius has joined #ruby
stringoO has quit [Quit: stringoO]
<Hanmac>
but that means also: if something overwrites this methods, "if value" does not care about (but that would be very evil code)
sergicles has quit [Quit: sergicles]
<Hanmac>
PS: your line even more shorted using regex config.vagrant.send("#{item}=", /:(.+)/ =~ value ? $1.to_sym : value)
olistik has quit [Remote host closed the connection]
<evocore>
I was mainly looking to stop the code from running when the yaml had value: null
<evocore>
ugh regex lol
<evocore>
looks awesome though
jerius has quit [Client Quit]
<evocore>
wow that worked, thats great
zarubin has quit [Ping timeout: 264 seconds]
b00stfr3ak has quit [Ping timeout: 272 seconds]
duggiefresh has quit [Ping timeout: 272 seconds]
fuhgeddaboudit has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
kirun has quit [Quit: Client exiting]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SHyx0rmZ has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has quit [Remote host closed the connection]
sparrovv has quit [Quit: sparrovv]
Lietuvis has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
TaxmanBD has quit [Ping timeout: 272 seconds]
<MrZYX>
one should also mention if false != if false.nil?
<mojjojo>
when doing revenue = Revenue.where(primary_key_hash).first i am getting weird error PG::Error: ERROR: column revenues.ad_network does not exist
<evocore>
nil is just null value?
<evocore>
and false is boolean?
<MrZYX>
yes
<evocore>
good to know, thank you
machi has joined #ruby
<evocore>
is there a method that checks them all?
<evocore>
blank, false, nil
petey has quit [Remote host closed the connection]
<MrZYX>
ruby itself has no concept of "blank"
<evocore>
you just do if val == '' ?
<MrZYX>
many objects have an #empty? method
<MrZYX>
but nil and false don't
duggiefresh has joined #ruby
freezey has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
mlpinit has quit [Read error: Connection reset by peer]
johnnyfuchs has quit [Quit: Leaving.]
mfmfmfmfmfmf has quit [Remote host closed the connection]
<mojjojo>
is there any alternative to .first?
<mojjojo>
as it is messing up my code when doing revenue = Revenue.where(primary_key_hash).first
kevind has quit [Quit: kevind]
nanoyak has joined #ruby
volty has joined #ruby
freezey has joined #ruby
rezzack has quit [Quit: Leaving.]
mojjojo has quit [Quit: mojjojo]
mrsolo has joined #ruby
rezzack has joined #ruby
<ambushsa_>
brandonblack: did you get my message from earlier by any chance?
rezzack has quit [Client Quit]
rjhunter has joined #ruby
Lietuvis has quit []
aryaching has joined #ruby
sepp2k1 has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
<linguini>
ri seems to paste words together periodically. E.g. ri String.[] | grep asubstring . Is there some way to fix my local documentation?
rezzack has joined #ruby
mary5030 has quit [Remote host closed the connection]
falood has quit []
mercwithamouth has joined #ruby
d45h has joined #ruby
<linguini>
I'm using ri 4.0.1; ri 3.12.3 on another machine does not paste "a substring" together (as in the above).
kaspergrubbe has quit [Read error: Operation timed out]
TaxmanBD has joined #ruby
n4dir has joined #ruby
evocore has quit [Quit: evocore]
nanoyak has quit [Quit: Computer has gone to sleep.]
amoli has quit [Ping timeout: 245 seconds]
TaxmanBD has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dachi has joined #ruby
aspires has quit []
<n4dir>
Can someone point me to a docu about https://paste.debian.net/67097/ ("let" and "around"). I need to understand rspec.
amacgregor_ has joined #ruby
bradhe has quit [Remote host closed the connection]