#silverstripe IRC Log

IRC log for 29 January 2014

All timestamps are in UTC.

1: [00:05:50] * UncleCheese quit (Quit: UncleCheese)
2: [00:14:02] <antmas> back, the Honda i mentioned before drives real nice :D
3: [00:14:10] <Colin[pi]> :D
4: [00:16:30] <antmas> been a while since I had a car with cruise control :P
5: [00:17:14] <antmas> or even workind AC for that matter...
6: [00:17:18] <antmas> working*
7: [00:17:30] * UncleCheese has joined #silverstripe
8: [00:17:59] <simon_w> Oh right, I can't flush=1 on live. Dammit, what's the flag...
9: [00:18:53] <ss23> Sure you can!
10: [00:18:57] <ss23> flush=1&isDev=1!
11: [00:18:59] <ss23> :D
12: [00:19:10] <simon_w> Yeah, that doesn't work either :p
13: [00:19:41] <simon_w> ansible-playbook /etc/ansible/plays/pocketrent.yml -sK -e 'code=false flush=true'
14: [00:19:45] <simon_w> That's what I want
15: [00:32:51] <simon_w> Yay! HHVM 2.4's going to land on Friday :)
16: [00:34:06] <ss23> yay!
17: [00:34:11] <ss23> 2.4 is the version that lasts a long time
18: [00:34:15] <ss23> it will be years before 3.0
19: [00:34:16] <ss23> :)
20: [00:34:22] <ss23> :D
21: [00:34:58] <simon_w> It'll be 8 weeks before 2.5, which'll be able to run SS straight off :p
22: [00:35:02] <simon_w> (in theory)
23: [00:36:11] <ss23> Oh, DOM support?
24: [00:36:23] <simon_w> Pfft, nah. No one cares about that :p
25: [00:38:14] * willr quit (Remote host closed the connection)
26: [00:39:15] <ss23> lol
27: [00:39:21] <ss23> "Links? SCREW DAT"
28: [00:39:39] <ss23> We could deply it to this one site if it supported DOM tbh
29: [00:39:46] <variable_office> is there a way to have a form submit as soon as one of the fields is edited rather than have the user submit with a button?
30: [00:39:49] <ss23> Like, it is literally the slowest site we have, CPU bound, 20 second load times
31: [00:41:16] * antmas_ has joined #silverstripe
32: [00:42:05] <simon_w> ss23, so open an issue for it and post a bounty
33: [00:42:18] * willr has joined #silverstripe
34: [00:42:19] * antmas quit (Ping timeout: 245 seconds)
35: [00:42:41] <ss23> simon_w: No!
36: [00:42:48] <ss23> simon_w: I'd rather do it myself than pay someone else to do it
37: [00:42:48] <ss23> :P
38: [00:43:20] <guzzlefry> variable_office: javascript
39: [00:44:30] <ss23> https://github.com/asmblah/uniter In the future, every language is Javascript
40: [00:44:50] <ss23> BBL NOMS
41: [00:44:56] <guzzlefry> ss23: Don't talk to me like that. :P
42: [00:45:05] <guzzlefry> Javascript will ruin us all.
43: [00:45:47] <antmas_> mmm dat node.js
44: [00:45:54] * antmas_ is now known as antmas
45: [00:49:26] <pippy> have the guys at silverstripe ever thought of ditching entwine and using backbone.js?
46: [00:50:40] <antmas> pippy: I thought the the 2 were supposed to compliment each other?
47: [00:52:33] * chillu_23 quit (Quit: chillu_23)
48: [00:55:23] <pippy> i think the silverstripe cms doesn't even use backbone.js
49: [00:55:34] <pippy> but i could be wrong
50: [00:57:53] <pippy> i've used entwine to write some custom cms fields, and i've had a lot of random bugs crop up
51: [00:58:01] <pippy> mostly because entwine regiseters fields
52: [00:59:24] <simon_w> pippy, this comes up on the mailing list about every 6 months.
53: [01:06:06] <antmas> simon_w: does the discussion every get anywhere?
54: [01:06:21] <simon_w> antmas, yes, it's not going to happen
55: [01:06:30] <ss23> 13:49:26 < pippy> have the guys at silverstripe ever thought of ditching entwine and using backbone.js?
56: [01:06:33] * antmas plays tiny violin
57: [01:06:37] <ss23> MY PREFERENCE WOULD BE WE DITCH ALL THAT FUCKING JAVASCRIPT
58: [01:08:12] <guzzlefry> good luck :P
59: [01:08:18] * UncleCheese quit (Quit: UncleCheese)
60: [01:08:25] <guzzlefry> it's all javasript!
61: [01:09:00] <antmas> ss23: do you guys have js devs specificallyy?
62: [01:09:07] <antmas> bah, can't type
63: [01:09:16] <simon_w> antmas, they don't
64: [01:09:19] <ss23> yeah
65: [01:09:25] <simon_w> They barely have any frontend people!
66: [01:09:26] <ss23> we do o.o
67: [01:09:29] <ss23> lol
68: [01:09:32] <simon_w> They barely have any people!
69: [01:09:37] <antmas> lol
70: [01:09:52] <simon_w> And then ss23 doesn't even do what he's hired to!
71: [01:09:54] <antmas> I wouldn't even know where to start with redoing the front-end
72: [01:09:57] <simon_w> WRITE SOME DOCS ALREADY
73: [01:10:01] <ss23> :(
74: [01:10:37] <guzzlefry> simon_w: You might need to file a complain with the doc supervisor, cam.
75: [01:10:42] <ss23> My start would be "Make this work 100% without JavaScript"
76: [01:10:44] <ss23> guzzlefry: PLS
77: [01:10:45] <ss23> PLS.
78: [01:11:01] <guzzlefry> :P
79: [01:11:05] <simon_w> guzzlefry, cam can't even merge in docs changes!
80: [01:11:19] <guzzlefry> then why am I writing docs?!
81: [01:12:08] <simon_w> To make them better?
82: [01:12:21] <simon_w> Get willr to merge them :p
83: [01:13:07] <guzzlefry> oh
84: [01:17:35] <pippy> writing a cms frontend with no js? challange accepted
85: [01:18:01] <pippy> though prepare for a 2meg sitetree
86: [01:18:08] <pippy> and 100,000 dom elements
87: [01:18:40] <antmas> what else would one use besides JS?
88: [01:18:47] <ss23> HTML
89: [01:18:48] <antmas> would any of you*
90: [01:18:48] <ss23> BITCHES
91: [01:18:53] <antmas> LOL
92: [01:19:08] <ss23> The word "fucking" has been filtered from the search because Google SafeSearch is active
93: [01:19:15] <ss23> http://motherfuckingwebsite.com/
94: [01:19:18] <ss23> And it's fucking perfect
95: [01:20:41] <antmas> lol
96: [01:20:43] <antmas> love that
97: [01:22:03] <guzzlefry> http://programming-motherfucker.com/
98: [01:22:05] <guzzlefry> yay
99: [01:23:54] <antmas> never a bad time to post that guzzlefry
100: [01:26:36] <ss23> Oh I disagree
101: [01:26:44] <ss23> What about if a gang called the "programming mother fuckers" is started
102: [01:26:48] <ss23> and someone is murdered by them
103: [01:27:17] <ss23> And just after they have the funeral, they come back, and they're like "I swear if someone posts that website, I'm going to kill myself"
104: [01:27:23] <ss23> Boom, it is now a bad time to paste that webiste
105: [01:27:27] * ss23 pops a 9 in antmas's ass
106: [01:28:00] <antmas> ;__;
107: [01:29:22] <antmas> I wonder if I could talk the mayor down to 7k if I say I'll vote for him
108: [01:29:26] <antmas> :D
109: [01:29:38] <ss23> lolwut?
110: [01:30:05] <antmas> ss23: I'm test driving his car he's selling
111: [01:33:15] <ss23> haha
112: [01:33:30] * Liquide has joined #silverstripe
113: [01:36:47] * azureknight has joined #silverstripe
114: [01:37:19] <variable_office> i extended the member class and now anytime i try to edit i get a data validation error.
115: [01:37:20] <azureknight> Yo
116: [01:37:48] <variable_office> I have not set email as being required anywhere
117: [01:39:32] <pippy> what programming language would a real gangstar use?
118: [01:41:44] <antmas> pippy: .NET
119: [01:41:47] <antmas> C#
120: [01:42:25] * robert_ quit (Quit: Connection reset by traffic clause.)
121: [01:44:02] * ObiWanShanobi quit (Quit: Leaving...)
122: [01:49:27] <pippy> i was goign to say lisp
123: [01:50:00] <antmas> ...Chemical Bothers just came on Spotify radio
124: [01:50:03] * antmas loses his mind
125: [01:50:17] <antmas> \o/
126: [01:50:23] <antmas> \o\
127: [01:50:26] <antmas> 0=
128: [01:50:30] <antmas> =o
129: [01:50:43] <antmas> |o|
130: [01:57:35] <antmas> quiet afternoon
131: [01:59:11] <azureknight> Enjoying yourself?
132: [02:10:19] <antmas> not anymore, headphones went flat :|
133: [02:19:06] * UncleCheese has joined #silverstripe
134: [02:29:29] <Colin[pi]> antmas: see, whatever happened to cables?
135: [02:32:15] <simon_w> Maybe they got steam rolled?
136: [02:32:36] <Colin[pi]> has happened to me :(
137: [02:32:40] <antmas> simon_w: -_-
138: [02:32:55] <simon_w> antmas, that's what they'd look like!
139: [02:33:03] <antmas> Colin[pi]: I only got them for work for the headset
140: [02:34:14] <antmas> lol http://www.stuff.co.nz/technology/games/30013172/huge-online-battle-destroys-600k-of-ships
141: [02:34:37] <Colin[pi]> haha yeah I saw that on reddit yesty
142: [02:34:58] <Colin[pi]> dat frame rate
143: [02:35:05] <antmas> I used to play EVE a LOT
144: [02:35:28] <antmas> enough to put "I know Excel really good" on my CV afterwards
145: [02:42:44] <Colin[pi]> antmas: http://www.youtube.com/watch?v=E8RyEi_2SkM
146: [02:43:59] * UncleCheese quit (Quit: UncleCheese)
147: [02:44:34] <antmas> Colin[pi]: heh
148: [02:46:56] <azureknight> Anybody done some sort of front-end filtering on objects?
149: [02:47:39] <azureknight> Upcoming project wants the user to be able to use a dropdown menu to return objects based on the filter chosen.
150: [02:48:26] * UncleCheese has joined #silverstripe
151: [02:49:17] <azureknight> I've thought about using javascript or something... Though that doesn't seem like a lot of fun to write. :D
152: [02:49:46] <willr> azureknight well you can use js but have a standard form fallback
153: [02:50:35] <azureknight> willr I had been looking into js for it. But I've used SS's pagination and wondered if there was some sort of similar option.
154: [02:51:19] <willr> an easy way to do the js version is have a change handler on each of the form fields, on change submit the form via ajax then your callback takes the template response and replaces your content with the ajax version off the server
155: [02:52:24] <azureknight> Ahh... Interesting. I hadn't thought of that. That's still slightly beyond my skillset however. But the method makes sense.
156: [02:54:10] <azureknight> And if I don't get this figured out... they want to use WP for the site. Ugh.
157: [02:54:28] <willr> Ha would be just as hard in WP :P
158: [02:54:43] <Colin[pi]> probably more
159: [02:54:45] <willr> I would just hack up some menu module.
160: [02:55:10] <willr> I do a non trivial amount of wordpress and I feel dirty at most of their solutions to things.
161: [02:55:55] <guzzlefry> What controls whether or not a menu item is shown?
162: [02:56:09] <willr> guzzlefry page? ShowInMenus
163: [02:56:18] <guzzlefry> situation: I only want to throw the "My Streams" page if the user has streams.
164: [02:56:32] <simon_w> guzzlefry, canView()
165: [02:57:11] <guzzlefry> Is that something I define? >_>
166: [02:57:12] <willr> Wouldn't a better way would be to have the My Streams page and on that if the user has no streams include links to add a stream?
167: [02:57:19] <guzzlefry> I don't see it as overridable.
168: [02:57:33] <guzzlefry> willr: That's how I'd do it. I don't write the specs though. :/
169: [02:57:38] <antmas> guzzlefry: ShowInMenus should be overridable
170: [02:57:51] <guzzlefry> hrm
171: [02:57:56] <guzzlefry> I don't see it. :/
172: [02:57:59] <willr> function ShowInMenus() { return "panda"; }
173: [02:58:07] <willr> or whatever
174: [02:58:22] <willr> true / false I just wanted to write panda
175: [02:58:37] <guzzlefry> does panda eval to true? :P
176: [02:58:48] <azureknight> @willr I might start returning panda on everything. :O
177: [03:00:05] <guzzlefry> Where is ShowInMenus defined?
178: [03:00:52] <Colin[pi]> sitetree?
179: [03:01:48] <azureknight> Indeed. Sitetree
180: [03:02:07] * travis-ci has joined #silverstripe
181: [03:02:08] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1824 (3.1 - 6d9d530 : Will Rossiter): The build passed.
182: [03:02:08] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/93085b9660ee...6d9d53059c59
183: [03:02:08] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/17811558
184: [03:02:08] * travis-ci has left #silverstripe
185: [03:02:28] <willr> guzzlefry it's a database field, but like everything else you can override with a method
186: [03:02:37] <willr> yay travis-ci
187: [03:02:41] <guzzlefry> oh!
188: [03:02:43] <guzzlefry> :P
189: [03:02:44] <azureknight> Hmm. I think if I'm going to use a simple jquery type of function, the hardest part will be the returning of what they want based on the dropdown items.
190: [03:02:49] <guzzlefry> reminds me
191: [03:02:49] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
192: [03:03:09] <guzzlefry> I have a wonderful pull request that documents such things. :)
193: [03:03:23] <guzzlefry> Well, for Framework, CMS DataObjects are next.
194: [03:13:39] * Bollig|DesignCty has joined #silverstripe
195: [03:17:26] <Ryan-Toast> Panda shall be my new foo
196: [03:18:10] <Ryan-Toast> I usually return "Fucking work", which has got me in trouble in the past. Panda seems more friendly.
197: [03:19:52] <azureknight> http://codepen.io/azureknight/full/818958655cc484a2ee1654ee114368a7
198: [03:19:56] <azureknight> This might be my simplistic solution.
199: [03:21:10] <willr> azureknight so your function will have a DataList right? then you just need to add filters for each of your search queries if there set i.e if($this->request->requestVar('Type')) $list->filter('Type', $this->request->requestVar('Type');
200: [03:21:41] <azureknight> Yeah.
201: [03:21:43] <azureknight> What you said.
202: [03:21:54] * azureknight attempting to sound smart.
203: [03:23:57] <azureknight> Ah. Yes I see what you mean.
204: [03:24:52] <azureknight> Had to read it a couple of times. I'm still such a newbie. Haha.
205: [03:26:46] <azureknight> And here I thought I was just gonna loop the options in my jquery~
206: [03:31:18] <unsignedint> has anyone come across this error before: "Couldnt run query: INSERT INTO Page_Versions Duplicate entry for key 'RecordID_Version'"
207: [03:31:37] <unsignedint> I am using SS 2.4.13 and this never used to be an issue
208: [03:31:48] <unsignedint> I can create pages, but updating them produces that error
209: [03:31:56] <unsignedint> I have also ran a /dev/build to no effect
210: [03:32:36] <Ryan-Toast> Must be running a create function instead of an edit one.
211: [03:32:51] <unsignedint> I am clicking "Save & Publish" in the CMS
212: [03:32:58] <unsignedint> on an existing page
213: [03:33:14] <guzzlefry> 0.o
214: [03:33:50] <guzzlefry> Sounds like it should be running an update query. :P
215: [03:34:28] <unsignedint> well it is POSTing to admin/EditForm
216: [03:34:33] <unsignedint> so you'd think so
217: [03:34:48] <guzzlefry> So this is new after updating 2.4?
218: [03:35:12] <unsignedint> no, this is a site that has been on 2.4.13 for a while and I only just noticed it when I tried to update some content recently
219: [03:40:07] <Ryan-Toast> Guys, please take some time to read this important post from the reddit admins concerning the future of the site: http://blog.reddit.com/2014/01/important-reddit-announcement.html
220: [03:41:00] <simon_w> Is it going away?
221: [03:42:39] <Ryan-Toast> simon_w the article?
222: [03:42:49] <simon_w> reddit
223: [03:42:49] <Ryan-Toast> Or reddit?
224: [03:42:57] <Ryan-Toast> More information inside.
225: [03:43:11] <simon_w> Yeah, I don't care enough to read it
226: [03:44:59] <Ryan-Toast> simon_w: You should read it.
227: [03:45:22] <simon_w> Why?
228: [03:47:38] <Ryan-Toast> simon_w: Because dinosaurs.
229: [03:47:46] <simon_w> Meh
230: [03:54:52] * DigNZ quit (Quit: DigNZ)
231: [03:56:00] * willr quit (Quit: willr)
232: [03:58:47] <Colin[pi]> Ryan-Toast: wat
233: [04:04:30] * nickmolhoek quit (Quit: nickmolhoek)
234: [04:18:52] * robert_ has joined #silverstripe
235: [04:19:35] * robert_ quit (Max SendQ exceeded)
236: [04:23:58] * joelpittet has joined #silverstripe
237: [04:40:36] <spronk> lol @ non readers.
238: [04:41:11] <guzzlefry> I'm sofa king angry at this internet connection. -_-
239: [04:44:09] * cloph has joined #silverstripe
240: [04:44:38] * cloph_away quit (Ping timeout: 264 seconds)
241: [04:44:56] <guzzlefry> So guys
242: [04:45:31] <guzzlefry> I need to find a sane way to export to CSV an order with multiple items. Any ideas?
243: [04:49:03] <spronk> using what?
244: [04:50:28] <joelpittet> php.net/fputcsv
245: [04:51:00] * UncleCheese quit (Quit: UncleCheese)
246: [04:51:34] <guzzlefry> spronk: SilverStripe magic
247: [04:51:53] * UncleCheese has joined #silverstripe
248: [04:56:10] * DigNZ has joined #silverstripe
249: [04:57:10] * DigNZ quit (Client Quit)
250: [04:58:03] * DigNZ has joined #silverstripe
251: [05:00:40] * DigNZ quit (Client Quit)
252: [05:01:23] * willr has joined #silverstripe
253: [05:01:27] * DigNZ has joined #silverstripe
254: [05:01:31] * DigNZ quit (Client Quit)
255: [05:03:01] * UncleCheese quit (Quit: UncleCheese)
256: [05:03:06] * DigNZ has joined #silverstripe
257: [05:04:53] * DigNZ quit (Client Quit)
258: [05:05:16] * DigNZ has joined #silverstripe
259: [05:05:31] * DigNZ quit (Client Quit)
260: [05:05:45] <azureknight> This filtering is gonna go terribly... I can feel it.
261: [05:05:47] <azureknight> http://codepen.io/azureknight/pen/818958655cc484a2ee1654ee114368a7
262: [05:11:29] * DigNZ has joined #silverstripe
263: [05:16:59] * DigNZ quit (Quit: DigNZ)
264: [05:17:28] <spronk> guzzlefry: what are you trying to export from though/
265: [05:17:54] <guzzlefry> hrm
266: [05:18:01] <guzzlefry> I should probably find out what format they actually need..
267: [05:38:09] * willr quit (Quit: willr)
268: [06:31:41] * willr has joined #silverstripe
269: [07:22:53] * zippy__ quit (Quit: zippy__)
270: [07:45:00] * iamss has joined #silverstripe
271: [07:45:24] <iamss> Hello SilverStripe!
272: [07:45:52] <iamss> I have a question? How do I set my controller not to get indexed by search engines?
273: [07:47:12] <iamss> The url to access the controller is www.domain.com/account
274: [07:47:15] <guzzlefry> iamss: robots.txt is probably the best you can do
275: [07:47:50] <guzzlefry> That I can think of.
276: [07:47:59] <iamss> guzzlefry: robot.txt can avoid search engines from indexing www.domain.com/account ??
277: [07:48:40] <guzzlefry> It tells them not to.
278: [07:48:55] <guzzlefry> There's no guarantee they won't still do it.
279: [07:50:35] <iamss> guzzlefry: I think robot.txt is for directories right?
280: [07:52:35] <iamss> I am looking at X-Robots-Tag of headers
281: [08:05:13] * iamss quit (Ping timeout: 245 seconds)
282: [08:12:52] <ss23> Hey! Listen ^.^
283: [08:29:32] * UncleCheese has joined #silverstripe
284: [08:33:45] * Bollig|DesignCty quit (Ping timeout: 252 seconds)
285: [08:39:52] * azureknight quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
286: [08:50:28] * willr quit (Quit: willr)
287: [08:56:23] * kinglozzer has joined #silverstripe
288: [09:08:40] * violetina has joined #silverstripe
289: [09:23:33] * zippy__ has joined #silverstripe
290: [09:27:09] * Pyromanik has joined #silverstripe
291: [09:38:56] * r3v3rb has joined #silverstripe
292: [09:40:26] <r3v3rb> here goes, client has asked me to host under IIS - I would tell her to stick with Apache or Lighttpd and open source offerings... what woudl your opinions be?
293: [09:40:34] <r3v3rb> would*
294: [09:48:04] * zippy__ quit (Quit: zippy__)
295: [09:52:31] * joelpittet quit ()
296: [09:57:10] * UncleCheese quit (Quit: UncleCheese)
297: [09:59:27] * UncleCheese has joined #silverstripe
298: [10:06:05] <Zauberfisch> r3v3rb: agreed
299: [10:06:22] <r3v3rb> Zauberfisch: give me a killer reason...
300: [10:06:25] <Zauberfisch> why would you want to use IIS unless you need to because you asp
301: [10:06:42] <Zauberfisch> r3v3rb: I think the question is more, is there a killer reason to use IIS?
302: [10:06:54] <r3v3rb> there in lies the problem, they have an in-house development team providing web-services via .net/asp
303: [10:07:05] <Zauberfisch> silverstripe sort of works now with IIS, but still works better with apache if you ask me
304: [10:07:27] <r3v3rb> I suggest separating the frontend website from the business logic for security but they aren't listening
305: [10:07:36] <Zauberfisch> benefits of apache is the list of extensions that you have avaliable
306: [10:08:19] <r3v3rb> is IIS still slow to serve pages, the last time I had any dealing with it, 8 yrs ago, it was really slow
307: [10:08:43] <Zauberfisch> no idea, haven't done any performance tests
308: [10:14:05] <Zauberfisch> r3v3rb: IIS has an alternative for mod rewrite, but for many other modules it has not
309: [10:14:19] <Zauberfisch> but depends on what you need exactly
310: [10:14:41] <Zauberfisch> if its a simple website that has no special needs, I guess IIS works
311: [10:14:52] <r3v3rb> well, i think I'll go with honesty over bullshit and just say I am not familar with IIS enough to offer an informed decision
312: [10:15:03] <r3v3rb> familiar*
313: [10:15:13] <Zauberfisch> I can respect that
314: [10:15:37] <r3v3rb> and just say that the site would require extra testing at their end by their experts to ensure they are completely happy with the results
315: [10:16:13] <r3v3rb> and I hold no obligation to fix errors found that are not reproduced under apache...
316: [10:16:20] <r3v3rb> ta da!
317: [10:16:28] <r3v3rb> get out of jail clause
318: [10:17:03] <Zauberfisch> one thing that might be a problem is: I am not sure how up2date the web.config files are
319: [10:17:09] <Zauberfisch> I know that the .htaccess is up2date
320: [10:17:24] <Zauberfisch> like they added the yml files for example since the config system now uses yml
321: [10:17:28] <Zauberfisch> no idea about iis
322: [10:17:43] <Zauberfisch> but if they are IIS, they can write the config files them selfs
323: [10:27:24] <r3v3rb> indeed, I think I made that quite clear to them in my recent email that for IIS they are basically taking on the role of web admin themselves... ;)
324: [10:27:59] <r3v3rb> I am happy to administer their site under apache but not IIS - although I may not even have access to it so...
325: [10:32:31] * g4b0_ has joined #silverstripe
326: [10:45:58] <Pyromanik> hooaaahhh
327: [10:46:08] <Pyromanik> I got a job r3v3rb
328: [10:46:38] <Pyromanik> [23:06] <Zauberfisch> why would you want to use IIS unless you need to because you asp
329: [10:46:42] <Pyromanik> mono?
330: [10:46:58] <Pyromanik> under linux, afaik deals with that. Although might just be .net, so *eh*
331: [10:47:19] <r3v3rb> Pyromanik: congratulations!
332: [10:47:34] <r3v3rb> that has buggered up my future request for help though!
333: [10:47:37] <kinglozzer> Congrats Pyromanik, is that the one you were talking about yesterday?
334: [10:47:43] <kinglozzer> I was sort of in/out of here :P
335: [10:47:55] <Pyromanik> r3v3rb, maybe, maybe not.
336: [10:48:05] <Pyromanik> kinglozzer, yesterday? probably
337: [10:48:13] <kinglozzer> About Codeigniter I think?
338: [10:48:14] <Pyromanik> not the one with the stupid test though.
339: [10:48:17] <Pyromanik> kinglozzer, ah,yeh.
340: [10:48:18] <kinglozzer> Or they sometimes use that
341: [10:48:20] <r3v3rb> Pyromanik: okay, cool
342: [10:48:43] <Pyromanik> I haven't seen/signed anything yet, just a verbal acceptance.
343: [10:48:55] <Pyromanik> Had to go apply for an NI number :<
344: [10:49:19] <Pyromanik> buracracy! Yaaaaaaaay (he said super unenthusiastically)
345: [10:49:26] <r3v3rb> Pyromanik: sweet, you'll get a UK Pension in 40 years!
346: [10:49:43] <Pyromanik> r3v3rb, but kicked out of the country in less than 2!
347: [10:50:15] <Pyromanik> At which point I suspect I'd be able to survive for roughly a month on UK pension!
348: [10:50:17] <Pyromanik> :P
349: [10:50:24] <r3v3rb> hmm, not sure then how long you need before you qualify
350: [10:51:30] <Pyromanik> hmm?? qualify for what?
351: [10:51:40] <r3v3rb> that pension fund
352: [10:51:52] <Pyromanik> ~40 years I guess :P
353: [10:52:24] <r3v3rb> not as long as that i think
354: [10:52:31] <Pyromanik> I dunno. I have no recourse to public funds at all, so dunno. If I could get out of paying for pension I'd probably take that option. But it seems to be pretty set in stone over here.
355: [10:52:37] <r3v3rb> right time to go, i'm drowning here
356: [10:52:45] <Pyromanik> righto, good luck!
357: [10:52:51] <r3v3rb> Pyromanik: I need it
358: [10:52:54] <Pyromanik> if you need help... just sing out
359: [10:52:59] * r3v3rb sings
360: [10:53:02] <Pyromanik> I don't start until monday
361: [10:53:25] <r3v3rb> fancy thrashing out a responsive grid for me for a site?
362: [10:53:36] <Pyromanik> plus if I do work for you, you can be my other referee :P
363: [10:53:50] * r3v3rb reconsiders
364: [10:53:52] <r3v3rb> lol
365: [10:53:53] <Pyromanik> hahaha
366: [10:54:18] <Pyromanik> I dunno what that even means, or why you'd offer a job to someone BEFORE asking for referees, but hey. Whatevers.
367: [10:54:42] <r3v3rb> bbiab
368: [10:54:53] <Pyromanik> gonna go watch some banshee :D bbl
369: [10:55:32] * r3v3rb quit (Read error: Connection reset by peer)
370: [10:55:55] * r3v3rb has joined #silverstripe
371: [10:56:14] * Shashitechno has joined #silverstripe
372: [10:57:29] <Shashitechno> Hello guys, I am using ss 2.4, and trying to set my custom mailer
373: [10:57:37] <Shashitechno> but it throws error class Email not found
374: [10:57:52] <Shashitechno> although works fine on ss 3.1
375: [10:58:06] <Shashitechno> any ideas ?
376: [11:01:56] <Pyromanik> well Email is still a class in 2.4
377: [11:02:08] <Pyromanik> do you have the full error?
378: [11:03:29] <Shashitechno> Pyromanik: error: Class 'Email' not found in /var/www/clickheremedia/sapphire/security/Member.php on line 1692
379: [11:19:13] * UncleCheese quit (Quit: UncleCheese)
380: [11:20:11] <Shashitechno> Pyromanik: any fix ?
381: [11:22:03] * g4b0_ quit (Ping timeout: 252 seconds)
382: [11:27:15] * hemant has joined #silverstripe
383: [11:27:39] * hemant is now known as Guest90321
384: [11:28:36] <Guest90321> Hi there
385: [11:29:05] <Guest90321> can anyone explain how can I install simplepie on blog ?
386: [11:32:03] <Guest90321> Hi Simon
387: [11:33:03] <Guest90321> I have installed blog on SS 3.1
388: [11:33:32] <Guest90321> but I am not able to get the rss widget working
389: [11:34:23] * Shashitechno quit (Ping timeout: 245 seconds)
390: [11:34:30] * r3v3rb quit (Quit: r3v3rb)
391: [11:34:34] * g4b0_ has joined #silverstripe
392: [11:35:44] <Guest90321> Hi Bitran
393: [11:41:09] * Guest90321 quit (Quit: Page closed)
394: [11:43:39] * Shashitechno has joined #silverstripe
395: [12:07:47] * g4b0_ quit (Ping timeout: 272 seconds)
396: [12:11:58] * Colin[pi] quit (Ping timeout: 272 seconds)
397: [12:20:09] * g4b0_ has joined #silverstripe
398: [12:41:48] * g4b0_ quit (Ping timeout: 245 seconds)
399: [12:54:11] * Liquide quit ()
400: [12:54:43] * g4b0_ has joined #silverstripe
401: [13:13:28] * UndefinedOffset has joined #silverstripe
402: [13:13:52] * ocm has joined #silverstripe
403: [13:13:54] <ocm> howdy!
404: [13:19:21] <Pyromanik> hi
405: [13:20:44] * r3v3rb has joined #silverstripe
406: [13:22:04] <r3v3rb> anyone home?
407: [13:22:19] * Shashitechno quit (Quit: Page closed)
408: [13:27:41] <r3v3rb> getting this error 'editform' does not exist on 'CourseAdminDetailForm_ItemRequest' when calling this function 'doDuplicate' http://sspaste.com/paste/show/52e8fd69f12a6 on line 39 - does anyone know how to pass a message back from a modeladmin GridFieldDetailForm_ItemRequest class?
409: [13:49:34] * Super-ru has joined #silverstripe
410: [13:55:10] * Alfirin has joined #silverstripe
411: [13:57:02] <Alfirin> Greetings, everyone
412: [13:57:09] <Super-ru> hiiiiya buudy
413: [13:57:42] <Alfirin> I have a bit of a basic problem that I can't solve. I'm trying to install SS, but I keep getting the "magic_quotes_gpc is set to '1' in php.ini." error
414: [13:58:08] <Alfirin> I tried following the advice given in the forums, but I just can't get rid of it
415: [14:02:59] <Pyromanik> ha, that one.
416: [14:03:01] <Pyromanik> It
417: [14:03:21] <Pyromanik> It's even more fun when it's magic_quotes_gpc is set to '0' when it should be off
418: [14:03:58] <Pyromanik> Alfirin, do you have control over the host, or is it a shared host environment?
419: [14:04:52] <Pyromanik> r3v3rb, it should be documented.
420: [14:05:01] <Pyromanik> somewhere. Most likely in code.
421: [14:05:20] <r3v3rb> Pyromanik: okay i'll take a look later got to go out to a meeting in a mo
422: [14:05:21] <Pyromanik> (as in comments, not 'read code and see')
423: [14:05:26] <Alfirin> It's out of my control, I tried making my own php.ini file and put its location to the .htaccess, but it hadn't worked
424: [14:05:38] <Pyromanik> Alfirin, often doesn't.
425: [14:05:47] <Pyromanik> Alfirin, there's a line you can put directly in .htaccess
426: [14:06:00] <Pyromanik> try that (and remove the php.ini you added)
427: [14:06:33] <r3v3rb> Pyromanik: out of interest seo wise - Header->H1->a->Img(Logo) or Header->a->Img(Logo) : semantics
428: [14:06:51] * Super-ru has left #silverstripe
429: [14:06:51] <Pyromanik> Alfirin, http://www.php.net/manual/en/security.magicquotes.disabling.php
430: [14:07:00] * Super-ru has joined #silverstripe
431: [14:07:31] <Pyromanik> r3v3rb, header a img IMO. I used to do H1, but it's just silly really. It's not a header.
432: [14:07:38] <Pyromanik> err heading*
433: [14:07:49] <Pyromanik> super ru
434: [14:07:55] <Pyromanik> from NZ
435: [14:07:58] <r3v3rb> exactly :D makes me smile to see it on w3c.org though...
436: [14:08:12] <Pyromanik> is that a Super-ru like a kanga-ru or Russian in NZ?
437: [14:08:31] <r3v3rb> Pyromanik: winnie da poo ^^
438: [14:08:32] <Super-ru> I am from Russia yea
439: [14:08:36] <Alfirin> Pyromanik, Thanks
440: [14:08:36] <Super-ru> I was adopted as a kid
441: [14:08:41] <Pyromanik> oh yeh
442: [14:08:42] <Super-ru> And I live in NZ
443: [14:08:45] <Pyromanik> nice
444: [14:08:46] <Pyromanik> :)
445: [14:08:58] <Super-ru> I'm currently broke though
446: [14:09:02] <Pyromanik> so am I
447: [14:09:03] <Super-ru> Can't find a damned job
448: [14:09:06] <Pyromanik> oh really?
449: [14:09:09] <r3v3rb> I wish i'd been adopted - I might have been taller
450: [14:09:09] <Pyromanik> how old?
451: [14:09:10] <Super-ru> mmhmm
452: [14:09:12] <Super-ru> 23
453: [14:09:18] <Pyromanik> guts bruv
454: [14:09:26] <Pyromanik> it's hard.
455: [14:09:29] <Pyromanik> what do you do Super-ru?
456: [14:09:33] <Super-ru> Been applying for 5 weeks now
457: [14:09:36] <Super-ru> one response, turned down
458: [14:09:41] <Super-ru> PHP programming -_-
459: [14:09:44] <Pyromanik> yeah, but receuiters in NZ are super shit
460: [14:09:54] <Pyromanik> Super-ru, how experienced?
461: [14:10:09] <Super-ru> I've had five jobs in it
462: [14:10:16] <Super-ru> One took me to Indonesia
463: [14:10:18] <Pyromanik> that's... quite a bit.
464: [14:10:30] <Pyromanik> like, full time work, or just freelance projecty type stuff?
465: [14:10:37] <Super-ru> Contact/Projecty yeah
466: [14:10:40] <Pyromanik> oh yeh
467: [14:10:46] <Super-ru> Except Indonesia lasted a year
468: [14:10:50] <Pyromanik> how familiar are you with SS?
469: [14:11:10] <Super-ru> Not entirely familiar but I mean it's just a framework
470: [14:11:16] <Super-ru> I used 2.1 to develop uasc.co.nz
471: [14:11:21] <Pyromanik> so have used other mvc frameworks before?
472: [14:11:29] <Pyromanik> oh wow 2.1
473: [14:11:35] <Pyromanik> that's... that's terribly ancient.
474: [14:11:45] <Pyromanik> :>
475: [14:11:47] <Super-ru> I've used cake, CI, made my own simple framework, zend (for its factories) etc
476: [14:11:58] <Super-ru> I read magento
477: [14:12:19] <Pyromanik> guts magento, but good (bad) experience I guess.
478: [14:12:36] <Pyromanik> as in, a good thing to have on CV, but a bad 'experience' to dev with :
479: [14:12:37] <Pyromanik> :P
480: [14:12:42] <Super-ru> lol
481: [14:12:48] <Pyromanik> Super-ru, you're based in AKL?
482: [14:13:02] <Super-ru> I onl did it because a lot of the jobs had it in their requirements (commerce based websites ofc)
483: [14:13:03] <Super-ru> And yes
484: [14:13:06] <Super-ru> I live i the CBD here
485: [14:13:17] <Pyromanik> you're an NZ citizen right?
486: [14:13:20] <Super-ru> Yeah
487: [14:13:27] <Pyromanik> are you tied to AKL?
488: [14:13:34] <Pyromanik> or... a job in NZ is good?
489: [14:13:35] <Super-ru> Pretty much
490: [14:13:38] <Pyromanik> missus?
491: [14:13:42] <Super-ru> Lol
492: [14:13:42] <Pyromanik> :P
493: [14:13:43] <Super-ru> No
494: [14:13:49] <Super-ru> T_T
495: [14:13:53] <Pyromanik> lol, that's usually what ties a fella down :P
496: [14:14:18] <Pyromanik> Because I know a place in CHC that's hiring (at least I think they still are)
497: [14:14:30] <Pyromanik> and SS.com was also looking for PHP dev not so long ago
498: [14:14:35] <Pyromanik> but they're WLG
499: [14:14:36] <Super-ru> More that my apartment is kind of expensive and I'm behind on the payments
500: [14:14:44] <Pyromanik> although... SS AKL was hiring too I think...
501: [14:14:54] <Super-ru> I noticed back while I was still studying
502: [14:14:57] <Super-ru> A job advertised
503: [14:14:58] <Pyromanik> Super-ru, oh, so moving would be fine, so long as you can cover the rent you owe?
504: [14:15:09] <Super-ru> Yeah it would be lol
505: [14:15:11] <Pyromanik> Super-ru, they posted just after christmas I think
506: [14:15:24] <Super-ru> Hmm maybe that was another occasion then
507: [14:16:20] <Pyromanik> perhaps
508: [14:16:45] <Super-ru> Zzz
509: [14:16:52] <Super-ru> I should sleep in case someone calls in the morning lol
510: [14:18:07] <Pyromanik> http://www.silverstripe.com/about-us/careers/
511: [14:18:15] <Pyromanik> rofl
512: [14:18:24] <Pyromanik> true, 3:20am
513: [14:20:19] <Pyromanik> Super-ru, so yeh, SS still hiring. Haven't seen any news that the company in CHC has hired yet either (platodesign.co.nz)
514: [14:20:33] <Super-ru> How do SS make money
515: [14:20:38] <Super-ru> As a free framework
516: [14:21:12] <Pyromanik> as a web dev company
517: [14:21:19] <Super-ru> Oh of course
518: [14:21:37] <Pyromanik> their CMS is SS, which they made open source. But they dev corporate sites and generally bigger clients from what I've seen.
519: [14:21:54] <Pyromanik> which gets them money, makes a cool balance of client and open source work you get paid for :P
520: [14:22:03] <Pyromanik> plus they're all cool chaps.
521: [14:22:19] <Pyromanik> as are the folk at Plato
522: [14:22:35] <Super-ru> I was thinking of getting further into iOs
523: [14:22:44] <Pyromanik> But if you're in AKL, I'm sorry but I don't know anyone up there other than SS
524: [14:22:50] <Super-ru> And developing contract and selling my own apps
525: [14:23:09] <Pyromanik> not as easy as it sounds. Apps are ... not the big money makers people seem to think they are.
526: [14:23:20] <Pyromanik> I think r3v3rb could tell you a bit about that :P
527: [14:23:25] <Super-ru> I see
528: [14:23:37] <Super-ru> I was thinking less games and quirky things and more mobile software
529: [14:23:54] <Pyromanik> yeah, but in reality not many people do intensive tasks on mobiles
530: [14:24:13] <Super-ru> I see
531: [14:24:29] <Pyromanik> look at the biggest success stories and they're usually quick point of contact or 'take a note for later' type stuff (email, evernote, etc)
532: [14:25:06] <Super-ru> I was of the understanding that mobile software was going to be booming in the next 5 years
533: [14:25:19] <Super-ru> And with a generation of kids emerging they'll want it when they're professionals too
534: [14:25:32] <Pyromanik> Not to say don't do it, but in my experience (I was in your position once), it's better to earn and do stuff on the side than to invest all your time with no income and then find out it's not all it's cracked up to be, etc.
535: [14:25:37] <Super-ru> I mean a generation who grew up with it
536: [14:25:45] <Pyromanik> yeh
537: [14:25:51] <Super-ru> Yeah yeah I wasn't going to go balls to the walls iOs and hope
538: [14:25:55] <Super-ru> I meant in my free time
539: [14:25:58] <Pyromanik> Mobile seems to be a big thing, but still not so many folks taking things seriously
540: [14:26:02] <Super-ru> All I do in my free time is cycle, eat, smoke and code lol
541: [14:26:44] <Pyromanik> hehe, sounds great.
542: [14:27:50] <r3v3rb> Pyromanik: lol, only do it if your app is the 'next' big thing
543: [14:27:52] <Pyromanik> SS is a great platform for doing quick freelance jobs if you can find them.
544: [14:28:17] <Alfirin> Pyromanik, so, I put "php_flag magic_quotes_gpc Off" in the .htaccess, and the error when away but the installation doesn't work
545: [14:28:18] <Super-ru> I got the impression it was quite large for quick jobs
546: [14:28:32] <Alfirin> It just says "webpage not available"
547: [14:28:40] <Pyromanik> r3v3rb, if I had a pound for every time someone said they were making the next big thing... I'd have at least NZ$200
548: [14:28:55] <Super-ru> ^
549: [14:29:05] <Pyromanik> Super-ru, depends on your definition of 'quick'. If you want 'lightweight' or 'static html' then yeah, probably not.
550: [14:29:16] <Super-ru> I did a bunch of start-up work and they always said "we'll sell to google in a year for a billion dollars" etc
551: [14:29:58] <r3v3rb> Pyromanik: whats the exchange rate ££ to $$ these days?
552: [14:30:11] <Pyromanik> but with the adaptation power SS provides for shifiting goalposts, it's always a safe bet. Especially if you build up a repository of modules which make things like "sliding banner" much much much easier
553: [14:30:20] <Super-ru> 2:1 exact
554: [14:30:29] <Pyromanik> I could drag and drop a site together, hack up a bit of html and then load content in with the CMS, done.
555: [14:30:45] <r3v3rb> Pyromanik: I just reuse code and hack, no sliding banner is every the same!
556: [14:30:50] <Pyromanik> r3v3rb, yeh, double or half, depending on which way you're going :P
557: [14:30:58] <r3v3rb> so 100 people :)
558: [14:31:09] <r3v3rb> rotf
559: [14:31:14] <Pyromanik> r3v3rb, I know, that's why I made my module so super awesome.
560: [14:31:30] <Pyromanik> r3v3rb, yeh, but 100 sure is a pretty fuck'n big number when you think about it.
561: [14:31:43] <Pyromanik> I was trying to be more realisitic than exaggeratory.
562: [14:31:48] <Super-ru> Say you were doing an ecommerce site with a catalog of say 1500 products, expecting not enough traffic to warrant more than 1 db or nginx and wanting a psd converted to their site visually - what sort of time period would you take Pyromanik
563: [14:31:54] <r3v3rb> send it over then - does it support full width responsive sites Pyromanik ?
564: [14:32:01] <Zauberfisch> whats the average hourly rate for a SS freelancer on NZ?
565: [14:32:10] <r3v3rb> $0.5ph
566: [14:32:14] <Super-ru> $25?
567: [14:32:17] <Super-ru> At a guess?
568: [14:32:20] <Pyromanik> Super-ru, my old job I'd smack out a site in a day.
569: [14:32:27] <Pyromanik> ish
570: [14:32:35] <Super-ru> Nice
571: [14:32:36] <Pyromanik> my record I think was 8.5 hours.
572: [14:32:41] <Pyromanik> but very simple sites.
573: [14:32:54] <Pyromanik> if i were talking ecommerce, be looking at more like a week.
574: [14:32:56] <Super-ru> yeah
575: [14:32:58] <Zauberfisch> 1 side a day? thats pretty fast. any prepared templates with just color changes?
576: [14:33:05] <Pyromanik> and it'd be apache, mysql
577: [14:33:13] <Pyromanik> Zauberfisch, no all custom template.
578: [14:33:20] <r3v3rb> Pyromanik: how about sites like my accounting one
579: [14:33:20] <Zauberfisch> not bad not bad
580: [14:33:39] <Pyromanik> Zauberfisch, put it this way, if you define a day as 24 hours, sure I was home and hosed usually.
581: [14:33:42] <Alfirin> ...please?
582: [14:33:49] <Pyromanik> 'working day' more 1.5 - 3
583: [14:33:54] <Pyromanik> (8 hour days)
584: [14:33:58] <r3v3rb> :D
585: [14:34:08] <Super-ru> Pyromanik are we talking with documentation and unit testing too?
586: [14:34:13] <r3v3rb> right i got to go make myself pretty
587: [14:34:15] <Super-ru> Or just run-of-the-mill work
588: [14:34:20] <Pyromanik> Alfirin, pretty sure it's supposed to be "off" not "Off"
589: [14:34:37] <r3v3rb> Super-ru: no need to unit test front facing website in SS afaik
590: [14:34:38] <Pyromanik> check your apache error logs - it should tell you what the syntax error is in the .htaccess
591: [14:34:51] <Pyromanik> Super-ru, the fuck testing?
592: [14:34:57] <r3v3rb> lmao
593: [14:35:01] <Pyromanik> Ain't no such thing in the NZ website market.
594: [14:35:06] <Super-ru> Haha
595: [14:35:28] <Pyromanik> ain't no one care about tests. They just want it now, and for cheap. If you use it and it works, it's done.
596: [14:35:29] <Pyromanik> :P
597: [14:35:39] <Super-ru> I guess
598: [14:35:50] <Super-ru> I am a bit OCD when it comes to doc and testing though
599: [14:35:51] <Pyromanik> until the client whinges about something
600: [14:35:52] <Super-ru> and optimisation
601: [14:36:03] <Pyromanik> well, if you're anal about optimisation... guts :<
602: [14:36:14] <Pyromanik> perhaps SS not quite your thing
603: [14:36:33] <Pyromanik> not to say that it's poorly optimised, but it can be heavy on resources at times.
604: [14:36:39] <Pyromanik> particularly with image manipulation
605: [14:36:52] <r3v3rb> would you trust an web agency that uses a wp theme template for their own site...
606: [14:37:08] <Super-ru> Yeah reading through it I noticed it was pretty convoluted
607: [14:37:14] <Pyromanik> r3v3rb, I woudn't trust a web agency that uses werdderp at all.
608: [14:37:25] <Pyromanik> Super-ru, not convoluted at all!
609: [14:38:29] <Super-ru> So I've been looking at node.js
610: [14:38:32] <Super-ru> who uses it
611: [14:38:50] <Pyromanik> SS is PHP :P
612: [14:39:20] <Pyromanik> node does some cool stuff, I think kinglozzer might use it for unit tests and stuff, or something.
613: [14:39:25] <Super-ru> I'm assuming it's used for making web-API's?
614: [14:39:40] <Super-ru> Oh I guess that's another one
615: [14:39:49] <Super-ru> But why not cherrypy, existed long before node.js
616: [14:40:01] <kinglozzer> I only use it for compiling sass, minifying JS etc
617: [14:40:12] <kinglozzer> 'cause node.js is 'in' atm :P
618: [14:40:34] <Super-ru> I only asked because it's 7th biggest channel on freeno
619: [14:40:35] <Pyromanik> Super-ru, python been around longer than ruby, but rails is far more popular.
620: [14:40:42] <Super-ru> 1200+ people in the channel
621: [14:40:47] <kinglozzer> There's a task for running 'tinypng' on images too, gotta set that one up soon
622: [14:40:47] <Pyromanik> etc
623: [14:40:50] <Alfirin> Pyromanik, not to sound dumb, but... where can I find them?
624: [14:41:00] <Pyromanik> Alfirin, eh?
625: [14:44:57] <Super-ru> He's after the wild things
626: [14:45:45] <Pyromanik> Super-ru, ti gavoritye pa russki?
627: [14:46:07] <Super-ru> да
628: [14:46:17] <Super-ru> I was 7 when I was adopted
629: [14:46:17] <Pyromanik> :< f'n no unicode crap irc client
630: [14:46:52] <Super-ru> I just wrote da
631: [14:46:55] <Pyromanik> so I take it ... yeh
632: [14:46:57] <Pyromanik> :P
633: [14:47:47] <Super-ru> This is my hometown http://www.flickr.com/photos/maticulous/4545459780/ (also my photos)
634: [14:47:56] <Alfirin> Sorry, found it, nvm
635: [14:48:04] <Pyromanik> hard out, so do you have family over there still Super-ru?
636: [14:48:18] <Super-ru> Nope pyro, can I ask, where are you from by the way
637: [14:48:21] * r3v3rb quit (Quit: r3v3rb)
638: [14:48:36] <Super-ru> France o.0?
639: [14:49:37] <Super-ru> And to answer your question no
640: [14:50:06] <Super-ru> But I wanted to go into detail - my friend has a documentary about himself, he was adopted at 2 in 1995 or something, and the doco is on T.V this Sunday
641: [14:50:25] <Super-ru> He was able to meet his family over there but when I went home to meet mine they heard I was there and denied me the ability
642: [14:50:25] <Pyromanik> ya novaya zelandiya iz
643: [14:50:36] <Super-ru> This Sunday I think it's TV2
644: [14:50:38] <Super-ru> 6pm or so
645: [14:50:50] <Pyromanik> hard out
646: [14:50:56] <Pyromanik> so he's in NZ too?
647: [14:51:04] <Super-ru> Yeah
648: [14:51:09] <Super-ru> He's a friend through film/photography
649: [14:51:15] <Pyromanik> cool :>
650: [14:51:41] <Alfirin> So, ok, so, SS is trying to look for files in the wrong folder "[Wed Jan 29 14:39:18 2014] [error] [client 77.105.107.244] File does not exist: /home/r36000/domains/fsf.fi/public_html/favicon.ico"
651: [14:51:57] <Pyromanik> probably take it out of your html then.
652: [14:52:11] <Pyromanik> or path it correctly.
653: [14:52:18] <Pyromanik> or remember to always put your base tag in
654: [14:52:35] <Pyromanik> <html ...><head><% base_tag %>
655: [14:54:37] <Pyromanik> Super-ru, yeh I'm kiwi, but in UK atm.
656: [14:54:48] <Super-ru> Hence
657: [14:54:52] <Super-ru> The being awake thing
658: [14:54:59] <Pyromanik> hence knowing where there's a job opening in Christchurch :P
659: [14:55:09] <Pyromanik> and also yes.
660: [14:55:25] <Pyromanik> about to eat pizza, being awake for that helps :P
661: [14:56:11] <Pyromanik> maybe I'll make some repos on github and shuffle up all the modules I've written over the years.
662: [14:56:15] <Pyromanik> idk
663: [14:56:27] <Pyromanik> what to do with last few days before I start new job next week :<
664: [14:57:08] <Super-ru> A public repo?
665: [14:57:46] <Super-ru> Man my IRC ettiquette is terrible
666: [14:57:55] <Super-ru> I'm supposed to be naming who I respond to lol
667: [14:58:37] <Zauberfisch> Pyromanik: fix all the things
668: [14:58:42] <Pyromanik> it's ok, I'm pretty much watching the chan.
669: [14:59:03] <Pyromanik> Super-ru, yeh publics. Otherwise how will people leverage the awsome I've written?
670: [14:59:14] * Pyromanik pounds own chest and mediocre simple modules
671: [14:59:18] <Pyromanik> :P
672: [14:59:39] <Pyromanik> Zauberfisch, dunno about fix... help to pump out websites in a day maybe, yeh :P
673: [14:59:58] <Pyromanik> although when I was doing about a site a day I didn't have so many modules, I was writing the code from scratch each time
674: [15:00:13] <Pyromanik> it got tiring, and my efforts were needed elsewhere as the size of site increased.
675: [15:00:14] <Pyromanik> etc
676: [15:00:44] <Super-ru> I need codesniffer to work damnit
677: [15:04:52] <Pyromanik> what
678: [15:08:11] <Super-ru> its a plugin for sublime text that fixes your php to adhere to PSR standards
679: [15:08:21] <Pyromanik> ohyeh.
680: [15:08:42] <Pyromanik> just code it right in the first place?
681: [15:09:00] <Super-ru> OR that
682: [15:11:28] <Pyromanik> om nom nom yesterday's pizza
683: [15:17:34] * catcher has joined #silverstripe
684: [15:18:12] <Alfirin> Oh lord, it works!
685: [15:18:20] <Alfirin> Thank you, Pyromanik, thank you!
686: [15:20:05] <Zauberfisch> Pyromanik: I hear the image class is rather resource greedy and needs refactoring :P
687: [15:20:34] <Pyromanik> well done Alfirin :)
688: [15:20:39] <Pyromanik> Zauberfisch, ha!
689: [15:21:01] <Pyromanik> I'm not re-writing GD just to make SS run a bit faster :P
690: [15:22:21] <Zauberfisch> Pyromanik: you could however make the ImagickBackend work
691: [15:22:26] <Zauberfisch> its horrible broken
692: [15:24:59] <Alfirin> I celebrated too soon :( SS is a harsh mistress
693: [15:26:17] <Zauberfisch> haha
694: [15:27:00] <Zauberfisch> you just need to know how to treat her right
695: [15:27:07] <ocm> whip her!
696: [15:32:01] <Alfirin> it gave me this random pile of vomit http://pastebin.com/9kgD8PGF does it mean there's something wrong with my theme?
697: [15:32:56] <Zauberfisch> Alfirin: you are using old template syntax which is deprecated
698: [15:33:07] <Zauberfisch> do not use <% control %> with ss 3.x
699: [15:33:31] <Zauberfisch> use <% loop $Something %> if you want to loop (think of it as a foreach)
700: [15:34:01] <Zauberfisch> or use <% with $Object %> to scope it (meaning inside the with you can use $Foobar and it will translate to $Object.Foobar
701: [15:34:05] <Zauberfisch> )
702: [15:37:28] <Alfirin> I can't find any <% control %> in my theme, which used to work on 3.0
703: [15:37:36] <Alfirin> Well, not die instantly
704: [15:38:51] <Zauberfisch> Alfirin: in 3.0 it was depricated but still worked. in 3.1 it errors if you have deprecation warnings on
705: [15:39:00] <Zauberfisch> you can still disable them and it will work
706: [15:39:03] <Alfirin> ooooh I see
707: [15:39:23] <Zauberfisch> but this is not advise able, because support for it will be droped in future releases, and then your site will stop working
708: [15:40:20] * ObiWanShanobi has joined #silverstripe
709: [15:40:44] <Zauberfisch> Alfirin:I see: <% control RegisteredUsersMenu %>
710: [15:43:45] <Alfirin> Ah there it is, Dreamweaver couldn't find it for me
711: [15:44:50] <kinglozzer> (@_@;)
712: [15:49:25] * derek-b has joined #silverstripe
713: [15:56:25] * Shrike_Finland has joined #silverstripe
714: [15:58:27] <Alfirin> Hooray, I got rid of the error messages
715: [15:59:14] <Zauberfisch> Alfirin: I hope by fixing it rather than turning error reporting of (:
716: [16:00:39] <Alfirin> Haha, well that does like something I'd do
717: [16:00:43] <Alfirin> But no, I really did fix it
718: [16:16:00] * OxFF1 has joined #silverstripe
719: [16:22:33] * UndefinedOffset quit (Quit: Leaving.)
720: [16:23:52] <Pyromanik> [04:22] <Zauberfisch> Pyromanik: you could however make the ImagickBackend work
721: [16:23:52] <Pyromanik> [04:22] <Zauberfisch> its horrible broken
722: [16:23:57] <Pyromanik> it is?
723: [16:27:45] <Zauberfisch> Pyromanik: https://github.com/silverstripe/silverstripe-framework/issues/2781
724: [16:31:53] <Alfirin> Yay, new problems! I can't access any of my pages in the CMS
725: [16:35:32] <catcher> Do modeladmin validate() errors look bad for everyone?
726: [16:35:45] <catcher> Well, I shouldn't say bad, but completely different from how they work in the CMS?
727: [16:36:26] * g4b0_ quit (Quit: Sto andando via)
728: [16:36:53] <catcher> In the CMS, if validate fails, I get a red warning message at the top. If it fails in modeladmin, I get the quick fading box with more info than should be there.
729: [16:38:04] <catcher> ahh, I see it now.. it's an issue with publish on versioned modeladmin, not save per say.
730: [16:39:40] * abitran quit (Ping timeout: 252 seconds)
731: [16:43:12] <Pyromanik> Alfirin, check response body directly, it should have an error (if you haven't disabled those, and are in dev mode)
732: [16:50:34] <Alfirin> Response body? (I'm learning so much today!)
733: [16:53:43] <Alfirin> This is what happens when you put a graphic designer behind a keyboard
734: [16:54:40] <Zauberfisch> (:
735: [17:04:16] * UndefinedOffset has joined #silverstripe
736: [17:14:18] * Shrike_Finland quit (Quit: Leaving.)
737: [17:14:44] <Pyromanik> Alfirin, ah, so you've not developed websites before?
738: [17:14:55] <Pyromanik> open your dev tools, usually F12
739: [17:15:08] <Pyromanik> or right click something and choose 'inspect element' or similar.
740: [17:15:15] <Pyromanik> there'll be a network tab
741: [17:15:19] <Pyromanik> choose that
742: [17:15:55] <Pyromanik> then click "XHR" to filter out things like images. It'll be easier for you to see what goes wrong (although it's not a necessary step)
743: [17:16:03] <Pyromanik> then try to load a page in the CMS.
744: [17:16:11] <Pyromanik> you should see something come up red.
745: [17:16:17] <Pyromanik> click on it to get more details
746: [17:16:28] <Pyromanik> see 'response' section, it should list out an error message
747: [17:16:46] <Pyromanik> use the youtubes if you want a visual aid :)
748: [17:17:05] <Pyromanik> (plus then you can search specific to your browser and version)
749: [17:21:40] <Alfirin> You're my coding angel, let me tell you
750: [17:25:47] <Alfirin> Um, I logged out of the CMS, and now it just says "no data received"
751: [17:26:42] * cloph is now known as cloph_away
752: [17:28:53] * kinglozzer quit ()
753: [17:37:25] <Pyromanik> yeah well you'll need to be logged in
754: [17:37:31] <Pyromanik> if you're testing the cms
755: [17:37:46] <Pyromanik> the site needs to be in dev mode to output an error
756: [17:41:16] <Alfirin> dev mode is on, but nothing seems to do nothing
757: [17:42:37] <catcher> isn't that what nothing should do?
758: [17:43:46] <Alfirin> ...yes
759: [17:45:05] <Alfirin> So, nothing works, everything else doesn't
760: [17:51:13] * gelignite has joined #silverstripe
761: [18:10:52] * cloph_away is now known as cloph
762: [18:11:51] <cloph> Hi * - anyone having a sample of using an UnsavedRelationList or a proper way to batch-add newly created elements to the db?
763: [18:22:42] * Alfirin_ has joined #silverstripe
764: [18:24:48] * Alfirin quit (Ping timeout: 245 seconds)
765: [18:31:46] <simon_w|air> cloph, you'd use an UnsavedRelationList just like a HasManyList or ManyManyList
766: [18:34:21] * cloph 's not familiar with those either. / don't know how to use those.
767: [18:35:38] <simon_w|air> Well, what are you trying to do?
768: [18:36:50] <cloph> Let's say I want to create a team and players in php, so I can create $playerX = new Player(...); and $myteamX= new Team(...); and then would like to do $myteamX->Players()->add($playerX); - doing this for multiple teams collected in an ArrayList, and the at the end of all that would like to write all players and teams in one go/as "atomic" as possible.
769: [18:37:47] <cloph> I'd like to wipe the whole set of players/teams with newly created ones, reducing the time where there is an incomplete set stored in the database.
770: [18:38:15] <Zauberfisch> cloph: I see not why you would need a a unsaved list here.
771: [18:38:27] <Zauberfisch> how long do you expect your creating of players takes?
772: [18:38:53] <cloph> in all it is around 4000 records
773: [18:38:59] <Zauberfisch> oh, I see
774: [18:39:26] <simon_w|air> Well, UnsavedRelationList won't make it any faster than calling write() yourself on each object
775: [18:39:44] <simon_w|air> (it just loops over the contents and writes the unsaved items in it)
776: [18:39:46] <cloph> I don't want to do $playerX->write(), $teamX->write(); $teamx->Players()->add($playerx); $teamX->write()....
777: [18:40:27] <simon_w|air> You don't need that second $teamX->write()
778: [18:43:07] <cloph> What is the way to use the belong_one relation? (Player has_one parkinglot => ParkingLot, parkinglot belongs_to Player => Player) $parkinglot->Player = $playerX; doesn't seem to work?
779: [18:44:07] <simon_w|air> You need to set it up on the player, so $playerX->ParkingLotID = $parkinglot->ID
780: [18:46:02] <cloph> ah, too bad. Thx a lot for the time being :-)
781: [18:53:14] <Alfirin_> I think I'll give up for today, I'll come pester you further tomorrow
782: [18:53:30] <Alfirin_> Thank you for your help and patience with me!
783: [18:56:40] * SightUnseen has joined #silverstripe
784: [18:57:43] * Alfirin_ quit (Ping timeout: 245 seconds)
785: [18:59:32] * SightUnseen has left #silverstripe
786: [19:00:21] <catcher> Is TTL ignore on partial caches with keys specified?
787: [19:01:11] * SightUnseen has joined #silverstripe
788: [19:01:17] <catcher> ignored*
789: [19:13:19] * antmas quit (Quit: Page closed)
790: [19:16:35] <catcher> Recommendations for cms-controlled statics, preferably in modeladmin?
791: [19:22:31] * SightUnseen has left #silverstripe
792: [19:24:48] <cloph> SomeDataObject::get()->removeAll(); is rather slow - is there a faster way using silverstripe's method, or shall I just resort to TRUNCATE TABLE SomeDataObject (and relation tables)?
793: [19:28:02] <Zauberfisch> cloph: have you considered using raw sql queries considering how heavy your application is?
794: [19:28:27] <Zauberfisch> the ORM obviously can't give you the performance that a raw sql query can
795: [19:30:39] <cloph> I was using a simple catch-all table previously, and that was OK in speed (with override public function flushCache($persistent = false))
796: [19:31:00] <cloph> it seems ss3 doesn't make a difference here, so writing is rather slow in comparison...
797: [19:31:35] <cloph> that swapping isn't done all the time, so I think I can live with it.
798: [19:32:07] <cloph> Before I was truncating the table just before writing the new entries I collected in a DataObjectSet
799: [19:35:55] * antmas has joined #silverstripe
800: [19:39:53] * chillu_23 has joined #silverstripe
801: [19:41:14] * nickmolhoek has joined #silverstripe
802: [19:48:24] <Ryan-Toast> Morning everyone :)
803: [19:48:31] <antmas> le morn
804: [19:50:03] <antmas> Ryan-Toast: how long do you have to wait for insurance to rekit everything?
805: [19:50:26] <Ryan-Toast> Dunno, my boss put in a claim but they fuck around forever.
806: [19:50:47] <Ryan-Toast> They broke my headphones which puts my capacity down to 60%
807: [19:50:57] <Ryan-Toast> Need headphones to work hard.
808: [19:52:28] <guzzlefry> Your jobs provide headphones?
809: [19:52:59] <antmas> dang, yeah insurance takes forever
810: [19:57:52] * terryapodaca has joined #silverstripe
811: [19:58:17] <terryapodaca> I have a site hosted at DreamHost and they have been more than reliable
812: [19:58:38] <terryapodaca> but, I have one site that's in the last 6 months has just bogged down and is way too slow
813: [19:58:49] <catcher> terryapodaca, long time, how you been?
814: [19:59:27] <terryapodaca> I've exhausted all "speed/performance" enhancements that DH offers on their dedicated server and it's still way too slow
815: [19:59:37] <terryapodaca> hey catcher...been super busy!
816: [19:59:50] <catcher> good!
817: [20:00:13] <terryapodaca> most of you probably remember the site: http://dairymax.org/
818: [20:00:33] * joelpittet has joined #silverstripe
819: [20:00:34] <terryapodaca> so, I'm asking for better SS hosting...recommendations, etc.
820: [20:00:49] <Zauberfisch> woah, no I see what you mean by slow
821: [20:00:56] * zippy_ has joined #silverstripe
822: [20:01:19] <Zauberfisch> terryapodaca: where is it hosted?
823: [20:01:20] <catcher> wow, yeah, there almost has to be a problem.
824: [20:01:22] <unsignedint> hey does anyone know why SS strips querystring parameters off the <iframe> src attribute when its written to the page?
825: [20:01:25] <Zauberfisch> like physical location
826: [20:01:41] <Zauberfisch> unsignedint: because the HTML editor doesn't allow it
827: [20:01:41] <unsignedint> and how to tell it its a dumbfuck?
828: [20:01:51] <Zauberfisch> you need to allow them
829: [20:02:02] <unsignedint> Zauberfisch: but theyre getting saved to the database? I can see them if I manually look in the database
830: [20:02:12] <Zauberfisch> oh, intresting
831: [20:02:16] <terryapodaca> the site is hosted on the California data center for dreamhost
832: [20:02:26] <Zauberfisch> I thought html editor strips that on save
833: [20:02:27] <unsignedint> its nit stripping the whole [src] attribute, just the querystring params off the end of it
834: [20:02:31] <Zauberfisch> perhaps its something elese
835: [20:02:40] <Zauberfisch> *else
836: [20:02:41] <terryapodaca> I hear they have a better and faster clusterin another state, and asked to be moved and they said no
837: [20:02:48] <antmas> that DairyMax site...
838: [20:03:01] <antmas> ...hurts my eyes -_-
839: [20:03:31] <terryapodaca> antmas: what exactly hurts your eyes? lol
840: [20:04:02] <Zauberfisch> haha, 25 seconds to first byte
841: [20:04:37] <Zauberfisch> terryapodaca: there is something terrible wrong with that site
842: [20:04:52] <Zauberfisch> what is it doing that could take that long?
843: [20:05:13] <catcher> terryapodaca, do you have access to a slow queries log?
844: [20:06:33] <terryapodaca> catcher: where would I look?
845: [20:06:43] <antmas> terryapodaca: just not my style :P - mostly the small fonts and gradients
846: [20:07:34] <catcher> terryapodaca, here's from their site: Dedicated – Contact support and we can copy your entire slow log file, or if you have an admin user, the log is available at /dh/mysql/logs/mysql.mysql.slow.
847: [20:07:41] <antmas> terryapodaca: but I'm assuming the main issue is the speed?
848: [20:09:29] <terryapodaca> antmas: no worries. I wasn't the designer. I wasn't a huge fan of the design at first either. but it grew on me as I coded for it.
849: [20:10:22] <terryapodaca> catcher: I will have to ask for them to send it to me.
850: [20:10:39] * chillu_23 quit (Quit: chillu_23)
851: [20:10:58] <terryapodaca> I ran YSlow and it seems to hang up on the plugin for pinterest...can anyone else confirm this?
852: [20:11:31] <terryapodaca> antmas: yes, initial page load is horrid and most of the inner pages are slower than usual too.
853: [20:11:53] * antmas quit (Ping timeout: 245 seconds)
854: [20:13:20] <catcher> terryapodaca, you could kill it for a sec on the live site, and see if it speeds up a billion percent :)
855: [20:13:44] * antmas has joined #silverstripe
856: [20:17:26] * UncleCheese has joined #silverstripe
857: [20:22:18] * antmas quit (Ping timeout: 245 seconds)
858: [20:25:25] <Zauberfisch> terryapodaca: no I can not confirm pinterest beeing the one to blame
859: [20:25:38] <Zauberfisch> as I mentioned before, the time to first byte is 25 seconds
860: [20:25:55] <Zauberfisch> that means my browser is waiting for the server for 25 seconds before it can do anything
861: [20:26:26] <Zauberfisch> so that means only after 25 seconds the browser will start loading external assets (js, css, images)
862: [20:26:32] <Zauberfisch> (fonts)
863: [20:26:53] <Zauberfisch> so those 25 seconds happen on the server (or perhaps the network, but unlikely in this case)
864: [20:27:10] <Zauberfisch> my first guesses:
865: [20:27:14] <Zauberfisch> - slow DB queires
866: [20:27:22] * willr has joined #silverstripe
867: [20:27:44] <Zauberfisch> - massive ammounts of DB queires (eg ->write() or ::get() in a foreach loop)
868: [20:28:01] * Ryan____ has joined #silverstripe
869: [20:28:07] <Zauberfisch> - chache problems (eg your cach is reloading everytime)
870: [20:28:30] <terryapodaca> Zauberfisch: thanks...I have requested my slow queries like catcher said. I'm also testing a couple other things
871: [20:28:41] <Zauberfisch> - ussage of external api with php that takes long and thus the server has to way before it can send the response to the browser
872: [20:29:08] <catcher> terryapodaca, do you have a local copy of the site, are you developing straight in prd?
873: [20:29:19] <terryapodaca> local copy
874: [20:29:28] <terryapodaca> well, an old version of the local copy
875: [20:29:43] <Ryan____> My server was just upgraded by my host, and now all my silverstripe sites display a BLANK page, nothing more. Silverstripe 2.4.2 installed, PHP upgraded to 5.4.11. Any thoughts?
876: [20:30:08] <zippy_> I don't think SS 2.4 plays nice with php 5.4
877: [20:30:16] <Zauberfisch> at least not 2.4.2
878: [20:30:23] <Zauberfisch> perhaps 2.4.10
879: [20:30:31] <zippy_> I have seen errors in the manifest cache when I was using php 5.4
880: [20:30:37] <zippy_> you should be able to look in your error log for details
881: [20:30:42] <Zauberfisch> but I wouldn't count on it. read the change logs, maybe there are clues
882: [20:30:45] <Ryan____> I am trying to upgrade cms and sapphire to the latest.. what do you think my chances are?
883: [20:31:01] <zippy_> upgrade to 3.x or 2.x?
884: [20:31:06] <Zauberfisch> terryapodaca: http://www.webpagetest.org/result/140129_R0_XWR/1/details/
885: [20:31:08] <Ryan-Toast> <Ryan____> From which version?
886: [20:31:19] <Ryan____> sorry to the latest 2.x
887: [20:31:42] <zippy_> not sure, simon_w would probably know...
888: [20:31:48] <Ryan____> from 2.4.2 to latest 2.x
889: [20:31:56] <catcher> terryapodaca, just start killing things that happen site-wide on your local copy & test the response. I'd suspect Nav, footer, etc.
890: [20:32:42] <guzzlefry> Can I use a class method in DataObject::filter?
891: [20:32:52] * SphereSilverNL has joined #silverstripe
892: [20:33:19] <zippy_> Ryan____: it might be just a simple couple of methods that need to be changed, maybe lok at the error and see if you can 'fix' it
893: [20:33:30] <zippy_> would save a lot of pain depending on how many sites you had
894: [20:33:54] <Zauberfisch> Ryan____: you should update to 2.4.10, I see there have been some commits with the message containing php5.4
895: [20:34:02] <Zauberfisch> however, I am not a 100% sure it really works
896: [20:34:23] <Ryan-Toast> <Zauberfisch> I had a similar issue a few months ago, and updating to 2.4.1 fixed it.
897: [20:35:43] <Ryan____> Thanks.. right now any confirmation of my next move is great. I'll bump up to 2.4.10, and test. The blank page gives me nothing, and I can't replicate on my xampp since the php is not the same..
898: [20:35:57] <Ryan____> thanks all.. away I go.
899: [20:36:06] * Ryan____ quit (Quit: Page closed)
900: [20:36:20] <Ryan-Toast> make sure to tar.gz first....and you're gone
901: [20:38:19] <zippy_> bugger doing that, having to upgrade several sites
902: [20:38:45] * chillu_23 has joined #silverstripe
903: [20:40:46] * Ryan-Toast quit (Quit: Leaving)
904: [20:45:11] * UncleCheese_ has joined #silverstripe
905: [20:45:53] <SphereSilverNL> Ohhhh, someone upgrading to 5.4? :D
906: [20:46:20] <SphereSilverNL> Yes, get 2.4.10 (or upgrade to 3.x), it's the best (and only, afaik) way to prevent annoying notices about strict.
907: [20:46:51] <SphereSilverNL> Since 5.4, strict is part of E_ALL, thus disabling it is impossible (Unless you disable E_ALL, which is a bad idea)
908: [20:48:42] <Zauberfisch> uhm, correct me if I am wrong
909: [20:48:57] <Zauberfisch> but SphereSilverNL I believe you are in error
910: [20:49:05] <Zauberfisch> E_ALL & ~E_DEPRECATED & ~E_NOTICE
911: [20:49:16] <SphereSilverNL> I was talking about E_STRICT ;)
912: [20:50:08] <catcher> Is there any way to prevent a specific cache block from expiring?
913: [20:50:08] <Zauberfisch> shouldn't you be able to excluse strict the same way?
914: [20:50:31] <SphereSilverNL> Nope, as I said, E_STRICT is now part of E_ALL, not a separate method anymore
915: [20:50:51] <SphereSilverNL> therefor, the only way to suppress them is by disabling E_ALL
916: [20:51:01] <catcher> I'm happy w/ 10 minutes for everything except 1 section, which needs to stay permanently until the key changes.
917: [20:51:29] <SphereSilverNL> This specifically goes for E_STRICT, which is integrated with E_ALL now, because php is trying to become a good language and only support strict methods.
918: [20:51:51] <terryapodaca> catcher: HTTP::$cache_age set to 0?
919: [20:52:06] <catcher> terryapodaca, server-side cache
920: [20:52:18] <catcher> i.e. Partial/Zend
921: [20:52:35] <Zauberfisch> SphereSilverNL: uhm. http://paste2.org/dIFZK1Ox
922: [20:52:50] <terryapodaca> ah
923: [20:52:53] <SphereSilverNL> Good luck running that live ;)
924: [20:53:21] <Zauberfisch> http://paste2.org/ekp6OLXz
925: [20:53:56] <SphereSilverNL> It won't work. Trust me, I did it a few times today.
926: [20:54:18] <Zauberfisch> hmm, runs fine in my shell here
927: [20:54:28] <SphereSilverNL> Let me check my version. I'm very sure it's disabled as a separate method now :)
928: [20:55:45] * Ryan-Toast has joined #silverstripe
929: [20:56:20] <SphereSilverNL> Hmmm, firewall blocking my login :/
930: [20:56:26] <Ryan-Toast> Sure you don't want to play hockey, SphereSilverNL? :P
931: [20:56:43] <SphereSilverNL> I'm sure I won't make it in time ;)
932: [20:57:57] <SphereSilverNL> Zauberfisch: Weird you're still getting it as a separate command.
933: [20:58:01] <SphereSilverNL> "5.4.0 E_STRICT became part of E_ALL."
934: [20:58:37] <Zauberfisch> SphereSilverNL: I don't understand, what do you mean?
935: [20:59:04] <SphereSilverNL> PHP moved "strict" into a generic "all" reporting. Therefor, it shouldn't be possible to disable them again.
936: [20:59:22] <Zauberfisch> I got the part with adding it to E_ALL
937: [20:59:25] <SphereSilverNL> You, appearantly can still disable the STRICT notices. I'm curious how you did that :)
938: [20:59:47] <Zauberfisch> SphereSilverNL: E_NOTIE is also part of E_ALL, still you can disable it
939: [21:00:17] <SphereSilverNL> Yes, but those are still also addressable separately.
940: [21:00:25] <SphereSilverNL> Strict isn't anymore according to the docs
941: [21:00:35] <Zauberfisch> ah, now I see what you where talking about
942: [21:00:59] <Zauberfisch> well, I have 5.4.15 here, and E_STRICT returns 2048
943: [21:01:25] <SphereSilverNL> It should return the same as E_ALL or return 0, according to the docs.
944: [21:01:42] <SphereSilverNL> That's what I'm curious about, how did you disable strict, without disabling the error_reporting at all
945: [21:01:50] <Zauberfisch> I can see how adding E_STRICT to E_ALL makes sense, but making it impossible to disable, I can't believe that core team would do that, because this way they would break a lot of code
946: [21:02:18] <SphereSilverNL> Google for the strict errors and be amazed at how much the code breaks ;)
947: [21:02:32] <SphereSilverNL> The best answer is usually simply "disable errors"
948: [21:03:03] <unsignedint> E_ALL should be the default. it makes people write slightly less shitty code
949: [21:03:16] <Zauberfisch> http://paste2.org/UP3VZ6Op
950: [21:03:56] <Zauberfisch> this time I ran it in the normal php shell
951: [21:04:05] <SphereSilverNL> That should give a notice ;)
952: [21:04:19] <unsignedint> oh wow, learn something new everyday. I didnt realise php had an interactive shell
953: [21:04:19] <Zauberfisch> to ensure its not some fancy stuff the psysh does
954: [21:04:26] <SphereSilverNL> But still, I'm surprised how you got strict disabled. I can't get it disabled at 5.4 today :(
955: [21:04:31] <Zauberfisch> unsignedint: *nix OS only
956: [21:04:38] <unsignedint> thats fine
957: [21:04:43] <unsignedint> windows is for faggots
958: [21:04:48] <unsignedint> and so is osx
959: [21:04:51] <unsignedint> linux master race!
960: [21:05:07] <guzzlefry> ALL HAIL LINUS
961: [21:05:16] * Zauberfisch slaps unsignedint around a bit with a large trout
962: [21:05:22] <unsignedint> mirc?
963: [21:05:35] <unsignedint> Zauberfisch is on windows
964: [21:05:36] <SphereSilverNL> If I set "E_ALL & ~E_STRICT" on my VPS, I get only E_ALL, no disabled E_STRICT. A lot of googling gave me that it's just a part of PHP now.
965: [21:05:48] <SphereSilverNL> that's why I'm very curious how you disabled it.
966: [21:05:48] <Zauberfisch> well, in fact I am on a mac here, conntected to a linux server running irssi in a scrren
967: [21:05:54] <Zauberfisch> still I do have windows PCs as well
968: [21:06:07] <unsignedint> isnt the "large trout" slap message a feature of mIRC?
969: [21:06:32] <SphereSilverNL> no, not specifically ;)
970: [21:06:35] <Zauberfisch> unsignedint: perhaps. for me here its a macro I added myself
971: [21:06:54] <Zauberfisch> unsignedint: however, the psysh works on windows as well
972: [21:07:01] <SphereSilverNL> It is an old IRC-joke. mIRC is one of the few that still have it as shortcut, but most clients can still use macro's to add said remark
973: [21:07:06] <SphereSilverNL> A few also have this one:
974: [21:07:11] <Zauberfisch> http://psysh.org/
975: [21:07:17] * SphereSilverNL slaps Zauberfisch with a 50lb Unix manual
976: [21:07:27] <unsignedint> haha have not seen that one before
977: [21:07:56] <SphereSilverNL> In basic, they're just macros :)
978: [21:07:59] <unsignedint> I was first introduced to IRC 12 years ago, but I was only using it for downloading mp3's from #mp3blitz on irchighway.net
979: [21:08:16] <unsignedint> on dailup
980: [21:08:20] <unsignedint> dialup*
981: [21:08:22] <unsignedint> \o/
982: [21:08:22] * antmas has joined #silverstripe
983: [21:08:36] <SphereSilverNL> I remember dialup!
984: [21:08:52] <antmas> fook :(
985: [21:08:59] <antmas> [Warning] json_decode() expects parameter 1 to be string, array given
986: [21:08:59] <unsignedint> I lived in the wops so it was all that was available. And we had to have 2 phone lines because the dialup was on 24/7
987: [21:09:04] <SphereSilverNL> I've been recording it for the last few years. Soon, I'll be releasing my new Dubsteb album called "Dial 999 for service"
988: [21:09:06] <antmas> anyone help with this? ^^^
989: [21:09:14] <unsignedint> antmas: give it a string?
990: [21:09:19] <unsignedint> and not an array
991: [21:09:34] <unsignedint> you json_encode() arrays and json_decode() strings into arrays
992: [21:09:53] <SphereSilverNL> What unsignedint says.
993: [21:09:57] <antmas> unsignedint: hmmmm, lemme take a look
994: [21:10:15] <SphereSilverNL> Don't feed decode an array. It's like feeding a cattle to a cat
995: [21:10:24] <Zauberfisch> "give it a string?" - couldn't have said it better
996: [21:10:34] <terryapodaca> New question. any of you have experience with CloudFlare?
997: [21:10:42] * SphereSilverNL waves
998: [21:10:47] <SphereSilverNL> yes! They're awesome!
999: [21:11:02] <SphereSilverNL> Just make a rule to disable /admin*
1000: [21:11:17] <SphereSilverNL> (you can set rules in theyr advanced controlpanel)
1001: [21:11:32] <SphereSilverNL> Otherwise, the admin will be cached as well, which breaks everything
1002: [21:12:22] <SphereSilverNL> And if subdomains shouldn't be cached, make an A-record for the subdomain and set it to bypass the Cloudflare service
1003: [21:13:01] <SphereSilverNL> Hey Terry! How are you? Considering FB/Twitter, things got a bit more stable?
1004: [21:13:01] <Zauberfisch> I haven't used a caching service yet, but I suspect you also will have to disable security tokens on forms
1005: [21:13:56] <SphereSilverNL> Zauberfisch: Nope, you don't have to. Posts are realtime and hidden inputs are never cached but realtime requested, in Cloudflare's case.
1006: [21:14:11] <antmas> no luck
1007: [21:14:12] <antmas> :(
1008: [21:14:22] <SphereSilverNL> Did you feed it a JSON-string?
1009: [21:14:29] <SphereSilverNL> A random string won't work, you know?
1010: [21:14:37] <Zauberfisch> SphereSilverNL: so cloudflare fetches the form fields directly and excludes them from cache?
1011: [21:14:39] <unsignedint> haha
1012: [21:14:40] <Zauberfisch> thats nice
1013: [21:14:43] <antmas> SphereSilverNL: I'll past what I have
1014: [21:14:47] <antmas> paste*
1015: [21:14:51] <terryapodaca> SphereSilverNL: doing good my friend, things are much better now. Though I don't use FB or Twitter near as much as I use to...other than to 'share' or retweet things
1016: [21:15:38] <SphereSilverNL> I noticed, but you did get more active since a few months :)
1017: [21:15:39] <simon_w> zippy_, I know nothing! Nothing!
1018: [21:15:45] <SphereSilverNL> Glad to hear you're doing good :)
1019: [21:15:51] <antmas> Page http://www.sspaste.com/paste/show/52e96c74300e3
1020: [21:15:53] <zippy_> sssimmooonnnnnnnn!!!
1021: [21:15:57] <SphereSilverNL> yes?
1022: [21:15:59] <antmas> Data opject http://www.sspaste.com/paste/show/52e96c8310454
1023: [21:16:09] <antmas> object*
1024: [21:16:17] <antmas> I can't see any issue with either
1025: [21:16:17] <SphereSilverNL> you might want to reconsider that object :/
1026: [21:16:17] <guzzlefry> I override ShowInMenus in the DataObject right? 0.o
1027: [21:16:37] <guzzlefry> Because I don't think it's working...
1028: [21:16:41] <antmas> SphereSilverNL: why?
1029: [21:16:49] <antmas> its a big form :(
1030: [21:16:53] <SphereSilverNL> You're creating a "god Object"
1031: [21:17:08] <simon_w> zippy_, ha, I don't highlight on that!
1032: [21:17:10] <SphereSilverNL> You should split it, and handle it in a separate form-class, if you ask me
1033: [21:17:16] <unsignedint> antmas: you arent even calling a json_* function in either of those?
1034: [21:17:16] <Zauberfisch> terryapodaca: is the site also slow on a local copy?
1035: [21:17:23] <zippy_> sssiimmmooooonnnnn!!! ( simon_w )
1036: [21:17:25] <zippy_> fixed
1037: [21:17:30] <simon_w> zippy_, dammit
1038: [21:17:42] <terryapodaca> SphereSilverNL: yes, starting to...back in the saddle
1039: [21:18:19] <SphereSilverNL> antmas: Where's the json-decode?
1040: [21:18:20] <catcher> I can control cache_lifetime of an SS_Cache I create myself, but not with Partial Caching, correct?
1041: [21:18:22] <terryapodaca> Zauberfisch: in the process of pulling down a new local copy of what's in production right now to test that very same thing
1042: [21:18:33] <antmas> unsignedint: correct, because it's here http://www.sspaste.com/paste/show/52e96d1f77b37 sorry should've posted before
1043: [21:19:05] <antmas> line 188+ ^^^
1044: [21:19:17] <SphereSilverNL> terryapodaca: Good to hear you're getting things back in the saddle :D
1045: [21:19:31] <unsignedint> antmas: what makes you think $value is always a string?
1046: [21:19:46] <terryapodaca> lol...figure of speech in the States :D
1047: [21:19:51] <terryapodaca> especially Texas
1048: [21:19:55] <terryapodaca> ;)
1049: [21:19:56] <guzzlefry> public function ShowInMenus() { return false; } // Why isn't this working? 0.o It's declared inside a class that extends from Page
1050: [21:20:03] <SphereSilverNL> antmas: I use NetBeans a lot, and it often advices to slim the class and/or function down.
1051: [21:20:11] <SphereSilverNL> terryapodaca: I figured, and understood :D
1052: [21:21:14] <antmas> SphereSilverNL: understood, and I can do that after, I just need to figure out what is failing first
1053: [21:21:16] <Zauberfisch> terryapodaca: once you have a local copy, it should be farely easy to track down the general source of your performance issues
1054: [21:21:56] <Zauberfisch> terryapodaca: you can use ?showqueires=1 to get a list of DB queires, this way you can easily check if you are running queries in loops
1055: [21:21:57] <unsignedint> antmas: test $value using is_string and var_dump() in the else clause
1056: [21:22:19] <Zauberfisch> terryapodaca: you can also use xDebugs profiler to find performance issues in your php code
1057: [21:23:35] <SphereSilverNL> Zauberfisch: for profiling, I use XHProf
1058: [21:23:53] <guzzlefry> Do I need to check for ShowInMenu when looping in the template?
1059: [21:24:07] <guzzlefry> ShowInMenus rather
1060: [21:24:10] <SphereSilverNL> antmas: I think, simply checking if the value isn't an array would be a good start ;)
1061: [21:24:27] <antmas> SphereSilverNL: ok, I'll take a look
1062: [21:24:34] <antmas> thanks
1063: [21:24:50] <SphereSilverNL> if($value && !is_array($value))
1064: [21:25:22] <SphereSilverNL> and let it return $value (it will either be a non-json-string or an array I guess)
1065: [21:25:53] <Zauberfisch> guzzlefry: depends what you use to fetch the list of pages that you look
1066: [21:26:10] <Zauberfisch> guzzlefry: if you loop $Menu or $Children, then it will be checked for you
1067: [21:26:16] * gelignite quit (Quit: http://bit.ly/nkczDT)
1068: [21:26:24] <Zauberfisch> if you loop a custom Page::get() then you need to perform the check yourself
1069: [21:27:01] <guzzlefry> Zauberfisch: it's not firing...
1070: [21:27:02] <guzzlefry> I don't get this.
1071: [21:27:47] <guzzlefry> http://sspaste.com/paste/show/52e96f56ce1dd
1072: [21:28:04] * Colin[pi] has joined #silverstripe
1073: [21:28:05] <Zauberfisch> guzzlefry: ah, I see
1074: [21:28:10] <SphereSilverNL> guzzlefry: what are you trying to accomplish exactly?
1075: [21:28:27] <Zauberfisch> guzzlefry: the problem is that its done in the DB query
1076: [21:28:27] <SphereSilverNL> From that pasty, I think you want to disable the option to show items in the menu.
1077: [21:28:35] <Zauberfisch> Page:.get()->filter('ShowInMenu')
1078: [21:28:43] <antmas> SphereSilverNL: If I was to split up my classes (objects), which I want to do, how would I incorporate all the objects into 1 model admin rather than multiple?
1079: [21:28:43] <Zauberfisch> so your php code is not picked up for this
1080: [21:28:44] <SphereSilverNL> That would require to override the getSettings() thingy
1081: [21:29:22] <SphereSilverNL> antmas: Well, first of all, you wouldn't really, you would separate them into tabs with the has_one method
1082: [21:29:51] <antmas> SphereSilverNL: but, they need to be managed from 1 tab (as each table is held as a record)
1083: [21:30:04] <SphereSilverNL> Dotting I guess
1084: [21:30:07] <guzzlefry> Zauberfisch: So what are my options? Even manually checking ShowInMenus on the template won't fire the breakpoint I've set. :/
1085: [21:30:23] <SphereSilverNL> $field = TextField::create('Object.Relation.Name'); I think
1086: [21:30:24] <antmas> could I not, static $managed_models = array('ModelA','ModelB','ModelC'); perhaps?
1087: [21:30:31] <SphereSilverNL> (not sure about that)
1088: [21:30:45] <Zauberfisch> guzzlefry: setting it in the DB not an option?
1089: [21:30:55] <SphereSilverNL> The managed models would give your modeladmin multiple tabs, not handling them as one object
1090: [21:31:05] * willr quit (Quit: willr)
1091: [21:31:18] <guzzlefry> Not really, it depends on a has_many relation on the Member object.
1092: [21:31:19] <antmas> damn :P
1093: [21:31:39] <Zauberfisch> guzzlefry: so some members are not allowed to view a page?
1094: [21:31:49] <SphereSilverNL> What happens when 1 company suddenly has 2 CEO's?
1095: [21:31:58] <guzzlefry> Zauberfisch: correct
1096: [21:32:11] <SphereSilverNL> It would pretty much require a completely new object, instead of adding a minor object to the master
1097: [21:32:20] <Zauberfisch> guzzlefry: you are aware that ShowInMenu only hides it from menus? users can still access it via URL
1098: [21:32:30] <Zauberfisch> guzzlefry: so that sounds like you are not using the right thing anyway
1099: [21:32:35] <Ryan-Toast> antmas, when you added button to tthe list of shortcodes for buttons did you just seperate them with a comma?
1100: [21:32:40] <Ryan-Toast> e.g 'a, button'
1101: [21:32:43] <Zauberfisch> guzzlefry: you should have a look at canView()
1102: [21:33:05] <antmas> Ryan-Toast: huh? what's this for?
1103: [21:33:10] <Ryan-Toast> boilerplaTE
1104: [21:33:12] * willr has joined #silverstripe
1105: [21:33:31] <antmas> Ryan-Toast: oh, yes I think so
1106: [21:33:33] <SphereSilverNL> Hello master Rossi
1107: [21:33:38] <SphereSilverNL> Roshi*
1108: [21:33:42] <Ryan-Toast> antmas: sweet.
1109: [21:33:48] <Colin[pi]> morning all
1110: [21:33:48] <guzzlefry> ah, that'll work, thanks Zauberfisch
1111: [21:33:52] <Ryan-Toast> I'll add it to the repo
1112: [21:34:27] <antmas> Ryan-Toast: noice
1113: [21:34:46] <Zauberfisch> guzzlefry: http://paste2.org/PYznDg0E
1114: [21:34:58] <Ryan-Toast> antmas: How do you even add a button in TinyMCE?
1115: [21:35:08] <Ryan-Toast> did you just html it?
1116: [21:35:40] <Zauberfisch> guzzlefry: canView() is called by PHP, so it will be picked up by $Menu and $Children
1117: [21:35:50] <SphereSilverNL> just use it in your config Ryan-Toast
1118: [21:36:05] <Zauberfisch> however, you still have to do a manul check of canView() if you use Page::get()
1119: [21:36:05] <Ryan-Toast> <SphereSilverNL> Hmm?
1120: [21:36:07] <SphereSilverNL> add/remove/disable features from the wysiwyg is there
1121: [21:36:13] <Ryan-Toast> Ahh, right.
1122: [21:36:18] <SphereSilverNL> (Don't know the code by heart ;) )
1123: [21:36:46] <Ryan-Toast> I have no need for it, I was just adding the capability to https://github.com/Rhym/ss_boilerplate/blob/master/Boilerplate/code/Modules/Shortcodes/_config.php
1124: [21:37:27] <SphereSilverNL> Well, than "removeOption" I guess :D
1125: [21:37:59] <Ryan-Toast> <SphereSilverNL> I was just adding it because antmas wanted a button to be styled in a editor :P
1126: [21:38:07] <SphereSilverNL> :P
1127: [21:38:09] <guzzlefry> hrm
1128: [21:38:18] <SphereSilverNL> 6 days
1129: [21:38:31] <SphereSilverNL> It's been 6 days since I needed to recharge my tablet
1130: [21:38:35] <SphereSilverNL> I are proud
1131: [21:38:47] <guzzlefry> I have the CMS setting for the page set to "Only logged in members can view"
1132: [21:39:04] <Ryan-Toast> SphereSilverNL> This page all of the content is fromm tinyMCE, and I just add styles that you can highlight a tags with: http://webdough.co.nz/~boilerpl/widgets/typography/
1133: [21:39:04] <guzzlefry> shouldn't parent::canView() return false? 0.o
1134: [21:39:28] <SphereSilverNL> guzzlefry: that depends on your possibly custom canView()
1135: [21:40:26] <SphereSilverNL> You can never assume "true" ;)
1136: [21:40:29] <guzzlefry> The first thing I check is parent::canView() and return false if it does.
1137: [21:40:54] * UndefinedOffset quit (Quit: Leaving.)
1138: [21:41:03] <guzzlefry> nevermind, I'm a dummy.
1139: [21:41:12] <guzzlefry> The CMS setting wasn't actually set to that. :P
1140: [21:42:43] * antmas quit (Ping timeout: 245 seconds)
1141: [21:44:54] <Colin[pi]> guys.. say I have a controller, it's URL is "/booking" - and it accepts a URL segment as the booking location, e.g. "/booking/wellington"
1142: [21:45:03] <Colin[pi]> and the location is a DO, not a page
1143: [21:45:20] <Colin[pi]> can I route a form through that URL segment instead of the parent controller?
1144: [21:45:30] <Colin[pi]> i.e. "/booking/wellington/Form" instead of "/booking/Form"
1145: [21:45:42] <Colin[pi]> is that a routing / URL handler config thing?
1146: [21:46:21] <SphereSilverNL> target = $this->URLParams['URLSegment'].'/'.$this->URLParams['Action'].'/'.__function__
1147: [21:46:36] <SphereSilverNL> Doesn't that work?
1148: [21:46:53] <SphereSilverNL> It should (theoretically!) route to the location.
1149: [21:47:07] <Colin[pi]> it may do, forms/controllers are my weak point :(
1150: [21:47:22] <SphereSilverNL> but, I admit, I had a lot of trouble with this method. My solution was sending the Action as a hidden field
1151: [21:47:30] <Colin[pi]> I'm refactoring the controller at the moment because the 1st pass was shitty
1152: [21:47:31] <SphereSilverNL> and if it isn't set, set it to the current action.
1153: [21:47:59] <Colin[pi]> I would like the location to stay in the URL at all times, just for consistency
1154: [21:48:01] <SphereSilverNL> The hiddenfield, that is
1155: [21:48:32] <SphereSilverNL> With a form-post, that's not important, since the visitor ends up at the same url again, but with a thankyou
1156: [21:48:36] <Colin[pi]> oh the form will be multi-page too
1157: [21:48:41] <Colin[pi]> forgot to mention :)
1158: [21:48:48] <SphereSilverNL> ok, I retract all that I said now
1159: [21:48:51] <Colin[pi]> LOL
1160: [21:48:54] <Colin[pi]> sorry
1161: [21:49:08] <Colin[pi]> so I have hidden fields, session, db to worry about
1162: [21:49:09] <SphereSilverNL> Session rewrites I guess? (Just roughly guessing here)
1163: [21:49:31] <Colin[pi]> I could just do it with hidden fields
1164: [21:49:36] <Colin[pi]> since it's not a HUGE amount of data
1165: [21:49:41] <SphereSilverNL> Can you make it an input? Just with ?step= etc.?
1166: [21:49:43] <Colin[pi]> just like 3 pages, 5 fields or so each
1167: [21:49:52] <Colin[pi]> yeah I'm thinking that
1168: [21:50:04] <SphereSilverNL> and just run filter_input(HTTP_GET, 'step'); etc. on it?
1169: [21:50:16] <Colin[pi]> I will know more as a refactor today :)
1170: [21:50:30] <SphereSilverNL> I can only think of sessions here.
1171: [21:50:38] <Colin[pi]> one of those cases where the 1st attempt gets shitty so just throw it out and start again
1172: [21:50:43] <SphereSilverNL> Multistep requires either a lot of javascript, or sessions
1173: [21:51:03] <SphereSilverNL> One of those cases????
1174: [21:51:06] <Colin[pi]> or.. hidden fields
1175: [21:51:08] <Colin[pi]> or db
1176: [21:51:18] <SphereSilverNL> Best would be both.
1177: [21:51:45] <Colin[pi]> hmm there is a multistep module isnt there
1178: [21:51:55] <SphereSilverNL> If I got a nickle for everytime a client said "this is ``just`` a small change"
1179: [21:52:04] <SphereSilverNL> I would probably be on the bahama's now
1180: [21:52:06] <Colin[pi]> lol I had one say that this morning
1181: [21:52:14] <Colin[pi]> "A quick one if I may."
1182: [21:52:17] <Colin[pi]> yeah... right
1183: [21:52:18] <SphereSilverNL> The multistep is iffy at best, in my experience
1184: [21:52:33] <Colin[pi]> yeah that was my thinking, will just roll it myself
1185: [21:52:35] <SphereSilverNL> "I want you to fix this small issue in a few minutes"
1186: [21:52:46] <SphereSilverNL> Yes, I also want you to pay in a few minutes.
1187: [21:52:54] * antmas has joined #silverstripe
1188: [21:52:57] <SphereSilverNL> "What do you mean by pay?"
1189: [21:53:00] <antmas> thanks guys, figured it out :P
1190: [21:53:06] <Colin[pi]> HAI ANTMAS
1191: [21:53:12] <SphereSilverNL> Well, you know, the part where I actually get paid for my job?
1192: [21:53:20] <Ryan-Toast> antmas: add this to your portfolio, man: https://github.com/Rhym/ss_boilerplate/commit/744c91c119a5698ddda8ee42ed72b707cec55e32#diff-4c4404738f60bf3bbc85da79553d243f
1193: [21:53:24] <SphereSilverNL> "Nevermind than"
1194: [21:53:35] <antmas> aside from my object being stupidly named, I was saving into objects that didn't exist so can create a set of split classes now
1195: [21:53:41] <Colin[pi]> SphereSilverNL: the ones that pay 10% of your income take 90% of your time
1196: [21:53:51] <Colin[pi]> or try to, anyway
1197: [21:53:52] <antmas> thanks for your help team :D
1198: [21:53:58] <Ryan-Toast> antmas: the _layout.scss file that is.
1199: [21:54:00] <SphereSilverNL> Yep :/
1200: [21:54:19] <antmas> Ryan-Toast: awesome, thanks!
1201: [21:54:34] <SphereSilverNL> I have a new "client" now. It's the German international skate-off-thingy.
1202: [21:54:37] <antmas> still need to update for the gallery :/
1203: [21:54:53] <Ryan-Toast> Was an issue with responsive images rooting the map canvas image tools.
1204: [21:55:06] <SphereSilverNL> I told them "I do it for free, BUT don't expect I will do any favors, no importants, nothing, I will just build your website"
1205: [21:55:19] <SphereSilverNL> Anything above this offer, must be paid
1206: [21:55:27] <antmas> Ryan-Toast: is the update to include the gallery a structural change? or can I merge it with exisiting setup?
1207: [21:55:34] <SphereSilverNL> Their reaction was "We'll get someone else"
1208: [21:55:41] <Colin[pi]> -_-
1209: [21:55:41] <SphereSilverNL> Good luck with that :/
1210: [21:55:46] <Ryan-Toast> antmas: no gallery changes.
1211: [21:55:51] <SphereSilverNL> There's only one thing worse than paying a professional
1212: [21:55:59] <SphereSilverNL> It's hiring an amateur.
1213: [21:56:04] <Ryan-Toast> I'd just grab that line dof code for the scss file though.
1214: [21:56:15] <antmas> Ryan-Toast: kewl
1215: [21:56:20] <SphereSilverNL> I offered them a gift of somewhat 7k euro's
1216: [21:56:21] <Ryan-Toast> The bug fixes were for the new module format of boilerplate
1217: [21:56:28] <antmas> I won't be using a gallery anyway for the portfolio, so no need for that nayway
1218: [21:56:33] <antmas> OH
1219: [21:56:33] <antmas> ok
1220: [21:56:46] <Ryan-Toast> but that one was relevant to your code.
1221: [21:56:49] * derek-b quit (Remote host closed the connection)
1222: [21:57:04] <Colin[pi]> SphereSilverNL: yeah I have one guy I genuinely tried to help out, since he has had a shitty time... gave him a BIG discount on a quote to sort out his shitty site, this price was WELL under industry level... "nah, I'm going to get a mate to do it for me"
1223: [21:57:08] <Colin[pi]> yeah good luck
1224: [21:57:28] <antmas> Ryan-Toast: I know, I just don't want to lose my current work by changing the boiilerplate to be a module
1225: [21:57:34] <antmas> etc
1226: [21:57:35] * joelpittet has left #silverstripe
1227: [21:57:38] <Ryan-Toast> antmas: I'm also going to add a different type of gallry much like the portfolio page with an affixed thumbnail thing on the side.
1228: [21:57:53] <SphereSilverNL> Indeed. I mean, come on. I told you, this usually is around the 5 numbers in price, and you say no? Good luck
1229: [21:58:05] <Zauberfisch> terryapodaca: I am curious, mind keeping me posted of your progress?
1230: [21:58:05] * r3v3rb has joined #silverstripe
1231: [21:58:39] <Colin[pi]> SphereSilverNL: I've been updating his site for a while as a good will gesture, like 5 mins per month (his shitty site is static, yes, static)
1232: [21:58:52] <Colin[pi]> the cheap quote was for CMS, resp. design
1233: [21:58:57] * violet- has joined #silverstripe
1234: [21:59:03] <antmas> Ryan-Toast: do you want to chat tonight? I'm free to work on it (not so much last night)
1235: [21:59:08] <antmas> text chat btw
1236: [21:59:09] <Colin[pi]> a few weeks ago he emailed me asking for the login to his current site to edit it instead of me
1237: [21:59:19] <Ryan-Toast> antmas: Chat about what?
1238: [21:59:20] <Colin[pi]> had to explain to him (again) that it's static and editing raw files
1239: [21:59:29] <Colin[pi]> and that was the whole point of the cheap quote
1240: [21:59:30] <Colin[pi]> gah
1241: [21:59:38] * violetina quit (Ping timeout: 264 seconds)
1242: [22:00:02] <antmas> Ryan-Toast: I want to update from current structure to module, but am unsure as to how without losing some work :P
1243: [22:00:12] <Colin[pi]> Ryan-Toast and antmas, get a room
1244: [22:00:18] <Zauberfisch> Colin[pi]: I am sure his friend is a front page expert and can do all the fancy things like frames and table layouts
1245: [22:00:28] <Colin[pi]> <Zauberfisch>: yah :(
1246: [22:00:29] <antmas> Colin[pi]: XD
1247: [22:00:34] <Colin[pi]> anyway, not my concern now
1248: [22:00:48] <Colin[pi]> get what you pay for
1249: [22:01:07] * r3v3rb quit (Read error: Connection reset by peer)
1250: [22:01:26] <Colin[pi]> AHEM [08:52:51] <Colin[pi]> HAI ANTMAS
1251: [22:01:35] <Ryan-Toast> antmas: did you extend the modules, or did you change them directly?
1252: [22:01:38] * r3v3rb has joined #silverstripe
1253: [22:02:02] <antmas> Colin[pi]: :O
1254: [22:02:07] <antmas> Colin[pi]: HAI !!!
1255: [22:02:18] <Colin[pi]> ^_____^
1256: [22:02:45] <simon_w> Colin[pi], and you told him to get a room with Ryan-Toast
1257: [22:02:58] <Colin[pi]> I was just jealous :(
1258: [22:03:16] <r3v3rb> hi all, just tried going over an old site and what works on a local site (modeladmin search button) doesn't on the live site - the wierd thing is its only one modeladmin - two others work fine. The error returned is if ( s.cache === false && type === "GET" ) { , also I should note this is an old 2.4.13 site - any ideas?
1259: [22:03:19] <antmas> Ryan-Toast: no extensions - but if I just save my text content, assets and .scss files, I should be gravy right?
1260: [22:03:40] * Jakx has joined #silverstripe
1261: [22:03:49] <Ryan-Toast> antmas: I wouldn't bother upgrading. My personal site runs on boilerplate 1.0 poretty much. Once it's build who cares :P
1262: [22:03:57] <Jakx> yo
1263: [22:03:59] <Ryan-Toast> built
1264: [22:04:39] <antmas> Ryan-Toast: true
1265: [22:04:44] <antmas> I won't bother then
1266: [22:05:21] <Ryan-Toast> Just use it for future projects
1267: [22:05:56] <simon_w> r3v3rb, that's not much of an error message
1268: [22:06:51] <Jakx> how do you disable the default html form validation in 3.0? (but leave the php validation)
1269: [22:06:51] * BenOvermyer has joined #silverstripe
1270: [22:07:10] <BenOvermyer> Hi all.
1271: [22:07:17] <catcher> No caching: ~8sec load. Partial caching: ~1s load. SS_Caching just the data: ~8s. Am I doing something wrong?
1272: [22:08:04] <BenOvermyer> hmm
1273: [22:08:25] <simon_w> catcher, obviously
1274: [22:08:37] <simon_w> Maybe the data's not the slow part? Or you're caching wrong
1275: [22:08:59] <catcher> simon_w, hoping so :) here's the code: http://pastebin.com/17WW6EHb
1276: [22:09:47] <catcher> I've done enough testing to be confident it's using the cached data, and it seems to be there.
1277: [22:10:01] <catcher> There's a 1.2k file of serialized nonsense in the cache dir.
1278: [22:10:21] <simon_w> catcher, you're caching the DataList
1279: [22:10:38] <catcher> simon_w, I'm happy, cause you're about to tell me what I should be caching instead..
1280: [22:10:53] <simon_w> Well, what are you wanting to cache?
1281: [22:11:00] <catcher> I thought the datalist :)
1282: [22:11:26] <catcher> Basically, it's taking too long to render a page that displays a couple thousand records from the db
1283: [22:11:34] <BenOvermyer> At the risk of sounding like a total noob at SilverStripe... why do caching at the application layer at all, rather than using something like Varnish?
1284: [22:12:13] <SphereSilverNL> Varnish caches requests
1285: [22:12:15] <willr> BenOvermyer varnish is all or nothing within a request
1286: [22:12:26] <SphereSilverNL> Silverstripe-cache caches methods
1287: [22:12:31] <simon_w> catcher, well, that's not caching the query. Partial caching is the easiest option there, otherwise $result = ArrayList::create($AAP->toArray())
1288: [22:13:21] <catcher> simon_w, I'd love to use Partial, but I need to specify an infinite TTL. Any way to do that with Partial?
1289: [22:13:40] <BenOvermyer> Hmm, alright.
1290: [22:15:12] <catcher> simon_w, otherwise, someone is waiting for ~8sec every 10 minutes (I know I can increase that site-wide, but it seems to be a reasonable value).
1291: [22:15:27] <antmas> is it possible to group dataobjects into single records (form submissions) in a single ModelAdmin?
1292: [22:15:27] <r3v3rb> simon_w: no sorry, but its the line highlighted in the console as the issue
1293: [22:15:49] <r3v3rb> let me see if there is anything more
1294: [22:16:12] <simon_w> catcher, so turn it into an ArrayList and cache that
1295: [22:16:48] <catcher> simon_w, much appreciated!
1296: [22:16:50] <BenOvermyer> So, I saw that SilverStripe uses its own templating engine. Is that a module that can be replaced, or is it a core part of the CMS?
1297: [22:17:07] <simon_w> BenOvermyer, it's pretty core
1298: [22:17:23] * Jakx has left #silverstripe
1299: [22:17:23] <catcher> simon_w, my big ::get() is okay because of lazy loading, right?
1300: [22:17:24] <r3v3rb> also, rather than load the modeladmin complextablefield it just loads the ajax content into the window, no css, no nothing
1301: [22:17:53] <simon_w> catcher, well, it's fine at the moment, so hopefully
1302: [22:18:22] <BenOvermyer> Dang. Well, is there a Sublime Text addon for it?
1303: [22:19:19] <catcher> simon_w, would you recommend another way of getting the max LastEdited val?
1304: [22:19:30] <r3v3rb> simon_w: no no error, just the line error from jquery in FB - I'll check the .net panel too
1305: [22:19:31] <simon_w> catcher, oh, that's fine
1306: [22:20:39] <BenOvermyer> Ah, I see that there is! Nevermind.
1307: [22:24:35] <antmas> anyone? ^^^^
1308: [22:25:05] <simon_w> antmas, elaborate?
1309: [22:25:14] * UncleCheese_ quit (Quit: UncleCheese_)
1310: [22:25:20] <r3v3rb> woot, simon_w fixed it
1311: [22:25:39] <r3v3rb> $searchable_fields only had one item in the array
1312: [22:26:09] <simon_w> Error messages are useful and stuff!
1313: [22:26:14] <r3v3rb> lol, forget that checking wrong server
1314: [22:26:23] <simon_w> haha
1315: [22:26:32] <r3v3rb> tiredness taking over
1316: [22:26:45] <ss23> Error exception thown without stack trace on line 0
1317: [22:26:46] <ss23> SO USEFUL
1318: [22:26:47] <catcher> simon_w, that cache filesize went up to 4.4M, still taking just as long.
1319: [22:26:53] * BenOvermyer quit (Ping timeout: 245 seconds)
1320: [22:26:56] <catcher> Yet partial caching: crazy fast.
1321: [22:27:15] * Jakx has joined #silverstripe
1322: [22:27:21] <antmas> simon_w: I have a dataobject that stores data from a form, I manage it in a model admin, can I save multiple dataobjects from the same form, but as 1 record in 1 modeladmin?
1323: [22:27:58] <zippy_> antmas: just reload the page, and submit again - should give you a new record, depending on your save code (you create a new object on submit)?
1324: [22:28:48] <simon_w> antmas, check the internal metadata file. Is the timestamp (inside the file) going up each time?
1325: [22:29:12] <antmas> simon_w: yes
1326: [22:30:02] <simon_w> oops, that's supposed to be for catcher
1327: [22:30:13] <antmas> simon_w: wait
1328: [22:30:17] <antmas> ^^^
1329: [22:30:20] <antmas> yes, not for me
1330: [22:30:26] <simon_w> catcher, what I said to antmas
1331: [22:30:33] <antmas> I don't know why I respoonded :P
1332: [22:30:46] <simon_w> Crazy government workers :p
1333: [22:31:13] <ss23> DEPLOYING TO LIVE
1334: [22:31:21] <simon_w> antmas, so you want to save multiple data objects but have ModelAdmin display them as one?
1335: [22:31:27] <catcher> simon_w, nope, staying put
1336: [22:31:30] <antmas> simon_w: correct
1337: [22:31:35] <simon_w> antmas, can't
1338: [22:31:48] <antmas> simon_w: awwww :(
1339: [22:32:20] <antmas> http://www.sspaste.com/paste/show/52e97e3795ea4 this is what I have, but obviously saves 4 records (duplicated)
1340: [22:32:24] <Jakx> simon_w, antmas, with the right relationship schema you could?
1341: [22:33:47] <simon_w> catcher, you could just set the lifetime on the cacheblock cache
1342: [22:34:58] <catcher> simon_w, how will I get its name? The string generated by Partial Caching doesn't seem to map to my Max(LastEdited)
1343: [22:35:23] <simon_w> catcher, SS_Cache::set_cache_lifetime(
1344: [22:35:31] <simon_w> catcher, SS_Cache::set_cache_lifetime('cacheblock', 0)
1345: [22:35:42] <Jakx> antmas, have you considered something like DuplicateMyDataObject extends MyDataObject {} .... MyDataObject has_many Duplicates => DuplicateMyDataObject?
1346: [22:36:28] * antmas quit (Ping timeout: 245 seconds)
1347: [22:36:36] <Jakx> or not :S
1348: [22:36:52] <catcher> simon_w, isn't the partial cache dir different?
1349: [22:37:00] * antmas has joined #silverstripe
1350: [22:37:04] <simon_w> catcher, no, and doesn't matter
1351: [22:37:12] <catcher> simon_w, I'll give that a go, thanks!
1352: [22:38:50] <SphereSilverNL> Bed. Snore. Sleep.
1353: [22:39:08] <Ryan-Toast> Who the fuck writes procedural asp apps. Jesus Christ.
1354: [22:39:58] <Jakx> simon_w, is there a quick way to validate a field from within the form action?
1355: [22:40:05] <antmas> hmmmm
1356: [22:40:06] <antmas> waht do
1357: [22:40:31] <Jakx> simon_w, i.e something like $form->Fields()->getfield..... ->validate()?
1358: [22:40:48] <antmas> simon_w: could I still list multiple DataObjects on 1 ModelAdmin, but not as 1?
1359: [22:41:01] <antmas> *not grouped together etc
1360: [22:41:02] <simon_w> antmas, yes
1361: [22:41:06] <antmas> simon_w: cool
1362: [22:41:09] * Pyromanik quit (Ping timeout: 248 seconds)
1363: [22:41:21] <catcher> simon_w, _config.php for the cache_lifetime setting?
1364: [22:41:33] <simon_w> Jakx, your validator should already do that
1365: [22:41:36] <simon_w> catcher, yes
1366: [22:42:30] <Jakx> simon_w, no validator at present as I don't know a tidy way to disable the html5 validation markup. Is there a way?
1367: [22:42:55] <antmas> I mentioned this before, but like this? static $managed_models = array('objecta', 'objectb', 'objectc');?
1368: [22:43:14] <simon_w> Jakx, you can set an attribute on the form. Look at the w3c spec for what it is
1369: [22:43:20] <simon_w> antmas, yes
1370: [22:45:17] <antmas> simon_w: awesome, thank you
1371: [22:47:34] <Jakx> simon_w, solved: $form->setAttribute("novalidate", true); thx.
1372: [22:48:05] * zippy_ quit (Ping timeout: 272 seconds)
1373: [22:48:36] * SphereSilverNL quit (Quit: bye)
1374: [22:49:27] <antmas> fook, error 846 injector :(
1375: [22:54:31] <catcher> simon_w, can't seem to target the cacheblock. I expected this to work: http://pastebin.com/jV8T04K1, no?
1376: [22:54:43] <antmas> got it^^
1377: [22:55:32] <simon_w> catcher, no. You don't need the key in there, just cache block
1378: [22:55:53] <r3v3rb> so has no-one ever seen that with model admin where the ajax doesn't work and the search gets returned to the main browser removing all of left and main?
1379: [22:56:15] <catcher> simon_w, that'll kill the TTL on all cache blocks, won't it?
1380: [22:56:21] <simon_w> yup
1381: [22:56:31] <r3v3rb> yet if I go to another modeladmin in the same site it works perfectly...
1382: [22:58:44] <catcher> simon_w, so I basically have to make sure all my partial caches have good invalidation keys.
1383: [23:00:19] <catcher> simon_w, does anything else use the name 'cacheblock' aside from partial caching?
1384: [23:00:29] <antmas> simon_w: the only problem with this is that when the form submits, there are multiple dataobjects which are unrelated
1385: [23:00:31] <simon_w> catcher, nope
1386: [23:01:16] <catcher> I see - partial caches all share one named cache, just with different keys?
1387: [23:01:26] <simon_w> yes
1388: [23:02:07] <antmas> simon_w: would there be a way to relate them so that deleting or exporting 1 dataobject, would delete or export them all (within the same model admin)?
1389: [23:02:33] <simon_w> antmas, onBeforeDelete hook, don't think you can do something with export though
1390: [23:02:34] <catcher> Last q. Would it be possible/good to cache the results of a renderWith in a custom SS_Cache myself instead?
1391: [23:02:43] <simon_w> catcher, yes
1392: [23:03:09] <catcher> simon_w, greatly appreciate all the info, cheers.
1393: [23:03:54] <antmas> simon_w: ok, export not so much a necessity, submissions will be emailed out anyway, but where would onBeforeDelete hook go?
1394: [23:03:59] <antmas> never used it :O
1395: [23:04:30] <simon_w> in the DataObject
1396: [23:04:34] <simon_w> Is like onBeforeWrite
1397: [23:06:38] <antmas> simon_w: oh cool, so it can be on any of the DataObjects, how are the objects related through the hook?
1398: [23:06:50] * Jakx quit (Ping timeout: 264 seconds)
1399: [23:07:01] <simon_w> antmas, you still have to build the relation
1400: [23:07:49] <antmas> simon_w: oh, right
1401: [23:08:25] * Pyromanik has joined #silverstripe
1402: [23:08:29] <Pyromanik> [11:31] <+ss23> DEPLOYING TO LIVE
1403: [23:08:33] <Pyromanik> Living the dream!
1404: [23:08:41] <ss23> lol
1405: [23:09:02] <ss23> Evne better, I totally forgot I was in the middle of a deployment and didn't realise till like 10 mins after deploy
1406: [23:09:07] <ss23> then "OH GOD CHECK IT DIDN'T BREAK"
1407: [23:09:14] <catcher> do manual template flushes work as expected with memcached?
1408: [23:09:21] * Bollig|DesignCty has joined #silverstripe
1409: [23:12:20] * catcher quit (Quit: Leaving)
1410: [23:14:05] <antmas> simon_w: a $belongs_many_many on each object?
1411: [23:14:10] <antmas> datobject*
1412: [23:14:19] <simon_w> antmas, well, you'd need a many_many someplace too
1413: [23:14:58] <antmas> simon_w: on the page for the form perhaps?
1414: [23:15:36] <simon_w> antmas, depends on what ones you want to delete when deleting one
1415: [23:19:13] <antmas> simon_w: well, the page has 4 dataobjects loading via form, so I'd want to relate those objects to the page, and be able to select any 1 of 4 to delete (which deletes them all)
1416: [23:19:54] <guzzlefry> I keep forgetting about loadDataInto...
1417: [23:20:06] <guzzlefry> well, whatever it is that dumps form data into an object.
1418: [23:21:25] <antmas> so, would each dataobject belong to the page ($belongs_many_many) and the page define the $many_many?
1419: [23:21:26] * ObiWanShanobi quit (Quit: Leaving...)
1420: [23:34:11] <terryapodaca> I think someone already told me this, but is there a query string to see mysql queries by using the URL/?something
1421: [23:34:32] <terryapodaca> like /dev/?string
1422: [23:38:25] <guzzlefry> ?showqueries
1423: [23:38:27] <guzzlefry> I think..
1424: [23:38:40] <guzzlefry> yep, that's it
1425: [23:38:42] <guzzlefry> terryapodaca: ^
1426: [23:39:07] <terryapodaca> yep...thanks guzzlefry
1427: [23:39:17] <terryapodaca> btw, what is a guzzlefry?
1428: [23:39:40] * r3v3rb quit (Quit: r3v3rb)
1429: [23:40:02] <guzzlefry> I'm...not sure.
1430: [23:40:25] <antmas> grrr
1431: [23:40:29] <antmas> 500 on form submist :<
1432: [23:40:31] <guzzlefry> So, the ouput from ?showqueries
1433: [23:40:33] <antmas> sumit*
1434: [23:40:36] <antmas> fff
1435: [23:40:36] <guzzlefry> 0.0003ms <-- is that accurate?
1436: [23:40:39] <antmas> submit*
1437: [23:41:06] <guzzlefry> Feels like they meant 0.003 seconds
1438: [23:41:27] <guzzlefry> antmas: to the logs!
1439: [23:42:14] <antmas> guzzlefry: I think it's because I'm just redirectingBack
1440: [23:42:16] <antmas> etc
1441: [23:45:21] <antmas> maybe not :/
1442: [23:47:05] <terryapodaca> guzzlefry: my mind is burned up...
1443: [23:47:10] <Pyromanik> antmas, if it's because you're redirecting then it's the back page that's causing the issue, if not the form itself. die before redirect will tell you
1444: [23:47:14] <terryapodaca> http://www.dairymax.org/?showqueries=1 isn't that suppose to show me?
1445: [23:47:25] <Pyromanik> terryapodaca, in dev mode, yeh
1446: [23:47:30] <guzzlefry> terryapodaca: You have to be in..^ :P
1447: [23:47:34] <guzzlefry> I type too slow. :P
1448: [23:47:37] <terryapodaca> doh!!!!!!!!!!!!!!!
1449: [23:47:48] <guzzlefry> ?showqueries would be very bad in production.
1450: [23:48:03] <terryapodaca> seeeee! my mind is fried...i forgot the simplest thing!
1451: [23:48:45] <Pyromanik> alright, nite y'all
1452: [23:49:03] <antmas> Ryan-Toast: in the submit function maybe? http://www.sspaste.com/paste/show/52e9906640595
1453: [23:50:24] <Pyromanik> antmas,?
1454: [23:50:34] <antmas> Pyromanik: ?
1455: [23:51:57] <Pyromanik> is that your 500?
1456: [23:52:09] <antmas> Pyromanik: no
1457: [23:52:14] <Pyromanik> o
1458: [23:52:45] <Pyromanik> oh well, gl with that!
1459: [23:52:58] <antmas> :P lol
1460: [23:55:32] <terryapodaca> http://www.dairymax.org/?showqueries=1
1461: [23:55:48] <terryapodaca> could that Notice/Error be causing my page loads to be so slow?
1462: [23:58:35] * chillu_23 quit (Quit: chillu_23)

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