sarkyniin

Activity Graph

Page 1 of 4 | Next »

2015-09-05

[11:29:04] sarkyniin: has joined #ruby
[13:00:48] sarkyniin: Ping timeout: 264 seconds

2015-09-04

[11:25:23] sarkyniin: has joined #ruby
[11:34:07] sarkyniin: Remote host closed the connection
[11:34:30] sarkyniin: has joined #ruby
[11:36:07] sarkyniin: Remote host closed the connection
[11:36:30] sarkyniin: has joined #ruby
[13:07:51] sarkyniin: Ping timeout: 240 seconds
[13:11:36] sarkyniin: has joined #ruby
[14:23:07] sarkyniin: Ping timeout: 240 seconds
[14:31:35] sarkyniin: has joined #ruby
[14:38:11] sarkyniin: Ping timeout: 265 seconds
[14:53:35] sarkyniin: has joined #ruby
[16:35:27] sarkyniin: Ping timeout: 240 seconds
[16:45:43] sarkyniin: has joined #ruby
[17:55:52] sarkyniin: Ping timeout: 265 seconds
[20:16:44] sarkyniin: Ping timeout: 252 seconds
[20:19:51] sarkyniin: has joined #ruby
[21:40:38] sarkyniin: Read error: No route to host
[21:41:33] sarkyniin: has joined #ruby
[22:03:11] sarkyniin: Ping timeout: 240 seconds

2015-09-03

[11:23:42] sarkyniin: has joined #ruby
[13:04:07] sarkyniin: Read error: No route to host
[13:04:53] sarkyniin: has joined #ruby
[16:31:09] sarkyniin: Ping timeout: 268 seconds
[16:45:01] sarkyniin: has joined #ruby
[17:51:05] sarkyniin: has joined #ruby
[19:04:54] sarkyniin: has joined #ruby

2015-09-02

[11:54:35] sarkyniin: has joined #ruby
[14:15:51] sarkyniin: Read error: No route to host
[14:16:27] sarkyniin: has joined #ruby
[15:48:31] sarkyniin: Ping timeout: 240 seconds
[15:52:32] sarkyniin: has joined #ruby

2015-09-01

[12:49:28] sarkyniin: has joined #ruby
[13:24:36] sarkyniin: Ping timeout: 250 seconds
[18:12:43] sarkyniin: has joined #ruby
[22:49:30] sarkyniin: Remote host closed the connection

2015-08-31

[00:17:57] sarkyniin: Remote host closed the connection
[10:52:43] sarkyniin: has joined #ruby
[15:10:05] sarkyniin: Read error: Connection reset by peer
[15:10:32] sarkyniin: has joined #ruby
[16:50:49] sarkyniin: Ping timeout: 255 seconds
[16:54:25] sarkyniin: has joined #ruby
[19:01:08] sarkyniin: Read error: Connection reset by peer
[19:01:57] sarkyniin: has joined #ruby
[20:31:37] sarkyniin: has left #ruby: ("Left")

2015-08-30

[18:08:32] sarkyniin: has joined #ruby

2015-08-29

[17:44:33] sarkyniin: has joined #ruby
[19:13:54] sarkyniin: Ping timeout: 244 seconds
[20:14:31] sarkyniin: has joined #ruby
[21:10:09] sarkyniin: Ping timeout: 244 seconds
[21:29:32] sarkyniin: has joined #ruby
[21:34:07] sarkyniin: Ping timeout: 240 seconds

2015-08-28

[10:51:25] sarkyniin: has joined #ruby
[19:04:13] sarkyniin: has joined #ruby
[22:16:43] sarkyniin: has joined #ruby
[22:17:09] sarkyniin: Read error: Connection reset by peer

2015-08-26

[11:07:00] sarkyniin: has joined #ruby
[11:50:17] sarkyniin: Read error: Connection reset by peer
[12:48:57] sarkyniin: has joined #ruby
[12:56:57] sarkyniin: Ping timeout: 250 seconds
[13:11:48] sarkyniin: has joined #ruby
[13:12:37] sarkyniin: Remote host closed the connection
[14:22:49] sarkyniin: has joined #ruby
[15:14:51] sarkyniin: has joined #ruby
[15:15:32] sarkyniin: Remote host closed the connection
[15:27:49] sarkyniin: has joined #ruby
[19:29:09] sarkyniin: has joined #ruby
[21:04:07] sarkyniin: Ping timeout: 244 seconds
[21:14:07] sarkyniin: has joined #ruby
[21:52:39] sarkyniin: has joined #ruby
[23:16:18] sarkyniin: Remote host closed the connection
[23:20:42] sarkyniin: has joined #ruby
[23:22:39] sarkyniin: Remote host closed the connection

2015-08-25

[00:31:32] sarkyniin: how do I check if a string is an integer?
[00:32:28] sarkyniin: I found the solution
[00:32:31] sarkyniin: thanks anyway shevy
[00:33:51] sarkyniin: avdi: if I feed it 0.5
[00:33:59] sarkyniin: it'll output 0 and there will be no exception
[00:34:24] sarkyniin: I'm using "str.to_i.to_s == str" right now
[00:37:22] sarkyniin: oh I forgot the "
[02:08:21] sarkyniin: uh, I'm using OptionParser
[02:08:22] sarkyniin: opts.on('-U', '--update-cache', 'Update boards list cache') {create_boards_cache}
[02:08:28] sarkyniin: for some reason, this specific line doesn't work
[02:08:39] sarkyniin: gets parsed normally but the create_boards_cache function isn't executed
[02:08:43] sarkyniin: anyone knows why?
[02:09:46] sarkyniin: Ox0dea: odd... Looks like it works
[02:10:36] sarkyniin: chaining a test debug after works
[02:10:43] sarkyniin: but the call does not
[02:10:50] sarkyniin: but it works if I execute it on a separate line
[02:11:44] sarkyniin: yeah Ox0dea I think it's not seeing my method
[02:11:58] sarkyniin: tried to execute a puts2 command which is just a wrapper over puts
[02:12:00] sarkyniin: and it didn't work
[02:13:07] sarkyniin: yeah Ox0dea
[02:13:23] sarkyniin: http://hastebin.com/raw/ugifuderuc
[02:13:30] sarkyniin: this is the full optionparser block
[02:17:40] sarkyniin: Ox0dea: looks like it executes
[02:17:48] sarkyniin: the issue seems to come from my verbose output code
[02:18:05] sarkyniin: I should put the option last
[02:18:15] sarkyniin: so the verbose switch
[02:18:22] sarkyniin: will activate before the command
[02:19:05] sarkyniin: Ugh. When I place the flag first
[02:19:11] sarkyniin: it won't show the verbose messages
[02:19:16] sarkyniin: but if I place it last when invoking the command
[02:19:19] sarkyniin: it'll show them
[02:21:28] sarkyniin: Ox0dea: oh yea that works
[04:10:32] sarkyniin: Remote host closed the connection
[12:23:25] sarkyniin: has joined #ruby
[14:05:18] sarkyniin: is there any way to sanitize an html output (that I know is clean and well-formed) without using an external library?
[14:05:28] sarkyniin: just removing the html tags and replacing things like > with >
[14:10:58] sarkyniin: => "<p>Hello > World!</p>"
[14:10:58] sarkyniin: jhass: irb(main):002:0> CGI.escapeHTML('<p>Hello &gt; World!</p>')
[14:11:52] sarkyniin: jhass: I wanna replace things like &gt; with their real equivalent
[14:11:59] sarkyniin: while also stripping all html tags
[14:12:32] sarkyniin: uh I probably meant
[14:13:18] sarkyniin: I didn't want to add another dependency to my script but I guess it must be done
[14:14:17] sarkyniin: jhass: I guess that works
[15:26:39] sarkyniin: how do I specify a minimum ruby version for my script?
[15:27:14] sarkyniin: specifically, I want the minimum version to be 1.9.3
[15:27:17] sarkyniin: so I can't use .to_f
[15:27:26] sarkyniin: because it would remove the .3 and I wouldn't be able to compare anyway
[15:28:00] sarkyniin: adaedra: you can only specify one version of ruby
[15:28:01] sarkyniin: when using bundler
[15:28:04] sarkyniin: there's no "superior to"
[15:28:44] sarkyniin: adaedra: anyway, I found out comparing strings work
[15:28:46] sarkyniin: in this particular case
[19:04:53] sarkyniin: what's the best and easiest to use library for writing curses UIs?
[19:05:05] sarkyniin: ncurses-ruby or the former ruby curses library?
[19:06:52] sarkyniin: oh there's also vedeu
[19:06:57] sarkyniin: for writing terminal UIs
[19:27:09] sarkyniin: Read error: Connection reset by peer
[22:34:07] sarkyniin: has joined #ruby
[23:08:05] sarkyniin: Read error: Connection reset by peer
[23:21:37] sarkyniin: has joined #ruby
[23:26:18] sarkyniin: Ping timeout: 250 seconds
[23:44:58] sarkyniin: has joined #ruby
[23:49:25] sarkyniin: Client Quit

2015-08-24

[00:54:02] sarkyniin: Ping timeout: 252 seconds
[10:54:39] sarkyniin: has joined #ruby
[12:05:20] sarkyniin: Ping timeout: 256 seconds
[14:27:37] sarkyniin: has joined #ruby
[14:36:57] sarkyniin: Ping timeout: 246 seconds
[15:18:16] sarkyniin: has joined #ruby
[18:30:42] sarkyniin: Read error: Connection reset by peer
[19:06:27] sarkyniin: has joined #ruby
[19:16:52] sarkyniin: Disconnected by services
[19:44:22] sarkyniin: I have a little ruby script and I want to cache a small file
[19:44:43] sarkyniin: what's the preferred folder for that? XDG_CACHE or XDG_CONFIG_HOME? how do I save to those folders?
[20:09:39] sarkyniin: Ping timeout: 246 seconds
[21:22:12] sarkyniin: has joined #ruby
[21:25:17] sarkyniin: is File.write(filename, content) an acceptable way of writing to a file?
[21:25:20] sarkyniin: what are its limitations?
[21:26:37] sarkyniin: drbrain: it's just at short json file
[21:57:14] sarkyniin: uhh apparently the optionparser module
[21:57:20] sarkyniin: allows me to use autocompletion in shells like zsh
[21:57:26] sarkyniin: however, when pressing tab, nothing happens
[21:57:32] sarkyniin: do I need to restart my shell first or something
[21:58:58] sarkyniin: Ox0dea: in the optionparser doc, they mention this: "For modern shells (e.g. bash, zsh, etc.), you can use shell completion for command line options."
[21:59:07] sarkyniin: However, I can't actually use shell completion with my ruby script
[22:00:35] sarkyniin: Ox0dea: http://hastebin.com/raw/inumezijox
[22:00:48] sarkyniin: error on optionparser's side
[22:27:06] sarkyniin: http://hastebin.com/raw/vimivabese
[22:27:09] sarkyniin: is this behaviour normal?
[22:29:30] sarkyniin: jhass: how would I go about achieving what I want in a single command?
[22:29:33] sarkyniin: preferably without using regex
[22:30:47] sarkyniin: deleting two separate substrings from a string
[22:32:03] sarkyniin: just characters, Ox0dea
[22:32:09] sarkyniin: jhass: I guess I'll do that
[22:33:07] sarkyniin: jhass: sorry
[22:33:10] sarkyniin: yeah Ox0dea that works
[23:11:03] sarkyniin: Ping timeout: 272 seconds
[23:12:10] sarkyniin: has joined #ruby

2015-08-23

[01:00:43] sarkyniin: has joined #ruby
[01:07:48] sarkyniin: Ping timeout: 250 seconds
[15:46:05] sarkyniin: has joined #ruby
[17:11:59] sarkyniin: Read error: Connection reset by peer
[17:12:32] sarkyniin: has joined #ruby
[19:27:28] sarkyniin: Ping timeout: 260 seconds
[19:37:40] sarkyniin: has joined #ruby

2015-08-22

[02:05:42] sarkyniin: Ping timeout: 246 seconds
[10:27:26] sarkyniin: has joined #ruby
[10:39:51] sarkyniin: Remote host closed the connection
[14:36:38] sarkyniin: has joined #ruby
[15:29:22] sarkyniin: Ping timeout: 255 seconds
[15:39:33] sarkyniin: has joined #ruby
[17:03:39] sarkyniin: Ping timeout: 250 seconds
[17:17:33] sarkyniin: has joined #ruby

2015-08-21

[02:44:22] sarkyniin: Ping timeout: 244 seconds
[03:00:23] sarkyniin: has joined #ruby
[11:53:14] sarkyniin: has joined #ruby
[19:12:15] sarkyniin: Ping timeout: 260 seconds
[23:31:40] sarkyniin: has joined #ruby

2015-08-20

[00:57:58] sarkyniin: Ping timeout: 244 seconds
[13:19:45] sarkyniin: has joined #ruby
[19:21:07] sarkyniin: Ping timeout: 255 seconds
[23:47:11] sarkyniin: has joined #ruby

2015-08-19

[01:12:23] sarkyniin: Remote host closed the connection
[12:45:27] sarkyniin: Remote host closed the connection
[12:45:27] sarkyniin: has joined #ruby
[13:08:06] sarkyniin: has joined #ruby
[16:39:41] sarkyniin: Remote host closed the connection
[16:40:01] sarkyniin: has joined #ruby
[16:56:18] sarkyniin: Remote host closed the connection
[16:56:39] sarkyniin: has joined #ruby
[17:54:56] sarkyniin: Remote host closed the connection
[17:55:20] sarkyniin: has joined #ruby
[17:57:43] sarkyniin: Remote host closed the connection
[17:58:02] sarkyniin: has joined #ruby
[17:58:31] sarkyniin: Remote host closed the connection
[17:58:51] sarkyniin: has joined #ruby

2015-08-18

[02:50:51] sarkyniin: Ping timeout: 240 seconds
[23:41:36] sarkyniin: has joined #ruby

2015-08-17

[00:40:05] sarkyniin: Ping timeout: 246 seconds
[00:54:11] sarkyniin: has joined #ruby
[02:36:43] sarkyniin: Remote host closed the connection
[10:30:20] sarkyniin: has joined #ruby
[15:47:00] sarkyniin: Read error: No route to host
[16:36:05] sarkyniin: has joined #ruby
[17:55:12] sarkyniin: has joined #ruby

2015-08-16

[16:49:59] sarkyniin: has joined #ruby
[16:58:50] sarkyniin: has joined #ruby
[21:30:35] sarkyniin: Read error: No route to host
[21:31:19] sarkyniin: has joined #ruby
[23:50:50] sarkyniin: Read error: Connection reset by peer
[23:51:19] sarkyniin: has joined #ruby