lolmaus

Activity Graph

Page 1 of 3 | Next »

2018-08-29

[01:49:07] lolmaus: *.net *.split

2018-07-25

[13:44:08] lolmaus: has joined #ruby

2018-07-23

[11:31:25] lolmaus: has joined #ruby
[21:18:50] lolmaus: Quit: Connection closed for inactivity

2016-03-06

[11:43:27] lolmaus: has joined #RubyOnRails
[11:43:49] lolmaus: Gonna start learning Rails. Are there any tutorials for Rails 5?
[22:00:30] lolmaus: Remote host closed the connection

2015-10-21

[01:13:39] lolmaus: Ping timeout: 240 seconds
[07:21:24] lolmaus: has joined #ruby
[08:48:39] lolmaus: Ping timeout: 240 seconds
[09:12:12] lolmaus: has joined #ruby
[12:33:11] lolmaus: Quit: Konversation terminated!

2015-10-20

[11:45:31] lolmaus: has joined #ruby
[15:42:39] lolmaus: Ping timeout: 240 seconds
[16:07:20] lolmaus: has joined #ruby
[19:21:59] lolmaus: Ping timeout: 240 seconds
[23:59:56] lolmaus: has joined #ruby

2015-10-16

[07:00:21] lolmaus: has joined #ruby
[07:57:39] lolmaus: Ping timeout: 240 seconds
[08:56:36] lolmaus: has joined #ruby
[14:40:00] lolmaus: Quit: Konversation terminated!

2015-10-15

[11:05:31] lolmaus: has joined #ruby
[16:01:59] lolmaus: Ping timeout: 240 seconds
[16:29:45] lolmaus: has joined #ruby
[16:53:59] lolmaus: Ping timeout: 240 seconds
[17:56:32] lolmaus: has joined #ruby
[18:24:39] lolmaus: Ping timeout: 240 seconds
[18:25:56] lolmaus: has joined #ruby
[18:38:02] lolmaus: Quit: Konversation terminated!
[18:38:16] lolmaus: has joined #ruby
[18:43:59] lolmaus: Ping timeout: 240 seconds
[19:03:51] lolmaus: has joined #ruby
[19:13:59] lolmaus: Ping timeout: 240 seconds
[19:16:18] lolmaus: has joined #ruby
[19:38:39] lolmaus: Ping timeout: 240 seconds

2015-10-12

[21:17:21] lolmaus: Quit: Konversation terminated!

2015-10-11

[11:06:02] lolmaus: has joined #ruby
[14:49:20] lolmaus: Ping timeout: 240 seconds
[14:59:40] lolmaus: has joined #ruby

2015-10-01

[15:04:00] lolmaus: Quit: Konversation terminated!

2015-09-29

[07:38:20] lolmaus: Ping timeout: 240 seconds
[10:02:13] lolmaus: has joined #ruby
[14:35:00] lolmaus: Ping timeout: 240 seconds
[14:43:56] lolmaus: has joined #ruby
[18:20:20] lolmaus: Ping timeout: 240 seconds
[19:27:01] lolmaus: has joined #ruby

2015-09-28

[12:17:22] lolmaus: has joined #ruby
[12:24:30] lolmaus: Read error: Connection reset by peer
[12:24:51] lolmaus: has joined #ruby

2015-09-24

[09:08:00] lolmaus: Ping timeout: 240 seconds
[09:48:51] lolmaus: has joined #ruby
[11:29:20] lolmaus: Ping timeout: 240 seconds
[12:01:56] lolmaus: has joined #ruby
[13:53:21] lolmaus: Read error: Connection reset by peer
[13:53:44] lolmaus: has joined #ruby
[14:20:40] lolmaus: Ping timeout: 240 seconds

2015-09-23

[09:30:18] lolmaus: has joined #ruby
[22:04:40] lolmaus: Ping timeout: 240 seconds
[22:04:51] lolmaus: has joined #ruby

2015-09-10

[07:13:14] lolmaus: has joined #ruby
[07:16:24] lolmaus: Client Quit

2015-09-09

[07:19:35] lolmaus: has joined #ruby
[20:59:16] lolmaus: Ping timeout: 244 seconds

2015-09-08

[20:33:29] lolmaus: Ping timeout: 244 seconds

2015-09-07

[02:15:26] lolmaus: *.net *.split
[04:30:49] lolmaus: has joined #ruby

2015-09-06

[12:05:02] lolmaus: has joined #ruby

2015-07-28

[14:40:50] lolmaus: has joined #ruby
[15:04:23] lolmaus: Ping timeout: 244 seconds
[16:01:44] lolmaus: has joined #ruby
[16:44:06] lolmaus: Ping timeout: 244 seconds
[18:17:45] lolmaus: has joined #ruby
[19:14:52] lolmaus: Quit: Konversation terminated!

2015-07-23

[16:25:01] lolmaus: has joined #ruby
[17:54:05] lolmaus: Quit: Konversation terminated!

2015-07-19

[00:43:02] lolmaus: Ping timeout: 244 seconds
[01:09:46] lolmaus: has joined #ruby
[09:41:24] lolmaus: Ping timeout: 244 seconds
[09:42:15] lolmaus: has joined #ruby
[09:49:17] lolmaus: Read error: Connection reset by peer
[09:49:41] lolmaus: has joined #ruby
[10:24:52] lolmaus: Quit: Konversation terminated!

2015-07-18

[13:00:11] lolmaus: has joined #ruby
[18:25:12] lolmaus: Remote host closed the connection
[18:25:37] lolmaus: has joined #ruby
[23:42:39] lolmaus: Remote host closed the connection
[23:43:01] lolmaus: has joined #ruby

2015-07-14

[07:43:38] lolmaus: has joined #ruby
[16:50:44] lolmaus: Quit: Konversation terminated!

2015-07-13

[16:29:48] lolmaus: has joined #ruby
[17:48:49] lolmaus: Quit: Konversation terminated!

2015-07-10

[00:43:20] lolmaus: Ping timeout: 256 seconds
[01:10:13] lolmaus: has joined #ruby
[09:42:14] lolmaus: Ping timeout: 256 seconds

2015-07-09

[17:03:23] lolmaus: has joined #ruby
[18:57:41] lolmaus: Remote host closed the connection
[18:58:08] lolmaus: has joined #ruby

2015-07-03

[00:42:54] lolmaus: Ping timeout: 256 seconds
[01:09:36] lolmaus: has joined #ruby
[05:40:42] lolmaus: Read error: Connection reset by peer
[05:41:08] lolmaus: has joined #ruby
[06:44:24] lolmaus: Remote host closed the connection

2015-07-02

[00:43:34] lolmaus: Ping timeout: 256 seconds
[01:10:01] lolmaus: has joined #ruby
[01:47:52] lolmaus: Remote host closed the connection
[01:48:24] lolmaus: has joined #ruby
[09:42:28] lolmaus: Ping timeout: 256 seconds
[09:42:36] lolmaus: has joined #ruby
[12:18:41] lolmaus: Remote host closed the connection
[12:19:05] lolmaus: has joined #ruby
[19:46:59] lolmaus: Read error: Connection reset by peer
[19:47:11] lolmaus: has joined #ruby
[21:19:30] lolmaus: Read error: Connection reset by peer
[21:19:56] lolmaus: has joined #ruby

2015-07-01

[00:43:06] lolmaus: Ping timeout: 256 seconds
[01:10:37] lolmaus: has joined #ruby
[07:13:51] lolmaus: Read error: Connection reset by peer
[07:14:14] lolmaus: has joined #ruby
[09:42:00] lolmaus: Ping timeout: 256 seconds
[09:42:16] lolmaus: has joined #ruby
[09:59:16] lolmaus: Read error: Connection reset by peer
[09:59:40] lolmaus: has joined #ruby
[13:10:49] lolmaus: Remote host closed the connection
[13:11:15] lolmaus: has joined #ruby

2015-06-30

[00:43:12] lolmaus: Ping timeout: 256 seconds
[01:10:14] lolmaus: has joined #ruby
[09:42:06] lolmaus: Ping timeout: 256 seconds
[09:42:14] lolmaus: has joined #ruby
[10:55:15] lolmaus: Remote host closed the connection
[10:55:40] lolmaus: has joined #ruby
[22:13:00] lolmaus: Read error: Connection reset by peer
[22:13:26] lolmaus: has joined #ruby
[22:34:27] lolmaus: Remote host closed the connection
[22:34:49] lolmaus: has joined #ruby

2015-06-29

[17:46:46] lolmaus: has joined #ruby

2015-06-26

[09:42:14] lolmaus: has joined #ruby
[13:38:35] lolmaus: Remote host closed the connection
[13:38:49] lolmaus: has joined #ruby
[23:25:23] lolmaus: Quit: Konversation terminated!

2015-06-25

[00:43:08] lolmaus: Ping timeout: 256 seconds
[01:09:24] lolmaus: has joined #ruby
[09:42:36] lolmaus: Ping timeout: 256 seconds

2015-06-24

[00:43:14] lolmaus: Ping timeout: 256 seconds
[01:09:57] lolmaus: has joined #ruby
[08:00:27] lolmaus: Quit: Konversation terminated!
[15:23:25] lolmaus: has joined #ruby
[19:16:23] lolmaus: Quit: Konversation terminated!
[19:18:19] lolmaus: has joined #ruby

2015-06-23

[12:51:25] lolmaus: has joined #ruby
[17:54:21] lolmaus: Quit: Konversation terminated!
[19:21:53] lolmaus: has joined #ruby

2015-06-13

[08:19:46] lolmaus: has joined #ruby
[08:48:50] lolmaus: Read error: Connection reset by peer
[08:49:07] lolmaus: has joined #ruby
[13:24:53] lolmaus: Read error: Connection reset by peer
[13:44:45] lolmaus: has joined #ruby
[20:32:02] lolmaus: Quit: Konversation terminated!

2015-06-12

[06:35:42] lolmaus: has joined #ruby
[07:43:46] lolmaus: Ping timeout: 256 seconds
[08:48:14] lolmaus: has joined #ruby
[11:47:58] lolmaus: Read error: Connection reset by peer
[11:48:15] lolmaus: has joined #ruby
[22:36:16] lolmaus: Ping timeout: 256 seconds

2015-06-11

[12:48:20] lolmaus: has joined #ruby
[18:31:37] lolmaus: Quit: Konversation terminated!
[20:11:35] lolmaus: has joined #ruby
[22:53:58] lolmaus: Quit: Konversation terminated!

2015-06-07

[08:57:03] lolmaus: has joined #ruby
[11:39:26] lolmaus: Ping timeout: 256 seconds
[11:40:20] lolmaus: has joined #ruby
[13:15:06] lolmaus: Read error: Connection reset by peer

2015-06-06

[17:17:46] lolmaus: has joined #ruby
[17:42:12] lolmaus: Ping timeout: 256 seconds
[21:39:00] lolmaus: has joined #ruby
[22:06:08] lolmaus: Read error: Connection reset by peer

2015-06-04

[07:18:02] lolmaus: Quit: Konversation terminated!

2015-06-03

[13:54:31] lolmaus: has joined #ruby
[16:24:00] lolmaus: Quit: Konversation terminated!
[16:51:16] lolmaus: has joined #ruby
[17:23:14] lolmaus: Ping timeout: 256 seconds
[18:02:09] lolmaus: has joined #ruby

2015-05-26

[11:57:12] lolmaus: has joined #ruby
[15:30:42] lolmaus: Ping timeout: 256 seconds

2015-05-24

[06:03:00] lolmaus: has joined #ruby
[18:35:04] lolmaus: Ping timeout: 256 seconds

2015-05-23

[04:11:34] lolmaus: Ping timeout: 256 seconds
[05:17:56] lolmaus: has joined #ruby
[05:27:30] lolmaus: Ping timeout: 256 seconds
[05:28:43] lolmaus: has joined #ruby
[12:27:34] lolmaus: Read error: Connection reset by peer
[12:29:34] lolmaus: has joined #ruby
[20:09:00] lolmaus: Quit: Konversation terminated!

2015-05-22

[13:06:49] lolmaus: has joined #ruby
[18:44:47] lolmaus: Quit: Konversation terminated!
[20:04:42] lolmaus: has joined #ruby

2015-04-01

[16:11:11] lolmaus: In a Haml/Erb template, how do i include inline the contents of a given file?
[16:16:29] lolmaus: jhass: it's a fishy task indeed. We're rendering "postcards" as strings of HTML code. Those postcards are sends to clients (web and mobile) to be displayed in iframe/webview. Mobile clients should be able to display postcards offline, so all js/css assets should be inlined into HTML.
[16:18:53] lolmaus: jhass: `render 'partial/name'`.
[16:19:46] lolmaus: jhass: render js/css assets?
[16:20:45] lolmaus: jhass: i'm currently using `File.open('bower_components/foo/bar.js').read`.
[16:21:18] lolmaus: jhass: i am told to Base64-encode avatar image and inline it into HTML.
[16:22:21] lolmaus: jhass: thx, and what's the second one?
[16:26:42] lolmaus: jhass: each postcard is rendered once per user and uploaded to a CDN. Not gonna be rerendered for every view. Do i still need the memoizing thing?
[16:29:11] lolmaus: jhass: thank you sir
[16:35:42] lolmaus: In a template, is there a way to list all locals available?

2014-12-17

[12:11:44] lolmaus: When i destroy a record, it's Ruby object is not destroyed, it's frozen: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/persistence.rb#L170
[12:12:12] lolmaus: Why is the object not removed? Ain't it a zombie object that will never be garbage-collected and thus result in a memory leak?
[12:19:53] lolmaus: rvanlieshout: for the same reason why it weren't garbage-collected before the freeze?
[12:31:41] lolmaus: rvanlieshout: calling a `destroy!` on an object does not remove it from the variable.
[12:32:20] lolmaus: sevenseacat: so i have to manually clean up after destroying a record in order to avoid a memory leak?
[12:32:45] lolmaus: sevenseacat: but if it's still referenced?
[12:33:18] lolmaus: sevenseacat: then why do you say that i don't need to manually clean up references?
[12:33:37] lolmaus: sevenseacat: to let it be garbage-collected?
[12:34:58] lolmaus: sevenseacat: unless it's referenced from somewhere.

2014-12-10

[17:22:45] lolmaus: I'm doing this: `ActionController::Base.helpers.image_url('foo.png')`. It works fine in development, producing `/assets/foo.png`. The problem is that the result is the same in production! In production it leads to 404 because all assets are cache busted.
[17:23:03] lolmaus: How do i make `image_url` produce a cache-busted URL in staging and production?
[17:35:14] lolmaus: tubbo: i'm calling that in a model, thus full path
[17:35:36] lolmaus: tubbo: so image_path will produce hashed path and image_url won't? I thought image_url is built atop image_path
[17:37:22] lolmaus: tubbo: gah! image_url DOES produce a hashed URL when i call it in Rails console. But when i use the same call in a model, the URL produced is not hashed.
[17:37:53] lolmaus: tubbo: the alternative is to put the file referenced into /system which to me sucks more than using a helper by full path
[17:40:12] lolmaus: tubbo: in model definition there's a reference to an image. See `:default_url` here: https://github.com/thoughtbot/paperclip#models
[17:48:34] lolmaus: tubbo: i resolved my issue by moving the call to helper from model initialization to a model's method and referencing that method in inialization.
[17:56:28] lolmaus: tubbo: thx for the advice, but i'm a frontend dev, so not gonna dig that deep. Thank you for you effort.
[17:58:05] lolmaus: tubbo: you rock.

2014-12-02

[18:26:12] lolmaus: I've got a `.js.erb` asset file. In that file, i would like to use a helper defined in `app/helpers/application_helper.rb`. How do i make that helper available?
[18:29:20] lolmaus: tbuehlmann: this won't work, the helper is not available like that. And i do need it to work in precompilation.
[18:29:57] lolmaus: tbuehlmann: can i include the ApplicationHelper into Sprockets or Sprockets::Helpers?
[18:34:47] lolmaus: terrellt: i've got an HTML block that should be rendered both serverside (Haml partial) and clientside(HTML code to be initialized with jQuery). To avoid template code duplication, i would like to make the template available in JS via `<%= render partial: 'foo' %>`.
[18:35:01] lolmaus: terrellt: found this: https://github.com/pitr/angular-rails-templates/issues/45#issuecomment-43229086
[18:37:49] lolmaus: terrellt: because all my templates are in Haml and i only want to share one partial into js. I find renderning a haml partial into `.js.erb` to be much simpler than setting up server-side mustache compiling and rewriting my block from Haml to Mustache.
[18:38:30] lolmaus: terrellt: huh?
[18:39:13] lolmaus: terrellt: a partial is a a partial view, e. g. `app/views/shared/_sidebar.haml`.
[18:40:13] lolmaus: terrellt: the block should be rendered clientside and inserted into the page dynamically, without refreshing the page.
[18:40:51] lolmaus: Based on JSON request/response.
[18:45:56] lolmaus: terrellt: 1) I don' like that way. I've got all the necessary data on the clientside, why should i load the server with unnecessary rendering? 2) The API is being polled every 20 seconds by every client. I don't want that partial to be rendered 10000 times per day when it is enough to render it once per deployment.
[18:52:07] lolmaus: terrellt: yes, but there's a catch. That's a `<video><source src="..."></video>` block. The srcs are initialized immediately and it is impossible to update them after the element has been created. So i can't reuse a DOM element, i have to recreated with $('html code').
[18:57:37] lolmaus: tuelz: terrellt: ok, i managed to render the partial into a data attribute on the page.

2014-11-10

[13:22:19] lolmaus: What does "!" mean in localization Yaml? Example: `default: ! '%d.%m.%Y'`
[13:31:49] lolmaus: mikecmpbll: thank you. ^__^
[13:32:25] lolmaus: ACTION nods
[15:28:12] lolmaus: What is the appropriate way to retrieve 'protocol://domain:port' URL without page info?
[15:31:18] lolmaus: Found it: "#{request.protocol}#{request.host_with_port}"

2014-10-23

[11:22:46] lolmaus: I've got Foo and Bar models, Foo belongs to Bar. From Rails console, how do assign a Bar to a Foo? Should be something like `Foo.last.update bar: Bar.last`
[11:26:18] lolmaus: elaptics: yes
[11:31:25] lolmaus: elaptics: uhm, i don't see any mention of Foo or :foo in models/bar.rb. (i'm a frontend dev and i need to populate some data from console)
[11:33:55] lolmaus: elaptics: i got this: Foo.last.bar = Bar.last
[13:05:30] lolmaus: I am given an object with methods 'name_en', 'name_fr', etc. I need to call a method by dynamically assembling method name. How do i do that?
[13:07:13] lolmaus: Fire-Dragon-DoL: thx

2014-10-16

[12:36:45] lolmaus: mikecmpbll: thx