gheegh

Activity Graph

Page 1 of 5 | Next »

2019-06-18

[15:44:31] gheegh: Quit: Textual IRC Client: www.textualapp.com

2019-06-16

[17:21:42] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:49:14] gheegh: has joined #ruby
[20:49:19] gheegh: has joined #RubyOnRails

2019-06-15

[20:13:42] gheegh: has joined #RubyOnRails
[20:13:47] gheegh: has joined #ruby

2019-03-27

[19:10:03] gheegh: Ping timeout: 246 seconds

2019-03-25

[16:47:33] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:52:38] gheegh: has joined #RubyOnRails
[16:52:43] gheegh: has joined #ruby
[17:21:50] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:04:38] gheegh: has joined #ruby
[18:04:41] gheegh: has joined #RubyOnRails

2019-03-23

[13:31:35] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:43:12] gheegh: has joined #ruby
[13:43:34] gheegh: has joined #RubyOnRails
[13:43:57] gheegh: Client Quit
[14:45:56] gheegh: has joined #RubyOnRails
[14:46:16] gheegh: has joined #ruby
[14:53:17] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:30:01] gheegh: has joined #ruby
[15:30:06] gheegh: has joined #RubyOnRails
[16:26:14] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:38:38] gheegh: has joined #ruby
[21:38:42] gheegh: has joined #RubyOnRails

2019-03-21

[00:16:17] gheegh: has joined #ruby
[00:16:17] gheegh: has joined #RubyOnRails
[00:18:00] gheegh: hey all, anyone have a suggestion as to how to "memoize" a dynamic singleton class variable?
[00:19:55] gheegh: I've got a folder that has a bunch of files in it that i'm converting into class methods on a class. I just realized that one of hte problems is that its reloading them from disk every time it's called, versus just 1 time. I need to "memoize" them.. but i'm not sure exactly how to do that. Here's a gist.. imagine the files as something that i'm turning into Arrays..
[00:19:57] gheegh: https://gist.github.com/wflanagan/e34d74a0586c0bd71a46106abd6341c8
[00:45:51] gheegh: so, this works.. its just that it seems to reload the method everytime it's called
[00:46:24] gheegh: that doesn't work in the def from what I can tell
[00:47:13] gheegh: the problem is the name is dynamic
[00:47:42] gheegh: so setting @#{dyanmic_method_name} ||= do_the_work doesn't seem to work

2019-02-25

[00:00:21] gheegh: Remote host closed the connection

2019-02-22

[12:26:49] gheegh: has joined #RubyOnRails
[12:26:49] gheegh: has joined #ruby

2019-02-20

[18:48:24] gheegh: has joined #RubyOnRails
[18:48:29] gheegh: has joined #ruby
[18:57:00] gheegh: Anyone work with active_admin? I've got a problem with a custom form. It's not rendering well, and fields are not showing. Rails 5.2 latest everything. https://gist.github.com/wflanagan/5f73eab4dfdd93aadf74d98fa4c62ba5
[18:57:16] gheegh: I've love some advice.. been working on a single form 3 hours.. Ugh. :-)
[19:02:06] gheegh: maybe I'll ask here, as it's maybe busier.. i have an ActiveAdmin issue. My custom form is totally not working.
[19:02:31] gheegh: It's not rendering well, and fields are not showing. Rails 5.2 latest everything. https://gist.github.com/wflanagan/5f73eab4dfdd93aadf74d98fa4c62ba5 gist shows a link to a pic, and the rendered HTML (and source of form)
[20:11:59] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:20:34] gheegh: has joined #ruby
[20:20:34] gheegh: has joined #RubyOnRails
[20:24:16] gheegh: Client Quit

2018-12-12

[00:24:37] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[10:36:20] gheegh: has joined #ruby
[10:36:20] gheegh: has joined #RubyOnRails
[12:40:18] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[12:55:20] gheegh: has joined #ruby
[12:55:24] gheegh: has joined #RubyOnRails
[15:33:33] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:08:46] gheegh: has joined #RubyOnRails
[18:08:47] gheegh: has joined #ruby
[18:31:50] gheegh: Quit: Textual IRC Client: www.textualapp.com

2018-12-11

[19:22:01] gheegh: has joined #ruby
[19:22:07] gheegh: has joined #RubyOnRails
[23:22:11] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:30:42] gheegh: has joined #ruby
[23:30:42] gheegh: has joined #RubyOnRails

2018-12-05

[14:40:31] gheegh: Quit: Textual IRC Client: www.textualapp.com

2018-12-04

[13:52:19] gheegh: has joined #RubyOnRails
[13:52:24] gheegh: has joined #ruby

2018-10-29

[13:00:35] gheegh: has joined #RubyOnRails
[13:00:35] gheegh: has joined #ruby
[13:06:16] gheegh: hey all.. i need some thoughts. I'm trying to dynamically define a class as a child of OpenStruct, if it's not defined. If defined, I want to just use it. Basically, i'm trying to wrap OpenSturct for responses to an API call. I'm getting a nameerror when trying to use my defined class. thoughts on how to do this?
[13:06:18] gheegh: https://gist.github.com/wflanagan/515b04b3448d9494df5fc386ce3b75c3
[13:07:46] gheegh: sorry, to follow the guide, here's the code snippet defined at dpaste.de https://dpaste.de/OEJz#L
[17:45:55] gheegh: Quit: Textual IRC Client: www.textualapp.com

2018-10-09

[20:57:55] gheegh: has joined #RubyOnRails
[20:58:00] gheegh: has joined #ruby
[21:03:29] gheegh: Hey all, i'm having a problem with VCR in some of my tests.. i am doing the query in the "let", but it seems to retrieve each time no matter what.. any thoughts on how to fix this in RSpec?
[21:03:31] gheegh: https://gist.github.com/wflanagan/59f0434d11079ace97ed4679d503d31d
[21:03:35] gheegh: that's an example
[21:17:23] gheegh: hey all.. anyone using VCR? I'm having some problem figuring out what to do to get my "let" in RSPEC not re-retrieve the page..
[21:18:41] gheegh: https://gist.github.com/wflanagan/59f0434d11079ace97ed4679d503d31d this is an example.. not sure what i'm doing wrong.. the URL is identical.
[21:47:44] gheegh: yeah, but i would have thought vcr would have matched it.. and returned the value
[21:47:59] gheegh: since the URL is the same
[23:44:13] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-08-14

[13:07:54] gheegh: Quit: Textual IRC Client: www.textualapp.com

2018-08-13

[02:09:17] gheegh: has joined #ruby
[02:09:23] gheegh: has joined #RubyOnRails
[02:42:24] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:06:31] gheegh: has joined #RubyOnRails
[11:06:32] gheegh: has joined #ruby
[13:43:49] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:44:44] gheegh: has joined #ruby
[13:44:44] gheegh: has joined #RubyOnRails
[15:39:34] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:44:46] gheegh: has joined #ruby
[15:45:12] gheegh: has joined #RubyOnRails
[16:52:19] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:03:23] gheegh: has joined #RubyOnRails
[17:03:55] gheegh: has joined #ruby
[17:22:58] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:56:03] gheegh: has joined #RubyOnRails
[17:56:32] gheegh: has joined #ruby
[18:38:22] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:11:02] gheegh: has joined #RubyOnRails
[21:11:02] gheegh: has joined #ruby

2018-08-12

[10:09:05] gheegh: has joined #RubyOnRails
[10:09:06] gheegh: has joined #ruby
[12:11:31] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[12:16:28] gheegh: has joined #ruby
[12:16:28] gheegh: has joined #RubyOnRails
[12:31:47] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-08-11

[10:34:06] gheegh: has joined #ruby
[10:34:06] gheegh: has joined #RubyOnRails
[11:13:10] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:14:34] gheegh: has joined #ruby
[11:14:37] gheegh: has joined #RubyOnRails
[11:14:56] gheegh: Client Quit
[11:24:16] gheegh: has joined #ruby
[11:24:16] gheegh: has joined #RubyOnRails
[11:35:23] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:51:37] gheegh: has joined #RubyOnRails
[11:51:42] gheegh: has joined #ruby
[11:52:47] gheegh: Client Quit
[14:30:24] gheegh: has joined #ruby
[14:30:30] gheegh: has joined #RubyOnRails
[14:33:30] gheegh: Client Quit
[14:35:22] gheegh: has joined #ruby
[14:35:37] gheegh: has joined #RubyOnRails
[14:38:01] gheegh: Client Quit
[18:54:22] gheegh: has joined #RubyOnRails
[18:54:40] gheegh: has joined #ruby
[19:03:13] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:19:11] gheegh: has joined #RubyOnRails
[23:19:21] gheegh: has joined #ruby
[23:39:08] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-08-10

[13:43:09] gheegh: has joined #RubyOnRails
[13:43:09] gheegh: has joined #ruby
[16:45:14] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:34:41] gheegh: has joined #RubyOnRails
[20:34:41] gheegh: has joined #ruby
[21:09:18] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:12:36] gheegh: has joined #RubyOnRails
[21:12:48] gheegh: has joined #ruby
[21:40:08] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:40:55] gheegh: has joined #ruby
[21:41:06] gheegh: has joined #RubyOnRails
[21:52:48] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:58:24] gheegh: has joined #RubyOnRails
[21:58:29] gheegh: has joined #ruby
[22:10:59] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-07-21

[12:44:36] gheegh: has joined #RubyOnRails
[12:44:36] gheegh: has joined #ruby
[17:26:17] gheegh: Ping timeout: 276 seconds

2018-07-20

[22:16:16] gheegh: has joined #RubyOnRails
[22:16:16] gheegh: has joined #ruby
[23:22:38] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-07-02

[00:21:12] gheegh: Quit: Textual IRC Client: www.textualapp.com

2018-07-01

[19:46:33] gheegh: has joined #ruby
[19:46:33] gheegh: has joined #RubyOnRails
[19:49:31] gheegh: compressable, deployable to Heroku.. anyone have any thoughts?
[19:49:31] gheegh: hey all.. question. I'm using Moneta to bulid a simple gem that looks up/loads a file that's about 800MB uncompressed. I am storing it on Github, so I need to break it into smaller file sizes. I had loaded it into several small SQL files, but that's not supported on Heroku. The File store breaks each key into its own file, adding about 400,000 files to the github repo (not a great idea for performance). I need something smaller,
[22:44:40] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:09:48] gheegh: has joined #RubyOnRails
[23:09:48] gheegh: has joined #ruby

2018-06-27

[11:12:30] gheegh: Ping timeout: 260 seconds

2018-06-26

[16:25:50] gheegh: has joined #RubyOnRails
[16:25:56] gheegh: has joined #ruby
[16:26:43] gheegh: Hey all, anyone have a good, reliable config for using StatsD with ActiveJob? It seems my stats are not getting sent reliably.
[16:26:56] gheegh: using sidekiq as an adapter

2018-06-25

[15:54:19] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:21:31] gheegh: has joined #RubyOnRails
[17:21:31] gheegh: has joined #ruby
[18:40:41] gheegh: Quit: Textual IRC Client: www.textualapp.com

2018-06-24

[15:12:52] gheegh: has joined #RubyOnRails
[15:12:52] gheegh: has joined #ruby
[15:15:53] gheegh: theoretical question.. I have a list of about 200K records that I need to access.. it takes about 500 MB to store the entire file (in JSON format). I'm considering breaking it into a number of smaller files, zipped, (like 65k files).. and then retrieve each file from the disk and get teh record in question.. is this a terrible idea.. if it's in a gem?
[15:17:16] gheegh: the goal is to reduce the IO of storing all this in a file.. if i have to laod the entire file each time, tha'ts a lot of IO
[15:17:45] gheegh: anyone have thoughts?
[15:18:55] gheegh: so, this is basically a cache..
[15:20:12] gheegh: i'm working on a research project that is realted to Twitter usernames.. i'm retrieiving mentions in a stream... and processing the user account.. the "cache" is the verified users.. about 200K that are likley to be hit.. i'd like to hit this cache isntead of retrieving their account from teh API
[15:20:18] gheegh: no, itdoesn't need to be stored as json
[15:20:25] gheegh: i'm working in hashes
[15:20:46] gheegh: if the cache lookup fails, then i'll look up the account
[15:21:48] gheegh: key are strings yes
[15:21:55] gheegh: values are strings and integers
[15:22:23] gheegh: how is it for space?
[15:22:36] gheegh: part of the thing I want to do is compress it.. so it doesn't take up so much space on disk
[15:22:57] gheegh: its 42 MB compressed, about 500MB uncompressed
[15:23:38] gheegh: memory really.. but IO as well
[15:23:51] gheegh: as it can gate performance loading a 500MB file each time I look up things from disk..
[15:23:58] gheegh: which happens sevearl times per second
[15:24:17] gheegh: but i have to load it into memorY?
[15:24:40] gheegh: I thought files were essentailly atomic unless there is some sort of cursor
[15:24:45] gheegh: loaded or not
[15:25:50] gheegh: i'll play with it.. thanks
[15:29:28] gheegh: the thought was to limit IO
[15:29:42] gheegh: and break it into a lot of smaller files
[15:30:43] gheegh: I'll try all o the options
[15:30:55] gheegh: i really just want to retrieve 1 record at a shot
[15:31:06] gheegh: and have the minimal amount of IO and memory used
[15:31:18] gheegh: and disk to a lesser extent
[15:31:28] gheegh: ok.. i'll try them
[15:31:31] gheegh: thanks guys
[15:33:45] gheegh: ok.. that's great
[15:33:50] gheegh: super helpful
[15:36:55] gheegh: i'll write up something like that gist.. and see what happens
[15:38:39] gheegh: essentailly, I'll be checking the database into the repo.. so the problem with DBM is it's machine dependent.
[15:38:50] gheegh: this will be running (eventually) on a couple dozen machines
[15:39:46] gheegh: yeah i'll try taht one first..
[15:47:26] gheegh: leveldb's bindings for ruby are pretty non-functioanl on Ruby 2.5.1 on a mac
[15:54:39] gheegh: yeah, don't have time to work on that.. :-)
[15:55:37] gheegh: that's what I"m working on now
[15:57:49] gheegh: I would love to be thinking in those terms.. too much going on right now.. i'm elbow deep in todos.. :-)
[15:59:19] gheegh: i will say sqlite is loading a lot slower.. :-)
[16:10:05] gheegh: FYI.. sqlite expanded the file from 490 MB to about 600 MB
[16:20:09] gheegh: wrapping with moneta, and using a compressions transformer
[16:28:59] gheegh: compressing the file reduces it to 239 MB
[16:29:10] gheegh: still too big to store on Github

2018-06-18

[19:58:40] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:00:21] gheegh: has joined #ruby
[20:00:22] gheegh: has joined #RubyOnRails
[20:03:36] gheegh: Client Quit

2018-06-14

[11:58:15] gheegh: has joined #RubyOnRails
[11:58:25] gheegh: has joined #ruby

2018-06-13

[15:02:50] gheegh: fetch(x, nil)
[15:03:12] gheegh: or just [] and it will return a nil if there isn't a key
[15:04:30] gheegh: well, if you do [] for example on a nil, it will
[15:04:48] gheegh: variable.try(:[], x) is also an option
[15:12:02] gheegh: you can also & the front of it.. variable&.dig('x')
[15:12:10] gheegh: i think that works with nil
[20:55:41] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:42:54] gheegh: has joined #ruby
[21:43:04] gheegh: has joined #RubyOnRails
[21:59:20] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…
[22:00:15] gheegh: has joined #RubyOnRails
[22:00:22] gheegh: has joined #ruby
[22:02:31] gheegh: Client Quit
[22:12:14] gheegh: has joined #ruby
[22:12:17] gheegh: has joined #RubyOnRails
[22:46:05] gheegh: Quit: My MacBook has gone to sleep. ZZZzzz…