glasz_

Activity Graph

Page 1 of 1

2019-04-03

[01:11:58] glasz_: has joined #elixir-lang
[16:13:28] glasz_: Quit: ZNC - https://znc.in

2017-09-10

[00:47:39] glasz_: has joined #RubyOnRails
[00:48:13] glasz_: hello. somebody awake?

2017-09-08

[19:47:43] glasz_: has joined #RubyOnRails
[19:48:45] glasz_: Remote host closed the connection
[19:54:23] glasz_: has joined #RubyOnRails
[19:55:33] glasz_: folks, wouldn't it be nice if Rails.ajax() returned the XMLHttpRequest instance?
[19:56:18] glasz_: it would allow for: xhr = null; xhr?.abort(); xhr = Rails.ajax();

2017-07-17

[13:00:16] glasz_: has joined #RubyOnRails
[13:00:38] glasz_: salute, folks.
[13:01:30] glasz_: i'm having a hard time with ActionDispatch::IntegrationTest as i'm trying to configure optional default headers to be send during tests
[13:02:14] glasz_: for example, my api controller tests should always send basic auth headers and spare me from having to define headers with every get/post/put/patch/delete call
[13:02:59] glasz_: so i am trying to hack my way into AD::Integration::Session, override #process, and do these things there.
[13:03:47] glasz_: but sth like ActionDispatch::Integration::Session.send(:include, DefaultHeaders) does not seem to work. DefaultHeaders#process is not picked up.
[13:04:45] glasz_: if somebody would be able to give me one ore two pointers i'd be grateful.
[13:05:35] glasz_: dminuoso: please elaborate
[13:10:07] glasz_: dminuoso: interesting.
[13:11:27] glasz_: sylario: i think not. was crawling through the source to find an entry point for my meta programming endevours regarding this issue.
[13:11:48] glasz_: dminuoso: thank you very much.
[13:14:04] glasz_: crazy. never did anything with method currying. thanks again.
[13:22:56] glasz_: ar1a: https://gist.github.com/Integralist/9994331#lambda-curry
[14:05:26] glasz_: Remote host closed the connection

2016-07-23

[03:15:33] glasz_: Quit: Connection closed for inactivity
[10:46:51] glasz_: has joined #RubyOnRails
[12:55:33] glasz_: Quit: Connection closed for inactivity

2016-07-22

[23:47:45] glasz_: has joined #RubyOnRails

2016-07-21

[01:03:56] glasz_: has joined #RubyOnRails
[14:55:32] glasz_: Quit: Connection closed for inactivity

2016-07-19

[19:03:09] glasz_: has joined #RubyOnRails
[19:12:00] glasz_: Remote host closed the connection

2016-07-14

[00:35:56] glasz_: has joined #RubyOnRails
[05:25:26] glasz_: Quit: Connection closed for inactivity
[11:42:52] glasz_: has joined #RubyOnRails
[15:35:27] glasz_: Quit: Connection closed for inactivity

2016-06-26

[01:09:22] glasz_: has joined #RubyOnRails
[04:45:13] glasz_: Quit: Connection closed for inactivity
[08:59:15] glasz_: has joined #RubyOnRails
[11:05:13] glasz_: Quit: Connection closed for inactivity

2016-06-23

[02:05:11] glasz_: Quit: Connection closed for inactivity

2016-06-22

[21:08:10] glasz_: has joined #RubyOnRails

2016-06-14

[03:33:14] glasz_: has joined #RubyOnRails
[05:45:05] glasz_: Quit: Connection closed for inactivity

2016-06-10

[00:19:05] glasz_: Ping timeout: 264 seconds
[00:22:10] glasz_: has joined #RubyOnRails
[00:35:02] glasz_: Quit: Connection closed for inactivity

2016-06-09

[01:06:07] glasz_: has joined #RubyOnRails

2016-06-08

[16:25:00] glasz_: Quit: Connection closed for inactivity

2016-06-07

[18:18:10] glasz_: has joined #RubyOnRails
[18:20:22] glasz_: hi everyone. since the rules don't deny me doing so, i'll just drop https://github.com/jamii-Technologies/sms_kit.
[18:20:51] glasz_: we released a first public gem minutes ago. maybe somebody can make use of it.
[18:25:19] glasz_: cnk: i think the bundled providers present a limited choice when it comes to pricing. but everybody is welcome to put together providers for other sms gateways.
[18:25:26] glasz_: flashpoint9: yes.
[18:27:10] glasz_: flashpoint9: php scene is bigger from what i can see. because pricing, you know...
[18:28:15] glasz_: but there are bigger companies/startups betting on rails. eg sofatutor.com (disclosure: i once worked with them)
[18:28:52] glasz_: and, of course, jamii Technologies ;)
[18:29:42] glasz_: Pathfinder: yes.
[18:31:40] glasz_: flashpoint: if you know 6wunderkinder, they bet on rails as well (at least 4 years ago afaik).
[18:32:05] glasz_: Pathfinder: we are all fellow countrypeople ;)
[18:48:01] glasz_: mwlang: yeah, but they don't originate from germany :p
[18:53:29] glasz_: terrabl: this should help? http://guides.rubyonrails.org/asset_pipeline.html#asset-organization
[18:53:58] glasz_: basically, put vendor assets into vendor/assets folder
[18:54:34] glasz_: and "require" them as you usually do in your asset manifests
[18:55:17] glasz_: not particularly sure about require_tree. but "require imgNotes" should work.
[18:56:46] glasz_: if you need to link them directly, you'll need to add the file names of the files you need seperately into "config/initializers/assets.rb": Rails.application.config.assets.precompile += ['imgNote.css', 'imgNote.js']
[18:58:03] glasz_: <script src="...">
[18:58:59] glasz_: <%= javascript_include_tag "imgNotes.js" %>
[19:00:23] glasz_: sounds about right. but will work anywhere into your html.
[19:00:32] glasz_: *in your html
[19:01:54] glasz_: don't put the minified version into your application. rails will minify files itself.
[19:02:50] glasz_: sure there is: https://github.com/waynegm/imgNotes/blob/master/dist/imgNotes.js
[19:04:21] glasz_: where did you put it?
[19:05:19] glasz_: how do you reference it?
[19:07:33] glasz_: i see. try without the .js
[19:07:56] glasz_: did you add jquery-mousewheel.min to the precompile array?
[19:08:46] glasz_: have a look into config/initilizeres/assets.rb and add jquery-mousewheel.min to the precompile array.
[19:08:55] glasz_: and restart the server after that
[19:11:55] glasz_: which rails version?
[19:12:48] glasz_: terrabl: i'll try with 4.2.6 and post the result
[19:14:02] glasz_: doveomcd: i'd say you'll need to write that code yourself since the wanted behavior depends on data you have somewhere.
[19:23:33] glasz_: terrabl: please get the non-minified versions of the libraries (https://github.com/jquery/jquery-mousewheel)
[19:28:04] glasz_: terrabl: there you go. https://gist.github.com/glaszig/f33f20d81dbb4736c4aae33e06eafc70
[19:28:59] glasz_: this patch shows you the 3 simple changes made to have a "precompiled" vendor asset served by rails' asset pipeline.
[19:30:44] glasz_: it adds the asset file to the tree, configures rails to compile it (assets.rb) and loads it in the browser from the application layout template.
[19:33:49] glasz_: the "$.widget" error? it's missing dependent functionallity. i guess there's other libraries you need to load.
[20:17:32] glasz_: Talltree: in routes.rb "get ':filter_value/:id' => 'controller#index'". in controller#index: '@result = model.where(field: params[:field_value])'.
[20:18:03] glasz_: @result = Model.find(params[:id]).where(field: params[:field_value])
[20:19:45] glasz_: @result = Character.find(params[:id]).where(realm: params[:realm]) -- while routes.rb: get ':realm/:id' => 'characters#index'
[20:24:24] glasz_: and then Character.find(id).in_realm(params[:realm])
[20:24:24] glasz_: Talltree: scope would work well i think: scope :in_realm, -> (realm) { where realm: realm }
[20:25:33] glasz_: you can solve seo with a software?
[20:27:12] glasz_: Talltree: http://guides.rubyonrails.org/active_record_querying.html#passing-in-arguments
[20:29:19] glasz_: Talltree: scopes append sql WHERE conditions to your query. these work with single records just as fine. you just need enough conditions to to get only one record or query by index.
[20:31:04] glasz_: steenjobs: i think there cannot be some sort of saas that solves your seo problems. seo is just some pseudo-science - basically just a bunch of good practices you need to apply to your website.
[20:31:48] glasz_: Talltree: yeah. when you diverge from the resource scheme it can get quite fancy ;)
[20:33:18] glasz_: i don't know much but i do know that urls are pretty important (to google). have nice urls, no duplicate content.
[20:36:27] glasz_: maesitos: germany
[20:47:13] glasz_: i would go bonkers if somebody replaced poltergeist, i'm telling you.
[20:48:23] glasz_: epochwolf: even more so.
[20:48:52] glasz_: epochwolf: how big is your employer? make a case.
[20:50:35] glasz_: in that case, i'd go and unplug the router.
[20:51:28] glasz_: it's a privilege not to live in sf or sth like that, imho.
[20:52:18] glasz_: that's good i guess
[20:52:56] glasz_: well, at facebook or apple you could hang out all day and night with your friendworkers.
[20:53:00] glasz_: workerfriends?
[20:53:07] glasz_: forkerwriends?
[20:53:10] glasz_: whatever.
[20:53:51] glasz_: work-life-balance.
[20:54:01] glasz_: i'm gonna miss that as of next month, i guess.
[21:00:31] glasz_: arup_r: your namespaces need to correspond to the directory structure, context was saying.

2016-06-02

[01:04:58] glasz_: Quit: Connection closed for inactivity
[03:30:27] glasz_: has joined #RubyOnRails
[06:14:57] glasz_: Quit: Connection closed for inactivity

2016-06-01

[22:53:53] glasz_: has joined #RubyOnRails

2016-05-27

[14:18:11] glasz_: has joined #RubyOnRails
[16:24:54] glasz_: Quit: Connection closed for inactivity

2016-05-26

[01:05:36] glasz_: has joined #RubyOnRails
[03:24:54] glasz_: Quit: Connection closed for inactivity

2016-05-09

[17:26:33] glasz_: has joined #RubyOnRails
[17:55:13] glasz_: has left #RubyOnRails: ()
[17:55:26] glasz_: has joined #RubyOnRails

2016-02-22

[19:13:41] glasz_: has joined #RubyOnRails
[20:05:07] glasz_: Remote host closed the connection
[20:58:19] glasz_: has joined #RubyOnRails