#silverstripe IRC Log

IRC log for 16 June 2014

All timestamps are in UTC.

1: [00:00:15] <camfindlay> so maybe we need to better structure docs?
2: [00:00:58] <simon_w|air> camfindlay, or make search actually usable
3: [00:01:14] <camfindlay> are there any examples in the docs of a good one?
4: [00:01:28] <camfindlay> simon_w yeah search fixes would be good
5: [00:01:42] <simon_w|air> camfindlay, search fixes are more important than navigational structure
6: [00:02:17] <camfindlay> is the assumtion that people would likely use search more than explore the nav?
7: [00:02:35] <simon_w|air> It's fairly well researched that that's the case
8: [00:03:27] <camfindlay> here’s the facts on this… stats here say only 2.7% of visits actually use the search
9: [00:04:06] <guzzlefry> Where's the doc guy at?
10: [00:04:32] <simon_w|air> And how many visits go directly to one page, then leave?
11: [00:04:55] <simon_w|air> And how many would use the search if it didn't suck?
12: [00:05:14] <antmas> guzzlefry: Japan
13: [00:05:24] <guzzlefry> lucky
14: [00:05:38] <camfindlay> that assumes the user already knows it sucks before using - might be interesting to see of new visitors what the usage is like
15: [00:06:22] <antmas> also, more to the docs, IE often has trouble loading it (IE9 and 10)
16: [00:06:51] <camfindlay> thanks for feedback antmas :)
17: [00:06:59] <antmas> np camfindlay
18: [00:07:24] <camfindlay> I’ll start a doc sometime soon and collate all this stuff up
19: [00:07:54] <camfindlay> I get complaints but never much real insight to help us fix this stuff
20: [00:08:05] <camfindlay> which is why I’m keen to investigate more
21: [00:08:07] <antmas> but yeah I'd say the core problem is in 2 parts - navigation (search included) and incompleteness
22: [00:08:21] <camfindlay> which is worse?
23: [00:08:25] <camfindlay> :P
24: [00:08:27] <antmas> hard to say
25: [00:08:28] <antmas> :P
26: [00:08:48] <antmas> but I often see 'can't find it in the docs' - so could be a mixture of both
27: [00:08:49] <antmas> ?
28: [00:08:59] <antmas> fom other people*
29: [00:09:02] <antmas> from*
30: [00:09:06] <zippy__> damn, phpstorm is js files is slow, maxing out the cpu
31: [00:09:08] <antmas> bahhh, can't computer
32: [00:09:36] <antmas> zippy__: latest version? I had that until an update about a month ago?
33: [00:09:37] <guzzlefry> zippy__: that doesn't sound normal...
34: [00:09:38] <simon_w|air> camfindlay, antmas, also, there's a lot of out of date information in there, and then things that are just wrong
35: [00:09:46] * simon_w|air quit (Quit: This computer has gone to sleep)
36: [00:10:03] <antmas> simon_w: yeah, kinda what I mean by incompleteness
37: [00:10:22] <zippy__> guzzlefry I got about 400k of js files here (quite a few plugins) so I think it tries to parse and process them all often
38: [00:10:40] <zippy__> look slike it's common, from a google search
39: [00:10:41] <guzzlefry> ah
40: [00:12:03] <Kingy> how to go about getting current url in controller (blah.com/parent/child)?
41: [00:13:40] <guzzlefry> link()?
42: [00:14:54] <guzzlefry> maybe used in conjunction with Director::absoluteURL()
43: [00:16:37] <zippy__> Kingy: You mean the currently requested url, or the Link of the page?
44: [00:16:57] <Kingy> zippy__: link of the page the user is currently on
45: [00:17:14] <zippy__> so, $this->Link() and/or $this->Li
46: [00:17:25] <zippy__> $this->Link('action'); like $this->Link('submit');
47: [00:18:15] <Kingy> and if there is already a Link function in the controller :P
48: [00:18:18] <Kingy> ?
49: [00:18:48] <simon_w> $this->failover->Link
50: [00:19:33] <camfindlay> I’ll raise the doc issue again sometime once I get a doc together to capture the good discssions, but thanks for the feedback so far all. If you add more thoughts please make sure to address to me so I can find them or email me direct :)
51: [00:19:34] <irogue_> camfindlay: for reference, example of docs I find quite well done: http://book.cakephp.org/2.0/en/index.html
52: [00:19:38] <zippy__> Kingy: I'd caution you to use a different name for your Link function if it's not like $Link from the parent… (getting the page link) as some plugins might expect $Link to get you the link
53: [00:20:49] <camfindlay> irogue_ what would be the most well done doc on SilverStripe docs?
54: [00:20:58] <irogue_> camfindlay: a lot of detail, nicely nested so it's easy to find stuff, reads like a book, a ton of examples
55: [00:21:06] <zippy__> mm so this project has 15.5k lines of ccs. I wonder if there is any performance penalty with having some many rules...
56: [00:21:24] <antmas> zippy__: sass yo
57: [00:21:27] <Kingy> zippy__: I'd agree, but I'm currently working with what I've been given
58: [00:22:14] <Kingy> simon_w: thanks, that no longer gives an error but it's blank
59: [00:22:15] <simon_w> zippy__, there is
60: [00:24:01] <irogue_> camfindlay: the closest is probably page-types - it's got charts to try to explain how things work in SS, and some examples, but it relies too much on throwing people off to the tutorials rather than having the documentation on the page
61: [00:24:59] <Ryan-Toast> antmas: people using sass wrong.
62: [00:25:16] <antmas> Ryan-Toast: I meant, USE sass
63: [00:25:20] <irogue_> camfindlay: taking some "inspiration" from the books might be a good idea as far as how things are structured and what needs explaining\
64: [00:25:23] <Ryan-Toast> oh, right :P
65: [00:25:46] <antmas> irogue_: camfindlay yeah tutorials and docs should not be separated like that
66: [00:26:34] <camfindlay> kool so the conceptual material should exist alongside some sort of practical example
67: [00:26:39] <irogue_> yeah
68: [00:26:44] <antmas> definitely
69: [00:26:48] <Ryan-Toast> agreed
70: [00:27:28] <camfindlay> read the concept, play with the code, reflect on what that code does and how you might adapt it to your own use, use it in your project, rinse and repeat
71: [00:27:36] <irogue_> yeap
72: [00:27:40] <antmas> separation can be ok (at best) but not if the docs read like a tech manual and the tuts read like a book etc
73: [00:28:28] <camfindlay> Once you get more seasoned developer how much do you think you still rely on the docs?
74: [00:28:37] <irogue_> also, not sure how hard it'd be to implement, but ideally every mention of a class/method should link through to the API Docs
75: [00:28:46] <Ryan-Toast> Am I alone in thinking themes should be able to add page types?
76: [00:29:18] <irogue_> camfindlay: I still rely on them sometimes as I don't necessarily remember exactly how to do something even if i've done it many times before
77: [00:29:26] <irogue_> e.g. method names, order of arguments etc
78: [00:31:20] <antmas> camfindlay: you don't necessarily rely on them once you're seasoned (coming from .net here however), but it's more a point of reference if you simply forget something.
79: [00:31:44] <antmas> like remebering EXACT syntax for specific commands, methods etc
80: [00:31:52] <antmas> so... what irogue_ said :P
81: [00:32:10] <camfindlay> would having the practical examples alongside the tech docs be annoying at the point where you are more seasoned?
82: [00:32:27] <antmas> camfindlay: depends how they're presented
83: [00:32:29] * Azure has joined #silverstripe
84: [00:32:40] <irogue_> yeah, if you present them like tech books do, it'd be good
85: [00:33:04] <Kingy> camfindlay: not necessarily. If you're just hitting the page to find the correct syntax etc then quickly scanning over code blocks is easy enough
86: [00:33:25] <irogue_> have a nosy at http://book.cakephp.org/2.0/en/views.html
87: [00:33:42] <camfindlay> what about pop open example blocks? or would that get annoying :P
88: [00:33:47] <irogue_> the code blocks stand out a lot, so you can skip to them easily
89: [00:33:57] <Kingy> camfindlay: oh hell no haha
90: [00:34:15] <antmas> camfindlay: all of my nopes on that one
91: [00:34:44] <camfindlay> thought so ;)
92: [00:34:49] <irogue_> there are "advanced tips" and "new / changed stuff" with special formatting so they stand out, too
93: [00:35:03] <irogue_> and the API docs are on the same page. which would be amazeballs
94: [00:35:12] <antmas> yeah
95: [00:35:25] <antmas> it doesn't need any fancy navigation or structure either
96: [00:35:31] <antmas> just clarity
97: [00:35:46] <Ryan-Toast> Everything is or isn’t icecream.
98: [00:35:50] <irogue_> makes it a huge page, but it doesnt matter, cos newbies need to read it all, and advanced users will just do browser search within the page to find what they want
99: [00:35:56] <camfindlay> how do you think we might be able to deal with the versions of SIlverStripe doc needing to exist?
100: [00:36:18] <irogue_> better than splitting it into different pages and having to hunt around to find the right page
101: [00:36:26] <irogue_> e.g. Forms and Form Validation currently are different pages, which IMO makes no sense
102: [00:36:46] <camfindlay> so better categorisation of related stuff?
103: [00:36:54] <irogue_> yep
104: [00:36:54] <camfindlay> Like a book chapter of forms would do
105: [00:37:02] <irogue_> yeah
106: [00:37:54] <irogue_> I really can't praise the way CakePHP have done their docs enough
107: [00:38:12] <antmas> camfindlay: the way the docs currently handle versions is 'fine', just needs to be more clear as to what version you're currently viewing
108: [00:38:38] <camfindlay> antmas yeah
109: [00:41:04] <antmas> question - gitorious or gitlab?
110: [00:41:32] <simon_w> antmas, gitlab!
111: [00:41:49] <antmas> simon_w: any reason? or is it just better?
112: [00:41:57] <simon_w> antmas, because it's what I use :p
113: [00:42:09] <antmas> reason enough :D
114: [00:42:14] <simon_w> Also, is piss easy to install
115: [00:42:22] <antmas> gonna move our repo from gitorious to gitlab
116: [00:42:54] <zippy__> irogue: they're not tooo bad.. i do like laravels better I think
117: [00:42:56] <camfindlay> yeah +1 for gitlab
118: [00:44:34] <simon_w> camfindlay, is the CWP one still running some really old version?
119: [00:45:10] <antmas> camfindlay: yeah igor suggested me move over as it's nicer to use (and I have constant issues with gitorious not allowing me to do even basic things :P)
120: [00:45:28] <antmas> we*
121: [00:45:35] <camfindlay> gitlab also has a nice workflow similar to github
122: [00:45:57] <antmas> dos gitlab support https?
123: [00:46:01] <antmas> does*
124: [00:46:02] <camfindlay> simon_w yeah older I think due to certain policies I imagine
125: [00:46:24] <simon_w> antmas, yes
126: [00:46:37] <simon_w> antmas, is what https://git.simon.geek.nz/public is running
127: [00:47:18] <antmas> simon_w: ah, nice and simple :D
128: [00:50:18] <irogue_> zippy__: i actually found Laravels frustrating
129: [00:50:36] <irogue_> it's split up based on how the codebase is split, not how a dev will use it
130: [00:50:46] <irogue_> e.g. the ORM being all the way at the bottom
131: [00:52:01] <irogue_> views and controllers are under Getting Started top-level, but models/ORM down under a Database top-level which had me completely lost for a while as it was below the fold and I just expected them to cover the ORM under Getting Started
132: [00:52:43] <irogue_> also has lines like "Of course, you may also use the query builder aggregate functions."
133: [00:53:54] <irogue_> which doesn't explain what that is/means, and the "of course" gives it a tone of "you're an idiot if you don't know what this is or that you can use it here"
134: [00:54:38] <antmas> fuck you git, I'm not using port 22 :<
135: [00:55:10] <irogue_> basically their docs would be near unreadable if you haven't gone pretty deep into at least one other pretty advanced MVC framework
136: [00:57:24] <camfindlay> agree, think a balance of accessible docs for newcomers but enough tech for your everyday developers to use as a reference
137: [01:04:49] <antmas> zippy__: dat rain
138: [01:10:23] * myles has joined #silverstripe
139: [01:11:25] * Jarrad has joined #silverstripe
140: [01:12:10] <myles> hi, does any one know what may cause this error http://stackoverflow.com/questions/24226582/popcurrent-called-on-modelascontroller-controller-but-it-wasnt-at-the-top-of-t/24230100#24230100
141: [01:15:49] <myles> has anyone seen this before?
142: [01:18:47] <camfindlay> simon_w fyi, new visitors that use search on docs is only 0.5% (but still search should be considered with any nav improvements).
143: [01:19:15] <Stomach> camfindlay, new visitors over their whole session, or new visitors as in first page view?
144: [01:19:42] <camfindlay> that is whole session
145: [01:19:45] <Stomach> also, where are the new visitors landing - likely from a google search which would preclude their use of the search anyway
146: [01:19:49] <Stomach> ?
147: [01:20:01] <antmas> this ^^
148: [01:20:10] * myles quit (Ping timeout: 246 seconds)
149: [01:20:24] <camfindlay> so you are saying, new users that have come from organic search
150: [01:20:40] <antmas> yeah I would say
151: [01:20:44] <antmas> they do *
152: [01:20:52] <antmas> I do at least :P
153: [01:21:11] <Stomach> I'd be more interested in the stats for people who haven't come from an organic search and then use the search in their session
154: [01:23:06] * Jarrad quit (Quit: Page closed)
155: [01:25:30] <zippy__> antmas: mmm
156: [01:30:27] <zippy__> If I had a field with content in it, and then I want to rename that field, while keeping that content is there a way to migrate that?
157: [01:35:50] * travis-ci has joined #silverstripe
158: [01:35:51] <travis-ci> [travis-ci] chillu/silverstripe-framework#143 (pulls/2796-form-escape - 2fca4dc : Ingo Schommer): The build is still failing.
159: [01:35:51] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/6269ac8f07bf...2fca4dc71364
160: [01:35:51] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/27646356
161: [01:35:51] * travis-ci has left #silverstripe
162: [01:37:10] <UncleCheese> zippy__ UPDATE TableName SET NewField = OldField;
163: [01:37:15] <guzzlefry> yeah that :P
164: [01:37:28] <zippy__> mmmm
165: [01:37:30] * guzzlefry types too slow these days.
166: [01:53:53] <Ryan-Toast> Hmm webkit is doing some funny stuff.
167: [01:54:27] <Ryan-Toast> Cutting off a bit of my J, lol: http://www.gfycat.com/PoshSecondaryDarwinsfox
168: [01:54:47] * zippy__ quit (Ping timeout: 245 seconds)
169: [01:56:33] * zippy__ has joined #silverstripe
170: [01:57:56] <irogue_> Ryan-Toast: at least it's not cutting off a bit of your D
171: [01:58:02] <Ryan-Toast> irogue_: lol!
172: [02:00:29] * antmas_ has joined #silverstripe
173: [02:02:52] * antmas quit (Ping timeout: 246 seconds)
174: [02:04:14] * antmas_ is now known as antmas
175: [02:16:45] <simon_w> Yay! App submission time!
176: [02:18:44] <antmas> simon_w: ohhh what's the app?
177: [02:18:50] <simon_w> Also, Xcode fighting compiling gcc time!
178: [02:18:57] <simon_w> pocketrent.com/ios
179: [02:19:20] <simon_w> Oh goody, that link still works
180: [02:19:51] <antmas> looks like a form filler app?
181: [02:20:26] <simon_w> Kinda, though there's no other way to fill in the form
182: [02:20:44] <antmas> I'm making on of those soon :/
183: [02:20:47] <antmas> yey
184: [02:20:50] <antmas> one*
185: [02:20:54] <zippy__> simon_w: still working for/with pocketrent?
186: [02:21:02] <simon_w> Yes
187: [02:21:10] <simon_w> antmas, write it in Swift!
188: [02:21:37] <antmas> simon_w: will be for android
189: [02:21:48] <simon_w> antmas, don't let that stop you!
190: [02:22:07] <zippy__> antmas: write it in delphi!
191: [02:22:23] <antmas> :P
192: [02:22:28] <antmas> won't be starting it for ages
193: [02:23:15] <simon_w> Whereas, I start a new job tomorrow!
194: [02:23:17] <antmas> I've made android and win8p apps, but not ios yet :(
195: [02:23:32] <simon_w> Will probably be a lot more absent from IRC!
196: [02:24:07] <zippy__> say it aint soo!
197: [02:28:28] <irogue_> i will not goo!
198: [02:30:11] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
199: [02:30:53] <antmas> zippy__: you used delphi before?
200: [02:30:58] <zippy__> yes
201: [02:32:22] <antmas> zippy__: what's it cost?
202: [02:32:33] * UncleCheese has joined #silverstripe
203: [02:32:46] <zippy__> 700-800 or something I think, depends what license
204: [02:32:51] <zippy__> been a few years
205: [02:33:31] <Stomach> simon_w absent from IRC, yeah right
206: [02:33:57] <irogue_> thats like ss23 being absent from japanese tentacle porn
207: [02:35:38] <Stomach> i wonder how he is
208: [02:35:46] <Stomach> answer us ss23 :(
209: [02:36:07] <antmas> zippy__: interesting
210: [02:37:48] <Ryan-Toast> Any one seen Colin[pi] recently? Feel like I haven’t seen him here in ages.
211: [02:38:45] <zippy__> [08/06/2014 18:07:45] * Colin[pi] quit ()
212: [02:38:47] <zippy__> mmm
213: [02:38:49] <simon_w> Ryan-Toast, he's on holiday
214: [02:38:53] <antmas> Ryan-Toast: in hospital
215: [02:38:56] <Ryan-Toast> simon_w: Ah, makes sense :)
216: [02:39:12] <antmas> just got out yesterday I think
217: [02:39:25] <Ryan-Toast> What was he in Hospital for?
218: [02:39:35] <antmas> Ryan-Toast: I think it's liver poisoning?
219: [02:39:39] <antmas> he's fine though
220: [02:40:04] <Ryan-Toast> Well that’s good.
221: [02:43:09] <Stomach> you guys are so good to each other, it makes me actually smile sometimes
222: [02:43:32] <antmas> Stomach: :O sarcasm?
223: [02:43:43] <Stomach> no, for reals
224: [02:43:43] <Ryan-Toast> Can you hook into the $MetaTags thing that’s used in a template?
225: [02:43:52] <antmas> Stomach: :D
226: [02:44:41] <Stomach> Ryan-Toast, public function MetaTags(&$tags) { $tags = 'LOLOLOL TAGS'; }
227: [02:44:57] <Stomach> on a data extension
228: [02:45:09] <Ryan-Toast> Stomach: Will that add, or override?
229: [02:45:15] <Stomach> override
230: [02:45:34] <Ryan-Toast> Stomach: LAM
231: [02:47:03] <Stomach> if its a sitetree object you could do public function MetaTags($includeTitle = true) { $tags = parent::MetaTags($includeTitle); $tags .= 'added'; return $tags; } or something
232: [02:50:17] <antmas> javascript question, can I add another style attribute to something like this? $('.ms-core-listMenu-item:contains("Home")').css('background-color', '#004fa3');
233: [02:50:24] <Ryan-Toast> Stomach: I just wanted to add a default option in sitetree that could be overriden by individual pages. Having to cut paste the same meta description in each page is prety annoying.
234: [02:50:31] <antmas> or do I have to repeat it?
235: [02:50:39] <Stomach> Ryan-Toast, that isn't meta tags
236: [02:50:40] <Stomach> >_<
237: [02:51:03] <Ryan-Toast> antmas: .css({‘herp’: ‘derp’, ‘foo’, ‘bar’})
238: [02:51:07] <Stomach> antmas, ^
239: [02:51:15] <antmas> oh sweet
240: [02:51:18] <antmas> Stomach: Ryan-Toast chur
241: [02:51:21] <Stomach> except 'foo':'bar'
242: [02:51:23] <Ryan-Toast> Missed the : in the second one
243: [02:51:29] <antmas> spotted :P
244: [02:51:52] <Stomach> Ryan-Toast, you could probably yml config out the MetaDescription default
245: [02:52:07] <Ryan-Toast> Stomach: prefs editable by the client
246: [02:52:14] <Stomach> "default"
247: [02:52:54] <Ryan-Toast> Stomacgh: what does metaTags actually do?
248: [02:53:06] <Stomach> meta tags add tags to the page, which are meta
249: [02:53:14] <Stomach> >_> <_< >_<
250: [02:53:21] <Ryan-Toast> As well as the genrator + additional bs?
251: [02:53:46] <irogue_> meta descriptions are damn near useless these days anyway tho
252: [02:53:51] <irogue_> as the goog ignores them
253: [02:53:58] <Ryan-Toast> Yesh, was just using as an example.
254: [02:54:15] <Stomach> bing doesnt!
255: [02:54:30] <Ryan-Toast> Bin, lol
256: [02:54:32] <Ryan-Toast> dcfkgvjhbjdg
257: [02:54:34] <Ryan-Toast> typing
258: [02:54:43] <irogue_> bing, the porn search engine
259: [02:54:50] <Stomach> bing!
260: [02:55:06] <Ryan-Toast> Ctrl + Shift + N = the porn search engine
261: [02:55:23] <irogue_> its kinda sad that duckduckgo, which is not a giant corporation with many $$$, has pulled off a far better search engine than Bing
262: [02:55:25] <antmas> insert bing joke here
263: [02:56:14] <Ryan-Toast> ^ Bing
264: [02:56:33] <antmas> XD
265: [02:57:41] <Ryan-Toast> Wanted to use it to hook up my google author link, Open Schema etc
266: [02:57:49] <Ryan-Toast> Guess I’ll make a custom thingy
267: [02:58:03] <irogue_> i'd do it as a SiteConfig
268: [02:58:17] <Ryan-Toast> irogue_: I mean when I put it in the template
269: [02:59:43] <irogue_> <% if $MetaBlah %>$MetaBlah<% else %>$SiteConfig.MetaBlah<% end_if %>
270: [02:59:45] <irogue_> thats what i was thinking
271: [03:00:36] <Stomach> it would be interesting to see the percentage of silverstripe sites which have the default "Welcome to..." as their metadescription on the homepage
272: [03:03:42] * simon_w|air has joined #silverstripe
273: [03:04:20] <Ryan-Toast> Updated the boilerplate demo with various bullshit: http://webdough.co.nz/~boilerpl/
274: [03:04:39] <Ryan-Toast> irogue_: yoeah, I just hate all the whitespace it makes.
275: [03:04:45] <Stomach> whats the easiest way to remove duplicates from a datalist query, just add a group by on the SQL call?
276: [03:05:32] <Stomach> like Details::get()->column('Country')->groupBy('Country'); or something
277: [03:06:48] <simon_w> Stomach, array_unique(Details::get()->column('Country'))?
278: [03:07:56] * anselmdk has joined #silverstripe
279: [03:10:39] <Stomach> wanted to keep it loopable on the template end, guess I can just turn it back into an array list
280: [03:10:54] <simon_w> Well, column() returns an array
281: [03:11:06] <Stomach> yeah, just noticed that
282: [03:11:07] <Stomach> >_<
283: [03:13:49] <Stomach> caching front end fields because i hate life go
284: [03:16:40] <Ryan-Toast> Stomach: I need to add partial caching to my Modules.
285: [03:17:19] <Ryan-Toast> <% cached AllChildren.max(LastEdited) %> isold right?
286: [03:17:32] <Ryan-Toast> <% cached $AllChildren.max(LastEdited) %> should be that?
287: [03:17:55] <Ryan-Toast> for a loop that is
288: [03:18:59] * cloph_away has joined #silverstripe
289: [03:19:03] * cloph quit (Ping timeout: 240 seconds)
290: [03:22:44] * anselmdk_ has joined #silverstripe
291: [03:22:44] * anselmdk quit (Read error: Connection reset by peer)
292: [03:22:44] * anselmdk_ is now known as anselmdk
293: [03:23:54] * simon_w|air quit (Quit: This computer has gone to sleep)
294: [03:29:27] <zippy__> Ryan-Toast: not just that, but you'll want a cound as well
295: [03:29:36] <zippy__> Ryan-Toast: incase you deelete a child in the middle
296: [03:29:37] <Ryan-Toast> A cound?
297: [03:29:41] <zippy__> *count
298: [03:30:01] <Ryan-Toast> How would I go about doing that?
299: [03:33:54] <UncleCheese> Can someone explain to me what "declarative" means in the context of programming? I fear I might be using it wrong.
300: [03:34:23] <Ryan-Toast> "denoting high-level programming languages which can be used to solve problems without requiring the programmer to specify an exact procedure to be followed."
301: [03:34:48] <UncleCheese> The operative word being "explain"
302: [03:35:06] <antmas> that's a perfect explanation if you want no one to understand, yet explain it
303: [03:35:09] <Ryan-Toast> Sorry, google doesn’t have a function for that :P
304: [03:35:13] <antmas> at the same time *
305: [03:35:57] <zippy__> Ryan-Toast: <% cached AllChildren.max(LastEdited) AllChildren.count() %>
306: [03:36:04] <zippy__> with a , in between there
307: [03:36:10] <zippy__> <% cached AllChildren.max(LastEdited), AllChildren.count() %>
308: [03:36:38] <Ryan-Toast> zippy: Ah cool :)
309: [03:36:42] <Ryan-Toast> thatnks
310: [03:36:43] <Ryan-Toast> klfdjbgdfg
311: [03:36:45] <Ryan-Toast> thansks :)
312: [03:36:57] <antmas> UncleCheese: I always thought declaritive means to outline what you have done to make something happen, rather than desscribing what you WANT done to make something happen
313: [03:37:25] <antmas> UncleCheese: declaritive vs imperative ^^^
314: [03:37:45] <UncleCheese> interesting
315: [03:37:56] <UncleCheese> can you provide me an example of declarative code vs imperative?
316: [03:38:02] <antmas> hmmmmmm
317: [03:38:16] <UncleCheese> well
318: [03:38:48] <UncleCheese> this is declarative: <div data-bind="text: FirstName"></div>
319: [03:39:05] <antmas> we're talking programming here :P
320: [03:39:13] <UncleCheese> ugh
321: [03:44:19] <antmas> examples of that are kinda hard
322: [03:44:20] <antmas> actually
323: [03:44:32] <antmas> because in my mind, you need the context
324: [03:44:39] <UncleCheese> this is pretty good http://latentflip.com/imperative-vs-declarative/
325: [03:44:50] <antmas> UncleCheese: yeah I was just reading that
326: [03:45:18] <antmas> so... I was half right? :P
327: [03:45:43] <UncleCheese> i dunno.. i still don't really get it
328: [03:46:00] <UncleCheese> basically all this is saying is to use functions whenever you can
329: [03:46:11] <antmas> yeah it seems
330: [03:46:21] <antmas> UncleCheese: what got you worried in the first place?
331: [03:47:20] <antmas> Ryan-Toast: http://i.imgur.com/isGXwi2.gif I want dis
332: [03:47:35] <Ryan-Toast> antmas: :D
333: [03:48:55] <zippy__> heh
334: [03:49:04] <zippy__> curiosity killed the cat...
335: [03:49:17] <antmas> super weird eyes
336: [03:49:19] <zippy__> woasssts, lets go check it out
337: [03:49:33] <antmas> XD
338: [03:49:54] <antmas> it's me when Jazz is watching GoT while I'm not in the room
339: [03:53:11] <Ryan-Toast> antmas: finale tonight, awwww yiss
340: [03:53:26] <antmas> Ryan-Toast: still haven't watched the last one!
341: [03:53:34] <Ryan-Toast> antmas: you’re brave.
342: [03:53:35] <antmas> *me has read the books though
343: [03:53:37] * markcl has joined #silverstripe
344: [03:53:41] <Ryan-Toast> antmas: me too.
345: [03:53:43] <antmas> bah
346: [03:53:45] <Ryan-Toast> Oh you’re alright then.
347: [03:54:01] <markcl> hello.
348: [03:54:04] <markcl> Im getting this error: [User Error] Uncaught Exception: No has_one found on class 'Image', the has_many relation from 'StillsPage' to 'Image' requires a has_one on 'Image'
349: [03:54:06] <markcl> from this code:
350: [03:54:10] <markcl> http://pastebin.com/FN0hiaNr
351: [03:54:23] <guzzlefry> SQL = declarative?
352: [03:54:35] <antmas> Ryan-Toast: not all of them though, but I keep ahead of the show by a book at least
353: [03:54:49] <markcl> how can i make it work?
354: [03:55:02] <Stomach> markcl, change $belongs_one_many to $has_one
355: [03:55:03] <antmas> guzzlefry: I would agree
356: [03:55:06] <markcl> im just trying to make 1 stills page have many images assigned to it
357: [03:55:08] <Stomach> or $belongs_to
358: [03:55:20] <guzzlefry> antmas: turns out wiki says it is :P
359: [03:55:29] <antmas> ALL HAIL THE WIKI
360: [03:57:22] * guzzlefry bows.
361: [03:57:53] <spronk> UncleCheese: render( profilesOf( users().withLastName('Bloggs') ))
362: [03:59:00] <spronk> UncleCheese: vs users = database.getUsers(); foreach(users as u) { if u.lastName != Bloggs users.remove(u); echo templates.for("user")(u); }
363: [03:59:45] <antmas> spronk: the former being decl.?
364: [03:59:49] <spronk> indeed
365: [04:00:02] <spronk> the latter is one specific way to get all the users with last name bloggs and one specific way to render
366: [04:00:25] <antmas> yeah that's a good example UncleCheese
367: [04:00:29] <spronk> the former is far more abstract - there's some thing (a function, withLastName()) that seems to only produce users with a specific last name
368: [04:00:49] <spronk> and there's some other thing that produces the right template, whatever that may be (profilesOf)
369: [04:00:55] <spronk> and there's some other thing that renders that, vs echo
370: [04:01:14] <spronk> the latter says how to do something
371: [04:01:26] <spronk> the former says what the concept of the thing to do is
372: [04:01:47] <spronk> also
373: [04:01:50] <antmas> masterpage... multiple .js files for custom scripts? or single?
374: [04:01:55] <spronk> people that use "map" and "reduce" and think they are well named are fucking tards
375: [04:02:51] <UncleCheese> spronk so again, it's just anytime you use a method to mask what you're doing
376: [04:03:08] <spronk> UncleCheese: not quite
377: [04:03:10] <antmas> UncleCheese: what do you mean by mask though?
378: [04:03:12] <UncleCheese> it seems to me that it's just a relative measure of how many operations you have abstracted to functions
379: [04:03:20] <spronk> because
380: [04:03:23] <UncleCheese> so like $.ajax() and $.addClass() are declarative?
381: [04:03:29] <spronk> you could call the method iterateThroughArrayAndEchoUserProfile()
382: [04:03:34] <UncleCheese> what isn't declarative, other than the most atomic of operations?
383: [04:03:34] <spronk> but that's not declaring what it is you want to do
384: [04:03:50] <UncleCheese> oh, ok, i see
385: [04:03:58] <spronk> if you have to use a control structure, it's probably imperitive
386: [04:04:13] <spronk> even an if is imperitive to a degree
387: [04:04:19] <antmas> yeah, it's not the function, but implicitly telling it what to do
388: [04:04:19] <UncleCheese> control structure?
389: [04:04:25] <UncleCheese> oh, like a loop or an if/else block
390: [04:04:29] <spronk> ya
391: [04:04:51] <UncleCheese> that's a really good way of thinking of it then
392: [04:05:18] <antmas> UncleCheese: agreed, clarified it for me
393: [04:05:21] <antmas> :P
394: [04:05:44] <Ryan-Toast> Can someone tell me if the share this Post button is broken for them on tis page? http://webdough.co.nz/~boilerpl/blog/we-made-a-weather-app/
395: [04:06:11] <Stomach> apart from the popup going to an _blank it works fine
396: [04:06:20] <antmas> Ryan-Toast: working for me, (ie10)
397: [04:06:53] <Ryan-Toast> Stomach: that’s by desing :P
398: [04:06:54] <spronk> it works in opera/presto, so it's probably fine :P
399: [04:06:55] <antmas> is disqus basically the go to now for comments?
400: [04:06:57] <Ryan-Toast> design**
401: [04:07:04] <Ryan-Toast> antmas: I like it.
402: [04:07:05] <spronk> antmas: either that or fucking discourse
403: [04:07:07] <Ryan-Toast> it’s ez
404: [04:07:46] <antmas> I always have trouble with it when viewed on a mobile
405: [04:07:52] * DesignerX has joined #silverstripe
406: [04:07:56] <Ryan-Toast> disqus?
407: [04:08:00] <antmas> yesh
408: [04:08:07] * Ryan-Toast grabs phone
409: [04:08:12] <zippy__> antmas: ie10? typical govt department
410: [04:08:14] <antmas> probably just chrome being an asshole though
411: [04:08:27] <antmas> zippy__: you know it!
412: [04:09:15] <spronk> typical govt department?
413: [04:09:18] <spronk> wouldn't that be IE8 on XP? :D
414: [04:09:25] <Ryan-Toast> works fine for me.
415: [04:10:26] <antmas> we're off to IE11+ soon, IE10 is just fucked
416: [04:10:28] <zippy__> spronk: ie6 even… and some in nz still are
417: [04:11:05] <Ryan-Toast> zippy__: It’s just devs testing ie6 :P
418: [04:12:32] <spronk> :'(
419: [04:13:32] <Stomach> devs test?
420: [04:13:41] <Stomach> missed that memo.
421: [04:16:30] <antmas> how does everyone store passwords here? I need a good way to manage my login info :/
422: [04:17:16] <spronk> passwords as in
423: [04:17:21] <spronk> ones you use on websites?
424: [04:17:24] <guzzlefry> I use a little black book.
425: [04:17:27] <antmas> yeah
426: [04:17:29] <spronk> 1password wtf
427: [04:17:35] <antmas> guzzlefry: so physical?
428: [04:17:42] <guzzlefry> yeah
429: [04:17:49] <guzzlefry> I was using keepass for a while, but meh
430: [04:17:58] <antmas> spronk: 1password?
431: [04:18:00] * zippy__ quit (Quit: zippy__)
432: [04:18:01] <guzzlefry> It doesn't integrate that well.
433: [04:18:04] <spronk> 1password is super pwn
434: [04:18:04] <Stomach> I also have a physical book
435: [04:18:08] <spronk> it has ios app
436: [04:18:08] <markcl> I have an UploadField like this: http://pastebin.com/k94UAF0d
437: [04:18:10] <spronk> which is so fucking handy
438: [04:18:13] <markcl> It doesnt save
439: [04:18:15] <spronk> because keepass doesn't
440: [04:18:18] <markcl> The uploaded files it seems
441: [04:18:23] <markcl> I already did a dev/build
442: [04:18:26] <spronk> it isn't cheap though, but it's easily the most convenient
443: [04:18:49] <markcl> im using 3.1
444: [04:18:57] <Stomach> markcl, do you have a $belongs_many_many on the other side of the relationship?
445: [04:19:14] <spronk> anselmdk: https://agilebits.com/onepassword
446: [04:19:16] <markcl> Stomach: where should that be?
447: [04:19:17] <spronk> antmas: https://agilebits.com/onepassword *
448: [04:19:23] <antmas> spronk: interesting, might check that one out
449: [04:19:25] <Stomach> markcl, on the image class you are using
450: [04:19:42] <spronk> antmas: if you buy, retailmenot it, there are usually 20%+ off coupons
451: [04:20:46] * zippy__ has joined #silverstripe
452: [04:20:56] <zippy__> I use 1password
453: [04:21:10] <zippy__> sync to the phone and dropbox
454: [04:21:12] <markcl> Stomach: updataed it to this one: http://pastebin.com/cNrUivER
455: [04:21:17] <markcl> still the same problem
456: [04:21:35] <guzzlefry> aw, 1password lacks a Linux build.
457: [04:21:35] <Stomach> is your assets directory writable?
458: [04:21:39] <Stomach> markcl ^
459: [04:21:51] <antmas> zippy__: is it one of those managers you can actually USE to login to pages as well?
460: [04:22:00] <spronk> zippy__: yeah
461: [04:22:04] <markcl> Stomach: yes
462: [04:22:05] <spronk> err, antmas yeah
463: [04:22:06] <markcl> writable
464: [04:22:13] <spronk> it has browser plugins for ie, safa, chrome, ff
465: [04:22:13] <antmas> badass
466: [04:22:15] <markcl> it has the images uploaded there already
467: [04:22:21] <Stomach> markcl, are you getting any errors?
468: [04:22:23] <markcl> just doesnt get saved to the db it eems
469: [04:22:25] <spronk> though annoyingly it doesn't disable the browser's inbuilt password manager..
470: [04:22:32] <markcl> Stomach: no errors
471: [04:22:40] <simon_w> guzzlefry, apparently it works rather well through WINE
472: [04:22:52] <guzzlefry> makes sense
473: [04:22:54] <markcl> just says overwrite?
474: [04:23:05] <Stomach> oh then you have to click that button
475: [04:23:11] <markcl> actually after overwriting, it seems to have worked
476: [04:23:13] <Stomach> that means you have another file with the same name in the assets
477: [04:23:17] <markcl> thanks Stomach?
478: [04:23:25] <Stomach> it doesn't save the file or the relation until you have chosen to overwrite it
479: [04:23:30] <markcl> I see
480: [04:23:56] <Stomach> you can disable the overwriting functionality if you dont want people to be able to overwrite images through yml configuration
481: [04:24:49] <zippy__> antmas: yes it is
482: [04:25:07] <zippy__> antmas: lastpass is also pretty good, and free
483: [04:26:19] <antmas> as long as they are secure and easy to manage, I'm down
484: [04:27:31] <antmas> later all!
485: [04:27:59] <Stomach> toodles
486: [04:35:51] * simon_w|air has joined #silverstripe
487: [04:56:43] * camfindlay quit (Quit: camfindlay)
488: [04:57:07] * camfindlay has joined #silverstripe
489: [04:57:38] * nickmolhoek quit (Quit: nickmolhoek)
490: [05:01:44] * camfindlay quit (Client Quit)
491: [05:02:01] <simon_w|air> I'm liking VIM.
492: [05:02:16] <simon_w|air> Something just feels right about not having pointer support and working entirely in a terminal
493: [05:08:09] <Stomach> accidentally ]) yet? :D
494: [05:10:29] * camfindlay has joined #silverstripe
495: [05:11:43] <spronk> yeahhh
496: [05:11:44] <spronk> vim is ok
497: [05:11:45] <spronk> but
498: [05:11:50] <spronk> there's nothing better than a really good gui editor
499: [05:12:39] <Stomach> http://www.inxerus.com/upload/work2.jpg
500: [05:13:39] <simon_w|air> spronk, so, gVim? :p
501: [05:15:44] <spronk> meh
502: [05:15:51] <spronk> modal editors are a bit lame for real work
503: [05:20:06] * Tanger has joined #silverstripe
504: [05:20:36] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
505: [05:27:15] * Kingy is now known as Kingy[a]
506: [05:27:33] * camfindlay quit (Quit: camfindlay)
507: [05:28:06] * camfindlay has joined #silverstripe
508: [05:29:34] * zippy__ quit (Quit: zippy__)
509: [05:32:04] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
510: [05:32:11] * Ryan-Toast quit (Quit: Ryan-Toast)
511: [05:43:23] * camfindlay quit (Quit: camfindlay)
512: [05:52:44] * Shrike_Finland has joined #silverstripe
513: [05:58:05] * simon__w|air has joined #silverstripe
514: [05:58:20] * simon_w|air quit (Ping timeout: 252 seconds)
515: [06:19:11] * srikanth quit (Quit: Leaving)
516: [06:21:19] * simon__w|air is now known as simon_w|air
517: [06:39:09] * caamic30 has joined #silverstripe
518: [06:39:10] <caamic30> hello SS! have you guys tried the multilingual module, do you guys know how to make a language switcher?
519: [07:06:55] * Shrike_Finland quit (Quit: Leaving.)
520: [07:18:52] * ARNHOE has joined #silverstripe
521: [08:03:29] * stnvh has joined #silverstripe
522: [08:08:07] * Pyprtyk has joined #silverstripe
523: [08:08:15] <Pyprtyk> good golly miss molly
524: [08:10:05] * nonconformatevi has joined #silverstripe
525: [08:10:07] * Shrike_Finland has joined #silverstripe
526: [08:10:14] * Shrike_Finland quit (Client Quit)
527: [08:10:29] * kinglozzer has joined #silverstripe
528: [08:13:47] <ss23> Stomach: YOU\RE NEVER ONLINE
529: [08:14:37] * zippy__ has joined #silverstripe
530: [08:14:47] <ss23> Stomach: jk the real reason I never am online
531: [08:14:48] <ss23> :O
532: [08:14:52] <ss23> But I'm okay
533: [08:15:02] <ss23> I'll be back in NZ this week though ^.^
534: [08:17:21] <Pyprtyk> Still in Japan ss23 ?
535: [08:17:28] <ss23> Yep
536: [08:17:36] <ss23> Leaving Wednesday, back on Thursday afternoon
537: [08:18:12] <Pyprtyk> Why are you there ss23 ?
538: [08:19:09] <ss23> HJoliday
539: [08:19:14] <Pyprtyk> nice
540: [08:19:24] <Pyprtyk> Long holiday, or do I have bad memories?
541: [08:19:34] <Pyprtyk> I seem to think it's been about 3 weeks you've been there
542: [08:20:12] <ss23> Um
543: [08:20:13] <ss23> 2 weeks!
544: [08:20:16] <ss23> WEll
545: [08:20:27] <ss23> We've been here for a little less than 2 weeks, but I'll have been here for 2 weeks in total when I leave
546: [08:20:51] <Pyprtyk> :>
547: [08:22:01] * spronk2 has joined #silverstripe
548: [08:26:36] * simon_w|air quit (Quit: This computer has gone to sleep)
549: [08:32:10] * Shrike_Finland has joined #silverstripe
550: [08:33:01] * Shrike_Finland1 has joined #silverstripe
551: [08:35:05] * phillprice has joined #silverstripe
552: [08:35:19] <phillprice> Morning! Is it possible to ->sort() with a function and not a fieldname?
553: [08:36:44] * Shrike_Finland quit (Ping timeout: 252 seconds)
554: [08:40:47] <Pyprtyk> phillprice: yes.
555: [08:41:00] <Pyprtyk> but you might have to get the list first, if it's a DataList.
556: [08:41:13] <Pyprtyk> (ie, convert to ArrayList)
557: [08:47:03] <zippy__> jezus, this is crazy!! https://www.youtube.com/watch?v=icXLgCRFAOU
558: [08:49:25] <Pyprtyk> madness
559: [08:49:37] <ss23> Madness?
560: [08:50:02] <Pyprtyk> Madness!
561: [08:50:52] <ss23> THIS
562: [08:50:53] <ss23> IS
563: [08:50:55] <ss23> SPARTA
564: [08:50:58] <Pyprtyk> RALLY
565: [08:52:42] * Shrike_Finland1 quit (Quit: Leaving.)
566: [08:52:56] <Pyprtyk> kinglozzer: halp. I have a routing issue
567: [08:53:23] <Pyprtyk> the issue I have is that it works fine.
568: [08:53:31] <Pyprtyk> Unless I'm on local dev :<
569: [08:54:22] <Pyprtyk> site/controllername is good in production env (test site) but fails in local setup (dev), both sites in dev mode.
570: [08:54:33] <Pyprtyk> ?debug_request shows no output whatsoever
571: [08:54:57] <kinglozzer> D:
572: [08:55:18] <kinglozzer> I’ve never had that before :|
573: [08:55:36] <zippy__> Pyprtyk: Is the controllername being jacked by an apache alias?
574: [08:55:39] <Pyprtyk> #https://github.com/silverstripe/silverstripe-framework/blob/3.1/control/Director.php#L379
575: [08:55:48] <Pyprtyk> zippy__: I highly doubt it.
576: [08:55:51] <zippy__> a common one on ubutnu is /javascript which will cause issues as there is a javascript package
577: [08:56:10] <kinglozzer> Pyprtyk: if(isset($_REQUEST['debug'])) Debug::show($rules);
578: [08:56:12] <Pyprtyk> yeah nah.
579: [08:56:15] <kinglozzer> Tried just that?
580: [08:56:17] <kinglozzer> ?debug
581: [08:56:27] <kinglozzer> I could’ve sworn it was debug_request though...
582: [08:56:39] <zippy__> Pyprtyk: can you confirm it's even hitting framework/main.php ?
583: [08:56:43] <Pyprtyk> yep. it shows same stuff as test env, but it's not very helpful
584: [08:56:53] <Pyprtyk> zippy__: see link above.
585: [08:56:54] <Pyprtyk> yes.
586: [08:57:01] <Pyprtyk> it cannot not be.
587: [08:57:06] * Shrike_Finland has joined #silverstripe
588: [08:57:58] <zippy__> Pyprtyk: If you put the local site into 'live' mode does it work? is there some silly logic somewhere in some module blocking something? (flush after)..
589: [08:58:09] <phillprice> Hey again - sorry I was having a play - the function needs to be getXXX() not XXX() for sort->(XXX) :)
590: [08:58:10] <Pyprtyk> both sites are in dev mode
591: [08:58:25] <Pyprtyk> good to know phillprice :)
592: [08:58:48] <Pyprtyk> this will be because it's using __get($field) rather than calling the function directly.
593: [08:59:48] <Pyprtyk> zippy__: it must be something in conf (the env, rather than ss)... but I've nfi where to look.
594: [09:00:33] <zippy__> Pyprtyk: have you tried accessing it via site/controller_classname? instead of site/routename ?
595: [09:01:03] <Pyprtyk> zippy__: it IS the controller.
596: [09:01:16] <Pyprtyk> $Controller//$Action/$ID/$OtherID
597: [09:01:21] <Pyprtyk> should be what is matching
598: [09:01:25] <Pyprtyk> (framework only)
599: [09:03:39] <Pyprtyk> also, where the hell does bootstrap keep its shit?
600: [09:03:41] <Pyprtyk> docs and stuff like
601: [09:04:06] <Pyprtyk> I've found a quick run through of some of the shit you can find in it, but tehre's nothing like Foundation's "do this, get this"
602: [09:04:11] * RWestC has joined #silverstripe
603: [09:04:55] <Pyprtyk> oh wait no, it's just on the 'components' page, rather than the css page :<
604: [09:05:00] * RWestC is now known as R\w\C
605: [09:05:05] * R\w\C quit (Changing host)
606: [09:05:05] * R\w\C has joined #silverstripe
607: [09:05:28] * R\w\C quit (Client Quit)
608: [09:05:43] * RWestC has joined #silverstripe
609: [09:05:55] <Pyprtyk> and it's still not entirely clear :<
610: [09:05:59] <Pyprtyk> ss23: kick tbh
611: [09:06:10] <ss23> wut
612: [09:06:23] <Pyprtyk> this chap, does the whole nick spam a bit.
613: [09:06:50] <ss23> Hmm
614: [09:06:59] <ss23> I don't see his spam in backlog, so I'll give him benifit of doubt for now
615: [09:07:07] <Pyprtyk> rgr
616: [09:07:19] <Pyprtyk> did it the other day too.
617: [09:07:24] <Pyprtyk> but, could be a 2 off.
618: [09:11:48] * simon_w quit (Quit: This computer has gone to sleep)
619: [09:13:12] <kinglozzer> 3 off*, Friday too
620: [09:14:57] <Pyprtyk> friday was probably the other day i was thinking of kinglozzer
621: [09:15:21] <kinglozzer> Then Thursday :>
622: [09:15:42] <kinglozzer> Definitely at least 3!
623: [09:16:02] <kinglozzer> Doesn't bother me tbh, just a bit... lame..
624: [09:16:17] <kinglozzer> Unless you’re 12 playing cod4
625: [09:17:00] <Pyprtyk> mmm. Could be a running joke in another channel. Just oblivious to pissing off folks monitoring all the other channels they're in.
626: [09:18:06] <Pyprtyk> yeh.
627: [09:18:12] <Pyprtyk> You're right kinglozzer
628: [09:18:13] <Pyprtyk> http://logs.simon.geek.nz/index.php?date=2014-06-13
629: [09:18:18] <Pyprtyk> http://logs.simon.geek.nz/index.php?date=2014-06-14
630: [09:18:21] <Pyprtyk> and today.
631: [09:18:56] <Pyprtyk> oh, umm http://logs.simon.geek.nz/index.php?date=2014-06-13#log_1313887 &* http://logs.simon.geek.nz/index.php?date=2014-06-14#log_1315428
632: [09:23:05] * oetiker quit (Remote host closed the connection)
633: [09:23:37] * oetiker has joined #silverstripe
634: [09:23:38] <Pyprtyk> oh shhhhhhh
635: [09:24:49] <Pyprtyk> nope, not RewriteBase :<
636: [09:26:37] * RWestC is now known as R\w\C
637: [09:26:54] * R\w\C quit (Changing host)
638: [09:26:54] * R\w\C has joined #silverstripe
639: [09:35:35] <zippy__> Pyprtyk: flushed? :)
640: [09:35:43] <Pyprtyk> haha, yep.
641: [09:36:12] * simon_w|air has joined #silverstripe
642: [09:38:18] <Pyprtyk> zippy__: kinglozzer found it, this predicate is failing (or succeeding, whichever way you look at it): https://github.com/silverstripe/silverstripe-framework/blob/3.1/control/HTTPRequest.php#L473-L474
643: [09:38:49] <zippy__> but works on remote but not local?
644: [09:40:35] <Pyprtyk> ClassInfo::exists($arguments['Controller']) is returning false.
645: [09:40:40] <Pyprtyk> zippy__: correct.
646: [09:41:07] <Pyprtyk> which is weird, remote is linux and local is windows (ie, I'd expect local to give less of a shit about capitalisation
647: [09:41:09] <Pyprtyk> )
648: [09:41:24] <Pyprtyk> but even when I exact match the controller name in the browser, still doesn't work.
649: [09:42:29] <Pyprtyk> dammit, looks like my menifest is messed up. class_exists is also false :<
650: [09:48:37] * Tanger quit (Quit: Tanger)
651: [09:55:20] <Pyprtyk> kinglozzer: zippy__ alright, I'm confused.
652: [09:55:21] <Pyprtyk> https://github.com/silverstripe/silverstripe-framework/blob/3.1/core/manifest/ClassManifest.php#L147
653: [09:58:24] <kinglozzer> Pyprtyk: ? as long as they're stored lowercase it shouldn't matter, right?
654: [09:58:41] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/blob/3.1/core/manifest/ClassManifest.php#L401
655: [09:59:03] <Pyprtyk> kinglozzer: exactly!
656: [09:59:12] <Pyprtyk> so I've 2 questions stemming from this:
657: [09:59:19] <Pyprtyk> 1) why the fuck isn't my code working.
658: [09:59:43] <Pyprtyk> 2) php is case sensitive right, what happens if you've got two classes named the same with different capitalisations?
659: [09:59:58] <Pyprtyk> (you'd be a cunt, but it should technically work in PHP pure right?)
660: [10:00:36] <kinglozzer> Pyprtyk: 1. Yeah your manifest is fucked
661: [10:00:56] <Pyprtyk> mmm, manually clearing it now
662: [10:01:22] <kinglozzer> 2. You're right, plus: https://github.com/silverstripe/silverstripe-framework/blob/3.1/core/manifest/ClassManifest.php#L394 doesn't check if the array key exists in the right case!
663: [10:02:10] <Pyprtyk> kinglozzer: make some tickets for us!
664: [10:02:18] <kinglozzer> Pyprtyk: Mmkay
665: [10:02:20] <kinglozzer> :P
666: [10:02:23] <Pyprtyk> :D
667: [10:02:48] <kinglozzer> Pyprtyk: Are you sure PHP is case sensitive?
668: [10:02:57] <kinglozzer> Google says nay
669: [10:04:01] <Pyprtyk> kinglozzer: well variable names are. I just assumed that classs names would be too. but then PHP is inconsistent enough that method calls aren't case sensitive.
670: [10:04:03] <Pyprtyk> so ... who knows.
671: [10:04:32] <kinglozzer> http://stackoverflow.com/questions/5260168/capital-letters-in-class-name-php
672: [10:04:42] <simon_w|air> Pyprtyk, function, class, method, namespace, interface and trait names are case insensitive
673: [10:04:43] <kinglozzer> So it's not case sensitive, yay PHP :D
674: [10:05:29] <kinglozzer> So I also guess that the strtolower on that array_key_exists doesn't really matter anyway ^^
675: [10:06:22] <kinglozzer> Probably should be fixed though
676: [10:06:44] <kinglozzer> Don't think that exception would occur if class foo {}, class Foo {}
677: [10:07:52] <Pyprtyk> kinglozzer: well I guess that answers that question. http://codepad.viper-7.com/dbPHaC
678: [10:08:40] <Pyprtyk> it's the same in at least 5.3.10
679: [10:09:46] <Pyprtyk> oh, but simon_w|air is on to us anyway.
680: [10:09:49] <Pyprtyk> champion :>
681: [10:10:27] <Pyprtyk> kinglozzer: it only matters in that we're compaing to a stored value, and string comparison IS case sensitive.
682: [10:10:43] <Pyprtyk> but yeh, my manifest is surely fucked in my test env.
683: [10:10:47] <kinglozzer> Pyprtyk: I can't get that exception to occur at all
684: [10:10:57] <Pyprtyk> I deleted all cache files, and still it gives me 'no such class'
685: [10:11:02] <kinglozzer> Test.php > class Test {} Test2.php > class Test {} - no exception
686: [10:11:06] <Pyprtyk> kinglozzer: exception?
687: [10:11:17] <kinglozzer> Where I linked array_key_exists
688: [10:11:24] <kinglozzer> Doesn't warn if two files contain same class
689: [10:12:08] <Pyprtyk> can do, used to.
690: [10:12:11] <Pyprtyk> 5.2
691: [10:12:38] <Pyprtyk> dunno if it's php that's calmed down about it or if it's a setting to silently ignore it.
692: [10:13:23] * Sj0hn has joined #silverstripe
693: [10:13:32] <kinglozzer> Pyprtyk: It overwrites the first location with the second location... :P
694: [10:13:44] <kinglozzer> The manifest ^^ not PHP
695: [10:13:47] <Pyprtyk> mmm
696: [10:14:09] <Pyprtyk> but you'd think it'd error during build if that were the case
697: [10:14:39] <Pyprtyk> in any case, manifest not doing me well here :<
698: [10:16:30] <Pyprtyk> ffff
699: [10:16:36] <Pyprtyk> what' the cache folder name?
700: [10:16:55] <Pyprtyk> oh shit, I used an underscore not a hyphen
701: [10:19:10] <Pyprtyk> argh fuckit. I'll just dev directly on the server
702: [10:26:12] * Martimiz has joined #silverstripe
703: [10:30:22] * Martimiz quit (Ping timeout: 246 seconds)
704: [10:30:28] * lozhowlett has joined #silverstripe
705: [10:31:06] <lozhowlett> Hi all - Anyone used reports in SS3.1? I need to show a Booking Total of the combined sum of all bookings returned in the sourceRecords, but cant find any documentation on how to achieve this?
706: [10:31:20] * Martimiz has joined #silverstripe
707: [10:31:23] * nonconformatevi_ has joined #silverstripe
708: [10:31:31] * nonconformatevi_ has left #silverstripe
709: [10:31:35] <Pyprtyk> subclass report
710: [10:31:53] * nonconformatevi_ has joined #silverstripe
711: [10:32:04] * nonconformatevi_ has left #silverstripe
712: [10:32:12] <Pyprtyk> http://doc.silverstripe.org/framework/en/reference/site-reports
713: [10:32:15] <lozhowlett> How do you mean to subclass it?
714: [10:32:41] <lozhowlett> Yes I have already built a report
715: [10:32:53] <lozhowlett> which shows all my bookings and I can filter them, etc
716: [10:33:18] <lozhowlett> What i need to know is how to show a summary "total" under grid field of all the combined bookings shown
717: [10:35:07] <lozhowlett> i.e. total combined value of returned bookings?
718: [10:35:37] * Martimiz quit (Ping timeout: 246 seconds)
719: [10:39:00] <Sj0hn> How does one add a class to fields in the login/registration form within the member-profiles module..
720: [10:39:07] <Sj0hn> i found the public function RegisterForm()
721: [10:39:21] <Sj0hn> in the MemberProfilePage.php
722: [10:41:34] * lozhowlett quit (Ping timeout: 246 seconds)
723: [10:41:35] * markcl quit (Ping timeout: 246 seconds)
724: [10:41:36] <Sj0hn> but i cant even add `->setAttribute('class', 'btn btn-primary')` to the form action
725: [10:42:03] * zippy__ quit (Quit: zippy__)
726: [10:42:28] <Sj0hn> it gives back: Fatal error: Call to a member function setAttribute() on a non-object in /MemberProfilePage.php
727: [10:43:49] <simon_w|air> Sj0hn, that means you don't have the FormAction
728: [11:02:15] <Pyprtyk> where does $ContentLocale come from?
729: [11:02:19] <Pyprtyk> CMS?
730: [11:02:56] <kinglozzer> Pyprtyk: http://api.silverstripe.org/3.1/source-class-ContentController.html#357-378
731: [11:05:36] <kinglozzer> Though idfk where mine gets en_GB from... we aren't setting that anywhere and the default is en_US
732: [11:05:39] <kinglozzer> D:
733: [11:09:02] <kinglozzer> O.o http://ss2stat.silverstripe.com/
734: [11:09:57] <Pyprtyk> lol 68 times today
735: [11:10:44] <Pyprtyk> hmm, wtb framework only solution for ContentLocale
736: [11:10:50] <Pyprtyk> :P
737: [11:12:22] <kinglozzer> Pyprtyk: Can sell for £2.50
738: [11:12:24] <kinglozzer> :P
739: [11:19:22] * Pyprtyk quit (Ping timeout: 246 seconds)
740: [11:36:09] * UncleCheese has joined #silverstripe
741: [11:36:35] * ocm has joined #silverstripe
742: [11:36:42] <ocm> howdy!
743: [11:37:57] <UncleCheese> how do i get php to accept 64 bit integers?
744: [11:47:16] * Pydrpk has joined #silverstripe
745: [11:48:55] <Pydrpk> kinglozzer: no deal :/
746: [11:52:26] <simon_w|air> UncleCheese, have a 64bit PHP
747: [11:52:34] <UncleCheese> where do i get it?
748: [11:52:46] <simon_w|air> Wherever you normally get PHP from
749: [11:52:47] <UncleCheese> i tried apt-get install php5 and it just gets the shit one
750: [11:52:59] <simon_w|air> That's what you get for running with a 32bit OS
751: [11:53:08] <UncleCheese> no i'm running 64 bit
752: [11:53:45] <simon_w|air> Are you sure it's just not a 64bit kernel?
753: [11:53:49] <ocm> UncleCheese, what OS?
754: [11:53:52] <ocm> what does
755: [11:53:55] <ocm> -uname -a
756: [11:53:57] <ocm> tells you?
757: [11:53:58] <UncleCheese> Ubuntu 12.04.x x64 vmlinuz-3.2.0-60-virtual
758: [11:54:09] <UncleCheese> yeah, it's a 64 bit kernel
759: [11:54:16] <ocm> -uname -a doesnt tell you that :P
760: [11:54:39] <UncleCheese> ocm .2.0-60-virtual #91-Ubuntu SMP Wed Feb 19 04:35:08 UTC 2014 i686 i686 i386 GNU/Linux
761: [11:54:51] <simon_w|air> i686 i686 i386
762: [11:54:51] <ocm> seems 64bit indeed
763: [11:54:55] <simon_w|air> Hello 32bit
764: [11:54:56] <ocm> or wait
765: [11:54:58] <UncleCheese> ?
766: [11:55:00] <ocm> need coffee
767: [11:55:00] <ocm> brb
768: [11:55:12] <UncleCheese> i selected 64 bit
769: [11:55:12] <UncleCheese> wtf
770: [11:55:27] <ocm> x86_64 should be returned if it is 64bit
771: [11:55:48] <simon_w|air> Also, 12.04? Old
772: [11:55:57] <ocm> 12.04 is the latest LTS isnt it?
773: [11:55:58] <UncleCheese> how do i make it 64?
774: [11:56:01] <ocm> or is it 14.10 now?
775: [11:56:04] <ocm> reinstall
776: [11:56:17] <UncleCheese> upgrade to 14.10?
777: [11:56:20] <UncleCheese> is that 64 bit?
778: [11:56:25] <ocm> 14.10 has 64 bit
779: [11:56:25] <simon_w|air> 14.04, and you need to reinstall
780: [11:56:30] <UncleCheese> sweet
781: [11:56:31] <ocm> but you cannot upgrade to 64bit from 32
782: [11:56:32] <simon_w|air> 12.04 has 64 bit too
783: [11:56:41] * spronk2 quit (Quit: spronk2)
784: [11:56:46] <UncleCheese> this one? Ubuntu 14.04 x64 vmlinuz-3.13.0-24-generic (1221)
785: [11:57:17] <simon_w|air> Probably
786: [11:57:30] <UncleCheese> then reinstall php?
787: [11:57:38] <simon_w|air> Shouldn't need to
788: [11:57:54] <simon_w|air> Well, Ubuntu shouldn't come with PHP pre-installed anyway
789: [12:00:07] * cloph_away is now known as cloph
790: [12:00:14] <UncleCheese> ok, now i get: 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
791: [12:00:34] <simon_w|air> That looks better
792: [12:00:43] <UncleCheese> balls
793: [12:00:44] <UncleCheese> php -r 'echo PHP_INT_MAX;'
794: [12:00:45] <UncleCheese> 2147483647
795: [12:03:03] <simon_w|air> php -r 'echo PHP_INT_MAX;'
796: [12:03:03] <simon_w|air> 9223372036854775807
797: [12:03:07] <simon_w|air> Huh, -r works
798: [12:03:29] <UncleCheese> ummm
799: [12:03:36] <UncleCheese> php -v
800: [12:03:36] <UncleCheese> PHP 5.3.10-1ubuntu3.11 with Suhosin-Patch (cli) (built: Apr 4 2014 01:27:23)
801: [12:03:42] <UncleCheese> could be problem?
802: [12:03:58] <simon_w|air> Well, for one you're on 5.3
803: [12:04:05] <UncleCheese> why is apt-get install php5 getting an old version of php?!
804: [12:04:16] <simon_w|air> Because that's what ubuntu ships?
805: [12:04:18] <UncleCheese> sudo apt-get install php5
806: [12:04:18] <UncleCheese> Reading package lists... Done
807: [12:04:18] <UncleCheese> Building dependency tree
808: [12:04:18] <UncleCheese> Reading state information... Done
809: [12:04:18] <UncleCheese> php5 is already the newest version.
810: [12:04:33] <UncleCheese> what the hell?
811: [12:04:39] <UncleCheese> so i'm stuck with this?
812: [12:05:05] <simon_w|air> You could add a ppa that gives you a newer build
813: [12:05:14] <simon_w|air> Or, just ditch PHP and go for HHVM
814: [12:06:13] <UncleCheese> ss doesn't run on hhvm
815: [12:06:17] <simon_w|air> yes it does
816: [12:07:42] <simon_w|air> curl -Is https://pocketrent.com | grep X-Power
817: [12:07:42] <simon_w|air> X-Powered-By: HHVM/3.1.0-dev+2014.04.15
818: [12:08:03] <simon_w|air> (plus these two sites I'm currently building)
819: [12:09:57] <UncleCheese> simon_w|air php -v
820: [12:09:57] <UncleCheese> PHP 5.5.12-2+deb.sury.org~precise+1 (cli) (built: May 12 2014 13:46:38)
821: [12:10:23] <ocm> UncleCheese, have you read this? https://help.ubuntu.com/community/ApacheMySQLPHP
822: [12:10:27] <UncleCheese> Noooooooooooo php -r 'echo PHP_INT_MAX;'
823: [12:10:27] <UncleCheese> 2147483647
824: [12:11:37] <simon_w|air> php -v
825: [12:11:37] <simon_w|air> PHP 5.5.13-1~dotdeb.1 (cli) (built: Jun 6 2014 18:05:23)
826: [12:11:45] <simon_w|air> php -r 'echo PHP_INT_MAX;'
827: [12:11:45] <simon_w|air> 9223372036854775807
828: [12:11:51] <simon_w|air> mmm, I like dotdeb :p
829: [12:11:58] <UncleCheese> fuck.. just crashed the server
830: [12:12:00] <UncleCheese> fun
831: [12:12:39] <simon_w|air> Eh, we had 20 minutes of downtime cause I restarted a server and the host machine didn't have enough RAM to turn it back on
832: [12:12:45] <simon_w|air> That was fun
833: [12:13:07] <Pydrpk> ocm: 14.04 should be lts now I think.
834: [12:13:15] <simon_w|air> Pydrpk, it is
835: [12:13:15] * R\w\C quit (Quit: My iMac has gone to sleep. ZZZzzz…)
836: [12:14:06] <Pydrpk> we need to update our servers :<
837: [12:14:27] <ocm> so, anyone see the game on friday, spain-netherlands?
838: [12:14:36] <ocm> you aussies better be prepared for wednesday :D
839: [12:16:06] <ocm> Pydrpk, I see you are right on the new LTS
840: [12:16:22] <Pydrpk> aussies :<
841: [12:16:27] <Pydrpk> they're all asleep ocm!
842: [12:16:45] <Pydrpk> or should be :>
843: [12:16:53] <Pydrpk> 11:16pm
844: [12:16:56] <Pydrpk> iirc
845: [12:17:05] <Pydrpk> oh no, 10.
846: [12:17:10] <Pydrpk> my bad.
847: [12:17:18] <simon_w|air> Yeah, I'm still awake :p
848: [12:17:24] <simon_w|air> ocm, I'm looking forward to it :D
849: [12:17:32] <Pydrpk> simon_w|air: but you're a Kiwi! :P
850: [12:17:40] <simon_w|air> Pydrpk, in aussie :p
851: [12:17:42] <Pydrpk> but yeh, close enough :P
852: [12:17:44] <Pydrpk> mmm
853: [12:19:35] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
854: [12:19:52] * UndefinedOffset has joined #silverstripe
855: [12:20:15] <simon_w|air> Ooh, new work has NBN
856: [12:20:39] <Pydrpk> what you get as a job simon_w|air ?
857: [12:20:42] <Pydrpk> devops?
858: [12:20:44] <ocm> hahaha
859: [12:20:51] <simon_w|air> Pydrpk, "developer"
860: [12:20:59] <simon_w|air> It's a startup still though, so basically everything
861: [12:21:33] <Pydrpk> simon_w|air: so like RentBox but something new?
862: [12:21:51] <simon_w|air> Pydrpk, larger team, more established product, but yeah
863: [12:22:01] <simon_w|air> Also, first time I'm joining a project, rather than starting it
864: [12:25:01] <ocm> simon_w you are going to watch how australia gets pummeled by us on wednesday then?
865: [12:25:07] <ocm> lets see if we can beat the 5-1
866: [12:25:08] <ocm> :D
867: [12:25:14] <simon_w|air> ocm, hopefully :)
868: [12:25:41] <ocm> lovely
869: [12:25:48] <ocm> I didn't think we could play that well to be hounest
870: [12:25:57] <simon_w|air> I like how the media here is all "We have a chance" "Anything can happen"
871: [12:26:17] <simon_w|air> And I'm like "Lol, nope"
872: [12:26:21] <ocm> haha
873: [12:26:27] <ocm> I though anyone would have a change against our team
874: [12:26:34] <ocm> but all of a sudden Van Persie does something on the field
875: [12:26:41] <ocm> instead of waiting for the ball to be put right before his foot
876: [12:26:49] <simon_w|air> Though, I guess NZ did do better than Italy at the 2010 one
877: [12:26:52] <ocm> I think he found a new trainer in Kent Clark
878: [12:27:20] <ocm> flying over the field and stuff
879: [12:27:44] <simon_w|air> It's the one game I want to see, and the one they haven't replayed here
880: [12:27:44] <Pydrpk> ocm: You're Dutch right?
881: [12:28:13] <Pydrpk> simon_w|air: haha. Over here it's all "we're gonna win - but probably not"
882: [12:28:24] <Pydrpk> really weird disconnect
883: [12:28:27] <simon_w|air> Pydrpk, England? Win? :p
884: [12:28:34] <Pydrpk> exactly :P
885: [12:28:40] <Pydrpk> even the poms are all "dafuq"
886: [12:28:56] <simon_w|air> I like how in 2010 we were all "We made it to the World Cup! Woo! Who cares about the results!"
887: [12:29:03] <Pydrpk> Although they did play 'better than normal' against Italy apparently.
888: [12:29:16] <simon_w|air> Well, they scored without needing a penalty
889: [12:29:18] <Pydrpk> simon_w|air: hahahah, yeah I enjoyed that too. Plus that whole undefeated thing
890: [12:29:23] <Pydrpk> (although we didn't graduate)
891: [12:29:37] <simon_w|air> And being 1-0 up against Italy
892: [12:29:42] <ocm> Pydrpk, I am dutch yes
893: [12:30:02] <ocm> we might even have a chance of getting to the finals, against all odds however
894: [12:30:20] <simon_w|air> Well, work tomorrow
895: [12:30:22] <simon_w|air> I should sleep
896: [12:30:24] <simon_w|air> night all
897: [12:30:36] <Pydrpk> g'nite! :)
898: [12:30:39] * simon_w|air quit (Quit: This computer has gone to sleep)
899: [12:31:00] <Pydrpk> ocm: you were strong in 2010
900: [12:32:19] <ocm> we were much stronger in 2010 I think
901: [12:32:26] <ocm> good collaboration in the team
902: [12:32:38] <ocm> just like the 2nd half of the game against spain
903: [12:32:52] <ocm> I think the taste of revenge on 2010 was there to fuel the game up
904: [12:34:37] * phillprice quit (Ping timeout: 246 seconds)
905: [12:36:00] <spronk> omg
906: [12:36:01] <spronk> PATSON
907: [12:36:11] <spronk> Still a legend.
908: [12:36:32] <Pydrpk> ?
909: [12:36:59] <spronk> you know
910: [12:37:00] <spronk> mark patson
911: [12:37:05] <spronk> nz's subbie goalie
912: [12:37:11] <spronk> that made those insane saves in the 2010 wc
913: [12:37:12] <ocm> hm, not really
914: [12:37:29] <ocm> I only know the dutch goalies mainly
915: [12:38:52] <spronk> http://www.youtube.com/watch?v=XPsv6YjKEFc
916: [12:38:55] <spronk> also
917: [12:38:58] <spronk> that headbutt goal
918: [12:39:02] <spronk> was legggeeeennndd
919: [12:39:59] <spronk> (that the dutch scored vs ESP)
920: [12:40:06] <ocm> it was unreal
921: [12:40:15] <ocm> Van Persie, the most lazy player (when playing in the national team)
922: [12:40:22] <spronk> :D
923: [12:40:23] <ocm> but all of a sudden he did something, something good
924: [12:40:26] <spronk> we;;
925: [12:40:27] <spronk> well
926: [12:40:29] <spronk> arguably still lazy
927: [12:40:39] <spronk> "cbf using my legs. ah fuck it! *headbutt*"
928: [12:41:21] <ocm> haha
929: [12:41:32] <ocm> though, knowing the dutch attitude
930: [12:41:46] <ocm> we know think we are god (don't blame us, we are really gods.. we are the dutch! :P)
931: [12:41:55] <spronk> yeah
932: [12:41:57] <spronk> you're fucking confusing
933: [12:42:02] <ocm> though on a tournament like this, we probably fly to high and crash low
934: [12:42:25] <spronk> http://www.youtube.com/watch?v=eE_IUPInEuc
935: [12:42:55] <ocm> I know the difference between holland and the netherlands
936: [12:43:02] <spronk> NOBODY ELSE DOES
937: [12:43:03] <spronk> :p
938: [12:43:11] <ocm> Holland is the real deal, the Netherlands is just some extra's
939: [12:43:14] <spronk> haha
940: [12:43:15] <ocm> weird people, farmers and stuff
941: [12:45:30] * R\w\C has joined #silverstripe
942: [12:49:56] * Martimiz has joined #silverstripe
943: [12:53:00] * micmania1 has joined #silverstripe
944: [12:54:13] * Martimiz quit (Ping timeout: 246 seconds)
945: [12:55:51] <Pydrpk> micmania1: sup. Feeling better?
946: [13:00:25] <micmania1> Pydrpk: aye, much better
947: [13:00:43] <micmania1> Went for a pint on Friday. Didn't help.
948: [13:01:42] <micmania1> I used my downtime to start messing with phpstorm and xdebug over the weekend :D
949: [13:02:08] <micmania1> Its going to be one of those things I can't believe I went without
950: [13:05:49] <Pydrpk> hehe
951: [13:06:13] <Pydrpk> I went drinking with a boat club on Saturday.
952: [13:06:20] <Pydrpk> Didn't know I could still party like that. Wholey shit.
953: [13:08:23] <micmania1> ha
954: [13:09:32] <micmania1> 'boat club' sound very posh...
955: [13:25:25] * R\w\C quit (Changing host)
956: [13:25:25] * R\w\C has joined #silverstripe
957: [13:31:09] <Pydrpk> micmania1: OTP with rowers.
958: [13:31:12] <Pydrpk> better? :P
959: [13:32:13] <Pydrpk> (That's 'On The Piss', which is surprisingly missing from urban dictionary)
960: [13:33:26] <ocm> boatclub? party?
961: [13:33:32] <ocm> sounds like a bangface boatrave
962: [13:35:40] <kinglozzer> sounds like bangbros ^^
963: [13:36:25] <ocm> haha
964: [13:36:35] <ocm> bangface is pretty awesome
965: [13:36:38] <ocm> if you like to rave
966: [13:36:43] <ocm> at acidparties
967: [13:36:45] <ocm> www.bangface.com
968: [13:49:18] * catcher has joined #silverstripe
969: [14:05:45] * oetiker quit (Remote host closed the connection)
970: [14:05:57] * oetiker has joined #silverstripe
971: [14:20:19] * caamic30 quit (Quit: caamic30)
972: [14:27:40] * Shrike_Finland quit (Quit: Leaving.)
973: [14:27:57] * Shrike_Finland has joined #silverstripe
974: [14:28:20] * Shrike_Finland quit (Client Quit)
975: [14:54:18] * caamic30 has joined #silverstripe
976: [15:12:28] * Sj0hn quit ()
977: [15:20:40] * NETim has joined #silverstripe
978: [15:25:20] * Pydrpk quit ()
979: [15:27:53] * ARNHOE quit ()
980: [15:29:01] * nonconformatevi quit (Quit: Sto andando via)
981: [15:32:26] <catcher> I installed without composer, but I'm wanting to use it for modules. How do I get my composer.json to a decent starting place?
982: [15:33:18] <ocm> composer init
983: [15:33:30] <ocm> and add the required rmodules you currently using tot the composer file
984: [15:33:31] <ocm> ?
985: [15:37:14] <catcher> Do I need to add framework & cms myself?
986: [15:38:40] * babak quit (Quit: Connection closed for inactivity)
987: [15:41:43] <Zauberfisch> ocm: check out my boilerplate
988: [15:41:57] <Zauberfisch> https://github.com/Zauberfisch/silverstripe-boilerplate
989: [15:42:05] <Zauberfisch> or the silverstripe installer
990: [15:42:28] <Zauberfisch> but I think the installer is using self.version which might not work
991: [15:44:00] <Zauberfisch> ocm: in addition to those modules there, I usually also need 2 more modules:
992: [15:44:23] <Zauberfisch> "unclecheese/betterbuttons": "dev-master",
993: [15:44:29] <Zauberfisch> ajshort/silverstripe-gridfieldextensions": "dev-master",
994: [15:44:55] <Zauberfisch> oh, and also:
995: [15:44:59] <Zauberfisch> "bummzack/sortablefile": "dev-master",
996: [15:45:38] * jenniferaslan has joined #silverstripe
997: [15:53:51] <ocm> let me have a look on that
998: [15:54:02] <ocm> at this moment I add all composer stuff using init
999: [15:54:13] <Zauberfisch> init?
1000: [15:54:18] <ocm> composer init
1001: [15:54:27] <Zauberfisch> oh, I just edit the json file
1002: [15:54:47] <Zauberfisch> never bothered with other commands than composer update and composer install
1003: [15:55:36] <ocm> composer init is nice for lazy people like me
1004: [15:55:40] <ocm> it just asks you stuff
1005: [15:55:41] <ocm> on which you reply
1006: [15:55:45] <ocm> and in the end you can install
1007: [15:55:47] <ocm> and tadaa
1008: [15:55:48] * DesignerX quit (Ping timeout: 244 seconds)
1009: [15:55:49] <ocm> work is done
1010: [15:55:49] <ocm> :P
1011: [15:56:06] <ocm> however, mostly I use the same modules and stuff for silverstripe
1012: [15:56:10] <ocm> so its just ctrl c + ctrl v
1013: [15:56:14] <ocm> and install
1014: [15:56:32] <ocm> so it includes my html/less stuff aswell in there
1015: [15:57:16] <ocm> btw, Zauberfisch
1016: [15:57:20] <ocm> what is sortablefile doing?
1017: [15:57:34] <catcher> <- must eventually give up & learn how to use composer
1018: [15:58:02] <ocm> catcher, it is not that hard. just read through it, will take about 30 minutes max
1019: [15:58:15] <ocm> and then continue to bower
1020: [15:58:19] <ocm> and use it for your js libraries
1021: [15:58:36] * caamic30 quit (Quit: caamic30)
1022: [15:59:34] <Zauberfisch> catcher: if you are really lazy, do it like me, then it takes 3 minutes
1023: [16:00:04] <Zauberfisch> catcher: copy paste a composer.json file. modify the bits you want. run "composer update --no-dev" and you are done
1024: [16:00:58] <ocm> that is just cheating :P
1025: [16:01:09] <catcher> I like the sound of that :) what exactly is --no-dev?
1026: [16:01:17] <catcher> (if I'm avoiding rtfm'ing)
1027: [16:01:54] <Zauberfisch> catcher: composer separates into dependencies and developement dependencies, and by default it fetches both
1028: [16:02:22] <Zauberfisch> developement dependencies are for example the docs viewer, buildtools, phpunit, ...
1029: [16:02:53] <Zauberfisch> so you should use "composer update" while working on it, and "composer update --no-dev" when you deploy
1030: [16:03:07] <catcher> Zauberfisch, see, you know stuff about composer
1031: [16:03:37] <Zauberfisch> catcher: but I started by just using it, and then when I need something, I look it up
1032: [16:03:50] <Zauberfisch> https://github.com/Zauberfisch/silverstripe-boilerplate/blob/master/composer.json
1033: [16:03:53] <Zauberfisch> see that file
1034: [16:03:54] <catcher> fair enough, I'll try that route.
1035: [16:04:01] <Zauberfisch> there is "require" and there is "require-dev"
1036: [16:04:11] <Zauberfisch> which makes the difference between live and dev
1037: [16:05:25] <catcher> Gotcha. I'm a little confused on how it integrates w/ VCS, branches, committing back, etc.
1038: [16:05:27] <ocm> I still get confused by composer because it its
1039: [16:05:32] <ocm> : "dev-master"
1040: [16:05:44] <catcher> yeah, which is actually master?
1041: [16:05:45] <ocm> since it is not : "Deployed-master" (or something like that)
1042: [16:05:46] <Zauberfisch> ah, yeah, that is a bit confusing
1043: [16:05:48] <catcher> (in git terms)
1044: [16:05:58] <ocm> master because it is master branche I guess?
1045: [16:06:05] <ocm> I am not sure, I decided to just ignore it
1046: [16:06:25] <ocm> and do what is told me to do (require repository.git dev-master)
1047: [16:06:30] <ocm> and hope for the best of it :p
1048: [16:06:48] <Zauberfisch> dev-master usually is the master branch of the repo
1049: [16:07:02] <ocm> I figured, but the dev part is confusing
1050: [16:07:22] <Zauberfisch> because composer uses those tags instaed of branches or what ever you use in git
1051: [16:07:25] <catcher> Should that always point to latest stable, i.e. SS 3.1.5?
1052: [16:07:26] <Zauberfisch> dev-master just maps to master
1053: [16:07:45] <Zauberfisch> no, dev-mater usually is the developement state (bleeding edge)
1054: [16:08:06] <Zauberfisch> if a project is on packagist, then you can look for the tags there
1055: [16:08:19] <Zauberfisch> https://packagist.org/packages/silverstripe/framework
1056: [16:10:39] <Zauberfisch> if you run composer update, composer will go to packagist and sarch for that package, so when you write in ">=3.1.x-dev,<4.0", it will search for versions greater than 3.1.x-dev
1057: [16:10:40] <kinglozzer> I think you can do 3.1.@stable, or something like that
1058: [16:10:57] <Zauberfisch> which in this case dev-master (because dev-mastter is currently 3.2)
1059: [16:11:08] <Zauberfisch> yeah, there are all kinds of funcy stuff
1060: [16:11:24] <Zauberfisch> like there is also ~3.1 which I think does the smae thing as >=3.1,<4.0
1061: [16:11:28] <Zauberfisch> but I am not sure
1062: [16:11:48] <Zauberfisch> as a mater of fact, I usually work with dev-master
1063: [16:11:56] * Zauberfisch lives dangerous
1064: [16:12:01] <kinglozzer> I think ~3.1 might be >=3.1,<3.2
1065: [16:12:46] <kinglozzer> Nope, you're right Zauberfisch
1066: [16:12:47] <Zauberfisch> you could also just say "3.1" and define the minimum stability as stable, which should be the same as 3.1.@stable
1067: [16:12:52] <kinglozzer> https://getcomposer.org/doc/01-basic-usage.md#next-significant-release-tilde-operator-
1068: [16:13:29] <Zauberfisch> catcher ocm: but don't worry about the version stuff, I am also not a 100% sure what it all means, and I am doing pretty fine regardless
1069: [16:13:41] <Zauberfisch> catcher: yeah, the 2nd important command ist "composer install"
1070: [16:13:51] <Zauberfisch> composer install takes your lock file and installs according to that.
1071: [16:14:34] <Zauberfisch> where composer update will always fetch the newest possible version (eg if you say >3,<4, it will fetch 3.9 if availiable, but not 4)
1072: [16:14:52] * Shrike_Finland has joined #silverstripe
1073: [16:14:54] <Zauberfisch> and each time you run composer update, it will generate the composer.lock file
1074: [16:15:15] <Zauberfisch> this file is a documentation of the current state of the installed packages. so what version is currently installed, and so on
1075: [16:15:39] <Zauberfisch> so when you go live, you would run composer install on the server, to make sure you don't break stuff with an accidential update of the framework
1076: [16:16:20] <Zauberfisch> (note: as the composer.lock file describes the current state of your application, it is recommended to also add composer.lock into your version control)
1077: [16:16:33] <Zauberfisch> so yeah, catcher, now you are good to go
1078: [16:16:39] <Zauberfisch> start using composer today
1079: [16:17:47] <ocm> Zauberfisch, are you campagning?
1080: [16:17:50] <ocm> start today! haha
1081: [16:18:11] <ocm> anyway
1082: [16:18:13] <ocm> time to go home
1083: [16:18:16] <ocm> have a good one!
1084: [16:18:41] <Zauberfisch> :D
1085: [16:18:49] <Zauberfisch> ocm: bye
1086: [16:19:04] <ocm> cheersd
1087: [16:22:45] * kinglozzer quit ()
1088: [16:25:05] <catcher> thanks for the info. Wouldn't most people want to make sure they're using a specific tag?
1089: [16:25:35] * stnvh quit ()
1090: [16:31:19] <Zauberfisch> catcher: I think most people put in 3.1
1091: [16:31:33] <catcher> Zauberfisch, and then it'll use 3.1 stable?
1092: [16:34:15] <Zauberfisch> depends on what you have defined as stability
1093: [16:34:17] <Zauberfisch> hold on
1094: [16:34:36] <catcher> If I try 3.1, lots of the modules fail (which are currently dev-master)
1095: [16:35:24] <Zauberfisch> http://paste2.org/EcV1cW29
1096: [16:35:32] <Zauberfisch> http://paste2.org/b96z6s7W
1097: [16:35:47] * Shrike_Finland quit (Quit: Leaving.)
1098: [16:36:07] * NETim quit (Ping timeout: 246 seconds)
1099: [16:36:44] <Zauberfisch> catcher: yeah, that sometimes is a problem, modules that use composer wrongly (define wrong dependencies, or no version that is compatible with common ss versions)
1100: [16:37:01] <Zauberfisch> but most module authors are happy to merge pull requests
1101: [16:37:59] <catcher> Zauberfisch, for example, CMS requires Reports, but Reports dev-master fails when CMS is 3.1.5. Reports 3.1.5 does not exist..
1102: [16:38:07] <catcher> How would I get that to build?
1103: [16:38:24] <Zauberfisch> wait a second
1104: [16:38:50] <catcher> (is that a literal letter x btw?)
1105: [16:39:04] <catcher> seems so, but want to be sure
1106: [16:40:16] <Zauberfisch> yes
1107: [16:40:20] <catcher> Ahh, I think I see what was u
1108: [16:40:21] <catcher> up*
1109: [16:40:29] <catcher> I had CMS dev-master, which required reports. 3.1.x does not.
1110: [16:40:36] <catcher> since dev-master was pointing to 3.2
1111: [16:40:39] <Zauberfisch> catcher: 3.1 will fetch 3.1.0, but 3.1.x will fetch 3.1.5
1112: [16:40:55] <Zauberfisch> catcher: ah, right
1113: [16:41:14] <Zauberfisch> thats why reports is out of date, because it used to be part of the cms and only recently got split into a module
1114: [16:41:20] <catcher> right-o
1115: [16:41:37] <Zauberfisch> btw, you don't have to specify reports. cms already has a dpeendency to reports
1116: [16:42:00] <Zauberfisch> composer not only reads your composer.json, but all composer.json files from the projects you require
1117: [16:42:23] <Zauberfisch> and then the composer.json of all the project of the projects
1118: [16:42:25] <catcher> 'composer update' told me I had to install it separately, maybe that's a config thing
1119: [16:42:26] <Zauberfisch> and so on
1120: [16:42:37] * Shrike_Finland has joined #silverstripe
1121: [16:42:46] <Zauberfisch> I think a minimal option would be just to specify the cms
1122: [16:42:51] <Zauberfisch> and composer does the rest
1123: [16:44:42] <catcher> Zauberfisch, if I use dev-master for other modules, but minimum-stability is 'stable', which version will it use?
1124: [16:45:23] <catcher> I suppose it'd be the newest master marked 'stable' by the maintainer
1125: [16:45:41] <Zauberfisch> http://paste2.org/DnwKXLpw
1126: [16:45:55] <Zauberfisch> thats the pretty much the minimal required composer file
1127: [16:46:24] <Zauberfisch> catcher: I think dev-master is just a tag, and might actually be considered stable
1128: [16:47:47] <catcher> Zauberfisch, thanks very much for the info, quite helpful
1129: [16:48:29] <Zauberfisch> but I could be wrong
1130: [16:50:45] <Zauberfisch> catcher: ok, I was wrong
1131: [16:50:51] <Zauberfisch> just looked it up
1132: [16:51:04] <Zauberfisch> if something starts with "dev-" or ends with "-dev" it is considered stability dev
1133: [16:51:31] <Zauberfisch> and is equal to saying "*@dev"
1134: [16:51:58] <Zauberfisch> and because @dev means use dev, and overwrite the default stability, it will still work, even if your minimum stability is stable
1135: [16:51:58] <catcher> aha...
1136: [16:52:24] <Zauberfisch> this article seems helpfup in explaining the stability stuff: https://igor.io/2013/02/07/composer-stability-flags.html
1137: [16:53:36] <Zauberfisch> uh, but it seems that only works in the root composer.json, and not in the packages
1138: [16:53:39] <Zauberfisch> tricky stuff
1139: [16:54:29] <Zauberfisch> but then you can just add a package to your root composer.json and add the @dev there, and then it will be allowed, even if your minimum stability is stable
1140: [16:54:46] <catcher> Zauberfisch, what if I actually want stable versions of the modules?
1141: [16:55:36] <Zauberfisch> uhm, good point
1142: [16:56:01] <Zauberfisch> perhaps it will work if you just specify that in your root composer.json with a tag that is stable
1143: [16:57:36] <catcher> http://sspaste.com/paste/show/539f1e492869c
1144: [16:58:00] * R\w\C quit (Quit: Textual IRC Client: www.textualapp.com)
1145: [16:58:31] <catcher> should 'master' be a valid tag?
1146: [17:00:11] <Zauberfisch> no idea
1147: [17:01:18] * Shrike_Finland quit (Quit: Leaving.)
1148: [17:01:21] <UndefinedOffset> i don't think, I think it's dev-master but not sure
1149: [17:02:14] <UndefinedOffset> besides i don't think composer will use dev if your minimum stability is stable, if you want the framework/cms to be stable use 3.1.x@stable and set your minium stability to dev
1150: [17:03:27] <catcher> UndefinedOffset, I'm wanting stable for everything.. will minimum-stability=dev + dev-master do that?
1151: [17:04:52] <UndefinedOffset> hmm if your looking to use stable of everything i'm not sure you can access master because it's considered a branch not a tag which composer considers dev
1152: [17:05:27] <UndefinedOffset> atleast to my knowledge :S
1153: [17:05:31] <catcher> aha.. so I need to specify a certain stable tag? Or branch?
1154: [17:06:00] <UndefinedOffset> or use * for the things that the tag isn't important like spamprotection
1155: [17:06:30] * Shrike_Finland has joined #silverstripe
1156: [17:07:47] <UndefinedOffset> which would cause composer to use the lastest tag
1157: [17:08:33] <catcher> ah, latest tag.. interesting
1158: [17:08:34] <catcher> thanks
1159: [17:09:53] <Zauberfisch> catcher: wait what?
1160: [17:09:57] <catcher> UndefinedOffset, that gives me this: http://sspaste.com/paste/show/539f212d81a73
1161: [17:10:05] <Zauberfisch> you want stable but you set minimum-stability=dev?
1162: [17:10:10] <Zauberfisch> that sounds wrong to me :P
1163: [17:10:14] <catcher> No, minimum-stability is stable
1164: [17:10:33] <catcher> that was just a passing thought :)
1165: [17:10:41] <catcher> Trying to figure out some way to get stable all the way through
1166: [17:11:27] <UndefinedOffset> hmm i think the issue comes from the composer.json in the mollum module https://github.com/silverstripe/silverstripe-mollom/blob/master/composer.json
1167: [17:11:30] <Zauberfisch> catcher: http://paste2.org/av7k2Iw2
1168: [17:11:33] <UndefinedOffset> it's requiring dev-master
1169: [17:11:35] <Zauberfisch> that should solve the problem
1170: [17:11:49] <Zauberfisch> what this does:
1171: [17:11:55] <Zauberfisch> - sets the stability to stable
1172: [17:12:07] <UndefinedOffset> ya i think thats the only way Zauberfisch given the mollum modules config
1173: [17:12:26] <Zauberfisch> - @dev will overwrite the stability and allow you to fetch dev-master (because I guess the spam module has no stable release)
1174: [17:13:05] <Zauberfisch> so, simply speaking, using @dev will grant an expection for the stability on just this package
1175: [17:14:44] <catcher> how is that different from specifying dev-master for the modules?
1176: [17:15:43] <catcher> seems to be the same, at least for these 3
1177: [17:16:21] <Zauberfisch> I think: dev-master is a version of that package which is considered dev. but @dev specifies the allowed stability
1178: [17:17:10] <Zauberfisch> so I think what happens is that because of the minimum stability stable it trys to do: dev-master@stable, which fails
1179: [17:17:20] <Zauberfisch> but if you allow dev with @dev, it will work
1180: [17:17:43] <Zauberfisch> but I am at the edge of my composer knowledge here, so please don't fully trust what I am saying
1181: [17:18:00] <Zauberfisch> but I just ran the composer.json I pasted, and it worked
1182: [17:18:05] <catcher> haha, understood, thanks.
1183: [17:18:21] <Zauberfisch> fetched cms and framework as 3.1.5 but spamprotection as dev-master
1184: [17:18:23] <catcher> Both of those work the same btw (*@dev vs dev-master))
1185: [17:18:34] <Zauberfisch> ah, ok
1186: [17:18:40] <Zauberfisch> so I was wrong, good to know
1187: [17:19:17] <Zauberfisch> so, for the record, composer sees dev-master and figures that you want @dev
1188: [17:19:35] <catcher> They may do different things for all I know, but both updates work, and leave me with the same code
1189: [17:19:42] <catcher> Zauberfisch, that makes sense to me
1190: [17:19:58] <Zauberfisch> yeah,
1191: [17:20:02] <Zauberfisch> I think its the same
1192: [17:20:23] <Zauberfisch> catcher: ah, one thing I have not mentioned: composer also deletes dependencies that you remoted
1193: [17:20:26] <Zauberfisch> *removed
1194: [17:20:38] <Zauberfisch> which is really useful, so you don't end up with zombie folders
1195: [17:21:11] <Zauberfisch> (it sees in the lock file that you previously had it installed, but it is no longer in the composer.json, so it deletes the folder)
1196: [17:21:42] <Zauberfisch> (this is a great feature, but you have to make sure that you don't have custom code in there, because composer would just delete that and your changes are lost)
1197: [17:22:19] <Zauberfisch> happened to me once. wanted to include a module directly into the project, so it no longer was a dependency but rather in the same git repo as mysite
1198: [17:22:47] <Zauberfisch> so I removed it from the composer.json. deleted the composer.json and the git folder inside the module and started to work
1199: [17:23:00] <Zauberfisch> next time I did a composer update, composer deleted my folder with all my work
1200: [17:23:19] <Zauberfisch> (luckily I had it already commited, so I could revert that in git, but it really scared me for a moment)
1201: [17:33:02] <catcher> mm, that's good to know!
1202: [17:39:39] * jenniferaslan quit (Ping timeout: 244 seconds)
1203: [18:00:17] * jenniferaslan has joined #silverstripe
1204: [18:04:53] * gelignite has joined #silverstripe
1205: [18:18:50] * cloph is now known as cloph_away
1206: [18:41:05] * cloph_away is now known as cloph
1207: [18:47:08] * UncleCheese has joined #silverstripe
1208: [18:59:30] <Zauberfisch> catcher: a feature I didn't know about: prefer-stable
1209: [18:59:31] <Zauberfisch> https://getcomposer.org/doc/04-schema.md#prefer-stable
1210: [18:59:50] <Zauberfisch> that would also solve your situation, it would use stable if availiable, or dev otherwise
1211: [18:59:53] <Zauberfisch> (or beta)
1212: [19:01:29] <catcher> Zauberfisch, thanks! I saw that, but wasn't sure which tag to use for the modules with it.
1213: [19:25:07] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
1214: [19:38:51] * anselmdk quit (Quit: anselmdk)
1215: [19:39:49] * Shrike_Finland quit (Quit: Leaving.)
1216: [19:42:37] * Shrike_Finland has joined #silverstripe
1217: [19:43:55] * Shrike_Finland quit (Client Quit)
1218: [19:57:00] * antmas quit (Quit: Page closed)
1219: [20:09:29] * Kingy[a] is now known as Kingy
1220: [20:11:35] <Kingy> kiaora
1221: [20:12:58] <Stomach> how do
1222: [20:14:08] <Kingy> good mate
1223: [20:14:10] <Kingy> you
1224: [20:14:34] <Stomach> fairly well thanks :)
1225: [20:14:41] <Kingy> good man
1226: [20:15:04] <Kingy> I love the fact that I can just randomly watch Iran vs Nigeria
1227: [20:18:47] * jenniferaslan quit (Ping timeout: 244 seconds)
1228: [20:18:56] <Stomach> haha
1229: [20:20:20] * UndefinedOffset quit (Quit: Leaving.)
1230: [20:20:53] * UndefinedOffset has joined #silverstripe
1231: [20:23:29] <Kingy> and it's actually not bad
1232: [20:25:12] * UndefinedOffset quit (Ping timeout: 245 seconds)
1233: [20:25:30] <Stomach> yeah well they have to be at least decent to be there to begin with
1234: [20:33:27] * jenniferaslan has joined #silverstripe
1235: [20:46:02] * nickmolhoek has joined #silverstripe
1236: [20:48:21] <Kingy> yeah scratch that
1237: [20:48:24] <Kingy> they're pretty shit
1238: [20:48:42] * Ryan-Toast has joined #silverstripe
1239: [20:50:03] <Kingy> looks like it'll be the first draw of the tournament
1240: [20:50:11] <Stomach> tab will be loving it
1241: [20:51:33] <Kingy> 0-0 those boos from the crowd
1242: [20:51:48] <Stomach> maybe they are just both SO good
1243: [20:51:52] <Stomach> no goals could be scored
1244: [20:53:15] <Kingy> nah
1245: [20:53:46] <Kingy> Iran are being criticised for just defending and not attacking
1246: [20:56:54] <Stomach> 3 draws will get you through to playoffs? :D
1247: [20:57:04] * zippy__ has joined #silverstripe
1248: [20:57:16] <Kingy> Stomach: didn't work from us
1249: [20:57:20] <Kingy> for*
1250: [20:57:39] <Stomach> oh yeah I remember that now
1251: [20:57:41] <Stomach> stupid new zealand
1252: [21:03:48] <zippy__> moring
1253: [21:05:38] <Stomach> hallo zippy__
1254: [21:08:47] * simon_w has joined #silverstripe
1255: [21:09:23] * an_Eskimo has joined #silverstripe
1256: [21:11:43] <Stomach> got your lunch packed and your thinking hat on simon_w? :D good luck for first day
1257: [21:14:20] <simon_w> Packed lunch? Hmm, probably should
1258: [21:14:21] <simon_w> Also, people here are weirded out that my commute's going to be an hour long
1259: [21:16:02] <Stomach> both ways? urgh.
1260: [21:17:43] <zippy__> simon_w: good time to listien to some books -> http://www.audible.com/
1261: [21:17:57] <Stomach> oh listen about the story of the fork
1262: [21:18:01] <Stomach> thats a good listen
1263: [21:18:26] <simon_w> zippy__, or podcasts, or WWDC videos!
1264: [21:23:24] * UncleCheese has joined #silverstripe
1265: [21:26:30] <Kingy> simon_w: I do 2 hours each way
1266: [21:26:43] <simon_w> Kingy, you live in Masterton
1267: [21:26:45] <Kingy> simon_w: you won't enjoy it
1268: [21:26:51] <Kingy> simon_w: yep
1269: [21:27:39] <Stomach> Kingy, I thought you only had to work 2 days a week in Welly?
1270: [21:27:48] <Stomach> entirely possible I made that up
1271: [21:28:07] <Kingy> Stomach: Yeah I do now, the reason being I couldn't stand the 4 hour round trip
1272: [21:28:47] <Kingy> Although Mon/Tues I drive to Feilding so that's just over an hours drive
1273: [21:28:54] <Kingy> but I stay the night on Monday so it's not bad
1274: [21:31:22] <Stomach> I used to live in Palmy
1275: [21:31:29] <Stomach> can't imagine even driving from there to welly
1276: [21:31:30] <Stomach> o_O
1277: [21:31:32] <Stomach> you're mental
1278: [21:32:08] <Kingy> Yeah I want to move back to Palmy
1279: [21:32:17] <Kingy> just need to convince the higher powers to let me work full time up here
1280: [21:33:26] <Stomach> you .. want to move .. to Palmy
1281: [21:33:39] <Stomach> Masterton must be _horrible_ :P
1282: [21:33:44] <Kingy> lol yeah. I actually miss it
1283: [21:34:02] <Stomach> you from there?
1284: [21:34:06] <Kingy> Yeah put it this way. Masterton is like Feilding in isolation
1285: [21:34:15] <Kingy> born in Marton Stomach :)
1286: [21:34:25] * antmas has joined #silverstripe
1287: [21:34:32] <antmas> bleep bloop
1288: [21:34:58] <guzzlefry> zowwy bop
1289: [21:34:58] <Stomach> you a huntley kid?
1290: [21:35:04] <Kingy> sure am
1291: [21:35:23] <Stomach> damn NZ and its tinyness
1292: [21:35:31] <Kingy> not you too?
1293: [21:35:50] <Stomach> nah, Palmy born and bred though
1294: [21:36:05] <Kingy> did you high school there?
1295: [21:36:10] <Stomach> yeah, Palmy Boys
1296: [21:36:23] <Kingy> ohh likewise
1297: [21:36:29] <simon_w> Ah Huntley. My team was the only one that won during our fixture there
1298: [21:36:50] <Stomach> what year were you?
1299: [21:36:58] * zippy__ is Pamly born
1300: [21:36:58] <Kingy> 02-06
1301: [21:37:06] <Stomach> 01-05 for me
1302: [21:37:12] <Kingy> simon_w: which school?
1303: [21:37:17] <simon_w> Kingy, Scots
1304: [21:37:55] <Kingy> this place is a small world haha
1305: [21:39:30] <zippy__> Who was it going on about the Watch Dogs graphics the other day?
1306: [21:39:34] <Stomach> new zealand ftw :D
1307: [21:40:11] <Kingy> Did you like boys high Stomach?
1308: [21:40:15] <zippy__> pretty crazy…. http://www.reddit.com/r/gaming/comments/289v7w/watch_dogs_original_graphical_effects_e3_201213/ almost makes you want to get a pc for games instead of a ps4…. if it wasn't for that DRM bullshit
1309: [21:40:23] <Stomach> yeah, it was alright
1310: [21:40:33] <Stomach> I was lucky enough to be in first stream, so got good teachers
1311: [21:40:43] <Stomach> and spent my 7th form year doing all arts subjects
1312: [21:40:51] <Kingy> ah yeah
1313: [21:40:56] <Kingy> see I was middle of the crop
1314: [21:41:21] <Kingy> basically not many people gave a shit about us haha
1315: [21:42:01] <Stomach> thats basically it aye, they love the "high performers" but everyone else can just get fucked
1316: [21:42:02] <Stomach> lol
1317: [21:42:02] <antmas> zippy__: lol ps4
1318: [21:42:07] <antmas> PC MASTER RACE!
1319: [21:42:31] <Kingy> I have it on PC
1320: [21:42:36] <zippy__> crazy that they crippled the graphics to make it look like consoles…..
1321: [21:42:36] <Kingy> looks rather average on my machine
1322: [21:42:43] <guzzlefry> because us who work 40 hours hunched over a computer also want to spend another 4 hours hunched over a computer playing games. :P
1323: [21:43:01] <zippy__> Kingy: might want to look at that mod to unlock the better graphics then....
1324: [21:43:12] <zippy__> guzzlefry: mmhmm
1325: [21:43:25] <simon_w> Kingy, should've gone to the local :p
1326: [21:43:30] <antmas> As good as it 'can' look, the game is still boring :P
1327: [21:43:36] <Kingy> zippy__: I think it's more that my GTX560 won't handle it anyway
1328: [21:45:40] <zippy__> Kingy: maybe… but the mod has optimized stuff as well, like they were loading in the graphics into ram twice and shit like that
1329: [21:47:31] <simon_w> Well, time to pack up and head off to work
1330: [21:47:40] <simon_w> Potentially no IRC from me until home time!
1331: [21:48:14] <antmas> simon_w: pfft, see you in like an hour ;)
1332: [21:48:30] <simon_w> Not likely :p
1333: [21:48:34] * simon_w quit (Quit: This computer has gone to sleep)
1334: [21:51:16] <Ryan-Toast> Watch_Dogs was such a dissapointment.
1335: [21:51:24] <antmas> this ^^
1336: [21:51:28] <Kingy> yep
1337: [21:51:34] <Kingy> looking forward to GTAV on PC
1338: [21:51:59] <Ryan-Toast> Kingy: I’m looking forward to it one year after release.
1339: [21:52:22] <Kingy> I got it on X360. It's freaking awesome
1340: [21:52:44] <antmas> yeah me too
1341: [21:52:49] <antmas> was a good game
1342: [21:53:00] <Kingy> Haven't finished the story yet though
1343: [21:53:18] <antmas> Kingy: yeah I chose the wrong ending :/
1344: [21:53:24] <Ryan-Toast> Kingy: had it on ps3, I mean I will buy it when all the bug/good mods have gone/comeout
1345: [21:53:46] <Kingy> antmas: start again :P
1346: [21:54:00] <antmas> my x360 power brick is toast
1347: [21:54:16] <antmas> I'll wait for the PC version :D
1348: [21:54:31] <Kingy> I went through a phase of modding/fixing 360s
1349: [21:54:33] <Kingy> I've got spares :P
1350: [21:55:09] <antmas> how much for a brick?
1351: [21:55:21] <antmas> I really don't need it though
1352: [21:55:24] <antmas> tbh
1353: [21:55:30] <Kingy> what sort of xbox have you got?
1354: [21:55:34] <Kingy> white one or slim?
1355: [21:56:02] <antmas> slim
1356: [21:56:18] <Kingy> ah yeah I've only got my slim brick
1357: [21:56:21] <Kingy> which you can't have haha
1358: [21:57:20] <antmas> Kingy: :P It's a paperweight for me until I get bored of BF4 on pc
1359: [21:58:38] <antmas> right meeting with a SS rep :P
1360: [21:59:09] <Stomach> good luck antmas, they are vicious
1361: [21:59:28] <antmas> his name is Peter ( I think he's an account manager :O)
1362: [22:00:18] <Kingy> Yeah I've met with him below
1363: [22:00:21] <Kingy> he's cool
1364: [22:00:24] <Kingy> before*
1365: [22:01:25] <Kingy> holy crap
1366: [22:01:37] <Kingy> USA score after like 30sec
1367: [22:10:12] * catcher quit (Quit: Leaving)
1368: [22:24:10] <Kingy> SS need to sort out their test system
1369: [22:26:05] <Stomach> how do you mean?
1370: [22:34:59] <Kingy> well you deploy something
1371: [22:35:05] <Kingy> and it'll 504 timeout for about 5 minutes after
1372: [22:35:25] <Kingy> and then saving something in the back end takes about 30 seconds
1373: [22:35:38] <Kingy> refreshing a page will either take a minute or 2 or timeout again
1374: [22:35:43] <Kingy> quite a shoddy server apparently :P
1375: [22:35:46] * travis-ci has joined #silverstripe
1376: [22:35:46] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2711 (3.1 - 91afa4a : Damian Mooyman): The build passed.
1377: [22:35:46] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/34304cf6e4ae...91afa4ac6125
1378: [22:35:46] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/27724899
1379: [22:35:46] * travis-ci has left #silverstripe
1380: [22:39:56] * camfindlay has joined #silverstripe
1381: [22:41:31] * antmas quit (Ping timeout: 246 seconds)
1382: [22:49:51] * irogue_ has joined #silverstripe
1383: [22:53:26] <camfindlay> ok I have set up a space to add your thoughts to the documentation discussion https://groups.google.com/forum/?fromgroups=#!topic/silverstripe-dev/3X8kZVSqPiY
1384: [22:53:59] <camfindlay> please feel free to make comments there so I can collect them all up and work out plans :)
1385: [23:01:54] <unsignedint> Hey does anyone know what the best way to display a custom "detail" view in a GridField is? Basically I have a Client, and each client has a set of Submissions which I am listing using a GridField. However, when viewing a Submission, I want to be able to output a completely custom detail view instead of the result of getCMSFields()
1386: [23:02:23] <unsignedint> I thought about trying to create a custom FormField and returning it from getCMSFields(), is this the correct approach?
1387: [23:03:00] <unsignedint> the Submission when viewed is read-only and is essentially a "report"
1388: [23:04:38] * antmas has joined #silverstripe
1389: [23:05:02] <antmas> ooooooooooh got a SS tshirt :P
1390: [23:05:32] <antmas> ... with instructions on how to make a paper boat on the back
1391: [23:06:29] <camfindlay> unsignedint are you talking frontend or CMS here?
1392: [23:06:51] <unsignedint> CMS. I have a custom ModelAdmin providing the initial GridField
1393: [23:07:23] <unsignedint> in fact I dont think ive ever needed to use a GridField outside the CMS
1394: [23:09:58] <unsignedint> camfindlay: I see theres a GridFieldDetailForm, would this be the template to override?
1395: [23:10:06] <unsignedint> although im not sure how to access it
1396: [23:10:56] <camfindlay> if you are looking to display varying sets of form fields in the CMS based on some user then I think the getCMSFields method might be the place to start.
1397: [23:11:46] <camfindlay> is this gridfield attached to a Page?
1398: [23:12:00] <camfindlay> and is the user accessing via the CMS?
1399: [23:16:39] <unsignedint> camfindlay: its attached to a ModelAdmin
1400: [23:19:14] <camfindlay> cool, so DataObject also has getCMSFields, basically bundles the CMS UI along with the defined model. You could check for permissions/groups as display different sets of fields
1401: [23:20:17] <irogue_> antmas: mine's a dragon
1402: [23:21:06] <unsignedint> camfindlay: right. what I really want to display is a piece of custom HTML. so would I subclass FormField and set its template to the file containing this HTML?
1403: [23:21:51] <camfindlay> Why not use a LiteralField for this?
1404: [23:22:24] <unsignedint> well as far as I can tell, you must specify the content of a LiteralField as a string
1405: [23:22:31] <unsignedint> but I want it to render a template
1406: [23:22:41] <camfindlay> How complex is your piece of markup?
1407: [23:24:39] <unsignedint> its essentially generating a "results" table based on the submission. The submission data is stored as json, so I need to deserialize it, convert it to ArrayData and then pass it to a template. There are sections that are conditional, and sections within sections, so I would like to use a template so <% if, <% loop etc is available instead of generating a massive string in PHP
1408: [23:28:14] <camfindlay> gotcha, in that case perhaps a Field subclass might work
1409: [23:29:11] <irogue_> subclassing Fields is awesome
1410: [23:30:06] <irogue_> i've just been working on one that's a subclass of OptionsetField but allows for a multi-dimensional map() so you can pass an Image as well as the ID and Title
1411: [23:32:14] <unsignedint> irogue_: so maybe you could help me. I have tried new LiteralField("Submission", $this->renderWith("Submission_Detail")) but it cant find the template. I have tried putting it in templates/ and templates/Layout but it still cant find it
1412: [23:32:41] <unsignedint> ie I thought that I could set the "Content" of the LiteralField to be the output of a template
1413: [23:32:59] <unsignedint> (also I have flushed of course)
1414: [23:34:18] <irogue_> unsignedint: can't say i've ever heard of that being done
1415: [23:36:42] <unsignedint> im basically trying to implement a custom "detail" view that is read-only and not based on a list of fields obtained via getCMSFields()
1416: [23:36:48] * travis-ci has joined #silverstripe
1417: [23:36:48] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#920 (3.1 - 601efbc : Ingo Schommer): The build was fixed.
1418: [23:36:48] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/e1f82aba4998...601efbc0882a
1419: [23:36:48] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/27728686
1420: [23:36:48] * travis-ci has left #silverstripe
1421: [23:37:16] <unsignedint> like, I want to be able to inject some HTML that takes over the whole right hand pane of the CMS, when the user clicks "View" on a record in thw GridView
1422: [23:37:19] <unsignedint> the*
1423: [23:39:43] * joelpittet has joined #silverstripe
1424: [23:40:26] * markcl has joined #silverstripe
1425: [23:56:30] <camfindlay> unsignedint I wonder if doing it as a report might be an option?
1426: [23:57:25] <unsignedint> I looked at that for something else but its too limited
1427: [23:57:46] <unsignedint> and I want it to be integrated with the other stuff, not standalone in a "Reports" section
1428: [23:58:12] * gelignite quit (Quit: http://bit.ly/nkczDT)

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