#silverstripe IRC Log

IRC log for 17 June 2014

All timestamps are in UTC.

1: [00:04:12] * joelpittet quit ()
2: [00:11:06] <Ryan-Toast> Trying to convince purplerockscissors to use SS
3: [00:12:27] <UncleCheese> userforms is fucked beyond belef, am i right?
4: [00:18:46] <unsignedint> UncleCheese: probably, I stopped using it a long time ago
5: [00:18:54] <unsignedint> but that doesnt mean anything
6: [00:18:58] <UncleCheese> yeah, never a big fan of giving clients this much control
7: [00:20:08] <unsignedint> hey does anyone know why SS would be doing the good ol 'None of these templates can be found in theme'? In my DataObject getCMSFields(), I am returning a new LiteralField("name", $this->renderWith("Page")) (because I know Page.ss definitely exists) but its still throwing the error
8: [00:21:07] <unsignedint> this is infuriating me. there appears to be no workable way to load a template, populate it with some data, and render it to a string
9: [00:23:04] <guzzlefry> hm
10: [00:25:28] <markcl> I get this warning: [User Warning] DataObject::__construct passed The value 'ThumbnailImage'. It's supposed to be passed an array, taken straight from the database. Perhaps you should use DataList::create()->First(); instead? GET /dev/build
11: [00:25:50] <guzzlefry> unsignedint: do you need to pass a relative path?
12: [00:26:04] <markcl> My code is: http://pastebin.com/KkEWvcDr
13: [00:26:13] <unsignedint> guzzlefry: how do I find that out?
14: [00:26:16] <markcl> What am I doing wrong?
15: [00:26:44] <guzzlefry> unsignedint: I usually read the code, since docs are lacking.
16: [00:27:14] <unsignedint> guzzlefry: if I pass an absolute path, it just says "filemtime() stat failed"
17: [00:27:19] <unsignedint> but the file exists!
18: [00:27:30] <guzzlefry> permissions maybe?
19: [00:28:23] <unsignedint> actually wrong path, it found the file but only if I specified an absolute path. I just want to be able to specify a path relative to the current theme folder
20: [00:28:48] <unsignedint> although I suppose I can make do with an absolute path of I have to, but it seems wrong
21: [00:31:09] <irogue_> UncleCheese: i make editable forms through GridField. allow the content author to add fields and the label of them, but it's locked down to what fieldtypes I want them to be able to use etc
22: [00:31:23] * jenniferaslan quit (Quit: jenniferaslan has left the room)
23: [00:31:39] <irogue_> and often the output differs depending on what options they choose in the field which is something you can't really do with userforms
24: [00:32:12] <irogue_> but yeah I'm all about giving the client only as much control as they need, cos otherwise they'll find a way to fuck it up
25: [00:32:23] <Stomach> i like to give the client no control personally
26: [00:32:59] <UncleCheese> +1
27: [00:33:00] <Stomach> markcl, images aren't database fields, try moving it to a $has_one instead
28: [00:33:07] <UncleCheese> "here, have 550 html files"
29: [00:33:15] <UncleCheese> that's how much i trust you
30: [00:33:15] <unsignedint> i give the clients all the control but I scare them with what the consequences will be if they fuck things up
31: [00:33:22] <Stomach> thus the catalogmanager module and singlepageadmin stuff, get them right out of the site tree
32: [00:33:41] <UncleCheese> there's definitely something to be said for over-cmsing
33: [00:33:59] <UncleCheese> makes an overwhelming experience for the client, and opens up more opportunities for things to break
34: [00:34:46] <Stomach> "our warranty covers our code, not your stupidity" IRL quote from my manager in dunedin to a client on the phone
35: [00:34:46] <UncleCheese> a lot of project managers i've worked for have followed the mantra that every piece of text and image on every page should be editable
36: [00:34:53] <UncleCheese> nice
37: [00:34:58] <UncleCheese> wait
38: [00:34:59] <unsignedint> Stomach: sounds like a good manager
39: [00:35:03] <UncleCheese> he said that to a client?!
40: [00:35:07] <Stomach> yes
41: [00:35:10] <UncleCheese> wtf
42: [00:35:24] <UncleCheese> i guess he doesn't have a vested interest in like.. staying in business?
43: [00:35:25] <Stomach> you reach the end of the line sometimes
44: [00:35:31] <irogue_> yep
45: [00:35:32] <Stomach> that was the end of his line
46: [00:35:44] <UncleCheese> you can reach the end of the line, but you don't need to burn down the town
47: [00:35:47] <unsignedint> the client had probably been doing stupid shit and harassing him for months
48: [00:35:55] <UncleCheese> you just say, i think ti's time we part ways
49: [00:36:10] <Stomach> it was a small cafe website in Dunedin
50: [00:36:14] <Stomach> don't think he gave a shit tbh
51: [00:36:49] <Stomach> and UncleCheese I agree with you that over CMS is a pain in the ass
52: [00:37:11] <Stomach> especially when nothing gets changed on the website apart from adding news once every now and then
53: [00:37:15] <Stomach> >_<
54: [00:38:39] <Stomach> the means does not justify the end
55: [00:47:52] <irogue_> [12:34:46] <Stomach> "our warranty covers our code, not your stupidity" IRL quote from my manager in dunedin to a client on the phone
56: [00:47:57] <irogue_> i've said similar things many times
57: [00:48:36] <Stomach> i think about my stupidity daily
58: [00:48:41] <irogue_> most clients don't care and aren't offended by it
59: [00:49:25] <Stomach> sorta reinforces things doesnt it
60: [00:50:34] * markcl quit (Quit: Page closed)
61: [00:52:45] <Stomach> is there an easy way to filter a mysql date by its month?
62: [00:52:59] <guzzlefry> should be
63: [00:53:55] <guzzlefry> Stomach: WHERE MONTH(Created) = 2;
64: [00:54:07] <Stomach> awesome :D
65: [00:54:08] <Stomach> thanks
66: [00:54:45] <guzzlefry> np
67: [01:07:27] * spronk quit (Read error: Connection reset by peer)
68: [01:12:26] * spronk has joined #silverstripe
69: [01:14:11] * DesignerX has joined #silverstripe
70: [01:15:21] * Tanger has joined #silverstripe
71: [01:25:58] <Ryan-Toast> Can’t get to admin area, returning a 500 error, but the front end is fine. Any ideas? Permissions all seem to be fine.
72: [01:34:09] <zippy__> Ryan-Toast: check the error log (turn on debug mode), might be an error in a getCMSFields or something
73: [01:34:31] <Ryan-Toast> zippy__: Will do
74: [01:38:58] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
75: [01:48:08] * UncleCheese has joined #silverstripe
76: [01:56:46] * travis-ci has joined #silverstripe
77: [01:56:46] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2712 (3.1 - b4bfb75 : Sean Harvey): The build passed.
78: [01:56:46] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/91afa4ac6125...b4bfb75a0d92
79: [01:56:46] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/27735892
80: [01:56:46] * travis-ci has left #silverstripe
81: [02:05:33] * UncleCheese quit (Ping timeout: 272 seconds)
82: [02:24:26] * anselmdk has joined #silverstripe
83: [02:25:38] * anselmdk quit (Client Quit)
84: [02:37:28] * AdriAn_s has joined #silverstripe
85: [02:37:47] <AdriAn_s> hey, is it possible to do a while loop in a template?
86: [02:39:05] <irogue_> AdriAn_s: nope. what could you even while in a template?
87: [02:39:44] <AdriAn_s> i have an integer and want to show that many number of images on a tempalte
88: [02:39:54] <AdriAn_s> so if its 4 I want to show 4 of an image
89: [02:40:07] <AdriAn_s> well 4 copies of it
90: [02:41:48] <Stomach> you can achieve that with a for loop
91: [02:42:38] <AdriAn_s> ok so you can for loop in a template? what syntax is it?
92: [02:43:11] <Stomach> no, can't do it in the template, but you could write a function on your controller easily enough
93: [02:44:40] <AdriAn_s> oh ok, thanks
94: [02:44:42] <zippy__> AdriAn_s: what are you actually trying to do, show the exact same image X times?
95: [02:45:51] <AdriAn_s> well it is for a property star rating
96: [02:46:04] <AdriAn_s> so want to show 4 stars for a 4 star proepry and 2 for a 2 star
97: [02:46:21] <AdriAn_s> and i am actually using font awesome so it needs to duplicate an i tag
98: [02:48:17] <AdriAn_s> and I have the star rating integer on my page type
99: [02:50:32] <zippy__> what you could do is have a function called, DisplayStars() which does the logic of building an array of stars, and then return that like return new ArrayList($stars)
100: [02:50:35] <zippy__> and loop that in the template
101: [02:50:58] <Ryan-Toast> zippy__: Turned out there was a weird PHP error by the way.
102: [02:51:06] <Ryan-Toast> it’s an old hosting account.
103: [02:52:22] <AdriAn_s> zippy__: thanks il give it a go
104: [02:53:54] <zippy__> AdriAn_s: http://nz1.php.net/array_fill will help
105: [02:57:19] <zippy__> AdriAn_s: http://pastebin.com/Ybfkw2ej might do it, maybe
106: [03:00:26] * travis-ci has joined #silverstripe
107: [03:00:27] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2713 (3.1 - 11cc27f : Damian Mooyman): The build passed.
108: [03:00:27] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/b4bfb75a0d92...11cc27f700a0
109: [03:00:27] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/27738560
110: [03:00:27] * travis-ci has left #silverstripe
111: [03:05:39] * superspring quit (Read error: Connection reset by peer)
112: [03:07:20] * superspring has joined #silverstripe
113: [03:07:25] <AdriAn_s> zippy__: you legend! worked like a charm!! :D cheers
114: [03:07:53] <zippy__> AdriAn_s: if you don't want the image path in the php, then just change the $Me to the image path there
115: [03:07:54] <zippy__> either or
116: [03:18:33] * cloph quit (Ping timeout: 240 seconds)
117: [03:18:38] * cloph_away has joined #silverstripe
118: [03:24:17] * joelpittet has joined #silverstripe
119: [03:33:33] * srikanth has joined #silverstripe
120: [03:34:17] <srikanth> does map function no longer sets default on a dropdown field?
121: [03:34:27] <Ryan-Toast> “I’m a developer, not a designer” http://gfycat.com/PhysicalDeliriousAchillestang
122: [03:34:36] <zippy__> srikanth: did map ever set a default?
123: [03:34:49] <srikanth> zippy__, I am working with some old code
124: [03:35:11] <srikanth> looks like it used to
125: [03:35:56] * FrozenFire quit (Ping timeout: 260 seconds)
126: [03:56:35] * UncleCheese has joined #silverstripe
127: [03:57:28] <guzzlefry> 2.4 or 3.x?
128: [03:57:52] <guzzlefry> at least as far as 3.x is concerned, I'm pretty sure it never set a default.
129: [03:57:57] <UncleCheese> is there a way to have self-referential config settings?
130: [03:58:09] <UncleCheese> constructor: {0: <some other setting> }
131: [03:58:30] <srikanth> guzzlefry, it was 2.4
132: [03:58:45] <srikanth> guzzlefry, nevermind I rewrote the code to reflect 3.1
133: [03:59:00] * FrozenFire has joined #silverstripe
134: [03:59:22] * Kingy is now known as Kingy[a]
135: [04:00:40] <zippy__> UncleCheese: ask Sam? :)
136: [04:00:48] <UncleCheese> ha
137: [04:00:59] <UncleCheese> he's only 15 metres from me
138: [04:01:31] <irogue_> and Hamish is about 10 from me
139: [04:02:01] <irogue_> but we don't interrupt hamish, he can be scary :P
140: [04:02:33] * caamic30 has joined #silverstripe
141: [04:02:48] <UncleCheese> actually, this is kind of a yaml question more than anything
142: [04:02:54] <UncleCheese> hamish would definitely know
143: [04:08:37] <UncleCheese> what's the difference between properties and dependencies?
144: [04:11:30] <irogue_> UncleCheese: in what context?
145: [04:11:36] <UncleCheese> injector
146: [04:11:55] <UncleCheese> if i want to provide a service to a controller, what's the difference between:
147: [04:12:07] <UncleCheese> properties: { SomeService: %$SomeService}
148: [04:12:12] <UncleCheese> and dependencies.. {...}
149: [04:13:32] <irogue_> oh, i know approximately nothing about injector
150: [04:13:43] * Stomach puts his hand up as also useless to you
151: [04:14:11] <Stomach> it was written by "marcus@silverstripe.com" so you can probably email him and ask?
152: [04:15:09] <irogue_> he's one of those weird aussie folk
153: [04:15:24] <irogue_> we don't really talk to them :P
154: [04:16:12] <irogue_> UncleCheese: I'd ask in SS Central, you might be lucky and get a reply from Hamish
155: [04:16:46] <UncleCheese> how has injector become the ugly stepchild of silverstripe?
156: [04:16:51] <zippy__> if UncleCheese asks, maybe irogue will take off his headphones and prod hamish - a co-ordinated effort
157: [04:17:02] <UncleCheese> it should be one of the most prized and lauded components
158: [04:17:19] <Stomach> UncleCheese, because nobody understands it nor uses it and there is no documentation to explain it
159: [04:17:30] <Stomach> so we don't use it in fear of fucking everything up
160: [04:17:37] <UncleCheese> hmm
161: [04:17:41] <UncleCheese> there is an entry in the docs
162: [04:17:47] <Ryan-Toast> Unclecheese: what Stomach said.
163: [04:18:12] <Stomach> and the way which it can be used is so variant that its impossible to tell from code samples what the fudge is actually going on
164: [04:18:41] <Stomach> I understand symfony DI and pimple DI and how and what each thing I type does
165: [04:18:59] <Stomach> with the SS injector, you can't even tell the difference between properties and dependencies
166: [04:19:04] <Stomach> and you _work_ for silverstripe :P
167: [04:19:44] <Stomach> actually Damian probably knows, irogue_ you should ask him
168: [04:39:04] <irogue_> UncleCheese: did you end up finding an answer?
169: [04:39:09] <UncleCheese> nah
170: [04:39:15] <UncleCheese> just switched to Pimple
171: [04:42:23] * irogue_ pops it
172: [04:42:36] <guzzlefry> :/
173: [04:44:25] <Stomach> ugh silently failing forms i fucking hate you
174: [04:45:19] * simon_w|work has joined #silverstripe
175: [04:47:00] <simon_w|work> It's ame!
176: [04:47:09] <Stomach> hey mario
177: [04:47:13] <Stomach> found peach yet?
178: [04:47:23] <simon_w|work> She's in bed
179: [04:47:34] <Stomach> reckless
180: [04:47:38] <Stomach> bowser will get her
181: [04:49:29] <simon_w|work> So, what happened without me in here?
182: [04:50:22] <simon_w|work> Also, three screens!
183: [04:50:26] <simon_w|work> I like this place
184: [04:51:56] <irogue_> simon_w|work: we all got sad
185: [04:52:15] * simon_w|work knew it!
186: [04:52:35] <simon_w|work> Also, I've already had a PR merged
187: [04:53:07] <Stomach> oh and there was discussion about how to use injector
188: [04:53:19] <Stomach> and we decided that to use injector you should not use injector and use pimple instead
189: [04:55:12] * zippy__ quit (Ping timeout: 255 seconds)
190: [04:56:03] <simon_w|work> To use injector, you should rewrite it so people can follow how it works?
191: [04:56:17] * zippy__ has joined #silverstripe
192: [04:56:30] <zippy__> simon_w|work: 3 screens!
193: [04:56:42] <Stomach> thats pretty much the problem, no understanding and no time to understand (or more, attempt to understand)
194: [04:58:59] * Ryan-Toast quit (Quit: Ryan-Toast)
195: [05:01:13] * camfindlay quit (Quit: camfindlay)
196: [05:03:01] * nickmolhoek quit (Quit: nickmolhoek)
197: [05:15:36] <spronk> anyone here used solr, fulltextsearch, and result groups?
198: [05:16:29] * novaweb has joined #silverstripe
199: [05:16:51] <Zauberfisch> spronk: ^sorl and fulltextsearch combined? :O
200: [05:17:01] <spronk> fulltextsearch via solr
201: [05:17:18] <Zauberfisch> ah, right
202: [05:17:21] <Zauberfisch> I do
203: [05:18:24] <Zauberfisch> ah, wait
204: [05:18:24] <Zauberfisch> no
205: [05:18:30] <Zauberfisch> I used lucene
206: [05:18:32] <novaweb> Any git masters in the house? I have just migrated a site to live, using git submodule for the first time. Composer is pulling all the correct framework files, git is pulling the correct custom files, including .gitmodules…. inside .gitmodules I can see references to the modules but they are not checking out in to my public_html folder. help? :/
207: [05:18:47] <Zauberfisch> (the php implementation of lucune)
208: [05:19:21] <novaweb> tried: git submodule foreach git checkout master
209: [05:19:32] <Zauberfisch> novaweb: git clone does not clone submodules
210: [05:19:49] <Zauberfisch> you have to either run git clone with the deep flag, or was it recursive
211: [05:19:52] <Zauberfisch> or you run:
212: [05:19:57] <Zauberfisch> $ git submodule init
213: [05:20:02] <Zauberfisch> $ git submodule update
214: [05:20:35] <irogue_> or don't submodules cos they'
215: [05:20:38] <irogue_> are horrid
216: [05:20:44] <Zauberfisch> yeah, what irogue_ said
217: [05:20:56] <guzzlefry> well, it's kind of too late. :P
218: [05:21:57] <guzzlefry> http://davidwalsh.name/git-remove-submodule <-- I used that when converting everything over to composer.
219: [05:22:33] <Zauberfisch> yeah, the greatest pain about submodules is stoping to use them :D
220: [05:23:19] <irogue_> and https://getcomposer.org/doc/05-repositories.md#vcs to be able to use composer to replace submodules
221: [05:28:35] <novaweb> Thanks guys. Was too late as I was midlaunch. Will look in to using composer in future.
222: [05:33:00] * zippy__ quit (Ping timeout: 255 seconds)
223: [05:33:08] * novaweb quit (Quit: novaweb)
224: [05:35:03] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
225: [05:42:06] * joelpittet quit ()
226: [05:48:19] * srikanth quit (Ping timeout: 240 seconds)
227: [06:17:50] * Kingy[a] is now known as Kingy
228: [06:19:40] * an_Eskimo quit (Ping timeout: 246 seconds)
229: [06:22:38] * irogue_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
230: [06:31:33] * travis-ci has joined #silverstripe
231: [06:31:34] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2715 (master - ef03dfd : Damian Mooyman): The build passed.
232: [06:31:34] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/bb03f6ba2fbe...ef03dfdd5b77
233: [06:31:34] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/27745398
234: [06:31:34] * travis-ci has left #silverstripe
235: [06:50:47] * stnvh has joined #silverstripe
236: [07:06:43] * ARNHOE has joined #silverstripe
237: [07:07:33] * guci0 has joined #silverstripe
238: [07:07:44] * Shrike_Finland has joined #silverstripe
239: [07:08:10] <guci0> Hello World from Banana's Republic ;)
240: [07:12:33] * ocm has joined #silverstripe
241: [07:12:34] * Shrike_Finland quit (Read error: No route to host)
242: [07:12:35] <ocm> howdy!
243: [07:12:41] * Shrike_Finland1 has joined #silverstripe
244: [07:16:02] * anselmdk has joined #silverstripe
245: [07:20:58] <guci0> Hi ocm
246: [07:30:17] * markcl has joined #silverstripe
247: [07:31:24] <markcl> Hi. How do I access a different Page's children from within a Page
248: [07:34:45] <guci0> Access? $Parent.Name inside template
249: [07:36:00] <ocm> shouldnt you write a controller to fetch children pages from another page
250: [07:36:03] * anselmdk quit (Quit: anselmdk)
251: [07:37:47] * camfindlay has joined #silverstripe
252: [07:38:17] * camfindlay quit (Client Quit)
253: [07:41:33] * simon_w|work quit (Quit: Leaving)
254: [07:43:45] * Alfirin has joined #silverstripe
255: [07:50:58] <Alfirin> Evening, gents
256: [07:51:48] <Alfirin> I have this bizarre ongoing problem with translatable, sometimes all my pages that have translations created from them, are labled as "modified" and won't show on the site
257: [07:52:12] <Alfirin> After I republish them all, it all works fine for a while
258: [07:54:01] <Alfirin> Has this happened to any one else or is it just me?
259: [07:58:03] * kinglozzer has joined #silverstripe
260: [08:07:25] * UncleCheese has joined #silverstripe
261: [08:16:36] * DesignerX quit (*.net *.split)
262: [08:16:38] * eagles0513875 quit (*.net *.split)
263: [08:16:42] * ajmitch quit (*.net *.split)
264: [08:16:44] * kerosene quit (*.net *.split)
265: [08:16:45] * Zauberfisch quit (*.net *.split)
266: [08:16:46] * TRB143 quit (*.net *.split)
267: [08:16:46] * guzzlefry quit (*.net *.split)
268: [08:21:11] * guzzlefry has joined #silverstripe
269: [08:21:11] * kerosene has joined #silverstripe
270: [08:21:11] * Zauberfisch has joined #silverstripe
271: [08:21:11] * TRB143 has joined #silverstripe
272: [08:21:13] * DesignerX has joined #silverstripe
273: [08:21:14] * eagles0513875 has joined #silverstripe
274: [08:21:14] * ajmitch has joined #silverstripe
275: [08:22:21] * Pygrdfldk has joined #silverstripe
276: [08:22:48] <Pygrdfldk> so Gridfield right... can that only do DataObjects?
277: [08:22:48] * Pygrdfldk quit (Changing host)
278: [08:22:49] * Pygrdfldk has joined #silverstripe
279: [08:23:08] <Pygrdfldk> or ViewableDatas... or rather requires the definition of a canView, etc>
280: [08:23:09] <Pygrdfldk> ?
281: [08:28:46] <Pygrdfldk> :< no one is here from NZ
282: [08:28:51] <Pygrdfldk> ooh, UncleCheese is.
283: [08:29:00] <UncleCheese> nope
284: [08:29:07] <UncleCheese> i'm in Orange Is the New Black Land
285: [08:29:15] <Pygrdfldk> UncleCheese: can gridfield not do things not related to DataObject?
286: [08:29:18] <Pygrdfldk> :<
287: [08:29:20] <Pygrdfldk> that's sucky.
288: [08:29:28] <UncleCheese> yeah
289: [08:29:40] <UncleCheese> there's a module that makes it work with sitetree
290: [08:30:29] <Pygrdfldk> http://api.silverstripe.org/3.1/source-class-GridField.html#342
291: [08:30:41] <Pygrdfldk> Damn you FieldHolder() :<
292: [08:30:54] <Pygrdfldk> UncleCheese: but I have ArrayData!
293: [08:30:57] <Pygrdfldk> :S
294: [08:31:46] <kinglozzer> Pygrdfldk: I've used ArrayLists before (admittedly with DataObjects), but ViewableData should work provided you just add that canView :P
295: [08:32:03] <Pygrdfldk> I just forged a Dataobject
296: [08:32:15] <kinglozzer> Pygrdfldk: Do a PR and make that include if $record->hasMethod
297: [08:32:16] <Pygrdfldk> but it's not working. "no items found"
298: [08:33:20] * DesignerX quit (*.net *.split)
299: [08:33:23] * eagles0513875 quit (*.net *.split)
300: [08:33:26] * ajmitch quit (*.net *.split)
301: [08:33:41] <kinglozzer> Pygrdfldk: Are you using an ArrayList? If so, pagination will be a bitch
302: [08:33:51] <kinglozzer> Wait
303: [08:34:02] <kinglozzer> Maybe not
304: [08:34:13] <Pygrdfldk> yeah nah just ss_list
305: [08:34:25] <kinglozzer> My example is loading stuff from an API so I had to do all sorts of weird shit
306: [08:35:34] * eagles0513875 has joined #silverstripe
307: [08:35:49] <kinglozzer> Pygrdfldk: Your own ss_list? I had to overload DataObject::get() when I did that
308: [08:36:15] <Pygrdfldk> all that's needed. but it seems to assume that items in the list are DataObject :/
309: [08:36:20] <Pygrdfldk> kinglozzer: nah, ArrayList
310: [08:38:27] <kinglozzer> Pygrdfldk: You're passing the ArrayList in? Or is this ModelAdmin or something where it's scaffolded?
311: [08:39:46] <Pygrdfldk> kinglozzer: manual build, so yeh.
312: [08:39:49] <Pygrdfldk> passing in
313: [08:40:00] <Pygrdfldk> Better than passing out right!
314: [08:40:12] <Pygrdfldk> Feel like I could do that tbh. I've had this headache since I woke up :/
315: [08:40:58] <kinglozzer> Pygrdfldk: Any GF components that could fuck it up?
316: [08:41:47] <Pygrdfldk> kinglozzer: nah, canView is hardcoded into the FieldHolder
317: [08:42:00] <Pygrdfldk> and I dont' actually have any dataObjects to display.
318: [08:42:14] <kinglozzer> oic, thought you said you had a DataObject
319: [08:42:15] <Pygrdfldk> I was trying to fake one, to test it out.
320: [08:42:19] <kinglozzer> ah
321: [08:43:02] <Pygrdfldk> DataObject::create(array( 'OrderNumber' => 1385, 'Make' => 'Hyundai', 'Model' => 'ix35' ))
322: [08:43:13] <Pygrdfldk> this results in a bit of a 'nope'
323: [08:43:23] <Pygrdfldk> well, no error, but no display.
324: [08:43:55] <Pygrdfldk> To do with it being a base class I guess.
325: [08:44:11] * DesignerX has joined #silverstripe
326: [08:44:11] * ajmitch has joined #silverstripe
327: [08:45:58] * abrdn has joined #silverstripe
328: [08:46:26] <kinglozzer> Pygrdfldk: Yeah I just looked a bit further, GridFieldDataColumns will fall back to summaryFields()
329: [08:46:43] <kinglozzer> It's definitely intended for DataObjects :P
330: [08:46:54] <kinglozzer> Do what I did - cheat and create a DataObject that's never written
331: [08:47:19] <Pygrdfldk> Yeah nah, probably not.
332: [08:47:27] <Pygrdfldk> It's front end work anyway.
333: [08:47:40] <Pygrdfldk> Cheat and don't use GridField seems better.
334: [08:48:00] <Pygrdfldk> was just curious because I've wanted to know more about GridField for a while.
335: [08:48:11] * eagles0513875 quit (Ping timeout: 252 seconds)
336: [08:48:13] <Pygrdfldk> A while being since about when 3.0 was released :P
337: [08:51:39] * eagles0513875 has joined #silverstripe
338: [08:53:15] * Liquide quit (Ping timeout: 255 seconds)
339: [08:53:24] * Liquide has joined #silverstripe
340: [08:54:58] * spronk2 has joined #silverstripe
341: [08:57:35] * micmania1 has joined #silverstripe
342: [08:58:15] <micmania1> Anybody added youtube video support to HTML editor in 2.4? Got any tips for me?
343: [08:59:18] <micmania1> Can you just use iframes?
344: [09:01:39] <ocm> I was using a shortcode for that
345: [09:01:44] <ocm> to embed youtubevideo's
346: [09:02:04] <micmania1> https://www.youtube.com/watch?v=2uOlGMkJwTE - Found this video. Nice and simple :)
347: [09:02:40] * Shrike_Finland1 quit (Quit: Leaving.)
348: [09:03:02] <ocm> in my memory tinyMCE didn't work too well with the iframe tag
349: [09:03:46] * eagles0513875 quit (Changing host)
350: [09:03:46] * eagles0513875 has joined #silverstripe
351: [09:03:46] * eagles0513875 quit (Changing host)
352: [09:03:46] * eagles0513875 has joined #silverstripe
353: [09:03:48] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
354: [09:06:34] * caamic30 quit (Read error: Connection reset by peer)
355: [09:06:51] <Pygrdfldk> micmania1: you can just past the link in.
356: [09:06:53] <Pygrdfldk> done.
357: [09:07:11] <Pygrdfldk> unless your'e actually using 2.4
358: [09:07:24] <Pygrdfldk> click the media button, see other tabs in popup.
359: [09:07:38] <Pygrdfldk> ocm: ^
360: [09:07:54] <micmania1> Pygrdfldk: yeah, its 3.4
361: [09:07:55] <micmania1> 2.4
362: [09:08:14] <Pygrdfldk> micmania1: ah. Then yeh, gotta build it in. Register shortcode easiest.
363: [09:08:40] <micmania1> I'm just saying paste in html
364: [09:08:46] <micmania1> we manage all the content in house
365: [09:12:18] * caamic30 has joined #silverstripe
366: [09:12:52] * simon_w|air has joined #silverstripe
367: [09:13:21] * cloph_away is now known as cloph
368: [09:15:50] * Kingy is now known as Kingy[a]
369: [09:16:05] <ocm> Pygrdflclk, the shortcode for youtube was for 2.4, not 3
370: [09:16:23] <ocm> works pasting a youtube link in 2.4 to embed it?
371: [09:16:38] <micmania1> ocm: nah, it doesn't
372: [09:20:40] * UncleCheese has joined #silverstripe
373: [09:20:41] <caamic30> have you guys integrated the multilingual module? I’m having a problem with pages that has parent page
374: [09:21:07] <caamic30> when navigating to the child page it just return ‘page not found’
375: [09:21:23] * superspring_ has joined #silverstripe
376: [09:22:57] * superspring quit (Ping timeout: 255 seconds)
377: [09:26:34] * Tanger quit (Quit: Tanger)
378: [09:29:29] * abrdn quit (Quit: Page closed)
379: [09:37:14] <Pygrdfldk> ocm: that's what I'm saying. In 2.4 you'll need to implement shortcode handler. 3.x you can just paste link in as media item, job done.
380: [09:37:26] <Pygrdfldk> caamic30: which module?
381: [09:38:56] <Pygrdfldk> if by multilingual module you mean it's called "multilingual" I think you're in the wrong channel because I'm pretty sure SilverStripe doesn't have a module called this. It has Translatable and Fluent though. With Translatable you need to translate the parent page too. It's basically just making a second site you can use.
382: [09:39:05] <Pygrdfldk> the pages don't have to match.
383: [09:40:27] * caamic30 quit (Quit: caamic30)
384: [09:49:53] * caamic30 has joined #silverstripe
385: [09:49:59] <caamic30> Pygrdfldk: Multilingual module
386: [09:53:36] * Shrike_Finland has joined #silverstripe
387: [09:53:56] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
388: [10:21:35] * UncleCheese has joined #silverstripe
389: [10:26:58] <ocm> caamic30
390: [10:27:04] <ocm> perhaps you need to add the language parameters?
391: [10:27:21] <ocm> haven't used translatable for awhile (I assume you are using that one? )
392: [10:27:34] <ocm> but I remember having to use the parameters to get the right page/version/language
393: [10:28:21] <caamic30> nah, I’m using the other multilingual module http://www.kreationsbyran.se/multilingual-module-for-silverstripe-3
394: [10:29:50] <kinglozzer> €195 ?!?! D:
395: [10:31:44] <kinglozzer> caamic30: If you paid €195 for it, contact the developer and ask them for help. It's the least they can do!
396: [10:36:50] <micmania1> aahhhhhhh. SilverStripe template syntax in phpstorm :)
397: [10:37:58] * Alfirin quit (Ping timeout: 246 seconds)
398: [10:38:11] <kinglozzer> micmania1: And sublime text! :D
399: [10:40:16] <kinglozzer> micmania1: Is it worth testing out? I've considered getting the trial before, but all the screenshots make it look so busy & crammed full of buttons
400: [10:42:26] <Pygrdfldk> oh wow, there is a multilingual module.
401: [10:42:29] <Pygrdfldk> how about thiat.
402: [10:45:04] <Pygrdfldk> http://ss-multilingualdemo.kreationsbyran.se/documentation/
403: [10:45:13] <Pygrdfldk> seems like Fluent, only perhaps not as good.
404: [10:45:53] <Pygrdfldk> http://addons.silverstripe.org/add-ons/tractorcow/silverstripe-fluent
405: [10:46:19] <Pygrdfldk> As I don't think fluent requiers core hacks to work.
406: [10:48:40] <micmania1> kinglozzer: it is pretty crammed like, but has loads of cool features
407: [10:48:53] <kinglozzer> Pygrdfldk: And is free
408: [10:48:53] <kinglozzer> :P
409: [10:49:40] <micmania1> debugging in it is amazing with xdebug
410: [10:49:44] <kinglozzer> micmania1: Yeah the Xdebug integration sounds cool, plus method autosuggestion in sublime is fucked
411: [10:50:12] <micmania1> I'm still trying to get hang of all the shortcuts like. Its a bit strange
412: [10:50:47] <Pygrdfldk> method suggestion. One of those things IDE's do that I can't stand :<
413: [10:50:57] <micmania1> Ctrl+N = text box opens - start typing class (autocomplete) then it opens your class.
414: [10:51:41] <micmania1> ctrl+o = opens a list of parent class methods/properties. select one and it'll add it to your class to override.
415: [10:51:57] <micmania1> Luckily ctrl+s is the same :)
416: [10:52:39] <micmania1> It has support for composer and git too, although I haven't got that far into it
417: [10:52:57] <Pygrdfldk> cool
418: [10:53:14] <micmania1> oh and vagrant, and has a built in terminal to connect via ssh
419: [10:53:23] <micmania1> so no need for putty
420: [10:53:50] <micmania1> also has phpunit. There's loads basically
421: [10:53:57] <micmania1> or supports it anyway
422: [10:54:40] * simon_w|air is <3ing vim
423: [10:55:06] <micmania1> vim confuses me. I keep forgetting how to close it haha
424: [10:55:13] <simon_w|air> :q :p
425: [10:55:23] <simon_w|air> (that :p is an emoticon, BTW)
426: [10:57:02] <simon_w|air> What I don't know how to quit though, is emacs
427: [10:57:15] <Pygrdfldk> ctrl f10 ctrl w
428: [10:57:16] <Pygrdfldk> e
429: [10:57:19] <Pygrdfldk> or somethin glike that
430: [10:57:35] <simon_w|air> Spam ctrl-c and hope it tells you
431: [10:58:14] <Pygrdfldk> ctrl+e then ctrl+q. something. I remember it's a double whammy.
432: [10:58:22] <Pygrdfldk> one combo opens correct menu
433: [10:58:25] <Pygrdfldk> secon is quit.
434: [10:58:53] <ocm> nano > vim!
435: [10:59:27] <Pygrdfldk> urgh god no.
436: [10:59:31] <Pygrdfldk> nano good for basic edits.
437: [10:59:34] <Pygrdfldk> not for developing.
438: [10:59:58] <micmania1> When I was staring out I remember writing almost a full site in notepad hahaha
439: [11:00:03] <micmania1> starting*
440: [11:03:00] <simon_w|air> I remember writing a full site in Frontpage!
441: [11:03:16] <simon_w|air> Then I discovered DreamWeaver and was all "whoa, this is so much better"
442: [11:06:32] <micmania1> I was still at school when front page was a real thing. I remember using it to update the school website!
443: [11:12:37] * guci0 quit (Ping timeout: 246 seconds)
444: [11:13:24] <ocm> I mostly just use sublime now a days
445: [11:13:37] <ocm> though without any gui and just commandlining nano is fine
446: [11:16:22] * guci0 has joined #silverstripe
447: [11:18:54] * caamic30 quit (Quit: caamic30)
448: [11:19:57] * spronk2 quit (Quit: spronk2)
449: [11:21:13] <Pygrdfldk> Notepad++ for me.
450: [11:21:48] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
451: [11:21:48] <spronk> archaic man
452: [11:34:58] * simon_w|air quit (Quit: This computer has gone to sleep)
453: [11:45:39] <ocm> notepad++ is nice too, though I use it just for quick changes in files
454: [11:46:01] <ocm> I use too much packages in sublime
455: [11:46:04] <ocm> and I love python
456: [11:46:15] <ocm> perhaps cause I am dutch, but still python is a lovely language
457: [11:47:26] <ocm> what is the param I can use to check dev error msgs from live site?
458: [11:47:30] <ocm> or should I just check the logs?
459: [12:02:19] <ss23> ocm: logs are best, t you can make a request with isDev´1
460: [12:02:25] <ss23> Bah, stupid finnish keyboard
461: [12:02:27] <ss23> isDev=1
462: [12:02:39] <ss23> That'll show errors lke it was in dev mode
463: [12:07:09] * UndefinedOffset has joined #silverstripe
464: [12:12:15] * user1121 has joined #silverstripe
465: [12:17:33] * spronk quit (Ping timeout: 240 seconds)
466: [12:20:25] * caamic30 has joined #silverstripe
467: [12:25:14] <Pygrdfldk> ss23: why do you have a Finnish keyboard in Japan?
468: [12:25:45] * spronk has joined #silverstripe
469: [12:42:09] <user1121> Is some Silverstripe & HHVM expert here?
470: [12:42:14] <ocm> ss23 thnx :)
471: [12:42:38] <ocm> zauberfisch, weren't you using HACK?
472: [12:42:53] <user1121> I want to run a version of SS (from 2009) in HHVM, because we have several performance issues.
473: [12:42:58] <spronk> hmm
474: [12:42:59] <spronk> 2009
475: [12:43:01] <spronk> good luck with that
476: [12:43:16] <spronk> i doubt whether that'll work
477: [12:43:23] <user1121> Or do you know a way to solve some performance issues with that old version?
478: [12:43:23] <spronk> i doubt whether it'll ever work
479: [12:43:28] <spronk> upgrade :)
480: [12:43:31] <user1121> Some pages need like 15 seconds to load.
481: [12:43:34] <user1121> We can't.
482: [12:43:38] <spronk> why not?
483: [12:43:42] <spronk> alternatively, use caching
484: [12:43:55] <spronk> alternatively, get more server power
485: [12:44:08] <user1121> We are using the MVC shits from SS to generate thousands of HTML files.
486: [12:44:21] <user1121> Our controllers wouldnt be compatible with the latest version of SS
487: [12:44:28] <spronk> change them
488: [12:44:38] <user1121> 40.000 lines of code?
489: [12:44:50] <spronk> of which you would only need to change a small fraction
490: [12:45:07] <ocm> mass find replace your controllers perhaps?
491: [12:45:08] <spronk> i'd wager it'd be less work than getting SS from 2009 to work on HHVM
492: [12:45:19] <user1121> I think the previous developers also changed something in the core files.
493: [12:45:44] <spronk> eeesh
494: [12:45:47] <spronk> well
495: [12:45:53] <user1121> Our only option would be to solve issues with 2009, instead of upgrading.
496: [12:46:04] <spronk> the cheapest solution is almost certainly to just massively increase your server power
497: [12:46:41] <ocm> cheapest solutions are mostly the worst solutions looking on the long term
498: [12:46:47] <ocm> so far my 2 cnts
499: [12:47:29] <spronk> maybe
500: [12:48:06] <user1121> Well, thanks anyways!
501: [12:48:10] <user1121> I gotta leave now.
502: [12:48:12] * user1121 quit (Quit: Page closed)
503: [12:48:16] <spronk> use.
504: [12:48:17] <spronk> oh
505: [12:48:21] <ocm> lol
506: [12:48:22] <spronk> was going to suggest profiling it
507: [13:02:31] <ss23> Pygrdfldk: I'm here wit a Finnish guy
508: [13:02:41] <ss23> I've typed on a Japanese one too, they're both bad though
509: [13:03:45] * spronk has left #silverstripe
510: [13:06:25] <Pygrdfldk> ss23: oh yeh. Just casually?
511: [13:06:48] * spronk has joined #silverstripe
512: [13:15:00] * catcher has joined #silverstripe
513: [13:21:49] <caamic30> hello guys! how to add a custom row in a gridfield, let’s say I want to add a total number of votes on the footer of the gridgield
514: [13:22:40] <caamic30> the total votes will update depends on the filtering done in the gridfield
515: [13:29:09] <catcher> caamic30, You'll likely need to create a custom GridFieldComponent.
516: [13:29:35] <catcher> Though it may be worth doing some searching for something similar to start with.
517: [13:30:59] <micmania1> kinglozzer: Alt+Insert > Getters & Setters > select property = Auto generated getter and setter with doc blocks!
518: [13:31:37] <kinglozzer> micmania1: Tempting :P
519: [13:32:07] <micmania1> ALT+Insert > Generate doc blocks
520: [13:32:10] <catcher> Who's writing the NZ CWP docs?
521: [13:32:30] <kinglozzer> £70 :(
522: [13:32:44] <micmania1> kinglozzer: i'm just on free trial
523: [13:32:45] * kinglozzer pings employer to buy
524: [13:32:57] <micmania1> i'm hoping ss use it in house :p
525: [13:33:40] <kinglozzer> Haha, nah they all use vim, good luck :P
526: [13:36:02] <ocm> why use vim as ide? it has allmost 0 features, right?
527: [13:36:22] <kinglozzer> ocm: Yeah I was joking :P
528: [13:38:57] <ocm> pfew :')
529: [13:39:25] <ocm> allmost feeled like failing as a geek since I am not the vim-poweruser I thought I was, haha
530: [13:39:45] * Shrike_Finland quit (Quit: Leaving.)
531: [13:39:54] <kinglozzer> Haha nah, I've only just remembered how to actually exit vim lol
532: [13:40:34] <Pygrdfldk> wholey shit the zzzzezzzz come in hard today
533: [13:40:47] <Pygrdfldk> catcher: UncleCheese
534: [13:41:12] <catcher> Pygrdfldk, really?
535: [13:41:21] <Pygrdfldk> catcher: what catcher said. http://api.silverstripe.org/3.1/class-GridField_ColumnProvider.html
536: [13:41:27] <Pygrdfldk> catcher: mmhmm.
537: [13:41:51] <catcher> caamic30, ^
538: [13:42:09] <Pygrdfldk> micmania1: SS run macs, remember?
539: [13:42:09] <catcher> Isn't there going to be an epic amount of redundancy?
540: [13:42:18] <Pygrdfldk> if it's Java then you might be in luck.
541: [13:42:23] <Pygrdfldk> (iirc it is)
542: [13:42:29] <catcher> That said, the docs look pretty good so far.
543: [13:42:33] <caamic30> catcher:
544: [13:42:54] <catcher> caamic30, Pygrdfldk's 2nd line was for you, not me
545: [13:42:55] <Pygrdfldk> ocm: nope, you can get a full IDE suite plugin type thing for VIM.
546: [13:44:01] <Pygrdfldk> kinglozzer: :q!, :w & :q, :wq, :x
547: [13:44:32] <kinglozzer> Pygrdfldk: Yeah phpstorm is available for mac
548: [13:44:37] <caamic30> ah I see, the columnprovider
549: [13:44:45] <Pygrdfldk> mmhmm
550: [13:44:56] <Pygrdfldk> kinglozzer: yeh, it's java. no reason it wouldn't be really.
551: [13:45:00] <kinglozzer> Pygrdfldk: Also, cmd+q
552: [13:45:09] <catcher> emacs 4 life
553: [13:45:09] <Pygrdfldk> kinglozzer: rly?
554: [13:45:13] <Pygrdfldk> o.0
555: [13:45:14] <kinglozzer> Pygrdfldk: Nah :P
556: [13:45:24] <kinglozzer> Only the first few times I used it and got pissed off
557: [13:45:34] <kinglozzer> esc + :wq
558: [13:45:37] <kinglozzer> 99/100
559: [13:45:42] <Pygrdfldk> nope kinglozzer, lies.
560: [13:45:57] <Pygrdfldk> kinglozzer: :x is shortcut for :wq
561: [13:46:08] <kinglozzer> Pygrdfldk: Really? sweet
562: [13:46:10] <kinglozzer> ty
563: [13:46:11] <kinglozzer> :P
564: [13:46:13] <Pygrdfldk> but yeh, if you're not in command mode you need to esc first to get back :P
565: [13:46:13] <micmania1> Pygrdfldk: that probably makes it better
566: [13:46:32] <Pygrdfldk> but yeh, ctrl+q not a thing in vim
567: [13:46:34] <caamic30> catcher: but this one is for columns
568: [13:46:35] <Pygrdfldk> micmania1: ??
569: [13:46:42] <micmania1> phpstorm + mac
570: [13:46:47] <Pygrdfldk> haha, troll
571: [13:46:58] <Pygrdfldk> but yeh, perhaps.
572: [13:47:13] <micmania1> honest, the setup on windows is erm... less than good
573: [13:47:16] <Pygrdfldk> because mac *nix based, better dev platform (of so I've heard)
574: [13:47:21] <micmania1> well actually, its kind of all right now
575: [13:47:26] <micmania1> but took a while to figure it all out
576: [13:47:54] <micmania1> Have a server on the pc/mac would be useful
577: [13:48:08] <Pygrdfldk> mac is a PC
578: [13:48:15] <Pygrdfldk> when will people learn :<
579: [13:49:52] <ocm> mac a pc? since when?!
580: [13:49:58] <ocm> mac is overvalued plastic
581: [13:50:05] <ocm> a wrapper for samsungs hardware
582: [13:50:24] <Pygrdfldk> haha
583: [13:50:40] <Pygrdfldk> sif. foxconn, same like about every other computer.
584: [13:50:43] <ocm> ssd for macs are twice the price as the same non_mac ssd
585: [13:51:32] <Pygrdfldk> but people forget that pc stands for personal computer. and at the hardware level apple's mac and general purpose computers are fundamentally equivalent.
586: [13:51:33] * Sj0hn has joined #silverstripe
587: [13:51:59] <Pygrdfldk> what makes a mac a mac and a 'pc' a 'pc' is the operating system.
588: [13:52:04] <Pygrdfldk> osx vs windows.
589: [13:52:19] <Pygrdfldk> so really it's mac vs windows on x86 hardware.
590: [13:52:24] <Pygrdfldk> 'pc'
591: [13:53:27] <Pygrdfldk> apple tend to cost more for a number of reasons, not just 'coz they can'.
592: [13:53:32] <Pygrdfldk> although that's some of it :P
593: [13:53:57] <ocm> true
594: [13:54:17] <ocm> mostly it is just marketing crap
595: [13:54:29] <ocm> the ssd's they are (or at least were using untill summer 2013) were samsungs
596: [13:54:35] <ocm> 880 / 860 I think
597: [13:54:57] <Pygrdfldk> heh
598: [13:54:59] <ocm> normal price was about 180 for 250GB, apple was pricing them at 450
599: [13:55:02] <ocm> that is just absurd
600: [13:55:14] <ocm> for EXACTLY THE SAME SHIT
601: [13:55:16] <ocm> haha
602: [13:55:55] <Pygrdfldk> but yeh, apples generally tend to have a bit higher quality hardware (although not necessarially the best or most performant). They have a monopoly over their operating system, in that if you want to run osx, you must buy a mac, there's only one choice.
603: [13:56:42] <Pygrdfldk> this gives them the ability to 'design' the cases etc a bit better (bits don't need to be super independently swappable with an equivalent of all kinds of different sizes, etc)
604: [13:56:48] <ocm> fun fact though, they don't provide higher quality hardware
605: [13:57:02] <ocm> nor does their solution have less problems as 'normal' (windows) pc's nor linux machines
606: [13:57:15] <Pygrdfldk> so less competition, better overall 'quality', good marketing, and a unique operating system.
607: [13:57:23] <ocm> and I think OSX makes you work in a certain way, without having freedom of usage
608: [13:57:26] <Pygrdfldk> ocm: yeah I know that. but try telling the general user that.
609: [13:57:29] <ocm> they limit it for a lot
610: [13:57:44] <ocm> I hate the uniqueness of the operating system
611: [13:57:46] <Pygrdfldk> over history, they have tended to produce more reliable units. be it for whatever reason.
612: [13:57:50] <ocm> first, it is not that unique.. its unix
613: [13:57:57] <ocm> second, I would like to decide for myself how to use an os
614: [13:58:10] <Pygrdfldk> linux is the only choice then ;P
615: [13:58:15] <ocm> that all said, I do own a macbooc
616: [13:58:18] <ocm> macbook
617: [13:58:18] <ocm> haha
618: [13:58:35] <ocm> but just for using modul8, VJ-software
619: [13:58:54] <Pygrdfldk> power architecture was a cool point of difference, when they ran that.
620: [13:59:15] <Pygrdfldk> now that has not been a thing for about 7 years.
621: [14:00:50] <Pygrdfldk> fuck js components. fuck them all. especially the old crap ones.
622: [14:01:10] * ARNHOE_ has joined #silverstripe
623: [14:01:21] <Pygrdfldk> the kind that do their job fine, until you update something then all of a sudden you've got a crapshoot of conflicts to solve in a muddy mess of code.
624: [14:01:49] <Pygrdfldk> update -surrounding- page CSS, suddenly JS component looks like crap because it's styles are being crapped out on
625: [14:01:59] <Pygrdfldk> le sigh
626: [14:04:04] * ARNHOE quit (Ping timeout: 264 seconds)
627: [14:08:29] <kinglozzer> Pygrdfldk: but yeh, ctrl+q not a thing in vim <<< cmd+q is quit in OSX :P
628: [14:09:15] <kinglozzer> As in alt+f4
629: [14:09:21] * krofek has joined #silverstripe
630: [14:10:33] <Pygrdfldk> kinglozzer: I know.
631: [14:10:37] <Pygrdfldk> but vim is terminal son.
632: [14:10:41] <Pygrdfldk> like an illness
633: [14:12:33] <Pygrdfldk> I guess closing the terminal would work, but that's not closing vim... at least not directly.
634: [14:12:45] <Pygrdfldk> then you end up with a shitload of ~ files all over the show.
635: [14:12:55] <Pygrdfldk> (autosave backups or whatever)
636: [14:25:56] <Pygrdfldk> fuck, it's all hot and stuffy in the office. Halp kinglozzer :<
637: [14:26:10] <Pygrdfldk> ooh, I've got a fan behind me...
638: [14:27:11] <Pygrdfldk> ok, cool thanks kinglozzer :>
639: [14:28:19] <kinglozzer> Pygrdfldk: Glad I could help :)
640: [14:31:06] <Pygrdfldk> I'm bored of work. I've decided to take the afternoon off.
641: [14:31:36] <Pygrdfldk> by that I mean read about how to improve my code as opposed to fixing stupid JS component.
642: [14:31:50] <Pygrdfldk> and by improve my code I mean make js component redundant.
643: [14:32:26] <Pygrdfldk> kinglozzer: I'm really confused about what the hell this is: http://addons.silverstripe.org/add-ons/christopherdarling/silverstripe-gridfieldsitetree
644: [14:32:41] <Pygrdfldk> do pages not work in gridfield by default or some shit?
645: [14:33:00] <Pygrdfldk> I was wondering wtf uncle cheese was talking about this morning, then I see this module and I'm double o.0 now
646: [14:33:03] <Pygrdfldk> :<
647: [14:33:58] * ARNHOE_ quit (Remote host closed the connection)
648: [14:34:07] <kinglozzer> Pygrdfldk: I don't have a clue :|
649: [14:34:33] * ARNHOE has joined #silverstripe
650: [14:35:41] <kinglozzer> Pygrdfldk: I think it's just literally a GridField where each item links to the edit form for a page
651: [14:36:26] <kinglozzer> I don't get where you'd add it though O.o
652: [14:38:39] <catcher> on another page!
653: [14:39:18] <catcher> really though, maybe on a parent with many children.
654: [14:40:10] <catcher> Though with sitetree being ajax-loaded these days, doesn't seem so important.
655: [14:40:44] <catcher> Searching may be nice. And it'd give people with huge blogs a quick solution to cleanup management.
656: [14:41:17] <kinglozzer> catcher: "on another page" as in if you've a many_many or something?
657: [14:41:31] <kinglozzer> 'cause the built in CMS stuff already has a grid view for SiteTree
658: [14:41:53] * ARNHOE quit ()
659: [14:43:41] <catcher> kinglozzer, good point, I forget that's there.
660: [14:44:48] * babak has joined #silverstripe
661: [14:46:02] <catcher> That doesn't support reordering, I wonder how difficult that'd be to add.
662: [14:46:16] <catcher> same w/ search
663: [14:46:19] <micmania1> Pygrdfldk: no, pages don't work in GridField. They'd only ever call ->write() which would never publish a page.
664: [14:46:23] <Pygrdfldk> catcher: it would seem that many people do, then they go and make modules like this one.
665: [14:46:37] <catcher> ha, no doubt
666: [14:46:43] <Pygrdfldk> micmania1: but that's where something like gridfield_versioned would come in...
667: [14:46:58] <Pygrdfldk> I've scrolled past about 4 of them so far, so if this is another one...
668: [14:47:02] <Pygrdfldk> gawd.
669: [14:47:14] <micmania1> yeah, but then you'd lose page history, settings and preview.
670: [14:47:28] <Pygrdfldk> micmania1: you get those in a gridfield anyway?
671: [14:47:34] <micmania1> you don't
672: [14:47:41] <micmania1> no side by sid editing.
673: [14:47:45] <Pygrdfldk> yeah that's what I mean.
674: [14:48:01] <Pygrdfldk> so this module is like kinglozzer said, you click on a row and it loads the actual edit link?
675: [14:48:28] <micmania1> yeah, same as my blog module
676: [14:48:32] <Pygrdfldk> ah yeh
677: [14:49:19] <Pygrdfldk> well I suppose that kinda half makes sense.
678: [14:50:42] <Pygrdfldk> lol, areet. http://addons.silverstripe.org/add-ons/axllent/silverstripe-gridfield-paginator-header
679: [14:51:13] <Pygrdfldk> I guess it's easier than adding the component every time.
680: [14:51:33] * Fisix_AIX has joined #silverstripe
681: [14:53:04] <Fisix_AIX> Hello, When I go to link an existing object to the current one I am edition using the "Link existing" field in the top right, matching results are displayed by ID, I would like to define it to display results by Name for instance. How would I do this?
682: [14:56:25] <Pygrdfldk> probably with a config setting (as in ->setPreviewProperty() or something rather than yaml config)
683: [14:56:57] <Pygrdfldk> http://api.silverstripe.org/3.1/class-GridFieldAddExistingAutocompleter.html
684: [14:58:46] <Pygrdfldk> Something along the lines of $gridField->getComponentByType('GridFieldAddExistingAutocompleter')->setSearchFeilds(array('Name'));
685: [15:07:07] <ss23> Pygrdfldk: Casually? What do you mean? :O
686: [15:07:22] <ss23> He, the Finnish guy, was the one who wanted me to come to japan\
687: [15:07:31] * Sj0hn quit ()
688: [15:07:34] * Alfirin has joined #silverstripe
689: [15:17:13] <Alfirin> micmania1, are you available?
690: [15:21:01] <Pygrdfldk> ss23: just random that you know a Finnish guy that wanted you to come to Japan is all. I assume by 'Finnish guy' you mean he came to Japan from Finland.
691: [15:21:14] <ss23> Um
692: [15:21:19] <ss23> Yeah, we met in the airport
693: [15:21:23] <Pygrdfldk> Alfirin: wrong question!
694: [15:21:24] <ss23> mean, I knew him online before that
695: [15:21:28] <ss23> but we met up in the airport for the first time
696: [15:21:31] <Pygrdfldk> ss23: yeah I gather that.
697: [15:21:41] <Pygrdfldk> but... still a bit weird.
698: [15:21:57] <ss23> Why? Do you not meet people you know from online>
699: [15:22:00] <ss23> I mean, I know you do :D
700: [15:22:02] <Pygrdfldk> I take it you have a fair history online like.
701: [15:22:19] <Pygrdfldk> Yeah I meet folk from online. I just don't _usually_ travel across the planet to do so.
702: [15:22:23] <ss23> XD
703: [15:22:43] <Pygrdfldk> at least, not for the first time.
704: [15:23:06] <Pygrdfldk> and/or not without some other purpose, eg a conference.
705: [15:23:41] <Pygrdfldk> so anyway, when I have an arraydata, can I <% loop the things %> $value ?
706: [15:27:03] <ss23> um
707: [15:27:15] <ss23> idk, I moved over to AU to live with a guy I only knew online
708: [15:27:16] <ss23> :O
709: [15:30:43] <Pygrdfldk> heh. what a risktaker.
710: [15:30:51] <Pygrdfldk> You could have ended up getting the hose again!
711: [15:30:55] <Pygrdfldk> :O
712: [15:32:06] * Shrike_Finland has joined #silverstripe
713: [15:32:38] <Pygrdfldk> also, isn't it like 2am in Japan?
714: [15:34:26] * jenniferaslan has joined #silverstripe
715: [15:35:29] <ss23> um
716: [15:35:35] <ss23> about midnight, yeha
717: [15:35:37] <ss23> I can't sleep
718: [15:35:42] <ss23> Building a new game instead
719: [15:35:43] <ss23> :D
720: [15:37:02] <ocm> Insomnia, the game?
721: [15:37:03] <ocm> :D
722: [15:37:31] <ocm> or the
723: [15:37:46] <ocm> Q.Q we aussies are eaten alive by the footballgame of the WorldCup tomorrow
724: [15:37:46] <ocm> :D
725: [15:37:58] <ss23> XD
726: [15:40:34] <micmania1> ss23: how long u in Japan for?
727: [15:40:44] <ss23> about 12 more hours!
728: [15:40:52] <ss23> well more than that I guess, maybe ~20
729: [15:40:55] <ss23> But been here 2 weeks
730: [15:41:05] <ocm> are you in Japan for vacation? or work related?
731: [15:41:17] <ss23> vacation! :D
732: [15:41:22] <ss23> SilverStripe has no Japan offices :P
733: [15:41:55] <ocm> ah, awesome! Still wanting to go to Japan
734: [15:42:04] <ocm> but you could have been there to work in house at a customer
735: [15:42:11] <ocm> Australia and Japan are not that far off
736: [15:42:23] <ocm> its like for me working in scandinavia (base is holland)
737: [15:42:28] <ocm> could allmost swim there
738: [15:42:56] <micmania1> ss23: I'm just waiting to find out I haven't got aids then its visa time!
739: [15:43:23] <micmania1> or any other disease lol
740: [15:43:53] <ss23> Yay :D
741: [15:44:08] <ss23> ocm: True I guess :O
742: [15:44:17] <ocm> got aids? gerrit has aids
743: [15:44:19] <ocm> 2 of them
744: [15:44:20] <ocm> quite handy!
745: [15:44:26] <ocm> and not contagious at all
746: [15:45:49] <Pygrdfldk> ocm: Aussie and Japan aren't that far apart, but more like UK and USA.
747: [15:45:52] <jenniferaslan> Hey, do you guys know if it's possible to set a custom model admin as the default interface on login instead of Pages? We have a client asking for that. If so, how does one go about it?
748: [15:46:03] <Pygrdfldk> than Dutch and Swedish
749: [15:46:06] <jenniferaslan> We are using SS 3.1.5
750: [15:46:48] <Pygrdfldk> jenniferaslan: config setting.
751: [15:46:52] <Pygrdfldk> see leftandmain.
752: [15:46:57] <Pygrdfldk> or CMS config.
753: [15:47:07] <Pygrdfldk> since it sets it to pages instead of default security
754: [15:47:31] * r3v3rb has joined #silverstripe
755: [15:47:46] <jenniferaslan> you mean in /site/_config.php?
756: [15:48:08] <Pygrdfldk> https://github.com/silverstripe/silverstripe-cms/blob/3.1/_config/adminpanels.yml
757: [15:48:27] <Pygrdfldk> yes the config, but no not your projects.
758: [15:48:36] <Pygrdfldk> but yes, set your new value in your projects.
759: [15:48:53] <micmania1> jenniferaslan: Just set the sort on your model admin lower than the CMS controller.
760: [15:49:16] <Pygrdfldk> or there's that.
761: [15:49:27] <Pygrdfldk> it will jump to top of menu though.
762: [15:49:54] <micmania1> jenniferaslan: http://api.silverstripe.org/3.1/source-class-LeftAndMain.html#54 - menu priority. That's it!
763: [15:50:08] <micmania1> You can set it to a negative number which will ensure its top.
764: [15:50:25] <ocm> pygrdfldk, why is it like uk and usa?
765: [15:50:33] <ocm> cultural differences?
766: [15:50:44] <ocm> usa and the uk are quite similair, they have a same origin
767: [15:50:50] <ocm> japan and aus not
768: [15:50:56] <ocm> aus and uk quite some :P
769: [15:51:21] <jenniferaslan> Thanks!
770: [15:51:40] <Pygrdfldk> ocm: becuase they're further apart than denmark and a bridge.
771: [15:51:55] <Pygrdfldk> Much.
772: [15:52:13] <ocm> is it?
773: [15:52:31] <Pygrdfldk> Yes. There's a substantial bit of ocean between them.
774: [15:52:59] <Pygrdfldk> By Australia I'm assuming you're making a gaffe because ss23 is from NZ
775: [15:53:31] <ss23> :(
776: [15:53:35] <ocm> I am sorry ss23
777: [15:53:45] <ocm> I think silverstripe and automatticaly assume it is all australians
778: [15:53:47] <ocm> not kiwi's
779: [15:53:51] <ss23> What!
780: [15:53:55] <Pygrdfldk> ocm: but it's developed in NZ, not Aus!
781: [15:53:59] <ss23> SilverStripe has more kiwis than ausses!
782: [15:54:00] <Pygrdfldk> always has been.
783: [15:54:04] <ocm> still, its an island in the ocean
784: [15:54:06] <ocm> on its own continent
785: [15:54:08] <ss23> Pygrdfldk: We have AU office too :P
786: [15:54:10] <ocm> so its all australia for me
787: [15:54:10] <Pygrdfldk> SS has more Europeans than Aussies!
788: [15:54:11] <ocm> :D
789: [15:54:12] <Pygrdfldk> xD
790: [15:54:21] <Pygrdfldk> ocm: nope, no continent.
791: [15:54:28] <Pygrdfldk> at all.
792: [15:54:40] <ss23> Continents are not well defined
793: [15:54:46] <Pygrdfldk> It's like saying the Netherlands are a part of Germany.
794: [15:54:47] <micmania1> I can overhear the marketing team. I need to get better headphones.
795: [15:54:50] <ocm> ask wikipedia
796: [15:54:56] <Pygrdfldk> only worse, because we're not connected at any point.
797: [15:55:01] <ocm> Netherlands is a part of Germany, in a way
798: [15:55:05] <ocm> look at all the royal houses of europe
799: [15:55:07] <ocm> they are ALL german
800: [15:55:09] <ocm> and all relatives
801: [15:55:17] <Pygrdfldk> heh, true.
802: [15:55:24] <ocm> including England, Greece, All scandinavians, a few south americans aswell
803: [15:55:25] <Pygrdfldk> even UK.
804: [15:55:28] <ocm> :D
805: [15:55:30] <ocm> even UK indeed
806: [15:55:36] <ocm> LeipzigBiesterfeld branch
807: [15:55:36] <Pygrdfldk> Hanover
808: [15:55:38] <ocm> or something like that
809: [15:55:45] <Pygrdfldk> Hanover iirc.
810: [15:55:49] <ocm> anyway, time to log off and head home
811: [15:55:50] <Pygrdfldk> or however you spell it.
812: [15:55:51] <Pygrdfldk> idk
813: [15:55:53] <ocm> hannover?
814: [15:55:54] <Pygrdfldk> lucky you!
815: [15:55:57] <Pygrdfldk> mm, yeh.
816: [15:56:00] <Pygrdfldk> something like that :>
817: [15:56:02] <ocm> haha
818: [15:56:04] <ocm> have a nice evening
819: [15:56:07] <ocm> cheers
820: [15:56:35] <Pygrdfldk> can I reset scope from within an Up?
821: [15:58:09] <Pygrdfldk> eg <% loop Thing %>$Up.Value<% end_loop %> is fine, but I want to <% loop $Up.Value %>$Thing.Thing <% end_loop %>
822: [15:58:57] <r3v3rb> right, heres a good one, I have a SiteConfig that is translated ;)
823: [15:59:33] <r3v3rb> I need in my controller to access a file that is attached to either of the SiteConfig’s based on a url param being sent to the browser
824: [15:59:42] <r3v3rb> any ideas???
825: [15:59:46] * Fisix_AIX quit (Quit: Leaving)
826: [16:08:08] <kinglozzer> r3v3rb: What are you stuck with specifically?
827: [16:08:18] <catcher> r3v3rb, what's the problem with reading the url param & retrieving the config?
828: [16:08:49] <kinglozzer> Pygrdfldk: Did it work? I'm curious
829: [16:09:03] <r3v3rb> just figuring it out
830: [16:10:40] <r3v3rb> heh, must remember to use ->First with ::get or else the object is a datalist and not an object!
831: [16:12:11] <r3v3rb> why doesn’t get_one accept a filter?
832: [16:12:31] <r3v3rb> should I be calling ::get_one differently to ::get
833: [16:15:31] <Alfirin> micmania1: I have a problem with your blog module, or rather the sidebar, they aren't able to retrieve data from the proper locale
834: [16:21:21] <catcher> r3v3rb, filter is the 2nd arg, it's basically just a wrapper.
835: [16:21:24] <catcher> r3v3rb, http://api.silverstripe.org/3.1/source-class-DataObject.html#2879-2918
836: [16:21:43] <catcher> I'd just as soon do ::get()->filter()->first()
837: [16:21:49] <micmania1> Alfirin: Can you raise an issue on github?
838: [16:22:10] <micmania1> Alfirin: Also, can you ensure its an issue with the module and not an issue with the widgets module?
839: [16:22:13] <r3v3rb> catcher: yeh, I figured it out, ::get_one requires the caller class even though using SiteConfig::get_one(“SiteConfig”, … seems a bit odd
840: [16:22:46] <r3v3rb> catcher: indeed, thats what I have stuck to as well once I wrote this out and saw the oddness
841: [16:22:50] <kinglozzer> micmania1: Can I stop phpstorm warning me about "method 'count' not found in class"?
842: [16:22:55] <Alfirin> micmania1: I have a test text widget I coded myself, and that seems to work correctly
843: [16:22:57] <kinglozzer> I'm calling it on a DataList! :(
844: [16:23:17] <r3v3rb> kinglozzer: where does that warning come from?
845: [16:23:25] <r3v3rb> I never see that in my phpstorn
846: [16:23:29] <r3v3rb> *m
847: [16:23:43] <micmania1> kinglozzer: I don't have that issue.
848: [16:23:43] <kinglozzer> I have no idea :P - $page = $this->dataRecord; $images = $page->CarouselImages()->sort('Sort ASC'); if ($images->count())
849: [16:23:51] <Alfirin> micmania1: I don't have a github acc but I'll do it if it makes it easier for you
850: [16:24:10] <micmania1> Alfirin: please. I'm just on my way out
851: [16:24:12] <kinglozzer> I think dataRecord throws it, it thinks it's Page|null, it then warms about calling CarouselImages() on it too
852: [16:24:31] <r3v3rb> kinglozzer: btw, riftrefunds.co.uk <- now fully load balanced and statically published - all issues resolved in Azure LAMP stack :P
853: [16:24:37] <Alfirin> micmania1: alright thanks
854: [16:24:49] <kinglozzer> r3v3rb: Woot!
855: [16:25:02] <r3v3rb> bbiab and will explain how I had to set it all up
856: [16:25:10] <kinglozzer> Psst, r3v3rb: Uncaught TypeError: undefined is not a function
857: [16:25:12] <kinglozzer> :P
858: [16:26:09] <kinglozzer> $('.chosenfield').chosen({ <<< perhaps missing the lib?
859: [16:30:32] * stnvh quit ()
860: [16:32:00] * Shrike_Finland quit (Quit: Leaving.)
861: [16:32:01] <kinglozzer> r3v3rb: Wait, is it or the load balancer hosted in the states? D:
862: [16:32:18] <micmania1> r3v3rb: is it possible to search for functions in phpstorm? (you use that right?)
863: [16:32:28] <kinglozzer> Crap, gotta go, spill all tomorrow r3v3rb!
864: [16:32:29] * kinglozzer quit ()
865: [16:43:37] * Shrike_Finland has joined #silverstripe
866: [16:52:07] * Alfirin quit (Ping timeout: 246 seconds)
867: [17:16:07] * Shrike_Finland quit (Quit: Leaving.)
868: [17:18:47] * OxFF1 has joined #silverstripe
869: [17:26:46] * Pygrdfldk quit (Ping timeout: 246 seconds)
870: [17:35:39] * OxFF1 has left #silverstripe
871: [17:37:39] * caamic30 quit (Quit: caamic30)
872: [17:38:24] * caamic30 has joined #silverstripe
873: [17:38:51] * caamic30 quit (Client Quit)
874: [17:52:53] * Shrike_Finland has joined #silverstripe
875: [18:11:46] * r3v3rb quit (Quit: r3v3rb)
876: [18:47:42] * jenniferaslan quit (Read error: Connection reset by peer)
877: [18:48:11] * jenniferaslan has joined #silverstripe
878: [18:49:52] * DesignerX quit (Ping timeout: 244 seconds)
879: [19:07:32] <catcher> Anyone know how a theme's copy of editor.css gets included in the CMS?
880: [19:15:50] <jenniferaslan> As far as I know, that is built-in. I have noticed that sometimes changes made to editor.css take awhile to appear in the CMS, so I clear History in Firefox, choosing cache and cookies and refresh and the changes show up.
881: [19:16:15] <jenniferaslan> Sometimes you also have to quit and relaunch the browser.
882: [19:29:00] * Shrike_Finland quit (Quit: Leaving.)
883: [19:33:17] <catcher> Yeah, I'm wanting to know where it's built in so I can add a url param to force the browser to reload.
884: [19:33:55] <catcher> gnarly to make the browser let go, makes testing difficult!
885: [19:37:07] <catcher> maybe LeftAndMain.php
886: [19:48:00] * antmas quit (Quit: Page closed)
887: [19:51:06] * Azure quit (Quit: My MBP went to sleep.)
888: [19:52:40] * Azure has joined #silverstripe
889: [20:10:47] * UndefinedOffset quit (Quit: Leaving.)
890: [20:19:12] * catcher quit (*.net *.split)
891: [20:19:13] * eagles0513875 quit (*.net *.split)
892: [20:19:17] * ajmitch quit (*.net *.split)
893: [20:20:04] * catcher has joined #silverstripe
894: [20:20:04] * ajmitch has joined #silverstripe
895: [20:22:26] * eagles0513875 has joined #silverstripe
896: [20:29:29] * nickmolhoek has joined #silverstripe
897: [20:32:46] * Ryan-Toast has joined #silverstripe
898: [20:38:55] * Kingy[a] is now known as Kingy
899: [20:39:03] * an_Eskimo has joined #silverstripe
900: [20:43:37] * zippy__ has joined #silverstripe
901: [20:45:52] <Stomach> morning yall
902: [20:46:34] <zippy__> morning
903: [20:48:45] <catcher> hello hello
904: [20:49:47] <Stomach> catcher did you find where the editor.css is being set?
905: [20:50:06] <Stomach> its in the sitetree init :)
906: [20:50:14] <catcher> Stomach, pretty sure it's in LeftAndMain.php with the HTMLEditorConfig stuff, but I had to move on for now.
907: [20:50:25] <catcher> Oh, just saw your second line
908: [20:50:33] <Stomach> theres a configuration on HtmlEditorField called 'content_css'
909: [20:51:14] <Stomach> HtmlEditorConfig* rather
910: [20:51:39] <catcher> Stomach, in SiteTree model?
911: [20:52:06] <Stomach> whoops, i lied
912: [20:52:09] <Stomach> its in LeftAndMain
913: [20:52:16] <Stomach> fuck sorry, early in the morning
914: [20:52:22] <catcher> haha, np
915: [20:52:25] <Stomach> $htmlEditorConfig->setOption('content_css', implode(',', $cssFiles));
916: [20:52:33] <catcher> and thanks anyway!
917: [20:52:34] <Stomach> ~ line 297
918: [20:52:39] <Ryan-Toast> Our office is too old now, all we listen to is the sound.
919: [20:53:18] <Stomach> you can override it with a left and main decorator like http://www.sspaste.com/paste/show/53a0a706252d8
920: [20:53:29] <Stomach> Ryan-Toast, get them onto Coast
921: [20:53:31] <catcher> Ryan-Toast, newer offices listen to things other than sound?
922: [20:53:31] <Stomach> its way better
923: [20:53:46] <catcher> Ryan-Toast, you guys eat mushrooms there or something?
924: [20:54:00] <Ryan-Toast> catcher: Only on Thursday afternoons.
925: [20:54:30] <Ryan-Toast> Stomach: Wish I had noise cancelling headphones, not just normal ones.
926: [20:54:31] <catcher> Eat enough and they're all Thursdays!
927: [20:54:33] <Ryan-Toast> IT’S SO LOUD
928: [20:54:53] <Stomach> Ryan-Toast, get tape, tape over the back of your headphones
929: [20:55:01] <Stomach> will ruin your sound, but whatever
930: [20:55:43] <Ryan-Toast> All the ads are about alcohol abuse and eretion dysfunction.
931: [20:55:53] <Ryan-Toast> erectile
932: [20:59:36] <Stomach> relevant then. :P
933: [21:05:24] <zippy__> haha
934: [21:05:37] * srikanth has joined #silverstripe
935: [21:05:53] * catcher quit (Quit: Leaving)
936: [21:09:09] <Ryan-Toast> Stomach: :P
937: [21:11:52] * simon_w has joined #silverstripe
938: [21:13:32] <Ryan-Toast> Should it be <% cached LastEdited %> or <% cached $LastEdited %> ?
939: [21:15:33] <Stomach> the first one
940: [21:15:57] <Ryan-Toast> Stomach: and for loops: <% cached $Children.max(LastEdited), $Children.count() %>
941: [21:16:23] <Stomach> http://doc.silverstripe.org/framework/en/reference/partial-caching
942: [21:16:29] <simon_w> Ryan-Toast, use $AllChildren
943: [21:16:41] <Ryan-Toast> simon_w: Why is that?
944: [21:16:51] <simon_w> Because building up $Children is slow
945: [21:16:56] <Ryan-Toast> orly?
946: [21:16:59] <simon_w> (it's an ArrayList, not a DataList)
947: [21:17:03] <Ryan-Toast> Ah, kk
948: [21:18:41] <Ryan-Toast> So if I have a cache block, and then a cached loop inside that cache block. If I update one of the looped children will they update? Since it’s in the parent cache block?
949: [21:21:00] <simon_w> If the cache key for the parent cache block changes
950: [21:22:00] <Ryan-Toast> which I have set as LastEdited
951: [21:26:15] * Azure quit (Quit: Blue Sky Fish)
952: [21:31:20] * Kingy is now known as Kingy[a]
953: [21:34:19] <guzzlefry> So...CMS works, index throws a 500 error
954: [21:36:03] <zippy__> guzzlefry: and error log says…?
955: [21:36:12] <guzzlefry> oh hell
956: [21:36:28] <guzzlefry> I don't even think the server admins have error logging on here. :P
957: [21:38:16] <guzzlefry> zippy__: setting environment to dev should just print out errors, right?
958: [21:38:36] <zippy__> guzzlefry: if display_errors is on I believe
959: [21:39:06] <jenniferaslan> Stomach: why do you remove the Help menu item in your sspaste?
960: [21:39:07] <guzzlefry> ah...
961: [21:39:22] <zippy__> guzzlefry: SS_Log::add_writer(new SS_LogEmailWriter('admin@domain.com'), SS_Log::WARN, '<='); - add to your mysite/_config.php
962: [21:39:22] <jenniferaslan> Stomach: the one about editor.css
963: [21:39:43] <guzzlefry> oh, I have that commented out
964: [21:39:46] <zippy__> guzzlefry: or check the apache error log
965: [21:40:00] * zippy__ has left #silverstripe
966: [21:40:02] <guzzlefry> nothing in there
967: [21:40:04] * zippy__ has joined #silverstripe
968: [21:40:11] <zippy__> that was a ctrl-w to the wrong window :)
969: [21:40:13] * zippy__ has left #silverstripe
970: [21:40:17] * zippy__ has joined #silverstripe
971: [21:40:21] <zippy__> fook, again! ahah
972: [21:40:36] * Kingy[a] is now known as Kingy
973: [21:41:11] <Stomach> jenniferaslan, because its copied from my setup
974: [21:41:16] <Stomach> where we remove the help link
975: [21:41:18] <Stomach> :)
976: [21:41:20] <Kingy> morning
977: [21:41:40] <jenniferaslan> Stomach: yeah, but why do you remove the Help at all?
978: [21:42:24] <jenniferaslan> I mean, you must have a reason you don't want it and I just wonder what the reason is.
979: [21:42:32] <Stomach> jenniferaslan, because its not useful to our clients for whom we provide support
980: [21:43:14] <jenniferaslan> Hmm. In my CMS trainings, I always tell them to look in there for basic stuff and to ask me about the stuff we customized for them.
981: [21:43:54] * Azure has joined #silverstripe
982: [21:44:22] * simon_w quit (Quit: This computer has gone to sleep)
983: [21:44:28] <guzzlefry> so...
984: [21:44:54] <zippy__> guzzlefry: fix the error?
985: [21:44:54] <guzzlefry> Couldn't run query: CREATE DATABASE "databasenametopsekrit" DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci Access denied
986: [21:45:01] <guzzlefry> that's from /dev/build
987: [21:45:19] <guzzlefry> Shouldn't it be using CREATE IF NOT EXISTS?
988: [21:47:44] <guzzlefry> oh wow
989: [21:47:46] <guzzlefry> I'm dumb
990: [21:48:22] <Stomach> ?
991: [21:48:25] <Stomach> in what way
992: [21:49:42] <guzzlefry> I was using the wrong database. :P
993: [21:49:57] <guzzlefry> But I'm still getting the blank page. :/
994: [21:50:39] <zippy__> guzzlefry: flushed and dev/built after the details change?
995: [21:50:54] <zippy__> you ARE standing on one foot right?
996: [21:51:26] <Stomach> left foot for dev/build, right foot for flushing as well
997: [21:52:00] <guzzlefry> yeah, flushing doesn't help
998: [21:52:20] <Stomach> guzzlefry, is there any content on the page, or just empty body and html tags?
999: [21:53:04] <zippy__> guzzlefry: what about checking the php error log?
1000: [21:53:24] <guzzlefry> it's throwing a 500 error, so literally an empty response body
1001: [21:54:31] <Stomach> is there something in your code which relies on something being there? i.e. a $stuff = PageType::get()->first(); $stuff->something();
1002: [21:56:20] <guzzlefry> digging, haven't touched this, or silverstripe for that matter, in a few months.
1003: [21:56:32] <guzzlefry> ?showqueries dumps things, so that's a good sign.
1004: [21:56:33] * novaweb has joined #silverstripe
1005: [21:58:43] * guzzlefry throws things.
1006: [21:58:52] <guzzlefry> submodules in my submodules :P
1007: [22:00:20] <novaweb> Has anyone come across 3.1.X Back end layout looking good in dev, but all up the piss in test or live?
1008: [22:04:48] <Stomach> novaweb, nope
1009: [22:04:54] <novaweb> :/
1010: [22:05:07] <Stomach> it uses the same code in dev and live
1011: [22:05:18] <Stomach> are there errors being thrown?
1012: [22:08:39] <novaweb> No errors
1013: [22:08:42] <novaweb> Nothing I can see in console
1014: [22:09:40] <Stomach> anything in the php error log?
1015: [22:19:22] * guci0 quit (Ping timeout: 246 seconds)
1016: [22:19:43] <zippy__> guzzlefry: soooo sorted?
1017: [22:19:58] <guzzlefry> yep, thanks for the help
1018: [22:29:19] * novaweb quit (Quit: novaweb)
1019: [22:31:22] <zippy__> sooo… if I had installed silverstripe via composter… should I just be able to do composter update to install the latest version? :S
1020: [22:32:05] * travis-ci has joined #silverstripe
1021: [22:32:05] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#923 (master - c45fb5a : Ingo Schommer): The build was fixed.
1022: [22:32:05] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/519b0dfaa0b6...c45fb5af43f1
1023: [22:32:05] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/27815008
1024: [22:32:05] * travis-ci has left #silverstripe
1025: [22:32:19] <Stomach> zippy__, you'll have to change your composer file
1026: [22:32:34] <zippy__> it looks like it's set for silverstripe 3.1.*
1027: [22:32:46] <zippy__> (currenly 3.1.3 in the lock file I think)
1028: [22:32:49] <Stomach> then yes, you should be able to do composer update
1029: [22:39:47] <zippy__> intersting
1030: [22:41:07] <zippy__> but will it work :)
1031: [22:41:56] <Stomach> yes.
1032: [22:44:04] <zippy__> yea but… will it..
1033: [22:46:49] <Stomach> yes.
1034: [22:46:52] <Stomach> :)
1035: [22:51:34] * irogue_ has joined #silverstripe
1036: [22:53:42] * Colin[pi] has joined #silverstripe
1037: [23:04:39] * simon_w|air has joined #silverstripe
1038: [23:07:24] * UncleCheese has joined #silverstripe
1039: [23:07:50] <Colin[pi]> man, look how quiet this place was without me
1040: [23:07:58] <Colin[pi]> TUMBLE WEEDS
1041: [23:08:47] <Stomach> countrydropdownfield
1042: [23:08:54] <Stomach> how to only get countries, not regions
1043: [23:09:32] <zippy__> Colin[pi]: o/ welcome back
1044: [23:09:43] <Colin[pi]> \o thanks
1045: [23:10:15] <zippy__> Colin[pi]: you were missed :) http://logs.simon.geek.nz/index.php?date=2014-06-16#log_1316173
1046: [23:10:39] <Colin[pi]> d'aww ;_;
1047: [23:10:47] <Colin[pi]> <3 Ryan-Toast
1048: [23:11:12] <Colin[pi]> LOLLOL "he's in hospital" "what for?" "liver poisoning"
1049: [23:11:18] <Colin[pi]> close enough
1050: [23:12:38] <Ryan-Toast> Colin[pi]: Welcome back :)
1051: [23:12:53] <Colin[pi]> thanks man.. fucking shit end to my trip though eh
1052: [23:13:02] <Ryan-Toast> Really, ehy?
1053: [23:13:09] <Colin[pi]> hospital 2 nights
1054: [23:13:55] <irogue_> ohai Colin[pi]
1055: [23:14:00] <Ryan-Toast> Colin[pi]: Syphilis?
1056: [23:14:11] <Colin[pi]> Ryan-Toast: close.. some sort of kidney infection :(
1057: [23:14:23] <Colin[pi]> how I got it.. I don't even
1058: [23:14:29] <Colin[pi]> doctors were a bit confused too
1059: [23:14:54] <Colin[pi]> said that it warrants further tests of my plumbing
1060: [23:14:58] <irogue_> Colin[pi]: something mustve swam up your peehole
1061: [23:15:04] <Colin[pi]> irogue: ikrite?
1062: [23:15:05] <zippy__> sharing needles is bad
1063: [23:15:14] <Colin[pi]> I wish it was that exciting zippy__ lol
1064: [23:15:42] <Colin[pi]> it was like cold symptoms for a couple of days, then HUGE fever, and toilet every 5 minutes
1065: [23:15:51] <Colin[pi]> I'm like "that's... not right"
1066: [23:16:19] <Colin[pi]> gf recommended I go to hospital, I was 39.4 when I arrived
1067: [23:16:37] <Colin[pi]> they put me straight in and pumped me full of antibiotics and fluids
1068: [23:16:42] <Colin[pi]> 7L of saline!
1069: [23:16:50] <irogue_> [11:15:54] <Colin[pi]> I'm like "that's... not right"
1070: [23:16:53] <irogue_> quite the understatement there
1071: [23:17:09] <Colin[pi]> hehe
1072: [23:17:24] <zippy__> where'd you go?
1073: [23:17:42] <Colin[pi]> sometimes you think "maybe I'm overreacting" when you head to the ER, but they said it was definitely the right thing, or YAY permanent kidney damage
1074: [23:18:00] <Colin[pi]> zippy__: princess alexandra in brisbane
1075: [23:18:08] <Colin[pi]> the hospital that is
1076: [23:18:22] <zippy__> I thought you might of thought I ment that
1077: [23:18:38] <zippy__> where you on holiday I mean, travel somewhere else?
1078: [23:18:52] <Colin[pi]> oh, gold coast and then brisbane
1079: [23:19:01] <simon_w|air> Colin[pi]!
1080: [23:19:08] <Colin[pi]> hai simon_w|air, meesa back
1081: [23:19:10] <simon_w|air> Oops, xchat isn't supposed to be open on this laptop
1082: [23:21:13] <Colin[pi]> btw airline companies have about as much sympathy as hitler
1083: [23:21:22] * Colin[pi] glances at simon_w
1084: [23:21:55] <Colin[pi]> "you're in the hospital? sorry to hear that. you have insurance? no? FUCK YOU"
1085: [23:22:17] <irogue_> Colin[pi]: lolyup
1086: [23:22:38] <Colin[pi]> oh but he was going to waive the $40 phone booking fee for me
1087: [23:22:42] <Colin[pi]> SO GENEROUS
1088: [23:22:46] <Colin[pi]> MUCH SYMPAHTY
1089: [23:22:50] <Colin[pi]> WOW
1090: [23:23:03] * camfindlay has joined #silverstripe
1091: [23:24:45] * Kingy is now known as Kingy[a]
1092: [23:25:26] <irogue_> Colin[pi]: Intercity buses are pretty much the opposite of airlines in that regard
1093: [23:26:11] <irogue_> even on the cheapest (non-refundable) fare option, "Bookings can be amended up to 2 hours before departure"
1094: [23:33:30] <irogue_> UncleCheese is getting to experience all the strange sounds of the Auckland office
1095: [23:36:07] * Stomach runs down the street and moons SilverStripe
1096: [23:36:12] <Stomach> *and sights
1097: [23:36:53] * nickmolhoek quit (Ping timeout: 240 seconds)
1098: [23:38:37] <zippy__> hmm
1099: [23:38:59] <zippy__> doing Session::set('Foobar', 'something'); is not setting for some reason..
1100: [23:39:19] <zippy__> doesn't show up in session::get_all() straight after, on after a refresh
1101: [23:43:44] * nickmolhoek has joined #silverstripe
1102: [23:45:20] <zippy__> nm
1103: [23:48:43] <irogue_> Stomach: wow I didn't expect you to have a glorious beard on your butt too
1104: [23:49:34] <Stomach> yeah face and ass, nothing inbetween
1105: [23:49:58] <irogue_> hahaha
1106: [23:50:22] <Stomach> its quite the issue
1107: [23:51:47] <irogue_> better make a ticket in jira about it then
1108: [23:53:23] <Stomach> "BUG: ass causes dags"
1109: [23:54:05] <UncleCheese> zippy__ you have to save
1110: [23:54:06] <irogue_> WONTFIX
1111: [23:54:41] <Stomach> :(
1112: [23:54:57] * jenniferaslan quit (Quit: jenniferaslan has left the room)
1113: [23:57:22] <Ryan-Toast> Are functions with the prefix “set” run on a page load?

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