00:01
elphe has quit [Ping timeout: 240 seconds]
00:02
eblip has joined #ruby
00:02
elphe has joined #ruby
00:02
redlegion has quit [Max SendQ exceeded]
00:03
houhoulis has quit []
00:03
redlegion has joined #ruby
00:07
elphe has quit [Ping timeout: 248 seconds]
00:11
apeiros has quit [Ping timeout: 240 seconds]
00:12
elphe has joined #ruby
00:12
redlegion has quit [Max SendQ exceeded]
00:13
redlegion has joined #ruby
00:15
AJA4350 has quit [Remote host closed the connection]
00:17
elphe has quit [Ping timeout: 244 seconds]
00:19
apeiros has joined #ruby
00:20
elphe has joined #ruby
00:22
redlegion has quit [Max SendQ exceeded]
00:23
redlegion has joined #ruby
00:27
voker57_ has quit [Quit: voker57_]
00:29
usrunkwn has joined #ruby
00:29
usrunkwn has left #ruby [#ruby]
00:32
scrptktty has joined #ruby
00:32
redlegion has quit [Max SendQ exceeded]
00:33
redlegion has joined #ruby
00:42
redlegion has quit [Max SendQ exceeded]
00:43
redlegion has joined #ruby
00:46
Caerus has quit [Quit: restart]
00:49
alfiemax has joined #ruby
00:52
quobo has quit [Quit: Connection closed for inactivity]
00:54
vonfry has joined #ruby
00:55
vonfry has quit [Client Quit]
00:58
leitz has quit [Quit: Nappy time]
01:02
redlegion has quit [Max SendQ exceeded]
01:03
redlegion has joined #ruby
01:10
lxsameer has quit [Ping timeout: 268 seconds]
01:12
redlegion has quit [Max SendQ exceeded]
01:13
redlegion has joined #ruby
01:18
yokel has quit [Ping timeout: 240 seconds]
01:20
tdy has quit [Ping timeout: 240 seconds]
01:21
yokel has joined #ruby
01:22
redlegion has quit [Max SendQ exceeded]
01:23
redlegion has joined #ruby
01:32
redlegion has quit [Max SendQ exceeded]
01:33
redlegion has joined #ruby
01:34
tdy has joined #ruby
01:42
redlegion has quit [Max SendQ exceeded]
01:43
redlegion has joined #ruby
01:44
tdy has quit [Ping timeout: 260 seconds]
01:47
tdy has joined #ruby
01:50
akaiiro has joined #ruby
01:51
mochiyoda has left #ruby ["Konversation terminated!"]
01:52
redlegion has quit [Max SendQ exceeded]
01:53
redlegion has joined #ruby
01:54
vonfry has joined #ruby
02:02
redlegion has quit [Max SendQ exceeded]
02:03
redlegion has joined #ruby
02:03
vonfry has quit [Remote host closed the connection]
02:04
vonfry has joined #ruby
02:08
moei has quit [Ping timeout: 260 seconds]
02:12
redlegion has quit [Max SendQ exceeded]
02:13
redlegion has joined #ruby
02:18
dzipc_ has joined #ruby
02:20
<
dzipc_ >
hi ,if $SAFE=3, what "script" code can help to read a file in "eval"?
02:20
<
dzipc_ >
STDOUT.puts Thread.new(script){|s| eval "$SAFE=3;#{s}"}.value
02:22
redlegion has quit [Max SendQ exceeded]
02:23
redlegion has joined #ruby
02:32
Caerus has joined #ruby
02:34
cadillac_ has quit [Ping timeout: 265 seconds]
02:34
cadillac_ has joined #ruby
02:38
akaiiro has quit [Ping timeout: 260 seconds]
02:42
redlegion has quit [Max SendQ exceeded]
02:43
redlegion has joined #ruby
02:52
redlegion has quit [Max SendQ exceeded]
02:53
redlegion has joined #ruby
03:00
cadillac_ has quit [Quit: I quit]
03:00
cadillac_ has joined #ruby
03:02
redlegion has quit [Max SendQ exceeded]
03:03
redlegion has joined #ruby
03:04
bmurt has joined #ruby
03:06
braincrash has quit [Quit: bye bye]
03:11
braincrash has joined #ruby
03:12
redlegion has quit [Max SendQ exceeded]
03:13
redlegion has joined #ruby
03:13
akaiiro has joined #ruby
03:15
za1b1tsu has joined #ruby
03:17
mzo has quit [Ping timeout: 256 seconds]
03:19
akaiiro has quit [Ping timeout: 260 seconds]
03:22
redlegion has quit [Max SendQ exceeded]
03:23
redlegion has joined #ruby
03:24
kapil___ has joined #ruby
03:27
vonfry has quit [Remote host closed the connection]
03:29
gix has quit [Disconnected by services]
03:32
redlegion has quit [Max SendQ exceeded]
03:33
redlegion has joined #ruby
03:37
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:39
akaiiro has joined #ruby
03:41
moei has joined #ruby
03:42
redlegion has quit [Max SendQ exceeded]
03:43
redlegion has joined #ruby
03:46
lavamind has quit [Remote host closed the connection]
03:48
Caerus has quit [Read error: Connection reset by peer]
03:51
nadir has joined #ruby
03:52
redlegion has quit [Max SendQ exceeded]
03:53
redlegion has joined #ruby
03:53
Fira has quit [Ping timeout: 256 seconds]
03:56
gigetoo has quit [Ping timeout: 268 seconds]
04:02
redlegion has quit [Max SendQ exceeded]
04:03
redlegion has joined #ruby
04:14
jetchisel has joined #ruby
04:16
gigetoo has joined #ruby
04:22
redlegion has quit [Max SendQ exceeded]
04:23
redlegion has joined #ruby
04:25
duderonomy has joined #ruby
04:35
jetchisel has quit [Quit: "Unfortunately time is always against us" -- * Morpheus*]
04:42
redlegion has quit [Max SendQ exceeded]
04:43
redlegion has joined #ruby
04:52
redlegion has quit [Max SendQ exceeded]
04:53
redlegion has joined #ruby
04:57
tdy has quit [Ping timeout: 244 seconds]
05:04
elphe has quit [Ping timeout: 268 seconds]
05:12
redlegion has quit [Max SendQ exceeded]
05:13
redlegion has joined #ruby
05:16
tdy has joined #ruby
05:20
elphe has joined #ruby
05:22
redlegion has quit [Max SendQ exceeded]
05:23
redlegion has joined #ruby
05:25
elphe has quit [Ping timeout: 264 seconds]
05:30
alem0lars has joined #ruby
05:32
redlegion has quit [Max SendQ exceeded]
05:33
redlegion has joined #ruby
05:35
Emmanuel_Chanel has joined #ruby
05:40
elphe has joined #ruby
05:41
conta has joined #ruby
05:42
redlegion has quit [Max SendQ exceeded]
05:43
redlegion has joined #ruby
05:45
elphe has quit [Ping timeout: 248 seconds]
05:50
elphe has joined #ruby
05:54
elphe has quit [Ping timeout: 260 seconds]
05:57
alem0lars has quit [Ping timeout: 264 seconds]
05:59
elphe has joined #ruby
06:04
elphe has quit [Ping timeout: 244 seconds]
06:08
alfiemax has quit [Ping timeout: 244 seconds]
06:09
elphe has joined #ruby
06:12
Nicmavr has quit [Read error: Connection reset by peer]
06:12
redlegion has quit [Max SendQ exceeded]
06:13
redlegion has joined #ruby
06:14
Nicmavr has joined #ruby
06:20
venmx has joined #ruby
06:21
Tempesta has joined #ruby
06:22
redlegion has quit [Max SendQ exceeded]
06:23
redlegion has joined #ruby
06:24
conta has quit [Quit: conta]
06:25
alfiemax has joined #ruby
06:27
SeepingN has joined #ruby
06:38
elphe has quit [Ping timeout: 240 seconds]
06:39
phate408 has quit [Remote host closed the connection]
06:42
redlegion has quit [Max SendQ exceeded]
06:43
redlegion has joined #ruby
06:51
elphe has joined #ruby
06:56
elphe has quit [Ping timeout: 244 seconds]
07:04
SeepingN has quit [Quit: The system is going down for reboot NOW!]
07:04
alfiemax has quit [Ping timeout: 260 seconds]
07:11
elphe has joined #ruby
07:12
redlegion has quit [Max SendQ exceeded]
07:13
redlegion has joined #ruby
07:17
elphe has quit [Ping timeout: 268 seconds]
07:22
elphe has joined #ruby
07:22
redlegion has quit [Max SendQ exceeded]
07:23
redlegion has joined #ruby
07:27
elphe has quit [Ping timeout: 256 seconds]
07:32
elphe has joined #ruby
07:32
biberu has joined #ruby
07:37
reber has joined #ruby
07:37
elphe has quit [Ping timeout: 256 seconds]
07:37
beilabs has joined #ruby
07:42
elphe has joined #ruby
07:46
beilabs has quit [Remote host closed the connection]
07:47
elphe has quit [Ping timeout: 268 seconds]
07:52
redlegion has quit [Max SendQ exceeded]
07:53
redlegion has joined #ruby
07:54
kapil___ has quit [Quit: Connection closed for inactivity]
07:59
beilabs has joined #ruby
07:59
rippa has joined #ruby
08:02
redlegion has quit [Max SendQ exceeded]
08:03
redlegion has joined #ruby
08:05
akaiiro has quit [Remote host closed the connection]
08:12
clemens3 has joined #ruby
08:12
redlegion has quit [Max SendQ exceeded]
08:13
redlegion has joined #ruby
08:21
kapil___ has joined #ruby
08:22
redlegion has quit [Max SendQ exceeded]
08:23
redlegion has joined #ruby
08:24
elphe has joined #ruby
08:24
wasamasa has joined #ruby
08:28
<
wasamasa >
how do I get from the nested loop to an enumerator taking a target sum and depth?
08:28
DTZUZO has quit [Ping timeout: 264 seconds]
08:29
elphe has quit [Ping timeout: 260 seconds]
08:29
<
wasamasa >
I don't really mind hand-coding this, but I'm sure there must be a good solution
08:29
<
wasamasa >
kind of like you could write a password cracker by using String#next!
08:31
scrptktty has quit [Quit: Connection closed for inactivity]
08:32
<
elomatreb >
That's certainly a unique task, what's it for if you don't mind me asking?
08:33
<
wasamasa >
just another coding exercise
08:33
<
wasamasa >
the goal is to do optimization with constraints, the constraint being that the individual terms have a target sum
08:33
<
elomatreb >
You could probably superficially ruby-ize it by using ranges/upto instead of the loops, but that's largely a cosmetic change
08:34
<
wasamasa >
I'd really like to create as many nested loops as needed
08:34
<
wasamasa >
if I had macros, I could actually do codegen, but I don't
08:34
<
wasamasa >
so I'd hope clever use of enumerators could work
08:34
elphe has joined #ruby
08:34
<
wasamasa >
like, by writing an enumerator calling another enumerator with a helper argument
08:39
<
ineb >
wasamasa: whats the question? generate 4 dimensional vectors with maximum sum of 5?
08:39
elphe has quit [Ping timeout: 268 seconds]
08:39
<
ineb >
can be done with Matrix::Vector i think
08:39
<
wasamasa >
all possible ones with exactly that sum
08:41
nadir has quit [Quit: Connection closed for inactivity]
08:42
redlegion has quit [Max SendQ exceeded]
08:43
redlegion has joined #ruby
08:44
lxsameer has joined #ruby
08:46
<
wasamasa >
but what I'm really looking for is generic code to create such sequences for any parameters
08:47
<
wasamasa >
4 and 5 are just convenient ones for a hand-coded solution, anything larger than that becomes hard to test
08:54
elphe has joined #ruby
08:54
beilabs has quit [Remote host closed the connection]
08:55
ShekharReddy has joined #ruby
08:57
ShekharReddy has quit [Client Quit]
08:58
elphe has quit [Ping timeout: 240 seconds]
08:59
Asher has joined #ruby
09:01
dhollin3 has joined #ruby
09:02
redlegion has quit [Max SendQ exceeded]
09:03
redlegion has joined #ruby
09:03
quobo has joined #ruby
09:05
dhollinger has quit [Ping timeout: 256 seconds]
09:05
beilabs has joined #ruby
09:07
<
ineb >
wasamasa: yeah. reminds me of subset sum problem
09:09
User458764 has joined #ruby
09:10
User458764 has quit [Client Quit]
09:13
elphe has joined #ruby
09:19
elphe has quit [Ping timeout: 268 seconds]
09:23
conta has joined #ruby
09:23
elphe has joined #ruby
09:28
d^sh- has quit [Ping timeout: 248 seconds]
09:28
elphe has quit [Ping timeout: 240 seconds]
09:28
d^sh has joined #ruby
09:32
wildermind has joined #ruby
09:34
\void has quit [Quit: So long, and thanks for all the fish.]
09:37
beilabs has quit [Remote host closed the connection]
09:37
beilabs has joined #ruby
09:41
beilabs has quit [Ping timeout: 244 seconds]
09:42
beilabs has joined #ruby
09:45
InfinityFye has joined #ruby
09:45
elphe has joined #ruby
09:49
conta has quit [Quit: conta]
09:50
elphe has quit [Ping timeout: 244 seconds]
09:50
InfinityFye has left #ruby ["Leaving"]
09:55
elphe has joined #ruby
10:00
elphe has quit [Ping timeout: 256 seconds]
10:14
elphe has joined #ruby
10:18
unreal has quit [Remote host closed the connection]
10:19
lytol_ has joined #ruby
10:20
elphe has quit [Ping timeout: 268 seconds]
10:21
za1b1tsu has quit [Ping timeout: 244 seconds]
10:22
unreal has joined #ruby
10:24
elphe has joined #ruby
10:26
amelliaa has joined #ruby
10:29
elphe has quit [Ping timeout: 240 seconds]
10:32
sarna has joined #ruby
10:32
amelliaa has quit [Quit: -]
10:37
FernandoBasso has joined #ruby
10:39
FernandoBasso has quit [Read error: Connection reset by peer]
10:40
FernandoBasso has joined #ruby
10:44
elphe has joined #ruby
10:47
beilabs has quit [Remote host closed the connection]
10:49
elphe has quit [Ping timeout: 248 seconds]
10:50
bak1an has joined #ruby
11:01
Zaab1t has joined #ruby
11:02
beilabs has joined #ruby
11:04
elphe has joined #ruby
11:07
Zaab1t has quit [Quit: Zaab1t]
11:07
beilabs has quit [Ping timeout: 260 seconds]
11:09
elphe has quit [Ping timeout: 264 seconds]
11:11
ciro has joined #ruby
11:13
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:22
redlegion has quit [Max SendQ exceeded]
11:23
redlegion has joined #ruby
11:23
eblip has quit [Quit: WeeChat 2.0.1]
11:23
elphe has joined #ruby
11:25
johnny56 has joined #ruby
11:27
eblip has joined #ruby
11:28
conta has joined #ruby
11:28
elphe has quit [Ping timeout: 264 seconds]
11:32
AJA4350 has joined #ruby
11:38
FernandoBasso has quit [Remote host closed the connection]
11:38
FernandoBasso has joined #ruby
11:43
elphe has joined #ruby
11:43
clemens3 has quit [Quit: WeeChat 2.1]
11:48
elphe has quit [Ping timeout: 260 seconds]
11:52
beefjoe has joined #ruby
11:52
redlegion has quit [Max SendQ exceeded]
11:53
redlegion has joined #ruby
11:53
elphe has joined #ruby
11:53
sylario has joined #ruby
11:58
elphe has quit [Ping timeout: 256 seconds]
12:02
redlegion has quit [Max SendQ exceeded]
12:03
elphe has joined #ruby
12:03
redlegion has joined #ruby
12:07
elphe has quit [Ping timeout: 256 seconds]
12:08
FernandoBasso has quit [Read error: Connection reset by peer]
12:08
FernandoBasso has joined #ruby
12:11
beefjoe has quit [Ping timeout: 268 seconds]
12:14
venmx has quit [Ping timeout: 248 seconds]
12:22
redlegion has quit [Max SendQ exceeded]
12:23
redlegion has joined #ruby
12:32
elphe has joined #ruby
12:32
redlegion has quit [Max SendQ exceeded]
12:33
redlegion has joined #ruby
12:37
elphe has quit [Ping timeout: 240 seconds]
12:42
redlegion has quit [Max SendQ exceeded]
12:43
redlegion has joined #ruby
12:45
conta has quit [Quit: conta]
12:52
elphe has joined #ruby
12:52
redlegion has quit [Max SendQ exceeded]
12:53
redlegion has joined #ruby
12:57
elphe has quit [Ping timeout: 244 seconds]
13:02
elphe has joined #ruby
13:02
redlegion has quit [Max SendQ exceeded]
13:03
redlegion has joined #ruby
13:11
ciro has quit [Ping timeout: 256 seconds]
13:12
sarna has quit [Quit: Connection closed for inactivity]
13:12
redlegion has quit [Max SendQ exceeded]
13:13
redlegion has joined #ruby
13:15
elphe has quit [Ping timeout: 265 seconds]
13:19
_aeris_ has quit [Ping timeout: 256 seconds]
13:19
headius has quit [Ping timeout: 245 seconds]
13:20
Exagone313 has quit [Ping timeout: 256 seconds]
13:21
venmx has joined #ruby
13:22
redlegion has quit [Max SendQ exceeded]
13:23
redlegion has joined #ruby
13:25
_aeris_ has joined #ruby
13:30
elphe has joined #ruby
13:32
redlegion has quit [Max SendQ exceeded]
13:33
redlegion has joined #ruby
13:35
ciro has joined #ruby
13:35
elphe has quit [Ping timeout: 240 seconds]
13:41
ciro has quit [Ping timeout: 256 seconds]
13:42
redlegion has quit [Max SendQ exceeded]
13:43
redlegion has joined #ruby
13:44
Exagone313 has joined #ruby
13:50
elphe has joined #ruby
13:55
elphe has quit [Ping timeout: 268 seconds]
13:57
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
14:01
elphe has joined #ruby
14:03
argoneus has quit [Quit: No Ping reply in 180 seconds.]
14:05
argoneus has joined #ruby
14:13
argoneus has quit [Quit: No Ping reply in 180 seconds.]
14:15
GodFather has quit [Ping timeout: 256 seconds]
14:17
GodFather has joined #ruby
14:17
goez has quit [Ping timeout: 276 seconds]
14:21
argoneus has joined #ruby
14:24
apeiros has quit []
14:26
FernandoBasso has quit [Read error: Connection reset by peer]
14:26
FernandoBasso has joined #ruby
14:31
elphe has quit [Ping timeout: 256 seconds]
14:35
KeyJoo has joined #ruby
14:36
cadillac_ has quit [Ping timeout: 260 seconds]
14:36
snickers has joined #ruby
14:37
cadillac_ has joined #ruby
14:41
elphe has joined #ruby
14:42
mzo has joined #ruby
14:42
goez has joined #ruby
14:43
Vile` has joined #ruby
14:46
mzo has quit [Remote host closed the connection]
14:46
mikecmpbll has joined #ruby
14:48
Vile` has quit [Quit: .]
14:55
beefjoe has joined #ruby
14:59
elphe has quit [Ping timeout: 256 seconds]
15:02
redlegion has quit [Max SendQ exceeded]
15:03
redlegion has joined #ruby
15:12
conta has joined #ruby
15:13
Emmanuel_Chanel has joined #ruby
15:14
elphe has joined #ruby
15:15
beefjoe has quit [Ping timeout: 240 seconds]
15:19
elphe has quit [Ping timeout: 240 seconds]
15:22
conta has quit [Quit: conta]
15:22
redlegion has quit [Max SendQ exceeded]
15:23
redlegion has joined #ruby
15:28
ciro has joined #ruby
15:31
tdy has quit [Ping timeout: 260 seconds]
15:32
redlegion has quit [Max SendQ exceeded]
15:33
redlegion has joined #ruby
15:34
elphe has joined #ruby
15:38
houhoulis has joined #ruby
15:39
elphe has quit [Ping timeout: 256 seconds]
15:44
leitz has joined #ruby
15:46
FernandoBasso has quit [Read error: Connection reset by peer]
15:52
redlegion has quit [Max SendQ exceeded]
15:53
redlegion has joined #ruby
15:54
elphe has joined #ruby
15:56
<
leitz >
I can spell 'OOP' but still trying to get it.
15:58
lele has quit [Ping timeout: 245 seconds]
15:59
elphe has quit [Ping timeout: 264 seconds]
16:02
redlegion has quit [Max SendQ exceeded]
16:03
redlegion has joined #ruby
16:03
elphe has joined #ruby
16:08
elphe has quit [Ping timeout: 240 seconds]
16:14
raynold has joined #ruby
16:16
akaiiro has joined #ruby
16:20
akaiiro has quit [Remote host closed the connection]
16:22
redlegion has quit [Max SendQ exceeded]
16:23
redlegion has joined #ruby
16:23
<
leitz >
And storms push me off-line again.
*sigh*
16:23
leitz has left #ruby [#ruby]
16:23
wasamasa has left #ruby ["Bye"]
16:24
elphe has joined #ruby
16:29
elphe has quit [Ping timeout: 256 seconds]
16:32
redlegion has quit [Max SendQ exceeded]
16:33
redlegion has joined #ruby
16:34
za1b1tsu has joined #ruby
16:37
User458764 has joined #ruby
16:38
User458764 has quit [Client Quit]
16:42
User458764 has joined #ruby
16:42
redlegion has quit [Max SendQ exceeded]
16:42
dzipc_ has quit [Quit: Connection closed for inactivity]
16:43
redlegion has joined #ruby
16:43
beilabs has joined #ruby
16:43
elphe has joined #ruby
16:45
sepp2k has joined #ruby
16:48
elphe has quit [Ping timeout: 260 seconds]
16:52
Nicmavr has quit [Read error: Connection reset by peer]
16:52
redlegion has quit [Max SendQ exceeded]
16:53
redlegion has joined #ruby
16:53
elphe has joined #ruby
16:54
Nicmavr has joined #ruby
16:59
elphe has quit [Ping timeout: 268 seconds]
17:02
redlegion has quit [Max SendQ exceeded]
17:03
redlegion has joined #ruby
17:03
elphe has joined #ruby
17:04
<
havenwood >
leafyleong: Is the `@start_dir` meant to be the directory this file is in or the working directory when it's called?
17:04
<
havenwood >
oops, wrong nick
17:05
<
havenwood >
Ah, right - storms.
17:07
beefjoe has joined #ruby
17:08
elphe has quit [Ping timeout: 248 seconds]
17:12
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
17:13
elphe has joined #ruby
17:13
laceless_ has joined #ruby
17:17
tty has quit [Quit: tty]
17:17
elphe has quit [Ping timeout: 248 seconds]
17:22
redlegion has quit [Max SendQ exceeded]
17:23
redlegion has joined #ruby
17:24
beefjoe has quit [Ping timeout: 248 seconds]
17:25
duderonomy has quit [Ping timeout: 260 seconds]
17:30
Inline has quit [Quit: Leaving]
17:32
segy has quit [Ping timeout: 260 seconds]
17:33
elphe has joined #ruby
17:34
ByronJohnson has quit [Ping timeout: 245 seconds]
17:34
beefjoe has joined #ruby
17:35
ByronJohnson has joined #ruby
17:37
elphe has quit [Ping timeout: 248 seconds]
17:42
redlegion has quit [Max SendQ exceeded]
17:42
elphe has joined #ruby
17:43
akaiiro has joined #ruby
17:43
redlegion has joined #ruby
17:44
scrptktty has joined #ruby
17:47
elphe has quit [Ping timeout: 240 seconds]
17:52
elphe has joined #ruby
17:52
redlegion has quit [Max SendQ exceeded]
17:53
redlegion has joined #ruby
18:02
redlegion has quit [Max SendQ exceeded]
18:03
redlegion has joined #ruby
18:04
dviola has joined #ruby
18:05
za1b1tsu has quit [Ping timeout: 260 seconds]
18:12
redlegion has quit [Max SendQ exceeded]
18:13
redlegion has joined #ruby
18:19
headius has joined #ruby
18:22
redlegion has quit [Max SendQ exceeded]
18:23
redlegion has joined #ruby
18:24
beefjoe has quit [Ping timeout: 244 seconds]
18:42
biberu has joined #ruby
18:42
redlegion has quit [Max SendQ exceeded]
18:43
redlegion has joined #ruby
18:46
siery has joined #ruby
18:47
dhollin3 is now known as dhollinger
18:48
akaiiro has quit [Remote host closed the connection]
18:49
johnny56 has quit [Remote host closed the connection]
18:49
bhaak has quit [Ping timeout: 256 seconds]
18:51
bhaak has joined #ruby
18:52
redlegion has quit [Max SendQ exceeded]
18:53
beefjoe has joined #ruby
18:53
redlegion has joined #ruby
18:59
beefjoe has quit [Ping timeout: 240 seconds]
19:02
<
siery >
Hey guys! I run into a bug in my game, particularly sprites that should be drawn on different z axis are drawn on the same. For now there are only two sprites in the game, Tiles and Items. Tile class apply the method 'create_sprite' witch simply creates a new sprite object with is is later used in the draw method. The create sprite method then contain only one line:
19:03
<
siery >
@sprite = Sprite.new(@x, @y, @tileset, @code, ZOrder::TILES)
19:04
<
siery >
The Item class derives from tiles an the only difference in create_sprite method is that last argument witch is set to `ZOrder::ITEMS`.
19:08
<
siery >
But when I invoke some Item object with `create_sprite`, it looks like it is using the method from the Tile class. Even when I tried to print something from `create_sprite` within the Tile class, nothing happens. So I assume I have some basic misunderstanding of how Ruby handles method overwriting.
19:09
<
havenwood >
siery: Can you share the code? We might be able to spot the issue.
19:09
nicesignal has quit [Ping timeout: 240 seconds]
19:12
nicesignal has joined #ruby
19:12
redlegion has quit [Max SendQ exceeded]
19:13
redlegion has joined #ruby
19:14
<
siery >
The current state is on the dev branch, which is exactly the one I share on the link. `item.rb` and `tile.rb` are respectively to the classes
19:22
johnny56 has joined #ruby
19:23
sarna has joined #ruby
19:26
FrostCandy has joined #ruby
19:29
\void has joined #ruby
19:33
banisterfiend has joined #ruby
19:34
elphe has quit [Ping timeout: 256 seconds]
19:36
<
siery >
The obvious fix is to remove the `creat_sprite` method from Item class and define the z_order by the argument. But I really want to understand where is the problem.
19:38
duderonomy has joined #ruby
19:41
duderonomy has quit [Client Quit]
19:41
sidntrivedi012[m has left #ruby ["User left"]
19:45
white_lilies has joined #ruby
19:46
mroutis has joined #ruby
19:50
elphe has joined #ruby
19:54
jp has quit [Ping timeout: 244 seconds]
19:54
Keltia has quit [Ping timeout: 268 seconds]
19:55
elphe has quit [Ping timeout: 268 seconds]
19:56
jp has joined #ruby
20:01
wildermind has quit [Quit: Connection closed for inactivity]
20:02
duderonomy has joined #ruby
20:03
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
20:03
Freshnuts has joined #ruby
20:04
duderonomy has quit [Client Quit]
20:04
FrostCandy has quit []
20:05
johnny56 has quit [Remote host closed the connection]
20:08
johnny56 has joined #ruby
20:09
Inline has joined #ruby
20:09
tdy has joined #ruby
20:10
elphe has joined #ruby
20:12
sepp2k has quit [Read error: Connection reset by peer]
20:12
redlegion has quit [Max SendQ exceeded]
20:13
redlegion has joined #ruby
20:15
elphe has quit [Ping timeout: 264 seconds]
20:16
mim7 has joined #ruby
20:19
JackMc is now known as Auv
20:22
white_lilies has quit [Ping timeout: 260 seconds]
20:22
redlegion has quit [Max SendQ exceeded]
20:23
redlegion has joined #ruby
20:25
bjag9 has joined #ruby
20:29
elphe has joined #ruby
20:32
redlegion has quit [Max SendQ exceeded]
20:33
redlegion has joined #ruby
20:34
elphe has quit [Ping timeout: 256 seconds]
20:40
FernandoBasso has joined #ruby
20:42
FernandoBasso has quit [Remote host closed the connection]
20:42
redlegion has quit [Max SendQ exceeded]
20:43
redlegion has joined #ruby
20:49
elphe has joined #ruby
20:51
al2o3-cr has quit [Ping timeout: 240 seconds]
20:52
al2o3-cr has joined #ruby
20:54
elphe has quit [Ping timeout: 256 seconds]
20:55
bjag9 has quit [Quit: Leaving]
20:59
elphe has joined #ruby
21:02
redlegion has quit [Max SendQ exceeded]
21:03
redlegion has joined #ruby
21:03
elphe has quit [Ping timeout: 244 seconds]
21:09
elphe has joined #ruby
21:11
kitikonti has joined #ruby
21:12
redlegion has quit [Max SendQ exceeded]
21:13
redlegion has joined #ruby
21:13
elphe has quit [Ping timeout: 240 seconds]
21:19
elphe has joined #ruby
21:22
redlegion has quit [Max SendQ exceeded]
21:23
redlegion has joined #ruby
21:24
elphe has quit [Ping timeout: 260 seconds]
21:24
kapil___ has quit [Quit: Connection closed for inactivity]
21:28
elphe has joined #ruby
21:29
houhoulis has quit []
21:34
elphe has quit [Ping timeout: 268 seconds]
21:38
elphe has joined #ruby
21:42
sarna has quit [Quit: Connection closed for inactivity]
21:43
elphe has quit [Ping timeout: 260 seconds]
21:48
c0ncealed2 has quit [Remote host closed the connection]
21:49
c0ncealed2 has joined #ruby
21:52
redlegion has quit [Max SendQ exceeded]
21:53
redlegion has joined #ruby
21:58
elphe has joined #ruby
21:59
ur5us has joined #ruby
22:03
elphe has quit [Ping timeout: 244 seconds]
22:04
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:08
elphe has joined #ruby
22:10
crankharder has joined #ruby
22:12
elphe has quit [Ping timeout: 264 seconds]
22:17
tdy has quit [Quit: WeeChat 2.2]
22:18
elphe has joined #ruby
22:21
Freshnuts has quit [Quit: Leaving]
22:23
elphe has quit [Ping timeout: 264 seconds]
22:28
beilabs has quit [Remote host closed the connection]
22:29
beilabs has joined #ruby
22:33
beilabs has quit [Ping timeout: 240 seconds]
22:36
tcurdt has joined #ruby
22:39
elphe has joined #ruby
22:40
bhaak has quit [Ping timeout: 240 seconds]
22:40
bhaak has joined #ruby
22:40
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:42
mim7 has quit [Remote host closed the connection]
22:42
redlegion has quit [Max SendQ exceeded]
22:43
redlegion has joined #ruby
22:44
elphe has quit [Ping timeout: 264 seconds]
22:47
parduse has joined #ruby
22:47
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:48
hgost has joined #ruby
22:48
r29v has joined #ruby
22:51
p4p0l0 has joined #ruby
22:52
redlegion has quit [Max SendQ exceeded]
22:53
redlegion has joined #ruby
22:54
parduse has quit [Ping timeout: 264 seconds]
22:55
Asher has quit [Quit: Leaving.]
22:55
r29v has quit [Quit: r29v]
22:57
banisterfiend has joined #ruby
22:59
elphe has joined #ruby
22:59
BTRE has quit [Ping timeout: 268 seconds]
23:00
venmx has quit [Ping timeout: 240 seconds]
23:02
redlegion has quit [Max SendQ exceeded]
23:03
redlegion has joined #ruby
23:04
elphe has quit [Ping timeout: 256 seconds]
23:06
r29v has joined #ruby
23:07
p4p0l0 has quit [Remote host closed the connection]
23:09
elphe has joined #ruby
23:13
r29v has quit [Quit: r29v]
23:14
mikecmpbll has quit [Quit: inabit. zz.]
23:14
elphe has quit [Ping timeout: 260 seconds]
23:16
KeyJoo has quit [Ping timeout: 260 seconds]
23:16
mroutis has quit [Ping timeout: 256 seconds]
23:18
spider-mario has quit [Ping timeout: 256 seconds]
23:19
elphe has joined #ruby
23:19
jasmith has quit [Quit: Leaving]
23:19
spider-mario has joined #ruby
23:22
mroutis has joined #ruby
23:24
elphe has quit [Ping timeout: 260 seconds]
23:29
elphe has joined #ruby
23:32
segy has joined #ruby
23:33
elphe has quit [Ping timeout: 264 seconds]
23:38
elphe has joined #ruby
23:42
redlegion has quit [Max SendQ exceeded]
23:43
redlegion has joined #ruby
23:44
elphe has quit [Ping timeout: 268 seconds]
23:48
elphe has joined #ruby
23:52
redlegion has quit [Max SendQ exceeded]
23:53
redlegion has joined #ruby
23:53
elphe has quit [Ping timeout: 244 seconds]