00:00
gregmoreno has quit [Remote host closed the connection]
00:02
Swimming_Bird has joined #ruby-lang
00:02
Swimming_Bird has quit [Max SendQ exceeded]
00:02
Swimming_Bird has joined #ruby-lang
00:03
enebo has joined #ruby-lang
00:06
krohrbaugh has quit [Quit: Leaving.]
00:08
symm- has quit [Ping timeout: 246 seconds]
00:08
setmeaway has joined #ruby-lang
00:20
dougsko has quit [Ping timeout: 264 seconds]
00:20
mytrile has joined #ruby-lang
00:21
dougsko has joined #ruby-lang
00:24
tylersmith has quit [Quit: tylersmith]
00:25
mytrile has quit [Ping timeout: 260 seconds]
00:25
enebo has quit [Quit: enebo]
00:35
zenspider has quit [Quit: Terminated with extreme prejudice - dircproxy 1.1.0]
00:41
lcdhoffman has joined #ruby-lang
00:47
jhn has joined #ruby-lang
00:50
swav has quit [Ping timeout: 245 seconds]
00:53
Andromed_ has joined #ruby-lang
00:55
Andromeda has quit [Ping timeout: 245 seconds]
00:56
dustint_ has joined #ruby-lang
00:59
glebm has joined #ruby-lang
01:01
lele has quit [Ping timeout: 264 seconds]
01:01
lele|w has quit [Ping timeout: 264 seconds]
01:02
cored has quit [Ping timeout: 245 seconds]
01:04
lele|w has joined #ruby-lang
01:04
shoru has joined #ruby-lang
01:04
lele has joined #ruby-lang
01:04
cored has joined #ruby-lang
01:04
cored has quit [Changing host]
01:04
cored has joined #ruby-lang
01:09
mistym has joined #ruby-lang
01:09
mistym has quit [Changing host]
01:09
mistym has joined #ruby-lang
01:10
setmeaway has quit [Quit: Leaving]
01:10
megha has joined #ruby-lang
01:11
baba has quit [Ping timeout: 248 seconds]
01:15
Nisstyre has quit [Ping timeout: 245 seconds]
01:22
swav has joined #ruby-lang
01:27
anonymuse has joined #ruby-lang
01:29
Nisstyre has joined #ruby-lang
01:31
ivanoats has quit [Remote host closed the connection]
01:31
dhruvasagar has joined #ruby-lang
01:33
Domon has joined #ruby-lang
01:35
brianpWins has quit [Quit: brianpWins]
01:36
tylersmith has joined #ruby-lang
01:39
ritek has joined #ruby-lang
01:40
anonymuse has quit [Quit: Leaving...]
01:48
tylersmith has quit [Quit: tylersmith]
01:48
waxjar has quit [Remote host closed the connection]
01:50
waxjar has joined #ruby-lang
01:55
havenwood has quit [Remote host closed the connection]
02:00
kain has quit [Quit: exit]
02:04
swav_ has joined #ruby-lang
02:05
nathanstitt has joined #ruby-lang
02:07
swav has quit [Ping timeout: 248 seconds]
02:09
yalue has quit [Read error: Connection reset by peer]
02:10
mistym has quit [Remote host closed the connection]
02:12
lsegal has joined #ruby-lang
02:13
ryez_ has joined #ruby-lang
02:14
lcdhoffman has quit [Quit: lcdhoffman]
02:14
lele has quit [Ping timeout: 256 seconds]
02:15
lele has joined #ruby-lang
02:20
quazimodo has quit [Ping timeout: 256 seconds]
02:23
anonymuse has joined #ruby-lang
02:31
dingus_khan has joined #ruby-lang
02:33
Gaelan has quit [Remote host closed the connection]
02:33
Gaelan has joined #ruby-lang
02:36
kurko_ has quit [Quit: Computer has gone to sleep.]
02:36
Tectonic has joined #ruby-lang
02:37
kurko_ has joined #ruby-lang
02:39
kurko_ has quit [Client Quit]
02:42
Gaelan has quit [Remote host closed the connection]
02:42
Gaelan has joined #ruby-lang
02:51
mistym has joined #ruby-lang
02:51
mistym has joined #ruby-lang
02:51
mistym has quit [Changing host]
02:57
Gaelan has quit [Read error: Connection reset by peer]
02:57
Gaelan has joined #ruby-lang
02:57
dhruvasagar has quit [Read error: Operation timed out]
03:04
nXqd has quit [Ping timeout: 256 seconds]
03:04
Gaelan has quit [Remote host closed the connection]
03:04
Gaelan has joined #ruby-lang
03:06
ilyam has quit [Ping timeout: 260 seconds]
03:08
valeri_ufo has quit [Ping timeout: 264 seconds]
03:08
valeri_ufo has joined #ruby-lang
03:09
Gaelan has quit [Ping timeout: 256 seconds]
03:09
vlad_starkov has joined #ruby-lang
03:10
nathanstitt has quit [Quit: Computer has gone to sleep]
03:10
nathanstitt has joined #ruby-lang
03:12
valeri_ufo has quit [Ping timeout: 240 seconds]
03:14
DEac- has quit [Ping timeout: 245 seconds]
03:14
vlad_starkov has quit [Ping timeout: 248 seconds]
03:15
nathanstitt has quit [Ping timeout: 260 seconds]
03:15
valeri_ufo has joined #ruby-lang
03:22
mytrile has joined #ruby-lang
03:22
SubSpawn has quit [Read error: Operation timed out]
03:25
jxie_ has joined #ruby-lang
03:26
mytrile has quit [Ping timeout: 256 seconds]
03:28
agarie_ has joined #ruby-lang
03:28
jxie has quit [Ping timeout: 256 seconds]
03:30
tsion has joined #ruby-lang
03:30
tsion has joined #ruby-lang
03:31
jxie_ has quit [Ping timeout: 260 seconds]
03:31
agarie has quit [Ping timeout: 246 seconds]
03:32
jxie has joined #ruby-lang
03:39
krohrbaugh has joined #ruby-lang
03:51
sush24 has joined #ruby-lang
03:54
robbyoconnor has quit [Ping timeout: 245 seconds]
04:00
DEac- has joined #ruby-lang
04:00
aja has joined #ruby-lang
04:05
TheNotary has quit [Quit: Leaving]
04:05
dustint_ has quit [Ping timeout: 240 seconds]
04:07
sush24 has quit [Quit: This computer has gone to sleep]
04:09
dingus_khan has quit [Ping timeout: 256 seconds]
04:09
dingus_khan has joined #ruby-lang
04:12
kain has joined #ruby-lang
04:14
vlad_starkov has joined #ruby-lang
04:15
vlad_starkov has quit [Remote host closed the connection]
04:15
krohrbaugh1 has joined #ruby-lang
04:18
krohrbaugh has quit [Ping timeout: 248 seconds]
04:22
mytrile has joined #ruby-lang
04:24
Domon has quit [Remote host closed the connection]
04:27
mytrile has quit [Ping timeout: 256 seconds]
04:28
sush24 has joined #ruby-lang
04:32
Burgestrand has quit [Quit: Burgestrand]
04:32
jxie has quit [Ping timeout: 264 seconds]
04:34
jxie has joined #ruby-lang
04:35
wallerdev has quit [Quit: wallerdev]
04:43
cordax has joined #ruby-lang
04:44
dc5ala has joined #ruby-lang
04:44
dc5ala has quit [Remote host closed the connection]
04:49
anonymuse has quit [Quit: Leaving...]
05:02
Domon has joined #ruby-lang
05:02
brianpWins has joined #ruby-lang
05:07
krohrbaugh1 has quit [Quit: Leaving.]
05:08
jxie has quit [Ping timeout: 264 seconds]
05:09
rippa has joined #ruby-lang
05:10
jxie has joined #ruby-lang
05:12
Burgestrand has joined #ruby-lang
05:14
robbyoconnor has joined #ruby-lang
05:15
Gaelan has joined #ruby-lang
05:16
robbyoconnor has quit [Read error: Connection reset by peer]
05:16
thebastl has joined #ruby-lang
05:17
robbyoconnor has joined #ruby-lang
05:20
Gaelan has quit [Ping timeout: 255 seconds]
05:22
sush24 has quit [Quit: This computer has gone to sleep]
05:23
agarie has joined #ruby-lang
05:23
mytrile has joined #ruby-lang
05:27
agarie_ has quit [Ping timeout: 255 seconds]
05:27
mytrile has quit [Ping timeout: 245 seconds]
05:28
tonni has quit [Remote host closed the connection]
05:28
ruby-lang150 has joined #ruby-lang
05:29
intellitech has quit [Quit: SMOKE BOMB!]
05:29
ruby-lang150 has quit [Client Quit]
05:29
mistym has quit [Remote host closed the connection]
05:30
intellitech has joined #ruby-lang
05:37
krohrbaugh has joined #ruby-lang
05:37
tonni has joined #ruby-lang
05:45
ryez_ has joined #ruby-lang
05:45
thebastl_ has joined #ruby-lang
05:46
symm- has joined #ruby-lang
05:46
krohrbaugh has quit [Ping timeout: 240 seconds]
05:48
krohrbaugh has joined #ruby-lang
05:48
thebastl has quit [Ping timeout: 252 seconds]
05:54
Serge has joined #ruby-lang
05:55
dingus_khan has quit [Ping timeout: 260 seconds]
05:58
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
05:58
lun_ has joined #ruby-lang
06:00
robbyoconnor has quit [Remote host closed the connection]
06:01
_whitelogger has joined #ruby-lang
06:01
Serge has quit [Ping timeout: 264 seconds]
06:01
jxie has quit [Ping timeout: 260 seconds]
06:02
thebastl_ has quit [Ping timeout: 264 seconds]
06:03
jxie has joined #ruby-lang
06:03
chendo_ has quit [Ping timeout: 245 seconds]
06:05
bougyman has quit [Ping timeout: 264 seconds]
06:05
chendo_ has joined #ruby-lang
06:06
bougyman has joined #ruby-lang
06:06
bougyman has joined #ruby-lang
06:06
bougyman has quit [Changing host]
06:09
cordax has quit [Quit: Computer has gone to sleep.]
06:10
workmad3 has joined #ruby-lang
06:11
symm- has quit [Ping timeout: 264 seconds]
06:13
jxie has quit [Ping timeout: 240 seconds]
06:15
Serge has joined #ruby-lang
06:15
jxie has joined #ruby-lang
06:15
Gaelan has joined #ruby-lang
06:17
workmad3 has quit [Ping timeout: 256 seconds]
06:18
vlad_starkov has joined #ruby-lang
06:19
_whitelogger has joined #ruby-lang
06:19
_whitelogger has joined #ruby-lang
06:20
Gaelan has quit [Ping timeout: 276 seconds]
06:21
Serge has quit [Ping timeout: 245 seconds]
06:23
Serge has joined #ruby-lang
06:23
vlad_starkov has quit [Ping timeout: 256 seconds]
06:24
thebastl has joined #ruby-lang
06:24
seoaqua has joined #ruby-lang
06:30
mossplix has joined #ruby-lang
06:30
dr_bob has joined #ruby-lang
06:30
mossplix has quit [Read error: Connection reset by peer]
06:31
dingus_khan has joined #ruby-lang
06:32
mytrile has joined #ruby-lang
06:35
Tectonic has quit []
06:37
krohrbaugh has quit [Quit: Leaving.]
06:38
mbj has joined #ruby-lang
06:39
mossplix has joined #ruby-lang
06:40
<
dingus_khan >
so I can't find it anywhere in the array info I've got out, but how does one get ruby to craft an array for me from arguments passed into a method again? here's what I'm trying to do:
http://pastebin.com/ADxjnVDc
06:41
<
shachaf >
def foo(*args)
06:41
<
shachaf >
Or maybe that's not what you're asking.
06:41
<
shachaf >
I'm not sure I follow that paste.
06:41
fsvehla has joined #ruby-lang
06:42
<
dingus_khan >
oh it's a set amount of args that's being passed in, I just want to shove them in an array and check to see if any of them are empty (I'll rewrite the block so that makes sense, just noticed it now)
06:42
<
shachaf >
I'd just use [a,b,c], then.
06:42
<
dingus_khan >
but the array.New(args) is not initializing right
06:42
<
shachaf >
[a,b,c] is a three-element array containing a, b, and c.
06:43
<
dingus_khan >
oh, just with the brackets instead of the parens? I thought you used the parens for elements to be passed into a new array using the .New method..?
06:43
<
shachaf >
There is no .new method here.
06:43
<
shachaf >
Well, nothing explicit.
06:43
<
dingus_khan >
and that will use the arguments (a,b,c) passed in to the method?
06:44
<
shachaf >
Is there anything specific to arguments passed to a method here?
06:44
<
shachaf >
You have three values, you want to make an array that contains them. Or am I confused?
06:45
<
dingus_khan >
they're just integer values for lengths of sides for a theoretical triangle that are being passed into the method as arguments, and I need to return a false or an error or something if any of the three elements is empty or missing, so I figured I'd just stick them all in an array and check to see if any of them are empty. is that just not the right way to do that?
06:46
<
shachaf >
Well, an array with three values will never be empty.
06:46
<
shachaf >
I'm not sure what you're trying to do exactly.
06:47
<
shachaf >
If you def foo(a, b, c), then calling foo with anything other than three arguments is an error.
06:47
<
shachaf >
blah.empty? checks if blah is empty, not anything elementwise.
06:47
<
shachaf >
I suspect there are several levels of confusion going on here.
06:48
tonni has quit [Remote host closed the connection]
06:48
<
dingus_khan >
oh, so it won't pass in the values of the arguments from the method call into the array as values? and right, having it crash by not supplying enough values makes sense, but it's failing the spec I need to meet. and what is blah then? not an array of the argument values passed in?
06:49
<
shachaf >
It seems that you are confused.
06:49
<
dingus_khan >
at my level of comprehension, there are always several levels of confusion, lol
06:49
<
shachaf >
At a high level, what is the problem that you're worrying will happen?
06:49
<
dingus_khan >
apparently so
06:50
<
dingus_khan >
I need to have a method that will tell me if the values passed in through the method call can form a valid triangle. if any of the arguments passed in are empty, it needs to return a clear "false" or error message.
06:50
<
shachaf >
What is an empty value?
06:50
<
shachaf >
What is an empty argument?
06:51
<
dingus_khan >
puts valid_triangle?(1, 2) instead of puts valid_triangle?(1, 2, 3)
06:51
<
shachaf >
You should try it with a simple method and see what happens.
06:51
<
shachaf >
def foo(a, b, c); p a; p b; p c; end
06:51
<
shachaf >
foo(1, 2)
06:52
<
dingus_khan >
having it just fail is apparently not enough for the requirements of this prompt, so a clear "there's nothing here" error is needed, so I believed that meant I needed to check to see if any of the arguments are empty
06:52
<
shachaf >
What do you expect will happen when you run that? Then run it and see what does happen.
06:53
<
shachaf >
I don't follow.
06:53
<
shachaf >
Why isn't it enough to have it just fail?
06:54
<
shachaf >
Who is going to be calling this method?
06:54
<
dingus_khan >
right, it fails in my terminal because it has the wrong number of arguments, and that would be fine for me, but this spec is telling me that I need to have it return some kind of error message if that happens and exit the method then and there
06:54
<
shachaf >
Where's the spec? Can I see it?
06:55
<
dingus_khan >
it's this testing platform that's part of the program I'm a part of. and unfortunately, I believe as part of my nondisclosure agreement, I can't share any part of the proprietary platform with anyone outside the program, sorry :(
06:56
<
dingus_khan >
the written part of the error I'm receiving when I'm trying to submit my code is as follows, though: Error! valid_triangle? returns false if any of the arguments are 0 expected: false value got: true
06:56
<
shachaf >
Then I will say that there's a high probability that either it's a bad spec or you don't understand it.
06:56
<
shachaf >
0 isn't valid_triangle?(1, 2)
06:57
<
shachaf >
0 is valid_triangle?(1, 2, 0)
06:57
<
shachaf >
Read the spec carefully, if you're implementing it exactly.
06:57
<
dingus_khan >
so they're saying it can't be a value of 0 then? it would make sense, but that's not clearly articulated in the spec. granted, not the first time something is awkwardly worded...
06:58
mytrile has quit [Remote host closed the connection]
06:58
<
shachaf >
I haven't read the spec but I suspect it might also have to do with not having a good understanding of the language yet. :-)
06:58
<
shachaf >
Anyway, I can't tell you what it wants.
06:58
mytrile has joined #ruby-lang
06:59
<
dingus_khan >
right, still very new to programming/ruby, but I think I get what you're saying now, the error didn't make much sense to me, but you've helped me see it differently, so thanks for that!
07:03
dhruvasagar has joined #ruby-lang
07:07
krohrbaugh has joined #ruby-lang
07:09
chendo_ has quit [Ping timeout: 252 seconds]
07:09
tonni has joined #ruby-lang
07:12
chendo_ has joined #ruby-lang
07:14
robbyoconnor has joined #ruby-lang
07:16
Gaelan has joined #ruby-lang
07:16
AJA has quit [Quit: Leaving.]
07:17
krohrbaugh has quit [Ping timeout: 252 seconds]
07:18
mossplix has quit [Read error: Connection reset by peer]
07:18
nXqd has joined #ruby-lang
07:19
bzalasky has joined #ruby-lang
07:19
Mon_Ouie has joined #ruby-lang
07:21
Gaelan has quit [Ping timeout: 260 seconds]
07:22
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
07:24
JohnBat26 has joined #ruby-lang
07:25
JohnBat26 has quit [Client Quit]
07:25
JohnBat26 has joined #ruby-lang
07:26
Gaelan has joined #ruby-lang
07:27
mossplix has joined #ruby-lang
07:29
postmodern has quit [Quit: Leaving]
07:30
kke has quit [Remote host closed the connection]
07:30
jmeeuwen has joined #ruby-lang
07:33
Gaelan has quit [Ping timeout: 248 seconds]
07:34
mbj has quit [Quit: leaving]
07:37
apeiros has joined #ruby-lang
07:37
dagobah has joined #ruby-lang
07:37
skade has joined #ruby-lang
07:37
r0bgleeson has quit [Ping timeout: 245 seconds]
07:39
ritek has quit [Quit: leaving]
07:41
dingus_khan has quit [Ping timeout: 260 seconds]
07:42
tsion has quit [Quit: Leaving]
07:44
krohrbaugh has joined #ruby-lang
07:48
maxmanders has joined #ruby-lang
07:48
krohrbaugh has quit [Ping timeout: 256 seconds]
07:49
marr has joined #ruby-lang
07:52
mossplix has quit [Ping timeout: 252 seconds]
07:54
torrieri has joined #ruby-lang
07:56
solars has joined #ruby-lang
08:00
mossplix has joined #ruby-lang
08:00
judofyr has joined #ruby-lang
08:11
brianpWins has quit [Quit: brianpWins]
08:12
gnufied has joined #ruby-lang
08:16
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
08:17
<
judofyr >
whitequark: actually, puts RubyVM::InstructionSequence.new('"a#{"b"}"').disasm
08:17
<
judofyr >
0002 putstring "ab"
08:19
torrieri has quit [Quit: Leaving...]
08:23
jashank has left #ruby-lang [#ruby-lang]
08:23
beiter has quit [Ping timeout: 260 seconds]
08:24
judofyr has quit [Read error: Connection reset by peer]
08:27
Gaelan has joined #ruby-lang
08:27
<
yorickpeterse >
whitequark: old news
08:31
judofyr has joined #ruby-lang
08:31
alessio_rocco has joined #ruby-lang
08:32
lun__ has joined #ruby-lang
08:32
<
whitequark >
judofyr: oh I see
08:33
lun_ has quit [Read error: Connection reset by peer]
08:33
Gaelan has quit [Ping timeout: 245 seconds]
08:38
<
apeiros >
judofyr: nice, so ruby optimizes that
08:39
adambeynon has joined #ruby-lang
08:39
<
judofyr >
whitequark: it might be different in 1.8 though
08:42
skade has quit [Remote host closed the connection]
08:44
mbj has joined #ruby-lang
08:44
kgrz has joined #ruby-lang
08:45
krohrbaugh has joined #ruby-lang
08:45
<
whitequark >
judofyr: btw, I just realized that with llvm, I can do inline assembly like this:
08:46
mossplix has quit [Read error: Connection reset by peer]
08:46
<
whitequark >
foo = 1; bar = 2; `ldi r0, $0x10; add #{bar}, #{foo}, r0`; p bar # => 17
08:47
sush24 has joined #ruby-lang
08:47
<
judofyr >
whitequark: hah, now that's nice
08:48
skade has joined #ruby-lang
08:48
Wardrop has left #ruby-lang [#ruby-lang]
08:49
krohrbaugh has quit [Ping timeout: 252 seconds]
08:53
lun__ has quit [Remote host closed the connection]
08:53
kgrz has quit [Quit: Computer has gone to sleep.]
08:57
noop has quit [Ping timeout: 264 seconds]
09:03
Glass_saga has quit [Remote host closed the connection]
09:03
retro|cz has joined #ruby-lang
09:03
Glass_saga has joined #ruby-lang
09:04
blacktulip has joined #ruby-lang
09:05
noop has joined #ruby-lang
09:05
GarethAdams has joined #ruby-lang
09:07
dmoctezuma has joined #ruby-lang
09:08
dmoctezuma is now known as ritek
09:10
megha has quit [Ping timeout: 248 seconds]
09:11
security has joined #ruby-lang
09:11
security is now known as megha
09:17
sv has joined #ruby-lang
09:17
sv has joined #ruby-lang
09:21
discopig has quit [Ping timeout: 248 seconds]
09:27
earthquake has quit [Quit: earthquake]
09:30
bzalasky has quit [Remote host closed the connection]
09:36
ubersapiens has joined #ruby-lang
09:41
heftig has quit [Ping timeout: 245 seconds]
09:45
krohrbaugh has joined #ruby-lang
09:46
beiter has joined #ruby-lang
09:48
Andromed_ has quit [Remote host closed the connection]
09:54
snafoo has joined #ruby-lang
09:54
snafoo has quit [Changing host]
09:54
snafoo has joined #ruby-lang
09:59
krohrbaugh has quit [Ping timeout: 276 seconds]
10:03
ubersapiens has quit [Ping timeout: 245 seconds]
10:10
<
chris2 >
is Aman Gupta around?
10:15
sush24 has quit [Quit: This computer has gone to sleep]
10:20
<
gnufied >
not sure if he comes online much on #ruby-lang
10:28
Gaelan has joined #ruby-lang
10:34
Gaelan has quit [Ping timeout: 245 seconds]
10:35
Guedes0 has left #ruby-lang [#ruby-lang]
10:39
d3vic3 has joined #ruby-lang
10:42
sv is now known as discopig
10:43
dr_bob has quit [Quit: Leaving.]
10:43
dr_bob has joined #ruby-lang
10:46
<
apeiros >
isn't aman gupta = tmm1?
10:47
tsion has joined #ruby-lang
10:47
<
andrewvos >
who dat
10:47
dr_bob has quit [Client Quit]
10:48
thebastl_ has joined #ruby-lang
10:49
r0bgleeson has joined #ruby-lang
10:50
Domon has quit [Remote host closed the connection]
10:52
heftig has joined #ruby-lang
10:52
thebastl has quit [Ping timeout: 256 seconds]
10:53
<
whitequark >
grr, need cross-binutils
10:55
d3vic3 has quit [Quit: leaving]
10:57
krohrbaugh has joined #ruby-lang
10:58
workmad3 has joined #ruby-lang
11:01
krohrbaugh has quit [Ping timeout: 252 seconds]
11:07
maxmanders has quit [Quit: Computer has gone to sleep.]
11:07
maxmanders has joined #ruby-lang
11:14
<
judofyr >
apieros: yeah, I think so
11:15
idkazuma has joined #ruby-lang
11:21
workmad3 has quit [Ping timeout: 245 seconds]
11:21
vlad_starkov has joined #ruby-lang
11:31
dr_bob has joined #ruby-lang
11:34
nkr has joined #ruby-lang
11:34
quazimodo has joined #ruby-lang
11:37
zomgbie has joined #ruby-lang
11:41
sv has joined #ruby-lang
11:41
sv has joined #ruby-lang
11:42
thebastl_ has quit [Remote host closed the connection]
11:43
discopig has quit [Disconnected by services]
11:43
sv is now known as discopig
11:44
<
yorickpeterse >
>> require 'ripper'; Ripper.sexp('A::B::C')[1]
11:44
<
eval-in >
yorickpeterse => [[:const_path_ref, [:const_path_ref, [:var_ref, [:@const, "A", [1, 0]]], [:@const, "B", [1, 3]]], [:@const, "C", [1, 6]]]] (
http://eval.in/15760)
11:44
<
yorickpeterse >
lol
11:45
seoaqua has quit [Ping timeout: 245 seconds]
11:47
chendo__ has joined #ruby-lang
11:47
chendo_ has quit [Quit: Leaving...]
11:48
gnufied has quit [Quit: Leaving.]
11:49
gnufied has joined #ruby-lang
11:52
dhruvasagar has quit [Ping timeout: 264 seconds]
11:55
sailias has quit [Quit: Leaving.]
11:57
krohrbaugh has joined #ruby-lang
11:57
sush24 has joined #ruby-lang
11:58
srbaker has joined #ruby-lang
12:03
vlad_starkov has quit [Ping timeout: 252 seconds]
12:04
vlad_starkov has joined #ruby-lang
12:04
vlad_starkov has quit [Read error: Connection reset by peer]
12:04
vlad_starkov has joined #ruby-lang
12:05
baz_ has quit [Ping timeout: 245 seconds]
12:05
tsion has quit [Quit: Leaving]
12:07
idkazuma has quit [Remote host closed the connection]
12:08
krohrbaugh has quit [Ping timeout: 252 seconds]
12:12
wallerdev has joined #ruby-lang
12:14
gix has quit [Ping timeout: 245 seconds]
12:16
<
whitequark >
mbj: hi
12:17
baz_ has joined #ruby-lang
12:18
<
mbj >
whitequark: hi
12:20
gix has joined #ruby-lang
12:28
Gaelan has joined #ruby-lang
12:28
smt has joined #ruby-lang
12:28
smt has left #ruby-lang [#ruby-lang]
12:31
marr has quit [Ping timeout: 248 seconds]
12:31
Muz_ is now known as Muz
12:32
<
mbj >
whitequark: Beginning to add the dstry modifications we talked about
12:32
Gaelan has quit [Ping timeout: 256 seconds]
12:34
flujan has joined #ruby-lang
12:34
krohrbaugh has joined #ruby-lang
12:34
<
flujan >
hello guys. I create a multithread TCP/Server to run my rails app. I believe it is leaking somewhere… But I don't know how to debug it.
12:35
<
flujan >
any ideas how can I isolate the objects being initialised?
12:35
fsvehla has quit [Ping timeout: 264 seconds]
12:38
fsvehla has joined #ruby-lang
12:39
chendo__ has quit [Quit: Leaving...]
12:39
chendo_ has joined #ruby-lang
12:39
krohrbaugh has quit [Ping timeout: 252 seconds]
12:43
chendo_ has quit [Ping timeout: 252 seconds]
12:43
mistym has joined #ruby-lang
12:43
mistym has quit [Changing host]
12:43
mistym has joined #ruby-lang
12:45
chendo_ has joined #ruby-lang
12:49
gnufied has quit [Ping timeout: 248 seconds]
12:49
realDAB has joined #ruby-lang
12:50
gnufied has joined #ruby-lang
12:51
mistym has quit [Remote host closed the connection]
12:55
charliesome_ has joined #ruby-lang
12:56
dhruvasagar has joined #ruby-lang
12:57
sailias has joined #ruby-lang
13:03
kurko_ has joined #ruby-lang
13:03
charliesome has quit [Disconnected by services]
13:03
charliesome_ is now known as charliesome
13:04
noop has quit [Read error: Connection reset by peer]
13:05
noop has joined #ruby-lang
13:05
mistym has joined #ruby-lang
13:05
<
whitequark >
mbj: Disregard them please, I found a better way
13:05
<
whitequark >
which does not require adding nodes solely for the source maps
13:06
<
mbj >
whitequark: tell me more!
13:06
jerrytgarcia has joined #ruby-lang
13:09
anonymuse has joined #ruby-lang
13:09
<
whitequark >
mbj: sec
13:10
<
mbj >
whitequark: I try to start unparser in this row: literals, dynamic literals, variables, assignments, op assignments, ...
13:11
<
mbj >
whitequark: So I'm stuck ad dynamic literals ;)
13:11
<
whitequark >
ok. so the problem is that we have a node with an arbitrary Source::Map descendant at hand, and we need to add #{} info for them
13:11
<
whitequark >
there are two solutions
13:11
<
whitequark >
the first is to add #{} info to Source::Map. we won't be doing that :)
13:11
breakingthings has joined #ruby-lang
13:11
<
whitequark >
the second is to create a Source::Map::Interpolation, which has interp_begin and interp_end
13:11
<
whitequark >
and delegates the rest to the original Source::Map of the node
13:12
<
whitequark >
how does that sound to you?
13:13
<
whitequark >
mbj: ^
13:13
<
mbj >
whitequark: got intterrupted
13:15
wmoxam has joined #ruby-lang
13:17
dustint has joined #ruby-lang
13:20
<
mbj >
whitequark: Where the Source::Map::Interpolation instances would be stored
13:20
<
mbj >
whitequark: in the dstr childs?
13:21
<
mbj >
whitequark: so "foo#{:bar}" would look like (dstr (str "foo") (sym :bar)) where (sym :bar) would have an interpolation source map?
13:21
<
whitequark >
mbj: yep!
13:21
<
whitequark >
and the (str "foo"), not so.
13:22
<
whitequark >
(it'll have the begin pointing at " and end pointing at #{)
13:22
<
mbj >
whitequark: Interesting idea, that interpolation source map would wrap the "normal" (sym :bar) source map.
13:22
<
judofyr >
whitequark: how would you delegate the attributes? method_missing?
13:22
<
mbj >
whitequark: You implemented this already?
13:23
<
whitequark >
mbj: not yet
13:24
<
whitequark >
I don't have any source maps tbh, except for terminal tokens
13:24
<
whitequark >
(true, false, etc)
13:24
<
whitequark >
judofyr: method_missing
13:24
<
mbj >
whitequark: ahh okay, I'll just implement unparser with the current api and change it later once situartion improves.
13:24
<
mbj >
whitequark: So the differnce between "foo" "bar" and "foo#{"bar"}" would NOT be visible from the sexp?
13:25
<
whitequark >
mbj: from the sexp, no.
13:25
<
mbj >
whitequark: okay
13:26
tbuehlmann has joined #ruby-lang
13:28
idkazuma has joined #ruby-lang
13:28
TheNotary has joined #ruby-lang
13:29
ikst has joined #ruby-lang
13:30
<
mbj >
whitequark: I'd love to see parser speed when using foundry primitives!
13:30
ikst has left #ruby-lang [#ruby-lang]
13:30
realDAB has quit [Quit: realDAB]
13:31
<
whitequark >
mbj: it seems quite likely at this point that with foundry, parser will use rbx-like ASTs
13:32
<
whitequark >
the problem with sexps is that they use a lot of union types, and that isn't really convenient with the static type system
13:32
<
whitequark >
I'd have to look how it was done in Typed Racket, however
13:34
adam12 has quit [Ping timeout: 240 seconds]
13:34
<
mbj >
whitequark: Interesting. I'll watch it closely
13:35
<
whitequark >
mbj: though the nodes themselves would be closely modelled after the sexp format
13:35
<
whitequark >
so there won't be hundreds of them :)
13:35
krohrbaugh has joined #ruby-lang
13:35
<
mbj >
whitequark: yeah
13:36
<
mbj >
github down...
13:36
<
whitequark >
worksforme
13:37
<
mbj >
This reminds me I need to setup mirros of the repos I need for deployments
13:37
<
mbj >
bundler :git sources leads to bad practises ;)
13:40
<
whitequark >
actually, parser has exactly 84 node types
13:44
krohrbaugh has quit [Ping timeout: 245 seconds]
13:44
dustint has quit [Ping timeout: 256 seconds]
13:44
adam12 has joined #ruby-lang
13:45
<
mbj >
whitequark: Nice! You can elimiate some work through proper class tree
13:48
Gaelan has joined #ruby-lang
13:50
mistym has quit [Remote host closed the connection]
13:52
<
whitequark >
mbj: as in?
13:53
ngw has joined #ruby-lang
13:54
agile has joined #ruby-lang
13:54
nyuszika7h has quit [Remote host closed the connection]
13:55
nyuszika7h has joined #ruby-lang
13:55
jxie has quit [Ping timeout: 256 seconds]
13:56
io_syl has quit [Quit: Computer has gone to sleep.]
13:57
dustint has joined #ruby-lang
13:57
jxie has joined #ruby-lang
13:58
dhruvasagar has quit [Ping timeout: 260 seconds]
14:00
krohrbaugh has joined #ruby-lang
14:00
nathanstitt has joined #ruby-lang
14:03
mistym has joined #ruby-lang
14:03
mistym has quit [Changing host]
14:03
mistym has joined #ruby-lang
14:03
nyuszika7h has quit [Read error: Connection reset by peer]
14:04
nyuszika7h has joined #ruby-lang
14:06
<
mbj >
whitequark: I think some structures of the ast can be inherited, for example you could have a base class for dynamic literals
14:08
<
whitequark >
mbj: hmm, might be
14:13
outoftime has joined #ruby-lang
14:14
kith has quit [Read error: Connection reset by peer]
14:15
kith has joined #ruby-lang
14:23
flujan has quit [Quit: flujan]
14:23
gnufied1 has joined #ruby-lang
14:24
gnufied has quit [Ping timeout: 252 seconds]
14:26
wesside_ has joined #ruby-lang
14:27
tdy_ has quit [Ping timeout: 246 seconds]
14:27
zwevans has joined #ruby-lang
14:29
chrismar035 has joined #ruby-lang
14:31
Gaelan has quit [Remote host closed the connection]
14:31
Gaelan has joined #ruby-lang
14:32
Burgestrand has quit [Quit: Burgestrand]
14:35
Gaelan has quit [Ping timeout: 245 seconds]
14:36
wesside_ has quit [Quit: Ice cream truck!]
14:37
gnufied1 has quit [Quit: Leaving.]
14:37
wesside_ has joined #ruby-lang
14:37
Burgestrand has joined #ruby-lang
14:38
enebo has joined #ruby-lang
14:39
skade has quit [Ping timeout: 255 seconds]
14:40
workmad3 has joined #ruby-lang
14:41
krohrbaugh has quit [Quit: Leaving.]
14:41
tbuehlmann has quit [Remote host closed the connection]
14:41
perry has joined #ruby-lang
14:45
vlad_starkov has quit [Remote host closed the connection]
14:46
dhruvasagar has joined #ruby-lang
14:48
Burgestrand has quit [Quit: Burgestrand]
14:48
DefV_ is now known as DefV
14:49
jperry2_ has joined #ruby-lang
14:50
tdy_ has joined #ruby-lang
14:52
yalue has joined #ruby-lang
14:53
<
mbj >
whitequark: Do you plan to parse the regexp?
14:53
jonahR has joined #ruby-lang
14:53
gnufied has joined #ruby-lang
14:54
<
mbj >
whitequark: I dont think so, providing the regexp source should be enough, just interested
14:54
<
whitequark >
mbj: no, not really
14:55
<
mbj >
whitequark: Will focus on adding more source maps to begin with more solid work un unparser
14:56
<
whitequark >
mbj: very well, thanks!
14:56
apeiros has quit [Remote host closed the connection]
15:02
tonni has quit [Remote host closed the connection]
15:02
workmad3 has quit [Ping timeout: 256 seconds]
15:06
krohrbaugh has joined #ruby-lang
15:11
tn6o has joined #ruby-lang
15:14
realDAB has joined #ruby-lang
15:14
tn6o has quit [Read error: Connection reset by peer]
15:15
realDAB has quit [Client Quit]
15:15
jxie has quit [Read error: Connection reset by peer]
15:16
mwestbom has joined #ruby-lang
15:17
mwestbom has left #ruby-lang [#ruby-lang]
15:17
totallymike has joined #ruby-lang
15:17
dhruvasagar has quit [Ping timeout: 276 seconds]
15:18
jxie has joined #ruby-lang
15:20
ruby-lang899 has joined #ruby-lang
15:20
krohrbaugh has quit [Quit: Leaving.]
15:24
ruby-lang899 has quit [Ping timeout: 245 seconds]
15:26
nXqd has quit [Ping timeout: 252 seconds]
15:28
rippa has joined #ruby-lang
15:29
tonni has joined #ruby-lang
15:30
nXqd has joined #ruby-lang
15:32
rue_XIV has quit [Remote host closed the connection]
15:33
rue has joined #ruby-lang
15:35
nXqd has quit [Ping timeout: 256 seconds]
15:40
ngw has quit [Quit: Bye!]
15:42
nXqd has joined #ruby-lang
15:42
Gaelan has joined #ruby-lang
15:46
Gaelan has quit [Ping timeout: 260 seconds]
15:47
vmoravec has quit [Quit: Leaving]
15:47
ivanoats has joined #ruby-lang
15:47
ivanoats has joined #ruby-lang
15:50
jperry2_ has quit [Quit: jperry2_]
15:52
Gaelan has joined #ruby-lang
15:53
judofyr has quit [Remote host closed the connection]
15:54
outoftime has quit [Quit: Leaving]
15:56
r0bby has joined #ruby-lang
15:57
skade has joined #ruby-lang
15:58
robbyoconnor has quit [Ping timeout: 246 seconds]
15:59
Burgestrand has joined #ruby-lang
15:59
Gaelan has quit [Ping timeout: 276 seconds]
15:59
Burgestrand has quit [Client Quit]
16:00
Burgestrand has joined #ruby-lang
16:02
krohrbaugh has joined #ruby-lang
16:04
krohrbaugh has quit [Client Quit]
16:05
krohrbaugh has joined #ruby-lang
16:06
apeiros has joined #ruby-lang
16:09
carloslopes has joined #ruby-lang
16:09
retro|cz has quit [Ping timeout: 245 seconds]
16:10
glebm has quit [Ping timeout: 252 seconds]
16:11
glebm has joined #ruby-lang
16:11
guns has joined #ruby-lang
16:11
MartynKeigher has quit [Excess Flood]
16:12
MartynKeigher has joined #ruby-lang
16:12
beiter has quit [Quit: beiter]
16:13
dagobah has quit [Remote host closed the connection]
16:15
Andromeda has joined #ruby-lang
16:15
vlad_starkov has joined #ruby-lang
16:15
Burgestrand has quit [Quit: Burgestrand]
16:17
vlad_sta_ has joined #ruby-lang
16:19
dhruvasagar has joined #ruby-lang
16:19
rsl has joined #ruby-lang
16:21
vlad_starkov has quit [Ping timeout: 240 seconds]
16:22
gnufied has quit [Quit: Leaving.]
16:23
gnufied has joined #ruby-lang
16:24
guns has quit [Quit: guns]
16:29
Andromeda has quit [Remote host closed the connection]
16:30
srbaker has quit [Quit: Computer has gone to sleep.]
16:30
gregmoreno has joined #ruby-lang
16:30
gregmoreno has quit [Client Quit]
16:31
srbaker has joined #ruby-lang
16:40
tylersmith has joined #ruby-lang
16:40
GarethAdams has quit [Quit: Leaving...]
16:40
dhruvasagar has quit [Ping timeout: 264 seconds]
16:40
skade has quit [Quit: Computer has gone to sleep.]
16:41
r0bby_ has joined #ruby-lang
16:41
enebo has quit [Quit: enebo]
16:42
r0bby has quit [Ping timeout: 248 seconds]
16:43
sush24 has quit [Quit: This computer has gone to sleep]
16:45
tonni has quit [Ping timeout: 252 seconds]
16:46
Gaelan has joined #ruby-lang
16:46
swav_ has quit [Remote host closed the connection]
16:47
__butch__ has joined #ruby-lang
16:48
kurko_ has quit [Ping timeout: 276 seconds]
16:49
kurko_ has joined #ruby-lang
16:49
kurko_ has quit [Max SendQ exceeded]
16:49
kurko_ has joined #ruby-lang
16:49
kurko_ has quit [Max SendQ exceeded]
16:50
kurko_ has joined #ruby-lang
16:50
kurko_ has quit [Max SendQ exceeded]
16:51
<
mbj >
whitequark: Do tests for alternative literals %r() %q() ... in test_parser.rb ? IMHO yes, but it'll blow up the filesize a lot.
16:51
kurko_ has joined #ruby-lang
16:51
kurko_ has quit [Max SendQ exceeded]
16:51
kurko_ has joined #ruby-lang
16:51
jperry2_ has joined #ruby-lang
16:52
tdy_ has quit [Read error: Connection reset by peer]
16:54
dhruvasagar has joined #ruby-lang
16:54
workmad3 has joined #ruby-lang
16:54
sepp2k has joined #ruby-lang
16:57
__butch__ has quit [Quit: Leaving.]
16:58
brianpWins has joined #ruby-lang
16:59
tonni has joined #ruby-lang
17:01
enebo has joined #ruby-lang
17:02
glebm has quit [Ping timeout: 264 seconds]
17:03
__butch__ has joined #ruby-lang
17:07
Gaelan has quit [Remote host closed the connection]
17:08
Gaelan has joined #ruby-lang
17:08
Gaelan has quit [Read error: Connection reset by peer]
17:09
Gaelan has joined #ruby-lang
17:10
security has joined #ruby-lang
17:11
megha has quit [Ping timeout: 252 seconds]
17:12
Andromeda has joined #ruby-lang
17:13
dr_bob has quit [Quit: Leaving.]
17:14
Gaelan has quit [Ping timeout: 240 seconds]
17:16
security is now known as baba
17:17
gnufied has quit [Quit: Leaving.]
17:17
JohnBat26 has joined #ruby-lang
17:19
<
rue >
mbj: Generate the tests?
17:19
glebm has joined #ruby-lang
17:20
<
mbj >
rue: Not my repo / project, but an option yeah
17:21
sush24 has joined #ruby-lang
17:22
maxmanders has quit [Quit: Computer has gone to sleep.]
17:26
realDAB has joined #ruby-lang
17:27
dhruvasagar has quit [Read error: Connection reset by peer]
17:29
workmad3 has quit [Ping timeout: 276 seconds]
17:31
mytrile_ has joined #ruby-lang
17:31
<
mbj >
whitequark: Will there be any other metadata than source_location ? I cannot imagine one.
17:32
snarfmason has joined #ruby-lang
17:33
soypirate has joined #ruby-lang
17:37
MaddinXx has joined #ruby-lang
17:37
<
mbj >
whitequark: nameing, can we eighter use regex or regexp, we have test_regex but regexp_compose. I'd opt to go regex only.
17:43
KA__ has joined #ruby-lang
17:44
KA__ has joined #ruby-lang
17:45
io_syl has joined #ruby-lang
17:45
alessio_rocco has quit [Remote host closed the connection]
17:49
sush24 has quit [Quit: This computer has gone to sleep]
17:50
mrsolo has joined #ruby-lang
17:50
workmad3 has joined #ruby-lang
17:51
symm- has joined #ruby-lang
17:51
Asher has quit [Quit: Leaving.]
17:53
krohrbaugh has quit [Quit: Leaving.]
17:53
forrest has joined #ruby-lang
17:57
tdy_ has joined #ruby-lang
17:57
swav has joined #ruby-lang
17:57
Luwe has joined #ruby-lang
17:57
mbj has quit [Ping timeout: 245 seconds]
17:57
tdy_ has quit [Client Quit]
17:58
bzalasky_ has joined #ruby-lang
17:58
tdy_ has joined #ruby-lang
18:00
mistym is now known as mistym_lunch
18:02
swav has quit [Ping timeout: 252 seconds]
18:04
soypirate has quit [Quit: Leaving]
18:05
soypirate has joined #ruby-lang
18:06
workmad3 has quit [Ping timeout: 245 seconds]
18:07
krohrbaugh has joined #ruby-lang
18:10
idkazuma has quit [Remote host closed the connection]
18:12
mistym has joined #ruby-lang
18:13
scottschecter has joined #ruby-lang
18:14
mbj has joined #ruby-lang
18:18
bryanl has quit [Quit: bryanl out]
18:19
workmad3 has joined #ruby-lang
18:20
maxmanders has joined #ruby-lang
18:22
bzalasky_ has quit [Remote host closed the connection]
18:23
snarfmason has quit [Quit: Computer has gone to sleep.]
18:23
snarfmason has joined #ruby-lang
18:25
soypirate has quit [Ping timeout: 252 seconds]
18:26
<
whitequark >
rue: no, no generated tests. tests = spec.
18:26
soypirate has joined #ruby-lang
18:26
<
whitequark >
mbj: yeah, tests for %r() etc would be neat
18:27
<
rue >
It’s error-prone to do those all separately
18:27
<
whitequark >
mbj: I'd rather use regexp. regexp/regopt, consistency
18:27
<
whitequark >
rue: um, no, I don't think so
18:27
<
whitequark >
parser already has tons of very similar tests
18:27
<
whitequark >
which you can't handle uniformly
18:27
<
whitequark >
because yacc
18:28
<
whitequark >
so it's a systematic problem which can't be solved just by autogenerating %r() and friends
18:34
dhruvasagar has joined #ruby-lang
18:39
realDAB has quit [Quit: realDAB]
18:40
tonni has quit [Remote host closed the connection]
18:41
bryanl has joined #ruby-lang
18:48
mytrile_ has quit [Remote host closed the connection]
18:48
mistym has quit [Remote host closed the connection]
18:50
mytrile_ has joined #ruby-lang
18:53
Asher has joined #ruby-lang
18:54
dhruvasagar has quit [Ping timeout: 276 seconds]
18:55
dhruvasagar has joined #ruby-lang
18:55
krohrbaugh1 has joined #ruby-lang
18:55
krohrbaugh1 has quit [Client Quit]
18:56
mbj has quit [Read error: Connection reset by peer]
18:56
krohrbaugh has quit [Read error: Operation timed out]
18:57
krohrbaugh has joined #ruby-lang
18:57
realDAB has joined #ruby-lang
18:58
vlad_sta_ has quit [Remote host closed the connection]
19:00
emptyflask has joined #ruby-lang
19:01
emptyflask has quit [Remote host closed the connection]
19:02
emptyflask has joined #ruby-lang
19:02
mistym_lunch is now known as mistym
19:03
ryez_ has quit [Ping timeout: 245 seconds]
19:06
Andromeda has quit [Remote host closed the connection]
19:07
<
rue >
‘It’ can’t be, but those can
19:07
MaddinXx has quit [Remote host closed the connection]
19:08
chrismar035_ has joined #ruby-lang
19:08
chrismar035_ has quit [Client Quit]
19:08
krohrbaugh has quit [Quit: Leaving.]
19:08
mihar has joined #ruby-lang
19:08
chrismar035 has quit [Ping timeout: 264 seconds]
19:09
thebastl has joined #ruby-lang
19:09
Luwe has quit [Quit: leaving]
19:09
mihar has quit [Remote host closed the connection]
19:13
headius has joined #ruby-lang
19:14
spectra has quit [Remote host closed the connection]
19:15
spectra has joined #ruby-lang
19:15
realDAB has quit [Quit: realDAB]
19:18
realDAB has joined #ruby-lang
19:20
lcdhoffman has joined #ruby-lang
19:21
mbj has joined #ruby-lang
19:24
Luwe has joined #ruby-lang
19:24
JoL1hAHN has quit [Quit: WeeChat 0.3.2]
19:25
spectra has quit [Ping timeout: 264 seconds]
19:26
tonni has joined #ruby-lang
19:27
KINGSABRI has joined #ruby-lang
19:28
<
KINGSABRI >
I need to puts the next page after filling a form using mechanize
19:28
<
KINGSABRI >
Mechanize.new { |agent|
19:28
<
KINGSABRI >
agent.follow_meta_refresh = true
19:28
<
KINGSABRI >
agent.follow_redirect = true
19:28
<
KINGSABRI >
agent.page.forms[0]["email"] = email
19:28
<
KINGSABRI >
agent.page.forms[0]["secstr"] = string
19:28
<
KINGSABRI >
agent.page.forms[0].submit
19:29
Nisstyre-laptop has joined #ruby-lang
19:29
<
KINGSABRI >
as you can see I can fill it but after pressing submit the submit sends me to another page which contain a related output of filled form
19:30
<
KINGSABRI >
any idea plz
19:30
ledestin has quit [Quit: ledestin]
19:30
voker57 has quit [Read error: Connection reset by peer]
19:32
voker57 has joined #ruby-lang
19:33
lhz has joined #ruby-lang
19:37
<
apeiros >
I have an idea
19:37
<
apeiros >
my idea is: get a lowercase nick
19:38
<
KINGSABRI >
sorry, I did understand that
19:40
mihar has joined #ruby-lang
19:41
workmad3 has quit [Ping timeout: 256 seconds]
19:44
JoL1hAHN has joined #ruby-lang
19:46
ericmathison has quit [Ping timeout: 252 seconds]
19:48
robonerd has joined #ruby-lang
19:48
<
robonerd >
when you begin a ruby 'session' and create some named things, do they register into some kind of namespace?
19:49
chendo__ has joined #ruby-lang
19:49
<
robonerd >
i just wonder how ruby keeps track of what names are valid in which context
19:49
sush24 has joined #ruby-lang
19:52
dhruvasagar has quit [Ping timeout: 256 seconds]
19:53
ericmathison has joined #ruby-lang
19:53
dhruvasagar has joined #ruby-lang
19:54
<
robonerd >
thanks, i'll read those
19:54
dingus_khan has joined #ruby-lang
19:59
mytrile_ has quit [Remote host closed the connection]
19:59
benanne has joined #ruby-lang
20:00
Burgestrand has joined #ruby-lang
20:00
dingus_khan has quit [Ping timeout: 276 seconds]
20:00
dingus_khan has joined #ruby-lang
20:02
SubSpawn has joined #ruby-lang
20:03
sush24 has quit [Read error: Connection reset by peer]
20:03
realDAB has quit [Quit: realDAB]
20:03
TheNotary has quit [Quit: Leaving]
20:06
krohrbaugh has joined #ruby-lang
20:06
intellitech has left #ruby-lang [#ruby-lang]
20:07
krohrbaugh has quit [Client Quit]
20:08
Luwe has quit [Quit: leaving]
20:10
maxmanders has quit [Quit: Computer has gone to sleep.]
20:11
Asher has quit [Quit: Leaving.]
20:11
nathanstitt has quit [Quit: Computer has gone to sleep]
20:11
krohrbaugh has joined #ruby-lang
20:11
nathanstitt has joined #ruby-lang
20:11
glebm has quit [Ping timeout: 252 seconds]
20:11
guns has joined #ruby-lang
20:15
nathanst1tt has joined #ruby-lang
20:15
glebm has joined #ruby-lang
20:15
nathanstitt has quit [Read error: Connection reset by peer]
20:15
chrismar035 has joined #ruby-lang
20:17
maxmanders has joined #ruby-lang
20:22
pkrnj has joined #ruby-lang
20:22
bzalasky_ has joined #ruby-lang
20:24
Nisstyre-laptop has quit [Ping timeout: 240 seconds]
20:24
rippa has quit [Ping timeout: 240 seconds]
20:26
tonni has quit [Read error: Connection reset by peer]
20:29
ledestin has joined #ruby-lang
20:29
totallymike has quit [Ping timeout: 248 seconds]
20:29
guns has quit [Remote host closed the connection]
20:30
imperator has joined #ruby-lang
20:30
torrieri has joined #ruby-lang
20:35
thone has quit [Read error: Operation timed out]
20:36
guns has joined #ruby-lang
20:36
Nisstyre-laptop has joined #ruby-lang
20:38
jhn has joined #ruby-lang
20:38
thone has joined #ruby-lang
20:43
io_syl has quit [Quit: Computer has gone to sleep.]
20:44
fsvehla has quit [Quit: fsvehla]
20:50
TheMoonMaster has quit [Quit: Later!]
20:52
<
andrewvos >
umm bitcoin is selling for $236 usd :/
20:52
bzalasky_ has quit [Remote host closed the connection]
20:52
<
lianj >
andrewvos: its called buttcoin
20:53
<
ericwood >
now is the time to convert your money to bitcoin
20:53
<
ericwood >
sucks to be you, I'm going to be rich one day
20:53
sailias has quit [Ping timeout: 246 seconds]
20:54
wmoxam has quit [Ping timeout: 264 seconds]
20:55
forrest has quit [Quit: Leaving]
20:57
<
imperator >
i think i got 100 free bitcoins at some point
20:57
<
KINGSABRI >
I don't know if anyone sow my question , :(
20:57
<
zzak >
KINGSABRI: did you ask one?
20:58
<
KINGSABRI >
I'v form to fill , I filled it and when I submit , the submit sends me to another page which has related information of form page
20:58
<
KINGSABRI >
Mechanize.new { |agent|
20:58
<
KINGSABRI >
agent.follow_meta_refresh = true
20:58
<
KINGSABRI >
agent.follow_redirect = true
20:58
<
KINGSABRI >
agent.page.forms[0]["email"] = email
20:58
<
KINGSABRI >
agent.page.forms[0]["secstr"] = string
20:58
<
KINGSABRI >
agent.page.forms[0].submit
20:58
<
KINGSABRI >
zzak, yes and I paste it again
20:58
<
zzak >
whats your question tho
20:59
<
imperator >
KINGSABRI, please paste code longer than 3 lines somewhere else, like pastie.org or a gist
20:59
<
KINGSABRI >
imperator, ok I'll
20:59
* imperator
doesn't know how to access his bitcoins :(
21:00
Asher has joined #ruby-lang
21:01
<
bougyman >
find your wallet.dat
21:01
<
imperator >
bougyman, no idea where that's at
21:02
<
KINGSABRI >
I need to be able to read the next page(after submit)
21:02
<
KINGSABRI >
the next page has related data so it's not just a redirect or a normal new page
21:03
<
lianj >
imperator: better look hard
21:03
<
andrewvos >
imperator: wat really? you are rich!!
21:03
<
imperator >
i think they were giving away 100 coins or something a long time ago
21:04
<
imperator >
well, anyway, looks like i don't have anything in my inbox, so i guess i lost it :(
21:04
<
lianj >
as long as its not only 100 testnet coins i would look really hard to find it
21:04
thebastl has quit [Remote host closed the connection]
21:05
<
KINGSABRI >
any idea, please ?
21:05
pkrnj has quit [Quit: Computer has gone to sleep.]
21:05
TheNotary has joined #ruby-lang
21:05
<
andrewvos >
imperator: thats like 20,000 bucks dude
21:05
headius has quit [Quit: headius]
21:06
<
lianj >
andrewvos: cute how one already ignores the 3.5k rest :P
21:07
maxmanders has quit [Quit: Computer has gone to sleep.]
21:09
<
imperator >
andrewvos, i might be imagining things...but i vaguely recall some sort of offer when it first came out
21:10
<
andrewvos >
lianj: Am I the queen now?
21:10
<
andrewvos >
imperator: Pics or it didn't happen!
21:11
maxmanders has joined #ruby-lang
21:11
stef_204 has joined #ruby-lang
21:12
<
KINGSABRI >
is there and channel for mechanize ?
21:13
<
andrewvos >
Doubt it
21:13
TheMoonMaster has joined #ruby-lang
21:13
<
andrewvos >
KINGSABRI: Throw some code in it and play around?
21:13
<
andrewvos >
By it I mean pry
21:14
<
KINGSABRI >
andrewvos, for now I just hope to fine an answer to my issue
21:15
<
andrewvos >
KINGSABRI: What issue?
21:15
intellitech has joined #ruby-lang
21:15
<
andrewvos >
I am sshing into irssi on a very slow connection, not really able to scroll.
21:15
pkrnj has joined #ruby-lang
21:15
<
KINGSABRI >
I need to be able to read the next page(after submit)
21:15
<
KINGSABRI >
the next page has related data so it's not just a redirect or a normal new page
21:16
<
lianj >
page = form.submit
21:17
dingus_khan has quit [Ping timeout: 245 seconds]
21:18
<
KINGSABRI >
lianj, I saw this page It didnt solve my issue :(
21:18
<
andrewvos >
Gah too slow, but teah what he said
21:18
toretore has quit [Quit: Leaving]
21:19
<
lianj >
KINGSABRI: then i dont understand the issue aswell
21:20
<
andrewvos >
KINGSABRI: What happens when you try that?
21:20
<
imperator >
andrewvos, apparently it didn't happen
21:20
<
KINGSABRI >
lianj, the issue is, I fill the form then I submit it, submit should send me to another page has related information which I cant git it without filling the form
21:21
<
lianj >
re-read the examples again. page = form.submit; the page obj is the next page.
21:23
Nisstyre has quit [Ping timeout: 245 seconds]
21:24
shachaf_ has joined #ruby-lang
21:24
shachaf_ has quit [Changing host]
21:24
shachaf_ has joined #ruby-lang
21:24
hakunin_ has joined #ruby-lang
21:24
shachaf has quit [Disconnected by services]
21:24
shachaf_ is now known as shachaf
21:25
gix has quit [Ping timeout: 264 seconds]
21:26
kalleth_ has joined #ruby-lang
21:26
<
KINGSABRI >
did you check the return ?
21:27
mbj has quit [Quit: leaving]
21:27
benanne has quit [Quit: kbai]
21:27
benanne has joined #ruby-lang
21:28
rebelcan has joined #ruby-lang
21:28
jtoy_ has joined #ruby-lang
21:28
countdig2 has joined #ruby-lang
21:28
matthewd_ has joined #ruby-lang
21:28
workmad3 has joined #ruby-lang
21:28
ironcame1 has joined #ruby-lang
21:28
andrewvo1 has joined #ruby-lang
21:28
crankhar1er has joined #ruby-lang
21:29
Rubennn_ has joined #ruby-lang
21:29
gix has joined #ruby-lang
21:30
havenwood has joined #ruby-lang
21:31
nathanst1tt has quit [Quit: Computer has gone to sleep]
21:31
nathanstitt has joined #ruby-lang
21:32
havenwood has quit [Remote host closed the connection]
21:32
Guu has joined #ruby-lang
21:32
plaisn has joined #ruby-lang
21:32
amateurhuman has joined #ruby-lang
21:33
amateurhuman_ has quit [*.net *.split]
21:33
matthewd has quit [*.net *.split]
21:33
stardiviner has quit [*.net *.split]
21:33
hakunin has quit [*.net *.split]
21:33
plains has quit [*.net *.split]
21:33
FiXato has quit [*.net *.split]
21:33
rking has quit [*.net *.split]
21:33
antbody has quit [*.net *.split]
21:33
yibe_ has quit [*.net *.split]
21:33
ironcamel has quit [*.net *.split]
21:33
crankharder has quit [*.net *.split]
21:33
jtoy has quit [*.net *.split]
21:33
rebelcan_ has quit [*.net *.split]
21:33
countdigi has quit [*.net *.split]
21:33
kalleth has quit [*.net *.split]
21:33
Rubennn has quit [*.net *.split]
21:33
andrewvos has quit [*.net *.split]
21:33
apeiros has quit [Remote host closed the connection]
21:33
lcdhoffman has quit [Quit: lcdhoffman]
21:36
jerry66 has joined #ruby-lang
21:36
nathanstitt has quit [Ping timeout: 256 seconds]
21:36
techlife has quit [Ping timeout: 252 seconds]
21:37
Nisstyre has joined #ruby-lang
21:39
<
KINGSABRI >
no answers
21:40
matled- has joined #ruby-lang
21:40
sailias has joined #ruby-lang
21:40
jerry66 has quit []
21:40
FiXato has joined #ruby-lang
21:40
stardiviner has joined #ruby-lang
21:40
srbaker has quit [Quit: Computer has gone to sleep.]
21:41
rking has joined #ruby-lang
21:42
matled has quit [Remote host closed the connection]
21:42
randym_ has quit [Ping timeout: 240 seconds]
21:42
MrWGW- has quit [Ping timeout: 240 seconds]
21:42
matled- is now known as matled
21:43
brahmana has joined #ruby-lang
21:43
yibe_ has joined #ruby-lang
21:44
KINGSABRI has quit [Quit: Leaving]
21:45
techlife has joined #ruby-lang
21:45
techlife has quit [Max SendQ exceeded]
21:45
havenwood has joined #ruby-lang
21:45
techlife has joined #ruby-lang
21:45
techlife has quit [Max SendQ exceeded]
21:46
codejury has quit [Quit: No Ping reply in 180 seconds.]
21:46
techlife has joined #ruby-lang
21:46
codejury has joined #ruby-lang
21:46
techlife has quit [Max SendQ exceeded]
21:46
imperator has quit [Quit: Leaving]
21:46
techlife has joined #ruby-lang
21:46
techlife has quit [Max SendQ exceeded]
21:47
techlife has joined #ruby-lang
21:47
techlife has quit [Max SendQ exceeded]
21:47
srbaker has joined #ruby-lang
21:48
techlife has joined #ruby-lang
21:48
techlife has quit [Max SendQ exceeded]
21:48
techlife has joined #ruby-lang
21:48
techlife has quit [Max SendQ exceeded]
21:48
chrismar035 has quit [Quit: chrismar035]
21:49
techlife has joined #ruby-lang
21:49
techlife has quit [Max SendQ exceeded]
21:49
techlife has joined #ruby-lang
21:49
techlife has quit [Max SendQ exceeded]
21:50
techlife has joined #ruby-lang
21:50
techlife has quit [Max SendQ exceeded]
21:50
techlife has joined #ruby-lang
21:50
techlife has quit [Max SendQ exceeded]
21:51
techlife has joined #ruby-lang
21:51
techlife has quit [Max SendQ exceeded]
21:52
techlife has joined #ruby-lang
21:52
tonni has joined #ruby-lang
21:54
dingus_khan has joined #ruby-lang
21:54
rue has quit [Read error: Connection reset by peer]
21:55
rue has joined #ruby-lang
21:56
dustint has quit [Ping timeout: 240 seconds]
21:57
maxmanders has quit [Quit: Computer has gone to sleep.]
21:57
mistym has quit [Remote host closed the connection]
21:58
benanne has quit [Quit: kbai]
21:59
io_syl has joined #ruby-lang
22:00
dingus_khan has quit [Remote host closed the connection]
22:01
totallymike has joined #ruby-lang
22:01
totallymike is now known as Guest13295
22:03
breakingthings has quit []
22:05
KINGSABRI has joined #ruby-lang
22:11
workmad3 has quit [Ping timeout: 245 seconds]
22:12
ericmathison has quit [Ping timeout: 245 seconds]
22:13
<
lianj >
KINGSABRI: thats why i said re-read the examples…
22:13
<
KINGSABRI >
It was so easy to tell me
22:14
<
KINGSABRI >
but thank you anyway
22:14
<
KINGSABRI >
lianj, beginner need little bit help and it was one word :)
22:14
enebo has quit [Quit: enebo]
22:15
brahmana has quit [Quit: Page closed]
22:17
mistym has joined #ruby-lang
22:17
mistym has quit [Changing host]
22:17
mistym has joined #ruby-lang
22:19
KINGSABRI has quit [Quit: Leaving]
22:21
havenwood has quit [Remote host closed the connection]
22:24
zastern has joined #ruby-lang
22:28
<
lianj >
set.sort[set.size/2] ?
22:28
rockets has joined #ruby-lang
22:29
idkazuma has joined #ruby-lang
22:30
krohrbaugh has quit [Quit: Leaving.]
22:30
blacktulip has quit [Remote host closed the connection]
22:30
zastern has quit [Ping timeout: 245 seconds]
22:31
tsion has joined #ruby-lang
22:32
Nisstyre-laptop has quit [Quit: Leaving]
22:33
<
Boohbah >
lianj: no
22:33
<
waxjar >
something like this Boohbah: set.sort!; 0.5 * (set[set.size / 2] + set[set.size / 2 + 1])
22:36
<
waxjar >
the whole #each_slice.to_a[0].first thing isn't necessary at all
22:37
<
Boohbah >
you're right, thanks
22:37
<
Boohbah >
(sorted[size/2 - 1] + sorted[size/2]) / 2.0
22:44
swygue has joined #ruby-lang
22:44
apeiros has joined #ruby-lang
22:48
apeiros has quit [Ping timeout: 240 seconds]
22:49
breakingthings has joined #ruby-lang
22:56
symm- has quit [Quit: Leaving...]
22:57
havenwood has joined #ruby-lang
23:00
Bosox20051 has joined #ruby-lang
23:02
scottschecter has quit [Ping timeout: 256 seconds]
23:02
KA__ has quit [Quit: KA__]
23:03
swav has joined #ruby-lang
23:09
havenwood has quit [Remote host closed the connection]
23:09
Nisstyre-laptop has joined #ruby-lang
23:10
nathanstitt has joined #ruby-lang
23:11
wmoxam has joined #ruby-lang
23:12
r0bby_ is now known as robbyoconnor
23:12
dustint has joined #ruby-lang
23:13
sepp2k has quit [Read error: Connection reset by peer]
23:14
woollyams has joined #ruby-lang
23:15
guns has quit [Quit: guns]
23:18
emptyflask has quit [Remote host closed the connection]
23:19
yours_truly has joined #ruby-lang
23:19
firefux has quit [Remote host closed the connection]
23:20
Nisstyre-laptop has quit [Read error: Connection reset by peer]
23:20
yours_truly has quit [Read error: Connection reset by peer]
23:21
Nisstyre-laptop has joined #ruby-lang
23:22
tallship has quit [Remote host closed the connection]
23:22
TheNotary has quit [Quit: Leaving]
23:23
DEac- has quit [Ping timeout: 252 seconds]
23:25
wmoxam has quit [Quit: leaving]
23:25
rockets has quit [Ping timeout: 248 seconds]
23:26
carloslopes has quit [Remote host closed the connection]
23:26
Guest13295 has quit [Ping timeout: 276 seconds]
23:28
Gaelan has joined #ruby-lang
23:29
ivanoats has quit [Remote host closed the connection]
23:30
krohrbaugh has joined #ruby-lang
23:30
torrieri_ has joined #ruby-lang
23:31
torrieri has quit [Read error: Connection reset by peer]
23:35
wesside_ has quit [Quit: Computer has gone to sleep.]
23:35
jperry2_ has quit [Quit: jperry2_]
23:35
nXqd has quit [Ping timeout: 245 seconds]
23:36
Guest13295 has joined #ruby-lang
23:38
randym_ has joined #ruby-lang
23:43
rondale_sc has quit [Quit: leaving]
23:44
lcdhoffman has joined #ruby-lang
23:44
lcdhoffman has quit [Client Quit]
23:44
Andromeda has joined #ruby-lang
23:45
postmodern has joined #ruby-lang
23:45
Andromed_ has joined #ruby-lang
23:46
Andromed_ has quit [Read error: Connection reset by peer]
23:47
__butch__ has quit [Quit: Leaving.]
23:47
znouza has quit [Ping timeout: 240 seconds]
23:47
znouza has joined #ruby-lang
23:49
cored has quit [Ping timeout: 256 seconds]
23:49
Andromed_ has joined #ruby-lang
23:49
Andromeda has quit [Read error: Operation timed out]
23:50
cored has joined #ruby-lang
23:50
cored has joined #ruby-lang
23:50
cored has quit [Changing host]
23:51
Andromeda has joined #ruby-lang
23:53
enebo has joined #ruby-lang
23:53
enebo has quit [Client Quit]
23:54
Andromeda has quit [Remote host closed the connection]
23:55
Andromed_ has quit [Ping timeout: 248 seconds]
23:57
zenspider has joined #ruby-lang