<Bdawk>
`net rpc service status servicename -I #{ip} -U #{WINUSER}%#{WINPASS} | grep running` works, but if i replace servicename with a variable #{service} with the same string it doesnt. hmmm
kingCrawlerx has joined #ruby-lang
t52017 has quit [Remote host closed the connection]
t65440 has joined #ruby-lang
banisterfiend has quit [Ping timeout: 272 seconds]
lcdhoffman has joined #ruby-lang
ghanima has joined #ruby-lang
chimkan has joined #ruby-lang
dammitradar has quit [Remote host closed the connection]
<daidoji>
but I was hoping there was already a handy gem or something that wuold do it for me
<rhizmoe>
you want syntax highlighting?
<daidoji>
no I want to write ruby code in some kind of text format thats not too strenuous, and then have it generate those things inside the <code> tags that I can CSS
<daidoji>
which is kind of how I imagined they generated those examples and whatnot
<daidoji>
because I'd hate to think that someone did all that markup by hand
seanstickle has quit [Quit: seanstickle]
d3vic3 has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
d3vic3 has joined #ruby-lang
m3nd3s has quit []
tenderlove has joined #ruby-lang
tenderlove has quit [Ping timeout: 268 seconds]
anaconda99 has joined #ruby-lang
yankov has quit [Quit: yankov]
lsegal has joined #ruby-lang
yankov has joined #ruby-lang
WillMarshall has quit [Quit: Computer has gone to sleep.]
Bdawk has quit [Ping timeout: 245 seconds]
Kero has quit [Read error: Operation timed out]
t65440 has quit [Remote host closed the connection]
t83920 has joined #ruby-lang
gmci has joined #ruby-lang
Kero has joined #ruby-lang
schroedinbug has quit [Ping timeout: 272 seconds]
krz has quit [Quit: krz]
slyphon has quit [Quit: WeeChat 0.3.7]
Dreamer3 has quit [Ping timeout: 245 seconds]
Dreamer3 has joined #ruby-lang
schroedinbug has joined #ruby-lang
r0bby_ is now known as robbyoconnor
chimkan has quit [Quit: chimkan]
yankov has quit [Quit: yankov]
neocoin has joined #ruby-lang
WillMarshall has joined #ruby-lang
ghanima has quit [Quit: Leaving.]
tenderlove has joined #ruby-lang
kingCrawlerx has quit [Quit: Computer has gone to sleep]
banisterfiend has joined #ruby-lang
tenderlove has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
savage- has joined #ruby-lang
replore has quit [Remote host closed the connection]
dracco23 has quit [Quit: dracco23]
AntiTyping has quit [Quit: AntiTyping]
joshw668 has joined #ruby-lang
joshw668 has quit [Remote host closed the connection]
JoshWines has quit [Quit: Leaving]
d3vic3 has quit [Read error: Operation timed out]
d3vic3 has joined #ruby-lang
josh^ has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
<manveru>
how about a short sentence that explains what this is?
<masterkorp>
Its a engine computer
<masterkorp>
control all the aspects of an engine
<manveru>
templating engine?
<masterkorp>
real time campable
<masterkorp>
manveru: a car engine
<manveru>
oO
<masterkorp>
petrol engines
<masterkorp>
i am making diesel support
<manveru>
like... a ROM for car engines?
<masterkorp>
manveru: yeah, it uses the freescalse mcu with the XGATE coprossecor
<masterkorp>
the first open source firmware
yats has joined #ruby-lang
<manveru>
guess my car is the last place where i'd switch firmware :)
<matti>
Hi manveru ;]]
<manveru>
oi matti
<matti>
manveru: LTNS here, been busy?
<manveru>
very
t99156 has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
t62418 has joined #ruby-lang
<manveru>
doing almost no ruby these days though :(
<matti>
WOT?
<matti>
manveru: What do you do then?
<manveru>
war on terror?
<manveru>
web of trust?
<manveru>
world of tanks?
<manveru>
anw, i do Go mostly
<matti>
Go.
<matti>
I see.
<matti>
Anything fun?
<manveru>
couldn't find any ruby jobs that didn't involve rails
<matti>
manveru: Puppet Labs in Portland?
<manveru>
it's pretty fun, yeah :)
<matti>
manveru: OpsCode?
<manveru>
do they hire remote?
<matti>
Not sure.
<matti>
Move to Portland, its a decent place as I was told ;]
<matti>
manveru: There is github, they have a lot remote.
<manveru>
portland is in the US though
<manveru>
moving there is not easy
<matti>
Oh, your are in Germany?
<manveru>
yeah
<matti>
Oh dear.
<matti>
manveru: .ch have some nice startups.
<matti>
manveru: Zurich seems to be a nice place too.
<manveru>
ch is damn expensive
<manveru>
and i'm stuck here for another 2 years or so
justinmcp has quit [Ping timeout: 265 seconds]
<matti>
;/
<manveru>
hehe
<manveru>
exactly
justinmcp has joined #ruby-lang
<manveru>
matti: i work at iron.io right now, and they're doing decently
Theueip has joined #ruby-lang
<erikh>
opscode hires remote
<erikh>
I need delicious lasagna
<matti>
manveru: :)
josh^ has quit [Read error: Connection reset by peer]
<matti>
manveru: It will cheer you up -- I wanted to get out of Systems, so I went for Java position. Ended up in support role coding in PHP.
dhruvasagar has quit [Ping timeout: 240 seconds]
<matti>
manveru: I am considering committing sepuku.
<matti>
manveru: :)
<manveru>
ouh
<manveru>
yeah... that's about the stuff i could get in my area
<manveru>
that's why i only work remote
dhruvasagar has joined #ruby-lang
<manveru>
europe is depressing :(
<manveru>
"Opscode has employees in almost every time zone of the lower 48. We've worked hard to create a remote-friendly culture and believe you can have a big impact no matter where you live."
<matti>
Nice.
<manveru>
according to ddg, lower 48 only includes the US
<matti>
manveru: Companies exhibit nasty hiring practices as of late in London -- they will get you in dangling a carrot in front of you, and then you will end up doing some awful shit.
<matti>
manveru: :<
<manveru>
i heard berlin is becoming a good place
<erikh>
opscode is good people. i'd look into it.
<erikh>
been trying to get in myself for a number of months.
_s1n4_ has joined #ruby-lang
<manveru>
when my current contract is done i'll look into it
toertore has quit [Quit: This computer has gone to sleep]
<manveru>
but ruby community these days is not pretty :(
s1n4 has quit [Ping timeout: 252 seconds]
kingCrawlerx has joined #ruby-lang
<erikh>
devops stuff has so far been the exception to the rule as far as I've been concerned
<erikh>
otherwise, yes, I agree.
<erikh>
been tinkering with rust, a similar language to Go
<darix>
erikh: i cant wait for mozilla foundation trying to redo all of firefox in it ;)
vlad_starkov has quit [Remote host closed the connection]
<manveru>
i got into a fight with the rust people about the need for semicolons... :(
<erikh>
darix: eh, that's far off.
<erikh>
ah, you are pickier than I am
<darix>
erikh: not sure it is a good idea to begin with ... given the amount of code in firefox
rue|w has quit [Remote host closed the connection]
<manveru>
yeah, i hate that about me
<manveru>
that's why go is a nice place... everybody has the same code style
<erikh>
darix: I'm not a fan of the big rewrite, but I imagine a great deal of firefox code is safety checks and GC that rust could eliminate
<erikh>
... which is pretty standard for C and C++ programs
kingCrawlerx has quit [Client Quit]
<manveru>
i pondered joining mozilla to work on b2g
<darix>
b2g?
<erikh>
man, mozilla work would be awesome]
<manveru>
boot to gecko
t62418 has quit [Remote host closed the connection]
<darix>
ah
<erikh>
wish I had options like that.
yats has quit [Quit: Leaving]
t37871 has joined #ruby-lang
rue|w has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
<matti>
:)
<manveru>
i was mostly interested because of the webrtc stuff
<matti>
Mozilla seems like a fun place.
<matti>
I've meet some of folks from Mozilla in London.
<matti>
All decent people with nice ideas.
<manveru>
but mozilla is scary too, if google stops funding them
<gnufied>
erikh: well, if you are looking for something in Leeds, Brightbox is pretty good place. been working them for a year, good folks.
<matti>
And it still is amusing "We make no money" :)
bytephilia has quit [Quit: Computer has gone to sleep.]
bytephilia has joined #ruby-lang
scampbell has joined #ruby-lang
t72562 has quit [Remote host closed the connection]
t44356 has joined #ruby-lang
bytephilia has quit [Quit: Computer has gone to sleep.]
slyphon has joined #ruby-lang
rippa has joined #ruby-lang
saxy has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
saxy has quit [Remote host closed the connection]
<voker57>
how to convert Ruby string array to C char** in 1.9? to_ptr from 1.8 doesn't work.
m3nd3s has joined #ruby-lang
<yorickpeterse>
I take it you mean in a C extension?
<yorickpeterse>
if I'm not mistaken you'll have to take care of converting non scalar values to the C equilivants yourself
diegoviola has joined #ruby-lang
<Mon_Ouie>
StringValueCStr(str) will get you a C string from a Ruby string object
<yorickpeterse>
Depending on what he means with a string array that might not work
<yorickpeterse>
if it's a string then yes, if it's `["hello", "world"]` then that will require some more work
<Mon_Ouie>
Well yeah, but he will eventually use StringValueCStr
<Mon_Ouie>
And as I understand, it is the latter
<Mon_Ouie>
For the array, you'd just use RARRAY_LEN and rb_ary_aref
m3nd3s has quit [Ping timeout: 244 seconds]
m3nd3s has joined #ruby-lang
<voker57>
I need to do it in Ruby code which uses C library
<voker57>
and I'm already using StringValueCStr for strings
<voker57>
rb_ary_aref is C function, I assume?
<Mon_Ouie>
Yes, and RARRAY_LEN a macro
<banisterfiend>
Mon_Ouie: why use StringValueCStr over RSTRING_PTR() ?
<banisterfiend>
i've always used RSTRING_PTR
<Mon_Ouie>
RSTRING_PTR was deprecated in favor of StringValuePtr (!= StringValueCStr) IIRC
<Mon_Ouie>
And the point of StringValueCStr is that it is guaranteed to return a NULL-terminated string, and will other raise an exception
<mfn>
On MRI 1.9.3 I tried to use Iconv and got a deprecation warning to use String#encode ; with Iconv I converted from iso-8859-15 to utf8 ; when I use String#force_encoding('iso-8859-15') (because it comes from database is and is 8bit) and then us String#encode('utf8') I get: code converter not found (ISO-8859-15 to utf8) . Any idea where I can look this information up? I'm reading
runeb has quit [Remote host closed the connection]
neocoin has quit [Remote host closed the connection]
headius has quit [Ping timeout: 240 seconds]
carloslopes has quit [Ping timeout: 256 seconds]
goshakkk has quit [Quit: Computer has gone to sleep.]
slyphon has joined #ruby-lang
goshakkk has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
limeds has joined #ruby-lang
Austin__ has joined #ruby-lang
kvirani has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
Virunga has joined #ruby-lang
eevar has joined #ruby-lang
BigFatFatty has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
t93201 has quit [Remote host closed the connection]
t16618 has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
seele1 has left #ruby-lang [#ruby-lang]
sora_h is now known as s0ra_h
Dreamer3 has quit [Quit: Leaving...]
kain has quit [Quit: exit]
kain has joined #ruby-lang
dhruvasagar has joined #ruby-lang
gsav has joined #ruby-lang
mrsolo has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
headius_ has joined #ruby-lang
richardjortega has joined #ruby-lang
headius__ has joined #ruby-lang
sepp2k has joined #ruby-lang
yankov has quit [Quit: yankov]
bfreeman has quit [Ping timeout: 244 seconds]
headius_ has quit [Ping timeout: 272 seconds]
bfreeman has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
sepp2k1 has quit [Ping timeout: 272 seconds]
t16618 has quit [Remote host closed the connection]
t22873 has joined #ruby-lang
carloslopes has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
neocoin has joined #ruby-lang
chimkan_ has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.7]
slyphon has joined #ruby-lang
runeb has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
ricardovaleriano has joined #ruby-lang
runeb has quit [Ping timeout: 272 seconds]
t22873 has quit [Remote host closed the connection]
t51106 has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
leonL has quit [Remote host closed the connection]
cantonic has joined #ruby-lang
limeds has quit [Quit: limeds]
chrismcg is now known as zz_chrismcg
yankov has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
Dreamer3 has joined #ruby-lang
gsav has joined #ruby-lang
leonL has joined #ruby-lang
celinedior has joined #ruby-lang
burgestrand has joined #ruby-lang
richardjortega has left #ruby-lang [#ruby-lang]
dracco23 has quit [Quit: dracco23]
AntiTyping has quit [Quit: AntiTyping]
eevar has quit [Quit: Lost terminal]
leonL has quit [Remote host closed the connection]
savage- has joined #ruby-lang
t51106 has quit [Remote host closed the connection]
t73353 has joined #ruby-lang
Hakon has joined #ruby-lang
brianpWins has joined #ruby-lang
headius__ has quit [Quit: headius__]
GeekOnCoffee_ has joined #ruby-lang
RickHull has joined #ruby-lang
RickHull has quit [Changing host]
RickHull has joined #ruby-lang
<RickHull>
injekt: slop is yours right?
<RickHull>
i noticed with :strict => true, then :help => true is not automagically injected and i get InvalidOptionError
s0ra_h is now known as sora_h
ivanoats has joined #ruby-lang
dracco23 has joined #ruby-lang
AntiTyping has joined #ruby-lang
celinedior has left #ruby-lang [#ruby-lang]
celinedior has joined #ruby-lang
bfreeman_ has joined #ruby-lang
bfreeman has quit [Read error: Connection reset by peer]
<injekt>
RickHull: that's correct, you should print it yourself
<injekt>
RickHull: if you want the behaviour changed or think it's a bug then file an issue and I'll check it out
chimkan_ has quit [Quit: chimkan_]
GeekOnCoffee_ has left #ruby-lang [#ruby-lang]
<RickHull>
it's certainly debatable. would you say that :help => true is only sensible if :strict => false ?
<RickHull>
i'm new to slop so I want to make sure i'm on the same page with the intentions / conventions before judging the behavior :)
<RickHull>
my initial statement was unclear. i have :help => true, and :strict => true, and I was hoping progname.rb -h would work, without an explicit help declaration (the intent of setting :help => true)
<RickHull>
(or progname.rb --help)
<RickHull>
maybe that's an unreasonable expectation, but it seems sensible to me. that :strict => true would not invalidate the "automaticness" of :help => true
Jay_Levitt has quit [Quit: Jay_Levitt]
elux has quit [Quit: Leaving...]
elux has joined #ruby-lang
elux has quit [Remote host closed the connection]
neocoin has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving.]
<RickHull>
er, hm, maybe i am misunderstanding :help => true. it doesn't do what i expect with :strict => false
t73353 has quit [Remote host closed the connection]
t35140 has joined #ruby-lang
<RickHull>
d'oh
<RickHull>
PEBCAK, nevermind for a moment
qwerxy has quit [Ping timeout: 248 seconds]
<RickHull>
i was setting the options, but not passing them into parse. help => true and strict => true works as i expect
m3nd3s has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
<RickHull>
one thing that's a little tricky with :strict => true. you might be tempted to rescue InvalidOptionError and then print the help string
hakunin has joined #ruby-lang
hakunin has quit [Read error: Connection reset by peer]
<RickHull>
but you don't have access to the return value of Slop.parse in that case, e.g. opts.help
hakunin has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
<RickHull>
is there way to implement a similar strategy, where i could get the return value of Slop.parse (For the help string) but also know (automatically) that out-of-spec options have been supplied?
judofyr has quit [Remote host closed the connection]
<cschneid>
Is there a not-too-incredibly-hacky way to add python style method decorators to ruby? Any gems to look at?
<cschneid>
RickHull: thanks for the link. Seems pretty straight forward to extend out to do trickier things. Ideally I want to implement a cache decorator, so the method itself doesn't have to know about caching
cantonic has joined #ruby-lang
<RickHull>
are you familiar with memoization?
leonL has quit [Remote host closed the connection]
<RickHull>
might be worth considering as a similar caching strategy
kvirani has joined #ruby-lang
leonL has joined #ruby-lang
headius has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
Tearan has quit [Quit: Sleepy Badger....]
fromhet has quit [Quit: fromhet]
leonL has quit [Remote host closed the connection]
fromhet has joined #ruby-lang
t35140 has quit [Remote host closed the connection]
t71401 has joined #ruby-lang
celinedior has left #ruby-lang [#ruby-lang]
<cschneid>
RickHull: yeah, it's a proper Redis backed cache. So it's a bit more complex than @foo ||= ...
<RickHull>
are you trying to insulate your calling code from knowing about redis?
<RickHull>
or from slower storage like db or filesystem?
mistym is now known as mistym_coffee
diegoviola has quit [Read error: Connection reset by peer]
<RickHull>
the "closest" storage would be a variable within the program. so all memoization does is make it look like you're always getting program data, even though it has to fetch it the first time. it shouldn't matter what you're fetching from, semantics-wise
Criztian has quit [Remote host closed the connection]
havenn has joined #ruby-lang
diegoviola has joined #ruby-lang
<RickHull>
injekt: i'm having a similar frustration in dealing with Slop::MissingArgumentError in a user-friendly way.
<matti>
I can read a little Japanese, but some comments are beyond my skills.
<yorickpeterse>
judofyr: in this particular case I knew what it did due to the sexp and the code used for it, this however may not be the case for future events
<matti>
Wooot.
<matti>
whitequark: +1 +1 +1
* matti
gives whitequark a free hug
lcdhoffman has quit [Quit: lcdhoffman]
<yorickpeterse>
whitequark: oooh
CapnKernul has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
<whitequark>
updated weekly :)
judofyr has joined #ruby-lang
<matti>
That's a bonus ;d
<judofyr>
yorickpeterse: well, parse.y is my best advice
judofyr has quit [Remote host closed the connection]
<matti>
Um.
<matti>
Ruby's C is hard to follow.
<steveklabnik>
heh
<matti>
Even Linux's kernel code is easier.
<yorickpeterse>
It's a bit weird, yes
<yorickpeterse>
Anybody who claims that code explains itself should read through the C code
<matti>
Nicely written C is OK
chimkan has quit [Quit: chimkan]
chimkan has joined #ruby-lang
solars has quit [Ping timeout: 240 seconds]
matija has quit []
mister_x29 has joined #ruby-lang
mister_x29 has quit [Remote host closed the connection]
<matti>
I'd love Dir.each / Dir[].each to yield path inside the block.
<yorickpeterse>
Suppose I should start writing some blag stuff this weekend about my Ripper adventures so far
<matti>
yorickpeterse: +1
limes has quit [Remote host closed the connection]
<erikh>
gc.c is weird, the rest is not too bad
<rking>
matti: I haven't found that at all to be the case.
<erikh>
dunno. if you've written enough C extensions it's not that hard to read
Bdawk has quit [Ping timeout: 245 seconds]
<yorickpeterse>
It's actually surprisingly easy to use Ripper, it's just that implementing custom token classes and what not for all syntax features takes a *lot* of time
<rking>
I use pry-doc's "$ some_builtin" fairly regularly, and get almost every line I see.
<matti>
rking: Sorry, case of what?
<matti>
I might have lost the context.
<rking>
matti: That Ruby's C is hard to read.
<matti>
Ah.
<matti>
rking: I was looking once at process.c
<matti>
rking: Seemed hard to follow sometimes.
havenn has joined #ruby-lang
lcdhoffman has joined #ruby-lang
lcdhoffman_ has joined #ruby-lang
lcdhoffman has quit [Read error: Connection reset by peer]
<rking>
matti: Well, process stuff can get weird. Is there an example of a place where you feel like the complexity of the implementation doesn't map to the essential complexity of the problem?
<matti>
rking: I was looking at a Ruby bug.
<matti>
rking: And trying to follow exec IIRC.
<matti>
rking: I am not complaning, by any mean.
nXqd has joined #ruby-lang
<matti>
rking: I just find it hard to follow sometimes.
burgestrand has quit [Quit: Leaving.]
<rking>
matti: Yeah, no biggie. Most code is gross. I'm just piping in that the Ruby C is well above average, in my experience.
<matti>
:>
s0ra_h is now known as sora_h
<yorickpeterse>
Hmpf, the structure for Ripper operator calls is...weird
tenderlove has joined #ruby-lang
<rking>
yorickpeterse: I think that was the intent. =)
<yorickpeterse>
heh
<yorickpeterse>
`10 and 20 and 30 and 40` results in something like [ [[10, :and, :20], :and, 30], :and, 40 ]
t64735 has quit [Remote host closed the connection]
t88611 has joined #ruby-lang
<yorickpeterse>
for a linter I'd say simply [10, :and, 20, :and, 30, :and, 40] would be much easier to process
<rking>
But then you've basically created a quaternary "x and y and z and α" operator.
<rking>
The other way is all binary
lightcap has joined #ruby-lang
<yorickpeterse>
hm
<zzak>
yorickpeterse: i just got done patching the docs for Ripper
<matti>
I was thinking recently that it would be nice if {l,r}strip could take integer argument as a count of how many characters strip.
sora_h is now known as s0ra_h
havenn has quit [Remote host closed the connection]
t88611 has quit [Remote host closed the connection]
t17187 has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
qpingu has joined #ruby-lang
sailias has quit []
petercooper has joined #ruby-lang
rippa has quit [Ping timeout: 246 seconds]
yxhuvud has quit [Ping timeout: 240 seconds]
mister_x29 has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
chimkan has quit [Quit: chimkan]
tenderlove has quit [Read error: Connection reset by peer]
tenderlo_ has joined #ruby-lang
Austin__ has quit [Quit: Leaving.]
CapnKernul has joined #ruby-lang
chimkan has joined #ruby-lang
<naquad>
i have a string which is actually a bunch of hex numbers: '0a12ff' and i want to get [10, 18, 255]. atm i have this: ['string'].pack('H*').unpack('C*'), but that doesn't look good. any better way?
m3nd3s has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
<lianj>
naquad: nope, go with this
<naquad>
:(
<naquad>
ok
banisterfiend has joined #ruby-lang
<lianj>
naquad: why the sad face
<naquad>
that thing doesn't look good or simple :S
ivanoats has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
<matled>
naquad: you could also do .scan(/../).map { |s| s.to_i(16) }. I guess it is slower than the pack/unpack way.
<naquad>
and looks worse
dhruvasagar has quit [Ping timeout: 268 seconds]
<matled>
I find it more readable as I don't have to know what H and C do
<lianj>
matled: pack/unpack are great :P
<matled>
I know, it just requires to know or look up what the different characters mean :)
<matled>
C is one of the few I actually know
banisterfiend has quit [Ping timeout: 244 seconds]
<drbrain>
nNvV
<lianj>
right, but you can find the docs fast, and get used to most of them soon
wpaulson has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
dejongge has quit [Quit: Leaving.]
brunocoelho has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
* mistym
has great fun trying to use POSIX open() to get a resource fork
s0ra_h is now known as sora_h
<matti>
matled: CLOEXEC CLOEXEC!
Denommus has joined #ruby-lang
<Denommus>
hello
<matti>
Denommus: { :hello }
<Denommus>
I'm trying to compile Ruby on a Minix system. The only pthread library I have is pth, but ./configure isn't capable of disabling it, and it seems that Ruby 1.9.X requires pthreads. Is there a way of telling ./configure which pthread library it should look for?
<matti>
Denommus: Have you tried --help?
<Denommus>
yup
<Denommus>
it only says that --enable-pthread is deprecated and ignored
<Denommus>
*obsolete
havenn has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<zzak>
Denommus: did you try --without-pthread ?
<Denommus>
unrecognized option
chimkan has quit [Quit: chimkan]
<Denommus>
I tried --disable-pthread, too. It is not unrecognized, but it does nothing
<Denommus>
pthreads are in /usr/pkg/lib and /usr/pkg/include
<Denommus>
which options should I use to set these paths?
havenn has quit [Ping timeout: 245 seconds]
<drbrain>
you can use CFLAGS=-I/usr/pkg/include LDFLAGS=-L/usr/pkg/lib
<Denommus>
let's see...
<Denommus>
it's going to take a bit long
nXqd has quit [Ping timeout: 260 seconds]
t17187 has quit [Remote host closed the connection]
t86761 has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
Carnage\ has quit []
GeekOnCoffee has quit [Ping timeout: 244 seconds]
<Denommus>
...
<Denommus>
so close
<Denommus>
it configured, but it does not compile
<injekt>
RickHull: ping
chimkan___ has joined #ruby-lang
sora_h is now known as s0ra_h
chimkan_ has quit [Ping timeout: 265 seconds]
Denommus has left #ruby-lang [#ruby-lang]
ricardovaleriano has quit [Remote host closed the connection]
ricardovaleriano has joined #ruby-lang
rue has quit [Remote host closed the connection]
slyphon has quit [Quit: WeeChat 0.3.7]
scampbell has quit [Remote host closed the connection]
ricardovaleriano has quit [Ping timeout: 264 seconds]
laszlokorte has joined #ruby-lang
totallymike has quit [Ping timeout: 272 seconds]
rue has joined #ruby-lang
headius has joined #ruby-lang
cyndis has quit [Read error: Operation timed out]
cyndis has joined #ruby-lang
ttilley has quit [Read error: Connection reset by peer]
ttilley has joined #ruby-lang
ttilley has quit [Changing host]
ttilley has joined #ruby-lang
ghanima has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
RORgasm has quit [Remote host closed the connection]
<cored>
I have a little problem which don't know how to tackle down
totallymike has joined #ruby-lang
<cored>
I'm trying to migrate my app to 1.9.2
<cored>
after switching vm's and hitting bundle update
<steveklabnik>
well, that's step 2
<steveklabnik>
;)
<cored>
I get an error regarding rcov not supported for 1.9.2, I switched to simplecov but still getting the error
<cored>
because of some deps on it
<cored>
the question is, can I make the gem's on my dependencies list to just use simplecov instead of rcov without changing their code
<steveklabnik>
not without a few pull requests.
<cored>
crap
<steveklabnik>
what gems?
<steveklabnik>
there is one thing you CAN do
<cored>
I have a bunch of dependnecies
<steveklabnik>
but it's quite hacky
<cored>
fork
<cored>
and have my own version
<cored>
right ?
<steveklabnik>
sure, but which depend on simplecov? you can check your gemfile.lock
<steveklabnik>
yes
<steveklabnik>
err, rcov
<cored>
hehehe
<cored>
I did a cli hack
<cored>
with awk and gem dependency --reverse dependencies
<cored>
did not think in Gemfile.lock
sockmonk has quit [Ping timeout: 246 seconds]
<cored>
I'm checking
<cored>
metric_fu which is a dependency for metrical
<steveklabnik>
oh man
s0ra_h is now known as sora_h
<steveklabnik>
metric_fu is almost abandonded at this point
<steveklabnik>
i had a very, very simple pull request open to help it work with rails 3.2 for like 6 months
<steveklabnik>
with no comment.
<cored>
in fact is metrical what we are using
<cored>
that's bad
<cored>
I think I have to keep an eye on the dependencies of this app
<steveklabnik>
so from metrical
<steveklabnik>
Warning: This gem is not being maintained anymore!
<steveklabnik>
soooooo
<steveklabnik>
I work exclusively with Ruby 1.9, and most tools included don't (fully) support it. If you want to take over the project, fork the project, and open an issue stating your intentions.
<chancancode>
what's the best way to override (wrap) a method in a class without subclassing it?
<chancancode>
I didn't want to use alias_method_chain, but if the class is not using the "include BaseMethods" pattern (so including a module won't work), what other options do I have?
Bosox20051 has quit [Ping timeout: 264 seconds]
t86761 has quit [Remote host closed the connection]
<chancancode>
so the method is not actually defined on the class, thus ruby will follow the ancestor chain so it hits whatever modules it included in reverse order
<steveklabnik>
may or may not work
m3nd3s has joined #ruby-lang
sora_h is now known as s0ra_h
m3nd3s_ has joined #ruby-lang
m3nd3s_ has quit [Client Quit]
CapnKernul has quit [Quit: Leaving...]
m3nd3s has quit [Ping timeout: 256 seconds]
havenn has joined #ruby-lang
cored has quit [Quit: leaving]
butchanton has joined #ruby-lang
havenn_ has joined #ruby-lang
petercooper has quit [Remote host closed the connection]
seanstickle has joined #ruby-lang
butchanton has quit [Quit: Leaving.]
brianpWins has joined #ruby-lang
diegoviola has joined #ruby-lang
t20204 has quit [Remote host closed the connection]
t97782 has joined #ruby-lang
BigFatFatty has left #ruby-lang [#ruby-lang]
havenn_ has quit [Ping timeout: 265 seconds]
s0ra_h is now known as sora_h
chancancode has quit [Remote host closed the connection]