00:01
<
andrewvos >
zenspider: I don't understand how it would benefit them directly.
00:01
<
andrewvos >
It certainly benefits all of us.
00:01
<
zenspider >
andrewvos: well... they use (some of) my software... but it is also community building
00:02
havenwood has quit [Ping timeout: 256 seconds]
00:03
jaska has quit [Ping timeout: 240 seconds]
00:05
volov has joined #ruby-lang
00:06
<
hnanon >
zenspider: employee_hours[ tds[0].text ] = { }
00:07
<
hnanon >
tds[0].text is what's giving me "Enployee: Gates, Bill"
00:07
<
andrewvos >
I think I'm going to pivot my current position to "I write open source"
00:08
<
hnanon >
"Employee :Gates, BIll"
00:08
jason_ has joined #ruby-lang
00:08
<
hnanon >
sorry... "Employee :Bill, Gates"
00:08
<
zenspider >
hnanon: key = tds[0].text; key = ... manipulate key ...; employee_hours[key] = ...
00:09
<
zenspider >
ie, refactor by extraction to a variable, manipulate as you see fit
00:10
<
hnanon >
Let me try that.
00:10
justinram has quit [Remote host closed the connection]
00:12
jason_ has quit [Client Quit]
00:13
mbull9 has quit [Remote host closed the connection]
00:14
thisirs has quit [Remote host closed the connection]
00:15
samuelkadolph has quit [Quit: Quitting]
00:15
samuelkadolph has joined #ruby-lang
00:16
havenn has joined #ruby-lang
00:16
havenn is now known as havenwood
00:16
methods has joined #ruby-lang
00:20
<
rking >
andrewvos: Not exactly. A few times I've wanted fatpacking, but mostly only to mollify people who are afraid of adding gems.
00:20
<
rking >
I just add gems. ☺
00:22
brianpWins has quit [Quit: brianpWins]
00:23
<
hnanon >
zenspider: I did this and I'm not getting a positive result:
00:23
nXqd has joined #ruby-lang
00:24
<
whitequark >
rking: fatpacking?
00:24
<
hnanon >
I think I may have forgotten to join with the space too...
00:26
<
rking >
whitequark: "Vendoring" is the more common term among Rubyists, but the thing I wanted to do was wrap it within a namespace.
00:26
<
rking >
So for example Pry could depend on WizWidget v0.1.2, but it would come in as Pry::WizWidget, and other apps wouldn't get any interference.
00:26
<
rking >
That it would also not download as a separate gem is a perceived benefit by some.
00:27
<
hnanon >
Still not returning the hash.
00:27
<
rking >
hnanon: Post sample data
00:28
<
zenspider >
hnanon: look at line 5
00:28
nXqd has quit [Ping timeout: 264 seconds]
00:28
mistym has quit [Remote host closed the connection]
00:28
<
hnanon >
label, data = 'key'.split(':')
00:29
<
hnanon >
I don't see a problem there...
00:30
<
hnanon >
No quotes?
00:30
<
hnanon >
around key
00:31
havenwood has quit [Remote host closed the connection]
00:32
arooni-mobile has joined #ruby-lang
00:32
<
zzak >
drbrain: having troubles with rbx?
00:33
havenwood has joined #ruby-lang
00:33
<
drbrain >
zzak: hrm?
00:33
<
zzak >
i will investigate, wasnt sure if you knew about them already
00:35
rwk1 has joined #ruby-lang
00:35
<
zenspider >
hnanon: a string versus a variable? kinda important distinction
00:35
davidbalbert is now known as davidbalber|away
00:36
methods has quit [Quit: Leaving.]
00:37
methods has joined #ruby-lang
00:37
<
drbrain >
zzak: there's probably bugs in rubinius
00:38
<
hnanon >
Yes, of course. Sorry, I'm so new to programming. I keep forgetting to not wrap variables in quotes.
00:39
rwk1 has quit [Ping timeout: 256 seconds]
00:44
<
zenspider >
no worries
00:46
toretore has quit [Quit: Leaving]
00:51
<
whitequark >
hey zenspider
00:51
<
whitequark >
any plans for ruby 2.0 features in ruby_parser?
00:52
<
whitequark >
now that it's released.
00:58
ddd has quit [Quit: Heading to Florida for the weekend. Later all]
00:59
benanne has joined #ruby-lang
01:00
marr has quit [Ping timeout: 256 seconds]
01:00
<
hnanon >
It turns out there is some added, unnecessary text at the end of my string...
01:00
<
hnanon >
Employee :Gates, Bill (2 records)
01:00
<
hnanon >
" (2 records)" needs to be stripped first.
01:01
<
hnanon >
I suppose I can split and join again, but is there another way to remove that?
01:09
<
whitequark >
is "monkey-patching" written with a dash? space? joined?
01:09
tcopp has joined #ruby-lang
01:10
hakunin_ has quit [Remote host closed the connection]
01:15
robbyoconnor has joined #ruby-lang
01:16
cstrahan has quit [Ping timeout: 256 seconds]
01:18
brhue has joined #ruby-lang
01:24
achiu has quit [Ping timeout: 260 seconds]
01:24
jsaak has quit [Ping timeout: 240 seconds]
01:25
headius has quit [Quit: headius]
01:33
mbull9 has joined #ruby-lang
01:36
ivanoats has quit [Remote host closed the connection]
01:40
dhruvasagar has joined #ruby-lang
01:42
rwk1 has joined #ruby-lang
01:42
io_syl has quit [Ping timeout: 264 seconds]
01:43
jonahR has joined #ruby-lang
01:44
Domon has joined #ruby-lang
01:45
bluepojo has quit [Remote host closed the connection]
01:48
<
hnanon >
regexp to remove parentheses and everything in between?
01:48
<
zzak >
drbrain: probably, ri failed on 18mode and 19mode
01:48
<
zzak >
different warnings tho
01:49
methods has left #ruby-lang [#ruby-lang]
01:56
xalei has left #ruby-lang ["Leaving"]
01:59
chessguy has quit [Remote host closed the connection]
02:00
arooni-mobile has quit [Ping timeout: 245 seconds]
02:02
fosky has joined #ruby-lang
02:02
brhue has quit [Quit: WeeChat 0.3.8]
02:03
Wardrop has joined #ruby-lang
02:05
glebm has quit [Ping timeout: 252 seconds]
02:06
sush24 has joined #ruby-lang
02:08
glebm has joined #ruby-lang
02:09
<
zzak >
drbrain: just sent you a patch for RDoc::Options#output_decoration
02:10
dhruvasagar has quit [Read error: Operation timed out]
02:17
sush24 has quit [Quit: This computer has gone to sleep]
02:23
benanne has quit [Quit: kbai]
02:25
mistym has joined #ruby-lang
02:26
lsegal has joined #ruby-lang
02:33
chessguy has joined #ruby-lang
02:34
Paradox is now known as trollface
02:34
trollface is now known as Paradox
02:40
<
hnanon >
zenspider: you there?
02:41
havenwood has quit [Remote host closed the connection]
02:47
xxaM has joined #ruby-lang
02:48
intellitech has joined #ruby-lang
02:50
achiu has joined #ruby-lang
02:57
cstrahan has joined #ruby-lang
02:57
ilyam has quit [Quit: ilyam]
02:57
Wardrop_ has joined #ruby-lang
02:58
Wardrop has quit [Ping timeout: 256 seconds]
03:00
Xzyx987X has quit [Read error: Connection reset by peer]
03:01
Xzyx987X has joined #ruby-lang
03:02
Wardrop_ has quit [Ping timeout: 276 seconds]
03:06
Axsuul has joined #ruby-lang
03:11
tenderlove has joined #ruby-lang
03:12
dhruvasagar has joined #ruby-lang
03:14
ilyam has joined #ruby-lang
03:17
Wardrop has joined #ruby-lang
03:18
dhruvasagar has quit [Read error: Connection reset by peer]
03:23
pepper_chico has joined #ruby-lang
03:23
stonerfish has joined #ruby-lang
03:27
davidbalber|away is now known as davidbalbert
03:42
havenwood has joined #ruby-lang
03:49
Bwild has quit [Ping timeout: 248 seconds]
03:51
havenwood has quit [Ping timeout: 256 seconds]
03:51
Bwild has joined #ruby-lang
03:57
macmartine has joined #ruby-lang
03:59
rhizmoe has quit [Quit: Lost terminal]
03:59
ivanoats has joined #ruby-lang
04:00
hasimo-t has quit [Remote host closed the connection]
04:00
r0bglees0n has quit [Read error: Connection reset by peer]
04:00
emocakes has quit [Quit: emocakes]
04:01
r0bglees0n has joined #ruby-lang
04:04
srbaker has joined #ruby-lang
04:06
Aria has quit [Remote host closed the connection]
04:06
r0bglees0n has quit [Ping timeout: 256 seconds]
04:08
srbaker has quit [Client Quit]
04:09
r0bglees0n has joined #ruby-lang
04:12
<
hnanon >
Anyone up?
04:13
simi has quit [Ping timeout: 252 seconds]
04:13
concernedcitizen has joined #ruby-lang
04:20
bzalasky has joined #ruby-lang
04:22
lolwutomg124 has joined #ruby-lang
04:22
r0bglees0n has quit [Read error: Connection reset by peer]
04:22
r0bglees0n has joined #ruby-lang
04:27
tonni has quit [Read error: Connection reset by peer]
04:28
tonni has joined #ruby-lang
04:32
mbull9 has quit [Remote host closed the connection]
04:34
chessguy has quit [Remote host closed the connection]
04:36
mistym has quit [Remote host closed the connection]
04:36
lolwutomg124 has quit [Quit: lolwutomg124 has no reason]
04:38
ryanf has quit [Quit: leaving]
04:38
hasimo-t has joined #ruby-lang
04:45
r0bglees0n has quit [Ping timeout: 245 seconds]
04:46
Domon has quit [Remote host closed the connection]
04:48
ivanoats has quit [Remote host closed the connection]
04:48
r0bglees0n has joined #ruby-lang
04:48
hramrach has quit [Ping timeout: 276 seconds]
04:51
lsegal has quit [Read error: Connection reset by peer]
04:52
lsegal has joined #ruby-lang
04:55
hramrach has joined #ruby-lang
04:55
mmaatt has joined #ruby-lang
04:55
volov has quit [Remote host closed the connection]
04:55
r0bby has joined #ruby-lang
04:56
volov has joined #ruby-lang
04:57
robbyoconnor has quit [Ping timeout: 264 seconds]
04:58
r0bby is now known as robbyoconnor
05:00
volov has quit [Ping timeout: 256 seconds]
05:01
mmaatt has quit [Quit: mmaatt has no reason]
05:01
macmartine has quit [Quit: Computer has gone to sleep.]
05:03
tomzx_mac has quit [Ping timeout: 246 seconds]
05:10
GrayVoice has joined #ruby-lang
05:12
Mon_Ouie has joined #ruby-lang
05:12
Mon_Ouie has quit [Changing host]
05:12
Mon_Ouie has joined #ruby-lang
05:13
gregmoreno has quit [Remote host closed the connection]
05:16
ryanf has joined #ruby-lang
05:18
GrayVoice has quit [Ping timeout: 245 seconds]
05:22
torrieri has joined #ruby-lang
05:25
bzalasky has quit [Remote host closed the connection]
05:26
GrayVoice has joined #ruby-lang
05:26
Wind_ has joined #ruby-lang
05:27
GrayVoice has quit [Client Quit]
05:30
brianpWins has joined #ruby-lang
05:35
volov has joined #ruby-lang
05:35
havenwood has joined #ruby-lang
05:37
em0ral has joined #ruby-lang
05:38
wallerdev has quit [Quit: wallerdev]
05:39
bzalasky has joined #ruby-lang
05:40
Domon has joined #ruby-lang
05:40
hnanon has quit [Ping timeout: 245 seconds]
05:41
Wind_ has quit [Quit: Page closed]
05:42
tcopp has quit [Ping timeout: 264 seconds]
05:42
nignaztic has quit [Read error: Connection reset by peer]
05:43
nignaztic has joined #ruby-lang
05:49
davidbalbert is now known as davidbalber|away
05:53
bzalasky has quit [Remote host closed the connection]
05:54
stonerfish has quit [Quit: Leaving.]
05:57
kgrz has joined #ruby-lang
06:00
torrieri has quit [Quit: Leaving...]
06:03
torrieri has joined #ruby-lang
06:03
r0bglees0n has quit [Ping timeout: 256 seconds]
06:03
concernedcitizen has quit [Remote host closed the connection]
06:07
glebm has quit [Ping timeout: 264 seconds]
06:09
glebm has joined #ruby-lang
06:12
kgrz has quit [Quit: Computer has gone to sleep.]
06:13
dhruvasagar has joined #ruby-lang
06:14
volov has quit [Remote host closed the connection]
06:14
volov has joined #ruby-lang
06:16
rippa has joined #ruby-lang
06:16
Axsuul has quit [Ping timeout: 264 seconds]
06:19
volov has quit [Ping timeout: 260 seconds]
06:19
havenwood has quit [Remote host closed the connection]
06:20
torrieri has quit [Quit: Leaving...]
06:22
torrieri has joined #ruby-lang
06:24
gregmoreno has joined #ruby-lang
06:28
torrieri has quit [Quit: Leaving...]
06:29
gregmoreno has quit [Ping timeout: 256 seconds]
06:29
vlad_starkov has joined #ruby-lang
06:31
torrieri has joined #ruby-lang
06:34
em0ral has quit [Remote host closed the connection]
06:35
amerine has joined #ruby-lang
06:39
tenderlove has quit [Remote host closed the connection]
06:39
tenderlove has joined #ruby-lang
06:43
jonahR has quit [Quit: jonahR]
06:45
tbuehlmann has joined #ruby-lang
06:51
kgrz has joined #ruby-lang
06:53
Averna has quit [Quit: Leaving.]
06:54
Averna has joined #ruby-lang
06:57
kurko_ has joined #ruby-lang
06:59
kurko_ has quit [Client Quit]
07:04
nXqd has joined #ruby-lang
07:05
rwk1 has quit [Remote host closed the connection]
07:05
workmad3 has joined #ruby-lang
07:11
security has quit [Ping timeout: 246 seconds]
07:12
nXqd has quit [Remote host closed the connection]
07:14
thebastl has joined #ruby-lang
07:15
jxie_ has joined #ruby-lang
07:16
fosky has quit [Remote host closed the connection]
07:17
simi has joined #ruby-lang
07:18
jxie has quit [Ping timeout: 256 seconds]
07:18
vlad_starkov has quit [Remote host closed the connection]
07:19
JohnBat26 has joined #ruby-lang
07:20
jxie_ has quit [Client Quit]
07:20
jxie has joined #ruby-lang
07:21
kurko_ has joined #ruby-lang
07:21
brianpWins has quit [Ping timeout: 245 seconds]
07:23
workmad3 has quit [Ping timeout: 256 seconds]
07:24
kurko_ has quit [Client Quit]
07:24
ilyam has quit [Quit: ilyam]
07:26
jxie has quit [Ping timeout: 256 seconds]
07:27
apeiros_ has joined #ruby-lang
07:27
jxie has joined #ruby-lang
07:29
security has joined #ruby-lang
07:29
solars has joined #ruby-lang
07:33
alessio_rocco has quit [Remote host closed the connection]
07:35
rwk1 has joined #ruby-lang
07:38
tbuehlmann has quit [Remote host closed the connection]
07:44
rwk1 has quit [Ping timeout: 264 seconds]
07:45
barttenbrinke has joined #ruby-lang
07:45
rwk1 has joined #ruby-lang
07:46
ilyam has joined #ruby-lang
07:49
alessio_rocco has joined #ruby-lang
07:49
cored has quit [Read error: Operation timed out]
07:50
dr_bob has joined #ruby-lang
07:52
io_syl has joined #ruby-lang
07:54
cored has joined #ruby-lang
07:54
cored has quit [Changing host]
07:54
cored has joined #ruby-lang
07:55
thebastl has quit [Remote host closed the connection]
07:57
hakunin has joined #ruby-lang
08:02
Taranis_ has quit [Read error: Connection reset by peer]
08:02
Taranis has joined #ruby-lang
08:03
vlad_starkov has joined #ruby-lang
08:03
glebm has quit [Ping timeout: 260 seconds]
08:04
techlife has quit [Ping timeout: 264 seconds]
08:06
rwk1 has quit [Remote host closed the connection]
08:07
JohnBat26 has joined #ruby-lang
08:09
vlad_starkov has quit [Remote host closed the connection]
08:11
techlife has joined #ruby-lang
08:11
robbyoconnor has quit [Ping timeout: 260 seconds]
08:14
holgerno has joined #ruby-lang
08:17
spectra has quit [Read error: Operation timed out]
08:17
bluepojo has joined #ruby-lang
08:18
Somasonic has joined #ruby-lang
08:18
spectra has joined #ruby-lang
08:18
benlovell has joined #ruby-lang
08:20
bluepojo has quit [Remote host closed the connection]
08:20
faces has joined #ruby-lang
08:20
judofyr has joined #ruby-lang
08:22
gnufied has joined #ruby-lang
08:22
face has quit [Ping timeout: 264 seconds]
08:24
agile has quit [Remote host closed the connection]
08:26
agile has joined #ruby-lang
08:30
kgrz has quit [Quit: Computer has gone to sleep.]
08:33
dagobah has joined #ruby-lang
08:33
concernedcitizen has joined #ruby-lang
08:36
vlad_starkov has joined #ruby-lang
08:37
torrieri has quit [Quit: Leaving...]
08:37
kgrz has joined #ruby-lang
08:45
Averna has quit [Quit: Leaving.]
08:45
benlovell has quit [Quit: Zzz]
08:46
kgrz has quit [Quit: Computer has gone to sleep.]
08:46
rwk1 has joined #ruby-lang
08:47
hasimo-t has quit [Remote host closed the connection]
08:51
rwk1 has quit [Ping timeout: 246 seconds]
08:51
hasimo-t has joined #ruby-lang
08:52
kgrz has joined #ruby-lang
08:52
francisfish has joined #ruby-lang
08:53
pepper_chico has quit [Quit: Computer has gone to sleep.]
08:54
rwk1 has joined #ruby-lang
08:55
blacktulip has joined #ruby-lang
08:55
setmeaway has quit [Read error: Connection reset by peer]
08:55
setmeaway has joined #ruby-lang
08:56
jmeeuwen has joined #ruby-lang
08:56
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
08:59
<
judofyr >
come on Ruby! segfault!
09:00
* judofyr
is trying to reproduce a segfault
09:01
marr has joined #ruby-lang
09:01
dhruvasagar has quit [Ping timeout: 264 seconds]
09:06
hasimo-t has quit [Remote host closed the connection]
09:07
<
gnufied >
you need to put more stress on 't' to make the the spell work
09:07
dhruvasagar has joined #ruby-lang
09:08
adambeynon has joined #ruby-lang
09:09
rwk1 has quit [Remote host closed the connection]
09:09
<
judofyr >
I did it :D
09:19
ilyam has quit [Quit: ilyam]
09:22
vlad_starkov has quit [Remote host closed the connection]
09:22
charliesome has joined #ruby-lang
09:24
vlad_starkov has joined #ruby-lang
09:24
vlad_starkov has quit [Remote host closed the connection]
09:25
<
yorickpeterse >
morning
09:29
jsaak has joined #ruby-lang
09:30
jerrytgarcia has joined #ruby-lang
09:30
Mon_Ouie has quit [Read error: Operation timed out]
09:32
lele|w has quit [Ping timeout: 264 seconds]
09:32
<
andrewvos >
MORNINGGG
09:42
<
whitequark >
yorickpeterse: 291 tests, 1694 assertions, 11 failures, 3 errors
09:42
<
whitequark >
hell, ruby's grammar is incredibly overloaded
09:42
lele|w has joined #ruby-lang
09:43
Averna has joined #ruby-lang
09:44
<
whitequark >
count of distinct meanings for symbols: ( 2, { 3, [ 2, / 2, [+-] 2, % 2, << 3, ? 2
09:44
<
whitequark >
and that's just ambiguous (i.e. they depend on preceding context)
09:44
<
whitequark >
: 2 (at least)
09:44
agarie has quit [Remote host closed the connection]
09:45
<
yorickpeterse >
heh
09:46
<
whitequark >
or : 3, there's ::A, :a and 1?2:3
09:46
rwk1 has joined #ruby-lang
09:46
<
whitequark >
aaargh
09:47
<
whitequark >
also the whole a==b a=~b a=>b a===b :a===>b stuff
09:47
<
whitequark >
>> {A:1}
09:48
<
whitequark >
this, too.
09:48
<
whitequark >
>> :A=
09:52
<
andrewvos >
Why does it wrap code in a p begin; end;
09:53
rwk1 has quit [Ping timeout: 260 seconds]
09:53
skade has joined #ruby-lang
09:53
<
whitequark >
>> eval(":A=")
09:53
<
whitequark >
oh right
09:53
<
whitequark >
andrewvos: I asked charliesome to fix the fact that it didn't print stuff without explicit p
09:53
<
whitequark >
he fixed it
09:54
<
judofyr >
charliesome: you here?
09:54
<
charliesome >
judofyr hi
09:54
<
whitequark >
>test_yylex_open_square_bracket_meth
09:54
<
charliesome >
whitequark: got the "meth" part right!
09:54
<
judofyr >
charliesome: I finally got the segfault in gdb :D
09:54
<
charliesome >
judofyr: noice
09:54
<
whitequark >
charliesome: YES
09:54
<
charliesome >
gc related?
09:55
<
judofyr >
not sure what this is: rb_gc_mark_unlinked_live_method_entries
09:55
<
judofyr >
but it seems likely
09:55
<
charliesome >
as in
09:55
<
judofyr >
maybe a free-twice bug?
09:55
<
charliesome >
gc related in that it's using a pointer that's been freed previously
09:55
io_syl has quit [Quit: Computer has gone to sleep.]
09:56
<
judofyr >
charliesome: it probably frees something when GCing after the remove_method, and then it tries to free the same thing when freeing the InstanceMethod
09:56
<
judofyr >
GCing the method*
09:57
<
charliesome >
yeah praps
09:57
<
judofyr >
anyway, not sure what I can do now…
09:57
<
charliesome >
judofyr: at least this means you can handball the issue off to ruby-core and not worry about it :p
09:57
wizonesolutions has joined #ruby-lang
09:57
wizonesolutions has quit [Changing host]
09:57
wizonesolutions has joined #ruby-lang
09:57
cstrahan has quit [Ping timeout: 255 seconds]
10:00
<
whitequark >
valgrind?
10:01
<
wizonesolutions >
I'm getting Unresolved specs during Gem::Specification.reset every time I do anything with `gem` — for "rake >= 0.8.7"
10:01
<
wizonesolutions >
I'm not building my own gem or anything, just using it as a user. I do use rvm and have Rubygems 2.0.0.
10:01
<
wizonesolutions >
is there any way to figure out what is leading up to that error being thrown? like make it output more debugging info
10:02
<
judofyr >
charliesome: is there a way to get nobu to fix it? :D
10:02
<
judofyr >
charliesome: but more seriously: is there something I should do to tell them "this is now ready to be looked at"?
10:02
Wells has joined #ruby-lang
10:03
<
charliesome >
judofyr: maybe poke someone in #ruby-core
10:03
<
charliesome >
i figured out how to execute a string of code in a scope while also passing it a block!
10:03
<
judofyr >
charliesome: oooo. how?
10:03
<
judofyr >
and how's the compat?
10:04
<
charliesome >
>> def f(ctx, code) ctx.instance_eval code end; f([], "self << yield") { 123 }
10:05
<
charliesome >
you can probably wire it up in such a way that you avoid re-evaling code
10:05
<
judofyr >
charliesome: ah that's a string though. how does the compile-to-method work?
10:05
<
charliesome >
well ideally you'd compile it to a procv
10:05
<
wizonesolutions >
whitequark: eh?
10:07
zigidias has quit [Ping timeout: 245 seconds]
10:09
madb055 has joined #ruby-lang
10:10
zigidias has joined #ruby-lang
10:10
<
charliesome >
judofyr: got a link to your issue?
10:11
gix has quit [Ping timeout: 256 seconds]
10:11
flori has joined #ruby-lang
10:12
<
charliesome >
judofyr: cheerz
10:18
beiter has joined #ruby-lang
10:19
<
charliesome >
judofyr: this bug is a fucker
10:19
<
charliesome >
i'm trying to reduce the repro case down
10:19
<
judofyr >
charliesome: oh?
10:19
<
charliesome >
the most innocuous stuff stops the segv
10:19
<
judofyr >
charliesome: yeah, I inlined the #source and it went away :S
10:19
<
charliesome >
i renamed the method name to just __tilt and removed the interpolation
10:19
<
charliesome >
goes away
10:20
<
charliesome >
definitely a case of something breaking the gc in the right place at the right time i think
10:21
stef_204 has joined #ruby-lang
10:21
toretore has joined #ruby-lang
10:21
<
charliesome >
i inlined source and it still segvs
10:21
<
charliesome >
i just made the compile_template_method method a frame deeper :p
10:22
<
whitequark >
yorickpeterse: you said something about parse.y?
10:22
stef_204 has quit [Client Quit]
10:23
stef_204 has joined #ruby-lang
10:24
<
whitequark >
yorickpeterse: can you make any sense from EXPR_DOT/EXPR_FNAME distinction
10:25
<
whitequark >
and EXPR_ARG/CMDARG/MID and EXPR_END/ENDFN/ENDARG?
10:25
<
yorickpeterse >
ehhh...wat
10:26
<
whitequark >
exactly
10:26
<
judofyr >
care with parse.y
10:26
<
judofyr >
be careful* with parse.y
10:27
<
yorickpeterse >
One thing I don't fully understand yet: why does Ruby treat `foo 10` and `foo(10)` as two different things in the AST?
10:27
<
judofyr >
it's a dangerous place
10:27
<
whitequark >
oh EXPR_END/EXPR_ENDFN exist to accomodate the stabby lambda syntax
10:27
<
yorickpeterse >
>> require 'ripper'; Ripper.sexp('foo 10')
10:27
<
eval-in >
yorickpeterse => [:program, [[:command, [:@ident, "foo", [1, 0]], [:args_add_block, [[:@int, "10", [1, 4]]], false]]]] (
http://eval.in/13327)
10:27
<
yorickpeterse >
>> require 'ripper'; Ripper.sexp('foo(10)')
10:27
<
eval-in >
yorickpeterse => [:program, [[:method_add_arg, [:fcall, [:@ident, "foo", [1, 0]]], [:arg_paren, [:args_add_block, [[:@int, "10", [1, 4]]], false]]]]] (
http://eval.in/13328)
10:27
<
yorickpeterse >
heh
10:27
nXqd has joined #ruby-lang
10:28
<
whitequark >
because "def a b" requires [\n;] to begin function code
10:28
<
whitequark >
but "-> b" requires "{"
10:28
<
yorickpeterse >
That's for definitions, not calls
10:28
<
whitequark >
yorickpeterse: I was talking about ENDFN
10:28
<
whitequark >
not your quirk
10:28
<
whitequark >
that's simple
10:28
mechanicles has joined #ruby-lang
10:28
<
whitequark >
because just "foo" is treated differently than "foo a" and "foo()" semantically
10:28
<
whitequark >
>> foo
10:28
<
eval-in >
whitequark => /tmp/execpad-f2db82c13995/source-f2db82c13995:2:in `<main>': undefined local variable or method `foo' for main:Object (NameError) (
http://eval.in/13329)
10:28
<
whitequark >
>> foo()
10:28
<
eval-in >
whitequark => /tmp/execpad-f6d8f590b2ae/source-f6d8f590b2ae:2:in `<main>': undefined method `foo' for main:Object (NoMethodError) (
http://eval.in/13330)
10:29
<
whitequark >
>> foo a
10:29
<
eval-in >
whitequark => /tmp/execpad-3eceb03a569d/source-3eceb03a569d:2:in `<main>': undefined local variable or method `a' for main:Object (NameError) (
http://eval.in/13331)
10:29
<
whitequark >
>> foo 1
10:29
<
eval-in >
whitequark => /tmp/execpad-1bdcfc4f30e6/source-1bdcfc4f30e6:2:in `<main>': undefined method `foo' for main:Object (NoMethodError) (
http://eval.in/13332)
10:29
<
yorickpeterse >
Yes, but why?
10:29
<
whitequark >
yorickpeterse: local variable or method / method
10:29
<
yorickpeterse >
what's the benefit of treating `foo 10` other than `foo(10)`
10:29
<
whitequark >
error. fucking. messages.
10:29
<
yorickpeterse >
in both cases it's pretty darn clear it's a method
10:29
<
judofyr >
>> a = 1; foo a
10:29
<
eval-in >
judofyr => /tmp/execpad-1ac78bf8cbe5/source-1ac78bf8cbe5:2:in `<main>': undefined method `foo' for main:Object (NoMethodError) (
http://eval.in/13333)
10:29
<
whitequark >
that's what you're asking
10:29
<
yorickpeterse >
for just `foo` I can understand
10:29
<
whitequark >
that's an artifact of how LR parsing works
10:29
<
whitequark >
I guess.
10:30
<
whitequark >
ruby_parser has one AST node for both
10:30
<
yorickpeterse >
took me quite some work to slap that together into a single node
10:31
<
charliesome >
judofyr: so i think the assignment in the method has something to do with it
10:31
<
charliesome >
the assignment in the evaled method
10:33
<
judofyr >
charliesome: what assignment?
10:33
<
charliesome >
test = whatever
10:33
<
judofyr >
(I updated it)
10:33
<
charliesome >
hmmmm
10:34
<
charliesome >
i can't repro it with a constant method name
10:34
<
charliesome >
only a changing method name
10:34
<
charliesome >
m = "__tilt_#{rand(1..100000)}"
10:34
maxmanders has joined #ruby-lang
10:34
<
whitequark >
whitequark@raidho:~/ruby_parser (ragel){*}$ rake lib/ruby_lexer.rb && ruby -Ilib -rruby_parser -e 'p Ruby19Parser.new.parse("1 + 2")'
10:34
<
judofyr >
so it requires the method table to grow?
10:34
<
whitequark >
s(:call, s(:lit, 1), :+, s(:lit, 2))
10:34
<
whitequark >
wheeee
10:34
<
charliesome >
judofyr: dunno lol!
10:34
vlad_starkov has joined #ruby-lang
10:35
<
judofyr >
charliesome: growing the method table leads to more GC though
10:35
<
charliesome >
GC.stress = true makes it not segv
10:35
<
judofyr >
same here
10:36
<
charliesome >
on trunk
10:37
<
whitequark >
yorickpeterse: oh I think I understand why is there a `cond` stack_state
10:37
<
judofyr >
charliesome: on trunk as well
10:38
<
whitequark >
yorickpeterse: because you might have `while cond do..end`, where `cond` contains `while do..end` as well
10:38
<
whitequark >
zomgwtf
10:38
<
charliesome >
judofyr: not on my machine
10:38
<
charliesome >
whitequark: lol ruby
10:39
<
charliesome >
13337!
10:39
<
yorickpeterse >
whitequark: wat
10:39
<
judofyr >
sometimes it takes some runs
10:39
vlad_starkov has quit [Ping timeout: 252 seconds]
10:39
<
whitequark >
yorickpeterse: ruby needs to distinguish the `do` in `while cond do..end` from any other `do`
10:39
<
charliesome >
judofyr ah yeah it segvs on the second try
10:39
<
yorickpeterse >
whitequark: hmm
10:39
<
whitequark >
of which there are FOUD
10:40
<
whitequark >
kDO, kDO_BLOCK, kDO_LAMBDA and kDO_COND
10:40
<
judofyr >
charliesome: good work on reducing it even more!
10:40
benanne has joined #ruby-lang
10:40
<
charliesome >
cheerz
10:40
<
whitequark >
kDO_FUCK_YOURSELF
10:40
<
yorickpeterse >
well, at least you're not debugging eval'd Javascript that takes 45 seconds to load a widget
10:41
<
yorickpeterse >
and does around 25 XHR requests that are not logged as a result of eval() (it seems)
10:41
<
yorickpeterse >
(if not more)
10:42
<
charliesome >
judofyr: confirmed, constant method name also segvs
10:42
<
charliesome >
i think your theory about more objects is correct
10:44
<
judofyr >
charliesome: it doesn't even need a method body here
10:44
<
judofyr >
it just takes a few run
10:45
<
judofyr >
and by "a few" I mean 10
10:46
sarclops has joined #ruby-lang
10:47
<
charliesome >
judofyr: i had luck making the method name constant
10:48
rwk1 has joined #ruby-lang
10:49
Domon has quit [Remote host closed the connection]
10:49
<
yorickpeterse >
ugh, this code really makes me want to sit in a corner and mumble sad things
10:50
gokul has joined #ruby-lang
10:50
cstrahan has joined #ruby-lang
10:50
<
yorickpeterse >
tl;dr: this person apparently didn't know of apply/call and instead used eval() in combination with setTimeout
10:50
maxmanders has quit [Quit: Computer has gone to sleep.]
10:52
<
judofyr >
charliesome: doing "Hello world"*1000 seems to help for the segv
10:53
soknee has joined #ruby-lang
10:53
rwk1 has quit [Ping timeout: 276 seconds]
10:53
swav has joined #ruby-lang
10:57
tcopp has joined #ruby-lang
11:00
maxmanders has joined #ruby-lang
11:00
concernedcitizen has quit [Remote host closed the connection]
11:01
<
judofyr >
GC is hard
11:01
<
judofyr >
let's use C
11:01
<
charliesome >
gc is ridiculous
11:01
<
charliesome >
it is fucking hard
11:03
hasimo-t has joined #ruby-lang
11:04
Philpax has joined #ruby-lang
11:05
hasimo-t_ has joined #ruby-lang
11:08
emocakes has joined #ruby-lang
11:08
hasimo-t has quit [Ping timeout: 245 seconds]
11:14
tcopp has quit [Ping timeout: 256 seconds]
11:14
barttenbrinke has quit [Remote host closed the connection]
11:17
Qwak has joined #ruby-lang
11:19
dhruvasagar has quit [Ping timeout: 240 seconds]
11:19
<
charliesome >
judofyr: ok this is handy i'll try and dive in here
11:20
GarethAdams has joined #ruby-lang
11:20
swav has quit [Ping timeout: 264 seconds]
11:20
barttenbrinke has joined #ruby-lang
11:21
barttenbrinke has quit [Remote host closed the connection]
11:21
hasimo-t has joined #ruby-lang
11:21
setmeaway2 has joined #ruby-lang
11:21
<
charliesome >
judofyr: interestingly the method def has to be in the loop
11:22
soknee has quit [Quit: Leaving.]
11:23
bart_ has joined #ruby-lang
11:24
hasimo-t_ has quit [Ping timeout: 245 seconds]
11:25
setmeaway has quit [Ping timeout: 245 seconds]
11:25
bart_ has quit [Remote host closed the connection]
11:25
sepp2k has joined #ruby-lang
11:25
<
judofyr >
charliesome: that isn't so weird?
11:26
<
charliesome >
i think theres a gc happening between method(:x) and call maybe
11:26
nkr has joined #ruby-lang
11:27
<
charliesome >
also this doesn't segfault jruby, file a bug
11:27
<
charliesome >
mri is the spec after all
11:28
mechanicles has quit [Remote host closed the connection]
11:30
<
judofyr >
charliesome: it should be able to bisect it now thouhg
11:31
<
charliesome >
bisecting ruby is a pain in the ass
11:31
<
charliesome >
because of the recompile shit
11:31
<
charliesome >
its a long feedback loop
11:31
benlovell has joined #ruby-lang
11:32
<
judofyr >
just use git bisect run and forget about it?
11:32
<
whitequark >
^ that
11:32
<
whitequark >
also ccache
11:32
<
whitequark >
and compile it on tmpfs with clang already
11:32
<
whitequark >
reduces compile time 10-20x
11:32
<
whitequark >
judofyr: um
11:33
<
whitequark >
it preprocesses the file, sha1's it and compiles
11:33
<
whitequark >
yorickpeterse: WTF
11:33
<
whitequark >
the `tern' stackstate is never read in ruby_parser
11:33
<
whitequark >
but is dutifully managed
11:33
<
whitequark >
literally. never. read.
11:34
swav has joined #ruby-lang
11:35
gokul has quit [Quit: Leaving]
11:36
benlovell has quit [Ping timeout: 251 seconds]
11:36
rwk1 has joined #ruby-lang
11:36
gokul has joined #ruby-lang
11:37
<
charliesome >
whitequark: whats the advantage of ccache
11:38
<
whitequark >
charliesome: no need to recompile unchanged (after -E) files
11:38
<
charliesome >
are there many situations where header files or whatever would not change but their mtime would?
11:39
benlovell has joined #ruby-lang
11:41
<
whitequark >
charliesome: `git checkout` ?
11:41
maxmanders has quit [Quit: Computer has gone to sleep.]
11:42
<
charliesome >
fair point lol
11:43
hasimo-t has quit [Remote host closed the connection]
11:44
maxmanders has joined #ruby-lang
11:44
thufir_ has quit [Quit: Leaving.]
11:45
<
yorickpeterse >
whitequark: heh
11:46
gokul has quit [Quit: Leaving]
11:47
<
judofyr >
charliesome: nice
11:47
<
yorickpeterse >
PLEASE SIGN IN WITH GITHUB
11:47
<
yorickpeterse >
I JUST DID
11:47
<
charliesome >
yorickpeterse: travis?
11:48
maxmanders has quit [Client Quit]
11:48
<
yorickpeterse >
oh wait, it's whitequark's private setup
11:48
<
yorickpeterse >
whitequark: " Failed — The Travis build failed (Details)"
11:48
<
yorickpeterse >
LIAR
11:49
<
whitequark >
yorickpeterse: hah
11:49
<
whitequark >
>> def method_missing(*a);p a; end; a?b:c
11:49
<
whitequark >
>> def method_missing(*a);p a; end; a? b:c
11:49
<
whitequark >
>> def method_missing(*a);p a; end; a? b: c
11:49
<
whitequark >
>> def method_missing(*a);p a; end; a? b : c
11:50
<
eval-in >
whitequark => /tmp/execpad-cba0b541e9d7/source-cba0b541e9d7:2: syntax error, unexpected ':', expecting keyword_end ... (
http://eval.in/13356)
11:50
<
whitequark >
>> def method_missing(*a);p a; end; a ? b : c
11:50
<
whitequark >
this is so incredibly wrong
11:50
<
whitequark >
>> def method_missing(*a);p a; end; a ?b:c
11:50
<
eval-in >
whitequark => /tmp/execpad-2bb3c881df6c/source-2bb3c881df6c:2: syntax error, unexpected ':', expecting keyword_end ... (
http://eval.in/13358)
11:51
<
yorickpeterse >
ha ha
11:51
* yorickpeterse
cries
11:52
vlad_starkov has joined #ruby-lang
11:54
benanne has quit [Quit: kbai]
11:56
<
whitequark >
also do note
11:57
xxaM has quit [Quit: ZzZzZz]
11:57
<
whitequark >
>> def method_missing(*a);p a; end; a ?bb : c
11:57
<
whitequark >
>> def method_missing(*a);p a; end; a ?b : c
11:57
<
eval-in >
whitequark => /tmp/execpad-65cc10e24747/source-65cc10e24747:2: syntax error, unexpected ':', expecting keyword_end ... (
http://eval.in/13364)
11:57
<
yorickpeterse >
what the fuck
11:59
kgrz has quit [Quit: Computer has gone to sleep.]
11:59
<
whitequark >
yorickpeterse: EXACTLY.
11:59
<
whitequark >
this is a special case.
11:59
<
whitequark >
?b is lexed as tSTRING b
11:59
<
whitequark >
?bb as tEH, tIDENTIFIER bb
11:59
<
Kero >
you have found one of the places where Ruby is white-space sensitive.
12:00
<
charliesome >
one of the countless cases
12:00
<
whitequark >
Kero: thank you I am very well aware of that
12:00
* whitequark
continues to write a lexer.
12:00
<
charliesome >
whitequark: i dare you to parse ruby with nothing but flex
12:00
<
whitequark >
compare with: m() vs m (); foo\nbar vs foo\n.bar, etc.
12:01
<
whitequark >
charliesome: IMPOSIBRU
12:01
<
charliesome >
whitequark: nope
12:01
<
charliesome >
whitequark: flex has a stack :D
12:01
<
yorickpeterse >
you rack disciprine
12:01
<
whitequark >
charliesome: also you just told me to go fuck myself didn't you?
12:01
<
charliesome >
whitequark: correct ;)
12:01
hackeron has joined #ruby-lang
12:01
<
charliesome >
whitequark: also this SHITS me up the wall
12:01
<
charliesome >
foo\n# handy comment\n.bar
12:01
<
charliesome >
syntax error
12:01
threeday1onk has left #ruby-lang [#ruby-lang]
12:02
<
Kero >
whitequark: missed the bit that you try to write a lexer
12:02
<
whitequark >
whoever invented the \n. syntax must be shot
12:02
<
whitequark >
Kero: who said "try"? I
*will* write it.
12:02
<
charliesome >
i like it
12:02
<
whitequark >
charliesome: 1) you cannot copy-paste such code in irb
12:02
jxie has quit [Quit: leaving]
12:02
<
whitequark >
2), of which 1) is a consequence: you cannot reason about a line by only looking at that line
12:03
<
whitequark >
and preceding lines
12:03
<
whitequark >
this is the only place where a next line matters
12:03
threedaymonk has joined #ruby-lang
12:03
<
charliesome >
yes but it is convenient
12:03
<
charliesome >
plus having the . on the next line looks better
12:04
maxmanders has joined #ruby-lang
12:04
<
yorickpeterse >
lol.
12:04
<
yorickpeterse >
fuckyou
12:04
<
yorickpeterse >
that pisses me off just as much as people that do this:
12:04
<
yorickpeterse >
herp
12:04
<
yorickpeterse >
, derp
12:04
<
whitequark >
SEMICOLONLESS JAVASCRIPT
12:04
<
yorickpeterse >
meh, that I don't really care about
12:04
jonahR has joined #ruby-lang
12:05
jonahR has quit [Client Quit]
12:06
r0bglees0n has joined #ruby-lang
12:07
soypirate has quit [Ping timeout: 264 seconds]
12:07
benlovell has quit [Quit: Zzz]
12:09
maxmanders has quit [Ping timeout: 256 seconds]
12:10
hasimo-t has joined #ruby-lang
12:11
<
yorickpeterse >
charliesome: did you report a bug for that segvault from The Twitters?
12:11
<
charliesome >
yeah there's a bug report in redmine
12:11
<
charliesome >
from a few days ago
12:11
<
yorickpeterse >
Hm, haven't seen it yet on the ML
12:11
<
charliesome >
judofyr and i refined it down to that
12:11
<
yorickpeterse >
or did it already exist?
12:11
<
charliesome >
already existed
12:11
<
injekt >
so i hear ruby isn't cool anymore
12:12
<
yorickpeterse >
injekt: dude bro, Go is where it's at
12:12
Mon_Ouie has joined #ruby-lang
12:12
<
yorickpeterse >
judofyr: I know, I was talking about that
12:12
<
injekt >
yorickpeterse: I already write go, I dont think it's supposed to be super cool, maybe node
12:12
<
charliesome >
injekt: that makes me happy
12:12
<
injekt >
charliesome: me too :D
12:12
maxmanders has joined #ruby-lang
12:13
<
charliesome >
yorickpeterse: dude bro wanna crush some code
12:15
<
yorickpeterse >
injekt: node is so last year
12:16
<
yorickpeterse >
charliesome: sure, first need to rage at the gym though
12:16
dhruvasagar has joined #ruby-lang
12:17
madb055 has quit [Ping timeout: 246 seconds]
12:17
<
judofyr >
charliesome: btw, I got a bounty from FB :D
12:18
<
charliesome >
how much? (if you don't mind me asking)
12:18
<
yorickpeterse >
noice
12:18
<
yorickpeterse >
judofyr is a true l33t h4x0r
12:18
<
yorickpeterse >
now you just need to commit to Rails master :>
12:18
* yorickpeterse
runs
12:19
<
yorickpeterse >
haha wtf?
12:19
<
judofyr >
charliesome: the exploit itself was pretty severe (and unique), but they had got quite a few similar reports, so when they looked at my report they've already fixed the exploit
12:20
<
charliesome >
also yeah don't play with xss vulns kiddies
12:20
<
charliesome >
i got my youtube account nuked off the face of the earth
12:20
<
charliesome >
which sucked cos i had some cool videos of some old projects that i've since lost :(
12:20
<
judofyr >
that sucks :(
12:21
<
yorickpeterse >
judofyr is anonymoose
12:21
<
yorickpeterse >
can't touch him
12:21
<
yorickpeterse >
In all seriousness, that's pretty cool though
12:21
<
charliesome >
judofyr: niice
12:21
benlovell has joined #ruby-lang
12:22
<
charliesome >
i miss the good old days of low hanging fruit
12:22
<
judofyr >
charliesome: I didn't find it though. I picked it up from another tweet that used it :P
12:22
<
judofyr >
I just wormified it
12:22
<
charliesome >
i remember discovering the concept of XSS by myself back in 2005 or so
12:22
<
charliesome >
it worked on nearly every site back then
12:24
<
yorickpeterse >
charliesome: so how old were you then, 10? :>
12:24
<
charliesome >
yorickpeterse: mate come on i was 11 ok
12:24
<
yorickpeterse >
charliesome: hahaha
12:25
<
yorickpeterse >
oh how I like teasing people on a Friday
12:25
<
yorickpeterse >
well, every day really
12:26
maxmanders has quit [Ping timeout: 252 seconds]
12:28
<
yorickpeterse >
I remember the first OS X application I p0wn3d/h4x0r3d/cracked
12:28
<
yorickpeterse >
(mind you this was only about 5 years ago)
12:29
<
charliesome >
os x apps are notoriously easy to crack
12:29
<
charliesome >
set the time to 2020
12:29
<
charliesome >
install the 30 day trial
12:29
<
charliesome >
rewind clock
12:29
maxmanders has joined #ruby-lang
12:30
<
rking >
For the low low price of screwing up timestamps everywhere on your system, this software can be yours!
12:30
<
yorickpeterse >
except that doesn't work for all of them
12:30
<
yorickpeterse >
I think it was some mind mapping application
12:30
<
charliesome >
rking: yeah it makes redis flip out
12:32
rwk1 has quit [Remote host closed the connection]
12:32
<
charliesome >
judofyr: stop appearing everywhere in hacker news comments
12:32
Averna has quit [Ping timeout: 256 seconds]
12:34
dhruvasagar has quit [Ping timeout: 276 seconds]
12:37
<
yorickpeterse >
judofyr: during the day he's an ordinary Rubyist, during the night he's a internet celebrity
12:38
<
charliesome >
btw has anyone figured out a way to send compressed data in an http request
12:39
<
yorickpeterse >
eh, gzip?
12:39
<
charliesome >
doesn't work in request unforunately :(
12:40
<
yorickpeterse >
wat
12:40
<
yorickpeterse >
Did you set the headers correctly?
12:40
<
yorickpeterse >
also, what lib are you using?
12:40
<
charliesome >
haven't tried it but i did some research on stack overflows
12:41
madb055 has joined #ruby-lang
12:42
hasimo-t has quit [Remote host closed the connection]
12:42
maxmanders has quit [Quit: Computer has gone to sleep.]
12:44
Mon_Ouie has quit [Ping timeout: 260 seconds]
12:44
mistym has joined #ruby-lang
12:44
mistym has quit [Changing host]
12:44
mistym has joined #ruby-lang
12:45
hasimo-t has joined #ruby-lang
12:46
Averna has joined #ruby-lang
12:49
dhruvasagar has joined #ruby-lang
12:51
soknee has joined #ruby-lang
12:51
mistym has quit [Remote host closed the connection]
12:52
sepp2k has quit [Quit: Leaving.]
12:52
maxmanders has joined #ruby-lang
12:54
sailias has joined #ruby-lang
12:55
carloslopes has joined #ruby-lang
12:56
dustint has joined #ruby-lang
12:57
dRbiG has quit [Remote host closed the connection]
13:01
wallerdev has joined #ruby-lang
13:02
hasimo-t has quit [Remote host closed the connection]
13:02
hasimo-t has joined #ruby-lang
13:02
rwk1 has joined #ruby-lang
13:05
maxmanders has quit [Ping timeout: 264 seconds]
13:05
justinram has joined #ruby-lang
13:06
benlovell has quit [Quit: Zzz]
13:07
maxmanders has joined #ruby-lang
13:07
<
charliesome >
night
13:07
<
yorickpeterse >
taters
13:07
rwk1 has quit [Ping timeout: 240 seconds]
13:07
tbuehlmann has joined #ruby-lang
13:08
mistym has joined #ruby-lang
13:08
mistym has quit [Changing host]
13:08
mistym has joined #ruby-lang
13:09
hasimo-t has quit [Ping timeout: 260 seconds]
13:09
cupakromer has joined #ruby-lang
13:11
lolzie has joined #ruby-lang
13:12
postmodern has quit [Quit: Leaving]
13:13
<
judofyr >
where did I appear now? :S
13:15
theduffman has joined #ruby-lang
13:15
chessguy has joined #ruby-lang
13:15
maxmanders has quit [Quit: Computer has gone to sleep.]
13:16
cjs226 has joined #ruby-lang
13:18
maxmanders has joined #ruby-lang
13:18
<
gnufied >
judofyr is #ruby-lang representative on hackernews
13:18
<
gnufied >
he can't help it.
13:18
<
judofyr >
dude, you're putting a lot of pressure on me now :(
13:19
<
yorickpeterse >
" Minimize the number of paths in the $LOAD_PATH. Ideally there should be one path there, but that might not be practical."
13:19
<
yorickpeterse >
wat
13:19
<
Wardrop >
judofyr: Good work on tracking down that segfault. Nice to see it's now been assigned in redmine. Hopefully we've get a patch release in a week or two.
13:20
<
judofyr >
Wardrop: thanks. yeah, that's an annoying bug
13:20
maxmanders has quit [Client Quit]
13:23
<
Wardrop >
judofyr: Yeah. I encountered the bug only when I pushed up
http://scorchedrb.com for the first time. I thought my new framework had some fundamental issue, like some kind of threading incompatibility. I was pretty disheartened for a while there.
13:23
yfeldblum has quit [Ping timeout: 245 seconds]
13:26
anonymuse has joined #ruby-lang
13:32
hasimo-t has joined #ruby-lang
13:33
hasimo-t_ has joined #ruby-lang
13:35
hasimo-t_ has quit [Read error: Connection reset by peer]
13:35
hasimo-__ has joined #ruby-lang
13:36
hasimo-t has quit [Ping timeout: 245 seconds]
13:37
<
yorickpeterse >
whitequark: what particular version of Ragel were you using for your parser again? Wasn't that 6.something?
13:39
<
yorickpeterse >
Commence the /r/programming circlejerk
13:39
hasimo-__ has quit [Ping timeout: 253 seconds]
13:40
dhruvasagar has quit [Ping timeout: 260 seconds]
13:40
<
yorickpeterse >
I'm amazed nobody mentioned something like "Why not write it in [Go|Haskell|Lisp]"
13:41
arooni-mobile has joined #ruby-lang
13:44
Wardrop has quit [Quit: Wardrop]
13:46
idkazuma has joined #ruby-lang
13:47
mistym has quit [Remote host closed the connection]
13:48
breakingthings has joined #ruby-lang
13:49
arca0 has joined #ruby-lang
13:52
maxmanders has joined #ruby-lang
13:54
simi has quit [Ping timeout: 245 seconds]
13:56
dhruvasagar has joined #ruby-lang
14:00
lolzie has quit [Quit: Page closed]
14:00
yfeldblum has joined #ruby-lang
14:03
maxmanders has quit [Quit: Computer has gone to sleep.]
14:04
madb055 has quit [Quit: Konversation terminated!]
14:04
kgrz has joined #ruby-lang
14:04
madb055 has joined #ruby-lang
14:05
rwk1 has joined #ruby-lang
14:05
hasimo-t has joined #ruby-lang
14:07
mistym has joined #ruby-lang
14:07
mistym has quit [Changing host]
14:07
mistym has joined #ruby-lang
14:07
sepp2k has joined #ruby-lang
14:09
rwk1 has quit [Ping timeout: 264 seconds]
14:12
rippa has quit [Ping timeout: 240 seconds]
14:16
xcombelle has joined #ruby-lang
14:16
dontbecold_ has joined #ruby-lang
14:16
srbaker has joined #ruby-lang
14:17
davidbalber|away is now known as davidbalbert
14:17
vlad_starkov has quit [Remote host closed the connection]
14:18
vlad_starkov has joined #ruby-lang
14:19
sepp2k has quit [Quit: Leaving.]
14:19
hasimo-t has quit [Ping timeout: 258 seconds]
14:19
kurko_ has joined #ruby-lang
14:20
kurko_ has quit [Max SendQ exceeded]
14:21
kurko_ has joined #ruby-lang
14:22
kurko_ has quit [Max SendQ exceeded]
14:22
techlife has quit [Ping timeout: 260 seconds]
14:22
kurko_ has joined #ruby-lang
14:22
vlad_starkov has quit [Ping timeout: 256 seconds]
14:22
kurko_ has quit [Max SendQ exceeded]
14:23
kurko_ has joined #ruby-lang
14:23
kurko_ has quit [Max SendQ exceeded]
14:24
<
manveru >
my firefox is totally busted :(
14:24
kurko_ has joined #ruby-lang
14:25
kurko_ has quit [Max SendQ exceeded]
14:26
Wells has quit [Read error: Connection reset by peer]
14:27
kurko_ has joined #ruby-lang
14:27
kurko_ has quit [Max SendQ exceeded]
14:28
techlife has joined #ruby-lang
14:30
dhruvasagar has quit [Ping timeout: 264 seconds]
14:30
<
dontbecold_ >
Does anyone know how to verify Net::HTTP SSL certificates on Engine Yard?
14:31
<
dontbecold_ >
Engine Yard doesn't seem to have a system-wide CA cert, and VERIFY_PEER is blowing up because of it
14:31
madb055 has quit [Quit: Konversation terminated!]
14:31
madb055 has joined #ruby-lang
14:32
<
manveru >
dontbecold_: upload one?
14:32
<
dontbecold_ >
manveru: to /etc/ssl/certs?
14:33
<
manveru >
you can tell ruby where to check
14:33
<
dontbecold_ >
yea, that's the trouble
14:33
<
dontbecold_ >
ruby isn't checking where I want it to check
14:33
<
manveru >
you use rvm?
14:33
<
dontbecold_ >
so either I have the wrong sort of file :/
14:33
<
dontbecold_ >
no, it works in development
14:33
<
dontbecold_ >
in production
14:33
<
dontbecold_ >
ancient version of gentoo
14:44
methods has joined #ruby-lang
14:44
benlovell has joined #ruby-lang
14:47
emocakes has quit [Quit: emocakes]
14:47
sush24 has joined #ruby-lang
14:47
sepp2k has joined #ruby-lang
14:48
methods has left #ruby-lang [#ruby-lang]
14:50
cmckni3 has quit [Remote host closed the connection]
14:50
cmckni3 has joined #ruby-lang
14:56
outoftime has joined #ruby-lang
15:02
<
whitequark >
I'm considering buying the ISO standard for CHF 238,00
15:02
<
whitequark >
does anyone know if there's a formal grammar there?
15:03
benanne has joined #ruby-lang
15:04
ruskie has quit [Ping timeout: 256 seconds]
15:05
benlovell has quit [Quit: Zzz]
15:05
<
yorickpeterse >
nfi
15:06
rwk1 has joined #ruby-lang
15:06
<
yorickpeterse >
btw, are there any rules preventing people from sharing the ISO?
15:07
workmad3 has joined #ruby-lang
15:09
<
zzak >
inkjet, whaa?
15:09
<
injekt >
zzak: PR, good job you mentioned tests, I wouldn't have found it otherwise :P
15:10
<
apeiros_ >
yorickpeterse: don't get caught, then the rules won't matter
15:10
<
yorickpeterse >
heh well, that's hard when you would buy it and then share it with the world
15:10
<
yorickpeterse >
"FUCK THE ISO" etc
15:11
rwk1 has quit [Ping timeout: 276 seconds]
15:11
brhue has joined #ruby-lang
15:11
fire has joined #ruby-lang
15:12
security has quit [Ping timeout: 276 seconds]
15:13
wmoxam has joined #ruby-lang
15:17
<
zzak >
injekt: haha
15:18
<
zzak >
injekt: i think you should send it
15:18
tomzx_mac has joined #ruby-lang
15:18
<
zzak >
options isnt likely to change very much, and it could make it in the next major release
15:18
<
zzak >
if not 4.1, depending on how eric feels about it
15:19
<
injekt >
zzak: ok I'll send it still, I sent a separate one for tests for current --version too
15:20
rwk1 has joined #ruby-lang
15:21
apeiros_ has quit [Remote host closed the connection]
15:23
madish has joined #ruby-lang
15:24
Mon_Ouie has joined #ruby-lang
15:24
<
zzak >
injekt: i find most of the rdoc tests really nice
15:25
<
injekt >
zzak: yeah they're very good actually
15:26
ruskie has joined #ruby-lang
15:26
<
zzak >
most of rdoc is, i just have a hard time with the parsers, and the kpeg stuff
15:28
<
zzak >
but i fell pretty far short
15:28
<
injekt >
zzak: that would be pretty cool
15:29
glebm has joined #ruby-lang
15:29
<
injekt >
zzak: open a pull req and discuss/ask for help/feedback?
15:30
<
zzak >
i got some feedback from eric a while ago, just havent gotten back to it
15:30
<
zzak >
he said look at generator/json_index
15:30
<
zzak >
for gathering names
15:31
<
injekt >
zzak: I had other failures on that test file btw
15:32
<
injekt >
zzak: options
15:32
<
injekt >
zzak: 1 failure, 3 errors
15:34
<
injekt >
zzak: yeah odd
15:35
<
injekt >
zzak: worked when I manually pushed lib into the load path, it worked before without me having to do that so I assumed it did it for me
15:35
<
zzak >
oh, yah you have to add lib
15:39
cstrahan has quit [Ping timeout: 264 seconds]
15:40
bzalasky has joined #ruby-lang
15:40
gustavnils has joined #ruby-lang
15:40
<
zzak >
sure thats not a bug in Racc?
15:40
breakingthings has quit [Ping timeout: 240 seconds]
15:41
<
whitequark >
zzak: yea
15:41
<
whitequark >
that's a lexer bug
15:41
<
whitequark >
I even know which exact one
15:41
<
zzak >
injekt: sweet!
15:43
<
injekt >
zzak: the test could probably be cleaned up, wasn't sure how to get past the duplication tbh, not much way around it
15:43
gnufied has quit [Quit: Leaving.]
15:44
breakingthings has joined #ruby-lang
15:45
<
zzak >
seems fine to me
15:46
xcombelle has quit [Remote host closed the connection]
15:46
blacktulip has quit [Ping timeout: 252 seconds]
15:46
madb055 has quit [Ping timeout: 272 seconds]
15:48
volov has joined #ruby-lang
15:49
cstrahan has joined #ruby-lang
15:49
<
injekt >
zzak: as per #191, rdoc can already link those no?
15:50
bzalasky has quit [Remote host closed the connection]
15:50
blacktulip has joined #ruby-lang
15:50
TheNotary has joined #ruby-lang
15:51
<
zzak >
the tests passed, but in actual practice it wasnt
15:51
<
zzak >
i cant remember what i was using it for now tho
15:51
shtirlic has quit [Ping timeout: 258 seconds]
15:52
<
zzak >
but define any [] or []= method on an object and try to cross-reference it
15:52
<
zzak >
MyObj#[] or MyObj#[]=
15:53
ilyam has joined #ruby-lang
15:53
hasimo-t has joined #ruby-lang
15:53
<
injekt >
zzak: yeah weird, the reference looks ok in resolve though which is odd
15:54
dhruvasagar has joined #ruby-lang
15:56
bzalasky has joined #ruby-lang
15:56
benanne has quit [Quit: kbai]
15:57
hasimo-t has quit [Ping timeout: 258 seconds]
15:58
soypirate has joined #ruby-lang
15:58
jxie has joined #ruby-lang
15:59
<
zzak >
just need time to follow up with this stuff and always get distracted
16:00
ilyam has quit [Quit: ilyam]
16:00
__butch__ has joined #ruby-lang
16:00
<
injekt >
yeah, things like this usually always take longer than first expected too which doesn't help
16:04
io_syl has joined #ruby-lang
16:05
bzalasky has quit [Remote host closed the connection]
16:06
dhruvasagar has quit [Read error: Connection reset by peer]
16:06
ivanoats has joined #ruby-lang
16:06
ivanoats has quit [Changing host]
16:06
ivanoats has joined #ruby-lang
16:08
sush24 has quit [Quit: This computer has gone to sleep]
16:08
joevandyk_ has joined #ruby-lang
16:08
justinram has quit [Remote host closed the connection]
16:09
jxie has quit [Ping timeout: 276 seconds]
16:09
dhruvasagar has joined #ruby-lang
16:10
jxie has joined #ruby-lang
16:10
Mon_Ouie has quit [Ping timeout: 256 seconds]
16:12
gnufied has joined #ruby-lang
16:13
nXqd has quit [Ping timeout: 264 seconds]
16:13
kurko_ has joined #ruby-lang
16:13
kurko_ has quit [Max SendQ exceeded]
16:15
bart_ has joined #ruby-lang
16:16
nXqd has joined #ruby-lang
16:16
justinram has joined #ruby-lang
16:17
mbull9 has joined #ruby-lang
16:19
kurko_ has joined #ruby-lang
16:27
io_syl has quit [Ping timeout: 248 seconds]
16:29
srbaker has quit [Quit: Computer has gone to sleep.]
16:30
io_syl has joined #ruby-lang
16:30
tenderlove has quit [Remote host closed the connection]
16:30
tenderlove has joined #ruby-lang
16:32
apeiros_ has joined #ruby-lang
16:33
kurko_ has quit [Ping timeout: 256 seconds]
16:33
dankest has joined #ruby-lang
16:35
cstrahan has quit [Ping timeout: 256 seconds]
16:36
mmaatthheeww has joined #ruby-lang
16:36
apeiros_ has quit [Ping timeout: 264 seconds]
16:38
apeiros_ has joined #ruby-lang
16:38
mmaatthheeww has quit [Client Quit]
16:39
jxie has quit [Ping timeout: 256 seconds]
16:40
dhruvasagar has quit [Read error: Connection reset by peer]
16:40
jxie has joined #ruby-lang
16:41
dontbecold_ has quit [Quit: dontbecold_]
16:42
dhruvasagar has joined #ruby-lang
16:42
Philpax has quit [Read error: Connection reset by peer]
16:42
volty has joined #ruby-lang
16:43
gregmoreno has joined #ruby-lang
16:44
justinram has quit [Remote host closed the connection]
16:45
cstrahan has joined #ruby-lang
16:45
mmaatthheeww has joined #ruby-lang
16:47
lacrosse has joined #ruby-lang
16:48
srbaker has joined #ruby-lang
16:48
snarfmason has joined #ruby-lang
16:48
brianpWins has joined #ruby-lang
16:54
<
manveru >
where did you find that?
16:57
bluepojo has joined #ruby-lang
16:57
nXqd has quit [Ping timeout: 260 seconds]
16:58
bart_ has quit [Remote host closed the connection]
16:59
workmad3 has quit [Ping timeout: 256 seconds]
16:59
benlovell has joined #ruby-lang
17:00
<
whitequark >
dankest: cool
17:00
<
whitequark >
that looks like a misparsed format
17:00
mmaatthheeww has left #ruby-lang [#ruby-lang]
17:00
GarethAdams has quit [Quit: Leaving...]
17:01
benlovell has quit [Client Quit]
17:03
chrismar035 has joined #ruby-lang
17:04
benanne has joined #ruby-lang
17:06
gnufied has quit [Quit: Leaving.]
17:10
nignaztic has quit [Read error: No route to host]
17:11
sepp2k1 has joined #ruby-lang
17:12
<
dankest >
So it turns out it's a serialized PHP hash
17:12
<
dankest >
But I can't get any of the gems that unserialize PHP hashes to do anything
17:12
<
dankest >
Weird looking, right?
17:13
sepp2k has quit [Ping timeout: 272 seconds]
17:14
glebm has quit [Quit: Computer has gone to sleep.]
17:15
breakingthings has quit []
17:16
holgerno has joined #ruby-lang
17:17
breakingthings has joined #ruby-lang
17:17
stef_204 has quit [Quit: quitting]
17:19
workmad3 has joined #ruby-lang
17:20
cupakromer has left #ruby-lang [#ruby-lang]
17:27
tylersmith has joined #ruby-lang
17:28
DEac- has quit [Ping timeout: 245 seconds]
17:29
workmad3 has quit [Ping timeout: 256 seconds]
17:30
DEac- has joined #ruby-lang
17:30
fragamus has joined #ruby-lang
17:30
Mon_Ouie has joined #ruby-lang
17:30
carloslopes has quit [Remote host closed the connection]
17:32
tylersmith has quit [Read error: Connection reset by peer]
17:32
tylersmith_ has joined #ruby-lang
17:32
dr_bob has left #ruby-lang [#ruby-lang]
17:36
chrismar035 has quit [Quit: chrismar035]
17:36
skade has quit [Read error: Operation timed out]
17:36
judofyr has quit [Remote host closed the connection]
17:40
ivanoats has quit [Remote host closed the connection]
17:41
tbuehlmann has quit [Remote host closed the connection]
17:44
ilyam has joined #ruby-lang
17:45
shirokuro11 has joined #ruby-lang
17:46
dagobah has quit [Remote host closed the connection]
17:46
justinram has joined #ruby-lang
17:47
dhruvasagar has quit [Read error: Connection reset by peer]
17:48
mixandgo has joined #ruby-lang
17:51
breakingthings has quit []
17:52
jaska_ has joined #ruby-lang
17:54
jaska_ has left #ruby-lang [#ruby-lang]
17:55
jaska has joined #ruby-lang
17:55
carloslopes has joined #ruby-lang
17:59
chrismar035 has joined #ruby-lang
17:59
xcombelle has joined #ruby-lang
18:03
<
darix >
dankest: maybe ask the php folks to use something portable?
18:06
<
darix >
xml if it has to be
18:09
bart_ has joined #ruby-lang
18:10
ryanf has quit [Quit: leaving]
18:10
bart_ has quit [Read error: Connection reset by peer]
18:11
bart_ has joined #ruby-lang
18:12
volty has quit [Quit: Konversation terminated!]
18:12
shirokuro11 has quit [Remote host closed the connection]
18:13
mrsolo has joined #ruby-lang
18:14
havenwood has joined #ruby-lang
18:14
idkazuma has quit [Remote host closed the connection]
18:16
glebm has joined #ruby-lang
18:17
TheNotary has quit [Quit: Leaving]
18:21
lolzie has joined #ruby-lang
18:22
<
yorickpeterse >
dankest: yeah that's PHP's format
18:22
<
yorickpeterse >
however, it's PHP's format written as a Ruby Hash
18:23
<
yorickpeterse >
(it's a retarded serialization format, go figure why it's in PHP)
18:24
jonahR has joined #ruby-lang
18:26
Crayanne has joined #ruby-lang
18:29
toretore has quit [Read error: Connection reset by peer]
18:29
toretore has joined #ruby-lang
18:30
snarfmason has joined #ruby-lang
18:31
cstrahan has quit [Quit: leaving]
18:32
torrieri has joined #ruby-lang
18:33
<
soahccc >
I get a #<Net::HTTPFound 302 Moved Temporarily readbody=true> but how do I get the redirect url? I almost only found "use httparty" :/ And "#{caller(1)[0]}: warning: HTTPResponse#read_header is obsolete"
18:34
sarclops has quit [Quit: sarclops]
18:34
davidbalbert is now known as davidbalber|away
18:35
notwen has joined #ruby-lang
18:37
<
injekt >
soahccc: check the Location header
18:37
<
injekt >
soahccc: response['Location']
18:38
skade has joined #ruby-lang
18:39
lacrosse has quit [Quit: non]
18:40
<
soahccc >
injekt: Thanks! I'm blind or the [] accessor is barely documented
18:40
cored has quit [Ping timeout: 256 seconds]
18:42
Crayanne has quit []
18:42
glebm has quit [Quit: Computer has gone to sleep.]
18:42
cored has joined #ruby-lang
18:43
maxmanders has joined #ruby-lang
18:43
<
injekt >
HTTPHeader is mixed into HTTPResponse
18:44
kurko_ has joined #ruby-lang
18:44
<
soahccc >
Ahh :) I see, that's helpful
18:46
maxmanders has quit [Client Quit]
18:47
breakingthings has joined #ruby-lang
18:48
swav has quit [Remote host closed the connection]
18:50
ivanoats has joined #ruby-lang
18:55
sarclops has joined #ruby-lang
18:55
skade has quit [Quit: Computer has gone to sleep.]
18:56
beiter has quit [Quit: beiter]
19:01
holgerno has quit [Quit: Leaving...]
19:01
macmartine has joined #ruby-lang
19:03
shabari has joined #ruby-lang
19:05
chessguy has quit [Read error: Connection reset by peer]
19:05
pepper_chico has joined #ruby-lang
19:06
pepper_chico has quit [Max SendQ exceeded]
19:06
chessguy has joined #ruby-lang
19:06
shabari has left #ruby-lang [#ruby-lang]
19:07
pepper_chico has joined #ruby-lang
19:07
pepper_chico has quit [Max SendQ exceeded]
19:07
pepper_chico has joined #ruby-lang
19:08
pepper_chico has quit [Max SendQ exceeded]
19:08
pepper_chico has joined #ruby-lang
19:08
pepper_chico has quit [Max SendQ exceeded]
19:09
shabari has joined #ruby-lang
19:09
pepper_chico has joined #ruby-lang
19:09
pepper_chico has quit [Max SendQ exceeded]
19:10
pepper_chico has joined #ruby-lang
19:10
pepper_chico has quit [Max SendQ exceeded]
19:11
pepper_chico has joined #ruby-lang
19:11
pepper_chico has quit [Max SendQ exceeded]
19:12
pepper_chico has joined #ruby-lang
19:12
pepper_chico has quit [Max SendQ exceeded]
19:12
fragamus has quit [Quit: Computer has gone to sleep.]
19:13
shabari has left #ruby-lang [#ruby-lang]
19:13
pepper_chico has joined #ruby-lang
19:13
pepper_chico has quit [Max SendQ exceeded]
19:14
macmartine has quit [Quit: Computer has gone to sleep.]
19:14
pepper_chico has joined #ruby-lang
19:14
pepper_chico has quit [Max SendQ exceeded]
19:15
lolzie has quit [Quit: Page closed]
19:15
pepper_chico has joined #ruby-lang
19:15
pepper_chico has quit [Max SendQ exceeded]
19:16
mjtko_ has joined #ruby-lang
19:16
<
mjtko_ >
evening folks
19:16
tenderlove has quit [Remote host closed the connection]
19:16
pepper_chico has joined #ruby-lang
19:16
<
mjtko_ >
could anybody here please give me a second opinion as to whether this should be considered a ruby 2.0 bug please? (gist incoming)
19:16
pepper_chico has quit [Max SendQ exceeded]
19:17
tenderlove has joined #ruby-lang
19:18
pepper_chico has joined #ruby-lang
19:18
torrieri has quit [Quit: Leaving...]
19:18
pepper_chico has quit [Max SendQ exceeded]
19:18
kurko_ has quit [Quit: Computer has gone to sleep.]
19:19
davidbalber|away is now known as davidbalbert
19:19
pepper_chico has joined #ruby-lang
19:19
pepper_chico has quit [Max SendQ exceeded]
19:19
<
mjtko_ >
to me, that looks like a bug, but i'd like a second or third opinion before I open it as such
19:20
pepper_chico has joined #ruby-lang
19:20
pepper_chico has quit [Max SendQ exceeded]
19:21
pepper_chico has joined #ruby-lang
19:21
pepper_chico has quit [Max SendQ exceeded]
19:21
tenderlove has quit [Ping timeout: 246 seconds]
19:22
ryanf has joined #ruby-lang
19:22
pepper_chico has joined #ruby-lang
19:22
pepper_chico has quit [Max SendQ exceeded]
19:22
wyhaines has joined #ruby-lang
19:23
pepper_chico has joined #ruby-lang
19:23
pepper_chico has quit [Max SendQ exceeded]
19:23
pepper_chico has joined #ruby-lang
19:23
pepper_chico has quit [Max SendQ exceeded]
19:23
srbaker has quit [Quit: Computer has gone to sleep.]
19:24
snarfmason has quit [Quit: Computer has gone to sleep.]
19:24
pepper_chico has joined #ruby-lang
19:24
pepper_chico has quit [Max SendQ exceeded]
19:25
pepper_chico has joined #ruby-lang
19:25
pepper_chico has quit [Max SendQ exceeded]
19:26
pepper_chico has joined #ruby-lang
19:26
pepper_chico has quit [Max SendQ exceeded]
19:27
torrieri has joined #ruby-lang
19:27
pepper_chico has joined #ruby-lang
19:27
pepper_chico has quit [Max SendQ exceeded]
19:28
pepper_chico has joined #ruby-lang
19:28
pepper_chico has quit [Max SendQ exceeded]
19:28
sarclops has quit [Quit: sarclops]
19:28
maxmanders has joined #ruby-lang
19:28
pepper_chico has joined #ruby-lang
19:29
pepper_chico has quit [Max SendQ exceeded]
19:29
pepper_chico has joined #ruby-lang
19:29
pepper_chico has quit [Max SendQ exceeded]
19:30
maxmanders has quit [Client Quit]
19:30
pepper_chico has joined #ruby-lang
19:30
pepper_chico has quit [Max SendQ exceeded]
19:31
pepper_chico has joined #ruby-lang
19:31
pepper_chico has quit [Max SendQ exceeded]
19:31
brahmana has joined #ruby-lang
19:32
<
brahmana >
Can I access a constant declared in a class from irb?
19:32
pepper_chico has joined #ruby-lang
19:32
pepper_chico has quit [Max SendQ exceeded]
19:33
holgerno has joined #ruby-lang
19:33
holgerno has quit [Changing host]
19:33
holgerno has joined #ruby-lang
19:33
<
zzak >
brahmana: try it
19:33
pepper_chico has joined #ruby-lang
19:33
<
brahmana >
The constant is a regex defined by that class. I want to print that regex in regex.
19:33
pepper_chico has quit [Max SendQ exceeded]
19:34
soypirate has quit [Remote host closed the connection]
19:34
<
brahmana >
zzak: Accessing it like a method (using .) did not work
19:34
pepper_chico has joined #ruby-lang
19:34
pepper_chico has quit [Max SendQ exceeded]
19:34
<
brahmana >
I did not find any suitable method (like instance_variable_get) to get a constant
19:35
<
brahmana >
class_variable_get(:URI) did not work (URI is the name of the constant)
19:35
<
zzak >
how did you define the constant?
19:35
pepper_chico has joined #ruby-lang
19:35
pepper_chico has quit [Max SendQ exceeded]
19:35
<
brahmana >
URI = /#{SCHEME}(#{USER}:#{PASS}@)?#{NODES}#{DATABASE}/
19:36
pepper_chico has joined #ruby-lang
19:36
<
brahmana >
where each of those words in capitals were defined just prior to this line
19:36
pepper_chico has quit [Max SendQ exceeded]
19:36
<
brahmana >
Btw, this code is in the Mongoid gem
19:36
<
zzak >
can you link to the code?
19:36
<
brahmana >
Just a sec
19:37
holgerno has quit [Read error: Connection reset by peer]
19:37
pepper_chico has joined #ruby-lang
19:37
pepper_chico has quit [Max SendQ exceeded]
19:38
pepper_chico has joined #ruby-lang
19:38
pepper_chico has quit [Max SendQ exceeded]
19:38
<
zzak >
where are you using it?
19:38
<
brahmana >
The constant URI?
19:39
pepper_chico has joined #ruby-lang
19:39
pepper_chico has quit [Max SendQ exceeded]
19:39
<
brahmana >
Line number 49 in the same file. But what I want is to print that URI in my irb (where this gem is loaded)
19:40
pepper_chico has joined #ruby-lang
19:40
pepper_chico has quit [Max SendQ exceeded]
19:40
<
zzak >
Mongoid::Sessions::MongoidUri::URI
19:40
cored has quit [Ping timeout: 258 seconds]
19:41
pepper_chico has joined #ruby-lang
19:41
pepper_chico has quit [Max SendQ exceeded]
19:41
<
brahmana >
Tried that already : NameError: private constant Mongoid::Sessions::MongoUri::URI referenced
19:42
pepper_chico has joined #ruby-lang
19:42
kurko_ has joined #ruby-lang
19:42
kurko_ has quit [Max SendQ exceeded]
19:42
pepper_chico has quit [Max SendQ exceeded]
19:42
kurko_ has joined #ruby-lang
19:42
kurko_ has quit [Max SendQ exceeded]
19:43
pepper_chico has joined #ruby-lang
19:43
pepper_chico has quit [Max SendQ exceeded]
19:43
<
brahmana >
I see a private_constant method on the class but Mongoid::Sessions::MongoUri.private_constant(:URI) just returns Mongoid::Sessions::MongoUri
19:43
kurko_ has joined #ruby-lang
19:43
pepper_chico has joined #ruby-lang
19:43
pepper_chico has quit [Max SendQ exceeded]
19:44
pepper_chico has joined #ruby-lang
19:44
pepper_chico has quit [Max SendQ exceeded]
19:45
pepper_chico has joined #ruby-lang
19:45
<
zzak >
seems to work for me
19:45
pepper_chico has quit [Max SendQ exceeded]
19:45
<
brahmana >
The same gem or another sample code that you wrote up?
19:46
pepper_chico has joined #ruby-lang
19:46
pepper_chico has quit [Max SendQ exceeded]
19:46
<
zzak >
what version of ruby?
19:46
pepper_chico has joined #ruby-lang
19:47
pepper_chico has quit [Max SendQ exceeded]
19:47
pepper_chico has joined #ruby-lang
19:47
<
zzak >
works in irb, not on eval
19:48
pepper_chico has quit [Max SendQ exceeded]
19:48
pepper_chico has joined #ruby-lang
19:49
pepper_chico has quit [Max SendQ exceeded]
19:49
pepper_chico has joined #ruby-lang
19:49
pepper_chico has quit [Max SendQ exceeded]
19:49
<
brahmana >
Well, for now I will just redefine it in irb
19:50
<
zzak >
not sure why tho i dont have time to investigate now
19:50
srbaker has joined #ruby-lang
19:50
pepper_chico has joined #ruby-lang
19:50
pepper_chico has quit [Max SendQ exceeded]
19:51
pepper_chico has joined #ruby-lang
19:51
pepper_chico has quit [Max SendQ exceeded]
19:52
<
brahmana >
zzak: Np. I will investigate it later. Thank you for you help.
19:52
pepper_chico has joined #ruby-lang
19:53
cored has joined #ruby-lang
19:53
cored has joined #ruby-lang
19:53
cored has quit [Changing host]
19:54
Ridders24 has joined #ruby-lang
19:55
thufir_ has joined #ruby-lang
19:56
havenwood has quit [Remote host closed the connection]
19:57
joevandyk_ has quit [Quit: joevandyk_]
19:59
ivanoats has quit [Remote host closed the connection]
20:02
skade has joined #ruby-lang
20:05
mjolk has joined #ruby-lang
20:05
kurko_ has quit [Quit: Computer has gone to sleep.]
20:06
mjolk is now known as Guest8070
20:07
wmoxam has quit [Quit: leaving]
20:08
skade has quit [Remote host closed the connection]
20:11
s0ber_ has joined #ruby-lang
20:12
Guest8070 has quit [Quit: Leaving]
20:13
skade has joined #ruby-lang
20:14
s0ber has quit [Ping timeout: 264 seconds]
20:14
s0ber_ is now known as s0ber
20:15
brahmana has quit [Ping timeout: 264 seconds]
20:15
postmodern has joined #ruby-lang
20:22
MaddinXx_ has joined #ruby-lang
20:23
dankest has quit [Ping timeout: 245 seconds]
20:25
havenwood has joined #ruby-lang
20:27
mjtko_ has left #ruby-lang [#ruby-lang]
20:27
wmoxam has joined #ruby-lang
20:27
tenderlove has joined #ruby-lang
20:30
glebm has joined #ruby-lang
20:31
torrieri has quit [Quit: Leaving...]
20:32
jacktrick has joined #ruby-lang
20:33
tenderlove has quit [Ping timeout: 272 seconds]
20:33
skade has quit [Quit: Computer has gone to sleep.]
20:36
xcombelle has quit [Remote host closed the connection]
20:36
chrismar035 has quit [Quit: chrismar035]
20:37
chrismar035 has joined #ruby-lang
20:39
maxmanders has joined #ruby-lang
20:41
torrieri has joined #ruby-lang
20:42
maxmanders has quit [Client Quit]
20:42
chrismar035 has quit [Quit: chrismar035]
20:43
carloslopes has quit [Read error: Connection reset by peer]
20:43
carloslopes has joined #ruby-lang
20:45
tenderlove has joined #ruby-lang
20:46
havenwood has quit [Remote host closed the connection]
20:47
bin7me has joined #ruby-lang
20:47
havenwood has joined #ruby-lang
20:48
skade has joined #ruby-lang
20:50
glebm has quit [Quit: Computer has gone to sleep.]
20:52
havenwood has quit [Ping timeout: 256 seconds]
20:54
skade has quit [Quit: Computer has gone to sleep.]
20:55
mrsolo has quit [Quit: This computer has gone to sleep]
20:55
AndChat| has joined #ruby-lang
20:57
mrsolo has joined #ruby-lang
20:59
Banistergalaxy has quit [Ping timeout: 256 seconds]
21:00
agarie has joined #ruby-lang
21:01
sailias has quit [Ping timeout: 245 seconds]
21:01
skade has joined #ruby-lang
21:02
shajith has quit [Ping timeout: 276 seconds]
21:03
havenwood has joined #ruby-lang
21:03
skade has quit [Client Quit]
21:04
tylersmith_ has quit [Quit: tylersmith_]
21:06
srbaker has quit [Quit: Computer has gone to sleep.]
21:07
carloslopes has quit [Remote host closed the connection]
21:08
kgrz has quit [Quit: Computer has gone to sleep.]
21:12
bart_ has quit [Remote host closed the connection]
21:13
dustint has left #ruby-lang [#ruby-lang]
21:15
srbaker has joined #ruby-lang
21:16
jonahR has quit [Quit: jonahR]
21:16
havenwood has quit [Remote host closed the connection]
21:17
swav has joined #ruby-lang
21:17
yfeldblum has quit [Ping timeout: 272 seconds]
21:17
mbull9 has quit [Remote host closed the connection]
21:17
jacky has joined #ruby-lang
21:20
Ridders24 has quit [Quit: Leaving]
21:31
chrismar035 has joined #ruby-lang
21:34
idkazuma has joined #ruby-lang
21:34
chrismar035 has quit [Read error: Connection reset by peer]
21:34
tenderlove has quit [Remote host closed the connection]
21:35
gozes has joined #ruby-lang
21:36
adam12 has quit [Remote host closed the connection]
21:40
<
zenspider >
rawr! flay --liberal is gonna be awesome
21:43
mixandgo has quit [Quit: mixandgo]
21:43
wyhaines has quit [Remote host closed the connection]
21:43
symm- has joined #ruby-lang
21:44
pkrnj has joined #ruby-lang
21:45
soknee has quit [Quit: Leaving.]
21:45
adam12 has joined #ruby-lang
21:47
<
apeiros_ >
zenspider: does that option just make fun of you and then proceed as usual?
21:49
<
zenspider >
funny... I always took you for a conservative
21:50
<
apeiros_ >
politics? I don't think I fit well on a single dimension view of politics.
21:51
cjs226 has joined #ruby-lang
21:51
<
apeiros_ >
windows… 10 years later it still has all those quirks which make it such a pleasing experience…
21:56
Nisstyre-laptop has joined #ruby-lang
21:58
intellitech has quit [Ping timeout: 245 seconds]
22:00
blacktulip has quit [Remote host closed the connection]
22:01
<
ryanf >
whitequark: isn't m {} the same as m() {} ?
22:01
<
ryanf >
hmm, after thinking about it another 10 seconds I realize that is pointless nitpicking
22:01
<
matti >
ryanf: Now.
22:02
<
matti >
ryanf: Time to cleanse the shame.
22:02
<
matti >
ryanf: Seppuku.
22:02
<
ryanf >
not sure that's strictly necessary
22:02
breakingthings has quit []
22:03
<
whitequark >
ryanf: different tokens
22:03
<
ryanf >
whitequark: ah
22:04
<
whitequark >
tLCURLY / tLBRACE / tLBRACE_ARG
22:06
mistym has quit [Remote host closed the connection]
22:07
tylersmith has joined #ruby-lang
22:08
Mon_Ouie has quit [Ping timeout: 245 seconds]
22:08
tylersmith has quit [Client Quit]
22:09
soypirate has joined #ruby-lang
22:11
thufir_ has quit [Quit: Leaving.]
22:13
arooni-mobile has quit [Ping timeout: 264 seconds]
22:14
toretore has quit [Quit: Leaving]
22:14
xxaM has joined #ruby-lang
22:16
robbyoconnor has joined #ruby-lang
22:17
arca0 has quit [Remote host closed the connection]
22:19
alessio_rocco has quit [Remote host closed the connection]
22:19
wmoxam has quit [Ping timeout: 276 seconds]
22:27
davidbalbert is now known as davidbalber|away
22:29
intellitech has joined #ruby-lang
22:30
outoftime has quit [Ping timeout: 252 seconds]
22:33
MaddinXx_ has quit [Remote host closed the connection]
22:36
brianpWins has quit [Quit: brianpWins]
22:37
nazty has joined #ruby-lang
22:37
intellitech has quit [Ping timeout: 252 seconds]
22:39
marr has joined #ruby-lang
22:42
intellitech has joined #ruby-lang
22:44
pepper_chico has quit [Quit: Computer has gone to sleep.]
22:48
yfeldblum has joined #ruby-lang
22:49
davidbalber|away is now known as davidbalbert
22:51
pkrnj has quit [Quit: Computer has gone to sleep.]
22:53
emocakes_ has joined #ruby-lang
22:54
emocakes_ has left #ruby-lang [#ruby-lang]
22:54
emocakes has joined #ruby-lang
22:56
bluepojo has quit [Remote host closed the connection]
22:56
swav has quit [Read error: Connection reset by peer]
22:56
publicvoid_ has quit [Read error: Operation timed out]
22:56
swav has joined #ruby-lang
22:57
ddfreyne has quit [Excess Flood]
22:58
ddfreyne has joined #ruby-lang
23:01
benwoody has quit [Ping timeout: 248 seconds]
23:02
tylersmith has joined #ruby-lang
23:02
madb055 has joined #ruby-lang
23:03
benwoody has joined #ruby-lang
23:04
bluepojo has joined #ruby-lang
23:05
madb055 has quit [Read error: No route to host]
23:05
mistym has joined #ruby-lang
23:05
madb055 has joined #ruby-lang
23:06
Nisstyre-laptop has quit [Ping timeout: 255 seconds]
23:10
publicvoid_ has joined #ruby-lang
23:10
bluepojo_ has joined #ruby-lang
23:11
fire has quit [Ping timeout: 246 seconds]
23:13
bluepojo has quit [Ping timeout: 255 seconds]
23:14
anonymuse has quit [Quit: Leaving...]
23:15
bluepojo_ has quit [Ping timeout: 258 seconds]
23:17
pkrnj has joined #ruby-lang
23:17
gozes has quit [Quit: Lost terminal]
23:17
mrsolo has quit [Quit: Leaving]
23:19
arooni-mobile has joined #ruby-lang
23:20
tenderlove has joined #ruby-lang
23:26
davidbalbert is now known as davidbalber|away
23:28
hasimo-t has joined #ruby-lang
23:28
fire has joined #ruby-lang
23:29
Wardrop has joined #ruby-lang
23:38
jmeeuwen_ has joined #ruby-lang
23:39
sepp2k1 has quit [Remote host closed the connection]
23:41
jmeeuwen has quit [Ping timeout: 260 seconds]
23:41
jmeeuwen_ is now known as jmeeuwen
23:42
thone has joined #ruby-lang
23:45
thone_ has quit [Ping timeout: 264 seconds]
23:46
TheNotary has joined #ruby-lang
23:46
sush24 has joined #ruby-lang
23:46
jmeeuwen_ has joined #ruby-lang
23:49
jmeeuwen has quit [Ping timeout: 248 seconds]
23:49
jmeeuwen_ is now known as jmeeuwen
23:50
madb055 has quit [Read error: Connection reset by peer]
23:53
sush24 has quit [Quit: This computer has gone to sleep]
23:56
Boohbah has joined #ruby-lang
23:57
idkazuma has quit [Remote host closed the connection]
23:58
samuelkadolph has quit [Quit: Quitting]
23:58
idkazuma has joined #ruby-lang
23:59
samuelkadolph has joined #ruby-lang