hahuang65

Activity Graph

Page 1 of 25 | Next »

2019-03-18

[17:22:48] hahuang65: Ping timeout: 246 seconds
[17:24:06] hahuang65: has joined #RubyOnRails
[17:24:06] hahuang65: has joined #ruby
[17:24:06] hahuang65: has joined #elixir-lang
[17:31:12] hahuang65: Ping timeout: 246 seconds
[17:34:30] hahuang65: has joined #RubyOnRails
[17:34:30] hahuang65: has joined #ruby
[17:34:30] hahuang65: has joined #elixir-lang
[17:41:20] hahuang65: Ping timeout: 272 seconds
[17:43:51] hahuang65: has joined #RubyOnRails
[17:43:51] hahuang65: has joined #ruby
[17:43:51] hahuang65: has joined #elixir-lang
[17:44:08] hahuang65: Client Quit
[17:46:37] hahuang65: has joined #RubyOnRails
[17:46:37] hahuang65: has joined #ruby
[17:46:37] hahuang65: has joined #elixir-lang

2019-03-16

[00:12:50] hahuang65: funkytwig: it's minimum: 5, maximum: 255
[00:34:21] hahuang65: funkytwig: dude, you need a : after the symbols in your hash.
[00:34:31] hahuang65: { minimum: 5 }, not { minimum 5 }

2019-03-15

[16:59:22] hahuang65: funkytwig: depends on your database.yml and how you set it up.
[17:34:40] hahuang65: yeah that SHOULDN'T be your root password.
[17:34:54] hahuang65: but it CAN be if you configure it that way.
[17:35:20] hahuang65: funkytwig: I think it defaults to no password, and user is postgres.
[17:41:32] hahuang65: funkytwig: you can ask here... it's generally a little more populated than this, but if you stick around, someone usually answers.
[23:51:15] hahuang65: Quit: ZNC - https://znc.in
[23:52:28] hahuang65: has joined #RubyOnRails
[23:52:28] hahuang65: has joined #ruby
[23:52:28] hahuang65: has joined #elixir-lang
[23:57:09] hahuang65: Client Quit
[23:58:45] hahuang65: has joined #RubyOnRails
[23:58:45] hahuang65: has joined #ruby
[23:58:45] hahuang65: has joined #elixir-lang

2019-03-14

[04:35:25] hahuang65: Ping timeout: 255 seconds
[05:56:36] hahuang65: has joined #RubyOnRails
[05:56:36] hahuang65: has joined #ruby
[05:56:36] hahuang65: has joined #elixir-lang
[06:08:48] hahuang65: Ping timeout: 245 seconds
[09:45:31] hahuang65: has joined #RubyOnRails
[09:45:31] hahuang65: has joined #ruby
[09:45:31] hahuang65: has joined #elixir-lang
[09:57:12] hahuang65: Ping timeout: 250 seconds
[12:32:20] hahuang65: has joined #RubyOnRails
[12:32:20] hahuang65: has joined #ruby
[12:32:20] hahuang65: has joined #elixir-lang
[16:45:07] hahuang65: Quit: ZNC - https://znc.in
[16:46:19] hahuang65: has joined #elixir-lang
[16:46:20] hahuang65: has joined #RubyOnRails
[16:46:20] hahuang65: has joined #ruby
[18:54:38] hahuang65: Ping timeout: 272 seconds
[19:20:18] hahuang65: has joined #RubyOnRails
[19:20:18] hahuang65: has joined #ruby
[19:20:18] hahuang65: has joined #elixir-lang

2019-03-12

[17:32:05] hahuang65: duleja: what are your reasons for requiring the session data in the model?
[17:37:30] hahuang65: sorry, I'm a little confused here.. you have geolocation data in session store, but need it in default_scope?
[17:42:40] hahuang65: can you just make a "fake" default_scope in the controller, where you do like @user = User.find(x).with_geo(lat: lat, long: long) and then basically return a user with a scope attached to that object, and use @user everywhere?
[17:43:26] hahuang65: like, just make a named scoped, and attach that to the User in the controller
[17:47:22] hahuang65: i don't see why that's the case...
[17:47:24] hahuang65: what if there are 2 users?
[17:48:56] hahuang65: the controller calls everything for the view/api. I don't see how attaching a scope to the @user variable won't be able to hit all the queries you need changed.
[17:49:09] hahuang65: you're always going to be passing that @user to everything that needs to run a query, right?

2019-03-11

[23:23:46] hahuang65: Radar: HELLO
[23:24:56] hahuang65: how's it going

2019-03-09

[01:35:12] hahuang65: I can't do def update(struct(__MODULE__) = obj, attrs) do can i?
[01:35:19] hahuang65: is there a workaround
[01:35:46] hahuang65: derp. that works?
[01:37:07] hahuang65: nah, doesn't work

2019-03-07

[20:59:16] hahuang65: Quit: ZNC - https://znc.in
[21:01:54] hahuang65: has joined #RubyOnRails
[21:01:54] hahuang65: has joined #ruby
[21:01:54] hahuang65: has joined #elixir-lang
[21:07:08] hahuang65: Ping timeout: 244 seconds
[21:19:37] hahuang65: has joined #RubyOnRails
[21:19:37] hahuang65: has joined #ruby
[21:19:37] hahuang65: has joined #elixir-lang

2019-03-06

[03:13:22] hahuang65: Ping timeout: 245 seconds
[03:13:54] hahuang65: has joined #RubyOnRails
[03:13:54] hahuang65: has joined #ruby
[03:13:54] hahuang65: has joined #elixir-lang
[03:27:54] hahuang65: Quit: ZNC - https://znc.in
[03:29:03] hahuang65: has joined #RubyOnRails
[03:29:03] hahuang65: has joined #ruby
[03:29:03] hahuang65: has joined #elixir-lang
[04:13:58] hahuang65: sagax: you can maybe use the after_find callback.

2019-03-05

[20:01:12] hahuang65: Radar: sup my dood
[21:17:59] hahuang65: Radar: you're in AUS right?
[21:18:13] hahuang65: man I'd love to visit Sydney and Melbourne
[21:19:00] hahuang65: Radar: wow I've actually never heard of that site before.

2019-02-28

[21:04:14] hahuang65: what would be the best way to include a method from another module in ApplicationHelper
[21:08:01] hahuang65: Radar: in lib/
[21:08:35] hahuang65: Radar: what if I don't want any other methods from that module?
[21:09:05] hahuang65: Radar: haha
[21:09:34] hahuang65: Radar: yeah so do I
[21:10:02] hahuang65: Radar: my use case is basically, I have a module for a 3rd party integration that has a lot of methods. One of which I want in ApplicationHelper so that I can derive a URL
[21:10:15] hahuang65: perhaps the best way is to just have a method call the other module's method.
[21:11:21] hahuang65: Radar: well this part I'm specifically using for a CSV export
[21:11:37] hahuang65: so it renders in CSV, rather than a page
[21:12:23] hahuang65: I suppose I could just call MyModule.my_method in the view...
[21:12:54] hahuang65: I think I'm over-engineering this in my head ha
[21:13:27] hahuang65: thanks for bouncing around ideas with me
[21:13:31] hahuang65: appreciate it as always

2019-02-27

[22:23:19] hahuang65: Quit: ZNC - https://znc.in
[22:26:00] hahuang65: has joined #RubyOnRails
[22:26:00] hahuang65: has joined #ruby
[22:52:05] hahuang65: Quit: ZNC - https://znc.in
[22:54:35] hahuang65: has joined #RubyOnRails
[22:54:35] hahuang65: has joined #ruby

2019-02-25

[21:50:01] hahuang65: has joined #ruby
[21:50:02] hahuang65: has joined #RubyOnRails

2019-02-23

[00:31:10] hahuang65: Quit: ZNC - https://znc.in
[00:36:29] hahuang65: has joined #ruby
[00:36:30] hahuang65: has joined #RubyOnRails
[00:42:32] hahuang65: has left #RubyOnRails: ("WeeChat 2.3")
[00:42:38] hahuang65: has joined #RubyOnRails
[00:52:14] hahuang65: Ping timeout: 268 seconds
[01:10:18] hahuang65: has joined #RubyOnRails
[01:10:18] hahuang65: has joined #ruby
[01:12:39] hahuang65: Client Quit
[01:13:30] hahuang65: has joined #ruby
[01:13:31] hahuang65: has joined #RubyOnRails
[01:15:57] hahuang65: Client Quit
[01:17:01] hahuang65: has joined #RubyOnRails
[01:17:01] hahuang65: has joined #ruby
[05:50:04] hahuang65: hmm can someone explain to me why rails is connecting thru TCP socket when I don't have the host and port lines uncommented in database.yml?
[05:50:21] hahuang65: Trying to figure out why on my laptop it's doing that, but on my desktop, it's looking for domain socket by default.
[05:50:23] hahuang65: same project
[06:04:18] hahuang65: nm, figured it out. It was `PGHOST` and `PGUSER` being set.
[07:40:44] hahuang65: Quit: ZNC - https://znc.in

2019-02-22

[23:04:17] hahuang65: Killed (livingstone.freenode.net (Nickname regained by services))
[23:40:25] hahuang65: has joined #ruby
[23:40:29] hahuang65: has joined #RubyOnRails

2019-02-20

[05:25:40] hahuang65: Quit: ZNC 1.7.1 - https://znc.in
[05:26:00] hahuang65: has joined #ruby
[05:26:01] hahuang65: has joined #RubyOnRails

2019-01-29

[08:43:58] hahuang65: has joined #RubyOnRails
[08:43:58] hahuang65: has joined #ruby

2019-01-22

[20:20:57] hahuang65: Ping timeout: 252 seconds

2019-01-17

[05:08:58] hahuang65: Ping timeout: 272 seconds
[20:42:48] hahuang65: has joined #ruby
[20:42:49] hahuang65: has joined #RubyOnRails

2019-01-11

[09:18:04] hahuang65: Ping timeout: 264 seconds
[09:20:54] hahuang65: has joined #RubyOnRails
[09:20:54] hahuang65: has joined #ruby
[09:25:40] hahuang65: Ping timeout: 244 seconds
[09:27:40] hahuang65: has joined #ruby
[09:27:41] hahuang65: has joined #RubyOnRails

2019-01-10

[08:29:37] hahuang65: Quit: ZNC 1.7.1 - https://znc.in
[08:35:54] hahuang65: has joined #RubyOnRails
[08:35:54] hahuang65: has joined #ruby
[20:56:37] hahuang65: what's the proper way to stream a text file line by line from s3
[20:58:08] hahuang65: I guess I have access to the StringIO object that is the body of the file...

2019-01-06

[21:44:17] hahuang65: Ping timeout: 268 seconds

2018-12-30

[21:54:36] hahuang65: has joined #RubyOnRails
[21:54:36] hahuang65: has joined #ruby

2018-12-20

[21:29:09] hahuang65: Ping timeout: 268 seconds

2018-12-01

[11:34:37] hahuang65: Read error: Connection reset by peer
[11:34:52] hahuang65: has joined #RubyOnRails
[11:34:52] hahuang65: has joined #ruby
[14:58:44] hahuang65: Read error: Connection reset by peer
[14:59:03] hahuang65: has joined #RubyOnRails
[14:59:03] hahuang65: has joined #ruby

2018-11-29

[11:32:57] hahuang65: has joined #RubyOnRails
[11:32:57] hahuang65: has joined #ruby

2018-11-26

[03:17:10] hahuang65: Ping timeout: 268 seconds

2018-11-25

[22:38:58] hahuang65: has joined #ruby
[22:38:59] hahuang65: has joined #RubyOnRails

2018-11-16

[16:59:12] hahuang65: Ping timeout: 272 seconds

2018-11-03

[01:18:35] hahuang65: Ping timeout: 276 seconds

2018-10-20

[03:20:23] hahuang65: Ping timeout: 276 seconds

2018-10-06

[09:23:04] hahuang65: Ping timeout: 240 seconds

2018-09-04

[05:03:35] hahuang65: has joined #RubyOnRails
[05:03:35] hahuang65: has joined #ruby

2018-08-29

[07:40:49] hahuang65: Ping timeout: 244 seconds

2018-08-22

[02:00:08] hahuang65: has joined #RubyOnRails
[02:00:08] hahuang65: has joined #ruby
[08:56:15] hahuang65: Read error: Connection reset by peer
[08:58:12] hahuang65: has joined #RubyOnRails
[08:58:12] hahuang65: has joined #ruby

2018-08-21

[07:56:12] hahuang65: Ping timeout: 265 seconds

2018-08-20

[07:08:15] hahuang65: Read error: Connection reset by peer
[07:11:36] hahuang65: has joined #RubyOnRails
[07:11:36] hahuang65: has joined #ruby

2018-08-17

[02:42:16] hahuang65: any one around I can ask about an algorithms problem I'm working on?
[02:50:34] hahuang65: sevenseacat: i've got this so far... https://gist.github.com/hahuang65/749a666b70dc69308c5c1018b47cea0f it doesn't work for obvious reasons. it recurses itself into eternity
[03:04:42] hahuang65: sevenseacat: yeah, I need some place to store the ones that have been processed.
[03:05:14] hahuang65: i either need to store the siblings that are processed, or some clever way to make sure that they can't possibly be processed twice.
[03:10:56] hahuang65: sevenseacat: I'm not entirely sure what would be a suitable store for this
[03:14:32] hahuang65: sevenseacat: i understand the concept, I just mean, in the rails ecosystem, I'm not sure where to store it. Currently I'm thinking a Redis list keyed off the subject's ID
[03:15:01] hahuang65: the list of "items seen before this"
[03:17:59] hahuang65: sevenseacat: i'm not sure how to do that from an instance of the object

2018-08-16

[22:48:50] hahuang65: anyone good with geneaological terms?
[22:49:07] hahuang65: I'm looking for the term that represents nodes that are of the same generation as a subject node.
[22:49:22] hahuang65: I know ancestors are anything above the subject node, and descendants are anything below the subject node
[22:49:29] hahuang65: looking for the term to represent siblings and cousins
[22:59:18] hahuang65: it doesn't include cousins

2018-08-14

[01:25:33] hahuang65: Remote host closed the connection
[03:08:45] hahuang65: has joined #ruby
[03:08:46] hahuang65: has joined #RubyOnRails

2018-08-09

[00:30:18] hahuang65: Radar: sorry I had to step away to cook too, thanks for picking it back up
[00:31:28] hahuang65: Radar: some sirloin steak, corn, and scallops
[00:32:48] hahuang65: Radar: I'd invite you over... but IIRC you live in AUS or something.
[00:42:18] hahuang65: baweaver: lol
[00:56:42] hahuang65: haha lemur you're silly.
[03:35:47] hahuang65: sevenseacat: how did you come up with your handle
[03:36:56] hahuang65: interesting
[20:56:48] hahuang65: Radar: what you been working on these days?

2018-08-08

[16:58:53] hahuang65: hmmm why's that sad?
[18:58:40] hahuang65: Inside: getting rid of old cruft is always a good thing IMO
[18:59:10] hahuang65: Inside: if you've got your code in version control, then delete them
[22:32:41] hahuang65: hmm is there a way, with Enumerator, to iterate on chunks of the set?
[22:32:59] hahuang65: i.e. instead of Enumerator.each do |item|, Enumerator.each(100) do |items|
[22:41:52] hahuang65: if I have a hash, and I separate them out with `hash.keys` and `hash.values`, am I guaranteed that the index of the values matches the index of the keys?
[22:47:42] hahuang65: Radar: lol thanks
[22:47:52] hahuang65: Radar: dammit.
[22:48:39] hahuang65: Radar: I started working with just .each and grouping them by hand. then I saw your reply lol
[22:53:36] hahuang65: Radar: oddly, I was looking thru the Ruby Enumerable docs, and I didn't see each_slice. Maybe my eyes are broken.
[23:01:02] hahuang65: creature: what's params[:bar] look like?
[23:01:27] hahuang65: havenwood: thanks for the detailed explanation! really appreciate it
[23:03:44] hahuang65: creature: can you show us an example of params[:bar]?
[23:07:39] hahuang65: zenspider: I'm not anymore, but I'm doing something similar now... something like this https://gist.github.com/hahuang65/a194c63728b9a4624ca55966706ba4e2
[23:08:12] hahuang65: creature: it's hard to say without seeing the details. I would have expected JSON.parse to work.

2018-08-03

[22:22:54] hahuang65: Slogger: as far as I know, you just need to pass in the :id attribute
[22:23:34] hahuang65: don't forget to whitelist :id in strong params

2018-08-02

[10:31:34] hahuang65: Ping timeout: 264 seconds
[10:37:10] hahuang65: has joined #RubyOnRails
[10:37:10] hahuang65: has joined #ruby

2018-08-01

[23:15:05] hahuang65: what might be some reasons that mail is being sent and received in our system, but 1 particular mail never reaches any inboxes despite the code giving no indication that it's failing to send?

2018-07-31

[19:54:28] hahuang65: anyone know if I can use Postgres' COPY in a Rails migration?
[19:54:51] hahuang65: I seem to get a syntax on the line after COPY

2018-07-16

[19:21:41] hahuang65: Inside: BPM?

2018-07-12

[03:54:02] hahuang65: I think in the case of including the relation directly on the main object, you have a lot more explaining in docs to do. When are there no related objects, when are they just not loaded, and which keys refer to relationships rather than just attributes
[03:54:27] hahuang65: if you nest it under "relationships" all of that goes away. it's understood that if it's not there, it's not loaded. if it's there but empty, it's empty.
[03:54:39] hahuang65: and the fact that it's under "relationships" makes it a related object, not an attribute
[03:55:04] hahuang65: sure you can distinguish all of that by inspecting the JSON structure, which is easy for a person, but more difficult to read when you code it up
[03:56:40] hahuang65: SteenJobs: that's my 2 cents on this. The more time I spend coding, the more I believe in the benefit of being explicit for everything.
[04:01:49] hahuang65: SteenJobs: in the end, if everyone who is affected by this comes to the same understanding, I really don't think it matters. That's how specs are developed anyway, a group of people agreeing on something that makes sense to them.
[04:02:29] hahuang65: I've got to run, but good luck and hope you come to a conclusion that you're happy with SteenJobs :)