Labaleine

Activity Graph

Page 1 of 1

2016-05-20

[09:01:51] Labaleine: has joined #ruby
[09:56:46] Labaleine: Hello ! I don't get perfectly the synthax "#{}". I do understand that it can be used in a text with a variable. But I don't understand this way of using it
[09:56:54] Labaleine: all_tasks.map.with_index { |l, i| "(#{i.next}): #{l}"}
[09:57:22] Labaleine: I see that it works however I would have done more something like this all_tasks.map.with_index { |v, i| i + next v
[09:58:22] Labaleine: Can you explain me a bit more the use of this syntax ?
[10:00:36] Labaleine: thanks for the help.
[11:30:50] Labaleine: Read error: Connection reset by peer
[16:28:55] Labaleine: has joined #ruby
[16:35:47] Labaleine: Ping timeout: 276 seconds
[16:52:16] Labaleine: has joined #ruby
[17:40:55] Labaleine: Ping timeout: 260 seconds

2016-05-18

[07:54:07] Labaleine: has joined #ruby
[09:57:00] Labaleine: Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160502172042]

2016-05-17

[00:08:32] Labaleine: Ping timeout: 276 seconds
[07:38:12] Labaleine: has joined #ruby
[08:03:23] Labaleine: Read error: Connection reset by peer
[08:15:05] Labaleine: has joined #ruby
[10:02:44] Labaleine: Ping timeout: 260 seconds
[11:55:16] Labaleine: has joined #ruby
[12:02:14] Labaleine: Ping timeout: 276 seconds
[12:03:18] Labaleine: has joined #ruby
[15:25:04] Labaleine: Ping timeout: 240 seconds
[15:28:42] Labaleine: has joined #ruby
[15:35:20] Labaleine: Ping timeout: 260 seconds
[15:38:50] Labaleine: Read error: Connection reset by peer
[16:22:59] Labaleine: has joined #ruby
[16:24:09] Labaleine: Hello ! I want to delete a task from an array which is quite easy arr.delete(x). But it is actually not working in my code. The only way I find is to put an index to my array and then use delete_at. But I don't want this.
[16:24:39] Labaleine: I specifically want the user to type exactly what needs to be deleted
[16:25:05] Labaleine: https://gist.github.com/anonymous/d3d82d2e6f547be88096e6c8fe423553
[16:27:34] Labaleine: Maybe I am doing it in a wrong way or its not working
[16:32:01] Labaleine: hum I think i got
[16:34:58] Labaleine: ok thanks !
[16:45:49] Labaleine: Ping timeout: 260 seconds
[20:18:56] Labaleine: has joined #ruby
[20:34:58] Labaleine: Read error: Connection reset by peer
[20:54:10] Labaleine: has joined #ruby
[23:45:26] Labaleine: Read error: No route to host

2016-05-16

[07:42:28] Labaleine: has joined #ruby
[12:47:09] Labaleine: Ping timeout: 244 seconds
[16:54:31] Labaleine: Read error: Connection reset by peer
[20:08:47] Labaleine: has joined #ruby
[22:09:41] Labaleine: Read error: Connection reset by peer
[22:23:10] Labaleine: has joined #ruby

2016-05-15

[10:10:47] Labaleine: has joined #ruby
[11:16:42] Labaleine: Hello ! I don't get why my code is doing an infinite loop since I am using until. When the condition is met it should go to the other part of my code ?
[11:17:08] Labaleine: user_input = gets.chomp
[11:17:10] Labaleine: until user_input == "q" do prompt(show)
[11:17:52] Labaleine: yes but it is not I don't understand why
[11:18:27] Labaleine: Aperos: Yes thank you for your kind help
[11:19:10] Labaleine: https://gist.github.com/anonymous/b3ff5dd00bef5991dbf6f617122d0eb4
[11:24:20] Labaleine: Apeiros: more something like this > until ['q'].include?(user_input = prompt(show).downcase)
[11:24:27] Labaleine: Read error: Connection reset by peer
[11:26:19] Labaleine: has joined #ruby
[11:26:51] Labaleine: Apeiros > just got a problem on IRC. So my code looks better like this apparently > until ['q'].include?(user_input = prompt(show).downcase)
[11:29:24] Labaleine: Oh it works ! thank you very much !
[14:26:24] Labaleine: Read error: Connection reset by peer
[15:34:04] Labaleine: has joined #ruby
[23:15:55] Labaleine: Read error: Connection reset by peer

2016-05-09

[09:02:05] Labaleine: has joined #ruby
[09:39:12] Labaleine: Hello. Small problem. My puts is not showing my variable #{description}. I tried to fix it adding a method to_sym but it is not working. Here is the code. Thank you very much for your help
[09:39:19] Labaleine: https://gist.github.com/anonymous/48dbf3515a7460ae02db3a13b00f286a
[09:45:30] Labaleine: Thank you. I get it :)
[11:25:19] Labaleine: Ping timeout: 260 seconds
[16:02:38] Labaleine: has joined #ruby
[16:04:41] Labaleine: Read error: Connection reset by peer
[16:05:56] Labaleine: has joined #ruby
[16:20:25] Labaleine: Read error: Connection reset by peer
[16:21:37] Labaleine: has joined #ruby
[18:34:55] Labaleine: Read error: Connection reset by peer
[22:55:21] Labaleine: has joined #ruby
[23:09:52] Labaleine: Remote host closed the connection

2016-05-08

[18:45:09] Labaleine: Read error: Connection reset by peer
[19:13:13] Labaleine: has joined #ruby
[21:58:35] Labaleine: Ping timeout: 276 seconds
[21:59:21] Labaleine: has joined #ruby
[22:57:47] Labaleine: Read error: Connection reset by peer
[22:58:30] Labaleine: has joined #ruby
[23:35:15] Labaleine: Read error: Connection reset by peer