#silverstripe IRC Log

IRC log for 20 November 2014

All timestamps are in UTC.

1: [00:03:34] <Colin[pi]> fuck you, windows: http://i.imgur.com/77QgVim.gif
2: [00:03:56] <antmas> lol
3: [00:04:53] <Colin[pi]> it's doing it on any app I try to launch
4: [00:04:54] <Kingy> don't be a hater Colin[pi]
5: [00:06:47] <Colin[pi]> looks like reboot time soon!
6: [00:10:39] <Kingy> task manager kill all the things?
7: [00:13:09] <Colin[pi]> killed explorer, still doing it
8: [00:13:12] <Colin[pi]> right.. brb http://i.imgur.com/flu5KE8.gif
9: [00:13:21] * Colin[pi] quit ()
10: [00:18:44] * Colin[pi] has joined #silverstripe
11: [00:19:08] <Kingy> 1:13:21 PM ↔ Colin[pi] nipped out
12: [00:19:15] <Kingy> more like rage quit the fuck out
13: [00:19:18] <Colin[pi]> fixed!
14: [00:23:05] * veb has joined #silverstripe
15: [00:23:49] * muskie9 is now known as _muskie9_
16: [00:30:18] * _muskie9_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
17: [00:30:49] <Stomach> mahfuz - that looks like it should work
18: [00:30:53] <Stomach> :\
19: [00:31:27] <mahfuz> But not working its making 2 entries in db
20: [00:31:53] <mahfuz> I have been trying different options with the code but not working
21: [00:32:06] * muskie9 has joined #silverstripe
22: [00:32:43] <Stomach> is that object just a dataobject?
23: [00:33:16] <Stomach> you could try doing $oldLightboxtPhoto->update(array('LightboxID' => $targetlightboxid)); instead?
24: [00:33:19] * Shrike_Finland1 quit (Quit: Leaving.)
25: [00:33:28] <mahfuz> Stomach: Yes they are here- http://www.sspaste.com/paste/show/546d211927193
26: [00:34:03] * Jakx has joined #silverstripe
27: [00:34:30] <Jakx> Can anyone help me figure out why this mysql syntax throws an error? http://sspaste.com/paste/show/546d31d512205
28: [00:34:32] <Stomach> can you try the update code?
29: [00:35:06] <Stomach> Jakx - ProgressStatus.Level
30: [00:35:07] <mahfuz> I ok
31: [00:35:14] <Stomach> that should be Transaction.Level
32: [00:35:23] <Stomach> you're left joining the table onto transaction
33: [00:36:17] <Jakx> Stomach, cool, changed that, it's still throwing an error :(
34: [00:36:25] <Stomach> whats the error
35: [00:36:52] <Jakx> I added it as a comment to sspaste
36: [00:37:49] <Stomach> you probably need to quote those items
37: [00:39:24] <mahfuz> Stomach: It is updating the record with the LightboxID but creating another one with the old LightboxID where the other fields are blank. I am stuck with this for long. Thanks for helping me with suggestions
38: [00:39:40] * muskie9 is now known as _muskie9_
39: [00:41:04] <Stomach> mahfuz - sorry I'm not sure why that would happen
40: [00:41:08] <Stomach> what version of SS are you on?
41: [00:41:39] <mahfuz> 3.1.6
42: [00:42:47] <Stomach> is there any other code where lightbox is getting created
43: [00:42:49] <Stomach> ?
44: [00:43:02] <Stomach> try commenting out all other code that relates to it apart from that function
45: [00:43:19] <mahfuz> ok
46: [00:43:27] <Jakx> Stomach, as in `ProgressStatus`.'Level'?
47: [00:43:34] <Stomach> Jakx - yeah
48: [00:43:46] <Stomach> or with double quotes is the SS standard I believe
49: [00:44:30] <Stomach> e.g
50: [00:44:30] <Stomach> $groups = DB::query("SELECT \"GroupID\" from \"Group_Members\" WHERE \"MemberID\" = " . $memberID);
51: [00:45:19] * _muskie9_ is now known as muskie9
52: [00:45:25] <Stomach> so double quote table and column names
53: [00:47:04] * muskie9 is now known as _muskie9_
54: [00:50:36] <Jakx> Cool, thanks for the example.
55: [00:50:37] <Jakx> http://sspaste.com/paste/show/546d35a06a3f5
56: [00:50:58] <Jakx> Stomach, :(
57: [00:51:06] <Jakx> It's like it doesn't like the "LEFT JOIN" syntax?
58: [00:52:29] * antmas quit (Quit: Page closed)
59: [00:55:04] * _muskie9_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
60: [00:55:39] * jenniferaslan quit (Quit: jenniferaslan has left the room)
61: [00:57:46] <Snowman23> composer constraint for "3.*" is valid right?
62: [00:57:51] <Snowman23> Or do you have to use ~3.0?
63: [00:57:53] <Snowman23> uh
64: [00:57:54] <Snowman23> ~3
65: [00:57:57] <Snowman23> ~3.0
66: [00:57:58] <Snowman23> yeah
67: [00:58:41] * spronk2 has joined #silverstripe
68: [01:01:13] <Jakx> Stomach, i needed the WHERE statement to come after the LEFT JOIN :(
69: [01:01:27] <Jakx> Stomach, thanks for your help man, you really helped me pinpoint that. I appreciate it
70: [01:02:34] <Ryan-Toast> antmas: we done here: http://www.gfycat.com/TepidPossibleBull
71: [01:03:14] <Jakx> Great use of gfycat too
72: [01:04:35] * babak quit (Quit: Connection closed for inactivity)
73: [01:07:02] * antmas has joined #silverstripe
74: [01:08:53] <antmas> wait
75: [01:08:59] <antmas> wehn did 3.1.8 happen?
76: [01:09:29] <simon_w|work> Just after 3.1.7
77: [01:09:35] <Ryan-Toast> a day after, since there was an install bug
78: [01:09:40] <spronk2> LOLQA
79: [01:10:12] <Ryan-Toast> how do I get the id from a url like: www.mysite.com/action/123
80: [01:10:20] <Ryan-Toast> where id = 123
81: [01:10:43] <Ryan-Toast> would it just be a single parameter in the action method?
82: [01:11:01] <Kingy> antmas you found it you found it
83: [01:11:29] <antmas> Kingy: oh that one I found?
84: [01:11:33] <antmas> I never reported it :P
85: [01:11:38] <Kingy> rofl
86: [01:11:39] <Colin[pi]> Ryan-Toast: $request->param('ID')
87: [01:11:43] <Kingy> well you came across it anyway
88: [01:11:45] <Ryan-Toast> Colin[pi]: churbo
89: [01:11:51] <antmas> I knew somone would pick it straight away
90: [01:12:17] <Ryan-Toast> antmas: I installed a version, and had to set a default admin in the config so I could get in :/
91: [01:12:33] <antmas> Ryan-Toast: ah that was how you got around it?
92: [01:12:42] <antmas> did you use composer Ryan-Toast ?
93: [01:13:00] <Ryan-Toast> antmas: yes
94: [01:13:37] <antmas> I used composer and didn't realise I was getting 3.1.7 as technically it wasn't released into the wild
95: [01:14:30] <antmas> thought I was going nuts because my admn email didn't work :P
96: [01:14:48] * Tanger has joined #silverstripe
97: [01:17:08] <Colin[pi]> wow, gta5 screenie with DOF looking pretty real: http://prod.hosted.cloud.rockstargames.com/ugc/gta5photo/YjB4SamD3UmQ1HF7Qf1bsg_0_0.jpg
98: [01:18:27] <antmas> Colin[pi]: I can't wait for the PC version
99: [01:18:39] <Colin[pi]> will be the tits
100: [01:18:42] <antmas> will def need to get this upgrade for that :P
101: [01:20:24] * onfire has joined #silverstripe
102: [01:21:05] <onfire> Is it possible to have a form reload the submitted data if it fails and there is a redirectBack()?
103: [01:21:12] <onfire> i feel like I've done this before but just can't find it
104: [01:21:19] <Stomach> onfire - sure is
105: [01:22:00] <Stomach> $form->loadDataFrom($this->getRequest()->postVars());
106: [01:22:16] <onfire> on the form method or in the action
107: [01:22:17] <Stomach> or $form->loadDataFrom(Session::get("FormInfo.{$this->FormName()}.data"));
108: [01:22:20] <antmas> Colin[pi]: if that debris/rubbish had shadows that would be complete
109: [01:22:31] <Stomach> onfire - if you have a class extending form
110: [01:22:49] <Stomach> add $this->loadDataFrom(Session::get("FormInfo.{$this->FormName()}.data")); after the parent::_construct call
111: [01:22:54] <Colin[pi]> antmas: another shot: i.imgur.com/8BILS7A.jpg
112: [01:23:10] <Colin[pi]> antmas: O_O http://prod.hosted.cloud.rockstargames.com/ugc/gta5photo/dy7IJgpI0U6CIMZ3byEh4g_0_0.jpg
113: [01:23:14] <spronk2> damn
114: [01:23:18] <spronk2> that's impressive
115: [01:23:20] <onfire> sorry I just mean do you do that in the function that is creating the form or the function that handles data after submission
116: [01:23:22] <spronk2> artwork for that must take aaages
117: [01:23:26] <spronk2> unless they algogen it
118: [01:23:36] <onfire> e.g. MyForm() or doSubmit()
119: [01:23:57] <Colin[pi]> spronk2: prolly use some sort of tool
120: [01:24:09] <spronk2> fibgen!
121: [01:25:03] <onfire> Stomach, doesn't seem to work in either method, must be doing something wrong..
122: [01:25:07] <antmas> Colin[pi]: wooooooah
123: [01:25:18] <Stomach> onfire - pastie your code for the form?
124: [01:25:19] <antmas> prolly speedtree :P
125: [01:26:24] <Ryan-Toast> How can I make my rederWith use the root Page.ss and a Layout template?
126: [01:26:30] <Ryan-Toast> right now it only uses the layout
127: [01:27:03] <Ryan-Toast> current code: http://www.sspaste.com/paste/show/546d3e4d277de
128: [01:27:06] <antmas> Colin[pi]: I had such fun with that game on 360 - but man the hardware struggled with it
129: [01:27:11] <onfire> Stomach, http://pastie.org/private/cesghudxtyjryaejm51vqg
130: [01:27:30] <Colin[pi]> antmas: glorious PC gaming master race :D
131: [01:27:40] <Ryan-Toast> onfire: just use $data
132: [01:27:48] <antmas> Colin[pi]: :D
133: [01:27:53] <onfire> yea thats what I thought, doesn't seem to work though! not sure why
134: [01:28:28] <Ryan-Toast> onfire: try have a look at my ContactForm() method https://github.com/Rhym/ss_boilerplate/blob/master/boilerplate/code/Modules/ContactForm/code/ContactPage.php
135: [01:28:30] <onfire> also Ryan-Toast, paramaters should be array
136: [01:28:41] <onfire> ->renderWith(array('EventPage', 'Page'));
137: [01:29:18] <Stomach> yeah looks like you need the second one i pasted onfire
138: [01:29:19] <Ryan-Toast> onfire: Ah, nice catch :d thanks
139: [01:29:28] <Stomach> $form->loadDataFrom(Session::get("FormInfo.{$form->FormName()}.data"));
140: [01:29:30] <onfire> $form->loadDataFrom(Session::get("FormInfo.{$this->FormName()}.data"));
141: [01:29:38] <antmas> lol ^^
142: [01:29:39] <onfire> ok cool, need to set the session info?
143: [01:29:43] <antmas> jinx
144: [01:29:46] <Stomach> nah that gets set in the validator
145: [01:29:51] <Stomach> antmas - they are different ;)
146: [01:30:00] <onfire> thanks!
147: [01:30:24] <antmas> Stomach: oh they are too :P
148: [01:31:45] <onfire> Stomach, data doesn't seem to be present in the Session
149: [01:32:03] <onfire> after redirect that is
150: [01:32:24] <Stomach> oh
151: [01:32:33] <Stomach> do your validation in a validate() method
152: [01:32:40] <Stomach> not in the doSubmit method
153: [01:32:56] <onfire> on the DO
154: [01:32:56] <onfire> ?
155: [01:33:11] <onfire> or controller?
156: [01:36:03] <spronk2> UGH
157: [01:36:11] <Stomach> we do it like this onfire
158: [01:36:12] <Stomach> http://pastie.org/9731251
159: [01:36:14] <spronk2> where is my programming language that does the stuff i want nicely D:
160: [01:36:18] <spronk2> and is super popular
161: [01:36:51] <Colin[pi]> spronk2: those two things are not mutually exclusive :P
162: [01:37:26] <spronk2> :(
163: [01:37:34] <spronk2> i'm kinda getting the FP kool-aid
164: [01:37:38] <antmas> spronk2: yeah you're in the wrong channel for that one
165: [01:37:42] <spronk2> like.. functional types
166: [01:38:07] <spronk2> i.e. their type is (InputType -> OutputType)
167: [01:38:23] <spronk2> let you do all sorts of really cool stuff that is analogous to some OO design patterns
168: [01:38:36] <antmas> do it in Haskell
169: [01:38:48] <spronk2> yeah but I don't really like Haskell
170: [01:39:18] <Colin[pi]> spronk2: oh man, do antmas and I have the presentation to convince you to change your mind!
171: [01:39:25] <spronk2> >
172: [01:39:25] <Colin[pi]> spronk2: do you like snails?
173: [01:39:26] <spronk2> ?
174: [01:39:36] <spronk2> NO THEY ARE SLIMY AND I FEEL REALLY BAD IF I CRUSH THEIR SHELLS
175: [01:39:48] <antmas> Colin[pi]: ROFL
176: [01:39:50] <antmas> oh memories
177: [01:40:05] <Colin[pi]> spronk2: ohhh then maybe the WDCNZ talk we were bored shitless by is not for you :(
178: [01:40:09] <JeremyRoundill> Baaah
179: [01:40:13] <spronk2> Colin[pi] which one?
180: [01:40:20] <spronk2> i probably have seen it already
181: [01:40:21] <antmas> lol 'which one'
182: [01:40:25] <Colin[pi]> spronk2: haskell functional programming snail lady
183: [01:40:28] <spronk2> hmm
184: [01:40:29] <JeremyRoundill> I'm only getting "Internal server error" when I try to run my silverstripe site
185: [01:40:29] * spronk2 hasn't
186: [01:40:34] <spronk2> maybe i skipped over it because haskell
187: [01:40:35] <antmas> HFPSL
188: [01:40:41] <novaweb> "update your web page in Google Search with the Submit to Index function of the Fetch as Google tool"
189: [01:40:42] <JeremyRoundill> And I've got environment: dev
190: [01:40:47] <JeremyRoundill> Is there something I'm missing?
191: [01:40:51] <novaweb> Does Submit To Index still even exist?
192: [01:40:56] <novaweb> Damned if I can find it!
193: [01:41:00] <spronk2> this year?
194: [01:41:20] <spronk2> katie miller - coder decoder?
195: [01:41:23] <spronk2> http://vimeo.com/103376420
196: [01:41:37] <antmas> that's it
197: [01:41:53] <antmas> it was NOT the droid I was looking for when I went in there with Colin[pi]
198: [01:42:09] <Colin[pi]> haha yeah antmas and I both realised we had made a terrible mistake about 5 mins in
199: [01:42:25] <spronk2> :(
200: [01:42:28] <spronk2> but fnprog
201: [01:42:30] <spronk2> SO MATHZ
202: [01:42:34] <antmas> even chillu and irogue agreed
203: [01:42:48] <Colin[pi]> spronk2: it felt like a uni lecture
204: [01:42:57] <spronk2> omg
205: [01:42:59] <spronk2> the shitty rhyming
206: [01:43:04] <antmas> didn't help that I was hungover as shit
207: [01:43:08] <Colin[pi]> hahaha
208: [01:44:59] <antmas> WDCNZ this year was snails, robots and js
209: [01:45:10] <Stomach> SNAILS ARE DELICIOUS
210: [01:45:18] <spronk2> ew
211: [01:45:28] <antmas> snails taste like venison imo
212: [01:46:23] <Colin[pi]> kinda chewy
213: [01:55:59] * micmania1 quit (Quit: micmania1)
214: [01:59:29] * helenclarko has joined #silverstripe
215: [02:00:40] * wmk has joined #silverstripe
216: [02:01:23] <helenclarko> Hey all, quick question. How do I add an extra payment method to the Swipestripe shopping cart? I currently have the pxpay method working, but the cheque plugin doesnt show up in the dropdown. I cant work out what needs to be added to the .yml file to make it work.
217: [02:02:29] <novaweb> helenclarko you probably need to do so in your config.yml file
218: [02:02:40] <novaweb> this is how it's done using omnipay and payment modules
219: [02:02:47] <novaweb> do it = add it
220: [02:04:01] <helenclarko> Yea, I currently have - 'PaymentExpressPxPay' under supported_methods. but when i add - 'Cheque' underneath, I get an error when running /dev/build.
221: [02:04:02] <novaweb> ok so my window wasnt showing me your whole message
222: [02:04:27] <novaweb> ok i'll take a look at something two secs
223: [02:04:42] <helenclarko> Im clearly doing it wrong, I just cant work it out.
224: [02:06:29] <novaweb> ok have you checked your tabbing/spacing in your yml file
225: [02:08:16] <novaweb> and have you tried ChequePayment as opposed to Cheque?
226: [02:08:26] <helenclarko> Can it be like this?
227: [02:08:26] <helenclarko> http://pastebin.com/rJ2EgLJ0
228: [02:08:52] <helenclarko> I want both options.
229: [02:10:03] <helenclarko> Nevermind, I got it.
230: [02:10:10] <helenclarko> My spacing was wrong.
231: [02:10:13] <novaweb> Cool :)
232: [02:10:16] <helenclarko> Damnit!
233: [02:10:30] <helenclarko> I feel stupid! haha
234: [02:11:08] <novaweb> Welcome to my world
235: [02:12:00] <novaweb> I am sure I am the laughing stock of the silverstripe offices/irc channel. It's cool though, at least I hopefully make some people's days brighter.
236: [02:13:00] * wmk quit (Read error: No route to host)
237: [02:13:09] * novaweb points at Snowman23
238: [02:13:10] * wmk has joined #silverstripe
239: [02:15:58] * wmk quit (Read error: Connection reset by peer)
240: [02:18:20] * antmas quit (Quit: Page closed)
241: [02:21:55] <Stomach> nobody laughs
242: [02:21:58] <Stomach> we're all stupid
243: [02:22:02] <Stomach> :(
244: [02:23:51] <Stomach> ps incrond is awesome
245: [02:24:50] <spronk2> hmm
246: [02:24:54] <spronk2> i understand fp concepts
247: [02:25:00] <spronk2> but that talk was waay too fast and waay too deep
248: [02:32:58] <mahfuz> Hey I am making a ajax call to do some dataobject operation which is not happening properly. I have commented out all my code in the function but still a record is being created in the database. My other ajax calls are working as desired but for this one I can't find our the reason. Tried to debug with all that I know but can't figure out why a record is being created.
249: [02:33:31] <spronk2> PASSSTEEEBIINNN!!!!!
250: [02:33:31] <spronk2> :)
251: [02:33:58] <mahfuz> My function is blank now.
252: [02:34:12] <mahfuz> I am just making the call when a link is clicked
253: [02:34:42] <mahfuz> Checked whether it is calling the right function
254: [02:35:30] * micmania1 has joined #silverstripe
255: [02:35:54] <mahfuz> Stomach: I commented all in the function but still one record is being created
256: [02:37:45] <Colin[pi]> spronk2: did you watch the whole thing?
257: [02:37:50] <spronk2> ja
258: [02:37:57] <Colin[pi]> spronk2: you poor bastard
259: [02:38:00] <spronk2> lol
260: [02:39:06] <Stomach> mahfuz - is it being run twice by any chance?
261: [02:39:09] <Stomach> you never said it was ajax
262: [02:39:47] <mahfuz> The code was called using ajax
263: [02:39:54] * Snowman23 points back at novaweb
264: [02:39:59] <Stomach> so is it executing twice?
265: [02:40:06] <Stomach> Snowman23 - are you leaving SS or just getting a buddy?
266: [02:40:19] <mahfuz> I wrote about 4 other functions and called them using ajax which are working as desired
267: [02:40:30] <mahfuz> But this one I don't know why...
268: [02:40:30] <Stomach> doesn't mean this one is :P
269: [02:44:16] <Snowman23> Stomach: Neither? :O
270: [02:44:23] <Snowman23> Stomach: Oh, you mean the job?
271: [02:44:30] <Snowman23> Two people are leaving our team, we need to hire 3 new people
272: [02:44:42] <Snowman23> So if you wanna work for us, something something free coke at work something meet ss23 irl
273: [02:46:39] <Colin[pi]> "So if you wanna work for us, something something free coke at work something meet ss23 irl" <-- should be top para on SS jobs page
274: [02:46:51] <Jakx> lol
275: [02:47:04] <spronk2> haha
276: [02:47:07] <spronk2> ss23 scared them off
277: [02:47:18] <spronk2> or maybe simon_w's ranting about ss ltd did..
278: [02:48:41] <novaweb> I just tried finding a coke meme to post here and ended up with pictures of dicks plastered across my 23 inch screen.
279: [02:48:44] <novaweb> wth
280: [02:49:50] <Snowman23> lol
281: [02:50:10] <novaweb> there is a cluster of like ten people sitting behind me facing this way :/
282: [02:50:18] <Colin[pi]> novaweb: rofl... so a standard search on Google Images then
283: [02:50:21] <spronk2> loool
284: [02:50:42] <helenclarko> Im getting the following message [Deprecated] preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead. The line its on reads: "$xpathcache[$xpathkey] = '//'.preg_replace($search,$replace,$css_selector);" can I simply replace .preg_replace with . preg_replace_callback?
285: [02:51:16] <Stomach> no
286: [02:52:05] <novaweb> I urge you to all search "cocacola meme" on google images
287: [02:52:17] <novaweb> it does not improve as you scroll down.
288: [02:52:58] <Stomach> i just see one tailor swift with a giant penis
289: [02:53:02] <Snowman23> helenclarko: Are you using SilverStripe 2.4?
290: [02:53:04] <Snowman23> helenclarko: You should upgrade
291: [02:53:11] <helenclarko> Im on 3.1
292: [02:53:35] <helenclarko> It seems to be in Swipestripe.
293: [02:53:52] <Stomach> do a PR to fix it, I can merge it for you :)
294: [02:54:29] <helenclarko> Whats that?
295: [02:54:47] <novaweb> Pull Request..
296: [02:57:01] <Stomach> oh i remember
297: [02:57:03] <Stomach> thats emogrifier
298: [02:57:11] <spronk2> omg
299: [02:57:13] <spronk2> emogrifier
300: [02:57:14] <spronk2> yuck
301: [02:57:20] <Stomach> https://github.com/swipestripe/silverstripe-swipestripe/issues/69
302: [02:57:25] <Stomach> I even opened an issue about it
303: [02:59:49] <helenclarko> Looks like its been solved
304: [03:01:19] <Blacklite> must be a cs:go night tonight
305: [03:04:21] * JeremyRoundill quit (Remote host closed the connection)
306: [03:04:51] * Phlunk3 has joined #silverstripe
307: [03:07:29] <Ryan-Toast> Does timefield have a javascript popup like showCalendar does?
308: [03:07:45] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
309: [03:10:59] <Colin[pi]> Ryan-Toast: ummmm in 2.4 at least it had a drop down?
310: [03:11:17] <Ryan-Toast> Colin[pi]: from what I can see it’s just an input field
311: [03:11:38] <Colin[pi]> Ryan-Toast: in 2.4 you could go: $timefield->setConfig('showdropdown', true);
312: [03:11:53] <Colin[pi]> not sure if that still works
313: [03:12:16] <Colin[pi]> doesn't look like it :\
314: [03:12:33] <Ryan-Toast> Colin[pi]: narp :(
315: [03:13:04] <Colin[pi]> well that's kinda shit
316: [03:13:13] <novaweb> Ryan - it's pretty good at interpretting number strings though
317: [03:13:27] <Ryan-Toast> navaweb: yeah just noticed that, formats things nicely.
318: [03:13:36] <novaweb> on my booking site, is have "example: 3pm" next to the field
319: [03:13:46] <novaweb> no mucked up bookings thus far.
320: [03:13:50] <Colin[pi]> novaweb: yeah but... if I have the option, I prefer to at least give users some sort of control to choose a value
321: [03:14:02] <Ryan-Toast> I like to pretend the user is a blind drunk.
322: [03:14:12] <Colin[pi]> if there's a way they can fuck it up, they will
323: [03:14:22] <novaweb> :D
324: [03:14:48] <Colin[pi]> Ryan-Toast: I might muck around with creating an extension of TimeField in that case
325: [03:14:59] <Ryan-Toast> Colin[pi]: meh, not super important I suppose
326: [03:16:04] <Colin[pi]> Ryan-Toast: like this for example: http://trentrichardson.com/examples/timepicker/
327: [03:20:15] <Kingy> wtf is this
328: [03:20:20] <Kingy> I sell something on trademe
329: [03:20:36] <Kingy> guy is like "hey do you come into Wellington City, if so could you drop it off"
330: [03:20:39] <Kingy> sure I say why not..
331: [03:20:48] <Ryan-Toast> Colin[pi]: I’m sure this should explain it well enough: http://i.imgur.com/fzxBZrf.jpg
332: [03:20:54] <Kingy> oh ok, the address is way the fuck on the other side in the middle of no where
333: [03:21:19] <Ryan-Toast> Kingy: Just reply saying he’s too far.
334: [03:21:28] <Kingy> yeah I am
335: [03:21:28] <Colin[pi]> Ryan-Toast: yeah, should be ok
336: [03:21:30] <Kingy> annoying though
337: [03:21:44] <Colin[pi]> Kingy: people are shit
338: [03:22:21] <Phlunk3> yeah hate dealing with trademe ppl sometimes, still 10000x better than the locals on facebook buy/sell/trade pages though
339: [03:22:56] <Blacklite> where abouts in wellington?
340: [03:23:02] <Kingy> scary... "I hope that's an okay location??- it's my friend's house. I've never been there myself"
341: [03:23:08] <Kingy> dafuq
342: [03:23:14] <Kingy> Blacklite: Brooklyn
343: [03:23:21] <Ryan-Toast> Kingy: are you selling your body again, Kingy?
344: [03:23:26] <Blacklite> oh up that way, like kowhai park?
345: [03:23:28] <Kingy> Ryan-Toast: apparently
346: [03:23:42] <Blacklite> fuk dat
347: [03:23:49] <Kingy> Blacklite: end of that street in fact
348: [03:23:53] <Blacklite> hah
349: [03:24:21] <Kingy> should make the fucker drive to masterton to get it
350: [03:24:51] <Colin[pi]> Kingy: never underestimate how idle people can be
351: [03:25:09] <Kingy> yeah and considering I'd then have to drive back home after is crazy
352: [03:25:18] <Kingy> be like 40min before I'm even on the motorway
353: [03:25:22] <Kingy> by which time it's rushhour
354: [03:26:23] <Colin[pi]> reminds me of this cock that came to buy my car the other week, several times he's like "so... um, does anything else come with the car? what else comes with it? is this it? is there anything else?"
355: [03:26:25] <Colin[pi]> dude
356: [03:26:38] <Colin[pi]> you're buying my car, you want my fucking apartment and gf as well you tit?
357: [03:26:44] <Blacklite> lmao
358: [03:28:19] <Blacklite> my nissan has failed a wof for a seatbelt and a wing mirror, as a result i don't have it for 2 weeks. vtnz sucks
359: [03:28:37] <Colin[pi]> :\
360: [03:28:53] <Blacklite> he said "the chip in the wing mirror is sharp"
361: [03:30:46] * Olliepop quit (Ping timeout: 246 seconds)
362: [03:30:46] <Kingy> lol
363: [03:31:33] * onfire quit (Quit: Page closed)
364: [03:33:09] * micmania1 quit (Quit: micmania1)
365: [03:35:30] * micmania1 has joined #silverstripe
366: [03:35:39] <Colin[pi]> Kingy: ikr? like not a day goes by where I don't think "what the fuck is wrong with people"
367: [03:36:09] <Colin[pi]> that theme is looking pretty sex btw Ryan-Toast
368: [03:36:18] <Ryan-Toast> Colin[pi]: Cheers :)
369: [03:36:28] <Ryan-Toast> It’s in my BP if you want to grab the code
370: [03:36:36] <Ryan-Toast> It’s not done yet though, so fair warning
371: [03:39:07] <novaweb> later baters. If any of you want to learn to kick arse/prevent RSI from coding, Nivea from SilverStripe introduced me to Wing Tsun Kung Fu 5 years ago. Our next intake is at the end of January, we only have intakes twice a year. a high percentage of our members are computer programmers and people in IT. Hit me up for more info josh@novaweb.co.nz
372: [03:41:24] <Ryan-Toast> queue everyone checking out your website.
373: [03:41:32] <novaweb> Dude. Do not.
374: [03:41:34] <novaweb> Hahaha
375: [03:41:37] <Ryan-Toast> TOO LATE
376: [03:41:38] <novaweb> it is old asf
377: [03:41:55] <Ryan-Toast> We see you, Josh. We see you.
378: [03:41:59] <Blacklite> yep
379: [03:42:02] * novaweb goes and disables his .htaccess file
380: [03:42:15] <Blacklite> too late
381: [03:42:20] <Blacklite> crawled and cached the whole site
382: [03:43:31] <Blacklite> in all honest, sounds like a good course
383: [03:43:54] * Ryan-Toast shoukd get an ergonomic mouse
384: [03:43:55] <Blacklite> when i started working as a developer i developed some mild rsi, fixed it by upgrading my keyboard + mouse set at home
385: [03:44:34] <Ryan-Toast> IU started doing weight excercises for my wrisrts and shit, works pretty well.
386: [03:44:46] <Ryan-Toast> Man, typing with plasters on my fingers is hard.
387: [03:45:14] <novaweb> Ryan-Toast. Your balls are not that heavy and no masterbation does not count as exercises.
388: [03:45:16] <Kingy> stellar web design
389: [03:45:16] <Ryan-Toast> THIS CALENDAR LOOKS FSOO FUCKING GOOD, I JUST WANT TO LOOK AT IT ALL DAY
390: [03:46:13] <Ryan-Toast> novaweb: you don’t know me, guy. http://i.imgur.com/qV2Gd41.jpg
391: [03:46:24] <novaweb> hahahaha
392: [03:47:41] <Kingy> lolololo
393: [03:48:27] <Ryan-Toast> How do you have two actions in a form?
394: [03:49:17] <novaweb> in the form action call two functions to run?
395: [03:49:31] * novaweb has left #silverstripe
396: [03:49:41] * novaweb has joined #silverstripe
397: [03:50:23] * novaweb quit (Quit: Leaving)
398: [03:52:05] * JeremyRoundill has joined #silverstripe
399: [03:52:10] <JeremyRoundill> Yusss!
400: [03:52:21] <JeremyRoundill> Created my own tutorial SaaS thing for work
401: [03:52:23] <JeremyRoundill> Check it out
402: [03:52:24] <JeremyRoundill> http://tutorials.vo2.co.nz/vo2/
403: [03:53:44] <Ryan-Toast> “how to pat the dog”
404: [03:54:08] <JeremyRoundill> It even has clickable images.
405: [03:54:11] <JeremyRoundill> CLICKABLE IMAGES!
406: [03:54:49] <JeremyRoundill> This is the sort of high-quality 100% serious work we produce here at VO2.
407: [03:55:02] * Kingy is now known as Kingy[a]
408: [03:55:32] <Ryan-Toast> JeremyRoundill: I’ve just been making a pretty calendar all day.
409: [03:55:38] <JeremyRoundill> Oh yeah?
410: [03:55:43] <Ryan-Toast> yeah
411: [03:55:48] <JeremyRoundill> Did you click the images on the tutorial?
412: [03:55:52] <JeremyRoundill> They deserve to be clicked.
413: [03:55:59] <JeremyRoundill> Imagine all the zooming.
414: [03:56:12] <JeremyRoundill> What's the calendar look like now, Ryan-Toast?
415: [03:57:12] <Ryan-Toast> JeremyRoundill: one sec
416: [03:57:57] <Ryan-Toast> JeremyRoundill: http://www.gfycat.com/ImpeccableMarriedCentipede
417: [03:58:19] <JeremyRoundill> Is this anything like human centipede?
418: [03:58:39] <JeremyRoundill> Looks pretty cool.
419: [03:58:42] <Ryan-Toast> they took the inspiration for the movie from this Webm
420: [03:58:49] <jordanmk> anyone know if it's possible to set FormAction's to use button tag by default?
421: [03:59:03] <Hailwood> Hey guys is there anything build into silverstripe to strip spaces on display in a template? (for a phone number)
422: [03:59:08] <JeremyRoundill> jordanmk! I remember you.
423: [03:59:15] <JeremyRoundill> I totally submitted that pull request.
424: [03:59:21] <JeremyRoundill> I just need to clean up my code.
425: [03:59:21] <spronk2> hmm
426: [03:59:35] <spronk2> Hailwood typically you wouldn't want to strip spaces from a phone number for display...
427: [03:59:35] <Ryan-Toast> Hailwood: can’t just use php for that?
428: [03:59:46] * Phlunk3 quit (Remote host closed the connection)
429: [03:59:55] <Ryan-Toast> spronk2: think he means for te:
430: [03:59:58] <Ryan-Toast> tel: **
431: [04:00:06] <Hailwood> Ryan-Toast: yep
432: [04:00:11] <spronk2> o
433: [04:00:14] <Ryan-Toast> Hailwood: just use a regex
434: [04:00:17] <spronk2> ...?
435: [04:00:25] <helenclarko> Hey thanks again Stomach for the emogrifier fix.
436: [04:00:28] <jordanmk> JeremyRoundill, awesome, no worries :)
437: [04:00:35] <Hailwood> Ryan-Toast: Use it how?
438: [04:00:44] <JeremyRoundill> :)
439: [04:00:48] <Ryan-Toast> spronk2: for use in an anchor <ahrewf=“tel:123456789”>Derp</a>
440: [04:00:58] <spronk2> yeah yeah
441: [04:01:20] <Ryan-Toast> Hailwood: $foo = preg_replace('/\s+/', ' ',$bar']);
442: [04:01:36] <Ryan-Toast> Hailwood: wait, no.
443: [04:01:38] <Ryan-Toast> Wrong one
444: [04:02:06] <Ryan-Toast> Hailwood: $str = rtrim($str);
445: [04:02:14] <Ryan-Toast> WAIT
446: [04:02:16] <Ryan-Toast> NO
447: [04:02:18] <Ryan-Toast> WORNG ONE
448: [04:02:23] <Ryan-Toast> I NEED TO SLEEP
449: [04:02:38] <Ryan-Toast> $string = preg_replace('/\s+/', '', $string);
450: [04:02:47] <Ryan-Toast> 4/to-strip-whitespaces-inside-a-variable-in-php
451: [04:02:53] <Ryan-Toast> http://stackoverflow.com/questions/1279774/to-strip-whitespaces-inside-a-variable-in-php
452: [04:03:03] <Ryan-Toast> jesus, fuck.
453: [04:03:14] <Hailwood> Ryan-Toast: Oh yeah, I know I can do that, it's more I was wondering if I can get away with not having to write another function on the controller just to strip the spaces
454: [04:03:27] <Ryan-Toast> Hailwood: naw, don’t think so.
455: [04:05:51] <Hailwood> Sweet as
456: [04:06:56] <Stomach> no worries helenclarko
457: [04:10:29] * jedateach quit (Ping timeout: 272 seconds)
458: [04:25:51] * travis-ci has joined #silverstripe
459: [04:25:52] <travis-ci> silverstripe/silverstripe-cms#1090 (3 - 0c7da4b : Damian Mooyman): The build has errored.
460: [04:25:52] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/commit/0c7da4bbd2b4
461: [04:25:52] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/41564708
462: [04:25:52] * travis-ci has left #silverstripe
463: [04:25:59] * Ryan-Toast quit (Quit: Ryan-Toast)
464: [04:27:03] * spekulatius quit (Quit: Leaving)
465: [04:27:08] * Hailwood quit (Remote host closed the connection)
466: [04:27:15] * travis-ci has joined #silverstripe
467: [04:27:15] <travis-ci> silverstripe/silverstripe-cms#1090 (master - 8e9ebdb : Damian Mooyman): The build has errored.
468: [04:27:15] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/638fb464078c...8e9ebdbe972d
469: [04:27:15] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/41564710
470: [04:27:15] * travis-ci has left #silverstripe
471: [04:27:36] * Stomach quit (Ping timeout: 256 seconds)
472: [04:30:10] * veb has joined #silverstripe
473: [04:30:10] <simon_w|work> <spronk2> or maybe simon_w's ranting about ss ltd did..
474: [04:30:12] * veb quit (Client Quit)
475: [04:30:14] <simon_w|work> My ranting did lots of things!
476: [04:30:17] <spronk2> :D
477: [04:30:38] <simon_w|work> tcopeland wasn't happy. I should send him my blog post link
478: [04:43:47] * cloph_away has joined #silverstripe
479: [04:44:18] * cloph quit (Ping timeout: 264 seconds)
480: [04:54:06] * travis-ci has joined #silverstripe
481: [04:54:06] <travis-ci> silverstripe/silverstripe-framework#3660 (master - f17d594 : Damian Mooyman): The build passed.
482: [04:54:06] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/6baf63e18c40...f17d594141f6
483: [04:54:06] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/41564741
484: [04:54:06] * travis-ci has left #silverstripe
485: [04:58:38] * travis-ci has joined #silverstripe
486: [04:58:38] <travis-ci> silverstripe/silverstripe-cms#1091 (3 - e9e95b9 : Damian Mooyman): The build has errored.
487: [04:58:38] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/0c7da4bbd2b4...e9e95b9dbab5
488: [04:58:38] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/41565032
489: [04:58:38] * travis-ci has left #silverstripe
490: [04:59:00] * willr quit (Quit: willr)
491: [05:03:15] * micmania1 quit (Quit: micmania1)
492: [05:07:41] * spronk2 quit (Quit: I may need a longer sleep timer...)
493: [05:14:27] * veb has joined #silverstripe
494: [05:14:38] * veb quit (Changing host)
495: [05:14:38] * veb has joined #silverstripe
496: [05:14:44] * travis-ci has joined #silverstripe
497: [05:14:44] <travis-ci> silverstripe/silverstripe-cms#1092 (master - 6ace564 : Damian Mooyman): The build has errored.
498: [05:14:44] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/8e9ebdbe972d...6ace56418e82
499: [05:14:44] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/41565248
500: [05:14:44] * travis-ci has left #silverstripe
501: [05:16:41] * travis-ci has joined #silverstripe
502: [05:16:42] <travis-ci> silverstripe/silverstripe-framework#3661 (3 - 2aa1c1e : Damian Mooyman): The build passed.
503: [05:16:42] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/362e273bd21c...2aa1c1e11e84
504: [05:16:42] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/41565049
505: [05:16:42] * travis-ci has left #silverstripe
506: [05:24:41] * Stomach has joined #silverstripe
507: [05:27:08] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
508: [06:00:05] * Stomach quit (Quit: zzz)
509: [06:02:26] * willr has joined #silverstripe
510: [06:08:51] * Shrike_Finland has joined #silverstripe
511: [06:09:29] * Shrike_Finland quit (Client Quit)
512: [06:10:43] * babak has joined #silverstripe
513: [06:23:07] * willr quit (Quit: willr)
514: [06:31:57] * willr has joined #silverstripe
515: [06:56:19] * Shrike_Finland has joined #silverstripe
516: [07:02:43] * veb has joined #silverstripe
517: [07:04:17] * Colin[pi] quit (Ping timeout: 240 seconds)
518: [07:05:15] <Snowman23> Yo with subsites...
519: [07:05:22] <Snowman23> For some reason this site is going to a specific subsite instead of the main site
520: [07:05:25] <Snowman23> that's not intentional right?
521: [07:05:31] <Snowman23> Like, someone wrote code to do this? it doesn't happen by default?
522: [07:10:45] * deskmaster has joined #silverstripe
523: [07:11:03] <deskmaster> morning :)
524: [07:11:50] <Snowman23> moin
525: [07:12:14] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
526: [07:12:16] <deskmaster> I have quite a pickle this morning maybe some of you have an idea how to help me pls...
527: [07:12:56] <Snowman23> Whats up?
528: [07:13:23] * veb has joined #silverstripe
529: [07:13:36] <deskmaster> I have this DO: class PropertyPage extends Page{ $has_many = array( 'Rates' => 'PropertyRate' );
530: [07:14:11] <deskmaster> and PropertyRate has a has_one to PropertyPage
531: [07:14:46] <willr> Snowman23 checkbox in the cms marks the default main site right. If no domain matches perhaps picks the last ‘main’ site
532: [07:14:51] * micmania1 has joined #silverstripe
533: [07:15:48] <deskmaster> now the problem... I have GridField from PropertyPage to create PropertyRates however I need that in the getCMSFields of PropertyRate I get the initiator ID therefore the ID of the PropertyPage that created the GridField, any idea?
534: [07:17:55] * mahfuz quit (Ping timeout: 246 seconds)
535: [07:19:10] <Snowman23> willr: I see, chur
536: [07:24:32] <deskmaster> anyone pls? Is it even possible?
537: [07:25:30] * willr quit (Quit: willr)
538: [07:29:12] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
539: [07:30:33] * veb has joined #silverstripe
540: [07:32:26] * micmania1 quit (Quit: micmania1)
541: [07:36:03] * willr has joined #silverstripe
542: [07:36:19] * Eliseth has joined #silverstripe
543: [07:38:04] <Eliseth> Morning
544: [07:40:55] <Snowman23> moin
545: [07:45:54] * Shrike_Finland quit (Quit: Leaving.)
546: [07:48:08] * Shrike_Finland has joined #silverstripe
547: [07:48:20] * Shrike_Finland quit (Client Quit)
548: [07:51:48] * Teddy__ has joined #silverstripe
549: [07:54:37] * Teddy_ quit (Ping timeout: 240 seconds)
550: [08:08:57] * arnhoe has joined #silverstripe
551: [08:10:26] * r_hector has joined #silverstripe
552: [08:20:55] * Guits has joined #silverstripe
553: [08:27:30] * willr quit (Quit: willr)
554: [08:30:26] * Liquide quit ()
555: [08:37:37] * gavro has joined #silverstripe
556: [08:53:03] * kinglozzer has joined #silverstripe
557: [09:11:16] * gavro quit (Remote host closed the connection)
558: [09:15:12] <Tanger> deskmaster: So you want a gridfield to manage PropertyRates objects?
559: [09:15:51] <Tanger> deskmaster: And you want the peopertyPage ID in the getCMSFields for PropertyPages?
560: [09:15:55] * travis-ci has joined #silverstripe
561: [09:15:55] <travis-ci> silverstripe/silverstripe-framework#3662 (3.1 - f636d15 : Daniel Hensby): The build passed.
562: [09:15:55] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/d91150cc7242...f636d1533236
563: [09:15:55] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/41578148
564: [09:15:55] * travis-ci has left #silverstripe
565: [09:17:18] <Tanger> deskmaster: Sorry. I meant you want the PropertyPage ID in the getCMSFields of Propertyrates?
566: [09:21:17] * cloph_away is now known as cloph
567: [09:23:55] * Teddy_ has joined #silverstripe
568: [09:26:40] * Tanger quit (Quit: Tanger)
569: [09:27:13] * Teddy__ quit (Ping timeout: 258 seconds)
570: [09:28:38] * Alboes has joined #silverstripe
571: [09:35:26] * Teddy__ has joined #silverstripe
572: [09:35:49] <simon_w> I'm a pretty princess!
573: [09:35:58] <kinglozzer> deskmaster: It's possible. What do you need it for?
574: [09:36:00] <simon_w> My tiara is shiny and my tutu is fluffy!
575: [09:36:11] <kinglozzer> simon_w: Uhhrrr.. :P
576: [09:38:39] <simon_w> Jealous much?
577: [09:38:53] * Teddy_ quit (Ping timeout: 255 seconds)
578: [09:38:56] <deskmaster> Hi Kinglozzer thanks for your reply, the reason is validation
579: [09:40:18] <deskmaster> A PropertyRate can be assigned Guests, now Guests is the amount of people that rate is available for, example: Rate1: 10 Guests €500 a day and Rate2: 5 Guests €300 a day
580: [09:40:51] * Teddy_ has joined #silverstripe
581: [09:41:29] <deskmaster> Now in the Property Page has a value of maximum guests which for this example let's say it's 8 Guests, therefore I want validation that stops the user from adding Rate1 to the database and shows a nice error saying why that is not possible
582: [09:42:05] <Alboes> bom dia
583: [09:42:15] * gavro has joined #silverstripe
584: [09:43:45] <deskmaster> Sorry for the late reply btw @kinglozzer and @Tanger was in a meeting
585: [09:43:55] <Alboes> I use an shortcode to include something on a page. But if I make a virtual page to this real page, the shortcode isn't working. The code itself is showing on the virtual page, but not the included text.
586: [09:44:17] * Teddy__ quit (Ping timeout: 255 seconds)
587: [09:45:14] * Teddy_ quit (Ping timeout: 258 seconds)
588: [09:45:47] <kinglozzer> Alboes: known issue: https://github.com/silverstripe/silverstripe-cms/pull/1132
589: [09:46:27] <kinglozzer> deskmaster: I'm not entirely sure of the _best_ way to do it, but you can edit the PropertyRates form when you actually set up the GridField
590: [09:47:07] <deskmaster> can you show me how to do that please?
591: [09:47:28] <Alboes> okay, thanks
592: [09:47:45] <deskmaster> If I can edit the GirdField Form for PropertyRates from the PropertyPage code then it will all be easy
593: [09:47:50] <kinglozzer> deskmaster: http://api.silverstripe.org/3.1/class-GridFieldDetailForm.html#_setItemEditFormCallback
594: [09:48:09] <kinglozzer> You pass it an anonymous function, then you can edit the form
595: [09:48:16] <kinglozzer> I've got an example somewhere... sec
596: [09:49:56] * Jakx has left #silverstripe
597: [09:51:02] <deskmaster> thanks a lot will try it out :)
598: [09:51:35] <kinglozzer> deskmaster: Something like this: http://pastie.org/9731885
599: [09:52:14] <deskmaster> exactly what I was looking for! Thank u very much you're a life saver
600: [09:52:55] * wmk has joined #silverstripe
601: [09:56:18] * Pyawk has joined #silverstripe
602: [09:56:59] <kinglozzer> Pyawk: Is Colin[pi] https://github.com/colintucker ?
603: [09:57:08] <Pyawk> yush.
604: [09:57:14] <kinglozzer> Cool, thanks
605: [09:57:27] <Pyawk> That's what the [pi] stands for.
606: [09:57:41] <kinglozzer> Ah, of course
607: [09:59:26] <Snowman23> Wait
608: [09:59:27] <Snowman23> Hwo does...
609: [09:59:30] <Snowman23> How does the pi mean tucker?
610: [09:59:39] <Snowman23> oic
611: [09:59:41] <Snowman23> praxis interactive
612: [10:01:23] <Pyawk> yes.
613: [10:02:04] <Pyawk> Far less exciting than Colin[3.1415926]
614: [10:02:42] <Pyawk> hmm, that would be 3.1415927 actually because rounding.
615: [10:03:20] <Pyawk> 3.14159265359...
616: [10:03:23] <Pyawk> 5259
617: [10:03:31] <Pyawk> must remember
618: [10:03:32] <Pyawk> 5359*
619: [10:03:49] <Pyawk> cool trick kinglozzer
620: [10:04:57] <kinglozzer> Huh/
621: [10:06:47] <Pyawk> above
622: [10:06:50] <Pyawk> (my join)
623: [10:07:19] <Pyawk> sometimes when I'm bored I logs to see if there's anything interesting recently
624: [10:07:42] <Pyawk> There was, but nothing to comment on other than 'cool trick' and 'how the hell did you decipher what he meant?'
625: [10:08:08] <kinglozzer> Pyawk: oic, yeah I logged after joining to see what the question was :P
626: [10:08:08] <Pyawk> closest I could get was 'like... canCreate?'
627: [10:08:31] <Pyawk> yeah I didn't really see a question, I couldn't understand the problem :(
628: [10:08:36] <kinglozzer> logs-ed? Not sure what the past tense should be
629: [10:09:32] <Pyawk> kinglozzer: well, to inspect logs cannot be is not a verb.
630: [10:09:42] <Pyawk> err
631: [10:09:47] <Pyawk> yeah.
632: [10:09:53] <kinglozzer> :P
633: [10:10:16] <kinglozzer> But you used it as a verb!
634: [10:10:20] * Shrike_Finland has joined #silverstripe
635: [10:11:11] <Pyawk> kinglozzer: nope, I omitted 'check the' because lazy.
636: [10:11:23] <Pyawk> just like 'because lazy' ommits "I'm "
637: [10:11:35] * jeroenem has joined #silverstripe
638: [10:12:29] <Pyawk> otherwise everyone on the planet would communicate in legalese only, and ain't no body like a lawyer (when in legal capacity).
639: [10:13:12] <kinglozzer> Oh crap, just discovered a site with DMS + Solr doesn't hide embargoed/expired DMS documents from search results :(
640: [10:13:27] <kinglozzer> MORE SOLR INDEXES
641: [10:13:27] <Pyawk> yeah, that's balls.
642: [10:13:35] <Pyawk> Indicese
643: [10:13:39] <Pyawk> or somethign
644: [10:14:30] <Pyawk> Indices.
645: [10:14:37] <Pyawk> SO THERE
646: [10:20:32] <Alboes> @kinglozzer: your fix works well, thanks again
647: [10:22:17] <wmk> Pyawk do you have a minute for me?
648: [10:22:41] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
649: [10:23:58] <Pyawk> always wmk :)
650: [10:24:21] <wmk> yesterday i had the issue that the server of my client was not configured properly
651: [10:24:31] <wmk> had to set session_safe_path() manually to get SS running
652: [10:25:14] <wmk> now the admin of that ISP responded, he never had issues with other cms before and he thinks it's kinda insecure that SS uses the global session safe path
653: [10:26:02] <Pyawk> Interesting.
654: [10:26:32] <wmk> others define the session folder manually (inside installation) or use DB for sessions
655: [10:26:46] <Pyawk> First I've ever heard of this
656: [10:26:47] <wmk> other frameworks / cms / online shops like magento or j**mla
657: [10:27:05] <wmk> me, too
658: [10:27:21] <wmk> unfortunately in SS2.4 the code for starting session was: @session_start()
659: [10:27:35] <wmk> *facepalm*
660: [10:27:41] * gavro_ has joined #silverstripe
661: [10:27:52] <Pyawk> ha! urgh.
662: [10:27:57] <Pyawk> quick, tell Snowman23
663: [10:28:00] <Pyawk> he loves sec.
664: [10:28:11] <wmk> now it's clear why 2.4 login wasn't working
665: [10:28:47] <wmk> so - do you think it's a security issue? should i rise this topic on dev ml?
666: [10:29:15] <wmk> or just say "good to know, use other ISP instead"
667: [10:29:53] * Colin[pi] has joined #silverstripe
668: [10:30:50] * gavro quit (Ping timeout: 256 seconds)
669: [10:31:13] <Pyawk> Personally I don't think it's a security issue, but I'm no sec expert.
670: [10:31:32] <Pyawk> how do you read global session info from another system?
671: [10:31:49] <wmk> ?
672: [10:31:56] <Pyawk> even dialling back, how do you read session info from the _same_ system but a different user?
673: [10:32:03] <Pyawk> It's not really somethign you can accidentally do.
674: [10:32:10] <wmk> afaik not
675: [10:32:18] <Pyawk> You don't get access to all session info on the whole server just by it storing things in the same place.
676: [10:32:27] <Pyawk> that would be like saying that /tmp is insecure.
677: [10:32:27] <wmk> the problem would be same server, other website
678: [10:32:39] <Pyawk> which is far more of an issue really.
679: [10:33:04] <Pyawk> wmk: yes, but that's what I'm saying. You can't (so far as I know).
680: [10:33:13] <Pyawk> you can't even get another user from the _same_ website.
681: [10:33:28] <Pyawk> it's PHP controlled, not php user code that reads things.
682: [10:33:37] <wmk> i think so
683: [10:33:56] <wmk> you could surely rewrite the logic in php and read out stuff from a folder where php can write to
684: [10:34:02] <Pyawk> so I don't think it insecure at all. However perhaps an issue could be raised on github for awareness/evaluation
685: [10:34:07] <Pyawk> or a dev mailing list thing
686: [10:34:30] <wmk> but - when i control the php code i can abuse the data in first place
687: [10:34:53] <Pyawk> can you?
688: [10:35:09] <Colin[pi]> kinglozzer: just added my two cents to your GH issue
689: [10:35:11] <wmk> if i want to store passwords in clear text i can
690: [10:35:13] <wmk> e.g.
691: [10:35:23] <wmk> to grab email / pw combinations from my users
692: [10:35:27] <wmk> why not
693: [10:36:11] <wmk> have to run, cu l8r
694: [10:36:40] <Snowman23> 23:28:48 < wmk> so - do you think it's a security issue? should i rise this topic on dev ml?
695: [10:36:43] <Snowman23> lolno
696: [10:36:53] <Snowman23> Shared servers should be protected properly at the OS
697: [10:36:59] <Snowman23> suhosin can help etc
698: [10:37:07] <Snowman23> Basically, I don't think we should optimize SilverStripe for shitty shared hosting
699: [10:37:24] <Colin[pi]> Snowman23: +1
700: [10:37:30] <Colin[pi]> fuck shitty shared hosting tbh
701: [10:38:00] <kinglozzer> FUCKING SOLR
702: [10:38:20] <kinglozzer> Ty Colin[pi]
703: [10:38:34] <Snowman23> fuck solr
704: [10:38:57] <simon_w> Submit a MR!
705: [10:39:06] <kinglozzer> I'm not sure whether it's solr or the module I hate more...
706: [10:39:12] <kinglozzer> (fulltextsearch)
707: [10:39:32] <Pyawk> kinglozzer: I hear Colin[pi] wants to merge with your solr
708: [10:39:53] <Pyawk> kinglozzer: mysql.
709: [10:40:02] <Pyawk> use a decent database. Suddenly solr obsolete.
710: [10:40:14] <Pyawk> So so simon_w tells me.
711: [10:43:37] * Guits quit (Ping timeout: 245 seconds)
712: [10:46:04] <Colin[pi]> Pyawk: yeah in the end I went with shitty fulltext search and sunglasses, like you said
713: [10:46:34] <Pyawk> Colin[pi] be all http://img1.wikia.nocookie.net/__cb20141027135630/epicrapbattlesofhistory/images/e/eb/Deal_with_it_rainbow_style_by_j_brony-d4cwgad.png
714: [10:47:36] <Colin[pi]> yeah I thought it was a bit shit, but client liked it, and I'm all http://i.imgur.com/Vuz2SQu.gif
715: [10:48:50] * Teddy_ has joined #silverstripe
716: [10:48:52] <Pyawk> crudigderper - post('var') gets var from post array. post() gets all post vars. same for get. There is no request, instead they derp and name it get_post.
717: [10:49:00] <Pyawk> IT REQUIRES A VAR NAME OR RETURNS FALSE
718: [10:49:09] <Pyawk> fffffffffffffffffffffff
719: [10:49:26] <Teddy_> anyone here with xp in ZanValidator extension ?
720: [10:49:43] <Pyawk> Are you confused as to what channel you're in?
721: [10:50:05] <Colin[pi]> Pyawk: wanna cyber? OH SHI
722: [10:50:17] <Pyawk> OH, he means Zen validator.
723: [10:50:22] <Pyawk> module.
724: [10:50:26] <Teddy_> yep
725: [10:50:51] <Pyawk> [Welcome to #silverstripe | Ask your questions! |
726: [10:50:58] <Pyawk> /topic
727: [10:51:10] <Teddy_> got one runing in a website but for some reason the function returns me in the previes page
728: [10:51:49] <Teddy_> no idea why and i get no console error or the such but it's somehow caused by the function calling zen validator
729: [10:52:39] <Pyawk> what function?
730: [10:52:42] <Teddy_> for most pages i have this and it runns find function getValidator() {
731: [10:52:42] <Teddy_> return new RequiredFields();
732: [10:52:42] <Teddy_> }
733: [10:54:04] <Pyawk> no idea what you're talking about.
734: [10:55:47] <Teddy_> Pyawk, where can i paste some code for you to see
735: [10:55:57] <Pyawk> any of the usual supsects.
736: [10:56:04] <Teddy_> Pyawk, i'll show you the function that couases the problem
737: [10:57:09] <Teddy_> Pyawk, http://chopapp.com/#ewfh51vj
738: [10:58:20] <Teddy_> Pyawk, any idea why that function would case the page to go backward one
739: [10:58:48] <Pyawk> Nup, your paste site is inferior, I can't see your code.
740: [10:59:31] <Teddy_> Pyawk, https://gist.github.com/anonymous/d0da94eec9091abe367c
741: [11:00:05] <Pyawk> it doesn't.
742: [11:00:33] <Teddy_> Pyawk, but it has to be related to that
743: [11:00:39] <wmk> Snowman23, that was what i was thinking
744: [11:00:41] <Pyawk> No it doesn't.
745: [11:00:56] <Teddy_> if i put instead of that return new RequiredFields(); it passes
746: [11:01:15] * wmk wonders if the basic 5EUR digitalocean server is enough for a basic SS site
747: [11:01:18] <Teddy_> Pyawk, so there's def some connection betwen them
748: [11:01:31] <kinglozzer> wmk: Yep
749: [11:01:56] <kinglozzer> Is that the one with 512mb RAM?
750: [11:02:09] <Pyawk> Teddy_: what you're describing is very similar to an X=>Y issue
751: [11:02:36] <Pyawk> and, sounds like the result of a $this->redirectBack()
752: [11:02:41] <wmk> kinglozzer, yup. 512 ram,20G HD
753: [11:02:41] <Pyawk> which your code has none of.
754: [11:02:51] <kinglozzer> wmk: Yeah we have a couple running on that
755: [11:03:00] <kinglozzer> Obviously low traffic sites
756: [11:03:24] <wmk> if you use staticpublisher it shouldn't matter, but cms should run fluid
757: [11:03:31] <wmk> at least not toooo slow when editing
758: [11:03:55] <Teddy_> Pyawk, this is the spagety monster class that has it
759: [11:03:58] <Teddy_> Pyawk, https://gist.github.com/anonymous/4ff09d15ad570edef326
760: [11:04:01] * deskmaster quit (Ping timeout: 246 seconds)
761: [11:04:24] <Pyawk> Ah see, you're using multistepform as well.
762: [11:04:26] <Teddy_> can you easaly spon anything in there that would cause a redirect back
763: [11:04:45] <Teddy_> Pyawk, yes sorry didn't think it made a diff
764: [11:04:51] <Pyawk> some very crucial point you left out
765: [11:05:13] <Pyawk> I'm sitting here going 'there is no getValidator function, the hell is he using?'
766: [11:05:49] <Teddy_> Pyawk, my bad , was sure the getValidator function is at fault
767: [11:05:57] <Pyawk> Nope
768: [11:06:02] <Pyawk> MultiStepForm
769: [11:06:16] <wmk> kinglozzer, do you know if they have server images with php5.3 available? could use it as a fallback machine when i want to update my server
770: [11:06:29] <wmk> cause i have some old sites running i cannot update
771: [11:07:28] <kinglozzer> wmk: I don't think they have any preconfigured w/ 5.3, but you'd only have to set it up once and store a snapshot
772: [11:07:32] <Teddy_> Pyawk, but that would MultiStepForm redirect back now but carry on normal is i replace the getValidator function body with return new RequiredFields();
773: [11:07:42] <Teddy_> Pyawk, why**
774: [11:07:52] <Pyawk> because tight coupling, probably.
775: [11:07:56] <wmk> kinglozzer, do snapshots cost something?
776: [11:08:18] <Teddy_> Pyawk, i'm not smart enought to know what that means :))
777: [11:08:37] <Pyawk> this one? https://github.com/silverstripe/silverstripe-multiform
778: [11:08:56] <kinglozzer> wmk: No I'm pretty sure they're free, it's the backups that cost extra
779: [11:09:03] <wmk> ok
780: [11:09:29] <Teddy_> Pyawk, yep
781: [11:10:28] <kinglozzer> Teddy_: At a glance: isn't it validateStep() instead of getValidator() ?
782: [11:11:03] <Pyawk> yes and no
783: [11:11:19] * gavro_ quit (Read error: Connection reset by peer)
784: [11:11:24] <Pyawk> mostly no, I think.
785: [11:11:31] <kinglozzer> Oic, it should validate anyway as each step is a model
786: [11:11:34] <Teddy_> Pyawk, don't think so ....
787: [11:13:03] <Pyawk> kinglozzer: they serve different purposes
788: [11:13:36] <Pyawk> getValidator gets the validation for the form, validatestep validates the populates step it seems (as opposed to DO::validate, which validates teh write)
789: [11:14:50] <Teddy_> Pyawk, you will hate me but i gave you the class that works normal
790: [11:14:58] <Teddy_> Pyawk, this is the problm class https://gist.github.com/anonymous/0203c377fcc0bd670863
791: [11:15:22] <Teddy_> Pyawk, subsequently an uglier spaghety monster
792: [11:15:41] <Teddy_> Pyawk, the validation class is at the end
793: [11:15:44] <Pyawk> it doesn't matter
794: [11:16:32] <Pyawk> so if you change it to required fields it works fine you say Teddy_ ?
795: [11:16:41] <Teddy_> Pyawk, yes
796: [11:17:09] <kinglozzer> My guess: it's not validating
797: [11:17:26] <kinglozzer> I.e. Form::validate() returning false
798: [11:17:30] <Teddy_> Pyawk, i have a smaller class with the same probl it that would me it easier to spot the trouble
799: [11:17:30] <kinglozzer> (just a guess)
800: [11:17:35] <Pyawk> basically my conclusion too kinglozzer
801: [11:17:42] <Pyawk> but I'm just trying to make sure.
802: [11:17:56] <Pyawk> Teddy_: yeh seems like a good idea
803: [11:18:34] <Teddy_> Pyawk, https://gist.github.com/anonymous/b4e1590a19d94252fab1
804: [11:18:45] <Teddy_> Pyawk, not much of a diff but less 200 lines of code
805: [11:19:33] <Teddy_> Pyawk, i was thinking that the validation returs false too but the weird part is if i leave the funtion as is but remove all requred field it still baunces back
806: [11:20:07] <Teddy_> Pyawk, yet return new RequiredFilds plays fine
807: [11:20:15] <Teddy_> Pyawk, also chrome and open run fine
808: [11:20:27] <Teddy_> Pyawk, but firefox and ie (of course) don't
809: [11:20:42] <Pyawk> what?
810: [11:20:59] <Teddy_> Pyawk, chrome and open form runs fine
811: [11:21:10] <Teddy_> Pyawk, firefox does not (and ie)
812: [11:21:20] <Teddy_> Pyawk, but if i change the line that i said all run fine
813: [11:21:21] <Pyawk> ok
814: [11:21:27] <Pyawk> well, seems like it's nothing to do with the code then.
815: [11:21:31] <kinglozzer> Oh ffs, wondering why my embargoed docs wouldn't appear at the right time: server time is wrong
816: [11:21:45] <Pyawk> kinglozzer: hurr durr
817: [11:21:47] <Pyawk> your server?
818: [11:22:02] <Teddy_> Pyawk, me ?
819: [11:22:38] <Pyawk> no
820: [11:23:12] <Pyawk> Teddy_: you'll need to closely inspect the requests then
821: [11:23:15] <Pyawk> and the responses
822: [11:23:43] <kinglozzer> Pyawk: Yeah
823: [11:24:09] <Pyawk> kinglozzer: then you should set it up properly! duh!
824: [11:24:11] <Pyawk> :P
825: [11:24:15] <Teddy_> Pyawk, damn that will be time comsuming and i can't tough much code since it's live
826: [11:24:34] <Pyawk> so set it up in dev
827: [11:24:52] <Teddy_> Pyawk, good point
828: [11:31:19] <Pyawk> I have a sneaky feeling that I've had that issue before, but it was at least 2.5 years ago now...
829: [11:31:36] <Pyawk> (with the browsers)
830: [11:32:34] <Pyawk> but yeah, as kinglozzer said, as for the redirect, I imagine that it's because of the form not validating, thus it redirects back... but instead of taking into account the custom logic it usually employs, it's calling from the controller thus goes back to the last page.
831: [11:32:37] <Pyawk> or something weird like that.
832: [11:32:56] <Pyawk> though if you say you test with conditions you know to prove true, then that's a bit weird.
833: [11:33:10] <kinglozzer> Pyawk: You going to PHP Conf UK in Feb?
834: [11:33:19] <Pyawk> kinglozzer: not that I'm aware of.
835: [11:33:21] <Pyawk> linky?
836: [11:33:28] <kinglozzer> http://phpconference.co.uk/
837: [11:33:42] <Colin[pi]> lol joomla: http://www.australiancampsites.com.au/
838: [11:33:48] <Pyawk> kinglozzer: you going to the SS conf in aug next year?
839: [11:33:54] <Pyawk> I hear it's going to be in Denmark.
840: [11:34:08] <wmk> Pyawk, really?
841: [11:34:11] <kinglozzer> Pyawk: Yeah I might actually get off my arse this time and organise going
842: [11:34:14] <wmk> august in denmark... phew
843: [11:34:30] <kinglozzer> lol Colin[pi], standards? pffff, who need standards
844: [11:34:34] <Pyawk> wmk: ?
845: [11:34:56] <wmk> <Pyawk> kinglozzer: you going to the SS conf in aug next year?
846: [11:34:57] <wmk> <Pyawk> I hear it's going to be in Denmark.
847: [11:34:57] * jcwacky has joined #silverstripe
848: [11:35:42] <Pyawk> +b! Colin[pi]
849: [11:35:50] <Pyawk> J-word
850: [11:35:55] <Colin[pi]> hehe sorry
851: [11:36:02] <Pyawk> expiry in 20 mins
852: [11:36:03] <Pyawk> :P
853: [11:36:11] <wmk> Colin[pi], ROTFL
854: [11:36:19] <Colin[pi]> wmk: epic fail eh?
855: [11:36:21] <wmk> someone updated the server?
856: [11:36:24] <Pyawk> wmk: yeah, but phew?#
857: [11:36:36] <Pyawk> (a sound of relief in English, if maybe that's not what you meant)
858: [11:36:42] <wmk> well, it's quite far from here, maybe we can manage to combine it with a holiday in northern germany
859: [11:36:52] <wmk> ah. more like "puh"
860: [11:37:03] <Pyawk> wmk: yup, conference time is holiday time! :D
861: [11:37:13] <wmk> not relieve, more "i hope i can manage it..."
862: [11:37:23] <Pyawk> yeh, me too.
863: [11:37:43] <Pyawk> although... I'm not sure. I might have drempt that it was in Denmark.
864: [11:37:51] <Pyawk> I've had some odd dreams lately.
865: [11:38:23] <Pyawk> One was quite important, but now I've forgotten what it was.
866: [11:38:53] <Pyawk> Oh yeah, I dreampt my old boss got pushed out of his own company
867: [11:38:58] * Shrike_Finland quit (Quit: Leaving.)
868: [11:39:00] <Pyawk> that would be weird.
869: [11:40:37] <Pyawk> He still owned it, but wasn't allowed to work there anymore (he's the managing director currently), and he wasn't happy about it, haha.
870: [11:42:30] <kinglozzer> Pyawk: http://phpconference.co.uk/schedule/ looking what's been added so far I'm thinking only the first day
871: [11:44:03] <Pyawk> ha, I've heard (at least the basis of) that rabbitmq talk before. The chap delivered it at the unconference here in March.
872: [11:44:45] <kinglozzer> Holy shit is £180/day normal?
873: [11:44:53] * wmk quit (Ping timeout: 240 seconds)
874: [11:46:25] <Pyawk> kinglozzer: yeah so no, I'm not going to PHPUK
875: [11:46:45] <Pyawk> I'll watch the videos afterwards.
876: [11:46:54] * simon_w quit (Quit: Ping timeout: your mum)
877: [11:46:55] <kinglozzer> Pyawk: Because of the price or the talks you've seen before?
878: [11:47:25] <kinglozzer> I'm gonna repeat what I'm always told: get your employer to pay! ;)
879: [11:47:28] <Pyawk> tickets, travel, accom, time off
880: [11:47:30] * wmk has joined #silverstripe
881: [11:47:45] <Pyawk> kinglozzer: fuck that. We'll be lucky to have another dev by then.
882: [11:48:05] <Pyawk> err, 'by then' - 'by the time I leave'
883: [11:48:12] <Pyawk> y'know... to replace me.
884: [11:48:54] <kinglozzer> Yeah tbf I suppose you would need accom coming from up north, it's only a ~1 hour train journey for me
885: [11:49:02] <kinglozzer> Pyawk: You're leaving before feb?
886: [11:49:45] <Pyawk> kinglozzer: so time off, travel, tickets, tracks that don't really interest me (how wordderp is shoehorning into a test suite), how laravel docblock, lets talk about GO, erlang, mysql, basically fuckall php related
887: [11:49:46] <Pyawk> devops
888: [11:49:59] <Pyawk> kinglozzer: nah, this time next year!
889: [11:51:50] <kinglozzer> Pyawk: Yeah there's not a lot of PHP there considering...
890: [11:52:11] <Pyawk> ah, Friday is bringing a bit more in.
891: [11:52:15] <Pyawk> HHVM, Silex
892: [11:52:42] <kinglozzer> Some of the SS guys are thinking of coming over from NZ for it I think, and I've not met _anyone_ yet so I'll probably still go
893: [11:53:23] <Pyawk> Oh, it's only 2 day
894: [11:53:48] <kinglozzer> "Your API is a UI" <<< yes
895: [11:54:09] <Pyawk> yeah, then about building an api with symphony
896: [11:54:15] <kinglozzer> "Naming things" 10/10 would watch 1 hour presentation on that
897: [11:54:20] * gavro has joined #silverstripe
898: [11:54:27] <Pyawk> there's about 3 talks to do with building an api
899: [11:55:35] <Pyawk> kinglozzer: yeah some of the talks look quite cool.
900: [11:55:37] * NETim has joined #silverstripe
901: [11:55:40] <Pyawk> not sure about cost though
902: [11:56:03] <kinglozzer> Mmm, it's a lot even before travel and shit
903: [11:56:28] <kinglozzer> Guess it's more aimed at people who will get employers to pay, so they can charge pretty much whatever the fuck they want
904: [11:56:34] <NETim> Morning. OnBeforeWrite, How would one compare the existing values to the changed ones coming from the CMS form?
905: [11:57:06] <kinglozzer> NETim: $this->isChanged('Field')?
906: [11:57:18] <kinglozzer> (not sure how to get each of the actual values)
907: [11:57:43] <Pyawk> record
908: [11:57:47] <Pyawk> originalRecord
909: [11:57:49] <Pyawk> or something
910: [11:57:50] <Pyawk> it's on there.
911: [11:57:53] <Pyawk> somewhere
912: [11:58:03] <Pyawk> var_dump($this), you'll see it
913: [11:58:22] <Pyawk> die(var_dump('<pre>',$this));
914: [11:58:41] <NETim> kinglozzer, cool, that should be what i need. IT's just if a particular field has changed I need to do some API wizardry
915: [11:58:56] <Pyawk> then yeah, isChanged
916: [11:59:26] <NETim> One other thing, can SS tell if the onBeforeWrite is triggered from the CMS or from somewhere else?
917: [11:59:39] <Pyawk> kinglozzer: protected $original
918: [12:00:59] <NETim> Anyone?
919: [12:01:02] <Pyawk> http://api.silverstripe.org/3.1/source-class-DataObject.html#116-132
920: [12:01:11] <Pyawk> NETim: no.
921: [12:01:15] <Pyawk> nor should it care.
922: [12:01:45] <Pyawk> to make it would be very poor design.
923: [12:01:48] <kinglozzer> NETim: If you _really_ need it (as Pyawk, you shouldn't) you can do if(Controller::curr() instanceof LeftAndMain) I think
924: [12:01:59] <kinglozzer> But don't
925: [12:01:59] <kinglozzer> :P
926: [12:02:23] <Pyawk> yeh, basically.
927: [12:02:23] <NETim> Kinda does in this case. The DO can be updated from the CMS and from somewhere else. If it is the CMS, then it needs to check if a subscription ID has been set and if it doesn't match the original do something.
928: [12:02:44] <Pyawk> NETim: a DO can be updated from _anywhere_
929: [12:02:48] <Pyawk> not just 2 places
930: [12:03:05] <NETim> Fair point, just those are the 2 main use cases of the system I'm working with.
931: [12:03:23] <Pyawk> so that's up to your system to check, not the DataObject.
932: [12:03:36] <Pyawk> getCMSValidator probably a good place to start.
933: [12:03:46] <NETim> Thought it might be, just hoped SS might have another trick up its sleeve
934: [12:04:04] <Pyawk> [12:01] <Pyawk> nor should it care. [12:01] <Pyawk> to make it would be very poor design.
935: [12:04:56] <NETim> fair points. I'm going to eat and hack at the code in a minute. Thanks for the help.
936: [12:05:14] <NETim> (Not sarcasm there, English really needs sarcasm punctuation...)
937: [12:05:55] <Pyawk> &hellip;
938: [12:06:29] <NETim> Cheers.
939: [12:06:50] <Pyawk> :P
940: [12:07:07] <Pyawk> ^ "I'm being a cheeky cunt"
941: [12:07:26] <Pyawk> ~= sarcasm intended.
942: [12:08:15] <Pyawk> unless you code lua. Then I guess it's false ~= sarcasam.intended
943: [12:08:20] <Pyawk> or something
944: [12:08:44] <NETim> Just write I am a fish 400 times and click run/compile/implode.
945: [12:09:32] <Pyawk> blubb
946: [12:09:35] <Pyawk> :o
947: [12:10:05] <Colin[pi]> goodnight cocks
948: [12:22:19] * wmk quit (Quit: nice to meet you ;))
949: [12:24:29] * adrexia quit (Ping timeout: 272 seconds)
950: [12:27:55] * Guits has joined #silverstripe
951: [12:36:18] * adrexia has joined #silverstripe
952: [12:47:14] * gelignite has joined #silverstripe
953: [12:48:41] * lerni has joined #silverstripe
954: [12:55:59] * Teddy_ quit (Quit: Leaving)
955: [12:57:34] * gavro_ has joined #silverstripe
956: [13:00:13] * Pyawk quit (Ping timeout: 246 seconds)
957: [13:00:49] * gavro quit (Ping timeout: 244 seconds)
958: [13:16:26] * UndefinedOffset has joined #silverstripe
959: [13:20:53] * MrGuits has joined #silverstripe
960: [13:22:07] * Shrike_Finland has joined #silverstripe
961: [13:23:54] * Guits quit (Ping timeout: 264 seconds)
962: [13:41:56] * lerni quit ()
963: [13:42:06] * lerni has joined #silverstripe
964: [13:46:01] <NETim> Right. Using a payment library in the getCMSFields of a dataobject. Works fine. Need to use the same library in the onBeforeWrite and I keep getting a cannot redeclare class, whether I require the library or not.
965: [13:46:14] <NETim> Any way of globally loading a library in a DO?
966: [13:47:38] * Pyawk has joined #silverstripe
967: [13:48:14] <kinglozzer> NETim: require_once?
968: [13:48:24] <Pyawk> lol ^
969: [13:48:24] <Pyawk> yes
970: [13:48:34] <NETim> Sorta already worked that one out.
971: [13:48:38] <Pyawk> or y'know... use the autoloader.
972: [13:48:47] <NETim> ...
973: [13:48:49] <Pyawk> or the payments module.
974: [13:49:02] <Pyawk> :)
975: [13:49:32] <Pyawk> D: not going to be a conf next year. A bit dark.
976: [13:50:46] <kinglozzer> Pyawk: Huh?
977: [13:50:51] <NETim> hm... nope.
978: [13:50:56] <kinglozzer> SS conf?
979: [13:51:52] <NETim> Pyawk, payments module doesn't support the clients gateway.
980: [13:53:31] <Pyawk> NETim: sneaky tip: payments module supports NO gateways.
981: [13:54:01] <NETim> Ok. hm. sorted. Doesn't help when you have the new guy asking stupid questions every 2 minutes.
982: [13:54:09] <Pyawk> gateway adaptors plug into it for support. Writing one isn't very hard. You could probably adapt your library to fit the api.
983: [13:54:23] <Pyawk> NETim: heh, sometimes it's a good thing.
984: [13:54:29] <NETim> Pyawk, so you're not referring to https://github.com/silverstripe-labs/silverstripe-payment
985: [13:54:31] <Pyawk> depends on the questions
986: [13:54:37] <Pyawk> NETim: I am referring to ^
987: [13:55:13] <NETim> Pyawk, When is it ever a good thing for someone to ask (for the millionth time) how do I access the DB.
988: [13:55:38] <Pyawk> yes, depends on the questions ;)
989: [13:55:42] * MrGuits quit (Ping timeout: 264 seconds)
990: [13:56:07] <NETim> or why is Magento telling me the site is down for maintenance, is there a problem with the server? (this literally 10 seconds after a failed package install...)
991: [13:56:08] <Pyawk> NETim: there's a big difference between 'help me to understand' and 'do my job for me'.
992: [13:56:21] * Shrike_Finland quit (Quit: Leaving.)
993: [13:56:24] <Pyawk> sounds like he's more in the latter category.
994: [13:56:25] <NETim> It's more of door 2
995: [13:56:30] <NETim> yup.
996: [13:56:31] <Pyawk> brain mode: severely disengaged.
997: [13:56:42] <Pyawk> fire hem.
998: [13:56:53] <NETim> brain mode: Sorry, but your brain is in the other castle.
999: [13:57:04] <NETim> can't, bosses pal.
1000: [13:57:14] <Pyawk> LOL no wonder
1001: [13:57:19] <Pyawk> find a new job :<
1002: [13:57:55] <NETim> It's always an option. The other one involves heavy lifting, digging and a bag of lime.
1003: [13:59:18] <Pyawk> hmm, so payments module comes with gateway adaptors bundled in.
1004: [13:59:19] <Pyawk> I see.
1005: [13:59:45] <NETim> yup. But not for Stripe payments.
1006: [13:59:49] <Pyawk> https://github.com/silverstripe-labs/silverstripe-payment/blob/master/code/Payment.php
1007: [13:59:58] <NETim> Which actually aren't that bad to work with.
1008: [14:00:00] <Pyawk> you basically extend that and implement the api
1009: [14:00:35] <Pyawk> not hard, but a little fiddly. I'm not sure on the current status of payments module as a whole (stability, support, etc)
1010: [14:00:51] <Pyawk> as usual, if it works it works :>
1011: [14:00:51] <NETim> yeh, but it's a cannon solution. I only need to change the subscription ID.
1012: [14:10:56] * Alboes quit (Remote host closed the connection)
1013: [14:18:36] * catcher has joined #silverstripe
1014: [14:31:16] <Pyawk> NETim: cannon solution?
1015: [14:33:39] <Pyawk> What are you taking photos of? http://0.media.collegehumor.cvcdn.com/77/72/bd89e5712dc24f54fe1a587264551ef9-huehuehue-bus.gif
1016: [14:39:12] * Shrike_Finland has joined #silverstripe
1017: [14:42:04] * KF5WYX quit (Ping timeout: 246 seconds)
1018: [14:43:34] * Shrike_Finland quit (Ping timeout: 256 seconds)
1019: [14:50:24] * micmania1 has joined #silverstripe
1020: [14:51:00] <kinglozzer> Christ go back to bed micmania1
1021: [14:51:09] <kinglozzer> :P
1022: [14:54:53] * micmania1 quit (Ping timeout: 240 seconds)
1023: [14:57:34] <kinglozzer> Good
1024: [14:57:38] <kinglozzer> :P
1025: [15:07:33] <Pyawk> urgh, hatred for php and it's inability to array('thing'=>'blah')['thing']
1026: [15:08:18] * Guits has joined #silverstripe
1027: [15:09:19] <Pyawk> php -r "\$a=array('t'=>'s');function f(){return \$a;} echo f()['thing'];"
1028: [15:09:20] <Pyawk> PHP Parse error: syntax error, unexpected '[', expecting ',' or ';' in Command line code on line 1
1029: [15:09:24] <Pyawk> FFFFF
1030: [15:11:01] <Pyawk> (\$ coz bash)
1031: [15:23:38] <kinglozzer> Pyawk: Which version? Thought new PHP could do that
1032: [15:24:40] <Pyawk> 5.3 :(
1033: [15:24:50] <kinglozzer> http://codepad.viper-7.com/Vv7NU5
1034: [15:24:52] <kinglozzer> Ah
1035: [15:25:05] * r_hector quit (Quit: Leaving.)
1036: [15:25:30] <Pyawk> yeah it sucks.
1037: [15:25:33] <Pyawk> stuck on old tech.
1038: [15:29:05] <kinglozzer> On that topic... throwing this out there early (I think there's gonna be a big discussion about it soon): what do people think about dropping 5.3 support for SS 4.0?
1039: [15:29:18] <Pyawk> stupid
1040: [15:29:42] <Pyawk> 4.0 is a massive step. I think to rush it out would be folly.
1041: [15:31:13] <kinglozzer> Pyawk: Rush what out? The decision on dropping PHP 5.3?
1042: [15:31:21] <Pyawk> No, 4.0
1043: [15:31:28] <Pyawk> I see it as a half done thing atm.
1044: [15:31:39] <Pyawk> there have been big changes, but there are more on the horizon.
1045: [15:31:43] * Shrike_Finland has joined #silverstripe
1046: [15:31:46] <kinglozzer> It's not even 1/100th done :P
1047: [15:31:54] <kinglozzer> 3.2 is the one coming soon
1048: [15:31:58] <kinglozzer> 4.0 is still waaaay off
1049: [15:32:01] <Pyawk> I suppose technically there is no real reason to not 4.0 then 5.0 then... google chrome it.
1050: [15:32:03] <kinglozzer> namespaces and ting
1051: [15:32:25] <Pyawk> but yeah, I... I... I... I've totally read the question wrong.
1052: [15:32:32] <Pyawk> Yeah drop 5.3
1053: [15:32:33] <Pyawk> fuck that#
1054: [15:32:45] <Pyawk> 5.6 min.
1055: [15:32:48] <Pyawk> job done.
1056: [15:32:52] <kinglozzer> HHVM min
1057: [15:32:56] <Pyawk> lol
1058: [15:33:28] <Pyawk> but seriously, by the time 4.0 comes around, 5.5 should probably be the min req.
1059: [15:34:19] <Pyawk> being a major version, 4.0 shouldn't have issue with requiring people upgrade.
1060: [15:34:33] <Pyawk> It's one of the reasons I finally managed to escape the evil grasp of 5.2 :<
1061: [15:34:39] <Pyawk> 2.4 => 3.0
1062: [15:35:09] <Pyawk> "but boss, the new version doesn't even run on our shitty old already overcrowded it's failing server!"
1063: [15:35:36] <Pyawk> aka how to accidentally make yourself devops
1064: [15:36:26] * toddvalentine has joined #silverstripe
1065: [15:36:38] * gavro_ quit (Remote host closed the connection)
1066: [15:38:28] * gavro has joined #silverstripe
1067: [15:41:54] <catcher> Anyone know of a module to add spam protection to the login form?
1068: [15:50:35] * travis-ci has joined #silverstripe
1069: [15:50:35] <travis-ci> dhensby/silverstripe-framework#36 (3.1 - f636d15 : Daniel Hensby): The build passed.
1070: [15:50:35] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/72484cd0bfff...f636d1533236
1071: [15:50:35] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/41611423
1072: [15:50:35] * travis-ci has left #silverstripe
1073: [15:51:36] <Pyawk> catcher: is it an issue?
1074: [15:51:46] <Pyawk> are spambots getting in to users accounts?
1075: [15:52:11] <Pyawk> because spambots will spam a form whether it's protected or not.
1076: [15:52:26] <Pyawk> if it's a traffic issue, you're a bit shit out of luck regardless of captcha :<
1077: [15:52:59] <Pyawk> Otherwise I cannae see a reason to add one.
1078: [15:53:02] <catcher> Pyawk, boss requested it. I imagine the CPU would max & lock before a brute forcer even had a chance..
1079: [15:53:08] <Pyawk> Boss is a moron.
1080: [15:53:55] <Pyawk> if someone is bruteforcing... that's different to a spam bot.
1081: [15:54:20] <Pyawk> You'd have to make a member authenticator and login form doofer to handle denial after so many attempts.
1082: [15:54:29] <Pyawk> but then they'll just spam the reset form.
1083: [15:54:33] * lerni quit ()
1084: [15:54:43] <Pyawk> and if they've got access to the email account... well you ain't stopping no one.
1085: [15:54:59] <Pyawk> login is a black art in SS anyway, I suggest not heading down that dragon path.
1086: [15:55:39] <Pyawk> Been there, tried that, failed miserably.
1087: [15:55:44] <catcher> Pyawk, hmm
1088: [15:55:51] * Shrike_Finland quit (Quit: Leaving.)
1089: [15:56:10] <Pyawk> well, not exactly this. But tried to write an authenticator that validated against a foreign service. Didn't go to well for me :<
1090: [15:56:18] <Pyawk> There was some blocker in the way.
1091: [15:56:26] <catcher> maybe a fancy mod_security rule instead.
1092: [15:56:36] <Pyawk> To do with the architecture (read: mess) of the login system.
1093: [15:56:41] <Pyawk> catcher: better.
1094: [15:56:50] <catcher> by rule, I mean doofer.
1095: [15:56:53] <Pyawk> also mod_connectionlimit or whatever that one is.
1096: [15:57:06] <Pyawk> that throttles the max connections by ip or something
1097: [15:57:16] <Pyawk> our host provider installed it after DNS attacks
1098: [15:57:54] <Pyawk> (ISP who claimed they take security very seriously basically told me that "usage seems normal, it's probably your website has some bad code in it")
1099: [15:58:02] <Pyawk> "A user was clicking on an image"
1100: [15:58:10] <Pyawk> AT 50000 times a SECOND!?
1101: [15:58:13] <Pyawk> you fucking derp
1102: [15:58:52] <Pyawk> I think they were covering their arse because they had no idea how attacker got in to use one of their own tech boxes as a vector
1103: [16:05:46] <catcher> That's my favorite response from entry-level hosting service people. "you should hire a developer to fix your code."
1104: [16:08:41] <Pyawk> And you're all -.- I AM A DEVELOPER
1105: [16:08:51] <Pyawk> And I know more about sysadmin than you do, apparently!
1106: [16:11:36] <catcher> One time my site started rejecting 50% of FB agent requests on a shared host. I told him the IP block with an open final section of 255. He manually removed x.x.x.1 - x.x.x.255, and wondered why it still wasn't working.
1107: [16:12:48] <catcher> I chose to tell the client to wait 48 hours rather than start subnet school.
1108: [16:12:58] * travis-ci has joined #silverstripe
1109: [16:12:58] <travis-ci> dhensby/silverstripe-framework#37 (pulls/always-write-admin - 87b435f : Daniel Hensby): The build passed.
1110: [16:12:58] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/commit/87b435f472c2
1111: [16:12:58] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/41611952
1112: [16:12:58] * travis-ci has left #silverstripe
1113: [16:15:12] * Shrike_Finland has joined #silverstripe
1114: [16:20:13] * Eliseth quit (Ping timeout: 255 seconds)
1115: [16:27:51] * arnhoe quit ()
1116: [16:33:17] * jenniferaslan has joined #silverstripe
1117: [16:37:48] * gavro quit (Ping timeout: 250 seconds)
1118: [16:39:05] * Guits quit (Ping timeout: 272 seconds)
1119: [16:53:34] * _hschillig has joined #silverstripe
1120: [16:54:42] <_hschillig> Hey I'm extending a controller from a module using Extension.. however what if I want to overwrite their Forums() method, but keep all their logic in it.. I just want to add a sort to the query. Will I just have to copy and paste the entire method and repeat the code he has? The method is either returning an instance of Forum or ForumCategory.. is there anyway to check what the result is? If it's type ForumCategory, then add the sort() to the query
1121: [16:55:12] * jeroenem quit (Quit: Page closed)
1122: [16:59:47] <kinglozzer> _hschillig: You should be able to call it the old method from your extension with $this->owner->Forums()
1123: [17:00:29] <_hschillig> ExtendedForumHolder_Controller extends Extension .. that's how I'm defining it. The parent is ForumHolder.. If I add this in my config: DataObject::add_extension('ForumHolder_Controller', 'ExtendedForumHolder_Controller'); it should know all the parent's methods right?
1124: [17:00:43] <_hschillig> Because it's saying all the methods I call that are in the parent are undefined..
1125: [17:01:25] <_hschillig> I can call that, but I want to add the sort() query if it's ForumCategory object that is returned and not a Forum object. That method returns either or.. and the Forum table doesn't have the SortableOrder field. Only the ForumCategory does
1126: [17:01:48] <kinglozzer> So $forums = $this->owner->Forums(); if($forums instanceof ForumCategory) { $forums = $forums->sort('foo'); } return $forums;
1127: [17:04:45] <_hschillig> Whenever I call a method from the parent, it always goes into this infinite loop:
1128: [17:04:45] <_hschillig> Fatal error: Maximum function nesting level of '200' reached, aborting!
1129: [17:05:37] <kinglozzer> _hschillig: Can you paste your extension? http://pastie.org
1130: [17:10:57] * travis-ci has joined #silverstripe
1131: [17:10:57] <travis-ci> dhensby/silverstripe-framework#38 (pulls/always-write-admin - 158f2b2 : Daniel Hensby): The build passed.
1132: [17:10:57] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/87b435f472c2...158f2b2d8280
1133: [17:10:57] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/41619841
1134: [17:10:57] * travis-ci has left #silverstripe
1135: [17:21:20] <Pyawk> _hschillig: you cannot override methods in extensions,
1136: [17:21:31] <Pyawk> you can only add ones (where the names don't conflict_
1137: [17:21:32] <Pyawk> )
1138: [17:22:09] <Pyawk> you should see if there is a hook in the 'parent' ($this->extend('hook_name', $optional, $var, $list)
1139: [17:22:17] <Pyawk> )
1140: [17:22:43] * Shrike_Finland quit (Quit: Leaving.)
1141: [17:22:48] <Pyawk> and no, DataObject::add_extension is the wrong way to go about it.
1142: [17:23:04] <Pyawk> use the yml, don't add extensions on the fly (there isn't really support for this)
1143: [17:23:44] <Pyawk> and the extension doesn't learn about the 'parent' methods, it stores a reference to the 'parent' on the $owner variable.
1144: [17:23:53] <Pyawk> so $this->owner, like kinglozzer keeps saying.
1145: [17:24:13] <Pyawk> Thus you can only access public methods on the 'parent'(owner)
1146: [17:25:30] <Pyawk> the easiest way to do what you're trying to achieve is to use a completely different name (eg. Forums() on the Controller becomes SortedForums() on the Extension), then return $this->owner->Forums()->sort(...);
1147: [17:25:45] <Pyawk> call $SortedForums from the template instead of loop Forums, or whateer.
1148: [17:26:42] <Pyawk> if there is a hook, you don't need to do this. It basically becomes the same thing as updateCMSFields (this is a hook in getCMSFields on a dataObject)
1149: [17:27:22] <_hschillig> Ok thanks I'll overwrite the template file and call the different method and see if that works!
1150: [17:27:37] <Pyawk> yep, easiest if there is no hook.
1151: [17:27:45] <Pyawk> (assuming there's not, since it's a module)
1152: [17:27:52] <_hschillig> Yeah I didn't see one!
1153: [17:27:59] <Pyawk> there often aren't.
1154: [17:29:11] <Pyawk> home time, good luck!
1155: [17:29:12] * Pyawk quit ()
1156: [17:35:49] <_hschillig> Cool thank you it worked :D
1157: [17:38:39] * Guits has joined #silverstripe
1158: [17:44:50] * gavro has joined #silverstripe
1159: [17:49:19] * gavro quit (Ping timeout: 255 seconds)
1160: [18:04:13] * Shrike_Finland has joined #silverstripe
1161: [18:28:14] * micmania1 has joined #silverstripe
1162: [18:32:17] * micmania1 quit (Ping timeout: 240 seconds)
1163: [18:43:22] * Kingy[a] is now known as Kingy
1164: [18:48:01] * Shrike_Finland quit (Quit: Leaving.)
1165: [18:48:15] * Shrike_Finland has joined #silverstripe
1166: [18:56:56] * Stomach has joined #silverstripe
1167: [19:02:27] <Kingy> mornnning
1168: [19:04:49] * Fuxo has joined #silverstripe
1169: [19:05:51] <Fuxo> Hi, is display-logic module compatible with multiform?
1170: [19:17:46] * joelpittet has joined #silverstripe
1171: [19:29:14] <Stomach> hey Kingy
1172: [19:29:24] <Kingy> how doing Stomach
1173: [19:29:34] <Stomach> pretty tired :D
1174: [19:29:54] <Stomach> one of my flatmates is leaving today so went out for a little bit last night
1175: [19:29:56] <Stomach> slash this morning
1176: [19:30:11] <Kingy> haha nice
1177: [19:30:16] <Kingy> I drove to work this morning
1178: [19:30:24] <Kingy> mis timed and got here at 7:10
1179: [19:30:27] <Kingy> fml
1180: [19:32:07] * Ryan-Toast has joined #silverstripe
1181: [19:32:47] * antmas has joined #silverstripe
1182: [19:33:12] <antmas> morning all
1183: [19:33:42] <Kingy> hey dude
1184: [19:34:06] <Kingy> so the guy who wanted to drop an item off in back of god knows where got back to me last night
1185: [19:34:20] <Kingy> now i'm dropping it off at some random institute at vic uni care of some unknown person
1186: [19:34:43] <Kingy> i'm all sorts of confused
1187: [19:37:29] <antmas> is it ebola?
1188: [19:37:51] <antmas> it's probably ebola
1189: [19:38:32] <Kingy> probably
1190: [19:38:37] <Kingy> as long as I get my $50
1191: [19:40:41] <Kingy> it's friday and it's pay day
1192: [19:40:43] <Kingy> woot woot
1193: [19:42:40] <JeremyRoundill> $50 for ebola?
1194: [19:42:53] <Kingy> yep
1195: [19:43:04] <Kingy> although I'm doing a dodgy deal behind parliment today for my quadcopter
1196: [19:43:09] <Kingy> that'll net me $300
1197: [19:43:18] <JeremyRoundill> National's new drones?
1198: [19:43:26] <Kingy> my thoughts exactly
1199: [19:43:49] * joelpittet quit ()
1200: [19:44:01] <JeremyRoundill> Maybe it's Andrew Little's new method to bring the Labour snapper into parliament.
1201: [19:44:36] <JeremyRoundill> Good thing we're in the part of the day where it's pretty much just NZers.
1202: [19:44:44] <JeremyRoundill> Because that joke is quite esoteric.
1203: [19:44:47] <JeremyRoundill> And not very funny.
1204: [19:44:51] <Kingy> rof
1205: [19:44:53] <Kingy> l
1206: [19:45:00] <Blacklite> lol
1207: [19:48:14] <Kingy> yay ok, random lady and random institute emailed me back and confirmed said plan
1208: [19:48:19] <Kingy> ebola comfirmed
1209: [19:48:54] <Ryan-Toast> Pretty sure we’re always majority NZ.
1210: [19:49:34] <antmas> yeah you can tell when a non nzer is here
1211: [19:50:16] * veb has joined #silverstripe
1212: [19:50:26] <antmas> Kingy: played some CS:GO last night and got thrashed by someone recording for a popular youtube channel
1213: [19:50:33] <antmas> made all the classic nub mistakes
1214: [19:50:45] <antmas> embarrased the crap out myself lol
1215: [19:50:52] <Kingy> rofl ah well shit happens
1216: [19:50:55] <Blacklite> i think im a little above average, but when a properly decent player joins, im fucked
1217: [19:50:57] <Kingy> gonna be round tonght?
1218: [19:51:07] <Kingy> Blacklite: yep that's about how I feel
1219: [19:51:16] <Kingy> especially when playing with JeremyRoundill and people ranked similar to him
1220: [19:51:20] * Ryan-Toast quit (Quit: Ryan-Toast)
1221: [19:51:25] <Kingy> put me in with majority silver 4 and I'm golden
1222: [19:51:27] <JeremyRoundill> Hahaha
1223: [19:51:32] <JeremyRoundill> That's my smurf, Kingy.
1224: [19:51:38] <Kingy> aha yeah I know
1225: [19:51:40] <Kingy> which makes it worse :P
1226: [19:51:44] <Blacklite> im not even ranked
1227: [19:51:50] <JeremyRoundill> I should make a new account.
1228: [19:51:51] <antmas> neither
1229: [19:51:57] <JeremyRoundill> I've got a spare copy of GO, I just need to use it.
1230: [19:51:59] <Kingy> sweet game on tonight then boys
1231: [19:52:01] <JeremyRoundill> Second smurf :)
1232: [19:52:05] <antmas> I really inconsistent
1233: [19:52:06] <JeremyRoundill> Haha, I have to go to a party.
1234: [19:52:08] <JeremyRoundill> No time to play.
1235: [19:52:17] <Kingy> aw man, 1 night the mrs is out lol
1236: [19:52:25] <antmas> I can own one match, then the next match (same players) I get 0 kills for 132 deaths
1237: [19:52:43] * Ryan-Toast has joined #silverstripe
1238: [19:52:44] <Kingy> antmas: you just need to be carried :P
1239: [19:52:53] <antmas> Kingy: oh yeah
1240: [19:52:53] <Kingy> and steal kills off JeremyRoundill he likes that
1241: [19:53:01] <JeremyRoundill> :D
1242: [19:53:02] <antmas> give me the bomb everytime
1243: [19:53:11] <JeremyRoundill> Nah, better than that is just to stand behind me and block me when I'm peeking
1244: [19:53:23] <Kingy> yeah that too
1245: [19:53:28] <JeremyRoundill> It's tricky to KS from me. :)
1246: [19:53:34] <JeremyRoundill> The kills are usually pretty quick.
1247: [19:55:55] * simon_w has joined #silverstripe
1248: [19:56:43] <antmas> worst thing about people with mics
1249: [19:56:45] <antmas> is eating
1250: [19:57:02] <JeremyRoundill> Haha
1251: [19:57:03] <Ryan-Toast> ajmitch_
1252: [19:57:05] <antmas> CS mics should ALWAYS be push to talk
1253: [19:57:06] <antmas> imo
1254: [19:57:10] <JeremyRoundill> You haven't been with me in TS.
1255: [19:57:17] <Ryan-Toast> ajmitch_: How have you been going on heroics?
1256: [19:57:30] <JeremyRoundill> You get guitar, chanters, singing, conversations, chip packets.
1257: [19:57:42] <antmas> CHIP PACKETS
1258: [19:57:45] <antmas> ffffffffffffffffffff
1259: [19:57:49] <JeremyRoundill> :D
1260: [19:57:53] <antmas> guitar is OK
1261: [19:57:54] <antmas> :P
1262: [19:58:10] * jedateach has joined #silverstripe
1263: [19:58:20] <antmas> unless someone is stoned and trying to play Nirvana
1264: [19:58:41] <JeremyRoundill> Hang around long enough and it's just the same song over and over.
1265: [19:58:55] <JeremyRoundill> Because between CS:GO games is the best time to practice :)
1266: [19:59:26] <ajmitch_> Ryan-Toast: fine, mostly
1267: [19:59:31] <antmas> dat 3mins :P
1268: [19:59:35] <Kingy> worst thing is people who just play random shitty music
1269: [19:59:37] <Ryan-Toast> ajmitch_: got your full 630 yet?
1270: [19:59:40] <ajmitch_> Ryan-Toast: UBRS had some fun moments
1271: [19:59:50] <ajmitch_> nope, the random drops...
1272: [20:00:01] <ajmitch_> but I replaced about 4 or 5 items yesterday
1273: [20:00:04] <antmas> "wait A minor, no wait B, no wait bar chord and then C#, no wait"
1274: [20:00:04] <Ryan-Toast> ajmitch_: pop cooldowns on ads is what I found to make that an easy fight.
1275: [20:02:17] <antmas> JeremyRoundill: Blacklite Kingy and good CS twitch accounts to watch?
1276: [20:02:27] <Blacklite> i haven't watched any on twitch really
1277: [20:02:28] <Blacklite> only dayz
1278: [20:02:32] <Kingy> yeah neither
1279: [20:02:33] <Kingy> not really sure
1280: [20:02:35] <JeremyRoundill> I like Friberg :)
1281: [20:02:44] <JeremyRoundill> Just search for CS:GO on twitch
1282: [20:02:45] <Kingy> yeah that big huggable guy is awesome
1283: [20:03:02] <JeremyRoundill> And find someone who's DMG or better
1284: [20:03:11] <Kingy> fuck I love reading about hardcore players who get VAC banned
1285: [20:03:11] <JeremyRoundill> Watch the MM games.
1286: [20:03:27] <JeremyRoundill> Team games are a bit more difficult to get anything from.
1287: [20:03:32] <JeremyRoundill> Because *synergy*
1288: [20:03:46] <Kingy> yeah I find it hardto watch games of pro teams
1289: [20:03:51] <Kingy> it's ike which person do I stick with
1290: [20:04:12] <Kingy> oh damn i'm missing all the action *switch* fuck this guy just died *switch back*
1291: [20:04:26] <JeremyRoundill> :D
1292: [20:04:31] <JeremyRoundill> Just watch the position you wanna learn.
1293: [20:04:46] <JeremyRoundill> Wanna learn mid on Dust 2?
1294: [20:04:56] <JeremyRoundill> Watch someone playing mid on Dust 2 :)
1295: [20:05:01] <antmas> lol
1296: [20:05:49] <Kingy> yeah that's true
1297: [20:07:40] <antmas> Twitch can be lame though, especially when they have like 70% of the screen covered with extra HUD
1298: [20:08:06] <antmas> LOOK AT ME I'M GIVING AWAY STUFF RAWAWAWARRRRR
1299: [20:08:11] <antmas> </3
1300: [20:08:28] <JeremyRoundill> Yeah
1301: [20:08:52] <Kingy> whens the next big tournamrnt
1302: [20:08:55] <Kingy> tournament*
1303: [20:09:21] <JeremyRoundill> Dunno
1304: [20:09:24] <JeremyRoundill> Don't really follow it.
1305: [20:09:35] <JeremyRoundill> Watching CS:GO time eats into my playing CS:GO time.
1306: [20:09:52] <Blacklite> true
1307: [20:10:10] <Kingy> yeah
1308: [20:10:36] <Kingy> but I watched a frap movie/doco on NiP winning the one in Colonge
1309: [20:10:39] <Kingy> was epic
1310: [20:11:19] <antmas> I only really watch twitch at work :P
1311: [20:11:32] <Kingy> rofl
1312: [20:11:33] <Kingy> nice
1313: [20:11:46] <antmas> just let it play on my phone all day, watch it here and there for a minute or so
1314: [20:13:46] <Kingy> ol nice
1315: [20:15:41] <Ryan-Toast> easy way to clear SS sessions?
1316: [20:16:10] <helenclarko> JeremyRoundill: That tutorial has helped me to pat the dog. Much profit!
1317: [20:16:46] * Shrike_Finland quit (Quit: Leaving.)
1318: [20:16:51] <antmas> lol watching a south african tourny
1319: [20:16:58] <antmas> 'fookin teeeeeriists
1320: [20:18:00] <JeremyRoundill> Hahaha
1321: [20:18:13] <JeremyRoundill> helenclarko: How far back in the logs were you reading? :P
1322: [20:18:14] * spekulatius has joined #silverstripe
1323: [20:19:04] <helenclarko> I've been online since yesterday. Just opened the tab and BAM! there she was.
1324: [20:19:17] <helenclarko> Thank you!
1325: [20:19:36] <JeremyRoundill> Haha
1326: [20:19:47] <JeremyRoundill> I just showed the tutorial to someone at work
1327: [20:19:52] <JeremyRoundill> His face melted off.
1328: [20:19:57] <antmas> what tut?
1329: [20:19:59] <JeremyRoundill> Mainly because you can click on the images
1330: [20:20:07] <JeremyRoundill> http://tutorials.vo2.co.nz/vo2
1331: [20:20:21] <JeremyRoundill> I got annoyed at the lack of good tutorial creation SaaS programs.
1332: [20:20:26] <JeremyRoundill> So I made one in SS
1333: [20:20:37] <helenclarko> I know right! I clicked them multiple times!
1334: [20:20:39] <antmas> JeremyRoundill: :O
1335: [20:20:40] <JeremyRoundill> It's just internal, but pretty handy
1336: [20:20:55] <antmas> JeremyRoundill: CAN I HAZ
1337: [20:20:56] <JeremyRoundill> All of the clicking! :)
1338: [20:21:26] <JeremyRoundill> I should just host it on my server.
1339: [20:21:33] <JeremyRoundill> Ask my boss if I'm allowed to take the code home :D
1340: [20:21:34] <antmas> indeed
1341: [20:23:14] <helenclarko> I'm going to click the images again in a minute or two.
1342: [20:23:16] * Fuxo quit (Quit: Leaving)
1343: [20:25:19] * Hailwood has joined #silverstripe
1344: [20:25:24] <helenclarko> two minutes on and still great clickable images!
1345: [20:26:11] <Kingy> I love that gif at the end
1346: [20:28:24] * lerni_ has joined #silverstripe
1347: [20:32:13] <JeremyRoundill> :D
1348: [20:32:35] <simon_w> Someone should feed me breakfast
1349: [20:32:47] <JeremyRoundill> Get to Hamilton.
1350: [20:32:51] <JeremyRoundill> I'll buy you breakfast.
1351: [20:32:59] <JeremyRoundill> I could use the excuse to eat.
1352: [20:33:13] <Kingy> or Wellington
1353: [20:33:18] <Kingy> i too would shot you a feed
1354: [20:33:20] <Kingy> shout
1355: [20:33:21] <Kingy> even
1356: [20:33:36] <Kingy> unless you prefer shots at breakfast in which case something that probably be arranged
1357: [20:33:41] <simon_w> But those all involve me putting clothes on
1358: [20:33:56] <Kingy> wow my english is lacking today
1359: [20:35:57] * glenn-bautista has joined #silverstripe
1360: [20:39:43] <JeremyRoundill> I'm cool with nudity.
1361: [20:39:56] <JeremyRoundill> I want that on my headstone when I die.
1362: [20:40:35] <JeremyRoundill> "Jeremy Roundill, tragically taken from us in a freak bobcat accident at age 27"
1363: [20:40:51] <JeremyRoundill> "I'm cool with nudity - Jeremy Roundill"
1364: [20:41:25] <Kingy> at what point is a csv file too big to loop over in php lol
1365: [20:41:34] <Kingy> 10MB, 20MB, 50MB?
1366: [20:41:35] <JeremyRoundill> Never.
1367: [20:41:45] <JeremyRoundill> I don't even use databases any more.
1368: [20:41:58] <JeremyRoundill> I didn't choose the csv life, the csv life chose me.
1369: [20:43:37] * Guits quit (Ping timeout: 245 seconds)
1370: [20:44:59] * willr has joined #silverstripe
1371: [20:45:34] <antmas> JeremyRoundill: do you work in local govt?
1372: [20:45:35] <antmas> ;)
1373: [20:45:45] <JeremyRoundill> Hahaha
1374: [20:46:02] <JeremyRoundill> Nah, if I worked in local government I wouldn't separate with commas.
1375: [20:46:12] <JeremyRoundill> It'd be a mixture of pipes and plus symbols.
1376: [20:47:06] <antmas> LOL
1377: [20:47:44] <antmas> our lead dev got so fed up last week during a meeting about data entry and used the phrase 'monkeys with hand grenades'
1378: [20:48:11] <JeremyRoundill> Haha
1379: [20:48:20] <JeremyRoundill> Data entry though.
1380: [20:48:31] <antmas> yeah
1381: [20:48:33] <Blacklite> fact is, if you have been given a 50GB csv file and told it has to work, then 50GB will have to do
1382: [20:48:36] <antmas> ... yeah
1383: [20:48:48] <JeremyRoundill> You've pretty much gotta restrict input as much as possible.
1384: [20:48:54] <antmas> 50GB .. csv?
1385: [20:48:55] <JeremyRoundill> Because otherwise it ends up hideous.
1386: [20:49:31] <Blacklite> just sayin - there's no limit to how big a csv file might be, it's just a matter of how long it takes to process it
1387: [20:49:31] <antmas> JeremyRoundill: yeah part of why I was hired was to redo our UIs to stop garbage-in-garbage-out
1388: [20:50:04] <JeremyRoundill> antmas: I gave that tutorial thing to our customer relations guy
1389: [20:50:24] <JeremyRoundill> He's really cool, but he entered steps that were like 2-3 paragraphs long.
1390: [20:50:37] <JeremyRoundill> Like, the system works and the steps work.
1391: [20:50:48] <JeremyRoundill> But it sorta defeats the purpose of the tutorial system :)
1392: [20:51:16] <antmas> JeremyRoundill: lol yeah... customer relations
1393: [20:51:28] <antmas> Blacklite: 50gb is pretty massive
1394: [20:51:42] <JeremyRoundill> antmas: We're quire a small business, so he's actually really good
1395: [20:51:50] <antmas> :)
1396: [20:51:54] <JeremyRoundill> I pretty much don't have to send any annoying emails any more.
1397: [20:52:11] <Kingy> well I just threw 20MB and I got like nothing back...
1398: [20:52:13] <Kingy> fuck sakes
1399: [20:52:19] <antmas> yeah I don't send any external emails anymore, unless it's a thirdparty API
1400: [20:52:25] <JeremyRoundill> And he's really hip to the hop with our projects, so he's quite helpful with prioritising stuff.
1401: [20:52:26] <antmas> and I'm not tearing them a new one
1402: [20:52:52] <Blacklite> ok maybe i should've just said 5GB lol, but you get the point
1403: [20:53:17] <Kingy> oh ok because i got code error
1404: [20:53:18] <Kingy> IGNORE
1405: [20:54:23] <Kingy> ok maybe not
1406: [20:54:35] <antmas> Blacklite: :P
1407: [20:57:56] * micmania1 has joined #silverstripe
1408: [21:04:01] * UndefinedOffset quit (Quit: Leaving.)
1409: [21:07:18] <Kingy> ok so looping over csv file randomly stopped
1410: [21:07:20] <Kingy> no errors anywhere
1411: [21:07:44] <Kingy> did like 2074/3600
1412: [21:07:51] * kinglozz_ has joined #silverstripe
1413: [21:08:37] <Kingy> ideas?
1414: [21:08:50] <antmas> Kingy: always at same place?
1415: [21:08:57] <Kingy> dano i just tried once
1416: [21:09:06] * jenniferaslan quit (Quit: jenniferaslan has left the room)
1417: [21:09:07] <Kingy> suppose I should try again
1418: [21:09:25] <Kingy> will revert db
1419: [21:17:29] <antmas> Kingy: any luck?
1420: [21:17:34] <Kingy> bout to click go
1421: [21:17:37] <antmas> aka fail at the same spot?
1422: [21:17:42] <antmas> Kingy: Oh :)
1423: [21:17:51] <Kingy> just setting up all logs to tail
1424: [21:17:52] <Kingy> lol
1425: [21:17:54] * _hschillig has left #silverstripe
1426: [21:18:15] <Kingy> ok it's processing
1427: [21:18:27] <Kingy> articles being inserted
1428: [21:18:50] <Kingy> 1300 so far
1429: [21:19:48] <Kingy> well the answer to that is no it didn't die on the same spot
1430: [21:19:53] <Kingy> 2044 inserted this time
1431: [21:20:14] <Kingy> log file jsut blew up with solr communication errors
1432: [21:20:25] <Kingy> but i don't have that installed or anything locally so that is pretty normal
1433: [21:20:40] * jenniferaslan has joined #silverstripe
1434: [21:22:11] <Kingy> so basically no idea antmas
1435: [21:22:12] * willr quit (Ping timeout: 272 seconds)
1436: [21:26:24] * willr has joined #silverstripe
1437: [21:28:29] <helenclarko> hi all, Im using $this->getVariation() on a CompositeProduct, but Im getting an 'getvariation' does not exist on 'CompositeProduct_Controller'. CompositeProduct extends Product, but I cant seem to get anything from the Product controller. Is this something new in SS3.1?
1438: [21:29:32] <antmas> Kingy: yeah I saw solr and my brain just switched off
1439: [21:29:40] <Kingy> rofl
1440: [21:29:48] <Stomach> does CompositeProduct_Controller extends Product_Controller ?
1441: [21:30:04] <Kingy> im thinking it's a mem issue
1442: [21:30:39] <helenclarko> Yea, its done inside the .config.php file rather than the .yml. Does that make a difference?
1443: [21:31:09] <Stomach> are you replacing the class?
1444: [21:32:53] <Stomach> more detail helenclarko - can you explained the setup and what youre trying to do
1445: [21:33:11] * willr quit (Quit: willr)
1446: [21:33:17] <helenclarko> One moment, I may have worked it out.
1447: [21:33:39] <helenclarko> Not linking properly, let me try again.
1448: [21:34:25] <Kingy> ok antmas now with 512M ram
1449: [21:34:41] <Kingy> which i think is what prod server has
1450: [21:35:39] <Kingy> and nope
1451: [21:35:40] <Kingy> still died
1452: [21:36:19] <antmas> 512mb?
1453: [21:36:24] <antmas> isn't that... tiny?
1454: [21:36:33] <Kingy> that's what im giving to PHP
1455: [21:36:37] <antmas> oh
1456: [21:36:49] <Kingy> lol
1457: [21:36:50] <antmas> hmmm I dunno then :(
1458: [21:37:09] <antmas> I was all like 'is this a server for Ants'?
1459: [21:38:02] <Kingy> hmm
1460: [21:38:12] <Kingy> telling it not to do any work and just counting rows
1461: [21:38:13] <Kingy> works fine
1462: [21:38:26] <Kingy> Processing CSV file for Farmers Weekly....
1463: [21:38:26] <Kingy> 3526 articles added for Farmers Weekly....
1464: [21:39:12] <Kingy> so i have a feeling it has something to do with all the db work mebbe
1465: [21:43:44] <Ryan-Toast> how can I use “Date:GreaterThan” and LessThan to get everyhing from a month?
1466: [21:43:57] <Ryan-Toast> I can get everything but the 1st, and last day fo a month
1467: [21:44:06] <Ryan-Toast> when querying CREATED
1468: [21:48:16] <antmas> yeah I don't really see a car http://jalopnik.com/the-galpin-fisker-rocket-is-a-badass-725-hp-carbon-fibe-1661271528
1469: [21:48:47] <simon_w|work> Ryan-Toast, :GreaterThanOrEqual Y-m-1 00:00:00, :LessThan Y-(m+1)-1 00:00:00
1470: [21:49:49] <Kingy> antmas: the ass on that car is horrible
1471: [21:50:05] <Ryan-Toast> simon_w|work: chur
1472: [21:50:39] <antmas> Kingy: :P
1473: [21:50:44] <antmas> ON THAT CAR - yes
1474: [21:50:58] <antmas> Kingy: but, I do like the rocket strapped to the mustang though :D
1475: [21:52:47] * gavro has joined #silverstripe
1476: [21:54:30] * mahfuz has joined #silverstripe
1477: [21:54:34] <helenclarko> the method 'gotonextpage' does not exist on 'CompositeProduct_Controller', but if CompositeProduct extends Product, does that not mean that $this->goToNextPage(); is also linked to the Product_Controller?
1478: [21:54:51] * UncleCheese has joined #silverstripe
1479: [21:55:02] <Kingy> fuck this
1480: [21:55:09] <Kingy> I have no idea why it's failing
1481: [21:55:34] <antmas> too hard basket for Monday Kingy
1482: [21:55:39] <Kingy> oh actually
1483: [21:55:42] <Kingy> finally db logs show something
1484: [21:56:30] <Kingy> it can't handle the jandle
1485: [21:56:31] <Kingy> FATAL: connection to client lost
1486: [21:57:24] <mahfuz> Good Morning everyone. How to put children of holder class in pagination?
1487: [21:58:02] <kinglozz_> helenclarko: Nope
1488: [21:58:34] <Stomach> UncleCheese - green means merge? https://github.com/unclecheese/silverstripe-gridfield-betterbuttons/pull/71
1489: [21:58:52] <UncleCheese> yeah, that's a sweet PR
1490: [21:58:55] <UncleCheese> i haven't tested it yet
1491: [21:59:03] <UncleCheese> but i was really psyched to see that come through
1492: [21:59:36] <Stomach> I always read IRC as sarcastic and it hurts my feelings
1493: [21:59:39] <Stomach> silly brain
1494: [22:00:12] <mahfuz> UncleCheese: is there any way to wrap the Children of a Holder class in Pagination?
1495: [22:00:25] <UncleCheese> Stomach it's in 1.2.5
1496: [22:00:41] <UncleCheese> mahfuz explain a bit further?
1497: [22:00:50] <UncleCheese> oh, i see what you mean
1498: [22:00:53] <Stomach> UncleCheese - you're a boss, thank you
1499: [22:00:53] <helenclarko> Stomach: Okay, I'm trying to create a page (CompositeProduct) which extends product. On this CompositeProduct page I have a product form which has a list of products, for example I have a list of books and you can choose the quantity of each book you want from the one page. Then you can simply add the whole lot to the cart without individually going to each product.
1500: [22:01:03] <UncleCheese> yeah, all the same pagination rules apply
1501: [22:01:20] <UncleCheese> but you'll need a custom method on your controller that returns a paginated list of children
1502: [22:01:42] <UncleCheese> so ... public funciton PaginatedChildren() { return PaginatedList::create($this->Children()....); }
1503: [22:02:05] <UncleCheese> <% loop $PaginatedChildren %> $PaginatedChildren.MoreThanOnePage... etc..
1504: [22:02:18] <mahfuz> Thanks UC. Then Loop through that in the template, right?
1505: [22:02:22] <UncleCheese> yup
1506: [22:03:06] <mahfuz> Stomach: Thanks for your clue yesterday. It was making 2 ajax call.. my bad.
1507: [22:04:04] <Stomach> mahfuz - no worries ;)
1508: [22:05:05] <helenclarko> how can I use $this->goToNextPage() from the CompositeProduct.php but have it link to the Product_Controller rather than the CompositeProduct_Controller?
1509: [22:09:48] <Stomach> shouldn't CompositeProductController have that method as its extending Product_Controller?
1510: [22:10:12] <helenclarko> Thats what I thought.
1511: [22:11:07] <Stomach> can you post the code anywhere
1512: [22:11:52] <helenclarko> But I keep getting "the method 'gotonextpage' does not exist on 'CompositeProduct_Controller'", which is True... Because its sitting in Product.php which CompositeProduct.php is extending,
1513: [22:12:02] <helenclarko> Yea, Ill pastebin it.
1514: [22:12:12] <kinglozz_> helenclarko: Your goToNextPage() method is defined on the model, instead of the controller?
1515: [22:13:12] * kinglozz_ is now known as lozcalver
1516: [22:13:45] <helenclarko> Hmmm, that might be it. How can I access that then if its not on the controller?
1517: [22:14:20] <helenclarko> Can I modify Product to add a controller?
1518: [22:14:30] * camfindlay has joined #silverstripe
1519: [22:15:08] <lozcalver> helenclarko: If Product is a page type, you might be able to do $this->data()->goToNextPage()
1520: [22:15:32] * spronk2 has joined #silverstripe
1521: [22:16:14] * spronk2 quit (Max SendQ exceeded)
1522: [22:17:00] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1523: [22:17:02] * catcher quit (Quit: Leaving)
1524: [22:17:25] <helenclarko> That seems to have moved me onto the next error haha. Thanks Lozcalver. I'll keep working on this one.
1525: [22:19:20] * Ryan-Toast quit (Read error: Connection reset by peer)
1526: [22:20:04] <helenclarko> Nevermind, Same issue. Let me pastebin it.
1527: [22:20:09] * Ryan-Toast has joined #silverstripe
1528: [22:20:46] <helenclarko> CompositeProduct.php http://pastebin.com/ywkBr39A
1529: [22:21:51] <helenclarko> seems to be line 130 on, in the add function.
1530: [22:22:51] <Stomach> can you paste product and productcontroller too?
1531: [22:23:22] <helenclarko> I've been using ProductForm http://pastebin.com/e1nGmMnw as a reference.
1532: [22:24:22] <lozcalver> private function ^^
1533: [22:24:30] <helenclarko> Product: http://pastebin.com/xK1DN41e
1534: [22:25:40] * gavro quit (Remote host closed the connection)
1535: [22:25:51] <helenclarko> ProductForm Complete: http://pastebin.com/jeK50T8T
1536: [22:26:17] * gavro has joined #silverstripe
1537: [22:28:40] <lozcalver> Right helenclarko, the goToNextPage method is defined on ProductForm, not Product, so it's not at all connected to your Controller
1538: [22:29:58] <helenclarko> Right.
1539: [22:30:17] * gavro quit (Ping timeout: 245 seconds)
1540: [22:30:34] <lozcalver> You could change your controller to create a ProductForm instead of a Form and change it to $form->goToNextPage(), but I dunno what logic the ProductForm adds so that might not be what you're after
1541: [22:31:05] <lozcalver> I'd just copy the goToNextPage() method to your CompositeProduct_Controller
1542: [22:33:37] <helenclarko> Ill give it a look.
1543: [22:33:40] <lozcalver> Never mind, my first suggestion wouldn't work anyway, so you'll have to copy the method to your controller
1544: [22:33:41] <lozcalver> :P
1545: [22:35:14] <lozcalver> helenclarko: You should just be able to copy + paste it straight in, the only thing you'll need to change is wherever the method says "$this->controller->something" to "$this->something"
1546: [22:35:33] <lozcalver> (i.e. $this->redirect() or $this->redirectBack())
1547: [22:36:18] * gelignite quit (Quit: http://bit.ly/nkczDT)
1548: [22:37:09] <helenclarko> Holy shit, I think it worked.
1549: [22:38:29] <helenclarko> Lozcalver: THANK YOU! This has puzzled me for too long.
1550: [22:38:47] <lozcalver> helenclarko: No problem :)
1551: [22:48:10] * lozcalver quit ()
1552: [22:49:37] * veb has joined #silverstripe
1553: [22:49:44] * veb quit (Client Quit)
1554: [22:51:44] <helenclarko> Ok, one more thing. How can I add .Nice to $product->Price? Its coming back with "Call to undefined function Nice()". is .Nice() not global?
1555: [22:52:33] <helenclarko> I'm trying $product->Price.Nice()
1556: [22:52:51] <Kingy> antmas: http://www.dreamhack.se/dhw14/esport/esport-schedule/
1557: [22:55:46] * gavro has joined #silverstripe
1558: [22:58:54] * Colin[pi] has joined #silverstripe
1559: [22:59:09] * joelpittet has joined #silverstripe
1560: [23:01:39] <antmas> Kingy: oh nice
1561: [23:01:49] <Kingy> next week brah
1562: [23:01:52] * antmas is terrible about converting time to GMT+12 though :P
1563: [23:01:59] <Kingy> we're 12 hours ahead exactly so easy to work out
1564: [23:02:10] <helenclarko> Where is Nice defined?
1565: [23:02:59] <antmas> Kingy: oh sweet
1566: [23:03:01] <antmas> that's easy
1567: [23:03:06] * lerni__ has joined #silverstripe
1568: [23:03:16] * lerni__ quit (Remote host closed the connection)
1569: [23:03:17] <Kingy> ya
1570: [23:03:26] <Kingy> so the final is like 9am sunday morning
1571: [23:03:28] <Kingy> reasonable :P
1572: [23:03:49] <Ryan-Toast> How can you use html in a FormAction ?
1573: [23:04:41] <Kingy> easy..
1574: [23:04:53] <Ryan-Toast> nvm, found setButtonContent
1575: [23:05:38] * lerni_ quit (Ping timeout: 256 seconds)
1576: [23:07:17] * JeremyRoundill quit (Remote host closed the connection)
1577: [23:08:39] <Stomach> helenclarko - $product->Price()->Nice() ?
1578: [23:08:42] <Stomach> not dot notation
1579: [23:11:13] * PapaBearNZ has joined #silverstripe
1580: [23:11:22] <PapaBearNZ> Hi all.
1581: [23:11:40] <Ryan-Toast> hai
1582: [23:13:35] <PapaBearNZ> I have a problem with validation in MultiForm. after a failed validation the form is not retaining the values the user has changed. It resets back to the values it had when the step was first entered. It's as if the form data is not being saved into the step session. Should this have been done automatically? or is saving the values into the step my responsibility just before validating them?
1583: [23:14:12] <Kingy> I'm also interested in this...
1584: [23:14:20] <PapaBearNZ> SS 3.1.2 (don't give me a hard time about the out of date framework. There is a ticket raised for upgrading the system! *grin*)
1585: [23:17:21] * toddvalentine quit ()
1586: [23:18:33] * formula66 has joined #silverstripe
1587: [23:18:48] <Stomach> PapaBearNZ - sounds like it only saves the current step into the session, not the previous ones?
1588: [23:21:16] * veb has joined #silverstripe
1589: [23:21:45] <PapaBearNZ> Stomach: this is validationon the current step. I get the data correctly into the validateStep function and into the validator extension but if either of those returns false then when the redirect triggers to reload the form step the data loaded into the form is the data (if any) from prior to the validation attempt.
1590: [23:22:15] <PapaBearNZ> this is all for the current step. This step also happens to be the first step in the form.
1591: [23:22:18] * kinglozz_ has joined #silverstripe
1592: [23:22:21] * kinglozz_ is now known as lozcalver
1593: [23:22:51] <Colin[pi]> morning all!
1594: [23:22:52] * formula66 quit (Ping timeout: 246 seconds)
1595: [23:23:13] <Kingy> afternoon Colin[pi] ya late mofo
1596: [23:23:22] <Colin[pi]> Kingy: damn kids
1597: [23:23:38] <Colin[pi]> hey Ryan-Toast: http://gfycat.com/SelfassuredJollyBighorn
1598: [23:23:43] <Colin[pi]> (work in progress)
1599: [23:23:52] <Ryan-Toast> Colin[pi]: cool :D
1600: [23:24:06] <Colin[pi]> dont know why I can't see the slider bkg though
1601: [23:24:13] <Colin[pi]> perhaps something with the jquery-ui theme
1602: [23:24:24] <Ryan-Toast> *shrug
1603: [23:24:55] <Ryan-Toast> Colin[pi]: using this? http://trentrichardson.com/examples/timepicker/
1604: [23:24:59] <Colin[pi]> aye
1605: [23:25:04] <Colin[pi]> Ryan-Toast: I might work a bit more on it this arvo then put in on github if you want to give it a go
1606: [23:25:13] <Ryan-Toast> Colin[pi]: could do, yeah :)
1607: [23:25:41] <Colin[pi]> it replaces timefield using the injector, so it should automagically be available on all timefields
1608: [23:25:42] * veb quit (Ping timeout: 245 seconds)
1609: [23:26:10] <Ryan-Toast> Colin[pi]: Thought you should just be able to call the javascript method on .field.time?
1610: [23:26:45] <Colin[pi]> Ryan-Toast: you can, but you need to do some field class stuff to allow config
1611: [23:26:57] <Colin[pi]> i.e. like setConfig('showpicker',FALSE)
1612: [23:29:00] <Colin[pi]> for some reason in that gif I was subconsciously setting the time to 4:20
1613: [23:29:41] * antmas looks at Colin[pi] >.>
1614: [23:29:50] <antmas> antmas: brofist
1615: [23:29:52] <antmas> o-
1616: [23:29:56] <lozcalver> helenclarko: $product->dbObject('Price')->Nice();
1617: [23:31:56] <Colin[pi]> Kingy: should be good to go for match tonight
1618: [23:33:11] <antmas> Colin[pi]: Kingy I was planning on having a jam, but am acatching up with a mate who wants to bitch about that asshole recruiter
1619: [23:33:36] <Colin[pi]> oh the guy that flew for an interview but was told his hair was too long
1620: [23:33:37] <Colin[pi]> ?
1621: [23:34:12] <antmas> yup
1622: [23:34:29] * gavro quit (Remote host closed the connection)
1623: [23:34:48] <Colin[pi]> antmas: yeah I'd be pretty pissed lol
1624: [23:34:59] * zaid has joined #silverstripe
1625: [23:35:07] <antmas> Colin[pi]: :P yeah indeed. His hair isn't even long enough to tie back
1626: [23:35:08] * gavro has joined #silverstripe
1627: [23:37:50] <Ryan-Toast> antmas Colin[pi]: aieet, we done here http://www.gfycat.com/ActualFrightenedGrasshopper
1628: [23:38:15] <Colin[pi]> dat transition
1629: [23:38:25] <zaid> Hi all, just discovered that appending .json to restfulserver request URL changes response to JSON! That's pretty cool, I hope documentation gets updated to note that
1630: [23:38:31] <Ryan-Toast> Colin[pi]: love me some animation-delay :P
1631: [23:38:44] <Colin[pi]> Ryan-Toast: looks almost metro like :P
1632: [23:39:03] <Ryan-Toast> Colin[pi]: Trying out pulling people’s eyes with my UI these days
1633: [23:39:34] * gavro quit (Ping timeout: 265 seconds)
1634: [23:39:45] <antmas> I like the metro look Ryan-Toast :P
1635: [23:39:50] <antmas> Ryan-Toast: also, BP question
1636: [23:40:03] * camfindlay quit (Ping timeout: 265 seconds)
1637: [23:40:40] <antmas> the page builder, the open and close options - are those for images only? I see there is a text/heading colour - but nowhere where I can enter text or a heading...
1638: [23:40:48] <Colin[pi]> antmas Ryan-Toast: that wasn't a criticism, more an observation :D
1639: [23:40:59] <antmas> Colin[pi]: Ryan-Toast I like metro :D
1640: [23:42:09] * lozcalver quit ()
1641: [23:46:42] * Liquide has joined #silverstripe
1642: [23:51:52] <Ryan-Toast> antmas: I don’t :P
1643: [23:52:12] <Ryan-Toast> antmas: you put the content inside the component
1644: [23:52:39] <Ryan-Toast> components are for styling only.
1645: [23:52:45] <Ryan-Toast> The rest is what you put in them
1646: [23:54:25] <Colin[pi]> Ryan-Toast: is your work sponsoring this stuff you've been building? or have you been doing in your own time?
1647: [23:57:36] <antmas> Ryan-Toast: what content though? from the Main Content for the page?
1648: [23:57:39] <Ryan-Toast> Colin[pi]: bit of both. I build all our custom sites in BP, so technically the client sponsors it.
1649: [23:57:51] <Colin[pi]> cool
1650: [23:57:58] <Ryan-Toast> antmas: the pageItem with content selected...
1651: [23:58:29] * spronk2 has joined #silverstripe
1652: [23:58:36] <antmas> Ryan-Toast: wait, so you create a pageItem with content, then another pageItem from the open or close?
1653: [23:59:44] <Ryan-Toast> antmas: like this: http://i.imgur.com/cB3s2SJ.jpg
1654: [23:59:57] <Ryan-Toast> brb burgerfuel

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