tuor

Activity Graph

Page 1 of 2 | Next »

2018-11-07

[10:41:07] tuor: has joined #ruby
[10:41:09] tuor: has joined #RubyOnRails
[18:23:55] tuor: Quit: Konversation terminated!

2018-10-31

[11:36:00] tuor: has joined #ruby
[11:36:02] tuor: has joined #RubyOnRails
[12:33:32] tuor: Quit: Konversation terminated!

2018-10-30

[07:50:32] tuor: has joined #ruby
[07:50:33] tuor: has joined #RubyOnRails
[08:15:48] tuor: Quit: Konversation terminated!

2018-10-25

[07:09:26] tuor: has joined #ruby
[07:09:27] tuor: has joined #RubyOnRails
[08:32:15] tuor: Ping timeout: 246 seconds
[09:40:34] tuor: has joined #ruby
[09:40:36] tuor: has joined #RubyOnRails
[10:23:18] tuor: Ping timeout: 244 seconds

2018-10-24

[07:31:39] tuor: has joined #ruby
[07:31:40] tuor: has joined #RubyOnRails
[16:00:26] tuor: Quit: Konversation terminated!

2018-10-23

[05:42:50] tuor: has joined #ruby
[05:42:52] tuor: has joined #RubyOnRails
[14:05:16] tuor: Quit: Konversation terminated!

2018-10-22

[07:01:58] tuor: has joined #ruby
[07:01:59] tuor: has joined #RubyOnRails
[12:17:21] tuor: Ping timeout: 252 seconds

2018-10-19

[11:23:07] tuor: has joined #ruby
[11:23:08] tuor: has joined #RubyOnRails
[16:16:24] tuor: Quit: Konversation terminated!

2018-10-18

[06:19:10] tuor: has joined #ruby
[06:19:12] tuor: has joined #RubyOnRails
[08:24:18] tuor: Ping timeout: 244 seconds

2018-10-17

[07:39:19] tuor: has joined #ruby
[07:39:20] tuor: has joined #RubyOnRails
[14:25:03] tuor: Ping timeout: 245 seconds

2018-09-20

[09:54:17] tuor: has joined #ruby

2018-09-19

[06:59:28] tuor: has joined #ruby
[16:25:03] tuor: Ping timeout: 245 seconds

2018-09-18

[08:58:41] tuor: has joined #ruby
[10:44:38] tuor: Ping timeout: 245 seconds
[11:08:13] tuor: has joined #ruby
[14:21:06] tuor: Ping timeout: 272 seconds

2018-09-17

[05:45:02] tuor: has joined #ruby
[06:11:20] tuor: Ping timeout: 272 seconds

2018-09-14

[09:19:19] tuor: has joined #ruby
[15:23:02] tuor: Quit: Konversation terminated!

2018-09-11

[08:08:14] tuor: has joined #ruby
[08:09:12] tuor: hi, I have installed the rvm package from the ppa: ppa.launchpad.net/rael-gc/rvm/ubuntu/.
[08:11:23] tuor: Now I have tried to install ruby with rvm, but I got a lot of erros like this: tar: binscripts: Cannot utime: Operation not permitted
[08:12:18] tuor: What could be the problem?
[08:20:46] tuor: Knappe: did the trick thx.: rvmsudo rvm get stable
[08:22:21] tuor: has joined #RubyOnRails
[08:23:57] tuor: Knappe: checkout https://freenode.irclog.whitequark.org/ruby/2018-09-10 for the history of yersturday
[08:24:31] tuor: s/yersturday/yesterday
[08:27:25] tuor: found it in the channel description. ;)
[08:34:00] tuor: :) -> ruby-2.5.1 - #compiling.....
[15:53:55] tuor: Ping timeout: 246 seconds

2018-08-08

[14:47:45] tuor: has joined #ruby
[15:00:22] tuor: Ping timeout: 264 seconds

2018-07-26

[06:50:45] tuor: has joined #ruby
[06:51:28] tuor: (my setup: Ubuntu 16.04) Hi, I have installed gem with sudo and now I always need sudo to install gems. How can I remove all gems and start over with all my gems in my $HOME? So I don't require sudo to install gems....
[07:07:37] tuor: apt install ruby (I think)
[07:07:52] tuor: dalpo: pretty shure yes.
[07:08:40] tuor: I want to be able to install gems an use bundle and rake in my home without sudo. What do I have to do?
[07:12:24] tuor: I'm the only user of this laptop. Can I install ruby in a way, that gem, bundle, rake, what ever is all handled inside my home by default?
[07:33:06] tuor: I'll check it out. thx all of you for your help!
[07:34:07] tuor: Quit: Konversation terminated!
[07:37:42] tuor: has joined #ruby
[07:38:02] tuor: ACTION is back again.
[08:02:19] tuor: Radar: thx :)
[08:29:09] tuor: Ping timeout: 244 seconds
[09:45:18] tuor: has joined #ruby
[10:55:27] tuor: Ping timeout: 240 seconds
[12:38:39] tuor: has joined #ruby
[13:46:36] tuor: Quit: Konversation terminated!

2018-07-25

[14:33:52] tuor: has joined #ruby
[14:39:29] tuor: Ping timeout: 265 seconds

2016-01-12

[07:44:59] tuor: has left #ruby: ("WeeChat 1.3")

2016-01-11

[17:15:49] tuor: has joined #ruby

2016-01-05

[10:23:00] tuor: has left #ruby: ("WeeChat 1.3")

2015-12-21

[09:50:28] tuor: *.net *.split
[09:56:45] tuor: has joined #ruby

2015-12-02

[15:37:01] tuor: *.net *.split
[15:41:36] tuor: has joined #ruby
[15:53:11] tuor: *.net *.split
[16:47:51] tuor: has joined #ruby

2015-11-30

[22:47:14] tuor: Ping timeout: 245 seconds
[22:59:21] tuor: has joined #ruby

2015-11-29

[22:18:30] tuor: *.net *.split
[23:08:44] tuor: has joined #ruby

2015-11-27

[08:42:01] tuor: *.net *.split
[10:34:48] tuor: *.net *.split

2015-11-26

[08:09:21] tuor: has joined #ruby
[08:44:00] tuor: *.net *.split
[09:32:10] tuor: has joined #ruby
[18:33:46] tuor: *.net *.split

2015-11-22

[03:45:57] tuor: *.net *.split
[03:56:17] tuor: has joined #ruby

2015-11-14

[05:51:05] tuor: Ping timeout: 250 seconds
[05:51:58] tuor: has joined #ruby

2015-10-16

[00:13:38] tuor: has joined #ruby

2015-10-01

[07:19:37] tuor: Ping timeout: 265 seconds
[07:33:12] tuor: has joined #ruby
[10:36:52] tuor: hi, what gem would you use for managing keepass databases? (I know there are multiple but which one do you recomend?)
[10:38:39] tuor: "gem search --remote keepass" gives me 5

2015-09-30

[08:15:54] tuor: Quit: WeeChat 1.1.1
[08:28:11] tuor: has joined #ruby
[10:00:43] tuor: Quit: WeeChat 1.1.1
[10:00:57] tuor: has joined #ruby
[10:26:17] tuor: Remote host closed the connection
[10:26:30] tuor: has joined #ruby
[10:27:33] tuor: Client Quit
[10:27:45] tuor: has joined #ruby
[10:29:54] tuor: Client Quit
[10:30:06] tuor: has joined #ruby
[10:31:56] tuor: Client Quit
[10:32:08] tuor: has joined #ruby
[10:43:59] tuor: Quit: WeeChat 1.1.1
[10:44:12] tuor: has joined #ruby
[10:48:27] tuor: Client Quit
[10:48:52] tuor: has joined #ruby
[10:51:56] tuor: Client Quit
[10:53:28] tuor: has joined #ruby
[10:55:54] tuor: Client Quit
[11:00:21] tuor: has joined #ruby
[11:01:29] tuor: Client Quit
[14:01:11] tuor: has joined #ruby
[14:05:24] tuor: jhass, so I tried to improve my code: https://gist.github.com/nod0n/d01024a5b6aecab2b1c7
[14:09:02] tuor: For all the people which help me a time ago to improve my code, here is a new version of my class: https://gist.github.com/nod0n/d01024a5b6aecab2b1c7
[14:10:57] tuor: I tried to improve some stuff, but I know error handling is mostly missing and it's still not logging. Apart from this, what would you improve/change?
[14:13:21] tuor: certainty, why? (what would be the benefit?)
[14:16:09] tuor: export or import templates from a zabbix server.
[14:17:31] tuor: The thing is, it's using a gem for using the zabbix api. This class should give the missing possibility of the ZabbixApi gem.
[14:18:02] tuor: certainty, ok. I'll think about how to separate them. But when they need the same code (some methods) what do I do then?
[14:19:03] tuor: ok. Then i should make one class for the shared stuff, and one for each function (import | export).
[14:22:12] tuor: ok. I'll think about it (and try).
[14:28:50] tuor: Remote host closed the connection
[14:29:05] tuor: has joined #ruby
[14:36:08] tuor: Remote host closed the connection
[14:36:21] tuor: has joined #ruby
[14:42:30] tuor: Remote host closed the connection
[14:42:42] tuor: has joined #ruby
[14:56:42] tuor: Remote host closed the connection
[14:56:56] tuor: has joined #ruby
[15:14:05] tuor: has joined #ruby
[15:14:05] tuor: Changing host

2015-09-29

[08:42:01] tuor: hi, when i have a if statement with only one line in it (like: if true; do_this; end) but it's to long to write it on one line (more the 80 letters), should I write it with "if ...;..;end" or "... \;if ..." ?
[08:46:53] tuor: https://gist.github.com/anonymous/e6ba8f2ed251b4a4b6cf
[08:47:09] tuor: It's just examples for what I meen.
[08:50:27] tuor: This is a method from my code: https://gist.github.com/anonymous/3419030c49b780c29716
[08:51:01] tuor: line 14 was to long for writing it like 11 or 12.
[08:51:44] tuor: jhass, can you explain what you meen (with the new code example), I don't understand it.
[08:53:40] tuor: jhass, now it does: https://gist.github.com/anonymous/38fd228560c3eee6287b
[08:55:00] tuor: the difference between the two pastes is what i meen. I would like to write like in the second one (on one line) but it's to long. So the question is: is it ok to write it like this: https://gist.github.com/anonymous/acdd9af77c53de966673
[08:55:50] tuor: jhass, OK. That was what I wanted to know. :)
[08:56:22] tuor: I was not focusing on aligning, but shure.
[09:04:19] tuor: jhass, the other lines need to be in the first if statement to. (check_key_string is a method which checks if the param1 is a hash, if the key param2 exists and if the value of the key param2 is a not empty string.) I don't know how to call it... It's because options can be set or not and if they are set, they should be the correct datatype.
[09:07:49] tuor: jhass, the complete class: https://gist.github.com/anonymous/2be41cd6f103611fc885
[09:11:30] tuor: jhass, thx, it's changed.
[09:12:12] tuor: If there are any puts '...' remaining, there was just for testing stuff.
[09:14:18] tuor: jhass, I'll need a moment understanding what you did.
[09:15:25] tuor: ah yes I see. looks nice.
[09:22:54] tuor: jhass, ok the abstraction thing would be biger changes, so i begin with the other stuff. I'll be back.
[10:13:07] tuor: jhass, so i did some changes: https://gist.github.com/anonymous/b63c98f2f204fd75ce98 (I don't know how to show diff between 2 pastes....)
[10:13:43] tuor: jhass, ah.
[10:17:56] tuor: jhass, better looking... https://gist.github.com/nod0n/e9db3cb04b4eb5557027/revisions
[10:18:32] tuor: jhass, i didn't change the names of all the methods because i want to rethink about how to do it and then directly rewrite with better names.
[10:18:45] tuor: I just want to do all the other stuff first.
[10:20:03] tuor: To assign to @templates_list comes with how I used it befor. I just didn't removed it (because I don't checked if it's realy changed every where)
[10:22:39] tuor: ACTION is working on list_templates.
[10:28:01] tuor: jhass, so the list_templates is cleaned a little bit up: https://gist.github.com/nod0n/e9db3cb04b4eb5557027
[10:29:44] tuor: I'll have a breake and then try to rewrite the options stuff. Cu later. Thx for your help jhass! :)

2015-09-28

[01:38:51] tuor: Ping timeout: 250 seconds
[01:47:23] tuor: has joined #ruby

2015-09-23

[10:17:10] tuor: hi, what is the difference between Hash.key?() and Hash.has_key?() ?
[10:20:39] tuor: ah ok. thx.

2015-09-16

[07:27:15] tuor: has joined #ruby
[07:33:39] tuor: hi, code: https://gist.github.com/anonymous/e8e67cc91e932aaf2f00
[07:36:25] tuor: It's about read_config_file. The file exists but the code l130 isn't run. I tryed to start pry and include the class. I created a instance of it and called the method but config_file is still an empty Hash.
[07:37:03] tuor: I don't get any syntax error. Now I just don't know how to find out what is going wrong...
[07:38:15] tuor: What I want with this method (if it's not clear): read a YAML file and create a ruby hash object wich contains (for the moment) only one key
[07:38:54] tuor: key: 'blacklist' value: [ 'sting 1', 'sting 2' ]
[07:39:21] tuor: I hope it's understandable. ;)
[07:45:57] tuor: I tried it "manualy" in pry there it works: https://gist.github.com/anonymous/41124d7df7a451886c2a
[07:53:46] tuor: certainty, no it doesn't.
[07:56:38] tuor: certainty, I did it so (just for not speaking of different thing): https://gist.github.com/anonymous/e00d3493020555a20458
[08:05:49] tuor: certainty, hmm ok. I tried this: https://gist.github.com/anonymous/8d9f7a13be0bfaef9f10
[08:06:17] tuor: This doesn't start pry but prints the 'file exists'.
[08:06:49] tuor: so there is a prblem with my @config_file_name
[08:06:59] tuor: I'll search a little bit. Thx certainty
[08:13:40] tuor: hmm. @config_file_name is an empty string... I have to find why.
[08:16:48] tuor: ah found. Man it's not the problem of the class. It's the script using it which gives an empty string as the second argument.
[13:05:29] tuor: New general question: is it "good"/"ok"/"bad" to use methods to acces and set object variables? Should i have this for all my object variables? (like this: https://gist.github.com/anonymous/2b7e1b224cd04057315f)
[13:06:02] tuor: and use in the same class only the methods and don't acces directly the variable with @myvar
[13:07:35] tuor: [k-_, Ah ok. So only use accessors if it's needed from outside?
[13:09:43] tuor: jhass, ok.
[13:09:49] tuor: [k-_, ok.
[13:12:39] tuor: So what I do in the class is up to me, so long I do it the same in the complete class. I give accessors if needed.

2015-08-17

[09:18:50] tuor: has left #ruby: ("WeeChat 1.1.1")

2015-08-12

[06:56:06] tuor: has left #ruby-offtopic: ("WeeChat 1.1.1")
[15:59:54] tuor: hi, I have finished the first version of my "mini gem". It's just one thing and it's based on an other one. So this is the code: https://gist.github.com/anonymous/1573a0036fa6605c3e54
[16:01:17] tuor: it's my first ruby programm. My first (more the 10 line) programm. I know bash but that's it. So pleas tell me what you would do better or so. thx. :)
[16:03:01] tuor: it's working. So review^^ I mean if someone has time. Or just review "fast". Or just how the syntax is.
[16:03:51] tuor: It's about how to write ruby in global.
[16:04:06] tuor: ljarvis, <-
[16:07:19] tuor: ljarvis, ah ok. I'll change the constant name and this to.
[16:12:22] tuor: ok. I'll read one after other.^^
[16:13:17] tuor: shevy, what do you meen with: "line 51 seems off"
[16:14:16] tuor: [k-_, thats the normal username when you install. So if you want to test then it works. When you use it, you give your own stuff to .new()
[16:15:47] tuor: atmosx, I don't understand why not using variables. ( I wouldn't use instance variabels in teh code, I'd use attr_reader to depend on behavior not ata)
[16:17:15] tuor: atmosx, ah ok.
[16:30:00] tuor: ACTION will slowly go over all you wrote and thx for so much answers! Tuor will later post the changed code.
[17:14:35] tuor: OK. I think i have done the changes. The code still works. :): https://gist.github.com/anonymous/2e0ad8ed1fb72e97913a
[17:16:19] tuor: atmosx, a logger & error handling will be a bigger task, can't do it in 5 min. So I'll do it in future. (it's on my list now)
[17:17:23] tuor: mikecmpbll, "18:14:54 use the json style hash syntax for symbolic keys" I don't understand what you meen.
[17:18:41] tuor: atmosx, yes I know that people pay for checking code and I'm very grateful.
[17:20:05] tuor: atmosx, "judging by your code, I think you're kinda ready to read this book...": I have a book about ruby basics. I'll have to read (and train) this one first. But Then I'll see (I have it in a bookmark)
[17:21:54] tuor: [k-, line is added, I'll google robucop.
[17:24:51] tuor: havenwood, just forgott about this one, but why DEFAULT_RULES and not RULES_DEFAULT? I meen I just like to write names like this. So is it important which way?
[17:25:00] tuor: atmosx, ah ok.
[17:25:19] tuor: mikecmpbll, ah ok.
[17:26:18] tuor: havenwood, I know that the computer doesn't care. and: RULES_DEFAULT ^^
[17:28:17] tuor: havenwood, no, but it's just about rules and there are the default ones. So the name begins with rules and default is just an aditional information about which rules. ;)
[17:28:34] tuor: But I see it's not realy logic for other people.
[17:28:49] tuor: I'll think of changing it.
[17:30:36] tuor: So Thx all of you for your help! :)

2015-08-11

[14:04:16] tuor: has joined #ruby-offtopic
[14:04:38] tuor: hi, which ide do you use for writing ruby (linux)?
[14:07:39] tuor: adaedra, ok. I use vim at the moment. But I like to move to a grahpical editor (nicer look) and little features.
[14:08:11] tuor: So just tryed geany. But it's not indenting automaticly with ruby.
[14:19:09] tuor: I don't *need* more. vim can do all I need (I think). It's about looking and how to work. I know vim and gvim. I use vim since over a year. I just want to try other stuff.
[14:22:58] tuor: lol. french is nice. :)

2015-08-07

[13:18:16] tuor: -> jhass
[13:18:28] tuor: [k-_, the line would be longer the 80 letters...
[13:19:34] tuor: jhass, the tree depth should normaly be max at 3 level or very max 5
[13:20:36] tuor: [k-_, I don't get what you say. Can you tell me what I have to search online for understanding what you write?
[13:21:20] tuor: jhass, ah nice idea! thx
[13:23:12] tuor: jhass, yes. Then i does a litle less disk IO. But I don't realy know which would be faster. Both is ok.
[13:23:32] tuor: To have it in import_template is nice.
[13:25:01] tuor: [k-_, no checks aren't but when there is code which is not need, then why not remove it.
[14:17:11] tuor: when I call importe_templates i get the error: "undefined method `inlcude?' for []:Array" https://gist.github.com/anonymous/38d02db914db7a8ce916
[14:17:20] tuor: why? Man I don't get git :(
[14:17:45] tuor: [k-_, ah thx!!!
[14:17:53] tuor: was searching for >15min
[14:21:00] tuor: [k-_, I'm coding for 8.5 hours nonstop now... I have to eat something^^