#silverstripe IRC Log

IRC log for 14 February 2014

All timestamps are in UTC.

1: [00:01:17] <unsignedint> hey does anyone know how to create a RedirectorPage with a . in the URLSegment. I need to make a redirect from /qr/page.html to another page in the site. the QR codes have already been printed and cant be changed
2: [00:01:23] <unsignedint> or do I have to do this at the webserver level
3: [00:01:48] <unsignedint> Silverstripe keeps converting the . to a - when saving the page
4: [00:02:00] <Ryan-Toast> You could always do it with your .htaccess.
5: [00:02:56] <unsignedint> id rather manage it in SS because my .htaccess is autogenerated everytime I deploy and I havn't built a facility in the deployment process for a custom .htaccess
6: [00:03:10] <unsignedint> im thinking about directly modifying the database to allow a .
7: [00:03:21] <Ryan-Toast> Guess you'll have to modify the code/database
8: [00:03:35] <unsignedint> thought so
9: [00:04:23] <C10ne> You'd have to mess with URLSegmentFilter.php
10: [00:05:01] <ss23> 13:01:17 < unsignedint> hey does anyone know how to create a RedirectorPage with a . in the URLSegment. I need to make a redirect from /qr/page.html to another page in the site. the QR codes have already been printed and cant be changed
11: [00:05:16] <ss23> if SilverStripe 3.1, you can add a Custom 404 Handler to SilverStripe in code and do it there
12: [00:05:30] <unsignedint> oh nice
13: [00:05:53] <unsignedint> thanks ss23, i'll do that if the database mods fail because I already started adding RedirectorPages
14: [00:06:12] <ss23> yeah np
15: [00:06:49] <ss23> https://github.com/silverstripe/silverstripe-cms/pull/801 is the PR if you wanted it (if that doesn't work)
16: [00:07:18] <ss23> oh actually, probably doesn't even need to be 3.1
17: [00:07:21] <ss23> you can do it in normal SilverStripe
18: [00:07:22] <ss23> YAY :D
19: [00:09:37] <Colin[pi]> typical convo with my mate: http://i.imgur.com/7Ap9BGC.png
20: [00:11:53] * igor__ quit (Ping timeout: 245 seconds)
21: [00:14:16] <antmas> Colin[pi]: XD
22: [00:14:23] <Colin[pi]> it's like a running joke lol
23: [00:14:41] <ss23> lol
24: [00:15:39] <Colin[pi]> ugh I'm feeling very friday
25: [00:15:55] <antmas> Colin[pi]: as am I
26: [00:16:32] <Colin[pi]> off to lunch soon and to pick up some flowers for the gf
27: [00:17:14] <Ryan-Toast> Colin[pi]: Get her a "Get well soon" card
28: [00:18:02] <Colin[pi]> lol
29: [00:18:47] <Ryan-Toast> I got my Mrs a watering can. We don't have a garden.
30: [00:18:53] <Colin[pi]> ahaha
31: [00:19:37] <antmas> we went out to dinner last night (no babysitter for tonight)
32: [00:20:00] <antmas> obviously we don't do it often as the bill was like omgIwantokillmyselflol
33: [00:20:22] <Ryan-Toast> antmas: how much was it?
34: [00:21:24] <antmas> $200
35: [00:21:31] <Ryan-Toast> Dat wine
36: [00:21:36] * Bollig|DesignCty has joined #silverstripe
37: [00:21:37] <antmas> dat wiskey
38: [00:21:51] <Ryan-Toast> Should have just gotten her a watering can
39: [00:22:09] <antmas> lol
40: [00:22:13] <antmas> vday is a joke
41: [00:22:19] <Ryan-Toast> Exactly.
42: [00:22:58] <Ryan-Toast> http://i.imgur.com/XLRcAMd.jpg
43: [00:25:12] * joelpittet quit (Read error: No route to host)
44: [00:25:36] * joelpittet has joined #silverstripe
45: [00:29:43] <antmas> ugh 'stop running this script error' in Ie8 is such a 'see you next tuesday'
46: [00:30:39] <antmas> sometimes, the only fix is a bloody reg edit
47: [00:38:16] <antmas> any js gurus see anything in this http://www.sspaste.com/paste/show/52fd6231affa7 that might scream 'takes too long' etc?
48: [00:42:46] <antmas> something in there is causing a timeout, but it looks OK to me :(
49: [00:45:34] <antmas> n one?
50: [00:45:37] <antmas> no one*?
51: [00:46:00] <sminnee> $('.data-table') on line 25 maybe?
52: [00:46:15] <sminnee> ps: saying "no-one?" after 7 minutes is kind of impatient :p
53: [00:46:29] <antmas> sminnee: my bad :P
54: [00:46:42] <antmas> wasn't screaming 'halp me', just very curious
55: [00:46:54] <sminnee> antmas: if the browser doesn't have a get-by-class function built in it's going to iterate on all elements
56: [00:47:05] <sminnee> so maybe figure out the right tag name, e.g., div.data-table
57: [00:47:26] <antmas> sminnee: interesting
58: [00:50:52] <Colin[pi]> <Ryan-Toast> Should have just gotten her a watering can
59: [00:50:55] <Colin[pi]> ^ lol
60: [00:51:06] <Ryan-Toast> Colin[pi]: :)
61: [00:53:19] <antmas> sminnee: thanks - helped me track it to here http://datatables.net/forums/discussion/16655/ie8-a-script-on-this-page-is-causing-your-web-browser-to-run-slowly/p1
62: [00:55:02] <C10ne> Anyone knows how can I change SiteTree db... I want to add an option to Enum "CanViewType"?
63: [00:55:21] <C10ne> Tried all kinds of extensions, but nothing works...
64: [00:56:42] * SightUnseen has joined #silverstripe
65: [00:57:01] * SightUnseen has left #silverstripe
66: [01:02:30] * Colin[pi] quit (Ping timeout: 260 seconds)
67: [01:10:13] * Jakx has joined #silverstripe
68: [01:10:20] <Jakx> yo
69: [01:11:21] <Jakx> if I version a dataobject after it's had a stack of records created. Will I need to publish all of those records to the Live stage?
70: [01:22:56] * zippy__ has joined #silverstripe
71: [01:23:03] <zippy__> afternoon
72: [01:36:41] <antmas> zippy__: guten... argen?
73: [01:36:48] <antmas> forget the afternoon one
74: [01:36:52] <zippy__> ;p;
75: [01:36:54] <zippy__> lol
76: [01:36:59] <antmas> haha
77: [01:37:00] <zippy__> just watching some cricket
78: [01:37:03] <zippy__> not doing tooo flash
79: [01:37:13] <antmas> just debugging some js
80: [01:37:18] <antmas> not doing too flash
81: [01:37:26] <zippy__> lol
82: [01:37:33] <zippy__> trying to watch a sass video as well
83: [01:40:07] <zippy__> sass, scss - !
84: [01:44:01] <zippy__> anyone here use phpstorm
85: [01:44:40] <antmas> zippy__: yup
86: [01:44:55] <zippy__> I notice several times a day, it 'hangs' for a few seconds
87: [01:44:58] <Ryan-Toast> I'm making a flappybird clone
88: [01:44:59] <zippy__> you get that?
89: [01:45:03] <zippy__> lol
90: [01:45:06] <zippy__> you and everyone else
91: [01:45:17] <Ryan-Toast> doing it to embarrass a friend.
92: [01:45:19] <zippy__> https://www.elance.com/r/jobs/q-flappy%20bird
93: [01:45:23] <Ryan-Toast> Puutting his face as the bird
94: [01:45:51] <antmas> Ryan-Toast: lol
95: [01:45:58] <antmas> zippy__: um, yeah I do I think
96: [01:46:11] <antmas> zippy__: I just hate how long it takes to open sometimes
97: [01:47:13] <zippy__> mmm I just notice at random times it can hang for a few seconds
98: [01:48:12] <antmas> zippy__: yeah it does that for me, latest version?
99: [01:48:38] <madmatt> zippy__: I can't say I've noticed that - I'm on 7.1.1 and OSX Mavericks
100: [01:48:57] <madmatt> there's apparently an update ready, but maybe I won't install that just yet ;)
101: [01:49:17] <antmas> zippy__: madmatt same version here - but Win8Pro
102: [01:49:22] <zippy__> mine has done it since 6.x
103: [01:49:43] <zippy__> right, installing 7.1.2
104: [01:55:38] * antmas quit (Ping timeout: 245 seconds)
105: [01:59:50] * antmas has joined #silverstripe
106: [02:00:06] <antmas> bah
107: [02:00:13] <antmas> my js made IE melt apparently
108: [02:01:48] * joelpittet quit (Remote host closed the connection)
109: [02:02:22] * joelpittet has joined #silverstripe
110: [02:03:01] * SightUnseen has joined #silverstripe
111: [02:03:10] * SightUnseen has left #silverstripe
112: [02:04:34] <antmas> sminnee: selectors don't seem to be the issue
113: [02:07:09] * joelpittet quit (Ping timeout: 252 seconds)
114: [02:11:18] <zippy__> well, looks like we'll be batting today
115: [02:11:28] <zippy__> bowling rather
116: [02:24:20] <antmas> 1 hour to go
117: [02:29:47] <zippy__> :)
118: [02:32:32] * zippy__ quit (Quit: zippy__)
119: [02:33:52] <antmas> IE8...
120: [02:33:57] <antmas> arrrggggggg!!!?
121: [02:36:08] <antmas> hmmmm
122: [02:36:09] <antmas> so
123: [02:36:51] <antmas> it's actually using this to render the form http://www.sspaste.com/paste/show/52fd7e127a382
124: [02:38:57] <antmas> wholey shit
125: [02:39:23] <antmas> 7 functions coming in a 17,000ms each o.O
126: [02:39:30] <antmas> in IE8
127: [02:39:30] <pippy> MSIE is such a great browser
128: [02:42:23] <Zauberfisch> indeed
129: [02:42:25] <Zauberfisch> http://www.youtube.com/watch?v=Gp-FQN_v3AM
130: [02:46:00] <Jakx> $currency = new Money(array('Value" => "500.00"));
131: [02:46:21] <Jakx> Will ^ return a value I can use in a template like $Currency.Nice?
132: [02:51:44] * muskie9 has joined #silverstripe
133: [02:53:00] * joelpittet has joined #silverstripe
134: [02:55:13] * antmas quit (Ping timeout: 245 seconds)
135: [02:57:16] * muskie9 quit ()
136: [02:57:29] * muskie9 has joined #silverstripe
137: [02:57:56] <Ryan-Toast> All done, for now: https://dl.dropboxusercontent.com/u/18362900/larry/index.html
138: [02:59:37] <Jakx> Fuuuuuuuuuuuuuuuuuuuuuuuuu
139: [02:59:55] <Jakx> can't get passed 7 :(
140: [02:59:59] <Ryan-Toast> :P
141: [03:00:14] <Jakx> I'd say that's a measure of success in itself
142: [03:00:20] <Ryan-Toast> 23 is mine so far.
143: [03:00:47] <Ryan-Toast> but I start getting this weird tunnel vision.
144: [03:02:29] <Jakx> lol, like playing too much Guitar Hero
145: [03:03:35] <Zauberfisch> 23? I am having difficulties passing 2 :S
146: [03:05:21] <Ryan-Toast> Zauberfisch: LarryBird is great successs.
147: [03:08:29] <Ryan-Toast> I should make his head move with the direction he's going.
148: [03:10:05] <unsignedint> I cant get past level 4
149: [03:10:15] <unsignedint> or rather, score 4*
150: [03:11:06] * travis-ci has joined #silverstripe
151: [03:11:07] <travis-ci> [travis-ci] sminnee/sapphire#28 (fix-travis-infinite-loop - f23c9d9 : Sam Minnee): The build has errored.
152: [03:11:07] <travis-ci> [travis-ci] Change view : https://github.com/sminnee/sapphire/compare/129161efd343...f23c9d9cb63a
153: [03:11:07] <travis-ci> [travis-ci] Build details : http://travis-ci.org/sminnee/sapphire/builds/18853749
154: [03:11:07] * travis-ci has left #silverstripe
155: [03:11:25] <sminnee> Gar, travis-only infinite-loop errors are a pain to debug :p
156: [03:12:09] * travis-ci has joined #silverstripe
157: [03:12:10] <travis-ci> [travis-ci] sminnee/sapphire#30 (fix-travis-infinite-loop - 2be33ac : Sam Minnee): The build has errored.
158: [03:12:10] <travis-ci> [travis-ci] Change view : https://github.com/sminnee/sapphire/compare/47ddf1af3d3f...2be33ac27a57
159: [03:12:10] <travis-ci> [travis-ci] Build details : http://travis-ci.org/sminnee/sapphire/builds/18854258
160: [03:12:10] * travis-ci has left #silverstripe
161: [03:12:17] <Ryan-Toast> unsignedint: I believe in you./
162: [03:14:08] * travis-ci has joined #silverstripe
163: [03:14:08] <travis-ci> [travis-ci] sminnee/sapphire#31 (fix-travis-infinite-loop - 871e26f : Sam Minnee): The build has errored.
164: [03:14:08] <travis-ci> [travis-ci] Change view : https://github.com/sminnee/sapphire/compare/2be33ac27a57...871e26ff2078
165: [03:14:08] <travis-ci> [travis-ci] Build details : http://travis-ci.org/sminnee/sapphire/builds/18854309
166: [03:14:08] * travis-ci has left #silverstripe
167: [03:14:34] * travis-ci has joined #silverstripe
168: [03:14:35] <travis-ci> [travis-ci] sminnee/sapphire#29 (fix-travis-infinite-loop - 47ddf1a : Sam Minnee): The build has errored.
169: [03:14:35] <travis-ci> [travis-ci] Change view : https://github.com/sminnee/sapphire/compare/f23c9d9cb63a...47ddf1af3d3f
170: [03:14:35] <travis-ci> [travis-ci] Build details : http://travis-ci.org/sminnee/sapphire/builds/18854038
171: [03:14:35] * travis-ci has left #silverstripe
172: [03:14:50] * antmas has joined #silverstripe
173: [03:15:04] <antmas> http://gawker.com/10-year-old-steals-parents-car-crashes-it-tells-cops-1522436408/@matthardigree lawl
174: [03:18:39] * travis-ci has joined #silverstripe
175: [03:18:40] <travis-ci> [travis-ci] sminnee/sapphire#32 (fix-travis-infinite-loop - 868ff02 : Sam Minnee): The build has errored.
176: [03:18:40] <travis-ci> [travis-ci] Change view : https://github.com/sminnee/sapphire/compare/871e26ff2078...868ff02c9d68
177: [03:18:40] <travis-ci> [travis-ci] Build details : http://travis-ci.org/sminnee/sapphire/builds/18854443
178: [03:18:40] * travis-ci has left #silverstripe
179: [03:21:32] <madmatt> heh, travis spam
180: [03:23:28] * Shrike_Finland has joined #silverstripe
181: [03:26:20] * muskie9 quit (Remote host closed the connection)
182: [03:26:47] * muskie9 has joined #silverstripe
183: [03:27:46] * Shrike_Finland quit (Ping timeout: 245 seconds)
184: [03:28:13] <sminnee> yeah, sorry about that. it looks like assertCount() might mess with iterators (so you can't go foreach afterward) on certain versions of PHPUnit.
185: [03:30:48] <sminnee> or maybe assertCount() is just broken for iterators :|
186: [03:31:17] * muskie9 quit (Ping timeout: 248 seconds)
187: [03:31:41] <Bollig|DesignCty> Anyone explain to me why SitrTree::disable_nested_urls() doesn't work on 3.1? The pages to die in a redirection loop :(
188: [03:32:46] <sminnee> Bollig|DesignCty: so the real answer is probably that no-one ever disables that any more ;)
189: [03:33:08] <sminnee> But it sounds like there might be a missing test or something that has allowed the bug to be introduced.
190: [03:34:13] * muskie9 has joined #silverstripe
191: [03:34:17] <Bollig|DesignCty> Fair enough, I was a huge proponent of nested urls, so it's a strange question for me to be asking...
192: [03:34:52] <antmas> http://www.twitch.tv/appleguysnake/b/503115475
193: [03:35:02] <Bollig|DesignCty> But there are some depreciation notes for 3.2 for the method of switching the functionality off, so it's not like it's being removed from the framework entirely or anything...
194: [03:36:48] <Bollig|DesignCty> sminnee: any thoughts on where I might start looking to fix it?
195: [03:37:00] <sminnee> Bollig|DesignCty: ModelAsController most likely
196: [03:37:24] <sminnee> There's a function like getNestedController() or something, see if it's being called too muhc
197: [03:40:36] * antmas quit (Quit: Page closed)
198: [03:40:48] <Bollig|DesignCty> thanks sminnee, appreciate it. We'll look into it ;)
199: [03:46:44] * Jakx has left #silverstripe
200: [04:00:38] * Ryan-Toast has left #silverstripe
201: [04:03:00] * muskie9 quit ()
202: [04:16:15] * cloph has joined #silverstripe
203: [04:16:19] * cloph_away quit (Ping timeout: 245 seconds)
204: [04:22:33] * Colin[pi] has joined #silverstripe
205: [04:36:51] * SightUnseen has joined #silverstripe
206: [05:09:36] * travis-ci has joined #silverstripe
207: [05:09:36] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#734 (master - 9674b2e : Sam Minnée): The build passed.
208: [05:09:36] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/3aa95f4c83a0...9674b2efb473
209: [05:09:36] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/18857897
210: [05:09:36] * travis-ci has left #silverstripe
211: [05:33:52] * ben_w has joined #silverstripe
212: [05:36:08] <ben_w> good afternoon. anyone knows how to display innerJoined two DataObject in a ModelAdmin?
213: [05:42:06] * Colin[pi] quit (Ping timeout: 252 seconds)
214: [05:50:46] * SightUnseen has left #silverstripe
215: [06:41:46] * ObiWanShanobi has joined #silverstripe
216: [06:42:29] * ObiWanShanobi quit (Client Quit)
217: [06:44:56] * joelpittet quit (Remote host closed the connection)
218: [06:45:31] * joelpittet has joined #silverstripe
219: [06:50:10] * joelpittet quit (Ping timeout: 260 seconds)
220: [07:05:52] * willr has joined #silverstripe
221: [07:27:44] * nickmolhoek quit (Ping timeout: 252 seconds)
222: [07:33:01] * ben_w quit ()
223: [08:04:15] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
224: [08:07:31] * Colin[pi] has joined #silverstripe
225: [08:19:59] * ARNHOE has joined #silverstripe
226: [08:34:05] * joelpittet has joined #silverstripe
227: [08:38:18] * joelpittet quit (Ping timeout: 246 seconds)
228: [08:40:45] * ss23 quit (Ping timeout: 248 seconds)
229: [08:41:30] * ss23 has joined #silverstripe
230: [08:41:35] * willr quit (Quit: willr)
231: [08:49:19] * Liquide quit ()
232: [08:55:09] * Error404NotFound has joined #silverstripe
233: [09:07:52] * kinglozzer has joined #silverstripe
234: [09:10:47] * mainpykor has joined #silverstripe
235: [09:12:16] * micmania1 has joined #silverstripe
236: [09:12:20] <mainpykor> whoop fuck'n valentines day.
237: [09:13:21] * kinglozzer avoids social media today
238: [09:13:29] <mainpykor> I propose a new theme. Anagram day!
239: [09:14:24] <mainpykor> kinglozzer: time to snort cocaine and stab ladies with the pork sword instead?
240: [09:14:31] <mainpykor> all hipster like. Chocolates too mainstream.
241: [09:15:47] <kinglozzer> mainpykor: Is that how valentines day works in NZ? D:
242: [09:15:56] <mainpykor> get into a bar fight. that seems like the traditional thing to do.
243: [09:16:08] <kinglozzer> That's just a traditional "it's friday" thing
244: [09:16:21] <mainpykor> kinglozzer: nup. Chocolates & roses, as per capitalism's dictation.
245: [09:16:31] <mainpykor> if anyone even cares.
246: [09:17:04] <mainpykor> wimminz be all "oh how cliche" but get all pouty when it doesn't happen.
247: [09:17:07] * UncleCheese__ has joined #silverstripe
248: [09:17:18] <mainpykor> y'know. wimmins be wimmins, no matter where from :P
249: [09:17:59] <kinglozzer> Haha yup
250: [09:19:29] <mainpykor> [09:16] <kinglozzer> That's just a traditional "it's friday" thing
251: [09:19:31] <mainpykor> gawd
252: [09:20:02] <kinglozzer> Ha, kidding
253: [09:20:06] <mainpykor> :P
254: [09:20:13] <kinglozzer> Though it does actually seem to be tradition for quite a few people
255: [09:20:18] <mainpykor> indeed. same in nz
256: [09:20:25] <kinglozzer> It's rare you can go out on a Friday without seeing a few fights :P
257: [09:20:36] <mainpykor> ok so maybe not that common :<
258: [09:21:02] <mainpykor> depends on where you are. Like if you live in irogue's neighbourhood you don't really even need to go to a bar.
259: [09:24:36] <mainpykor> kinglozzer: but hey, at least Planet Rock isn't the kind of station to blast love songs all day
260: [09:28:59] <mainpykor> fffffffuuuuuuuuu zend studio; half the work I did before going home last night didn't save on the server.
261: [09:29:07] <mainpykor> just a little mad.
262: [09:29:53] <mainpykor> lucky I have backup :D
263: [09:32:06] <micmania1> Someone made a search using LIKE %. Is it just me or is that REALLY lazy?
264: [09:36:02] <micmania1> didn't even escape the input...
265: [09:37:22] <mainpykor> micmania1: lol?
266: [09:37:40] <mainpykor> LIKE is legit. Probably more reliable than MATCH (in mysql at least)
267: [09:37:56] <mainpykor> but yeh, gotta choose application correctly :P
268: [09:38:01] * FrozenFire quit (Quit: There's no place like ~)
269: [09:38:03] <micmania1> not when people complain its too strict...
270: [09:38:15] <mainpykor> lol
271: [09:38:20] <mainpykor> well fair enough.
272: [09:38:27] <mainpykor> Off to solr!
273: [09:38:32] <mainpykor> Java ALL the things!
274: [09:38:45] <mainpykor> :<
275: [09:38:55] <mainpykor> eh ss23
276: [09:41:02] <ss23> eh ss23!
277: [09:41:08] <ss23> I hate Java
278: [09:41:09] <ss23> Rage
279: [09:41:22] <ss23> mainpykor == pyro?
280: [09:43:37] <mainpykor> ss23: [09:13] <mainpykor> I propose a new theme. Anagram day!
281: [09:44:08] <mainpykor> Because chocolate got nothing to do with sex, unless you're female.
282: [09:44:35] <mainpykor> In which case they're mutually exclusive, it's a 'one or the other' kinda situation.
283: [09:44:48] <mainpykor> kekeke
284: [09:47:29] <mainpykor> stop being boring ss23, it's the weekend for you!
285: [09:47:47] <mainpykor> tell us all about the solr
286: [09:50:14] <micmania1> ss23: tell us a joke.
287: [09:52:16] <ss23> um um!@
288: [09:52:20] <ss23> Hmmmm
289: [09:52:43] <ss23> I'd much rather be a father of a boy than a girl
290: [09:53:11] <ss23> After all, if you a boy, there's only one penis to deal with, but if you have a girl, you've got to deal with all the dicks in the world
291: [09:55:41] * Guits quit (Ping timeout: 245 seconds)
292: [09:59:31] <ss23> micmania1: WAS IT A GOOD JOKE?
293: [09:59:34] <mainpykor> ss23: cyberstreetwise.com/
294: [09:59:56] <micmania1> ss23: BEST JOKE EVER!!
295: [10:00:06] <mainpykor> also, good joke ss23. Not sure about bje, but it was ok.
296: [10:00:28] <ss23> TY TY
297: [10:00:28] <ss23> lol
298: [10:00:39] <mainpykor> also
299: [10:00:41] <ss23> mainpykor: this site opens by making me choose keeping safe my business or my home
300: [10:00:44] <ss23> I choose both
301: [10:00:46] <mainpykor> "Multi pronged attack"
302: [10:00:58] <mainpykor> never heard that in the relation to weather.
303: [10:01:09] <mainpykor> it's almost like the taliban took control of it or something
304: [10:01:17] <ss23> lol
305: [10:02:18] <mainpykor> ooh, skellytron, how did NZ fare there?
306: [10:03:15] <ss23> Skellytron?
307: [10:03:20] <ss23> mainpykor: What on earth are you even talking about? o.o
308: [10:04:07] <mainpykor> oh yup, rank 16
309: [10:04:13] <ss23> o.o
310: [10:04:28] <mainpykor> http://en.wikipedia.org/wiki/New_Zealand_at_the_2014_Winter_Olympics#Skeleton
311: [10:04:52] <mainpykor> ss23: the face-first luge.
312: [10:05:08] <ss23> eh kk
313: [10:05:11] <ss23> sports sux
314: [10:06:02] * Guits has joined #silverstripe
315: [10:07:15] <mainpykor> ss23: sif skeleton is what you're calling 'sport'
316: [10:07:43] <ARNHOE> why does \n ignores tabs/spaces of html?
317: [10:08:06] <mainpykor> 2/3 mens luge medalists were over 40, and one was not exactly trim ss23 :P
318: [10:08:16] <ARNHOE> its about metatags, where the first line is indented with 4 tabs, but everyelse falls under it with tab 0
319: [10:08:33] <mainpykor> ARNHOE: what?
320: [10:11:13] <ARNHOE> http://imgur.com/CgctTWd
321: [10:11:41] <ARNHOE> https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/model/SiteTree.php#L1359
322: [10:12:16] <ARNHOE> I find it pretty ugly, but I guess it isn't the most important
323: [10:15:25] <mainpykor> and?
324: [10:15:34] <mainpykor> [10:12] <ARNHOE> I find it pretty ugly, but I guess it isn't the most important
325: [10:15:50] <mainpykor> yeah, because they're just a string compiled in php.
326: [10:16:29] <mainpykor> if you want to specify some kind of tab indent, you'll need to override metatags in page_controller (iirc, best check) and make it accept a number of indents parameter
327: [10:16:31] <ARNHOE> should be a way to fix it, tried some things but not really getting it the way I want it
328: [10:16:49] <ARNHOE> well, I dont want it to fix it for myself. rather push it into the source
329: [10:16:51] <mainpykor> yeh, hack core and make /n into /n/t/t
330: [10:16:55] <mainpykor> otherwise
331: [10:17:10] <mainpykor> but that relies on everyone setting metadata at 2 tabs deep
332: [10:17:12] <mainpykor> etc.
333: [10:17:17] <ARNHOE> ah I see
334: [10:17:19] <ARNHOE> \t is one tab?
335: [10:17:22] <mainpykor> yes
336: [10:17:28] <ARNHOE> yeah that wouldnt be the right solution
337: [10:18:32] <mainpykor> ARNHOE: well it'll be
338: [10:19:27] <ARNHOE> but not for everyone, as you said. everyone would need to use 2 tabs
339: [10:19:31] <mainpykor> copy and paste this: http://api.silverstripe.org/3.1/source-class-SiteTree.html#1351-1387
340: [10:19:35] <mainpykor> into Page.php
341: [10:19:40] <mainpykor> (Page class)
342: [10:19:44] <mainpykor> alter the appropriate bits.
343: [10:19:50] <mainpykor> or add a parameter
344: [10:20:23] <mainpykor> so it's MetaTags($includeTitle=true,$indentTabs=2)
345: [10:20:50] <mainpykor> and modify appropriately
346: [10:20:57] <mainpykor> then it's backwards compatible
347: [10:21:52] <mainpykor> But in all reality... there's no point. About all systems generate some code that isn't so nice, and you have to do ugly things with your template tags to make your loop code or whatever line up nicely.
348: [10:22:15] * joelpittet has joined #silverstripe
349: [10:22:18] <ARNHOE> yeah, I know I could get itworking through that. but I rather have a solution that can be pushed into the source, because it isn't really nice, almost every other cms has it nicely lined out. I guess its less important, still good to have it fixed imo
350: [10:22:54] <mainpykor> if you're stressing about the formatting of the output, I'd really hope you're not generating a machine language, but rather some kind of human viewed presentation
351: [10:23:09] <mainpykor> almost every other cms?
352: [10:23:11] <mainpykor> really.
353: [10:23:23] <mainpykor> if by every other you mean none of them.
354: [10:23:37] <ARNHOE> I am not stressing, just hoping to improve this tinybit
355: [10:23:51] <mainpykor> just add your adaption to your boilerplate Page.php
356: [10:23:55] <mainpykor> problem solved.
357: [10:24:19] <ARNHOE> (Y)
358: [10:25:13] <mainpykor> or, hack sitetree.php as I described and make a pull request
359: [10:25:14] <mainpykor> :>
360: [10:25:17] <mainpykor> see what happens.
361: [10:26:01] <mainpykor> if you wanted to be really nice you'd include another optional third parmeter, for specifying the whitespace to be a tab or a space.
362: [10:27:10] * joelpittet quit (Ping timeout: 260 seconds)
363: [10:28:30] <mainpykor> ARNHOE: alternatively, since someone was kind enough to stick a hook in, you could make a module that just applies a decorator to Page and hooks MetaTags and searches/replaces /n by /n/t/t
364: [10:28:40] <mainpykor> and just include that in all your deployments
365: [10:28:55] <mainpykor> that way it can be backported to existing installs too without needing to upgrade.
366: [10:30:16] <ARNHOE> mainpykor: thanks for the provided solutions, I already knew you can add metatags function in my page. Just looking to improve the source code, thats all. And as expressed it isn't a major issue, but tinybits can help
367: [10:33:23] * Shrike_Finland has joined #silverstripe
368: [10:39:22] <mainpykor> ARNHOE: yeh, but the hook method probably nicer.
369: [10:39:39] <mainpykor> also you're basically adding a bunch of logic for the sake of something that ultimately doesn't matter.
370: [10:40:16] <mainpykor> you could always manually output the meta tags rather than using the provided pre-formatting function
371: [10:44:48] <C10ne> Anyone knows how can I affect SiteTree $db... I want to add an option to Enum "CanViewType"?
372: [10:50:19] * ARNHOE quit (Remote host closed the connection)
373: [10:50:35] * ARNHOE has joined #silverstripe
374: [10:51:06] * Colin[pi] quit (Ping timeout: 245 seconds)
375: [10:52:34] <mainpykor> C10ne: look into decorators
376: [10:53:29] <C10ne> mainpykor: I tried, but it doesn't change existing db fields, only adds new
377: [10:53:41] <mainpykor> yeh
378: [10:53:43] <mainpykor> jsut saw
379: [10:54:22] * Shrike_Finland quit (Quit: Leaving.)
380: [10:54:30] <mainpykor> C10ne: there is a method on decorators that can be used for more advanced db configuration, although I'm still not sure if it'll do what you're after.
381: [10:54:40] <C10ne> Also, sub classes of SiteTree can't use the added option, since it reads from SiteTree table rather then Page table
382: [10:55:01] <mainpykor> what are you trying to add, by chance?
383: [10:55:25] <C10ne> mainpykor: Which method? It might be what I'm searching for. :)
384: [10:55:37] <mainpykor> C10ne: what is the option you're trying to add?
385: [10:55:56] <mainpykor> because I can't think of a usecase that isn't already facilitated for
386: [10:56:11] <C10ne> mainpykor: "CanViewType" => "Enum('Anyone, LoggedInUsers, OnlyTheseUsers, OnlyTheseMembers, Inherit', 'Inherit')",
387: [10:56:22] <mainpykor> o.0
388: [10:56:27] <mainpykor> you have 2 options that are the same thing.
389: [10:56:41] <C10ne> OnlyTheseMembers is added, for per-user access
390: [10:56:53] <C10ne> Which 2?
391: [10:56:55] <mainpykor> yes, which is what OnlyTheseUsers is for.
392: [10:56:59] <mainpykor> User == Member.
393: [10:57:06] <kinglozzer> ><
394: [10:57:39] <C10ne> No, it's per group, and I'd have each user in his own group, which I think is needles to make.
395: [10:57:48] <mainpykor> C10ne: you add the members you want to a group. Members can belong to many groups.
396: [10:57:59] <mainpykor> you say 'this group' as the option.
397: [10:58:01] <mainpykor> problem solved.
398: [10:58:14] <mainpykor> you don't add per page, you add to the 'special access' group.
399: [10:58:39] <mainpykor> C10ne: again, members can belong to many groups.
400: [10:58:58] <mainpykor> you can make a group per page (or page 'category').
401: [10:59:24] <mainpykor> and have individual member access control by individually specifying via the group.
402: [10:59:43] <mainpykor> It's what groups are for.
403: [11:00:40] <C10ne> Hm, making 200 groups for 200 users, I think it's not the easiest thing to do.
404: [11:00:58] <mainpykor> no, you 100% misunderstand.
405: [11:01:05] <mainpykor> you make ONE group, and add 100 members to it.
406: [11:01:30] <mainpykor> unless you have 100 pages, in which case you'd be adding 100 members to 100 pages, which is 10000 edits. Not idea.
407: [11:01:32] <mainpykor> ideal*
408: [11:01:37] <C10ne> And all of the 100 members can access one page,
409: [11:01:44] <mainpykor> yes, so make TWO groups.
410: [11:01:55] <mainpykor> or basically one group per restricted page.
411: [11:02:00] <mainpykor> that needs fine grained access.
412: [11:02:04] <C10ne> and I need 100 members to access 100 pages, each member to have his own page
413: [11:02:26] <C10ne> Ant, that would require making 100 groups
414: [11:02:27] <mainpykor> usually these kind of things fall into 'categories' anyway. Like all the product pages, or all the account control pages, or all the other kinds, etc.
415: [11:02:48] <mainpykor> if each member has his own page, then you're doing it wrong in the first place.
416: [11:03:01] <mainpykor> you should be using PHP based permission checks.
417: [11:03:36] <C10ne> Well, for this project each client needs to have login, and his own download page.
418: [11:03:58] <mainpykor> so you manage downloads per user, and have a single page.
419: [11:05:27] <C10ne> Then I would be managing per file access
420: [11:06:09] * Guits quit (Ping timeout: 252 seconds)
421: [11:07:01] <mainpykor> and there are 100 files?
422: [11:07:37] <C10ne> No, there are a lot more
423: [11:08:27] <C10ne> Each client has unlimited downloads, project progress photos, documents, ...
424: [11:08:58] <mainpykor> Suggest using the DMS module then.
425: [11:10:57] <C10ne> Well, I already created per user access, using CanViewTypeExtended (new db field), but I wanted to try and extend SiteTree so it would be cleaner.
426: [11:10:59] <mainpykor> you don't need to extend this functionality anyway.
427: [11:11:08] <mainpykor> yeah, it won't be.
428: [11:11:24] <mainpykor> what you've done is best, I was just about to suggest it.
429: [11:12:04] <C10ne> OK, thanks for the chat and ideas. Guess this is the best way. :)
430: [11:16:45] * Guits has joined #silverstripe
431: [11:26:27] <Guits> Hi all, I ve heard rumors about a module to send newsletters via mailchimp from SS but cannot find any info on it
432: [11:30:21] * Error404NotFound quit (Ping timeout: 252 seconds)
433: [11:40:11] <mainpykor> Guits: addons.silverstripe.org
434: [11:40:12] <mainpykor> perhaps
435: [11:40:22] <mainpykor> Guits: that or contact Cam Findlay
436: [11:40:37] <mainpykor> (from silverstripe). If it's been posted about then he'd be the one in the know.
437: [11:44:09] * UncleCheese__ quit (Quit: UncleCheese__)
438: [11:54:56] * Shrike_Finland has joined #silverstripe
439: [12:10:31] * joelpittet has joined #silverstripe
440: [12:14:54] * joelpittet quit (Ping timeout: 252 seconds)
441: [12:21:55] * Shrike_Finland quit (Quit: Leaving.)
442: [12:51:31] * Shrike_Finland has joined #silverstripe
443: [12:56:19] * Guits quit (Ping timeout: 260 seconds)
444: [13:12:19] * Shrike_Finland quit (Quit: Leaving.)
445: [13:13:23] * micmania1 quit (Ping timeout: 246 seconds)
446: [13:13:32] * UndefinedOffset has joined #silverstripe
447: [13:24:12] * Shrike_Finland has joined #silverstripe
448: [13:26:24] * micmania1 has joined #silverstripe
449: [13:28:40] * Guits has joined #silverstripe
450: [13:37:40] <mainpykor> urgh php y u no is_associative($array) :<
451: [13:58:58] * joelpittet has joined #silverstripe
452: [14:02:09] * Shrike_Finland quit (Quit: Leaving.)
453: [14:03:31] * joelpittet quit (Ping timeout: 260 seconds)
454: [14:03:43] <kinglozzer> mainpykor: ArrayLib::is_associative()
455: [14:03:48] <kinglozzer> ;D
456: [14:08:28] <mainpykor> kinglozzer: I know about that.
457: [14:08:38] <mainpykor> but 2 things:
458: [14:09:04] <mainpykor> not reliable (not foolproof at least) because of how PHP manages arrays
459: [14:09:14] <mainpykor> and two; not using SS :(
460: [14:09:24] <kinglozzer> :(
461: [14:09:37] <kinglozzer> Probably slow too if the array is large
462: [14:10:10] <mainpykor> thuogh I could just pinch it (or one of these http://stackoverflow.com/questions/173400/php-arrays-a-good-way-to-check-if-an-array-is-associative-or-sequential), but it's overkill for what I want.
463: [14:10:16] <mainpykor> and yeah, slow, unreliable, etc.
464: [14:11:29] <mainpykor> ideally I could just is_array() and if false its a hash map (object) like in JS
465: [14:11:34] <mainpykor> but nah.
466: [14:13:26] <mainpykor> also, it's lunch time and I'm bored again.
467: [14:13:39] <mainpykor> wtb interesting shit that's SFW to read/look at/investigate
468: [14:13:47] <mainpykor> kinglozzer: suggestions?
469: [14:14:30] <kinglozzer> Hmm, can't help much as I go home for lunch (I live like 10 mins away)
470: [14:15:02] <mainpykor> I live like an hour and a half away :<
471: [14:15:11] <kinglozzer> http://arstechnica.com/ ?
472: [14:15:11] <mainpykor> wait shit no
473: [14:16:07] <mainpykor> yeh, google says I live 5.25 hours away.
474: [14:16:25] <kinglozzer> Yeah you cant really 'pop home' for lunch :P
475: [14:16:52] <mainpykor> http://arstechnica.com/security/2014/02/new-silk-road-hit-with-2-6-million-heist-due-to-known-bitcoin-flaw/
476: [14:16:55] <mainpykor> rofl rofl rofl
477: [14:17:01] <mainpykor> who didn't see that coming?
478: [14:17:06] <kinglozzer> :P
479: [14:17:25] <mainpykor> kinglozzer: well... depends where I call home I guess. If we're going to NZ it's a bit further than just swimming to France :P
480: [14:17:44] <kinglozzer> Haha yeah, good luck with that swim
481: [14:19:36] <mainpykor> oh man, online monies gets hacked. Brilliant. Who didn't see that coming?
482: [14:19:55] <mainpykor> best of all it happened to the 'black market', which makes it even better.
483: [14:22:04] <mainpykor> oh also, Americans let unscroupulous company rule the world.
484: [14:22:07] <mainpykor> gg
485: [14:22:23] <mainpykor> comcast buys time warner. wtf. Who knew a corporate that size could be bought.
486: [14:22:50] <mainpykor> Good link kinglozzer, I approve. This website showcases everything that is wrong with the world.
487: [14:23:27] <kinglozzer> Happy reading!
488: [14:24:15] <mainpykor> lol, this article
489: [14:24:15] <mainpykor> http://arstechnica.com/security/2014/02/bizarre-attack-infects-linksys-routers-with-self-replicating-malware/
490: [14:24:23] <mainpykor> I hear that it's purely because Java.
491: [14:24:54] <mainpykor> irony in that Linksys run a course on 'why not to use java', then use it themselves. And this is what happens. rofl rofl.
492: [14:25:03] <mainpykor> or so I hear
493: [14:25:20] * Shrike_Finland has joined #silverstripe
494: [14:27:08] <mainpykor> Android gets more shit as it slowly turns to a licencing type like apple.
495: [14:27:13] <mainpykor> or something
496: [14:27:27] <mainpykor> this site has no happy stories at all :<
497: [14:27:57] <kinglozzer> Hahaha, by 'happy reading' I meant 'depressing reading'
498: [14:28:02] <mainpykor> omg
499: [14:28:05] <mainpykor> no, some funny shit too
500: [14:28:10] <mainpykor> like 'ubuntu apps store'
501: [14:28:13] <mainpykor> LOL WUT
502: [14:28:34] <mainpykor> better yet, not portable between desktop or tablet installs of the shittest linux os
503: [14:29:09] <mainpykor> and EA installing 'pay2win dlc' then removing it later... to PLANTS VS ZOMBIES 2
504: [14:29:14] <mainpykor> lol omg wtf
505: [14:29:45] <kinglozzer> haha, EA are just the worst
506: [14:30:14] * Shrike_Finland quit (Client Quit)
507: [14:31:45] <mainpykor> yeah so that's enough out of that site
508: [14:31:52] <mainpykor> it was amusing, then it wasn't :<
509: [14:35:47] <mainpykor> it felt like browsing kickstarter. It starts out with all kinds of hopes and dreams, and quickly descends into sheer depression at how much stupid is out there.
510: [14:36:24] <kinglozzer> Aha, I've still never even looked at kickstarter
511: [14:37:08] <mainpykor> https://www.kickstarter.com/projects/1942682779/ledglow-head?ref=home_location
512: [14:37:11] <mainpykor> like this
513: [14:37:15] <mainpykor> rofl
514: [14:37:39] <mainpykor> good ol' Kev.
515: [14:37:42] <mainpykor> xD
516: [14:37:52] <mainpykor> what will he come up with next?
517: [14:39:49] <kinglozzer> £0.00 pledged
518: [14:39:54] <kinglozzer> :(
519: [14:41:12] <mainpykor> https://www.kickstarter.com/year/2013/?ref=hero#10-emoji-dick
520: [14:41:13] <mainpykor> urgh
521: [14:41:16] <mainpykor> wtf
522: [14:41:35] <kinglozzer> -.-
523: [14:41:51] <kinglozzer> #11 restored some of my faith in humanity
524: [14:43:51] <mainpykor> lol
525: [14:44:03] <mainpykor> people backed it, no idea why really.
526: [14:44:31] <mainpykor> when you think about the large majority of things getting backing because the 'investor' gets something out of the act directly.
527: [14:44:33] <mainpykor> this...
528: [14:44:39] <mainpykor> unless they all get free ride tickets...
529: [14:44:43] <mainpykor> id
530: [14:44:45] <mainpykor> idk*
531: [14:44:55] <mainpykor> back to work.
532: [15:05:06] * catcher has joined #silverstripe
533: [15:05:37] <mainpykor> kinglozzer: wholey shit it's siesta time :<
534: [15:05:43] <mainpykor> I guess I had too much lunch :S
535: [15:06:01] <kinglozzer> I wish :(
536: [15:07:14] <mainpykor> I'm not faring too well here :<
537: [15:07:16] <mainpykor> lol
538: [15:11:15] * Shrike_Finland has joined #silverstripe
539: [15:21:02] * Shrike_Finland quit (Quit: Leaving.)
540: [15:23:58] * Shrike_Finland has joined #silverstripe
541: [15:35:38] * Shrike_Finland quit (Quit: Leaving.)
542: [15:35:48] * Shrike_Finland has joined #silverstripe
543: [15:44:48] <Shrike_Finland> Hi, what should I know about this error: 'addfields' does not exist on 'BootstrapForm'
544: [15:45:47] <mainpykor> either add the method to bootstrapform, or stop trying to call it.
545: [15:47:06] * joelpittet has joined #silverstripe
546: [15:51:12] <kinglozzer> Ugh, the joys of procedural PHP
547: [15:51:41] <kinglozzer> noclasses4u
548: [15:51:46] <kinglozzer> >:(
549: [15:52:01] * joelpittet quit (Ping timeout: 272 seconds)
550: [15:59:33] <mainpykor> proceeeeeeeeeeeeeeeeeedure
551: [16:02:13] <mainpykor> rofl rofl
552: [16:02:30] <mainpykor> TESCO customers fall prey to a massive phishing operation.
553: [16:02:34] <mainpykor> DERP
554: [16:21:15] * FrozenFire has joined #silverstripe
555: [16:26:09] <mainpykor> allllllllll the overturned lorries.
556: [16:26:11] <mainpykor> dem winds
557: [16:27:11] * ObiWanShanobi has joined #silverstripe
558: [16:27:18] * jrthomer_ is now known as jrthomer
559: [16:27:25] * OxFF1 has joined #silverstripe
560: [16:33:49] * ARNHOE quit ()
561: [16:56:55] * Shrike_Finland quit (Quit: Leaving.)
562: [17:05:51] <micmania1> mainpykor: are you under water yet?
563: [17:17:07] * joelpittet has joined #silverstripe
564: [17:18:32] * kinglozzer quit ()
565: [17:20:13] <mainpykor> micmania1: eh?
566: [17:20:14] <mainpykor> neg
567: [17:20:23] * joelpitt_ has joined #silverstripe
568: [17:20:25] <mainpykor> micmania1: dun matter to me anyway, going home in 10
569: [17:22:19] <mainpykor> gaan north in the morn'n, so gotta go get ready
570: [17:22:30] <mainpykor> avoid that weather, just go for snow instead :P
571: [17:22:41] <micmania1> north where?
572: [17:22:51] <mainpykor> over the wall...
573: [17:22:54] <mainpykor> :P
574: [17:23:03] <micmania1> Thought that was west? haha
575: [17:23:12] <mainpykor> it ran right over, east to west.
576: [17:23:19] <micmania1> Hadrians wall?
577: [17:23:22] <mainpykor> aye.
578: [17:23:30] <mainpykor> I was also making a game of thrones pun.
579: [17:23:33] * joelpittet quit (Ping timeout: 252 seconds)
580: [17:23:42] <micmania1> oh, I have no idea
581: [17:24:05] <mainpykor> but yeh, Hardian's wall went right over. Came through or near here I think
582: [17:24:14] <Zauberfisch> micmania1: today I have taken a look at your module
583: [17:24:15] <micmania1> yeah, basically goes through where I live
584: [17:24:20] <mainpykor> most likely leading to "Hadrian's way"
585: [17:24:20] <Zauberfisch> at first glance it looks pretty good
586: [17:24:25] <Zauberfisch> well done
587: [17:24:28] <micmania1> cool, thanks :)
588: [17:24:30] <mainpykor> Zauberfisch ?
589: [17:24:33] <mainpykor> oh blogs
590: [17:24:46] <mainpykor> micmania1: Dundee though.
591: [17:24:51] <mainpykor> just for shits and giggles.
592: [17:24:54] <Zauberfisch> yes, the "fresh take on blog" module
593: [17:25:05] <mainpykor> Zauberfisch: yeh, is what is needed.
594: [17:25:29] <Zauberfisch> micmania1: you have it in production?
595: [17:25:53] <micmania1> yep, you want some examples?
596: [17:26:40] <Zauberfisch> what sizes?
597: [17:27:10] <mainpykor> hey Zauberfisch, do you happen to know, if I do $newvar = $existingarray, is it copy or reference?
598: [17:27:16] <Zauberfisch> I plan to use it for a startup that plklans to post a lot, so I need to know its "battle tested"
599: [17:27:18] <mainpykor> I'm hoping copy, but unsure :<
600: [17:27:24] <micmania1> just small so far.
601: [17:27:44] <micmania1> Its just the same as SiteTree through so shouldn't be too taxing.
602: [17:27:50] <micmania1> no more than SiteTree anyway
603: [17:28:01] <Zauberfisch> mainpykor: neither, internaly its handled rather weird
604: [17:28:15] <Zauberfisch> its sort of a mix of both, but behaves like copy
605: [17:28:35] <micmania1> The only overhead is the future publishing. It augments the queries to filter the posts but apart from that its the same.
606: [17:29:19] <Zauberfisch> so for your case you can consider it copy (its only in some strange edge cases where one could run into problems)
607: [17:30:26] <Zauberfisch> micmania1: well, much is probably a bit exaggerated. I guess they will post 1 a week or so
608: [17:30:37] <Zauberfisch> at the beginning, and it will probably calm down over time
609: [17:31:03] <micmania1> I wrote a blog module got http://www.fsf.org.uk which has much more overhead and that runs fine.
610: [17:32:20] <micmania1> Saying that, I think they've got a pretty high spec server.
611: [17:32:48] <micmania1> Anyway, g2g
612: [17:32:50] <Zauberfisch> fsf uk is silverstripe?
613: [17:32:54] <Zauberfisch> nice
614: [17:33:01] <micmania1> yeah :)
615: [17:33:22] <micmania1> We've got a lot done in dev ready to be deployed too
616: [17:33:40] <micmania1> including a wiki which allows front-end editing :)
617: [17:33:46] <Zauberfisch> cool
618: [17:33:54] <Zauberfisch> are you doing that as sponsorship for fsf?
619: [17:34:06] <Zauberfisch> or are they paying for it?
620: [17:34:12] <micmania1> paying for it.
621: [17:34:30] <Zauberfisch> oh, hold on, taking a look at it, its not what I expected
622: [17:34:31] <Zauberfisch> :/
623: [17:34:39] <Zauberfisch> I thingkt we are talking free software foundation
624: [17:34:43] <Zauberfisch> *I thought
625: [17:34:58] <micmania1> yeah, they're bastards. Used to keep hacking the old site and redirecting to theirs haha
626: [17:35:08] <Zauberfisch> haha
627: [17:35:26] <micmania1> so far so good on this one. Almost a year I think
628: [17:35:31] <micmania1> Anyway, i'm off
629: [17:35:35] <micmania1> have a good weekend.
630: [17:35:36] <Zauberfisch> cya
631: [17:35:59] <mainpykor> thanks Zauberfisch :>
632: [17:37:51] <Zauberfisch> or perhaps I am confusing something here
633: [17:37:53] <Zauberfisch> not sure anymore
634: [17:38:03] <Zauberfisch> but in your case it most likely doesn't matter anway
635: [17:41:12] <mainpykor> Zauberfisch: not sure, didn't test, just did. It surely must be copy.
636: [17:41:24] <mainpykor> it's the weekend.
637: [17:41:30] <mainpykor> until next time batmen!
638: [17:41:32] <Zauberfisch> mainpykor: ignore all I said.
639: [17:41:40] <mainpykor> keke
640: [17:41:46] <Zauberfisch> its copy
641: [17:41:50] <mainpykor> have a good weekend Zauberfisch :)
642: [17:42:01] <Zauberfisch> you too
643: [17:42:06] <mainpykor> :>
644: [17:42:09] * mainpykor quit (Quit: Page closed)
645: [18:19:46] * UncleCheese___ has joined #silverstripe
646: [18:22:03] * joelpitt_ quit ()
647: [18:35:37] * micmania1 has joined #silverstripe
648: [18:35:57] * gelignite has joined #silverstripe
649: [19:01:10] * SightUnseen has joined #silverstripe
650: [19:03:15] * SightUnseen has left #silverstripe
651: [19:12:31] * UncleCheese___ quit (Quit: UncleCheese___)
652: [19:16:39] * joelpittet has joined #silverstripe
653: [19:26:02] * ARNHOE has joined #silverstripe
654: [19:36:36] * Shrike_Finland has joined #silverstripe
655: [19:46:03] * pippy quit (Read error: Connection reset by peer)
656: [19:51:30] * chillu has joined #silverstripe
657: [19:53:58] <micmania1> chillu: got 2 mins to talk about a potential bug?
658: [19:56:10] <chillu> Good morning - what's up?
659: [19:57:23] <micmania1> morning :) Is it expected behaviour that when you pass false as a param in a template it actually gets passed through as true?
660: [19:57:48] <micmania1> I'm sure I've seen something like this dicsussed before. Its clearly being casted as a string, but not sure if this is intended?
661: [19:58:24] <micmania1> eg. $MyMethod(false) // first param would be true
662: [19:59:00] <micmania1> $MyMethod(0) // passes as false
663: [19:59:18] <chillu> In whcih SS version?
664: [19:59:46] <micmania1> 3.1 (unstable)
665: [20:00:10] <micmania1> I came across it by accident when implementing the unlinked param: https://github.com/silverstripe/silverstripe-cms/issues/930
666: [20:00:47] * travis-ci has joined #silverstripe
667: [20:00:48] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1941 (3.1 - 5ec6cac : Will Rossiter): The build passed.
668: [20:00:48] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/4f7c6ebcff7c...5ec6cacf60ea
669: [20:00:48] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/18902544
670: [20:00:48] * travis-ci has left #silverstripe
671: [20:03:04] <chillu> There's no unit test for boolean false, and its not documented - so could be a bug (or missing feature heh)
672: [20:03:24] <chillu> Wanna write a (failing) unit test in SSViewerTest->testCallsWithArguments() and submit that as an issue?
673: [20:03:55] <Shrike_Finland> UncleCheese: can I use ->setLayout("horizontal") on Contact form -module?
674: [20:05:13] <micmania1> haha yeah, no bother. damn missing features.
675: [20:06:38] <micmania1> would I be okay to submit that breadcrumbs PR without it?
676: [20:17:31] <Shrike_Finland> ->setLayout("horizontal") seems to work fine...
677: [20:36:20] * SphereSilverNL has joined #silverstripe
678: [20:36:26] <SphereSilverNL> \o
679: [20:42:43] <Shrike_Finland> I'm using bootstrap forms and contact form modules. How can I manipulate form styling, like adding extra div after form-tag and before label-tag?
680: [20:43:14] <SphereSilverNL> Override the existing FormField template with your own
681: [20:43:39] <Shrike_Finland> ok, let's test
682: [20:44:25] <SphereSilverNL> put it in /themes/yourtheme/exact/location/as/original/from/here/FormField.ss
683: [20:49:00] <SphereSilverNL> Is it possible to get all different dataobjects by addressing DO as a singleton?
684: [20:49:05] <SphereSilverNL> (just wondering :P )
685: [20:51:05] <SphereSilverNL> My site peaks at 190+ queries/second. Trying to think of ways to lower this :P
686: [20:52:23] * SightUnseen has joined #silverstripe
687: [20:56:37] * SightUnseen quit (Ping timeout: 248 seconds)
688: [20:58:14] <micmania1> SphereSilverNL: What do you mean by all different DO's as singleton? What is it you're trying to do?
689: [20:58:32] * chillu quit (Quit: chillu)
690: [21:00:55] <SphereSilverNL> micmania1: just pondering on ways to only get an often-used many_many related object only once
691: [21:01:11] <SphereSilverNL> since now, it's called for every DO that has the same many_many
692: [21:01:32] <micmania1> I though queries were cached with the ORM?
693: [21:01:35] * Shrike_Finland quit (Quit: Leaving.)
694: [21:01:43] <micmania1> Maybe not many_manys?
695: [21:01:48] <micmania1> Can you not use partial caching?
696: [21:02:02] <SphereSilverNL> I'm already applying as much caching as I can imagine :D
697: [21:02:16] <SphereSilverNL> but since the site changes per minute.... that's not a whole lot :P
698: [21:02:38] <micmania1> ahhhh!
699: [21:03:03] <SphereSilverNL> already a few by-the-minute caches setup
700: [21:03:20] <SphereSilverNL> but with 8 Movies (in my case), which all have a bunch of genres in common
701: [21:03:52] <SphereSilverNL> I want the "first visitor every minute" to have a good experience too, therefor, not fetch the genres in common twice (they are different queries, due to the MovieID being different)
702: [21:04:01] * Shrike_Finland has joined #silverstripe
703: [21:04:14] <SphereSilverNL> Ok, the site isn't slow, I'm just being a perfectionist ;)
704: [21:04:39] <micmania1> Ah, you could index your table if you haven't already which should improve performance.
705: [21:05:06] <SphereSilverNL> You mean, setup indexes on ID and URLSegment? Yes, ofcourse I've set that up
706: [21:05:28] <SphereSilverNL> and SS does most of the index-settings on many_many already ;)
707: [21:06:41] <micmania1> I've never used it but I was reading about partitioning a while back
708: [21:07:28] <SphereSilverNL> Best I can think of right now, is going back to lowlevel queries that only run if a certain ID in the "get the many_many relations" doesn't exist yet
709: [21:07:33] <SphereSilverNL> that's almost back to basics :P
710: [21:07:44] * chillu has joined #silverstripe
711: [21:07:53] * Colin[pi] has joined #silverstripe
712: [21:08:03] <micmania1> You could do what Frank Mullenger does. Checkout his Gallery module.
713: [21:08:09] * SightUnseen has joined #silverstripe
714: [21:08:35] <micmania1> He mimics the many_many relation. You gain more control that way?
715: [21:08:56] * SightUnseen has left #silverstripe
716: [21:09:26] <SphereSilverNL> It looks good, but it's gonna take me one hell of a rewrite :P
717: [21:10:08] <micmania1> haha
718: [21:10:20] <SphereSilverNL> He does exactly what I just said ;) revert to lowlevel queries, but in a better way than I was thinking of
719: [21:10:34] <SphereSilverNL> although, I hadn't thought my lowlevel-method completely through yet :P
720: [21:10:41] <micmania1> I think the main reason he does it is to gain more control of the extra fields.
721: [21:11:01] <SphereSilverNL> That's indeed pretty much the same I want to achieve :D
722: [21:11:19] <micmania1> What version of ss you using?
723: [21:11:29] * UndefinedOffset quit (Read error: Connection reset by peer)
724: [21:14:28] * chillu quit (Quit: chillu)
725: [21:15:38] <SphereSilverNL> Latest pull I deployed was yesterday
726: [21:17:11] <micmania1> you pulling from master?
727: [21:17:25] <SphereSilverNL> I'm already having a stack of all unique pages in a protected gotten_pages = array();
728: [21:17:40] <SphereSilverNL> From the master branch, yes, it's 3.1 atm if I'm not mistaken
729: [21:17:47] <SphereSilverNL> 3.1 indeed
730: [21:18:03] <micmania1> master is 3.2 (which is not released yet) lol
731: [21:19:10] <SphereSilverNL> Ok, I'm on the one marked as "default branch" and last pull I deployed is yesterday ;)
732: [21:19:21] <micmania1> ah, 3.1
733: [21:19:30] <micmania1> stil not stable, but stabler lol
734: [21:19:36] <micmania1> you not jumped into composer yet?
735: [21:20:18] <micmania1> brb. Much needed coffee.
736: [21:20:30] <SphereSilverNL> I'm pretty much ONLY using composer, but not on my hosting, since it doesn't allow composer on semi-VPS hostings
737: [21:22:52] * Shrike_Finland quit (Quit: Leaving.)
738: [21:28:29] * Shrike_Finland has joined #silverstripe
739: [21:39:53] <SphereSilverNL> This just popped up in my head.
740: [21:40:06] <SphereSilverNL> Should there be a "Europe Silverstripe Meetup"?
741: [21:41:44] <micmania1> YES!
742: [21:42:08] <micmania1> In the summer :)
743: [21:42:11] <SphereSilverNL> Like, say, a once or twice a year, meetup in.... Berlin, Hamburg, or maybe Kopenhagen? (A bit central cities would probably be nice, which made me end up in Germany)
744: [21:42:44] <micmania1> I'm in!
745: [21:42:46] <SphereSilverNL> Maybe Cologne, and a far-fetched (but awesome) Luxemburg City?
746: [21:43:30] <micmania1> As long as its not in football season :p
747: [21:43:48] <micmania1> July would be perfect. Sun & SilverStripe.
748: [21:45:51] <micmania1> Where do you think most people would be coming from?
749: [21:46:08] <micmania1> I know there's a few in Austria.
750: [21:46:24] <micmania1> Not really sure of anywhere else.
751: [21:46:28] <SphereSilverNL> I'm thinking Germany, Netherlands, Probably Austria and Swiss, a few French, but that would be it.
752: [21:47:06] * Shrike_Finland quit (Quit: Leaving.)
753: [21:47:12] <SphereSilverNL> Crap, Creditcard needed for first setup. Guess what, my CC is expired :/
754: [21:47:14] * Shrike_Finland has joined #silverstripe
755: [21:48:39] <SphereSilverNL> Why is Meetup not free!! :(
756: [21:49:33] <micmania1> You ever speak to Pyromanik on here? He moved over from NZ recently just near me. He'd probably come.
757: [21:50:01] <SphereSilverNL> I've seen Pyro around, but not recently
758: [21:50:37] <SphereSilverNL> Can't setup a paid account at meetup.com because the name on the CC doesn't match mine
759: [21:50:51] <SphereSilverNL> Which kinda makes sense, since it's not my CC
760: [21:51:25] <micmania1> We should speak to Cam first and see if we can drum up a bit of interest first.
761: [21:53:01] <SphereSilverNL> Is anyone able to setup a meetup-group? I can't get past the payment settings :(
762: [21:53:28] <SphereSilverNL> Valid point. Should I e-mail, or would you do it?
763: [21:54:46] * UncleCheese__ has joined #silverstripe
764: [21:56:20] <micmania1> I can if you want?
765: [21:56:48] <SphereSilverNL> See message, should solve the situation ;)
766: [21:56:53] <micmania1> I see :)
767: [21:57:19] * Shrike_Finland quit (Quit: Leaving.)
768: [22:01:05] * micmania1 quit (Read error: Connection reset by peer)
769: [22:01:29] * micmania1 has joined #silverstripe
770: [22:12:44] * terryapodaca has joined #silverstripe
771: [22:15:25] * ARNHOE quit ()
772: [22:15:57] <SphereSilverNL> Ok, we're starting this for real. I mean. For real.
773: [22:15:59] <SphereSilverNL> https://twitter.com/SphereSilver/status/434449727661555712
774: [22:18:03] * Shrike_Finland has joined #silverstripe
775: [22:21:09] <catcher> Anyone here using php5.5?
776: [22:22:29] * Shrike_Finland quit (Ping timeout: 248 seconds)
777: [22:27:57] * Shrike_Finland has joined #silverstripe
778: [22:32:06] * willr has joined #silverstripe
779: [22:35:16] * Shrike_Finland quit (Ping timeout: 245 seconds)
780: [22:52:01] <SphereSilverNL> Guess what, I'm NaN
781: [22:52:02] <SphereSilverNL> I am.....
782: [22:52:06] <SphereSilverNL> bedman!
783: [22:52:28] <SphereSilverNL> I'm off to bed folks. Sleep tight
784: [22:52:42] <catcher> seeya
785: [22:52:48] * SphereSilverNL quit (Quit: bye)
786: [23:11:14] <terryapodaca> catcher: you seem to be the only active one right now
787: [23:11:16] <terryapodaca> you got a sec?
788: [23:20:30] <catcher> just about to log out, but sure if it's quick
789: [23:21:05] <terryapodaca> nah, it's probably not too quick...
790: [23:21:13] <terryapodaca> 5 minutes or more
791: [23:21:36] <terryapodaca> don't want to take away from your weekend so i'll just wait till Monday
792: [23:22:23] <catcher> terryapodaca, you've got my email address, I may be able to hit you back this w/e.
793: [23:22:35] <catcher> very considerate of you!
794: [23:24:36] <micmania1> terryapodaca, what's your problem?
795: [23:29:25] * catcher quit (Quit: Leaving)
796: [23:30:13] * Shrike_Finland has joined #silverstripe
797: [23:30:27] <terryapodaca> GridField::create('Addresses', 'Addresses', $this->owner->Addresses(), GridFieldConfig_RelationEditor::create());
798: [23:30:27] <terryapodaca> $fields->dataFieldByName('Addresses')->getConfig()->removeComponentsByType('GridFieldAddExistingAutocompleter');
799: [23:30:58] <terryapodaca> throws: Fatal error: Call to a member function getConfig() on a non-object
800: [23:31:45] <terryapodaca> this isn't my code...it's a new client that just started having issues with their new site and they dont like the original developer and reached out to me...but I am not familiar with the new Grid underlying code
801: [23:34:43] * Shrike_Finland quit (Ping timeout: 260 seconds)
802: [23:35:58] <micmania1> ok, your problem lies with $fields->dataFieldByName("Addresses")
803: [23:36:08] <micmania1> This isn't getting the GridField as its supposed to.
804: [23:37:07] <terryapodaca> micmania1: makes sense since the error is in the getConfig() and thinks it's a non object
805: [23:37:33] <micmania1> yep, you just need to debug and find out why its not getting the GridField.
806: [23:37:59] <micmania1> You could try $fields->fieldByName() which is a bit more open.
807: [23:39:23] <terryapodaca> I'll try that...also doing a little digging in the Docs to see what I can come up with...
808: [23:39:29] <terryapodaca> thanks micmania1
809: [23:43:38] <terryapodaca> is dataFieldByName deprecated now?
810: [23:47:32] * Shrike_Finland has joined #silverstripe
811: [23:51:57] <micmania1> I don't think so. It should say in the api docs if it is
812: [23:52:05] * Shrike_Finland quit (Ping timeout: 272 seconds)
813: [23:52:20] <micmania1> chillu: https://github.com/silverstripe/silverstripe-framework/pull/2140 - found this regarding the boolean template issue.
814: [23:52:45] <micmania1> would help if he was here :p
815: [23:52:48] <micmania1> my bad
816: [23:52:58] <terryapodaca> ha
817: [23:58:16] <micmania1> tired myself out. off to bed
818: [23:58:18] <micmania1> cya
819: [23:58:23] <terryapodaca> later

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