sonOfRa

Activity Graph

Page 1 of 5 | Next »

2018-11-08

[14:02:28] sonOfRa: *.net *.split
[14:04:40] sonOfRa: has joined #RubyOnRails

2018-10-30

[22:59:47] sonOfRa: Remote host closed the connection
[23:00:21] sonOfRa: has joined #RubyOnRails

2018-10-23

[18:06:01] sonOfRa: Remote host closed the connection
[18:10:02] sonOfRa: has joined #RubyOnRails

2018-10-20

[14:58:29] sonOfRa: Remote host closed the connection
[15:03:43] sonOfRa: has joined #RubyOnRails
[15:08:15] sonOfRa: Ping timeout: 252 seconds
[15:16:09] sonOfRa: has joined #RubyOnRails

2018-10-19

[15:48:16] sonOfRa: Remote host closed the connection
[15:48:55] sonOfRa: has joined #RubyOnRails

2018-10-09

[07:54:21] sonOfRa: has left #ruby: ("Leaving")

2018-09-14

[11:12:20] sonOfRa: Remote host closed the connection
[11:12:56] sonOfRa: has joined #ruby
[11:12:56] sonOfRa: has joined #RubyOnRails

2018-09-10

[18:07:59] sonOfRa: Remote host closed the connection
[18:12:04] sonOfRa: has joined #ruby
[18:12:04] sonOfRa: has joined #RubyOnRails

2018-09-07

[03:48:34] sonOfRa: Ping timeout: 240 seconds
[03:55:22] sonOfRa: has joined #ruby
[03:55:22] sonOfRa: has joined #RubyOnRails

2018-09-03

[09:39:19] sonOfRa: Apologies if these messages show up twice, I switched connection and am not sure whether they were successfully sent:
[09:39:49] sonOfRa: application doesn't have a lot of users (there's ~250 accounts, and people only log in to change their password, or admins log in to create new users), so I was wondering if it's viable to just run the builtin web server, and slap a reverse proxy in front of it; that way I can just install ruby locally for a user, have that user run the server on localhost:3000 inaccessible to other IPs, and have apache proxy it to :443 on the real domain name
[09:39:49] sonOfRa: I'm deploying an app with passenger, but I tend to run into the problem that the ruby on debian stable is too old to work with whatever the current rails version is. I could move to testing instead of stable, but it can probably happen there too. What do you folks do to work around this? Currently I compile newer rubies from source and build passenger against that, but that's annoying and a lot of work everytime there's an upgrade. The

2018-08-30

[12:00:54] sonOfRa: Huh. Formatting dates. Can anyone explain the rationale behind %p being AM/PM uppercase and %P being am/pm lowercase?
[12:48:12] sonOfRa: interesting. I don't see am/pm stuff often, but subjectively it feels like am is more common than AM
[12:48:30] sonOfRa: Maybe because most times I see it is in casual conversation where nobody bothers using the shift key

2018-08-29

[11:45:53] sonOfRa: Remote host closed the connection
[11:48:48] sonOfRa: has joined #ruby
[11:48:48] sonOfRa: has joined #RubyOnRails
[12:25:25] sonOfRa: Remote host closed the connection
[12:28:19] sonOfRa: has joined #ruby
[12:28:19] sonOfRa: has joined #RubyOnRails

2018-08-21

[15:56:35] sonOfRa: Remote host closed the connection
[15:57:10] sonOfRa: has joined #ruby
[15:57:10] sonOfRa: has joined #RubyOnRails

2018-08-15

[15:56:47] sonOfRa: Remote host closed the connection
[15:59:47] sonOfRa: has joined #ruby
[15:59:47] sonOfRa: has joined #RubyOnRails
[23:22:55] sonOfRa: Remote host closed the connection
[23:23:29] sonOfRa: has joined #ruby
[23:23:29] sonOfRa: has joined #RubyOnRails

2018-08-13

[20:03:04] sonOfRa: Alright, what could be the cause for this particular behavior I'm seeing? https://gist.github.com/sonOfRa/0ea3af35ff2cfaf301f860f717569497
[20:03:51] sonOfRa: As soon as I try to use *user* in any kind of block inside the function it becomes nil
[20:04:06] sonOfRa: But if I just try to inspect it, or it's members, they are accessible
[20:11:06] sonOfRa: Crossposting from #rubyonrails since it's not specific: Can anyone explain to me this really odd behaviour? https://gist.github.com/sonOfRa/0ea3af35ff2cfaf301f860f717569497
[20:11:59] sonOfRa: Essentially, once any block is entered, user (or any variable that gets assigned user, or any of its contents) becomes nil
[20:12:36] sonOfRa: needed a quick way to print it out to the screen in rails
[20:14:34] sonOfRa: NoMethodError (undefined method `dn' for nil:NilClass): is the actual error
[20:15:31] sonOfRa: With p it seems to be now called multiple times, actually, and I don't quite see why (yet)
[20:16:23] sonOfRa: gist is updated with the update. Interesting. I wonder where the user went
[20:16:59] sonOfRa: Left some of the old to-be-refactored code in there
[20:17:13] sonOfRa: Thanks for the hint, this would have taken ages with the abort way
[20:18:01] sonOfRa: Been a while since I last touched this project, and it's the only ruby thing I've ever done
[20:18:15] sonOfRa: Removing the old code did the trick
[20:19:50] sonOfRa: crossposted this to #ruby and solved it, I had some leftover code lying around that triggered owns_aliases being called twice
[20:21:07] sonOfRa: dealt with too many failed crossposts to not remember these days

2018-08-02

[21:37:13] sonOfRa: Remote host closed the connection
[21:40:58] sonOfRa: has joined #ruby
[21:40:58] sonOfRa: has joined #RubyOnRails

2018-08-01

[16:13:57] sonOfRa: I don't frequently do ruby, but that kind of syntax just confuses me
[16:14:17] sonOfRa: And will probably confuse others as well; two lines is very likely the best, and most obvious path
[16:14:29] sonOfRa: Don't optimize your code for fewest characters, make it actually readable

2018-07-20

[00:07:28] sonOfRa: *.net *.split
[00:15:26] sonOfRa: has joined #RubyOnRails
[00:15:37] sonOfRa: has joined #ruby

2018-07-17

[15:31:43] sonOfRa: Read error: Connection reset by peer
[15:34:38] sonOfRa: has joined #ruby
[15:34:38] sonOfRa: has joined #RubyOnRails

2018-07-02

[09:42:53] sonOfRa: Remote host closed the connection
[09:45:16] sonOfRa: has joined #ruby
[09:45:16] sonOfRa: has joined #RubyOnRails

2018-06-29

[16:09:44] sonOfRa: *.net *.split
[16:14:17] sonOfRa: has joined #ruby
[16:14:18] sonOfRa: has joined #RubyOnRails

2018-06-18

[09:31:01] sonOfRa: Remote host closed the connection
[09:33:15] sonOfRa: has joined #ruby
[09:33:15] sonOfRa: has joined #RubyOnRails

2018-06-17

[12:11:59] sonOfRa: Remote host closed the connection
[12:15:05] sonOfRa: has joined #RubyOnRails
[12:15:06] sonOfRa: has joined #ruby
[12:26:42] sonOfRa: Ping timeout: 256 seconds
[12:31:24] sonOfRa: has joined #ruby
[12:31:24] sonOfRa: has joined #RubyOnRails
[21:08:48] sonOfRa: Remote host closed the connection
[21:10:58] sonOfRa: has joined #ruby
[21:10:58] sonOfRa: has joined #RubyOnRails

2018-06-16

[09:35:32] sonOfRa: Read error: Connection reset by peer
[09:36:18] sonOfRa: has joined #ruby
[09:36:18] sonOfRa: has joined #RubyOnRails

2018-06-08

[21:45:29] sonOfRa: Remote host closed the connection
[21:48:55] sonOfRa: has joined #ruby
[21:48:55] sonOfRa: has joined #RubyOnRails

2018-06-05

[10:44:44] sonOfRa: Remote host closed the connection
[10:47:04] sonOfRa: has joined #ruby
[10:47:04] sonOfRa: has joined #RubyOnRails

2018-05-29

[02:46:56] sonOfRa: *.net *.split
[02:47:45] sonOfRa: has joined #RubyOnRails
[02:47:57] sonOfRa: has joined #ruby
[02:50:08] sonOfRa: *.net *.split
[02:51:44] sonOfRa: has joined #ruby
[02:51:45] sonOfRa: has joined #RubyOnRails
[18:48:18] sonOfRa: Disconnected by services

2018-05-27

[11:06:16] sonOfRa: Remote host closed the connection
[11:08:42] sonOfRa: has joined #RubyOnRails
[11:08:43] sonOfRa: has joined #ruby

2018-05-24

[09:08:31] sonOfRa: Ping timeout: 265 seconds

2018-05-13

[09:47:57] sonOfRa: Remote host closed the connection
[09:50:16] sonOfRa: has joined #ruby
[09:50:16] sonOfRa: has joined #RubyOnRails

2018-05-11

[14:39:07] sonOfRa: Remote host closed the connection
[14:39:46] sonOfRa: has joined #ruby
[14:39:46] sonOfRa: has joined #RubyOnRails

2018-05-08

[12:19:32] sonOfRa: Remote host closed the connection
[12:22:53] sonOfRa: has joined #ruby
[12:22:53] sonOfRa: has joined #RubyOnRails

2018-04-25

[12:25:51] sonOfRa: *.net *.split
[12:27:10] sonOfRa: has joined #ruby
[12:27:31] sonOfRa: has joined #RubyOnRails
[15:01:22] sonOfRa: *.net *.split
[15:03:07] sonOfRa: has joined #RubyOnRails
[15:03:25] sonOfRa: has joined #ruby

2018-04-24

[11:40:11] sonOfRa: Remote host closed the connection
[11:43:23] sonOfRa: has joined #ruby
[11:43:23] sonOfRa: has joined #RubyOnRails

2018-04-13

[14:52:39] sonOfRa: Excess Flood
[14:52:55] sonOfRa: has joined #ruby
[14:52:55] sonOfRa: has joined #RubyOnRails

2018-04-10

[12:30:16] sonOfRa: http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-5-1-to-rails-5-2
[20:27:40] sonOfRa: Remote host closed the connection
[20:31:51] sonOfRa: has joined #ruby
[20:31:51] sonOfRa: has joined #RubyOnRails

2018-04-06

[11:13:22] sonOfRa: arup_r: only german license plates? Or also others?
[11:15:19] sonOfRa: Well if it can be others too, just alphabetically sort them
[11:15:34] sonOfRa: There's not going to be any real logic behind it, especially because lots of other countries don't have regionalized license plate
[11:16:30] sonOfRa: replace all dashes with spaces
[11:16:37] sonOfRa: or just remove all spaces and dashes
[11:17:32] sonOfRa: Though removing everything might yield bad results
[11:17:52] sonOfRa: For example, if you have a car from Hannover (H) with number B 1234
[11:18:00] sonOfRa: Or rather, BA 1234
[11:18:08] sonOfRa: That may also be a car from HB-A-1234
[11:18:30] sonOfRa: So probably best to retain the separator, but make sure to use the same separator everywhere
[11:24:21] sonOfRa: Might make sense to try and clean the DB a bit, mixed spaces and dashes are probably going to throw that off

2018-03-14

[12:10:30] sonOfRa: Remote host closed the connection
[12:14:20] sonOfRa: has joined #ruby
[12:14:20] sonOfRa: has joined #RubyOnRails

2018-03-13

[13:00:01] sonOfRa: Remote host closed the connection
[13:03:19] sonOfRa: has joined #ruby
[13:03:19] sonOfRa: has joined #RubyOnRails

2018-02-28

[13:56:54] sonOfRa: Remote host closed the connection
[14:00:17] sonOfRa: has joined #ruby
[14:00:17] sonOfRa: has joined #RubyOnRails

2018-02-26

[20:03:59] sonOfRa: What would be the most idiomatic way to turn a hash of the form { a => b, c => d } into a 2d array of the for [ [a, b], [c, d] ]?
[20:05:00] sonOfRa: Huh, for some reason I thought that would yield [a,b,c,d]
[20:05:12] sonOfRa: which is != [ [a,b],[c,d] ]
[20:09:46] sonOfRa: #to_a worked just peachy. No idea why I thought that would yield [a,b,c,d]. Though I guess that with the existence of #flatten it makes sense that #to_a doesn't flatten
[20:16:14] sonOfRa: How does one manage to keep up with api internals like this for more than 4 languages? I'm decent with java, c++ and rust these days, but ruby eludes me. Bit of PHP on the side doesn't help
[20:17:00] sonOfRa: Currently working on an older ruby project at work, and while I understand the code and can probably make most of this work, basic stuff like this I just keep having to google, or ask dumb questions like this on IRC
[20:18:39] sonOfRa: dminuoso: heh.
[20:20:06] sonOfRa: I could probably quit C++, but I'm too sentimental about java :)
[20:21:43] sonOfRa: Nobody expects the side effect inquisition
[20:23:07] sonOfRa: Note that !!"false" is true
[20:23:13] sonOfRa: May or may not be what you want
[20:25:33] sonOfRa: Not a lot. I've had glancing brushes with haskell in university courses but never fully got into it
[20:36:25] sonOfRa: definitely. Why would you even. It *might* make more sense if it had reasonable names, i guess?
[20:37:32] sonOfRa: But why would you write C++ like this
[20:37:54] sonOfRa: Because it's entirely unreadable. It would be readable in haskell :)
[20:38:00] sonOfRa: dminuoso: yes, and they're all insane
[20:40:19] sonOfRa: I'm going to bookmark that and click that when I don't need any remaining brainpower that day
[20:44:28] sonOfRa: ACTION shudders
[20:46:41] sonOfRa: http://b.atch.se/posts/non-constant-constant-expressions/ this is another nice thing about the darker confines of the behemoth that is C++

2018-02-07

[11:12:23] sonOfRa: Remote host closed the connection
[11:42:23] sonOfRa: has joined #ruby
[11:42:23] sonOfRa: has joined #RubyOnRails
[13:35:54] sonOfRa: Remote host closed the connection
[13:44:11] sonOfRa: has joined #ruby
[13:44:11] sonOfRa: has joined #RubyOnRails

2018-01-27

[22:09:27] sonOfRa: Remote host closed the connection
[22:12:59] sonOfRa: has joined #ruby
[22:12:59] sonOfRa: has joined #RubyOnRails

2018-01-26

[13:51:41] sonOfRa: Remote host closed the connection
[13:57:02] sonOfRa: has joined #ruby
[13:57:02] sonOfRa: has joined #RubyOnRails

2018-01-22

[15:40:40] sonOfRa: *.net *.split
[15:40:55] sonOfRa: has joined #ruby
[15:40:55] sonOfRa: has joined #RubyOnRails
[23:27:44] sonOfRa: Read error: Connection reset by peer

2018-01-09

[19:08:48] sonOfRa: Remote host closed the connection
[19:11:33] sonOfRa: has joined #ruby
[19:11:33] sonOfRa: has joined #RubyOnRails
[19:20:44] sonOfRa: Remote host closed the connection
[19:24:14] sonOfRa: has joined #ruby
[19:24:14] sonOfRa: has joined #RubyOnRails

2018-01-03

[15:51:21] sonOfRa: Remote host closed the connection
[16:02:10] sonOfRa: has joined #ruby
[16:02:10] sonOfRa: has joined #RubyOnRails

2017-12-23

[12:56:05] sonOfRa: za1b1tsu: depending on database, deleted IDs are not reclaimed
[12:57:00] sonOfRa: that would be hard to keep track off, because you'd have to update the internal counter after every delete, or calculate it on the fly on every insert
[12:57:19] sonOfRa: Some databases, like sqlite, might not do this, depending on how you clear between setups
[12:57:56] sonOfRa: Did you truncate the tables?
[12:58:02] sonOfRa: Truncating resets the counters, iirc
[12:58:35] sonOfRa: The lesson to take away from this is: Don't assume database IDs to be monotonic
[12:58:53] sonOfRa: and: Don't rely on the value of a database ID column for anything except indexing an entry
[12:59:00] sonOfRa: za1b1tsu: well you said you're running cucumber tests?
[12:59:08] sonOfRa: Probably not on the production database, but a local one?
[12:59:31] sonOfRa: And every time you run them again, the database probably gets cleared in some way or the other so you can re-test from a clean slate
[13:00:23] sonOfRa: That depends on *how* it gets cleard
[13:00:40] sonOfRa: if you clear it by truncating, then yes. If it gets cleared by delete queries, then no
[13:02:39] sonOfRa: Don't know, honestly. But again: This highlights the importance of NOT relying on actual ID values
[13:04:01] sonOfRa: That's probably dependent completely on the DB, and maybe even to the specific version
[13:20:15] sonOfRa: Should be, yes

2017-12-13

[11:25:16] sonOfRa: Step 1: Get a Linux VM. Step 2: Install ruby. Step 3: there is no step 3
[11:25:50] sonOfRa: everything on windows is just so ugh
[11:26:01] sonOfRa: No I just run linux
[11:26:09] sonOfRa: Windows gets booted for play, not for work

2017-12-09

[05:06:13] sonOfRa: *.net *.split
[05:14:35] sonOfRa: has joined #ruby

2017-12-08

[10:58:16] sonOfRa: Remote host closed the connection
[11:01:01] sonOfRa: has joined #ruby

2017-12-06

[15:38:25] sonOfRa: you can invoke perl for it, perl treats letters like that. So does php :D
[15:38:57] sonOfRa: also, why are `_^][ part of it?
[15:39:15] sonOfRa: oh right shells
[15:40:33] sonOfRa: theRoUS: I mean, what is the exact behaviour that you would *expect*?
[15:40:48] sonOfRa: shell sequences are very shell-specific
[15:44:46] sonOfRa: dminuoso: my theory is that it's just an ascii table

2017-12-01

[02:28:38] sonOfRa: has joined #ruby

2017-11-30

[08:26:32] sonOfRa: Killed (Sigyn (Spam is off topic on freenode.))
[08:26:52] sonOfRa: has joined #ruby
[08:26:52] sonOfRa: has joined #RubyOnRails

2017-11-28

[13:21:38] sonOfRa: Remote host closed the connection
[13:24:25] sonOfRa: has joined #ruby
[13:24:25] sonOfRa: has joined #RubyOnRails

2017-11-16

[19:04:35] sonOfRa: Remote host closed the connection
[19:07:14] sonOfRa: has joined #RubyOnRails
[19:07:15] sonOfRa: has joined #ruby

2017-11-09

[22:19:57] sonOfRa: Remote host closed the connection
[22:22:43] sonOfRa: has joined #ruby
[22:22:43] sonOfRa: has joined #RubyOnRails

2017-11-08

[09:43:30] sonOfRa: *.net *.split
[09:49:05] sonOfRa: has joined #ruby
[09:49:08] sonOfRa: has joined #RubyOnRails