#silverstripe IRC Log

IRC log for 6 March 2014

All timestamps are in UTC.

1: [00:00:02] <Ryan-Toast> yes
2: [00:00:03] <Colin[pi]> IT'S HAPPENING
3: [00:00:07] <Colin[pi]> right now ;)
4: [00:00:08] <Colin[pi]> lol
5: [00:00:11] <Colin[pi]> why? :(
6: [00:00:13] <Ryan-Toast> haha, guts for you man
7: [00:01:43] <Desperate> good night guys i'm signing out
8: [00:01:46] <Desperate> thanks for your help
9: [00:01:52] <Desperate> [again!]
10: [00:06:05] * Bollig|DesignCty has joined #silverstripe
11: [00:07:46] <antmas> how I feel with Sharepoint today http://i.kinja-img.com/gawker-media/image/upload/t_original/lbz72dbccpyldkuqaljh.gif
12: [00:13:02] * antmas quit (Quit: Page closed)
13: [00:13:27] * antmas has joined #silverstripe
14: [00:14:10] <Colin[pi]> fuck I'm a retard.. I set up two additional linodes because I needed unique IPs for SSL... when I could have added additional IPs to my other linode
15: [00:14:19] <spronk> LULZ
16: [00:14:25] <Colin[pi]> :C
17: [00:14:35] <zippy___> :)
18: [00:14:41] <Colin[pi]> additional IP, $1/month, additional linode, $20
19: [00:14:44] <Colin[pi]> ffffuuuuu
20: [00:14:48] * howardgrigg has joined #silverstripe
21: [00:14:52] <Colin[pi]> can be changed though ;)
22: [00:15:10] <zippy___> I wish they're have a sydney location
23: [00:15:18] <zippy___> nz would be better, but I guess would have to settle for sydney
24: [00:15:36] <zippy___> Tokyo is no closer latency wise than CA
25: [00:16:07] <antmas> zippy___: who for?
26: [00:16:19] <zippy___> linode
27: [00:16:23] <Colin[pi]> zippy: yea, I used the Tokyo data center
28: [00:16:58] <Colin[pi]> mammoth is prolly the linode equiv here: https://www.mammoth.net.au/
29: [00:17:38] <antmas> ah
30: [00:17:50] <antmas> lol
31: [00:17:57] <zippy___> half the ram and much less data...
32: [00:18:01] <antmas> somone sent me a fax request for a portaloo hire
33: [00:18:02] <antmas> wtf
34: [00:18:03] <Colin[pi]> straya!!
35: [00:18:58] * howardgrigg quit (Ping timeout: 240 seconds)
36: [00:20:24] <Stomach> antmas - I've downloaded wikipedia way too many times now
37: [00:20:40] <Stomach> its used a lot in search analysis and research
38: [00:21:11] <antmas> really?
39: [00:21:13] <antmas> cray
40: [00:22:51] <Colin[pi]> can i get it on floppy disk?
41: [00:23:53] <Stomach> probably
42: [00:24:00] <Stomach> download it and put it on floppy disk
43: [00:24:17] <Colin[pi]> "insert disk 20891 of 51200"
44: [00:26:05] <Ryan-Toast> Can you use $Top in a nested loop?
45: [00:26:32] <Ryan-Toast> hmm, doesn't look like you can
46: [00:26:51] <simon_w> Ryan-Toast, you can
47: [00:26:59] <Ryan-Toast> A loop within a loop?
48: [00:27:04] <simon_w> Just remove that the scope stack changes when you use an include
49: [00:27:06] <simon_w> Yes
50: [00:27:08] <Ryan-Toast> Trying to get the parent $Pos
51: [00:27:23] <simon_w> $Top takes you out of all the loops, so there's no $Pos
52: [00:27:29] <Ryan-Toast> Damn.
53: [00:27:37] <zippy___> Ryan-Toast: $Up ?
54: [00:27:38] <simon_w> Do you want $Up.Pos?
55: [00:27:44] <simon_w> Or $Top.Sort?
56: [00:28:04] <Ryan-Toast> Up! Perfect :) cheers, guys.
57: [00:29:24] <Ryan-Toast> tonight I shall master the double backflip, or post embarrassing videos of me failing.
58: [00:36:04] * babak quit (Quit: Connection closed for inactivity)
59: [00:38:31] <zippy___> Most excellent
60: [00:39:28] <zippy___> SiteTree::enable_nested_urls()
61: [00:39:34] <antmas> I should really take one of these PCs home
62: [00:39:36] <zippy___> isn't this default in ss3.0+
63: [00:39:43] <antmas> to make a media centre
64: [00:39:47] <antmas> or steam streamer
65: [00:42:32] <antmas> has anyone tried streaming steam games between pcs?
66: [00:49:14] * antmas quit (Quit: Page closed)
67: [00:49:43] * antmas has joined #silverstripe
68: [00:53:19] <spronk> uughhh vodafone
69: [00:53:21] <spronk> 01-Mar-2014 2:00am Changed account type to Naked Broadband Play from Mega Naked for the "..." account
70: [00:53:23] <spronk> 15-Nov-2013 2:31pm The scheduled change of account type for the login '...' has been removed at the users request.
71: [00:53:23] <spronk> 15-Nov-2013 2:31pm Queued a change of account type from Mega Naked to Naked Broadband Play for the "..." account.
72: [00:54:09] <antmas> lol
73: [00:54:18] <antmas> those package names sound pretty hot
74: [00:54:32] <antmas> MEGA NAKED
75: [00:58:36] * UncleCheese has joined #silverstripe
76: [00:58:40] <Colin[pi]> I'll show you my BROADBAND if you show me yours
77: [01:00:36] <antmas> speaking of ISPs, what's a good router for VDSL?
78: [01:00:50] <antmas> need something that will do fine with loads of HD streaming etc
79: [01:01:00] * mobiusnz1 has joined #silverstripe
80: [01:01:02] * mobiusnz quit (Read error: Connection reset by peer)
81: [01:04:28] <zippy___> would be nice if Microsoft just did silent browser updates like chrome
82: [01:04:44] <Ryan-Toast> they do now, don't they?
83: [01:05:51] <spronk> antmas: something draytekky or fritzboxy
84: [01:06:06] <spronk> antmas: irogue_ will be able to recommend somethign :p
85: [01:08:26] <Colin[pi]> jesus what a bitch: http://www.smh.com.au/world/us-teen-rachel-canning-sues-parents-for-living-expenses-college-20140306-hvgbq.html
86: [01:10:01] <antmas> spronk: nice
87: [01:10:08] <antmas> irogue_: any thoughts?
88: [01:11:20] <antmas> Colin[pi]: crazy
89: [01:11:40] <antmas> looks like a sorority girl too
90: [01:11:52] <Colin[pi]> stuck up little entitled bitch
91: [01:12:01] <Colin[pi]> this stuff scares the shit out of me as a dad lol
92: [01:12:53] <antmas> Colin[pi]: do you have a girl?
93: [01:13:01] <Colin[pi]> no, boy ;)
94: [01:13:45] <antmas> same here
95: [01:13:48] <antmas> thank fuck lol
96: [01:14:07] <Colin[pi]> lol
97: [01:14:42] <Colin[pi]> yeah he's still young, this age is good, the most he is concerned about now is how much Minecraft I'll play with him before bed
98: [01:15:15] <antmas> awesome
99: [01:15:17] <antmas> how old?
100: [01:15:20] <Colin[pi]> 7
101: [01:15:42] * howardgrigg has joined #silverstripe
102: [01:15:42] <antmas> nice, mine's only 18 months :P
103: [01:16:20] <Colin[pi]> ohh, you'll be going through the 2's and 3's soon... YAY :\
104: [01:16:35] <antmas> hahah
105: [01:16:39] <antmas> already feel that way now
106: [01:17:26] * zippy___ is mid 4's…. and one that is T-2 months....
107: [01:17:46] <antmas> ah man
108: [01:17:50] <antmas> CAN'T WAIT
109: [01:17:57] <Colin[pi]> it can be tough, they think "hey, you did everything for me when I was little, why do I need to do anything beeatch?"
110: [01:18:09] <antmas> lol
111: [01:18:13] <Colin[pi]> combined with no control over their emotions ;)
112: [01:18:34] <Colin[pi]> but then they become little people and are awesome
113: [01:18:47] <antmas> at the moment, everything is like " you like your shoulder flesh? IMA BITE THAT TILL IT BLEEEEEDS!"
114: [01:18:55] <Colin[pi]> haha
115: [01:18:57] <Colin[pi]> tasty
116: [01:19:19] <antmas> little shit drew blood outa me at 3am this morning o.O
117: [01:19:20] <antmas> lol
118: [01:19:57] <Colin[pi]> yeah and their teeth are like razor blades at that age
119: [01:19:59] * howardgrigg quit (Ping timeout: 240 seconds)
120: [01:21:18] <antmas> YES
121: [01:21:50] <antmas> zippy___: wait, one is on the way in 2 months?
122: [01:22:00] <zippy___> yes
123: [01:22:12] <zippy___> two kids!!! zomg….
124: [01:22:34] <antmas> congrats!
125: [01:22:57] <Colin[pi]> congrats zippy
126: [01:24:19] <zippy___> thanks
127: [01:24:41] <zippy___> not here yet… still gota wait for him to go down the slip and slide
128: [01:24:44] <Ryan-Toast> Missus had a late period last month and I was freaking out.
129: [01:25:01] <Colin[pi]> LOL
130: [01:25:03] <Colin[pi]> I know that feel
131: [01:25:22] <Ryan-Toast> I've never been so happy at a bleeding person in my life.
132: [01:25:28] <antmas> Ryan-Toast: hahaha
133: [01:25:42] <antmas> I was at work when I got the news
134: [01:25:57] <antmas> freaked out and told work I had to go home because we got burgled lol
135: [01:25:57] <Ryan-Toast> Were you all "I must go now, my people need me"
136: [01:26:01] <antmas> no idea why I did that
137: [01:26:05] <Colin[pi]> lol
138: [01:27:50] <zippy___> antmas: in a sense, it's true. Your time and money will forever not be yours
139: [01:28:06] <antmas> zippy___: oh yeah
140: [01:32:21] <antmas> zippy___: not bad timing on your part, one will be at school soon
141: [01:32:33] <antmas> we're *planning* the same thing
142: [01:33:07] <zippy___> I do wonder if we left it till to long
143: [01:33:31] <zippy___> but after the first one…. you really wonder why people have more than 1 kid
144: [01:33:39] <antmas> yup
145: [01:33:45] <antmas> boy? girl?
146: [01:33:52] <Colin[pi]> lol
147: [01:33:53] <zippy___> will have one of each flavour
148: [01:34:02] <zippy___> latest will be a boy
149: [01:34:30] <zippy___> I told the wife atleast with two kids we have some redundancy
150: [01:34:41] <Colin[pi]> zippy: my friend's sister has 6 boys, one born each year for the past 6 years
151: [01:34:46] <Colin[pi]> I'm like.... dude
152: [01:34:48] <zippy___> jezus
153: [01:34:49] <Colin[pi]> are you nuts?
154: [01:34:59] <Colin[pi]> wear a freakin condom
155: [01:35:09] <antmas> jesus
156: [01:35:11] <antmas> nuts
157: [01:35:28] <antmas> zippy___: RAID them together
158: [01:40:11] <zippy___> :)
159: [01:40:26] <zippy___> Is there a icon/gif pack of icons can use in the cms, for the site tree?
160: [01:42:49] <Ryan-Toast> zippy__: http://p.yusukekamiyamane.com/
161: [01:42:57] * UncleCheese quit (Quit: UncleCheese)
162: [01:43:11] * UncleCheese has joined #silverstripe
163: [01:44:26] <antmas> +1 for Fugue Icons
164: [01:46:40] <antmas> yay
165: [01:46:46] <antmas> company wide update to IE10 finally
166: [01:47:11] * UncleCheese quit (Client Quit)
167: [01:48:53] <antmas> simon_w I'm guessing this would be alright? https://www.snappernet.co.nz/product/dv2860n%2b I know nothing of these things really
168: [01:50:07] <simon_w> antmas, nor do I. Ask irogue_
169: [01:51:43] <antmas> :P irogue_ prolly isn't around
170: [01:52:40] <zippy___> vhcoei
171: [01:57:16] <antmas> oh Fiddler, you sae me so maaay tarms!
172: [01:57:22] <zippy___> woah...
173: [01:57:36] <simon_w> Uh oh, falling asleeps
174: [01:57:38] <zippy___> in the CMS, if you click a link on the preview browser, it loads that page in the CMS
175: [02:01:28] * antmas quit (Ping timeout: 245 seconds)
176: [02:04:19] * Tanger has joined #silverstripe
177: [02:16:27] * antmas has joined #silverstripe
178: [02:16:40] * howardgrigg has joined #silverstripe
179: [02:18:46] <antmas> jebus, Draytek can get expensive :O
180: [02:21:29] * howardgrigg quit (Ping timeout: 265 seconds)
181: [02:22:25] <zippy___> yes, it's not really for the home...
182: [02:23:06] <antmas> I'd be happy spending something upwards of $300 maybe?
183: [02:23:08] <antmas> at the most
184: [02:23:25] <zippy___> fritzbox?
185: [02:23:47] <zippy___> my only complait with that is some bull shit power saving mod which reduces the power on the wifi
186: [02:23:48] <antmas> will check em out
187: [02:24:05] <antmas> zippy___: can it not be turned off? or scheduled?
188: [02:24:07] <zippy___> you can get free with snap
189: [02:24:12] <zippy___> antmas: nope
190: [02:26:01] <antmas> zippy___: really? I'm with snap :D
191: [02:26:38] <zippy___> they're also a fibre providor for around here
192: [02:27:23] <antmas> zippy___: yeah, not at my host
193: [02:27:25] <antmas> home*
194: [02:27:30] <antmas> only VDSL our place
195: [02:27:36] <antmas> at*
196: [02:27:40] <zippy___> yea that'dbe fine, I notice no difference
197: [02:28:05] <antmas> I just need more throughput
198: [02:28:10] <antmas> with netflix and all
199: [02:30:24] <spronk> the drayteks are pretty spensive
200: [02:30:42] <spronk> i have a 2710n for adsl and its fantastic
201: [02:32:34] * antmas_ has joined #silverstripe
202: [02:33:18] <antmas_> zippy___: you on vdsl?
203: [02:33:27] <zippy___> fibre
204: [02:33:41] <antmas_> zippy___: what are your speeds like?
205: [02:34:12] <zippy___> mm like vdsl :)
206: [02:34:22] <zippy___> but it's cheaper then vdsl
207: [02:34:23] * antmas quit (Ping timeout: 245 seconds)
208: [02:34:49] <antmas_> zippy___: much better than adsl though, right?
209: [02:35:02] <zippy___> yes it's better than adsl
210: [02:35:43] <antmas_> I need to upgrade
211: [02:35:45] <antmas_> :P
212: [02:37:05] <zippy___> I should signup to netflix
213: [02:37:21] <antmas_> zippy___: do it, it's awesome
214: [02:37:49] <antmas_> zippy___: use https://www.getflix.com.au/
215: [02:39:13] <zippy___> ta, will look ito
216: [02:40:41] <antmas_> was watching 4k netflix stream the other day at a friends place
217: [02:40:48] <antmas_> was jelly
218: [02:44:28] <Colin[pi]> I'll be laughing at you all when I have my awesome NBN!!! OH WAIT
219: [02:45:13] * antmas_ quit (Ping timeout: 245 seconds)
220: [02:45:58] <zippy___> Ryan-Toast: If I had a div which contains an h1, span, and then a couple of p tags. I want to select the first p tag - but :first-child doesn't work as expect. Is there a way to say, find me the first elemet of type X inside this element?
221: [02:46:30] <ss23> zippy___: http://reference.sitepoint.com/css/selectorref
222: [02:46:33] <Ryan-Toast> div.class p:first-child()hero:derp
223: [02:46:48] <Ryan-Toast> [herp:derp]**
224: [02:46:58] <Ryan-Toast> {herp:derp}
225: [02:47:06] <Ryan-Toast> silly irc changing my text
226: [02:47:29] <ss23> zippy___: :first-of-type
227: [02:47:33] <ss23> zippy___: CSS3 only
228: [02:47:38] <Ryan-Toast> ss23: he doesn't need that
229: [02:47:45] <ss23> WHY NOT?
230: [02:47:45] <Ryan-Toast> and it's not as widely supported.
231: [02:47:57] <ss23> div.class p:first-child()hero:derp
232: [02:48:03] <ss23> um
233: [02:48:11] <ss23> oic
234: [02:48:11] <Ryan-Toast> div.class p:first-child{hero:derp}
235: [02:48:14] <ss23> I misinterpreted
236: [02:48:15] <ss23> yeah
237: [02:48:25] <ss23> I thought it worked the "find first child of div"
238: [02:48:34] <ss23> ...
239: [02:48:35] <ss23> of p
240: [02:48:36] <ss23> I mean
241: [02:48:37] <ss23> FUCK
242: [02:48:41] <Ryan-Toast> My IRC kept changing the words ><
243: [02:49:03] <zippy___> it sounds like find the first-child under p
244: [02:49:10] <ss23> mm
245: [02:49:44] <zippy___> and because it's not working, made me question it
246: [02:49:57] <Ryan-Toast> zippy___: It's not
247: [02:51:06] * antmas has joined #silverstripe
248: [02:51:12] <Ryan-Toast> i.e: http://jsfiddle.net/h8Nr2/
249: [02:51:58] <zippy___> Ryan-Toast: http://jsfiddle.net/ULzAT/
250: [02:52:00] <Ryan-Toast> If the p tag isn;'t the first thing, you will need a first-of-type like ss23 said though
251: [02:52:07] <zippy___> yea
252: [02:52:11] <ss23> lol
253: [02:52:12] <ss23> ...
254: [02:52:15] <zippy___> thats where I am hitting the snag
255: [02:52:27] <zippy___> ss23: you were right, brownies for you
256: [02:52:31] <ss23> ^.^
257: [02:52:32] * ss23 spins
258: [02:53:12] <zippy___> ah I wrapped it in another div, so I get better support
259: [02:53:18] <Ryan-Toast> what're you doing with the first paragraph?
260: [02:53:44] <zippy___> making it blink
261: [02:53:49] <Ryan-Toast> Lol
262: [02:53:55] <zippy___> is that still in?
263: [02:54:05] <zippy___> and lime color
264: [02:54:22] <zippy___> just tweaking the style a littel
265: [02:57:17] * antmas thinks about ss23 security site
266: [02:57:24] <ss23> wat
267: [02:57:25] <ss23> o.o
268: [02:57:33] <antmas> what's the link again?
269: [02:57:41] <ss23> Which one? :O
270: [02:57:57] <antmas> whatever that site was that had the amaze design
271: [02:58:00] <antmas> lime green :D
272: [02:58:09] <ss23> oh, uh
273: [02:58:18] <ss23> http://php.ss23.geek.nz/
274: [02:58:19] <ss23> this?
275: [02:58:20] <ss23> :D
276: [02:58:26] <antmas> YES
277: [02:58:27] <ss23> http://php.ss23.geek.nz/2011/01/12/Using-crypt.html gives more fuller
278: [02:58:28] <antmas> :D
279: [02:58:29] <ss23> :D
280: [03:01:52] <antmas> I should pester Snap to give me a fritzbox
281: [03:02:46] <zippy___> antmas: yeap, you might have to update your terms / re-sign on for another year or two
282: [03:02:50] <ss23> They'll do it, for money!
283: [03:02:51] <ss23> :D
284: [03:02:58] <zippy___> but, it's one of the better isps
285: [03:03:36] <antmas> zippy___: yeah, I said I'd upgrade to VDSL if they give me one :D
286: [03:05:11] * howardgrigg has joined #silverstripe
287: [03:12:47] <Ryan-Toast> Anyone know why my upload field looks like this? http://i.imgur.com/wdX0uMJ.jpg
288: [03:15:31] <Colin[pi]> faulty css?
289: [03:15:51] <Ryan-Toast> I haven't touched the css.
290: [03:16:05] <Colin[pi]> which browser?
291: [03:16:09] <Ryan-Toast> chrome
292: [03:16:14] <Colin[pi]> mmm
293: [03:16:19] <Colin[pi]> did you try in another browser?
294: [03:16:39] <Ryan-Toast> Nah, will donow.
295: [03:16:56] <ss23> faulty css?
296: [03:17:20] <Colin[pi]> yeah I thought it might be css that is working in one browser but not another
297: [03:17:41] <Colin[pi]> the file input fields are all different implementations (which has always frustrated me)
298: [03:21:43] <Ryan-Toast> Nah, fucked in all browsers. deleted cmd and replaced it with a fresh version. Still fucked.
299: [03:21:51] <Colin[pi]> eek
300: [03:22:13] <ss23> running dev or stable SS?
301: [03:22:16] <ss23> Might be broken!
302: [03:23:02] <Ryan-Toast> Fixed it, never mind
303: [03:23:13] <Ryan-Toast> Had an extension that was doing some weird shit
304: [03:23:17] <Colin[pi]> ah ha!
305: [03:23:53] <ss23> yay
306: [03:24:27] <zippy___> must be, nap time
307: [03:25:33] <Colin[pi]> lol read that as "fap time"
308: [03:25:56] <Colin[pi]> cursed eyes, I must be going blind from too much napping
309: [03:28:46] <Ryan-Toast> today's my Friday, yaya
310: [03:29:29] <zippy___> Colin[pi]: The eyes see what the mind whats it to see
311: [03:29:44] <Colin[pi]> :D
312: [03:29:49] <Colin[pi]> OGC
313: [03:42:25] * antmas quit (Quit: Page closed)
314: [03:46:11] * mojo5000 has joined #silverstripe
315: [03:46:21] <mojo5000> hey hey party people
316: [03:46:39] <mojo5000> anyone home? quick q regarding modeladmin
317: [03:47:01] <mojo5000> $summary_fields - how to make more than the default columns sortable?
318: [03:48:39] <simon_w> mojo5000, only database columns are sortable
319: [03:48:59] <mojo5000> i mean i've got a gridfield
320: [03:49:03] <mojo5000> within a modeladmin
321: [03:49:13] <mojo5000> and the 'name' field column for example
322: [03:49:27] <mojo5000> show asc/desc arrow sorters in the field header
323: [03:49:43] <mojo5000> i want to show this for other columns
324: [03:49:46] <mojo5000> dig? :)
325: [03:49:59] <simon_w> Yes, and only database columns are sortable
326: [03:50:04] <mojo5000> http://stackoverflow.com/questions/13391071/silverstripe-modifying-gridfieldconfig-in-modeladmin-to-add-sortable-headers
327: [03:50:13] <mojo5000> The 'Answer' doesn't appear to work.
328: [03:50:44] <mojo5000> all my fields are in the db...
329: [03:51:16] <mojo5000> and it works fine for my 'name' column, for example
330: [03:51:28] <mojo5000> i don't quite get what yr saying if you could elaborate
331: [03:52:18] <mojo5000> i'm using 'setFieldSorting' on a GridFieldSortableHeader
332: [03:53:06] <simon_w> How are you calling that?
333: [03:54:11] <mojo5000> // Configures which column headers are sortable.
334: [03:54:13] <mojo5000> $gridField->getConfig()->getComponentByType('GridFieldSortableHeader')
335: [03:54:13] <mojo5000> ->setFieldSorting(array(
336: [03:54:13] <mojo5000> 'WeaponType' => 'WeaponType.Name'
337: [03:54:15] <mojo5000> ));
338: [03:54:17] <mojo5000> return $form;
339: [03:54:30] <mojo5000> i don't know if my array values are off or...?
340: [03:54:49] * Ryan-Toast has left #silverstripe
341: [03:55:32] <simon_w> You can only sort by things in the SELECT clause. Weapon.Name isn't
342: [03:55:40] <simon_w> Nor is WeaponType.Name
343: [03:56:04] <mojo5000> what do you mean?
344: [03:56:08] <mojo5000> i've got a modeladmin
345: [03:56:17] <mojo5000> underneath the hood it is calling all weapons
346: [03:56:29] <mojo5000> and either it is a wildcard
347: [03:56:47] <mojo5000> or because i've put in summary_fields i assume it adds those to the select
348: [03:57:07] <mojo5000> and very clearly, i can sort by weapon name just fine
349: [03:57:18] <mojo5000> within the gridfield within the modeladmin
350: [03:57:43] <mojo5000> my clicking on arrows next to the 'Name' column header
351: [03:58:00] <mojo5000> if i do not use summary_fields
352: [03:58:23] <mojo5000> it picks the first 2 fields, name and description just fine
353: [03:58:29] <mojo5000> and allows ordering for both
354: [03:58:35] <mojo5000> so the capability is there
355: [03:58:39] <simon_w> No, adding them to summary_fields doesn't add things to the select
356: [03:59:15] <mojo5000> how is it retrieving those fields?
357: [03:59:21] <simon_w> The only things in the SELECT are the $db fields and the has_one ID fields
358: [03:59:35] <simon_w> $obj->WeaponType()->Name
359: [03:59:53] <simon_w> The GridField is built from DataObjects, not a raw SQL result
360: [04:00:29] <mojo5000> ...and underneath the hood it IS SQL
361: [04:00:33] <mojo5000> anyways
362: [04:00:51] <mojo5000> so i have a collection of DataObjects
363: [04:01:12] <mojo5000> with fields in $db fields
364: [04:01:25] <mojo5000> private static $db = array(
365: [04:01:25] <mojo5000> 'Name' => 'Varchar',
366: [04:01:25] <mojo5000> 'Description' =>'Text' ,
367: [04:01:27] <mojo5000> 'Power' => 'float',
368: [04:01:29] <mojo5000> 'Vitality' => 'float',
369: [04:01:31] <mojo5000> 'CriticalStrike' => 'float',
370: [04:01:33] <mojo5000> 'AttackSpeed' => 'float',
371: [04:01:35] <mojo5000> 'Focus' => 'float',
372: [04:01:37] <mojo5000> 'Fury' => 'float',
373: [04:01:39] <mojo5000> 'Defense' => 'float',
374: [04:01:41] <mojo5000> 'LifeLeech' => 'float',
375: [04:01:43] <mojo5000> 'Stamina' => 'float',
376: [04:01:45] <mojo5000> 'Block' => 'float',
377: [04:01:47] <mojo5000> );
378: [04:02:28] * mojo5000 has joined #silverstripe
379: [04:02:32] <mojo5000> um
380: [04:02:38] <mojo5000> was i rude?
381: [04:02:41] <simon_w> Flooding is bad :p
382: [04:02:53] <ajmitch_> don't paste lots in channel
383: [04:02:59] <mojo5000> ok
384: [04:03:00] * robert___ is now known as robert_
385: [04:03:13] <mojo5000> i was just presenting code as an example
386: [04:03:19] <mojo5000> are you the moderator?
387: [04:03:25] <simon_w> Yes, use a pasting service
388: [04:03:30] <mojo5000> are you a ss employee?
389: [04:03:34] <simon_w> No
390: [04:03:47] <mojo5000> but you are an ss expert?
391: [04:03:55] <simon_w> I've been called that
392: [04:03:59] <mojo5000> sry - just want to get context
393: [04:04:16] <mojo5000> so to help solve my problem, sry i'm just not quite getting what yr saying
394: [04:04:37] <simon_w> The field you're trying to sort on is WeaponType.Name, correct?
395: [04:04:38] <mojo5000> the fact that i SEE the functionality to sort a gridfield column by name
396: [04:04:50] <mojo5000> lets even just make it simple, no relationship
397: [04:05:04] <simon_w> No relationships can be sorted
398: [04:05:10] <mojo5000> just Weapon.Power, for instance
399: [04:05:14] <mojo5000> it is a float
400: [04:05:22] <mojo5000> er sry
401: [04:05:26] <mojo5000> Weapon->Power
402: [04:05:27] <simon_w> Looks like it's over a relationship to me
403: [04:05:54] <mojo5000> i.e. - Power is a direct field of Weapon
404: [04:06:36] <simon_w> And, unless it's in a superclass of the object you're managing, it'll be sortable
405: [04:06:47] <simon_w> (That particular limitation needs to be removed at some point)
406: [04:07:58] <mojo5000> at a basic level, is there a way to configure my modeladmin to make other columns 'orderable' through the header
407: [04:08:07] <mojo5000> similar to how it works for the default 'name'
408: [04:08:47] <simon_w> By default, all the columns that can be sorted are sortable
409: [04:08:48] <mojo5000> and is the following not a viable option:
410: [04:08:50] <mojo5000> http://stackoverflow.com/questions/13391071/silverstripe-modifying-gridfieldconfig-in-modeladmin-to-add-sortable-headers
411: [04:09:49] <simon_w> That's an option if you're performing transformations on a db field or using a getter to wrap it
412: [04:11:21] <mojo5000> so brass tacks - you're saying i have a field 'Power' that is a float type
413: [04:11:27] <mojo5000> it is not sortable by default?
414: [04:12:43] <simon_w> No, I'm saying things across joins, things you've called methods on and things that use a custom getter that doesn't shadow a $db column name aren't sortable by default
415: [04:12:56] <simon_w> Anyway, is home time
416: [04:13:07] <mojo5000> thx anyways
417: [04:13:16] * Tanger quit (Quit: Tanger)
418: [04:13:44] <mojo5000> i was trying to be clear that i'm not doing anything special on my field
419: [04:14:01] <mojo5000> even just using a non relationship, a basic field for my dataobject
420: [04:14:20] <mojo5000> i am unable to get the header sort activated
421: [04:18:20] * mojo5000 quit ()
422: [04:20:01] * robert_ quit (Read error: Connection reset by peer)
423: [04:22:14] * Tanger has joined #silverstripe
424: [04:22:26] <Tanger> mojo5000: Are you using sortableGridField?
425: [04:27:26] * zippy___ quit (Ping timeout: 256 seconds)
426: [04:29:40] * robert_ has joined #silverstripe
427: [04:38:58] * Nimle quit (Ping timeout: 245 seconds)
428: [04:39:15] * CodeTrap quit (Ping timeout: 265 seconds)
429: [04:39:45] * CodeTrap has joined #silverstripe
430: [04:51:37] * cloph has joined #silverstripe
431: [04:51:41] * cloph_away quit (Ping timeout: 244 seconds)
432: [05:08:38] * Colin[pi] quit (Ping timeout: 240 seconds)
433: [05:10:01] * Colin[pi] has joined #silverstripe
434: [05:22:13] * howardgrigg quit (Remote host closed the connection)
435: [05:22:40] * howardgrigg has joined #silverstripe
436: [05:26:38] * howardgrigg quit (Ping timeout: 240 seconds)
437: [05:49:35] * DesignerX has joined #silverstripe
438: [06:05:33] * howardgrigg has joined #silverstripe
439: [06:09:37] * howardgrigg quit (Ping timeout: 240 seconds)
440: [06:33:06] * howardgrigg has joined #silverstripe
441: [06:37:18] * howardgrigg quit (Ping timeout: 240 seconds)
442: [07:00:38] * UncleCheese has joined #silverstripe
443: [07:06:32] * howardgrigg has joined #silverstripe
444: [07:10:49] * howardgrigg quit (Ping timeout: 240 seconds)
445: [07:29:00] * howardgrigg has joined #silverstripe
446: [07:53:25] * spronk2 has joined #silverstripe
447: [07:56:27] * zippy___ has joined #silverstripe
448: [08:02:05] * violetina has joined #silverstripe
449: [08:14:26] * ARNHOE has joined #silverstripe
450: [08:26:21] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
451: [08:26:26] * Shrike_Finland has joined #silverstripe
452: [08:29:40] * ocm has joined #silverstripe
453: [08:34:11] * NobrainerWeb has joined #silverstripe
454: [08:34:18] * NobrainerWeb quit (Client Quit)
455: [08:35:08] <ss23> AUBMLANCe
456: [08:36:19] <ss23> refer to tweet for additional infos
457: [08:37:31] <ss23> Oh they managed to move so shit could get past now, that's good
458: [08:41:53] <simon_w|air> Well, that was such a let down
459: [08:42:11] <simon_w|air> I was expecting it to be you, cause you passed out from lack of insulin or something
460: [08:43:29] <ocm> howdyd
461: [09:05:46] * joelpittet quit (Remote host closed the connection)
462: [09:06:35] <zippy___> UncleCheese: Why you no map PostCode to POSTCODE? :) In your video you could see postcode data wasn't really postcode data, and I think you paused as you saw it ;-) https://github.com/unclecheese/silverstripe-mock-dataobjects/blob/master/lang/en.yml
463: [09:06:39] <zippy___> UncleCheese: Great module btw
464: [09:07:11] <UncleCheese> hmm
465: [09:07:14] <UncleCheese> i don't really remember
466: [09:07:30] <UncleCheese> but that's what all of that is configured in the lang file
467: [09:08:06] <zippy___> You don't work at Silverstripe do you?
468: [09:12:03] * micmania1 has joined #silverstripe
469: [09:12:06] <zippy___> UncleCheese: That LoremPixel looks useful, never seen it before…. you write some good modules for SS...
470: [09:12:19] <UncleCheese> thanks, zippy___
471: [09:12:33] <zippy___> See the gridfield better buttons get used a bit...
472: [09:12:43] <zippy___> wonder how long before that pulled into core :)
473: [09:12:45] <UncleCheese> no, i work at Heyday.. about 800m from SS
474: [09:12:50] <UncleCheese> yeah, better buttons is a must-have
475: [09:12:54] <UncleCheese> dashboard
476: [09:13:03] <zippy___> dashboard?
477: [09:13:07] <UncleCheese> !!!!!!!!!!
478: [09:13:14] <UncleCheese> dude
479: [09:13:42] <UncleCheese> http://www.leftandmain.com/silverstripe-screencasts/2012/10/03/dashboard-module-for-silverstripe-3/
480: [09:14:23] * kinglozzer has joined #silverstripe
481: [09:14:28] <zippy___> interesting...
482: [09:15:08] <UncleCheese> http://www.silverstripe.org/the-dashboard-module-make-a-splash-in-silverstripe-3/
483: [09:15:34] <UncleCheese> display logic is another essential
484: [09:15:44] <zippy___> Reviewing those now
485: [09:15:51] <UncleCheese> here's my standard composer.json
486: [09:16:10] <zippy___> I was expecting an accent or something in the videos - you speak quite clear, easy to listen to
487: [09:16:57] <UncleCheese> yeah, i really wanted to do more with leftandmain
488: [09:17:04] <UncleCheese> turn it into a proper ss education website
489: [09:17:21] <UncleCheese> but making screencasts is just sooooo time consuming
490: [09:17:29] <UncleCheese> fun too
491: [09:17:34] <UncleCheese> but not something i could maintain
492: [09:17:46] <zippy___> I subscribed to this http://laracasts.com/ - I quite like his
493: [09:17:53] <zippy___> but the think the userbase is about 10x larger
494: [09:19:45] <zippy___> It's a shame about the google analytics having to put in the password…. why do apis have to use oauth and all that shit, back in the day a simple api key :) would make things like this so much easier
495: [09:22:04] <UncleCheese> that changed immediately after i released it
496: [09:22:08] <UncleCheese> it's now a config setting
497: [09:22:13] <UncleCheese> but, yeah, i agree
498: [09:23:12] * Pysilisk has joined #silverstripe
499: [09:23:30] <zippy___> and the places that implment oauth wrong it seems (as it's complicated) it really makes ya wonder what the point is….
500: [09:23:32] <zippy___> any ho
501: [09:23:41] <zippy___> That display logic module is handy
502: [09:23:55] <zippy___> where is your composer.json?
503: [09:24:16] <Pysilisk> Fantastic. Everyone (excepting of course the stupid Americans) finally waking up to the fact that they've backed extremist right (basically neo nazis) in Ukraine.
504: [09:24:37] * Alfirin has joined #silverstripe
505: [09:25:08] <Pysilisk> Contratulations you derps, you royally fucked that up. Perhaps that'll teach you for meddling in others affairs (especially when you don't know the whole story).
506: [09:25:26] <Pysilisk> What am I saying. Of course it won't.
507: [09:26:07] <zippy___> Who knows what is really true and what is really false over there? Really....
508: [09:27:47] <UncleCheese> zippy___: "unclecheese/zen-fields","undefinedoffset/sortablegridfield","silverstripe/display-logic","unclecheese/betterbuttons",
509: [09:27:48] <UncleCheese> "silverstripe/dashboard", unclecheese/kickassets"
510: [09:28:02] <Pysilisk> zippy___: pretty much no one who isn't there, or from there.
511: [09:28:26] <Pysilisk> The eg. western media keeps painting Russians as a minority.
512: [09:28:37] <Pysilisk> while true I guess that less than 50% is a minority...
513: [09:28:43] <UncleCheese> holy fuck
514: [09:29:01] <Pysilisk> areas such as Crimea are populated by up to %80+ Russians.
515: [09:30:04] <zippy___> Pysilisk: How do you know that?
516: [09:30:28] <UncleCheese> the news has been saturated with this for two weeks, zippy___
517: [09:31:19] <zippy___> UncleCheese: yes it has, but like I said it's hard to know who to believe
518: [09:31:22] <UncleCheese> Pysilisk: In Ukraine, dual citizenship is illegal, so it's unlikely that there are really a lot of "Russians" there
519: [09:32:07] <UncleCheese> there are a lot of Russian speaking people and people who align themselves with their former motherland, but this idea that Russia is defending its citizens is outlandish.
520: [09:32:13] <zippy___> espically when the russians say - those unmarked soldiers are not russian. Yet their vehicles have russian plates and military grade wepons
521: [09:33:20] <zippy___> yeap I agree - it's crazy - but then not so long ago America wanted to storm into Syria and Russia wanted to go slow / peaceful way so who is worse really...
522: [09:34:00] <zippy___> These guys have WMD, we better go in VS Russian ppl in Crimea need our help - we better go in
523: [09:34:13] * willmorgan has joined #silverstripe
524: [09:35:10] <zippy___> UncleCheese: You tried to upgrade a SS site with composer - like updates the cms/framework files etc?
525: [09:35:11] <UncleCheese> the USA has no place to be condemning their actions, though
526: [09:35:40] <UncleCheese> yeah, you just change the composer json file to point to the version you want
527: [09:36:47] <zippy___> In your video im sure I didn't see the folders in the vendors folder - so do ss modules installed via composer not end up in the /vendors?
528: [09:37:03] <UncleCheese> they do not
529: [09:37:14] <UncleCheese> it's a weird thing
530: [09:37:20] <zippy___> but will they update via composer like normal?
531: [09:37:24] <UncleCheese> yes
532: [09:37:56] <UncleCheese> that's changing, though.. supposedly
533: [09:38:12] <zippy___> ok, might give it a crack, I got a couple of sites which I need to keep on the latest SS, and sounds like composer might be a go - to keep the site and modules up to date
534: [09:38:26] <UncleCheese> yeah, composer is great when it works
535: [09:38:33] * kk_ has joined #silverstripe
536: [09:38:36] <UncleCheese> but when it fails it's super annoying
537: [09:39:06] <wmk> hi kk_
538: [09:40:18] * UncleCheese quit (Quit: UncleCheese)
539: [09:42:56] * spronk2 quit (Quit: spronk2)
540: [09:43:31] <Alfirin> good day, gents
541: [09:43:47] <Zauberfisch> greetings
542: [09:43:49] * lc0875507 has joined #silverstripe
543: [09:44:23] <Alfirin> I have a problem with my multilanguage site, and was hoping some of you could really dumb it down for me
544: [09:44:27] <kk_> hi
545: [09:44:59] <Pysilisk> zippy___: yeh, no one really knows jack shit. least of all all these external observers half a world away going "oh yep, nah, that's not right"
546: [09:45:17] <Pysilisk> It's for Ukranians to figure out, amongst themselves.
547: [09:45:43] <Zauberfisch> Alfirin: I am unfamiliar with the termn "dumb it down", however I can tell you this is most likely the best place to find help with your problem.
548: [09:45:51] <kk_> @Alfirin, everyone had problems with this... ^^ whats your problem?
549: [09:45:57] <Pysilisk> all this "you can't influence votes, you have to let them vote for the guy we want in charge instead" is pretty much the long and short of it.
550: [09:46:35] <Alfirin> Neat! See, everything else works well enough, but the login form and whatnot refuse to obey the locals
551: [09:46:48] <Alfirin> they're always displayed in the default locale
552: [09:47:33] <Pysilisk> Alfirin: is the form loading with the correct switch in place to make it display non-default locale?
553: [09:48:24] <Zauberfisch> Alfirin: my first guess is that you are using Translatable and have forgotten to set the i18n locale
554: [09:48:43] * Werner_2_ has joined #silverstripe
555: [09:49:01] <Zauberfisch> https://gist.github.com/Zauberfisch/9226142
556: [09:49:05] <Pysilisk> zippy___: the best part is how not many folk go there simply to meddle, yet USA has come in loud as fuck as usual, being hypocritical as fuck as usual, ironically attracted to fiddling with another country's politics where there just so happens to be a great fucking big oil pipeline running through the middle...
557: [09:49:06] <Zauberfisch> see line 6-9
558: [09:49:11] <Zauberfisch> that part should be relevant for you
559: [09:49:28] <Pysilisk> are we seeing a trend here?
560: [09:50:42] <Alfirin> Thanks Zauberfisch, I tried something similar before, with thin results, but I'll try this one
561: [09:51:11] <Zauberfisch> make sure its in Page_Controller
562: [09:51:46] <kk_> Alfirin, i had the same problem and this worked for me. ;-)
563: [09:53:26] <Alfirin> Naww, that alone didn't do the trick
564: [09:53:36] <Zauberfisch> hmmm
565: [09:53:47] <Zauberfisch> perhaps Security does not call page::init()
566: [09:53:48] <Zauberfisch> hmmm
567: [09:53:49] <Alfirin> There's probably something really simple I've missed
568: [09:54:33] <Zauberfisch> if you put
569: [09:54:47] <Zauberfisch> i18n::set_locale('es_ES');
570: [09:54:50] <Zauberfisch> in your _config.php
571: [09:54:57] <Alfirin> I went through your logs and ran into the "ID < 0" thing, but that wasn't simplified enough for me
572: [09:55:12] <Zauberfisch> does that make login be in spanish?
573: [09:55:25] <Zauberfisch> id < o thing?
574: [09:55:35] <wmk> Zauberfisch, login page isn't a cms page
575: [09:55:42] <lc0875507> Alfirin: have you "registered" your language in your _config.php?
576: [09:55:44] <wmk> so controller doesn't know what lang to use
577: [09:55:54] <Zauberfisch> I see
578: [09:55:57] <Zauberfisch> guessed so
579: [09:56:01] <wmk> had this problem last summer...
580: [09:56:28] <Zauberfisch> hmm, then I would probably store locale in session and set that then
581: [09:56:42] <Alfirin> lc0875507, I have set i18n locale and translatable default locale
582: [09:57:37] <Alfirin> the login page seems to obey the translatable default locale
583: [09:57:52] <Zauberfisch> wmk: did you find a solution?
584: [09:58:38] * lc0875507 has left #silverstripe
585: [09:59:10] <kk_> Alfirin: what does $Locale returns?
586: [10:00:12] * Tanger quit (Quit: Tanger)
587: [10:00:15] <wmk> Zauberfisch, hmm, i had urls like de/home and en/home
588: [10:00:23] <wmk> languageprefix module
589: [10:00:41] <Zauberfisch> I see
590: [10:00:55] <Zauberfisch> well, Alfirin, easierst way to solve your problem is using sessions I think
591: [10:00:59] <Alfirin> inspect element says the site's in finnish, I don't know if there's a better way to check it
592: [10:01:00] <wmk> Alfirin, how many languages do you need?
593: [10:01:17] <Alfirin> wmk, just two, finnish and english
594: [10:02:38] <Alfirin> The locale changes just fine on all other pages except the security pages, in which the language option disappears completely
595: [10:02:48] <Pysilisk> wmk: urgh yeah, gawd login so broken :<
596: [10:02:49] <wmk> Zauberfisch, afaik i didn't use login page.
597: [10:02:57] <Pysilisk> err... well... 'messy'.
598: [10:03:05] <Pysilisk> it works, mostly.
599: [10:03:18] <wmk> i think we had a login form on every page, subclassed it
600: [10:05:13] <Alfirin> It really comforts me that I'm not the only one having problems with this
601: [10:05:30] <kk_> Alfirin: could you provide a little bit of your code.. maket it easyer.. http://sspaste.com/
602: [10:05:40] <kk_> *makes
603: [10:05:59] <Alfirin> Alright, what do you need? _config and page?
604: [10:06:25] <kk_> would be perfect.
605: [10:07:54] <Zauberfisch> Alfirin: http://paste2.org/YvdFO80I
606: [10:08:00] <wmk> Zauberfisch, a translatable LoginPage which's Controller subclasses Security, would this be a possible solution?
607: [10:08:16] <Alfirin> http://sspaste.com/paste/show/53184595d4231 Don't be shocked if it's messy, everything I do is messy
608: [10:08:32] <wmk> Or subclass Security and check the url? create a route to each langage?
609: [10:08:56] <Zauberfisch> since Security extends controller, its easier to hook into controller
610: [10:09:39] <wmk> i see
611: [10:09:42] <Alfirin> Thanks Zauberfisch, I'll look into it
612: [10:09:50] <Alfirin> I mean, I can't be much worse off than I am now
613: [10:15:41] <Zauberfisch> Alfirin: let me know if it works
614: [10:17:19] <wmk> Zauberfisch, would you mind make a comment on https://github.com/silverstripe/silverstripe-translatable/issues/27 ?
615: [10:17:36] * wmk wonders why there is still no official way for this problem.
616: [10:21:35] <Alfirin> Zauberfisch, the ControllerExtention gave me an error, "Unexpected {"
617: [10:25:21] <Zauberfisch> sounds like a minor syntax error
618: [10:25:33] <Zauberfisch> line 20
619: [10:25:38] <Zauberfisch> there is a ) missing
620: [10:25:51] <Zauberfisch> doesn't your IDE tell you syntax errors? :P
621: [10:28:09] * Robke has joined #silverstripe
622: [10:28:24] * g4b0 has joined #silverstripe
623: [10:29:18] <Alfirin> I hate to admit I'm dumb, but I don't know what IDE is
624: [10:29:27] <Pysilisk> Bad news.
625: [10:29:31] <Alfirin> I rely on SS sending me the error messages, and without them I am nothing
626: [10:29:34] <Pysilisk> it's alright to remain like that Alfirin :>
627: [10:30:05] <Zauberfisch> Alfirin: ok, we'll cover IDEs later. lets get this working first
628: [10:30:14] <Zauberfisch> have you fixed the syntax error?
629: [10:30:26] <Pysilisk> Alfirin: an IDE is just a place to type your code.
630: [10:30:31] * gurubobnz has joined #silverstripe
631: [10:30:40] <Zauberfisch> in short, a IDE is a better text editor
632: [10:30:40] <Pysilisk> with a few more features than a text editor.
633: [10:30:51] <Pysilisk> in short, an IDE is worse than a text editor.
634: [10:31:03] <Zauberfisch> depends on who you ask
635: [10:31:11] <Pysilisk> :P
636: [10:31:18] <Pysilisk> depends on what you're programming.
637: [10:31:53] <Alfirin> sooo... notepad++?
638: [10:32:17] <g4b0> hi all
639: [10:32:25] <g4b0> SS 3.1.2 updated
640: [10:32:38] <g4b0> ManyManyList is not sortable
641: [10:32:45] <g4b0> feature or bug?
642: [10:33:06] <micmania1> sortable where?
643: [10:33:19] <micmania1> You can sort them using many_many_extraFields
644: [10:34:07] <g4b0> yep
645: [10:34:27] <g4b0> I'm using sortableuploadfield
646: [10:34:38] <g4b0> but the problem lies in framework
647: [10:34:51] <g4b0> $list = $list->sort($sortColumn, 'ASC');
648: [10:34:57] <g4b0> does not work...
649: [10:35:07] <Alfirin> Zauberfisch, I didn't get any errors this time, but it didn't do anything either
650: [10:35:17] * gurubobnz_ has joined #silverstripe
651: [10:35:54] <g4b0> I have to transform ManyManyList in ArrayList
652: [10:35:59] <g4b0> in order to sort it
653: [10:36:53] * zippy___ quit (Quit: zippy___)
654: [10:36:54] <micmania1> g4b0: $list->innerJoin("JOIN_TABLE", "JOIN_TABLE.ForeignID=DataObjectTable.ID")->sort("MySortField ASC");
655: [10:37:01] <micmania1> maybe
656: [10:37:25] <g4b0> mmm
657: [10:37:26] <micmania1> oh wait. I'm probably way off. I have done it before though... 2 secs
658: [10:38:31] <Zauberfisch> Alfirin: ok, start debuging
659: [10:38:52] <Zauberfisch> Alfirin: go into the controller and put in some echos to see what is happening
660: [10:39:43] <micmania1> g4b0: I actually done the same thing ha! But there is a nicer way. You just need to write a custom query
661: [10:40:11] <micmania1> or attempt the join above ^^
662: [10:40:27] <g4b0> micmania: don't you think it's a bug?
663: [10:41:05] <micmania1> no. Running a MySQL query you wouldn't expect it to sort by a field which isn't on the current table unless you joined.
664: [10:41:06] <g4b0> If I remember true, many_many_list was sortable
665: [10:41:21] <micmania1> Not very intuitive though
666: [10:41:47] <g4b0> Ah, ok
667: [10:42:14] <g4b0> so, if I try to sort by a field *into* the table it works?
668: [10:42:31] <g4b0> really not very intutive...
669: [10:46:28] * guci0 quit (Ping timeout: 245 seconds)
670: [10:48:11] * DesignerX quit (Ping timeout: 244 seconds)
671: [10:48:30] * gurubobnz_ quit (Remote host closed the connection)
672: [10:48:40] * gurubobnz quit (Remote host closed the connection)
673: [10:48:45] * r3v3rb has joined #silverstripe
674: [10:49:45] <r3v3rb> morning all, I can see the sea!
675: [10:50:02] <r3v3rb> from my office window...
676: [10:50:05] <r3v3rb> lol
677: [10:50:42] <Alfirin> I wish I had an office window
678: [10:50:51] <r3v3rb> back OT - does $mail->sendPlain() work with setTemplate() etc or does the $body need to be set in PHP?
679: [10:51:17] <r3v3rb> Alfirin: I moved last Friday - house is 'cold' but looks over the coast
680: [10:51:58] <Alfirin> Oh cool! Conrats!
681: [10:54:28] * joelpittet has joined #silverstripe
682: [10:54:31] <r3v3rb> Alfirin: thanks
683: [10:55:13] * Robke quit (Ping timeout: 245 seconds)
684: [10:56:04] <g4b0> micmania1: I solved with the ArrayList transformation, see my PR on SortableFile module: https://github.com/bummzack/sortablefile/pull/18
685: [10:57:59] <willmorgan> what was the function called to find an administrator?
686: [10:58:04] <willmorgan> Member::findAnAdministrator or smth
687: [10:58:05] <willmorgan> ?
688: [10:58:21] <micmania1> g4b0: did you try the example in the readme?
689: [10:58:59] <micmania1> willmorgan: Security::findAnAdministrator()
690: [10:59:05] <willmorgan> love you!
691: [10:59:07] * joelpittet quit (Ping timeout: 252 seconds)
692: [10:59:14] <g4b0> micmania1: yep
693: [10:59:21] <g4b0> it doesn't work
694: [10:59:30] <Pysilisk> [10:40] <g4b0> micmania: don't you think it's a bug?
695: [10:59:32] <Pysilisk> yeh bug
696: [11:00:30] <Pysilisk> r3v3rb: should plain text adapt html
697: [11:00:39] <g4b0> function SortedImages doesn't returns a sorted set of objects
698: [11:00:54] <g4b0> Pysilisk: I think it's a SS bug
699: [11:01:03] <Pysilisk> g4b0: that's what I just said.
700: [11:01:08] <Pysilisk> report it.
701: [11:01:20] <Pysilisk> g4b0: you have defined the extraField right?
702: [11:01:33] <g4b0> yep
703: [11:01:41] <Pysilisk> sql lets you sort on any field included in the select.
704: [11:02:05] <Pysilisk> debug the SQL and have a look.
705: [11:02:13] <Pysilisk> ?show_queries=1 iirc
706: [11:03:16] <r3v3rb> Pysilisk: que?
707: [11:03:34] <Pysilisk> [10:50] <r3v3rb> back OT - does $mail->sendPlain() work with setTemplate() etc or does the $body need to be set in PHP?
708: [11:03:44] <Pysilisk> it works.
709: [11:04:11] <r3v3rb> hmm, okay I'll dev/build flush=1 again - I get $message not set error
710: [11:04:32] <Pysilisk> r3v3rb: $email->debug()
711: [11:04:50] <Pysilisk> hmm, although that'll give you html ;
712: [11:04:53] <Pysilisk> :< *
713: [11:04:57] <r3v3rb> :(
714: [11:05:36] <r3v3rb> actually its not $message its message body is empty
715: [11:05:46] <Pysilisk> yeh, I get it.
716: [11:05:51] <Pysilisk> read code.
717: [11:06:04] <Pysilisk> iirc it strips tags and stuff from html body.
718: [11:06:12] <Pysilisk> although I think you can set plaintext body separately
719: [11:06:25] * r3v3rb goes to read
720: [11:06:38] <Pysilisk> it's easy to read, it's proceedural :<
721: [11:09:06] <Alfirin> Zauberfisch, at least both if's work as predicted
722: [11:10:24] <g4b0> micmania1, Pysilisk: issue reported: https://github.com/silverstripe/silverstripe-framework/issues/2927
723: [11:10:27] <r3v3rb> Pysilisk: * @param string $plaintext_body Optional string for plaintext emails.
724: [11:10:27] <r3v3rb> * If not set, defaults to converting the HTML-body with {@link Convert::xml2raw()}.
725: [11:10:43] <r3v3rb> appears to not do that 'auto' magically
726: [11:10:56] * howardgrigg quit (Remote host closed the connection)
727: [11:11:12] <micmania1> g4b0: It would be good if you could support it with a test to show it failing?
728: [11:11:22] * howardgrigg has joined #silverstripe
729: [11:13:21] <g4b0> To test it it's sufficient to install the module and try the many_many_list configuration
730: [11:13:29] <g4b0> as I wrote in the issue
731: [11:14:03] <Zauberfisch> Alfirin: progress?
732: [11:14:12] <Zauberfisch> is it getting a locale from session?
733: [11:14:31] <micmania1> g4b0: You should be able to prove that $this->Images()->sort("SortField") isn't sorting correctly with the Framework alone.
734: [11:15:34] * howardgrigg quit (Ping timeout: 244 seconds)
735: [11:17:19] <g4b0> micmania1: it's not so easy to write a unit test using many_many_extrafields
736: [11:17:34] <g4b0> I don't know where to start :)
737: [11:17:36] <Pysilisk> it's not easy to many_many_extraFields :(
738: [11:17:57] <Pysilisk> gawd, I did what I wanted to do this morning.
739: [11:18:05] <Pysilisk> now I'm bored, and it's not lunchtime :<
740: [11:18:50] <r3v3rb> why is my CheckboxSetField array not parsing in the template for the email - I'm doing <% loop $transport %>$Me<% end_loop %> where transport is the returned array of checkboxes
741: [11:19:08] <Alfirin> Zauberfisch, the login still uses translatable default locale, which is different from i18n locale
742: [11:20:05] <Alfirin> It wouldn't bother me as much if the language selection in the template worked regardless
743: [11:20:27] <Pysilisk> r3v3rb: try $Name instead of $Me, ensure it's actually finding them in scope or whatevers
744: [11:20:35] <r3v3rb> Pysilisk: ta
745: [11:20:49] <Pysilisk> it's possible it's just skipping the whole block because transport is null or something
746: [11:24:30] * r3v3rb_ has joined #silverstripe
747: [11:24:47] * Colin[pi] quit (Ping timeout: 264 seconds)
748: [11:24:59] * r3v3rb quit (Ping timeout: 240 seconds)
749: [11:24:59] * r3v3rb_ is now known as r3v3rb
750: [11:29:15] <Zauberfisch> < Alfirin> It wouldn't bother me as much if the language selection in the template worked regardless
751: [11:29:19] <Zauberfisch> Alfirin: what do you mena by that?
752: [11:29:35] <Zauberfisch> Pysilisk: many_many_extraFields: easier than you think!
753: [11:29:56] <Zauberfisch> Pysilisk: something I did just a couple of days ago: http://mars.zauberfisch.at/share/many-many_many_extraFields.png
754: [11:30:44] <Zauberfisch> the above table craetes graduations, and the below table creates variants
755: [11:31:11] <Zauberfisch> each variant has a many_many to the graduations, and stores the price in the many_many_extraFields
756: [11:33:12] <Zauberfisch> Alfirin: perhaps it works if you also set the Translateable locale
757: [11:33:13] <Zauberfisch> http://paste2.org/NhmPtm1s
758: [11:33:15] <Zauberfisch> updated the paste
759: [11:33:19] <Zauberfisch> see line 28
760: [11:36:36] <Alfirin> Zauberfisch, thanks! And I meant that I have a flag in my menu so users can switch between the two languages, but the flag doesn't show in the login pages
761: [11:40:08] <r3v3rb> hmm, $this->redirect($this->Link()); sends me back after a form submission but strips the action I had from the base url :( I need to go http://abc.com/formPage/action/id -> submit -> back to -> http://abc.com/formPage/action not http://abc.com/formPage
762: [11:40:23] <r3v3rb> any ideas?
763: [11:41:40] * howardgrigg has joined #silverstripe
764: [11:42:08] <ocm> get actions and put them after $this->Link() ?
765: [11:42:36] <r3v3rb> ocm: tried that but the action was the form submission not the previous action ;)
766: [11:42:47] * g4b0 quit (Ping timeout: 264 seconds)
767: [11:42:51] <r3v3rb> surely I cant need to set a session
768: [11:42:58] <r3v3rb> just to loop back
769: [11:43:01] * Guits has joined #silverstripe
770: [11:43:44] <r3v3rb> or I guess I could put a hiddenfield in to the form
771: [11:44:13] <Pysilisk> Zauberfisch: yeah, they're not hard, just a pain in the buttocks.
772: [11:44:27] <Guits> Does anyone know if it possible to change the width (through ui) of the different panels in the CMS
773: [11:44:28] <Pysilisk> Zauberfisch: do you dynamically refresh the lower table when the upper's details are altered?
774: [11:44:40] <Pysilisk> Guits: no
775: [11:44:53] <Guits> The sitetree part is so small
776: [11:45:19] <Pysilisk> it's not designed to hold 65 levels of subpages.
777: [11:45:48] <Pysilisk> not that that's helpful to ya, I'm just say'n.
778: [11:45:59] * howardgrigg quit (Ping timeout: 240 seconds)
779: [11:46:10] <Pysilisk> omg omg lunch in an hour and a half.
780: [11:46:32] <Guits> ..well even three levels will not show the titles of the third level without need to scroll horizontally
781: [11:47:39] <Pysilisk> yeah, it's a pain I agree.
782: [11:48:47] <Zauberfisch> Alfirin: so did you got it working?
783: [11:49:29] <Zauberfisch> Pysilisk: no, unfortunatlely a live reload of the table would loose all the changed data
784: [11:49:30] <Pysilisk> urgh, fucking news media. "The most serious emergency since the end of the cold war". O RLY. Are we all conveniently forgetting Kosovo?
785: [11:49:54] <Pysilisk> Zauberfisch: hmm, good point :<
786: [11:50:32] <willmorgan> wow
787: [11:50:46] <willmorgan> I just found out that DataList->count returns a non-integer typed int
788: [11:50:52] <willmorgan> so "0" instead of 0
789: [11:51:05] <willmorgan> that's basically wasted 30 minutes of my life
790: [11:52:27] <Zauberfisch> of course i could kepp track of that in js and set the values again, but thats not worth the effort here
791: [11:52:38] <Pysilisk> how can a non int be typed int?
792: [11:53:13] <willmorgan> (string) 0 => "0"
793: [11:53:32] <Pysilisk> yes, but that's not typed int.
794: [11:53:36] <Pysilisk> that's type string.
795: [11:53:44] <willmorgan> yes
796: [11:53:53] <willmorgan> ergo ->count() returns a string
797: [11:54:05] <Pysilisk> [11:50] <willmorgan> I just found out that DataList->count returns a non-integer typed int
798: [11:54:07] <willmorgan> which means if you do DataList->count() === 0 in your tests, it'll return false
799: [11:54:10] <Pysilisk> non-integer typed int
800: [11:54:11] <Pysilisk> typed int
801: [11:54:24] <Pysilisk> willmorgan: seems like a good test to me.
802: [11:54:43] <Pysilisk> commit it. make it fail. make it get fixed.
803: [11:55:08] <Alfirin> Zauberfisch, nah, it's still not working
804: [11:55:47] <Pysilisk> willmorgan: http://api.silverstripe.org/3.1/source-class-DataQuery.html#329-336
805: [11:55:57] <Pysilisk> (int) that bastard.
806: [11:56:39] <willmorgan> quite
807: [11:57:02] <Pysilisk> (int)$that->bastard
808: [11:59:11] * Bollig|DesignCty has joined #silverstripe
809: [12:13:39] * Pysilisk quit (Quit: Page closed)
810: [12:14:33] <ocm> r3v3rb, hiddenfield should work indeed, but why do you need to go back to /action?
811: [12:17:09] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
812: [12:20:20] <Alfirin> bbl
813: [12:20:24] <r3v3rb> ocm, because the action is actually a way to have two forms supplied to the same page dependant on the link given to a user
814: [12:21:45] * howardgrigg has joined #silverstripe
815: [12:21:51] <r3v3rb> normal people will go to http://abc.com/form others will go to http://abc.com/form/action but need to be sent back to action so that I can display the correct submission text etc
816: [12:25:58] * howardgrigg quit (Ping timeout: 240 seconds)
817: [12:26:34] * outrunthewolf has joined #silverstripe
818: [12:36:10] <wmk> hmm, if jetbrains had a scss refactor / extract to new file like silverstripe extension does
819: [12:37:40] <ocm> ahw I see :)
820: [12:42:25] <ocm> r3v3rb, perhaps you could do with something like this? http://pastebin.com/MGj7AyAk
821: [12:42:51] <ocm> or wait
822: [12:42:53] <ocm> you need the action
823: [12:43:23] * joelpittet has joined #silverstripe
824: [12:43:45] <ocm> but you get what I try to say, I assume, anyway
825: [12:48:03] * joelpittet quit (Ping timeout: 244 seconds)
826: [12:48:31] * outrunthewolf has left #silverstripe
827: [12:49:55] * Pysilisk has joined #silverstripe
828: [12:52:47] * howardgrigg has joined #silverstripe
829: [12:56:23] <Pysilisk> oh shit, I accidentally an early lunch :<
830: [12:56:49] * howardgrigg quit (Ping timeout: 240 seconds)
831: [13:02:31] * Werner_2_ quit (Ping timeout: 244 seconds)
832: [13:06:12] * UndefinedOffset has joined #silverstripe
833: [13:07:09] * evelin has joined #silverstripe
834: [13:07:17] <evelin> hi all
835: [13:07:27] <ocm> hi
836: [13:09:13] <evelin> question: there is a page control function allChildren to show also children which are not showing in the menu. Is there also something for menu(1) ? I want to show all top level pages even they are not checked for show in menu
837: [13:10:02] <ocm> hm, not sure what the best way to do this is. Surely something like this will work
838: [13:10:20] <ocm> <% loop menu(1) %><% loop Parent %><% loop AllChildren %>
839: [13:11:31] <micmania1> evelin: Don't think so. Create your own FullMenu method on your controller then just call SiteTree::get()->filter("ParentID", 0);
840: [13:11:43] <micmania1> then just <%loop FullMenu %>
841: [13:12:04] <evelin> thanks, gonna try
842: [13:12:10] <ocm> nice one micmania1
843: [13:15:12] <evelin> works very well, thanks again! :)
844: [13:15:53] <ocm> is there a PGP implementation to use with silverstripe? Anybody aware of such a thing?
845: [13:16:44] <Pysilisk> evelin: template calls simply map to the object in the current scope, either calling a method or fetching a member field.
846: [13:16:55] <Pysilisk> so everything you're wondering you can learn about from api! :>
847: [13:16:58] <Pysilisk> api.silverstripe.org
848: [13:17:33] <Pysilisk> http://api.silverstripe.org/3.1/class-SiteTree.html
849: [13:18:20] <Pysilisk> the confusing part comes when you figure out you're actually calling a controller, which if it can't find a method on itself checks the object (page) it's wrapping.
850: [13:18:31] <Pysilisk> http://api.silverstripe.org/3.1/class-ContentController.html
851: [13:19:34] <Pysilisk> so the combination of those two pages (specifically the public functions) are available by default. From that point on loops & with, etc will switch you onto another object (DataObject, you can ignore the controller from that point unless you cancel the scope or call Top, etc).
852: [13:20:37] <Pysilisk> ocm: not aware of anything, nope. Not even entirely clear on PGP at all tbh.
853: [13:27:40] * r3v3rb quit (Quit: r3v3rb)
854: [13:29:17] * g4b0_ has joined #silverstripe
855: [13:31:17] <g4b0_> how can I access many_many_extrafields from the object that belongs to a many_many ?
856: [13:34:16] <Pysilisk> you don't, by itself.
857: [13:34:26] <Pysilisk> I think.
858: [13:35:21] <Pysilisk> accessing an extraField is the same as accessing a normal field.
859: [13:35:27] <Pysilisk> give it a go. You'll soon know.
860: [13:35:39] <Pysilisk> $obj->extraFieldName
861: [13:36:03] <g4b0_> it doesn't work...
862: [13:36:13] <Pysilisk> because you don't have the relating object.
863: [13:36:32] <Pysilisk> it could have many extraFields (one per relation), how would you know which one to be accessing?
864: [13:36:59] <Pysilisk> you need to call the relation through the many_many relation, and those objects should have the field you want on them.
865: [13:37:24] <Pysilisk> eg $this->ManyManyName()->filter(...)->first()->extraFieldName
866: [13:39:41] * babak has joined #silverstripe
867: [13:41:29] * evelin quit ()
868: [13:42:32] * g4b0_ quit (Ping timeout: 265 seconds)
869: [13:45:35] * Shrike_Finland quit (Quit: Leaving.)
870: [13:46:03] * Desperate quit (Ping timeout: 245 seconds)
871: [13:53:40] * howardgrigg has joined #silverstripe
872: [13:55:12] * g4b0_ has joined #silverstripe
873: [13:58:23] * howardgrigg quit (Ping timeout: 264 seconds)
874: [14:07:41] <kinglozzer> RIP bitbucket </3
875: [14:07:57] <willmorgan> oh
876: [14:08:01] <willmorgan> I thought they were finally shutting it down
877: [14:08:12] <kinglozzer> Nah, it's just decided to shut itself down
878: [14:08:12] <willmorgan> ...or are they?
879: [14:08:19] <kinglozzer> http://status.bitbucket.org/
880: [14:11:16] <Pysilisk> bit who?
881: [14:11:22] <Pysilisk> bit thedust?
882: [14:11:27] * willmorgan slaps Pysilisk around a bit with a large trout
883: [14:11:51] * Pysilisk raises his eyes at an apparent mirc user o.0
884: [14:12:09] <willmorgan> what's the cool irc client to use these days?
885: [14:12:31] <g4b0_> xchat :P
886: [14:13:15] <willmorgan> I used pidgin for IRC earlier
887: [14:13:24] <willmorgan> but if you're gonna use IRC, you want the real hacker look
888: [14:13:29] <willmorgan> chats in the System font
889: [14:13:35] <willmorgan> white on black
890: [14:13:38] <micmania1> kvirc looks like a rainbow with sick in it
891: [14:13:40] <willmorgan> neon colours
892: [14:13:48] <micmania1> but very functional
893: [14:15:24] <Pysilisk> willmorgan: if by hacker you mean script kiddie
894: [14:15:29] <Pysilisk> then yeah, mirc might be a good fit
895: [14:16:07] <Pysilisk> i used dirc and liked it. iirc 'dirc', not 100% on it
896: [14:16:14] <ocm> HydraIRC :P
897: [14:16:19] <willmorgan> if script kiddies have beards and write unit tests, I guess that is what I am
898: [14:16:29] <Pysilisk> nope, apparently not.
899: [14:16:34] <micmania1> Hydra made me sad on the inside
900: [14:17:03] <ocm> how so micmania1?
901: [14:17:23] <micmania1> can't remember lol just remember I didn't like it.
902: [14:17:32] <micmania1> I'm sure xchat charge
903: [14:17:43] <micmania1> you get so long for free then they're like "you have to pay now"
904: [14:18:09] <ocm> I use xchat on ubuntu, it is pretty decent
905: [14:19:00] <Pysilisk> ah, dxirc
906: [14:19:07] <Pysilisk> doesn't look like much, but quite functional.
907: [14:19:11] <Pysilisk> without all the faff.
908: [14:19:20] <willmorgan> so nobody else has used pidgin for irc?
909: [14:19:27] <willmorgan> i mean, it's functional and isn't very in your face
910: [14:19:27] <Pysilisk> micmania1: yeh hydra makes me sad too, but it's still what I use at home for some reason
911: [14:19:31] <willmorgan> plus you can connect other accounts
912: [14:19:36] <wmk> micmania1, xchat-wdk is free on windows
913: [14:19:39] <Pysilisk> I used pidgin for irc once.
914: [14:19:45] <Pysilisk> it's functional.
915: [14:20:40] <Pysilisk> xchat is free software. Just the main windows port chap charges for his version.
916: [14:21:09] <Pysilisk> http://www.dxirc.org/
917: [14:22:00] <Pysilisk> hydra doesn't support ssl that I could be bothered to find.
918: [14:22:26] <Pysilisk> hydra also is gui based, so as soon as you connect it pops up a dialog going "what channels brah?" and I'm all FUCKOFF LET ME TYPE
919: [14:23:03] <Pysilisk> but it's portable and it works.
920: [14:23:21] <Pysilisk> portable like usb stick, not mac&linux
921: [14:23:53] <Zauberfisch> Alfirin: any luck yet?
922: [14:26:11] <Zauberfisch> wmk: what was the link again you wanted me to comment on?
923: [14:26:33] <Zauberfisch> ah #27
924: [14:26:38] <Zauberfisch> wmk: nvm
925: [14:27:50] <Alfirin> Ah hey Zauberfisch, I just got back. Groceries don't walk to the fridge by themselves
926: [14:29:50] <Zauberfisch> (:
927: [14:29:59] <Zauberfisch> was just out lunch as well
928: [14:30:09] <Zauberfisch> thought I'd check up on you
929: [14:32:02] * Shrike_Finland has joined #silverstripe
930: [14:32:23] * joelpittet has joined #silverstripe
931: [14:33:48] <wmk> Zauberfisch, was about the translatable issue.
932: [14:34:03] <Zauberfisch> yeah, found it
933: [14:34:17] <Zauberfisch> that can't be that hard
934: [14:34:23] <Zauberfisch> challange accepted
935: [14:34:34] <wmk> *G*
936: [14:35:47] * blablub has joined #silverstripe
937: [14:36:17] <blablub> Hello, If I have a $has_many relation from a page to a dataobject, shouldn't Silverstripe automatically add a tab for this dataobject?
938: [14:36:37] <blablub> ah no, sorry my fault, i have to create a gridfield
939: [14:36:53] <wmk> blablub, if you use scaffolding it could be possible
940: [14:36:59] * joelpittet quit (Ping timeout: 252 seconds)
941: [14:37:12] <wmk> though you can configure the gridfield like you want
942: [14:37:27] <Alfirin> You're sweet, Zauberfisch. Any chance I could teleport you over here, keep you in the closet for emergencies and feed you peanuts?
943: [14:38:01] * blablub is interested in Alfirins idea too ;)
944: [14:38:22] <ocm> pysilisk, I get the gui complaints about hydra.. quite annoying
945: [14:38:30] <ocm> any better suggestions to replace it with? :P
946: [14:39:45] <Alfirin> Zauberfisch, it works! It works! I don't know how but it works!
947: [14:40:20] <Zauberfisch> Alfirin: I prefer cashew. and if you had the capeability to teleport I would probably willingly live in your closet if you wanted me to :D
948: [14:40:38] <Zauberfisch> Alfirin: great
949: [14:40:48] <Zauberfisch> did you change anything from the code I pasted?
950: [14:40:56] <Alfirin> Neat! I need to get a bigger closet, though, I have a lot of stuff hidden there
951: [14:41:10] <Alfirin> No, that's the weird part. I swear I didn't touch it since I left, and now it just magically works
952: [14:41:21] <Zauberfisch> the powers of the magic fish
953: [14:41:31] * r3v3rb has joined #silverstripe
954: [14:41:35] <Zauberfisch> (zauberfisch loosely translates to magic fish)
955: [14:41:47] * Alfirin gives Zauber cashews
956: [14:42:02] <blablub> when I click on add new dataobject in the gridfield, the dataobject has a relation to the page, but the page isn't automatically set to the correct page
957: [14:42:22] <Alfirin> Yah I figured you'd be some kind of a fish. Because of my amazing language skills
958: [14:42:22] <blablub> I can remove the field, but I'm looking for a better option
959: [14:42:36] <Zauberfisch> ok, so this thing is fixed now. but I am higly motivated to fix something
960: [14:42:40] <Zauberfisch> what now :O
961: [14:42:49] <micmania1> WordPress
962: [14:42:51] <micmania1> Fix that
963: [14:42:53] <Zauberfisch> :D
964: [14:43:00] <Zauberfisch> ah, I have an idea
965: [14:43:02] <Alfirin> Don't worry, I'll prolly break something else soon
966: [14:43:04] <Zauberfisch> wmk good news
967: [14:43:11] <wmk> ?
968: [14:43:17] <Zauberfisch> I will fix the xdebug phpmyadmin problem in the VM
969: [14:43:24] <Zauberfisch> already have an idea
970: [14:43:41] <wmk> fine
971: [14:44:16] <ocm> r3v3rb, did you find a working solution for your problem?
972: [14:47:59] * guci0 has joined #silverstripe
973: [14:52:24] <r3v3rb> ocm, yes sorry been busy - the hiddenfield worked ok
974: [14:52:29] <r3v3rb> not ideal but works
975: [14:53:27] * Shrike_Finland quit (Quit: Leaving.)
976: [14:54:44] * howardgrigg has joined #silverstripe
977: [14:55:55] <r3v3rb> ocm, went with this -> http://pastebin.com/xdjCR5x4
978: [14:55:58] <r3v3rb> in the end
979: [14:57:01] <blablub> I love Silverstripe more and more i use it
980: [14:58:59] * howardgrigg quit (Ping timeout: 240 seconds)
981: [14:59:15] * blablub likes the shortcodeparser
982: [14:59:26] <guci0> me too, but sometime have "smt" :)
983: [15:00:30] <blablub> what's smt?
984: [15:01:03] <guci0> something :) Wont work, but I don't know how to do this :)
985: [15:01:14] <guci0> Life!
986: [15:06:28] <Alfirin> Is there a way to prefill a form? Like, if a user is logged in, the name and number would automatically fill in.
987: [15:06:41] <blablub> hmm, shortcode callback is a static function, this means i can't access the dataobjects directly from the actual site
988: [15:10:17] * catcher has joined #silverstripe
989: [15:10:46] <wmk> blablub, unfortunately no
990: [15:12:13] <blablub> hmm, ok, just checking if this is a problem
991: [15:16:53] <Zauberfisch> Alfirin wmk: updated the gist
992: [15:16:54] <Zauberfisch> https://gist.github.com/Zauberfisch/9226142
993: [15:17:01] <Zauberfisch> and did some refactoring
994: [15:17:10] <kinglozzer> wmk, blablub: Could you use Controller::curr()->data() to access the current page? Not sure how reliable that is though
995: [15:17:12] <Zauberfisch> it should now cover pages and security admin
996: [15:17:37] <Zauberfisch> -admin
997: [15:17:42] <Zauberfisch> I mean security controller
998: [15:17:53] <Zauberfisch> and it should also allow language switching on the security controller
999: [15:17:54] <wmk> kinglozzer, of course
1000: [15:20:03] <wmk> Zauberfisch, looks pretty
1001: [15:20:27] <Zauberfisch> haven't tested it though *g*
1002: [15:20:55] <Zauberfisch> perhaps I should do that before announcing it as a solution ... hmm ...
1003: [15:21:05] <blablub> hmm ok if I can access the current page, then my idea should work
1004: [15:21:17] <blablub> otherwise i would just use str_replace
1005: [15:23:28] <blablub> hmm, is it correct I have to define the shortcodeparser and also the callback function in _config.php?
1006: [15:24:40] <blablub> ah no, seems to work also in Page.php :)
1007: [15:29:24] <Alfirin> I like your optimism, Zauberfisch
1008: [15:29:42] <blablub> kinglozzer, Controller::curr()->data() definitely works, thanks
1009: [15:31:14] <Zauberfisch> ah, a minor issue exists indeed
1010: [15:32:00] * g4b0_ quit (Ping timeout: 252 seconds)
1011: [15:33:49] <Zauberfisch> oh no
1012: [15:33:55] <Zauberfisch> Secuirty is actually nasty
1013: [15:34:07] <Zauberfisch> it crates a Page_Controller and pretends its the current controller
1014: [15:34:12] <Zauberfisch> thats bad
1015: [15:35:03] <micmania1> heh. I seen that a while back
1016: [15:35:09] <micmania1> so much for it being decoupled.
1017: [15:36:49] <Zauberfisch> well, it least checks if SiteTree exists as a class
1018: [15:36:51] <Zauberfisch> still nasty
1019: [15:37:20] <micmania1> yep
1020: [15:37:39] <micmania1> grep for class_exists("SiteTree")
1021: [15:39:59] * micmania2 has joined #silverstripe
1022: [15:40:49] <micmania2> I got 8 matches.
1023: [15:41:17] <micmania2> Filesystem, SapphireTest, MySQLDatabase, LeftAndMain and Security (+ changelog)
1024: [15:42:15] <micmania2> FullTextSearchable: if(class_exists("ContentController")) {
1025: [15:42:45] <willmorgan> yeah
1026: [15:42:53] <willmorgan> CMS decoupling is a very false dream
1027: [15:43:06] <willmorgan> when a lot of the CMS sits inside framework/
1028: [15:43:18] * micmania1 quit (Ping timeout: 240 seconds)
1029: [15:43:33] <micmania2> You also can't have the framework without admin so technically its still a CMS
1030: [15:43:36] * micmania2 is now known as micmania1
1031: [15:43:50] <micmania1> even without the actual CMS
1032: [15:44:41] <willmorgan> yeah
1033: [15:44:54] <willmorgan> I've tried writing code without the CMS before, even just without using SiteTree
1034: [15:44:58] <willmorgan> it's more difficult than it should be, imho
1035: [15:45:21] * g4b0_ has joined #silverstripe
1036: [15:45:26] <micmania1> yeah, i've been working on a big project without it
1037: [15:45:56] <micmania1> found myself copying a lot of code over and making PRs to take code from the CMS into framework
1038: [15:46:27] <micmania1> even the stuff to display nice error pages - you lose that.
1039: [15:55:47] * howardgrigg has joined #silverstripe
1040: [15:59:59] * howardgrigg quit (Ping timeout: 240 seconds)
1041: [16:09:05] * Liquide has joined #silverstripe
1042: [16:17:25] <Zauberfisch> Alfirin:
1043: [16:17:26] <Zauberfisch> wmk:
1044: [16:17:30] <Zauberfisch> updated it again
1045: [16:17:30] <Zauberfisch> https://gist.github.com/Zauberfisch/9226142
1046: [16:17:33] <Zauberfisch> now it works
1047: [16:17:35] <Zauberfisch> even tested it
1048: [16:17:37] <Zauberfisch> any everything
1049: [16:18:01] <Zauberfisch> even allows you to switch locale on Security
1050: [16:18:04] <Zauberfisch> pretty sweet
1051: [16:18:50] <Zauberfisch> micmania1: also found a rather nasty work around the Security thing
1052: [16:20:45] <Zauberfisch> Alfirin: you should update to the code from the gist
1053: [16:20:51] <Zauberfisch> now you can do <% loop getAvailableLocales %><a href="$Link" title="$NativeTitle">$ShortCode</a><% end_loop %> in your template
1054: [16:21:05] <Zauberfisch> and it will even work on the login page
1055: [16:22:02] * ARNHOE quit ()
1056: [16:22:51] <blablub> http://pastebin.com/rVnpX8e3 <-- why isn't .setWidth working
1057: [16:23:00] <blablub> shouldn't Image::get_by_id return an Image Object?
1058: [16:24:25] <Zauberfisch> blablub: I think it is case sensitive
1059: [16:24:27] <Zauberfisch> SetWidth
1060: [16:26:32] <Pysilisk> that moment when...
1061: [16:26:55] <Pysilisk> dev environment all set up nicely with version control
1062: [16:26:58] <blablub> Zauberfisch, yes you're right, but it still doesn't work even with SetWidth() :)
1063: [16:27:06] <Pysilisk> suddenly someone from live comes in "it's not working"
1064: [16:27:22] <Pysilisk> turns out, static server files aren't in version control, and are shared with live env.
1065: [16:27:25] <Pysilisk> WHOOPS
1066: [16:27:45] <Pysilisk> the dangers of static.mycoolsite.tld
1067: [16:28:32] * kk_ quit (Quit: Page closed)
1068: [16:28:35] <Pysilisk> [15:46] <micmania1> even the stuff to display nice error pages - you lose that.
1069: [16:28:36] <Pysilisk> hmm?
1070: [16:29:09] <Pysilisk> [15:33] <Zauberfisch> Secuirty is actually nasty
1071: [16:29:13] <Pysilisk> I tried to warn you!
1072: [16:29:30] <Pysilisk> FrozenFire and I have both have serious bitch sessions about that :<
1073: [16:29:57] <Pysilisk> In theory it's all designed to be quite modular. In reality it's quite tightly coupled and just a spagetti mess.
1074: [16:30:34] <blablub> Zauberfisch, got it, I should have set callerclass to 'Image' and not Page
1075: [16:31:07] <Alfirin> Thanks, Zauberfisch (I was away again)
1076: [16:31:18] <Pysilisk> also, nice work on translation controller extension Zauberfisch, looks neat :>
1077: [16:31:31] <Alfirin> So I don't need the old controller no more?
1078: [16:32:04] <Pysilisk> blablub: urgh, stop using outdated old syntax, it's deprecated and horrible
1079: [16:32:22] <Pysilisk> Image::get()->byID($page->ImageID)
1080: [16:32:53] <Pysilisk> ok? good. Also what Zauberfisch said, templates are case sensitive, SetWidth instead of setWidth.
1081: [16:32:54] <Pysilisk> :>
1082: [16:33:32] <blablub> Pysilisk, Yes sure, but how can I know? :)
1083: [16:33:55] <Pysilisk> blablub: because they're all marked deprecated and just by looking at it it's taking a parameter.
1084: [16:34:01] <Pysilisk> if it takes a parameter, it's wrong.
1085: [16:34:10] <Pysilisk> (rule of thumb, not hard and fast, of course).
1086: [16:34:38] <Pysilisk> blablub: if you see anything that takes a 'caller class' parameter, it's not to be used.
1087: [16:34:52] <Pysilisk> because 3.x uses LSB to figure that out for you.
1088: [16:35:31] <blablub> Pysilisk, thanks for let me know that
1089: [16:35:37] <Pysilisk> it's php 5.2 outdated leftovers, because you HAD to use DataObject::get_by_id('ClassName', 'ID')
1090: [16:36:04] <Pysilisk> but now late static binding lets PHP detect what class was called. So never do DataObject::get anymore, it's ClassName::get()
1091: [16:36:10] <Pysilisk> and it's chainable like jQuery
1092: [16:36:33] <Pysilisk> so you use methods to modify the query, rather than defining SQL segments as parameters.
1093: [16:36:50] <Pysilisk> blablub: as I've said before, if you haven't already... do read the tutorials. They're short, but very informative.
1094: [16:37:11] <Pysilisk> they're about 5mins each. Nothing to an experienced coder :)
1095: [16:38:17] <blablub> Pysilisk, I made the tutorials on version 2.4, maybe i should them again with 3.1
1096: [16:38:28] <Pysilisk> yes, forget almost everything you learnt about 2.4
1097: [16:38:37] <Alfirin> Zauberfisch, you truly are one magical fish
1098: [16:38:58] <Pysilisk> the basic ideas are all the same, sure. But the syntax, configuration, and execution order is VASTLY different.
1099: [16:39:29] <Pysilisk> blablub: ^ :>
1100: [16:39:49] <blablub> :)
1101: [16:40:01] <Zauberfisch> wmk: the solution ias actually rather simple
1102: [16:40:03] * r3v3rb is listening to: https://play.spotify.com/album/2ylGd3sptNeLGAQEjvGeVi
1103: [16:40:03] <Zauberfisch> echo "php_flag xdebug.remote_enable off" >> .htaccess
1104: [16:40:05] <Zauberfisch> done
1105: [16:40:09] <Zauberfisch> well
1106: [16:40:11] <Zauberfisch> cd phpmyadmin
1107: [16:40:11] <Zauberfisch> echo "php_flag xdebug.remote_enable off" >> .htaccess
1108: [16:40:13] <Zauberfisch> done
1109: [16:40:15] <Pysilisk> but in short, no more DataObject::get('ClassName'), it's ClassName::get()
1110: [16:40:16] <r3v3rb> I suggest you all do the same ;)
1111: [16:40:31] <Pysilisk> r3v3rb: nah, I suggest never listening to spotify.
1112: [16:40:52] <r3v3rb> Pysilisk: me either, but catching up on some good stuff I missed out on
1113: [16:40:58] <r3v3rb> Pysilisk: why, btw?
1114: [16:40:58] <Pysilisk> such as...
1115: [16:41:05] <Pysilisk> r3v3rb: because hatred.
1116: [16:41:08] <r3v3rb> lol
1117: [16:41:15] <ocm> http://www.grooveshark.com
1118: [16:41:17] <ocm> :D
1119: [16:41:18] <r3v3rb> \o/ why why why \o/
1120: [16:41:23] <Pysilisk> idiots make me super mad, and spotify is run by them.
1121: [16:41:42] <Pysilisk> or rather, bolshy cunts that try to dictate how I should do what I want to do.
1122: [16:41:49] <r3v3rb> but are they idiots you have to deal with?
1123: [16:41:53] <r3v3rb> or that
1124: [16:42:03] <r3v3rb> lmao
1125: [16:42:22] <Pysilisk> I want to listen to music. Spotify all OH YEAH BRO, JUST SIGN IN WITH SOCIAL MEDIA ALL THE THINGS AND LET EVERYONE KNOW EVERY SONG YOU LISTEN TO AND ALL THE THINGS AND MARKETING AND CAPATALISIM
1126: [16:42:44] <Pysilisk> How about... instead I just listen to music. However /I/ want to, in private.
1127: [16:43:10] <ocm> headphones \o/
1128: [16:43:19] <Pysilisk> Last year I bought some CDs.
1129: [16:43:26] <Pysilisk> it was a novel experience, but I enjoyed it.
1130: [16:44:11] <Alfirin> bbl
1131: [16:44:57] <r3v3rb> Pysilisk: I don't use social life crud when I sign in...
1132: [16:45:15] <r3v3rb> Last year I went and met people in the flesh
1133: [16:45:15] <ocm> r3v3rb., you hacked it?
1134: [16:45:26] <r3v3rb> it was a novel experience, but I enjoyed it!
1135: [16:45:38] <kinglozzer> We're recruiting a junior developer and are trying to think up some trick questions for a little quiz, anyone have any good ones? :P
1136: [16:45:46] <r3v3rb> ocm, no I'm using spotify web client
1137: [16:46:22] <r3v3rb> kinglozzer: ask him to go and buy you a skirting board ladder - if he/she leaves the room - DO NOT EMPLOY THEM
1138: [16:46:36] <Zauberfisch> wmk: commit is done. from now on xdebug should no longer bother us
1139: [16:46:42] <Zauberfisch> yay \o/
1140: [16:46:53] <r3v3rb> Zauberfisch: i thought we like xdebug
1141: [16:46:59] <Zauberfisch> we do
1142: [16:47:02] <kinglozzer> r3v3rb: Huh? :P
1143: [16:47:20] <r3v3rb> kinglozzer: ;)
1144: [16:47:44] <Zauberfisch> just not when you try to debug something and then phpmyadmin is being debuged as well
1145: [16:48:02] <r3v3rb> kinglozzer: ask him to quote you the 'spherical law of cosines' and what it would/could be used for
1146: [16:48:15] <r3v3rb> Zauberfisch: arhhh
1147: [16:48:35] <Zauberfisch> Alfirin: let me know if you run into any troubles with that script.
1148: [16:48:36] <Pysilisk> r3v3rb: when spotify came about, they were facebook sign in only.
1149: [16:49:04] <r3v3rb> Pysilisk: I signed up when it first started with just a 'username' 'email' and password
1150: [16:49:11] <Pysilisk> so I never signed up. and they rave on about supporting artists, and all that. You listen for free, etc. Artists make about 68c per year out of spotify.
1151: [16:49:14] <Pysilisk> which is shit.
1152: [16:49:14] <r3v3rb> years ago
1153: [16:49:29] <Pysilisk> despite them raving on about how awesome they are for artists and such rhetoric faff.
1154: [16:49:36] <Zauberfisch> kinglozzer: front or backend?
1155: [16:49:50] <r3v3rb> Pysilisk: sounds like Google Play/App Store for app developers - unless you rip off flappy fucking birds
1156: [16:50:02] <kinglozzer> Zauberfisch: Backend
1157: [16:51:06] <Pysilisk> r3v3rb: I have a secret plan. It's well observed that the only way to make money from apps is with birds.
1158: [16:51:12] <Pysilisk> so I'll make a game called the tit game.
1159: [16:51:16] <r3v3rb> Pysilisk: up for it them
1160: [16:51:18] <Pysilisk> it'll be amazing.
1161: [16:51:26] <r3v3rb> will it be blue?
1162: [16:51:33] <Pysilisk> it'll be great.
1163: [16:51:36] <micmania1> kinglozzer: You could ask "Which is the right way: Option 1, Option 2, Option 3 and why...?"
1164: [16:51:41] <r3v3rb> i love blue tits
1165: [16:51:48] <Pysilisk> I like great tits.
1166: [16:51:57] <Pysilisk> don't get any on my windowsil though.
1167: [16:52:03] <r3v3rb> I also love pink tits but don't find them in my garden as much
1168: [16:52:04] <Pysilisk> get coal and blue tits though I think
1169: [16:52:06] * muskie9 has joined #silverstripe
1170: [16:52:10] <Pysilisk> r3v3rb: oh you
1171: [16:52:14] <r3v3rb> :D
1172: [16:52:18] <Pysilisk> I have tits rubbing up against my window every morning! xD
1173: [16:52:29] <r3v3rb> Hopefully, they'll be all over the beach in summer
1174: [16:52:42] * r3v3rb sets up scope from office window
1175: [16:52:49] <r3v3rb> :\
1176: [16:52:50] <Pysilisk> also, people seem to make a great fuss over sparrows here. But in NZ sparrow is like tits. So many, everywheres.
1177: [16:53:00] <Pysilisk> hahah r3v3rb.
1178: [16:53:05] <Pysilisk> living the dream :>
1179: [16:53:12] <Pysilisk> are you right by the shorefront then?
1180: [16:53:34] <r3v3rb> not quite, but can see the see from all windows at front of house
1181: [16:53:39] <r3v3rb> sea*
1182: [16:53:47] <Pysilisk> but can it sea you?
1183: [16:53:51] <Pysilisk> x>
1184: [16:53:52] <r3v3rb> was a nice surprise
1185: [16:54:10] <Pysilisk> I grew up with a view of the ocean. Ocean > sea.
1186: [16:54:14] <Pysilisk> just say'n.
1187: [16:54:19] <Pysilisk> :P
1188: [16:54:21] <r3v3rb> also the bedroom windows receive the full glory of morning sunrise which has been remarkable :D
1189: [16:54:28] <Pysilisk> oh nice.
1190: [16:54:34] <Pysilisk> double insulated?
1191: [16:54:38] <r3v3rb> if a little bloody early
1192: [16:54:41] <Pysilisk> err, double glazed?
1193: [16:54:46] <r3v3rb> yes, double glazed/insulated
1194: [16:54:50] <Pysilisk> lovely.
1195: [16:55:32] <r3v3rb> aye, better than I anticipated - was slightly concerned with the road to the front but actually can't hear a thing
1196: [16:55:35] <Pysilisk> Sunrises/sunsets make the world go 'round.
1197: [16:55:45] <Pysilisk> SEE WHAT I DID THERE?
1198: [16:55:46] <Pysilisk> :P
1199: [16:55:53] <r3v3rb> I did I did
1200: [16:55:55] <Pysilisk> acutally, it's the other way around, but yeh.
1201: [16:56:03] <Pysilisk> the world going round makes sunrise/sets :P
1202: [16:56:23] <r3v3rb> actually its probably gravitational pulls that make the world go round no?
1203: [16:56:25] * ocm quit (Quit: HydraIRC -> http://www.hydrairc.com <- \o/)
1204: [16:56:42] <Pysilisk> r3v3rb: nfi what makes it spin. Why is a world when it spins I guess.
1205: [16:56:51] * howardgrigg has joined #silverstripe
1206: [16:57:21] <Pysilisk> sun's gravitational pull makes it orbit, which makes it summer/winter, yeh.
1207: [16:57:50] <r3v3rb> ffs, client has just emailed me this: can you confirm that we own xyz.com/co.uk domain its gone so i assume so?
1208: [16:58:03] <Pysilisk> what the derp :<
1209: [16:58:06] <r3v3rb> duh, why not point your browser at it and see the holding site I built for you!?
1210: [16:58:15] <r3v3rb> facking idiots
1211: [16:58:25] <Pysilisk> r3v3rb: yeah they're fucking special like that. I used to get account managers walk up to and ask me that all the time.
1212: [16:58:32] <r3v3rb> lmao
1213: [16:58:32] <Pysilisk> I'd open a new tab, type it in.
1214: [16:58:46] <r3v3rb> cracks me up - but makes me cry too
1215: [16:58:52] <Pysilisk> something comes up? Yes, think of something else. Go away and do that, type it in yourself when you think of it. Don't bother me.
1216: [16:59:02] <r3v3rb> aye
1217: [16:59:17] <r3v3rb> I'm not sure how to reply to the email - sarcastic or polite...
1218: [16:59:31] <Pysilisk> http://heeris.id.au/2013/this-is-why-you-shouldnt-interrupt-a-programmer
1219: [17:00:40] <Pysilisk> r3v3rb: if you're lucky and they're really that dumb, you can usually get away with both.
1220: [17:00:51] <r3v3rb> she certainly is
1221: [17:00:58] * howardgrigg quit (Ping timeout: 240 seconds)
1222: [17:01:00] <Pysilisk> Oh, is this ms legs?
1223: [17:01:01] <r3v3rb> but her dad is a good friend of mine
1224: [17:01:07] <Pysilisk> oh
1225: [17:01:09] <r3v3rb> legs got the push last friday
1226: [17:01:13] <Pysilisk> ROFL
1227: [17:01:14] <r3v3rb> :(
1228: [17:01:16] <Pysilisk> dat phrasing
1229: [17:01:20] <r3v3rb> not unsurprising
1230: [17:01:27] <r3v3rb> :)
1231: [17:01:33] <Pysilisk> push you mean 'get someone else to do it, wench'
1232: [17:01:38] <Pysilisk> ?
1233: [17:01:44] <r3v3rb> no 'sacked'
1234: [17:01:47] <r3v3rb> :\
1235: [17:01:51] <Pysilisk> from her job?
1236: [17:01:51] <r3v3rb> laid off
1237: [17:01:53] <r3v3rb> yes
1238: [17:01:54] <Pysilisk> lol
1239: [17:01:56] <Pysilisk> hilarious
1240: [17:02:10] <Pysilisk> for being terrible at life? Or is the boss even more unreasonable?
1241: [17:02:29] <Pysilisk> "we have no position for spider ladies here missy, be off with you!"
1242: [17:02:35] <r3v3rb> always going to happen when you use your exceptionally long legs to get anywhere - unless she was a model
1243: [17:02:46] <r3v3rb> or a spider
1244: [17:02:56] <Pysilisk> well, it'll work well until she gets a female boss, yeh.
1245: [17:03:19] <Pysilisk> "continue being stupid somewhere else."
1246: [17:04:12] <r3v3rb> which she had
1247: [17:04:17] <r3v3rb> hence - gone
1248: [17:04:48] <r3v3rb> although boss lady wears short leather skirts and extremely low cut see through tops - so I guess it works on a certain level
1249: [17:05:12] <r3v3rb> on another note, I think I have upset my new neighbour in the first week
1250: [17:05:48] <kinglozzer> Wtf, the callable type hint doesn't work D:
1251: [17:05:59] <kinglozzer> public function something(callable $param) { }
1252: [17:06:01] <r3v3rb> kinglozzer: of course it doesn't
1253: [17:08:11] <Pysilisk> r3v3rb: do go on about neighbour
1254: [17:08:49] <r3v3rb> sorry, yeh - I think he has car envy
1255: [17:08:58] <Pysilisk> you Engilsh really. If a new neighbour moves in and upsets the harmony, you let them know and they fix it. But no, English sulk and pout in silence, hating their neighbours for all eternity.
1256: [17:09:14] <Pysilisk> and thus, france.
1257: [17:09:17] <Pysilisk> :P
1258: [17:09:31] <r3v3rb> :D I love france that's why I keep moving closer
1259: [17:09:39] <Pysilisk> hahaha
1260: [17:09:46] <Pysilisk> yeah, but why is your neighbour pouting?
1261: [17:09:48] <Alfirin> Brits sound like finns in that regard
1262: [17:09:55] <r3v3rb> The only English that hate france/the frnech have never been there
1263: [17:09:57] <Alfirin> except here we sometimes end passive aggressive notes
1264: [17:10:30] <Pysilisk> We don't have that luxury. Aussies get all up in your face about the smallest shit.
1265: [17:10:50] <r3v3rb> Pysilisk: because he drives a 'gaffer' taped ford something or other estate and I turned up iin a nice shiny lotus elise s2 - he has started parking his car away from his house now!
1266: [17:10:59] <Alfirin> Zauberfisch, it works like a charm, thank you! I replaced the text with flags and even that worked smoothly
1267: [17:11:04] <Pysilisk> including things like pointing out that their national iconic racehorse was bred, raised and trained in NZ
1268: [17:11:25] * g4b0_ quit (Quit: Sto andando via)
1269: [17:11:31] <Pysilisk> r3v3rb: lol, that's not hate, that's shame. That's all his issue :P
1270: [17:11:49] <Pysilisk> just do that English thing where you invite folks around for a dinner.
1271: [17:11:52] <r3v3rb> :) lmao
1272: [17:11:54] <Pysilisk> and then don't.
1273: [17:12:00] <Pysilisk> just say you will, one day.
1274: [17:12:12] <Pysilisk> that seems to be the thing you do when you meet new people here.
1275: [17:12:18] <Pysilisk> "We should have you over for dinner one say"
1276: [17:12:19] <Pysilisk> day*
1277: [17:12:23] <r3v3rb> Pysilisk: you really must come down one day ;)
1278: [17:12:23] <Pysilisk> and then just... don't.
1279: [17:12:32] <Pysilisk> r3v3rb: I'm sure I will :P
1280: [17:12:34] <r3v3rb> bring your GF
1281: [17:12:43] <r3v3rb> we'll all go out to the beach
1282: [17:12:57] <Pysilisk> r3v3rb: so basically what you're saying is "wait until summer"
1283: [17:13:03] <r3v3rb> or you can watch the tits in my garden
1284: [17:13:08] <r3v3rb> s'up to you
1285: [17:13:09] <Pysilisk> I'd love that.
1286: [17:13:18] <Pysilisk> and the birds on the beach.
1287: [17:13:38] <r3v3rb> not sure how we'd square the scope usage to your GF my Wife, but we can try
1288: [17:13:38] <Pysilisk> gett'n their feed of fush and chups.
1289: [17:13:49] <Pysilisk> r3v3rb: ornathology.
1290: [17:13:57] <r3v3rb> pornathology
1291: [17:14:00] <r3v3rb> :P
1292: [17:14:21] <Pysilisk> just tell them you're scouting the shoreline for signs of boobies.
1293: [17:14:42] <r3v3rb> or shags
1294: [17:14:47] <Pysilisk> Missus will probably be too busy entertaining your wife trying to practice her spanish anyway.
1295: [17:18:07] <r3v3rb> arh yes, by all means - we can find a beer house
1296: [17:19:49] * FrozenFire quit (Ping timeout: 244 seconds)
1297: [17:22:59] * Guits quit (Ping timeout: 240 seconds)
1298: [17:25:31] <kinglozzer> Am I missing something? Does type hinting not work at all in SilverStripe?
1299: [17:25:59] <catcher> It seems to be impossible to paginate a modified datalist, yes?
1300: [17:26:42] <Pysilisk> catcher: define?
1301: [17:26:46] <Pysilisk> kinglozzer: eh?
1302: [17:26:48] <catcher> In order to modify a DL, it needs to be converted to an AL. As soon as you convert, lazy loading is broken, so the pagination limits don't apply.
1303: [17:27:00] <Pysilisk> kinglozzer: type hinting is a php thing, not an SS thin
1304: [17:27:03] <Pysilisk> thing*
1305: [17:27:13] <kinglozzer> Pysilisk: That's what I thought, but it doesn't work at all for me in SilverStripe
1306: [17:27:15] <catcher> the paginated list will only show records x of y, but the DB query gets them all every time.
1307: [17:27:16] <kinglozzer> It's completely ignored
1308: [17:27:17] * FrozenFire has joined #silverstripe
1309: [17:27:18] <Pysilisk> catcher: yeah, but you can set them up again.
1310: [17:27:27] <kinglozzer> Wonder if it's an error reporting thing, but I thought they were supposed to be fatal :/
1311: [17:27:41] <Pysilisk> catcher: well, a datalist isn't fetched until it's needed.
1312: [17:27:52] <catcher> Pysilisk, exactly, but an AL is fetched on creation
1313: [17:28:01] <Pysilisk> lazy loading happens after you've modified.
1314: [17:28:02] <Pysilisk> in theory
1315: [17:28:18] <Pysilisk> catcher: arraylists don't even just huh
1316: [17:28:23] <kinglozzer> $form = new Form($this,'MyForm',new FieldList(), new FieldList()); $form->setValidator('a string'); <<< surely this should fail, because setValidator(Validator $validator) {
1317: [17:28:23] <Pysilisk> array lists don't fetch anything
1318: [17:28:28] <kinglozzer> But it doesn't :/
1319: [17:28:45] * r3v3rb quit (Quit: r3v3rb)
1320: [17:28:51] <catcher> Pysilisk, I'm looking at showqueries=1, and when I convert to an arraylist, no limit is appled to the query. When I use an unmodified DL, limit is applied.
1321: [17:29:04] <Pysilisk> kinglozzer: interesting.
1322: [17:29:17] <FrozenFire> Pysilisk, Are you Pyromanik?
1323: [17:29:19] <Pysilisk> kinglozzer: test with some raw php. define a couple of classes and then shufti a string into the mix
1324: [17:29:22] <Pysilisk> FrozenFire: yup
1325: [17:29:31] <FrozenFire> You're in Australia, right?
1326: [17:29:34] <Pysilisk> Nup
1327: [17:29:37] <Pysilisk> I'm a Kiwi.
1328: [17:29:41] <kinglozzer> Pysilisk: I have just done that outside of a SilverStripe environment, to check I'm not going mental
1329: [17:29:42] <Pysilisk> And I'm in the UK
1330: [17:29:47] <FrozenFire> Bah. I swear someone here was from Australia
1331: [17:29:47] <kinglozzer> Will test a bit more
1332: [17:29:58] <Pysilisk> FrozenFire: yeh, lots of folks.
1333: [17:30:21] <Pysilisk> Colin[pi], bollig|designcity, designerx
1334: [17:30:25] <Pysilisk> a bunch of others.
1335: [17:30:34] <Pysilisk> whose handles escape me for the moment.
1336: [17:30:37] <FrozenFire> My younger sister is in Gladstone for several month, and I hoped to have someone I know in the area.
1337: [17:30:53] <Pysilisk> FrozenFire: to ... look out for her?
1338: [17:31:08] <FrozenFire> Nah. Just in case something goes wrong.
1339: [17:31:13] <Pysilisk> ah, I see.
1340: [17:31:18] <Pysilisk> I dunno where Gladstone is
1341: [17:31:35] <kinglozzer> WHAT THE HELL IT DOESN'T WORK
1342: [17:31:41] <FrozenFire> Queensland
1343: [17:31:48] <Pysilisk> oh yeh, close to brizzy?
1344: [17:32:02] <Pysilisk> or more townsville endd?
1345: [17:34:21] <Pysilisk> FrozenFire: oh yup, reasonably high up, half way to Mackay
1346: [17:34:31] <Pysilisk> Dunno anyone up that way
1347: [17:34:34] * FrozenFire quit (Read error: Connection reset by peer)
1348: [17:34:55] * FrozenFire has joined #silverstripe
1349: [17:35:29] <Pysilisk> FrozenFire: yeh that's half way to Mackay, I'm not aware of anyone up those ways
1350: [17:35:41] <FrozenFire> Blegh. My router keeps taking a shit
1351: [17:35:50] <Pysilisk> I noticed
1352: [17:36:13] * FrozenFire is seriously considering throwing a second NIC in his NAS and using that instead
1353: [17:36:29] <Pysilisk> all the acronyms beginning with N
1354: [17:36:59] <Pysilisk> NIC in yo NAT so you can NAT while you NNNNNNNNN
1355: [17:37:07] <Pysilisk> NAS* :<
1356: [17:37:19] <Pysilisk> NIC in the NAS so you can NAT while you NNNNNNNNNNNNN
1357: [17:37:35] * Pysilisk fucks shit up because it's past hometime and a 2 legged moth came in with a problem :<
1358: [17:38:32] <Alfirin> Swat it with a paper until it leaves
1359: [17:38:43] <Pysilisk> tried, but the problem appears to be legitimate.
1360: [17:39:08] <Alfirin> :<
1361: [17:39:09] <Pysilisk> It's not my problem to deal with, but my ride home is stuck here for now :<
1362: [17:39:14] <catcher> converting a DL to an AL causes the query to drop the limit imposed by pagination.
1363: [17:39:38] <Pysilisk> catcher: converting a DL to an AL causes the dataquery to be completely lost.
1364: [17:39:44] <Pysilisk> AL doesn't carry queries.
1365: [17:39:48] <Pysilisk> or do any querying.
1366: [17:39:57] <Pysilisk> or anything, besides what PHP can do with arrays.
1367: [17:40:17] <Alfirin> I think I've had enough silverstripe for one day
1368: [17:40:36] <Alfirin> I'll come back tomorrow, tho, don't think you get rid of me that easily
1369: [17:40:38] <Pysilisk> Alfirin: that sounds like nonsense to me :P
1370: [17:40:42] <catcher> Right, so it seems there's no way to maintain pagination when a DL needs to be edited.
1371: [17:40:43] <Pysilisk> good good :>
1372: [17:40:53] <Pysilisk> catcher: why are you editing a DL?
1373: [17:40:56] <Pysilisk> define 'editing'
1374: [17:41:03] <catcher> Pysilisk, need to add a couple properties
1375: [17:41:07] <Pysilisk> do what?
1376: [17:41:10] <Pysilisk> to*
1377: [17:41:18] * kinglozzer quit ()
1378: [17:41:21] <catcher> Pysilisk, each object within the list
1379: [17:41:24] <Alfirin> Haha, there's no such thing for you, is there, Pysilisk? SS is omnipresent
1380: [17:41:46] <Pysilisk> Alfirin: I have withdrawl issues because I'm working with Code Igniter for the moment :<
1381: [17:42:09] <Pysilisk> although I do kinda enjoy tippity tapping my own queries, the rest is... eh
1382: [17:43:13] <Alfirin> inconceivable, let's hope you get to jump back before you stab somebody
1383: [17:43:15] <Pysilisk> all the nicities of SS are gone. All the shortcuts, all the helpers, the classes, the things that would take me 15mins are taking me 15 hours :<
1384: [17:43:34] <Pysilisk> inconceivable!
1385: [17:43:57] <Pysilisk> http://mustbethistalltoride.files.wordpress.com/2014/01/inconceivable.jpg
1386: [17:44:01] <Alfirin> Why would they do that? Was it 3.0 thing?
1387: [17:44:08] <Pysilisk> Alfirin: eh?
1388: [17:44:09] * k_fish has joined #silverstripe
1389: [17:44:18] <Alfirin> Spot on
1390: [17:44:19] <Pysilisk> why would who do what?
1391: [17:44:27] <Alfirin> I can't use that word without the sound
1392: [17:44:46] <Pysilisk> hahah, true story.
1393: [17:45:00] <Alfirin> Like, was it simpler before?
1394: [17:45:02] <Pysilisk> but why would who do what?
1395: [17:45:08] <Pysilisk> was what simpler before
1396: [17:45:46] <Pysilisk> Code Igniter isn't much of anything beyond a simple route setup and a query wrapper. It's got nothing to do with silverstripe besides reminding me how nice it was.
1397: [17:46:09] <Pysilisk> if that's what you're asking
1398: [17:46:50] <Alfirin> I meant the nicities of SS, where have they gone to? Or is it just in comparison to others?
1399: [17:47:03] <Pysilisk> comparison to Code Igniter.
1400: [17:47:08] <Pysilisk> I don't have them, because i'm not using SS.
1401: [17:47:28] <Pysilisk> if I was using SS I could solve the issues I come up against each day in a matter of hours, rather than days.
1402: [17:47:50] <Pysilisk> though in part that has to do with me knowing the framework quite well.
1403: [17:48:05] * joelpittet has joined #silverstripe
1404: [17:49:18] <Alfirin> oooh right right, I thought you meant they were gone from SS, and I got worried
1405: [17:49:44] <Pysilisk> nah, they don't go away in SS, they just get better.
1406: [17:49:45] <Pysilisk> :>
1407: [17:49:59] <Pysilisk> the less as nice parts go away, slowly.
1408: [17:51:31] <Pysilisk> things like the security (login) system need a damn good tidyup, but because they're working and they're not critical they sit for some time.
1409: [17:51:50] <Pysilisk> it would be nice to work on them, but time is the factor!
1410: [17:51:57] * Guits has joined #silverstripe
1411: [17:52:18] <Alfirin> I figured it was something like that
1412: [17:52:44] <Alfirin> I mean, I bet no one wants it to be so complicated, but time is finite unfortunately, it's just a matter of priorities
1413: [17:52:55] <Alfirin> Which is, of course, only reasonable
1414: [17:53:01] * BPower has joined #silverstripe
1415: [17:53:11] <Pysilisk> Indeed. Going outside and having fun while I'm not at home seems like a good thing.
1416: [17:53:34] <Pysilisk> which is why hackfests are amazingly awesome events.
1417: [17:53:50] <BPower> What's the best way to accomplish this? $DataObject->Children()->filter_for_not_empty(FieldName);
1418: [17:53:51] <Pysilisk> social and hacky and semi productive all at the same time.
1419: [17:54:25] <Pysilisk> BPower: $obj->Children()->exclude('FieldName', '')
1420: [17:55:00] <Pysilisk> (the opposite of filter is exclude)
1421: [17:55:17] <Alfirin> I wish I could code, so I could enjoy it as well
1422: [17:55:29] <Pysilisk> Alfirin: seems like you can code, or else you wouldn't be here.
1423: [17:55:37] <Alfirin> but we already have a coder in the family, so I have to do something else
1424: [17:55:44] <Pysilisk> Alfirin: just gotta learn the framework and the design theory behind it.
1425: [17:55:52] <Pysilisk> Alfirin: nonsense.
1426: [17:55:53] <Alfirin> Nah, but I am good at guessing
1427: [17:55:59] <Pysilisk> you can code too!
1428: [17:56:03] <Pysilisk> everyone can code.
1429: [17:56:15] <Alfirin> :3
1430: [17:56:16] <Pysilisk> just a matter of whether they care enough to do so or not
1431: [17:56:17] <Pysilisk> :>
1432: [17:56:20] <Pysilisk> anyway, hometime
1433: [17:56:24] <Pysilisk> ciao
1434: [17:56:28] <Alfirin> bye bye!
1435: [17:56:28] <Pysilisk> until next time batmen!
1436: [17:56:32] * Pysilisk quit (Quit: Page closed)
1437: [17:56:37] <BPower> Pysilisk: Thanks! ....any chance you know how to do it in the Template? I tried $ChildEvents.exclude(LandingPageURL,'') to no avail.
1438: [17:56:39] <BPower> oh wait
1439: [17:56:46] <Alfirin> I shall take my leave too
1440: [17:57:08] <Alfirin> Again, Zauberfisch, thank you! I owe you big time
1441: [17:57:11] <muskie9> what would be the best way to store just a year in SS, just seeing Date/SS_Datetime but only need year.
1442: [17:57:21] * Alfirin quit (Quit: Page closed)
1443: [17:57:48] * howardgrigg has joined #silverstripe
1444: [17:58:04] <BPower> haha wow perfect timing. Pysilisk was right for both PHP and Template btw. I forgot to include my statement in the loop in addition to the if statement.
1445: [17:59:01] * desperate has joined #silverstripe
1446: [17:59:12] <desperate> eveniong guys
1447: [17:59:33] <desperate> this is strange:
1448: [17:59:37] <desperate> $res=Show::get()->filter(array('SearchShow' => 1, 'Eventlastdate:LessThan:not' => $row));
1449: [17:59:50] <desperate> $res->sort('Eventfirstdate');
1450: [17:59:57] <desperate> the sort doesn't work
1451: [18:00:09] <desperate> so I tried...
1452: [18:00:10] <desperate> $res=Show::get()->filter(array('SearchShow' => 1, 'Eventlastdate:LessThan:not' => $row))->sort('Eventfirstdate');
1453: [18:00:23] <desperate> the sort works but the filter doesn't
1454: [18:00:28] <desperate> what am I doing worng?
1455: [18:02:35] * howardgrigg quit (Ping timeout: 264 seconds)
1456: [18:04:08] * BPower quit (Remote host closed the connection)
1457: [18:06:41] <catcher> muskie9, int?
1458: [18:09:42] <catcher> desperate, $res = $res->sort('Eventfirstdate');
1459: [18:09:59] <catcher> desperate, http://api.silverstripe.org/3.1/class-DataList.html#_sort
1460: [18:13:10] <muskie9> catcher, probably, didn't know if Year was supported... I know it's available in mysql
1461: [18:14:00] <catcher> muskie9, nothing for year specifically: http://doc.silverstripe.com/framework/en/topics/data-types
1462: [18:16:32] <desperate> @catcher Thanks... stupid mistake
1463: [18:16:49] <catcher> desperate, np
1464: [18:25:36] <willmorgan> desperate: you could write your own YearFilter
1465: [18:25:44] <willmorgan> BeforeYearFilter, AfterYearFilter, etc
1466: [18:26:13] <willmorgan> and surely you mean "GreaterThanOrEqual" instead of "LessThan:Not"? :S
1467: [18:27:12] * gelignite has joined #silverstripe
1468: [18:29:29] * r3v3rb has joined #silverstripe
1469: [18:30:42] * r3v3rb quit (Client Quit)
1470: [18:30:49] * willmorgan quit (Ping timeout: 240 seconds)
1471: [18:30:53] <desperate> i don't seem to be able to flush my site
1472: [18:30:54] <desperate> http://192.168.0.2/silverstripe/index.php/flush=1
1473: [18:31:05] <desperate> Sorry, it seems you were trying to access a page that doesn't exist.
1474: [18:33:34] <desperate> i managed it.. does anyone else have issue flushing the cache?
1475: [18:33:45] <catcher> desperate, why the index.php?
1476: [18:34:09] <catcher> and that's supposed to be a query parameter, not an action
1477: [18:34:10] <catcher> ?flush=1
1478: [18:34:27] <desperate> i don't know, actually my local server doesn't need it, but my dev does
1479: [18:34:33] <desperate> is that server config issue?
1480: [18:34:44] <catcher> desperate, yes, often mod_rewrite missing
1481: [18:35:01] <desperate> ah ok need sys admin to look into that
1482: [18:36:13] <catcher> desperate, phpinfo() can tell you that
1483: [18:57:46] * Shrike_Finland has joined #silverstripe
1484: [18:58:44] * howardgrigg has joined #silverstripe
1485: [19:02:30] * Shrike_Finland quit (Ping timeout: 265 seconds)
1486: [19:02:44] * SightUnseen has joined #silverstripe
1487: [19:02:57] * howardgrigg quit (Ping timeout: 240 seconds)
1488: [19:02:58] * SightUnseen has left #silverstripe
1489: [19:04:21] * Guits quit (Quit: Leaving)
1490: [19:08:51] * joelpittet quit ()
1491: [19:10:00] * r3v3rb has joined #silverstripe
1492: [19:16:11] * SphereSilverNL has joined #silverstripe
1493: [19:16:41] <SphereSilverNL> Hey, quick question, I can't access www.mydomain.com/ControllerName/getFunction anymore in 3.2. Is this correct?
1494: [19:23:54] * oddnoc has joined #silverstripe
1495: [19:24:24] <SphereSilverNL> Ow, wait, facepalmheaddesk.
1496: [19:24:33] <SphereSilverNL> It could be useful to commit and push the routes.yml
1497: [19:29:11] * micmania1 has joined #silverstripe
1498: [19:32:11] <micmania1> anybody had problems running compass watch in framework or framework/admin?
1499: [19:32:23] <micmania1> I'm getting "LoadError on line ["36"] of /usr/lib/ruby/1.9.1/rubygems/custom_require.rb: cannot load such file -- compass-colors"
1500: [19:32:52] <micmania1> and its failing when trying to require 'compass-colors' in config.rb
1501: [19:41:59] <micmania1> Figured it out :D
1502: [19:42:09] <micmania1> gem install compass-colors did the tridk
1503: [19:42:14] <micmania1> or trick
1504: [19:51:50] * zippy___ has joined #silverstripe
1505: [19:53:05] * antmas has joined #silverstripe
1506: [19:53:11] <zippy___> morning
1507: [19:53:39] <antmas> le moin
1508: [19:53:54] * k_fish quit (Read error: Connection reset by peer)
1509: [19:53:56] <simon_w> ss23, I BOUGHT MY OWN CAFFEINE THIS MORNING
1510: [19:54:05] * k_fish_ has joined #silverstripe
1511: [19:54:18] <zippy___> UncleCheese writes some cool modules eh!
1512: [19:54:28] <zippy___> When is the next developer meetup?
1513: [19:54:45] <simon_w> NEVER! MUAHAHAHAHAHA!
1514: [19:55:28] <zippy___> :P
1515: [19:56:08] <zippy___> ss23: where will the videos go of the latest one, is there a page I can watch / rss feed / email list or something to get alerted?
1516: [19:56:34] <simon_w> zippy___, vimeo tends to be the place, also there tends to be a blog post announcing their availability
1517: [19:56:53] <zippy___> ta
1518: [19:56:53] * jrthomer_ has joined #silverstripe
1519: [19:56:58] * jrthomer quit (Read error: Connection reset by peer)
1520: [19:59:42] * howardgrigg has joined #silverstripe
1521: [20:03:28] * r3v3rb quit (Ping timeout: 265 seconds)
1522: [20:03:58] * howardgrigg quit (Ping timeout: 240 seconds)
1523: [20:04:44] <antmas> zippy___: he does :D
1524: [20:05:19] <antmas> mmm dat Primo Iced Coffee
1525: [20:10:56] <simon_w> Wonka Sherbet Fizz is 2 for $2
1526: [20:10:58] <simon_w> Uh oh
1527: [20:11:39] * r3v3rb has joined #silverstripe
1528: [20:15:32] * zippy___ quit (Ping timeout: 256 seconds)
1529: [20:16:20] * zippy___ has joined #silverstripe
1530: [20:21:04] <antmas> zippy___: how much is your firbre plan p/m?
1531: [20:21:14] <zippy___> $75 + 5 for static ip
1532: [20:21:15] <antmas> fibre*
1533: [20:21:24] <antmas> gbs?
1534: [20:21:27] <zippy___> 100
1535: [20:21:32] <antmas> hot damn
1536: [20:21:44] <antmas> VDSL is like 105 for the same thing
1537: [20:21:48] <simon_w> zippy___, you have to pay for a static IP?
1538: [20:21:58] <zippy___> simon_w: yes
1539: [20:22:05] <simon_w> Your ISP sucks :p
1540: [20:22:09] <r3v3rb> antmas: in the uk I am paying £27 for 78/19 unlimited data - is that good?
1541: [20:22:25] <antmas> r3v3rb: better than anything in NZ
1542: [20:22:37] <simon_w> I pay $85 for 130/10
1543: [20:22:40] <r3v3rb> oh right, is it expensive there?
1544: [20:22:44] <r3v3rb> wow!
1545: [20:22:51] <r3v3rb> still 130 down
1546: [20:22:54] <r3v3rb> ;)
1547: [20:23:01] <simon_w> Suck that, UFB :p
1548: [20:23:13] <r3v3rb> :D
1549: [20:23:14] <antmas> wish they'd hurry up and put UFB in my area
1550: [20:23:42] <simon_w> antmas, they need to do it before I leave so my internet will still be faster than yours :p
1551: [20:23:43] <zippy___> antmas: https://myaccount.snap.net.nz/signup/home
1552: [20:23:45] <antmas> simon_w: will you be on cable in AU?
1553: [20:23:50] <r3v3rb> what on earth could you do with 130 down - I wonder
1554: [20:24:01] <simon_w> antmas, I hope so, though I'll be lucky to get ADSL2 :(
1555: [20:24:09] <zippy___> r3v3rb: f all
1556: [20:24:22] <r3v3rb> zippy___: )
1557: [20:24:25] <antmas> simon_w: dang
1558: [20:24:28] <simon_w> r3v3rb, get stuck before a base station that only has 100mbit ethernet
1559: [20:24:36] <r3v3rb> simon_w: ouch
1560: [20:24:36] <simon_w> antmas, yeah, Australia's internet is shit
1561: [20:24:38] <antmas> zippy___: can't get it up Nile st yet
1562: [20:24:50] <simon_w> NZ's is mostly due to poor wiring in houses
1563: [20:24:57] <simon_w> AU's is actually shit
1564: [20:25:11] <r3v3rb> my cheapass connection though is only producing 48/12 at the moment though
1565: [20:25:55] <antmas> still better than ADSL
1566: [20:26:09] <simon_w> That's not hard
1567: [20:26:15] <antmas> I mostly just want to be able to use Steam home sharing and Netflix at the same time :P
1568: [20:27:24] <antmas> 720p at 30FPS for home sharing uses like 30 down
1569: [20:28:42] <r3v3rb> i'm just happy i can use tvcatchup with the HD channels
1570: [20:30:42] <r3v3rb> anyhow, time to do some work and quit the iRC
1571: [20:30:54] <r3v3rb> see you all tomorrow no doubt
1572: [20:31:27] <antmas> l8r!
1573: [20:31:32] <simon_w> But will you love us tomorrow?
1574: [20:31:32] <r3v3rb> antmas: au revoir
1575: [20:31:45] <desperate> in my model I have created a coulmn in my db type boolean how do i default to true/on?
1576: [20:31:46] <r3v3rb> simon_w: of course, I'm a good catholic boy
1577: [20:31:47] <desperate> static $defaults = array('Publish' => 1);
1578: [20:31:56] <desperate> static $defaults = array('Publish' => true);
1579: [20:32:12] <simon_w> desperate, either of them works
1580: [20:33:17] * oddnoc has left #silverstripe
1581: [20:33:27] * oddnoc has joined #silverstripe
1582: [20:36:19] <desperate> then i probably need to flush that's all
1583: [20:36:32] * r3v3rb quit (Quit: r3v3rb)
1584: [20:39:34] * tankr has joined #silverstripe
1585: [20:42:18] <zippy___> dev/build and flush are my two productivty destroyers....
1586: [20:42:32] <zippy___> because as I wait, I wander over to other websites
1587: [20:44:49] <simon_w> zippy___, you need a faster computer
1588: [20:44:55] <zippy___> perhaps
1589: [20:45:07] <zippy___> I don't have much patience
1590: [20:45:36] <simon_w> Maybe you should learn some then
1591: [20:45:49] <zippy___> I wonder if there is a tutorial
1592: [20:48:22] <antmas> dev/build is always fast for me
1593: [20:48:27] <antmas> flush seems to take it's time though
1594: [20:49:14] <zippy___> 7 sec dev build, 9 sec flush on this site
1595: [20:49:37] <zippy___> hmm
1596: [20:50:17] <zippy___> I got this field, new TreeMultiselectField('FooterLinks', null, 'Page') - which throws a 500 error saying ERROR [User Error]: Uncaught Exception: Object->__call(): the method 'footerlinks' does not exist on 'SiteConfig'
1597: [20:50:18] <zippy___> IN POST /admin/settings/EditForm
1598: [20:50:26] <zippy___> if I use a TreeSelectField - it saves fine
1599: [20:50:30] <zippy___> in ss 3.1.1
1600: [20:51:25] <zippy___> looks like 3.1.2 had a bunch of fixes and tweaks for it, maybe i'll have to upgrade....
1601: [20:56:15] <zippy___> nuts, didn't fix it
1602: [20:56:22] <zippy___> ohh
1603: [20:56:49] <zippy___> FooterLinks needs to be a many many with page
1604: [20:57:06] * OxFF1 has joined #silverstripe
1605: [21:00:34] * gurubobnz has joined #silverstripe
1606: [21:00:44] * gurubobnz has left #silverstripe
1607: [21:00:46] * howardgrigg has joined #silverstripe
1608: [21:04:49] * howardgrigg quit (Ping timeout: 240 seconds)
1609: [21:07:04] <spronk> omg
1610: [21:07:05] <spronk> http://www.stuff.co.nz/national/9801364/Police-bust-suspected-P-lab
1611: [21:07:06] <spronk> it's ss23!
1612: [21:07:51] <spronk> :P
1613: [21:13:37] * UndefinedOffset quit (Quit: Leaving.)
1614: [21:15:38] <ss23> simon_w: I GOT MINE TOO
1615: [21:15:42] <ss23> In the form of free coke
1616: [21:15:42] <ss23> :D
1617: [21:15:46] <Stomach> see
1618: [21:15:47] <Stomach> drugs
1619: [21:18:03] <antmas> I need something to drink
1620: [21:18:04] <antmas> halp
1621: [21:19:59] <zippy___> just got me a coffee
1622: [21:21:00] * willmorgan has joined #silverstripe
1623: [21:21:57] <zippy___> This tool is quite useful; https://github.com/rupa/z - it tracks which folders you visit a lot on the command line. then you can just type 'z xx' where xx is a fragment of a folder name, and it matches up the most frequent folder that contains that and takes you there
1624: [21:22:37] <zippy___> so instead of, cd ~/Sites/changs_projects/foobar_site/ you can just do z foo and it will take you there
1625: [21:22:41] * shirstrek has joined #silverstripe
1626: [21:23:31] <oddnoc> you can even do z project1 mysite code and it will drop you in there directly if you have been there before
1627: [21:25:33] <zippy___> choice :)
1628: [21:25:46] * SphereSilverNL quit (Remote host closed the connection)
1629: [21:30:11] * shirstrek quit (Ping timeout: 264 seconds)
1630: [21:35:24] * HeartlandTechie has joined #silverstripe
1631: [21:37:24] <simon_w> ss23, sherbet fizz is 2 for $2. Is amazing.
1632: [21:38:31] * guttmann has joined #silverstripe
1633: [21:43:17] <micmania1> What's the best versioned gridfield module? is there one in ajshort's grid field extensions?
1634: [21:45:31] <catcher> micmania1, I'm using this one: https://github.com/icecaster/silverstripe-versioned-gridfield
1635: [21:45:43] <micmania1> just look at it now, cheers
1636: [21:46:17] <catcher> seems to be pretty solid. I have a pull request in the works for a minor addition, will finish that up asap.
1637: [21:51:31] * SightUnseen has joined #silverstripe
1638: [21:52:47] * SightUnseen has left #silverstripe
1639: [21:55:28] * willmorgan quit (Ping timeout: 252 seconds)
1640: [21:59:28] <guttmann> does anyone know how the default route for a controller works if that controller is within a namespace?
1641: [22:00:39] <ss23> lol simon_w
1642: [22:00:48] <ss23> simon_w: You misunderstand me, if I want sherbert, I'll get it in bulk
1643: [22:00:49] <ss23> :D
1644: [22:01:09] <simon_w> guttmann, uses the fully qualified name
1645: [22:01:29] * gelignite quit (Quit: http://bit.ly/nkczDT)
1646: [22:01:37] * howardgrigg has joined #silverstripe
1647: [22:03:53] * mobiusnz1 quit (Quit: Leaving.)
1648: [22:05:38] * howardgrigg quit (Ping timeout: 240 seconds)
1649: [22:06:10] * Colin[pi] has joined #silverstripe
1650: [22:07:52] <guttmann> simon_w: does it? I'm talking about when a controller is accessible by it's class name e.g. localhost/Page_Controller is fine but localhost/MyNamespace\MyController is not
1651: [22:08:34] <simon_w> guttmann, yes, works for us. Though you really should be adding routes rather than relying on one that's being removed in 3.2
1652: [22:08:52] <guttmann> oh I am adding routes just want to handle the situation where they haven't been added
1653: [22:09:29] <catcher> Is there any way to use pagination with an ArrayList?
1654: [22:09:41] <guttmann> simon_w: if that feature is going then I just won't worry about it, thanks for the help :)
1655: [22:09:57] * mobiusnz has joined #silverstripe
1656: [22:10:09] <catcher> I can get the items showing up as paginated on the front-end, but not while having the limit applied to the actual DB query.
1657: [22:12:06] <simon_w> catcher, Use setLimitItems(false), setPageLength(), setPageStart() and setTotalItems()
1658: [22:12:29] <simon_w> If you're using a SQLQuery object with a LIMIT clause, you can just use setLimitItems() and setPaginationFromQuery()
1659: [22:13:24] <catcher> simon_w, I'm creating my AL from a DL, and then adding some properties to each object in a foreach
1660: [22:14:01] <Colin[pi]> HAI EV-RE-1
1661: [22:14:10] <zippy___> OH HAI!
1662: [22:14:16] <Colin[pi]> HI ANTMAS
1663: [22:14:24] <Colin[pi]> HI ZIPPY
1664: [22:14:34] <Colin[pi]> MY CAPS LOCK IS STUCK
1665: [22:14:36] <Colin[pi]> ;)
1666: [22:17:13] * zippy___ is now known as zippy__
1667: [22:18:19] * SightUnseen has joined #silverstripe
1668: [22:18:42] * SightUnseen has left #silverstripe
1669: [22:23:02] <ss23> ah, nothing like clicking some goaste at work on a friday
1670: [22:23:14] <Colin[pi]> lol wut
1671: [22:23:22] <Colin[pi]> is that like, company policy in the morning?
1672: [22:23:26] <ss23> hahahaha
1673: [22:23:30] <ss23> I didn't mean to!
1674: [22:23:31] <catcher> goaste.. almost as nasty, but slightly transparent
1675: [22:23:42] <Colin[pi]> NOTHING MOTIVATES THE TEAM LIKE A GIANT PROLAPSED ANUS
1676: [22:24:14] <ss23> rofl
1677: [22:24:28] <Colin[pi]> THIS WILL BE YOU IF YOU DONT FINISH BY 5PM
1678: [22:24:41] <simon_w> http://ss.org.nz/3
1679: [22:24:48] <Stomach> sherbert motivates this channel more than anything judging by this mornings conversation... the combination of the two leaves me feeling kind of ill
1680: [22:24:49] * Colin[pi] is scared to click that link
1681: [22:25:01] <ss23> lol
1682: [22:25:02] <simon_w> Is SFW
1683: [22:25:02] <ss23> SFW
1684: [22:25:14] <Stomach> Sam for work
1685: [22:25:18] <Colin[pi]> ahahaha
1686: [22:25:22] <Colin[pi]> <3 u sminnee
1687: [22:31:12] <Colin[pi]> sminnee seems like he'd be an awesome boss to work for
1688: [22:31:18] * Colin[pi] looks knowingly at ss23
1689: [22:36:11] <ss23> lol
1690: [22:36:17] <ss23> Maybe
1691: [22:36:22] * ss23 looks around
1692: [22:36:25] <ss23> Okay he's not here, phew
1693: [22:36:28] <Colin[pi]> hehe
1694: [22:36:35] <ss23> Naw, he's a fun boss. Some people find him way too.... maybe... abrhasive?
1695: [22:36:45] <ss23> People ask a question and he's like "HERE IS A 10 SECOND ANSWER LOL BYE"
1696: [22:36:49] <Colin[pi]> ahah
1697: [22:36:52] <Colin[pi]> he's busy
1698: [22:36:54] <ss23> But I prefer it
1699: [22:36:54] <ss23> yeah
1700: [22:37:05] <Colin[pi]> good bosses I've found are like that
1701: [22:37:25] <simon_w> Just need to make this button work. Progress and stuff!
1702: [22:37:34] <Colin[pi]> :o
1703: [22:39:03] * micmania1 quit (Read error: Connection reset by peer)
1704: [22:39:26] * micmania1 has joined #silverstripe
1705: [22:39:37] <simon_w> https://files.app.net/2msz3G-9H.png
1706: [22:39:53] <simon_w> Anyone else spot a problem with the limitations in the things you can theme in Xcode?
1707: [22:39:53] <ss23> simon_w: Stop yelling
1708: [22:39:59] <ss23> simon_w: you're making it scared and it's running away to hide
1709: [22:42:01] <Colin[pi]> question, if someone wanted you to make this functionality in SS, would you: a) adapt ModelAdmin b) built a custom form/template? http://imgur.com/Gw94E0k
1710: [22:42:07] <Colin[pi]> *build
1711: [22:42:51] <Colin[pi]> I'm thinking the latter
1712: [22:43:52] <ss23> front end or back end?
1713: [22:44:12] <Colin[pi]> can be either
1714: [22:44:35] <Colin[pi]> I was originally going to do backend, but I think it'd be easier as a secured frontend form tbh
1715: [22:45:36] * Jakx has joined #silverstripe
1716: [22:45:40] <Jakx> yo
1717: [22:46:48] <Jakx> What is the syntax for the new way to validEmailAddr($email)?
1718: [22:49:22] <simon_w> Email::validEmailAddress($email)
1719: [22:50:12] <Stomach> is there a way to disable the "Add new" button in the pages layout of the CMS without setting canCreate to false on every pagetype?
1720: [22:50:33] * osokin has joined #silverstripe
1721: [22:51:03] <Jakx> Stomach, have you considered setting canCreate() within your Page.php?
1722: [22:51:31] <Stomach> I want to retain the ability for the user to create pages, just not through the treeview
1723: [22:51:42] <Stomach> so I can't set canCreate to false on all pages
1724: [22:51:53] <Stomach> (I have a modeladmin setup for managing pages)
1725: [22:56:43] <spronk> man
1726: [22:56:48] <spronk> objective c can be pretty ugly sometimes..
1727: [22:57:19] * micmania1 quit (Read error: Connection reset by peer)
1728: [22:57:41] <ss23> spronk: So it suits you!
1729: [22:57:42] <ss23> :d
1730: [22:59:46] <Colin[pi]> OH BURN
1731: [22:59:59] * osokin quit (Ping timeout: 240 seconds)
1732: [23:00:32] * will has joined #silverstripe
1733: [23:00:46] <zippy__> Stomach: css / js to remove the button?
1734: [23:00:56] * will is now known as Guest64088
1735: [23:01:09] <Stomach> yeah, we could do that - but I might have a look a bit deeper :P
1736: [23:01:46] <Stomach> the use case is that we have one user who can edit one page in the tree, and add blog entries through a model admin, but they still get the add button
1737: [23:01:50] <Guest64088> hello everyone
1738: [23:01:59] <Guest64088> logging. it doesn't seem to like me.
1739: [23:02:08] <Stomach> either I need to pull the page out to be editable in a modeladmin (like siteconfig is) or to remove that button :D
1740: [23:02:31] <Guest64088> iv'e set it up to log to a file. but nothing happens at all
1741: [23:02:32] <Guest64088> :/
1742: [23:02:35] * howardgrigg has joined #silverstripe
1743: [23:02:38] <Guest64088> do i have to set a path?
1744: [23:02:54] <Stomach> Guest64088 - do you have an error log set up in php.ini ?
1745: [23:03:15] <Stomach> it should look something like "error_log /var/log/php_error.log"
1746: [23:03:43] <Guest64088> oh, you set it up at that level? not in _config.php?
1747: [23:04:26] <Stomach> usually, yes
1748: [23:04:30] <Stomach> http://stackoverflow.com/questions/3531703/how-to-log-errors-and-warnings-into-a-file
1749: [23:04:42] <Stomach> or something like that I guess
1750: [23:05:13] <Stomach> relying on the code to get executed so that it can write to an error log is probably not the best idea though..
1751: [23:06:59] * howardgrigg quit (Ping timeout: 252 seconds)
1752: [23:08:19] * nickmolhoek has joined #silverstripe
1753: [23:12:42] * joelpittet has joined #silverstripe
1754: [23:14:20] <spronk> :(
1755: [23:15:06] <Guest64088> oh hang on, im talking about the silverstripe log, not php
1756: [23:15:25] <Guest64088> so being able to log stuff like: SS_Log::log("Dammit, an issue with variable ", SS_Log::WARN);
1757: [23:15:30] <Guest64088> and it appearing somewhere
1758: [23:15:32] <Guest64088> ?
1759: [23:17:42] * blablub quit (Quit: Leaving)
1760: [23:18:10] <spronk> wow
1761: [23:18:14] <spronk> composer is actually waaay better than npm
1762: [23:18:26] <guttmann> how so?
1763: [23:19:23] <spronk> 1) it downloads a full git repo for each dependency, so a) you don't have to make changes to a separate place, then manage merging later on. 2) scm repos are first class citizens, so you can just be like.. this dependency <name> is found in this repository, and composer is smart enough to still be able to do versioning
1764: [23:19:44] <spronk> 3) it handles shared dependencies far less weirdly
1765: [23:21:59] <simon_w> spronk, and to think, it's even more over-engineered than the Symfony it's built on
1766: [23:22:43] * muskie9 quit ()
1767: [23:23:02] <spronk> lol
1768: [23:28:08] * Guest64088 quit (Ping timeout: 245 seconds)
1769: [23:28:14] * catcher quit (Quit: Leaving)
1770: [23:30:19] <ss23> lol
1771: [23:30:22] <ss23> Repo from an external dev
1772: [23:30:24] <ss23> "Resolves Issue #96 ie8 quirks mode being a dick"
1773: [23:30:35] <Colin[pi]> lol
1774: [23:31:00] <ss23> He's right though, ie8 quirts mode is a cuntface
1775: [23:32:47] * joelpittet is now known as joelpittet|food
1776: [23:40:54] <Colin[pi]> applying patch to production server: http://i.imgur.com/cD8Y7fh.gif
1777: [23:41:36] <ss23> XD
1778: [23:42:33] <simon_w> I fixed the double posting by making it quadruple post instead!
1779: [23:44:17] * UncleCheese has joined #silverstripe
1780: [23:44:51] <Colin[pi]> simon_w: you know that big white building here in Woden?
1781: [23:45:00] <Colin[pi]> the tallest in Canberra (lol)
1782: [23:45:09] <Colin[pi]> going to become an empty shell soon :o
1783: [23:45:14] <simon_w> Colin[pi], Department of Health?
1784: [23:45:19] <Colin[pi]> Vet Affairs mainly
1785: [23:45:26] <Colin[pi]> 500 jobs to go bye bye
1786: [23:45:34] <Colin[pi]> rest of operations to move to Civic
1787: [23:45:40] <simon_w> Colin[pi], cheap office space!
1788: [23:45:45] <Colin[pi]> that cafe in the foyer must be shitting themselves
1789: [23:46:04] * babak quit (Quit: Connection closed for inactivity)
1790: [23:46:52] <simon_w> Especially if they can't find new tenants for the building quickly enough
1791: [23:47:17] <simon_w> I guess they could always turn it into apartments
1792: [23:47:28] <Colin[pi]> http://www.canberratimes.com.au/act-news/exodus-of-public-servants-from-woden-gathers-pace-20140306-34aji.html
1793: [23:48:20] <spronk> wow.
1794: [23:48:31] <Colin[pi]> Veterans Affairs has like 15 floors of that building, that'll all be empty
1795: [23:48:33] <spronk> managing dependencies for deployment with node/npm is fucking horribvle
1796: [23:50:02] <simon_w> Man, moving to Gungahlin. The public servants must hate that
1797: [23:50:21] <Colin[pi]> if they commute from the south side, that's a looong time
1798: [23:50:33] <Colin[pi]> well, for canberra anyway
1799: [23:50:46] <simon_w> Yeah. Does the blue route even go that far?
1800: [23:51:48] <Colin[pi]> Goes to Belconnen at least.. not sure after that!
1801: [23:52:15] <Colin[pi]> wait, Gungahlin is Red
1802: [23:52:19] <Colin[pi]> they'd have to transfer
1803: [23:52:21] <Colin[pi]> ouccch
1804: [23:52:46] <pippy> https://github.com/silverstripe-labs/silverstripe-staticpublisher/pull/35
1805: [23:53:08] <pippy> i've made a small change to get the exporter module working on SS 3.1
1806: [23:54:42] <simon_w> It doesn't even go south side at all. That transfer's going to suck
1807: [23:55:13] <ss23> All is well — The Travis CI build passed
1808: [23:55:15] <ss23> SHIP IT
1809: [23:56:05] <ss23> This change looks good, but I don't have capacity or pre-existing knowledge to merge sorry, pippy
1810: [23:56:13] <ss23> pippy: If no one merges in a week, ping me again :)
1811: [23:57:56] * joelpittet|food is now known as joelpittet

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