<hololeap>
if anyone could take a look at that i would really appreciate it
Takle has quit [Ping timeout: 260 seconds]
pu22l3r has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 265 seconds]
ph8 has joined #ruby
thisguy123 has quit [Ping timeout: 246 seconds]
JoshGlzBrk has joined #ruby
<banister>
hololeap i don't really get what's going on in there... @mutex has to be shared between threads in order for it to have any effect, but in your example @mutex i local to each thread so it's meaningless
<banister>
hololeap there's a few other things in there that don't make a lot of sense to me either
<banister>
hololeap i don't have time now, but i suggest you read a tutorial on threading primitives, cos at first blush (unless you're doing something subtle/clever that i can't see at first blush) that code appears really confused
<hololeap>
the idea was for each thread to have a mutex so it can lock while it is doing work, that way the thread can be shut down cleanly
echooo has joined #ruby
<hololeap>
the mutex locks while it is working on each iteration and unlocks when it is done. the stop method uses the same mutex so it doesn't kill the thread while in the middle of an iteration
x77686d has quit [Quit: x77686d]
<hololeap>
that's the idea anyway. shouldn't this work?
<hololeap>
i can't think of a reason why this wouldn't work, but if you test it, it behaves kind of strangely
benzrf is now known as benzrf|offline
bricker`work has joined #ruby
echooo1 has joined #ruby
echooo has quit [Ping timeout: 246 seconds]
fuhgeddaboudit has joined #ruby
tokik has joined #ruby
manzo has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
iamjarvo has joined #ruby
manzo has quit [Ping timeout: 246 seconds]
oo_ has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
bricker`work has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
arup_r has joined #ruby
lnormous has quit [Ping timeout: 240 seconds]
x77686d has joined #ruby
tyll_ has joined #ruby
Photism has joined #ruby
rkalfane has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
karupa has left #ruby ["Leaving..."]
tyll has quit [Ping timeout: 240 seconds]
mary5030_ has joined #ruby
qmfnp has joined #ruby
Dude007 has quit [Remote host closed the connection]
<tmoore>
OK so the problem is likely that there's no guarantee that the fetcher thread won't just re-acquire the same mutex
xorax has quit [Client Quit]
<hololeap>
tmoore: so there is no queuing system to handle which thread gets the lock?
<tmoore>
it's not guaranteed that the order that threads try to acquire the lock is the order that they will be scheduled
<tmoore>
another way to do this:
<tmoore>
make the method stop set @stop = true
<tmoore>
in your loop, break if @stop
spicerack has joined #ruby
<hololeap>
tmoore: i had considered that. i just couldn't understand WHY it didn't work
cmxu has joined #ruby
<tmoore>
(or use 'until @stop' instead of loop)
livathinos has joined #ruby
<tmoore>
hololeap: are you running on Linux by any chance?
<hololeap>
tmoore: yes
<tmoore>
yeah so Linux doesn't use a first-come first served algorithm for scheduling threads that are waiting on a lock
<tmoore>
some OSes do
goodenough has joined #ruby
<hololeap>
i thought ruby handled threads internally
<tmoore>
FIFO is intuitive but not always optimal
<tmoore>
hololeap: not since 1.9 I think
<hololeap>
ok, so when multiple threads are waiting for a lock, there's no guarantee which one will get it
<hololeap>
i will remember that
<tmoore>
with multithreading, you have to be _very_ careful about what is and what is not actually guaranteed by the API
<tmoore>
because the behaviour is likely to be very different depending on OS, number of CPUs, what else is happening on the machine, today's weather, etc :-)
<tmoore>
and what I said about setting @stop and checking @stop won't work reliably on JRuby and Rubinius unless you put a mutex around @stop
sumark has quit [Remote host closed the connection]
<tmoore>
in which case you might have the same problem
bluOxigen has quit [Ping timeout: 255 seconds]
<hololeap>
tmoore: thank you. you're the first one to give me an answer. if you have a SO account you can write an answer and i will accept it. but you don' have to
livathinos has quit [Ping timeout: 272 seconds]
<tmoore>
heh sure
<hololeap>
:D
NoNMaDDeN has quit [Remote host closed the connection]
justin_pdx has quit [Quit: justin_pdx]
sumark has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tmoore>
actually on second thought... condition variable might not be appropriate for this case... sorry I'll try to write something more coherent in Stack Overflow ;-)
<hololeap>
at the very least, I can use `unless @stop; do stuff; end`
JohnBat26 has joined #ruby
renderful has quit [Ping timeout: 250 seconds]
byprdct has joined #ruby
msmith_ has quit [Ping timeout: 272 seconds]
tagrudev has joined #ruby
rbrs has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
<tmoore>
hololeap: I think the key thing though is that you don't want to wrap your whole do_stuff block in a mutex
Morkel_ has joined #ruby
<tmoore>
because otherwise, any other thread trying to stop it will have to wait
govg has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tmoore>
and there's a good chance that given the choice between scheduling the thread doing the stopping, and scheduling the thread trying to do another iteration of the loop, the kernel will prefer the latter (because then it doesn't have to do a context switch)
<hololeap>
true, which is why i created individual threads to handle calling FetcherThread#stop
<tmoore>
either way
<hololeap>
your solution is much better, but why put `@stop = true` inside a synchronize block?
<tmoore>
your fetcher thread shouldn't be holding the lock while it's doing the work, only for a brief moment in between each loop
<tmoore>
hololeap: the synchronize blocks around @stop aren't strictly necessary on MRI because of the GIL
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
<tmoore>
but on other Rubies they might be
<tmoore>
on JRuby for example... the JVM has strict rules around when changes made in one thread are "published" to other threads
starkhalo has quit [Ping timeout: 272 seconds]
<hololeap>
what race condition would this prevent? at the very worst, it would only run do_stuff once more than expected, right?
<shevy>
does one of you guys have an elegant solution - could be a library too - for the following problem
<tmoore>
hololeap: so for example a variable write on one thread wouldn't be seen by other threads without the synchronize
<shevy>
I may have a long line of a string "abc... \n" <--- it ends with a newline. I can only display 30 characters, but I want to keep whole words
<shevy>
if I would do string[0,30] I may end up with an incomplete word
<shevy>
so I would need a better solution
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
nonks has quit [Ping timeout: 255 seconds]
<tmoore>
basically, as a rule of thumb, if you have data shared between threads, you need to synchronize access to it or do something else to guarantee that the changes are "published" to other threads
<hololeap>
shevy: activesupport has something like that in its String core extension
Xeago_ has quit [Remote host closed the connection]
nrsk has joined #ruby
Xeago has joined #ruby
<agent_white>
Also
rkazak_ has quit [Quit: Sleep.....ing....]
Xeago_ has joined #ruby
<agent_white>
I'm learning a bit about passing blocks as method parameters. It seems cool!... but what's a scenario in which you would do that? Maybe I just have no use-cases for it at the moment.
sinkensabe has quit [Remote host closed the connection]
msmith_ has joined #ruby
caugello|brb is now known as kartouch
JoshGlzBrk has joined #ruby
alec-c4 has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
Xeago_ has quit [Remote host closed the connection]
kwd__ has quit [Quit: Leaving.]
kwd has joined #ruby
chinaski has quit [Quit: Leaving]
<hanmac1>
agent_white: maybe you have a Map object and you want to add an enumerator for each layer then you might do: def each_layer(&block); return to_enum(__method__) unless block_given?; @layers.each(&block); return self; end with something like that you can access the layer but the layers array is protected ...
<agent_white>
hanmac1: Ooo...
<agent_white>
hanmac1: Just what I was looking for! Thank you! :D
msmith_ has quit [Ping timeout: 240 seconds]
<shevy>
agent_white I use this to cascade blocks downwards between different methods
<agent_white>
shevy: Care to share a teeny snippet example?
<shevy>
div( id: 'main_content') {{ colourize_in_pink: true } <-- and then the yielded block will get passed towards the code that handles that instructional hash in yet another method
<shevy>
I forgot a } too
zhtrsd has joined #ruby
alex88 has joined #ruby
<agent_white>
Ahhh!
<agent_white>
I need to learn ruby's fancy things.
timonv_ has quit [Remote host closed the connection]
<shevy>
it's best when you find a use case
<shevy>
I didn't understand the &foo thing for a long while
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
psy has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonks has joined #ruby
havenwood has quit [Remote host closed the connection]
echooo has joined #ruby
Xeago has joined #ruby
charliesome has joined #ruby
codecop has quit [Remote host closed the connection]
echooo1 has quit [Ping timeout: 260 seconds]
vyorkin has joined #ruby
vyorkin has quit [Client Quit]
valeriansaliou has quit [Client Quit]
valeriansaliou has joined #ruby
apeiros has joined #ruby
hellangel7 has quit [Remote host closed the connection]
rbrs has joined #ruby
Tricon has joined #ruby
shock_one has joined #ruby
msmith_ has joined #ruby
davasaurous has quit [Remote host closed the connection]
jacobat has quit [Ping timeout: 240 seconds]
<shock_one>
banister: have you ever thought of improving multiline commands support in pry? For example, opening the current line in an external editor (like BASH does with C-x C-e), or bringing the whole multiline command when it was executed and then I pressed up. I think I could help with that if you're interested.
<tobiasvl>
wow, TIL about C-x C-e
livathinos has quit [Remote host closed the connection]
NoNMaDDeN has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
william3 has joined #ruby
davedev24_ has quit [Remote host closed the connection]
hololeap has quit [Remote host closed the connection]
davedev24_ has joined #ruby
Dude007 has joined #ruby
<agent_white>
I think the loser is the person who chooses not to learn either vim or emacs.
<shock_one>
I like this one from ZSH, shevy. If you have a file ~/projects/my_project/app/controllers/awesome_controller.rb, you can open it with "vim ~/p/m/a/c/a <TAB>"
Dude007 has quit [Read error: Connection reset by peer]
rshetty has quit [Remote host closed the connection]
Nahra has quit [Ping timeout: 255 seconds]
Hobogrammer has quit [Ping timeout: 246 seconds]
nrsk has quit [Ping timeout: 256 seconds]
dumdedum has quit [Ping timeout: 260 seconds]
<gr33n7007h>
that's the only criticism I have about pry this exactly "bringing the whole multiline command when it was executed and then I pressed up" otherwise awesome!!
<william3>
pretty awesome feature of zsh
a___ has quit [Ping timeout: 245 seconds]
<shevy>
ewww
<shevy>
I could never remember the ~/p/m/a/c/a
davedev24_ has quit [Ping timeout: 260 seconds]
<shevy>
I simply use aliases :-)
<shock_one>
gr33n7007h: you may want to know that typing 'edit' will open this command in your editor. It's not perfect, but at least something.
<gr33n7007h>
Thanks
<gr33n7007h>
like ipython with multiline command
<shock_one>
shevy, speaking about aliases. Both BASH and ZSH use the environmental variable CDPATH to look for directories. For example, if you set it to CDPATH=:~/projects, and you have a project my_project in this directory, you'll be able to "cd my_project" from any place instead of "cd ~/projects/my_project".
rshetty has joined #ruby
<william3>
I remember that one
<william3>
it ended up being a bit of a pain
<shock_one>
Why?
<william3>
as too many things got completed when I was searching for stuff (say in the current directory)
<william3>
each to their own preferences I guess :D
ephemerian has joined #ruby
<shevy>
shock_one yeah but I simply use aliases like "to1" or "to5" instead
<william3>
yeah
<shock_one>
william3: perhaps your configuration wasn't correct. It should have completed the directories from CDPATH only for the cd command. Well, also for pushd and stuff.
<william3>
it was a while ago, maybe I'm misremembering
charliesome has joined #ruby
jacobat has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
govg has joined #ruby
Xeago has joined #ruby
a_ has joined #ruby
roolo has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
skolman_ has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 258 seconds]
skolman_ has joined #ruby
rshetty has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
AFKGeek has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
nrsk has joined #ruby
einarj has joined #ruby
WormDrink has quit [Ping timeout: 244 seconds]
dumdedum has joined #ruby
rshetty has joined #ruby
bweston92 has joined #ruby
NoNMaDDeN has joined #ruby
skolman_ has quit [Ping timeout: 272 seconds]
<shock_one>
Excuse me if it's not a proper place, but is anybody hiring for a remote job?
Aaaal has joined #ruby
a_ has quit [Ping timeout: 260 seconds]
<william3>
how remote is remote?
<william3>
i.e. 100% at home (wherever you're based)
blackmesa has joined #ruby
<shock_one>
Let's talk privately, william3.
<sevenseacat>
lol
Takle has joined #ruby
<hanmac1>
shock_one: do i get that right? do you want a job or do you have a job for us?
<shock_one>
hanmac1, I want a job. Do you have one? :)
<hanmac1>
i have one, but i need that one for myself ;P
Aaaal has quit [Ping timeout: 246 seconds]
pedromoreira has joined #ruby
rshetty has quit [Remote host closed the connection]
timonv_ has joined #ruby
olivier_bK has joined #ruby
tomaw has quit [Changing host]
tomaw has joined #ruby
coderhs has joined #ruby
speaking1ode has quit [Quit: leaving]
dumdedum has quit [Ping timeout: 250 seconds]
i_s has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
qba73 has joined #ruby
siwica has joined #ruby
charliesome has quit [Quit: zzz]
Xeago has joined #ruby
i_s has quit [Ping timeout: 255 seconds]
kamilc__ has joined #ruby
ta has joined #ruby
ta has quit [Client Quit]
charliesome has joined #ruby
thsig has joined #ruby
mdw has joined #ruby
nonks has joined #ruby
ta has joined #ruby
<shock_one>
sevenseacat: I can see that The Frontier Group is hiring. ;)
thsig has quit [Remote host closed the connection]
<sevenseacat>
hallo
<sevenseacat>
we do that from time to time/
sigurding has quit [Quit: sigurding]
Spami has quit [Quit: This computer has gone to sleep]
<shock_one>
sevenseacat: I'd love to work with you, you're my superstar, Rebecca!
<sevenseacat>
i appear to have a stalker.
* sevenseacat
waves hello
noop has joined #ruby
duncannz has quit [Remote host closed the connection]
AlSquire has joined #ruby
WormDrink has joined #ruby
dumdedum has joined #ruby
AlSquire has quit [Client Quit]
tayara79 has joined #ruby
tayara79 has left #ruby [#ruby]
Scotteh_ has quit [Ping timeout: 246 seconds]
<shock_one>
Sorry, I didn't mean that. You're my superstar as a programmer.
manzo has joined #ruby
thsig has joined #ruby
AlSquire has joined #ruby
AlSquire has quit [Remote host closed the connection]
<shevy>
./src/unix/mediactrl.cpp:24:40: fatal error: gst/interfaces/xoverlay.h: No such file or directory
<shevy>
dunno
<shevy>
I'll wait until that gstreamer mess is gone
ndrei has joined #ruby
govg has joined #ruby
ndrei has quit [Client Quit]
ndrei has joined #ruby
ndrei has quit [Client Quit]
ndrei has joined #ruby
a_ has joined #ruby
ndrei has quit [Client Quit]
<hanmac1>
shevy: did you reconfigure wx again?
ndrei has joined #ruby
Xeago_ has joined #ruby
linojon has joined #ruby
<shevy>
sure
echooo has joined #ruby
Dude007 has joined #ruby
govg has quit [Ping timeout: 260 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
govg has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
echooo1 has quit [Ping timeout: 265 seconds]
AlSquire has joined #ruby
alec-c4 has joined #ruby
a_ has quit [Ping timeout: 240 seconds]
<hanmac1>
shevy hm ok then i might ask in the wx channel when the gst problem is fixed
mercwithamouth has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
<lupine>
oh my god ruby wat
<lupine>
RUBYOPT=-v erb any-file.erb > any-file
byprdct has quit []
mengu has quit [Remote host closed the connection]
timonv_ has joined #ruby
bMalum has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
rdark has quit [Quit: leaving]
a_ has joined #ruby
rdark has joined #ruby
iraj has joined #ruby
timonv_ has quit [Remote host closed the connection]
baordog has quit [Ping timeout: 260 seconds]
<iraj>
i have installed ruby in rbnv , i need an interpreter for learnin ruby,
<iraj>
*rbenv
rdark has quit [Client Quit]
rdark has joined #ruby
timonv_ has joined #ruby
<hanmac1>
iraj: if you installed ruby with rbenv or something else, didnt you already have an interpreter now?, or do you mean a interactive thing for testing?
matchaw has quit [Ping timeout: 258 seconds]
<iraj>
hanmac1: yeah , i mean intractive for tesing, my friend told me "pry"
SouL_ has joined #ruby
<hanmac1>
iraj: with ruby you get "irb"
baordog has joined #ruby
<hanmac1>
"pry" is a bit better but 3rdparty
<shock_one>
iraj: you can install it with 'gem install pry'. For your information, such programs are called REPL: read, evaluate, print loop.
<iraj>
hanmac1: aha, thank you so much buddy, i didn'y know about irb :)
wm3|away has joined #ruby
linojon has quit [Quit: linojon]
<iraj>
shock_one: thanks buddy
Macaveli has quit [Read error: No route to host]
<shock_one>
iraj: you're welcome.
Macaveli has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
zarubin has quit [Remote host closed the connection]
<shock_one>
Does anybody know a way to remember that in alias_method the new name comes first? Even writing this sentence made me stop an think about it for a while. My current technique is to think of how 'ln' works, and do the opposite.
govg has quit [Ping timeout: 250 seconds]
SouL_ has quit [Ping timeout: 258 seconds]
davidhq has joined #ruby
SouL_ has joined #ruby
yfeldblum has joined #ruby
<tobiasvl>
lol. I never remember how ln works
<agent_white>
hanmac1: Can't scroll up in my history far enough. But I spoke about finding an IRC-ruby-eval bot. Who did you say I should ask about eval-in's code?
govg has joined #ruby
<hanmac1>
"charliesome" but he isnt currently available
<hanmac1>
oh wrong he is
<agent_white>
hanmac1: Ah alrighty. Thank you for the reminder :D
<hanmac1>
ping charliesome
<agent_white>
charliesome: Is the code to eval-in available?
<charliesome>
yo
<charliesome>
agent_white: not the actual evaluator part
<agent_white>
charliesome: Ah alrighty! I was just looking for an open-source IRC-bot for evaluating ruby code.
<tobiasvl>
security through obscurity, eh?
<hanmac1>
maybe NSA plugin?;P
<shevy>
shock_one I always use alias
<shevy>
def foo;
<shevy>
end; alias bar foo
<shevy>
eh, ignore the first ; there
davedev24_ has joined #ruby
wm3|away is now known as workmad3
<shevy>
shock_one the way I remember is like a hash pointer
<shevy>
key ->(points towards) value
<shevy>
where the value must already exist
<shevy>
and key can be anything that points to it
<shock_one>
shevy, that makes sense, thank you.
<shevy>
I always wonder whether using aliases is good or bad design
<shevy>
because I use a lot of aliases in ruby code
<hanmac1>
shevy on newer ruby: class Object; alias_method :bar, def foo; end; end
Takle has quit [Remote host closed the connection]
a_ has quit [Read error: Connection reset by peer]
<shevy>
I don't use alias_method
<shock_one>
It must work with alias too.
<agent_white>
What do you use?
<shevy>
I hate the extra '_method' and that I must use : and ,
<shevy>
alias all the way
ayaz has joined #ruby
<shevy>
I'd wish we could easily alias class methods too
<shevy>
I hate class << self
<shevy>
the << out of nowhere interferes visually with the rest of my code :(
<shock_one>
You can create an alias_class_method method, shevy. ;_
<shevy>
well
<shevy>
I can do a lot of stuff, sure
<shevy>
but if I use it in my gems, and distribute that, I have to carry my modifications as dependency in those gems too
Takle has joined #ruby
<shevy>
that is not very convenient, so I stick to core ruby idioms
<shevy>
I'd rather try and lobby for inclusion :)
<workmad3>
shevy: singleton_class.class_eval do ... end
bMalum has quit [Quit: bMalum]
<shevy>
aah
davedev24_ has quit [Ping timeout: 260 seconds]
<shevy>
let me think
<shevy>
you mean, class_eval { alias foo bar } should work?
<workmad3>
shevy: yup
<shevy>
let me try
Heskie has joined #ruby
<agent_white>
wpp has joined #ruby
<shevy>
cool
jottr has joined #ruby
<shevy>
>> alias e puts; class Foo; def bar; e 'Hi from bar()'; end; end; Foo.class_eval { alias foo bar }; Foo.new.foo
<workmad3>
shock_one: while using instance_eval, Object.to_string doesn't work
echooo has quit [Client Quit]
<banister>
shock_one instance_eval does not change thse self to teh singleton, it changes the 'default definee' to the singleton
mengu has quit [Ping timeout: 260 seconds]
<shock_one>
banister: you're right.
<banister>
shock_one of course i am, i'm an 31337 hax0r
siwica has quit [Ping timeout: 246 seconds]
<workmad3>
heh :) I thought I had a reason for going straight to class_eval and not instance_eval
<workmad3>
I just couldn't express it ;)
jacobat has joined #ruby
alec-c4 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
relix_ has joined #ruby
<shock_one>
banister: have you seen my message about multi line commands?
<banister>
shock_one no
<shock_one>
banister: have you ever thought of improving multiline commands support in pry? For example, opening the current line in an external editor (like BASH does with C-x C-e), or bringing the whole multiline command when it was executed and then I pressed up. I think I could help with that if you're interested.
thsig_ has quit [Remote host closed the connection]
<banister>
shock_one readline isn't designed for that, and the ways around it feel like hacks -- instead we have commands that work around that, check out 'edit' and 'amend-line' and 'play' etc
<banister>
when you get the hang of those you dont need multi-line editing
boombadaroomba has joined #ruby
roolo has quit [Remote host closed the connection]
jacobat has quit [Ping timeout: 260 seconds]
relix has quit [Ping timeout: 260 seconds]
banister is now known as banisterfiend
alec-c4 has quit [Ping timeout: 245 seconds]
<shock_one>
banister, yes, I'm aware of those commands. However, BASH, which uses the same library, does support the up behaviour I describe.
<shock_one>
banisterfiend: you can try to open a string i bash, and close it a couple of lines later.
boombadaroomba has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
sevenseacat has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
i_s has joined #ruby
Atttwww has quit [Ping timeout: 272 seconds]
<shock_one>
banisterfiend: So, do you mind having this feature in pry, providing it's not a bunch of hacks?
blackmesa has quit [Ping timeout: 240 seconds]
<banisterfiend>
shock_one if you write a prototype and it's cool, of course :)
tokik has quit [Ping timeout: 255 seconds]
<banisterfiend>
but it's going to have to be pretty awesome :D
bauruine_ has joined #ruby
<shock_one>
Pretty awesome is exactly the type of code I write.
bayed has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
shock_one has quit [Quit: Be back later ...]
i_s has quit [Ping timeout: 255 seconds]
shock_one has joined #ruby
nonks has quit [Ping timeout: 265 seconds]
rikai has quit [Remote host closed the connection]
rikai has joined #ruby
jhass|off is now known as jhass
Deejay_ has joined #ruby
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
mrgrieves has joined #ruby
agjacome has joined #ruby
Heskie has quit []
Heskie has joined #ruby
Aova is now known as A0v4
Deejay_ has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Quit: Lost terminal]
ndrei has joined #ruby
ndrei has quit [Client Quit]
govg has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
jacobat has joined #ruby
Soda has quit [Remote host closed the connection]
oponder has joined #ruby
gldnbear has joined #ruby
pedromoreira has quit [Ping timeout: 272 seconds]
nonks has joined #ruby
Guest92474 has joined #ruby
sameerynho has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gldnbear has quit [Quit: gldnbear]
SouL_ has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
davidhq has joined #ruby
davidhq has quit [Client Quit]
SouL_ has joined #ruby
ndrei has quit [Quit: Lost terminal]
qba73 has quit [Remote host closed the connection]
ndrei has joined #ruby
<mrgrieves>
I have hashes with key=>values like this: "created_at"=>"2014-05-21T09:19:17+01:00"
ndrei has quit [Client Quit]
<mrgrieves>
how do you suggest to parse and compare date values like these?
timonv_ has quit [Remote host closed the connection]
ndrei has joined #ruby
sprihodko has joined #ruby
jxport_ is now known as jxport
ndrei has quit [Client Quit]
ndrei has joined #ruby
Loplin has joined #ruby
eka has joined #ruby
rshetty has joined #ruby
<apeiros>
mrgrieves: see Time::strptime
<mrgrieves>
apeiros: cheers! will take a look now ..
<Loplin>
Hello. I am new to ruby and am attempting to do : copy_proc = Proc.new { `sudo -- sh -c "cat /etc/hosts.d/* > #{hosts_location}"` }; copy_proc.call, but I get the error: cat: /etc/hosts.d/*: No such file or directory
<banister>
canton7 i assume he's talking about object_id
bauruine has joined #ruby
<banister>
if you are talking about object_id, then that's an implementation detail, ignore it
<definity>
banister: Yeah
Guest70315 has quit [Changing host]
Guest70315 has joined #ruby
<banister>
definity that's not something you should care about
<definity>
banister: Okay thanks :)
Guest70315 is now known as ArchBeOS-cloud
<canton7>
that's just an arbitary number
devdazed has joined #ruby
<banister>
for some definition of 'arbitrary' ;)
pu22l3r has joined #ruby
<banister>
arbitrary according to the spec perhaps, but not arbitrary for a given implementation
<apeiros>
arbitrary as in: any ruby implementation may do it in whatever way it wants
<banister>
ya
iamjarvo has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
<canton7>
as in, "you shouldn't care if there's a pattern" :P
rshetty has quit [Remote host closed the connection]
livathinos has quit [Remote host closed the connection]
RaCx_ has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
livathinos has joined #ruby
RaCx has quit [Ping timeout: 258 seconds]
RaCx_ is now known as RaCx
davidhq has joined #ruby
alem0lars has joined #ruby
govg has joined #ruby
lukevinc has joined #ruby
taptapdan has quit [Quit: taptapdan]
oo_ has joined #ruby
twohlix has joined #ruby
alem0lars has quit [Max SendQ exceeded]
qmfnp has joined #ruby
dblessing has joined #ruby
sevvie has joined #ruby
HelloFred has joined #ruby
coderhs has joined #ruby
tesaf has joined #ruby
willywos has joined #ruby
<hanmac1>
definity: also the object_id can differ between versions and architectures (on newer ruby2.0 or something on a 64bit os, FLONUM might be enabled that does support fixed object_id for Floats)
<workmad3>
godd2: heh :) I was about to suggest that, was just checking it worked as I expected (and returned a hash)
<godd2>
though youll have to pass a block instead of a straight key
<ddv>
come on you can google this
i_s has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
<apeiros>
a_: with ActiveSupport, see also Hash#except
<godd2>
workmad3 haha well once I saw "Equivalent to hsh.dup.delete_if." in the docs, I knew it was what I wanted
rbrs has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
<workmad3>
godd2: my first impulse is to crack open irb and play, rather than chrome and search :(
<agent_white>
I vote we change Hash#reject to Hash#dismiss. We need to take into account the feelings of those keys we wish not to come inside.
<a_>
apeiros: a shame such a simple primitive operation requires ActiveSupport :/
<a_>
especially considering how rich Hash / Enumerable etc. is with Ruby, otherwise
<workmad3>
agent_white: class Hash; alias screw_you reject; end
<godd2>
you'd think that Hash#delete would not change the Hash, but that the non-existent Hash#delete! would
catphish has joined #ruby
bauruine_ has joined #ruby
<agent_white>
workmad3: D:
definity has quit [Remote host closed the connection]
<godd2>
so much for the principle of least surprise :p
timonv_ has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 245 seconds]
<workmad3>
godd2: I'd be surprised if 'delete' *didn't* modify the hash personally
<workmad3>
godd2: I find its behaviour very unsurprising... delete's the key from the hash
<workmad3>
*deletes (no ')
<godd2>
it's just that select, reject, and merge all have bang alts
doodlehaus has joined #ruby
<workmad3>
godd2: right... because all of them have sensible non-bang alternatives
<workmad3>
godd2: ! doesn't mean destructive op
<siwica>
what is the standard way to obtain the ruby-doc for a gem?
<workmad3>
godd2: ! means 'be careful of this alternative, it works differently'
timonv_ has joined #ruby
himsin has quit [Quit: himsin]
<apeiros>
a_: it's easy to implement
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cajone>
Guys if I have a very large hash or array in memory how can I drop it and reclaim back the memory, it seems the the clear method empties the array/hash but does not free up the memory ?
<apeiros>
I mean, AS implementation is literally just `def except!(*keys); keys.each { |key| delete(key) }; self; end` and `def except(*keys); dup.except!(*keys); end`
AFKGeek has quit [Quit: Leaving]
<apeiros>
cajone: that's not how memory management works
<godd2>
cajone: you are at the mercy of the garbage collector. best you can do is remove all references to the object and wait until the memory is free
iamjarvo has joined #ruby
<a_>
apeiros: my solution was this
<a_>
apeiros: hash.dup.tap { |h| h.delete :key }
<jhass>
godd2: the rule is quite simple, all methods of mutable types are self modifying unless it makes no sense for the operation or there's a method with the same name ending with a !
zaid_h has quit [Quit: ZZZzzz…]
<apeiros>
cajone: even with the object no longer referenced and GC having run it's not necessarily the case that ruby returns memory to the OS
robbyoconnor has quit [Read error: No route to host]
<godd2>
jhass: "or there's a method with the same name ending with a !" I'm just saying I expect there to be a delete! method on Hash.
<workmad3>
godd2: ok... so if there was, what would 'delete' do
<workmad3>
godd2: as compared to 'delete!'
<apeiros>
workmad3: the thing a_ wanted it to do
<apeiros>
return a hash with the key deleted
<godd2>
apeiros yes
<godd2>
just like select returns a hash with the keys selected
<workmad3>
but that's then just reject :P
<godd2>
no, reject requires a block and works like delete_if
jamesrward has joined #ruby
<godd2>
you can't just pass a key as an argument
RaCx has quit [Ping timeout: 258 seconds]
<hanmac1>
shevy: ping
<godd2>
this argument is fruitless, haha. It's just my opinion that I expected ther eto be a delete!. Its fine that there's not
AlSquirrel has quit [Quit: Quitte]
<cajone>
apeiros: ok thanks, I guess it is what it is, but does that not somehow seem fundamentally flawed, I mean why would you run a clear method at all if it was not for the case of gaining back memory
<jamesrward>
I am having trouble with rvm and .ruby-version. I created a .ruby-version file for my project with just the text 2.1.1p76 in it. When I cd to the project directory rvm says "ruby-2.1.1-p76 is not installed." but when I do ruby --version it says ruby 2.1.1p76. Any idea what I am missing?
doodlehaus has quit [Read error: Connection reset by peer]
<godd2>
Hash.decimate(key) #only works when hash contains 10 key value pairs
shock_one has joined #ruby
msmith_ has joined #ruby
<workmad3>
jamesrward: 2.1.x doesn't have releases with patch-levels
<workmad3>
jamesrward: but sometimes the patch-level still appears in --version
<hanmac1>
shevy: if i get it working i will also add rwx to travis or something ...
<workmad3>
jamesrward: so 2.1.1 is always 2.1.1, the next release was 2.1.2
doodleha_ has quit [Read error: Connection reset by peer]
<workmad3>
jamesrward: or, in other words, just put '2.1.1' in your .ruby-version file
Takle has joined #ruby
payne has joined #ruby
moritzs has joined #ruby
<shevy>
hanmac1 eh - a simple gem that works is more than enough
gr33n7007h has quit [Quit: Leaving]
gr33n7007h has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
enebo has joined #ruby
mrgrieves has quit [Quit: leaving]
<hanmac1>
shevy: it does works for me ;P the only thing which does not work for you is wx itself with the gst problem ...
zarubin has quit [Quit: Leaving.]
shock_one has quit [Ping timeout: 260 seconds]
zarubin has joined #ruby
<shevy>
I am sure they'll enable --disable-gstreamer one day
shredding has joined #ruby
Xeago has joined #ruby
<shevy>
you are in such a hurry Hanmac
<shevy>
you are even twice here
Xeago has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
psy has quit [Remote host closed the connection]
zarubin has quit [Client Quit]
zarubin has joined #ruby
<hanmac1>
shevy: doppler effect ;P
zarubin has quit [Client Quit]
<jamesrward>
workmad3: ahh thanks
zarubin has joined #ruby
agrinb has joined #ruby
tagrudev has quit [Quit: Me = Awesome]
Xeago has joined #ruby
zarubin has quit [Client Quit]
Xeago_ has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
<mwlang>
Is it possible to use tiny_tds to insert and pull data from the “IMAGE” field type in SQL Server?
moritzs has quit [Ping timeout: 272 seconds]
x77686d has joined #ruby
agrinb has quit [Remote host closed the connection]
<hanmac1>
alex88 ask in #rubyonrails ... they did the shit with active support
<hanmac1>
alex88: what does "1.month.class" return? maybe thats the question with date+
shredding has quit [Quit: shredding]
x77686d has quit [Ping timeout: 260 seconds]
lolmaus has quit [Quit: Konversation terminated!]
lnormous has joined #ruby
SilkFox has joined #ruby
shredding has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
jacobat has quit [Ping timeout: 245 seconds]
<a_>
hmm. guise. Is it proper to do this? rescue => e; raise MyOwnError, e; end;
<a_>
Or would it be more: raise MyOwnError, e.message;
matchaw has quit [Ping timeout: 260 seconds]
<a_>
I don't want to lose information from the exception I'm re-raising
mskaesz has joined #ruby
Loplin has quit [Quit: Leaving.]
mkaesz has quit [Read error: No route to host]
klmlfl has joined #ruby
taptapdan has joined #ruby
Heskie has quit []
kedare has joined #ruby
devdazed has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
zaid_h has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devdazed has joined #ruby
decoponio has joined #ruby
<alex88>
hanmac1: fixnum, problem is, 3.months returns seconds, adding to Date adds days
RaCx has quit [Ping timeout: 245 seconds]
agjacome has quit [Quit: leaving]
jottr has quit [Ping timeout: 245 seconds]
RaCx has joined #ruby
<hanmac1>
hm yeah thats why i am wondering why the first line seems to be working ... and like i said its active-support shit you are messing with, #rubyonrails are the ones that should be blaimed
Xeago has quit [Remote host closed the connection]
davedev24_ has quit []
fsapo_ has joined #ruby
JBreit has joined #ruby
Kruppe has joined #ruby
IcyDragon is now known as IceDragon
hobodave has joined #ruby
bal has quit [Quit: bal]
sardev has joined #ruby
apeiros has joined #ruby
Takle has quit [Remote host closed the connection]
fsapo has quit [Ping timeout: 265 seconds]
a_ has quit [Ping timeout: 272 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
livathinos has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
alec-c4 has joined #ruby
RaCx has joined #ruby
lw has joined #ruby
Takle has joined #ruby
axl_ has joined #ruby
renderful has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
matchaw has joined #ruby
yfeldblum has joined #ruby
Takle has joined #ruby
mskaesz has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
ohwhoa has joined #ruby
ta has joined #ruby
hamakn has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
lw has quit [Quit: s]
fabrice31 has joined #ruby
shredding has quit [Quit: shredding]
nrsk has joined #ruby
chrisseaton has joined #ruby
<chrisseaton>
If I'm making module functions by doing def self.foo how do I then annotate that as private?
i_s has joined #ruby
ephemerian has quit [Quit: Leaving.]
<jhass>
chrisseaton: first of all that are not module functions
snath has joined #ruby
<jhass>
you define module functions with the module_function decorator
<jhass>
we call these class or better singleton methods
yfeldblum has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
<jhass>
they're defined in a singleton class which you need to open in order to mark it as private
<jhass>
to open a singleton class you use class << obj
<jhass>
so class << self; private :foo; end; or class << self; private; def foo; end; end;
mengu has quit [Remote host closed the connection]
<godd2>
chrisseaton also, you wouldn't make a self.method in a module private. You'd only make self methods in a module that you aren't going to give to classes.
fabrice31 has quit [Ping timeout: 255 seconds]
justinsmestad has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<godd2>
so like Math.sin isn't going to be included in or extended to a different class.
<jhass>
I occasionally use private singleton methods if I want to compose a complex public one
livathinos has quit []
<chrisseaton>
my use case is a module, not included or extended, but used as in MyModule.foo. The implementation of foo needs some helper methods, so I want to define a method foo, but keep it private. How do I do that?
i_s has quit [Ping timeout: 240 seconds]
<jhass>
chrisseaton: I just showed you
jimbach has joined #ruby
agrinb has joined #ruby
gsd has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<chrisseaton>
jhass: ok thanks I'll try that
oo_ has joined #ruby
schaerli has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
oponder has quit [Remote host closed the connection]
jimbach_ has quit [Ping timeout: 265 seconds]
renderful has quit [Remote host closed the connection]
<apeiros>
but private class methods are quite a strong smell.
<jhass>
ah, right, I always forget that one
<jhass>
it's sad that core can't decide to call them singleton methods or class methods
wpp has quit [Quit: ZZZzzz…]
<apeiros>
jhass: yeah, thought the same
<apeiros>
consistency in ruby has strong and weak points. this one is certainly a weak point.
Xeago has joined #ruby
ta has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 244 seconds]
<headius>
chrisseaton: generally if you need to control visibility you would do all the defs in a class << self body instead
<chrisseaton>
apeiros: am I creating a code smell here? http://collabedit.com/fkwjq is there a better way to structure this?
anaeem1 has joined #ruby
<headius>
def obj.name is a convenience for when public is fine
<jhass>
chrisseaton: don't make it abstract, show your actual problem
nirvdrum has joined #ruby
schaerli has quit [Ping timeout: 265 seconds]
<chrisseaton>
jhass: thanks, I've expanded it
<apeiros>
headius: I generally use def self.foo, makes grepping so much easier
<apeiros>
only case I don't use it is for attr_*
Akagi201 has joined #ruby
shock_one has quit [Ping timeout: 245 seconds]
j_mcnally has joined #ruby
az7ar_away is now known as az7ar
havenwood has joined #ruby
suffice has quit [Ping timeout: 244 seconds]
suffice has joined #ruby
abuzze_ has joined #ruby
agrinb has quit [Remote host closed the connection]
t_mmyv has joined #ruby
hamakn has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
matchaw has quit [Ping timeout: 255 seconds]
Guest92474 has quit [Ping timeout: 245 seconds]
bauruine_ has quit [Ping timeout: 255 seconds]
<jhass>
chrisseaton: I think I actually wouldn't bother to make bootstrap_sample private, it can possibly useful on it's own, it doesn't just give a name to a complex operation in the actual method
<jhass>
I don't quite follow why you do the nested def though
aspires has joined #ruby
<chrisseaton>
jhass: yeah this is transliterated from Python and I'm tidying it up to make it idiomatic Ruby
qwyeth has joined #ruby
FL1SK has joined #ruby
HelperW has quit [Ping timeout: 255 seconds]
<chrisseaton>
jhass: so I'll remove that
Channel6 has joined #ruby
benzrf|offline is now known as benzrf
shredding has joined #ruby
abuzze has quit [Ping timeout: 250 seconds]
<apeiros>
chrisseaton: idiomatic ruby code would be to just define both methods as instance methods and mark them as module_function
<apeiros>
and you document the case that you consider bootstrap_sample to not be for public consumption
abuzze_ has quit [Ping timeout: 240 seconds]
Macaveli has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
<apeiros>
babysitting devs-- IMO
poulet_a has quit [Quit: Quitte]
<apeiros>
(also it's somewhat pointless in ruby anyway)
Hobogrammer has quit [Ping timeout: 255 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
aganov has quit [Remote host closed the connection]
Xeago__ has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
xxneolithicxx has joined #ruby
<xxneolithicxx>
hi all
aspiers has joined #ruby
<ericwood>
wassup
<xxneolithicxx>
would like some opinions/thoughts on Gemfile.lock
tier has quit [Ping timeout: 240 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
multi_io has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<xxneolithicxx>
Im working with a vagrant plugin thats a ruby gem and we support multiple versions of vagrant and thus ruby as it bundles specific versions
<xxneolithicxx>
im trying to decide if we should or should not include a gemfile.lock (most plugins dont)
pmarreck_ is now known as pmarreck
TripTastic has joined #ruby
tier_ has quit [Remote host closed the connection]
<xxneolithicxx>
if I were to include a Gemfile.lock based on testing using a ruby 2.0 for example and then I had a user try to test the same plugin against ruby 1.9.3 wouldnt that be likely to cause issues (I dont use rbenv or bundler much)
tier has joined #ruby
jobewan has joined #ruby
Ulrike_Rayne has joined #ruby
SilkFox_ has quit [Ping timeout: 265 seconds]
hobodave has joined #ruby
Takle has quit [Remote host closed the connection]
multi_io_ has quit [Ping timeout: 250 seconds]
JBreit has quit [Ping timeout: 245 seconds]
renderful has quit [Remote host closed the connection]
<xxneolithicxx>
I guess I dont understand the need for the lock in the first place if the Gemfile already sets the version requirements. Its like its just a time snapshot for convenience and nothing more.
kaspergrubbe has quit [Remote host closed the connection]
<jhass>
linagee: which line yields the error?
<linagee>
jhass: I was previously getting "No file generated" when I just had return. So now I'm trying to not check if it exists if it was bypassed.
rshetty has joined #ruby
schaerli_ has quit []
<linagee>
jhass: I'm getting: "in filter CompressJavascript: can't convert false into String"
yfeldblum has joined #ruby
<workmad3>
xxneolithicxx: the lock contains the installed versions of all dependencies, direct and transitive
<workmad3>
xxneolithicxx: Gemfile only contains direct dependencies
kamilc__ has quit [Quit: Leaving...]
<linagee>
jhass: I think its somewhere on lines: 9, 20, 21.
<jhass>
linagee: the error has no line number /trace attached?
siwica1 has quit [Ping timeout: 246 seconds]
<workmad3>
xxneolithicxx: and it's pretty common for gems to have imprecise dependency versions, so the Gemfile.lock ensures that the entire set of dependencies are installed with the same versions across the board, rather than just direct dependencies
<jhass>
linagee: ah right, line 21 it is
srkn has quit [Quit: WeeChat 1.0]
<linagee>
jhass: ah. its being generated on line 25 I see now. "Problem with <path here> in filter CompressJavascript: can't convert false into String"
<linagee>
jhass: no idea what rescue is for.
<jhass>
File.exists? temp && !ret is the same as File.exists?(temp && !ret)
<godd2>
*I* can convert false to a string. God, Ruby is soo stupid.
joonty has quit [Quit: Leaving]
<linagee>
jhass: hrm... so bad syntax there? I want to see if the file exists *and* if ret had something specific returned.
<xxneolithicxx>
workmad3: ok but my concern is that the version of those transitive gems are ruby version specific, if our ruby gem supports multiple ruby versions how do we make that work correctly
<workmad3>
xxneolithicxx: in your case, I'd suggest you'd probably want to have a different Gemfile.lock for different setups, so another tester can simply move the appropriate lockfile into place
<jhass>
godd2: implicit vs. explicit conversion
Scotteh_ has joined #ruby
<jhass>
godd2: it won't do implicit conversion for good reason
<xxneolithicxx>
workmad3: right so wouldnt that defeat the benefit of adding one in the first place
<jhass>
linagee: yes, you need parens
<xxneolithicxx>
workmad3: due to our support matrix
<workmad3>
xxneolithicxx: possibly, depends on the exact setup... bundler is primarily intended as a way to provision apps with the exact set of gem versions it should work with after all
siwica has joined #ruby
<jhass>
linagee: if temp is not false or nil, you pass !ret to File.exists? which is false which can't be implicitly converted to a string
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3>
xxneolithicxx: when using it to manage dependencies inside a gem, it's really to ensure that testers can set up a set of gems that should work
<xxneolithicxx>
workmad3: thx, i think that clarifies the reasoning why most other vagrant plugins probably dont include it
<workmad3>
xxneolithicxx: it's not paid attention to when bundler or rubygems looks at the gem's dependencies though
yfeldblum has quit [Ping timeout: 246 seconds]
spyderman4g63 has quit [Remote host closed the connection]
<linagee>
jhass: ack. :( so now I have: unless (File.exists? temp) && ret != 1 (but its actually saying "No file generated")
msmith_ has quit [Remote host closed the connection]
Scotteh has quit [Ping timeout: 246 seconds]
justinsmesta has joined #ruby
Squarepy has joined #ruby
<linagee>
or do I need parenthesis around my entire expression? hrm
spyderman4g63 has joined #ruby
<jhass>
linagee: parens to the method call would suffice
<jhass>
but if you get that exception either call evaluates to false
<jhass>
verify their values
alec-c4 has joined #ruby
<linagee>
jhass: unless File.exists?(temp) && ret != 1 and I still got "No file generated". hrm....
marr has quit [Ping timeout: 260 seconds]
mxrguspxrt has quit [Remote host closed the connection]
hhutch has joined #ruby
<jhass>
linagee: verify all values (temp, the return value of File.exists?(temp) and ret) are what you think they are
justinsmestad has quit [Ping timeout: 240 seconds]
<jhass>
for example by printing them out with the p method
ohwhoa has quit [Quit: woah!]
<linagee>
jhass: jhass I added this after line 20. p "filter returned " + ret and now I get: "in filter CompressJavascript: can't convert Fixnum into String"
<linagee>
how annoying. is Ruby this type specific? :(
* linagee
decides to try returning a string instead, maybe that will be easier. :-/
RaCx has joined #ruby
<jhass>
yes, and it's a good thing
<godd2>
Ruby is strongly typed even though it is dynamically typed
boombadaroomba has joined #ruby
<jhass>
use "filter returned #{ret}"
<workmad3>
or + ret.to_s
xaxisx has joined #ruby
bricker`work has joined #ruby
spyderman4g63 has quit [Ping timeout: 244 seconds]
shredding has quit [Quit: shredding]
xaxisx has quit [Remote host closed the connection]
<jhass>
and I think you actually want to return true or false there
twohlix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
shredding has joined #ruby
<linagee>
ack......
spyderman4g63 has joined #ruby
jorjski has joined #ruby
<linagee>
unless = evil. hah.
<linagee>
I just put an if on the next line.
<linagee>
inverse logic crazyness.
az7ar is now known as az7ar_away
twohlix has joined #ruby
shock_one has joined #ruby
jorjski has quit [Client Quit]
boombadaroomba has quit [Ping timeout: 250 seconds]
<jhass>
yeah, always write ifs
skolman_ has joined #ruby
<jhass>
and if you feel the need to add a ! to the whole expression use unless instead
danijoo has quit [Quit: Leaving...]
wpp has joined #ruby
msmith_ has joined #ruby
cndiv has joined #ruby
roolo has quit [Remote host closed the connection]
<linagee>
I just put an if before the whole unless stuff. (if (ret == -1) \n return \n end)
diegoviola has joined #ruby
<linagee>
works perfectly now. :)
<linagee>
jhass: thanks
agrinb has quit [Remote host closed the connection]
* linagee
is just visiting Ruby as a language. (normally I program in Perl. But there was a "hey, can you please modify this past programmers thing?")
<agent_white>
linagee: Stay awhile. The pool is always... full of jello!! :D
hellangel7 has joined #ruby
fsapo_ has quit [Remote host closed the connection]
valeriansaliou has joined #ruby
<Morrolan>
linagee: Oh! I left a Perl programmer at work a box full of Ruby scripts, too. :P
<godd2>
Ever since Matz partnered with Cosby, Ruby has never been the same
einarj has quit [Remote host closed the connection]
rustypigeon has quit [Remote host closed the connection]
`mike` has quit [Ping timeout: 265 seconds]
weeb1e has quit [Client Quit]
<shevy>
godd2 mruby drains a lot of time from matz
<shock_one>
shevy: you can't use alias_method in the global scope, or how is it called when self is main, because alias_method is a class method. So, you have to use alias there or do some magic like opening the singleton class.
chipotle has quit [Client Quit]
ursooperduper has joined #ruby
<shevy>
linagee eam here is also a perl user
<shevy>
but not long ago I managed to capture this from him:
<shevy>
18th october 2014
<shevy>
<eam> oh holy cow
<shevy>
<eam> you're right, that's insane (looks like you disable it with binmode)
<shevy>
<eam> $^I disables it, looks like
<shevy>
<eam> well that's super dumb
<shevy>
<eam> I'm disappointed in perl
<shevy>
I had to print the last statement and put it on the wall
Spami has quit [Quit: This computer has gone to sleep]
<shevy>
linagee in general, objects may have a string representation, which you can get via .to_s
<shevy>
"#{variable}" should imply .to_s on the object represented by variable
matchaw has joined #ruby
Eiam has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
alec-c4 has quit [Remote host closed the connection]
<shock_one>
puts also calls #to_s.
weeb1e has joined #ruby
alec-c4 has joined #ruby
alec-c4 has quit [Remote host closed the connection]
matchaw has quit [Remote host closed the connection]
stef204 has joined #ruby
<jhass>
hi
spyderman4g63 has quit [Remote host closed the connection]
siwica1 has joined #ruby
spyderman4g63 has joined #ruby
x77686d has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
alec-c4 has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
alec-c4 has joined #ruby
emmesswhy has joined #ruby
RaCx has joined #ruby
mercwithamouth has joined #ruby
timonv_ has joined #ruby
xxneolithicxx has left #ruby [#ruby]
matchaw has joined #ruby
obs has joined #ruby
Eiam has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman has joined #ruby
spyderman4g63 has quit [Ping timeout: 244 seconds]
x77686d has quit [Ping timeout: 250 seconds]
ephemerian has joined #ruby
alec-c4 has quit [Ping timeout: 246 seconds]
valedances has quit []
chthon has quit [Ping timeout: 245 seconds]
nonks has joined #ruby
Takle has quit [Remote host closed the connection]
Eiam has quit [Client Quit]
magic is now known as pretty
otakbeku has quit [Remote host closed the connection]
BadQuanta has quit [Ping timeout: 265 seconds]
Eiam has joined #ruby
Eiam has left #ruby [#ruby]
Eiam has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
IceDragon has quit [Quit: Space~~~]
<featheryahn>
i would like to access a gems test directory from within my app (to be exact i want to re-use already defined fixtures/factorygirls)
lw has quit [Quit: s]
mxrguspxrt has joined #ruby
IceDragon has joined #ruby
<featheryahn>
can i do something like GEM('magiderpy').path + "/test" ?
panini has joined #ruby
iraj has joined #ruby
iraj has joined #ruby
<featheryahn>
to include in my fixtures config
GeorgesLeYeti has quit [Quit: Leaving]
BadQuanta has joined #ruby
catphish has quit [Quit: Leaving]
ptrrr has joined #ruby
Takle has joined #ruby
nonks has quit [Ping timeout: 255 seconds]
Eiam has quit [Client Quit]
yfeldblum has joined #ruby
<workmad3>
featheryahn: I'd personally suggest that if you want to publish your fixtures/factories, that you move them into lib/
OffTheRails has joined #ruby
<workmad3>
featheryahn: and then load them in your tests from there
<featheryahn>
workmad3: you mean 'statically' copying them for sure? makes kind of sense, thanks
<workmad3>
featheryahn: I mean move them
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
I guess it's not his gems fixtures that he wants to use
gaganjyot has quit [Ping timeout: 244 seconds]
<featheryahn>
workmad3: that is not my gem i'm using another gem and want to reuse the defined factories therein
Eiam has joined #ruby
<workmad3>
featheryahn: ah, ok :)
<shevy>
yeah shock_one but we have to get linagee into the ruby object world - he wants to join two objects, so it would be: puts foo+bar where one of these might not be of class String
<featheryahn>
workmad3: =D
<workmad3>
featheryahn: in that case... just copy them out would be my suggestion :)
xymbol has joined #ruby
Eiam has quit [Client Quit]
<featheryahn>
workmad3: thanks for pragmatism sometimes you can stuck yourself in a rut with too much 'dynamicy' thinking =D
phantummm has joined #ruby
fabrice31 has joined #ruby
<workmad3>
featheryahn: I'd also put in a PR for the gem on github saying 'it would be really useful if you published the factories and fixtures for your gem so I can make use of them in prepping test data in my own test suite' ;)
stunder has joined #ruby
<featheryahn>
workmad3: that is a good idea
wallerdev has joined #ruby
iraj has quit [Ping timeout: 250 seconds]
<featheryahn>
workmad3: for hat my pull request would amount to putting things into /lib so it can get accessed from upper app which included via gemfile?
yfeldblum has quit [Ping timeout: 255 seconds]
timonv^ has joined #ruby
<featheryahn>
workmad3: (might as weell make it easy for maintainer)
x1337807x has joined #ruby
<workmad3>
featheryahn: yeah, and adjusting the spec_helper or whatever so that it loads the factories up from there
<featheryahn>
workmad3: PR == pull request just got it haha =D
<featheryahn>
workmad3: verry cool, thank yous
<featheryahn>
(i will do it)
agrinb has joined #ruby
Synthead has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
timonv_ has quit [Ping timeout: 245 seconds]
agrinb has joined #ruby
workmad3 is now known as wm3|away
byprdct has joined #ruby
az7ar_away is now known as az7ar
oleo is now known as Guest5008
oleo__ has joined #ruby
sardev has quit [Quit: Leaving]
Guest5008 has quit [Ping timeout: 240 seconds]
oleo__ has quit [Read error: Connection reset by peer]
Aaaal has quit [Quit: Aaaal]
oleo__ has joined #ruby
oleo__ is now known as oleo
Eiam has joined #ruby
agrinb has quit [Ping timeout: 260 seconds]
Dude007 has quit []
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
OffTheRails has quit [Ping timeout: 260 seconds]
otakbeku has joined #ruby
gaganjyot has joined #ruby
carraroj has joined #ruby
Takle has quit [Remote host closed the connection]
gaganjyot has quit [Max SendQ exceeded]
spyderman4g63 has joined #ruby
gaganjyot has joined #ruby
Hightower666 has joined #ruby
riceandbeans has quit [Changing host]
riceandbeans has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
jimbach has quit [Remote host closed the connection]
Hightower666 has quit [Client Quit]
Hightower666 has joined #ruby
danijoo has joined #ruby
jottr_ has joined #ruby
Dude007 has joined #ruby
omosoj has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 260 seconds]
BadQuanta has quit [Read error: Connection reset by peer]
omosoj has joined #ruby
Hightower666 has quit [Read error: Connection reset by peer]
niKeITA has joined #ruby
last_staff has joined #ruby
paulfm has joined #ruby
x77686d has joined #ruby
BadQuanta has joined #ruby
otakbeku has quit [Quit: leaving]
chipotle has joined #ruby
Fire-Dragon-DoL has joined #ruby
danijoo has quit [Quit: Leaving...]
Dude007 has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
phantummm has quit [Quit: phantummm]
C0deMaver1ck_ has quit [Ping timeout: 255 seconds]
<featheryahn>
workmad3: what do you think per convention - is it better to put the factories in /lib/[GEMNAME]/factories or /lib/[GEMNAME]/test/factories?
andrewjanssen has joined #ruby
hamakn has joined #ruby
mityaz_ has joined #ruby
mkaesz has joined #ruby
Hightower666 has joined #ruby
siwica has joined #ruby
timonv^ has quit [Remote host closed the connection]
maestrojed has joined #ruby
wpp has quit []
siwica1 has quit [Ping timeout: 272 seconds]
michaeldeol has joined #ruby
Soda has joined #ruby
michaeldeol has quit [Client Quit]
matchaw has quit [Ping timeout: 240 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
RaCx has quit [Quit: Computer has gone to sleep.]
hhutch has quit [Ping timeout: 240 seconds]
C0deMaver1ck_ has joined #ruby
<shevy>
is test part of lib?
<shevy>
it usually resides at the level of the first /lib or?
Synthead has quit [Remote host closed the connection]
<jaequery>
damn u must've read my mind, thanks!
jimmyhoughjr has joined #ruby
dangerousdave has joined #ruby
<last_staff>
how does one escape the pound character?
<folippi>
I've got a rake task for deploying a web app, but after the first exec (a git call) it exits. It does not execute the other lines. How come? Can rake only run things that have one exec() call? https://gist.github.com/fromheten/02e6865b5aa7c6bf4972
havenwood has quit [Remote host closed the connection]
<jhass>
last_staff: just prepend a \
wm3|away has quit [Ping timeout: 272 seconds]
<jhass>
folippi: exec replaces the current process. In rake use sh()
<AndroUser>
Hey sometimes the answers on this can be a lil convoluted or not specific, I was wondering if anyone has issues or a guide for fixes for the new Yosemite update so it doesn't screw up my dev environment. ..?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
AndroUser: Is it screwed up already or you're just preparing?
alec-c4 has quit []
<shevy>
IO.sysopen 'TODO' # => 10
paulfm has joined #ruby
skolman_ has quit [Ping timeout: 265 seconds]
<shevy>
what does the "file descriptor" mean?
<AndroUser>
I haven't dl'ed it yet
fourmyle has joined #ruby
fourmyle has quit [Max SendQ exceeded]
fourmyle has joined #ruby
fourmyle has quit [Max SendQ exceeded]
<eam>
shevy: the descriptor is how the kernel tracks open filehandles
<shevy>
hmm
<eam>
each one is assigned a unique integer
<shevy>
oh funny
<havenwood>
AndroUser: I've not had any issues on Yosemite.
<shevy>
if I do this repeatedly, I can increment the return value
agjacome has joined #ruby
<AndroUser>
Tight thanks
<eam>
shevy: are you on linux? take a look at /proc/$$/fd
Deejay_ has joined #ruby
<shevy>
yeah
j_mcnally has joined #ruby
LoBoGoL has joined #ruby
<shevy>
where is the /fd ?
<eam>
hunting for fd leaks is a staple of developing under non-RAII languages like ruby
<havenwood>
mdeboard: (vm_name = vm_name) or cfg.vm.hostname.split('.')[0]
<mdeboard>
so it's doing vm_name = .. yeah
<mdeboard>
gotcha
<mdeboard>
that's wonky
<havenwood>
mdeboard: mathy
<mdeboard>
Cool thanks.
<mdeboard>
Wonky.
mdeboard has left #ruby ["Killed buffer"]
<havenwood>
at least our opinions rhyme
SouL__ has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
siwica has joined #ruby
siwica1 has quit [Ping timeout: 255 seconds]
skolman_ has joined #ruby
willywos_ has joined #ruby
Aaaal has joined #ruby
<gr33n7007h>
Is abort new in 2.1.3
<apeiros>
no
<gr33n7007h>
since when apeiros ?
NoNMaDDeN has quit [Remote host closed the connection]
<apeiros>
no idea. but afaik it's been in for as long as I code ruby. so since 1.8.0 at least. but I'd not be surprised if it had been in ruby since 1.0
Dude007 has quit [Read error: Connection reset by peer]
Dude007_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
teejar has quit [Ping timeout: 260 seconds]
siwica1 has joined #ruby
Xiti has quit [Quit: Leaving]
teejar has joined #ruby
BBBThunda has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
AndyBotwin has joined #ruby
bklane has quit [Remote host closed the connection]
TeresaP has joined #ruby
DouweM has joined #ruby
awarner has quit [Remote host closed the connection]
bMalum has joined #ruby
perrier has joined #ruby
yaymukund has joined #ruby
awarner has joined #ruby
baordog has quit [Ping timeout: 246 seconds]
<yaymukund>
where's a good explanation of why you would do ::Foo?
<shevy>
yaymukund when it is necessary
perrier has quit [Read error: Connection reset by peer]
<jhass>
yaymukund: because you have class Foo; end; module Bar; class Foo; end; class Baz; def baz; ::Foo.new; end; end; end;
perrier has joined #ruby
<jhass>
or you subclassed from BasicObject
rbrs has quit [Quit: Leaving]
<TeresaP>
Let's say I have a .rb file with functions outside of a class structure (file_transfer.rb). One of those functions calls another function in another file outside of a class structure (logger.rb). That function then calls some code defined in a third party .rb file which is inside a triple-nested module (calabash-cucumber/utils/logging.rb). Is it not enough to have "require 'calabash-cucumber/utils/logging'" at the top of the logger.r
<yaymukund>
jhass: thank you!
<TeresaP>
My code doesn't seem to know about the 3rd party file at the time I run it
moritzs has joined #ruby
<yaymukund>
that is exactly the kind of thing I was trying to write myself and failing.
jheg has quit [Quit: jheg]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
end_guy has quit [Remote host closed the connection]
<jhass>
TeresaP: sounds like it is, but maybe share your code (use gist.github.com utilizing the multiple files functionality)
end_guy has joined #ruby
<TeresaP>
jhass I can't, unfortumately
<TeresaP>
unfortunately*
<havenwood>
TeresaP: does it work?
<TeresaP>
havenwood If it worked, I wouldn't be posting here :-P
spider-mario has quit [Remote host closed the connection]
<jhass>
TeresaP: try to make a minimal reproducing example
Xiti has joined #ruby
thisguy123 has joined #ruby
<havenwood>
TeresaP: there's the possibility I suppose that it's a LOAD_PATH issue as well, so would be nice to rule that out
<havenwood>
TeresaP: is the require of the first file you're requiring successful?
baordog has joined #ruby
<TeresaP>
I don't require files in the same folder
noop has quit [Ping timeout: 258 seconds]
<havenwood>
TeresaP: what jhass said i good advice ^
<TeresaP>
So, the only one I'm requiring is this 3rd party one and that seems to be the problem
<TeresaP>
I'm wokring on the gist :)
<TeresaP>
working* gah
<havenwood>
is*
workmad3 has quit [Ping timeout: 272 seconds]
carraroj has quit [Quit: Konversation terminated!]
Soda has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
Nilium has joined #ruby
St_Marx has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Aaaal has quit [Quit: Aaaal]
paulfm has quit []
hololeap has joined #ruby
paulfm has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
<jhass>
I think it makes sense since it's intended for utility functions
<havenwood>
pipework: #grind_with_rocks was supposed to be private ^ :O
<jhass>
you don't want those to clutter the API of your class
Nahra has joined #ruby
<pipework>
havenwood: Oh I see how it stomps.
<jhass>
oh, interesting
SilkFox_ has quit [Ping timeout: 240 seconds]
<jhass>
ah, no, it's actually expected
<jhass>
since module_function makes a copy of the method
iamjarvo has joined #ruby
<jhass>
and again, it's intended for utility functions
<jhass>
making the singleton versions private makes little sense
<havenwood>
right
decoponio has quit [Quit: Leaving...]
<havenwood>
just not a panacea
Pupeno has joined #ruby
aspiringflaneur has joined #ruby
aspiringflaneur has quit [Max SendQ exceeded]
<apeiros>
havenwood: note that that's precisely how Math and Kernel work
<shevy>
not a panacea but a pandacake
<pipework>
pandacea?
<apeiros>
havenwood: making the methods private means that stuff like Kernel#require does not prevent e.g. things like OpenStruct to have a #require member
<apeiros>
pancake?
aspiringflaneur has joined #ruby
aspiringflaneur has quit [Max SendQ exceeded]
<havenwood>
no pandas were harmed in the making?
<shevy>
yeah
abuzze has joined #ruby
<apeiros>
they didn't blend?
<pipework>
pandamn you all to hell.
aspiringflaneur has joined #ruby
<shevy>
we don't wanna blend pandas
bklane has quit [Remote host closed the connection]
Atttwww has joined #ruby
<jokke>
hi
bklane has joined #ruby
jlast has joined #ruby
<havenwood>
shevy: not us
<jokke>
i'm trying to define a grammar with treetop and right now i'm trying reverse polish notation
siwica has joined #ruby
Takle has quit [Remote host closed the connection]
<jokke>
i quickly bumped into left recursion which isn't possible
<havenwood>
shevy: that's those other folk
jnollette has joined #ruby
<jokke>
but i have no idea how to substitute it
siwica1 has quit [Ping timeout: 255 seconds]
shredding has quit [Quit: shredding]
olivier_bK has joined #ruby
bklane has quit [Remote host closed the connection]
<havenwood>
jokke: bundler api looks happy to me, dunno
failshell has quit [Ping timeout: 255 seconds]
mary5030 has quit [Remote host closed the connection]
siwica1 has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
Guest14066 has quit [Quit: Connection closed for inactivity]
benzrf|offline is now known as benzrf
failshel_ has quit [Ping timeout: 255 seconds]
Morkel has quit [Quit: Morkel]
matchaw has quit [Ping timeout: 240 seconds]
bMalum has quit [Quit: bMalum]
<havenwood>
jokke: run `bundle install --verbose` and link to a Gist of the output?
matchaw has joined #ruby
musl has joined #ruby
<mwlang>
does tiny_tds muck with DDL statements in any way? If I use Tiny to create a table like this: https://gist.github.com/mwlang/a6f69fa024f0c0b9fb2a I get a table full of not-nullable columns. But if I do the same through ruby-odbc, I get the expected table. What gives?
dangerousdave has joined #ruby
it0a has quit [Read error: Connection reset by peer]
beef-wellington has quit [Ping timeout: 246 seconds]
parduse has quit [Ping timeout: 255 seconds]
Kricir has joined #ruby
melik has joined #ruby
parduse has joined #ruby
claw has quit [Quit: Konversation terminated!]
siwica has joined #ruby
renderful has joined #ruby
jlast has quit [Read error: Connection reset by peer]
siwica1 has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
KC9YDN has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
siwica1 has joined #ruby
awarner has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 250 seconds]
jxf has joined #ruby
awarner has joined #ruby
reinaldob has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 260 seconds]
matchaw has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspiers has joined #ruby
spyderman4g63 has joined #ruby
anarang has quit [Quit: Leaving]
obs has quit [Quit: Saliendo]
sailias has quit [Quit: Leaving.]
moritzschaefer has quit [Remote host closed the connection]
moritzs has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 240 seconds]
treehug8_ has quit []
Loplin has quit [Quit: Leaving.]
yetanotherdave has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Snowstormer has quit [Ping timeout: 255 seconds]
pretty is now known as magic
ndrei has quit [Ping timeout: 240 seconds]
Snowstormer has joined #ruby
matchaw has joined #ruby
<mwlang>
updated gist to a more complete example using tiny_tds both directly and via the sequel ORM as well as DBI::ODBC https://gist.github.com/mwlang/a6f69fa024f0c0b9fb2a This is against a MS SQL Server 2005 DBMS, if that matters.
Techguy305 has joined #ruby
Techguy305 has quit [Max SendQ exceeded]
Sonny|3oy has quit [Quit: Leaving]
emmesswhy has quit [Quit: This computer has gone to sleep]
Techguy305 has joined #ruby
<TeresaP>
I installed the calabash-cucumber gem and am unable to use it by simply entering 'cucumber' on the terminal window. This implies something needs to be added to $PATH, but I already have /Users/foo/.rbenv/bin:/Users/foo/.rbenv/shims set in there. Shouldn't that be enough?
<postmodern>
TeresaP, rbenv rehash
yetanotherdave has quit [Ping timeout: 240 seconds]
<TeresaP>
woohoo, thanks postmodern
<TeresaP>
I did not know about that
mengu has quit []
x77686d has quit [Quit: x77686d]
matchaw has quit [Ping timeout: 261 seconds]
Kricir has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 255 seconds]
hobodave has quit [Ping timeout: 246 seconds]
mchelen has joined #ruby
nirvdrum has quit [Ping timeout: 260 seconds]
aspiringflaneur has quit [Quit: ZZZzzz…]
BadQuanta has quit [Ping timeout: 272 seconds]
mg^ has joined #ruby
shock_one has joined #ruby
codecop has quit [Remote host closed the connection]
jimmyhoughjr has joined #ruby
matchaw has joined #ruby
jnollette has quit [Ping timeout: 255 seconds]
pandaant has quit [Quit: Lost terminal]
klaut has joined #ruby
<lagweezle>
TeresaP: Work looking for rbenv-rehash and installing it :)
pandaant has joined #ruby
einarj has joined #ruby
hhutch has quit [Ping timeout: 260 seconds]
Atttwww has quit [Ping timeout: 244 seconds]
kaspertidemann has quit []
siwica has joined #ruby
kirun has quit [Quit: Client exiting]
Sgeo has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
siwica1 has quit [Ping timeout: 272 seconds]
Sgeo has joined #ruby
SilkFox_ has joined #ruby
narph has joined #ruby
monsieurp has quit [Remote host closed the connection]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
SilkFox_ has quit [Ping timeout: 272 seconds]
benzrf is now known as benzrf|offline
siwica1 has joined #ruby
enebo has quit [Quit: enebo]
aspiringflaneur has joined #ruby
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siwica has quit [Ping timeout: 245 seconds]
emmesswhy has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
fabrice31 has joined #ruby
awarner has quit [Remote host closed the connection]
awarner has joined #ruby
patrick99e99 has joined #ruby
babykosh has joined #ruby
gccostabr has quit [Read error: Connection reset by peer]
gccostabr has joined #ruby
shock_one has quit [Quit: Be back later ...]
babykosh has quit [Client Quit]
baordog has quit [Ping timeout: 255 seconds]
djstorm has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
failshell has joined #ruby
bklane has quit [Remote host closed the connection]
hmsimha has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 260 seconds]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonks has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
Techguy305 has quit [Ping timeout: 255 seconds]
failshell has quit [Ping timeout: 265 seconds]
JaMz has quit [Remote host closed the connection]
nonks has joined #ruby
freerobby has quit [Quit: Leaving.]
valeriansaliou has quit [Quit: Be back later ...]
weemsledeux has joined #ruby
weemsledeux has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
jnollette has joined #ruby
axl_ has quit [Quit: axl_]
sambao21 has joined #ruby
Asher has quit [Quit: Leaving.]
Lingo___ has joined #ruby
abuzze has joined #ruby
siwica has joined #ruby
mikecmpbll has joined #ruby
robbyoconnor has joined #ruby
siwica1 has quit [Ping timeout: 272 seconds]
moritzs has joined #ruby
skolman has joined #ruby
msmith_ has quit [Remote host closed the connection]
moritzschaefer has joined #ruby
chrishough has joined #ruby
abuzze has quit [Ping timeout: 265 seconds]
r0bby_ has joined #ruby
whoops has quit []
robbyoconnor has quit [Ping timeout: 258 seconds]
agjacome has quit [Remote host closed the connection]
Lingo___ is now known as harq
jnollette has quit [Ping timeout: 265 seconds]
thisguy123 has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrishough has quit [Client Quit]
andrewlio has quit [Quit: Leaving.]
chrishough has joined #ruby
agjacome has joined #ruby
agrinb has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bklane has joined #ruby
graydot has quit [Quit: graydot]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
siwica1 has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
jtdowney has joined #ruby
mikepack has quit []
twohlix has quit [Ping timeout: 250 seconds]
nichtdiebohne1 has quit [Ping timeout: 245 seconds]
agrinb has quit [Ping timeout: 272 seconds]
thisguy123 has joined #ruby
awarner has quit [Remote host closed the connection]
r0bby_ is now known as robbyoconnor
jnollette has joined #ruby
moritzs has quit [Quit: Verlassend]
moritzschaefer has quit [Quit: Verlassend]
awarner has joined #ruby
manzo has joined #ruby
NoNMaDDeN has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
devdazed has quit [Quit: Computer has gone to sleep.]
M-Technic has joined #ruby
siwica has joined #ruby
siwica1 has quit [Ping timeout: 260 seconds]
KC9YDN has joined #ruby
SilkFox_ has joined #ruby
VBlizzard has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
wenshan has joined #ruby
Photism has joined #ruby
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
bklane has quit [Read error: Connection reset by peer]
bklane has joined #ruby
davasaurous has joined #ruby
larissa has joined #ruby
pork_clips has joined #ruby
pork_clips is now known as _cake
jnollett_ has joined #ruby
baordog has joined #ruby
_cake has quit [Client Quit]
tier has joined #ruby
beef-wellington has joined #ruby
Takle has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 272 seconds]
jnollette has quit [Ping timeout: 272 seconds]
matchaw has joined #ruby
nichtdiebohne has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
ferr has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
lolmaus has joined #ruby
Kricir has joined #ruby
matchaw has quit [Ping timeout: 265 seconds]
Channel6 has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
thisguy123 has quit [Ping timeout: 240 seconds]
jimmyhoughjr has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
momomomomo_ is now known as momomomomo
maestrojed has quit [Quit: Computer has gone to sleep.]
thisguy123 has joined #ruby
skolman has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
wenshan has quit [Remote host closed the connection]
skolman_ has joined #ruby
jlast has joined #ruby
IceDragon has joined #ruby
shock_one has joined #ruby
skolman_ has quit [Remote host closed the connection]
snath has quit [Ping timeout: 246 seconds]
skolman_ has joined #ruby
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
mercwithamouth has joined #ruby
FooMunki has quit [Quit: FooMunki]
narcan has joined #ruby
shock_one has quit [Ping timeout: 255 seconds]
klaut has quit [Remote host closed the connection]
drkyro has joined #ruby
willywos has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: i've nodded off.]
omosoj has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
einarj has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
ioc has joined #ruby
Nilium has quit [Ping timeout: 260 seconds]
mxrguspxrt has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
agrinb has joined #ruby
skolman_ has joined #ruby
zaid_h has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
charliesome has joined #ruby
klmlfl has quit [Ping timeout: 255 seconds]
<Fire-Dragon-DoL>
mhhh... I have a class which should behave exactly like an array except when ADDING something to the array. How can I delegate everything excet "add something to array" methods OR a generic method I can overwrite to change how it behaves when I add elements to array?
<Fire-Dragon-DoL>
jtdowney: I'm currently using that, the problem is that it delegates all methods that don't exist. I'm having problem with the second part: which are the methods that add something to an array
TeresaP has quit [Ping timeout: 246 seconds]
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
arescorpio has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]