crazydiamond

Activity Graph

Page 1 of 1

2016-07-29

[18:43:54] crazydiamond: has joined #ruby
[18:44:35] crazydiamond: Hi. What I'm doing wrong during Command-T VIm plugin installation, if what I get is this: http://dpaste.com/1TXFRNQ ?
[19:20:57] crazydiamond: Quit: Page closed

2016-05-23

[19:34:38] crazydiamond: Remote host closed the connection

2016-05-21

[01:21:27] crazydiamond: Ping timeout: 276 seconds
[13:31:03] crazydiamond: has joined #ruby

2016-05-20

[10:06:07] crazydiamond: has joined #ruby
[15:41:12] crazydiamond: Ping timeout: 276 seconds
[19:22:05] crazydiamond: has joined #ruby

2016-04-08

[01:44:30] crazydiamond: Ping timeout: 246 seconds

2016-04-07

[01:08:54] crazydiamond: Ping timeout: 246 seconds
[13:45:06] crazydiamond: has joined #ruby

2016-04-06

[14:19:24] crazydiamond: has joined #ruby

2016-04-04

[20:18:58] crazydiamond: Remote host closed the connection

2016-04-02

[01:26:54] crazydiamond: Ping timeout: 260 seconds
[14:18:45] crazydiamond: has joined #ruby

2016-04-01

[15:40:54] crazydiamond: Ping timeout: 276 seconds
[18:32:57] crazydiamond: has joined #ruby

2016-03-31

[10:38:15] crazydiamond: Ping timeout: 276 seconds
[10:54:50] crazydiamond: has joined #ruby

2016-03-30

[16:05:36] crazydiamond: has joined #ruby

2016-03-25

[03:12:30] crazydiamond: Ping timeout: 248 seconds
[09:11:43] crazydiamond: has joined #ruby
[11:02:57] crazydiamond: Remote host closed the connection
[14:44:20] crazydiamond: has joined #ruby
[23:02:57] crazydiamond: Remote host closed the connection

2016-03-24

[14:50:28] crazydiamond: has joined #ruby

2016-03-23

[15:56:31] crazydiamond: has joined #ruby
[19:31:47] crazydiamond: Ping timeout: 248 seconds

2016-02-25

[04:10:02] crazydiamond: Remote host closed the connection

2016-02-24

[16:49:25] crazydiamond: has joined #ruby

2016-02-08

[12:18:14] crazydiamond: has joined #ruby
[13:19:45] crazydiamond: Remote host closed the connection

2016-02-07

[12:08:44] crazydiamond: has joined #ruby
[23:30:12] crazydiamond: Ping timeout: 248 seconds

2016-01-30

[11:34:37] crazydiamond: has joined #ruby
[23:20:42] crazydiamond: Remote host closed the connection

2016-01-25

[08:23:56] crazydiamond: has joined #ruby
[16:59:40] crazydiamond: Read error: Connection reset by peer

2016-01-07

[14:01:05] crazydiamond: Remote host closed the connection

2016-01-06

[17:59:59] crazydiamond: has joined #ruby

2016-01-04

[00:50:13] crazydiamond: has joined #ruby
[01:38:08] crazydiamond: Ping timeout: 265 seconds

2016-01-03

[20:39:32] crazydiamond: Remote host closed the connection

2016-01-02

[20:36:47] crazydiamond: has joined #ruby

2015-12-24

[07:37:24] crazydiamond: has joined #ruby
[16:08:35] crazydiamond: Remote host closed the connection

2015-12-23

[07:36:40] crazydiamond: has joined #ruby
[21:03:14] crazydiamond: Ping timeout: 246 seconds

2015-12-12

[01:41:42] crazydiamond: has joined #ruby
[10:11:04] crazydiamond: Ping timeout: 240 seconds

2015-12-09

[05:33:18] crazydiamond: Remote host closed the connection

2015-12-08

[02:43:59] crazydiamond: Ping timeout: 246 seconds
[05:04:30] crazydiamond: has joined #ruby

2015-12-07

[01:54:38] crazydiamond: has joined #ruby

2015-12-06

[07:48:29] crazydiamond: Ping timeout: 245 seconds

2015-12-05

[20:25:22] crazydiamond: has joined #ruby

2015-12-04

[11:58:40] crazydiamond: Remote host closed the connection

2015-12-03

[06:23:45] crazydiamond: has joined #ruby
[16:51:09] crazydiamond: Ping timeout: 250 seconds
[23:46:23] crazydiamond: has joined #ruby

2015-11-30

[05:42:25] crazydiamond: Remote host closed the connection

2015-11-21

[14:04:18] crazydiamond: Ping timeout: 255 seconds
[19:17:48] crazydiamond: has joined #ruby
[19:47:31] crazydiamond: Remote host closed the connection

2015-11-20

[14:48:09] crazydiamond: Ping timeout: 250 seconds
[18:37:35] crazydiamond: has joined #ruby

2015-11-19

[16:29:57] crazydiamond: has joined #ruby

2015-10-25

[01:55:35] crazydiamond: Ping timeout: 260 seconds
[11:26:46] crazydiamond: has joined #ruby
[14:30:03] crazydiamond: Remote host closed the connection

2015-10-24

[22:55:12] crazydiamond: has joined #ruby

2015-10-23

[12:16:36] crazydiamond: has joined #ruby
[13:19:19] crazydiamond: Read error: Connection reset by peer

2015-09-04

[09:15:53] crazydiamond: has joined #ruby
[15:09:31] crazydiamond: Remote host closed the connection

2015-09-03

[12:43:43] crazydiamond: has joined #ruby
[17:44:15] crazydiamond: Ping timeout: 244 seconds
[19:02:51] crazydiamond: has joined #ruby
[22:41:11] crazydiamond: Ping timeout: 260 seconds

2015-09-01

[01:18:29] crazydiamond: Ping timeout: 272 seconds
[08:53:32] crazydiamond: has joined #ruby
[15:43:57] crazydiamond: Remote host closed the connection

2015-08-31

[00:13:31] crazydiamond: has joined #ruby
[00:32:58] crazydiamond: Remote host closed the connection
[13:02:07] crazydiamond: has joined #ruby

2015-08-20

[05:47:42] crazydiamond: has joined #ruby
[06:02:56] crazydiamond: Ping timeout: 245 seconds

2015-08-19

[16:56:16] crazydiamond: Ping timeout: 245 seconds
[18:19:58] crazydiamond: has joined #ruby
[22:40:05] crazydiamond: Ping timeout: 246 seconds

2015-08-18

[15:37:57] crazydiamond: Remote host closed the connection
[19:24:09] crazydiamond: has joined #ruby

2015-08-16

[22:12:05] crazydiamond: has joined #ruby

2015-08-15

[13:19:27] crazydiamond: Remote host closed the connection

2015-08-14

[00:53:32] crazydiamond: Remote host closed the connection
[22:20:06] crazydiamond: has joined #ruby

2015-08-13

[20:24:01] crazydiamond: has joined #ruby

2015-07-28

[15:21:43] crazydiamond: Remote host closed the connection

2015-07-27

[01:05:45] crazydiamond: Ping timeout: 265 seconds
[05:29:16] crazydiamond: has joined #ruby
[12:48:41] crazydiamond: Remote host closed the connection
[16:55:49] crazydiamond: has joined #ruby

2015-07-25

[23:33:26] crazydiamond: has joined #ruby

2015-07-23

[16:51:26] crazydiamond: Remote host closed the connection

2015-07-22

[00:17:42] crazydiamond: *.net *.split
[22:23:20] crazydiamond: Ping timeout: 244 seconds
[22:24:10] crazydiamond: has joined #ruby

2015-07-21

[18:08:10] crazydiamond: has joined #ruby

2015-07-13

[03:56:53] crazydiamond: Remote host closed the connection

2015-07-12

[00:17:07] crazydiamond: has joined #ruby

2015-07-07

[07:56:43] crazydiamond: Ping timeout: 256 seconds
[11:01:24] crazydiamond: has joined #ruby
[18:10:36] crazydiamond: Remote host closed the connection

2015-07-06

[01:29:15] crazydiamond: Remote host closed the connection
[20:35:30] crazydiamond: has joined #ruby

2015-07-05

[01:37:48] crazydiamond: has joined #ruby
[03:28:40] crazydiamond: Remote host closed the connection
[15:51:26] crazydiamond: has joined #ruby

2015-06-30

[17:41:24] crazydiamond: has joined #ruby
[20:15:31] crazydiamond: Remote host closed the connection

2015-06-29

[14:11:43] crazydiamond: Read error: Connection reset by peer

2015-06-26

[14:11:34] crazydiamond: Remote host closed the connection
[14:44:16] crazydiamond: has joined #ruby

2015-06-25

[20:21:39] crazydiamond: has joined #ruby

2015-06-24

[13:39:00] crazydiamond: Remote host closed the connection

2015-06-23

[20:43:41] crazydiamond: has joined #ruby

2015-06-16

[04:18:54] crazydiamond: Remote host closed the connection

2015-06-15

[17:11:38] crazydiamond: Ping timeout: 240 seconds
[17:52:39] crazydiamond: has joined #ruby

2015-06-14

[19:10:31] crazydiamond: has joined #ruby

2015-06-05

[20:50:25] crazydiamond: Remote host closed the connection

2015-06-04

[22:09:50] crazydiamond: has joined #ruby

2015-05-29

[04:21:29] crazydiamond: Remote host closed the connection

2015-05-28

[19:47:14] crazydiamond: has joined #ruby

2015-05-27

[00:34:49] crazydiamond: Remote host closed the connection
[02:11:58] crazydiamond: has joined #ruby
[06:26:05] crazydiamond: Remote host closed the connection

2015-05-26

[12:24:54] crazydiamond: has joined #ruby

2015-05-22

[12:34:19] crazydiamond: Remote host closed the connection

2014-11-30

[06:04:49] crazydiamond: Hi guys. Silly question: are migrations in RoR created manually?
[06:06:24] crazydiamond: sevenseacat, but in ActiveRecord::Base derivative can be empty, i.e. just have name and doesn't have list of fields in it?
[06:06:45] crazydiamond: sevenseacat, are only relationships like has_many required to be specified?
[06:07:55] crazydiamond: so, in Django one specifies model by listing it's fields in order. Like: class MyModel(models.Model): field1 = StringField(); field2 = IntegerField()
[06:08:25] crazydiamond: okay, thanks :)

2014-09-29

[15:02:58] crazydiamond: Hi. How do I create decimal in Ruby?
[15:06:04] crazydiamond: brushdemon, thanks. I just forget that they are called "Rational"
[15:07:45] crazydiamond: workmad3, I just need precise numbers
[15:08:04] crazydiamond: with two digits after point
[15:08:54] crazydiamond: ok. but why only "Big" one, isn't there small?
[15:09:10] crazydiamond: Rational is thing like 10/3

2014-09-08

[20:38:15] crazydiamond: Hi. When can I find source and latest version for modules like REXML? http://ruby-doc.org/stdlib-1.9.3/libdoc/rexml/rdoc/REXML.html
[20:39:30] crazydiamond: zenspider, yes, I've found a bug in it
[20:40:16] crazydiamond: ok, but where to checkout from? :-) Github etc?
[20:40:29] crazydiamond: 'cause that's stdlib
[20:40:35] crazydiamond: so ruby itself
[20:41:00] crazydiamond: btw, does nokogiri parse DTD?
[20:41:31] crazydiamond: that was my goal, and I found that rexml does that. but it don't works
[20:42:24] crazydiamond: zenspider, thanks!

2014-08-28

[14:31:03] crazydiamond: Hi. How to properly to read output of git log command in ruby? When I do "system", I cannot get stdout of it
[14:32:12] crazydiamond: shevy, but I want to send command with params
[14:32:27] crazydiamond: not sure if it outputs to stderr
[14:32:44] crazydiamond: i.e. not constant command
[14:32:50] crazydiamond: but with prarms
[14:34:52] crazydiamond: shevy, that works. thanks
[14:46:23] crazydiamond: for given Date object, how to get date 1 day earlier
[14:47:24] crazydiamond: banister, doesn't that require ActveSupport?

2014-08-12

[14:38:07] crazydiamond: Hi. I have a script, that uses backticks in it, like `ls -la /` When I run it in general way like "ruby myscript.rb" it work well. But when I run it via supervisord and via sinatra, it says "No such file or directory - ls -la /". How can I fix it?
[14:41:33] crazydiamond: niik00, does that differ from short form?
[14:43:38] crazydiamond: niik00, system('ls -la /') via sinatra and supervisord returns nil, and works well via just "ruby myscript.rb"
[14:45:48] crazydiamond: niik00, ok, thanks
[14:46:09] crazydiamond: btw, I guess now that this is rather rvm/supervisord configuration issue. Is there way to fix that instead? I.e. some manual how to deploy sinatra app with proper version of ruby (installed via rvm)?
[14:50:55] crazydiamond: niik00, my local pc
[14:51:19] crazydiamond: it's no problem for eiter my user or root to do that
[14:52:07] crazydiamond: I wanna my app to work on address like 127.0.0.1:8001
[14:52:16] crazydiamond: when I boot the pc
[14:52:45] crazydiamond: and when I visit it - to read stuff from disk and display info for me
[14:54:47] crazydiamond: niik00, it reads contents of files, processes them and shows to me
[14:55:04] crazydiamond: to count how many time I spend on things
[14:55:21] crazydiamond: like silly time-management tool
[15:09:31] crazydiamond: jhass, my real command is:
[15:09:46] crazydiamond: find /home/andrey/do/ -type f | grep -v Makefile | grep -v "\\.swp" | grep -v "\\.rb" | grep -v "\\.color"
[15:10:06] crazydiamond: (easier to do for me in bash than ruby)
[15:12:10] crazydiamond: cool :D thanks
[15:13:00] crazydiamond: and you're right `ls` wasn't avaliable as a command for me
[15:14:56] crazydiamond: my supervisor config is like this http://dpaste.com/1BNRC7C
[15:16:54] crazydiamond: however. to check that I must output path in my actual environment and standard one, and compare them
[16:20:32] crazydiamond: When I'm reading UTF-8 endcoded-file with, must I apply some decoding operations to lines before process them?
[16:25:54] crazydiamond: eam, jhass uhm, US-ASCII
[16:27:17] crazydiamond: Encoding.default_internal = Encoding::UTF_8
[16:27:17] crazydiamond: ok. Encoding.default_external = Encoding::UTF_8
[16:27:49] crazydiamond: btw, is that good idea to run web framework such as sinatra via supervisor?
[16:34:56] crazydiamond: >> while true do end

2014-08-02

[09:26:02] crazydiamond: Hi. In RSpec, is should syntax deprecated?
[09:31:23] crazydiamond: Nilium, I've got this: http://dpaste.com/2TKMHNX
[09:32:05] crazydiamond: ok, seems that I should enable it
[09:32:15] crazydiamond: or, in other words: it expects me to enable it
[09:43:56] crazydiamond: Nilium, mine ones?
[11:24:33] crazydiamond: how to calculate difference between two DateTime's in (hours minutes, seconds)? reference says that - method for Date (which's parent of DateTime) returns date or rational http://ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/Date.html#method-i-2D
[11:27:13] crazydiamond: shevy, ok, it will return me days. so, how I convert these to hours, minutes and seconds?
[11:27:57] crazydiamond: shevy, it returns Rational, that expresses days
[11:28:36] crazydiamond: irb(main):031:0> (DateTime.new(2014, 8, 2, 12, 30, 0) - DateTime.new(2014, 8, 1, 0, 0, 0)).class
[11:29:16] crazydiamond: shevy, Rational
[11:29:31] crazydiamond: shevy, ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
[11:30:34] crazydiamond: so, If I'm just learning ruby, must I start with 2?
[11:31:06] crazydiamond: shevy, I can multiply it * 60 * 60 * 24 and this will give me seconds
[11:31:23] crazydiamond: to be more precise
[11:31:39] crazydiamond: (diff * 60 * 60 * 24).to_i
[11:44:40] crazydiamond: does ruby have more powerful shell than irb, which has all the autocomplete features etc?
[11:49:51] crazydiamond: shevy, thanks!
[11:56:26] crazydiamond: robscormack, atmosx thanks. hacking it now