#silverstripe IRC Log

IRC log for 12 September 2013

All timestamps are in UTC.

1: [00:00:00] <guzzlefry> Why isn't my composer.json pulling in the .htaccess and .gitignore?
2: [00:00:09] <guzzlefry> I have framework and cms in there.
3: [00:00:52] <spronk> SiteTree::VirtualPages() calls Subsite::get_from_all_subsites(). Subsite::get_from_all_subsites() expects evaluation to be done immedaitely, because it has to temporarily disable the automatic subsite filtering, but that doesn't happen.
4: [00:00:58] <spronk> DataObjectSet still a thing?
5: [00:01:14] <Pyromanik> OOOOOOOOOOOOOOHHHHHHH, because redirect!!!
6: [00:01:44] <simon_w> guzzlefry, you mean the ones in installer?
7: [00:01:47] <simon_w> spronk, nope
8: [00:01:58] <spronk> hmm
9: [00:02:02] <spronk> maybe if i just return an arraylist
10: [00:02:12] <spronk> VirtualPage() method doesn't have any docs specifying what it should return
11: [00:02:16] <guzzlefry> simon_w: yessir
12: [00:02:24] <spronk> so i'm just gonna go with ViewableData :p
13: [00:02:27] <guzzlefry> I noticed composer pulled in some installers as well.
14: [00:02:38] <simon_w> guzzlefry, because they're in installer
15: [00:02:58] <simon_w> It's why you create project silverstripe/installer
16: [00:03:51] * aragonne quit (Read error: Connection reset by peer)
17: [00:04:18] <guzzlefry> oh, I'm doing it wrong then. :)
18: [00:05:26] <guzzlefry> simon_w: Is 3.1.x-dev still the one to use for now?
19: [00:05:39] <simon_w> Depends on what you want
20: [00:06:22] <guzzlefry> oh..there's a release candidate now.
21: [00:06:40] <guzzlefry> That's probably what I want. >_>
22: [00:11:14] <Peavers> setdisplayfields removed from 3.1?
23: [00:11:24] <spronk> how can i turn a datalist into an arraylist?:
24: [00:11:51] <simon_w> spronk, ArrayList::create($datalist->toArray())
25: [00:12:07] <spronk> lawl, hacky
26: [00:12:07] <spronk> k
27: [00:12:19] <simon_w> Peavers, GridFieldDataColumns still has it
28: [00:13:51] <Jayden90> simon_w: can you think of a simple module that we can reverse engineer that extends LeftAndMain to have simple tabs with icons that behave much the same way SiteConfig works, with sub tabs that can contain all sorts of CMS fields that can be accessed globally in templates
29: [00:14:15] <Jayden90> simon_w: since there are no tutorials for this I can find :(
30: [00:14:27] <simon_w> CMSSettingsController
31: [00:15:21] <Jayden90> Already been looking at how that works, there is a lot to soak in and it is not in module format
32: [00:16:05] <simon_w> Copy it and SiteConfig into a module. Look, module form!
33: [00:16:34] <simon_w> getEditForm()'s the main thing you need to care about
34: [00:17:11] <Jayden90> thanks, thats a start. there are lots of things like `public function save_siteconfig` that I am not sure if I need to rename and use, or if it is SiteConfig specific
35: [00:17:37] <simon_w> Compare with one of the other LeftAndMain subclasses
36: [00:17:49] <simon_w> In this case, it's SiteConfig specific
37: [00:18:20] <simon_w> Specifically, it's the form submission handler
38: [00:19:16] <Jayden90> so if dont have one, how will our form data get saved?
39: [00:20:03] <simon_w> That's up to you
40: [00:21:18] <simon_w> ModelAdmin does everything through a GridField, so doesn't have submission handlers
41: [00:21:25] <simon_w> CMSMain just has a lot of them instead
42: [00:21:36] <spronk> Fatal error: Cannot redeclare non static PHPUnit_Framework_TestCase::$dependencies as static SapphireTest::$dependencies in /var/www/framework/dev/SapphireTest.php
43: [00:21:39] <spronk> ......
44: [00:21:54] <simon_w> spronk, one of those needs updating
45: [00:22:03] <simon_w> Probably framework
46: [00:22:06] <spronk> dev/tests no work :(
47: [00:22:14] <guzzlefry> oh no
48: [00:22:22] <guzzlefry> Someone got yaml in my SilverStripe
49: [00:22:24] <spronk> simon_w: hmm?
50: [00:23:00] <simon_w> spronk, fairly sure that's been fixed
51: [00:23:06] <spronk> oic
52: [00:23:10] <spronk> this is rc1, so probably
53: [00:23:31] <simon_w> Or you're running an older PHPUnit, and it got changed in that
54: [00:23:50] <spronk> hmm
55: [00:23:54] <spronk> i have no idea wtf version of phpunit i've got
56: [00:25:57] <spronk> hmm
57: [00:26:03] <spronk> where t hell is it installed
58: [00:26:48] <atmos> holy shit it's past 12
59: [00:27:13] <spronk> 3.4.5
60: [00:27:13] <spronk> hmm
61: [00:28:59] <spronk> simon_w: do you know if there was a github issue for it?
62: [00:29:24] <simon_w> Don't remember seeing one
63: [00:29:48] <spronk> damnit
64: [00:30:09] <ss23> https://bugs.php.net/bug.php?id=65656 ANOTHER BUG FILED
65: [00:30:10] <ss23> o/
66: [00:30:29] <ss23> The error message *is* lulz though - Argument 1 passed to foo() must be an instance of boolean, boolean given
67: [00:30:40] <spronk> haha
68: [00:30:41] <spronk> nice
69: [00:30:59] <spronk> can i install a local phpunit for SS?
70: [00:31:31] <simon_w> ss23, why no patch?
71: [00:32:32] <simon_w> spronk, should be able to
72: [00:32:46] <simon_w> And yeah, it's fixed in a newer PHPUnit
73: [00:33:07] <simon_w> (changed from protected to private)
74: [00:33:11] <spronk> ah
75: [00:33:13] <spronk> le sigh
76: [00:33:18] <spronk> my vm's phpunit installed via apt
77: [00:33:19] * DesignerX has joined #silverstripe
78: [00:33:25] <spronk> no newer versions. doh.
79: [00:34:29] * DigNZ quit (Quit: DigNZ)
80: [00:36:40] * violetina quit (Remote host closed the connection)
81: [00:37:04] * Jayden90 quit (Quit: Jayden90)
82: [00:37:24] * DigNZ has joined #silverstripe
83: [00:37:55] <guzzlefry> hrm
84: [00:38:01] <guzzlefry> Why is the installer checking for mysite?
85: [00:38:19] <spronk> ugh
86: [00:38:20] <spronk> fucking composer
87: [00:38:23] <spronk> i just want to install phpunit
88: [00:38:38] <spronk> but.... because i haven't installed the rest of ss via composer, it's freaking out.
89: [00:38:40] <guzzlefry> I just want to install SilverStripe. :P
90: [00:39:05] <spronk> guzzlefry: what you mean why is it checking for mysite?
91: [00:39:45] <guzzlefry> Directory '/home/me/path/to/mysite' not found. Please make sure you have uploaded the SilverStripe files to your webserver correctly.
92: [00:40:09] <spronk> ...........Y U NO MYSITE?
93: [00:40:20] <spronk> also, "The .git directory is missing from \vendor\composer\installers
94: [00:40:20] <spronk> omfg.
95: [00:40:22] <guzzlefry> That's now how I name stuff!
96: [00:40:29] <spronk> so don't use the installer
97: [00:40:33] <spronk> or
98: [00:40:34] * Colin[pi] has joined #silverstripe
99: [00:40:36] <spronk> use the installer when it's named mysite
100: [00:40:37] <guzzlefry> This isn't Visual Basic! :P
101: [00:40:37] <spronk> then change after
102: [00:40:54] <spronk> how is the installer meant to know what you've renamed your directory to?
103: [00:41:01] <guzzlefry> _config.php iirc
104: [00:41:15] <spronk> but there are lots of _config.phps
105: [00:41:16] <guzzlefry> well, maybe not
106: [00:41:19] <guzzlefry> yeah
107: [00:41:32] <spronk> si this a brand new site?
108: [00:41:34] <guzzlefry> I just didn't have this problem when using 3.1.x-dev :P
109: [00:41:36] <guzzlefry> it is
110: [00:41:38] <spronk> i.e. brand new install
111: [00:41:38] <spronk> hmm
112: [00:41:44] <spronk> you didn't?
113: [00:41:57] <spronk> interesting
114: [00:42:03] <guzzlefry> I don't think I can the installer at all.
115: [00:42:07] <guzzlefry> s/can/ran
116: [00:42:37] * chillu quit (Quit: chillu)
117: [00:42:39] <guzzlefry> I can't create new databases and the database 'SS_mysite' doesn't exist. Please create the database manually.
118: [00:42:41] <guzzlefry> That also...
119: [00:42:51] <spronk> well that's a problem with your database settings
120: [00:42:53] <guzzlefry> There has to be a way to change it.
121: [00:42:59] <spronk> what
122: [00:43:01] <spronk> i'm confused
123: [00:43:04] <guzzlefry> me too
124: [00:43:05] <spronk> the installer asks you what db name
125: [00:43:47] <spronk> oh wtf
126: [00:43:52] <spronk> what does composer actually do
127: [00:44:01] <Colin[pi]> belated good moin!
128: [00:44:07] <spronk> when it's saying installing silverstripe/framework
129: [00:44:12] <spronk> because... i already gottem me directorie
130: [00:44:50] * Jayden90 has joined #silverstripe
131: [00:45:04] <spronk> oh god
132: [00:45:07] <Jayden90> 404 :( http://doc.silverstripe.org/framework/en/3.1/topics/module-developement
133: [00:45:09] <spronk> STOP INSTALLING STUFF
134: [00:45:17] <spronk> haha oh no :(
135: [00:45:52] <spronk> why on earth does composer update --dev install simple theme!?
136: [00:47:01] <spronk> omg composer. STAHP!
137: [00:51:14] <spronk> oh wow, and of course, after many minutes, composer fails with some bullshit 403 error from github
138: [01:00:20] <guzzlefry> simon_w: Is there a way to tell the installer to use something other than mysite?
139: [01:01:02] * swordsmanz has joined #silverstripe
140: [01:01:04] * simon_w really should turn mention notifications off
141: [01:01:14] <simon_w> guzzlefry, rename the folder, change $project in _config.php
142: [01:01:56] <guzzlefry> hrm...that's set.
143: [01:02:05] <guzzlefry> Maybe I throw one at the top level.
144: [01:02:31] <spronk> framework/dev/install/install.php5 line 212
145: [01:02:36] <spronk> if(file_exists('mysite/_config.php') ...
146: [01:02:37] <guzzlefry> nope..
147: [01:03:18] <simon_w> So just run dev/build
148: [01:03:37] <guzzlefry> derp
149: [01:03:56] <guzzlefry> That's why I haven't needed to use the installer before.
150: [01:03:57] <simon_w> All the installer does is set up the DB stuff in _config, then run dev/build
151: [01:04:18] <guzzlefry> ah okay, thanks, sorry for highlighting you as well
152: [01:04:33] <ss23> It edits your .htaccess to I thought?
153: [01:04:59] <guzzlefry> I figured the composer installer stuff did that...
154: [01:05:24] <simon_w> Well, if the installer can run, it's a bit late for that
155: [01:05:37] <simon_w> Nope, dev/build got removed from the composer.json
156: [01:05:48] * funkygibbon has joined #silverstripe
157: [01:05:49] <spronk> jesus silverstripe's stages are confusing
158: [01:05:57] <guzzlefry> so, /dev/build just redirects to the install.php script. :P
159: [01:07:04] * Stomach quit (Quit: Leaving.)
160: [01:08:26] <simon_w> guzzlefry, set up your DB stuff
161: [01:10:48] <guzzlefry> It is...I think.
162: [01:11:04] <guzzlefry> $database = "yadayada" in /myprojectsite/_config.php
163: [01:11:11] <guzzlefry> credentials in _ss_environment.php
164: [01:11:21] <guzzlefry> Unless this random yml file is throwing things off.
165: [01:12:12] * priithansen quit (Quit: priithansen)
166: [01:12:33] <Colin[pi]> arg not alter table errors again
167: [01:12:40] <Colin[pi]> I thought I fixed those on my dev box
168: [01:13:33] <guzzlefry> hah, had to flush
169: [01:13:52] <spronk> hmm
170: [01:13:58] <spronk> if a Page is published
171: [01:14:18] <spronk> does write() update the live version? or do you need to doPublish() after write() each time?
172: [01:21:23] * howardgrigg has joined #silverstripe
173: [01:22:33] <simon_w> spronk, write() updates the current stage
174: [01:22:58] <spronk> so
175: [01:23:01] <spronk> what's defined as the current stage?
176: [01:23:24] <simon_w> in the cms, Stage, in the frontend, whatever one you're viewing
177: [01:23:35] <spronk> hmm
178: [01:23:37] <spronk> so
179: [01:23:41] <spronk> i'm doing this ina unit test..
180: [01:23:46] * DigNZ quit (Quit: DigNZ)
181: [01:23:52] <simon_w> Probably Stage
182: [01:23:55] <spronk> http://sspaste.com/paste/show/52311676324f6
183: [01:24:15] <spronk> so if i want to emulate "Save & Publish"
184: [01:24:19] <spronk> write() and doPublish() ..?
185: [01:24:24] <spronk> or..
186: [01:24:33] <spronk> should i explicitly set the stage etc
187: [01:24:39] <simon_w> doPublish is the Save & Publish
188: [01:24:52] <spronk> right
189: [01:24:57] <simon_w> but ->writeToStage('Stage'), ->publish('Stage', 'Live')
190: [01:24:57] <spronk> so that write()s as well?
191: [01:25:11] <spronk> gmm
192: [01:25:12] <simon_w> Yeah, but it also does a permission check
193: [01:25:13] <spronk> hmm
194: [01:25:17] <spronk> this is very confusing
195: [01:25:22] <spronk> because my test fails on the last line
196: [01:26:02] <spronk> despite the fact that i've fixed the issue...
197: [01:26:12] * UncleCheese has joined #silverstripe
198: [01:26:15] <spronk> i'll swap to writeToStage(), publish() and see what happens
199: [01:26:57] <spronk> it might have something to do with $page->copyFrom($this->CopyContentFrom()) not getting the page that's in object space..
200: [01:27:14] <spronk> but then it should have written by that ponit anyway O_oo
201: [01:28:03] <spronk> i see
202: [01:28:13] <spronk> Versioned::get_reading_mode() is empty by default
203: [01:29:58] <Colin[pi]> simon_w: the fix for table names on winblows was lower_case_table_names=0 in my.ini right?
204: [01:32:31] <Colin[pi]> or =2? shit
205: [01:34:18] <Colin[pi]> yeah it's 2, that'd be why I was getting the alter table errors, mine was set at 0
206: [01:34:23] <Colin[pi]> fffuuu
207: [01:39:36] <ss23> Peavers: REALLY ;_;
208: [01:39:44] <ss23> In your ticket you were like "LOL I TALKED ON IRC TO SOMEONE"
209: [01:39:46] <ss23> :<
210: [01:39:56] <spronk> lol
211: [01:39:57] <ss23> Someone came over and was like "... are you on the IRC? WE got a weird support ticket"
212: [01:40:02] <ss23> oh man
213: [01:40:06] <ss23> I have mega dejavu
214: [01:40:07] <ss23> like
215: [01:40:20] <ss23> About a conversation where it's like "OMG DON'T SUPPORT CWP PEOPLE WHO COME ONTO IRC"
216: [01:40:28] <ss23> and I'me like "but they will do it and I'm going to help them, that's what the IRC is for"
217: [01:40:31] <ss23> ;___;
218: [01:41:01] <guzzlefry> CWP?
219: [01:41:32] <simon_w> ss23, haha!
220: [01:41:48] <ss23> guzzlefry: Common Web Platform! The platform/service for New Zealand government etc
221: [01:41:51] <ss23> I think there's al ink somewhere
222: [01:42:09] <simon_w> That sounds messy
223: [01:42:14] <ss23> http://ict.govt.nz/programmes/rethink-online/implementing-rethink-online/common-web-services/platform/
224: [01:42:18] <guzzlefry> Anything with 'government' in it does.
225: [01:42:21] <ss23> lol
226: [01:42:23] <ss23> a link!
227: [01:42:24] <ss23> not ink
228: [01:42:27] <spronk> ss23 damn there got herself into the trouble
229: [01:42:39] <ss23> HIM
230: [01:42:40] <ss23> NOT A HER
231: [01:42:40] <ss23> ;_;
232: [01:42:42] <ss23> I'M A BOY!!!!!
233: [01:42:51] <Colin[pi]> with nice titties
234: [01:42:55] <ss23> XD
235: [01:42:57] <spronk> lawl
236: [01:42:57] <Colin[pi]> ;D j/k
237: [01:43:00] <ss23> I call them "mcdonalds cups"
238: [01:43:06] <ss23> But naw, wasn't in trouble
239: [01:43:13] <spronk> damnit
240: [01:43:15] <spronk> fuck you subsites unit test
241: [01:43:16] <ss23> Truthfully, after I explained, they were like "Ya you're right... we need to sort this out"
242: [01:44:25] * Stomach has joined #silverstripe
243: [01:44:47] <Colin[pi]> LOL spronk is still raging about subsites
244: [01:44:51] <ss23> ^^^
245: [01:44:53] <ss23> Been like 4 days
246: [01:44:56] <spronk> i know.
247: [01:45:02] <spronk> how can i force a dataobject to relaod itself from database?
248: [01:45:06] <ss23> Hmm
249: [01:45:15] <Colin[pi]> on spronk's tombstone after he dies: "MOTHERFUCKIN' SUBSITES"
250: [01:45:26] * spronk is now known as motherfking_subs
251: [01:45:37] <Colin[pi]> ahahaha
252: [01:45:51] <motherfking_subs> i need to force this dataobject to reload
253: [01:45:54] <motherfking_subs> maybe i'll just get by id ..
254: [01:45:55] <motherfking_subs> sigh
255: [01:46:00] <ss23> spronk: $dataobject_Reloaded = DataObject::get(get_class($old_dataobject), $old_dataobject->id)
256: [01:46:03] <ss23> simon_w: Something like that would :3
257: [01:46:09] <ss23> fuck
258: [01:46:10] <ss23> motherfking_subs*
259: [01:46:19] <motherfking_subs> KEKEKE
260: [01:46:20] * motherfking_subs is now known as spronk
261: [01:46:32] <simon_w> Isn't get_by_id cached?
262: [01:46:42] <simon_w> Fairly sure it's cached
263: [01:46:45] <ss23> Argh
264: [01:46:47] <ss23> If so, that's annoying
265: [01:46:47] <spronk> hmm
266: [01:46:51] <spronk> fuckety fuck fuck
267: [01:46:55] <ss23> lol
268: [01:46:55] <spronk> so..
269: [01:46:56] <spronk> how do?
270: [01:47:01] <ss23> Lickity split sticks!
271: [01:47:04] <simon_w> $do->get()->byID($do->ID)
272: [01:47:17] <spronk> :|
273: [01:47:37] <spronk> reaaaallly
274: [01:48:08] * zippy__ has joined #silverstripe
275: [01:48:29] <spronk> hilarious.
276: [01:48:46] <zippy__> I lol'd
277: [01:48:59] <ss23> hahaha
278: [01:49:09] <spronk> <emporer voice>goood, gooooood</ev>
279: [01:49:44] <ss23> simon_w: Did you want noms?
280: [01:49:48] <ss23> YOU KNOW WHAT I MEAN
281: [01:49:51] <ss23> Did you want to get lunch with em
282: [01:50:05] <Pyromanik> Who's em?
283: [01:50:09] <simon_w> Like these noodles I'm eating now?
284: [01:50:13] <ss23> Awww
285: [01:50:13] <ss23> :<
286: [01:50:25] <spronk> damn ss23
287: [01:50:27] <spronk> no lunch for you
288: [01:50:32] <Pyromanik> spronk: emperor?
289: [01:50:38] <spronk> Pyromanik: you know. Sidious
290: [01:50:59] <Pyromanik> oh, so not emporor
291: [01:51:18] <Pyromanik> is an emporor the owner of an emporium?
292: [01:51:30] <ss23> Empooror
293: [01:51:36] <spronk> fukin
294: [01:51:36] <ss23> I'm getting noms, office is loud
295: [01:51:37] <spronk> spelling.
296: [01:51:46] <Pyromanik> xD
297: [01:51:48] * UncleCheese quit (Quit: UncleCheese)
298: [01:51:57] <Pyromanik> ss23: you get to have lunch with em all by yourself!
299: [01:52:02] <ss23> IK
300: [01:52:05] <ss23> Pyromanik: Wanna get Burger Fuel?
301: [01:52:14] <Pyromanik> will Em be there?
302: [01:52:21] <ss23> :<
303: [01:52:21] <ss23> meanie
304: [01:52:31] <Pyromanik> Not interested if not. :P
305: [01:52:49] * UncleCheese has joined #silverstripe
306: [01:52:52] <Pyromanik> or is that just what you call yourself when people get confused by your hair?
307: [01:55:03] <spronk> LOL
308: [01:55:25] <spronk> wow
309: [01:55:34] <spronk> eclipse + xdebug + debugging silverstripe = JVM out of memory.
310: [01:56:22] <guzzlefry> That's what PHPStorm is for...maybe. :P
311: [01:56:42] <guzzlefry> I've had SilverStripe projects eating up 700MB RAM with that...
312: [01:56:47] <spronk> yeah..
313: [01:56:52] <spronk> ss is ridiculously heavy
314: [01:57:03] <guzzlefry> It doesn't seem as bad when not using the official java instead of OpenJDK though.
315: [01:57:04] <Pyromanik> Blame DataModel!
316: [01:57:31] <simon_w> Blame MattSS!
317: [02:00:22] <guzzlefry> Don't do that, he's an op!
318: [02:00:34] <ss23> SO AM I, YET EVERYONE BLAMES ME!
319: [02:00:35] <ss23> :L<
320: [02:00:54] <guzzlefry> You're cool though, I haven't encountered Matt yet. :P
321: [02:01:02] <ss23> haha
322: [02:01:07] <ss23> I've seen him more times IRL than on IRC
323: [02:01:11] <ss23> And that really says something.
324: [02:01:42] <simon_w> I've seen him more on IRC than AFK
325: [02:02:35] <ss23> He said he used to be active
326: [02:02:56] <simon_w> Then he went all MS managery
327: [02:03:16] <ss23> laame!
328: [02:04:24] * UncleCheese quit (Quit: UncleCheese)
329: [02:04:38] <spronk> anyone want to help me with making a pull request?
330: [02:04:50] <spronk> i have my forked repo on github, created a branch for the specific issue... now what do i do?
331: [02:05:12] <ss23> spronk: commit and push to that branch
332: [02:05:22] <ss23> spronk: Then go to github.com/username/your-fork
333: [02:05:22] <spronk> done that
334: [02:05:27] <ss23> spronk: There should be a button up the top that says "Pull request"
335: [02:05:39] <ss23> Click it, confirm all the branches / forks are right (check the diff is how you expect), then submit
336: [02:05:42] <ss23> submit once more
337: [02:05:43] <ss23> done
338: [02:05:45] <spronk> i see
339: [02:05:47] <spronk> so
340: [02:05:57] <spronk> silverstripe:master branch ?
341: [02:06:08] <spronk> forked from silverstripe-subsites
342: [02:06:29] <spronk> can i link an issue to the pull request?
343: [02:08:55] * DigNZ has joined #silverstripe
344: [02:08:56] * howardgrigg quit (Read error: Connection reset by peer)
345: [02:09:06] * DigNZ quit (Client Quit)
346: [02:09:44] * howardgrigg has joined #silverstripe
347: [02:16:28] * DigNZ has joined #silverstripe
348: [02:17:39] * nickmolhoek has joined #silverstripe
349: [02:17:48] * nickmolhoek quit (Read error: Connection reset by peer)
350: [02:18:04] * nickmolhoek has joined #silverstripe
351: [02:22:50] * UncleCheese has joined #silverstripe
352: [02:27:06] <spronk> who can merge my pull req for subsites
353: [02:27:25] <ss23> ME
354: [02:27:35] <spronk> hmm
355: [02:27:38] <spronk> \need to reference pull request
356: [02:27:50] <ss23> wait
357: [02:27:51] <ss23> nope
358: [02:28:05] <spronk> https://github.com/silverstripe/silverstripe-subsites/pull/107
359: [02:28:33] <ss23> I only have silverstripe-labs/
360: [02:29:43] <spronk> how do i do taht.. reference issue from pull request thing
361: [02:30:31] <guzzlefry> Question!
362: [02:31:00] <guzzlefry> Say my data object has many varchars, which in this case are links to videos.
363: [02:31:22] <spronk> it say it good to merge!
364: [02:31:28] <guzzlefry> Is there a way to set cardinality on those?
365: [02:31:37] <spronk> i even made test case!
366: [02:31:42] <spronk> cardinality?
367: [02:31:44] <atmos> is there way if $repsonsBody === false, return a content 404 and not a header 404?
368: [02:32:03] <atmos> i can't word good, that sounded horrible
369: [02:32:50] <guzzlefry> You want the body of a 404 message but send a 200 response code?
370: [02:32:50] <ss23> spronk: It looks fine
371: [02:32:59] <ss23> "This fixes issue #106" is a link, spronk
372: [02:33:04] <ss23> https://github.com/silverstripe/silverstripe-subsites/issues/106
373: [02:33:08] <ss23> Pull Request #107: Fix for issue #106 get_from_all_subsites to force immediate eval instead of lazy with DataList
374: [02:33:23] <guzzlefry> spronk: Think I'm using the wrong term. I want to restrict the number of links to 3. :P
375: [02:33:34] <spronk> how do i do itt he other way around ss23
376: [02:33:34] <atmos> guzzlefry: ...yes, so I just want the page content to 404, not the page
377: [02:33:38] <atmos> if that makes sense
378: [02:33:47] <spronk> other people's pull requests have cool... notice things
379: [02:33:52] <ss23> spronk: oic, uh
380: [02:34:09] <spronk> https://github.com/silverstripe/silverstripe-subsites/pull/96
381: [02:34:11] <spronk> like that
382: [02:34:12] <ss23> spronk: Just type it in as like "foo bar #96"
383: [02:34:15] <ss23> spronk: It'll autocomplete etc
384: [02:34:57] <spronk> aha!
385: [02:34:58] <spronk> nice
386: [02:35:31] <guzzlefry> atmos: redirect to assets/404-error-whatever.html?
387: [02:35:44] <atmos> guzzlefry: yeah exactly
388: [02:35:54] <guzzlefry> You might be doing something more complicated than what I'm grasping. :P
389: [02:36:19] <atmos> guzzlefry: I don't think so, I'm just not sure what the syntax is
390: [02:37:11] <guzzlefry> atmos: Is this inside a controller?
391: [02:38:01] <guzzlefry> Looks like $this->redirect("/assets/whatever-404.html"); would do it. Add 200 as a second argument if 302 isn't good.
392: [02:38:10] <atmos> guzzlefry: nope, http://sspaste.com/paste/show/523127ccbeea0 I want to do a redirect instead of a 404 header
393: [02:38:18] * guzzlefry wonders if the browser will refuse to redirect if you don't pass it a 302 code.
394: [02:38:54] <guzzlefry> atmos: I'm confused!
395: [02:39:50] <guzzlefry> I'm guessing $responseBody is some fancy variable that I'm not used to.
396: [02:40:02] <spronk> hm
397: [02:40:04] <spronk> does the mass selection
398: [02:40:07] <spronk> publish all children as well?
399: [02:40:32] <atmos> guzzlefry: yeah it's for a restful service
400: [02:40:54] <atmos> basically, if our document server goes down, links to documents will 500
401: [02:41:21] * Jayden90 quit (Quit: Jayden90)
402: [02:41:25] <atmos> so, instead of throwing a user error, I just want it to redirect to a page not found asset like you mentioned
403: [02:41:51] * howardgrigg quit (Ping timeout: 240 seconds)
404: [02:41:53] <guzzlefry> Is this SilverStripe stuff? >_>
405: [02:42:03] <atmos> guzzlefry: well yeah
406: [02:42:06] <guzzlefry> hm
407: [02:42:19] * howardgrigg has joined #silverstripe
408: [02:42:22] <guzzlefry> Controller::curr()->redirect("To wherever");
409: [02:42:26] <guzzlefry> I think that would work.
410: [02:43:25] <atmos> guzzlefry: it doesn't if I replace the header line with it
411: [02:44:41] <guzzlefry> wait...
412: [02:45:03] <guzzlefry> atmos: Are you sure you don't want to just output the body of the 404 message rather than redirect?
413: [02:45:09] * howardgrigg quit (Read error: Connection reset by peer)
414: [02:45:26] <guzzlefry> Not that familiar with these RESTful things. >_>
415: [02:45:39] <atmos> guzzlefry: if that's better, then year
416: [02:45:42] <atmos> yeah*
417: [02:45:58] * howardgrigg has joined #silverstripe
418: [02:46:00] * guzzlefry wonders how to do that.
419: [02:46:55] <spronk> ughhh
420: [02:46:58] <spronk> ss's multio select
421: [02:46:59] <spronk> is fucking bung
422: [02:47:43] <atmos> http://sspaste.com/paste/show/523129eac2d9b there must be a way to do this, instead of line (74)
423: [02:48:13] <UncleCheese> http://jsfiddle.net/PWGtx/1/
424: [02:49:48] <ss23> spronk is just a hater!
425: [02:49:52] <spronk> no
426: [02:49:59] <spronk> \the fucking jstree inputs
427: [02:50:02] <spronk> are wrapped in <a>s
428: [02:50:07] <spronk> so if you hit 1px to the left of the checkbox
429: [02:50:12] <spronk> you load the edit page area
430: [02:50:13] <spronk> and lose your selections
431: [02:50:26] <ss23> spronk: https://github.com/silverstripe/silverstripe-subsites/pull/108
432: [02:50:27] <spronk> to make it worse, some nunchuck has added padding to the <a>s
433: [02:50:44] <spronk> yes..?
434: [02:51:11] <ss23> spronk: Was in regards to your OMG NO DOCS
435: [02:51:13] <ss23> aren't you glad she did it? :D
436: [02:51:30] <spronk> wow
437: [02:51:32] <spronk> this is awesome
438: [02:51:50] <guzzlefry> So, anyway to limit the number of objects on the many-side of things?
439: [02:52:46] <ss23> I have a chunk of cheeseburger stuck in the back of my throat, blargh
440: [02:52:58] <spronk> haha
441: [02:53:07] <spronk> where you get it ?
442: [02:53:10] <guzzlefry> I thought only us Americans ate cheeseburgers constantly.
443: [02:53:33] <ss23> lol
444: [02:53:38] <ss23> I got them for lunch
445: [02:53:55] <atmos> guzzlefry: got it, header('location: /assets/404-error-whatever.html');
446: [02:54:02] <spronk> mcds?
447: [02:54:07] <ss23> Yeah, McDonalds
448: [02:54:09] <ss23> ARGH
449: [02:54:11] <ss23> IT'S SO ANNOYING
450: [02:54:14] <spronk> water
451: [02:54:16] <spronk> or
452: [02:54:20] <spronk> dont eat so fucking fast you ape
453: [02:54:24] <ss23> I didn't eat fast
454: [02:54:25] <ss23> no no
455: [02:54:29] <ss23> it's not like... blocking my throat
456: [02:54:34] <spronk> merge my pull request D:
457: [02:54:37] <zippy__> need another cheesebuger to move it
458: [02:54:39] <ss23> it's between some tongue and the back of my throat, kind of thing
459: [02:54:41] <ss23> zippy__: ++
460: [02:54:45] <guzzlefry> oh
461: [02:54:48] <spronk> its my first pull request!
462: [02:54:51] <ss23> i just keep wiggling my tongue, it'll come out
463: [02:54:51] <guzzlefry> ss23: tonsil things?
464: [02:54:52] <guzzlefry> I think...
465: [02:54:54] <ss23> spronk: I don't have access to sorry
466: [02:55:03] <ss23> guzzlefry: Yeah, around there!
467: [02:55:07] <ss23> It's annoying
468: [02:55:08] <ss23> ;_;
469: [02:55:11] <ss23> I know I can fish it out with my finger
470: [02:55:12] <ss23> :<
471: [02:55:23] <spronk> that's what the bulimics say
472: [02:55:26] <guzzlefry> I usually just swush water really fast.
473: [02:55:26] <ss23> haha
474: [02:55:38] <ss23> I can't, guzzlefry
475: [02:55:39] <ss23> I tried
476: [02:55:41] <ss23> I swalloed it slowly
477: [02:55:42] <ss23> :<
478: [02:55:46] <ss23> spronk: simon_w can merge it!
479: [02:56:43] <simon_w> I guess now is when I tell you how you should be doing it?
480: [02:56:51] <simon_w> query parameters, just like Versioned
481: [02:57:12] <ss23> ah, there we are :D
482: [02:57:16] <ss23> lol
483: [02:57:21] <spronk> hmm?
484: [02:57:52] <spronk> for disabling subsite filter?
485: [02:58:11] <simon_w> Instead of a global flags, $list->setDataQueryParam('subsites.filter', false), then the subsites filter should check for that
486: [02:58:13] <spronk> or was that not directed at me?
487: [02:58:22] <spronk> i see
488: [02:58:28] <simon_w> That way it remains lazy
489: [03:00:07] <simon_w> Subsites really needs a proper 3.0 update...
490: [03:00:13] <spronk> yeah..
491: [03:00:14] <spronk> see
492: [03:00:19] <spronk> augmentSQL only takes in a SQLQuery
493: [03:00:24] <spronk> can i access the query param from SQLQuery?
494: [03:00:45] <simon_w> public function augmentSQL(SQLQuery &$query, DataQuery &$dataQuery = null) {
495: [03:00:54] <simon_w> then you get the DataQuery
496: [03:00:55] <spronk> oo
497: [03:01:01] <spronk> so it does actually pass it in
498: [03:01:22] <simon_w> yeah, have a look at Versioned
499: [03:01:32] <simon_w> augmentDataQueryCreation and augmentSQL
500: [03:01:47] <simon_w> and potentially augmentLoadLazyFields
501: [03:03:31] <spronk> i see
502: [03:03:36] <spronk> getQueryParam... null by default?
503: [03:04:00] <simon_w> yup
504: [03:04:41] * spronk hams up a better commit
505: [03:04:52] * spronk runs tests
506: [03:07:13] <spronk> hmm
507: [03:07:16] <spronk> it passes in a datalist
508: [03:07:20] <spronk> not a dataquery..
509: [03:07:51] <spronk> why am i getting a datalist..
510: [03:09:34] <spronk> oh nvm, /me idiot
511: [03:09:52] * cloph_away quit (Ping timeout: 240 seconds)
512: [03:14:46] * cloph_away has joined #silverstripe
513: [03:16:01] * howardgrigg quit (Remote host closed the connection)
514: [03:17:01] <spronk> http://api.silverstripe.org/3.1/source-class-DataList.html#156-169
515: [03:17:05] <spronk> wow this method is misleading, returning a clone
516: [03:17:29] * Peavers quit (Read error: Connection reset by peer)
517: [03:24:42] <spronk> simon_w: https://github.com/silverstripe/silverstripe-subsites/pull/107
518: [03:24:43] <spronk> betteR?
519: [03:26:30] <simon_w> https://github.com/silverstripe/silverstripe-subsites/pull/107/files#L1R650 breaks in 3.1
520: [03:26:59] <spronk> it does?
521: [03:27:30] <spronk> oh fuck
522: [03:27:31] <spronk> yeah
523: [03:28:43] <spronk> hmm
524: [03:28:46] <spronk> how can i amend that push
525: [03:30:31] <ss23> spronk: Go back to hte working dir, assuming you haven't changed anything, and make the change to the file(s) you need
526: [03:30:41] <simon_w> spronk, git push --force
527: [03:30:50] <ss23> spronk: git commit --amend (either -a, to commit everything, or the list of files you need to commit etc)
528: [03:30:54] <ss23> mm
529: [03:30:55] <ss23> then push -f
530: [03:31:06] <ss23> important two things are the commit -amend, and push -f
531: [03:32:32] <spronk> hmm
532: [03:32:35] <spronk> think i broke it
533: [03:33:17] <ss23> Why? :D
534: [03:33:43] <spronk> oh didnt stage my shit
535: [03:34:15] * Jayden90 has joined #silverstripe
536: [03:34:43] <spronk> there we go
537: [03:34:48] <spronk> https://github.com/silverstripe/silverstripe-subsites/pull/107
538: [03:34:59] <Jayden90> How do you rename/remove the tab in the top right in a ModelAdmin pane
539: [03:37:56] <spronk> but i think i need to squash down those commits into a single commit...
540: [03:38:00] <spronk> no idea whether that's possible
541: [03:38:04] <ss23> spronk: It is possible :D
542: [03:38:09] <spronk> how i does?
543: [03:38:14] <ss23> spronk: iirc there are silverstripe specific docs on it, sec
544: [03:38:23] <ss23> spronk: http://doc.silverstripe.org/framework/en/trunk/misc/contributing/code
545: [03:38:31] <spronk> create new local branch?
546: [03:38:35] <simon_w> Eh, too late :p
547: [03:38:51] <spronk> oh
548: [03:38:54] <ss23> spronk: http://doc.silverstripe.org/framework/en/trunk/misc/contributing/code#squash-all-commits-related-to-a-single-issue-into-a-single-commit
549: [03:38:54] <spronk> well, cool then
550: [03:39:06] <ss23> simon_w: REMOVED FROM CORE COMMITERS LIST FOR INAPROPRIATE MERGING
551: [03:39:07] <ss23> :O
552: [03:39:12] <ss23> simon_w: Merge the docs while you're there, please <3
553: [03:39:23] <spronk> well, to be fair, it was two separate fixes :P
554: [03:39:29] <simon_w> ss23, banned from #silverstripe for teh lola
555: [03:39:32] <simon_w> *lols
556: [03:40:12] <ss23> ;_;
557: [03:40:44] <simon_w> spronk, so the docs changes are good?
558: [03:44:16] <Jayden90> Here is a paste: http://www.sspaste.com/paste/show/5231373861f36
559: [03:44:39] <Jayden90> in the description is an elaboration. I have a screenshot, but don't know how to share it
560: [03:47:04] <Jayden90> Pic here: http://snag.gy/2ocb0.jpg
561: [03:47:28] <Jayden90> How do I get rid of the top right tab and get the url segments to work as described?
562: [03:47:59] <atmos> Jayden90: so you don't want it to be called 'Script'?
563: [03:48:17] * SightUnseen has joined #silverstripe
564: [03:48:25] * SightUnseen has left #silverstripe
565: [03:48:43] <Jayden90> I just want to remove that tab, or at least rename it something less confusing
566: [03:48:59] <Jayden90> When clicking on the "Script" tab in the top right or when clicking "back" button when editing a record it takes me to: "http://evoke.dev/admin/scripts/Script?" when I want it to be "http://evoke.dev/admin/scripts/".
567: [03:49:00] * pippy_ is now known as pippy
568: [03:53:21] * DigNZ quit (Quit: DigNZ)
569: [03:54:36] <atmos> $700-$800 for an iPhone 5c? no thanks
570: [03:55:38] <ss23> C for Cheap!
571: [03:56:15] <simon_w> Only according to people who think Apple should follow their advice explicitly!
572: [03:56:18] <simon_w> And Stuff
573: [03:57:30] <atmos> so the 5s basically just has an NSA scanner and an A7?
574: [03:58:10] <simon_w> You mean that scanner that doesn't share its data at all?
575: [03:58:45] <atmos> simon_w: XD yeah
576: [03:58:52] <atmos> but is that the only major change?
577: [03:59:03] <simon_w> The multi-tone flash
578: [03:59:08] <simon_w> the M7
579: [03:59:20] <atmos> ah that's the other one
580: [03:59:20] <Jayden90> simon_w: any advice on my last question? made a lot of progress today, build my first 2 modules :D
581: [03:59:43] <simon_w> Jayden90, ModelAdmin's built for handling more than one model
582: [03:59:50] <simon_w> What you're seeing is that support
583: [04:00:30] <simon_w> Also, getManagedModelTabs()
584: [04:01:55] <Jayden90> simon_w: hmm ok. looking up getManagedModelTabs() now...
585: [04:02:02] <atmos> the only module I ever built was a youtube carousel and it was terribad
586: [04:02:43] <simon_w> atmos, Apple only does major phone updates every two years. For some reason, the "tech" media hasn't realised that yet.
587: [04:03:29] <atmos> simon_w: yeah I know, although the A7 is a pretty decent step
588: [04:05:24] <simon_w> And then all the developers using int instead of NSInteger having a cry :D
589: [04:06:41] <atmos> simon_w: is that being somehow forced now?
590: [04:07:12] <simon_w> int changed size, NSInteger didn't
591: [04:07:38] <atmos> ouch
592: [04:08:55] <simon_w> Oh no, other way around
593: [04:09:11] <atmos> simon_w: yeah I just read it
594: [04:09:21] <simon_w> So people using int to holding return values from NSInteger methods suddenly get warnings everywhere
595: [04:09:53] <atmos> so what is the benefit of the 64 bit env?
596: [04:10:04] <atmos> when I thought spare RAM is wasted RAM on phones...
597: [04:10:16] <atmos> maybe that's just Android
598: [04:11:45] <simon_w> More registers, larger address space, new (faster) CPU instructions
599: [04:13:06] <simon_w> Maths instructions tend to get a fairly decent speed boost
600: [04:14:48] <spronk> simon_w: yeah docs changes are good
601: [04:14:50] <Colin[pi]> i just don't get the 5C
602: [04:15:05] <Colin[pi]> if it was actually cheap, it would have been great in emerging markets
603: [04:15:16] <Colin[pi]> but it's only $130 more here to buy the 5S outright
604: [04:15:31] <Colin[pi]> so it's only purpose seems to be to make the 5S look more of a luxury model
605: [04:15:34] <simon_w> So stop thinking the C means cheap?
606: [04:15:49] * DigNZ has joined #silverstripe
607: [04:15:50] <spronk> IMO, big lost opportunity to come out with a $300 us phone
608: [04:15:59] <Colin[pi]> didn't say I did think the C means cheap :P
609: [04:16:05] * DigNZ quit (Client Quit)
610: [04:16:05] <spronk> lumia 720-820 space
611: [04:21:07] * howardgrigg has joined #silverstripe
612: [04:21:31] <atmos> it could have cleaned up the mid-range phone market
613: [04:21:35] <atmos> dramatically
614: [04:21:50] <Colin[pi]> yes that's what I've been saying too
615: [04:21:53] <Colin[pi]> but.. ehh
616: [04:21:56] <spronk> yeah
617: [04:21:58] <spronk> instead
618: [04:22:00] <Colin[pi]> missed opportunity
619: [04:22:01] <spronk> android will contionue to walk away
620: [04:22:06] <spronk> with shitty nasty phones
621: [04:22:17] <atmos> now now
622: [04:22:20] <spronk> and us devs will spend most of our life troubleshooting their shit
623: [04:22:25] * DigNZ has joined #silverstripe
624: [04:23:45] <howardgrigg> does anyone have a good way/form field for selecting a user on the front end?
625: [04:24:11] <Colin[pi]> DropdownField?
626: [04:24:26] <howardgrigg> not when you've got 100's of users
627: [04:24:38] <Colin[pi]> oic
628: [04:24:56] <atmos> howardgrigg: all in the same group?
629: [04:25:18] <howardgrigg> i was thinking like the autocomplete field for linking objects to a datagrid but don't know how to approach that
630: [04:25:19] <howardgrigg> yea
631: [04:25:44] <atmos> howardgrigg: bugger, otherwise a filtered dropdown would have been an option
632: [04:25:46] * DigNZ quit (Client Quit)
633: [04:25:46] <atmos> ala above
634: [04:25:51] * Shrike_Finland quit (Quit: Leaving.)
635: [04:26:32] <atmos> howardgrigg: take a look at userforms submissions datagrid
636: [04:26:41] <atmos> might give you some insight
637: [04:28:33] * funkygibbon quit (Read error: Connection reset by peer)
638: [04:32:04] <wmk> g'morning
639: [04:32:07] <wmk> coffee anyone?
640: [04:37:09] <Jayden90> Is 3.1 quicker? as in server response time?
641: [04:38:14] <simon_w> Yes
642: [04:39:01] <Jayden90> like much more? I am pitching a 3.0.5 -> 3.1 upgrade to improve performance. What sort of improvment can we expect?
643: [04:42:59] <ss23> Jayden90: Hmm, I don't think it's that much. What sort of time are you getting at the moment?
644: [04:43:13] <Colin[pi]> wmk: just got my afternoon one
645: [04:43:34] <ss23> Coworker just made me a delicious hot chocolate~ :D
646: [04:43:38] <simon_w> Well, if you're not running an opcode cache the improvement's a lot more noticeable
647: [04:44:01] * DigNZ has joined #silverstripe
648: [04:46:35] * pippy_ has joined #silverstripe
649: [04:47:23] <guzzlefry> hrm
650: [04:47:44] <guzzlefry> <% if ClassName == "HomePage" %> or <% if ClassName == "HomePage_Controller" %> ?
651: [04:47:48] <guzzlefry> err, $ClassName :P
652: [04:48:00] <spronk> hmm
653: [04:48:05] <spronk> what was that pdf-ing module?
654: [04:48:45] * pippy quit (Ping timeout: 245 seconds)
655: [04:51:43] * DigNZ quit (Quit: DigNZ)
656: [04:51:59] <spronk> silverstripe-wkhtml
657: [04:52:01] <spronk> does it work alright?
658: [04:52:25] <Colin[pi]> i've intregrated it manually and it worked great :)
659: [04:52:37] <spronk> hmm
660: [04:52:45] <spronk> i probably can't get that on a shared server can i..
661: [04:53:01] <Colin[pi]> well I have mine installed on a VPS..
662: [04:53:07] <spronk> yeah..
663: [04:53:17] <spronk> but wkhtml isn't a commonly installed thing, presumably..
664: [04:53:34] <guzzlefry> How do I get the page name via template stuff?
665: [04:53:46] <spronk> $Title ?
666: [04:54:03] <Colin[pi]> spronk: with mine I just copied the wkhtmltopdf files to a thirdparty folder in my own module and pulled it in
667: [04:54:07] <Colin[pi]> worked fine
668: [04:54:09] <guzzlefry> Regardless of any actions that may be accessed.
669: [04:54:19] <Colin[pi]> however
670: [04:54:26] <Colin[pi]> it's the binary that's the prob I guess isn't it
671: [04:54:36] <spronk> yeah, the binary
672: [04:54:37] <guzzlefry> spronk: I mean the URL part.
673: [04:54:40] <spronk> did you have to install the binary separately?
674: [04:54:45] <spronk> guzzlefry: $URLSegment ?
675: [04:54:48] <spronk> or $Link for the full URL
676: [04:55:09] <Colin[pi]> spronk: yep I think so
677: [04:55:22] <Colin[pi]> been a while since I used it
678: [04:55:38] <guzzlefry> ah, I figured $URLSegment would return the actions as well.
679: [04:55:42] <guzzlefry> I'll try and see, thanks. :)
680: [04:56:08] <spronk> damn
681: [04:57:03] <Colin[pi]> spronk: yep I remember, I did this here: http://stackoverflow.com/questions/3713004/help-installing-static-binary-for-wkhtmltopdf
682: [04:57:08] <Colin[pi]> top answer
683: [04:57:10] <spronk> damn
684: [04:57:15] <spronk> i won't be able to do this on a shared host
685: [04:57:37] <Colin[pi]> shared hosting for teh sucks
686: [04:57:38] <Colin[pi]> :(
687: [04:57:48] <Colin[pi]> cant change host?
688: [04:58:22] <spronk> well
689: [04:58:27] <spronk> i can recommend they change host...
690: [04:58:36] <spronk> but i'm just contract developer so..
691: [04:59:05] <howardgrigg> In modeladmin does anyone get a confirm popup when deleting an object in the list view?
692: [04:59:19] <spronk> https://github.com/mparkhill/ss-tcpdf
693: [04:59:21] <spronk> anyone used this?
694: [04:59:38] <Colin[pi]> can tell them I *could* do this fancy pdf stuff, *but* I cant do it on your shitty host?
695: [04:59:47] <spronk> well
696: [04:59:47] <spronk> yeah
697: [04:59:51] <spronk> but i try not to upset the apple cart
698: [04:59:51] <spronk> also
699: [04:59:54] <Colin[pi]> hehe
700: [05:00:00] <spronk> they had pdf generation on tehir old site
701: [05:00:02] <spronk> which was on the same host
702: [05:00:08] <spronk> so.... makes the agency look bad ::P
703: [05:00:08] <spronk> :P
704: [05:00:10] <Colin[pi]> oic
705: [05:00:22] <Colin[pi]> but was it something shitty like dompdf?
706: [05:00:27] <Pyromanik> I thought $_REQUEST included cookies
707: [05:00:28] <Pyromanik> ?
708: [05:00:48] <simon_w> Depends
709: [05:01:03] <Pyromanik> appears to not be and it's making me cry on the inside
710: [05:01:16] <simon_w> http://nz1.php.net/manual/en/ini.core.php#ini.variables-order
711: [05:01:32] <spronk> its...
712: [05:01:33] <spronk> tcpdf
713: [05:01:36] <spronk> apparently
714: [05:01:57] <Colin[pi]> i used to use dompdf which is 100% php based
715: [05:01:58] <Colin[pi]> but
716: [05:02:00] <Colin[pi]> = sloooow
717: [05:02:20] <Colin[pi]> wkhtmltopdf is an order of magnitude faster
718: [05:02:28] <Colin[pi]> not to mention far more accurate at rendering
719: [05:02:48] <Colin[pi]> could try and convince them of the pros/cons?
720: [05:03:09] <simon_w> Well, you can just include the wkhtmlpdf binary in your code
721: [05:03:15] <simon_w> It's what we do
722: [05:03:29] <simon_w> Just have to hope they've got the right X libraries installed on the server
723: [05:03:50] <Colin[pi]> well there's the static version which doesn't require all of the X libraries
724: [05:03:56] <Colin[pi]> thats what I use
725: [05:04:01] <spronk> isn't it like
726: [05:04:01] <spronk> java?
727: [05:04:14] <simon_w> wkhtmlpdf's one the few that isn't
728: [05:04:18] <simon_w> It's WebKit
729: [05:04:38] <spronk> but basically i'd need to be able to exec() it
730: [05:04:39] * nickmolhoek quit (Quit: nickmolhoek)
731: [05:04:45] <simon_w> yes
732: [05:04:48] <spronk> hmm
733: [05:04:57] <spronk> need a clone of their server env
734: [05:05:02] <ajmitch> webkit, and it's a statically-linked binary so you don't have to install piles of crap if you dont' want to
735: [05:05:11] <ajmitch> since iirc it uses a patched qt still
736: [05:06:23] <simon_w> Gah dammit, lost yesterday's hours
737: [05:06:27] <simon_w> To the logbot!
738: [05:06:38] <spronk> o_O
739: [05:06:42] <ajmitch> to see what you were complaining about during the day? :)
740: [05:07:06] <guzzlefry> Does the templating system eat any HTML comments?
741: [05:07:06] <zippy__> You can also use phantomjs which is more up to date then wktopdf I think - same idea/principle
742: [05:07:41] <simon_w> To see when I started talking and when I stopped :p
743: [05:07:48] <simon_w> guzzlefry, nope
744: [05:07:51] * guzzlefry sighs.
745: [05:07:55] <guzzlefry> Apparently Firebug does. :P
746: [05:09:35] * openbees has joined #silverstripe
747: [05:10:48] <zippy__> oh yes!!
748: [05:10:53] <zippy__> got my new vacuum cleaner
749: [05:11:10] <spronk> lol
750: [05:11:10] <simon_w> Way too excited :p
751: [05:11:18] <spronk> what are you, a housewife?
752: [05:11:22] <Stomach> SHARK NAVIGATOR LIFTAWAY
753: [05:11:29] <zippy__> spronk: pretttyy much
754: [05:11:32] <spronk> lol
755: [05:11:36] <spronk> :D
756: [05:11:56] <zippy__> anyway, time to go cook tea!
757: [05:11:58] <zippy__> chow
758: [05:11:59] <Colin[pi]> zippy gonna combine it with his fleshlight
759: [05:12:07] <Stomach> cook tea with a vacumn cleaner
760: [05:12:11] <Stomach> thats next level shit right there
761: [05:12:15] <Colin[pi]> lol
762: [05:12:22] <zippy__> You can use the dishwasher to cook food...
763: [05:12:24] <zippy__> google it
764: [05:13:45] * howardgrigg quit (Remote host closed the connection)
765: [05:13:54] <spronk> :|
766: [05:13:57] <Colin[pi]> haha that's true I read that the other day
767: [05:14:03] <spronk> yeah but
768: [05:14:05] <spronk> why the fuck would you
769: [05:14:09] <Stomach> because you can
770: [05:14:18] <spronk> wel
771: [05:14:21] <spronk> you can murder yourself too
772: [05:14:21] <spronk> but hey
773: [05:14:54] <Stomach> covering oneself in crows sounds delightful
774: [05:15:03] <simon_w> You could do a me and bugger off home!
775: [05:15:07] <spronk> lawl
776: [05:15:07] * simon_w does so
777: [05:16:47] * zippy__ quit (Ping timeout: 260 seconds)
778: [05:20:00] <ss23> hauuu
779: [05:20:02] <ss23> some clients are so nice
780: [05:20:07] <ss23> "Yep that's fine, would be great to get it earlier but totally understand."
781: [05:20:12] <ss23> Clients know how to manipulate me into doing it early...
782: [05:20:19] <ss23> I hear that and I think "I'll stay late to do it for you!"
783: [05:22:19] <spronk> hmm
784: [05:22:21] <spronk> best option for adding videos to pages?
785: [05:22:32] <Colin[pi]> protip: they know they're manipulating you ;)
786: [05:22:49] <spronk> indeed
787: [05:22:51] <Colin[pi]> spronk: youtube
788: [05:22:57] <Colin[pi]> ;D
789: [05:23:12] * openbees quit (Quit: Leaving)
790: [05:23:13] <spronk> mm, but logistics?
791: [05:23:23] <ss23> Colin[pi]: I KNOW THEY KNOW
792: [05:23:25] <ss23> BUT I CAN'T HELP IT
793: [05:25:20] <guzzlefry> spronk: I've been using HTML5 video.
794: [05:25:26] <guzzlefry> Works on IE9+ iirc...
795: [05:25:36] <guzzlefry> You just need to encode in 3 different formats. :P
796: [05:26:08] <Colin[pi]> weaksauce
797: [05:26:34] <spronk> guzzlefry: how are you embedding it? tinymce?
798: [05:26:53] <guzzlefry> oh, these are part of the template...
799: [05:27:04] <spronk> ah
800: [05:27:04] <spronk> hmm
801: [05:27:09] <spronk> i want user editable video, i guess
802: [05:27:09] <guzzlefry> spronk: I'd do a new varchar field for it.
803: [05:27:21] * stecman quit (Quit: This computer has gone to sleep)
804: [05:27:23] <guzzlefry> Since all you really need is the source link.
805: [05:27:35] <guzzlefry> well. hrm
806: [05:27:50] <spronk> did you do the encoding within SS?
807: [05:28:14] <guzzlefry> nope :/
808: [05:28:23] <spronk> ah
809: [05:28:26] <spronk> hmm
810: [05:28:31] <guzzlefry> This was more or less a static website with a few editable things.
811: [05:29:01] <guzzlefry> spronk: You want the ability to upload videos?
812: [05:29:08] <spronk> well
813: [05:29:12] <spronk> i'm kinda scoping at the moment
814: [05:29:15] <spronk> client wants to "add in videos"
815: [05:29:16] <spronk> :P:
816: [05:29:53] <guzzlefry> Ah
817: [05:30:43] <guzzlefry> Maybe a video service with some API...
818: [05:31:59] * Shrike_Finland has joined #silverstripe
819: [05:33:37] * Stomach quit (Quit: Leaving.)
820: [05:37:14] <spronk> yeah..
821: [05:37:19] <spronk> i'm thinking youtube might be the easiest
822: [05:37:38] <guzzlefry> That's what my current project is going to use. :P
823: [05:37:57] <guzzlefry> Just a field for the URL. I think that'll work.
824: [05:45:34] <spronk> does the tiny spellchecker.... work?
825: [05:46:46] <Colin[pi]> works for me
826: [05:46:55] <spronk> o_O
827: [05:46:56] <spronk> mine just says
828: [05:46:58] <spronk> no misspellings founds
829: [05:47:00] <spronk> found*
830: [05:47:05] <spronk> regardless of how bad my spelling is...
831: [05:47:10] <spronk> what browser you using?
832: [05:47:26] <Colin[pi]> wait
833: [05:47:27] <Colin[pi]> shit
834: [05:47:31] <Colin[pi]> mine is doing the same
835: [05:47:37] <Colin[pi]> last time i tried it I'm sure it was working
836: [05:47:52] <spronk> https://github.com/silverstripe/silverstripe-framework/issues/2213
837: [05:47:52] <spronk> ok
838: [05:47:53] <Colin[pi]> ff atm
839: [05:47:55] <spronk> so apparently it hasn't worked in ages.
840: [05:48:04] <Colin[pi]> lol
841: [05:48:57] * simon_w|air has joined #silverstripe
842: [05:52:54] <simon_w|air> Colin[pi], how're your cookies going? :p
843: [05:53:47] <Colin[pi]> let me see
844: [05:53:52] <spronk> simon_w|air: is it bad to edit framework/thirdparty/tinymce/config.php ?
845: [05:54:05] <Colin[pi]> 15,015,000,000,000
846: [05:54:14] <Colin[pi]> 176mil/sec
847: [05:54:19] <Colin[pi]> angry grandmas
848: [05:54:25] <spronk> i'm confused
849: [05:54:26] <spronk> what is thi?
850: [05:54:30] <Colin[pi]> http://orteil.dashnet.org/cookieclicker/
851: [05:54:54] <spronk> the fuck
852: [05:55:01] <Colin[pi]> it's addictive!
853: [05:55:08] <simon_w|air> spronk, yes :p
854: [05:55:12] <Colin[pi]> spronk: I changed tinymce settings using my own _config.php
855: [05:55:18] <simon_w|air> Colin[pi], woo, I'm winning!
856: [05:55:29] <simon_w|air> 298mil/sec
857: [05:55:36] <spronk> Colin[pi]: how do you do that?
858: [05:55:52] <Colin[pi]> HtmlEditorConfig::get('cms')->setOptions()
859: [05:56:00] <Colin[pi]> in my own module
860: [05:56:03] <spronk> oic
861: [05:56:13] <spronk> what does the ::get('cms') part do?
862: [05:56:22] <Colin[pi]> gets the cms editor
863: [05:56:28] <Colin[pi]> or
864: [05:56:33] <Colin[pi]> the config for it, rather
865: [05:56:36] <spronk> so you can do stuff like
866: [05:56:48] <spronk> tinymce-spellchecker's general.engine setting?
867: [05:57:40] <Colin[pi]> possibly
868: [05:57:46] <Colin[pi]> I have this in my config file:
869: [05:57:46] <Colin[pi]> http://www.sspaste.com/paste/show/52315692010ce
870: [05:58:16] <spronk> hmm
871: [05:58:22] <spronk> i wonder whether that applies to the spellchecker package as well
872: [05:58:54] <Colin[pi]> there's like a zillion settings, so... possibly
873: [05:59:24] <simon_w|air> mmm, lolly cake's totally dinner, right?
874: [05:59:42] <spronk> why not
875: [05:59:54] * Bollig|DesignCty has joined #silverstripe
876: [05:59:55] <simon_w|air> Good enough for me
877: [06:01:09] <simon_w|air> "Availability in Australia?even where many New Zealand migrants live?is also problematic"
878: [06:01:13] <simon_w|air> They're missing out
879: [06:01:32] <guzzlefry> Does anyone know of some type of crawler that can check for broken links in SilverStripe sites?
880: [06:02:03] <Colin[pi]> broken link report?
881: [06:02:05] <Colin[pi]> :D
882: [06:02:11] <Bollig|DesignCty> guzzlefry: http://validator.w3.org/checklink
883: [06:02:13] <Bollig|DesignCty> google is your friend...
884: [06:02:34] <Colin[pi]> wtf is lolly cake
885: [06:02:55] <simon_w|air> Delicious
886: [06:03:00] <simon_w|air> http://en.wikipedia.org/wiki/Lolly_cake
887: [06:03:39] <Colin[pi]> jesus
888: [06:03:50] <Colin[pi]> only eleventy billion calories per slice
889: [06:04:11] <simon_w|air> Slice?
890: [06:04:12] <spronk> man
891: [06:04:14] <spronk> haven't had lolly cake in YEARS
892: [06:04:15] * simon_w|air is eating a log...
893: [06:04:21] <Jayden90> ss23: Sorry, got called to a meeting and did't get back to you RE the response time we are experiencing with our 3.0.5 build. it is around 2 sec.
894: [06:04:23] <spronk> delicious...
895: [06:04:34] <spronk> ouch, Jayden90
896: [06:04:39] <spronk> what kinda hardware?
897: [06:04:49] <simon_w|air> Jayden90, install an opcode cache
898: [06:04:55] <Colin[pi]> you crazy new zuhlunders
899: [06:05:22] <simon_w|air> Colin[pi], I've got one Australian hooked on L&P and lolly cake. You could be the next :p
900: [06:05:33] <Jayden90> spronk: Amazon EC2
901: [06:07:04] <spronk> oh? hmm
902: [06:07:04] <spronk> :S
903: [06:07:12] <spronk> how many compute units?
904: [06:07:25] <Jayden90> Just ran a test on a 3.1 site on the same server, got about 0.7s. 3.0.5 was 2s. thats a nice improvment
905: [06:07:31] <ss23> nice, Jayden90 :D
906: [06:08:12] <Colin[pi]> simon_w: so it begins, the assimilation :D
907: [06:08:41] <simon_w|air> Colin[pi], apparently there's some place in Woden that actually stocks a somewhat decent amount of L&P and more than just cans
908: [06:08:46] <simon_w|air> You should get some :p
909: [06:11:04] <Jayden90> They are diffirent websites, so it may not be apples to apples
910: [06:12:28] * ooystein_ quit (Ping timeout: 260 seconds)
911: [06:13:24] <Colin[pi]> o_O
912: [06:14:22] * ooystein has joined #silverstripe
913: [06:14:50] <spronk> where the fuck are tghe docs for stuff like onBeforeWrite?
914: [06:15:34] <Colin[pi]> s/onBeforeWrite/about 50% of the framework/
915: [06:15:46] <spronk> datamodel
916: [06:16:37] <simon_w|air> spronk, probably DataExtension
917: [06:16:42] <spronk> yeah..
918: [06:16:57] <spronk> there's no builtin way to implement a 'default' with $has_many?
919: [06:17:06] <spronk> boolean and onAfterWrite set all others to false is best way?
920: [06:17:13] <simon_w|air> 3.1 there is!
921: [06:17:18] <spronk> oo how?
922: [06:17:22] <simon_w|air> populateDefaults()
923: [06:17:34] <spronk> oh
924: [06:17:36] <spronk> i mean like
925: [06:17:36] <simon_w|air> add things to the has_many
926: [06:17:55] <spronk> from the cms
927: [06:18:12] <spronk> set which of your items should be returned first kinda thing
928: [06:19:12] <simon_w|air> Ah right, yeah nothing built in
929: [06:20:02] <spronk> $pis = $this->Product()->ProductImage(); foreach($pis as $p) { $p->Default = false; $p->write(); }
930: [06:20:02] <spronk> done
931: [06:21:05] <spronk> ugh
932: [06:21:10] <spronk> gridfield doesn't nicely format booleans
933: [06:21:12] <spronk> "1"
934: [06:21:32] <Colin[pi]> CTF didn't either
935: [06:21:43] <simon_w|air> Aww, out of lolly cake
936: [06:21:43] <spronk> yes but gridfield is new hotness, so it should
937: [06:21:46] <spronk> any secret way to do it?
938: [06:21:47] <Colin[pi]> lol
939: [06:21:51] <spronk> pass a closure would be nice..
940: [06:21:54] <Colin[pi]> Boolean.Nice :P
941: [06:23:13] <spronk> aww
942: [06:23:18] <spronk> my little onAftrWrite thing didn't work
943: [06:25:14] <spronk> aww
944: [06:25:15] <spronk> you can't do
945: [06:25:19] <spronk> summary fields... Boolean.Nice
946: [06:31:17] <Colin[pi]> function BooleanNice() ?
947: [06:31:58] <spronk> but
948: [06:32:03] <spronk> how i make work in gridfield?
949: [06:33:28] <spronk> hmm
950: [06:33:40] <Colin[pi]> no summary field calls a method instead of attrib
951: [06:33:49] <Colin[pi]> at least thats how I do it in CTFs
952: [06:33:53] <spronk> ??
953: [06:33:55] <Colin[pi]> I thought gridfield is more fancy :P
954: [06:37:15] <Colin[pi]> in summary_fields spronk in 3.1 can't you put "BooleanNice" to call a method called BooleanNice() ?
955: [06:37:36] <spronk> oh
956: [06:37:37] <spronk> true
957: [06:37:43] <Colin[pi]> then get the function to return $this->dbObject('Boolean')->Nice()
958: [06:37:53] <Colin[pi]> or whatever, maybe it changed in 3.1
959: [06:38:52] <spronk> ugh
960: [06:38:56] <spronk> now the col header says IsDefaultNice
961: [06:39:15] <Colin[pi]> fieldLabels() still override that in 3.1?
962: [06:39:24] <spronk> = >
963: [06:41:09] <guzzlefry> Okay, being that it's a pain to do random rows in MySQL...
964: [06:41:17] <guzzlefry> Is it possible to get a random set of DataObjects? :P
965: [06:46:11] <Colin[pi]> guzzlefry: ORDER BY RAND() ?
966: [06:46:20] <guzzlefry> 0.o
967: [06:46:28] <guzzlefry> I feel dumb now.
968: [06:46:31] <Colin[pi]> LOL
969: [06:46:40] <Colin[pi]> try it anyway :)
970: [06:46:42] <spronk> ew
971: [06:46:42] <spronk> \no
972: [06:46:44] <guzzlefry> I thought there was some big fuss abour random in SQL.
973: [06:46:45] <spronk> bad
974: [06:46:49] <Colin[pi]> why?
975: [06:46:54] <spronk> slooow
976: [06:46:55] <Colin[pi]> works, doesn't it?
977: [06:46:58] <Colin[pi]> :C
978: [06:47:12] <Colin[pi]> how many records guzzlefry?
979: [06:47:29] <guzzlefry> Well, it'd probably be 200 in the next few years.
980: [06:47:40] <guzzlefry> These are testomonials for a small food company.
981: [06:47:47] <guzzlefry> testimonials*
982: [06:48:08] <Colin[pi]> surely it wouldn't be that slow on ~200 spronk?
983: [06:48:22] <Colin[pi]> might be an issue if we're up to 10000 or more?
984: [06:48:23] <spronk> depends on how big the records are lol
985: [06:48:37] <guzzlefry> Tiny in my case.
986: [06:48:43] <guzzlefry> name - testimonial - image link
987: [06:48:49] <Colin[pi]> DO IT
988: [06:48:54] <Colin[pi]> should be fast in that case
989: [06:48:54] <guzzlefry> eep, thanks :P
990: [06:49:02] <Colin[pi]> but yeah use caution as spronk noted if the db grows
991: [06:58:04] * Shrike_Finland quit (Quit: Leaving.)
992: [07:03:19] <spronk> yeah
993: [07:03:32] <spronk> as soon as you get to like
994: [07:03:32] <spronk> 1000
995: [07:03:35] <spronk> i'd be hesitant
996: [07:09:57] * Jayden90 quit (Ping timeout: 248 seconds)
997: [07:16:06] * MrGuits has joined #silverstripe
998: [07:16:06] * Guits quit (Read error: Connection reset by peer)
999: [07:26:24] * willr quit (Quit: willr)
1000: [07:34:27] <Colin[pi]> lol fail: http://i.imgur.com/eiTjkDO.jpg
1001: [07:36:48] <spronk> :D
1002: [07:37:05] <ss23> :D
1003: [07:37:08] <ss23> Subsites yay!
1004: [07:37:33] <spronk> ..?
1005: [07:37:45] <ss23> Server Error in '/' Application.
1006: [07:37:49] <ss23> Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
1007: [07:37:55] <ss23> I think I accidently hacked this site..
1008: [07:38:06] <ss23> >.>
1009: [07:38:41] <spronk> WUPS
1010: [07:40:30] <ss23> "For a community with a mantra of "HACK THE PLANET", there sure is a lot of QQ when someone actually does it"
1011: [07:40:33] <ss23> A+ tweet
1012: [07:40:42] <spronk> lolmm
1013: [07:48:13] <Colin[pi]> idgi
1014: [07:52:10] * pippy has joined #silverstripe
1015: [07:53:09] * pippy_ quit (Ping timeout: 248 seconds)
1016: [08:12:13] * kinglozzer has joined #silverstripe
1017: [08:29:04] * chillu has joined #silverstripe
1018: [08:36:37] <ss23> chillu: We're going to be upgrading deploynaut (the main one) tomorrow afternoon FYI. Not sure if you were included on the list
1019: [08:40:57] * micmania1 has joined #silverstripe
1020: [08:42:03] <chillu> ss23: ok thanks for the notice (no I wasn't)
1021: [08:44:56] * ARNHOE has joined #silverstripe
1022: [08:48:11] * Error404NotFound has joined #silverstripe
1023: [09:13:15] * PanPipes has joined #silverstripe
1024: [09:13:46] <PanPipes> how do you make a has one required?
1025: [09:14:05] <PanPipes> eg an Image
1026: [09:14:41] <micmania1> You could add some validation into the DataObject::validate() method to check.
1027: [09:14:59] <simon_w|air> Though that won't work with UploadField in 3.0
1028: [09:16:00] <micmania1> onBeforeWrite then?
1029: [09:16:07] <simon_w|air> Still won't work
1030: [09:16:26] <simon_w|air> 3.0 requires the object to be saved before UploadField can attach to as has_one
1031: [09:16:45] <micmania1> ah yeah, duh!
1032: [09:17:44] <micmania1> so does 3.1 save the image before writing the dataobject?
1033: [09:18:18] * chillu quit (Quit: chillu)
1034: [09:18:32] <simon_w|air> Can't remember. I don't think I was entirely satisfied with it, which probably means it does a save when doing the AJAX upload rather than just setting the value of a hidden field
1035: [09:18:57] * priithansen has joined #silverstripe
1036: [09:21:31] * chillu has joined #silverstripe
1037: [09:28:04] * Colin[pi] quit (Ping timeout: 264 seconds)
1038: [09:31:24] <PanPipes> thanks for the replies. so am i right in saying this can not be done?
1039: [09:33:34] <Bollig|DesignCty> everything can be done PanPipes! But easily? Probably not :)
1040: [09:33:37] * benly has joined #silverstripe
1041: [09:47:46] <Zauberfi1ch> PanPipes: not sure about image field
1042: [09:47:47] <benly> hi need a help in a code
1043: [09:48:10] <benly> how can we add a page while csv import
1044: [09:48:10] * Shrike_Finland has joined #silverstripe
1045: [09:48:11] <Zauberfi1ch> but in general there is a module that can be used instead of the default silverstripe validator
1046: [09:48:22] <Zauberfi1ch> its by lx-berlin
1047: [09:48:32] <Zauberfi1ch> https://github.com/lx-berlin/NetefxValidator/
1048: [09:48:34] <PanPipes> Zauberfi1ch: ok i will take a look
1049: [09:49:01] <Zauberfi1ch> (note for 3.x you have to use the SS3 branch)
1050: [09:49:32] <Zauberfi1ch> the documentation for the module is in the code (comments above the __construct)
1051: [09:49:40] <Zauberfi1ch> and also a bit here: http://www.netefx.de/Silverstripe-NetefxValidator.php
1052: [09:54:09] <benly> is there any tutorial pdf for silverstripe
1053: [09:54:10] <benly> 3
1054: [09:57:55] * MrGuits quit (Ping timeout: 245 seconds)
1055: [09:57:59] * Trooy has joined #silverstripe
1056: [09:58:28] * Trooy quit (Client Quit)
1057: [10:01:23] <benly> is there any tutorial pdf for silverstripe 3
1058: [10:02:36] <Bollig|DesignCty> benly: not that I'm aware of, however nothing stops you PDF'ing the docs :)!
1059: [10:02:59] <benly> yeah there should be one actually
1060: [10:03:09] <benly> giving good implementaion examples
1061: [10:04:20] * Marvanni has joined #silverstripe
1062: [10:05:52] <ss23> simon_w|air: You still here?
1063: [10:11:25] <Zauberfi1ch> why would one want the docs as PDF?
1064: [10:12:48] <Marvanni> as a handout for customers with a fancy company front?
1065: [10:13:19] <ss23> Having a user documentation quick-start in PDF wouldn't be a bad idea I guess
1066: [10:13:50] <Zauberfi1ch> oh, as in for the end user
1067: [10:13:53] <Zauberfi1ch> I see
1068: [10:14:03] <Zauberfi1ch> yeah, we did PDFs for that in my previous company
1069: [10:14:47] <Zauberfi1ch> but lately it seems not even that is needed, the clients I currently have are all like "oh, ss is awesome, you don't even need to explain it"
1070: [10:15:18] * Zauberfi1ch is now known as Zauberfisch_
1071: [10:15:42] <Marvanni> But there are still customers who like to receive a printed document
1072: [10:15:55] <Zauberfisch_> yeah, I get that
1073: [10:16:15] <Zauberfisch_> I thought he was looking for a pdf with content equal to docs.ss.org
1074: [10:16:38] <Marvanni> I just jumped in, missed that
1075: [10:17:32] * Shrike_Finland quit (Quit: Leaving.)
1076: [10:22:12] <benly> http://docs.ss.org/ is not fount error
1077: [10:22:50] <ss23> benly: http://doc.silverstripe.org
1078: [10:23:07] <Zauberfisch_> benly: wenn we say ss.org we actually mean silverstripe.org
1079: [10:23:15] <benly> ok
1080: [10:23:16] <Zauberfisch_> we are just lazy
1081: [10:23:18] <benly> thnaks
1082: [10:23:30] <Zauberfisch_> oh, right, and its doc. instead of docs.
1083: [10:23:39] <Zauberfisch_> has been a while since I visited that site
1084: [10:24:12] <Zauberfisch_> btw, chillu how is the website redesign comming along? :P
1085: [10:24:36] <chillu> not
1086: [10:24:52] <chillu> how's the UploadField->GridField coming along? ;D
1087: [10:25:11] <Zauberfisch_> not
1088: [10:25:13] <Zauberfisch_> -.-
1089: [10:25:25] <chillu> haha, yep. Busyness all around
1090: [10:25:34] <Zauberfisch_> touché
1091: [10:25:48] <Zauberfisch_> ^^
1092: [10:30:15] * spronk2 has joined #silverstripe
1093: [10:30:51] <spronk2> HAI
1094: [10:31:26] <ss23> Hai sh2
1095: [10:31:30] <ss23> sh => subsite hater
1096: [10:31:31] <ss23> :D
1097: [10:35:45] <spronk2> lawl
1098: [10:36:02] <spronk2> i put my money wheer my mouth was
1099: [10:36:03] <spronk2> and
1100: [10:36:08] <spronk2> attempted to improve it by a miniscule amount
1101: [10:36:17] <spronk2> at least, i guess
1102: [10:45:05] <Marvanni> hm, where do I need to put those rules?
1103: [10:45:06] <Marvanni> https://github.com/ajshort/silverstripe-elastica
1104: [10:45:28] <Marvanni> And does anyone know if this works on 3.0.5?
1105: [10:45:47] <Zauberfisch_> chillu: I solved the problem
1106: [10:45:49] <Zauberfisch_> http://mars.zauberfisch.at/zauberfisch-is-also-an-amazing-creative-director.png
1107: [10:45:52] <Zauberfisch_> here you go
1108: [10:46:51] <Zauberfisch_> but seriously, I actually like the simple and clean design of the docs page, the docs look so much nicer than the website
1109: [10:46:54] <chillu> Zauberfisch_: hah, not a bad start. A lot cleaner than the current design
1110: [10:47:41] <chillu> Our current status, and the first step, is coming up with a more coherent information architecture
1111: [10:47:54] <Zauberfisch_> yeah, thats good
1112: [10:48:03] <Zauberfisch_> the current site not only sucks in design
1113: [10:48:15] <Zauberfisch_> it also does in terms of content and structure
1114: [10:48:22] <chillu> I'll forward your mockup to our creative director, OK? I don't think much will come of it, but its another data point :)
1115: [10:48:34] <Zauberfisch_> chillu: sure
1116: [10:48:52] <Zauberfisch_> but better download it, I do not guarantie that I keep this file forever
1117: [10:49:02] <Zauberfisch_> chillu: and of course, this is a 5min quick firebug hack
1118: [10:49:08] * Mayzie is now known as Mayzie`
1119: [10:49:22] <Zauberfisch_> it was just a stupid idea
1120: [10:49:33] <Zauberfisch_> anyway, back to getting some work done
1121: [11:01:56] <Marvanni> ok this is all new to me :
1122: [11:01:56] <Marvanni> composer create-project silverstripe/installer ./my/website/folder
1123: [11:02:16] <Marvanni> I run that rule from command line, but no framework or cms is installed
1124: [11:02:38] <Marvanni> only assets, mysite, themes and vendor
1125: [11:02:46] <Marvanni> is that expected behaviour?
1126: [11:03:13] <Marvanni> [RuntimeException]
1127: [11:03:13] <Marvanni> The lock file does not contain require-dev information, run install with the --no-dev option or run update to
1128: [11:03:13] <Marvanni> install those packages.
1129: [11:03:26] <Marvanni> THats what I get as error message when installign with composer...
1130: [11:04:31] <spronk2> hmmm
1131: [11:05:59] <Marvanni> ah, nvm. i did not have git installed on the test server...
1132: [11:06:20] <Marvanni> composer require silverstripe/framework:* seem to work now
1133: [11:08:06] <Marvanni> wtf??? its downloading symfony?
1134: [11:09:32] <Marvanni> and the docsviewer??
1135: [11:12:58] <Zauberfisch_> Marvanni: yeah, there some dependencies to symfony in the composer stuff
1136: [11:13:01] <Zauberfisch_> i think
1137: [11:13:14] <spronk2> yeah
1138: [11:13:29] <Marvanni> And the docs viewer? why do we need that in a SS install?
1139: [11:13:37] <spronk2> you're not using --dev right?
1140: [11:14:00] <Marvanni> just following this one
1141: [11:14:01] <Marvanni> http://doc.silverstripe.org/framework/en/installation/composer
1142: [11:14:11] <Marvanni> no --dev indeed
1143: [11:14:24] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
1144: [11:15:57] <Marvanni> do I have to add that?
1145: [11:20:24] <Marvanni> composer update --no-dev
1146: [11:20:30] <Marvanni> removed all the bloat...
1147: [11:20:56] <spronk2> hmm
1148: [11:20:58] <spronk2> i dno
1149: [11:21:10] <spronk2> i've only ever done a couple of composer installs and both were dev
1150: [11:21:43] * Colin[pi] has joined #silverstripe
1151: [11:21:48] * priithansen quit (Quit: priithansen)
1152: [11:27:04] <Marvanni> lkjuhdfgh;judsfh;josd;fkhsdfknjbsdknjsdfkjsdf kl l kjsdf l kn
1153: [11:28:11] <Marvanni> Installing silverstripe/framework (3.0.5)
1154: [11:28:14] <Marvanni> The "https://api.github.com/repos/silverstripe/sapphire/zipball/3.0.5" file could not be downloaded (HTTP/1.1
1155: [11:28:14] <Marvanni> 404 Not Found)
1156: [11:29:58] * Guits has joined #silverstripe
1157: [11:30:09] <spronk2> doh.
1158: [11:31:10] <Marvanni> composer create-project --no-dev silverstripe/installer . 3.0.5
1159: [11:31:14] <Marvanni> what wrong with that?
1160: [11:31:22] <spronk2> as far as i know, nothing
1161: [11:31:31] <spronk2> maybe 3.0.5 no longer supported here?
1162: [11:31:49] <Marvanni> its the latest stable download on ss.org
1163: [11:32:09] <Marvanni> http://www.silverstripe.org/stable-download/
1164: [11:32:14] <Marvanni> its also mentioned here
1165: [11:34:00] <kinglozzer> Marvanni: http://www.silverstripe.org/installing-silverstripe/show/23934
1166: [11:34:41] <Marvanni> ah thanks
1167: [11:34:49] <Marvanni> 3.0.4 did worked...
1168: [11:35:01] <Marvanni> but 3.1 didn't
1169: [11:40:58] <spronk2> hmm
1170: [11:43:54] <Marvanni> 3.1 / 3.1.0 / 3.1.1 don't work
1171: [11:46:33] <Marvanni> cleaned cache still no 3.0.5 either...
1172: [11:46:51] * Colin[pi] quit ()
1173: [12:03:15] * Guits quit (Ping timeout: 260 seconds)
1174: [12:06:18] * UndefinedOffset has joined #silverstripe
1175: [12:11:12] * chillu quit (Quit: chillu)
1176: [12:13:08] <micmania1> Marvanni, 3.1 is still in development so you'd need 3.1.0.x-dev
1177: [12:13:54] <micmania1> 3.0.5 is the latest stable release (3.0.*) should do.
1178: [12:16:02] * PanPipes quit (Quit: Computer went to sleep)
1179: [12:18:31] * PanPipes has joined #silverstripe
1180: [12:20:49] * PanPipes quit (Client Quit)
1181: [12:21:42] * chillu has joined #silverstripe
1182: [12:32:01] <Marvanni> ah, yes that seems to work...
1183: [12:35:50] <Marvanni> ty
1184: [12:42:36] * Guits has joined #silverstripe
1185: [12:52:45] * benly quit (Ping timeout: 250 seconds)
1186: [13:36:46] * g4b0 has joined #silverstripe
1187: [13:37:00] <g4b0> hi all
1188: [13:37:09] <g4b0> I'm working on a custom RequiredFields
1189: [13:37:55] <g4b0> and it's working fine, but I need to know the DO ID during validation
1190: [13:38:33] <g4b0> there's apparently no way to do it :)
1191: [13:40:12] <g4b0> I tried passing the ID in my validator constructor
1192: [13:40:43] <g4b0> but during getCMSValidator() $this->ID is not set
1193: [13:40:50] <g4b0> http://pastebin.com/MYuZ2Tpd
1194: [13:41:27] <g4b0> it's logging ID1: 0 also when I'm editing an existent DO
1195: [13:41:36] <g4b0> how can I solve?
1196: [13:41:48] <Marvanni> and if you take a custom formfield to validate?
1197: [13:41:56] <andylockran> Hey
1198: [13:41:58] <Marvanni> what do you need to validate
1199: [13:42:16] <andylockran> With the subsites module, is there a way to create a subsite that inherits content from a parent.
1200: [13:42:26] <andylockran> i.e. create a main site as id 0
1201: [13:42:38] <andylockran> then subsite 1 will inherit all content from id 0
1202: [13:43:04] <g4b0> Marvanni: a field needs to be unique
1203: [13:43:45] <andylockran> (I'll add the potential to override it to the subsite, but (i.e if $Content length is > 0) - then display the subsites' conent?
1204: [13:43:46] <Marvanni> So UniqueTextField extends TextField{ function validate(){}}
1205: [13:44:56] <g4b0> I'm using this: http://pastebin.com/s1c1sNy2
1206: [13:47:22] <micmania1> anylockin, what version of silverstripe you using?
1207: [13:48:02] <Marvanni> g4b0 how about something like this?
1208: [13:48:02] <Marvanni> http://sspaste.com/paste/show/5231c4cbd05a6
1209: [13:48:13] <micmania1> andylockran*
1210: [13:49:03] <g4b0> Marvanni: the problem is that I need to validate more than one DataObject
1211: [13:49:26] <Marvanni> but to start you only need the ID of the current record right?
1212: [13:49:26] <g4b0> my code is working
1213: [13:49:55] <g4b0> but I can't access the current record ID
1214: [13:50:01] <g4b0> right
1215: [13:50:38] * travis-ci has joined #silverstripe
1216: [13:50:38] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#528 (2.4 - 6543b4e : Ingo Schommer): The build passed.
1217: [13:50:38] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/2713c462a264...6543b4e6f0d8
1218: [13:50:38] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/11280706
1219: [13:50:38] * travis-ci has left #silverstripe
1220: [13:51:59] <Marvanni> and in the method php does $data['ID'] exists?
1221: [13:53:20] <g4b0> no :(
1222: [13:53:59] <g4b0> I'm trying to pass it through the constructor
1223: [13:54:15] <Marvanni> and $this->form->getRecord() ?
1224: [13:54:56] * travis-ci has joined #silverstripe
1225: [13:54:56] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#939 (2.4 - a914dee : Ingo Schommer): The build passed.
1226: [13:54:56] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/84a8b2193649...a914dee6d908
1227: [13:54:56] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11280700
1228: [13:54:56] * travis-ci has left #silverstripe
1229: [13:55:52] <Marvanni> any experience with Elastica ?
1230: [13:55:53] <Marvanni> https://github.com/ajshort/silverstripe-elastica
1231: [13:55:54] <g4b0> $this->form->getRecord()->ID works
1232: [13:56:03] <g4b0> let's me try :)
1233: [13:59:16] * Guits quit (Ping timeout: 264 seconds)
1234: [14:05:59] * travis-ci has joined #silverstripe
1235: [14:05:59] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#940 (2.4 - d98c1db : Ingo Schommer): The build passed.
1236: [14:05:59] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/a914dee6d908...d98c1db3a2b5
1237: [14:05:59] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11281077
1238: [14:05:59] * travis-ci has left #silverstripe
1239: [14:08:46] <g4b0> Marvanni: it works, thanks a lot
1240: [14:16:27] <g4b0> Marvanni: never tried silverstripe-elastica
1241: [14:33:02] * travis-ci has joined #silverstripe
1242: [14:33:03] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#529 (2.4.12 - 36afefc : Ingo Schommer): The build passed.
1243: [14:33:03] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/commit/36afefc1f7eb
1244: [14:33:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/11282131
1245: [14:33:03] * travis-ci has left #silverstripe
1246: [14:33:37] <ec8or> i am trying to limit the records that can be inserted in a many_many relationship using a gridfield relationhandler (specifically using GridFieldRelationHandler by simon_w but tried without)
1247: [14:34:33] <ec8or> is this possible? like are you supposed to be able to filter the list like this: new GridField('HomePlayers', 'Home team players who played in this game', Player::get()->filter('TeamID', 3), $config);
1248: [14:34:46] * travis-ci has joined #silverstripe
1249: [14:34:46] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#941 (2.4.12 - a4faba0 : Ingo Schommer): The build passed.
1250: [14:34:46] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/commit/a4faba06628b
1251: [14:34:46] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11282126
1252: [14:34:46] * travis-ci has left #silverstripe
1253: [14:34:48] <ec8or> I just seem to end up with all Players in the database
1254: [14:35:10] <Zauberfisch_> ec8or: well, using filter is not such a good idea if you ask me
1255: [14:35:25] <Zauberfisch_> 2 things I can think of:
1256: [14:35:55] <ec8or> i had it working in a very strange way before, that i still don't understand how it worked... but now i need to grab a list of Players from a different class, and then use that as a base for selecting who can be added to this relationship
1257: [14:35:58] <Zauberfisch_> 1) see of the NetefxValidator supports limiting gridfields with manymany
1258: [14:36:58] <Zauberfisch_> 2) is actually easer:
1259: [14:37:11] <Zauberfisch_> inside your getCMSFields:
1260: [14:37:48] <Zauberfisch_> actually
1261: [14:37:49] <Zauberfisch_> wait
1262: [14:37:53] <Zauberfisch_> what are you trying to limit?
1263: [14:37:56] <Zauberfisch_> the number of records?
1264: [14:38:13] <Zauberfisch_> or some other sort of limit (as in limit to a certain group of players or so?)
1265: [14:39:17] * Guits has joined #silverstripe
1266: [14:39:50] <Zauberfisch_> so if you want to
1267: [14:39:55] <ec8or> certain group of players
1268: [14:40:05] * priithansen has joined #silverstripe
1269: [14:43:29] <Zauberfisch_> a) limit a gridfield to a number of 3 items: http://paste2.org/jBc9kf20
1270: [14:44:11] * spronk2 quit (Quit: spronk2)
1271: [14:45:45] <Zauberfisch_> b) limit by a group: http://paste2.org/txc6LMwg
1272: [14:46:08] <ec8or> cool, let me have a look
1273: [14:47:11] <Zauberfisch_> I typed that in the textfield of paste2.org, so there might be syntax errors / spelling mistages
1274: [14:47:27] <Zauberfisch_> but the idea should work
1275: [14:52:48] <ec8or> Zauberfisch_: yes i think it does, but not picked up by GridFieldRelationHandler
1276: [14:53:00] <ec8or> should be fine to add some code for that though, cheers
1277: [14:57:34] * travis-ci has joined #silverstripe
1278: [14:57:34] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#530 (3.0 - a2342ce : Ingo Schommer): The build passed.
1279: [14:57:34] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/2b20a027358b...a2342ce1ffa1
1280: [14:57:34] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/11282486
1281: [14:57:34] * travis-ci has left #silverstripe
1282: [15:10:31] * travis-ci has joined #silverstripe
1283: [15:10:32] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#944 (3.0.6-rc2 - 24bae3f : Ingo Schommer): The build has errored.
1284: [15:10:32] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/commit/24bae3f922b8
1285: [15:10:32] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11283051
1286: [15:10:32] * travis-ci has left #silverstripe
1287: [15:20:29] * travis-ci has joined #silverstripe
1288: [15:20:29] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#943 (3.0 - a6b402f : Ingo Schommer): The build passed.
1289: [15:20:29] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/2da4d76c3b3d...a6b402f4919e
1290: [15:20:29] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11283045
1291: [15:20:29] * travis-ci has left #silverstripe
1292: [15:22:28] <Marvanni> if I have en.yml and a en_GB.yml lang file, and the current locale is en_GB, is the en.yml also merged in the translations?
1293: [15:26:50] * travis-ci has joined #silverstripe
1294: [15:26:50] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#531 (3.0.6-rc2 - 65939e1 : Ingo Schommer): The build passed.
1295: [15:26:50] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/commit/65939e1ede9e
1296: [15:26:50] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/11283067
1297: [15:26:50] * travis-ci has left #silverstripe
1298: [15:28:30] * ARNHOE quit (Remote host closed the connection)
1299: [15:28:44] * Nivery has joined #silverstripe
1300: [15:28:48] <ec8or> Zauberfisch_: sweet, got it to work
1301: [15:28:50] <ec8or> thankjs
1302: [15:38:21] * sam_ has joined #silverstripe
1303: [15:38:32] <sam_> hi all
1304: [15:38:33] <andylockran> hey guys
1305: [15:38:43] <sam_> facing problem in site name
1306: [15:39:08] <andylockran> tell us Sam
1307: [15:39:14] <sam_> http://www.planmytournament.com/listingpage/show/13165
1308: [15:39:28] <sam_> in the above link, the map is showing
1309: [15:39:40] <sam_> but... http://planmytournament.com/listingpage/show/13165
1310: [15:39:54] <sam_> here map is not getting displayed
1311: [15:39:59] <sam_> please help
1312: [15:40:20] <sam_> in .ss page, code is like....
1313: [15:42:00] <Marvanni> wtf is that with all those Injector stuff...
1314: [15:42:15] <Marvanni> I really can't anymore where errors are coming from...
1315: [15:42:22] <Marvanni> see
1316: [15:42:45] <andylockran> both show for me :)
1317: [15:43:03] <ec8or> yeah both maps show up here
1318: [15:43:08] * travis-ci has joined #silverstripe
1319: [15:43:09] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#945 (3.1.0 - cb517fd : Ingo Schommer): The build passed.
1320: [15:43:09] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1c31c098ee2c...cb517fda9e3f
1321: [15:43:09] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11283218
1322: [15:43:09] * travis-ci has left #silverstripe
1323: [15:43:20] <ec8or> although one is in the middle of the pacific ocean
1324: [15:43:40] <ec8or> doubt you get much golf there
1325: [15:43:48] <andylockran> yeah -you've got a XSS problem
1326: [15:43:54] <andylockran> XMLHttpRequest cannot load http://www.planmytournament.com/googlemap/phpsqlsearch_genxml_mini.php. Origin http://planmytournament.com is not allowed by Access-Control-Allow-Origin.
1327: [15:44:12] <andylockran> You need to change the Allow-Origin to accept the subdomains
1328: [15:44:19] <sam_> http://www.sspaste.com/paste/show/5231dfe0acb91
1329: [15:44:21] <sam_> code
1330: [15:44:37] <andylockran> You cannot issue requests through the XMLHttpRequest to other domains or subdomains. If you are issuing the request from www.foo.com you also need to target the request at www.foo.com and not leave out the www.
1331: [15:44:41] <sam_> how can i do that?
1332: [15:45:12] <sam_> Access-Control-Allow-Origin
1333: [15:45:14] <sam_> ?
1334: [15:46:01] <Marvanni> or get the base href value if you need the domain
1335: [15:46:04] <andylockran> you need to change the target domain to the current domain. - not sure how to do that in JS. in php it'd be like $_SERVER['HTTP_HOST'] - ... or something similar
1336: [15:46:21] <Marvanni> but i think you can remove the full domain part since bas_haref should take care of that
1337: [15:46:57] <sam_> Marvanni: please tell me.....what will be the line for base_href....?
1338: [15:47:08] <micmania1> sam_ you can make your javascript file a javascript template file and call $BaseHref instead of hardcarding the URL.
1339: [15:47:14] <Marvanni> better try just /googlemap/phpetcetcetc
1340: [15:47:17] <Marvanni> that should work
1341: [15:47:35] <micmania1> That wil make you URL relative
1342: [15:47:52] <Marvanni> not if you start with slash
1343: [15:48:38] <Marvanni> $("base").attr("href")
1344: [15:48:45] <Marvanni> if its in your template
1345: [15:48:46] <sam_> ok
1346: [15:48:49] <sam_> let me try
1347: [15:49:03] * guci0 has joined #silverstripe
1348: [15:49:14] <guci0> Hello Moto!
1349: [15:49:22] * chillu changed the topic to 'Welcome to #silverstripe discussion - IRC logs available: http://ss.org.nz/logs || Ask your question, don't ask about asking your question || 12th of Sept 2013: We have security releases for 2.4, 3.0 and 3.1. See https://groups.google.com/forum/#!forum/silverstripe-announce || Development mailing list: http://ss.org.nz/ss-dev'
1350: [15:49:50] <guci0> :)
1351: [15:50:35] <micmania1> anylockran, re your earlier problem: In 2.4 you could create template site which you could then duplicate
1352: [15:51:15] <micmania1> That basically duplicates the SiteTree but loses a few relationships (images/files etc)
1353: [15:51:35] <micmania1> Haven't used subsites in ss3 though
1354: [15:53:01] * unculture has joined #silverstripe
1355: [15:57:21] * sam_ quit (Ping timeout: 250 seconds)
1356: [15:57:44] * violetina has joined #silverstripe
1357: [15:57:49] * travis-ci has joined #silverstripe
1358: [15:57:49] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#532 (3.1.0 - 553f325 : Ingo Schommer): The build passed.
1359: [15:57:49] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/3dc86f98a3c5...553f32576d65
1360: [15:57:49] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/11283300
1361: [15:57:49] * travis-ci has left #silverstripe
1362: [15:59:21] <unculture> Hi Silverstripe people. I'm wondering about performance. Is it usual for a Silverstripe site to take about 800ms to render the html of a page?
1363: [15:59:47] <kinglozzer> unculture: Which version of SilverStripe are you using?
1364: [16:00:01] * g4b0 quit (Quit: Sto andando via)
1365: [16:00:47] <unculture> 3.0.x
1366: [16:00:50] <kinglozzer> Ours usually take around 300ms for 3.0.x, a little less for 3.1.x
1367: [16:00:56] <Marvanni> not uncommon for larger sites, tries partial caching?
1368: [16:01:00] <Marvanni> s=d?
1369: [16:01:09] <ec8or> unculture: are you on shared hosting?
1370: [16:01:18] <ec8or> ss3 is pretty resource-hungry
1371: [16:01:19] <unculture> No, I've just set up a trial install on a local vagrant box.
1372: [16:01:37] <unculture> Looking for a CMS for my company to use.
1373: [16:02:10] <unculture> This is a Silverstripe site I think (not mine) : http://www.cheltenhamfestivals.com/
1374: [16:02:22] <unculture> It's super quick. I wonder how they've done it?
1375: [16:02:36] <kinglozzer> <meta name="generator" content="SilverStripe - http://silverstripe.org">
1376: [16:02:40] <kinglozzer> It is :)
1377: [16:02:43] * MrGuits has joined #silverstripe
1378: [16:02:57] <Marvanni> http://www.cheltenhamfestivals.com/Security/login?BackURL=%2Fadmin
1379: [16:02:59] <Marvanni> yep
1380: [16:03:00] * Guits quit (Read error: Connection reset by peer)
1381: [16:03:05] <ec8or> enough whitespace in there to be SilverStripe ;)
1382: [16:03:09] <kinglozzer> unculture: Probably a blazing fast server, static publishing
1383: [16:03:09] <unculture> :-)
1384: [16:03:28] <unculture> Yes, static publishing would do it.
1385: [16:03:31] <ec8or> yeah that looks like static html
1386: [16:03:38] <unculture> Ok.
1387: [16:04:20] <unculture> That's great.
1388: [16:04:47] <unculture> Thanks all.
1389: [16:08:01] * sam_ has joined #silverstripe
1390: [16:08:05] <sam_> hi....
1391: [16:08:21] <sam_> please help me on basrhref in javascript
1392: [16:10:13] <kinglozzer> window.location.host
1393: [16:10:40] * Error404NotFound quit (Ping timeout: 256 seconds)
1394: [16:11:12] * travis-ci has joined #silverstripe
1395: [16:11:12] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#948 (3.1.0-rc2 - 645e41f : Ingo Schommer): The build has errored.
1396: [16:11:12] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/commit/645e41fdd29b
1397: [16:11:12] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11283776
1398: [16:11:12] * travis-ci has left #silverstripe
1399: [16:11:23] * kinglozzer quit (Remote host closed the connection)
1400: [16:12:56] <andylockran> getting a really stange error with Subsite::disable_subsite_filter(true);
1401: [16:13:10] <andylockran> If I call it before a query, then return the result - it works fine
1402: [16:13:22] <andylockran> if I call it before a query, return the result, then disable it - it works fine
1403: [16:13:53] <andylockran> however, if I call it before a query, store the result, disable it, then return the result - then the result is as it it has been disabled.
1404: [16:13:56] * travis-ci has joined #silverstripe
1405: [16:13:56] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#947 (3.1.0 - 7627d95 : Ingo Schommer): The build passed.
1406: [16:13:56] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/505db1f73122...7627d95555f6
1407: [16:13:56] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11283770
1408: [16:13:56] * travis-ci has left #silverstripe
1409: [16:23:47] * atmos quit (Ping timeout: 250 seconds)
1410: [16:27:23] * travis-ci has joined #silverstripe
1411: [16:27:23] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#533 (3.1.0-rc2 - 7088bb5 : Ingo Schommer): The build passed.
1412: [16:27:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/commit/7088bb5c79a6
1413: [16:27:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/11283782
1414: [16:27:23] * travis-ci has left #silverstripe
1415: [16:41:21] * chillu quit (Quit: chillu)
1416: [16:49:32] * travis-ci has joined #silverstripe
1417: [16:49:32] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#949 (3.1 - 03d1d58 : Ingo Schommer): The build passed.
1418: [16:49:32] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/d747334737ed...03d1d58148ef
1419: [16:49:32] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11285483
1420: [16:49:32] * travis-ci has left #silverstripe
1421: [17:01:45] * Nivery quit (Quit: Nivery)
1422: [17:16:15] * unculture quit (Remote host closed the connection)
1423: [17:22:31] * ARNHOE has joined #silverstripe
1424: [17:23:46] * micmania1 has joined #silverstripe
1425: [17:27:01] * micmania2 has joined #silverstripe
1426: [17:30:13] * micmania1 quit (Ping timeout: 248 seconds)
1427: [17:30:47] * cloph_away is now known as cloph
1428: [17:32:41] * sam_ quit (Ping timeout: 250 seconds)
1429: [17:36:29] * joelpittet has joined #silverstripe
1430: [17:50:57] * Liquide has joined #silverstripe
1431: [17:58:49] * gelignite has joined #silverstripe
1432: [18:08:16] * swordsmanz quit (Ping timeout: 264 seconds)
1433: [18:38:56] * chillu has joined #silverstripe
1434: [18:45:23] <Marvanni> Any Elastica experience online?
1435: [18:47:42] * joelpitt_ has joined #silverstripe
1436: [18:50:38] * joelpittet quit (Ping timeout: 240 seconds)
1437: [18:55:01] * micmania2 quit (Ping timeout: 248 seconds)
1438: [19:02:23] <Marvanni> I build my install with composer SS v 3.1.0 and https://github.com/ajshort/silverstripe-elastica
1439: [19:02:58] <Marvanni> Followed the minimal setup instructions, but keep getting issing argument 2 for SilverStripe\Elastica\ElasticaService::__construct()
1440: [19:03:07] <Marvanni> even on dev/build....
1441: [19:09:32] <Marvanni> i guess the Injector code is not functioning properly, but this is al fairly new to me
1442: [19:38:40] * nhorstmeier has joined #silverstripe
1443: [19:42:46] * BPower has joined #silverstripe
1444: [19:44:40] <simon_w> chillu, you forgot the /rc/ bit in the change log URLs again ;)
1445: [19:47:18] <nhorstmeier> when using ->addFieldToTab() in a DataExtension, can you set the insertBefore if the field you want to insert before is in another DataExtension
1446: [19:53:37] <simon_w> Only if the field has already been added
1447: [19:55:06] * atmos has joined #silverstripe
1448: [19:55:14] <atmos> it's Friday!
1449: [19:55:25] <BPower> Thursday here.
1450: [19:55:32] <chillu> simon_w: Garrrr
1451: [19:57:27] * simon_w changed the topic to 'Welcome to #silverstripe discussion - IRC logs available: http://ss.org.nz/logs || Ask your question, don't ask about asking your question || 12th of Sept 2013: We have security releases for 2.4, 3.0 and 3.1. See http://ss.org.nz/2.4.12, http://ss.org.nz/3.0.6rc2 and http://ss.org.nz/3.1.0rc2 || Development mailing list: http://ss.org.nz/ss-dev'
1452: [20:01:34] <Marvanni> Does anybody see what i'm missing here?
1453: [20:01:35] <Marvanni> http://sspaste.com/paste/show/52321c571d244
1454: [20:02:09] <simon_w> Marvanni, arguments for the extension
1455: [20:02:34] <simon_w> https://github.com/ajshort/silverstripe-elastica#usage
1456: [20:02:48] * BPower quit (Remote host closed the connection)
1457: [20:03:38] * joelpitt_ quit (Remote host closed the connection)
1458: [20:04:22] <Marvanni> yeah, that what i put in injector.yml
1459: [20:09:59] * guci0 quit (Ping timeout: 250 seconds)
1460: [20:13:03] <Marvanni> simon where should I put that argument instead?
1461: [20:14:22] <Marvanni> im looking how it's done here : https://github.com/silverstripe/addons.silverstripe.org/blob/master/mysite/code/dataobjects/Addon.php
1462: [20:14:48] <Marvanni> and it seems implemented in the same way..
1463: [20:15:30] <simon_w> Marvanni, have you flushed?
1464: [20:16:45] <Marvanni> several times
1465: [20:17:36] <simon_w> Can you pastie the file you put the Injector config in?
1466: [20:18:30] <Marvanni> http://sspaste.com/paste/show/5232205acefee
1467: [20:19:09] <atmos> should that % be there?
1468: [20:19:21] <Marvanni> All spaces, no yml parsing errors
1469: [20:19:51] <simon_w> Marvanni, and where's that file?
1470: [20:19:53] <simon_w> atmos, yes
1471: [20:20:19] <Marvanni> mysite/_config/injector.yml
1472: [20:25:21] * violetina quit (Remote host closed the connection)
1473: [20:25:25] <guzzlefry> [Warning] Missing argument 1 for ViewableData::getField() <-- <% loop $Actions %>$Field <% end_loop %> seems to be the culprit...just not sure why.
1474: [20:25:38] * DesignerX quit (Ping timeout: 256 seconds)
1475: [20:27:02] * travis-ci has joined #silverstripe
1476: [20:27:03] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#952 (3.1 - 92c9feb : Ingo Schommer): The build passed.
1477: [20:27:03] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/03d1d58148ef...92c9febb9965
1478: [20:27:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11297155
1479: [20:27:03] * travis-ci has left #silverstripe
1480: [20:28:02] * Nivery has joined #silverstripe
1481: [20:29:01] <guzzlefry> So, what am I doing wrong?
1482: [20:29:13] <guzzlefry> Wondering if it's some change between 3.1.x-dev and the rc...
1483: [20:29:34] <simon_w> guzzlefry, you've called a field Field?
1484: [20:29:54] <guzzlefry> simon_w: don't believe so...
1485: [20:30:27] <Marvanni> Thats the version I use as well...
1486: [20:30:33] <guzzlefry> <% loop $Actions %>$Field<% end_loop %> That's straight from the docs.
1487: [20:30:57] <simon_w> guzzlefry, don't use $Field
1488: [20:31:01] <atmos> what is $Field in your case?
1489: [20:31:24] <guzzlefry> It *should* be one of the form actions.
1490: [20:31:36] <guzzlefry> let me try that debug thing.
1491: [20:31:58] <guzzlefry> k, that doesn't actually help. :P
1492: [20:32:15] <guzzlefry> simon_w: What should I be using instead of $Field?
1493: [20:32:39] <mobiusnz> anyone know how to get composer to work properly?
1494: [20:33:02] <guzzlefry> err
1495: [20:33:05] <atmos> mobiusnz: what's failing?
1496: [20:33:12] <guzzlefry> mobiusnz: Lots of answers to that. :P
1497: [20:33:15] <mobiusnz> http://pastie.org/8321035
1498: [20:33:26] <simon_w> Marvanni, try http://sspaste.com/paste/show/523223d527daa
1499: [20:33:35] <mobiusnz> https://github.com/composer/installers.git/info/refs gives access denied
1500: [20:34:15] * joelpittet has joined #silverstripe
1501: [20:34:22] <simon_w> guzzlefry, well, if it's actually a FormAction then $Field'll work
1502: [20:35:31] * coldblooded01 has joined #silverstripe
1503: [20:36:45] <guzzlefry> Yeah, I don't get why it isn't.
1504: [20:37:17] <mobiusnz> atmos: any ideas about that composer error?
1505: [20:37:59] <guzzlefry> It's calling getFIeld($field) for some reason.
1506: [20:38:11] <guzzlefry> $field being undefined.
1507: [20:38:12] * UndefinedOffset quit (Quit: Leaving.)
1508: [20:39:04] <atmos> mobiusnz: hmmmm
1509: [20:40:07] <atmos> mobiusnz: are you sure those urls are correct? I can't connec to any of them either
1510: [20:40:48] <atmos> well, the installer is fine at least
1511: [20:40:57] <mobiusnz> yeah, all I'm doing is composer create-project silverstripe/installer ~/www/ 3.1.0-rc1
1512: [20:41:04] <mobiusnz> I don't give it any specific urls
1513: [20:43:03] <atmos> mobiusnz: you need some kind of account for info/ref?
1514: [20:43:26] <mobiusnz> ?
1515: [20:44:19] <Marvanni> @simon_w yeah tried that as well, but no joy
1516: [20:44:28] <mobiusnz> http://doc.silverstripe.org/framework/en/installation/composer says nothing about any accounts required
1517: [20:44:39] * nickmolhoek has joined #silverstripe
1518: [20:44:40] * nickmolhoek quit (Remote host closed the connection)
1519: [20:44:47] <atmos> mobiusnz: I know, I'm just wondering why it's 403ing
1520: [20:44:54] * nickmolhoek has joined #silverstripe
1521: [20:47:00] <atmos> simon_w: thoughts on ^
1522: [20:47:02] <atmos> ?
1523: [20:48:04] <mobiusnz> hmm, running it as root seems to work
1524: [20:48:05] <mobiusnz> odd
1525: [20:48:16] <mobiusnz> me no like
1526: [20:48:43] <atmos> mobiusnz: don't get me started on permissions :P
1527: [20:50:16] <atmos> mobiusnz: what were you connecting as before?
1528: [20:51:02] <mobiusnz> the user that needs to own the web files
1529: [20:54:12] <Marvanni> hm there is a InjectionCreator.php with class InjectionCreator and class InjectionCreator also exists in Injector.php??
1530: [20:55:45] <Pyromanik> aww shit
1531: [20:55:51] <Pyromanik> nothing worse than working hungover
1532: [20:58:18] <mobiusnz> so composer requiring root pretty much rules out shared hosting, right?
1533: [20:59:57] * Stomach has joined #silverstripe
1534: [21:02:22] <Marvanni> it looks like the params are not passed at all...
1535: [21:02:47] <Marvanni> I don't see them in in any var_dumps in create, createWithArgs etc..
1536: [21:03:05] * philbenoti has joined #silverstripe
1537: [21:04:03] <philbenoti> hi all, trying to get Userforms to add a form field as subject, anyone have a solution?
1538: [21:07:26] <Pyromanik> mobiusnz: it requires root?
1539: [21:08:52] * stecman has joined #silverstripe
1540: [21:09:22] * nhorstmeier quit (Remote host closed the connection)
1541: [21:10:19] <atmos> Pyromanik: to install, he needed to use root
1542: [21:11:14] * gelignite quit (Quit: http://bit.ly/nkczDT)
1543: [21:11:54] <mobiusnz> Pyromanik: it bombs out trying to check out from git if non-root
1544: [21:11:58] <mobiusnz> kinda weird
1545: [21:14:57] * nhorstmeier has joined #silverstripe
1546: [21:17:48] <atmos> reporting services! :O
1547: [21:17:55] <atmos> Friday Fun!
1548: [21:17:57] <Pyromanik> mobiusnz: very weird
1549: [21:18:10] <Pyromanik> atmos: urgh
1550: [21:18:19] <Pyromanik> not as fun as being quite seriously hungover
1551: [21:19:08] <atmos> Pyromanik: I avoid that like the plague, it also sucks because everyone still loves Thirsty Thursdays for some reason
1552: [21:20:48] <atmos> why does no one wait until Friday anymore?
1553: [21:20:51] <Marvanni> could it be a regression bug like this one :
1554: [21:20:51] <Marvanni> https://github.com/silverstripe/silverstripe-framework/pull/1186?source=cc
1555: [21:24:16] <atmos> Marvanni: can't help but think it's an application error, but if you're just going in through commands... it should work without root
1556: [21:24:41] * ARNHOE quit (Remote host closed the connection)
1557: [21:29:05] * zippy__ has joined #silverstripe
1558: [21:30:18] <atmos> zippy__: no more rain!
1559: [21:33:11] <zippy__> nope, nice day
1560: [21:33:49] <zippy__> nz dominating the racing eh
1561: [21:34:56] <atmos> zippy__: yeah most of our office is down in teh staff room heh
1562: [21:36:26] <Marvanni> is there a way to list all yml configs loaded in SS?
1563: [21:38:26] <atmos> Marvanni: list all .yml files?
1564: [21:39:30] * mobiusnz1 has joined #silverstripe
1565: [21:39:37] * mobiusnz2 has joined #silverstripe
1566: [21:40:12] * mobiusnz quit (Ping timeout: 260 seconds)
1567: [21:41:51] * philbenoti quit (Ping timeout: 250 seconds)
1568: [21:41:57] <atmos> Marvanni: would you not just run a file search?
1569: [21:41:59] * micmania1 has joined #silverstripe
1570: [21:42:50] <Marvanni> no, i want to be sure my injection.yml is loaded at least somewhere
1571: [21:43:25] <atmos> Marvanni: ah right
1572: [21:43:47] * mobiusnz1 quit (Ping timeout: 260 seconds)
1573: [21:45:40] <Marvanni> ok, is ther an alternative way to yml configuration?
1574: [21:49:09] * Nivery quit (Quit: Nivery)
1575: [21:49:28] * ChronicD has joined #silverstripe
1576: [21:49:46] <Pyromanik> atmos: no idea
1577: [21:50:10] <Pyromanik> I didn't do thirsty thursday, there was an event on last night that I may have taken a little too far.
1578: [21:50:39] <simon_w> 66 seconds!
1579: [21:50:40] <Pyromanik> I just got paid out for the scrapes and bruises I have all over me
1580: [21:50:49] <Pyromanik> no idea how most of them got there :<
1581: [21:51:00] <Pyromanik> I remember climbing fences at one point...
1582: [21:51:13] <Pyromanik> got clotheslined by a tree in a carpark...
1583: [21:51:24] <Pyromanik> jsut all in all pretty f'n intense
1584: [21:51:35] <Pyromanik> And now I'm back at work.
1585: [21:53:05] <zippy__> Pyromanik: running from the cops again?
1586: [21:53:59] <atmos> oh, cool, IE9 won't read form.css properyly, but IE8 does, LOVE IT
1587: [21:54:09] <Pyromanik> zippy__: nah, trying to make it from BK to Maccas.
1588: [21:54:40] <zippy__> atmos: the joys!
1589: [21:54:52] <Pyromanik> atmos: wtf
1590: [21:54:55] <Pyromanik> screenies?
1591: [21:55:05] <atmos> Pyromanik: 2 secs
1592: [21:55:11] <zippy__> atmos: it's not wrapped in a browser conditional tag?
1593: [21:58:07] <atmos> zippy__: there are some tags for IE7, but no others
1594: [21:58:43] <atmos> blegh, good image hosting site?
1595: [22:00:15] <atmos> nvm, ie9 = http://images.inside-irc.net/image/ie9-8hv0zieod.png
1596: [22:00:40] <atmos> ie8 = http://images.inside-irc.net/image/ie8-15rzts15fnpf.png
1597: [22:01:23] * redstubble has joined #silverstripe
1598: [22:02:20] <atmos> redstubble: you guys pretty busy lately?
1599: [22:02:22] * Liquide quit ()
1600: [22:03:30] <redstubble> atmos: yeah, its pretty full on at the moment
1601: [22:05:19] <atmos> I remember the first thing they warned me about was how not to be scared of Alan heh
1602: [22:07:00] * BPower has joined #silverstripe
1603: [22:07:05] * SightUnseen has joined #silverstripe
1604: [22:09:01] <Pyromanik> atmos: heh. Not something random causing IE to ignore the rules?
1605: [22:09:18] <Pyromanik> like ie8 specific hacks?
1606: [22:09:43] * SightUnseen has left #silverstripe
1607: [22:09:45] <atmos> Pyromanik: probably, if I save the browser output of reset.css, IE9 is missing quite a bit of stuff that IE8 is using
1608: [22:12:02] <ss23> chillu: You still here?
1609: [22:12:20] <BPower> I want to get all DataObjects which have an ArticleURL. With the new ORM, how do I go about that? Page::get()->has('ArticleURL') ?
1610: [22:12:38] * Colin[pi] has joined #silverstripe
1611: [22:12:46] <Colin[pi]> morning all ^_^
1612: [22:14:00] <BPower> mornin'
1613: [22:14:08] <BPower> except that it's afternoon here ;)
1614: [22:14:55] <BPower> Colin[pi]: you probably know. How can I get the result I'm looking for here: Page::get()->has('ArticleURL')
1615: [22:15:12] <zippy__> BPower: What object has the ArticleURL - is it article?
1616: [22:15:21] <atmos> if anyone's interested http://channel9.msdn.com/Events/TechEd/NewZealand/2013/KEY201
1617: [22:15:22] <zippy__> BPower: then, ArticlePage::get();
1618: [22:15:22] <BPower> Page
1619: [22:15:46] <zippy__> BPower: Then you want all pages which have a article url in there? so fitler it
1620: [22:16:07] <BPower> Page extends DataObject { $db = array('ArticleURL' => 'varchar'); }
1621: [22:16:08] * mobiusnz2 quit (Quit: Leaving.)
1622: [22:16:26] <BPower> zippy__: so just Page::get()->filter('ArticleURL') is enough?
1623: [22:17:50] * CodeTrap has joined #silverstripe
1624: [22:19:05] * bjbk has joined #silverstripe
1625: [22:19:12] <bjbk> Hey guys
1626: [22:19:33] * atmos quit (Ping timeout: 250 seconds)
1627: [22:20:06] * zippy__ quit (Ping timeout: 256 seconds)
1628: [22:21:18] <bjbk> Anyone around to help me from ripping what's left of my hair out? I don't have much hair left...
1629: [22:21:29] <bjbk> I'm having a really hard time getting an extension to work on 3.0
1630: [22:21:52] <bjbk> I'm trying to decorate CalendarEvent.php from UncleCheese's calendar_event module
1631: [22:21:59] <bjbk> But it just doesn't seem to be applying
1632: [22:22:10] <UncleCheese> ok
1633: [22:22:18] <UncleCheese> how are you decorating it?
1634: [22:22:26] <bjbk> Hey man!
1635: [22:22:31] <bjbk> Didn't even see you where in here
1636: [22:22:44] <bjbk> Object::add_extension('CalenderEvent', 'Decorator_CalendarEvent');
1637: [22:23:23] <bjbk> http://pastie.org/private/iaoj2xtwwk5jatorpnnq
1638: [22:26:07] * willr has joined #silverstripe
1639: [22:27:20] * zippy__ has joined #silverstripe
1640: [22:27:34] <zippy__> stupid UFB
1641: [22:27:44] <zippy__> BPower: Magic happened?
1642: [22:29:16] * CodeTrap quit (Quit: CodeTrap)
1643: [22:29:38] <bjbk> @UncleCheese: Is that the correct way to approach it? Or have I got that all wrong?
1644: [22:29:47] <UncleCheese> no
1645: [22:29:57] <UncleCheese> you're using 3.1?
1646: [22:30:10] <bjbk> 3.0
1647: [22:30:59] <UncleCheese> use the config layer to apply extensions.. object::anything() is deprecated
1648: [22:31:18] * spronk has left #silverstripe
1649: [22:31:24] <simon_w> Shh UncleCheese, stop telling lies :p
1650: [22:31:26] * spronk has joined #silverstripe
1651: [22:31:31] <BPower> zippy__: magic?
1652: [22:31:34] * spronk has left #silverstripe
1653: [22:31:39] <zippy__> BPower: You got the filter/exclude working?
1654: [22:32:06] <BPower> haven't tested it yet. finishing the code first.
1655: [22:32:19] <simon_w> BPower, how's your Ubuntu Edge? :p
1656: [22:32:56] <bjbk> @UncleCheese - I thought that was only in 3.1?
1657: [22:32:59] * spronk has joined #silverstripe
1658: [22:33:51] <BPower> simon_w: https://dl.dropboxusercontent.com/u/4115701/temp/simon_w.jpg
1659: [22:34:13] <UncleCheese> it probably is, but you should get out of the habit of using the Object:: methods.. and using public statics in your data extension is going to break in 3.1
1660: [22:34:36] <bjbk> Sorry to be daft here, but how do I use the config layer?
1661: [22:34:40] <UncleCheese> tbh, i wouldn't be running 3.0 at this point.. it's not nearly as stable as 3.1
1662: [22:34:51] <bjbk> Oh 3.1 is released stable now?
1663: [22:34:56] <simon_w> Nope
1664: [22:35:00] <UncleCheese> it's not, but 3.0 is such shit that 3.1 RC is better
1665: [22:35:33] <UncleCheese> create a _config folder in your mysite
1666: [22:35:43] <UncleCheese> and create any .yml file, e.g. config.yml
1667: [22:35:46] <UncleCheese> and add:
1668: [22:35:49] <UncleCheese> CalendarEvent:
1669: [22:35:57] <UncleCheese> extensions:
1670: [22:36:01] <UncleCheese> - MyClass
1671: [22:36:05] <UncleCheese> then flish
1672: [22:36:15] <UncleCheese> should work in both 3.0 and 3.1
1673: [22:38:36] <simon_w> As does CalendarEvent::add_extension('MyClass');
1674: [22:39:01] <bjbk> I tried that, but it complained that add_extension needed 2 arguments
1675: [22:39:05] <bjbk> so I'm assuming that is 3.1 only
1676: [22:39:13] <simon_w> Shouldn't be
1677: [22:39:24] <UncleCheese> argument 1 should default to get_called_class();
1678: [22:40:01] * Jayden90 has joined #silverstripe
1679: [22:40:15] <simon_w> Ah right, it's just that Object::add_extension() itself isn't deprecated
1680: [22:40:32] <bjbk> So I should just jump up to 3.1 and be done with it
1681: [22:40:49] <UncleCheese> i would.. there's really no benefit to using 3.0 right now
1682: [22:40:52] <simon_w> Well, you can just use Object::add_extension('CalenderEvent', 'MyClass')
1683: [22:40:58] <UncleCheese> the only issue is that 3.1 is not backward compatible
1684: [22:41:06] <UncleCheese> which means it really should be 4.0, not 3.1
1685: [22:41:10] <UncleCheese> but that's beside the point
1686: [22:41:17] <bjbk> @simon_w - that's what I'm trying, but my decorator just doesn't seem to be applying to CalendarEvent at all
1687: [22:41:19] <UncleCheese> so the upgrade is a bit dodgy
1688: [22:41:28] <UncleCheese> what makes you think it's not applying?
1689: [22:41:40] <bjbk> I can't see the tab I'm adding in the page in the admin
1690: [22:41:43] <spronk> UncleCheese: you sound a bit bitter :P
1691: [22:42:36] <Jayden90> http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0-rc2 is a 404 :(
1692: [22:42:40] <simon_w> bjbk, can you pastie your extension?
1693: [22:42:47] <simon_w> Jayden90, look at the reply
1694: [22:42:49] <bjbk> http://pastie.org/private/iaoj2xtwwk5jatorpnnq
1695: [22:43:59] <Jayden90> I just connected to IRC now, found the link here https://groups.google.com/forum/#!topic/silverstripe-announce/CA-sTlJKNu4/discussion
1696: [22:44:24] <simon_w> Jayden90, yes, and look at the reply to the top post
1697: [22:44:44] <simon_w> bjbk, on dev/build, does the many_many get created?
1698: [22:44:49] <bjbk> No
1699: [22:44:55] * atmos has joined #silverstripe
1700: [22:45:06] <atmos> fixed, form.css was a bit borked
1701: [22:45:20] <Jayden90> simon_w: ahhh ty
1702: [22:45:43] <simon_w> bjbk, and where's your Object::add_extension() call?
1703: [22:45:48] <bjbk> in config.php
1704: [22:45:54] <bjbk> Object::add_extension('CalenderEvent', 'Decorator_CalendarEvent');
1705: [22:46:20] <bjbk> I tried the yaml approach UncleCheese described but that was no different
1706: [22:48:00] <bjbk> I managed to get a decorator for CalendarDateTime (a dataobject) to work just fine, it just seems to be Page's aren't applying
1707: [22:52:52] <UncleCheese> just for fun, try adding static $extensions = array ('Decorator_CalendarEvent'); to CalendarEvent
1708: [22:54:59] <atmos> why would they get Paul Ego to present
1709: [22:56:34] <bjbk> UncleCheese - that worked
1710: [22:57:19] <UncleCheese> that's messed up
1711: [22:57:31] <ss23> Flush!
1712: [22:59:54] <Colin[pi]> Wipe!
1713: [23:00:19] <ss23> :D
1714: [23:01:06] * mobiusnz has joined #silverstripe
1715: [23:03:28] <zippy__> UncleCheese: Someone should just flick the switch on 3.1 then!!
1716: [23:03:38] <ss23> zippy__: The RC's aren't done yet
1717: [23:03:43] <ss23> zippy__: Though there is a new RC out! :D
1718: [23:03:57] <zippy__> So 3.0 is better then
1719: [23:04:23] <ss23> zippy__: Just because 3.1 is better doesn't mean it should be released with known bugs and limited testing
1720: [23:04:37] * micmania1 quit (Ping timeout: 248 seconds)
1721: [23:04:54] <Pyromanik> zippy__: no, 3.1 better.
1722: [23:06:13] * zippy__ is conflicted
1723: [23:07:11] <simon_w> pr\base is better!
1724: [23:07:36] <spronk> it's all shit. be done with you
1725: [23:07:37] <Colin[pi]> zend is better!
1726: [23:07:48] * spronk points to Colin[pi]
1727: [23:07:55] <simon_w> Now you're just being stupid
1728: [23:08:12] <ss23> spronk++
1729: [23:18:18] * micmania1 has joined #silverstripe
1730: [23:22:05] <Pyromanik> pocketrent\simonwsframework eh
1731: [23:26:18] <Colin[pi]> i made my own framework once... never again
1732: [23:27:12] <spronk> www.school-links.org.nz runs on a framework that i built
1733: [23:27:20] <spronk> (along with pitchandtone who now works for dna)
1734: [23:27:30] * spronk agrees with Colin[pi]. never again.
1735: [23:27:42] * simon_w is liking his framework
1736: [23:27:50] <spronk> so did i at first
1737: [23:27:57] <ss23> oh
1738: [23:28:02] <ss23> I was like "I thought it was SilverStripe"
1739: [23:28:07] <Colin[pi]> it's good because you control every minute detail, it sucks because you control every minute detail
1740: [23:28:09] <spronk> for the first year or so, you'll be all "yeah this is awesome"
1741: [23:28:14] <spronk> but thena fter a year
1742: [23:28:19] <ss23> haha
1743: [23:28:20] <spronk> you'll be wondering where all your developers are
1744: [23:28:25] <spronk> and why your bugs haven't gone away
1745: [23:28:29] <ss23> Is it hackable, spronk?!
1746: [23:28:32] <spronk> and realise that it's all your own work
1747: [23:28:33] <spronk> D:
1748: [23:28:40] <Colin[pi]> oh god that rings so true with me too spronk
1749: [23:28:44] <spronk> mm
1750: [23:28:52] * Jayden90 quit (Quit: Jayden90)
1751: [23:28:56] <ss23> help
1752: [23:29:01] <ss23> I think I took down your server, spronk ;_;
1753: [23:29:01] <spronk> then you'll slowly come to the realisation that it's gonna be easier to just ditch everything you built on top of this proprietary framework
1754: [23:29:06] <ss23> It's been loading for ~30 seconds....
1755: [23:29:07] <spronk> lolwtf
1756: [23:29:13] <Colin[pi]> lol
1757: [23:29:20] <ss23> ...
1758: [23:29:23] <ss23> now nothing is loading
1759: [23:29:23] <ss23> ;_;
1760: [23:29:24] <ss23> SORRY
1761: [23:29:28] <spronk> prolly backedoff your ip coz of your haxxing
1762: [23:29:33] <ss23> haha
1763: [23:29:35] <spronk> also, it's up and running just fine
1764: [23:29:45] <ss23> http://myschoollinks.school-links.org.nz/
1765: [23:29:50] <ss23> WON'T LOAD
1766: [23:29:50] <ss23> :<
1767: [23:29:55] <spronk> for you
1768: [23:29:56] <Colin[pi]> if ip = ss23 then DENY
1769: [23:30:05] <ss23> How can I hacked if I'm deny!
1770: [23:30:25] <spronk> nah it's more lie
1771: [23:30:26] <ss23> hmm
1772: [23:30:26] <ss23> loading now
1773: [23:30:27] <spronk> like
1774: [23:30:31] <spronk> if various issues detected
1775: [23:30:35] <spronk> exponential backoff
1776: [23:30:43] <ss23> really, spronk? Like it actually does?
1777: [23:30:48] <spronk> yeah
1778: [23:31:02] <ss23> hmm
1779: [23:31:03] <spronk> it's only really DOS "protection" though
1780: [23:31:15] <ss23> Trying to log in with username "%" and password "password" just gives never loading page
1781: [23:31:19] <ss23> :<
1782: [23:31:44] <spronk> yarp
1783: [23:31:46] <ss23> y dis, spronk?!
1784: [23:31:46] <ss23> Y DIS
1785: [23:32:03] <spronk> dno
1786: [23:32:06] <spronk> let me see what query it generates
1787: [23:32:30] <ss23> Error loading http://myschoollinks.school-links.org.nz/MySchools: Connection reset by peer
1788: [23:32:43] <ss23> inb4 it loops through every user in teh database
1789: [23:33:37] <ss23> geta is lulz for that
1790: [23:33:45] <ss23> "Hi yes my username is % and my password is password"
1791: [23:35:07] <nhorstmeier> is there an easy way to know/control the order of DataExtensions being loaded
1792: [23:35:27] <spronk> ss23: you probably are causing it to loop througha selection of authkeys
1793: [23:35:41] * ss23 found DoS vulerninbility
1794: [23:35:48] <spronk> well
1795: [23:35:51] <ss23> spronk: Do you have a bounty program for security researchers like me?!
1796: [23:35:55] <spronk> it doesn't loop through that many..
1797: [23:35:58] <spronk> lolno
1798: [23:36:07] <spronk> but we are looking to get some pen testing work done..
1799: [23:36:07] * ss23 pops spronk's server
1800: [23:36:17] <ss23> :D
1801: [23:36:18] <ss23> I PENTEST
1802: [23:36:19] <ss23> $50k
1803: [23:36:22] <ss23> 100% secure!
1804: [23:36:22] <spronk> lolno
1805: [23:36:29] <nhorstmeier> running into an issue with ->addFieldToTab($tab,$field,$insertBefore) and $insertBefore doesn't work, guessing because the field from another DataExtension isn't loaded yet
1806: [23:36:42] <ss23> My flatmate stopped working at Insomnia and is now working at Aura
1807: [23:36:49] <spronk> oo
1808: [23:36:52] <ss23> All I can say is "lol at anyone who gets pentesting"
1809: [23:37:04] <spronk> hmm?
1810: [23:37:09] <Pyromanik> where does the pen come from in pentesting?
1811: [23:37:09] <ss23> just
1812: [23:37:12] <Pyromanik> I mean
1813: [23:37:15] <ss23> penetration, Pyromanik
1814: [23:37:16] <Pyromanik> you don't use a pen to do the testing.
1815: [23:37:22] <ss23> security industry is just lulz as shit, spronk :P
1816: [23:37:24] * Pyromanik penetrates
1817: [23:37:45] <Pyromanik> god
1818: [23:37:50] <Pyromanik> hungry
1819: [23:37:55] <ss23> XD
1820: [23:38:00] <Pyromanik> didn't eat breakfast, didn't think it'd stay down :<
1821: [23:38:09] <spronk> damn brau
1822: [23:38:16] <spronk> still drunk from last night? :P
1823: [23:38:19] <Pyromanik> yes.
1824: [23:38:37] <Stomach> in SS3 is there an easy way to add a variable to the first element in a relationlist
1825: [23:38:41] <Stomach> for example 'Current' :D
1826: [23:38:48] <Pyromanik> getting more sober, with that comes just plain tireness and the graze on my face is getting sore-er
1827: [23:38:51] <Stomach> or do I need to convert it to a DataObjectSet first
1828: [23:39:15] <Pyromanik> DataObjectSet?
1829: [23:39:20] <Stomach> or whatever it is now
1830: [23:39:25] <Pyromanik> DataList
1831: [23:39:29] <Pyromanik> it is a DataList
1832: [23:39:47] <Colin[pi]> Stomach: ->First() doesn't work?
1833: [23:39:48] <Pyromanik> it implments arrayaccess
1834: [23:39:56] <Stomach> yeah
1835: [23:39:57] <Stomach> $people = $this->People();
1836: [23:39:57] <Stomach> $people->first()->Current = true;
1837: [23:39:58] <Stomach> doesnt work
1838: [23:40:15] <Pyromanik> so I guess you might be able to use ... wait, what are you trying to do?
1839: [23:40:29] <Stomach> im trying to set a "current" on a list
1840: [23:40:32] <Pyromanik> array iterator funcs like next() etc
1841: [23:40:34] <Stomach> so i can do like "view/1"
1842: [23:40:41] <Stomach> and then set 1 to the current element
1843: [23:40:41] <Pyromanik> what/
1844: [23:40:43] <Stomach> etc etc
1845: [23:40:57] <Pyromanik> foreach($this->Relations()) ?
1846: [23:41:49] <Stomach> yea I think I have to do it that way - I thought there might have been an easier way to edit an element or add to something already in a datalist
1847: [23:42:18] <Pyromanik> $this->People()->first()->setField('Current', true)->write() ?
1848: [23:44:07] <Stomach> it doesn't love me :P
1849: [23:44:14] <Stomach> ill just loop and insert into a new list
1850: [23:44:18] <Stomach> i can just cache it later
1851: [23:46:16] * howardgrigg has joined #silverstripe
1852: [23:48:03] <simon_w> Oh array_column, you so good
1853: [23:48:11] <ss23> so good so good so good so
1854: [23:48:14] <ss23> he's climbing in yo window
1855: [23:48:18] <ss23> he's snatchin yo people up
1856: [23:50:15] <spronk> there. fixed ss23's loopy bug
1857: [23:51:20] <spronk> you shouldn't ever be able to log in with said bug, because you have to have a correct username as well as password
1858: [23:51:21] <guzzlefry> ss23: hide yo' wife hide yo' kids?
1859: [23:51:28] <spronk> but yknow
1860: [23:52:35] * nhorstmeier quit (Remote host closed the connection)
1861: [23:53:08] <ss23> spronk: Does it not just pick any matching user?
1862: [23:53:16] <ss23> spronk: e.g. if any user in the system has password "password", iet lets you in?
1863: [23:54:09] <spronk> ss23: username forms part of the salt
1864: [23:54:32] <ss23> Aw kk
1865: [23:54:33] <spronk> but it uses value from post token, not database
1866: [23:54:39] <spronk> so yeah, it finds first user
1867: [23:54:49] <spronk> with some random username
1868: [23:54:53] <spronk> forms salt with %
1869: [23:54:55] <spronk> fails miserably
1870: [23:55:16] <spronk> the auth framework has partial key matching, whcih is why % works
1871: [23:55:20] <ss23> lol
1872: [23:57:18] <spronk> but, simon_w, this is why you don't write your own framework
1873: [23:57:26] <spronk> because ss23 comes along and fines some minor DOS bug
1874: [23:57:28] <spronk> and you have to fucking fix it
1875: [23:57:29] * BPower quit (Remote host closed the connection)
1876: [23:57:54] <simon_w> Or James does
1877: [23:57:54] <ss23> hahaha
1878: [23:58:05] <spronk> also, ss23, "password" would never work
1879: [23:58:26] <spronk> while we have an extremely loose password policy, there is a very short blacklist
1880: [23:58:46] <ss23> password12!
1881: [23:59:36] <ss23> Someone uses "newzealand" on geta
1882: [23:59:45] <spronk> lolz

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