Scient

Activity Graph

Page 1 of 115 | Next »

2019-03-30

[11:19:00] Scient: Ping timeout: 246 seconds
[11:21:38] Scient: has joined #RubyonRails-offtopic
[11:21:38] Scient: has joined #ruby
[11:22:00] Scient: has joined #RubyOnRails

2019-03-27

[18:02:15] Scient: is there an alternative to uglifier with sprockets?
[18:10:55] Scient: isnt uglify the same as uglifier?
[18:11:08] Scient: I have this messed up problem where uglifier seems to break an external JS library

2019-03-19

[00:13:30] Scient: Quit: ZNC - http://znc.in
[00:14:24] Scient: has joined #RubyonRails-offtopic
[00:14:24] Scient: has joined #ruby
[00:14:45] Scient: has joined #RubyOnRails
[00:31:33] Scient: Ping timeout: 246 seconds
[00:32:55] Scient: has joined #RubyonRails-offtopic
[00:32:55] Scient: has joined #ruby
[00:33:17] Scient: has joined #RubyOnRails

2019-03-18

[22:31:45] Scient: Quit: ZNC - http://znc.in
[22:34:09] Scient: has joined #ruby
[22:34:10] Scient: has joined #RubyonRails-offtopic
[22:34:30] Scient: has joined #RubyOnRails

2019-03-17

[01:44:48] Scient: how on earth can a translation be missing in Rails console, but not when I debug it via Puma

2019-03-07

[14:12:03] Scient: why is activestorage such a pile of shit...
[14:12:19] Scient: amd who though its a good idea to check remote storage on every file request, gah

2018-10-22

[19:18:05] Scient: well crap... the ActiveRecord attributes API is pretty neat and everything, but for some reason the model instance is never exposed to the type classes, making it impossible to create neat instance aware stuff (like stuff with instance caching etc)
[19:18:09] Scient: unless im missing something...
[19:57:51] Scient: luckyruby: i wish, it has this overly simplistic approach of doing everything on demand

2018-10-16

[19:44:16] Scient: i have to admit, i dont like webpacker so far :(
[19:44:41] Scient: every single post only talks about how to use webpacker and basically make your Rails app into API only, with all frontend on React or w/e
[19:45:09] Scient: but if you want to have your rails app like you normally would... and then add webpacker for using just JS stuff here and there, it gets fucky
[19:45:30] Scient: not to mention that the whole image handling - including asset hashes and whatnot - is such a pain the ass between the two

2018-10-10

[01:38:10] Scient: *.net *.split

2018-10-05

[04:57:08] Scient: Ping timeout: 252 seconds
[05:00:05] Scient: has joined #RubyonRails-offtopic
[05:00:18] Scient: has joined #ruby
[05:00:18] Scient: has joined #RubyOnRails

2018-10-03

[14:04:21] Scient: Ping timeout: 260 seconds
[14:06:17] Scient: has joined #RubyonRails-offtopic
[14:06:40] Scient: has joined #ruby
[14:06:40] Scient: has joined #RubyOnRails

2018-09-14

[13:54:59] Scient: Ping timeout: 272 seconds
[13:57:41] Scient: has joined #RubyonRails-offtopic
[13:58:04] Scient: has joined #RubyOnRails

2018-08-29

[23:56:11] Scient: has joined #RubyOnRails

2018-08-21

[15:48:43] Scient: Ping timeout: 260 seconds
[15:50:09] Scient: has joined #RubyonRails-offtopic
[15:50:32] Scient: has joined #ruby
[15:50:32] Scient: has joined #RubyOnRails
[18:45:28] Scient: Ping timeout: 260 seconds
[18:47:29] Scient: has joined #RubyonRails-offtopic
[18:47:52] Scient: has joined #ruby
[18:47:52] Scient: has joined #RubyOnRails

2018-08-19

[16:24:55] Scient: *.net *.split
[16:27:56] Scient: has joined #ruby
[16:27:56] Scient: has joined #RubyOnRails

2018-08-06

[01:50:42] Scient: going for 2+ years - thats some fucked up dedication then

2018-08-05

[21:05:30] Scient: after getting spammed to oblivion with the PMs about freenode drama, i read one of the links
[21:05:32] Scient: and holy shit...
[21:05:37] Scient: https://bryanostergaard.com/blog/2018/07/17/freenode-pedo-positive-space/
[21:06:15] Scient: basically the head of infrastructure for freenode is an open pedophile and antisemitist
[22:59:27] Scient: https://web.archive.org/web/20161221103831/https://bryanostergaard.com content from 2016 on the waybackmachine
[22:59:31] Scient: unless thats somehow faekable

2018-07-23

[16:03:31] Scient: they are called hashes
[16:03:53] Scient: Rails has a core extension for Hash#deep_merge
[16:04:41] Scient: or you can check out https://github.com/danielsdeleo/deep_merge

2018-07-20

[00:07:19] Scient: *.net *.split
[00:15:15] Scient: has joined #RubyonRails-offtopic
[00:15:36] Scient: has joined #ruby
[12:50:12] Scient: has joined #RubyOnRails

2018-07-18

[05:16:31] Scient: *.net *.split

2018-06-27

[19:40:24] Scient: is ActiveStorage really as stupid as it looks? i.e all assets need to be requested through the actual app itself?

2018-06-01

[03:44:47] Scient: *.net *.split
[07:47:36] Scient: has joined #ruby
[07:47:37] Scient: has joined #RubyOnRails
[07:47:38] Scient: has joined #RubyonRails-offtopic

2018-05-29

[02:47:15] Scient: *.net *.split
[02:47:33] Scient: has joined #RubyonRails-offtopic
[02:47:47] Scient: has joined #RubyOnRails
[02:48:06] Scient: has joined #ruby

2018-05-07

[13:11:09] Scient: *.net *.split
[13:11:42] Scient: has joined #RubyOnRails
[20:55:54] Scient: Ping timeout: 260 seconds
[20:59:12] Scient: has joined #RubyonRails-offtopic
[20:59:12] Scient: has joined #ruby
[20:59:35] Scient: has joined #RubyOnRails

2018-04-25

[12:26:04] Scient: *.net *.split
[12:26:59] Scient: has joined #RubyonRails-offtopic
[12:27:15] Scient: has joined #ruby
[12:27:32] Scient: has joined #RubyOnRails
[15:01:36] Scient: *.net *.split
[15:03:08] Scient: has joined #RubyOnRails
[15:03:31] Scient: has joined #ruby
[15:03:32] Scient: has joined #RubyonRails-offtopic

2018-04-20

[14:14:41] Scient: Quit: ZNC - http://znc.in
[14:15:02] Scient: has joined #RubyonRails-offtopic
[14:15:02] Scient: has joined #ruby
[14:15:24] Scient: has joined #RubyOnRails

2018-04-11

[19:21:10] Scient: Quit: ZNC - http://znc.in
[19:36:58] Scient: has joined #RubyonRails-offtopic
[19:36:58] Scient: has joined #ruby
[19:37:21] Scient: has joined #RubyOnRails

2018-04-05

[15:21:21] Scient: Ping timeout: 264 seconds
[15:23:19] Scient: has joined #RubyonRails-offtopic
[15:23:19] Scient: has joined #ruby
[15:23:42] Scient: has joined #RubyOnRails

2018-03-28

[15:16:39] Scient: not surprised really
[15:16:43] Scient: soooooooo
[15:16:53] Scient: any chance anyone has poked around with this thing already? https://www.speedshop.co/2018/03/28/nginx-unit-for-ruby.html
[16:16:03] Scient: indeed it does

2018-03-23

[14:07:27] Scient: Read error: Connection reset by peer
[14:07:35] Scient: has joined #RubyonRails-offtopic
[14:07:35] Scient: has joined #ruby
[14:07:56] Scient: has joined #RubyOnRails

2018-01-11

[22:51:06] Scient: Ping timeout: 268 seconds
[22:52:59] Scient: has joined #RubyonRails-offtopic
[22:52:59] Scient: has joined #ruby
[22:53:21] Scient: has joined #RubyOnRails

2018-01-10

[23:52:14] Scient: Ping timeout: 268 seconds
[23:54:41] Scient: has joined #ruby
[23:54:42] Scient: has joined #RubyonRails-offtopic
[23:54:59] Scient: has joined #RubyOnRails

2017-12-21

[01:04:43] Scient: i have a question for you guys...
[01:04:55] Scient: i see my team writing this kind of code quite often - https://gist.github.com/anonymous/16dcb680d9cf5386b9713d63077e400a
[01:05:04] Scient: methods that call other instance methods without params or using the return values
[01:05:20] Scient: which basically mean those methods modify the object internal state, and the logic also now depends on the method call order
[01:05:44] Scient: have you ran into this? and how do you .... educate them about why this is a bad thing to do

2017-12-01

[02:28:53] Scient: has joined #ruby

2017-11-13

[18:53:41] Scient: Ping timeout: 240 seconds
[18:55:10] Scient: has joined #RubyonRails-offtopic
[18:55:10] Scient: has joined #ruby
[18:55:31] Scient: has joined #RubyOnRails

2017-10-06

[02:12:39] Scient: Ping timeout: 255 seconds
[02:13:43] Scient: has joined #RubyonRails-offtopic
[02:13:43] Scient: has joined #ruby
[02:14:05] Scient: has joined #RubyOnRails

2017-09-20

[15:56:39] Scient: if you join the threads, then yes

2017-09-02

[00:37:54] Scient: Ping timeout: 246 seconds
[00:40:29] Scient: has joined #RubyonRails-offtopic
[00:40:29] Scient: has joined #ruby
[00:40:51] Scient: has joined #RubyOnRails

2017-08-29

[20:03:48] Scient: trying to use actionmailer preview with pow
[20:03:59] Scient: and getting "end of file reached" without any info in the trace really
[20:04:06] Scient: anyone got any clue about this issue?

2017-08-26

[19:03:03] Scient: its regex, so you can do a negative condition

2017-08-12

[16:22:19] Scient: how come my OpenStruct in ruby 2.3 doesnt have #json_create.... wtf
[16:22:24] Scient: its a stdlib method, is it not

2017-08-09

[12:03:32] Scient: workmad3: wouldnt the whole concept be that different envs have different keys for decrypting that stuff?

2017-08-06

[19:07:54] Scient: *.net *.split
[19:08:38] Scient: has joined #RubyonRails-offtopic
[19:08:38] Scient: has joined #ruby
[19:08:43] Scient: has joined #RubyOnRails

2017-08-03

[13:59:01] Scient: what the hell is ecto

2017-07-18

[02:13:58] Scient: *.net *.split
[02:14:15] Scient: has joined #RubyOnRails

2017-07-06

[19:55:06] Scient: and the problem is where_

2017-06-20

[00:17:32] Scient: *.net *.split
[00:22:31] Scient: has joined #RubyonRails-offtopic
[00:22:41] Scient: has joined #RubyOnRails

2017-05-23

[08:49:04] Scient: Ping timeout: 240 seconds
[08:51:31] Scient: has joined #RubyonRails-offtopic
[08:51:31] Scient: has joined #ruby
[08:51:53] Scient: has joined #RubyOnRails

2017-04-27

[18:49:00] Scient: does _any_ exception raised inside an AR transaction block trigger a rollback?
[18:50:14] Scient: seems so, its rescuing on Exception, rolling back and then re-raising it..

2017-04-12

[14:48:12] Scient: I think one of the most retarded things ive ran into so far is rails basically blocking me from having a table named transactions
[14:48:15] Scient: and any associated associations
[14:48:20] Scient: facepalm worthy stuff
[15:00:29] Scient: wait what, are u claiming that when a controller is autoloaded, it evaluates the actions and loads constants referenced there?
[15:01:02] Scient: that is absolutely not the case
[15:01:08] Scient: the code is not evaluated, as matthewd said
[15:01:15] Scient: it just loads files and constants in them
[15:02:04] Scient: show me the stacktrace you are talking about Nimzowitsch
[15:04:25] Scient: thats fine
[15:04:42] Scient: i can guarantee that your assumption is wrong though,
[15:04:58] Scient: seeing the stacktrace would help me explain to you whats happening, but i understand not being able to share it
[15:14:41] Scient: and when is this thing happening, during rails startup?
[15:15:57] Scient: gist is fine
[15:17:38] Scient: and this happens when? on app startup?
[15:18:00] Scient: are the model and the controller in a namespace?
[15:18:04] Scient: or on the root level
[15:20:22] Scient: being in the same namespace also would explain why the whole namespace gets loaded on the first reference
[15:21:13] Scient: wait, rails 3.2? :D
[15:22:03] Scient: i almost feel i should retract my comments because 3.x was a fucking wild-wild west :P

2017-03-29

[20:26:48] Scient: Ping timeout: 245 seconds
[20:29:41] Scient: has joined #RubyonRails-offtopic
[20:29:41] Scient: has joined #ruby
[20:29:41] Scient: has joined #RubyOnRails

2016-07-22

[07:22:41] Scient: decorators.... ew
[07:23:28] Scient: AimlessRaven: move your link to a helper, do the logic in the helper and keep your view clean as an example
[07:23:46] Scient: idk what a ternary operator has to do with anything, would not use it there... esp. in the view
[07:24:39] Scient: using a harsher tone is fine, doing it while giving bad advice or not with a good reason is a little meh?
[07:25:34] Scient: dminuoso: please stop pushing your shitty advice atm
[07:26:26] Scient: like most people that ask help here :P
[07:26:54] Scient: anyways, point being that he hardly asked a question requiring a ton of ruby knowledge, or even consiting of a ton of ruby code
[07:27:17] Scient: so blowing him off by sending him to a rails tutorial seems to make absolutely no sense to me for this specific case
[07:27:20] Scient: but thats just me :)
[07:27:45] Scient: esp. as i believe a ternary operator is not a solution there, something else is. maybe reading about decorators/presenters/helpers a little more?
[07:28:26] Scient: or that, even better
[07:29:29] Scient: i also actually think most presenters/decorators are shit personally :P
[07:29:33] Scient: but i know people like to use them
[07:29:52] Scient: (thats why i like the polymorphic route solution too)
[07:31:46] Scient: sevenseacat: go read a rails book! pref. the one you helped to write!

2016-07-12

[11:58:45] Scient: http://ruby-doc.org/core-2.2.0/String.html#method-i-slice
[11:59:10] Scient: giving links to documentation isnt exactly spoonfeeding
[11:59:12] Scient: he can figure it out
[11:59:48] Scient: well... if he refuses to read that link then its his problem :P
[12:00:04] Scient: idk i havent noticed him before personally
[12:09:59] Scient: shhiiiieeet
[12:10:03] Scient: thats a long time :P
[12:22:57] Scient: update returns false if it doesnt complete successfully
[12:23:37] Scient: no thats actually the simple and elegant solution
[12:23:48] Scient: you are overthinking it
[12:24:03] Scient: if record.update(...) = if the record updated successfully
[12:24:07] Scient: how much simpler can i get :D
[12:24:21] Scient: changed? tracks attribute changes independently from persistence, or well almost
[12:24:28] Scient: persisting them wipes the changed state

2016-07-10

[04:59:56] Scient: *.net *.split
[08:54:00] Scient: has joined #ruby
[08:54:06] Scient: has joined #RubyOnRails
[08:54:12] Scient: has joined #RubyonRails-offtopic

2016-07-08

[14:00:00] Scient: yes it will, because its two separate queries

2016-07-07

[23:33:42] Scient: Ping timeout: 246 seconds
[23:35:22] Scient: has joined #RubyOnRails
[23:35:23] Scient: has joined #RubyonRails-offtopic
[23:35:23] Scient: has joined #ruby

2016-07-01

[12:57:41] Scient: @session.organization.dashboards.published.for_user(:user => @session.user_id) for example
[12:57:45] Scient: fill in the scopes yourself :P
[12:58:52] Scient: uses scopes and doesnt rely on manual interpolation?

2016-06-30

[12:22:43] Scient: basldex: your easiest bet is to use lhv.me as your local domain
[12:22:48] Scient: and set the cookie to that
[12:23:05] Scient: or if you are adventurous and use pow, you can make up a longer domain instead of .dev :)
[12:23:19] Scient: like foo.dev, so all your apps are <appname>.foo.dev
[12:23:25] Scient: either way you cant do it for localhost
[12:25:45] Scient: i installed pow via brew
[12:25:53] Scient: and it breaks every time i update node via brew
[12:25:56] Scient: every single fucking time :

2016-06-01

[15:37:32] Scient: anyone here ran into trying to set cookies across all subdomains for a short domain, like xx.yy ?
[15:37:36] Scient: and specifically issues with IE... yay
[21:43:04] Scient: i dont think i have ever ran into something more frustrating and retarded than this
[21:43:23] Scient: IE doesnt allow me to set cookies on .id.me
[21:43:30] Scient: just ignores those cookies, doesnt say anything either

2016-05-27

[14:46:45] Scient: Quit: ZNC - http://znc.in
[15:19:51] Scient: has joined #RubyonRails-offtopic
[15:19:51] Scient: has joined #ruby
[15:19:51] Scient: has joined #RubyOnRails

2016-05-14

[02:23:15] Scient: generally it seems a very bad idea to use a model class as a namespace as well... i.e User and then having User::Foobar next to it
[02:23:22] Scient: things get really weird it seems... :D

2016-05-13

[22:41:55] Scient: if you have a collection of instances, then you preload them via the class method before you get the instances
[22:49:02] Scient: no, first off who cares what bullet says, secondly email_stats.includes(...) doesnt work?