#silverstripe IRC Log

IRC log for 13 March 2015

All timestamps are in UTC.

1: [00:00:52] * UndefinedOffset quit (Quit: Leaving.)
2: [00:07:58] <Stomach> UncleCheese - needs more directories
3: [00:08:05] <UncleCheese> fuck this
4: [00:13:24] * micmania1 has left #silverstripe
5: [00:15:50] * Sticks has joined #silverstripe
6: [00:18:55] * willr has joined #silverstripe
7: [00:19:39] * zippy has low power
8: [00:26:59] * oddnoc quit (Quit: beer:30)
9: [00:30:19] * muskie9_afk is now known as muskie9
10: [00:31:55] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
11: [00:31:55] * Colin[pi] has joined #silverstripe
12: [00:33:10] <Ryan-Toast> zippy: get a bottle of spicy CC
13: [00:33:18] <zippy> ?
14: [00:33:38] <Ryan-Toast> zippy: gets you more power
15: [00:33:48] <zippy> wot?
16: [00:33:51] <zippy> oh
17: [00:33:52] <zippy> :P
18: [00:34:17] <Ryan-Toast> zippy: https://www.danmurphys.com.au/product/DM_794467/canadian-club-spiced-whisky-700ml.jsp;jsessionid=47DEDD083D03EBA003EB20BBE9E0B03D.ncdlmorasp1306?bmUID=kMfx187
19: [00:35:45] * Chix quit (Remote host closed the connection)
20: [00:39:50] * veb quit (Quit: veb-irc: &)
21: [00:53:43] <zippy> Stomach: 3 down after 15 hours for 61 runs
22: [00:53:51] <zippy> hours = overs ;)
23: [00:58:17] <MichalKleiner> I was like.. that's a long game :-D
24: [01:03:20] * Sticks quit (Quit: Leaving)
25: [01:04:31] * spronk2 has joined #silverstripe
26: [01:05:43] * Liquide has joined #silverstripe
27: [01:06:13] <zippy> spronk2: :) hows it
28: [01:06:43] <zippy> jeapers...
29: [01:08:13] <spronk2> oh yknow
30: [01:14:31] * Tanger has joined #silverstripe
31: [01:14:42] * Sticks has joined #silverstripe
32: [01:18:09] * Olliepop has joined #silverstripe
33: [01:18:33] <zippy> 3 runs after 4.2 overs..
34: [01:21:24] <Stomach> zippy - Stomach: 3 down after 15 hours for 61 runs
35: [01:21:28] <Stomach> whats that one
36: [01:21:33] <Stomach> 0.8 RPO so far
37: [01:21:37] <Stomach> excellent strike rate
38: [01:21:37] <zippy> my prediction
39: [01:21:40] <zippy> hehe yeap
40: [01:22:10] <Stomach> more like 3 down for 12 runs after 15
41: [01:24:03] <zippy> :)
42: [01:24:20] <zippy> boult, 2.4 overs, 1 wicket, 0 runs.
43: [01:24:22] <zippy> decent
44: [01:25:10] * veb has joined #silverstripe
45: [01:26:39] * Hailwood quit (Quit: Leaving)
46: [01:30:11] <MichalKleiner> who's making the tea today?
47: [01:31:59] * camfindlay quit (Quit: camfindlay)
48: [01:34:16] * camfindlay has joined #silverstripe
49: [01:38:04] <zauberfisch> I am
50: [01:38:09] <zauberfisch> but I am not sharing it :P
51: [01:39:08] <Stomach> http://stevie.co.nz/zauberfisch.jpg
52: [01:43:14] <zippy> 27-2, 9.4 overs
53: [01:43:19] <zippy> I might not be too far off :)
54: [01:44:07] * willr quit (Quit: willr)
55: [01:48:08] <zippy> jeapers..
56: [01:51:31] <zauberfisch> Stomach: <3
57: [01:51:37] * Olliepop quit (Ping timeout: 246 seconds)
58: [02:03:07] <Tanger> Guten Morgen guys
59: [02:05:35] * Colin[pi] quit (Read error: Connection reset by peer)
60: [02:07:18] <Stomach> hey Tanger
61: [02:08:33] <UncleCheese> fuck, fuck, fuck, fuck magento
62: [02:08:46] <UncleCheese> it's literally the worst thing i've ever seen
63: [02:08:46] * veb quit (Quit: veb-irc: &)
64: [02:09:00] <UncleCheese> and one time i saw a pile of puppies set on fire
65: [02:09:01] <Ryan-Toast> UncleCheese: X-Cart
66: [02:09:19] <UncleCheese> not my choice
67: [02:09:26] <Ryan-Toast> I mean that’s the worst.
68: [02:10:34] * Djelibeybi has left #silverstripe
69: [02:10:51] <Stomach> opencart is great too
70: [02:14:01] <UncleCheese> i seriously just drained 8 hours adding a custom field and setting up a hello,world controller
71: [02:14:06] <UncleCheese> and the fucking contorller doesn't fucking work
72: [02:14:10] <Tanger> UncleCheese: Well…that escalated quickly
73: [02:15:51] * Colin[pi] has joined #silverstripe
74: [02:20:43] * veb has joined #silverstripe
75: [02:21:13] <MichalKleiner> poor UncleCheese.. I know how things like that can get soooo annoying and brainsucking
76: [02:22:18] <Stomach> UncleCheese - just throw some angularjs at it
77: [02:22:19] <Stomach> :P
78: [02:22:42] <spronk2> yeah just put your angular controllers on your node stack
79: [02:22:49] <MichalKleiner> Stomach: that's an advice like if you had a headache go and smash yourself with a hammer
80: [02:23:00] <spronk2> and php your authentication
81: [02:23:04] <spronk2> _b
82: [02:23:07] <MichalKleiner> :-D
83: [02:23:12] <Colin[pi]> UncleCheese: so the horror stories I've heard about it are true?
84: [02:24:51] <UncleCheese> this is UncleCheese's wife typing.. aaron just killed himself after muttering something about "see you in hell, magento"
85: [02:25:04] <Colin[pi]> UC nooooo
86: [02:25:13] <Colin[pi]> ;P
87: [02:26:09] <MichalKleiner> used to be a good guy
88: [02:28:03] * Colin[pi] will be using airbnb for the first time next week
89: [02:34:26] <UncleCheese> YESSSS!!!!!!!!!!!!!
90: [02:34:37] <Colin[pi]> he lives!
91: [02:34:52] <UncleCheese> My http://localhost/fart url just output ASS
92: [02:34:56] <UncleCheese> I WIN!!!!!!!!!!!!!!!
93: [02:35:03] <Colin[pi]> PROJECT FINISHED
94: [02:35:06] <UncleCheese> yup
95: [02:35:12] <UncleCheese> send the invoice
96: [02:35:17] <Colin[pi]> only 8 hours for that?
97: [02:35:24] <Colin[pi]> so quick!
98: [02:35:25] <Colin[pi]> ;D
99: [02:35:29] <UncleCheese> well, to be fair, not many apps have a /fart url
100: [02:35:47] <UncleCheese> on a side note, the SS IRC is pretty kickass
101: [02:35:48] <Colin[pi]> yeah it's more common to see /toot or /parp
102: [02:35:52] <UncleCheese> compared to mangento
103: [02:36:02] <Colin[pi]> mangento, rofl
104: [02:36:03] <UncleCheese> holy shit, what a bunch of elite snobs
105: [02:36:08] <UncleCheese> makes simon look like ghandi
106: [02:36:11] <Colin[pi]> LOL
107: [02:36:45] * Colin[pi] writes magento channel on "do not visit" list
108: [02:37:17] <UncleCheese> right under "Syria" and "the surface of venus"
109: [02:38:09] <Colin[pi]> UncleCheese: so how much of "that took a long time" to you attribute to lack of familiarity, and how much due to "this framework is a steaming dog turd"?
110: [02:38:49] <spronk2> indeed
111: [02:39:03] <spronk2> magento is such a massivepiece of shit
112: [02:39:22] <spronk2> this is pretty good right now
113: [02:39:23] <Stomach> hey Lissa!
114: [02:39:25] <Stomach> oh shes gone :(
115: [02:39:27] <spronk2> cricket and f1 while working
116: [02:45:59] <Colin[pi]> livin the dream spronky
117: [02:47:03] <MichalKleiner> is the oz f1 gp this weekend?
118: [02:47:23] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
119: [02:47:41] <Colin[pi]> MichalKleiner: yep
120: [02:47:47] <Colin[pi]> March 15
121: [02:49:11] <MichalKleiner> I really liked back in Europe that all GPs were either 2pm or 8pm..
122: [02:51:05] <Colin[pi]> dat feel when you swear you've entered the password exactly the same way three times before it's accepted
123: [02:51:22] <spronk2> yeah, instead of 12am :(
124: [02:51:33] * UncleCheese has joined #silverstripe
125: [02:51:39] <spronk2> then again lookslike this year is going to be boring as fuck again with mercedes walking to both titles
126: [02:52:32] <zauberfisch> UncleCheese: haha
127: [02:52:38] <zauberfisch> UncleCheese: magento :D
128: [02:52:47] <UncleCheese> fuck mangento hard
129: [02:52:55] <UncleCheese> i'm on codementor.io now
130: [02:52:58] <Colin[pi]> lol
131: [02:53:04] <MichalKleiner> I used to be fan of Honda when Senna was alive, then McLaren, now Mercedes :)
132: [02:53:07] <MichalKleiner> so ok for me
133: [02:53:13] <MichalKleiner> and yes, it's boring if they dominate so much
134: [02:53:14] <UncleCheese> looking for a greater fool
135: [02:53:26] <Colin[pi]> UncleCheese: y u no answer my question?
136: [02:53:32] <UncleCheese> oh
137: [02:54:00] <UncleCheese> 75% bad documentation
138: [02:54:11] <Colin[pi]> ah, the ol' documentation problem
139: [02:54:20] <Colin[pi]> classic
140: [02:54:28] <UncleCheese> 20% fucked up design pattern
141: [02:54:30] <Colin[pi]> lol
142: [02:54:31] <UncleCheese> 5% me
143: [02:54:38] <Colin[pi]> fair nuff
144: [02:54:58] <Colin[pi]> so it's not a case of "this is not working in an SS way" it's more "this is working in a shitty way"
145: [02:55:10] <Stomach> 5%?
146: [02:55:12] <Stomach> psssht
147: [02:55:14] <Stomach> doubt it
148: [02:55:21] <Stomach> more like 14% and rising
149: [02:55:31] <Stomach> anger levels making angry decisions
150: [02:55:36] <Stomach> with Magento you need to be zen
151: [02:55:41] <Stomach> so zen that you forgot where you are
152: [02:56:31] <MichalKleiner> zend is basically a zen deamon
153: [02:56:35] <Colin[pi]> UncleCheese: http://showmeguides.com/image/data/reviews/magento-inchooers1.jpg
154: [02:57:19] <UncleCheese> wholey fuck
155: [02:57:22] <UncleCheese> that is amazing
156: [02:57:25] <UncleCheese> yes, yes, yes, yes
157: [02:57:28] <Colin[pi]> nailed it?
158: [02:57:41] <UncleCheese> ok, Stomach youwant the gig?
159: [02:57:44] <UncleCheese> i'll sell it to you
160: [03:00:16] <MichalKleiner> beer o'clock is slowly coming
161: [03:00:24] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
162: [03:03:42] <zippy> When I am adding a new object to a has many, in the CMS the page shows the name of the page I am adding it to - however if I check $this->ItemID then it's null.... but if I look in the source code on this page there is a hidden field of ItemID with the value. If I try and use $field = $fields->dataFieldByName('ItemID') then I get a droplist
163: [03:03:59] <zippy> How can I get that ID of the item I am adding the item to, withouth trying to parse the URL
164: [03:07:13] <zippy> $fields must know because it's setting a readonly field with the value of the item name
165: [03:08:26] <zippy> I wonder if something is happening just before the fields are processed, so my getCMSFields is hooking in to late..
166: [03:13:38] * mobiusnz quit (Quit: Leaving.)
167: [03:15:32] <zippy> yea it seems something is changing it from a droplist to a readonly field - and it's working out out magically somehow
168: [03:16:29] <Stomach> UncleCheese - no fucking way man
169: [03:17:19] <Colin[pi]> Stomach: rofl
170: [03:17:31] <UncleCheese> it pays $20k.. all you have to do is make http://localhost/magento/fart output "fuck my life"
171: [03:17:39] <UncleCheese> still not keen?
172: [03:17:41] <Colin[pi]> BWAAHAHA
173: [03:21:44] * willr has joined #silverstripe
174: [03:23:01] <Colin[pi]> willr: wanna help UC out with a little magento?
175: [03:23:05] <Colin[pi]> pays well
176: [03:23:33] <willr> Not if I can avoid it Colin[pl] :P
177: [03:23:40] <Colin[pi]> lol
178: [03:31:48] <zauberfisch> UncleCheese: easy: echo "fuck my life" > fart.html && echo "RewriteRule magento/fart fart.html" >> .htaccess
179: [03:32:04] <UncleCheese> ^ this is awesome
180: [03:32:17] <UncleCheese> wait, let me test it
181: [03:32:50] <UncleCheese> ah, sorry zauberfisch.. the html doesn't validate
182: [03:33:14] <zauberfisch> lul
183: [03:33:22] <zauberfisch> ok, stand by
184: [03:35:50] <zauberfisch> UncleCheese: here you go
185: [03:35:50] <zauberfisch> echo '<!doctype html><meta charset="utf-8"><title>fuck my life</title>fuck my life' > fart.html && sed -i -r "s@(RewriteEngine On)@\1\r\nRewriteRule magento/fart fart.html@" .htaccess
186: [03:36:06] <zauberfisch> even puts the RewriteRule at the correct place to make it work
187: [03:36:07] <UncleCheese> +1 for sex
188: [03:36:09] <UncleCheese> ha!
189: [03:36:15] <UncleCheese> +1 for SED
190: [03:36:16] * mobiusnz has joined #silverstripe
191: [03:36:26] <UncleCheese> but i'm not going to retract my typo
192: [03:36:40] * veb quit (Quit: veb-irc: &)
193: [03:36:45] <zippy> hm.
194: [03:37:29] <Colin[pi]> lol uc
195: [03:37:54] <zippy> So when editing a dataobject which doesn't have a grid on it, GridFieldDetailForm -> ItemEditForm is called, and changes has_one relations (which have a has_many) on the other side to ReadONly
196: [03:37:58] <zauberfisch> UncleCheese: while I am sure you are a most handsome man, I am afraid sex is not included in those 20k
197: [03:38:41] * veb has joined #silverstripe
198: [03:39:49] * willr quit (Quit: willr)
199: [03:42:10] * Ryan-Toast quit (Quit: Ryan-Toast)
200: [03:46:22] * camfindlay quit (Quit: camfindlay)
201: [03:47:36] * veb quit (Quit: veb-irc: &)
202: [03:48:05] * micmania2 quit (Quit: micmania2)
203: [03:49:35] <zippy> so, is it not possible to get the relation id when I am adding a new data object without checking the URL?
204: [03:50:47] * veb has joined #silverstripe
205: [03:50:48] <zauberfisch> UncleCheese: but seriously, using a separate website for static pages is not the most stupid idea actually
206: [03:51:15] <zauberfisch> I have done that in the past. rather run 2 sites than have to deal with the madness of some systems
207: [03:51:29] <UncleCheese> i think it's a pretty good idea
208: [03:51:37] <UncleCheese> less overhead, better caching
209: [03:51:53] <UncleCheese> i guess nginx has changed it a bit
210: [03:53:56] <zauberfisch> there is this thing called "contao", I think its a typo3 fork. I hade to use that once, and I actually wrote a teplate that calls a silverstripe site and just str_replaces the content, so the whole site is managed in silverstripe, just the products are patched into it from that other weird thing
211: [03:54:07] <zauberfisch> (obviously with caching and stuff)
212: [03:54:12] <Tanger> <3 for sed
213: [04:00:06] * joelpittet quit (Remote host closed the connection)
214: [04:00:15] * mobiusnz quit (Quit: Leaving.)
215: [04:01:27] * spronk2 quit (Quit: I may need a longer sleep timer...)
216: [04:10:27] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
217: [04:11:28] * spronk2 has joined #silverstripe
218: [04:11:49] <spronk2> ohhh
219: [04:11:50] <spronk2> i reckon
220: [04:11:52] <spronk2> nz are in trouble.
221: [04:21:29] <spronk2> yep
222: [04:21:32] <spronk2> definitely in trouble
223: [04:21:52] <MichalKleiner> aaaaah yep
224: [04:21:58] <MichalKleiner> not watching it tho
225: [04:22:08] <spronk2> im cricinfoing
226: [04:22:08] <spronk2> :p
227: [04:22:14] <spronk2> 250/5 :S
228: [04:22:38] <spronk2> still 3 overs left, 12 this over so far
229: [04:23:38] <spronk2> yerp
230: [04:23:43] <spronk2> 16 runs off that over
231: [04:24:58] * spekulatius quit (Remote host closed the connection)
232: [04:25:14] <spronk2> at this rate they'll get 300+
233: [04:25:20] <spronk2> and we'll be in for one hell of a chase
234: [04:35:15] * Colin[pi] quit (Ping timeout: 252 seconds)
235: [04:37:27] * Ryan-Toast has joined #silverstripe
236: [04:38:23] * Ryan-Toast quit (Client Quit)
237: [04:39:42] * veb quit (Quit: veb-irc: &)
238: [05:01:56] <MichalKleiner> spronk2: !cricinfoupdate
239: [05:02:44] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
240: [05:03:17] <spronk2> BAN 288/7 (50.0 ov) NZ to bat
241: [05:03:21] * zlinux has joined #silverstripe
242: [05:12:50] * glenn-bautista quit (Quit: Leaving.)
243: [05:19:04] * veb has joined #silverstripe
244: [05:25:15] * spronk2 quit (Quit: I may need a longer sleep timer...)
245: [05:25:47] * Stomach quit (Quit: zzz)
246: [05:30:24] * zlinux_ has joined #silverstripe
247: [05:30:30] * zlinux quit (Ping timeout: 246 seconds)
248: [05:49:35] * veb quit (Quit: veb-irc: &)
249: [06:15:33] * Sticks quit (Quit: Leaving)
250: [06:32:47] * willr has joined #silverstripe
251: [06:32:55] * willr quit (Client Quit)
252: [06:43:59] * r_hector has joined #silverstripe
253: [06:44:11] * veb has joined #silverstripe
254: [06:45:04] * veb quit (Client Quit)
255: [06:50:00] * benjhocking1 has joined #silverstripe
256: [06:50:00] * benjhocking quit (Read error: Connection reset by peer)
257: [06:55:57] * benjhocking1 quit (Read error: Connection reset by peer)
258: [07:10:22] * nontgor quit (Ping timeout: 256 seconds)
259: [07:28:10] * wmk has joined #silverstripe
260: [07:29:02] <wmk> g'morning(ugt)
261: [07:31:57] <zauberfisch> good morning
262: [07:36:33] * Shrike_Finland has joined #silverstripe
263: [07:41:59] <wmk> anyone can give me help with https://github.com/BetterBrief/silverstripe-autocompletefield/ ?
264: [07:47:39] * Stomach has joined #silverstripe
265: [07:56:32] <MichalKleiner> next week
266: [07:56:35] <MichalKleiner> nighy
267: [07:56:37] <MichalKleiner> night
268: [07:56:43] * MichalKleiner is now known as MichalKleiner|aw
269: [07:57:26] * Stomach quit (Read error: Connection reset by peer)
270: [07:57:48] * Stomach has joined #silverstripe
271: [07:58:02] * Stomach quit (Client Quit)
272: [07:58:45] <wmk> zauberfisch, which field is like a dropdown with autocomplete? and works in a modal?
273: [07:58:51] <wmk> any idea?
274: [08:05:05] * Stomach has joined #silverstripe
275: [08:05:13] * r_hector quit (Quit: Leaving.)
276: [08:06:04] <ss-helper> Default upload folder with subsites (Modules: subsites, selectupload) - http://www.silverstripe.org/community/forums/all-other-modules/show/101347
277: [08:09:44] * zippy has joined #silverstripe
278: [08:16:46] * darjus01 has joined #silverstripe
279: [08:18:40] * mobiusnz has joined #silverstripe
280: [08:27:29] * Guits has joined #silverstripe
281: [08:28:54] <darjus01> Hi is anywhere list of all filters for searchableFields function?
282: [08:30:54] <darjus01> found
283: [08:32:19] <Stomach> zippy
284: [08:32:21] <Stomach> :o
285: [08:32:24] <zippy> mmm
286: [08:33:01] <darjus01> if I want make filter field that is textfield and filters dataobject image file names, I need to extend SearchFilter or is other way?
287: [08:33:09] <zippy> Stomach: dont be jinxing it
288: [08:33:23] <Stomach> didnt jinx shit yet :P
289: [08:33:35] <zippy> dont start!
290: [08:33:49] <zippy> http://www.csstyle.io/ interesting
291: [08:36:11] <zippy> ...
292: [08:37:31] <zippy> jeapers
293: [08:37:47] <zippy> least we ahead of the d/l :)
294: [08:40:49] <Stomach> zippy ...
295: [08:41:04] <zippy> ......
296: [08:41:08] <Stomach> dropped
297: [08:41:13] <zippy> mm
298: [08:41:27] <zippy> had it..
299: [08:41:32] <Stomach> this is scary
300: [08:42:28] <zippy> closer than I would like
301: [08:43:35] <zippy> awesome!
302: [08:44:01] <Stomach> yayeah tui catch!
303: [08:44:23] <zippy> damn
304: [08:44:23] * Shrike_Finland quit (Quit: Leaving.)
305: [08:44:29] <Stomach> oh god
306: [08:44:41] <zippy> no williamson today..
307: [08:45:03] <Stomach> no bmc 50 eithe
308: [08:45:04] <Stomach> r
309: [08:45:08] <zippy> mm
310: [08:45:33] <zippy> southee can do it on a good day if he not too much of a tool.... he can smash it
311: [08:46:11] * Stomach quit (Quit: zzz)
312: [08:46:17] <zippy> lol
313: [08:49:53] * Shrike_Finland has joined #silverstripe
314: [08:49:53] * Shrike_Finland quit (Client Quit)
315: [08:50:29] <wmk> !paste darjus01
316: [08:50:29] <ss-helper> darjus01: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
317: [08:51:42] <wmk> should be like 'ImageRelationName.Title'
318: [08:51:57] <wmk> you can search on relation fields
319: [08:53:04] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
320: [08:54:44] * test__ has joined #silverstripe
321: [08:55:23] * kinglozzer has joined #silverstripe
322: [08:57:40] * mobiusnz quit (Quit: Leaving.)
323: [08:58:58] * test__ quit (Ping timeout: 246 seconds)
324: [09:00:47] <Eliseth> morning
325: [09:01:10] * Tanger quit (Quit: exit())
326: [09:01:44] <wmk> hey Eliseth
327: [09:02:20] <Eliseth> When I use a special character in the htmleditor (û, shows as &ucirc; in html source) it comes out as � on the frontend?
328: [09:02:37] <wmk> depends on the font you use?
329: [09:03:01] <Eliseth> Hmm
330: [09:04:58] <Eliseth> Odd, on one page it shows as û (in page source as well). On another page it shows as � (in page source as well)
331: [09:05:47] <darjus01> sorted out :) grid field filters they not depends on searchableFields? because I ?flush but only left side filters works fine and grid filters not
332: [09:06:27] * Stomach has joined #silverstripe
333: [09:07:32] <wmk> yup. left side filter uses $searchable_fields
334: [09:07:37] <kinglozzer> Eliseth: Are the two pages showing content from two different database tables? Might be encoding?
335: [09:08:03] <wmk> Eliseth, some chars are html encode, the others not (maybe some utf-8 thing?)
336: [09:08:53] * swaiba has joined #silverstripe
337: [09:14:03] * marvanni has joined #silverstripe
338: [09:14:07] * Stomach quit (Quit: zzz)
339: [09:15:03] * Werner_2_ has joined #silverstripe
340: [09:15:45] * wmk quit (Ping timeout: 252 seconds)
341: [09:16:07] * Werner_2_ is now known as wmk
342: [09:21:19] <Eliseth> Hmmm, it's not from the database at all. The string from the database is displayed fine
343: [09:21:32] <Eliseth> It's when I format a date with french locale
344: [09:22:05] * Stomach has joined #silverstripe
345: [09:22:50] <wmk> Eliseth, some encoding with format?
346: [09:23:19] <wmk> is the formatting string in a lang yml file? or using inbuilt php function?
347: [09:24:10] <Eliseth> Using $MyDateFromDatabase.Format("H:i") in the template
348: [09:24:28] <Eliseth> Locally it's displayed correctly... maybe it's a server setting
349: [09:26:49] <wmk> Stomach, could you assing this issue to me?
350: [09:27:01] <wmk> with that flag on github?
351: [09:27:07] <Stomach> wmk - I cant assign it unless your a contributer
352: [09:27:08] <Stomach> one sec
353: [09:27:13] <wmk> oh
354: [09:27:20] <wmk> Eliseth, seems sol
355: [09:27:26] <wmk> is the locale set right on the server?
356: [09:27:39] <wmk> is it even installed? using the right encoding?
357: [09:28:16] <Stomach> wmk invited you to collaborate
358: [09:28:28] <Eliseth> yeah, checking not
359: [09:28:30] <Eliseth> *now
360: [09:29:29] * r_hector has joined #silverstripe
361: [09:30:01] <wmk> Stomach, is this only possible on a per organisation basis?
362: [09:30:27] * GioVdK has joined #silverstripe
363: [09:30:41] <Stomach> yeah you have to be part of the organisation then get access to specific sub repos
364: [09:30:56] <wmk> ok...
365: [09:31:08] <Stomach> and i cant even add you as an assignee yet
366: [09:31:10] <Stomach> sigh.
367: [09:31:52] <Stomach> there we go
368: [09:31:54] <Stomach> got it
369: [09:31:57] <Stomach> that was complex
370: [09:32:53] <Eliseth> Locale is set on the server
371: [09:33:10] <wmk> Stomach, settings -> collaborators -> add...
372: [09:33:52] <Stomach> that was complex I only have "create new team"
373: [09:34:08] <wmk> as it's not a personal repo but a organisation repo?
374: [09:34:13] <Stomach> yeah
375: [09:34:17] <wmk> oh, then...
376: [09:34:19] <Stomach> i guess so
377: [09:34:37] <Stomach> added you as "external" team and assigned you to the repo though
378: [09:34:45] <elgabbu> gd morning guys ... is it possible to have an UploadField in a widget's getCMSFields
379: [09:37:08] <wmk> Eliseth, sounds like a character encoding setting...
380: [09:37:17] <wmk> is the locale set as @utf-8 ?
381: [09:37:27] <Eliseth> ye
382: [09:37:46] <Eliseth> I'll just dig a bit deeper...
383: [09:37:55] <wmk> be careful
384: [09:37:56] <Eliseth> Must be in one of the functions or something
385: [09:40:45] <elgabbu> wouldn't seem to be possible ... https://github.com/silverstripe/silverstripe-widgets/issues/20
386: [09:40:54] <elgabbu> i get the same error as these people
387: [09:42:14] <Eliseth> Had to use utf8_encode function on strftime()
388: [09:42:31] <wmk> elgabbu, hmm, looks like a traditional error
389: [09:44:16] * Stomach quit (Quit: zzz)
390: [09:44:44] * marvanni quit (Quit: marvanni)
391: [09:45:25] <elgabbu> wmk what do you mean by traditional error
392: [09:46:10] <wmk> quite old (2012)
393: [09:46:36] <elgabbu> mmm
394: [09:49:51] * Stomach has joined #silverstripe
395: [09:49:53] * Guits quit (Ping timeout: 240 seconds)
396: [09:56:09] * Guits has joined #silverstripe
397: [10:03:01] * Stomach quit (Quit: zzz)
398: [10:08:11] * Pyfadiok has joined #silverstripe
399: [10:15:52] <wmk> hey Pyfadiok
400: [10:16:58] <Pyfadiok> Morgen wmk :)
401: [10:17:36] <wmk> is there a setting for mysqldump to make one line per table row?
402: [10:17:41] <wmk> so i can grep for something?
403: [10:17:49] <Pyfadiok> :<
404: [10:17:52] <Pyfadiok> Not that I'm aware of.
405: [10:18:00] <wmk> want to see if in any htmlfield i used a special shortcode
406: [10:18:05] <Pyfadiok> but isn't that what mysql client is for?
407: [10:18:22] <wmk> ?
408: [10:18:26] <wmk> like heidi?
409: [10:18:27] * arnhoe has joined #silverstripe
410: [10:18:52] <Pyfadiok> Select * from table where htmlfield like '%[shortcode]%';
411: [10:20:14] <wmk> i have a bunch of htmlfields all over the different dataobjects
412: [10:20:57] <Pyfadiok> oic
413: [10:34:53] <swaiba> wmk: +1 for heidi
414: [10:35:29] <Pyfadiok> klum?
415: [10:36:08] <swaiba> Pyfadoik: http://www.heidisql.com/
416: [10:36:26] <wmk> should have a look at it.
417: [10:36:26] <Pyfadiok> oooh
418: [10:36:42] <wmk> atm i try mysqldump --tab=./ to get single files for each table
419: [10:37:20] <swaiba> should be easy...
420: [10:37:46] <swaiba> Export SQL, Directory - "one file per object"
421: [10:38:02] * Sander has joined #silverstripe
422: [10:38:12] <swaiba> heidi is great, you can also export to a local DB for downloading a db without the intermeadiate file
423: [10:38:42] <Pyfadiok> I pipe for that :P
424: [10:38:50] <Pyfadiok> mysqldump | mysql
425: [10:38:52] <Pyfadiok> :P
426: [10:39:23] <Sander> Hey guys. I've upgraded a site from 2.4 to 3.1 . Problem is, the urls are wrong. They should be for example : '.site.com/single-step-machines/' , but are shown as 'site.com/woodworking-machinery/single-step-machines/
427: [10:39:45] <Pyfadiok> you didn't update from 2.4 then!
428: [10:39:50] <Pyfadiok> 2.3 perhaps
429: [10:39:53] <Pyfadiok> probably 2.2
430: [10:39:59] <Sander> aah
431: [10:40:04] <Sander> 2.3.4
432: [10:40:07] <Pyfadiok> otherwise the solution should probably be obvious
433: [10:40:18] <Pyfadiok> but the answer is, config
434: [10:40:20] <Pyfadiok> yaml
435: [10:40:30] <Pyfadiok> SiteTree: enable_nested_urls: false
436: [10:40:41] <Sander> Oh thanks man, ill try that
437: [10:40:50] <Pyfadiok> (but formatted correctly and checked to see I got the spelling/option correct)
438: [10:41:17] <Pyfadiok> also, it's not wrong, it's reflecting your structure in the cms.
439: [10:41:41] <Pyfadiok> Just depends on what you want.
440: [10:41:42] <Pyfadiok> :>
441: [10:42:44] <Sander> Damn does not seem to work. Inside of the 2.3 CMS it seems you can edit the url all the way, instead of just the current page part
442: [10:42:48] <Sander> If you get what i mean
443: [10:43:03] <Pyfadiok> sorta.
444: [10:43:07] <Pyfadiok> but no.
445: [10:43:55] <Pyfadiok> show me your config
446: [10:44:11] <wmk> Sander, normally the old url should fallback /redirect to the new nested url
447: [10:44:37] <Pyfadiok> wmk: is upgrade, there is no 'old' url I think
448: [10:44:47] <Sander> its a 2.3 upgrade
449: [10:44:57] <Sander> Pyfadiok: You want to see the yml or php config?
450: [10:45:06] <Pyfadiok> Sander: well there shouldn't be any php config.
451: [10:45:11] <Pyfadiok> :>
452: [10:45:13] <Pyfadiok> !paste
453: [10:45:13] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
454: [10:45:24] <wmk> !paste Pyfadiok
455: [10:45:25] <ss-helper> Pyfadiok: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
456: [10:45:35] * zlinux_ quit (Ping timeout: 252 seconds)
457: [10:45:44] <Pyfadiok> !paste wmk
458: [10:45:45] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
459: [10:45:55] <Pyfadiok> :<
460: [10:46:42] <Sander> http://www.sspaste.com/paste/show/5502bf7c3c4d3
461: [10:46:54] <Sander> I should mention the website uses Translatable
462: [10:47:02] <Pyfadiok> Sander: I said to check it!
463: [10:47:16] <Pyfadiok> http://api.silverstripe.org/3.1/source-class-SiteTree.html#281-287
464: [10:47:27] <wmk> Sander, environment type goes to _ss_environment.php
465: [10:47:29] <Pyfadiok> it's not enable_nested_urls, it's just nested_urls
466: [10:47:48] <wmk> like db config
467: [10:48:26] <Pyfadiok> but otherwise yeah, that looks right
468: [10:48:42] <Pyfadiok> Sander: what does the _config.php look like?
469: [10:49:10] <Pyfadiok> There should be next to nothing in there (only default things, and maybe fulltextsearchable::enable() if you use search)
470: [10:49:15] <Sander> Hey man, it worked when I changed it to nested_urls . I shouldve checked the api doc of course..
471: [10:49:20] <Pyfadiok> :)
472: [10:49:25] <Pyfadiok> cool, I'm happy
473: [10:49:55] <Sander> well my database, ss environment is in config.php, and actaully also the set locale, which probably should be in the yml..
474: [10:50:13] <Pyfadiok> well
475: [10:50:17] <Pyfadiok> depends on your version of ss3
476: [10:50:34] <Sander> 3.1.9
477: [10:50:54] <Sander> Thanks alot though, this site is such a pain!
478: [10:57:06] * Werner_2_ has joined #silverstripe
479: [10:57:14] * wmk quit (Read error: No route to host)
480: [10:57:17] * r_hector quit (Quit: Leaving.)
481: [10:59:22] * Sander quit (Ping timeout: 246 seconds)
482: [11:01:15] * zlinux has joined #silverstripe
483: [11:04:07] * arnhoe quit (Remote host closed the connection)
484: [11:12:51] * arnhoe has joined #silverstripe
485: [11:19:30] * slievr has joined #silverstripe
486: [11:19:51] <slievr> hello
487: [11:20:57] <Pyfadiok> hello
488: [11:21:21] <slievr> is there anyway to get an DataObject as ArrayList rather than DataList, as I would like to merge 2 together
489: [11:21:38] <ss-helper> content-blocks and subsite integration - http://www.silverstripe.org/community/forums/all-other-modules/show/101348
490: [11:22:49] <slievr> is that ss-helper new? I've never seen that before
491: [11:23:46] <Pyfadiok> yeh, it is.
492: [11:23:49] <Pyfadiok> and yeah, there is.
493: [11:24:10] <Pyfadiok> although I think you're probaly just looking for ->merge()
494: [11:24:38] <slievr> yeah
495: [11:24:39] <Pyfadiok> if that's not available on datalist, then just ArrayList::create(Thing::get()->toArray())
496: [11:24:47] <slievr> I just can't use merge on Datalist
497: [11:25:11] <Pyfadiok> check api, there might be a convenience method. But I think you'll need to ddo the above small example
498: [11:28:51] <slievr> couldn't find anything in the api that returned a Arraylist.
499: [11:29:04] <slievr> but that works great
500: [11:36:48] * zlinux quit (Ping timeout: 264 seconds)
501: [11:46:39] * NETim_ has joined #silverstripe
502: [11:47:29] <NETim> Morning, how would I get the SiteTreeURLSegmentField to fire its suggest() function when another field is completed?
503: [11:50:49] * NETim_ quit (Ping timeout: 246 seconds)
504: [11:51:43] <ss-helper> Changing the _resampled folder - http://www.silverstripe.org/community/forums/general-questions/show/101349
505: [12:03:11] * MrGuits has joined #silverstripe
506: [12:06:10] * Guits quit (Ping timeout: 256 seconds)
507: [12:15:53] * Guits has joined #silverstripe
508: [12:18:15] * MrGuits quit (Ping timeout: 246 seconds)
509: [12:24:10] * UndefinedOffset has joined #silverstripe
510: [12:28:28] * arnhoe quit (Remote host closed the connection)
511: [12:36:55] * PigeonFriend quit (Ping timeout: 256 seconds)
512: [12:44:49] * bemusedrat has joined #silverstripe
513: [12:54:19] * swaiba quit (Ping timeout: 244 seconds)
514: [12:56:41] * swaiba has joined #silverstripe
515: [13:04:49] <NETim> anyone? SiteTreeURLSegmentField suggest function?
516: [13:12:33] * arnhoe has joined #silverstripe
517: [13:19:04] <swaiba> NETim : by calling the same / modified code for update as in cms\javascript\SiteTreeURLSegmentField.js ?
518: [13:25:46] * Azure quit (Ping timeout: 265 seconds)
519: [13:30:33] * catcher has joined #silverstripe
520: [13:34:22] * arnhoe quit (Remote host closed the connection)
521: [13:36:41] * arnhoe has joined #silverstripe
522: [13:41:36] * arnhoe quit (Ping timeout: 264 seconds)
523: [13:42:35] * travis-ci has joined #silverstripe
524: [13:42:36] <travis-ci> dhensby/silverstripe-framework#275 (pulls/model-admin-import-naming - 791a846 : Daniel Hensby): The build has errored.
525: [13:42:36] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/pulls/model-admin-import-naming
526: [13:42:36] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/54243487
527: [13:42:36] * travis-ci has left #silverstripe
528: [13:46:09] * travis-ci has joined #silverstripe
529: [13:46:10] <travis-ci> dhensby/silverstripe-framework#276 (pulls/model-admin-import-naming - 13cec2e : Daniel Hensby): The build has errored.
530: [13:46:10] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/791a846fbf20...13cec2ee8199
531: [13:46:10] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/54243678
532: [13:46:10] * travis-ci has left #silverstripe
533: [13:53:28] * Azure has joined #silverstripe
534: [13:56:58] * PigeonFriend has joined #silverstripe
535: [13:57:08] * PigeonFriend is now known as dhensby
536: [14:02:32] <dhensby> kinglozzer: :) https://github.com/silverstripe/silverstripe-framework/pull/3799
537: [14:04:24] * muskie9 has joined #silverstripe
538: [14:07:07] <dhensby> kinglozzer: ok, I think that the only thing remaining is deprecating as of 3.2 not as of 4. the deprecation param is about when to warn, not when it'll be removed. I don't know when you'd ever want to put a version that wasn't the current one, tbh... Other than to be able to see it was in 3.1 vs 3.2?
539: [14:08:23] * catcher quit (Quit: Leaving)
540: [14:08:24] * travis-ci has joined #silverstripe
541: [14:08:25] <travis-ci> dhensby/silverstripe-framework#277 (master - b2afc9f : Damian Mooyman): The build passed.
542: [14:08:25] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/a86ed93759b9...b2afc9fb5204
543: [14:08:25] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/54243821
544: [14:08:25] * travis-ci has left #silverstripe
545: [14:08:39] * joelpittet has joined #silverstripe
546: [14:10:15] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
547: [14:18:20] * gordon has joined #silverstripe
548: [14:18:20] * gordon is now known as nontgor
549: [14:22:09] * muskie9 has joined #silverstripe
550: [14:22:33] * Todd_ has joined #silverstripe
551: [14:25:45] <Todd_> Good morning all. I was wondering if anyone has had success turning off relative URLs in TinyMCE using the insert link form? We have a client using subsites and she wants to link to a form displayed from a news article displayed on all subsites. We are attempting to insert the absolute link using the 'external' option, but it is always converted to relative when Insert is selected. The same happens if editing the raw HTML as wel
552: [14:26:44] * travis-ci has joined #silverstripe
553: [14:26:45] <travis-ci> dhensby/silverstripe-framework#278 (3 - 319b96b : Damian Mooyman): The build was fixed.
554: [14:26:45] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/14a897a1b05e...319b96b48b08
555: [14:26:45] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/54244153
556: [14:26:45] * travis-ci has left #silverstripe
557: [14:27:23] <dhensby> Todd_: you'll have to look at the shortcode parser I think
558: [14:27:48] <dhensby> SS will be searching the submitted Content for URLs and turning them into shortcodes (if it thinks it can)
559: [14:28:34] <dhensby> Might be worth opening an issue on the subsites module about this as it sounds like something subsites should be dealing with out of the box? - https://github.com/silverstripe/silverstripe-subsites/issues/new
560: [14:29:33] <Todd_> It doesn't happen when the page is saves, it seems to be converting URLs in the client (browser) without going to to server. I thought it would be in the JS related to TinyMCE or the link form.
561: [14:29:37] <Todd_> I agree
562: [14:30:32] <dhensby> Todd_: I'd be very surprised if it was happening client side...
563: [14:30:51] * dhensby takes a look
564: [14:32:01] <dhensby> Todd_: I stand corrected
565: [14:32:02] <dhensby> odd
566: [14:32:10] <dhensby> I think this is a TinyMCE issue... MAYBE....
567: [14:32:27] <Todd_> I was to, but saw no network traffic when the 'Insert Link' button was selected. Just looking for an interim solution to keep the client happy and buying coffee for me. I tried to modify the HTML editor and set relative_urls to false, but no luck there either.
568: [14:33:00] <Todd_> HTML Editor Config*
569: [14:33:06] * dhensby looks at custom tinymce code
570: [14:33:13] <dhensby> Todd_: that would have been my next thought
571: [14:33:50] <Todd_> Also cleared the overly aggressive Chrome cache (many times) to ensure I wasn't caching JS locally.
572: [14:33:57] <dhensby> ok, i think it's called sslink
573: [14:36:12] <Pyfadiok> $('.urlsegment').suggest()
574: [14:36:13] <Pyfadiok> [13:04] <NETim> anyone? SiteTreeURLSegmentField suggest function?
575: [14:36:35] <Pyfadiok> NETim: ^
576: [14:36:53] <Pyfadiok> pretty simples.
577: [14:36:54] <Pyfadiok> :>
578: [14:38:37] <dhensby> Todd_: it definitely relies on "mceInsertLink" command so I think that's responsible
579: [14:39:03] <Pyfadiok> NETim: or $('.urlsegment').entwine('ss').suggest() - something like that
580: [14:39:04] * catcher has joined #silverstripe
581: [14:39:33] <Pyfadiok> NETim: suggest a readup on entwine :>
582: [14:39:41] <Pyfadiok> kinglozzer wrote an intro.
583: [14:39:49] <Pyfadiok> or https://github.com/hafriedlander/jquery.entwine
584: [14:40:17] <Todd_> dhensby: Ahh, I was looking at the HtmlEditorField.js, the line after the '// Turn into relative' comment. I'll check out the mceInsertLink as well
585: [14:40:39] <Pyfadiok> http://takeaway.bigfork.co.uk/a-beginners-introduction-to-using-entwine-in-silverstripe
586: [14:40:39] * headtrip has joined #silverstripe
587: [14:42:54] <dhensby> Todd_: it's already relative by then: mceInsertLink
588: [14:43:04] <dhensby> * https://dl.dropbox.com/u/3429338/Clippings/2015-03/2015-03-13_14-42-45_lGBORLAVEn.png
589: [14:43:34] * Kolin quit (Ping timeout: 245 seconds)
590: [14:44:05] * auto9 has joined #silverstripe
591: [14:45:20] * Kolin has joined #silverstripe
592: [14:45:34] <Todd_> dhensby: great, I missed that! At least I have a trail now. Back to work...
593: [14:46:00] * travis-ci has joined #silverstripe
594: [14:46:01] <travis-ci> dhensby/silverstripe-framework#280 (pulls/absolute-url-fix - 3ac8832 : Daniel Hensby): The build has errored.
595: [14:46:01] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/40e0723e2095...3ac88329b7fa
596: [14:46:01] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/54246301
597: [14:46:01] * travis-ci has left #silverstripe
598: [14:46:04] <kinglozzer> dhensby: https://github.com/silverstripe/silverstripe-framework/pull/3799. Want me to change all the deprecation notices to 3.2?
599: [14:47:10] <dhensby> Todd_: I am confused. when I get a break and go up the call stack I see fuunctions execuuting that I also have break points on, but those break points never... break...
600: [14:49:34] * joelpittet quit (Remote host closed the connection)
601: [14:51:10] <dhensby> Todd_: proof it's TinyMCE - https://dl.dropbox.com/u/3429338/Clippings/2015-03/2015-03-13_14-51-00_hupMUAHY1O.png
602: [14:51:22] <Todd_> dhensby: I'm seeing the same behaviour
603: [14:52:07] <dhensby> I got it working now - i tried "google.com" then tried one on the same domain again and it seemed to work... caching maybe? who knows?
604: [14:52:28] * darjus01 quit (Ping timeout: 246 seconds)
605: [14:53:10] <Todd_> If you don't mind me asking what was the fix?
606: [14:54:57] <Pyfadiok> right. Seems I gotta go see the cops about getting my licence back before they dispose of it :<
607: [14:55:11] <Pyfadiok> good weekend folks.
608: [14:55:13] * Pyfadiok quit ()
609: [14:56:18] <dhensby> Todd_: I haven't fixed it... it's just clear that TinyMCE's source is responsible for making the link relative
610: [14:57:06] * muskie9 quit (Read error: Connection reset by peer)
611: [14:57:27] * muskie9 has joined #silverstripe
612: [15:00:17] <Todd_> Ok, I was confused. I'll dig into it... after lunch :-)
613: [15:00:18] <nontgor> work in progress documenting my updated version of the Mappable module. Importing OSM data https://github.com/gordonbanderson/Mappable/blob/docs/docs/en/OpenStreetMap.md
614: [15:04:43] * Todd_ quit (Ping timeout: 246 seconds)
615: [15:09:17] <dhensby> kinglozzer: yes, all to 3.2
616: [15:34:57] * dhensby quit ()
617: [15:37:29] <ss-helper> Heavy relationship – what to do? - http://www.silverstripe.org/community/forums/general-questions/show/101350
618: [15:41:23] * joelpittet has joined #silverstripe
619: [15:56:25] * Werner_2_ is now known as wmk
620: [15:56:55] <wmk> nontgor, you could make your map shortcode using shortcodable
621: [15:57:23] <nontgor> if I knew what shortcodable was.... do explain :)
622: [15:57:39] <wmk> https://github.com/sheadawson/silverstripe-shortcodable
623: [15:57:52] <wmk> a module for inserting shortcodes in tinymce with a gui
624: [15:58:14] <wmk> just converting a bunch of shortcodes to use it, so my editor can easier insert them
625: [15:58:46] <nontgor> wmk: Interesting, thanks
626: [15:59:16] <wmk> the docs seem to be good... have to dig into it
627: [15:59:46] <nontgor> *adds to list of modules to look at*
628: [15:59:54] <wmk> hehe...
629: [15:59:56] <wmk> i know that
630: [16:00:38] <wmk> so with poilayerextension i could use my existing location objects to be layerable?
631: [16:01:38] * joelpittet quit ()
632: [16:02:02] <nontgor> wmk: The PoiLayerExtension is for points of interest only. If you want likes of KML you will need the MapLayersExtension (may have typoed the names slightly)
633: [16:02:23] <wmk> well, i have an existing "Location" object that implements mappable
634: [16:02:32] <nontgor> I haven't tested it without the MapExtension also being used though
635: [16:02:34] <nontgor> k
636: [16:02:39] <wmk> ok
637: [16:02:47] <wmk> the bermuda screenshot is funny
638: [16:02:54] <nontgor> :)
639: [16:03:02] <nontgor> easy maths...
640: [16:03:25] <nontgor> without the MapExtension you will need to create a method to render the map with layers
641: [16:03:51] <wmk> ok, it's on the list of modules i have to look into ;)
642: [16:04:10] <nontgor> I simply add the MapExtension to anything I want to be location aware, Lat, Lon, Zoom added, and editable interface in the Location tab
643: [16:04:35] <wmk> also good...
644: [16:04:46] <wmk> but mappable is still about the interface?
645: [16:04:49] <nontgor> one line of config, done :)
646: [16:05:21] <nontgor> wmk: I couldn't see any way to enforce an interface from an extension so I check for the extension of the mappable interface being used when rendering
647: [16:05:39] <wmk> there is...
648: [16:05:51] <nontgor> ah ok :)
649: [16:05:59] <nontgor> in both cases I know Lat,Lon and Zoom are available
650: [16:07:28] <wmk> hmmm
651: [16:08:00] <wmk> isMappableClass($class) return $class instanceof Mappable || $class->hasExtension('aasdfsdf')
652: [16:08:17] <wmk> unfortunately Object doesn't have a hasInterface method
653: [16:08:23] <wmk> kinglozzer, worth a PR?
654: [16:09:13] <kinglozzer> wmk: ClassInfo::class_implements('ClassName', 'InterfaceName')?
655: [16:11:30] <nontgor> wmk: Probably been over a year since I last looked at it, not fresh enough to revisit now. Want to get docs done :)
656: [16:18:30] <nontgor> my computer wouldn't boot from post lunch until 17:30, too hot....
657: [16:20:05] * Guits quit (Ping timeout: 250 seconds)
658: [16:24:03] <wmk> kinglozzer, can i see with this if my class or an extension of my class has implemented the interface?
659: [16:24:41] <wmk> so if i extend my DataObject e.g. with a MappableExtension that implements the interface...
660: [16:26:20] <kinglozzer> wmk: You mean MyDataObject has an extension MappableExtension that implements an interface, you want to check if MyDataObject implements the interface? You'll have to manually loop over extensions I think
661: [16:26:45] <wmk> so some MyDO->hasInterface() would be a thing?
662: [16:27:00] <wmk> similar to ->hasMethod()
663: [16:27:01] <nontgor> wmk: May not be the most efficient but works, I'll have another look over the weekend http://sspaste.com/paste/show/55030f251debf
664: [16:28:41] <wmk> nontgor, ClassInfo::class_implements($extension, 'Mappable') could be the same
665: [16:29:15] <nontgor> noted
666: [16:30:32] <wmk> where does $class->implementsInterface('Mappable') come from? ReflectionClass?
667: [16:30:51] <wmk> then $extension instanceof 'Mappable' would be the same afaik?
668: [16:30:58] <wmk> and maybe faster
669: [16:32:28] <nontgor> wmk: Mental focus elsewhere and I don't remember my though processes when I wrote that
670: [16:32:37] <nontgor> wmk: Probably found an example somewhere
671: [16:33:09] <wmk> ok
672: [16:33:19] <wmk> nevermind
673: [16:33:24] <nontgor> wmk: I need to test the module on a clean install of SilverStripe as well, currently testing in an install with lots of modifications and modules
674: [16:33:48] <wmk> do you have unittests?
675: [16:35:07] <nontgor> as many as UncleCheese had :-P
676: [16:35:15] <wmk> oh
677: [16:35:26] * wmk is looking at unclecheese
678: [16:35:58] <wmk> it's a great experience running unit tests the first time
679: [16:36:08] <nontgor> wmk: Only recently learned how to do them when I tweaked the comments module to add threading. Agree there is scope for testing functions that I've added
680: [16:36:14] <wmk> even refactor the code to be testable
681: [16:36:40] <wmk> split out simple functions that do one thing really good
682: [16:37:53] <nontgor> wmk: I've already refactored the original Mappable module heavily with a view to being able to switch the mapping back end (e.g. use Leaflet instead of Google)
683: [16:38:23] <wmk> well, that's just the rendering engine
684: [16:38:29] <wmk> though it's a good idea
685: [16:46:33] <wmk> bbl
686: [16:47:47] * swaiba quit (Remote host closed the connection)
687: [16:51:08] <zauberfisch> then there is the tag field or something
688: [16:51:22] * wmk quit (Ping timeout: 272 seconds)
689: [17:01:01] * muskie9 is now known as muskie9_afk
690: [17:21:33] * kinglozzer quit ()
691: [17:24:22] * muskie9_afk is now known as muskie9
692: [17:31:43] * NETim quit (Ping timeout: 246 seconds)
693: [17:33:13] * Guits has joined #silverstripe
694: [17:35:40] * muskie9 is now known as muskie9_afk
695: [17:37:48] <ss-helper> Re: Date sorting problem - http://www.silverstripe.org/community/forums/data-model-questions/show/100785#post400711
696: [17:42:47] <nontgor> wmk: Docs branch rebased and now on 3.1 https://github.com/gordonbanderson/Mappable/
697: [17:43:35] * wmk has joined #silverstripe
698: [17:52:50] <ss-helper> Re: Placeholder text on UserDefinedForm - http://www.silverstripe.org/community/forums/form-questions/show/101338#post400712
699: [18:01:40] * gelignite has joined #silverstripe
700: [18:02:42] * GioVdK quit (Ping timeout: 246 seconds)
701: [18:05:23] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
702: [18:23:11] * bemusedrat quit (Quit: Leaving)
703: [18:27:30] * muskie9_afk is now known as muskie9
704: [18:41:43] * headtrip quit (Quit: (null))
705: [18:55:52] * willmorgan has joined #silverstripe
706: [18:55:53] * willmorgan quit (Client Quit)
707: [18:56:23] * Pyrmnk has joined #silverstripe
708: [19:06:20] <wmk> hmm...
709: [19:06:32] <wmk> good evening Pyrmnk
710: [19:22:44] <wmk> did something change how $url_handlers is interpreted?
711: [19:23:00] <wmk> i have some kind of urlslug, but it breaks normal action
712: [19:43:33] <catcher> Anyone have a clever way to convert xml to arraylist?
713: [19:43:37] <catcher> Or am I looping?
714: [19:47:00] <wmk> ArrayList::create(Convert::xml2array($xml))
715: [19:47:25] <wmk> catcher, ^^
716: [19:48:08] <catcher> wmk, killer, thanks. Do you know if it behaves with simplexml?
717: [19:48:50] <wmk> nope. only know that the function exists...
718: [19:48:50] <wmk> public static function xml2array($val) {
719: [19:48:51] <wmk> $xml = new SimpleXMLElement($val);
720: [19:48:51] <wmk> return self::recursiveXMLToArray($xml);
721: [19:48:51] <wmk> }
722: [19:49:23] <wmk> just wondered "there might be a method for converting xml to array"
723: [19:49:37] <wmk> the little magic of silverstripe ;)
724: [19:50:15] <catcher> wmk, worth a go anyway, thanks
725: [19:50:45] <wmk> it seems to utilize SimpleXML
726: [19:51:59] <catcher> It'll be silly to convert from simplexml to xml, so I can use the existing method that does the opposite, but oh well.
727: [19:52:09] <catcher> Maybe I can get vanilla xml in the first place.
728: [19:52:58] <wmk> catcher, http://api.silverstripe.org/3.1/class-Convert.html#_recursiveXMLToArray ??
729: [19:53:27] <catcher> wmk, yeah, that could work otherwise
730: [19:53:30] <catcher> skip the conversion
731: [19:53:35] <wmk> argh protected
732: [19:53:40] <wmk> *bump*
733: [19:53:43] <catcher> ah, haha
734: [19:54:00] <catcher> probably more efficient for me to request plan xml in the first place anyway.
735: [19:54:32] <wmk> wow, that code seems old
736: [19:54:33] <wmk> protected static function recursiveXMLToArray($xml) {
737: [19:54:33] <wmk> if(is_object($xml) && get_class($xml) == 'SimpleXMLElement') {
738: [19:55:07] <wmk> why not just recursiveXMLToWhatever(SimpleXMLElement $xml) ???
739: [19:56:22] * mobiusnz has joined #silverstripe
740: [19:58:02] <catcher> wmk, is there a useful else?
741: [19:58:08] <catcher> I could just look at the code, but that'd be much less fun.
742: [19:58:40] <wmk> well, it seems to accept xml as string also
743: [19:58:49] <wmk> no,
744: [19:58:51] <wmk> dunno
745: [19:59:02] * wmk thinks its too late for today
746: [19:59:13] * mobiusnz quit (Client Quit)
747: [19:59:17] <wmk> pi day is coming and i have to get up at 9:26
748: [20:04:30] <catcher> what is pi day?
749: [20:05:28] <wmk> 3/14/15
750: [20:08:43] * UndefinedOffset quit (Quit: Leaving.)
751: [20:18:48] * UndefinedOffset has joined #silverstripe
752: [20:18:53] <catcher> of course
753: [20:21:19] * UndefinedOffset quit (Client Quit)
754: [20:23:01] <wmk> feels kinda historic
755: [20:27:56] * Stomach has joined #silverstripe
756: [20:54:50] * Pyromanik has joined #silverstripe
757: [20:57:31] <Pyromanik> ah sorry wmk
758: [20:57:34] <Pyromanik> afk :M
759: [20:58:36] <wmk> got it working somehow
760: [20:59:29] <Pyromanik> :)
761: [20:59:58] <wmk> there is no "there is just one param only" possibilty for url_handlers?
762: [21:01:05] <wmk> somehow /show/1/ was catched by "$Slug!", then it threw a 404 (cannot handle sub-urls of a Foo_Controller Object)
763: [21:01:16] <Pyromanik> also wmk pi day sounds cool... if you do american dates :<
764: [21:01:35] <wmk> hehe, read it somewhere, it's really cool
765: [21:01:48] <wmk> a friend of mine maybe gets his baby this weekend
766: [21:01:52] <wmk> it's about time
767: [21:02:17] <Pyromanik> cool :>
768: [21:04:17] <catcher> what type of object is a template variable that came from an ArrayData?
769: [21:04:38] <catcher> I need to run a custom string type conversion on it.
770: [21:04:58] <wmk> whatever returns a string or has a forTemplate() method
771: [21:05:29] <catcher> xml -> json -> arraylist(arraydata)
772: [21:05:47] <catcher> more accurately, xml -> json -> array -> arraylist(arraydata)
773: [21:06:25] <catcher> the nesting is all correct, now I just need to run a custom string transformation on the final values.
774: [21:07:35] <Pyromanik> wmk, I think it depends on order of url_handlers
775: [21:08:09] <Pyromanik> and that slug was coming before your definition
776: [21:08:12] <Pyromanik> or something
777: [21:08:17] <Pyromanik> It confuses me too :<
778: [21:08:29] <Pyromanik> I remember it being all rather confusing when I was creating it.
779: [21:08:30] * Stomach quit (Quit: zzz)
780: [21:10:22] <catcher> Looks like it's just a string. Is it possible to add a custom string function?
781: [21:11:57] <catcher> Though general string functions aren't applicable via templates anyway.
782: [21:15:08] <wmk> any chance to do the converting on the array?
783: [21:17:12] * travis-ci has joined #silverstripe
784: [21:17:13] <travis-ci> silverstripe/silverstripe-framework#4433 (3 - b9283fb : Daniel Hensby): The build passed.
785: [21:17:13] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/319b96b48b08...b9283fbc06c4
786: [21:17:13] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/54303626
787: [21:17:13] * travis-ci has left #silverstripe
788: [21:22:15] <catcher> wmk, trying to avoid it if possible, but I can't think of any other options.
789: [21:22:35] <catcher> wmk, recursive function to alter the leaves at any level, but not branches
790: [21:24:54] * muskie9 is now known as muskie9_afk
791: [21:25:09] <wmk> making objects out of the leaves sounds like an overkill
792: [21:25:23] <wmk> but calling getFormatted($Foo) isn'T possible?
793: [21:26:48] <wmk> Pyrmnk, is coffee a the-me ...? (pun)
794: [21:27:57] <catcher> wmk, recursively though
795: [21:28:39] <catcher> $array[key1] = NeedsConversion, $array[key2][val1] = NeedsConversion
796: [21:29:09] <catcher> Oh, I think I see what you're saying.
797: [21:29:29] <wmk> dunno if getFormatted() is cached when called with different params? shouldn't
798: [21:29:38] <wmk> so a controller method could be possbile
799: [21:30:58] <wmk> I'd go with the recoursive function.
800: [21:31:20] <wmk> then you can cache the ready-to-use arraylist
801: [21:32:13] <catcher> wmk, yeah, the whole point of this is custom caching, so I may as well go all the way.
802: [21:43:29] * muskie9_afk is now known as muskie9
803: [21:53:59] <Pyromanik> 10pm, bored outta my mind. Must be time for bed or something.
804: [21:54:02] <Pyromanik> ciao
805: [21:54:04] * Pyromanik quit (Quit: Leaving)
806: [22:02:50] * muskie9 is now known as muskie9_afk
807: [22:03:26] * muskie9_afk is now known as muskie9
808: [22:09:57] <Pyrmnk> так, привет
809: [22:13:41] * wmk quit (Ping timeout: 250 seconds)
810: [22:14:06] * muskie9 is now known as muskie9_afk
811: [22:16:36] <Pyrmnk> и спокойной ночи
812: [22:22:39] * catcher quit (Quit: Leaving)
813: [22:22:40] * muskie9_afk is now known as muskie9
814: [22:30:49] * travis-ci has joined #silverstripe
815: [22:30:50] <travis-ci> silverstripe/silverstripe-cms#1142 (3.1.11 - c238e1e : Damian Mooyman): The build passed.
816: [22:30:50] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.11
817: [22:30:50] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/53608713
818: [22:30:50] * travis-ci has left #silverstripe
819: [22:33:06] * muskie9 is now known as muskie9_afk
820: [22:43:44] * Stomach has joined #silverstripe
821: [22:58:09] * Stomach quit (Quit: zzz)
822: [22:58:30] * Stomach has joined #silverstripe
823: [23:07:45] * Stomach quit (Quit: zzz)
824: [23:15:28] * muskie9_afk is now known as muskie9
825: [23:17:02] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
826: [23:24:44] * Stomach has joined #silverstripe
827: [23:25:37] * spronk2 has joined #silverstripe
828: [23:37:20] * simon_w has joined #silverstripe
829: [23:44:41] * Stomach quit (Quit: zzz)
830: [23:50:59] * spronk2 quit (Quit: I may need a longer sleep timer...)

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