ProofTechnique

Activity Graph

Page 1 of 1

2018-04-12

[14:59:38] ProofTechnique: Quit: ZNC http://znc.in

2018-02-23

[08:33:20] ProofTechnique: has joined #RubyOnRails

2018-01-12

[16:37:39] ProofTechnique: has joined #RubyOnRails

2018-01-01

[15:47:15] ProofTechnique: has joined #RubyOnRails

2017-12-06

[01:07:35] ProofTechnique: Ping timeout: 240 seconds
[01:09:35] ProofTechnique: has joined #RubyOnRails
[20:48:03] ProofTechnique: has joined #RubyOnRails

2017-11-16

[01:28:20] ProofTechnique: has joined #RubyOnRails

2017-11-05

[20:14:28] ProofTechnique: Ping timeout: 240 seconds
[20:20:39] ProofTechnique: has joined #RubyOnRails

2017-10-25

[20:43:03] ProofTechnique: Quit: ZNC http://znc.in
[20:43:38] ProofTechnique: has joined #RubyOnRails

2017-10-06

[02:08:12] ProofTechnique: Ping timeout: 260 seconds
[02:11:00] ProofTechnique: has joined #RubyOnRails

2017-09-25

[08:02:21] ProofTechnique: has joined #RubyOnRails

2017-06-20

[00:22:37] ProofTechnique: has joined #RubyOnRails

2017-06-18

[19:22:30] ProofTechnique: has joined #RubyOnRails

2017-06-02

[21:36:22] ProofTechnique: has left #RubyOnRails: ("ERC (IRC client for Emacs 25.2.1)")

2017-05-01

[16:42:41] ProofTechnique: has joined #RubyOnRails

2017-04-23

[07:49:27] ProofTechnique: Ping timeout: 246 seconds
[07:54:30] ProofTechnique: has joined #RubyOnRails

2017-03-29

[20:59:45] ProofTechnique: Ping timeout: 268 seconds
[21:00:17] ProofTechnique: has joined #RubyOnRails

2017-03-12

[03:37:18] ProofTechnique: has joined #RubyOnRails

2017-03-10

[17:26:08] ProofTechnique: has joined #RubyOnRails

2016-07-22

[03:42:04] ProofTechnique: Design patterns don't make code good, they're just recognized ways to solve problems. If your problem fits a pattern nicely, you can get a lot of expressiveness and reusability, but if you force it then you'll just end up with a mess, anyway
[04:33:48] ProofTechnique: Quit: ZNC http://znc.in
[04:34:24] ProofTechnique: has joined #RubyOnRails
[04:34:24] ProofTechnique: has joined #ruby
[05:06:51] ProofTechnique: has left #ruby: ("ERC (IRC client for Emacs 25.0.95.1)")
[05:46:44] ProofTechnique: Quit: ZNC http://znc.in
[05:47:20] ProofTechnique: has joined #RubyOnRails

2016-07-21

[00:40:25] ProofTechnique: Is there a nice way to have the name of a resource be displayed in a form field, but actually send the id to the backend? I'm trying to get autocompletion with searchkick and typeahead but not have to expose bare ids to users.
[00:43:10] ProofTechnique: I'm currently demoing it in a very ugly way by just having the controller look up the resource by name, but there will inevitably be name clashes, so I want something more robust
[00:51:23] ProofTechnique: fryguy: Oh, duh. That's sensible
[23:15:32] ProofTechnique: Quit: ZNC http://znc.in
[23:16:08] ProofTechnique: has joined #ruby
[23:16:08] ProofTechnique: has joined #RubyOnRails

2016-07-13

[00:12:13] ProofTechnique: Quit: ZNC http://znc.in
[00:13:02] ProofTechnique: has joined #ruby
[00:13:02] ProofTechnique: has joined #RubyOnRails

2016-06-26

[10:46:59] ProofTechnique: has joined #ruby
[10:46:59] ProofTechnique: has joined #RubyOnRails

2016-06-17

[08:43:05] ProofTechnique: Ping timeout: 252 seconds

2016-06-11

[00:05:27] ProofTechnique: has joined #ruby

2016-06-10

[19:09:08] ProofTechnique: has left #ruby: ("Palaver https://palaverapp.com/")

2016-06-06

[15:41:59] ProofTechnique: has joined #ruby
[15:41:59] ProofTechnique: has joined #RubyOnRails

2016-06-05

[10:53:37] ProofTechnique: Ping timeout: 260 seconds

2016-05-23

[06:40:44] ProofTechnique: So I've got an inflection singular 'metadata', 'metadata', but fields_for still insists that I use :metadatum. Am I misunderstanding inflections, or am I missing a step?
[06:46:08] ProofTechnique: has joined #RubyOnRails
[06:46:17] ProofTechnique: So I've got an inflection singular 'metadata', 'metadata', but fields_for still insists that I use :metadatum. Am I misunderstanding inflections, or am I missing a step?
[06:53:08] ProofTechnique: I've restarted it since adding the inflection, yes
[07:00:58] ProofTechnique: alfie_max15: http://lpaste.net/812602267600420864
[07:01:36] ProofTechnique: I thought uncountable would be more correct, but migrations hated that.
[07:04:32] ProofTechnique: No dice. Still requires -um
[07:04:47] ProofTechnique: And yes. The inflection works in all other cases, just not this one.
[07:38:07] ProofTechnique: alfie_max15: ArtistSocialMetadata
[07:40:36] ProofTechnique: has_one :artist_social_metadata
[07:41:00] ProofTechnique: Though I'm looking at my controller now, and it says metadatum several times there, so I guess the inflection didn't actually stick :/
[07:44:05] ProofTechnique: Well, see, that's the odd thing. It seems to take my inflection as correct. If I "artist_social_metadata".classify, it comes out as ArtistSocialMetadata. If I "artist_social_metadata".singularize, it comes out "artist_social_metadata", so it seems like it understands the inflection even without the more specific rule
[07:46:08] ProofTechnique: But it absolutely refuses to show the fields unless I use -um, but then it can't write to the DB because it expects -a. It's quite vexing
[07:52:58] ProofTechnique: I'll look into it. It's not that important, just a nit
[07:54:03] ProofTechnique: Though I've just regenerated the scaffold, and now it says metadata everywhere, so maybe the inflection was just wrong.
[08:22:56] ProofTechnique: tildes, alfie_max15: I figured it out (I think). I had to specify the object reference in fields_for as @artist.artist_social_metadata ||= ArtistSocialMetadata.new
[08:23:48] ProofTechnique: Thanks for the help :)

2016-05-18

[08:45:43] ProofTechnique: Ping timeout: 250 seconds
[08:46:09] ProofTechnique: has joined #ruby

2016-05-06

[17:59:54] ProofTechnique: Ping timeout: 276 seconds
[18:01:50] ProofTechnique: has joined #ruby

2016-05-03

[22:08:16] ProofTechnique: Ping timeout: 264 seconds
[22:10:54] ProofTechnique: has joined #ruby

2016-03-10

[04:52:11] ProofTechnique: Ping timeout: 250 seconds
[04:55:54] ProofTechnique: has joined #ruby
[14:37:44] ProofTechnique: Quit: ZNC http://znc.in
[14:38:34] ProofTechnique: has joined #ruby

2016-02-28

[19:07:57] ProofTechnique: Quit: ZNC http://znc.in
[19:08:34] ProofTechnique: has joined #ruby

2016-02-22

[18:46:55] ProofTechnique: Like the opposite of slice?
[18:47:39] ProofTechnique: Or, I guess, closer to slice!

2016-02-19

[18:25:46] ProofTechnique: has joined #ruby

2016-02-15

[22:07:51] ProofTechnique: has joined #ruby

2016-02-12

[20:20:53] ProofTechnique: Quit: ZNC http://znc.in

2016-02-08

[20:37:32] ProofTechnique: So I'm trying to grab the pk from a Sequel::NoMatchingRow exception, but it seems to set the object nil before I can do anything with it. Am I missing something?
[20:38:38] ProofTechnique: http://sequel.jeremyevans.net/rdoc/classes/Sequel/NoMatchingRow.html
[20:43:24] ProofTechnique: So say i have user = User.with_pk!(3), and what I want is to put "Hey, there's no one called 3, here" or whatever.
[20:51:38] ProofTechnique: Well, right, but my hope is to stick it in a rescue_from in a concern so I don't have to do that by hand every time I need to do that, but I can't seem to figure out how to recover the id.
[20:55:04] ProofTechnique: Yeah, that's essentially what I intend to do, now, I just wanted to make sure I wasn't going crazy :D
[20:58:18] ProofTechnique: I do, so I was hoping I'd be able to inspect dataset and get the id from that, though I couldn't figure out how
[20:58:48] ProofTechnique: And I expect I can't since the dataset is nil
[20:58:54] ProofTechnique: So I'll just have to roll it myself
[20:59:18] ProofTechnique: Thanks for the sanity check :)
[21:01:17] ProofTechnique: Right. I'll probably just write a custom exception, then, and then my own little with_pk
[21:03:10] ProofTechnique: Oh, true. It only sets it nil if it's initialized with a dataset. All right, easy enough.

2016-01-31

[12:28:34] ProofTechnique: has joined #ruby

2016-01-30

[06:17:56] ProofTechnique: has joined #ruby

2016-01-21

[17:19:48] ProofTechnique: has joined #ruby
[17:27:50] ProofTechnique: Anyone have experience with roar and grape-entity and have some points of comparison?
[17:30:08] ProofTechnique: Roar looks more featureful, but I don't know if those features are really useful in practice. grape-entity seems pretty zero effort, with really transparent document nesting syntax, but I like the idea of updating a model based on parsing a document in roar.
[17:32:22] ProofTechnique: Free JSON-HAL, JSON-API, and XML in roar is also kind of attractive
[17:49:05] ProofTechnique: It just means that exceptions work like they do in C++, but the keywords are different.
[17:49:39] ProofTechnique: https://en.wikipedia.org/wiki/Dragnet_(franchise)
[17:49:43] ProofTechnique: It's from the opening narration
[18:17:18] ProofTechnique: Quit: My Mac has gone to sleep. ZZZzzz???
[18:37:20] ProofTechnique: has joined #ruby
[18:37:21] ProofTechnique: Remote host closed the connection