kurko__ has quit [Quit: Computer has gone to sleep.]
<matti>
Haha
<zenspider>
I haven't coded on windoze since 1998 and since then I explicitly add it to my contract that I won't work on windoze systems. It isn't worth the time or the headache. It's a horrible platform for developing on...
<matti>
OK, NetBSD, PC BSD / FreeBSD and OpenBSD installed as VMs.
usoluyun has joined #ruby-lang
<matti>
I can now install compilers and git and try to build Ruby 2.0
<matti>
Where the hell I get Windows legally.
<matti>
:<
kurko__ has joined #ruby-lang
<matti>
zenspider: There is a small change to win32/win32.c I've done that I want to test / or get somebody to review.
<matti>
zenspider: Care to have a look?
swarley_ has joined #ruby-lang
usoluyun has quit [Quit: leaving]
<zzak>
try usaku-san, maintainer of mswin32 platform
<methods>
it's wicked fast compared to something like valgrind
chendo__ has quit [Quit: Computer has gone to sleep.]
<methods>
and it's better than valgrind because it can detect when you buffer overflow into your own address space and stuff.. so it knows if you go over one of your own arrays for instance
<methods>
afaik valgrind couldn't detect that
woollyams has joined #ruby-lang
mmb has quit [Quit: WeeChat 0.3.8]
<methods>
swarley: so what's your gem going to do ?
woollyams has quit [Client Quit]
<kith>
is var = nil bad style?
<swarley>
methods; I'm creating an XML library (i know there are plenty already) but it's a sort of revival of hpricot but with a more ruby esque feel to it. Sec, let me give an example from the spec
<kalleth>
kith: generally, yes
<kith>
:(
chendo__ has joined #ruby-lang
<kalleth>
generally you can just do if var2
<kalleth>
if you're branching on t
<kalleth>
nope
<kalleth>
i'm wrong
<kalleth>
fuck it
<kalleth>
does it work? ? ship it : ship it anyway
krohrbaugh1 has quit [Quit: Leaving.]
<swarley>
methods; here is a really simplistic example
<swarley>
must "offer ranged value filtering" do
<swarley>
xml = Suwarui::XML::Document.new(open "foo.xml"); assert_equal("AE52F", xml/[:user, :id => /[A-F]{2}\d{2}\w+/])
<swarley>
end
<swarley>
the / just makes the search go into lower level nesting
<swarley>
without it, it only searches the top level of tags
<swarley>
based on the current node
<swarley>
in theory you don't need the [].. but you would have to enclose it all in parens and it would get messy.. etc
kurko__ has quit [Ping timeout: 246 seconds]
gix has quit [Ping timeout: 260 seconds]
kurko__ has joined #ruby-lang
<methods>
cool
Bosox20051 has quit [Remote host closed the connection]
gix has joined #ruby-lang
<swarley>
Yeah, I'm hoping to make it near usable as nokogiri
<swarley>
that way a more object oriented approach would be available
<swarley>
plus, I love hpricot, i just wished it wasnt so hard to make the xpaths some times
<swarley>
Well, since calling [] on the document returns an enumerator that can have [] called on it, you can just stack calls
<swarley>
It'll probably be more wordy, but in my opinion it would also be easier to catch errors.. And it would open up doors for more convenience functions
HikkiJP has joined #ruby-lang
methods has quit [Quit: Leaving.]
roadt has joined #ruby-lang
methods has joined #ruby-lang
<matti>
methods: I need to look at llvm too.
<matti>
methods: Thanks for the link ;]
sn0wb1rd has quit [Quit: sn0wb1rd]
<methods>
matti: yea it's seriously great...
<matti>
methods: gcc 4.6 was recently making me age quicker.
<methods>
he's also working on a protected mode for kernels
<matti>
methods: Lot of folks recommended llvm.
<methods>
you know they are going c++ right ?
<methods>
at that point i was like .. what's stopping me from llvm ?
<zzak>
banisterfiend: i honestly think you should file a ticket dude
<zzak>
does anyone use ruby-forum?
<drbrain>
banisterfiend: sure… there is no rb_vm_* functions declared in include/ so you can depend on it breaking every time ruby changes
<banisterfiend>
drbrain: yeah, but there was no other option for a debugging gem but to use internal API, until they wrote a proper debugging API. I just wonder what/if any the new api is..
<drbrain>
I haven't been following it any
<banisterfiend>
np, my guess is im screwed, binding_of_caller did feel a bit naughty anyway
burgestrand has quit [Quit: Leaving.]
esad has joined #ruby-lang
ramonmaruko has joined #ruby-lang
<zzak>
you could always request a feature
<banisterfiend>
if i dont get any reply to my post on the forum ill file an issue
mistym has quit [Remote host closed the connection]
chimkan__ has quit [Quit: chimkan__]
banisterfiend has quit [Remote host closed the connection]
chendo__ has joined #ruby-lang
rmascarenhas has quit [Ping timeout: 248 seconds]
sduckett has quit [Ping timeout: 264 seconds]
chendo__ has quit [Quit: Computer has gone to sleep.]
siyusong has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby-lang
ryanf has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
<erikh>
i'm eating a burrito
Sambalero has joined #ruby-lang
solars has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
justinmcp has joined #ruby-lang
<erikh>
the burrito is gone. all mourn the burrito.
Sambalero has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
Sambalero has joined #ruby-lang
dr_bob has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
Sambalero has joined #ruby-lang
justinmcp has quit [Ping timeout: 248 seconds]
ruurd has joined #ruby-lang
justinmcp has joined #ruby-lang
anannie has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
Sambalero has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 265 seconds]
klaut has joined #ruby-lang
mytrile has joined #ruby-lang
siyusong has joined #ruby-lang
cosah has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
thone has joined #ruby-lang
thone_ has quit [Ping timeout: 260 seconds]
sandbags has joined #ruby-lang
cyri_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
ruskie has quit [Excess Flood]
ruskie has joined #ruby-lang
anannie has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
toretore has joined #ruby-lang
rue|w has joined #ruby-lang
ryanf has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
sandbags has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
ryanf has joined #ruby-lang
siyusong has quit [Quit: Computer has gone to sleep.]
usoluyun has joined #ruby-lang
usoluyun has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
<matti>
Yawn...
justinmcp has quit [Remote host closed the connection]
piglop has joined #ruby-lang
QaDeS has joined #ruby-lang
mjbamford has joined #ruby-lang
gnufied has joined #ruby-lang
faces has quit [Ping timeout: 246 seconds]
cyri_ has joined #ruby-lang
faces has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
faces has quit [Read error: Connection reset by peer]
runeb has joined #ruby-lang
faces has joined #ruby-lang
GarethAdams has joined #ruby-lang
coryf_ has joined #ruby-lang
coryf has quit [Ping timeout: 246 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
rue|w has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 246 seconds]
robotmay has joined #ruby-lang
GarethAdams has quit [Read error: Connection reset by peer]
GarethAdams has joined #ruby-lang
Hakon has joined #ruby-lang
cdt has joined #ruby-lang
Asher has quit [Quit: Leaving.]
dc5ala has joined #ruby-lang
Asher has joined #ruby-lang
mjbamford has quit [Quit: Leaving...]
faces has quit [Ping timeout: 256 seconds]
Assurbanipal has joined #ruby-lang
faces has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
cyri_ has quit [Quit: cyri_]
francisfish has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
riffraff has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
cyri_ has joined #ruby-lang
ruurd has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<andrewvos>
Gah
<andrewvos>
jarib/childprocess under IntelliJ just stops my cukes running somehow, but not in the terminal
<andrewvos>
Is there something easier I can use? I need to launch a process in the background and optionally wait for it to exit and I need to know when it has crashed.
<andrewvos>
And I have to get this ready for a demo in 40 minutes :( :(
vlad_starkov has quit [Ping timeout: 252 seconds]
runeb has quit [Remote host closed the connection]
Madis has joined #ruby-lang
justinmcp has joined #ruby-lang
Artheist has joined #ruby-lang
runeb has joined #ruby-lang
<andrewvos>
Anyone know a gem like childprocess?
<manveru>
andrewvos: just spawn?
<andrewvos>
manveru: Thanks that looks great
<andrewvos>
Oh wait it was last updated two year ago. Will try it anyway though
<manveru>
Process.wait(spawn("sleep", "3"))
<manveru>
spawn is part of ruby core
<andrewvos>
Oh ok
<andrewvos>
manveru: Can I get exit code?
<manveru>
$?
<andrewvos>
Hmmm
<andrewvos>
Thanks manveru, helpful as always
<manveru>
np
<manveru>
unless you target windows, something like childprocess seems like big overkill
<mfn>
hi
<manveru>
i admit, learning all the 100 options that spawn takes needs some time, but it's a damn useful swiss knife :)
<andrewvos>
manveru: I do target windows.
ruurd_ has joined #ruby-lang
<manveru>
in your demo?
<andrewvos>
Nope :)
<manveru>
so don't worry about it now
<manveru>
it might even work on windows
<manveru>
i just have no idea :)
<andrewvos>
Yay
runeb has quit [Remote host closed the connection]
Assurbanipal has quit [Remote host closed the connection]
<manveru>
that's the spirit!
runeb has joined #ruby-lang
<mfn>
I'm using ruby/dbi with mysql and I get an error handling Mysql type "timestamp" with the value "0000-00-00 00:00:00". dbi gives me "invalid date (ArgumentError)" . Any idea how to overcome this? -> http://pastie.org/private/cwjvzlsud9d0vlrvawtg
<mfn>
manveru: I get the same problem. Sequel also tried to represent the mysql timestamp "0000-00-00 00:00:00" and fails with ArgumentError: argument out of range in make_time -> http://pastie.org/private/1lf3k8p7bg3ju4ydsrxzg
<mfn>
I either need to find a db library for ruby which does not try to convert them or a way to ignore it.
rue|w has quit [Read error: Connection reset by peer]
<mfn>
are the sequel docs supposed to be in a frame? I nowhere find a way to properly navigate around to basically see all the docs and properly search them
<abletony84>
mfn: theres #sequel too u know
<mfn>
abletony84: thanks, didn't know
x0F_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ is now known as x0F
justinmcp has quit [Remote host closed the connection]
dhruvasagar has quit [Quit: Lost terminal]
dhruvasagar has joined #ruby-lang
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby-lang
gokul has quit [Quit: Leaving]
mjbamford has joined #ruby-lang
beiter has quit [Quit: beiter]
piglop has joined #ruby-lang
piglop_ has quit [Read error: Connection reset by peer]
woollyams has joined #ruby-lang
riffraff has quit [Quit: This computer has gone to sleep]
abletony84 has quit [Read error: Connection reset by peer]
abletony84 has joined #ruby-lang
piglop_ has joined #ruby-lang
<mfn>
manveru: well, before I forget: thank you very much :)
irleif has joined #ruby-lang
piglop has quit [Ping timeout: 260 seconds]
yats has joined #ruby-lang
m3nd3s has joined #ruby-lang
riffraff has joined #ruby-lang
beiter has joined #ruby-lang
Axsuul has quit [Ping timeout: 268 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
woollyams has quit [Quit: Computer has gone to sleep.]
riffraff has quit [Quit: Leaving]
dous has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
vlad_starkov has joined #ruby-lang
abletony84 has quit [Quit: Lost terminal]
vlad_starkov has quit [Ping timeout: 272 seconds]
rippa has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
<manveru>
mfn: you're welcome :)
postmodern has quit [Quit: Leaving]
irleif has joined #ruby-lang
m3nd3s_ has joined #ruby-lang
wyhaines has joined #ruby-lang
m3nd3s has quit [Ping timeout: 246 seconds]
woollyams has quit [Quit: Computer has gone to sleep.]
yorickpeterse has quit [Quit: Kernel and Systemd migration.]
nitti has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
kurko__ has quit [Ping timeout: 255 seconds]
kurko__ has joined #ruby-lang
m3nd3s_ has quit []
m3nd3s has joined #ruby-lang
nettsundere has quit [Ping timeout: 272 seconds]
krz has quit [Quit: krz]
dc5ala has quit [Quit: Ex-Chat]
chimkan_ has quit [Ping timeout: 256 seconds]
mistym has quit [Remote host closed the connection]
ruurd has joined #ruby-lang
tbuehlmann has joined #ruby-lang
yats has quit [Ping timeout: 260 seconds]
alexkane has joined #ruby-lang
nettsundere has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
Uranio has joined #ruby-lang
yorickpeterse has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
JohnBat26 has quit [Ping timeout: 265 seconds]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
A124 has joined #ruby-lang
slyphon has joined #ruby-lang
nitti has joined #ruby-lang
IggaR has quit [Read error: Connection reset by peer]
<andrewvos>
manveru: Demo got cancelled :)
nitti_ has joined #ruby-lang
<andrewvos>
manveru: What I did with spawn didn't work either. IntelliJ is doing some very weird stuff and not showing any errors.
Austin__ has joined #ruby-lang
<andrewvos>
manveru: So I'm guessing it's not what I'm doing with my process launching stuff.
nitti has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
kurko__ has quit [Ping timeout: 245 seconds]
kurko__ has joined #ruby-lang
<manveru>
andrewvos: what does it do?
<andrewvos>
manveru: What does what do?
<manveru>
intellij
roadt has quit [Ping timeout: 246 seconds]
<andrewvos>
manveru: Well it's launching some cucumber tests. I have a gem (acouchi) which has acouchi/cucumber.rb which contains a Before { } call. Inside this before I start up some services. If I disable this before the tests run and everything is cool, but when I enable it IntelliJ runs the tests and I just get "Test Skipped" for each test and no output.
<manveru>
uh, cucumber
burgestrand has quit [Quit: Leaving.]
methods has joined #ruby-lang
methods has quit [Client Quit]
<manveru>
well, i wish you the best :)
methods has joined #ruby-lang
<andrewvos>
haha
<andrewvos>
Hey cucumber is good sometimes. Not all times though.
<andrewvos>
I mean, the idea is good.
<andrewvos>
The execution, not so much.
<manveru>
i'd probably consider using it if i had no other choice
<manveru>
i built a cucumber clone on top of bacon a few years ago, was maybe 100LoC :)
<andrewvos>
Nice :)
havenn has joined #ruby-lang
<manveru>
sorry, i'm just tired of the constant "look! new gem! shiny! let's all abandon our work of the last decade and spend manyears polishing turds"
<zzak>
manveru: +1
<manveru>
i mean, they are gonna be really shiny... but unless you try to outfit a disco or house of mirrors that's not worth much
<jaska>
that fits for a lot of things, not just ruby gems :)
<manveru>
true that
<zzak>
speaking of which
<jaska>
technomagpies
methods has left #ruby-lang [#ruby-lang]
<zzak>
im looking to start contributing to rack
<matti>
Oahi zzak
<manveru>
hoi matti :)
<zzak>
hi
beiter has quit [Quit: beiter]
<manveru>
zzak: go ahead, we always need fresh blood
<matti>
Ohai manveru :)
<manveru>
i'm not using rack or ruby much these days
<andrewvos>
manveru: Yeah I agree with you mostly. The thing is Cucumber, as much as it sucks, has been helpful in lots of situations.
<andrewvos>
But I'm tired of arguing it, so yeah in 99% of cases you're 100% correct :)
<manveru>
andrewvos: i understand the use-case, have had a few of them myself
<manveru>
but in the end we were almost always better off without it
<andrewvos>
yeah
<manveru>
it's a major drag on my flow, and the business guys still don't understand what the wording actually means
<andrewvos>
Step definitions are impossible to refactor.
<manveru>
and i'm not gonna write a whole crazy grammar in regex
<andrewvos>
haha yeah
<andrewvos>
sometimes I wish steps would just translate to method names.
<andrewvos>
Given I do this
<andrewvos>
def i_do_this
<andrewvos>
end
<andrewvos>
etc.
<andrewvos>
I mean, it's Ruby. Why the hell not.
<zzak>
manveru: where do i start? :)
<zzak>
andrewvos: isn't that steak?
<manveru>
zzak: what do you want to do?
nettsundere has quit [Ping timeout: 260 seconds]
<andrewvos>
zzak: Not sure. Never used it.
yorickpeterse has quit [Quit: Runit to Systemd migration]
<i_like_rails>
swarley: I have some code where I had an extra else, and the interpreter ran the code in a weird way. I commented out the else, and it ran fine. Both versions got an OK in the sytax check. I'm on 1.9.3 p 194