<Nom->
Don't suppose Ruby is going to move away from this pXXX versioning in 2.0?
<havenn>
Nom-: Nope.
endzyme has quit [Remote host closed the connection]
wmoxam has joined #ruby
[[johnonymous]] has quit [Quit: Computer has gone to sleep.]
<Nom->
I've never understood the difference in the Ruby versioning between say a 1.9.3p0 vs 1.9.3p1 ... isn't that just a 1.9.4 to symantec versioning?
<Nom->
Oh well
allaire has joined #ruby
<havenn>
gaffo: Hrm, i don't know, and i don't know where best to ask either!? Only thing i've really done in mruby is compile a fizzbuzz a C bytecode array and then put it in a little wrapper to immediately execute. So a standalone fizzbuzz self-executable that does't need Ruby or mruby to run. https://github.com/havenwood/mruby-fizzbuzz/blob/master/fizzbuzz.c
tessi has quit [Ping timeout: 245 seconds]
<havenn>
gaffo: I haven't embedded mruby yet. Look forward to learning about it!
<bnagy>
Nom-: it's a patchlevel, which is different to a feature release
swistak35 has quit [Ping timeout: 256 seconds]
<dcope>
is it possible to use net/http with a resource that is served over https?
<bnagy>
some projects roll both into the versioning, some don't
parus has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 248 seconds]
jrendell has quit [Quit: jrendell]
msch has quit [Ping timeout: 260 seconds]
<gaffo>
havenn, the embedding is easy. I just can't figure out where to hook into the "new" type stuff. my initalize *is* getting called though ...
Myconix has quit [Quit: Server Error 482: The server has been shot by a 12-gauge. Please contact an administrator]
end_guy has quit [Ping timeout: 276 seconds]
<gaffo>
nope, that doesn't work... new is not called. :(
vlad_starkov has joined #ruby
sdavis has joined #ruby
Myconix has joined #ruby
Bish has quit [Ping timeout: 252 seconds]
<havenn>
gaffo: I don't know a proper mruby channel to ask in. Maybe #ruby-core folks would know? #mruby isn't populated
sam113101 has joined #ruby
Honeycomb has left #ruby [#ruby]
Honeycomb has joined #ruby
<gaffo>
havenn, hrm... I'll try there, thanks.
<nightfly>
Just checking, but the splat operator is pretty much the same thing as lisps apply right?
Takehiro has joined #ruby
arya has joined #ruby
Takehiro_ has quit [Ping timeout: 264 seconds]
r0bby has quit [Ping timeout: 248 seconds]
r4stakWhere has joined #ruby
abstrusenick has joined #ruby
anonymuse has quit [Quit: Leaving...]
tish has quit [Quit: Leaving.]
gabrielrotbart has joined #ruby
VonKingsley has joined #ruby
<havenn>
gaffo: Have you played with mgem for mruby? Just tried a few additional classes/modules to build with, but worked really well and was easy.
d2dchat has quit [Remote host closed the connection]
<havenn>
nightfly: Ruby's splat does different things depending on context of use. What does Lisp's apply do?
ocnam has joined #ruby
<gaffo>
no, haven't played with it much. I may use it for some core libraries or some other package format but I'm working on a game engine and using the ruby for scripting so I'll be loading and unloading contexts a lot I think and just working with .rb files loaded by convention.
zeade has quit [Quit: Leaving.]
Elico1 has joined #ruby
Elico1 has quit [Client Quit]
<havenn>
gaffo: Cool!
Blue_Ice has joined #ruby
swistak35 has joined #ruby
<nightfly>
havenn: Calls a function with the elements in argument(s) of a list as it's arguments (apply something '(1 2 3 4)) => (something 1 2 3 4)
<gaffo>
havenn, what were you using mruby for / mrubygems?
<havenn>
nightfly: Then I think in that context, yes. Calling a method with a splatted-Array passes each element of the Array as an argument: foo(*[1, 2, 3])
Es0teric has joined #ruby
parus has joined #ruby
r4stakWhere has joined #ruby
r4stakWhere has quit [Client Quit]
r4stakWhere has joined #ruby
<havenn>
gaffo: I'm not using it for anything practical yet. I've just been poking at it out of curiosity. :)
<gaffo>
ya, one of the cool things is that I believe I should be able to make things in ruby for the most part and then when I need speed or direct engine access I can just replace some methods with c/c++
Takehiro has quit [Ping timeout: 264 seconds]
r4stakWhere has quit [Client Quit]
<nightfly>
Alright, that's what I was thinking it did. Saw it is some code and wasn't really sure.
joeycarmello has quit [Remote host closed the connection]
<lethjakman_lapto>
gaffo: I've been wanting to use mruby, it looks pretty cool
a_a_g has joined #ruby
babykosh has quit [Quit: babykosh]
otherj has joined #ruby
otherj has quit [Client Quit]
end_guy has joined #ruby
cantonic has quit [Quit: cantonic]
dmiller has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
Takehiro_ has quit [Ping timeout: 276 seconds]
crackfu has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
greenarrow has quit [Ping timeout: 255 seconds]
greenarrow has joined #ruby
etcetera has joined #ruby
arya has joined #ruby
mneorr has quit [Read error: Connection timed out]
feedbackloop has quit [Read error: No route to host]
mneorr has joined #ruby
shadowshell has quit [Remote host closed the connection]
kirchevsky has quit [Ping timeout: 248 seconds]
jlwestsr has joined #ruby
brooks has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
takeru has joined #ruby
Takehiro_ has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
rocket has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
freakazoid0223 has quit [Ping timeout: 264 seconds]
malkomalko has quit [Remote host closed the connection]
t-mart has quit [Read error: Connection reset by peer]
takeru has quit [Ping timeout: 260 seconds]
w400z has joined #ruby
mando has joined #ruby
Quebert has quit [Ping timeout: 248 seconds]
sandGorgon has joined #ruby
dougireton has quit [Quit: Leaving.]
gaffo has quit [Ping timeout: 272 seconds]
tjbiddle_ has joined #ruby
kylefox has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
tommyvyo has quit [Quit:]
Bish has joined #ruby
newUser1234 has joined #ruby
kylefox has quit [Quit: kylefox]
ocnam has quit [Quit: Tan Tan!]
moos3 has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
tjbiddle has quit [Ping timeout: 276 seconds]
leesmith has joined #ruby
tjbiddle_ has quit [Ping timeout: 255 seconds]
adeponte has quit [Remote host closed the connection]
divout has joined #ruby
mneorr has quit [Read error: Connection timed out]
dhruvasagar has quit [Ping timeout: 240 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
mneorr has joined #ruby
jamesfung14 has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Quit: Leaving.]
straind has joined #ruby
cyberflux has quit []
ocnam has joined #ruby
leesmith has quit [Quit: leesmith]
dougireton has joined #ruby
nyrb has quit [Remote host closed the connection]
Takehiro has joined #ruby
dmiller has joined #ruby
smitjel has joined #ruby
Takehiro_ has quit [Ping timeout: 240 seconds]
wmoxam has quit [Ping timeout: 240 seconds]
girija has joined #ruby
jekotia has left #ruby [#ruby]
centipedefarmer has joined #ruby
gyre007 has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
meoblast has quit [Remote host closed the connection]
SCommette has joined #ruby
dhruvasagar has joined #ruby
nfk has quit [Quit: yawn]
newUser1234 has quit [Read error: Connection reset by peer]
jrajav has joined #ruby
ner0x has quit [Quit: Leaving]
newUser1234 has joined #ruby
gyre007 has quit [Ping timeout: 255 seconds]
arya has joined #ruby
pdamer has quit [Quit: pdamer]
poikon has quit [Read error: Connection timed out]
ikst has joined #ruby
ikst has quit [Remote host closed the connection]
poikon has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
newUser1234 has quit [Ping timeout: 264 seconds]
joeycarmello has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 264 seconds]
dmiller has joined #ruby
stopbit has quit [Quit: Leaving]
hck89 has joined #ruby
mando has quit [Remote host closed the connection]
r0bby has joined #ruby
shammancer has quit [Quit: Leaving.]
gwhilts has joined #ruby
shammancer has joined #ruby
allaire has quit []
mockra has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 246 seconds]
breakingthings has quit []
Mattx has quit [Read error: Connection reset by peer]
w400z has quit []
girija has quit [Ping timeout: 272 seconds]
Mattx has joined #ruby
r0bby_ has joined #ruby
girija has joined #ruby
mockra has joined #ruby
mneorr has quit [Read error: Connection timed out]
r0bby has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
brum has quit [Remote host closed the connection]
carlyle has joined #ruby
tatertots has joined #ruby
blf has joined #ruby
tish has joined #ruby
mercwithamouth has joined #ruby
reset has quit [Read error: Operation timed out]
tjbiddle has joined #ruby
sdavis has quit [Quit: sdavis]
qubit has quit [Ping timeout: 252 seconds]
jlwestsr has quit [Quit: Ex-Chat]
etcetera has quit [Ping timeout: 256 seconds]
qubit has joined #ruby
dougireton has quit [Quit: Leaving.]
etcetera has joined #ruby
smitjel has left #ruby [#ruby]
arya_ has joined #ruby
macmartine has joined #ruby
dawkirst has joined #ruby
willob has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 248 seconds]
poikon has quit [Read error: Connection timed out]
_MJ_4Q_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 252 seconds]
ahokaomaeha has left #ruby ["When I come back, please tell me in what new ways you have decided to be completely wrong."]
poikon has joined #ruby
d2dchat has joined #ruby
h4mz1d has joined #ruby
r0bby_ is now known as robbyoconnor
mneorr has quit [Read error: Connection timed out]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
rippa has joined #ruby
xnm has joined #ruby
hiroyuki has joined #ruby
pyrac has joined #ruby
<xnm>
Hey. Does anyone know how I'd call PGconn#wait_for_notify from the pg gem with eventmachine without blocking?
<blf>
Hey guys, how would I got about writing a unit test which tests the proper construction of an object, if the test depends upon a property of the constructed object? Wouldn't this first require testing the accessor returns the correct value?
<ryanf>
blf: if the accessor returns the correct value, why does it matter what the underlying state of the object is?
<blf>
For instance, a test method: test_initialize_without_shape_yields_zero_dimensional_array() would require that I access the length property of my array class.
<ryanf>
blf: sure, what's wrong with that?
lewis has quit [Remote host closed the connection]
<blf>
ryanf: nothing wrong with the intent of the method. However, it would depend upon checking the length of returned object (which is not a ruby array, by the way).
<blf>
But in order to validate that the length property of my object is working correctly, I must first have a valid object.
<blf>
So it seems like a chicken and the egg problem here.
nomenkun has joined #ruby
<blf>
I'll put the test up on github to better clarify.
<ryanf>
blf: in any test, you're going to first set up an object and then assert that it behaves the way you expect it to, right?
<ryanf>
in this case behaving the way you expect it to means returning 0 when you call length on it
v0n has joined #ruby
<ryanf>
there's no rule that any given test can only have one method call in it
poikon has quit [Read error: Connection timed out]
<mnemon>
blf: after that, give it a non 0 value and assert that the length returns the expected value?
richardjortega has quit [Quit: richardjortega]
jonathanwallace has quit [Ping timeout: 256 seconds]
<blf>
mnemon: Right, I intend to do so when writing a method to validate the length. But still, since the length property is dependant upon the proper construction of the object, it seems that I must first have validated the object is property constructed?
* blf
feels like he's chasing his tail
<ryanf>
blf: the definition of "the object being constructed correctly" is that after you construct it, it behaves as you expect across the methods in its public interface
<blf>
ryanf: Yes.
<blf>
So I don't need to validate the initialize method?
<blf>
It will be validated across the other tests?
<blf>
I guess that makes sense.
adeponte has joined #ruby
codecop has joined #ruby
<ryanf>
the test you have is fine. you're saying, "after I make an object with the zero-arg constructor, I expect length to return 0"
<blf>
Exactly
<ryanf>
if there are other consequences of it being zero-dimensional that are important, you can illustrate those with whatever other method calls are relevant
<ryanf>
but you don't need to, like, question the entire basis of your reality anytime you make an object
crackfu has quit [Remote host closed the connection]
<blf>
ryanf: Heh. I tend to do that :/
SCommette has quit [Quit: SCommette]
<blf>
Okay, well thanks. You guys have calmed the storm for the time being. I'll continue happily down this trail until the next tornado.
<ryanf>
no problem, good luck with that
luckyruby has joined #ruby
rhyselsmore_ has joined #ruby
ryanf has quit [Quit: leaving]
havenn has quit [Remote host closed the connection]
adeponte has quit [Ping timeout: 264 seconds]
mneorr has quit [Read error: Connection timed out]
sandGorgon has quit [Read error: Connection reset by peer]
sandGorgon has joined #ruby
mneorr has joined #ruby
sandGorgon has quit [Max SendQ exceeded]
sandGorgon has joined #ruby
xnm has quit [Quit: WeeChat 0.3.9.2]
sandGorgon has quit [Max SendQ exceeded]
sandGorgon has joined #ruby
h4mz1d has quit [Ping timeout: 255 seconds]
elico has quit [Remote host closed the connection]
Bry8Star has quit [Ping timeout: 276 seconds]
Bish has quit [Ping timeout: 248 seconds]
rhyselsmore_ has quit [Quit: Computer has gone to sleep.]
Bry8Star has joined #ruby
Retistic has quit [Quit: Retistic]
rhyselsmore_ has joined #ruby
Quebert has joined #ruby
mneorr has quit [Read error: Operation timed out]
wallerdev has joined #ruby
mneorr has joined #ruby
poikon has quit [Read error: Connection timed out]
dhruvasagar has quit [Ping timeout: 260 seconds]
poikon has joined #ruby
elico has joined #ruby
rocket has quit [Ping timeout: 264 seconds]
noop has joined #ruby
kumavis has joined #ruby
<kumavis>
is a ruby IO, analogous to a stringbuilder?
lethjakman has joined #ruby
<Hanmac1>
kumavis look for StringIO
Hanmac1 is now known as Hanmac
<kumavis>
ty
canton7 has quit [Remote host closed the connection]
lethjakman_lapto has quit [Ping timeout: 255 seconds]
pandawarrior1 has joined #ruby
brum has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
brianpWins has joined #ruby
pandawarrior1 has quit [Client Quit]
pandawarrior1 has joined #ruby
Quebert has quit [Ping timeout: 245 seconds]
rocket has quit [Ping timeout: 252 seconds]
Bish has joined #ruby
pandawarrior1 has quit [Client Quit]
tomzx_mac has quit [Read error: Operation timed out]
pandawarrior1 has joined #ruby
msch has joined #ruby
brum has quit [Ping timeout: 272 seconds]
pandawarrior1 has quit [Client Quit]
huoxito has quit [Read error: Connection reset by peer]
elkclone has joined #ruby
pandawarrior1 has joined #ruby
carlyle has quit [Remote host closed the connection]
pandawarrior1 has quit [Client Quit]
piotrj has joined #ruby
yacks has quit [Remote host closed the connection]
rhyselsmore_ has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
mneorr has quit [Read error: Connection timed out]
braoru has joined #ruby
brooks has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
brooks has joined #ruby
goganchic has joined #ruby
goganchic has quit [Max SendQ exceeded]
poikon has quit [Read error: Connection timed out]
vlad_starkov has joined #ruby
poikon has joined #ruby
goganchic has joined #ruby
brooks_ has joined #ruby
lewis has joined #ruby
takeru_ has joined #ruby
apeiros_ has joined #ruby
blf has quit [Quit: Page closed]
w|t has quit [Remote host closed the connection]
SeySayux has quit [Ping timeout: 272 seconds]
girija has quit [Ping timeout: 276 seconds]
brooks has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
sayan has quit [Read error: Connection reset by peer]
dmiller has quit [Ping timeout: 264 seconds]
SeySayux has joined #ruby
rezzack has quit [Ping timeout: 248 seconds]
<tjbiddle>
Can someone explain why (0..0).each {|x| puts 'test'} outputs test once and not zero times?
takeru_ has quit [Ping timeout: 244 seconds]
<lewis>
tjbiddle: because it goes through 0 once?
generalissimo has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
dmiller has joined #ruby
<tjbiddle>
Guess I should have phrased that a different way. Is there a more syntactical way to type that? At first glance I would expect that to do nothing
girija has joined #ruby
<lewis>
tjbiddle: it's indexed from 0
<lewis>
tjbiddle: when you type (0..1).each {|x| puts 'test'} it outputs twice
<goganchic>
tjbiddle, (0…0) - do nothing, 3 dots
<goganchic>
tjbiddle, .. - means including last number, … - not including
<tjbiddle>
lewis: Makes sense. I was screwing around in python (python noob) - And realized `for n in range(0, 0)` doesn't have the same affect (It wouldn't output anything)
ClownZ_ has joined #ruby
<tjbiddle>
goganchic: Nifty, good to know. Thanks :)
abstrusenick has quit [Quit: abstrusenick]
trumpeter2003 has joined #ruby
<lewis>
goganchic: including last number in what context
JohnBat26 has joined #ruby
apok has joined #ruby
ClownZ has quit [Ping timeout: 248 seconds]
<goganchic>
lewis, in context of Range, 0..1 - is an instance of class Range
mneorr has quit [Read error: Connection timed out]
himsin has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 255 seconds]
himsin has joined #ruby
backjlack has joined #ruby
mneorr has joined #ruby
jankly has quit [Ping timeout: 272 seconds]
spanx has quit [Ping timeout: 255 seconds]
spanx has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
apeiros_ has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
himsin has quit [Remote host closed the connection]
himsin has joined #ruby
aeontech has joined #ruby
dawkirst has quit [Ping timeout: 248 seconds]
aeontech has quit [Client Quit]
tagrudev has joined #ruby
braoru has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
pyrac has quit [Quit: pyrac]
piotrj has joined #ruby
braoru has joined #ruby
quazimodo has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
pyrac has joined #ruby
pyrac has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
whowantstolivefo has joined #ruby
fbernier has quit [Ping timeout: 255 seconds]
sayan has joined #ruby
dmiller has quit [Read error: Connection reset by peer]
himsin has quit [Remote host closed the connection]
fbernier has joined #ruby
himsin has joined #ruby
piotrj has quit [Remote host closed the connection]
Gooder has joined #ruby
rocket_ has quit [Read error: Connection reset by peer]
Quebert has joined #ruby
vlad_starkov has joined #ruby
hiroyuki has joined #ruby
mneorr has quit [Read error: Connection timed out]
poikon has quit [Read error: Connection timed out]
mneorr has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
arturaz has joined #ruby
poikon has joined #ruby
rhinux has quit [Ping timeout: 276 seconds]
goganchic has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
Honeycomb has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
whowantstolivefo has quit [Read error: Connection reset by peer]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
whowantstolivefo has joined #ruby
justsee has quit [Quit: Leaving...]
babykosh has joined #ruby
phatypus has joined #ruby
budmang_ has quit [Read error: Connection reset by peer]
phatypus has quit [Client Quit]
niklasb has joined #ruby
brum has joined #ruby
mikurubeam has joined #ruby
budmang has joined #ruby
dhruvasagar has joined #ruby
ryanf has joined #ruby
VonKingsley has left #ruby [#ruby]
mikekelly has quit [Ping timeout: 252 seconds]
Slivka has joined #ruby
a_a_g has quit [Quit: Leaving.]
brum has quit [Ping timeout: 272 seconds]
hck89 has quit [Ping timeout: 264 seconds]
niklasb has quit [Ping timeout: 264 seconds]
mneorr has quit [Read error: Connection timed out]
dr_bob has joined #ruby
dawkirst has joined #ruby
mneorr has joined #ruby
hogeo has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
hiroyuki has quit [Ping timeout: 252 seconds]
replore has joined #ruby
poikon has quit [Read error: Connection timed out]
poikon has joined #ruby
EvilJStoker is now known as JStoker
jonathanwallace has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mh` has quit [Ping timeout: 272 seconds]
mh` has joined #ruby
slainer68 has joined #ruby
Opettaja has joined #ruby
alta has quit [Ping timeout: 272 seconds]
Quebert has quit [Ping timeout: 245 seconds]
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
rdark has joined #ruby
mikekelly has joined #ruby
apeiros_ has joined #ruby
Quebert has joined #ruby
dnyy has quit [Ping timeout: 255 seconds]
tdelam has quit [Ping timeout: 255 seconds]
alta has joined #ruby
krz has joined #ruby
rburton- has joined #ruby
beiter has joined #ruby
whowantstolivefo has quit [Read error: Connection reset by peer]
tdelam has joined #ruby
jrendell has joined #ruby
whowantstolivefo has joined #ruby
Morkel has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
joschi has quit [Ping timeout: 272 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
joschi has joined #ruby
filipe has joined #ruby
babykosh has quit [Quit: babykosh]
msch has quit [Ping timeout: 272 seconds]
piotrj has joined #ruby
tish has quit [Quit: Leaving.]
whowantstolivefo has quit [Read error: Connection reset by peer]
eldariof has joined #ruby
whowantstolivefo has joined #ruby
replore has quit [Remote host closed the connection]
mneorr has quit [Read error: Connection timed out]
mneorr has joined #ruby
Opettaja has quit [Remote host closed the connection]
piotr_ has joined #ruby
mikurubeam has joined #ruby
vlad_starkov has joined #ruby
dnyy has joined #ruby
mafolz has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
m3pow has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
msch has joined #ruby
dawkirst has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Client Quit]
sirecote has quit [Ping timeout: 272 seconds]
sirecote has joined #ruby
canton7 has joined #ruby
aganov has joined #ruby
razibog has joined #ruby
mneorr has quit [Read error: Operation timed out]
nomenkun has joined #ruby
mneorr has joined #ruby
wallerdev has quit [Quit: wallerdev]
locriani has quit [Ping timeout: 255 seconds]
v0n has quit [Ping timeout: 252 seconds]
JohnBat26 has quit [Remote host closed the connection]
zigomir has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
locriani has joined #ruby
miso1337 has joined #ruby
whowantstolivefo has quit [Read error: Connection reset by peer]
whowantstolivefo has joined #ruby
blooberr has quit [Ping timeout: 255 seconds]
hemanth has quit [Read error: Connection reset by peer]
HecAtic has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
predator217 has quit [Ping timeout: 276 seconds]
hemanth has joined #ruby
imami|afk is now known as banseljaj
Takehiro has quit [Remote host closed the connection]
goganchic has joined #ruby
decoponio has joined #ruby
browndawg has joined #ruby
banjara has joined #ruby
rhinux has joined #ruby
slainer68 has quit [Remote host closed the connection]
elico has quit [Ping timeout: 255 seconds]
timonv has quit [Remote host closed the connection]
tessi has quit [Read error: Connection reset by peer]
piotrj has quit [Remote host closed the connection]
tessi has joined #ruby
predator117 has joined #ruby
lewis has quit [Remote host closed the connection]
mneorr has quit [Read error: Connection timed out]
mneorr has joined #ruby
banjara has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 256 seconds]
carraroj has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
jrendell has quit [Quit: jrendell]
greenarrow has joined #ruby
predator117 has quit [Ping timeout: 255 seconds]
piotrj has joined #ruby
bubblehead has quit [Remote host closed the connection]
m3pow has joined #ruby
noxoc has joined #ruby
nat_home has quit [Quit: Leaving.]
Stilo has joined #ruby
Zta has quit [Read error: Connection reset by peer]
threesome has quit [Ping timeout: 252 seconds]
rocket has joined #ruby
railsbros_dirk has joined #ruby
schaerli has joined #ruby
predator117 has joined #ruby
m3pow has quit [Read error: Operation timed out]
Quebert has quit [Ping timeout: 252 seconds]
sirecote has quit [Ping timeout: 272 seconds]
blf has joined #ruby
jprovazn has joined #ruby
ocnam has quit [Quit: Tan Tan!]
filipe has quit [Read error: Operation timed out]
Slivka has quit [Ping timeout: 272 seconds]
apok has quit [Quit: apok]
sirecote has joined #ruby
alta has quit [Ping timeout: 272 seconds]
larissa has quit [Quit: Leaving]
hoelzro|away is now known as hoelzro
JohnBat26 has joined #ruby
cool has quit [Ping timeout: 255 seconds]
new299 has quit [Ping timeout: 255 seconds]
maxmanders has joined #ruby
apod has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
new299 has joined #ruby
alta has joined #ruby
apeiros_ has joined #ruby
mneorr has quit [Read error: Connection timed out]
mockra has quit [Remote host closed the connection]
jacobw has joined #ruby
borickard has joined #ruby
mneorr has joined #ruby
r0ss_ has joined #ruby
apod has quit [Client Quit]
werzie has joined #ruby
apod has joined #ruby
daig0ro has joined #ruby
jacobw has quit [Client Quit]
TheDeadSerious_ has quit [Ping timeout: 272 seconds]
borickard has left #ruby [#ruby]
arietis has joined #ruby
beiter has quit [Quit: beiter]
jacobw has joined #ruby
beiter has joined #ruby
poikon_work has joined #ruby
Zta has joined #ruby
hogeo has joined #ruby
Drager has quit [Ping timeout: 255 seconds]
Phoop has joined #ruby
Drager has joined #ruby
crackfu has joined #ruby
monkegjinni has joined #ruby
obs has joined #ruby
d34th4ck3r has joined #ruby
filipe has joined #ruby
poikon_work has quit [Ping timeout: 264 seconds]
tatertots has left #ruby [#ruby]
toekutr has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
<blf>
When implementing an each() iterator, how would I go about returning an Enumerator if a block does not exist?
r0ss_ has left #ruby ["Leaving..."]
ephemerian has joined #ruby
jimeh has joined #ruby
filipe has quit [Ping timeout: 272 seconds]
arturaz has joined #ruby
hbpoison has quit [Ping timeout: 276 seconds]
d34th4ck3r has quit [Quit: Konversation terminated!]
pyrac has quit [Ping timeout: 246 seconds]
hogeo has quit [Remote host closed the connection]
wreckimnaked has joined #ruby
mneorr has quit [Read error: Connection timed out]
noxoc has quit [Quit: noxoc]
crackfu has quit [Remote host closed the connection]
mengu has joined #ruby
mneorr has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
shiin has joined #ruby
piotrj has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
eka has joined #ruby
alta has quit [Ping timeout: 272 seconds]
mengu_ has joined #ruby
verysoftoiletppr has joined #ruby
piotrj has joined #ruby
<blf>
Ah, nevermind, I see. Just return a new Enumerator.
<blf>
Hm, but then is there any way to have the Enumerator call my implementation of each_with_index()?
Takehiro has joined #ruby
werzie has left #ruby [#ruby]
mneorr has quit [Remote host closed the connection]
<clocKwize>
I'm trying to model an Order object - I have a new state and I want to call authorise! to get it to authorise money on the customers card, and then move to an authorised state or stay in new state if not, but I'm not sure how best t to do this
arietis has quit [Quit: Computer has gone to sleep.]
io_syl has quit [Quit: Computer has gone to sleep.]
<otters>
so I can't exactly you know visit it and find out how to upgrade
brum has quit [Ping timeout: 272 seconds]
<apeiros_>
f = expression; f() # <-- never possible
<apeiros_>
f = expression; f.() # <-- this is possible
<nyuszika7h>
ah
<apeiros_>
well, the upper is possible
<apeiros_>
but f wouldn't be the f assigned to
<Xeago>
apeiros_: f = lambda { .. } is an expression ?
<apeiros_>
Xeago: yes, but you can't do f() after that
<Xeago>
:O
<apeiros_>
you can do f[] or f.()
<Xeago>
he is fine with f.() :)
<nyuszika7h>
I prefer f.call(x), because f.(x) looks ugly and f[x] looks like an array slicing
<otters>
oh shit
<otters>
that's a rails thing not ruby, sorry
<hoelzro>
nyuszika7h: agreed
nari has quit [Ping timeout: 255 seconds]
niklasb has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
<nyuszika7h>
btw, can someone explain why ->(x, y) and -> x, y work, but -> (x, y) doesn't?
cool has joined #ruby
<Xeago>
I think (x,y) gets interpreted separately from the -> in that case
<Xeago>
nyuszika7h: can't give you more, not in a position to use newer rubies :<
niklasb has quit [Ping timeout: 246 seconds]
<nyuszika7h>
how about rvm?
banseljaj is now known as imami|afk
<nyuszika7h>
I have 1.8.7, 1.9.3 and 2.0.0 :P
cousine has joined #ruby
thone_ has quit [Quit: leaving]
cousine has quit [Remote host closed the connection]
thone has joined #ruby
Slivka has joined #ruby
emergion has joined #ruby
hogeo has joined #ruby
tvw has joined #ruby
TheDeadSerious_ has joined #ruby
justsee has joined #ruby
hackeron has joined #ruby
hiall has joined #ruby
ozgura has joined #ruby
mneorr has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Spooner_ has joined #ruby
mootpointer has joined #ruby
mneorr has quit [Ping timeout: 244 seconds]
lethjakman has joined #ruby
<otters>
are AR callbacks called when seeding the test database?
piotrj has joined #ruby
mikecmpbll has joined #ruby
<clocKwize>
yes
<Hanmac>
otters wrong channel
<otters>
damn it, not again
fermion has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
justsee has quit [Quit: Leaving...]
piotrj has quit [Remote host closed the connection]
<couscous>
hello i am couscous
Es0teric has joined #ruby
Es0teric has quit [Client Quit]
<hoelzro>
ahoy
<Spooner_>
I like cous cous.
banister`sleep has quit [Remote host closed the connection]
kayloos has quit [Quit: kayloos]
hiall has quit [Read error: Operation timed out]
hiall has joined #ruby
F1skr has joined #ruby
fire has quit [Ping timeout: 276 seconds]
threesome has quit [Ping timeout: 248 seconds]
threesome has joined #ruby
banister`sleep has joined #ruby
malkomalko has joined #ruby
workmad3 has joined #ruby
theRoUS has joined #ruby
inao has quit [Quit: Leaving...]
ph^ has joined #ruby
skattyadz has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
pac1 has joined #ruby
ph^ has quit [Remote host closed the connection]
rocket has quit [Ping timeout: 260 seconds]
xardas has quit [Read error: Connection reset by peer]
huttan has quit [Remote host closed the connection]
Spooner_ has quit [Remote host closed the connection]
wobblini has joined #ruby
testingb0t has joined #ruby
artm has quit [Quit: artm]
Shine-neko has joined #ruby
hogeo has quit [Remote host closed the connection]
mootpointer has quit [Quit: Computer has gone to sleep.]
<Shine-neko>
#join ruby-fr
sepp2k has joined #ruby
michael_mbp has joined #ruby
chussenot has quit [Quit: chussenot]
wreckimnaked has quit [Read error: Operation timed out]
Phoop has quit [Quit: Phoop]
wreckimnaked has joined #ruby
xrq` has joined #ruby
xrq has quit [Remote host closed the connection]
justsee has joined #ruby
jacobw has quit [Quit: WeeChat 0.4.0]
samphippen has joined #ruby
schaerli has joined #ruby
michael_mbp has left #ruby [#ruby]
ExxKA has joined #ruby
jacobw has joined #ruby
Banistergalaxy has joined #ruby
rhinux has quit [Quit: Konversation terminated!]
slainer68 has quit [Remote host closed the connection]
kayloos has joined #ruby
chichouw has quit [Remote host closed the connection]
nkr has joined #ruby
fire has joined #ruby
HelenCrowley has joined #ruby
LS\MFT has quit [Disconnected by services]
HelenCrowley is now known as LS\MFT
F1skr has quit [Quit: WeeChat 0.4.0]
tish has quit [Quit: Leaving.]
gokul has quit [Read error: Connection reset by peer]
F1skr has joined #ruby
deepinskin has quit [Ping timeout: 246 seconds]
mneorr has joined #ruby
Shine-neko_ has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
nomenkun has quit [Read error: Connection reset by peer]
rickmasta has joined #ruby
Shine-neko_ has left #ruby [#ruby]
yshh has quit [Remote host closed the connection]
maxmanders has joined #ruby
dmonjo has joined #ruby
Shine-neko has quit [Ping timeout: 264 seconds]
mneorr has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
divout has quit [Remote host closed the connection]
imami|afk has quit [Ping timeout: 256 seconds]
pyrac has quit [Read error: Connection reset by peer]
pyrac_ has joined #ruby
ozgura has quit [Remote host closed the connection]
srchelp has quit [Quit: leaving]
ozgura has joined #ruby
rmartin has joined #ruby
banseljaj has joined #ruby
khismetix has joined #ruby
EMPZ has quit [Quit: Leaving]
rickmasta has quit [Quit: Leaving...]
piotrj has joined #ruby
codespectator has joined #ruby
hashmal has joined #ruby
slainer68 has joined #ruby
zoonfafer has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
TomJ has quit [Client Quit]
TomJ has joined #ruby
TomJ has quit [Client Quit]
m3pow has quit [Read error: Connection reset by peer]
TomJ has joined #ruby
miso1337 has joined #ruby
LS\MFT has left #ruby ["Leaving"]
malkomalko has quit [Remote host closed the connection]
miso1337 has quit [Read error: Connection reset by peer]
miso1337_ has joined #ruby
freeayu has quit [Ping timeout: 252 seconds]
niklasb has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
Kudos has quit [Ping timeout: 264 seconds]
mibitzi has joined #ruby
Kudos has joined #ruby
lkba has joined #ruby
lethjakman has quit [Ping timeout: 276 seconds]
freeayu has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Kudos has quit [Ping timeout: 264 seconds]
miso1337_ has quit [Quit: unplugging]
browndawg has quit [Quit: Leaving.]
achamian has quit [Remote host closed the connection]
wobblini has quit [Ping timeout: 244 seconds]
monkegjinni has joined #ruby
keyvan has joined #ruby
keyvan has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
hbpoison_ has joined #ruby
decoponi_ has joined #ruby
arturaz has quit [Ping timeout: 272 seconds]
Progster has quit [Remote host closed the connection]
jpcamara has joined #ruby
railsbros_dirk_ has joined #ruby
krz has quit [Quit: krz]
ph^ has joined #ruby
jpfuentes2 has joined #ruby
Lemtzas_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
Progster has joined #ruby
Virunga has joined #ruby
yacks has joined #ruby
Virunga has quit [Read error: Connection reset by peer]
Virunga has joined #ruby
M- has joined #ruby
kofno has quit [Remote host closed the connection]
mikecmpb_ has joined #ruby
kloeri_ has joined #ruby
maxmande_ has joined #ruby
whitedawg has joined #ruby
goganchic has quit []
AlSquirrel has joined #ruby
ph^ has quit [Ping timeout: 272 seconds]
cupakrom- has joined #ruby
sirecote_ has joined #ruby
mh`` has joined #ruby
hogeo has joined #ruby
elektronaut_ has joined #ruby
Banistergalaxy has joined #ruby
digifiv5e has joined #ruby
postmodern has quit [Quit: Leaving]
digifiv5e is now known as Guest62431
maxmanders has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
hackeron has quit [*.net *.split]
railsbros_dirk has quit [*.net *.split]
admin0 has quit [*.net *.split]
hbpoison has quit [*.net *.split]
obs has quit [*.net *.split]
jprovazn has quit [*.net *.split]
sirecote has quit [*.net *.split]
decoponio has quit [*.net *.split]
mikurubeam has quit [*.net *.split]
mikekelly has quit [*.net *.split]
mh` has quit [*.net *.split]
jbw has quit [*.net *.split]
Guest78855 has quit [*.net *.split]
love_color_text has quit [*.net *.split]
Eiam has quit [*.net *.split]
ndngvr has quit [*.net *.split]
joast has quit [*.net *.split]
asobrasil has quit [*.net *.split]
AlSquire has quit [*.net *.split]
Lemtzas has quit [*.net *.split]
Shrink has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
im0b has quit [*.net *.split]
jwang has quit [*.net *.split]
ThePicard has quit [*.net *.split]
delqn has quit [*.net *.split]
cupakromer has quit [*.net *.split]
QKO has quit [*.net *.split]
elektronaut has quit [*.net *.split]
kloeri has quit [*.net *.split]
mh`` is now known as mh`
sirecote_ is now known as sirecote
elektronaut_ is now known as elektronaut
railsbros_dirk_ is now known as railsbros_dirk
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
admin0 has joined #ruby
grayson has joined #ruby
hackeron has joined #ruby
QKO has joined #ruby
nfk has joined #ruby
hogeo has quit [Ping timeout: 264 seconds]
Zespre has quit [Quit: leaving]
techlife has quit [Ping timeout: 248 seconds]
mikecmpb_ has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Remote host closed the connection]
kofno has joined #ruby
jprovazn has joined #ruby
takeru has joined #ruby
jwang has joined #ruby
mikekelly has joined #ruby
khismetix has quit [Read error: Connection reset by peer]
Shrink has joined #ruby
jbw has joined #ruby
slainer68 has joined #ruby
khismetix has joined #ruby
techlife has joined #ruby
asobrasil has joined #ruby
hoelzro is now known as hoelzro|away
Zespre has joined #ruby
M- has quit [Quit: This computer has gone to sleep]
takeru has quit [Ping timeout: 255 seconds]
pandawarrior1 has joined #ruby
achamian has joined #ruby
mneorr has joined #ruby
carloslopes has joined #ruby
codespectator has quit [Ping timeout: 276 seconds]
PragCypher has joined #ruby
dustint has joined #ruby
piotrj has quit [Remote host closed the connection]
Al___ has joined #ruby
mneorr has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
kloeri_ is now known as kloeri
<dmonjo>
any good cms opensource system written in ruby?
codespectator has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
Al__ has quit [Ping timeout: 264 seconds]
grafthez has joined #ruby
deepinskin has joined #ruby
<shevy>
rails ecosystem?
<shevy>
Hanmac loves rails
<grafthez>
hello, I need to set up plain ruby-driver for MongoDB with connection pool for plain multithreaded ruby app. A as ruby newbie (java programmer) I'm not sure if I should put MongoClient as a module constant, module method, class method or any other way? And how to use that in other classes?
deepinskin has quit [Max SendQ exceeded]
<shevy>
grafthez not sure I get the question
yshh has joined #ruby
monkegjinni has joined #ruby
<shevy>
I dont know what is MongoClient. is that a class, a module?
<dmonjo>
web for ruby = rails?
<shevy>
dmonjo to 80% yeah :(
<dmonjo>
why the sad face?
deepinskin has joined #ruby
<shevy>
rails crushed everything else... there is sinatra... and a few other things too
Kudos has joined #ruby
<shevy>
dmonjo because there is less choice
Kudos has quit [Changing host]
Kudos has joined #ruby
<shevy>
and by comparing with rails, you have to compare to a HUGE ecosystem
<dmonjo>
but rails seems to be well appreciated
achamian has quit [Remote host closed the connection]
<shevy>
then all is good isn't it? :)
<dmonjo>
you mean lot of features still lack
deepinskin has quit [Read error: Connection reset by peer]
<grafthez>
shevy, it's a class from mongo-driver
<grafthez>
it maintains its own thread safe connection pool
schaerli has quit [Remote host closed the connection]
<dmonjo>
python works on ?
<shevy>
no, dmonjo see, if you try to compete with rails, you won't have as many features easily, because then you would have to be as big as rails
fire has quit [Quit: WeeChat 0.4.0]
poikon has quit [Read error: Connection timed out]
<grafthez>
I want to use connections from that pool in multiple threads, and don't know how to store this MongoClient instance
geekbri has joined #ruby
<shevy>
grafthez hmm I dont know anything about MongoClient
poikon has joined #ruby
zykes- has quit [Ping timeout: 245 seconds]
chichou has joined #ruby
<shevy>
grafthez if your question would be a plain ruby question without any specific, already existing class it may be easier to answer
deepinskin has joined #ruby
<shevy>
dmonjo what I would love to see is the ancient cgi module in standard ruby improved heavily
mulinux has joined #ruby
EPIK has quit [Ping timeout: 255 seconds]
yshh has quit [Ping timeout: 255 seconds]
mh` has left #ruby [#ruby]
<grafthez>
wil ltry to clarify: it's not Mongo-specific thing, I just need to keep instance of given class around so that other objects (in multiple threads) can use it
<grafthez>
that's exactly what I was asking about. What about storing such thing as a module constant or other way? Any drawbacks comparing to this sidekiq approach?
zykes- has joined #ruby
<dmonjo>
shevy: so maionly going ruby rails is a good idea for web development ? :
<dmonjo>
or should look for some other alternatives
admin0 has quit [Read error: Connection reset by peer]
<dmonjo>
website will mainly be dynamic
piotrj has joined #ruby
hackeron has quit [Read error: Connection reset by peer]
<shevy>
dmonjo hmm... sinatra is small... I dont know what your goal is, I dont like rails but I think it is only an advantage if you know rails very well, so there you go
Eerbin has joined #ruby
hackeron has joined #ruby
<dmonjo>
i dont know rails too :/
<shevy>
you are young, you can learn it :P
<dmonjo>
lol
<MrZYX>
grafthez: that would require the initialization to happen on the evalutation of the module (when the file is required the first time), feels a bit unclean to me
<dmonjo>
what about djanjo and python
<csmrfx>
lol dont learn rails for just one website
xemu has joined #ruby
tish has joined #ruby
<dmonjo>
csmrfx: have to start somewhere :)
<shevy>
dmonjo django now has python 3 support, I think it is to python what rails is for ruby to some extent
<csmrfx>
sinatra +1
robustus has quit [Ping timeout: 276 seconds]
<shevy>
but I really know nothing at all about django
ozgura has quit [Read error: Connection reset by peer]
<shevy>
I once wanted to learn python just because of django
ozgura has joined #ruby
<dmonjo>
but?
<shevy>
but it did not have python 3 support back then, and I hated to have to choose between either python 2 or python 3
<shevy>
I dont feel motivated to spend time learning python 3 when there is this transition phase still going on
brum has joined #ruby
<dmonjo>
django can run on java i think too
<shevy>
:P
m3pow has joined #ruby
<shevy>
Hanmac loves java
berserkr has joined #ruby
d2dchat has quit [Remote host closed the connection]
robustus has joined #ruby
sandGorgon has quit [Ping timeout: 276 seconds]
k610 has joined #ruby
mikecmpbll has joined #ruby
<csmrfx>
jython or pure java?
<dmonjo>
i hopt ethere is a future for ruby on rails
banister`sleep has quit [Remote host closed the connection]
<shevy>
hehe ... my cat is watching TV
<csmrfx>
dmonjo: why?
<dmonjo>
coz we investing time and manhours on that :)
<shevy>
dmonjo man you seem to be too passive
<shevy>
where is the old ruby mentality "if it does not exist, we'll write it from scratch"
<shevy>
Initial release: July 2004 <--- see? in 1 year it will be 10 years
<Hanmac>
shevy my cats does it too ... but mostly they are not interested what is showing in TV
_bart has joined #ruby
<_bart>
Hi, I use God for monitoring server processes, but I got this: ERROR: Condition 'God::Conditions::ProcessExits' requires an event system but none has been loaded
<_bart>
I'm on Debian6
zigomir has quit [Quit: zigomir]
<shevy>
Hanmac my cat only watches if some animals can be seen... usually birds, but other animals too
<shevy>
humans on TV are not interesting to her
vlad_starkov has quit [Remote host closed the connection]
<dmonjo>
what are the benefits of using ruby on rails vs the other alternativ es in the market i am doing a small research now
DaltonUS has joined #ruby
DaltonUS has quit [Client Quit]
<shevy>
dmonjo you can build a huge infrastructure based on rails
<csmrfx>
!g what are benefits of rails vs alternatives
<shevy>
technical university of vienna is using rails internally for its student pages, https://tiss.tuwien.ac.at/
iamjarvo has joined #ruby
mengu_ has quit [Ping timeout: 255 seconds]
dblack_ has joined #ruby
mengu_ has joined #ruby
JarJar has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has joined #ruby
Squarepy has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
b0oh has joined #ruby
b0oh has left #ruby [#ruby]
vlad_starkov has joined #ruby
decoponi_ is now known as decoponio
malkomalko has joined #ruby
ozgura has quit [Remote host closed the connection]
buscon has joined #ruby
pskosinski has joined #ruby
chussenot has joined #ruby
justsee has quit [Quit: Leaving...]
moos3 has joined #ruby
Al___ has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
Al__ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
tommyvyo has joined #ruby
tvw has joined #ruby
hoelzro|away is now known as hoelzro
brooks_ has left #ruby [#ruby]
d2dchat has joined #ruby
khismetix has quit [Ping timeout: 244 seconds]
hashmal is now known as one[faget]
ozgura has joined #ruby
wf2f has quit []
<shevy>
whoa cool ... it seems I could actually switch to UTF-8
mengu__ has joined #ruby
tomzx_mac has joined #ruby
mengu_ has quit [Ping timeout: 272 seconds]
piotrj has quit [Remote host closed the connection]
pyrac_ has quit [Read error: Connection reset by peer]
<hordo_>
is there any way to control client browser with ruby?
<dmonjo>
watir is your friend
<hordo_>
but watir controls server browser
<hordo_>
i can't manage it to start client browser
Mattx has quit [Quit: Leaving]
<dmonjo>
what is a servert
<dmonjo>
browser
dmerrick has joined #ruby
<hordo_>
i have a website that runs on a server
d34th4ck3r has joined #ruby
<hordo_>
i want to open a new browser when i click on a button
<hordo_>
but watir opens the browser on the server
d34th4ck3r has quit [Client Quit]
<hordo_>
and not my comp
solancer has joined #ruby
<hoelzro>
you mean click a button in the website?
<hoelzro>
or...?
<hordo_>
yes
invisime1 is now known as invisime
verysoftoiletppr has quit []
<hoelzro>
why not use JS then?
<hoelzro>
that's what it's for
<solancer>
hey guys is there a way to use heroku with a custom domain(with gapps email) without a credit card ?
<workmad3>
hordo_: you're trying to use a headless browser driver to automate a browser that your site has no control over?
iamjarvo has quit [Quit: Leaving.]
adamjleonard has joined #ruby
<hordo_>
i don't need headless
<hordo_>
i just want to control the browser of the user accesing my site
<csmrfx>
lol
<dmonjo>
impossible :)
<csmrfx>
NEWSFLASH: you cant
<hordo_>
like open a new tab, go to an url .......
codecop has quit [Remote host closed the connection]
<workmad3>
hordo_: you can do some of that with javascript
<csmrfx>
hordo_: learn html
Choobie has joined #ruby
<solancer>
anyone ?
<workmad3>
hordo_: you can't do that with a server-side process
lupine has quit [Excess Flood]
<csmrfx>
solancer: put it in an iframe in your own domain
babykosh has joined #ruby
<workmad3>
hordo_: and yes, as csmrfx just implied, you can do some of that just through standard HTML
<csmrfx>
(ie. looks like its from your domain)
<csmrfx>
hordo_: aka <a> -tag
<workmad3>
<a href="example.com" target="_blank">Opens in a new tab</a>
<solancer>
csmrfx, sure sure....
<hordo_>
it's a bit complicated than that
<workmad3>
hordo_: it always is :P
<hordo_>
you se the new opened tab has forms that i need to fill automaticaly
<solancer>
csmrfx, you do the same for your client websites ?
sam_ has joined #ruby
sam_ has quit [Client Quit]
<workmad3>
hordo_: but your current desire of an approach isn't workable... you can't control arbitrary client-side browsers with a watir instance running on the server
<dmonjo>
fill automatically use
<dmonjo>
cookies
<csmrfx>
hordo_: Oh, you mean you want the clients CC# to be set automatically in their newly opened browser tab?
<csmrfx>
8P
jrajav has joined #ruby
lupine has joined #ruby
<hordo_>
smth like that
sam_ has joined #ruby
<solancer>
csmrfx, no wonder western countries outsource work to Bangalore...
tvw has joined #ruby
<csmrfx>
solancer: well, seems you're not up to the task!
jerius has joined #ruby
<solancer>
csmrfx, iframe ? seriously ?
JohnBat26 has quit [Remote host closed the connection]
<solancer>
csmrfx, you must be real n00b
<csmrfx>
sure
* csmrfx
is a noob, only made web apps since 1996
kaichanvong has joined #ruby
im0b has joined #ruby
yshh has quit [Remote host closed the connection]
kpshek has quit []
mmitchell has joined #ruby
sam_ has quit [Client Quit]
<solancer>
csmrfx, putting them in iframes
Zespre has quit [Quit: leaving]
BrokenCog has joined #ruby
sam_ has joined #ruby
<csmrfx>
solancer: and you just joined my Pro-Dev's Super Ignore List
sam_ has quit [Client Quit]
<solancer>
csmrfx, LIC
<csmrfx>
8)
<csmrfx>
next!
sam_ has joined #ruby
sam_ is now known as samuelj
samuelj has quit [Client Quit]
sam_ has joined #ruby
<BrokenCog>
hello. I'd like to avoid a check 'if o.nil?' within a colection.each { |o| } block.
<BrokenCog>
is it possible to have something of a .each_not_null ?
joshman_ has quit [Quit: Computer has gone to sleep.]
JohnBat26 has joined #ruby
<BrokenCog>
ah ... crap. I miss characterized the problem. totally ignored that the collection is itself a container, I would like to skip the block when a specific element of the container is null: https://gist.github.com/anonymous/50d757b8dabf3db9ce36
<BrokenCog>
ah. I was reading backwards up that page :) should have read forward, and I'd have seen that method! thanks. I'll try it.
maycon_ has quit [Changing host]
maycon_ has joined #ruby
maycon_ is now known as maycon
<sailias>
BrokenCog: even though you're changing the code some pointers
<sailias>
if !name.blank? should be unless name.blank?
takeru has quit [Ping timeout: 276 seconds]
<sailias>
if <condition> then
samuelj has left #ruby [#ruby]
<sailias>
oh please don't write 'then' at the end of if statements
<MrZYX>
I prefer if name.present? in that case
mneorr has joined #ruby
<sailias>
i'd agree, just illustrating 'unless'
davetherat has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
davetherat has joined #ruby
llaskin1 has joined #ruby
<sailias>
i don't like an else on unless statements
<llaskin1>
Minitest output: Errno::ENOENT: No such file or directory - diff.exe -u C:/Users/Leo/AppData/Local/Temp/expect20130228-8176-n7d76w C:/Users/Leo/AppData/Local/Temp/butwas20130228-8176-z42ra2
<llaskin1>
But I don't call diff anywhere in my code...What does this mean?
samuelj has joined #ruby
<BrokenCog>
If I need the conditional, then I'll modify the ActiveRecord to purge records with null names, and then do a query for valid records. that why the record processing block doesn't need think about the validity of the record.
<BrokenCog>
let me try the reject mechanism first.
ExxKA has quit [Quit: This computer has gone to sleep]
<csmrfx>
llaskin1: probably means there is dependency on diff.exe in the code
apod has quit []
samuelj has left #ruby [#ruby]
ffranz has joined #ruby
whitedawg has quit [Quit: Leaving.]
mneorr has quit [Ping timeout: 244 seconds]
v0n has joined #ruby
BizarreCake has joined #ruby
Gues_____ has joined #ruby
hackeron_ has quit [Ping timeout: 255 seconds]
d2dchat has quit [Remote host closed the connection]
enebo has joined #ruby
mulinux has quit [Quit: mulinux]
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
jtharris is now known as jtharris-heyilik
jtharris-heyilik is now known as jtharris
hackeron has joined #ruby
Guest62431 is now known as digifiv5e
jtharris is now known as jth-CAKEISTHEBES
jth-CAKEISTHEBES is now known as jtharris
digifiv5e is now known as Guest53251
Guest53251 is now known as guyz
jeffreybaird has joined #ruby
guyz has quit [Changing host]
guyz has joined #ruby
jamesfung14 has joined #ruby
ExxKA has joined #ruby
atyz has joined #ruby
tomzx_mac has quit [Ping timeout: 260 seconds]
bean has joined #ruby
pdamer has joined #ruby
pdamer has quit [Client Quit]
JarJar has quit [Ping timeout: 260 seconds]
Gwyxx has quit [Read error: Connection reset by peer]
d2dchat has joined #ruby
<llaskin1>
sailias: thanks, trying your solution now
Virunga has quit [Remote host closed the connection]
JarJar has joined #ruby
Gwyxx has joined #ruby
tcstar has joined #ruby
mibitzi has quit [Quit: Leaving]
ner0x has joined #ruby
<BrokenCog>
MrZYX: using: actions.reject{ |r| r.command.nil? or r.command == "" }.each as the fields aren't always nil, but sometimes empty fields.
<hoelzro>
alternatively, you could do r.command.empty?
<MrZYX>
you're in rails, right?
kayloos has quit [Quit: kayloos]
malkomal_ has quit [Remote host closed the connection]
<BrokenCog>
hoelzro: ah. I'll try that!
<BrokenCog>
MrZYX: yes.
bluOxigen has joined #ruby
malkomalko has joined #ruby
<MrZYX>
so empty?, or .blank? or .present? with select instead of reject
sk87 has quit [Read error: Connection reset by peer]
jtharris is now known as jtharris-coffee
<BrokenCog>
well, i need select the invalid records, just process them differently. So, I don't want to do two selects.
Gwyxx has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
rcigni has joined #ruby
fermion has quit [Ping timeout: 246 seconds]
<BrokenCog>
I suppose it wouldn't be a huge hit to worry about two different selects, but then i'd need two different processing loops, which is what I really mean by avoiding rather than select queries.
<dblack_>
BrokenCog: maybe use partition
ph^ has joined #ruby
`p has quit [Remote host closed the connection]
<BrokenCog>
dblack_: haven't seen it ... let me look.
<BrokenCog>
yes, that looks like it could be used. I'll see how to rework the loop using that. thanks!
clocKwize has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
`p has joined #ruby
<llaskin1>
Xeago: aaha ok
vlad_starkov has quit [Remote host closed the connection]
clocKwize has joined #ruby
JarJar has quit [Quit: Leaving]
brum has joined #ruby
achamian has joined #ruby
Kudos has joined #ruby
solars has joined #ruby
_nitti has joined #ruby
senayar has joined #ruby
sk87 has joined #ruby
_MJ_4Q_ has joined #ruby
interactionjaxsn has joined #ruby
<solars>
a question, I've got some apps that connect to webservices (e.g. rabbitmq, or some http services) - we have multiple DNS entries pointing to different replicated servers. I wondered if it is somehow possible to have ruby automatically reconnect (for TCP) if the service is down, using different DNS records for the domain? (I hope this was undestandable)
brum has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
pyrac has quit [Ping timeout: 276 seconds]
anonymuse has joined #ruby
zigomir has joined #ruby
jtharris-coffee is now known as jtharris
chussenot has quit [Quit: chussenot]
braoru has quit [Quit: Leaving]
arietis has joined #ruby
<Hanmac>
solars: isnt that a #rubyonrails question?
<shevy>
apeiros_ yeah, possibly :)
JarJar has joined #ruby
chussenot has joined #ruby
<csmrfx>
solars: of course it is possible
himsin has quit [Ping timeout: 255 seconds]
<shevy>
got a question...
frem has joined #ruby
<shevy>
I have a method, div. I also have a module called Div, which allows me to change the default values to the method div()
JaTochNietDan has quit [Ping timeout: 245 seconds]
joshman_ has joined #ruby
pdamer has joined #ruby
<shevy>
this works so far, but my next idea was to also change or overrule the default values to the arguments of div() right within the block passed to div() itself, by using the module Div (inside the block)
Zespre has joined #ruby
JaTochNietDan has joined #ruby
<shevy>
hmm awful idea? I think I will try to make a minimal example on pastie soon
Gues_____ has quit [Quit: Computer has gone to sleep.]
girija has joined #ruby
nat_home has joined #ruby
pyrac has joined #ruby
dr_bob has left #ruby [#ruby]
jeffreybaird has quit [Ping timeout: 248 seconds]
<solars>
Hanmac, nope.. ruby
<solars>
csmrfx, are there any plugins or builtin things to do this?
grafthez has quit [Quit: Leaving]
Slivka has joined #ruby
<Hanmac>
solars its not so an ruby question, more an network one ...
SCommette has joined #ruby
Morkel has joined #ruby
<solars>
Hanmac, nope.. because ruby has to do this..
<solars>
afaik, but thats why I'm asking here
<solars>
but it's not related to rails in any way
sailias1 has joined #ruby
mando has joined #ruby
puppeh has quit [Remote host closed the connection]
shadowshell has joined #ruby
<shevy>
solars I think the pool of ruby users with a lot of network experience is fairly small here
Czupa has joined #ruby
sk87 has quit [Read error: Connection reset by peer]
<hoelzro>
solars: what are you trying to do?
<solars>
no problem, just thought I'd ask in any way
<csmrfx>
solars: a plugin for changing a DNS-server?
iamjarvo has joined #ruby
<solars>
the scenario is as follows:
<csmrfx>
solars: who knows, sounds bit strange.
rippa has joined #ruby
beiter has joined #ruby
sailias has quit [Ping timeout: 255 seconds]
<solars>
I've got 2 IPs with a replicated instance of a database or other service
<solars>
the domain, fu.example.com resolves to both of the IPs
<solars>
browsers can do an automatic fallback to one of those IPs in case the other one is not accessible
khismetix has joined #ruby
<solars>
the question is: does ruby do this as well? and if not; how can I tell ruby to do so
<csmrfx>
lol
<csmrfx>
first of all, usually you dont let web-apps conf your network
<hoelzro>
solars: it should
<solars>
TCPSocket.gethostbyname returns both IPs, so it could be the case that it is done automatically
<solars>
hoelzro, makes me think so too...
<hoelzro>
it's really up to the socket library that Ruby's using
<solars>
csmrfx, sorry?
<solars>
hoelzro, exactly
<csmrfx>
secondly, depending on the OS, DNS address is just a line in a conf -file.
wallerdev has joined #ruby
<hoelzro>
but it might just pick one and connect to that
<solars>
hoelzro, yeah, the question is if it uses the other one if the first one fails.. but it might be the case if gethostbyname already returns multiple IPs
<solars>
csmrfx, I think you misunderstood the scenario and what I'm trying to do
<csmrfx>
having a script that changes between two DNS IP's or conf -files and kicks a restart buttons should be trivial.
<csmrfx>
solars: probably so
<hoelzro>
solars: I'm not sure, but considering how it works with IPv4 vs IPv6, that makes sense
<hoelzro>
TIAS
<solars>
yeah..
<solars>
I'll just give it a try
<solars>
thought someone might know it.. just in case I'm testing it in the wrong way
<dmonjo>
i am reading socket.gets into a string, i would like to check for the 7th line of that string to see if a pattern matches, how can i check on the 7th line? means 7ths socket.get iteration
wallerdev has quit [Client Quit]
<v0n>
hum, there's many doc for how to compress a string with zlib, but not how to compress several files (as you'd do with a UI)
<v0n>
any experience there?
<dmonjo>
i dont want to keep counting every line received, just want to trigger pattern matching on the 7th data line the server is sending to my socket
<csmrfx>
lol
<csmrfx>
you dont count the lines, you wont know if it's 7th or not.
mikepack has joined #ruby
<dmonjo>
i want to count only thr first 7
<dmonjo>
then forget about it
theRoUS has joined #ruby
<csmrfx>
dmonjo: well, test if line count is under 7, and increment a counter, if 7, do magix, and else do nothing
<dmonjo>
if received_line == 7 && incoming_data == /.*/ ...
<bean>
hoelzro: you don't want to have it setup like that... You should have your app one ONE ip and have 2 servers share that IP with something like heartbeat
<dmonjo>
wanted to see if any shortcut can do done on that
amacleod has joined #ruby
markalanevans has joined #ruby
<amacleod>
What's the best way to get the first element of an array that matches a predicate? myarray.select { |e| pred?(e) }.first #?
<Hanmac>
amacleod .find
<amacleod>
I didn't see find in the docs. I must have forgotten to look at Enumerable again. :(
<shevy>
Hanmac, "Posted by Tukai Patra (loveconcept)"
jamesfung14 has quit [Read error: Operation timed out]
BrokenCog has left #ruby [#ruby]
<shevy>
what are those nicks
<pandawarrior>
what's the best way to try something and, if it fails try something else?
<aedornm>
I had a major rewrite going of this project, but I don't think it's going to be in time (tomorrow) so now I have to backport to something buggy just to make a dead line. It's like being covered in mud and then sprayed with disinfected - You're still dirty, but oh so bacteria free!
<shevy>
ILoveRuby... loveconcept... all those lovers
<shevy>
aedornm yeah... I ended up ruining 3 of my projects that way (personal projects only though)... I was 50% finished, about... then suddenly no longer had ANY fun, and abandoned them
<pandawarrior>
in the rescue do i need to give details of the exception or can i just use the rescue with no arguments?
<shevy>
I usually just start from scratch these days, after it's all a mess :P
<Hanmac>
shevy i think this are lovecraft monsters in disguise :P
<shevy>
Yeah Hanmac
<aedornm>
shevy: yeah, this one was from all scratch. Made with love, leprechauns, and ponies.
<amacleod>
pandawarrior, you can use a bare rescue if you just want to recover from everything.
nOStahl has joined #ruby
<nOStahl>
hi guys
mneorr has quit [Ping timeout: 264 seconds]
<pandawarrior>
lovely
<nOStahl>
guys I'm having issues , I think passenger can't find the gem_home I have in config/GEM_HOME the dir setup and the apache vhost config has the setenv path/to/gems and i've restarted apache and even the whole server and still getting error from passenger asking if I ran bundle install cause it can't find gems
<pandawarrior>
thanks
<v0n>
there's no standard tar lib?
<workmad3>
amacleod: 'rescue' on its own doesn't rescue from everything... it only rescues from all StandardError derived exceptions ;)
geggam_wk has joined #ruby
<amacleod>
workmad3, thanks for the clarification. :) I wasn't aware there was stuff that rescue wouldn't catch.
<_bart>
This sidekiq god recipe is constantly creating new sidekiq instances, and leaving the old ones in place, but why?
<shevy>
sidekick headkick asskick deadkick
ThePicard has joined #ruby
<shevy>
hmm or rather *deathkick
<shevy>
ruby users have a strange way to name their gems
geggam_wk has quit [Client Quit]
<shevy>
God.watch do
<nOStahl>
lol
<nOStahl>
thor
geggam_wk has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<nOStahl>
sexp
jonahR has joined #ruby
<Hanmac>
shevy i normaly have a helper syndrome ... that means i want to help everyone if i can ... but this guy makes me that i want tu punch some faces ...
<shevy>
yeah, but I like the name thor actually
<shevy>
thor wauki - lightning hammer of steel!
<ClownZ_>
lol
<shevy>
nOStahl there is a gem called sexp?
<shevy>
isn't that lisp?
<ClownZ_>
i guess we all have tendency to help people if we can hanmac
<shevy>
Hanmac hehe
<nOStahl>
sexp_something or other
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
<shevy>
helping can be fun, if the answer can be simple and the one asking for help isn't trolling
pyrac has quit [Ping timeout: 276 seconds]
<nOStahl>
shevy: think you can help me point in the right direction on my issue?
keyvan has quit [Remote host closed the connection]
<shevy>
if he is a troll, he is just stealing time. and if the answer isn't simple, it often means a lot of time investment, not always simple :(
hogeo has joined #ruby
<shevy>
nOStahl I dont know much about bundler
<nOStahl>
passenger pops up in the browser and says runtime error bundler couldn't find some gems.
<shevy>
I usually end up using only .gem files
takeru has joined #ruby
<nOStahl>
I have checked EVERY place I know of and they all have the dir to the gems set...
<shevy>
yeah, no idea, last time I tried bundler it did not want to work. I think workmad3 here is a bundler guru
khismetix has joined #ruby
aapzak has quit [Ping timeout: 255 seconds]
<shevy>
and Hanmac, especially Hanmac
<nOStahl>
workmad3: ! hi :P
<nOStahl>
lol
tagrudev has quit [Remote host closed the connection]
skattyadz has quit [Quit: skattyadz]
<shevy>
this error does not say which gems are missing nOStahl right?
<nOStahl>
i even tried it all out with a wrapper script to set production and dir to gems
<nOStahl>
it has you setup a gem_home in your /home/ dir
monkegjinni has quit [Remote host closed the connection]
<nOStahl>
so as I followed the guide then somewhere down the road it tells you to setup a new user after I had already ran bundle install as my admin user
<dmonjo>
can you call Thread.new in initialize() ?
<nOStahl>
then I cp the gems folder to the new user for canvas and changed owner of it etc.
<dmonjo>
my Thread.new is not being called there
<workmad3>
nOStahl: you can't just copy the gems folder around
<nOStahl>
re-ran bundle install as that user and it showed all systems go
<workmad3>
nOStahl: also, for a prod system, it's better to do 'bundle install --deployment'
<workmad3>
nOStahl: which I'd suggest you do ;)
<nOStahl>
what does that do
<nOStahl>
I'm very new to ruby stuff :P
piotrj has quit [Remote host closed the connection]
<workmad3>
nOStahl: primarily, 'bundle install --deployment' will install all your gems to a vendor/bundle directory instead of to a global gem repo
<workmad3>
nOStahl: it does some other stuff too, such as ensuring the Gemfile.lock matches the Gemfile, is checked into source control, and doesn't attempt to do any extra dependency resolution
<nOStahl>
workmad3: will this be simple to change or do I need to start all over?
piotrj has joined #ruby
<workmad3>
nOStahl: you shouldn't need to change anything
<workmad3>
nOStahl: just run 'bundle install --deployment' in your canvas directory
brjannc has quit [Ping timeout: 272 seconds]
<nOStahl>
k trying
rickmasta has quit [Ping timeout: 252 seconds]
jocellyn has joined #ruby
monkegjinni has joined #ruby
Choobie has quit [Remote host closed the connection]
<nOStahl>
so I don't have to worry about the GEM_HOME in config/GEM_HOME pointing to a user dir in home?
DrCode has quit [Remote host closed the connection]
generalissimo has joined #ruby
daniel_- has joined #ruby
railsbros_dirk has quit [Quit: railsbros_dirk]
<nOStahl>
or passenger pointing to that gem dir
<nOStahl>
or apache vhost config pointing to it as well
iamjarvo has quit [Read error: Connection reset by peer]
couscous has quit [Read error: Operation timed out]
Targen has joined #ruby
clocKwize has quit [Quit: clocKwize]
iamjarvo has joined #ruby
mockra has quit [Ping timeout: 276 seconds]
forrest has joined #ruby
<workmad3>
nOStahl: you shouldn't need to, bundler actually handles all of that detail and changes it around appropriately when you go with a bundled path (like the --deployment option does)
<nOStahl>
k
<nOStahl>
trying it now I took snapshot of the vm first
DrCode has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<nOStahl>
$GEM_HOME/bin/bundle install this is the command I was using before
<workmad3>
nOStahl: yeah, use that but with a '--deployment' option
<nOStahl>
ok
jtharris is now known as jtharris-HUNGRY
lethjakman has joined #ruby
jtharris-HUNGRY is now known as jtharris
razibog has quit [Ping timeout: 246 seconds]
endzyme has joined #ruby
fedza has joined #ruby
solars has quit [Read error: Operation timed out]
endzyme has quit [Read error: Connection reset by peer]
banister`sleep has quit [Remote host closed the connection]
brum has joined #ruby
jeffreybaird has joined #ruby
arya has joined #ruby
jjbohn has joined #ruby
brum has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
w400z has joined #ruby
vlad_starkov has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
ndngvr has joined #ruby
bean has quit [Ping timeout: 252 seconds]
<lectrick>
So String has a #start_with? but no end_with? ... What is the fastest possible way to check if a string ends in something? Is something faster than string =~ /suffix$/ ?
<nOStahl>
workmad3: still fetching sources :)
jonathanwallace has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.0]
d2dchat has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
<lectrick>
ok I can't read. there is an end_with? Duh.
Liquid-- has joined #ruby
Jewl94c has joined #ruby
jamesfung14 has quit [Ping timeout: 264 seconds]
Jewl94c has left #ruby [#ruby]
Axsuul has joined #ruby
Targen has quit [Ping timeout: 260 seconds]
takeru has quit [Remote host closed the connection]
eldariof has quit [Read error: Operation timed out]
chrishough has joined #ruby
takeru has joined #ruby
cs02rm0 has quit [Read error: No route to host]
jamesfung14 has joined #ruby
mercwithamouth has joined #ruby
threesome has quit [Ping timeout: 246 seconds]
skattyadz has joined #ruby
piotrj has quit [Remote host closed the connection]
jocellyn has quit [Quit: Leaving.]
sayan has quit [Ping timeout: 264 seconds]
bean has joined #ruby
pandawarrior has left #ruby [#ruby]
takeru has quit [Ping timeout: 240 seconds]
danneu has joined #ruby
piotrj has joined #ruby
piotrj has quit [Remote host closed the connection]
Weazy has quit [Quit: leaving]
Weazy has joined #ruby
love_color_text has joined #ruby
apeiros_ has quit [Remote host closed the connection]
brjannc has joined #ruby
j^2 has joined #ruby
aganov has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Zolo has joined #ruby
j^2 has quit [Client Quit]
j^2 has joined #ruby
Targen has joined #ruby
<Mon_Ouie>
Just for the record, /suffix$/ is wrong in general. "foo\nbar" =~ /foo$/
etcetera has joined #ruby
akemrir has joined #ruby
kumavis has joined #ruby
a_a_g has quit [Quit: Leaving.]
otters has quit [Ping timeout: 252 seconds]
apok has joined #ruby
_br_ has quit [Excess Flood]
otters has joined #ruby
alv-r- has joined #ruby
<dmonjo>
can we use == with regex or only =~ ?
vlad_starkov has quit [Ping timeout: 245 seconds]
_br_ has joined #ruby
banister`sleep has joined #ruby
Takehiro has joined #ruby
holaholahola has joined #ruby
one[faget] is now known as hashmal
angusiguess has joined #ruby
rippa has joined #ruby
Choobie has joined #ruby
Choobie has joined #ruby
Choobie has quit [Changing host]
chrishunt has quit [Ping timeout: 246 seconds]
_br_ has quit [Excess Flood]
mercwithamouth has quit [Ping timeout: 276 seconds]
nat_home has quit [Quit: Leaving.]
zehrizzatti has joined #ruby
<Mon_Ouie>
You can use ==. Except == is for equality.
krawchyk has quit [Remote host closed the connection]
fire has joined #ruby
verysoftoiletppr has joined #ruby
timonv has quit [Remote host closed the connection]
tjbiddle has joined #ruby
FenrirReturns has joined #ruby
Takehiro has quit [Remote host closed the connection]
codecop has joined #ruby
tcstar has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
vlad_starkov has joined #ruby
<rdark>
Having a bit of fun with yaml and dumping complex-ish data (basically a hash, with each key value being a public or private RSA key)
Takehiro has joined #ruby
ryanf has quit [Quit: leaving]
<rdark>
when I write out to the console it's fine, but as soon as I perform a to_yaml on the data it gets crapped all over. Doubly so when I do a YAML.dump out to a file - it's not even valid data
jeffreybaird has joined #ruby
tvw has quit []
tvw has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
Zolo has quit [Remote host closed the connection]
kumavis has quit [Quit: kumavis]
<dmonjo>
what is the equivalent of shift for a string? example "test".shift = "est"
Zolo has joined #ruby
mneorr has quit [Ping timeout: 255 seconds]
Choobie has quit [Quit: End]
moos3 has quit [Quit: Computer has gone to sleep.]
<shevy>
there may be around 50 of these methods, I'd like to have a very simple way to remember
Zolo has quit [Ping timeout: 246 seconds]
<lupine>
shevy, put together an environment object that has the value of "a" set, then instance_exec the block on that object, exposing a method that can change the value of a
<shevy>
hmm all these return a string btw
<lupine>
after the block is executed, you can then query the environment object
<shevy>
lupine alright, give my head a moment to understand what you wrote here :-)
dblack_ has quit [Quit: dblack_]
ssvo has quit [Remote host closed the connection]
mlr has quit [Remote host closed the connection]
MrZYX has left #ruby [#ruby]
MrZYX has joined #ruby
<shevy>
hmm ok biggest problem I have... instance_exec? hmm have to look it up
<shevy>
ohhh... "instance_exec was added to ruby 1.9 and it allows you to pass parameters to a proc." interesting
<rdark>
seems that yaml is converting the strings to binary.. Anyone know how make it not do that?
joeycarmello has quit [Read error: Connection reset by peer]
kpshek has quit []
GeorgesLeYeti has joined #ruby
akashj87 has joined #ruby
joeycarmello has joined #ruby
Vainoharhainen has quit [Ping timeout: 276 seconds]
<dmonjo>
anything wrong with this ? socket_out.gets.chomp
<dmonjo>
undefined method `chomp' for nil:NilClass (NoMethodError)
<GeorgesLeYeti>
I have a question. Let say I have an expression exp="Hello how are you?" And I want to remove words "Hello" and "are". I found tmp=exp.gsub("Hello", "") and then tmp=tmp.gsub("are", "")
nga4 has quit [Ping timeout: 252 seconds]
<dmonjo>
ok got it
<GeorgesLeYeti>
Is it possible to write this in 1 line ?
<dmonjo>
it is defined afterwards
<dmonjo>
ruby is sequential
kpshek has joined #ruby
mlr has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
tesuki has joined #ruby
_nitti has quit [Remote host closed the connection]
yalue has joined #ruby
ssvo has joined #ruby
<shevy>
GeorgesLeYeti YES
<shevy>
oops damn caps
<Hanmac>
exp.gsub(/Hello|are/, "")
<shevy>
I typed "G", then tab complete in xchat, then typed YES :-)
Liquid-- has quit [Ping timeout: 255 seconds]
<shevy>
GeorgesLeYeti you can chain methods
<shevy>
object.method1.method2.method3
<shevy>
object.method1().method2().method3()
sgmac has joined #ruby
<shevy>
object.gsub().gsub().gsub()
<shevy>
Hanmac optimized your example GeorgesLeYeti ;)
<rdark>
Seems that YAML::ENGINE.yamler='syck'
<rdark>
is the way to go :)
<shevy>
rdark no in 2.0 :(
<GeorgesLeYeti>
TY shevy and TY Hanmac i ll take your solution
<dmonjo>
test10.rb:7:in `block in negotiate_with_server': undefined method `chomp' for nil:NilClass (NoMethodError)
fermion has joined #ruby
<shevy>
lupine that's quite advanced
pyrac has joined #ruby
<dmonjo>
cant figure out the problem
sepp2k has quit [Ping timeout: 272 seconds]
<rdark>
Not much of an issue for me atm. Still 1.8.7 and 1.9.3 on stuff I'm working with
<lupine>
something like div() {|env| env.a = "foo" }
<lupine>
it's quite a lot of boilerplate though
<shevy>
lupine One thing I dont quite understand... why do we use &blk twice?
holaholahola has joined #ruby
<lupine>
shevy, so that it's passed as the block argument to instance_exec, rather than being an ordinary argument of type Proc
joshman_ has quit [Ping timeout: 276 seconds]
<lupine>
it's the same as doing instance_exec() { blk.call }
<lupine>
(a bit)
Targen has joined #ruby
francisfish has quit [Remote host closed the connection]
<lupine>
without the &, it'd be the same as instance_exec(Proc.new)
<lupine>
(again, a bit)
piotrj has joined #ruby
francisfish has joined #ruby
joshman_ has joined #ruby
jrendell has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
browndawg has joined #ruby
khismetix has quit [Ping timeout: 240 seconds]
kumavis has joined #ruby
w400z has quit []
filipe has quit [Remote host closed the connection]
<GeorgesLeYeti>
Hmm
<GeorgesLeYeti>
I have a little problem
<GeorgesLeYeti>
I want to delete <div> and </div> with gsub
mpfundstein has quit [Remote host closed the connection]
francisfish has quit [Read error: No route to host]
pyrac has quit [Ping timeout: 246 seconds]
lewis_ has joined #ruby
<GeorgesLeYeti>
i guess it s not possible with gsub(/<div>|</div>/, "") because of / in exp </div>
w400z has joined #ruby
malkomalko has quit [Remote host closed the connection]
carloslopes has quit [Ping timeout: 248 seconds]
BrianJ has joined #ruby
<lupine>
GeorgesLeYeti, it's not possible in principle
khismetix has joined #ruby
<lupine>
but gsub(/<div>|</div>\/, "") is possible
joeycarmello has joined #ruby
<lupine>
it just doesn't do what you want
w400z has quit [Client Quit]
<GeorgesLeYeti>
ho ty lupine
<LiquidInsect>
GeorgesLeYeti: Are you sure you don't want to use an HTML parser to do this?
<LiquidInsect>
er.
<LiquidInsect>
sorry wrong guy
<LiquidInsect>
no. Right guy.
<lupine>
he definitely wants a html parser, but won't use one
noop has joined #ruby
<LiquidInsect>
ah. okay...
<GeorgesLeYeti>
LiquidInsect: I can't
<lupine>
tbh, I probably wouldn't either, until it broke
aeontech has joined #ruby
<GeorgesLeYeti>
it's bit complex
devdazed has quit [Quit: Bye]
<LiquidInsect>
hey, if you can't you can't
<lupine>
GeorgesLeYeti, remember, <div
<lupine>
> is entirely valid
llaskin1 has left #ruby [#ruby]
<lupine>
and is, in fact, idiomatic in some circles
<GeorgesLeYeti>
Let say it define as texte
<alv-r->
can't you just escape the "/" with a \ ?
mpfundstein_ has quit [Ping timeout: 255 seconds]
kab60 has joined #ruby
<shevy>
lupine thanks
kab60 has left #ruby [#ruby]
devdazed has joined #ruby
<shevy>
lupine how long have you been using ruby btw? you seem quite a guru :)
newUser1234 has quit [Remote host closed the connection]
brum has joined #ruby
<lupine>
regexen can't do html comprehensively, but sometimes, you don't need comprehensive html parsing
<lupine>
shevy, main programming language at work for 4 years
newUser1234 has joined #ruby
tylersmith has joined #ruby
_nitti has joined #ruby
holaholahola has quit [Remote host closed the connection]
noxoc has quit [Quit: noxoc]
<alv-r->
GeorgesLeYeti: gsub(/<div>|<\/div>/, "") works fine (just add the \ before the /)
pdtpatrick has quit [Read error: Operation timed out]
<enroxorz-work>
does anyone know a good ruby remote jobs board?
<ddv>
enroxorz-work: Google
kpshek has quit []
Voodoofish430 has joined #ruby
holaholahola has joined #ruby
<shevy>
lupine cool, even at work! you are a lucky man
<enroxorz-work>
ddv: you truly are a paramount of succinct, useless answer. Thank you for pointing out google because without you I would surely have binged by accident.
<lupine>
shevy, if you can get the method and the block to share a binding, you can get rid of the self, I think. possibly.
* lupine
-> home
helvete has joined #ruby
kpshek has joined #ruby
<alv-r->
enroxorz-work: lol
devdazed has quit [Ping timeout: 240 seconds]
piotrj has quit [Remote host closed the connection]
brum has quit [Ping timeout: 248 seconds]
newUser1234 has quit [Ping timeout: 255 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
helvete has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 244 seconds]
jeffreybaird has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
helvete has joined #ruby
atyz has quit [Ping timeout: 264 seconds]
joast has joined #ruby
buscon has quit [Ping timeout: 272 seconds]
Lockzi has joined #ruby
helvete has quit [Client Quit]
dblack__ has joined #ruby
cupakrom- has left #ruby [#ruby]
jeffreybaird has joined #ruby
BizarreCake has joined #ruby
mephux has quit [Excess Flood]
tjbiddle has quit [Quit: tjbiddle]
mephux has joined #ruby
cupakromer has joined #ruby
holaholahola has quit [Ping timeout: 260 seconds]
ozgura has quit [Read error: Connection reset by peer]
RonScagz has joined #ruby
d2dchat has joined #ruby
ozgura has joined #ruby
dmerrick has quit [Quit: dmerrick]
threesome has joined #ruby
holaholahola has joined #ruby
wreckimnaked has quit [Read error: Operation timed out]
bricker`1A has joined #ruby
jonahR has quit [Quit: jonahR]
alvaro_o has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
bricker`LA has quit [Ping timeout: 246 seconds]
<aedornm>
Sweet... tables as formatters, javascript for simple text and links, php backend that just inserts variables into the javascript, and ... AND! ... FRAMES!
mikepack has quit [Read error: Connection reset by peer]
<banister`sleep>
aedornm: is that your creation? u were talking about job security the other day :)
<aedornm>
banister`sleep: no, I would never torture myself *this* much.
mikepack has joined #ruby
Gugs has joined #ruby
<Gugs>
hi
Gugs has left #ruby ["Saindo"]
io_syl has joined #ruby
bricker`LA has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
jeffreybaird has quit [Ping timeout: 256 seconds]
anderse has quit [Quit: anderse]
zigomir has quit [Quit: zigomir]
breakingthings has quit []
pdamer has quit [Quit: pdamer]
adeponte has joined #ruby
bricker`1A has quit [Ping timeout: 248 seconds]
alvaro_o has quit [Quit: Ex-Chat]
noxoc has joined #ruby
carloslopes has joined #ruby
jrendell has quit [Quit: jrendell]
bricker`LA has quit [Ping timeout: 248 seconds]
bricker`LA has joined #ruby
Voting has joined #ruby
holaholahola has quit [Remote host closed the connection]
GeorgesLeYeti has quit [Quit: Quitte]
<Lockzi>
Hey, I am getting really annoyed...
<Lockzi>
The path `/home/administrator/.rvm/gems/ruby-1.9.3-p374@SiriProxy/gems/siriproxy-0.11.3/plugins/SiriProxy-Domotic` does not exist.
<Lockzi>
Why do I get that when it's doing bundling?
<Lockzi>
Any hints on where to look would be appriciated
danneu has quit [Quit: WeeChat 0.3.8]
jrendell has joined #ruby
banjara has joined #ruby
_br_ has quit [Excess Flood]
vbajpai has joined #ruby
<Lockzi>
Essentially I take it like - It finds the actual source, creates the .gem file, and then it doesn't create the plugin folder in the .rvm directory
<Lockzi>
Which causes that error...
_br_ has joined #ruby
achamian has quit [Remote host closed the connection]
fedza has quit [Read error: Connection reset by peer]
geggam_wk has quit [Ping timeout: 255 seconds]
girija has quit [Ping timeout: 276 seconds]
<LiquidInsect>
vbajpai: not sure that it is installable
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<LiquidInsect>
no gemfile, so it's not intended to be a gem
<LiquidInsect>
README says "Intended as a reference implementation"
jpfuentes2 has joined #ruby
zz_Inoperable has joined #ruby
_br_ has quit [Excess Flood]
<vbajpai>
LiquidInsect: yea, I see an example in bin/ , when I try to run it, it complains about missing modules, that should come from this library
shiningblue has quit [Ping timeout: 248 seconds]
<vbajpai>
LiquidInsect: gives me a feeling this library needs to installed first, before I can use the example
ananthakumaran has quit [Read error: Connection reset by peer]
<Mon_Ouie>
You can add the lib and ext/sctp (after compiling the extension with ruby extconf.rb; make) to the load path manually
_MJ_4Q_ has quit [Remote host closed the connection]
<Mon_Ouie>
($LOAD_PATH << "…" from code; ruby -I… from the terminal)
jrendell has quit [Quit: jrendell]
alvaro_o has joined #ruby
_MJ_4Q_ has joined #ruby
hck89 has joined #ruby
ananthakumaran has joined #ruby
hiall has quit [Quit: hiall]
_br_ has joined #ruby
thone_ has joined #ruby
piotrj has joined #ruby
jamesfung14 has quit [Ping timeout: 245 seconds]
_MJ_4Q_ has quit [Remote host closed the connection]
__Big0__ has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
nga4 has joined #ruby
MaxMoon has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
jamesfung14 has joined #ruby
predator117 has quit [Ping timeout: 255 seconds]
ferdev has joined #ruby
thone has quit [Ping timeout: 240 seconds]
<Hydroxide>
is there a way for a class to have a default exception handler for all methods in the class?
predator117 has joined #ruby
kayloos has joined #ruby
ph^ has quit [Remote host closed the connection]
Stilo has joined #ruby
<aedornm>
Hydroxide: With delegation
piotrj has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 245 seconds]
brianpWins has joined #ruby
nighthwk1 has joined #ruby
aeontech has quit [Read error: Connection reset by peer]
codeFiend has joined #ruby
codeFiend has quit [Client Quit]
sn0wb1rd has joined #ruby
IrishGringo has joined #ruby
<Hydroxide>
aedornm: so nothing that allows my code to be readable to someone who isn't familiar with metaprogramming?
jekotia has joined #ruby
geggam_wk has joined #ruby
pyrac has joined #ruby
fermion has joined #ruby
banjara has joined #ruby
tjbiddle has joined #ruby
<dmonjo>
bash: fork: Cannot allocate memory
<dmonjo>
:D
MaxMoon has quit [Quit: This computer has gone to sleep]
emptyflask has quit [Ping timeout: 245 seconds]
endzyme has quit [Remote host closed the connection]
<dmonjo>
included Thread.new in an infinite loop
skattyadz has quit [Quit: skattyadz]
Vert has joined #ruby
<Lockzi>
Guys, any idea on how to solve this? http://pastiebin.com/512f9bc35b84f Where should I start to look? It works fine when I have the path specified as a git repository - but it refuses to work when installed from local path
<aedornm>
Hydroxide: It would still be readable if you inherit from Delegator, and then wrap begin/rescue around the object return in #__getobj__
skum has quit [Ping timeout: 246 seconds]
yshh has quit [Remote host closed the connection]
twoism has joined #ruby
predator117 has quit [Ping timeout: 255 seconds]
himsin has joined #ruby
dmonjo has quit [Remote host closed the connection]
<sailias1>
Lockzi: i wrote a quick blog post about using bundle config for local gem development
bradhe has joined #ruby
fedza has joined #ruby
<Lockzi>
sailias1: Interesting - URL please? :)
predator117 has joined #ruby
<sailias1>
Lockzi: let me see if i can find it, it might be too rails specific
<Hydroxide>
aedornm: so __getobj__ would return self, but wrapped in a begin..rescue block?
<Hydroxide>
aedornm: and __setobj__ would remain undefined?
<Lockzi>
I am trying to get into Ruby by create my own plugin for SiriProxy - I am NOT up to a good start… It also take a long time to test changes since it has to be bounded and installed for every change...
<Hydroxide>
aedornm: and I guess storing the object wouldn't be required since self is self, so I could skip defining an initialize method that just calls 'super' ?
<whitequark>
Lockzi: also see bundle config foo.local /path/to/foo
<sailias1>
Lockzi: my post may not help unfortunately then
<sailias1>
whitequark: that's what my suggestion is in the post above
Choobie has joined #ruby
icole has joined #ruby
<whitequark>
oh right
<whitequark>
yea, it will help
d34th4ck3r has joined #ruby
<Lockzi>
Far to much of a newbie to understand your suggestion
<Lockzi>
I'll try to read up
tenmilestereo has joined #ruby
Czupa has quit [Remote host closed the connection]
icole_ has joined #ruby
jpcamara has quit [Quit: jpcamara]
slainer6_ has quit [Remote host closed the connection]
<Lockzi>
From your post sailias1: "Up until now, using the path option was the recommended approach. " Currently I have a file in ~/.siriproxy/config.yml that specifies path: './plugins/SiriProxy-Domotic'
ryanf has joined #ruby
<Lockzi>
Is that what you meant by that sentence?
<sailias1>
Lockzi: yes
k610 has joined #ruby
<sailias1>
Lockzi: but keep in mind this is all in the scope of bundler
<sailias1>
Lockzi: my blog post that is, is all regarding bundler
<Lockzi>
Can I take it 3 steps back please. Ruby is the language, Rails is a web framework, RVM is some kind of versioning system of different Ruby versions (Like PHP 4.2 and PHP 5.3 eg.), what is bundler? The Compiler?
<Hydroxide>
aedornm: so far I've inherited from Delegator, done an initialize method that calls super(self), done a __getobj__ as described, done an empty __setobj__(obj), and added a method that just throws an exception. calling that method doesn't trigger __getobj__'s rescue block
maligree has joined #ruby
<Hydroxide>
Lockzi: a tool for installing gems and following their dependencies
<aedornm>
Hydroxide: actually, you'd have to override more now that I think about it.
<sailias1>
Bundler is a gem for managing application dependencies
<sailias1>
Lockzi: you can create a 'Gemfile' and put your gem requirements in there
<Hydroxide>
honestly if it's getting this complicated I'll just wrap the uses of the class in a suitable begin...rescue
BRMatt has joined #ruby
<Hydroxide>
it only makes sense if simple
Xeago_ has joined #ruby
Xeago is now known as Guest79772
Guest79772 has quit [Killed (pratchett.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
FenrirReturns has quit [Ping timeout: 252 seconds]
<Lockzi>
sailias1: https://github.com/Lockzi/SiriProxy-Domotic I already have one. I basically copied an existing plugin, stopped the name of it and replaced it with mine - yet I get errors and the other one does not… Sooo weird
brum has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest65215
Guest65215 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
Xeago has quit [Killed (pratchett.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago is now known as Guest21976
Xeago_ has joined #ruby
Guest21976 has quit [Killed (morgan.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
softbit has quit [Remote host closed the connection]
brum has quit [Ping timeout: 248 seconds]
squidBits has joined #ruby
endzyme has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest74939
Guest74939 has quit [Killed (calvino.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
beiter has quit [Quit: beiter]
yacks has quit [Read error: Connection reset by peer]
<tjbiddle>
#rspec is a bit dead - Anyone know if there is a way to test if a method is using it's parent class's method, or is overriding functionality?
Xeago_ has joined #ruby
Xeago has quit [Killed (adams.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
chrishough has quit [Quit: chrishough]
mafolz has quit [Remote host closed the connection]
<banister`sleep>
tjbiddle: you mean if an *object* is using its parent class's method
interactionjaxsn has quit [Remote host closed the connection]
<banister`sleep>
or its own method
Xeago is now known as Guest1189
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Guest1189 has quit [Killed (card.freenode.net (Nickname regained by services))]
<banister`sleep>
tjbiddle: use this: obj.method(name).owner
<Mon_Ouie>
Do you want to make sure it calls super or just that it doesn't override it?
Slivka has quit [Ping timeout: 255 seconds]
<Hydroxide>
aedornm: yeah, the whole need for a proxy is too ugly for this use case. I can see how I could hide the ugly inside a gem or whatever, but the convenience is not worth the obscure pain for my colleagues
<banister`sleep>
it's a pretty stupid method if all it does is calls super
<banister`sleep>
though i guess i can think of a couple of use cases
<Mon_Ouie>
It could call super and do other stuff around
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Xeago has quit [Killed (zelazny.freenode.net (Nickname regained by services))]
nomenkun has joined #ruby
<dmonjo>
i need someone expert with Threads to assist me
<dmonjo>
when i remove Thread.new the code works fine, when i add it the program exists with no error
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
<dmonjo>
in def negotiate_with_server
<dmonjo>
what am i doing wrong?
takeru has joined #ruby
<tjbiddle>
banister`sleep: No, none of them are just calling super :p That'd be silly. I'll give that a shot - thanks!
JohnBat26|2 has joined #ruby
<Hydroxide>
aedornm: now if only I could override something like method_called instead of method_missing
<Hydroxide>
aedornm: but I doubt that exists :)
<aedornm>
Hydroxide: Ah.. well, unfortunately nothing simpler to specifically rescue exceptions per class basis. (As far as I know, anyway)
astronaute has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<astronaute>
hello all
<Hydroxide>
I could maybe override method_added to alias methods out of the way and wrap them individually in begin..rescue...end
<Hydroxide>
but that's still kind of awkward in terms of stomping on the namespace
Xeago_ has joined #ruby
Xeago has quit [Killed (pratchett.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<aedornm>
Not called, but you can hook into method_added if you want to go that way, but that's quite a bit more code to understand
<astronaute>
Can someone please help me install pry gem on ruby 2.0.0-p0 here is my error: http://pastebin.com/XPW6QJni
<aedornm>
But at least then you could make it into a module and extend your classes with it
<Hydroxide>
this is almost solved by 2.0's Module#prepend or rails's alias_method_chain, but I'm not using either 2.0 or rails and I don't think Module#prepend works where you want it to apply to all things without restriction
<banister`sleep>
astronaute: that's not pry, that's pry-debugger
Xeago_ has joined #ruby
Xeago has quit [Killed (adams.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
DrShoggoth has joined #ruby
<banister`sleep>
astronaute: 'debugger'doesn't yet work on 2.0
<dmonjo>
can you include an infinite loop in a thread?
<banister`sleep>
astronaute: just instal plain 'pry' in the meantime
<astronaute>
banister`sleep yes debugger, you're right, is there any ETA on it ?
<dmonjo>
i am assuming a thread can read all global variables
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
<banister`sleep>
astronaute: no idea
Xeago_ has joined #ruby
Xeago is now known as Guest43581
Guest43581 has quit [Killed (card.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<astronaute>
banister`sleep okay thank you
<banister`sleep>
astronaute: try pry-nav
apok has joined #ruby
<banister`sleep>
astronaute: it has a lot of the same functionality and doesnt need debugger
<banister`sleep>
astronaute: or pry Mon_Ouie's pry_debug gem
takeru has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
Xeago is now known as Guest60103
Guest60103 has quit [Killed (morgan.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<banister`sleep>
Hydroxide: you can just wrap them after the fact
<astronaute>
banister`sleep I'll look into it, thank you :)
<banister`sleep>
Hydroxide: using metaprogramming
jeffreybaird has joined #ruby
<dmonjo>
how vsn i troubleshoot if my program is exiting with no error?
nighthwk1 has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
<Hydroxide>
banister`sleep: that's what the whole conversation has been
newUser1234 has joined #ruby
<Hydroxide>
hm, I have an interesting idea
Xeago_ has joined #ruby
Xeago is now known as Guest17134
Guest17134 has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
<Hydroxide>
well yeah, I don't want to fall into the same overly metaprogrammed trap that I get annoyed at in e.g. sinatra or rails (have you tried wanting a slight variation on an ActiveSupport::Calculations-enhanced DateTime class? not fun)
`p has joined #ruby
<Hydroxide>
(my variation worked, but some of the ActiveSupport-provided methods returned a bare DateTime, not with my changes)
<banister`sleep>
actually all that shit is so impossible now with Module#prepend
i_s has joined #ruby
beiter has joined #ruby
<Hydroxide>
I'm still on 1.9 and it doesn't make sense for my team to migrate - that said, I'd certainly use 2.0 if i were starting something now
<banister`sleep>
you have to do something like: before_filter instance_methods(false).select { |v| instance_method(v).owner == self }
<banister`sleep>
Hydroxide: no i mean, Module#prepend just breaks a bunch of assumptions and forces u to have more complicated code
<Hydroxide>
depends on what you want to do - it was already mostly possible with alias_method_chain right?
<aedornm>
Hydroxide: Just remember to add a repeat catch when using method_added and define_method
<banister`sleep>
Hydroxide: i just explained what i want to do :) my point is that instance_methods(false) no longer just selects the methods on the receiver
<banister`sleep>
it can also give methods on prepended modules
theRoUS has quit [Quit: Leaving]
<Hydroxide>
at this point I'm probably going to skip adding this goo, but I would want to understand :)
<aedornm>
If I remember correctly, those together will just loop forever
love_color_text has quit [Read error: Connection reset by peer]
<Hydroxide>
banister`sleep: sure
<xibalba>
My wife wants to learn a programming language, thinking Ruby is the best fit. Anyone have any general guidlines or starting points I should send to her?
<Hydroxide>
xibalba: don't listen to the above conversation, it's confusing :)
<banister`sleep>
xibalba: _why's poignant guide
devdazed has quit [Quit: Bye]
<Hydroxide>
(that's a recommendation)
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
devdazed has joined #ruby
<xibalba>
banister`sleep, do you have a link to this guide?
<banister`sleep>
xibalba: it's all over google
<banister`sleep>
it's very famous
* Hydroxide
hands google a tissue to wipe it off
<xibalba>
this look right? _why's poignant guide
<xibalba>
Why's (Poignant) Guide to Ruby
<xibalba>
mislav.uniqpath.com/poignant-guide/
<banister`sleep>
xibalba: yeah
<banister`sleep>
yes
<xibalba>
this looks like a comic :|
<banister`sleep>
xibalba: it's an entertaining way to learn ruby
<xibalba>
k, thought i was getting trolled at first
<banister`sleep>
xibalba: noobie's find it really accessible
icole has quit [Remote host closed the connection]
<dmonjo>
anyone free to read my code? what to see what is the wrong thing i am doing with the Thread.new http://pastebin.com/4Rjd1rC5
<shevy>
xibalba some like it, some hate it. I was among those who hated it. but it is creative, one has to give it to _why
katie89 has left #ruby [#ruby]
<xibalba>
I got her one of the Ruby programming books too, can't remmeber the title off the top of ym head but it's popular
<shevy>
dmonjo and how should they find out?
<banister`sleep>
xibalba: what langauge do you come from?
<shevy>
dmonjo also use a pastie with ruby syntax highlighting man
cantonic has joined #ruby
<xibalba>
well I haven't really touched alot of code in about 8 years. I originally programmed mostly PHP, some C#, learned ASM x86 and Java but didn't use themin production
<dmonjo>
trying to open a socket and throw it in a thread
<xibalba>
shevy, no but i'll add it to the list
<xibalba>
i've mostly been talking to her about OO concepts
<shevy>
xibalba she must start with that!
<xibalba>
I am a sys admin for vmware clusters
<shevy>
forget OO :P
<banister`sleep>
xibalba: ruby does OO really well
<xibalba>
i've noticed, much better than the bastardized OO of PHP
<shevy>
xibalba this is the wrong thing to learn ruby, the real way is to consider ruby as poetry
bradleyprice has joined #ruby
<xibalba>
i've noticed the Ruby community if significantly different from others too
<banister`sleep>
xibalba: dont listen to shevy, he's been programming ruby for 4 years and he's still a noob ;)
<banister`sleep>
:P
<banister`sleep>
jk
dblack__ has quit [Quit: dblack__]
SCommette has quit [Quit: SCommette]
<shevy>
xibalba depends which community, rails is to a large degree non-overlapping, but there are many long time rails users who also have lots of non-rails related gems
cviebrock has joined #ruby
<xibalba>
She has an Econ degree, dunno if that's a good fit for programming too or if it's just useless
Lemtzas_ is now known as Lemtzas
<shevy>
*non-overlapping with the "ruby community"
<banister`sleep>
xibalba: what kind of programs does she want to write?
<dmonjo>
getting this error: test10.rb:51:in `<main>': undefined method `join' for nil:NilClass (NoMethodErro
d2dchat has quit [Read error: Connection reset by peer]
<aedornm>
xibalba: I have an art degree.. it really doesn't matter.
<shevy>
dmonjo you have a nil object there
d2dchat has joined #ruby
<xibalba>
she doesn't know yet, i was thinking some financial or statistical apps might be good for her. she's great at math
<cviebrock>
hey all .. would this be an okay place to ask a question about god? And I mean godrb.com … :)
<shevy>
dmonjo you must ensure that the code you write will not lead to nil objects
eldariof has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 246 seconds]
<dmonjo>
getting this error: test10.rb:51:in `<main>': undefined method `join' for nil:NilClass (NoMethodErro
<dmonjo>
sorry
<dmonjo>
by mistake
<shevy>
yes we read you before!
<banister`sleep>
xibalba: well unfortunately, there are other (much less fun/enjoyable) languages that are far superior to rubh when it comes to financial/statistical stuff
interactionjaxsn has joined #ruby
<dmonjo>
was reexucting a shell command
<shevy>
shall I copy paste it for you so we have it a third time :P
<dmonjo>
:)
<shevy>
dmonjo nil object does not have .join method
<banister`sleep>
xibalba: such as R, Julia, python
<xibalba>
banister`sleep, i think ruby is a good introduction to programming in general though. she dabbled in basic php about 10 years ago, enjoyed it but her father told her to get a business/econ degree and not to do programming
<dmonjo>
it shouldnt be nil should be the thread fired inside a method
<banister`sleep>
xibalba: but she'll likely have a harder time learning those
<banister`sleep>
xibalba: given all the simliarities between python/ruby, i actually found learning python a real boring chore, and gave up and switched to ruby instead
icole has joined #ruby
samuel02 has joined #ruby
<xibalba>
what makes python better for math than ruby?
nachtwandler has quit [Quit: leaving]
<xibalba>
I bought her an iMac do you know if Ruby is builtin?
icole has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
hck89 has quit [Ping timeout: 256 seconds]
elico has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 244 seconds]
icole_ has joined #ruby
<lewis_>
xibalba: there's more library math related
<xibalba>
gotcha
percival__ has quit []
<banister`sleep>
xibalba: yes ruby is built-in, but it's an old version, luckily it's fairly easy to upgrade it
Villadelfia has quit [Ping timeout: 260 seconds]
ebobby has joined #ruby
icole_ has quit [Remote host closed the connection]
<shevy>
xibalba also remember python has more users
<xibalba>
great, do you recommend any sort of IDE for a newbie? I dont think VIM is gonna cut it.
<shevy>
xibalba you can see it on IRC too, ruby here 858, #python around 1200
ExxKA has quit [Quit: This computer has gone to sleep]
mneorr has joined #ruby
<banister`sleep>
xibalba: rubymine
<xibalba>
is it free?
Villadelfia has joined #ruby
<xibalba>
nope
d2dchat has quit [Remote host closed the connection]
<lewis_>
how does the sort operator sort from high to low -when overriding the spaceship operator
stkowski has joined #ruby
tesuki has quit [Quit: Leaving.]
lewis_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
rcigni has quit [Quit: rcigni]
<dmonjo>
if i have @string in a Thread1, can i get the latest state of @string in Thread2? they both are fired aftereach from the parent main thread
Zta has quit [Ping timeout: 255 seconds]
<dmonjo>
@string is actually a socket stream in thread1
<dmonjo>
so i want to use that socketstream in thread 2
Xeago has quit [Remote host closed the connection]
<shevy>
xibalba no really
<shevy>
xibalba it is the wrong way to go about wanting an IDE
Xeago has joined #ruby
reset has joined #ruby
<xibalba>
how do you mean
BizarreCake has quit [Read error: Connection reset by peer]
zehrizzatti has quit [Quit: Leaving...]
mahmoudimus has joined #ruby
<shevy>
xibalba always think in the simplest possible way in ruby
icole has joined #ruby
joofsh has quit [Remote host closed the connection]
harumph has joined #ruby
<banister`sleep>
xibalba: blergh, ignore shevy :)
Zolo has joined #ruby
Zolo has quit [Remote host closed the connection]
<xibalba>
give me some context, do you mean simplest as in use the simplest IDE like VIM?
<banister`sleep>
xibalba: a lot of newbs love rubymine, it's just a bit ram hungry, but it's supposed to be very helpful when you're starting out
<shevy>
no, vim is awfully complicated
<xibalba>
my buddy is a vim fiend, wont use anything else
<shevy>
xibalba a gtk widget, like gtksourceview, is enough to serve as an editor
icole_ has joined #ruby
<xibalba>
I upgraded her box to 12GB of RAM so RubyMine should be fine on that I would guess
cascalheira has joined #ruby
<shevy>
yeah, once your brain is addicted to vim, it finds other editors boring
icole_ has quit [Remote host closed the connection]
<lewix>
class movie def <=>(other_movie) other_movie.rank <=> @rank end , and when I call movie.sort it sorts from highest to lowest rank
SCommette has joined #ruby
<lewix>
why
angusiguess has joined #ruby
jamesfung14 has quit [Ping timeout: 245 seconds]
ph^ has quit [Remote host closed the connection]
babykosh has quit [Ping timeout: 240 seconds]
ph^ has joined #ruby
<lewix>
xibalba: i use textmate
chussenot has quit [Quit: chussenot]
<lewix>
xibalba: who have you been talking about between
<xibalba>
i dont understand
<xibalba>
one moment, phone call
berserkr has quit [Quit: Leaving.]
<lewix>
xibalba: i see a lot of her, she, my buddy, I'm confused
peregrine81 has quit [Quit: Computer sleeping.]
<amacleod>
Presumably the antecedent to "she" is "my wife".
icole has quit [Ping timeout: 255 seconds]
<banister`sleep>
lewix: did u try: @rank <=> other_movie.rank
peregrine81 has joined #ruby
<lewix>
banister`sleep: no but I assume it would rank from low to high. I just want to understand the behind the scene.
<aedornm>
great.. ajax calls.
<xibalba>
lewix, oh the she is my wife, the buddy is my friend who is a ruby dev. i think he's in this channel now
d2dchat has joined #ruby
<lewix>
xibalba: so your friend is a ruby dev, your wife wants to change career and what are you = )
<shevy>
xibalba well, vim has a big learning curve right?
<banister`sleep>
xibalba: re shevy: noise >> signal
<shevy>
xibalba now when your wife is a programmer, it surely pays off to become as good as possible with every keystroke that you use in your next 50 years
<shevy>
xibalba if she would program just for fun, she wouldn't need anything fancy, especially nothing that would be complicated to use
<shevy>
xibalba try sublime text or geany perhaps
<xibalba>
i think she wants to make a career out of it, but she wants to try it out first to see if she enjoys it
<xibalba>
i've seen sublime before and that looked amazing
duosrx has joined #ruby
brum has joined #ruby
<lewix>
xibalba: textmate
gosshedd has joined #ruby
holahola has joined #ruby
<lewix>
banister`sleep: wake up, you have a call for duty to enlighten me with the spaceship operator
<xibalba>
thanks for the info gents, i'll bbiab.
jonathanwallace has quit [Ping timeout: 246 seconds]
holahola has left #ruby [#ruby]
rezzack has joined #ruby
babykosh has joined #ruby
dayepa has quit [Read error: Connection reset by peer]
carraroj has quit [Quit: Konversation terminated!]
chussenot has joined #ruby
holahola has joined #ruby
brum has quit [Ping timeout: 246 seconds]
Targen has quit [Ping timeout: 246 seconds]
malkomalko has joined #ruby
predator117 has quit [Ping timeout: 245 seconds]
predator117 has joined #ruby
DrShoggoth has joined #ruby
_nitti has quit [Remote host closed the connection]
atyz has joined #ruby
ozgura_ has joined #ruby
ozgura has quit [Read error: Connection reset by peer]
jrajav has joined #ruby
<aedornm>
Same submission, same packet back... different pages.
jjbohn is now known as jjbohn|afk
budmang_ has joined #ruby
wmoxam has quit [Read error: Connection reset by peer]
holahola has quit [Remote host closed the connection]
budmang has quit [Ping timeout: 255 seconds]
xardas has joined #ruby
atyz has quit [Ping timeout: 246 seconds]
chrishough has quit [Quit: chrishough]
jamesfung14 has joined #ruby
<dmonjo>
@socket_out.puts(@client_stream.gets) is only returning the first words, cutting on a whitepace for example hello world is only returning hello
<dmonjo>
shoudl i use gets.line?
Eldariof-ru has quit []
jrendell has joined #ruby
<aedornm>
inline CSS, inline JS
pskosinski has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby
freakazoid0223 has joined #ruby
Xeago is now known as Xeago_
Cicloid has joined #ruby
Xeago_ is now known as Xeago
mikurubeam has joined #ruby
mikekelly has quit [Ping timeout: 264 seconds]
Honeycomb has joined #ruby
Eiam has joined #ruby
dv_ has quit [Quit: No Ping reply in 180 seconds.]
decoponio has quit [Quit: Leaving...]
mneorr has quit [Ping timeout: 245 seconds]
bradleyprice has quit [Remote host closed the connection]
snearch has joined #ruby
chrishough has joined #ruby
snearch has quit [Max SendQ exceeded]
oposomme has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mikekelly has joined #ruby
fire has quit [Ping timeout: 248 seconds]
snearch has joined #ruby
baba has joined #ruby
<oposomme>
Hi, I would like to know how to match any characters exclude those who are in tags like <foo>bar</foo> I dont know how to use ? anchors
snearch has quit [Max SendQ exceeded]
whowantstolivef1 has joined #ruby
JohnBat26|2 has quit [Remote host closed the connection]
snearch has joined #ruby
jasonkuhrt has joined #ruby
snearch has quit [Max SendQ exceeded]
shevy has quit [Ping timeout: 272 seconds]
nachtwandler has joined #ruby
snearch has joined #ruby
<oposomme>
Nokogiri text method returns me text inside tags but also other subtags if they exists and I don't want those tags
jonathanwallace has joined #ruby
Retistic has joined #ruby
snearch has quit [Max SendQ exceeded]
cg433n has joined #ruby
akemrir has quit [Ping timeout: 240 seconds]
cg433n has left #ruby [#ruby]
snearch has joined #ruby
snearch has quit [Max SendQ exceeded]
Spooner has joined #ruby
snearch has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
snearch has quit [Max SendQ exceeded]
sdavis has joined #ruby
sheenobu has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
blahwoop has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
timonv has joined #ruby
IrishGringo has quit [Ping timeout: 245 seconds]
Extreme has joined #ruby
_nitti has joined #ruby
shevy has joined #ruby
hackeron has quit [Ping timeout: 264 seconds]
baba has quit [Quit: WeeChat 0.4.0]
ozgura_ has quit [Remote host closed the connection]
<Atte_Ruby>
Anyone know what could be wrong: trying to set-up Ruby on Rails for the first time according to railstutorial.org instructions. I'm doing the "demo app" but when I try to start the server it says "A server is already running"
<Atte_Ruby>
Can't shut it down by pressing ctrl+c either it seems
<Atte_Ruby>
And there's nothing on localhost:3000
<Atte_Ruby>
Yesterday it still worked
<Atte_Ruby>
Incredibly frustrating
<shevy>
the railsers are on #rubyonrails
<Honeycomb>
Restart your terminal application
<Atte_Ruby>
Yeah I've done that numerous times
zeade has joined #ruby
<shevy>
probably its hanging in your terminal
hiroyuki has joined #ruby
marr has joined #ruby
<shevy>
kill all ruby scripts, then restart
<shevy>
the script there
pdamer has joined #ruby
adambeynon has joined #ruby
fasta has quit [Ping timeout: 240 seconds]
statarb3 has joined #ruby
hackeron has joined #ruby
jpcamara has joined #ruby
chrrz has joined #ruby
_nitti has quit [Ping timeout: 255 seconds]
<aedornm>
Atte_Ruby: Linux?
fermion has joined #ruby
<Atte_Ruby>
No
<Atte_Ruby>
Windows
Morkel_ has joined #ruby
<Atte_Ruby>
Thanks shevy, going to Google instructions on how to kill all ruby scripts :D
<shevy>
Atte_Ruby many ways
<shevy>
I usually do "psax | grep ruby"
<shevy>
but I am lazy
<shevy>
alias psax='ps ax'
<aedornm>
ctrl-shift-escape, go to Processes, and see if you have anything running ruby.exe
<shevy>
ohhh
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
<shevy>
windows, did not read that
<shevy>
that's annoying Atte_Ruby! come to linux or mac
cpruitt has joined #ruby
<shevy>
on linux you quickly get the PIDs listed on the left side, then you cann kill it
richardjortega has joined #ruby
jpcamara has quit [Ping timeout: 246 seconds]
<shevy>
like: kill -9 4389
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
<tylersmith>
shevy: ps ax | grep rub[y]
<aedornm>
pgrep ruby
<tylersmith>
and it won't return the grep itself
MaxMoon has quit [Quit: This computer has gone to sleep]
<shevy>
tylersmith cool, did not know that
<shevy>
first time I see a [] there
<tylersmith>
it's a regex
<shevy>
ah I see
<tylersmith>
that can't match itself. it's a neat little trick an ops guy showed me
kirchevsky has quit [Ping timeout: 264 seconds]
sepp2k1 has quit [Remote host closed the connection]
sk87 has joined #ruby
nomenkun has quit [Remote host closed the connection]
* TTilus
is used to doing grep -v grep
<Xeago>
I thought there were other options to exclude the saerch program
<tylersmith>
there may be, but my unix foo is weak
<Xeago>
the regex thingy is cool tho
<Atte_Ruby>
shevy: I'm definitely going to get a mac next :)
noxoc has joined #ruby
blahwoop has joined #ruby
<aedornm>
expensive
noxoc has quit [Read error: Connection reset by peer]
fasta has joined #ruby
jgarvey has joined #ruby
budmang_ has quit [Read error: Operation timed out]
gosshedd has quit [Ping timeout: 240 seconds]
FenrirRe1urns has joined #ruby
icole has joined #ruby
noxoc has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
Stilo has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
icole_ has joined #ruby
IrishGringo has joined #ruby
brum has joined #ruby
budmang has joined #ruby
bradleyprice has joined #ruby
DrShoggoth has quit [Quit: Leaving]
geggam_wk has quit [Remote host closed the connection]
FenrirReturns has quit [Ping timeout: 260 seconds]
<Xeago>
aedornm: not as much as you think it is
<Xeago>
but that is a discussion for another medium
_nitti has joined #ruby
jsilver has joined #ruby
slashslashbaka has joined #ruby
ddd has joined #ruby
icole has quit [Ping timeout: 246 seconds]
hiroyuki has quit [Ping timeout: 245 seconds]
ddd is now known as Guest34862
elaptics`away is now known as elaptics
rodj has joined #ruby
brum has quit [Ping timeout: 248 seconds]
evbogue has joined #ruby
khismetix has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
schaerli has joined #ruby
takeru has joined #ruby
<lectrick>
How can I run a set of 3 unit tests at once without reloading the stack each time? So the order would be 1) load Rails stack 2) run test 1 3) run test 2 4) run test 3. I don't need them to run in parallel (yet)
noxoc has quit [Quit: noxoc]
geekbri_ has joined #ruby
jsilver has quit [Remote host closed the connection]
<amacleod>
banister`sleep, if you select a word and hit Alt-F3, it selects every occurrence of that word in the document. You can then type over the word like a single selection, only it types it for each instance.
<shevy>
h1(2323409845, 1782647144)
<banister`sleep>
amacleod: ah ok
<shevy>
amacleod no real idea what it is haha... have not seen it before
<amacleod>
Oh, if it's numbers then maybe it's exponentiation, or maybe it's some crazy bitwise thing.
bawigga has quit [Quit: Computer has gone to sleep.]
bawigga has joined #ruby
francisfish has joined #ruby
locriani has quit [Read error: Connection reset by peer]
locriani has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
horofox_ has joined #ruby
Beoran_ has joined #ruby
<i_s>
whowantstolivef1: add_two is a method object, so if you want the result from it you gotta .call it
<realDAB>
whowantstolivef1: i think the idea is to write def add_two(n) and implement the method
sailias1 has quit [Ping timeout: 264 seconds]
<realDAB>
def add_two(n); n.next.next; end or whatever
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
khismetix has quit [Quit: Computer has gone to sleep.]
Atte_Ruby has quit []
geson has left #ruby [#ruby]
Beoran__ has quit [Ping timeout: 255 seconds]
testingb0t has quit [Quit: Leaving.]
c0rn has joined #ruby
Guest64410 has quit [Quit: Leaving...]
emergion has quit [Quit: Computer has gone to sleep.]
codecop has quit [Remote host closed the connection]
bryanjswift has joined #ruby
d2dchat has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
locriani_ has joined #ruby
geekbri_ has quit [Remote host closed the connection]
Zta has quit [Quit: Leaving.]
Zta has joined #ruby
sonda has quit [Remote host closed the connection]
fixl has joined #ruby
ClownZ_ has quit [Ping timeout: 276 seconds]
pdamer has quit [Quit: pdamer]
fedza has quit [Ping timeout: 248 seconds]
mando_ has joined #ruby
schaerli has joined #ruby
geggam_wk has joined #ruby
maxmanders has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
zehrizzatti has joined #ruby
JeanMertz has quit []
<whowantstolivef1>
i_s: and realDAB thank you. i will try asap
locriani has joined #ruby
<pandawarrior1>
ellooo. when i use #clear for an array it prints out the contents of the array on the screen. is there a way for me to clear/empty an array silently?
locriani_ has quit [Read error: Connection reset by peer]
<amacleod>
pandawarrior1, are you talking about interactively in irb?
<pandawarrior1>
no, on the command line
<canton7>
then you're doing something else as well. pastie your code?
<pandawarrior1>
k….
<pandawarrior1>
one sec..
Rick has joined #ruby
Rick is now known as Guest3841
wr has quit [Quit: Leaving]
xrq` is now known as xrq
bawigga has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Remote host closed the connection]
ebobby has quit [Ping timeout: 255 seconds]
<pandawarrior1>
canton7 yup, you're right i am doing something else and i've figured out what it is..
fsperling has quit [Ping timeout: 264 seconds]
<pandawarrior1>
cheers
kold has quit [Remote host closed the connection]
bricker`LA has quit [Quit: leaving]
<canton7>
heh, irc makes you psychic
mengu__ has quit [Quit: Konversation terminated!]
<Xeago>
duckdebugging :D
sheenobu has quit [Quit: sheenobu]
maxmanders has quit [Ping timeout: 260 seconds]
samuel02_ has joined #ruby
malkomalko has quit [Read error: Connection reset by peer]
<dmonjo>
if i create a thread named thread1 and define a local variable x in that thread, can i access that variable from the main thread using thread1.x ?
ryanf_ has joined #ruby
malkomalko has joined #ruby
bawigga has joined #ruby
zehrizzatti has quit [Quit: Leaving...]
samphippen has joined #ruby
zoned has quit [Quit: zoned]
ph^ has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 248 seconds]
Criztian has joined #ruby
<pandawarrior1>
i love it when all that reading finally starts to pay off and you start writing code that makes sense and looks good
stkowski has quit [Quit: stkowski]
<dmonjo>
class Test12
<dmonjo>
@x = 12
<dmonjo>
print i.@x
<dmonjo>
i = Test12.new
<dmonjo>
end
<samir>
hi all. I'm trying to build a gem file using gem build foobar.gemspec, which depends on other gems I've build. Is there a way to tell it to look in a paritular directory for the other gems?
mikurubeam is now known as ahokaomaeha
<dmonjo>
can you access sucha variable in ruby? or need to declare a method that returns x?
ryanf_ has quit [Ping timeout: 248 seconds]
buscon has joined #ruby
<canton7>
dmonjo, you can, but it's not too pretty. the normal method is to create a function called x which returns @x
<canton7>
or, rather get attr_reader :x to do it for you
<dmonjo>
i think the only way is using Thread.current
<dmonjo>
to publish thread info into the main one
invisime has quit [Quit: Leaving.]
<dmonjo>
any comments?
nazty has joined #ruby
takeru has joined #ruby
rodj has quit [Quit: Page closed]
Nisstyre-laptop has joined #ruby
whowantstolivef1 has quit [Quit: quit]
hiroyuki has joined #ruby
oposomme|away has quit [Quit: Leaving...]
takeru has quit [Ping timeout: 260 seconds]
anteaya has joined #ruby
schaerli has joined #ruby
chrishough has joined #ruby
dv_ has joined #ruby
Mon_Ouie has joined #ruby
mengu has joined #ruby
tish has quit [Ping timeout: 272 seconds]
schaerli has quit [Remote host closed the connection]
hiroyuki has quit [Ping timeout: 255 seconds]
i_s has joined #ruby
sheenobu has joined #ruby
budmang has quit [Read error: No route to host]
bluOxigen has quit [Ping timeout: 240 seconds]
horofox_ has quit [Quit: horofox_]
i_s has quit [Client Quit]
nazty has quit [Quit: Lost terminal]
nga4 has quit []
qhartman has joined #ruby
<qhartman>
having trouble with gems, this the place to ask, or is there a better channel?
sheenobu has quit [Client Quit]
etcetera has quit []
<ryanf>
qhartman: here or #ruby-lang is probably your best bet
<shevy>
qhartman yeah we are the gem experts
Mon_Ouie has quit [Ping timeout: 245 seconds]
jpcamara has joined #ruby
geggam_wk has quit [Remote host closed the connection]
buscon has quit [Remote host closed the connection]
<qhartman>
Cool. This is on Centos 6. I installed gems 1.6.2 from the tarball using "ruby setup.rb --no-format-executable"
<qhartman>
(done this on centos 6 hundreds of times)
<whitequark>
aren't rubygems bundled with 1.9?
<whitequark>
qhartman: are you using 1.8 in 2013?
<qhartman>
and now none of the gems I install seem to be working, failing with various errors. Here's one from trying to install the format gem: https://gist.github.com/qhartman/5060744
phantasm66 has quit [Quit: *sleeeep….]
<qhartman>
whitequark, yes, using 1.8.7, have legacy apps that need it.
chrrz has joined #ruby
<whitequark>
qhartman: you might want to know that ruby 1.8 is EOL and will receive its last security update this summer
<qhartman>
whitequark, yeah, we're moving that way, but aren't there yet
peregrine81 has quit [Quit: Computer sleeping.]
i_s has joined #ruby
<whitequark>
qhartman: as a temporary migration strategy, both jruby and rubinius have 1.8 modes which will be supported for quite some time
<whitequark>
especially jruby is good with compatibility.
<qhartman>
whitequark, I'll definitely keep that in mind. Any suggestions for getting around the immediate problem? Any specific info I can provide that will help?
i_s has quit [Client Quit]
nazty has joined #ruby
Honeycomb has joined #ruby
<whitequark>
qhartman: downgrade rdoc
<whitequark>
to something of 1.8 era, definitely older than 4
<whitequark>
or just pass --no-ri --no-rdoc
chrishunt has joined #ruby
yours_truly has joined #ruby
<qhartman>
whitequark, k, ty
mfcabrera has joined #ruby
mercwithamouth has joined #ruby
atyz has quit [Quit: Leaving...]
mando_ has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
hiroyuki has joined #ruby
etcetera has joined #ruby
ckrailo has joined #ruby
harumph has quit [Ping timeout: 255 seconds]
adkron has quit [Ping timeout: 264 seconds]
wmoxam has quit [Quit: leaving]
yours_truly has quit [Quit: Leaving]
icole has joined #ruby
dv_ has quit [Ping timeout: 244 seconds]
icole_ has joined #ruby
adamjleonard has quit [Quit: Leaving...]
jerius has quit [Ping timeout: 240 seconds]
i_s has joined #ruby
__Big0__ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 255 seconds]
LS\MFT has joined #ruby
hiroyuki has quit [Ping timeout: 248 seconds]
icole has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
tish has joined #ruby
woolite64 has joined #ruby
mercwithamouth has joined #ruby
Bosma has quit [Ping timeout: 260 seconds]
Guest3841 has quit [Remote host closed the connection]
pskosinski has joined #ruby
woolite64_ has quit [Ping timeout: 248 seconds]
huoxito has quit [Quit: Leaving]
Bosma has joined #ruby
ffranz has quit [Quit: Leaving]
theRoUS has quit [Ping timeout: 276 seconds]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
alanp_ has joined #ruby
alanp has quit [Disconnected by services]
alanp_ is now known as alanp
icole_ has quit [Remote host closed the connection]
kpshek has quit []
ckrailo has quit [Ping timeout: 276 seconds]
grayson has quit [Quit: Computer has gone to sleep.]
hiroyuki has joined #ruby
nergy has quit []
havenn has joined #ruby
forrest has quit [Quit: Leaving]
zoonfafer has joined #ruby
jjbohn is now known as jjbohn|afk
kristofers has quit []
ph^ has joined #ruby
HecAtic has joined #ruby
icole has joined #ruby
dv_ has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
icole_ has joined #ruby
<pandawarrior1>
does anyone know what the leftmost rows in a table are called? row columns?
<workmad3>
pandawarrior1: how can a row be leftmost?
ckrailo has joined #ruby
<pandawarrior1>
in excel the leftmost rows are labelled a,b,c etc
<workmad3>
pandawarrior1: a row spans the entire table
kpshek has joined #ruby
<workmad3>
pandawarrior1: do you mean cells?
zigomir has quit [Quit: zigomir]
hiroyuki has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
ph^_ has joined #ruby
LS\MFT has quit [Remote host closed the connection]
<pandawarrior1>
yeah
ph^ has quit [Ping timeout: 245 seconds]
icole has quit [Ping timeout: 260 seconds]
<pandawarrior1>
the leftmost cells
<pandawarrior1>
heading cell?
<workmad3>
pandawarrior1: that's the best I can think of to call them
LS\MFT has joined #ruby
<workmad3>
pandawarrior1: row headings
<pandawarrior1>
yup, i use that
<pandawarrior1>
cheers :)
<aedornm>
In Excel, the row header is the grayish - colored column containing the numbers used to identify each row in the worksheet
e-dard has joined #ruby
endzyme has quit [Remote host closed the connection]
<e-dard>
Hi is anyone aware of anything similar to Capybara but event-driven (asynchronous)?
<pandawarrior1>
aedornm: yeah, that's the stuff i meant
babykosh has quit [Ping timeout: 276 seconds]
<e-dard>
Seems capybara is synchronous so very slow due to waiting for request responses.
ckrailo has quit [Ping timeout: 276 seconds]
zoned has joined #ruby
chussenot has quit [Quit: chussenot]
Takehiro has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
mfcabrera has quit [Quit: This computer has gone to sleep]
solidoodlesuppor has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
mercwithamouth has quit [Ping timeout: 240 seconds]
<aedornm>
That doesn't make sense... do you want asynchronous or event driven?
<aedornm>
or asynchronous and event driven
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
chrishough_ has joined #ruby
workmad3 has quit [Read error: Operation timed out]
ckrailo has joined #ruby
chrishough has quit [Ping timeout: 255 seconds]
chrishough_ is now known as chrishough
<Xeago>
pandawarrior1: usually you have your subjects horizontally
anteaya has left #ruby ["Leaving"]
<Xeago>
and the metrics vertically (top of table)
icole has joined #ruby
<Xeago>
in a performance test, you have the products below eachother
Virunga has quit [Remote host closed the connection]
<Xeago>
and their qualities next to each other
<pandawarrior1>
Xeago: sounds a bit confusing
<Xeago>
however depending on the type of analysis/view or opinion you want to depict you can flip it ;P
icole_ has quit [Ping timeout: 246 seconds]
kpshek has quit []
<e-dard>
aedornm: *yawns* sorry, I realise they are different.. I mean event-driven
<e-dard>
aedornm I would normally use something like Scrapy in Python…
<Xeago>
The rownumbers, and the columnalphabeticallynumered
<Xeago>
are both called headings
<pandawarrior1>
oh
<Xeago>
they can be toggled in the layout section of the stupid ribbon
<Xeago>
I usually turn those off, together with gridlines
maxmanders has quit [Quit: Computer has gone to sleep.]
Al__ has quit [Quit: Al__]
<pandawarrior1>
so i can use: vertical_headings and horizontal_headings in my program?
<Xeago>
whatever makes sense
<Xeago>
I don't know :P
<pandawarrior1>
:)
<Xeago>
just know that excel calls it headings
<Xeago>
I'd call it headings, and numbering maybe
<pandawarrior1>
i'll nick excels names ;)
<Xeago>
but I think vertical_headings and horizontal_headings is fine too
<Xeago>
maybe even better
<pandawarrior1>
yeah
<Xeago>
depending on the context
<Xeago>
not all data makes sense on a numbered spreadsheet
brum has quit [Ping timeout: 245 seconds]
<pandawarrior1>
in my particular context those names are cool
<Xeago>
I always turn it off, because I see it fulfilling no extra information once the document is done
<pandawarrior1>
true, but this dta will
seich- has quit [Read error: Operation timed out]
<pandawarrior1>
s/dta/data
<Xeago>
you might want to consider including the numbering as part of the data
<aedornm>
e-dard: You probably want an HTTP client, and then parse the results with Nokogiri. Might want to look into Faraday, as it can use different adapters, including em-http.
<Xeago>
not as part of the visualization program
<pandawarrior1>
umm
<e-dard>
aedornm: do any of those traditional frameworks interpret JS like capybara does though?
the_jeebster has quit [Quit: Leaving.]
<e-dard>
That's tha advantage of CB as I see it — it's built for acceptance testing of web-apps so acts just like a modern webkit browser
<aedornm>
Right... about that - no.
ckrailo has quit [Quit: Computer has gone to sleep.]