Phage

Activity Graph

Page 1 of 2 | Next »

2019-07-29

[12:27:55] Phage: Ping timeout: 244 seconds

2019-06-24

[06:19:24] Phage: Ping timeout: 272 seconds
[06:22:20] Phage: has joined #ruby

2019-06-19

[05:27:59] Phage: Ping timeout: 268 seconds
[05:32:07] Phage: has joined #ruby
[05:32:07] Phage: Changing host
[05:32:07] Phage: has joined #ruby

2019-05-23

[12:17:58] Phage: has joined #ruby
[12:17:58] Phage: Changing host
[12:17:58] Phage: has joined #ruby

2019-05-21

[12:43:48] Phage: Quit: ZNC 1.6.5 - http://znc.in

2019-05-15

[08:54:59] Phage: Max SendQ exceeded
[08:55:16] Phage: has joined #ruby
[08:55:16] Phage: Changing host
[08:55:16] Phage: has joined #ruby

2019-04-24

[08:33:42] Phage: has joined #ruby
[08:33:42] Phage: Changing host

2019-04-05

[22:01:16] Phage: Ping timeout: 255 seconds

2019-04-04

[09:43:09] Phage: Max SendQ exceeded
[09:43:51] Phage: has joined #ruby
[09:43:52] Phage: has joined #ruby
[09:43:52] Phage: Changing host

2019-03-30

[11:19:42] Phage: Ping timeout: 246 seconds
[11:22:21] Phage: has joined #ruby
[11:22:21] Phage: Changing host
[11:22:21] Phage: has joined #ruby

2019-03-25

[08:31:29] Phage: has joined #ruby
[08:31:29] Phage: Changing host
[08:31:29] Phage: has joined #ruby

2019-03-21

[09:48:53] Phage: Quit: ZNC 1.6.5 - http://znc.in

2018-09-14

[01:00:09] Phage: *.net *.split
[01:00:57] Phage: has joined #ruby

2018-07-31

[04:07:29] Phage: Ping timeout: 248 seconds
[04:23:12] Phage: has joined #ruby

2018-07-20

[00:07:07] Phage: *.net *.split
[00:15:50] Phage: has joined #ruby

2018-05-01

[15:27:31] Phage: Ping timeout: 265 seconds
[15:36:17] Phage: has joined #ruby
[15:36:17] Phage: Changing host
[15:36:17] Phage: has joined #ruby

2018-04-29

[19:39:11] Phage: has joined #ruby
[19:39:11] Phage: Changing host

2018-04-05

[00:51:14] Phage: *.net *.split

2018-03-07

[17:00:13] Phage: Quit: ZNC 1.6.5 - http://znc.in
[18:39:07] Phage: has joined #ruby
[18:39:07] Phage: Changing host
[18:39:07] Phage: has joined #ruby

2018-02-17

[11:41:17] Phage: Ping timeout: 256 seconds

2018-02-06

[11:28:27] Phage: has joined #ruby

2018-02-03

[22:45:57] Phage: Ping timeout: 264 seconds

2018-01-21

[08:06:23] Phage: Ping timeout: 276 seconds
[16:27:12] Phage: has joined #ruby
[16:27:12] Phage: Changing host
[16:27:12] Phage: has joined #ruby

2018-01-16

[00:58:05] Phage: Ping timeout: 240 seconds
[01:02:03] Phage: has joined #ruby
[01:02:04] Phage: has joined #ruby
[01:02:04] Phage: Changing host

2018-01-12

[18:34:29] Phage: *.net *.split
[18:34:44] Phage: has joined #ruby
[18:34:44] Phage: Changing host
[18:34:44] Phage: has joined #ruby

2017-12-07

[14:48:17] Phage: *.net *.split
[14:54:21] Phage: has joined #ruby
[21:43:04] Phage: *.net *.split
[21:48:18] Phage: has joined #ruby
[22:37:00] Phage: *.net *.split
[22:42:08] Phage: has joined #ruby

2017-10-16

[06:26:47] Phage: Ping timeout: 260 seconds
[06:29:22] Phage: has joined #ruby
[06:29:22] Phage: Changing host
[06:29:22] Phage: has joined #ruby

2017-10-15

[04:45:21] Phage: Ping timeout: 248 seconds
[04:55:49] Phage: has joined #ruby
[04:55:49] Phage: Changing host
[04:55:49] Phage: has joined #ruby

2017-10-03

[23:28:28] Phage: Ping timeout: 258 seconds
[23:34:42] Phage: has joined #ruby
[23:34:42] Phage: Changing host
[23:34:42] Phage: has joined #ruby

2017-10-02

[01:12:35] Phage: Ping timeout: 240 seconds
[02:29:53] Phage: has joined #ruby
[02:29:53] Phage: Changing host
[02:29:53] Phage: has joined #ruby

2017-10-01

[22:42:05] Phage: Ping timeout: 240 seconds
[22:48:17] Phage: has joined #ruby
[22:48:17] Phage: Changing host
[22:48:17] Phage: has joined #ruby

2017-07-25

[16:04:52] Phage: Ping timeout: 260 seconds

2017-06-30

[19:22:18] Phage: Ping timeout: 255 seconds

2017-06-29

[14:44:46] Phage: has joined #ruby
[14:44:46] Phage: Changing host

2017-06-27

[05:13:55] Phage: Ping timeout: 260 seconds

2017-06-20

[00:17:29] Phage: *.net *.split

2017-05-21

[13:05:05] Phage: Ping timeout: 240 seconds
[13:32:37] Phage: has joined #ruby

2017-05-01

[01:12:29] Phage: Anyone care to help me with some logic for a knock out competition?

2017-04-04

[17:46:41] Phage: Hey guys. IS Ruby pre-installed on linux these days?
[17:54:57] Phage: All right... I’m mostly interested in Debian and RPM based distros
[17:56:49] Phage: I’m not looking to install it
[17:56:58] Phage: I’m simply trying to figure out if I should use Python or Ruby for this
[17:57:10] Phage: Sadly it seems Python will win this time, since it’s pre-installed on mostly everything
[17:57:25] Phage: Just sad that I can’t use Ruby :(
[17:57:33] Phage: ‘cause screw Python’s OOP implementation

2017-04-02

[04:24:06] Phage: Ping timeout: 268 seconds
[04:27:43] Phage: has joined #ruby
[04:27:43] Phage: Changing host
[04:27:43] Phage: has joined #ruby

2017-03-08

[11:54:03] Phage: has joined #ruby

2016-04-11

[09:40:39] Phage: has left #ruby: ("WeeChat 1.4")

2016-04-05

[15:18:57] Phage: has joined #ruby
[15:19:23] Phage: How can I check whether a json field is empty or not? I've tried if parsed_source['link'] == [] but that doesn't seem tok work.
[15:22:29] Phage: rmosolgo: thank you very much!
[15:25:16] Phage: rmosolgo: it always returns false
[15:25:20] Phage: even though it's empty
[15:25:43] Phage: We're not
[15:25:55] Phage: {"month": "1", "num": 1, "link": "", "year": "2006" }
[15:30:08] Phage: rmosolgo: thanks! works now :)

2016-03-20

[22:47:21] Phage: has left #ruby: ("WeeChat 1.4")

2016-03-15

[16:37:32] Phage: has joined #ruby
[16:37:54] Phage: Can it be true, that I can't find any decent gem for image processing (stripping meta-data) ?
[16:41:23] Phage: dreinull: thanks

2016-03-14

[11:41:04] Phage: has joined #ruby
[11:41:20] Phage: has left #ruby: ("WeeChat 1.4")

2016-01-16

[18:36:40] Phage: Quit: I suddenly got busy, who'd have guessed that?

2016-01-10

[23:27:18] Phage: Can anyone help me with this error? https://gist.github.com/phildk/f881baa9765dbb51354d
[23:38:26] Phage: Ox0dea: Not when giving it characters such as > and <
[23:38:46] Phage: Ox0dea: It then throws: Expected a string, but instead found end of the statement fish: ruby gif.rb >
[23:39:56] Phage: Ox0dea: https://www.dropbox.com/s/slekusfzbicx7kx/Screenshot%202016-01-11%2000.39.44.png?dl=0
[23:40:07] Phage: Ox0dea: Well, any way I can keep the script from crashing?
[23:41:14] Phage: j416: I'm Daniel? :o
[23:42:02] Phage: j416: I know, lol. I'll change that when I get more time.

2016-01-09

[11:51:36] Phage: has joined #ruby
[11:52:20] Phage: If I want to check if my script gets two arguments suppled, how'd I do that? (like: ruby test.rb argument1 and argument2)
[11:52:47] Phage: Currently using ARGV[] to grab the arguments.
[12:02:53] Phage: toretore: Might be. I just can't figure out how to make the script check if two arguments has been supplied.
[12:05:10] Phage: Just saw that I can do ARGV.length
[12:05:16] Phage: Why didn't I think if this -.-
[12:05:40] Phage: Exactly why I feel stupid right now
[13:39:32] Phage: Is it possible to only join from array[1] and forward?
[13:40:52] Phage: Oh, that works
[13:40:55] Phage: can you explain it to me?
[13:41:00] Phage: Don't understand it 100%
[13:43:11] Phage: Papierkorb already sent that :)
[13:43:25] Phage: I still don't quite get it though
[13:44:01] Phage: It's the range part
[13:44:07] Phage: goes from 1 to -1 ?
[13:48:17] Phage: Okay, let me see if I got this right.
[13:48:33] Phage: So, if you go 'in minus' it goes the other way around?
[13:48:44] Phage: i.e. counts backwards?
[13:48:47] Phage: in the array
[13:49:19] Phage: now it's clear t
[13:49:24] Phage: thank you very much!
[14:13:41] Phage: has left #ruby: ()
[14:37:45] Phage: has joined #ruby

2016-01-06

[12:15:21] Phage: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[20:17:52] Phage: has joined #ruby
[20:18:17] Phage: has left #ruby: ("Textual IRC Client: www.textualapp.com")

2016-01-02

[00:16:47] Phage: has joined #ruby

2016-01-01

[23:51:24] Phage: has left #ruby: ()

2015-12-29

[00:44:47] Phage: What regex type should I choose for ruby? Python, PHP or JS?
[00:45:34] Phage: Alright, thanks!
[01:12:35] Phage: Can anyone help me make it grap until the next TIL only? http://rubular.com/r/VqG3CQD39w
[01:12:45] Phage: The regex works perfectly in regex101, but not in rubular.
[01:14:24] Phage: I want to grap the first TIL
[01:14:29] Phage: It seems to grab way more than that
[01:18:53] Phage: I read somewhere that Ruby doesn't support negative and positive look-behind?
[01:19:01] Phage: havenwood: You're a wizard <3
[01:20:13] Phage: That's interesting
[01:49:21] Phage: havenwood: I made a few changes to the text, regex broke now :/ http://rubular.com/r/pLfbDjJh6d
[01:50:16] Phage: havenwood: I need to catch the "TIL (...)" until the next "TIL" starts.

2015-12-28

[23:09:33] Phage: Can anyone help me with this issue? https://gist.github.com/phildk/83ac562271bf022090e4
[23:10:25] Phage: It doesn't return the value of the key "id"
[23:11:00] Phage: havenwood: what?
[23:11:09] Phage: I'm not sure I understand?
[23:14:30] Phage: mcmire: havenwood thanks, sorry for my stupidity :p

2015-12-23

[14:11:52] Phage: has joined #ruby
[14:11:52] Phage: Changing host

2015-12-21

[09:49:59] Phage: *.net *.split

2015-12-15

[08:26:29] Phage: has joined #ruby
[20:28:08] Phage: has left #ruby: ()
[20:39:45] Phage: has joined #ruby

2015-12-14

[15:15:16] Phage: has left #ruby: ()

2015-12-13

[17:43:49] Phage: has left #ruby: ()
[23:49:56] Phage: has joined #ruby

2015-12-05

[13:01:06] Phage: Ping timeout: 240 seconds
[13:04:17] Phage: has joined #ruby

2015-12-02

[15:38:34] Phage: *.net *.split
[15:41:25] Phage: has joined #ruby
[15:52:19] Phage: *.net *.split
[16:47:41] Phage: has joined #ruby

2015-11-27

[00:04:39] Phage: has joined #ruby
[10:34:51] Phage: *.net *.split
[10:42:50] Phage: has joined #ruby
[10:46:04] Phage: *.net *.split
[10:47:04] Phage: has joined #ruby

2015-11-26

[19:01:51] Phage: *.net *.split
[19:02:38] Phage: has joined #ruby
[23:54:14] Phage: *.net *.split

2015-11-19

[20:46:51] Phage: What would be the best/easiest way to swap two elements of an array?
[20:48:16] Phage: jhass: Ah, thought so too. Just wanted to know, if there were some built-in function or something like that.
[21:13:29] Phage: Can I simply do array[1] = array[1+2] if I want to change the first and second object in the array
[21:13:51] Phage: array[i] = array[i+1] *
[21:48:58] Phage: https://gist.github.com/phildk/f4eaaee6dc51014d8978 can anyone tell me why this is supposed to be -2 and not -1?
[21:50:51] Phage: Nilium: Oh, for when you hit the end of the array?
[21:52:02] Phage: Nilium: Alright, I understand now. Thanks!

2015-11-15

[18:22:37] Phage: has joined #ruby

2015-03-15

[00:00:35] Phage: a1fa: What?
[00:09:11] Phage: apeiros_: RIGHT!
[10:11:12] Phage: Can anyone tell me why it's not breaking out of the loop? https://gist.github.com/phildk/e153a70cd29889bfbbac
[10:19:54] Phage: shevy: but why doesn't it catch my finished = true ?
[10:24:38] Phage: shevy: Lol, that's where I got it from :i
[10:24:53] Phage: Okay, I solved that part, but now I get:
[10:24:54] Phage: from rps.rb:40:in `<main>'
[10:24:54] Phage: rps.rb:32:in `number_of_games': undefined local variable or method `games_to_play' for main:Object (NameError)
[10:25:01] Phage: https://gist.github.com/phildk/e153a70cd29889bfbbac
[10:28:03] Phage: shevy: Hmm... How would I make it available outside the loop?
[10:28:44] Phage: Well... I'm open to feedback/suggestions.
[10:50:50] Phage: shevy: I thank you for your help. I learned some new things about looping in Ruby.

2015-03-14

[23:58:43] Phage: There's a gem for making user interaction through CLI a bit prettier, but I can't remember the name?

2015-03-11

[09:19:51] Phage: gregf_: It doesn't output anything.
[09:21:16] Phage: Okay, now it outputs no matter that.
[09:21:38] Phage: But it shouldn't if time_posted == string_from_file...
[09:24:43] Phage: 1426064773.0
[09:24:50] Phage: It contains a string like that.
[09:25:44] Phage: toretore: This bot should pull the latest TIL from Reddit. I have that part working, but I do not want it to display the same news twice. So, I thought about storing the time-stamp of the time the TIL was posted and then compare it to the new time-stamp pulled.
[09:30:55] Phage: toretore: I didn't understand that :i
[09:32:27] Phage: adaedra: The stories gets pulled form a .json file.
[09:32:41] Phage: which gets updated every 30 seconds (if any new posts).
[09:53:16] Phage: In Python I can do; "til_last_update = None". Can I do something similar in Ruby?
[09:53:42] Phage: But that didn't work :(
[09:54:46] Phage: gregf_: https://gist.github.com/anonymous/a35e580bc3fef09de8e0
[10:03:56] Phage: gregf_: No.
[10:03:59] Phage: Let me do that.
[10:07:25] Phage: gregf_: I need to check if the new time-stamp is later than the previous one.
[10:07:31] Phage: It really shouldn't.
[10:07:51] Phage: I just did?
[10:08:06] Phage: I make request, print post and save time stamp
[10:08:31] Phage: I make new request, if time stamp is not later > don't post it
[10:12:59] Phage: gregf_: If I move that outside the function, it complains about time_posted being undefined.
[10:27:26] Phage: gregf_: https://gist.github.com/phildk/9f9636e050fdb7eb9e64 <--- doesn't output anything.
[10:30:11] Phage: gregf_: the feed refreshes every 30 seconds.