#silverstripe IRC Log

IRC log for 17 September 2013

All timestamps are in UTC.

1: [00:00:01] <ss23> Just not installed by default
2: [00:00:04] <ss23> fuck
3: [00:00:07] <ss23> you know the client I'm working on
4: [00:00:08] <ss23> ;_;
5: [00:00:09] <ajmitch> http://www.php.net/manual/en/filesystem.configuration.php#ini.auto-detect-line-endings
6: [00:01:44] <ajmitch> 12, must be lunch time
7: [00:02:52] * liam_ has joined #silverstripe
8: [00:02:57] * digitaldesign has left #silverstripe
9: [00:03:16] * liam_ is now known as Guest97411
10: [00:03:27] <Guest97411> is there a class like DataExtension that can be used to add functionality to FormFIeld?
11: [00:04:15] <simon_w> Extension
12: [00:06:29] <Guest97411> simon_w: cheers
13: [00:06:32] * DigNZ has joined #silverstripe
14: [00:06:33] * DigNZ quit (Remote host closed the connection)
15: [00:06:42] <Colin[pi]> zomg i made an ajax widget thingy
16: [00:06:49] <Colin[pi]> it actually seems to be working :o
17: [00:06:52] * DigNZ has joined #silverstripe
18: [00:07:55] * Guest97411 quit (Quit: Guest97411)
19: [00:09:11] <simon_w> Bah, need to have some concept of a primary key on a view for our ORM to be able to issue an update
20: [00:11:27] <guzzlefry> Why would you have a table without primary keys!?
21: [00:11:40] <guzzlefry> oh wait, you said view :P
22: [00:15:04] <spronk> o_O
23: [00:16:07] * mobiusnz quit (Quit: Leaving.)
24: [00:24:10] * cloph quit (Read error: Connection reset by peer)
25: [00:27:42] * cloph_away has joined #silverstripe
26: [00:30:17] * mobiusnz has joined #silverstripe
27: [00:36:02] * Bollig|DesignCty has joined #silverstripe
28: [00:36:53] * cloph_away quit (Ping timeout: 248 seconds)
29: [00:39:56] * cloph_away has joined #silverstripe
30: [00:45:24] * cloph_away quit (Ping timeout: 240 seconds)
31: [00:48:44] * cloph_away has joined #silverstripe
32: [00:58:14] <atmos> oh god the reviews for GTA5
33: [00:58:22] <Colin[pi]> positive or negative?
34: [00:58:23] <atmos> now I HAVE to get it
35: [00:58:36] <atmos> 10/10 pretty much everywhere
36: [00:59:18] <guzzlefry> Game Trailers only gave it a 9.8 out of 10
37: [00:59:19] * Stomach quit (Quit: Leaving.)
38: [00:59:21] <guzzlefry> :P
39: [01:00:16] <atmos> guzzlefry: XD
40: [01:01:46] <simon_w> Hello sun!
41: [01:01:57] <guzzlefry> My copy is going to show up right before class. :/ I won't be happy.
42: [01:02:36] <atmos> guzzlefry: heh, I've yet to decide what games to trade for it - if there are even copies left
43: [01:02:58] <guzzlefry> Should be plenty of copies...well.
44: [01:03:02] <guzzlefry> You're not in the U.S. are you?
45: [01:03:04] <simon_w> You mean it's not digitally distributed? And it got a 10? Stupid.
46: [01:03:37] <guzzlefry> Why would distribution method have any bearing on the quality of the game?
47: [01:04:44] <Colin[pi]> because simon_w has to find something to complain about
48: [01:04:47] <simon_w> Because how you get something is also important
49: [01:05:30] <atmos> guzzlefry: nope, NZ. It's just the only store that has it discounted and trades is low on copies
50: [01:05:36] <atmos> in my local area
51: [01:05:41] <simon_w> And since when does a review have anything to do with quality? :p
52: [01:05:50] <guzzlefry> most of the time :P
53: [01:05:57] <atmos> simon_w: because Too Human
54: [01:07:46] * Stomach has joined #silverstripe
55: [01:15:43] * spronk2 has joined #silverstripe
56: [01:26:30] <simon_w> ss23, lunch?
57: [01:29:22] * Peavers quit (Ping timeout: 268 seconds)
58: [01:32:07] <simon_w> Too late!
59: [01:32:43] * simon_w quit (Quit: Leaving)
60: [01:35:19] <ss23> :<
61: [01:35:20] * ss23 cries
62: [01:35:23] <ss23> I WAS BUSSYY
63: [01:35:25] <ss23> BUUUUSSSSYYY
64: [01:37:25] <Colin[pi]> no noms 4u!
65: [01:37:32] <atmos> -_-
66: [01:37:39] * spronk2 quit (Quit: spronk2)
67: [01:41:27] <ss23> :<
68: [01:49:34] * SightUnseen has joined #silverstripe
69: [01:49:42] * SightUnseen has left #silverstripe
70: [01:54:58] <ss23> Noms time for me
71: [01:54:58] <ss23> :D
72: [01:55:03] <ss23> HOW MANY CHEESEBURGERS
73: [01:55:05] <ss23> atmos: noms
74: [01:55:06] <ss23> :3
75: [01:55:08] * ss23 runs away
76: [01:55:26] <atmos> -_o
77: [01:55:53] * liam_ has joined #silverstripe
78: [01:56:17] * liam_ is now known as Guest50071
79: [02:01:50] * Peavers has joined #silverstripe
80: [02:01:58] * Peavers quit (Client Quit)
81: [02:03:28] * ss23 noms his mcdonalds ^.^
82: [02:05:52] <Pyromanik> "Dearest API developer: When I submit a timestamp, everything posts ok and the new record is created. However upon receiving this new record back, the timestamp is -200 seconds. This is an issue as we only take a date for date of birth and -200 seconds rolls it back 4 mins into the day before making the DOB the day before the user was born."
83: [02:08:57] * simon_w has joined #silverstripe
84: [02:12:28] <Guest50071> whats the best way to use an extension to add a parameter to an objects constructor?
85: [02:12:50] <simon_w> You can't
86: [02:13:40] <simon_w> extensions can only add methods or hook in to existing hooks, you can't change or override methods
87: [02:15:17] <Guest50071> simon_w: ok thanks
88: [02:16:49] <Pyromanik> response: "A valid timestamp is the number of seconds since 1/1/1970"
89: [02:16:51] <Pyromanik> OH RLY
90: [02:17:04] <Pyromanik> FUCK, DIDN'T KNOW, THX FOR THAT
91: [02:17:55] <simon_w> Not on Windows!
92: [02:18:29] <Pyromanik> simon_w: yes on windows.
93: [02:18:35] <Pyromanik> posting to a windows machine
94: [02:18:45] <simon_w> Window's timestamps start from 1900
95: [02:19:01] <Pyromanik> simon_w: good thing we're not using windows timestamps then :P
96: [02:19:07] <Pyromanik> JSON parser
97: [02:19:17] <Pyromanik> JS timestamp uses unix epoch
98: [02:19:36] <Pyromanik> well
99: [02:20:11] <Pyromanik> technically MS's implementation of JSON parser accepts dates in format: \/Date(unixtimestamp)\/
100: [02:22:16] * SightUnseen has joined #silverstripe
101: [02:22:18] * SightUnseen has left #silverstripe
102: [02:33:07] * simon_w changed the topic to 'Welcome to #silverstripe discussion - IRC logs available: http://ss.org.nz/logs || Ask your question, don't ask about asking your question || 12th of Sept 2013: We have security releases for 2.4, 3.0 and 3.1. See http://ss.org.nz/2.4.12, http://ss.org.nz/3.0.6rc2 and http://ss.org.nz/3.1.0rc2 || Development mailing list: http://ss.org.nz/ss-dev'
103: [02:36:46] <ss23> Is there a reason sake doesn't look in __DIR__ for the CLI script?
104: [02:37:56] <simon_w> It does?
105: [02:38:15] <ss23> I don't think so
106: [02:38:32] <simon_w> https://github.com/silverstripe/silverstripe-framework/blob/2.4/sake#L20-L23
107: [02:38:35] <simon_w> even 2.4 did it
108: [02:38:50] <ss23> That's the current working directory, not __DIR__?
109: [02:38:58] <ss23> current working directory isn't the same as the same place sake is
110: [02:39:16] <simon_w> https://github.com/silverstripe/silverstripe-framework/blob/2.4/sake#L14-L16 then
111: [02:40:09] <ss23> simon_w: Doesn't exist in 3.1/master that I can see?
112: [02:40:25] <simon_w> exact same lines in 3.1
113: [02:40:51] <simon_w> Not existing in master is willr's fault
114: [02:40:54] <ss23> simon_w: Not same line numbers, I preusme?
115: [02:40:57] <ss23> oh
116: [02:40:59] <ss23> Im looking at master
117: [02:41:07] <simon_w> Exact same line numbers in 3.1 :p
118: [02:41:14] <ss23> my bad, was looking at master
119: [02:41:16] * ss23 glares at willr
120: [02:41:36] <simon_w> Though, if you're already using the full path, just call cli-script yourself
121: [02:41:40] <ss23> hmm
122: [02:41:42] <ss23> This looks to be on master
123: [02:42:00] <ss23> So two issues: a) this site is on master, and b) master sake is broken
124: [02:43:00] <ss23> simon_w: Did you want me to bug report / fix it, or did you want to?
125: [02:43:12] <simon_w> Why would I? :p
126: [02:43:21] <ss23> Because you love work! :D
127: [02:43:45] <simon_w> Work, that thing that has me completely ignoring this channel :p
128: [02:44:20] <ss23> Not completely! You didn't ignore me!
129: [02:44:21] * ss23 snuggles simon_w
130: [02:44:43] <simon_w> That's because I'm not completely focused on my work given that I just had lunch
131: [02:44:58] <ss23> :D
132: [02:45:00] <ss23> Me either!
133: [02:45:40] <ss23> simon_w: Wanna merge https://github.com/silverstripe/silverstripe-framework/pull/2426 when the tests have run? ^.^
134: [02:47:12] <simon_w> Want me to break that first?
135: [02:47:45] <ss23> ;_;
136: [02:47:47] <ss23> In what sense?
137: [02:48:16] <simon_w> Do you want me to tell you how it's broken?
138: [02:48:26] <ss23> ... yes? ;_;
139: [02:48:36] <ss23> I just copied the previous branch
140: [02:48:37] <simon_w> What if there's a space in the path?
141: [02:49:06] <ss23> simon_w: If I fixed *that* it would be a backwards incompatible change
142: [02:49:11] <ss23> This is a bug fix, not a feature request
143: [02:49:11] <ss23> ^.^
144: [02:49:25] <simon_w> And your bug fix has a bug in
145: [02:49:37] <ss23> My bug fix is specifically designed to match previous behaviour
146: [02:49:45] <ss23> If you wanna fix it properly, do a PR against 3.0
147: [02:49:46] <ss23> :P
148: [02:49:49] <simon_w> So? Still broken
149: [02:49:59] <ss23> So I don't care and it'll be merged anyway!
150: [02:49:59] <ss23> :D
151: [02:50:20] <ss23> Keeping the same amount of breakage with a PR is fine
152: [02:50:22] <ss23> Increasing it is not!
153: [02:50:47] <simon_w> It's not getting merged now :p
154: [02:52:07] <simon_w> "I was too lazy to do it properly, someone else should"
155: [02:52:13] <simon_w> :p
156: [02:53:01] <ss23> "I wanted ot retain the previous behaviour to have less chance of introducing regressions"
157: [02:53:17] <ss23> *I'm* not going to be the one to change behaviour that's existed since 2.4
158: [02:53:30] <simon_w> Yes, you're using fancy words to say you're too lazy to fix it
159: [02:54:05] <ss23> Not too lazy, but not willing to risk breaking it more
160: [02:54:06] <Pyromanik> oh hooray. A permissive parser.
161: [02:54:12] <Pyromanik> "I WANT A TIMESTAMP"
162: [02:54:12] <Pyromanik> ok
163: [02:54:14] <ss23> I could do it, heck, I've spent more time discussing it than it would take to fix it
164: [02:54:17] <guzzlefry> guys help!
165: [02:54:19] <ss23> I'm just not willing to be the one to break it
166: [02:54:26] <ss23> (That is, break it worse)
167: [02:54:26] <Pyromanik> give it one in seconds - gives you back a slightly maladjusted time.
168: [02:54:35] <Pyromanik> give it a time in milliseconds - gives you back exact time.
169: [02:54:56] <Pyromanik> Y U ADJUST TIME, WHAT IF I'M JUST REALLY OLD!?
170: [02:55:11] <guzzlefry> So, I just moved database and composer installed onto the live server, only the home page works, everything else is a standard apache 404 page.
171: [02:56:03] <Pyromanik> fffff
172: [02:56:05] <Pyromanik> PHP does it too
173: [02:56:30] <Pyromanik> date() doesn't support milliseconds, but give it a timestamp in milliseconds and it adjust the date back to normal time for you.
174: [02:56:38] <Pyromanik> instead of putting it in the future like it should.
175: [02:56:50] <Pyromanik> PREDICTABILITY++
176: [02:58:21] <guzzlefry> anyone? >_>
177: [02:58:34] <Pyromanik> guzzlefry: .htaccess
178: [02:59:08] <guzzlefry> oh wait, default ubuntu install.
179: [02:59:13] <guzzlefry> I think i had to do something to apache
180: [02:59:41] <simon_w> ss23, even more broken!
181: [03:00:37] * Stomach quit (Quit: Leaving.)
182: [03:01:08] <guzzlefry> well, that helped some...
183: [03:01:16] <guzzlefry> I set AllowOverride All.
184: [03:01:39] * Stomach has joined #silverstripe
185: [03:02:45] <guzzlefry> After moving index.php to somewhere else, I just get a directory listing.
186: [03:07:58] <ss23> guzzlefry: sounds like no .htaccess?
187: [03:08:52] <guzzlefry> Ubuntu is silly and doesn't enable mod_rewrite by default. :P
188: [03:09:04] <Pyromanik> well there you go.
189: [03:09:06] <Pyromanik> Ubuntu is silly.
190: [03:09:13] <Pyromanik> WHO WOULD HAVE THOUGHT?
191: [03:09:15] <Pyromanik> o wait...
192: [03:09:18] <Pyromanik> <--
193: [03:09:23] <ss23> lol
194: [03:10:44] <Pyromanik> ss23: halp me
195: [03:10:53] <Pyromanik> I'm telling PHP to devide an int
196: [03:10:55] <ss23> I'm already battling the coredevs!
197: [03:10:59] <ss23> kk
198: [03:11:00] <Pyromanik> and it's giving me a float in return
199: [03:11:01] <Pyromanik> and I hate it
200: [03:11:02] <ss23> Yes
201: [03:11:04] <ss23> That's how math works
202: [03:11:08] <Pyromanik> no it's not!
203: [03:11:10] <ss23> lol
204: [03:11:12] <ss23> It is in PHP
205: [03:11:13] <ss23> :D
206: [03:11:21] <Pyromanik> (int)$float should NOT be 12345.345
207: [03:11:28] <ss23> It won't
208: [03:11:31] <Pyromanik> it is.
209: [03:11:55] <ss23> http://codepad.viper-7.com/NQypvV
210: [03:11:58] <ss23> looks like integer to me?
211: [03:12:03] <ss23> (int)$float will be integer
212: [03:12:14] <ss23> http://codepad.viper-7.com/uJbRLO moar integer
213: [03:12:17] <Pyromanik> 1380067200000/1000 = 2147483.647
214: [03:12:17] <ss23> ALL THE INTEGER
215: [03:12:21] <Pyromanik> thanks php
216: [03:12:24] <Pyromanik> great math.
217: [03:12:46] <ss23> lol
218: [03:12:50] <simon_w> Pyromanik, stop using 32bit
219: [03:12:52] <ss23> Pyromanik: If you care, us bcmath?
220: [03:13:06] <Pyromanik> simon_w: :<
221: [03:13:10] * iamss has joined #silverstripe
222: [03:13:15] <Pyromanik> fair comment.
223: [03:14:04] <Pyromanik> ta simon_w, nice catch.
224: [03:14:17] <Pyromanik> take note ss23, that's how a boss answers php questions.
225: [03:16:19] <iamss> Hi guys, nowadays I can feel the lower demand of freelance silverstripe projects. Would you agree?
226: [03:16:45] <Pyromanik> iamss: nowadays I can feel that there was never much demand of freelance silverstripe projects.
227: [03:17:27] <Pyromanik> Silverstripe usage is increasing greatly, thus I disagree with your statement.
228: [03:18:39] <iamss> Pyromanik: really, How do you find the ss projects
229: [03:18:59] <ss23> I work for SilverStripe now, I find the work easily :D
230: [03:19:52] <iamss> Pyromanik: I actually been looking for SS jobs on the internet unfortunately I only find few
231: [03:32:46] <guzzlefry> Does anyone here use the SMTP module?
232: [03:33:36] <Pyromanik> iamss: I work for a company that uses SS almost exclusively.
233: [03:33:46] <simon_w> "join the next Wellington SilverStripe Developer's Meetup Group"
234: [03:33:46] <simon_w> There's going to be another group?
235: [03:33:55] <Pyromanik> iamss: Yeah you only find a few, but you find more than you used to (actually probably about the same).
236: [03:33:56] <ss23> Doubtful
237: [03:34:02] <ss23> Probaby typo
238: [03:34:38] <Pyromanik> I think they mean Group Meetup, but I'm sure you knew that. I congratulate you on pointing out the ambiguity. Love it.
239: [03:34:46] <Pyromanik> gw simon_w
240: [03:34:52] <Pyromanik> keep up the good effort
241: [03:34:59] <simon_w> Well, the point out the event in the next half of the sentence
242: [03:35:09] <simon_w> " join the next Wellington SilverStripe Developer's Meetup Group as we're announcing an event soon"
243: [03:36:38] <simon_w> ss23, git Siggy to fix it already :p
244: [03:36:40] <simon_w> *get
245: [03:41:16] <ss23> simon_w: Where as it posted? :O
246: [03:41:49] <Pyromanik> meetup.com?
247: [03:42:32] <Pyromanik> http://www.meetup.com/SilverStripe-Wellington-Meetup-Group ?
248: [03:42:32] <simon_w> silverstripe.com
249: [03:42:36] <Pyromanik> oic
250: [03:42:39] <Pyromanik> nothign on meetup.com
251: [03:42:40] <Pyromanik> lol
252: [03:42:44] <simon_w> the blog
253: [03:44:35] <guzzlefry> hrm
254: [03:44:54] <guzzlefry> isn't there a quick way to add password protection to an SS site?
255: [03:44:57] <ss23> uh
256: [03:45:03] <ss23> Direct link, simon_w? Latest entry I see is CWP
257: [03:45:20] <simon_w> Yes, and it's in that
258: [03:45:57] <ss23> Oh I see...
259: [03:45:59] <simon_w> guzzlefry, BasicAuth::protect_entire_site()
260: [03:47:20] <guzzlefry> ah thanks, I knew it was something really easy. :P
261: [03:47:57] <ss23> dammit simon_w
262: [03:47:59] <simon_w> The other option, if you want the pretty SS login thing, is to change the default view thing in Settings
263: [03:47:59] <ss23> I told him
264: [03:48:07] <ss23> now everyone is like "wow ss23 is totally doing hard work, READING THE BLOG"
265: [03:48:14] <simon_w> ss23, HAHA!
266: [03:49:41] <Pyromanik> BasicAuth?
267: [03:49:48] <Pyromanik> isn't that like plaintextsillyness?
268: [03:50:19] <simon_w> So's pretty much every SS login form
269: [03:54:59] * mobiusnz quit (Quit: Leaving.)
270: [03:56:33] * iamss quit (Ping timeout: 250 seconds)
271: [04:00:15] * cloph has joined #silverstripe
272: [04:00:42] * cloph_away quit (Ping timeout: 264 seconds)
273: [04:08:33] * Guest50071 quit (Quit: Guest50071)
274: [04:09:35] * zippy__ quit (Ping timeout: 245 seconds)
275: [04:09:40] * liam_ has joined #silverstripe
276: [04:10:04] * liam_ is now known as Guest50848
277: [04:11:07] * stellalie has joined #silverstripe
278: [04:20:19] <stellalie> hello everyone
279: [04:21:35] <Colin[pi]> hiya
280: [04:22:51] * EasyCo has joined #silverstripe
281: [04:26:15] <simon_w> Bye!
282: [04:28:03] * Shrike_Finland quit (Quit: Leaving.)
283: [04:30:19] <ss23> Yay OSX
284: [04:30:24] <Colin[pi]> XD
285: [04:30:26] <ss23> PHP Fatal error: Maximum execution time of 240 seconds exceeded
286: [04:30:37] <Colin[pi]> -_-
287: [04:30:45] <ss23> >CLI
288: [04:30:47] <ss23> >hardcoded to 0
289: [04:30:51] <ss23> >explicitly set to 0
290: [04:30:54] <Colin[pi]> lollerskates
291: [04:31:02] <Colin[pi]> that's a pretty long execution time :\
292: [04:31:20] <ss23> It's a long running script
293: [04:31:26] <ss23> The important part is that IT MAKES NO FUCKING SENSE
294: [04:31:35] <Colin[pi]> what's it doing?
295: [04:33:24] <ss23> That error
296: [04:33:37] <Colin[pi]> lol
297: [04:33:44] <Colin[pi]> no what's the script supposed to be doing?
298: [04:33:49] <ss23> o.o
299: [04:33:52] <ss23> It does what it's meant to do
300: [04:33:54] <ss23> It imports a CSV
301: [04:33:57] <ss23> (a big one)
302: [04:33:57] <Colin[pi]> oic
303: [04:34:11] <Colin[pi]> how many records?
304: [04:34:48] <Pyromanik> all of them.
305: [04:34:57] <ss23> Colin[pi]: enough to take longer than 240 seconds!
306: [04:35:33] <Colin[pi]> haha
307: [04:35:36] <Colin[pi]> fair nuff
308: [04:35:54] <Colin[pi]> can you profile it ss23?
309: [04:36:00] <ss23> Colin[pi]: What for...?
310: [04:36:02] <ss23> :S
311: [04:36:14] <Colin[pi]> I DONT KNOW FOR FUN RIGHT?
312: [04:36:17] <ss23> XD
313: [04:36:21] <ss23> Colin[pi]: It's not from the web, it's from the CLI. It's *meant* to take a long time
314: [04:36:35] <Colin[pi]> yeah but... that's still a pretty god damn long time
315: [04:36:46] <ss23> Colin[pi]: No, some scripts of mine run for like 30 mins
316: [04:36:50] <Colin[pi]> :o
317: [04:36:57] <ss23> Installing software can often take ~1 hour, depending on if I compile
318: [04:37:05] <Colin[pi]> welp
319: [04:37:06] <MattSS> hrm
320: [04:37:17] <MattSS> How do you sort by a relation in SS?
321: [04:37:52] <MattSS> I thought I could do $pages = Page::get()->sort('Parent.ID ASC'); or similar, but it doesn't appear so
322: [04:42:20] <Guest50848> how can I set a checkboxfield as checked by default?
323: [04:43:02] <Colin[pi]> have the field it's mapped to set to TRUE by default
324: [04:47:17] * kerosene quit (Ping timeout: 256 seconds)
325: [04:52:38] <Guest50848> Colin[pi]: how does that work when there isn't an object yet? this is front end btw
326: [04:57:30] <Colin[pi]> ah front end
327: [04:57:53] <Colin[pi]> there is a checked attrib for it isn't there?
328: [05:06:53] * simon_w|air has joined #silverstripe
329: [05:07:23] <simon_w|air> ss23, sounds like you're using a cgi, not cli, binary :p
330: [05:10:34] <Guest50848> How can I get pages with "showInMenus" set to true? I have tried this… LeadsPage::get()->filter ('ShowInMenus = 1');
331: [05:10:52] <simon_w|air> Guest50848, ->filter('ShowInMenus', true)
332: [05:11:13] <Guest50848> cheers
333: [05:12:29] <ss23> Are there decent docs on building an interface for the CMS?
334: [05:12:43] <ss23> The two things I've seen are http://doc.silverstripe.org/framework/en/reference/cms-architecture and http://doc.silverstripe.org/framework/en/howto/extend-cms-interface but both don't tell you much
335: [05:12:49] <ss23> (I'm talking extending LEftAndMain etc)
336: [05:14:13] <ss23> y/n?
337: [05:14:46] <ss23> ;___;
338: [05:14:47] <ss23> guis
339: [05:14:48] <ss23> pls
340: [05:14:49] <ss23> pls
341: [05:16:54] <guzzlefry> i dunno
342: [05:17:16] <guzzlefry> SilverStripe really needs doc writer people.
343: [05:17:30] <ss23> ^^
344: [05:17:46] <simon_w|air> ss23, no
345: [05:17:52] <ss23> ;___;
346: [05:17:52] <ss23> ouch
347: [05:19:36] <guzzlefry> I thought about writing some but I have no clue what I"m doing most of the time, as you've probably noticed. :P
348: [05:20:06] <ss23> lol
349: [05:21:51] <ss23> To check, where's the place to put a value that you only have once per site?
350: [05:21:54] <ss23> Like...
351: [05:22:07] <ss23> A DataObject seems wrong, since it'll be at able for a single value
352: [05:22:30] <simon_w|air> Config?
353: [05:22:42] <ss23> simon_w|air: Close, but needs to be updated in the CMS by clients?
354: [05:22:45] <ss23> So needs to be in Database
355: [05:22:53] <simon_w|air> SiteConfig
356: [05:23:09] <ss23> sweet, knew there was a place for it :D
357: [05:23:39] <ss23> Hmm
358: [05:23:46] <ss23> Can ModelAdmin manage a custom siteconfig?
359: [05:23:57] <guzzlefry> Don't think so.
360: [05:24:05] <guzzlefry> unless
361: [05:24:52] <simon_w|air> What's the point? You've already got CMSSettingsController
362: [05:26:38] * Shrike_Finland has joined #silverstripe
363: [05:28:08] * Shrike_Finland1 has joined #silverstripe
364: [05:28:09] * Shrike_Finland quit (Read error: Connection reset by peer)
365: [05:30:06] * stecman quit (Quit: This computer has gone to sleep)
366: [05:30:20] <ss23> Yeah, using that... I hope
367: [05:30:54] <simon_w|air> It's the thing called "Settings" in the menu
368: [05:32:41] * sam__ has joined #silverstripe
369: [05:33:22] <sam__> hi...
370: [05:33:32] <ss23> simon_w|air: I want a little extra though, a "test" action
371: [05:33:38] <ss23> simon_w|air: [User Error] FieldList::addFieldToTab() Tried to add a tab to object 'FieldList' - 'Root' didn't exist.
372: [05:33:45] <sam__> anybody can help me on recaptcha in silverstripe 2.4
373: [05:33:49] <ss23> The "I hope" was that I could add actions to a specific tab etc :O
374: [05:34:21] <simon_w|air> ss23, well, you could add it in the CMSFields instead of Actions
375: [05:35:25] <ss23> Yeah, will do that I guess
376: [05:36:24] * Stomach quit (Quit: Leaving.)
377: [05:39:06] <ss23> :<
378: [05:39:10] <ss23> Default styling for it is ugly..
379: [05:44:55] * Guest50848 has left #silverstripe
380: [05:46:53] <ss23> wah
381: [05:47:02] <ss23> I don't see a way to set a size attribute on a form either!
382: [05:47:08] <ss23> aw, I can setATtribute
383: [05:47:08] <ss23> :<
384: [05:47:09] * ss23 cries
385: [05:48:15] <ss23> THAT DOESN'T WORK
386: [05:48:18] * ss23 cries more
387: [05:49:11] * nickmolhoek quit (Ping timeout: 260 seconds)
388: [05:51:31] <guzzlefry> ss23: I thought you had to $this->addExtraClass(); or something, then mess with CSS?
389: [05:52:56] <ss23> I could, but considering there's an excplicitly set attribute, I would've thought you could set it
390: [05:53:08] <ss23> Also, my action doesn't even work
391: [05:53:13] <ss23> clicking it doesn't trigger an anction
392: [05:53:18] <ss23> Guessing all this fucked up JS in the CMS is like "LOL NO"
393: [05:53:21] <ss23> blargh
394: [05:53:28] <ss23> SilverStripe makes shit really hard when it tries to get too fancy
395: [05:53:48] <sam__> has anybody used recaptcha?
396: [05:53:59] <sam__> Colin[pi]: Please help me
397: [05:54:18] <sam__> I am not able to integrate the recaptcha
398: [05:57:54] <simon_w|air> sam__, I'm using it fine. Just install the SpamProtection and Recaptcha modules, set the API keys for recaptcha and tell spam protection to use it
399: [06:00:49] <simon_w|air> sam__, you want https://github.com/silverstripe/silverstripe-spamprotection/tree/0.4 and https://github.com/chillu/silverstripe-recaptcha/tree/1.0 as the 2.4 compat versions, then follow the instructions in the recaptcha module
400: [06:03:19] * ooystein_ has joined #silverstripe
401: [06:04:22] * Bambii7 has joined #silverstripe
402: [06:04:51] <Bambii7> Hi all! Any one here had experience with SS3 unittest?
403: [06:05:07] * onre has joined #silverstripe
404: [06:05:17] <simon_w|air> Yes
405: [06:05:31] * onre is now known as Guest68628
406: [06:05:39] <Bambii7> Im getting errors while running phpuint that $db ain't public?
407: [06:06:02] <simon_w|air> 3.0 or 3.1?
408: [06:06:16] <Bambii7> ummm... 3.1 but let me check
409: [06:06:43] <simon_w|air> Then yes, $db should be private
410: [06:06:46] * DigNZ quit (Quit: DigNZ)
411: [06:08:29] * nickmolhoek has joined #silverstripe
412: [06:08:30] * nickmolhoek quit (Remote host closed the connection)
413: [06:08:49] * nickmolhoek has joined #silverstripe
414: [06:09:07] * ooystein quit (*.net *.split)
415: [06:09:07] * Guest92049 quit (*.net *.split)
416: [06:09:50] <Bambii7> @simon_w any ideas why cli php is throughing errors about private $db var
417: [06:10:09] <ss23> Bambii7: Trying to use code written for 3.0 on SilverStripe 3.1?
418: [06:10:12] <ss23> Bambii7: Or vice versa
419: [06:10:13] <simon_w|air> Because you have one that's public
420: [06:11:24] <simon_w|air> Bambii7, http://docs.silverstripe.org/framework/en/3.1/changelogs/3.1.0#statics-in-custom-page-classes-need-to-be-private
421: [06:11:29] <Bambii7> it's set to private :(
422: [06:12:06] <ss23> What's the exact error, Bambii7?
423: [06:12:22] <Bambii7> PHP Fatal error: Access level to SiteTree::$db must be public
424: [06:12:40] <Bambii7> thats after running
425: [06:12:41] <Bambii7> $ phpunit
426: [06:12:41] <ss23> Bambii7: What line etc?
427: [06:12:46] <ss23> Entire error!
428: [06:12:49] <simon_w|air> SiteTree?
429: [06:12:57] * nickmolhoek quit (Client Quit)
430: [06:12:58] <simon_w|air> That sounds like you've got 3.1's CMS and 3.0's framework
431: [06:13:01] <Bambii7> in /Users/BJMMac/www/sweetmemories/public/public/cms/code/model/SiteTree.php on line 16
432: [06:13:18] <Bambii7> oh could well be
433: [06:13:23] * kerosene has joined #silverstripe
434: [06:13:31] <Bambii7> i added them as git submodules
435: [06:13:37] <ss23> Composer!
436: [06:14:17] <Bambii7> yeah I should take make the switch, force of habbit
437: [06:14:33] <simon_w|air> externals!
438: [06:15:06] <sam__> simon_w|air: I have follwed but no luck....
439: [06:15:08] <Bambii7> thanks for pointing me in the right direction! I'll checkout the 3.1 branch
440: [06:15:09] * MattSS_ has joined #silverstripe
441: [06:15:10] * irogue has joined #silverstripe
442: [06:15:29] <simon_w|air> MattSS, oh, you can't
443: [06:16:24] <Bambii7> hmmmm maybe I should just set it up via composer
444: [06:16:30] * nick86 has joined #silverstripe
445: [06:16:34] <Bambii7> it's still a new project
446: [06:17:06] <Colin[pi]> am I being derp? url handler: '$Location'=>'location' is calling location() for when there is an isn't a URL segment passed
447: [06:17:14] <Colin[pi]> shouldn't it go to index() with no segment?
448: [06:18:08] <Colin[pi]> i.e. /locations -> index() /locations/a-location-name -> location()
449: [06:18:40] <simon_w|air> Colin[pi], '$Location!' => 'location'
450: [06:18:47] <simon_w|air> the ! makes it required
451: [06:19:29] * irogue_ quit (Ping timeout: 264 seconds)
452: [06:19:33] * MattSS quit (Ping timeout: 264 seconds)
453: [06:19:43] <Colin[pi]> I think I've derped the url handling
454: [06:19:46] <nick86> I am looking at a sitemap module which is better / more supported by the community out of https://github.com/silverstripe-labs/silverstripe-googlesitemaps/ and this one? https://github.com/ajshort/silverstripe-sitemap/
455: [06:19:56] <Colin[pi]> k lemme try
456: [06:20:18] <Colin[pi]> legend!
457: [06:20:26] <Colin[pi]> forgot about that, bad colin
458: [06:20:39] <Colin[pi]> thanks simon
459: [06:21:01] * robert_ quit (Excess Flood)
460: [06:21:22] * robert_ has joined #silverstripe
461: [06:21:23] * robert_ quit (Changing host)
462: [06:21:23] * robert_ has joined #silverstripe
463: [06:21:23] * MichaelDesignerX has joined #silverstripe
464: [06:21:37] <simon_w|air> nick86, they're two different functions. One builds site maps for spiders, the other builds things like http://www.silverstripe.com/sitemap/
465: [06:22:48] <nick86> Right on! that makes my choice easy!
466: [06:22:58] <nick86> thanks simon
467: [06:25:00] * DesignerX quit (Ping timeout: 245 seconds)
468: [06:26:41] * stellalie quit (Ping timeout: 245 seconds)
469: [06:30:55] * pippy_ quit (Ping timeout: 240 seconds)
470: [06:38:52] <ss23> javascript hard to debug
471: [06:38:54] * ss23 dies
472: [06:39:04] <Colin[pi]> :o
473: [06:40:40] * EasyCo quit (Quit: EasyCo)
474: [06:40:57] * simon_w|air installs JDK
475: [06:41:06] * simon_w|air shuns himself
476: [06:41:37] * MichaelDesignerX quit (Read error: Connection reset by peer)
477: [06:41:51] * NobrainerWeb has joined #silverstripe
478: [06:43:10] <simon_w|air> Bollig|DesignCty, we just use editors that mean we never end up creating .DS_Store files
479: [06:43:40] <Bollig|DesignCty> you never browse the directory on your local machine during development?
480: [06:44:07] * Zauberfisch quit (Ping timeout: 246 seconds)
481: [06:44:17] <sam__> hi simon_w|air ....
482: [06:44:38] <sam__> Its working if you set new form(....);
483: [06:44:56] <sam__> But I have a template and using like New Planform();
484: [06:48:08] * will_ has joined #silverstripe
485: [06:48:16] <will_> hello
486: [06:48:22] <simon_w|air> sam__, https://github.com/silverstripe/silverstripe-spamprotection/blob/0.4/docs/Install.md#updating-a-form-to-include-spam-protection
487: [06:48:26] <simon_w|air> You need to do that to your forms
488: [06:48:32] * Zauberfisch has joined #silverstripe
489: [06:48:53] <will_> how can i get all debatepages that have a panelist called "bob" if debatepages have many_many panelists?
490: [06:49:04] <will_> i tried this: DebatePage::get()->filter('Panelist.Name:partialmatch', $keyword);
491: [06:49:13] * zfmf1 has joined #silverstripe
492: [06:49:18] <will_> but i get an Unknown column error
493: [06:49:19] * willr has joined #silverstripe
494: [06:49:28] * ARNHOE has joined #silverstripe
495: [06:51:27] <simon_w|air> will_, what's the name of the many_many?
496: [06:53:09] * MichaelDesignerX has joined #silverstripe
497: [06:53:09] * pippy has joined #silverstripe
498: [06:53:42] * Bambii7 quit (Changing host)
499: [06:53:42] * Bambii7 has joined #silverstripe
500: [06:54:15] * will_ quit (Changing host)
501: [06:54:16] * will_ has joined #silverstripe
502: [06:55:45] <will_> simon_r:Panelists
503: [06:56:01] <simon_w|air> then you want DebatePage::get()->filter('Panelists.Name:partialmatch', $keyword);
504: [06:56:04] <will_> zoicks!
505: [06:56:09] <simon_w|air> You use the name of the relation
506: [06:56:14] <will_> you mean if i spell the relationship right it works?
507: [06:56:58] <simon_w|air> That helps too
508: [06:57:00] <will_> sorry sorry. For some reason i assumed (yes i know) that i should singularise it. should have tried that. my bad
509: [06:57:16] <will_> ps, thanks!
510: [07:04:11] * Bambii7 quit (Ping timeout: 250 seconds)
511: [07:04:28] * DigNZ has joined #silverstripe
512: [07:04:28] * DigNZ quit (Client Quit)
513: [07:09:54] <nick86> Hey guys, i have just installed the staticpublisher and am now getting this warning. Use of undefined constant BASE_URL - assumed 'BASE_URL'
514: [07:10:19] <nick86> any ideas on rectifying this?
515: [07:12:25] * will_ quit (Ping timeout: 250 seconds)
516: [07:12:47] * willr quit (Quit: willr)
517: [07:16:54] <ss23> nick86: Define a BASE_URL correctly?
518: [07:18:00] <nick86> yeah, my concern is that this is only happening on my local machine
519: [07:18:16] <nick86> which makes me think it is a appache rewrite issue
520: [07:18:39] <nick86> sorry, still quite new to silverstripe
521: [07:24:30] <ss23> Doubtful
522: [07:24:47] <ss23> nick86: Probably your local machine has error reporting turned up. That's a notice, so often not shown on live websites/hosts
523: [07:26:40] <nick86> Ok cool, I will turn the reporting down and investigate when i have some more time
524: [07:26:45] <nick86> thanks ss23 :)
525: [07:28:00] * zfmf1 quit (Ping timeout: 276 seconds)
526: [07:35:09] * willr has joined #silverstripe
527: [07:36:20] * EasyCo has joined #silverstripe
528: [07:36:48] * zfmf1 has joined #silverstripe
529: [07:57:54] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
530: [08:03:34] * ocm has joined #silverstripe
531: [08:03:36] <ocm> howdy!
532: [08:12:07] * openbees has joined #silverstripe
533: [08:13:03] <openbees> Hello guys :)
534: [08:15:34] <Colin[pi]> heya ocm and openbees
535: [08:23:31] * ss23 quit (Remote host closed the connection)
536: [08:37:30] * nick86 quit (Ping timeout: 245 seconds)
537: [08:38:24] * Nimle2 has joined #silverstripe
538: [08:38:27] <Nimle2> Hi guys,
539: [08:38:41] * stellalie has joined #silverstripe
540: [08:39:07] <Nimle2> I want to be have a method like Urlencode which I can in template. for example, $Title.Urlencode
541: [08:39:34] <Nimle2> what is the easiest way to implement it?
542: [08:40:09] <Nimle2> I use title as part of url, dont want whitespace to appear
543: [08:40:32] <Nimle2> similar to Convert::raw2htmlname
544: [08:41:09] * EasyCo quit (Quit: EasyCo)
545: [08:45:47] * micmania1 has joined #silverstripe
546: [08:47:38] <openbees> Nimle2 why u want to use something liek $Title.Urlencode .. just create a function in controller which can return $title in your desire format
547: [08:49:03] <simon_w|air> Nimle2, $Title.URLATT
548: [08:50:12] <openbees> never mind .. didn't know there is a inbuilt function for this .. thanks simon_w|air :D
549: [08:55:10] * SightUnseen has joined #silverstripe
550: [08:55:14] * SightUnseen has left #silverstripe
551: [08:55:47] <Nimle2> Thank you very much @simon_w|air
552: [08:55:49] <Nimle2> it worked
553: [08:55:56] <Nimle2> I will remove my extension
554: [08:56:05] <Nimle2> I have created an extension to do it
555: [08:59:27] * sam__ quit (Ping timeout: 250 seconds)
556: [09:00:48] * simon_w|air quit (Quit: Leaving)
557: [09:06:49] * Nimle2 quit (Ping timeout: 250 seconds)
558: [09:11:42] * ss23 has joined #silverstripe
559: [09:15:23] * Bollig|DesignCty has joined #silverstripe
560: [09:18:02] * simon_w|air has joined #silverstripe
561: [09:26:03] * openbees quit (Quit: Leaving)
562: [09:47:46] * Shrike_Finland1 quit (Quit: Leaving.)
563: [09:48:40] <ARNHOE> Is it good to work with include templates for speed/peformance?
564: [09:49:20] * zippy__ has joined #silverstripe
565: [09:49:59] * openbees has joined #silverstripe
566: [09:50:07] <NobrainerWeb> I guess they are all compiled into cached files, so i don't think it matters
567: [09:52:29] <ARNHOE> Well, first time I am using xdebug profiler with webgrind right now. And the amount of SSTemplateParser->construct calls are alot
568: [10:07:26] <Marvanni> Includes are cached as far as I know
569: [10:12:05] <ARNHOE> Parser->construct, Count: 16660, Self Cost: 9.73, Inclusive Cost: 12.32
570: [10:19:30] * svandragt has joined #silverstripe
571: [10:21:08] <svandragt> I'm unable to get relations of relations of a dataobject, anyone could give me a tip? Abstracted problem: http://www.sspaste.com/paste/show/52382b506db0a
572: [10:23:20] <svandragt> Thanks in advance i'm a bit stuck on this :(
573: [10:30:07] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
574: [10:33:16] <Marvanni> write a Join filter?
575: [10:33:58] * willr quit (Quit: willr)
576: [10:37:51] <svandragt> Will have to try that workaround; but don't know why you can't call a relation() on an object that has a has_one relation to an object with a has_many counter relation.
577: [10:40:53] <NobrainerWeb> Hi, trying to use composer to create a new project, i used "composer create-project silverstripe/installer ~/Sites/newproject 3.1.0-rc2" and all is good.
578: [10:41:00] <NobrainerWeb> Now i try to do composer require nobrainerweb/silverstripe-section-module
579: [10:41:54] <NobrainerWeb> then composer asks for a version number, i enter dev-master and i get an error: Your requirements could not be resolved to an installable set of packages. What am I doing wrong?
580: [10:42:04] <svandragt> Thanks Marvanni that works
581: [10:42:50] <NobrainerWeb> composer require unclecheese/display-logic did work (entering dev-master when asked for version)
582: [10:44:01] <svandragt> NobrainerWeb: In the past I have checked packagist, lookup the composer module and check the requirements for the dev-master and previous versions, most likely one of those might work.
583: [10:44:23] <svandragt> generally, not sure if its any use.
584: [10:45:21] <NobrainerWeb> svandragt: could you give me an example, i don't know what it is i need to look for?
585: [10:45:47] <NobrainerWeb> totally new to the composer stuff, i find it difficult :-(
586: [10:46:36] <svandragt> NobrainerWeb: oh sorry I see what the problem is :)
587: [10:46:59] * SightUnseen has joined #silverstripe
588: [10:47:26] <svandragt> NobrainerWeb: You need to go to https://packagist.org/, login with your github account
589: [10:47:40] <NobrainerWeb> i am
590: [10:47:48] <svandragt> NobrainerWeb: then submit package
591: [10:48:01] <svandragt> copy and paste the url to your github repository
592: [10:48:19] <svandragt> then it will give you instructions how to setup a service hook in github to link to packagist.
593: [10:48:55] <svandragt> after you done that you press test hook. then your module is published automatically into packagist and silverstripe addons (if you have used the right tags) and you can install it via composer require
594: [10:49:24] <svandragt> Based on the fact I couldn't find your package nobrainerweb/silverstripe-section-module on packagist
595: [10:49:30] <openbees> hmm but dev-master is already available in packagist site
596: [10:49:37] <NobrainerWeb> yes
597: [10:49:42] <NobrainerWeb> module allready exists
598: [10:49:45] <openbees> https://packagist.org/packages/nobrainerweb/silverstripe-section-module
599: [10:50:38] <svandragt> oh well I can't search then obviously forget what I said .
600: [10:51:26] <svandragt> NobrainerWeb: maybe it's because silverstripe 3.1 is not yet out and you require at least 3.1? isn't rc2 < 3.1?
601: [10:52:06] <openbees> yaah exactly .. this is the problem
602: [10:52:06] * SightUnseen quit (Ping timeout: 276 seconds)
603: [10:52:44] <svandragt> NobrainerWeb: "silverstripe/framework":"~3.1",
604: [10:57:05] * SightUnseen has joined #silverstripe
605: [11:01:40] * SightUnseen quit (Ping timeout: 264 seconds)
606: [11:11:20] <NobrainerWeb> oh, thanks guys!
607: [11:11:33] <NobrainerWeb> Was on the phone with a client, will try that out now
608: [11:13:28] * zfmf1 quit (Ping timeout: 245 seconds)
609: [11:31:50] * Colin[pi] quit ()
610: [11:37:47] * mobiusnz has joined #silverstripe
611: [11:43:43] * chillu has joined #silverstripe
612: [11:47:45] * openbees quit (Quit: Leaving)
613: [12:05:45] * abitran quit (Ping timeout: 240 seconds)
614: [12:05:53] * abitran has joined #silverstripe
615: [12:09:59] * UndefinedOffset has joined #silverstripe
616: [12:26:28] <svandragt> I'm developing a custom report and want to export the report columns, not the modelclass->summaryFields. I'm unable to get the data to show up, but the headers do, anyone has customised the export button? http://sspaste.com/paste/show/523848bda9c51 tia
617: [12:31:30] * NobrainerWeb quit (Quit: NobrainerWeb)
618: [12:32:36] <micmania1> svandragt, I've never done what you're trying, but reading the docs it looks as though the setExportColumns just expects a normal key => value array
619: [12:32:42] <micmania1> where the value is the title.
620: [12:33:03] <micmania1> http://api.silverstripe.org/3.1/source-class-GridFieldExportButton.html#16
621: [12:36:00] <svandragt> micmania1: wow so simple, I skipped over that comment there cheers.
622: [12:36:08] * mobiusnz quit (Quit: Leaving.)
623: [12:36:15] <micmania1> np :)
624: [12:38:10] * osterlaus has joined #silverstripe
625: [12:38:21] <svandragt> It's very useful to create repeatable exports in custom formats.
626: [12:42:13] * zippy__ quit (Ping timeout: 245 seconds)
627: [12:48:04] <Marvanni> since most client use the csv for excel I use create excelsheets directly with this http://phpexcel.codeplex.com/
628: [12:58:11] * SightUnseen has joined #silverstripe
629: [13:02:40] <svandragt> Wasn't aware of that might consider that for other projects :)
630: [13:03:07] * SightUnseen quit (Ping timeout: 268 seconds)
631: [13:05:42] <Marvanni> very usefull :)
632: [13:08:08] * SightUnseen has joined #silverstripe
633: [13:14:13] * SightUnseen quit (Ping timeout: 248 seconds)
634: [13:14:59] * quiznilo has left #silverstripe
635: [13:47:26] * Zauberfisch is now known as Zauberfisch__
636: [13:47:30] * Zauberfisch_ is now known as Zauberfisch
637: [14:08:52] * SightUnseen has joined #silverstripe
638: [14:08:56] * SightUnseen quit (Client Quit)
639: [14:44:55] * swordsmanz quit (Quit: swordsmanz)
640: [14:55:28] * Nivery has joined #silverstripe
641: [15:05:30] * MichaelDesignerX quit (Ping timeout: 264 seconds)
642: [15:09:09] * SightUnseen has joined #silverstripe
643: [15:13:32] * SightUnseen quit (Ping timeout: 260 seconds)
644: [15:19:12] * SightUnseen has joined #silverstripe
645: [15:27:10] * ARNHOE quit (Remote host closed the connection)
646: [15:28:19] * SightUnseen quit (Ping timeout: 260 seconds)
647: [15:39:36] * violetina has joined #silverstripe
648: [15:40:20] * inadream has joined #silverstripe
649: [15:42:04] <inadream> hello all, how do I get the sub pages of a SiteTree object?
650: [15:45:33] <micmania1> inadream, what do you mean by sub page? Descending classes?
651: [15:46:34] <inadream> yes, a Product Category page with product sub pages
652: [15:47:17] <inadream> I want to loop through the Product pages of a Product Category instance
653: [15:48:12] <micmania1> You mean $page->Children() ?
654: [15:54:42] <inadream> works, thanks much
655: [15:56:47] * zfmf1 has joined #silverstripe
656: [16:00:07] * nhorstmeier has joined #silverstripe
657: [16:00:44] * svandragt quit (Read error: Connection reset by peer)
658: [16:03:14] * osterlaus quit (Quit: Leaving.)
659: [16:06:10] * ocm quit (Read error: Connection reset by peer)
660: [16:19:46] * SightUnseen has joined #silverstripe
661: [16:20:30] * Liquide has joined #silverstripe
662: [16:24:10] * SightUnseen quit (Ping timeout: 245 seconds)
663: [16:37:44] * Zauberfisch__ quit (Ping timeout: 246 seconds)
664: [16:44:29] * Zauberfisch__ has joined #silverstripe
665: [16:47:27] * inadream quit (Quit: Ex-Chat)
666: [17:11:31] * Nivery quit (Quit: Nivery)
667: [17:20:20] * SightUnseen has joined #silverstripe
668: [17:25:18] * SightUnseen quit (Ping timeout: 264 seconds)
669: [17:46:59] * hubertusanton has joined #silverstripe
670: [17:50:58] * gelignite has joined #silverstripe
671: [17:59:18] * gelignite quit (Ping timeout: 245 seconds)
672: [18:05:28] <andylockran> Any London-based developer interested in a SilverStripe job either perm or contract?
673: [18:07:49] <Zauberfisch> why limit it to london?
674: [18:08:11] <Zauberfisch> (I am to busy to take on any jobs at this time, just asking)
675: [18:16:52] * gelignite has joined #silverstripe
676: [18:18:49] * SightUnseen has joined #silverstripe
677: [18:19:34] * SightUnseen has left #silverstripe
678: [18:21:36] * zfmf1 has left #silverstripe
679: [18:28:00] * hubertusanton quit (Quit: Page closed)
680: [18:35:02] * AlphaCactus has joined #silverstripe
681: [19:01:53] * SightUnseen has joined #silverstripe
682: [19:02:30] * SightUnseen has left #silverstripe
683: [19:18:02] <andylockran> Zauberfisch: because I need someone in my London-based office.
684: [19:18:35] <andylockran> I hate remote workers; some people can do it (when the organisation is setup in such a way to make it work). At the moment, the organisation is not in that place.
685: [19:19:21] <simon_w|air> And most people can't do it well
686: [19:37:25] * BPower has joined #silverstripe
687: [19:38:05] <BPower> $this->Children()->max('LastEdited') throws an error ("max does not exist on ArrayList"). What's the preferred way of getting the same result?
688: [19:38:20] <simon_w|air> AllChildren()
689: [19:38:40] <simon_w|air> Not quite the same result, but usually good enough
690: [19:39:29] <BPower> AllChildren includes stage and hidden.... not sure I want to include that much... this is for a cache id -- I wouldn't want to be rebuilding the cache that often.
691: [19:40:17] <simon_w|air> It doesn't include stage
692: [19:40:23] <BPower> oh
693: [19:40:35] <BPower> hmm
694: [19:41:09] <BPower> I guess that's ok then.
695: [19:43:10] <BPower> simon_w|air: works - but why does Children() return an ArrayList while AllChildren returns a DataList?
696: [19:43:16] <BPower> And thanks!
697: [19:43:26] <simon_w|air> Because Children() does a canView() filter
698: [19:59:13] * ARNHOE has joined #silverstripe
699: [19:59:17] * atmos quit (Quit: Page closed)
700: [20:03:57] * mobiusnz has joined #silverstripe
701: [20:22:52] * DigNZ has joined #silverstripe
702: [20:22:53] * DigNZ quit (Remote host closed the connection)
703: [20:23:07] * DigNZ has joined #silverstripe
704: [20:31:40] * UndefinedOffset quit (Quit: Leaving.)
705: [20:38:16] * nickmolhoek has joined #silverstripe
706: [20:38:17] * nickmolhoek quit (Remote host closed the connection)
707: [20:38:31] * nickmolhoek has joined #silverstripe
708: [20:43:53] <Pyromanik> oh, good morning #silverstripe
709: [20:56:14] * Stomach has joined #silverstripe
710: [20:58:26] * ARNHOE quit (Remote host closed the connection)
711: [21:01:31] * ARNHOE has joined #silverstripe
712: [21:01:34] <BPower> simon_w|air: Ah, makes sense
713: [21:01:50] <BPower> Is there a way to modify the auto logout interval?
714: [21:01:57] <BPower> it seems *extremely* short
715: [21:02:25] * stecman has joined #silverstripe
716: [21:02:48] <BPower> I've been getting messages all day from a group of admins new to SS this week saying they keep getting "Forbidden" messages when trying to save.
717: [21:03:06] <BPower> Of course, they don't know that it's just because they've been logged out.
718: [21:04:51] * ARNHOE quit (Remote host closed the connection)
719: [21:05:21] * liam_ has joined #silverstripe
720: [21:05:23] * ARNHOE has joined #silverstripe
721: [21:05:50] <Pyromanik> BPower: GET Security/ping
722: [21:05:51] * liam_ is now known as Guest46894
723: [21:05:55] <Guest46894> is there any instructions anywhere or a download for silverstripe 3.1? All the modules have been updated but I can't find out how to install it....
724: [21:06:16] <Pyromanik> Guest46894: same as always?
725: [21:06:46] <Pyromanik> http://doc.silverstripe.org/framework/en/3.1/installation/
726: [21:07:22] <Pyromanik> http://www.silverstripe.org/pre-releases/
727: [21:07:32] * zippy__ has joined #silverstripe
728: [21:07:35] <BPower> Gah you beat me to it, Pyromanik
729: [21:07:36] <Guest46894> Pyromanik: ok so it isnt officially released yet?
730: [21:07:46] <BPower> Guest46894: correct
731: [21:07:49] * zippy__ quit (Client Quit)
732: [21:07:50] <Pyromanik> nup
733: [21:07:56] <BPower> soon!
734: [21:07:57] <Pyromanik> It's in RC state
735: [21:08:00] <Pyromanik> indeed.
736: [21:08:05] <BPower> (Release Candidate)
737: [21:08:23] * zippy__ has joined #silverstripe
738: [21:08:53] <Guest46894> Pyromanik: why have the modules been changed if it isnt released yet?
739: [21:09:03] <zippy__> Morning
740: [21:09:23] <Pyromanik> Guest46894: they haven't?
741: [21:09:43] <Pyromanik> what do you mean by "the modules have been changed" ?
742: [21:09:58] <Pyromanik> morning zippy__
743: [21:10:04] <Guest46894> Pyromanik: I tried installing the widgets module but it wouldnt work because of the property accessors in the objects...
744: [21:10:13] <Pyromanik> and how did you get the widgets module?
745: [21:10:18] * ARNHOE quit (Ping timeout: 264 seconds)
746: [21:10:28] <Guest46894> Pyromanik: git
747: [21:10:33] <Pyromanik> well there you go.
748: [21:10:55] <Guest46894> ?
749: [21:11:18] <Pyromanik> https://github.com/silverstripe/silverstripe-widgets/tree/0.1
750: [21:11:33] <Pyromanik> Guest46894: that's what you get when you pull against a development head ;)
751: [21:12:09] <BPower> We really should be following the git-flow pattern where master is always production-ready.
752: [21:12:13] <Guest46894> Pyromanik: ok didnt see it because it has been merged...
753: [21:12:21] <Guest46894> yea I assumed master was production
754: [21:12:35] <Pyromanik> https://github.com/silverstripe/silverstripe-widgets/tree/master the readme even says 3.1, branch 0.1 says it's for ss3.0
755: [21:12:44] <Pyromanik> assumptions always bad.'
756: [21:12:59] <Pyromanik> ;)
757: [21:13:20] <BPower> Developers deserve usability too
758: [21:14:08] <Pyromanik> framework/master is 3.1 too
759: [21:14:42] <Pyromanik> cms/master is also 3.1
760: [21:15:20] <BPower> git-flow
761: [21:15:55] * Pyromanik cares not for pseudo standards.
762: [21:17:37] * BPower would rather cater to people's assumptions in order to make it easier for them, than to try to convince everyone to stop assuming.
763: [21:17:53] <BPower> (within reason)
764: [21:17:56] * Pyromanik thinks that if people started assuming then they're doing it wrong.
765: [21:18:04] <zippy__> i'd just like it if 3.1 was released....
766: [21:18:08] <zippy__> :)
767: [21:18:14] * zippy__ wonders if there is anything he could do
768: [21:18:16] <Pyromanik> I just looked up git-flow (well, more the methodolgoy behind it) and it does make sense.
769: [21:18:31] <Pyromanik> zippy__: issues are on github!
770: [21:19:08] <BPower> it's much easier to follow assumptions than to educate the whole world of amateurs.
771: [21:19:10] * zippy__ looks up issue, then comes to irc to ask simon_w when he's online how to solve = win :P
772: [21:19:21] <zippy__> bit gutted the race postponed today
773: [21:19:23] <BPower> glad you like it, Pyromanik
774: [21:19:41] <Pyromanik> BPower: in this case, SS versions are usually branches rather than tags.
775: [21:20:09] <Pyromanik> at this point it's likely more carry over from old ways of doing things, and module developers tend to follow it.
776: [21:20:22] <Pyromanik> but that's how SS community works.
777: [21:20:27] <Pyromanik> most people are aware of this.
778: [21:20:54] <Pyromanik> and 3.1 is the default branch for github's framework & cms
779: [21:21:05] <Pyromanik> so if you just go around collecting zips, etc, you're in the clear.
780: [21:21:13] <Pyromanik> if you mix and match it then probably not so much.
781: [21:21:23] <Pyromanik> if you use composer you can specify a version.
782: [21:21:30] <Pyromanik> which is probably actually why it's done like it is.
783: [21:21:34] <Pyromanik> but I don't know for sure.
784: [21:21:50] <Pyromanik> But it wouldn't surprise me, composer is pretty crap.
785: [21:22:06] <Pyromanik> another of those 'great idea, bad implementation' things.
786: [21:23:37] <Guest46894> is there a way to show widgets on all pages?
787: [21:24:51] <Guest46894> nvm will do it with siteconfig
788: [21:26:10] <Pyromanik> Every page would have it's own widget config, so yeh, siteconfig best idea.
789: [21:27:54] * Kolin quit (Ping timeout: 240 seconds)
790: [21:28:01] * Kolin has joined #silverstripe
791: [21:41:27] * EasyCo has joined #silverstripe
792: [21:42:23] * gelignite quit (Quit: http://bit.ly/nkczDT)
793: [21:48:40] * nhorstmeier quit (Remote host closed the connection)
794: [22:00:25] * BPower quit (Remote host closed the connection)
795: [22:03:22] <Guest46894> whats the correct way to redirect from one controller to another in Silverstripe 3?
796: [22:05:18] <Marvanni> return $this->redirect(SomeController::create()->Link('action')); ??
797: [22:05:58] * BPower has joined #silverstripe
798: [22:06:16] <BPower> Pyromanik: Ok, so Security/ping just returns 1 - there's no logic there.
799: [22:32:22] * Colin[pi] has joined #silverstripe
800: [22:33:04] <Colin[pi]> bom dia!
801: [22:44:29] * SightUnseen has joined #silverstripe
802: [22:44:56] * SightUnseen has left #silverstripe
803: [22:46:54] <Zauberfisch> I am having a strange issue with gridfield
804: [22:47:17] <Zauberfisch> The save button works, but the ajax response results in a javascript error
805: [22:47:28] <Zauberfisch> am I the only one to experience this issue?
806: [22:47:41] <Zauberfisch> (note: i have the better buttons module installed)
807: [22:56:12] <Pyromanik> BPower: it keeps the session alive.
808: [22:56:35] <Pyromanik> thus, someone who's logged in doesn't get logged out.
809: [22:56:44] <Pyromanik> from the session expiring.
810: [22:57:10] <Pyromanik> Zauberfisch: I'd point at the module.
811: [22:57:25] <Pyromanik> have not used it, so dunno. But never experienced any issues with gridfield.
812: [23:04:49] * joelpittet has joined #silverstripe
813: [23:06:17] <Pyromanik> BPower: also, if admins are getting 'forbidden' returns when trying to update a user, then you should fix that error.
814: [23:06:35] <Pyromanik> presuming this is in the SS CMS (dem assumptions right?)
815: [23:06:53] <Pyromanik> the CMS posts to Security/ping all the time in order to prevent that exact thing from happening.
816: [23:06:57] <BPower> not when trying to update a user -- when trying to update any page.
817: [23:07:05] <Pyromanik> BPower: from within the CMS?
818: [23:07:09] <BPower> yes
819: [23:07:13] <Pyromanik> that shouldn't be happening.
820: [23:07:22] <BPower> it may have to do with load balancing
821: [23:07:22] <Pyromanik> suggest that there's some other reason tehy're getting a 4.3
822: [23:07:25] <Pyromanik> 403*
823: [23:07:30] <Pyromanik> most likely.
824: [23:07:46] <Pyromanik> CMS keeps session alive so that a user is never logged out so long as they have the CMS page open.
825: [23:07:55] <Pyromanik> a CMS page (any).
826: [23:08:42] <Pyromanik> it's all tracked by session (as is usual), so the other thing could be an extremely short session expiry or some other misconfiguration
827: [23:08:53] <BPower> or switching servers
828: [23:09:08] <Pyromanik> where data is expiring before Security/ping is happening. In which case you'd be experiencing the issue too though. So yeh, load balancing.
829: [23:09:20] <Pyromanik> switching server brings an entirely separate session...
830: [23:09:36] <Pyromanik> You'll need to find some way to share sessions between balanced servers.
831: [23:09:41] <Pyromanik> or some other solution.
832: [23:09:48] <BPower> but the "remember" check box forces a cookie to be set. if I can force "remember" to be checked every time, then it should resolve the issue
833: [23:10:06] <Pyromanik> perhaps.
834: [23:11:09] <Pyromanik> http://stackoverflow.com/questions/994935/php-sessions-in-a-load-balancing-cluster-how
835: [23:11:12] <Pyromanik> \http://serverfault.com/questions/380249/shared-php-sessions-in-load-balanced-httpd-environment
836: [23:11:31] <Pyromanik> https://www.google.co.nz/search?q=sharing+php+session+info+between+load+balanced+servers
837: [23:27:19] <BPower> Thanks Pyromanik
838: [23:28:17] <zippy__> SS does have support for DB sessions I think
839: [23:28:31] <zippy__> That is what I've done in the past, use DB sessions
840: [23:29:22] <zippy__> BPower using the remmber wont work as the session is not persisted, it will just re log them in on the different server. so if you had any information in the session and they jumped server it'd be lsot
841: [23:32:09] <BPower> thanks zippy__
842: [23:32:22] * Jayden90 has joined #silverstripe
843: [23:36:14] * zippy__ quit (Ping timeout: 264 seconds)
844: [23:41:37] * chillu quit (Quit: chillu)
845: [23:45:02] * Super-ru_ has joined #silverstripe
846: [23:47:24] * ss23 cracks his knuckles
847: [23:47:31] <ss23> Looks like we've got ourself an Auckland bou.
848: [23:47:33] <ss23> boy
849: [23:48:10] * atmos has joined #silverstripe
850: [23:49:29] * Colin[pi] grabs boomerang
851: [23:51:17] <Colin[pi]> how's things ss23?
852: [23:51:24] * BPower quit (Remote host closed the connection)
853: [23:52:27] * MichaelDesignerX has joined #silverstripe
854: [23:53:29] <atmos> blegh, ordinal position >:|
855: [23:55:38] <Pyromanik> ss23: teammanager just took headphones off
856: [23:55:44] <Pyromanik> system of a down playing
857: [23:55:49] <Pyromanik> he's not at his desk
858: [23:56:03] <Pyromanik> all the designers can hear it, complaining about noise like they've never heard of SOAD before.
859: [23:56:07] <simon_w> Stupid plea bargains
860: [23:56:14] <Pyromanik> despite them being HUGE while they were in high school.
861: [23:56:25] <Pyromanik> how can someone be our age and have never heard of SOAD?
862: [23:56:28] <Pyromanik> IDEK
863: [23:56:44] * Colin[pi] now feels super old
864: [23:56:48] <Pyromanik> simon_w: jilted about your jury service?
865: [23:56:56] <Colin[pi]> christ SOAD was like when I started work
866: [23:57:13] <Pyromanik> Colin[pi]: to be fair, it was the very end of high school.
867: [23:57:35] <Pyromanik> chopsuey made it huge
868: [23:57:37] <simon_w> More annoyed at the 2.5 hours spent waiting only to be sent away before the jury could be picked
869: [23:57:37] <Colin[pi]> used to listen to TripleJ at work when I started and heard a lot of them
870: [23:57:56] <Colin[pi]> that sucks simon_W
871: [23:58:06] <Pyromanik> Colin[pi]: yeh, even bullshit teenyboppy radio stations used to play it
872: [23:58:25] <Pyromanik> flip forward 10 years, now they all whinge about it
873: [23:58:33] <Pyromanik> whilst listening to same teenyboppy radio station
874: [23:59:05] <Pyromanik> sounds like they'd think joe cocker would be too intense.
875: [23:59:29] <Pyromanik> the way they're carrying on like it's the most hardcore intense shit they've ever heard.
876: [23:59:36] <Colin[pi]> play rammstein for them
877: [23:59:48] <Colin[pi]> even that is mellow compared to some

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