#silverstripe IRC Log

IRC log for 5 February 2014

All timestamps are in UTC.

1: [00:01:44] * Nimle has joined #silverstripe
2: [00:03:52] * micmania1 has joined #silverstripe
3: [00:04:26] <Colin[pi]> dat feel when you resize the browser back and forth and all the responsive stuff behaves itself
4: [00:04:40] <antmas> Colin[pi]: YES
5: [00:04:42] <antmas> THIS
6: [00:04:51] <Colin[pi]> such an "aw yiss" moment
7: [00:05:03] <Nimle> One of the best feelings hahaha
8: [00:05:32] <antmas> but when there is some rouge <img> that just moves off and around like 'fuck you I'm an <img>'
9: [00:05:33] <Colin[pi]> screw around with grids and css for so long, and then.. that satisfaction ;)
10: [00:05:38] <Colin[pi]> lol
11: [00:05:55] <Colin[pi]> http://funnyasduck.net/wp-content/uploads/2012/11/funny-fuck-you-bus-hitting-cars-animated-gif.gif
12: [00:06:09] <antmas> haha
13: [00:07:11] <Nimle> http://executivetrusteetraining.com/wp-content/uploads/2012/12/like-a-boss.jpg
14: [00:07:13] <ss23> Did they really need to have "animated-gif.gif"?
15: [00:07:22] <Colin[pi]> ss23: YES
16: [00:07:28] <Colin[pi]> this gif never fails to make me laugh: http://i.imgur.com/NZN70uf.gif
17: [00:08:27] <ss23> That's okay, you'll grow out of it
18: [00:09:53] <antmas> ah
19: [00:10:00] <antmas> that makes me think of the new Alien game
20: [00:10:14] <antmas> not CM, Isolation I think it's called
21: [00:10:19] <Colin[pi]> that franchise hit it's peak a long, long time ago
22: [00:11:18] <Nimle> guys, if I delete a dataobject with delete(), will it delete its has_one relationship records from db as well, right?
23: [00:11:41] <Colin[pi]> I think they are orphaned, iirc?
24: [00:12:14] <Nimle> is there a way to delete it with all its relationship ones as well?
25: [00:12:25] <Nimle> without deleting one by one
26: [00:12:46] <antmas> Nimle: how many rels are there?
27: [00:12:51] <FrozenFire> Lol. I feel like such a derp starting with SS again after so long
28: [00:13:07] <Colin[pi]> OMG it's frozenfire
29: [00:13:13] <antmas> O
30: [00:13:14] <simon_w> FrozenFire, FIX THE DOCS
31: [00:13:14] <Nimle> 2 has_one
32: [00:13:14] <antmas> M
33: [00:13:16] <antmas> G
34: [00:13:29] <simon_w> Nimle, add an onBeforeDelete() method that deletes the has_ones too
35: [00:13:40] <Colin[pi]> dammit simon_w beat me to it
36: [00:13:41] <antmas> simon_w: Nimle that's it
37: [00:13:53] <FrozenFire> ContentController should really be called SiteTree_Controller
38: [00:13:53] <FrozenFire> :P
39: [00:13:53] <Nimle> great, thanks. it is a good idea
40: [00:14:18] <Colin[pi]> just be careful with onBeforeDelete() if you're dealing with SiteTree objects
41: [00:14:24] <Colin[pi]> here be dragons
42: [00:14:33] <antmas> Colin[pi]: Yerp, made that mistake once and only once
43: [00:14:36] <Colin[pi]> LOL
44: [00:14:41] <Colin[pi]> I think we all have
45: [00:14:46] <Nimle> ID is still available in onAfterDelete?
46: [00:15:26] <Colin[pi]> "I should really delete these associated objects if the page is deleted..." /goes to unpublish page/ "DAFUQ HAPPENED?"
47: [00:15:49] <Colin[pi]> Nimle: I think so
48: [00:17:18] <Nimle> @Collin[pi], will onAfterDelete be called if I delete with $sqlQuery->setDelete(true); $result = $sqlQuery->execute();
49: [00:17:30] <Colin[pi]> no
50: [00:17:31] * ajshort has joined #silverstripe
51: [00:17:50] <Colin[pi]> it's called by the ORM, and sqlQuery sits below that
52: [00:17:55] <Colin[pi]> unless I'm mistaken
53: [00:18:03] <antmas> I was all like 'where'd my site go'?
54: [00:18:09] <Colin[pi]> antmas: lol
55: [00:18:23] <Colin[pi]> I thought I was being a clever developer :(
56: [00:18:28] <Colin[pi]> neat and tidy
57: [00:18:28] <antmas> Class 'Page' does not exist ;__;
58: [00:18:34] <Colin[pi]> then OMG WHERE
59: [00:18:35] <Colin[pi]> DID
60: [00:18:36] <Colin[pi]> IT
61: [00:18:37] <Colin[pi]> ALL
62: [00:18:37] <Colin[pi]> GO
63: [00:18:49] <antmas> haha
64: [00:19:00] <guzzlefry> oh god the blocks :(
65: [00:19:15] <antmas> guzzlefry: ?
66: [00:19:31] <guzzlefry> Gentoo
67: [00:20:30] <guzzlefry> [blocks B ] <dev-lang/vala-0.20.0 ("<dev-lang/vala-0.20.0" is blocking dev-libs/gobject-introspection-1.36.0-r1) Might be an easy fix, we'll see. :
68: [00:20:48] <antmas> ummm...yeah
69: [00:20:50] <antmas> ...sure
70: [00:20:52] <antmas> :P
71: [00:29:11] <guzzlefry> fixed \o/
72: [00:30:41] <antmas> fucking ASB adobe reader
73: [00:34:18] <Colin[pi]> 'fucking adobe' <--- FIFY
74: [00:34:48] * antmas quit (Ping timeout: 245 seconds)
75: [00:35:09] <guzzlefry> :(
76: [00:36:48] * antmas has joined #silverstripe
77: [00:36:58] <antmas> I don't know what to have for lunch
78: [00:37:00] <antmas> halp
79: [00:37:08] <simon_w> BurgerFuel?
80: [00:37:18] <antmas> simon_w: none in Nelson :(
81: [00:37:31] <simon_w> antmas, so move?
82: [00:37:59] <antmas> lol
83: [00:39:56] <Ryan-Toast> antmas: What.The.Fuck.No.Brgerfuel
84: [00:40:10] <Ryan-Toast> The fuck is wrong with your town?
85: [00:40:13] <antmas> Ryan-Toast: I know ;__;
86: [00:40:28] <simon_w> Even ChristChurch has it now!
87: [00:40:30] <antmas> we have TWO Noodle Canteens and NO BF
88: [00:40:38] <antmas> and 4 McD's
89: [00:40:44] <simon_w> (Wellington has something like 7 now)
90: [00:40:52] <antmas> simon_w: BFs?
91: [00:40:57] <simon_w> yes
92: [00:41:01] <antmas> holy shit
93: [00:41:09] <antmas> goddamn fatties
94: [00:41:23] <simon_w> You're just jealous
95: [00:41:31] <antmas> I AM
96: [00:41:34] * antmas cries
97: [00:41:34] <terryapodaca> You're all wrong
98: [00:41:34] <spronk> oh
99: [00:41:36] <spronk> i could have burger fuel..
100: [00:41:57] <simon_w> spronk, don't worry, it's still just as tempting since antmas can't
101: [00:43:25] <simon_w> You know what would be awesome? If Canberra got Burger Fuel before antmas
102: [00:44:04] <Colin[pi]> lol
103: [00:44:49] <Nimle> if it is not a a this context, how should delete an dataobject win a native way? MyDateObject::get()->filter()->delete() ? can do that?
104: [00:45:09] <Colin[pi]> just call ->delete() on any DO and it'll delete
105: [00:45:30] <Nimle> but Do doesnt exist
106: [00:45:37] <Colin[pi]> DataObject
107: [00:45:38] <Nimle> I need to use filter to find it
108: [00:45:53] <Colin[pi]> the dataobject doesn't exist and you want to delete it?
109: [00:45:58] <Nimle> for example, I want to delete all which have startTime in the past
110: [00:46:04] <Colin[pi]> ah
111: [00:46:21] <Colin[pi]> well yes you need to filter the ones you want from the ORM, and then delete
112: [00:46:28] <Nimle> I do it with sqlQuery but it doesnt call onDeleteAfter
113: [00:46:44] <Nimle> without loop?
114: [00:46:54] <Colin[pi]> there's a delete all I think?
115: [00:46:55] <ajshort> Nimle, use ...->filter()->removeAll()
116: [00:46:57] <Nimle> MyDateObject::get()->filter()->delete() if the result contains 10000 objects
117: [00:47:03] <Nimle> ah, ok
118: [00:47:19] <Colin[pi]> thx ajshort, yeah that's the one
119: [00:47:28] <ajshort> actually, don't do that
120: [00:47:33] <ajshort> i think it'll execute an sql query for every item
121: [00:47:37] <Colin[pi]> hmm
122: [00:47:40] <ajshort> just loop manually yourself and call delete
123: [00:48:03] <Colin[pi]> wont that do the same thing?
124: [00:48:42] <ajshort> no, it'll just use one query to retrieve all the items
125: [00:49:21] <ajshort> I think the DataList::remove implementation should be changed, it does a lot of unneccesary work
126: [00:52:52] <spronk> or i could get velvet burger
127: [00:52:54] <spronk> who just opened
128: [00:53:04] <spronk> .... though do not have as tasty meat as burgerfuel
129: [00:53:20] <Nimle> hmm. it looks like remove and removeAll both are extremely slower than SQLQuery. It takes more than twice the time sqlquery takes.
130: [00:54:46] <Nimle> because the number rows can reach thousands
131: [00:55:23] <Nimle> looping is not good because one you retrieve all and then loop each to delete seperately
132: [00:55:32] <Colin[pi]> Nimle: bit of advice I've learned the hard way, if all all possible, try as much as you can to avoid low-level SQL in SS, it can be a world of hurt
133: [00:56:14] <Nimle> I know. ss way is safer. But it takes a few minutes to complete the cron
134: [00:56:23] <Nimle> with raw query, it is instant
135: [00:56:52] <Nimle> just imagine to delete, you get 100 000s rows and then call one delete query for each
136: [00:57:08] <Colin[pi]> performance hit comes with the territory of using an ORM, since it looks after all of the "behind the scenes" stuff
137: [00:58:14] <Colin[pi]> I mean I guess I haven't built a DB in SS with that many records, so I haven't benchmarked its performance with big DBs
138: [00:58:52] <spronk> http://www.stuff.co.nz/the-press/news/city-centre/9688777/Councils-road-sign-typo-taken-down?utm_source=dlvr.it&utm_medium=twitter
139: [00:58:52] <spronk> lolfail
140: [00:59:34] <spronk> i definitely would look at using a raw query for mass deletes
141: [00:59:50] <Colin[pi]> performance wise will be a LOT faster yeah
142: [00:59:55] <spronk> but
143: [01:00:03] <spronk> you've gotta make sure you know the underlying schema first
144: [01:00:04] <spronk> and
145: [01:00:16] <spronk> make sure that if you upgrade ss you keep an eye on any schema changes that may affect your queries
146: [01:00:29] <Colin[pi]> ^ this
147: [01:04:11] <irogue> man, i caught a wicked break today
148: [01:04:24] <irogue> phone went flat overnight, alarm didn't go off
149: [01:04:31] <irogue> slept through a client meeting
150: [01:04:48] <irogue> plugged phone in to charge it and call to apologise profusely
151: [01:05:21] <irogue> receive txt from the client apologising for not turning up, saying he'd put the wrong time in his calendar
152: [01:05:24] <irogue> ^_^
153: [01:05:35] <Colin[pi]> haha nice
154: [01:06:43] <FrozenFire> You would think by now I would remember what to return from a controller action to trigger default rendering of the request.
155: [01:06:51] <FrozenFire> I thought it was array()
156: [01:06:54] <FrozenFire> But apparently not?
157: [01:06:57] <simon_w> It is an array
158: [01:07:04] <FrozenFire> o.O
159: [01:07:47] <Colin[pi]> associative array for the template
160: [01:07:58] <FrozenFire> Wait, nevermind
161: [01:08:01] <FrozenFire> Was getting a hidden error
162: [01:10:07] <ajshort> Nimle, you can probabily use DataList, then get the underlying SQL query, call setDelete on that, and execute it
163: [01:11:18] <guzzlefry> weee
164: [01:11:27] <guzzlefry> ss23: Works fine with MariaDB. :P
165: [01:11:35] <ss23> yay!
166: [01:12:18] <guzzlefry> but...
167: [01:12:27] <guzzlefry> not sure how to easily migrate on Ubuntu.
168: [01:13:08] * PapaBear quit (Ping timeout: 245 seconds)
169: [01:13:35] <guzzlefry> From random things I'm reading, MariaDB seems to fix bugs faster.
170: [01:14:01] * ajshort quit (Quit: Leaving)
171: [01:16:58] <ss23> guzzlefry: And run faster!
172: [01:16:59] <ss23> :D
173: [01:17:02] <ss23> CWP runs MariaDB iirc
174: [01:17:11] <guzzlefry> CWP?
175: [01:17:30] <ss23> Common Web Platform!
176: [01:17:31] <guzzlefry> I think that's been mentioned here before...
177: [01:17:42] <guzzlefry> How is it related to this channel?!
178: [01:17:43] <ss23> The platform the NZ gov uses
179: [01:17:45] <ss23> lol
180: [01:17:47] <guzzlefry> oh!
181: [01:18:01] <ss23> SilverStripe the company runs parts of it, and the "platform" uses SilverStripe the product/software
182: [01:18:46] <ss23> Sometimes I feel sad, then I load http://www.tasman.govt.nz/home/SearchForm?Search=recycling&action_results=Search and I stop being sad and just giggle instead
183: [01:19:55] <guzzlefry> I don't get it.
184: [01:20:06] <antmas> ss23: :|
185: [01:20:12] <ss23> guzzlefry: DId you mean
186: [01:20:14] <ss23> recyclingther?
187: [01:20:16] <antmas> ss23: It's on my list
188: [01:20:18] <ss23> lol
189: [01:20:19] <ss23> ik
190: [01:20:22] <ss23> It was on ours too
191: [01:20:23] <guzzlefry> haha
192: [01:20:26] <ss23> It's just a hilarious bug
193: [01:20:27] <antmas> lol
194: [01:20:27] <ss23> idk why
195: [01:20:35] <ss23> But I just like to imagine being this really helpful thing
196: [01:20:42] <ss23> "Oh hi there Mr ss23! Watcha searching for today? ^.^"
197: [01:20:51] <ss23> "Oh, recylcling? I'll help! You meant recyclingther right?! :D"
198: [01:20:55] <antmas> it's actually kinda hard to push it up TBH, at least checking the combined files are correct
199: [01:20:56] <ss23> Like, it's trying to help, but just failing XD
200: [01:21:33] <antmas> but then I don't get access to push updates to the live site :(
201: [01:21:43] <antmas> because NO ONE TRUSTS antmas
202: [01:21:48] <antmas> :(
203: [01:22:10] <antmas> btw I had subway in the end and my jalepenos tasted like cola
204: [01:22:36] <ss23> o.o
205: [01:22:38] <ss23> weird
206: [01:23:00] * zippy__ has joined #silverstripe
207: [01:23:08] <antmas> teh Subway in Richmond is odd
208: [01:25:25] * SightUnseen1 has joined #silverstripe
209: [01:25:28] * SightUnseen1 has left #silverstripe
210: [01:31:45] <antmas> good god https://www.humblebundle.com/
211: [01:32:10] <ss23> I bought it
212: [01:32:22] <ss23> It annoyed me though, so I only did 1c over average
213: [01:32:29] <antmas> lol
214: [01:32:32] <antmas> you bastard
215: [01:32:40] <ss23> http://i.imgur.com/KecDCcA.jpg
216: [01:32:55] <antmas> win
217: [01:33:12] <ss23> I already own Civ III, but it doesn't run on Win7
218: [01:37:32] <irogue> wow, someone's bail conditions were "not to be found south of River Rd or west of Te Aroha Street"
219: [01:37:58] <ss23> hmm
220: [01:37:59] <ss23> Any reason?
221: [01:38:00] <FrozenFire> Has the ability to iterate non-ViewableData objects in templates improved at all?
222: [01:38:25] <FrozenFire> I need to iterate an Iterator that comes from an SDK, which is just plain objects.
223: [01:38:26] <irogue> ss23: idk. a unit asked if they were still banned from CBD, dispatcher looked it up and found that was the condition
224: [01:38:52] <irogue> they're quite confused by the wording of it
225: [01:39:21] <ss23> lol
226: [01:39:31] <antmas> irogue: that's a bit dumb, he can be anywhere in the world but not beyond those directions lol
227: [01:39:35] <guzzlefry> FrozenFire: probably not
228: [01:39:45] <irogue> antmas: exactly lol
229: [01:40:26] <irogue> i suspect it was to stop them going into the CBD or Ham East (where the local synthetics shop is)
230: [01:40:56] <ss23> I fucking hate drug laws
231: [01:40:57] <ss23> like
232: [01:41:18] <ss23> my fucking god how can any person be so incredibly stupid as to think that making pot illegal is going to be a good thing, even more so now than ever before we have syntehetics
233: [01:41:25] <ss23> Blows my mind :/
234: [01:41:52] <antmas> yeah I don't get it
235: [01:42:04] <antmas> not with alcohol and tobacco being legal
236: [01:42:07] <antmas> and pot not
237: [01:42:25] <Ryan-Toast> WON'T SOMEBODY THINK OF THE CHILDREN?
238: [01:42:30] <Ryan-Toast> ...and make it legal.
239: [01:42:32] <antmas> lol
240: [01:42:50] <antmas> I tried programming while **** once
241: [01:42:54] <antmas> pardon the ****s
242: [01:42:57] <Ryan-Toast> starred?
243: [01:43:10] <antmas> and coded Ruby while in a C# project
244: [01:43:23] <Ryan-Toast> you had four stars on you? That's impressive, cops usually bust me after two stars.
245: [01:43:32] <antmas> HAHAHA
246: [01:44:14] <antmas> synthetics are fuckin nuts
247: [01:44:33] <irogue> yes they are
248: [01:46:06] <irogue> http://goo.gl/maps/2TJVG
249: [01:46:11] <antmas> ss23: :O
250: [01:46:13] <irogue> that lady's invisible wall
251: [01:46:16] <antmas> ss23: you stole my joke!
252: [01:46:19] <ss23> What?!
253: [01:46:21] <antmas> :|
254: [01:46:22] * ss23 looks around nervously
255: [01:46:26] <ss23> I... WHAT ARE YOU TALKING ABOUT?
256: [01:46:29] <antmas> twitter :P
257: [01:46:35] <antmas> Clippy
258: [01:46:41] <antmas> >.>
259: [01:46:49] <ss23> I DON'T KNOW WHAT YOU ARE TALKING ABOUT LOL THAT IS MY JOKE
260: [01:46:56] <ss23> .msg simon_w have you edit the logs yet?! HURRY
261: [01:47:04] <ss23> whoops
262: [01:47:04] <ss23> ignore
263: [01:47:16] <antmas> hahaha
264: [01:47:28] <antmas> irogue: are those the boundaries?
265: [01:47:40] <irogue> antmas: yep, they can't go left/below that line
266: [01:48:35] <antmas> irogue: lol, what if we went around the world and went to the synthetics store
267: [01:48:41] <antmas> he wouldn't have 'crossed the line'
268: [01:48:44] <guzzlefry> hrm
269: [01:48:47] <irogue> *she
270: [01:48:50] <antmas> oh
271: [01:48:52] <irogue> on bail tho so cant leave country
272: [01:48:57] <guzzlefry> Why can't you just iterate over arrays and such in SilverStripe's templates?
273: [01:48:59] <antmas> ah
274: [01:49:24] <irogue> is a middle-aged homeless woman
275: [01:51:07] <irogue> http://www.reddit.com/r/newzealand/comments/1x1ceq/choosing_a_broadband_provider/
276: [01:51:10] <irogue> <3
277: [01:52:15] <antmas> so true about Slingshot
278: [01:52:21] <simon_w> ss23, but I don't edit the logs
279: [01:52:42] <antmas> also, </3 geekzone
280: [01:52:53] <ss23> simon_w: Ohhhh OH YOU
281: [01:52:53] <FrozenFire> Isn't there some functionality in ContentController or somesuch which lets you do action-specific templates?
282: [01:52:56] <ss23> :P
283: [01:53:04] <FrozenFire> E.g. Page_index.ss
284: [01:53:07] <simon_w> FrozenFire, return an array
285: [01:53:09] <simon_w> and yes
286: [01:53:54] <antmas> fark
287: [01:53:59] <antmas> Spotify region locked songs
288: [01:54:01] <antmas> such a tease
289: [01:54:08] <FrozenFire> Doesn't seem to be working. I'm probably doing something dumb.
290: [01:54:08] <guzzlefry> proxy errything
291: [01:54:14] <guzzlefry> FrozenFire: flush
292: [01:54:21] <FrozenFire> I have the action on my controller, and I'm returning an array, and I've flushed with a vengeance
293: [01:54:28] <FrozenFire> And it's in my allowed_actions
294: [01:54:45] <guzzlefry> oh, heads up, 404 is returned on disallowed actions now. :P
295: [01:54:59] <guzzlefry> instead of a permission denied message, been getting me lately.
296: [01:55:17] <FrozenFire> Derp. Error again.
297: [01:55:20] <FrozenFire> I've got to fix that. :P
298: [01:55:22] <antmas> guzzlefry: not from work
299: [01:55:40] <antmas> proxy I mean
300: [01:55:40] <guzzlefry> FrozenFire: no error reporting?
301: [01:55:57] <FrozenFire> Probably not. This is usually my production box I'm working on. :P
302: [01:56:03] <FrozenFire> Personal production
303: [01:56:05] <guzzlefry> ah
304: [01:56:22] <guzzlefry> You should consider puphpet! :P
305: [01:56:40] <guzzlefry> I'd use that if Vagrant and Win7 got along better. >_>
306: [01:57:04] <guzzlefry> Right now I basically have a set-up similar to clients.MD on my local VM.
307: [01:58:01] <guzzlefry> k, pass out time, night
308: [01:58:59] <irogue> nn guzzlefry
309: [01:59:31] * nhorstmeier has joined #silverstripe
310: [02:00:14] <antmas> Ryan-Toast: how was the tramp session?
311: [02:00:28] <Ryan-Toast> didn't go, was feeling too sick. Going for a 4 hour session tomorrow.
312: [02:00:38] * PapaBear has joined #silverstripe
313: [02:00:54] * camfindlay has joined #silverstripe
314: [02:00:59] <antmas> dang
315: [02:02:01] <PapaBear> Hi again everyone. Has anyone used the onAfterUpload hook in the File Class? it appears to never be called from anywhere.... at least, the only reference I can find to it is in its own definition
316: [02:02:42] <irogue> antmas: "tramp session" is much funnier if you imagine it with the american meaning of tramp
317: [02:02:54] <antmas> irogue: I was JUST about to say that
318: [02:03:10] * camfindlay has left #silverstripe
319: [02:03:41] <antmas> I got funny looks last time I said I was "going to go bouncing on the tramp" around some Americans
320: [02:04:22] <Ryan-Toast> irogue: I don't think my body could handle 4 hours of "tramping" in America.
321: [02:04:40] <irogue> PapaBear: can't say i have sorry, but i suspect it's just there for modules to make use of
322: [02:05:22] <irogue> PapaBear: the Cloud Assets module might make use of it perhaps
323: [02:06:36] <irogue> antmas: i could *not* stop laughing when an american mate kept talking about his "slippery tranny"
324: [02:08:15] <antmas> haha
325: [02:08:49] <antmas> I need a recommendation
326: [02:08:55] * ObiWanShanobi has joined #silverstripe
327: [02:09:11] <antmas> what would be the *best* way to store 'votes' for this? https://github.com/mateusz/silverstripe-polls/tree/master/code
328: [02:09:12] <irogue> antmas: never go to Firecats in hamilton
329: [02:09:54] * unsignedint quit ()
330: [02:10:20] <irogue> antmas: oh, a specific recommendation :P
331: [02:10:23] * irogue looks
332: [02:10:33] <PapaBear> irogue: Agreed - but unless the function is called from somewhere how can any extensions using the hook ever be triggered?
333: [02:11:46] <antmas> I have all of it work :P - just need to decide on a good way to store the votes
334: [02:11:51] <antmas> working*
335: [02:12:39] <irogue> PapaBear: oh, i see what you're saying now
336: [02:14:04] <simon_w> PapaBear, looks like it was added (back in 2.3) but never called
337: [02:14:58] <antmas> irogue: any thoughts?
338: [02:15:36] * mintuser has joined #silverstripe
339: [02:15:39] * mintuser is now known as mintuser_
340: [02:21:08] * antmas quit (Quit: Page closed)
341: [02:21:26] * antmas has joined #silverstripe
342: [02:21:30] <irogue> antmas: the most efficient way, if you don't need any finegrained data, would be to just store the number of votes as an int against each option and increment it
343: [02:22:03] <antmas> irogue: I was thinking this
344: [02:22:40] <antmas> mmm dat punk http://open.spotify.com/track/6acVfTT8t66r4mXUzgOr4A
345: [02:23:25] <irogue> hahaha this is so backwards
346: [02:24:01] <irogue> a traffic unit is dealing with a suspicious guy while a dog unit is going to a car crash
347: [02:26:23] <antmas> aww yiss, langham is discounting attendees :D
348: [02:26:36] <Ryan-Toast> antmas: This better be good.
349: [02:26:59] <antmas> Ryan-Toast: ruhroh?
350: [02:27:09] <Ryan-Toast> dat punk.
351: [02:27:29] <antmas> Ryan-Toast: oh, more I'd call it hardcore, less so punk
352: [02:29:27] <zippy__> irogue: scanner?
353: [02:30:03] <antmas> Ryan-Toast: thoughts?
354: [02:30:10] <Ryan-Toast> antmas: still listening
355: [02:31:31] <antmas> bah
356: [02:31:35] <antmas> xdebug not working
357: [02:32:33] <antmas> Ryan-Toast: excellent album that one
358: [02:33:27] <Ryan-Toast> antmas: interesting. I'm not a huge fan of the genre though. Your turn: http://www.youtube.com/watch?v=VMacT8aSvDU&list=PL016DF490B141ECBD
359: [02:34:04] <antmas> Ryan-Toast: I cross genres all the time - listening
360: [02:34:45] <antmas> Ryan-Toast: lol I can imagine this playing to yet another GoPro video
361: [02:34:46] <antmas> :P
362: [02:34:54] <antmas> tis good though
363: [02:34:55] <Ryan-Toast> :P
364: [02:35:17] <antmas> not exactly SFW btw "P
365: [02:35:30] <Ryan-Toast> Yeah, probe should have mentioned that...haha
366: [02:35:59] <Ryan-Toast> we were looking at penthouse at work before, sometimes I forget that other places aren't quite as flexible :P
367: [02:36:21] <antmas> ha
368: [02:36:26] <irogue> zippy__: yeh
369: [02:36:39] <irogue> Ryan-Toast: yeah, i forget that too
370: [02:37:16] <antmas> Ryan-Toast: maybe not your thing, but still http://open.spotify.com/track/2qIWuOrAN2aGyAnh6K5nxe
371: [02:38:01] <Ryan-Toast> antmas: can you tell me what genre this is? http://www.youtube.com/watch?v=2o2xbHOlqj0
372: [02:38:48] <Ryan-Toast> antmas: ha, that's already on my playlist: http://www.youtube.com/watch?v=d1cianvOyJU&list=PL016DF490B141ECBD&index=164
373: [02:39:07] <irogue> i achieved quite a win swap today
374: [02:39:17] <irogue> swapped my ipad 2 for an ipad mini
375: [02:39:20] <irogue> ^_^
376: [02:39:41] <antmas> Ryan-Toast: nu metal / hardcore I'd say
377: [02:39:52] <antmas> the band is Maximum the Hormone
378: [02:40:09] <antmas> Ryan-Toast: also, playlist win!
379: [02:40:20] <Ryan-Toast> I'd love to see some more metal/electro crossovers.
380: [02:40:25] <irogue> "Maximum the Hormone". sounds like a discussion ss23 was just having in another channel.
381: [02:40:30] <Ryan-Toast> Like pendulum did with umm...I'll find the song
382: [02:40:45] <antmas> Ryan-Toast: I know the song
383: [02:40:49] <antmas> cant think of band name
384: [02:40:51] <antmas> ummmm
385: [02:40:55] <antmas> fuck
386: [02:41:07] <Ryan-Toast> I want to say it starts with "S"
387: [02:41:55] <ss23> 15:40:25 < irogue> "Maximum the Hormone". sounds like a discussion ss23 was just having in another channel.
388: [02:41:59] <ss23> rofl
389: [02:41:59] <ss23> But MtH is really good
390: [02:42:01] * ss23 headbangs
391: [02:42:04] <Ryan-Toast> Ah, "Self Vs Self" http://www.youtube.com/watch?v=TBJjREXXSyA&feature=kp
392: [02:42:05] <ss23> And oh the LYRICS!
393: [02:42:07] <ss23> Very very good!
394: [02:42:09] <ss23> :p
395: [02:42:19] <antmas> Ryan-Toast: ah yes, In Flames
396: [02:42:33] <Ryan-Toast> wish there was some more stuff like that, I dig it.
397: [02:42:47] <antmas> Ryan-Toast: this is a bit like that http://open.spotify.com/track/2uFvGyfwDXyfTgClv97P1G
398: [02:43:50] <Ryan-Toast> Makes me want whiskey.
399: [02:44:30] * ObiWanShanobi quit (Remote host closed the connection)
400: [02:46:13] * antmas quit (Quit: Page closed)
401: [02:46:35] * antmas has joined #silverstripe
402: [02:48:42] <antmas> crank out the bong! http://open.spotify.com/track/4S2mdel9MnolryHskau6F2
403: [02:50:01] <ss23> The description of Asking Alexandria looks awesome
404: [02:50:04] <ss23> But it's just bad music IMO
405: [02:50:35] * OxFF quit (Quit: Hasta la proxima)
406: [02:52:39] <antmas> ss23: yeah I
407: [02:53:02] <antmas> I'm not a fan actually, was just looking for similar stuff to what Ryan-Toast suggested :D
408: [02:53:54] * ObiWanShanobi has joined #silverstripe
409: [02:54:44] <Colin[pi]> afternoon sleepies -o-
410: [02:54:56] <Ryan-Toast> fuck yeah, public holiday tomorrow.
411: [02:55:18] <Colin[pi]> what's the occasion?
412: [02:55:24] <Ryan-Toast> Invasion day
413: [02:56:04] <Ryan-Toast> Colin[pi]: http://imgur.com/PO3CkyN
414: [02:56:09] <antmas> Ryan-Toast: LOL
415: [02:56:10] <irogue> dammit
416: [02:56:12] <irogue> you beat me to it
417: [02:56:14] <Colin[pi]> lol
418: [02:56:17] <irogue> literally just pasted that link
419: [02:56:21] <antmas> haha
420: [02:56:22] <Ryan-Toast> :P
421: [02:56:29] <antmas> I have Friday off now too :D
422: [02:56:32] <irogue> did you see the nzgameshop email?
423: [02:56:37] <Colin[pi]> didnt realise it was so close to Aus Day
424: [02:56:43] <Ryan-Toast> I have too much work to do to take friday off
425: [02:58:37] <ss23> You know what is a good band that's a little older now? Underoath!
426: [02:59:10] <simon_w> Oh look, composer broke! https://travis-ci.org/simonwelsh/silverstripe-framework/builds/18245206
427: [02:59:30] <Ryan-Toast> How does Travis check a build?
428: [02:59:37] <irogue> ss23: bro, what about Lostprophets? they're good right?
429: [02:59:40] <Ryan-Toast> Does it just run through the PHPUnit tests?
430: [02:59:59] <simon_w> Ryan-Toast, https://github.com/simonwelsh/silverstripe-framework/blob/3.1/.travis.yml
431: [03:00:16] <Ryan-Toast> simon_w: cool.
432: [03:00:38] * PapaBear quit (Ping timeout: 245 seconds)
433: [03:06:02] <ss23> 15:59:37 < irogue> ss23: bro, what about Lostprophets? they're good right?
434: [03:06:19] <ss23> You know when you start typing something, then you're like "Hmm, this is a channel associated with work! I should not say that"
435: [03:06:22] <ss23> yeah
436: [03:06:26] <ss23> let me just say: LOL
437: [03:07:18] <irogue> :p
438: [03:08:28] <Colin[pi]> ss23: not that it's stopped you before
439: [03:08:41] * OxFF has joined #silverstripe
440: [03:09:25] <ss23> I saw an amazing quote the other day
441: [03:09:34] <ss23> "People say I have no filter. I don't think they realise how much I don't say"
442: [03:10:19] <ss23> My main problem is that I believe in freedom, to the point where I end up associating in places where "anything goes" (quite literally, to the point where people end up in prison etc), so my values of what's good/bad are warped far away from most people
443: [03:15:29] <antmas> Underoath is a little to Chirstian for me
444: [03:15:35] <antmas> even though I dig Norma Jean
445: [03:15:43] <antmas> are*
446: [03:16:00] <antmas> also, I feel gross for liking Lost Prophets back in 5th form :P
447: [03:16:29] * violetina quit (Remote host closed the connection)
448: [03:16:46] <simon_w> Come on Travis, work...
449: [03:19:17] * zippy__ quit (Ping timeout: 246 seconds)
450: [03:20:53] <antmas> fook
451: [03:20:56] <antmas> damn 404
452: [03:24:45] * dclelland has joined #silverstripe
453: [03:26:49] <antmas> ma submitPoll 404s :<
454: [03:27:04] * dclelland quit (Quit: dclelland)
455: [03:27:06] <antmas> bah, Monday job
456: [03:28:08] <antmas> http://www.stuff.co.nz/national/9689005/Drowned-man-had-been-at-brothel
457: [03:28:11] <antmas> WHOOPS
458: [03:28:15] * ObiWanShanobi quit (Remote host closed the connection)
459: [03:29:45] <irogue> antmas: not surprising
460: [03:29:59] * antmas quit (Quit: Page closed)
461: [03:30:19] <irogue> the Chows are pretty dodgy, not the first time they've been caught serving people to the point of alcohol poisoning
462: [03:30:42] <Colin[pi]> five times higher than legal... damn
463: [03:31:06] * ObiWanSh_ has joined #silverstripe
464: [03:31:24] <irogue> and that was when they found him a day later
465: [03:32:52] * ObiWanSh_ is now known as shannon_
466: [03:36:06] <simon_w> Would've had plenty of water to dilute things
467: [03:37:35] <simon_w> Well, gym time I guess
468: [03:37:43] <ss23> GYM?!
469: [03:38:13] * nhorstmeier quit ()
470: [03:46:14] <Colin[pi]> this video is so creepy: http://www.youtube.com/watch?v=KhrteSZXFzM
471: [03:46:43] <irogue> ss23: www.youtube.com/watch?feature=player_detailpage&v=wyx6JDQCslE#t=43
472: [03:48:02] <ss23> Colin[pi]: just a little bit
473: [03:48:06] <ss23> the weird streching makes it weorse
474: [03:48:08] <ss23> worse*
475: [03:48:19] <Colin[pi]> i love their videos
476: [03:48:43] <Colin[pi]> different than the usual crap
477: [03:49:09] <Colin[pi]> love this trippy one too http://www.youtube.com/watch?v=MSxjbF18BBM
478: [03:52:47] * joelpittet has joined #silverstripe
479: [03:53:51] <Ryan-Toast> Why am I getting a division by 0 error when there are elements being looped on the page? http://www.webdough.co.nz/~boilerpl/blog/
480: [03:54:13] <ss23> $this->getPageLength() is returning 0 I guess?
481: [03:54:18] <ss23> var_dump($this->getPageLength());
482: [03:54:21] <ss23> could be returning null too
483: [03:55:34] <Ryan-Toast> looks like null
484: [03:55:57] <ss23> FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT
485: [03:56:04] <Ryan-Toast> WHAT DO I DO?
486: [03:56:10] <ss23> FIX IT :O
487: [03:56:15] <ss23> find that function and make it do whatit should!
488: [03:56:34] <Ryan-Toast> The pagination function?
489: [03:56:41] <ss23> I don't know what/where it is
490: [03:56:42] <ss23> o.o
491: [03:56:44] <ss23> I am bad at SS
492: [03:56:48] <ss23> I mean getPageLEngth
493: [03:56:51] <ss23> That shouldn't return 0, right?
494: [03:57:06] <Ryan-Toast> I hope not
495: [03:58:18] <irogue> such divide
496: [03:58:21] <irogue> many zeroes
497: [04:04:01] <Ryan-Toast> Yay, got it.
498: [04:05:16] * SightUnseen has joined #silverstripe
499: [04:09:05] * SightUnseen has left #silverstripe
500: [04:11:29] <Ryan-Toast> coolio, here's the latest version of my boilerplate: http://www.webdough.co.nz/~boilerpl/
501: [04:18:02] * dclelland has joined #silverstripe
502: [04:22:53] <Colin[pi]> looking good dude
503: [04:23:25] * dclelland quit (Quit: dclelland)
504: [04:23:43] <irogue> bahaha
505: [04:23:55] <irogue> G4S have got to be the most useless security company
506: [04:25:37] <irogue> they monitor the electronic bail bracelets here. they just told police they can't send details of a breach cos of privacy act.
507: [04:26:29] * cloph_away quit (Ping timeout: 246 seconds)
508: [04:30:03] * shannon_ quit (Remote host closed the connection)
509: [04:30:46] * shannon_ has joined #silverstripe
510: [04:31:08] * cloph_away has joined #silverstripe
511: [04:35:11] * shannon_ quit (Ping timeout: 245 seconds)
512: [04:54:47] <mintuser_> hi everyone
513: [04:55:02] * mintuser_ is now known as DesignerX
514: [04:55:32] <DesignerX> anyone uses incron on linux ? cant find out how to make it run a command when a file/folder is changed.. any tips ?
515: [05:00:02] * variable_office has joined #silverstripe
516: [05:00:30] <variable_office> is there a way to have the existing relation search bar for gridfield do a full string search rather than start from the beginning of the word?
517: [05:05:23] * chillu_23 quit (Quit: chillu_23)
518: [05:12:28] * simon_w quit (Quit: This computer has gone to sleep)
519: [05:18:51] * ccb has joined #silverstripe
520: [05:19:45] <ccb> hi everyone, does anyone have a recommendation on how to add spam protection to the comment module that im using in the blog?
521: [05:21:36] * Error404NotFound has joined #silverstripe
522: [05:22:49] * ajshort has joined #silverstripe
523: [05:25:11] * OxFF quit (Ping timeout: 245 seconds)
524: [05:30:33] <ccb> hi everyone, does anyone have a recommendation on how to add spam protection to the comment module that im using in the blog?
525: [05:31:23] <ccb> do i need to extend CommentsExtension, copy the commentForm method, and inject the spam protection into the form?
526: [05:31:34] <ccb> seems like there should be an easier way..
527: [05:35:52] <ccb> looks like maybe i need to extend CommentsController and use the alterCommentForm hook..
528: [05:48:35] * will has joined #silverstripe
529: [05:48:48] <will> hello everyone
530: [05:49:08] * will is now known as Guest77027
531: [05:50:01] <Guest77027> im trying to use the import csv function in a model admin. It has recognised that i have a $belongs_many_many relation and included that in the csv specification, but i don't get how to use it?
532: [05:50:45] <Guest77027> so i guess my question is, how do i enter the belongs_many_many records in my csv so they get imported?
533: [05:51:53] * ccb quit (Ping timeout: 245 seconds)
534: [05:52:52] * ajshort quit (Quit: Leaving)
535: [05:57:16] * terryapodaca quit (Quit: Leaving.)
536: [05:59:10] * Azure quit (Read error: Connection reset by peer)
537: [05:59:31] * Azure has joined #silverstripe
538: [06:04:27] * simon_w has joined #silverstripe
539: [06:23:15] * willr quit (Quit: willr)
540: [06:50:51] <ss23> Lol @ GCHQ DDoSing anonomyous
541: [06:54:15] * DigNZ has joined #silverstripe
542: [06:55:38] * Guest77027 quit (Ping timeout: 245 seconds)
543: [07:02:02] * DigNZ quit (Quit: DigNZ)
544: [07:03:30] * Azure quit (Read error: Connection reset by peer)
545: [07:03:54] * Azure has joined #silverstripe
546: [07:11:42] * zippy__ has joined #silverstripe
547: [07:11:53] * Nimle quit (Ping timeout: 245 seconds)
548: [07:34:04] * SightUnseen has joined #silverstripe
549: [07:36:10] * lerni_ has joined #silverstripe
550: [07:36:12] * lerni_ quit (Remote host closed the connection)
551: [07:36:18] * lerni_ has joined #silverstripe
552: [07:37:51] <simon_w|air> ss23, going to work tomorrow?
553: [07:38:54] * Shrike_Finland has joined #silverstripe
554: [07:39:23] * SightUnseen has left #silverstripe
555: [07:40:33] <ss23> simon_w|air: Oh for sure! I love working alone! :P
556: [07:59:00] <simon_w|air> Well, yeah. That's kinda a given :p
557: [08:01:09] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
558: [08:03:26] * Bollig|DesignCty has joined #silverstripe
559: [08:26:41] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
560: [08:27:15] * Bollig|DesignCty has joined #silverstripe
561: [08:31:23] * Bollig|DesignCty quit (Ping timeout: 250 seconds)
562: [08:48:48] * UncleCheese has joined #silverstripe
563: [08:56:28] <simon_w|air> Bah, not writing Hack is frustrating
564: [08:58:53] * Bollig|DesignCty has joined #silverstripe
565: [09:04:02] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
566: [09:04:20] * Error404NotFound has joined #silverstripe
567: [09:05:05] * Bollig|DesignCty quit (Ping timeout: 246 seconds)
568: [09:10:28] * kinglozzer has joined #silverstripe
569: [09:12:00] * joelpittet quit (Remote host closed the connection)
570: [09:39:13] * ss23 quit (Ping timeout: 265 seconds)
571: [09:44:01] * ss23 has joined #silverstripe
572: [10:00:50] * lerni_ quit ()
573: [10:01:39] * UncleCheese quit (Quit: UncleCheese)
574: [10:03:02] * Shrike_Finland quit (Quit: Leaving.)
575: [10:05:52] * Shrike_Finland has joined #silverstripe
576: [10:16:57] * Azure quit (Read error: Connection reset by peer)
577: [10:17:04] * Error404NotFound quit (Read error: Connection reset by peer)
578: [10:17:11] * Err404NotFound has joined #silverstripe
579: [10:17:29] * Err404NotFound is now known as Error404NotFound
580: [10:17:29] * Azure has joined #silverstripe
581: [10:20:06] * UncleCheese has joined #silverstripe
582: [10:20:11] * zippy__ quit (Ping timeout: 245 seconds)
583: [10:21:26] * Error404NotFound quit (Read error: Connection reset by peer)
584: [10:21:41] * Error404NotFound has joined #silverstripe
585: [10:23:22] * zippy__ has joined #silverstripe
586: [10:34:08] * andylock1an quit (Remote host closed the connection)
587: [10:35:52] * headtrip has joined #silverstripe
588: [10:35:57] <headtrip> hey guys
589: [10:36:03] <headtrip> greetings from germany :)
590: [10:38:37] * DesignerX quit (Ping timeout: 272 seconds)
591: [10:41:24] <headtrip> can someone help me with the lowercase/uppercase problem when deploying from windows to a unix system
592: [10:42:56] * OzziNL has joined #silverstripe
593: [10:44:48] * speak_ has joined #silverstripe
594: [10:55:31] <UncleCheese> delete all the tables and run dev/build
595: [10:59:49] <speak_> Hey, I was wondering how you implement a drop down like this: https://db.tt/uVKOSZcP for a DataObject?
596: [11:00:03] <speak_> I tried a TreeDropdownField, but that requires a hierarchy.
597: [11:01:12] * joelpittet has joined #silverstripe
598: [11:05:14] * Colin[pi] quit (Ping timeout: 250 seconds)
599: [11:06:06] * joelpittet quit (Ping timeout: 265 seconds)
600: [11:10:10] * Error404NotFound quit (Read error: Connection reset by peer)
601: [11:16:23] * Shrike_Finland quit (Quit: Leaving.)
602: [11:20:42] * Shrike_Finland has joined #silverstripe
603: [11:21:18] * violetina has joined #silverstripe
604: [11:26:03] * Error404NotFound has joined #silverstripe
605: [11:41:23] * UncleCheese quit (Quit: UncleCheese)
606: [11:45:36] * OzziNL quit (Ping timeout: 245 seconds)
607: [11:46:35] * cloph_away is now known as cloph
608: [11:57:12] * zippy__ quit (Quit: zippy__)
609: [12:16:31] * Azure quit (Read error: Connection reset by peer)
610: [12:16:50] * Azure has joined #silverstripe
611: [12:29:16] * John_John_ has joined #silverstripe
612: [12:50:15] * joelpittet has joined #silverstripe
613: [12:54:26] * joelpittet quit (Ping timeout: 245 seconds)
614: [13:04:15] * UndefinedOffset has joined #silverstripe
615: [13:06:43] <Shrike_Finland> Hi guys, how could I limit this function also without any language module installed: http://pastebin.com/MY1PvK6V
616: [13:07:02] <Shrike_Finland> Now I get "[Notice] Undefined variable: locale"
617: [13:07:29] <Shrike_Finland> I think it works fine, when there is Translatable used...
618: [13:10:42] <guzzlefry> Shrike_Finland: $locale isn't defined.
619: [13:11:05] <guzzlefry> Is it ever defined in that function?
620: [13:11:35] <guzzlefry> err, method
621: [13:37:44] * Shrike_Finland quit (Quit: Leaving.)
622: [14:05:49] * Shrike_Finland has joined #silverstripe
623: [14:07:57] * micmania1 has joined #silverstripe
624: [14:11:41] * John_John_ has left #silverstripe
625: [14:21:14] * catcher has joined #silverstripe
626: [14:28:36] <Shrike_Finland> guzzlefry: No, not defined in that function. The idea is to keep wrong language content appearing on certain pages in certain language. But in this case, I do not have any other language needed. But I´d like to use same functions anyway…
627: [14:38:21] * joelpittet has joined #silverstripe
628: [14:42:50] * joelpittet quit (Ping timeout: 246 seconds)
629: [14:46:44] * Shrike_Finland quit (Quit: Leaving.)
630: [14:55:03] * Error404NotFound quit (Read error: Connection reset by peer)
631: [15:08:32] * micmania2 has joined #silverstripe
632: [15:11:11] * micmania1 quit (Ping timeout: 246 seconds)
633: [15:13:59] * spronk quit (Ping timeout: 246 seconds)
634: [15:19:19] * OxFF1 has joined #silverstripe
635: [15:21:40] * shannon_ has joined #silverstripe
636: [15:37:48] * shannon_ quit (Quit: Leaving...)
637: [15:39:28] * ObiWanShanobi has joined #silverstripe
638: [15:50:58] * Colin[pi] has joined #silverstripe
639: [15:52:48] * headtrip quit (Quit: Page closed)
640: [16:01:09] * Error404NotFound has joined #silverstripe
641: [16:05:43] * Error404NotFound quit (Ping timeout: 252 seconds)
642: [16:26:36] * joelpittet has joined #silverstripe
643: [16:29:39] * andylockran has joined #silverstripe
644: [16:29:56] <andylockran> hey guys, is there any error log for javascript errors on the CMS? Servier-side of course?
645: [16:31:11] * joelpittet quit (Ping timeout: 260 seconds)
646: [16:31:26] * UndefinedOffset quit (Read error: Connection reset by peer)
647: [16:36:05] <kinglozzer> andylockran: A server-side log of JavaScript errors? No
648: [16:47:20] <andylockran> kinglozzer: ok. No worries
649: [16:52:09] * UndefinedOffset has joined #silverstripe
650: [16:53:18] * ObiWanShanobi quit (Remote host closed the connection)
651: [17:04:08] * ObiWanShanobi has joined #silverstripe
652: [17:08:35] * cloph is now known as cloph_away
653: [17:12:19] * kinglozzer quit ()
654: [17:22:15] * ObiWanShanobi quit (Remote host closed the connection)
655: [17:23:13] <guzzlefry> Is there a write-up on adding a filter to ModelAdmin?
656: [17:23:41] <guzzlefry> scratch that
657: [17:27:17] * ObiWanShanobi has joined #silverstripe
658: [17:31:00] * joelpittet has joined #silverstripe
659: [17:40:06] * ObiWanShanobi quit (Remote host closed the connection)
660: [17:45:39] * ObiWanSh_ has joined #silverstripe
661: [17:56:04] * Error404NotFound has joined #silverstripe
662: [18:00:56] * joelpittet quit ()
663: [18:09:25] * SphereSilverNL has joined #silverstripe
664: [18:09:55] * DesignerX has joined #silverstripe
665: [18:18:56] <guzzlefry> hrm
666: [18:19:13] <guzzlefry> This is rather tricky, I need to filter gridfield on a method... :/
667: [18:19:47] <guzzlefry> orrr...I could just store the final result in the database.
668: [18:22:07] <SphereSilverNL> Filter on a method as in.... you have a function(){ do stuff } you want to use as a filter?
669: [18:22:31] <SphereSilverNL> Hmmm, why do I always get "version unknown" in the CMS?
670: [18:22:35] <FrozenFire> Or just filter into an ArrayList
671: [18:22:44] <guzzlefry> SphereSilverNL: Yeah, the function returns a boolean.
672: [18:23:03] <guzzlefry> FrozenFire: Would that break anything? 0.o
673: [18:23:18] <FrozenFire> SphereSilverNL, Because the version is stored in a file in the source tree and that's not populated in git
674: [18:23:24] <FrozenFire> Sfaik, anyways
675: [18:23:37] <FrozenFire> guzzlefry, Probably. I don't know how much ArrayList support in GridField has improved
676: [18:23:47] <FrozenFire> I recall there being some minor issues that had work-arounds
677: [18:23:57] <SphereSilverNL> FrozenFire: You can't set it in the admin?
678: [18:24:12] <guzzlefry> I'm basically checking to see if the order has shippable items, I can store in the database on order finalization anyway.
679: [18:24:16] <SphereSilverNL> I vaguely recall being able to set filters in the getFormFields() method
680: [18:25:02] <guzzlefry> FrozenFire: I could be a masochist and write a stored procedure.
681: [18:25:28] <FrozenFire> SphereSilverNL, https://github.com/silverstripe/silverstripe-framework/blob/3.1/admin/code/LeftAndMain.php#L1501
682: [18:25:29] <SphereSilverNL> Please people, stop visiting my website, I want to upgrade the cms and framework
683: [18:25:31] <FrozenFire> I think that's the relevant code
684: [18:25:32] <guzzlefry> Speaking of, how many stars does your SQL MVC things have? :P
685: [18:25:55] <SphereSilverNL> Mine?
686: [18:25:58] <FrozenFire> guzzlefry, I don't think you need to write a stored procedure
687: [18:26:04] <FrozenFire> What are you filtering on?
688: [18:26:11] <FrozenFire> SphereSilverNL, No, he's talking about my thing
689: [18:26:16] <FrozenFire> http://spw.thefrozenfire.com/
690: [18:26:24] <FrozenFire> 2 stars apparently :P
691: [18:26:29] <SphereSilverNL> That explains, since I was like.... "WHUT?"
692: [18:26:57] <FrozenFire> https://github.com/silverstripe/silverstripe-cms/blob/3.1/silverstripe_version with that being empty, it's version unknown
693: [18:27:09] <SphereSilverNL> That's stupid :P
694: [18:27:17] <guzzlefry> meh, I'll just save into the database. :P
695: [18:27:22] <FrozenFire> Though, apparently it's supposed to try getting it from composer.lock
696: [18:27:31] <SphereSilverNL> That's not the developers kind of way to fix it!
697: [18:27:47] <SphereSilverNL> You're breaking the code of "Why do it the easy way, if it can be done the hard way"
698: [18:29:26] <SphereSilverNL> When using FTP, I always feel like it'll be faster if I just send a USB-stick to my VPS-provider
699: [18:30:57] <SphereSilverNL> http://imgur.com/a/WBbKk
700: [18:31:05] <SphereSilverNL> To make you all feel happy
701: [18:33:00] <SphereSilverNL> Ow crap: [5] 550 SIZE not allowed in ASCII mode
702: [18:38:32] <guzzlefry> aw
703: [18:39:23] <SphereSilverNL> brb, I'm hungry
704: [18:42:23] <guzzlefry> rawr
705: [18:42:33] <guzzlefry> Booelans should really show up as yes/no in the gridfield by default.
706: [18:43:22] <FrozenFire> Is there a sane way to define a field in a SS Form whose display/data is handled separately (in the template)?
707: [18:43:55] <guzzlefry> I'm not following.
708: [18:45:23] <guzzlefry> Displaying the data differently in the template than it's actually stored?
709: [18:47:38] * DesignerX quit (Ping timeout: 260 seconds)
710: [18:50:53] <guzzlefry> oh
711: [18:51:12] * SphereSilverNL quit (Read error: Connection reset by peer)
712: [18:51:12] * SphereSilverNL has joined #silverstripe
713: [18:51:23] <guzzlefry> So, to display a boolean in a nice way on the gridfield, "MyBool.Nice" :P
714: [18:51:52] * simon_w|air quit (Ping timeout: 252 seconds)
715: [18:53:37] <SphereSilverNL> Write a patch :D
716: [18:54:02] <SphereSilverNL> 106 emails from my cronjob. I think I broke Java :/
717: [18:55:04] * simon_w|air has joined #silverstripe
718: [18:57:16] <guzzlefry> SphereSilverNL: That's like 2 Petabytes of RAM.
719: [18:57:34] <SphereSilverNL> why?
720: [18:57:47] <SphereSilverNL> jobs finish and exit just fine ;)
721: [18:57:52] <guzzlefry> That was a bad Java joke. :P
722: [18:57:53] * guzzlefry hides.
723: [18:58:12] <SphereSilverNL> It actually might be true even :P
724: [18:58:41] <guzzlefry> okay so...not sure what's next on this project.
725: [19:01:58] <SphereSilverNL> Just go with it :)
726: [19:03:43] <SphereSilverNL> Today, I had a client on the phone, he was complaining everything did not work as he wanted it to. Two years after we finished the project.
727: [19:04:03] <guzzlefry> 0.o
728: [19:04:07] <guzzlefry> he's got space dementia
729: [19:04:20] <SphereSilverNL> I told him the warranty-period had ended a long time ago, and we would give an estimate on how much it would cost to implement the changes he wanted.
730: [19:04:39] <SphereSilverNL> He started to complain: "It's not like I bought a car, now did I?!"
731: [19:04:43] <SphereSilverNL> Ouch....
732: [19:05:13] <SphereSilverNL> I constantly compare buying a piece of software, to buying a car.... I think he was quite pissed off when he hung up the phone
733: [19:05:58] <SphereSilverNL> "Why doesn't the website work as I want it to work now?"
734: [19:06:19] <guzzlefry> He didn't think to check it after paying for it?
735: [19:06:34] <SphereSilverNL> "Well... If you want to change your car, you go to the dealer and ask him to change it, don't you? And you pay him for it, don't you? Why would that be different with software?"
736: [19:06:40] <SphereSilverNL> "Because it's not a car!"
737: [19:07:36] <SphereSilverNL> guzzlefry: Problem is, it's a website with a master, and about a dozen of child-websites, all with their own url. And especially the franchisers, with their childpages, only now discover the internet :/
738: [19:07:59] * Bollig|DesignCty has joined #silverstripe
739: [19:12:13] * Bollig|DesignCty quit (Ping timeout: 252 seconds)
740: [19:15:30] * r3v3rb has joined #silverstripe
741: [19:15:58] <r3v3rb> hi all, i'm back in the world of the living
742: [19:16:06] * SphereSilverNL hides
743: [19:16:11] <r3v3rb> SphereSilverNL: lol
744: [19:16:13] <r3v3rb> no need
745: [19:16:17] <SphereSilverNL> If r3v3rb is looking for me, I'm not here!
746: [19:16:19] <SphereSilverNL> :P
747: [19:16:20] <r3v3rb> panics are over
748: [19:16:38] <SphereSilverNL> Phew :D
749: [19:17:11] <r3v3rb> just need to know if its possible to create an autocompleter on the frontend using parts from the CMS rather than having to add extra jQuery modules from outside of SS
750: [19:17:42] <SphereSilverNL> include the required js in the frontend?
751: [19:19:22] <r3v3rb> SphereSilverNL: what I'm asking is: does SS3 come with an autocompleter js file hidden away somewhere that can be targetted - or is it easier to just download one from the jQuery site and add that to the requirements
752: [19:20:11] <SphereSilverNL> the backend comes with a dropdown replacement (for example), this can easily be used in the frontend as well.
753: [19:20:28] <SphereSilverNL> Chosn, I think it's called
754: [19:20:35] <r3v3rb> erk...
755: [19:20:59] <r3v3rb> is that not part of UC's bootstrap stuff
756: [19:21:08] <r3v3rb> or is it in the core too?
757: [19:21:51] <SphereSilverNL> It's an external javascript afaik
758: [19:23:13] <r3v3rb> ok, i'll settle for adding one
759: [19:23:38] <r3v3rb> then I have to figure out how to return a paginated set based on the autocompleter too :)
760: [19:23:40] <SphereSilverNL> I think, for the frontend, just using a plugin you're comfortable with is easier
761: [19:23:51] <r3v3rb> SphereSilverNL: indeed
762: [19:24:01] <SphereSilverNL> It requires an external plugin anyway
763: [19:24:13] <r3v3rb> either way, yes I guess thats true
764: [19:24:27] <SphereSilverNL> so why bother doing exactly the same as the backend. Your visitors won't visit the backend anyway, so it won't save them loadingtime
765: [19:24:39] <r3v3rb> I guess
766: [19:24:44] <SphereSilverNL> And those who do use the backend...
767: [19:24:56] <SphereSilverNL> Well... The backend of ANY CMS isn't fast anyway ;)
768: [19:24:57] <r3v3rb> don't care for the frontend!
769: [19:26:05] <SphereSilverNL> Ehhhh, let me quote: "autocompleter on the frontend"
770: [19:26:50] <catcher> Ryan-Toast, this PaginatedList extension is great, thanks again!
771: [19:27:02] <SphereSilverNL> What? What extension?!
772: [19:27:28] <r3v3rb> catcher: pray tell
773: [19:29:42] <catcher> I needed a method to show the current range, Ryan-Toast said he wanted a project, and he obliged.
774: [19:30:06] <SphereSilverNL> Soo, Ryan-Toast needs to setup his github repo?
775: [19:30:07] <r3v3rb> catcher that sounds similar to what I am about to embark on
776: [19:30:35] <catcher> https://github.com/Rhym/ss_boilerplate/blob/master/Boilerplate/code/extensions/PaginatedListExtension.php
777: [19:30:42] <r3v3rb> I need an autocompleter to collect the users choice and then return a paginated list from that point in the set onwards...
778: [19:31:01] <r3v3rb> ah, okay not quite
779: [19:34:09] * cloph_away is now known as cloph
780: [19:39:26] * zippy__ has joined #silverstripe
781: [19:40:37] * gelignite has joined #silverstripe
782: [19:54:45] * CodeTrap has joined #silverstripe
783: [19:56:39] * jcwacky has joined #silverstripe
784: [19:58:29] * CodeTrap quit (Client Quit)
785: [19:58:46] <catcher> Anyone here dev mansbestfriend.com?
786: [19:58:49] <jcwacky> Is it possible to use an Extension to change has_one "MainImage"=>"Image" into has_one "MainImage"=>"CustomImage"?
787: [19:59:51] <simon_w> jcwacky, you shouldn't be subclassing Image
788: [20:01:06] <jcwacky> Oh. This module requires it: https://github.com/memdev/silverstripe-watermarkable
789: [20:01:20] <jcwacky> Might make my own version of the module as an extension then.
790: [20:02:08] * Liquide has joined #silverstripe
791: [20:02:46] <jcwacky> Actually looks like there's already an extension there. I'll dig further.
792: [20:03:30] <r3v3rb> catcher: why? are you about to hack it?
793: [20:03:41] <catcher> haha, wasn't planning on it
794: [20:03:55] <r3v3rb> so its impossible to return a form - without a submit button then it seems?
795: [20:04:27] <guzzlefry> r3v3rb: What's the reason for not having it?
796: [20:04:45] <guzzlefry> I don't even think that would be standards compliant.
797: [20:04:55] <r3v3rb> guzzlefry: because its only to grab input to populate a table below - I'll work something out
798: [20:05:10] <r3v3rb> guzzlefry: standards! lol - where are they in the browsers...
799: [20:05:54] <guzzlefry> r3v3rb: set the submit button as disabled and hide it?
800: [20:06:26] <r3v3rb> sure, would have prefered no output whatsoever to be honest but it'll do
801: [20:17:29] * zippy__ quit (Quit: zippy__)
802: [20:21:08] <guzzlefry> man...no clue how to export this CSV data.
803: [20:25:49] * guzzlefry quit (Ping timeout: 272 seconds)
804: [20:26:20] * guzzlefry has joined #silverstripe
805: [20:36:49] * willr has joined #silverstripe
806: [20:55:26] * CodeTrap has joined #silverstripe
807: [21:09:42] * CodeTrap quit (Quit: CodeTrap)
808: [21:25:38] * guzzlefry has left #silverstripe
809: [21:26:29] * UndefinedOffset quit (Quit: Leaving.)
810: [21:38:43] * r3v3rb just found silverstripe-frontend - thanks mateusz
811: [21:38:44] <r3v3rb> :)
812: [21:38:55] <r3v3rb> ajax pagination sorted
813: [21:42:22] * guzzlefry has joined #silverstripe
814: [21:44:27] <r3v3rb> what is the silverstripe root folder in a controller - is it $BaseURL
815: [21:44:32] <guzzlefry> $this has many order lines which has one product which has a field named SKU, any quick one-liner to crap all SKUs?
816: [21:44:36] * r3v3rb having a blank moment
817: [21:44:50] <r3v3rb> to crap ?
818: [21:45:34] <guzzlefry> grab*
819: [21:45:51] <r3v3rb> lmao :)
820: [21:45:57] <guzzlefry> sorry, sleepy :P Thoughts are mixing together.
821: [21:46:09] <guzzlefry> "crap out" would have made sense though, right? :P
822: [21:46:20] <r3v3rb> indeed
823: [21:47:01] <r3v3rb> guzzlefry: you doing this in the frontend or backend?
824: [21:47:08] <guzzlefry> backend
825: [21:47:11] <guzzlefry> for CSV export
826: [21:47:14] <r3v3rb> ewww
827: [21:47:21] <guzzlefry> yeah, I don't really know. :P
828: [21:47:34] <guzzlefry> Trying to map relational data to a CSV file is hell.
829: [21:48:52] <r3v3rb> foreach ($this->orderlines as $order) $order->product->sku ... is the only thing I can think of not a one liner
830: [21:49:03] <r3v3rb> or somesuch
831: [21:49:06] <r3v3rb> loop
832: [21:49:21] <guzzlefry> It's definitely possible with SQL...just no clue about the ORM. :P
833: [21:49:38] <guzzlefry> r3v3rb: also, were you looking for Director::baseURL()?
834: [21:49:48] <r3v3rb> guzzlefry: yeh found it in the end
835: [21:49:51] <r3v3rb> ;)
836: [21:50:15] <guzzlefry> oh, I should probably make sure new lines "work" in CSV data first...
837: [21:50:32] * willr quit (Quit: willr)
838: [21:51:25] * r3v3rb getting fed up that Requirements::javascript(...) isn't working in template for some reason
839: [21:52:03] <guzzlefry> You're doing <% require Javascript() %>?
840: [21:52:21] <r3v3rb> no in init() of controller
841: [21:52:26] <guzzlefry> ah
842: [21:52:34] <r3v3rb> but no joy...
843: [21:52:47] <guzzlefry> probably getting the path wrong
844: [21:52:52] <guzzlefry> and it's stupid and doesn't warn you about that :P
845: [22:04:54] * jcwacky quit (Quit: jcwacky)
846: [22:05:22] * willr has joined #silverstripe
847: [22:14:54] * gelignite quit (Quit: http://bit.ly/nkczDT)
848: [22:16:14] <guzzlefry> Are there any triggers for a DataObject for when it's read via export CSV stuff?
849: [22:18:55] * SphereSilverNL quit (Remote host closed the connection)
850: [22:21:23] * UncleCheese has joined #silverstripe
851: [22:23:22] <Colin[pi]> good moin
852: [22:24:22] <guzzlefry> afternoon
853: [22:24:28] * ObiWanSh_ quit (Remote host closed the connection)
854: [22:26:34] * ObiWanShanobi has joined #silverstripe
855: [22:29:29] * Azure quit (Read error: Connection reset by peer)
856: [22:30:02] * Azure has joined #silverstripe
857: [22:39:13] * ObiWanShanobi quit (Remote host closed the connection)
858: [22:40:52] * ObiWanSh_ has joined #silverstripe
859: [22:45:47] * guzzlefry has left #silverstripe
860: [22:48:23] <r3v3rb> tada, 7318 item paginated list working with ajax! muhahaha - now to setup a field to allow users to search items and return a reduced subset to the paginated list!
861: [22:48:51] <Colin[pi]> that's... sizeable
862: [22:49:32] <r3v3rb> indeed :)
863: [22:50:12] <r3v3rb> I might even subset the dataset first so the end user chooses a region first then their postcode
864: [22:51:10] <r3v3rb> I know I could just do an ajax postcode lookup - but that wouldn't generate the awesome google friendly SEO pages to the crawlers for all those 7318 'pages' that can be linked too
865: [22:52:12] <r3v3rb> did one a while ago for a client with 2400 items and their SEO rank is '1', '3', '1' etc for all searches relating to their products by postcode, county or town now :D
866: [22:52:38] <Colin[pi]> nice
867: [22:52:51] <Colin[pi]> my SEO-fu is low, I'm still having probs with a recent site and their ranking
868: [22:56:13] <simon_w|air> Colin[pi], write good content
869: [22:57:06] <Colin[pi]> they are slowly adding content, but their ranking is terrible
870: [23:02:51] <UncleCheese> if I'm editing a new object in a grid field detail form, is there any way to get the parent object?
871: [23:03:08] <UncleCheese> $myObject->MyHasMany()
872: [23:03:21] <UncleCheese> $hasManyObject->MyObject() ----> has ID of 0
873: [23:04:11] <simon_w|air> UncleCheese, no
874: [23:04:16] <UncleCheese> !!!
875: [23:04:32] <UncleCheese> what about parsing the URL? Anything I can do with URLparams?
876: [23:04:57] <simon_w|air> If you're that desperate, sure
877: [23:05:34] <simon_w|air> Though it'll be easier to use your own ItemRequest thingy and just grab the value out of the list on the GridField
878: [23:05:55] <UncleCheese> if you wanted an object to update its LastEdited field every time one of its has_many lists was changed, what would you do?
879: [23:06:57] <simon_w|air> onAfterWrite on the child object, checking that the has_one existed first
880: [23:07:24] <UncleCheese> that's the issue.. if it doesn't exist
881: [23:07:33] <UncleCheese> a new record can't notify its parent
882: [23:08:36] <simon_w|air> Can on the second write though
883: [23:08:55] <UncleCheese> right.. so you're saying write twice?
884: [23:09:02] <simon_w|air> No
885: [23:09:20] <simon_w|air> HasManyList->add($object) sets the ID and writes the object
886: [23:09:27] <UncleCheese> yup
887: [23:10:47] <r3v3rb> night all
888: [23:10:51] <r3v3rb> sleep time
889: [23:10:53] <simon_w|air> so, if ($this->MyObjectID) { $this->MyObject()->write(false, false, true); }
890: [23:10:54] <Colin[pi]> nn
891: [23:11:07] * r3v3rb quit (Quit: r3v3rb)
892: [23:11:50] <UncleCheese> what does $forceWrite do for me?
893: [23:12:08] <UncleCheese> oh i see
894: [23:12:10] <simon_w|air> forces the write to happen, so forces LastEdited to change
895: [23:12:12] <UncleCheese> right
896: [23:12:20] <UncleCheese> but there's no solution for new records
897: [23:12:58] <simon_w|air> You're using GridField, right?
898: [23:13:07] <simon_w|air> And GridFieldDetailForm?
899: [23:13:21] * catcher quit (Quit: Leaving)
900: [23:18:14] * SightUnseen has joined #silverstripe
901: [23:18:24] * SightUnseen has left #silverstripe
902: [23:20:46] <UncleCheese> yes, simon_w|air
903: [23:21:00] <UncleCheese> this is my solution:
904: [23:21:01] <UncleCheese> $url = Controller::curr()->getRequest()->getURL();
905: [23:21:01] <UncleCheese> preg_match('/Event\/item\/([0-9]+)\/ItemEditForm/', $url, $matches);
906: [23:21:02] <UncleCheese> $eventID = @$matches[1];
907: [23:21:32] <simon_w|air> UncleCheese, so, you don't need that. On saving, the object gets created, written, added to the list and written again
908: [23:22:03] <UncleCheese> the child object does
909: [23:22:08] <UncleCheese> oh!
910: [23:22:16] <UncleCheese> i see what you're saying.. there will be a second write
911: [23:22:20] <simon_w|air> yes
912: [23:22:24] <UncleCheese> so all i have to do is check for the ParentID
913: [23:22:24] <UncleCheese> ok
914: [23:22:35] <simon_w|air> Don't check for Parent(), cause that gets cached
915: [23:22:50] <simon_w|air> I've run into that problem a couple of times now...
916: [23:23:09] <UncleCheese> yeah, i ran into that as well
917: [23:23:21] <UncleCheese> and i probably can't use isChanged() anymore
918: [23:23:29] <simon_w|air> You can
919: [23:23:29] <UncleCheese> because isChanged() will be false on the second write
920: [23:23:40] <simon_w|air> ParentID has changed
921: [23:24:41] <UncleCheese> right, of course
922: [23:27:45] <Colin[pi]> object y u no add extension
923: [23:28:13] <UncleCheese> SomeObject: { extensions: [ foo ] } ??
924: [23:28:24] <Colin[pi]> ahhh I see what's happening now
925: [23:28:29] <Colin[pi]> function with same name as class
926: [23:28:33] * Colin[pi] shakes fist at php
927: [23:31:13] <Colin[pi]> now it's working :$
928: [23:36:44] <UncleCheese> is there a GridFieldImportButton component?
929: [23:39:51] * ObiWanSh_ quit (Quit: Leaving...)

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