sonne

Activity Graph

Page 1 of 2 | Next »

2019-04-27

[08:28:08] sonne: has joined #ruby
[12:36:00] sonne: has left #ruby: ()

2018-12-19

[02:08:41] sonne: has left #ruby: ()

2018-11-07

[10:55:54] sonne: strk: CONSTNAME ||= 123 ?

2018-10-08

[13:07:45] sonne: rapha: string.tr('^0-9','').to_i might do the trick
[13:09:07] sonne: string.split[-1].to_i would also work.. it all depends on what your assumptions are

2018-10-03

[16:17:27] sonne: i usually consider any nonempty value as true
[16:18:36] sonne: the only boolean thing about env vars is being set or not being set, so i adopt that - not necessarily the best thing to do though

2018-09-11

[12:51:00] sonne: lyr: i think passenger reloads the app based on triggers, such as touching config.ru. just picking from very old memories though.

2018-08-09

[17:17:46] sonne: Quit: ZNC - http://znc.in
[17:18:43] sonne: has joined #ruby
[18:06:56] sonne: Ping timeout: 256 seconds
[22:16:29] sonne: has joined #ruby

2018-07-20

[00:07:13] sonne: *.net *.split
[00:15:49] sonne: has joined #ruby

2018-06-09

[18:04:07] sonne: Ping timeout: 245 seconds

2018-05-29

[02:44:51] sonne: *.net *.split
[02:45:19] sonne: has joined #ruby
[02:46:59] sonne: *.net *.split
[02:47:53] sonne: has joined #ruby

2018-05-23

[20:08:12] sonne: Ping timeout: 256 seconds
[20:09:35] sonne: has joined #ruby

2018-05-10

[23:26:48] sonne: has joined #ruby

2018-03-13

[15:06:42] sonne: has left #ruby: ()

2018-03-08

[15:20:17] sonne: has joined #ruby

2017-11-23

[08:17:30] sonne: has left #ruby: ()

2017-11-08

[09:46:12] sonne: Ping timeout: 260 seconds
[09:49:43] sonne: has joined #ruby

2017-11-07

[01:30:19] sonne: has joined #ruby

2017-10-13

[19:32:35] sonne: has left #ruby: ()

2017-09-12

[23:51:58] sonne: Ping timeout: 240 seconds
[23:56:08] sonne: has joined #ruby

2017-09-11

[20:23:21] sonne: has joined #ruby

2017-09-04

[18:38:23] sonne: *.net *.split

2017-08-25

[12:35:57] sonne: *.net *.split
[12:36:00] sonne: has joined #ruby

2017-08-14

[23:51:34] sonne: *.net *.split
[23:56:42] sonne: has joined #ruby

2017-08-09

[08:54:17] sonne: has joined #ruby

2017-08-06

[19:07:54] sonne: *.net *.split

2017-07-07

[06:36:35] sonne: Ping timeout: 240 seconds
[06:44:10] sonne: has joined #ruby

2017-06-20

[00:17:35] sonne: *.net *.split

2017-04-20

[11:26:43] sonne: Ping timeout: 260 seconds
[11:31:47] sonne: has joined #ruby

2017-04-13

[01:28:21] sonne: has joined #ruby

2017-04-04

[05:14:23] sonne: *.net *.split

2017-03-25

[16:00:22] sonne: has joined #ruby

2017-03-20

[20:29:15] sonne: *.net *.split

2016-07-22

[15:41:17] sonne: has joined #ruby

2016-06-15

[23:12:56] sonne: *.net *.split

2016-05-23

[06:59:05] sonne: Quit: ZNC - http://znc.in
[07:00:37] sonne: has joined #ruby

2016-05-03

[19:42:26] sonne: *.net *.split
[19:51:42] sonne: has joined #ruby

2016-04-21

[17:01:23] sonne: Ping timeout: 250 seconds
[17:04:44] sonne: has joined #ruby

2016-04-18

[02:14:52] sonne: Ping timeout: 260 seconds
[02:18:42] sonne: has joined #ruby

2016-04-17

[18:09:29] sonne: has joined #ruby
[19:31:01] sonne: Ping timeout: 250 seconds
[19:33:35] sonne: has joined #ruby
[23:10:32] sonne: Ping timeout: 260 seconds
[23:11:55] sonne: has joined #ruby

2016-02-17

[10:10:09] sonne: has joined #ruby

2016-02-15

[15:25:16] sonne: Ping timeout: 248 seconds

2016-02-09

[03:28:26] sonne: Ping timeout: 240 seconds
[03:31:48] sonne: has joined #ruby

2016-01-31

[12:25:24] sonne: *.net *.split
[12:28:22] sonne: has joined #ruby
[23:25:14] sonne: Ping timeout: 250 seconds
[23:31:31] sonne: has joined #ruby

2016-01-21

[08:32:22] sonne: has joined #ruby
[08:32:22] sonne: Changing host

2016-01-20

[18:22:03] sonne: *.net *.split

2016-01-15

[15:32:09] sonne: Ping timeout: 250 seconds
[15:39:44] sonne: has joined #ruby

2016-01-02

[14:12:18] sonne: Ping timeout: 272 seconds
[14:15:51] sonne: has joined #ruby

2015-12-27

[00:20:26] sonne: has joined #ruby

2015-12-21

[09:50:28] sonne: *.net *.split

2015-12-02

[15:37:02] sonne: *.net *.split
[15:41:36] sonne: has joined #ruby
[15:53:11] sonne: *.net *.split
[16:47:51] sonne: has joined #ruby

2015-11-30

[00:49:28] sonne: Ping timeout: 260 seconds
[01:25:16] sonne: has joined #ruby
[04:28:04] sonne: Ping timeout: 245 seconds
[05:00:57] sonne: has joined #ruby
[10:38:04] sonne: Ping timeout: 245 seconds
[10:44:28] sonne: has joined #ruby
[13:43:11] sonne: Ping timeout: 259 seconds
[13:44:48] sonne: has joined #ruby
[13:55:19] sonne: Ping timeout: 258 seconds
[15:36:19] sonne: has joined #ruby
[15:36:19] sonne: Changing host
[15:36:19] sonne: has joined #ruby
[18:39:30] sonne: Ping timeout: 260 seconds
[18:42:35] sonne: has joined #ruby
[21:44:19] sonne: Ping timeout: 245 seconds
[21:46:49] sonne: has joined #ruby

2015-11-26

[19:01:53] sonne: *.net *.split
[19:08:05] sonne: has joined #ruby

2015-10-23

[10:07:45] sonne: *.net *.split

2015-10-21

[07:51:45] sonne: Quit: ZNC - http://znc.in
[08:27:11] sonne: has joined #ruby

2015-10-16

[00:15:56] sonne: has joined #ruby

2015-10-10

[21:30:12] sonne: Ping timeout: 264 seconds
[21:33:46] sonne: has joined #ruby

2015-09-22

[02:40:31] sonne: Ping timeout: 240 seconds
[02:45:06] sonne: has joined #ruby

2015-09-18

[13:37:29] sonne: has joined #ruby
[13:37:29] sonne: Changing host

2015-09-16

[00:21:44] sonne: Ping timeout: 264 seconds

2015-09-11

[19:01:42] sonne: has joined #ruby

2013-01-31

[10:58:56] sonne: people with strange questions always leave ten seconds after asking

2013-01-10

[09:07:28] sonne: i'd like to add some custom configuration to my rails app, i'm thinking of config/initializers/local.rb with MyApp::Application.config.my_var = 'something'
[09:07:36] sonne: is it the best way?
[09:12:39] sonne: https://github.com/railsjedi/rails_config this?
[09:13:21] sonne: it's quite similar to https://github.com/Squeegy/rails-settings it seems
[09:14:26] sonne: Hates_, i'm quite the beginner here... how do i make a view for it? is there some generator?
[09:15:24] sonne: to configure the app via web
[09:15:33] sonne: not that it's strictly necessary, i just thought it'd be nice
[09:16:16] sonne: ah... i just assumed that one was on the db :)
[09:16:18] sonne: no big deal
[09:16:55] sonne: yeah, but that one was on the db and looked similar, that's why the confusion
[09:17:22] sonne: yaml is fine

2013-01-07

[09:07:27] sonne: any hints on how to patch the recent cve on production instances?
[09:07:58] sonne: that is, CVE-2012-5664
[09:11:49] sonne: bricker, you suggest i'm better off working it around on my application than patching the framework?
[09:13:15] sonne: ah there :)
[09:13:39] sonne: is it non-relevant?
[09:33:01] sonne: much appreciated :)

2012-11-06

[08:57:27] sonne: is there a proper way to have css assets loaded only on the views of a certain model/controller?
[08:57:52] sonne: i've seen that if i write styles in app/assets/stylesheets/name.css they get loaded on all the views
[09:24:11] sonne: is there a cleaner way to have controller specific css loaded in the views than <body style="<%= params[:controller] %>" >?
[09:32:44] sonne: warb0, i'd go with bootstrap
[09:49:40] sonne: clocKwize, you should kill the clients...
[09:49:49] sonne: mysqladmin proc -> mysqladmin kill
[09:50:04] sonne: hey workmad3 :)
[09:57:00] sonne: clocKwize, you're using a different database for specs aye?

2012-11-05

[15:48:43] sonne: so if you guys had a working rails application and needed to put a basic login (admin / something) in front of it, what would you do?

2012-10-30

[13:59:12] sonne: anyone else is having problems with unicorn ignoring the "pid" directive?
[15:21:11] sonne: what is public/system there for?
[15:21:31] sonne: i see capistrano attempts to handle it...
[15:22:44] sonne: what is it in a nutshell?
[15:24:04] sonne: cheers :)

2012-10-29

[08:38:03] sonne: if my primary concern was low memory usage, which ruby server and implementation should i use?
[08:38:32] sonne: i've read good things about unicorn and about jruby, but opinions are pretty different around the internet
[08:49:03] sonne: universa1, almost all benchmarks i've read about puma (except for the ones on puma.io) show puma as significantly less performant than all the others... while performance isn't my primary concern, the discrepancy between their benchmarks and the others left me quite suspicious - how are you finding yourself?
[08:49:43] sonne: heh... was a lot of stuff from yesterday night :)
[08:50:26] sonne: universa1, http://jgwmaxwell.com/mri-performance-shootout/
[08:50:36] sonne: first that came to my mind
[08:51:44] sonne: not a big deal for me either since my apps expect an extremely low traffic, but still the differences in the results were puzzling
[08:54:56] sonne: universa1, well.. the different way app servers handle their jobs (e.g. preforks vs workers) results in different efficiencies (e.g. performance vs concurrency vs resources) so i was wondering which approach would have been the best for my requirement
[08:55:59] sonne: universa1, aye, i was just explaining the reason behind my mistrust in puma - the benchmarks were so different that it looked fishy, that's it :)
[08:56:58] sonne: you make a point
[08:57:56] sonne: universa1, so in the end you'd go for puma right?
[08:58:16] sonne: cheers :)

2012-10-26

[08:25:59] sonne: so have you tough folks ever tried vlad?
[08:26:07] sonne: any positive or negative experiences, compared to capistrano?

2012-10-25

[13:16:43] sonne: POLL: how would you folks deploy and/or serve a rails application on a linux server?
[13:17:32] sonne: rushed, in house
[13:18:38] sonne: workmad3, it's a very simple rails application, slightly more complicated than the tutorial
[13:18:54] sonne: with no particular needs in terms of performance
[13:19:10] sonne: i'd just like the deployment to be as less painful as possible
[13:20:14] sonne: workmad3, what about the deploy then?
[13:20:54] sonne: my app is built with latest rails and ruby with quite some gems thrown in, so the distribution will most likely not have what i need - i should have an rbenv with all the thingies
[13:22:08] sonne: workmad3, ideally i'd like the deploy to be simple and reliable, so investing upfront is probably the best i can do
[13:23:25] sonne: workmad3, actually that's what i did so far... i was looking for something better than that :)
[13:24:41] sonne: that one sounds dirty
[13:25:22] sonne: is capistrano the predominant tool for rails deployment?
[13:27:52] sonne: workmad3, we actually use puppet in our infrastructure, but webapps don't look very much like something "puppetable"... i mean, puppeting the rbenv and all the rest seems more of a hassle than it would help
[13:28:50] sonne: workmad3, however i'll think about it, maybe i'm not looking at it from the right perspective.
[13:34:57] sonne: workmad3, and i thought you abandoned me.. :)
[13:35:12] sonne: <sonne> workmad3, we actually use puppet in our infrastructure, but webapps don't look very much like something "puppetable"... i mean, puppeting the rbenv and all the rest seems more of a hassle than it would help
[13:35:14] sonne: <sonne> workmad3, however i'll think about it, maybe i'm not looking at it from the right perspective.
[13:35:43] sonne: kalleth, we run shorewall
[13:36:22] sonne: kalleth, it also controls some sysctl stuff
[13:36:37] sonne: like echo 1 > /proc/sys/net/ipv4/ip_forward
[13:36:52] sonne: which is what you'd normally do after one hour banging your head to the desk wondering why the damn packets don't pass
[13:38:20] sonne: workmad3, actually i am the sysadmin, i've recently started venturing into rails stuff
[13:38:50] sonne: developers have always taken care of the deployments so far, and it was always in java... so you can see why i'm clueless about rails deployment :)
[13:40:14] sonne: workmad3, so capistrano is what i'm looking for...
[13:41:00] sonne: workmad3, so puppet for rbenv and capistrano for the app itself

2012-10-24

[10:11:08] sonne: i can't seem to be able to perform controller tests with rspec: undefined method `match' for #<ActionController::TestResponse:0x00000004260b20>
[10:11:15] sonne: it's quite strange isn't it?
[10:11:55] sonne: http://pastie.org/private/iar86vwzzl327dqspb8oyw
[10:12:00] sonne: that's the code :)
[10:13:06] sonne: workmad3, works with .body... i wonder why all tutorials use only "response"?
[10:14:42] sonne: hold on, tutorials use "response" with other methods, and ".to match" with other data - my mind just pasted them together
[10:14:53] sonne: thanks for that :)
[10:15:55] sonne: render_views is mandatory in order to test "get" methods on controllers right?
[10:16:14] sonne: yes it is if i'm considering browser output and not generated objects and code
[10:16:24] sonne: ACTION types faster than he thinks
[10:17:52] sonne: it's the first time i'm diving into controller testing, so i'm a bit confused... i should use rspec just for tests on generated code, and capybara for views and templates related stuff aye?
[10:22:07] sonne: workmad3, you make good points
[10:40:37] sonne: i love rails and ruby... i feel like i'm coding rainbows
[10:41:13] sonne: and ponies!
[10:41:28] sonne: certainty, then it's time for ruby enterprise? i suspected that...
[10:42:47] sonne: certainty, are you suggesting i should quit as soon as possible to avoid becoming a scheme coder? it's cool man, i can quit anytime.
[10:44:40] sonne: workmad3, didn't get that one...
[10:45:32] sonne: workmad3, didn't know that one... funny though :D
[14:06:23] sonne: workmad3, are you still around?
[15:10:55] sonne: rspec is only loading specs from spec/models and not spec/controllers.. any ideas?
[15:13:05] sonne: ah never mind, spec file wasn't named _spec.rb

2012-10-23

[07:10:08] sonne: hey tagrudev :)
[07:13:46] sonne: tagrudev, remember yesterday's problem about carrying model errors over different views?
[07:14:05] sonne: i got it working with flash[] :)
[07:28:39] sonne: Scient, blame openvz then
[07:29:12] sonne: at least you direct your hate to the proper direction
[07:29:38] sonne: and i can join you in feasting on hate towards openvz
[12:56:35] sonne: Armon_, what you need seems to be related to the ruby on rails tutorial, where is explained how to add a comment to a blog post directly from the post show view... you might want to check it out

2012-10-22

[07:27:58] sonne: which is the best place to put code to be used in the model?
[07:28:27] sonne: that is, a method i'm using on model validators
[07:44:26] sonne: certainty, i thought something like that... but i can't seem to get a proper grasp on how autoloading works
[07:49:47] sonne: certainty, i did that, but it still wouldn't recognize the method... probably because the file just contains "def mymethod() ... " without any module context
[07:50:10] sonne: what should i have done instead?
[07:52:53] sonne: then i can reference it straight away? or should i use Foo::mymethod?
[07:57:54] sonne: certainty, so i should use Foo:: to autoload it, as just invoking the method itself wouldn't use any constants
[08:34:44] sonne: i'm trying "validates :param, :format { :with => /regex/ }", it correctly blocks invalid requests but doesn't show any error messages...
[08:35:22] sonne: not even if i use :message => "something" in the block, is this normal?
[08:37:40] sonne: nevermind, templating error
[08:39:18] sonne: tagrudev, the problem was that i didn't add errors.full_messages.each ... to the view :P
[08:50:12] sonne: now i'm having troubles visualizing the errors on the view... how should i fetch the errors from a different model than the one associated with the view?
[08:50:47] sonne: my situation is similar to the one in section 7.4 of the getting started tutorial (http://guides.rubyonrails.org/getting_started.html)
[08:51:02] sonne: how would the tutorial guy display the errors generated by the comment creation?
[08:51:42] sonne: tagrudev, as in @post.errors in that case?
[08:53:37] sonne: it doesn't seem to be working... @post.errors.each does no iterations
[08:57:32] sonne: tagrudev, there just seem to be no errors - @instance.errors.messages == {}
[08:57:54] sonne: probably the validator doesn't store the errors there
[08:58:19] sonne: refering to the tutorial, the validation is in the "comment" model, not the "post"
[08:58:56] sonne: it's basically the same as the tutorial with different names... but sure i can paste it somewhere
[09:01:38] sonne: tagrudev, http://pastebin.com/6EM8giDB
[09:02:50] sonne: the docs say there is a default one...
[09:02:54] sonne: sec, let me write it
[09:03:21] sonne: validates :username, :format => { :with => /^[a-zA-Z0-9]*$/ , :message => "die" }
[09:03:24] sonne: still nothing displayed
[09:05:12] sonne: tagrudev, http://guides.rubyonrails.org/active_record_validations_callbacks.html section 3.5, the code is the same i used...
[09:05:47] sonne: oh well, have a nice meal :)
[09:07:07] sonne: tagrudev, that's not the issue... i added this: validates_each :username do |record, value, attr| record.errors.add('a', 'die') end
[09:07:29] sonne: now every input will fail with that error message... still i can't see anything on the page
[09:10:15] sonne: it's definitely a view problem..
[09:36:20] sonne: so i'll try again: does anyone know how to view errors from a related model? e.g.: http://pastebin.com/6EM8giDB

2012-10-19

[14:33:11] sonne: thanks for now :)