apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
<rickhull>
in my test, i would be calling Utilities.run_command right? how would a subclass defined outside that method affect how the method executes? where do i get something to test other than subprocess_io?
zomgbie has quit [Ping timeout: 252 seconds]
__butch__1 has quit [Quit: Leaving.]
<rickhull>
i'm sure i'm missing something obvious. some aspects of mocks and stubs just never clicked with me
tomzx_mac has joined #ruby-lang
injekt has joined #ruby-lang
<erikh>
you don't actually test the thing, you test it's output
<erikh>
(and orchestrate said output)
<rickhull>
i'll buy you a beer if you can make that concrete for me :P
<erikh>
not sure what you mean, you write fake methods that yield data, and work with that data
<erikh>
I never use them myself. I'd rather have slow tests than fake ones
<rickhull>
that's my feeling. i'll solve the slow test problem later
<rickhull>
if it's an issue
<erikh>
can't really solve it in my use cases
<erikh>
ops is a bitch in that regard
<rickhull>
we have some existing tests here that call out over the network and time out in the general case
<rickhull>
less than 1 test/sec
<rickhull>
so i'm well above the benchmark \o/
pbjorklund has joined #ruby-lang
pipework has joined #ruby-lang
<rickhull>
note, i'm working on teasing out the functionality that does this, so we can test more stuff purely locally
<rickhull>
the tests themselves don't hit the network, but they call functionality that opaquely does
mdedetrich has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby-lang
<manveru>
bnagy: new company
<bnagy>
:/
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
<manveru>
yeah
<manveru>
oh well, i get to convert a lot of it to Go
<bnagy>
ooh you're doing Go now?
<manveru>
aye
<bnagy>
I just started playing with it
mbj has joined #ruby-lang
<bnagy>
can't say I'm loving it, but I'm hating it way less than c++
<manveru>
lol
<manveru>
been using it for a few years now
<manveru>
i'm just happy people aren't able to use it to create something like rails
<bnagy>
I have certain problem sets that I think it would suit extremely well
<bnagy>
but I'm finding thinking in not-ruby way harder than I thought
Criztian has joined #ruby-lang
<crazyhorse>
manveru: do you like go better than ruby? or using it for particular use-cases
solars has joined #ruby-lang
<bnagy>
like.. for loop? Seriously? Let me think back...
<judofyr>
Go seems fine, although I have higher hopes for Rust
<manveru>
there are some things that make my weep :)
<manveru>
*me
pipework has joined #ruby-lang
<crazyhorse>
I would probably like a stricter language that leads to less bugs
<manveru>
like having to duplicate whole files just to emulate generics
<crazyhorse>
e.g. something like haskell
jstorimer has joined #ruby-lang
<crazyhorse>
I find lots of the problems with development even with huge unit test suites is bug finding
<crazyhorse>
and i think it's got more to do with language architecture and separating everything
<manveru>
erlang is all fun and games until they ask you to dive into math theory :(
<manveru>
err, haskell
<injekt>
moin
havenwood has quit [Remote host closed the connection]
<crazyhorse>
i'm still not sold on closures in languages
havenwood has joined #ruby-lang
<judofyr>
crazyhorse: in general?
<manveru>
oO
<crazyhorse>
yeah in general
<judofyr>
crazyhorse: well, there's always Java
<crazyhorse>
it's kinda like having global variables that can float from one place to another
<bnagy>
uh.. go on?
<crazyhorse>
judofyr: yeah but java is horrible too.. takes hours to write something piss-simple
<manveru>
are there languages without closures?
<manveru>
i mean, even if you can't pass them in some
<crazyhorse>
i suppose i meant closures in the way ruby/javascript has them
<crazyhorse>
i.e. having inner methods that can access variables in outer methods
<crazyhorse>
that makes the segregation and compartmentalising of code difficult
tonni has quit [Remote host closed the connection]
<crazyhorse>
additionally i think lots of programming architectures will have to change
<crazyhorse>
because we'll end up having 1000 core cpus
<bnagy>
should I be getting popcorn?
cordax has quit [Ping timeout: 252 seconds]
<manveru>
possibly
mdedetrich has joined #ruby-lang
<manveru>
nah, i'm not gonna argue this stuff :)
<judofyr>
crazyhorse: I'm very interested in how such a language (without closures) would look like without being as verbose as Java
<crazyhorse>
and obviously the way we code at the moment, isn't really built for that (and it's not easy)
<crazyhorse>
judofyr: one of the creators of merb used to chat to me about this stuff all the time
<crazyhorse>
really smart guy, very interesting ideas
<judofyr>
crazyhorse: again: show me examples, because I have no idea how this would look
<bnagy>
why are closures not a positive approach to massively concurrent programming?
<charliesome>
crazyhorse: what about closures that can't modify outer variables?
<manveru>
take map/reduce... execute one closure on N CPUs
<crazyhorse>
bnagy: it's not necessarily, but if the closures can change
<crazyhorse>
charliesome: exactly.. that might work
<charliesome>
crazyhorse: have you played with haskell much?
<crazyhorse>
charliesome: not at all
<crazyhorse>
talked about it a bit :D
<crazyhorse>
i like the concepts
criego has quit [Ping timeout: 248 seconds]
<crazyhorse>
i'm always too busy working to really have a play
<Mon_Ouie>
That's not specific to closures though, any shared mutable state has the same problem
<charliesome>
well basically it doesn't have 'variables'
<charliesome>
you can bind a value to a name in a scope
<charliesome>
and access that name from inner scopes
<charliesome>
you can't modify anything though
<judofyr>
crazyhorse: you can have closures without mutable variables
<judofyr>
seems like you more have a problem with mutable variables
<judofyr>
or, mutable state
<bnagy>
crazyhorse: are you anti pass-by-reference as well?
<crazyhorse>
bnargy: not really.. to be honest i'm not expert enough on language stuff to have a defined opinion. I mainly deal with application-architecture
<bnagy>
charliesome: OT but holy crap dude you look like 12
<crazyhorse>
i do know that many of the bugs we have encounted
<bnagy>
uh no offense
<charliesome>
bnagy: hm?
<crazyhorse>
is because of things not being properly segragated
<bnagy>
seeing pics of irc people on twitter or wherever really freaks me out sometimes :/
<injekt>
charliesome: you coming to any eu confs this year?
<charliesome>
hah
<charliesome>
injekt: probably not
<judofyr>
bnagy: was it the PHP t-shirt pic?
<bnagy>
it was
<judofyr>
bnagy: were you not aware of that charliesome actually is 12 years old? :D
_jpb_ has quit [Ping timeout: 246 seconds]
<injekt>
^
<charliesome>
i am 12 years old and what is this
<injekt>
he's a little behind, we know
_jpb_ has joined #ruby-lang
<bnagy>
...
kgrz has quit [Remote host closed the connection]
mdedetrich has quit [Ping timeout: 246 seconds]
dc5ala has joined #ruby-lang
<injekt>
can someone fix my internet
<bnagy>
thump it with a screwdriver
<injekt>
oh that worked
mbj has quit [Ping timeout: 246 seconds]
mbj has joined #ruby-lang
tonni has joined #ruby-lang
<bnagy>
awww yeah
kgrz has joined #ruby-lang
Cremno has joined #ruby-lang
jstorimer has quit [Ping timeout: 276 seconds]
publicvoid_ has quit [Ping timeout: 264 seconds]
firstdayonthejob has quit [Ping timeout: 256 seconds]
spectra has quit [Ping timeout: 256 seconds]
GeissT has quit [Ping timeout: 240 seconds]
spectra has joined #ruby-lang
tylersmi_ has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
ffio has joined #ruby-lang
dagobah has joined #ruby-lang
barttenbrinke has joined #ruby-lang
tylersmith has quit [Ping timeout: 268 seconds]
stamina has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
elia has joined #ruby-lang
Rizzle has quit [Read error: Connection reset by peer]
_jpb_ has quit [Ping timeout: 264 seconds]
_jpb_ has joined #ruby-lang
Rizzle has joined #ruby-lang
jstorimer has joined #ruby-lang
hhatch has joined #ruby-lang
relix has joined #ruby-lang
pbjorklund has quit [Ping timeout: 264 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
pbjorklund has joined #ruby-lang
jstorimer has quit [Ping timeout: 276 seconds]
<judofyr>
charliesome: re: that CSS article you retweeted:
<charliesome>
judofyr yeah
<judofyr>
charliesome: we've been using » and › as BEM separators
<charliesome>
judofyr: haha seriously?
<judofyr>
charliesome: .my-module»close-button
<judofyr>
charliesome: .my-module›important
<charliesome>
do you have that on your keyboard?
<judofyr>
charliesome: sure, Ctrl-Alt \ and Ctrl-Alt 4
<judofyr>
charliesome: reads so much better
<charliesome>
that's nuts
<charliesome>
although
<judofyr>
works everywhere as well
<charliesome>
i can't come up with anything concrete against it
<judofyr>
(IE6 etc.)
mytrile has joined #ruby-lang
roadt has quit [Ping timeout: 252 seconds]
<judofyr>
charliesome: another alternative class="foo>bar" and class="foo+bar"
<charliesome>
does that work?
<judofyr>
and in CSS: .foo\>bar { }
<judofyr>
oh, and it's Alt-Shift not, Ctrl-Alt (silly me)
<judofyr>
dernise: module Foo; def bar; 1 end end; a = "hello"; a.extend(Foo); a.bar
<judofyr>
dernise: #extend takes a module and makes all of the methods in that module available on the object
<judofyr>
dernise: and because modules are objects, `extend self` is a way to make System.pid_alive? work
rikai has joined #ruby-lang
<dernise>
Ok ! I understand :D
<dernise>
A module is also like a namespace so ?
<judofyr>
dernise: kinda. a module is just a collection of methods.
<judofyr>
dernise: there's no way to invoke methods inside a module directly
<judofyr>
module Foo; def bar; end end
<judofyr>
you'll either have to include it inside a class
<judofyr>
or extend it somewhere
<judofyr>
class Person; include Foo; end; Person.new.bar # => this works
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<judofyr>
dernise: so #include makes the methods in a module available in the instance; #extend makes the methods available on the object itself
Phoop has quit [Quit: Phoop]
mbj has quit [Read error: Operation timed out]
<judofyr>
dernise: it can be a bit confusing.
M_BlX has joined #ruby-lang
ffio has joined #ruby-lang
<kith>
i'm so bored, is there a channel i could join for fun?
<dernise>
Do you often use modules ?
<kith>
yeah
<GarethAdams>
kith: #defocus is Freenode's social channel
<kith>
ah okay
<kith>
GarethAdams: indeed amusing... first thing i read after joining:
<kith>
[12:59 PM] <April22> i need a boy
<kith>
[12:59 PM] <April22> a single boy
vlad_starkov has quit [Remote host closed the connection]
<judofyr>
kith: sounds like span
<judofyr>
spam
<kith>
ofc
benxao has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
<apeiros>
reminds me of a song lyric (translated): "you're the nicest boy I ever met, but that won't help, because I'm looking for a man"
jsullivandigs has joined #ruby-lang
jstorimer has quit [Ping timeout: 252 seconds]
zomgbie has joined #ruby-lang
kgrz has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 256 seconds]
kgrz_ has quit [Ping timeout: 268 seconds]
relix has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
x0f has quit [Ping timeout: 256 seconds]
x0f has joined #ruby-lang
Oak has quit [Ping timeout: 252 seconds]
jstorimer has joined #ruby-lang
TvL2386 has joined #ruby-lang
<TvL2386>
hi guys, I'm starting TDD and use rspec. My application uses configuration parameters... How would you set them for your testsuite? Using ENV?
<scholar01>
+1, i'm curious about this as well.
<TvL2386>
:)
<lupine>
that's what I do
x0f has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
<scholar01>
I've used ENV for some tools and config files for others…
<lupine>
well, typically you can work out sane defaults, and then use ENV to override them
<andrewvos>
Yep
<scholar01>
sometimes my tests require API keys to other services that I don't want to share when I release the code.
<andrewvos>
Do what lupine says
x0f has joined #ruby-lang
<TvL2386>
I'm creating an application that has to ssh to a host. I would like to dynamically determine user, password and hostname/ip. I'll go with ENV and create a test that tests whether there is information supplied
<TvL2386>
thanks guys
<lupine>
one set of tests that still touches the DB looks like this in the setup helper: :database => ENV['BRAIN_TEST_DB'] || "bigv_brain_test_#{ENV['USER']}"
<yorickpeterse>
TvL2386: you can set them in e.g. support/configuration.rb
<yorickpeterse>
given they never change
Squarepy has joined #ruby-lang
<TvL2386>
yorickpeterse, that's the problem... in the near future it will change...
zomgbie_ has joined #ruby-lang
<yorickpeterse>
then change it in the config?
<yorickpeterse>
why bother with having to set ENV variables if it only changes once in a while
x0f has quit [Ping timeout: 252 seconds]
x0f has joined #ruby-lang
Oak has joined #ruby-lang
Oak has quit [Changing host]
Oak has joined #ruby-lang
<andrewvos>
yorickpeterse: Well because checking in usernames and passwords to git isn't nice
<andrewvos>
Well I suppose it depends actually
pbjorklund has quit [Read error: Operation timed out]
yalue has joined #ruby-lang
M_BlX has quit [Remote host closed the connection]
<injekt>
heh
vlad_starkov has joined #ruby-lang
<injekt>
yorickpeterse: y u athens
pbjorklund has joined #ruby-lang
jxie has quit [Quit: leaving]
malev has joined #ruby-lang
zomgbie__ has joined #ruby-lang
mbj has joined #ruby-lang
zomgbie_ has quit [Ping timeout: 252 seconds]
zomgbie has quit [Ping timeout: 276 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
_jpb_ has quit [Remote host closed the connection]
<dernise>
Why can't I call a method of a module inside of this module. example : module system def set_user (some code here) end def start set_user end end <- gives me an undefined method `set_user' for Monitor::System:Module (NoMethodError)
<judofyr>
dernise: that's just how modules work. you can't invoke it directly by default.
<judofyr>
dernise: you can either (1) use extend self (2) use module_function
<dernise>
Well, It isn't possible to call a method of a module inside of this module ?
<dernise>
And I put extend self, and the problem is still there /:
jstorimer has quit [Remote host closed the connection]
cofin has joined #ruby-lang
Oak has quit [Quit: Leaving]
<judofyr>
dernise: if you're inside inside the module you should also have access to the methods
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
<judofyr>
dernise: could you paste full example? gist.github.com
_jpb_ has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby-lang
scampbell has joined #ruby-lang
_jpb_ has joined #ruby-lang
<dernise>
Ok, wait;
pskosinski has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
<judofyr>
dernise: oh, I see it: you have the second 'def' inside the method
<judofyr>
dernise: `def daemonize() def set_user() end end` is not the same as `def daemonize() end def set_user() end`
<injekt>
also please use module_function over extend self
<judofyr>
injekt: what's the actual advantages again?
<dernise>
Oh ok thanks, didn't see it :)
tomzx_mac has joined #ruby-lang
<injekt>
module_function makes instance methods private
Mon_Ouie has quit [Ping timeout: 252 seconds]
<pipework>
Mmm.
<injekt>
then makes class methods that call those private methods
<injekt>
module methods? *shrug*
<injekt>
metaclass methods
<injekt>
:D
Mon_Ouie has joined #ruby-lang
pbjorklund has quit [Read error: Operation timed out]
pbjorklund has joined #ruby-lang
<dernise>
Will the process class work on a mac just like it is working on linux ?
<judofyr>
dernise: pretty much
Voker57 has quit []
MartynKeigher has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
Voker57 has joined #ruby-lang
fess has joined #ruby-lang
machuga|away is now known as machuga
pskosinski has joined #ruby-lang
northelks has quit [Ping timeout: 256 seconds]
<injekt>
anyone in here write much coffeescript?
sbpraveen34 has joined #ruby-lang
<PaulePanter>
Hi. If I want to check if a string contains several elements stored in an array (TYPES = ['a', 'b', 'c']), is there an easier way than doing
<PaulePanter>
TYPES.each do |match|
<PaulePanter>
if (somestring.includes? match)
<PaulePanter>
…
<PaulePanter>
end
<PaulePanter>
end
<injekt>
TYPES.all? { |c| str.include?(c) }
<PaulePanter>
?
<PaulePanter>
What is the difference between .all and .each?
<injekt>
>> %w(a b c).all? {|c| "abcd".include?(c) }
<judofyr>
whitequark: some features I need: linking to headers in other files, adding custom HTML "widgets" (e.g. I want to be able to insert a "view source"-functionality)
<whitequark>
judofyr: kramdown has you covered
<whitequark>
the first one is provided out of the box (check my file)
<whitequark>
the second one should be trivial to implement
<judofyr>
whitequark: and (3) it should render nicely on GitHub
sbpraveen34 has quit [Quit: ChatZilla 0.9.90 [Firefox 24.0a1/20130622094432]]
<judofyr>
whitequark: is it kramdown that has the {: } syntax?
<whitequark>
yes
<whitequark>
and you won't be able to find anything that renders nicely on github.
<whitequark>
github uses a rather screwed up version of redcarpet.
<judofyr>
whitequark: screwed up how?
<whitequark>
incompatible with everything else
<whitequark>
plus redcarpet didn't follow markdown spec that well even before
<whitequark>
judofyr: use github pages, I guess?
<judofyr>
whitequark: oh: and search
_jpb_ has quit [Ping timeout: 268 seconds]
<judofyr>
whitequark: and a live server
<whitequark>
judofyr: roll your own :p
_jpb_ has joined #ruby-lang
<judofyr>
whitequark: yeah, I think I'll have to do that :(
<whitequark>
kramdown+sinatra+...
<whitequark>
hm
<judofyr>
whitequark: I've always been happy with Redcarpet though
<whitequark>
something pure-ruby should suffice, I guess
tomzx_mac has quit [Read error: Operation timed out]
<judofyr>
whitequark: and I'm probably going to use my own little framework
<judofyr>
but yeah
<whitequark>
kramdown's really better with inline HTML and styles
<GarethAdams>
ericwood: I prefered when they were ionized
carloslopes has joined #ruby-lang
roadt has quit [Ping timeout: 256 seconds]
tylersmith has quit [Ping timeout: 256 seconds]
mikewintermute has quit [Ping timeout: 260 seconds]
mikewintermute has joined #ruby-lang
kgrz has quit [Ping timeout: 256 seconds]
GarethAdams has quit [Quit: Leaving...]
zmike123 has quit [Ping timeout: 256 seconds]
mikewintermute has quit [Ping timeout: 252 seconds]
publicvoid_ has joined #ruby-lang
bgant has joined #ruby-lang
_elia has joined #ruby-lang
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
verto has joined #ruby-lang
jonahR has quit [Quit: jonahR]
jonahR has joined #ruby-lang
elia has quit [Ping timeout: 276 seconds]
elia has joined #ruby-lang
gregmoreno has joined #ruby-lang
zmike123 has joined #ruby-lang
_elia has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby-lang
_jpb_ has quit [Ping timeout: 251 seconds]
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
spacesuit has quit [Quit: spacesuit]
_jpb_ has joined #ruby-lang
enebo has quit [Quit: enebo]
judofyr has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 260 seconds]
runeb has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
jds__ has joined #ruby-lang
tonni has joined #ruby-lang
elia has quit [Ping timeout: 260 seconds]
tonni has quit [Ping timeout: 256 seconds]
philnyc has quit [Ping timeout: 246 seconds]
glebm has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
enebo has joined #ruby-lang
<jds__>
On my Mac, setting LC_ALL=en_US.UTF-8 is sufficient for ruby to set the default external encoding to UTF-8. On a solaris server, the same ruby version seems to completely ignore LC_ALL/LANG. The only thing I've found that affects it is "ruby -E UTF-8"
<jds__>
Any ideas why?
adambeynon has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby-lang
arya_ has left #ruby-lang [#ruby-lang]
<Mon_Ouie>
Same Ruby version?
Voker57 has quit []
<Mon_Ouie>
Oh, you said that, sorry :p
<Mon_Ouie>
(Same patchlevel too though?)
jstorimer has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
loincloth has quit [Ping timeout: 246 seconds]
loincloth has joined #ruby-lang
andrewvos has quit [Quit: leaving]
enebo has quit [Quit: enebo]
<jds__>
Mon_Ouie: Yeah, both 194
jxpx777 has joined #ruby-lang
saarinen has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
ia___ has joined #ruby-lang
Pupeno_ has joined #ruby-lang
symm- has joined #ruby-lang
stamina has quit [Ping timeout: 252 seconds]
krohrbaugh has quit [Quit: Leaving.]
Pupeno has quit [Ping timeout: 268 seconds]
justinram has joined #ruby-lang
fragamus has joined #ruby-lang
<Mon_Ouie>
So what encoding does LC_ALL='…' ruby -e 'p Encoding.default_external' give you?
snarfmason has quit [Quit: Computer has gone to sleep.]
snarfmason has joined #ruby-lang
<jds__>
Mon_Ouie: US-ASCII
mbj has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
krohrbaugh has joined #ruby-lang
<jds__>
(Sorry - got to run, but if anyone has suggestions they'd be appreciated)
<Mon_Ouie>
Hm. Maybe $RUBYOPT contains something that changes the default encoding?
<Joni_79>
now it passes the test: if a <= 0 || b <= 0 || c <= 0
zomgbie has quit [Read error: Connection reset by peer]
zomgbie_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
Weems has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
Nisstyre-laptop is now known as Nisstyre
<Joni_79>
apeiros: thanks again. I feel so stupid and yet so happy. :)
<apeiros>
:)
lguardiola has quit [Quit: Good bye!]
publicvoid_ has quit [Ping timeout: 256 seconds]
lguardiola has joined #ruby-lang
lguardiola has quit [Remote host closed the connection]
mistym is now known as mistym_lunch
lguardiola has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has quit [Changing host]
Pupeno has joined #ruby-lang
ffio_ has quit [Quit: WeeChat 0.4.1]
gregmore_ has quit [Remote host closed the connection]
<eam>
apeiros: awesome, thanks
Pupeno has quit [Ping timeout: 240 seconds]
_jpb_ has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
gregmoreno has joined #ruby-lang
zmike123 has quit [Quit: ~]
havenwood has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
benanne has joined #ruby-lang
diegoviola has quit [Ping timeout: 256 seconds]
tRAS has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
jerrytgarcia has quit [Client Quit]
Nisstyre has quit [Ping timeout: 260 seconds]
diego1 has joined #ruby-lang
mbj has quit [Read error: Connection reset by peer]
diego1 is now known as diegoviola
malev_ has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
saarinen has joined #ruby-lang
_jpb_ has quit [Ping timeout: 248 seconds]
synthetix has joined #ruby-lang
_jpb_ has joined #ruby-lang
MaddinXx has joined #ruby-lang
drueck has joined #ruby-lang
machuga is now known as machuga|away
hinbody has joined #ruby-lang
vlad_starkov has joined #ruby-lang
krohrbaugh has joined #ruby-lang
roadt has quit [Ping timeout: 264 seconds]
nathanstitt has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
DomKM has quit [Quit: Leaving.]
tRAS has quit [Quit: Mother, did it need to be so high?]
jsullivandigs has quit [Remote host closed the connection]
drueck has left #ruby-lang [#ruby-lang]
drueck has joined #ruby-lang
jsullivandigs has joined #ruby-lang
postmodern has joined #ruby-lang
levifig has quit [Read error: Operation timed out]
jsulliva_ has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
atmosx_desktop has joined #ruby-lang
atmosx_desktop has quit [Client Quit]
levifig has joined #ruby-lang
<drueck>
For the last couple of days I've been getting seg faults.
<drueck>
I'm running Rails 4 and Ruby 2.
<drueck>
Looking for some advice on troubleshooting... or if I should report a bug, and to whom?
<whitequark>
drueck: -p0?
<drueck>
Yeah.
<whitequark>
2.0.0-p0?
<whitequark>
yeah
<whitequark>
known bug
<whitequark>
upgrade
<drueck>
Oh... cool. Thanks. Will do!
jbsan has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
io_syl has joined #ruby-lang
drueck has left #ruby-lang [#ruby-lang]
kristofferrr has quit [Quit: ❤]
nathanstitt has joined #ruby-lang
jbsan has quit [Quit: jbsan]
ffio has joined #ruby-lang
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
bradland has left #ruby-lang [#ruby-lang]
<Aloysius1>
Hey, all! Looking for deamonizing tips. I've got a script that I've Thor-ized and now I'm trying to Daemon-ize it. Since the class registers a callback, all the Thor-ized code does is create the object, then sleeps. I've tried to replace that with variations on:
Criztian has quit [Remote host closed the connection]
<Aloysius1>
I've tried putting the loop in Proc.new and putting in loops with short sleeps, e.g. But all that happens is that the callback is never fired once the Daemonization starts. (It is fired before, however.)
apeiros has quit [Remote host closed the connection]
silorge has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 248 seconds]
jbsan has joined #ruby-lang
<Aloysius1>
Fork it, maybe?
<darix>
Aloysius1: there are gems for that.
<Aloysius1>
I'm using Daemons.
<Aloysius1>
Specifically.
<Aloysius1>
Not trying to roll my own daemon-ization code, sorry for the ambiguity.
ffio has quit [Quit: WeeChat 0.4.1]
wallerdev has quit [Ping timeout: 256 seconds]
jstorimer has joined #ruby-lang
tenderlove has joined #ruby-lang
elia has joined #ruby-lang
jbsan has quit [Quit: jbsan]
mbj has joined #ruby-lang
_jpb_ has quit [Ping timeout: 276 seconds]
_jpb_ has joined #ruby-lang
mistym_lunch is now known as mistym
guns has joined #ruby-lang
jbsan has joined #ruby-lang
duph has joined #ruby-lang
<Aloysius1>
Wow, I guess I was overthinking it. I just added "Process.daemon" and that seems to have done it.
toretore has quit [Quit: This computer has gone to sleep]
setmeaway has quit [Ping timeout: 246 seconds]
spacesuit has quit [Quit: spacesuit]
toretore has joined #ruby-lang
Sambalero has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
scampbell has quit [Remote host closed the connection]
MartynKeigher has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
Aloysius1 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
MartynKeigher has joined #ruby-lang
toretore has quit [Quit: Leaving]
duph has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 248 seconds]
hhatch has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 248 seconds]
vbatts|work has quit [Quit: MeSoChatty 0.3.8]
beawesomeinstead has quit [Read error: Operation timed out]
wmoxam has quit [Ping timeout: 276 seconds]
UziMonkey___ has quit [Read error: Operation timed out]
ldnunes has quit [Quit: Leaving]
Aaaarg has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
toretore has joined #ruby-lang
Nisstyre has joined #ruby-lang
fridim__ has quit [Ping timeout: 264 seconds]
mbj has quit [Ping timeout: 264 seconds]
mbj has joined #ruby-lang
Aaaarg has quit [Remote host closed the connection]
guns has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
runeb has joined #ruby-lang
krohrbaugh has joined #ruby-lang
randym_ has joined #ruby-lang
M_BlX has quit [Remote host closed the connection]
eugenejen has quit [Quit: eugenejen]
saarinen has quit [Quit: saarinen]
zenspider has joined #ruby-lang
andrewvos has joined #ruby-lang
x0f_ has joined #ruby-lang
Mon_Ouie has quit [Read error: Connection reset by peer]
x0f has quit [Ping timeout: 276 seconds]
jstorimer has quit [Remote host closed the connection]
mbj has quit [Quit: leaving]
jstorimer has joined #ruby-lang
lcdhoffman has joined #ruby-lang
runeb has quit [Remote host closed the connection]
ruby-lang868 has joined #ruby-lang
saarinen has joined #ruby-lang
runeb has joined #ruby-lang
SilverKey has quit [Quit: Zzzzzz.]
_jpb_ has quit [Ping timeout: 264 seconds]
_jpb_ has joined #ruby-lang
nofxx has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
jstorimer has quit [Remote host closed the connection]
runeb has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby-lang
breakingthings has quit [Quit: breakingthings]
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
Aloysius1 has joined #ruby-lang
wallerdev has quit [Client Quit]
<Aloysius1>
Well, maybe not. It creates a daemon process just fine, but that process seems to swallow messages and not produce any results. :-/
wallerdev has joined #ruby-lang
Nisstyre has quit [Ping timeout: 260 seconds]
ruby-lang868 has quit [Ping timeout: 250 seconds]
dernise has quit [Quit: This computer has gone to sleep]
Nisstyre has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
vlad_starkov has joined #ruby-lang
krohrbaugh has joined #ruby-lang
havenwood has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 256 seconds]
marr has joined #ruby-lang
pipework has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
tbuehlmann has quit [Remote host closed the connection]
ryez has quit [K-Lined]
dhruvasagar has quit [Ping timeout: 252 seconds]
verto has quit [Ping timeout: 264 seconds]
wmoxam has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
krohrbaugh has quit [Quit: Leaving.]
_jpb_ has quit [Ping timeout: 248 seconds]
_jpb_ has joined #ruby-lang
toretore has quit [Quit: Leaving]
narya has quit [Remote host closed the connection]
diego1 has joined #ruby-lang
countdigi has quit [Quit: Lost terminal]
gix- has joined #ruby-lang
gix has quit [Disconnected by services]
skade has quit [Quit: Computer has gone to sleep.]
<postmodern>
so is autoload going away, or is it staying?
nathanstitt has quit [Quit: I growing sleepy]
<drbrain>
postmodern: only matz knows
skade has joined #ruby-lang
<drbrain>
it never gained a warning in 2.0, so it looks like it stays for all of 2.x
<postmodern>
drbrain, ok that's reassuring
<postmodern>
drbrain, want to use it, since auto-completion works with it
<drbrain>
fortunately autoload is a blessed version of that :D
<drbrain>
a particular individual said "you should remove autoload because it's deprecated" and I said "no it isn't, it doesn't warn" and closed the issue
<drbrain>
that made them unhappy
bgant has quit [Quit: Leaving.]
skade has joined #ruby-lang
<chris2>
it would be enough if it was threadsafe...
<drbrain>
some patches went in to improve something in that area
<drbrain>
but I have no idea what they were
<chris2>
oh, nice
<drbrain>
at least, not anymore
<drbrain>
recently there was some discussion saying "should we keep it deprecated due to those patches"?
<drbrain>
rather, still mark in deprecated
scottschecter has joined #ruby-lang
diego1 is now known as diegoviola
_jpb_ has quit [Ping timeout: 248 seconds]
_jpb_ has joined #ruby-lang
krohrbaugh has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
pipework has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
wmoxam has quit [Ping timeout: 264 seconds]
loinclot_ has quit [Ping timeout: 264 seconds]
runeb has joined #ruby-lang
duph has joined #ruby-lang
runeb has quit [Ping timeout: 248 seconds]
tylersmith has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]