#silverstripe IRC Log

IRC log for 28 September 2016

All timestamps are in UTC.

1: [00:07:50] * micmania1 has joined #silverstripe
2: [00:13:49] * ahr3n has joined #silverstripe
3: [00:42:45] * xyphoid quit (Ping timeout: 244 seconds)
4: [00:43:47] * TRB143 quit (Ping timeout: 244 seconds)
5: [00:43:53] * TRB143 has joined #silverstripe
6: [00:44:27] * xyphoid has joined #silverstripe
7: [01:09:58] * Ollie_ has joined #silverstripe
8: [01:11:06] <Ollie_> Just filling out a SS Platform stack schedule sheet
9: [01:11:22] <Ollie_> there's a new row for Git Repository under "Initial Config"
10: [01:11:34] <Ollie_> is this our working repository?
11: [01:13:39] * ahr3n quit (Ping timeout: 276 seconds)
12: [01:15:35] <zippy> @micmania1: were you a SS platform guy? ^
13: [01:15:45] <micmania1> zippy: yep, used to be
14: [01:16:01] <micmania1> Ollie_: yep, wherever your git repo is hosted.
15: [01:16:10] <micmania1> so your git url (where you clone from)
16: [01:17:20] * ahr3n has joined #silverstripe
17: [01:25:15] <Ollie_> cheeeeers
18: [01:26:23] <Ollie_> @micmania1 base stack name is just how it appears in the platform backend to us, right
19: [01:26:39] * ahr3n quit (Ping timeout: 244 seconds)
20: [01:26:59] <micmania1> yeah, I think that’s what’s displayed in SSP dashboard, but I haven’t looked at the stack schedule in a while
21: [01:29:07] <Ollie_> thanks man
22: [01:29:20] * ahr3n has joined #silverstripe
23: [01:35:03] <zippy> $ grep 'extends Page ' . -R | wc -l
24: [01:35:03] <zippy> 30
25: [01:35:11] <zippy> just a few page types there.... :S
26: [01:36:54] <Ollie_> that is many
27: [01:38:26] <Ollie_> my current project
28: [01:38:28] <Ollie_> 60
29: [01:38:42] <zippy> damn :)
30: [01:39:07] <zippy> I am finding it pretty slow to navigate around eh... just loading up simple pages on the front end seems to bog a bit
31: [01:40:45] * micmania1 quit (Quit: micmania1)
32: [01:47:48] <spronk> 4?
33: [01:47:56] <spronk> or platform?
34: [01:50:04] <Ollie_> has anybody deployed an SS4 alpha site to prod?
35: [01:51:56] <zippy> that'd be a big balls move
36: [02:26:27] * ahr3n quit (Ping timeout: 276 seconds)
37: [02:29:31] * ahr3n has joined #silverstripe
38: [02:37:29] <spronk> ughhhhhhhh composer is slow
39: [02:38:40] <zippy> turned off xdebug before running it? heard it helps..
40: [02:38:48] <spronk> yup
41: [02:38:50] <spronk> :(
42: [02:44:40] * ahr3n quit (Ping timeout: 244 seconds)
43: [02:47:08] * micmania1 has joined #silverstripe
44: [02:54:01] * ahr3n has joined #silverstripe
45: [02:54:35] <zippy> With a field on a model.. how can I get the object...?
46: [02:55:11] <zippy> for example, if I have Content, in my controller when I do $this->Content I get the HTML, but how can I get the actual field - which is used to render out on the screen
47: [02:58:59] <zippy> I can always do $this->XML_val('Content') but would rather the field
48: [02:59:53] <zippy> zippy: use $this->obj('Content')
49: [02:59:55] <zippy> zippy: ta
50: [03:04:53] <zippy> Stomach: Jeets eh!
51: [03:05:24] <zippy> > Gautam Gambhir, who last played an international match in 2014, has been recalled to India's squad
52: [03:05:31] <zippy> it's like they are dusting off the oldies..
53: [03:05:43] <zippy> Next ol Dan V will be stepping up..
54: [03:10:01] * ahr3n quit (Ping timeout: 240 seconds)
55: [03:15:35] * ahr3n has joined #silverstripe
56: [03:23:30] * Anytech has joined #silverstripe
57: [03:24:00] * Anytech quit (Client Quit)
58: [03:24:20] * Anytech has joined #silverstripe
59: [03:26:05] * ahr3n quit (Ping timeout: 272 seconds)
60: [03:26:34] <Anytech> Is there any way to replicate this query: SELECT SQL_CACHE * FROM Product; with the ORM? Product::get()-> something?
61: [03:29:25] * ahr3n has joined #silverstripe
62: [03:35:49] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
63: [03:38:12] * Anytech quit (Ping timeout: 240 seconds)
64: [03:38:42] <spronk> SQL_CACHE?
65: [03:38:48] <spronk> or NO_CACHE?
66: [03:39:11] <spronk> you'd probably ahve to go to raw
67: [03:39:27] <spronk> esp considering it's vendor specific
68: [03:42:30] * ahr3n quit (Ping timeout: 276 seconds)
69: [03:44:12] * Ollie_ quit (Ping timeout: 240 seconds)
70: [03:47:37] * ahr3n has joined #silverstripe
71: [04:02:18] * ahr3n quit (Ping timeout: 264 seconds)
72: [04:07:39] * ahr3n has joined #silverstripe
73: [04:13:03] * ahr3n quit (Ping timeout: 276 seconds)
74: [04:15:42] * ahr3n has joined #silverstripe
75: [04:29:35] * Stomach quit (Quit: zzz)
76: [04:47:18] * ahr3n quit (Ping timeout: 264 seconds)
77: [04:54:33] * micmania1 quit (Quit: micmania1)
78: [05:40:00] * wmk_ has joined #silverstripe
79: [05:45:09] * wmk_ is now known as wmk
80: [05:52:22] * micmania1 has joined #silverstripe
81: [06:04:06] * spronk quit (Quit: I may need a longer sleep timer...)
82: [06:10:05] * micmania1 quit (Quit: micmania1)
83: [06:15:24] * micmania1 has joined #silverstripe
84: [06:24:21] * Stomach has joined #silverstripe
85: [06:32:44] * micmania1 quit (Quit: micmania1)
86: [06:33:42] * spronk has joined #silverstripe
87: [06:47:55] * zippy has joined #silverstripe
88: [07:15:37] * swaiba has joined #silverstripe
89: [07:25:33] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
90: [07:35:03] * spronka has joined #silverstripe
91: [07:37:26] * Stomach quit (Quit: zzz)
92: [07:38:10] * spronk quit (Quit: I may need a longer sleep timer...)
93: [07:39:53] * Stomach has joined #silverstripe
94: [07:42:27] * zippy has joined #silverstripe
95: [07:51:49] * Stomach quit (Quit: zzz)
96: [07:53:46] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
97: [08:04:24] * kinglozzer has joined #silverstripe
98: [08:06:43] * janneklouman-- has joined #silverstripe
99: [08:07:08] * zippy has joined #silverstripe
100: [08:08:47] * spronka quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
101: [08:18:28] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
102: [08:20:41] * zippy has joined #silverstripe
103: [08:21:17] * slievr1 is now known as slievr
104: [08:30:09] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
105: [08:38:28] * agent44 has joined #silverstripe
106: [08:39:35] * zippy has joined #silverstripe
107: [08:43:22] * zippy quit (Client Quit)
108: [08:54:58] * micmania1 has joined #silverstripe
109: [09:06:09] * spronka has joined #silverstripe
110: [09:09:29] * spronka quit (Read error: Connection reset by peer)
111: [09:09:36] * spronka_ has joined #silverstripe
112: [09:11:29] * zippy has joined #silverstripe
113: [09:14:27] * micmania1 quit (Quit: micmania1)
114: [09:15:48] * zippy quit (Client Quit)
115: [09:17:04] * zippy has joined #silverstripe
116: [09:33:28] * ahr3n has joined #silverstripe
117: [09:34:01] * janneklouman-- quit (Read error: Connection reset by peer)
118: [09:34:07] * janneklouman-- has joined #silverstripe
119: [09:40:08] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
120: [09:43:50] * agent44 quit (Quit: agent44)
121: [10:13:03] * pweh has joined #silverstripe
122: [10:29:35] * slievr quit (Read error: Connection reset by peer)
123: [10:35:16] * swaiba quit (Remote host closed the connection)
124: [10:46:18] * ahr3n quit (Ping timeout: 276 seconds)
125: [11:21:22] * pweh quit (Read error: Connection reset by peer)
126: [11:23:29] * zippy has joined #silverstripe
127: [11:30:11] <janneklouman--> Is there any simple way to check if dev/build is being run?
128: [11:30:30] <janneklouman--> I've done something like 0 === stripos(Controller::curr()->getRequest()->getURL(), 'dev/build')
129: [11:31:01] <janneklouman--> But I'm getting "No current controller available"
130: [11:34:03] <zippy> you could implment a flush method (i think there is a flush / flushable interface). This method gets called when flushing
131: [11:57:34] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
132: [12:02:36] <wmk> anyone using responsive images module with ss3.4.2 and focuspoint?
133: [12:02:59] <cloph> what are responsive images?
134: [12:03:18] <wmk> https://packagist.org/packages/heyday/silverstripe-responsive-images
135: [12:03:28] <wmk> tell browser what image to load according to media query
136: [12:03:38] <wmk> e.g. on mobile only load a small image and not retina
137: [12:06:20] <cloph> nice, esp. that it is not only about different scales, but also supports cropping or padding..
138: [12:07:37] <cloph> too bad picture tag lacks browser compatibility..
139: [12:07:58] <wmk> there's a polyfill for it
140: [12:08:38] <wmk> unfortunately focuspoint doesn't like it...
141: [12:08:40] <cloph> using that module to create background-image css statements instead would also work in many cases as a workaround.
142: [12:08:47] * agent44 has joined #silverstripe
143: [12:08:53] * DarjusIT has joined #silverstripe
144: [12:09:41] <wmk> cloph, nice idea...
145: [12:09:58] <DarjusIT> Hi all does someone have used new Upload() and ->loadIntoFile() ?
146: [12:18:16] * agent44 quit (Quit: Bai!)
147: [12:19:42] * UndefinedOffset has joined #silverstripe
148: [12:26:11] * agent44 has joined #silverstripe
149: [12:31:29] <wmk> cloph, you mean inline background css?
150: [12:32:56] <cloph> wmk: nothing specific, inline would work, but of course you'd have to use divs or similar elements instead. Depending on where/how ofthen the images are used, having them in separate css also can make sense
151: [12:34:33] * swaiba has joined #silverstripe
152: [12:38:26] <DarjusIT> Hi all does someone have used new Upload() and ->loadIntoFile() ?
153: [12:50:31] <kinglozzer> wmk: I'm using those two in combination
154: [12:50:40] <kinglozzer> But you can't use the latest focuspoint :(
155: [12:52:37] <DarjusIT> maybe someone written upload in silverstripe by hand? i kave from submition code and printr in this link http://www.sspaste.com/paste/show/57ebbc683887e after submit i get Upload::load() Not passed an array. Most likely, the form hasn't got the right enctype http://pasteboard.co/8wXCfqj4U.png any ideas?
156: [12:53:49] <wmk> kinglozzer, why not latest FP?
157: [12:57:39] <kinglozzer> wmk: I didn't investigate properly, but it will error
158: [12:57:44] <kinglozzer> Something about a missing argument
159: [13:06:41] <DarjusIT> maybe someone written upload in silverstripe by hand? i kave from submition code and printr in this link http://www.sspaste.com/paste/show/57ebbc683887e after submit i get Upload::load() Not passed an array. Most likely, the form hasn't got the right enctype http://pasteboard.co/8wXCfqj4U.png any ideas?
160: [13:35:21] * agent44 quit (Ping timeout: 240 seconds)
161: [13:46:09] * agent44 has joined #silverstripe
162: [13:57:42] * slievr has joined #silverstripe
163: [14:00:30] * muskie9 has joined #silverstripe
164: [14:01:06] * Mike123 has joined #silverstripe
165: [14:18:08] * slievr1 has joined #silverstripe
166: [14:18:41] * slievr quit (Ping timeout: 240 seconds)
167: [14:34:14] * r3v3rb has joined #silverstripe
168: [14:34:27] <r3v3rb> msg NickServ -identify raq010uel
169: [14:35:00] <r3v3rb> hullo, any idea why me updating a field in onAfterWrite is not being saved?
170: [14:35:42] <muskie9> r3v3rb because it's after the write... onBeforeWrite
171: [14:35:58] <r3v3rb> hmm, but it did before odd
172: [14:38:16] <r3v3rb> muskie9, it's odd because I was using a self::$has_written and prior to today the update in the onAfterWrite would get written but now it doesn't...
173: [14:38:23] * r3v3rb goes back to sleep for a bit
174: [14:38:47] <muskie9> have you upgraded your SS version recently?
175: [14:39:41] <cloph> r3v3rb: change your pw before though..
176: [14:40:13] <r3v3rb> hehe cloph yep ;)
177: [14:43:10] <r3v3rb> cloph changed to something really difficult now
178: [14:43:33] <cloph> then make sure to add email, so you can recover if necessary :-P
179: [14:43:37] <r3v3rb> muskie9 did that get changed?
180: [14:43:39] <cloph> (i.e. once you forgot your super difficult one)
181: [14:43:55] <muskie9> r3v3rb don't know... just the first thing I thought of
182: [14:43:59] <r3v3rb> cloph, i'll email my real difficult one now to my bcc list
183: [14:44:06] <r3v3rb> ;)
184: [14:44:41] <r3v3rb> just as well it's not my normal password and I set that one about 9 yrs ago so it just for iRC
185: [14:46:09] * swaiba quit (Ping timeout: 276 seconds)
186: [14:50:03] * DimiStripe quit (Ping timeout: 276 seconds)
187: [14:50:33] * swaiba has joined #silverstripe
188: [14:51:45] * DimiStripe has joined #silverstripe
189: [14:53:21] * DimiStripe quit (Client Quit)
190: [14:53:58] <swaiba> r3v3rb remember it goes aroudn the write loop twice, that could be causing the confusion
191: [14:59:01] * spronka_ quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
192: [15:01:12] * Mike123 quit (Ping timeout: 240 seconds)
193: [15:24:30] <r3v3rb> swaiba, yep, that's why I added the self::$has_written test
194: [15:24:58] <r3v3rb> very confusing why today its decided to stop working as I expected and observed two weeks ago
195: [15:27:14] <r3v3rb> and... it pushes my actions bar half way off screen too!
196: [15:27:41] <swaiba> yeah I loke those ones where you don't know why it breaks after working for years...
197: [15:30:58] * DimiStripe has joined #silverstripe
198: [15:31:33] <r3v3rb> swaiba, stuff it, coffee time
199: [15:32:17] <muskie9> https://puu.sh/rqLvn/03d5adcba3.gif
200: [15:32:52] * DimiStripe quit (Client Quit)
201: [15:33:32] <r3v3rb> muskie9, that's awesome!
202: [15:34:17] <muskie9> definitely bookmarked that one lol
203: [15:38:27] <swaiba> muskie9 nice
204: [15:38:52] <swaiba> http://fandbnews.com/wp-content/uploads/2015/06/AZERA-CANS-COLLECTION.jpg
205: [15:38:54] <swaiba> for the win
206: [15:39:44] <muskie9> is that a uk only brand? never seen it in the states
207: [15:39:59] <swaiba> buying it in uk yeah
208: [15:40:07] <muskie9> gotcha
209: [15:40:17] <swaiba> as an improvement on the "free swil" in the kitchen
210: [15:55:55] * slievr1 is now known as slievr
211: [16:14:22] * kinglozzer quit ()
212: [16:21:37] * darianno has joined #silverstripe
213: [16:34:01] * wmk quit (Ping timeout: 240 seconds)
214: [16:51:03] * janneklouman-- quit (Ping timeout: 272 seconds)
215: [16:57:16] * agent44 quit (Quit: zzz)
216: [17:41:07] * DimiStripe has joined #silverstripe
217: [17:45:34] * slievr quit (Read error: Connection reset by peer)
218: [17:55:51] * Azure|dc has joined #silverstripe
219: [17:58:08] * Azure quit (Ping timeout: 244 seconds)
220: [18:02:55] * DarjusIT quit (Read error: Connection reset by peer)
221: [18:14:48] <r3v3rb> okay, if I return the result of a function to a gridfield how can I make that column sortable ?
222: [18:15:04] * swaiba quit (Read error: Connection reset by peer)
223: [18:15:45] <r3v3rb> this works for form fields and ->Nice() for example >> https://gist.github.com/mspacemedia/322eb1ef5e7fd3241a9321010a6e0ff2
224: [18:16:13] <r3v3rb> but if I return a function or concatenate fields they are not sortable...
225: [18:20:14] <muskie9> r3v3rb $casting on the object?
226: [18:20:31] <r3v3rb> muskie - i was looking at that - i'll give it a try
227: [18:30:07] <r3v3rb> nope casting doesn't appear to work in this case...
228: [18:30:16] <r3v3rb> or maybe I'm doing it wrong!
229: [18:32:09] <muskie9> I've done a method on the object getMyFieldValue() and casted MyFieldValue as well as include it in the $summary_fields as MyFieldValue... can't remember if I needed a sort though... since gridfield is generally populated by db values the sort is likely happening on the query, preventing it from being available on the calculated fields
230: [18:32:46] <r3v3rb> thats about the size of it
231: [18:34:55] <muskie9> I'd imagine someone's worked something out for that
232: [18:35:59] <r3v3rb> there must be a way! where are the SS gods from above
233: [18:42:55] * DimiStripe quit (Quit: DimiStripe)
234: [18:59:25] * r3v3rb quit (Quit: Leaving)
235: [19:08:18] * Stomach has joined #silverstripe
236: [19:17:51] * darianno quit (Quit: ..)
237: [20:10:38] * gelignite has joined #silverstripe
238: [20:11:58] * gelignite quit (Client Quit)
239: [20:14:37] * gelignite has joined #silverstripe
240: [20:23:43] * UndefinedOffset quit (Quit: Leaving.)
241: [20:29:50] * UndefinedOffset has joined #silverstripe
242: [20:33:03] * JorisDebonnet has joined #silverstripe
243: [20:34:45] * UndefinedOffset quit (Quit: Leaving.)
244: [20:35:16] <JorisDebonnet> I am extending a class that has a Text field, but in my new class I want to edit it with an HtmlEditorField. So I'm trying with `private static $casting = ["LinkDescription" => 'HTMLText'];`, but HtmlEditorField->saveInto() still complains "should save into a HTMLText or HTMLVarchar field"... Is there a way to fix this?
245: [20:41:40] <muskie9> JorisDebonnet I remember seeing a how to on that, but can't remember if it was a blog or doc or what
246: [20:45:28] <JorisDebonnet> hmm, perhaps something with onBeforeSave or something, ...
247: [20:47:11] <muskie9> could be
248: [20:54:16] <JorisDebonnet> hmf, I'm not managing it, so I'll just add an extra DB field for now... but if someone can think of a way, I'm still interested :)
249: [20:56:26] * micmania1 has joined #silverstripe
250: [20:59:45] * ahr3n has joined #silverstripe
251: [21:09:14] * micmania1 quit (Quit: micmania1)
252: [21:38:58] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
253: [21:41:48] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
254: [22:16:09] * Azure|dc is now known as Azure
255: [22:54:03] * Azure quit (Excess Flood)
256: [22:54:59] * Azure has joined #silverstripe
257: [23:00:15] * ss-helper has joined #silverstripe
258: [23:18:51] * micmania1 has joined #silverstripe
259: [23:37:01] * ahr3n quit (Ping timeout: 272 seconds)
260: [23:53:27] * cloph quit (Ping timeout: 276 seconds)
261: [23:55:48] * cloph_away has joined #silverstripe
262: [23:57:03] * JorisDebonnet quit (Quit: Page closed)
263: [23:59:32] * spronk has joined #silverstripe

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