#silverstripe IRC Log

IRC log for 31 October 2016

All timestamps are in UTC.

1: [00:14:01] * DanaeNZ has joined #silverstripe
2: [00:24:49] * Stomach quit (Ping timeout: 244 seconds)
3: [00:26:43] * Stomach has joined #silverstripe
4: [00:28:58] * pweh quit (Ping timeout: 268 seconds)
5: [00:33:05] * chillu_2323 has joined #silverstripe
6: [00:33:23] * chillu_23 quit (Ping timeout: 245 seconds)
7: [00:33:24] * chillu_2323 is now known as chillu_23
8: [00:42:59] * pweh has joined #silverstripe
9: [01:04:18] * sminnee_ has joined #silverstripe
10: [01:12:44] * Stomach quit (Read error: Connection reset by peer)
11: [01:12:48] * Stomach_ has joined #silverstripe
12: [01:13:15] * sminnee_ has left #silverstripe
13: [01:33:09] * chillu_23 quit (Quit: chillu_23)
14: [01:43:09] * Stomach_ quit (Quit: zzz)
15: [01:43:52] * Stomach has joined #silverstripe
16: [01:49:08] * pweh quit (Ping timeout: 268 seconds)
17: [01:51:43] * chillu_23 has joined #silverstripe
18: [01:53:08] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
19: [01:57:55] * pweh has joined #silverstripe
20: [02:31:28] * chillu_23 quit (Quit: chillu_23)
21: [02:33:02] * chillu_23 has joined #silverstripe
22: [02:33:35] * sminnee_ has joined #silverstripe
23: [02:52:21] * micmania1 quit (Quit: micmania1)
24: [02:53:13] * Stomach quit (Quit: zzz)
25: [02:56:49] * micmania1 has joined #silverstripe
26: [03:05:23] * Stomach has joined #silverstripe
27: [03:41:10] * Stomach quit (Quit: zzz)
28: [03:42:07] * Stomach has joined #silverstripe
29: [03:48:51] * chillu_23 quit (Quit: chillu_23)
30: [03:49:14] * sminnee_ quit (Quit: sminnee_)
31: [03:50:11] * chillu_23 has joined #silverstripe
32: [03:50:15] * sminnee_ has joined #silverstripe
33: [03:50:26] * chillu_23 quit (Client Quit)
34: [03:52:52] * Stomach quit (Quit: zzz)
35: [03:53:35] * Stomach has joined #silverstripe
36: [04:22:10] * sminnee_ has left #silverstripe
37: [04:45:58] * micmania1 quit (Quit: micmania1)
38: [04:53:57] * Stomach quit (Ping timeout: 260 seconds)
39: [05:15:59] * bubaphex has joined #silverstripe
40: [05:20:06] * DanaeNZ quit (Quit: TIME TO FEED)
41: [05:22:20] * Shrike_Finland has joined #silverstripe
42: [05:57:26] * Shrike_Finland quit (Ping timeout: 256 seconds)
43: [05:57:30] * Shrike_Finland1 has joined #silverstripe
44: [06:17:29] * Shrike_Finland1 quit (Quit: Leaving.)
45: [06:20:43] * Shrike_Finland has joined #silverstripe
46: [06:32:12] * Shrike_Finland quit (Quit: Leaving.)
47: [06:36:00] * Shrike_Finland has joined #silverstripe
48: [06:40:13] * Shrike_Finland quit (Client Quit)
49: [06:44:38] * lerni has joined #silverstripe
50: [07:01:08] * Stomach has joined #silverstripe
51: [07:04:14] * Stomach quit (Read error: Connection reset by peer)
52: [07:07:20] * Stomach has joined #silverstripe
53: [07:07:38] * Stomach quit (Read error: Connection reset by peer)
54: [07:11:05] * Stomach has joined #silverstripe
55: [07:18:03] * bubaphex quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
56: [07:20:12] * bubaphex has joined #silverstripe
57: [07:20:13] * Stomach quit (Read error: Connection reset by peer)
58: [07:26:40] * pweh quit (Ping timeout: 260 seconds)
59: [07:30:13] * Shrike_Finland has joined #silverstripe
60: [07:30:52] * Stomach has joined #silverstripe
61: [07:31:08] * Stomach quit (Read error: Connection reset by peer)
62: [07:32:48] * Stomach has joined #silverstripe
63: [07:36:10] * Stomach quit (Read error: Connection reset by peer)
64: [07:36:29] * pweh has joined #silverstripe
65: [07:40:09] * bubaphex quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
66: [07:41:22] * Stomach has joined #silverstripe
67: [07:42:09] * Stomach quit (Read error: Connection reset by peer)
68: [07:48:42] * Stomach has joined #silverstripe
69: [08:04:20] * Stomach quit (Quit: bye)
70: [08:05:10] * Shrike_Finland quit (Quit: Leaving.)
71: [08:14:02] * swaiba has joined #silverstripe
72: [09:01:43] * micmania1 has joined #silverstripe
73: [09:10:39] * cupcake quit (Quit: Page closed)
74: [09:10:53] * cupcake has joined #silverstripe
75: [09:17:15] <swaiba> active directory... active directory... anyone used the active directory module?
76: [09:42:42] * kinglozzer has joined #silverstripe
77: [10:21:01] * cloph_away is now known as cloph
78: [10:21:02] * gelignite has joined #silverstripe
79: [10:27:06] * agent44 has joined #silverstripe
80: [10:28:15] * leomeloxp has joined #silverstripe
81: [10:45:15] * DimiStripe has joined #silverstripe
82: [10:57:52] * wmk has joined #silverstripe
83: [10:57:56] * wmk quit (Client Quit)
84: [11:27:36] <swaiba> active directory... active directory... anyone used the active directory module?
85: [12:10:12] * lerni quit (Remote host closed the connection)
86: [12:10:23] * lerni has joined #silverstripe
87: [12:16:53] * micmania1 quit (Quit: micmania1)
88: [12:47:52] * Shrike_Finland has joined #silverstripe
89: [12:54:31] * agent44 quit (Ping timeout: 268 seconds)
90: [12:57:55] * agent44 has joined #silverstripe
91: [13:13:17] * ss23 quit (Read error: Connection reset by peer)
92: [13:13:44] * ss23 has joined #silverstripe
93: [13:13:45] * ss23 quit (Client Quit)
94: [13:14:11] * ss23 has joined #silverstripe
95: [13:22:04] * huberd has joined #silverstripe
96: [13:23:25] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
97: [13:27:42] * gelignite has joined #silverstripe
98: [13:32:49] * NETim_ has joined #silverstripe
99: [13:39:02] * Shrike_Finland quit (Quit: Leaving.)
100: [14:38:38] * pweh quit (Read error: Connection reset by peer)
101: [14:48:01] * BackEndCoder quit (Ping timeout: 260 seconds)
102: [14:53:06] * BackEndCoder has joined #silverstripe
103: [14:57:04] * agent44 quit (Ping timeout: 260 seconds)
104: [15:04:38] * huberd quit (Quit: Page closed)
105: [15:10:35] * Shrike_Finland has joined #silverstripe
106: [15:16:19] * samsam_ has joined #silverstripe
107: [15:25:42] <samsam_> so I'm including a JS script into the CMS by using Requirements::javascript in a LeftAndMainExtension class
108: [15:26:45] <samsam_> It's loaded only once, as expected. However, I want it to be reloaded on each page/section load in the CMS.
109: [15:27:05] <samsam_> (so each time user browses through SiteTree pages or left-menu sections)
110: [15:32:51] <kinglozzer> samsam_: Why does it need to be reloaded?
111: [15:33:33] <kinglozzer> You don't need to re-download it just to run a function on each load
112: [15:34:48] * Shrike_Finland1 has joined #silverstripe
113: [15:34:52] <samsam_> well, the script targets all the <input> fields on the page, it reads their value upon script load
114: [15:35:51] <samsam_> I'm not that familiar with JS, but I believe the JS script can be coded to work "live" instead of upon each load, right?
115: [15:36:12] <kinglozzer> samsam_: Yep, you can do that with entwine
116: [15:36:22] <kinglozzer> I wrote an introduction to it a while back: https://www.bigfork.co.uk/takeaway/a-beginners-introduction-to-using-entwine-in-silverstripe
117: [15:36:44] * Shrike_Finland quit (Ping timeout: 260 seconds)
118: [15:36:49] <kinglozzer> You could add an 'onmatch' or 'onadd' handler for inputs that can then read their value
119: [15:45:21] * janneklouman-- has joined #silverstripe
120: [15:50:01] * Shrike_Finland1 quit (Quit: Leaving.)
121: [15:59:19] * lerni quit ()
122: [16:43:08] * kinglozzer quit ()
123: [16:50:54] * wmk has joined #silverstripe
124: [16:58:59] * swaiba quit (Remote host closed the connection)
125: [17:12:24] * janneklouman-- quit (Ping timeout: 260 seconds)
126: [17:43:12] * NETim_ quit (Ping timeout: 260 seconds)
127: [17:53:46] * samsam_ quit (Ping timeout: 260 seconds)
128: [18:33:58] * samsam has joined #silverstripe
129: [19:16:44] * Shrike_Finland has joined #silverstripe
130: [19:16:48] <samsam> imagine putting this on top of a .css file to make it dynamic: <?php header('content-type: text/css; charset=utf-8'); ?>
131: [19:17:03] <samsam> and including that in your theme template
132: [19:18:15] <samsam> you should be able to put variables in that 'php'-css file like: getStyle::get()->column('background-color')
133: [19:18:23] <samsam> or any other query, right?
134: [19:19:16] <samsam> trying create the feature that users can edit CSS in CMS
135: [19:36:57] * janneklouman-- has joined #silverstripe
136: [19:40:37] * DanaeNZ has joined #silverstripe
137: [19:46:13] * Shrike_Finland quit (Quit: Leaving.)
138: [20:08:31] * sminnee_ has joined #silverstripe
139: [20:10:38] <wmk> samsam, sounds scary
140: [20:10:44] <samsam> haha sure does
141: [20:10:54] <wmk> there was a module that would compile your css on the server (scss afaik)
142: [20:11:14] <samsam> hmm, going on a google adventure
143: [20:11:40] <wmk> though... with good markup you can just add some modifiers at the end of your css and you're done.
144: [20:12:06] * Stomach has joined #silverstripe
145: [20:12:10] <wmk> depending on what the user should be able to edit
146: [20:12:52] <wmk> samsam, inline css / at <head> would be another approach. Or just outputting in a controller method.
147: [20:13:50] <samsam> inline at <head> should make things a bit easier indeed
148: [20:14:19] <samsam> how do you inject inline css in there through the page controller?
149: [20:15:11] <wmk> samsam, https://packagist.org/packages/zauberfisch/silverstripe-better-requirements compiles (but doesn't inject your values)
150: [20:15:36] <wmk> samsam, i meant call a controller that outputs css (not inline) in your theme
151: [20:15:46] <wmk> instead of writing a file to disc
152: [20:15:53] <samsam> misused the word inline there
153: [20:15:56] <wmk> though that would need caching
154: [20:16:20] <wmk> samsam, there was a "or" in the sentence that divided two thoughts
155: [20:16:42] <samsam> lol yes, I mean I misplaced it myself
156: [20:17:02] <samsam> zauberfisch's mod looks promising
157: [20:17:54] <wmk> yup. Though i love silverstripe for NOT having a feature like that...
158: [20:18:19] <samsam> well yeah, it's nothing I would expect out-of-box
159: [20:18:20] <wmk> i don't believe a customer really wants to edit _everything_
160: [20:19:14] <samsam> yes rarely, but imagine a preset of carefully chosen style variables (primary color, secundary color, alert color, cta color etc)
161: [20:19:39] <samsam> that would enable clients to alter the website look by just modifying a few things
162: [20:19:40] * Nightjar has joined #silverstripe
163: [20:20:06] * wmk throws some lettuce on Nightjar
164: [20:20:15] <Nightjar> :O
165: [20:20:17] <Nightjar> o/
166: [20:20:24] <Nightjar> Morgen!
167: [20:20:35] <wmk> samsam, reminds me of https://github.com/wernerkrauss/silverstripe-onepage/
168: [20:20:48] <Nightjar> lettuce be civil about this greeting now :P
169: [20:21:01] <Nightjar> ooh
170: [20:21:05] * Nightjar inspects new module
171: [20:21:11] <wmk> new?
172: [20:21:38] <wmk> just has some "color settings" stuff (which is horribly injected as inline css)
173: [20:21:56] <Nightjar> lol, #ifitworksitworks
174: [20:22:06] <wmk> hmm... bem as a rescue?
175: [20:22:36] <Nightjar> :/
176: [20:22:46] <wmk> is class="background--yellow" better than style="background-color: yellow"
177: [20:22:48] <samsam> Nightjar you're either: german, belgian or dutch
178: [20:23:11] <wmk> samsam, you're either wrong or wrong
179: [20:23:12] <samsam> 'morgen'
180: [20:23:16] <samsam> lol!
181: [20:23:30] <Nightjar> why?
182: [20:23:37] <samsam> 'morgen' means 'tomorrow'
183: [20:23:42] <samsam> where I'm from
184: [20:23:47] <Nightjar> Pretty sure it's "Morning"?
185: [20:23:51] <samsam> btw class="background--yellow" is that even valid?
186: [20:24:04] <wmk> samsam, yes.
187: [20:24:05] <samsam> well yes, double meaning
188: [20:24:15] <samsam> I've never seen such css
189: [20:24:21] <wmk> block__element--modifier
190: [20:24:22] <Nightjar> samsam, BEM
191: [20:24:26] * samsam calling W3C hotline
192: [20:24:27] <Nightjar> googles :>
193: [20:24:58] <Nightjar> samsam, you're ... Dutch? wmk is German. I greet him :> We're pals.
194: [20:24:59] <wmk> http://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/
195: [20:25:10] <wmk> gearman?
196: [20:25:21] <samsam> I see, I'm Dutch (Amsterdam)
197: [20:25:41] <wmk> this town reminds me of EVH
198: [20:25:46] <Nightjar> UGT
199: [20:25:46] <Nightjar> http://www.total-knowledge.com/~ilya/mips/ugt.html
200: [20:27:22] <samsam> rofl
201: [20:28:51] <wmk> https://youtu.be/m7dVIptMFz4?t=19m21s
202: [20:31:26] * Stomach quit (Ping timeout: 265 seconds)
203: [20:31:39] <samsam> do you guys actually use a css preprocessor?
204: [20:31:45] <samsam> less / sass / stylus whatever
205: [20:32:16] <wmk> sass, yes. with gulp and libsass for speed
206: [20:33:16] * Stomach has joined #silverstripe
207: [20:33:24] <Nightjar> pretty much everyone does right?
208: [20:33:49] * sminnee_ quit (Ping timeout: 260 seconds)
209: [20:34:09] <samsam> does the css compilation impact performance to that extend?
210: [20:34:28] <samsam> that you would need use gulp libsass to speed up?
211: [20:34:34] <Nightjar> ... It's not loaded on the fly
212: [20:34:40] <wmk> samsam, i compile it while developing and put the compiled css to git
213: [20:34:42] <Nightjar> you compile then serve the result.
214: [20:34:51] <Nightjar> it' generates a new file.
215: [20:35:03] <Nightjar> it doesn't impact site performance so much.
216: [20:35:49] <Nightjar> Unless you generate some inefficient rules, which compiles to silly amounts of actual CSS.
217: [20:35:51] <wmk> i have a snippet for adding with sourcemap in dev and minified css in live
218: [20:36:47] <Nightjar> the 'speed' thing wmk is referring to is the time it takes to compile (changing code -> viewing result in browser) for testing purposes.
219: [20:36:58] <wmk> jup.
220: [20:37:08] <wmk> that's what libsass is good for
221: [20:37:23] <wmk> and some live reload for the browser ;)
222: [20:37:38] <Nightjar> it takes DSL -> CSS, you store and serve the CSS>
223: [20:37:51] <Nightjar> Not the sass/less/whatever :>
224: [20:38:20] <Nightjar> when less first came about there was a JS plugin you could serve less and have JS turn it into proper CSS in the browser, but ... that would be silly to do in production.
225: [20:39:13] <samsam> yes!
226: [20:39:23] <samsam> that's how I got the idea of compiling-on-the-run
227: [20:39:37] <samsam> I was totally confused there for a sec, I could swear it used to work like that years ago
228: [20:40:19] <Nightjar> I think it was intended for testing only though.
229: [20:40:33] * Nightjar shrugs
230: [20:42:31] <wmk> that's why we should be careful with our ideas...
231: [20:43:17] <samsam> lolol
232: [20:45:05] <samsam> we're getting somewhere: http://leafo.net/lessphp/
233: [20:50:33] * bubaphex has joined #silverstripe
234: [21:00:16] * micmania1 has joined #silverstripe
235: [21:12:11] * micmania1 quit (Quit: micmania1)
236: [21:15:51] * micmania1 has joined #silverstripe
237: [21:31:13] * Stomach quit (Quit: zzz)
238: [21:31:42] * micmania1 quit (Quit: micmania1)
239: [21:35:48] * Stomach has joined #silverstripe
240: [21:38:48] * chillu_23 has joined #silverstripe
241: [21:49:26] * Tron_ has joined #silverstripe
242: [21:51:13] <Tron_> hey guys bit of a long shot here. But is it possible to go straight to the cms when environment is on dev?
243: [21:55:11] <Firesphere> No, but you can set a remember me
244: [21:58:56] * bubaphex quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
245: [22:03:32] * micmania1 has joined #silverstripe
246: [22:07:17] <Nightjar> Change the auth setup
247: [22:07:25] <Nightjar> to basically be 'true'.
248: [22:07:31] <Nightjar> iff dev.
249: [22:07:58] <Nightjar> I'm sure it'd be possible, but somewhat incredibly not worth it.
250: [22:08:45] <Firesphere> Well, that would require core hacking I'd think
251: [22:09:55] <Nightjar> Would it?
252: [22:10:14] <Nightjar> I think you could get away with Injector
253: [22:16:40] <Firesphere> I doubt it, as far as I remember, Injector isn't currently used in auth?
254: [22:17:06] <Firesphere> You could create an auth method that always returns the default admin and override the auth with it.
255: [22:17:33] <Firesphere> But that would be quite over engineering something as minor as not wanting to enter username/password
256: [22:18:50] <DanaeNZ> So the server file is correct (I commented out something in an SS include) and it works locally, and the domain is definitely pointed to the right server. But the site is not showing the right file???
257: [22:19:08] <DanaeNZ> And there's no caching on that part. I've deleted and remade the silverstripe-cache folder
258: [22:19:14] <DanaeNZ> Fuck me this is frustrating
259: [22:27:31] * bubaphex has joined #silverstripe
260: [22:48:56] * samsam quit (Ping timeout: 260 seconds)
261: [23:00:02] * ss-helper quit (Remote host closed the connection)
262: [23:00:16] * ss-helper has joined #silverstripe
263: [23:00:25] * bubaphex quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
264: [23:03:44] * DanaeNZ quit (Remote host closed the connection)
265: [23:09:57] * janneklouman-- quit (Ping timeout: 268 seconds)
266: [23:10:31] * Tron_ quit (Ping timeout: 260 seconds)
267: [23:32:37] * bubaphex has joined #silverstripe
268: [23:41:02] * spronk has joined #silverstripe
269: [23:41:16] <spronk> hm
270: [23:41:20] <spronk> y u no work join on connect
271: [23:44:54] * DanaeNZ has joined #silverstripe
272: [23:56:06] <Nightjar> \o
273: [23:56:56] <Nightjar> wut do DanaeNZ ?
274: [23:58:07] * DanaeNZ quit (Remote host closed the connection)
275: [23:58:43] * DanaeNZ has joined #silverstripe

These logs were automatically created by ss-log on irc.freenode.net.