yqfvwal

Activity Graph

Page 1 of 1

2016-02-21

[06:24:43] yqfvwal: Quit: Leaving
[08:08:57] yqfvwal: has joined #ruby
[08:15:28] yqfvwal: CowMan_: install gentoo
[09:47:58] yqfvwal: Ping timeout: 255 seconds
[09:59:51] yqfvwal: has joined #ruby
[11:34:29] yqfvwal: Ping timeout: 240 seconds

2016-02-20

[23:18:10] yqfvwal: has joined #ruby

2016-02-16

[07:45:10] yqfvwal: Ping timeout: 256 seconds
[07:48:07] yqfvwal: has joined #ruby
[09:49:32] yqfvwal: Quit: Leaving

2016-02-15

[14:04:20] yqfvwal: Ping timeout: 250 seconds
[21:11:45] yqfvwal: has joined #ruby

2016-02-14

[05:35:17] yqfvwal: Remote host closed the connection
[21:00:27] yqfvwal: has joined #ruby
[21:06:55] yqfvwal: Ping timeout: 240 seconds
[22:16:34] yqfvwal: has joined #ruby

2016-02-13

[17:23:59] yqfvwal: has joined #ruby
[23:31:37] yqfvwal: has left #ruby: ("Leaving")
[23:48:06] yqfvwal: has joined #ruby

2016-02-12

[00:05:25] yqfvwal: has joined #ruby
[11:47:06] yqfvwal: Ping timeout: 250 seconds

2016-02-10

[00:14:16] yqfvwal: http://vpaste.net/jzYeA runs 2x times slower than the python version I wrote. Is there any way to optimize it?
[01:30:37] yqfvwal: has joined #ruby-banned
[05:58:09] yqfvwal: Quit: Leaving
[16:58:56] yqfvwal: has joined #ruby

2016-02-09

[04:26:56] yqfvwal: has joined #ruby
[05:25:29] yqfvwal: I want to convert a string to array. Is there a better looking solution then str.split("")?
[05:26:04] yqfvwal: Ox0dea, thanks!
[05:32:33] yqfvwal: Quit: Leaving
[18:20:55] yqfvwal: has joined #ruby
[18:22:39] yqfvwal: Hi! Is there syntactic sugar to manipulate a variable, with a default value before being used?
[18:24:52] yqfvwal: crime, I want to set var to zero if not defined otherwise increment it by one
[18:26:01] yqfvwal: yes, I know, but I thought there was some other possibility than using conditionals, but thanks
[18:27:21] yqfvwal: baweaver, thanks, did not think about
[18:28:03] yqfvwal: baweaver, ARGF.each { a = a ? a + 1 : 0 } does not work
[18:28:15] yqfvwal: puts a, Name error
[18:29:49] yqfvwal: apeiros, ah ok, how do I make it global?
[18:30:45] yqfvwal: hmm, ok, seems the best way to initialize a to zero before using each on argf
[18:32:40] yqfvwal: It was just some experimenting. I wanted to increment a variable, everytime an enter is pressed, and write it on stdout
[18:33:21] yqfvwal: a = 0;ARGF.each {a += 1};puts a # this is all I want to do
[21:15:15] yqfvwal: Quit: Leaving
[21:18:58] yqfvwal: has joined #ruby
[22:10:20] yqfvwal: Why is def def = 42 not an error?
[22:11:50] yqfvwal: Mon_Ouie, ok that is weird, in irb it does not say anything
[22:13:00] yqfvwal: Mon_Ouie, ah I see, thanks
[22:15:47] yqfvwal: In the book "Well-Grounded Rubyist" it is written that one could potentially name a method def. How would one achieve that?
[22:17:30] yqfvwal: acidrainfall, I am sorry, english is not my native language. How would I word that better?
[22:17:38] yqfvwal: Ox0dea, cool thanks

2016-02-08

[19:07:29] yqfvwal: has joined #ruby
[19:11:50] yqfvwal: has joined #RubyOnRails
[19:23:46] yqfvwal: No activity?
[22:49:29] yqfvwal: Quit: Leaving