#silverstripe IRC Log

IRC log for 23 January 2015

All timestamps are in UTC.

1: [00:02:25] * UncleCheese has joined #silverstripe
2: [00:02:43] <UncleCheese> Just bought a bathroom scale and it give me weight in "St"
3: [00:02:49] <UncleCheese> what the flying fuck is "st?"
4: [00:03:04] <UncleCheese> i'm having a hard enough time with "kg"
5: [00:03:12] <UncleCheese> googling it
6: [00:04:21] * Ryan-Toast quit (Quit: Ryan-Toast)
7: [00:04:54] * flekc has joined #silverstripe
8: [00:05:25] * flekc has left #silverstripe
9: [00:05:37] * flekc has joined #silverstripe
10: [00:06:09] * flekc has left #silverstripe
11: [00:06:48] <novaweb> yozzzz.. using composer, how does simple check out to the themes directory, as opposed to the base directory of the project? I thought i'd see something obvious in the composer.json files
12: [00:07:47] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
13: [00:08:40] <camfindlay> check the “type” meta data it’s silverstripe-theme or something along those lines instead of silverstripe-module
14: [00:09:21] <novaweb> i see. I'd like to understand this more, but that will solve my problem. thanks cam!
15: [00:19:38] * Ryan-Toast has joined #silverstripe
16: [00:25:50] * alcabar has joined #silverstripe
17: [00:26:08] <MichalKleiner> UncleCheese http://www.metric-conversions.org/weight/stones-to-kilograms.htm :-D
18: [00:26:14] <MichalKleiner> stones.. never heard about it
19: [00:27:09] <Colin[pi]> mm my dad uses stones still lol
20: [00:38:35] * micmania1 quit (Quit: micmania1)
21: [00:40:49] <MichalKleiner> just strange it displays St instead of oz
22: [00:43:58] * micmania1 has joined #silverstripe
23: [00:44:16] <antmas> oh stones
24: [00:44:30] <antmas> stones are weird
25: [00:47:30] <ss23> lol
26: [00:47:33] <ss23> My grandparents use stones
27: [00:48:31] <nontgor> stones is british thing
28: [00:49:15] <antmas> it is literally the weight of measured stones
29: [00:49:29] <antmas> SO HOW DID THEY WEIGH THE STONES
30: [00:49:38] <micmania1> antmas: they count them
31: [00:49:42] <nontgor> UncleCheese: 14 x 0.45359237 kg - perfectly simple :-P
32: [00:49:43] <ss23> antmas: How did they measure the feet?!
33: [00:50:00] <nontgor> I always measure disk speed in furlongs per fortnight
34: [00:50:08] <antmas> micmania1: doesn't make any sense
35: [00:50:13] <ss23> lol nontgor
36: [00:58:12] <Colin[pi]> antmas: BUT WHO WAS STONE
37: [00:59:37] <antmas> ARE STONES FEET?
38: [01:02:33] <MichalKleiner> stone on shift key?
39: [01:17:28] * lerni quit (Remote host closed the connection)
40: [01:18:39] * mobiusnz quit (Quit: Leaving.)
41: [01:20:14] * jenniferaslan quit (Quit: jenniferaslan has left the room)
42: [01:21:10] * zippy has joined #silverstripe
43: [01:21:33] * spronk2 has joined #silverstripe
44: [01:21:54] * zippy quit (Client Quit)
45: [01:22:02] * nickboo has joined #silverstripe
46: [01:25:07] <nickboo> Hi all, has anyone got an opinion on best practice for syncing dataobjects between two silverstripe sites? I was thinking of going with an csvbulkloader export /import on a cron job, but keen to hear alternatives.
47: [01:25:20] <spronk2> nickboo API
48: [01:25:46] <spronk2> alternatively do whatwe did
49: [01:26:06] <nickboo> do tell
50: [01:26:07] <spronk2> and split the objects out into their own service and have both/all sites consume from that service
51: [01:26:23] <spronk2> relationships get tricky though
52: [01:26:24] * novaweb quit (Quit: Leaving)
53: [01:26:59] <nickboo> I'd prefer to keep site_from from having direct sql query access to site_to's database if possible.
54: [01:27:42] <spronk2> how complex are the object graphs?
55: [01:27:50] <nickboo> simple
56: [01:28:13] <nickboo> for the sake of argument the dataobjects have no relationships
57: [01:28:46] <spronk2> right
58: [01:28:57] <antmas> hmmmm
59: [01:28:59] <antmas> in mysql
60: [01:28:59] <spronk2> and... what sort of sync does it need to be?
61: [01:29:10] <antmas> who do you do multiples in a WHEN?
62: [01:29:19] <WandL> hey guys how can I define two $url_handlers to call to different actions like: 'view//$ID/$OtherID' => 'view', sort//$ID/$OtherID/$Sort!/$Direction' => 'sort' at moment matches Rule '$Action//$ID/$OtherID' ?
63: [01:29:22] <spronk2> antmas as in... nested case?
64: [01:29:26] <antmas> like 'WHEN IN (1,2,3) THEN 'something'
65: [01:29:36] <spronk2> just like that iirc, antmas
66: [01:29:45] <antmas> spronk2: that gives an error though
67: [01:29:47] <spronk2> nickboo e.g. once only, once a day, once a week?
68: [01:29:53] <spronk2> hmm
69: [01:29:54] <spronk2> whats the error
70: [01:30:02] <antmas> SQL Error line blah lol
71: [01:30:04] <spronk2> WHEN col IN(123) ?
72: [01:30:12] <micmania1> WandL: redefine ‘$Action/etc…’ after your custom rule.
73: [01:30:14] <antmas> mmm I'll try that
74: [01:30:47] <nickboo> spronk2: the more up-to-date the data, the better, and there will not be a huge volume, 100 rows max.
75: [01:31:00] <spronk2> hmm
76: [01:31:10] <spronk2> well
77: [01:31:12] <antmas> spronk2: col being the column name?
78: [01:31:15] <spronk2> in the past i've done two things
79: [01:31:16] <spronk2> antmas ya
80: [01:31:34] <spronk2> nickboo first thing was to create a RESTful API that basically serialised the objects to JSON
81: [01:31:42] <spronk2> then have site two consume the API and recreate data objects based on
82: [01:31:58] <spronk2> site two just polled regularly for any updates, and it was a one way thing
83: [01:32:04] <spronk2> nickboo do you need to sync bidirectional?
84: [01:34:08] <antmas> spronk2: no dice, it skips that line and goes straight to my else
85: [01:34:30] <spronk2> so
86: [01:34:42] <spronk2> paste your query
87: [01:34:43] <spronk2> :p
88: [01:35:19] <antmas> am doing
89: [01:36:01] <nickboo> one way sync
90: [01:36:10] <antmas> spronk2: http://www.sspaste.com/paste/show/54c1a5503a3bb
91: [01:36:15] <nickboo> that sounds great though spronk2, i think you've got me on the right track
92: [01:36:32] <spronk2> just make sure you either auth it or limit access by network or something
93: [01:36:38] <nickboo> yup
94: [01:36:40] <antmas> spronk2: line 4-5 I want to combine
95: [01:36:42] <spronk2> i'd probably avoid doing CSV
96: [01:36:52] <spronk2> it's not much less work than doing a simple rest API and if you ever need to update it the API will be way easier
97: [01:37:01] <Colin[pi]> this afternoon needs moar gifs: http://i.imgur.com/esb1xPN.gif
98: [01:37:12] <nickboo> thanks heaps dude
99: [01:37:15] <nickboo> appreciate the advice
100: [01:37:26] <spronk2> ohhh right, antmas
101: [01:37:26] <spronk2> np
102: [01:38:06] <antmas> spronk2: :P if I don't combine those I'm going to have like 20+ of those repeated WHEN lines
103: [01:38:14] <spronk2> i thought you could use in..
104: [01:38:42] <antmas> mhhm same
105: [01:38:46] <spronk2> hmm
106: [01:38:49] <spronk2> tried wrapping it in IF() ?
107: [01:39:26] <antmas> nup, not yet
108: [01:39:53] <antmas> I was wondering if you could set my_value to an array ie WHEN my_valueArray
109: [01:41:14] <spronk2> ah
110: [01:41:14] <spronk2> ant
111: [01:41:20] <spronk2> http://dev.mysql.com/doc/refman/5.5/en/case.html
112: [01:41:22] <spronk2> there are two syntaxes
113: [01:41:24] <spronk2> one takes a when_value
114: [01:41:27] <spronk2> the other one takes a search_condition
115: [01:42:42] <spronk2> so
116: [01:42:43] <antmas> yeah
117: [01:42:48] <spronk2> instead of CASE rf.ra_factor_Id
118: [01:43:11] <spronk2> CASE WHEN rf.ra_factor_id IN (values) THEN 'Water Supply' WHEN rf.ra_factor_id = '15' THEN 'Stormwater'
119: [01:44:25] <antmas> hmmm I'll try it
120: [01:47:44] <spronk2> did it work antmas ?
121: [01:49:05] * wracu quit (Quit: Leaving)
122: [01:49:50] <antmas> spronk2: huzzah!
123: [01:49:54] <antmas> spronk2: hi5 o/
124: [01:50:00] <spronk2> \o BRAO
125: [01:50:07] * veb quit (Quit: veb-irc: &)
126: [01:50:21] <spronk2> fuckin OWNED that shit
127: [01:51:31] <antmas> spronk2: I believe you mean pwned
128: [01:51:35] <spronk2> yeah
129: [01:51:36] <spronk2> that
130: [01:51:42] <spronk2> :D
131: [01:53:32] * antmas_ has joined #silverstripe
132: [01:53:39] <MichalKleiner> dat
133: [01:54:00] <antmas_> "ss-log's future existence is no longer certain." ruhroh?
134: [01:54:06] <spronk2> o_O
135: [01:54:11] <spronk2> eh?
136: [01:54:39] <Colin[pi]> simon has put ads on it
137: [01:54:44] <antmas_> says it as the top
138: [01:54:45] <Colin[pi]> to monetize
139: [01:54:46] <spronk2> o?
140: [01:54:50] <spronk2> wheeeeeere
141: [01:55:05] <antmas_> I'm in the web client right now, first item you see when you log in
142: [01:55:07] <spronk2> oic
143: [01:55:49] * antmas quit (Ping timeout: 246 seconds)
144: [01:56:28] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
145: [01:57:04] * antmas_ is now known as antmas
146: [01:57:11] <antmas> need moar gifs Ryan-Toast
147: [01:57:15] <antmas> and/or Colin[pi]
148: [01:58:02] <Ryan-Toast> antmas: http://i.imgur.com/55nZ27G.gif
149: [02:00:15] <Ryan-Toast> http://i.imgur.com/KQy0JzW.gif
150: [02:00:39] <zauberfisch> logs isn't even loading for me :O
151: [02:01:06] <zauberfisch> ah, here it is
152: [02:01:23] <zauberfisch> ah. yes there are ads
153: [02:01:40] <zauberfisch> didn't see those before
154: [02:01:46] <ss23> They weren't there before
155: [02:01:46] <ss23> :P
156: [02:01:52] <spronk2> ss23 put them there
157: [02:01:59] <zauberfisch> well, they are also at the very bottom
158: [02:01:59] <ss23> :(
159: [02:02:01] <ss23> NU UH
160: [02:02:02] <zauberfisch> where I never looked
161: [02:02:13] <ss23> I thought simon_w was getting more money in AU anyway
162: [02:02:14] <ss23> :(
163: [02:02:21] <ss23> Why can't he burn money on useless servers like the rest of us
164: [02:02:27] <zauberfisch> haha
165: [02:02:35] * ss23 looks at his statements ;_;
166: [02:02:37] <ss23> so poor
167: [02:02:42] <spronk2> ikr
168: [02:02:43] <spronk2> :(
169: [02:02:53] <spronk2> i need some more work... but i have no time
170: [02:02:55] <spronk2> so
171: [02:02:56] <ss23> These logs were automatically created by ss-log from a channel of entitled jerks.
172: [02:02:56] <spronk2> i needsome more time
173: [02:02:59] <ss23> ;___;
174: [02:03:01] <ss23> QQ SO MEAN
175: [02:03:02] <zauberfisch> I actually support having ads there, doesn't bother anyone down at the bottom there and pays the server it runs on
176: [02:03:14] <spronk2> oh wow
177: [02:03:19] <spronk2> simon_w...
178: [02:03:20] <ss23> zauberfisch: They're up the top on the other pages
179: [02:03:28] <spronk2> didn't see that ss23
180: [02:03:30] <spronk2> that cuts.
181: [02:03:33] <zauberfisch> oh
182: [02:03:41] <zauberfisch> and ad the bottom
183: [02:03:44] <antmas> try working in local govt
184: [02:03:48] <antmas> you lot don't know pooer
185: [02:03:48] <ss23> hahah antmas
186: [02:03:53] <antmas> pooer XD
187: [02:04:27] <spronk2> i thought local govt paid absurd rates for contract devs? :P
188: [02:04:30] <spronk2> in fact
189: [02:04:35] <spronk2> i *know* the ccc pays ridiculous rates for teams of contractors
190: [02:04:39] <antmas> I'm not contracted
191: [02:04:45] <spronk2> THERE'S YOUR PROBLEM THEN
192: [02:04:49] <antmas> :P
193: [02:05:07] * antmas puts up zippy's rates
194: [02:05:13] * antmas no longer poor
195: [02:05:16] <antmas> #winning
196: [02:05:30] <spronk2> the only way to win is not to play bro
197: [02:05:42] <spronk2> #wargamesmoments
198: [02:05:42] <ss23> Get them to fire you and rehire as contractor
199: [02:05:43] <ss23> :D
200: [02:06:26] <antmas> :P
201: [02:06:40] * pippy quit (Ping timeout: 246 seconds)
202: [02:07:16] <antmas> hey look an electronica song with a video of a girl or a bikini wearing girl holding a longboard
203: [02:08:05] <spronk2> o_O
204: [02:08:10] <spronk2> sounds legit.
205: [02:09:21] <antmas> https://www.youtube.com/watch?v=3oRvqETOrZM currently
206: [02:09:30] <antmas> this guy is awesome
207: [02:10:37] * WandL quit (Ping timeout: 255 seconds)
208: [02:12:08] <camfindlay> zauberfisch yeah ads have been added, seems also an anti adblocker js too
209: [02:13:46] <antmas> anti adblocker js?
210: [02:13:48] <camfindlay> and yeah, I had noted the nice message left for us jerks
211: [02:13:50] <antmas> thats just evil
212: [02:14:10] <spronk2> .... but true
213: [02:14:14] * spronk2 is an entitled jerk
214: [02:14:25] * spronk2 holds up his certificate of proof
215: [02:14:25] * antmas doesn't disagree
216: [02:14:31] <antmas> :D
217: [02:14:33] <antmas> <3
218: [02:17:20] * mobiusnz has joined #silverstripe
219: [02:24:01] <antmas> man the blackcaps are unstoppable at the moment
220: [02:24:08] <spronk2> ikr
221: [02:24:10] <spronk2> what an insane
222: [02:24:12] <spronk2> partnership
223: [02:24:48] <antmas> considering 96 for 5
224: [02:24:51] <antmas> to get 360 for 5
225: [02:24:52] <spronk2> mm
226: [02:24:54] <antmas> o.O
227: [02:25:56] * muskie9 has joined #silverstripe
228: [02:26:03] * muskie9 quit (Client Quit)
229: [02:26:11] <spronk2> and
230: [02:26:20] <spronk2> strength right throughout the order
231: [02:26:44] <antmas> don't even need Ryder
232: [02:26:45] <antmas> :P
233: [02:26:57] <spronk2> guptill, williamson, mccullum, elliot, ronchi
234: [02:27:13] <spronk2> ugh
235: [02:27:15] <antmas> elliot and mcculum are BEASTS
236: [02:27:20] <spronk2> getting rid of ryder was the best decision they made in a long time
237: [02:27:28] <spronk2> he's just a fucking distraction
238: [02:27:40] <antmas> exactly
239: [02:28:01] <antmas> this should be the nail in the coffin for his arguers
240: [02:28:14] <spronk2> tbh i think all these sports people that get drunk and do other stupid shit just need to be ejected immediately
241: [02:28:46] <antmas> hahah
242: [02:28:50] <antmas> too true though
243: [02:29:07] <spronk2> its just like... it's a fucking privilege to be able to be on these teams
244: [02:29:11] <spronk2> you're a role model
245: [02:29:13] <spronk2> sort your fucking shit out
246: [02:29:19] <spronk2> and you'll get paid well to do it.
247: [02:29:26] <Colin[pi]> high physical prowess + low intelligence + high pay = typical sportsperson
248: [02:29:35] <Colin[pi]> well, not low intelligence
249: [02:29:36] <antmas> what would the BCs be getting annual?
250: [02:29:41] <Colin[pi]> but... stupid behaviour
251: [02:29:52] <spronk2> dno
252: [02:29:57] <spronk2> probably quite a bit, antmas
253: [02:30:04] <antmas> they will now
254: [02:30:31] <antmas> 1/2 of them will come out of CWC with way more franchise sponsorship deals
255: [02:30:54] <spronk2> i'd be surprised if anyone on the team would be on less than 6 figs
256: [02:30:57] <antmas> Hi I'm Brendan Mccullum and I love Poweraid
257: [02:31:24] <antmas> Elliot will start selling heatpumps
258: [02:31:28] <spronk2> lawl
259: [02:31:40] * alcabar quit (Quit: Page closed)
260: [02:31:58] <spronk2> It is hard to establish exactly what players earn under the rankings system but the top earner (believed to be captain Ross Taylor) makes $177,000. That decreases to base retainers of $72,000 for numbers 18-20 in the players' contractual agreement with New Zealand Cricket. Players then receive match fees of $7508 for a test, $3254 for one-day internationals and $2127 for twenty20 matches.
261: [02:31:59] <spronk2> from 2012
262: [02:34:13] <antmas> so pretty good really
263: [02:34:17] <spronk2> preeeetty fucking good
264: [02:34:33] <spronk2> then sponsorship on top of that
265: [02:34:48] <Ryan-Toast> http://gfycat.com/BraveSociableHamadryad
266: [02:35:00] <spronk2> hahahaha
267: [02:35:01] <spronk2> awesoem
268: [02:35:26] <antmas> that's creepy as
269: [02:36:06] * chrisrio has joined #silverstripe
270: [02:36:57] <chrisrio> happy new year nerds
271: [02:37:23] <antmas> chrisrio: BIT LATE BRAH
272: [02:37:42] <Colin[pi]> antmas: you want creepy? son I'll give you creepy: http://gfycat.com/MisguidedMedicalCoqui
273: [02:37:43] <chrisrio> antmas: TIME IS A CONSTRUCT OF YOUR MIND
274: [02:37:45] <spronk2> ugh
275: [02:37:47] <spronk2> FUCKING BANKS
276: [02:37:51] <spronk2> Y U NO OPENLATER THAN 4:30 CUNTS
277: [02:37:59] <chrisrio> to keep you in line
278: [02:38:05] <chrisrio> like the serfs we are
279: [02:38:07] <antmas> Colin[pi]: OH GOD
280: [02:38:27] <camfindlay> ce11ph0ne
281: [02:38:27] <camfindlay> E
282: [02:38:33] <antmas> LOL
283: [02:38:33] <Ryan-Toast> Colin[pi]: http://www.reddit.com/r/brokengifs/top?sort=top&t=all
284: [02:38:35] <camfindlay> haha
285: [02:38:38] <antmas> camfindlay: hacked
286: [02:39:18] <camfindlay> totes lucky thats my shitty one
287: [02:39:22] <Colin[pi]> love this classic too: http://i.imgur.com/XtnDXZE.gif
288: [02:39:48] <spronk2> haha
289: [02:39:52] <spronk2> thats an awesome password cam
290: [02:40:25] <antmas> Colin[pi]: Ryan-Toast this is magical
291: [02:40:30] <antmas> I knew reddit had a purpose
292: [02:41:08] <chrisrio> there is probably a horde of reddit freaks on their way to your house right now antmas
293: [02:41:09] <spronk2> fuck
294: [02:41:10] <chrisrio> they worship that shit
295: [02:41:10] <spronk2> thats fantastic
296: [02:41:32] <antmas> http://i.imgur.com/jmenyrN.gif
297: [02:42:10] <Colin[pi]> rofl: http://i.imgur.com/5AkHOdQ.gif
298: [02:42:16] * micmania1 quit (Quit: micmania1)
299: [02:42:28] <antmas> Colin[pi]: hahahahaha
300: [02:42:31] <antmas> awesome
301: [02:43:09] <Colin[pi]> o_O http://i.imgur.com/Ac5TjEK.gif
302: [02:44:07] <antmas> http://kotaku.com/hackers-are-trying-to-make-an-ad-blocker-for-real-life-1681249702
303: [02:44:28] <antmas> Colin[pi]: that was nightmare fuel BEFORE the glitchy gif
304: [02:44:34] <antmas> fucking IT ruined my childhood
305: [02:45:09] <nontgor> spronk2: Open at 7pm on a Saturday in Thailand :)
306: [02:45:12] <nontgor> #bnaks
307: [02:45:17] <nontgor> grrr, #banks
308: [02:45:19] <spronk2> :(
309: [02:46:34] <MichalKleiner> I hate systems based on assumptions that something is not working in a specific way...
310: [02:47:14] * spronk2 disappears to the bank
311: [02:47:25] * micmania1 has joined #silverstripe
312: [02:47:34] * spronk2 quit (Quit: I may need a longer sleep timer...)
313: [02:47:51] <Colin[pi]> antmas: gf and I had a big philosophical talk last night about that Hololens stuff
314: [02:48:03] <Colin[pi]> I reckon things are going to get pretty bad for some people with it'
315: [02:48:12] <Colin[pi]> like... withdraw totally from reality
316: [02:48:46] * mobiusnz quit (Quit: Leaving.)
317: [02:49:28] <antmas> yeah that will happen
318: [02:50:04] <antmas> especially if people make apps that make their partners look better :D
319: [02:50:13] <Colin[pi]> lol
320: [02:50:17] <Colin[pi]> new, gf 2.0
321: [02:50:23] <Colin[pi]> now with boob enhancer
322: [02:50:25] <antmas> haha
323: [02:50:40] <antmas> or, turn your gf into a man without her noticing!
324: [02:50:41] <antmas> lol
325: [02:50:54] <Colin[pi]> antmas: also interesting is that many of Kurzweil's predictions have come to pass.. if the "singularity" happens in around 2045 that he predicted... well... that'll be nuts and it'll happen in our lifetimes :\
326: [02:51:07] <Colin[pi]> (he predicted this hololens stuff by 2019)
327: [02:51:33] * antmas will be in his 50s :D
328: [02:51:52] <Colin[pi]> runaway AI.. could you imagine? :\
329: [02:52:30] <antmas> mmmm reminds me to look if Ex_machina is out yet
330: [02:52:35] <antmas> that movie looks pretty cool
331: [02:53:06] <Colin[pi]> ooooh that looks right up my alley
332: [02:53:30] <antmas> I bet the big twist is the blond guy is an AI
333: [02:54:02] <Colin[pi]> looks good
334: [02:54:36] <antmas> mmm it really does
335: [02:55:11] <antmas> I can imagine there will be some disturbing bits in it
336: [02:59:40] * mobiusnz has joined #silverstripe
337: [03:04:41] <Cramb> Hey guys looking to push formaction to a different class. I cant find any method to do this out of the box. Am I missing something
338: [03:06:19] <micmania1> ss23 is learning how to tie his laces
339: [03:06:30] <micmania1> He couldn’t work it out this morning :(
340: [03:06:56] <micmania1> I can hear swears :o
341: [03:07:04] <micmania1> #PrayForSS23
342: [03:07:13] * Olliepop quit (Ping timeout: 246 seconds)
343: [03:08:48] <ss23> pls
344: [03:08:49] <ss23> jesus
345: [03:08:50] <ss23> I swear
346: [03:08:52] <ss23> THEY BROKE
347: [03:08:53] <ss23> THEY NSAPPED
348: [03:08:55] <ss23> I'M BEING SLANDERED
349: [03:10:17] <antmas> ss23: you should buy velcro shoes
350: [03:10:21] <antmas> way cooler
351: [03:10:34] <adrexia> ss23 never be afraid to learn something new
352: [03:10:50] <adrexia> :P
353: [03:10:52] <chrisrio> fuck the man, wear dinosaurs on your feet.
354: [03:11:35] * Ryan-Toast quit (Quit: Ryan-Toast)
355: [03:14:03] * mobiusnz quit (Quit: Leaving.)
356: [03:14:23] <Colin[pi]> ss23: get crocs
357: [03:14:26] <Colin[pi]> totes fashionable
358: [03:15:22] <antmas> crocks with socks
359: [03:15:34] <antmas> or those toe shoe things
360: [03:15:42] <antmas> aka ToeJamGenerators
361: [03:15:48] <Colin[pi]> crocks with socks with bricks and clocks, crocks and socks on fox on box
362: [03:15:55] <antmas> :D
363: [03:16:24] <camfindlay> I recken ss23 would be down for some roman sandels
364: [03:16:28] <camfindlay> with socks
365: [03:17:27] <Colin[pi]> I could see that
366: [03:18:08] <antmas> roman sandals are baller
367: [03:18:22] <antmas> then we would look even more like jesus
368: [03:19:58] <antmas> guis
369: [03:20:00] <antmas> GUIS
370: [03:20:05] <antmas> hold onto yo butts
371: [03:20:17] <antmas> doomsday clock is 3 MINUTES TO MIDNIGHT
372: [03:20:22] <Colin[pi]> :o
373: [03:21:05] <antmas> http://io9.com/doomsday-clock-now-three-minutes-to-midnight-1681255062
374: [03:21:51] <Colin[pi]> I love how they look so proud
375: [03:22:51] * jedateach has joined #silverstripe
376: [03:25:56] <nontgor> antmas/ss23: Velcro - what a rip off
377: [03:26:16] * spekulatius quit (Quit: Leaving)
378: [03:26:26] * veb has joined #silverstripe
379: [03:26:48] <antmas> hi5s nontgor o/
380: [03:26:52] <antmas> ctod
381: [03:26:59] <antmas> also cotd
382: [03:27:13] <nontgor> antmas: Source of that joke is the pun master Tim Vine
383: [03:35:42] * camfindlay quit (Quit: camfindlay)
384: [03:36:03] * camfindlay has joined #silverstripe
385: [03:56:30] * starlifterdigi has joined #silverstripe
386: [03:58:53] * Phlunk3 quit (Quit: Leaving)
387: [04:05:43] <camfindlay> yo startlifterdigi
388: [04:11:34] * starlifterdigi quit (Quit: starlifterdigi)
389: [04:11:37] * antmas quit (Ping timeout: 246 seconds)
390: [04:13:12] * starlifterdigi has joined #silverstripe
391: [04:13:24] * WandL has joined #silverstripe
392: [04:14:02] * starlifterdigi quit (Client Quit)
393: [04:14:20] * mobiusnz has joined #silverstripe
394: [04:16:36] <WandL> micmania1: sorry got called away, actually was working by hard coding the action and then shift point the params only so like sort//$ID/$OtherID/$Sort/$Direction => sort, does work fine cheers!
395: [04:25:34] * camfindlay quit (Quit: camfindlay)
396: [04:27:12] * chrisrio quit (Quit: Page closed)
397: [04:28:24] * Ryan-Toast has joined #silverstripe
398: [04:28:34] * Ryan-Toast quit (Client Quit)
399: [04:30:45] * mobiusnz quit (Quit: Leaving.)
400: [04:33:25] <MichalKleiner> beersies
401: [04:33:30] <MichalKleiner> \o/
402: [04:39:33] * Colin[pi] quit (Ping timeout: 244 seconds)
403: [04:45:52] * micmania1 quit (Quit: micmania1)
404: [04:47:20] * cloph_away has joined #silverstripe
405: [04:48:03] * cloph quit (Ping timeout: 276 seconds)
406: [04:54:40] * nickboo quit (Ping timeout: 246 seconds)
407: [05:17:59] * Cramb quit (Quit: Cramb)
408: [05:22:16] * camfindlay has joined #silverstripe
409: [05:25:30] * camfindlay quit (Changing host)
410: [05:25:30] * camfindlay has joined #silverstripe
411: [05:26:55] * camfindlay quit (Client Quit)
412: [05:27:21] * jedateach_ has joined #silverstripe
413: [05:27:47] * jedateach quit (Ping timeout: 245 seconds)
414: [05:27:47] * jedateach_ is now known as jedateach
415: [05:27:48] * spronk2 has joined #silverstripe
416: [05:44:44] * jedateach quit (Quit: jedateach)
417: [06:04:51] * Eliseth quit (Ping timeout: 264 seconds)
418: [06:05:19] * spronk2 quit (Quit: spronk2)
419: [06:06:37] * benjhocking has joined #silverstripe
420: [06:07:14] * camfindlay has joined #silverstripe
421: [06:09:22] * nontgor quit (Remote host closed the connection)
422: [06:10:18] <WandL> Is there a way to renderWith two templates as the main?
423: [06:16:24] <MichalKleiner> from the view of universe - yes. from my current knowledge - I don't know
424: [06:16:28] * wmk has joined #silverstripe
425: [06:18:02] <camfindlay> WandL - same answer and MichalKleiner - I’d be interested in your use case :)
426: [06:18:45] <MichalKleiner> haha.. that use case would be epic of course
427: [06:18:49] <MichalKleiner> universal
428: [06:19:20] <MichalKleiner> works for anything with unlimited number of main templates
429: [06:19:25] * mobiusnz has joined #silverstripe
430: [06:19:34] * vebb has joined #silverstripe
431: [06:19:45] * veb quit (Read error: Connection reset by peer)
432: [06:20:06] <WandL> MichalKleiner: ok thanks, think I need a beer or two :)
433: [06:20:27] <MichalKleiner> to get on the same level, I see :-))
434: [06:20:29] <camfindlay> that’ll solve it :P
435: [06:20:59] <MichalKleiner> WandL: what's your use case?
436: [06:21:04] * mobiusnz quit (Client Quit)
437: [06:21:04] <MichalKleiner> like.. seriously
438: [06:21:15] <zauberfisch> WandL: well, let me post some code. perhaps its what you want
439: [06:21:57] <zauberfisch> class Foo_Controller extends Page_Controller { public function index() { return $this->renderWith('TemplateOne') . $this->renderWith('TemplateTwo'); }
440: [06:22:01] <WandL> @camfindlay: yeah am also wondering why I need to have two main templates, is just an ajax thing and when the view is refreshed need to re-inculde a template
441: [06:22:24] <zauberfisch> this would just stick together two templates
442: [06:22:56] <zauberfisch> WandL: but in your use case its probably better if you overwrite Layout or something
443: [06:23:40] <zauberfisch> class Foo_Controller extends Page_Controller { public function index() { return $this->customize(['Layout' => $this->renderWith('MyAjaxTemplate')]); }
444: [06:23:41] <WandL> zauberfisch:cool that may work fine for what I need, is really strange thing going on have some filters on a table when outsider of the ajax they work but if I put them inside they don't even though the request is made and all the correct data is sent
445: [06:26:37] <WandL> MichalKleiner: yes use case is having the template render as part of the ajax as if I leave them outside I have to select all the correct things and manipulate urls with javascript would rather have the controller/template do all the work, thinking I just move the filters out of the inculde and into the other template lol
446: [06:29:10] * spronk2 has joined #silverstripe
447: [06:32:24] <MichalKleiner> it feeeeeeels a wee bit like a bad practise but i'm not sure.. are you sending whole page through ajax?
448: [06:35:26] <camfindlay> isn’t there the isAjax method you can use to only return a partial from a controller action? Maybe that could be of use?
449: [06:36:15] <WandL> @camfindlay: hmmm will look at that
450: [06:36:31] * jordank quit ()
451: [06:38:24] <WandL> MichalKleiner: ajax is only used so that is not a page refresh when you selecting filters for a grid view thing
452: [06:44:54] * babak_ quit (Quit: Connection closed for inactivity)
453: [06:45:14] <WandL> Have a great weekend everyone, thanks for the help :)
454: [06:45:24] <camfindlay> see ya next week :D
455: [06:45:50] * WandL quit (Quit: My Mac has gone to sleep. ZZZzzz…)
456: [06:46:06] * vebb quit (Read error: Connection reset by peer)
457: [06:47:40] * glenn-bautista quit (Quit: Leaving.)
458: [06:47:43] * veb has joined #silverstripe
459: [06:48:46] * mahfuz quit (Ping timeout: 246 seconds)
460: [06:49:11] * SticksM has joined #silverstripe
461: [06:51:23] * Sticks quit (Ping timeout: 240 seconds)
462: [06:52:10] * Shrike_Finland has joined #silverstripe
463: [06:54:08] * MichalKleiner is now known as MK_away
464: [07:02:18] * camfindlay quit (Quit: camfindlay)
465: [07:08:15] * spronk2 quit (Quit: spronk2)
466: [07:20:55] * spronk2 has joined #silverstripe
467: [07:51:45] * Error404NotFound has joined #silverstripe
468: [08:03:47] * travis-ci has joined #silverstripe
469: [08:03:47] <travis-ci> silverstripe/silverstripe-framework#3925 (3.1 - 2d3aa0b : Will Rossiter): The build passed.
470: [08:03:47] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/d18fc3bb6fff...2d3aa0b8f880
471: [08:03:47] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/48019047
472: [08:03:47] * travis-ci has left #silverstripe
473: [08:08:07] * arnhoe has joined #silverstripe
474: [08:15:53] * wmk quit (Ping timeout: 240 seconds)
475: [08:17:10] * SticksM quit (Quit: Leaving)
476: [08:27:48] * elgabbu has joined #silverstripe
477: [08:34:58] * svnadrat has joined #silverstripe
478: [08:35:07] * svnadrat is now known as svandragt
479: [08:35:14] <svandragt> morning.
480: [08:35:51] <svandragt> Could anyone say whether this is a bug in DataObject->isChanged() please or intended behaviour? https://gist.github.com/svandragt/42863fdc18e7062955c0
481: [08:51:54] <svandragt> Well I've submitted an issue regardless: https://github.com/silverstripe/silverstripe-framework/issues/3821 fyi
482: [08:56:30] * wmk has joined #silverstripe
483: [09:09:47] * veb quit (Quit: veb-irc: &)
484: [09:12:54] * kinglozzer has joined #silverstripe
485: [09:16:28] * bemusedrat has joined #silverstripe
486: [09:27:05] * r_hector has joined #silverstripe
487: [09:30:42] * bolo has joined #silverstripe
488: [09:30:56] <wmk> is there a module for redirecting from old urls to new ulrs when i migrate a site to silverstripe?
489: [09:30:58] <bolo> s
490: [09:31:05] <bolo> yes
491: [09:31:06] <wmk> bolo, ss
492: [09:31:13] <wmk> ;)
493: [09:31:29] <bolo> https://github.com/silverstripe-labs/silverstripe-redirectedurls
494: [09:31:30] <wmk> bolo, any idea how it's called?
495: [09:31:56] <bolo> have used. would recommend
496: [09:32:46] <wmk> hmm, i have pretty the same site structure as the old page
497: [09:32:59] <wmk> but old cms didn't support nested urls
498: [09:33:53] <bolo> there is wildcard redirect
499: [09:34:54] <elgabbu> hi all i am running build task on 2.4 .... i have a data object delete that seems to be triggering some sort of error ... Error at F line F: F
500: [09:34:56] <bolo> ie. from a/b/*somePageOrNest* to x/y/*somePageOrNest*
501: [09:35:19] <bolo> works if you want to move a whole section to another area or something...
502: [09:35:23] <elgabbu> any idea how to get some more insight about the error?
503: [09:35:36] <wmk> bolo, something like /foo/ to /*/foo possible?
504: [09:36:11] <wmk> elgabbu, look at the logs
505: [09:37:35] <bolo> yeah pretty sure. so like /foo/* to /foo/bar/* would mean /foo/i/pity/the would go to /foo/bar/i/pity/the
506: [09:38:49] <bolo> where is best practise to include my custom javascript? init method? <% require %> ?
507: [09:39:10] <wmk> bolo, i tend to include js files in the templates
508: [09:39:42] <wmk> though if you want to handle SS combine_files you'll have to do that in the controller
509: [09:39:57] <svandragt> bolo: if the js files would still run if you switch out the templates, then init method - otherwise its a template js :)
510: [09:40:10] <bolo> no combine for now, but getting some errors when trying to use it in the init
511: [09:40:20] <wmk> really? errors?
512: [09:41:00] <bolo> jQuery.noConflict(); .... couldnt define jQuery becuase it hadnt been loaded
513: [09:41:10] <bolo> no errors when in template
514: [09:41:15] <bolo> will go ith that for now
515: [09:41:40] <svandragt> bolo: means you need to load jquery before the script that uses jquery
516: [09:42:15] <wmk> anyone using a js loader like yepnope?
517: [09:42:35] <elgabbu> wmk i checked the server logs the same error appears ... Jan 23 10:31:53 dev work.www.pokerlistings.com[49909]: [23-Jan-2015 10:31:53] Error at F line F: F (http://work.www.pokerlistings.com/dev/tasks/DuplicatePlayers)
518: [09:43:39] <svandragt> wmk: never needed it but i keep hearing modernizer is a good one.
519: [09:43:40] <wmk> hmm.. php error or silverstripe error?
520: [09:44:03] <wmk> svandragt, includes yepnope afaik?
521: [09:44:26] <elgabbu> i would say its a silverstripe error since its triggered when a delete function is called on a dataobject
522: [09:44:39] <elgabbu> funnily enough tho the dataobject itself is delete succesfully
523: [09:45:00] <wmk> hmm. try this task in dev mode, maybe it shows more errors,
524: [09:45:16] <elgabbu> how do i do that please?
525: [09:45:28] <wmk> ?isDev=1 as param e.g.
526: [09:45:47] <wmk> or in your configuration
527: [09:45:56] <elgabbu> i m running it throguh ssh can i setill do that?
528: [09:46:10] <wmk> ah, as cli task?
529: [09:46:51] <wmk> then something like "/path/to/sake dev/yourtask isDev=1"
530: [09:47:00] * babak_ has joined #silverstripe
531: [09:47:00] <elgabbu> yeah i tried this
532: [09:47:00] <elgabbu> sapphire/sake dev/tasks/DuplicatePlayers isDev=1
533: [09:47:15] <elgabbu> still no detailed error
534: [09:48:04] <wmk> can't you run it in a browser?
535: [09:48:12] * Guits quit (Ping timeout: 245 seconds)
536: [09:49:52] <elgabbu> i guess i can ... not sure how tho
537: [09:50:15] <wmk> www.domain.tld/dev/tasks/DuplicatePlayers?isDev=1
538: [09:52:52] <elgabbu> Build task 'DuplicatePlayers' not found.
539: [09:56:27] <wmk> strange... see /dev/tasks for all available tasks
540: [09:57:09] <elgabbu> it worked after a dev build
541: [09:57:37] <wmk> well, local user and www-user may have different caches
542: [09:57:43] <wmk> aaahhh
543: [09:57:50] <wmk> try a dev-build via cli
544: [09:58:00] <wmk> maybe the cache of local user is oudated
545: [09:58:27] <elgabbu> mmm
546: [09:58:55] <wmk> anything is possible 14days in advance of a friday 13th
547: [09:59:32] <elgabbu> still no luck
548: [10:08:03] <wmk> hmm... another possibility is hardcore debug: grab the code and db, setup a dev vm, enable all logging and run the task with xdebug...
549: [10:10:19] * Shrike_Finland quit (Quit: Leaving.)
550: [10:16:18] * bemusedrat quit (Ping timeout: 276 seconds)
551: [10:24:31] * Eliseth has joined #silverstripe
552: [10:26:07] <Eliseth> Goodmorning
553: [10:27:54] * UncleCheese has joined #silverstripe
554: [10:29:08] * Olliepop has joined #silverstripe
555: [10:31:28] <Olliepop> interesting that ss-log is hosted on simon.geek.nz
556: [10:31:43] * bolo quit (Ping timeout: 246 seconds)
557: [10:32:21] <Eliseth> My modeladmin is showing sortable headers, but not the search icon... Shouldn't that be visiable at the same time?
558: [10:32:43] <Eliseth> I tried defining $summary_fields in my DataObject, but that didn't help
559: [10:33:38] <wmk> Eliseth, did you define $searchable_fields ?
560: [10:34:02] <Eliseth> sorry, that's what I meant :)
561: [10:34:13] <Eliseth> So yes
562: [10:34:25] <wmk> flush?
563: [10:34:43] <Eliseth> no effect
564: [10:34:50] <wmk> please paste the code for the DO and field
565: [10:35:06] <Eliseth> the what?
566: [10:35:52] <wmk> DO = DataObject
567: [10:36:01] <Eliseth> oh, right
568: [10:36:33] <Eliseth> http://sspaste.com/paste/show/54c223f67c001
569: [10:37:05] * svandragt quit (Quit: Page closed)
570: [10:37:18] <wmk> Eliseth, Watt! https://www.youtube.com/watch?v=YaGcGkFhkLA
571: [10:42:08] <wmk> Eliseth, did you overwrite anything in your modeladmin?
572: [10:43:13] <Eliseth> Not that I know of..
573: [10:43:13] <Eliseth> http://sspaste.com/paste/show/54c22588e23b5
574: [10:45:04] <wmk> but normally you can search for items on the left side in modeladmin
575: [10:46:40] <Eliseth> Really? Oh... Then I don't know what I'm looking for... >< Sites I've worked on untill now always had an little looking glass icon to the right in the header row. When clicked the sortable headers changed to search fields....
576: [10:47:08] <wmk> hmm...
577: [10:49:07] <Eliseth> Must be an extension or something... I was assuming it was part of SS, guess not... I'll start looking :D
578: [10:52:44] <wmk> i bet zauberfisch would know
579: [11:06:44] * svandragt has joined #silverstripe
580: [11:11:58] * Olliepop quit (Ping timeout: 246 seconds)
581: [11:18:23] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
582: [11:18:24] <Eliseth> I found it
583: [11:18:56] <Eliseth> The ones I'm used to see are build by the GridFieldConfig
584: [11:19:09] <Eliseth> And implemented in pages
585: [11:19:35] <Eliseth> But there doesn't seem to be a simple way to load a GridFieldConfig that overrides how ModelAdmin builds the page
586: [11:22:04] * headtrip has joined #silverstripe
587: [11:32:41] * Pyoook has joined #silverstripe
588: [11:36:55] * headtrip quit (Read error: No route to host)
589: [11:46:48] <wmk> Eliseth, overwrite getEditForm and add the config you need
590: [11:47:31] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
591: [11:50:26] <Eliseth> Yup, that was exactly what I needed. Thanks!
592: [11:55:50] * svandragt quit (Quit: Page closed)
593: [11:56:22] * Shrike_Finland has joined #silverstripe
594: [12:00:46] * DimiStripe has joined #silverstripe
595: [12:06:47] * benjhocking1 has joined #silverstripe
596: [12:08:27] * benjhocking quit (Ping timeout: 264 seconds)
597: [12:29:16] * Error404NotFound has joined #silverstripe
598: [12:29:41] * Shrike_Finland quit (Quit: Leaving.)
599: [12:32:10] <zauberfisch> has DB alternation message been removed in 3.2?
600: [12:32:50] <discorpia> is there any way to enable/easily add a Save & Close to modeladmin?
601: [12:34:30] <zauberfisch> oh, no. just found it
602: [12:34:35] <zauberfisch> just got renamed to DB::alteration_message()
603: [12:34:36] * spronk2 quit (Quit: spronk2)
604: [12:40:07] <Pyoook> discorpia: not really, unfortunately :<
605: [12:40:12] <discorpia> how come such an absurd amount of ss doc pages are 404? :/
606: [12:41:16] <discorpia> almost every hit from google leading to doc.silverstripe.org is 404. well not every, but more than half of them
607: [12:49:41] <Eliseth> I noticed the same thing this morning
608: [12:49:59] <Eliseth> Even when clicking links within the docs themselves that should link to existing pages
609: [12:52:08] * Shrike_Finland has joined #silverstripe
610: [13:19:53] * UndefinedOffset has joined #silverstripe
611: [13:20:02] <Eliseth> I'm saving a form to a dataobject that has a has_one "Member" => "Member". When saving the form, how do I make the currently logged in user written to that has_one?
612: [13:20:17] * wmk quit (Ping timeout: 245 seconds)
613: [13:23:23] <Pyoook> discorpia: docs updated recently.
614: [13:23:26] <Pyoook> pages have all been moved.
615: [13:23:49] <Pyoook> I guess they didn't do a good job at matching 301s before making the switch
616: [13:24:24] <Pyoook> Eliseth: $this->MemberID = Member::CurrentUserID()
617: [13:24:27] <Pyoook> iirc
618: [13:26:39] <Eliseth> Ah, I forgot the () after ID... now it works ><
619: [13:29:01] * Guits has joined #silverstripe
620: [13:37:00] * Guest3205 has joined #silverstripe
621: [13:48:21] <Pyoook> lol wholey wtf, I just came across a PostNuke website D:
622: [13:51:45] * Guits quit (Ping timeout: 246 seconds)
623: [13:56:54] * muskie9 has joined #silverstripe
624: [14:13:32] * Shrike_Finland quit (Quit: Leaving.)
625: [14:18:30] * UndefinedOffset quit (Quit: Leaving.)
626: [14:21:56] * UndefinedOffset has joined #silverstripe
627: [14:23:30] * Sander has joined #silverstripe
628: [14:24:12] <Sander> Good day people! Has anyone experienced charset problems with a database, when updating SS from 2.4 to 3.1 (locally on MAMP PRO)?
629: [14:29:02] * Guest3205 is now known as nontgor
630: [14:29:27] <nontgor> Sander: Cant say I have. Which database? If MySQL you need to make sure the database collation is UTF8
631: [14:29:44] <nontgor> Sander: Always good to check the basics first :)
632: [14:32:02] <Sander> Yeah checked that stuff out, it is indeed utf8. Is hard to say what the problem is. Not much content on this website though, might just manually fix it
633: [14:33:19] <Sander> Because if I change the content and save it, its saved correctly
634: [14:39:06] <nontgor> k
635: [14:41:17] * catcher has joined #silverstripe
636: [14:45:49] * Sander quit (Ping timeout: 246 seconds)
637: [14:46:34] <Eliseth> What would be the right way to load a frontend dropdown with dataObject data based on a previous dropdown?
638: [14:47:13] <Pyoook> Eliseth: only one way: ajax.
639: [14:47:36] <Pyoook> achieve that however you wish. Return json, an html fragment, whatevers.
640: [14:47:38] <catcher> Eliseth, previous dropdown == another dropdown on the page?
641: [14:47:47] <Eliseth> catcher: yes
642: [14:48:03] <catcher> Eliseth, what Pyoook said, with his entertaining nick.
643: [14:48:28] <catcher> Eliseth, php can't know about client-side actions unless you ask it with ajax.
644: [14:48:37] <Eliseth> great.... another learning moment, since I know _nothing_ on how to do that :D
645: [14:48:47] <Pyoook> Eliseth: using jquery?
646: [14:48:49] <catcher> Eliseth, jquery makes it pretty easy.
647: [14:48:50] <Pyoook> of course you are.
648: [14:49:10] <Pyoook> $('selector').load('endpoint')
649: [14:49:11] <catcher> Eliseth, you'll need to create a controller action to pass back the data based on the input.
650: [14:49:12] <Pyoook> job done.
651: [14:49:20] <Pyoook> well
652: [14:50:04] <Pyoook> $('previous dropdown').change(function(){$('div to hold next dropdown').load('controller action')})
653: [14:50:09] <Pyoook> job done.
654: [14:50:54] <Eliseth> Right... I'll look into it, since that's all abacadabra to me (for now at least)
655: [14:51:06] <Pyoook> also, don't forget to check the input on the server side on form submission. It would be easy for someone to corrupt input by shuffling IDs with js or something before submitting. Possibly giving them access to stuff they shouldn't have, etc.
656: [14:51:45] <Pyoook> or if it's an order form, trying managing to place an order for company B's product from company A.
657: [14:51:55] <Pyoook> etc
658: [14:58:06] <Eliseth> sooo
659: [14:58:44] <Eliseth> in .load('controller action') I just call the function in my controller that returns the correct list?
660: [14:59:11] <Pyoook> window.location.href + 'myaction'
661: [14:59:14] <Pyoook> ... probably.
662: [14:59:37] <Pyoook> unless you're already in an action, then you'll need to strip it out, or put the base link elsewhere.
663: [14:59:50] <Pyoook> say like data-thispagelink="$Link"
664: [14:59:56] <Eliseth> Trying to find some real world examples... must figure this out with limited knowledge...
665: [15:00:05] <Pyoook> then it would be $('that element').data('thispagelink')
666: [15:00:14] <Pyoook> + 'otherdropdownaction'
667: [15:00:31] <Pyoook> You don't need real world examples, I'm telling you exactly what to do!
668: [15:00:52] <Pyoook> join the dots and you'll have a real world example :>
669: [15:00:56] <Eliseth> And I'm grateful for that... I'm just not far enough to fully understand it :)
670: [15:01:09] <Pyoook> Make work first, understand later! :>
671: [15:01:49] <discorpia> I get undefined method CustomSiteConfig::HeaderImage() when doing this: http://pastebin.com/idCnzxNN
672: [15:02:11] <discorpia> Am I missing something obvious? (I've done build and flush as separate steps)
673: [15:02:47] <discorpia> The build went fine, HeaderImageID was added to the table
674: [15:04:58] <Pyoook> Eliseth: basically: http://pastie.org/9854589
675: [15:05:08] <Pyoook> it will look a bit different when done properly, of course.
676: [15:05:45] <Pyoook> Eliseth: and it will be a bit trickier if you're using SS to build the form (... hmm, I suppose you are)
677: [15:05:54] <Pyoook> but the above should give you the idea
678: [15:06:24] <catcher> discorpia, are you calling it in a static context?
679: [15:06:33] <Eliseth> Yes, SS is building the form
680: [15:06:57] <Pyoook> where site/page/DependencyOptions will return the equiv of <% loop TheOptions% ><option value="$Value">$Title</option><% end_loop %>
681: [15:07:04] <Pyoook> Eliseth: ^
682: [15:07:26] <discorpia> catcher: No, the error shows up when visiting /admin/settings/, and the full error ends with "on line 13" which is the addFieldToTab-line.
683: [15:07:40] <Pyoook> discorpia: it's an extension
684: [15:07:44] <discorpia> catcher: maybe that's not how it's supposed to be done in SS3 site config though
685: [15:07:47] <Pyoook> you're not accessing this, you're accessing the owner
686: [15:07:53] <Pyoook> $this->owner->HeaderThing
687: [15:08:17] <catcher> right, owner
688: [15:08:25] <discorpia> Pyoook: excellent, thanks!
689: [15:11:08] <discorpia> catcher: and thank you as well
690: [15:11:25] <catcher> np
691: [15:13:17] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
692: [15:14:42] * muskie9 has joined #silverstripe
693: [15:14:54] * babak_ quit (Quit: Connection closed for inactivity)
694: [15:20:19] <Eliseth> ...
695: [15:32:00] * Guits has joined #silverstripe
696: [15:36:07] * danbroooks has joined #silverstripe
697: [15:37:38] <danbroooks> can someone help me out getting a framework-only site set up? i want to route everything to one controller but dont seem to be able to get it working.
698: [15:37:52] <danbroooks> how do you set up the routes so that all requests end up at a 'MainController' but urls like '/dev/build' still work?
699: [15:45:53] <kinglozzer> danbroooks: Put your routes inside a block with Name: rootroutes
700: [15:46:17] <kinglozzer> https://gist.github.com/kinglozzer/5122492b3d1483946015
701: [15:46:39] <kinglozzer> Has to be named rootroutes, so it's merged after the dev/build and admin routes
702: [15:46:55] <kinglozzer> (I've tried every combination of Before and After I can think of, but none of them achieved the same thing)
703: [15:47:25] <kinglozzer> merged before* the other routes
704: [15:47:28] <kinglozzer> not after
705: [15:48:33] <Pyoook> o.0
706: [15:48:42] <Pyoook> oh right
707: [15:48:57] <Pyoook> kinglozzer: I think basically just copy the 3.1 default
708: [15:48:59] <Pyoook> PROBLEM SOLVED
709: [15:49:04] <Pyoook> xD
710: [15:49:09] <Pyoook> * ? controller.
711: [15:49:13] <Pyoook> ALL THROUGH CONTROLLER
712: [15:49:15] <kinglozzer> Yeah that's the alternative, duplicate everything :P
713: [15:49:47] * blud has joined #silverstripe
714: [15:50:29] <danbroooks> yeah thats working
715: [15:50:45] <danbroooks> but how do i now get it to route through other URLs?
716: [15:50:47] <danbroooks> like actions
717: [15:50:58] <danbroooks> so if i did '/login' it ran the login method...
718: [15:51:10] <danbroooks> i tried url_handlers, didnt work, and $allowed_actions didnt work either
719: [15:51:24] <Pyoook> because you need both.
720: [15:52:44] <Pyoook> one defines the handlers (and sorta more importantly, the params), the other allows them to be called.
721: [15:55:00] <danbroooks> still isnt working... always runs the index method...
722: [15:55:08] <danbroooks> let me paste my code
723: [15:55:33] <kinglozzer> private static $url_handlers = array(
724: [15:55:33] <kinglozzer> '$Action//$ID/$OtherID' => 'handleAction',
725: [15:55:33] <kinglozzer> );
726: [15:55:35] <kinglozzer>
727: [15:55:37] <kinglozzer> private static $allowed_actions = array(
728: [15:55:38] <danbroooks> http://pastebin.com/m2KWRJRM
729: [15:55:39] <kinglozzer> 'handleAction',
730: [15:55:41] <kinglozzer> 'handleIndex',
731: [15:55:43] <kinglozzer> );
732: [15:55:45] <kinglozzer> lol, my bad
733: [15:56:03] <blud> hello
734: [15:56:11] <blud> is this code valid ? http://www.sspaste.com/paste/show/54c26eda75f56
735: [15:56:32] <blud> I've got an internal server error while i'm trying to add a "reservation"
736: [15:56:37] <danbroooks> was trying that too kinglozzer but $action in the handleAction method was always 'index'
737: [15:57:01] <kinglozzer> blud: Looks fine
738: [15:57:50] <kinglozzer> danbroooks: I dunno, I only ever did it in an internal project - quickly hacked around it by passing every action through index() and just calling return $this->$action();
739: [15:58:06] <danbroooks> thats what im trying to do but in handleAction
740: [15:58:10] <danbroooks> maybe i should just use index
741: [15:58:57] <blud> @kinglozzer, here is my php.log : PHP Fatal error: Call to a member function setTitle() on null in /Applications/MAMP/htdocs/silver/mysite/code/Reservation.php on line 19
742: [15:59:34] <muskie9> blud $fields->dataFieldByName('DepositStatus').....
743: [15:59:44] <kinglozzer> ^^
744: [15:59:47] <blud> :)
745: [15:59:51] <kinglozzer> tabs and ting
746: [16:00:07] <blud> well it seems that the doc is not up to date ;)
747: [16:00:21] <blud> http://doc.silverstripe.org/en/developer_guides/model/scaffolding/
748: [16:01:02] <kinglozzer> danbroooks: I guess you're not passing an $Action parameter, you might need to add that to your routes
749: [16:01:14] <kinglozzer> The built in one is $Action/$ID/$OtherID
750: [16:01:32] <kinglozzer> So '$Action/$ID/$OtherID': 'MyController'
751: [16:01:39] <kinglozzer> Then handleAction should work, maybe
752: [16:01:56] <kinglozzer> just guessing, never tried it :P
753: [16:02:30] <blud> thanks a lot muskie9 and kinglozzer, so each time i'm trying to alter a dataObject scaffolding, i must use that instead of fieldByName right ?
754: [16:02:47] <muskie9> blud, I believe so
755: [16:03:03] <kinglozzer> blud: Pretty much, yeah. fieldByName() tries to look through tabs - so ->fieldByName('Root.DepositStatus') might have worked
756: [16:03:10] <kinglozzer> Or Root.Main.DepositStatus
757: [16:03:23] <kinglozzer> But if you're looking for a data field (hence the method name), use that
758: [16:03:25] <danbroooks> my routes have $Action in the routes.yml and in the url_handlers array, is that not right ?
759: [16:03:51] <danbroooks> sorry yes, as you say above, thats how it's set up right now
760: [16:07:43] <blud> thx you all
761: [16:18:28] * babak_ has joined #silverstripe
762: [16:22:25] * blud quit (Ping timeout: 246 seconds)
763: [16:28:05] * arnhoe quit ()
764: [16:36:27] * jenniferaslan has joined #silverstripe
765: [16:56:54] * Otterpocket has joined #silverstripe
766: [16:57:09] * Otterpocket has left #silverstripe
767: [17:02:40] * danbroooks quit (Ping timeout: 246 seconds)
768: [17:05:56] * Otterpocket has joined #silverstripe
769: [17:08:23] <Otterpocket> How can I chnage the settings of BBCodeParser ?
770: [17:12:45] <kinglozzer> Otterpocket: Depends what settings you want to change, there are config options
771: [17:13:08] <kinglozzer> The @config options here: http://api.silverstripe.org/3.1/source-class-BBCodeParser.html#11-201
772: [17:13:34] <Otterpocket> Actually forget that, I am using subsites and when I try to create a link to the main site it chnages the link to a page on the subsite
773: [17:14:14] <Otterpocket> changes*
774: [17:26:30] <Pyoook> weekend!
775: [17:26:37] * Pyoook quit ()
776: [17:27:14] * Otterpocket quit (Quit: Otterpocket)
777: [17:27:40] * kinglozzer quit ()
778: [17:52:41] * GioVdK has joined #silverstripe
779: [17:54:13] * masnun has joined #silverstripe
780: [17:54:31] <GioVdK> hello
781: [17:55:55] <GioVdK> I'm trying to use a gridfield to "preview" some data from a rest api. I have the data into an array and managed to put it into an ArrayList with each item being an ArrayData but no luck so far :p any hint?
782: [18:07:15] <catcher> GioVdK, I believe you'd need to instantiate an object from a comparable model. GridField requires a model class iirc.
783: [18:12:20] * jcwacky quit (Quit: jcwacky)
784: [18:18:25] <zauberfisch> guys
785: [18:18:27] <zauberfisch> I need your help
786: [18:18:32] <zauberfisch> hitting a wall here
787: [18:18:42] <catcher> zauberfisch, go around the wall
788: [18:18:47] <catcher> zauberfisch, you're welcome.
789: [18:19:04] <zauberfisch> catcher: haha
790: [18:19:05] <zauberfisch> ...
791: [18:19:07] <catcher> You could also consider over.
792: [18:19:21] <zauberfisch> [User Error] Uncaught Exception: Object->__call(): the method 'layoutsectionsmenu' does not exist on 'SectionHolderPage_Controller'
793: [18:22:37] <zauberfisch> oh
794: [18:22:37] <zauberfisch> nvm
795: [18:22:40] <zauberfisch> figured it out
796: [18:22:46] <catcher> zauberfisch, did you opt for around or over?
797: [18:22:57] <catcher> perhaps through?
798: [18:27:22] * GioVdK quit (Ping timeout: 246 seconds)
799: [18:27:58] <zauberfisch> catcher: I always go with the head first, right through the wall
800: [18:40:19] * Colin[pi] has joined #silverstripe
801: [19:27:33] * lerni_ has joined #silverstripe
802: [19:31:54] * terryapodaca has joined #silverstripe
803: [19:32:19] * lerni_ quit (Client Quit)
804: [19:46:16] <DimiStripe> Hi guys, how can i enable sorting on summary field which is done by MyRelationObject.Count ?
805: [19:46:31] <DimiStripe> when i add this field - all sorting functionality disappears
806: [19:46:34] <DimiStripe> 3.1.6
807: [19:46:56] <DimiStripe> my summary fieldlooks like 'ID'=>'ID','MyLikers.Count'=>'LikeCount',"MyOwner.getMyFullName"=>"Author",'Picture.StripThumbnail'=>''
808: [19:47:15] <DimiStripe> and i cant eable sort on 'MyLikers.Count'=>'LikeCount'
809: [19:52:25] <muskie9> DimiStripe is it in ModelAdmin or a GridField on a page
810: [19:52:36] <DimiStripe> model admin
811: [19:56:22] <muskie9> are you setting $default_sort at all
812: [20:01:09] <DimiStripe> nope
813: [20:01:13] <DimiStripe> should i ?
814: [20:03:57] <DimiStripe> oh yeah, sorry
815: [20:04:00] <DimiStripe> private static $default_sort = "Created DESC";
816: [20:04:01] <DimiStripe> got this
817: [20:09:41] <DimiStripe> so , any solution ?
818: [20:14:56] <muskie9> sorry, got side tracked... I've overwritten the getList() function in my ModelAdmin before... might be able to do that and resort it the way you want it to
819: [20:15:21] <muskie9> http://api.silverstripe.org/master/source-class-ModelAdmin.html#214-222
820: [20:15:59] <muskie9> or call in a DataExtension public function updateList() I guess...
821: [20:21:11] <DimiStripe> uff , too difficult :D
822: [20:26:43] * travis-ci has joined #silverstripe
823: [20:26:43] <travis-ci> silverstripe/silverstripe-framework#3927 (3.1 - 97a1cc3 : Daniel Hensby): The build passed.
824: [20:26:43] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/2d3aa0b8f880...97a1cc3e7abc
825: [20:26:43] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/48098121
826: [20:26:43] * travis-ci has left #silverstripe
827: [20:31:31] * GioVdK has joined #silverstripe
828: [20:33:13] <GioVdK> catcher: thanks for your answer. Should I instead just create a table "by hand" instead of using GridField?
829: [20:35:37] <catcher> GioVdK, the decision really depends on your use case. If you need many GridField features, I'd create the model. If you don't, I'd add the custom field to the CMS.
830: [20:36:16] <GioVdK> by custom field you mean the custom grid, right?
831: [20:36:16] <catcher> GioVdK, Might be worth searching for a module that provides a flexible preview field like that. And if it doesn't exist, I could see that being a useful module to create.
832: [20:36:26] <catcher> GioVdK, custom table, yes
833: [20:36:40] * spronk2 has joined #silverstripe
834: [20:37:25] <GioVdK> yep, I'm new with SIlverStripe but I could see that being an useful module
835: [20:38:11] <catcher> GioVdK, there's a *chance* you can get away without the model class if you provide your own $displayFields
836: [20:38:18] <catcher> (using GridField, that is)
837: [20:39:06] <GioVdK> oh, thanks for the hint. I'll try that
838: [20:39:52] <GioVdK> I also had a look at this module in order to avoid having a long list of news in the sitetree (I was thinking of using a data object but then I saw that the search is working against SiteTree): micschk/silverstripe-excludechildren
839: [20:40:54] <catcher> GioVdK, I think you'll be happier in the long run with DataObjects instead. You can add your custom classes to search relatively easily.
840: [20:41:25] <catcher> GioVdK, if you find yourself needing a lot of the Page stuff, take a look at this: https://github.com/arambalakjian/DataObject-as-Page
841: [20:42:50] <GioVdK> thanks. but what are the downsides of keeping them in the SiteTree? Apart from having a very long list of them :p
842: [20:44:00] <catcher> GioVdK, Pages are ultimately DataObjects. So you can either cripple Pages, or extend DataObjects.
843: [20:44:12] <catcher> Extending is almost always smoother in my experience.
844: [20:45:54] <catcher> GioVdK, If you use Pages, you're disabling/avoiding a bunch of built-in functionality, like long sitetree lists, hierarchy stuff, etc.
845: [20:48:09] <GioVdK> Actually I'd keep hierarchy but only until the news level. I was thinking of having a news page with some children (different news categories) and then the news under those pages. But yep, that could just be a category relation with the data object
846: [20:49:26] <catcher> GioVdK, Right. If they don't need to support children, and don't need to display in the SiteTree, they may not really be Pages.
847: [20:50:04] <GioVdK> catcher: so then in the sitetree you'd just put the holder, correct?
848: [20:50:34] * gelignite has joined #silverstripe
849: [20:50:56] <catcher> GioVdK, right. And you can put the GF to manage them directly on the page, or in a modeladmin.
850: [20:51:51] <GioVdK> what do you mean with "directly on the page" ?
851: [20:54:04] <catcher> Add the GF in the holder page's getCMSFields.
852: [20:55:11] * terryapodaca has left #silverstripe
853: [21:03:58] <GioVdK> oh, I see. right.
854: [21:05:04] * spronk2 quit (Quit: spronk2)
855: [21:14:36] * camfindlay has joined #silverstripe
856: [21:19:01] * Colin[pi] quit (Ping timeout: 255 seconds)
857: [21:30:11] * spronk2 has joined #silverstripe
858: [21:32:04] * gelignite quit (Quit: http://bit.ly/nkczDT)
859: [21:37:46] * GioVdK quit (Ping timeout: 246 seconds)
860: [22:09:21] * spronk2 quit (Quit: spronk2)
861: [22:11:53] * spronk2 has joined #silverstripe
862: [22:13:19] * UndefinedOffset quit (Quit: Leaving.)
863: [22:14:30] * camfindlay quit (Quit: camfindlay)
864: [22:25:11] * Shrike_Finland has joined #silverstripe
865: [22:25:40] * spronk2 quit (Quit: spronk2)
866: [22:32:48] * spronk2 has joined #silverstripe
867: [22:39:08] * bemusedrat has joined #silverstripe
868: [22:40:41] * DimiStripe quit (Quit: DimiStripe)
869: [22:41:29] * catcher quit (Quit: Leaving)
870: [22:57:45] * Colin[pi] has joined #silverstripe
871: [23:11:16] * Shrike_Finland quit (Quit: Leaving.)
872: [23:13:06] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
873: [23:13:07] * joelpittet has joined #silverstripe
874: [23:23:53] * r_hector quit (Quit: Leaving.)
875: [23:28:07] * spronk2 quit (Quit: spronk2)
876: [23:43:32] * spronk2 has joined #silverstripe
877: [23:46:02] * Azure quit (Ping timeout: 244 seconds)
878: [23:52:43] * Azure has joined #silverstripe

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