00:41
_whitelogger has joined #ruby-lang
02:58
_whitelogger has joined #ruby-lang
03:00
slyphon has quit [Quit: WeeChat 0.3.7]
03:02
banisterfiend` has joined #ruby-lang
03:03
banisterfiend has quit [Read error: Connection reset by peer]
03:06
krz has joined #ruby-lang
03:08
s0ra_h is now known as sora_h
03:09
havenn has joined #ruby-lang
03:11
havenn has quit [Remote host closed the connection]
03:12
yhyubub has joined #ruby-lang
03:13
woollyams has joined #ruby-lang
03:15
kawaguchi has joined #ruby-lang
03:17
banisterfiend` has quit [Remote host closed the connection]
03:20
tooky has joined #ruby-lang
03:21
yhyubub has left #ruby-lang [#ruby-lang]
03:25
sora_h is now known as s0ra_h
03:25
tooky has quit [Ping timeout: 260 seconds]
03:27
qpingu has quit [Quit: Leaving.]
03:27
bryancp has quit [Remote host closed the connection]
03:27
kawaguchi has quit [Ping timeout: 252 seconds]
03:31
deryl has quit [Quit: deryl]
03:37
igotnolegs has joined #ruby-lang
03:41
whitequark has joined #ruby-lang
03:41
kawaguchi has joined #ruby-lang
03:43
snorkdude has quit [Remote host closed the connection]
03:50
kvirani has quit [Remote host closed the connection]
03:54
kawaguchi has quit [Ping timeout: 276 seconds]
03:55
MouseTheLuckyDog has quit [Ping timeout: 245 seconds]
03:56
brianpWins has quit [Quit: brianpWins]
03:57
erichmenge has quit [Quit: Be back later]
03:58
kawaguchi has joined #ruby-lang
03:59
banisterfiend has joined #ruby-lang
04:05
tjadc has quit [Ping timeout: 252 seconds]
04:08
MouseTheLuckyDog has joined #ruby-lang
04:09
s0ra_h is now known as sora_h
04:09
kawaguchi has quit [Ping timeout: 272 seconds]
04:09
deryl has joined #ruby-lang
04:10
mistym has quit [Remote host closed the connection]
04:15
snorkdude has joined #ruby-lang
04:15
savage- has joined #ruby-lang
04:17
deryl has quit [Quit: deryl]
04:19
lcdhoffman has joined #ruby-lang
04:20
fgomez has joined #ruby-lang
04:22
tooky has joined #ruby-lang
04:24
lcdhoffman has quit [Client Quit]
04:25
sora_h is now known as s0ra_h
04:26
tooky has quit [Ping timeout: 260 seconds]
04:27
ruby-lang116 has joined #ruby-lang
04:28
burgestrand has quit [Quit: Leaving.]
04:28
replore has quit [Remote host closed the connection]
04:30
jangerhofer has joined #ruby-lang
04:31
neocoin has joined #ruby-lang
04:31
<
jangerhofer >
Hello all, I'm having trouble building source code to a Mac .app file. Would anyone be willing to do that for me and upload the resulting .app?
04:32
ruby-lang116 has quit [Ping timeout: 245 seconds]
04:34
jangerhofer has quit [Client Quit]
04:34
Jotade11 has joined #ruby-lang
04:46
banisterfiend has quit [Ping timeout: 265 seconds]
04:49
replore_ has joined #ruby-lang
04:51
andrew___ has joined #ruby-lang
04:51
jtoy has joined #ruby-lang
04:52
andrew___ is now known as andrewhl
04:52
gregmoreno has quit [Ping timeout: 246 seconds]
04:55
Fullmoon has joined #ruby-lang
04:56
ryanf has joined #ruby-lang
04:59
gregmoreno has joined #ruby-lang
05:01
scientes has quit [Ping timeout: 256 seconds]
05:08
jtoy has quit [Quit: jtoy]
05:09
banisterfiend has joined #ruby-lang
05:09
s0ra_h is now known as sora_h
05:10
diegoviola has quit [Ping timeout: 272 seconds]
05:14
burgestrand has joined #ruby-lang
05:16
indeterminate has quit [Quit: It's too late. You've awakened the gazebo. It catches and eats you.]
05:21
snorkdude has quit [Remote host closed the connection]
05:24
andrewhl has quit [Remote host closed the connection]
05:24
diegoviola has joined #ruby-lang
05:26
sora_h is now known as s0ra_h
05:28
cosah has joined #ruby-lang
05:28
chimkan has quit [Quit: chimkan]
05:28
Jotade11 has joined #ruby-lang
05:30
cha1tanya has joined #ruby-lang
05:34
yxhuvud has joined #ruby-lang
05:35
towski has joined #ruby-lang
05:37
savage- has quit [Remote host closed the connection]
05:37
<
cosah >
Hi everyone, I'm brand new to Ruby and trying to learn the details of syntax from a few websites, and it's really not helping. Would anyone be willing to look at about 10 short lines of code for a really simple problem and tell me what i'm doing wrong? the logic is fine, i'm just getting an error running it.
05:40
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
05:41
<
bnagy >
what's the error?
05:41
<
bnagy >
and gist / pastie / whatever the code
05:41
ChadStudmuffin has quit [Ping timeout: 268 seconds]
05:43
<
cosah >
syntaxerror: <irb>:8: syntax error, unexpected $undefined, expecting tSTRING_ etc, all kinds of tSTRING_s
05:43
dhruvasagar has quit [Ping timeout: 248 seconds]
05:44
Z33K|Lux has quit []
05:44
<
burgestrand >
cosah: it doesn’t say much, syntax errors are usually "Oh?" followed by looking very carefully at the code
05:44
brianpWins has joined #ruby-lang
05:44
<
burgestrand >
cosah: if you could paste the code online for us to look at that’d be far easier
05:44
<
cosah >
counter = 1;
05:44
<
cosah >
while counter <= 1000 do
05:44
<
cosah >
if counter % 3 = 0 and counter % 5 != 0
05:44
<
cosah >
foo += counter;
05:44
<
cosah >
elseif counter % 5 = 0
05:44
<
cosah >
foo += counter;
05:44
<
cosah >
counter +=1;
05:44
<
burgestrand >
cosah: not here
05:45
<
Mon_Ouie >
elseif is wrong
05:45
<
cosah >
sent it to bnagy already, thanks
05:45
|Vargas| has joined #ruby-lang
05:45
|Vargas| has quit [Changing host]
05:45
|Vargas| has joined #ruby-lang
05:45
<
Mon_Ouie >
The Ruby keyword is elsif
05:45
<
cosah >
-_- thanks :)
05:45
<
Mon_Ouie >
Also you don't need those semicolons
05:46
<
cosah >
appreciated. i'm not exactly in patient reading mode right now. syntax implodes my skull
05:46
<
bnagy >
also, I (and many others) won't respond to anything in /query
05:46
<
burgestrand >
cosah: also your condition: counter % 5 = 0 should probably have two ==
05:46
d3vic3 has quit [Ping timeout: 276 seconds]
05:46
<
Mon_Ouie >
It has to actually
05:46
<
burgestrand >
yeah I just don’t like telling people what to do
05:47
<
burgestrand >
he can have syntax errors if he wants I’m okay with it
05:47
<
cosah >
hahah, thanks
05:47
d3vic3 has joined #ruby-lang
05:47
<
burgestrand >
cosah: is ruby your first language?
05:48
<
bnagy >
isn't that logic just foo+=1 if counter % 3 == 0 || counter % 5 == 0?
05:48
ryanf has quit [Ping timeout: 244 seconds]
05:48
<
bnagy >
sry +=counter but whatever
05:48
<
cosah >
nope. i learned a little c++ a long time ago, used to be proficient in Java. ruby changes a few things
05:48
<
cosah >
but yeah bnagy, you're right.
05:48
<
cosah >
getting back into coding
05:49
<
bnagy >
I would (1..1000).select {|i| i%3==0 || i%5==0}.inject :+
05:49
<
bnagy >
but that's kind of idiomatic
05:49
<
bnagy >
I hate while loops :/
05:49
<
burgestrand >
bnagy: is it really? either it’s divisible by 3, or divisible by 5, but never both
05:50
<
burgestrand >
I mean, right now it’s the same thing on both
05:50
neocoin has quit [Remote host closed the connection]
05:51
sailias has quit [Ping timeout: 276 seconds]
05:51
<
Mon_Ouie >
It would be i % 15 == 0 || i % 5 == 0
05:51
<
Mon_Ouie >
The first condition is to be dividable by 3
*and* 5, the second one to be dividable by 5
05:51
<
Mon_Ouie >
So actually just i % 5 == 0…
05:52
<
cosah >
i dont seem to have a full character set. i'm getting stuff like this: …
05:52
<
cosah >
messaged you private btw, bnagy
05:52
<
Mon_Ouie >
The funny thing is, if you paste it, we can see it
05:52
<
Mon_Ouie >
That's just UTF-8
05:53
<
bnagy >
wait, no I think I was right in the first place.
05:54
<
bnagy >
15 would increment cause it hits %5==0
05:55
<
Mon_Ouie >
(i % 3 == 0 and i % 5 == 0) or i % 5 == 0 is equivalent to i % 5 == 0
05:55
<
bnagy >
basically 3 || !5 or 5 == 3 || 5
05:55
<
Mon_Ouie >
Oh, nvm, I misread the !=
05:55
<
bnagy >
Mon_Ouie: you missed a not
05:56
woollyams has quit [Quit: Computer has gone to sleep.]
05:56
<
bnagy >
cosah: (1..1000).select {|i| i%3==0 || i%5==0}.inject(:+) => 234168
05:56
woollyams has joined #ruby-lang
05:56
<
bnagy >
is that the answer you're looking for?
05:56
woollyams has quit [Client Quit]
06:01
<
cosah >
i'm still getting the same error
06:02
<
Mon_Ouie >
With what code now?
06:02
<
Mon_Ouie >
And do use a pastie this time
06:07
ryanf has joined #ruby-lang
06:07
towski has quit [Remote host closed the connection]
06:09
<
burgestrand >
cosah: what error?
06:09
<
burgestrand >
that code runs fine for me
06:10
s0ra_h is now known as sora_h
06:10
<
cosah >
i'm running this in irb
06:10
<
burgestrand >
I just did too, runs fine there as well
06:11
<
cosah >
unexpected $undefined, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
06:12
<
cosah >
i used the ruby installer on windows 7
06:12
<
cosah >
i'd be running linux but i need windows for a work application
06:12
<
bnagy >
32 bit win7?
06:13
<
cosah >
ew is right
06:13
<
bnagy >
oh well 64 bit just won't work, afaik
06:13
<
bnagy >
not with mri
06:13
<
bnagy >
try jruby instead
06:14
<
bnagy >
I mean it should run in WOW32 I guess
06:14
<
bnagy >
but it won't be 64 bit and I dunno about building stuff
06:15
<
cosah >
trying rubymine
06:17
<
bnagy >
isn't that just an ide? Why would you do that?
06:17
<
bnagy >
I think, basically, does any code run? Cause that code is fine
06:18
<
cosah >
downloading jruby at present as well
06:18
<
cosah >
i'm just trying stuff
06:18
<
cosah >
i'm racing my roommate for a 6 pack
06:19
<
cosah >
would i want the 32bit version of jruby+jre? i'm not really sure.
06:20
<
bnagy >
64 bit imho
06:20
<
bnagy >
cause, like, why not
06:20
<
bnagy >
may as well give the 32 bits to a kid who'll use 'em
06:22
tooky has joined #ruby-lang
06:24
kawaguchi has joined #ruby-lang
06:25
d3vic3 has quit [Read error: No route to host]
06:26
<
cosah >
have JRuby up and running now. new error now. again some unexpected thing. will pastie
06:26
<
bnagy >
I don't suppose you're running slovakian windows or something stupid?
06:26
snorkdude has joined #ruby-lang
06:26
sora_h is now known as s0ra_h
06:27
<
cosah >
its legit and reg'd
06:27
<
cosah >
win 7 pro 64
06:27
<
cosah >
updated, etc
06:27
<
bnagy >
ok well yeah you can't do that in irb
06:27
tooky has quit [Ping timeout: 276 seconds]
06:27
<
bnagy >
do ruby c:\blah\blah.rb from the cmd prompt
06:28
<
bnagy >
actually jruby I think
06:28
<
bnagy >
they don't set up a ruby.bat for you afair
06:28
<
cosah >
just rain irb(main):002:0> ruby c:\users\owner\desktop\doopdoop.rb in jruby
06:29
naquad has quit [Ping timeout: 240 seconds]
06:29
<
bnagy >
14:26 < bnagy> ok well yeah you can't do that in irb
06:29
<
bnagy >
14:26 < bnagy> do ruby c:\blah\blah.rb from the cmd prompt
06:29
<
bnagy >
the windows command prompt, not inside irb
06:29
d3vic3 has joined #ruby-lang
06:30
fromhet has joined #ruby-lang
06:30
<
cosah >
nothing ahppened
06:31
<
bnagy >
that's good
06:31
ryanf has quit [Quit: leaving]
06:31
<
bnagy >
cause your code doesn't produce any output :)
06:31
<
bnagy >
but it didn't give you an error
06:31
<
bnagy >
just change the last line to 'puts foo'
06:32
ryanf has joined #ruby-lang
06:32
<
cosah >
:DDDDDDDDDD
06:33
mytrile has joined #ruby-lang
06:37
kitallis has joined #ruby-lang
06:38
apeiros_ has joined #ruby-lang
06:39
kawaguchi has quit [Ping timeout: 248 seconds]
06:41
workmad3 has joined #ruby-lang
06:41
kawaguchi has joined #ruby-lang
06:45
naquad has joined #ruby-lang
06:46
charliesome has joined #ruby-lang
06:51
neocoin has joined #ruby-lang
06:55
kawaguchi has quit [Ping timeout: 268 seconds]
06:57
chendo_ is now known as chendo
06:59
s0ra_h is now known as sora_h
07:00
ryanf has quit [Quit: leaving]
07:00
ryanf has joined #ruby-lang
07:03
srbartlett has quit [Remote host closed the connection]
07:08
dhruvasagar has joined #ruby-lang
07:09
alvaro_o has quit [Ping timeout: 246 seconds]
07:09
replore_ has quit [Remote host closed the connection]
07:15
tooky has joined #ruby-lang
07:15
kawaguchi has joined #ruby-lang
07:20
mssola has joined #ruby-lang
07:21
alvaro_o has joined #ruby-lang
07:25
snorkdude has quit [Remote host closed the connection]
07:32
igotnolegs has quit [Quit: Computer has gone to sleep.]
07:34
burgestrand has quit [Quit: Leaving.]
07:34
burgestrand has joined #ruby-lang
07:34
IPGlider has joined #ruby-lang
07:35
thone has joined #ruby-lang
07:35
^sandbags^ has joined #ruby-lang
07:36
dc5ala has joined #ruby-lang
07:37
virunga has joined #ruby-lang
07:37
kawaguchi has quit [Ping timeout: 245 seconds]
07:38
sandbags has quit [Ping timeout: 246 seconds]
07:38
thone_ has quit [Ping timeout: 252 seconds]
07:38
JoshWines has quit [Ping timeout: 276 seconds]
07:39
workmad3 has quit [Ping timeout: 248 seconds]
07:42
publicvoid has quit [Remote host closed the connection]
07:44
dhruvasagar has quit [Ping timeout: 265 seconds]
07:44
kitallis has quit [Quit: Computer has gone to sleep.]
07:56
workmad3 has joined #ruby-lang
07:56
<
yorickpeterse >
HELLO, GOOD MORNING/AFTERNOON/EVENING/NIGHT DEPENDING ON YOUR TIMEZONE
07:59
tjadc has joined #ruby-lang
08:02
<
apeiros_ >
yorickpeterse: good whateveryourtimezone too!
08:02
<
apeiros_ >
want some color?
08:03
Leeky_afk is now known as Leeky
08:03
kawaguchi has joined #ruby-lang
08:04
kawaguchi has quit [Client Quit]
08:07
wallerdev has quit [Quit: wallerdev]
08:09
<
yorickpeterse >
YES
08:10
ryanf has quit [Quit: leaving]
08:13
dhruvasagar has joined #ruby-lang
08:14
zmack has joined #ruby-lang
08:15
<
bnagy >
so I have "quebrar�amos"
08:15
<
bnagy >
and it breaks stuff
08:16
workmad3 has quit [Ping timeout: 252 seconds]
08:16
<
bnagy >
it appears to be valud utf-8, though, based on all the tricks I know
08:16
<
ddfreyne >
define “breaks stuff”
08:16
<
apeiros_ >
it appears not as valid utf-8 here…
08:16
<
apeiros_ >
I get that nice little <?> symbol for invalid sequences
08:16
<
bnagy >
it seems to make capybara / phantomJS error
08:16
<
bnagy >
apeiros_: I get that too
08:17
<
apeiros_ >
do you have the raw byte sequence, e.g. via unpack("C*")?
08:17
<
bnagy >
but things like trying to reencode it with invalid :replace undefined: replace etc don't strip it
08:17
<
burgestrand >
bnagy: re-encoding a string requires you to encode to another encoding and back
08:18
<
bnagy >
=> [113, 117, 101, 98, 114, 97, 114, 239, 191, 189, 97, 109, 111, 115]
08:18
<
bnagy >
burgestrand: yeah I used utf-16be
08:18
<
bnagy >
doing it via ascii works, but I suspect it will strip a lot of stuff I want as well
08:19
<
bnagy >
s/suspect/know
08:19
<
burgestrand >
Huh, weird, those three bytes that make up your character ruby considers as individual characters
08:20
<
bnagy >
oh I just used str.bytes.to_a
08:20
cid404 has quit [Ping timeout: 252 seconds]
08:20
<
bnagy >
not codepoints, I thought that was what apeiros_ wanted
08:20
<
apeiros_ >
funny, yeah, ruby thinks it's valid…
08:20
zetesha has joined #ruby-lang
08:20
<
bnagy >
maybe cause the 'this is invalid' char is valid?
08:20
<
apeiros_ >
but that character there has a funny codepoint: 65533
08:21
zetesha has quit [Client Quit]
08:21
<
apeiros_ >
and the codepoint table lists it under `U+FFF0 to U+FFFF: Specials`
08:22
<
burgestrand >
Replacement character.
08:22
<
apeiros_ >
so you've got a real <?> there
08:22
<
apeiros_ >
so my question now is: how do you retrieve the raw byte sequence?
08:22
<
bnagy >
I suspect I can't
08:22
<
apeiros_ >
because it seems that you get it from an already processed source…
08:22
Criztian has joined #ruby-lang
08:22
<
burgestrand >
I wonder if that’s what ruby uses when you have invalid stuff.
08:22
<
bnagy >
this is from what appears to be a broken brazilian dict in ubuntu
08:23
<
apeiros_ >
(which already has the offending character/sequence replaced)
08:23
<
burgestrand >
It is!
08:23
<
burgestrand >
"\xFF".encode("UTF-16BE", :undef => :replace, :invalid => :replace).encode("UTF-8") # => same character
08:23
<
burgestrand >
it’s the default replacement character, bnagy are you sure this is the string before you fix it’s encoding?
08:23
<
bnagy >
well I used '?' as my replacement char
08:24
<
apeiros_ >
"used to replace an incoming character whose value is unknown or unrepresentable in Unicode" so yes, it is the standard replacement char
08:24
<
bnagy >
like literal question mark, when I rountripped it through utf16be
08:24
<
apeiros_ >
bnagy: which is why I think your source has already been processed by something at that point
08:24
<
bnagy >
I think so too
08:24
<
bnagy >
I think the dict file is b0rked
08:24
<
burgestrand >
either way that should be valid, did this string cause you issues?
08:25
<
bnagy >
yeah it blows up this capybara / wenkit thing
08:25
<
bnagy >
I have put reams of wacky languages through it just fine, but these strings explode it
08:25
<
burgestrand >
bnagy: you don’t happen to have a minimal test case or something that I could experiment on? :p
08:26
<
burgestrand >
or just explain what process it goes through so I could replicate it
08:26
<
bnagy >
nothing about capybara / oltergeist is minimal :(
08:26
<
bnagy >
I hate it, but I don't have a better option
08:26
<
burgestrand >
bnagy: does it blow up no matter which driver you use?
08:26
<
bnagy >
well I need a webkit driver
08:27
<
bnagy >
I guess I could switch back to the Qt one
08:27
<
bnagy >
but it seems easier to just catch this :>
08:28
<
burgestrand >
bnagy: could you paste the exception somewhere so I could perhaps figure out from the backtrace what is going on instead then?
08:31
<
burgestrand >
bnagy: thanks :)
08:31
<
bnagy >
I can give you my scrapy code, but I'm not sure how much it will help
08:32
<
bnagy >
but I can't give you a minimal case cause there's a ton of support code to do the distributed fu
08:32
heftig_ has joined #ruby-lang
08:32
heftig has quit [Quit: Reconnecting]
08:32
heftig_ is now known as heftig
08:32
runeb has joined #ruby-lang
08:33
<
burgestrand >
bnagy: I take it you are doing a search with a query that contains this replacement character?
08:34
<
burgestrand >
bnagy: awesome, that
*should* keep me busy for a while, thank you very much :)
08:34
<
bnagy >
you're a strange man, burgestrand
08:34
<
bnagy >
I say 'halp I have no idea what I am doing, bug' and you thank me
08:35
<
bnagy >
I really wish I could find a better option for this stuff, as an aside
08:35
<
bnagy >
I had to go back to MRI and use Parallel cause this code absolutely assplodes in threads
08:35
<
bnagy >
like hilariously
08:36
<
burgestrand >
I’d suppose the drivers don’t really support threading
08:36
<
burgestrand >
perhaps they could if you created more than one instance of them
08:36
<
bnagy >
very not, apparently :)
08:36
<
bnagy >
I did, afaik
08:36
<
bnagy >
those are just the raw searchy classes
08:38
workmad3 has joined #ruby-lang
08:38
<
burgestrand >
I faintly remember how jnicklas mentioned something about how capybara runs the drivers in a thread in the background or something like that but I can’t remember exactly what he said
08:38
<
burgestrand >
never bothered to dig into capybara more than necessary to access the raw drivers from time to time :p
08:38
<
workmad3 >
burgestrand: that would make sense considering the behaviour of capybara :)
08:38
<
bnagy >
if I change in_processes to in_threads hilarity ensues
08:39
cdt has joined #ruby-lang
08:40
dtribble has quit [Ping timeout: 240 seconds]
08:40
kitallis has joined #ruby-lang
08:42
gnufied has joined #ruby-lang
08:47
krz has quit [Quit: krz]
08:51
runeb- has joined #ruby-lang
08:51
runeb has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
08:51
runeb- is now known as runeb
08:51
dhruvasagar has quit [Ping timeout: 248 seconds]
08:52
dhruvasagar has joined #ruby-lang
08:54
<
burgestrand >
bnagy: yeah, turns out it doesn’t work well if you use different app hosts first of all
08:54
<
burgestrand >
Hm, no, that’s not your issue you use absolute hosts.
09:00
toretore has joined #ruby-lang
09:08
Jotade11 has quit [Quit: Leaving...]
09:08
Jotade11 has joined #ruby-lang
09:10
Jotade11 has quit [Client Quit]
09:11
Jotade11 has joined #ruby-lang
09:13
Jotade11 has quit [Client Quit]
09:17
dhruvasagar has quit [Ping timeout: 260 seconds]
09:17
dhruvasagar has joined #ruby-lang
09:19
qwerxy has joined #ruby-lang
09:20
<
Silex >
is array.each the simplest way to return an enumerator?
09:21
<
Silex >
I have this method that is currently yield'ing values, but I think it'd be superior if it simply returned an enumerator
09:21
<
Silex >
allowing people to chose how to iterate over it instead of forcing them to pass a block etc
09:22
<
heftig >
def mymeth; if block_given?; ... yield ...; else enum_for(__method__); end; end
09:22
<
Silex >
heftig: ha smart, the best of both worlds
09:29
kartouch has joined #ruby-lang
09:30
<
burgestrand >
bnagy: I believe, to do it threaded, you’ll need to make sure 1) all your urls you visit are absolute, 2) overload current_session because it’s not thread-safe in Capybara::DSL, so create your own session for each thread
09:30
<
burgestrand >
I’m fairly certain I have something working here with celluloid but I’m not sure what to try it on…
09:31
<
Silex >
heftig: what if I have to pass arguments to the method
09:31
<
Silex >
__method__ tries to call it without the args
09:32
justinseiter has joined #ruby-lang
09:32
<
Silex >
oh wait, it takes args
09:33
dhruvasagar has quit [Ping timeout: 244 seconds]
09:33
Leeky is now known as Leeky_afk
09:33
dhruvasagar has joined #ruby-lang
09:36
S1kx has joined #ruby-lang
09:39
saLOUt has joined #ruby-lang
09:40
grin_ has joined #ruby-lang
09:43
dhruvasagar has quit [Ping timeout: 240 seconds]
09:44
dhruvasagar has joined #ruby-lang
09:46
<
bnagy >
burgestrand: which bit is the magic? @current_session = Capybara::Session.new(:poltergeist)
09:49
<
bnagy >
and I need to visit an actual url, not '/' in initialize?
09:49
dhruvasagar has quit [Ping timeout: 245 seconds]
09:49
s1n4 has joined #ruby-lang
09:49
s1n4 has quit [Client Quit]
09:49
burgestrand has quit [Quit: Leaving.]
09:52
Silex has quit [Quit: WeeChat 0.3.8]
09:54
Silex has joined #ruby-lang
09:55
saLOUt has quit [Quit: Konversation terminated!]
09:57
dhruvasagar has joined #ruby-lang
09:57
virunga has quit [Read error: Connection reset by peer]
09:58
postmodern has quit [Quit: Leaving]
10:08
burgestrand has joined #ruby-lang
10:08
guns has joined #ruby-lang
10:09
<
burgestrand >
bnagy: yeah, current_session is what capybara uses and it defaults to auto-creating it when necessary but here we do it eagerly
10:09
<
burgestrand >
bnagy: the visit is just to start the session and visit the base URL, you can just give the host if you want to, or a full path
10:09
<
bnagy >
just trying to remodel my Search on yours
10:09
<
burgestrand >
bnagy: so the Google searcher will go to google’s /
10:09
<
bnagy >
was working, now bugs... sec
10:09
<
burgestrand >
bnagy: but another part of the magic is the visit() override, it needs to have the urls start with http
10:10
<
burgestrand >
otherwise Capybara goes to 127.0.0.1 or app_host, you want neither because each searcher should have it’s own base
10:10
<
burgestrand >
anyhow, lunch now, will be back in an hour :)
10:11
x0F has quit [Disconnected by services]
10:11
x0F_ has joined #ruby-lang
10:11
x0F_ is now known as x0F
10:12
<
bnagy >
dammit still fails the same way as before
10:12
<
bnagy >
work in processes
10:13
<
bnagy >
have good lunch. If you still have time later I'll try and get some stacktraces
10:16
cid404 has joined #ruby-lang
10:19
gnufied has quit [Quit: Leaving.]
10:20
dhruvasagar has quit [Read error: Connection reset by peer]
10:21
burgestrand has quit [Quit: Leaving.]
10:26
dhruvasagar has joined #ruby-lang
10:26
gokul has joined #ruby-lang
10:27
gnufied has joined #ruby-lang
10:27
IPGlider has quit []
10:34
RegEchse has joined #ruby-lang
10:36
burgestrand has joined #ruby-lang
10:40
sepp2k has joined #ruby-lang
10:49
burgestrand has quit [Quit: Leaving.]
10:55
telemachus has left #ruby-lang [#ruby-lang]
10:57
dhruvasagar has quit [Read error: Connection reset by peer]
11:00
burgestrand has joined #ruby-lang
11:02
elemarjr has joined #ruby-lang
11:13
judofyr has joined #ruby-lang
11:15
virunga has joined #ruby-lang
11:15
guns has quit [Quit: guns]
11:18
Hakon has joined #ruby-lang
11:18
Criztian has quit [Remote host closed the connection]
11:21
s1n4 has joined #ruby-lang
11:23
chimkan_ has joined #ruby-lang
11:35
bytephilia has joined #ruby-lang
11:36
<
kke >
anyone using barkeep?
11:36
<
kke >
wondering how to control who can get access
11:41
fromhet has quit [Quit: fromhet]
11:44
s1n4 has quit [Quit: leaving]
11:47
d3vic3 has quit [Quit: leaving]
11:49
jxie has quit [Quit: leaving]
11:52
nibbo has quit [Ping timeout: 252 seconds]
12:06
stayarrr has joined #ruby-lang
12:10
workmad3 is now known as wm3|lunch
12:11
d3vic3 has joined #ruby-lang
12:11
kvirani has joined #ruby-lang
12:13
nibbo has joined #ruby-lang
12:15
tooky has quit [Remote host closed the connection]
12:21
gregmoreno has quit [Ping timeout: 248 seconds]
12:22
mistym has joined #ruby-lang
12:22
mistym has quit [Changing host]
12:22
mistym has joined #ruby-lang
12:22
andrewhl has joined #ruby-lang
12:23
sailias has joined #ruby-lang
12:24
tooky has joined #ruby-lang
12:31
mistym has quit [Remote host closed the connection]
12:32
bryancp has joined #ruby-lang
12:35
carloslopes has joined #ruby-lang
12:37
gregmoreno has joined #ruby-lang
12:39
s1n4 has joined #ruby-lang
12:41
tommyvyo has joined #ruby-lang
12:41
virunga has quit [Quit: Sto andando via]
12:41
andrewhl has quit [Remote host closed the connection]
12:44
ChadStudmuffin has joined #ruby-lang
12:46
andrewhl has joined #ruby-lang
12:46
gnufied has quit [Quit: Leaving.]
12:49
poga has joined #ruby-lang
12:53
grin_ has quit [Read error: Connection reset by peer]
12:53
grin_ has joined #ruby-lang
12:56
gnufied has joined #ruby-lang
13:01
runeb- has joined #ruby-lang
13:01
runeb is now known as Guest23145
13:01
Guest23145 has quit [Read error: Connection reset by peer]
13:01
runeb- is now known as runeb
13:01
mistym has joined #ruby-lang
13:01
mistym has quit [Changing host]
13:01
mistym has joined #ruby-lang
13:01
slyphon has joined #ruby-lang
13:05
deryl has joined #ruby-lang
13:05
sailias has quit [Ping timeout: 276 seconds]
13:06
stayarrr has quit [Quit: Leaving...]
13:08
deryl has quit [Client Quit]
13:10
dhruvasagar has joined #ruby-lang
13:12
hynkle has joined #ruby-lang
13:16
deryl has joined #ruby-lang
13:16
hramrach has quit [Ping timeout: 276 seconds]
13:20
zz_chrismcg is now known as chrismcg
13:20
fgomez has quit [Ping timeout: 276 seconds]
13:22
kvirani has quit [Remote host closed the connection]
13:23
bryancp has quit [Remote host closed the connection]
13:23
dc5ala has quit [Quit: Ex-Chat]
13:24
itsmeduncan has joined #ruby-lang
13:26
rue_XIV has joined #ruby-lang
13:27
retro|cz has quit [Remote host closed the connection]
13:28
hramrach has joined #ruby-lang
13:30
rue has quit [Ping timeout: 250 seconds]
13:30
outoftime has joined #ruby-lang
13:32
deryl has quit [Quit: deryl]
13:33
rue has joined #ruby-lang
13:33
sockmonk has joined #ruby-lang
13:35
cha1tanya has quit [Ping timeout: 276 seconds]
13:35
rue_ has joined #ruby-lang
13:36
gokul has quit [Quit: Leaving]
13:36
mistym has quit [Remote host closed the connection]
13:36
rue_XIV has quit [Ping timeout: 272 seconds]
13:37
deryl has joined #ruby-lang
13:38
therealnoop has quit [Remote host closed the connection]
13:39
rue has quit [Ping timeout: 276 seconds]
13:42
Defusal has quit [Quit: ...]
13:42
tekin has joined #ruby-lang
13:43
justinseiter has quit [Quit: Leaving]
13:54
deryl has quit [Quit: deryl]
13:55
sailias has joined #ruby-lang
13:56
rue has joined #ruby-lang
13:57
kitallis has quit [Quit: Computer has gone to sleep.]
13:58
wm3|lunch is now known as workmad3
13:59
rue_ has quit [Ping timeout: 276 seconds]
14:00
andrewhl has quit [Remote host closed the connection]
14:00
deryl has joined #ruby-lang
14:02
andrewhl has joined #ruby-lang
14:03
havenn has joined #ruby-lang
14:04
outoftime has quit [Quit: Leaving]
14:06
Defusal has joined #ruby-lang
14:06
Defusal has quit [Changing host]
14:06
Defusal has joined #ruby-lang
14:06
savage- has joined #ruby-lang
14:06
erichmenge has joined #ruby-lang
14:09
burgestrand has quit [Quit: Leaving.]
14:09
mistym has joined #ruby-lang
14:09
mistym has quit [Changing host]
14:09
mistym has joined #ruby-lang
14:11
burgestrand has joined #ruby-lang
14:11
itsmeduncan has quit [Read error: Connection reset by peer]
14:12
itsmeduncan has joined #ruby-lang
14:13
kvirani has joined #ruby-lang
14:13
akira989 has joined #ruby-lang
14:13
chimkan_ has quit [Quit: chimkan_]
14:16
andrewhl has quit [Remote host closed the connection]
14:18
chimkan_ has joined #ruby-lang
14:18
andrewhl has joined #ruby-lang
14:21
bryancp has joined #ruby-lang
14:23
burgestrand has quit [Quit: Leaving.]
14:29
wmoxam_ has joined #ruby-lang
14:29
andrewhl has quit [Remote host closed the connection]
14:30
hdzhdgn has quit [Ping timeout: 248 seconds]
14:32
erpuds has joined #ruby-lang
14:33
elux has joined #ruby-lang
14:33
agile has joined #ruby-lang
14:38
bytephilia has quit [Remote host closed the connection]
14:40
VGoff is now known as VGoff_afk
14:43
elux has quit [Quit: Bye!]
14:45
agile has quit [Ping timeout: 246 seconds]
14:47
hdzhdgn has joined #ruby-lang
14:47
erpuds has quit [Quit: erpuds]
14:48
savage- has quit [Read error: Connection reset by peer]
14:48
savage- has joined #ruby-lang
14:49
d3vic3 has quit [Quit: leaving]
14:50
agile has joined #ruby-lang
14:50
d3vic3 has joined #ruby-lang
14:50
dous has joined #ruby-lang
14:50
dous has quit [Changing host]
14:50
dous has joined #ruby-lang
14:50
d3vic3 has quit [Client Quit]
14:52
sailias has quit [Quit: Leaving.]
14:55
erpuds has joined #ruby-lang
14:56
sailias has joined #ruby-lang
14:58
deryl-android has joined #ruby-lang
14:59
steveklabnik has quit [Disconnected by services]
15:02
outoftime has joined #ruby-lang
15:03
totallymike has joined #ruby-lang
15:05
|Vargas| has quit [Quit: ...]
15:05
savage- has quit [Remote host closed the connection]
15:07
jxie has joined #ruby-lang
15:10
runeb has quit [Remote host closed the connection]
15:14
coryf has joined #ruby-lang
15:14
kain has quit [Ping timeout: 244 seconds]
15:16
melter has quit [Read error: Connection reset by peer]
15:19
melter has joined #ruby-lang
15:19
mytrile has quit [Remote host closed the connection]
15:20
havenn has quit [Remote host closed the connection]
15:24
runeb has joined #ruby-lang
15:24
tekin has quit [Quit: Computer has gone to sleep.]
15:26
runeb has quit [Remote host closed the connection]
15:27
nibbo has quit [Ping timeout: 248 seconds]
15:28
nibbo has joined #ruby-lang
15:29
itsmeduncan has quit [Quit: itsmeduncan]
15:30
itsmeduncan has joined #ruby-lang
15:31
havenn has joined #ruby-lang
15:34
kain has joined #ruby-lang
15:35
havenn has quit [Remote host closed the connection]
15:36
havenn has joined #ruby-lang
15:37
pbjorklund has joined #ruby-lang
15:38
erpuds has quit [Quit: erpuds]
15:38
<
tubbo >
are there any tools for converting XLSX spreadsheets into JSON?
15:39
tekin_ has joined #ruby-lang
15:40
tekin_ has quit [Client Quit]
15:41
havenn has quit [Ping timeout: 276 seconds]
15:41
jperry2 has joined #ruby-lang
15:42
<
apeiros_ >
tubbo: yes
15:43
savage- has joined #ruby-lang
15:43
<
apeiros_ >
there's roo, spreadsheet and various json libs
15:44
gnufied has quit [Quit: Leaving.]
15:45
<
erikh >
there is no alternative to rue
15:46
carloslopes has quit [Quit: Leaving.]
15:46
dous has quit [Remote host closed the connection]
15:48
<
tubbo >
apeiros_: rue?
15:48
<
rue >
I told you, I’m out of the business
15:48
<
judofyr >
tubbo: it's quite Java, but not bad to work with
15:48
* apeiros_
can't help people who can't read.
15:48
<
rue >
O wait, maybe the link chopped off the l…wth
15:49
<
judofyr >
same here
15:49
<
judofyr >
limechat?
15:49
<
apeiros_ >
limechat too, no 404 here
15:50
<
apeiros_ >
maybe should update once in a while? :)
15:50
<
deryl-android >
hehehe
15:50
chimkan_ has quit [Quit: chimkan_]
15:51
zmack has quit [Remote host closed the connection]
15:52
<
rue >
Software’s not meant to be updated
15:53
<
deryl-android >
so thats why people charge so much. now its all so clear :)
15:54
gnufied1 has joined #ruby-lang
15:54
coryf has quit [Read error: Connection reset by peer]
15:54
Jotade11 has joined #ruby-lang
15:54
coryf has joined #ruby-lang
15:57
havenn has joined #ruby-lang
15:58
jtoy has joined #ruby-lang
15:58
<
mistym >
What's the best way to deal with C-style hex unsigned ints in Ruby? I have a C library I'm wrapping that's full of 0x00000800UL-style consts.
15:58
<
apeiros_ >
what do you mean, "deal with"?
15:58
<
apeiros_ >
0x00000800 is valid in ruby
15:59
<
apeiros_ >
(i.e., just drop the UL)
15:59
<
mistym >
Oh, why so it is. Derp.
16:00
snorkdude has joined #ruby-lang
16:00
<
erikh >
it's always unsigned though
16:00
<
apeiros_ >
other than that - all the ordinary macros provided to convert to FIXNUM or integer
16:01
<
Mon_Ouie >
Though that doesn't help if you're using FFI
16:01
savage- has quit [Remote host closed the connection]
16:02
headius has joined #ruby-lang
16:02
<
erikh >
I used to have a htoi I wrote that was reasonably fast
16:02
<
erikh >
but you could probably just exploit unpack somehow
16:02
savage- has joined #ruby-lang
16:02
canton7 has joined #ruby-lang
16:02
<
mistym >
Mon_Ouie: Using FFI, yeah.
16:04
TorpedoSkyline has joined #ruby-lang
16:05
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
16:05
akira989_ has joined #ruby-lang
16:08
akira989 has quit [Ping timeout: 248 seconds]
16:11
wallerdev has joined #ruby-lang
16:11
chimkan_ has joined #ruby-lang
16:12
chimkan_ has quit [Read error: Connection reset by peer]
16:13
chimkan__ has joined #ruby-lang
16:14
virunga has joined #ruby-lang
16:17
fromhet has joined #ruby-lang
16:17
gregmoreno has quit [Ping timeout: 248 seconds]
16:17
chimkan_ has joined #ruby-lang
16:17
gregmoreno has joined #ruby-lang
16:17
lsegal has joined #ruby-lang
16:17
rippa has joined #ruby-lang
16:18
chrismcg is now known as zz_chrismcg
16:20
apeiros_ has quit [Remote host closed the connection]
16:21
zzak has quit [Quit: leaving]
16:21
chimkan__ has quit [Ping timeout: 276 seconds]
16:21
macmartine has joined #ruby-lang
16:22
gnufied1 has quit [Quit: Leaving.]
16:26
snorkdude has quit [Remote host closed the connection]
16:27
zzak has joined #ruby-lang
16:29
chimkan_ has quit [Quit: chimkan_]
16:30
erpuds has joined #ruby-lang
16:31
butchanton has joined #ruby-lang
16:33
cdt has quit [Quit: Ex-Chat]
16:35
fromhet has quit [Quit: fromhet]
16:36
ndxgosu has joined #ruby-lang
16:39
snorkdude has joined #ruby-lang
16:40
scientes has joined #ruby-lang
16:41
towski has joined #ruby-lang
16:42
judofyr has quit [Remote host closed the connection]
16:46
fromhet has joined #ruby-lang
16:51
carloslopes has joined #ruby-lang
16:51
S1kx has quit [Quit: Leaving]
16:51
carloslopes has quit [Client Quit]
16:51
burgestrand has joined #ruby-lang
16:51
<
tubbo >
erikh: have you used Roo with XLSX spreadsheets? i keep running into stupid encoding errors and shit
16:52
snorkdude has quit [Remote host closed the connection]
16:52
<
erikh >
I was making a joke about someone with a similar name that's in the channel
16:52
<
tubbo >
alright then
16:52
mrsolo has joined #ruby-lang
16:54
sora_h is now known as s0ra_h
16:54
deryl-android has quit [Quit: will be on and offline most of day. later]
16:54
s0ra_h is now known as sora_h
16:55
brianpWins has quit [Quit: brianpWins]
16:57
towski has quit [Remote host closed the connection]
16:57
carloslopes has joined #ruby-lang
17:00
erpuds has quit [Quit: erpuds]
17:01
saLOUt_ has joined #ruby-lang
17:02
snorkdude has joined #ruby-lang
17:03
workmad3 is now known as wm3|away
17:04
burgestrand has quit [Quit: Leaving.]
17:05
brdude has joined #ruby-lang
17:06
bryancp has quit [Remote host closed the connection]
17:06
havenn has quit [Remote host closed the connection]
17:07
yaroslav has joined #ruby-lang
17:08
brdude has quit [Read error: Connection reset by peer]
17:09
snorkdude has quit [Remote host closed the connection]
17:10
dtribble has joined #ruby-lang
17:10
sora_h is now known as s0ra_h
17:13
neocoin has quit [Remote host closed the connection]
17:15
brdude has joined #ruby-lang
17:16
chimkan_ has joined #ruby-lang
17:16
benanne has joined #ruby-lang
17:19
tooky has quit [Remote host closed the connection]
17:21
saLOUt_ has quit [Remote host closed the connection]
17:22
saLOUt_ has joined #ruby-lang
17:27
saLOUt_ has quit [Ping timeout: 260 seconds]
17:29
jstemmer has quit [Quit: leaving]
17:31
jstemmer has joined #ruby-lang
17:33
agile has quit [Ping timeout: 260 seconds]
17:33
havenn has joined #ruby-lang
17:34
chimkan__ has joined #ruby-lang
17:35
andrewhl has joined #ruby-lang
17:35
krz has joined #ruby-lang
17:36
d3vic3 has joined #ruby-lang
17:36
chimkan_ has quit [Ping timeout: 252 seconds]
17:37
fromhet has quit [Remote host closed the connection]
17:40
ndxgosu has quit []
17:41
qwerxy has quit [Ping timeout: 244 seconds]
17:42
bfreeman has joined #ruby-lang
17:42
burgestrand has joined #ruby-lang
17:43
havenn has quit [Remote host closed the connection]
17:46
Hakon is now known as CaptnObvious
17:46
CaptnObvious is now known as Hakon
17:46
jbwiv has joined #ruby-lang
17:47
S1kx has joined #ruby-lang
17:47
pbjorklu1d has joined #ruby-lang
17:48
towski has joined #ruby-lang
17:48
pbjorklund has quit [Ping timeout: 265 seconds]
17:48
havenn has joined #ruby-lang
17:50
yaroslav has quit [Quit: yaroslav]
17:50
agile has joined #ruby-lang
17:51
snorkdude has joined #ruby-lang
17:54
qpingu has joined #ruby-lang
17:54
yhyubub has joined #ruby-lang
17:54
s0ra_h is now known as sora_h
17:58
vbatts has joined #ruby-lang
18:00
achiu has quit [Quit: WeeChat 0.3.7]
18:00
zzak has quit [Quit: leaving]
18:00
achiu has joined #ruby-lang
18:01
zzak has joined #ruby-lang
18:02
s1n4 has quit [Quit: leaving]
18:04
ChadStudmuffin has quit [Ping timeout: 244 seconds]
18:04
sora_h is now known as s0ra_h
18:04
s0ra_h is now known as sora_h
18:09
steveklabnik has joined #ruby-lang
18:11
havenn has quit [Remote host closed the connection]
18:12
jackhammer2022 has joined #ruby-lang
18:15
lcdhoffman has joined #ruby-lang
18:20
chimkan__ has quit [Quit: chimkan__]
18:21
sora_h is now known as s0ra_h
18:22
havenn has joined #ruby-lang
18:23
cantonic_ has joined #ruby-lang
18:24
elux has joined #ruby-lang
18:25
dejongge has joined #ruby-lang
18:25
elux has quit [Client Quit]
18:25
enroxorz has joined #ruby-lang
18:26
enroxorz is now known as Guest24624
18:26
cantonic has quit [Ping timeout: 240 seconds]
18:26
cantonic_ is now known as cantonic
18:26
chimkan_ has joined #ruby-lang
18:32
havenn has quit [Remote host closed the connection]
18:33
JustinCampbell has joined #ruby-lang
18:38
chimkan_ has quit [Quit: chimkan_]
18:39
ChadStudmuffin has joined #ruby-lang
18:40
chimkan has joined #ruby-lang
18:40
stayarrr has joined #ruby-lang
18:42
enebo has joined #ruby-lang
18:44
iamjarvo has joined #ruby-lang
18:44
ChadStudmuffin has quit [Ping timeout: 276 seconds]
18:44
pbjorklund has joined #ruby-lang
18:45
ChadStudmuffin has joined #ruby-lang
18:46
<
msch >
hi, what's a good http request lib for scraping? e.g. i have lots of requests queued, i need retries if they fail, etc etc
18:47
pbjorklu1d has quit [Ping timeout: 244 seconds]
18:48
imajes has quit [Excess Flood]
18:48
Guest24624 has left #ruby-lang [#ruby-lang]
18:48
<
drbrain >
msch: mechanize
18:49
enroxorz has joined #ruby-lang
18:49
<
msch >
drbrain: thanks. i tried that some years ago and didn't really like it, do you know of any other?
18:50
ChadStudmuffin has quit [Ping timeout: 240 seconds]
18:50
imajes has joined #ruby-lang
18:54
<
drbrain >
what didn't you like about it?
18:55
<
rue >
It’s supposedly a bit better now
18:55
<
rue >
Do you need to actually *scrape*/mechanize, though? You’re not just looking for httparty or whatever and don’t know it?
18:57
ChadStud1uffin has joined #ruby-lang
18:59
toretore has quit [Read error: Connection reset by peer]
18:59
tbuehlmann has joined #ruby-lang
19:00
TorpedoSkyline has quit [Quit: Computer has gone to sleep.]
19:00
toretore has joined #ruby-lang
19:00
Harzilein has joined #ruby-lang
19:01
<
Harzilein >
i have never seen this kind of syntax: class << (@latex_escaper=RedCloth.new(''))
19:01
<
Harzilein >
where is it described?
19:01
<
Harzilein >
shouldn't the expression be required to return a class/module?
19:01
bryancp has joined #ruby-lang
19:02
agile has quit [Ping timeout: 265 seconds]
19:02
<
Harzilein >
(and not an instance)
19:03
<
rue >
Harzilein: class << anyobject opens the singleton class of the object on the right
19:03
havenn has joined #ruby-lang
19:04
ChadStud1uffin has quit [Ping timeout: 248 seconds]
19:05
s0ra_h is now known as sora_h
19:08
havenn has quit [Ping timeout: 248 seconds]
19:10
gsav has quit [Read error: Connection reset by peer]
19:11
gsav has joined #ruby-lang
19:11
chimkan has quit [Quit: chimkan]
19:13
Hakon has quit [Quit: Leaving...]
19:18
chimkan has joined #ruby-lang
19:18
tooky has joined #ruby-lang
19:18
agile has joined #ruby-lang
19:18
ChadStudmuffin has joined #ruby-lang
19:20
heftig has quit [Ping timeout: 245 seconds]
19:20
Nisstyre has quit [Quit: Leaving]
19:20
saLOUt_ has joined #ruby-lang
19:21
sora_h is now known as s0ra_h
19:23
tooky has quit [Ping timeout: 276 seconds]
19:24
ChadStudmuffin has quit [Ping timeout: 276 seconds]
19:29
dejongge has quit [Read error: Connection timed out]
19:30
havenn has joined #ruby-lang
19:30
ChadStud1uffin has joined #ruby-lang
19:33
iamjarvo has quit [Quit: Computer has gone to sleep.]
19:34
Hakon has joined #ruby-lang
19:34
snorkdude has quit [Remote host closed the connection]
19:35
erpuds has joined #ruby-lang
19:36
heftig has joined #ruby-lang
19:37
erpuds has quit [Client Quit]
19:38
ChadStud1uffin has quit [Ping timeout: 245 seconds]
19:38
ryland has quit [Ping timeout: 248 seconds]
19:39
chimkan__ has joined #ruby-lang
19:39
Hakon has quit [Ping timeout: 276 seconds]
19:40
JustinCampbell has quit [Ping timeout: 240 seconds]
19:42
chimkan has quit [Ping timeout: 245 seconds]
19:42
chimkan__ is now known as chimkan
19:42
JustinCampbell has joined #ruby-lang
19:43
diegoviola has quit [Ping timeout: 240 seconds]
19:45
agile has quit [Ping timeout: 276 seconds]
19:47
tooky has joined #ruby-lang
19:47
chimkan has quit [Read error: Connection reset by peer]
19:48
chimkan_ has joined #ruby-lang
19:49
Hakon has joined #ruby-lang
19:50
deryl has quit [Quit: deryl]
19:55
diegoviola has joined #ruby-lang
19:57
enroxorz has quit [Quit: Leaving]
19:57
chimkan_ has quit [Ping timeout: 252 seconds]
19:59
towski has quit [Remote host closed the connection]
19:59
poga has quit [Remote host closed the connection]
20:00
erpuds has joined #ruby-lang
20:05
agile has joined #ruby-lang
20:05
havenn has quit [Remote host closed the connection]
20:06
s0ra_h is now known as sora_h
20:08
ChadStudmuffin has joined #ruby-lang
20:12
ChadStudmuffin has quit [Ping timeout: 252 seconds]
20:14
sailias has quit [Quit: Leaving.]
20:14
chimkan_ has joined #ruby-lang
20:16
gregmore_ has joined #ruby-lang
20:16
erichmenge has quit [Quit: Be back later]
20:17
ChadStudmuffin has joined #ruby-lang
20:17
gregmoreno has quit [Ping timeout: 244 seconds]
20:19
chimkan_ has quit [Read error: Connection reset by peer]
20:22
sora_h is now known as s0ra_h
20:22
grin_ has quit [Quit: Leaving.]
20:24
tooky has quit [Remote host closed the connection]
20:27
brdude has quit [Quit: brdude]
20:27
ChadStudmuffin has quit [Ping timeout: 252 seconds]
20:29
kennyvb has left #ruby-lang [#ruby-lang]
20:29
ChadStudmuffin has joined #ruby-lang
20:30
chimkan_ has joined #ruby-lang
20:32
lun_ has joined #ruby-lang
20:32
Criztian has joined #ruby-lang
20:33
ChadStudmuffin has quit [Ping timeout: 244 seconds]
20:35
burgestrand has quit [Quit: Leaving.]
20:36
JustinCampbell has quit [Remote host closed the connection]
20:37
gregmoreno has joined #ruby-lang
20:40
gregmore_ has quit [Ping timeout: 240 seconds]
20:41
erichmenge has joined #ruby-lang
20:43
<
theoros >
alright this is driving me nuts
20:43
<
theoros >
rdoc.main = "README.md"
20:43
<
theoros >
it does nothing, what's the deal
20:44
<
theoros >
i have rdoc.rdoc_files.include("README.md", "lib")
20:44
<
theoros >
index.html comes out blank with just the sidebar on the left
20:44
Jake232 has joined #ruby-lang
20:45
bryancp has quit [Remote host closed the connection]
20:45
havenn has joined #ruby-lang
20:46
havenn has quit [Remote host closed the connection]
20:46
ChadStud1uffin has joined #ruby-lang
20:49
<
drbrain >
theoros: for one, markdown support only exists in RDoc trunk
20:49
<
drbrain >
… but it still should find your paragraphs and whatnot
20:49
<
theoros >
i get no output. i'm finding the whole thing frustrating
20:49
<
drbrain >
theoros: URL?
20:50
<
theoros >
drbrain: for what?
20:50
Nisstyre has joined #ruby-lang
20:50
<
drbrain >
for the source that gives you rdoc frustrations
20:50
rippa has quit [Ping timeout: 246 seconds]
20:50
<
theoros >
drbrain: i'll push the repo and pm you it, that okay?
20:51
<
drbrain >
theoros: sure
20:51
<
theoros >
rdoc -o docs --main docs/Foo.html lib # nothing :(
20:51
sailias has joined #ruby-lang
20:52
<
drbrain >
that should probably be `rdoc -o docs --main Foo lib`
20:52
<
drbrain >
--main references a page, class or module
20:53
erichmenge has quit [Quit: Be back later]
20:53
<
theoros >
drbrain: still no output, sadly
20:53
<
theoros >
(other than the sidebar)
20:54
<
theoros >
drbrain: also the documentation suggests --main should be a filename
20:54
<
theoros >
drbrain: not saying you're wrong, just pointing out the mismatch :)
20:54
<
drbrain >
theoros: ok, I can fix that
20:54
<
drbrain >
typically it's a file like README.txt, but a class name will also work
20:54
<
drbrain >
it shouldn't reference a generated file, though
20:55
ChadStud1uffin has quit [Ping timeout: 240 seconds]
20:56
ChadStudmuffin has joined #ruby-lang
20:58
<
theoros >
drbrain: PM'd you
21:01
postmodern has joined #ruby-lang
21:01
Stereokitsune has quit [Quit: leaving]
21:01
elemarjr has quit [Quit: elemarjr]
21:02
ChadStudmuffin has quit [Ping timeout: 272 seconds]
21:02
burgestrand has joined #ruby-lang
21:02
<
cout >
how can I format my time like: 2011-12-16T21:01:20Z
21:02
fayimora has joined #ruby-lang
21:02
<
cout >
it's the 'Z' part that's getting me
21:03
<
drbrain >
cout: doesn't #iso8601 do that?
21:03
brdude has joined #ruby-lang
21:03
<
cout >
drbrain: where's that method defined?
21:05
<
cout >
iso8601 looks like it's slightly different
21:05
<
drbrain >
ruby -rtime -e 'p Time.now.utc.iso8601'
21:06
<
cout >
oh I was using DateTime.now
21:06
s0ra_h is now known as sora_h
21:06
ChadStudmuffin has joined #ruby-lang
21:07
<
drbrain >
cout: if you're on 1.9 there's no advantage to using DateTime
21:07
<
drbrain >
… range-wise, anyhow
21:07
^sandbags^ has quit [Remote host closed the connection]
21:09
agile has quit [Ping timeout: 272 seconds]
21:09
fayimora has quit [Ping timeout: 240 seconds]
21:09
<
cout >
hopefully this will work, thanks
21:11
ChadStudmuffin has quit [Ping timeout: 248 seconds]
21:13
snorkdude has joined #ruby-lang
21:13
coryf has quit [Remote host closed the connection]
21:14
fayimora has joined #ruby-lang
21:15
andrewhl has quit [Remote host closed the connection]
21:15
ilyam has joined #ruby-lang
21:17
jackhammer2022 has quit [Read error: Connection reset by peer]
21:17
gregfu has joined #ruby-lang
21:18
JustinCampbell has joined #ruby-lang
21:18
jackhammer2022 has joined #ruby-lang
21:21
brdude has quit [Quit: brdude]
21:21
Stereokitsune has joined #ruby-lang
21:21
gregfu has quit [Quit: gregfu]
21:22
<
rue >
drbrain: Except if you’re dealing with a DB…then it might.
21:22
carloslopes has quit [Quit: Leaving.]
21:22
<
rue >
Or something similar
21:22
sora_h is now known as s0ra_h
21:23
Stereokitsune has quit [Client Quit]
21:23
Stereokitsune has joined #ruby-lang
21:25
bryancp has joined #ruby-lang
21:26
sockmonk has quit [Ping timeout: 248 seconds]
21:26
wm3|away has quit [Quit: Reconnecting]
21:27
wm3|away has joined #ruby-lang
21:27
JustinCampbell has quit [Remote host closed the connection]
21:28
wm3|away is now known as workmad3
21:29
deryl has joined #ruby-lang
21:30
fayimora has quit [Ping timeout: 245 seconds]
21:31
qwerxy has joined #ruby-lang
21:35
chimkan_ has quit [Read error: Connection reset by peer]
21:35
poga has joined #ruby-lang
21:35
poga has quit [Remote host closed the connection]
21:35
burgestrand has quit [Quit: Leaving.]
21:36
elemarjr has joined #ruby-lang
21:36
fayimora has joined #ruby-lang
21:37
iamjarvo has joined #ruby-lang
21:37
diegoviola has quit [Quit: leaving]
21:37
tbuehlmann has quit []
21:39
diegoviola has joined #ruby-lang
21:41
brdude has joined #ruby-lang
21:41
deryl has quit [Quit: deryl]
21:41
erpuds has quit [Quit: erpuds]
21:42
sailias has quit [Ping timeout: 276 seconds]
21:42
havenn has joined #ruby-lang
21:44
chimkan_ has joined #ruby-lang
21:46
erpuds has joined #ruby-lang
21:46
fayimora has quit [Quit: Be back in a gifii]
21:46
havenn has quit [Ping timeout: 244 seconds]
21:46
qwerxy has quit [Quit: offski]
21:47
akira989_ has quit [Remote host closed the connection]
21:47
chimkan_ has quit [Read error: Connection reset by peer]
21:49
qwerxy has joined #ruby-lang
21:49
sush24 has joined #ruby-lang
21:50
chimkan has joined #ruby-lang
21:50
<
sush24 >
hi .. I'm bit new to ruby..
21:50
<
sush24 >
I want to rescue if it's a Timeout::Error else raise it. Any ideas how to implement it?
21:51
ryland has joined #ruby-lang
21:52
<
drbrain >
rescue Timeout::Error will be sufficient
21:53
<
sush24 >
drbrain, hmm..
21:53
<
sush24 >
i actually did that.. I guess it might be another problem
21:53
<
drbrain >
sush24: if you show what you have so far we can be of more help
21:54
chimkan has quit [Ping timeout: 240 seconds]
21:56
<
sush24 >
It's few thousand lines… trying to debug it.. I'll see if I can try it myself
21:56
<
sush24 >
thanks btw
21:56
<
drbrain >
sush24: you should be able to write a test for the few lines you care about
21:58
kvirani has quit [Remote host closed the connection]
22:00
<
sush24 >
fixed it.. a place where it just logged didn't raise
22:00
hdzhdgn has quit [Ping timeout: 240 seconds]
22:00
itsmeduncan has quit [Quit: itsmeduncan]
22:03
d3vic3 has quit [Remote host closed the connection]
22:03
saLOUt_ has quit [Quit: Konversation terminated!]
22:05
sailias has joined #ruby-lang
22:06
wmoxam_ has quit [Ping timeout: 276 seconds]
22:06
qwerxy has quit [Quit: offski]
22:06
s0ra_h is now known as sora_h
22:08
chimkan has joined #ruby-lang
22:08
fgomez has joined #ruby-lang
22:10
sailias has quit [Client Quit]
22:11
outoftime has quit [Quit: Leaving]
22:14
chimkan has quit [Ping timeout: 245 seconds]
22:15
hdzhdgn has joined #ruby-lang
22:15
elemarjr has quit [Quit: elemarjr]
22:16
lcdhoffman has quit [Quit: lcdhoffman]
22:17
chimkan has joined #ruby-lang
22:18
chimkan has quit [Read error: Connection reset by peer]
22:18
chimkan has joined #ruby-lang
22:18
erpuds has quit [Quit: erpuds]
22:19
towski has joined #ruby-lang
22:21
snorkdude has quit [Remote host closed the connection]
22:22
qwerxy has joined #ruby-lang
22:23
sora_h is now known as s0ra_h
22:23
chimkan has quit [Read error: Connection reset by peer]
22:27
chimkan has joined #ruby-lang
22:34
enebo has quit [Quit: enebo]
22:35
mssola has quit [Quit: Konversation terminated!]
22:35
ilyam_ has joined #ruby-lang
22:37
banisterfiend has quit [Ping timeout: 248 seconds]
22:37
ilyam has quit [Ping timeout: 245 seconds]
22:37
ilyam_ is now known as ilyam
22:39
itsmeduncan has joined #ruby-lang
22:40
chimkan has quit [Ping timeout: 265 seconds]
22:41
workmad3 has quit [Read error: Operation timed out]
22:42
havenn has joined #ruby-lang
22:42
Criztian has quit [Remote host closed the connection]
22:45
bytephilia has joined #ruby-lang
22:47
havenn has quit [Ping timeout: 244 seconds]
22:49
chopmo has quit [Quit: chopmo]
22:50
banisterfiend has joined #ruby-lang
22:51
yxhuvud has quit [Ping timeout: 260 seconds]
23:00
bryancp has quit [Remote host closed the connection]
23:00
macmartine has joined #ruby-lang
23:07
s0ra_h is now known as sora_h
23:08
chimkan has joined #ruby-lang
23:10
bytephilia has quit [Remote host closed the connection]
23:11
virunga has quit [Quit: Sto andando via]
23:15
neocoin has joined #ruby-lang
23:21
qwerxy has quit [Quit: offski]
23:23
sora_h is now known as s0ra_h
23:23
mistym_ has joined #ruby-lang
23:25
Erlkoenig has joined #ruby-lang
23:26
<
Erlkoenig >
hello, is there a way to specify the order in which OptionParser calls the blocks passed to the "on" method? for my program it's important that a block correspondig to option A ist called before a block for option B, even if they occur in a different order on the command line.
23:27
<
banisterfiend >
Erlkoenig: they're called in order they're givein on the command line
23:27
<
banisterfiend >
Erlkoenig: so perhaps you dont want to use the block form
23:27
fgomez has quit [Remote host closed the connection]
23:27
fgomez has joined #ruby-lang
23:28
<
drbrain >
or you want to pre-process
23:28
<
Erlkoenig >
ah, how to do it without the blocks?
23:28
<
drbrain >
or you give an exception
23:28
<
Erlkoenig >
well i wanted to avoid messing directly with the options :)
23:28
<
Erlkoenig >
er, option strings
23:30
itsmeduncan has quit [Quit: itsmeduncan]
23:31
<
banisterfiend >
Erlkoenig: also consider using Slop if u dont mind having an extra dep
23:32
<
whitequark >
trollop is also quite good
23:33
<
Erlkoenig >
hmm i'll take a look...
23:38
butchanton has quit [Quit: Leaving.]
23:38
rodj has joined #ruby-lang
23:40
Asher has quit [Quit: Leaving.]
23:43
havenn has joined #ruby-lang
23:45
Asher has joined #ruby-lang
23:46
fgomez has quit [Ping timeout: 240 seconds]
23:47
toretore has quit [Quit: Leaving]
23:47
havenn has quit [Ping timeout: 244 seconds]
23:48
Axsuul has quit [Ping timeout: 246 seconds]
23:49
Axsuul has joined #ruby-lang
23:51
chimkan has quit [Quit: chimkan]
23:52
ilyam has quit [Remote host closed the connection]
23:52
ilyam has joined #ruby-lang
23:57
Z33K|Lux has joined #ruby-lang