#silverstripe IRC Log

IRC log for 10 October 2013

All timestamps are in UTC.

1: [00:00:20] <ss23> wah
2: [00:00:27] <ss23> Working everywhere except for this clients internally network
3: [00:05:02] <unsignedint> I hate that
4: [00:05:13] <unsignedint> most of the time the client has screwed up DNS on their internal network
5: [00:05:25] <unsignedint> because they hired retards for sysadmins and are using windows server
6: [00:06:08] <unsignedint> (windows server with the DNS server enabled)
7: [00:07:31] <Colin[pi]> ss23: I found the flush double slash fix, I don't think it was merged into the 2.4 branch though... no one cares prolly ;D
8: [00:08:00] <simon_w> We used to have one of those. We ditched it when it couldn't DHCP and now it's out Debian buildbot server
9: [00:10:21] <Pyromanik> 13:00 <@ss23> Working everywhere except for this clients internally network
10: [00:10:24] <Pyromanik> hahahahaahhaaha
11: [00:10:26] <Pyromanik> had that one before
12: [00:10:35] <Pyromanik> I just ignored it until she went away
13: [00:10:50] <ss23> This client is... rather important
14: [00:10:52] <Pyromanik> "went away" - stopped whinging
15: [00:10:52] <ss23> >.>
16: [00:11:13] <ss23> And they're wanting to get it done so they can launch some things tomorrow morning
17: [00:11:21] <Pyromanik> LUNCH ALL THE THINGS
18: [00:11:23] <ss23> Unfortunatly, "wait for it to go away" is risky :<
19: [00:11:27] <Pyromanik> I"m going to lunch some things tomorrow.
20: [00:11:29] <Pyromanik> Mexican things.
21: [00:11:37] <ss23> FUCK WISH I HAD LUNCh
22: [00:11:39] <ss23> working non stop since I got in
23: [00:11:40] <ss23> ;_;
24: [00:11:46] <ss23> Apart from the one break to listen to oompa loompa
25: [00:11:46] <ss23> :<
26: [00:11:49] <Pyromanik> FISH YOU LUNCH
27: [00:12:07] <Pyromanik> ss23: you need to liaise with internal IT chap
28: [00:12:11] <Pyromanik> or chap taht sets up the network
29: [00:12:15] <ss23> I have one, I doubt it'll help though
30: [00:12:15] * UncleCheese quit (Quit: UncleCheese)
31: [00:12:23] <Pyromanik> one fush?
32: [00:12:31] <ss23> hmm?
33: [00:12:44] <Pyromanik> two fush?
34: [00:12:48] <Colin[pi]> fush und chups
35: [00:12:54] <Pyromanik> red fush, blue fush!
36: [00:12:57] * mobiusnz has joined #silverstripe
37: [00:13:52] <unsignedint> ss23: I'd teamviewer into a computer on their network and do some simple ping tests
38: [00:13:58] <Pyromanik> Colin[pi]: shreeeeeeeemp on thi barbiiiiqueee
39: [00:14:06] <ss23> I doubt it's network related
40: [00:14:09] <ss23> Most liekly cache related
41: [00:14:22] <Pyromanik> ss23: it's network related, but just not network connectivity related.
42: [00:14:27] <Pyromanik> cache, blockers, something.
43: [00:14:30] <unsignedint> ah yeah I dont know what the actual issue was. what is the actual issue?
44: [00:14:32] <Colin[pi]> Pyromanik: lol always thought that saying was funny since I know a total of zero people that say "shrimp" instead of prawns :)
45: [00:14:33] <ss23> uh
46: [00:14:39] <ss23> IE8 won't print properly
47: [00:14:46] <ss23> It's printing but cutting content off
48: [00:14:46] <unsignedint> ss23: so CSS not being loaded?
49: [00:14:47] <Pyromanik> fooking proooownz
50: [00:14:50] <ss23> No
51: [00:14:51] <unsignedint> also, fuck IE8
52: [00:14:52] <ss23> CSS loads...
53: [00:14:54] <ss23> Just some doesn
54: [00:15:03] <ss23> Suggested culprit is the IE8 print shiv isn't being "loaded" or something
55: [00:15:04] <ss23> Hard to know
56: [00:15:13] <ss23> shit aint 'workin for them, works for us
57: [00:15:28] <unsignedint> ss23: so yeah teamviewer in, load the site and inspect the source
58: [00:15:36] * travis-ci has joined #silverstripe
59: [00:15:36] <travis-ci> [travis-ci] guttmann/silverstripe-framework#5 (html-text-absolutelink-placeholders - c6d1edf : James Goodman): The build passed.
60: [00:15:36] <travis-ci> [travis-ci] Change view : https://github.com/guttmann/silverstripe-framework/compare/45253ae5ab98...c6d1edf03435
61: [00:15:36] <travis-ci> [travis-ci] Build details : http://travis-ci.org/guttmann/silverstripe-framework/builds/12346203
62: [00:15:36] * travis-ci has left #silverstripe
63: [00:15:54] <unsignedint> or tell the client thy have to use chrome if they want to print
64: [00:16:37] <Colin[pi]> Pyromanik: I'll shoot that pig but I'm not shootin that fookin prawn!
65: [00:16:43] * SightUnseen has joined #silverstripe
66: [00:16:44] * SightUnseen has left #silverstripe
67: [00:17:40] <ss23> simon_w: Oh FANCY PANTS MR CONTRACTOR
68: [00:17:50] <ss23> simon_w: Have you had lunch yet?
69: [00:18:08] <simon_w> Yes
70: [00:18:18] <simon_w> And now I have to head down to your office
71: [00:18:20] <simon_w> Bah!
72: [00:18:25] <ss23> Oh, you're coming in person, sweet
73: [00:18:31] <ss23> simon_w: I still need to get lunch, so I'll get you set up before I head off
74: [00:18:34] <ss23> simon_w: you can sit next to me <3
75: [00:18:36] <ss23> :D
76: [00:18:41] <ss23> Actually, wait
77: [00:18:42] <Colin[pi]> how far is it between your offices?
78: [00:18:43] <simon_w> Do I get a screen? Power?
79: [00:18:43] <ss23> No desks near me
80: [00:18:44] <ss23> :<
81: [00:18:49] <simon_w> Colin[pi], ~300m
82: [00:18:51] <ss23> simon_w: haha, like... 5 mins? Less?
83: [00:18:52] <Colin[pi]> lol k
84: [00:18:58] <Pyromanik> ss23: oh, this print business
85: [00:19:00] <ss23> simon_w: We can give you power ;)
86: [00:19:06] <Pyromanik> why would you need a shiv for that?
87: [00:19:07] <ss23> simon_w: The screen! I dunno...
88: [00:19:11] * joelpittet has joined #silverstripe
89: [00:19:16] <ss23> Pyromanik: Because otherwise IE8 doesn't know how to print, idk
90: [00:19:21] <ss23> Pyromanik: I just listen to the front end people
91: [00:19:24] <Pyromanik> o.0
92: [00:19:25] <Pyromanik> does
93: [00:19:28] <simon_w> Well, I'm not carting my screen down Courtenay Place again
94: [00:19:33] <ss23> lol
95: [00:19:35] <Pyromanik> it's probably something stuipd like a plugin getting in the way
96: [00:19:36] <ss23> simon_w: Not on a laptop?
97: [00:19:40] <ss23> simon_w: But yes, there should be a screen for oyu
98: [00:19:44] <ss23> I can see at least one spare one in front of me
99: [00:19:46] <simon_w> ss23, dual screen
100: [00:19:48] <ss23> probably more if you need them
101: [00:20:09] <simon_w> And now I have to go through all the effort of shutting down SSH connections and the VM
102: [00:20:14] <Pyromanik> simon_w: now 'finally' actually works for silverstripe?
103: [00:20:30] <simon_w> Pyromanik, finally's a 5.5 feature
104: [00:20:36] <Pyromanik> :P
105: [00:20:49] <simon_w> Oh, and I've done contract work for them before
106: [00:21:16] <Pyromanik> but, does it execute before or after the catch?
107: [00:21:22] <simon_w> after
108: [00:21:27] <Pyromanik> but before the throw?
109: [00:21:37] <Pyromanik> hmm, wait, I'm confused
110: [00:21:44] <guzzlefry> throw catch finally iirc
111: [00:21:44] <Pyromanik> never mind me
112: [00:21:48] <Pyromanik> yeh
113: [00:21:50] <Pyromanik> I get theat
114: [00:21:51] <simon_w> finally always happens, and always happens last
115: [00:21:53] <Pyromanik> that*
116: [00:21:58] <Pyromanik> but what if you don't catch?
117: [00:22:07] <simon_w> finally gets called before it leaves
118: [00:22:18] <Pyromanik> so after the 'throw'
119: [00:22:23] <simon_w> Same as if you return from a catch
120: [00:22:25] <simon_w> yup
121: [00:22:44] <Pyromanik> right
122: [00:22:55] <Pyromanik> so yaeh that's what I originally meant, if you return from the catch it still runs
123: [00:22:55] <unsignedint> Pyromanik: finally is typically used for resource cleanup if you opened some resource but an exception was thrown before you could close it cleanly
124: [00:23:06] <Pyromanik> unsignedint: unmalloc!
125: [00:23:10] <Pyromanik> delete!
126: [00:23:13] <Pyromanik> remove all the things!~
127: [00:23:15] <simon_w> ss23, Mark said 20 minutes. Can I just show up now?
128: [00:23:25] <Pyromanik> oh wait, high level language doesn't do that shit :<
129: [00:23:54] <ss23> simon_w: Uh, I doubt anyone here would mind, I'll check... sec
130: [00:24:02] <ss23> wait
131: [00:24:06] <ss23> simon_w: do you know who organised it?
132: [00:24:14] <simon_w> Mark said Tim
133: [00:24:31] <ss23> k, sec
134: [00:24:48] <ss23> simon_w: yeah, come now if you like
135: [00:25:03] <ss23> simon_w: do you have access to gitorious here already?
136: [00:25:20] <simon_w> Think I've only got CWP gitlab
137: [00:25:47] <simon_w> Yeah, was given that instead of gitorious
138: [00:26:50] <simon_w> Pack up, pack up, why you take so long
139: [00:28:08] * mobiusnz quit (Read error: Connection reset by peer)
140: [00:28:27] * mobiusnz has joined #silverstripe
141: [00:28:29] * simon_w quit (Quit: This computer has gone to sleep)
142: [00:31:07] * mobiusnz quit (Read error: Connection reset by peer)
143: [00:33:46] <ss23> wah, simon_w isn't sitting near me
144: [00:33:50] <BPower> I didn't know pull requests would automatically add new commits. Very useful this time, but it probably becomes problematic...
145: [00:35:03] <BPower> https://github.com/silverstripe/silverstripe-framework/pull/2516 - updated to include tests. BAM.
146: [00:37:35] * simon_w has joined #silverstripe
147: [00:38:16] <BPower> simon_w: https://github.com/silverstripe/silverstripe-framework/pull/2516 - updated to include tests. BAM.
148: [00:40:09] <DesignerX> hi, I have an MyObject that's getting renderd with MyObject.ss , how can I use "Menu(1) " inside that template ?
149: [00:41:16] * Bollig|DesignCty has joined #silverstripe
150: [00:42:21] <BPower> DesignerX: I think this might be helpful: http://doc.silverstripe.org/framework/en/tutorials/1-building-a-basic-site#the-navigation-system
151: [00:43:28] <DesignerX> BPower: That works fine on a Page, but not inside the Template used to render MyObject
152: [00:43:37] <unsignedint> DesignerX: $Top.Menu(1) ?
153: [00:44:34] <BPower> Ah, you must be inside a Loop or Control. $Top should serve you well.
154: [00:44:51] * DigNZ quit (Quit: DigNZ)
155: [00:45:28] <Pyromanik> It's time for an earial barrage!
156: [00:45:32] <unsignedint> go!
157: [00:45:39] <atmos> hmmmm
158: [00:45:55] <atmos> anyone ever used a table as a form field?
159: [00:46:02] <Pyromanik> http://www.youtube.com/watch?v=Ywxm6zLEjFY
160: [00:46:32] <unsignedint> YAY METAL
161: [00:46:44] <atmos> \m/
162: [00:47:20] <DesignerX> unsignedint: BPower $Top doesnt seem to be working, could this be becasue MyObject extends DataObject (not Page) ?
163: [00:48:22] <Pyromanik> unsignedint: of course, the ear raid sirens are sounding, what else would it be?
164: [00:48:26] <simon_w> ss23, you just sent me the SQL file. Nothing else :p
165: [00:48:49] <BPower> DesignerX: possibly. I'm not that familiar with Menu's workings.
166: [00:48:57] <BPower> simon_w: would probably know
167: [00:49:05] <unsignedint> DesignerX: I think $Top is a generic feature of the templating engine and refers to teh parent scope. but I dont know if it works in Includes
168: [00:49:18] <unsignedint> well not the parent scope, the outermost scope
169: [00:49:26] <BPower> unsignedint: the issue is more of $Menu, and less of $Top
170: [00:49:51] <unsignedint> oh right
171: [00:50:11] <DesignerX> BPower: I tried $Top.Title in that template, it should return the CurrentPage Title but it didnt work
172: [00:50:13] <ss23> simon_w: What else do you need?!
173: [00:50:14] <unsignedint> ive always hated the silverstripe templating engine, its restricted and has a lot of issues
174: [00:50:53] <simon_w> ss23, the repository URL?
175: [00:51:00] <simon_w> gitorious isn't telling me
176: [00:51:19] * BPower quit (Remote host closed the connection)
177: [00:51:45] <unsignedint> hey DesignerX, what if you created a Menu function on your MyObject that instantiated a SiteTree class and called its Menu function?
178: [00:52:09] <unsignedint> (assuming that SiteTree is where $Menu comes from, I should check)
179: [00:52:36] <DesignerX> unsignedint: sounds like a solution, Time to find where the Menu is created .
180: [00:53:42] <unsignedint> DesignerX: looks like it is on ContentController
181: [00:54:49] <unsignedint> DesignerX: try return Controller::curr()->Menu(1)
182: [00:55:36] <DesignerX> unsignedint: ty, & curr() is the CurrentPage I guess ?
183: [00:56:22] <unsignedint> yeah its the controller of the current page, but they all extend Page_Controller which extends ContentController so it should work
184: [00:59:24] <Pyromanik> no, it's the controller at the top of the stack.
185: [00:59:31] <Pyromanik> technically.
186: [00:59:43] <unsignedint> oh right
187: [01:00:04] <Pyromanik> although last I looked, it wasn't a proper stack.
188: [01:00:13] <unsignedint> I didnt actually know, ive always treated it as the current pages controller and havnt run into any issues
189: [01:00:15] <Pyromanik> which wound me up to no end.
190: [01:00:23] <Pyromanik> unsignedint: most of the time it is.
191: [01:00:49] <Pyromanik> but technically it's not a 'page' as such... it's whatever controller is in the current scope.
192: [01:00:55] <Pyromanik> ContentController or not.
193: [01:00:59] <unsignedint> oh right
194: [01:01:17] <Pyromanik> When you're on a page, it's the controller for that page, so yeh.
195: [01:01:29] <unsignedint> understood
196: [01:01:42] <Pyromanik> I'm just being a pedantic prick, but also a bit of a teaching session if you're listening :P
197: [01:02:02] <unsignedint> In my code, if a template is being called then a user is on a page so thats why it always worked
198: [01:02:05] <DesignerX> Pyromanik: great info :) ty
199: [01:04:27] <DesignerX> Pyromanik: when would I expect it to have problems ?
200: [01:07:48] <Pyromanik> Never, or when there is no controller.
201: [01:08:29] <Pyromanik> unsignedint: long story short, routes pretty much always lead to controllers, so there's almost always one there.
202: [01:09:15] <Pyromanik> A request generally results in a controller or an exception.
203: [01:09:56] <unsignedint> understood
204: [01:09:59] <unsignedint> DesignerX: did it work?
205: [01:10:05] <DesignerX> Pyromanik: May I ask, how long you been doing PHp programming ?
206: [01:10:07] <DesignerX> unsignedint: yep
207: [01:10:11] <unsignedint> sweet!
208: [01:11:06] * DigNZ has joined #silverstripe
209: [01:11:07] * DigNZ quit (Remote host closed the connection)
210: [01:11:21] * DigNZ has joined #silverstripe
211: [01:11:44] <Pyromanik> DesignerX: umm
212: [01:11:56] <Pyromanik> Full time position: 3 years.
213: [01:12:18] <Pyromanik> There was some work before that, but not consistent
214: [01:12:52] <Pyromanik> I started learning off and on in... 2007 I think.
215: [01:13:06] <unsignedint> did you come from a background in other languages or was PHP your first?
216: [01:13:29] <Pyromanik> unsignedint: I have (minimal) experience in C based languages.
217: [01:13:56] <Pyromanik> like, self taught basics and a handful of first year computer science papers
218: [01:14:03] <unsignedint> oh right
219: [01:14:11] <unsignedint> so is PHP the only language you use?
220: [01:14:40] <Pyromanik> I can program in C, C++, PHP, JS, Java (after a bit of re-familiarisation), and I've dabbled a bit in Python
221: [01:14:51] <Pyromanik> Programming is programming.
222: [01:14:58] <unsignedint> indeed, I was just curious
223: [01:15:05] <Pyromanik> Concepts stay the same, syntax changes.
224: [01:15:08] * ajshort has joined #silverstripe
225: [01:15:15] <Pyromanik> I have a degree in Classical History.
226: [01:15:24] <DesignerX> Nice & true , once you learn how to program it will be easier to learn other languages
227: [01:15:25] <unsignedint> sounds useful for programming :P
228: [01:15:27] <Pyromanik> I tought myself PHP to get into web dev so I could do it anywhere
229: [01:15:34] * UncleCheese has joined #silverstripe
230: [01:15:44] <Pyromanik> rather than sit in a cubical at say HP
231: [01:15:49] <Pyromanik> etc
232: [01:15:50] <Avroceptyr> Pyromanik: can you program in Whitespace though?
233: [01:15:54] <Pyromanik> Avroceptyr: no.
234: [01:16:06] <Pyromanik> I did study a bit of ASM, but generally I'm not that low leve.
235: [01:16:08] <Pyromanik> level*
236: [01:16:21] <Avroceptyr> What about using a butterfly?
237: [01:16:31] <Pyromanik> despite having dabbled in Emulation
238: [01:16:51] <unsignedint> did you do a concurrent degree in feminist buddhism?
239: [01:16:57] <Pyromanik> rofl
240: [01:17:08] <Pyromanik> concepts do not compute.
241: [01:17:08] <DesignerX> Avroceptyr: whitespace !
242: [01:17:12] <unsignedint> (apparently its an actual thing)
243: [01:17:18] <Pyromanik> bs
244: [01:17:30] <unsignedint> my friends mother did it
245: [01:17:35] <unsignedint> shes strange
246: [01:17:39] <Pyromanik> sounds it
247: [01:17:59] <Pyromanik> Sounds more like it'd be a degree in Feminism AND Buddhism.
248: [01:18:05] <Pyromanik> not Feminist Buddhism.
249: [01:18:31] <DesignerX> Gogole "whitespace progamming" & found http://net.tutsplus.com/articles/top-10-most-bizarre-programming-languages/
250: [01:18:34] <DesignerX> google *
251: [01:18:35] <Avroceptyr> Do they study the union or the intersection?
252: [01:18:36] <unsignedint> either way its quite useless if you want to contribute something to society
253: [01:18:42] <Avroceptyr> of the two degrees
254: [01:18:49] <Avroceptyr> and yes, Whitespace is an actual language
255: [01:18:53] <Pyromanik> DesignerX: it's a very low level language (pretty much assembly) using only space, tab, etc.
256: [01:19:13] <Colin[pi]> do people just invent useless languages to try and prove something to someone?
257: [01:19:15] <Pyromanik> unsignedint: I wouldn't say that.
258: [01:19:37] <Pyromanik> It takes all sorts to make a leader.
259: [01:20:38] <Pyromanik> but as I understand it Buddhism doesn't give much fucks toward social heirarchy and societal labels, etc.
260: [01:20:52] <Pyromanik> it's all about the self and such.
261: [01:21:05] <Pyromanik> so the concepts being shoved together seems a bit like an oxymoron to me.
262: [01:23:05] <atmos> I turn around for a second and we've gotten political :P
263: [01:24:08] <DesignerX> Ok guys, hope you are in a mood to teach :) I have more questions about Models, Views & controlls .
264: [01:25:00] <DesignerX> 1- Can I have a controller without a Model ?(have some functions that return static test or other "template" related things) & How would I create such a class & make it accesable in the template ?
265: [01:25:27] * ss23 cries
266: [01:25:32] <ss23> My entire day has been spent with only 2 clients
267: [01:25:38] <ss23> I feel like management
268: [01:25:44] <ss23> It's just been like... emailing people and crap
269: [01:25:45] <ss23> ;__;
270: [01:26:27] <Pyromanik> ss23: know them feels
271: [01:26:35] <Pyromanik> DesignerX: 1) yes.
272: [01:26:55] <Pyromanik> 2) class MyController extends Controller {
273: [01:27:14] <Pyromanik> 3) I think you have the purpose of controllers mixed up again
274: [01:27:21] * zagoodwin has joined #silverstripe
275: [01:27:48] <spronk> ugh
276: [01:27:56] <spronk> its taken me most of the day to get this bloody ms sql install working
277: [01:28:07] <longtips> what's the right way to go about an ajax form, i have a contact form and i think in a perfect world, submit would hit the backend with the form, then update just the part of the page that has changed with the validation fields, rather than returning a full page - i'm not entirely sure what the correct way to do this is at all
278: [01:28:09] <spronk> fuck it and its complex users vs logons vs securables vs roles bullshit
279: [01:28:38] <longtips> dumb thing is just doing it manually would take fuck all time, and ignoring the form classes all together
280: [01:30:21] <Pyromanik> longtips: using jquery: $('#contactForm').submit(function(){$(this).load(this.action, $(this).serialize())})
281: [01:30:42] <zagoodwin> Hey, Thanks in advance if anyone can help me out with this one - Say i have <% loop $Slideshow %> <img src="{$CroppedImage(960,200).URL}" > <% end_loop %> but i want to reresize the width to 960 first how would i go about this ?
282: [01:31:10] <DesignerX> Pyromanik: Most info online explains the MVC concept but cant find a "practical" example to show how its done in code, you got any links, docs or anything that can better explain controls ?
283: [01:31:11] * Keksters has joined #silverstripe
284: [01:31:23] <Pyromanik> zagoodwin: $Image.SetWidth(960).CroppedImage(960,200)
285: [01:31:27] <Pyromanik> .URL
286: [01:31:56] <Pyromanik> DesignerX: A controller does 2 things.
287: [01:32:11] <Pyromanik> it changes data & serves views.
288: [01:32:22] <Pyromanik> it makes an action and loads your webpage
289: [01:32:29] <zagoodwin> shit, too easy
290: [01:32:49] <zagoodwin> cheers pyromanik, you always answer my questions
291: [01:32:58] <Pyromanik> by default it takes no action and gives you the template matching the nearest class in it's class heirarchy
292: [01:33:08] <Pyromanik> DesignerX: you can see for yourself.
293: [01:33:15] <Keksters> Is there any way to do a dev build on a non localhost based site? My googles aren't cropping up anything useful.
294: [01:33:19] <Pyromanik> class MyController extends Controller {}
295: [01:33:24] <Pyromanik> make a template MyController.ss
296: [01:33:32] <Pyromanik> in templates
297: [01:33:49] <Pyromanik> then visit (after building and flushing) yoururl/MyController
298: [01:34:02] <Pyromanik> zagoodwin: ha, makes a difference from simon_w
299: [01:34:04] <Pyromanik> :P
300: [01:34:19] <Pyromanik> Keksters: umm
301: [01:34:21] <Pyromanik> what?
302: [01:34:30] <Pyromanik> yourwebsite.tld/dev/build
303: [01:34:31] <Pyromanik> ?
304: [01:34:50] <Avroceptyr> yourmum/MyController
305: [01:34:52] * Avroceptyr sniggers
306: [01:35:08] <DesignerX> Pyromanik: on it
307: [01:35:14] <Colin[pi]> http://i.imgur.com/LfqyX3p.gif
308: [01:35:56] <Keksters> Pyromanik: Is a 404
309: [01:36:49] <Pyromanik> Colin[pi]: I dunno
310: [01:36:51] <Pyromanik> Keksters: can't be.
311: [01:37:17] <Pyromanik> make sure you're loading the correct URL
312: [01:37:46] * BPower has joined #silverstripe
313: [01:38:12] <Keksters> Chrome's not understanding .tld
314: [01:38:34] <BPower> I just joined, but are you talking about dev tld's on Chrome?
315: [01:38:35] <Pyromanik> umm
316: [01:38:37] <Pyromanik> Keksters:
317: [01:38:53] <BPower> E.g. something.dev redirects to a google search?
318: [01:39:00] <Pyromanik> I mean like http://typeinyourdomainhere.co.nz/dev/build
319: [01:39:12] <Keksters> Yes that is also a 404.
320: [01:39:29] <Pyromanik> you're not literally typing in "typeinyourdomainhere.tld" are you?
321: [01:39:30] * travis-ci has joined #silverstripe
322: [01:39:30] <travis-ci> [travis-ci] guttmann/silverstripe-framework#6 (html-text-absolutelink-placeholders - 76a81e0 : James Goodman): The build passed.
323: [01:39:30] <travis-ci> [travis-ci] Change view : https://github.com/guttmann/silverstripe-framework/compare/c6d1edf03435...76a81e0806b0
324: [01:39:30] <travis-ci> [travis-ci] Build details : http://travis-ci.org/guttmann/silverstripe-framework/builds/12349040
325: [01:39:30] * travis-ci has left #silverstripe
326: [01:39:32] <DesignerX> Keksters: maybe you have an error in the code, then you need to enable dev mode
327: [01:39:41] <Pyromanik> DesignerX: it'd give a 500
328: [01:39:45] <DesignerX> Live Mode hids errors & return 404 ?
329: [01:39:51] <DesignerX> ah ! ok
330: [01:40:12] <Keksters> Pyromanik: I didn't initially. I ran it to make sure I wasn't misinterpreting your suggestion
331: [01:40:20] <Pyromanik> tld = top level domain
332: [01:40:30] <Keksters> Evidently.
333: [01:40:34] <Pyromanik> .com .net .nz .uk .us, etc
334: [01:40:39] <Pyromanik> .au
335: [01:40:45] <Keksters> Nonetheless. That's a 404
336: [01:41:05] <DesignerX> Keksters: did you move the site from a Localhost install ? maybe the .htaccess .. again guesses , the last of them :)
337: [01:41:11] <BPower> Pyromanik: Do you know how to force a TextField to default to blank ("") instead of auto-adding the current field value?
338: [01:42:26] <Pyromanik> BPower: where?
339: [01:42:36] <Pyromanik> DesignerX: again, 500
340: [01:42:50] <Pyromanik> Keksters: the only thing I can suggest is that you put the SS install into a subfolder
341: [01:43:07] <Pyromanik> eg. domain.tld/silverstripe/dev/build
342: [01:44:05] <BPower> Pyromanik: in the CMS. E.g. I tried TextField::create('Link', 'The Link')->setValue(''); but it still auto-fills the field with "/the/link/"
343: [01:46:01] <Pyromanik> BPower: because the value gets set after the form creation
344: [01:46:17] <Keksters> There seems to be a lack of any directory or file called build inside the ss install or the webroot. Is this abnormal?
345: [01:46:38] <BPower> Keksters: nope, that's normal
346: [01:46:41] <Pyromanik> Keksters: becuase there no folder
347: [01:46:46] <Keksters> Nor file?
348: [01:46:50] <Pyromanik> no
349: [01:47:06] <Pyromanik> is there a framework folder though?
350: [01:47:09] <BPower> Keksters: it's handled by your apache rewrite rules
351: [01:47:11] <Keksters> Yes. With dev
352: [01:47:30] <Pyromanik> Keksters: and it's in the web root?
353: [01:47:43] <Keksters> Yes
354: [01:47:49] <BPower> If the file/folder doesn't exist, it sends the request to the framework and the framework handles the call.
355: [01:47:58] <Pyromanik> and you have a .htaccess in your webroot also (and the webserver runs apache)?
356: [01:48:25] <trent001> Hey guys which template file loads the main list view for ModelAdmin???
357: [01:48:34] <BPower> Pyromanik: so, is it possible to force it to be blank from getCMSFields?
358: [01:48:39] <Keksters> .htaccess in the webroot yes, unsure about apache.
359: [01:48:44] <Pyromanik> trent001: none, it's a GridField
360: [01:49:01] * SightUnseen has joined #silverstripe
361: [01:49:06] <Pyromanik> Keksters: ok, and the rewrite rule is set correctly?
362: [01:49:18] * SightUnseen has left #silverstripe
363: [01:50:16] <BPower> And your hosts file is set properly?
364: [01:50:42] <Keksters> Maybe not.
365: [01:51:18] <Keksters> Is there anything to say what the htaccess should be? Webmaster copied from another ss folder and that might be the problem.
366: [01:51:42] <Pyromanik> Keksters: check the RewriteBase
367: [01:51:57] <Pyromanik> if the install is in the webroot it should read '/'
368: [01:52:31] <Keksters> We have RewriteBase as '/'
369: [01:52:32] <Pyromanik> https://github.com/silverstripe/silverstripe-installer/blob/3.1/.htaccess
370: [01:52:41] <Pyromanik> default looks like this
371: [01:53:11] <Pyromanik> installer removes the bottom three rewrite lines (grouped ones, ending with the install line) and adds the RewriteBase after the RewriteEngine line
372: [01:53:16] <Pyromanik> otherwise that's good to go
373: [01:54:19] <Pyromanik> Keksters: test you've got the right install by trying to load yoursite.tld/themes/yourthemename/css/layout.css (or whatever you've named your css)
374: [01:54:26] <Pyromanik> if that loads you're in the right place, if not... you've got issues
375: [01:57:13] * travis-ci has joined #silverstripe
376: [01:57:13] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1199 (3.1 - c6c187b : Simon Welsh): The build passed.
377: [01:57:13] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/55c6f35e159f...c6c187b083db
378: [01:57:13] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12349530
379: [01:57:13] * travis-ci has left #silverstripe
380: [01:57:35] <trent001> Hey Pyro basically what I want to do is include some instructions for a few pages in the cms for a client right above or below the main cms updating area. Does anyone have a good way to do this I was thinking I would have to find the right template and overload it with some conditional tags.... Probably not the best way to do this but I just need a hard and fast fix to get it working for now.
381: [01:59:35] <guzzlefry> trent001: For Pages pages?
382: [01:59:36] <Keksters> Pyromanik: layout.css comes up. Some of mod_rewrite lines are different from the page you posted.
383: [02:00:18] <trent001> Ok wasn't actually doing pages but I will keep looking cheers guzzlefry
384: [02:00:33] <guzzlefry> trent001: I mean, which parts of the CMS?
385: [02:00:46] <guzzlefry> Is it only a certain section?
386: [02:03:25] <trent001> The security section. The client has to add users themselves and I want to leave them some detailed instructions so they can't get it wrong basically :S
387: [02:03:53] <Keksters> .htaccess is now the same as the github link minus the bottom three rewrite rules and plus the rewrite base. dev/build on my site still brings up a 404
388: [02:06:35] <BPower> I want to add a GridField within a GridField (recursively) - is this only possible 2 deep in the ModelAdmin?
389: [02:07:38] <Colin[pi]> yo dawg
390: [02:07:47] <Colin[pi]> I heard you like gridfields...
391: [02:07:57] <BPower> i knew someone was going to say that
392: [02:08:08] <BPower> hah
393: [02:08:31] <BPower> E.g. SomeObject has_many SomeObject (recursive) and SomeObject shows a gridfield to manipulate the relationships
394: [02:09:08] * DigNZ quit (Ping timeout: 240 seconds)
395: [02:12:55] <BPower> New idea. Is there currently a way to build a multi-tiered gridfield? Instead of linear, and more like /admin/pages?
396: [02:16:45] * DigNZ has joined #silverstripe
397: [02:16:50] * DigNZ quit (Remote host closed the connection)
398: [02:17:05] * DigNZ has joined #silverstripe
399: [02:17:24] * travis-ci has joined #silverstripe
400: [02:17:24] <travis-ci> [travis-ci] ajshort/silverstripe-cms#9 (pull-1 - b7476f2 : Andrew Short): The build passed.
401: [02:17:24] <travis-ci> [travis-ci] Change view : https://github.com/ajshort/silverstripe-cms/compare/daf92e6ce031^...b7476f2a46de
402: [02:17:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/ajshort/silverstripe-cms/builds/12350005
403: [02:17:24] * travis-ci has left #silverstripe
404: [02:19:32] <Keksters> I'm also having an issue with my theme's css. I've changed the SSViewer to my theme but a look at the head tags tells me that it's still getting the css from simple and manually changing the theme in settings causes the site to lose my theme entirely
405: [02:21:05] <guzzlefry> Keksters: hard refresh the browser maybe?
406: [02:22:30] <Keksters> I've done a flush=all as well as hard refresh and cache empty then hard refresh
407: [02:22:41] <Keksters> Although I'm not completely certain my flushes are working.
408: [02:22:59] <Keksters> Which might stem to the issue I'm having with dev/build
409: [02:27:07] <Keksters> I removed the css requires in mysite/code/Page.php and put my css requires in the theme but it's still calling them from simple.
410: [02:27:26] <unsignedint> Keksters: does /dev/build finish successfully with no errors? sometimes it errors and doesnt tell you want it is (output is just cut off with no hint of an error), this is due to php error_reporting settings
411: [02:27:47] <Keksters> dev/build is currently a 404 for me.
412: [02:27:54] <unsignedint> somethings borked then
413: [02:28:18] <Keksters> Yuuup.
414: [02:28:23] <unsignedint> I would get /dev/build?flush=1 working before trying to troubleshoot anything else
415: [02:28:57] <BPower> So, has no one tried setting up a Tree structure outside of SiteTree in SilverStripe? E.g. PersonObject has_many ChildrenObject => PersonObject
416: [02:29:21] <BPower> I need some way to represent this tree parent/children structure in the CMS...
417: [02:29:23] <unsignedint> BPower: I normally use SiteTree for that :P
418: [02:29:24] <atmos> would it be possible to make a table field for userforms?
419: [02:29:27] <atmos> long shot
420: [02:29:45] <unsignedint> atmos: yep its opensource, nobody is stopping you from coding it :P
421: [02:30:26] <Keksters> Well I've rewritten my .htaccess to the default. I guess the next thing to check is apache?
422: [02:30:39] <unsignedint> Keksters: yeah make sure mod_rewrite is enabled
423: [02:30:59] <BPower> unsignedint: ya... That's practical in this case. A good example is adding a Member has_many DirectReports=>Member
424: [02:31:11] <unsignedint> BPower: I typically implement relationships like that using GridField but it does start to get messy
425: [02:31:51] <BPower> unsignedint: Ya, that's what I started doing but I got two gridfields deep before it started failing
426: [02:32:07] <unsignedint> what do you mean by failing?
427: [02:32:12] * travis-ci has joined #silverstripe
428: [02:32:13] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#599 (3.1 - 095c784 : Simon Welsh): The build passed.
429: [02:32:13] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/c3e25e9e0733...095c78426b41
430: [02:32:13] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/12350342
431: [02:32:13] * travis-ci has left #silverstripe
432: [02:32:23] <BPower> it just redirected back to the top object edit page
433: [02:32:26] <unsignedint> i found that you have to set up the inverse relation or it generates invalid queries
434: [02:32:31] <unsignedint> oh okay
435: [02:32:35] <unsignedint> cant say ive experienced that
436: [02:32:48] <unsignedint> but I dont think ive ever gone more than 2 GridFields deep
437: [02:33:06] <Colin[pi]> we have to go deeper...
438: [02:33:17] <unsignedint> GridField inception, yes
439: [02:33:19] <Colin[pi]> BRAAAAAAAHHHHMP
440: [02:33:34] <EasyCo> Nobody's ever been that deep before
441: [02:33:46] <Colin[pi]> balls deep
442: [02:34:07] <BPower> BRAAAAAAAAHMP
443: [02:34:10] <BPower> I like it.
444: [02:34:11] <Keksters> unsignedint: mod_rewrite is enabled
445: [02:34:31] <BPower> Do you have Apache 4.9 installed?
446: [02:35:00] <unsignedint> Keksters: yeah what version of apache, SS breaks on newer versions afaik
447: [02:35:02] <Keksters> Apache 2
448: [02:35:11] <Keksters> .2.22
449: [02:35:21] <unsignedint> oh should be fine then, it was 2.4 I had issues with
450: [02:35:22] * BPower was totally kidding. That version doesn't exist. (I'm evil.)
451: [02:35:39] <BPower> unsignedint: Mine works fine with 2.4
452: [02:35:41] <unsignedint> BPower: you had me, I thought it was a beta version or something haha
453: [02:35:49] <unsignedint> BPower: SS 3.1?
454: [02:36:29] <unsignedint> coz my SS 3.0 site kept putting /index.php/ on every url, even though mod_rewrite was enabled and working
455: [02:37:01] <Colin[pi]> unsignedint: deleting the file fixed that for me
456: [02:37:01] <BPower> unsignedint: oh weird. I'm running 2.2.22. I thought I was running 2.4.
457: [02:37:02] <Keksters> My site's doing that
458: [02:37:20] <Colin[pi]> if I delete my index.php, the urls work fine ;O
459: [02:37:33] <BPower> try renaming index.php to index.php.bak
460: [02:37:47] <unsignedint> Colin[pi]: Oh really? I didnt think of that, I forgot that it gets rewritten to framework/main.php so index.php isnt even needed really
461: [02:38:00] <Colin[pi]> yeah or rename it as BPower said, just in case
462: [02:40:43] <zagoodwin> hey whats the easiest way for me to make my upload field appear above the content input, on the same tab
463: [02:40:50] <Keksters> Hum. Our other ss site does a dev/build
464: [02:41:08] <BPower> zagoodwin: isn't there an InsertBefore method?
465: [02:41:41] <Colin[pi]> ->addFieldToTab('Foo.Bar.Tab',$field,'Content');
466: [02:42:06] <atmos> unsignedint: I plan to :) I was more asking if anyone else might have already done it
467: [02:43:29] <atmos> I'm guessing I would just use this? http://doc.silverstripe.org/framework/en/3.0/reference/tablefield seems pretty straightforward
468: [02:43:43] <Keksters> Is it also perhaps indicitive that when I'm editing a page the page preview on the right says page not found?
469: [02:44:55] <zagoodwin> thanks again for that guys
470: [02:47:19] <Pyromanik> Keksters: if your site is doing /index.php/blah
471: [02:47:40] <Pyromanik> then you'll need to call index.php/dev/build
472: [02:47:46] <Pyromanik> and figure out why index.php is being called.
473: [02:47:54] <Pyromanik> usually it's because no mod-rewrite
474: [02:48:13] <Pyromanik> if mod-rewrite is definitely on, then delete the index.php
475: [02:48:21] <Keksters> Hum
476: [02:49:16] <Keksters> Deleted the index.php now mysite.tld/dev/build doesn't load whereas index.php/dev/build ran
477: [02:49:45] <Keksters> Aaaand site's now broken.
478: [02:49:54] <Pyromanik> Keksters: if it did, and index.php is deleted, then it's definitely not the right site
479: [02:50:13] <Pyromanik> Keksters: index.php is a fallback for no mod_rewrite.
480: [02:50:42] <Keksters> mod_rewrite was enabled =/
481: [02:50:48] <Pyromanik> well it's not.
482: [02:50:54] <Pyromanik> OR
483: [02:50:58] <Keksters> So apache's being shit?
484: [02:51:10] <Pyromanik> allow override is being denied from the vhost, so your mod_rewrite isn't loading
485: [02:51:15] <Pyromanik> err, .htaccess
486: [02:51:26] <Pyromanik> you can test by putting "aqiopgjabha;jgklajgijagjiasd" into the middle of it.
487: [02:51:32] <Pyromanik> it should error.
488: [02:51:36] <Keksters> In the htaccess?
489: [02:51:39] <Pyromanik> yeh
490: [02:51:44] <Pyromanik> just put some bullshit in there
491: [02:51:49] <Pyromanik> it should give you an error
492: [02:51:51] <Pyromanik> 500
493: [02:51:55] <Keksters> How will I know it is erroring when my site's dead
494: [02:51:56] <Keksters> ?
495: [02:52:02] <ss23> simon_w: did you want a test laptop?
496: [02:52:03] <Pyromanik> it's not dead.
497: [02:52:03] <ss23> simon_w: :3
498: [02:52:14] <ss23> simon_w: https://github.com/silverstripe/silverstripe-cms/pull/871 We have some IE you can use to test this :)
499: [02:52:24] <simon_w> ss23, can you test for me? ;)
500: [02:52:29] <ss23> I'm busy
501: [02:52:29] <ss23> here
502: [02:52:32] <Keksters> Well I'm getting a 403 on it
503: [02:52:37] <Pyromanik> forbidden
504: [02:52:43] <Keksters> Yes.
505: [02:52:45] <Pyromanik> no indexing allowed
506: [02:53:04] <Pyromanik> I think your vhost is misconfigured
507: [02:53:05] <Keksters> 403 didn't change after putting gibberish into htaccess
508: [02:53:14] <Pyromanik> Keksters: yeah, it should give you a 500
509: [02:53:22] <Pyromanik> .htaccess isn't being read.
510: [02:53:29] <Avroceptyr> what about file permission on the documentroot
511: [02:53:35] <Pyromanik> ^
512: [02:53:43] <Avroceptyr> can www-data (or whatever user) read/execute on that dir?
513: [02:53:51] <Pyromanik> read files, exec dir.
514: [02:53:51] <Keksters> There was issue with finding databases on localhost.
515: [02:54:11] <ss23> :D
516: [02:54:14] <ss23> tfw you tell simon_w to test
517: [02:54:16] <ss23> IRL no less
518: [02:54:16] <ss23> :3
519: [02:54:19] <Pyromanik> you should put the index.php back into the site Keksters
520: [02:54:25] <Pyromanik> at least it'll work in the mean time
521: [02:54:36] <Keksters> Yes, I need to locate the backup.
522: [02:54:37] <Pyromanik> just know that you need to index.php/dev/build
523: [02:54:46] <Pyromanik> Keksters: github
524: [02:54:47] <Keksters> Yeah, and index.php/admin =/
525: [02:54:58] <Pyromanik> yeh
526: [02:55:17] <Pyromanik> /anything -> /index.php/anything
527: [02:55:28] <Pyromanik> https://github.com/silverstripe/silverstripe-installer/blob/3.1/index.php
528: [02:56:00] <Keksters> Got it
529: [02:56:04] <Pyromanik> you have 2 options: 1) move all the htaccess stuff into the vhost definition
530: [02:56:18] <Pyromanik> 2) find someone who knows more about apache to allow the .htaccess to be read.
531: [02:56:29] <Pyromanik> I'm not sure the specifics
532: [02:56:38] <Keksters> Okay, thanks. Will hopefully get someone onto it after their tea break
533: [02:56:42] <Pyromanik> but iirc something like allowoverride
534: [02:56:53] <Avroceptyr> Keksters: AllowOverride All
535: [02:56:55] <Pyromanik> because there's also .htaccess files in framework, assets, etc.
536: [02:56:58] <Avroceptyr> then see if that works
537: [02:57:12] <Avroceptyr> if it does, then reduce "All" to a level you are comfortable with
538: [02:57:24] <Keksters> Sounds like a plan, thanks
539: [02:57:34] * mobiusnz has joined #silverstripe
540: [02:57:37] <Pyromanik> Keksters: I imagine it's cpanel controlled or something?
541: [02:57:42] <Pyromanik> should be some kind of option in there for it
542: [02:57:54] <Pyromanik> since that's probably why it's different from your other sites in the first place
543: [02:58:25] <Avroceptyr> So there were two people in a channel, /part and /quit. When /part said bye and went, who was left?
544: [02:58:53] <longtips> the guy getting banned for being a dumb-joke aussie
545: [02:58:57] <longtips> did i win?
546: [02:59:05] <Avroceptyr> hahaha
547: [03:00:16] * wilr_ quit (Quit: wilr_)
548: [03:00:24] <EasyCo> Alt+F4?
549: [03:01:34] <simon_w> Yaaay, packagist died
550: [03:01:38] <simon_w> ss23, FIX IT!
551: [03:01:44] <ss23> NU UH
552: [03:01:45] <ss23> ;_;
553: [03:01:50] <simon_w> NEED IT
554: [03:02:59] <simon_w> Suppose I can use install instead of update
555: [03:04:44] <Keksters> Will gibberish in the htaccess cause a 500 no matter what?
556: [03:05:06] <Avroceptyr> yes
557: [03:05:10] <Avroceptyr> or a misconfig
558: [03:05:15] <Avroceptyr> check your vhost error log
559: [03:05:37] <Pyromanik> Keksters: usually
560: [03:05:53] * nickmolhoek quit (Quit: nickmolhoek)
561: [03:06:01] <Pyromanik> Keksters: the other thing is to try changing rewrite base to something that it isn't.
562: [03:06:45] <Keksters> Mmm. Definitely not then
563: [03:07:08] <Keksters> Didn't have permissions on my earlier tries so just double checking that the htaccess isn't working
564: [03:07:14] <Keksters> Being read
565: [03:07:19] * zippy__ quit (Ping timeout: 265 seconds)
566: [03:07:31] <Colin[pi]> I love it when I have enough foresight to write some very reusable code :)
567: [03:08:14] <Pyromanik> Colin[pi]: umm, every day?
568: [03:08:41] <Pyromanik> so
569: [03:08:44] <Colin[pi]> I try but sometimes the plan works better than others
570: [03:09:30] <Pyromanik> simon_w: onBeforeWrite(){ if(!$this->Blah) $this->Blah = SS_Datetime::now();
571: [03:09:47] <Pyromanik> this doesn't set the changed value, so doesn't get written, I'm longface over it. What do?
572: [03:09:58] <simon_w> $this->Blah = 'now';
573: [03:10:04] <Pyromanik> o.0
574: [03:10:06] <Pyromanik> really
575: [03:10:23] <Pyromanik> but so... why doesn't setting datetime::now work?
576: [03:10:46] <Colin[pi]> rfc mehtod
577: [03:11:02] <Pyromanik> eh
578: [03:11:19] <Colin[pi]> Rfc2822()
579: [03:11:34] <Colin[pi]> SS_Datetime::now()->Rfc2822()
580: [03:11:41] <Pyromanik> no but like
581: [03:11:42] <Pyromanik> no
582: [03:11:49] <Stomach> lol
583: [03:11:53] <Pyromanik> SS_Datetime::now() has worked.
584: [03:11:56] <Pyromanik> previously.
585: [03:11:58] <Pyromanik> correctly.
586: [03:12:09] <simon_w> Because it doesn't like you
587: [03:12:16] <Pyromanik> yeh, must be.
588: [03:12:18] <Pyromanik> :<
589: [03:13:19] <Pyromanik> that did work though Colin[pi]
590: [03:13:28] <Pyromanik> now I'm weirdface.
591: [03:13:49] <ss23> simon_w: How is it going btw? (The work, that is)
592: [03:15:45] * atmos wonders if guzzlefry managed to get his payment stuff working
593: [03:16:53] <Pyromanik> Dunno, ask your mum atmos
594: [03:17:11] <simon_w> ss23, gotta test this in IEs, there's the one we can't reproduce and the others are either merged or waiting for review
595: [03:17:45] <ss23> sweeet
596: [03:17:50] <simon_w> ss23, related, how do I get to an IE that isn't 7?
597: [03:18:01] <ss23> Try "Other OSes"?
598: [03:18:05] <ss23> There's IE9
599: [03:18:06] <ss23> like
600: [03:18:11] <ss23> when oyu boot up, it'll give oyu an OS listing
601: [03:18:14] <ss23> you pick the one with the right IE
602: [03:18:27] <simon_w> Oh, so it's on boot
603: [03:18:29] <simon_w> It was already on
604: [03:18:43] <ss23> ah yep
605: [03:18:44] <ss23> on boot
606: [03:18:58] <ss23> And the windows 7 IE8 option is actually IE9, cause the bastard automatically updated >.<
607: [03:19:10] <ss23> So you'll have to find another IE8 version or figure out how to revert it etc
608: [03:19:13] <ss23> :P
609: [03:19:20] <ss23> There might be an XP IE8 in the other OS option
610: [03:21:12] <Colin[pi]> data modelling question
611: [03:21:21] <Colin[pi]> client of mine wants a page of hireable equipment
612: [03:21:31] <Colin[pi]> they want a selection of them shown on homepage too
613: [03:21:32] <Colin[pi]> with pics
614: [03:21:42] <Colin[pi]> would you build them as pages or DO's?
615: [03:21:59] <Colin[pi]> EquipmentPage or Equipment DO
616: [03:24:19] <simon_w> ss23, can you do a composer update and push?
617: [03:24:23] <atmos> Pyromanik: mum doesn't know :< she hates php
618: [03:24:34] <ss23> simon_w: push to staging?
619: [03:24:50] <simon_w> ss23, yeah
620: [03:24:58] <guzzlefry> atmos: Got sidetracked by other projects.
621: [03:25:02] <simon_w> I haven't committed a new lock file, so you'll need that
622: [03:25:57] <ss23> yep
623: [03:26:13] <ss23> updated cms, framework, advancededworkflow, guzzle/http, guzzle/common
624: [03:26:16] <ss23> all good simon_w/
625: [03:26:25] <simon_w> sweet, thanks
626: [03:28:58] <ss23> simon_w: deployed ^.^
627: [03:29:45] <simon_w> ss23, and I'm uninstalling the IE9 update for you
628: [03:29:56] <ss23> ty
629: [03:29:56] <ss23> :D
630: [03:30:11] <ss23> I would've done it myself, but I've had an angry government department to deal with and it was faster to find another laptop
631: [03:30:14] <ss23> :P
632: [03:31:27] <simon_w> So, Peavers again? :p
633: [03:31:54] <DesignerX> hi, anyone knows where to find the "breakcrumbs" template used at the top-left of ModelAdmin ? need to change it so it use the "ID" if Name or Title are empty
634: [03:33:28] * cloph has joined #silverstripe
635: [03:34:04] * cloph_away quit (Ping timeout: 264 seconds)
636: [03:35:47] <simon_w> DesignerX, override getTitle() in your DataObject
637: [03:35:53] <guzzlefry> DesignerX: framework/admin/templates
638: [03:35:56] <guzzlefry> oh
639: [03:36:09] <guzzlefry> That way seems better. :P
640: [03:36:21] <DesignerX> simon_w: that will casue me problems in the template as $Title will return true & starts to print the ID
641: [03:36:27] <Pyromanik> atmos: ... did that go straight over your head or did you just choose to ignore it like a chump? :<
642: [03:37:35] * atmos quit (Ping timeout: 250 seconds)
643: [03:40:00] <guzzlefry> Pyromanik: see what you did! :P
644: [03:43:35] * T8 has joined #silverstripe
645: [03:43:45] <T8> Hey guys! I have a questions about datalists.
646: [03:44:06] <T8> Is there any way I can join tables and sort from a seperate table on a datalist?
647: [03:44:33] <T8> eg: query is Datalist::create('Car')->leftJoin('Vote', '"Car"."ID" = "Vote"."CarID"', 'Vote');
648: [03:44:40] <T8> and sort that from the votes?
649: [03:45:34] <Avroceptyr> http://www.airnewzealand.com/safetyoldschool
650: [03:45:37] <Avroceptyr> ^ :D
651: [03:47:52] <guzzlefry> T8: ->sort() maybe?
652: [03:48:48] <T8> Ive tried that, it doesn't work so I tried Datalist::create('Car')->leftJoin('Vote', '"Car"."ID" = "Vote"."CarID"', 'Vote')->sort('COUNT(Vote.ID)', 'DESC'); but it returns the same list...
653: [03:49:28] <EasyCo> What's the go with ->stat()?
654: [03:49:42] <EasyCo> Why not just self::$my_static?
655: [03:50:00] <EasyCo> Or am I not understanding its use properly
656: [03:50:22] <ss23> psh
657: [03:50:33] <ss23> simon_w: has headphones on, he's missing out on the "Am I not pretty enough?!"
658: [03:50:48] <simon_w> ss23, because I'm not stupid :p
659: [03:50:55] <ss23> loool
660: [03:51:45] <DesignerX> guzzlefry: found it at framework\admin\templates\CMSBreadcrumbs.ss
661: [03:56:09] <Pyromanik> 16:39 < guzzlefry> Pyromanik: see what you did! :P
662: [03:56:12] <Pyromanik> Glad someone did!
663: [03:56:35] <Pyromanik> EasyCo: won't work if someone's updated the setting
664: [03:56:44] <Pyromanik> self::static will only work in that one class.
665: [03:56:54] <Pyromanik> because 1) private 2) only used for defaults.
666: [03:57:43] <Pyromanik> 16:50 <@ss23> "Am I not pretty enough?!"
667: [03:57:48] <Pyromanik> Eh, I can do better.
668: [03:58:02] <EasyCo> Pyromanik: Thanks… I guess
669: [03:58:41] <trent001> Does anybody know any way I can add some basic HTML just a h1 and p tag above the model admin gridfield which shows when you first load a a modeladmin can't for the life of me figure it out.
670: [03:58:51] <Pyromanik> EasyCo: you don't understand?
671: [03:59:08] <ss23> I KNEW YOU WERE TROUBLE WHEN YOU WALKED IN
672: [03:59:16] <ss23> SO SHAME ON ME, NOW, SOMETHING PLACES NEVER BEEN
673: [03:59:20] <EasyCo> Pyromanik: Not as well as I'd like
674: [03:59:31] <guzzlefry> ss23: bro!
675: [03:59:31] <ss23> Now I'm lying on the cold hard Drupal
676: [03:59:32] <ss23> OH OH
677: [03:59:35] <Pyromanik> private statics are only the value the config system is initiated. Config system is no longer just a bunch of statics - it's separate and in-memory.
678: [03:59:39] <ss23> WUBBLE WUBBLE WUBBLE
679: [03:59:41] * T8 quit (Ping timeout: 250 seconds)
680: [04:00:22] <EasyCo> For 3.1, not 3.0?
681: [04:00:27] <trent001> : S man this should be simple but i'm kinda stumped on it.
682: [04:01:55] <EasyCo> So I'm referring to public statics
683: [04:02:12] <Pyromanik> EasyCo: both.
684: [04:02:22] <Pyromanik> or 3.1 especially.
685: [04:02:28] <ss23> need more music
686: [04:02:29] <ss23> ideas?
687: [04:02:31] <Pyromanik> to be fair I'm not sure about 3.0
688: [04:02:35] <ss23> preferably something that isn't incredibly distracting
689: [04:02:56] <Pyromanik> ss23: Plague of Butterflies
690: [04:02:59] <ss23> lol
691: [04:03:00] <EasyCo> Pyromanik: Thanks anyways, gonna have a play around see if I can clear things up in the brain o' mine
692: [04:03:00] <ss23> nooooo
693: [04:03:11] * Pyromanik quit (Quit: leaving)
694: [04:03:19] <ss23> he's getting good at the 5pm leaving!
695: [04:10:17] <trent001> Does anbody know in the template file: ModelAdmin_EditForm.ss which other template file is it including with <% include Form %>
696: [04:15:55] <Keksters> So. We finally found our error. It was another set of configurations for the apache that wasn't letting any of the overrides work.
697: [04:16:07] <trent001> Never mind found it
698: [04:16:14] <ss23> Good work finding it, kr:D
699: [04:16:17] <ss23> Keksters*
700: [04:16:48] <Keksters> Well, my dad spent the last hour going around in circles to find it. He's the apache man
701: [04:19:16] <Keksters> However this has sorted out subsequent theme, page and backend issues.
702: [04:19:25] <Keksters> Yey
703: [04:20:16] <guzzlefry> rawr
704: [04:20:27] <guzzlefry> My vim skills are broken.
705: [04:22:31] <ss23> go to answer phone
706: [04:22:32] <ss23> body is like "now is good time to get throat all weird and neeed to cough, rite?"
707: [04:22:35] <ss23> DAMN YOU BODY
708: [04:22:47] <guzzlefry> heh
709: [04:27:36] <longtips> should i just fix this myself for now http://i.imgur.com/JpbQxad.png
710: [04:27:39] <longtips> can't really upgrade
711: [04:28:20] <ss23> ...
712: [04:28:22] <ss23> wtf
713: [04:29:15] <ss23> longtips: I am confused, is that 2.4 or what/
714: [04:29:22] <ss23> On on earth used the /e modifier!
715: [04:30:06] <longtips> php 5.5.1-2, silverstripe 3.0.5
716: [04:30:22] <ss23> Uhhhhh
717: [04:30:25] <ss23> >.>
718: [04:30:38] <ss23> I presume that's fixed in latest 3.0.5 simon_w?
719: [04:30:39] <ss23> uh
720: [04:30:41] <ss23> 3.0, I should say
721: [04:30:59] <longtips> it's in git somewhere eh?
722: [04:31:00] <simon_w> Yes
723: [04:31:00] * longtips goes to check
724: [04:31:13] <simon_w> longtips, just get 3.0.7 or whatever it is
725: [04:31:32] <longtips> do i just replace framework and cms?
726: [04:31:47] <ss23> longtips: Yeah!
727: [04:31:49] <ss23> :D
728: [04:32:03] <ss23> longtips: If your project is composer, just "composer update silverstripe/framework silverstripe/cms" and it'll be done, basically
729: [04:32:31] <longtips> that my furry friend is a very good point
730: [04:32:36] <ss23> ;_;
731: [04:32:38] <ss23> I AM NOT A FURRY
732: [04:32:51] <longtips> what doessss the fox sayyyy
733: [04:33:01] <ss23> >.<
734: [04:36:09] <simon_w> You don't want to know
735: [04:36:10] <DryerLintPurple> (that preg thing is a change in php 5.5)
736: [04:36:12] <spronk> wow
737: [04:36:13] <spronk> tomcat
738: [04:36:16] <spronk> is the most obnoxious piece of software
739: [04:36:36] <simon_w> DryerLintPurple, yeah, and I fixed it a couple of days after it got committed :p
740: [04:36:45] <DryerLintPurple> oic :P
741: [04:37:06] * stecman quit (Quit: This computer has gone to sleep)
742: [04:37:28] <ss23> simon_w: Wait, wasn't that the fix you commited that completely broke emails for 2.4 or something?
743: [04:37:38] <ss23> I remember being mad at you one day for doing a broken commit to somewhere
744: [04:37:38] <ss23> :P
745: [04:37:42] <simon_w> Yup! And then that bit got fixed :p
746: [04:37:47] <ss23> lol
747: [04:37:55] <simon_w> It was the only use of /e that wasn't covered by tests
748: [04:38:06] <simon_w> Anyway, fix this: https://github.com/silverstripe/silverstripe-cms/issues/872
749: [04:38:10] <simon_w> It's for a client and stuff
750: [04:38:14] <ss23> haha
751: [04:38:19] <ss23> Yeah, I'll see if I can get someoen to
752: [04:41:17] <longtips> 3.0.8 claims to be 14megs
753: [04:41:26] <simon_w> That sounds small
754: [04:42:29] <longtips> ok
755: [04:45:55] <ss23> "@ss2342 hey I found your twitter account and see that you hot. lets KlK - babygirly90"
756: [04:46:03] <ss23> That's right, I get all the twitter babes ;)
757: [04:48:12] * simon_w quit (Quit: This computer has gone to sleep)
758: [04:50:10] <guzzlefry> ss23: She probably heard you playing Call Me Maybe from across the country. :P
759: [04:51:55] * UncleCheese quit (Quit: UncleCheese)
760: [04:56:25] <ss23> hahha
761: [04:57:54] <longtips> fuck aye
762: [04:57:59] <longtips> email to self in broken for loop
763: [04:58:05] <longtips> 'pro'grammer more like
764: [05:01:55] <DesignerX> is there a way to install SS without browsing to install.php & just let it use existing Database info in _config.php ?
765: [05:05:20] <guzzlefry> DesignerX, What's what I do. :P
766: [05:06:25] <guzzlefry> Database info aside from the database name needs to go into _ss_environment.php though.
767: [05:06:42] <guzzlefry> And I think there were a few gotchas to skipping the install script, but can't remember.
768: [05:08:58] <DesignerX> guzzlefry: time for more research :)
769: [05:09:13] <DesignerX> Google ss_environment
770: [05:09:22] <guzzlefry> ?
771: [05:12:02] <DesignerX> guzzlefry: you reminded me of what I shopuld be looking for , http://doc.silverstripe.org/framework/en/topics/environment-management
772: [05:12:09] <DesignerX> should *
773: [05:12:16] <guzzlefry> oh \o/
774: [05:12:55] <guzzlefry> $_FILE_TO_URL_MAPPING <--- Is this needed anymore?
775: [05:13:00] <ss23> guzzlefry: Yes
776: [05:13:03] <ss23> Well, "needed"
777: [05:13:18] <guzzlefry> I've never actually needed it before, but this project has it in there...
778: [05:14:45] <guzzlefry> oh, derpaderp
779: [05:14:54] <guzzlefry> This might work better if I had the database moved over.
780: [05:16:14] * SightUnseen has joined #silverstripe
781: [05:16:15] * SightUnseen quit (Client Quit)
782: [05:18:07] * Keksters quit (Ping timeout: 250 seconds)
783: [05:22:00] * DigNZ quit (Quit: DigNZ)
784: [05:25:42] * Shrike_Finland has joined #silverstripe
785: [05:36:30] * DigNZ has joined #silverstripe
786: [05:36:31] * DigNZ quit (Remote host closed the connection)
787: [05:36:45] * DigNZ has joined #silverstripe
788: [05:38:29] * zagoodwin quit (Ping timeout: 250 seconds)
789: [05:39:18] * DigNZ quit (Client Quit)
790: [05:45:13] * DigNZ has joined #silverstripe
791: [05:45:14] * DigNZ quit (Remote host closed the connection)
792: [05:45:28] * DigNZ has joined #silverstripe
793: [05:46:49] * DigNZ quit (Client Quit)
794: [05:50:26] * SightUnseen has joined #silverstripe
795: [05:50:44] * SightUnseen has left #silverstripe
796: [06:02:38] * EasyCo quit (Quit: EasyCo)
797: [06:08:34] * trent001 quit (Remote host closed the connection)
798: [06:12:26] * SightUnseen has joined #silverstripe
799: [06:16:57] * SightUnseen1 has joined #silverstripe
800: [06:17:52] * guci0 has joined #silverstripe
801: [06:18:13] <guci0> Hi there!
802: [06:18:33] <guzzlefry> evening sir
803: [06:21:08] * SightUnseen1 quit (Ping timeout: 240 seconds)
804: [06:27:02] * SightUnseen1 has joined #silverstripe
805: [06:31:23] * SightUnseen1 quit (Ping timeout: 248 seconds)
806: [06:36:13] * sam___ has joined #silverstripe
807: [06:36:15] <sam___> hi
808: [06:36:34] <sam___> m facing trouble with member autologin...
809: [06:37:03] <sam___> can anybody help?
810: [06:39:13] * SightUnseen quit (Quit: Leaving.)
811: [06:39:54] * zfmf1 has joined #silverstripe
812: [06:46:08] <sam___> Cookie 'alc_enc' can't be set---Getting error
813: [06:46:38] <guzzlefry> headers already sent?
814: [06:47:11] * willr has joined #silverstripe
815: [06:47:18] <guzzlefry> sam___: Check the logs, there are plenty of occurences of that.
816: [06:47:43] <sam___> could you explain it more?
817: [06:47:48] <sam___> didnt get your point
818: [06:48:36] <guzzlefry> sam___: In topic: http://ss.org.nz/logs
819: [06:48:38] <guzzlefry> anyway
820: [06:49:09] <guzzlefry> sam___: Does your error have a line number like this one: [User Warning] Cookie 'alc_enc' can't be set. The site started outputting was content at line 29 in
821: [06:50:29] <sam___> yes
822: [06:51:31] <guzzlefry> sam___: What's on the line number?
823: [06:52:27] <guzzlefry> Also, to explain, once you send any output to the browser, even something hard to notice like a single space, you can't set cookies or send any additional headers.
824: [06:53:29] <guzzlefry> http://php.net/manual/en/function.header.php That probably explains it better than I.
825: [06:53:54] <sam___> ok thnx
826: [06:54:12] <guzzlefry> np
827: [06:54:34] <sam___> its in multiform
828: [06:54:47] <sam___> Cookie 'alc_enc' can't be set. The site started outputting was content at line 368 in /home/planmyto/public_html/multiform/code/MultiFormStep_TournamentPlanner.php
829: [06:54:51] <guzzlefry> not familiar with that
830: [06:54:54] <sam___> ok
831: [06:54:59] <guzzlefry> oh
832: [06:55:14] <guzzlefry> sam___: So what's on line 368 of MutliFormStep_TournamentPlanner.php?
833: [07:01:09] <sam___> its the step...
834: [07:01:15] <sam___> Solved it
835: [07:01:16] <sam___> thnx
836: [07:05:48] * BPower quit (Remote host closed the connection)
837: [07:07:38] * sam___ quit (Quit: Page closed)
838: [07:20:04] * zippy__ has joined #silverstripe
839: [07:22:11] * ARNHOE has joined #silverstripe
840: [07:23:32] * violetina has joined #silverstripe
841: [07:27:33] * SightUnseen has joined #silverstripe
842: [07:27:36] * SightUnseen quit (Client Quit)
843: [07:35:54] <DesignerX> hi, did getCMSValidator() work in ModelAdmin in SS3.0 ?
844: [07:36:26] <spronk> heh
845: [07:36:29] <spronk> i can't remember
846: [07:36:37] <spronk> but it doesn't work properly in 3.1.0 release...
847: [07:38:06] <DesignerX> out of no where now I get a validation error when I leave my title empty, I forgot I had some old code that didnt work before but now it works ! lolz
848: [07:41:38] <spronk> ha
849: [07:41:41] <spronk> interesting
850: [07:41:44] <spronk> what v?
851: [07:41:55] * joelpittet quit (Remote host closed the connection)
852: [07:42:29] * SightUnseen has joined #silverstripe
853: [07:42:41] * SightUnseen has left #silverstripe
854: [07:48:14] * Stomach quit (Ping timeout: 264 seconds)
855: [08:00:57] * zippy__ quit (Quit: zippy__)
856: [08:08:48] * kinglozzer has joined #silverstripe
857: [08:09:10] * chillu has joined #silverstripe
858: [08:14:10] <ec8or_> anyone using a shared hetzner account for ss3?
859: [08:27:25] * willr quit (Quit: willr)
860: [08:28:15] * SightUnseen has joined #silverstripe
861: [08:32:41] * SightUnseen quit (Ping timeout: 245 seconds)
862: [08:38:21] * SightUnseen has joined #silverstripe
863: [08:42:39] * SightUnseen quit (Ping timeout: 252 seconds)
864: [08:51:52] * g4b0 has joined #silverstripe
865: [08:56:49] * Alexw has joined #silverstripe
866: [08:57:35] <g4b0> hi all
867: [08:57:52] <Alexw> Hi there
868: [09:11:01] * g4b0 quit (Ping timeout: 245 seconds)
869: [09:24:32] * g4b0 has joined #silverstripe
870: [09:30:25] * mento has joined #silverstripe
871: [09:35:35] * spronk2 has joined #silverstripe
872: [09:38:52] * SightUnseen has joined #silverstripe
873: [09:38:55] * SightUnseen quit (Client Quit)
874: [10:00:59] * g4b0 quit (Ping timeout: 248 seconds)
875: [10:14:00] * DesignCity has joined #silverstripe
876: [10:14:13] * g4b0 has joined #silverstripe
877: [10:15:05] * Bollig|DesignCty quit (Ping timeout: 265 seconds)
878: [10:15:06] * DesignCity is now known as Bollig|DesignCty
879: [10:17:33] * PigeonFriend has joined #silverstripe
880: [10:21:28] * g4b0 quit (Ping timeout: 264 seconds)
881: [10:21:56] <kinglozzer> chillu: I'm just looking at those translations on transifex
882: [10:22:15] <chillu> Yeah, might be easier if I do them, since I can batch upload to tx
883: [10:22:39] <kinglozzer> Okay, I was gonna ask if it's okay to be updating them to just say 'you can log in again' instead of 'you can log in again below'
884: [10:22:47] <kinglozzer> I'll leave it to you :)
885: [10:29:55] * travis-ci has joined #silverstripe
886: [10:29:55] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1202 (3.1 - cd225f0 : Ingo Schommer): The build passed.
887: [10:29:55] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/9bb97140ad0b...cd225f0fa449
888: [10:29:55] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12361408
889: [10:29:55] * travis-ci has left #silverstripe
890: [10:31:21] <kinglozzer> http://addons.silverstripe.org/ :(
891: [10:33:46] * g4b0 has joined #silverstripe
892: [10:38:36] * travis-ci has joined #silverstripe
893: [10:38:37] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1203 (3.1 - 691f1a3 : Ingo Schommer): The build passed.
894: [10:38:37] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/cd225f0fa449...691f1a305619
895: [10:38:37] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12361431
896: [10:38:37] * travis-ci has left #silverstripe
897: [10:39:36] * SightUnseen has joined #silverstripe
898: [10:41:08] * g4b0 quit (Ping timeout: 240 seconds)
899: [10:44:12] * SightUnseen quit (Ping timeout: 252 seconds)
900: [10:44:53] * Colin[pi] quit (Ping timeout: 248 seconds)
901: [10:46:02] <chillu> kinglozzer: lol, I searched for the english string, no wonder I couldn't find it :D OK, so that's actually more than a search replace, you need to edit all those language files individually. I don't have time for that at the moment, if you'd like to see it fixed please submit a PR (based off master), and I'll push those to transifex
902: [10:46:28] * travis-ci has joined #silverstripe
903: [10:46:28] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1204 (3.1 - f603550 : Ingo Schommer): The build passed.
904: [10:46:28] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/691f1a305619...f6035505c1ec
905: [10:46:28] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12361505
906: [10:46:28] * travis-ci has left #silverstripe
907: [10:48:39] <kinglozzer> chillu: I already submitted en_GB and nl on transifex before I saw your message, I assume it'll still merge okay?
908: [10:49:06] * travis-ci has joined #silverstripe
909: [10:49:07] <travis-ci> [travis-ci] chillu/silverstripe-framework#87 (pulls/lastvisited - b367dd6 : Ingo Schommer): The build has errored.
910: [10:49:07] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/daff7994509e...b367dd6237e5
911: [10:49:07] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/12362264
912: [10:49:07] * travis-ci has left #silverstripe
913: [10:49:40] * SightUnseen has joined #silverstripe
914: [10:49:43] <chillu> Ah yep, just laeve those out of your new PR then
915: [10:49:54] <kinglozzer> Also, the en.yml version without a link says 'you can log in again below' - all the translations will just say 'you can log in again', is that okay?
916: [10:50:08] <chillu> If you're happy to do it on transifex, it makes my life easier ;)
917: [10:50:19] <chillu> yeah thats ok
918: [10:51:55] <kinglozzer> chillu: Happy to do it on transifex, probably just as easy as submitting a PR anyway
919: [10:52:17] <chillu> great
920: [10:52:30] * travis-ci has joined #silverstripe
921: [10:52:30] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#601 (master - dd29936 : Ingo Schommer): The build passed.
922: [10:52:30] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/16d8505bbb22...dd29936fee7b
923: [10:52:30] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/12362176
924: [10:52:30] * travis-ci has left #silverstripe
925: [10:54:28] * SightUnseen quit (Ping timeout: 264 seconds)
926: [10:54:44] * g4b0 has joined #silverstripe
927: [10:59:09] <kinglozzer> chillu: Right, I think that's all of them
928: [11:00:56] <PigeonFriend> Hi chillu: is it a known issue that overriding translations isn't working? It seems that if I try and define Form.VALIDATIONPASSWORDSDONTMATCH in a mysite/lang/en.yml file, it doesn't get used. I'm pretty sure I know why (the higher priority files are evalated first and then the least important files actually re-assign / override the original values)
929: [11:01:30] <PigeonFriend> Looks like we either need to reverse the priority before assigning the values OR we need to not allow existing keys to be overridden - the former seems like a better idea
930: [11:02:31] * travis-ci has joined #silverstripe
931: [11:02:32] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1205 (master - 8727d1b : Ingo Schommer): The build passed.
932: [11:02:32] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/62fa2739e610...8727d1b1eb98
933: [11:02:32] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12362186
934: [11:02:32] * travis-ci has left #silverstripe
935: [11:06:36] * ocm has joined #silverstripe
936: [11:06:40] <ocm> howdy!
937: [11:10:30] <kinglozzer> Afternoon
938: [11:16:08] * travis-ci has joined #silverstripe
939: [11:16:09] <travis-ci> [travis-ci] chillu/silverstripe-framework#88 (pulls/gridfield-fragment-docs - 18826d5 : Ingo Schommer): The build has errored.
940: [11:16:09] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/ea6f7208c32b...18826d5bd381
941: [11:16:09] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/12363495
942: [11:16:09] * travis-ci has left #silverstripe
943: [11:16:58] * travis-ci has joined #silverstripe
944: [11:16:59] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1206 (master - ed1a9ad : Ingo Schommer): The build passed.
945: [11:16:59] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/8727d1b1eb98...ed1a9adae6e5
946: [11:16:59] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12362232
947: [11:16:59] * travis-ci has left #silverstripe
948: [11:27:42] * travis-ci has joined #silverstripe
949: [11:27:42] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#603 (3.1 - b08c707 : Ingo Schommer): The build passed.
950: [11:27:42] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/095c78426b41...b08c70748f19
951: [11:27:42] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/12362661
952: [11:27:42] * travis-ci has left #silverstripe
953: [11:30:23] * chillu quit (Read error: Connection reset by peer)
954: [11:30:24] * chillu23 has joined #silverstripe
955: [11:31:17] * g4b0 quit (Ping timeout: 248 seconds)
956: [11:43:15] * spronk2 quit (Quit: spronk2)
957: [11:43:39] * g4b0 has joined #silverstripe
958: [11:50:13] * SightUnseen has joined #silverstripe
959: [11:50:15] * SightUnseen quit (Client Quit)
960: [11:52:34] * ajshort has joined #silverstripe
961: [12:03:49] * Shrike_Finland quit (Quit: Leaving.)
962: [12:05:14] * travis-ci has joined #silverstripe
963: [12:05:15] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1210 (3.1 - a0080dc : Ingo Schommer): The build passed.
964: [12:05:15] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/0870194463fb...a0080dc921ee
965: [12:05:15] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12363371
966: [12:05:15] * travis-ci has left #silverstripe
967: [12:08:24] * UndefinedOffset has joined #silverstripe
968: [12:11:09] * travis-ci has joined #silverstripe
969: [12:11:09] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1211 (3.1 - b5cee45 : Ingo Schommer): The build passed.
970: [12:11:09] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/a0080dc921ee...b5cee452b5a4
971: [12:11:09] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12363453
972: [12:11:09] * travis-ci has left #silverstripe
973: [12:11:30] * g4b0 quit (Ping timeout: 264 seconds)
974: [12:18:18] * micmania1 has joined #silverstripe
975: [12:21:58] <micmania1> Is there a way to cerate permissions in YAML files? It seems a bit nicer than the providePermissions method.
976: [12:22:04] <micmania1> create*
977: [12:23:35] * g4b0 has joined #silverstripe
978: [12:26:34] * travis-ci has joined #silverstripe
979: [12:26:35] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1214 (tmp/travis-artifacts - b4b39f7 : Ingo Schommer): The build has errored.
980: [12:26:35] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1f97cd442a8f...b4b39f7f3eed
981: [12:26:35] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12364731
982: [12:26:35] * travis-ci has left #silverstripe
983: [12:27:18] * travis-ci has joined #silverstripe
984: [12:27:18] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1213 (3.1 - 829b45a : Ingo Schommer): The build passed.
985: [12:27:18] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/b5cee452b5a4...829b45af67f6
986: [12:27:18] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12363513
987: [12:27:18] * travis-ci has left #silverstripe
988: [12:32:54] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
989: [12:50:54] * SightUnseen has joined #silverstripe
990: [12:51:42] * g4b0 quit (Ping timeout: 264 seconds)
991: [12:55:28] * SightUnseen quit (Ping timeout: 248 seconds)
992: [13:01:01] * SightUnseen has joined #silverstripe
993: [13:02:50] * Shrike_Finland has joined #silverstripe
994: [13:04:22] * g4b0 has joined #silverstripe
995: [13:05:11] * SightUnseen quit (Ping timeout: 245 seconds)
996: [13:06:51] * tiny-zebra has joined #silverstripe
997: [13:10:25] * g4b0 quit (Ping timeout: 248 seconds)
998: [13:18:41] * Shrike_Finland quit (Quit: Leaving.)
999: [13:24:29] * travis-ci has joined #silverstripe
1000: [13:24:29] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1214 (tmp/travis-artifacts - b4b39f7 : Ingo Schommer): The build has errored.
1001: [13:24:29] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1f97cd442a8f...b4b39f7f3eed
1002: [13:24:29] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12364731
1003: [13:24:29] * travis-ci has left #silverstripe
1004: [13:24:35] * g4b0 has joined #silverstripe
1005: [13:33:00] * travis-ci has joined #silverstripe
1006: [13:33:00] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1214 (tmp/travis-artifacts - b4b39f7 : Ingo Schommer): The build has errored.
1007: [13:33:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1f97cd442a8f...b4b39f7f3eed
1008: [13:33:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12364731
1009: [13:33:00] * travis-ci has left #silverstripe
1010: [13:51:52] * travis-ci has joined #silverstripe
1011: [13:51:52] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1214 (tmp/travis-artifacts - b4b39f7 : Ingo Schommer): The build has errored.
1012: [13:51:52] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1f97cd442a8f...b4b39f7f3eed
1013: [13:51:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12364731
1014: [13:51:52] * travis-ci has left #silverstripe
1015: [13:54:18] * slid3r has joined #silverstripe
1016: [14:05:41] <Alexw> Does anyone know how to create a theme and give a human readable name?
1017: [14:05:47] <Alexw> At the settings tab
1018: [14:11:07] * g4b0 quit (Ping timeout: 248 seconds)
1019: [14:12:17] <Alexw> Or is that impossible with the current version?
1020: [14:14:49] * joelpittet has joined #silverstripe
1021: [14:22:21] <Alexw> Does nobody know?
1022: [14:23:38] * g4b0 has joined #silverstripe
1023: [14:31:30] <ocm> I think I dont get what you try to achief
1024: [14:37:21] <Alexw> Well if you create a new theme
1025: [14:37:37] <Alexw> And call it for example i-am-a-large-theme-and-got-a-long-name
1026: [14:37:56] <Alexw> But exacly want to call it "Example theme" without renaming the directory
1027: [14:38:03] <Alexw> So how to do that
1028: [14:38:14] <Alexw> since the directory name is just for internal naming
1029: [14:40:27] <PigeonFriend> chillu23: any thoughts on this: https://github.com/silverstripe/silverstripe-framework/commit/7e7677bbba83465a2e04710b16739629363309a9#commitcomment-4298441
1030: [14:40:44] <Zauberfi1ch> chillu23: whats up with the 23?
1031: [14:41:08] <Zauberfi1ch> are you and ss23 now forming a club?
1032: [14:41:11] <Zauberfi1ch> I want in
1033: [14:41:16] * Zauberfi1ch is now known as Zauberfisch23
1034: [14:44:15] <chillu23> I had 23 when ss23 was still in his diapers ;) Its my alternative nickname, no idea why the IRC client chose it
1035: [14:46:11] <Zauberfisch23> and what does 23 stand for anyway?
1036: [14:46:51] <chillu23> PigeonFriend: FormField->toMap() sounds OK as a workaround. We're not going to fix that recursion bug anytime soon, it'd be an API change
1037: [14:47:18] * travis-ci has joined #silverstripe
1038: [14:47:18] <travis-ci> [travis-ci] ajshort/silverstripe-cms#10 (pull-2 - 68d254c : Andrew Short): The build passed.
1039: [14:47:18] <travis-ci> [travis-ci] Change view : https://github.com/ajshort/silverstripe-cms/compare/095c78426b41^...68d254c3c4f9
1040: [14:47:18] <travis-ci> [travis-ci] Build details : http://travis-ci.org/ajshort/silverstripe-cms/builds/12371871
1041: [14:47:18] * travis-ci has left #silverstripe
1042: [14:48:03] <PigeonFriend> chillu23: ok, I can add a toMap() on FormField, any ideas what should go in it!? ClassName, Title, Name, ... what else is useful?
1043: [14:51:42] * UndefinedOffset quit (Quit: Leaving.)
1044: [14:51:47] <PigeonFriend> also, chillu23, I sent this earlier but got no reply:
1045: [14:51:47] <PigeonFriend> 10/10/13 12:00:57 p - <PigeonFriend> Hi chillu: is it a known issue that overriding translations isn't working? It seems that if I try and define Form.VALIDATIONPASSWORDSDONTMATCH in a mysite/lang/en.yml file, it doesn't get used. I'm pretty sure I know why (the higher priority files are evalated first and then the least important files actually re-assign / override the original values)
1046: [14:51:48] <PigeonFriend> 10/10/13 12:01:31 p - <PigeonFriend> Looks like we either need to reverse the priority before assigning the values OR we need to not allow existing keys to be overridden - the former seems like a better idea
1047: [14:52:24] <chillu23> Hm I guess. In the end the whole concept of ArrayList->toNestedArray() is flawed. Made sense for DataDlist, not so much for a collection of arbitrary objects. You'll fix it on FormField, it'll break on the next item - its not as general purpose as the method claims
1048: [14:53:04] <chillu23> There's a priority related pull request somewhere on github - wanna track it down and see if it fixes your issue? Haven't gotten around to reviewing it
1049: [14:58:08] <PigeonFriend> chillu23: sure thing, I'll search for the translation thing. with the toNestedArray(), yes agree as well. It's fixing a symptom, not a cause :( we could just not cast as array :P
1050: [14:59:36] <chillu23> So (array)$myFormField recurses into (array)$myFormField->form automatically?!
1051: [15:00:09] <PigeonFriend> chillu23: https://github.com/silverstripe/silverstripe-framework/pull/2295 looks just like what i would have done
1052: [15:00:26] <chillu23> ah great
1053: [15:00:31] <kinglozzer> chillu23: http://addons.silverstripe.org/ is down again btw :P
1054: [15:00:45] <chillu23> $@^$%&^%
1055: [15:01:13] <PigeonFriend> chillu23: looks like it.. https://dl.dropbox.com/u/3429338/Clippings/2013-10/2013-10-10_16-00-48.png is what happens if i cast a form field with no form attached as an array
1056: [15:02:05] <chillu23> back
1057: [15:02:16] * SightUnseen has joined #silverstripe
1058: [15:04:28] * joelpittet quit (Remote host closed the connection)
1059: [15:06:12] <PigeonFriend> hmm, maybe it doesnt automatically recurse, just did a quick test with it attached to a form: https://dl.dropbox.com/u/3429338/Clippings/2013-10/2013-10-10_16-06-09.png
1060: [15:07:01] * SightUnseen quit (Ping timeout: 265 seconds)
1061: [15:08:28] <PigeonFriend> hmm, something about casting it as an array in a realworld test is causing it to break though
1062: [15:08:34] <PigeonFriend> and recurse.. SOMEWHERE
1063: [15:12:23] * SightUnseen has joined #silverstripe
1064: [15:13:57] * catcher has joined #silverstripe
1065: [15:16:53] * SightUnseen quit (Ping timeout: 248 seconds)
1066: [15:19:16] * travis-ci has joined #silverstripe
1067: [15:19:16] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1214 (tmp/travis-artifacts - b4b39f7 : Ingo Schommer): The build has errored.
1068: [15:19:16] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1f97cd442a8f...b4b39f7f3eed
1069: [15:19:16] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12364731
1070: [15:19:16] * travis-ci has left #silverstripe
1071: [15:20:39] <Alexw> Does a page holder really need to end with "Holder"
1072: [15:20:48] <Alexw> because I changed CategoryHolder to Catalog
1073: [15:20:51] * UndefinedOffset has joined #silverstripe
1074: [15:20:59] <Alexw> And change all values that refereced to it
1075: [15:21:20] <Alexw> But now (after flushing and rebuild) I don't the childs on Catalog on the frontend
1076: [15:21:24] <Alexw> see*
1077: [15:21:46] <PigeonFriend> Alexw: probably DB issue
1078: [15:22:04] <Alexw> How to fix that
1079: [15:22:06] <PigeonFriend> The SiteTree table will have been holding the ClassName of the Holder
1080: [15:22:09] <PigeonFriend> now it will be empty
1081: [15:22:29] <PigeonFriend> run some SQL to change all pages with classname = '' to classname = 'catalog'
1082: [15:22:35] <PigeonFriend> in the 3 tables that will be affected
1083: [15:22:38] <Alexw> I recreated categories
1084: [15:22:41] <PigeonFriend> better to just not change the class name
1085: [15:22:44] <Alexw> But that does not affect it
1086: [15:24:00] <Alexw> Ok, I recreated the catalog too
1087: [15:24:02] <Alexw> that seems to fix it
1088: [15:36:16] * ARNHOE quit (Remote host closed the connection)
1089: [15:38:06] <Alexw> I added at has_one the type Image, now I can add a image to the product. But is it possible that he resized so I have a full version and a thumb?
1090: [15:38:30] <Alexw> Or is the thumb generated when I retrieve it using the template?
1091: [15:40:35] <PigeonFriend> Alexw: you can make cropped sizes on demand via template or php
1092: [15:49:45] * Shrike_Finland has joined #silverstripe
1093: [15:50:11] * Shrike_Finland1 has joined #silverstripe
1094: [15:53:34] * mento quit (Quit: Page closed)
1095: [15:53:48] * Shrike_Finland quit (Ping timeout: 240 seconds)
1096: [15:59:59] * Colin[pi] has joined #silverstripe
1097: [16:00:17] * ARNHOE has joined #silverstripe
1098: [16:01:04] * g4b0 quit (Quit: Sto andando via)
1099: [16:10:05] * kinglozzer quit (Remote host closed the connection)
1100: [16:12:23] * tiny-zebra quit (Quit: tiny-zebra)
1101: [16:12:26] <Alexw> PigeonFriend, ok thanks
1102: [16:12:54] * SightUnseen has joined #silverstripe
1103: [16:12:56] * SightUnseen quit (Client Quit)
1104: [16:13:18] * andylock1an quit (Ping timeout: 264 seconds)
1105: [16:14:28] <Alexw> For some odd reason the category page does no show loop through $Chidlren...according SS it's empty
1106: [16:15:25] <Alexw> The category has produts
1107: [16:15:29] <Alexw> products*
1108: [16:15:46] <Alexw> Or is there an other variable I should use in place of $Chidlren
1109: [16:21:54] * tiny-zebra has joined #silverstripe
1110: [16:22:06] * tiny-zebra quit (Client Quit)
1111: [16:22:08] * swordsmanz quit (Ping timeout: 240 seconds)
1112: [16:33:08] <PigeonFriend> Alexw AllChildren
1113: [16:36:12] * zfmf1 quit (Ping timeout: 252 seconds)
1114: [16:37:48] * travis-ci has joined #silverstripe
1115: [16:37:48] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#605 (3.1 - c8dc9a9 : Ingo Schommer): The build passed.
1116: [16:37:48] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/b08c70748f19...c8dc9a937733
1117: [16:37:48] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/12377414
1118: [16:37:48] * travis-ci has left #silverstripe
1119: [16:43:38] * joelpittet has joined #silverstripe
1120: [16:48:39] <Zauberfisch23> Alexw: are the products Pages?
1121: [16:49:22] <Zauberfisch23> chillu23: so what does 23 stand for if i may ask
1122: [16:56:09] * chillu23 quit (Quit: chillu23)
1123: [17:01:25] <Alexw> No affect
1124: [17:01:34] <Alexw> With $AllChildren
1125: [17:01:38] <Alexw> Sorry was eating dinner :)
1126: [17:01:48] <Alexw> No, they are DataObjects
1127: [17:02:00] <Alexw> @Zauberfisch(without 23) :)
1128: [17:07:05] <Zauberfisch23> Alexw: then obviously neither Children nor allChildren will work
1129: [17:07:44] <Zauberfisch23> because chlidren is basicly just another has_many = array(Children => Page);
1130: [17:08:23] <Zauberfisch23> so instead of Children you need to loop the name of the has_many or many_many relation
1131: [17:08:26] <catcher> Zauberfisch23, I think he's saying his category page doesn't show, not the products
1132: [17:08:29] <Alexw> Ah
1133: [17:08:40] <catcher> ..or...not
1134: [17:08:43] <catcher> ?
1135: [17:08:43] <Alexw> The products does not
1136: [17:08:44] <Alexw> :)
1137: [17:09:02] <Alexw> Ok, it works now
1138: [17:09:10] <catcher> aha
1139: [17:09:24] <Zauberfisch23> catcher: i don't mean to insult, but i think Alexw is rater new to ss and has little understanding of how it works
1140: [17:09:44] <Alexw> Yeah :)
1141: [17:09:58] <Alexw> I'm quit a advanced PHP Coder...But not for SS, yet
1142: [17:10:18] <catcher> Zauberfisch23, I read "for some odd reason the category page does not show" above, missed the meaning of the rest.
1143: [17:10:18] <Zauberfisch23> so the logical assumtion woudld be that he did not know what $Children is
1144: [17:12:00] <Alexw> Is there a way to see what variables are included?
1145: [17:13:36] * SightUnseen has joined #silverstripe
1146: [17:18:00] * SightUnseen quit (Ping timeout: 252 seconds)
1147: [17:20:04] <Alexw> Great error message: "ClosedBlock_Handle_Control is deprecated. is deprecated. Use or instead."
1148: [17:20:34] <AlphaCactus> change to loop or with
1149: [17:21:12] <Alexw> I'm trying to use this piece of code: http://www.silverstripe.org/template-questions/show/5530#post255496
1150: [17:21:29] <AlphaCactus> use with
1151: [17:21:54] <Alexw> Ok thanks
1152: [17:22:09] <Alexw> Is it possible that the image also get resized by aspect ratio
1153: [17:22:13] <Alexw> So he can crop it
1154: [17:22:30] <AlphaCactus> altho that post is really old. $MyImage.SetWidth(666) should work
1155: [17:23:12] <AlphaCactus> yeah, look in Image.php for all the functions.
1156: [17:23:25] <AlphaCactus> SetHeight, SetRatioSize, SetSize, etc
1157: [17:25:11] <Alexw> The Image.php inside the model foldeR?
1158: [17:25:25] <AlphaCactus> yeah
1159: [17:28:08] <Alexw> I tried: "<% $Image.SetRatioSize(150, 150) %>" That does not seems to work
1160: [17:28:20] <Alexw> I'm to very understand the language of SS yet
1161: [17:28:36] <Alexw> not*
1162: [17:28:55] <Alexw> Let me rephrase: I don't understand the template language of SS yet
1163: [17:31:15] <Alexw> So what do I do wrong?
1164: [17:36:40] <Alexw> Ok I change it back, and I'm using <% with SetRatioSize(150,150) %> inside a with Image block
1165: [17:37:05] <Alexw> Only the size is 150x75 and not 150x150 cropped
1166: [17:37:18] <AlphaCactus> you don't need the ,%
1167: [17:37:27] <AlphaCactus> <% i mean
1168: [17:37:44] <Alexw> What should I use?
1169: [17:37:54] <AlphaCactus> just $Image.SetRatioSize(150, 150)
1170: [17:38:45] <Alexw> If I only use then he generate a img tag
1171: [17:38:50] <Alexw> Which I don't want
1172: [17:38:54] <Alexw> I only need the URL
1173: [17:38:55] <AlphaCactus> ah ok.
1174: [17:39:01] <Alexw> Or is it then $Image.SetRatioSize(150,150).URL ?
1175: [17:39:02] <AlphaCactus> then .Link on the end?
1176: [17:39:07] <Alexw> ah
1177: [17:39:14] <AlphaCactus> or maybe url, i'm a little unclear on those details :P
1178: [17:39:36] <Alexw> Ok looks good
1179: [17:39:42] <Alexw> Only I can't get it cropped
1180: [17:40:02] <Alexw> The ratio size function does not resize with ratio
1181: [17:40:15] <Alexw> The image is squashed now
1182: [17:40:30] <Alexw> The original is 600x300
1183: [17:40:39] <Alexw> I just want the center of it
1184: [17:42:09] <Alexw> Any idea to accomplish that?
1185: [17:42:20] <AlphaCactus> you'll have to look through those functions & tinker until you find what you want. I'm not sure if there are functions to handle all possibilities. you can try CroppedImage
1186: [17:42:22] <Alexw> how*
1187: [17:42:26] * zlincoln has joined #silverstripe
1188: [17:43:28] <zlincoln> for the love of god, how do i redirect a 404 page in 2.4?
1189: [17:43:30] <Alexw> Yeah, that looks great
1190: [17:44:45] <Alexw> Just return this for example at the controller: return $this->httpError(404, 'Not found');
1191: [17:45:58] <zlincoln> thanks alex, i'm trying to go the opposite way though - from a 404 to the homepage
1192: [17:46:32] <Alexw> Why would you do that?
1193: [17:46:40] <Alexw> Why not include a link to the homepage at the 404 page
1194: [17:47:02] <zlincoln> right now im extending errorpage_controller and in the init returning Director::redirect
1195: [17:47:04] <Alexw> Very consufing for user that they get the homepage when clicking a (expired) link
1196: [17:47:56] <zlincoln> well, i've just simplified my situation, im checking the uri for certain keywords and redirecting them to different holder pages after a couple seconds
1197: [17:49:30] <zlincoln> I suppose I could perform the check and spit a link out on the template like you've suggested
1198: [17:49:33] <Alexw> I don't know the answer to that I'm afraid...
1199: [17:49:47] * SightUnseen has joined #silverstripe
1200: [17:50:05] <Alexw> But as an user, I do not like redirection without that I know I get a redirection
1201: [17:50:24] * SightUnseen has left #silverstripe
1202: [17:51:27] * chillu has joined #silverstripe
1203: [17:51:38] <AlphaCactus> Alexw: ur not gonna like the SS form system much then...
1204: [17:51:50] <Alexw> Why?
1205: [17:52:09] <AlphaCactus> it practically requires redirection
1206: [17:52:23] <Alexw> Ok, I can accept that
1207: [17:52:32] <Alexw> But not when I'm clicking a link and expect a page
1208: [17:52:35] <Alexw> and not redirection
1209: [17:55:40] <zlincoln> i understand the UX implications of what I'm doing, does anyone know what special circumstances are in effect from the error pages? Any that would affect redirection?
1210: [17:57:04] <zlincoln> on any other page returning Director::redirect() works like a charm
1211: [17:58:06] <AlphaCactus> zlincoln: the 404/500 error pages are set in the .htacces file. I don't really know what is going on, but I'm guessing that SS sends off some command that takes priority over redirect if there is an error and then the error page that is served is a non-dynamic document.
1212: [18:00:07] <zlincoln> oh right, the error pages are stored statically in the assets folder. I wonder if republishing them will have any effect...
1213: [18:01:02] <AlphaCactus> as long as u don't need your redirect to be dynamic, you could maybe put a JS in the error page that sets a location:
1214: [18:03:11] <AlphaCactus> like i said I really don't know anything about it, but perhaps replacing whatever class SS uses so that you can block the error page from being called and instead do a redirect might be a better option.
1215: [18:03:12] <zlincoln> yea, i came across a forum post where someone went about it that way. I'll play with it a bit - thanks for your help guys
1216: [18:04:09] <Alexw> How can I loop through the sitetree on the frontend
1217: [18:04:24] <Alexw> I want the SiteTree on the bottom of the site
1218: [18:04:35] <AlphaCactus> Use Menu or your own custom actions to return a list?
1219: [18:04:39] <AlphaCactus> I think the tutorials cover Menu
1220: [18:05:13] <zlincoln> hmm, that's a good idea too. I wonder if I wait to call parent::init in my else if that would work
1221: [18:05:16] <Alexw> It's the navigation menu
1222: [18:05:54] <Alexw> I want UL with the level menu's next to each other and inside the UL their children
1223: [18:08:22] <AlphaCactus> so, does Menu work or not , i'm confused
1224: [18:08:51] <Alexw> Wait, I creat screenshot of the PSD of how it need to looks like
1225: [18:09:07] <zlincoln> you could loop Menu(1) - inside check if Menu(2) etc
1226: [18:10:25] <AlphaCactus> here is also a snippet that is in one of our templates. I don't usually write menus so i'm not real solid in this stuff. http://www.sspaste.com/paste/show/5256ebe43b5b5
1227: [18:10:37] <AlphaCactus> in this case it doesn't use menu
1228: [18:11:02] <Alexw> http://img34.imageshack.us/img34/9436/nz42.png
1229: [18:11:08] <Alexw> And this goes into the Footer
1230: [18:11:18] <Alexw> The bold is parent of the children below it
1231: [18:12:32] <Alexw> Uh, your code did not output anything
1232: [18:12:49] <AlphaCactus> lol yeah that was an example, not working code
1233: [18:14:32] <Alexw> I think I got it
1234: [18:14:32] <zlincoln> Alexw: http://www.sspaste.com/paste/show/5256ecd9f20f9
1235: [18:15:03] * zlincoln has left #silverstripe
1236: [18:16:24] * micmania1 has joined #silverstripe
1237: [18:16:35] <Alexw> I think this wil cover it: http://pastebin.com/MHN5Mm13
1238: [18:17:28] * andylockran has joined #silverstripe
1239: [18:26:30] * andylockran quit (Ping timeout: 264 seconds)
1240: [18:28:44] <catcher> UndefinedOffset, any plans to make GridFieldSortableRows compatible with Versioned?
1241: [18:30:04] <catcher> I'm looking at doing it, not clear on which raw DB queries pertain though.
1242: [18:30:22] <Alexw> How to debug a template variable
1243: [18:30:26] <Alexw> So I know what class it is
1244: [18:32:54] <micmania1> when you star something on github - where the hell does it go?
1245: [18:33:32] <catcher> Alexw, if you're in the context of the variable, you can get it with $ClassName
1246: [18:34:14] <micmania1> ah, doesn't matter. found it lol
1247: [18:34:15] <Alexw> I'm inside a loop
1248: [18:34:21] <catcher> micmania1, looks like you can click 'starred' on your profile page
1249: [18:34:38] <micmania1> I think I'm going blind.
1250: [18:34:48] <Alexw> I want to know the classname of the first child
1251: [18:35:04] <catcher> Alexw, $ClassName
1252: [18:35:42] <Alexw> And how to get the first child without looping?
1253: [18:35:54] <micmania1> $Variable.First
1254: [18:36:37] <Alexw> I'm trying to loop through the menu
1255: [18:36:54] <Alexw> But want to check the children classname
1256: [18:37:05] <Alexw> So I'm in $Menu(1)
1257: [18:37:15] <Alexw> and and want the first child of the first child
1258: [18:37:40] <Alexw> $MenuFirst does not work too
1259: [18:39:23] <Alexw> Found it: $Children.First.ClassName
1260: [18:44:52] * SightUnseen has joined #silverstripe
1261: [18:47:36] * CodeTrap has joined #silverstripe
1262: [18:53:13] <micmania1> catcher, you use my blog module don't you?
1263: [18:53:49] <catcher> micmania1, I do indeed, site's currently in development
1264: [18:54:10] <micmania1> do you think it needs an author field of some sort?
1265: [18:54:27] <catcher> micmania1, funny, I'm pretty sure I added one in a decorator
1266: [18:54:53] <micmania1> yeah, I left it out because I wasn't sure the best way to implement it.
1267: [18:55:55] <micmania1> If I give a dropdown of members, people will want text field. If i do it as a text field, they'll want a dropdown. sod's law!
1268: [18:56:23] * SightUnseen has left #silverstripe
1269: [18:56:35] <catcher> No doubt! I think an autocompleter is the most flexible solution
1270: [18:57:20] <micmania1> I was thinking of just adding it as its own module so its not too intrusive.
1271: [18:57:32] <micmania1> Then people can choose.
1272: [18:57:53] <catcher> micmania1, not a bad idea, as I'd stick with my decorator (my authors aren't members, so it's just an open text field for me)
1273: [18:58:42] <catcher> I imagine a few people would end up ditching authors based on members, but not the majority.
1274: [18:59:29] <micmania1> The thing about a members dropdown is then some people may not want to display their real name, in which case you'd need to add a username field...
1275: [19:01:17] * Stomach has joined #silverstripe
1276: [19:01:47] * BPower has joined #silverstripe
1277: [19:02:05] <BPower> Hey :)
1278: [19:02:24] <catcher> true, maybe a radio choice & store both Varchar & MemberID?
1279: [19:03:31] <catcher> BPower, hello
1280: [19:03:49] <micmania1> catcher, this is why I left it out lol
1281: [19:03:52] <guzzlefry> micmania1: Just pull a Youtube. :P
1282: [19:04:18] <micmania1> guzzlefry, what's that?
1283: [19:04:26] <catcher> micmania1, I understand!
1284: [19:04:50] <micmania1> catcher, just too many choices :p
1285: [19:04:53] <guzzlefry> micmania1: You haven't had them harassing you to use your real name on there? Lots of people claim Youtube switches it automatically after a while.
1286: [19:05:04] <micmania1> ah right, that lol
1287: [19:06:48] * CodeTrap quit (Remote host closed the connection)
1288: [19:08:20] <catcher> micmania1, I think listbox/multi from members & textfield with a radio box would cover it well enough.. Maybe ->extend() the list of members so people can filter.
1289: [19:09:24] <UndefinedOffset> catcher: sorry missed your message, its not compatable? lol i would have thought that versioned would have taken care of that in the 3.x line guess not lol
1290: [19:09:55] <catcher> UndefinedOffset, since Sortable writes with a raw query, it bypasses the write to the _Live table that the ORM would normally do.
1291: [19:10:35] <catcher> I think, anyway
1292: [19:11:48] <catcher> UndefinedOffset, working on an update now.
1293: [19:12:40] <UndefinedOffset> catcher ya it does, mainly to make it as light as possible
1294: [19:15:41] * oddnoc has joined #silverstripe
1295: [19:15:49] * micmania1 quit (Ping timeout: 248 seconds)
1296: [19:21:31] * NobrainerWeb has joined #silverstripe
1297: [19:21:37] <NobrainerWeb> hi guys
1298: [19:22:23] <NobrainerWeb> doing a simple module, where i would like to output a meta tag to template, can this be done without having to ask the user to add code to his template?
1299: [19:23:34] <NobrainerWeb> Can i add it to ExtraMeta?
1300: [19:25:07] <catcher> UndefinedOffset, are you set up to test fixSortColumn() and sortToPage() if I submit this pull request?
1301: [19:30:11] <Alexw> I removed a module and dit /dev/build/ but he did not delete the module tables
1302: [19:33:15] <UndefinedOffset> catcher it should run through travis when you do :)
1303: [19:37:30] <oddnoc> Alexw: dev/build never deletes
1304: [19:37:46] <Alexw> I also did not get a obsolute table
1305: [19:38:45] * micmania1 has joined #silverstripe
1306: [19:41:12] * DigNZ has joined #silverstripe
1307: [19:41:14] * DigNZ quit (Remote host closed the connection)
1308: [19:41:26] * DigNZ has joined #silverstripe
1309: [19:42:23] * nickmolhoek has joined #silverstripe
1310: [19:42:24] * nickmolhoek quit (Remote host closed the connection)
1311: [19:42:24] * andylockran has joined #silverstripe
1312: [19:42:38] * nickmolhoek has joined #silverstripe
1313: [19:46:08] <catcher> Alexw, how did you remove the module?
1314: [19:47:43] <Avroceptyr> rm -rf does wonders
1315: [19:49:45] <catcher> UndefinedOffset, ah yeah, has_extension changed from 3.0 -> 3.1, hmm
1316: [19:52:22] * zippy__ has joined #silverstripe
1317: [19:52:39] <UndefinedOffset> ya I remember seeing that change, I wonder if there is away to poke the config layer to check instead of using has_extension
1318: [19:53:28] <UndefinedOffset> well thats all has_extensions does :S
1319: [19:56:48] <micmania1> I wish "Warning: Invalid argument supplied for foreach() in [...] ConfigManifest.php" was more useful.
1320: [19:57:49] <catcher> UndefinedOffset, short of duplicating the has_extension code, not sure how to avoid the branch.
1321: [20:00:58] * atmos has joined #silverstripe
1322: [20:01:03] * stecman has joined #silverstripe
1323: [20:01:16] <UndefinedOffset> catcher indeed i wonder if chillu knows a better way
1324: [20:01:33] <atmos> mornin
1325: [20:01:57] * simon_w has joined #silverstripe
1326: [20:04:13] <UndefinedOffset> catcher you know i wonder if just another passed into the constructor of gridfieldsortablerows would be simpler, defaulted to false but if true would toggle the versioned support. Not ideal but it maintains compat with 3.0
1327: [20:07:05] <UndefinedOffset> catcher though now that i think about it wouldn't you want the changes only applying to the stage? wouldn't publishing your changes be when you would expect the sort to update?
1328: [20:07:06] <catcher> UndefinedOffset, you mean a constructor param?
1329: [20:07:12] <UndefinedOffset> exactly :)
1330: [20:07:43] <catcher> UndefinedOffset, Versioned doesn't handle many_many/has_many staging, it's just written to both stages.
1331: [20:07:52] <UndefinedOffset> like i said not ideal but itmaintained compat
1332: [20:07:56] <UndefinedOffset> ah ok
1333: [20:10:02] * UncleCheese has joined #silverstripe
1334: [20:10:03] * Pyromanik has joined #silverstripe
1335: [20:10:16] <Pyromanik> yeah nah gidday sexy how's it going sweetheart
1336: [20:10:41] <catcher> I would say it's not worth it to clutter the constructor permanently to avoid branching, but maybe that's just me
1337: [20:11:44] <UndefinedOffset> ya i like compat and ease installing, but unno. like i said maybe chillu would have a thought for handling this. but your right branching is an option
1338: [20:12:43] <UndefinedOffset> anyways i'm off tis 5pm here lol
1339: [20:12:58] <catcher> kk, have a good one!
1340: [20:13:08] <UndefinedOffset> you too :)
1341: [20:13:23] <atmos> bah, too much red wine :(
1342: [20:13:45] <oddnoc> mmm… wine…
1343: [20:14:28] <Pyromanik> atmos: I thought you didn't do Thirsty Thursdays!
1344: [20:14:57] <atmos> Pyromanik: I had to! I swear! our rock climbing crew made me do it!
1345: [20:14:58] <atmos> :<
1346: [20:15:17] <simon_w> You know you can say no, right? :p
1347: [20:15:17] * UndefinedOffset quit (Quit: Leaving.)
1348: [20:15:27] <atmos> no means yes!
1349: [20:15:29] * andylockran quit (Ping timeout: 248 seconds)
1350: [20:15:34] <Pyromanik> http://logs.simon.geek.nz/index.php?date=2013-09-13#log_1045182
1351: [20:15:58] <atmos> Pyromanik: lol
1352: [20:16:21] * andylockran has joined #silverstripe
1353: [20:16:26] <Pyromanik> I now avoid them like the plague, since that time there. I broke my chin :(
1354: [20:16:29] <atmos> in all honesty, I'm a light weight so it's not really 'thirsty' thursday
1355: [20:16:42] <Pyromanik> well
1356: [20:16:43] <Pyromanik> maybe
1357: [20:16:48] <Pyromanik> I dunno. Chipped maybe.
1358: [20:16:49] <longtips> haha
1359: [20:16:52] <catcher> chillu, any thoughts on the has_extension question above?
1360: [20:17:11] <longtips> my house is filled with passed out drunk people
1361: [20:17:16] <longtips> i started work at 4am
1362: [20:17:41] <atmos> man, I could never live with other people besides my gf
1363: [20:17:53] <simon_w> chillu, let me know if you still can't reproduce #872. Also, EA would like framework/#2397 merged in if it's ready
1364: [20:17:58] <zippy__> atmos: ditto
1365: [20:18:05] <longtips> my sister broke up with her bf, now i live with him cause he needs babysitting
1366: [20:18:10] <longtips> so it's a pretty similar thing
1367: [20:18:18] <zippy__> well, and the daughter
1368: [20:18:33] <atmos> yeah, we have a 13 month old
1369: [20:18:44] <longtips> yeah fuck that
1370: [20:18:51] <atmos> longtips: ouch!
1371: [20:19:02] <longtips> you can't have a flatmate when you have a kid, i've watched enough of my friends go through that
1372: [20:19:12] * atmos means about the blubbering bf
1373: [20:19:16] <longtips> eh
1374: [20:19:21] <longtips> i travel a lot for work so i am not here that much
1375: [20:21:22] <simon_w> I just don't have flatmates
1376: [20:21:26] <simon_w> Problem solved!
1377: [20:21:32] <Pyromanik> longtips: your sister's ex boyfriend needs babysitting?
1378: [20:21:42] <chillu> simon_w: I ensured that the node wasn't already loaded, and deep enough that it would need to be be loaded via ajax (FTPageMakerTask is generateing 5k pages four levesl deep, and I went to the last innermost level)
1379: [20:21:53] <longtips> just makes sense with costs, he's a graphic designer too, so we are sharing jobs now
1380: [20:22:03] <longtips> i kinda want to move over seas again soon though
1381: [20:22:18] <Pyromanik> I'm going to UK by year's end.
1382: [20:22:21] <longtips> point was, it's not really flatting / living with randoms
1383: [20:22:41] <Pyromanik> longtips: I've never done flatting with randos.
1384: [20:22:47] * nickmolhoek quit (Quit: nickmolhoek)
1385: [20:22:48] <Pyromanik> always been mates.
1386: [20:22:50] <atmos> it sucks
1387: [20:22:53] <chillu> catcher: If you can phrase a question I might be able to answer, but IRC backlog is pretty long
1388: [20:23:08] <longtips> i lived with 7 randoms once, it was okay, but only because i kind of had my own territory with one other flatmate
1389: [20:23:11] <longtips> what's the attraction to the UK?
1390: [20:23:26] <longtips> more people the more useless shit gets combined into dumb drama or retarded problems
1391: [20:23:27] <Pyromanik> longtips: where were you thinking to go?
1392: [20:23:48] <longtips> i'd like to go check out vancouver i think
1393: [20:23:58] <longtips> or hong kong
1394: [20:24:28] <Pyromanik> ah yeh
1395: [20:24:34] <Pyromanik> I want to travel Europe, so UK makes sense.
1396: [20:24:39] * UndefinedOffset has joined #silverstripe
1397: [20:24:44] <longtips> yeah i just spent a year in eastern europe
1398: [20:24:45] * UndefinedOffset quit (Client Quit)
1399: [20:24:50] <longtips> and lived in netherlands 3 years
1400: [20:24:53] <longtips> so kinda sick of europe
1401: [20:24:57] <catcher> chillu, sure, I'm updating SortableGridfield to add support for Versioned. It depends on Object::has_extension(), which changed b/n 3.0 and 3.1, and thus fails in Travis.
1402: [20:25:01] <Pyromanik> longtips: eastern europe?
1403: [20:25:10] <longtips> started in germany and went east until i got scared
1404: [20:25:19] <longtips> lived in romania with my mate for like 2 months, that was scary enough
1405: [20:25:29] <Pyromanik> haha
1406: [20:25:38] <Pyromanik> Too many Vampiers?
1407: [20:26:19] <Pyromanik> I wouldn't mind living in Poland.
1408: [20:26:22] <chillu> catcher: What changed?
1409: [20:26:27] <longtips> they had this dam there, that was built by the soviets, that is huge, if it bursts it'll flood a bunch of towns, but they can't afford to maintain it, and it doesn't have proper flood controls, so they can't just empty it out
1410: [20:26:35] <longtips> that was pretty typical of the place
1411: [20:26:51] <Pyromanik> longtips: haha, but the birds are well fit though right?
1412: [20:27:04] <longtips> i didn't rate them, latvia had the hottest girls
1413: [20:27:08] <longtips> russian/swedish cross
1414: [20:27:09] <Pyromanik> oh yeh
1415: [20:27:12] <Pyromanik> mmm
1416: [20:27:27] * travis-ci has joined #silverstripe
1417: [20:27:28] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1217 (master - 3e007ff : Simon Welsh): The build passed.
1418: [20:27:28] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/ed1a9adae6e5...3e007ffbd2d0
1419: [20:27:28] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12387737
1420: [20:27:28] * travis-ci has left #silverstripe
1421: [20:27:59] <longtips> looks like just replacing cms and framework from 3.0.5 to 3.0.8 worked fine, site got retested, it's tickety boo
1422: [20:28:09] <longtips> hoory for lack of regression
1423: [20:28:11] <catcher> chillu, sorry, phone - the arguments have changed. UndefinedOffset would rather not maintain 2 branches, but I don't see another way aside from replicating has_extension() or adding a constructor param, which don't seem ideal.
1424: [20:28:58] * NobrainerWeb quit (Quit: NobrainerWeb)
1425: [20:29:55] <chillu> catcher: Yeah that was a badly written change to support late static binding: 0c8de0a1de4e5c3a3ac3e0ae74c1073d546c0554
1426: [20:30:30] * UncleCheese quit (Quit: UncleCheese)
1427: [20:30:46] <chillu> I think we should keep has_extension() backwards compat by checking the number of args, and falling back to old behaviour if args=2. Wanna write a core patch? That'd imply your module would be compatible with 3.1.x-dev for the time being only of course
1428: [20:31:33] * UncleCheese has joined #silverstripe
1429: [20:31:55] <catcher> chillu, I'll give it a go, thanks
1430: [20:32:01] <chillu> :)
1431: [20:33:09] <Alexw> catcher: Sorry, I was away for a sec. But the folders are deleted and the pages are also removed that contains the module.
1432: [20:33:32] <Alexw> But the tables of the module still exists after /dev/build/?flush=all
1433: [20:33:57] <Pyromanik> Alexw: of course
1434: [20:34:04] <Pyromanik> why would they go away?
1435: [20:34:08] <Alexw> I mean as their orginal name
1436: [20:34:13] <Pyromanik> and?
1437: [20:34:21] <Alexw> They do not get renamed with the obsolete prefix
1438: [20:34:33] <Pyromanik> that only happens in select cases
1439: [20:34:47] <Alexw> And when is that
1440: [20:34:56] <Pyromanik> when the prerequsites are met.
1441: [20:36:11] <Alexw> And those are?
1442: [20:36:27] <Pyromanik> Database.php~390
1443: [20:37:20] <guzzlefry> oh god
1444: [20:37:22] <guzzlefry> Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes)
1445: [20:38:00] <Pyromanik> lol dem loops
1446: [20:38:27] <Alexw> Database.php~390 is just a function where you say that he is not required anymore
1447: [20:39:06] <Alexw> "If the given table exists, move it out of the way by renaming it to _obsolete_(tablename)."
1448: [20:39:10] <guzzlefry> Pyromanik: nope, exporting around 300 pages of Member data.
1449: [20:39:18] <Alexw> So that means if I create a new module and has the same class name
1450: [20:39:23] <Alexw> Then it will be renamed
1451: [20:39:26] <Alexw> Correct?
1452: [20:39:31] <Pyromanik> no
1453: [20:39:34] <Alexw> oh
1454: [20:39:46] <Pyromanik> it means if you create a module with the same classname then you're doing it wrong.
1455: [20:40:02] <Pyromanik> grep -nr dontRequireTable framework
1456: [20:40:03] <Pyromanik> framework/model/Versioned.php:526: DB::dontRequireTable("{$table}_versions");
1457: [20:40:05] <Pyromanik> framework/model/DataObject.php:3062: DB::dontRequireTable($this->class);
1458: [20:40:08] <Pyromanik> framework/model/Database.php:389: public function dontRequireTable($table) {
1459: [20:40:11] <Pyromanik> framework/model/DB.php:346: public static function dontRequireTable($table) {
1460: [20:40:14] <Pyromanik> framework/model/DB.php:347: return self::getConn()->dontRequireTable($table);
1461: [20:41:05] * nickmolhoek has joined #silverstripe
1462: [20:41:06] * nickmolhoek quit (Remote host closed the connection)
1463: [20:41:20] * nickmolhoek has joined #silverstripe
1464: [20:42:34] <Alexw> It get removed when a Table Class has no fields in it
1465: [20:44:47] <Alexw> So if I recreate the class again and then don't create any fields in it
1466: [20:44:48] <Pyromanik> well, there you go.
1467: [20:44:54] <Pyromanik> what
1468: [20:44:56] <Alexw> then the table should rename itself to obsolte
1469: [20:45:01] <Pyromanik> why would you care?
1470: [20:45:11] <Alexw> It is just an example
1471: [20:45:15] <Pyromanik> but why?
1472: [20:45:17] <Alexw> Not that I will do that
1473: [20:45:27] <Pyromanik> but why would you investigate it?
1474: [20:45:31] <Alexw> Just to clarify
1475: [20:45:38] <Pyromanik> I don't get the end game here
1476: [20:45:46] <Pyromanik> unused fields/tables are simply ignored.
1477: [20:46:03] <Pyromanik> they clutter the DB up a bit when you inspect it manually, sure.
1478: [20:46:03] <Alexw> I do not like data that not have a goal to something
1479: [20:46:08] <Pyromanik> but then you can just clean it out manually.
1480: [20:46:20] <Alexw> Not if you have 100 customers
1481: [20:46:22] <Pyromanik> Alexw: stop worrying and learn to love the bomb.
1482: [20:46:26] <Alexw> Using different installs
1483: [20:47:25] <Pyromanik> When I very first started using silverstripe I used to worry about shit that doesn't matter too.
1484: [20:47:47] <simon_w> chillu, I changed FTPageMakerTask to $this->makePages(30,5); and Hiearachy: node_threshold_total: 1, ran the task, stopped it at 1.1.4.15.6, went to admin/pages, clicked the Add New, added it under 1.1.4 and got case 2 of the report happening
1485: [20:48:06] <chillu> OK, lemme try that
1486: [20:48:22] <Alexw> Well, it's all new to me, the SS CMS...but I like it so far
1487: [20:48:55] <Alexw> This is my first framework/cms that only need a few lines to extend it
1488: [20:49:30] <Alexw> For example...Today I created a products, categories and catalogs. And only took like 10 lines
1489: [20:50:03] <Alexw> I like the SS works together with the database without I need to create everything for myself manually
1490: [20:50:35] <Pyromanik> Alexw: it sure helps!
1491: [20:50:45] <Alexw> If all my work/websites runs on SS then I guess I have to remove my database client since I do not need it anymore :)
1492: [20:51:21] <Pyromanik> well no, it comes in handy every now and then.
1493: [20:51:26] <Pyromanik> to check things, etc.
1494: [20:51:39] <Pyromanik> or remove dead tables ;)
1495: [20:51:56] <Alexw> ok ok :)
1496: [20:51:56] <simon_w> Someone should update dbplumber for 3.1
1497: [20:52:09] <Pyromanik> eh
1498: [20:52:10] <Alexw> But you don't need it at much as with other frameworks/cms do
1499: [20:52:11] <oddnoc> simon_w: read my mind
1500: [20:52:17] <Pyromanik> Alexw: nah.
1501: [20:52:30] <Pyromanik> for sure.
1502: [20:52:41] <simon_w> Fah shizzle
1503: [20:52:54] * chillu quit (Ping timeout: 264 seconds)
1504: [20:53:08] <Alexw> "My mind to your mind my thoughts to your thoughts." :)
1505: [20:53:12] * simon_w has joined #silverstripe
1506: [20:53:48] <simon_w> Hah, I don't show kicks in the logs
1507: [20:54:33] <Alexw> Challenge your preconceptions, or they will challenge you.
1508: [20:55:41] <simon_w> http://logs.simon.geek.nz/source/tags/log.php
1509: [20:55:41] <simon_w> Someone send me a patch that adds in KICK properly
1510: [20:56:08] <simon_w> Hmm, may be missing some extra data
1511: [20:56:43] <Avroceptyr> ./kick person reason ?
1512: [20:56:51] <Avroceptyr> or do you need a pre-processor for your framework?
1513: [20:56:53] <Avroceptyr> :P
1514: [20:57:09] <simon_w> Hmm, don't store the person being kicked
1515: [20:57:15] <simon_w> Must be why I don't show them
1516: [20:57:17] <simon_w> oh well
1517: [20:59:41] <Pyromanik> 09:56 < Avroceptyr> or do you need a pre-processor for your framework?
1518: [20:59:42] <Pyromanik> hahahahahaha
1519: [20:59:45] <Pyromanik> +1
1520: [21:02:03] <oddnoc> When does this business about a readonly/viewing version in SiteTree#getCMSActions ever actually add email and rollback buttons? Is there a use case for it, or is it leftover code?
1521: [21:02:39] <oddnoc> I understand what the code says, but I can't trigger it.
1522: [21:03:35] <Pyromanik> :( filter not working
1523: [21:03:37] <Pyromanik> ffff
1524: [21:04:38] <atmos> http://www.hongkiat.com/blog/things-programmers-say/ :>
1525: [21:04:43] <atmos> love it
1526: [21:05:11] <Pyromanik> devopsreactions.tumblr.com
1527: [21:06:43] <atmos> haha
1528: [21:06:46] <atmos> nice Pyromanik
1529: [21:07:51] <ss23> 03:46:31 <@chillu23> I had 23 when ss23 was still in his diapers ;) Its my alternative nickname, no idea why the IRC client chose it
1530: [21:07:58] <ss23> Excuses excuses, you stole it :O
1531: [21:08:46] <Alexw> Time is a path from the past to the future and back again. The present is the crossroads of both.
1532: [21:09:43] * guci0 quit (Ping timeout: 250 seconds)
1533: [21:10:03] <guzzlefry> Isn't there a way to set dev mode while admin?
1534: [21:10:08] <ss23> http://googleonlinesecurity.blogspot.co.nz/2013/10/going-beyond-vulnerability-rewards.html l33t :D
1535: [21:10:49] <atmos> bah, security
1536: [21:10:51] <Pyromanik> atmos: that article was crap :<
1537: [21:11:06] <atmos> Pyromanik: your face is crap
1538: [21:11:09] <guzzlefry> oh
1539: [21:11:13] <guzzlefry> ?isDev=1
1540: [21:11:30] <Pyromanik> atmos: your fase is karp.
1541: [21:11:35] <guzzlefry> ss23: Don't forget to play Push it to the Limit on work speakers today.
1542: [21:11:45] <ss23> hahaha
1543: [21:11:46] <atmos> Magicarp
1544: [21:11:48] <ss23> Okay okay, good work, guzzlefry :D
1545: [21:11:50] <ss23> A+
1546: [21:11:53] <guzzlefry> yay
1547: [21:12:08] <guzzlefry> I started playing it after I hit PHP's memory limit. :P
1548: [21:13:06] <ss23> Hmm
1549: [21:13:09] <ss23> I have a question
1550: [21:13:09] * micmania1 quit (Ping timeout: 248 seconds)
1551: [21:13:54] * micmania2 has joined #silverstripe
1552: [21:15:35] <Alexw> Wanting is more pleasurable than having.
1553: [21:17:31] <BPower> Benefits and disadvantages to extending SiteTree directly instead of Page?
1554: [21:18:15] <unsignedint> BPower: most modules extend Page. Also you can easily modify Page later if something needs to be added to all pages, but you cant easily modify SiteTree if youc are about updating SS in future
1555: [21:19:02] <unsignedint> ss23: leave us hanging... :P
1556: [21:19:16] <guzzlefry> The suspense.
1557: [21:19:38] <Alexw> What would he ask? Infinite diversity in infinite combination.
1558: [21:20:00] <BPower> unsignedint: ya, that's what I thought. Any benefits you can think of?
1559: [21:20:18] <unsignedint> BPower: not really. remove a tiny insignificant layer?
1560: [21:20:40] <atmos> what's going on with Alexw ?
1561: [21:20:55] <Alexw> Why?
1562: [21:21:05] <atmos> he crumbled under the weight of Pyromanik 's statements
1563: [21:21:07] <atmos> ;)
1564: [21:21:11] <unsignedint> BPower: actually if you have a Page defined with some "stuff" but you want a page without that "stuff" (you want this later and didnt realise), you could then extend SiteTree
1565: [21:21:35] <Alexw> There is no offense where none is taken.
1566: [21:22:01] <BPower> unsignedint: ya, that's exactly what I'm working with.
1567: [21:24:17] <atmos> :( no code today - all meetings and SQL
1568: [21:24:20] <atmos> blegh
1569: [21:24:48] <unsignedint> meetings - the illusion of progress
1570: [21:24:48] <guzzlefry> my day has been playing server admin
1571: [21:24:49] <Alexw> In accepting the inevitable, one finds peace.
1572: [21:24:59] <unsignedint> Alexw is zen master
1573: [21:25:21] <Alexw> One man can summon the future.
1574: [21:26:20] <ss23> unsignedint: Sorry, I have real work to do for a min
1575: [21:26:20] <ss23> :<
1576: [21:26:39] <unsignedint> ss23: you poor bastard
1577: [21:26:50] <atmos> ss23: AND it's Friday
1578: [21:28:03] <guzzlefry> Anyone running SilverStripe on nginx? >_>
1579: [21:28:19] <Alexw> Yes
1580: [21:28:46] <Colin[pi]> Hi everybody!
1581: [21:28:56] <Alexw> Greetings
1582: [21:28:59] <unsignedint> hi colin
1583: [21:29:02] <atmos> Hi Colin[pi] \o/
1584: [21:29:07] <ss23> I KNOW
1585: [21:29:09] <unsignedint> does [pi] mean youre running on a raspberry pi?
1586: [21:29:16] <ss23> Everyone is like "DO MY WORK NOW!!!"
1587: [21:29:23] <Alexw> May your journey be free of incident.
1588: [21:29:25] <simon_w> ss23, DO MY WORK NOW!!!!!
1589: [21:29:35] <Colin[pi]> unsignedint: no it's just [pi] for Praxis Interactive where I work
1590: [21:29:44] <unsignedint> oh right, understood :)
1591: [21:29:48] <ss23> simon_w: :<
1592: [21:29:51] * atmos opens support ticket for ss23
1593: [21:29:52] <Colin[pi]> because one day I might be able to afford an employee lolololol
1594: [21:29:53] <Colin[pi]> ;D
1595: [21:30:05] <simon_w> ss23, WHY HAVEN'T YOU DONE MY WORK YET???????
1596: [21:30:11] <Alexw> Nothing that is is unimportant.
1597: [21:30:41] <unsignedint> powered by praxis cms? did you do some silverstripe mods?
1598: [21:30:42] <Colin[pi]> did you see my kid's awesome cake we made? https://pbs.twimg.com/media/BWNjm__CIAAgMGA.jpg
1599: [21:30:59] <ss23> Here, composer is updating, I have some free time
1600: [21:31:01] <ss23> Okay so my question
1601: [21:31:03] <unsignedint> thats a pretty epic cake
1602: [21:31:05] <ss23> Someone was like "namespacing is awesome!"
1603: [21:31:09] <unsignedint> ss23: that was me
1604: [21:31:10] <Colin[pi]> unsignedint: yeah *heavily* modified SS CMS
1605: [21:31:11] <Avroceptyr> ss23: just use a pre-processor
1606: [21:31:15] <Colin[pi]> and thanks :)
1607: [21:31:16] <ss23> "If you don't use namespacing, you can have lots of hard to debug issues"
1608: [21:31:19] <ss23> Now in my mind, that's bullshit
1609: [21:31:26] <unsignedint> ss23: the second part wasnt me
1610: [21:31:32] <Avroceptyr> "hard to debug" is purely down to the skill of the developer
1611: [21:31:35] <ss23> If you ever re-use classes/functions without a namespace, you'll get a big fat error giving you both the places
1612: [21:31:36] <unsignedint> indeed
1613: [21:31:39] <ss23> It's literally the opposite of "hard to debug"
1614: [21:31:40] <ss23> right?
1615: [21:31:42] <ss23> I'm not missing something?
1616: [21:31:44] <Alexw> The needs of the many outweigh the needs of the few or the one.
1617: [21:31:48] <atmos> ss23: correct
1618: [21:31:52] <unsignedint> ss23: no youre not
1619: [21:31:53] <ss23> Yeah, that's what I thought
1620: [21:32:04] <atmos> it might HELP debugging, but only if the dev is crap at it
1621: [21:32:29] <unsignedint> the person is question was probably just a high school faggot who just found PHP and thinks html is a programming language
1622: [21:32:38] <longtips> been using this lots lately, it's fucking rad http://raveren.github.io/kint/
1623: [21:32:39] <Alexw> Install XDebug and live long and prosper.
1624: [21:32:43] <Avroceptyr> HTML isn't a programming language?! o.O
1625: [21:32:57] <unsignedint> :P
1626: [21:33:12] <longtips> reading kcachegrind outputs from xdebug can eat it
1627: [21:33:18] <longtips> unless you're debugging php itself
1628: [21:33:20] <Avroceptyr> HTML is a programming language; MD5 is a great compression algorithm (better than zip or gz)
1629: [21:33:32] <Avroceptyr> I would be an awesome teacher of CS
1630: [21:33:34] <Avroceptyr> although
1631: [21:33:50] <Colin[pi]> XML stands for Xtreme Markup Language XD
1632: [21:34:05] <unsignedint> Avroceptyr: yeah md5 is the best compression, it compresses everything to 32 characters
1633: [21:34:11] <guzzlefry> Don't forget "Information Super Highway!"
1634: [21:34:18] <Colin[pi]> oh god
1635: [21:34:26] <Colin[pi]> so many bad buzzwords and phrases
1636: [21:34:28] <Avroceptyr> In seriousness, I read about a teacher who did the following class: First class of grade 9 (~15 year olds) and teaching them how to code a simple Basic script. Near the end of the class, the teacher would turn off the mains power.
1637: [21:34:29] <guzzlefry> or "It's a series of tubes"
1638: [21:34:36] <atmos> code smell
1639: [21:34:38] <atmos> HATE THAT
1640: [21:34:44] <Colin[pi]> Is it WEB 2.0?
1641: [21:34:45] <Avroceptyr> Lesson of the first class wasn't Basic, but save your bloody work.
1642: [21:34:54] <unsignedint> Avroceptyr: hahahahahaha thats genius
1643: [21:34:58] <Colin[pi]> is it "in the cloud"?
1644: [21:34:58] <guzzlefry> Colin[pi]: web 2.0 in the cloud brah
1645: [21:35:03] <Colin[pi]> lol
1646: [21:35:13] <Colin[pi]> "what, you mean on a server?"
1647: [21:35:16] * simon_w is getting tempted to create a swear jar now
1648: [21:35:38] <longtips> one of my domains has cloud in it, and one of my clients asked the other day if we can host it on that one
1649: [21:35:43] <longtips> cracked me up
1650: [21:35:43] <atmos> I have noticed swearing is on the up
1651: [21:35:44] <longtips> sales broo
1652: [21:35:56] <Alexw> He talks peace if it is the only way to live.
1653: [21:35:57] * wilr_ has joined #silverstripe
1654: [21:35:59] <Colin[pi]> longtips: yup, just put cloud on everything and watch the money rain
1655: [21:36:02] <Colin[pi]> although
1656: [21:36:03] <longtips> yep
1657: [21:36:05] <Colin[pi]> post snowden...
1658: [21:36:18] <Colin[pi]> not sure if it's as popular now as before
1659: [21:36:24] <guzzlefry> simon_w: My friend carries around a "Texting on phone while hanging out with friends" jar. :P
1660: [21:36:44] <guzzlefry> Ends up paying for lunch sometimes.
1661: [21:36:55] <Colin[pi]> i've seen worse, table full of people all interacting via facebook instead of talking
1662: [21:36:56] <simon_w> guzzlefry, try that on me :p
1663: [21:37:04] <unsignedint> Colin[pi]: its turned to "private cloud" :P
1664: [21:37:07] <unsignedint> or "your own cloud"
1665: [21:37:09] <Colin[pi]> lol
1666: [21:37:15] <Colin[pi]> it's all in how you spin it
1667: [21:37:21] <simon_w> New Zealand: Land of EFTPOS :p
1668: [21:37:28] <atmos> LOL
1669: [21:37:32] <unsignedint> indeed. thats why I have a strong hate for marketing.
1670: [21:37:54] <Colin[pi]> unsignedint: I've learned that basically it's all about making yourself sound like the biggest wanker around
1671: [21:37:57] <longtips> anyone that uses the term wifi happily probably can't piss about cloud
1672: [21:38:11] <unsignedint> Colin[pi]: yep sounds about right. but dumb people lap it up and dumb people have all the money
1673: [21:38:11] <longtips> since we were using clouds for our internet diagrams 20 years ago
1674: [21:38:17] <Colin[pi]> unsignedint: bingo!
1675: [21:38:22] <longtips> where as wifi is a total marketing structure
1676: [21:38:33] <Colin[pi]> wifi was invented here in Canberra!
1677: [21:39:08] <simon_w> So were roundabouts!
1678: [21:39:19] <Colin[pi]> dont knock them, they're awesome
1679: [21:39:21] <Avroceptyr> haha Colin[pi]
1680: [21:39:37] <Colin[pi]> canberra: "oh I missed my turn... LOOPY ROUND TEH ROUNDABOUT. YAY!"
1681: [21:39:49] <atmos> haha
1682: [21:39:54] <Colin[pi]> sydney: "oh I missed my turn... FFFFFFUUUUUUUUUUUUUUU" *wait for 45 minutes until next exit*
1683: [21:40:26] <Avroceptyr> Melbourne: "Oh I missed my turn...why am I in Ballarat?"
1684: [21:40:47] <simon_w> We missed out turn in Sydney. Ended up getting tolled for it.
1685: [21:40:50] <simon_w> *our
1686: [21:40:55] * Alexw quit ()
1687: [21:41:06] <simon_w> Silly harbour bridge
1688: [21:41:08] <Colin[pi]> haha simon_w, toll trolled
1689: [21:41:29] <Avroceptyr> we should have a bot in here that is a swear jar bot that counts how many times you've sworn and at certain points (3, 5, ... fib ) does something
1690: [21:41:45] <ss23> WE have simon_w to give us fuck counts
1691: [21:41:51] <ss23> p.s. spronk the subsites master wins
1692: [21:41:53] <Avroceptyr> oh right, he's the bot
1693: [21:41:54] * coldblooded01 has joined #silverstripe
1694: [21:41:56] <Colin[pi]> simon_w is the fuck master
1695: [21:41:58] * simon_w wins the bitch count
1696: [21:42:13] <Colin[pi]> yeah that's right, ok he's the bitch master
1697: [21:42:23] <Avroceptyr> or tha master bitch?
1698: [21:42:51] <simon_w> ss23's the cunt master?
1699: [21:42:54] <ss23> :O
1700: [21:43:00] <ss23> We need live cunt fuck tallies!
1701: [21:43:01] <Colin[pi]> that's what he tells the ladies
1702: [21:43:04] * UncleCheese quit (Quit: UncleCheese)
1703: [21:43:25] <simon_w> I'm not adding an index for that, so no
1704: [21:43:48] <ss23> lol
1705: [21:43:51] <unsignedint> Colin[pi]:I hope not, females hate the word 'cunt'
1706: [21:43:53] <ss23> just generate it on cron every 5 mins/
1707: [21:43:54] <simon_w> Sort (cost=40055.87..40055.87 rows=1 width=8) (actual time=1950.602..1950.608 rows=9 loops=1)
1708: [21:44:01] <MattSS> Has anyone used fulltextsearch module with non-Versioned objects (e.g. not SiteTree objects)?
1709: [21:44:08] <Colin[pi]> unsignedint: yeah usually they are not too fond
1710: [21:44:17] <MattSS> Is there some info on how to not use the SearchVariants somewhere?
1711: [21:44:21] <ss23> MattSS: Hmm, I think so... from memory we use fulltextsearch to search DMS
1712: [21:44:37] <simon_w> MattSS, doesn't it search File by default, which isn't versioned?
1713: [21:45:00] <ss23> $this->addClass('DMSDocument');
1714: [21:45:07] <ss23> thats it
1715: [21:45:17] <ss23> MattSS: If you don't do a $this->excludeVariantState it should work fine?
1716: [21:45:26] <MattSS> Doesn't appear to :(
1717: [21:45:41] <ss23> MattSS: Does for me -- remember you need to Solr_Configure to get it to work
1718: [21:45:47] <simon_w> Hmm, I could do it on a five minute thing, though screw writing a cron
1719: [21:45:56] <MattSS> I have a class Story extends DataObject, have done $this->addClass('Story') etc. and I get a fatal from Solr
1720: [21:46:09] <ss23> MattSS: Whats the error? Did you Configure and Reindex?
1721: [21:46:10] <MattSS> yep have Solr_Configure and Solr_Reindex'd
1722: [21:46:14] <MattSS> one sec, will get it again
1723: [21:46:32] <atmos> MattSS: I was going to say config/index
1724: [21:46:55] * catcher quit (Quit: Leaving)
1725: [21:47:15] <ss23> Let me paste this entire file for your reference, MattSS -- I didn't write it myself
1726: [21:48:07] <atmos> MattSS: I could take a look at our tasman repo if want - I'm sure we're doing this
1727: [21:48:11] <atmos> you*
1728: [21:48:30] <ss23> MattSS: https://gist.github.com/ss23/bd20caaaa03cc93c3f2f That's our solr thingy
1729: [21:49:38] <atmos> ^^
1730: [21:50:17] <simon_w> Work is severely lacking in lego :(
1731: [21:50:40] <MattSS> cool, thx ss23
1732: [21:50:50] <MattSS> Can't replicate the issue right now - Solr not communicating at all :D
1733: [21:51:08] <MattSS> but it was a Solr exception, mentioning something about the column SearchVariantStages not existing
1734: [21:51:12] <MattSS> or something like that
1735: [21:51:24] <Colin[pi]> simon_w: do you want me to make you a lego cake too?
1736: [21:51:43] <simon_w> Ooh, I could even collect it!
1737: [21:51:48] <atmos> MattSS: is the service actually running? that exp normally forced a restart for us
1738: [21:51:50] <Colin[pi]> indeed!
1739: [21:52:10] <simon_w> Got four days when I'm planning on doing some part-time work while Caitlin's working
1740: [21:52:17] <MattSS> atmos: yep definitely running, it's communicating but not reindexing anything, yay
1741: [21:53:17] <atmos> flush=all on reconfigure?
1742: [21:53:19] <Colin[pi]> simon_w: work for me, I will pay in cake!
1743: [21:53:41] <simon_w> Haha. My waist line may not be happy with that :p
1744: [21:53:59] <simon_w> MattSS, stop using Java? :p
1745: [21:56:18] <Pyromanik> unsignedint: depends on the female.
1746: [21:56:20] <MattSS> Solr error is: SEVERE: org.apache.solr.common.SolrException: undefined field _versionedstage
1747: [21:56:31] * micmania1 has joined #silverstripe
1748: [21:56:33] <MattSS> atmos: yep :D
1749: [21:56:37] * oddnoc quit (Quit: bye!)
1750: [21:56:54] <Pyromanik> kiwis drop c-bombs all the time.
1751: [21:57:02] <ss23> We don't *really*
1752: [21:57:05] <ss23> well, cakes, yes
1753: [21:57:14] <Avroceptyr> and code-bombs
1754: [21:57:16] <Pyromanik> more than most other English speaking nations!
1755: [21:57:33] <Pyromanik> like your mate can be a "good cunt"
1756: [21:57:43] <Pyromanik> that don't happen much anywhere else.
1757: [21:57:47] <Pyromanik> maybe Aussie.
1758: [21:57:51] * Pyromanik shrugs
1759: [21:58:09] <Pyromanik> Most American's I've met have found that phrase extreeeeemly confusing.
1760: [21:58:26] <simon_w> Eh, they have fanny packs
1761: [21:59:06] <Colin[pi]> I remember watching disney as a kid and chip and dale said "It's a duck, with a big fanny!" - was very confused
1762: [21:59:13] <simon_w> And I'm going to have to make those stats. Someone remind me once I've finished my Exceutor
1763: [21:59:33] * micmania2 quit (Ping timeout: 248 seconds)
1764: [21:59:36] <Pyromanik> simon_w: but in Americanese 'fanny' means something else :<
1765: [21:59:41] <Colin[pi]> simon_w: how far through?
1766: [21:59:51] <Pyromanik> 10:59 < Colin[pi]> I remember watching disney as a kid and chip and dale said "It's a duck, with a big fanny!" - was very confused
1767: [21:59:52] <simon_w> Colin[pi], just over half way
1768: [21:59:54] <Pyromanik> hahahahaa
1769: [21:59:56] * ARNHOE quit (Remote host closed the connection)
1770: [21:59:56] <Pyromanik> so confusing
1771: [21:59:59] <Pyromanik> ikr
1772: [22:00:04] <Colin[pi]> simon_w: awesome :)
1773: [22:00:12] <simon_w> It is :)
1774: [22:00:27] * violetina quit (Read error: Connection reset by peer)
1775: [22:00:27] <Colin[pi]> I have the dark side developers kit, but the motor has seized :(
1776: [22:02:28] <simon_w> Colin[pi], open a ticket for ss23 to fix!
1777: [22:02:38] <Colin[pi]> lol
1778: [22:02:47] <Colin[pi]> good lord that executor is pricey
1779: [22:02:57] <simon_w> Yeah
1780: [22:03:00] <simon_w> And big!
1781: [22:03:25] <simon_w> The box is at least a metre across
1782: [22:03:31] <Colin[pi]> :o
1783: [22:03:48] <simon_w> The actual model's something like 1.4m
1784: [22:04:22] <Colin[pi]> wow
1785: [22:04:50] <ss23> I don't really "get" lego
1786: [22:05:25] * SightUnseen1 has joined #silverstripe
1787: [22:05:32] <simon_w> ss23, because you had a deprived childhood?
1788: [22:05:51] <Colin[pi]> ss23: dude lego is awesome
1789: [22:07:16] <ss23> simon_w: I had lego as a kid
1790: [22:07:24] <ss23> knex too etc (at school)
1791: [22:07:34] <ss23> They were fun enough, but I would rather just write code now
1792: [22:08:06] <simon_w> Eh, code is boring
1793: [22:08:34] <simon_w> Also, I don't know if Ingo ended up being able to reproduce my bug
1794: [22:09:24] <guzzlefry> "NetworkError: 500 Internal Server Error - http://localhost/?isDev=1"
1795: [22:09:36] <guzzlefry> Using nginx + fastcgi :/
1796: [22:09:43] <Pyromanik> guzzlefry: because ?isDev
1797: [22:09:48] <Pyromanik> segfaults
1798: [22:09:48] <guzzlefry> yeah
1799: [22:09:50] <Pyromanik> or something
1800: [22:09:52] * chillu has joined #silverstripe
1801: [22:09:52] <Pyromanik> don't do it.
1802: [22:09:59] <Pyromanik> 3.0 is all broken.
1803: [22:10:03] <Pyromanik> apparently 3.1 fixed
1804: [22:10:03] <guzzlefry> oh :P
1805: [22:10:08] <guzzlefry> well that would explain it
1806: [22:10:25] <guzzlefry> well damn
1807: [22:10:41] <guzzlefry> I don't want to put the production server in dev mode to debug since everything is open after that.
1808: [22:11:09] <simon_w> guzzlefry, if($_SERVER['REMOTE_ADDR'] == 'me') { dev mode } else { live mode }
1809: [22:11:36] <guzzlefry> simon_w: thanks!
1810: [22:14:13] <Pyromanik> uh oh
1811: [22:14:17] <Pyromanik> all morning on a bug
1812: [22:14:20] <Pyromanik> just saw it
1813: [22:14:22] <Pyromanik> shat bricks
1814: [22:14:29] <Pyromanik> V => v
1815: [22:14:33] <guzzlefry> 0.o
1816: [22:14:54] * guzzlefry doesn't know what he's looking at.
1817: [22:15:06] <Pyromanik> the difference between $arraydata->variablename (bug) and $arraydata->Variablename
1818: [22:15:29] <guzzlefry> oh
1819: [22:15:57] <guzzlefry> I do that a lot.
1820: [22:16:08] <Pyromanik> hmm, apparently not, still bung = (
1821: [22:16:21] <guzzlefry> debugger!
1822: [22:16:32] <Pyromanik> I am the debugger.
1823: [22:17:10] <guzzlefry> yay
1824: [22:17:11] <guzzlefry> 2013/10/10 17:16:16 [error] 1810#0: *16071 upstream sent too big header while reading response header from upstream,
1825: [22:19:22] * UncleCheese has joined #silverstripe
1826: [22:19:40] * simon_w is procrastinating like a boss
1827: [22:19:56] <Pyromanik> still writing docs simon_w ?
1828: [22:20:06] <simon_w> Still need to
1829: [22:20:13] <simon_w> Doing help desk ticket stuff
1830: [22:20:19] <Pyromanik> o :<
1831: [22:21:05] <simon_w> Well, I'm actually browsing the lego store
1832: [22:21:11] <guzzlefry> hah
1833: [22:21:30] <simon_w> Tempted to get http://shop.lego.com/en-NZ/Tower-Bridge-10214
1834: [22:22:03] <Pyromanik> ffffff
1835: [22:22:07] <Pyromanik> 11:16 < Pyromanik> hmm, apparently not, still bung = (
1836: [22:22:17] <Pyromanik> second lowercase char in same variable name.
1837: [22:22:22] <Colin[pi]> simon_w: what, no deathstar?
1838: [22:22:40] <simon_w> Have you seen the deathstar model? It's bleurgh :p
1839: [22:23:04] <Colin[pi]> hmm yeah it is a bit
1840: [22:23:26] <guzzlefry> only $400? :P
1841: [22:24:06] <Colin[pi]> simon_w: do they still sell the NXT?
1842: [22:24:16] <Colin[pi]> combine your programming and lego skillz :P
1843: [22:24:36] <simon_w> Colin[pi], looks like it
1844: [22:24:52] <Colin[pi]> simon_w: some of the NXT stuff I've seen on youtube is crazy amazing
1845: [22:25:00] <Colin[pi]> there are some very clever people out there
1846: [22:25:46] <simon_w> Ooh, could get http://shop.lego.com/en-NZ/Millennium-Falcon-7965 then have a fight
1847: [22:25:56] <Colin[pi]> simon_w: I desperately want to make this: http://www.youtube.com/watch?v=dargOslomMA
1848: [22:26:29] <Pyromanik> how to set multiple sorts?
1849: [22:26:44] <Pyromanik> like, Col1 DESC, Col2 ASC, etc
1850: [22:27:13] <simon_w> Pyromanik, ->sort(array('Col1 DESC', 'Col2 ASC'))
1851: [22:27:59] <Pyromanik> thanks simon_w
1852: [22:28:00] <simon_w> or 'Col1' => 'DESC', 'Col2' => 'ASC'
1853: [22:28:46] <simon_w> Colin[pi], do it.
1854: [22:29:10] <Colin[pi]> looks so cool :D
1855: [22:29:18] <ss23> I need to implment some caching
1856: [22:29:27] <ss23> I have ~4 pages, 2 of them have 2 get params
1857: [22:29:30] <ss23> I need to cache them
1858: [22:29:33] <ss23> How to implement?
1859: [22:29:35] <Pyromanik> implment
1860: [22:29:50] <simon_w> ss23, just do it.
1861: [22:29:53] <Pyromanik> ss23: zend_cache?
1862: [22:30:09] <ss23> No no, like
1863: [22:30:12] <ss23> It needs to not hit PHP
1864: [22:30:16] <ss23> Static cache
1865: [22:30:55] <simon_w> Can you change it so it uses a URL instead of get params?
1866: [22:31:40] <ss23> Well, my preference is to not to -- I can mod_rewrite it to the static file, right/
1867: [22:31:50] <simon_w> yeah
1868: [22:32:17] <ss23> I mean, I can get the rewrite rules to use the static files easily enough, I'm more thinking about how to do the updating of the pages
1869: [22:32:36] <ss23> Just running a cron every 5 mins is probably enough I guess. At least some of the content needs to update quite quickly
1870: [22:32:57] <simon_w> Don't you build up a set of URLs for static publisher to cache?
1871: [22:33:11] <ss23> Yeah, but the get parameters?
1872: [22:33:42] <simon_w> Try it!
1873: [22:34:16] <ss23> What the fucking shit, someone put some August Burns Red under the wrong title/band in Grooveshark
1874: [22:34:20] <ss23> goddam it
1875: [22:36:17] <zippy__> end.. of.. the… world :)
1876: [22:37:20] <zippy__> ss23: I found with the static publisher, when I edited the page it would clear the cache of that page - becuase there is the method of what pages to clear when it gets updated (if that makes sense).
1877: [22:37:43] <ss23> zippy__: Not quite applicable in this case, because the page is dynamically generated, outside of the CMS
1878: [22:37:56] <zippy__> I still ended up in using a cron that updates all every 3 hours
1879: [22:37:58] <zippy__> I c
1880: [22:38:24] <ss23> I'll look into modifying the static cache stuff I gues
1881: [22:38:29] <zippy__> In that dynamic page, how do you know it's changed?
1882: [22:38:36] <zippy__> when does it change I mean?
1883: [22:38:49] <ss23> Every second, kind of, but I'm willing to do 5 mins
1884: [22:38:55] <ss23> It returns the amount of "events" in the near future
1885: [22:39:23] <micmania1> ss23, can't you just trigger the cache every time an "event" occurs
1886: [22:40:03] <ss23> Then I would need to run a cron constanttly looking for new events anyway :P
1887: [22:40:15] <zippy__> so the events is thirdparty?
1888: [22:40:34] <micmania1> not if the cache was triggered after an event was created?
1889: [22:40:49] <ss23> micmania1: Can't trigger cache rebuilds in the future at the moment
1890: [22:40:56] <ss23> It needs to display them only for the next 30 days or so
1891: [22:41:01] <ss23> zippy__: No, but the system was built like this
1892: [22:41:19] <micmania1> ahhh, I see you problem.
1893: [22:41:29] <ss23> (That is, in such a way that a 5 min cache rebuild would be best)
1894: [22:41:50] <ss23> But the technical part is what I'm looking at doing, how to do the get param stuff is hardest
1895: [22:41:55] <ss23> Well, most "interesting", not "hard" :P
1896: [22:42:23] * travis-ci has joined #silverstripe
1897: [22:42:23] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#606 (3.1 - aae6b2b : Ingo Schommer): The build passed.
1898: [22:42:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/c8dc9a937733...aae6b2b2966d
1899: [22:42:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/12393395
1900: [22:42:23] * travis-ci has left #silverstripe
1901: [22:42:47] <zippy__> ss23: are users logged in / any user specific content?
1902: [22:44:53] <ss23> nope, otherwise caching like this wouldn't work properly :P
1903: [22:47:24] <zippy__> ss23: So, perhaps a cheap way around this is to route these pages to a php wrapper - this sha1's the url with all the prams, and checks file exists, checks the filemtime and if under 5 mins echos it, otherwise fetches the page, caches it and displays it… could even use memcache with the expires on the set. Or, modify the static publisher to work..
1904: [22:47:37] <ss23> Ohhh, zippy__
1905: [22:47:37] <ss23> wow
1906: [22:47:45] <ss23> you just turned this problem from "wow this is hard" to "holy shit easy"
1907: [22:48:32] <zippy__> might have to detect any POST's and ignore these / pass these into SS
1908: [22:48:44] <ss23> These URLs don't get POST luckily, but yeah
1909: [22:48:52] <ss23> :D
1910: [22:48:55] <ss23> zippy__: I thank you very much
1911: [22:49:05] <guzzlefry> yay
1912: [22:50:13] <guzzlefry> So, solution to "upstream sent too big header while reading response header from upstream" is adding proxy_buffers 16 16k; proxy_buffer_size 32k;
1913: [22:50:17] <guzzlefry> At least with my config.
1914: [22:50:44] <zippy__> ss23: make sure to handle 404's and redirects :) lots of little gotchas
1915: [22:53:24] * Jakx has joined #silverstripe
1916: [22:53:27] <Jakx> yo
1917: [22:53:43] <guzzlefry> evening
1918: [22:54:02] <zippy__> hi
1919: [22:56:07] <Jakx> does anyone have a good trick for loading Javascript referenced in the Layout template after javascript referenced at the end of the top level template?
1920: [22:57:32] <simon_w> Use 3.1? :p
1921: [22:57:54] <simon_w> Or master
1922: [22:57:57] <simon_w> One of them
1923: [22:58:51] <simon_w> Huh, that PR hasn't been merged
1924: [22:59:03] <guzzlefry> Jakx: "Requirements acts like a stack, where everything is rendered sequentially in the order it was included. There is no way to change inclusion-order, other than using Requirements::clear and rebuilding (=guessing) the whole set of requirements. "
1925: [22:59:28] <guzzlefry> There's a PR to swap the inclusion order?
1926: [22:59:48] <simon_w> Jakx, have a Requirements method in Controller then you call from your main template after everything else
1927: [23:00:07] <simon_w> guzzlefry, there's a PR to lazy evaluate the $Layout and $Content sub templates
1928: [23:01:16] <Jakx> simon_w, my only convern with having the require in the controller is that it's not cleanly associated with the theme
1929: [23:01:46] <Jakx> simon_w, I intend to allow this site to have inter-changeable themes and so don't think it's a good idea to have the requirements in the page controllers
1930: [23:02:50] <Jakx> simon_w, so by default is the Layout template included before the top level template? Thus, including the js referenced in the Layout template before the top level template?
1931: [23:03:05] <simon_w> Layout is rendered before the main template
1932: [23:03:16] <simon_w> Even if you don't use it
1933: [23:03:53] <Jakx> simon_w, and the PR to swap the inclusion order hasn't been included in 3.1?
1934: [23:03:54] <simon_w> What you could do is move all your main includes into templates/Content/Page.ss, as that gets rendered before Layout
1935: [23:04:14] <simon_w> It hasn't been merged at all
1936: [23:04:25] <Jakx> simon_w, :(
1937: [23:05:01] <guzzlefry> Okay, I'm in dev mode, not getting information on this 500 error though.
1938: [23:05:05] <guzzlefry> any ideas?
1939: [23:05:18] <simon_w> What sort of 500?
1940: [23:06:18] <guzzlefry> NetworkError: 500 Internal Server Error - http://localhost/admin/enrollments/Member/EditForm/field/Member?Member%5BGridState%5D=%7B%22GridFieldSortableHeader%22%3A%7B%22SortColumn%22%3A%5B%5D%7D%2C%22GridFieldPaginator%22%3A%7B%22currentPage%22%3A1%7D%7D&SecurityID=4592c69543472646b886a676bbbcff971ee99dc2&action_gridFieldAlterAction%3FStateID%3D525732c037c4d6_27219059=Export%20to%20CSV"
1941: [23:06:23] <ss23> Check your logs?
1942: [23:06:57] <guzzlefry> Nothing shows up in the nginx logs.
1943: [23:07:06] <guzzlefry> Maybe PHP? Need to set those up...
1944: [23:07:31] <micmania1> ini_set("display_errors", 1); ini_set("display_startup_errors", 1);
1945: [23:07:43] <micmania1> My heroes!
1946: [23:07:46] <Jakx> guzzlefry, your web server should be loggin all 500 errors :S
1947: [23:08:24] <guzzlefry> micmania1: Doesn't dev mode do that automatically?
1948: [23:08:56] <Jakx> guzzlefry, it does but it can be overwritten by your ini
1949: [23:09:22] <micmania1> Normally, I have to set them to get fatal errors.
1950: [23:09:28] <guzzlefry> ah okay, will try that.
1951: [23:13:16] <guzzlefry> still nothing
1952: [23:14:15] <simon_w> guzzlefry, check the body of the response
1953: [23:15:46] <guzzlefry> simon_w: It says "Reload to get source for : [giant URL]
1954: [23:16:09] <simon_w> Then you'll need to do that
1955: [23:18:08] <guzzlefry> simon_w: I did? 0.o
1956: [23:18:20] <Jakx> On a side note: Are there any confident developers in here who have room for extra work? send me an email jackson@youthline.co.nz :D
1957: [23:18:24] <simon_w> You probably need to have the Net tab open on load
1958: [23:19:37] <MattSS> ss23, simon_w, atmos: FYI - the Solr thing was because I was *only* indexing content that wasn't Versioned. If I add 'SiteTree' as another class, it works fine :)
1959: [23:19:56] <MattSS> I'll raise an issue on GH for it :)
1960: [23:20:43] <atmos> MattSS: oh snap!
1961: [23:20:48] <Pyromanik> sup Jakx
1962: [23:21:27] <simon_w> chillu, any luck replicating the issue?
1963: [23:21:47] <chillu> Yeah, I'm working on it
1964: [23:21:55] <simon_w> Sweet
1965: [23:22:00] <chillu> Sorry, had internet connection trouble before
1966: [23:22:39] <guzzlefry> oh, content-length: 0
1967: [23:22:41] <guzzlefry> :P
1968: [23:22:41] * Jakx quit (Ping timeout: 245 seconds)
1969: [23:23:34] <guzzlefry> so, what zee hell
1970: [23:24:07] <guzzlefry> Has to be nginx doing something bad since it works on the staging server, which is apache. :/
1971: [23:24:18] <Pyromanik> urgh
1972: [23:24:22] <simon_w> ss23, lunch?
1973: [23:24:33] <Pyromanik> sort() works when called from template, but not in php.
1974: [23:24:45] <Pyromanik> This is because sortfield is SS_Datetime
1975: [23:24:53] <Pyromanik> how to manage a proper sort in PHP?
1976: [23:25:09] <guzzlefry> give it a SS_Datetime?
1977: [23:25:20] <Pyromanik> is IS an SS_Datetime, thus sorting doesn't work.
1978: [23:25:22] <Pyromanik> I guess.
1979: [23:25:41] <simon_w> Pyromanik, DataList or ArrayList?
1980: [23:25:54] <Pyromanik> simon_w: ArrayList
1981: [23:25:57] <guzzlefry> oh, I'm still learning to read more betterer.
1982: [23:26:46] <simon_w> Pyromanik, assigning the result?
1983: [23:26:55] <longtips> a strangely uncommon skill on irc guzzlefry
1984: [23:26:56] <Pyromanik> simon_w: hmm? nope.
1985: [23:27:05] <Pyromanik> oh, right because suddenly immutable now
1986: [23:27:14] <longtips> most people i know admit to never reading books :<
1987: [23:27:14] * guzzlefry is just tired. Been getting 5 hours/night of sleep. :P
1988: [23:27:23] <Pyromanik> simon_w: actually yeah nah I was
1989: [23:28:19] <simon_w> Massive dehydration headache. Not so good.
1990: [23:28:28] <Pyromanik> stink
1991: [23:28:48] <Stomach> which is and htmltext adding </a.length> to the end of itself
1992: [23:28:50] <simon_w> ss23, STOP WORKING AND FEED ME
1993: [23:28:51] <Stomach> >_<
1994: [23:29:04] <shakesoda> bah, apache 2.4 giving me trouble
1995: [23:29:15] <Pyromanik> fuck'n friday all the troubles
1996: [23:29:17] <shakesoda> no wonder nobody uses it.
1997: [23:29:35] <Pyromanik> shakesoda: lots of people use it
1998: [23:29:44] <shakesoda> most still use 2.2
1999: [23:30:04] <Stomach> I use it
2000: [23:30:06] <Stomach> o_O
2001: [23:30:18] <shakesoda> anyhow, lots of small config problems and for some reason silverstripe is totally ignoring that mod rewrite works.
2002: [23:30:29] <Pyromanik> simon_w: so yeah, assigning result results in still unordered. Or rather, original order I guess.
2003: [23:30:37] <Stomach> HTMLText why you adding shit to my values
2004: [23:30:40] <Stomach> fucking fuck
2005: [23:30:48] <Pyromanik> shakesoda: probably no allowoverride
2006: [23:31:02] <shakesoda> Pyromanik: but I already set that :\
2007: [23:31:19] <shakesoda> I can delete index.php from the url so it looks correctly and it works fine.
2008: [23:31:20] <Pyromanik> and is it working?
2009: [23:31:29] <shakesoda> it sure as hell _was_ working.
2010: [23:31:40] <Stomach> yeah ive been having that issue too shake
2011: [23:31:44] <Stomach> i just delete index
2012: [23:31:48] <Pyromanik> shakesoda: oh, well that's because indexing order is different in 2.4 from 2.2
2013: [23:31:52] <Pyromanik> or soemthing
2014: [23:31:53] <Stomach> and all is well in the world
2015: [23:31:59] <shakesoda> zuh
2016: [23:32:04] <Pyromanik> I don't even have index.php in my deffault install
2017: [23:32:26] <shakesoda> that's a thought
2018: [23:33:07] <shakesoda> that killed it
2019: [23:33:11] <shakesoda> and now it works fine
2020: [23:33:30] <shakesoda> different indexing order does it huh, is there a workaround for that other than deleting index
2021: [23:34:13] <shakesoda> I don't take too much issue with destroying that, just curious.
2022: [23:34:40] <Stomach> i never looked into it
2023: [23:34:47] <Stomach> deleting it fixed the problem :P
2024: [23:35:10] <guzzlefry> Is it possible to run the export CSV stuff from command line?
2025: [23:35:33] * wilr_ quit (Quit: wilr_)
2026: [23:37:19] <guzzlefry> Also, does the CSV export generate the file in memory and then pass it to the user, or does it save some type of temp file?
2027: [23:40:16] <BPower> How can I get Page::get_by_link($link) to return the page even if it's not published?
2028: [23:40:37] <simon_w> Switch stage first
2029: [23:41:25] <BPower> Any other way?
2030: [23:41:33] <BPower> E.g. a different getter?
2031: [23:41:54] <simon_w> Nope
2032: [23:42:01] <simon_w> Changing stage isn't hard:
2033: [23:42:01] <simon_w> https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/Versioned.php#L1180-L1184
2034: [23:42:23] <simon_w> Just with your own call instead of line 1183
2035: [23:43:22] <ss23> simon_w: Sorry, already got lunch
2036: [23:43:24] <ss23> Wel
2037: [23:43:26] <ss23> I tried to
2038: [23:43:41] <ss23> Point is, sorry, no lunch today with me and you, simon_w :<
2039: [23:44:01] <guzzlefry> okay, so CSV export doesn't error out when I filter the gridfield down to a certain number of pages.
2040: [23:44:10] <BPower> simon_w: I guess it makes sense to keep accidents from happening.
2041: [23:44:14] <BPower> Thanks!
2042: [23:46:02] * Alexw has joined #silverstripe
2043: [23:47:52] <Alexw> Hi, it possible to extend the authenticator of ss? So for example two installs use an external database next to his own
2044: [23:48:56] <guzzlefry> Alexw: I think so? There's a module that allows facebook authentication for logins.
2045: [23:49:24] <Alexw> Ok, thanks i'll look into that
2046: [23:51:47] <Alexw> Yup, exacly what I thought. The module extend from authenticator.
2047: [23:52:17] * SightUnseen1 quit (Quit: Leaving.)
2048: [23:52:20] <Alexw> And then register that class.
2049: [23:53:01] * Alexw quit (Quit: Page closed)

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