#silverstripe IRC Log

IRC log for 10 February 2015

All timestamps are in UTC.

1: [00:00:05] * camfindlay has joined #silverstripe
2: [00:00:24] * Zopiclone quit (Client Quit)
3: [00:03:46] * muskie9 is now known as muskie9_afk
4: [00:10:14] * eagles0513875 quit (Quit: ZNC @ TrekWeb - https://trekweb.org)
5: [00:18:11] * kerosene has joined #silverstripe
6: [00:32:51] <EasyCo> Heya guys, been a while since I've had to work with Silverstripe. Good to see all the familiar faces/names still hanging around.
7: [00:32:58] <zippy> hi
8: [00:33:16] <EasyCo> Is Simon still kicking about?
9: [00:33:27] <Ryan-Toast> We ate him.
10: [00:33:33] <Ryan-Toast> He’s goene now.
11: [00:33:43] <EasyCo> He'd fill up a few people at that height
12: [00:34:21] <Stomach_> probably explode a few too
13: [00:34:30] * Stomach_ is now known as Stomach
14: [00:38:08] <zippy> man I am on the fence
15: [00:39:55] <zippy> a) reboot the machine every morning, buy a new rMB 15" at next update or b) Buy a macbook 13" retina now and then buy a rMB 15" when Skylake ships....
16: [00:42:02] <EasyCo> Could be a while before the next rMB update, no?
17: [00:42:44] <zippy> probably a couple of months...
18: [00:43:05] <zippy> avg 240-280 days. and been 196 days so far
19: [00:46:48] <EasyCo> I'd wait :)
20: [00:47:03] * Cramb has joined #silverstripe
21: [00:47:29] <zippy> but then if I get a new 15" in a few months, but then skylake one ships 7 months later, is it better just to get a new machine now, and then get that one in a years time.
22: [00:47:53] <zippy> maybe I should do some work instead of dreaming :)
23: [00:47:56] <Cramb> Hi whats the best way to search for certain pagetypes which are children of a certain page
24: [00:48:22] <zippy> Cramb: well, you can do $this->AllChildren()->Filter('ClassName', 'OtherPage');
25: [00:49:19] <Cramb> Cheers Zippy bit in a bit of a brain freeze today
26: [00:51:03] <EasyCo> If I'm looking to add a tab and some functionality to the Silverstripe Security/user page whereabouts should I be looking? SecurityAdmin? My SS fu is pretty rusty.
27: [00:51:55] <zippy> EasyCo: You'd probably want to create an dataExtensionon Member then use updateCMSFields
28: [00:52:14] <EasyCo> Ah ok, Member! I'll have a look there, thanks.
29: [00:52:36] <EasyCo> Been a while... this is going to be fun.
30: [00:56:40] <antmas> EasyCo
31: [00:56:49] <EasyCo> 'tis I
32: [00:56:57] * muskie9_afk is now known as muskie9
33: [00:57:18] <antmas> that name always reminds me of EasiYo
34: [00:57:24] <antmas> yoghurt mans
35: [00:57:25] <antmas> :D
36: [00:57:36] <antmas> I'm bored
37: [00:57:50] <Colin[pi]> lol
38: [00:57:52] <EasyCo> Hah, I remember you saying that a few years ago
39: [00:58:27] <EasyCo> antmas: http://logs.simon.geek.nz/index.php?date=2013-09-26#log_1057099
40: [00:58:42] <antmas> :O
41: [00:58:46] <antmas> back when I was atmos_
42: [00:58:53] <Colin[pi]> I used to think ss23 was some reference to SS v2.3
43: [00:58:58] <ss23> lol
44: [00:59:15] <antmas> same
45: [00:59:16] <Colin[pi]> like woah, an old version has it's own irc nick? dafuq
46: [00:59:19] <antmas> I think everyone did
47: [00:59:33] <EasyCo> Back in the day when simon_ kept demoting ss23
48: [00:59:39] <Colin[pi]> haha
49: [00:59:52] <Colin[pi]> good ol simon_w, before he went full retard
50: [00:59:59] <antmas> <atmos_> it's like eating spicy lemonade
51: [01:00:08] <EasyCo> Haha
52: [01:00:13] <antmas> I WAS SO FUNNY BACK THEN
53: [01:00:21] <zippy> got old man..
54: [01:00:52] <Colin[pi]> antmas: yeah looking at old logs of yourself talking is instacringe
55: [01:01:23] <Colin[pi]> antmas: like I found some old posts of mine on usenet, and was like "oh god why"
56: [01:01:42] <antmas> yup
57: [01:01:51] <antmas> did the same thing with FB
58: [01:02:23] <Stomach> my gpforums persona is weird to read
59: [01:02:25] <Stomach> silly stevie
60: [01:02:26] <antmas> one of the reasons why I never visit Giantbomb forums anymore lol
61: [01:02:39] <Colin[pi]> antmas: lol
62: [01:03:12] <antmas> I read the old stuff like 'why was I so anti-religous and angry at Call of Duty changes back then'
63: [01:06:45] * Stomach_ has joined #silverstripe
64: [01:06:49] <antmas> this was us http://s124.photobucket.com/user/planettfx/media/g00nssv1.jpg.html
65: [01:06:58] <antmas> Colin[pi]: ^^
66: [01:07:07] <superspring> hey camfindlay, are you around?
67: [01:07:11] <antmas> good old days of trolling
68: [01:07:48] * joelpittet has joined #silverstripe
69: [01:07:50] * Tanger has joined #silverstripe
70: [01:07:59] <ss23> superspring: If you would like his attention, I can grab him for you
71: [01:08:04] <ss23> Literally, I mean walk up to him and grab him
72: [01:08:15] <camfindlay> yo
73: [01:08:16] <superspring> ss23: i'm just upstairs, no hurry :p
74: [01:08:24] <ss23> You're at the SS offices?!
75: [01:08:29] <ss23> superspring: Who are you? :O
76: [01:08:34] <camfindlay> don’t touch me ss23, wash your damn hands
77: [01:08:38] <ss23> :(
78: [01:08:52] <superspring> ss23: i'm the guy drinking all your coke zero :p
79: [01:08:58] <camfindlay> lol
80: [01:09:02] <ss23> >coke zero
81: [01:09:06] <ss23> >mine
82: [01:09:06] <ss23> pls
83: [01:09:12] <ss23> you have me confused with someone else :O
84: [01:09:12] <camfindlay> what is it superspring?
85: [01:09:14] <superspring> camfindlay: we spoke at the last meetup about a module that i'd been working on
86: [01:09:15] * Stomach quit (Ping timeout: 250 seconds)
87: [01:09:17] <camfindlay> yup
88: [01:09:23] <camfindlay> link?
89: [01:09:24] <superspring> camfindlay: here is the link on addons - http://addons.silverstripe.org/add-ons/stripelabs/dataobjectcoach
90: [01:09:35] <superspring> camfindlay: can i get your thoughts on it please?
91: [01:11:16] <camfindlay> does it write the dataobject to a file or is it then stored as part of the database?
92: [01:11:34] <superspring> camfindlay: both, kinda...
93: [01:11:43] <superspring> camfindlay: the module, by itself writes it to the database
94: [01:12:05] <camfindlay> interesting concept - I guess you’d want to make the user know that the dataobject would then be tied to that database though right?
95: [01:12:06] <superspring> camfindlay: if combined with the sakemore module, then it can write them back to files... although i'm not sure i've pushed that code up...
96: [01:12:14] <camfindlay> so less able to move around just as a codebase?
97: [01:12:22] <camfindlay> ahh nice
98: [01:12:37] <superspring> camfindlay: i was mostly thinking about this being a dev-tool, the 'goat' branch draws pretty pictures of classes in SS...
99: [01:12:38] <camfindlay> yeah getting it to end up back as actual files is nice
100: [01:12:56] <superspring> goat: graph of all things :p
101: [01:13:03] <camfindlay> especially if someone uses this in a project and then hands it over to another dev
102: [01:13:22] <camfindlay> could be a nice prototyping tool
103: [01:13:46] <camfindlay> what sort of use cases do you envisiage?
104: [01:13:55] <superspring> camfindlay: speed prototyping a site...
105: [01:14:12] <camfindlay> And can you write a model in code faster than filling in some form inputs?
106: [01:14:14] <superspring> once this is running, it takes less than a minute to change an existing dataobject, or a few minutes to fully build a new one...
107: [01:14:52] <superspring> camfindlay: my thoughts are partially coding standards, but also speed and how easy it is to change things...
108: [01:15:10] <camfindlay> once you move to physical files is it easy to clean up the database prototyped stuff?
109: [01:15:37] <superspring> camfindlay: to 'clean it up', just delete the records in the UI :p
110: [01:15:56] <superspring> camfindlay: or leave them.... the module will figure out what to do...
111: [01:16:12] <camfindlay> just thinking of a situation when dev protoypes local, then wants to take this to prod with actual model files
112: [01:16:18] <camfindlay> and not bloat up the database
113: [01:16:33] <superspring> camfindlay: talking may be easier, i'll come say hi :p
114: [01:16:59] <camfindlay> Kool, yeah I have a meeting in 15 mins so maybe come hit me up after 330
115: [01:18:12] * muskie9 is now known as muskie9_afk
116: [01:19:03] * jenniferaslan quit (Quit: jenniferaslan has left the room)
117: [01:30:36] * mahfuz has joined #silverstripe
118: [01:32:19] <antmas> what's the min perm level for the /assets?
119: [01:33:00] <zippy> if the web server is the owner of the files, then you can do 644
120: [01:33:45] <antmas> zippy: chur
121: [01:38:57] <EasyCo> I see Composer hasn't gotten any faster
122: [01:39:13] <EasyCo> gs
123: [01:39:51] * UncleCheese has joined #silverstripe
124: [01:39:56] <UncleCheese> superspring http://www.buzzfeed.com/lyapalater/how-everyone-in-the-audience-reacted-when-kanye-pulled-a-kan?bffb&utm_term=4ldqpgp#.ssvR5r07Bl
125: [01:40:51] * ^pH has joined #silverstripe
126: [01:46:30] * ghostcheese has joined #silverstripe
127: [01:48:23] <Stomach_> anyone ever had silverstripe create dataobjects with Created times which are BEFORE the previous ID?
128: [01:48:31] <Stomach_> o_O
129: [01:49:30] <zippy> Stomach_: actually...
130: [01:49:40] <zippy> I was looking at the code before, and I think it can be possible
131: [01:49:56] <zippy> because when it inserts a record into the DB, it first does a write to get an id, and then it does another write to populate the content...
132: [01:50:14] <zippy> so if you have two happen REAL close to gether, it might be possible for it to happen
133: [01:51:01] <zippy> mmm no it actually seems to write out the created when it does the first basic write
134: [01:51:15] * ocmnt quit (Ping timeout: 244 seconds)
135: [01:52:41] * eagles0513875 has joined #silverstripe
136: [01:53:14] <Ryan-Toast> antmas: http://rhym.github.io/whats-for-lunch/
137: [01:53:15] <Cramb> OK trying a DataList of all blog entries in a blog tree. AllChildren does not search recursively. Any ideas on how best to get all blog entries within a blog tree?
138: [01:53:55] <zippy> Cramb: do you just want to get all blog entries of the whole site?
139: [01:54:17] <Stomach_> zippy - yeah thats what I'm wondering about
140: [01:54:24] <Stomach_> these have like a 4 hour gap between them too
141: [01:54:26] <Stomach_> its fucked
142: [01:54:40] <zippy> you've searched over the code and not setting the created?
143: [01:54:57] <Cramb> No I have a number of different blog trees so I want blog entries that are grandchildren of a particular blog tree
144: [01:55:38] <zippy> Cramb: you could get all the ids of the children of the blog tree, then do a call to get all blog entries which have a parent id in that array
145: [01:56:40] <zippy> $childrenIDs = $this->AllChildren()->map('ID', 'ID')->toArray(); $blogEntries = BlogEntries::get()->Filter('ParentID', $childrenIDs); or something
146: [01:56:50] <Cramb> Thanks again Zippy.
147: [01:56:53] <zippy> where $this is the Blog Tree in question
148: [01:57:04] <zippy> actually
149: [01:57:11] <zippy> I think there is a way to go THOUGH the relation
150: [01:57:28] <zippy> eg, $this->AllChildren->AllChildren();
151: [01:57:33] <zippy> but its not exactlly like that
152: [01:57:46] * camfindlay quit (Quit: camfindlay)
153: [01:57:48] <zippy> simon_w would know...
154: [01:57:52] * zippy sends up the bat signal
155: [01:58:08] <Stomach_> zippy - yeah not setting the created
156: [01:58:18] <Stomach_> the lastedited and another date we set on them are doing the same thing too...
157: [02:01:03] <antmas> Ryan-Toast: ;_____________________________________________;
158: [02:01:11] <Ryan-Toast> antmas: :D
159: [02:01:38] <Ryan-Toast> I’ll fork it to: “Whats-for-dinner"
160: [02:01:43] <antmas> Ryan-Toast: can you do one for 'FANTASTIC NOODLE POTTLE'
161: [02:01:45] <antmas> ?
162: [02:02:03] <Ryan-Toast> I’m considering randomising it.
163: [02:02:32] <antmas> I like that that is a thing you're thinking about
164: [02:02:39] <antmas> priorities
165: [02:02:40] <antmas> :D
166: [02:02:50] <Ryan-Toast> I feel like I’ve been working for a week already.
167: [02:02:56] <zippy> mmm I feel like some Yum Yum Chicken noodles
168: [02:03:19] <Ryan-Toast> zippy: no zippy. http://rhym.github.io/whats-for-lunch/
169: [02:03:28] * ghostcheese quit (Ping timeout: 246 seconds)
170: [02:04:16] * antmas takes 4 mins to cook 2 min noodles #antmasfacts
171: [02:04:49] <zippy> ensure you boil water in the jug, while you put a tiny amount in the pot to bring the stove and pot up to temp.
172: [02:05:25] <zippy> and whatever you do, don't sit there watching the pot waiting for it to boil, it takes longer... do quick checks every 10 seconds..
173: [02:05:43] * irogue_ has joined #silverstripe
174: [02:06:01] <antmas> zippy: thanks, I'll remember that next time I go to cook my fucking peasant food
175: [02:06:02] <antmas> :P
176: [02:06:12] * zippy loves him some noodles
177: [02:06:17] <zippy> 3 packets hits the spot
178: [02:06:31] <zippy> any more and takes a bit to long to cook and the noodles get to fat and freaky
179: [02:06:42] <antmas> Fat and Freaky
180: [02:06:46] <ss23> ...
181: [02:06:50] <zippy> gordon ramsay would not approve
182: [02:06:55] <ss23> I'm a two pack man myself
183: [02:06:57] <antmas> Phat and Phreaky
184: [02:07:00] <antmas> new band name
185: [02:07:38] <antmas> ss23: JT would though http://www.blackblessedblog.com/wp-content/uploads/2013/07/C5R7f3962.jpg
186: [02:07:56] <ss23> idk who jt is
187: [02:07:58] <ss23> but lulz at that hair
188: [02:08:06] <Ryan-Toast> Justin Timberlake?
189: [02:08:17] <Ryan-Toast> You’ve never heard of him?
190: [02:08:17] <ss23> oic
191: [02:08:22] <ss23> I've heard of him!
192: [02:08:24] <ss23> >.<
193: [02:09:58] * antmas wonders if simon_w secretly watches the logs
194: [02:10:00] <antmas> <.<
195: [02:10:03] <antmas> >.>
196: [02:10:06] <ss23> ^.^
197: [02:10:07] <ss23> v.v
198: [02:10:12] <zippy> \o/
199: [02:10:12] <ss23> L.L
200: [02:10:13] <ss23> T.T
201: [02:10:29] <ss23> I.I
202: [02:10:41] <zippy> he does just to read Ryan-Toast's messages
203: [02:10:48] <ss23> Everyone loves a little toast
204: [02:10:55] <antmas> make sure he peon is doing his job
205: [02:10:56] <antmas> :D
206: [02:11:01] <irogue_> Ryan-Toast is not little
207: [02:11:06] <ss23> A little of the lot
208: [02:11:30] <antmas> Ryan-Toast: Simulator
209: [02:12:07] <irogue_> tfw you assign a task to yourself and someone else self-assigns it 5min later
210: [02:12:32] <zippy> irogue_: off your plate, task done! good job
211: [02:12:33] <antmas> irogue_: I just did that to someone
212: [02:16:03] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
213: [02:16:59] <Ryan-Toast> “irogue_: Ryan-Toast is not little” How you doin?
214: [02:22:00] <irogue_> Ryan-Toast: heyyyyy ;)
215: [02:24:57] * irogue_ crosses fingers that deploy doesn't fail
216: [02:25:29] <Ryan-Toast> does kinglozzer run by an alias on IRC?
217: [02:25:31] <antmas> my deploy just worked!
218: [02:25:34] <antmas> huzzah!
219: [02:25:46] <irogue_> Ryan-Toast: kinglozzer is kinglozzer on irc
220: [02:25:46] <antmas> Ryan-Toast: he uses that name on here
221: [02:25:54] <Ryan-Toast> KAy.
222: [02:25:57] <irogue_> but is on opposite timez
223: [02:26:37] <Ryan-Toast> Would love an example of the _ss_enviroment file that he uses for https://github.com/feejin/Silverstripe-CleanInstall with all the important shit just changed to “foo"
224: [02:27:04] * wracu quit (Quit: Leaving)
225: [02:34:33] <antmas> who here pays for a private github account?
226: [02:34:42] <Ryan-Toast> Me
227: [02:34:45] <Cramb> Sorry for all the dumb ass questions. How do I access a page controller method
228: [02:35:03] <Ryan-Toast> Cramb: In the view, or another controller?
229: [02:35:06] <antmas> Ryan-Toast: the $7 one?
230: [02:35:13] <Ryan-Toast> antmas: Bigger one
231: [02:35:24] <Cramb> from another controller
232: [02:35:38] <antmas> Ryan-Toast: do you use the private repos a lot?
233: [02:35:46] <antmas> I think I might get myself one
234: [02:35:59] <Ryan-Toast> antmas: just get bitbucket
235: [02:36:13] * antmas looks at bitbucket
236: [02:36:20] <MichalKleiner> antmas: we use private repos but on Bitbucket.. the difference between Bitbucket and Github is pricing based on users vs on repos
237: [02:36:33] <irogue_> antmas: I just run a GitLab
238: [02:36:54] <antmas> interesting
239: [02:37:01] * willr has joined #silverstripe
240: [02:37:03] <irogue_> which can get confusing at times, remembering to use the right GitLab since I have my personal one, SS one and CWP one
241: [02:37:09] <antmas> so bitbucket has unlim private repos?
242: [02:37:13] <antmas> for all account types?
243: [02:37:21] <MichalKleiner> yes, paid yes
244: [02:37:30] <Ryan-Toast> Cramb: $myController = new Page_Controller(); $myController->someShit();
245: [02:38:09] <antmas> might go for bitbucket then
246: [02:38:18] <antmas> MichalKleiner: irogue_ Ryan-Toast cheers
247: [02:39:54] <Cramb> But if I get the page $page = $this->LinkedPage; $page_controller = $page->??? Not sure how to do it
248: [02:40:03] <MichalKleiner> and when you need to give someone read only access you use deployment keys
249: [02:40:19] <MichalKleiner> which is basically ssh key that can only clone/pull, not push
250: [02:40:29] <antmas> MichalKleiner: thats good
251: [02:40:43] <MichalKleiner> or make the repo public
252: [02:41:11] <MichalKleiner> I wonder whether CWP GitLab will ever support ssh keys auth
253: [02:42:28] * UncleCheese has joined #silverstripe
254: [02:43:40] * antmas quit (Quit: Page closed)
255: [02:44:36] <Ryan-Toast> Can you force the silverstripe/installer run in a folder that has files in it?
256: [02:45:03] <zippy> Cramb: Page and PageController are two seperate classes... if you have logic you want to call from another controller, consider extracting that function out, or move it to the Page (model) vs the controller
257: [02:46:32] <Cramb> $page_controller = $pagename . '_Controller';
258: [02:46:34] <Cramb> $page_controller = new $page_controller;
259: [02:46:36] <Cramb> OK, Seems dumb there is no inbuilt function to access controller methods. I am quickly owing you a beer zippy
260: [02:47:17] * kerosene quit (Quit: toodle pip)
261: [02:47:27] <zippy> you can if you create an instance of it, but what method are you trying to acces / why?
262: [02:47:38] <irogue_> Ryan-Toast: not that I know of, composer is pretty fussy
263: [02:47:55] <Ryan-Toast> Hmm.
264: [02:47:56] <irogue_> Ryan-Toast: i usually end up just installing to different folder and then moving everything
265: [02:48:11] <Ryan-Toast> irogue_: I could do that, but I’d like to make things just one step.
266: [02:48:21] <Ryan-Toast> that way I can run composer updates and shit
267: [02:48:33] <Cramb> Trying to access the BlogTree_Controller->BlogEntries in the Blog Module,
268: [02:48:59] <zippy> just move it up to the BlogTree model
269: [02:49:29] <Cramb> Its not my module to mess with :) Bigger people than me get pissed.
270: [02:50:05] <zippy> ask them how they do it then :)
271: [02:50:56] <MichalKleiner> Ryan-Toast: you can use composer post-update scripts to move things around so you will still have your one composer update
272: [02:51:12] <Cramb> They arent around this week, plus I like to share my dumb questions around. Thanks though
273: [02:54:26] <Ryan-Toast> MichalKleiner: I have this: https://github.com/Rhym/silverstripe-boilerplate-installer which ideally I would fork to a new project, and then run a composer install and it would get all the relative SS shit for me.
274: [02:54:34] <Ryan-Toast> Any ideas on how I can achieve that?
275: [02:54:53] <zippy> add a composer.json and set your requrements
276: [02:55:06] <Ryan-Toast> zippy: it has one
277: [02:55:12] <Ryan-Toast> and it requires the framework and cms
278: [02:55:34] <zippy> I think you need to pull in silverstrpe/installer
279: [02:55:41] <zippy> which will then pull in the framework and cms and what not
280: [02:56:04] <Ryan-Toast> that will override my mysite, wouldn’t tit?
281: [02:56:36] <zippy> good point...
282: [02:56:38] <zippy> not sure
283: [02:56:40] <zippy> what happens currently?
284: [02:56:41] <irogue_> Ryan-Toast: what's the actual problem at the moment?
285: [02:56:53] <MichalKleiner> yes.. so put your boilerplate mysite into mysite-init and put 'mv mysite-init mysite' as a post-install composer script
286: [02:57:03] <Ryan-Toast> irogue_: if I pull framework, and cms there’s still stuff SS needs to run.
287: [02:57:14] <MichalKleiner> or similar, this is just for the idea
288: [02:57:38] <MichalKleiner> maybe with a check if it exists first :-D
289: [02:57:57] <MichalKleiner> https://getcomposer.org/doc/articles/scripts.md#event-names
290: [02:58:05] <irogue_> Ryan-Toast: such as?
291: [02:58:15] <MichalKleiner> you can even have PHP code executed from composer if you needed
292: [02:58:23] <MichalKleiner> more ways how to do things
293: [02:58:28] <Ryan-Toast> MichalKleiner: Sounds good :) Can you change package.json requirements changed on composer install?
294: [02:58:33] <MichalKleiner> or grunt can shuffle it for you
295: [02:58:58] <MichalKleiner> Ryan-Toast: not sure but would you need that? I'd say no though
296: [02:59:29] <Ryan-Toast> MichalKleiner: was thinkingmaybe pull ininstaller first, then change to require cms, and framework if I wanted to do updates.
297: [02:59:38] <Ryan-Toast> installer.
298: [03:00:02] <MichalKleiner> that's what installer requires, isn't it?
299: [03:00:17] <irogue_> iirc requiring installer doesn't work
300: [03:00:23] <Ryan-Toast> yes, but wouldn’t it redownload the installer.php and other biz?
301: [03:00:34] <Ryan-Toast> irogue_: ah, kay.
302: [03:00:54] <MichalKleiner> https://github.com/Zauberfisch/silverstripe-boilerplate
303: [03:01:09] <irogue_> Ryan-Toast: the stuff in the root doens't change often, so just keep that in your own installer repo
304: [03:01:19] <irogue_> then you just require cms and framework
305: [03:01:26] <Ryan-Toast> MichalKleiner: Ah that looks good, thanks :)
306: [03:01:38] <MichalKleiner> this discussion was here last week
307: [03:01:46] <Ryan-Toast> Yeah, it was me then too :)
308: [03:01:48] <MichalKleiner> so maybe go through logs
309: [03:04:21] <MichalKleiner> I just can't find the bookmark I made about the one composer.json someone posted here that looked fine to me
310: [03:05:13] <irogue_> 404 project manager not found
311: [03:16:50] <zippy> irogue_: tell me about it
312: [03:24:25] * Colin[pi] quit (Ping timeout: 255 seconds)
313: [03:33:01] * travis-ci has joined #silverstripe
314: [03:33:02] <travis-ci> tractorcow/sapphire#37 (pulls/3.1/fix-formaction-encoding - 2a9d198 : Damian Mooyman): The build has errored.
315: [03:33:02] <travis-ci> Change view : https://github.com/tractorcow/sapphire/compare/f823831a639c^...2a9d19850ead
316: [03:33:02] <travis-ci> Build details : http://travis-ci.org/tractorcow/sapphire/builds/50151864
317: [03:33:02] * travis-ci has left #silverstripe
318: [03:35:23] * adrexia quit (Ping timeout: 245 seconds)
319: [03:38:47] * UncleCheese quit (Ping timeout: 246 seconds)
320: [03:40:37] * ^pH quit (Read error: No route to host)
321: [03:40:46] * Colin[pi] has joined #silverstripe
322: [03:40:55] * ^pH has joined #silverstripe
323: [03:47:09] * adrexia has joined #silverstripe
324: [03:52:19] * Kingy[a] is now known as Kingy
325: [03:52:34] <Kingy> morning
326: [03:53:21] <Colin[pi]> heya Kingy!
327: [03:53:28] <zippy> Kingy: morning o/
328: [03:53:36] <Kingy> how is everyone
329: [03:53:42] <zippy> good, you
330: [03:53:53] <Colin[pi]> Kingy: not too bad
331: [03:54:02] <Ryan-Toast> irogue_: It all works, yaaaay
332: [03:54:10] <Kingy> yeah pretty good
333: [03:54:14] <Kingy> having a sand storm at the moment
334: [03:54:23] <Colin[pi]> Kingy: pics or gtfo
335: [03:54:56] <Kingy> uploading now lol
336: [03:55:12] <Colin[pi]> yay
337: [03:55:25] <Kingy> ok
338: [03:55:27] <Kingy> Normal: http://i.imgur.com/vtcvNsW.jpg
339: [03:55:35] <Kingy> Sand: http://i.imgur.com/6njpjT1.jpg
340: [03:56:22] <zippy> how do they build multi story buildings on the sand... thats just weird...
341: [03:56:39] <zippy> didn't they ever hear that rhyme "the wise man built his house uppon the rocks"
342: [03:56:56] <Colin[pi]> Kingy: wow!
343: [03:57:07] <zippy> looks like a big sandpit, makes me want to play with Tonka toys
344: [03:57:09] <Colin[pi]> quite a difference
345: [03:57:10] <Kingy> zippy, it's made even worse when you think about how the sand they're building on didn't exist 6 months ago
346: [03:57:44] <Kingy> they literally build new islands in a few days
347: [03:58:08] <Kingy> apparently the water is only a couple metres deep around here
348: [03:58:47] <Kingy> Colin[pi]: thankfully we have our car washed 3 times a week :P
349: [03:58:51] <Kingy> so that's nice and clean
350: [03:59:35] <Colin[pi]> lol
351: [03:59:46] <Colin[pi]> yeah here I worry about rain after washing the car
352: [04:00:02] <Kingy> don't really have to worry about rain
353: [04:00:08] <Colin[pi]> there I imagine it's like "just finished! Oh god damn it..." *sand approaches*
354: [04:00:49] <Kingy> yeah basically it's the main job for the slaves
355: [04:01:08] <Kingy> you pull up to any car park around here and there is a guy asking if you want your car cleaned
356: [04:01:32] <Kingy> can get that done for 1BD
357: [04:01:42] <Kingy> for we pay 15BD a month for 3 times a week
358: [04:02:51] <zippy> 1bd =?
359: [04:02:59] <Kingy> $3-4NZD
360: [04:03:07] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
361: [04:03:07] <Colin[pi]> yeah currently 3.58 NZD
362: [04:03:25] <Colin[pi]> so it's about 50 bucks a motth
363: [04:03:27] <Colin[pi]> *month
364: [04:03:49] * joelpittet quit ()
365: [04:03:58] * micmania1 quit (Quit: micmania1)
366: [04:04:11] <Kingy> yeah about that
367: [04:05:30] * willr quit (Quit: willr)
368: [04:05:31] * riddler7 quit (Quit: Leaving)
369: [04:06:06] <EasyCo> Does SS have any methods that allow it to respond with JSON? Basically act like an API?
370: [04:06:33] <Kingy> EasyCo: SS has an API
371: [04:07:42] <Colin[pi]> EasyCo: yep there are loads of examples of that around
372: [04:08:14] <EasyCo> Hmm, yah I just found JSONDataFormatter. Looking further.
373: [04:08:50] * muskie9_afk quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
374: [04:09:02] <Colin[pi]> EasyCo: most times I've used it, I've just had a controller method that is called via ajax, and the controller method returns an array that has had json_encode() wrapped around it
375: [04:12:31] <EasyCo> Yah I did something similar a few years back.
376: [04:13:43] * Shrike_Finland has joined #silverstripe
377: [04:13:49] <EasyCo> Was wondering if there was SS had something new since I last used it similar to Rails with respond_to
378: [04:16:30] <Colin[pi]> EasyCo: afaik the most basic form is to set up a controller, the methods will be your api calls, examine request, do model stuff and return json
379: [04:17:41] <EasyCo> Colin[pi]: Cool thanks, my module is still relevant than
380: [04:21:32] <irogue_> baiiiii!
381: [04:22:15] * micmania1 has joined #silverstripe
382: [04:24:25] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
383: [04:27:50] * Ryan-Toast quit (Quit: Ryan-Toast)
384: [04:34:17] * glenn-bautista quit (Quit: Leaving.)
385: [04:39:36] * willr has joined #silverstripe
386: [04:44:49] * benjhocking has joined #silverstripe
387: [04:56:27] * travis-ci has joined #silverstripe
388: [04:56:28] <travis-ci> silverstripe/silverstripe-framework#4037 (3.1 - ba9b739 : Will Rossiter): The build passed.
389: [04:56:28] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/774be5522952...ba9b739a0435
390: [04:56:28] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/50155283
391: [04:56:28] * travis-ci has left #silverstripe
392: [04:57:34] * cloph_away has joined #silverstripe
393: [04:57:53] * cloph quit (Ping timeout: 245 seconds)
394: [04:58:47] * Stomach_ quit (Quit: zzz)
395: [04:59:31] * Kingy is now known as Kingy[a]
396: [05:11:07] * micmania1 quit (Quit: micmania1)
397: [05:30:48] * Cramb quit (Quit: Cramb)
398: [05:37:46] * Shrike_Finland quit (Quit: Leaving.)
399: [05:41:37] * Stomach has joined #silverstripe
400: [05:44:40] * mahfuz quit (Ping timeout: 246 seconds)
401: [05:47:33] * travis-ci has joined #silverstripe
402: [05:47:34] <travis-ci> tractorcow/sapphire#38 (pulls/3.1/encoding-fixes - 5223bc9 : Damian Mooyman): The build has errored.
403: [05:47:34] <travis-ci> Change view : https://github.com/tractorcow/sapphire/compare/e96d40d391e4^...5223bc9cbf70
404: [05:47:34] <travis-ci> Build details : http://travis-ci.org/tractorcow/sapphire/builds/50158913
405: [05:47:34] * travis-ci has left #silverstripe
406: [05:52:40] * wmk has joined #silverstripe
407: [06:04:18] * willr quit (Quit: willr)
408: [06:20:14] * r_hector has joined #silverstripe
409: [06:29:44] * veb has joined #silverstripe
410: [06:39:52] * wmk quit (Ping timeout: 245 seconds)
411: [06:48:25] * Shrike_Finland has joined #silverstripe
412: [06:48:29] * darjus01 has joined #silverstripe
413: [07:06:55] * Sticks quit (Quit: Leaving)
414: [07:07:11] * Stomach quit (Quit: zzz)
415: [07:08:24] * zippy has joined #silverstripe
416: [07:20:49] * Stomach has joined #silverstripe
417: [07:29:11] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
418: [07:33:29] * antmas has joined #silverstripe
419: [07:43:09] * Colin[pi] quit (Ping timeout: 252 seconds)
420: [07:45:32] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
421: [07:49:43] * Eliseth has joined #silverstripe
422: [07:50:57] * veb quit (Quit: veb-irc: quit)
423: [07:55:31] * Stomach quit (Quit: zzz)
424: [07:56:24] * Stomach has joined #silverstripe
425: [07:57:12] * arnhoe has joined #silverstripe
426: [07:57:15] <Eliseth> Morning
427: [07:59:03] <antmas> Evening
428: [08:19:08] * Err404NotFound has joined #silverstripe
429: [08:19:08] * Error404NotFound quit (Disconnected by services)
430: [08:22:13] * bemusedrat has joined #silverstripe
431: [08:36:52] * antmas quit (Ping timeout: 246 seconds)
432: [08:38:09] * willr has joined #silverstripe
433: [08:49:26] * zippy has joined #silverstripe
434: [08:50:00] * Stomach quit (Quit: zzz)
435: [08:50:22] * Stomach has joined #silverstripe
436: [08:51:46] * wmk has joined #silverstripe
437: [08:57:02] * willr quit (Read error: Connection reset by peer)
438: [08:57:29] * willr has joined #silverstripe
439: [08:57:32] * Cramb has joined #silverstripe
440: [08:58:20] * kinglozzer has joined #silverstripe
441: [09:13:43] * Tanger quit (Quit: Tanger)
442: [09:20:20] <zauberfisch> my silverstripe vm now ships with libsass installed
443: [09:20:24] <zauberfisch> yay \o/
444: [09:20:30] <wmk> yo
445: [09:20:36] <zauberfisch> though don't update just yet, I broke sake D:
446: [09:20:41] <zauberfisch> will push an update later today
447: [09:20:42] <wmk> sounds good...
448: [09:20:59] <wmk> do you run grunt / compass / libsass on the vm directly?
449: [09:21:07] <wmk> i create it on my machine locally
450: [09:21:21] <zauberfisch> grunt and compass is installed, but I don't used it
451: [09:21:47] <zauberfisch> I use libsass with a php script that compiles scss files if dev mode is on or if you run ?flush=1
452: [09:21:51] <wmk> zauberfisch, should some cleanuptools like codesniffer run on the vm? or better locally?
453: [09:22:01] <zauberfisch> and for compass I just use compass mixins (so no ruby compass)
454: [09:22:14] <wmk> ok. sounds good.
455: [09:22:21] <zauberfisch> wmk: until today I ran everything on my PC
456: [09:22:39] <zauberfisch> only used the tools in the VM if I worked on a PC that didn't have the tools installed
457: [09:22:45] <wmk> i once tried grunt with grunt watch and livereload in browser (watcher on css and template files)
458: [09:22:47] <wmk> that rocks
459: [09:22:58] <zauberfisch> but now that I have libsass in the vm, and a silverstripe module that uses libsass, I will keep that in the VM I think
460: [09:23:08] <wmk> with libsass it's quite fast, compass (ruby) was "schnarchlangsam" (<- any english word for that?)
461: [09:23:26] <zauberfisch> yeah, thats why I switched to libsass now
462: [09:23:34] <zauberfisch> ruby compass is just to slow
463: [09:23:36] <wmk> and you can still use the compass mixins?
464: [09:23:45] <wmk> at least now?
465: [09:23:52] <zauberfisch> yes, but not all of them
466: [09:23:58] <zauberfisch> sprites don't work
467: [09:24:06] <zauberfisch> image-width/image-height doesn't work either
468: [09:24:06] <wmk> of course, that'd need the ruby part
469: [09:24:21] <wmk> sprites have been very sexy
470: [09:24:27] <zauberfisch> yeah D:
471: [09:24:32] <wmk> though there might be a grunt task for that
472: [09:24:36] <zauberfisch> though I used them less and less
473: [09:25:04] <wmk> zauberfisch, the best grunt task: compress png
474: [09:25:13] <wmk> less headache when saving a png.
475: [09:25:49] <wmk> put it in the orig folder and use it from the processed folder
476: [09:25:56] <zauberfisch> would love to have something like that built into ss
477: [09:26:08] <zauberfisch> so that it also does it for files clients upload
478: [09:26:35] <wmk> should be possible
479: [09:26:54] <wmk> check if file is a png, compress and save orig file seperatley
480: [09:27:25] <wmk> your clients know what a png is... ?
481: [09:27:54] <zauberfisch> yeah, should be possible, just need to find someone who has the time to do it^^
482: [09:28:03] * wmk looks around
483: [09:29:04] <zauberfisch> well, I gotta get some work done
484: [09:29:06] <zauberfisch> see you later
485: [09:29:08] <wmk> cu
486: [09:31:34] * Stomach quit (Quit: zzz)
487: [09:35:30] * willr quit (Quit: willr)
488: [09:36:31] * zippy is now known as zippy_
489: [09:36:35] * zippy_ is now known as zippy
490: [09:38:26] * zippy is now known as zippy_
491: [09:43:43] * slievr quit (Ping timeout: 246 seconds)
492: [09:45:28] * slievr_ quit (Ping timeout: 246 seconds)
493: [09:50:55] * zippy_ is now known as zippy
494: [10:11:24] <Pysdblk> oh
495: [10:12:56] <Pysdblk> Apparently I'm still here.
496: [10:13:42] * Stomach has joined #silverstripe
497: [10:16:14] * cloph_away is now known as cloph
498: [10:20:09] <wmk> Pysdblk, what's wrong with that?
499: [10:20:50] * Colin[pi] has joined #silverstripe
500: [10:21:19] <Pysdblk> wmk: I normally sign out at night (work pc), and if I don't this connection usually times out at some point.
501: [10:24:29] * ocmnt has joined #silverstripe
502: [10:26:37] * UncleCheese has joined #silverstripe
503: [10:31:43] * lerni has joined #silverstripe
504: [10:33:54] <wmk> HI UncleCheese, great tutoria
505: [10:33:56] <wmk> l
506: [10:34:01] <UncleCheese> thanks mate
507: [10:34:15] <wmk> will you cover all that neat automatics (e.g. form field scaffolder) sometimes?
508: [10:34:20] * kinglozzer quit ()
509: [10:34:25] <wmk> i tend not to create the fields manually now
510: [10:34:35] <wmk> saves so much code
511: [10:36:14] * Kingy[a] is now known as Kingy
512: [10:37:47] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
513: [10:40:01] * kinglozzer has joined #silverstripe
514: [10:40:58] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
515: [10:41:12] * travis-ci has joined #silverstripe
516: [10:41:13] <travis-ci> silverstripe/silverstripe-framework#4038 (3.1 - b48aea1 : Will Morgan): The build passed.
517: [10:41:13] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/ba9b739a0435...b48aea131be9
518: [10:41:13] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/50179639
519: [10:41:13] * travis-ci has left #silverstripe
520: [10:41:23] <lerni> is there a way to remove duplicates with filter or sort? I try to have unique values for tractorcow/silverstripe-autocomplete
521: [10:42:53] * Hailwood has joined #silverstripe
522: [10:43:01] * travis-ci has joined #silverstripe
523: [10:43:02] <travis-ci> dhensby/silverstripe-framework#109 (3.1 - b48aea1 : Will Morgan): The build passed.
524: [10:43:03] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/54227a5462d6...b48aea131be9
525: [10:43:03] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/50179914
526: [10:43:03] * travis-ci has left #silverstripe
527: [10:44:37] <Pysdblk> lerni: istinct or group by will do it
528: [10:44:40] <Pysdblk> distinct*
529: [10:44:52] <Pysdblk> I think there is some kind of sql mutation you can use on datalists
530: [10:48:25] <wmk> lerni, http://api.silverstripe.org/3.1/class-DataList.html#_removeDuplicates This method won't function on DataLists due to the specific query that it represent
531: [10:48:28] <wmk> m(
532: [10:50:41] * stuckBoy has joined #silverstripe
533: [10:50:51] <stuckBoy> Can someone please help with some custom SWL stuff.
534: [10:51:08] <stuckBoy> I've got quote a complect SQL query which I need to integrate into Silverstripe
535: [10:53:22] <lerni> Pysdblk, wmk em how can I set that for the Field? with the AutoCompleteField? I *think* I need to set setSuggestURL and make my own querie and set it there? or do you see a other posibility? https://github.com/tractorcow/silverstripe-autocomplete/blob/3.1/code/AutoCompleteField.php
536: [10:55:05] <wmk> lerni, for testing try to add distinct()
537: [10:55:22] <wmk> if you're on latest 3.1 release (was introduced in 3.1.7 or 3.1.8 afaik)
538: [10:55:47] <wmk> then fork or subclass the field for production, maybe make a PR
539: [10:57:34] * stuckBoy quit (Ping timeout: 246 seconds)
540: [10:58:50] * travis-ci has joined #silverstripe
541: [10:58:51] <travis-ci> dhensby/silverstripe-framework#110 (master - 93355e7 : Will Rossiter): The build passed.
542: [10:58:52] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/a4d4d0273bfe...93355e7f635f
543: [10:58:52] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/50180331
544: [10:58:52] * travis-ci has left #silverstripe
545: [11:04:38] <wmk> lerni, got it working with distinct() ?
546: [11:05:34] * willmorgan has joined #silverstripe
547: [11:05:39] * Shrike_Finland quit (Quit: Leaving.)
548: [11:05:58] * Pysdblk quit (Ping timeout: 246 seconds)
549: [11:07:23] <lerni> wmk not atm I've just hacked https://github.com/tractorcow/silverstripe-autocomplete/blob/3.1/code/AutoCompleteField.php#L244
550: [11:07:41] <lerni> added ->distinct("Title")
551: [11:07:53] * Kingy is now known as Kingy[a]
552: [11:07:53] <wmk> jup. that's what i thought
553: [11:07:57] <wmk> and - working?
554: [11:08:02] <lerni> nahh
555: [11:08:28] * Kingy[a] is now known as Kingy
556: [11:08:29] <wmk> hmm,
557: [11:08:32] <lerni> where is it in the FW?
558: [11:08:39] <wmk> FW?
559: [11:09:02] <lerni> I think the parameter does not what I think it should
560: [11:09:15] * Err404NotFound quit (Ping timeout: 244 seconds)
561: [11:09:15] <lerni> FW framework
562: [11:09:20] <wmk> well, as ID 1, Title "Foo" is different with ID 2, Title "Foo", distinct won't work afaik
563: [11:10:08] <wmk> lerni, in L 260, remove duplicates from $items array afterwards
564: [11:10:30] <wmk> though on DB level it would be better.
565: [11:11:02] * travis-ci has joined #silverstripe
566: [11:11:03] <travis-ci> dhensby/silverstripe-framework#111 (3 - d5bb290 : Ingo Schommer): The build passed.
567: [11:11:03] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/9944e82e516c...d5bb290b8e3d
568: [11:11:03] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/50180417
569: [11:11:03] * travis-ci has left #silverstripe
570: [11:11:07] * Stomach quit (Quit: zzz)
571: [11:11:23] <wmk> maybe ->column($sourceField)->distinct($sourceField) would do the trick lerni ?
572: [11:11:33] <wmk> just query the needed column, then distinct will work
573: [11:11:44] <wmk> afaik you don't need the ID at this point
574: [11:12:20] <willmorgan> morning
575: [11:12:29] <wmk> though https://github.com/tractorcow/silverstripe-autocomplete/blob/3.1/code/AutoCompleteField.php#L256 should filter out duplicates
576: [11:12:33] <wmk> hi willmorgan
577: [11:14:15] <lerni> wmk - this is the ID thing
578: [11:14:36] <lerni> ID differs in the implementation I have
579: [11:15:02] <wmk> well, different IDs and distinct() doesn't work
580: [11:15:19] <wmk> if you can wipe away the ID for now it'd help
581: [11:15:39] <lerni> and with just ->column("") the filed breaks
582: [11:17:15] <wmk> nono
583: [11:17:29] <wmk> ->column($sourceField)
584: [11:17:40] <wmk> it's the field you want to be shown
585: [11:18:17] <wmk> ->column($sourceField)->distinct($sourceField)
586: [11:18:56] <lerni> the json response looks like: {label: "X", value: "Y", stored: #}
587: [11:19:23] <lerni> in stored there is the ID
588: [11:20:01] <lerni> If I just query one column it breaks
589: [11:20:15] <lerni> it = AutocompleteFiled
590: [11:20:21] <wmk> from what i see in #253ff it's a new array with just the values, put in a json_encode
591: [11:21:40] <lerni> ohh :)
592: [11:21:56] * Shrike_Finland has joined #silverstripe
593: [11:25:01] * wmk quit (Ping timeout: 255 seconds)
594: [11:25:04] * GioVdK has joined #silverstripe
595: [11:26:28] * travis-ci has joined #silverstripe
596: [11:26:29] <travis-ci> dhensby/silverstripe-framework#112 (pulls/no-private-vars - ea0baa5 : Daniel Hensby): The build has errored.
597: [11:26:29] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/commit/ea0baa5d87d4
598: [11:26:29] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/50185637
599: [11:26:29] * travis-ci has left #silverstripe
600: [11:26:39] <willmorgan> oh pigeonfriend
601: [11:26:40] <willmorgan> :P
602: [11:26:59] <GioVdK> Hello, on a GridField I'm showing a column which is an external relation (Image.Name) and the gridfield is allowing me to sort by that column but when I try to do it I get an error. Is there a way to just disable the sorting for that column?
603: [11:28:56] <pigeonfriend> my personal builds never work
604: [11:29:06] <pigeonfriend> because it can't determine if my branch is >=3.0.0
605: [11:29:26] <pigeonfriend> GioVdK: hi :) and yes
606: [11:29:34] <pigeonfriend> the gridfield sorting is broken :)
607: [11:30:23] <pigeonfriend> GioVdK: https://github.com/silverstripe/silverstripe-framework/issues/3842
608: [11:32:16] <pigeonfriend> GioVdK: $grid->getComponentByType('GridFieldSortableHeader')->setFieldSorting(array('FieldName' => 'Field Label'))
609: [11:33:21] <GioVdK> hi pigeonfriend, thanks. I came up with something similar but why is that removing it?
610: [11:33:34] <GioVdK> $sortableHeader = $conf->getComponentByType('GridFieldSortableHeader'); $sortableHeader->setFieldSorting(array('Image.Name' => 'Name'));
611: [11:33:56] <GioVdK> I did it like this, but why a method called setFieldSorting is actually disabling it?
612: [11:37:41] <pigeonfriend> that shouldn't be how to disable it.. it should be how to turn it on
613: [11:38:36] <pigeonfriend> The reason it's probably disabled it is because 'Image.Name' isn't resolvable as a DB column so it won't show it as sortable
614: [11:38:57] <pigeonfriend> if you want to turn off ALL sorting, then you should just remove the component from the field completely
615: [11:39:00] * ThePeach has joined #silverstripe
616: [11:39:09] <pigeonfriend> GioVdK ^
617: [11:39:18] <pigeonfriend> whey hey: ThePeach it's a party in here
618: [11:39:26] <ThePeach> ^^
619: [11:39:38] <GioVdK> pigeonfriend: :D
620: [11:39:47] <ThePeach> I brought booze
621: [11:39:58] <GioVdK> yep but if I remove the component then I get no table header at all (no column names)
622: [11:40:15] <GioVdK> (I already removed the GridFieldFilterHeader one :p
623: [11:41:39] <pigeonfriend> GioVdK oh lol. well, then just set it to an empty array, I guess
624: [11:41:51] * Kingy is now known as Kingy[a]
625: [11:42:46] <GioVdK> nope, an empty array will still show it
626: [11:43:10] <GioVdK> and also if the key is not Image.Name
627: [11:43:39] <GioVdK> to hide it I need to set it as 'Image.Name' => 'any string'
628: [11:44:14] <GioVdK> apart from setFieldSorting(array('Image.Name' => 'Image.Name')) ... if I put it this way, I still see it
629: [11:45:02] * bemusedrat quit (Quit: Leaving)
630: [11:45:32] <pigeonfriend> :s
631: [11:45:52] <GioVdK> indeed hehe
632: [11:49:15] * travis-ci has joined #silverstripe
633: [11:49:16] <travis-ci> dhensby/silverstripe-framework#113 (pulls/no-private-vars - bde8bbb : Daniel Hensby): The build has errored.
634: [11:49:16] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/ea0baa5d87d4...bde8bbb934dd
635: [11:49:16] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/50187449
636: [11:49:16] * travis-ci has left #silverstripe
637: [11:51:40] * travis-ci has joined #silverstripe
638: [11:51:41] <travis-ci> dhensby/silverstripe-framework#114 (pulls/no-private-vars - 4aa7e48 : Daniel Hensby): The build has errored.
639: [11:51:41] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/bde8bbb934dd...4aa7e48db0c5
640: [11:51:41] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/50187611
641: [11:51:41] * travis-ci has left #silverstripe
642: [11:53:50] * r_hector quit (Quit: Leaving.)
643: [12:22:36] * kerosene has joined #silverstripe
644: [12:29:19] * Hailwood quit (Ping timeout: 252 seconds)
645: [13:19:42] * UndefinedOffset has joined #silverstripe
646: [13:29:54] * Cramb quit (Quit: Cramb)
647: [13:34:29] * willmorgan quit ()
648: [13:39:11] * Colin[pi] quit (Ping timeout: 252 seconds)
649: [13:41:01] * muskie9 has joined #silverstripe
650: [13:41:25] * muskie9 quit (Client Quit)
651: [13:43:42] * muskie9 has joined #silverstripe
652: [14:10:17] * Pyagopk has joined #silverstripe
653: [14:29:40] * muskie9 is now known as muskie9_afk
654: [14:30:26] * muskie9_afk is now known as muskie9
655: [14:31:40] * lerni quit ()
656: [14:37:08] * Shrike_Finland quit (Quit: Leaving.)
657: [14:46:50] * muskie9 is now known as muskie9_afk
658: [14:58:50] * muskie9_afk is now known as muskie9
659: [15:02:32] <Pyagopk> Bord. Someone entertain me.
660: [15:02:34] <Pyagopk> bored*
661: [15:07:15] * kerosene quit (Quit: POW!)
662: [15:07:49] * darjus01 quit (Quit: Page closed)
663: [15:11:10] <muskie9> http://i.imgur.com/9GTPoFi.jpg
664: [15:11:58] <muskie9> http://i.imgur.com/yIKOC7d.gif
665: [15:12:15] <muskie9> Pyagopk ^
666: [15:13:46] <Pyagopk> :D ta muskie9
667: [15:14:08] <Pyagopk> Gremlins 2 eh
668: [15:14:12] <Pyagopk> dat yoda.
669: [15:16:37] <Pyagopk> http://grooveshark.com/#!/album/The+Saint/8789016 :D
670: [15:17:15] * jeroenem has joined #silverstripe
671: [15:20:30] * arnhoe quit ()
672: [15:24:23] * arnhoe has joined #silverstripe
673: [15:24:53] * wmk has joined #silverstripe
674: [15:31:10] * Shrike_Finland has joined #silverstripe
675: [15:36:40] * blueman has joined #silverstripe
676: [15:57:04] <kinglozzer> I'm making it my personal mission to reply to all JIRA tickets with animated GIFs from now on ^^
677: [15:58:58] <Pyagopk> devopsreactions.tumblr.com?
678: [15:59:15] <Pyagopk> yes, this will entertain me. Why didn't I remember this earlier :>
679: [16:09:01] <kinglozzer> Pyagopk: Ahhh that is perfect!
680: [16:16:40] * ec8or__ quit (Ping timeout: 244 seconds)
681: [16:17:36] * ec8or_ has joined #silverstripe
682: [16:18:27] * slievr has joined #silverstripe
683: [16:27:06] * jeroenem quit (Quit: Page closed)
684: [16:28:28] * arnhoe quit ()
685: [16:36:05] * Shrike_Finland quit (Quit: Leaving.)
686: [16:37:29] * jenniferaslan has joined #silverstripe
687: [16:40:33] <GioVdK> Hello, another question: I've implemented my own GridField HTMLProvider, ColumnProvider and ActionProvider and I have an "import" button that triggers the action and submits the data / refreshes the grid
688: [16:41:03] <GioVdK> I'd now like to add a confirmation message to the action ("are you sure you want to import... ?")
689: [16:41:15] <Pyagopk> I thought there already was an import component?
690: [16:41:18] <Pyagopk> :<
691: [16:41:33] <GioVdK> I'm importing content from an external source
692: [16:41:37] <kinglozzer> GioVdK: Use JavaScript to open an alert dialog
693: [16:41:40] <Pyagopk> ^
694: [16:41:44] <Pyagopk> about the only way you can do it.
695: [16:42:01] <Pyagopk> attach the requirements from the component's html provider implementation
696: [16:42:31] <GioVdK> kinglozzer: I've seen that now the button is a span, so you mean intercept the event and then do stopPropagation if the user clicks cancel?
697: [16:42:43] <kinglozzer> GioVdK: https://github.com/silverstripe/silverstripe-framework/blob/3.1/javascript/GridField.js#L149-L159
698: [16:43:09] <kinglozzer> Pretty much, yeah
699: [16:43:17] <Pyagopk> #entqine.
700: [16:43:19] <GioVdK> kinglozzer: thanks for the link
701: [16:43:21] <Pyagopk> wtf q
702: [16:43:23] <Pyagopk> idek.
703: [16:43:56] <Pyagopk> GioVdK: I believe there are resonable entwine docs on the docs page, if you're unfamiliar.
704: [16:44:31] <GioVdK> Pyagopk: thanks, I'll have a look
705: [16:45:40] <GioVdK> using entwine, will I also be able to get the results of the ajax callback? or should I override it and do the callback myself? (to show the error message - or in case I could just do the validation client side)
706: [16:46:04] <Pyagopk> well... you'll need to know how entwine works.
707: [16:46:05] <Pyagopk> first.
708: [16:46:25] <Pyagopk> but basically there's no reason that should be no.
709: [16:46:30] <Pyagopk> I think.
710: [16:46:53] <Pyagopk> entwine will solve a lot of what your'e asking itself I think.
711: [16:48:56] <GioVdK> Pyagopk: ok, thanks
712: [16:49:18] <Pyagopk> well, not directly, but allow you to, easily.
713: [16:49:25] <Pyagopk> like a ramework!
714: [16:49:28] <Pyagopk> +f
715: [16:49:41] <wmk> ramework sounds cool
716: [16:49:41] <GioVdK> I also fonund some doc here https://github.com/hafriedlander/jquery.entwine
717: [16:51:55] * joelpittet has joined #silverstripe
718: [16:52:07] <muskie9> GioVdK, kinglozzer wrote a nice little blog post too: http://www.silverstripe.org/blog/a-beginners-introduction-to-using-entwine-in-silverstripe/
719: [16:53:10] <GioVdK> cool, thanks muskie9
720: [16:57:11] <blueman> Is there anyway to globally extend or override $this->customize()->renderWith() ?
721: [16:57:38] <kinglozzer> blueman: What are you trying to achieve?
722: [16:58:27] <wmk> blueman, subclass and use subclass instead
723: [16:59:03] <wmk> http://api.silverstripe.org/3.1/class-Object.html#_useCustomClass
724: [16:59:19] <Pyagopk> renderWith is part of ViewableData I think, it's quite high up. It could be risky wmk. Although, not sure.
725: [16:59:47] <wmk> i thought more of subclass $this
726: [16:59:49] <Pyagopk> Just seem to recall the last time I tried to specify a custom class (through yml though) it had a bit of a fit
727: [17:01:25] <Pyagopk> I guess telling injector something along the lines of When ThatClass is asked for, use ThisClass. Where ThisClass extends ThatClass... autoloader tries to get ThatClass, is told to use ThisClass... fit time :<
728: [17:01:28] <Pyagopk> or soemthnig.
729: [17:01:29] <Pyagopk> idk.
730: [17:01:35] <Pyagopk> iirc it came back 'unknown class'
731: [17:01:40] <Pyagopk> might be fixed, this was over 2 years back.
732: [17:01:51] <Pyagopk> hmm, actually just 1.5, but still.
733: [17:03:37] <kinglozzer> Using GridField on the front-end (・_・;)
734: [17:04:14] <kinglozzer> Actually screw it, I won't ><
735: [17:04:30] <UndefinedOffset> kinglozzer... ya its a pain, which is why I built this to wrap things a bit https://github.com/webbuilders-group/silverstripe-frontendgridfield
736: [17:04:41] <kinglozzer> Gonna build something... many_many_extraFields... fun
737: [17:05:15] <kinglozzer> UndefinedOffset: Nice, I'll give it a shot if I get stuck (which I probably will) :P
738: [17:05:30] <UndefinedOffset> :)
739: [17:06:07] <Pyagopk> I got gridfield working on frontend without adaption
740: [17:06:11] * jeu has joined #silverstripe
741: [17:06:12] * Pyagopk shrugs
742: [17:06:31] <Pyagopk> I do remember it was a tad fiddly though. IIRC I used some CMS JS includes.
743: [17:06:46] <Pyagopk> the autoinclude thing at least.
744: [17:06:47] * jeu quit (Client Quit)
745: [17:06:50] <wmk> kinglozzer, isnt there a module for frontend grid?
746: [17:06:55] <kinglozzer> Pyagopk: I just threw code at it, it doesn't look great... autocomplete issues, inline editing components (for many_many_extraFields) not playing nicely
747: [17:07:00] <Pyagopk> wmk: yeah, UndefinedOffset just pasted it :>
748: [17:07:19] <wmk> ah
749: [17:07:29] <Pyagopk> kinglozzer: yeah, the trouble is that because of it's major usecase, despite it's best intentions, most things are pretty CMS specific :/
750: [17:07:53] <Pyagopk> but at it's core, gridfeild shouldn't really care about front/back end
751: [17:08:15] <Pyagopk> it's more environment issue. ie, the JS that's already existant in the CMS that's not in the front end.
752: [17:08:28] <Pyagopk> that and although it's made for *List, it actually only works with DataList.
753: [17:09:05] <Pyagopk> well, perhaps lists with DataObjects in it would be a more apt description. And they must all be the same DataObject (type)
754: [17:09:21] <kinglozzer> Pyagopk: You mean like the fact that I have to now load Entwine, internationalisation files and jQuery UI just to render the GridField? :(
755: [17:09:29] <Pyagopk> but then again, why you trying to display tabular stuff it's not a tabular format!
756: [17:09:30] <Pyagopk> idk.
757: [17:09:40] <Pyagopk> kinglozzer: not jquery ui
758: [17:09:46] <Pyagopk> that's the biggest faff though.
759: [17:09:57] <kinglozzer> Pyagopk: autocomplete loads jQuery UI :|
760: [17:09:58] <Pyagopk> but you need entwine and the autoloady stuff
761: [17:10:05] <Pyagopk> kinglozzer: oh, lame.
762: [17:10:11] <kinglozzer> Because the dropdown clearly needs that entire lib
763: [17:10:11] <kinglozzer> :P
764: [17:10:21] <Pyagopk> I just included half the cms, coz CBF'd and gridfield is about the only thing on the page.
765: [17:10:26] <Pyagopk> other than bootstrap, and no jquery ui.
766: [17:10:45] <kinglozzer> Oh no wait, GridField loads it
767: [17:11:19] <kinglozzer> Good budget on this job, I'll just build a field instead I think
768: [17:11:25] <Pyagopk> it has the classes on it, but I don't recall it actually loading jqueryui
769: [17:11:39] <Pyagopk> kinglozzer: building your own table is mostly much easier.
770: [17:11:56] <kinglozzer> Pyagopk: http://api.silverstripe.org/3.1/source-class-GridField.html#253 :(
771: [17:12:03] <Pyagopk> expeically when you don't really need all of the other stuffs that gridfield comes packed with (all that semi-modularity)
772: [17:12:06] <kinglozzer> Yeah but I need it to be a form field, not just a table!
773: [17:13:14] <Pyagopk> oh yeh, right you are
774: [17:13:32] <Pyagopk> jquery ui is heavy, but is only actually used for a few display things.
775: [17:13:39] <Pyagopk> it's a bit silly.
776: [17:13:49] <Pyagopk> things like sortable headers and stuff get a bit messy without it though iirc
777: [17:13:52] <kinglozzer> Pyagopk: I just commented it out and every GridField instance I current have in the CMS works ><
778: [17:14:14] <kinglozzer> DERP ignore me
779: [17:14:24] <kinglozzer> (jQuery UI is obvs being included by something else anyway)
780: [17:14:36] <Pyagopk> mmhmm
781: [17:15:00] <Pyagopk> ffff JS vital to stuff being stored on another domain, shared with live and dev (lib.blahblahapp)
782: [17:15:08] * Pyagopk sighs
783: [17:15:26] <Pyagopk> this is where deployment tools come in I guess, but not before.
784: [17:15:35] <Pyagopk> idk.
785: [17:15:40] * Pyagopk shrugs heaps.
786: [17:15:43] <Pyagopk> then goes home.
787: [17:15:47] <Pyagopk> ciao
788: [17:15:48] * Pyagopk quit ()
789: [17:17:44] * wmk quit (Ping timeout: 250 seconds)
790: [17:24:01] <blueman> My goal with asking about $this->customize()->renderWith() was to try to put an override in there if I pass say ?json=1, then I would force it to display everything in the ->customize(array()) as json. As a way of making every pages data available in json format. If extending renderWith isn't an option can anyone think of a way to achieve this without have to touch every render function?
791: [17:26:54] <pigeonfriend> blueman: why not just: if ($json) { return Convert::array2json($data); } else { return $this->customise($data)->renderWith(...); }
792: [17:29:17] <blueman> pigeonfriend - it's a large site and I was hoping to not have to touch every custom page render, but that would certainly work.
793: [17:31:41] * kinglozzer quit ()
794: [17:31:42] <pigeonfriend> blueman: then I think you could create a function on your model(s) that overloaded renderwith...
795: [17:31:48] <pigeonfriend> but... that's really horrible
796: [17:32:21] * EasyCo quit (Quit: Connection closed for inactivity)
797: [17:36:44] <blueman> pigeonfriend: how would one do that? Does simply putting a renderWith function in there overload it? I know many parts of the core aren't really made to be extended or overloaded easily...
798: [17:39:16] <pigeonfriend> If you were feeling really nasty, you'd do something like: function renderWith($template, $customFields = null) { if ($ajax) { return Convert::array2json($this->customisedObject ?: $this->toArray()); } else { return parent::renderWith($template, $customFields); }
799: [17:40:05] <pigeonfriend> but it 100% doesn't belong there. that'd be a hack to save you editing tons of controller actions rather than doing something right...
800: [17:40:22] <pigeonfriend> in fact, actually... better would be to override handleAction on your Page_Controller
801: [17:40:46] <pigeonfriend> maybe... hmmm... not if your actions already call renderWith...
802: [17:40:58] <pigeonfriend> blueman
803: [17:57:27] * ThePeach quit (Quit: leaving)
804: [18:02:13] <blueman> yeah, it feels hackish to overload everything...
805: [18:14:39] <GioVdK> Hello, I'm playing with entwine but the handler from the GridField.js file is called before mine: https://github.com/silverstripe/silverstripe-framework/blob/3.1/javascript/GridField.js#L144
806: [18:17:12] * Stomach has joined #silverstripe
807: [18:20:27] * muskie9 is now known as muskie9_afk
808: [18:26:43] * Stomach quit (Quit: zzz)
809: [18:28:11] * benjhocking quit (Quit: Leaving.)
810: [18:34:57] * muskie9_afk is now known as muskie9
811: [18:38:10] <GioVdK> ok, found it.. had to wrap it into $.entwine("ss", function ($) { ... }
812: [18:50:33] * Colin[pi] has joined #silverstripe
813: [18:51:42] * Stomach has joined #silverstripe
814: [18:53:50] * Olliepop has joined #silverstripe
815: [18:54:37] * muskie9 is now known as muskie9_afk
816: [18:58:29] * muskie9_afk is now known as muskie9
817: [18:58:48] * gelignite has joined #silverstripe
818: [19:07:34] * GioVdK quit (Ping timeout: 246 seconds)
819: [19:30:04] * zippy has joined #silverstripe
820: [19:34:03] * Ryan-Toast has joined #silverstripe
821: [19:34:24] * glenn-bautista has joined #silverstripe
822: [19:35:43] * jedateach has joined #silverstripe
823: [19:42:59] * glenn-bautista quit (Read error: Connection reset by peer)
824: [19:43:43] * joelpittet quit (Remote host closed the connection)
825: [19:44:05] * glenn-bautista has joined #silverstripe
826: [19:48:09] * glenn-bautista quit (Read error: Connection reset by peer)
827: [19:48:26] * glenn-bautista has joined #silverstripe
828: [19:50:12] * novaweb has joined #silverstripe
829: [19:51:40] * blueman quit (Ping timeout: 246 seconds)
830: [19:53:00] * glenn-bautista quit (Read error: Connection reset by peer)
831: [19:53:30] * glenn-bautista has joined #silverstripe
832: [19:57:45] <jedateach> Is it possible to force next SS login to swap the encryption type?
833: [19:58:48] <jedateach> or alternatively - force change password, and that results in the encryption type being updated
834: [19:58:59] * zippy quit (Remote host closed the connection)
835: [19:59:15] * zippy has joined #silverstripe
836: [20:00:53] <MichalKleiner> morning
837: [20:01:01] <Ryan-Toast> Mooorning.
838: [20:01:06] <MichalKleiner> uaaa
839: [20:01:09] <MichalKleiner> another day
840: [20:01:14] <Ryan-Toast> Great day.
841: [20:01:30] <MichalKleiner> yeah, mid week, nearly friday
842: [20:01:32] <MichalKleiner> that's good
843: [20:01:32] <Ryan-Toast> Got accepted to a new flat, and I have to move out on Sunday. So I was cuttong it a little close :P
844: [20:01:47] <MichalKleiner> oh, great, good for you
845: [20:01:55] <UndefinedOffset> jedateach, you can force the user(s) to change their password by setting the PasswordExpiry on the Member table to a date in the past. I don't think it's surfaced in the cms
846: [20:02:21] * Stomach_ has joined #silverstripe
847: [20:03:41] <jedateach> UndefinedOffset: cool…and any ideas on switching encryption format?
848: [20:04:52] * glenn-bautista quit (Read error: Connection reset by peer)
849: [20:04:56] <novaweb> jedateach, in composer: "burnbright/silverstripe-omnipay": "1.2", for the *newest* version?
850: [20:05:09] * Stomach quit (Ping timeout: 250 seconds)
851: [20:05:30] * glenn-bautista has joined #silverstripe
852: [20:06:36] <UndefinedOffset> jedateach since the cms it self can't reverse the passwords your only option would probably be to use one of the extension points in member (https://github.com/silverstripe/silverstripe-framework/blob/3.1/security/Member.php#L478) but you don't have the users plain text password so the only other option would be to create a custom authenticator that not only authenticates the user but checks to see if their password needs to be r
853: [20:07:28] <UndefinedOffset> jedateach as for changing the password I believe setting Password on a member will cause it to encrypt, will it change the encryption algo... not sure :)
854: [20:07:29] <muskie9> jedateach, we needed to define the encryption type when setting up SSO for our module... https://github.com/dynamic/foxystripe/blob/1.0/code/extensions/CustomerExtension.php#L24 been a while since I dug into that part of it though
855: [20:08:23] <UndefinedOffset> muskie9 that wouldn't work though if the password is already encrypted you'd need the plain text version first
856: [20:08:33] <muskie9> true
857: [20:09:03] <UndefinedOffset> also wouldn't dev/tasks/EncryptAllPasswordsTask work for non encrypted passwords anyways?
858: [20:09:29] * novaweb quit (Ping timeout: 250 seconds)
859: [20:09:48] <jedateach> basically I have a buch of legacy md5 encrypted passwords (no salt), that I want upgraded automatically as people log in or admin changes passwords etc.
860: [20:09:49] * glenn-bautista quit (Read error: Connection reset by peer)
861: [20:09:50] <muskie9> I think that would just re-encrypt whatever value is in the db... it was really funky when we were working w/the encryption stuff
862: [20:10:06] <jedateach> thansk muskie9 - I’ll try see if that works
863: [20:10:33] <jedateach> UndefinedOffset is probably right if the encryption is done before onBeforeWrite
864: [20:10:35] * glenn-bautista has joined #silverstripe
865: [20:11:07] * glenn-bautista has left #silverstripe
866: [20:11:34] <jedateach> and I think it’d need a $this->isChanged(“Password”) check or something
867: [20:11:52] * antmas has joined #silverstripe
868: [20:12:07] <antmas> morning all
869: [20:12:09] <antmas> o/
870: [20:12:27] <UndefinedOffset> ya so you'd need the plain text password, I'd personally just expire all of them :P though it doesn't look like simply changing the password will upgrade the encryption https://github.com/silverstripe/silverstripe-framework/blob/3.1/security/Member.php#L852-L876
871: [20:12:31] <Olliepop> morning
872: [20:13:18] <zippy> morning
873: [20:14:29] <jedateach> UndefinedOffset muskie9: It looks to me like the encryption is done inside Member’s onBeforeWrite
874: [20:14:59] <jedateach> lol didn’t see the link
875: [20:15:12] <UndefinedOffset> jedateach ya sorry forgot to mention you
876: [20:16:13] <jedateach> hmm - maybe I can somehow set $member->PasswordEncryption before that code is run
877: [20:16:59] <UndefinedOffset> jedateach you should be able to do that just before you call write() after changing the users password
878: [20:18:11] <muskie9> right, just need to specify what the $this->PasswordEncryption is as that specs it for the algorithm... PasswordEncryption is used to determine which PasswordEncryptor_* class to utilize iirc https://github.com/silverstripe/silverstripe-framework/blob/3.1/security/PasswordEncryptor.php#L102
879: [20:18:49] * willr has joined #silverstripe
880: [20:21:36] * zippy quit (Remote host closed the connection)
881: [20:23:05] * Hailwood has joined #silverstripe
882: [20:36:21] <antmas> anyone comment on when 3.2 is due?
883: [20:41:30] <Ryan-Toast> Top men are on it. Top. Men.
884: [20:41:47] <antmas> mm
885: [20:41:59] <antmas> waiting on ss23 to deploy
886: [20:46:07] * UncleCheese has joined #silverstripe
887: [20:47:46] <willr> antmas 3.2 will be out this half of the year. Pretty sure that was the decision at the last core chat
888: [20:48:06] <antmas> willr: \o/
889: [20:49:53] <Ryan-Toast> what do you set at the controller in the __construct of a MemberLoginForm extension?
890: [20:54:02] <Ryan-Toast> nvm, was being a noob.
891: [20:54:10] <antmas> any alternatives to RestfulService that supports JSON?
892: [20:54:46] * novaweb has joined #silverstripe
893: [20:55:15] <novaweb> Friends... what tools do you personally use to test website performance (load time etc)
894: [20:56:24] <antmas> novaweb: I use Chrome's toolset, IE's equivalent and Fiddler
895: [20:56:44] <antmas> hate that name
896: [20:56:47] <antmas> Fiddler
897: [21:04:41] * micmania1 has joined #silverstripe
898: [21:10:28] * greenman__ has joined #silverstripe
899: [21:11:35] * UndefinedOffset quit (Quit: Leaving.)
900: [21:12:49] * r3v3rb has joined #silverstripe
901: [21:13:22] <Ryan-Toast> is there a batter way of getting the Parent link of a page than: Page::get_by_id('CallerClass', $this->ParentID)->AbsoluteLink()
902: [21:13:36] * SpliffSplendor has joined #silverstripe
903: [21:13:50] <muskie9> $this->Parent()->AbsoluteLink() ?
904: [21:13:55] <r3v3rb> Ryan-Toast: I just use $this->Parent()->link
905: [21:14:03] <r3v3rb> muskie9: tada!
906: [21:14:04] <Ryan-Toast> …well then :P
907: [21:14:14] <muskie9> or $this->owner->Parent() from the controller
908: [21:14:14] <Ryan-Toast> that does look better.
909: [21:14:20] <r3v3rb> Ryan-Toast: :D
910: [21:14:38] <Stomach_> muskie9 - shouldnt that be $this->data()->Parent() ?
911: [21:14:48] <r3v3rb> Stomach_: nope
912: [21:14:54] <r3v3rb> not that I’m aware of
913: [21:15:02] <muskie9> Stomach_ yes... need more redull... $this->owner for DataExtensions
914: [21:15:04] <Ryan-Toast> nah, owner is the right one :) Chur, guys.
915: [21:15:14] <r3v3rb> $this->Parent()->Link or AbsoluteLink work equally well
916: [21:15:27] <Ryan-Toast> I just used AbsoluteLink() just in case.
917: [21:15:30] <muskie9> I need more caffeine
918: [21:15:38] <r3v3rb> Ryan-Toast: depends on basehref being set I guess
919: [21:15:40] <micmania1> $this->data()->Parent() is the same as $this->Parent()
920: [21:16:03] <r3v3rb> hi ya micmania1
921: [21:16:10] <micmania1> r3v3rb: areet!
922: [21:16:15] <r3v3rb> aye
923: [21:16:19] <muskie9> $this->Parent() works in the controller?
924: [21:16:19] <r3v3rb> youz?
925: [21:16:26] <micmania1> aye :)
926: [21:16:47] <r3v3rb> muskie9: no $this->owner->Parent()->Link from the controller
927: [21:16:53] <r3v3rb> afaik
928: [21:17:00] <micmania1> muskie9: yep. Parent() falls over to __call() which then cals ->failover->Parent()
929: [21:17:10] * novaweb quit (Quit: Leaving)
930: [21:17:10] <r3v3rb> micmania1: there you go!
931: [21:17:16] * SpliffSplendor quit (Client Quit)
932: [21:17:19] <muskie9> I'll have to remember that
933: [21:17:22] <r3v3rb> right I gtg, was brief but worth it!
934: [21:17:31] <r3v3rb> bb2moro
935: [21:17:36] <r3v3rb> meeting at 10
936: [21:17:42] <micmania1> cya
937: [21:17:46] <r3v3rb> then online and irc for the rest of the day :D
938: [21:17:55] <r3v3rb> been a while since I had time!
939: [21:18:40] * Stomach_ is now known as Stomach
940: [21:18:58] <Stomach> micmania1 - I like to be explicit with that stuff
941: [21:19:13] <Stomach> in case in the future I make a parent function because I hate myself or something
942: [21:19:16] <micmania1> Stomach: yep, its GOT to be quicker but templated do it in the same way.
943: [21:19:31] <micmania1> $Parent.Title is the same as $data.Parent.Title
944: [21:19:59] <Stomach> yeah, magic methods ftw
945: [21:20:02] <Stomach> or sometimes ftl
946: [21:20:26] <micmania1> http://reactiongifs.me/wp-content/uploads/2013/08/shia-labeouf-magic-gif.gif
947: [21:20:54] <Stomach> Ryan-Toast - a competitor appears!
948: [21:21:30] <Ryan-Toast> Stomach: https://i.imgur.com/rNbbjzy.jpg
949: [21:21:33] <micmania1> Ryan-Toast gave me a all his gifs in a tidy little bookmark. I need ot make better use of them though :(
950: [21:21:40] <Ryan-Toast> micmania1: :D
951: [21:21:50] <Ryan-Toast> I need to sort them better.
952: [21:22:05] <micmania1> Should make a github repo :p
953: [21:22:50] <Ryan-Toast> That’s not a bad idea actually.
954: [21:22:50] <r3v3rb> Ryan-Toast: nice animated GIF wrapped in .jpg :P
955: [21:23:34] <r3v3rb> off I go… night all, enjoy breakfast SS-NZer’s
956: [21:24:01] <micmania1> breakfast == coffee
957: [21:24:04] <micmania1> night!
958: [21:24:08] <r3v3rb> micmania1: yep
959: [21:24:11] <r3v3rb> nn
960: [21:24:18] * r3v3rb quit (Quit: r3v3rb)
961: [21:26:02] <Stomach> Blue V == breakfast
962: [21:26:06] <Stomach> om nom caffeine high
963: [21:26:59] * EasyCo has joined #silverstripe
964: [21:27:59] * mahfuz has joined #silverstripe
965: [21:28:55] <EasyCo> Mornin'
966: [21:29:47] <Stomach> hey EasyCo
967: [21:29:51] <Stomach> morning madmatt
968: [21:29:54] <Stomach> and mahfuz
969: [21:29:59] <Stomach> >_<
970: [21:38:41] * joelpittet has joined #silverstripe
971: [21:51:32] <Colin[pi]> moin moin
972: [21:57:49] <Stomach> hey Colin[pi]
973: [21:57:53] * cloph quit (Ping timeout: 245 seconds)
974: [22:01:54] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
975: [22:06:17] * travis-ci has joined #silverstripe
976: [22:06:18] <travis-ci> dhensby/silverstripe-framework#115 (pulls/fixes - 84d1422 : Daniel Hensby): The build has errored.
977: [22:06:19] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/875174f82c7d...84d142213d0f
978: [22:06:19] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/50267871
979: [22:06:19] * travis-ci has left #silverstripe
980: [22:10:04] * wracu has joined #silverstripe
981: [22:16:20] * PapaBearNZ has joined #silverstripe
982: [22:16:36] <PapaBearNZ> Good morrow gentles all.
983: [22:17:19] <Stomach> hey PapaBearNZ
984: [22:18:05] <Colin[pi]> heya PapaBearNZ
985: [22:23:27] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
986: [22:29:10] * antmas quit (Ping timeout: 246 seconds)
987: [22:40:03] * antmas has joined #silverstripe
988: [22:42:00] * mobiusnz has joined #silverstripe
989: [22:47:40] * ^pH quit (Ping timeout: 255 seconds)
990: [22:50:38] <Colin[pi]> are there any dramas I need to know about if two people are logged into the cms at the same time with the same member account?
991: [22:50:51] <Colin[pi]> or will that work fine?
992: [22:51:20] <ss23> O dpm
993: [22:51:24] <ss23> I think it'll be fine
994: [22:51:32] * UncleCheese has joined #silverstripe
995: [22:51:35] <ss23> The launch my not go ahead
996: [22:51:35] <ss23> ;_;
997: [22:52:29] <ss23> https://www.youtube.com/watch?v=FrLequ6dUdM
998: [22:53:56] <ss23> ;_____;
999: [22:53:58] <ss23> no go
1000: [22:53:59] <ss23> :(
1001: [22:54:40] <PapaBearNZ> launch?
1002: [22:54:56] <Colin[pi]> PapaBearNZ: spaceship!
1003: [22:55:17] <antmas> ss23: ;____;
1004: [22:55:34] <Colin[pi]> spacex, biggest cock tease evar
1005: [22:56:44] <Ryan-Toast> Bethesda is having a spot at E3 this year...
1006: [22:56:51] <Ryan-Toast> Fallout hype train.
1007: [22:56:55] <Ryan-Toast> CHOO CHOO MOTHER FUCKER.
1008: [22:57:37] <Stomach> Halflife 3?
1009: [22:57:55] <Colin[pi]> Ryan-Toast: is there a Valve spot? *tries very carefully to not mention the huge silent HEV suit wearing elephant in the room*
1010: [22:58:12] <Colin[pi]> haha Stomach
1011: [22:58:23] <Colin[pi]> great minds
1012: [22:59:13] <Stomach> ;)
1013: [22:59:42] <antmas> Ryan-Toast: Dishonored 2
1014: [23:00:20] <Ryan-Toast> Colin[pi]: Fallout 4 > Halflife 3
1015: [23:00:29] <Ryan-Toast> that’s just basic math.
1016: [23:00:54] <Colin[pi]> Ryan-Toast: see, I could never really get into fallout...
1017: [23:01:07] <Ryan-Toast> Colin[pi]: Say whhhaaaat
1018: [23:01:07] <Colin[pi]> I've tried two times to start it, but each time I was bored to tears
1019: [23:01:08] <Stomach> BLOW UP MEGATON? QUICK SAVE
1020: [23:01:12] <Stomach> THE CHOOOICES
1021: [23:01:13] <Stomach> OH MY GOD
1022: [23:01:31] <Ryan-Toast> Stomach: That’s a nice coat you’ve got there, Lucas...
1023: [23:01:40] <Colin[pi]> Ryan-Toast: I think though the last time was because I chose one of the shitty DLC missions first
1024: [23:01:58] <Stomach> lasers
1025: [23:02:01] <Stomach> all points lasers
1026: [23:02:05] <Stomach> cant open a lock with a laser
1027: [23:02:08] <Stomach> thats bullshit
1028: [23:02:10] <Stomach> :(
1029: [23:02:17] <Ryan-Toast> Stomach: I’m sure there’s a mod for that
1030: [23:03:04] <Colin[pi]> Ryan-Toast: knowing Bethesda games, there's prolly a mod for anything
1031: [23:03:19] <Ryan-Toast> Colin[pi]: You’re correct.
1032: [23:03:19] <Colin[pi]> most commonly bouncing boobs and giant floppy dicks
1033: [23:04:22] <Stomach> secondlife ?
1034: [23:04:25] <Stomach> flying penis squad
1035: [23:04:26] <Stomach> lets go
1036: [23:04:59] <antmas> Maybe they'll show Doom?
1037: [23:05:47] <Colin[pi]> Stomach: lol did you ever see this guy trolling in secondlife? https://www.youtube.com/watch?v=iYcXcCpD0qA
1038: [23:06:16] <Stomach> nope
1039: [23:06:21] <Colin[pi]> hilarous
1040: [23:06:24] <Colin[pi]> *hilarious also
1041: [23:16:34] * Sticks has joined #silverstripe
1042: [23:17:12] * UncleCheese quit (Ping timeout: 252 seconds)
1043: [23:18:04] * veb has joined #silverstripe
1044: [23:22:49] * muskie9 is now known as muskie9_afk
1045: [23:28:19] * PapaBearNZ quit (Ping timeout: 246 seconds)
1046: [23:30:53] * MichalKleiner quit ()
1047: [23:33:13] * greenman__ quit (Ping timeout: 246 seconds)
1048: [23:40:41] * muskie9_afk is now known as muskie9
1049: [23:47:44] * willr quit (Quit: willr)
1050: [23:48:04] * hailwood_ghost has joined #silverstripe
1051: [23:48:04] * hailwood_ghost quit (Client Quit)
1052: [23:49:16] * travis-ci has joined #silverstripe
1053: [23:49:17] <travis-ci> dhensby/silverstripe-framework#116 (pulls/default-cast - 69ce25c : Daniel Hensby): The build has errored.
1054: [23:49:18] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/209f30748482^...69ce25ce1f99
1055: [23:49:18] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/50279527
1056: [23:49:18] * travis-ci has left #silverstripe
1057: [23:50:56] <Hailwood> Hey guys, I have a large array of values that I am looping over to create data objects foreach(...) {$someDO = new SomeDO(); $someDO->Property = $loop->property; $someDO->write();} is there a more efficient way rather than 600 insert queries to the database?
1058: [23:53:03] * adrexia quit (Remote host closed the connection)
1059: [23:54:38] <muskie9> Hailwood, I've done this before to remove all fields on a DO when I use parent::getCMSFields(): https://gist.github.com/muskie9/51c5f4dffe1cfc10cf14
1060: [23:55:23] <muskie9> not sure you can get around the db queries though
1061: [23:55:56] * Michal_ has joined #silverstripe
1062: [23:56:05] * Michal_ is now known as MichalKleiner
1063: [23:57:57] <Hailwood> Yeah it's the 600 write queries to the database that is bothering me.
1064: [23:58:20] <muskie9> don't think there's a way around that

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