#silverstripe IRC Log

IRC log for 13 June 2014

All timestamps are in UTC.

1: [00:10:16] <antmas> zippy__: are you watching that feed still?
2: [00:10:20] <zippy__> nop
3: [00:10:31] <simon_w> Mmm, feed
4: [00:10:35] <simon_w> I should have one of those
5: [00:10:38] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
6: [00:10:46] <zippy__> maybe it's noodle time agan
7: [00:11:06] <antmas> mmmm yes I have noodle's 'cooking' right now
8: [00:13:54] * camfindlay has joined #silverstripe
9: [00:23:06] * Bollig|DesignCty has joined #silverstripe
10: [00:26:04] <Stomach> hey irogue_, tankr thanks for the shoutout :D
11: [00:32:13] <irogue_> ugh
12: [00:32:18] <irogue_> one of my clients has a new IT guy
13: [00:32:40] <irogue_> and he doesn't know the difference between domain registrar and DNS
14: [00:34:05] <antmas> irogue_: -_-
15: [00:34:13] <antmas> is he helpdesk?
16: [00:37:52] <Stomach> is he freeparking.co.nz?
17: [00:38:26] <irogue_> antmas: he's a solo "IT Consultant"
18: [00:40:42] <antmas> irogue_: lol 'consultant'
19: [00:41:35] <simon_w> irogue_, is he going to reverse engineer the PHP?
20: [00:42:34] <antmas> he'll probably just tell you buy a bunch of 3rd party apps and comment your code
21: [00:42:46] <antmas> maybe throw in some knowledge about mobile devices and phonegap
22: [00:50:04] * Ryan-Toast quit (Quit: Ryan-Toast)
23: [00:55:07] * Ryan-Toast has joined #silverstripe
24: [00:55:32] <Ryan-Toast> antmas: h god, phone gap
25: [00:56:28] * Stomach1 has joined #silverstripe
26: [00:58:47] <antmas> Ryan-Toast: but it makes your app work on all the things!!!!!1111
27: [01:08:14] <Ryan-Toast> I want to work here: http://purplerockscissors.com/
28: [01:12:29] <Ryan-Toast> Good front-end code makes me slightly aroused.
29: [01:12:43] <irogue_> only slightly?
30: [01:12:53] <Ryan-Toast> Just kidding. It makes me very aroused.
31: [01:13:05] <irogue_> that site is like, full-chub material
32: [01:13:59] <Ryan-Toast> I’d like to pick the brains of their senior front enders
33: [01:14:14] <Ryan-Toast> literally.
34: [01:14:20] <Ryan-Toast> and replace parts of my own
35: [01:14:42] <antmas> I like the look, but average users would struggle navigating that
36: [01:14:45] <antmas> imo
37: [01:14:50] <Ryan-Toast> Good.
38: [01:14:54] <Ryan-Toast> Fuck average users.
39: [01:15:01] <antmas> lol keep the peasants out
40: [01:15:27] <Ryan-Toast> Their method of vertical alignment is translating 3d, so that pretty much excludes all of IE susers, haha
41: [01:15:49] <antmas> Ryan-Toast: really? it works fine for me
42: [01:15:52] <antmas> IE10
43: [01:16:00] <Ryan-Toast> all IE users = IE9
44: [01:16:06] <antmas> ah true
45: [01:16:17] <antmas> IE10 is worse than 9 though, for a lot of things
46: [01:16:23] * DesignerX has joined #silverstripe
47: [01:16:27] <Ryan-Toast> I wish I lived in a world where I could use translate3d to move shit around
48: [01:17:01] <antmas> are those .gifs?
49: [01:17:06] <Ryan-Toast> videos
50: [01:17:07] <antmas> so smooth :O
51: [01:17:13] <antmas> what format?
52: [01:17:16] <antmas> webm?
53: [01:17:18] <Ryan-Toast> it will have a background .jpg then load the video
54: [01:17:30] <Ryan-Toast> Probs just an mp4 in a video tag
55: [01:17:53] <antmas> <3 webm
56: [01:18:00] * spronk has left #silverstripe
57: [01:18:31] <antmas> not to be that guy again
58: [01:18:40] * babak quit (Quit: Connection closed for inactivity)
59: [01:18:48] <antmas> but it looks nice, yes, but it also has the same aesthetic as EVERY web designer site
60: [01:18:53] <Ryan-Toast> they use both
61: [01:18:59] <Ryan-Toast> webm and mp4
62: [01:19:34] <Ryan-Toast> I’d love to see what options they have in the CMS.
63: [01:19:42] <Ryan-Toast> Just to see how they ahandle stuff.
64: [01:19:54] <antmas> that's not ss is it?
65: [01:19:56] * Stomach1 quit (Quit: Leaving.)
66: [01:20:08] <Ryan-Toast> I know it’s wordpress, but I’d like to see how they organised their custom post types.
67: [01:20:21] <antmas> hahah go to http://purplerockscissors.com/404
68: [01:20:25] <Ryan-Toast> antmas: nah, it’s Wordpress with angularjs on top
69: [01:20:34] <Ryan-Toast> yeah, saw that :P that’s a gif
70: [01:20:45] <Ryan-Toast> they have a bunch of gifs
71: [01:20:51] <Ryan-Toast> that load randomly for the 404
72: [01:21:00] <antmas> awesome
73: [01:21:39] <Ryan-Toast> SSigh, wish I could make cool stuff like that. But here I am making boring stuff.
74: [01:25:17] <jordanmk> hey guys
75: [01:25:32] <antmas> jordanmk: howdy
76: [01:26:06] <jordanmk> i've got a site that will have regular SilverStripe members (who sign up and login through the website as normal), as well as special members whose credentials are validated against an external API
77: [01:26:47] <jordanmk> i've created the custom login form and authenticator that first attempts to log someone in using the standard SS methods and checking for a matching Member
78: [01:27:08] <jordanmk> and if no Member is found with matching login credentials, it makes the call to the external API to see if their credentials are valid there
79: [01:27:12] <jordanmk> that's all working
80: [01:27:57] <jordanmk> what i'm not sure about is once a user's credentials are validated through the external API as being correct (i.e. they're a Special Member with no relation to the SilverStripe Member system)
81: [01:28:09] * Tanger has joined #silverstripe
82: [01:28:12] <jordanmk> how do i then go about 'logging the user in'
83: [01:28:45] <jordanmk> do i need to create a brand new Member() object for the person? do i create a SpecialMember() object that extends Member()?
84: [01:30:29] <antmas> jordanmk: we use a similar system that allows AD logins
85: [01:30:35] <antmas> ... but it's a bit of a beast :P
86: [01:31:31] <antmas> jordanmk: we use a variant of this https://github.com/hamishcampbell/silverstripe-auth-external
87: [01:32:18] <jordanmk> ah yeah, i'll take a look
88: [01:34:00] * camfindlay quit (Quit: camfindlay)
89: [01:35:11] <antmas> lol Ryan-Toast moving up in the google world?
90: [01:35:19] <Ryan-Toast> antmas: hmm?
91: [01:35:31] <Ryan-Toast> oh, right.
92: [01:35:34] <antmas> Ryan-Toast: now 4th on the list
93: [01:35:35] <Ryan-Toast> Yeah #4 now.
94: [01:35:36] <antmas> :D
95: [01:35:47] <Ryan-Toast> Hard to beat IMDB Twitter and Wikipedia.
96: [01:36:12] <antmas> I'm 8th lol and it's my twitter
97: [01:37:21] * spronk has joined #silverstripe
98: [01:37:26] <antmas> awesome, I was in Star Trek http://www.imdb.com/name/nm2884628/
99: [01:37:33] <spronk> hmm
100: [01:37:49] <spronk> anyone ever seen issues where uploadField's description appears twice?
101: [01:37:59] <Ryan-Toast> antmas: you eneed a portfolio, man.
102: [01:38:16] <antmas> Ryan-Toast: I know I know, I also need clients :P
103: [01:38:38] <Ryan-Toast> antmas: I’d offer you a position at Ryan Inc, but I don’t think you know how to use Github.
104: [01:38:46] <Ryan-Toast> Specifically the issues list.
105: [01:39:30] <antmas> lol
106: [01:39:34] <antmas> actually
107: [01:39:36] <antmas> ;__;
108: [01:41:30] * KemoNine has joined #silverstripe
109: [01:41:51] <KemoNine> Has anyone implemented a custom login form?
110: [01:42:02] <simon_w> yes
111: [01:42:26] <KemoNine> I've veen working on an age verification system that uses a custom login form to log someone in
112: [01:42:52] <KemoNine> i've got the global permissions set do disallow non-auth'd users access and if they enter a birthdate that puts the age at >=18 it'll log them in as an "Age Verified" member
113: [01:43:14] <KemoNine> the problem is I can't get my controller to show the default login form at /staff so staff members of the site can login
114: [01:45:14] <KemoNine> any ideas what i may be able to do for that particular page to override the default "only allow auth'd users to see content"?
115: [01:46:59] <simon_w> KemoNine, you can set the permissions for just that page in the Settings tab for it
116: [01:47:36] <KemoNine> i don't have a page setup in the CMS for it though
117: [01:47:47] <KemoNine> i'm working off http://tamethebackbutton.blogspot.com/2009/09/customize-your-own-silverstripe-login.html
118: [01:47:54] <KemoNine> http://tamethebackbutton.blogspot.com/2009/10/disabling-standard-authenticator-and.html
119: [01:48:29] <KemoNine> the code i have is https://github.com/mcrosson/silverstripe-age
120: [01:51:29] <zippy__> I would probably just have a form, and get them to enter their bday, if it's over 18 then set a session flag
121: [01:51:36] <zippy__> that code is creating a dummy user
122: [01:51:51] <antmas> this ^^^
123: [01:52:47] <KemoNine> if session::not18 show form?
124: [01:52:54] <KemoNine> would i be doing that check in page_controller?
125: [01:53:43] <zippy__> if(!Session::get('userIs18')) { show form
126: [01:53:50] * camfindlay has joined #silverstripe
127: [01:54:25] <Kingy> KemoNine: That would be the best place to do it unless you just want it in a few specified areas
128: [01:56:04] <KemoNine> put the check in init()?
129: [01:56:25] <KemoNine> before parent::init()
130: [02:02:41] * zippy__ quit (Quit: zippy__)
131: [02:02:41] <Ryan-Toast> antmas: apparently I’m 3rd
132: [02:26:12] <irogue_> 3rd base?
133: [02:28:54] <Stomach> ehuehuehue
134: [02:28:54] * UncleCheese has joined #silverstripe
135: [02:31:18] <antmas> oh god
136: [02:31:21] <antmas> it's only 2.30
137: [02:31:24] <antmas> halp
138: [02:31:27] <Stomach> half an hour to go!
139: [02:31:29] <Stomach> then the pub
140: [02:31:31] <Stomach> woooooooo
141: [02:31:34] <antmas> -_-
142: [02:32:15] <Stomach> I have had a good day of not doing real work today
143: [02:32:21] <Stomach> went for an adventure to silverstripe
144: [02:32:24] <Stomach> ate a pie
145: [02:32:26] <Stomach> fucking good day
146: [02:32:42] <antmas> Stomach: they're always
147: [02:32:43] <antmas> good*
148: [02:34:13] <Kingy> today is going fast
149: [02:34:15] <Kingy> it's great
150: [02:34:21] <Kingy> shitty thing is thurs/fri I work in Wellington
151: [02:34:32] <Kingy> so even though I'm out the door at 5, I'm not home until 7:30
152: [02:34:36] <Kingy> stupid train
153: [02:34:49] <irogue_> Stomach!
154: [02:34:53] <irogue_> i would like your advice
155: [02:34:57] <Stomach> eat it.
156: [02:35:06] * irogue_ eats one of your toffee pops
157: [02:35:07] <Stomach> just close your eyes and eat it
158: [02:35:07] <irogue_> happy now?
159: [02:35:12] <Stomach> okay sure, whats up
160: [02:35:15] <irogue_> lol
161: [02:35:23] <irogue_> so, my returns shit
162: [02:35:38] <Stomach> yah
163: [02:35:39] <antmas> Kingy: It's the total opposite here - so slow
164: [02:35:48] * joelpittet quit ()
165: [02:35:49] <irogue_> I have a class. That class has_one Item, and Item will be extended to has_many <myclass>
166: [02:36:12] <irogue_> because the same item could potentially be returned twice
167: [02:36:40] <Stomach> okay
168: [02:36:40] <irogue_> I was going to call the class ReturnItem, but that seems weird when it's not a 1-to-1 with Item, plus if I'm following swipestripe convention the extender class would be called Return_Item
169: [02:36:56] <irogue_> i'd love to call it Return, but that's a reserved word :P
170: [02:37:14] <irogue_> thoughts?
171: [02:37:33] <Stomach> ItemReturn? class has_one itemreturn, itemreturns => item ?
172: [02:38:11] <Stomach> language oh no
173: [02:38:17] <irogue_> yeah, guess it could work that way around
174: [02:38:53] <Stomach> its not really ideal
175: [02:39:00] <Stomach> anyone else have an idea?
176: [02:39:30] <irogue_> words are hard
177: [02:40:39] <antmas> Recieve?
178: [02:40:45] <Stomach> just call it EdDoesntKnowWhatToCallThisScrewYouGuysImGoingHome
179: [02:40:45] <antmas> I dunno
180: [02:41:01] <Ryan-Toast> HackThingItemReturn
181: [02:41:41] <Stomach> could call it a rebound
182: [02:41:44] <irogue_> Stomach: sounds good
183: [02:42:00] <antmas> ReturnServiceVariableItemMethod?
184: [02:42:09] <irogue_> and now frank, oly and I have all been pulled off hackday to deal with urgent stuff for clients :(
185: [02:42:28] <Stomach> ffs damn clients
186: [02:42:32] <irogue_> ikr!
187: [02:42:34] <antmas> I've begun to call them Cryents
188: [02:42:36] <Stomach> always on a friday
189: [02:42:46] <irogue_> tankr is displeased
190: [02:43:45] <Stomach> dont call it rebound
191: [02:43:49] <Stomach> I just thought about it more
192: [02:43:51] <Stomach> and thats a terrible name
193: [02:44:25] <irogue_> don't worry
194: [02:44:28] <irogue_> i wasn't going to
195: [02:44:30] <irogue_> terrible name
196: [02:44:31] <irogue_> :P
197: [02:44:46] <Stomach> (first synonym on the internet is never great)
198: [02:46:29] <irogue_> Stomach: janine likes you
199: [02:51:27] * chillu_23 has joined #silverstripe
200: [02:53:25] <antmas> it's the beard
201: [02:53:36] * antmas assumes Stomach still has a beard
202: [02:54:06] <irogue_> antmas: yes, a truly glorious one
203: [02:54:20] <irogue_> but no, it's the chocolate biscuits that won her over
204: [02:55:03] <antmas> my beard is in that aweful itchy 2 month stage
205: [02:55:31] <Kingy> can't even grow a beard
206: [02:55:42] <Stomach> i thought i had won her over with my charm and grace :(
207: [02:55:50] <simon_w> 2 month stage? Slow!
208: [02:56:22] <antmas> I know :(
209: [02:57:49] <spronk> my itchy stage is about 3 days lol
210: [02:58:12] <UncleCheese> been working with SilverStripe for 7 years now. For the first time, I actually have a Team has_many Players :)
211: [02:58:24] <antmas> oh it's been itchy since then too
212: [02:58:33] <irogue_> UncleCheese: and I finally saw a MemberExtension
213: [02:58:35] <Stomach> UncleCheese, really? thats unreal
214: [02:58:47] <irogue_> UncleCheese: instead of a MemberDecorator
215: [02:58:50] * irogue_ giggles
216: [02:58:53] <UncleCheese> ohhh
217: [02:58:59] <UncleCheese> Decorator is old school
218: [02:59:50] <Stomach> in my current site I have MemberExtension, MembersMemberExtension and BranchesMemberExtension
219: [02:59:51] <Stomach> lol
220: [03:00:31] <antmas> behold! http://i.imgur.com/hsYsS2e.jpg aiming for 12 months no shave
221: [03:02:20] <irogue_> such paperwork
222: [03:02:23] <irogue_> can tell that's a govt office :P
223: [03:02:49] <antmas> lol
224: [03:02:57] <antmas> that crap behind me is all mapping stuff
225: [03:04:04] <irogue_> NZGD2000 up in here
226: [03:06:10] <antmas> http://www.stuff.co.nz/national/10154451/Millions-of-swamp-spiders-spin-mega-web
227: [03:06:14] <antmas> NOPE
228: [03:07:05] <Stomach> irogue_, you doing some surveying?
229: [03:07:29] <irogue_> Stomach: nope. doing some live tracking work with LandSAR
230: [03:07:42] <Stomach> oh neat!
231: [03:08:10] * joelpittet has joined #silverstripe
232: [03:08:19] <irogue_> using PostGIS to store locations so we can query them in whatever projection we need to
233: [03:09:59] <Stomach> cool deal
234: [03:10:15] <Stomach> i wish postgres was about when i was writing popin
235: [03:10:44] <irogue_> "i wish postgres was about"
236: [03:10:45] <irogue_> OLD MAN
237: [03:10:46] <irogue_> OLD
238: [03:11:09] <Stomach> okay then "i wish postgres didnt suck so much when I was writing popin"
239: [03:11:25] <irogue_> lol
240: [03:11:42] * irogue_ was 8 when postgres came out
241: [03:12:02] <Stomach> the problem 6 years ago was that you had to compile the whole thing yourself to get it to work :(
242: [03:12:08] <irogue_> yeah
243: [03:12:19] <irogue_> still largely the case with PostGIS
244: [03:12:54] <Stomach> it probably has a lot less memory leaks now though :D
245: [03:13:21] <Stomach> wtf was I doing compiling database engines by the way
246: [03:13:28] <Stomach> i can barely write css
247: [03:18:13] <Ryan-Toast> Stomach: lol
248: [03:19:21] <Stomach> I've been doing front end work all week
249: [03:19:24] <Stomach> its just a bad idea
250: [03:19:40] <Ryan-Toast> Stoamch: link?
251: [03:19:54] <Stomach> its in dev :P
252: [03:20:05] <Stomach> my last front end was www.designdenmark.co.nz
253: [03:20:33] <irogue_> thats pretty sexy
254: [03:20:34] <irogue_> i'd tap that
255: [03:20:41] <Ryan-Toast> It’s fine, man.
256: [03:20:51] <Ryan-Toast> you’re doing well :)
257: [03:21:27] <Stomach> if there was no CSS in the world it would be grand
258: [03:21:35] <Ryan-Toast> Stomach: what’re you using for your height matching?
259: [03:21:44] <Stomach> Ryan-Toast, fuck knows
260: [03:21:49] <Stomach> something I found on the internet
261: [03:21:53] <Ryan-Toast> :P
262: [03:21:55] <Stomach> equal height + google
263: [03:21:59] <Stomach> lemme check
264: [03:22:25] <Ryan-Toast> you’re using bootstrap, so probs http://brm.io/jquery-match-height/
265: [03:22:35] <Stomach> nope
266: [03:22:38] <Stomach> never seen that before
267: [03:23:03] <Stomach> jquery.grids.js
268: [03:23:07] * cloph quit (Ping timeout: 245 seconds)
269: [03:23:07] * cloph_away has joined #silverstripe
270: [03:23:37] <Ryan-Toast> Stomach: Looks much better than a lot of people who don’t like css
271: [03:24:42] <Stomach> anyhow meeting time, later yall
272: [03:25:40] <antmas> I like it Stomach
273: [03:25:43] <antmas> looks good :D
274: [03:25:51] * travis-ci has joined #silverstripe
275: [03:25:51] <travis-ci> [travis-ci] chillu/silverstripe-framework#142 (pulls/behat-gridfield - a433fa2 : Ingo Schommer): The build passed.
276: [03:25:51] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/5f87d344f11c^...a433fa2ec43a
277: [03:25:51] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/27459990
278: [03:25:51] * travis-ci has left #silverstripe
279: [03:26:49] <antmas> man, direct debit setups are so lame
280: [03:27:55] * zippy__ has joined #silverstripe
281: [03:28:00] <zippy__> she's broke now....
282: [03:28:05] <zippy__> ( ! ) Fatal error: Maximum execution time of 30 seconds exceeded in /trunk/framework/core/manifest/TokenisedRegularExpression.php on line 23
283: [03:28:19] <zippy__> too much php for ss to handle
284: [03:32:39] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
285: [03:37:52] <irogue_> zippy__: YOU DONE GONE BROKED IT
286: [03:38:03] * UncleCheese has joined #silverstripe
287: [03:38:04] <zippy__> irogue_: yea, toooo much code...
288: [03:38:08] <zippy__> couldn't dev build
289: [03:38:16] <antmas> zippy__: all the codes
290: [03:38:22] <zippy__> had a thirdparty php lib in there, which pushed it over the edge
291: [03:38:39] <irogue_> zippy__, where's bungle?
292: [03:38:52] * antmas reads 'thirdparty php lib'
293: [03:38:58] * antmas eyes vibrate
294: [03:39:23] <zippy__> out back with George
295: [03:39:49] * irogue_ hands antmas some Smarty
296: [03:43:45] * antmas passes it off to simon_w to grill
297: [03:44:01] <antmas> irogue_: unless it's the candy kind :O
298: [03:44:54] <irogue_> lolnope
299: [03:44:59] <irogue_> i can offer you Jaffas tho?
300: [03:45:21] <irogue_> http://ow.ly/i/5TfBy
301: [03:45:45] <irogue_> we've only managed to consume half a bag of pretzels and a pack of toffee pops
302: [03:46:05] <antmas> irogue_: yey :D
303: [03:46:09] <antmas> <3 jaffas
304: [03:46:16] <antmas> do they still make snifters?
305: [03:47:11] <zippy__> irogue_: I havn't seen many travis updates.....
306: [03:47:16] <irogue_> yeah
307: [03:47:36] <irogue_> seems people are mostly working on modules rather than core
308: [03:47:37] <antmas> yeah pretty quiet
309: [03:47:45] <antmas> ooooooh which ones?
310: [03:47:48] <antmas> anything good?
311: [03:48:05] <irogue_> and lots of work on ssorg and sscom
312: [03:49:16] <zippy__> ohhh
313: [03:49:24] <zippy__> there is a pretty bad bug on the org site
314: [03:49:38] <antmas> zippy__: ?
315: [03:49:38] <zippy__> http://www.silverstripe.org/stable-download/ the dates are wrong
316: [03:49:39] <zippy__> :P
317: [03:50:01] <antmas> lol
318: [03:50:40] <antmas> I'd love to know who's idea it was to put big dumb 'Download' buttons that look like fake cnet links
319: [03:50:55] <simon_w> Blame UncleCheese
320: [03:50:57] <antmas> Download for Free!
321: [03:51:26] <irogue_> antmas: to be fair, the current ssorg is freakin ancient
322: [03:51:55] <zippy__> time for beer
323: [03:52:12] <antmas> irogue_: I know :P
324: [03:52:39] <antmas> you know it's old when there are....
325: [03:52:42] * antmas holds breath
326: [03:52:45] <antmas> ...
327: [03:52:48] <antmas> gradients...
328: [03:53:44] <antmas> has everyone voted for bitnami?
329: [03:54:38] * zippy__ quit (Quit: zippy__)
330: [03:58:36] <Ryan-Toast> antmas: My new design has a few griants. #bringingthemback
331: [03:58:43] <Ryan-Toast> gradiants**
332: [03:58:45] <Ryan-Toast> ents
333: [03:59:00] <simon_w> Sleeeepy
334: [03:59:32] <irogue_> Ryan-Toast: BRING IT ALL BACK TO YOU
335: [03:59:43] <Ryan-Toast> DON’T STOP, NEVER GIVE UP!
336: [04:02:14] <antmas> Ryan-Toast: booooooo
337: [04:05:37] <Ryan-Toast> ANTMAS: HOLD YOUR HEAD HIGH, AND REACH THE TOP!
338: [04:05:54] <antmas> |o|
339: [04:07:54] <Ryan-Toast> the should rename the tab “What is bitnami” to: “The fuck is bitnami?"
340: [04:07:56] * joelpittet quit ()
341: [04:08:53] <simon_w> BITNAMI IS YOUR MOTHER
342: [04:10:14] <irogue_> Ryan-Toast: i'm never sure whether to be proud or ashamed of the fact I know all the lyrics of that song
343: [04:10:16] <irogue_> including verses
344: [04:10:30] <Ryan-Toast> irogue_: Proud, my son. Proud.
345: [04:10:40] <Ryan-Toast> don’t know why I put a comma there.
346: [04:11:16] <Ryan-Toast> simon_w: Your mum’s face is bitnami.
347: [04:11:29] <Ryan-Toast> Because hundreds of developers use it.
348: [04:11:31] <simon_w> Ryan-Toast, my mum's face is your mum? :o
349: [04:11:34] <Ryan-Toast> </snap>
350: [04:12:11] <Ryan-Toast> http://i.imgur.com/9muGsnf.jpg
351: [04:12:52] <irogue_> Ryan-Toast: actually laughed out loud
352: [04:13:06] <antmas> irogue_: Ryan-Toast yup, I did too
353: [04:13:08] <antmas> XD
354: [04:13:27] <irogue_> LIKE THE CEILING CAN'T HOLD US
355: [04:13:34] <Ryan-Toast> 4pm Reddit and beers time.
356: [04:13:53] <irogue_> Ryan-Toast: we're already cidering and party musicing
357: [04:14:07] <Ryan-Toast> irogue_: S-Club-7 Leggo
358: [04:15:02] * guzzlefry has joined #silverstripe
359: [04:15:26] <antmas> Ryan-Toast: Reddit and beers don't go in the same sentence thank you
360: [04:15:32] * antmas turns up nose
361: [04:15:37] <Ryan-Toast> Why not?
362: [04:15:46] <antmas> Ryan-Toast: because!
363: [04:16:20] * travis-ci has joined #silverstripe
364: [04:16:20] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#908 (master - 1a85c7a : Damian Mooyman): The build is still failing.
365: [04:16:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/cba0061fe2cf...1a85c7a1ec04
366: [04:16:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/27461910
367: [04:16:20] * travis-ci has left #silverstripe
368: [04:16:51] <irogue_> tsk tsk damo
369: [04:16:58] <antmas> https://www.youtube.com/watch?v=do7InNH9wx4#t=23
370: [04:17:03] <Ryan-Toast> WHY ARE ALL MY WEBSITES ORANGE?
371: [04:17:04] <antmas> an oldie but a goodie
372: [04:17:21] <irogue_> Ryan-Toast: cos reddit goes more with trees :P
373: [04:17:43] <Ryan-Toast> irogue_: I don’t really smoke
374: [04:17:52] <antmas> Ryan-Toast: 'really'
375: [04:18:03] <irogue_> ah, dat really
376: [04:18:03] <Ryan-Toast> Only when my boss does.
377: [04:18:29] <irogue_> ah, a peer-pressure smoker
378: [04:18:43] <antmas> 'it's only socially I swear!'
379: [04:18:46] <Ryan-Toast> Nah a don’t-care-enough-to-buy-my-own smoker.
380: [04:18:56] <antmas> Ryan-Toast: Oh you are the WORST
381: [04:19:02] <irogue_> http://www.invalidname.co.nz
382: [04:19:38] <antmas> LOL
383: [04:19:40] <Ryan-Toast> Smoking and riding isn’t a good mix.
384: [04:19:53] <antmas> irogue_: I clicked that link and the effn CEO just walked past
385: [04:19:59] <antmas> gave me a wink :P
386: [04:19:59] <Ryan-Toast> lol
387: [04:20:00] <irogue_> bahahaha
388: [04:21:17] <Ryan-Toast> Makes me smile everytime: http://www.pleated-jeans.com/wp-content/uploads/2014/06/tumblr_n59wbqBAGK1qdlh1io1_r1_400.gif
389: [04:21:47] <antmas> Ryan-Toast: ah yes, that's a good one
390: [04:22:08] <Ryan-Toast> #Silverstripe is gifs now.
391: [04:22:25] <irogue_> welcome to friday
392: [04:22:29] <antmas> Ryan-Toast: you did this
393: [04:22:29] <spronk> fuuckin druggies
394: [04:22:36] <irogue_> you should see the internal SS chat
395: [04:22:38] <irogue_> nothing but gifs
396: [04:22:41] <Ryan-Toast> http://i.imgur.com/gBuM8O7.jpg
397: [04:22:49] <antmas> cool, so now I'm searchin cat gifs
398: [04:22:58] <Ryan-Toast> irogue_: Sounds like my kind of place
399: [04:23:11] <irogue_> antmas: i keep a folder in my dropbox of lolcats
400: [04:23:19] <antmas> irogue_: just in case?
401: [04:23:22] <Ryan-Toast> I just have a bookmarks folder
402: [04:23:25] <irogue_> ones i anticipate being able to use in replies to emails etc
403: [04:23:56] <antmas> yeah I have a static email template the the James Earl Jones totes ma goats gif
404: [04:24:04] <antmas> use it heaps :D
405: [04:24:54] <antmas> Ryan-Toast: what's your goto gif site?
406: [04:25:00] <Ryan-Toast> I have many.
407: [04:25:02] <antmas> 99.9% of them are terribad
408: [04:25:04] <Ryan-Toast> Maiunly subreddits
409: [04:25:12] <Ryan-Toast> http://www.reddit.com/r/reactiongifs
410: [04:26:15] <Ryan-Toast> antmas: http://i.imgur.com/hHyWgJu.gif
411: [04:26:37] <antmas> lol, looks like Jenna Marbles' god'
412: [04:26:41] <antmas> dog'
413: [04:26:44] <antmas> feck
414: [04:27:16] * irogue_ cranks some RATM
415: [04:27:34] <irogue_> KILLING IN THE NAME OF
416: [04:27:48] <Kingy> SS test server is pretty bad
417: [04:27:48] <antmas> irogue_: let's be 15 again!
418: [04:28:01] <irogue_> Kingy: quite
419: [04:28:23] <Kingy> try to view bad. lul 504 timeout
420: [04:30:45] <irogue_> Kingy: i've raised the issue with people
421: [04:30:52] <irogue_> (in the past)
422: [04:31:17] <Kingy> yeah it makes for some rough testing
423: [04:31:18] <irogue_> FUCK YOU I WON'T DO WHAT YOU TELL ME
424: [04:31:22] <irogue_> just as a client walks in
425: [04:31:28] <Kingy> but meh 4:30 on a friday I couldn't really care lol
426: [04:32:01] <irogue_> Kingy: i just have a brief nap each time i ?flush on a test site
427: [04:32:08] <Kingy> haha
428: [04:32:20] <Kingy> I feel sorry for the people who need to do the actual testing
429: [04:32:42] <Kingy> all I do is deploynaut that shit and then do a quick check that what is on the site is supposed to be
430: [04:33:29] <irogue_> we don't have a tester for a week
431: [04:33:34] <irogue_> means us devs will have to do testing :'(
432: [04:33:53] <antmas> I wish we had testers :(
433: [04:33:55] <Kingy> yeah all our people are the fielddays
434: [04:34:00] <Kingy> are at*
435: [04:34:02] <antmas> instead we have 'content editors'
436: [04:34:53] <Ryan-Toast> Ignore the terrible voice acting, but fuck this looks fun! https://www.youtube.com/watch?v=BwQnbIo_u0o
437: [04:35:04] * guci0 has joined #silverstripe
438: [04:35:14] <guci0> Hi!
439: [04:35:37] <Kingy> hi
440: [04:36:20] <Ryan-Toast> E3 was pretty lackluster this year. Only things I’m looking farward to are: n++, and Pokemon R/S Remakes.
441: [04:36:26] <Ryan-Toast> and they were announced before e3
442: [04:37:01] <Kingy> gtaV on PC shall be good
443: [04:37:11] <Ryan-Toast> In a year or so once all the bugs are gone.
444: [04:37:15] <Kingy> yeah
445: [04:37:26] <Kingy> and once people have started modding it
446: [04:37:33] <Ryan-Toast> Good mods
447: [04:37:44] <Kingy> I'm thinking end of next year I'll get a new console
448: [04:37:52] <Kingy> another year of games should be good
449: [04:38:05] <Ryan-Toast> All I want: Fallout 4.
450: [04:38:14] <Ryan-Toast> Or a final fantasy tactics game for the 3DS
451: [04:38:41] <Kingy> so basically /r/gaming in a nutshell
452: [04:38:41] <Kingy> :P
453: [04:38:53] <Ryan-Toast> Oh god, /r/gaming
454: [04:38:59] <Ryan-Toast> unsubbed that so long ago.
455: [04:39:11] <Kingy> yep
456: [04:39:29] <Ryan-Toast> Kingy: got money set aside for Steam sale next week?
457: [04:39:40] <Kingy> ah shit
458: [04:39:43] <irogue_> OH GOD
459: [04:39:44] <Kingy> I get paid next friday
460: [04:39:45] <Ryan-Toast> Kingy: https://www.youtube.com/watch?v=tRxcSNaVCPA
461: [04:39:57] <Kingy> monthly pay so I can't buy nothing right now
462: [04:40:19] * antmas quit (Ping timeout: 246 seconds)
463: [04:40:20] <irogue_> i get paid 20th of month so won't have it til monday 23rd :(
464: [04:40:33] <Ryan-Toast> PSA: THE SUMMER SALE STARTS JUNE 19TH, AND ENDS ON THE 30TH.
465: [04:40:40] <Kingy> irogue_: same for me
466: [04:40:41] <Ryan-Toast> you’ll have plenty of time
467: [04:40:47] <Ryan-Toast> not to mention the last day has everything.
468: [04:41:00] <irogue_> its true
469: [04:41:00] <Kingy> irogue_: but we get paid before if it falls on a weekend :)
470: [04:41:24] <Kingy> love this song
471: [04:41:27] <Kingy> good video Ryan-Toast
472: [04:42:06] <Kingy> stupid thing is
473: [04:42:15] <Kingy> I've still got undownloaded content from 2 years ago
474: [04:42:25] <Ryan-Toast> Oh, so do I.
475: [04:42:44] <Ryan-Toast> Kingy: http://steamdb.info/calculator/?player=Rhym_&currency=us
476: [04:42:55] <Ryan-Toast> Games not played 97 (68%)
477: [04:43:07] * an_Eskimo quit (Ping timeout: 246 seconds)
478: [04:43:09] <Kingy> haha
479: [04:43:53] <Kingy> Games not played 15 (56%)
480: [04:44:09] <Kingy> http://steamdb.info/calculator/?player=advance007&currency=us
481: [04:44:19] * irogue_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
482: [04:44:26] <Kingy> ohh you play CSS
483: [04:45:13] <Ryan-Toast> Yarp
484: [04:45:19] * krofek quit (Ping timeout: 244 seconds)
485: [04:45:29] <Kingy> haha I see you only played CS:GO for a few hours as wel
486: [04:45:33] <Ryan-Toast> :P
487: [04:46:30] * travis-ci has joined #silverstripe
488: [04:46:31] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2697 (3.1 - 415ba11 : Ingo Schommer): The build passed.
489: [04:46:31] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/3e29f6b29b78...415ba1135610
490: [04:46:31] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/27462846
491: [04:46:31] * travis-ci has left #silverstripe
492: [04:47:17] <Ryan-Toast> This is so cool: http://imgur.com/a/8TFyA
493: [04:49:17] <Kingy> haha nice
494: [04:49:19] <Kingy> 10min to go
495: [04:50:32] <simon_w> Slackers!
496: [04:50:36] <simon_w> Should keep working until I stop
497: [04:50:48] <simon_w> Which would've been about 20 minutes ago if this server reboot didn't fuck up
498: [04:50:48] <Ryan-Toast> I haven’t touched a line of code in an hour or so.
499: [04:51:00] <Kingy> Ryan-Toast: same
500: [04:51:06] <Kingy> spent about 20min loading the test site
501: [04:51:11] <Kingy> then gave up
502: [04:51:12] <simon_w> Nor have I, but still working!
503: [04:51:26] <Kingy> now reddit and crap
504: [04:51:27] <simon_w> Currently bugging the host to get the server back up and running again
505: [04:51:47] <Kingy> wait is it down?
506: [04:52:04] <simon_w> Certainly looks like it
507: [04:52:12] <Kingy> does doesn't it
508: [04:52:13] <simon_w> And the console is fucked too, which doesn't help much at all
509: [04:52:37] <simon_w> It's looking more like the host machine's having KVM problems
510: [04:52:45] <Kingy> ahh welll
511: [04:52:50] <simon_w> It can't even read the status of the VPS
512: [04:52:51] <Kingy> that is future someones problems
513: [04:53:02] <simon_w> No, since this a production site
514: [04:53:05] <Kingy> :P
515: [04:53:06] * ssdev has joined #silverstripe
516: [04:53:49] <ssdev> hello, is there a way to get the previous page / controller from silverstripe ?
517: [04:53:51] <Kingy> right im outta here
518: [04:53:59] <Ryan-Toast> Lingy: bai
519: [04:53:59] <Kingy> enjoy the weekend ya'll
520: [04:54:03] <Ryan-Toast> Kingy: Bai
521: [04:54:04] <Kingy> that's a new one
522: [04:54:05] <Kingy> lol
523: [04:54:11] <Kingy> it's usually kinky
524: [04:54:13] <simon_w> ssdev, what do you mean?
525: [04:54:56] * Kingy is now known as Kingy[a]
526: [04:56:37] <ssdev> like if they click on a link ofa controller, can i get to know from where he came from
527: [04:57:22] <ssdev> only want to know when the navigate in the SS site
528: [04:57:33] <ssdev> to know the last access page
529: [04:58:06] <simon_w> $_SERVER['HTTP_REFERER']?
530: [04:58:38] * krofek has joined #silverstripe
531: [04:59:06] <ssdev> hmm
532: [04:59:48] <Ryan-Toast> I’m off, later guys.
533: [05:00:48] * Ryan-Toast has left #silverstripe
534: [05:00:49] <ssdev> i dont think that will help
535: [05:01:12] <ssdev> i want to know the last accessed page and the login page i want to show a message depending on the last accessed page
536: [05:01:41] <ssdev> if they came from page 'x' then show a message like you are going to login as a 'X member'
537: [05:01:46] * nickmolhoek quit (Quit: nickmolhoek)
538: [05:02:30] <simon_w> So why won't the referer header work?
539: [05:03:33] <simon_w> "looks like the host doesnt have enough memory to run your VPS."
540: [05:03:33] <simon_w> OOPS
541: [05:14:57] * chillu_23 quit (Quit: chillu_23)
542: [05:19:46] <spronk> lulz
543: [05:20:24] * chillu_23 has joined #silverstripe
544: [05:22:46] * chillu_23 quit (Client Quit)
545: [05:26:17] * ssdev quit (Quit: Page closed)
546: [05:26:54] * chillu_23 has joined #silverstripe
547: [05:26:55] * chillu_23 quit (Client Quit)
548: [05:28:18] * tankr quit (Quit: Leaving.)
549: [05:36:24] * camfindlay quit (Quit: camfindlay)
550: [05:42:10] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
551: [05:49:07] * srikanth quit (Ping timeout: 240 seconds)
552: [06:00:16] * Shrike_Finland has joined #silverstripe
553: [06:08:22] * kmayo quit (Remote host closed the connection)
554: [06:11:52] * pies_ has joined #silverstripe
555: [06:14:26] * pies_ quit (Client Quit)
556: [06:40:20] * Shrike_Finland quit (Quit: Leaving.)
557: [06:47:47] * Tanger quit (Quit: Tanger)
558: [06:58:34] * babak has joined #silverstripe
559: [07:01:31] * ajshort has joined #silverstripe
560: [07:04:56] * Shrike_Finland has joined #silverstripe
561: [07:06:04] * Shrike_Finland1 has joined #silverstripe
562: [07:09:22] * Shrike_Finland quit (Ping timeout: 245 seconds)
563: [07:13:24] * ajshort quit (Quit: Leaving)
564: [07:20:54] * Tanger has joined #silverstripe
565: [07:20:55] * ARNHOE has joined #silverstripe
566: [07:32:57] * Frans_Amsterdam has joined #silverstripe
567: [07:35:53] * Frans_Amsterdam has left #silverstripe
568: [07:40:12] * Frans_Am_ has joined #silverstripe
569: [07:41:51] <Frans_Am_> Hi, I'm new her on the channel and I have A question about the submit of a customForm.
570: [07:43:38] <Frans_Am_> The message I receive is that the URL is not found. The url called is = localhost/home/contact/Page::SaltoForm
571: [07:50:20] * goazl has joined #silverstripe
572: [07:51:42] <goazl> Is there an easy way to search through text of a list of objects? DataList->filter('TItle', $query) seems to do exact matching, I could write filterByCallback that converts query to lowercase, and Title to lowercase and strpos(), but surely there's something to deal with this that is nicer? thanks < 3
573: [07:52:56] <goazl> eg i'd then have to break the query into an array of terms so I can match against each, and then do this for X fields that I have to match
574: [07:53:12] <goazl> if that's how it's done and it's not stupid, then I will also be happy, but I need some confirmation
575: [07:54:43] * ocm has joined #silverstripe
576: [07:54:45] <ocm> howdy!
577: [07:55:54] <svandragt> goazl: isn't there something like :Contains
578: [07:55:55] <Frans_Am_> Hello Sirs, I think I have solved it, just called it the wrong way.
579: [07:58:34] <goazl> svandragt: I'm not sure, is there? Not getting any bites in google : ( If there is, then maybe that's the magic thingy I'm looking for
580: [08:02:58] * goazl quit (Ping timeout: 246 seconds)
581: [08:03:07] * UncleCheese has joined #silverstripe
582: [08:11:26] * goazl has joined #silverstripe
583: [08:11:51] <goazl> hmm so I can specify a match like filter('Title:LessThan', $query), in which case I'm looking for :PartialMatch i guess but doesnt seem to work
584: [08:12:33] * kinglozzer has joined #silverstripe
585: [08:13:27] * nonconformatevi has joined #silverstripe
586: [08:14:13] * qlex has joined #silverstripe
587: [08:14:17] * qlex says hi
588: [08:15:17] <qlex> Zauberfisch: i'm surprised to see how much action was taken after you submitted to userforms module the ability to send the message to various email receipients
589: [08:15:45] <qlex> could you please let me know what stage is it on - is it in trunk already - i'm overwhelmed by all aspects disussed on it
590: [08:18:22] * goazl quit (Ping timeout: 246 seconds)
591: [08:19:13] * wmk has joined #silverstripe
592: [08:31:50] * RWestC has joined #silverstripe
593: [08:33:42] * micmania1 has joined #silverstripe
594: [08:34:55] <nonconformatevi> Hi! I've got a question. In the onBeforeWrite() function how can I change the SiteTree_versions AuthorID?
595: [08:42:32] * spronk2 has joined #silverstripe
596: [08:44:44] * svandragt quit (Quit: Page closed)
597: [08:55:29] <wmk> nonconformatevi, isn't it the curren Member automatically?
598: [08:55:49] <wmk> it's saved in the latest record (stage or live)
599: [08:56:52] <nonconformatevi> yes, but I want to change the user... Have I to use the Versioning?
600: [08:57:12] <nonconformatevi> wmk: yes, but I want to change the user... Have I to use the Versioning
601: [08:58:27] <wmk> hmm, AuthorID is saved in SiteTree_versions
602: [08:58:44] <wmk> also PublisherID
603: [09:00:46] <nonconformatevi> yes, I want to change the AuthoID in SiteTree_version before write a version of my page :-)
604: [09:01:16] * qlex1 has joined #silverstripe
605: [09:01:33] <nonconformatevi> wmk: yes, I want to change the AuthoID in SiteTree_version before write a version of my page :-)
606: [09:02:22] * wmk is just scanning Versioned.php for information about how this could be done
607: [09:02:33] <wmk> nonconformatevi, reading framework code is always fun ;)
608: [09:03:25] <nonconformatevi> yes, I'm doing it :-)
609: [09:03:28] <nonconformatevi> thank
610: [09:03:33] <nonconformatevi> thanks
611: [09:03:48] <wmk> seems like current user is hardcoded
612: [09:03:57] * qlex quit (Ping timeout: 245 seconds)
613: [09:04:53] <wmk> http://api.silverstripe.org/3.1/source-class-Versioned.html#597
614: [09:05:17] <wmk> simon_w, any ideas?
615: [09:08:13] <wmk> nonconformatevi, seems tricky
616: [09:08:35] <nonconformatevi> yes :-)
617: [09:08:39] <wmk> you could hack Versioned to check if something is set
618: [09:09:14] <wmk> but i still wonder WHY you want to do this
619: [09:09:24] <wmk> log in as the author!
620: [09:10:21] * Pyhmmk has joined #silverstripe
621: [09:10:34] <Pyhmmk> @ all the things, that's what a php pro would do.
622: [09:10:41] <wmk> hmm?
623: [09:10:45] <Pyhmmk> hmm.
624: [09:11:15] <wmk> Pyhmmk, nonconformatevi is looking for a way to hack in another AuthorID to Versioned pages
625: [09:11:26] <wmk> in onBeforeWrite or so. any idas?
626: [09:11:40] * wmk is now known as whmmk
627: [09:11:59] <nonconformatevi> so, I create a module that extend silverstripe/blog. in my class that extend BlogEntry I want I to give permissions to users
628: [09:12:04] <nonconformatevi> thi is the code
629: [09:12:05] <nonconformatevi> http://www.sspaste.com/paste/show/539abc5d028ca
630: [09:12:17] <nonconformatevi> all works, but
631: [09:12:39] <nonconformatevi> if an owner change a user's post
632: [09:13:09] <nonconformatevi> that user can't longer edit his post
633: [09:13:16] <nonconformatevi> ok?
634: [09:13:51] <whmmk> why no has_one "Owner" -> "Member" ???
635: [09:14:11] <whmmk> Author is for the current version of an entry, Owner would be first creator of a post
636: [09:14:52] <whmmk> nonconformatevi, if you cannot do it the complicated way, try a simple one
637: [09:15:04] * Pyhmmk quit (Ping timeout: 246 seconds)
638: [09:15:46] <nonconformatevi> yes... I think to work in the onAfterChange() function
639: [09:16:04] <nonconformatevi> sotty, onAfterWrite()
640: [09:16:07] <nonconformatevi> sorry
641: [09:16:23] * whmmk is now known as wmk
642: [09:16:24] <nonconformatevi> and change the AuthorID in it
643: [09:16:40] * wmk has a bad feeling on abusing AuthorID for this
644: [09:17:01] <wmk> Author = Author of current version, the person who did some changes
645: [09:17:05] <wmk> Owner = creator of post
646: [09:17:39] <wmk> for what you want to do i guess it's kind of abusing Versioned' Author relation
647: [09:17:49] * irogue_ has joined #silverstripe
648: [09:18:18] <nonconformatevi> you're right
649: [09:18:46] <nonconformatevi> then I think another way?
650: [09:19:04] * RWestC quit (Changing host)
651: [09:19:04] * RWestC has joined #silverstripe
652: [09:19:09] * Tanger quit (Quit: Tanger)
653: [09:20:15] * Pyhmmk has joined #silverstripe
654: [09:20:35] * zippy__ has joined #silverstripe
655: [09:20:38] <Pyhmmk> lol just had 2 recpatchas in a row where I put in the correct number (from a photograph) and it denied me.
656: [09:20:43] <wmk> nonconformatevi, i posted a hint in a comment of your paste
657: [09:21:05] <nonconformatevi> for example, in the code that I paste, in the checkBlogEntryPermissions() function I read not only the last record
658: [09:21:32] <nonconformatevi> and search the author in the results
659: [09:21:34] <nonconformatevi> ok
660: [09:21:56] <wmk> as i said: save the owner in the record directly and check for it
661: [09:22:21] <wmk> then you can also check for global edit permissions etc.
662: [09:22:24] <wmk> additionally
663: [09:22:34] <Pyhmmk> nonconformatevi: you're not usnig the orm, and all kinds of things
664: [09:22:36] <Pyhmmk> plz
665: [09:22:44] <Pyhmmk> don't DB::query unless you really must.
666: [09:23:02] <Pyhmmk> I put the answer to this up just the other day
667: [09:23:20] <nonconformatevi> ok ok
668: [09:23:22] * Shrike_Finland1 quit (Quit: Leaving.)
669: [09:23:25] <Pyhmmk> for starters you don't even need to query.
670: [09:23:30] <Pyhmmk> $this->AuthorID
671: [09:23:52] <Pyhmmk> well, depends on how the author is defined I guess, if it's a member or free text field.
672: [09:24:25] <Pyhmmk> if free text then perhaps Member::get()->filter('Name:PartialMatch', $this->Author)
673: [09:24:28] <Pyhmmk> ->first()
674: [09:24:29] <nonconformatevi> the author is a member
675: [09:24:32] <wmk> Pyhmmk, it's the Author Versioned extension adds to SiteTree
676: [09:24:43] <Pyhmmk> wmk: yeah I know. but that's irrelevant.
677: [09:25:40] <Pyhmmk> if(parent::canWhatever($member)) return $this->AuthorID == Member::currentUserID
678: [09:25:42] <Pyhmmk> #()
679: [09:25:44] <Pyhmmk> ;
680: [09:25:45] <Pyhmmk> done.
681: [09:25:50] <Pyhmmk> 1 line.
682: [09:26:37] <wmk> hmm
683: [09:26:44] <Pyhmmk> there's no need for if(boolean statement) return true else return false, a boolean statement is always true or false, just return the statement/evaluation.
684: [09:27:02] <wmk> jajaja
685: [09:27:14] <wmk> Pyhmmk, i must admit your code is slightly more elegant
686: [09:27:19] <Pyhmmk> just some tips for cleaner code :>
687: [09:27:32] <Pyhmmk> wmk: yes, but it relies on an Author always being a member.
688: [09:27:46] <wmk> i love this channel for learning all the time ;)
689: [09:28:04] <wmk> Pyhmmk, when Author is Member by definition it's ok
690: [09:28:19] <Pyhmmk> the original blog module for SS you could freetext enter the author field (eg for guest posters, etc where the post may be submitted by email and entered by a content editor who is not the author)
691: [09:28:39] <Pyhmmk> so it depends :>
692: [09:28:55] <wmk> Pyhmmk, wasn't aware of the original BlogEntry class
693: [09:29:15] <Pyhmmk> of course one could build logic around such a thing, if need be.
694: [09:29:47] <Pyhmmk> wmk: well there are only 2 blogs so far as I know. The original, and micmania1's which is close to if not fully API equivalent.
695: [09:31:49] <nonconformatevi> thanks everybody
696: [09:34:02] <wmk> nonconformatevi, np, that's what this IRC is good for.
697: [09:34:12] <wmk> one day you'll answer beginner questions ;)
698: [09:34:52] <nonconformatevi> :-)=
699: [09:35:45] <Pyhmmk> :)
700: [09:37:16] <Pyhmmk> gawd, export db, 470mb :<
701: [09:37:25] <wmk> belive me or not, even Pyhmmk once was a beginner
702: [09:37:25] <Pyhmmk> err 427
703: [09:37:27] <wmk> *duck*
704: [09:37:43] <Pyhmmk> wmk: true! I just lurked a fuckload and listed to simon_w :P
705: [09:38:03] <Pyhmmk> and of course developed with SS every day ;>
706: [09:38:14] <Pyhmmk> well, every work day.
707: [09:38:17] * simon_w was never a beginner though
708: [09:38:39] <Pyhmmk> true :P
709: [09:39:06] <Pyhmmk> the subtle but big difference between beginning and being a beginner :P
710: [09:47:33] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
711: [09:47:50] * wmk quit (Quit: nice to meet you ;))
712: [09:50:12] <Pyhmmk> protip: opening 427mb text file in text editor... probably not advisable
713: [09:53:53] <Pyhmmk> hahahahahaha imported massive database to local dev and now phpmyadmin won't load xD
714: [10:00:48] * Liquide has joined #silverstripe
715: [10:00:48] <Pyhmmk> fook
716: [10:01:06] <Pyhmmk> update firefox, now new tab button doesn't work :<
717: [10:02:19] <zippy__> Pyhmmk: sounds like your having a good start to the day
718: [10:02:52] <Pyhmmk> ha
719: [10:02:53] <Pyhmmk> yep
720: [10:02:58] <Pyhmmk> BREAK ALL THE THINGS
721: [10:03:00] <Pyhmmk> :<
722: [10:03:14] <Pyhmmk> at least I got meat loaf to keep me company D:
723: [10:03:17] <Pyhmmk> :D *
724: [10:03:19] <Pyhmmk> :<
725: [10:03:49] <micmania1> Pyhmmk: think we're going for a pint after work if you fancy it?
726: [10:05:19] <Pyhmmk> micmania1: I'd better head home tonight micmania1, gotta get up at ~4 to get the train to Cambridge
727: [10:05:27] <micmania1> ouch
728: [10:05:30] <Pyhmmk> mmm
729: [10:05:35] <micmania1> why u going there?
730: [10:05:38] <Pyhmmk> visiting friends
731: [10:05:43] <micmania1> ahh
732: [10:05:49] <micmania1> Don't think i'm out long anyway
733: [10:06:05] <Pyhmmk> I've decided it's not all bad anyway, I should save some dosh
734: [10:06:17] <Pyhmmk> Missus goes away next week, I'll be keen next friday :>
735: [10:06:41] <Pyhmmk> besides yeah, I don't want your cold :P
736: [10:06:44] <micmania1> Was in and out within half an hour!
737: [10:06:58] <micmania1> ha! its worse today
738: [10:07:03] <Pyhmmk> yeh stink hmm. I guess it's expensive if you haven't broken something
739: [10:07:21] <Pyhmmk> micmania1: just tell them you're poorly and fuck off home :P
740: [10:07:23] <micmania1> I felt like i should break something to get my moneys worth
741: [10:07:27] <Pyhmmk> hahaha
742: [10:07:30] * Stomach1 has joined #silverstripe
743: [10:08:07] * ss23 quit (Ping timeout: 245 seconds)
744: [10:09:16] <Pyhmmk> wholey fuck, so I clicked close on the the unresponsive firefox window, with about 12 tabs in it. It goes WARNING, you're about to close THIRTY FOUR tabs
745: [10:09:19] * ss23 has joined #silverstripe
746: [10:09:22] <Pyhmmk> I'm all o.0 dafuq
747: [10:15:50] * irogue_ licks Pyhmmk
748: [10:18:54] <Pyhmmk> yeh gidday irogue_
749: [10:19:04] <Pyhmmk> so did you get Hamish to write some sweet docs on DataModel for me?
750: [10:19:05] <irogue_> what up?
751: [10:19:15] <irogue_> Pyhmmk: lolnup he wasnt even in today
752: [10:19:24] <Pyhmmk> I assume that global DataModel business is his fault...
753: [10:19:31] <Pyhmmk> simon_w: do you know what it's all about?
754: [10:19:54] <simon_w> Pyhmmk, nope
755: [10:20:24] <Pyhmmk> I get that it's supposed to represent the ::get etc of all the things but I just don't understand how/why/whatfor and that it's never referenced. Just passed around just coz.
756: [10:20:37] <Pyhmmk> simon_w: so that makes 2 of us then :<
757: [10:20:58] <Pyhmmk> maybe I'll strip it and see what happens
758: [10:28:12] * simon_w|air has joined #silverstripe
759: [10:28:24] * qlex1 has left #silverstripe
760: [10:29:51] <micmania1> so nobody knows what DataModel is for?
761: [10:35:04] * anselmdk has joined #silverstripe
762: [10:38:04] <anselmdk> Yo list, here comes a tough one:
763: [10:38:05] <anselmdk> We're having issues after runnin SS tasks in the command line on our live server - afterwards we're getting out of memory errors on the site. It seems the only way to get around this is to empty the entire silverstripe-cache directory before and after running SS tasks on the command line - seems a little overkill to me. Has anyone had similar issues?
764: [10:44:33] <zippy__> anselmdk: update to the newer ss, I think in 3.1 it will create different files for command line / web
765: [10:44:39] <zippy__> oh
766: [10:44:40] <zippy__> oh
767: [10:45:03] * cloph_away is now known as cloph
768: [10:45:07] <zippy__> anselmdk: you command line vs web server is likely running two different versions of php. I had this when my command line was 5.4 and web was 5.3
769: [10:46:00] <anselmdk> zippy__: thanks for your insights! I’ll try these out - we’re running 3.1.2
770: [10:46:18] * eagles0513875 quit (Quit: ZNC @ TrekWeb - https://trekweb.org)
771: [10:46:25] <anselmdk> @zippy__ do you think it’ll make a difference to update to 3.1.5 ?
772: [10:46:36] <zippy__> no, its more likely the php version
773: [10:46:47] <zippy__> I was thinking of somethign else (permissions issues with cache manifest)
774: [10:46:47] <Pyhmmk> micmania1: yeah, nah.
775: [10:46:58] <zippy__> but the php version can effect the mem
776: [10:47:13] <anselmdk> if that’s it, hallelujah! we’re really puzzled by this
777: [10:48:17] * Frans_Am_ quit (Quit: My iMac has gone to sleep. ZZZzzz…)
778: [10:52:12] <anselmdk> zippy__: I think the’re both running 5.5.13, but SS is not letting me access a phpinfo.php at the moment - will do some more debugging later, and let you know - thanks for your insights!
779: [10:52:28] * Frans_Amsterdam has joined #silverstripe
780: [10:52:53] <zippy__> anselmdk: do php -v on the server, and, just do phpinfo(); die() in your framework/main.php
781: [10:53:01] <zippy__> anselmdk: if not production, otherwise thats a bad place
782: [10:53:12] <anselmdk> ;)
783: [10:53:25] <zippy__> anselmdk: ss wont let you access phpinfo.php if you have spelled it wrong
784: [10:53:43] <anselmdk> it’s production - I’ll build it into a controller and deploy it later
785: [10:55:51] <zippy__> simon_w: oh guru, I don't suppose you'd know why SS would try a third party lib which uses soapclient is getting caught up with ViewableData->__set( ) ? If i run the third party code outside of SS it's fine, but ran as part of a controller method and it's getting caught up in the __soapCall method on soapclient…. does ss do anything with soap (like the restfulclient) do you know?
786: [11:04:23] * eagles0513875 has joined #silverstripe
787: [11:12:13] * i6Shot has joined #silverstripe
788: [11:12:49] * i6Shot has left #silverstripe
789: [11:14:08] <Pyhmmk> spelt!
790: [11:14:14] <Pyhmmk> foolish zippy__
791: [11:14:26] <Pyhmmk> I thought you were a kiwi! >.>
792: [11:15:06] <zippy__> mmm it's like SS is interceping the SoapClient call and trying to convert it or something… DataObject::is_composite_field was getting called with no class, so had to hack the core…. no idea why it's trying to do that
793: [11:15:10] <zippy__> Pyhmmk: mm/
794: [11:20:35] <zippy__> Pyhmmk: .
795: [11:22:29] * Sj0hn has joined #silverstripe
796: [11:22:37] <Sj0hn> yo
797: [11:23:49] <zippy__> hi
798: [11:23:59] <zippy__> oic, spelled vs spelt
799: [11:26:25] <Pyhmmk> mmm
800: [11:38:46] * RWestC quit (Quit: My iMac has gone to sleep. ZZZzzz…)
801: [11:39:10] * anselmdk quit (Quit: anselmdk)
802: [11:44:32] * Stomach1 quit (Quit: Leaving.)
803: [11:45:09] * zippy__ quit (Quit: zippy__)
804: [11:45:41] <kinglozzer> Ye olde index.php trick - delete it to stop it appearing in URLs even when rewrites are working fine - what's the cause of it?
805: [11:45:54] <kinglozzer> Just deleted it, but wondered if it's an apache conf thing
806: [11:46:04] <kinglozzer> Can't seem to find the forum post about it
807: [11:46:09] <simon_w|air> kinglozzer, Apache 2.4
808: [11:46:23] <simon_w|air> There's probably some config thing somewhere for it too
809: [11:46:48] <kinglozzer> simon_w|air: Ah okay, got a site set up on DigitalOcean, going well so far :)
810: [11:54:00] <simon_w|air> kinglozzer, so I see :)
811: [12:00:08] <Pyhmmk> sharing the love :>
812: [12:00:33] <simon_w|air> Well, once he spends $25 on hosting
813: [12:01:05] <Pyhmmk> :P
814: [12:01:34] <simon_w|air> It saves me something like 2 weeks of hosting!
815: [12:05:29] * Stomach1 has joined #silverstripe
816: [12:17:48] * UndefinedOffset has joined #silverstripe
817: [12:24:32] * RWestC has joined #silverstripe
818: [12:28:57] <Sj0hn> can some1 please explain why i get the following error
819: [12:29:10] <Sj0hn> Fatal error: Unexpected token when building static manifest: ( in D:\xampp\htdocs\butlerguild\framework\core\manifest\ConfigStaticManifest.php on line 289
820: [12:29:21] <Sj0hn> with the following code: http://paste2.org/ezDGUhUj
821: [12:30:30] <Sj0hn> using the SilverStripe Member Profile Pages Module
822: [12:30:41] <UndefinedOffset> Sj0hn i wonder if it could be related to the Enum's being on multiple lines? try putting them on single lines or using concatination of the string to get it to look the way you want
823: [12:30:58] <UndefinedOffset> just taking a shot not really sure lol
824: [12:31:49] <Sj0hn> K ill try that. Trying to keep things tidy, now having to mess it up :p
825: [12:32:15] <UndefinedOffset> ya lol
826: [12:32:42] <UndefinedOffset> well like i suggested you could always use concatination to get it to look like you want just with a few extra double quotes and dots :)
827: [12:39:50] <Sj0hn> Could you show me a quick example? so i know the right way to it..
828: [12:40:14] <Sj0hn> just a,b,c or w/e
829: [12:49:10] * Stomach1 quit (Quit: Leaving.)
830: [12:50:46] * Stomach1 has joined #silverstripe
831: [12:51:27] <irogue_> Sj0hn: "Enum('a, b, c', 'a')"
832: [12:51:48] <irogue_> that gives options a b and c, with a as the default
833: [12:51:59] <kinglozzer> Sj0hn: If you need to break them onto new lines, Enum(array('A', 'B', 'C'), 'A')
834: [12:53:03] * Stomach1 quit (Client Quit)
835: [12:59:55] * DesignerX quit (Ping timeout: 240 seconds)
836: [13:05:42] <Pyhmmk> nah coz it's all text kinglozzer
837: [13:06:13] <Pyhmmk> iirc
838: [13:06:13] <Pyhmmk> Enum('blah,blah,blah', 'blah')
839: [13:06:21] <kinglozzer> Pyhmmk: Nah you can give it an array too
840: [13:06:24] <Pyhmmk> top of my head. it always was fiddly syntax though
841: [13:06:29] <Pyhmmk> kinglozzer: hmm, that's new :>
842: [13:06:32] <irogue_> yeah its either or
843: [13:06:40] <Pyhmmk> probably a good thing tbh
844: [13:06:54] <Pyhmmk> so you define an array within a string
845: [13:07:00] <Pyhmmk> seems so logical :<
846: [13:07:05] <irogue_> lol
847: [13:07:22] <kinglozzer> :P
848: [13:07:40] <irogue_> the array syntax is mostly used when you need commas in your value
849: [13:07:52] <Pyhmmk> It's almost as good as that sex I did that time with the extension syntax.
850: [13:08:17] <Pyhmmk> it uses php's tokeniser (or tokenizer coz it's american) to parse the init string
851: [13:08:20] <irogue_> personally tho id prefer it was just, y'know, not a string
852: [13:08:27] <Pyhmmk> yeh
853: [13:08:33] <Pyhmmk> that'd work, but how to define class?
854: [13:08:53] <Pyhmmk> FieldName: array('type' => 'Enum', '...
855: [13:09:08] <Pyhmmk> I suppose that could wrok.
856: [13:09:24] <irogue_> yeah something like that
857: [13:09:29] <Pyhmmk> I've done that elsewhere and it's used elsewhere in SS too (serachablefields iirc)
858: [13:09:33] <irogue_> be tidier with short array syntax
859: [13:09:46] <Pyhmmk> yeh it would
860: [13:09:54] <Pyhmmk> because the world should have left 5.3 behind by now :<
861: [13:09:56] <Pyhmmk> like.
862: [13:10:05] <irogue_> 3.2 is going 5.4 only
863: [13:10:17] <Pyhmmk> but once again, I'm still dev'n in 5.3
864: [13:10:29] <Pyhmmk> not for any reason other than it's a pain in the arsehole to upgrade the server though.
865: [13:10:51] <irogue_> lol
866: [13:11:12] <irogue_> some of the production servers i deal with are 5.3
867: [13:11:15] <Pyhmmk> like when I was at Plato, was on 5.2 pretty much until the year I left :<
868: [13:11:38] <Pyhmmk> this production server is a physical box somewhere in the building.
869: [13:11:47] <Pyhmmk> on the vpn
870: [13:11:54] <Pyhmmk> so probably not this building
871: [13:11:59] <Pyhmmk> idk
872: [13:12:10] <irogue_> but thats cos trying to get IBM to upgrade is about as painful as having wisdoms extracted
873: [13:12:11] <Pyhmmk> if it didn't run more things than what I'm working on...
874: [13:12:16] <Pyhmmk> I think it'd be boomtime
875: [13:12:26] <Pyhmmk> lulz
876: [13:12:32] <Pyhmmk> rolling release all the things!
877: [13:12:36] <Pyhmmk> because fuck your stability
878: [13:12:44] <Pyhmmk> SS is all about the bleeding edge
879: [13:12:56] <Pyhmmk> BOOM PROMODE SS CHAN REF
880: [13:13:03] <irogue_> its been 11 months now trying to get them to upgrade imagemagick to a version that can handle SVG properly
881: [13:13:20] <Pyhmmk> imagemagick is can do svg?
882: [13:13:25] <Pyhmmk> I just bought a helicopter
883: [13:13:32] <Pyhmmk> Quadrotor :>
884: [13:13:34] <Pyhmmk> inbuilt camera
885: [13:13:39] <Pyhmmk> NO SD CARD -.-
886: [13:13:43] <Pyhmmk> :<
887: [13:13:44] <Pyhmmk> lol
888: [13:13:51] <Pyhmmk> should have remembered to grab one of them too :
889: [13:13:53] <Pyhmmk> :/
890: [13:13:54] <irogue_> bahaha damn it
891: [13:14:06] <Pyhmmk> ?
892: [13:14:15] <Pyhmmk> imagick doesn't do svg?
893: [13:14:21] <irogue_> SD cards are the new batteries
894: [13:14:31] <irogue_> get new toy > go to play with it > fuuu no batteries
895: [13:14:36] <irogue_> but nowdays its SD cards instead
896: [13:14:46] <Pyhmmk> haha, true.
897: [13:15:01] <Pyhmmk> also though, to be fair... need AAA's for remote too :P
898: [13:15:23] <irogue_> Pyhmmk: nah, imagick does svg fine with 6.5+
899: [13:15:32] <irogue_> current version 6.8.9
900: [13:15:39] <irogue_> production running on 6.2
901: [13:15:46] <Pyhmmk> in the mean time, fuck all those framework bullshits like bootstrap where CSS is all THIS DIRECTORY and you move the CSS file and everything breaks because your dir structure isn't what frameworks looks like
902: [13:16:00] <irogue_> Pyhmmk: CSS is a cunt like that
903: [13:16:03] <Pyhmmk> can be
904: [13:16:49] <irogue_> CSS needs a base href equivalent
905: [13:17:01] <Pyhmmk> theyr'e all like "urghh but having variables makes it not declaritive" and I'm all "well yeah, if by variable you mean you can operate on it... what we're really asking for is a CONST"
906: [13:17:16] <Pyhmmk> irogue_: they do! "./"
907: [13:17:44] <Pyhmmk> CSS vars are simple like search/replace type shit.
908: [13:18:02] <Pyhmmk> I disagree with preprocessors because they're tryign to make something declarative functional
909: [13:18:10] <Pyhmmk> which is stupid.
910: [13:18:28] <irogue_> i mostly like SASS for fixing some of stupid fucking omissions from CSS
911: [13:18:28] <Pyhmmk> but var substitution (define once and done) is declartive I think.
912: [13:18:35] <irogue_> like ACTUALLY CASCADING
913: [13:18:42] <Pyhmmk> LESS just coz sass is for cunts :P
914: [13:19:16] <Pyhmmk> but whatevers tbh
915: [13:19:17] <Pyhmmk> all about the same
916: [13:19:27] <irogue_> no fucking idea why the creators of CSS didn't think nesting would be a good idea
917: [13:20:40] <Pyhmmk> I do.
918: [13:20:42] <Pyhmmk> It's a cunt.
919: [13:21:01] <Pyhmmk> and it's simpler to not have.
920: [13:21:15] <Pyhmmk> you don't have to worry about "is this a rule or a property?"
921: [13:22:07] <irogue_> that's really not an issue
922: [13:23:20] <Pyhmmk> yeah, pretty much not.
923: [13:23:21] <Pyhmmk> but still.
924: [13:23:27] <Pyhmmk> I don't like nesting.
925: [13:23:38] <irogue_> would you prefer PHP without nesting?
926: [13:23:41] <Pyhmmk> everything relays back to a context.
927: [13:23:43] <irogue_> only one level of if ever allowed?
928: [13:23:45] <Pyhmmk> irogue_: not the same thing at all.
929: [13:23:59] <irogue_> it's about making things a logical flow, and just plain tidy
930: [13:24:15] <Pyhmmk> yeah I mean I get it, but I find it confusing to read.
931: [13:24:22] <Pyhmmk> in css
932: [13:24:37] <Pyhmmk> but that's probably more with me not being used to it.
933: [13:28:51] <irogue_> i try to emulate nesting using indentation, but it's not the same
934: [13:29:08] <Pyhmmk> yeah, thats probably mostly where I've got this idea that it's a cunt tbh.
935: [13:29:15] <Pyhmmk> ol' blackcandy typography.css
936: [13:30:12] <irogue_> just realised i'm a bit wobbly
937: [13:30:16] <irogue_> good cider
938: [13:30:19] <Pyhmmk> haha
939: [13:30:57] <Pyhmmk> so anyway my whinge before about CSS being a shit with predefined directory structures... worse is said 'framework' things that have their JS in a similar fashion
940: [13:31:04] <Pyhmmk> and I'm all FFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
941: [13:34:32] <kinglozzer> irogue_: Wait, 3.2 is actually 5.4 only?
942: [13:34:39] * kinglozzer had no idea
943: [13:34:55] <irogue_> yup cos hamish and damo want to use traits :P
944: [13:35:45] <irogue_> also 5.3 is long dead
945: [13:35:51] <Pyhmmk> traits the shiz
946: [13:36:02] <Pyhmmk> they're like Extension, only less runtime
947: [13:36:19] <Pyhmmk> unless... can one apply one through reflection?
948: [13:36:32] <Pyhmmk> argh fuck
949: [13:36:40] * Pyhmmk gets a phone call
950: [13:36:43] <Pyhmmk> "it's not working"
951: [13:36:45] * Pyhmmk tries
952: [13:37:02] <Pyhmmk> request goes through, just does nothing forever
953: [13:37:14] <Pyhmmk> ooh, no, timeout! 500, finally
954: [13:37:32] * catcher has joined #silverstripe
955: [13:38:12] <catcher> 'morning
956: [13:38:23] <Pyhmmk> gidday
957: [13:39:05] <irogue_> kinglozzer: 5.3 was EOLd March 2013, and they won't even do critical security patches after July 2014, so it's kindof encouraging bad behaviour to still let people use it
958: [13:39:50] <Pyhmmk> PHP Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied (13) in /srv/www/project/wwwroot/index.php on line 2, referer: http://project/reports/orders
959: [13:39:54] <Pyhmmk> fuck, what does this even mena?
960: [13:39:56] <Pyhmmk> mean*
961: [13:40:22] * anselmdk has joined #silverstripe
962: [13:40:23] <irogue_> Pyhmmk: means your web user doesn't have correct permissions in the /var/lib/php5 folder
963: [13:40:32] <Pyhmmk> but it shouldn't!
964: [13:40:46] <irogue_> yes, web user needs permissions to that folder as it's where sessions are stored
965: [13:40:55] <irogue_> (by default anyway)
966: [13:41:06] <Pyhmmk> oh yeah, so it is
967: [13:41:10] <Pyhmmk> what the fuck like
968: [13:41:34] <Pyhmmk> I'm logged in, session going fine, all pages load (session data in them) then this one request says fuckno.
969: [13:41:34] <Pyhmmk> wtf
970: [13:41:48] * Pyhmmk thinks he might kill the server
971: [13:42:13] <Pyhmmk> sudo service apache2 restart
972: [13:42:14] <Pyhmmk> yus
973: [13:42:16] <Pyhmmk> work for me :>
974: [13:42:45] <kinglozzer> irogue_: Yep, agree with the decision - new features = win anyway
975: [13:42:46] * Pyhmmk tries again
976: [13:43:02] <Pyhmmk> kinglozzer: irogue_ indeed 5.4 much best idea.
977: [13:43:26] <Pyhmmk> fuck this day man, I haven't even gotten around to reading wtf datamodel is all about yet
978: [13:43:27] <Pyhmmk> :<
979: [13:43:30] <kinglozzer> Does 5.5 actually add much interesting stuff vs 5.4?
980: [13:43:33] <Pyhmmk> although I did buy a helicopter!
981: [13:43:58] <Pyhmmk> but it turns out web font apis are cunts and you can't download webfont font-face ready packages, even though they're all open fonts.
982: [13:44:08] <kinglozzer> Oh, found docs
983: [13:44:11] <Pyhmmk> google font api only gives woff if you load the link directly
984: [13:44:35] <Pyhmmk> well, in ff at least. Which must mean google do some kind of browser sniffing or some shit :<
985: [13:44:49] <kinglozzer> generators, finally, pw hash api etc, cool
986: [13:45:13] <Pyhmmk> generators :<
987: [13:45:15] <Pyhmmk> they confuse me
988: [13:45:28] <Pyhmmk> it sounds like I should think they're cool... but really idk
989: [13:45:29] <kinglozzer> And me :P
990: [13:45:54] <irogue_> kinglozzer: imo biggest thing in 5.5 is builtin opcode
991: [13:46:14] <Pyhmmk> js docs are all "you can use a generator to make an array of values eg. 2-10!" And I'm all "so can for(i=2;i<11;i++)
992: [13:46:16] <Pyhmmk> "
993: [13:46:33] <kinglozzer> irogue_: Zend opcache, right?
994: [13:46:40] <Pyhmmk> your mums an opcache
995: [13:46:41] <irogue_> kinglozzer: yeah
996: [13:46:47] <irogue_> Zend Optimizer+
997: [13:47:54] * irogue_ zzzs
998: [13:48:26] <irogue_> too many late nights and early mornings this past week
999: [13:48:28] <kinglozzer> Pyhmmk: There's a generator example here: http://uk1.php.net/manual/en/migration55.new-features.php
1000: [13:48:38] <kinglozzer> I still dont fuckin get it
1001: [13:48:45] <Pyhmmk> irogue_: so I've googled right, and looks like it might be related to CI :<
1002: [13:48:45] <kinglozzer> Like, why not return an array?
1003: [13:48:46] <Pyhmmk> ffs
1004: [13:48:46] <kinglozzer> D:
1005: [13:48:52] <Pyhmmk> kinglozzer: indeed.
1006: [13:49:02] <Pyhmmk> try reading the JS harmony docs on it (see MDN)
1007: [13:49:15] <kinglozzer> “Note that an array is never created or returned, which saves memory.” << oic
1008: [13:49:24] <kinglozzer> Still, really?
1009: [13:50:35] <Pyhmmk> kinglozzer: that very example though right, think about this:
1010: [13:50:47] <Pyhmmk> s/yeild/echo/
1011: [13:51:46] <Pyhmmk> but really it seems to be basically the same shit but more memory efficient: http://uk1.php.net/manual/en/language.generators.overview.php
1012: [13:51:59] <kinglozzer> > The standard range() function has to generate an array with every value in it and return it, which can result in large arrays: for example, calling range(0, 1000000) will result in well over 100 MB of memory being used.
1013: [13:52:07] <kinglozzer> DAYYYUMMM that's a lot of mem used
1014: [13:52:15] <kinglozzer> Makes sense I guess
1015: [13:54:56] <Pyhmmk> http://somethingemporium.com/2007/06/obscure-error-with-php5-on-debian-ubuntu-session-phpini-garbage
1016: [13:54:58] <Pyhmmk> gawd
1017: [13:55:24] <Pyhmmk> kinglozzer: I guess it uses memory, just doesn't persist in it.
1018: [13:55:31] <Pyhmmk> instant pseudo return or something, idk
1019: [13:57:04] * kinglozzer is reading about trains now
1020: [13:57:06] <kinglozzer> *traits ffs
1021: [13:57:11] <kinglozzer> trains.. lol
1022: [13:59:02] <Pyhmmk> wholey fucking shit. PROBABILITY based session garbage collection... ALWAYS hitting true on this particular request
1023: [13:59:03] <Pyhmmk> wtf
1024: [13:59:13] <Pyhmmk> I wonder if it's even true.
1025: [14:00:11] <catcher> probability=100%
1026: [14:00:14] * KemoNine has left #silverstripe
1027: [14:00:42] <catcher> kinglozzer, my son likes Thomas & Friends
1028: [14:00:48] <Pyhmmk> catcher: 0/100 = 0% probablility, yet problem persists.
1029: [14:00:50] <Pyhmmk> DARK.
1030: [14:01:02] <Pyhmmk> catcher: who doesn't?
1031: [14:01:09] * scpi has joined #silverstripe
1032: [14:01:26] <catcher> Pyhmmk, probability of liking Thomas & Friends = 100%
1033: [14:01:42] <Pyhmmk> pretty much. That's family friendly fun that is.
1034: [14:01:49] * RWestC quit (Changing host)
1035: [14:01:49] * RWestC has joined #silverstripe
1036: [14:26:57] <kinglozzer> Partial caching question: e.g. <% cached List(SiteTree).Max(LastEdited) %> - when the cache is stale and then updated, does it remove the old cache data from the filesystem?
1037: [14:27:44] <catcher> kinglozzer, no, it's cleared out automatically after some time, sort of.
1038: [14:28:13] <kinglozzer> catcher: "sort of"? :P
1039: [14:28:45] <catcher> yeah, I recall simon_w telling me it's not completely predictable.
1040: [14:29:36] <kinglozzer> That sucks :(
1041: [14:30:08] <catcher> kinglozzer, flushing should clear it too
1042: [14:30:41] <catcher> kinglozzer, I built my own static caching stuff around the SS Zend wrapper where I needed more control.
1043: [14:31:41] <kinglozzer> Mmm, wanted to cache carousel lookups (it scans up through parent pages till it finds some images), but I don't wanna include the page ID in the cache key as I'll end up with tonnes of cache files :P
1044: [14:32:02] <kinglozzer> Could make my own cache key I guess
1045: [14:34:27] <kinglozzer> Pyhmmk: For calculating a cache key, d'ya think SQLQuery will be noticeably faster than DataObject::get() etc or nay?
1046: [14:34:56] <kinglozzer> It wouldn't do unnecessary joins I guess is the main benefit
1047: [14:42:45] <catcher> kinglozzer, I use the ORM for custom keys, but please lmk if you find it's worth it to query manually.
1048: [14:44:10] <kinglozzer> I don't think it will be really, ->count() etc are already optimised, maybe for complex stuff though
1049: [14:45:44] <Pyhmmk> wholey shit
1050: [14:45:54] <Pyhmmk> fuck you code igniter, this better fucking not be because of one of your @
1051: [14:46:00] <catcher> kinglozzer, yeah, all my keys are based on count & LastEdited
1052: [14:46:09] * Pyhmmk has a 500 error response, but no error.log entry
1053: [14:46:16] <Pyhmmk> at an hour and counting
1054: [14:46:35] * Pyhmmk spies... omg omg omg
1055: [14:48:40] * babak quit (Quit: Connection closed for inactivity)
1056: [14:53:51] <kinglozzer> $images = Page::get()->relation('CarouselImages'); << Y U NO INCLUDE SUBCLASSES OF PAGE
1057: [14:55:02] * ARNHOE quit ()
1058: [14:57:30] * Frans_Amsterdam quit (Quit: Textual IRC Client: www.textualapp.com)
1059: [14:58:41] <Sj0hn> any1 here expierence with this module: https://github.com/ajshort/silverstripe-memberprofiles?
1060: [15:01:15] <Sj0hn> nvm think i found it.. :p
1061: [15:01:16] * spronk2 quit (Quit: spronk2)
1062: [15:03:43] <Pyhmmk> ahlp halp ahlp
1063: [15:04:16] * Pyhmmk flicks the switches, twiddles the figures, but still a silent 500 haunts his waking hours
1064: [15:04:55] * Sj0hn quit ()
1065: [15:09:02] <Pyhmmk> fuck me this is the best way to spend a friday afternoon (full sarcasm)
1066: [15:12:51] <kinglozzer> catcher: Using SQLQuery does seem to be faster actually: https://gist.github.com/kinglozzer/752c42095c8374866032
1067: [15:13:13] <kinglozzer> Micro-optimisations :P
1068: [15:15:06] <catcher> .0026ms faster!
1069: [15:15:15] <catcher> Hey, it's something.
1070: [15:28:15] * nonconformatevi quit (Quit: Sto andando via)
1071: [15:33:37] * micmania1 has joined #silverstripe
1072: [15:36:31] * jenniferaslan has joined #silverstripe
1073: [15:44:40] * RWestC is now known as R\WC
1074: [15:44:51] * R\WC is now known as R\W\C
1075: [15:46:27] * R\W\C is now known as \R\\W\\C\
1076: [15:46:50] * \R\\W\\C\ is now known as R\W\C-Cutting-Th
1077: [15:46:57] * R\W\C-Cutting-Th is now known as R\W\C
1078: [15:50:01] * Shrike_Finland has joined #silverstripe
1079: [15:50:40] <catcher> mmhmm
1080: [15:53:14] * R\W\C is now known as RWestC
1081: [15:59:20] * jcwacky quit (Quit: jcwacky)
1082: [16:02:58] <Pyhmmk> micmania1: any idea on finding out what a silent error is?
1083: [16:08:09] <micmania1> why is it silent?
1084: [16:08:28] <micmania1> Pyhmmk: ^^
1085: [16:11:10] <micmania1> I'm off home
1086: [16:11:21] <micmania1> try ini_set("display_errors", 1);
1087: [16:11:33] <micmania1> ini_set("display_startup_errors", 1)
1088: [16:11:42] <micmania1> and error_reporting(E_ALL | E_STRICT)
1089: [16:12:42] * kinglozzer quit ()
1090: [16:29:45] * Shrike_Finland quit (Quit: Leaving.)
1091: [16:29:56] * Shrike_Finland has joined #silverstripe
1092: [16:30:58] * RWestC quit (Quit: Textual IRC Client: www.textualapp.com)
1093: [16:48:39] * gelignite has joined #silverstripe
1094: [16:51:57] <Pyhmmk> [17:11] <micmania1> try ini_set("display_errors", 1);
1095: [16:52:00] <Pyhmmk> that ^
1096: [16:52:24] <Pyhmmk> I thought error reporting was on, is normally, turns out they must be set somewhere else. It's off by default.
1097: [16:52:31] <Pyhmmk> Should have checked that sooner!
1098: [16:52:32] <Pyhmmk> D:
1099: [16:52:35] <Pyhmmk> Fridays :<
1100: [16:52:55] <Pyhmmk> was memory_limit in the end, just as I'd suspected all along
1101: [16:53:06] <Pyhmmk> had to bump it from 400M to 600M xD
1102: [16:53:10] <Pyhmmk> home.
1103: [16:53:12] * Pyhmmk quit ()
1104: [17:24:47] * gelignite quit (Quit: http://bit.ly/nkczDT)
1105: [17:30:38] * Shrike_Finland quit (Quit: Leaving.)
1106: [17:32:18] * Shrike_Finland has joined #silverstripe
1107: [17:53:55] * azureknight has joined #silverstripe
1108: [17:54:26] <azureknight> Oh I've missed being here.
1109: [17:58:41] <azureknight> Anybody here ever worked with singlehop?
1110: [18:00:07] <catcher> azureknight, aws for me
1111: [18:02:29] <azureknight> catcher have you ever had any error with needing to turn off gzip for tinymce?
1112: [18:02:56] <azureknight> I'm working on a site that is using multiple languages, but whenever they try and use characters that have accents or anything, it removes them.
1113: [18:05:00] <catcher> azureknight, can't say I've had any trouble with that. Just tried putting one in now, and seemed to be fine.
1114: [18:05:12] <catcher> azureknight, not sure if it matters, but what version of SS?
1115: [18:05:52] <azureknight> I'm using the latest version of silverstripe.
1116: [18:06:15] <azureknight> It's been an ongoing issue with this company I'm working with. They use singlehop and cpanel on there.
1117: [18:06:23] <catcher> azureknight, can you re-create the issue yourself?
1118: [18:06:26] <azureknight> And for some reason whenever I work with them, I need to use all those statements.
1119: [18:06:45] <azureknight> I had to include this in my latest .yml
1120: [18:06:45] <azureknight> HtmlEditorField:
1121: [18:06:46] <azureknight> use_gzip: false
1122: [18:08:42] <catcher> azureknight, what's your connection_charset?
1123: [18:09:45] <azureknight> My coworker just set it, he said it wasn't set. So I'm looking into it now.
1124: [18:09:48] <azureknight> Thanks for taking the time, by the way.
1125: [18:10:20] <catcher> sure, hope that helps
1126: [18:14:10] <azureknight> Yeah, that did seem to help the issue, actually. Setting that.
1127: [18:14:20] <azureknight> But, I still can't input characters such as â
1128: [18:14:47] <azureknight> In there. Which I'm trying to figure out. The website is using the translation ss module, but in the tinymce â changes to ϫ
1129: [18:17:02] <catcher> azureknight, I can't duplicate it in 3 different environments. I'm not using the translation module, but it's unlikely to be introducing that issue.
1130: [18:17:11] <azureknight> Yeah. I agre.
1131: [18:17:13] <azureknight> agree*
1132: [18:17:20] <azureknight> I use it on my local machine, and it works fine. I never have these errors.
1133: [18:17:24] <catcher> gotcha
1134: [18:17:31] <azureknight> But when it's on the server, suddenly unique characters such as é don't work.
1135: [18:17:43] <catcher> is your db charset set in _config.php?
1136: [18:18:01] <catcher> as well as php config?
1137: [18:19:57] <azureknight> Hm.
1138: [18:20:06] <azureknight> Hadn't thought to set the db charset.
1139: [18:20:16] <azureknight> I'm mainly new to doing db related thingies.
1140: [18:21:59] <catcher> azureknight, in that case, it's probably the default utf8, which should be fine. Worth double-checking though.
1141: [18:23:32] <azureknight> Yeah. It's not set in there, so it should be defaulting.
1142: [18:24:53] <catcher> azureknight, MySQLDatabase::set_connection_charset('utf8');
1143: [18:24:59] <catcher> Toss that in for good measure
1144: [18:25:03] <azureknight> Aye aye.
1145: [18:26:00] <catcher> (along w/ a dev/build)
1146: [18:27:35] <azureknight> Yeah. I tried a build.
1147: [18:27:44] <azureknight> I'm gonna flush the admin side too.
1148: [18:30:27] <azureknight> I tried that. But it seemed like it's an escaping issue on those.
1149: [18:31:09] <catcher> azureknight, what's the webserver?
1150: [18:31:22] <azureknight> So. Having talked about it, on my local machine I'm not writing this worried about sql injections.
1151: [18:31:58] <azureknight> But the reason that it's not writing out on the server is thought to be because of lacking on the conversion when saving to the mysql.
1152: [18:37:47] <azureknight> Hold the phone...
1153: [18:37:51] <azureknight> This just got confusing.
1154: [18:53:55] <catcher> ?
1155: [18:59:40] * azureknight quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1156: [19:03:52] * Shrike_Finland quit (Quit: Leaving.)
1157: [19:04:49] * Shrike_Finland has joined #silverstripe
1158: [19:09:12] * Shrike_Finland quit (Ping timeout: 240 seconds)
1159: [19:15:28] * srixon has joined #silverstripe
1160: [19:17:11] <srixon> Hi, ive developped a function in SS that sends mass mails (about 500 members). As sure as it will snow here, server rejects mails passed its limit (120/hour). Hoster dosnt want to upsize the limit and not too keen on mailchimp. As a solution, ive found this:
1161: [19:17:15] <srixon> # Send a batch of 60 messages per batch period: define("MAILQUEUE_BATCH_SIZE",60); # batch period is set to 600 seconds (= 10 minutes): define("MAILQUEUE_BATCH_PERIOD",600); # Pause between messages (in seconds) to avoid overloading the server: define('MAILQUEUE_THROTTLE',1);
1162: [19:17:54] <srixon> The idea is to delay each mail one second so that it will send less than 120 mails/hour. Worth somethign?
1163: [19:25:30] <srixon> Anyone?
1164: [19:25:39] <catcher> srixon, how will you queue them?
1165: [19:26:42] <srixon> catcher => dono, isnt the code supposed to delay each mail from the next one? The mails are sent via a custom form in SS.
1166: [19:27:15] <catcher> srixon, how are you delaying?
1167: [19:27:48] <srixon> catcher => define('MAILQUEUE_THROTTLE',1) is supposed to insert 1 second between each mail sent
1168: [19:28:28] <srixon> define("MAILQUEUE_BATCH_SIZE",60); sends mail by batch of 60
1169: [19:28:52] <srixon> define("MAILQUEUE_BATCH_PERIOD",600); sends one batch each 10 minutes.
1170: [19:29:18] <srixon> A combo of these code should do it OR not?
1171: [19:30:31] <catcher> srixon, if you're using phplist
1172: [19:31:55] * anselmdk quit (Quit: anselmdk)
1173: [19:32:04] <srixon> catcher => phplist isnt listed in phpinfo.php Is that mean that its not used?
1174: [19:34:28] * Shrike_Finland has joined #silverstripe
1175: [19:35:06] <catcher> srixon, not necessarily, it's a library, not a module
1176: [19:35:54] <srixon> catcher => 1) how to know for sure, apart asking host provider (who is less than supportive. 2) do you see another workaround?
1177: [19:36:22] <srixon> catcher => seen this => http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/MailLimitingFeatures
1178: [19:37:15] <catcher> srixon, sorry, I've never used phplist. You may have better luck in #php, though it's not really a php question either.
1179: [19:38:46] <srixon> catcher => and the link ive sent? Is cPanel can work around a shared server? I woulnt think so...
1180: [19:40:18] <catcher> srixon, sure, if you control the cpanel
1181: [19:40:52] <catcher> srixon, you should ask your host about the best way to handle it, and ask about phplist if that's what you want to use
1182: [19:40:53] <srixon> catcher => yes i do. mysite.com/cpanel. What to do from there?
1183: [19:41:08] <catcher> srixon, you have a cpanel, but you do not administer the cpanel on shared hosting.
1184: [19:41:20] <catcher> i.e. you can't lift your own limits
1185: [19:42:09] <srixon> catcher => thats what i thought. THe host provider refused to max its limit further 120/hours because he is afraid the server will be considered a spammer. Is this legit?
1186: [19:42:24] <catcher> Yes, that's a legit concern.
1187: [19:42:49] <catcher> It'd be good to queue the messages, you just need to figure out how you can do that with your current host.
1188: [19:43:07] <catcher> If you can't, it may need to look into a new host.
1189: [19:43:38] * Shrike_Finland quit (Ping timeout: 252 seconds)
1190: [19:47:35] <srixon> catcher => is queuing related to phplist OR its a function that i should add to my custom function?
1191: [19:48:04] <catcher> Queuing is related to phplist.
1192: [19:48:14] <catcher> Not PHP, and definitely not SS
1193: [19:55:21] * zippy__ has joined #silverstripe
1194: [20:04:19] * srixon quit (Ping timeout: 246 seconds)
1195: [20:04:41] * zippy__ quit (Quit: zippy__)
1196: [20:21:20] * r3v3rb has joined #silverstripe
1197: [20:36:15] * UndefinedOffset quit (Ping timeout: 272 seconds)
1198: [20:38:46] * Shrike_Finland has joined #silverstripe
1199: [20:41:13] * r3v3rb quit (Quit: r3v3rb)
1200: [20:45:07] * Shrike_Finland quit (Ping timeout: 272 seconds)
1201: [20:54:58] * r3v3rb has joined #silverstripe
1202: [21:05:16] * r3v3rb quit (Quit: r3v3rb)
1203: [21:09:42] * r3v3rb has joined #silverstripe
1204: [21:18:04] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
1205: [21:36:06] * scpi quit (Quit: scpi)
1206: [21:38:37] * Shrike_Finland has joined #silverstripe
1207: [21:44:13] * Shrike_Finland quit (Ping timeout: 240 seconds)
1208: [21:46:24] * catcher quit (Quit: Leaving)
1209: [21:46:31] * zippy__ has joined #silverstripe
1210: [21:47:57] * zippy__ quit (Client Quit)
1211: [21:50:30] * babak has joined #silverstripe
1212: [22:25:14] * cloph is now known as cloph_away
1213: [22:38:29] * Shrike_Finland has joined #silverstripe
1214: [22:40:18] * gelignite has joined #silverstripe
1215: [22:44:22] * Shrike_Finland quit (Ping timeout: 245 seconds)
1216: [22:50:55] * guci0 quit (Ping timeout: 246 seconds)
1217: [23:03:36] * jenniferaslan quit (Remote host closed the connection)
1218: [23:06:46] * r3v3rb quit (Quit: r3v3rb)
1219: [23:09:26] * azureknight has joined #silverstripe
1220: [23:12:40] * azurekni_ has joined #silverstripe
1221: [23:13:34] * azureknight quit (Ping timeout: 244 seconds)
1222: [23:31:06] * Stomach1 has joined #silverstripe
1223: [23:38:25] * Shrike_Finland has joined #silverstripe
1224: [23:39:12] * azurekni_ quit (Quit: Textual IRC Client: www.textualapp.com)
1225: [23:42:33] * Shrike_Finland quit (Ping timeout: 240 seconds)
1226: [23:46:30] * oetiker quit (Ping timeout: 255 seconds)
1227: [23:49:11] * oetiker has joined #silverstripe
1228: [23:57:26] * Stomach2 has joined #silverstripe
1229: [23:59:43] * Stomach1 quit (Ping timeout: 240 seconds)

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