#silverstripe IRC Log

IRC log for 18 March 2015

All timestamps are in UTC.

1: [00:17:49] * Hailwood quit (Ping timeout: 264 seconds)
2: [00:18:51] * Hailwood has joined #silverstripe
3: [01:05:54] <MichalKleiner> I think my head will explode from all the CI&CD stuff.. can't pick one solution
4: [01:14:29] * Tanger has joined #silverstripe
5: [01:15:00] * micmania1 quit (Quit: micmania1)
6: [01:17:37] * micmania1 has joined #silverstripe
7: [02:09:27] <spronk2> this place is quiet as these days
8: [02:09:51] <antmas> mmm tis a little bit
9: [02:10:10] <antmas> busy times I guess
10: [02:14:20] <Stomach> TOO BUSY WORKING FOR YOUR CHIT CHAT spronk2
11: [02:15:27] <spronk2> :(
12: [02:24:19] <Hailwood> If DO A belongs_many_many => B, and B many_many => C then how can I get all C instances that are related to A through B? Essentially $A->B()->each(return Linked C's)
13: [02:34:54] <Hailwood> This would probably explain it a bit better https://gist.github.com/hailwood/6cb2f676a0d6b74867a7
14: [02:35:14] <Hailwood> It works, but it's the n+1 queries scenario I would like to avoid.
15: [02:36:47] <adrexia> Yep. I've had the problem too. I think your options are either that or write a db query
16: [02:39:33] * jedateach has joined #silverstripe
17: [02:39:34] * jedateach has left #silverstripe
18: [02:43:08] <Hailwood> adrexia, Well I have the query that will work based off the joins, https://gist.github.com/hailwood/fa9b5cd0c0301b5f0dbb so now the question is - can I somehow use that in DMSTag::get() ?
19: [02:51:19] <Stomach> Hailwood - use Column?
20: [02:51:29] <Stomach> $tags->column('MyOtherID')
21: [02:52:18] <antmas> sql question
22: [02:52:36] <antmas> if you have a date type that is set to be nullable
23: [02:52:48] <antmas> and you pass in a non-valid date
24: [02:53:07] <antmas> what does mysql do with that?
25: [02:53:30] <antmas> does it read it as null, or put a bunch of crap in it?
26: [02:55:45] <Stomach> depends on the state of it
27: [02:55:54] <Stomach> some dates are less valid than others
28: [02:55:55] <Stomach> :P
29: [02:56:07] <antmas> hmmm
30: [03:06:45] <Tanger> hey guys, can you entwine an object?
31: [03:06:52] <Tanger> As opposed to a selector?
32: [03:14:11] * travis-ci has joined #silverstripe
33: [03:14:12] <travis-ci> tractorcow/sapphire#65 (pulls/3.1/fix-subselect - b34c236 : Damian Mooyman): The build has errored.
34: [03:14:12] <travis-ci> Change view : https://github.com/tractorcow/sapphire/compare/2af48738c9d9^...b34c236b3c26
35: [03:14:12] <travis-ci> Build details : http://travis-ci.org/tractorcow/sapphire/builds/54816934
36: [03:14:12] * travis-ci has left #silverstripe
37: [03:14:27] <ss-helper> Re: [silverstripe-dev] Re: Block editing modules - https://groups.google.com/d/msg/silverstripe-dev/3kC1-iG1nYw/QZ26xMa0PRsJ
38: [03:19:36] * UncleCheese has joined #silverstripe
39: [03:22:29] * Ryan-Toast quit (Quit: Ryan-Toast)
40: [03:32:25] * antmas quit (Quit: Page closed)
41: [03:33:01] * peter_w has joined #silverstripe
42: [03:33:58] <peter_w> Surely this has been done a thousand times before, but does anyone know how to get the htmleditorfield working in the frontend
43: [03:34:42] <peter_w> I have tried this http://doc.silverstripe.org/en/developer_guides/forms/field_types/htmleditorfield/#using-the-editor-outside-of-the-cms but that simply dumps those pop up below my plain textarea field
44: [03:48:15] * Hailwood has left #silverstripe
45: [03:53:31] <UncleCheese> peter_w my first question would be does it really need to be the same editor that's in the CMS?
46: [03:53:41] <UncleCheese> there are heaps of rich text editors out there.. tinyMCE is a bit overkill
47: [03:54:04] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
48: [03:55:06] <adrexia> that ^
49: [03:55:22] * nimeso quit (Ping timeout: 246 seconds)
50: [03:57:13] * mobiusnz quit (Quit: Leaving.)
51: [04:07:17] * Ryan-Toast has joined #silverstripe
52: [04:08:15] * Kingy[a] is now known as Kingy
53: [04:09:50] <Kingy> hey Colin[pi]
54: [04:11:43] * Colin[pi] quit (Ping timeout: 244 seconds)
55: [04:12:37] * mobiusnz has joined #silverstripe
56: [04:15:06] <Stomach> haha Kingy :D
57: [04:15:14] <Kingy> :(
58: [04:15:17] <Kingy> hey Stomach
59: [04:15:22] <Stomach> hows it going
60: [04:16:06] <Kingy> pretty good pretty good
61: [04:16:14] <Kingy> it's raining here for like the first time
62: [04:16:21] <Stomach> :o
63: [04:16:30] <Stomach> it shouldn't rain in the desert!
64: [04:16:40] <Kingy> lol pmuch
65: [04:16:44] <Kingy> 70mm per year or something like that
66: [04:16:54] <Kingy> it's pretty pathetic rain though
67: [04:17:52] <Stomach> y
68: [04:18:06] <Stomach> silly irc, you arent a console
69: [04:19:19] * mobiusnz quit (Quit: Leaving.)
70: [04:22:23] * peter_w quit (Quit: Page closed)
71: [04:23:06] <ss23> Stomach: IS TOO
72: [04:23:28] <ss23> /bin/sh: -c: line 0: unexpected EOF while looking for matching `''
73: [04:23:29] <ss23> /bin/sh: -c: line 1: syntax error: unexpected end of file
74: [04:23:31] <ss23> fuck
75: [04:23:35] <ss23> I litearlly messed up my command
76: [04:23:41] <ss23> uname -a
77: [04:23:42] <ss23> Linux irc 2.6.32-042stab093.5 #1 SMP Wed Sep 10 17:39:49 MSK 2014 x86_64 GNU/Linux
78: [04:23:45] <ss23> there
79: [04:24:00] <Stomach> :D
80: [04:25:52] * travis-ci has joined #silverstripe
81: [04:25:53] <travis-ci> silverstripe/silverstripe-cms#1148 (wilr-patch-1 - 1386c4b : Will Rossiter): The build failed.
82: [04:25:53] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/commit/1386c4b7c2c3
83: [04:25:53] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/54820659
84: [04:25:53] * travis-ci has left #silverstripe
85: [04:27:56] <ss-helper> Re: Get User to change password on next login - http://www.silverstripe.org/community/forums/forum-module-forum/show/15776#post400752
86: [04:35:11] <Stomach> uname -a
87: [04:35:23] <Stomach> !whydoesss23alwayslietome
88: [04:40:23] * Kingy is now known as Kingy[a]
89: [04:43:53] * micmania1 quit (Quit: micmania1)
90: [04:44:08] <ss23> lol
91: [04:44:11] <ss23> lrn2useyourclient
92: [04:44:15] <ss23> /exec -o uname -a
93: [04:45:25] <Stomach> [17:45:12] Message(421): EXEC Unknown command
94: [04:45:27] <Stomach> !whydoesss23alwayslietome
95: [04:51:29] <Stomach> Ryan-Toast
96: [04:51:30] <Stomach> new website
97: [04:51:38] <Stomach> httphttps://www.littlegiant.co.nz/
98: [04:51:40] <Stomach> https://www.littlegiant.co.nz/
99: [04:52:50] * Ryan-Toast quit (Quit: Ryan-Toast)
100: [04:52:57] <Stomach> :(
101: [04:54:19] <irogue_> Stomach: that is much nicer
102: [04:54:39] <Stomach> yeah, small improvement on the old one
103: [04:54:57] <irogue_> also, wtf Alex K
104: [04:55:04] <Stomach> https://www.littlegiant.co.nz/
105: [04:55:06] <Stomach> ?
106: [04:55:08] <Stomach> whatcha mean
107: [04:55:16] <irogue_> what a boring movingphotothing. where's the hat or the accessory?!?
108: [04:55:29] <Stomach> hahaha
109: [04:55:34] <Stomach> designers...
110: [04:55:43] <irogue_> honestly everyone else
111: [04:58:37] <Stomach> better than this guy
112: [04:58:37] <Stomach> http://www.silverstripe.com/about-us/team/silverstripe-auckland/ed-linklater/
113: [04:59:38] <irogue_> apparently im getting my photo taken on friday
114: [05:00:33] * willr quit (Quit: willr)
115: [05:02:42] * mobiusnz has joined #silverstripe
116: [05:12:13] <Stomach> I look forward to it :D
117: [05:13:28] * MichalKleiner is now known as MichalKleiner|aw
118: [05:20:03] * Shrike_Finland has joined #silverstripe
119: [05:25:17] * willr has joined #silverstripe
120: [05:29:52] * mahfuz quit (Ping timeout: 246 seconds)
121: [05:30:34] * mobiusnz quit (Quit: Leaving.)
122: [05:31:44] * irogue_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
123: [05:34:33] * willr quit (Quit: willr)
124: [05:36:30] * Stomach quit (Quit: zzz)
125: [05:51:04] * mobiusnz has joined #silverstripe
126: [05:58:14] * Shrike_Finland quit (Quit: Leaving.)
127: [06:00:13] * Stomach has joined #silverstripe
128: [06:11:48] * willr has joined #silverstripe
129: [06:21:54] * mobiusnz1 has joined #silverstripe
130: [06:25:29] * mobiusnz quit (Ping timeout: 265 seconds)
131: [06:27:34] * Stomach quit (Quit: zzz)
132: [06:37:11] * Shrike_Finland has joined #silverstripe
133: [06:42:40] * willr quit (Quit: willr)
134: [06:44:14] * willr has joined #silverstripe
135: [06:44:45] * willr quit (Client Quit)
136: [06:59:51] * Stomach has joined #silverstripe
137: [07:08:41] * wmk has joined #silverstripe
138: [07:12:40] * gordon has joined #silverstripe
139: [07:13:04] * gordon is now known as Guest84145
140: [07:13:05] <wmk> THE new font for landing pages and marketing websites: http://www.sansbullshitsans.com/
141: [07:20:37] * mobiusnz has joined #silverstripe
142: [07:23:21] * mobiusnz1 quit (Read error: No route to host)
143: [07:33:18] * tmro quit (Quit: conserving bandwidth)
144: [07:40:48] * Shrike_Finland quit (Quit: Leaving.)
145: [07:53:19] * Shrike_Finland has joined #silverstripe
146: [07:58:41] <ss-helper> Re: FIXED! - "Add" button pointing to "WebsiteURL/#" - NoBrainerWeb / Silverstripe-Content-Blocks - http://www.silverstripe.org/community/forums/all-other-modules/show/101304#post400753
147: [08:00:15] * Stomach quit (Quit: zzz)
148: [08:03:50] * g4b0_ has joined #silverstripe
149: [08:05:49] <g4b0_> hi all
150: [08:06:17] <g4b0_> which is the correct SS way to implement al AJAX form in frontend?
151: [08:06:49] <wmk> depends
152: [08:07:29] <wmk> i did something like https://gist.github.com/wernerkrauss/6473603
153: [08:08:11] <wmk> for the javascript part
154: [08:09:00] <g4b0_> mmm it seems intresting
155: [08:09:11] <g4b0_> and what about the php part?
156: [08:09:26] <g4b0_> is it the same of classic forms?
157: [08:10:57] <wmk> basically
158: [08:12:02] <wmk> so you present the form normally embedded in the page, but the form sends an ajax call
159: [08:12:39] <wmk> in the form you have to determine using Director::is_ajax() if you want to return only the processed form or the whole page
160: [08:13:44] <ss-helper> Re: Pagination and Ajax Calls - http://www.silverstripe.org/community/forums/template-questions/show/101360#post400754
161: [08:13:48] * Guits has joined #silverstripe
162: [08:14:05] <wmk> g4b0_, to get the above js working you'd have to add something like $form->setAttribute('data-async','data-async');
163: [08:14:05] <wmk> $form->setAttribute('data-target','#FormWrapper');
164: [08:15:05] <g4b0_> yep
165: [08:16:14] <g4b0_> but where I have to return the form instead of the whole page? At the end of the FormAction callback?
166: [08:18:33] <wmk> yup
167: [08:21:15] <g4b0_> let's try
168: [08:21:44] * stefanovic72 quit (Remote host closed the connection)
169: [08:22:31] * Alboes has joined #silverstripe
170: [08:28:20] <g4b0_> wmk: first problem: I'm using a custom validator
171: [08:28:48] <g4b0_> that prevent calling the FormAction callback if it fails
172: [08:29:58] <g4b0_> which function do I have to override to let it work with AJAX?>
173: [08:33:00] <wmk> frontend or backend validation?
174: [08:56:59] * jedateach has joined #silverstripe
175: [08:57:36] * kinglozzer has joined #silverstripe
176: [08:58:12] <g4b0_> wmk: frontend, but it works like a charm out of the box!
177: [08:58:14] <g4b0_> thanks a lot
178: [08:58:24] <wmk> you're welcome
179: [08:58:26] <g4b0_> just a little question
180: [08:58:40] <wmk> maybe i should strip out my contactform class and release as a module...?
181: [08:58:46] <wmk> g4b0_, just ask
182: [08:59:46] <g4b0_> sometimes Director::is_ajax() doesn't recognize that it's an AJAX request
183: [09:00:04] <wmk> not?
184: [09:00:09] <wmk> it checks for some http header...
185: [09:02:38] * Stomach has joined #silverstripe
186: [09:03:17] <wmk> see api docs http://api.silverstripe.org/3.1/class-Director.html#_is_ajax
187: [09:03:26] <g4b0_> I saw
188: [09:03:43] <g4b0_> I've to check inside my JS
189: [09:03:48] <g4b0_> thanks a lot again
190: [09:07:09] <wmk> g4b0_, did you see my PM?
191: [09:13:56] <ss-helper> Re: Weather API Call not producing data or completing function - http://www.silverstripe.org/community/forums/general-questions/show/101357#post400755
192: [09:16:24] * Stomach quit (Quit: zzz)
193: [09:22:07] * GioVdK has joined #silverstripe
194: [09:22:22] * jedateach quit (Quit: jedateach)
195: [09:25:44] * Werner_2_ has joined #silverstripe
196: [09:28:43] * Stomach has joined #silverstripe
197: [09:28:59] * wmk quit (Ping timeout: 245 seconds)
198: [09:29:25] * Pyacolk has joined #silverstripe
199: [09:29:32] * cupcake quit (Quit: Page closed)
200: [09:29:48] * cupcake has joined #silverstripe
201: [09:30:39] * Stomach quit (Read error: Connection reset by peer)
202: [09:31:00] * swaiba has joined #silverstripe
203: [09:31:06] <cupcake> hello everyone
204: [09:31:11] * Stomach has joined #silverstripe
205: [09:31:31] <cupcake> has anyone had experience with doing an ajax call in the image upload dialog of the tinymce editor??
206: [09:31:56] <cupcake> it is asking me to leave the page or stay on the page
207: [09:32:05] <cupcake> and not performing the ajax call
208: [09:33:01] <Werner_2_> hmm... shortcodable can do ajax calls
209: [09:33:21] <cupcake> whats that?
210: [09:33:28] <Pyacolk> module I'd imagine
211: [09:33:30] <kinglozzer> !paste cupcake
212: [09:33:30] <ss-helper> cupcake: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
213: [09:33:33] <kinglozzer> Show us the codes!
214: [09:33:39] * UncleCheese has joined #silverstripe
215: [09:33:47] <Werner_2_> yup, a cool module: https://github.com/sheadawson/silverstripe-shortcodable/blob/master/javascript/shortcodable.js cupcake
216: [09:34:44] <cupcake> http://www.sspaste.com/paste/show/550946aa6e55d
217: [09:35:01] <cupcake> so what im trying to do is the following
218: [09:35:08] <Werner_2_> kinglozzer, Show us the codes... reminds me of https://www.youtube.com/watch?v=S4l4QYOJEsE
219: [09:35:25] <cupcake> i added functionality to the upload image to be able to crop the image (using jcrop) before inserting in the html
220: [09:35:49] <cupcake> so when clicking Insert i need to perform an ajax call which will return me the url of the cropeed image
221: [09:36:08] <cupcake> so i overrided the insertHTML function in entwine for the image
222: [09:36:51] <cupcake> and im trying to make an ajax call to get the url
223: [09:37:04] <cupcake> to the image as shown in the pasted code
224: [09:40:39] * stnvh has joined #silverstripe
225: [09:42:14] * Werner_2_ is now known as wmk
226: [09:42:46] <cupcake> any ideas?
227: [09:44:02] <ss-helper> Re: Weather API Call not producing data or completing function - http://www.silverstripe.org/community/forums/general-questions/show/101357#post400758
228: [09:44:03] <ss-helper> Re: Calling controller function always delivers error 403 - http://www.silverstripe.org/community/forums/general-questions/show/101334?start=8#post400757
229: [09:44:05] <wmk> maybe cause the url is another controller?
230: [09:44:33] * Shrike_Finland quit (Quit: Leaving.)
231: [09:45:07] * bemusedrat has joined #silverstripe
232: [09:45:35] <cupcake> what should it be then?
233: [09:46:11] <wmk> i'm just evaluating how shortcodable does it...
234: [09:47:32] <wmk> uses $.post instead of $.ajax
235: [09:48:40] <wmk> well, it seems to be a cmseditor dialog
236: [09:49:16] <cupcake> yes thats what i noticed
237: [09:49:27] <cupcake> trying to figure out from where is he getting the url
238: [09:49:49] <cupcake> he is getting it from an attribute on the element
239: [09:52:24] <wmk> jup. but how was this attribute set? and does this element suppress the "wanna leave" alert?
240: [09:54:18] * Stomach quit (Quit: zzz)
241: [09:54:23] <cupcake> thats my question too :)
242: [09:56:50] <Eliseth> Morning
243: [09:57:20] <Eliseth> When locale is set (example: de_DE) is there an easy way to show the DE part in a template?
244: [09:57:49] <Eliseth> (I just want to display the countrycode in my template)
245: [09:59:05] <ss-helper> Re: Calling controller function always delivers error 403 - http://www.silverstripe.org/community/forums/general-questions/show/101334?start=8#post400759
246: [09:59:21] * NETim has joined #silverstripe
247: [09:59:57] * Shrike_Finland has joined #silverstripe
248: [10:00:26] <NETim> How do I grant access to the admin/myprofile section but not security as a whole?
249: [10:02:18] <cupcake> Eliseth i think you can opt for a function which returns that part only
250: [10:02:38] * Tanger quit (Quit: sleep())
251: [10:03:03] <Eliseth> Yeah, will do that. Thought there maybe was a call or build in thing for it. Guess not :)
252: [10:05:30] <cupcake> dont think so :0
253: [10:05:31] <cupcake> :0
254: [10:09:09] <wmk> Eliseth, what do you want to show?
255: [10:09:21] <wmk> the first two or the last two chars of the lang?
256: [10:09:22] <Eliseth> Got it sorted
257: [10:09:24] <wmk> eh, locale?
258: [10:09:28] <wmk> ok, how?
259: [10:09:34] <Eliseth> The last 2
260: [10:09:48] <wmk> i18n class has some nice methods
261: [10:10:36] * swaiba_ has joined #silverstripe
262: [10:11:18] * Werner_2_ has joined #silverstripe
263: [10:12:28] <Eliseth> $locale = i18n::get_locale(); return substr($locale, strpos($locale, "_") + 1);
264: [10:12:53] * swaiba quit (Ping timeout: 250 seconds)
265: [10:13:04] <cupcake> or you can use explode
266: [10:13:31] <Eliseth> No need to get violent
267: [10:14:10] <Werner_2_> lol
268: [10:14:45] <cupcake> loool
269: [10:14:54] * ghost66 has joined #silverstripe
270: [10:15:16] * wmk quit (Ping timeout: 272 seconds)
271: [10:16:11] * Werner_2_ is now known as wmk
272: [10:16:23] <ghost66> morning all - probably an old one, but looking to solve the 'page tree disappears' when publishing new page issue. any help/links would be greatful.
273: [10:18:19] <NETim> Any way to perform a readonly transorfmation on a modeladmin scaffolded form?
274: [10:19:27] <cupcake> wmk this.attr('data-url-shortcodeform', 'ShortcodableController/ShortcodeForm/forTemplate'); lin 14 in shortcodable.js
275: [10:19:41] <wmk> ah... nice.
276: [10:20:11] <cupcake> lets see if it works
277: [10:30:35] <swaiba_> NETim - of course, just do so in the getCMSFeilds of the DataObject
278: [10:31:49] <swaiba_> $fields->replaceField('MyField', new LiteralField('MyField',$this->MyField));
279: [10:32:04] <swaiba_> I use literal fields more than readonly, but it is the same thing
280: [10:41:18] <NETim> swaiba_: thanks. Had a dig and found readOnlyField, looks nicer.
281: [10:41:33] <NETim> Any way to allow access admin/myprofile but not the rest of Security?
282: [10:48:46] <wmk> isn't myprofile allowed for cms users?
283: [10:54:44] <Pyacolk> NETim: you don't.
284: [10:54:52] <Pyacolk> I think.
285: [10:54:56] <Pyacolk> I'm not entirely sure anymore.
286: [10:55:25] <Pyacolk> but perhaps a front end display (profile page) would be more the ticket?
287: [10:55:38] <wmk> Pyacolk, ack
288: [10:55:44] <Pyacolk> ack
289: [10:55:54] <wmk> there are some member profile modules around
290: [10:55:58] <Pyacolk> are we ascii now wmk? :>
291: [10:56:11] <wmk> ??
292: [10:56:30] <wmk> ack = acknowledgement
293: [10:56:58] <Pyacolk> yep :>
294: [10:57:01] <Pyacolk> is ascii char too
295: [10:57:24] <wmk> ok, so an ambiguous term?
296: [10:57:25] <Pyacolk> x06
297: [10:57:36] <Pyacolk> wmk: nope, it's used just as you'd think. ACK packets.
298: [10:57:40] <Pyacolk> iirc
299: [10:58:17] <wmk> ah...
300: [10:59:16] <ss-helper> Prevent page from having any children. - http://www.silverstripe.org/community/forums/general-questions/show/101363
301: [10:59:43] <Pyacolk> wmk: http://en.wikipedia.org/wiki/ASCII#ASCII_control_characters
302: [10:59:44] <Pyacolk> :>
303: [11:00:31] <Pyacolk> hmm, that forum post is an interesting question. I must admin, I've no idea if that's even possible.
304: [11:00:44] <Pyacolk> s/admin/admit/
305: [11:01:05] <wmk> $allowed_children?
306: [11:01:15] <Pyacolk> yes, but allowed_children NONE EVER
307: [11:01:24] <wmk> hmm...
308: [11:01:31] <Pyacolk> like canCreate, but rather canBeParent
309: [11:01:33] <Pyacolk> o.0
310: [11:01:36] * Pyacolk shrugs
311: [11:02:07] <wmk> SiteTree::2571
312: [11:02:22] <wmk> seems it can be $allowed_children = "none"
313: [11:02:26] <Pyacolk> !code
314: [11:02:35] * Pyacolk dreams up new cool phergie functions
315: [11:02:39] <wmk> $candidates = $this->stat('allowed_children');
316: [11:02:39] <wmk> if($candidates && $candidates != "none" && $candidates != "SiteTree_root") {
317: [11:02:54] <Pyacolk> wmk: cool, go post answer! :)
318: [11:03:22] <Pyacolk> Actually, I think I did know that... once. I've obviously forgotten it, but your answer of = 'none'; rings a bell.
319: [11:03:43] <wmk> you could also overwrite allowedChildren() method
320: [11:03:53] <Pyacolk> eh = 'none' seems easier :P
321: [11:04:09] <Pyacolk> I think simon_w told me that once years ago when I was asking the same thing
322: [11:05:34] <Pyacolk> Are you posting the answer wmk, or is it ok if I do it if you're too busy?
323: [11:05:40] <wmk> hmml, api docs don't document vars
324: [11:05:51] <Pyacolk> :<
325: [11:06:06] <NETim> Pyacolk: thanks.
326: [11:06:27] <Pyacolk> NETim: there might be a way, but I'm not aware. But I'm no CMS master.
327: [11:06:33] * Pyacolk codemonkey
328: [11:07:23] <Pyacolk> hth wmk ?
329: [11:07:30] <Pyacolk> oh, 'hope this helps'?
330: [11:07:39] <wmk> yup
331: [11:07:52] <Pyacolk> :)
332: [11:08:09] <Pyacolk> I like this bot. It helps us keep the community a bit more active.
333: [11:08:15] <wmk> absolutely
334: [11:08:21] <wmk> i forgot about the forums in past
335: [11:08:24] <Pyacolk> I certainly answer where I can, where as otherwise I'd completely ignore the forum's existence
336: [11:08:27] <Pyacolk> mmm
337: [11:08:40] <wmk> same here. some questions i think i'm not the right person to answer
338: [11:09:04] <wmk> but today i also wrote some "thanks for sharing the right answer to us" messages
339: [11:09:10] <Pyacolk> Yeah, but it's cool that we can choose.
340: [11:09:23] <Pyacolk> "I dunno... oh well, hopefully someone else does"
341: [11:09:27] <wmk> as many forum posts just ask, someone answers, but the asker doesn't reply if it worked or what the solution was
342: [11:09:45] <wmk> well, more "I dunno, but Pyacolk or kinglozzer might know"
343: [11:09:52] <wmk> *G*
344: [11:10:22] <Pyacolk> :P
345: [11:12:15] <kinglozzer> :B
346: [11:14:20] <ss-helper> Re: Prevent page from having any children. - http://www.silverstripe.org/community/forums/general-questions/show/101363#post400764
347: [11:14:20] <ss-helper> Re: Prevent page from having any children. - http://www.silverstripe.org/community/forums/general-questions/show/101363#post400763
348: [11:28:44] * babak quit (Quit: Connection closed for inactivity)
349: [11:29:23] <ss-helper> Re: Prevent page from having any children. - http://www.silverstripe.org/community/forums/general-questions/show/101363#post400765
350: [11:35:28] <wmk> kinglozzer, what do you mean: should we deprecate $allowed_children = "none" for going with falsy values instead of a string?
351: [11:35:43] <wmk> now this config value can be an array, false or string
352: [11:36:25] <kinglozzer> wmk: Can you override an array with false? I thought there were issues with config + falsy values
353: [11:36:27] <GioVdK> hi kinglozzer, thanks for your reply on that thread ;)
354: [11:36:59] <GioVdK> kinglozzer: you mean the yml files, right?
355: [11:37:07] <GioVdK> that would explain
356: [11:37:46] <kinglozzer> GioVdK: Huh? Which thread? :P
357: [11:38:25] <GioVdK> oh lol.. my bad, actually was wmk who replied :D
358: [11:38:42] <GioVdK> (the post on the forum linked by the bot)
359: [11:38:48] <Pyacolk> I like 'none' - it's more explicit.
360: [11:38:49] * g4b0_ quit (Ping timeout: 264 seconds)
361: [11:39:11] * Shrike_Finland quit (Quit: Leaving.)
362: [11:39:17] <Pyacolk> it describes what it means, rather than being a statement.
363: [11:39:42] <Pyacolk> eg. 'would you like a drink?' - 'false.'
364: [11:39:46] <Pyacolk> doesn't really work.
365: [11:39:56] <Pyacolk> 'no thank you' is much better (more fitting).
366: [11:40:17] <kinglozzer> Pyacolk: private static $allowed_children = 'no thank you';
367: [11:40:25] <kinglozzer> Our code should be more polite
368: [11:40:31] <Pyacolk> well no, because that doesn't work either.
369: [11:40:45] <kinglozzer> Okay, 'none, thank you'
370: [11:40:49] <Pyacolk> the question is 'list for me please, your childrens'
371: [11:40:59] <Pyacolk> yeh, none thank you.
372: [11:41:17] <kinglozzer> private static $allowed_actions = array('someaction' => 'yes, please');
373: [11:41:24] <Pyacolk> is_string($val) && preg_match(/none/, $val)
374: [11:41:53] <Pyacolk> but then we should also allow for other languages kinglozzer
375: [11:42:01] <GioVdK> lol
376: [11:42:30] <Pyacolk> preg_match(_t('ALLOWEDCHILDS', 'none'), $val)
377: [11:43:13] <kinglozzer> Pyacolk: We could just overhaul Config itself, so that "yes, please" is treated as true and "no, thank you" is treated as false
378: [11:43:17] <GioVdK> I'd just use a new var instead
379: [11:43:24] <GioVdK> $birth_control = true;
380: [11:43:29] <Pyacolk> :P
381: [11:43:54] <kinglozzer> Pyacolk: I smell a module
382: [11:43:58] <kinglozzer> :P
383: [11:44:04] <kinglozzer> The world's least useful module
384: [11:44:26] <ss-helper> Re: Prevent page from having any children. - http://www.silverstripe.org/community/forums/general-questions/show/101363#post400766
385: [11:44:59] <Pyacolk> kekeke kinglozzer - entention hooks all the things!
386: [11:45:08] <kinglozzer> Config::set_instance() << there you go!
387: [11:45:19] <kinglozzer> QueensEnglishConfig
388: [11:46:18] * Guits quit (Ping timeout: 246 seconds)
389: [11:47:21] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
390: [11:50:43] * Guits has joined #silverstripe
391: [11:58:42] <wmk> Pyacolk, get $allowed_children in line with "would you like a drink...?".... wowo
392: [11:59:29] <ss-helper> Site won't build with Image field in DataObject? - http://www.silverstripe.org/community/forums/data-model-questions/show/101366
393: [12:00:08] <Pyacolk> wmk: lol
394: [12:00:36] <wmk> and then GioVdK ... $birth_control = "yes, please"
395: [12:00:41] <wmk> YMMD!
396: [12:01:40] <GioVdK> wmk: :D
397: [12:04:12] <Pyacolk> haha :>
398: [12:04:22] <wmk> is a tutorial "amusing" ?
399: [12:04:27] <Pyacolk> ?
400: [12:04:32] <Pyacolk> if it is mildly funny
401: [12:04:32] <wmk> more "entertaining"?
402: [12:05:03] <wmk> Pyacolk, you've been faster ;)
403: [12:05:25] <Pyacolk> amusing directly implies humour. entertaining lets you enjoy something without it having to explicitly be funny.
404: [12:07:51] * Smashcat has joined #silverstripe
405: [12:08:12] <Smashcat> Hi, is Silverstripe supposed to be compatible with IE9? (in the admin)
406: [12:08:30] <Pyacolk> probably
407: [12:08:43] <Pyacolk> I don't see why not, ie9 is reasonably solid.
408: [12:08:54] <Pyacolk> (moreso than it's predecessors at least)
409: [12:09:41] <Smashcat> Client mentioned that some tabs don't work in the admin using IE9. I tried with IE10, and had the same issue. Just wanted to check IS is supported or not. If not I'll tell them they need to use Chrome/Firefox
410: [12:10:07] <Pyacolk> should work, so far as I know.
411: [12:10:24] <Pyacolk> I imagine it's supported, since the government uses it.
412: [12:10:59] <Smashcat> Yeah, it's hard to tell what it's doing - it's like the tabs are not always links for IE. In FF/Chrome they're fine. I'll just tell them they need to use another browser I think
413: [12:11:23] <Pyacolk> well they should work. Depending on what you mean by 'tabs' though too of course
414: [12:12:10] <swaiba_> anyone know if a Object::get()->first() does the same or less work than a Object::get()->limit(1)->first()
415: [12:12:32] <swaiba_> assuming no other records are atempted to be processed but the first()
416: [12:12:35] <Pyacolk> does it matter?
417: [12:12:38] <Smashcat> The tabs along the top of the admin pages, to the top right. (I'm actually a Java/C/JS developer, the SS dev is on holiday at the moment, so I'm just filling in :) )
418: [12:13:25] <Pyacolk> yeah top right I think is still links (sometimes tabs can be JS powered)
419: [12:13:39] * Shrike_Finland has joined #silverstripe
420: [12:14:32] <ss-helper> Re: Site won't build with Image field in DataObject? - http://www.silverstripe.org/community/forums/data-model-questions/show/101366#post400769
421: [12:14:32] <ss-helper> Re: Site won't build with Image field in DataObject? - http://www.silverstripe.org/community/forums/data-model-questions/show/101366#post400768
422: [12:15:04] <Pyacolk> ha, newest link on top.
423: [12:15:22] <ss-helper> Re: [silverstripe-dev] Re: Block editing modules - https://groups.google.com/d/msg/silverstripe-dev/3kC1-iG1nYw/6UclDcb58Q8J
424: [12:15:28] * bemusedrat quit (Quit: Leaving)
425: [12:15:29] <Smashcat> Pyacolk: Hmm, It's weird that some tabs work, and others don't. Nothing in the console. It's like the link just isn't there for IE. Probably some code that just about works in FF/Chrome, but IE isn't parsing it.
426: [12:16:19] <Pyacolk> probably some click handler that's failing
427: [12:16:21] <Pyacolk> (js)
428: [12:17:10] <Smashcat> Yeah, that's what I've thought. The actual URL is there, but it's being obstructed.
429: [12:18:13] <Pyacolk> Smashcat: you're using silverstripe 3.1. ... x?
430: [12:18:34] <Smashcat> I don't know that it is. Probably the latest release was used.
431: [12:19:49] <Pyacolk> and you're talking about editing a page, the 'content', 'settings', 'history' tabs, right?
432: [12:20:44] <Smashcat> Well in this case it's a custom type. So the links are like "Pending Emails","Held Emails" etc across the top. Looks like every other one works most of the time in IE.
433: [12:21:15] <Pyacolk> Smashcat: are you able to share a screenshot (you can blur/delete content area, etc of course)
434: [12:21:27] <Pyacolk> I just, sorta need to know which tabs your'e talking about.
435: [12:21:29] <Smashcat> Yep, will do
436: [12:23:48] <swaiba_> Pyacolk - I'd say it does matter if one is orders of magnitude more efficient than the other, which is why I thought I'd quickly ask
437: [12:24:34] <Pyacolk> swaiba_: orders of magnitude?
438: [12:24:43] <Pyacolk> lazy loading should effectively make them exactly the same query.
439: [12:24:50] <wmk> should
440: [12:24:51] <Pyacolk> (or there abouts)
441: [12:25:04] <Pyacolk> only way to know swaiba_ is to test!
442: [12:25:16] <swaiba_> indeed, but also quick to ask ;-P
443: [12:25:25] <swaiba_> incase someone else tested first :)
444: [12:25:27] <Smashcat> Here's a screenshot http://postimg.org/image/rltddjxix/
445: [12:27:11] <Pyacolk> Smashcat: ah, this is modeladmin
446: [12:27:19] <Pyacolk> yeah, those should be links
447: [12:27:28] <Pyacolk> although I'm noticing some different behaviour in IE9
448: [12:27:35] <Pyacolk> with pages at least
449: [12:28:24] <Pyacolk> the cms is a bit of a JS beast... it tries to provide a more seamless behaviour by intercepting links, then loading the partial content into the 'main' pane (ie, the big right hand one, as opposed to 'left' which is the menu)
450: [12:28:46] <Smashcat> So will it work with JS disabled for IE?
451: [12:29:12] <Pyacolk> Smashcat: no.
452: [12:29:22] <Pyacolk> CMS requires JS. Can limp on without it, but not at all ideal.
453: [12:29:44] <Smashcat> As long as it just about works for them, it doesn't really matter.
454: [12:29:46] <Pyacolk> Smashcat: if you right click those links, can you browse to them directly (ie, so the click handler doesn't fire)?
455: [12:30:12] <Pyacolk> ie, what happens if you middle click?
456: [12:30:13] <Smashcat> Yep, can right-click and then open
457: [12:30:21] <Pyacolk> yeah, so they work.
458: [12:30:28] <Pyacolk> some JS will be causing an error somewhere.
459: [12:30:37] <Smashcat> Nothing in the console though.
460: [12:30:47] <Pyacolk> yeah but this is IE.
461: [12:31:09] <Smashcat> Yeah, it does have a console that usually shows errors though
462: [12:31:17] <Pyacolk> I know.
463: [12:32:48] <Smashcat> Does seem like an incompatibility between SS and IE though.
464: [12:33:55] <Pyacolk> I'm just knocking together a test now
465: [12:34:03] <Pyacolk> see if I can replicate
466: [12:36:41] <Pyacolk> Smashcat: what is the number in framework/silverstripe_version?
467: [12:36:54] <Pyacolk> (file)
468: [12:36:56] * UndefinedOffset has joined #silverstripe
469: [12:37:12] <Pyacolk> I'm using 3.1.6 - just tested and model admin works normally
470: [12:37:16] <Smashcat> That file is empty
471: [12:37:31] <Pyacolk> try cms/silverstripe_version then
472: [12:37:45] <Smashcat> Empty too
473: [12:37:55] <kinglozzer> Smashcat: composer.json in docroot?
474: [12:38:26] <Smashcat> Er, haha, just uses self.version
475: [12:38:56] <Pyacolk> lol
476: [12:39:21] <kinglozzer> Smashcat: It says "silverstripe/framework": "self.version"? O.o
477: [12:39:21] <Pyacolk> Smashcat: what folder names are in docroot (ss root) other than assets, cms, framework, mysite, themes ?
478: [12:39:27] <Smashcat> yeah :)
479: [12:39:31] <Pyacolk> o.0
480: [12:39:43] <Pyacolk> that seems... unlikely
481: [12:40:21] <kinglozzer> Smashcat: Is there a minimum-stability setting?
482: [12:40:26] <Smashcat> There's loads. silverstripe-copybutton silverstripe-datedropdownselectorfield silverstripe-display-logic etc
483: [12:40:36] <Pyacolk> Smashcat: o.0
484: [12:40:44] <Pyacolk> doesn't look like composer was used at all
485: [12:40:46] <wmk> composer.json???
486: [12:40:56] <kinglozzer> afaict self.version would install dev-master :P
487: [12:41:07] <Smashcat> minimum_stability is set to "dev"
488: [12:41:19] <Pyacolk> kinglozzer: afaik silverstripe modules are named appropriately by composer, and wouldn't have silverstripe- prefix
489: [12:41:26] <Pyacolk> no?
490: [12:41:32] <kinglozzer> Sometimes, sometimes not
491: [12:41:35] <Pyacolk> hmm
492: [12:41:52] <Pyacolk> Smashcat: can you !paste the composer.json?
493: [12:41:58] <Pyacolk> !paste Smashcat
494: [12:41:58] <ss-helper> Smashcat: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
495: [12:42:00] <wmk> cd framework; git log -n3
496: [12:42:02] <Smashcat> sure
497: [12:42:22] <Pyacolk> again obfuscate private repos if necessary
498: [12:42:24] <Pyacolk> of course
499: [12:42:33] <wmk> Pyacolk, Smashcat and maybe composer.lock?
500: [12:42:36] <Smashcat> http://kopy.io/hhUGE
501: [12:42:45] <Pyacolk> rofl 'hhuge'
502: [12:42:58] <Smashcat> heh, there is no composer.lock
503: [12:43:00] <Pyacolk> I bet you show that paste to all the boys.
504: [12:43:17] <Smashcat> :)
505: [12:43:27] <Pyacolk> yeah I'm right, composer isn't being used at all kinglozzer
506: [12:43:50] <Pyacolk> Smashcat: is there a 'silverstripe-newsletter' folder?
507: [12:43:54] <wmk> Smashcat, is there a framework/.git folder?
508: [12:44:14] <Smashcat> no silverstripe-newsletter folder
509: [12:44:32] <Smashcat> yes framework/.git
510: [12:44:38] <wmk> cd framework
511: [12:44:41] <wmk> git log -n3
512: [12:45:01] <wmk> should output the last commits of framework, then we can see what version framework is
513: [12:45:13] <Pyacolk> or git branch
514: [12:45:23] <Smashcat> http://kopy.io/hV7NG
515: [12:45:25] <Pyacolk> will tell what active branch is
516: [12:45:46] <Pyacolk> 0.0 april 2014
517: [12:46:45] <wmk> Smashcat, yup, git branch?
518: [12:46:53] <Pyacolk> I think this is 3.0
519: [12:47:04] <Smashcat> Yeah, 3.1
520: [12:47:24] <kinglozzer> Pyacolk: 3.1.0 was Oct 13
521: [12:47:30] <kinglozzer> (2013)
522: [12:47:37] <Pyacolk> oh yeh
523: [12:47:54] <wmk> 3.1.5
524: [12:48:02] <Smashcat> So this version of SS was from 2013?
525: [12:48:03] <wmk> https://github.com/silverstripe/silverstripe-framework/commit/ff42ad268ef257070aed01a5cfd270e1f2ed8d1a
526: [12:48:28] <wmk> a bit before...
527: [12:48:35] <Pyacolk> yeah, it's between 3.1.5 and 3.1.6
528: [12:48:44] <kinglozzer> Smashcat: Looks like it's from april 2014
529: [12:48:44] <Pyacolk> probably a pull of 3.1 branch directly
530: [12:48:51] <wmk> yup.
531: [12:49:15] <Pyacolk> err .4 and .5
532: [12:49:16] <Pyacolk> that is
533: [12:49:33] <Smashcat> As for the problem though, I guess it's best to just recommend not using IE in the admin?
534: [12:49:51] <Pyacolk> 3.1.5-rc1 was may 2014
535: [12:49:59] <Pyacolk> Smashcat: no, it works fine.
536: [12:50:14] <Smashcat> well... not really :)
537: [12:50:15] <swaiba_> Smashcat - I've only ever recommend chrome, even now with 3.x
538: [12:50:18] <Pyacolk> is there any javascript in mysite?
539: [12:50:23] <Pyacolk> mysite/javascript/??
540: [12:50:26] <Pyacolk> for eg.
541: [12:50:50] <Pyacolk> also, might pay to git status in each of the module dirs
542: [12:50:56] <Pyacolk> ensure no core cahnges
543: [12:50:59] <Pyacolk> changes*
544: [12:50:59] <wmk> hmm, 3.1.5 update to 3.1.6 may break something up afaik?
545: [12:51:07] <Pyacolk> wmk: not that I'm aware of
546: [12:51:20] <kinglozzer> Smashcat: The core javascript works fine, so it's either: A. you need to update, or B. there's some custom JS that's interfering and breaking things
547: [12:51:26] <Pyacolk> but it's 3.1.4.abit
548: [12:51:34] <Pyacolk> yep.
549: [12:51:46] <Pyacolk> thus check mysite (or similar) for custom JS
550: [12:52:05] <Smashcat> I'll have to open it in FF to see what JS is pulled into the page. It's just a mess in IE
551: [12:52:15] <Pyacolk> Smashcat: no, don't do that
552: [12:52:21] <Pyacolk> open the modeladmin file
553: [12:52:33] <Smashcat> There is no "mysite" folder
554: [12:52:44] <Pyacolk> also Smashcat - does this happen on ALL the pages with the DB icon, ALL pages in the admin, or just the Email section you're in on that screenshot?
555: [12:52:54] <Pyacolk> Smashcat: volvotestdrive folder then
556: [12:52:58] <Smashcat> Only the email section
557: [12:53:09] <Pyacolk> Smashcat: definitely custom JS then
558: [12:53:28] <Pyacolk> all the other sections with the same icon use the exact same code
559: [12:53:56] <Pyacolk> http://doc.silverstripe.org/en/developer_guides/customising_the_admin_interface/modeladmin
560: [12:54:06] <Smashcat> No JS under there
561: [12:54:19] <Pyacolk> so find the class that makes the Email section
562: [12:54:31] <Pyacolk> see if it has any Require::javascript statements in it
563: [12:54:38] <Pyacolk> if not, then check the models it manages
564: [12:54:45] <Pyacolk> (hopefully all in aptly named files)
565: [12:55:21] <Pyacolk> and if you still can't find anything, then maybe use FF or chrome to check JS being pulled in
566: [12:55:42] <Pyacolk> you'll need to inspect the source though, 'view source' loads the default admin (ie, before JS manipulates the DOM)
567: [12:55:55] <Pyacolk> JS requirements are loaded as needed
568: [12:56:03] <Smashcat> I grepped for the text on one of the tabs to find the class, no require in it
569: [12:56:27] <Pyacolk> the tabs that don't work?
570: [12:56:56] <Smashcat> Yep. This is the only section with 5 tabs though. The other sections have a maximum of 3. That's the only difference I can see
571: [12:56:58] <Pyacolk> ie, class PendingEmails extends DataObject ?
572: [12:57:16] <Smashcat> Yep I'll paste the top of it
573: [12:57:24] <Pyacolk> or class EmailAdmin extends ModelAdmin { private static url_segment = 'Emails'
574: [12:57:25] <Pyacolk> ?
575: [12:57:39] <Pyacolk> there are 6 classes in play here
576: [12:57:40] <Pyacolk> at least
577: [12:57:49] <kinglozzer> Smashcat, Pyacolk: I'd definitely recommend trying an upgrade of framework before trying to debug everything.. https://github.com/silverstripe/silverstripe-framework/archive/3.1.10.zip
578: [12:57:57] <Smashcat> http://pastebin.com/Pz2afU5k
579: [12:57:58] <Pyacolk> yep
580: [12:58:11] <Pyacolk> especially after a quick squiz shows nothing obvious
581: [12:58:28] <Smashcat> I'm not the SS developer though. I don't work on it (I'm a Java/C/JS gut mostly)
582: [12:58:32] <Pyacolk> ExternalDataAdmin
583: [12:58:35] <Pyacolk> RUH ROH
584: [12:58:40] <kinglozzer> Smashcat: If you're desperate, outsource it to Bigfork ;)
585: [12:58:43] <Smashcat> I've been roped into this as the other guy is off :(
586: [12:58:50] <Smashcat> haha, yeah
587: [12:58:56] <Pyacolk> Smashcat: call them up and ruin their holiday
588: [12:59:40] <ss-helper> Re: Get User to change password on next login - http://www.silverstripe.org/community/forums/forum-module-forum/show/15776#post400770
589: [13:00:18] <Smashcat> Well the quickest fix for me is to tell them to use Chrome. Is not like it'll cost them anything
590: [13:00:42] <Pyacolk> Smashcat: depends on client.
591: [13:01:06] <Smashcat> They use Macs when they're out and about, so no idea when they need to use IE in the office
592: [13:01:15] <Pyacolk> quickest fix for you is to take a dev environment and update SS
593: [13:01:29] <Smashcat> No I think saying "use Chrome" is quicker :)
594: [13:01:34] <Pyacolk> it goes -rm -rf framework cms
595: [13:01:52] <Pyacolk> mv new_cms docroot/cms
596: [13:02:01] <Pyacolk> mv new_framework docroot/framework
597: [13:02:13] <Pyacolk> then dev.site/dev/build
598: [13:02:19] <Pyacolk> job done
599: [13:02:22] <Pyacolk> test in IE
600: [13:02:47] <Pyacolk> if works (if everything works - run your test suite too!) then commit, push, deploy
601: [13:03:11] <Pyacolk> If not, but everything still works (test suite passes) then still commit push deploy
602: [13:03:24] <Pyacolk> also, tell ss guy to invest in composer
603: [13:03:52] <Smashcat> Don't think that's a good idea. This has already gone through pen testing etc, and client review. This is the only outstanding issue as far as I'm aware (only just been brought into this). If something as major as the underlying CMS is changed, it will result in complete retesting of the entire system
604: [13:04:13] <Pyacolk> nah, point release shouldn't affect it.
605: [13:04:27] <Pyacolk> but it's still a valid point
606: [13:04:28] <Smashcat> No it's the procedure we have to go through.
607: [13:04:31] <Pyacolk> yep
608: [13:04:33] <Pyacolk> I know.
609: [13:04:55] <Pyacolk> but still get the SS fellow onto the composers.
610: [13:05:12] <Smashcat> But thanks for the help! I'll mention the composers.
611: [13:06:02] <Pyacolk> and yeah, if they use macs... why IE as you say. Just say no
612: [13:06:12] <Pyacolk> it's it EOL anyway?
613: [13:06:15] <Pyacolk> isn't*
614: [13:06:44] <Smashcat> Well kind of. They're keeping it for backward compat, but have a new browser inthe pipeline
615: [13:07:03] <Pyacolk> no they don't, it's a bit lie.
616: [13:07:25] <Pyacolk> 'Spartan' the 'new' browser - Like saying Opera isn't just a chrome reskin.
617: [13:07:36] <Smashcat> Well they have a codename for it :)
618: [13:07:40] <Pyacolk> Same rendering engine, same javascript engine.
619: [13:07:53] <Pyacolk> 'new browser' - all the broken bits are still the eff'n same!
620: [13:08:03] <Pyacolk> it's a PR stunt
621: [13:08:31] <Pyacolk> 'We got rid of that browser that was bad' translates into 'we got rid of the name with all the stigma attached to it'
622: [13:08:38] <Smashcat> Funnily enough though, IE10 is actually really good. Its canvas performance is much faster than Chrome/FF and I haven't noticed any problems with it up till this thing today
623: [13:09:00] <Pyacolk> Yeah. _Modern_ IE isn't so bad.
624: [13:09:29] <Pyacolk> But it is still named 'Internet Explorer' which instantly sneers everyone in the know's noses.
625: [13:09:32] <wmk> but that IE app in win 8.1 ....
626: [13:09:40] <Smashcat> I used to deal with IE since IE3, so yeah...
627: [13:09:54] <wmk> Smashcat, you survived browser wars?
628: [13:09:57] <Smashcat> I hate Win 8 . Made me switch to a Mac
629: [13:10:10] <Pyacolk> ha
630: [13:10:12] <wmk> 8.1 is quite ok again
631: [13:10:18] <wmk> 8.0 was horrible
632: [13:10:21] <Smashcat> Yep, IE4 was actually the best browser back then - Netscape 4 was horrendous
633: [13:10:25] <Pyacolk> Win8 - I hate it so much I skipped it like I skipped Vista. And XP.
634: [13:10:43] <wmk> xp was good. win7 is also good
635: [13:10:49] <Pyacolk> I used 2k
636: [13:10:52] <wmk> vista - please don't remind me of that!
637: [13:11:00] <Pyacolk> Never used or had vista.
638: [13:11:22] * wmk had to use it in courses and on a relatives laptop
639: [13:11:33] <Smashcat> (Netscape 4 had a great bug where resizing the browser would lose all CSS unless you used their <layer> tag for everything - haha)
640: [13:11:51] <Pyacolk> Smashcat: so anyway, the work around is right click: open
641: [13:11:55] <Pyacolk> if they demand the IE9s
642: [13:12:05] <Pyacolk> and get SS chap to fix it when they return
643: [13:12:17] <Pyacolk> Because it's almost surely a JS issue.
644: [13:12:24] <Pyacolk> err *custom*
645: [13:12:45] <Pyacolk> May not be, but then you'd need to upgrade to sort that out.
646: [13:13:05] <Smashcat> I did half think it might be a CSS issue with some element obscuring the buttons...
647: [13:16:39] <Pyacolk> could be. Right click and inspect is the answer for that :)
648: [13:16:42] <Pyacolk> but I doubt it
649: [13:16:46] * cupcake quit (Ping timeout: 246 seconds)
650: [13:16:54] <Pyacolk> well, F12 then inspect, then click the button
651: [13:16:57] * g4b0_ has joined #silverstripe
652: [13:16:58] <Pyacolk> whatever
653: [13:23:21] <Smashcat> Told the client to use Chrome. However I have just noticed that clicking anywhere else on the page before clicking back on the tabs makes all the tabs work fine :)
654: [13:36:40] * cloph quit (Ping timeout: 272 seconds)
655: [13:36:49] * Rienco has joined #silverstripe
656: [13:36:56] <Rienco> Hi
657: [13:37:31] <Rienco> I have a prblem with CsvBulkLoader.
658: [13:38:36] <Rienco> http://pastebin.com/zZsw4U2B
659: [13:39:46] <Rienco> When I do a CSV import it will import the main columns as in the "Uitslag" table, but it won't update the related tables
660: [13:40:56] <Rienco> Hello, anybody?
661: [13:41:43] <wmk> Hi Rienco
662: [13:43:02] <Rienco> Hi wmk
663: [13:44:49] <ss-helper> Re: Site won't build with Image field in DataObject? - http://www.silverstripe.org/community/forums/data-model-questions/show/101366#post400771
664: [13:46:35] <wmk> Rienco, you've seen http://doc.silverstripe.org/en/developer_guides/integration/csv_import ?
665: [13:47:11] <Rienco> Yes, and i used a lot of code of it
666: [13:47:28] * ghost66 quit (Quit: Page closed)
667: [13:47:49] <wmk> hmm... from what i understad that code it's for getting the right relation ID.
668: [13:48:13] <wmk> i'm not used to csvbulkuploader, but it _should_ be possible to update related tables also...
669: [13:48:23] * Smashcat_ has joined #silverstripe
670: [13:48:42] <Rienco> yeah i know, but it won't (and also doesn't give a error)
671: [13:49:19] <wmk> so - you want to generate a new has_one if it doesn't exist?
672: [13:49:43] <Rienco> yes indeed
673: [13:50:31] <Rienco> The code of Uitslag.php: http://pastebin.com/Ty8dKwub
674: [13:50:36] <wmk> then you have to tell your getPaardByNaam method to generate a new one if none exists (and return the new one)
675: [13:50:50] * Smashcat quit (Ping timeout: 246 seconds)
676: [13:50:56] <wmk> Rienco, what language is that? Dutch?
677: [13:51:04] <Rienco> Yes it is
678: [13:51:45] <wmk> Rienco, don't use ?> at the end of the php file
679: [13:52:12] <wmk> if you accidently place a single emtpy char after that it'll be outputted and you cannot send any header() afterwards
680: [13:52:26] <Rienco> ok
681: [13:52:27] * Smashcat_ quit (Ping timeout: 244 seconds)
682: [13:52:33] <wmk> just delete the ?> in every file to be a bit more saver
683: [13:52:45] <Rienco> I will thanks
684: [13:53:00] <wmk> so your getPaardByName method might be something like
685: [13:53:20] <wmk> $paard = Paard::get()-> ...
686: [13:53:47] <Rienco> My CSV file: http://pastebin.com/XJAbByzn
687: [13:54:20] <wmk> if (!$paard) $paard = Paard::create(); $paard->Name = $name; $paard->write;
688: [13:54:26] <wmk> return ...
689: [13:54:46] * muskie9 has joined #silverstripe
690: [14:02:10] <Rienco> Hmm it seems to like getPaardByNaam isn't be used at all
691: [14:02:33] <Rienco> i edited the code public static function getPaardByNaam(&$obj, $val, $record) { if(Paard::get()->filter('Naam', $val)->First()){ $paard = Paard::create(); $paard->Name = $val; $paard->write; } return Paard::get()->filter('Naam', $val)->First(); }
692: [14:03:41] <Alboes> Question about the multiform module: is there a way to recognize if someone comes back from a next step?
693: [14:05:37] <muskie9> Alboes maybe by checking what the next step is then querying it?
694: [14:07:47] <wmk> Rienco, $paard->Namme = $val
695: [14:07:53] <wmk> Naam
696: [14:08:24] <wmk> Rienco, set a breakpoint at that method to see if it's queried
697: [14:10:40] <muskie9> Rienco if you're setting up a new Paard based on your if... should it be if(!Paard::get...
698: [14:13:09] * shellbackpacific has joined #silverstripe
699: [14:13:36] <Rienco> Stil doesn't show any output in te column Paard
700: [14:15:10] <Rienco> I putted an exit; right after opening the function, but the import did complete (without quitting)..
701: [14:15:48] <Rienco> It seems $relationCallbacks doesn't work?
702: [14:19:09] * wilson has joined #silverstripe
703: [14:19:32] * wilson is now known as Guest64823
704: [14:20:30] <Guest64823> Hi to all, i am having all sort of problems with with server (and server owner…..). Do you all rely on third-party servers OR does anyone owns its own servers?
705: [14:21:05] <zauberfisch> Guest64823: I have dedicated servers and managed servers
706: [14:21:25] <zauberfisch> for hosting I would highly recommend using a managed server or a good webhosting provider
707: [14:21:34] <kinglozzer> Guest64823: We're the same as zauberfisch ^^ DigitalOcean for the sites we managed ourselves
708: [14:21:35] <zauberfisch> because there is just so much you have to consider and take care of
709: [14:21:51] <zauberfisch> managing a server is no trivial thing. at least when you want to do it right
710: [14:22:07] <zauberfisch> emails alone are a pain in the arse to get done right
711: [14:22:29] <Guest64823> <zauberfish>managing a server means doing more than managing the cpanel right?
712: [14:22:38] <kinglozzer> Yes, a lot more
713: [14:22:41] <zauberfisch> backups, security monitoring, software updates, ...
714: [14:22:51] <zauberfisch> Guest64823: yes
715: [14:23:46] <Guest64823> So you would consider NOT doing this and go with a dedicated server instead of a shared one? A dedicated server that i could possibly set up the way SS wants it and put all of my SS sites in there?
716: [14:23:52] <zauberfisch> the managed servers I use are from hetzner.de, they are 99euro per server and depending on the size of the websites, I am sure you can put 50-100 sites there
717: [14:24:31] <zauberfisch> Guest64823: a dedicated server makes sense if you have a system administrator in your team that can take care of it. otherwise no, don't use a dedicated server
718: [14:25:05] <Guest64823> Guys, what is the difference between a MANAGED and a DEDICATED servers?
719: [14:26:21] <zauberfisch> managed servers are a thing in the middle between dedicated and webhosting. I have a web interface like cpanel (hetzner has its own other tool, but it is similar), I can create accounts there, and for each account I have ssh access. but I don't have root access, hetzner keeps the root access to them self, and they take care of software updates, security and backups
720: [14:26:25] <elgabbu> hi guys
721: [14:26:43] <zauberfisch> so its a server I have on for my own, I don't share it with other clients of hetzner. just my sites on it
722: [14:26:55] <zauberfisch> but still as easy to use as webhosting
723: [14:27:00] <elgabbu> i have a controller / action that is rendering a particular template ...
724: [14:27:24] <elgabbu> is it possible to somehow pop a widget inside the template?
725: [14:27:38] <zauberfisch> and because I have that server to myself, I am allowed to change many configurations, such as php memory_limit to higher values
726: [14:28:10] * spronk2 quit (Ping timeout: 255 seconds)
727: [14:28:26] <zauberfisch> how much features and how much flexibility you get depends on the hosting company, there are many out there that offer managed servers. some even give you root access.
728: [14:28:31] <Guest64823> <zauberfish><kinglozzer>Thanks you all. Will dig on that. Later!
729: [14:28:59] <zauberfisch> Guest64823: thats the one I have: https://www.hetzner.de/ot/hosting/produkte_managed/mx90
730: [14:29:05] <zauberfisch> 2 of that one
731: [14:30:03] <zauberfisch> I also have dedciated and virtual servers, but those I use for ther things and services and special things that I can't run on the managed server
732: [14:32:43] * Guest64823 quit (Ping timeout: 246 seconds)
733: [14:35:26] <shellbackpacific> Hey all. I'm considering using SilverStripe for a pretty large site (~1000 pages). I've used it on tons of smaller sites (and love it). I'm wondering if anyone has had any bad experiences scaling it up?
734: [14:35:52] * Smashcat has joined #silverstripe
735: [14:36:16] <Smashcat> Hi, is there a JS function that gets called after each new admin panel is loaded in SS?
736: [14:36:24] <muskie9> shellbackpacific I've used it for a couple of education sites 1000+ pages (2.4.x version) and they're still running fine
737: [14:37:11] <muskie9> only thing I need to circle back on is the SiteTree_versions table... I'd suggest a cron that cleans out records that are past a certain time length old to keep that table manageable
738: [14:37:26] <UndefinedOffset> shellbackpacific not with silverstripe 3.x but I've seen a few sites on 2.4. The only problem we had with that site was in the cms they had too many pages in some of the sub-trees which caused php to run out of memory. But I believe 3.x handles the sub-trees differently so that may not be an issue anymore. regardless theres always the list view for managing pages
739: [14:37:31] <Rienco> Hi @wmk, I think it's in the controller
740: [14:37:47] <Rienco> What name do I have to give it him?
741: [14:38:22] <shellbackpacific> UndefinedOffset nice feedback thanks
742: [14:39:02] <Pyacolk> [13:23] <Smashcat> Told the client to use Chrome. However I have just noticed that clicking anywhere else on the page before clicking back on the tabs makes all the tabs work fine :)
743: [14:39:05] <Pyacolk> hahahaha, dat IE9
744: [14:39:13] <kinglozzer> Smashcat: Nope, you'll need to use Entwine
745: [14:39:29] <kinglozzer> *cough* http://takeaway.bigfork.co.uk/a-beginners-introduction-to-using-entwine-in-silverstripe
746: [14:40:16] <kinglozzer> I'd put it off for your SS guy if you have the choice :P
747: [14:40:48] <Smashcat> Wish I had a choice. After today there's no f-ing way I'm going to get involved in this...
748: [14:40:49] <Pyacolk> kinglozzer: Smashcat did say he does JS. Just not SS.
749: [14:41:05] <Pyacolk> Smashcat: entwine seems like a headfuck, but is actaully pretty intuitive.
750: [14:41:09] <Smashcat> I'm actually pretty good with JS/WebGL :)
751: [14:41:11] <Pyacolk> you just gotta get your head around it.
752: [14:41:19] <Pyacolk> Which isn't all that hard.
753: [14:41:50] <Pyacolk> depending on how angry you get when talking about 'best practice' type derps that webderpvelopers come up with every 20 minutes
754: [14:42:29] <Pyacolk> basically, entwine is a bit more 'object oriented' in a slightly more traditional sense, when dealing with DOM.
755: [14:42:41] * GioVdK quit (Remote host closed the connection)
756: [14:42:46] <Smashcat> Yeah, it's just lack of time really. Coming into a system that's loading seemingly hundreds of scripts and working mostly using AJAX, to fix a bug without knowing anything about it is not great
757: [14:42:46] <Pyacolk> more specific selector: like a sub class.
758: [14:43:02] <Pyacolk> Smashcat: well it's basically $(selector).entwine(methods)
759: [14:43:09] <Pyacolk> which is like bind
760: [14:43:22] <Pyacolk> bind these methods to this 'object' (td element or something, idk)
761: [14:43:34] <Smashcat> I just need an override I can create to call after each new AJAX load
762: [14:43:37] <Pyacolk> then you select td elements (with any selector that selects them) and call directly
763: [14:43:46] <Pyacolk> $(selector).function()
764: [14:44:01] <Pyacolk> onSomething
765: [14:44:02] <Pyacolk> proably
766: [14:44:06] <Pyacolk> dunno what tho
767: [14:44:19] <kinglozzer> Smashcat: What specifically does it need to do? Does it need to only trigger when you load a specific panel, or every single time?
768: [14:44:25] <Pyacolk> eg. whatever the main panel is of LeftAndMain
769: [14:44:28] <Pyacolk> #main lets say
770: [14:44:52] <Smashcat> I want to call a function after any new content is loaded. Then I can use a focus() hack to make IE9 work with the SS tabs.
771: [14:45:11] <Pyacolk> $('#main').entwine({onLoad:function(){dosomeshit}})
772: [14:45:21] <Pyacolk> whenever Load event happens on #main, shit happens
773: [14:45:52] * cloph_away has joined #silverstripe
774: [14:45:55] <Smashcat> Ok ta, and I can get that included in every page of the admin?
775: [14:46:04] <Pyacolk> $('#main').entwine({makehappen:function(){dosomeshit}}).onLoad(function(){$(this).makehappen()})
776: [14:46:06] <Pyacolk> etc
777: [14:46:15] <Pyacolk> Smashcat: with yaml
778: [14:46:48] <Smashcat> oh god... down another rabbit hole :)
779: [14:46:54] <Pyacolk> http://doc.silverstripe.org/en/developer_guides/customising_the_admin_interface/javascript_development/
780: [14:47:15] <Pyacolk> http://doc.silverstripe.org/en/developer_guides/configuration/configuration/
781: [14:47:21] <Pyacolk> Smashcat: no literally 2 lines.
782: [14:47:30] <Pyacolk> LeftAndMain:
783: [14:47:59] <kinglozzer> https://gist.github.com/kinglozzer/a44226332a01d81a2bae
784: [14:48:00] <Pyacolk> require_extra_js: "mysite/javascript/mycoolscript.js"
785: [14:48:10] <kinglozzer> Smashcat: ^^ that'll include it everywhere
786: [14:48:14] * GioVdK has joined #silverstripe
787: [14:48:14] <Pyacolk> only without kinglozzer's combobreaker in the middle
788: [14:48:18] <kinglozzer> ;)
789: [14:49:06] <Pyacolk> but exactly what kinglozzer's combobreaker is.
790: [14:49:23] * Shrike_Finland quit (Quit: Leaving.)
791: [14:49:39] <Smashcat> yeah, so there's actually 4 config.yml files in this CMS
792: [14:49:41] * Shrike_Finland has joined #silverstripe
793: [14:50:15] * Shrike_Finland quit (Client Quit)
794: [14:51:28] <wmk> Rienco, dunno :( have to run now, cu later
795: [14:52:27] <Pyacolk> Smashcat: add another one.
796: [14:52:37] <Smashcat> haha, ok
797: [14:52:48] <Pyacolk> volvotestdrivesiteprojectfolder/_config/allthethings.yml
798: [14:53:00] <kinglozzer> Smashcat: Then visit http://mysite.com/dev/build
799: [14:53:03] <Pyacolk> Smashcat: after adding valid yml ^
800: [14:53:12] <Pyacolk> or just ?flush
801: [14:53:14] <Pyacolk> would do the trick
802: [14:53:20] <Pyacolk> since you're not altering the database
803: [14:53:55] <kinglozzer> Smashcat: https://gist.github.com/kinglozzer/6b72e09a4a068346dcda should do the trick
804: [14:53:57] <Pyacolk> http://thesite.dev/?flush
805: [14:54:09] <kinglozzer> (if you're trying what I think you're trying)
806: [14:55:09] <Pyacolk> kinglozzer: what's with the entwine namespacing without the namespace name?
807: [14:55:22] <Pyacolk> $.entwine(function(){}) ?
808: [14:55:40] <Pyacolk> $.entwine(function($){$(selector).entwine({actual:things})}) ?
809: [14:55:46] <Pyacolk> idgi
810: [14:55:47] <kinglozzer> Force of habit >.<
811: [14:55:57] <kinglozzer> (forgot namespace) :P
812: [14:56:00] <Pyacolk> oic
813: [14:56:04] * wmk quit (Ping timeout: 255 seconds)
814: [14:56:05] <Pyacolk> gofix!
815: [14:56:31] <kinglozzer> fix'd
816: [14:58:05] <Pyacolk> mmm, cleaner :>
817: [14:58:28] <Rienco> I figured it out the CSV uploader. The controller wasn't right on that place, I needed to set $model_importers. The right pastebin: http://pastebin.com/C1kjqD2H
818: [14:58:45] <Pyacolk> Smashcat: if you've ever used jquery.effen or the like, entwine is extremely similar
819: [14:58:47] * Guits quit (Ping timeout: 265 seconds)
820: [14:59:51] <GioVdK> Hello, do you know if SilverStripe automatically cleans the older files in /tmp/silverstripe-cache... ? On a server managed by the client they are running out of inodes throwing the "No space left on device" warning :p
821: [15:00:06] <ss-helper> Re: [solved] Pagination and Ajax Calls - http://www.silverstripe.org/community/forums/template-questions/show/101360#post400772
822: [15:00:07] <Pyacolk> tell them to get a bigger device.
823: [15:00:32] <kinglozzer> GioVdK: No, it doesn't. We had the same, now have a cron task that just empties that directory
824: [15:00:51] <Pyacolk> kinglozzer: how do you know if a file is in use or not though?
825: [15:00:52] <Smashcat> Pyacolk: Hmm, I added the LeftAndMain: stuff to config.yml (it already existed) and it didn't work "{path to file} does not have an equal number of headers and config blocks"
826: [15:01:00] <GioVdK> Pyacolk: hehe
827: [15:01:05] <kinglozzer> Pyacolk: You don't, you just run it in the early hours and hope for the best
828: [15:01:06] <kinglozzer> :P
829: [15:01:09] <Pyacolk> Smashcat: ah
830: [15:01:17] <Pyacolk> copy a header section out of another of the config files
831: [15:01:37] <Pyacolk> Smashcat: you don't have to use config.yml, but that's fine to do so too.
832: [15:01:50] <Pyacolk> kinglozzer: so first load of the day pushes 2m
833: [15:01:54] <Pyacolk> great!
834: [15:01:58] <kinglozzer> 2 minutes?!
835: [15:02:02] <GioVdK> kinglozzer: that is what I was thinking too but hoped for a built-in task or something ;) anyway it is easy to do it using find so it's ok :)
836: [15:02:04] <kinglozzer> How slow are your servers!?
837: [15:02:04] <kinglozzer> :P
838: [15:02:07] <Smashcat> There was already a config.yml in there, so I just appended the new config setting.
839: [15:02:18] <Pyacolk> kinglozzer: better quesition: How big is your site?
840: [15:02:41] <kinglozzer> Pyacolk: Dumping the directory and letting it regenerate is essentially a ?flush
841: [15:02:47] <kinglozzer> Doesn't take long at all
842: [15:02:49] <Pyacolk> Smashcat: yeah that's cool. was the file empty to begin with?
843: [15:02:54] <Pyacolk> Smashcat: or did you append to existing config?
844: [15:03:02] <Smashcat> No, I appended to an existing config
845: [15:03:12] <Pyacolk> Smashcat: is there a --- anywhere?
846: [15:03:15] <Pyacolk> should be 2
847: [15:03:24] <Pyacolk> one at top of file, one under the 'header'
848: [15:03:33] <Pyacolk> (name, before, after bit)
849: [15:03:34] <kinglozzer> Smashcat: Just paste it and we'll add it in and send it back :P
850: [15:03:34] <Smashcat> Easier if I paste it I guess
851: [15:03:43] <Pyacolk> Smashcat: basically :>
852: [15:04:06] <Pyacolk> also remember, double space, not tab :<
853: [15:04:09] <Smashcat> http://pastebin.com/0NqKhhLS
854: [15:04:18] <Pyacolk> 'coz the guy who made yaml was a cunt like that :<
855: [15:04:36] <Smashcat> Yeah, I love pedantic spacing requirements :)
856: [15:04:48] <Pyacolk> Smashcat: exactly right, except remove the --- above LeftAndMain
857: [15:05:09] <Smashcat> ah right, cool thanks
858: [15:05:26] <Pyacolk> they're secitoning blocks, not comments.
859: [15:05:35] <Pyacolk> sectioning*
860: [15:05:55] <Pyacolk> ie, more than visual
861: [15:07:23] <Smashcat> Cool, seems to work - it does call the function twice every page load, but that's ok for this :)
862: [15:07:56] <kinglozzer> Yeah I noticed that too, no idea why >.<
863: [15:09:06] <Pyacolk> onmatch perhaps
864: [15:09:12] <Pyacolk> idk
865: [15:21:38] <Pyacolk> Need to run delete command, not sure if it's correct. Duplicate DB to test. Takes 5 mins. Realise you imported the wrong database. Drop all tables. Takes 5 seconds. Duplicate correct database. Live is much bigger than dev. ... zzzzzzzzzzzz
866: [15:23:59] * Guits has joined #silverstripe
867: [15:29:47] <Pyacolk> kinglozzer:
868: [15:29:51] <Pyacolk> I thought I'd escaped
869: [15:29:56] <Pyacolk> apprently not :<
870: [15:30:04] <kinglozzer> Escaped what?
871: [15:30:06] <Pyacolk> Just a late charge
872: [15:30:18] <Pyacolk> Mid afternoon Zeds, attaaaaaaaaaaaak!
873: [15:30:30] <Pyacolk> :<
874: [15:30:52] <Pyacolk> Just had a fuck'n red bull too :<
875: [15:31:30] <kinglozzer> Hahaha, I haven't noticed them lately... not sure what's going on
876: [15:32:03] * catcher has joined #silverstripe
877: [15:33:20] <Pyacolk> getting good sleeps I guess
878: [15:33:23] <Pyacolk> I haven't lately
879: [15:33:27] <Pyacolk> yesterday I woke up at 4am
880: [15:33:29] <catcher> UndefinedOffset, SortableGF question - what's your recommendation for applying orders to new objects that haven't yet allowed drag & drop reordering?
881: [15:33:36] <Pyacolk> last night I couldn't get to sleep
882: [15:33:42] <Pyacolk> today I'm... feeling it a bit.
883: [15:34:08] <catcher> Pyacolk, I have a new baby. I'd feel your pain if I weren't numb.
884: [15:34:25] <Pyacolk> catcher: ha! I almost wish I had a baby. Then I'd have an excuse :<
885: [15:34:32] <Pyacolk> nowt
886: [15:34:47] <catcher> haha
887: [15:36:32] <Smashcat> Heh, "fixed" the issue with IE. When new content loads, I add a handler to all links to force a page reload if using IE :)
888: [15:40:34] * cloph_away quit (Remote host closed the connection)
889: [15:43:34] <Pyacolk> Smashcat: eh wha?
890: [15:44:24] <Pyacolk> click any link, get F5?
891: [15:44:30] <Pyacolk> idgi
892: [15:44:32] <Smashcat> Pyacolt: The JS that runs on all pages now in the admin removed any event handlers from <a> tags if using IE.
893: [15:44:51] <Pyacolk> Smashcat: protip: type py then press tab
894: [15:45:10] <Smashcat> (if they match the classes used by the top buttons)
895: [15:45:21] <Pyacolk> ah, I see.
896: [15:45:25] <Pyacolk> kinda makes sense I guess.
897: [15:45:29] <Pyacolk> only if using IE?
898: [15:45:34] <Pyacolk> makes sense I guess :P
899: [15:45:37] <Smashcat> Yeah, it works with other browsers
900: [15:45:51] <Pyacolk> seems pretty ingenious
901: [15:46:17] <Pyacolk> I just made a double strength coffee
902: [15:46:18] <Smashcat> It's on a 500sms timeout so it'll run after whatever is messing up the links to start with :)
903: [15:46:59] <UndefinedOffset> catcher sorry missed your question, well the only way it updates is if you go back to the grid field. However technically speaking in theory you could use onBeforeWrite() in the object and set the sort order to the max + 1 of the relationship technically
904: [15:47:34] <Pyacolk> Smashcat: one way to do it I guess. Not foolproof, but then again IE.
905: [15:48:26] <catcher> UndefinedOffset, would writing the parent do it? Or does that only happen on a save action from the cms?
906: [15:48:38] <catcher> UndefinedOffset, np btw, and thanks.
907: [15:50:15] <UndefinedOffset> catcher by default it automatically sorts all of the objects with a sort column value of 0 in the relationship the next time the grid is displayed. If you want to do it before that you'll need to come up with the nessiscary queries to get the next sort column value in onBeforeWrite()
908: [15:50:20] <catcher> write doesn't call fixSortColumn. If only fixSortColumn were abstracted to not need the GF..
909: [15:51:36] * cloph_away has joined #silverstripe
910: [15:51:38] <Eliseth> Question: Anyone here experienced with advanced hosting setups for silverstripe? The problem I face is the following:
911: [15:51:53] <Eliseth> I run SS on NGINX with HHVM. So far so good
912: [15:51:53] <UndefinedOffset> mm unfortunatly that would require a dataextension be applied to the objects :(
913: [15:52:26] <Eliseth> Now I implemented a fallback in case HHVM crashes (which tends to happen every now and then). The fallback will serve the site using PHP-FPM
914: [15:52:36] <Eliseth> This also function.... HOWEVER
915: [15:52:42] <catcher> UndefinedOffset, true. Maybe that could be optional.. would you be interested in that if I get some time to work on it?
916: [15:53:21] <Eliseth> Every time the switch is made, I must /?flush=all to display the site, else it just generates an error 9in PHP-FPM) or a blank page (when switching back to HHVM)
917: [15:53:23] <UndefinedOffset> catcher sure be my guest, just make sure you account for a many_many relationship, though I suppose that could be optional
918: [15:53:36] <Eliseth> 9 = (
919: [15:53:42] <UndefinedOffset> catcher errm a caveat
920: [15:53:46] <Pyacolk> Eliseth: different users I imagine
921: [15:53:51] <Pyacolk> ie, system users.
922: [15:54:01] <catcher> UndefinedOffset, caveat + todo :)
923: [15:54:07] <Eliseth> Both HHVM as PHP-FPM run under the same user and group
924: [15:54:13] <Pyacolk> hmm
925: [15:54:18] <UndefinedOffset> catcher fair point ;)
926: [15:54:23] <Pyacolk> Eliseth: where do files go?
927: [15:54:31] <Pyacolk> tmp? or do you have a silverstripe-cache folder?#
928: [15:54:38] <Eliseth> sec, let me double check...
929: [15:54:46] <Eliseth> silverstripe-cache
930: [15:55:01] <Pyacolk> hmm. That was going to be my suggestion (to create one)
931: [15:56:08] <Pyacolk> Eliseth: and after you've used both, when you switch back you still have to flush?
932: [15:56:21] <Eliseth> that I haven't tested... hold on
933: [15:56:33] <Pyacolk> could be separate manifest for some reason
934: [15:56:51] <Eliseth> yup, flush is needed again
935: [15:57:00] <Pyacolk> but I'd expect t onot have to flush once both arwe built if that's the case
936: [15:57:03] <Pyacolk> hmm, interesting
937: [15:57:06] <Pyacolk> idk man, sorry!
938: [15:57:34] <Pyacolk> Eliseth: what is the error if you don't flush?
939: [15:58:46] <Eliseth> when switching to PHP-FPM memory-exhausted, when switching to HHVM just a blank page
940: [15:58:49] <Rienco> Another Question: How can I get a CSV Filename get saved into the database within CsvBulkLoader?
941: [15:59:20] <Eliseth> (Upping the memory_limit and execution_time was not a solution there either)
942: [16:00:18] <ss-helper> After extending ModelAdmin how to loop the DataObjects in the template? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101368
943: [16:00:40] <ss-helper> Re: [silverstripe-dev] Re: Block editing modules - https://groups.google.com/d/msg/silverstripe-dev/3kC1-iG1nYw/Wz126x1UYVIJ
944: [16:01:15] <kinglozzer> Eliseth: Remove the silverstripe-cache directory
945: [16:01:19] <kinglozzer> from your docroot
946: [16:01:25] <kinglozzer> And make sure you're running the latest version of silverstripe
947: [16:01:49] <kinglozzer> If you switch PHP versions, you need to remove the cache folder or it'll crash (which is what I think you're seeing)
948: [16:02:12] <kinglozzer> But the latest version of SS names the cache directory something like silverstripe-cache-php5518 etc
949: [16:02:22] <kinglozzer> So hopefully, that'll solve your issue
950: [16:03:15] <Eliseth> Hmmm, that will have serious impact on performance if I need to delete the cache folder on every switch
951: [16:03:29] <kinglozzer> Eliseth: You shouldn't need to, that's what I'm saying
952: [16:03:44] <kinglozzer> But if you've got a silverstripe-cache directory in your docroot, you will need to, so try deleting that
953: [16:04:24] <Eliseth> let's see
954: [16:04:40] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/blob/3.1/core/TempPath.php#L68 < this should create a different cache directory for each version of PHP. If you have a silverstripe-cache/ directory in your docroot, that won't happen, so different PHP versions will share the same cache which causes the crash
955: [16:05:33] <Eliseth> Is there a way to not have it use the system tmp folder, but create those folders under my web root?
956: [16:08:23] * Rienco quit (Quit: Page closed)
957: [16:08:33] <kinglozzer> Eliseth: In your _ss_environment.php, something like: define('TEMP_FOLDER', '/path/to/docroot/silverstripe-cache/php' . preg_replace('/[^\w-\.+]+/', '-', PHP_VERSION));
958: [16:11:41] <Eliseth> So, basically bypass that function in TempPath.php
959: [16:15:21] <ss-helper> Get CSV Filename in CsvBulkLoader - http://www.silverstripe.org/community/forums/general-questions/show/101370
960: [16:15:41] <ss-helper> Re: [silverstripe-dev] Re: Block editing modules - https://groups.google.com/d/msg/silverstripe-dev/3kC1-iG1nYw/1L4mHfVliOMJ
961: [16:16:45] <Eliseth> the /path/to/docroot part, is there a SS call to get it dynamic via PHP?
962: [16:20:31] <muskie9> Eliseth I think I've used getcwd() in the past (get current working directory)
963: [16:20:37] <muskie9> $absoluteBase = getcwd();//get current working dir
964: [16:20:44] <muskie9> $base = str_replace('/framework','',$absoluteBase);//remove framework if .htaccess is working
965: [16:21:22] <Alboes> I can add an class to a form field with ->addExtraClass , but is there also something for add an id ?
966: [16:22:04] <Pyacolk> Eliseth: I think there's a defined constant, yeh
967: [16:22:05] <Eliseth> Noot using .htaccess (running on NGINX)
968: [16:22:09] <Eliseth> *not
969: [16:22:10] <Pyacolk> dunno what it is though
970: [16:22:28] <muskie9> Alboes SS generates the ID automatically for the form field IIRC
971: [16:22:53] <Pyacolk> like there's a FRAMEWORK_DIR, etc.
972: [16:23:02] <Alboes> okat, thanks
973: [16:24:11] <Eliseth> found it: BASE_PATH
974: [16:24:56] * marvanni has joined #silverstripe
975: [16:25:47] <marvanni> Any European based freelancers who can pick up some work coming weeks?
976: [16:26:11] <kinglozzer> Eliseth: I dunno if BASE_PATH will be defined when you hit _ss_environment.php
977: [16:26:17] <kinglozzer> It might be, worth a try :)
978: [16:27:03] * babak has joined #silverstripe
979: [16:29:05] <Pyacolk> marvanni: yeh, probably
980: [16:29:10] <Pyacolk> what do you need/
981: [16:29:11] <Pyacolk> ?
982: [16:29:36] <marvanni> mostly backend development
983: [16:29:46] <Pyacolk> any specifics like?
984: [16:29:55] <Pyacolk> What kind of project are we looking at?
985: [16:30:16] <marvanni> ill pm you
986: [16:30:20] <Pyacolk> k
987: [16:30:24] <ss-helper> Re: After extending ModelAdmin how to loop the DataObjects in the template? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101368#post400778
988: [16:30:24] <ss-helper> Re: After extending ModelAdmin how to loop the DataObjects in the template? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101368#post400777
989: [16:30:34] <Eliseth> BASE_PATH gets defined after :(
990: [16:30:49] <Pyacolk> why do you need it in _ss_environment?
991: [16:31:12] <Eliseth> my _ss_environment is used in multiple installations in different paths
992: [16:31:36] <Pyacolk> and...?
993: [16:33:05] <Eliseth> If I'm to define TEMP_FOLDER there which must include the BASE_PATH to the current application
994: [16:33:39] <Pyacolk> put it in _config.php
995: [16:33:46] <Pyacolk> mysite/_config.php
996: [16:33:54] <Pyacolk> or $projectdir/_config.php that is.
997: [16:34:24] <kinglozzer> Pyacolk: You can't
998: [16:34:39] <kinglozzer> It needs the temp directory before that
999: [16:35:37] <kinglozzer> Eliseth: get_cwd() as muskie9 suggested might save you
1000: [16:36:09] <Pyacolk> kinglozzer: hmm.
1001: [16:36:46] <Pyacolk> yeah, I guess pwd or cwd or whatever is probably the best
1002: [16:36:58] <swaiba_> dirname(__FILE__) ?
1003: [16:37:32] <Pyacolk> nah, because that'll just give _ss_environment.php's location
1004: [16:37:35] <Pyacolk> which is no good
1005: [16:40:39] * headtrip has joined #silverstripe
1006: [16:45:27] <ss-helper> Re: After extending ModelAdmin how to loop the DataObjects in the template? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101368#post400782
1007: [16:49:03] <Eliseth> Yessss, solved and working
1008: [16:49:22] <Pyacolk> Eliseth: so what was the answer?
1009: [16:49:30] <Eliseth> thanks a lot, this helps a lot with keeping uptime while using HHVM :)
1010: [16:49:35] <marvanni> wtf is that ss-helper?
1011: [16:49:41] <Pyacolk> marvanni: a new bot
1012: [16:49:50] <Pyacolk> !paste marvanni
1013: [16:49:51] <ss-helper> marvanni: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
1014: [16:49:52] <Pyacolk> etc
1015: [16:49:53] <marvanni> they need more traffic to the forum?
1016: [16:50:23] <Pyacolk> marvanni: nah, I think it's more about letting people know about questions - the folks that can actually answer them (us!).
1017: [16:50:32] <marvanni> http://www.sspaste.com/paste/show/5509accdebc6d
1018: [16:50:33] <Eliseth> Pyacolk: http://pastie.org/private/8gf2wn49zlmgpjg6kmz3xw
1019: [16:50:55] <Pyacolk> hehe marvanni
1020: [16:50:56] <marvanni> LOL, sspaste.com is my site :)
1021: [16:51:23] <marvanni> need to cut of the comment section… old website ;)
1022: [16:51:25] <Pyacolk> oh really?
1023: [16:51:27] <Pyacolk> heehe
1024: [16:51:30] <Pyacolk> I was not aware
1025: [16:51:45] <Pyacolk> Eliseth: so the problem was caused by different versions of php?
1026: [16:51:52] <kinglozzer> Awesome stuff Eliseth :)
1027: [16:52:15] <kinglozzer> Pyacolk: Yeah the cache hates switching PHP versions, dunno if they serialize differently sometimes or something
1028: [16:52:28] <Pyacolk> huh, interesting
1029: [16:52:35] <Pyacolk> still, good solve Eliseth :>
1030: [16:52:44] <Eliseth> Yes, the (possible) dynamic switch between HHVM and PHP-FPM required the need for multiple cache folders. One per PHP version
1031: [16:52:56] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/issues/2986 ^^
1032: [16:52:58] <catcher> Eliseth, sounds like a cool setup, you should write a doc for SS.
1033: [16:53:15] <Eliseth> catcher: I should, if only there were 48 hours in a day
1034: [16:53:45] <catcher> Eliseth, that's what vacation is for! ..err..
1035: [16:53:46] <Pyacolk> mmm, get yourself on the blog son!
1036: [16:53:57] <Eliseth> What blog
1037: [16:54:00] <Eliseth> !blog
1038: [16:54:04] <Eliseth> Stupid bot
1039: [16:54:22] <Pyacolk> silverstripe.org/blog
1040: [16:57:38] * g4b0_ quit (Quit: Sto andando via)
1041: [17:00:29] <ss-helper> Re: After extending ModelAdmin how to loop the DataObjects in the template? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101368#post400783
1042: [17:03:38] * muskie9 is now known as muskie9_afk
1043: [17:07:02] * muskie9_afk is now known as muskie9
1044: [17:15:54] * Alboes quit (Remote host closed the connection)
1045: [17:16:12] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1046: [17:24:21] * swaiba_ quit (Remote host closed the connection)
1047: [17:26:09] <Smashcat> Pyacolk: Not sure if you're interested, but I tracked down the component causing issues for IE (I'm still using the JS "fix") but it's when a GridFieldBulkManager is added to an admin panel. Not sure if this is a built-in component or not? Anyway, when I commented that out, the issues disappeared...
1048: [17:26:49] <Pyacolk> I don't think it is Smashcat
1049: [17:26:57] <Pyacolk> I'm pretty sure it's a module.
1050: [17:26:58] <Smashcat> Ah ok, never mind then :)
1051: [17:27:12] <Pyacolk> Smashcat: there'll be a similarly named folder in the ss-root
1052: [17:27:18] <Pyacolk> == module :>
1053: [17:27:28] <Smashcat> ah I see
1054: [17:28:19] <Pyacolk> I'd made an issue (clearly noting that the version is probably out dated) on the module author's github repository, personally like.
1055: [17:28:50] <Smashcat> I've got some time spare, so I'll look at what JS is being added by that module
1056: [17:29:05] <Pyacolk> Just as a reminder to poke about and test against an up to date version, see if it can be replicated
1057: [17:29:29] <Smashcat> Yeah, I'll get the SS guy to get the latest versions of everything once he's back and test
1058: [17:29:53] <Pyacolk> http://addons.silverstripe.org/add-ons/colymba/gridfield-bulk-editing-tools#bulk-manager
1059: [17:30:44] <Pyacolk> Smashcat: if you're really keen for a dig about: https://github.com/colymba/GridFieldBulkEditingTools/tree/master/bulkManager/javascript
1060: [17:31:12] <Smashcat> cheers
1061: [17:31:57] * kinglozzer home
1062: [17:32:01] <kinglozzer> ciao
1063: [17:32:12] <Pyacolk> FFFFFFFFFFFFFFF D:!!
1064: [17:32:24] <Pyacolk> it commits the sin of spaces mixed with tabs
1065: [17:32:27] <Pyacolk> for indentation :<
1066: [17:32:38] * kinglozzer quit ()
1067: [17:32:40] <Smashcat> :)
1068: [17:33:45] <Pyacolk> I cannat see anything that jumps out as meddling with bigger functionailty though
1069: [17:33:49] <Pyacolk> but, oh well
1070: [17:34:03] * Pyacolk shrugs
1071: [17:34:53] <Smashcat> The end result is that it seems like the left mouse button is "stuck down" until clicking on an empty area. IE, can't click links, or highlight text etc. After clicking an empty area, it works normally.
1072: [17:35:56] <Pyacolk> quite bizarre
1073: [17:36:38] <Smashcat> It's like the mouseup event is disabling some mousedown handler... hmm...
1074: [17:36:40] <Pyacolk> does it work if you use eg right mouse button instead of left?
1075: [17:36:52] <Smashcat> Dunno, I'll try
1076: [17:36:58] <Pyacolk> and by blank area do you mean anywhere except those tabs?
1077: [17:37:59] <Smashcat> Well anywhere really. Example: If I click on link (a) it won't work, but after trying link(a), all other links will work.
1078: [17:38:05] * headtrip quit (Quit: (null))
1079: [17:38:27] <Smashcat> but if I'd tried link(b) first, that wouldn't work, but then link(a) would
1080: [17:38:45] <Pyacolk> does link a not work, then link a still doesn't work?
1081: [17:39:03] <Pyacolk> ie, consecutive clicks result in nothing?
1082: [17:39:12] <Pyacolk> what about click, move mouse around, click in same place again
1083: [17:39:13] <Smashcat> The first thing clicked doesn't work basically. Not just links, but also highlighting text etc
1084: [17:39:31] <Pyacolk> what about click, click somehwere else, then try to click/select again?
1085: [17:39:42] <Smashcat> I tried clicking a link, moving about and clicking it again, and doesn't work. It has to be something else clicked first
1086: [17:40:04] <Pyacolk> so 2 clicks (in different places) lets you then use the page as normal?
1087: [17:40:21] <Smashcat> Yes, after the first click, then clicking other places works
1088: [17:40:35] <Pyacolk> yeah but that original click target still doesn't?
1089: [17:40:45] <Pyacolk> so if you click somewhere else, does it then become available?
1090: [17:40:49] <Smashcat> Don't know, as it reloads the page at that point
1091: [17:41:01] <Pyacolk> click something that isn't a link, haha :P
1092: [17:41:04] <Smashcat> Oh, if I click a blank area first, then I can click any link
1093: [17:41:07] <Smashcat> :)
1094: [17:41:37] <Pyacolk> yeah, but what about trying link first, doesn't work, click blank space, then try that same link again?
1095: [17:41:43] <Smashcat> That's why it feels like the button stuck down.
1096: [17:41:44] <Pyacolk> works yeah?
1097: [17:41:52] <Smashcat> Yep
1098: [17:41:55] <Pyacolk> yeah I get whatcha mean
1099: [17:42:02] <Pyacolk> it's certainly odd like
1100: [17:42:16] <Smashcat> Yeah, that's why I'm intrigued about what it's doing...
1101: [17:42:22] <Smashcat> .. and why only ie
1102: [17:43:13] <Pyacolk> put some console.log points in the script, heh
1103: [17:43:21] <Pyacolk> specifically around onmatch
1104: [17:43:44] <Smashcat> yeah
1105: [17:44:04] <Pyacolk> seems like it'll be in this function: https://github.com/colymba/GridFieldBulkEditingTools/blob/master/bulkManager/javascript/GridFieldBulkManager.js#L10
1106: [17:44:31] <Pyacolk> but, who knows
1107: [17:45:04] <Smashcat> yeah, I'm commenting that all out at the moment to check
1108: [17:45:16] <Pyacolk> onmatch is what happens when new elements are added (a find matches happens, if things match, then onmatch is executed)
1109: [17:45:44] <Pyacolk> it's probably all quite expensive thinking about it :<
1110: [17:46:07] <Smashcat> This guy needs to learn to indent code :)
1111: [17:46:13] <Pyacolk> yeh, ikr D:
1112: [17:46:30] * GioVdK quit (Ping timeout: 244 seconds)
1113: [17:46:42] <Smashcat> Boom! It works with that part commented out
1114: [17:46:45] <Pyacolk> I would guess that IE is stalling execution at some point
1115: [17:46:52] <Pyacolk> put console.log()s in there
1116: [17:47:05] <Pyacolk> when page loads, they should all get printed out
1117: [17:47:14] <Pyacolk> I'll guess that one doesn't, until you click
1118: [17:47:57] <Pyacolk> oh, this btw is a jquery object, not vanilla domelement
1119: [17:48:21] <Pyacolk> in entwine it's bound to the scope of the matching jquery object (ie, matching the selector used to call it)
1120: [17:50:33] <Pyacolk> rofl, looked at git blame. Commit with all those spaces for indenting in april 2014. may 2014 has a commit 'clean up and formatting' - SPACES NOT FIXED
1121: [17:53:07] <Smashcat> heheh
1122: [17:56:55] <Smashcat> Turned out to be this block causing the issue https://github.com/colymba/GridFieldBulkEditingTools/blob/master/bulkManager/javascript/GridFieldBulkManager.js#L30
1123: [17:58:13] <Smashcat> Seems to trigger a bug in IE. No errors, just the weird mouse behaviour
1124: [18:10:13] <Pyacolk> heh
1125: [18:10:34] <Pyacolk> which line though, the remove or the insertbefore?
1126: [18:10:46] <Pyacolk> or just the condition evaluation itself?
1127: [18:11:33] <Pyacolk> good grinding though :>
1128: [18:11:39] <Pyacolk> That's dedication D:
1129: [18:11:42] <Pyacolk> :D **
1130: [18:11:48] <Pyacolk> :s
1131: [18:11:49] <Pyacolk> hah
1132: [18:11:51] <Pyacolk> a
1133: [18:12:03] <Pyacolk> fuck, must be past hometimes :/
1134: [18:12:25] <Smashcat> Sorry, wasn't watching this :)
1135: [18:12:36] <Smashcat> Cheers, I commented that whole block out and it worked
1136: [18:20:16] <Pyacolk> Trouble is, it probably does something reasonably important, haha
1137: [18:20:51] <Pyacolk> anyway, I think imma head out home.
1138: [18:21:57] <Pyacolk> great chat
1139: [18:21:58] * Pyacolk quit ()
1140: [18:26:54] * wmk has joined #silverstripe
1141: [18:36:42] <marvanni> How do you guys handle a frontend form where a user should be able to add new rows of fields for a has_many relation
1142: [19:00:18] * Stomach has joined #silverstripe
1143: [19:01:24] * mobiusnz quit (Quit: Leaving.)
1144: [19:02:52] * gelignite has joined #silverstripe
1145: [19:17:01] * wmk quit (Read error: Connection reset by peer)
1146: [19:17:17] * wmk has joined #silverstripe
1147: [19:28:45] * UndefinedOffset quit (Quit: Leaving.)
1148: [19:34:11] * jedateach has joined #silverstripe
1149: [19:38:09] * babak quit (Ping timeout: 265 seconds)
1150: [19:39:27] * phil_benoit has joined #silverstripe
1151: [19:39:36] * adrexia quit (Ping timeout: 265 seconds)
1152: [19:39:48] <phil_benoit> evening all
1153: [19:40:00] * adrexia has joined #silverstripe
1154: [19:40:01] * babak has joined #silverstripe
1155: [19:41:04] <phil_benoit> anyone come across a bug where saving an asset folder name throws an error
1156: [19:43:44] * Ryan-Toast has joined #silverstripe
1157: [19:43:51] <catcher> phil_benoit, no, saving it how?
1158: [19:44:16] <catcher> Why can't I return an httpError(404) from an index method?
1159: [19:44:33] <phil_benoit> in the CMS > files > then edit a folder name and click save
1160: [19:45:32] <catcher> phil_benoit, that's working okay for me. Have you checked your permissions?
1161: [19:45:43] <phil_benoit> it then throws an erro related to buttonClicked in framework > form.php
1162: [19:45:50] <phil_benoit> let me check
1163: [19:46:16] <phil_benoit> should the assets folder be 775?
1164: [19:49:54] <Ryan-Toast> Stomach: looks really good man :D
1165: [19:54:32] * Pyromanik has joined #silverstripe
1166: [19:56:41] <Stomach> Ryan-Toast :D so much better than the old one
1167: [19:58:58] <Pyromanik> not if the user is www-data and the owner:group is no:no
1168: [19:59:08] <Pyromanik> phil_benoit, ^
1169: [19:59:24] * adrexia quit (Ping timeout: 256 seconds)
1170: [19:59:38] <phil_benoit> Pryomanik, thanks
1171: [19:59:51] * adrexia has joined #silverstripe
1172: [19:59:54] * babak quit (Ping timeout: 265 seconds)
1173: [20:00:39] <Pyromanik> phil_benoit, to execute a folder is to be able to go into it.
1174: [20:00:58] <Pyromanik> to read is to ls, to write... self explainitory
1175: [20:01:41] <Pyromanik> r,w,x is ls,write,cd
1176: [20:01:58] <Pyromanik> basically, _loosely_ to that effect.
1177: [20:02:27] * babak has joined #silverstripe
1178: [20:08:32] * mobiusnz has joined #silverstripe
1179: [20:10:45] * Hailwood has joined #silverstripe
1180: [20:12:31] * mobiusnz1 has joined #silverstripe
1181: [20:15:50] * mobiusnz quit (Ping timeout: 246 seconds)
1182: [20:17:35] <phil_benoit> Pyromanik thanks
1183: [20:18:00] <phil_benoit> I sitll have no idea why this issue is occuring, a fresh install works find
1184: [20:18:03] <phil_benoit> fine
1185: [20:18:17] <Pyromanik> what is thee issue
1186: [20:18:41] <phil_benoit> Warning at framework/forms/Form.php line 1415: Invalid argument supplied for foreach() (http://dev.gateway.com.au/admin/assets/EditForm)
1187: [20:19:02] <phil_benoit> within the function buttonClicked
1188: [20:19:22] <phil_benoit> $this->actions->dataFields() is empty
1189: [20:20:22] <phil_benoit> However, given the warning, the folder name change still applies
1190: [20:22:15] <wmk> maybe database thinks there are some file in the folder that don't exist any more?
1191: [20:23:18] <phil_benoit> just runnign dev sync now
1192: [20:23:22] <Pyromanik> what is the action you're trying to do?
1193: [20:23:43] <Pyromanik> upload a file in the cms assets admin?
1194: [20:24:36] <phil_benoit> I think wmk has it, the DB had folders in it that were not there in the file system.
1195: [20:25:19] <phil_benoit> thanks for the input Pyromanik and wmk! I appreciate it,
1196: [20:25:24] <Pyromanik> :)
1197: [20:25:28] <wmk> you're welcome
1198: [20:25:32] <Pyromanik> ^
1199: [20:25:32] <wmk> !beer phil_benoit
1200: [20:25:45] <phil_benoit> I was such a silly mistake but I have been working 18 hour days for too long
1201: [20:25:55] <Pyromanik> seems that plugin is not available wmk :>
1202: [20:26:06] <wmk> Pyromanik, is there an issuetracker for ss-helper ?
1203: [20:26:07] <Pyromanik> phil_benoit, happens to us all
1204: [20:26:15] <Pyromanik> wmk, there's not even source so far as I know
1205: [20:26:16] <phil_benoit> Next time your in Cape Town for sure wmk
1206: [20:26:18] <Pyromanik> !seen zippy
1207: [20:26:18] <ss-helper> Pyromanik: I last saw zippy 1 day ago
1208: [20:26:43] <wmk> !beer and !coffee would be nice ;)
1209: [20:26:54] <Pyromanik> !wine is the other command I believe :>
1210: [20:26:55] <phil_benoit> whats the !beer command?
1211: [20:27:05] <Pyromanik> phil_benoit, dunno. Some kind of kudos tracker I tihnk
1212: [20:27:12] <phil_benoit> oh cool
1213: [20:27:13] <Pyromanik> phergie.org/plugins or something like that
1214: [20:27:54] <Pyromanik> https://github.com/phergie/phergie-irc-bot-react/wiki/Plugins
1215: [20:28:02] * r3v3rb has joined #silverstripe
1216: [20:28:12] <r3v3rb> hello
1217: [20:28:12] <wmk> phil_benoit, you can make ss-helper do things with those commands.
1218: [20:28:16] <wmk> e.g.
1219: [20:28:19] <wmk> !paste phil_benoit
1220: [20:28:20] <ss-helper> phil_benoit: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
1221: [20:28:26] <r3v3rb> any windows users here?
1222: [20:28:27] <Pyromanik> https://github.com/phergie/phergie/blob/master/Phergie/Plugin/Beer.php
1223: [20:28:32] <Pyromanik> r3v3rb, why?
1224: [20:28:36] <wmk> r3v3rb, not that i know of ;)
1225: [20:28:42] <r3v3rb> Pyromanik, just bought a surface 3
1226: [20:28:51] <Pyromanik> oic, haha
1227: [20:28:54] <r3v3rb> trying to get sass/scss preprocessing setup
1228: [20:29:09] <r3v3rb> facking nightmare compared to osx
1229: [20:29:24] <Pyromanik> phil_benoit, atm though I think I'd settle for some biltong and rooibos
1230: [20:29:27] <r3v3rb> finally got unison file syncing working across server etc
1231: [20:29:29] <wmk> r3v3rb, there are some shells for windows.
1232: [20:29:44] <Pyromanik> r3v3rb, just install chocolate and be done with it
1233: [20:29:55] <r3v3rb> wmk, enlighten me been a while since i used winblows
1234: [20:29:58] <phil_benoit> Where you at Pryromanik
1235: [20:30:00] <wmk> r3v3rb, http://babun.github.io/ might be nice...
1236: [20:30:06] <phil_benoit> happy to get a package in the post
1237: [20:30:11] <Pyromanik> chocolatey* r3v3rb
1238: [20:30:12] <Pyromanik> https://chocolatey.org/
1239: [20:30:19] <wmk> though it doesn't map ~ to my windows user dir
1240: [20:30:24] <Pyromanik> phil_benoit, haha, not necessary
1241: [20:30:30] * r_hector has joined #silverstripe
1242: [20:30:33] <Pyromanik> UK atm, but am Kiwi.
1243: [20:31:02] <wmk> Pyromanik, we should think about amaz** wish lists ;)
1244: [20:31:02] <phil_benoit> agh I am also kiwi and spent 2 years in UK before moving here
1245: [20:31:05] <Pyromanik> I just brewed a nice Assam tea anyway
1246: [20:31:10] <Pyromanik> phil_benoit, oic
1247: [20:31:19] <Pyromanik> meet a woman did we?
1248: [20:31:31] <Pyromanik> *or other kind of significant other
1249: [20:31:54] <Pyromanik> wmk, heh, that's not a bad idea.
1250: [20:31:57] <Pyromanik> except... amazon :<
1251: [20:32:05] * r_hector quit (Client Quit)
1252: [20:32:09] <Pyromanik> plus there's fuckall I actually want. I think I'd rather the money!
1253: [20:32:13] <phil_benoit> lol, yeah in NZ while she was on hols.
1254: [20:32:25] <Pyromanik> can't buy tickets to Austria on Amazon (afaik)! :P
1255: [20:32:31] * r_hector has joined #silverstripe
1256: [20:32:32] <Pyromanik> phil_benoit, haha, legit.
1257: [20:32:59] <wmk> Pyromanik, well, dunno if someone wants to buy you a ticket for helping him.
1258: [20:33:02] <wmk> but you never know
1259: [20:33:39] <Pyromanik> wmk, exactly! ;)
1260: [20:33:42] <wmk> Pyromanik, that chocolatey looks cool
1261: [20:33:46] <Pyromanik> (not likely I mean)
1262: [20:33:55] <wmk> choco install phpstorm
1263: [20:33:59] <wmk> WOOOT!
1264: [20:34:04] <Pyromanik> :D
1265: [20:34:34] <Ryan-Toast> Yeah, man. Looks great! I thought you would have react.js all over the place though :P
1266: [20:34:54] <Pyromanik> wmk, so yeah, since people aren't likely to shell out for big ticket items (pun intended!) so I'd rather accumulate small sums
1267: [20:35:25] * muskie9 is now known as muskie9_afk
1268: [20:35:32] <wmk> Pyromanik, is it possible to add a signature in forums?
1269: [20:35:32] <Stomach> r3v3rb - install cygwin
1270: [20:35:39] <Pyromanik> wmk, not that I'm aware of
1271: [20:35:40] <wmk> e.g. "by me a beer" or flattr?
1272: [20:35:50] <Pyromanik> or paypal or something
1273: [20:36:01] <wmk> Stomach, gave up with cygwin, git-bash is ok for bashing
1274: [20:36:12] <Pyromanik> I had a chappy offer to paypal to me... but I don't have an account (nor do I really want one :<)
1275: [20:36:19] <wmk> though an apt-get like package manager for windows is cool...
1276: [20:36:23] <Pyromanik> gave up on cygwin years ago
1277: [20:36:33] <Pyromanik> like, just after I first installed it :P
1278: [20:36:35] <Ryan-Toast> Stomach ^
1279: [20:36:39] <wmk> babun looks also good, Stomach
1280: [20:36:40] <Ryan-Toast> comment above
1281: [20:36:40] <Pyromanik> I thought it was cool... but far far over the top.
1282: [20:37:24] <wmk> Pyromanik, https://chocolatey.org/packages?q=ansible :(
1283: [20:37:32] <r3v3rb> Stomach, yep done that, ruby, then rubygems - gem install sass... but sass watch produces nothing
1284: [20:37:55] <wmk> r3v3rb, how about grunt / libsass ?
1285: [20:38:01] <wmk> or do you need the ruby version for compass?
1286: [20:38:09] <Ryan-Toast> wmk: http://gooseberrycreative.com/cmder/
1287: [20:38:25] <Pyromanik> wmk, doesn't ansible only need to ... oh wait it doesn't do clients does it
1288: [20:38:31] <r3v3rb> wmk yep might be my next port of call - got two days left before i need to decide whether to keep this surface or not
1289: [20:38:49] <Pyromanik> r3v3rb, you can send it back?
1290: [20:39:28] <r3v3rb> Pyromanik, yup m$ store gives you 14 days to 'trial' the device
1291: [20:39:43] <wmk> Pyromanik, got ansible on babun / windows running
1292: [20:39:47] <r3v3rb> if you email within that time ship it back for full refund
1293: [20:39:59] * Stomach quit (Ping timeout: 252 seconds)
1294: [20:40:10] <wmk> r3v3rb, ain't it too small for coding / working?
1295: [20:40:14] * muskie9_afk is now known as muskie9
1296: [20:40:19] <r3v3rb> tbh, its a great device but i nvere thought setting up some simple tools (under osx) would be so painful
1297: [20:40:57] <r3v3rb> wmk, nope 12" screen 2540x1900 resolution or summat text is clean an crisp
1298: [20:40:59] <phil_benoit> my mate has the surface for coding small bits and loves it
1299: [20:41:07] <Pyromanik> My netbook is 12"
1300: [20:41:12] <Pyromanik> I can say that it's big enough.
1301: [20:41:17] <r3v3rb> its my 'on holiday' dev station
1302: [20:41:29] <Pyromanik> it's my 'only' dev station :<
1303: [20:41:30] <r3v3rb> light and easy to throw in a bag
1304: [20:41:38] <Pyromanik> hehe, yeh.
1305: [20:41:43] <r3v3rb> Pyromanik, my other is a 27" imac
1306: [20:41:49] <wmk> r3v3rb, fine. well, setting up sass on windows is a bit ...hmm... you know
1307: [20:41:52] <Pyromanik> how heavy is the surface r3v3rb ? Now windows 10 is coming I'm slightly interested in one
1308: [20:41:54] <r3v3rb> or my very old 17" mbp
1309: [20:42:10] <Pyromanik> wmk, setting up * on windows is a bit ...hmm... you know
1310: [20:42:20] <Pyromanik> :P
1311: [20:42:23] <r3v3rb> Pyromanik, i can hold comfortably one handed and read the news on it for extended times :)
1312: [20:42:26] <wmk> PITx
1313: [20:42:28] <Pyromanik> well * that is environment driven.
1314: [20:42:31] * mobiusnz1 quit (Quit: Leaving.)
1315: [20:42:32] <Pyromanik> indeed.
1316: [20:42:45] * Ryan-Toast quit (Quit: Ryan-Toast)
1317: [20:42:58] <Pyromanik> r3v3rb, at 12"? Hmm
1318: [20:43:10] <Pyromanik> but then again... reading news :<
1319: [20:43:15] <Pyromanik> No such thing r3v3rb !
1320: [20:43:21] <r3v3rb> yep, next to wifes ipad there's not a lot in it
1321: [20:43:46] <Pyromanik> there's just "shit we made up today... which may or may not be loosely related to some stuff that actually happened."
1322: [20:43:49] <r3v3rb> slightly thicker but her ipad cannot play arma3 my surface can ;)
1323: [20:43:56] <Pyromanik> oh really?
1324: [20:44:24] * Ryan-Toast has joined #silverstripe
1325: [20:45:16] <r3v3rb> oh really :) fullscreen - rendering set to 75% its awesome
1326: [20:45:21] <r3v3rb> runs at 30fps
1327: [20:45:45] <Pyromanik> heh. What is in behind it?
1328: [20:46:03] <r3v3rb> i've got i5, 8gb, 256gb SSD
1329: [20:46:09] <Pyromanik> oic, i5
1330: [20:46:11] <Pyromanik> that explains.
1331: [20:46:15] <Pyromanik> how is battery life?
1332: [20:46:18] <r3v3rb> but there is i& too, but heard about cooling issues
1333: [20:46:29] <r3v3rb> i7 even
1334: [20:46:32] <Pyromanik> and how thick is it/
1335: [20:46:36] <Pyromanik> ? even
1336: [20:46:55] <r3v3rb> battery been on and running for 3hr meeting this morning, lid closed till 6pm and been on since then
1337: [20:48:47] <r3v3rb> arghh, how did codekit on osx deal with @import "foundation" in app.scss and find it in bower_components/foundation/scss/foundation
1338: [20:48:56] <r3v3rb> nothign on the pc seems capable
1339: [20:49:01] <r3v3rb> cli or gui
1340: [20:49:08] <Pyromanik> install linux on it xD
1341: [20:49:54] <r3v3rb> Pyromanik, did that, had ubuntu on it - was great but couldnt get type cover sorted - osx usb keyboard not recognised so fooking hard to recompile kernel with supprt
1342: [20:50:15] <r3v3rb> didn't fancy typing everything into the keymap app
1343: [20:50:49] <Pyromanik> lame :<
1344: [20:51:00] <Pyromanik> manjaro, that's the ticket
1345: [20:51:07] <Pyromanik> none of this ubuntu nonsense
1346: [20:51:49] <wmk> when will 3.1.11 be released?
1347: [20:54:32] * micmania1 has joined #silverstripe
1348: [20:55:17] * novaweb has joined #silverstripe
1349: [20:55:41] <novaweb> Hey Friends… Git Visualisation tool for OS X?
1350: [20:55:43] <Pyromanik> when it's ready?
1351: [20:55:54] <Pyromanik> novaweb, nfi :<
1352: [20:56:16] <wmk> Pyromanik, no - yes - oooh!
1353: [20:56:56] <r3v3rb> Pyromanik, but ubuntu supported the touch screen, wifi, bluetooth etc
1354: [20:57:25] * novaweb quit (Client Quit)
1355: [20:57:26] <r3v3rb> i guess it might just be kernel so any should...
1356: [20:58:11] <Pyromanik> r3v3rb, yeah I imagine it's all pretty standard stuff since it sounds like basically a normal x86 machine stuffed into a 6mm thick shell, including screen.
1357: [20:58:44] * mobiusnz has joined #silverstripe
1358: [21:00:05] <r3v3rb> Pyromanik, it is indeed
1359: [21:00:15] <r3v3rb> nothing fancy at all, just nicely packaged
1360: [21:00:27] * muskie9 is now known as muskie9_afk
1361: [21:00:30] <Pyromanik> for how much r3v3rb ?
1362: [21:00:46] <r3v3rb> so close! koala got an almost compiled scss foundation file done
1363: [21:01:00] <Pyromanik> koala?
1364: [21:01:12] <Pyromanik> those things make some fucked up noises.
1365: [21:01:14] <r3v3rb> Pyromanik, i got the i5 256gb, type cover, slip case and 1yr office for £1,109
1366: [21:01:29] <r3v3rb> hellofalot
1367: [21:02:00] <r3v3rb> but what else comes close with detachable keyboard and guaranteed win10 support
1368: [21:02:11] <Pyromanik> oic, like... more than normal laptop price.
1369: [21:02:14] <Pyromanik> Well I see
1370: [21:02:24] <Pyromanik> https://www.youtube.com/watch?v=XPdaU9A-RqU
1371: [21:02:36] <Pyromanik> makes much more sense now
1372: [21:03:51] * muskie9_afk is now known as muskie9
1373: [21:16:04] <r3v3rb> holy shit its alive! compilation complete
1374: [21:16:14] <r3v3rb> noisy koala's worked
1375: [21:16:37] <r3v3rb> i have a fully working dev tablet ;) Pyromanik
1376: [21:19:33] * Azure quit (Quit: Blue Sky Fish)
1377: [21:21:58] * r3v3rb does backup of system
1378: [21:22:05] * r3v3rb quit (Quit: Leaving)
1379: [21:22:21] * Stomach has joined #silverstripe
1380: [21:22:40] * r3v3rb has joined #silverstripe
1381: [21:22:54] <r3v3rb> poop what happened then?
1382: [21:23:24] <MichalKleiner|aw> hey guys :) anyone using Jenkins for php project deployment? gathering another opinions :-D
1383: [21:23:25] * muskie9 is now known as muskie9_afk
1384: [21:23:29] * MichalKleiner|aw is now known as MichalKleiner
1385: [21:25:43] * mahfuz has joined #silverstripe
1386: [21:26:12] * muskie9_afk is now known as muskie9
1387: [21:27:10] * Azure has joined #silverstripe
1388: [21:33:17] * r_hector quit (Quit: Leaving.)
1389: [21:35:41] <r3v3rb> time to bed
1390: [21:35:44] <r3v3rb> night all
1391: [21:36:12] <catcher> hey MichalKleiner, I've been considering it when time allows, but not yet.
1392: [21:36:24] <catcher> at least for dev/staging.
1393: [21:36:58] <MichalKleiner> I tried heaps of CI/CD services and everything has something good and something bad so can't decide.. there's obviously nothing like the best solution in this area
1394: [21:37:11] * Werner_2_ has joined #silverstripe
1395: [21:37:26] * wmk quit (Read error: Connection reset by peer)
1396: [21:37:29] <MichalKleiner> either it's hard to set up, hard to install, expensive, don't allow selective rules for different branches etc etc.
1397: [21:37:37] * phil_benoit quit (Ping timeout: 246 seconds)
1398: [21:38:53] * r3v3rb quit (Read error: Connection reset by peer)
1399: [21:39:08] <MichalKleiner> nothing solves the last mile, I have that done by Fabric, that's ok, but even to set up a project auto build on commit from bitbucket in jenkins.. too difficult
1400: [21:45:19] * JamieTotten has joined #silverstripe
1401: [21:46:49] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
1402: [21:47:00] <JamieTotten> has anyone ever seen when in the WYSIWYG editor, you make a change and hit PUBLISH and you receive a confirmation message of SAVED and the Content area reverts back to what was the pre-save?
1403: [21:47:02] <Pyromanik> MichalKleiner, SphereSilver pointed me at https://www.phptesting.org/ once
1404: [21:47:10] <Pyromanik> seemed kinda cool, haven't tried it though.
1405: [21:47:33] <Pyromanik> JamieTotten, save isn't working.
1406: [21:47:42] <Pyromanik> better question is why does it return 200OK
1407: [21:48:25] <MichalKleiner> thanks Pyromanik, will put it on the list to try
1408: [21:48:29] <JamieTotten> it's pretty strange. this is on a site that's been in production for over a year and now they aren't able to sae
1409: [21:48:35] <JamieTotten> it's pretty strange. this is on a site that's been in production for over a year and now they aren't able to save
1410: [21:48:57] <Pyromanik> JamieTotten, well then that means that something changed recently.
1411: [21:49:00] <Pyromanik> is this shared hosting?
1412: [21:49:06] <JamieTotten> yes.
1413: [21:49:17] <Pyromanik> then your hoster broke it.
1414: [21:49:18] <MichalKleiner> JamieTotten check the browser console's network tab to see what the ajax call and response are
1415: [21:49:18] <Pyromanik> probably
1416: [21:49:22] <Pyromanik> through system maintenance
1417: [21:49:33] <Pyromanik> like say... upgrading PHP
1418: [21:49:39] <Pyromanik> or apache
1419: [21:49:40] <Pyromanik> or both
1420: [21:49:44] <Pyromanik> or the database
1421: [21:49:48] <Pyromanik> or... who knows
1422: [21:49:56] <Pyromanik> don't use shared hosting :<
1423: [21:50:19] <JamieTotten> Pyromanik thanks! Those are great thoughts! I've submitted a ticket to the host
1424: [21:50:33] <Pyromanik> individual cloud server instances are so cheap these days.
1425: [21:50:40] * joelpittet has joined #silverstripe
1426: [21:50:43] <JamieTotten> Pyromanik haha, true. Though a reality for smaller clients
1427: [21:50:45] <Pyromanik> JamieTotten, it's likely that some change recently did it.
1428: [21:51:09] <Pyromanik> JamieTotten, if by smaller you mean "cannot afford $1 a day" or similar... I guess.
1429: [21:51:25] <JamieTotten> also a good point
1430: [21:51:48] <JamieTotten> Pyromanik thanks for the ideas, i'll give them a try
1431: [21:52:09] <Pyromanik> JamieTotten, technically they should probably have notified you of upgrades.
1432: [21:52:13] <Pyromanik> before undertaking them.
1433: [21:52:20] <Pyromanik> You may have a note in your inbox
1434: [21:52:55] <Pyromanik> but for everything to work fine and then suddenly not, and if nothing has changed at system level, then it must be server level.
1435: [21:53:21] <Pyromanik> process of elimination; good enough for sherlock holmes, good enough for me :>
1436: [21:57:02] <Pyromanik> JamieTotten, https://www.linode.com/pricing
1437: [21:57:05] <Pyromanik> for example.
1438: [21:57:25] <Pyromanik> Another option is to get a good enough server, and host all the sites yourself in a shared sort of environment
1439: [21:57:34] <Pyromanik> of course you'll need some server admin skills though
1440: [21:58:12] <JamieTotten> man that's cheap! Thanks Pyromanik
1441: [21:58:17] <Pyromanik> hosts can generally do a deal for managed services (VPS or similar) on that kind of thing though, then you have much more control over the environment and these nasty surprises don't happen!
1442: [21:58:35] <Pyromanik> JamieTotten, so y'know... sometimes "omg too expensive" isn't really actually a thing.
1443: [21:58:47] <Pyromanik> large upfront, but cheaper overall, etc.
1444: [21:59:00] * catcher quit (Quit: Leaving)
1445: [21:59:13] <JamieTotten> Pyromanik - i'm looking at the network panel and it's showing 200s all around.
1446: [22:00:06] <Pyromanik> JamieTotten, iirc after a save the page content is reloaded (for some reason) - it seems that if it's returning the previous state, then the save isn't acutally working.
1447: [22:00:16] <Pyromanik> thus 200OK seems weird.
1448: [22:01:27] <JamieTotten> agreed.
1449: [22:01:34] <ss-helper> Not showing old pages - http://www.silverstripe.org/community/forums/general-questions/show/101375
1450: [22:01:35] <ss-helper> Blank screen after creating a new page? - http://www.silverstripe.org/community/forums/content-editor-discussions/show/101374
1451: [22:02:19] * jedateach has left #silverstripe
1452: [22:06:15] * antmas has joined #silverstripe
1453: [22:07:14] <antmas> morning all o/
1454: [22:08:51] <Stomach> hey antmas \o
1455: [22:08:55] <Ryan-Toast> \0
1456: [22:10:48] * superspring quit (Ping timeout: 276 seconds)
1457: [22:11:59] <Pyromanik> thus 200OK seems weird.
1458: [22:12:03] <Pyromanik> \o
1459: [22:12:17] <Pyromanik> o/
1460: [22:15:23] * superspring has joined #silverstripe
1461: [22:16:33] <Hailwood> Hi guys, if I have a manymany relation, that is actually between three DO's how do I setup the many_many_extraFields? basically a Page many_many Document, a Document belongs_many_many Page, but the relation has a Category. so the relation table should look like PageID,DocumentID,CategoryID do I just add CategoryID as the many_many_extraFields field and populate that manually?
1462: [22:16:40] <ss-helper> Re: Blank screen after creating a new page? - http://www.silverstripe.org/community/forums/content-editor-discussions/show/101374#post400786
1463: [22:18:50] * DimiStripe quit (Quit: DimiStripe)
1464: [22:20:17] * willr has joined #silverstripe
1465: [22:21:14] * spronk2 has joined #silverstripe
1466: [22:27:04] <Pyromanik> Hailwood, sounds complex. But yeah, I guess so.
1467: [22:27:25] <Pyromanik> would it not be better with an intermediary object?
1468: [22:27:26] <Pyromanik> idk.
1469: [22:28:37] <Pyromanik> why does the relation have a category, rather than the document?
1470: [22:29:32] * Werner_2_ quit (Ping timeout: 246 seconds)
1471: [22:30:24] <Pyromanik> Interesting usecase though. I guess it makes more sense if you think of it as people manymany people, the relationship would be colleague, aquaintence, friend, lover, etc.
1472: [22:30:30] <Pyromanik> as to how they know each other.
1473: [22:31:10] <Pyromanik> Then something graph based like OrientDB or Neo4j would be of good use... but SS dun work that way.
1474: [22:31:17] * Pyromanik shrugs
1475: [22:31:20] <Pyromanik> bed time 'n stuff
1476: [22:31:21] * Pyromanik quit (Quit: Leaving)
1477: [22:31:40] <ss-helper> Re: Blank screen after creating a new page? - http://www.silverstripe.org/community/forums/content-editor-discussions/show/101374#post400787
1478: [22:44:57] <Hailwood> I have an extension to be applied to a class - Would I use $this->owner->ClassName to get the class name (need it for getting a config value)
1479: [22:46:43] <ss-helper> Re: Blank screen after creating a new page? - http://www.silverstripe.org/community/forums/content-editor-discussions/show/101374#post400788
1480: [22:51:39] * muskie9 is now known as muskie9_afk
1481: [22:54:46] * novaweb has joined #silverstripe
1482: [23:00:13] * JamieTotten quit (Ping timeout: 246 seconds)
1483: [23:00:38] <Ryan-Toast> Hailwood: That would get the parent’s ClassName
1484: [23:01:44] * matt-in-a-hat has joined #silverstripe
1485: [23:01:47] <ss-helper> Re: Blank screen after creating a new page? - http://www.silverstripe.org/community/forums/content-editor-discussions/show/101374#post400790
1486: [23:01:47] <ss-helper> Re: Blank screen after creating a new page? - http://www.silverstripe.org/community/forums/content-editor-discussions/show/101374#post400789
1487: [23:03:35] <Hailwood> Ryan-Toast, Parent being the object the extension is attached to? Basically if my Yaml has (format with your mind!) "SomeClassType: extensions: - MyExtension" then inside MyExtension I want to get the string "SomeClassType"
1488: [23:04:04] <Ryan-Toast> Hailwood: then yeah, you would use that.
1489: [23:06:04] * muskie9_afk is now known as muskie9
1490: [23:06:12] <matt-in-a-hat> Hi there. I have a cron job that imports some data and writes it to a file in a folder under assets, and afterwards it also runs filesystem sync on that folder. I seem to be getting some kind of cache issue with the file though, it seems (even if I use all of the no-cache headers) when I request it in the browser it responds with the correct content length header, but gives me an old version of the file content.
1491: [23:07:25] <matt-in-a-hat> Is there any way I can tell silverstripe not to cache a specific asset file? Where is that caching happening? Is there a way of using the File (the virtual copy in the database) to tell it that it has been updated and should send the new content?
1492: [23:08:10] <Ryan-Toast> matt-in-a-hat: I don’t have an answer to your issue, but I just wanted to say I like your name.
1493: [23:09:23] <antmas> ss23 https://www.youtube.com/watch?v=VQZrCvc7VhI&list=PLwbcZ4DFb_RXrR9_DMzkPOI4en1S1AUyw&feature=player_detailpage
1494: [23:12:48] <matt-in-a-hat> heh cheers.
1495: [23:13:12] <adrexia> running filesystem sync is quite intensive
1496: [23:13:33] * novaweb quit (Ping timeout: 244 seconds)
1497: [23:13:40] * willr quit (Quit: willr)
1498: [23:13:43] <adrexia> and can be dangerous depending on when you are running it
1499: [23:15:50] * Sticks has joined #silverstripe
1500: [23:16:51] <ss-helper> Re: Blank screen after creating a new page? - http://www.silverstripe.org/community/forums/content-editor-discussions/show/101374#post400791
1501: [23:17:59] <matt-in-a-hat> I tried replacing the sync with calling File::find and then file->write after updating the content on disk, but no change
1502: [23:17:59] * muskie9 is now known as muskie9_afk
1503: [23:18:33] <marvanni> !mute ss-helper or something
1504: [23:19:14] <matt-in-a-hat> What module does the asset caching?
1505: [23:20:03] <Hailwood> I've had conflicting information - should I use "has_one => 'Page'" or "has_one => 'SiteTree'"
1506: [23:21:05] <Ryan-Toast> Hailwood: depends on what the context is.
1507: [23:21:27] <Ryan-Toast> Hailwood: SiteTree for global, Page for well just that page
1508: [23:22:03] <marvanni> I always use Page. I never extend from SiteTree directly
1509: [23:22:33] <Ryan-Toast> marvanni: SiteTree is used when you’lll controller the DO from a ModelAdmin
1510: [23:22:45] <Ryan-Toast> control**
1511: [23:23:00] <marvanni> why?
1512: [23:23:16] <marvanni> SiteBlock has_one Page will work as well..
1513: [23:23:25] <Ryan-Toast> If you have multiple sitetrees
1514: [23:23:27] <marvanni> also in a ModelAdmin
1515: [23:23:52] <Ryan-Toast> Not everyone uses content blocks.
1516: [23:24:02] <marvanni> when do you have multiple SiteTree’s?
1517: [23:24:12] <Ryan-Toast> Subsites.
1518: [23:24:27] <antmas> woah someone mentioned subsites
1519: [23:24:37] * antmas looks at spronk2 ^.^
1520: [23:24:40] <spronk2> FUCK OFF
1521: [23:24:44] <spronk2> I'M DONE WITH THIS SHIT
1522: [23:24:45] <spronk2> :p
1523: [23:25:08] <marvanni> still, than has_one Page will still work, since the Subsite will filter the results
1524: [23:25:11] <antmas> haha
1525: [23:29:12] * muskie9_afk is now known as muskie9
1526: [23:32:22] * willr has joined #silverstripe
1527: [23:35:09] <Hailwood> Using GridFieldAddNewInlineButton is there any way to alter the fields?
1528: [23:41:13] * marvanni quit (Quit: marvanni)
1529: [23:46:10] * muskie9 is now known as muskie9_afk
1530: [23:46:54] * willr quit (Quit: willr)
1531: [23:52:59] * travis-ci has joined #silverstripe
1532: [23:53:00] <travis-ci> silverstripe/silverstripe-framework#4452 (3.1 - 2b1e5d1 : Daniel Hensby): The build passed.
1533: [23:53:00] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/c1a7a8d7bdeb...2b1e5d13cfc9
1534: [23:53:00] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/54951673
1535: [23:53:00] * travis-ci has left #silverstripe
1536: [23:53:53] <MichalKleiner> Hailwood: do you have some easier questions? :-D
1537: [23:54:03] * willr has joined #silverstripe
1538: [23:55:44] <Hailwood> MichalKleiner, Haha if it's easy I can work it out myself - I did actually work out the previous question reading the docs though ha!
1539: [23:56:29] * MichalKl_ has joined #silverstripe
1540: [23:56:39] * MichalKl_ is now known as MichalKleiner|

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