hxegon

Activity Graph

Page 1 of 20 | Next »

2019-04-10

[01:00:45] hxegon: Ping timeout: 255 seconds

2019-04-09

[16:37:27] hxegon: has joined #ruby
[16:46:07] hxegon: Remote host closed the connection
[16:46:47] hxegon: has joined #ruby
[20:31:20] hxegon: has joined #ruby-offtopic
[20:35:08] hxegon: has left #ruby: ("Using Circe, the loveliest of all IRC clients")
[20:35:09] hxegon: has left #ruby-offtopic: ("Using Circe, the loveliest of all IRC clients")
[20:35:32] hxegon: has joined #ruby
[20:37:53] hxegon: has left #ruby: ()
[20:38:17] hxegon: has joined #ruby
[20:40:27] hxegon: has joined #ruby-offtopic
[22:31:38] hxegon: Ping timeout: 250 seconds
[22:31:54] hxegon: has joined #ruby
[22:31:54] hxegon: has joined #ruby-offtopic

2018-01-22

[19:11:22] hxegon: Remote host closed the connection

2017-12-31

[15:37:40] hxegon: Ping timeout: 248 seconds
[15:39:12] hxegon: has joined #ruby-offtopic
[15:39:12] hxegon: has joined #ruby

2017-12-21

[05:13:27] hxegon: has joined #ruby-offtopic
[05:13:27] hxegon: has joined #ruby

2017-12-09

[05:06:26] hxegon: *.net *.split
[05:14:00] hxegon: has joined #ruby
[05:14:01] hxegon: has joined #ruby-offtopic

2017-12-07

[14:48:36] hxegon: *.net *.split
[14:54:58] hxegon: has joined #ruby-offtopic
[14:55:09] hxegon: has joined #ruby

2017-12-01

[02:28:27] hxegon: has joined #ruby-offtopic
[02:28:55] hxegon: has joined #ruby

2017-11-09

[02:51:15] hxegon: Ping timeout: 248 seconds
[02:53:02] hxegon: has joined #ruby-offtopic
[02:53:02] hxegon: has joined #ruby

2017-11-03

[06:03:55] hxegon: have a OO design question. I have a model class Story, which I have to poll for updates, but the stories come from different sources (blogs, forums, etc.). Is it better to have #poll defined in modules, or have Poller objects which loads stories from DB?
[06:06:56] hxegon: or something else I'm not seeing
[06:17:42] hxegon: baweaver: ah, seems obvious now. thanks
[06:19:41] hxegon: yeah, there's no state for #poll to keep track of that stories don't already have
[06:22:50] hxegon: second question, how do I handle storing which pollable module a story is associated with in the DB? Store the pollable module name as a string?
[06:23:45] hxegon: It's straightforward, but want to double check that I'm not missing something obvious here

2017-11-01

[00:15:05] hxegon: Quit: leaving
[07:56:28] hxegon: has joined #ruby
[07:56:29] hxegon: has joined #ruby-offtopic
[07:56:32] hxegon: Client Quit
[07:56:50] hxegon: has joined #ruby-offtopic
[07:56:50] hxegon: has joined #ruby

2017-10-24

[17:28:09] hxegon: Client Quit
[17:28:09] hxegon: has joined #ruby-offtopic
[17:28:09] hxegon: has joined #ruby
[17:28:27] hxegon: has joined #ruby-offtopic
[17:28:27] hxegon: has joined #ruby

2017-09-16

[01:55:59] hxegon: has joined #ruby-offtopic
[01:55:59] hxegon: has joined #ruby
[01:56:29] hxegon: Client Quit

2017-08-17

[00:04:24] hxegon: has joined #ruby
[00:05:23] hxegon: having an issue with dropping into pry at the end of a script... It shows context, prints the prompt, and then quits immediately. Ideas?
[00:06:45] hxegon: just using the standard binding.pry
[00:09:04] hxegon: has joined #ruby-offtopic
[00:17:15] hxegon: adam12: no, using it as a part of a piped bash command, and it's reading from ARGF if that helps. Going to try a toy script that does only that
[00:20:13] hxegon: ah, it's the pipe. echo '' | ruby -e 'require "pry"; binding.pry' reproduces it
[00:35:41] hxegon: Ping timeout: 240 seconds
[01:44:04] hxegon: has joined #ruby-offtopic
[01:44:04] hxegon: has joined #ruby
[01:57:21] hxegon: Ping timeout: 248 seconds
[02:52:55] hxegon: has joined #ruby-offtopic
[02:52:55] hxegon: has joined #ruby
[03:54:37] hxegon: Quit: leaving

2017-06-24

[00:53:51] hxegon: Quit: leaving

2017-06-23

[07:36:27] hxegon: Ping timeout: 268 seconds
[16:01:46] hxegon: has joined #ruby-offtopic
[16:01:46] hxegon: has joined #ruby
[19:09:58] hxegon: Ping timeout: 240 seconds
[19:21:27] hxegon: has joined #ruby-offtopic
[19:21:27] hxegon: has joined #ruby
[22:50:00] hxegon: Ping timeout: 276 seconds
[22:53:59] hxegon: has joined #ruby-offtopic
[22:53:59] hxegon: has joined #ruby

2017-06-22

[00:06:05] hxegon: has joined #ruby-offtopic
[00:06:05] hxegon: has joined #ruby
[01:25:47] hxegon: Quit: leaving
[01:26:46] hxegon: has joined #ruby
[01:26:52] hxegon: has joined #ruby-offtopic
[01:53:00] hxegon: Ping timeout: 240 seconds
[01:58:55] hxegon: has joined #ruby-offtopic
[01:58:55] hxegon: has joined #ruby
[02:08:05] hxegon: Ping timeout: 240 seconds
[02:19:03] hxegon: has joined #ruby-offtopic
[02:19:03] hxegon: has joined #ruby
[02:26:18] hxegon: Ping timeout: 276 seconds
[02:30:09] hxegon: has joined #ruby-offtopic
[02:30:09] hxegon: has joined #ruby
[03:24:56] hxegon: Ping timeout: 268 seconds
[03:41:47] hxegon: has joined #ruby-offtopic
[03:41:47] hxegon: has joined #ruby
[09:17:18] hxegon: Ping timeout: 260 seconds
[13:26:57] hxegon: has joined #ruby-offtopic
[13:26:57] hxegon: has joined #ruby
[18:42:32] hxegon: Ping timeout: 268 seconds
[18:44:53] hxegon: has joined #ruby-offtopic
[18:44:53] hxegon: has joined #ruby

2017-06-21

[00:49:08] hxegon: Quit: leaving
[05:06:49] hxegon: has joined #ruby
[05:08:02] hxegon: has joined #ruby-offtopic
[05:08:17] hxegon: Evenin all
[05:10:33] hxegon: beginning to think class_eval is the devil
[05:17:50] hxegon: forget I said that, just my own ignorance about rails biting me in the ass again
[05:18:29] hxegon: ?ask mozzarella
[05:48:39] hxegon: mozzarella: Could you post the full stack trace and the file in a gist?
[05:48:42] hxegon: ?gist mozzarella
[06:04:57] hxegon: mozzarella: I meant your main.rb file, not the RedditKit file itself :)
[06:06:07] hxegon: mozzarella: You could just delete it out of the paste
[06:06:39] hxegon: mozzarella: also, looks like you are trying to use a symbol where an integer is expected on line 3 of main.rb, but I'd know more if I saw main.rb
[06:10:20] hxegon: mozzarella: hmm, the file as you gave me should work according to the documentation I'm reading
[06:10:44] hxegon: I'm going to try this out in pry
[06:19:38] hxegon: mozzarella: So I tried this out myself, and it seems this is a bug in RedditKit itself... Is there a particular reason you need to use RedditKit, vs something (from a cursory look) more maintained like redd?
[06:28:09] hxegon: mozzarella: You probably won't be able to connect using RedditKit at all considering it hasn't been updated in about 3 years, plus the only supported ruby versions are 1.9 and 2.0, and you are (hopefully) using a current version like 2.2, 2.3 or 2.4
[06:30:14] hxegon: mozzarella: you might be able to just use user/pass with Redd
[06:32:13] hxegon: mozzarella: There's actually a redd subreddit; reddit.com/r/redd
[06:32:41] hxegon: dminuoso: now I'm curious...
[06:35:27] hxegon: This is why I prefer long var names :)
[06:53:31] hxegon: Ping timeout: 240 seconds
[06:54:58] hxegon: has joined #ruby-offtopic
[06:54:58] hxegon: has joined #ruby
[07:45:01] hxegon: Ping timeout: 240 seconds
[16:58:14] hxegon: has joined #ruby-offtopic
[16:58:14] hxegon: has joined #ruby
[17:53:35] hxegon: Quit: leaving
[17:54:17] hxegon: has joined #ruby
[17:54:22] hxegon: has joined #ruby-offtopic
[20:00:57] hxegon: Ping timeout: 240 seconds
[20:55:21] hxegon: has joined #ruby-offtopic
[20:55:21] hxegon: has joined #ruby
[22:28:05] hxegon: Ping timeout: 240 seconds
[22:53:35] hxegon: has joined #ruby-offtopic
[22:53:35] hxegon: has joined #ruby
[23:11:00] hxegon: Ping timeout: 240 seconds
[23:38:40] hxegon: has joined #ruby-offtopic
[23:38:40] hxegon: has joined #ruby
[23:58:58] hxegon: Ping timeout: 268 seconds

2017-06-20

[19:41:32] hxegon: has joined #ruby
[19:43:08] hxegon: has joined #RubyOnRails
[19:55:33] hxegon: Ping timeout: 260 seconds
[19:56:22] hxegon: has joined #ruby
[20:20:01] hxegon: Ping timeout: 240 seconds
[20:47:47] hxegon: has joined #ruby
[21:19:01] hxegon: Ping timeout: 240 seconds
[21:21:48] hxegon: has joined #ruby
[21:26:05] hxegon: Ping timeout: 240 seconds
[22:53:24] hxegon: has joined #ruby

2017-06-15

[15:58:06] hxegon: Quit: leaving

2017-06-13

[14:02:19] hxegon: has joined #ruby-offtopic
[14:02:19] hxegon: has joined #ruby
[15:07:44] hxegon: croberts: also Path

2017-06-12

[15:31:59] hxegon: Can anyone think of what this code is useful for: if hash.respond_to?("#{key}="); hash.send("#{key}=", value); end
[15:32:23] hxegon: trying to puzzle through an uncommented 1.9 codebase and wondering if this is an old idiom or something
[15:37:17] hxegon: btw that code is in an each for a param hash
[15:48:00] hxegon: ljarvis: thanks, double checked and hash isn't actually a hash instance :P
[21:48:39] hxegon: Quit: leaving

2017-06-07

[14:16:17] hxegon: on a scale of 1/10, how bad is it? 10 being fried person, more than 10 is acceptable if worse
[14:16:21] hxegon: also good morning all
[14:17:54] hxegon: apeiros: https://gfycat.com/DistantHeartfeltBlackfootedferret
[14:18:19] hxegon: alright, hold my hat, I'm going in
[14:18:58] hxegon: ooo, gotcha good. What happened?
[14:20:10] hxegon: apeiros: http://i.imgur.com/oAiRt0b.gifv
[14:20:26] hxegon: ACTION googles
[14:21:06] hxegon: interesting, didn't know that could happen

2017-06-06

[16:05:07] hxegon: Morning all
[16:10:24] hxegon: Feel like I need a tool that measures gem code quality by the number of times I say wtf while reading it
[16:11:44] hxegon: sounds like it could be, but I can't find anything with a quick google
[16:25:44] hxegon: nice, I'm going to print this out
[16:25:47] hxegon: thanks apeiros

2017-06-05

[14:58:00] hxegon: Quit: leaving
[15:02:20] hxegon: has joined #ruby-offtopic
[15:02:20] hxegon: has joined #ruby
[16:12:25] hxegon: ruby-doc is down noooooo
[16:21:21] hxegon: alternative methods for looking up docs? I've been pretty spoiled with ruby-doc and pry-doc hasn't worked for me for a long time
[16:21:55] hxegon: thanks havenwood
[16:25:56] hxegon: oooo ri -i for interactive docs in cli
[16:45:27] hxegon: havenwood: I've tried that before, but it never seems to work for me. Ri is doing great though
[18:32:40] hxegon: official eGPU support finally
[18:32:46] hxegon: only took like 6 years
[18:41:34] hxegon: yeah seems like they might not release empty enclosures, which pisses me off
[18:42:51] hxegon: Yeah, so if you're like me, and have a couple video cards laying around, or you upgrade your desktop one and want to put the old one in an enclosure, then you can just swap it out or buy an empty instead of dropping the extra cash
[19:22:42] hxegon: ipad improvements look cool
[19:23:13] hxegon: might pick up a 10" for drawing/note taking and backup ssh to dev env

2017-06-02

[15:27:14] hxegon: dd if=/dev/ants of=/home/me/kitchen

2017-06-01

[16:24:03] hxegon: elomatreb, taurgal you could also accept a date object in the initialize parameters
[16:24:20] hxegon: taurgal: why?
[16:26:19] hxegon: Also, this way you could have different date formats like Schoolday.from_ymd or .from_iso8601
[16:26:51] hxegon: couldn't you forward that to date taurgal
[16:31:13] hxegon: taurgal: what kind of markup?
[16:33:35] hxegon: it's 2.1.7 now
[16:35:47] hxegon: taurgal: could you give us a more robust sample of the code? It's kind of hard to give a good solution when we don't understand exactly what you are trying to do yet
[16:51:05] hxegon: tmm88: http://www.virtuouscode.com/2012/05/07/a-ruby-conversion-idiom/
[16:51:42] hxegon: >> "".to_i elomatreb
[16:51:56] hxegon: hmm, in my pry that is 0
[16:52:14] hxegon: but integer is stricter
[16:52:30] hxegon: excuse me, Integer()
[17:38:28] hxegon: Anyone here work remotely?
[19:04:02] hxegon: leah2: Did you find it hard to keep focused on work when not in an office?

2017-05-25

[15:38:19] hxegon: has joined #ruby
[15:38:20] hxegon: has joined #ruby-offtopic

2017-05-24

[11:49:27] hxegon: Ping timeout: 240 seconds
[11:51:19] hxegon: has joined #ruby-offtopic
[11:51:19] hxegon: has joined #ruby
[15:53:51] hxegon: jgnagy: There might be a way to do this in sinatra, but the best I can find with some cursory googlery is https://github.com/kickstarter/rack-attack
[18:07:24] hxegon: has joined #ruby-offtopic
[18:07:24] hxegon: has joined #ruby
[23:10:27] hxegon: Remote host closed the connection

2017-05-19

[21:13:44] hxegon: I think they left, but the answer is reduce(Hash.new(0)) { |acc, e| acc.tap { |h| h[e] += 1 } }
[21:14:07] hxegon: also, hi all
[21:15:59] hxegon: Maybe we should have a !fact that links to this:
[21:16:01] hxegon: https://www.mikeash.com/getting_answers.html#guide_begin
[21:17:59] hxegon: baweaver: nice
[21:20:19] hxegon: I'll add that to the list of ruby's "that takes a block?" methods

2017-05-18

[14:16:31] hxegon: There's a ruby internals book? *googles*
[16:49:37] hxegon: RIP net neutrality https://arstechnica.com/tech-policy/2017/05/net-neutrality-goes-down-in-flames-as-fcc-votes-to-kill-title-ii-rules/
[17:15:45] hxegon: We did it! Now the free market will save us!
[17:16:31] hxegon: because of all the competition in the ISP markets :|

2017-05-17

[16:13:56] hxegon: nofxxx: naw, mbp. You're probably right though. I've changed out the screen which is probably way harder, so I should probably stop complaining and just do it :)
[19:32:53] hxegon: cek #each_with_index#find { |e, i| ...
[19:34:28] hxegon: al2o3-cr: ah, ok. That's what I get for not reading the full context
[19:37:10] hxegon: enums are the best :)
[19:38:01] hxegon: maybe this has already been said, but why can't you use (a..n).to_a[i] cek?
[19:41:05] hxegon: Are there any ruby list types with O(1) access to element by index?
[19:41:48] hxegon: ACTION googles it
[19:43:44] hxegon: actually I think ruby's arrays are already O(1) index lookup because they are basically tables under the hood... could be wrong, but that's what a brief google shows me
[21:47:34] hxegon: Anyone here switch from vim or emacs to rubymine? Never used an IDE before and I'm wondering what I'm missing
[21:50:13] hxegon: besides that, and the knowledge that if someone tries to use my computer when I'm on lunch or something they're in for a surprise
[21:53:21] hxegon: because <smug> I use dvorak *and* vim </smug>
[21:55:07] hxegon: with qwerty keycaps, just to try and convince anyone watching that I'm actually on hackertyper

2017-05-16

[20:18:33] hxegon: mrmax: https://github.com/sparklemotion/nokogiri
[22:29:25] hxegon: what are you moving too apeiros
[23:20:25] hxegon: apeiros: Mines a 2013 too, trying to hold out for the next iteration in oct or whatever, but the battery is failing real hard and I don't feel like opening it up
[23:22:07] hxegon: might just get a 13" XPS developer edition though if it gets bad enough

2017-05-04

[07:44:51] hxegon: Ping timeout: 245 seconds
[08:29:31] hxegon: has joined #ruby-offtopic
[08:29:31] hxegon: has joined #ruby
[18:59:26] hxegon: >> [1, 2, 3, 4].map {|_| 0} # eindoofus
[18:59:37] hxegon: just returns a list of 0s
[18:59:43] hxegon: disregards the block input
[18:59:54] hxegon: ACTION kicks rubybot

2017-05-03

[20:13:56] hxegon: np jolamb
[20:18:20] hxegon: daed: the require name could be different from the gem name. What's the error?
[20:20:19] hxegon: daed: try require 'tickets' or something
[20:21:38] hxegon: hmm, so would I.
[20:22:56] hxegon: is there any way to specify a different name for a gem in a Gemfile? For example: gem 'dotenv', as: 'de' or something?
[20:33:09] hxegon: >> p "foo: #{{foo: 'bar'}}" # droptone