#silverstripe IRC Log

IRC log for 5 March 2013

All timestamps are in UTC.

1: [00:05:00] * ajshort has joined #silverstripe
2: [00:05:00] * azureKnight finally got around to reading the chat and realized I'm not the only sublime user. :O
3: [00:06:00] <azureKnight> necessity*
4: [00:06:00] <irogue> lol
5: [00:06:00] <azureKnight> Just toss around some html and programming jargon and say it's a "necssity"
6: [00:06:00] <azureKnight> And like you, irogue , I made work pay for it. :)
7: [00:06:00] <irogue> not at all
8: [00:06:00] <ss23> I just use editors that don't suck instead ^.^
9: [00:07:00] <azureKnight> ss23: a rapid weaver fan? :O
10: [00:07:00] <irogue> ss23 only uses emacs
11: [00:08:00] <irogue> yeah
12: [00:08:00] * simon_w isn't that much of a sublime fan, but it's, for the most part, better than the alternatives
13: [00:08:00] <azureKnight> Ah, I know someone just like that...
14: [00:09:00] <ajshort> That was quite a while ago
15: [00:09:00] <azureKnight> Quite?
16: [00:09:00] <azureKnight> I concur.
17: [00:09:00] <ajshort> I remember when I used to use notepad :)
18: [00:10:00] <Pyromanik> <ss23> I just use editors that don't suck instead ^.^
19: [00:10:00] <Pyromanik> Imma agree with this chap for once
20: [00:10:00] <ajshort> at least two months
21: [00:10:00] <azureKnight> Ah. Quite.
22: [00:11:00] <FrozenFire> But I'm having a hard time justifying $70 for it
23: [00:11:00] <Jakx> _b
24: [00:11:00] <Pyromanik> Notepad++
25: [00:11:00] <FrozenFire> I started poking at Sublime for no other reason than that I started working on a project that had a different coding style, and didn't want to mess up my regular editor
26: [00:11:00] <Pyromanik> for the most part
27: [00:11:00] <FrozenFire> It's... okay.
28: [00:11:00] <Pyromanik> yeh
29: [00:11:00] <Pyromanik> We've got folks at work that use it
30: [00:11:00] <Pyromanik> but... eval version
31: [00:11:00] <irogue> [13:11] <FrozenFire> But I'm having a hard time justifying $70 for it
32: [00:12:00] <irogue> yeah prob wouldn't have paid for it myself
33: [00:12:00] <Pyromanik> doesn't mean anything except a dialog box you can dismiss every 10 execs or something
34: [00:12:00] <Jakx> FrozenFire, once you customise / get a feel for extending / templating. Sublime is pretty sweet.
35: [00:12:00] <FrozenFire> But as it stands, I like GEdit because it just writes text with highlighting and snippets.
36: [00:12:00] <FrozenFire> Maybe if I gave enough of a shit to unlock the next level of awesomeness that I could also unlock in VIM, I'd prefer it
37: [00:12:00] <Pyromanik> after notepad++ I find it hard to go back to
38: [00:12:00] <azureKnight> I'm pretty sure I got it before it hit that much. But I wouldn't really set it apart from the others besides personal oohs and ahs.
39: [00:12:00] <FrozenFire> Except that my "disk" was a network connection
40: [00:12:00] <FrozenFire> It fucked my "disk" hard.
41: [00:12:00] <Pyromanik> but
42: [00:12:00] <FrozenFire> I remember trying Sublime a while back
43: [00:12:00] <Pyromanik> I used medit
44: [00:12:00] <Pyromanik> gedit is good
45: [00:13:00] * chillu quit (Quit: chillu)
46: [00:13:00] <FrozenFire> seems to**
47: [00:13:00] <FrozenFire> And it froze my interface with excessive hits on the network
48: [00:13:00] <FrozenFire> It seems like really like using a whole whackload of random reads
49: [00:13:00] * guci0 quit (Ping timeout: 245 seconds)
50: [00:14:00] * SightUnseen has joined #silverstripe
51: [00:15:00] <Pyromanik> Just type out this obscure command and hey presto!
52: [00:15:00] <Pyromanik> It's more the "I want to be both vim and not vim" that I have issues with
53: [00:16:00] <irogue> Pyromanik: don't get windows 8 :-P
54: [00:16:00] * SightUnseen quit (Client Quit)
55: [00:16:00] <Pyromanik> yeah mate, I actually like having a save button.
56: [00:16:00] <Jakx> Pyromanik, lol
57: [00:16:00] <Pyromanik> you want a toolbar? LOL FU
58: [00:17:00] <FrozenFire> Without having to read a bunch of dry manpages.
59: [00:17:00] <irogue> buttons? don't need them!
60: [00:17:00] <Pyromanik> irogue, because obscure swipes are better than obscure commands :P
61: [00:17:00] <FrozenFire> Yeah, I don't use a toolbar as such, but having some way of asking the editor "what the fsck can I do?" is important
62: [00:17:00] <Jakx> I'm curious, does Notepad++ or VIM or any of the other credible text editors have multiple cursors and in-software extension installation for things like syntax highlighting, shortcuts and other format handlers?
63: [00:17:00] <Colin[pi]> most unintuitive OS ever
64: [00:18:00] <Pyromanik> I hate flies.
65: [00:18:00] <Pyromanik> Jakx, Notepad++ lets you define user defined syntaxes
66: [00:18:00] <Pyromanik> you can customise an entire language.
67: [00:18:00] <Colin[pi]> Ctrl + X is a lot easier to document than "Swipe your finger to the corner and then up" ;)
68: [00:18:00] <Jakx> Pyromanik, yeah that's fine but can you import an entire collection from github on the fly?
69: [00:18:00] <Jakx> Pyromanik, lol
70: [00:18:00] <FrozenFire> Imo, and editor should not be doing much more than editing.
71: [00:18:00] <Jakx> I'm just asking. Because those are the 2 biggest selling points for Sublime for me
72: [00:18:00] <FrozenFire> That's my chief beef with IDEs
73: [00:18:00] <Pyromanik> what FrozenFire said.
74: [00:19:00] <FrozenFire> They try to do everything. Poorly.
75: [00:20:00] <Pyromanik> unless you've got dual input
76: [00:20:00] <spronk> exactly
77: [00:20:00] <spronk> i can't actually think of a case where one should use it
78: [00:20:00] <Pyromanik> that's what search/replace is for
79: [00:20:00] <Pyromanik> bascially
80: [00:20:00] <spronk> that sublime multiple cursors thing is an indication you're doing something wrong
81: [00:21:00] <spronk> XTREME STYLE
82: [00:21:00] <Pyromanik> coxed pair
83: [00:21:00] <spronk> PAIR PROGRAMMING
84: [00:21:00] <Pyromanik> and 2 people editing the same document on the same X session
85: [00:21:00] <spronk> haha
86: [00:21:00] <Pyromanik> at the same time
87: [00:21:00] <azureKnight> Mhmm.
88: [00:21:00] <Pyromanik> azureKnight, pair programming?
89: [00:21:00] <azureKnight> It should be an olympic sport...
90: [00:21:00] <Pyromanik> *punchup*
91: [00:21:00] <Pyromanik> scroll up, NO SCROLL DOWN
92: [00:21:00] <Pyromanik> mm
93: [00:22:00] <Pyromanik> could even go for coxless fours
94: [00:22:00] <Pyromanik> a coxen being the project manager I guess.
95: [00:22:00] <azureKnight> They should also be cuffed. Like a three legged race and programming.
96: [00:23:00] <azureKnight> We should be taking notes???
97: [00:23:00] <Colin[pi]> ss, y u no support placeholder attribute for fields
98: [00:23:00] <azureKnight> But which editor?!
99: [00:23:00] <spronk> but seriously
100: [00:23:00] <spronk> someone tell me a legitimate use for multiple cursors that isn't column editing
101: [00:24:00] <azureKnight> Rave?
102: [00:25:00] <irogue> with 2 cursors you can lift twice as much... DYEL?
103: [00:25:00] <simon_w> spronk, selective replace
104: [00:25:00] <Jakx> spronk, inline class creation, multiple reference editing... asynchronous html changes
105: [00:25:00] <spronk> Jakx: concrete examples?
106: [00:27:00] <FrozenFire> Heh. Maybe pair programming.
107: [00:27:00] <Jakx> spronk, let's say you're rewriting the pxpay class from payment express, and you want to write out the 5 classes, you can use multiple cursors to write them all at the same time and ensure accurate naming convention
108: [00:27:00] <FrozenFire> :P
109: [00:27:00] <FrozenFire> Multiple cursors, multiple simultaneous coders.
110: [00:28:00] <Jakx> spronk, as simon_w said, you can inline selective replace without worrying about making a typo in your source or some such
111: [00:28:00] <spronk> hmm, I still consider find and replace to be better for said purpose
112: [00:29:00] <spronk> mainly the find part
113: [00:29:00] <Jakx> Sublime has the find part as part of it's cursor. you highlight which results you want to select etc. has regex etc...
114: [00:30:00] <spronk> yeah, i know
115: [00:30:00] * spronk uses sublime
116: [00:30:00] <Jakx> an example right now, I copy pasted my site config extension array into a template, stripped out the array syntax and added '$SiteConfig.' nice and quickly
117: [00:30:00] <Pyromanik> Colin[pi], it does?
118: [00:30:00] <Pyromanik> <Colin[pi]> ss, y u no support placeholder attribute for fields
119: [00:31:00] <FrozenFire> Indeed.
120: [00:31:00] <FrozenFire> Colin[pi], Incidentally, $field->setAttribute("placeholder", "string");
121: [00:31:00] <spronk> Jakx: i just find I use column mode 10x more than multicursor, and whenever i want multicursor i end up using find and replace instead
122: [00:32:00] <Jakx> spronk, yeah fair enough - whatever works for you best really
123: [00:32:00] <Colin[pi]> o rly? i didn't think they supported custom attrs
124: [00:32:00] <FrozenFire> Doesn't work on *some* fields (confirmed password field, for instance)
125: [00:34:00] <Colin[pi]> hmm nope didnt work (2.4)
126: [00:35:00] <ss23> 13:09:45 < irogue> ss23 only uses emacs
127: [00:35:00] <ss23> HEATEN
128: [00:35:00] * Colin[pi] bows his head in shame
129: [00:35:00] <FrozenFire> In spirit, that is
130: [00:35:00] <Colin[pi]> the whole site search within the page you're currently on is weird to me in SS
131: [00:35:00] * howardgrigg quit (Remote host closed the connection)
132: [00:35:00] <FrozenFire> Yeah, assume that everyone is talking about 3.0+, since that's what you should be using.
133: [00:35:00] <FrozenFire> :P
134: [00:35:00] <Colin[pi]> ;P
135: [00:35:00] <Pyromanik> YOU SHOULD SPECIFY
136: [00:35:00] <Pyromanik> Colin[pi], oh, 2.4
137: [00:35:00] <Colin[pi]> SORRY SIR
138: [00:35:00] <ss23> HEATHEN*
139: [00:35:00] <ss23> VIM VIM VIM VIM VIM
140: [00:35:00] <FrozenFire> 2.3 is IE6
141: [00:35:00] <Pyromanik> lulz
142: [00:35:00] <FrozenFire> 2.4 is IE7
143: [00:36:00] <FrozenFire> Something I've never actually heard of.
144: [00:36:00] <spronk> you mean that thing all linux noobs get stuck in and can't figure out how to quit?
145: [00:36:00] <Pyromanik> before embed into content
146: [00:36:00] <Colin[pi]> an image cropper in SS would be very handy
147: [00:36:00] <Pyromanik> spronk, haha, yes.
148: [00:36:00] <Pyromanik> FrozenFire, so what is 2.2?
149: [00:36:00] <FrozenFire> :P
150: [00:36:00] <Pyromanik> 2.2 had built in image editor!
151: [00:36:00] <Colin[pi]> I recall seeing about that
152: [00:36:00] <spronk> vim
153: [00:36:00] <Pyromanik> manual crops and rotates
154: [00:37:00] <ss23> Will I get paid if I build the cropper?
155: [00:37:00] <Colin[pi]> you will be paid in glory and everlasting gratitude
156: [00:37:00] * spronk remembers doing this many eyars ago :'(
157: [00:37:00] <simon_w> 2.2 had PageView!
158: [00:37:00] <simon_w> Who remembers truncating that table every week or so?
159: [00:38:00] <Colin[pi]> so in other words, no
160: [00:42:00] <Pyromanik> simon_w, when is next hackfest?
161: [00:42:00] * LoveDuckie quit (Ping timeout: 245 seconds)
162: [00:42:00] * Jakx_ has left #silverstripe
163: [00:42:00] * Jakx_ has joined #silverstripe
164: [00:43:00] <Pyromanik> simon_w, when does sminnee say the next hackfest is?
165: [00:43:00] <simon_w> Pyromanik, whenever sminnee says it is
166: [00:43:00] <simon_w> No idea
167: [00:44:00] <simon_w> https://twitter.com/simon_w/status/308739728528793600
168: [00:45:00] <Colin[pi]> lazy sod Pyro
169: [00:46:00] <Pyromanik> Colin[pi], I don't twit.
170: [00:46:00] <Colin[pi]> DO YOU EVEN TW.. oh you dont
171: [00:46:00] <Pyromanik> but that's basically what I was angling for :P
172: [00:46:00] <Pyromanik> thanks simon_w
173: [00:46:00] * Jakx quit (Ping timeout: 276 seconds)
174: [00:47:00] <simon_w> Pyromanik, you asked, you have to come now :p
175: [00:52:00] * SightUnseen has joined #silverstripe
176: [00:52:00] * azureKnight quit (Quit: azureKnight)
177: [00:53:00] * SightUnseen has left #silverstripe
178: [00:57:00] <Pyromanik> I asked when it was, not that I was going to attend in person
179: [00:57:00] <Pyromanik> simon_w, :<
180: [00:57:00] <Pyromanik> I want an excuse to hackey tappey on some codey
181: [01:07:00] <Pyromanik> have some ideas
182: [01:07:00] <ss23> No doubt about it, we'd be getting crazy, if Pyromanik was lucky enough to be born a lady
183: [01:07:00] <Pyromanik> :P
184: [01:07:00] <Pyromanik> can actually do stuff.
185: [01:07:00] <Pyromanik> ...
186: [01:07:00] <Pyromanik> and now that I actually know SS3
187: [01:08:00] <ss23> OH, if Pyromanik was a lady, and I was your man, I was your man, because sometimes, it gets lonely, and I neeed a woman, then I imagine Pyromanik with some boosoms.
188: [01:08:00] <Colin[pi]> what the.. I don't even
189: [01:09:00] * azureKnight has joined #silverstripe
190: [01:10:00] <Pyromanik> I also don't even.
191: [01:10:00] <Pyromanik> JUST DON'T EVEN
192: [01:12:00] <simon_w> ss23, why don't you be the lady instead?
193: [01:12:00] <ss23> My penis is too dammed big.
194: [01:13:00] <Pyromanik> by guys you mean bitches, right?
195: [01:13:00] <ss23> Bitches love ma penis.
196: [01:13:00] <ss23> So do guys.
197: [01:13:00] <ss23> Everyone loves it.
198: [01:14:00] <ss23> lol
199: [01:14:00] <Pyromanik> yeah, you saw what I did there.
200: [01:19:00] * azureKnight quit (Quit: azureKnight)
201: [01:33:00] * Pyromanik quit (Quit: Leaving)
202: [01:36:00] * Pyromanik has joined #silverstripe
203: [01:38:00] * SightUnseen has joined #silverstripe
204: [01:55:00] * SightUnseen has joined #silverstripe
205: [01:55:00] * SightUnseen has left #silverstripe
206: [01:55:00] * SightUnseen has left #silverstripe
207: [02:01:00] * DrCuriosity has joined #silverstripe
208: [02:18:00] * kent___ has joined #silverstripe
209: [02:20:00] <Pyromanik> what happens if you git ignore .gitignore?
210: [02:24:00] <Colin[pi]> the universe implodes
211: [02:29:00] <simon_w> Then git doesn't tell you about .gitignore that hasn't been added
212: [02:32:00] * Motoservo has joined #silverstripe
213: [02:42:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
214: [02:57:00] <Pyromanik> AND
215: [02:57:00] <Pyromanik> urgh
216: [02:57:00] <Pyromanik> all events are unpublished
217: [02:57:00] <Pyromanik> log in
218: [02:57:00] <Pyromanik> isn't working either.
219: [02:57:00] <Pyromanik> customer complains that calendar isn't woring
220: [02:57:00] <Pyromanik> sigh because it's the events_calendar module
221: [02:58:00] <Pyromanik> All dates are in the past.
222: [02:58:00] <Colin[pi]> http://i.qkme.me/3t8nh9.jpg
223: [02:58:00] <ss23> Fix it then!
224: [02:59:00] <ss23> hahah Colin[pi]
225: [03:07:00] * mobiusnz quit (Quit: Leaving.)
226: [03:26:00] <Pyromanik> .gitignore contains /subsites/host-map.php
227: [03:27:00] <Pyromanik> so need to dropski it
228: [03:27:00] <Pyromanik> git keeps trying to commit /subsites/host-map.php
229: [03:27:00] <Pyromanik> dafuq?
230: [03:27:00] <simon_w> You've added it already?
231: [03:27:00] <simon_w> also, drop the starting /
232: [03:27:00] <Pyromanik> why?
233: [03:27:00] <Pyromanik> should still work
234: [03:27:00] <Pyromanik> oic, already added.
235: [03:28:00] <Pyromanik> how to unadd?
236: [03:29:00] <Pyromanik> git rm?
237: [03:31:00] <Pyromanik> merge conflict from upstream
238: [03:31:00] <Pyromanik> ffff
239: [03:31:00] <simon_w> git rm --cached
240: [03:32:00] <Pyromanik> hope it doesn't f the siet
241: [03:32:00] <Pyromanik> clicked delete
242: [03:32:00] <Pyromanik> it hard deleted the file
243: [03:37:00] <Colin[pi]> boooom
244: [03:42:00] * kent___ quit (Quit: kent___)
245: [03:43:00] * kent_ has joined #silverstripe
246: [03:54:00] <Pyromanik> y 4 no work?
247: [03:54:00] <Pyromanik> BlogEntry::get()->filter('SubsiteID', Subsite::currentSubsiteID())->sort('Date DESC')->limit(3)
248: [03:55:00] <Pyromanik> returns BlogEntry from different subsite.
249: [03:55:00] <Pyromanik> simon_w, halp?
250: [03:55:00] <Pyromanik> (same as without the filter)
251: [03:56:00] <Pyromanik> simon_w, eh?
252: [03:56:00] <simon_w> Disable the subsite filter?
253: [03:56:00] <Pyromanik> var_dump(Subsite::currentSubsiteID()) returns correctly
254: [03:57:00] <simon_w> Subsite::disableFilter(); (or whatever it is) <grab blog things, do things> Subsite::enableFilter();
255: [03:57:00] <Pyromanik> right
256: [03:57:00] <Pyromanik> oic
257: [03:57:00] <Pyromanik> so I put the filter in
258: [03:57:00] <Pyromanik> exactly the same results :/
259: [03:57:00] <Pyromanik> BlogEntry::get()->sort('Date DESC')->limit(3) returns blog entries from a different site
260: [03:58:00] <Pyromanik> but shouldn't that not matter?
261: [04:01:00] <Pyromanik> also, made no difference still
262: [04:03:00] <simon_w> Are you getting the posts before reenabling it?
263: [04:04:00] * ajshort quit (Quit: Leaving)
264: [04:05:00] <Pyromanik> ?
265: [04:05:00] <Pyromanik> sicne blog posts are just pages
266: [04:05:00] <Pyromanik> the filter shouldn't make a difference anyway should it/
267: [04:05:00] <Pyromanik> yes
268: [04:07:00] * Pyromanik quit (Quit: Leaving)
269: [04:07:00] <Pyromanik> fk it, tomorrow
270: [04:07:00] <Pyromanik> thanks for suggestions though
271: [04:10:00] * cloph_away1 has joined #silverstripe
272: [04:11:00] * cloph_away quit (Ping timeout: 245 seconds)
273: [04:11:00] * nickmolhoek quit (Quit: nickmolhoek)
274: [04:12:00] <priithansen> Any good solutions for two has_one relations that depend on each other? Basically two dropdowns and the second one would ideally update based on the selection in the first one.
275: [04:16:00] * ferge1 has joined #silverstripe
276: [04:21:00] * oystein is now known as ooystein
277: [04:21:00] <simon_w> priithansen, a has_one and a belongs_to
278: [04:23:00] <priithansen> simon_w: sorry what I meant was some ajax enabled field contraption that would update second options based on the first one without having to save the dataobject between.
279: [04:25:00] <simon_w> So write something that does that
280: [04:28:00] <priithansen> but i'm lazy
281: [04:47:00] * kent_ quit (Quit: kent_)
282: [04:49:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
283: [04:54:00] <Sliver> Hello fellow brethren! I am in a puddle, and I could use a hand.
284: [04:54:00] <Sliver> I have a form that does not call the submit action when submitted.
285: [04:54:00] * Sliver has joined #silverstripe
286: [04:55:00] <Sliver> It works perfectly, with the exact format of code, on another form, but fails for this specific one.
287: [04:55:00] <Sliver> Any suggestions?
288: [05:03:00] <simon_w> Are you passing in the correct method name to the form constructor?
289: [05:06:00] <Sliver> I am.
290: [05:06:00] <Sliver> It just doesn't seem to be getting called, should I paste it on SSPaste?
291: [05:06:00] <Sliver> I've been trying for a couple of days now.
292: [05:06:00] <simon_w> That'd probably help
293: [05:06:00] <Sliver> Hey Simon! There's a lord!
294: [05:07:00] <Sliver> I also have a deployed version of the form on a 2.4 version which works perfectly.
295: [05:07:00] <Sliver> Give me a moment.
296: [05:11:00] <Sliver> Simon? Here we go, http://www.sspaste.com/paste/show/51357e1f031e4.
297: [05:12:00] <Sliver> First half is the Page, second half the form.
298: [05:13:00] <Sliver> Form gets posted (there's a post request) but it refreshes back with the form fields filled in.
299: [05:14:00] <simon_w> That sounds like a validation failure
300: [05:15:00] <Sliver> The validation error should throw a ?submission=failed.
301: [05:15:00] <Sliver> Could it be the uploadfield causing the issues?
302: [05:15:00] <simon_w> If you're uploading a file when you have this problem
303: [05:15:00] <Sliver> I tested it multiple times with all variables filled-in.
304: [05:16:00] <simon_w> No, that's just if Contact isn't empty or Validation isn't 7
305: [05:17:00] <simon_w> It could be
306: [05:17:00] <Sliver> Mm, could the uploadfield be causing validation errors?
307: [05:17:00] <Sliver> The other fields are just required, I've tried it with all the fields filled in.
308: [05:17:00] <simon_w> Could be a dodgy extension, or a too big file
309: [05:17:00] <Sliver> Including the uploadfield.
310: [05:19:00] <Sliver> I'll try it by removing it.
311: [05:19:00] <Sliver> Thanks for your help Simon, if it works out, I owe you a virtual owe.
312: [05:24:00] * Motoservo has joined #silverstripe
313: [05:33:00] * Colin[pi] quit (Ping timeout: 256 seconds)
314: [05:39:00] <simon_w> Home time!
315: [06:08:00] * ajshort has joined #silverstripe
316: [06:33:00] * Sliver quit (Quit: Page closed)
317: [06:44:00] * lerni has joined #silverstripe
318: [06:45:00] * Colin[pi] has joined #silverstripe
319: [06:46:00] * simon_w|air has joined #silverstripe
320: [06:49:00] <Colin[pi]> 49 readers of /r/silverstripe, that makes me sad
321: [06:54:00] <simon_w|air> 39 total in #silverstripe
322: [06:56:00] <Colin[pi]> on the one hand, I like the small community, but more attention would be nice
323: [06:56:00] <Colin[pi]> it's a deserving framework, far far more than some others
324: [07:01:00] <ss23> Not to mention ,when I'm on reddit, I don't wanna hear about worky stuff like Silverstripe!
325: [07:01:00] <ss23> I don't see what advantage a subreddit has over IRC tbh
326: [07:16:00] * howardgrigg has joined #silverstripe
327: [07:23:00] * willr_ has joined #silverstripe
328: [07:23:00] * willr_ quit (Changing host)
329: [07:23:00] * willr_ has joined #silverstripe
330: [07:23:00] * Shrike_Finland has joined #silverstripe
331: [07:25:00] * liam_ is now known as Guest52236
332: [07:25:00] * liam_ has joined #silverstripe
333: [07:27:00] * LoveDuckie has joined #silverstripe
334: [07:29:00] * Shrike_Finland has joined #silverstripe
335: [07:29:00] * Shrike_Finland quit (Read error: Connection reset by peer)
336: [07:30:00] * DigNZ quit (Quit: DigNZ)
337: [08:01:00] * lerni quit (Remote host closed the connection)
338: [08:02:00] * lerni has joined #silverstripe
339: [08:03:00] * Gerry_ has joined #silverstripe
340: [08:08:00] * Liquide quit (Ping timeout: 256 seconds)
341: [08:10:00] * Liquide has joined #silverstripe
342: [08:10:00] * Gerry_ quit (Quit: Page closed)
343: [08:13:00] * ratcat has joined #silverstripe
344: [08:14:00] * ratcat has left #silverstripe
345: [08:15:00] * Gerry2 has joined #silverstripe
346: [08:22:00] <Gerry2> Applied new HiddenField('SecurityID','',Session::get('SecurityID')), but it did not work.
347: [08:22:00] <Gerry2> Will, can I get some advise on message "Sorry, your session has timed out.", is that ok?
348: [08:24:00] <Gerry2> Case story: jquery grid used to call Form to edit existing database.
349: [08:25:00] * zfmf has joined #silverstripe
350: [08:30:00] <simon_w|air> Is it possible that your session has actually expired?
351: [08:30:00] <simon_w|air> Unless you're disabling the security token on the form, you don't need that hidden field (and that's the wrong way to do it)
352: [08:31:00] <Gerry2> Simon thanks for responding - no the session has not expired. I am in dev mode doing unit testing.
353: [08:32:00] <simon_w|air> That and unit tests don't match
354: [08:32:00] <Gerry2> I do not want to disable the security. I am calling the "Edit" from a jquery flexigrid not GridField. GridField in the front end is still unstable.
355: [08:33:00] <simon_w|air> Are you doing functional tests?
356: [08:34:00] <Gerry2> I am trying to call my forms not from the CMS pages but directly from jquery ajax calls.
357: [08:34:00] <Gerry2> Yes, I am doing functional test of my development. I am using Silverstripe only as a framework.
358: [08:35:00] <simon_w|air> So you're not using the SilverStripe test suites?
359: [08:35:00] <Gerry2> No, I am just manually testing my options via flexigrid with add,edit,delete options.
360: [08:37:00] <simon_w|air> Could it be that these buttons aren't correctly passing the SecurityID back to the server?
361: [08:39:00] <Gerry2> Yes, I think so. This is why in one of the form they suggested to pass a hiddenfield with Session::get(SecurityID)
362: [08:39:00] <simon_w|air> If it's a SilverStripe form, it already has it
363: [08:40:00] * ocm has joined #silverstripe
364: [08:41:00] <Gerry2> Howdy, ocm.
365: [08:41:00] <ocm> howdy!
366: [08:41:00] <Gerry2> I was thinking the same but I debugged the Form.php and found out that if called from ajax the form does not create the token.
367: [08:46:00] * MICHAELBYRNEfbi has joined #silverstripe
368: [08:47:00] <MICHAELBYRNEfbi> I'm a complete noob when it comes to websites, how would I install SilverStripe to my website? Upload that zip to my ftp?
369: [08:48:00] <zfmf> MICHAELBYRNEfbi: http://doc.silverstripe.com/framework/en/installation/
370: [08:49:00] <MICHAELBYRNEfbi> It didn't have anything that I could find on CPanel
371: [08:49:00] <MICHAELBYRNEfbi> I looked at that
372: [08:50:00] <zfmf> you have only to create a database on cpanel
373: [08:50:00] <zfmf> unzip the zip upload to your ftp, and call your url and follow the steps
374: [08:50:00] <zfmf> their is nothing todo on cpanel
375: [08:50:00] <MICHAELBYRNEfbi> Ok ty
376: [08:50:00] <Gerry2> MICHAELBYRNE just a warning if you do not have access to web hosting you may need to include PHP settings in _config.php example ini_set('memory_limit', '96M');
377: [08:51:00] <MICHAELBYRNEfbi> I'm guessing thats a MySQL or SQLLite database?
378: [08:52:00] <MICHAELBYRNEfbi> Gerry2 I'm running on a good hosting package so nothing to worry bout there
379: [08:52:00] <zfmf> is silverstripe supporting sqllite??
380: [08:53:00] <zfmf> Support for Oracle and SQLite is not commercially supported, but is under development by our open source community.
381: [08:53:00] <ocm> I have a checkbox which can be checked
382: [08:53:00] <ocm> little question about customizing the cms
383: [08:53:00] <ocm> if its checked there should be another HTMLEditorField displayed
384: [08:53:00] <Gerry2> MICHAEL if you are developing locally in windows do not forget to set lower_case_table_names=2 for MySQL. You will have pain in converting the lowercase table names to the hosting environment.
385: [08:54:00] <ocm> what trigger can I use in my js
386: [08:54:00] <ocm> so that I know the page within the CMS is loaded?
387: [08:58:00] <Gerry2> zfmf not sure if you are part of the silverstripe team. But just a heads up I downloaded from Git last night the latest version. Seems that recent changes to the Controller.php introduced a bug.
388: [08:59:00] <Gerry2> It seems that <class>/$Action/$ID always defaults to Content regardless of what you call. My existing YAML and addRules has no problem when I reverted to the old framework.
389: [08:59:00] <MICHAELBYRNEfbi> I uploaded the file to the FTP, now what?
390: [09:00:00] <simon_w|air> Gerry2, you want <class>//$Action/$ID
391: [09:00:00] <Gerry2> Ok,I will try that fix. Thanks simon.
392: [09:01:00] <kinglozzer> Morning
393: [09:01:00] * kinglozzer has joined #silverstripe
394: [09:01:00] <Gerry2> Hello kinglozzer
395: [09:02:00] <ocm> heya
396: [09:02:00] <MICHAELBYRNEfbi> I know this may not be the appropriate section, but could someone help me
397: [09:02:00] <ocm> I dont help the fbi
398: [09:03:00] <ocm> so all those severe leaks in java are on purpose? :D
399: [09:03:00] <MICHAELBYRNEfbi> Where I develop in java
400: [09:03:00] <ocm> java? fbi?\
401: [09:03:00] <MICHAELBYRNEfbi> and the website has to do with a server associating with the game
402: [09:03:00] <ocm> :D:D
403: [09:03:00] <MICHAELBYRNEfbi> Lol
404: [09:03:00] <MICHAELBYRNEfbi> This a name I use for development of a videogame
405: [09:04:00] <MICHAELBYRNEfbi> You ever heard of Minecraft?
406: [09:04:00] <MICHAELBYRNEfbi> I don't do too much with java
407: [09:04:00] <MICHAELBYRNEfbi> Anyway I uploaded the file I downloaded from the main page, uploaded it to FTP extraced, what now?
408: [09:05:00] <ocm> you should unpack the zipfile
409: [09:05:00] <MICHAELBYRNEfbi> I did
410: [09:06:00] <ocm> then go to the url and you could start setting up
411: [09:06:00] <MICHAELBYRNEfbi> The website URL?
412: [09:06:00] <ocm> anyone could help me out with my JS question?
413: [09:07:00] <ocm> yes, if your websites domain is on domain.com go to domain.com
414: [09:07:00] <MICHAELBYRNEfbi> not working
415: [09:07:00] <MICHAELBYRNEfbi> Could it be my old leftover joomla files?
416: [09:07:00] <kinglozzer> domain.com/install.php ?
417: [09:07:00] <kinglozzer> Possibly
418: [09:07:00] <kinglozzer> ocm I can try :P
419: [09:07:00] <ocm> haha
420: [09:08:00] <ocm> looking for a JS trigger, so I know when the page within the CMS is done loading, in order to do some JS magicd
421: [09:08:00] <MICHAELBYRNEfbi> Pity I know java but not javascript
422: [09:08:00] <simon_w|air> ocm, see if there's a nice class in the DOM, then use an entwine onmatch
423: [09:08:00] * cloph_away1 quit (Remote host closed the connection)
424: [09:08:00] <ocm> anyhow, I still have my question :P
425: [09:08:00] <ocm> or is there any documentation about extending the CMS?
426: [09:08:00] <kinglozzer> What's your question? There's a little bit
427: [09:09:00] <MICHAELBYRNEfbi> What could it be?
428: [09:09:00] <MICHAELBYRNEfbi> Well I just get my Hosts page not found page
429: [09:09:00] <ocm> what kind of error do you get?
430: [09:09:00] <ocm> ah, I think I can do with that :) thnx somin_w|air I will have a look at it
431: [09:09:00] <MICHAELBYRNEfbi> Agh that didn't work
432: [09:09:00] <MICHAELBYRNEfbi> I mean maybe I didn't extract is correctly
433: [09:10:00] <MICHAELBYRNEfbi> Here is a image of my file management
434: [09:10:00] <MICHAELBYRNEfbi> http://puu.sh/2cqNY
435: [09:10:00] <kinglozzer> If you look at the server root, does install.php exist?
436: [09:11:00] <MICHAELBYRNEfbi> Right
437: [09:11:00] <simon_w|air> kinglozzer, no it doesn't
438: [09:11:00] <kinglozzer> You've extracted Silverstripe into a folder, it needs to be in the server root
439: [09:11:00] <MICHAELBYRNEfbi> How would I do that?
440: [09:12:00] <MICHAELBYRNEfbi> For my file management where should I go to? http://puu.sh/2cqPH
441: [09:12:00] <kinglozzer> I stand corrected ^^
442: [09:13:00] <simon_w|air> MICHAELBYRNEfbi, either a document root, then the www folder or the public_html/www folder
443: [09:14:00] * dendeffe has joined #silverstripe
444: [09:16:00] <MICHAELBYRNEfbi> Final question, is here http://puu.sh/2cqSs fine or should it be in one of those?
445: [09:17:00] <MICHAELBYRNEfbi> K ty so much for the support
446: [09:17:00] <simon_w|air> in the www folder
447: [09:21:00] <MICHAELBYRNEfbi> How could I check if I have php enabled, that might be the issue
448: [09:21:00] * chillu has joined #silverstripe
449: [09:22:00] <simon_w|air> What happens when you go to the install.php?
450: [09:23:00] <simon_w|air> Though you upload a phpinfo.php file that just contains <?php phpinfo();, access it in the browser and see if you get any output
451: [09:26:00] * Gerry2 quit (Read error: Connection reset by peer)
452: [09:28:00] <zfmf> simon_w|air: can your oauth module also be used for example for authentication on a mobile app ?
453: [09:33:00] <ss23> Urgh, someone wants me to use concrete5 for some work :<
454: [09:33:00] <ss23> Given my only experience with it so far was submitting a pull request for removing the fucking @ error supression from some config shit, I don't see it being pleasant
455: [09:36:00] <simon_w|air> zfmf, yes. That's how Twitter/Facebook work
456: [09:44:00] * lx-berlin has joined #silverstripe
457: [09:49:00] * willr_ quit (Quit: willr_)
458: [09:55:00] * iamss has joined #silverstripe
459: [09:56:00] <iamss> because is ss 2.x there is a calendar field what is the replacement of that is ss3 ??
460: [09:56:00] <iamss> Hi guys, is there a calendarfield in ss 3.0.5
461: [09:57:00] * gelignite has joined #silverstripe
462: [09:58:00] <simon_w|air> I'm fairly sure DateField still has a calendar option
463: [09:59:00] <simon_w|air> Yup, it does: http://doc.silverstripe.org/framework/en/reference/datefield#calendar-field
464: [10:02:00] * lx-berlin quit (Ping timeout: 250 seconds)
465: [10:03:00] <iamss> @simon|air oh thanks @simon|air
466: [10:07:00] * lx-berlin has joined #silverstripe
467: [10:11:00] * MICHAELBYRNEfbi quit (Ping timeout: 245 seconds)
468: [10:13:00] * lx-berlin quit (Ping timeout: 245 seconds)
469: [10:15:00] * lx-berlin has joined #silverstripe
470: [10:22:00] <lx-berlin> hi all. i just installed ss3.1b2 and get the message "Friendly URLs are not working...." But the navigation in the simple theme works fine. But /dev or /dev/build shows an empty screen
471: [10:23:00] <simon_w|air> The navigation will be sticking in index.php
472: [10:24:00] <simon_w|air> Because it doesn't have the index.php in it?
473: [10:24:00] <lx-berlin> so why is /dev not working ?? anything i need to set in the apache configuration ??
474: [10:25:00] <simon_w|air> You need to make sure mod_rewrite is enabled and AllowOverride is set properly for the folder you've installed silverstripe to
475: [10:26:00] <lx-berlin> Loaded Modules : .... mod_reqtimeout mod_rewrite mod_setenvif mod_status .....
476: [10:27:00] <lx-berlin> so , i think mod_rewrite is loaded. then i have to check if AllowOverride is enabled
477: [10:28:00] * dendeffe quit (Quit: dendeffe)
478: [10:40:00] * Guest52236 quit (Quit: Guest52236)
479: [10:44:00] <lx-berlin> simon_w|air: usually i dont do much configuration of apache. But i think on our server the configuration is in: /etc/apache2/sites-available/default
480: [10:46:00] <lx-berlin> argh, i am not able to copy its content. one second please
481: [10:46:00] <Colin[pi]> look in the mods-enabled and mods-available dirs too
482: [10:47:00] <lx-berlin> mods-enabled: rewrite.load -> ../mods-available/rewrite.load
483: [10:48:00] <Colin[pi]> looks like it's enabled, now need to make sure of the AllowOverride
484: [10:48:00] <lx-berlin> and mods-available/rewrite.load exists
485: [10:48:00] <lx-berlin> i think its using this file: /etc/apache2/sites-available/default (i will try to paste its content)
486: [10:50:00] * iamss quit (Quit: Page closed)
487: [10:52:00] <simon_w|air> lx-berlin, you sure there's no file in sites-available specific to your domain?
488: [10:52:00] <lx-berlin> http://sspaste.com/paste/show/5135ce52bee31
489: [10:52:00] <lx-berlin> is there something wrong (its the default apache configuration from ubuntu)
490: [10:53:00] * Liquide quit (Ping timeout: 245 seconds)
491: [10:53:00] <simon_w|air> Well, where's SilverStripe installed to?
492: [10:54:00] <simon_w|air> And you're not using some sort of subdomain to get to it?
493: [10:54:00] <lx-berlin> just a subfolder for each project in /var/www/lx
494: [10:54:00] <lx-berlin> no
495: [10:54:00] <lx-berlin> var/www/lx/ss31b2/
496: [10:54:00] <lx-berlin> its for developement
497: [10:55:00] <lx-berlin> just a subfolder for each project
498: [10:55:00] <simon_w|air> So you're using server.com/lx/ss31b2/?
499: [10:56:00] <lx-berlin> and my coworker uses netefx-server/hans/testproject
500: [10:56:00] <lx-berlin> netefx-server/lx/ss31b2 , yes
501: [10:56:00] <lx-berlin> and for another project maybe netefx-server/lx/testproject
502: [10:56:00] <simon_w|air> And there's no other files in sites-enabled?
503: [10:57:00] <simon_w|air> And what are the permissions on the .htaccess file?
504: [10:58:00] <lx-berlin> sites-enabled/ has only 000-default -> ../sites-available/default
505: [10:59:00] <lx-berlin> the .htaccess is 775, but i can try it with 777
506: [11:00:00] <lx-berlin> this works: http://netefx-server/lx/ss31b2/about-us/
507: [11:00:00] <simon_w|air> Hangon, so your normal URLs work without index.php, but /dev whitescreens?
508: [11:00:00] <lx-berlin> showing this page with the simple theme
509: [11:01:00] <simon_w|air> (mainly, config level dev mode)
510: [11:01:00] <lx-berlin> but http://netefx-server/lx/ss31b2/dev shows an empty screen
511: [11:01:00] <simon_w|air> Got display_errors On?
512: [11:01:00] <lx-berlin> nothing
513: [11:01:00] <lx-berlin> ups
514: [11:01:00] <simon_w|air> Done all the other things to do with the WSOD?
515: [11:01:00] * Liquide has joined #silverstripe
516: [11:02:00] * priithansen quit (Quit: priithansen)
517: [11:02:00] <lx-berlin> i did the installation by using the environment file
518: [11:02:00] <lx-berlin> in this file i have: define('SS_ENVIRONMENT_TYPE', 'dev');
519: [11:03:00] <lx-berlin> ok, let me check if display_errors is on (in a minute)
520: [11:11:00] <lx-berlin> i added to the htaccess file: php_flag display_errors "1"
521: [11:12:00] <lx-berlin> also i set display_errors = On in the php.ini
522: [11:13:00] <lx-berlin> but i still get an empty screen with http://netefx-server/lx/ss31b2/dev/
523: [11:13:00] * feejin has joined #silverstripe
524: [11:14:00] <lx-berlin> and i changed the correct php.ini file on the server, because phpinfo() is telling me: Loaded Configuration File /etc/php5/apache2filter/php.ini
525: [11:16:00] <lx-berlin> btw. the zip download of ss31b2 includes a lot of files in /silverstripe-cache
526: [11:16:00] <simon_w|air> If you run dev through sake, does it work?
527: [11:16:00] <lx-berlin> how do i do this ?
528: [11:16:00] <lx-berlin> :)
529: [11:16:00] <lx-berlin> never used sake
530: [11:17:00] <simon_w|air> http://doc.silverstripe.org/framework/en/topics/commandline
531: [11:18:00] <lx-berlin> php framework/cli-script.php dev/ ?
532: [11:18:00] <simon_w|air> yeah, that'd work
533: [11:18:00] <lx-berlin> let me check
534: [11:19:00] <lx-berlin> --------------------------
535: [11:19:00] <lx-berlin> You can execute any of the following commands:
536: [11:19:00] <lx-berlin> sake dev/build: Build/rebuild this environment. Call this whenever you have updated your project sources
537: [11:19:00] <simon_w|air> chillu, it looks like all 3.1b2 archives have a populated silverstripe-cache folder
538: [11:19:00] <lx-berlin> Warning: You probably want to define an entry in $_FILE_TO_URL_MAPPING that covers "/var/www/lx/ss31b2"
539: [11:19:00] <lx-berlin> SILVERSTRIPE DEVELOPMENT TOOLS
540: [11:19:00] <lx-berlin> sake dev/tests: See a list of unit tests to run
541: [11:19:00] <lx-berlin> sake dev/tests/all: Run all tests
542: [11:19:00] <lx-berlin> sake dev/jstests: See a list of JavaScript tests to run
543: [11:19:00] <lx-berlin> sake dev/jstests/all: Run all JavaScript tests
544: [11:19:00] <lx-berlin> sake dev/tasks: See a list of build tasks to run
545: [11:20:00] <lx-berlin> hmm
546: [11:20:00] <simon_w|air> yeah, that's expected from dev
547: [11:20:00] <chillu> simon_w|air: Oh great, somebody didn't follow the deployment instructions properly it seems ;)
548: [11:20:00] <simon_w|air> Bah, is it really doing that thing again where it returns the wrong content-length?
549: [11:20:00] <lx-berlin> is the command line return ok ?
550: [11:21:00] <lx-berlin> but i want to run /dev/build in the browser :)
551: [11:21:00] * dendeffe has joined #silverstripe
552: [11:21:00] <simon_w|air> lx-berlin, do you have any sort of output buffering turned on in PHP/apache? (zlib, default output handle, mod_deflate, mod_gzip)?
553: [11:22:00] <LoveDuckie> ?
554: [11:22:00] <simon_w|air> LoveDuckie, bit delayed?
555: [11:22:00] <lx-berlin> in phpinfo() there is something about zlib
556: [11:22:00] <LoveDuckie> hah, just scrolled down. Turns out I was responding to an old message on here.
557: [11:22:00] <LoveDuckie> oh my, how come you're using 2.4
558: [11:23:00] <simon_w|air> lx-berlin, what's zlib.output_compression set to?
559: [11:23:00] <lx-berlin> Linked Version 1.2.3.4
560: [11:23:00] <lx-berlin> Compiled Version 1.2.1.1
561: [11:23:00] <lx-berlin> Stream Filter support zlib.inflate, zlib.deflate
562: [11:23:00] <lx-berlin> Stream Wrapper support compress.zlib://
563: [11:23:00] <lx-berlin> zlibZLib Support enabled
564: [11:23:00] <lx-berlin> is this what you mean ?
565: [11:24:00] <simon_w|air> Also, try grabbing framework/cms from github
566: [11:24:00] <lx-berlin> you mean, not using the zip/tar.gz downloads ?
567: [11:24:00] <simon_w|air> yes
568: [11:24:00] <lx-berlin> ok
569: [11:24:00] <lx-berlin> zlib.output_compression Off Off
570: [11:24:00] <lx-berlin> zlib.output_compression_level -1 -1
571: [11:24:00] <lx-berlin> zlib.output_handler no value no value
572: [11:25:00] <lx-berlin> thanks 1
573: [11:25:00] <Colin[pi]> nn
574: [11:25:00] <simon_w|air> And I am off to bed
575: [11:25:00] <lx-berlin> !
576: [11:25:00] <lx-berlin> i will let you know if this fixes the problem
577: [11:37:00] * hubertusanton quit (Quit: hubertusanton)
578: [11:38:00] * hubertusanton has joined #silverstripe
579: [11:40:00] <feejin> Do any of you work in a team when developing SS sites? What do you do about version control for the mysql side of things? dev/build can cover the schema but when actual content is involved it's causing headaches.
580: [11:42:00] <ocm> can I use Security::set_default_login_dest('urlsegment') for different membergroups aswell?
581: [11:42:00] <lx-berlin> feejin: we use just one database. So when one dev is adding some testrecords everyone can use them
582: [11:44:00] <feejin> lx-berlin we considered that but what if, for example, I create a news section and dev/build to update the schema. Then developer 2, who is developing a gallery section, also does dev/build but does not have my news section.
583: [11:44:00] <ajshort> feejin: we sometimes use yaml fixtures to define the basic skeleton structure of the site
584: [11:45:00] <lx-berlin> feejin: if he doesnt have your news secion his dev/build will not delete anything
585: [11:46:00] <ajshort> no
586: [11:46:00] <ajshort> it only obsoletes things if it really really has to
587: [11:46:00] <feejin> lx-berlin wouldn't it obselete the news tables as they don't exist in his codebase at this stage?
588: [11:48:00] <feejin> I could've sworn it bins tables that aren't seen as required. I'm going to go off and test this.
589: [11:52:00] <ocm> can I use Security::set_default_login_dest('urlsegment') for different membergroups aswell?
590: [11:53:00] * ARNHOE has joined #silverstripe
591: [11:57:00] * ajshort quit (Quit: Leaving)
592: [12:14:00] * howardgrigg quit (Remote host closed the connection)
593: [12:21:00] * LoveDuckie quit (Ping timeout: 260 seconds)
594: [12:22:00] * LoveDuckie has joined #silverstripe
595: [12:27:00] * guci0 has joined #silverstripe
596: [12:42:00] * Colin[pi] quit (Ping timeout: 276 seconds)
597: [12:49:00] * dendeffe quit (Ping timeout: 245 seconds)
598: [13:00:00] <Marvanni> any idea how to reset the pagination in the Insert Media popup?
599: [13:00:00] <Marvanni> Hm when I browse in Files from the Insert Media popup and im on a page 20, and then select a folder which has not that many images, i get a no files found message
600: [13:02:00] <lx-berlin> simon_w|air: after starting a new project with ss as a git submodule, /dev is working on our local server
601: [13:05:00] * chillu quit (Quit: chillu)
602: [13:06:00] * chillu has joined #silverstripe
603: [13:06:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
604: [13:08:00] * Zauberfisch quit (Ping timeout: 264 seconds)
605: [13:11:00] * UndefinedOffset has joined #silverstripe
606: [13:14:00] * Zauberfisch has joined #silverstripe
607: [13:15:00] <Marvanni> when I want to use updateMediaForm for HTMLEditorField, where should I add the DataExtension to?
608: [13:16:00] * Rastafarii has joined #silverstripe
609: [13:18:00] <Rastafarii> is it possible to have HasManyComplexTableField inside of a popup of HasManyDataObjectManager in SS 2.4.3?
610: [13:21:00] <lx-berlin> chillu: do you think its possible to improve ?showqueries=1 in future versions? I think it would be much cooler if it would show some more information:
611: [13:22:00] <lx-berlin> 1. number of queries in total
612: [13:22:00] <lx-berlin> 2. grouped by short running/long running
613: [13:23:00] <lx-berlin> i dont know what else could be added there
614: [13:23:00] <ocm> can I use Security::set_default_login_dest('urlsegment') for different membergroups aswell?
615: [13:23:00] <lx-berlin> a little bit more information that u can use for performance optimization
616: [13:24:00] <chillu> Its always possible to improve things ;) I hope that we'll be able to integrate the developer toolbar for this purpose (and others): http://sdevtb.blogspot.de/
617: [13:25:00] <chillu> There's also https://github.com/amoebas/silverstripe-dbprofiler
618: [13:25:00] <chillu> Looks a bit shitty at the moment, but the general principle is in place (not for showqueries tracking though): https://github.com/jakr/developer_dashboard/blob/master/docs/img/tab_logs_refresh.png
619: [13:25:00] <lx-berlin> ah, i didnt know this toolbar
620: [13:27:00] <lx-berlin> ah, i see this DBProfiler shows the total number of queries
621: [13:27:00] <lx-berlin> but it still doesnt show you the evil queries
622: [13:27:00] <lx-berlin> something like a slowquerylog
623: [13:28:00] <lx-berlin> oh, but its 2 years old. Lets see if it works with ss3.1
624: [13:28:00] <lx-berlin> but thanks
625: [13:32:00] <chillu> maybe that's a good opportunity to get into contributions? :) upgrade to ss 3.1 if required, and either port or integrate dbprofiler to run within the dev dashboard
626: [13:34:00] <Rastafarii> is it possible to have HasManyComplexTableField inside of a popup of HasManyDataObjectManager in SS 2.4.3?
627: [13:35:00] * lerni quit (Remote host closed the connection)
628: [13:35:00] <Rastafarii> anyone?
629: [13:39:00] <lx-berlin> [Notice] Undefined index: args
630: [13:39:00] <lx-berlin> ok, its not running with ss3.1 out of the box
631: [13:41:00] <lx-berlin> seems to be only a small problem, because i still can see output of this module
632: [13:42:00] <lx-berlin> PHP peak memory: 77.75MB | Querysize: 8.01KB | Queries: 38 (31 unique) | Time in db: 151.51ms | Read more
633: [13:45:00] <Marvanni> nay ideas on how to change gridstates?
634: [13:46:00] <Rastafarii> I tried to add HasManyComplexTableField, but it wont display inside popup at all
635: [13:54:00] <feejin> lx-berlin ajshort It works! I had it in my head that it wouldn't. That makes life much easier.
636: [13:55:00] <lx-berlin> great. now with only 1 db you need to make sure that you have a backup of it ;)
637: [14:02:00] <ocm> :(
638: [14:02:00] <ocm> whats the right way to do a redirect?
639: [14:02:00] <ocm> return $this->redirect(Director::baseURL() . 'admin' );
640: [14:02:00] <ocm> says the method 'redirect' does not exist on 'CustomLoginForm'
641: [14:03:00] * xb437 has joined #silverstripe
642: [14:04:00] <Marvanni> $this->request->redirect() ?
643: [14:06:00] <ocm> if not, try again :P
644: [14:06:00] <xb437> hello, i have just been handed a silverstripe 2.4 website and i'm trying to run it on php 5.4, but it shows me a specific error
645: [14:06:00] <xb437> http://sspaste.com/paste/show/5135fb96c9b78
646: [14:06:00] <ocm> upgrade 2.4 to 2.4.9 and it should work xb437
647: [14:06:00] <xb437> ocm: oh, thank you!
648: [14:06:00] <ocm> not sure though if your specific error gets resolved
649: [14:06:00] <ocm> I first answer
650: [14:06:00] <ocm> than read
651: [14:06:00] <ocm> :D
652: [14:07:00] <xb437> didn't think there was a newer minor version, what's the easiest way to check what 2.4.x version the site is currently running?
653: [14:07:00] <ocm> check in cms
654: [14:07:00] <ocm> should be silverstripe_version
655: [14:08:00] <xb437> it just says $URL$ >_<
656: [14:09:00] <ocm> does it?
657: [14:10:00] <ocm> hm, dunno then
658: [14:11:00] <ocm> Marvanni return $this->request->redirect(Director::baseURL() . 'admin' ); doesnt seem to do the trick
659: [14:11:00] <kinglozzer> xb437: http://www.silverstripe.org/security-releases/
660: [14:11:00] <ocm> undefined method SS_HTTPRequest::redirect()
661: [14:11:00] <xb437> how do i get 2.4.9, is it a branch in the sapphire repo on github?
662: [14:13:00] <ocm> Controller::curr()->redirect() probably would..
663: [14:14:00] <ocm> Controller::curr(... is deprecated as well
664: [14:14:00] <kinglozzer> ocm: Doesn't return $this->controller->redirect() work?
665: [14:14:00] <ocm> though it briefly shows me the message and then redirects me
666: [14:14:00] <ocm> which is kinda weird actually
667: [14:14:00] <ocm> let me give that a try
668: [14:15:00] <ocm> haha
669: [14:15:00] <kinglozzer> ocm: That's the point of deprecation, to let you know you should remove it without breaking people's sites *yet*
670: [14:15:00] <ocm> its like telling the bike is broken to the guy who wants to knick it off you
671: [14:15:00] <kinglozzer> Nice analogy :P
672: [14:15:00] <ocm> and then jump on the bike and ride off
673: [14:15:00] <ocm> well thank you
674: [14:16:00] <ocm> awesome
675: [14:16:00] <ocm> I am collecting them all!
676: [14:16:00] <ocm> its not the solution, but I just got another depricated message
677: [14:19:00] <ocm> controller->redirect(Director::baseURL()
678: [14:19:00] <ocm> I think Director::baseURL() is depricated aswell?
679: [14:19:00] <ocm> is this part of my redirect okay?
680: [14:21:00] <xb437> kinglozzer: ah, thank you!
681: [14:21:00] * EPIK quit (Ping timeout: 240 seconds)
682: [14:21:00] <kinglozzer> At least not that I'm aware of
683: [14:21:00] <kinglozzer> ocm: I don't think it is
684: [14:22:00] <ocm> then I am not sure why I get the depricated message on return $this->controller->redirect(Director::baseURL() . 'admin' );
685: [14:22:00] <ocm> or I am just plain stupid (which most of the times I cannot find a bug is the case indeed)
686: [14:24:00] <ocm> anyway, time for a smoke!
687: [14:26:00] * lx-berlin has left #silverstripe
688: [14:26:00] * dospuntocero has joined #silverstripe
689: [14:34:00] * Shrike_Finland quit (Quit: Leaving.)
690: [15:04:00] * xb437 quit (Quit: Page closed)
691: [15:12:00] * samt is now known as Guest14509
692: [15:12:00] * samt has joined #silverstripe
693: [15:16:00] * Guest14509 quit (Ping timeout: 245 seconds)
694: [15:18:00] * priithansen has joined #silverstripe
695: [15:23:00] <Marvanni> really annoying.... id need to reset the GridState currentPage when I change the Folder in the Insert Media popup since it returns no files when being on page 30 and coming from another folder
696: [16:05:00] * feejin quit (Remote host closed the connection)
697: [16:22:00] <g4b0> hi
698: [16:22:00] * g4b0 has joined #silverstripe
699: [16:23:00] <g4b0> is it possible to know if a page has a new version not yet published?
700: [16:23:00] * hubertusanton quit (Quit: hubertusanton)
701: [16:26:00] * hubertusanton has joined #silverstripe
702: [16:33:00] * hubertusanton quit (Ping timeout: 252 seconds)
703: [16:37:00] * Rastafarii quit (Ping timeout: 245 seconds)
704: [16:48:00] * ARNHOE quit (Remote host closed the connection)
705: [16:51:00] * ARNHOE has joined #silverstripe
706: [16:56:00] * g4b0 quit (Quit: Sto andando via)
707: [17:01:00] * FrozenFire quit (Read error: Connection reset by peer)
708: [17:02:00] * FrozenFire has joined #silverstripe
709: [17:03:00] * kinglozzer quit (Remote host closed the connection)
710: [17:23:00] * ocm quit ()
711: [17:30:00] <Marvanni> any experienxe with Translatable in SS 3.x?
712: [17:34:00] <FrozenFire> Limiting the size of a RelationList in a sane way. How to?
713: [17:35:00] <FrozenFire> That is, I don't just want to limit the number of items retrieved.
714: [17:42:00] <FrozenFire> I almost always need it for most every project, and I suspect that most people would use it if only it were a part of the framework.
715: [17:42:00] <FrozenFire> UndefinedOffset's SortableGridField really needs to be merged into the framework
716: [17:45:00] <UndefinedOffset> FrozenFire it was talked about awhile ago. for 3.1.. i just didn't follow up with chillu about it, but that ship has sailed now. Maybe for 3.2 ;)
717: [17:47:00] * r3v3rb has joined #silverstripe
718: [17:47:00] <FrozenFire> It's not an API change. Just a bundling.
719: [17:47:00] <FrozenFire> Don't see why it couldn't make it into 3.1.x
720: [17:48:00] <FrozenFire> Hell, PHP itself is already talking about putting a bundled opcode cache into the PHP distribution for PHP 5.5, which is already in late alpha stage.
721: [17:48:00] <UndefinedOffset> tis up to chillu :) i don't mind if they did merge it
722: [17:54:00] * FrozenFire wonders how much this government mandate thing is going to impact SS's open-source contributions
723: [17:54:00] <FrozenFire> I have a suspicion that's why they're busy nowadays. :P
724: [17:55:00] * popeshoe quit (Quit: Leaving)
725: [18:42:00] * gelignite has joined #silverstripe
726: [18:57:00] * Nivery has joined #silverstripe
727: [19:04:00] * zfmf quit (Ping timeout: 256 seconds)
728: [19:07:00] * Motoservo quit (Quit: Motoservo)
729: [19:12:00] * Motoservo has joined #silverstripe
730: [19:21:00] * DigNZ has joined #silverstripe
731: [19:21:00] * DigNZ has joined #silverstripe
732: [19:21:00] * DigNZ quit (Remote host closed the connection)
733: [19:34:00] * pbol has joined #silverstripe
734: [19:34:00] * Shrike_Finland has joined #silverstripe
735: [19:39:00] * Pyromanik has joined #silverstripe
736: [19:49:00] * pbol quit (Quit: Page closed)
737: [19:51:00] <FrozenFire> Beh. SS 2.4 DOM how to?
738: [19:51:00] <FrozenFire> Hrmm, http://www.ssbits.com/snippets/2010/a-data-object-manager-cheatsheet/ should do
739: [19:55:00] * ferge1 has left #silverstripe
740: [20:08:00] <Pyromanik> FrozenFire: how do? don't.
741: [20:08:00] <Pyromanik> complex maybe, but not a table field.
742: [20:08:00] * Friksel has joined #silverstripe
743: [20:08:00] <FrozenFire> :P
744: [20:08:00] <Pyromanik> why
745: [20:08:00] <FrozenFire> I'm using DOM
746: [20:08:00] <Pyromanik> it's the same thing only less hacked
747: [20:08:00] <FrozenFire> You're the same thing, only less hacked.
748: [20:08:00] <Pyromanik> no, actually I'm not a complex table field.
749: [20:08:00] <FrozenFire> Yes you are.
750: [20:08:00] <Pyromanik> new ComplexTableField()
751: [20:08:00] <FrozenFire> Meh. Fuck that.
752: [20:09:00] <FrozenFire> And more
753: [20:09:00] <FrozenFire> All of the above.
754: [20:11:00] <Friksel> good evening! Anybody knows if it's possible to use the _t function for $singular_name and $plural_name of dataObjects? (I hav static $singular_name = _t('Game.SINGULAR_NAME', 'Game'); but somehow it keeps on throwing PHP parse errors
755: [20:11:00] * Zauberfisch quit (Ping timeout: 256 seconds)
756: [20:11:00] <FrozenFire> Friksel, One cannot use functions in class prototypes
757: [20:12:00] <FrozenFire> http://api.silverstripe.org/master/class-DataObject.html#_singular_name
758: [20:12:00] <FrozenFire> And plural_name
759: [20:13:00] <Friksel> @FrozenFire: thanks. It seems to be possible in static $defaults though... I don't really understand
760: [20:14:00] <FrozenFire> Friksel, It's basic PHP, to be honest. You cannot make a function call in the prototype of a class.
761: [20:14:00] <FrozenFire> Because that's a function call.
762: [20:14:00] <FrozenFire> You can only use scalar values.
763: [20:14:00] <FrozenFire> That is, you can't do public static $singular_name = _t('foo')
764: [20:15:00] <FrozenFire> Though there's also an i18n_singular_name and i18n_plural_name
765: [20:15:00] <FrozenFire> If you wish to have a translatable naming, you would use singular_name and plural_name to return what the names are.
766: [20:15:00] <FrozenFire> Those might be preferable.
767: [20:16:00] <FrozenFire> _t is part of PHP's intl extension
768: [20:16:00] <Friksel> @FrozenFire: thanks, I understand OO, but I was so enthousiastic about implementing the nice _t feature that I didn't think about it.. the i18n_singular_name( ) seems nice! Good suggestion
769: [20:16:00] <FrozenFire> Not part of SilverStripe
770: [20:16:00] * Zauberfisch has joined #silverstripe
771: [20:17:00] <FrozenFire> Might be something SilverStripe defines
772: [20:17:00] <FrozenFire> Not sure what _t is
773: [20:17:00] <FrozenFire> Hrmm, actually, not sure now. I know _() is part of ext/intl
774: [20:17:00] <Friksel> @FrozenFire: good to know ;)
775: [20:18:00] <simon_w> FrozenFire, _t() is SilverStripe's
776: [20:18:00] <Friksel> Hey, don't teach me wrong ;)
777: [20:19:00] <Pyromanik> not sure
778: [20:19:00] <Pyromanik> look it up
779: [20:19:00] <FrozenFire> simon_w, What's the distinction?
780: [20:19:00] <Pyromanik> Friksel: I think you're looking for i18n_name
781: [20:19:00] <Pyromanik> or maybe that doesn't exist
782: [20:20:00] <simon_w> well, ext/gettext
783: [20:20:00] <simon_w> _t uses SilverStripe's translation system, not ext/intl's?
784: [20:21:00] <Pyromanik> simon_w: (`SiteTree`.`SubsiteID` IN (0)) -> returns SubsiteID 1 AS 0
785: [20:21:00] <Pyromanik> wtf
786: [20:21:00] <FrozenFire> I suppose the better question is, what's the advantage?
787: [20:22:00] <Pyromanik> I have blogentry for both subsiets
788: [20:22:00] <simon_w> You need to have gettext installed?
789: [20:23:00] <FrozenFire> So... what's the advantage?
790: [20:23:00] <Pyromanik> FrozenFire: by intl do you mean gettext?
791: [20:23:00] <Pyromanik> subsiteid is notnull
792: [20:23:00] <FrozenFire> Because intl is bundled with PHP
793: [20:24:00] <FrozenFire> I had it in my mind that that was ext/intl
794: [20:24:00] <simon_w> It's bundled, but not default
795: [20:24:00] <FrozenFire> Instead of a separate extension
796: [20:24:00] <Pyromanik> right well
797: [20:24:00] <simon_w> And has third party dependencies
798: [20:24:00] <Pyromanik> so anyway
799: [20:24:00] <Pyromanik> mysql
800: [20:24:00] <FrozenFire> Huh. Apparently. And I'm wrong.
801: [20:25:00] <FrozenFire> Disregard me. I suck.
802: [20:25:00] <FrozenFire> Good
803: [20:25:00] <Pyromanik> we know
804: [20:25:00] <FrozenFire> I like it that way
805: [20:26:00] <Pyromanik> unfortunately the actual subsiteid on this entry is NOT 0.
806: [20:26:00] <Pyromanik> WHERE (`SiteTree`.`SubsiteID` IN (0)) returns a page with title 'Wood[...]', and the SubsiteID 0
807: [20:27:00] * FrozenFire hates SS sometimes
808: [20:27:00] <Pyromanik> doing the same query but with WHERE(`SiteTree`.`Title` LIKE 'Wood%') gives the same page, but subsiteid 1, as it actually is.
809: [20:27:00] <FrozenFire> SS 2.4, specifically in this instance
810: [20:28:00] <simon_w> Pyromanik, is that the entire WHERE clause? And nothing funky in the SELECT with regard to SubsiteID?
811: [20:28:00] <simon_w> FrozenFire, you sure that's just not DOM? :p
812: [20:29:00] <FrozenFire> Fairly
813: [20:29:00] <Pyromanik> wo ho ho ho
814: [20:29:00] <Pyromanik> corrupt db :<
815: [20:29:00] <Pyromanik> different IDs
816: [20:29:00] <Pyromanik> fffffffffffffff
817: [20:30:00] * simon_w was going to suggest that next :p
818: [20:30:00] <Pyromanik> corrupt data that is I guess, rather than the actual DB itself.
819: [20:30:00] <Pyromanik> something's dropped the ball somewhere along the line.
820: [20:30:00] <FrozenFire> Hrmm, possibly DOM...
821: [20:30:00] <Pyromanik> because this entry does not show up in the CRM
822: [20:31:00] <Pyromanik> ComplexTableField.
823: [20:31:00] <FrozenFire> Trying to save that using an ImageUploadField
824: [20:31:00] <FrozenFire> I have a has_one to an Image
825: [20:31:00] <simon_w> It's most likely DOM :p
826: [20:31:00] <FrozenFire> Possibly DOM.
827: [20:31:00] <Pyromanik> as I said
828: [20:31:00] <FrozenFire> No, not DOM. Can't imagine it would be...
829: [20:31:00] <Pyromanik> infact almost certainly is.
830: [20:31:00] <Pyromanik> FrozenFire: I CAN imagine it would be.
831: [20:31:00] <FrozenFire> :P
832: [20:31:00] <Pyromanik> yeah
833: [20:32:00] <Pyromanik> goddamn uploadify and it's semi convoluted interface
834: [20:32:00] <FrozenFire> Oh wait, nevermind.
835: [20:32:00] <Pyromanik> do you have a join object?
836: [20:32:00] <Pyromanik> so anyway
837: [20:32:00] <FrozenFire> I'm an idiot
838: [20:32:00] <FrozenFire> Was forgetting to hit "import" on an existing image
839: [20:32:00] <Pyromanik> derp
840: [20:32:00] <Pyromanik> oh wait, has_one
841: [20:33:00] <Pyromanik> why polluted db :<
842: [20:34:00] * Pyromanik switches to "All pages including deleted:
843: [20:34:00] <Pyromanik> gets only the two error pages and the contact page returned.
844: [20:34:00] <Pyromanik> wtf
845: [20:35:00] <Pyromanik> don't think so
846: [20:35:00] <FrozenFire> You didn't do some sort of import, did you?
847: [20:36:00] <Pyromanik> I'd still expect the pages to show up in the backend
848: [20:36:00] <Pyromanik> since they're still in the SiteTree table
849: [20:44:00] <FrozenFire> That is so weird. In 2.4, using SearchForm, I'm getting no results on my dev site for certain terms, but lots of results for those same terms on the live site
850: [20:44:00] <FrozenFire> Using effectively the same database.
851: [20:44:00] <FrozenFire> Basically, exactly the same conditions, different results.
852: [20:44:00] <simon_w> FrozenFire, yay, MySQL Fulltext!
853: [20:44:00] <FrozenFire> Care to elaborate?
854: [20:45:00] <simon_w> Also, make sure the minimum search size is smaller than what you're searching for it
855: [20:45:00] <FrozenFire> Same data
856: [20:45:00] <FrozenFire> It's the exact same database
857: [20:45:00] <FrozenFire> It should just be the same thing
858: [20:45:00] <FrozenFire> :P
859: [20:45:00] <simon_w> MySQL's Fulltext is shit.
860: [20:45:00] <FrozenFire> Only difference, perhaps, is the MySQL version.
861: [20:45:00] <simon_w> Same MySQL versions and config?
862: [20:46:00] <FrozenFire> Shitty.
863: [20:46:00] <FrozenFire> 5.1 versus 5.5
864: [20:46:00] <FrozenFire> 5.1 on production
865: [20:46:00] <FrozenFire> 5.5 on dev
866: [20:47:00] <irogue> iirc they did big changes to fulltext in 5.5 to try and make it less shit
867: [20:47:00] * lx-berlin has joined #silverstripe
868: [20:48:00] <simon_w> FrozenFire, if you want decent search, use Postgres or MSSQL
869: [20:48:00] <FrozenFire> Well, apparently they made it more shit for me.
870: [20:48:00] <FrozenFire> simon_w, Not possible.
871: [20:48:00] <FrozenFire> Production is Dreamhost
872: [20:48:00] <irogue> i did say "try", and this is oracle
873: [20:48:00] <simon_w> You're screwed!
874: [20:48:00] <simon_w> Google Custom Search it?
875: [20:48:00] <FrozenFire> Meh. Fuck it. The production is where it "works"
876: [20:48:00] <FrozenFire> So I'll get by
877: [20:49:00] <FrozenFire> Screwed us around for the better part of a year on a simple site rebuild
878: [20:49:00] <FrozenFire> I hate this client anyways.
879: [20:54:00] <Pyromanik> FrozenFire: so like a normal client then?
880: [20:55:00] <Pyromanik> hey guys, if a form doesn't contain a particular field, that field just doesn't get updated when the form submits to the originating object, right?
881: [20:55:00] <FrozenFire> We're talking about dozens of hours of development time on little changes.
882: [20:55:00] <Pyromanik> FrozenFire: yeh, sounds about right.
883: [20:55:00] <FrozenFire> Nah. She was much, much worse.
884: [20:55:00] <Pyromanik> or does it get set to null?
885: [20:56:00] <simon_w> Pyromanik, depends on the saveInto flags you past. Default is to leave as is.
886: [20:57:00] <Pyromanik> ok cool
887: [20:57:00] * Pyromanik is trying to figure out how he's ended up with cross pollinated db entries for subsites
888: [20:58:00] <FrozenFire> Magic
889: [20:58:00] <Pyromanik> just noticed that the sitetree decoration has no SubsiteID field.
890: [20:59:00] <Pyromanik> but that shouldn't matter I think
891: [21:03:00] <simon_w> So, I think I found out why this particular task of ours is so slow.
892: [21:03:00] <simon_w> http://s.geek.nz/p/4j
893: [21:05:00] <simon_w> That's our bottleneck
894: [21:05:00] <FrozenFire> The hell is that, and why is it so high?
895: [21:06:00] <FrozenFire> :P
896: [21:06:00] <FrozenFire> That's 10 full days of processor time.
897: [21:06:00] <simon_w> Time to fix it!
898: [21:06:00] <simon_w> Well, it's a couple of calls down, but that's the main place that calls it
899: [21:07:00] <FrozenFire> Oh wait, micro
900: [21:07:00] <simon_w> micro = 10^-6
901: [21:07:00] <FrozenFire> Right
902: [21:07:00] <FrozenFire> Yeah
903: [21:07:00] <simon_w> It's 950 seconds
904: [21:08:00] <simon_w> It kinda bricks the server for a couple of minutes at the moment
905: [21:08:00] <FrozenFire> That's... outrageous.
906: [21:08:00] <simon_w> So, this is in an hourly task
907: [21:08:00] <FrozenFire> Still a relative lot
908: [21:08:00] <FrozenFire> Oh, that's a single run?
909: [21:10:00] <simon_w> The actual bottleneck's only 43.0% IWALL! :p
910: [21:11:00] * UndefinedOffset quit (Quit: Leaving.)
911: [21:16:00] * ARNHOE quit (Remote host closed the connection)
912: [21:18:00] * Friksel quit (Ping timeout: 245 seconds)
913: [21:24:00] * StuartKent has joined #silverstripe
914: [21:26:00] <StuartKent> Hey, how's it going
915: [21:26:00] <FrozenFire> Sup
916: [21:28:00] <StuartKent> who would be best to ask about issues with admin Ajax? We've just upgraded and are experiencing some issues
917: [21:30:00] <FrozenFire> Ask openly, and we'll see if we can't help
918: [21:31:00] <StuartKent> cool, thanks
919: [21:33:00] <StuartKent> not unline http://open.silverstripe.org/ticket/7708
920: [21:33:00] <StuartKent> when opening the admin/assets and admin/pages pages via AJAX, the content is being escaped incorrectly and we're seeing a whole lot of \n\n\n\t content
921: [21:33:00] <StuartKent> *unlike
922: [21:34:00] <FrozenFire> SS version?
923: [21:34:00] <StuartKent> 3.0.5 upgraded recently from a 2.4.5
924: [21:35:00] <StuartKent> migrated from a windows to linux box, currently on mysql 5.3 I believe
925: [21:35:00] <FrozenFire> Have you emptied your cache_dir and done a full flush?
926: [21:35:00] <FrozenFire> E.g. silverstripe-cache
927: [21:37:00] <StuartKent> I've been doing ?flush=all, it doesn't throw any errors (as far as I can see) but SiteTree.classname's Enum is being output as this:
928: [21:37:00] <StuartKent> Field SiteTree.ClassName: changed to enum('','Page','ErrorPage','Footer'
929: [21:38:00] <FrozenFire> Hence why you should clear out your cache_dir
930: [21:38:00] <FrozenFire> Yeah, just thinking that a functional CMS that just has some weird output after an upgrade is likely to be cached templates from 2.4.5
931: [21:38:00] <FrozenFire> And rebuild it all
932: [21:39:00] <FrozenFire> Was this copy ever running 2.4.5?
933: [21:39:00] <StuartKent> not to my knowledge
934: [21:39:00] <StuartKent> running a delete now just in case
935: [21:39:00] <StuartKent> Just delete everything in the silverstripe-cache folder?
936: [21:39:00] <FrozenFire> Yes
937: [21:39:00] <StuartKent> this wasn't transferred with the main site
938: [21:39:00] <FrozenFire> Ah. So it's a fresh copy.
939: [21:41:00] * MichaelinWelling has joined #silverstripe
940: [21:41:00] * r3v3rb quit (Quit: r3v3rb)
941: [21:42:00] * r3v3rb has joined #silverstripe
942: [21:43:00] * r3v3rb quit (Client Quit)
943: [21:44:00] * lx-berlin quit (Quit: lx-berlin)
944: [21:44:00] <StuartKent> Running on a clear cache the issue is still persisting
945: [21:45:00] <FrozenFire> (Where specifically)
946: [21:45:00] * ferge has joined #silverstripe
947: [21:45:00] <FrozenFire> Where is this \n\n\n\t content showing up?
948: [21:45:00] * ferge has left #silverstripe
949: [21:45:00] <FrozenFire> And in what form?
950: [21:46:00] <FrozenFire> Nope. IRC is unfortunately permanent.
951: [21:46:00] <StuartKent> http://209.249.66.239/admin/pages/edit/show/1 after a change has been made and save & publish has been pressed
952: [21:46:00] <StuartKent> well. that's unfortunate.
953: [21:46:00] <StuartKent> is it possible to delete that from the history?
954: [21:46:00] <FrozenFire> Just don't draw attention to it.
955: [21:46:00] <FrozenFire> :P
956: [21:47:00] <StuartKent> lol.
957: [21:48:00] <StuartKent> So on pressing save and publish, the content of the content box is n\t\t\n\t\t <\/p>\n\t\t\n\n\t\t \n\t\t\t \n\t\t\t\n\t\t\t\t \n\t \n\t\n\t\t with a few fields visible
958: [21:49:00] <FrozenFire> Not sure what that is, in context.
959: [21:49:00] <FrozenFire> If you view that content in your database directly, does it contain that?
960: [21:49:00] <StuartKent> Sorry. I should rephrase, I meant the leftandmain_content.js box
961: [21:50:00] <FrozenFire> Could you take a screenshot?
962: [21:50:00] * Nivery has left #silverstripe
963: [21:50:00] <StuartKent> http://www.silverstripe.org/assets/Uploads/Screen-Shot-2013-01-24-at-08.07.45.png
964: [21:51:00] <StuartKent> yeah. open bug as of a year now
965: [21:51:00] <FrozenFire> That's... interesting.
966: [21:51:00] <FrozenFire> Well, bugs need to be reproducible to fix
967: [21:53:00] <StuartKent> true
968: [21:54:00] <StuartKent> also when creating a UserDefinedForm page, I'm getting a column not found error for the SubmittedFormField join on SubmittedForm.ParentID
969: [21:54:00] * azureKnight has joined #silverstripe
970: [21:55:00] <azureKnight> $summary_fields = array ();
971: [21:55:00] * FrozenFire does a silly walk
972: [21:55:00] <azureKnight> Not sudo?
973: [21:55:00] <azureKnight> Random question:
974: [21:55:00] <FrozenFire> Pseudo-random.
975: [21:55:00] <FrozenFire> Seeded by SilverStripe silliness.
976: [21:55:00] <FrozenFire> :P
977: [21:55:00] <azureKnight> Anyways. No distracting me.
978: [21:56:00] <FrozenFire> Summary fields are just a field.
979: [21:56:00] <azureKnight> Why do we write it like, 'Title' => 'Title'
980: [21:56:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/3.0/model/DataObject.php#L3267
981: [21:57:00] <FrozenFire> public static $field_labels
982: [21:57:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/3.0/model/DataObject.php#L3209
983: [21:57:00] <azureKnight> Hmm. Alright.
984: [21:57:00] <FrozenFire> Field labels are what you're looking for
985: [21:57:00] <FrozenFire> No index necessary, as it just copies the value into the key for its purposes.
986: [21:58:00] <azureKnight> If I had a text value area for 'Desc' but I wanted it to say Description
987: [21:58:00] <MichaelinWelling> haha thanks
988: [21:58:00] <MichaelinWelling> Hello, is Simon_w around? I have a question for him about the oauth module and getting it working with an android app.
989: [21:58:00] <azureKnight> Interesting.
990: [21:58:00] <simon_w> I might be
991: [21:58:00] <simon_w> Who knows?
992: [21:59:00] <MichaelinWelling> I'm getting undefined property to the $template variable in the controller, I've followed the blog instructions for setup
993: [21:59:00] <MichaelinWelling> I can't figure out why its doing that esp since it is a static variable that is set
994: [21:59:00] <azureKnight> I know how to write that in the field, it's just the second thing you pass after called the Field. But how would I make that happen in the grid fields table area?
995: [21:59:00] <simon_w> MichaelinWelling, can you pastie the callstack?
996: [21:59:00] <azureKnight> Gotcha.
997: [21:59:00] <FrozenFire> azureKnight, $field_labels
998: [22:00:00] <FrozenFire> There's a complicated way to do it per-GridField
999: [22:00:00] <azureKnight> I was just impressed how you read my mind before I actually wrote it. ;)
1000: [22:00:00] <FrozenFire> But field_labels is how you should do it usually.
1001: [22:00:00] <FrozenFire> I work with GridField a *lot*
1002: [22:00:00] <FrozenFire> :P
1003: [22:00:00] <azureKnight> As always FrozenFire , you have aided me.
1004: [22:01:00] <MichaelinWelling> http://pastebin.com/x25AWySW
1005: [22:01:00] <azureKnight> Hopefully I'll be around later with no issues, just to be a part of the irc. ttyl.
1006: [22:01:00] * azureKnight quit (Quit: azureKnight)
1007: [22:02:00] <MichaelinWelling> btw Simon I'm in Wellington at Lightning Labs Sam (the CEO) visited yesterday. Not sure if you know about it?
1008: [22:04:00] <MichaelinWelling> Said you were awesome and would def help me out :D
1009: [22:04:00] <FrozenFire> I find that the best way to get him talking is to insult his work
1010: [22:05:00] <FrozenFire> Why the hell wouldn't you check the existence of the property before getting its value, simon_w ?
1011: [22:05:00] <FrozenFire> Novice mistake.
1012: [22:05:00] <FrozenFire> I'll get you started.
1013: [22:05:00] <MichaelinWelling> lol
1014: [22:06:00] <MichaelinWelling> haha
1015: [22:08:00] <FrozenFire> :D
1016: [22:08:00] <FrozenFire> There he is.
1017: [22:08:00] <simon_w> That's also the best way to get me to abuse my powers :p
1018: [22:08:00] <FrozenFire> See?
1019: [22:09:00] <simon_w> Whoa, someone broke getViewer
1020: [22:14:00] <simon_w> Oh right, PHP's protection against recursive __get
1021: [22:14:00] * mirrors has joined #silverstripe
1022: [22:15:00] <StuartKent> odd, requests are gaining slashes too
1023: [22:15:00] <StuartKent> . /%22//assets//_resampled//stripthumbnail
1024: [22:15:00] <mirrors> Hey everyone...I am trying to understand the different between DailyTask, HourlyTask etc.....how are they only ran daily and hourly respectively. Doesnt the cron control when they are run
1025: [22:16:00] <Pyromanik> looks like magic quotes
1026: [22:16:00] <Pyromanik> aybe
1027: [22:16:00] <Pyromanik> but I meant magic_quotes_gpc and the like
1028: [22:16:00] <mirrors> run*
1029: [22:16:00] <StuartKent> issue with the DB import?
1030: [22:17:00] <StuartKent> http://api.silverstripe.org/2.4/class-ScheduledTask.html
1031: [22:17:00] <FrozenFire> StuartKent, Did you check your database contents?
1032: [22:18:00] <StuartKent> @mirrors ^
1033: [22:18:00] <StuartKent> the assests all have the correct paths
1034: [22:20:00] <StuartKent> is there a particular table I should look in? I can't figure out which
1035: [22:20:00] <mirrors> StuartKent: so yeah that means that the time to run isnt set in the php class. It is just a nice way to group all the tasks that need to be run hourly, but still requires you to run that task every hour from the cron
1036: [22:22:00] <StuartKent> admin/pages/edit/show/25 when visiting this, it completely changes the tree on the left
1037: [22:22:00] <MichaelinWelling> err someone broke getViewer?
1038: [22:22:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
1039: [22:24:00] <StuartKent> seems so :)
1040: [22:25:00] <FrozenFire> I think we can agree. Someone broke getViewer
1041: [22:26:00] <StuartKent> I think I have three different site trees at least :s
1042: [22:27:00] <FrozenFire> That'd be odd
1043: [22:27:00] <FrozenFire> I think you have three SiteTree items, more likely. ;)
1044: [22:27:00] <FrozenFire> SiteTree is the base class for all Pages
1045: [22:28:00] <Pyromanik> I have four SiteTrees.
1046: [22:28:00] * liam_ is now known as Guest77183
1047: [22:28:00] <Pyromanik> subsites: too good to be true.
1048: [22:28:00] <StuartKent> people always beat me :(
1049: [22:28:00] * liam_ has joined #silverstripe
1050: [22:28:00] <FrozenFire> DataObject -> SiteTree -> Page -> YourPage
1051: [22:28:00] <Pyromanik> and pages are getting lost in the midst :<
1052: [22:29:00] <Pyromanik> can't replicate, cant' fix...
1053: [22:29:00] <Pyromanik> oh my head.
1054: [22:29:00] <simon_w> Hmm, that method shouldn't be getting a viewer at all
1055: [22:29:00] <Pyromanik> no idea how the fault occured in the first place, no idea where to begin to try and replicate
1056: [22:29:00] <StuartKent> eventually once you work it out, you get superpowers
1057: [22:30:00] <Pyromanik> sif
1058: [22:30:00] <StuartKent> a world expert in a tiny niche
1059: [22:30:00] <simon_w> MichaelinWelling, you do have a scope called default?
1060: [22:30:00] <Pyromanik> once I eventually work it out I get told off for burning too many hours on a project is probably more like it
1061: [22:31:00] <StuartKent> such is life
1062: [22:31:00] <FrozenFire> Probably
1063: [22:32:00] <spronk> wow
1064: [22:33:00] <spronk> just got a big long ~2 page email sent through about our flickr-like multilingual greeting, and how it trivialises Maori.
1065: [22:33:00] <MichaelinWelling> simon_w, yes
1066: [22:33:00] <spronk> (greeting is e.g. "Ni hao" - Now you can say hello in Cantonese)
1067: [22:33:00] <MichaelinWelling> yes
1068: [22:35:00] <spronk> but seriously
1069: [22:35:00] <spronk> "in a seeming attempt to reflect multi-cultural awareness the website minimises te reo maaori and hence te tiriti o Waitangi (and subsequently is difficult to take seriously when greeted in the other languages)"
1070: [22:35:00] <Pyromanik> Ni hao ma
1071: [22:37:00] <simon_w> MichaelinWelling, oh, I think I know. spronk found something like this too. Either do an svn up, or grab the routes.yml from https://svn.pocketrent.com/public/oauth/trunk/_config/routes.yml
1072: [22:37:00] <Pyromanik> maaori?
1073: [22:37:00] <StuartKent> the flickr website looks really cool in chinese
1074: [22:38:00] <spronk> lul.
1075: [22:38:00] <spronk> oh
1076: [22:38:00] <spronk> we spell it as M?ori
1077: [22:38:00] <FrozenFire> So basically, "You were multi-cultural, but you weren't omni-cultural!"
1078: [22:38:00] <spronk> a with macron
1079: [22:38:00] * toebu quit (Remote host closed the connection)
1080: [22:38:00] <FrozenFire> Or something like that?
1081: [22:38:00] <Pyromanik> "he website minimises te reo maaori and hence te "
1082: [22:38:00] <spronk> this person also mentioned: a. the term Maori is spelt incorrectly (I dont recall it having a double a)
1083: [22:38:00] <spronk> do you spell Maori?
1084: [22:38:00] <Pyromanik> "te reo maaori"
1085: [22:38:00] <spronk> so guys
1086: [22:38:00] <spronk> how the fuck
1087: [22:38:00] <Pyromanik> "maaori"
1088: [22:38:00] <Pyromanik> maaaaaaaaaaaaaaaaaaaaaaaaaori?
1089: [22:39:00] <FrozenFire> Haha... this can only go well.
1090: [22:39:00] <Pyromanik> well yeah
1091: [22:39:00] <Pyromanik> spronk: well it only has one a.
1092: [22:39:00] * FrozenFire spreads some tinder around on the floor
1093: [22:39:00] <Pyromanik> with or without a macron.
1094: [22:39:00] * spronk thought it was [M] [a with macron] [o] [r] [i]
1095: [22:39:00] <simon_w> I'm fairly sure that's it
1096: [22:39:00] <Pyromanik> but if no macron, doesn't mean second a.
1097: [22:39:00] <spronk> i've also seen it as Maori, and Maaori
1098: [22:39:00] <Pyromanik> Maori.
1099: [22:40:00] <Pyromanik> because not everyone has macrons
1100: [22:40:00] <Pyromanik> wow.
1101: [22:40:00] <Pyromanik> so the person wants the whole site in Maori because they're a Maori school.
1102: [22:40:00] <Pyromanik> well I suppose
1103: [22:40:00] <Pyromanik> yeh
1104: [22:40:00] <spronk> i've also seen some systems render macron'd characters as doubles
1105: [22:41:00] <spronk> they're just some random parent
1106: [22:41:00] <spronk> "b. there is no further use of te reo Maaori on the website which suggests how tokenistic and patronising the use of te reo actually is"
1107: [22:41:00] <spronk> (N.B.: if browsing our site with language as 'mi' you get a partially translated te reo version)
1108: [22:42:00] <spronk> STOP BEING SO ANGRY
1109: [22:42:00] <spronk> just want to email back and say
1110: [22:42:00] <FrozenFire> It's the same here in Canada, with our own aboriginals
1111: [22:42:00] * FrozenFire empathizes with this situation
1112: [22:42:00] <FrozenFire> And it certainly doesn't help that there are hundreds of tribes
1113: [22:42:00] <FrozenFire> Any attempt to be multi-culturally inclusive of them is met with balking about how wrong we are in our attempt
1114: [22:43:00] <FrozenFire> All with vastly different cultures
1115: [22:43:00] <Pyromanik> :P
1116: [22:43:00] <Pyromanik> abos are from aussie, silly FrozenFire
1117: [22:44:00] <FrozenFire> Not sure what the deal with the Maori is
1118: [22:44:00] <FrozenFire> Maybe terminologically. But aboriginal basically just means "Whoever was here first"
1119: [22:44:00] <FrozenFire> Are they not aboriginal?
1120: [22:44:00] <simon_w> Not technically
1121: [22:45:00] <spronk> :P
1122: [22:45:00] <spronk> don't get me started..
1123: [22:45:00] <simon_w> 900-1100 AD ish
1124: [22:45:00] <spronk> yeah
1125: [22:45:00] <FrozenFire> But, they were there first?
1126: [22:45:00] <MichaelinWelling> nope the mori oris were
1127: [22:45:00] <simon_w> They're also somewhat recent immigrants
1128: [22:46:00] <simon_w> Yeah
1129: [22:46:00] <spronk> well
1130: [22:46:00] <simon_w> Just another tribe
1131: [22:46:00] <MichaelinWelling> excuse my spelling
1132: [22:46:00] <simon_w> They were a type of Maori
1133: [22:46:00] <spronk> we think
1134: [22:46:00] <MichaelinWelling> Oh I did not know that
1135: [22:46:00] <MichaelinWelling> Yes I knew that part
1136: [22:46:00] <spronk> legend has it the maoris killed them off
1137: [22:46:00] * spronk shrugs
1138: [22:46:00] <MichaelinWelling> Really?
1139: [22:47:00] <Pyromanik> Japanese aren't from Japan.
1140: [22:47:00] <simon_w> And aboriginal: "inhabiting or existing in a land from the earliest times or from before the arrival of colonists; indigenous."
1141: [22:47:00] <FrozenFire> Alright. Let's generalize it perhaps a bit more. They're essentially the original inhabitants, prior to colonization by western powers? :P
1142: [22:47:00] <Pyromanik> I know.
1143: [22:47:00] <simon_w> Maoris are colonists, just not western
1144: [22:47:00] <Pyromanik> everone is a colonist
1145: [22:47:00] <Pyromanik> etc.
1146: [22:47:00] <FrozenFire> Of course.
1147: [22:47:00] <spronk> yeah
1148: [22:47:00] <Pyromanik> how nitpicky do we want to be?
1149: [22:47:00] <spronk> everyone should just chill the fuck out
1150: [22:47:00] <FrozenFire> But we all *get* what we mean when we say aboriginal.
1151: [22:48:00] <FrozenFire> Not sure why. Pretty sure we've been using it in Canada longer. :P
1152: [22:48:00] <xyphoid> the moriori thing was basically a 'well, the maori were JUST AS BAD AS WE WERE' thing from the sixties
1153: [22:48:00] <MichaelinWelling> simon_w, no change still getting same error with updated oauth
1154: [22:48:00] <simon_w> People who can't remember when they arrived in some place
1155: [22:48:00] <FrozenFire> Those who inhabited the land prior to the colonization by western powers.
1156: [22:48:00] <spronk> although apparently, because I'm a white man, I'm not allowed to suggest that shit
1157: [22:48:00] <simon_w> MichaelinWelling, you've flushed?
1158: [22:48:00] <Pyromanik> because usually they have their own terms.
1159: [22:48:00] <spronk> ...even though I'm 1/32nd maaaaaaori. Bro.
1160: [22:48:00] <Pyromanik> and yeah, I know what the meaning of aboriginal is.
1161: [22:48:00] <Pyromanik> it's just strange to me to hear it applied to someone outside of australia
1162: [22:49:00] <MichaelinWelling> ahh thanks
1163: [22:49:00] <FrozenFire> Which isn't to say the issue has existed longer.
1164: [22:49:00] <Pyromanik> Just so far as I know, the aboriginals in aus are only identified as aboriginal, not maori or inuit or some other self identifying name.
1165: [22:49:00] <FrozenFire> Just that we've been PC about it for longer. :P
1166: [22:49:00] <MichaelinWelling> ???fail, working.. didn't think the framework would cache an error page
1167: [22:49:00] <Pyromanik> moriori a myth.
1168: [22:49:00] <simon_w> MichaelinWelling, config is cached
1169: [22:50:00] <simon_w> I should probably update the tar ball too
1170: [22:50:00] <StuartKent> Hey Frozen. I've just started with a fresh database, and even after the initial /dev/build?flush we're seeing the same Ajax response
1171: [22:50:00] <MichaelinWelling> yea you should :D
1172: [22:51:00] <FrozenFire> StuartKent, What was your upgrade process?
1173: [22:51:00] <FrozenFire> Wat
1174: [22:51:00] <StuartKent> sorry, 3.5
1175: [22:51:00] <FrozenFire> Ah
1176: [22:51:00] <StuartKent> Install 3.3 > copy Mysite & themes folder > /dev/build
1177: [22:51:00] <FrozenFire> If you just did a file replacement, that might've caused the problems.
1178: [22:51:00] <FrozenFire> :P
1179: [22:51:00] <FrozenFire> 3.0.5?
1180: [22:51:00] <FrozenFire> I would suggest checking framework and cms out fresh
1181: [22:52:00] <FrozenFire> Not sure if something in that respect could be causing that problem.
1182: [22:52:00] <FrozenFire> I'd check your PHP version and extensions
1183: [22:52:00] <FrozenFire> Not sure what to tell you, then.
1184: [22:52:00] <StuartKent> yeah :)
1185: [22:52:00] * Colin[pi] has joined #silverstripe
1186: [22:52:00] <FrozenFire> Also perhaps your webserver (Apache, nginx, etc) configuration
1187: [22:53:00] <Colin[pi]> morning all
1188: [22:53:00] <simon_w> Also, if any of your files are outputting whitespace they shouldn't be
1189: [22:53:00] <FrozenFire> Well, the issue he's having is actually pretty darned weird
1190: [22:53:00] <Pyromanik> hi
1191: [22:53:00] <StuartKent> as in an echo?
1192: [22:53:00] <FrozenFire> http://www.silverstripe.org/assets/Uploads/Screen-Shot-2013-01-24-at-08.07.45.png
1193: [22:54:00] <Pyromanik> patched though, I'd thought
1194: [22:54:00] <FrozenFire> StuartKent, Typically the whitespace thing happens if you include ?> at the end of your class files
1195: [22:54:00] <StuartKent> it's not the content at least
1196: [22:54:00] <Pyromanik> OR
1197: [22:54:00] <Pyromanik> OR
1198: [22:54:00] <FrozenFire> Or if you have an accidental newline or space before <?php
1199: [22:54:00] <Pyromanik> never ?>
1200: [22:54:00] <Pyromanik> the return value
1201: [22:54:00] <Pyromanik> nah it's the whole page
1202: [22:54:00] <Pyromanik> not uncommon
1203: [22:55:00] <FrozenFire> Indeed. Never include ?> at the end of files
1204: [22:55:00] <Pyromanik> or that
1205: [22:55:00] <simon_w> Or, an empty config with just <?php (no closing newline)
1206: [22:55:00] <Pyromanik> and your little dog too
1207: [22:55:00] <Pyromanik> php will hate you
1208: [22:55:00] <Pyromanik> however
1209: [22:55:00] <Pyromanik> non-visible character in UTF8 supporting editors (like notepad++)
1210: [22:55:00] <Pyromanik> UTF8 BOM
1211: [22:56:00] <Pyromanik> like magic_quotes_onlynot_gpc
1212: [22:56:00] <Pyromanik> also
1213: [22:56:00] <Pyromanik> it's double escaping the strings
1214: [22:56:00] <FrozenFire> Yeah, that's somewhat what made me o.O
1215: [22:56:00] <Pyromanik> like an extra or automatic 'sanitiser'
1216: [22:58:00] <StuartKent> and it looks like the DB is building properly now
1217: [22:58:00] <StuartKent> well. I just removed the ?> from the end of a phpinfo file
1218: [22:59:00] <Colin[pi]> is it one API key for all Google APIs now, or separate?
1219: [22:59:00] <StuartKent> :P I didn't upload it though, so that isn't related
1220: [23:00:00] <FrozenFire> All code in there should be class files
1221: [23:00:00] <FrozenFire> StuartKent, Yeah, never include any file in the mysite/code directory which you do not want to have included on every single request.
1222: [23:00:00] * dospuntocero quit (Remote host closed the connection)
1223: [23:01:00] <StuartKent> though there are quite a few class files with ?> at the end
1224: [23:01:00] <StuartKent> yep it is
1225: [23:02:00] <Pyromanik> haha! got you you little bastards
1226: [23:02:00] <Pyromanik> SELECT * FROM SiteTree LEFT JOIN SiteTree as Parent ON Parent.ID = SiteTree.ParentID WHERE Parent.SubsiteID != SiteTree.SubsiteID AND SiteTree.ParentID != 0
1227: [23:03:00] <Pyromanik> practice? practise?
1228: [23:03:00] <FrozenFire> It's considered a "best practise" to never include it.
1229: [23:03:00] * dospuntocero has joined #silverstripe
1230: [23:03:00] <FrozenFire> StuartKent, Yeah, I'd suggest making it part of your coding guidelines to never, ever include ?> at the end of PHP files unless you have a very good reason.
1231: [23:03:00] <FrozenFire> Yeah, maybe practice in this case.
1232: [23:03:00] <Pyromanik> defence defense
1233: [23:03:00] <Pyromanik> licence, license
1234: [23:03:00] <FrozenFire> Things like git add a newline to the end of files
1235: [23:04:00] <FrozenFire> Practise is a noun, now that I think of it.
1236: [23:04:00] <Pyromanik> SITTING ON DE-FENCE WITH THIS DECISION
1237: [23:04:00] <FrozenFire> Practice is a verb.
1238: [23:04:00] <Pyromanik> just yank vs English afaik.
1239: [23:05:00] <FrozenFire> Well, sort of
1240: [23:05:00] <FrozenFire> Nope
1241: [23:05:00] <FrozenFire> In the Queen's English, practise is a noun, practice is a verb.
1242: [23:05:00] <FrozenFire> In American English, practice is both a noun and a verb.
1243: [23:06:00] <FrozenFire> Sorta-kinda like cheque versus check
1244: [23:07:00] <Guest77183> anyone know how to do an intitial authentication to get the token with this module https://github.com/nyeholt/silverstripe-webservices ?
1245: [23:08:00] <FrozenFire> Made me do research and then buggered off
1246: [23:08:00] * FrozenFire smacks that Guest
1247: [23:08:00] * Guest77183 quit (Quit: Guest77183)
1248: [23:09:00] <StuartKent> holy crap you guys are amazing
1249: [23:10:00] <Pyromanik> I didn't know practise could be a noun.
1250: [23:10:00] <FrozenFire> StuartKent, Yeah, what I suspect is that for ajax requests, it was including whitespace at the beginning of the request, which broke jQuery's json type detection
1251: [23:10:00] * SightUnseen has left #silverstripe
1252: [23:10:00] <StuartKent> it wooorrrks
1253: [23:10:00] * SightUnseen has joined #silverstripe
1254: [23:11:00] <Pyromanik> 60 seconds is far too long to wait.
1255: [23:11:00] <Pyromanik> yeh
1256: [23:11:00] <Pyromanik> Oh, right.
1257: [23:11:00] <FrozenFire> Pyromanik, A lawyer's practise
1258: [23:11:00] <Pyromanik> FrozenFire: as for Guest, you know how it goes.
1259: [23:12:00] <Pyromanik> lol rly?
1260: [23:12:00] <Pyromanik> leaving tabs open is just not feasible.
1261: [23:12:00] <Pyromanik> he's gotta get this shit sorted you know.
1262: [23:12:00] <FrozenFire> That's part of the reason ##php denies non-ident'd people
1263: [23:12:00] <FrozenFire> Barrier to entry so that it doesn't become Google.
1264: [23:12:00] <Pyromanik> haha, fair enough.
1265: [23:12:00] <FrozenFire> Naturally
1266: [23:13:00] <FrozenFire> It's the video games
1267: [23:13:00] <Pyromanik> ok so I found all my problem childs, but I still don't know where they went off the rails.
1268: [23:14:00] <Pyromanik> it's true. the now generation.
1269: [23:14:00] <FrozenFire> And the newfangled music
1270: [23:15:00] <Pyromanik> because of anything afterwards
1271: [23:15:00] <Pyromanik> mm
1272: [23:15:00] <StuartKent> ohh
1273: [23:15:00] <Pyromanik> immediate.
1274: [23:15:00] <Pyromanik> a new line is a newline
1275: [23:15:00] <Pyromanik> you're dumping raw output
1276: [23:15:00] <Pyromanik> you've exited the php mode
1277: [23:15:00] <StuartKent> we're heading towards the 5 minutes ago generation too
1278: [23:15:00] <Pyromanik> like a newline
1279: [23:15:00] <Pyromanik> NOW
1280: [23:15:00] <StuartKent> How would the ?> tags cause inclusions of whitespace?
1281: [23:16:00] <FrozenFire> Yes.
1282: [23:16:00] <FrozenFire> That way PHP eats all whitespace
1283: [23:16:00] <StuartKent> so it's safer to rely on EOF closing the PHP?
1284: [23:16:00] <Pyromanik> vanilla php. You remember that stuff right? :P
1285: [23:16:00] <FrozenFire> EOF is ?> if not otherwise present
1286: [23:16:00] <StuartKent> I didn't know that
1287: [23:17:00] <StuartKent> Php is far better at eating time :P
1288: [23:17:00] <FrozenFire> Pyromanik, YourObject::get()->removeByID
1289: [23:17:00] <Pyromanik> what's the easiest way to simply obliterate some arbitrary data objects by ID from the database?
1290: [23:18:00] <FrozenFire> Pyromanik, Oh. That.
1291: [23:18:00] <Pyromanik> FrozenFire: yeh, I get how, but... where?
1292: [23:18:00] <FrozenFire> StuartKent, This is why developers should know best practices. ;)
1293: [23:18:00] <Pyromanik> I'd argue that CSS is more of a timewaster
1294: [23:18:00] <FrozenFire> Or removeMany
1295: [23:18:00] <StuartKent> I'm only a littledev atm :)
1296: [23:18:00] <FrozenFire> Umm...
1297: [23:19:00] <FrozenFire> The script would be like <?php include("cli/bootstrap.php"); $c = new Controller(); $c->pushCurrent(); ... ?>
1298: [23:19:00] <FrozenFire> Pyromanik, I like to include https://github.com/TheFrozenFire/silverstripe-cli-module
1299: [23:19:00] <FrozenFire> So I can run arbitrary code without a controller
1300: [23:19:00] <Pyromanik> interesting
1301: [23:19:00] <Pyromanik> a littledev in a primordial devsoup
1302: [23:19:00] <FrozenFire> Well, technically there's a controller.
1303: [23:19:00] <FrozenFire> Gah
1304: [23:19:00] <FrozenFire> But it doesn't do anything
1305: [23:20:00] * guci0 quit (Ping timeout: 245 seconds)
1306: [23:20:00] <FrozenFire> <.<
1307: [23:20:00] <Pyromanik> -.-
1308: [23:20:00] <FrozenFire> >.>
1309: [23:20:00] <FrozenFire> Or else it will murder you
1310: [23:20:00] <Pyromanik> Page::init() it is! :P
1311: [23:20:00] <FrozenFire> Just don't do anything that involves the view.
1312: [23:20:00] <Pyromanik> rofl
1313: [23:20:00] <FrozenFire> s/?>//
1314: [23:21:00] <Pyromanik> oh, I need to cover versions and stuff too...
1315: [23:21:00] <FrozenFire> And also for running quick fixes on data
1316: [23:21:00] <FrozenFire> I use it for inserting test data and whatnot
1317: [23:21:00] * Pyromanik hacks
1318: [23:21:00] <Pyromanik> ->unPublish()->delete() ?
1319: [23:22:00] <Pyromanik> ??
1320: [23:22:00] <FrozenFire> I hate Versioned
1321: [23:22:00] <FrozenFire> Do not require me to think about it
1322: [23:22:00] <Pyromanik> me too
1323: [23:22:00] <Pyromanik> love hate relationship.
1324: [23:22:00] <Pyromanik> it works, but it's black voodoo :<
1325: [23:22:00] <FrozenFire> I guess you could do foreach($yourObject->AllVersions() as $fuckthisshit) $fuckthisshit->delete();
1326: [23:22:00] <FrozenFire> Poips.
1327: [23:23:00] <Pyromanik> mmm
1328: [23:23:00] <Pyromanik> sounds good
1329: [23:23:00] * Pyromanik goes to check docs
1330: [23:23:00] <FrozenFire> Good luck. And may the FSM have mercy on your soul.
1331: [23:23:00] * tankr has joined #silverstripe
1332: [23:24:00] <Pyromanik> keh
1333: [23:26:00] <FrozenFire> With Versioned as a BC extension that applies both of those extensions and interfaces with them
1334: [23:26:00] <FrozenFire> I have plans to split Versioned into History and Staged
1335: [23:27:00] <Pyromanik> I don't like the live table.
1336: [23:27:00] <Pyromanik> surely all one needs is a pointer to the version
1337: [23:27:00] <FrozenFire> Indeed
1338: [23:28:00] <FrozenFire> And update a field *on* SiteTree pointing to the version
1339: [23:28:00] <FrozenFire> When you write to SiteTree, it should write that to versions
1340: [23:28:00] <FrozenFire> There's SiteTree, SiteTree_Live and SiteTree_versions
1341: [23:28:00] <FrozenFire> Ultimately, same with the staged table
1342: [23:29:00] <FrozenFire> And then the stages could just be fields.
1343: [23:29:00] <Pyromanik> yeah, but then you get issues between consistency of versioned objects and nonversioned
1344: [23:29:00] <FrozenFire> E.g. LiveVersion, OtherStageVersion
1345: [23:29:00] <Pyromanik> although I guess you could test for the extension and create the table accordingly
1346: [23:30:00] <FrozenFire> Yeah. There are probably issues.
1347: [23:30:00] <FrozenFire> That's why I hate all of that magic
1348: [23:31:00] <FrozenFire> Like the reading mode
1349: [23:31:00] <FrozenFire> Reading mode should be per-instance
1350: [23:31:00] <FrozenFire> Or preferably stateless
1351: [23:31:00] <FrozenFire> I also hate all of the global state that Versioned introduces
1352: [23:31:00] <FrozenFire> The accessor should specify the stage to read, always.
1353: [23:38:00] <FrozenFire> Which is nothing more than https://www.google.com/search?q=site:api.silverstripe.org%2Ftrunk%20htmleditorfield
1354: [23:38:00] <FrozenFire> Gah. I'm tired of all of the broken links on Google for the API docs
1355: [23:38:00] <FrozenFire> E.g. http://api.silverstripe.org/master/class-_sapphire---forms---HtmlEditorField.php.html
1356: [23:39:00] <FrozenFire> Ah. Maybe I should update my shortcut to use current instead
1357: [23:43:00] <Colin[pi]> speaking of google and apis, did anyone catch my earlier qn? is it one api key for all of google's apis now? or seperate?
1358: [23:43:00] <DrCuriosity> http://api.silverstripe.org/master/class-HtmlEditorField.html seems to work. /trunk redirects to /master.
1359: [23:49:00] <StuartKent> the silverstripe modules page seems pretty out of date too
1360: [23:49:00] * MichaelinWelling quit (Quit: MichaelinWelling)
1361: [23:49:00] <FrozenFire> Yeah. Best to ignore it, for the most part.
1362: [23:50:00] <FrozenFire> And if you have another sort of need, then just ask
1363: [23:50:00] <FrozenFire> https://github.com/silverstripe/ and https://github.com/silverstripe-labs/
1364: [23:50:00] <StuartKent> cool :) I didn't know about that
1365: [23:51:00] <FrozenFire> You can also search composer
1366: [23:51:00] <FrozenFire> Though more will likely be listed in the GitHub accounts than on composer
1367: [23:52:00] <tankr> or here: http://extensions.andrewshort.name/ for composer/packagist listed modules iirc
1368: [23:52:00] <StuartKent> the composer ones are just running of github anyway, right?
1369: [23:52:00] <FrozenFire> Yeah, the composer ones get pulled from packagist, which I *think* indexes stuff from GitHub and a couple of other places?
1370: [23:53:00] <willr> StuartKent silverstripe.org/extensions will be retired.
1371: [23:53:00] <StuartKent> you should Iframe that site into the package part of the official website :P it looks nifty
1372: [23:53:00] <willr> FrozenFire yep. You can add post update hooks on github for it
1373: [23:53:00] <FrozenFire> Meh. Easiest to just search the GitHub accounts for official packages
1374: [23:53:00] <tankr> it is temporary at the moment I think and will eventually be moved to extensions.ss.org..
1375: [23:56:00] <FrozenFire> I think dedicated extension/module/plugin indexing is a thing of the past.
1376: [23:56:00] <FrozenFire> So much valuable code is out there that cannot be indexed by such a thing in a reasonable amount of time.
1377: [23:57:00] <FrozenFire> And you'll usually get something worthwhile.
1378: [23:57:00] <FrozenFire> But yeah, basically, just search for "silverstripe module <term>"
1379: [23:57:00] <StuartKent> you mean when github does it for free?
1380: [23:57:00] <FrozenFire> GitHub isn't really an index as such
1381: [23:57:00] * EPIK has joined #silverstripe
1382: [23:59:00] <tankr> here is the relevant discussion about it on the dev mailing list: https://groups.google.com/d/topic/silverstripe-dev/6gNNTSztA7k/discussion

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