#silverstripe IRC Log

IRC log for 27 April 2014

All timestamps are in UTC.

1: [00:03:08] <simon_w|air> It needs a $2 coin
2: [00:03:23] <simon_w|air> Despicable!
3: [00:10:26] <Colin[pi]> :o
4: [00:23:02] <simon_w|air> 1 hour until boarding!
5: [00:23:45] <Colin[pi]> yay!
6: [00:23:58] <Colin[pi]> she gonna meet you at the airport?
7: [00:24:02] <simon_w|air> Yes
8: [00:24:05] <Colin[pi]> yay!
9: [00:29:44] * simon_w|air quit (Quit: This computer has gone to sleep)
10: [00:48:01] <Giganaire> quickie: how to check if isDev from within template?
11: [01:05:30] * micmania1 has joined #silverstripe
12: [01:10:24] * micmania1 quit (Ping timeout: 276 seconds)
13: [01:16:34] * UncleCheese has joined #silverstripe
14: [01:38:55] * SightUnseen has joined #silverstripe
15: [01:47:39] * SightUnseen quit (Quit: Leaving.)
16: [01:56:03] * UncleCheese quit (Quit: UncleCheese)
17: [01:56:22] * UncleCheese has joined #silverstripe
18: [02:09:01] * UncleCheese quit (Quit: UncleCheese)
19: [02:24:54] * gelignite quit (Quit: http://bit.ly/nkczDT)
20: [02:31:26] * UncleCheese has joined #silverstripe
21: [03:28:19] * UncleCheese quit (Quit: UncleCheese)
22: [03:35:26] * cloph has joined #silverstripe
23: [03:35:38] * cloph_away quit (Ping timeout: 240 seconds)
24: [03:45:51] * CodeTrap quit (Ping timeout: 265 seconds)
25: [03:46:22] * CodeTrap has joined #silverstripe
26: [04:12:06] * simon_w has joined #silverstripe
27: [04:15:40] * simon_w made it!
28: [04:45:43] <ss23> YAY
29: [04:45:45] <ss23> Enjoy the heat
30: [04:45:45] <ss23> :D
31: [04:46:23] <simon_w> In a Canberra winter? It's colder than Wellington :p
32: [04:55:51] * simon_w quit (Quit: This computer has gone to sleep)
33: [04:56:03] * simon_w has joined #silverstripe
34: [05:12:38] * simon_w quit (Ping timeout: 240 seconds)
35: [05:16:18] * SightUnseen has joined #silverstripe
36: [05:16:23] * SightUnseen has left #silverstripe
37: [05:24:40] * spronk2 has joined #silverstripe
38: [05:34:34] * spronk2 quit (Quit: spronk2)
39: [05:52:34] * spronk2 has joined #silverstripe
40: [06:40:23] * spronk2 quit (Quit: spronk2)
41: [07:29:26] * UncleCheese has joined #silverstripe
42: [08:07:34] * UncleCheese quit (Quit: UncleCheese)
43: [08:15:00] * UncleCheese has joined #silverstripe
44: [08:19:24] * spronk2 has joined #silverstripe
45: [08:51:10] * UncleCheese quit (Quit: UncleCheese)
46: [08:55:31] * UncleCheese has joined #silverstripe
47: [09:19:29] * Colin[pi] quit (Ping timeout: 264 seconds)
48: [09:39:51] * spronk2 quit (Quit: spronk2)
49: [09:42:23] * spronk2 has joined #silverstripe
50: [10:13:48] * spronk2 quit (Quit: spronk2)
51: [10:17:14] * gelignite has joined #silverstripe
52: [10:23:43] * Pyromanik has joined #silverstripe
53: [10:31:22] * UncleCheese quit (Quit: UncleCheese)
54: [10:36:40] * micmania1 has joined #silverstripe
55: [10:39:37] <Pyromanik> working weekends micmania1?
56: [10:40:47] <micmania1> freelance :)
57: [10:40:52] <Pyromanik> fun :>
58: [10:41:14] <Pyromanik> where can I buy envelopes and stamps from, and how many stamps do I need to send a letter?
59: [10:42:55] <Pyromanik> and I hope its' not wordderp micmania1 :>
60: [10:45:48] <Pyromanik> ah balls, it's fuck'n raining anyway
61: [10:47:45] * UncleCheese_ has joined #silverstripe
62: [10:49:39] * anselmdk has joined #silverstripe
63: [10:50:05] * Pyromanik quit (Ping timeout: 255 seconds)
64: [10:51:27] * Pyromanik has joined #silverstripe
65: [10:56:39] * sunzofman1 has joined #silverstripe
66: [11:03:42] <micmania1> Pyromanik: no, not wp
67: [11:04:01] <micmania1> and you can buy stamps from a newsagents or post office
68: [11:04:16] <micmania1> and usually just 1 stamp, unless you're sending a parcel
69: [11:30:32] <Pyromanik> sweet, ta
70: [11:30:42] <Pyromanik> dunno where any news agents are though :< haha
71: [11:30:57] <micmania1> they're just normal shops
72: [11:30:59] <micmania1> like corner shops
73: [11:31:03] <Pyromanik> i know what they are.
74: [11:31:18] <Pyromanik> I know there's one by work, but I don't know of any around home.
75: [11:32:08] <micmania1> You should be able to get one at a local supermarket
76: [11:32:17] <micmania1> sainsburys/tesco or something
77: [11:32:19] <Pyromanik> Probably
78: [11:32:24] <Pyromanik> I might try later.
79: [11:32:34] <Pyromanik> it's raining and stuff.
80: [11:32:43] <Pyromanik> and I need an envelope anyway
81: [11:34:01] <Pyromanik> wtf
82: [11:34:27] <Pyromanik> trying to clear space on hdd, find out that Adobe Reader is taking twice the space than that of the next thing, which is a full game.
83: [11:34:35] <Pyromanik> full modern* game.
84: [11:35:01] <Pyromanik> An indy title, but still.
85: [11:35:17] <Pyromanik> over half a gig, just for adobe reader. what the actual fuck.
86: [11:35:19] <ss23> I see you've never tried to write a PDF renderer
87: [11:35:19] <ss23> :P
88: [11:35:35] <Pyromanik> ss23, HALF A GIG@
89: [11:35:40] <ss23> And?
90: [11:35:43] <Pyromanik> o
91: [11:35:47] <Pyromanik> over!
92: [11:36:28] <Pyromanik> pretty sure most of it won't even be relevant to rendering pdf, more bloat and spy wares from the adobes.
93: [11:39:18] <Pyromanik> urgh. name file c:
94: [11:39:22] <Pyromanik> can't delete it :<
95: [11:39:34] <Pyromanik> lulz
96: [12:08:06] * UncleCheese_ quit (Quit: UncleCheese_)
97: [13:17:42] * Colin[pi] has joined #silverstripe
98: [13:18:01] <micmania1> urgh! Bitbucket is down :(
99: [13:23:21] * VRoxane has joined #silverstripe
100: [13:30:06] * opalfroot has joined #silverstripe
101: [13:30:31] <opalfroot> anyone know anything more about this?
102: [13:30:32] <opalfroot> https://github.com/silverstripe/silverstripe-framework/issues/3034
103: [13:32:42] <ss23> I do not
104: [13:32:43] <ss23> :O
105: [13:32:48] <ss23> I assume if someone knew, they would respond to the ticket
106: [13:34:28] <opalfroot> I was really asking out of desperation ..lol
107: [13:39:53] * Colin[pi] quit (Ping timeout: 264 seconds)
108: [13:50:14] <Pyromanik> micmania1, bitbucket?
109: [13:55:28] <micmania1> yeah, working with someone. Kinda need it lol
110: [14:01:18] * opalfroot quit (Ping timeout: 240 seconds)
111: [14:04:06] <Pyromanik> guts
112: [14:05:08] <Pyromanik> Right, must be about pizza time
113: [14:07:22] * eagles0513875_ has joined #silverstripe
114: [14:07:24] <eagles0513875_> hey guys
115: [14:08:10] <eagles0513875_> i have a question question if i setup silverstripe on a subdomain and i need to change the domain the site is using is it possible?
116: [14:12:04] <ss23> eagles0513875_: When you install it, it won't write out the domain anywhere. You can move it around and it'll work perfectly without any changes
117: [14:17:31] <eagles0513875_> ss23: can i code custom pages lets say from scratch in php for lets say a sharing platform etc
118: [14:18:13] <ss23> eagles0513875_: I am not sure what you're asking exactly, but you can easily create custom page types with whichever funcionalities you would like. The tutorials should give you a quick overview of how to do it
119: [14:18:52] <eagles0513875_> thanks ss23
120: [14:52:36] <eagles0513875_> hey ss23 how silverstripe is compaining about date.timzone not being set and is showing up as an error
121: [14:52:44] <eagles0513875_> I set the time zone yet its still showing as an error
122: [14:52:59] <ss23> eagles0513875_: That's a PHP error, not a SilverStripe one. SilverStripe just doesn't hide it from you
123: [14:53:22] <eagles0513875_> ss23: i understand that but what im not understanding is that i set it and restarting php-fpm and apache and still it comes up as an error
124: [14:54:01] <ss23> eagles0513875_: You may have set it in the wrong place. You can use the phpinfo() function (like, without silverstripe, you can just create a file, phpinfo.php -- <?php phpinfo(); ?>) to verify whether PHP think it is set, and also, to see which .ini file it's parasing
125: [14:54:13] <ss23> There can often be lots (like, 3 or more) different php.ini files you need to edit
126: [14:54:31] <ss23> phpinfo, when ran from apache/php-fpm (not ran on the command line! That'll tell you a different php.ini) shoudl tell you the right onw
127: [14:54:34] <ss23> one
128: [14:54:49] <eagles0513875_> ss23: silverstripe is telling me which one im just not sure if i have it set right
129: [14:55:09] <eagles0513875_> this is in the php.ini file in /fpm directory
130: [14:55:10] <eagles0513875_> ;date.timezone =Europe/London
131: [14:55:17] <ss23> You need to remove the leading ;
132: [14:55:21] <eagles0513875_> and i got that based on http://www.php.net/manual/en/timezones.europe.php
133: [14:55:22] <ss23> ; in a php.ini file means it's a comment
134: [14:55:27] <eagles0513875_> ahh ok
135: [14:55:28] <eagles0513875_> sorry
136: [14:55:31] <ss23> No problems :)
137: [14:55:39] <eagles0513875_> im used to the # as comments
138: [14:55:43] <eagles0513875_> or // or /**/
139: [14:56:31] <eagles0513875_> another potential stupid question what exactly is the html cleaner?
140: [14:57:55] <ss23> An HTML cleaner is a thing that will take HTML a user gives it and "purifies it", fixes syntax errors, removes tags you don't want, things like that
141: [14:58:14] <ss23> I think SilverStripe uses it if you tell it to, so that you can filter out things like <script> tags from someone editing thingsi n the CMS
142: [15:00:30] <eagles0513875_> ok it looks like a cool feature but i just installed it tidy on ubuntu 12.04 and its still showingas a warning
143: [15:00:51] <ss23> If it's not required, I wouldn't worry about it too much :)
144: [15:01:04] <eagles0513875_> ok is it something that can be setup later
145: [15:01:55] <Pyromanik> micmania1, awww shit. Pizza place close
146: [15:02:00] <Pyromanik> guts.
147: [15:02:12] <Pyromanik> but, turns out it's right next to a news agents xD
148: [15:02:18] <Pyromanik> so solved that problem :P
149: [15:02:28] <Pyromanik> ss23, are you on holiday or something?
150: [15:02:48] <ss23> Nope, just not quite tired enough yet
151: [15:02:57] <ss23> I actually shoudl sleep, but I started something a few hours ago and am just finishing
152: [15:03:02] <ss23> "In the US, the National Collegiate Athletic Association (NCAA) requires screening of all college student athletes for mutations in the gene that causes sickle cell anemia, an autosomal recessive disease that manifests early in life. Name one pro and one con of this policy."
153: [15:03:09] <ss23> The pro is easy, but whats a con, Pyromanik?
154: [15:03:47] <Pyromanik> pros and cons?
155: [15:03:54] <Pyromanik> + and -
156: [15:03:57] <Pyromanik> good and bads
157: [15:04:04] <ss23> ...
158: [15:04:05] <ss23> haha
159: [15:04:06] <ss23> I mean
160: [15:04:07] <Pyromanik> fors and againsts
161: [15:04:09] <ss23> What is the *con*
162: [15:04:13] <ss23> What is an example of one
163: [15:04:13] <ss23> :P
164: [15:04:53] <Pyromanik> Compulsory testing in the NCAA - Pro: find out if you've got the disease. Con: invasion of privacy with non sport relevant disease.
165: [15:05:12] <ss23> Pretty much, I guess
166: [15:05:25] <Pyromanik> it's not like having cell anemia causes someone to be stronger and faster right>
167: [15:05:35] <Pyromanik> or is it something that perhaps can legitimise blood doping?
168: [15:05:37] <eagles0513875_> ss23: I have one problem
169: [15:05:51] <eagles0513875_> ss23: i set my username and password but i cant seem to login
170: [15:06:00] <ss23> no idea, Pyromanik :O
171: [15:06:32] <eagles0513875_> never mind
172: [15:06:56] <ss23> eagles0513875_: Okay :)
173: [15:08:00] <eagles0513875_> :)
174: [15:09:55] <Pyromanik> eagles0513875_, to clarify you can code php to make silverstripe do whatever you'd like it to. It will do it on any domain that points to it, without issue. You cannot however expect some code to be available on one domain and not on another.
175: [15:10:13] <Pyromanik> you'll need to code domain checks and put the errors out yourself in that case.
176: [15:10:23] <Pyromanik> or, have 2 separate installs. That would work fine.
177: [15:10:34] <eagles0513875_> ok normally that is how i do i twould setup multiple installs
178: [15:10:55] <Pyromanik> Yeah well ok then, you can move SS between folders and things without issue. Not a problem.
179: [15:11:30] <Pyromanik> One small gotcha though, if you put it in a sub folder (not a sub domain), you'll need to update the RewriteBase in apache (or otherwise configure your url rewriting tool thing)
180: [15:11:49] * Alfirin has joined #silverstripe
181: [15:12:01] <Pyromanik> but this is server setup, not so much silverstripe itself.
182: [15:12:38] <Pyromanik> ss23, halp what do, pizza or curry?
183: [15:12:50] <micmania1> Pyromanik: i'm having exactly the same problem
184: [15:12:51] <Pyromanik> pepperoni or butter chicken?
185: [15:13:01] <Pyromanik> well, tikka masala, but close enough.
186: [15:13:13] <micmania1> I had indians on Friday but i want it again
187: [15:13:21] <Pyromanik> micmania1, no pizza places open near you? or what :P
188: [15:13:21] <ss23> Pyromanik: Hmm
189: [15:13:26] <micmania1> loads
190: [15:13:27] <Pyromanik> Indian is goods
191: [15:13:29] <ss23> I'd go curry tbh
192: [15:13:37] <Pyromanik> fuck you, I was hoping to have pizza today.
193: [15:13:42] <micmania1> well, there will be soon anyway
194: [15:13:48] <Pyromanik> but curry so good :D
195: [15:13:58] <Pyromanik> micmania1, oh right, sunday is a shit.
196: [15:14:29] <Pyromanik> still, solved the issue of needing envelope and stamp for my compensation claim form :>
197: [15:14:52] <micmania1> Pyromanik: you use just eat?
198: [15:15:02] <Pyromanik> micmania1, about to
199: [15:15:32] <Alfirin> You guys always have such pleasant conversations, I hate to interrupt you
200: [15:15:42] <Alfirin> But I did anyway
201: [15:15:48] <Pyromanik> went to supermarket, was hoping for pizza on the way back, noticed they were shut on the way in though. Was dark, bought 2 oven shitters from Tesco
202: [15:16:06] <Pyromanik> although in your own oven type pizzas aren't too bad here, comparitively
203: [15:16:11] <Pyromanik> Alfirin, sup?
204: [15:16:45] <Alfirin> I got in trouble with eventmanager add-on, it gave me "Object->__call(): the method 'fortemplate' does not exist on 'RegistrableDateTime'"
205: [15:16:52] <Alfirin> and I have no idea what to do with this information
206: [15:16:58] <Pyromanik> event manager?
207: [15:17:00] <Pyromanik> link?
208: [15:17:15] <Alfirin> sorry, event management
209: [15:17:15] <Alfirin> https://github.com/ajshort/silverstripe-eventmanagement
210: [15:17:47] <Pyromanik> oh shiiiiit, uninstall it and run away
211: [15:17:55] <Pyromanik> a million miles.
212: [15:20:29] <Alfirin> but I need it :(
213: [15:21:13] <Pyromanik> but it's so shit
214: [15:21:27] <Pyromanik> honestly, nothing lies that way but pain and suffering.
215: [15:22:02] <Pyromanik> although the answer to your issue is quite easy, you're trying to render something that isn't supposed to be (directly)
216: [15:22:15] <Pyromanik> maybe in the template, maybe in the code, dunno.
217: [15:22:44] <Pyromanik> you're also relying on these two modules to have been kept entirely up to date, not only with SS but with each other.
218: [15:23:12] <Pyromanik> and considering events_calendar is the very worst module in existence over all of silverstripe's history, I wouldn't rely on it.
219: [15:23:53] <Pyromanik> but if that's what you've got to work with, good luck to you sir.
220: [15:24:09] <Pyromanik> I just hope you don't find a bug, or need to modify it's core in any way at all.
221: [15:24:33] <Pyromanik> even to add new functionality (which technically isn't modifying core at all).
222: [15:24:49] <eagles0513875_> out of curiosity are silverstripe sites responsive?
223: [15:25:08] <Alfirin> Pyromanik, so there's no alternative for it then?
224: [15:25:28] <Pyromanik> eagles0513875_, silverstripe.org, or ...?
225: [15:25:38] <Pyromanik> Alfirin, unfortunately, not really :(
226: [15:25:38] <eagles0513875_> Pyromanik: self hosting
227: [15:25:53] <Pyromanik> eagles0513875_, well just like any website you make, it depends on what YOU make it do.
228: [15:26:03] <micmania1> eagles0513875_: silverstripe is only the backend. The front end is up to you
229: [15:26:17] <eagles0513875_> is there a way i can integrate the twitter bootstrap framework?
230: [15:26:20] <eagles0513875_> into the CMS
231: [15:26:24] <Pyromanik> dafuq
232: [15:26:29] <Pyromanik> no.
233: [15:26:45] <Pyromanik> the cms is already built, why do you want to add a framework to it needlessly?
234: [15:27:09] <Pyromanik> nom, butter chicken smells great
235: [15:27:14] <Pyromanik> thanks microwave!
236: [15:27:20] <eagles0513875_> Pyromanik: let me rephrase the question
237: [15:27:47] <eagles0513875_> if i want to create responsive pages how can i integrate something like twitter bootstrap? would uploading it be enough
238: [15:28:09] <Pyromanik> eagles0513875_, depends on what you're talking about.
239: [15:28:43] <Pyromanik> If you're meaning "Can I make a theme for my site that uses bootstrap?", yes, of course.
240: [15:28:48] <micmania1> eagles0513875_: the front end is up to you. Whatever you want to put in your theme, you can.
241: [15:28:50] <Pyromanik> you have 100% freedom to this end.
242: [15:28:51] <micmania1> eagles0513875_: http://doc.silverstripe.org/framework/en/topics/theme-development
243: [15:29:08] <eagles0513875_> ok basically silverstripe is a CMS that makes creating a website easy yet allow for full customizability
244: [15:29:20] <Pyromanik> 100% freedom means just that, as opposed to other shit systems that say 100% freedom but then proceed to ensnare you with all sorts of gotchas.
245: [15:29:29] <Pyromanik> eagles0513875_, yes, as it should be.
246: [15:29:55] <eagles0513875_> :D
247: [15:30:06] <Pyromanik> CMS isn't for making websites, it's for managing their content. This does not restrict you in how you build the front end's look and feel.
248: [15:30:14] <eagles0513875_> perfect :)
249: [15:30:18] <Pyromanik> hence Content Management System.
250: [15:30:22] <Pyromanik> CMS
251: [15:30:27] <eagles0513875_> so all i need to do is upload twitter bootstrap to the upload directory and that is sufficient
252: [15:30:34] <Pyromanik> no.
253: [15:31:00] <Pyromanik> you need to first read the tutorials, then read the link on theme development micmania1 posted above, then maybe you can.
254: [15:31:04] <micmania1> eagles0513875_: follow the tutorial link
255: [15:31:20] <eagles0513875_> thanks :)
256: [15:33:46] * [1]Pyromanik has joined #silverstripe
257: [15:35:51] <[1]Pyromanik> rude, disconnec
258: [15:36:36] * Pyromanik quit (Ping timeout: 252 seconds)
259: [15:36:36] * [1]Pyromanik is now known as Pyromanik
260: [15:37:23] <eagles0513875_> question where it says create folders i do that under the files section correct?
261: [15:38:10] <Alfirin> Pyromanik, well, I'll just have to admit defeat then. Thank you for your honesty
262: [15:42:03] * opalfroot has joined #silverstripe
263: [15:42:53] * WilsonS has joined #silverstripe
264: [15:44:08] <WilsonS> Hi everyone. Anybody know if there's something in SS admin that's blocking xDebug breakpoints? Breakpoints work fine on frontend with same domain, IDE, cookie, etc. But within admin, code doesn't break.
265: [15:44:31] <Pyromanik> Alfirin, if you search the logs (logs.silverstripe.org) you'll find a chap who's making a reasonable replacement, although it may not work exactly as you'd like.
266: [15:44:57] <Pyromanik> WilsonS, probably uhh, no.
267: [15:45:08] <Pyromanik> if there's a way to turn them off, that bit of code will be in the source. Use grep.
268: [15:46:43] <WilsonS> Thanks
269: [15:58:48] * opalfroot quit (Ping timeout: 240 seconds)
270: [16:03:18] <eagles0513875_> Pyromanik: micmania1 :D SS is growing on me :D
271: [16:12:01] <WilsonS> Interesting, I can break the code in the parent class (DataObject.php) and work with it there. Just not in my subclass (Restaurant). There are references to xdebug nesting in the core so must be issue with nesting limit.
272: [16:23:53] <eagles0513875_> hey guys im looking at the theme creation tutorial are three css files really needed?
273: [16:23:57] <eagles0513875_> or can i just use one?
274: [16:32:16] <Alfirin> I can't see why not, then again, I'm not that versed with SS
275: [16:34:22] <eagles0513875_> im totally new to it hence asking the question
276: [16:34:49] * WilsonS quit (Quit: Page closed)
277: [16:37:19] <Alfirin> I prefer several css files, but I can't see why one wouldn't work just as well
278: [16:37:41] <Alfirin> Pyromanik, haha I just noticed from the logs, I was present when the guy was talking about his calendar replacement
279: [16:39:30] * joelpittet has joined #silverstripe
280: [16:40:46] <eagles0513875_> Alfirin: how do you get it to work with the css file
281: [16:43:23] <Alfirin> what do you mean how? I just copied what the default template did
282: [16:47:36] <Pyromanik> eagles0513875_, you can just use one.
283: [16:47:41] <Pyromanik> but it's not advised.
284: [16:48:04] <eagles0513875_> Pyromanik: ok will use the default simple theme
285: [16:48:04] <Pyromanik> for starters it's cleaner better code to use two (one for typography styles) and second it's easier to put stuff in the CMS like that
286: [16:48:07] <eagles0513875_> and modify that
287: [16:48:19] <Pyromanik> editor.css is included into the TinyMCE
288: [16:48:20] <Pyromanik> in the cms
289: [16:48:38] <Pyromanik> which includes typography.css by default I think, meaning that it truely is WYSIWYG
290: [16:48:58] <Pyromanik> without messing up the CMS by overriding all it's styles
291: [16:49:05] <Pyromanik> because there's no layout.
292: [16:49:18] <Pyromanik> which is why typography.css is all prefixed with .typography
293: [16:49:29] <Pyromanik> and only contains things relevant to typography
294: [16:49:41] <Pyromanik> it's not strictly necessary to do things that way, but is much easier.
295: [16:54:56] <eagles0513875_> ya it makes sense
296: [16:54:58] <Alfirin> Well, I'll give up for today, see you later
297: [16:57:52] <Pyromanik> see you later :)
298: [16:59:18] * Alfirin quit (Ping timeout: 240 seconds)
299: [17:00:07] <eagles0513875_> hey Pyromanik
300: [17:00:17] <eagles0513875_> i have a home page using simple theme but im still getting a page not found for some reason
301: [17:18:26] * micmania1 quit (Ping timeout: 255 seconds)
302: [17:24:07] <Pyromanik> Probably because you renamed it.
303: [17:24:20] <Pyromanik> the type of page doesn't matter, the one with the url segment 'home' is the one that loads on the domain root.
304: [17:24:36] <Pyromanik> it could be better, I know, but that's how it is for now.
305: [17:24:58] <Pyromanik> don't ask me how foreign language sites manage, I've not really dealt with them at all in the past.
306: [17:25:08] <Pyromanik> eagles0513875_, ^^
307: [17:25:44] <Pyromanik> check in the CMS that the page you want to be your home has the url segment 'home' and is the first page in the menu list, at the top level.
308: [17:26:18] * eagles0513875_ quit (Ping timeout: 240 seconds)
309: [17:58:41] * joelpittet quit (Remote host closed the connection)
310: [17:59:15] * joelpittet has joined #silverstripe
311: [18:05:00] * micmania1 has joined #silverstripe
312: [18:19:16] * violetina quit (Ping timeout: 252 seconds)
313: [18:19:33] * violetina has joined #silverstripe
314: [18:49:23] <Pyromanik> back again micmania1
315: [18:49:25] <Pyromanik> big project?
316: [18:52:30] <micmania1> meh.
317: [18:52:34] <micmania1> decnt size
318: [18:52:47] <micmania1> its a website for a local event
319: [18:53:14] <micmania1> band profiles, ticket reservation, gallery, blog, contact page
320: [18:53:18] <micmania1> that kinda thing
321: [19:02:47] * SphereSilverNL has joined #silverstripe
322: [19:03:01] <SphereSilverNL> Evening folks
323: [19:05:04] <SphereSilverNL> anyone willing to take a look at a new miniproject I did?
324: [19:08:04] <Pyromanik> ok
325: [19:08:11] <Pyromanik> micmania1, sounds cool
326: [19:10:49] <Pyromanik> SphereSilverNL, and so?
327: [19:11:05] <SphereSilverNL> And so.... just asking ;)
328: [19:11:14] <Pyromanik> This mini project wouldn't be projecting a UML map of the SS core by chance would it?
329: [19:12:05] <SphereSilverNL> Sorry
330: [19:12:48] <Pyromanik> hmm, oh well, on with parsing it all myself then!
331: [19:19:01] * SphereSilverNL quit (Remote host closed the connection)
332: [19:21:41] <micmania1> was just getting some placeholder images off google
333: [19:21:56] <micmania1> so i started typing 'kittens' into the url bar
334: [19:22:17] <micmania1> my browser tried to autocomplate to 'killwordpress.com' haha
335: [19:22:23] <micmania1> if only
336: [19:31:47] * joelpittet quit ()
337: [19:32:42] <Pyromanik> hahahaha classic micmania1
338: [19:34:58] <Pyromanik> is that actually a website?
339: [19:35:21] <Pyromanik> nope, guts :<
340: [19:35:28] <Pyromanik> :E
341: [19:50:48] * Ryan-Toast has joined #silverstripe
342: [19:55:53] <Pyromanik> Toast! ahhahhhhh
343: [19:55:58] <Pyromanik> saviour of the breakfast!
344: [19:56:34] <Pyromanik> it's just some bread, with the bread's courage
345: [19:57:26] <Ryan-Toast> lol
346: [19:57:36] <Ryan-Toast> That’s actually a good description.
347: [19:57:49] <Pyromanik> http://www.youtube.com/watch?v=MS4_Z84-rRE&feature=kp
348: [20:07:48] * Stomcch has joined #silverstripe
349: [20:25:07] * travis-ci has joined #silverstripe
350: [20:25:07] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2382 (master - a67f853 : Damian Mooyman): The build passed.
351: [20:25:07] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1dcaf36c9b5f...a67f853d7f9a
352: [20:25:07] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23885717
353: [20:25:07] * travis-ci has left #silverstripe
354: [20:31:04] * an_Eskimo has joined #silverstripe
355: [20:32:58] * SightUnseen has joined #silverstripe
356: [20:35:31] * SightUnseen has left #silverstripe
357: [20:46:51] * Stomcch is now known as Stomach
358: [21:02:47] * UncleCheese_ has joined #silverstripe
359: [21:07:05] <Ryan-Toast> Anyone know a good way of reducing time to first byte on SS?
360: [21:08:26] <Stomach> static publisher
361: [21:08:53] <Stomach> having a cache layer at PHP level, apc or something similar
362: [21:09:13] <Stomach> ss23 should know lots more about this!
363: [21:10:26] <Pyromanik> Ryan-Toast, read simon_w's blog post on it?
364: [21:10:59] <Ryan-Toast> Pyromanik: This one? http://www.silverstripe.org/how-to-improve-website-performance/
365: [21:11:06] <Ryan-Toast> wait, wrong one
366: [21:11:16] <Pyromanik> idk, it's reasonably recent
367: [21:11:30] <Ryan-Toast> Pyromanik: this one http://www.silverstripe.org/improving-silverstripe-performance/
368: [21:11:50] <Pyromanik> yeh, seems like it (didn't visit to check because I'm lazy as all hell)
369: [21:12:24] <Ryan-Toast> lol. I need to play with caching more. Some of the rules are still confusing.
370: [21:12:44] * spronk has joined #silverstripe
371: [21:15:58] * wracu has joined #silverstripe
372: [21:15:59] * wracu quit (Client Quit)
373: [21:16:18] * wracu has joined #silverstripe
374: [21:16:23] <wracu> morning
375: [21:16:45] <wracu> quick question... is it possible to remove the 'filter' pane in the CMS for my custom ModelAdmin???
376: [21:17:11] <wracu> I wont need/don't want it
377: [21:18:17] * antmas has joined #silverstripe
378: [21:18:25] <antmas> moin moin all
379: [21:18:49] <Ryan-Toast> There’s probs a function fr it, but if not it’s within scope of a custom ID for the page, so you could remove it with CSS i.e #custom-controller-cms-content .cms-panel-content{display: none}
380: [21:19:06] <Ryan-Toast> antmas: Morning
381: [21:19:14] <UncleCheese_> wracu: just create a custom template for it
382: [21:19:17] <UncleCheese_> MyAdmin_left.ss
383: [21:20:12] <antmas> first day back after 10 days, first problem is a search issue
384: [21:20:14] <antmas> -_-
385: [21:20:52] <wracu> thanks cheese
386: [21:21:03] * micmania1 quit (Read error: Connection reset by peer)
387: [21:21:40] <UncleCheese_> i believe it has to be in themes/yourtheme/admin/Includes
388: [21:22:01] <UncleCheese_> just look at wherever ModelAdmin_left is in framework/
389: [21:22:12] <UncleCheese_> and create an analog in your theme
390: [21:23:53] * antmas quit (Quit: Page closed)
391: [21:26:09] <Pyromanik> no, in your project dir, eg mysite/templates
392: [21:26:16] <Pyromanik> there is no theme in the cms.
393: [21:27:10] <UncleCheese_> right, right, right
394: [21:27:13] <UncleCheese_> that's the trick
395: [21:27:42] <UncleCheese_> the docs actually recommend creating a module called zzz_admin/
396: [21:28:04] <UncleCheese_> and by zzz_admin, I mean zed, zed, zed admin.
397: [21:28:52] <Pyromanik> :D oh you UncleCheese_
398: [21:29:10] <Pyromanik> you know how to talk to a Kiwi :P
399: [21:29:38] <Pyromanik> Though it's the same in Canada I hear, and pretty much anywhere that's not the USA.
400: [21:38:40] <Ryan-Toast> antmas: Mine is that peopl,e decided to go live on a Thursday evening over a long weekend, and are mad because there were a couple of bugs and no-one would answer their phone calls.
401: [21:39:18] <UncleCheese_> Pyromanik: yeah, same in Canada
402: [21:39:21] <UncleCheese_> cause of the French
403: [21:39:53] <Stomach> Ryan-Toast - check out CacheInclude from heyday, its great for caching https://github.com/heyday/silverstripe-cacheinclude
404: [21:40:02] <UncleCheese_> so, same in France, too. And same in New Caledonia, and Senegal, and Tahiti, and Benin
405: [21:40:14] <Ryan-Toast> Stomach: Thanks, man :)
406: [21:40:27] <UncleCheese_> +++++++++1 ^^^
407: [21:40:50] <Stomach> I was so stocked when that got released publically UC
408: [21:41:04] <UncleCheese_> yeah, man, you and me both
409: [21:41:14] <UncleCheese_> i had been telling so many people about it
410: [21:41:17] <Stomach> stocked*
411: [21:41:20] <Stomach> stoked*
412: [21:41:22] <Stomach> fuck.
413: [21:41:37] <UncleCheese_> cam did some crazy ass shit to it over the last few months
414: [21:41:41] <UncleCheese_> did you see the request caching?
415: [21:41:43] <Stomach> yeah
416: [21:41:48] <Stomach> hes crazy
417: [21:41:55] <UncleCheese_> pages render in like 2ms
418: [21:42:15] <UncleCheese_> it's dangerous, though
419: [21:42:24] <UncleCheese_> but if you know what you're doing, you an create some blazing fast page loads
420: [21:42:42] <UncleCheese_> very easy to create unpredictable results, though, if the config isn't right
421: [21:43:06] * simon_w has joined #silverstripe
422: [21:43:24] <Stomach> yeah, thankfully I learn't most of that when I was originally doing trilogy and ecoya
423: [21:43:40] <Stomach> trying to get those object relations to cache was a thought experiment the first time around
424: [21:47:25] <UncleCheese_> yeah, i've cursed your name a few times during the SS3 upgrade
425: [21:47:30] <UncleCheese_> but in a good way
426: [21:47:38] <UncleCheese_> like "oh, fuck, Stevie.. this is brilliant!!!!!!"
427: [21:48:23] <Stomach> hahaha really?
428: [21:49:01] <UncleCheese_> there's definitely a caculable wtf's per hour
429: [21:49:32] <Stomach> yeah thats something I'm getting better at though, being less terse
430: [21:50:06] <UncleCheese_> nah, honestly all the pain points of that project are in heystack
431: [21:50:16] * antmas has joined #silverstripe
432: [21:50:33] <UncleCheese_> it's asking a lot for someone unfamiliar with heystack to do an upgrade of the old heystack to the new heystack
433: [21:50:36] * Pyromanik quit (Ping timeout: 276 seconds)
434: [21:50:45] <UncleCheese_> that's like.. wtf's per second
435: [21:51:00] <Stomach> dependency injection is great until you need to debug it
436: [21:51:05] <UncleCheese_> especially now that SS has its own DI
437: [21:51:10] <UncleCheese_> so it's like this mishmash
438: [21:51:13] <Stomach> and the observable pattern just adds to it
439: [21:51:18] <UncleCheese_> very difficult to debug
440: [21:56:48] * antmas quit (Ping timeout: 240 seconds)
441: [22:00:52] * antmas has joined #silverstripe
442: [22:04:51] <simon_w> Yay, I can work from bed now!
443: [22:06:56] <antmas> simon_w: you in AUS yet?
444: [22:07:03] <simon_w> antmas, yup
445: [22:07:15] <antmas> simon_w: easy move over?
446: [22:07:42] <simon_w> Nope :p
447: [22:07:52] <simon_w> Don't ship your passport, it's a bad idea(tm)
448: [22:08:56] <antmas> lol fail
449: [22:08:59] <antmas> that sucks
450: [22:09:17] <simon_w> Yeah
451: [22:09:48] <simon_w> Wanna contribute to the "Get me married" fund now that $1500 of it went towards new flights and passport?
452: [22:10:25] <antmas> just have a cheap wedding on an island
453: [22:10:31] <antmas> that's our plan :D
454: [22:11:13] <simon_w> Well, our main expense is going to be photographers
455: [22:11:17] <simon_w> Venue is free :D
456: [22:11:37] * Pyromanik has joined #silverstripe
457: [22:11:49] <antmas> yeah our venue is at the cost of a website rebuild :P
458: [22:12:02] <antmas> and yup, photographer is crazy expensive
459: [22:13:08] <antmas> I think ours is gonna be like at least 3k
460: [22:16:25] <spronk> sick
461: [22:16:55] * spronk quit (Read error: Connection reset by peer)
462: [22:17:38] * gelignite quit (Quit: http://bit.ly/nkczDT)
463: [22:17:41] <simon_w> 3k's the lower end of what we're looking at
464: [22:18:04] * spronk has joined #silverstripe
465: [22:19:33] <antmas> simon_w: seriously? anything over that I'd say you're getting ripped off
466: [22:19:49] <antmas> 4k max
467: [22:20:01] <simon_w> antmas, it's usually proportional to the quality of the photos
468: [22:20:06] <antmas> after that your just paying for the photographers dopey artist opinion
469: [22:20:08] <simon_w> Plus, an album's a grand
470: [22:20:58] * anselmdk quit (Quit: anselmdk)
471: [22:22:04] <VRoxane> Good evening ! Anybody knows how to manage search filters to get a good search on ranges ? (A price range for instance) I have min and max fields, and min and max criteria, but I'm stuck with the filters : /
472: [22:22:16] <antmas> hah, fixed my search issue
473: [22:22:28] * antmas spins
474: [22:22:44] <simon_w> VRoxane, are you using a SearchContext?
475: [22:22:50] <VRoxane> yes
476: [22:23:20] <VRoxane> simon_w do you wanna see a sspaste ?
477: [22:23:44] <simon_w> VRoxane, probably. Been a while since I've done anything with SearchContext
478: [22:24:59] <UncleCheese_> who's good with REST?
479: [22:25:04] <VRoxane> http://www.sspaste.com/paste/show/535d80a1cf6ab
480: [22:25:13] <simon_w> Who's good with metaquestions?
481: [22:26:18] * travis-ci has joined #silverstripe
482: [22:26:18] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2384 (3.1 - 07f4f63 : Mateusz U): The build passed.
483: [22:26:18] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/e2f300143808...07f4f6372996
484: [22:26:18] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23891675
485: [22:26:18] * travis-ci has left #silverstripe
486: [22:26:59] <UncleCheese_> don't cheap out on your photographer.. we made that mistake, and we were really, really sorry
487: [22:27:14] <UncleCheese_> we ended up "redoing" our wedding a year later with a pro
488: [22:28:01] <antmas> UncleCheese_: did you just get a friend to do it?
489: [22:28:14] <UncleCheese_> antmas: yeah :(
490: [22:28:22] <UncleCheese_> threw him 5 bills
491: [22:28:31] <antmas> UncleCheese_: dang
492: [22:28:32] <simon_w> VRoxane, are you using 3.1.4?
493: [22:28:45] <spronk> sigh @ wedding photographers
494: [22:28:46] <simon_w> UncleCheese_, don't get a friend to do it :p
495: [22:28:49] <simon_w> Even if they're a pro
496: [22:28:53] <VRoxane> Ho no sorry, I'm having trouble with an existing website
497: [22:28:57] <antmas> I do have a friend who is exceptional with photography (she did a friends wedding recently) but I don't like her style
498: [22:28:59] <ss23> 09:09:13 < Stomach> ss23 should know lots more about this!
499: [22:29:01] <ss23> KITTENS
500: [22:29:01] <UncleCheese_> but then i ended up doing a website for a really good photog, and he traded an equal amount of his time for the website
501: [22:29:08] <ss23> Bitches *love* kittens
502: [22:29:08] <spronk> just get a bunch of disposable cameras
503: [22:29:11] <spronk> give them to your guests
504: [22:29:19] <UncleCheese_> and so a year later, we both put our outfits back on, went back to the venue, and just redid it all
505: [22:29:23] <spronk> and tell them to get creative!
506: [22:29:23] <UncleCheese_> it was really fun
507: [22:29:24] <VRoxane> It's a 2.x
508: [22:29:48] <UncleCheese_> my wife got to lay down in the mud in her wedding dress
509: [22:29:58] <UncleCheese_> not like we're ever going to use it again :)
510: [22:30:13] <UncleCheese_> we did the disposable cameras, too, but those photos were shit
511: [22:30:21] <antmas> most wedding photos these days are waaaaaaaaaay too hipster or silly nerd culture
512: [22:30:23] <UncleCheese_> there's only so many pictures of dicks that you can take
513: [22:30:39] <simon_w> VRoxane, and what's not working?
514: [22:30:41] <UncleCheese_> i mean, a few dozen, fine, I can deal with that..
515: [22:30:47] <UncleCheese_> but it was a bit excessive
516: [22:31:07] <spronk> sigh
517: [22:31:12] <spronk> you have dumb friends ;0
518: [22:31:18] <simon_w> UncleCheese_, sounds like you need better friends :p
519: [22:31:47] <antmas> who gives a dude a camera on a wedding day and DOESN'T take dic pics?
520: [22:31:48] <VRoxane> @simon_w if the lower price is within the range but the higher is not, there's no result. There shoud be, but I don't know how to do it with the filters
521: [22:32:02] <simon_w> Ah
522: [22:32:10] <spronk> far too many wedding photos look too posed and artificial
523: [22:32:24] <antmas> spronk: yeah true
524: [22:32:32] <simon_w> VRoxane, and they are separate fields?
525: [22:32:35] <antmas> spronk: with tag lines like 'such a tender moment'
526: [22:32:57] <simon_w> spronk, we're only looking at ones that do natural photos (outside of family ones)
527: [22:33:42] <VRoxane> @simon_w yes. Should I do It differently ?
528: [22:33:43] <antmas> simon_w: you should do them black and white and have just one colour showing with massive saturation
529: [22:33:52] <antmas> :P
530: [22:33:56] <simon_w> VRoxane, if they are, you'll need to do two separate filters then combine
531: [22:34:23] <simon_w> antmas, or, we could get photos that are actually good :p
532: [22:34:29] <antmas> heh
533: [22:36:01] <VRoxane> simon_w ... how ? I mean... I understand I need to use OR somewhere :D
534: [22:36:38] * spronk quit (Ping timeout: 252 seconds)
535: [22:36:48] <simon_w> VRoxane, you make two SearchContexts, don't use a limit, merge them, resort then limit
536: [22:37:28] <VRoxane> Oh OK didn't knew I could do that. I'm gonna try that, thanks
537: [22:37:54] * spronk has joined #silverstripe
538: [22:40:19] <VRoxane> Oh OK didn't knew I could do that. I'm gonna try that, thanks simon_w :) I'll keep you updated
539: [22:42:34] <VRoxane> Bonne nuit everybody ! See you !
540: [22:46:21] * VRoxane quit (Quit: Page closed)
541: [22:48:23] * travis-ci has joined #silverstripe
542: [22:48:23] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2385 (3.1 - 7188eab : Damian Mooyman): The build has errored.
543: [22:48:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/07f4f6372996...7188eab90536
544: [22:48:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23892559
545: [22:48:23] * travis-ci has left #silverstripe
546: [22:52:48] <UncleCheese_> better friends? My friends took great pictures. it was my relatives that couldn't keep the camera out of their pants
547: [22:54:04] <Stomach> relatives are the worst
548: [22:54:15] <simon_w> Most of my relatives aren't being invited
549: [22:55:39] <ss23> Garage wedding!
550: [22:56:11] <ss23> 10:30:24 < UncleCheese_> there's only so many pictures of dicks that you can take
551: [22:56:14] <ss23> srsly?
552: [22:56:17] <ss23> :P
553: [22:56:29] <ss23> I'll have to remember...
554: [22:56:46] * Colin[pi] has joined #silverstripe
555: [22:56:49] <ss23> I blame Colin[pi]
556: [22:56:50] <ss23> ohshit
557: [22:56:56] <ss23> um
558: [22:56:57] <ss23> hi Colin[pi]
559: [22:56:57] <ss23> :)
560: [22:57:31] * zipp has joined #silverstripe
561: [22:57:39] * zipp is now known as zippy__
562: [22:57:42] <zippy__> Morning
563: [22:58:27] <simon_w> Gah dammit, stupid SMS based 2FA
564: [23:04:40] <Colin[pi]> D: what did I do now?
565: [23:06:52] <zippy__> wonder what happened to this idea… https://groups.google.com/forum/#!searchin/silverstripe-dev/directory$20layout/silverstripe-dev/DndIpQ26F7M/0tFHkpqcRmwJ
566: [23:07:08] <zippy__> would be great for something to change, it makes me feel dirty having the modules all manged in with the other folders
567: [23:08:51] <Colin[pi]> zippy__: I did at first too, but I've now accepted it as the "SS way"
568: [23:08:57] <Stomach> is it easy to put a button action into a gridfield?
569: [23:09:28] <ss23> zippy__: It only makes you feel dirty because of how composer does it
570: [23:09:29] <ss23> :P
571: [23:09:45] <zippy__> ss23: I don't install via composer...
572: [23:09:51] <Stomach> hah!
573: [23:09:53] <zippy__> ss23: btw, where is 3.1.5?
574: [23:09:54] <ss23> WHATEVER :O
575: [23:09:58] <ss23> Uh
576: [23:10:01] <ss23> Do you want a 3.1.5?
577: [23:10:09] <Stomach> yes please
578: [23:10:11] * zippy__ wants all the things
579: [23:10:14] <Stomach> higher numbers better
580: [23:10:17] <ss23> XD
581: [23:10:18] <antmas> 3.2 pls
582: [23:10:18] <ss23> Okay okay
583: [23:10:21] <ss23> Well...
584: [23:10:28] <ss23> I hear that there will be a release coming up
585: [23:10:29] <ss23> :P
586: [23:10:34] <antmas> :O
587: [23:10:43] <Colin[pi]> SS4!
588: [23:10:48] <Colin[pi]> you heard it here first, folks
589: [23:10:51] <Colin[pi]> ;)
590: [23:10:53] <ss23> XD
591: [23:10:53] <antmas> confirmed
592: [23:10:54] <zippy__> ss23: Also, drop the yaml? I have been using it, but still think whats the point when we have _config.php and yml as well....
593: [23:11:07] <zippy__> Is there ever goign to be a time when there is no _config.php?
594: [23:11:09] <ss23> zippy__: You should move all config options to .yml if possible
595: [23:11:13] <antmas> yml is faster blah blah blah
596: [23:11:22] <ss23> zippy__: No, because you'll always need to do complex confg requirements in config.php
597: [23:11:31] <zippy__> sooo….. whats the point
598: [23:11:34] <ss23> I sincerly hope that YML configs never become turing complete
599: [23:11:34] <ss23> :P
600: [23:11:37] <ss23> zippy__: In what?
601: [23:11:47] <zippy__> why have two config systems
602: [23:12:09] <simon_w> Because over engineering is the SS way!
603: [23:12:11] <ss23> zippy__: yml is fast but not turing complete, so you can't do complex config in it
604: [23:12:37] <zippy__> so why have it?
605: [23:12:59] <ss23> zippy__: Which?
606: [23:13:06] <ss23> Which one do you think is the useless one?
607: [23:13:23] <antmas> if you still need config, why use yml as well?
608: [23:13:24] * gelignite has joined #silverstripe
609: [23:13:24] <simon_w> "yml is fast"
610: [23:13:25] <simon_w> (cough, couch, 3.0, couch)
611: [23:13:26] <zippy__> yaml, jsut look at this awesomeness… http://pastebin.com/VFzp4tbf
612: [23:13:37] <ss23> antmas: yml faster
613: [23:13:43] * willbarker has joined #silverstripe
614: [23:13:45] <zippy__> put a couple of those in your yaml config and it just blows ya mind, you can't easily skim that
615: [23:13:48] <antmas> I'd rather wait until it was turing complete
616: [23:13:54] <ss23> hahaha antmas
617: [23:13:57] <ss23> It wouldn't be fast at that point
618: [23:13:57] <ss23> :P
619: [23:13:59] <antmas> :P
620: [23:14:15] <simon_w> ss23, yml is faster is why 3.0 is such a speed demon, right?
621: [23:14:21] <ss23> >3.0
622: [23:14:21] <ss23> pls
623: [23:14:24] <antmas> but why introduce another config system when the other is still needed in most situations?
624: [23:14:24] <ss23> run latest
625: [23:14:35] <ss23> if OSX is such a good OS, why does the first version ever suck?
626: [23:14:52] <ss23> antmas: YML will fit almost all cases people have, and it's faster
627: [23:15:10] <antmas> ss23: I guess
628: [23:15:13] <simon_w> No, it's cacheable. The actual YML stuff is slower.
629: [23:15:28] <ss23> Same difference
630: [23:15:34] <antmas> how much faster, really?
631: [23:15:36] <simon_w> And, even then, the cache that's used is currently way too slow
632: [23:15:37] <ss23> The end result is fasterness
633: [23:15:41] * spronk2 has joined #silverstripe
634: [23:15:43] <ss23> simon_w: Well you aim to fix that
635: [23:15:43] <ss23> :P
636: [23:15:46] <zippy__> ss23: my point is, we have YML which gets pased, and _config.php which get processed. why have both, if the _config.php is going to get process then why bother with the yml. You says it's fast and cacheable, but you could cache the _config.php
637: [23:15:58] <zippy__> It just depends on how you do it
638: [23:16:00] <simon_w> ss23, but Hamish doesn't like people making his code work :p
639: [23:16:01] <ss23> lol
640: [23:16:02] <antmas> ^^^^ this
641: [23:16:16] * gelignite quit (Client Quit)
642: [23:16:26] <ss23> zippy__: You could make the entire system faster if you used staticpublisher, but I'm 100% sure you can come up wiht reasons not to use it exclusivly, right?
643: [23:16:29] <ss23> :P
644: [23:17:12] <ss23> simon_w: Yeah, no solution for *that* problem I can think of
645: [23:17:12] <ss23> :P
646: [23:17:24] <simon_w> Yay, no more GST on any of my VPSs!
647: [23:17:29] <ss23> Yay!
648: [23:17:32] <ss23> AU 4 LYFE
649: [23:17:33] <ss23> :D
650: [23:18:28] <Colin[pi]> simon_w: lol, what, you didn't switch hosting?
651: [23:18:46] <simon_w> Colin[pi], please, AU hosting is even more expensive than NZ
652: [23:18:54] <Colin[pi]> I know
653: [23:18:59] <Colin[pi]> that's why I use linode
654: [23:19:00] <Colin[pi]> ;D
655: [23:19:19] <zippy__> Colin[pi]: would be nice if linode had an AU dc...
656: [23:19:19] <Colin[pi]> how do these guys compare? www.mammoth.net.au
657: [23:19:29] <Colin[pi]> zippy__: yes, yes it would :(
658: [23:19:29] <zippy__> Colin[pi]: Up upgrade to their new servers yet?
659: [23:19:37] <simon_w> zippy__, the main reason for having the two config systems is so you can have your static config stuff separate from your dynamic, which can let you cache things and (in theory) make it faster
660: [23:19:46] <simon_w> Why YAML was picked though is beyond me
661: [23:19:48] <Colin[pi]> zippy__: all upgraded, using their JP DC
662: [23:20:22] <zippy__> Colin[pi]: Didn't realise they had done the JP. I also use there JP one but ping times between it and the West coast are on par / sometimes a little slower for NZ
663: [23:20:30] <antmas> how does one use json_decode on a field when passing it to a template?
664: [23:20:31] <zippy__> simon_w: To be more like RoR?…..!
665: [23:20:40] <antmas> I'm getting some json heebyjeebies
666: [23:21:02] <zippy__> antmas: use a method on the page which does return json_decode(.. perhaps?
667: [23:21:14] <Colin[pi]> zippy__: wait, I might be confused.. which new servers do you mean?
668: [23:21:28] <zippy__> Colin[pi]: They released now hardware a week ago, ssd now
669: [23:21:32] <zippy__> *new hardware
670: [23:21:41] <Colin[pi]> ohh no, I'm not using that yet
671: [23:21:42] <antmas> zippy__: how would that look exactly?
672: [23:22:12] <Pyromanik> So just coz I might maybe do some shit... it should be on master right?
673: [23:22:16] <Pyromanik> or 3.1 :<
674: [23:22:19] <Pyromanik> I can never keep up
675: [23:23:15] <Pyromanik> [11:11] <zippy__> why have two config systems
676: [23:23:19] <Pyromanik> because one is legacy
677: [23:23:24] <Pyromanik> but still needed
678: [23:23:43] <zippy__> Pyromanik: well, aparently one is for dynamic...
679: [23:23:44] <Pyromanik> because can't make method calls from yml. Not that one should ever need many/any of those, but yeh.
680: [23:24:00] <Pyromanik> zippy__, php gets executed every time. yml gets cached and boom.
681: [23:24:03] <antmas> can't really call it legacy if it's still needed
682: [23:24:06] <Colin[pi]> Pyromanik: back to the regular nick eh?
683: [23:24:07] <antmas> imo
684: [23:24:09] <Pyromanik> thus, faster.
685: [23:24:13] <Pyromanik> Colin[pi], no, at home.
686: [23:24:17] <Colin[pi]> OIC
687: [23:24:29] <simon_w> Except reading from it is still rather slow.
688: [23:24:34] <simon_w> Thanks, Cache_LRU
689: [23:24:51] <Pyromanik> antmas, legacy in most aspects, still has other uses though.
690: [23:25:15] <Pyromanik> so yeah, 90% legacy, 2% needed, 8% fallback.
691: [23:25:16] <zippy__> Pyromanik: but is it really? Does the website REALLY get any speed benifit if your processing the YAML but still checking and processing all the _config.php ? If I have a website setup, and move the config to yaml will I see any change in performance?
692: [23:25:33] <Pyromanik> yes
693: [23:25:38] <Pyromanik> fact.
694: [23:25:59] <Colin[pi]> it would be fairly minimal I would think?
695: [23:26:08] <Pyromanik> you may not notice it, but it's there. The same reason people have 3 different versions of their fucking css.
696: [23:26:40] <zippy__> at what point? if I want to test this to prove it right / wrong, how many config items do I need? Like 20 data extensions and a bunch of if/except whatever config things
697: [23:26:51] <Pyromanik> best practice nerd chobs get well wound up about this shit.
698: [23:27:07] * spronk2 quit (Quit: spronk2)
699: [23:27:10] <zippy__> because if the change is only 10ms what a waste of time
700: [23:27:12] <Pyromanik> zippy__, I don't really get what you're trying to disprove.
701: [23:27:15] * willbarker quit (Quit: willbarker)
702: [23:27:17] <Pyromanik> no, not really.
703: [23:27:22] <zippy__> why do we need two seperate config systems
704: [23:27:24] <Pyromanik> there was a need for it.
705: [23:27:29] <Pyromanik> plain and simple.
706: [23:27:36] <zippy__> its faster, but only by a tiny bit
707: [23:27:47] <zippy__> was it because the config was getting ugly?
708: [23:27:52] <Pyromanik> apparently enough to warrant a rethink of the config system as a whole.
709: [23:27:55] <Stomach> zippy__ - the average user won't need php configuration
710: [23:28:04] <antmas> zippy__: I have the field on a form, so would I try this here?
711: [23:28:13] <antmas> on the form?*
712: [23:28:20] <Stomach> its there for complicated usage, but should be seen as a secondary system
713: [23:28:30] <simon_w> Pyromanik, the need to rethink was because Hamish didn't like the existing one
714: [23:28:57] <Pyromanik> simon_w, as far as I understand it it was due to some kind of need though, like some client site that was becoming an issue due to it or something.
715: [23:28:58] <Pyromanik> idk.
716: [23:29:18] <simon_w> Pyromanik, nah, wasn't "pure" enough
717: [23:29:27] <Pyromanik> sure it may have been overkill to do what has been done, but I like the config being separate to php, same like view layers are separate.
718: [23:29:57] <Colin[pi]> do y'all mess around in config that much? I seriously don't need to dick about it in very often
719: [23:29:58] <Pyromanik> plus the ability to extract into many different files is fantastic, meaning one can ignore some dev/live differences.
720: [23:30:15] <Pyromanik> and the yml is kinda easier to read.
721: [23:30:28] <simon_w> But harder to write
722: [23:30:32] <Pyromanik> _config.php is slowly becoming obsolete.
723: [23:30:36] <Pyromanik> simon_w, not particularly.
724: [23:30:46] <simon_w> Pyromanik, ever used a tab?
725: [23:30:53] <Pyromanik> I knew fuck all about yml before SS introduced it, and it took me 6 months or so to start using it.
726: [23:30:58] <Pyromanik> but once I did... it's great.
727: [23:31:10] <Pyromanik> same like the public -> private move.
728: [23:31:24] <Colin[pi]> Pyromanik: well that's just good practice
729: [23:31:33] <Pyromanik> A bit of an overkill in terms of build time, but yeah, what Colin[pi] said.
730: [23:31:46] <Pyromanik> Colin[pi], the issue with it though is how to parse the config defaults out.
731: [23:32:10] <Pyromanik> with public you can access. with private... well php is bascially calling php to parse the files and translate them into php.
732: [23:32:18] <Colin[pi]> aye
733: [23:32:22] <Pyromanik> Yeah.
734: [23:32:24] <Pyromanik> think about it.
735: [23:32:39] <Pyromanik> The things are private. You cannot access them outside the class.
736: [23:32:48] <Colin[pi]> can you get at them with reflection?
737: [23:32:49] <Pyromanik> at all, ion
738: [23:32:54] <simon_w> Colin[pi], yes
739: [23:33:00] <Colin[pi]> k thought as much
740: [23:33:24] <Pyromanik> so basically you're making php look at php to write php.
741: [23:33:31] <Colin[pi]> YO DAWG
742: [23:33:34] <Pyromanik> yep.
743: [23:33:43] <Pyromanik> phpception, whatever.
744: [23:33:55] <Colin[pi]> *BRAMMMMMMMMMP*
745: [23:34:08] <Pyromanik> anyway, I think it's half past midnight. I'd better go to bed.
746: [23:34:21] <zippy__> Pyromanik: nite!
747: [23:34:28] <Pyromanik> so to answer question, it's master I should commit to, right?
748: [23:34:34] <Pyromanik> PR to, whateves
749: [23:34:36] * zippy__ now has two things on his list
750: [23:34:42] <Pyromanik> ??
751: [23:34:48] <zippy__> 1 - Sort ouf the flush
752: [23:34:51] <zippy__> 2 - Fix the config
753: [23:35:00] <simon_w> Pyromanik, for new features, yes
754: [23:35:05] <simon_w> bug fixes and stuff go in 3.1
755: [23:35:10] <Pyromanik> cool, ta simon_w.
756: [23:35:16] <Colin[pi]> nn d00d
757: [23:35:24] <Pyromanik> I'm not sure what I'll work on first, but I'll hopefully get there.
758: [23:35:28] <Pyromanik> eventually
759: [23:35:38] <simon_w> Bah, Caitlin's making me get out of bed
760: [23:35:46] <Pyromanik> hahaha, welcome to Aus!
761: [23:35:48] <Pyromanik> ish
762: [23:35:57] <Pyromanik> I can't really say welcome because I'm neither there nor that welcoming.
763: [23:36:06] <Pyromanik> but yeah, gg chap :>
764: [23:36:19] <Pyromanik> you get out of bed I'll go to :P
765: [23:36:21] <Pyromanik> ciao
766: [23:36:30] <Pyromanik> how'd you wake up so f'n early ss23?
767: [23:36:54] <Colin[pi]> simon_w: welcome to the ball and chain
768: [23:37:01] <antmas> I wake up at 6 :D
769: [23:37:10] <Colin[pi]> antmas: what is this madness??
770: [23:37:12] <simon_w> Colin[pi], that's for later ;)
771: [23:37:25] <Colin[pi]> simon_w: nope, it was attached the moment you arrived ;P
772: [23:37:38] <antmas> I get to work early so I can finish early :D
773: [23:38:00] <Stomach> i get to work early and finish late
774: [23:38:04] <Stomach> what is this sorcery!
775: [23:38:07] <antmas> lol
776: [23:38:27] <Colin[pi]> I struggle to get to work by 9 and I work from a home office!
777: [23:38:30] <ss23> Pyromanik: Hmm? I woke up at like 9am
778: [23:38:31] <ss23> :(
779: [23:38:33] <antmas> ss23: got a front end person yet?
780: [23:38:35] <ss23> I struggled this morning especially
781: [23:38:37] * babak quit (Quit: Connection closed for inactivity)
782: [23:38:42] <ss23> antmas: We have more front enders than backenders here
783: [23:38:43] <ss23> :S
784: [23:38:51] <antmas> ss23: -_-
785: [23:38:53] <ss23> Or were we looking for one? :O
786: [23:39:18] * antmas reaches up to slap ss23
787: [23:39:21] <antmas> o/
788: [23:39:29] <Colin[pi]> <+ss23> antmas: We have more front enders than backenders here -- there's a euphemism there somewhere, I just know it
789: [23:39:33] <zippy__> Colin[pi]: I hear ya! :) So easy to sleep in, especially when the wife doesn't work now
790: [23:40:05] <antmas> zippy__: yeah that will end pretty soon ;P
791: [23:40:20] <Colin[pi]> zippy__: yeah my gf is on hols from Uni, and it's so warm in bed and so cold out of the bed ;P
792: [23:40:35] <Colin[pi]> grumble grumble Canberra
793: [23:40:49] <Colin[pi]> hope you like this bollocks of a place, simon_w
794: [23:41:01] <zippy__> antmas: nop nop nop nop, headphones no, no baby crying
795: [23:41:30] <antmas> zippy__: ah yes
796: [23:41:34] <antmas> the headphones trick
797: [23:41:47] <Pyromanik> ss23, yeah but you went to bed at about 4am!
798: [23:42:08] <Pyromanik> zippy__, I believe it's "noop"
799: [23:42:08] <zippy__> my office is detacted from the house as well, so… got that going for me
800: [23:42:56] <zippy__> possibl
801: [23:42:58] <zippy__> y
802: [23:43:32] <Pyromanik> Righto, ciao chaps!
803: [23:45:42] <antmas> anyone have some RAM they don't need?
804: [23:46:49] <Colin[pi]> antmas: yes, but it's DDR400
805: [23:47:23] <zippy__> I wonder when we'll be putting $db and $has_many etc into yaml configs too...
806: [23:47:33] <antmas> :(
807: [23:47:46] <antmas> I just need some 800
808: [23:47:59] <Colin[pi]> zippy__: yeah I'm kinda fond of the static config in the model classes
809: [23:48:13] <Colin[pi]> antmas: CHICKS DIG RAM
810: [23:51:06] <antmas> If I want to decode some json from a field, so that it outputs html to a template, where in code am I doing this json_decode madness?
811: [23:52:22] <Stomach> anyone got an example of putting a button with an action into a gridfield?
812: [23:52:29] <antmas> the form? the DO? the field itself?
813: [23:52:35] <Stomach> the form action
814: [23:52:51] <Stomach> $stuff = json_decode($data['FieldName']);
815: [23:52:56] <antmas> :O
816: [23:53:01] <antmas> nice, thanks Stomach
817: [23:53:17] <Stomach> make sure to check if its set first though
818: [23:53:24] <antmas> true
819: [23:53:32] <Stomach> you can probably get it off the form a nicer way but I always just do if isset then blah
820: [23:56:58] <zippy__> I am rendering a template with return $this->customise($data)->renderWith('ProductPage'); where $data is an array of array('Product' => $Product', 'SiteConfig' => SIteConfig:: …); is there a way I can pass the $Product direct to the template, so I dont have to refer to it as $Product.Name (without using with?)
821: [23:57:16] <zippy__> antmas: get it sorted?
822: [23:57:53] <Stomach> return $Product->customise()->renderWith()
823: [23:58:35] <zippy__> wooo, lets see
824: [23:59:14] * simon_w|air has joined #silverstripe
825: [23:59:23] <antmas> Stomach: hmmm that gives undefined index
826: [23:59:34] <antmas> even though that field is defined
827: [23:59:41] <Stomach> yeah its not a controller, whoopsy
828: [23:59:43] <zippy__> antmas: json_code(…, true);
829: [23:59:51] <antmas> ah whiips
830: [23:59:51] <zippy__> *decode
831: [23:59:55] <antmas> whoops*
832: [23:59:59] <zippy__> otherwise it's $data->FieldName

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