#silverstripe IRC Log

IRC log for 11 November 2013

All timestamps are in UTC.

1: [00:01:24] <coldblooded01> simon_w: no joy
2: [00:03:00] * simon__w has joined #silverstripe
3: [00:03:09] <Pyromanik> guzzlefry: zomg, I'm always amazed when Americans know what a metric measurement is.
4: [00:03:42] <Pyromanik> guzzlefry: also, controllers aren't tied to dataobjects.
5: [00:04:05] * simon_w quit (Read error: Connection reset by peer)
6: [00:04:30] <coldblooded01> Pyromanik, any idea about my issue? :D
7: [00:04:47] <guzzlefry> Pyromanik: vise-versa?
8: [00:05:03] <guzzlefry> Each controller gets a URL segment automagically right?
9: [00:05:25] <guzzlefry> http://localhost/MyController/myAction/
10: [00:05:29] <guzzlefry> At least I thought they did.
11: [00:08:30] * Ryan-Toast quit (Quit: Ryan-Toast)
12: [00:11:12] <Pyromanik> coldblooded01: javascript fux'd
13: [00:11:30] <coldblooded01> nope js was never edited
14: [00:11:32] <Pyromanik> guzzlefry: yep. CMS is the module that ties Pages to Page_Controllers
15: [00:11:44] <Pyromanik> coldblooded01: that doesn't mean anything.
16: [00:11:54] <coldblooded01> console no error either
17: [00:12:12] <coldblooded01> it happened after some playing around with dataobjects
18: [00:12:20] <Pyromanik> guzzlefry: https://github.com/silverstripe/silverstripe-framework/blob/3.1/_config/routes.yml#L18
19: [00:12:30] <coldblooded01> any way to rebuild database (refresh) after deleting a data object class?
20: [00:12:30] <Pyromanik> coldblooded01: check your do's then.
21: [00:12:40] <Pyromanik> delete them, problem'll probably go away
22: [00:12:50] <Pyromanik> yeah, dev/build.
23: [00:12:54] <Pyromanik> same as always.
24: [00:13:02] <guzzlefry> k so
25: [00:13:11] <coldblooded01> i don't think that deletes the commented/or even deleted data object class
26: [00:13:22] <guzzlefry> http://localhost/URLSegment/ID/OtherID, how do I ge the ID and OtherID?
27: [00:13:22] <Pyromanik> coldblooded01: what?
28: [00:13:39] <Pyromanik> guzzlefry: request object.
29: [00:13:41] <coldblooded01> Pyromanik: :) let me see
30: [00:13:55] <Pyromanik> coldblooded01: what's in your database doesn't matter.
31: [00:13:57] <guzzlefry> Pyromanik: $request->getVar("ID")?
32: [00:14:02] <coldblooded01> ok
33: [00:14:06] <Pyromanik> guzzlefry: no.
34: [00:14:12] <Pyromanik> ID isn't a get var.
35: [00:14:15] <Pyromanik> $_GET
36: [00:14:35] <guzzlefry> oh, I"m dumb
37: [00:14:41] <Pyromanik> nor is it a postVar ($_POST) or a requestVar ($_REQUEST)
38: [00:15:03] <Pyromanik> it's just a param parsed out via the matching rules.
39: [00:15:10] * UncleCheese has joined #silverstripe
40: [00:15:12] <Pyromanik> ->param('xyz')
41: [00:15:33] <guzzlefry> oh
42: [00:15:42] * guzzlefry wonders why IDE wasn't picking that up.
43: [00:15:45] <guzzlefry> thanks
44: [00:15:53] <Pyromanik> IDE's are shit.
45: [00:16:02] <Pyromanik> brains are way better ;P
46: [00:16:14] <simon__w> and tastier
47: [00:16:16] * simon__w is now known as simon_w
48: [00:16:17] <guzzlefry> SS_HTTPResponse <-- that is the correct class, right?
49: [00:16:22] <simon_w> Nope
50: [00:16:26] <simon_w> SS_HTTPRequest
51: [00:16:27] <guzzlefry> oh no :(
52: [00:16:34] <Pyromanik> simon_w is now known as zimon_w
53: [00:16:42] <guzzlefry> oh, I guess that makes more sense.
54: [00:16:54] <simon_w> Hey, zombies were people too
55: [00:16:57] <simon_w> They had rights!
56: [00:16:58] <Pyromanik> rofl guzzlefry :P
57: [00:17:03] <Pyromanik> haha simon_w
58: [00:17:28] <Pyromanik> Reluctantly crouched at the starting line
59: [00:18:17] <guzzlefry> It's a lie!
60: [00:18:28] <simon_w> It's cake?
61: [00:18:33] <irogue23> i want cake
62: [00:18:34] <guzzlefry> The band..
63: [00:18:36] <Pyromanik> It is.
64: [00:18:43] <Pyromanik> irogue23: I wanted cake too
65: [00:18:50] <Pyromanik> and they were giving it away free on the street
66: [00:19:07] <Pyromanik> and then the fucking slippery cunt account manager cakeblocked me!~
67: [00:19:18] <Pyromanik> I'm dark.
68: [00:19:23] <simon_w> Celebrating how easy to own your bus system is?
69: [00:19:27] <coldblooded01> Pyromanik: fixed, stupid ?>
70: [00:19:36] <Pyromanik> Our competiton just moved in 3 doors down (lol pun?)
71: [00:19:52] <simon_w> coldblooded01, told you :p
72: [00:19:52] <Pyromanik> coldblooded01: so basically exactly what simon_w said long before you asked me? :P
73: [00:20:00] <coldblooded01> simon_w: cheers
74: [00:20:01] <coldblooded01> yeah xD
75: [00:20:10] <irogue23> it's always the fucking whitespace
76: [00:20:16] <Pyromanik> irogue23: so yeah, we go down on the street to get lunch, and they're giving away cake and lemonade.
77: [00:20:23] <Pyromanik> they go "Do you want some?"
78: [00:20:25] <irogue23> lol
79: [00:20:34] <Pyromanik> and fucking slippery turns around and goes "WE'RE FROM PLATO"
80: [00:20:36] <simon_w> Gotta get rid of the fucking whitespace before it gets pregnant
81: [00:20:39] * Colin[pi_ has joined #silverstripe
82: [00:20:43] <Pyromanik> fffffffffffff
83: [00:20:43] <irogue23> Pyromanik: bastard
84: [00:20:50] <Pyromanik> and then to make it worse, HE GOT CAKE ON THE WAY BACK
85: [00:20:56] <irogue23> hahahahahahaha
86: [00:21:00] <Pyromanik> and then she turned to me and just stood there staring.
87: [00:21:07] <Pyromanik> like "what do you want?"
88: [00:21:11] <Pyromanik> fuck I got mad
89: [00:21:19] <irogue23> i can tell :P
90: [00:21:29] <Pyromanik> it looked really delicious
91: [00:21:34] <Pyromanik> lemon flavoured
92: [00:22:13] <Pyromanik> and so then he doesn't give me any
93: [00:22:19] <Pyromanik> and claims about how good it was.
94: [00:22:21] <Pyromanik> -.-
95: [00:22:48] <simon_w> Shit on his desk
96: [00:22:48] <simon_w> LIKE A BOSS
97: [00:23:18] <guzzlefry> guys
98: [00:23:20] <guzzlefry> what am doing wrong
99: [00:23:32] <simon_w> Not bringing me stuff
100: [00:23:37] <guzzlefry> besides that!
101: [00:23:43] <guzzlefry> class Category_Controller extends ContentController
102: [00:24:02] <guzzlefry> I should be able to access http://mysite.com/Category/action/ right?
103: [00:24:06] * nickmolhoek quit (Quit: nickmolhoek)
104: [00:24:17] <simon_w> Nope
105: [00:24:19] <Pyromanik> hahahaha simon_w
106: [00:24:34] <Pyromanik> guzzlefry: no.
107: [00:24:37] <simon_w> Category_Controller/action/
108: [00:24:42] <Pyromanik> yoursite.com/ ... ^
109: [00:24:45] <guzzlefry> ah
110: [00:24:51] <Pyromanik> that's not what the controller is called.
111: [00:24:53] <guzzlefry> That makes for an ugly URL.
112: [00:24:59] <Pyromanik> well duh
113: [00:25:04] <simon_w> so rename the controller or add a route
114: [00:25:23] <Pyromanik> it's not compulsory to extend ContentController.
115: [00:25:27] <Pyromanik> either.
116: [00:25:50] <guzzlefry> Isn't that needed to tie a dataobject to it?
117: [00:26:07] <guzzlefry> "The most common kind of controller; effectively a controller linked to a DataObject."
118: [00:26:18] <simon_w> ContentController is specifically for SiteTree
119: [00:26:40] <guzzlefry> oh
120: [00:27:03] <Pyromanik> SiteTree being the dataobject.
121: [00:27:16] <guzzlefry> ah
122: [00:27:40] <guzzlefry> Well..
123: [00:28:11] <guzzlefry> I need to do an ajax call to grab a property of a certain Category dataobject. What's the sanest approach for that?
124: [00:29:10] <EasyCo> Ajax to an action
125: [00:29:25] <EasyCo> which tags care of returning the property
126: [00:29:33] <EasyCo> *takes
127: [00:30:27] <Pyromanik> guzzlefry: well using a page would be easiest.
128: [00:30:39] <Pyromanik> since controllers aren't tied to dataobjects.
129: [00:30:41] <guzzlefry> So, whatever page I'm currently doing the ajax call on?
130: [00:30:44] <EasyCo> Either return a rendered template or raw data for you to parse client side
131: [00:30:49] <Pyromanik> guzzlefry: yes.
132: [00:30:54] <guzzlefry> okay
133: [00:31:01] <Pyromanik> I'm assuming the current page would have the category in the path?
134: [00:31:01] <guzzlefry> I'm clearly overthinking this then.
135: [00:31:06] <Pyromanik> clearly.
136: [00:31:14] <irogue23> Pyromanik: is he mad at you for leaving? :P
137: [00:31:15] <Pyromanik> a controller isn't tied to any object.
138: [00:31:29] <Pyromanik> irogue23: no. He just didn't think before he opened his big trap.
139: [00:32:24] <guzzlefry> Pyromanik: The current page lists all categories. I'm basically popping up a modal window with a longer description for each.
140: [00:35:27] <Pyromanik> then you'll need to pass the ID in to get the correct one anyway.
141: [00:36:52] <EasyCo> guzzlefry: I've got a basic example here if you want it
142: [00:37:28] <guzzlefry> EasyCo: That would be awesome.
143: [00:37:35] <EasyCo> 2 mins
144: [00:38:32] * Ryan-Toast has joined #silverstripe
145: [00:41:08] <Pyromanik> guzzlefry: allowed actions: getCategoryDescription => ->ajaxreq
146: [00:42:07] * Zauberfisch_ has joined #silverstripe
147: [00:42:10] <Pyromanik> getCategoryDescription($request){ return Category::get()->byID($request->param('ID'))->Description; }
148: [00:42:35] <Pyromanik> ajaxreq($request){ return Director::is_ajax(); }
149: [00:44:11] <guzzlefry> What does that first line do?
150: [00:44:17] <guzzlefry> yaml stuff?
151: [00:44:24] <Pyromanik> $('category').hover(function(){$('desc').moveToCursor().load(window.href+$(this).data('ID'))})
152: [00:44:33] <Pyromanik> guzzlefry: well, no.
153: [00:44:43] <EasyCo> guzzlefry: https://gist.github.com/trev/7406011
154: [00:44:48] <EasyCo> It's a super basic example
155: [00:44:55] <EasyCo> But you'll get the gist
156: [00:44:55] <Pyromanik> private static $allowed_actions = array( <first line> ):
157: [00:45:01] <Pyromanik> PUN!
158: [00:45:10] <EasyCo> Yes!!
159: [00:45:17] <Pyromanik> BOOM!
160: [00:45:17] <EasyCo> I knew I could count on you
161: [00:45:41] <Pyromanik> urgh
162: [00:45:43] * Zauberfisch__ quit (Ping timeout: 272 seconds)
163: [00:45:46] <Pyromanik> fuck you and your coffeebullshit
164: [00:45:54] <simon_w> Mmm, delicious water
165: [00:46:06] <Colin[pi_> oh jesus this system I'm assessing is a SQL injection just waiting to happen
166: [00:46:08] <EasyCo> Pyromanik: fuck you hippy
167: [00:46:14] <guzzlefry> so private static $allowed_actions = array("getCategoryDescription" => "->ajaxreq")?
168: [00:46:15] <EasyCo> and your purist bullshit
169: [00:46:22] <Pyromanik> guzzlefry: yes.]
170: [00:46:34] <EasyCo> :)
171: [00:50:56] <irogue23> < Pyromanik> fuck you and your coffeebullshit
172: [00:50:58] <irogue23> now i want a V.
173: [00:51:16] <Pyromanik> 13:46 < EasyCo> and your purist bullshit
174: [00:51:18] <Pyromanik> sif
175: [00:51:40] <EasyCo> Googling sif...
176: [00:51:47] <EasyCo> Did you just call me a secret internet fatty?
177: [00:51:48] <Pyromanik> purist would be "var req = new XMLHttpRequest; ..."
178: [00:51:55] <Pyromanik> no
179: [00:51:57] <Pyromanik> gawsh
180: [00:52:01] <Pyromanik> "as if"
181: [00:52:09] <EasyCo> lol
182: [00:53:01] <Pyromanik> EasyCo: see definition 5 (assuming you're looking at urban dictionary)
183: [00:53:12] <Colin[pi_> tell me he's sanitising the input... he must be sanitising the input... he's not sanitising the input :(
184: [00:53:20] <Pyromanik> apparently sif means something else when you're an American.
185: [00:53:33] <EasyCo> sifilitisgonnereah?
186: [00:53:36] <Pyromanik> afaik 'sif' is generally prevalent in australasia
187: [00:53:53] <Pyromanik> Colin[pi_: lawl
188: [00:54:02] <Pyromanik> now fuck around for half an hour building an injection
189: [00:54:06] <Colin[pi_> this is terrifying
190: [00:54:19] <Colin[pi_> I need to know how much they paid for this code lol
191: [00:54:30] <simon_w> And think, some of the more prevalent SS modules used to be like that
192: [00:54:35] <guzzlefry> Colin[pi_: More importantly how much they're going to pay you to fix it. :P
193: [00:54:36] <Pyromanik> the ol' "If it works it works"
194: [00:54:51] <Pyromanik> simon_w: sif, you mean "pretty much all the prevalent SS modules used to be like that"
195: [00:55:05] <Colin[pi_> he's grabbing $_GET['id'] and just throwing it into a SQL query :(
196: [00:55:05] <EasyCo> All the cool kids aren't sanitising nowadays
197: [00:55:12] <Colin[pi_> not even casting as int
198: [00:55:27] <guzzlefry> I thought 3.x handled sanitization?
199: [00:56:26] <guzzlefry> at least within the ORM
200: [00:56:35] <simon_w> It does
201: [00:56:47] <guzzlefry> ....phew
202: [00:56:55] <Azure> How should I go about taking an image from a page (like in a has_many relationship) and processing it with ImageMagick or whatever before outputting it to my page template for using in a background or single image?
203: [00:57:09] * joelpittet has joined #silverstripe
204: [00:57:10] <Pyromanik> wouldn't be much of a framework if it wasn't. Since that's pretty much the entirety of web dev.
205: [00:57:16] <simon_w> Azure, first, you'd only has_one and many_many
206: [00:57:27] <simon_w> Then either <% with $Image %> or <% loop $Images %>
207: [00:57:36] <simon_w> and finally, $SetSize(42, 1337)
208: [00:58:05] <Colin[pi_> "As it stands now, from our review of the source code, the system is currently vulnerable to SQL injection and we do not recommend deploying the application in a live environment until these vulnerabilities can be rectified."
209: [00:58:09] <Colin[pi_> lol
210: [00:58:16] <Azure> I guess I would have to create an extension to Image in order to do my own processing?
211: [00:58:21] <Colin[pi_> was supposed to be live last week lawl
212: [00:58:29] <simon_w> Azure, what sort of processing?
213: [00:58:48] <Azure> Like say, applying blur/desaturation/etc.
214: [00:58:52] <simon_w> Colin[pi_, does it use exec() anywhere?
215: [00:59:02] <Colin[pi_> let me see
216: [00:59:08] <simon_w> Azure, then yes, you'd need to add methods to Image through an extension
217: [00:59:12] <Azure> as well as the usual cropping and resizing (although that would probably need to be done first before the rest of the effects)
218: [00:59:14] <Azure> Yeah
219: [00:59:46] <antmas> hmmm
220: [00:59:47] <antmas> Azure
221: [01:00:02] <Azure> yes?
222: [01:00:16] <Colin[pi_> simon_w: only matching in .js files
223: [01:00:17] <simon_w> Don't forget to renew your SSL certs
224: [01:00:21] * antmas is thinking about the service
225: [01:00:23] <simon_w> Colin[pi_, aww
226: [01:00:23] <antmas> :D
227: [01:00:33] <Azure> oh, lol
228: [01:00:44] <simon_w> Colin[pi_, how about eval()? :D
229: [01:01:06] <Pyromanik> Azure: also be sure to set the Image_Backend to imagick
230: [01:01:25] <Colin[pi_> simon_w: just jQuery... aww, party pooper
231: [01:01:36] <Azure> Image::add_extension('MyImageExtension); in mysite/_config.php and MyImageExtension class in a similarly-named file under mysite/code, right?
232: [01:01:47] <Pyromanik> what
233: [01:01:51] * joelpittet quit (Ping timeout: 240 seconds)
234: [01:01:53] <Pyromanik> for what/
235: [01:01:59] <simon_w> Azure, yes
236: [01:02:19] <Pyromanik> oh, yeah. use yml though.
237: [01:02:48] <simon_w> Going through beatbox, removing as much as possible of the array stuff
238: [01:02:50] <unsignedint> fuck yml, _config.php is much easier to understand :P
239: [01:03:05] * antmas is with unsignedint
240: [01:03:48] <Pyromanik> and slows your site down by about a factor of 17
241: [01:04:19] <unsignedint> silverstripe is slow anyway, factor of 17 is normal
242: [01:04:40] <Pyromanik> and yml is easy to understand. What you really mean is that you haven't bothered to learn it yet.
243: [01:04:46] <unsignedint> yes, thats it
244: [01:04:59] <unsignedint> also, doesnt _config.php stil have to exist anyway even if you use yml?
245: [01:05:07] <unsignedint> so how is your site slowdown prevented?
246: [01:05:48] <Pyromanik> no, it doesn't.
247: [01:05:57] <antmas> wait
248: [01:06:00] <antmas> so with yml
249: [01:06:09] <antmas> you DON'T need _config?
250: [01:06:15] <antmas> O.o
251: [01:06:17] <Pyromanik> you need a _config, yes.
252: [01:06:22] <Pyromanik> but not a _config.php
253: [01:06:32] <antmas> ah
254: [01:06:33] <antmas> right
255: [01:06:33] <Pyromanik> (its' a _config/ )
256: [01:06:44] <Azure> Well, I do already have the basic stuff set up for the image extension, so at least that's taken care of.
257: [01:07:21] <Pyromanik> and speed comes from not performing config related settings every single request.
258: [01:07:30] <Pyromanik> excepting i18n stuff :<
259: [01:07:35] <Pyromanik> for some reason.
260: [01:07:57] <Pyromanik> not sure why that is, ask chillu.
261: [01:08:49] <Pyromanik> _config.php is still usable for things like FulltextSearchable::enable() and more complicated stuff like setting paths using $project
262: [01:08:50] <unsignedint> Pyromanik: is there somewhere in the docs that details configuring the database via yml? because I couldnt find it
263: [01:09:08] <Pyromanik> unsignedint: because you're not supposed to. Nor are you supposed to via _config.php
264: [01:09:22] <EasyCo> _ss_environment.php ftw
265: [01:09:34] <Pyromanik> well, besides requiring the include for ^
266: [01:09:35] <unsignedint> soo... COnfigureFromEnv.php is the "correct" way?
267: [01:09:41] <Pyromanik> yes
268: [01:09:43] <Ryan-Toast> Hmm, is there no way to add an "Empty" option to TreeDropdownField
269: [01:10:02] <antmas> Ryan-Toast: a null value?
270: [01:10:06] <unsignedint> sounds fake and gay, I want my sites to all use different databases and have their own SS installs and generally know nothing about each other
271: [01:10:21] <Ryan-Toast> An empty value, like you can have in Dropdown fields
272: [01:10:34] <Pyromanik> unsignedint: umm
273: [01:10:49] <Pyromanik> not sure what you think _ss_environment.php does, but that's pretty much WHY it exists
274: [01:11:06] <Azure> Now I just need to figure out how to set the backend, since there seems to be little to nothing on that. :p
275: [01:11:33] <unsignedint> Pyromanik: according to http://doc.silverstripe.org/framework/en/topics/environment-management its placed in the webroot and not individual sites folders
276: [01:11:52] <Pyromanik> unsignedint: wrong.
277: [01:12:43] <Pyromanik> "At the beginning of SilverStripe's execution, the _ss_environment.php file is searched for, and if it is found, it's included. SilverStripe looks in all the parent folders of framework up to the server root (using the REAL location of the dir - see PHP realpath()):"
278: [01:13:09] <unsignedint> Pyromanik: ok so dont you still need _config.php to set the global $database variable to have the correct database name?
279: [01:13:18] <Pyromanik> yep.
280: [01:13:26] <Pyromanik> 14:09 < EasyCo> _ss_environment.php ftw
281: [01:13:27] <Pyromanik> 14:09 < Pyromanik> well, besides requiring the include for ^
282: [01:13:35] <unsignedint> so, you still have to have _config.php and cant use yaml for everything?
283: [01:13:53] <Pyromanik> 14:07 < Pyromanik> excepting i18n stuff :<
284: [01:13:53] <Pyromanik> 14:07 < Pyromanik> for some reason.
285: [01:13:53] <Pyromanik> 14:07 < Pyromanik> not sure why that is, ask chillu.
286: [01:13:59] <Pyromanik> basically, yeh.
287: [01:14:21] <unsignedint> so really, you dont lose any speed?
288: [01:14:23] <Pyromanik> you also can't call functions from yml, so FulltextSearchable::enable() is out
289: [01:14:35] <Pyromanik> you mean gain. and yes.
290: [01:14:38] <Pyromanik> you do.
291: [01:15:08] <Pyromanik> Can't say I've tested it personally though, but I'm willing to take SS.com's word for it.
292: [01:15:09] * unsignedint fails to see the incentive to use yml in that case
293: [01:15:47] <Pyromanik> well for starters all your projects will throw errors as of next release.
294: [01:16:10] <unsignedint> aha nice one. that will force me to learn yml
295: [01:16:31] <Pyromanik> and it's more flexible & powerful.
296: [01:16:50] <Pyromanik> and discourages silly people from doing silly things in config & before db is brought up
297: [01:17:13] <unsignedint> seems more limited to me
298: [01:17:23] <unsignedint> for the reasons you already described
299: [01:17:49] <Pyromanik> there are a _couple_ of downsides.
300: [01:18:03] <Pyromanik> the biggest one is not being able to leverage $project
301: [01:18:18] <Pyromanik> and the other one is related to out of date modules.
302: [01:18:44] <Pyromanik> (calling static functions instead of using yml definitions)
303: [01:19:35] <Pyromanik> yml config is read and cached. So is faster.
304: [01:20:11] * Colin[pi_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
305: [01:20:22] <antmas> a factor of 17 seems a bit... exagerrated...
306: [01:20:30] <antmas> but I agree it is faster
307: [01:20:34] <unsignedint> yeah thats how Pyromanik rolls though, I knew what he meant
308: [01:21:02] <antmas> the difference from what I've seens is almost negligable
309: [01:21:07] <unsignedint> ^ this
310: [01:21:13] <unsignedint> but anyway
311: [01:21:23] <unsignedint> its our duty as SS devs to follow best practice
312: [01:21:33] <antmas> \o\
313: [01:21:41] <antmas> \o/
314: [01:21:48] <unsignedint> to make it easier for the poor bastard who comes after us
315: [01:22:07] <Pyromanik> antmas: yeah, but 790% of all statistics are made up.
316: [01:22:24] <Pyromanik> 14:20 < unsignedint> yeah thats how Pyromanik rolls
317: [01:22:31] <Pyromanik> fuck yeah, I hate the shit out of stats.
318: [01:22:35] <unsignedint> :P
319: [01:22:48] <Pyromanik> 14:21 < antmas> the difference from what I've seens is almost negligable
320: [01:23:04] <Pyromanik> whenever someone with an app exclaims speed improvements they're almost always negligible
321: [01:23:11] <Pyromanik> kinda like how JS engines are.
322: [01:23:17] <unsignedint> its 17 times slower than negligible, which is still pretty negligible
323: [01:23:31] <Pyromanik> eg. when chrome first came out
324: [01:23:42] <Pyromanik> and everyone was all "FUCK YEA IT LOADS WEB SO FAST"
325: [01:23:54] <Pyromanik> and I'm all "well no, exactly the same speed actually"
326: [01:24:06] <unsignedint> it did it in a really wanky way though, cached way too much and wouldnt flush thecache when asked
327: [01:24:08] <Pyromanik> since it's limited by your connection, not the speed of the renderer
328: [01:24:09] <antmas> so beyond speed and future proofing (from the system itself), what is the benefit?
329: [01:24:13] <guzzlefry> V8 JAVASKILLS
330: [01:24:28] <Pyromanik> antmas: lots of things.
331: [01:24:35] <Pyromanik> there's a whole docpage on why.
332: [01:24:36] <antmas> ALL THE THINGS!
333: [01:24:37] <simon_w> You can haxor Python and Rails!
334: [01:27:59] <Azure> I guess in my image extension, in order to do image processing in a certain way I would have to create some sort of method like "generateXYZ", and do something with the first argument?
335: [01:28:06] <Azure> I'm mostly guessing right now.
336: [01:31:47] <Pyromanik> yes
337: [01:31:50] <Pyromanik> read Image.php
338: [01:31:56] <Pyromanik> You'll see.
339: [01:32:15] <Pyromanik> follow along from something like function CroppedImage( ... )
340: [01:38:18] <Azure> Aha
341: [01:44:52] <guzzlefry> Hate include order of javascript requirements...
342: [01:45:24] <guzzlefry> Would make a lot more sense to include the outermost template's requirements first.
343: [01:51:55] <simon_w> That's what you get for not using combine_files
344: [01:52:52] * spronk2 has joined #silverstripe
345: [02:07:05] * EasyCo quit (Quit: EasyCo)
346: [02:10:46] <guzzlefry> simon_w: combine_files makes the ordering sane?
347: [02:13:52] <Colin[pi]> wow when I go back to this screen from the mac, it's like "my eyes, the goggles do nothing"
348: [02:22:05] <Ryan-Toast> If anyone uses Netbeans, don't upgrade to 7.4 it carshes all the fucking time.
349: [02:22:14] <Ryan-Toast> Crashes**
350: [02:22:39] * antmas regrets opting to sync entire camera folder from phone to Drive
351: [02:22:55] <Colin[pi]> should be finished some time around 2019
352: [02:24:03] <Pyromanik> guzzlefry: it plonks everything into the same file, so doesn't matter anymore.
353: [02:27:11] * antmas quit (Ping timeout: 250 seconds)
354: [02:29:29] <Colin[pi]> lawl this is on reddit under "testing harmless looking code for the first time": http://i.imgur.com/UGfGJ3y.gif
355: [02:30:55] <Pyromanik> Colin[pi]: subscribe to devopsreactions.tumblr.net?
356: [02:30:58] <Azure> https://gist.github.com/mseymour/7406834 I can't quite seem to figure out what I should be doing here.
357: [02:31:05] <irogue23> Colin[pi]: hahahahaha
358: [02:31:06] <Pyromanik> err, .com
359: [02:31:08] <Colin[pi]> I get them via the programmerhumor subreddit
360: [02:31:45] <Colin[pi]> that's kinda how I felt testing this system I'm assessing lol
361: [02:31:52] <Pyromanik> Azure: well, you've got backend set wrong.
362: [02:31:55] <Colin[pi]> so if I just click here.... WHAT THE
363: [02:32:13] <Azure> Alright
364: [02:33:13] <Pyromanik> http://devopsreactions.tumblr.com/post/65602184860/what-happens-when-you-dont-keep-some-distance-from
365: [02:33:47] <Azure> I should probably change the casting instead?
366: [02:33:53] <Colin[pi]> Pyromanik: lol
367: [02:34:08] <Pyromanik> Azure: no, you should do things properly.
368: [02:34:29] <Azure> In that case, I have no clue.
369: [02:34:39] <Pyromanik> Image:
370: [02:34:48] <Pyromanik> backend: Imagick_Backend
371: [02:35:05] <Colin[pi]> rofl: http://devopsreactions.tumblr.com/post/65324824513/pre-coffee-deploy
372: [02:35:19] <Azure> Aah
373: [02:35:53] <zippy__> lol
374: [02:36:24] <Pyromanik> Azure: you'll also probably need to make an extension to ImagickBackend (sorry, no underscore in it) in order to get the appropriate function available to you in it. maybe. It extends Imagick, so dunno.
375: [02:36:28] <Pyromanik> https://github.com/silverstripe/silverstripe-framework/blob/3.1/filesystem/ImagickBackend.php
376: [02:36:48] <Pyromanik> but since it's an interface, yeh, probably you will.
377: [02:37:08] <Pyromanik> (Image_Backend that is)
378: [02:37:41] <Azure> I see
379: [02:37:46] <Pyromanik> also, if all you're doing is cropping, why are you even bothering?
380: [02:37:52] * antmas has joined #silverstripe
381: [02:37:55] <Azure> I'm doing more than cropping.
382: [02:37:59] <Pyromanik> ah
383: [02:38:00] <Azure> I just have it to crop for now
384: [02:38:09] <Pyromanik> rgr.
385: [02:41:41] <Pyromanik> yeah, since it's been converted to an interface, I'm not sure how you'll manipulate it.
386: [02:41:54] <Pyromanik> used to just decorate the backend.
387: [02:42:00] <Pyromanik> I think it might still work.
388: [02:42:02] <Pyromanik> unsure though.
389: [02:45:15] <Azure> hm
390: [02:46:03] * joelpittet has joined #silverstripe
391: [02:47:05] <Azure> Also, to add an extension to Image in the YAML file, I would just need to put "add_extension: BannerImageExtension" under "backend"?
392: [02:50:17] <Pyromanik> nope
393: [02:50:20] <Pyromanik> just extensions:
394: [02:50:33] <Pyromanik> and use the concrete definition
395: [02:50:42] <Pyromanik> ImagickBackend:
396: [02:50:45] <Pyromanik> extensions:
397: [02:50:54] <Pyromanik> - BannerImageExtension
398: [02:51:14] * joelpittet quit (Ping timeout: 264 seconds)
399: [02:54:10] <Colin[pi]> hey guise I just found the most awesome domain, it's parked! http://dotdotdotdotdotdot.com
400: [02:54:33] <simon_w> http:///..org!
401: [02:55:28] <Azure> Hahaha
402: [02:57:12] <Azure> Okay, so I have my config.yml set up so then ImageMagick has my BannerImageExtension, and the extension doesn't typecast $backend as Image_backend (or tries to set it on $backend.
403: [02:57:19] <Azure> )
404: [02:57:40] <Azure> I can't seem to call it from my template though.
405: [02:58:06] <Azure> (theArtDirectionImage method, that is)
406: [03:00:10] <Zauberfisch23> am I the only one getting a lot od 400 bad request errors in the CMS?
407: [03:00:24] <Colin[pi]> Yes.
408: [03:00:26] <unsignedint> yes.
409: [03:00:27] <Zauberfisch23> good
410: [03:00:34] <Zauberfisch23> s/od/of
411: [03:00:52] <Zauberfisch23> would be bad if the clients got them as well
412: [03:00:52] <unsignedint> the answer is still yes despite your correction
413: [03:01:20] <Zauberfisch23> I guess its due to changes in code
414: [03:01:25] <unsignedint> errors are for the weak anyway
415: [03:01:27] <Zauberfisch23> while keeping the CMS open
416: [03:01:59] <Zauberfisch23> right, so whats for the big strong boys then?
417: [03:02:35] <Colin[pi]> roid rage?
418: [03:03:23] <unsignedint> (not sure if steroid or hemorrhoid)
419: [03:03:45] <Pyromanik> so
420: [03:03:53] <Pyromanik> DataExtension doesn't inherit object :<
421: [03:05:23] <simon_w> Extension hasn't since at least 2.4
422: [03:05:27] <Pyromanik> yeh
423: [03:05:29] <Pyromanik> I know
424: [03:05:36] <Pyromanik> just... wtb config :<
425: [03:05:40] <Pyromanik> Config::inst()
426: [03:05:52] <Pyromanik> ->get('extclass', 'blah')
427: [03:06:12] <Pyromanik> I tried $this->config()
428: [03:06:17] <Pyromanik> of course didn't work
429: [03:06:30] <Azure> Makes me wonder... Would datatypes based on Image also get my extension?
430: [03:08:13] <Pyromanik> yes
431: [03:09:37] <Pyromanik> simon_w: config settings are inherited right?
432: [03:09:46] <simon_w> No
433: [03:09:53] <Pyromanik> oh :<
434: [03:10:12] <Azure> I've been trying $PhotoGalleryImages.First.ArtDirectionImage(100,100) (where $PhotoGalleryImages.First is a PhotoGalleryImage object), and it just doesn't output a thing.
435: [03:10:14] <Pyromanik> so a subclass of Blah won't get Blah: *** stuff?
436: [03:11:11] <simon_w> Home time!
437: [03:11:35] <antmas> I'm in the middle of a sync :(
438: [03:11:35] <madmatt> wat
439: [03:11:39] <antmas> I can't leave!
440: [03:12:00] <madmatt> ss23 only just got to work!
441: [03:12:41] <spronk> anyone have a live install of widgetpages that i can play with?
442: [03:14:02] <Colin[pi]> madmatt: dismissible offence :D
443: [03:17:04] <Pyromanik> 16:12 <@madmatt> ss23 only just got to work!
444: [03:17:05] <Pyromanik> lawl?
445: [03:17:33] <antmas> lorl
446: [03:19:00] <antmas> cold case errors are awesome
447: [03:19:08] <antmas> have no idea how to fix it at the time
448: [03:19:11] <antmas> forget about it
449: [03:19:17] <antmas> come back months later
450: [03:19:18] <guzzlefry> cold case errors?
451: [03:19:25] <antmas> BOOM -pwobwem solved!
452: [03:19:44] <ss23> fff
453: [03:19:48] <ss23> I was tired and hungover
454: [03:19:54] <antmas> guzzlefry: those ones you kinda sweep under the rug
455: [03:19:56] <antmas> :P
456: [03:20:03] <Colin[pi]> at least he's honest
457: [03:20:22] <guzzlefry> oh
458: [03:20:45] <Pyromanik> oh you ss23, you 'con man.
459: [03:20:54] <guzzlefry> "tired and hungover"
460: [03:20:57] <guzzlefry> surreee
461: [03:21:07] <antmas> ss23: walk of shame day?
462: [03:21:34] <Azure> Still can't seem to figure out why it isn't working. Weird.
463: [03:21:35] <guzzlefry> How late were you? 0.o
464: [03:21:43] <ss23> Mon Nov 11 16:22:55 NZDT 2013
465: [03:21:45] <ss23> About that lat
466: [03:21:46] <ss23> late
467: [03:21:54] <ss23> I did plan for having at least half of today off though
468: [03:22:17] <Colin[pi]> lol
469: [03:22:18] <Colin[pi]> wow
470: [03:22:25] <antmas> Sunday drinking is the best drinking
471: [03:22:27] <guzzlefry> ss23: so, 4:22pm, and you were supposed to be in at 8am?
472: [03:22:28] <antmas> NO REGRETS
473: [03:22:29] <antmas> YOLO
474: [03:22:33] <Colin[pi]> I can honestly say that's beaten any records I've set
475: [03:23:05] <ss23> guzzlefry: no no
476: [03:23:10] <ss23> normally i come in at 10am
477: [03:23:16] <guzzlefry> ooh
478: [03:23:24] <guzzlefry> still
479: [03:23:25] <ss23> I planned to come in for half a day (afternoon half)
480: [03:23:26] <guzzlefry> 6 hours :P
481: [03:23:29] <ss23> so only really a little late!
482: [03:23:35] <guzzlefry> oh
483: [03:23:35] <guzzlefry> phew
484: [03:24:03] <antmas> ss23: did you have a hangover pie?
485: [03:24:15] <antmas> andor blue poweraid?
486: [03:24:26] <Colin[pi]> would have been priceless if ss23 just strolls in "morning guys"
487: [03:24:29] <Colin[pi]> and everyone is like
488: [03:24:30] <Colin[pi]> O_O
489: [03:24:39] <Colin[pi]> and he looks at his watch and goes "oh... fuck"
490: [03:25:01] <ss23> antmas: I just had burgerfuel
491: [03:25:02] <ss23> :D
492: [03:25:05] <ss23> Is working good
493: [03:25:31] <antmas> mmmmm
494: [03:26:24] <antmas> Lipton Ice Tea: Peach
495: [03:27:02] <antmas> can't beat it
496: [03:27:20] <spronk> bloody hell composer install for framework on windows takes a long time
497: [03:27:42] <antmas> spronk: really?
498: [03:27:50] <antmas> is usually pretty quick for me
499: [03:28:01] <spronk> hmm
500: [03:28:03] <spronk> maybe something is wrong..
501: [03:28:10] <spronk> doesnt seem to be doing anything for me
502: [03:28:36] <antmas> when I say quick, I mean quicker than the others
503: [03:28:56] <madmatt> spronk: Add your Github API key to your composer config
504: [03:28:57] <madmatt> or something
505: [03:29:14] <madmatt> I forget what it is, but it's a GH throttling thing that makes you wait ages for downloads
506: [03:29:32] <spronk> ahh
507: [03:30:08] <spronk> yeah
508: [03:30:11] <spronk> this hyas been going for >10min
509: [03:30:15] <spronk> and there are still no files in /framework
510: [03:30:34] <antmas> spronk: yeah, it's borked
511: [03:30:58] <madmatt> well, they might be in framework/.git though?
512: [03:31:21] <madmatt> A git clone will copy everything into .git, then create all the files at the end
513: [03:31:24] <spronk> yeah
514: [03:31:26] <spronk> its downloading
515: [03:31:30] <spronk> but...
516: [03:31:31] <spronk> taking a LONG time
517: [03:33:42] <ss23> Or could just be that Github can be slow as shit really often
518: [03:34:00] <antmas> ^^this
519: [03:34:07] <ss23> Lots of the time it's faster to tunnel through another box
520: [03:34:23] <Azure> Aha, figured it all out.
521: [03:35:18] * guzzlefry wonders how github pays for things.
522: [03:35:33] * Liquide quit ()
523: [03:36:03] <Azure> It looks like all that I need to do is set Image to use ImageMagick for the backend, and add my extension in.
524: [03:36:44] <Azure> Also, I had to call $this->owner->... in the extension to use getFormattedImage.
525: [03:36:51] <guzzlefry> guys!
526: [03:37:04] <guzzlefry> Fatal error: Object::add_extension() - Can't find extension class for "MemberExtension"
527: [03:37:30] <guzzlefry> /var/www/cm-admin/mysite/extensions$ ls
528: [03:37:30] <guzzlefry> MemberExtension.php
529: [03:37:54] <Azure> I believe that it would have to be under /code, not /extensions (but I could be wrong)
530: [03:38:25] <guzzlefry> hm
531: [03:38:32] <guzzlefry> Didn't think that mattered?
532: [03:39:07] <guzzlefry> class MemberExtension extends DataExtension { <-- class signature
533: [03:39:18] <guzzlefry> Guess I'll try moving it.
534: [03:40:47] <guzzlefry> doesn't help
535: [03:41:01] * spronk also wonders how github survives
536: [03:41:17] <spronk> ...they're like... the backbone of open source these days
537: [03:42:23] <guzzlefry> meh
538: [03:42:28] <guzzlefry> spronk: Sourceforge did it for a while.
539: [03:42:50] <guzzlefry> But I think Sourceforge has some ways to generate income.
540: [03:42:50] <ss23> guzzlefry: flush!
541: [03:43:00] <guzzlefry> ss23: dawg what u think I'm doin?
542: [03:43:18] <Zauberfisch23> spronk: they charge quiet a lot for private repos
543: [03:43:25] <Zauberfisch23> I pay 20$ a month or something
544: [03:43:27] <guzzlefry> I don't understand what the hell is going on!
545: [03:43:41] <Zauberfisch23> and organisations pay even more
546: [03:43:51] <spronk> wow
547: [03:43:52] <spronk> it finished working
548: [03:43:54] <Zauberfisch23> and I know a couple of companies that use github for private repos
549: [03:43:58] <Colin[pi]> all about the private repos
550: [03:43:58] <spronk> yeah..
551: [03:43:59] <spronk> we use them
552: [03:44:01] <spronk> but
553: [03:44:04] <Colin[pi]> that's how they get coin
554: [03:44:06] <spronk> $20/month is not a lot of money
555: [03:44:21] <Zauberfisch23> and then there is github enterprice, lets not even start at what that costs
556: [03:44:30] <Colin[pi]> enterprice <-- lol
557: [03:44:37] <Zauberfisch23> haha
558: [03:44:38] <Zauberfisch23> fail
559: [03:44:48] <Colin[pi]> ..or was it?
560: [03:44:52] <Zauberfisch23> actually, let me just pretend that this was on purpose
561: [03:45:06] <ss23> guzzlefry: DON'T FORGET TO FLUSH
562: [03:45:20] <guzzlefry> wait
563: [03:45:32] <guzzlefry> hm
564: [03:45:34] <Zauberfisch23> (was a honest misstake, its 5:45 over here, AM)
565: [03:45:35] <guzzlefry> ss23: I did.
566: [03:45:37] <guzzlefry> I'm so lost.
567: [03:45:40] <ss23> :(
568: [03:45:57] <guzzlefry> Is there a verbose flush?
569: [03:46:50] <guzzlefry> also
570: [03:46:54] <Azure> hm... or not. It's still using GD for the backend.
571: [03:47:01] <guzzlefry> sspaste.com should be in topic I think
572: [03:47:15] * Azure checks something.
573: [03:47:37] <Zauberfisch23> I should be in the topic
574: [03:47:45] <guzzlefry> ss23: ^ fix plz
575: [03:48:26] <ss23> no u
576: [03:48:32] <guzzlefry> It won't let me.
577: [03:48:34] <Azure> Ah. I don't even have ImageMagick on here.
578: [03:52:15] <guzzlefry> So, any ideas?
579: [03:52:20] <Pyromanik> so what's the best way to get $db stuff from within an extension?
580: [03:52:23] * simon_w|air quit (Quit: Leaving)
581: [03:52:33] <Pyromanik> ie, in a class we can do $this->config()->db
582: [03:52:53] <Pyromanik> although I'm not clear on inherited stuff and whatnot
583: [03:53:04] <Pyromanik> but in an extension we don't inherit from Object
584: [03:53:13] <spronk> GRRRRRRRR
585: [03:53:15] <spronk> my fucking vm has died
586: [03:53:16] <Pyromanik> so... yeh. Currently have self::$db, but it seems very ugly.
587: [03:53:24] <spronk> unable to mount root fs on unknown block
588: [03:53:24] <spronk> :@
589: [03:53:28] <Pyromanik> spronk: rofl, I read "My fucking vaccuum died"
590: [03:53:40] <spronk> lul
591: [03:53:48] <Colin[pi]> how's he gonna get a bj now???
592: [03:54:39] <spronk> oh
593: [03:54:39] <spronk> man
594: [03:54:45] <Pyromanik> oh Colin[pi]
595: [03:54:47] <Pyromanik> so bad.
596: [03:54:50] <Pyromanik> xD
597: [03:54:52] <Colin[pi]> :D
598: [03:54:54] <Colin[pi]> sorry
599: [03:54:56] <guzzlefry> http://sspaste.com/paste/show/528052dedbaa2 Does anyone see anything glaringly wrong with that?
600: [03:56:17] <guzzlefry> might give up on that for a while.
601: [03:58:01] <Azure> ... Or maybe I already do have imagick?
602: [03:58:02] <Azure> ~$ convert -v
603: [03:58:03] <Azure> Version: ImageMagick 6.7.6-9 2012-05-12 Q16 http://www.imagemagick.org
604: [03:58:20] <guzzlefry> Do you need a PHP module for it?
605: [03:59:05] <Azure> Looks like t
606: [03:59:07] <Azure> ot*
607: [03:59:08] <Azure> it**
608: [03:59:50] <guzzlefry> Is it possible that ?flush is skipping my module?
609: [04:01:31] <spronk> ugh
610: [04:01:33] <spronk> never use turnkey linux
611: [04:01:35] <spronk> it's a fucking trap
612: [04:03:05] * DigNZ quit (Quit: DigNZ)
613: [04:03:34] * antmas quit (Quit: Page closed)
614: [04:12:34] * Ryan-Toast quit (Quit: Ryan-Toast)
615: [04:16:23] <guzzlefry> hey guys, guess what?
616: [04:16:29] <Colin[pi]> WUT?
617: [04:16:39] <Pyromanik> That'll do pig.
618: [04:16:41] * Pyromanik quit (Quit: leaving)
619: [04:17:36] <guzzlefry> Guess why it wasn't working?
620: [04:18:15] <guzzlefry> Forgot the <?php at the beginning of the file.
621: [04:20:21] * coldblooded01 quit (Quit: coldblooded01)
622: [04:20:53] <guzzlefry> hm
623: [04:21:02] <guzzlefry> DateField isn't doing the magical popup thing.
624: [04:21:52] <Colin[pi]> ROOKIE MISTAKE
625: [04:22:21] <guzzlefry> yeah, I don't know.
626: [04:22:23] <guzzlefry> I'm stressing out.
627: [04:26:42] <guzzlefry> oh, as far as the date thing, ->setConfig("showcalendar", true);
628: [04:28:22] <Colin[pi]> just had a cupcake, and the base of it was an oreo... AN OREO I tell you
629: [04:28:30] <Colin[pi]> wasn't too bad ;)
630: [04:29:27] <guzzlefry> What genius thought that up?
631: [04:29:46] <Colin[pi]> http://www.mamasaurusmakes.com/
632: [04:34:07] * Stomach quit (Ping timeout: 260 seconds)
633: [04:35:01] * joelpittet has joined #silverstripe
634: [04:40:04] * joelpittet quit (Ping timeout: 264 seconds)
635: [04:43:11] <Azure> "Please provide a path to MagickWand-config or Wand-config program." <- Trying to install imagick via pecl. No idea what to do from there.
636: [04:45:17] * cloph quit (Ping timeout: 240 seconds)
637: [04:47:23] <guzzlefry> wee
638: [04:48:00] <guzzlefry> ss23: I managed to get mod_auth_mysql working against the SilverStripe Member table, using PasswordExpiry and such. The only negative is that I'm using MySQL PASSWORD encryption. >_>
639: [04:48:44] <ss23> lol
640: [04:48:49] <ss23> Yeah, I wouldn't do that
641: [04:49:02] <ss23> Would rather just use the built in Apache auth stuff, since it seems to support bcrypt etc
642: [04:49:14] <guzzlefry> time constraints!
643: [04:49:28] <guzzlefry> anyway
644: [04:49:36] <guzzlefry> ss23: It's just to allow viewing of static files.
645: [04:49:44] * UncleCheese quit (Quit: UncleCheese)
646: [04:50:02] * CodeTrap quit (Ping timeout: 264 seconds)
647: [04:50:24] * cloph_away has joined #silverstripe
648: [04:50:42] * CodeTrap has joined #silverstripe
649: [04:53:53] <Azure> Got that installed.
650: [05:00:16] <Azure> But it looks like Silverstripe is still using GD instead of Imagick.
651: [05:23:06] <Azure> ... Very interesting.
652: [05:23:13] <Azure> Error at framework/core/Object.php line 750: Uncaught Exception: Object->__call(): the method 'get_backend' does not exist on 'GDBackend'
653: [05:24:19] <Azure> In config.yml, I have 'Image' as a key, and 'backend' as a child key set to 'ImagickBackend'.
654: [05:35:13] * SightUnseen has joined #silverstripe
655: [05:35:16] * SightUnseen has left #silverstripe
656: [05:45:14] * spronk2 quit (Quit: spronk2)
657: [06:05:12] * spronk2 has joined #silverstripe
658: [06:14:21] <guzzlefry> Can you change $summary_fields in a DataExtension?
659: [06:24:01] * joelpittet has joined #silverstripe
660: [06:28:17] * joelpittet quit (Ping timeout: 252 seconds)
661: [06:38:35] <guzzlefry> hm
662: [06:38:38] <guzzlefry> doesn't look like it. :/
663: [06:40:41] <guzzlefry> Better question
664: [06:40:50] <guzzlefry> Can I remove summary fields from the Member dataobject?
665: [06:47:33] <zippy__> damn I hate it when the hours for week work out to a whole number, 35.0 hours seems so fake!
666: [06:51:53] <guzzlefry> hah
667: [06:52:16] <guzzlefry> I feel that way when my invoices end up being whole dollars. :P
668: [06:52:21] <zippy__> I use https://www.toggl.com for time tracking, quite like it
669: [06:52:40] <zippy__> yea, if something is 1500 - it's ahh.... I will take a few bucks off
670: [06:52:50] <zippy__> even 1789
671: [06:53:00] <zippy__> not 'random' enough
672: [06:53:40] <guzzlefry> :P
673: [06:53:45] <guzzlefry> toggl was down this morning
674: [06:53:48] <guzzlefry> didn't like that >_>
675: [06:53:50] <zippy__> you use it?
676: [06:53:58] <zippy__> I hadn't had any issues all day
677: [06:54:06] <zippy__> I do start at 9~
678: [06:54:16] <guzzlefry> This was around 3pm EST
679: [06:54:22] <zippy__> ah yeap, before me
680: [06:54:30] <zippy__> by a few hrs
681: [07:04:52] * Shrike_Finland has joined #silverstripe
682: [07:12:23] * travis-ci has joined #silverstripe
683: [07:12:23] <travis-ci> [travis-ci] ajshort/sapphire#44 (injector - e1480e8 : Andrew Short): The build has errored.
684: [07:12:23] <travis-ci> [travis-ci] Change view : https://github.com/ajshort/sapphire/compare/aa74dabb6f79^...e1480e83a81f
685: [07:12:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/ajshort/sapphire/builds/13792643
686: [07:12:24] * travis-ci has left #silverstripe
687: [07:13:15] * ajshort has joined #silverstripe
688: [07:24:20] * willr has joined #silverstripe
689: [07:42:54] * travis-ci has joined #silverstripe
690: [07:42:54] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#649 (master - e17fb17 : Andrew Short): The build was broken.
691: [07:42:54] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/ef0f633f461b...e17fb17520fd
692: [07:42:54] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/13793147
693: [07:42:54] * travis-ci has left #silverstripe
694: [07:47:15] * travis-ci has joined #silverstripe
695: [07:47:15] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1527 (master - bedf292 : Andrew Short): The build passed.
696: [07:47:15] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/42fa4d6005c7...bedf2926124b
697: [07:47:15] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13793156
698: [07:47:15] * travis-ci has left #silverstripe
699: [07:52:50] <willr> yay ajshort
700: [07:53:01] <ajshort> wasn't me
701: [07:53:04] <ajshort> i was just merging
702: [07:53:29] <willr> that's what they all say
703: [08:13:02] * joelpittet has joined #silverstripe
704: [08:17:03] * joelpittet quit (Ping timeout: 240 seconds)
705: [08:19:16] * ARNHOE has joined #silverstripe
706: [08:24:54] * Error404NotFound has joined #silverstripe
707: [08:33:43] * Error404NotFound quit (Read error: Connection reset by peer)
708: [08:37:33] * Error404NotFound has joined #silverstripe
709: [08:37:42] * chillu has joined #silverstripe
710: [08:54:42] * spronk2 quit (Quit: spronk2)
711: [09:03:29] * unsigned_ has joined #silverstripe
712: [09:06:09] * unsignedint quit (Ping timeout: 272 seconds)
713: [09:06:37] * kinglozzer has joined #silverstripe
714: [09:23:52] * Error404NotFound quit (Read error: Connection reset by peer)
715: [09:27:22] * mobiusnz`home has joined #silverstripe
716: [09:28:20] * mobiusnz`home quit (Client Quit)
717: [09:31:23] * zfmf has joined #silverstripe
718: [09:31:59] * zfmf has left #silverstripe
719: [09:33:09] * C10ne quit (Quit: Page closed)
720: [09:42:36] * Weishaupt has joined #silverstripe
721: [09:44:29] <Weishaupt> Hey there. I'm having huge problems with the php Max Execution Time where there shouldn't be any. If I write more than 9 DataObjects in a DataList, the execution takes more than 30 seconds. Is that normal?
722: [09:45:07] * zfmf has joined #silverstripe
723: [09:53:19] <kinglozzer> Weishaupt: You don't have any circular logic do you? E.g. DataObjectA->onBeforeWrite() calls DataObjectB->write() and DataObjectB->onBeforeWrite() calls DataObjectA->write() ?
724: [09:55:52] <Weishaupt> kinglozzer: No.
725: [10:00:09] * Colin[pi]_Mac has joined #silverstripe
726: [10:01:47] * joelpittet has joined #silverstripe
727: [10:02:57] * willr quit (Quit: willr)
728: [10:06:35] * joelpittet quit (Ping timeout: 272 seconds)
729: [10:16:49] * sam___ has joined #silverstripe
730: [10:18:08] <sam___> hi facing a strange issue in form $actions
731: [10:18:11] <sam___> http://www.kc316.com/sendingproject/registration/
732: [10:18:15] <sam___> please help
733: [10:24:43] * sam___ quit (Ping timeout: 250 seconds)
734: [10:59:04] * Colin[pi]_Mac quit (Quit: ZzzZz)
735: [11:02:05] * Colin[pi] quit (Ping timeout: 245 seconds)
736: [11:07:31] * Colin[pi]_Mac has joined #silverstripe
737: [11:34:36] * spronk2 has joined #silverstripe
738: [11:47:01] <kinglozzer> Config API question: Can anyone explain this to me? http://pastie.org/8471666. I *kinda* understand why this happens, but not fully. Does the config system enter some sort of 'merge mode' that it can't exit or something?
739: [11:50:40] * joelpittet has joined #silverstripe
740: [11:54:46] <kinglozzer> "If the value is an array, each array is added to the beginning of the composite array in ascending priority order. If a higher priority item has a non-integer key which is the same as a lower priority item, the value of those items is merged using these same rules, and the result of the merge is located in the same location the higher priority item would be if there was no key clash."
741: [11:54:52] <kinglozzer> That doesn't seem to occur :/
742: [11:55:10] * joelpittet quit (Ping timeout: 244 seconds)
743: [12:05:33] * Colin[pi]_Mac quit (Quit: ZzzZz)
744: [12:37:49] * chillu quit (Quit: chillu)
745: [12:50:02] * hubertusanton has joined #silverstripe
746: [12:52:12] <hubertusanton> is there a way to omit $Layout in templates from displaying the current urlsegment for creating a one page website?
747: [12:52:14] <hubertusanton> http://sspaste.com/paste/show/5280d0da9cf71
748: [12:58:11] <marvanni> I did a test setup a few weeks ago, and solved it with <% loop $Menu(1) %>$OnPageLayout<% end_loop>
749: [12:58:43] <hubertusanton> hey martijn! :)
750: [12:59:09] <hubertusanton> What did OnePageLayout do?
751: [13:00:29] <marvanni> http://sspaste.com/paste/show/5280d2f3a5796
752: [13:01:23] <hubertusanton> ty!
753: [13:03:17] * mento has joined #silverstripe
754: [13:12:49] * micmania1 has joined #silverstripe
755: [13:19:45] <mento> I want my forms (build on ss 3.x) to support custom (data) attributes & input placeholders, is there any information about that?
756: [13:27:32] <marvanni> $field->setAttribute();
757: [13:28:13] <marvanni> works not on all fields. See FormField->setAttribute();
758: [13:32:58] * chillu has joined #silverstripe
759: [13:39:26] * SightUnseen has joined #silverstripe
760: [13:39:34] * SightUnseen has left #silverstripe
761: [13:39:36] * joelpittet has joined #silverstripe
762: [13:44:49] * joelpittet quit (Ping timeout: 272 seconds)
763: [13:49:21] * SightUnseen has joined #silverstripe
764: [13:50:39] * SightUnseen has left #silverstripe
765: [13:54:21] <ec8or_> what are the reasons a has_one relationship is rendered as a textfield rather than a dropdown
766: [13:54:24] <ec8or_> ?
767: [13:54:30] <ec8or_> i've got a Name column on the related model
768: [14:02:33] <micmania1> ec8or, has_one's are normally rendered as dropdowns
769: [14:05:50] * zippy__ quit (Ping timeout: 240 seconds)
770: [14:12:21] <ec8or_> micmania1: yeah for some reason one of mine aren't :)
771: [14:12:41] <micmania1> can you paste your code? (in sspaste)
772: [14:15:30] <ec8or_> micmania1: http://www.sspaste.com/paste/show/5280e484b7016
773: [14:18:14] * zippy__ has joined #silverstripe
774: [14:18:38] <marvanni> you have a has_one on each DO
775: [14:18:51] <marvanni> o noh, my bad not
776: [14:21:36] * cloph_away is now known as cloph
777: [14:32:24] * Shrike_Finland quit (Quit: Leaving.)
778: [14:40:16] <kinglozzer> ec8or_: How many of those objects do you have?
779: [14:40:36] <kinglozzer> IIRC if you have over 100 of them, it'll be rendered as a NumericField (which looks like a TextField)
780: [14:43:49] * pathum has joined #silverstripe
781: [14:49:51] * kinglozzer quit ()
782: [14:51:21] * catcher has joined #silverstripe
783: [14:57:00] * spronk2 quit (Quit: spronk2)
784: [15:00:14] * hubertusanton quit (Ping timeout: 264 seconds)
785: [15:02:38] * zippy__ quit (Ping timeout: 240 seconds)
786: [15:02:42] * kinglozzer has joined #silverstripe
787: [15:15:19] * zippy__ has joined #silverstripe
788: [15:25:32] * r3v3rb has joined #silverstripe
789: [15:25:43] <r3v3rb> hello
790: [15:26:50] <r3v3rb> 3.1.1 I have my $project set to my folder that contains code, css, templates etc yet when I use $ThemeDir it still writes /themes/simple in to the template even though that does not exist in the directory structure? any ideas?
791: [15:27:22] <Zauberfisch23> is simple still set in the database? (SiteConfig)
792: [15:27:42] <r3v3rb> Not when I log in no
793: [15:27:49] <r3v3rb> seems odd
794: [15:28:33] * joelpittet has joined #silverstripe
795: [15:28:42] <r3v3rb> hi Zauberfisch23 btw - good weekend?
796: [15:29:02] * chillu quit (Quit: chillu)
797: [15:29:04] <r3v3rb> lol, yaml...
798: [15:29:19] <r3v3rb> SSViewer: theme: 'simple' may have something to do with it!
799: [15:32:35] <r3v3rb> must ensure SSViewer: theme: '' in the config.yml
800: [15:32:56] * joelpittet quit (Ping timeout: 240 seconds)
801: [15:33:48] <r3v3rb> excellent, let the build continue at pace!
802: [15:44:28] <catcher> Is there any slick way yet to see which CMS page an object's interface is on before it's written?
803: [15:45:33] <catcher> $this->OwnerPage() is blank until after the first write (expectedly), but I need to set the folder name of an uploadfield based on it. CMSFields would be cleaner than onAfterWrite if such a thing exists.
804: [15:47:42] <catcher> Plus the verbiage will be wrong on the UploadField the first time ("Saves into Uploads/")
805: [15:48:09] * pathum quit (Quit: Leaving)
806: [15:50:46] <catcher> Hmm, maybe my best bet is to replace the UploadField with a "save once" message if the page relationship isn't set yet.
807: [15:53:02] <ec8or_> kinglozzer: ah that must be it
808: [15:53:06] <ec8or_> thanks
809: [15:56:56] <marvanni> ok, i need to document it, but this works wuit good to use ModelAdmin/GridField with external data
810: [15:56:57] <marvanni> https://github.com/axyr/silverstripe-externaldata
811: [15:57:36] <marvanni> I have sample implementations for a MongoDB collection, dummy REST Connection and second MySql database included
812: [15:58:09] <marvanni> I will add some more documentation this evening, but feel free to checkout if you like it
813: [16:00:08] * Colin[pi] has joined #silverstripe
814: [16:14:24] <catcher> marvanni, very cool, is it basically to allow crud actions on a remote source via normal-looking SS gridfield actions?
815: [16:15:41] <catcher> Ah, I see a description in ExternalDataObject.
816: [16:16:56] * mento quit (Quit: Page closed)
817: [16:20:32] <marvanni> yes
818: [16:20:57] * Colin[pi] quit (Ping timeout: 240 seconds)
819: [16:21:01] <marvanni> I stripped of the SearchFrom in the ExternalDataModelAdmin, since that will not work
820: [16:21:11] <marvanni> but the basic CRUD works just fine
821: [16:23:12] * r3v3rb quit (Quit: r3v3rb)
822: [16:24:09] * chillu has joined #silverstripe
823: [16:24:59] * ARNHOE quit ()
824: [16:29:09] * zfmf has left #silverstripe
825: [17:17:37] * joelpittet has joined #silverstripe
826: [17:22:35] * joelpittet quit (Ping timeout: 272 seconds)
827: [17:30:50] * kinglozzer quit ()
828: [17:36:13] * origincube has joined #silverstripe
829: [17:36:21] <origincube> hey everyone! sorry to bug you all again
830: [17:36:45] <origincube> but i'm busy working with the user defined plugin, and for some reason the validation stuff isn't displaying the field names
831: [17:36:52] <origincube> i just get {name} is required
832: [17:44:41] <origincube> i need to run off, but will check back in a bit later.
833: [17:44:44] * origincube has left #silverstripe
834: [18:00:15] <marvanni> yml config properties should work n Extensions right?
835: [18:02:17] <marvanni> it does.... typos...
836: [18:04:24] * Shrike_Finland has joined #silverstripe
837: [18:05:00] * joelpittet has joined #silverstripe
838: [18:06:43] * SightUnseen has joined #silverstripe
839: [18:07:21] * SightUnseen has left #silverstripe
840: [18:29:04] * Marvanni_ has joined #silverstripe
841: [18:38:28] <ss23> DEPLOY THE FILES
842: [18:38:42] <ss23> Yay for 7:30am deployments, right?
843: [18:41:01] <AlphaCactus> just in time to crash for the day
844: [18:43:40] <guzzlefry> ss23: Aren't those better than late night deployments?
845: [18:45:48] <ss23> I'm not sure...
846: [18:50:01] <AlphaCactus> if I need to suggest a change that affects multiple modules simultaneously... how do I do that exactly.
847: [18:51:12] <ss23> AlphaCactus: I don't understand the question
848: [18:51:13] <ss23> o.o
849: [18:51:32] <Marvanni_> Posting on the Google dev mailing list
850: [18:52:07] <AlphaCactus> eh... well perhaps its not the best solution so I"m still working it out. but basically, trying to solve this moderated comment bug where the blog module lists a post as having comments but in fact those comments are not yet approved...
851: [18:52:19] <AlphaCactus> so it says "1 Comments" but you can't see the comments.
852: [18:52:28] <ss23> You know, an annoying part about doing these early deploys is the whole "stick around for a while after to make sure shit doesn't break", meaning not only do I have to get up early, but when I'm done, I can't go back to sleep.
853: [18:52:41] <AlphaCactus> so I figured out a hack, but it requires modifying both the blog and comment modules.
854: [18:52:45] <ss23> AlphaCactus: Ah yes, those kinds of bugs are common
855: [18:52:58] <ss23> AlphaCactus: Probably just comments module I would assume, but you're asking about the pull request side of things?
856: [18:53:00] <AlphaCactus> but I sppose a smart person could figure out how to fix just the comment module.
857: [18:53:04] <AlphaCactus> yeah
858: [18:53:04] <ss23> lol
859: [18:53:15] * joelpitt_ has joined #silverstripe
860: [18:53:36] <ss23> AlphaCactus: Just make a pull request on one and be like "Don't merge this yet!", make the one on the other and be all "Make sure (link to first PR) is merged at the same time)", then edit first one to include link to second one
861: [18:53:52] <ss23> So just put "DON'T MERGE" until you've got both up, then make sure they say they need to be merged at the same time kind of thing
862: [18:53:55] <ss23> It's a human process
863: [18:54:21] <AlphaCactus> kay
864: [18:55:12] * zfmf has joined #silverstripe
865: [18:56:12] * joelpittet quit (Ping timeout: 246 seconds)
866: [19:01:46] * chillu quit (Quit: chillu)
867: [19:14:13] * SphereSilverNL has joined #silverstripe
868: [19:14:28] <SphereSilverNL> Evening
869: [19:15:27] * SphereSilverNL quit (Remote host closed the connection)
870: [19:16:27] * chillu has joined #silverstripe
871: [19:16:31] * SphereSilverNL has joined #silverstripe
872: [19:16:47] * Marvanni_ quit (Quit: Marvanni_)
873: [19:19:15] <catcher> What's your vote? ParentClass will be subclassed 5 times. 4/5 subclasses need SpecialContent field, 1 doesn't. Put it in ParentClass and hide the CMSField in the oddball? Or add the field explicitly to the other 4, repeating code?
874: [19:21:25] <simon_w> Yes.
875: [19:22:06] <catcher> both violate a best practice rule. Is there a lesser of the two evils?
876: [19:22:13] <SphereSilverNL> Maybe this is of help? http://chillu.com/docs/silverstripe-pagetypeitis/
877: [19:22:27] <SphereSilverNL> It's not a real answer, but it is about deep inheritance and such
878: [19:22:33] <SphereSilverNL> And what best-practices are
879: [19:22:42] <SphereSilverNL> (Courtesy of chillu )
880: [19:31:18] <catcher> SphereSilverNL, that's a good read, thanks. Not sure I know how it answers my questions other than extending, but that seems like overkill.
881: [19:31:38] <AlphaCactus> option 1
882: [19:31:58] <SphereSilverNL> The idea of chillu 's presentation is pretty much summed up with "Don't overdo it" I guess :)
883: [19:32:12] <SphereSilverNL> As I said, it's not really an answer, but might be of help ;)
884: [19:34:54] * nickmolhoek has joined #silverstripe
885: [19:39:12] * Ryan-Toast has joined #silverstripe
886: [19:40:08] <catcher> AlphaCactus, agreed, I think a tiny unnecessary db addition is worth it.
887: [19:42:00] <SphereSilverNL> Sander had a great presentation about this too by the way. It's a way of extending, without making the database-relations overly complex.
888: [19:42:07] <SphereSilverNL> https://dl.dropboxusercontent.com/u/2043802/Hamaka%20-%20Shared%20Codebase%20POC.pdf
889: [19:42:26] * Pyromanik has joined #silverstripe
890: [19:42:30] <SphereSilverNL> Sorry for the Dutch slides, but the subtitling is English, should work for you
891: [19:43:19] <guzzlefry> k, trying this again. :P
892: [19:43:41] <guzzlefry> Is there a way to remove summary fields from the security modeladmin?
893: [19:43:41] <catcher> cool, thanks SphereSilverNL
894: [19:43:45] <SphereSilverNL> (Both presentations I just linked are from the Dutch Silverstripe Meetup last September ;) , more here: http://casa-laguna.net/all-the-news/show/silverstripe-netherlands-meetup )
895: [19:44:06] <SphereSilverNL> catcher: His case is more about "multiple sites on the same codebase", but I think, the same idea can be applied :)
896: [19:44:24] <guzzlefry> I tried adding $summary_fields to a DataExtension, but that seems to add on rather than overwrite what's in Member.
897: [19:44:51] <SphereSilverNL> It does if you address the update or parent
898: [19:45:08] <guzzlefry> I'm not following.
899: [19:45:17] <SphereSilverNL> Addressing parent::getCMSFields() will ADD to the parent
900: [19:45:31] <SphereSilverNL> addressing public function updateCMSFields() does the same, it will update
901: [19:45:58] <SphereSilverNL> To only show your fields, you need to call public function getCMSFields(){} and build your own fieldset
902: [19:46:05] <SphereSilverNL> and remove anything the parent added
903: [19:46:12] * DigNZ has joined #silverstripe
904: [19:46:14] <SphereSilverNL> (or, remove whatever you don't want to show)
905: [19:46:23] <guzzlefry> SphereSilverNL: I'm just trying to change $summary_fields.
906: [19:46:40] <AlphaCactus> guzzlefry: try extending member, not data extending member. and then replace member with your extension.
907: [19:46:41] <SphereSilverNL> public function getSummaryFields(){} is your friend
908: [19:46:47] <AlphaCactus> or that
909: [19:46:54] <guzzlefry> ah, thanks :)
910: [19:47:04] <SphereSilverNL> Sorry, thought you were talking about the CMSFields ;)
911: [19:47:16] <guzzlefry> That will work in a dataextension?
912: [19:47:30] <SphereSilverNL> You'll have to address the owner, but as far as I know, yes
913: [19:48:03] <SphereSilverNL> Whahahahahahahaha! This is brilliant! https://github.com/axyr/silverstripe-fartscroll
914: [19:48:08] <SphereSilverNL> (not mine, obviously)
915: [19:48:21] <SphereSilverNL> it's a Silverstripe module for http://theonion.github.io/fartscroll.js/
916: [19:50:54] <guzzlefry> Well, this is odd.
917: [19:51:02] <AlphaCactus> how come the ss plugin isn't listed on their page
918: [19:51:06] <ss23> My goodness, some clients at work are saying "gitlabs" instead of "gitlab", and it's really irking
919: [19:51:08] <guzzlefry> After adding a new user, the right panel goes blank.
920: [19:51:25] <guzzlefry> ss23: Have you ever had clients say foxfire instead of firefox? :P
921: [19:51:30] <ss23> lol, naw
922: [19:51:39] <ss23> "mozeralla firefox" though (a friend, not client)
923: [19:51:48] <guzzlefry> hahaha
924: [19:51:57] <guzzlefry> it's not even italian! :P
925: [19:52:00] <simon_w> How about people that just call it Mozilla?
926: [19:52:12] <ss23> "Can I borrow your USB?"
927: [19:52:14] * EasyCo has joined #silverstripe
928: [19:52:16] <ss23> "Oh, nice mp3"
929: [19:52:22] <ss23> oh man, my entire family does usb/mp3
930: [19:52:24] <simon_w> You know, that suite that predates Firebird
931: [19:52:25] <ss23> mother fucking so annoying
932: [19:52:38] <guzzlefry> simon_w: The one that's chock full of features? :P
933: [19:52:51] <guzzlefry> That's called Sea Monkey now isn't it?
934: [19:53:16] <AlphaCactus> ss23: tell them. no, you can't borrow my bus.
935: [19:53:24] <ss23> lol
936: [19:53:45] <ss23> http://neighbr.net/images/universal-cereal-bus.jpg
937: [19:53:59] <guzzlefry> hm
938: [19:54:12] <guzzlefry> Is it bad to hide Email on the Security editform stuff?
939: [19:54:36] * Stomach has joined #silverstripe
940: [19:54:48] <guzzlefry> That may be why I get a blank panel when adding a user?
941: [19:57:20] <SphereSilverNL> Email is kinda, somewhat a unique identifier in the security class if I'm not mistaken. So I guess that it could be trouble....
942: [19:57:21] <Pyromanik> Brilliant.
943: [19:57:28] <Pyromanik> Woman rings radio station
944: [19:57:41] <Pyromanik> asks whole city to find her child's soft toy.
945: [19:57:52] <Pyromanik> 5 mins later finds it IN HER CAR.
946: [19:57:56] <ss23> lol.........
947: [19:58:07] <guzzlefry> SphereSilverNL: it adds the user with appropriate info, it just doesn't want to load the edit form I think..
948: [19:58:14] <guzzlefry> no errors in Firebug, guess I'll check apache. :P
949: [20:02:20] <Stomach> anyone else had problems with googlesitemaps on 3.1?
950: [20:04:09] <SphereSilverNL> Only when the locale doesn't use dots as fraction-separator
951: [20:10:55] * UncleCheese has joined #silverstripe
952: [20:13:39] <simon_w> Time goes so slow while I'm waiting for the time when I'm allowed to start breaking things
953: [20:15:34] <ss23> woohoo, I own wwwnreddit.com now! :D
954: [20:16:43] <simon_w> Oh, I should tell pingdom I'm about to start breaking things
955: [20:20:23] <simon_w> Okay, so I can pause it but I can't schedule downtime?
956: [20:20:25] * Colin[pi]_Mac has joined #silverstripe
957: [20:20:30] <simon_w> People like this thing?
958: [20:21:42] <Pyromanik> ss23: what is a wwwn?
959: [20:21:56] <Pyromanik> also
960: [20:22:12] <Pyromanik> how to make field specific JS to do it's thing when you load a new thing in the cms?
961: [20:25:03] <madmatt> Pyromanik: squatting on bitflipped domains
962: [20:25:46] <madmatt> Pyromanik: e.g. http://nakedsecurity.sophos.com/2011/08/10/bh-2011-bit-squatting-dns-hijacking-without-exploitation/
963: [20:26:27] <Pyromanik> madmatt: but n is no where near .
964: [20:26:30] <Pyromanik> well
965: [20:26:34] <Pyromanik> near, but not close.
966: [20:27:42] <Pyromanik> oh
967: [20:27:52] <Pyromanik> shit hardware corrupting dns cacehs.
968: [20:28:00] * Pyromanik shrugs
969: [20:28:07] <Pyromanik> gl with that ss23
970: [20:31:36] <Pyromanik> ss23: you should totally register hotmale.com too, y'know... just in case.
971: [20:32:04] * zlincoln has joined #silverstripe
972: [20:32:15] <madmatt> yeah, not someone accidentally typing the wrong letter, cosmic rays messing with RAM :)
973: [20:32:19] <zlincoln> does anyone know how favicons work in 3.1?
974: [20:32:56] * UncleCheese quit (Quit: UncleCheese)
975: [20:32:58] <Avro> Pyromanik: ever thought about investing in a tinfoil hat? :D
976: [20:33:51] * wilr has joined #silverstripe
977: [20:34:20] <simon_w> Woo, time to break things!
978: [20:34:26] <Colin[pi]_Mac> morning all
979: [20:34:33] <zippy__> moring
980: [20:34:43] * UncleCheese has joined #silverstripe
981: [20:42:56] <zlincoln> hi aaron!
982: [20:44:45] * wilr quit (Ping timeout: 244 seconds)
983: [20:46:46] <catcher> Pyromanik, entwine it?
984: [20:49:35] * zlincoln quit (Ping timeout: 250 seconds)
985: [20:50:44] <Pyromanik> catcher: mmm.
986: [20:51:05] <Pyromanik> but then need different init scripts for back to front. Seems a wee bit wasteful (DRY and all)
987: [20:54:00] <catcher> Pyromanik, you can also bind it to an element high enough in scope that it doesn't reload, but that probably doesn't solve your init problem.
988: [20:54:58] <Pyromanik> catcher: help me understand $.entwine('udf', function($){
989: [20:55:26] <Pyromanik> catcher: it's not an init problem. It's a re-load issue.
990: [20:55:53] <Pyromanik> ie, works first load (if there's a field), fails on every load after that (that isn't a physical redirect)
991: [20:56:35] <catcher> Pyromanik, I use this one $('.cms-content-fields').entwine({ onmatch: function(jQuery){ /* do your thang */ });
992: [20:56:52] * gelignite has joined #silverstripe
993: [20:56:54] <Pyromanik> why onmatch?
994: [20:57:19] <catcher> 'cause it always succeeds
995: [20:57:30] <Pyromanik> mmm, but that's not it's intended use :<
996: [20:58:35] <catcher> Pyromanik, My purpose is just to have something that will re-fire on ajax loads. Like document.ready, but doesn't break after one.
997: [20:59:15] <Pyromanik> oh, maybe that is the intended use.
998: [20:59:27] <Pyromanik> I dunno, I just read the tutorial.
999: [21:00:34] <catcher> Pyromanik, with this simple example, it's the same as binding a field action handler (click, change, whatever) with a parent element that's above the reload scope.
1000: [21:00:48] <Pyromanik> mm
1001: [21:01:41] <catcher> I think even $('.cms yourfield').on('whatever', function(){ /* do your thang */}); would do the trick
1002: [21:02:55] <Pyromanik> yeah, it would. Until the CMS loads a new page.
1003: [21:03:10] <Pyromanik> that's pretty much what happens now.
1004: [21:04:14] <catcher> Pyromanik, if it's just an ajax load and not an actual page load, it should persist.
1005: [21:06:46] * wilr has joined #silverstripe
1006: [21:09:11] <ss23> 09:33:29 <@madmatt> yeah, not someone accidentally typing the wrong letter, cosmic rays messing with RAM :)
1007: [21:09:18] <ss23> People are always like "you're kidding right?" when you explain it!
1008: [21:10:56] <simon_w> so much red in nagios!
1009: [21:12:06] <simon_w> Ooh, a host is red. Haven't seen that before.
1010: [21:13:49] <Colin[pi]_Mac> red means it's running faster
1011: [21:13:53] <simon_w> Dammit, nuked both memcache and /tmp
1012: [21:14:46] <wilr> simon_w psh call back when you nuke something important
1013: [21:15:16] <simon_w> Like that time I locked myself out of a server and was the only one that could SSH in?
1014: [21:15:50] <wilr> nice work
1015: [21:16:04] <simon_w> Okay, one server updated. On to the next one
1016: [21:16:33] * SphereSilverNL quit (Remote host closed the connection)
1017: [21:17:23] <ajmitch> better to be the only one who can ssh in than blocking all ssh with iptables
1018: [21:17:44] <simon_w> Oh, done that too
1019: [21:17:56] <simon_w> Empty the iptables rules, forgot it defaulted to DROP
1020: [21:18:24] <catcher> what's the best way to paginate a grouped list? Double-wrapping appears to be too good to be true.
1021: [21:20:55] <Pyromanik> group a paged list.
1022: [21:21:05] <Pyromanik> ?
1023: [21:21:11] <Pyromanik> mebbe not
1024: [21:22:33] <Stomach> is there an easy way to remove shortcodes from content, for a preview section for example
1025: [21:28:22] <catcher> Stomach, you could regex out the contents of square brackets in a model function
1026: [21:28:34] <Stomach> yeah I'm just writing that now
1027: [21:28:45] <Stomach> couldn't find anything after 10 minutes googling
1028: [21:29:27] <Stomach> might have a look at adding those kind of options to the parser, being able to set "don't parse" or "remove from content" could be nice
1029: [21:29:34] <Stomach> for specific controllers
1030: [21:30:09] * coldblooded01 has joined #silverstripe
1031: [21:31:00] <coldblooded01> any tutorials out there on adding new fields into user defined forms? I want to add colorpicker. extends to EditableFormField but then what?
1032: [21:31:04] <coldblooded01> wilr
1033: [21:31:21] <Pyromanik> colourpicker so shit
1034: [21:31:27] <coldblooded01> :O
1035: [21:31:36] <coldblooded01> anything better?
1036: [21:31:49] <Pyromanik> and coldblooded01, just read editabletextfield
1037: [21:31:49] <coldblooded01> https://github.com/dimension27/silverstripe-color-picker
1038: [21:32:04] <madmatt> Stomach: You could add a method to HTMLText which does it and submit it as a PR to framework. It'd certainly be useful
1039: [21:32:07] <Pyromanik> yes, but dimension27 writes the worst code I've ever seen anywhere ever.
1040: [21:32:36] <coldblooded01> i see
1041: [21:32:43] <Pyromanik> and colorpicker isn't theirs.
1042: [21:33:00] <Pyromanik> they just wrote a basic ss formfield to encapsulate it.
1043: [21:33:18] <Pyromanik> it's not too bad, so far as other things I've seen from there
1044: [21:33:38] <Pyromanik> but I imagine you'll have some not so nice times with userforms and getting the colourpicker to pop up.
1045: [21:33:53] <coldblooded01> ok
1046: [21:33:57] <wilr> coldblooded01 subclass and override what you need to override. Once you flush you should see the class in the backend
1047: [21:34:03] <Pyromanik> ^
1048: [21:34:19] <Pyromanik> but so far as extending userforms to add a field, it's not too hard at all.
1049: [21:34:27] <Pyromanik> as I say, read existing fields.
1050: [21:34:39] <coldblooded01> sweet
1051: [21:34:45] <wilr> for example heres a custom UDF field for my map picker - https://github.com/wilr/silverstripe-googlemapselectionfield/blob/master/code/EditableGoogleMapSelectableField.php
1052: [21:35:00] <Pyromanik> coldblooded01: also, colourpickerfield hasn't been updated since 2.4 times, I think.
1053: [21:35:28] <Pyromanik> coldblooded01: lucky for you though, that happens to be exactly what I'm working on right now (3.1 compat)
1054: [21:35:43] <coldblooded01> yeah Pyromanik i noticed. I'll do some work on implementing a colorpicker editable field now and let you know how it goes
1055: [21:35:58] <coldblooded01> :O
1056: [21:36:01] <Pyromanik> coldblooded01: just start by making your own version of textfield.
1057: [21:36:04] <Pyromanik> that's all it is.
1058: [21:36:08] <Pyromanik> then add the validation
1059: [21:36:15] * chillu quit (Quit: chillu)
1060: [21:36:34] <Pyromanik> which so far as I recall just delegates to the form field validation (so no biggie, see EditableEmailField)
1061: [21:36:50] <Pyromanik> then hopefully I can give you an actual updated ColourPickerField to use
1062: [21:37:21] * chillu has joined #silverstripe
1063: [21:38:31] <Stomach> @madmatt yeah I'll have a look at it
1064: [21:39:01] <coldblooded01> Pyromanik: sweet
1065: [21:39:29] <coldblooded01> i'll wait for your colorpicker for ss 3.1
1066: [21:40:32] <ss23> the tip of my nose is itchy :(
1067: [21:40:39] <simon_w> amputate
1068: [21:40:47] * Colin[pi] has joined #silverstripe
1069: [21:40:48] <ss23> ;_;
1070: [21:40:52] <Pyromanik> ss23: indicates sexual arousal.
1071: [21:41:03] <guzzlefry> 0.o
1072: [21:41:06] <simon_w> Wearing the dress again ss23?
1073: [21:41:10] <ss23> ;___;
1074: [21:41:14] <ss23> pls
1075: [21:41:15] <Pyromanik> _____
1076: [21:41:20] <Pyromanik> I guess A!
1077: [21:41:24] <Pyromanik> P?
1078: [21:41:31] <ss23> lol :(
1079: [21:43:05] <simon_w> dist-upgrade is sloooow
1080: [21:48:35] <simon_w> Yay, nagios is all green again
1081: [21:49:00] <zippy__> debian or ubuntu?
1082: [21:49:16] <zippy__> damn... this sites main style sheet is 17k lines long!
1083: [21:50:14] <Colin[pi]> wow and I thought my stylesheet that re-skins the CMS is big at 2.2k lines
1084: [21:51:01] <zippy__> yea she's bloated, time to dust me selectors
1085: [21:51:27] <guzzlefry> zippy__: Bootstrap/LESS?
1086: [21:51:55] <zippy__> guzzlefry: yes, and I am not taking into account the bootstrap css files, this is the css that sites on top of all that
1087: [21:52:19] <pippy> zippy__: what site is this? the largest one i ever worked on was 4k
1088: [21:52:24] <Colin[pi]> but... how?
1089: [21:52:56] <zippy__> Colin[pi]: purchased theme.... designer is show casing everything...
1090: [21:53:08] <Colin[pi]> ohhh.. lame
1091: [21:59:38] <Pyromanik> zippy__: sounds like they used default bootstrap and then tried to override everything rather than modify bootstrap.
1092: [21:59:50] <Pyromanik> or whatever
1093: [22:01:35] <simon_w> Yay, ansible is lots faster now :)
1094: [22:17:47] * Jakx has joined #silverstripe
1095: [22:17:56] <Colin[pi]> lol: http://i.imgur.com/ocWDwcU.jpg
1096: [22:18:47] <Jakx> yo
1097: [22:19:27] <Jakx> lol
1098: [22:19:53] <simon_w> yolo?
1099: [22:20:01] <Colin[pi]> YOLO SWAG
1100: [22:20:26] <Jakx> what conventions can I follow when returning my own errors? i.e object properties like message, code, type etc... what types of errors match what codes...?
1101: [22:23:02] <simon_w> codes are just CSS classes that get stuck on the field
1102: [22:37:25] * micmania1 has joined #silverstripe
1103: [22:37:35] * Jakx quit (Ping timeout: 268 seconds)
1104: [22:38:06] * spronk2 has joined #silverstripe
1105: [22:38:36] <Ryan-Toast> Colin[pi]: Thatw was hilerious.
1106: [22:38:39] <spronk> pyro
1107: [22:38:46] <spronk> mad props for that hair
1108: [22:38:54] <spronk> also, wtf is with all the substations in the north island exploding
1109: [22:40:38] <Pyromanik> fuck yeh, nailed it.
1110: [22:41:03] <Pyromanik> spronk: what?
1111: [22:41:08] <Pyromanik> spronk: were you in here?
1112: [22:41:11] <spronk> plato tweet
1113: [22:41:14] <Pyromanik> wtf
1114: [22:41:37] <Pyromanik> oh fuck me, rofl
1115: [22:41:44] <spronk> :D
1116: [22:41:58] <spronk> who wouldn't want to with a mane like that
1117: [22:42:02] <Pyromanik> I wanted to write "Gidday ladies" on it, but I wasn't allowed :<
1118: [22:42:12] <spronk> HAHA
1119: [22:42:31] * terryapodaca has joined #silverstripe
1120: [22:42:59] <Pyromanik> (note the finger)
1121: [22:43:14] <terryapodaca> https://www.whatsyourhealthy.com/ <--- anyone ever built a site like this on the SS framework?
1122: [22:43:19] <simon_w> Huh, apparently Haywards went bang. That's no good.
1123: [22:43:29] <Pyromanik> but spronk re: substations - probably possums
1124: [22:44:13] <spronk> haha
1125: [22:44:14] <spronk> yeah.....
1126: [22:44:19] <spronk> there have been heaps oif issues appaeently
1127: [22:45:58] <simon_w> Apparently in that massive wind storm in September, haywards had one connection left
1128: [22:46:42] <simon_w> Which is rather worrying, since it's what gives power to most of the north island during winter
1129: [22:47:57] <spronk> yeah..
1130: [22:47:59] <spronk> and now it's blown up
1131: [22:48:05] <spronk> and..
1132: [22:48:07] <spronk> POWER OUTAGERS
1133: [22:48:17] <spronk> one of my mates works at transpower, was telling me some pretty disturbing stuff agew ago
1134: [22:48:47] <simon_w> Isn't there no redundancy in the south island side of things at all?
1135: [22:49:08] <spronk> who knows
1136: [22:49:13] <spronk> but we're better off than you guys :P
1137: [22:49:30] <simon_w> Wellington City's fine :p
1138: [22:49:38] <simon_w> It's just everything north of us
1139: [22:49:44] <spronk> yeah, until the SI-NI power link gets severed
1140: [22:49:49] <spronk> and auckland steals all your juice
1141: [22:50:07] <simon_w> Like what's happened now?
1142: [22:50:11] <spronk> what's that? your island doesn't generate enough power on its own? luls
1143: [22:50:13] <simon_w> Makara farm powering Wellington
1144: [22:50:27] <Pyromanik> TIL comments at the beginning of a yaml file fuck the config system over.
1145: [22:51:09] <Pyromanik> spronk: mainland!
1146: [22:51:43] <simon_w> WE control that farm and most of the internal infrastructure, so we're fine when it's windy
1147: [22:52:01] * joelpitt_ quit ()
1148: [22:52:08] <spronk> whcih is most of the time
1149: [22:52:18] <spronk> ...and one of the reasons why i won't live in wellington
1150: [23:09:32] * CodeTrap quit (Quit: CodeTrap)
1151: [23:13:58] * Marvanni_ has joined #silverstripe
1152: [23:13:59] * Marvanni_ has left #silverstripe
1153: [23:23:10] * Ryan-Toast quit (Quit: Ryan-Toast)
1154: [23:23:45] <simon_w> Wellington has BurgerFuel
1155: [23:23:51] <simon_w> ss23, should we get some?
1156: [23:23:57] <Pyromanik> coldblooded01: http://www.filedropper.com/colourpickerfield
1157: [23:24:00] <Pyromanik> updated.
1158: [23:24:13] <Pyromanik> :)
1159: [23:24:19] <ss23> simon_w: Today? Sure! Just sending a email for now
1160: [23:24:27] <Pyromanik> an email.
1161: [23:24:29] * mirrors has joined #silverstripe
1162: [23:25:50] <simon_w> one of those new fangled electronic email things
1163: [23:26:20] <mirrors> can only tell me now the silverstripe search results are paginated....i cant see where the results are wrapped in a PaginatedList
1164: [23:26:25] <mirrors> how*
1165: [23:26:29] * micmania1 quit (Ping timeout: 248 seconds)
1166: [23:27:08] * wilr quit (Ping timeout: 260 seconds)
1167: [23:28:24] * Ryan-Toast has joined #silverstripe
1168: [23:29:06] <ss23> simon_w: cool done, want it now?
1169: [23:29:16] <spronk> we have wendy's now
1170: [23:29:23] <simon_w> ss23, may as well
1171: [23:29:30] <ss23> chur, eta?
1172: [23:29:37] <spronk> Pyromanik: you been to the new wendehs
1173: [23:29:37] <simon_w> spronk, that'd only matter if wendy's was actually good
1174: [23:29:45] <spronk> wendy's is decent
1175: [23:29:47] <simon_w> ss23, 3 minutes
1176: [23:30:02] <spronk> i'd say... slightly less than burgerfuel in price to quality
1177: [23:30:05] <ss23> kk, quick today!
1178: [23:30:16] <simon_w> ss23, hmm, waiting for James, so from now
1179: [23:30:32] <ss23> kk
1180: [23:36:26] * gelignite quit (Quit: http://bit.ly/nkczDT)
1181: [23:38:01] <coldblooded01> Pyromanik: :D cheers, ill throw it now
1182: [23:38:09] * wilr has joined #silverstripe
1183: [23:42:48] <coldblooded01> Pyromanik: http://littlemonkey.co.nz/products/custom-loyalty-app/order-loyalty-application/ in action
1184: [23:45:02] <coldblooded01> a bit glitchy, not sure if its the colour picker js or bootstrap designs
1185: [23:47:05] * UncleCheese quit (Quit: UncleCheese)
1186: [23:47:25] <Ryan-Toast> How did you turn on ajax validation for it?
1187: [23:58:10] * UncleCheese has joined #silverstripe

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