sagax

Activity Graph

Page 1 of 4 | Next »

2019-04-22

[05:19:25] sagax: has joined #RubyOnRails
[05:19:25] sagax: has joined #ruby
[13:43:42] sagax: Ping timeout: 246 seconds

2019-04-20

[07:21:16] sagax: Ping timeout: 250 seconds
[07:23:13] sagax: has joined #ruby
[22:15:57] sagax: Ping timeout: 246 seconds

2019-04-18

[05:41:43] sagax: how to expand array? [1,2,3] to get 1, 2, 3
[05:41:54] sagax: some like as *[1,2,3]
[05:45:16] sagax: oh, nothing, i another problem
[06:19:53] sagax: why `Set` can't convert to json?
[06:20:57] sagax: i must cast `Set` to `Array` and after cast `Array` to `json`
[06:21:02] sagax: but it's strange

2019-04-16

[07:01:31] sagax: Ping timeout: 268 seconds
[07:17:16] sagax: has joined #ruby
[19:15:29] sagax: we have Struct - wow
[19:15:37] sagax: i don't know about this before
[19:24:10] sagax: ytti: already
[19:24:58] sagax: Zarthus: where is?
[19:37:57] sagax: Zarthus: you know about rusnet?
[19:38:21] sagax: Zart ты ли это? ^_^
[19:42:25] sagax: oh, sorry
[22:15:00] sagax: i can use `if` when declare some variable - example foo = "bar" if true
[22:15:18] sagax: but how to use `else` when declare some var?
[22:18:51] sagax: hm, i can use ||

2019-04-15

[12:51:54] sagax: to get first char from string `"foo".chr` - it's right way?
[12:52:01] sagax: or have better?
[13:06:53] sagax: i check .chr in ruby 2.5.1

2019-04-13

[16:49:57] sagax: *.net *.split

2019-04-08

[10:26:43] sagax: Ping timeout: 245 seconds
[13:59:59] sagax: has joined #ruby

2019-04-07

[18:17:06] sagax: Read error: No route to host
[19:24:43] sagax: has joined #ruby

2019-04-04

[10:21:47] sagax: Ping timeout: 268 seconds
[21:29:47] sagax: has joined #ruby

2019-03-26

[05:48:46] sagax: Ping timeout: 246 seconds
[10:01:36] sagax: has joined #ruby

2019-03-24

[19:24:43] sagax: has joined #ruby

2019-03-20

[21:35:25] sagax: Ping timeout: 246 seconds

2019-03-18

[04:53:37] sagax: has joined #ruby
[07:57:28] sagax: Ping timeout: 250 seconds
[09:02:08] sagax: has joined #ruby
[19:19:31] sagax: can i ask about rvm?
[19:40:49] sagax: https://termbin.com/jc1x why i can't update `rvm` ?
[19:54:36] sagax: thanks to all

2019-03-16

[05:14:47] sagax: Quit: Konversation terminated!

2019-03-14

[06:11:21] sagax: what different between dot notation `.` and `::`
[07:38:10] sagax: if i need all without first element - it's normal way?
[07:38:12] sagax: f=[1,2,3,4,5]; f.slice(1, f.length)
[07:46:54] sagax: no, without modified
[12:21:17] sagax: what the best? [].append or [] << ?
[12:33:37] sagax: [] << some_value
[17:06:25] sagax: we have some like as `filter` from array?
[17:08:18] sagax: yes, 2.5.1 ruby
[17:25:11] sagax: has joined #RubyOnRails
[17:25:29] sagax: how to get only `id` in activerecord ?
[17:26:57] sagax: i can use `map` like as Some.all.map {|s| s.id}
[17:27:01] sagax: to get all ids
[17:27:14] sagax: but maybe activerecord already can do this
[17:29:21] sagax: `if not` it's normal way? or better write `!=` ?

2019-03-13

[16:29:51] sagax: Remote host closed the connection
[16:44:07] sagax: has joined #ruby

2019-03-12

[00:24:10] sagax: Quit: Konversation terminated!
[03:42:31] sagax: has joined #ruby
[08:38:38] sagax: Ping timeout: 272 seconds
[12:40:50] sagax: has joined #ruby
[18:49:01] sagax: what best way to execute some external script in ruby?
[18:49:07] sagax: execute and get output
[18:51:47] sagax: backtick/system/exec/sh/popen/popen2e/process.spawn
[18:58:33] sagax: wow https://i.stack.imgur.com/1Vuvp.png
[19:00:12] sagax: well, i need backticks
[19:14:22] sagax: yes, backticks and system - all what i need

2019-03-08

[07:08:49] sagax: who use vim - what the best colorscheme for ruby?
[08:19:38] sagax: i will try this
[20:08:34] sagax: how to right catch/throw ?
[20:10:19] sagax: i am not about begin/rescue
[22:12:34] sagax: i see this http://phrogz.net/programmingruby/tut_exceptions.html and this https://gist.github.com/JoshTGreenwood/4122195 and this https://jacopretorius.net/2012/01/catch-and-throw-in-ruby.html
[22:12:53] sagax: but i don't understand - right way to use throw/catch
[22:13:35] sagax: catch :foo do throw :foo end - it's strange
[22:20:56] sagax: i want understand catch/throw
[22:22:04] sagax: i need catch/throw
[22:27:19] sagax: catch/throw can return result
[22:27:28] sagax: and catch/throw can stop block
[22:27:35] sagax: just stop
[22:27:38] sagax: without exception
[22:27:44] sagax: stop and return something
[22:33:10] sagax: begin/rescue it's about exceptions,
[22:33:16] sagax: but i don't need it
[22:34:07] sagax: i need just stop function and return something
[22:34:15] sagax: all this can do catch/throw
[22:34:50] sagax: no, return it's ugle
[22:34:59] sagax: it's like as switch/case
[22:35:07] sagax: or if/else/if/else/if/else
[22:35:53] sagax: ok, i show,
[23:06:46] sagax: http://susepaste.org/view//43558323
[23:07:47] sagax: it's simple examples
[23:08:53] sagax: if i use return i need if/else/if/else/if/else
[23:09:00] sagax: throw i can call in any place
[23:09:54] sagax: return "something" if some - it's not what i need
[23:10:55] sagax: i use throw to stop function

2019-03-07

[06:12:12] sagax: how to write model in activerecord if name with `s`? example name `SomeStatus`, i must write `SomeStatu` but `Status` it's single word
[06:41:54] sagax: thanks to all, all done
[08:27:55] sagax: yes, thanks
[08:27:57] sagax: i do this
[18:10:26] sagax: Quit: Konversation terminated!
[18:10:48] sagax: has joined #ruby
[18:11:17] sagax: Client Quit
[18:11:33] sagax: has joined #ruby
[18:14:49] sagax: has joined #RubyOnRails
[21:23:44] sagax: Read error: Connection reset by peer
[21:41:49] sagax: has joined #ruby

2019-03-06

[04:12:31] sagax: has joined #RubyOnRails
[04:12:54] sagax: how to setup some attribute after fetch data from sql?
[04:13:04] sagax: question about activerecord
[04:13:27] sagax: i need setup some custom attribute
[05:00:07] sagax: i can't understand, `Dir` - what this method? Example why `Dir["/"]` work but Dir ["/"] or Dir(["/"]) don't work ?
[05:05:19] sagax: Dir["/"] see like as magic
[05:06:49] sagax: wow, thanks
[08:02:38] sagax: `defined? foo.method` it's good way to check that method exists?
[08:05:04] sagax: or `respond_to?` better?

2019-03-05

[16:19:33] sagax: how to return hash with standart raise? raise StandardError, {:foo => "bar"}
[16:20:04] sagax: when i catch err.message in rescue i see that err.message it's string
[18:26:38] sagax: Remote host closed the connection
[19:37:42] sagax: has joined #ruby

2019-03-02

[19:41:57] sagax: has joined #ruby

2019-03-01

[23:42:07] sagax: Ping timeout: 245 seconds

2019-02-27

[03:36:40] sagax: has joined #ruby
[11:57:20] sagax: Quit: Konversation terminated!
[11:58:02] sagax: has joined #ruby

2019-02-26

[07:38:23] sagax: Ping timeout: 245 seconds
[07:50:56] sagax: has joined #ruby
[09:44:15] sagax: Read error: Connection reset by peer
[10:56:35] sagax: has joined #ruby
[12:30:29] sagax: Ping timeout: 255 seconds
[23:13:39] sagax: Ping timeout: 272 seconds

2019-02-25

[16:41:43] sagax: Ping timeout: 245 seconds
[18:00:17] sagax: has joined #ruby
[18:00:18] sagax: has joined #RubyOnRails
[18:50:34] sagax: how to make real thread in ruby? not green thread
[18:55:17] sagax: how to make thread in ruby without GIL?
[18:55:31] sagax: or ruby 1.9+ can this?
[19:08:13] sagax: thanks to all

2019-02-23

[21:56:42] sagax: Ping timeout: 246 seconds
[22:11:32] sagax: has joined #ruby

2019-02-21

[02:27:54] sagax: has joined #ruby

2019-02-20

[16:40:04] sagax: Ping timeout: 250 seconds
[17:18:19] sagax: has joined #RubyOnRails
[17:18:19] sagax: has joined #ruby
[19:58:25] sagax: what plugin can minify html ?
[19:59:11] sagax: like as `html source` -> `plugin` -> `html minified`
[20:02:24] sagax: i need just plugin who can read source and send output
[22:17:39] sagax: Ping timeout: 246 seconds

2019-02-19

[05:15:43] sagax: how to hot reload code without rerun script?
[14:14:48] sagax: how to `symbolize_keys` total?
[14:15:25] sagax: because when i try `symbolize_keys` will convert as `sym` only first level
[14:15:33] sagax: from hash
[14:17:21] sagax: yes, thanks
[14:17:39] sagax: it is what i need
[15:19:46] sagax: has joined #RubyOnRails
[15:20:19] sagax: why activerecord 5 not work with field `password_hash` ?
[15:20:42] sagax: active record not set and not save field if field has name `password_hash`, strange
[15:30:33] sagax: strange, when i set attribute with `self.some_attribute = some_value` it's not saved, but if i set attribute with `write_attribute(:some_attrubute, some_value)` it's work
[15:46:45] sagax: uff, it's my bad, all ok

2019-02-18

[02:29:54] sagax: has joined #ruby

2019-02-17

[21:18:07] sagax: Ping timeout: 240 seconds

2019-02-15

[10:35:57] sagax: how to dump only schema from sqlite3 ?
[10:36:05] sagax: schema without any data
[10:44:06] sagax: just in sqlite3 tool
[10:51:33] sagax: i use sqlite with ruby

2019-02-13

[05:40:58] sagax: Ping timeout: 246 seconds
[05:51:15] sagax: has joined #ruby

2019-02-11

[10:35:04] sagax: Ping timeout: 250 seconds
[12:55:12] sagax: has joined #ruby

2019-02-10

[09:49:04] sagax: Ping timeout: 246 seconds
[09:51:30] sagax: has joined #ruby

2019-02-05

[03:48:35] sagax: has joined #ruby
[04:45:32] sagax: Ping timeout: 272 seconds
[14:41:12] sagax: has joined #ruby

2019-01-31

[17:03:39] sagax: Ping timeout: 272 seconds
[17:22:34] sagax: has joined #ruby
[17:22:34] sagax: has joined #RubyOnRails
[19:11:49] sagax: Ping timeout: 268 seconds

2019-01-28

[20:59:30] sagax: has joined #RubyOnRails
[20:59:30] sagax: has joined #ruby

2019-01-24

[01:28:54] sagax: has joined #RubyOnRails
[01:28:54] sagax: has joined #ruby
[15:03:10] sagax: Ping timeout: 272 seconds

2019-01-20

[22:10:15] sagax: Ping timeout: 246 seconds

2019-01-18

[20:14:09] sagax: has joined #RubyOnRails
[20:14:09] sagax: has joined #ruby

2019-01-17

[23:36:34] sagax: Quit: Konversation terminated!

2019-01-13

[12:11:27] sagax: Ping timeout: 258 seconds
[13:00:00] sagax: has joined #ruby
[16:21:00] sagax: Ping timeout: 258 seconds
[18:13:56] sagax: has joined #ruby
[19:48:30] sagax: Ping timeout: 246 seconds
[19:57:34] sagax: has joined #RubyOnRails
[19:57:34] sagax: has joined #ruby

2019-01-12

[23:51:25] sagax: has joined #ruby

2018-12-27

[09:19:37] sagax: Ping timeout: 246 seconds

2018-12-24

[15:43:28] sagax: Ping timeout: 268 seconds
[15:59:01] sagax: has joined #ruby

2018-12-21

[22:41:08] sagax: what i can read about `` ?
[22:42:04] sagax: `` it's for execute command of system shell
[22:43:08] sagax: i want to know - how it's work
[22:43:13] sagax: not just some example
[22:50:42] sagax: thanks, Eiam
[22:52:54] sagax: it's possible to know - how ruby was compiled?
[22:53:06] sagax: what keys was used