#silverstripe IRC Log

IRC log for 28 February 2014

All timestamps are in UTC.

1: [00:00:08] * ObiWanShanobi has joined #silverstripe
2: [00:00:54] * ObiWanShanobi quit (Read error: Connection reset by peer)
3: [00:01:38] * ObiWanSh_ quit (Ping timeout: 240 seconds)
4: [00:01:45] * ObiWanShanobi has joined #silverstripe
5: [00:03:19] * ObiWanShanobi quit (Read error: Connection reset by peer)
6: [00:03:55] * ObiWanShanobi has joined #silverstripe
7: [00:06:14] * ObiWanShanobi quit (Read error: Connection reset by peer)
8: [00:09:55] <pippy> how do i set notification_version in silverstripe 3.1?
9: [00:09:59] <pippy> can i do this through yml?
10: [00:10:43] <pippy> i noticed no depreation errors are showing
11: [00:16:25] * k_fish has joined #silverstripe
12: [00:17:02] <pippy> most of the warnings seem to be for 3.2, so i guess it doesn't really matter
13: [00:18:05] * micmania2 has joined #silverstripe
14: [00:19:26] * k_fish_ quit (Ping timeout: 264 seconds)
15: [00:20:38] * PapaBearNZ quit (Ping timeout: 245 seconds)
16: [00:20:59] * micmania1 quit (Ping timeout: 240 seconds)
17: [00:21:17] * Bollig|DesignCty has joined #silverstripe
18: [00:25:57] <Colin[pi]> nice thanks simon_w, made an XML data feed for products in less than an hour, already deployed on live
19: [00:26:02] * Bollig|DesignCty quit (Ping timeout: 264 seconds)
20: [00:27:40] * Bollig|DesignCty has joined #silverstripe
21: [00:29:47] * UncleCheese has joined #silverstripe
22: [00:30:35] <Colin[pi]> client: "just realised our registration form is not validating email addresses, a simple check would be to scan for '@' in the field"
23: [00:30:42] <Colin[pi]> firstly, um, it is?
24: [00:30:44] <Colin[pi]> I just checked
25: [00:30:54] <Colin[pi]> and secondly, why not regex?
26: [00:31:00] <Colin[pi]> but thanks for doing my job for me
27: [00:34:58] * howardgrigg has joined #silverstripe
28: [00:37:04] <ss23> Colin[pi]: lol
29: [00:37:09] <ss23> Colin[pi]: regex is bad 4 email validation!
30: [00:37:12] * jrthomer has joined #silverstripe
31: [00:37:19] <Colin[pi]> better than going I HAZ @?
32: [00:37:32] <Colin[pi]> but I'm like
33: [00:37:34] <Colin[pi]> it IS checking
34: [00:37:40] <Colin[pi]> and it's server side validation
35: [00:37:44] <ss23> lol
36: [00:37:46] <Colin[pi]> so it couldn't be a no JS thing
37: [00:37:47] <Colin[pi]> wtf
38: [00:37:58] <ss23> I hate it when I accidently use `mysql` instead of `mysqldump` and just think it's taking a long time but really it's not doing anything :(
39: [00:38:08] <Colin[pi]> lol
40: [00:38:13] <Colin[pi]> done this too :(
41: [00:38:43] <simon_w> Lol, mysql
42: [00:38:51] <simon_w> Just copy the table files!
43: [00:39:13] <Colin[pi]> I've had that go pear shaped before
44: [00:39:44] <ss23> lol simon_w
45: [00:39:45] <ss23> pls
46: [00:40:03] * jrthomer_ quit (Ping timeout: 240 seconds)
47: [00:40:09] * speak_ quit (Ping timeout: 240 seconds)
48: [00:40:09] * abitran quit (Ping timeout: 240 seconds)
49: [00:40:15] <simon_w> Nice underscore ss-log_. Can I be bothered fixing it...
50: [00:40:26] <ss23> who cares, it works fine
51: [00:41:57] * k_fish quit (Read error: Connection reset by peer)
52: [00:44:43] * jrthomer_ has joined #silverstripe
53: [00:45:15] * k_fish has joined #silverstripe
54: [00:45:16] * abitran has joined #silverstripe
55: [00:45:18] * howardgr_ has joined #silverstripe
56: [00:45:20] * Kapdap has joined #silverstripe
57: [00:46:51] * UncleCheese quit (Quit: UncleCheese)
58: [00:47:04] * Kapdap_ quit (Ping timeout: 240 seconds)
59: [00:47:26] * SMaction quit (Write error: Broken pipe)
60: [00:47:41] * UncleCheese has joined #silverstripe
61: [00:48:15] * joelpitt_ has joined #silverstripe
62: [00:48:56] * TRB143_ quit (Read error: Connection reset by peer)
63: [00:50:02] * TRB143 has joined #silverstripe
64: [00:53:33] * mobiusnz1 has joined #silverstripe
65: [00:53:34] * nickmolhoek1 has joined #silverstripe
66: [00:54:04] * jrthomer quit (*.net *.split)
67: [00:54:04] * howardgrigg quit (*.net *.split)
68: [00:54:04] * Bollig|DesignCty quit (*.net *.split)
69: [00:54:06] * joelpittet quit (*.net *.split)
70: [00:55:09] * micmania2 quit (Ping timeout: 257 seconds)
71: [00:55:12] * mobiusnz quit (Write error: Connection reset by peer)
72: [00:59:05] * DesignerX has joined #silverstripe
73: [01:04:39] <simon_w> Hello trivial XSS hole!
74: [01:04:45] <simon_w> ss23, you're going to get another email!
75: [01:06:28] * nickmolhoek quit (Ping timeout: 642 seconds)
76: [01:06:45] <ss23> :D
77: [01:06:46] <ss23> Yay!
78: [01:06:50] <ss23> simon_w: post-auth?
79: [01:07:13] <simon_w> Yup
80: [01:07:33] <simon_w> Well, no
81: [01:07:40] <simon_w> It requires the target to be logged in
82: [01:10:01] <ss23> But it's not CSRF protected?
83: [01:10:13] <simon_w> Doesn't involve a form
84: [01:10:13] <ss23> e.g. "Hey check out my site! It's cwp.govt.nz/admin/lolhacked<script>..."?
85: [01:10:33] <simon_w> Yeah
86: [01:10:37] <ss23> simon_w: fffff
87: [01:10:40] <ss23> This is going to make a lot of people mad
88: [01:10:40] <ss23> lol
89: [01:10:44] <ss23> simon_w: Send it through :P
90: [01:11:05] <ss23> Maybe I should get the beer out early
91: [01:11:05] <ss23> :D
92: [01:17:37] <Ryan-Toast> ss23: Yes.
93: [01:17:44] * oddnoc quit (Quit: bye!)
94: [01:18:56] * nimeso has joined #silverstripe
95: [01:19:50] * nimeso quit (Client Quit)
96: [01:20:12] * nimeso has joined #silverstripe
97: [01:20:43] * travis-ci has joined #silverstripe
98: [01:20:43] <travis-ci> [travis-ci] simonwelsh/silverstripe-framework#34 (3.1 - 3e18be6 : Simon Welsh): The build has errored.
99: [01:20:43] <travis-ci> [travis-ci] Change view : https://github.com/simonwelsh/silverstripe-framework/compare/8f5c4a6527ca...3e18be668d05
100: [01:20:43] <travis-ci> [travis-ci] Build details : http://travis-ci.org/simonwelsh/silverstripe-framework/builds/19774099
101: [01:20:43] * travis-ci has left #silverstripe
102: [01:20:54] <nimeso> Has anyone had the issue with https://github.com/silverstripe-labs/silverstripe-googlesitemaps ... if I visit mysite/sitemap.xml I get a error saying This page contains the following errors: error on line 11 at column 8: Opening and ending tag mismatch: base line 0 and head Below is a rendering of the page up to the first error.
103: [01:21:26] <ss23> check the raw XML and see if it's broken?
104: [01:21:43] <nimeso> Thanks ss23... how do I do that?
105: [01:22:07] <ss23> nimeso: View the source of that page
106: [01:23:13] <nimeso> ss23, thanks, the source is html with things like <div class="info"> <h1>Welcome to SilverStripe</h1> </div> hmmm
107: [01:23:20] <nimeso> its not xml at all
108: [01:24:05] <nimeso> I've done a build/flush and alos made sure I have a googlesitemaps.yml file... weird
109: [01:25:59] <nimeso> http://www.commodorehotel.co.nz/sitemap.xml you can see it (not my site, I'm just fixing it)
110: [01:26:12] * SightUnseen has joined #silverstripe
111: [01:28:40] * travis-ci has joined #silverstripe
112: [01:28:40] <travis-ci> [travis-ci] simonwelsh/silverstripe-framework#35 (3.1 - 1e10108 : Sean Harvey): The build passed.
113: [01:28:40] <travis-ci> [travis-ci] Change view : https://github.com/simonwelsh/silverstripe-framework/compare/3e18be668d05...1e10108dac7e
114: [01:28:40] <travis-ci> [travis-ci] Build details : http://travis-ci.org/simonwelsh/silverstripe-framework/builds/19774404
115: [01:28:40] * travis-ci has left #silverstripe
116: [01:29:47] * guzzlefry quit (Ping timeout: 240 seconds)
117: [01:29:50] <Colin[pi]> cya guys, I'm off to Wagga Wagga
118: [01:29:59] <ss23> Have fun!
119: [01:30:07] <Colin[pi]> new trampoline center, yey
120: [01:30:21] <Ryan-Toast> Colin[pi]: My leg is fucked from last night
121: [01:30:24] * guzzlefry has joined #silverstripe
122: [01:30:26] <Ryan-Toast> at Jump!
123: [01:30:26] <Colin[pi]> :(
124: [01:30:30] <Colin[pi]> what happened?
125: [01:30:36] <Ryan-Toast> Was learning double backflips
126: [01:30:42] <Ryan-Toast> landed poorly on one of them
127: [01:30:51] * ObiWanShanobi has joined #silverstripe
128: [01:31:36] * SightUnseen has left #silverstripe
129: [01:31:51] <Colin[pi]> oh shit :(
130: [01:31:56] <Colin[pi]> you can walk?
131: [01:32:02] <Ryan-Toast> I can limp :P
132: [01:32:40] <Colin[pi]> sucks :(
133: [01:32:54] <Colin[pi]> I'm going to be extra careful now lol
134: [01:32:55] <Colin[pi]> cyas
135: [01:32:59] <Ryan-Toast> I'll live :P
136: [01:33:03] <Ryan-Toast> bye, have fun :)
137: [01:33:09] <Colin[pi]> :D
138: [01:33:14] * Colin[pi] quit (Quit: pants)
139: [01:37:43] <Stomach> good old leg injuries
140: [01:37:50] <Stomach> i popped my ACL on friday night too
141: [01:37:51] <Stomach> oops
142: [01:40:35] <nimeso> @ss23... I have managed to get some xml showing :) BUT it only has one node saying <loc> http://www.commodorehotel.co.nz/sitemap.xml/sitemap/SiteTree/1 </loc> <lastmod>2014-02-24</lastmod>
143: [01:40:42] <nimeso> driving me nuts
144: [01:40:44] <ss23> No idea :O
145: [01:40:55] <ss23> I'm not familiar with the module, sorry :(
146: [01:41:24] <nimeso> ok, ta man... I'll write to willr :)
147: [01:41:56] <simon_w> nimeso, that's working as expected
148: [01:42:20] <nimeso> yer?
149: [01:42:20] <simon_w> That's an index page, with http://www.commodorehotel.co.nz/sitemap.xml/sitemap/SiteTree/1 containing the first chunk of pages
150: [01:42:45] <simon_w> And then, if you get big enough, http://www.commodorehotel.co.nz/sitemap.xml/sitemap/SiteTree/2 will contain the second chunk
151: [01:43:58] <nimeso> Thanks heaps simon! few... I'm not crazy... I follow you now! thanks heaps guy
152: [01:45:35] <nimeso> Ok last one Simon... so in google web master tools do I submit http://www.commodorehotel.co.nz/sitemap.xml or http://www.commodorehotel.co.nz/sitemap.xml/sitemap/SiteTree/1 ?
153: [01:45:45] <simon_w> sitemap.xml
154: [01:46:01] <nimeso> sweeet! thanks heap man! I owe you a beer!
155: [01:46:08] <simon_w> ss23, you should got email
156: [01:46:54] <ss23> I got email
157: [01:46:58] <ss23> It seemed non-explitable
158: [01:48:01] <ss23> <!DOCTYPE html><html><head><title>GET /nait/dev/build?returnURL=/&quot;&gt;&lt;h1&gt;Hacked!&lt;/h1&gt;&lt;!--
159: [01:48:04] <ss23> etc
160: [01:48:46] <simon_w> ss23, look at the end of the response
161: [01:49:02] <ss23> <p>Setting up the database; you will be returned to your site shortly....</p><p>Done!</p>
162: [01:49:06] <ss23> ?
163: [01:49:19] <simon_w> After that
164: [01:49:29] <simon_w> The <a>, <meta> and <script>
165: [01:49:46] <ss23> the output finishes there for me
166: [01:50:20] <ss23> I presume it requires me to be in a certain dev/live mode
167: [01:50:56] <simon_w> Try making the returnURL relative
168: [01:54:21] <ss23> curl 'localhost/nait/dev/build?returnURL=../"><h1>Hacked!</h1><!--'
169: [01:54:22] <ss23> same thing
170: [01:54:49] <simon_w> Which ss version?
171: [01:54:57] <ss23> idk
172: [01:54:58] <ss23> :O
173: [01:55:01] <ss23> presume 3.1 for this site
174: [01:55:03] <ss23> maybe 3.0
175: [01:55:05] <ss23> I can try another?
176: [01:55:54] <simon_w> Getting a Location: header?
177: [01:56:18] <ss23> probably
178: [01:56:35] <ss23> whats the "Show me the headers" flag?
179: [01:56:40] <simon_w> -i
180: [01:56:52] <ss23> Location: /aa/../"><h1>Hacked!</h1><!--
181: [01:57:02] <simon_w> Yeah, you're buffering
182: [01:57:07] <ss23> oic
183: [01:57:11] * zippy___ has joined #silverstripe
184: [01:59:29] * ObiWanShanobi quit (Quit: Leaving...)
185: [02:08:24] <Ryan-Toast> SVG ALL THE THINGS!
186: [02:09:18] <ss23> MORE SECURITY ISSUES
187: [02:09:20] <ss23> This one is lulz
188: [02:09:20] <ss23> :P
189: [02:12:50] <Ryan-Toast> ss23: what is it?
190: [02:21:36] * joelpitt_ quit (Remote host closed the connection)
191: [02:22:10] * joelpittet has joined #silverstripe
192: [02:22:55] <ss23> Ryan-Toast: You'll see the post when it's made! :D
193: [02:23:08] <Ryan-Toast> ss23: Okay :0
194: [02:26:23] * joelpittet quit (Ping timeout: 252 seconds)
195: [02:28:17] <simon_w> Well, I guess I'll be building my disclosure site this weekend then
196: [02:28:42] <ss23> simon_w: I'll reply to your sec emails btw
197: [02:28:52] <Ryan-Toast> disclosure site?
198: [02:29:29] <simon_w> Ryan-Toast, for publicly disclosing security problems I find
199: [02:29:55] <Ryan-Toast> boilerplate, boom.
200: [02:30:37] <simon_w> I could build it on Beatbox!
201: [02:31:59] * violetina quit (Remote host closed the connection)
202: [02:32:11] <ss23> lol
203: [02:32:19] <ss23> most people just use jeckly/hyde or twitter :P
204: [02:32:47] <zippy___> jezus talk about a sppon no a friday.....
205: [02:32:56] <simon_w> ss23, NIH!
206: [02:33:10] <zippy___> trying to put a class on a </div> and wonder why it's not working....
207: [02:33:19] <ss23> simon_w: :P
208: [02:33:23] <Ryan-Toast> Lol
209: [02:33:30] <Ryan-Toast> 10/10 Friday afternoon mistake
210: [02:33:37] <Ryan-Toast> 3:33, baby devil hour.
211: [02:33:46] <zippy___> why you no style mofo!!!!
212: [02:34:00] <zippy___> coming up to beer time
213: [02:34:07] <Ryan-Toast> zippy___: Already is beer time
214: [02:35:25] * howardgr_ quit (Remote host closed the connection)
215: [02:35:52] * howardgrigg has joined #silverstripe
216: [02:36:58] <Tanger> Hey guys, is an SS3 class responsible for pulling in all the project's *.php files? Or is that something PHP does itself?
217: [02:37:09] <Tanger> In particular the _ss_environment file
218: [02:39:27] * SightUnseen has joined #silverstripe
219: [02:40:14] * howardgrigg quit (Ping timeout: 244 seconds)
220: [02:43:29] <zippy___> Tanger: ss will pull in the _ss_enviro file - if you have told it to :)
221: [02:43:56] <zippy___> Tanger: http://doc.silverstripe.org/framework/en/topics/environment-management -> require_once("conf/ConfigureFromEnv.php"); in your mysite/_config.php
222: [02:44:03] * SightUnseen has left #silverstripe
223: [02:56:35] <pippy> beer time
224: [02:57:46] * howardgrigg has joined #silverstripe
225: [02:58:39] * unsignedint quit ()
226: [03:01:54] * zippy___ quit (Ping timeout: 256 seconds)
227: [03:12:30] <Stomach> how can I make an extension from a module load before my extension?
228: [03:13:00] <simon_w> Is the module using YAML to add the extension?
229: [03:13:07] <Stomach> yeah
230: [03:13:17] <simon_w> Use an After: rule in your YAML
231: [03:13:39] <Stomach> module: ---
232: [03:13:40] <Stomach> Name: catalog
233: [03:13:40] <Stomach> After: 'cms/*', 'framework/*'
234: [03:13:40] <Stomach> ---
235: [03:13:45] <Stomach> so in my config
236: [03:13:49] <Stomach> After: 'framework/*','cms/*', 'catalog/*'
237: [03:13:51] <Stomach> ?
238: [03:13:56] <simon_w> Well, is catalog the name of the module?
239: [03:14:04] <Stomach> nah, silverstripe-cataglog
240: [03:14:08] <Stomach> -g
241: [03:14:16] <simon_w> So that's what the folder's called?
242: [03:14:20] <Stomach> yeah
243: [03:14:27] <simon_w> Then that's what you went to use
244: [03:14:50] <Stomach> cool :D
245: [03:15:03] <Stomach> what if i wanted to do something similar in two configs in the mysite directory?
246: [03:15:08] <Stomach> thats how it started
247: [03:15:36] <simon_w> The format for after is: modulename/filename#fragmentname
248: [03:15:44] * k_fish quit (Read error: Connection reset by peer)
249: [03:15:58] <simon_w> So you'd probably do 'mysite/otherconfig#*'
250: [03:16:01] * k_fish has joined #silverstripe
251: [03:16:43] <Stomach> ideal
252: [03:16:45] <Stomach> that makes more sense
253: [03:16:47] <Stomach> thanks simon_w
254: [03:17:53] * mobiusnz has joined #silverstripe
255: [03:17:56] * mobiusnz1 quit (Read error: Connection reset by peer)
256: [03:20:22] <UncleCheese> just use node
257: [03:21:05] <simon_w> I think UncleCheese is stuck in the land of back scroll
258: [03:21:31] <UncleCheese> ah, there we go
259: [03:33:29] * UncleCheese_ has joined #silverstripe
260: [03:38:45] * Jakx__ has joined #silverstripe
261: [03:38:46] * Tanger quit (Quit: Tanger)
262: [03:42:00] <Jakx__> if I have a return in parent::init(); will it exit the current init() method?
263: [03:42:12] <simon_w> Jakx__, no
264: [03:42:31] <Jakx__> Is there anything I can do to achieve this?
265: [03:42:33] * mobiusnz1 has joined #silverstripe
266: [03:42:40] * mobiusnz quit (Read error: Connection reset by peer)
267: [03:43:08] <simon_w> Jakx__, you can potentially throw a SS_HTTP_Exception
268: [03:44:43] <Jakx__> simon_w, would only prompt an error, or could it prompt a redirect or permission check or something?
269: [03:44:50] * nickmolhoek1 quit (Quit: nickmolhoek1)
270: [03:45:24] <simon_w> Jakx__, $this->redirect('blah'); throw new SS_HTTPResponse_Exception($this->response);
271: [03:45:54] * UncleCheese_ quit (Quit: UncleCheese_)
272: [03:46:39] <Jakx__> simon_w, is this available in 2.4?
273: [03:46:50] <simon_w> I think so
274: [03:46:59] <Jakx__> simon_w, ty I'll give it a try
275: [03:54:06] <Jakx__> simon_w, popCurrent called on ModelAsController controller, but it wasn't at the top of the stack
276: [03:54:10] * unsignedint has joined #silverstripe
277: [03:54:11] * Jakx__ is now known as jakx
278: [03:55:17] <simon_w> jakx, oh yeah, you'll need to $this->popCurrent(); before throwing
279: [03:57:17] <jakx> simon_w, excellent!
280: [03:57:44] <jakx> simon_w, ty - that really added an element of finesse to this current project
281: [03:58:06] <jakx> simon_w, out of curiosity - do you have a donate page?
282: [03:58:15] <simon_w> Um, maybe
283: [03:59:16] <simon_w> Nope, I ditched my paypal widget
284: [03:59:28] <jakx> simon_w, ah. What's your paypal address?
285: [03:59:54] <simon_w> simon@simon.geek.nz
286: [04:00:07] <simon_w> Hmm, that password looks way too short. I should probably change it.
287: [04:03:25] <jakx> simon_w, I've sent you some $$ as a thanks for all your help man. I really appreciate and I'm sure you rescue a lot of people looking for help in this channel.
288: [04:03:34] <simon_w> :)
289: [04:05:14] * jakx is now known as jakx_
290: [04:05:32] <irogue_> jakx_: contributing to simon_w's wedding fund eh
291: [04:05:32] * jakx_ is now known as jakx____
292: [04:05:36] * Tanger has joined #silverstripe
293: [04:05:44] <simon_w> Pretty much
294: [04:05:44] * jakx____ is now known as Jakx
295: [04:06:12] * UncleCheese quit (Quit: UncleCheese)
296: [04:06:22] <Jakx> irogue_, heh
297: [04:10:38] * joelpittet has joined #silverstripe
298: [04:14:05] * Ryan-Toast quit (Quit: Ryan-Toast)
299: [04:14:49] * joelpittet quit (Ping timeout: 240 seconds)
300: [04:26:54] * Jakx quit (Quit: ~ Trillian Astra - www.trillian.im ~)
301: [04:30:59] * Azure quit (Ping timeout: 240 seconds)
302: [04:33:00] * k_fish_ has joined #silverstripe
303: [04:37:27] * guzzlefry quit (Ping timeout: 240 seconds)
304: [04:37:29] * k_fish quit (Ping timeout: 240 seconds)
305: [04:37:42] * guzzlefry has joined #silverstripe
306: [04:40:51] * Azure has joined #silverstripe
307: [04:41:24] * k_fish__ has joined #silverstripe
308: [04:42:14] * SightUnseen1 has joined #silverstripe
309: [04:42:20] * SightUnseen1 has left #silverstripe
310: [04:42:43] * k_fish_ quit (*.net *.split)
311: [04:42:47] * DesignerX quit (*.net *.split)
312: [04:43:47] * simon_w quit (Quit: This computer has gone to sleep)
313: [04:44:09] * DesignerX has joined #silverstripe
314: [04:45:22] * Nimle has joined #silverstripe
315: [04:47:15] * mobiusnz1 quit (Quit: Leaving.)
316: [04:48:14] * SightUnseen has joined #silverstripe
317: [04:49:34] * SightUnseen has left #silverstripe
318: [04:49:55] * guzzlefry quit (Ping timeout: 240 seconds)
319: [04:50:13] * guzzlefry has joined #silverstripe
320: [04:50:14] * guzzlefry quit (Changing host)
321: [04:50:14] * guzzlefry has joined #silverstripe
322: [04:54:00] * mobiusnz has joined #silverstripe
323: [04:56:07] * mobiusnz quit (Client Quit)
324: [04:56:48] * cloph has joined #silverstripe
325: [04:57:14] * cloph_away quit (Ping timeout: 264 seconds)
326: [05:00:24] * unsigned_ has joined #silverstripe
327: [05:00:32] * SightUnseen1 has joined #silverstripe
328: [05:00:50] * NewLinuxUser has joined #silverstripe
329: [05:01:11] * Stomach quit ()
330: [05:02:58] * guzzlefry quit (Ping timeout: 240 seconds)
331: [05:03:00] * guzzlefry has joined #silverstripe
332: [05:03:01] * guzzlefry quit (Changing host)
333: [05:03:02] * guzzlefry has joined #silverstripe
334: [05:03:30] * SightUnseen1 has left #silverstripe
335: [05:08:46] * cloph quit (Read error: Connection reset by peer)
336: [05:09:49] * DesignerX quit (Ping timeout: 286 seconds)
337: [05:09:56] * cloph_away has joined #silverstripe
338: [05:11:01] * unsignedint quit (Ping timeout: 245 seconds)
339: [05:15:24] * NewLinuxUser quit (Read error: Connection reset by peer)
340: [05:15:29] * guzzlefry quit (Ping timeout: 240 seconds)
341: [05:15:38] * NewLinuxUser has joined #silverstripe
342: [05:15:45] * guzzlefry has joined #silverstripe
343: [05:17:56] * mobiusnz has joined #silverstripe
344: [05:23:02] * simon_w has joined #silverstripe
345: [05:23:38] * howardgr_ has joined #silverstripe
346: [05:27:52] * cloph_away quit (Remote host closed the connection)
347: [05:27:52] * howardgrigg quit (Write error: Connection reset by peer)
348: [05:28:54] * guzzlefry quit (*.net *.split)
349: [05:29:36] * cloph_away has joined #silverstripe
350: [05:29:52] * guzzlefry has joined #silverstripe
351: [05:30:36] * guzzlefry quit (Changing host)
352: [05:30:36] * guzzlefry has joined #silverstripe
353: [05:38:39] * Azure quit (Quit: Textual IRC Client: www.textualapp.com)
354: [05:40:03] <Nimle> Hi just a quick question. Is there an easy way to use dataextension or something which can add a field to all dataobjects? I mean I dont show that field in private static $db = array() for each dataobject but that extension automatically adds it. It is because I have a field call for example type in all tablles. I want to have type_en, type_ru, type_de
355: [05:47:39] * cloph has joined #silverstripe
356: [05:48:54] * guzzlefry quit (*.net *.split)
357: [05:48:54] * cloph_away quit (Read error: Connection reset by peer)
358: [05:51:23] * guzzlefry has joined #silverstripe
359: [05:51:36] * guzzlefry quit (Changing host)
360: [05:51:36] * guzzlefry has joined #silverstripe
361: [05:51:43] * Azure has joined #silverstripe
362: [05:54:04] * Azure quit (Client Quit)
363: [05:54:16] * BrianGO has joined #silverstripe
364: [06:05:22] * nimeso quit (Quit: Page closed)
365: [06:05:33] * SightUnseen has joined #silverstripe
366: [06:07:21] * SightUnseen has left #silverstripe
367: [06:09:41] * Azure has joined #silverstripe
368: [06:10:49] * joelpittet has joined #silverstripe
369: [06:10:50] * joelpittet quit (Ping timeout: 240 seconds)
370: [06:10:52] * BrianGO quit (Ping timeout: 240 seconds)
371: [06:14:47] * BrianGO has joined #silverstripe
372: [06:15:56] * mobiusnz quit (Quit: Leaving.)
373: [06:18:41] * SightUnseen has joined #silverstripe
374: [06:19:51] * SightUnseen quit (Client Quit)
375: [06:26:02] * Guits quit (Ping timeout: 264 seconds)
376: [06:57:49] * SightUnseen has joined #silverstripe
377: [07:09:17] * SightUnseen has left #silverstripe
378: [07:11:53] * howardgr_ quit (Remote host closed the connection)
379: [07:12:20] * howardgrigg has joined #silverstripe
380: [07:12:29] * CamelCase has joined #silverstripe
381: [07:13:58] * Nimle quit (Ping timeout: 245 seconds)
382: [07:14:05] <CamelCase> Hi all, Anyone know how to implement a gridfield on a frontend user form?
383: [07:16:39] * howardgrigg quit (Ping timeout: 244 seconds)
384: [07:16:41] * mobiusnz has joined #silverstripe
385: [07:17:49] * babak has joined #silverstripe
386: [07:19:26] * k_fish__ quit (Quit: Leaving)
387: [07:21:18] * mobiusnz quit (Ping timeout: 244 seconds)
388: [07:22:13] * howardgrigg has joined #silverstripe
389: [07:24:05] <CamelCase> ping
390: [07:35:04] * mrzero quit (Remote host closed the connection)
391: [07:38:42] * UncleCheese has joined #silverstripe
392: [07:47:08] * UncleCheese quit (Ping timeout: 244 seconds)
393: [07:48:24] * joelpittet has joined #silverstripe
394: [07:50:17] * mrzero has joined #silverstripe
395: [07:53:05] * joelpittet quit (Ping timeout: 252 seconds)
396: [07:55:41] * Guits has joined #silverstripe
397: [07:56:56] * mrzero quit (Ping timeout: 252 seconds)
398: [08:00:15] * mrzero has joined #silverstripe
399: [08:00:15] * mrzero quit (Changing host)
400: [08:00:15] * mrzero has joined #silverstripe
401: [08:02:43] <Zauberfisch> CamelCase: pong
402: [08:03:53] <Zauberfisch> CamelCase: when saying gridfield in frontend userform, do you mean the UserDefinedForm from the userforms module?
403: [08:07:01] <CamelCase> Zauberfisch: No, just from plain vanilla silverstripe. But I'm cool to try anything if it will allow me the option.
404: [08:09:43] * willr has joined #silverstripe
405: [08:09:49] <Zauberfisch> no no, in fact, I think getting a GridField into a UserDefinedForm would actually be a lot of work
406: [08:10:07] <Zauberfisch> but adding a normal gridfield to the front end is pretty easy
407: [08:11:26] * Shrike_Finland has joined #silverstripe
408: [08:14:22] <willr> To add it to UDF you'd need to create a new EditableFormField subclass and muck with getFormField() and getValueFromData() to do your data processing
409: [08:16:56] * DimiStripe has joined #silverstripe
410: [08:24:24] <Zauberfisch> CamelCase: there is actually a question on stackoverflow regading that topic
411: [08:24:38] <Zauberfisch> http://stackoverflow.com/questions/22058557/silverstripe-gridfield-how-to-remove-buttons
412: [08:25:38] <DimiStripe> Hi Guys, in SS2.4 the used to be SimpleHTMLEditor field with only Bold/Italic/UL functionality . Is there smth similar easy to use for SS 3.1.2 ?
413: [08:28:46] <wmk> gmorning
414: [08:29:16] <Zauberfisch> wmk: good morning
415: [08:29:38] <willr> DimiStripe hasn't changed much in 3.1 I would of thought?
416: [08:29:47] <wmk> DimiStripe, afaik formfields haven't changed that lot
417: [08:30:48] * EasyCo quit (Quit: Connection closed for inactivity)
418: [08:31:27] <wmk> DimiStripe, still available here: https://github.com/unclecheese/silverstripe-bootstrap-forms
419: [08:34:08] * ocm has joined #silverstripe
420: [08:34:10] <ocm> howdy!
421: [08:35:21] * ARNHOE has joined #silverstripe
422: [08:35:34] <wmk> the search at addons.silverstripe.org: why don't i get userforms module when i search for "userform" ?
423: [08:35:40] <wmk> bug or feature?
424: [08:36:16] <willr> wmk bug I would vote
425: [08:36:34] <willr> lol userforms find's the correct result
426: [08:36:42] <wmk> of course.
427: [08:36:45] * travis-ci has joined #silverstripe
428: [08:36:46] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2041 (3.1 - c74137e : Will Rossiter): The build passed.
429: [08:36:46] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/8ab0fd879d28...c74137e679a2
430: [08:36:46] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/19787887
431: [08:36:46] * travis-ci has left #silverstripe
432: [08:37:03] <wmk> seems like the search is whole words only, which isn't that good iMHO
433: [08:41:33] <irogue_> needs moar sphinx
434: [08:42:25] <wmk> willr, https://github.com/silverstripe/addons.silverstripe.org/issues/72
435: [08:44:26] <CamelCase> Thanks Zauberfisch and willr. Much appreciated! :)
436: [08:46:46] * BrianGO_ has joined #silverstripe
437: [08:46:52] <DimiStripe> wmk: Thanks will use it ;)
438: [08:48:40] <wmk> DimiStripe, you're welcome
439: [08:48:58] * BrianGO quit (Read error: Connection reset by peer)
440: [08:50:49] * BrianGO_ quit (Ping timeout: 240 seconds)
441: [08:52:19] * howardgrigg quit (Remote host closed the connection)
442: [08:52:45] * howardgrigg has joined #silverstripe
443: [08:54:34] * Pytrick has joined #silverstripe
444: [08:56:13] * zippy___ has joined #silverstripe
445: [08:56:53] * howardgrigg quit (Ping timeout: 244 seconds)
446: [09:00:53] * Pytrick is now known as Pytrik
447: [09:03:54] * openbees has joined #silverstripe
448: [09:13:37] * kk_ has joined #silverstripe
449: [09:15:23] * CamelCase quit ()
450: [09:16:35] * BrianGO has joined #silverstripe
451: [09:16:46] * CamelCase has joined #silverstripe
452: [09:16:58] * micmania1 has joined #silverstripe
453: [09:17:06] * CamelCase has left #silverstripe
454: [09:32:22] * Tanger has left #silverstripe
455: [09:34:00] * kinglozzer has joined #silverstripe
456: [09:36:41] * howardgrigg has joined #silverstripe
457: [09:40:59] * howardgrigg quit (Ping timeout: 240 seconds)
458: [09:41:31] * BrianGO has left #silverstripe
459: [09:49:03] <Pytrik> such a slooooowwwwwwwww morning :<
460: [09:51:48] <wmk> well...
461: [09:54:23] <Pytrik> Fridizzle
462: [09:54:48] <Pytrik> fush and chups at ~1pm
463: [09:54:56] <Pytrik> that'll liven things up, hopefully.
464: [09:55:18] <kinglozzer> Pytrik: Me too, <3 fush & chups
465: [09:55:27] <Pytrik> In other news, battery meter spazout.
466: [09:55:31] <kinglozzer> Chish and fips
467: [09:55:33] <Pytrik> 1 hour remaining.
468: [09:55:37] * SightUnseen has joined #silverstripe
469: [09:55:44] * SightUnseen has left #silverstripe
470: [09:55:46] <Pytrik> ~7 minutes later, 33 minutes remaining.
471: [09:55:59] <Pytrik> ~2 minutes later, 52 minutes remaining.
472: [09:56:02] <kinglozzer> D:
473: [09:56:18] <Pytrik> DO YOU EVEN MEASURE BRO?
474: [09:57:54] <micmania1> #WordpressFriday :(
475: [09:58:26] <Pytrik> Friday: Thai-day.
476: [09:58:40] <Pytrik> But no thai nearby, so Fry-day.
477: [09:58:45] <Pytrik> :D
478: [09:59:11] <Pytrik> Only everyone so obsessed with cod here. Great fish, but a wee bit 'spennies.
479: [09:59:24] <Pytrik> (expensive)
480: [09:59:33] <micmania1> Pytrik: where do you order from?
481: [09:59:49] <Pytrik> The one over the road.
482: [10:00:02] <Pytrik> sec
483: [10:00:50] <Pytrik> micmania1: Porcellis
484: [10:01:27] <irogue_> 11:56 < micmania1> #WordpressFriday :(
485: [10:01:28] <irogue_> NO
486: [10:01:40] <micmania1> sadly.
487: [10:01:40] <simon_w> Someone's just trying to up their swear stats
488: [10:01:57] <micmania1> w*rdpress
489: [10:02:02] <Pytrik> he did say the wd word :<
490: [10:02:09] <Pytrik> wrd
491: [10:02:11] <Pytrik> drp
492: [10:02:37] <Pytrik> it's more like word-pressure you into suicide.
493: [10:02:47] <Pytrik> :<
494: [10:03:26] * howardgrigg has joined #silverstripe
495: [10:03:28] <micmania1> That's not even half the shit i've got to put up with. Its built by a designer with this crap: http://demo.wpbakery.com/?theme=visual-composer
496: [10:03:49] <Pytrik> oooh, award winning fush and chups! excellent!
497: [10:04:08] <Pytrik> Quite cheap too, comparitively (to Bells back in my town)
498: [10:04:46] <Pytrik> micmania1: I don't feel your pain. That page won't even load for me xD
499: [10:05:18] <micmania1> Pytrik: http://vimeo.com/64482230
500: [10:05:24] <Pytrik> oh wait, yes it does. It's just in an overflow:scroll box at 200px high.
501: [10:05:26] <Pytrik> rofl rofl
502: [10:05:31] * Zri has joined #silverstripe
503: [10:05:41] <Zri> hello everyone
504: [10:05:59] <Zri> I think I found one bug that is in all version 3+
505: [10:06:10] <Zri> but I want to ask if anyone had similar problems or a fix
506: [10:06:55] * violetina has joined #silverstripe
507: [10:06:55] <Zri> the thing is that when I have admin open, and I walk through the model admin open one of the objects and use the upload field
508: [10:06:55] <Pytrik> micmania1: favourite part "50,000+ People Can Not Be Wrong" Actually yes, yes they can. Welcome to fallacies 101, you twat. Argumentum ad populum.
509: [10:06:56] <Zri> it works fine
510: [10:06:59] <Zri> if I do a refresh
511: [10:07:10] <Zri> and use the same uplaod field it doesnt work
512: [10:07:29] * howardgrigg quit (Ping timeout: 240 seconds)
513: [10:07:35] <Zri> so when you go directly to a link in the admin to an open model with a dropdown - this doesnt work in FF or IE
514: [10:07:41] <Zri> but works in chrome
515: [10:07:50] <Pytrik> is admin bug. Something to do with some JS var that doesn't get set on direct refresh that needs to be.
516: [10:07:51] <Zri> tested in versions 3.1.2 and 3.0.5
517: [10:08:03] <Pytrik> I've expereienced it the other way around (loading doesn't work, refresh does)
518: [10:08:18] <Zri> did you eventually fix it
519: [10:08:22] <Pytrik> nope
520: [10:08:27] <Pytrik> just ignored it.
521: [10:08:34] <Zri> damn I need to fix it for a client now
522: [10:08:41] <Pytrik> or maybe I'm wrong, maybe it was how you describe.
523: [10:08:54] <Pytrik> Zri: client is stupid. navigate with cms, not with back buttons, etc.
524: [10:09:24] <Pytrik> Zri: it's basically some JS var that gets posted iirc.
525: [10:09:27] <Zri> yes of course but I cant tell the client use it so, it has to work either way
526: [10:09:36] <Pytrik> check the requests, you'll find a discrepency somewhere.
527: [10:09:51] <Zri> yeah I know, only I need to figure which one, no error or anuthing which makes things more difficult
528: [10:09:52] <Pytrik> then shimmy it back in somehow.
529: [10:10:04] <Pytrik> yeah, you have to manually compare.
530: [10:10:10] <Pytrik> it's not an error, is why.
531: [10:10:15] <Pytrik> it just doesn't work.
532: [10:10:20] <Zri> yes
533: [10:21:28] <Pytrik> gawd. Listening to a rock station. A song comes on sounding more like a dance track, named "No pussy blues".
534: [10:21:36] <Pytrik> honest wtf.
535: [10:21:58] * Shrike_Finland quit (Quit: Leaving.)
536: [10:22:39] <Pytrik> seems to be all about the chap getting cockblocked by his missus.
537: [10:22:53] <Pytrik> very weird. Thankfully followed by Muse.
538: [10:22:54] * zippy___ quit (Quit: zippy___)
539: [10:26:03] * kk_ quit (Ping timeout: 245 seconds)
540: [10:28:01] <kinglozzer> Ffs, I've typed 'grean' instead of 'green' about 5 times so far today
541: [10:28:14] <kinglozzer> *blames Friday*
542: [10:31:50] <simon_w> Hmm, probably a good idea to be in bed before Saturday
543: [10:31:57] * kk_ has joined #silverstripe
544: [10:34:17] * howardgrigg has joined #silverstripe
545: [10:37:53] <Pytrik> probably simon_w, if you want to do stuff on Saturday.
546: [10:38:07] <simon_w> I don't sleep for 24 hours :p
547: [10:38:40] * howardgrigg quit (Ping timeout: 244 seconds)
548: [10:38:57] * svandragt has joined #silverstripe
549: [10:42:24] <Pytrik> simon_w: yeah but getting up late leaves less time to do stuff before it's sleep time again.
550: [10:42:27] <Pytrik> etc
551: [10:42:32] <Pytrik> ;P
552: [10:42:41] <simon_w> Only by a couple of hours :p
553: [10:42:51] <simon_w> And it's more I lose time on Sunday instead
554: [10:43:42] <simon_w> Tomorrow I get to build things while waiting for HHVM to compile!
555: [10:47:44] <Pytrik> that sounds far too close to work simon_w :<
556: [10:47:55] <ss23> simon_w: Going to Sydney for good on Sunday?
557: [10:48:23] <ss23> Canberra*
558: [10:49:34] <simon_w> No
559: [10:49:55] <ss23> Okay! We still need to organise going out for one last lunch at some point, simon_w :O
560: [10:50:04] <simon_w> I'm not moving until April!
561: [10:50:08] <simon_w> I keep telling you this!
562: [10:50:11] <ss23> SORRY :O
563: [10:50:20] <ss23> simon_w: You should know me well enough to realise I suck at remembering things :(
564: [10:50:37] <simon_w> ss23, write it on your mirror!
565: [10:50:42] <ss23> I don't have a mirror
566: [10:50:48] <ss23> o.o
567: [10:53:05] <Pytrik> Just save time and write it on your forehead anyway.
568: [10:53:13] <willr> But I won't be in the country April! We have to do a lunch in early March
569: [10:53:29] <ss23> Hmm
570: [10:53:31] <simon_w> I'm around in March!
571: [10:53:31] <ss23> That is next month!
572: [10:53:36] <ss23> Well, there's the meetup too, right?
573: [10:53:38] <ss23> You both coming to that?
574: [10:53:38] <simon_w> That's 6 minutes away!
575: [10:53:41] <ss23> :O
576: [10:53:42] <ss23> WOW!
577: [10:53:45] <ss23> This month is short!
578: [10:53:47] <Pytrik> yeah, lol
579: [10:53:50] <Pytrik> derp?
580: [10:53:51] * simon_w isn't going to the meet up
581: [10:53:59] <Pytrik> Welcome to the future ss23
582: [10:54:00] <ss23> simon_w: Awww :(
583: [10:54:01] <Pytrik> gosh
584: [10:54:02] <ss23> lol Pytrik
585: [10:54:02] <ss23> pls
586: [10:54:13] <Pytrik> batch plz
587: [10:54:40] <ss23> bash pls
588: [10:54:58] <Pytrik> true story.
589: [10:56:39] <Pytrik> wait
590: [10:56:44] <Pytrik> before it's March
591: [10:56:50] <Pytrik> you all have to meet my mate Klaus.
592: [10:57:10] <Pytrik> www.youtube.com/watch?v=-oB6DN5dYWo
593: [10:57:15] <Pytrik> AMAZING
594: [10:57:34] <ss23> lol
595: [10:57:40] <ss23> irogue_: showed me these ~3 years ago
596: [10:58:07] <Pytrik> 'these'?
597: [10:58:43] <ss23> hmm
598: [10:58:47] <ss23> thought there was more than one, can't remember
599: [11:07:31] <Pytrik> Happy March you lucky bastards :<
600: [11:07:44] <ss23> XD
601: [11:07:46] <Pytrik> it's only 11am, the day is going so slooooowly :<
602: [11:07:47] <ss23> ty :D
603: [11:08:19] <Pytrik> made worse by finding out that the only way to output somethijng in code igniter is to echo it.
604: [11:08:24] <Pytrik> returning does nothing!
605: [11:08:26] <Pytrik> urgh
606: [11:08:32] <ss23> lol
607: [11:09:27] <micmania1> Pytrik: you love code igniter. Stop complaining
608: [11:09:55] <simon_w> So, anyone want to use an editor written in node?
609: [11:10:09] <Pytrik> micmania1: false!
610: [11:10:18] <Pytrik> if anything will fix this, it's MORE complaining!
611: [11:10:29] <Pytrik> simon_w: I... what?
612: [11:10:31] <ss23> simon_w: lol.
613: [11:10:33] * Shrike_Finland has joined #silverstripe
614: [11:10:40] <simon_w> atom.io!
615: [11:10:57] <simon_w> Node editor, shipped inside chromium
616: [11:10:58] <micmania1> I want to try it! You got invites?
617: [11:11:10] <simon_w> It reminds me too much of Sublime
618: [11:11:12] <simon_w> I want a mac app
619: [11:11:39] <Pytrik> I'd give it a go.
620: [11:11:47] <Pytrik> but yeh, it does look like sublime.
621: [11:12:10] <Pytrik> wait, it's shipped inside chromium?
622: [11:12:39] <Pytrik> textmate grammars and themes
623: [11:12:41] <Pytrik> urgh
624: [11:13:34] <Pytrik> "Like other desktop apps, it has its own icon in the dock"
625: [11:13:42] <Pytrik> urgh, fuck'n mac heads. I DON'T HAVE A DOCK
626: [11:13:46] <Pytrik> ffs
627: [11:14:59] <Pytrik> and if you tolorate this, then your children will be next.
628: [11:15:08] <simon_w> Looks rather like it's a mac-only app
629: [11:15:46] <Pytrik> which is retarded.
630: [11:16:03] <Pytrik> is it web tech based or not? MAKE UP YOUR MIND GITHUB.
631: [11:16:18] <simon_w> At least to start with
632: [11:16:55] <simon_w> "Sublime... offer convenience but only limited extensibility"
633: [11:17:00] <simon_w> Have they not used Sublime?
634: [11:17:30] <simon_w> I'm looking forward to FBIDE though
635: [11:18:23] <simon_w> Also, Atom's mixed JSON and YAML for its config?
636: [11:18:25] * simon_w gags
637: [11:19:47] <Pytrik> ffs, ci doesn't even capture return value of executed controller method.
638: [11:19:50] <Pytrik> dafuq.
639: [11:26:12] * joelpittet has joined #silverstripe
640: [11:30:51] * joelpittet quit (Ping timeout: 244 seconds)
641: [11:33:15] <DimiStripe> Hmm... Looks like HtmlEditorFIeld does not work on 3.1.1 / 3.1.2 from the forntend... anyone can give me a fixhint ?
642: [11:35:28] * howardgrigg has joined #silverstripe
643: [11:36:18] <DimiStripe> disappointingly it does not work on 3.1.3 rc2 as well :(
644: [11:39:59] * howardgrigg quit (Ping timeout: 240 seconds)
645: [11:40:12] * willr quit (Quit: willr)
646: [11:43:01] <Pytrik> "Why pollute ~ with ~/.atom?"
647: [11:43:04] <Pytrik> urgh, fuck'n mac users.
648: [11:43:11] <Pytrik> so precious
649: [11:46:53] * DimiStripe quit (Ping timeout: 245 seconds)
650: [11:48:14] <openbees> How hard it could be making a site like jsfiddle for silverstripe ? and does it makes any sense at all ? just an idea !
651: [11:53:28] * cloph is now known as cloph_away
652: [12:00:35] * NewLinuxUser quit (Ping timeout: 252 seconds)
653: [12:02:25] <ocm> silverstripe.org down?
654: [12:02:32] <ss23> I hope not
655: [12:02:35] <ss23> if it is I will suit up and fix it
656: [12:02:37] * ss23 waits
657: [12:02:39] <ss23> it looks down
658: [12:02:40] <ss23> dammit
659: [12:02:58] <ocm> suit up to fix it?
660: [12:03:03] <ocm> jumpSuit?
661: [12:03:05] <ss23> SOMETIMES YOU GOTTA SUIT UP BRO
662: [12:03:16] <ocm> just sometimes?
663: [12:03:17] <ss23> sshkardoon@homer:~$ uptime 01:03:21 up 385 days, 13:53, 1 user, load average: 14.07, 7.86, 3.42
664: [12:03:21] <ss23> that looks not good.
665: [12:03:26] <ocm> I am wearing my adams-suit 24/7
666: [12:03:32] <ss23> is mysqld
667: [12:03:36] <ss23> hmm
668: [12:03:37] <ss23> coming down now
669: [12:03:54] <ss23> I'm not at SilverStripe HQ atm so I can't easily see what's going on...
670: [12:04:08] <micmania1> ss23 it works! slowly, but it works.
671: [12:04:13] <ss23> Oh no, it's going up!
672: [12:04:21] <ss23> this server is *not* happy
673: [12:04:23] <ss23> I'm going to kill it for a second
674: [12:04:29] <ocm> ouch
675: [12:04:36] <ocm> what is happening? ddoss?
676: [12:04:49] <ss23> no idea
677: [12:04:56] <ss23> apache2 stopped
678: [12:05:00] <ss23> wait, stopping...
679: [12:05:18] <micmania1> ITS A DISASTER!
680: [12:05:23] <ocm> kill it with fire!
681: [12:05:45] <ss23> lol
682: [12:06:02] <ocm> did you give the server enough coffee?
683: [12:06:07] <ss23> k restarting it...
684: [12:06:24] <ss23> Looks like weird mysql issue to me
685: [12:06:49] <ss23> brb, will monitor it
686: [12:09:04] <ss23> k seems okay still?
687: [12:10:50] <micmania1> yep
688: [12:10:57] <micmania1> anybody used select2? http://ivaynberg.github.io/select2/
689: [12:11:36] <ocm> no, looks fancy though
690: [12:12:21] <micmania1> yep, deals with a big data well.
691: [12:19:37] <Pytrik> weta!
692: [12:23:22] * Guits quit (Read error: Connection reset by peer)
693: [12:26:29] * Sj0hn has joined #silverstripe
694: [12:30:50] <Pytrik> micmania1: looks just like that one that already exists from Harvest
695: [12:32:20] <Pytrik> micmania1: oh, Chosen, that's right. The same one already in use in the CMS (but has far more functions more inline with that select2 lib there)
696: [12:33:27] <Pytrik> I do like how Select2's version number is 3.4.5 though
697: [12:33:31] <Pytrik> select2345
698: [12:34:04] * micmania2 has joined #silverstripe
699: [12:34:32] <Pytrik> openbees: why though? there's already jsfiddle...
700: [12:34:51] <Pytrik> and the viper codepad that ss23 loves.
701: [12:35:12] <openbees> I mean where users can run SS codes with different versions of SS ;)
702: [12:35:22] <Pytrik> oh yeh
703: [12:35:32] <Pytrik> well... seems like a fair bit of a security risk.
704: [12:35:34] <ss23> :D
705: [12:35:36] <ss23> I do love it <3
706: [12:35:42] <Pytrik> but someone like ss23 could perhaps lick something up
707: [12:35:46] <ss23> Pytrik: Not more than what Viper already does
708: [12:35:54] <ss23> openbees: I have thought about it, but I'm not sure how best to do it
709: [12:36:09] * howardgrigg has joined #silverstripe
710: [12:36:17] <Pytrik> ss23: yeah but when pasting ss code you kinda need the framework on hand to run the code. Can't just execute it like regular php
711: [12:36:33] <Pytrik> ss23: what is viper url again?
712: [12:37:13] * howardgr_ has joined #silverstripe
713: [12:37:14] * howardgrigg quit (Read error: Connection reset by peer)
714: [12:37:26] <ss23> viper-7.com
715: [12:37:30] * micmania1 quit (Ping timeout: 244 seconds)
716: [12:37:37] <ss23> or codepad.viper-7.com
717: [12:37:47] <ss23> Pytrik: Someone could just include the Framework on Viper's codepad though I mean
718: [12:37:53] <ss23> more PHP code doesn't mean less secure :P
719: [12:38:17] <ss23> openbees: If you did want something, I would use viper-7's code/system as a base, could probably get something working :)
720: [12:38:29] <ss23> could make it agnostic, e.g. smyfony etc too
721: [12:41:38] * howardgr_ quit (Ping timeout: 244 seconds)
722: [12:41:57] <Pytrik> ss23: it's not the php code, it's the execution of it. Needs to be sandboxed, etc.
723: [12:42:13] <ss23> Yeah, in the same way Viper-7's code has to be
724: [12:42:23] <Pytrik> mmm
725: [12:42:31] <openbees> ss23 that could be a good start .. didn't know about this before .. let's see if we can make something out of it !
726: [12:42:37] <ss23> It's a solved problem anyway, Pytrik
727: [12:42:44] <Pytrik> it's not open source though is it?
728: [12:42:45] <ss23> :D
729: [12:42:47] <ss23> Pytrik: It is
730: [12:42:51] <ss23> It's built with SilverStripe too
731: [12:42:52] <ss23> ;)
732: [12:42:54] <ss23> sapphire, not cms
733: [12:42:57] <Pytrik> ss23: yeah, but I mean I've no idea on how to set stuff like that up
734: [12:43:02] <Pytrik> ss23: yeah I know.
735: [12:43:08] * kk_ quit (Quit: Page closed)
736: [12:43:12] <openbees> one of the greatest issue is using different versions of ss !
737: [12:43:21] <Pytrik> ss23: thus recommending you. Because you actually know sec.
738: [12:43:39] <ss23> :D
739: [12:43:48] <ss23> openbees: just include every version
740: [12:43:52] <ss23> And let user pick
741: [12:43:58] <ss23> viper-7 even lets you use any version of PHP
742: [12:43:59] <ss23> :D
743: [12:44:50] <Pytrik> even 5.2.9?
744: [12:45:31] * ss23 looks :O
745: [12:45:35] <ss23> nope
746: [12:45:36] <ss23> :(
747: [12:47:30] * Shrike_Finland quit (Quit: Leaving.)
748: [12:50:36] <Pytrik> ss23: so I can't test this excel export that worked fine last week but now just won't even an excel.
749: [12:51:55] <ss23> o.o
750: [12:51:56] <ss23> what?
751: [12:52:03] <Pytrik> emergencies.
752: [12:52:08] <ss23> idk man
753: [12:52:12] <ss23> i am going to bed :O
754: [12:52:13] <ss23> SOZ
755: [12:52:14] <Pytrik> code that worked fine last week makes a query and turns it into excel.
756: [12:52:20] <ss23> lol
757: [12:52:29] <Pytrik> this week it still gives you an excel doc, but it's simply just an empty plain text file.
758: [12:52:36] <ss23> XD
759: [12:52:36] <ss23> nice
760: [12:52:39] <ss23> anyway, zzz
761: [12:52:46] <Pytrik> but if you var_dump, all the data is there in an object and all sorts
762: [12:52:55] <ss23> errors?
763: [12:52:56] <Pytrik> IJDEK
764: [12:52:58] <Pytrik> ss23: nup
765: [12:53:23] <Pytrik> the close call comes back true http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.spreadsheet-excel-writer-workbook.close.php
766: [12:53:51] <Pytrik> var_dump the whole object directly before the close, all data there in various amounts of data structure
767: [12:53:52] <Pytrik> also
768: [12:54:01] <Pytrik> PHP on this server segfaults every time it goes to close.
769: [12:54:09] <Pytrik> $ php -v
770: [12:54:18] <Pytrik> tells me 5.2.9, then segfaults.
771: [12:54:33] <Pytrik> ss23: idk
772: [12:54:36] <Pytrik> what do?
773: [12:54:46] <Pytrik> you're the devops guy!
774: [12:55:04] <Pytrik> have good zeds :>
775: [12:55:55] <openbees> time for some Friday Beers ;)
776: [12:56:07] <Pytrik> I bought vodka last night.
777: [12:56:20] <openbees> have fun guys .. bye !
778: [12:56:30] <Pytrik> ciao, have a good weekend vikas :>
779: [12:56:57] <openbees> Pytrik .. haven't tried vodka since college days .. ! should try today I guess ... thanks for reminding :D
780: [12:57:04] <Pytrik> hahaha
781: [12:57:09] <Pytrik> danger danger
782: [12:57:13] <Pytrik> high voltage!
783: [13:01:09] * openbees quit (Quit: Leaving)
784: [13:04:07] * Shrike_Finland has joined #silverstripe
785: [13:05:42] * micmania2 is now known as micmania1
786: [13:11:52] * UndefinedOffset has joined #silverstripe
787: [13:15:07] * joelpittet has joined #silverstripe
788: [13:19:21] * joelpittet quit (Ping timeout: 244 seconds)
789: [13:19:24] <Pytrik> micmania1: either the water is ridiculously hard up here, or you've got some serious skunge issues :<
790: [13:23:27] <svandragt> Anyone using a PHP cache other than APC and has specified it as the fast_backend in the SS_Cache::add_backend?
791: [13:24:59] <svandragt> background: I've been using APC and it causes my webserver to lockup after about a week, due to numerous CLOSE_WAIT connections not getting cleaned up (https://bugs.php.net/bug.php?id=62543) doesn't have to be APC bug though
792: [13:28:14] * Shrike_Finland quit (Quit: Leaving.)
793: [13:34:06] <svandragt> memcached or xcache it looks like hmm
794: [13:37:07] * howardgrigg has joined #silverstripe
795: [13:38:08] * howardgr_ has joined #silverstripe
796: [13:38:08] * howardgrigg quit (Read error: Connection reset by peer)
797: [13:39:28] * Shrike_Finland has joined #silverstripe
798: [13:42:29] * howardgr_ quit (Ping timeout: 240 seconds)
799: [13:57:14] <ocm> how can I get the value of a joined table within a loop block?
800: [14:00:35] <ocm> hm, better question: How to proberly join 2 tables together?
801: [14:00:50] <ocm> ailReport::get()->filter('ParentID', $holder->ID)->sort('Date DESC')->limit($num, $start)->leftJoin("MailType", "\"Mailtype\".\"ID\" = \"1\"")
802: [14:01:07] <ocm> it gives me: Unknown column '1' in 'on clause'
803: [14:01:14] <ocm> though the 1 in the query isnt a column?!
804: [14:01:29] <svandragt> ocm: what if you do the join first and then the filter etc using dot syntax
805: [14:01:51] <ocm> dot syntax on the filter?
806: [14:02:29] <ocm> and the filtering should apply on the MailReport, not on the leftJoin table
807: [14:03:03] <svandragt> ocm: ah sorry no I do similar filters like your example
808: [14:03:27] <svandragt> ocm: you tried looking at the ->sql() see what's the resulting query?
809: [14:04:22] <ocm> I think it is useless, since the query cannot be executed?
810: [14:06:11] <Pytrik> ocm: '1', not "1"
811: [14:06:38] <Pytrik> '1' == string, "1" == column.
812: [14:06:48] <svandragt> ocm: it's the generated sql before it's executed ( * Returns the SQL query that will be used to get this DataList's records. Good for debugging. :-))
813: [14:08:48] <ocm> ah, I a gree
814: [14:08:52] <ocm> it is really handy
815: [14:09:39] <ocm> seems I dont understand how to leftjoin, haha
816: [14:10:02] <ocm> ... "MailReport_Live"."ID" = "SiteTree_Live"."ID" LEFT JOIN "MailType" ON "Mailtype"."ID" = '1' WHERE ("SiteTree_Live"."ParentID" = '6') ..
817: [14:10:21] <ocm> is part of the query
818: [14:10:35] <ocm> but I need the record from the table mailtype id, where mailtypeID = 1
819: [14:11:49] <svandragt> which record is equivalent to Mailtype.ID on the other side you need to join on that
820: [14:12:17] <svandragt> your datamodel maybe has a MailtypeID field?
821: [14:12:38] <ocm> hang on I will put some code on sspaste
822: [14:13:31] * ryan_b has joined #silverstripe
823: [14:13:33] <ryan_b> hey
824: [14:13:49] <ryan_b> can anybody help with rewriting URLs using a module I've created?
825: [14:14:40] <ryan_b> it does a string replace to swap out any AbsoluteBaseURLs with an S3 bucket URL - and I want to be able to allow people to drop this module straight into their site without having to edit their own page.php etc
826: [14:15:27] <ryan_b> but I can't figure out how to initiate the URL replace function on every page without adding it to page.php
827: [14:15:47] <ocm> svandragt, here are some codesnippets
828: [14:15:48] <ocm> http://sspaste.com/paste/show/5310969d6231c
829: [14:16:26] <ocm> simple said, a dashboard has reports, a report has a mailtype (by ID). The dashboard should be able to show a mailreport, including its mailtype-title
830: [14:16:44] <ryan_b> @ocm - is that for me?
831: [14:16:54] <ocm> no, its for svandragt, or rather said
832: [14:16:55] <ocm> for me
833: [14:17:00] <ocm> :P
834: [14:17:02] <ryan_b> ah
835: [14:26:31] * catcher has joined #silverstripe
836: [14:29:58] <ryan_b> so can anybody help me :(
837: [14:31:06] <ryan_b> this is my function in S3_Controller.php which sits in my module: http://pastebin.com/qpYFaGjE
838: [14:31:17] <ryan_b> i need that to handle eveyr page request so it rewrites all URLs
839: [14:31:38] <svandragt> ryan_b: I'm not sure ryan never done that before but there's a documentation page that I can't find at the moment about how requests are processed
840: [14:33:05] <svandragt> ryan_b: http://doc.silverstripe.org/framework/en/trunk/reference/execution-pipeline
841: [14:33:15] <svandragt> ryan_b: not going to help much
842: [14:33:22] <ryan_b> yeh i've looked through it, but it doesn't really explain how i can make mine fire on every page load wihtout hacking exisiting site files
843: [14:33:44] <svandragt> also Request processing under the Director page
844: [14:34:49] <svandragt> ryan_b: maybe http://api.silverstripe.org/master/class-RequestProcessor.html
845: [14:36:00] <ryan_b> hmmm no doesnt seem to trigger my function still
846: [14:38:12] * howardgrigg has joined #silverstripe
847: [14:38:53] * howardgr_ has joined #silverstripe
848: [14:38:54] * howardgrigg quit (Read error: Connection reset by peer)
849: [14:42:44] <micmania1> ryan_b: DataExtension->onAfterInit will fire on every page load
850: [14:42:47] <micmania1> without hacking files.
851: [14:43:03] * howardgr_ quit (Ping timeout: 244 seconds)
852: [14:43:04] <ryan_b> really??
853: [14:43:13] <micmania1> Check the docs for DataExtension
854: [14:49:47] <ryan_b> docs are missing for 2.4
855: [14:52:13] <Pytrik> Good god this country.
856: [14:52:35] <Pytrik> 500ml of rockstar or monster or relentless all over a pound.
857: [14:52:56] <Pytrik> a whole litre of non-descript 'energy drink' for 89p.
858: [14:53:13] <Pytrik> This afternoon is about to get VERY exciting.
859: [14:54:01] <micmania1> ryan_b: it was called DataObjectDecorator back then.
860: [14:54:10] <micmania1> or something
861: [14:54:18] <ryan_b> I just tried this...
862: [14:54:21] <Pytrik> indeed, DataObjectDecorator
863: [14:54:34] <ryan_b> http://pastebin.com/0E7s9DSV
864: [14:55:39] <ryan_b> bit clearer: http://pastebin.com/2mYG0teC
865: [14:55:45] <Pytrik> die('foo');
866: [14:55:46] <ryan_b> and it didnt echo or die
867: [14:55:47] <Pytrik> just say'n
868: [14:55:56] <ryan_b> ah thanks :)
869: [14:56:25] <Pytrik> but that's not really relevant to anything
870: [14:57:05] <micmania1> Page_controller should be Page_Controller
871: [14:59:13] <Pytrik> ryan_b: you're probably applying extension to wrong thing
872: [14:59:36] <Pytrik> should be to controller rather than site tree
873: [15:00:47] <Pytrik> and yeah, need to name things right.
874: [15:01:11] <ryan_b> ah!
875: [15:01:33] <ryan_b> IT WORKS!!!
876: [15:01:35] <ryan_b> thank you!
877: [15:01:47] <ryan_b> i've been at this for so long my brain has melted beyond spotting typos
878: [15:01:57] * Shrike_Finland quit (Quit: Leaving.)
879: [15:03:59] * joelpittet has joined #silverstripe
880: [15:08:01] * joelpittet quit (Ping timeout: 240 seconds)
881: [15:08:05] <ryan_b> ok not wuite there yet
882: [15:08:58] <ryan_b> i've got the init working, but the function dies now if it's not in Page.php
883: [15:08:59] <ryan_b> http://pastebin.com/a7HuisZi
884: [15:09:01] <ryan_b> any ideas?
885: [15:09:22] <ryan_b> error is: Fatal error: Call to undefined method Extension::handleRequest() in *****/s3/S3_Controller.php on line 32
886: [15:10:01] * howardgrigg has joined #silverstripe
887: [15:10:50] * howardgr_ has joined #silverstripe
888: [15:10:51] * howardgrigg quit (Read error: Connection reset by peer)
889: [15:15:05] * howardgr_ quit (Ping timeout: 244 seconds)
890: [15:16:26] * UndefinedOffset quit (Quit: Leaving.)
891: [15:17:11] <micmania1> ryan_b: You have to use $this->owner to reference the class its extending.
892: [15:21:13] <ryan_b> yeh i thought that...
893: [15:21:19] <ryan_b> couldnt seem to get it going even with that
894: [15:21:21] <ryan_b> where should ia dd it?
895: [15:21:55] <micmania1> S3_Controller.php on line 32
896: [15:23:15] <ryan_b> to what bit?
897: [15:23:33] <ryan_b> i tried: $response = $this->owner->handleRequest($request, $model);
898: [15:23:42] <ryan_b> undefined variable: $request
899: [15:27:13] <micmania1> You need to set request, however the controller won't have prepared the request in onBeforeInit
900: [15:28:37] <ryan_b> hmmm
901: [15:28:49] <ryan_b> would onAfterInit work?
902: [15:29:04] <ryan_b> or is that too late
903: [15:30:04] <micmania1> possibly. You'd have to try, but don't use $request
904: [15:30:10] <ryan_b> what should i use?
905: [15:30:13] <micmania1> You'll need $this->owner->request
906: [15:31:40] <ryan_b> in this part? public function postRequest(SS_HTTPRequest $request, DataModel $model = null) {
907: [15:31:48] <ryan_b> or in $response = $this->owner->handleRequest($request, $model);? or both?
908: [15:34:37] * UndefinedOffset has joined #silverstripe
909: [15:34:40] <svandragt> $this->postRequest($this->owner-->request)
910: [15:34:43] <svandragt> line 7
911: [15:34:49] <ryan_b> hmm
912: [15:35:07] <svandragt> on line 10 $request is null because you haven't provided one, right?
913: [15:35:24] <ryan_b> i think so
914: [15:38:22] <ryan_b> OK i've changed line 7
915: [15:38:28] <ryan_b> seems to be stuck in a load loop now...
916: [15:38:30] <ryan_b> loading..
917: [15:39:55] <catcher> ryan_b, are you trying use S3 for assets?
918: [15:40:21] <ryan_b> no this is a 2.4 site
919: [15:40:30] <ryan_b> why, does ss3 have S3 assets already?
920: [15:40:41] <catcher> well, this exists: https://github.com/nyeholt/silverstripe-cdncontent
921: [15:41:00] <catcher> I haven't used it personally, but it looks like a lot of good work went into it
922: [15:41:27] <ryan_b> i've got a feeling that doesnt; completely replace the assets file though
923: [15:41:41] <ryan_b> i need to have no assets folder on the server, for auto scaling
924: [15:41:55] <ryan_b> so i've written a module that puts all assets on S3
925: [15:45:33] <catcher> hmm.. the Overview says "Store assets from Files & Images in a specified CDN", may be worth checking into
926: [15:47:30] <ocm> who is running sspaste.org?
927: [15:47:42] <ocm> it seems collecting spam has become its second task to fulfill
928: [15:47:48] <ocm> http://sspaste.com/paste/show/5310969d6231c as you can see there
929: [15:48:18] <ryan_b> yeh i dont think it fully replaces assets though
930: [15:48:22] <ryan_b> and doesnt cover exisitng data
931: [15:48:31] <ryan_b> ok that last attempt as just caused memory max
932: [15:48:38] <ryan_b> so i guess it looped somehow?
933: [15:52:45] <catcher> ryan_b, why did you opt for an extension?
934: [15:52:59] <catcher> If it's applied site-wide, you probably won't be decorating more classes with it, right?
935: [15:53:43] <ryan_b> yeh I just needed to find a way to trigger this rewrite on every page
936: [15:53:48] <ryan_b> and this semeed ot be the only way?
937: [15:54:07] <ocm> hm, should it give an error doing $Date->Format('d-m-y'); ?
938: [15:55:13] <catcher> ryan_b, you could put it in your Page class instead, provided you don't have others that extend SiteTree directly
939: [15:57:16] <ryan_b> well yes, but that means adding it into the site, i wanted to try and keep it in a module
940: [15:57:22] <ryan_b> if possible
941: [15:57:41] <catcher> ah, gotcha
942: [16:02:23] <catcher> ryan_b, looks like you're calling handle_request in a loop
943: [16:02:35] <catcher> onBeforeInit is just an extension for handleRequest
944: [16:02:40] <Pytrik> handleRequest() ?
945: [16:03:13] <catcher> that's the one :)
946: [16:03:40] <catcher> I think your decorator has access to the owner's response directly
947: [16:04:09] <ryan_b> ok
948: [16:04:17] <ryan_b> so...any suggestions around this?
949: [16:06:26] <catcher> ryan_b, try this for kicks: http://pastebin.com/Kj5HPSZD
950: [16:06:34] <ryan_b> ok
951: [16:07:00] * Sj0hn quit (Read error: Connection reset by peer)
952: [16:07:16] <catcher> I think it'll solve your loop problem, but I'm guessing nothing will happen. Body isn't set until *after* onAfterInit
953: [16:07:39] <ryan_b> yep, nothign happened
954: [16:07:41] <ryan_b> but no loop now
955: [16:07:47] <catcher> indeed
956: [16:08:22] <catcher> there's no extension hook in handleRequest() after body is set.
957: [16:09:00] <ryan_b> $response is null
958: [16:09:02] <ryan_b> at this poin
959: [16:09:08] <catcher> right, as expected
960: [16:09:14] <catcher> So I think you're stuck with UseCustomClass unless you can convince chillu, etc. to add another hook after body is actually set.
961: [16:09:16] <catcher> Or...
962: [16:11:02] * howardgrigg has joined #silverstripe
963: [16:11:55] * howardgr_ has joined #silverstripe
964: [16:11:56] * howardgrigg quit (Read error: Connection reset by peer)
965: [16:13:40] <ryan_b> or?
966: [16:13:43] <Pytrik> or.
967: [16:14:12] <Pytrik> what the hell are we talking about now?
968: [16:14:37] <Pytrik> there's too much hickledy pickledy log to read. I'm in a hurry, summarise your issue please.
969: [16:15:04] <catcher> Pytrik, modifying response body somewhere at or below handleRequest
970: [16:15:12] <Pytrik> why after handle request?
971: [16:15:22] <catcher> Pytrik, bc handleRequest() sets the body
972: [16:15:34] <Pytrik> nah, don't be silly.
973: [16:15:54] <catcher> there are 2 extensions in handleRequest, but both are too early.
974: [16:16:03] <Pytrik> what version?
975: [16:16:03] * howardgr_ quit (Ping timeout: 244 seconds)
976: [16:16:10] <catcher> I told him he can override handleRequest in Page, but he wants to make it a module.
977: [16:16:22] <Pytrik> what version?
978: [16:16:30] <catcher> He's in 2.4, I'm looking at 3.1
979: [16:16:39] <ryan_b> Hi Pytrick
980: [16:16:41] <Pytrik> 3.1 is easy
981: [16:16:47] <Pytrik> well... 'easy'.
982: [16:16:53] <ryan_b> SS2.4.7 -> here's my snippet: http://pastebin.com/cCwEu9Xn
983: [16:17:12] <ryan_b> The reaosn im doing this in anything other than page.php, is that I want it to be modular
984: [16:17:30] <ryan_b> so it can be dropped into any ss2.4 site and will auto update all body URLs to point to S3
985: [16:23:01] <ryan_b> this may be a stupid question, but can i extend page instead?
986: [16:24:28] * ARNHOE quit ()
987: [16:28:22] <Pytrik> yes you can, but you'd need to update all pages, so it's not a drop in thing as you want.
988: [16:28:33] * Zri quit (Ping timeout: 245 seconds)
989: [16:29:08] <ryan_b> how do you mean?
990: [16:29:43] <Pytrik> well if you extend page, then you've got a new page type that all your pages will NOT be.
991: [16:29:57] <Pytrik> ie, ok if you're making a new site, but useless for existingones.
992: [16:30:56] <Pytrik> hack ContentController to see what your return value is set to. ie, SS_HttpResponse or a string.
993: [16:31:07] <ryan_b> iits OK, i've handled that in my module
994: [16:31:23] <ryan_b> it grabs all assets, and writes them to S3
995: [16:31:34] <catcher> How about decorating Page? You'd be dependent on a normal cms install, but maybe better than the alternative
996: [16:31:52] <micmania1> extend ContentController, overwrite render(). Make Page_Controller extend your controller.
997: [16:31:58] <Pytrik> nah
998: [16:32:22] <Pytrik> I was going to suggest what catcher says, but didn't because not sure how they work. but test it, it is probably the best way.
999: [16:32:34] <catcher> micmania1, CMS uploads wouldn't be handled that way
1000: [16:32:38] <Pytrik> because Content isn't an actual function, create a function Content on the DataObjectDecorator
1001: [16:33:02] <Pytrik> if that calls instead of __get('Content') you're in the money.
1002: [16:33:10] <ryan_b> OK you've lost me
1003: [16:33:13] <micmania1> oh, I thought he'd already done that part.
1004: [16:33:15] <Pytrik> fuck sakes.
1005: [16:33:49] <catcher> micmania1, you may be right, I didn't check logs. ryan_b, is that the case?
1006: [16:34:01] <Pytrik> public function Content() { return preg_replace('match', 'replace', $this->owner->dbObject('Content')); }
1007: [16:34:34] <Pytrik> test to see if it will work by adding to the decorator: public function Content(){ return 'fuck yes'; }
1008: [16:34:45] <Pytrik> if all your pages suddenly say Fuck yes, then you're in the money.
1009: [16:35:00] <ryan_b> i've basically hacked Image.php, File.php and a few others, and put them into my S3 module - so all uploads go to S3 and all URLs are saved in the DB as S3 URLs, resampling etc all goes to S3 too. all works splendid. even shitty tiny_mce sidebar uploader gos to S3 and works fine. BUT - tiny_mce saves URLs relatively in the DB. so any EXISITNG site will be in the shit, so i wanna add this rewrite fallback in too, so any old DB ent
1010: [16:35:16] <Pytrik> oh, so you're asking how to make a module after having hacked the shit out of core files?
1011: [16:35:24] <Pytrik> I just don't... good luck.
1012: [16:35:29] <ryan_b> unfotunately, yes
1013: [16:35:41] <ryan_b> but only 5 core files :)
1014: [16:35:45] <ryan_b> and very minor changes really
1015: [16:35:56] <Pytrik> well the answer is obvioulsy hack the shit out of more core files and good luck with that.
1016: [16:36:07] <Pytrik> if you don't mind that, then that's what you do.
1017: [16:36:08] <ryan_b> but until i can work out how to override them, i have to just have them in my module and ask the user to rename/delete the core ones for now
1018: [16:36:14] <catcher> Or a bunch of UseCustomClasses.
1019: [16:36:24] <catcher> (much better than hacking core)
1020: [16:36:26] <Pytrik> or not, because useCustomClass in 2.4 is a pig
1021: [16:36:31] <ryan_b> yeh I tried UseCustomClasses, but it didnt' seem to like it
1022: [16:36:34] <catcher> ?
1023: [16:36:46] <Pytrik> catcher: stop answering for 3.0 when he's using 2.4
1024: [16:36:55] <ryan_b> and you wouldnt believe how badly integrated tiny_mce is....that shit goes deep
1025: [16:36:58] <catcher> Pytrik, what's wrong with UCC in 2.4?
1026: [16:37:03] <ryan_b> and does direct DB writes too.
1027: [16:37:18] <Pytrik> ryan_b: news to me.
1028: [16:38:03] * DimiStripe has joined #silverstripe
1029: [16:39:07] <DimiStripe> Guys need help fixing HTMLEditorField for the frontend
1030: [16:39:12] <DimiStripe> I have followed the http://www.silverstripe.org/form-questions/show/36948
1031: [16:39:21] <DimiStripe> implementing FrontendHtmlEditorField
1032: [16:39:28] <DimiStripe> but it submits empty fields :(
1033: [16:39:42] <DimiStripe> Ay help on fixing that or enabling it form front end ?
1034: [16:39:47] <DimiStripe> (properly)
1035: [16:39:55] <ryan_b> I tried that 2 years ago in SS2.4 and it was a nigtmare
1036: [16:40:03] <Pytrik> if you want an editor on the front end, pays to not use the backend class at all
1037: [16:40:20] <DimiStripe> Yes, its for 3.1.1
1038: [16:40:28] <DimiStripe> but which filed i can use
1039: [16:40:28] <ryan_b> Pytrik: Fatal error: Cannot redeclare S3_Controller::Content() in ***/s3/S3_Controller.php on line 28
1040: [16:40:29] <Pytrik> rule of thumb: if you're touching tinymce, you're in for a whorld of hurt,.
1041: [16:40:45] <Pytrik> ryan_b: I don't even know what you're doing.
1042: [16:40:47] <DimiStripe> i basically need a Bold Italic UL options - thats it
1043: [16:40:55] <Pytrik> but you're doing it wrong.
1044: [16:41:20] <ryan_b> I decorated Page
1045: [16:41:34] <Pytrik> then what the hell is S3_Controller?
1046: [16:41:43] <ryan_b> my own class
1047: [16:41:54] <ryan_b> all that's in it is the paste i sent earlier
1048: [16:41:56] <Pytrik> pro tip: use sensible names.
1049: [16:42:09] <ryan_b> well yeh
1050: [16:42:10] <Pytrik> mantinence gets much easier.
1051: [16:42:14] <ryan_b> but i WAS doing it as a controller
1052: [16:42:19] <ryan_b> now im doing it as a decorator
1053: [16:42:27] <Pytrik> so you should have renamed it!
1054: [16:42:31] <Pytrik> that's just confusing.
1055: [16:42:35] <ryan_b> a i've literally juts done it
1056: [16:42:54] <ryan_b> but the point is, i cant redeclare Content
1057: [16:42:57] <svandragt> Can I force the database query to run at some point in the code? like flush() but for the database?
1058: [16:43:14] <Pytrik> ryan_b: paste your latest thing.
1059: [16:43:25] <ryan_b> class S3_Controller extends DataObjectDecorator { // handle static links for CDN public function Content() { return preg_replace('match', 'replace', $this->owner->dbObject('Content')); }
1060: [16:43:26] <Pytrik> but the error is pretty self explanitory.
1061: [16:43:34] <svandragt> I'm using datalists
1062: [16:43:37] <Pytrik> did... did you seriously just
1063: [16:43:42] <ryan_b> yes - i di
1064: [16:43:43] <Pytrik> copy and paste my pseudo code?
1065: [16:43:44] <ryan_b> did*
1066: [16:43:56] <Pytrik> are you a designer?
1067: [16:44:14] <ryan_b> it was a combination of not knowing better, and also helping you appreciate how bad i am at this
1068: [16:44:29] <Pytrik> I'm basing my answers on you being a developer comfortable with php and classes.
1069: [16:44:43] <Pytrik> so if you're not, it's best to announce this when you ask the question.
1070: [16:44:56] <ryan_b> i know enough to know the onlu bit that mattered was Content()
1071: [16:45:09] <ryan_b> i wanted to see if i could use that in a decorator first
1072: [16:45:11] <ryan_b> it seems i cannot
1073: [16:45:14] <Pytrik> yeah, you've got 2 definitions of function Content()
1074: [16:45:17] <Pytrik> get rid of one
1075: [16:45:20] <Pytrik> basically.
1076: [16:45:27] <ryan_b> ok
1077: [16:45:52] <Pytrik> if you change the remaining one to be die('success'); at the beginning of it, and then your page dies with the text 'success', then you're winning.
1078: [16:45:56] <ryan_b> cool
1079: [16:45:59] <Pytrik> if not, then you're back to hacking core classes.
1080: [16:46:23] <ryan_b> ok it died
1081: [16:46:26] <ryan_b> so we may be in luck
1082: [16:46:28] <Pytrik> then you're in luck.
1083: [16:46:41] <Pytrik> so view and learn to http://php.net/preg_replace
1084: [16:47:01] <ryan_b> i have that bit done i think...
1085: [16:47:05] <ryan_b> but in $body
1086: [16:47:16] <Pytrik> the string to replace is $this->owner->getField('Content');
1087: [16:47:28] <Pytrik> yeah, well no one knows what $body is.
1088: [16:47:51] <Pytrik> I'm trying to explain a clean way to do what you may have already hacked into the system.
1089: [16:47:55] <ryan_b> sorry it was in my paste earlier
1090: [16:47:58] <ryan_b> think you missed it
1091: [16:48:04] <Pytrik> to answer your question about a drop in and work solution
1092: [16:48:14] <Pytrik> that is how.
1093: [16:48:25] <Pytrik> Content field contains all the body text where your links are.
1094: [16:48:31] <Pytrik> so search and replace.
1095: [16:49:23] <ryan_b> here's what i had before in page.php: http://pastebin.com/UEs3EHAm
1096: [16:49:35] <Pytrik> then you don't need to go damaging core stuff, or whatnot.
1097: [16:50:02] <Pytrik> yeah well
1098: [16:50:06] <Pytrik> static is pointless.
1099: [16:50:12] <ryan_b> the reason i need to hack the core, is because this module allows to have NO Assets folder at all. if i JUST rewrite URLs on the fly, resampling wouldn twork unfortuantely
1100: [16:50:50] <Pytrik> well
1101: [16:51:01] <Pytrik> then you've asked the wrong question.
1102: [16:51:13] <Pytrik> I'm afraid I'm not sure how to help you.
1103: [16:51:20] <ryan_b> i'm sure there are better ways of doing it, but i searched high and low and it seemed nobody had offered a solution for using S3 as an assets fodler out of shitty s3 fuse mounting - and im not going down that route, so i thought id try writing one
1104: [16:51:33] <Pytrik> right
1105: [16:51:48] <Pytrik> well you'd have to see if Image is compatible with useCustomClass
1106: [16:51:50] <ryan_b> this re-write bit it only a fallback for peopel who alreayd have a site live with a DB full of tiny_mce links that point to /assets...
1107: [16:51:59] <Pytrik> or has any hooks in it to allow modification through decorators
1108: [16:52:22] <ryan_b> this re-write bit it only a fallback for peopel who alreayd have a site live with a DB full of tiny_mce links that point to /assets...HTMLEditorField...
1109: [16:52:39] <ryan_b> i did try extending and such, but there were so many hurdles i decided to hack
1110: [16:54:06] <Pytrik> that's almost unanimously a terrible idea.
1111: [16:54:10] * ryan_b quit (Quit: Page closed)
1112: [16:54:21] <Pytrik> good luck chappy!
1113: [16:54:23] * ryan_b has joined #silverstripe
1114: [16:54:27] <Pytrik> I feel sorry for him :(
1115: [16:54:28] <ryan_b> sorry got DC
1116: [16:54:41] <catcher> ryan_b, reverse proxy server!
1117: [16:54:52] <Pytrik> catcher: what are you even what
1118: [16:55:17] <ryan_b> huh?
1119: [16:55:18] <ryan_b> anyway
1120: [16:55:19] <catcher> Let SS be SS, let the server rewrite the URLs!
1121: [16:55:20] <Pytrik> I think you just said 'use irssi and screen on an remote box'
1122: [16:55:31] <Pytrik> yeah, or that, lol.
1123: [16:55:39] <Pytrik> that's thinking outside the box
1124: [16:55:43] <Pytrik> well don son
1125: [16:55:47] <Pytrik> done*
1126: [16:55:48] <catcher> <-- this guy
1127: [16:56:01] <Pytrik> THIS guy!
1128: [16:56:07] <ryan_b> just to clarify.... if you know of a better was of doing this, please do let me know!
1129: [16:56:08] <Pytrik> this catcher guy...#
1130: [16:56:21] <Pytrik> ryan_b: well I'm still not even sure what it is you're doing.
1131: [16:56:28] <ryan_b> ok i'll share the module
1132: [16:56:30] <Pytrik> you've told me about 6 different things so far.
1133: [16:56:30] <ryan_b> but dont laugh
1134: [16:56:39] <ryan_b> this is the first module ive ever attempted
1135: [16:56:39] <Pytrik> I won't, it's home time.
1136: [16:56:43] <ryan_b> and as you rightly pointed out, im a designer
1137: [16:56:49] <Pytrik> ohyou are?
1138: [16:56:51] <Pytrik> wicked.
1139: [16:56:53] <ryan_b> prety much
1140: [16:57:00] <ryan_b> more of a jack of all, master of none
1141: [16:57:04] <Pytrik> hey well at least you're giving it a go!
1142: [16:57:06] <Pytrik> best way to learn.
1143: [16:57:15] <Pytrik> just follow the golden rules.
1144: [16:57:36] <Pytrik> don't hack core code :P
1145: [16:57:50] <Pytrik> keep things modular to avoid maintenance headaches.
1146: [16:58:23] <Pytrik> and don't be this guy: https://github.com/silverstripe/silverstripe-framework/pull/2857
1147: [17:08:17] <ryan_b> OK
1148: [17:08:18] <ryan_b> https://github.com/clickheredigital/silverstripe-s3-assets
1149: [17:08:28] <ryan_b> go easy on me
1150: [17:11:40] * howardgrigg has joined #silverstripe
1151: [17:12:01] <kinglozzer> Pytrik: I was laughing for hours about that, poor guy :P
1152: [17:12:10] * howardgrigg quit (Read error: Connection reset by peer)
1153: [17:12:42] * howardgrigg has joined #silverstripe
1154: [17:12:44] <kinglozzer> WEEKEND
1155: [17:12:45] * kinglozzer quit ()
1156: [17:15:45] * Azure quit (Quit: My MBP went to sleep.)
1157: [17:17:00] * howardgrigg quit (Ping timeout: 241 seconds)
1158: [17:17:32] <Pytrik> Go home ryan_b, have a good weekend :>
1159: [17:17:48] * Azure has joined #silverstripe
1160: [17:18:15] <Pytrik> ryan_b: also, go to the SS London meetup.
1161: [17:18:33] <Pytrik> meet some smart folks, have a good time :>
1162: [17:18:52] <Pytrik> I think it's listed on meetup.com, wednesday 19 march
1163: [17:19:12] <Pytrik> 6:30pm, in some bar/resturant thing somewhere.
1164: [17:19:17] <ryan_b> haha is that your way of telling me to give up on the module
1165: [17:19:18] <Pytrik> I dunno, you'll find it :>
1166: [17:19:34] <ryan_b> I'm moving away from SS tbh
1167: [17:19:56] <ryan_b> im just writing htis module to be able to easily migrate our old client sites into AWS beanstalk and allow auto scalinf
1168: [17:20:03] <ryan_b> we wont be using SS on future sites
1169: [17:20:05] <Pytrik> but why
1170: [17:20:24] <Pytrik> and what are you moving to?
1171: [17:20:52] <ryan_b> why - because it's let us down in a few ways over the last 4 years
1172: [17:21:02] <Pytrik> that's... not very descript :<
1173: [17:21:10] <ryan_b> ha sorry lots of reasons
1174: [17:21:12] <Pytrik> do you have some kind of examples?
1175: [17:21:18] <ryan_b> but one being how difficult it's been to scale it
1176: [17:21:25] <Pytrik> scale in which way?
1177: [17:21:40] <ryan_b> horizontally
1178: [17:21:40] <Pytrik> size of data? traffic? extend with S3 bucket type stuff?
1179: [17:21:45] <ryan_b> yeh
1180: [17:21:50] <Pytrik> horizontally... :<
1181: [17:21:56] <ryan_b> assets are WAY too healiy tied into SS
1182: [17:22:07] <ryan_b> we use something called mojag now
1183: [17:22:11] <ryan_b> completel SaaS based
1184: [17:22:18] <ryan_b> and outputs all content as flat HTML
1185: [17:22:27] <ryan_b> so it couldn't be beaten on speed and optimisation
1186: [17:22:34] <ryan_b> rest based CMS
1187: [17:22:52] <Pytrik> mojang are the chaps who made minecraft.
1188: [17:23:05] <ryan_b> mojag <- no "n:
1189: [17:24:01] <Pytrik> Google can't find it :<
1190: [17:24:14] * OxFF1 has joined #silverstripe
1191: [17:25:06] <Pytrik> ryan_b: do you have a link?
1192: [17:26:12] <ryan_b> its fairly new, and not very public, site is crappy, but the product is great
1193: [17:26:13] <ryan_b> http://mojag.co/
1194: [17:27:17] <Pytrik> cool thanks, I'll check it out.
1195: [17:27:36] <Pytrik> have a good weekend
1196: [17:27:38] * Pytrik quit ()
1197: [17:28:34] <ryan_b> cheers, you too
1198: [17:28:47] <ryan_b> and take a look at that repo when you can!
1199: [17:28:56] <ryan_b> would love someone with decent skills to improve it
1200: [17:34:58] * svandragt1 has joined #silverstripe
1201: [17:35:13] * ryan_b quit (Ping timeout: 245 seconds)
1202: [17:42:44] * OxFF1 quit (*.net *.split)
1203: [17:42:45] * UndefinedOffset quit (*.net *.split)
1204: [17:42:49] * Azure quit (*.net *.split)
1205: [17:42:53] * svandragt quit (*.net *.split)
1206: [17:42:53] * mrzero quit (*.net *.split)
1207: [17:42:53] * guzzlefry quit (*.net *.split)
1208: [17:46:28] * joelpittet has joined #silverstripe
1209: [17:47:25] * joelpittet quit (Client Quit)
1210: [17:50:43] * guzzlefry has joined #silverstripe
1211: [17:50:43] * mrzero has joined #silverstripe
1212: [17:51:31] * guzzlefry quit (Client Quit)
1213: [17:52:05] * guzzlefry has joined #silverstripe
1214: [17:52:26] * Azure has joined #silverstripe
1215: [17:52:52] * UndefinedOffset has joined #silverstripe
1216: [17:53:04] * Raymondo quit (Ping timeout: 245 seconds)
1217: [17:55:47] * Raymondo has joined #silverstripe
1218: [17:59:03] * Azure quit (Ping timeout: 240 seconds)
1219: [18:00:59] * UndefinedOffset1 has joined #silverstripe
1220: [18:00:59] * UndefinedOffset quit (Disconnected by services)
1221: [18:12:25] * mrzero quit (Ping timeout: 240 seconds)
1222: [18:21:18] * mrzero has joined #silverstripe
1223: [18:21:18] * mrzero quit (Changing host)
1224: [18:21:18] * mrzero has joined #silverstripe
1225: [18:21:51] * SMaction has joined #silverstripe
1226: [18:24:28] <SMaction> I am using silverstripe 2.4 On a sub page I have links to an anchor on the same page. I used the menus to create the link. If I chose "anchor on this page" , when I try to use it silverstripe goes to the home page and looks for the anchor as opposed to the sub page I was on. If I use a "page on this site" and fill in the anchor manually, nothing happens when I click it (the link looks
1227: [18:24:28] <SMaction> correct when I hover over it in my browser). SSViewer::dontRewriteHashlinks(); does not seem to be solving the problem for me.
1228: [18:34:11] <catcher> SMaction, what does the generated URL look like?
1229: [18:38:26] * UncleCheese_ has joined #silverstripe
1230: [19:02:39] <SMaction> catcher it is the home page of the site (instead of the page I am on) with the anchor correctly appended.
1231: [19:02:56] * Azure has joined #silverstripe
1232: [19:05:11] * gelignite has joined #silverstripe
1233: [19:05:22] <catcher> SMaction, how's it look when you view the page source with the "page on this site" method?
1234: [19:06:35] * UncleCheese_ quit (Quit: UncleCheese_)
1235: [19:10:08] <SMaction> catcher I don't know what you mean
1236: [19:10:36] <catcher> your browser will let you view page source so you can see exactly what's generated.
1237: [19:11:24] <SMaction> got it.
1238: [19:16:02] * SightUnseen has joined #silverstripe
1239: [19:20:25] * UncleCheese_ has joined #silverstripe
1240: [19:20:42] <SMaction> catcher here is the pertinent snippet http://pastebin.com/m3LrtFWC
1241: [19:20:47] * UncleCheese_ quit (Client Quit)
1242: [19:24:51] <catcher> SMaction, try renaming the named anchor so it doesn't have spaces, and update the reference.
1243: [19:25:33] * SightUnseen has left #silverstripe
1244: [19:27:59] <SMaction> catcher, changed on to test -- same problem
1245: [19:28:19] <SMaction> *one
1246: [19:29:48] <catcher> SMaction, the problem of it going to the homepage, or nothing happens when you click?
1247: [19:30:26] <SMaction> going to the homepage
1248: [19:31:13] <catcher> SMaction, use the "page on this site method"
1249: [19:31:43] <SMaction> will do
1250: [20:03:51] * micmania2 has joined #silverstripe
1251: [20:03:58] * micmania2 is now known as micmania1
1252: [20:14:06] * Shrike_Finland has joined #silverstripe
1253: [20:28:16] <SMaction> catcher,it worked I am going to try and reproduce on other links. Thank you.
1254: [20:28:28] <catcher> SMaction, np
1255: [20:29:04] * SphereSilverNL has joined #silverstripe
1256: [20:39:40] * UndefinedOffset1 is now known as UndefinedOffset
1257: [20:46:02] * BPower has joined #silverstripe
1258: [20:46:32] * MusicMann has joined #silverstripe
1259: [20:47:17] * BPower quit (Remote host closed the connection)
1260: [20:47:43] * BPower has joined #silverstripe
1261: [20:47:44] * willr has joined #silverstripe
1262: [20:48:48] <MusicMann> Hello SilverStripe world! :)
1263: [20:49:00] * MusicMann is new to IRC.
1264: [20:49:22] <BPower> Welcome, MusicMann!
1265: [20:49:35] <BPower> :)
1266: [20:49:53] <BPower> Need any help?
1267: [20:50:26] <catcher> hey hey
1268: [20:59:40] <SphereSilverNL> hey MusicMann
1269: [20:59:51] <SphereSilverNL> From the name, rough guess, German?
1270: [21:01:16] <BPower> MusicMann is actually my buddy :) I'm helping him get connected with the SS crew!
1271: [21:01:18] * NewLinuxUser has joined #silverstripe
1272: [21:01:38] <SphereSilverNL> You want to connect to the crew?
1273: [21:01:41] <SphereSilverNL> Why?
1274: [21:01:55] <BPower> ... SS crew = this channel
1275: [21:02:01] <BPower> e.g. you
1276: [21:02:03] <BPower> :)
1277: [21:02:21] <SphereSilverNL> Call us "The Stripers" :P
1278: [21:02:28] <BPower> HAHA
1279: [21:02:52] <SphereSilverNL> My android app is crashing and I don't know why.
1280: [21:03:21] <SphereSilverNL> logging gives me nothing useful btw :P
1281: [21:03:28] <BPower> He's got some really weird error in the admin panel -- I can't reproduce it. Basically the WYSIWYG editor doesn't display because there JS that's supposed to load is throwing a 500 error
1282: [21:04:02] <MusicMann> Hi @SphereSilverNL. No, but reading it, I'd guess the same :)
1283: [21:04:19] <SphereSilverNL> Dutch ;)
1284: [21:04:19] <BPower> SphereSilverNL: Seems to be a common theme right now. MusicMann's error logs weren't showing anything either.
1285: [21:04:41] <MusicMann> lol
1286: [21:04:49] <SphereSilverNL> Could you make a sspaste for this?
1287: [21:05:14] <SphereSilverNL> It's hard to give you any definitive option without knowing what it's actually about
1288: [21:05:22] <SphereSilverNL> http://sspaste.com
1289: [21:06:25] * speak_ has joined #silverstripe
1290: [21:06:30] <SphereSilverNL> And you do know a javascript error is user-side?
1291: [21:06:39] <speak_> Yo guys, anyone feeling fresh on their 2.4 joins? ;)
1292: [21:07:09] <SphereSilverNL> I'm feeling more like I've been hit by a train
1293: [21:07:28] <speak_> you should maybe go see a doctor
1294: [21:07:49] <SphereSilverNL> I'm not bleeding yet :)
1295: [21:07:54] <SphereSilverNL> I think
1296: [21:08:19] * SphereSilverNL checks all his bodyparts
1297: [21:08:28] <SphereSilverNL> Nope, no blood yet :D
1298: [21:10:18] <MusicMann> Yep yep. Here's the main error I'm getting on the CMS side. It's keeping the WYSIWYG from loading along with the inability to save & publish.
1299: [21:10:20] <MusicMann> http://sspaste.com/paste/show/5310f799d5094
1300: [21:11:01] <SphereSilverNL> Seems TinyMCE isn't installed fully
1301: [21:12:21] <SphereSilverNL> I'll have to leave you in the hands of these other idiots, Gotta go, no more "me" time. Sorry.
1302: [21:12:24] * SphereSilverNL quit (Quit: bye)
1303: [21:15:21] * howardgrigg has joined #silverstripe
1304: [21:16:13] * howardgr_ has joined #silverstripe
1305: [21:16:14] * howardgrigg quit (Read error: Connection reset by peer)
1306: [21:17:22] * Shrike_Finland quit (Quit: Leaving.)
1307: [21:18:10] <catcher> MusicMann, which version of SS?
1308: [21:20:25] * howardgr_ quit (Ping timeout: 240 seconds)
1309: [21:24:54] <MusicMann> I'm using v3.1
1310: [21:25:34] <catcher> MusicMann, which 3.1? 3.1.2 stable?
1311: [21:26:04] <catcher> MusicMann, my first two steps would be ?flush=all, and then replace cms/ and framework/ with fresh copies
1312: [21:42:23] <speak_> Yo. 2.4 joins. `Blog` and `BlogCategory`. User inputs a category. Return all `Blog` that have a matching Category - 10pm on a Friday and I am failing.
1313: [21:44:10] <MusicMann> catcher: Thank you. I'm still getting used to SS. My friend installed it. For future reference, is there an easy way to check the version?
1314: [21:44:54] <catcher> MusicMann, np! Ideally, you can hover over the SS logo in the top-left of the CMS.
1315: [21:45:07] <MusicMann> Ahh!
1316: [21:45:23] <catcher> speak_, what's the relationship?
1317: [21:45:48] <catcher> assuming many_many, with a join
1318: [21:45:55] <speak_> Category has_many Blog | Blog has_one Category
1319: [21:46:01] <catcher> ah
1320: [21:46:45] <catcher> you're providing a CategoryID in your query?
1321: [21:47:31] <speak_> so it's an action on the controller so they'll be able to go to: category/{Title}
1322: [21:47:41] <speak_> so the only information I have to work with is the Category.Title
1323: [21:48:50] * UndefinedOffset quit (Read error: Connection reset by peer)
1324: [21:49:03] <catcher> speak_, are you trying to stick with the ORM?
1325: [21:49:17] <catcher> I can't remember what works with dot notation and what doesn't in 2.4
1326: [21:49:25] <simon_w> catcher, nothing
1327: [21:49:36] <catcher> haha, well there you have it
1328: [21:49:59] <simon_w> speak_, you need to write the entire JOIN clause yourself and pass it to DataObject::get()
1329: [21:53:16] * SMaction quit (Ping timeout: 240 seconds)
1330: [21:53:17] * willr quit (Quit: willr)
1331: [21:53:17] * mrzero quit (Ping timeout: 240 seconds)
1332: [21:53:29] * DesignerX has joined #silverstripe
1333: [21:53:36] <speak_> :( That explains... a lot.
1334: [21:53:46] <speak_> Bouncing between 3.0 and 2.4 is bad for business.
1335: [21:53:50] * NewLinuxUser quit (Read error: Connection reset by peer)
1336: [21:53:58] * SMaction has joined #silverstripe
1337: [21:56:23] <micmania1> HELLO
1338: [21:58:45] <simon_w> shhhhhhh
1339: [22:02:20] * speak_2 has joined #silverstripe
1340: [22:05:16] * howardgrigg has joined #silverstripe
1341: [22:05:26] * BPower_ has joined #silverstripe
1342: [22:06:27] <micmania1> :)
1343: [22:08:32] * SMaction quit (*.net *.split)
1344: [22:08:33] * DesignerX quit (*.net *.split)
1345: [22:08:34] * speak_ quit (*.net *.split)
1346: [22:08:35] * BPower quit (*.net *.split)
1347: [22:08:35] * MusicMann quit (*.net *.split)
1348: [22:08:35] * Azure quit (*.net *.split)
1349: [22:08:36] * guzzlefry quit (*.net *.split)
1350: [22:10:27] * SightUnseen has joined #silverstripe
1351: [22:11:24] * mrzero has joined #silverstripe
1352: [22:11:25] * NewLinuxUser has joined #silverstripe
1353: [22:11:25] * SMaction has joined #silverstripe
1354: [22:11:27] * willr has joined #silverstripe
1355: [22:11:42] * mrzero_ has joined #silverstripe
1356: [22:11:43] * mrzero_ quit (Changing host)
1357: [22:11:43] * mrzero_ has joined #silverstripe
1358: [22:12:22] * NewLinuxUser quit (Remote host closed the connection)
1359: [22:13:14] * NewLinuxUser has joined #silverstripe
1360: [22:14:02] * Azure has joined #silverstripe
1361: [22:14:27] * guzzlefry has joined #silverstripe
1362: [22:16:01] * mrzero quit (Ping timeout: 240 seconds)
1363: [22:16:01] * mrzero_ is now known as mrzero
1364: [22:17:32] * Azure quit (Client Quit)
1365: [22:21:46] * Azure has joined #silverstripe
1366: [22:33:48] * Azure quit (Quit: My MBP went to sleep.)
1367: [22:35:27] * mrzero_ has joined #silverstripe
1368: [22:38:08] * SMaction quit (Ping timeout: 240 seconds)
1369: [22:38:09] * guzzlefry quit (Ping timeout: 240 seconds)
1370: [22:46:17] * mrzero quit (Ping timeout: 240 seconds)
1371: [22:46:18] * mrzero_ is now known as mrzero
1372: [22:49:49] * guzzlefry has joined #silverstripe
1373: [22:49:56] * guzzlefry quit (Changing host)
1374: [22:49:56] * guzzlefry has joined #silverstripe
1375: [22:50:12] * Azure has joined #silverstripe
1376: [22:50:55] * guzzlefry quit (Client Quit)
1377: [22:53:53] <catcher> Stupid question, why time out template caches after 10 min?
1378: [22:53:58] <catcher> by default, that is
1379: [22:56:13] * UncleCheese_ has joined #silverstripe
1380: [22:59:06] <simon_w> So they can actually update
1381: [23:06:42] * catcher quit (Quit: Leaving)
1382: [23:14:58] * SightUnseen has left #silverstripe
1383: [23:28:17] <speak_2> hey simon_w got a minute? I am still stuck with this join
1384: [23:32:10] <micmania1> speak_2: what's up?
1385: [23:33:09] <speak_2> SS 2.4. Two DO's: BlogEntry / BlogCategory. I have a controller action 'category' so the user can view blogs by category. I am trying to take the users /category/{Title} and pull all BlogEntry that have the category (if it exists)
1386: [23:33:22] <speak_2> Sorry -- BlogEntry is a Page not a DO.
1387: [23:33:50] <speak_2> But my query to get them isn't going so well.
1388: [23:34:02] <micmania1> Can you post your code on sspaste?
1389: [23:35:14] <speak_2> micmania1: http://www.sspaste.com/paste/show/531119be97af9 is what I have thus far.
1390: [23:36:10] <speak_2> that /semi/ works but what it returns to render with, for some reason the template variables no longer work.
1391: [23:36:41] * Azure_ has joined #silverstripe
1392: [23:37:05] * Azure quit (Disconnected by services)
1393: [23:37:13] * Azure_ is now known as Azure
1394: [23:42:52] <simon_w|air> speak_2, return DataObject::get('BlogEntry', '"BlogCategory"."Title" = \'' . Convert::raw2sql($category) . '\'', '', 'JOIN "BlogCategory" ON "BlogCategory"."ID" = "BlogEntry"."BlogCategoryID"')
1395: [23:43:17] * UncleCheese_ quit (Ping timeout: 240 seconds)
1396: [23:43:33] <micmania1> I just posted a reply. Mine assumed a many_many relation though...
1397: [23:43:46] * BPower_ is now known as BPower
1398: [23:43:48] <speak_2> simon_w|air: you are a beautiful, beautiful person.
1399: [23:43:48] <micmania1> and was slightly late :p
1400: [23:43:54] <speak_2> thank you for your time micmania1 <3
1401: [23:44:27] * BPower quit (Remote host closed the connection)
1402: [23:53:02] * micmania1 quit (Ping timeout: 264 seconds)
1403: [23:56:28] * speak_2 quit (Ping timeout: 245 seconds)

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