apeiros_

Activity Graph

Page 1 of 26 | Next »

2018-11-05

[14:30:36] apeiros_: has joined #ruby
[14:30:37] apeiros_: has joined #RubyOnRails
[14:30:37] apeiros_: has joined #ruby-offtopic

2018-11-01

[16:13:37] apeiros_: has joined #ruby
[16:13:38] apeiros_: has joined #RubyOnRails
[16:13:38] apeiros_: has joined #ruby-offtopic
[16:29:02] apeiros_: Inside: as of 1.9, yes
[16:29:12] apeiros_: hashes are ordered (insertion order)

2018-10-31

[16:29:47] apeiros_: has joined #RubyOnRails
[16:29:47] apeiros_: has joined #ruby-offtopic
[16:29:47] apeiros_: has joined #ruby
[17:26:02] apeiros_: Read error: Connection reset by peer
[17:27:11] apeiros_: has joined #RubyOnRails
[17:27:11] apeiros_: has joined #ruby-offtopic
[17:27:11] apeiros_: has joined #ruby
[18:14:44] apeiros_: under an LSD bulb

2018-10-29

[13:49:59] apeiros_: has joined #RubyOnRails
[13:49:59] apeiros_: has joined #ruby-offtopic
[13:49:59] apeiros_: has joined #ruby
[15:13:55] apeiros_: enslavedtuna: those are two consecutive method calls.
[15:14:52] apeiros_: enslavedtuna: how to do it dynamically would be either a.send("[]", 1).send("[]", 0) or a.send("dig", 1, 0)
[15:15:19] apeiros_: of course that means you'd have to process your string first get those 3-4 values out first (method name and arguments)

2018-10-25

[15:13:58] apeiros_: has joined #RubyOnRails
[15:13:58] apeiros_: has joined #ruby-offtopic
[15:13:58] apeiros_: has joined #ruby
[18:19:48] apeiros_: Inside: hm? what stops you from gisting your code here and ask for input?

2018-10-20

[07:25:51] apeiros_: book? yes, I think it'd make sense. though I'm not sure at what level you're aiming. depending on that base my approach
[07:26:17] apeiros_: e.g. if you aim at beginner level, I'd mostly go with "those exist also, they are similar but not exactly the same, you find more info over *there*"
[08:40:58] apeiros_: Remote host closed the connection
[10:48:14] apeiros_: has joined #RubyOnRails
[10:48:14] apeiros_: has joined #ruby-offtopic
[10:48:14] apeiros_: has joined #ruby
[11:29:18] apeiros_: Read error: Connection reset by peer
[11:29:30] apeiros_: has joined #RubyOnRails
[11:29:30] apeiros_: has joined #ruby-offtopic
[11:29:30] apeiros_: has joined #ruby
[11:31:09] apeiros_: JasonO: paraphrasing: you want to generate an array with N distinct random numbers?
[11:32:45] apeiros_: `n.times.entries` can be shortened to `[*0...n]`
[11:33:23] apeiros_: and it assumes the pool of numbers is 0...N, but it might be unrelated to the size of the resulting array.
[11:33:47] apeiros_: (i.e. an array of 20 elements with random values 100..200)
[11:36:29] apeiros_: eh, gotta go. boarding starts. cya :)
[20:36:15] apeiros_: has joined #RubyOnRails
[20:36:15] apeiros_: has joined #ruby-offtopic
[20:36:15] apeiros_: has joined #ruby

2018-10-19

[16:31:28] apeiros_: has joined #RubyOnRails
[16:31:28] apeiros_: has joined #ruby-offtopic
[16:31:28] apeiros_: has joined #ruby
[19:36:23] apeiros_: Read error: Connection reset by peer
[19:41:34] apeiros_: has joined #RubyOnRails
[19:41:34] apeiros_: has joined #ruby-offtopic
[19:41:34] apeiros_: has joined #ruby

2018-10-17

[05:54:08] apeiros_: Remote host closed the connection
[10:32:10] apeiros_: has joined #ruby-offtopic
[10:32:10] apeiros_: has joined #ruby
[10:32:11] apeiros_: has joined #RubyOnRails
[10:45:05] apeiros_: Ping timeout: 276 seconds
[10:46:41] apeiros_: has joined #RubyOnRails
[10:46:41] apeiros_: has joined #ruby-offtopic
[10:46:41] apeiros_: has joined #ruby
[10:58:57] apeiros_: Ping timeout: 250 seconds
[12:57:53] apeiros_: has joined #RubyOnRails
[12:57:53] apeiros_: has joined #ruby-offtopic
[12:57:53] apeiros_: has joined #ruby
[13:12:57] apeiros_: Remote host closed the connection
[13:19:40] apeiros_: has joined #RubyOnRails
[13:19:40] apeiros_: has joined #ruby-offtopic
[13:19:40] apeiros_: has joined #ruby
[13:25:24] apeiros_: Remote host closed the connection

2018-10-09

[05:34:25] apeiros_: Remote host closed the connection
[05:47:23] apeiros_: has joined #RubyOnRails
[05:47:23] apeiros_: has joined #ruby-offtopic
[05:47:23] apeiros_: has joined #ruby
[05:54:00] apeiros_: Remote host closed the connection
[11:04:33] apeiros_: has joined #RubyOnRails
[11:04:33] apeiros_: has joined #ruby-offtopic
[11:04:33] apeiros_: has joined #ruby
[11:05:57] apeiros_: Client Quit
[15:36:28] apeiros_: has joined #RubyOnRails
[15:36:28] apeiros_: has joined #ruby-offtopic
[15:36:28] apeiros_: has joined #ruby
[20:32:06] apeiros_: you shouldn't use non-csv reading methods to advance in a csv (assuming the file does not consist of partially non-csv values)
[20:32:17] apeiros_: reason: a single csv row may very well contain newlines
[20:32:54] apeiros_: TIL pread, though. nice.
[20:54:39] apeiros_: didn't find it :( I'll try to contact adaedra

2018-10-08

[13:21:31] apeiros_: has joined #RubyOnRails
[13:21:31] apeiros_: has joined #ruby-offtopic
[13:21:31] apeiros_: has joined #ruby
[14:26:50] apeiros_: Remote host closed the connection
[14:57:46] apeiros_: has joined #RubyOnRails
[14:57:46] apeiros_: has joined #ruby-offtopic
[14:57:46] apeiros_: has joined #ruby

2018-10-06

[08:27:41] apeiros_: has joined #RubyOnRails
[08:27:41] apeiros_: has joined #ruby-offtopic
[08:27:41] apeiros_: has joined #ruby
[08:32:51] apeiros_: Remote host closed the connection
[08:38:47] apeiros_: has joined #RubyOnRails
[08:38:47] apeiros_: has joined #ruby-offtopic
[08:38:47] apeiros_: has joined #ruby
[08:39:43] apeiros_: hm, on the upside of my rants @ apple - siri seems to recognize the swiss german's accent quite well. though I still have to talk in standard german.
[15:04:42] apeiros_: has joined #RubyOnRails
[15:04:42] apeiros_: has joined #ruby-offtopic
[15:04:42] apeiros_: has joined #ruby
[17:37:11] apeiros_: ogotai: just replacing the second group with {2} still matches for me
[17:37:22] apeiros_: but ruby's regex engine does not repeat capturing groups
[17:37:35] apeiros_: so if you quantify a capturing group, you'll only get the last substring it matches

2018-10-05

[14:55:02] apeiros_: has joined #ruby
[14:55:03] apeiros_: has joined #RubyOnRails
[14:55:03] apeiros_: has joined #ruby-offtopic
[16:17:07] apeiros_: edwardthefma: it's friday
[16:21:54] apeiros_: woot, two apeiros!
[19:23:18] apeiros_: has joined #ruby
[19:23:19] apeiros_: has joined #RubyOnRails
[19:23:19] apeiros_: has joined #ruby-offtopic
[21:06:49] apeiros_: has joined #RubyOnRails
[21:06:49] apeiros_: has joined #ruby-offtopic
[21:06:49] apeiros_: has joined #ruby
[21:13:47] apeiros_: lemur: I'm back :)
[21:14:00] apeiros_: sorry, had to run a couple of target disk mode experiments
[21:14:18] apeiros_: and I gotta say, target mode is terrible on the 2018 models. ~330MB/s max.

2018-09-20

2018-09-19

[00:08:28] apeiros_: Ping timeout: 246 seconds
[00:58:25] apeiros_: has joined #RubyOnRails
[00:58:25] apeiros_: has joined #ruby-offtopic
[00:58:25] apeiros_: has joined #ruby
[06:03:33] apeiros_: Remote host closed the connection
[06:12:59] apeiros_: has joined #RubyOnRails
[06:12:59] apeiros_: has joined #ruby-offtopic
[06:12:59] apeiros_: has joined #ruby
[06:23:40] apeiros_: Remote host closed the connection
[08:26:53] apeiros_: has joined #RubyOnRails
[08:26:53] apeiros_: has joined #ruby-offtopic
[08:26:53] apeiros_: has joined #ruby
[08:40:28] apeiros_: masterasia: nothing happens. it will remain.
[10:38:25] apeiros_: has joined #RubyOnRails
[10:38:25] apeiros_: has joined #ruby-offtopic
[10:38:25] apeiros_: has joined #ruby
[16:30:18] apeiros_: has joined #ruby
[16:30:19] apeiros_: has joined #RubyOnRails
[16:30:19] apeiros_: has joined #ruby-offtopic
[21:11:51] apeiros_: Ping timeout: 252 seconds
[21:54:07] apeiros_: has joined #RubyOnRails
[21:54:07] apeiros_: has joined #ruby-offtopic
[21:54:07] apeiros_: has joined #ruby

2018-09-18

[10:12:05] apeiros_: has joined #RubyOnRails
[10:12:05] apeiros_: has joined #ruby-offtopic
[10:12:05] apeiros_: has joined #ruby
[10:12:37] apeiros_: wow, that was quite precise (40min)
[15:06:12] apeiros_: has joined #RubyOnRails
[15:06:12] apeiros_: has joined #ruby-offtopic
[15:06:12] apeiros_: has joined #ruby
[18:22:47] apeiros_: has joined #RubyOnRails
[18:22:47] apeiros_: has joined #ruby-offtopic
[18:22:47] apeiros_: has joined #ruby
[18:27:22] apeiros_: Remote host closed the connection
[18:27:37] apeiros_: has joined #RubyOnRails
[18:27:37] apeiros_: has joined #ruby-offtopic
[18:27:37] apeiros_: has joined #ruby
[22:24:46] apeiros_: probably one of those newfangled javascript frameworks

2018-09-17

[11:12:41] apeiros_: has joined #RubyOnRails
[11:12:41] apeiros_: has joined #ruby-offtopic
[11:12:41] apeiros_: has joined #ruby
[12:45:37] apeiros_: ok, I'm too stupid - I have two local rails apps, one running on 127.0.0.1:3000, and the other on 127.0.0.1:3001. From 127.0.0.1:3001 I want to do a fetch("http://127.0.0.1:3000/api/somethings.json") in JS.
[12:46:10] apeiros_: At the moment I get "Origin http://127.0.0.1:3001 is not allowed by Access-Control-Allow-Origin"
[12:46:51] apeiros_: both are rails 5.2.1
[12:47:24] apeiros_: where do I have to add what to add this? my attempts at modifying config/initializers/content_security_policy.rb failed, as did my try to call `content_security_policy false` in the ApplicationController
[12:47:57] apeiros_: RougeR: that won't work.
[17:59:43] apeiros_: has joined #RubyOnRails
[17:59:43] apeiros_: has joined #ruby-offtopic
[17:59:43] apeiros_: has joined #ruby
[18:34:25] apeiros_: Inside: https://en.wikipedia.org/wiki/Hash_table

2018-09-10

[16:01:00] apeiros_: has joined #RubyOnRails
[16:01:00] apeiros_: has joined #ruby-offtopic
[16:01:00] apeiros_: has joined #ruby
[18:51:11] apeiros_: canurabus: I hope you tried it out by now. however, note that the rescue there is irrelevant with regards to bar not being called.

2018-09-08

[08:08:40] apeiros_: has joined #RubyOnRails
[08:08:40] apeiros_: has joined #ruby-offtopic
[08:08:40] apeiros_: has joined #ruby
[11:05:59] apeiros_: Remote host closed the connection
[11:09:24] apeiros_: has joined #RubyOnRails
[11:09:24] apeiros_: has joined #ruby-offtopic
[11:09:24] apeiros_: has joined #ruby
[17:43:18] apeiros_: there is a point to do it that way.

2018-09-07

[06:05:47] apeiros_: Remote host closed the connection
[11:24:20] apeiros_: has joined #RubyOnRails
[11:24:20] apeiros_: has joined #ruby-offtopic
[11:24:20] apeiros_: has joined #ruby
[14:03:02] apeiros_: is there a suggested base image for docker to build rails apps from?

2018-09-06

[00:16:49] apeiros_: has joined #RubyOnRails
[00:16:49] apeiros_: has joined #ruby-offtopic
[00:16:49] apeiros_: has joined #ruby
[00:21:27] apeiros_: Ping timeout: 252 seconds
[01:11:36] apeiros_: has joined #RubyOnRails
[01:11:36] apeiros_: has joined #ruby-offtopic
[01:11:36] apeiros_: has joined #ruby
[01:16:06] apeiros_: Ping timeout: 252 seconds
[02:06:25] apeiros_: has joined #RubyOnRails
[02:06:25] apeiros_: has joined #ruby-offtopic
[02:06:25] apeiros_: has joined #ruby
[02:11:00] apeiros_: Ping timeout: 272 seconds
[03:01:13] apeiros_: has joined #RubyOnRails
[03:01:13] apeiros_: has joined #ruby-offtopic
[03:01:13] apeiros_: has joined #ruby
[03:05:33] apeiros_: Ping timeout: 244 seconds
[05:24:28] apeiros_: has joined #RubyOnRails
[05:24:28] apeiros_: has joined #ruby-offtopic
[05:24:28] apeiros_: has joined #ruby
[05:31:39] apeiros_: Remote host closed the connection
[06:59:41] apeiros_: has joined #RubyOnRails
[06:59:41] apeiros_: has joined #ruby-offtopic
[06:59:41] apeiros_: has joined #ruby
[07:26:54] apeiros_: anikras: ok, so you stated your intent. do you also have a question?
[08:30:52] apeiros_: has joined #RubyOnRails
[08:30:52] apeiros_: has joined #ruby-offtopic
[08:30:52] apeiros_: has joined #ruby
[09:17:41] apeiros_: !fact ed better "Best" and "better" are subjective. Try to use a different term, or try to qualify what would make one thing better than the other.
[12:50:14] apeiros_: has joined #RubyOnRails
[12:50:14] apeiros_: has joined #ruby-offtopic
[12:50:14] apeiros_: has joined #ruby
[15:27:56] apeiros_: has joined #RubyOnRails
[15:27:56] apeiros_: has joined #ruby-offtopic
[15:27:56] apeiros_: has joined #ruby
[15:38:20] apeiros_: Mark22kk: that's fine. note that there's also a german ruby channel :)
[20:12:58] apeiros_: Ping timeout: 245 seconds
[21:06:01] apeiros_: has joined #RubyOnRails
[21:06:01] apeiros_: has joined #ruby-offtopic
[21:06:01] apeiros_: has joined #ruby

2018-09-05

[14:39:26] apeiros_: has joined #RubyOnRails
[14:39:26] apeiros_: has joined #ruby-offtopic
[14:39:26] apeiros_: has joined #ruby
[15:13:38] apeiros_: Read error: Connection reset by peer

2018-08-30

[17:01:42] apeiros_: has joined #RubyOnRails
[17:17:04] apeiros_: Remote host closed the connection
[17:29:00] apeiros_: has joined #RubyOnRails
[17:29:00] apeiros_: has joined #ruby-offtopic
[17:29:00] apeiros_: has joined #ruby
[18:14:20] apeiros_: TomyWork: break will return from the block, not giving back control to the yielding method
[18:14:51] apeiros_: >> def foo; yield; puts "never printed"; end; foo do puts "before"; break; end; puts "after" # check the link
[18:23:28] apeiros_: TomyWork: there's no declaration in ruby, so no. you must assign.
[18:23:42] apeiros_: but as baweaver showed, just assign nil.