#silverstripe IRC Log

IRC log for 3 November 2014

All timestamps are in UTC.

1: [00:02:15] <Colin[pi]> mahfuz: Member::currentUser() returns the Member object, Member::currentUserID() returns the ID or 0
2: [00:02:48] <mudmonth> if cookies are disabled does SS do anything like appending a session id to get queries?
3: [00:02:53] <mahfuz> Thanks Colin
4: [00:05:27] * Stomach has joined #silverstripe
5: [00:06:25] * Stomach_ quit (Ping timeout: 255 seconds)
6: [00:08:04] * nzstephenf quit (Ping timeout: 246 seconds)
7: [00:08:51] <mahfuz> How to change the URL of Register Link in /security/login Page?
8: [00:12:41] <JeremyRoundill> mahfuz: Why?
9: [00:12:56] <JeremyRoundill> mahfuz: Also, my best guess is you should start with config.yml
10: [00:13:23] <novaweb> lol at Nightjar, I didn't mean to piss him off but he was sounding like a smart ass. Admittedly I missed a couple of his responses but they didn't answer my questions ( thank adrexia )
11: [00:13:40] <novaweb> SO: What am I doing wrong team? DB::query("UPDATE TABLE Person SET `Email`='homer@thesimpsons.com' WHERE ID=666");
12: [00:13:54] <JeremyRoundill> novaweb: you were asking some wack questions.
13: [00:14:08] <mahfuz> I am using that page for the user signing in and the Register Link is there which takes to the home page. I want it to be linked with the Registration Page I have created.
14: [00:14:48] <novaweb> I must be wack then. Poor me. Any insight on the query though?
15: [00:14:51] <JeremyRoundill> mahfuz: just grep it to find the file
16: [00:15:48] <JeremyRoundill> novaweb: It's not that, the questions were just poorly phrased to get the help you wanted.
17: [00:15:58] <JeremyRoundill> novaweb: In saying that, it's tricky to write good questions.
18: [00:16:07] <adrexia> I thought the questions were reasonable assuming you didn't have the right base layer knowledge. Which happens all the time on IRC.
19: [00:16:11] <JeremyRoundill> novaweb: I always end up coming across as a fool when I ask questions here.
20: [00:16:12] <novaweb> I got carbon monoxide poisoning on the weekend. Cool story, brain not working too great.
21: [00:16:25] * spronk2 has joined #silverstripe
22: [00:16:32] <adrexia> ouch
23: [00:16:41] <Colin[pi]> novaweb: dafuq?
24: [00:16:45] <JeremyRoundill> Rosy cheeks though, huh?
25: [00:17:06] <novaweb> Yeah, not a fun story.
26: [00:17:26] <novaweb> GLAD I am studying for PPL and recognized the hypoxia symptoms when I did.
27: [00:17:26] <spronk2> eehs :S
28: [00:17:32] <JeremyRoundill> You have to give us the story now though
29: [00:17:36] <spronk2> from gas in the home?
30: [00:17:38] <adrexia> yes
31: [00:17:49] <adrexia> that's not an everyday thing
32: [00:19:28] <spronk2> well
33: [00:19:30] <spronk2> you'd hope it wasnt
34: [00:19:31] <spronk2> :)
35: [00:19:43] <novaweb> I am dealing with the appropriate team and the chief exec of a company at the moment
36: [00:20:10] <ss23> wtflol
37: [00:20:15] <spronk2> this was at work??
38: [00:20:16] <novaweb> As it concerns a fair whack of people who commute to wellington on a daily basis, I can't say too much until I've had a response from them
39: [00:20:16] <adrexia> classified?
40: [00:20:17] <ss23> How does carbon monoxide poisoning happen :O
41: [00:20:27] * adrexia nods
42: [00:20:28] <spronk2> oh wow
43: [00:20:40] <mudmonth> spronk2: gas fires?
44: [00:20:40] <novaweb> you can assume the service im referring to.
45: [00:20:42] <mudmonth> er ss23
46: [00:20:48] <ss23> BUSSES OR TRAINS OR SOMETHING ELSE
47: [00:20:53] <ss23> SOMETHING RELATED TO COMMUTING
48: [00:20:56] <ss23> I'm totally right
49: [00:21:06] <JeremyRoundill> YOU FORGOT FERRIES
50: [00:21:13] <mudmonth> i'm pretty sure it's from gas heaters
51: [00:21:16] <spronk2> any dangers of CO poisoning in mass transit is preeeety sever
52: [00:21:17] <spronk2> e
53: [00:21:18] <adrexia> ss23, well you can go into a car, stuff the exhaust pipe, and start it
54: [00:21:22] <mudmonth> maybe coal i don't know
55: [00:21:25] <spronk2> mudmonth it's stuff like the pilot light going out
56: [00:21:25] <novaweb> can someone help me with my god damn sql query lol
57: [00:21:27] <Colin[pi]> spronk2: fuck yeah, damn
58: [00:21:29] <JeremyRoundill> What about all the poor upper-middle-class white families in Eastbourne! Won't somebody think of them?
59: [00:21:30] <adrexia> but pretty sure that's not the cause here ;)
60: [00:21:33] <mudmonth> spronk2: TALK TO ME ABOUT TECH
61: [00:21:40] <spronk2> NO!
62: [00:21:42] <novaweb> DB::query("UPDATE TABLE Person SET `Email`='homer@thesimpsons.com' WHERE ID=666");
63: [00:21:44] <novaweb> haha
64: [00:21:44] <mudmonth> IS FIRE TECH?
65: [00:21:54] <novaweb> It's not busses and not something else...
66: [00:21:58] <spronk2> YES
67: [00:22:03] <novaweb> it involves a tunnel.
68: [00:22:15] <ss23> BUS TUNNELS
69: [00:22:18] <ss23> THE TUNNELS FOR THE B USSES
70: [00:22:21] <novaweb> and [something] taking longer than it should to get through it.
71: [00:22:23] <JeremyRoundill> HATAITAITAI
72: [00:22:26] <adrexia> someone help the poor guy with his sql already
73: [00:22:29] <ss23> novaweb: Quotes are wrong
74: [00:22:36] <ss23> novaweb: Because it's put in ANSI mode, use " for tables
75: [00:22:39] <helenclarko> can someone help me to change this line for 3.1? $testimonials = DataObject::Get('BigTestimonials', 'TestimonialPageID = ' . $this->ID);
76: [00:22:46] <spronk2> omh
77: [00:22:47] <ss23> UPDATE TABLE Person SET "Email" = 'homer' where...
78: [00:22:53] <spronk2> helen clark is an SS developer!!
79: [00:23:01] <novaweb> thank you ss23!
80: [00:23:20] <adrexia> BigTestimonials::get()->filter(''TestimonialPageID', $this->ID)
81: [00:23:23] <ss23> helenclarko: $testimonaisl = BigTestimonails::get()->filter(array('TestimialPageID' => $this->ID));
82: [00:23:44] <ss23> Either syntax is fine, but mine is more extensible than adrexia's, but adrexia's is cleaner
83: [00:23:50] <adrexia> lols
84: [00:24:04] <ss23> Ignoring the obvious typos we both made of course
85: [00:24:05] <adrexia> one filter, so I just used the non array syntax
86: [00:24:08] <JeremyRoundill> novaweb: I think Nightjar mentioned that earlier too
87: [00:24:09] <adrexia> also, I'm lazy ;)
88: [00:24:14] <helenclarko> Thank you, was missing the filter
89: [00:24:37] <mudmonth> hey guys, is there any way i can find out from EditForm what it thinks the URL is? right now the full url looks like /admin/<model admin prefix>/<DO Class>/EditForm/field/<DO Class>/item/1/edit and i want everything after EditForm
90: [00:24:52] <mudmonth> EditForm is a SS Gridfield in ModelAdmin
91: [00:24:54] <JeremyRoundill> novaweb: <Nightjar> when you say SQL command with double quotes around it - double quotes are for tables, there is no command that has double quotes around it in SQL, so it was a legitimate question!
92: [00:24:56] <mudmonth> i can't work it out from the docs
93: [00:25:13] <helenclarko> Can I then do a $testimonials->groupBy('Type');
94: [00:25:31] <helenclarko> I'll just try it haha.
95: [00:25:38] <simon_w|work> helenclarko, you need to use a GroupedList
96: [00:25:40] <spronk2> yeah'
97: [00:25:46] <novaweb> Jeremy, I was referring to the double quotes around the whole statement. agreed, hard to phrase questions. I'd seen an example on google DB::query(UPDATE TABLE Person SET `Email`='homer@thesimpsons.com' WHERE ID=666);
98: [00:25:47] <spronk2> damn you simon_w|work
99: [00:25:48] <adrexia> that ^
100: [00:25:50] <novaweb> (without double qutes)
101: [00:25:55] <novaweb> qutoesss.s.s.s.s
102: [00:26:14] <simon_w|work> helenclarko, http://docs.silverstripe.org/framework/en/howto/grouping-dataobjectsets
103: [00:26:42] <adrexia> damn you simon_w|work I just grabbed the same linkj
104: [00:26:48] <spronk2> hahaha
105: [00:26:49] * simon_w|work wins!
106: [00:26:49] <adrexia> #too_slow
107: [00:26:50] <spronk2> so did i :(
108: [00:26:58] <spronk2> simon_w|work is on it today'
109: [00:27:03] * simon_w|work isn't even supposed to be watching IRC!
110: [00:27:19] <helenclarko> Thanks again Simonw
111: [00:27:58] <adrexia> For some unexplicable reason I have a certain fondness for grouped list
112: [00:28:40] <adrexia> I think it was one of the first things I successfully upgraded from 2.4 to 3, and thus one of the first things I learnt in Silverstripe
113: [00:28:46] <adrexia> :D
114: [00:29:21] <mudmonth> also, if i do this from a controller, i don't need to worry about any kind of sanatization for ID eh? SomeDataObject::get()->filter(array('ID' => $request->param('ID')))->First()
115: [00:29:32] <Colin[pi]> adrexia and grouped list, sitting in a tree
116: [00:29:44] <adrexia> oi!
117: [00:29:45] <Colin[pi]> G R O U P I NG
118: [00:29:46] <Colin[pi]> fuck
119: [00:29:58] <adrexia> I even made a split list thing based on it
120: [00:30:11] <spronk2> hahaha
121: [00:30:12] <JeremyRoundill> novaweb: I know, but he responded with the answer to your new question.
122: [00:30:15] <adrexia> which was only a few months ago and like the first unit test I ever wrote
123: [00:30:17] <mahfuz> simon any alternative to using $_SESSION in the code that you saw earlier - http://www.sspaste.com/paste/show/5456b834b600f
124: [00:30:23] <adrexia> (in php anyway)
125: [00:30:53] <adrexia> JeremyRoundill, hey he has carbon dioxide poisoning
126: [00:31:02] <adrexia> give 'em a break :D
127: [00:31:15] <JeremyRoundill> adrexia, don't we all?
128: [00:31:19] <adrexia> hahaha
129: [00:31:30] <adrexia> I... don't think so?
130: [00:31:49] * spronk2 , for one, certainly hopes not
131: [00:32:27] <adrexia> what were those signs again?
132: [00:33:03] <JeremyRoundill> adrexia: It was a joke. You said carbon dioxide instead of monoxide.
133: [00:33:20] <JeremyRoundill> Carbon dioxide is all good. I'm spluttering that business out all day.
134: [00:33:28] <adrexia> JeremyRoundill, yep - got that ;)
135: [00:33:41] <adrexia> though actually, too much of that is bad
136: [00:34:00] <JeremyRoundill> Ain't that the truth
137: [00:34:01] <adrexia> but then so is too much of any one thing
138: [00:34:12] <Colin[pi]> everything in moderation!
139: [00:34:22] <adrexia> ...including moderation!
140: [00:34:37] <JeremyRoundill> Except heroin.
141: [00:34:47] <JeremyRoundill> Can't get enough of the stuff
142: [00:35:45] <mudmonth> also third question for no one to answer, how do i iterate through the hierarchy of request handlers?
143: [00:35:57] <mudmonth> trying to work out how to build this URL
144: [00:37:25] <Colin[pi]> mudmonth: sounds kinda like you're overcomplicating things
145: [00:38:05] <mudmonth> did you see my original question about the EditForm which is part of LeftAndMain
146: [00:38:15] <Colin[pi]> mudmonth: probably not :D
147: [00:38:24] <adrexia> repeat it?
148: [00:38:42] <adrexia> (its busy today, and monday)
149: [00:38:58] <mudmonth> hey guys, is there any way i can find out from EditForm what it thinks the URL is? right now the full url looks like /admin/<model admin prefix>/<DO Class>/EditForm/field/<DO Class>/item/1/edit and i want everything after EditForm (EditForm is a SS Gridfield in ModelAdmin)
150: [00:39:37] <mudmonth> my scope is the record being edited and the Form instance (through an extension)
151: [00:39:49] <adrexia> you haven't extended editform or anything ?
152: [00:39:52] <mudmonth> nope
153: [00:39:54] <mudmonth> extension
154: [00:39:56] <adrexia> Or item detail form or whateevr
155: [00:40:13] <adrexia> what do you need it for?
156: [00:40:16] <spronk2> hm
157: [00:40:22] <spronk2> how do i get textual to lighten up nick colours..
158: [00:40:33] <mudmonth> adrexia: i've built a module that adds the cms preview to data objects
159: [00:40:43] <mudmonth> right so i need to interogate the item detail form i guess
160: [00:40:45] <adrexia> and you need the url?
161: [00:40:49] <mudmonth> for the edit action
162: [00:40:54] <adrexia> quite likely
163: [00:41:03] <adrexia> umm, don't quote me on that though
164: [00:41:06] <mudmonth> adrexia: because the original cms preview isn't built for general use i have to jump through a few hoops, yeah
165: [00:41:11] <adrexia> find out what the controller is, and if it knows
166: [00:41:23] <adrexia> yeah, been there with other stuff
167: [00:41:30] * zippy has joined #silverstripe
168: [00:41:44] <zippy> hi
169: [00:41:55] <mudmonth> also how do i submit a silly bug i found
170: [00:41:56] <Kingy> heyooo
171: [00:42:06] <adrexia> github probably :)
172: [00:42:10] <mudmonth> just sprintf() missing from an exception throw in SilverStripeNavigator
173: [00:42:18] <mudmonth> ok
174: [00:42:23] <zippy> mudmonth: submit pull request :)
175: [00:42:41] <zippy> simon_w|work: http://www.fastcomet.com/silverstripe-hosting -- where is yours?
176: [00:43:08] <simon_w|work> zippy, same place as my funding
177: [00:43:38] <zippy> simon_w|work: drop the "buy me a new laptop" and that would bring down the funding price :)
178: [00:44:02] <adrexia> <mudmonth> just sprintf() missing from an exception throw in SilverStripeNavigator
179: [00:44:06] <mudmonth> whoever dave is, i gave him his first issue https://github.com/mango9/dave/issues/1
180: [00:44:15] <adrexia> I sincerly hope that wasn't my fault
181: [00:44:16] <simon_w|work> zippy, not so sure about that. Would increase dev time by a lot.
182: [00:44:19] <mudmonth> probably the wrong repo (first hit on google)
183: [00:44:38] * pingu_ has joined #silverstripe
184: [00:44:43] <adrexia> hahahaha
185: [00:45:02] <adrexia> that is one exciting repo
186: [00:45:06] <mudmonth> haha
187: [00:45:11] <adrexia> umm, its not core?
188: [00:45:39] * spronk2 quit (Quit: bleep bleep bloop bloop)
189: [00:45:42] <pingu_> HI everyone, could someone help me out really quickly? I'm using gridfieldextensions for inline editing some fields, and I wanted one of them to be a dropdown
190: [00:45:47] <mahfuz> Anybody have any idea on this - http://www.sspaste.com/paste/show/5456b834b600f -- simon said not to use $_SESSION but what alternative can I use as omiting that line doesn't remove the item from Session Array
191: [00:45:51] * antmas quit (Quit: Page closed)
192: [00:45:56] <mudmonth> sorry new to this adrexia
193: [00:46:03] * spronk2 has joined #silverstripe
194: [00:46:11] <adrexia> I thinki...that looks like not the mosult you are using ;)
195: [00:46:17] <adrexia> just sayin'
196: [00:46:22] <JeremyRoundill> mudmonth: That repo actually looks awesome
197: [00:46:29] <adrexia> it does, at that
198: [00:46:29] <JeremyRoundill> mudmonth: dave - what would he do
199: [00:46:32] <simon_w|work> mahfuz, get the index of the value, Session::remove('MyLightbox.' . $index)
200: [00:46:40] <adrexia> WHAT WOULD HE DO
201: [00:46:42] <adrexia> ?
202: [00:46:44] <adrexia> lols
203: [00:46:51] <adrexia> actually a silverstripe in joke
204: [00:47:08] <JeremyRoundill> Really?
205: [00:47:18] <adrexia> yeah. Dave was a thing for a while
206: [00:47:25] <pingu_> I tried this but I can't get options into my dropdown
207: [00:47:25] <pingu_> http://pastebin.com/4pxa8TDm
208: [00:47:34] <spronk2> hmm
209: [00:47:40] <mudmonth> okay, that's more realistic, issue #1126
210: [00:48:22] <adrexia> https://github.com/silverstripe/silverstripe-cms
211: [00:48:58] <adrexia> probably the right palce for that one ^
212: [00:49:27] <adrexia> https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/controllers/SilverStripeNavigator.php
213: [00:49:39] <mudmonth> yeah already done
214: [00:49:43] <adrexia> sweet :)
215: [00:50:02] <mudmonth> i mean i knew you guys were not super popular, but being issue #1 was too funny not to share
216: [00:50:11] <adrexia> though, thankyou for pointing out the dave repo
217: [00:50:13] <adrexia> :D
218: [00:50:24] <adrexia> lols
219: [00:50:35] <mudmonth> https://github.com/mango9/dave/issues/1 closed it
220: [00:50:43] <mudmonth> thanks dave
221: [00:53:12] * pingu_ quit (Quit: Page closed)
222: [00:53:13] <zippy> anyone used/using cloudflare on a silverstripe site?
223: [00:54:13] <zippy> I am thinking of using it, and full caching most of the pages, and then writing an extension/hook to clear the cache to page save. I can see issues with the preview page and staging though, and wonder if anyone else has done it
224: [00:55:10] <mudmonth> can't you just use another vhost for the non cached version
225: [00:55:28] <mudmonth> and tell cloudflare to pass through that dns record rather than manage it
226: [00:55:54] <zippy> so cache site.com and not admin.site.com
227: [00:56:07] <zippy> hm
228: [00:56:11] <mudmonth> that'd be the most pains free answer
229: [00:56:15] <mudmonth> -s
230: [00:56:50] <zippy> possibly, you can tell cloudflare to exclude things, lilke /Security and /admin/ and then I think check for the stage query param, and stage cookie
231: [01:01:08] <Stomach> zippy - we use cloudflare
232: [01:01:24] <Stomach> the only downside is if you want to upload more than 100mb files you need to pay exhorbitant fees
233: [01:01:24] <zippy> Stomach: tell me more
234: [01:01:29] <Stomach> or setup subdomains
235: [01:01:36] <zippy> not really a problem
236: [01:01:40] <zippy> (100mb)
237: [01:01:43] <Stomach> but pretty much we just use all the default settings, turn off javascript loaders for admin section
238: [01:01:46] <Stomach> and let it go
239: [01:01:50] <Stomach> works great
240: [01:02:03] * UncleCheese has joined #silverstripe
241: [01:02:13] <zippy> how do you deal with stage and live, or do you not agressive cache pages?
242: [01:02:31] <zippy> UncleCheese: "Forking unclecheese/silverstripe-dashboard" nom nom. Thats a nice module btw
243: [01:02:41] <UncleCheese> nice
244: [01:02:48] <UncleCheese> submit some PRs
245: [01:02:57] <zippy> UncleCheese: I will, I have two planned
246: [01:03:03] <UncleCheese> cheers
247: [01:03:04] <zippy> just need more time.......
248: [01:03:06] <UncleCheese> i love that module, too
249: [01:03:08] <zippy> but will do later
250: [01:03:11] <zippy> today
251: [01:03:57] <zippy> Stomach: you do agressive caching?
252: [01:04:10] <Stomach> zippy - we dont aggressive cache
253: [01:04:12] <Stomach> because of that issue
254: [01:04:34] <zippy> Stomach: I am going to have a play, as I want to agressive cache, so will let you know how I get on
255: [01:04:41] <zippy> Stomach: do you just have sites on the free plan, or go pro
256: [01:04:52] <helenclarko> Is there anything I should know when using the require javascript tag in the page.ss template on an xampp server? My Javascript files wont load, Im using <% require javascript("themes/tls/javascript/audio-player.js") %>
257: [01:05:35] <zippy> helenclarko: does the file actually exist there. the path is case sensetive
258: [01:05:46] <JeremyRoundill> UncleCheese: Your demo page is down :(
259: [01:05:52] <UncleCheese> yup
260: [01:05:59] <helenclarko> Yea, all existing
261: [01:06:52] <helenclarko> Anything need to be enabled on the xampp server?
262: [01:07:50] <JeremyRoundill> UncleCheese: I was just getting my website-stalk on. aaroncarlino.com is gone too :O
263: [01:07:58] <UncleCheese> yup
264: [01:07:59] <adrexia> UncleCheese, the dahboard analytcis stuff won't work anymore apparently
265: [01:08:06] <adrexia> *dashboard
266: [01:08:09] <UncleCheese> needs a GA api upgrade
267: [01:08:14] <adrexia> googles changed a bunch of things :)
268: [01:08:18] <adrexia> yep
269: [01:08:19] <UncleCheese> yup
270: [01:08:24] <zippy> yea
271: [01:08:38] <JeremyRoundill> I'll try install your dashboard on a local site a bit later
272: [01:08:43] <Stomach> zippy - we have some on the pro plan
273: [01:08:47] <Stomach> most on the free one though
274: [01:09:20] <zippy> Quite a good (5 min) video -> https://www.youtube.com/watch?v=29UXzfQWOhQ -- Isn't That Code Dead? -- Video on a clever way to deal with dead code: "tombstones". Dated markers in the code that report when they are hit so you don't blindly remove code that actually is used in production but you somehow aren't testing.
275: [01:09:28] <adrexia> also, the pink grey of the tiles makes me want to submit a pull request to change it to the blue grey that everythign else uses.
276: [01:09:55] <adrexia> (I'm a bit color obsessed)
277: [01:10:14] <adrexia> but yeah, good module. I use it when I can :)
278: [01:10:59] <adrexia> it's a much better idea for a landing page than the sitetree
279: [01:11:40] <adrexia> and being able to see what has changed recently is very very valuable
280: [01:12:09] <zippy> be interesting to be able to tombstone css. It's easy for that shit to get nasty
281: [01:12:33] <zippy> adrexia: best way to clean up css on a 20 page site with login area?
282: [01:12:56] <adrexia> clean up?
283: [01:13:13] <zippy> remove old styles no longer used
284: [01:13:22] <adrexia> ahh right!
285: [01:13:30] <zippy> delete and pray/
286: [01:13:58] <adrexia> well you could use a tool, but I tend to do that stuff by hand, because its easy to get burnt
287: [01:14:28] <zippy> mmm mm true
288: [01:14:30] <adrexia> pretty much. the ultra best way is to set up scvreen shot test stuff and get it to send you the results when things change
289: [01:14:51] <simon_w|work> Or do what instagram do and don't have nested rules
290: [01:15:01] <adrexia> but assuming you are a meer mortal - I usually find if anything references soemthing, then hit delete
291: [01:15:10] <simon_w|work> Or only one level deep with the top level being the page rule
292: [01:15:34] <adrexia> name spacing css to pages is a bit ugly
293: [01:16:20] <JeremyRoundill> zippy: interesting vid
294: [01:16:33] <zippy> simon_w|work: nested rules like; .job-details header .button, .job-details header .page-home .content .home-login, .page-home .content .job-details header .home-login { ?
295: [01:16:57] <simon_w|work> zippy, yeah, good luck figuring out if any of those are used
296: [01:17:11] <zippy> thats from instagram..
297: [01:17:30] <ss23> Work got me a Steam voucher, which I have to say, is the first voucher I've had in like 10 years that I will actually spend
298: [01:17:32] <adrexia> poorly engineered css is very very hard to clean up
299: [01:17:57] <zippy> ss23: yea all those haircut vouchers have clearly gone to waste
300: [01:18:02] <adrexia> ss23 have they stopped paying you in money?
301: [01:18:34] <ss23> haha
302: [01:23:59] * onfire has joined #silverstripe
303: [01:24:51] <onfire> hi guys, has anyone had trouble with Subsites and not being able to upload images into the editor field?
304: [01:25:02] <onfire> getting this error
305: [01:25:03] <onfire> TypeError: settings.headers is undefined opts = {pjax: xhr.getResponseHeader('X-Pjax') ? xhr.getResponseHeader('X-Pj
306: [01:26:11] * nzstephenf has joined #silverstripe
307: [01:26:48] <adrexia> onfire that's a new one for me
308: [01:27:18] <onfire> Yea I've never seen it before
309: [01:27:30] <adrexia> oh wait, I may have seen it too a couple of months back
310: [01:27:40] <adrexia> what version of the framework do you have?
311: [01:28:13] <onfire> 3.1.6
312: [01:28:31] <adrexia> not a permissions problem?
313: [01:28:53] <onfire> thats what I assumed at first as its on a different system but if I remove the subsite module it works fine
314: [01:29:06] <mahfuz> simon: Thanks for your solution - Session::remove('MyLightbox.' . $index) - I just replaced remove with clear(), you may have mistyped it. It is fullfiling my purpose just showing several NULL values in the array for the removed elements.
315: [01:29:49] <adrexia> yeah, I just noticed that I'm getting a bunch of js typeerrors in the site nI thought I saw it happen in v
316: [01:29:49] <onfire> and I can also upload ok via UploadField
317: [01:30:45] <adrexia> yep. there is a bug there
318: [01:31:03] <onfire> you getting it too?
319: [01:31:06] <adrexia> don't have time to track down why, but can verify that something isn't workign right
320: [01:31:20] <adrexia> I'm getting an uncaught typeerror
321: [01:31:22] <onfire> with Subsites module also?
322: [01:31:25] <onfire> interesting
323: [01:31:32] <adrexia> given its js the two could be related
324: [01:31:40] <adrexia> yes- also with subsites module
325: [01:31:47] <onfire> Ok good to know
326: [01:32:03] <adrexia> though I haven't tried remopving subsites and rechecking
327: [01:32:18] <onfire> can't really remove subsites which is a pain
328: [01:33:33] <mudmonth> how do i make module that just has 3 bare functions in it
329: [01:35:03] <adrexia> checked subsites to make sure nopone else has reported it?
330: [01:35:28] <simon_w|work> Come on Phil, make the page pretty
331: [01:35:31] * MrGuits quit (Read error: Connection reset by peer)
332: [01:35:31] <simon_w|work> I'm out of work again!
333: [01:35:56] * MrGuits has joined #silverstripe
334: [01:36:53] <onfire> adrexia yea I have checked the issues on github but nothing about it
335: [01:37:08] <onfire> also to confirm I just double checked without Subsites module and definitely helps
336: [01:37:10] * adrexia nods
337: [01:37:39] <adrexia> oh... umm
338: [01:37:50] <zippy> simon_w|work: ?
339: [01:38:36] <simon_w|work> zippy, I've finished all the tickets I can do without Phil doing his frontend magic one of large one.
340: [01:38:55] <zippy> right, thought you'd left your job again
341: [01:39:14] <adrexia> onfire the bug is likely in this file somewhere
342: [01:39:16] <adrexia> https://github.com/silverstripe/silverstripe-subsites/blob/master/javascript/LeftAndMain_Subsites.js#L64
343: [01:39:31] <adrexia> porobably somethign has changed in core and subsites doesn't know about it
344: [01:39:57] <adrexia> also: $('#Form_ItemEditForm_Subsites').parent().parent().css('display', ($('#Form_ItemEditForm_AccessAllSubsites_1').is(':checked') ? 'none':''));
345: [01:39:58] <adrexia> ewww!
346: [01:40:36] <onfire> ahh right yea that makes sense - it is an error on LeftAndMain.js
347: [01:41:18] <adrexia> yeah, it'll be trying to do things wrong
348: [01:41:23] <adrexia> not sure what though
349: [01:41:36] <adrexia> but there's plenty of scope in that file for fail
350: [01:42:59] <onfire> hmm yea I can see how that could fall over
351: [01:43:10] <onfire> although nothing obvious about why it would cause file uploads to fail!
352: [01:44:12] <zippy> god damn it
353: [01:44:36] <zippy> got a bootstrap 3.2 config and need to add another js lib, but the online customizer is now gone since 3.3. is out
354: [01:45:09] * mudmonth quit (Changing host)
355: [01:45:09] * mudmonth has joined #silverstripe
356: [01:45:27] <zippy> ah well
357: [01:46:22] <onfire> adrexia oh well i guess its going to have to be some trial and error
358: [01:50:05] * Subv has joined #silverstripe
359: [01:50:10] <Subv> Hi guys!
360: [01:50:15] <zippy> hi
361: [01:51:04] * simon_w|work twiddles his thumbs
362: [01:51:18] <simon_w|work> Hmm, guess I could work on making things faster
363: [01:51:32] <simon_w|work> Turns out Zend_Cache is crap. Whodthunkit?
364: [01:52:13] <Subv> I want to create a site and I've been researching on several CMS frameworks so far, i stumbled upon Silverstripe and wanted to ask how easy it would be to use it to display dynamic content from both the SS database and another external database in different (maybe the same?) "widgets / blocks" in a template
365: [01:53:04] <zippy> simon_w|work: you could make things faster, but will get merged in...
366: [01:53:15] <simon_w|work> zippy, not for SilverStripe, so yes :p
367: [01:53:31] * simon_w|work doesn't use SS at his day job! It's great!
368: [01:53:53] <zippy> thats right.. you have to deal with smarty instead
369: [01:54:22] <simon_w|work> Nah, all my frontend work's with Angular now
370: [01:54:25] <simon_w|work> Is slightly better :p
371: [01:55:03] <zippy> and backend?
372: [01:55:30] <simon_w|work> Custom PHP stack
373: [01:56:57] <JeremyRoundill> Subv: As easy as it is in most other MVC frameworks. It's not a big deal, you can always query external databases.
374: [01:57:49] * onfire quit (Quit: Page closed)
375: [01:57:53] <Subv> i see, thanks
376: [01:58:04] <JeremyRoundill> Subv: I find SilverStripe quite good because it almost forces you to program in the MVC pattern.
377: [01:58:39] <Subv> from the documentation, the framework looks very nice, the admin panel seems a bit lacking though
378: [01:58:40] <JeremyRoundill> Subv: What other frameworks have you programmed with?
379: [01:59:06] * travis-ci has joined #silverstripe
380: [01:59:06] <travis-ci> silverstripe/silverstripe-cms#1076 (3.1 - 93d09d4 : Sam Minnée): The build passed.
381: [01:59:06] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/7fc5a29f3591...93d09d4dbbee
382: [01:59:06] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/39793826
383: [01:59:06] * travis-ci has left #silverstripe
384: [01:59:21] <JeremyRoundill> Subv: You might be getting the framework and CMS confused.
385: [01:59:36] <Subv> I've not used any CMS before, hence my research, i've truly only used Symfony2 and my other own hand-drawn solutions
386: [02:00:30] <JeremyRoundill> Subv: SS is pretty nice. I'm also a fan of Laravel - no CMS with that though.
387: [02:04:21] * micmania1 quit (Quit: micmania1)
388: [02:06:01] * veb has joined #silverstripe
389: [02:06:08] <mahfuz> I am trying to test silverstripe-payment module along with silverstripe-payment-paymentexpress module. I have placed the module files in the server. silverstripe-payment module doc says to write some options in mysite/_config/Mysite.yaml and silverstripe-payment-paymentexpress module says something to write in mysite/_config/payment.yaml - Should I create thos yaml files or writhe the configuration in mysite/_config/config.y
390: [02:06:39] * micmania1 has joined #silverstripe
391: [02:06:48] <JeremyRoundill> mahfuz: That sounds like a problem for Google.
392: [02:07:48] <zippy> mahfuz: I would just go with payment.yaml for both
393: [02:08:10] <mahfuz> thanks zippy for shedding some light
394: [02:08:24] * muskie9 has joined #silverstripe
395: [02:08:36] <JeremyRoundill> zippy: I think he was asking whether the config *can* go in those files, or if they need to be referenced from somewhere.
396: [02:08:49] <mahfuz> becasue both the config options are similar one file should be used
397: [02:09:00] <JeremyRoundill> mahfuz: That's up to you.
398: [02:09:21] <zippy> mahfuz: it's not a should, it's a 'could'. I would go with the 1 so all the payment config is in one place
399: [02:09:26] <JeremyRoundill> mahfuz: Computers don't tend to care too much about how pretty your config files are.
400: [02:10:23] <mahfuz> another thing. The doc shows both options for dev and live. Should I use one like I will just test it using dev?
401: [02:10:48] <zippy> JeremyRoundill: yaml does :)
402: [02:11:55] <JeremyRoundill> zippy: Site functionality is directly proportional to yaml prettiness.
403: [02:11:57] <mahfuz> Jeremy: I was confused about whether we need new files with .YAML extension or use the config.yml file as the location is not inside the module folders as per the doc.
404: [02:12:08] <JeremyRoundill> mahfuz: Which is a question for Google.
405: [02:19:30] * Subv has left #silverstripe
406: [02:25:16] <Colin[pi]> rofl: http://www.reddit.com/r/Glitch_in_the_Matrix/comments/2l1nsp/time_just_went_backwards/
407: [02:33:40] <JeremyRoundill> Hahaha
408: [02:33:43] <JeremyRoundill> Did that hit the front page?
409: [02:34:21] <JeremyRoundill> The next top /r/glitch_in_the_matrix is at 41 upvotes
410: [02:34:49] <JeremyRoundill> Wait
411: [02:34:52] <JeremyRoundill> That's just today
412: [02:35:04] <JeremyRoundill> 1885 from a year ago
413: [02:39:52] * r_hector has joined #silverstripe
414: [02:43:48] <spronk2> looooooool
415: [02:47:00] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
416: [02:47:29] <mudmonth> what exception would you throw for a misconfigured silverstripe module (just made this preview one)
417: [02:48:38] <mudmonth> with a grep of the code i guess just Exception
418: [02:54:17] <JeremyRoundill> mudmonth: What are you making?
419: [02:56:11] <mudmonth> just made a data object extension and class that you can use that split-view cms preview pane with
420: [02:56:22] <mudmonth> so my client can edit her recipes and crap in a better format
421: [02:56:29] <JeremyRoundill> Ahh, sweet.
422: [02:56:55] <mudmonth> just gonna throw a normal Exception
423: [02:58:49] * Colin[pi] is currently dissecting a Drupal site. Oh god, why? It's hideous.
424: [02:58:58] <adrexia> know the feeling
425: [02:59:05] <Colin[pi]> all of this mixed code
426: [02:59:06] <Colin[pi]> ugh
427: [02:59:08] * adrexia is stuck in Drupal land
428: [02:59:12] <adrexia> yeha
429: [02:59:17] <adrexia> I know
430: [02:59:26] <adrexia> its hard to see why developers like it
431: [02:59:41] <adrexia> I can see why almost developers would
432: [02:59:54] <Colin[pi]> it's like "hey, you guys heard of this cool separation of conc.." *SLAP* GET THE FUCK OUT WITH THAT HIPPIE TALK!
433: [03:00:01] <adrexia> lol
434: [03:00:09] <adrexia> I thin k most drupal devs actually agree
435: [03:00:12] <JeremyRoundill> I haven't had to mess with Drupal yet, but I feel the same about WordPress.
436: [03:00:18] <adrexia> its s hole you get stuck in
437: [03:00:19] <Colin[pi]> oh god
438: [03:00:27] <Colin[pi]> derppress is just as bad
439: [03:00:29] <JeremyRoundill> I keep getting random sites built on WP come to me to fix.
440: [03:01:05] <JeremyRoundill> Oh, you wanted an online cart for selling large quantities of high-quality photographs?
441: [03:01:18] <JeremyRoundill> Good thing you chose a blogging platform to do so.
442: [03:01:22] <Colin[pi]> lol
443: [03:01:36] <JeremyRoundill> There was another one which came through recently.
444: [03:01:45] <JeremyRoundill> It's a job-board.
445: [03:01:50] <JeremyRoundill> I'm just like "Whyyyyy"
446: [03:02:32] <JeremyRoundill> They keep asking for changes, I usually price it at around 4 hours of work for small changes.
447: [03:02:47] <JeremyRoundill> Just because it will take me soooo long to fix up little changes.
448: [03:06:56] * UncleCheese quit (Ping timeout: 272 seconds)
449: [03:06:56] * markcl quit (Read error: Connection reset by peer)
450: [03:23:06] <novaweb> fatal: Authentication failed
451: [03:23:09] <novaweb> har har har
452: [03:23:45] <Colin[pi]> adrexia!
453: [03:24:01] <Colin[pi]> where the fuck does drupal keep validation code?
454: [03:24:33] <Colin[pi]> or is it just "wherever" like the rest of the code?
455: [03:24:37] <adrexia> who knows
456: [03:24:42] <adrexia> in a module I expect
457: [03:24:42] <Colin[pi]> ;_;
458: [03:24:42] <spronk2> heh
459: [03:24:48] <novaweb> it's in space dude. up in the clowd.
460: [03:25:00] <adrexia> hmm
461: [03:25:09] <adrexia> users can add db fields from within the cms.
462: [03:25:16] <novaweb> just run a grep on it. and if not rm -rf * and it'll be all fixed.
463: [03:25:18] <adrexia> its thew wild west in there
464: [03:25:24] <Colin[pi]> novaweb: lol
465: [03:25:52] <Colin[pi]> I've got the module here... looking at a .tpl.. nice mix of html, template markers, javascript, ajax and fuck knows what else :(
466: [03:26:11] <Colin[pi]> but that's prolly more the developers fault by the looks
467: [03:26:25] <adrexia> ahh, the one I'm looking at has some zend framework stuff for valoidation, sitting i na libraries folder
468: [03:26:31] <Colin[pi]> ooh
469: [03:26:36] <Colin[pi]> let me check for libraries
470: [03:27:01] <Colin[pi]> mm looks like jquery
471: [03:27:05] <adrexia> this is a hacked up D6 job though
472: [03:27:07] <Colin[pi]> and ckeditor
473: [03:27:21] <adrexia> sites/all/libraries?
474: [03:27:38] <adrexia> then vender actually
475: [03:27:44] <adrexia> *vendor
476: [03:28:14] <Colin[pi]> no vendor :(
477: [03:28:41] <adrexia> yeha, there's a lot about this that is ...specific
478: [03:28:46] <Colin[pi]> sites/all/modules has a bunch of stuff
479: [03:33:12] <Colin[pi]> BINGO
480: [03:33:13] <Colin[pi]> found it
481: [03:33:17] <Colin[pi]> function formRule()
482: [03:39:39] <zippy> shopify pretty nice eh
483: [03:40:54] <mudmonth> if i know the name of a page controller, can i search the site tree for the first instance of it?
484: [03:41:07] <mudmonth> the site tree only holds the data objects eh
485: [03:43:40] <ss23> mudmonth: FooBar::get()->first()
486: [03:43:50] <ss23> You can do it in templating too, if you need
487: [03:43:58] <ss23> (Common paradigm for footer sand headers etc)
488: [03:45:07] <mudmonth> is the convention PageDataObject PageDataObject_Controller a constant? i don't want to assume _Controller but it looks like the way to do it?
489: [03:47:00] <simon_w|work> Trying to load the "More info" page about why Chrome is showing "It's dead Jim". Chrome crashes.
490: [03:47:03] <simon_w|work> Good job Google!
491: [03:48:11] <JeremyRoundill> mudmonth: Pretty much.
492: [03:48:42] <JeremyRoundill> mudmonth: I can't recall seeing a controller without _Controller
493: [03:49:04] <ss23> mudmonth: It's an enforced convention... but uh... I mean if people do things wrong, you can't stop them
494: [03:49:38] <mudmonth> okay
495: [03:49:46] <simon_w|work> mudmonth, if it's for a subclass of SiteTree, it has to be _Controller
496: [03:50:29] <JeremyRoundill> Does it have to be _Controller for the code to work, or is it just convention?
497: [03:50:43] <JeremyRoundill> Like, if I decided to mess with things and omit it, would my code still work?
498: [03:51:22] <simon_w|work> It has to be _Controller for it to work
499: [03:51:28] <adrexia> search the code for _Controller
500: [03:51:37] <adrexia> there's something magic there
501: [03:51:43] <JeremyRoundill> Ahh
502: [03:51:46] <JeremyRoundill> Groovy, thanks
503: [03:51:52] <simon_w|work> https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/controllers/ModelAsController.php#L28
504: [03:51:54] <JeremyRoundill> The more you know :)
505: [03:53:18] <JeremyRoundill> So if I deleted the _Controller bit from line 28 and deleted _Controller from everywhere else...
506: [03:53:19] <JeremyRoundill> :P
507: [03:53:46] <adrexia> and have some other magic name you can tie things to
508: [03:53:48] <adrexia> ;)
509: [03:56:27] <JeremyRoundill> _Magic_Juju
510: [03:56:36] <novaweb> Dealing with versioning... how do you target _Live and _versioned records... or is it a matter of using DB::query?
511: [03:56:50] <novaweb> ie: $pagesLive = SiteTree_Live::get(); (Person_Live does not exist)
512: [03:57:04] <novaweb> Sorry, SiteTree_Live... class does not exist
513: [03:57:13] <simon_w|work> novaweb, don't use DB::query :p Either Versioned::get_by_stage, or just SiteTree::get() for current stage
514: [03:57:32] <novaweb> thank you for the millionth time, simon_w
515: [03:58:12] <JeremyRoundill> novaweb: http://doc.silverstripe.org/framework/en/topics/versioning
516: [03:58:23] <novaweb> thank Jeremy will check it out in the am
517: [03:58:34] * novaweb signs off!
518: [03:58:37] * novaweb quit (Quit: Leaving)
519: [03:59:19] <JeremyRoundill> Jeez, this whole IRC thing is making me more familiar with SS than ever.
520: [03:59:52] <JeremyRoundill> Simon, have you got the docs tattooed on your arm or something?
521: [04:00:18] <simon_w|work> JeremyRoundill, there's actually docs for it? Huh.
522: [04:00:45] * Phlunk3 quit (Remote host closed the connection)
523: [04:00:48] <JeremyRoundill> simon_w|work: docs for days
524: [04:00:51] <JeremyRoundill> Anyway, It's 5pnm
525: [04:00:54] <JeremyRoundill> *pm
526: [04:01:12] * simon_w|work gets to debug why Chrome, and only Chrome, is hitting the OOM killer for this particular page
527: [04:01:41] <JeremyRoundill> Which page?
528: [04:02:09] * helenclarko quit (Quit: Page closed)
529: [04:02:10] <zippy> JeremyRoundill: Simon pipes the whole docs into 'say' and listiens to it at night
530: [04:02:18] <JeremyRoundill> zippy: Hahaha
531: [04:02:29] <simon_w|work> https://release.easyemployer.com/report.php#{"type":"Report_Entitlement","period":{"reference":"","end":""},"scopes":[],"group_by":"Data_Scope_OrgUser","options":{},"sort":{"field":null,"dir":"asc"}}
532: [04:02:33] * PapaBearNZ has left #silverstripe
533: [04:02:35] <simon_w|work> That one
534: [04:02:59] <JeremyRoundill> Can't help, no access to the domain.
535: [04:03:32] <JeremyRoundill> Anyway, I'd better bounce.
536: [04:03:35] <JeremyRoundill> Catchya!
537: [04:03:38] <spronk2> mm
538: [04:05:37] <zippy> Colin[pi]: who did you use for hosting again?
539: [04:06:31] <mudmonth> is there a generic ss template i can use for renderWith that looks like, say the exceptions page or something, that I can just put a simple message in?
540: [04:06:42] <mudmonth> since it's only seen in the CMS backend before you've saved the DO
541: [04:07:36] <zippy> mudmonth: just make one called Basic or something
542: [04:08:45] <simon_w|work> mudmonth, IIRC, there's Controller.ss
543: [04:12:48] * willr quit (Quit: willr)
544: [04:13:37] * travis-ci has joined #silverstripe
545: [04:13:38] <travis-ci> silverstripe/silverstripe-framework#3550 (3.1 - 646a57c : Sam Minnée): The build passed.
546: [04:13:38] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/bd23ff0a3aef...646a57c3244e
547: [04:13:38] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/39799872
548: [04:13:38] * travis-ci has left #silverstripe
549: [04:14:34] * Stomach quit (Ping timeout: 256 seconds)
550: [04:15:08] * Stomach has joined #silverstripe
551: [04:24:25] <zippy> highcharts expensive daanng
552: [04:24:32] * Stomach quit (Ping timeout: 265 seconds)
553: [04:25:14] * micmania1 has left #silverstripe
554: [04:28:02] * Kingy is now known as Kingy[a]
555: [04:28:23] * Ryan-Toast quit (Quit: Ryan-Toast)
556: [04:30:42] <mudmonth> can you tell silverstripes loader to ignore a directory inside a module
557: [04:30:59] <mudmonth> i'm sure i saw something a while ago but can't find it
558: [04:32:45] <zippy> put an understore on the name of the folder
559: [04:32:59] <zippy> _ignored
560: [04:33:02] <zippy> _dontscan
561: [04:33:03] <zippy> etc
562: [04:33:10] <zippy> or
563: [04:33:12] <mudmonth> cheers
564: [04:33:18] <zippy> add in a _manifest_exclude in the folder
565: [04:33:26] <zippy> oh, those might be 2.4
566: [04:36:39] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
567: [04:39:11] * cloph_away has joined #silverstripe
568: [04:40:01] * cloph quit (Ping timeout: 272 seconds)
569: [04:57:46] * spronk2 quit (Quit: I may need a longer sleep timer...)
570: [04:57:58] * spronk2 has joined #silverstripe
571: [05:00:42] * muskie9 is now known as _muskie9_
572: [05:15:54] * onfire has joined #silverstripe
573: [05:16:08] <onfire> does anyone know if its possible to randomise an arraylist?
574: [05:17:12] * spekulatius quit (Quit: Leaving)
575: [05:18:50] * nzstephenf quit (Quit: Page closed)
576: [05:26:54] * onfire quit (Quit: Page closed)
577: [05:28:15] * spronk2 quit (Quit: I may need a longer sleep timer...)
578: [05:40:13] * Stomach has joined #silverstripe
579: [06:02:31] * _muskie9_ is now known as muskie9
580: [06:25:35] <muskie9> onfire not sure if it'll work, but assuming $arrayList is your array list, I'd try $arrayList->sort('RAND()');
581: [06:38:47] * veb has joined #silverstripe
582: [06:39:19] <guzzlefry> Seems like that would only work on a DataList
583: [06:39:32] <guzzlefry> oh, they already left.
584: [06:40:51] * veb quit (Changing host)
585: [06:40:51] * veb has joined #silverstripe
586: [06:41:31] <muskie9> guzzlefry, would be interested to see, don't think I've ever tried it
587: [06:42:27] * veb quit (Client Quit)
588: [06:42:41] * veb has joined #silverstripe
589: [06:43:50] <guzzlefry> Looking at the code, seems it only supports desc or asc.
590: [06:44:08] * Stomach quit (Quit: zzz)
591: [06:44:38] <muskie9> ya, was just checking it out... might be useful to figure out
592: [07:08:26] * zippy has joined #silverstripe
593: [07:12:01] <mudmonth> so that's what i've got so far https://github.com/jotham/silverstripe-dataobject-preview
594: [07:12:02] * Error404NotFound has joined #silverstripe
595: [07:12:08] <mudmonth> gone to try it on one of my commercial projects now
596: [07:18:07] * wracu quit (Ping timeout: 265 seconds)
597: [07:21:34] <mudmonth> probably explode
598: [07:21:36] <mudmonth> burn my house down
599: [07:21:50] * veb quit (Remote host closed the connection)
600: [07:22:09] * veb has joined #silverstripe
601: [07:22:15] <muskie9> mudmonth, gotta start somewhere ;)
602: [07:22:44] <muskie9> I'm gonna check it out tomorrow for sure... got some sites that could be useful on
603: [07:23:27] <mudmonth> normally i can't be f- sharing code but i thought this might actually be useful, and hopefully other people beating me with a stick can get it ironed out nicely
604: [07:24:26] <muskie9> same here... worked on a few modules that started as internal... but have open sourced in hopes of finding/fixing bugs via community
605: [07:26:12] <muskie9> how does a site get to be 900mb+ I'll never know
606: [07:26:58] * mahfuz quit (Ping timeout: 246 seconds)
607: [07:30:03] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
608: [07:32:30] * Guits has joined #silverstripe
609: [07:32:35] * Eliseth has joined #silverstripe
610: [07:33:18] * veb has joined #silverstripe
611: [07:34:52] * MrGuits quit (Ping timeout: 245 seconds)
612: [07:35:24] <zippy> mudmonth: for 3.0 or 3.1?
613: [07:35:31] <mudmonth> oh 3.1
614: [07:35:52] <mudmonth> but most of the code i was looking at in core etc looked really old
615: [07:35:59] <mudmonth> so i dunno
616: [07:36:18] <mudmonth> i'll try it against 3.0
617: [07:37:09] * Eliseth quit (Ping timeout: 258 seconds)
618: [07:52:50] * wmk has joined #silverstripe
619: [07:53:32] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
620: [07:56:55] * Shrike_Finland has joined #silverstripe
621: [07:57:18] <mudmonth> zippy: trick question, 3.0 doesn't have the preview think like 3.1 :p
622: [07:57:27] <mudmonth> zippy: but that exercise fixed a couple of bugs
623: [08:02:23] <zippy> mudmonth: well, the repo said 3.0 so..
624: [08:02:35] <Shrike_Finland> Hi, what would be the best practice to add support for FB og meta in Silverstripe?
625: [08:02:48] <mudmonth> yeah zippy i didn't realise - my bad, i've fixed it
626: [08:09:11] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
627: [08:11:49] <simon_w> Shrike_Finland, find one of the modules that already does it
628: [08:15:12] <Shrike_Finland> simon_w: I think you mean this: https://github.com/tractorcow/silverstripe-opengraph
629: [08:17:01] * veb has joined #silverstripe
630: [08:18:56] * gavro has joined #silverstripe
631: [08:39:37] * futurealism has joined #silverstripe
632: [08:39:41] <futurealism> morning everyone!
633: [08:40:14] <futurealism> last week I got some excellend help here from wmk, Zauberfisch and one other guy
634: [08:40:41] <futurealism> basically I upgraded from 2.3.old to newest with some hassles along the way
635: [08:40:57] <wmk> yup. Zauberfisch is great ;)
636: [08:41:04] <futurealism> haha
637: [08:41:10] <futurealism> now the only thing is that images don't always get resampled, or do get resampled but then seem forgotten again
638: [08:41:28] <wmk> ???
639: [08:41:30] <futurealism> I did a rm assets/*/_resampled/*
640: [08:41:35] <wmk> oh
641: [08:41:43] <futurealism> but do I need to do more than that?
642: [08:41:47] <wmk> this works well with images resampled in templates
643: [08:42:03] <wmk> but deletes the images that are included in HTMLTextFields
644: [08:42:11] <wmk> those are resampled on save
645: [08:42:26] <wmk> i normally do something like
646: [08:42:48] <wmk> find . -type f -name 'WebsitePic*' --exec rm {} \;
647: [08:43:04] <wmk> so manually for those pics i use in the templates
648: [08:43:23] <wmk> however...
649: [08:43:38] <wmk> what kind of images seem to be "forgotten"
650: [08:43:44] <wmk> and when / in which case?
651: [08:44:32] <futurealism> images in HTMLTextFields in the Content of a regular page
652: [08:44:46] <futurealism> even on re-insert, resize and save they dont appear to be updates properly
653: [08:44:49] <futurealism> updated*
654: [08:44:58] <wmk> solution 1) play in the backup and only delete other files manually
655: [08:45:09] <wmk> solution 2) save the page again
656: [08:45:29] <wmk> solution 3) write a script that calles all SiteTree objects and saves / publishes them again
657: [08:45:39] <wmk> i'd go with #1
658: [08:46:22] <wmk> well, remembering...
659: [08:46:51] <wmk> afaik images are not rescaled on save automatically....
660: [08:47:32] <futurealism> well I did the step 3 manual thing, but even then it doesnt work properly
661: [08:47:45] <futurealism> ie the resized image is simply not there in the folder
662: [08:48:07] <wmk> yup.
663: [08:48:12] <wmk> what i remember:
664: [08:48:36] <wmk> on inserting an image in editor the URL is just sth like an ImageID
665: [08:48:59] <wmk> on save it is checked and resampled / created if needed and changed to the url to the resampled image
666: [08:49:14] <wmk> so on another save it doesn't check the image again
667: [08:49:20] <wmk> as the url is still in htmltext
668: [08:49:26] <wmk> but not existant
669: [08:49:35] <wmk> how about #1 ???
670: [08:55:41] <wmk> unfortunately the logic for saving / resizing images is in HTMLEditorField::saveInto()
671: [08:56:59] <futurealism> #1: you mean 1) play in the backup and only delete other files manually
672: [08:57:03] * kinglozzer has joined #silverstripe
673: [08:57:04] <futurealism> what do you mean by "other files" ?
674: [08:58:48] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
675: [08:59:03] <wmk> jup
676: [08:59:07] <wmk> play in backup
677: [08:59:25] <wmk> delete the resampled images that you include in your Template
678: [08:59:46] <wmk> not the content ones
679: [09:00:04] <futurealism> none of the template images are resampled, they are all just static links
680: [09:00:16] <wmk> or #4: write the final solution....
681: [09:00:17] * stnvh has joined #silverstripe
682: [09:00:18] <futurealism> by "template" you mean the stuff I link in my css and .ss files yes
683: [09:00:24] <wmk> futurealism, no, in the .ss templates.
684: [09:00:44] <futurealism> what do you mean by "Template" then?
685: [09:00:50] <wmk> e.g. $Image.SetWidth(500), or $image.Resize() or the other methods
686: [09:01:08] <wmk> if you have an image object in your ORM (DataObject) and want to output it.
687: [09:01:08] <futurealism> ohhh
688: [09:02:49] <wmk> e.g. like here: http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site#adding-a-staff-section
689: [09:03:39] <wmk> back on #4: find all HTMLText fields in db containing an <img> and check if resampled file exists
690: [09:04:41] * Liquide has joined #silverstripe
691: [09:07:03] * veb has joined #silverstripe
692: [09:13:49] <futurealism> oh I see now
693: [09:13:58] <futurealism> with ?isDev=1 I get warnings when saving the page
694: [09:14:00] <futurealism> in GD.php
695: [09:14:18] <futurealism> only the warnings disappear too quickly to copy/paste them :P
696: [09:19:46] * travis-ci has joined #silverstripe
697: [09:19:46] <travis-ci> silverstripe/silverstripe-framework#3552 (master - 9cbd6f8 : Loz Calver): The build passed.
698: [09:19:46] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/4d603b85f0ea...9cbd6f8023ba
699: [09:19:46] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/39811058
700: [09:19:46] * travis-ci has left #silverstripe
701: [09:21:14] <futurealism> hm wmk, any idea how I can actually see the CMS warnings
702: [09:21:20] <futurealism> they appear in top right but are gone too fast
703: [09:23:00] <kinglozzer> futurealism: If you're in Chrome, open the dev tools and the "network" panel. When you save, there should be a request appear in there that you can then view
704: [09:23:11] <kinglozzer> (or check error logs)
705: [09:23:16] <wmk> jup. error logs
706: [09:23:22] <futurealism> where are error logs for silverstripe?
707: [09:23:27] <futurealism> never used em
708: [09:23:42] <wmk> either webserver error logs or if you defined a file to log to
709: [09:24:07] <futurealism> ah standard apache error
710: [09:24:08] <wmk> on firefox use firebug / network tab.
711: [09:24:39] <wmk> http://doc.silverstripe.org/framework/en/topics/error-handling#filesystem-logs
712: [09:26:12] * Pynofoodk has joined #silverstripe
713: [09:26:16] <Pynofoodk> D:
714: [09:26:23] <wmk> diet?
715: [09:26:26] <Pynofoodk> The breakfast shop is closed!
716: [09:26:38] <Pynofoodk> halp
717: [09:26:44] <Pynofoodk> it's the only food source around here
718: [09:26:45] * wmk doesn't understand why you have some food at home in the fridge
719: [09:26:55] <Pynofoodk> I'm not at home wmk !
720: [09:26:58] <wmk> don't have
721: [09:27:00] <Pynofoodk> and we don't have a fridge!"
722: [09:27:07] <Pynofoodk> (anyway)
723: [09:27:27] <wmk> omg
724: [09:27:35] <Pynofoodk> yeah I know, it sucks.
725: [09:27:48] <Pynofoodk> omg, I could order a piz... fuck it's the morning won't be open
726: [09:28:16] <Pynofoodk> kinglozzer: how do I get the bacon in me!?
727: [09:28:21] <wmk> for cases like this i have some muesli riegel in office
728: [09:28:25] <futurealism> FOUND IT! thanks guys
729: [09:28:29] <wmk> or at least some chocholat
730: [09:28:37] <futurealism> ownership issue, all files created get owner apache:apache
731: [09:28:40] <Pynofoodk> wmk: I usually have emergency spares too, but drawer is empty today it seems :(
732: [09:28:55] <Pynofoodk> futurealism: how is that an issue? that's normal.
733: [09:29:54] <Pynofoodk> well, unless you're running suphp or php-fpm or fcgi or something.
734: [09:30:12] <kinglozzer> Pynofoodk: Kill a pig
735: [09:30:24] <Pynofoodk> kinglozzer: only rats and seagulls around here :<
736: [09:30:47] <kinglozzer> Hmm, I've never tried rat or seagull
737: [09:30:49] <kinglozzer> Give it a shot!
738: [09:30:58] <kinglozzer> Might be _more_ delicious
739: [09:31:00] <Pynofoodk> yeah rat might be alright
740: [09:31:00] <kinglozzer> ... maybe
741: [09:31:18] <Pynofoodk> don't have time to turn it into ratbacon though
742: [09:31:59] <wmk> Pynofoodk, i tried seagull years ago... is it still developed?
743: [09:32:06] * wmk likes ss much more
744: [09:32:18] <Pynofoodk> lol
745: [09:32:27] <Pynofoodk> never heard of seagull cms
746: [09:32:47] <wmk> http://seagullproject.org/
747: [09:32:51] <Pynofoodk> kinglozzer: how goes your thinly veiled whore (aka lara)?
748: [09:32:57] <wmk> well, db error on main page...
749: [09:33:04] <Pynofoodk> wow, that design
750: [09:33:14] <wmk> oldschool
751: [09:33:15] <Pynofoodk> much 2005, very gradient, wow!
752: [09:33:18] <kinglozzer> Pynofoodk: I've not touched it this morning yet, catching up on emails first
753: [09:33:23] <kinglozzer> (i.e. delaying the torture)
754: [09:33:25] <wmk> afaik openx was based on that in the beginning
755: [09:34:07] <wmk> well, last release in 2013
756: [09:35:47] <kinglozzer> lol Pynofoodk, you love Angular: http://blog.dantup.com/2014/10/have-the-angular-team-lost-their-marbles/
757: [09:35:59] <Pynofoodk> Do I?
758: [09:36:12] <kinglozzer> (sarcasm)
759: [09:36:39] * arnhoe has joined #silverstripe
760: [09:37:23] <Pynofoodk> Well to be fair I've not tried it.
761: [09:37:32] <Pynofoodk> when I've looked into it it seemed very... controlling.
762: [09:37:35] <Pynofoodk> Like an abusive husband.
763: [09:42:53] <zippy> kinglozzer: no, it's laravel he loves
764: [09:43:36] <kinglozzer> I'm back in laravel-land now :(
765: [09:44:37] * futurealism quit (Quit: Page closed)
766: [09:44:41] <Pynofoodk> I want to go back to sleep
767: [09:45:00] <Pynofoodk> kinglozzer: you should do a write up on lvel v ss
768: [09:45:19] <Pynofoodk> or something
769: [09:45:33] <wmk> lost their marbles... sounds like .... not the right picture for "world men's day"
770: [09:45:56] <zippy> mmm big expoilt in drupal the other week eh
771: [09:46:29] * NvdB has joined #silverstripe
772: [09:46:46] <Pynofoodk> zippy: also, did you know heath ledger died?
773: [09:46:47] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
774: [09:47:57] <wmk> that was too much Pynofoodk
775: [09:48:15] <Pynofoodk> apparently :<
776: [09:48:24] * Eliseth has joined #silverstripe
777: [09:48:32] <wmk> hi Eliseth
778: [09:48:42] <Eliseth> Morning
779: [09:48:59] <Pynofoodk> Probably need a more recent news item to compare to.
780: [09:57:03] * Shrike_Finland quit (Quit: Leaving.)
781: [10:02:51] <Pynofoodk> D: just saw a picture of bacon and eggs on the interwebs
782: [10:05:56] * wracu has joined #silverstripe
783: [10:08:00] * Shrike_Finland has joined #silverstripe
784: [10:08:57] * ec8or__ has joined #silverstripe
785: [10:10:57] * ec8or_ quit (Ping timeout: 244 seconds)
786: [10:15:05] * MrGuits has joined #silverstripe
787: [10:15:05] * Guits quit (Read error: Connection reset by peer)
788: [10:15:08] <Pynofoodk> g'morn'n ec8or__ :>
789: [10:17:32] * Otterpocket has joined #silverstripe
790: [10:18:11] <Otterpocket> TextField::create() VS new TextField() ? What's the difference ?
791: [10:18:32] <Pynofoodk> the difference is that one is good, the other is very plain.
792: [10:18:47] <Pynofoodk> like... Robert Downey Jr. and Keanu Reeves
793: [10:19:35] <Pynofoodk> so go with ::create() because if you don't, ironman will spring out and suckerpunch you
794: [10:20:04] <Pynofoodk> anything else I can help you with Otterpocket ?
795: [10:20:44] <Otterpocket> No, I fully understand the difference now
796: [10:21:23] <Otterpocket> Don't be Keanu, got it
797: [10:22:48] <Pynofoodk> 'woah'
798: [10:23:02] <kinglozzer> Otterpocket: ::create() uses Injector (magic) to create the instance. So you can use yaml to entirely replace the class, do fancy stuff like dependency injection etc
799: [10:23:21] <Pynofoodk> But in full seriousness, dependency injection for the most part.
800: [10:23:52] <Pynofoodk> ffff kinglozzer, go back to your laravel you heathen.
801: [10:23:54] <Pynofoodk> :P
802: [10:23:59] <Pynofoodk> I got this!
803: [10:24:00] <Pynofoodk> xD
804: [10:24:04] <kinglozzer> I WANT OUT
805: [10:24:07] <Pynofoodk> kekeek
806: [10:24:10] <kinglozzer> TAKE THE BLUE PILL
807: [10:24:12] <kinglozzer> blue?
808: [10:24:14] <Pynofoodk> red
809: [10:24:16] <kinglozzer> I think that's right
810: [10:24:18] <kinglozzer> DAMNIT
811: [10:24:23] <kinglozzer> WRONG ONE, NOW IM STUCK
812: [10:24:25] <kinglozzer> D:
813: [10:24:58] <Otterpocket> Thanks :D
814: [10:25:18] <Pynofoodk> You take the blue pill, the story ends. You wake up in your bed and believe whatever you want to believe. You take the red pill, you stay in wonderland, and I show you how deep the rabbit hole goes.
815: [10:25:37] <Otterpocket> Can you show me later
816: [10:25:45] <Pynofoodk> Otterpocket: docs! :D
817: [10:25:50] <Pynofoodk> actually not too shit in this area
818: [10:25:57] <Pynofoodk> ... well... for some part.
819: [10:26:09] <Otterpocket> Where is it in the Docs, had a quick look
820: [10:26:55] <Pynofoodk> http://api.silverstripe.org/3.1/class-Injector.html
821: [10:27:08] <Pynofoodk> http://doc.silverstripe.org/framework/en/reference/injector
822: [10:27:10] <kinglozzer> Pynofoodk: Wait, so if I take the blue pill, I wake up and Laravel has gone away and I can believe it never existed? That sounds like a win
823: [10:27:16] <Pynofoodk> Otterpocket: be sure to read them both.
824: [10:27:29] <Otterpocket> Pynofoodk: Great thanks
825: [10:27:37] <Pynofoodk> Start with docs though, but then read the api docblock because it fills in holes.
826: [10:27:44] <Pynofoodk> Otterpocket: there is one caveat though
827: [10:28:27] <Otterpocket> I have to jump over a rooftop?
828: [10:28:36] <Pynofoodk> ah, yeah. Docblock says 'construct'. Docs say 'constructor' - the docs are actually correct, NOT the code :<
829: [10:29:38] <Pynofoodk> Otterpocket: ie. this line needs an 'or' to be injected (see what I did there!) into it before the second single quote on that line.
830: [10:29:40] <Pynofoodk> http://api.silverstripe.org/3.1/source-class-Injector.html#79
831: [10:30:11] <Pynofoodk> other than that, it's fucking winner.
832: [10:31:04] <wmk> Pynofoodk, well, ::create might be a bit slower
833: [10:32:02] <Otterpocket> In that case, is it only advisable to use Create:: if I know I will need it?
834: [10:32:29] <wmk> well, if you don't care and need the speed use new()...
835: [10:32:36] <wmk> i'd go for create()
836: [10:32:43] <wmk> and a better server ;)
837: [10:32:50] <Otterpocket> ok, Ill have a good read through these docs
838: [10:32:52] <kinglozzer> Otterpocket: I tend to use ::create() all the time, it's a little more "future proof" (kinda)
839: [10:33:00] <wmk> kinglozzer, hopefully
840: [10:33:10] <wmk> and with ::create() you can daisy chain
841: [10:33:19] <wmk> a big +1
842: [10:33:23] <kinglozzer> Man the fuck'n forum spam again...
843: [10:33:27] <Colin[pi]> kinglozzer: any data on performance impact vs new?
844: [10:34:42] <wmk> Colin[pi], https://groups.google.com/forum/#!topic/silverstripe-dev/IgOLurk87hc
845: [10:34:45] <kinglozzer> Colin[pi]: Not that specifically, ReflectionClass takes around 2-3x as long as "new Class"
846: [10:34:57] <Colin[pi]> wow really? 2-3x? hmm
847: [10:35:00] <kinglozzer> So Injector is probably a little longer than that (it has to search for shit)
848: [10:35:00] <wmk> though it might be cached?
849: [10:35:18] <kinglozzer> Yeah but it's like 0.000000000000003s vs 0.000000000000001s
850: [10:35:19] <kinglozzer> :P
851: [10:35:23] <Colin[pi]> hehe
852: [10:35:45] <wmk> well, you use ::create() not only once in the whole code
853: [10:36:22] <kinglozzer> Yeah it's cached (both Injector and Reflection), ReflectionClass takes like 10x as long the first time around
854: [10:36:29] <Colin[pi]> thanks for the link wmk
855: [10:36:34] <wmk> Colin[pi], np
856: [10:37:52] * Shrike_Finland quit (Quit: Leaving.)
857: [10:39:35] <kinglozzer> Rofl, there are 56 pages of "anal sex escort" spam
858: [10:39:43] <kinglozzer> Welcome to the SilverStripe forums!
859: [10:42:34] * MischaK has joined #silverstripe
860: [10:42:56] <MischaK> good day all :)
861: [10:43:05] <kinglozzer> Hey MischaK
862: [10:44:03] * Shrike_Finland has joined #silverstripe
863: [10:44:19] <MischaK> I'm having a bit of a problem figuring out what is going wrong with file uploads (assets), throwing internal server error on the file exists function, not sure why
864: [10:44:44] <kinglozzer> MischaK: Permissions?
865: [10:44:49] * Colin[pi] quit (Ping timeout: 245 seconds)
866: [10:44:54] <MischaK> that was my first guess
867: [10:45:09] <kinglozzer> What do error logs say?
868: [10:45:11] <wmk> kinglozzer, well....
869: [10:45:15] <Pynofoodk> kinglozzer: depends on which wonderland you're goin' in
870: [10:45:23] <MischaK> but when i use a grid to upload files to the same directory that works
871: [10:45:41] <Pynofoodk> wmk: ::create() isn't slower, simon_w did some benchmarkings. It might be every so so so so so slightly slower, but it's negligible.
872: [10:45:54] <wmk> Pynofoodk, that's fine
873: [10:46:00] <Pynofoodk> [10:32] <Otterpocket> In that case, is it only advisable to use Create:: if I know I will need it?
874: [10:46:02] <wmk> now i don't feel so bad using it
875: [10:46:03] <Pynofoodk> No, just always use it.
876: [10:46:15] <MischaK> log: PHP Fatal error: Call to a member function getFilename() on a non-object in
877: [10:46:44] <Pynofoodk> Otterpocket: you can only use it if the class inherits from Object (or has a special allowance such as gridfieldconfig)
878: [10:47:46] <wmk> MischaK, can you paste the trace? -> sspaste.org
879: [10:51:30] <MischaK> how do i get that wmk ?
880: [10:52:04] <wmk> well, the fatal error has some more information
881: [10:52:30] * ss31noob has joined #silverstripe
882: [10:52:31] <ss31noob> hi.. is there a way where i can get
883: [10:52:36] <MischaK> yeah but the error is just 1 lane not a complete trace
884: [10:52:44] <ss31noob> hi is there an easy way where i can get which pagetype is a widget being included?
885: [10:52:47] <wmk> MischaK, :(
886: [10:52:53] <MischaK> PHP Fatal error: Call to a member function getFilename() on a non-object in /home/mischa/domains/baroeg.mischakroon.nl/public_html/framework/forms/UploadField.php on line 1279, referer: http://baroeg.mischakroon.nl/admin/assets/add/?ID=8
887: [10:53:02] <MischaK> full line
888: [10:53:08] <Pynofoodk> ss31noob: can you rephrase that please? It didn't make much sense :(
889: [10:53:37] <wmk> ss31noob, Controller::curr() get's you the current controller, from that with ->data() you get the current page
890: [10:54:07] <Pynofoodk> oh yeah, nice one wmk
891: [10:54:51] <wmk> so Controller::curr()->data()->ClassName ??
892: [10:55:12] <wmk> (unfortunately daisy chaining in PHP has some disadvantages...)
893: [10:55:24] <wmk> Pynofoodk, should we wrap it in a try() contruct?
894: [10:55:43] <ss31noob> thanks wmk
895: [10:55:44] <ss31noob> it works
896: [10:55:46] <ss31noob> :)
897: [10:55:50] <Pynofoodk> MischaK: which version of SS are you using?
898: [10:55:50] <Pynofoodk> http://api.silverstripe.org/3.1/source-class-UploadField.html#1279
899: [10:55:58] <wmk> ss31noob, will break if you're e.g. on login screen
900: [10:56:20] <wmk> or at least there can be some nasty errors when no current page is applied, e.g. on login screen
901: [10:56:46] <MischaK> 3.1.3
902: [10:56:51] * wmk wonders if cron composer self-update would be a good idea
903: [10:57:10] <MischaK> i can do an update and see if it goes away
904: [10:59:14] <MischaK> wmk: auto updating sounds dangerous, i usually want to test updates before rolling them out
905: [10:59:29] <wmk> well, it's "composer self-update"
906: [10:59:38] <wmk> composer is always complaining it's more than 30 days old
907: [11:00:02] <wmk> MischaK, for SS modules i don't want automatic updates
908: [11:00:16] <wmk> test them, yes
909: [11:00:44] <Pynofoodk> composer update in a test env should not affect anything
910: [11:01:10] <Pynofoodk> hmm, good question. Can one update a single (or subset of the installed) package(s)?
911: [11:08:57] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
912: [11:10:31] <kinglozzer> Pynofoodk: Yeah
913: [11:10:38] <kinglozzer> Can't remember the syntax, but you can
914: [11:11:05] <wmk> composer update unclecheese/*
915: [11:11:07] <kinglozzer> Ah, composer update vendor/package
916: [11:11:09] <kinglozzer> ^^
917: [11:11:14] <wmk> yup
918: [11:11:23] <wmk> or all packages by a vendor
919: [11:15:34] <simon_w> Pynofoodk, wmk, the Reflection part isn't slowed. The Config overhead is massively.
920: [11:23:46] <Pynofoodk> yeah, I remember you coming back with that in the past. I actually just searched the logs and found that same conclusion (which is the one I was recalling) from last year.
921: [11:23:52] <Pynofoodk> simon_w: cheers :)
922: [11:24:21] <Pynofoodk> cheers kinglozzer
923: [11:24:23] <Pynofoodk> :>
924: [11:24:48] <Pynofoodk> not that I'm using composer, but I file this shit away for one day I might get a chance to actually do something cool.
925: [11:25:06] <Pynofoodk> omg it's nearly lunchtime
926: [11:25:14] <Pynofoodk> I wonder if the source of all food is open yet :<
927: [11:25:28] <Pynofoodk> if it will be ever today :<
928: [11:27:15] <wmk> Pynofoodk, good luck
929: [11:27:23] <Pynofoodk> :D
930: [11:27:43] <Pynofoodk> if not I'll have to charge off for a half hour walk up the road to the almighty chillipeppers!
931: [11:31:49] <MischaK> upgrade of silverstripe fixed the issue
932: [11:32:02] <MischaK> (upload wasnt working in older version)
933: [11:32:20] <wmk> MischaK, congrats
934: [11:33:42] <MischaK> SS_Log::add_writer(new SS_LogFileWriter('/logs/error.log'), SS_Log::ERR);
935: [11:34:14] <MischaK> should that create an error log in: /logs of the webroot
936: [11:34:28] <MischaK> or in the /logs/error.log/ folder?
937: [11:34:43] <wmk> in webroot.
938: [11:34:47] <MischaK> havent really gotten anything related to logging to work
939: [11:34:48] <wmk> but afaik it doesn't create the file
940: [11:35:01] <wmk> you have to create the file yourself
941: [11:35:54] <Pynofoodk> error.log file.
942: [11:35:55] <Shrike_Finland> Is there any differencies between Thumb() and Thumbnail()? http://www.sspaste.com/paste/show/5457629ec5629
943: [11:36:25] <Pynofoodk> Shrike_Finland: is Thumb even a function?
944: [11:36:42] <kinglozzer> Neither is a method on image
945: [11:37:04] <Pynofoodk> generateCMSThumbnail is, no?
946: [11:37:09] <kinglozzer> Yeah, but not Thumbnail
947: [11:37:13] <Pynofoodk> true.
948: [11:37:16] <kinglozzer> Must be a relation
949: [11:37:19] <kinglozzer> In that paste ^^
950: [11:37:21] <Pynofoodk> must be extension
951: [11:37:27] <Pynofoodk> or subclass
952: [11:37:28] <Pynofoodk> idk
953: [11:37:38] <MischaK> so i have to create: logs/error.log and leave the config as specified above?
954: [11:38:03] <Pynofoodk> idk, I don't use log files :<
955: [11:38:19] * veb has joined #silverstripe
956: [11:39:54] <Pynofoodk> kinglozzer: ah, yeah. Probably a function that returns an image object
957: [11:40:03] <Shrike_Finland> I'm trying to take this module in action and override default image: https://github.com/tractorcow/silverstripe-opengraph with this example: http://nerdpress.org/2012/06/14/opengraph-metatags-in-silverstripe/
958: [11:40:34] <wmk> MischaK, afaik yes
959: [11:40:47] <wmk> maybe use a log file outside the webroot
960: [11:40:49] <kinglozzer> Shrike_Finland: You don't need the ->Thumb() part, just $value->CroppedImage()
961: [11:41:52] <Shrike_Finland> Ah!
962: [11:42:03] <kinglozzer> (unless the OG module adds something...)
963: [11:42:06] * kinglozzer goes to check
964: [11:42:40] <kinglozzer> No, don't think it does
965: [11:42:48] <Shrike_Finland> * testing *
966: [11:45:09] <MischaK> wmk, ill try to get it outside of webroot after i get it to work :)
967: [11:47:37] <Otterpocket> Is there a global way to set required password strength? length, Chars etc?
968: [11:48:34] <kinglozzer> Yeah, PasswordValidator
969: [11:48:44] <kinglozzer> (I've never used it, so have no idea how to set it up) :P
970: [11:49:13] <kinglozzer> Oh, docs are good: http://api.silverstripe.org/3.1/class-PasswordValidator.html
971: [11:49:30] <Otterpocket> kinglozzer: Yea I found that..... I dont understad the context for it?
972: [11:49:53] <kinglozzer> Otterpocket: Well, the code example at the top would go in _config.php
973: [11:50:08] <kinglozzer> That'd then set the password requirements for all Members
974: [11:50:26] <Otterpocket> kinglozzer: Well thats exactly what I am looking for
975: [11:50:52] <Otterpocket> Ill try it out
976: [11:56:01] <Pynofoodk> Otterpocket: so opensuse doesn't have an LTS version
977: [11:56:15] <Pynofoodk> that's... an interesting choice for a server.
978: [11:58:10] <wmk> Pynofoodk, why suse for a server?
979: [11:58:49] <Pynofoodk> wmk: loath of ubuntu basically. I'm shopping around for an alternative that's perhaps not .deb based.
980: [11:59:01] <Pynofoodk> opensuse has Evergreen, but it's a community project.
981: [11:59:07] <MischaK> Pynofoodk, why not centos?
982: [11:59:18] <Pynofoodk> because fuck centos :<
983: [11:59:30] <Pynofoodk> It's horrible.
984: [11:59:33] <wmk> why not plain debian?
985: [11:59:40] <Otterpocket> Pynofoodk: But if you care about LTS, Centos is what you want?
986: [11:59:41] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
987: [11:59:45] <Pynofoodk> Debian a little TOOOO lts wmk :P
988: [11:59:52] <wmk> ;)
989: [12:00:08] <Otterpocket> redhat?
990: [12:00:09] <Pynofoodk> like when I was still using PHP 5.2 because it still wasn't EOL on debian LTS
991: [12:01:11] <MischaK> if he doesnt want centos then he wouldn't want to use redhat :)
992: [12:01:38] <Pynofoodk> Otterpocket: it basically just Debian, Ubuntu or Centos as the choices for LTS market. (Maybe Scientific).
993: [12:01:42] <wmk> Pynofoodk, yup. php versions and debian are a bit of pita
994: [12:01:59] <wmk> but there are other deb repos for updating php
995: [12:02:20] <Otterpocket> I take it your project needs LTS for security?
996: [12:02:23] <Pynofoodk> there's .deb for that, but the version of Debian I was on was still not EOL, but was so old .deb didn't support it any longer!
997: [12:02:41] <Pynofoodk> Otterpocket: nah, just... running a server on edge distros is a bit... yeh.
998: [12:02:57] <Otterpocket> Pynofoodk: Suse not edge really
999: [12:03:00] <Pynofoodk> stability.
1000: [12:03:44] <Pynofoodk> when it comes down to it.
1001: [12:03:50] <Pynofoodk> stability & still getting sec updates.
1002: [12:04:36] <Pynofoodk> as opposed to employing a full time devops team that will hate youl.
1003: [12:05:41] <Otterpocket> But at least they will be able to use versions of vim released post 1991
1004: [12:05:51] <Otterpocket> XD
1005: [12:06:29] <wmk> i hate copy/paste jobs
1006: [12:06:37] <wmk> my arms hurt
1007: [12:06:57] <Otterpocket> Did you use a Wii
1008: [12:07:09] <Pynofoodk> Otterpocket: haha xD
1009: [12:08:07] <wmk> Otterpocket, ;)
1010: [12:09:55] <MischaK> that would be good exercise :)
1011: [12:19:29] * futurealism has joined #silverstripe
1012: [12:19:41] <futurealism> hi guys, I am trying to get some sensible errors out of silverstripe so did
1013: [12:19:42] <futurealism> http://doc.silverstripe.org/framework/en/topics/error-handling
1014: [12:19:58] <futurealism> the ini set for a log file and the SS_Log::add_writer(new SS_LogEmailWriter('admin@domain.com'), SS_Log::WARN, '<=');
1015: [12:20:21] <futurealism> the admin is giving me all kinds of internal server errors in the top right screen that quickly disappears, but no mails are sent or files are created
1016: [12:20:27] <futurealism> any idea?
1017: [12:20:33] <futurealism> (for example, wmk)
1018: [12:21:07] <MischaK> futurealism: I couldnt get that to work as well
1019: [12:21:17] <MischaK> now trying for regular logfiles
1020: [12:21:22] <wmk> futurealism, did you create the file?
1021: [12:21:30] <futurealism> aye
1022: [12:22:25] <wmk> in fact this works very well for a log outside the webroot
1023: [12:22:27] <futurealism> remains empty and doesnt do anything
1024: [12:22:37] <wmk> in my _ss_environment.php i have the following:
1025: [12:22:51] <wmk> define('SS_ERROR_LOG', '/../logs/silverstripe/error.log');
1026: [12:23:43] <wmk> time for lunch ;)
1027: [12:24:27] <wmk> futurealism, webserver needs write permission to it...
1028: [12:24:32] <futurealism> chmodded 777
1029: [12:24:36] <futurealism> no effect, all empty files.
1030: [12:24:48] <futurealism> no matter if I set relative or absollute path
1031: [12:24:49] <futurealism> nothing works.
1032: [12:25:05] <futurealism> it seems as if it should be relative to public_html
1033: [12:25:19] <futurealism> so even if i set it to /log.txt and chmod 777 log.txt nothing happens.
1034: [12:25:40] <Pynofoodk> yeah like I say, I never logfile. I find similar issues setting it all up :<
1035: [12:25:57] <futurealism> i need a logfile to see why I cant setup my logfile :<
1036: [12:25:57] <Pynofoodk> but I have noticed folks putting in an absolute path from root root (not web root) for it.
1037: [12:28:15] <futurealism> absolute dont work either
1038: [12:28:33] <futurealism> I really like SS CMS but with this kind of things being so terribly hard, it doesnt really become accessible :S
1039: [12:30:41] <futurealism> lol, now it works
1040: [12:30:51] <futurealism> it seems like the root is /framework
1041: [12:31:00] <futurealism> so ../log.txt is public_html
1042: [12:31:07] <futurealism> trial-and-error...
1043: [12:31:13] <futurealism> but I have errors :)
1044: [12:37:24] <Pynofoodk> yeah, that makes sense actually :<
1045: [12:37:43] <Pynofoodk> /framework is script entry
1046: [12:38:22] <Pynofoodk> /test
1047: [12:38:22] <futurealism> makes sense to advertise this with big letters on http://doc.silverstripe.org/framework/en/topics/error-handling
1048: [12:38:39] <Pynofoodk> futurealism: I agree.
1049: [12:38:51] <Pynofoodk> docs are open source, there's an edit button at the bottom! :P
1050: [12:39:35] <Pynofoodk> urgh, they're blatantly wrong :< "Filesystem Logs From SilverStripe You can indicate a log file relative to the site root"
1051: [12:39:54] <Pynofoodk> log a ticket!
1052: [12:40:02] <Pynofoodk> github issues, that is :>
1053: [12:40:19] <Pynofoodk> or just get kinglozzer to fix it fix it fix it fix it fix it
1054: [12:42:12] <futurealism> commented on the respective page
1055: [12:42:33] <kinglozzer> I'm busy realising that you can't escape single quotes in bash
1056: [12:42:44] <kinglozzer> Like it's literally impossible D:
1057: [12:43:16] <kinglozzer> mysqldump '-psomepassword\'withquote' LOLNOPE
1058: [12:46:07] <kinglozzer> futurealism: So you're setting the log file path by using define('SS_ERROR_LOG') ?
1059: [12:46:20] <futurealism> no, ini_set
1060: [12:46:29] <futurealism> the php variant advertised on that same doc page
1061: [12:48:39] * BetterBert has joined #silverstripe
1062: [12:48:45] * r3v3rb has joined #silverstripe
1063: [12:49:04] <r3v3rb> Hi All, just added this to GitHub : https://github.com/silverstripe/silverstripe-framework/issues/3601
1064: [12:49:11] <r3v3rb> your thoughts please :)
1065: [12:55:34] <kinglozzer> futurealism: I'm confused, that's all you've done? You've not added a logger? Because just using ini_set() doesn't set up logging, that's just for the fallback
1066: [12:55:44] <Pynofoodk> r3v3rb: CheckboxSetField
1067: [12:56:04] <Pynofoodk> but, a worthy discussion
1068: [12:56:20] <r3v3rb> Pynofoodk: But when I just want a On/Off option the label is forced to the right in the small field holder...
1069: [12:56:52] <r3v3rb> The default styling looks broken in any form where used...
1070: [12:57:01] <r3v3rb> structure not styling ;)
1071: [12:59:24] * kinglozzer lunch nom nom
1072: [12:59:58] <futurealism> kinglozzer: forgive me for not being a senior in the silverstripe project and its ways :) I just use it every now and then for some projects
1073: [13:00:29] <kinglozzer> futurealism: Not at all, just trying to understand why you're having an issue :)
1074: [13:01:57] <Pynofoodk> kinglozzer: because logging is a cunt.
1075: [13:02:08] <Pynofoodk> no two ways about it.
1076: [13:02:28] <Pynofoodk> Like when you have a log, and it fails to log, so it logs that it failed to log
1077: [13:02:34] <Pynofoodk> and you're all DAFUQ
1078: [13:02:35] <Pynofoodk> etc
1079: [13:05:18] <r3v3rb> Pynofoodk: nice usage of the female genitalia in a statement - shame my 11yr old is sitting next to me watching me work today();
1080: [13:05:29] <r3v3rb> :\
1081: [13:05:50] <MischaK> kinglozzer, the method that futurealism is talking about is the methord mentioned in the docs which is the logical path to go to for setting up stuff like this :)
1082: [13:06:40] <futurealism> dont get me wrong, I dont come here to complain :)
1083: [13:06:55] <futurealism> I really like silverstripe, and once you get everything set up it is really neat, especially for the end user
1084: [13:07:13] <futurealism> but some things that you expect to be trivial are sometimes not as easy as you think :)
1085: [13:13:14] * Shrike_Finland quit (Quit: Leaving.)
1086: [13:15:49] <Otterpocket> could http://api.silverstripe.org/3.1/class-PasswordValidator.html be used in a Form?
1087: [13:23:40] * Shrike_Finland has joined #silverstripe
1088: [13:26:49] * UndefinedOffset has joined #silverstripe
1089: [13:30:56] <wmk> futurealism, here the error log path is relative to webroot
1090: [13:31:37] <Pynofoodk> D: sorry r3v3rb
1091: [13:32:09] <Pynofoodk> i'm a bit aggitated today because little sleep and no food
1092: [13:32:28] <wmk> r3v3rb, lol
1093: [13:35:16] <BetterBert> Hi all, I've a question on the subject of parsing DataLists
1094: [13:35:57] <BetterBert> Essentially I want to slice a DataList, but haven't been having much joy as yet.
1095: [13:36:11] <BetterBert> Any pointers on how to approach this?
1096: [13:37:12] <BetterBert> Anyone?
1097: [13:40:45] * headtrip has joined #silverstripe
1098: [13:41:11] <headtrip> hey guys, can i configure staticpublisher so that it delivers the cached files without changing the url to /cache/*****.html ? (For SEO Reason)
1099: [13:42:03] <Pynofoodk> BetterBert: ->limit
1100: [13:42:19] <Pynofoodk> headtrip: does it?
1101: [13:42:36] <Pynofoodk> didn't think it did.
1102: [13:42:38] * Pynofoodk shrugs
1103: [13:43:00] <Pynofoodk> headtrip: I think maybe reconfigure your web roots or something would work fine.
1104: [13:43:15] <BetterBert> FFS, I was well aware of the existence of Limit, but had completely overlooked the offset <facepalm>
1105: [13:43:19] <Pynofoodk> if you change the site to be current_root/cache
1106: [13:43:25] <BetterBert> Thanks @Pynofoodk
1107: [13:43:30] <Pynofoodk> BetterBert: :>
1108: [13:44:29] <headtrip> Pynofoodk: You are right.. it isnt :/ blame me
1109: [13:45:40] <headtrip> Do you know any way to prevent ss from taking ages when saving a page? since staticpublisher is active it takes very long to save any page
1110: [13:45:53] <wmk> headtrip, static publisher queue
1111: [13:46:11] <wmk> though it's something completely different. don't expect to switch without work
1112: [13:47:21] <headtrip> so i would have to uninstall the staticpublisher in order to use staticpublishqueue?
1113: [13:48:23] <wmk> guess so. haven't used it yet (had a bug in 3.1.4 or 3.1.5, fixed now).
1114: [13:48:44] <wmk> at least it's some other code in onAfterWrite()
1115: [13:49:37] <headtrip> hm okay, i think i will stay with the default publisher
1116: [13:49:51] <headtrip> do you have any idea why it is not caching my "category" pages
1117: [13:50:24] <headtrip> like domain.com/category1/article1 => works, but domain.com/category1 is not cached
1118: [13:50:42] <wmk> is it excluded?
1119: [13:50:47] <wmk> not triggered to be cached?
1120: [13:50:51] <headtrip> not explicit
1121: [13:51:03] <wmk> did you build it onAfterWrite or with the build task?
1122: [13:51:12] <headtrip> onAfterWrite
1123: [13:51:28] <wmk> then you have to trigger it to be built
1124: [13:51:54] <headtrip> how?
1125: [13:52:45] <wmk> how do you build the current page?
1126: [13:53:22] <Otterpocket> Is it possible to use set_password_validator in my Form?
1127: [13:53:47] <headtrip> wmk: i dont get you?
1128: [13:54:30] <wmk> headtrip, well, tell Staticpublisher to rebuild the parent page or the current category holder page
1129: [13:55:23] <headtrip> yep, i have done this by publishing the category holder page
1130: [13:56:23] <wmk> if you have a method called pagesAffectedByChanges() you can calculate there what pages should be built
1131: [13:56:40] * wracu quit (Ping timeout: 255 seconds)
1132: [13:58:16] * wracu has joined #silverstripe
1133: [14:02:29] <headtrip> i changed pagesAffectedByChanges()
1134: [14:02:32] <headtrip> $urls = Page::get();
1135: [14:02:41] <r3v3rb> pastie
1136: [14:02:43] <r3v3rb> please
1137: [14:03:09] <headtrip> so it should get every page that is a subclass of page, but it is still not caching my category pages
1138: [14:04:17] * arnhoe quit (Remote host closed the connection)
1139: [14:07:09] <wmk> headtrip, you need to return an array with urls
1140: [14:08:21] <Pynofoodk> headtrip: the other side of changing the web root is that you have to set a subdomain or something so you can access the admin.
1141: [14:08:25] * Pynofoodk shrugs
1142: [14:08:26] <wmk> headtrip, this is what i use
1143: [14:08:28] <wmk> http://sspaste.com/paste/show/5457875901551
1144: [14:09:59] <wmk> updated
1145: [14:11:09] <r3v3rb> wmk, did you ever work out the index - mine still isnt cached
1146: [14:11:30] <wmk> with this param it worked over here
1147: [14:11:34] <r3v3rb> had a week off last week so only back today looking at code
1148: [14:12:41] <headtrip> wmk: my category pages are still not cached
1149: [14:13:33] <wmk> r3v3rb, did you try with a /assets/_homepage-map.php file?
1150: [14:13:42] <wmk> headtrip, pastie pls
1151: [14:13:51] <headtrip> wmk: may you please give me your pagesAffectedByChanges?
1152: [14:14:05] <r3v3rb> not yet, didn’t think it was relevant as it related to the subdomain… no?
1153: [14:14:16] <wmk> r3v3rb, works without subpages, too
1154: [14:14:22] <wmk> though it should work without
1155: [14:14:28] <r3v3rb> ok, i’ll take a look
1156: [14:14:38] <wmk> maybe it's just a workaround for the bug you found
1157: [14:14:45] <wmk> r3v3rb, xdebug time!
1158: [14:14:48] <wmk> *G*
1159: [14:15:02] * arnhoe has joined #silverstripe
1160: [14:15:43] <wmk> headtrip, done
1161: [14:15:57] <wmk> though the whole code could be cleaner.
1162: [14:16:56] <wmk> in my case i rebuild everything if MenuTitle is changed (changes menu)
1163: [14:17:06] <wmk> just rebuild the current page otherwise
1164: [14:17:22] <wmk> rebuilding subpages is just commented out
1165: [14:19:18] <headtrip> i deleted the whole cache folder
1166: [14:19:23] <headtrip> used your code
1167: [14:19:38] <headtrip> and still some of the category pages arent built
1168: [14:20:40] <wmk> did you save the category pages or children of them?
1169: [14:20:54] <headtrip> the startpage
1170: [14:21:14] <wmk> if you want to build all pages manually try /dev/tasks/RebuildStaticCacheTask
1171: [14:21:57] <wmk> if you want to build all pages on save you have to call allPagesToCache() in your "pagesAffected..." method
1172: [14:23:09] <r3v3rb> wmk: the hard part is my development server works fine with the index cache… so working out the live site is made somewhat harder
1173: [14:23:11] * Shrike_Finland quit (Quit: Leaving.)
1174: [14:24:51] <headtrip> wmk: when trying to call the task: http://sspaste.com/paste/show/54578b3134c42
1175: [14:25:13] <headtrip> but there is a allPagesToCache function in my page class... of course..
1176: [14:25:34] <wmk> really?
1177: [14:25:37] <wmk> did you flush?
1178: [14:25:57] <wmk> though it shouldn't needed to flush
1179: [14:26:02] <wmk> as it's a php fatal error
1180: [14:26:25] <wmk> typo somewhere?
1181: [14:26:44] <headtrip> no typo
1182: [14:26:46] <headtrip> i flushed
1183: [14:26:52] * BetterBert quit (Quit: (null))
1184: [14:27:20] * catcher has joined #silverstripe
1185: [14:27:25] <wmk> if(!$page->hasMethod('allPagesToCache')) {
1186: [14:27:31] <wmk> that's where the error is thrown.
1187: [14:28:01] <headtrip> adding @ ?
1188: [14:28:08] <wmk> OMG no!
1189: [14:28:30] <wmk> hasMethod doesn't find the method
1190: [14:28:45] <wmk> Adesso where is your trout when we need it?
1191: [14:28:51] <r3v3rb> <?php $homepageMap = “index.html”; ?> <- that right?
1192: [14:29:00] <wmk> r3v3rb, no
1193: [14:29:02] <r3v3rb> pah
1194: [14:29:36] <wmk> $homepageMap = array('domain.com' => 'urlsegment-of-homepage')
1195: [14:30:06] <wmk> afaik domain without www
1196: [14:30:32] <wmk> dunno if it works without hompeagefordomain module
1197: [14:31:51] <r3v3rb> appears not
1198: [14:33:03] <wmk> afaik it maps the index to the generated urlsegment.html
1199: [14:33:14] <wmk> dunno if an index.html is built
1200: [14:33:45] <r3v3rb> yep, the index.html is being built
1201: [14:33:47] <r3v3rb> just not used
1202: [14:34:05] <r3v3rb> not a problem to be honest, but would be nice if it ‘just’ worked and used the file
1203: [14:34:37] <wmk> so it's a problem in staticpublisher/main.php
1204: [14:34:41] <r3v3rb> must be an apache setting that isn’t picking up the mod_rewrite directive, but its wierd it works for all other pages
1205: [14:34:54] <wmk> which apache version?
1206: [14:35:04] <wmk> what .htaccess?
1207: [14:35:22] <r3v3rb> the staticpublisher version of the site .htaccess file
1208: [14:35:36] <r3v3rb> as per the README.md
1209: [14:36:45] <r3v3rb> wmk: http://pastie.org/9693344
1210: [14:36:47] <wmk> r3v3rb, i dunno, but it seems very outdated
1211: [14:37:44] <r3v3rb> would you share yours?
1212: [14:38:09] <wmk> of course
1213: [14:38:20] <wmk> what's the magic word?
1214: [14:38:49] <wmk> (tss tss tss, you're son still watching?)
1215: [14:39:23] <r3v3rb> sorry, ‘please'
1216: [14:39:28] <wmk> ;)
1217: [14:39:29] <wmk> http://sspaste.com/paste/show/54578e575e0da
1218: [14:39:31] <r3v3rb> ;)
1219: [14:39:53] * wmk shouldn't have this parent reflexes i guess
1220: [14:40:08] <wmk> is it also called "magic word" in english?
1221: [14:40:14] <r3v3rb> woot, that hasn’t got any indication of the rewrite rules?
1222: [14:40:21] <wmk> nope.
1223: [14:40:24] <r3v3rb> it is wmk :D
1224: [14:40:39] <wmk> it just redirects to staticpublisher/main.php instead of framework/main.php
1225: [14:40:48] <wmk> there is the logic inside
1226: [14:40:59] <wmk> and falls back to framework/main.php if it doesn't find a cached file
1227: [14:41:12] <wmk> dunno when it changed, but i think a long time ago
1228: [14:43:14] <wmk> r3v3rb, in german it's "bitte", and when you ask for the magic word with double T you can answer "Flott", which is kind of "hurry up!"
1229: [14:44:32] * muskie9 has joined #silverstripe
1230: [14:45:00] <kinglozzer> I can't remember _any_ of the German I learned at school :(
1231: [14:45:25] <kinglozzer> "ich möchte eine Fanta bitte" is the only sentence that comes to mind (not even sure that's right!)
1232: [14:45:48] <wmk> kinglozzer, it's right when you want some lemonade to dring
1233: [14:45:49] <wmk> k
1234: [14:45:53] <kinglozzer> ;D
1235: [14:46:08] <r3v3rb> wmk: danke, mein großvater war deutsch
1236: [14:46:14] <wmk> r3v3rb, cool
1237: [14:46:18] <kinglozzer> una grande cerveza por favor
1238: [14:46:25] <kinglozzer> I only know how to order drinks :P
1239: [14:46:26] <r3v3rb> si kinglozzer por favor
1240: [14:46:42] <r3v3rb> dos, caña por favor
1241: [14:48:20] <r3v3rb> caña es mucho mas mejor
1242: [14:48:45] <kinglozzer> So, uh, Laravel... config/local/app.php is where to put stuff for my app, but where do I put the stuff for when it goes live? D:
1243: [14:49:01] <r3v3rb> same place
1244: [14:49:03] <r3v3rb> lol
1245: [14:50:43] <kinglozzer> In local? :S
1246: [14:50:51] <kinglozzer> OH WAIT, I SEE
1247: [14:51:01] <kinglozzer> rtfm, doh http://laravel.com/docs/4.2/configuration#environment-configuration
1248: [14:51:13] <r3v3rb> god only knows, never actually went that far - stepped back and used framework only environment with ss
1249: [14:51:47] * r3v3rb felt comfortable with that route
1250: [14:54:24] <kinglozzer> r3v3rb: I picked up Laravel for this project as it's so simple, only one model and about 3 controllers, thought it's the best opportunity I'll ever get to try it!
1251: [14:54:31] <kinglozzer> It's so fast D:
1252: [14:54:38] <r3v3rb> so fast?
1253: [14:54:45] <kinglozzer> Like I've got an AJAX-delete, it's finished before the loading indicator even shows
1254: [14:54:49] <r3v3rb> the turnaround
1255: [14:54:54] <kinglozzer> With SilverStripe it's like a minimum of 200ms
1256: [14:54:58] <r3v3rb> sure
1257: [14:54:59] <kinglozzer> Requests ^^
1258: [14:55:09] <r3v3rb> worth another look then
1259: [14:55:30] * r3v3rb forgets this is SS channel and waits for boot!
1260: [14:55:53] * Shrike_Finland has joined #silverstripe
1261: [14:56:03] <kinglozzer> r3v3rb: I'll probably be high on the swear stats for Laravel now :P
1262: [14:56:35] <r3v3rb> laravel who?
1263: [14:57:18] <r3v3rb> wmk, where did that .htaccess come from btw?
1264: [14:57:27] <kinglozzer> The swear stats for this channel lol, "Laravel" is considered a swear word ;)
1265: [14:58:06] <r3v3rb> indeed, kinglozzer go wash your mouth out
1266: [14:58:19] <wmk> r3v3rb, dunno...
1267: [14:58:59] <kinglozzer> simon_w: stats are broken :(
1268: [14:59:50] <wmk> r3v3rb, https://github.com/silverstripe-labs/silverstripe-staticpublisher/blob/master/docs/en/StaticPublisher.md
1269: [14:59:52] <wmk> scroll down
1270: [15:00:01] * catcher quit (Quit: Leaving)
1271: [15:00:39] <wmk> i guess it's not clear you just have to replace that one line
1272: [15:00:49] <r3v3rb> lmao, now i read it again it is!
1273: [15:01:14] <wmk> it was new in 2.4
1274: [15:01:23] <r3v3rb> surely it should read staticpublisher/main.php, to control the lookup
1275: [15:01:24] <wmk> the whole .htaccess stuff was for <2.4 times
1276: [15:01:43] <r3v3rb> not static-main.php, to control...
1277: [15:02:05] <r3v3rb> which is why I used the old schtuff as I didn’t have a static-main.php
1278: [15:02:09] <r3v3rb> lmao
1279: [15:02:26] <wmk> lmao..?
1280: [15:02:29] <wmk> i know lmaa
1281: [15:02:38] <r3v3rb> laugh my ass off
1282: [15:02:47] * arnhoe quit (Remote host closed the connection)
1283: [15:02:49] <wmk> well, the a is the same ;)
1284: [15:03:32] * arnhoe has joined #silverstripe
1285: [15:04:32] * babak quit (Quit: Connection closed for inactivity)
1286: [15:06:36] * Shrike_Finland quit (Quit: Leaving.)
1287: [15:06:40] <Eliseth> Is there a way to force regeneration of all resampled images?
1288: [15:08:13] * arnhoe quit (Ping timeout: 255 seconds)
1289: [15:08:53] <wmk> Eliseth, yes and no
1290: [15:09:19] <wmk> delete the images in _resampled/
1291: [15:09:30] <wmk> but this will kill the images inside the HTMLText
1292: [15:09:38] <wmk> so
1293: [15:09:40] <Eliseth> Well, that's the problem..
1294: [15:09:58] <wmk> we had this problem this morning in this channel...
1295: [15:10:15] <wmk> what's the problem, Eliseth ?
1296: [15:11:38] <Eliseth> There seem to be images missing in _resampled/ causing broken images on the site, forcing me to edit that page and "edit" all broken images (just clicking them and accepting them is enough it seems.
1297: [15:12:01] <Eliseth> I'm kinda at a loss on how and why they disappeared though... >.<
1298: [15:13:15] <wmk> i bet they disappeard cause someone deleted them
1299: [15:16:39] <wmk> kinglozzer, any idea?
1300: [15:17:26] <kinglozzer> Eliseth: Yeah it'll be because they were somehow deleted, you don't need to click them each time though - just re-saving the page should be enough
1301: [15:17:39] <Eliseth> That aside, I was just wondering if there's a way to run through all pages automated and regenerate any broken resampled :)
1302: [15:17:54] <Eliseth> Ah, that's a time-saver already, thanks
1303: [15:18:55] <wmk> Eliseth, the logic for resampling is in htmltextfield
1304: [15:19:13] <wmk> onPublish afaik
1305: [15:20:00] <wmk> so a task for regenerating all images (without saving possbile) would be cool.
1306: [15:21:41] <wmk> Eliseth, was an issue, is still imho: https://github.com/silverstripe/silverstripe-cms/issues/318
1307: [15:25:59] * Shrike_Finland has joined #silverstripe
1308: [15:26:07] <r3v3rb> is code.jquery.com down
1309: [15:26:13] <Eliseth> Ah, well, that explains why they're gone as well. FlushGeneratedImagesTask ran this morning.
1310: [15:27:54] <wmk> Eliseth, that's bad.
1311: [15:28:10] <wmk> and it's bad it breaks the images in $Content
1312: [15:33:00] <wmk> how can i filter "IS NOT NULL" ??
1313: [15:39:04] * ss31noob quit (Ping timeout: 246 seconds)
1314: [15:39:44] <r3v3rb> anyone know where this goes: Requirements.force_js_to_bottom
1315: [15:39:54] <r3v3rb> in Page.php? or YAML
1316: [15:40:56] <wmk> yml
1317: [15:41:00] <wmk> Requirements:
1318: [15:41:05] <wmk> force_blabla: true
1319: [15:45:12] * headtrip quit (Ping timeout: 255 seconds)
1320: [15:48:29] <r3v3rb> wmk ta
1321: [15:48:40] <kinglozzer> r3v3rb: Requirements::set_force_js_to_bottom(true);
1322: [15:48:54] <kinglozzer> r3v3rb, wmk: Requirements doesn't use the Config API... yet
1323: [15:48:58] <r3v3rb> kineasier
1324: [15:48:58] <kinglozzer> (PR waiting)
1325: [15:48:59] * Shrike_Finland quit (Read error: Connection reset by peer)
1326: [15:49:03] <r3v3rb> kinglozzer: easier even
1327: [15:49:25] <wmk> r3v3rb, where did you have the force_js_to_bottom from?
1328: [15:49:40] <r3v3rb> wmk: http://doc.silverstripe.org/framework/en/reference/requirements
1329: [15:51:02] <wmk> why is it in docs when it's not supposed to work?
1330: [15:51:28] <wmk> but... isn't js to bottom standard behaviour
1331: [15:51:30] <wmk> ?
1332: [15:51:44] <kinglozzer> wmk: Yeah, but not _force_ to bottom
1333: [15:51:51] <kinglozzer> There's a confusing difference IIRC
1334: [15:52:04] <wmk> ok
1335: [15:52:25] <kinglozzer> I think the default is to insert before the last <script> tag, wherever that is (even if it's half way through the HTML)
1336: [15:52:37] <kinglozzer> Whereas forcing it to the bottom will force it to be inserted before </body>
1337: [15:52:53] * toddvalentine has joined #silverstripe
1338: [15:54:26] <wmk> yup.
1339: [15:54:42] <wmk> forcing is cool... if all modules work in an unobstrusive way
1340: [15:57:20] <wmk> closures in php... cool stuff
1341: [16:08:53] * NvdB quit (Quit: Page closed)
1342: [16:11:18] * Eliseth quit (Ping timeout: 255 seconds)
1343: [16:13:45] * arnhoe has joined #silverstripe
1344: [16:18:17] * arnhoe quit (Ping timeout: 264 seconds)
1345: [16:19:50] <Pynofoodk> wmk: exclude('thing', null)
1346: [16:20:04] <wmk> Pynofoodk, cool, 10x
1347: [16:28:57] * gavro_ has joined #silverstripe
1348: [16:29:02] * wmk quit (Ping timeout: 245 seconds)
1349: [16:32:44] * gavro quit (Ping timeout: 256 seconds)
1350: [16:33:09] * gavro_ quit (Ping timeout: 245 seconds)
1351: [16:35:43] * catcher has joined #silverstripe
1352: [16:39:48] * jenniferaslan has joined #silverstripe
1353: [16:57:09] * Guits has joined #silverstripe
1354: [16:59:20] * MrGuits quit (Ping timeout: 244 seconds)
1355: [17:04:48] * Blacklite quit (Ping timeout: 250 seconds)
1356: [17:06:40] * Blacklite has joined #silverstripe
1357: [17:07:32] * Otterpocket quit (Quit: WeeChat 0.4.1)
1358: [17:11:47] * kinglozzer quit ()
1359: [17:13:42] * stnvh quit (Quit: sleepy)
1360: [17:15:11] <r3v3rb> wmk: Kingy[a]: so force to bottom crashes site :) yay!
1361: [17:17:38] <Pynofoodk> kingquitter even.
1362: [17:17:42] * UndefinedOffset quit (Read error: Connection reset by peer)
1363: [17:18:14] <Pynofoodk> SOMETIMES I TELL THE DAY, BUT THE BOTTLE THAT YOU DRINK...
1364: [17:19:18] * UndefinedOffset has joined #silverstripe
1365: [17:19:44] <r3v3rb> Pynofoodk: set_force_js_to_bottom no worky!
1366: [17:19:54] <Pynofoodk> D:
1367: [17:20:07] <r3v3rb> I blame you! for no apparent reason other than you’re here
1368: [17:20:32] <Pynofoodk> why the orderlies to force the suppository though r3v3rb ?
1369: [17:21:46] <r3v3rb> Pynofoodk: because I need code that is in the templates to be before the code in some contact forms to ensure things work properly
1370: [17:22:21] <mudmonth> hey i need my Product class to inherit from another class, but then I will temporarily lose all the database records, how do i migrate to the new heriarchy?
1371: [17:22:26] <r3v3rb> mainly because I don’t want a ‘big’ refactor so easier to push this stuff below/before </body>
1372: [17:23:05] <Pynofoodk> r3v3rb: no means no okay! No anal rape ok.
1373: [17:23:13] <Pynofoodk> NO FORCING TO THE BOTTOM
1374: [17:23:18] <r3v3rb> nopey nope
1375: [17:23:26] <r3v3rb> docs say yessum bossum
1376: [17:23:39] <r3v3rb> Requirements.force_js_to_bottom
1377: [17:23:54] <Pynofoodk> I think you mean Requirements::force_js_to_bottom(true); ?
1378: [17:23:58] <r3v3rb> but it goesa bang banggar
1379: [17:24:07] <r3v3rb> nope
1380: [17:24:15] <Pynofoodk> mudmonth: wholey shit, sleep longer. GOSH
1381: [17:24:21] <mudmonth> what?
1382: [17:24:22] <r3v3rb> http://doc.silverstripe.org/framework/en/reference/requirements <- Inclusion Order
1383: [17:24:51] <Pynofoodk> mudmonth: -.- Londorn?
1384: [17:24:58] <mudmonth> new zealand
1385: [17:25:01] <Pynofoodk> Lundorn!
1386: [17:25:06] <Pynofoodk> mudmonth: EXACTLY
1387: [17:25:08] <r3v3rb> Dumbledorn?
1388: [17:25:08] <Pynofoodk> GO BACK TO BED
1389: [17:25:10] <Pynofoodk> gosh
1390: [17:25:15] <mudmonth> not helpful
1391: [17:25:16] <Pynofoodk> r3v3rb: no, it's pronounced Dunedin.
1392: [17:25:29] <Pynofoodk> mudmonth: you'll think clearer and make sense of it with a better rested brains.
1393: [17:25:39] <r3v3rb> Pynofoodk: how was Italy btw?
1394: [17:25:41] <mudmonth> ..
1395: [17:25:45] <Pynofoodk> r3v3rb: warm :>
1396: [17:25:53] <Pynofoodk> Austria was great fun!
1397: [17:26:07] <Pynofoodk> r3v3rb: y4u no Austria? :<
1398: [17:26:46] <Pynofoodk> mudmonth: what do you mean 'lose all the records' ?
1399: [17:26:49] * r3v3rb has famelee that wood want to go too
1400: [17:26:59] <Pynofoodk> if you change the inheritance it won't change the fact that there's data in the table.
1401: [17:27:00] <Pynofoodk> at all
1402: [17:27:09] <mudmonth> Pynofoodk: they stay in the database but the new object doesn't recognise them and creates its own tables
1403: [17:27:16] <mudmonth> the correct answer is that i need to make a BuildTask that does it
1404: [17:27:17] <mudmonth> thanks!
1405: [17:27:26] <Pynofoodk> r3v3rb: they could have come, Linz was lovely!
1406: [17:27:32] <Pynofoodk> well, except that one crazy bitch on the tram.
1407: [17:27:41] <Pynofoodk> she was right off the cracker through.
1408: [17:27:48] <Pynofoodk> cheese long since departed I think.
1409: [17:27:51] <r3v3rb> Pynofoodk: too much dinero
1410: [17:27:58] <r3v3rb> for three day break
1411: [17:28:10] <Pynofoodk> r3v3rb: lies! Whole trip cost me like... £330!
1412: [17:28:26] * r3v3rb haz gots to buy an i7 Surface Pro 3 first before they get trips to Austria
1413: [17:28:34] * r3v3rb is mean
1414: [17:28:36] <Pynofoodk> wut, why?
1415: [17:28:57] <Pynofoodk> mudmonth: I've no idea what you're asking, still.
1416: [17:29:05] <r3v3rb> because me MacbookPro is dead and I can’t easily transport a 27” iMac to Spain twice a year to work on
1417: [17:29:32] <Pynofoodk> Product extends Parent => Product extends Thing extends Parent ==>> No change to DB at all.
1418: [17:29:53] <Pynofoodk> change to how SS assembles query? yup. Change to DB: 0.
1419: [17:29:59] <Pynofoodk> noll.
1420: [17:30:13] <Pynofoodk> r3v3rb: pfft, I didn't take any computer!
1421: [17:30:29] <r3v3rb> but i go to span for a munf
1422: [17:30:31] <Pynofoodk> Well a little lie, I had an android 7" tablet.
1423: [17:30:36] <Pynofoodk> r3v3rb: OIC
1424: [17:30:38] <r3v3rb> be pretty good not to have to work but…
1425: [17:31:06] <Pynofoodk> fair comments. but why surface? Surely cheaper laptops out there?
1426: [17:31:08] <Pynofoodk> idk
1427: [17:31:16] <Pynofoodk> gl wiht that, it went 5:30pm, GONE
1428: [17:31:20] <r3v3rb> hmm, set_force_js_to_bottom is in Requirements_Backend
1429: [17:31:23] <Pynofoodk> ... for another hr & half
1430: [17:31:48] <Pynofoodk> r3v3rb: yus, so Requriements::get_backend()->set_force_js_to_bum
1431: [17:31:57] <Pynofoodk> or something
1432: [17:31:58] <r3v3rb> lmao
1433: [17:32:24] <Pynofoodk> but accessor should be on Requirements::staticallthethingsbecauseabstractionwithoutactuallyabstractingbecauseeverythingissotightlycoupledwtfomgWHY
1434: [17:32:41] <Pynofoodk> ... y'know, or something.
1435: [17:33:01] <Pynofoodk> does it error or does it die for what reason?
1436: [17:33:13] <Pynofoodk> stay tuned batfans, same bat time, same bat channel!
1437: [17:33:18] <r3v3rb> white screen of dooooooom
1438: [17:33:20] <Pynofoodk> except for the time part, see you in an hour and a bit
1439: [17:33:22] <Pynofoodk> AND A BIT
1440: [17:33:29] <r3v3rb> bit of what?
1441: [17:33:30] <Pynofoodk> r3v3rb: should be in apache error.log then
1442: [17:33:34] <r3v3rb> aye
1443: [17:33:34] <Pynofoodk> r3v3rb: bit of time.
1444: [17:34:11] <Pynofoodk> http://grooveshark.com/#!/s/Runaway/3QwqPJ?src=5
1445: [17:34:17] * Pynofoodk quit (Quit: (DOIT))
1446: [17:58:52] * catcher quit (Read error: Connection reset by peer)
1447: [18:01:24] * JamieT has joined #silverstripe
1448: [18:02:00] <JamieT> does anyone know if .switchable was removed from cms-edit-form in the admin?
1449: [18:13:31] * catcher has joined #silverstripe
1450: [18:22:21] <catcher> Has anyone successfully used Static Exporter?
1451: [18:30:35] * muskie9 is now known as _muskie9_
1452: [18:31:44] * gelignite has joined #silverstripe
1453: [18:55:23] * _muskie9_ is now known as muskie9
1454: [18:57:48] * Stomach has joined #silverstripe
1455: [19:00:58] * Kingy[a] is now known as Kingy
1456: [19:04:33] <Kingy> moin moin
1457: [19:04:53] <JeremyRoundill> Morena ra e hoa.
1458: [19:14:54] * marvanni has joined #silverstripe
1459: [19:20:29] <marvanni> has onyone experienced that resampled images are access thru index.php/assets?
1460: [19:22:28] <JeremyRoundill> Check your file permissions, yo.
1461: [19:25:39] <marvanni> would that trigger a index.php request?
1462: [19:27:13] <marvanni> damn you might be right….
1463: [19:27:17] <marvanni> thats weird...
1464: [19:27:51] <JeremyRoundill> Tricky, tricky, huh?
1465: [19:29:04] <marvanni> yeah,
1466: [19:29:24] <marvanni> is makes that site slow as hell
1467: [19:29:31] <JeremyRoundill> What does?
1468: [19:30:06] <marvanni> wrong file permissions on assets
1469: [19:30:17] <marvanni> and css/js files
1470: [19:30:21] <JeremyRoundill> True.
1471: [19:31:13] <marvanni> thanks!
1472: [19:31:34] * Error404NotFound quit (Disconnected by services)
1473: [19:31:34] * Err404NotFound has joined #silverstripe
1474: [19:36:43] * Ryan-Toast has joined #silverstripe
1475: [19:42:37] <JeremyRoundill> No problemo
1476: [19:43:05] * zippy has joined #silverstripe
1477: [19:43:38] * spekulatius has joined #silverstripe
1478: [19:44:20] <r3v3rb> help! - updated site to 3.1.6 (was 3.1.2) now writing to DB from form receives [Notice] Array to String conversion from line 900 in Database.php - Site is running under PHP 5.6.2…
1479: [19:45:07] * JamieT quit (Ping timeout: 246 seconds)
1480: [19:46:21] * novaweb has joined #silverstripe
1481: [19:47:21] * marvanni quit (Quit: marvanni)
1482: [19:47:29] <JeremyRoundill> r3v3rb: Don't have time to read through the code atm. /dev/build might fix it? :P
1483: [19:47:41] <JeremyRoundill> r3v3rb: Try turning it off and on again :D
1484: [19:47:47] <r3v3rb> JeremyRoundill: ok, i’ll give it a go
1485: [19:47:57] * marvanni has joined #silverstripe
1486: [19:47:59] <r3v3rb> lmao, japanese reset ?
1487: [19:49:37] * veb has joined #silverstripe
1488: [19:49:37] * veb quit (Changing host)
1489: [19:49:37] * veb has joined #silverstripe
1490: [19:49:41] <zippy> r3v3rb: php 5.6, nice!
1491: [19:50:09] <r3v3rb> zippy: only a dev machine so no biggy but hoping it isn’t a sign of other issues :D
1492: [19:50:38] <zippy> feels like php moving along much faster these days...
1493: [19:50:45] <zippy> it's like 5.1 and 5.2 hung around for soo long
1494: [19:50:54] <JeremyRoundill> Yeah, seems like it.
1495: [19:50:58] <r3v3rb> zippy: very true
1496: [19:51:16] <zippy> when SS gets to the point of dropping 5.3 support (hopefully soon) it almost makes you wonder if they should just go straight for 5.5, since 5.4 will be gone in a year
1497: [19:53:53] <zippy> September 2015 - so just under a year
1498: [19:55:08] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1499: [19:55:18] * Shrike_Finland has joined #silverstripe
1500: [19:58:07] * zippy___ has joined #silverstripe
1501: [19:58:20] <zippy___> :)
1502: [19:58:27] * r3v3rb quit (Read error: Connection reset by peer)
1503: [19:58:38] * r3v3rb has joined #silverstripe
1504: [19:58:55] * zippy quit (Ping timeout: 244 seconds)
1505: [19:58:59] * zippy___ is now known as zippy
1506: [20:00:30] * MrGuits has joined #silverstripe
1507: [20:00:32] <zippy> wonder how good the opcode caching in 5.5 is
1508: [20:03:09] * veb has joined #silverstripe
1509: [20:04:18] * Guits quit (Ping timeout: 244 seconds)
1510: [20:05:15] * UndefinedOffset quit (Quit: Leaving.)
1511: [20:07:53] * veb quit (Client Quit)
1512: [20:08:16] * UndefinedOffset has joined #silverstripe
1513: [20:09:57] * veb has joined #silverstripe
1514: [20:14:22] * Colin[pi] has joined #silverstripe
1515: [20:15:57] * antmas has joined #silverstripe
1516: [20:16:16] * babak has joined #silverstripe
1517: [20:17:52] * r3v3rb quit (Quit: r3v3rb)
1518: [20:20:04] * Olliepop has joined #silverstripe
1519: [20:21:47] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1520: [20:21:59] * veb has joined #silverstripe
1521: [20:32:09] * micmania1 has joined #silverstripe
1522: [20:32:55] * mahfuz has joined #silverstripe
1523: [20:34:01] <JeremyRoundill> When is this ternary coalesce coming in?
1524: [20:34:06] <JeremyRoundill> 5.7, huh?
1525: [20:34:23] <JeremyRoundill> isset($sa->id) ? $sa->id : '';
1526: [20:34:30] <JeremyRoundill> could look a bit prettier
1527: [20:35:06] <simon_w> PHP 7
1528: [20:35:08] <MrGuits> Hi, I may have asked this before but was disconnected before i saw an answer
1529: [20:35:21] <MrGuits> How can i remove <br> from a textfield?
1530: [20:35:58] <simon_w> MrGuits, $Field.NOHTML?
1531: [20:35:59] <JeremyRoundill> Regex.
1532: [20:36:32] <simon_w> Or, if you just want to strip br, strip_tags($this->Field, 'br')
1533: [20:36:38] <MrGuits> NOHTML does not work for me
1534: [20:37:22] <simon_w> Wait, second thing is allowed, now what to strip
1535: [20:37:36] <zippy> JeremyRoundill: am I missing something... can't we do that now?
1536: [20:37:51] <zippy> $foo = isset($bar) ? $bar : 'nop';
1537: [20:37:52] <MrGuits> ..sorry it does with uppercase instead of NoHTML
1538: [20:38:26] <JeremyRoundill> zippy: That's a ternary if, there's the equivalent but coalesce coming out in the next major version.
1539: [20:38:45] <JeremyRoundill> zippy it's like ?: but it looks like this: ??
1540: [20:38:50] <simon_w> zippy, which will become $foo = $bar ?? 'nop';
1541: [20:39:02] <JeremyRoundill> https://wiki.php.net/rfc/isset_ternary
1542: [20:39:06] <JeremyRoundill> Really cool idea
1543: [20:39:18] <zippy> ah right, so it's like the ?: one they added in, if it's already set
1544: [20:39:25] <zippy> but ?? checks if set
1545: [20:39:29] <JeremyRoundill> Yup
1546: [20:39:51] <JeremyRoundill> isset($sa->id) ? $sa->id : '' ==> $sa->id ?? '';
1547: [20:40:16] <zippy> cos doing $name = $request->postVar('name')?: 'Not set'; is handy. as long as that first item is always set to something
1548: [20:40:35] <simon_w> I like the Hack feature being proposed more than the coalesce operator
1549: [20:40:41] <JeremyRoundill> Yeah?
1550: [20:40:47] <JeremyRoundill> Link? :)
1551: [20:40:51] <mudmonth> can i alias or dummy up a Title Varchar in a DataObject so that the DetailForm / GridField says "Product / My Product" rather than "Product / #23" at the top?
1552: [20:40:57] <simon_w> https://wiki.php.net/rfc/nullsafe_calls
1553: [20:41:04] <mudmonth> seems overkill to add another whole database field
1554: [20:41:15] <simon_w> mudmonth, getTitle()
1555: [20:41:20] <Colin[pi]> ^
1556: [20:41:22] <mudmonth> ahh yep
1557: [20:41:47] * simon_w supposes he should head into work
1558: [20:42:32] <Ryan-Toast> what do $indexes in DO’s do?
1559: [20:43:27] <zippy> Ryan-Toast: create db table indexes
1560: [20:43:48] <zippy> Ryan-Toast: which you should define if you have a large number of objects and looking them up by a certain field
1561: [20:44:09] <Ryan-Toast> zippy: ah, coolio :)
1562: [20:44:47] <zippy> Ryan-Toast: http://doc.silverstripe.org/framework/en/reference/dataobject#indexes
1563: [20:44:48] <Ryan-Toast> zippy: so like if I had heaps of trees as dataobjects I could add the type as an index?
1564: [20:45:24] <JeremyRoundill> simon_w: That looks awesome!
1565: [20:45:30] <JeremyRoundill> simon_w: Bring on PHP7! :D
1566: [20:45:42] <simon_w> JeremyRoundill, I can already use it :p
1567: [20:45:52] * simon_w <3s Hack
1568: [20:46:01] <JeremyRoundill> Sweet
1569: [20:49:28] <antmas> morning all
1570: [20:49:54] <JeremyRoundill> Morena ra, e hoa.
1571: [20:50:27] * UncleCheese has joined #silverstripe
1572: [20:52:18] * marvanni quit (Quit: marvanni)
1573: [20:54:14] * spronk2 has joined #silverstripe
1574: [20:55:28] * spronk2 quit (Client Quit)
1575: [20:56:03] <zippy> guzzle is pretty sweet eh
1576: [20:56:11] * spronk2 has joined #silverstripe
1577: [21:10:12] <antmas> zippy: guzzle?
1578: [21:10:19] <zippy> yea
1579: [21:10:39] <zippy> it's sort of like a curl wrapper - https://github.com/guzzle/guzzle
1580: [21:11:15] <zippy> I just used it to batch check a 1000 urls (since it can handle batching)
1581: [21:11:32] <zippy> http://guzzle.readthedocs.org/en/latest/quickstart.html
1582: [21:11:44] <zippy> coffee time
1583: [21:12:34] <UncleCheese> Father of the year: https://www.youtube.com/watch?v=8i4DwqqVdPs
1584: [21:12:44] <UncleCheese> "I was the fuckin' champ!"
1585: [21:12:49] <antmas> zippy: hah, I could use that soon
1586: [21:13:56] <Colin[pi]> UncleCheese: lol
1587: [21:14:04] <Colin[pi]> is the kid crying or laughing?
1588: [21:14:07] <Colin[pi]> or both
1589: [21:14:09] <UncleCheese> laughing
1590: [21:14:14] <UncleCheese> the kid is kind of an ass, too
1591: [21:14:26] <UncleCheese> but with a dad like that, you needn't wonder why
1592: [21:15:02] <Colin[pi]> UncleCheese: my kid is kind of an ass, but he doesn't get it from me
1593: [21:15:34] <UncleCheese> My kid doesn't take responsibility for anything, but he definitely didn't get that from me.
1594: [21:15:45] * UndefinedOffset quit (Quit: Leaving.)
1595: [21:16:21] <JeremyRoundill> UncleCheese: Aren't all kids like that?
1596: [21:16:51] <JeremyRoundill> I think if they're clever enough to know the consequences are bad, they'll shift the blame to someone else.
1597: [21:16:54] <Colin[pi]> UncleCheese: I teach mine right, wrong, correct values... and then all of that goes out the window when he's with his little arsehole friends at school
1598: [21:17:00] <JeremyRoundill> Maybe you've just got a clever kid.
1599: [21:17:43] <Colin[pi]> I had a call from the principal the other day
1600: [21:17:51] <Colin[pi]> mine was caught with his dickhead friends
1601: [21:17:54] <Colin[pi]> at the school fence
1602: [21:18:04] <Colin[pi]> yelling obscenities at a disabled person
1603: [21:18:06] <Colin[pi]> waiting for a bus
1604: [21:18:08] <Colin[pi]> nice
1605: [21:18:14] <JeremyRoundill> Woah
1606: [21:18:27] <Colin[pi]> that is something he does not get from me :(
1607: [21:18:33] <JeremyRoundill> Check your privilege, kid.
1608: [21:18:39] <Colin[pi]> I was fucking livid
1609: [21:18:44] <antmas> yeah that would make me rage
1610: [21:18:56] <Colin[pi]> antmas: did you see the fb post about all the house work he did?
1611: [21:19:09] <antmas> man, if I did that when I was a kid...
1612: [21:19:11] <antmas> dat backhand
1613: [21:19:22] <antmas> Colin[pi]: yeah, was that punishment?
1614: [21:19:26] <Colin[pi]> yep that's why
1615: [21:19:29] <Colin[pi]> he did EVERYTHING
1616: [21:19:36] <antmas> haha
1617: [21:19:44] <adrexia> Colin[pi], arg, yeah I'd be well pissed off.
1618: [21:19:47] <antmas> I try not to make house work a punishment
1619: [21:19:50] <Colin[pi]> oh dude
1620: [21:19:52] <Colin[pi]> I was so pissed
1621: [21:20:03] <Colin[pi]> I said to him that I would have had a belted arse from my dad
1622: [21:20:13] <antmas> lol yeah same here
1623: [21:20:16] <adrexia> I'm probably start making him haang out with disabled kids every day
1624: [21:20:20] <antmas> 'the good old days'
1625: [21:20:30] <Colin[pi]> adrexia: yes I've contacted some orgs so that we can go volunteer
1626: [21:20:35] <antmas> adrexia: that would send a bad message though
1627: [21:20:37] <Olliepop> This journalist has been waiting his whole career to write this "ERIC MURRAY: The Olympic rower could be in for a paddling."
1628: [21:20:38] <adrexia> awesome
1629: [21:20:55] <adrexia> antmas - it actually helps develop empathy
1630: [21:20:55] <antmas> Olliepop: XD
1631: [21:21:02] <Olliepop> "ISRAEL DAGG: Also allegedly fell fould of the law."
1632: [21:21:09] <Colin[pi]> antmas adrexia: prob is, I know he's going to do stupid shit like this again :(
1633: [21:21:16] <Colin[pi]> it's the type of personality he has
1634: [21:21:20] <antmas> adrexia: yeah it can, but making them hang with them as a form of punishment?
1635: [21:21:24] <Colin[pi]> so keen to impress his dickhead friends
1636: [21:21:34] <adrexia> it's not punishment so much as rehabilitation
1637: [21:21:52] <antmas> hmmm I disagree - but in the long run it would help maybe
1638: [21:22:06] <adrexia> oh yewah - in the short run I imagine he'd just resent it
1639: [21:22:27] <Colin[pi]> antmas adrexia: I don't think "hang around", but to help, learn more sure
1640: [21:22:34] * adrexia nods
1641: [21:22:38] <antmas> my dad did it to me when I picked on a kid like that at school
1642: [21:22:41] * antmas confesses
1643: [21:22:45] <adrexia> hahaha
1644: [21:22:49] <Colin[pi]> he was like "but.. I dont want to.." and I'm like "well tough kid, you're going to"
1645: [21:22:58] <antmas> but then I realised the kid was awesome because he was a sauvant at Sega
1646: [21:23:06] <adrexia> my mother looked after disabled kids as a job
1647: [21:23:06] <Colin[pi]> antmas: lol
1648: [21:23:14] <antmas> adrexia: same here
1649: [21:24:10] <Colin[pi]> my kid has very poor impulse control... he doesn't think before doing
1650: [21:24:19] <Colin[pi]> that worries the shit out of me for when he gets older
1651: [21:24:38] <adrexia> yeah, my brother is like that. Actually, two of them are
1652: [21:24:49] <antmas> yeah but kids do do that
1653: [21:24:58] <antmas> especially boys
1654: [21:25:01] <adrexia> but one of them gets in trouble pretty much for the same rteason your kid does - he wants to impress his mates
1655: [21:25:06] <Colin[pi]> mm
1656: [21:25:22] <Colin[pi]> that's why I know he'll do it again, or something similar
1657: [21:25:24] <antmas> did anyone here play the Evolve alpha?
1658: [21:25:28] <adrexia> he got a bit better when he had a kid himself, but he's still a bit like that
1659: [21:25:31] <Colin[pi]> doesn't seem to matter what punishment I give
1660: [21:25:50] <Colin[pi]> antmas: neg
1661: [21:26:18] <adrexia> yeah. it baffles me how much some people will do for their friends entertainment
1662: [21:26:36] <antmas> we all do it
1663: [21:26:40] <antmas> just varying degrees
1664: [21:26:50] <adrexia> no where near like this.
1665: [21:26:57] <antmas> oh no way
1666: [21:27:08] <JeremyRoundill> adrexia: I certainly do. There's still a scar on my hand from a stag do a while back.
1667: [21:27:15] <adrexia> hahah
1668: [21:27:27] <adrexia> I think stag do's are a particular case
1669: [21:27:32] <antmas> last stag do I went to I went home after 3 hours
1670: [21:27:37] <antmas> felt pretty weak about it
1671: [21:27:48] <antmas> but then 7/10 of them got arrested that night
1672: [21:27:50] <antmas> so win!
1673: [21:28:09] <adrexia> it's the ability to hurt others, or disregard for others, for your immediate friends that gets me.
1674: [21:28:10] <JeremyRoundill> This one I was standing really awkwardly in Mermaids telling the girls there that I was morally conflicted and only there because I had been dragged along.
1675: [21:28:19] <adrexia> not the ability top hurt yourself ;)
1676: [21:28:28] <antmas> JeremyRoundill: oh god you were that guy!
1677: [21:28:30] <Colin[pi]> adrexia: yeah, it crushes me inside
1678: [21:28:34] <antmas> there is always that guy
1679: [21:28:56] <JeremyRoundill> Haha, antmas. I thought you were gonna say you were one of the strippers.
1680: [21:29:02] <antmas> LOL
1681: [21:29:10] <antmas> IT'S A TRAP
1682: [21:29:50] <JeremyRoundill> I'm so unsure about strip clubs though.
1683: [21:30:01] <JeremyRoundill> I mean, it's great that people have the freedom to do what they want.
1684: [21:30:22] <antmas> yeah well you should go to a strip club in Nelson
1685: [21:30:34] <JeremyRoundill> But it also sucks that there's this pressure to sell your body to lead a decent life.
1686: [21:30:37] <antmas> WHOLLLLLLE different kettle of fish o.O
1687: [21:30:38] <JeremyRoundill> Haha, try Hamilton bro.
1688: [21:30:49] <JeremyRoundill> We've got a free strip club here.
1689: [21:30:57] <antmas> o-o
1690: [21:30:58] <JeremyRoundill> And I've been dragged along a few times.
1691: [21:30:58] <antmas> woah
1692: [21:30:59] <Colin[pi]> haha "free"
1693: [21:31:11] <JeremyRoundill> Yeah, they sorta force you to buy drinks.
1694: [21:31:30] <JeremyRoundill> I remember one girl doing forward rolls along the catwalk.
1695: [21:31:40] <Colin[pi]> like the free entry one I went to in sydney for a stag night? "COME ON GUYS, ITS FREE!" -gets to top of stairs- "That'll be twenty bucks." FFFFFFUUU
1696: [21:31:46] <antmas> yup, last time and LAST time I ever go was when I saw a girl and even I thought I could be her dad.
1697: [21:31:50] <antmas> and I'm only 26
1698: [21:31:56] <JeremyRoundill> If she was in primary school, I would have told her to do it again because her technique was way off.
1699: [21:32:09] <JeremyRoundill> Well, I'd tell her to put some clothes on first.
1700: [21:32:32] <JeremyRoundill> Hamilton's free entry strip club is actually free.
1701: [21:33:03] <JeremyRoundill> Antmas: Are you sure you weren't in the local primary school pool changing rooms again?
1702: [21:33:11] <antmas> LOl
1703: [21:33:20] <antmas> time to change subject me reckons
1704: [21:33:25] * antmas goes all sqaure
1705: [21:33:29] <JeremyRoundill> Yeah, maybe. :P
1706: [21:34:03] * antmas_ has joined #silverstripe
1707: [21:34:04] * JeremyRoundill goes back to commenting code
1708: [21:34:12] <antmas_> lol
1709: [21:34:13] <antmas_> I think IE agreed with me just then
1710: [21:34:42] <zippy> JeremyRoundill: tombstoning? :)
1711: [21:35:05] * futurealism quit (Quit: Page closed)
1712: [21:35:07] <antmas_> our lead dev hates commented code
1713: [21:35:08] <JeremyRoundill> zippy: Haha, I doubt this project will get far enough for any code to die.
1714: [21:35:17] <antmas_> 'the code should describe itself!'
1715: [21:35:22] <antmas_> rabble rablle
1716: [21:35:30] <JeremyRoundill> rabble rabble indeed.
1717: [21:35:43] <JeremyRoundill> This is all HTML parsey stuff.
1718: [21:36:07] <JeremyRoundill> Written to be relatively easy to modify
1719: [21:36:09] <JeremyRoundill> All in one place.
1720: [21:36:58] <JeremyRoundill> I'm sure I could create it all in a different pattern and make it easier to read.
1721: [21:37:14] * antmas_ is on SQL duty today
1722: [21:37:16] <antmas_> :/
1723: [21:37:17] <JeremyRoundill> But this is how it came out at the time.
1724: [21:37:23] <JeremyRoundill> SQL ain't all bad.
1725: [21:37:26] <zippy> antmas_: add indexs to all things
1726: [21:37:41] <antmas_> naw, it's just data importing/editing
1727: [21:37:46] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
1728: [21:37:48] <antmas_> nothing fancy
1729: [21:37:49] * antmas quit (Ping timeout: 246 seconds)
1730: [21:37:51] <Colin[pi]> antmas_: that was my last week
1731: [21:37:54] * antmas_ is now known as antmas
1732: [21:38:31] <antmas> now I'm back to this embargo error with SS
1733: [21:38:32] <antmas> as a side
1734: [21:38:44] <JeremyRoundill> What projects are you lot working on at the moment?
1735: [21:38:46] <JeremyRoundill> Anything big?
1736: [21:38:56] <Colin[pi]> JeremyRoundill: building a CRM in SS
1737: [21:39:05] <antmas> building a sharepoint intranet
1738: [21:39:21] * gavro has joined #silverstripe
1739: [21:39:29] <JeremyRoundill> Colin[pi]: Wweet
1740: [21:39:35] <JeremyRoundill> Colin[pi]: Sweet even.
1741: [21:39:44] <JeremyRoundill> antmas: What a shame.
1742: [21:39:51] <Colin[pi]> JeremyRoundill: yeah it started so simple... now it's getting kinda complicated :o
1743: [21:39:57] <antmas> lol poor antmas
1744: [21:40:36] <JeremyRoundill> Colin[pi]: But you built it with the eloquence and foresight of an expert developer, so this sort of extensibility is easily accommodated? :P
1745: [21:40:47] <Colin[pi]> JeremyRoundill: oh... uh, yeah... yeah
1746: [21:40:51] <Colin[pi]> of course
1747: [21:41:17] <JeremyRoundill> Hahaha
1748: [21:41:28] <antmas> yeah well all laugh at that
1749: [21:41:35] <antmas> and then cry quietly later
1750: [21:41:40] <JeremyRoundill> Yeah.
1751: [21:41:52] <Colin[pi]> though
1752: [21:41:55] <Colin[pi]> I must say
1753: [21:42:01] <Colin[pi]> I was pretty chuffed yesty
1754: [21:42:03] <JeremyRoundill> I'm currently working on a quiz system for AUT in Laravel.
1755: [21:42:05] <JeremyRoundill> Yeah?
1756: [21:42:11] <Colin[pi]> first test of the integrated newsletter thingy
1757: [21:42:15] <Colin[pi]> (based on the SS newsletter)
1758: [21:42:21] <Colin[pi]> integrated with Mandrill
1759: [21:42:24] <Colin[pi]> and it worked first go
1760: [21:42:29] <Colin[pi]> with the real subscriber list
1761: [21:42:33] <Colin[pi]> handles bounces etc.
1762: [21:42:39] <JeremyRoundill> Right on, daddy-o!
1763: [21:42:41] <Colin[pi]> I was like "....omg it's working"
1764: [21:42:46] * lerni_ has joined #silverstripe
1765: [21:42:54] <antmas> love those moments
1766: [21:43:06] <Colin[pi]> previously I had only tested with just a few test emails
1767: [21:43:16] <Colin[pi]> and they said ok we wanna go for real, and brix were shat
1768: [21:43:18] <Colin[pi]> but it worked :D
1769: [21:43:34] <JeremyRoundill> Haha
1770: [21:43:44] <JeremyRoundill> That is pretty awesome.
1771: [21:43:51] <Colin[pi]> mandrill is fantastic btw
1772: [21:43:53] <JeremyRoundill> Yeah
1773: [21:43:58] <Colin[pi]> webhooks for bounces, so sweet
1774: [21:44:16] <JeremyRoundill> We've got a few clients at the moment who want to go live, but they haven't entered any content.
1775: [21:44:28] <antmas> Colin[pi]: I'd like to take a look at how that all hangs together
1776: [21:44:34] <JeremyRoundill> Like, they push us to get it done really quick so we can go live.
1777: [21:44:39] <antmas> Colin[pi]: and how it handles HTML emails etc
1778: [21:44:39] <JeremyRoundill> And then they don't put any content in. :D
1779: [21:44:54] <Colin[pi]> antmas: http://mandrill.com/
1780: [21:45:03] <Colin[pi]> basically you set it up as your SMTP handler for the site
1781: [21:45:07] <Colin[pi]> (or use the api)
1782: [21:45:15] <Colin[pi]> and it handles everything automagically
1783: [21:45:36] <Colin[pi]> you configure "webhooks" in it's admin that go back to your site on certain events, like bounces
1784: [21:45:39] <antmas> you create the newsletters in the CMS?
1785: [21:45:45] <Colin[pi]> the site receives the data, and you can handle it
1786: [21:45:51] <Colin[pi]> antmas: with the SS module, yeah
1787: [21:45:54] <Colin[pi]> it's.... basic
1788: [21:45:56] <Colin[pi]> but works
1789: [21:46:08] <antmas> does it handle typical HTML?
1790: [21:46:22] <Colin[pi]> antmas: it's basically a subject field with a HtmlEditorField
1791: [21:46:23] <JeremyRoundill> It's MailChimp, but for transactional emails.
1792: [21:46:32] <antmas> ah nice
1793: [21:46:35] <Colin[pi]> yeah
1794: [21:46:47] <JeremyRoundill> It's quite cool.
1795: [21:46:48] <antmas> tbh I think the current ones they use are sliced images in a wrapper
1796: [21:46:54] <Colin[pi]> I mean, MailChimp would be a much nicer solution for newsletters themselves
1797: [21:46:59] <JeremyRoundill> Provides the client with neato graphs and stuff.
1798: [21:47:02] <Colin[pi]> but I wanted to try this way first
1799: [21:47:23] <antmas> Colin[pi]: we should screen share sometime soon, I'd like to see the CMS side
1800: [21:47:38] <Colin[pi]> antmas: yeah sure, it's pretty simple really
1801: [21:47:56] <antmas> <Colin[pi]> antmas: it's basically a subject field with a HtmlEditorField
1802: [21:48:03] <antmas> Colin[pi]: ah, didn't see that bit
1803: [21:48:09] <Colin[pi]> to draft the emails, yes
1804: [21:48:10] <antmas> that'd be fine I think
1805: [21:48:11] <mudmonth> maybe off topic but, how the hell do i flow arbitrary paragraphs of HTMLText into 3 columns
1806: [21:48:30] <Colin[pi]> antmas: and then you plug the content into a wrapper template for the mailout
1807: [21:48:46] <Colin[pi]> antmas: shitty thing is that email html has to be like 1999 html
1808: [21:48:47] <Colin[pi]> :()
1809: [21:49:23] <antmas> Colin[pi]: yeah well it's the only way to get around all the cruddy outlook clients floating around
1810: [21:49:31] <antmas> dat inline css
1811: [21:49:40] <Colin[pi]> antmas: yeah and even with the most basic html, you'll still get problems :(
1812: [21:49:44] <Colin[pi]> fucking outlook
1813: [21:49:48] <antmas> ikr
1814: [21:49:51] <JeremyRoundill> antmas: Outlook 2001 had amazing CSS support IIRC.
1815: [21:49:52] <adrexia> mudmouth depends a bit on browser requirements
1816: [21:50:01] <JeremyRoundill> So don't you go around dissing Outlook.
1817: [21:50:16] <antmas> JeremyRoundill: yeah but you never see that in the wild anymore
1818: [21:50:29] <antmas> lots of people have Outlook 2003 and it's the worst of the bunch
1819: [21:50:30] <JeremyRoundill> antmas: The only solution is to invent a time machine.
1820: [21:50:31] <adrexia> and err, you just want continious flow ?
1821: [21:51:02] <wracu> morning
1822: [21:51:13] <antmas> holy shit mandril/mailchimp is 12k emails per month free
1823: [21:52:11] <adrexia> mudmouth you could try column count if you don't care about a bunch of older browsers http://www.w3schools.com/cssref/css3_pr_column-count.asp
1824: [21:52:25] <adrexia> http://css3generator.com/
1825: [21:52:40] <antmas> Colin[pi]: did you use a module for mandrill? or do it yourself?
1826: [21:53:02] <UncleCheese> antmas yeah, crazy
1827: [21:53:10] <Colin[pi]> antmas: yep, and then it's like 20c / thousand
1828: [21:53:29] <Colin[pi]> antmas: nah I just used the smtp module for SS and defined it as the SMTP server
1829: [21:53:29] <UncleCheese> Snap is offering unlimited data!
1830: [21:53:40] <wracu> quick question... how can I select from a belongs_many_many relationship? (there is a relationship table)
1831: [21:53:50] <antmas> UncleCheese: finally!
1832: [21:53:51] <antmas> Colin[pi]: nice
1833: [21:53:57] <UncleCheese> are they the only ones who do?
1834: [21:54:26] <UncleCheese> antmas there's a mandrill mailer module that is as plug-and-play as it gets
1835: [21:54:39] <UncleCheese> just drop it in, add your api key, and you're done
1836: [21:54:45] <Colin[pi]> yep this one as well
1837: [21:54:57] <antmas> UncleCheese: nice!
1838: [21:55:02] <antmas> linky?
1839: [21:55:02] <Colin[pi]> https://github.com/lekoala/silverstripe-mandrill ?
1840: [21:55:07] <Colin[pi]> ^ this one I think?
1841: [21:55:07] <UncleCheese> that'st the one
1842: [21:55:09] <antmas> Colin[pi]: was looking at that one
1843: [21:55:13] <antmas> +1
1844: [21:55:13] <UncleCheese> it's insanely easy
1845: [21:59:12] * helenclarko has joined #silverstripe
1846: [21:59:33] <antmas> how's the UN helenclarko ?
1847: [21:59:45] * Shrike_Finland quit (Quit: Leaving.)
1848: [21:59:55] <helenclarko> Busy!
1849: [22:00:01] <antmas> XD
1850: [22:00:14] <Colin[pi]> it's so nice you still have time to drop in and talk shop helenclarko
1851: [22:00:16] <Colin[pi]> :D
1852: [22:00:38] <helenclarko> Oh, I do what I can.
1853: [22:01:50] * muskie9 is now known as _muskie9_
1854: [22:02:11] <antmas> I bet helenclarko rips at Silverstripe dev
1855: [22:05:36] * _muskie9_ is now known as muskie9
1856: [22:07:26] <JeremyRoundill> helenclarko: Who are you voting for in the upcoming Labour leader election?
1857: [22:09:35] <mahfuz> Hi. I am using SilverThere is a Reference field in Payment
1858: [22:12:11] <mahfuz> I am using Payment Module along with Paymentexpress module. I can see there is a Reference field with Payment. How to pass a value for Reference (Invoice Number in my case ) ?
1859: [22:12:44] <Kingy> I too need a nice easy payment gateway
1860: [22:12:56] <Kingy> these people want a different payment method added
1861: [22:13:55] <mudmonth> any idea what is up with this? "Unknown column 'PreviewableProduct.ID' in 'where clause'" what simple thing have i messed up? https://gist.github.com/jotham/b398feb250acd420ec4c
1862: [22:14:04] <mudmonth> you can see my table and the query the ORM is generating
1863: [22:15:38] <simon_w|work> mudmonth, how are you generating the query?
1864: [22:15:47] <simon_w|work> (It's because you're not querying _Live)
1865: [22:15:52] <helenclarko> Hey, does anyone know if EditableCompositeField was an addon for Userforms or was it removed from the latest version?
1866: [22:16:38] <mudmonth> simon_w|work: just using the Versions extension + GridField Details Form i'm not doing anything particularly myself?
1867: [22:16:57] <helenclarko> I've had a container field in 2.4, but it doesnt exist in 3.1
1868: [22:17:08] <simon_w|work> mudmonth, you sure? The ORM wouldn't generate (URLSegment = 'hello' AND PreviewableProduct.ID != 1)
1869: [22:17:14] <simon_w|work> (Looks like an onBeforeWrite check)
1870: [22:17:26] <mudmonth> hum
1871: [22:17:40] * Azure quit (Ping timeout: 258 seconds)
1872: [22:18:18] * Stomach_ has joined #silverstripe
1873: [22:18:42] <simon_w|work> helenclarko, looks like it was an addon. Can't find it in the 2.4 version of userforms
1874: [22:19:29] <mudmonth> thanks simon_w|work something in some code i got given, heh
1875: [22:19:34] <antmas> yay finally got a work locker!
1876: [22:19:44] <antmas> I can store all the things!
1877: [22:19:55] <simon_w|work> antmas, is that like an overlocker?
1878: [22:20:19] <helenclarko> Thanks Simon_w, I'll see if I can add it again.
1879: [22:20:42] * Stomach quit (Ping timeout: 250 seconds)
1880: [22:20:47] <catcher> simon_w|work!
1881: [22:20:57] <simon_w|work> catcher!
1882: [22:21:00] <catcher> :)
1883: [22:22:44] * EasyCo has joined #silverstripe
1884: [22:22:47] <antmas> simon_w|work: not sure what that is
1885: [22:22:56] <antmas> we have big locker rooms here, so it's like a standard school locker almost
1886: [22:22:59] <antmas> I guess
1887: [22:23:56] <simon_w|work> antmas, http://en.wikipedia.org/wiki/Overlock
1888: [22:25:27] <antmas> simon_w|work: oh lol
1889: [22:25:28] <antmas> :P
1890: [22:25:37] <JeremyRoundill> You gonna hem your pants at work, antmas?
1891: [22:25:51] <mahfuz> Any help on this please. I am using Payment Module along with Paymentexpress module. I can see there is a Reference field with Payment. How to pass a value for Reference (Invoice Number in my case ) ?
1892: [22:26:01] <antmas> gonna make tea cozies for everyone
1893: [22:26:34] * catcher quit (Quit: Leaving)
1894: [22:27:41] <JeremyRoundill> mahfuz: Grep the source and some code examples. I'm sure you can figure it out.
1895: [22:28:05] <JeremyRoundill> I'd guess none of us have used the Payment Module.
1896: [22:28:38] <antmas> lol finally checked my airpoints
1897: [22:28:47] * antmas has 6.4 airpoints $$ lol
1898: [22:29:06] <Kingy> I has $0
1899: [22:29:13] <simon_w|work> antmas, that's what happens when you let them expire :p
1900: [22:29:19] <Kingy> what's the deal with cancelling flights and refunds
1901: [22:29:30] <Kingy> I take it they're basically non-existant right?
1902: [22:29:40] <antmas> Kingy: depends what kind of ticket you bought
1903: [22:29:41] <JeremyRoundill> Surely it's $payment->Reference = "whatever"; or something like that.
1904: [22:29:44] * simon_w|work has 288.10 AU airpoints
1905: [22:29:50] <Kingy> antmas: just the basic lol
1906: [22:30:02] <antmas> simon_w|work: yeah I would have only had like 60 something though
1907: [22:30:05] <antmas> but still :O
1908: [22:30:05] <antmas> lame
1909: [22:30:21] <antmas> Kingy: then probably pretty hard to change, but just call them :D
1910: [22:30:28] <Kingy> yeah will do that
1911: [22:30:35] <simon_w|work> Oh man, Chrome is so bad. Opened the inspector. The inspector crashed.
1912: [22:30:42] <Kingy> man, up and leaving the country in <2 months is hard
1913: [22:30:54] <antmas> Kingy: do you have lots of stuff?
1914: [22:30:56] <simon_w|work> FUCK YOU TOO CHROME
1915: [22:31:17] <simon_w|work> Kingy, don't leave your passport in the printer when you ship your stuff
1916: [22:31:21] <simon_w|work> That gets expensive!
1917: [22:31:38] <simon_w|work> (And my insurance only covered return flights. Jerks)
1918: [22:31:41] <Kingy> antmas: Sell/Giveaway everything in the house. Sell Cars, Work right up until we leave. Get quote from moving company to help pack up and move certain stuff. Get quotes for storing shit
1919: [22:31:57] <Kingy> Sort out visas
1920: [22:32:00] <Kingy> find job
1921: [22:32:12] <Kingy> just everything you need to do before leaving basically :P
1922: [22:32:19] <antmas> if you get storage, make sure it's ventillated
1923: [22:32:23] * antmas made that mistake
1924: [22:32:30] <Kingy> yeah, we're going to try not do storage
1925: [22:32:36] <Kingy> just $$ down the drain
1926: [22:32:43] <Kingy> it's a 2.5 year contract
1927: [22:32:47] <Kingy> so seems pointless
1928: [22:32:47] <antmas> Kingy: do you have to leave together?
1929: [22:32:55] <antmas> why not wait another month or something?
1930: [22:33:03] <Kingy> antmas: nah, but gf is like freaking out about having to do it on her own and shit
1931: [22:33:24] <antmas> true
1932: [22:33:33] <Kingy> and that just causes more issues. Our rental contract runs out 2 days before we leave
1933: [22:33:40] <Kingy> so if i was on my own i wouldn't renew it and i'd move to Wellington
1934: [22:33:49] <antmas> oh man
1935: [22:33:56] <antmas> all the things
1936: [22:33:57] <antmas> all at once
1937: [22:34:04] <Kingy> so then i'd have to find a place down there + move shit down there + this that and everything else
1938: [22:34:05] <Kingy> haha
1939: [22:34:52] <antmas> UncleCheese: do you think that snap plan would be throttled in any way?
1940: [22:35:00] <UncleCheese> what's throttled?
1941: [22:35:18] <antmas> UncleCheese: like, slower speeds because of unlimited data
1942: [22:35:25] <antmas> at certain times of the day etc
1943: [22:35:35] <antmas> or does that not really happen anymore?
1944: [22:35:37] <UncleCheese> oh
1945: [22:35:46] <UncleCheese> the plan i'm on ATM is free from 1-7am or some shit
1946: [22:35:48] <ss23> General, an army is approaching, what do we do?!
1947: [22:35:54] <ss23> Divide and conquer!
1948: [22:35:58] <ss23> It's an army of prime numbers!
1949: [22:36:01] <ss23> OH GOD WE'RE ALL GOING TO DIE
1950: [22:36:33] <UncleCheese> oh, lame
1951: [22:36:43] <UncleCheese> you have to sign up for a 24month contract
1952: [22:36:47] <UncleCheese> eff that noise
1953: [22:36:57] <antmas> yeah was just reading that UncleCheese
1954: [22:37:38] <simon_w|work> \nFatal error: String length exceeded 2^31-2: 2147483647 in /var/www/hrmweb/secure_html/javascript/Report/fetch.php on line 133
1955: [22:37:39] <simon_w|work> Oops
1956: [22:37:59] <antmas> UncleCheese: is there a way to see how long you contract has left?
1957: [22:38:36] <mahfuz> Figured out the Reference thing in payment.
1958: [22:39:12] <UncleCheese> i have....
1959: [22:39:17] <UncleCheese> just under 12 months left
1960: [22:39:23] <UncleCheese> i dunno
1961: [22:39:29] <UncleCheese> the termination fee is brutal
1962: [22:39:32] <UncleCheese> $460 or something
1963: [22:39:51] <antmas> woah
1964: [22:40:00] <antmas> I've been on mine for almost 2 years to the day
1965: [22:40:11] <Kingy> ah crap I also have to pay for my UFB contract cancellation as well
1966: [22:40:11] <Kingy> sigh
1967: [22:40:30] <simon_w|work> I've been on mine for just under a month
1968: [22:42:16] <simon_w|work> Or just over. Depending on if they do it from the first connection or the last.
1969: [22:44:00] <antmas> I wish they'd give you a discount for not terminating a 24 month contract
1970: [22:44:38] <novaweb> hey homies. is MyDataObject::create(); and new MyDataObject(); essentially the same thing?
1971: [22:45:17] <simon_w|work> novaweb, nope
1972: [22:45:28] <simon_w|work> ::create() lets the injector do its stuff
1973: [22:45:38] <novaweb> K thanks.
1974: [22:49:07] <adrexia> simon_w|work, I've heard that but not sure I understand what it means. Got any more info on that?
1975: [22:49:09] <adrexia> :)
1976: [22:49:26] <JeremyRoundill> Holy moley
1977: [22:49:32] <JeremyRoundill> Just refactored some old code.
1978: [22:49:35] <simon_w|work> adrexia, means injector properties work and you can change what class actually gets used
1979: [22:49:36] <JeremyRoundill> What was I even thinking?
1980: [22:49:39] <JeremyRoundill> That's not MVC
1981: [22:49:45] <JeremyRoundill> $output .= blahblahblah
1982: [22:49:57] <JeremyRoundill> Just generate all that HTML in the controller
1983: [22:50:06] <Colin[pi]> adrexia: new ClassName() means that it will ALWAYS be ClassName... ::create() allows you to use the injector to override that
1984: [22:51:04] * Azure has joined #silverstripe
1985: [22:51:54] <antmas> Colin[pi]: what would a use case be for that?
1986: [22:52:20] <Colin[pi]> antmas: well it allows you to swap out classes at run time as opposed to rewriting code I guess
1987: [22:52:35] <Colin[pi]> it hasn't come up often for me, but I can see the benefits
1988: [22:53:17] <simon_w|work> antmas, is how my 2FA module works. Swaps out the login form for a custom one.
1989: [22:53:33] * lerni_ quit (Remote host closed the connection)
1990: [22:54:41] <simon_w|work> https://git.simon.geek.nz/91-carriage/silverstripe-2fa/blob/master/_config/2fa.yml#L7-11
1991: [22:54:49] <mahfuz> Can any one tell me is there any way to protect direct access to a subfolder under assets so that the images are only accessible through silverstripe?
1992: [22:55:17] <simon_w|work> mahfuz, google for hotlink protection
1993: [22:56:04] <antmas> simon_w|work: oh nice
1994: [22:58:28] * r_hector quit (Quit: Leaving.)
1995: [23:00:52] <Colin[pi]> antmas: here's the original article on DI from the "god" of modern design patterns: http://martinfowler.com/articles/injection.html
1996: [23:02:02] <antmas> Colin[pi]: nice, cheers
1997: [23:03:37] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1998: [23:04:01] * veb has joined #silverstripe
1999: [23:06:43] <spronk2> WHATUP
2000: [23:06:58] <mahfuz> thanks simon. but is there any module doing this?
2001: [23:07:12] <antmas> spronk2: YOYOYOYOYO
2002: [23:07:17] <spronk2> DAWG
2003: [23:08:43] <Colin[pi]> hai2u spronk2
2004: [23:08:56] <spronk2> its just about lunchtime, right?
2005: [23:09:14] <Colin[pi]> spronk2: not here it's not :(
2006: [23:09:19] <spronk2> :(
2007: [23:09:20] <spronk2> how sad
2008: [23:12:28] <adrexia> Colin[pi], simon_w|work thanks that helps a little.
2009: [23:30:01] * travis-ci has joined #silverstripe
2010: [23:30:01] <travis-ci> silverstripe/silverstripe-cms#1077 (3.1 - dd0332d : Daniel Hensby): The build passed.
2011: [23:30:01] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/93d09d4dbbee...dd0332d66db8
2012: [23:30:01] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/39892791
2013: [23:30:01] * travis-ci has left #silverstripe
2014: [23:34:09] * toddvalentine quit ()
2015: [23:34:23] * gelignite quit (Quit: http://bit.ly/nkczDT)
2016: [23:36:45] * muskie9 is now known as _muskie9_
2017: [23:39:39] <adrexia> has anyone else noticed all the errors you get when you try to change a pagetype with relations to one that doesn't have those relations? is there an open bug for that anywhere?
2018: [23:39:44] * gavro quit (Remote host closed the connection)
2019: [23:40:19] <adrexia> There is an error on initial change, but it still changes the page type... but when using compare in history it just borks
2020: [23:41:49] * lerni_ has joined #silverstripe
2021: [23:42:29] <adrexia> It complains that the method (relation from the old page type) doesn't exist on the new page type. Which is true, it doesn't. But basically fatal errors
2022: [23:43:06] <adrexia> it seems like such an obvious thing that I'm surprised I can't find an open ticket for it
2023: [23:43:32] * Ryan-Toast quit (Quit: Ryan-Toast)
2024: [23:44:24] * Ryan-Toast has joined #silverstripe
2025: [23:44:57] <Ryan-Toast> Grats on community educator, UncleCheese
2026: [23:45:00] * travis-ci has joined #silverstripe
2027: [23:45:01] <travis-ci> dhensby/silverstripe-framework#31 (3.1 - 646a57c : Sam Minnée): The build passed.
2028: [23:45:01] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/f0ca37fdea0f...646a57c3244e
2029: [23:45:01] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/39894760
2030: [23:45:01] * travis-ci has left #silverstripe
2031: [23:45:09] <UncleCheese> Thanks, Ryan-Toast
2032: [23:45:22] <UncleCheese> Been with the company for 6 months, but just starting my official job in the last month :)
2033: [23:45:32] <Ryan-Toast> :P
2034: [23:46:04] <antmas> UncleCheese: yeah you seem like a perfect fit for it, well done!
2035: [23:47:26] <Stomach_> educate me please
2036: [23:47:52] * antmas educates Stomach_
2037: [23:48:00] * Stomach_ is now known as Stomach
2038: [23:48:03] <antmas> Stomach_: what do you know about C# son?
2039: [23:48:23] <Stomach> some stuff
2040: [23:48:46] <Stomach> did my postgrad dip project in C#
2041: [23:48:46] <Stomach> the image handlers sucked in 2011
2042: [23:48:46] <Stomach> I can tell you that much
2043: [23:48:53] <Stomach> no, 2010
2044: [23:53:10] <UncleCheese> where is the best place to put IE polyfills in the framework?
2045: [23:53:12] <adrexia> so, no one else seen the page type changing history errors before? Is this just because dev's don't use the cms? ;)
2046: [23:53:30] <adrexia> UncleCheese, what are they needed for?
2047: [23:53:43] <UncleCheese> my stupid pull request that is rapidly becoming a shitshow
2048: [23:53:50] <adrexia> lol
2049: [23:53:51] <UncleCheese> Object.keys
2050: [23:53:52] <adrexia> umm
2051: [23:54:02] <adrexia> is it worth it?
2052: [23:54:03] <mahfuz> Can any one help me on this code - http://www.sspaste.com/paste/show/54581071322c5
2053: [23:54:16] <UncleCheese> yeah, because Object.keys kills the script
2054: [23:54:16] <adrexia> maybe just give them a reason to get a better browser
2055: [23:54:20] <adrexia> oh
2056: [23:54:23] <adrexia> i see
2057: [23:55:19] * gavro has joined #silverstripe
2058: [23:56:10] <UncleCheese> mahfuz $order->SoldPhotos()->add($photo);
2059: [23:56:36] <adrexia> beware the rabbit hole. Fixing UI issues in core always takes way more time than you suspect it will
2060: [23:57:04] <mahfuz> add the line in the loop where I am populating SoldPhotos
2061: [23:57:30] <Ryan-Toast> adrexia: When you look at the css/html https://i.imgur.com/rNbbjzy.jpg
2062: [23:57:59] <UncleCheese> mahfuz yes
2063: [23:58:13] <mahfuz> Thanks UC
2064: [23:58:21] <adrexia> .,..and then you end up finding the bit you are lookign for is added with php generated js
2065: [23:58:39] <adrexia> 'cause f*&k other people
2066: [23:58:43] <Ryan-Toast> adrexia :P
2067: [23:58:58] <Ryan-Toast> http://i.imgur.com/gJwE6.jpg

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