#silverstripe IRC Log

IRC log for 5 May 2014

All timestamps are in UTC.

1: [00:01:07] <simon_w> Admit it, it's good
2: [00:01:15] <simon_w> Play over the office speakers!
3: [00:01:19] <ss23> <% if ClassName == "HomePage" || ClassName == "ChineseHomePage" %>
4: [00:01:26] <ss23> -> Parse error: syntax error, unexpected '}' in
5: [00:01:28] <ss23> why?
6: [00:01:44] <simon_w> Because 2.4 can't do that
7: [00:01:53] <simon_w> Can only do ||/&& on literals
8: [00:02:08] <ss23> ChineseHomePAge is literal!
9: [00:02:14] <ss23> How do I do this then?
10: [00:02:15] <ss23> :O
11: [00:02:26] <Pyromanik> you do not
12: [00:02:27] <simon_w> More, <% if A || B %>
13: [00:03:14] <Pyromanik> also, dafuq snoopy's christmas in may?
14: [00:03:43] <simon_w> Damn right
15: [00:04:38] <ss23> I don't understand
16: [00:04:45] <ss23> I want to have that conditional :(
17: [00:04:50] <ss23> A is Classname == HomePAge
18: [00:04:56] <ss23> b is ChinseHomePAge == ClassName etc
19: [00:05:00] <ss23> I am confused, simon_w :(
20: [00:05:28] <Pyromanik> ss23, subclass it then, gosh
21: [00:05:34] <simon_w> ss23, No, that would be A = B || C = D
22: [00:05:36] <Pyromanik> o wait, no injector 2.4 lulz
23: [00:06:34] <ss23> k adding a function to 2.4 homepage
24: [00:06:36] <ss23> fuck
25: [00:06:39] <ss23> I meant add a function
26: [00:06:53] <ss23> function isAHomePage etc
27: [00:07:00] <ss23> fuck tha police
28: [00:40:20] <Pyromanik> yeah, do it properly you mean?
29: [00:40:43] <ss23> "properly"
30: [00:40:46] <ss23> Properly would be to upgrade to 3
31: [00:40:47] <ss23> :D
32: [00:40:53] <Pyromanik> yes, no logic in templates, duh!
33: [00:41:10] <simon_w> Eh, we just back ported the 3.0 template engine
34: [00:41:19] <ss23> Easier to just upgrade to 3.0
35: [00:41:21] <Pyromanik> hehehe, yeah but you would ;P
36: [00:41:39] <Pyromanik> yeah but then you'd have scope issues and things ss23
37: [00:41:49] <Pyromanik> so whatevs
38: [00:41:56] <Pyromanik> just deal with it already :>
39: [00:42:03] <ss23> I dealt with it!
40: [00:42:17] <Pyromanik> giggity giggity Giganaire
41: [00:42:35] <Pyromanik> ity
42: [00:43:21] * Motoservo quit (Read error: Connection reset by peer)
43: [00:43:22] * Motoservo_ has joined #silverstripe
44: [00:45:52] <Pyromanik> so here's a question like
45: [00:46:04] <Pyromanik> why is the database so singular?
46: [00:48:50] * nickmolhoek has joined #silverstripe
47: [00:49:46] <ss23> Is that like "Why does SilverSTripe only have one database connection?"
48: [00:49:56] <ss23> Be more clear about what you'rea asking, Pyromanik!
49: [00:50:01] * Colin[pi] has joined #silverstripe
50: [00:50:14] <simon_w> Late Colin[pi]!
51: [00:50:48] <Colin[pi]> yes, morning, went to get a new desk chair for my gf
52: [00:50:52] <ss23> lol
53: [00:51:07] <simon_w> Whipped!
54: [00:51:37] <Colin[pi]> her back is screwed, she's been sitting at the dining table on a shitty wooden chair
55: [00:54:26] <simon_w> I'm stuck on one of those too. Can I get a new office chair? :p
56: [00:54:39] <simon_w> (And a desk, and a house with space)
57: [00:55:01] <ss23> simon_w: How is the job search going?
58: [00:55:13] <ss23> Given you're playing Snoopys Christmas though, I'm guessing you haven't got one yet
59: [00:56:16] <simon_w> ss23, referred for two, which should interview this week, and expecting a call about another
60: [00:56:25] <ss23> sweet
61: [00:56:26] <ss23> :D
62: [00:57:38] <Pyromanik> sweet
63: [00:57:39] <Pyromanik> :D
64: [00:57:53] <Pyromanik> yes ss23
65: [00:58:10] <simon_w> Both I've been referred to should be in the 80-90k range too
66: [00:58:17] <Pyromanik> shit nice
67: [00:58:38] <simon_w> Indeed
68: [00:58:51] <ss23> Pyromanik: There needs to be a canonical one for stuff, so there is. You can connect to whatever if you want though
69: [00:59:03] <Pyromanik> ss-log, no lies
70: [00:59:09] <Pyromanik> ss23, fucker
71: [00:59:46] <spronk0> simon_w: you could get more thant hat
72: [00:59:50] <ss23> lol
73: [00:59:58] <Stomach> simon_w - is that pretty standard rates over there? I'd expect 70-100 would be more standard
74: [01:00:01] <ss23> spronk0: Could be worth getting one to start with :P
75: [01:00:01] <Stomach> and what spronk just said
76: [01:00:05] <Stomach> you could get lots more
77: [01:00:06] <Pyromanik> yeah simon_w, you're so lacking in hats
78: [01:00:10] <spronk0> with your quals and skill base, i'd be shooting for 6 fig
79: [01:00:18] <Pyromanik> you defo need more hats.
80: [01:00:23] <antmas> simon_w: what are your quals?
81: [01:00:26] <simon_w> spronk0, yeah, but I can basically only work for startups here
82: [01:00:26] <Stomach> two more hats by tomorrow please
83: [01:00:30] * UncleCheese_ quit (Quit: UncleCheese_)
84: [01:00:39] <spronk0> simon_w: even better :P
85: [01:00:40] <Pyromanik> then you can sit in the shade of your 6 fig trees with your best hat on
86: [01:00:45] <spronk0> startups have seed capital :P
87: [01:00:46] <simon_w> antmas, s.geek.nz/cv.pdf
88: [01:00:57] <ss23> >s.geek.nz
89: [01:00:58] <ss23> >.>
90: [01:00:59] <simon_w> (Plus the Facebook trip)
91: [01:01:05] <simon_w> ss23, jelly much? :p
92: [01:01:19] <ss23> NOT EVEN
93: [01:01:20] <ss23> :(
94: [01:01:36] <antmas> dat comp sci
95: [01:01:51] <spronk0> lol.geek.nz
96: [01:01:59] <Ryan-Toast> you should check out my amazing CV: http://ryanpotter.co.nz/cv
97: [01:02:01] <Pyromanik> 101
98: [01:02:08] <ss23> Error
99: [01:02:08] <Colin[pi]> good luck simon_w :D
100: [01:02:08] <ss23> These aren't the droids you're looking for
101: [01:02:10] <spronk0> want my nerd.nz
102: [01:02:11] <antmas> lol ^^
103: [01:02:19] <Pyromanik> These aren't the droids you're looking for
104: [01:02:25] <Ryan-Toast> 404 - thatisthejoke.jpg
105: [01:02:40] <Pyromanik> These aren't the 404s you're looking for
106: [01:02:46] <antmas> I love seeing grad student CVs
107: [01:02:50] <antmas> so over the top
108: [01:03:00] <spronk0> your 404 pages need another hoz separator, Ryan-Toast
109: [01:03:07] <spronk0> after the paragraph text, before the perhaps..
110: [01:03:22] <Ryan-Toast> spronk0: Hmm?
111: [01:03:45] <spronk0> it just looks weird
112: [01:03:49] <spronk0> the heading
113: [01:03:52] <spronk0> close to the para text
114: [01:03:57] <Ryan-Toast> spronk0: well hopefully people aren’t going there :P
115: [01:03:58] <Pyromanik> he just said you're a shit designer Ryan-Toast
116: [01:03:59] <spronk0> but having lots of visual weight int he boxes below
117: [01:04:00] <Pyromanik> gosh
118: [01:04:03] <Pyromanik> fight
119: [01:04:04] <Pyromanik> fight
120: [01:04:05] <Pyromanik> fight
121: [01:04:05] <Colin[pi]> lol
122: [01:04:07] <Ryan-Toast> Pyromanik: lol
123: [01:04:09] <spronk0> :D
124: [01:04:14] <Ryan-Toast> Pyromanik: well I am.
125: [01:04:22] <spronk0> not really, it's a pretty tight site
126: [01:04:46] <Ryan-Toast> spronk0: Redoing some stuff…when I cbf
127: [01:04:47] * Colin[pi] imagines them walking towards each other with heads turned, eyes closed, and hands slapping
128: [01:05:07] <Ryan-Toast> Colin[pi]: the best way to fight
129: [01:05:10] <Colin[pi]> hehe
130: [01:05:22] <Pyromanik> the ol' classic cat fight Colin[pi]?
131: [01:05:26] <Colin[pi]> that's the one
132: [01:05:27] <Ryan-Toast> Colin[pi]: My wrist is actually broken from boxing right ow :P
133: [01:05:33] <Pyromanik> would that turn you on, you lecherous bastard?
134: [01:05:48] <Colin[pi]> who said I wasn't already?
135: [01:05:57] <Pyromanik> Ryan-Toast, well at least it's not your nose!
136: [01:06:08] <Ryan-Toast> Pyromanik: Very true
137: [01:06:16] * DesignerX has joined #silverstripe
138: [01:07:25] <Pyromanik> so at first I wasn't sure, I was doubtful as
139: [01:07:45] <Pyromanik> but then I spent so many nights thinking just how they done me wrong
140: [01:08:08] <Ryan-Toast> I’ve found myself in that part of youtube again: https://www.youtube.com/watch?v=vzTiDd9vZU8
141: [01:08:15] * UncleCheese_ has joined #silverstripe
142: [01:10:18] <Pyromanik> https://www.youtube.com/watch?v=jrtd6W6hqa0
143: [01:10:29] <ss23> the part of youtube run by children!
144: [01:10:40] <Colin[pi]> Ryan-Toast: careful, some have ventured and never returned from those parts of Youtube
145: [01:11:08] <ss23> Pyromanik: I don't even get it
146: [01:11:10] <ss23> why is that funny?
147: [01:11:17] <Ryan-Toast> Colin[pi]: I have my flashlight
148: [01:11:28] <Ryan-Toast> ss23: “”these nuts
149: [01:11:32] <Colin[pi]> Ryan-Toast: read that as "fleshlight" - prolly more appropriate
150: [01:11:32] <Pyromanik> dumdum
151: [01:11:38] <ss23> hmm
152: [01:11:41] <ss23> I see
153: [01:11:42] <ss23> idk
154: [01:11:55] <ss23> I heard "D's nuts"
155: [01:11:55] <ss23> :(
156: [01:11:57] <Pyromanik> so anyway, memories came back right
157: [01:11:58] <antmas> Colin[pi]: so did I
158: [01:12:01] <antmas> I'm a abad person
159: [01:12:03] <antmas> :P
160: [01:12:08] <Pyromanik> ss23, 'deeze'
161: [01:12:13] <Colin[pi]> antmas: great minds XD
162: [01:12:23] <Ryan-Toast> never get sick of this: https://www.youtube.com/watch?v=hpigjnKl7nI
163: [01:12:24] <Pyromanik> but yes, you heard the literal written version
164: [01:12:26] * UncleCheese___ has joined #silverstripe
165: [01:12:30] <ss23> Pyromanik: No, I get the joke that it sounds like "these nuts", but *shrug*
166: [01:12:37] <ss23> hahaha Ryan-Toast
167: [01:12:40] <ss23> watch your profanity
168: [01:12:57] <Ryan-Toast> ss23: profamity
169: [01:13:00] <Pyromanik> ss23, yeah I know right. I didn't say it was good!
170: [01:14:14] <Ryan-Toast> ss23: https://www.youtube.com/watch?v=5cEL5mq-OOA&edit=vd
171: [01:14:17] <antmas> ss23: dat Meshuggah link
172: [01:14:21] <antmas> ss23: \m/
173: [01:14:42] <Pyromanik> how about this kind of awesome instead?
174: [01:14:42] <Pyromanik> https://www.youtube.com/watch?v=7KJjVMqNIgA
175: [01:16:57] <ss23> https://www.youtube.com/watch?v=Gi1c25wJp48
176: [01:17:30] <antmas> WKUK is awesome
177: [01:17:45] <ss23> mmm :D
178: [01:18:45] <Pyromanik> omfg, https://www.youtube.com/watch?v=X16G2hsVI9w
179: [01:18:53] <Ryan-Toast> ss23: https://www.youtube.com/watch?v=aHAgeOx1cBM
180: [01:19:00] <Pyromanik> wholey fucking balls I'm lauging so hard
181: [01:20:12] <ss23> 13:18:54 < Ryan-Toast> ss23: https://www.youtube.com/watch?v=aHAgeOx1cBM
182: [01:20:13] <ss23> hahahahaha
183: [01:20:19] <ss23> guys
184: [01:20:20] <ss23> no more
185: [01:20:22] <ss23> I have to do work!
186: [01:20:25] <ss23> well, get lunch
187: [01:20:26] <ss23> then do work
188: [01:20:30] <Ryan-Toast> NO WORK FOR YOU
189: [01:20:31] <simon_w> Yeah, ss23 has to write some docs
190: [01:21:33] <ss23> lol fuck off
191: [01:22:27] <Ryan-Toast> ss23: last one https://www.youtube.com/watch?v=eqsAvKqqf2g&feature=youtu.be
192: [01:23:04] <antmas> o.O
193: [01:23:36] <antmas> Ryan-Toast: I had youtube on mute while Meshuggah played on spotify to that last clip
194: [01:23:47] <antmas> produced way more lels
195: [01:24:03] <Ryan-Toast> I don’t know who Meshuggah are.
196: [01:24:32] <antmas> you know nothing Ryan-Toast
197: [01:25:20] <Ryan-Toast> Ygritte (╯°□°)╯︵ ┻━┻
198: [01:25:42] <Ryan-Toast> ┬─┬ノ( º _ ºノ)
199: [01:25:56] <antmas> pewpew
200: [01:27:19] <Ryan-Toast> Can SS not send to files at once in a form?
201: [01:27:23] <Ryan-Toast> two
202: [01:27:41] <antmas> Ryan-Toast: you mean via uploadfield?
203: [01:27:49] <Ryan-Toast> Via FileField
204: [01:28:00] <Ryan-Toast> on a front end form
205: [01:28:05] <antmas> yeah should be able to
206: [01:28:17] <Ryan-Toast> Can’t for a life of me see why this isn’t uploading.
207: [01:28:20] <Ryan-Toast> the**
208: [01:28:34] <antmas> when you think of things like 'cover letter' and 'cv'
209: [01:30:09] <Colin[pi]> hmm when my node tries to send an message to hotmail I get "The following organization rejected your message: mx4.hotmail.com" - what do?
210: [01:32:10] <Ryan-Toast> FileField supports all uploads, right?
211: [01:32:13] <simon_w> Colin[pi], make sure you have a SPF record set up properly for your domain
212: [01:32:32] <antmas> Ryan-Toast: all file types you mean?
213: [01:32:35] <Ryan-Toast> antmas: ye
214: [01:32:49] <antmas> Ryan-Toast: I think there are some limitations, what are you trying to upload?
215: [01:32:50] <Colin[pi]> simon_w: ah thought it might have been that, thanks
216: [01:32:55] <Ryan-Toast> antmas: jpg
217: [01:33:12] <antmas> Ryan-Toast: should be fine
218: [01:33:20] * travis-ci has joined #silverstripe
219: [01:33:20] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2450 (2.4 - c5d4d7d : Ingo Schommer): The build passed.
220: [01:33:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/be59fd923742...c5d4d7daf363
221: [01:33:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24419831
222: [01:33:20] * travis-ci has left #silverstripe
223: [01:33:20] <Ryan-Toast> antmas: should be is the word of the day.
224: [01:34:06] <antmas> :P
225: [01:34:09] <antmas> man
226: [01:34:16] <antmas> motherfucking Goblin Shark
227: [01:34:32] <antmas> just read an article on one
228: [01:34:40] <antmas> never seen one before :O
229: [01:35:29] <Ryan-Toast> this is my code, and I can’t figure it out >< maybe I’ve ebeen looking at it for too long http://pastebin.com/Ta1tJPMz
230: [01:36:23] * travis-ci has joined #silverstripe
231: [01:36:23] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#863 (3.1 - 36bb411 : Ingo Schommer): The build was broken.
232: [01:36:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/fcb6a9140ca7...36bb411277b3
233: [01:36:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/24419592
234: [01:36:23] * travis-ci has left #silverstripe
235: [01:39:00] <antmas> http://gizmodo.com/sony-crams-3-700-blu-rays-worth-of-storage-in-a-single-1571508568
236: [01:39:02] <antmas> :O
237: [01:42:03] <Ryan-Toast> PROFILEIMAGE Y U NO UPLOAD?!
238: [01:42:33] * travis-ci has joined #silverstripe
239: [01:42:33] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2451 (3.0 - fc8da3f : Ingo Schommer): The build passed.
240: [01:42:33] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1766cccace6e...fc8da3fb1daa
241: [01:42:33] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24420039
242: [01:42:33] * travis-ci has left #silverstripe
243: [01:42:38] * UncleCheese_ quit (Quit: UncleCheese_)
244: [01:43:54] * UncleCheese__ has joined #silverstripe
245: [01:47:00] <Ryan-Toast> The file gets sent to the action, but doesn’t get saved ><
246: [01:52:04] * travis-ci has joined #silverstripe
247: [01:52:04] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2452 (3.1 - f2b2ee8 : Ingo Schommer): The build passed.
248: [01:52:04] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1baefab39198...f2b2ee8a68f1
249: [01:52:04] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24420425
250: [01:52:04] * travis-ci has left #silverstripe
251: [01:54:08] * SightUnseen has joined #silverstripe
252: [01:54:32] * SightUnseen has left #silverstripe
253: [01:58:15] * UncleCheese___ quit (Quit: UncleCheese___)
254: [02:08:12] <Pyromanik> Right, well now it's 3am on a Monday night... laters.
255: [02:09:15] <Ryan-Toast> ss23: so was solr the one I was supposed to use?
256: [02:09:25] <ss23> fulltextsearch
257: [02:09:37] <Ryan-Toast> ss23: but dataobjects
258: [02:09:50] <ss23> ?
259: [02:09:51] <ss23> what?
260: [02:10:00] <Ryan-Toast> ss23: can you search daaobjectS?
261: [02:10:02] <ss23> fulltextsearch literally has the "PICK WHICH DATAOBJECTS YOU WANT INDEXED" feature
262: [02:10:29] <ss23> $this->addClass('CuntNuggets');
263: [02:10:29] <ss23> etc
264: [02:11:30] <Ryan-Toast> ss23: is that the vanilla one, or this biz: https://github.com/silverstripe-labs/silverstripe-fulltextsearch
265: [02:11:37] <ss23> That one
266: [02:11:42] <ss23> That module is the solr fulltextsearch module stuff
267: [02:11:43] <Ryan-Toast> swish, cheers.
268: [02:11:55] <Ryan-Toast> fucking willr makes all the stuff.
269: [02:11:57] <ss23> You probably want to include the fulltextsearch-localsolr module too
270: [02:11:59] <ss23> lol
271: [02:12:02] <ss23> Hamish does this one, not willr
272: [02:12:02] <ss23> :P
273: [02:26:33] <simon_w> ""ErrorDescription": "Expecting state 'Element'.. Encountered 'Text' with name '', namespace ''. ""
274: [02:26:48] <simon_w> That's because I'm using the JSON endpoint, not the XML one
275: [02:26:52] <simon_w> Bloody TradeMe
276: [02:27:45] <ss23> lol
277: [02:29:36] <Ryan-Toast> so "TitleSearchFields" (Title) The used table type doesn't support FULLTEXT indexes
278: [02:32:28] <ss23> Don't do fulltextsearch in MySQL, do it with solr!
279: [02:32:34] <ss23> You don't need to change your $db or anything
280: [02:33:03] <Ryan-Toast> I had a look at this, and was quite confuse. https://github.com/silverstripe-labs/silverstripe-fulltextsearch/blob/master/docs/en/index.md
281: [02:33:13] <ss23> yes this is it
282: [02:33:35] <Ryan-Toast> ss23: So I just make an index file, then overload the SearchForm in my template?
283: [02:33:46] <ss23> Ryan-Toast: You need to do the solr version of it
284: [02:33:49] <ss23> https://github.com/silverstripe-labs/silverstripe-fulltextsearch/blob/master/docs/en/Solr.md
285: [02:33:53] <ss23> use both files
286: [02:33:58] <ss23> you want to use fulltextsearch with solr as the backend
287: [02:35:15] <Ryan-Toast> can we make a kickstarter to make a decent default search?
288: [02:35:24] <Ryan-Toast> I’ll chuck in some $$
289: [02:35:29] <ss23> lol
290: [02:35:40] <ss23> Well given how much money has gone into lucene and solr / elastic over the years...
291: [02:35:44] <ss23> Or maybe, a better example, google
292: [02:35:46] <ss23> :D
293: [02:36:20] <Ryan-Toast> ss23: do you have a code example of this working?
294: [02:36:37] <ss23> Lots, but none in public repos I don't think
295: [02:36:45] <ss23> just follow the odcs though and it should work
296: [02:36:46] <ss23> :S
297: [02:36:48] <Ryan-Toast> rabble rabble
298: [02:37:20] <ss23> https://www.cwp.govt.nz/guides/core-technical-documentation/common-web-platform-core/en/cwp-features/solr_search might be useful, but uh
299: [02:37:27] <ss23> Don't do the "Configuring solr for CWP" one
300: [02:37:30] <ss23> Use the "run it locally" one
301: [02:39:22] <Ryan-Toast> ss23: so I have to do a bunch of cmd stuff?
302: [02:39:33] <ss23> In 2.4, can you do like <% Singleton.HomePage.Link %> or something?
303: [02:39:40] <ss23> Ryan-Toast: Uh, solr is run from the command line, yes, it's a java server
304: [02:39:58] <Ryan-Toast> ss23: so when I push to production how doI start it up?
305: [02:40:04] <ss23> Same thing, run it
306: [02:40:11] <ss23> Same way you run it on dev!
307: [02:40:19] <Ryan-Toast> ss23: Shared hosting ><
308: [02:40:27] <ss23> Then give up, you can't get proper search
309: [02:40:29] <ss23> And idk, good luck
310: [02:40:30] <ss23> :O
311: [02:40:32] <ss23> sorry
312: [02:40:34] <Ryan-Toast> haha, fuck.
313: [02:40:55] * travis-ci has joined #silverstripe
314: [02:40:55] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2455 (2.4 - 733e2e8 : Ingo Schommer): The build passed.
315: [02:40:55] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/c5d4d7daf363...733e2e82bedb
316: [02:40:55] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24423099
317: [02:40:55] * travis-ci has left #silverstripe
318: [02:40:57] <ss23> Probably write something custom with LIKE %foo% and facets yourself
319: [02:40:57] * unsignedint has joined #silverstripe
320: [02:57:18] <UncleCheese__> ss23: I always create two functions in my Page.php -- Singleton() and SingleLink()
321: [02:57:34] <UncleCheese__> that get the first record of the specified class, and its link, respectively
322: [02:57:48] <ss23> yep yep, sounds good tbh
323: [02:58:04] <UncleCheese__> i think in 3.x there's a $get() or somethign
324: [03:04:21] * travis-ci has joined #silverstripe
325: [03:04:21] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#865 (3.1 - 1f4d9e4 : Hamish Friedlander): The build was fixed.
326: [03:04:21] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/36bb411277b3...1f4d9e449b17
327: [03:04:21] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/24423569
328: [03:04:21] * travis-ci has left #silverstripe
329: [03:05:39] <simon_w> $Link('Class').First.Link
330: [03:05:44] <simon_w> $List('Class').First.Link
331: [03:06:56] <ss23> handy
332: [03:08:38] <Ryan-Toast> ss23: this should work, right? SELECT * FROM Job WHERE ("Title" LIKE '%Foo%')
333: [03:09:20] <ss23> Probably, yes
334: [03:09:22] <ss23> :)
335: [03:11:58] * cloph quit (Ping timeout: 240 seconds)
336: [03:16:27] <Ryan-Toast> ss23: fuck thsis shit, man. Can be a Tuesday problem.
337: [03:16:30] <ss23> lol
338: [03:17:03] <Ryan-Toast> ss23: Literally the last thing in the project, sigh.
339: [03:17:22] <ss23> I have faith you can do it! <3
340: [03:18:03] <Ryan-Toast> ss23: Search is my least favorite thing.
341: [03:19:12] * cloph_away has joined #silverstripe
342: [03:20:20] <antmas> Ryan-Toast: dude
343: [03:20:28] <antmas> search is everyone's least favourite thing
344: [03:21:42] <Colin[pi]> antmas: even more than subsites? *glances towards spronk0*
345: [03:24:03] <Turnerj> Hey guys, I want to have a dataextension method be able to fired when the data object is constructed. Something like "onAfterConstruct" which would be at the end of the DataObject constructor.
346: [03:24:45] <Turnerj> Does anyone see any issues with this? Like, if I were to commit a change to DataObject.php to do this, would it even be accepted?
347: [03:26:08] <Turnerj> FYI: My usecase for this is that I want to have a dataextension be able to manipulate the data between the DB and the code. I'm trying to have a generic solution to encrypt and decrypt DB data without needing to modify any modules
348: [03:26:55] <Turnerj> The idea being, you just modify some YML files to specify which DB objects the extension is for and what fields you want encrypted
349: [03:38:53] <simon_w> Stupid data caps :( http://www.speedtest.net/my-result/i/840280922
350: [03:39:05] <simon_w> Turnerj, why not just use a DBField type?
351: [03:40:36] <Turnerj> If I want the Member object first name and email encrypted? Can I do that without modify the core?
352: [03:40:51] <Turnerj> Or any modules?
353: [03:41:43] <simon_w> You can change the field type
354: [03:44:44] * babak has joined #silverstripe
355: [04:04:14] * simon_w blames ss23
356: [04:06:00] <ss23> You can make any program functional by changing each function to take and return an enormous object representing the state of the world.
357: [04:47:24] <ss23> What's the easiest way to be like "Yo, display a nice "We're done!"" mesage after form submission?
358: [04:47:58] <simon_w> return array('Form' => "We're done!"); ?
359: [04:48:47] <ss23> A+
360: [04:48:59] * ss23 awards simon_w 1000000 points and the chance at free burgerfuel when he's in NZ!
361: [04:49:33] <Colin[pi]> simon_w ss23: no more $form->sessionMessage() stuff?
362: [04:49:50] <simon_w> Colin[pi], that only shows up if you display the form again
363: [04:49:59] <simon_w> This way, $Form displays the value, not the form
364: [04:50:15] <Colin[pi]> aye if you redirect back, ah yep I get you now
365: [04:52:23] <simon_w> Colin[pi], can you run me an ethernet cable from your internets?
366: [04:52:38] <Colin[pi]> simon_w: yeah but my internet is really, really shit
367: [04:52:43] <simon_w> Colin[pi], http://www.speedtest.net/my-result/i/840280922
368: [04:52:49] <simon_w> This shit? :p
369: [04:52:52] <Colin[pi]> LOL
370: [04:52:58] <Colin[pi]> um no a little better
371: [04:53:12] <Colin[pi]> yay transact
372: [04:53:25] <simon_w> You should see if you can get VDSL too!
373: [04:53:40] <simon_w> I'm going to get the bill payers here to check when they up the cap
374: [04:54:36] <simon_w> Colin[pi], http://www.transact.com.au/internet/transact/VDSL2
375: [04:55:00] <Colin[pi]> ohh capped \o/
376: [04:55:25] <simon_w> Yeah
377: [04:55:42] <Colin[pi]> "sir, here are the keys to your new Ferrari... oh but there's just one thing, you're only allowed to drive it around the block once a month."
378: [04:55:43] <simon_w> You TalkWeb Zoom or Supersonic?
379: [04:56:05] <Colin[pi]> http://www.speedtest.net/my-result/3481133896
380: [04:56:36] <simon_w> Um, that may not load :p
381: [04:56:41] <simon_w> 2 or 24 down?
382: [04:57:42] <Colin[pi]> currently sitting at 3.64 down
383: [04:57:47] <Colin[pi]> 0.4 up
384: [04:57:48] <Colin[pi]> lol
385: [04:58:11] <Colin[pi]> when I moved here I thought awesome, close to town centre, close to the exchange, sweet!
386: [04:58:16] <Colin[pi]> the exchange is in Deakin
387: [04:58:18] <Colin[pi]> >_<
388: [04:59:43] <simon_w> So even switching to VDSL won't get you much :(
389: [04:59:55] <simon_w> Especially if you're only getting 3.64 on non-capped ADSL2
390: [05:00:01] <Colin[pi]> yep
391: [05:00:06] <Colin[pi]> I've basically just given up
392: [05:00:12] <simon_w> Move :p
393: [05:00:19] <Colin[pi]> like well fuck it, I'm never going to have good internet
394: [05:00:24] <simon_w> There's an exchange in Belconnon too
395: [05:00:26] <Colin[pi]> simon_w: where, to korea?
396: [05:00:35] <simon_w> Or try to find Telstra's cable coverage
397: [05:00:49] <Colin[pi]> I like that TPG is uncapped, but dat speed
398: [05:00:57] <Colin[pi]> and I've had packet loss like a mofo over the last week
399: [05:08:40] <Colin[pi]> simon_w: what sort of connection did you have in NZ?
400: [05:09:03] <simon_w> Colin[pi], cable. The slow part was my 100T router
401: [05:09:30] <Colin[pi]> so what were your typical speeds?
402: [05:09:56] <simon_w> Speed-test? 50/15
403: [05:10:12] <Colin[pi]> so a bit better then? ;P
404: [05:10:20] <simon_w> Bypassing the router got me to ~100/15 (only cat 5)
405: [05:10:30] <simon_w> Advertised was 130/15
406: [05:10:58] <Colin[pi]> mm, not too bad
407: [05:12:23] <Colin[pi]> things were looking up with the Labor NBN here, until royally fucked by the LNP
408: [05:13:11] <simon_w> Yeah, the Labor one would've finally resulted in Australia having faster internet than NZ :p
409: [05:13:28] <simon_w> Now you just get ADSL2!
410: [05:13:34] <Colin[pi]> s/NZ/most of developed world
411: [05:14:07] <simon_w> Nah, gigabit speeds are fairly common in development nations
412: [05:14:25] <Colin[pi]> yeah it's such a joke here
413: [05:14:26] <simon_w> Or are well on the way to being common
414: [05:14:42] <Colin[pi]> the worst part is that the comms minister is not a dumb guy, he'd know very well that their NBN is shit compared to Labor
415: [05:14:47] <simon_w> 24 mbit is all you'll need! (If you live within a 2km radius of the exchange)
416: [05:15:14] <Colin[pi]> oh oh, but the Lib NBN will be finished by 2016 /s
417: [05:15:30] * nickmolhoek quit (Quit: nickmolhoek)
418: [05:15:42] <simon_w> That's because most of the exchanges will already be fibre backed
419: [05:16:04] <simon_w> At least it'll make it a little easier to switch to full FTTP once they're kicked out
420: [05:16:08] <Colin[pi]> yeah but there's no way they'll hit that deadline
421: [05:16:45] <Colin[pi]> it's all so depressing >_<
422: [05:26:22] * SightUnseen has joined #silverstripe
423: [05:26:45] * SightUnseen has left #silverstripe
424: [05:28:39] * Ryan-Toast quit (Quit: Ryan-Toast)
425: [05:28:45] * travis-ci has joined #silverstripe
426: [05:28:46] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#868 (pulls/2.4-travis - 56ea23a : Damian Mooyman): The build passed.
427: [05:28:46] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/commit/56ea23a3b680
428: [05:28:46] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/24428513
429: [05:28:46] * travis-ci has left #silverstripe
430: [05:40:18] <Colin[pi]> simon_w: you want me to bring anything back for you from NZ when I go? :D
431: [05:40:29] <Colin[pi]> I can't bring your internet, soz
432: [05:41:08] <simon_w> Colin[pi], a really long ethernet cable that's still plugged in at one end? :p
433: [05:41:15] <Colin[pi]> lol
434: [05:41:30] <simon_w> We're going back over at the end of the month :p
435: [05:41:39] <Colin[pi]> ah k
436: [05:42:42] <ss23> Just get a high power antenae!
437: [05:43:05] <Colin[pi]> simon_w: hook into Black Mountain somehow
438: [05:45:10] <simon_w> I'm sure if I asked Telstra nicely enough, they'd even hook it up for me!
439: [05:48:20] * simon_w|air has joined #silverstripe
440: [05:50:58] * anselmdk has joined #silverstripe
441: [05:52:23] * simon_w|air quit (Client Quit)
442: [05:52:44] * simon_w|air has joined #silverstripe
443: [05:52:50] <simon_w|air> Whew, almost thought I had to clone SS from github
444: [05:55:10] <simon_w|air> Though just cloning installer is slow enough
445: [05:55:30] <simon_w|air> Receiving objects: 42% (1146/2728), 380.00 KiB | 5.00 KiB/s
446: [05:55:30] <simon_w|air> YAY DIALUP
447: [05:55:34] <ss23> lol
448: [05:55:35] <ss23> QQ
449: [05:55:59] <simon_w|air> This is as fast as my internet can go until Saturday!
450: [05:56:09] * simon_w|air hates plans that do this
451: [05:56:15] * UncleCheese__ quit (Quit: UncleCheese__)
452: [06:02:02] <Colin[pi]> dat watermarking: https://pbs.twimg.com/media/Bm2UOoNCIAAsqJl.png
453: [06:02:21] <ss23> that's a lot of marking!
454: [06:02:34] <Colin[pi]> so stupid, who the hell cares lol
455: [06:19:24] * Shrike_Finland has joined #silverstripe
456: [06:19:25] * Shrike_Finland quit (Client Quit)
457: [06:22:44] <simon_w|air> ""Failed to download silverstripe/framework from source: The process "git clone --no-checkout 'git://github.com/silverstripe/silverstripe-framework.git' 'framework/' && cd 'framework/' && git remote add composer 'git://github.com/silverstripe/silverstripe-framework.git' && git fetch composer" exceeded the timeout of 600 seconds"
458: [06:22:52] <ss23> lol
459: [06:22:58] <ss23> the worst part is no resume support
460: [06:23:21] <simon_w|air> No, the worst part is it doesn't understand I already have that cloned
461: [06:23:31] <ss23> write a patch
462: [06:23:34] <ss23> not like you can do much else
463: [06:23:35] <ss23> :P
464: [06:23:41] <simon_w|air> It doesn't care, it just deletes the existing framework folder!
465: [06:23:52] <simon_w|air> Like I have the internet to download symfony :p
466: [06:29:13] * simon_w|air ups the timeout to 6000 seconds
467: [06:33:45] <Colin[pi]> only 6000?
468: [06:34:09] <ss23> Colin[pi]: He's not used to AU internet yet
469: [06:34:10] <ss23> ;)
470: [06:34:22] <Colin[pi]> he's still optimistic
471: [06:34:36] <Colin[pi]> he hasn't reached the same point of desperation and hopelessness as me
472: [06:35:07] <ss23> XD
473: [06:38:57] * Selay has joined #silverstripe
474: [06:39:29] <Selay> Hi guys, how do you has_many in a widget? it doesnt seem workins as shows no tabs
475: [06:39:57] <Selay> is it possible to use has_many in widget at all?
476: [06:42:15] <Colin[pi]> Selay: should be able to since Widget is a DataObject, but as for the interface... mm, might get a bit weird
477: [06:43:20] <Selay> it just shows a dropdown called Parent instead of a tab. but only one thing can be selected
478: [06:43:34] <Selay> it is strange
479: [06:47:09] <Colin[pi]> Selay: are you defining your own getCMSFields() method?
480: [06:47:56] <Selay> no
481: [06:48:22] <Selay> Now I am trying to define my own to see if I can manually add it via gridfield
482: [06:48:44] <Selay> but doesnt seem it supports has_many as it can't really have a tab
483: [06:48:51] <Colin[pi]> Selay: mm sounds like you'll need to do that, the scaffolding can sometimes get screwed up on relations
484: [06:49:29] <Colin[pi]> Selay: according to the model, it can support it, but I'm not sure how the CMS handles it with a widget
485: [06:54:36] <Selay> I tried to add it in get cms field functions via grid field config but it throws error
486: [06:54:37] <Selay> Fatal error: Call to a member function FormAction() on a non-object in C:\xampp\htdocs\tecc\framework\forms\FormField.php on line 161
487: [06:54:48] <Selay> seems it cant have a form
488: [06:55:07] <Selay> or something
489: [06:55:17] <Selay> do you know when this error is thrown?
490: [06:58:57] <Colin[pi]> Selay: that's coming from the Link() method on FormField, will be thrown when the $form attribute of the field is not defined
491: [07:00:49] <simon_w|air> Yay, over half way there with framework!
492: [07:01:04] <Colin[pi]> simon_w|air: YAY!
493: [07:01:15] <Colin[pi]> simon_w|air: why not start a torrent or two??
494: [07:01:42] <Selay> I see. seems most form fields and tab doesnt work with widget. https://github.com/silverstripe/silverstripe-widgets/issues/20
495: [07:02:43] <Colin[pi]> Selay: yeah unfortunately the widgets module really needs a lot of rethinking
496: [07:22:05] <simon_w|air> Yay! Framework got cloned!
497: [07:22:09] <ss23> YAY!
498: [07:22:17] <Colin[pi]> WOOP WOOP
499: [07:22:22] <Colin[pi]> PARTY TIME
500: [07:22:45] <simon_w|air> Now I get to wait for cms...
501: [07:22:49] <ss23> simon_w|air: Want to merge a PR for me?
502: [07:22:49] <ss23> <3
503: [07:23:08] <simon_w|air> ss23, wanna make my internet not suck?
504: [07:23:26] <ss23> Hmm
505: [07:23:34] <ss23> simon_w|air: One of these things is within the others reach...
506: [07:23:38] <ss23> And last I checked, I'm not an ISP
507: [07:23:39] <ss23> :P
508: [07:25:47] * Shrike_Finland has joined #silverstripe
509: [07:26:21] <ss23> simon_w|air: https://github.com/silverstripe/silverstripe-framework/pull/3102 Any feedback?
510: [07:28:51] <spronk0> fix that damn virtualpage bug ss23
511: [07:29:01] <ss23> NO
512: [07:29:02] <ss23> :O
513: [07:29:05] <spronk0> :(
514: [07:29:10] <spronk0> but i will love you long time?
515: [07:29:51] <ss23> XD
516: [07:29:52] <ss23> <3
517: [07:29:54] <ss23> I would if I could, spronk0 <3
518: [07:30:00] <spronk0> waht!?
519: [07:30:06] <spronk0> what you mean you can't
520: [07:30:07] <Colin[pi]> ss23: would fix it or love him long time?
521: [07:30:13] <ss23> Por que no los dos?
522: [07:30:16] <Colin[pi]> LOL
523: [07:30:40] <ss23> spronk0: TOO LAZY AND BUSY AND ALL THAT
524: [07:30:52] <spronk0> but
525: [07:30:56] <spronk0> super important part! :(
526: [07:31:12] <ss23> Make ingo do it!
527: [07:31:30] <spronk0> i never talk to ingo
528: [07:31:48] <spronk0> also, i can hassle the shit out of you without fear that you'll take it the wrong way :P
529: [07:31:57] <ss23> XD
530: [07:32:04] * spronk0 has no idea whether this works with ingo
531: [07:32:06] <ss23> I MENA
532: [07:32:11] <ss23> I AM TAKING IT HTE WRONG WAY
533: [07:32:13] <ss23> OH GOD YOU'VE MADE ME SO MAD
534: [07:32:14] <ss23> :O
535: [07:33:25] <ss23> simon_w|air: ;) ;) https://github.com/silverstripe/silverstripe-framework/pull/3102
536: [07:33:29] <ss23> green means merge?
537: [07:33:38] <simon_w|air> ss23, 3.0? Really?
538: [07:33:49] <ss23> :(
539: [07:33:54] <ss23> The project that I'm hitting the bug is 3.0
540: [07:34:01] <ss23> 3.0 is still supported for bug fixes!!!!!!!!!
541: [07:34:08] <ss23> simon_w|air: It should be merged up too, but 3.0 is what I care about it for <3
542: [07:39:06] <ss23> simon_w|air: You didn't click merge :(
543: [07:39:39] <ss23> :(
544: [07:39:44] <ss23> we need core devs online 24/7
545: [07:45:00] * stnvh has joined #silverstripe
546: [07:48:01] <simon_w|air> ss23, also, no MINOR
547: [07:48:19] <ss23> YAY
548: [07:48:20] <ss23> :D
549: [07:48:21] <ss23> :O
550: [07:48:23] <ss23> No MINOR?
551: [07:48:26] <ss23> Okay
552: [07:48:34] <simon_w|air> Yeah, no tag is the new minor
553: [07:48:43] <ss23> oh I see, makes sense
554: [07:48:48] <ss23> Will kepe this in midn, thank you very much, simon_w|air
555: [07:49:31] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
556: [07:57:04] * travis-ci has joined #silverstripe
557: [07:57:04] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2460 (3.0 - ddae582 : Simon Welsh): The build passed.
558: [07:57:04] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/fc8da3fb1daa...ddae5825b31a
559: [07:57:04] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24433702
560: [07:57:04] * travis-ci has left #silverstripe
561: [08:17:19] * wmk has joined #silverstripe
562: [08:19:13] * simon_w|air quit (Ping timeout: 252 seconds)
563: [08:19:20] * simon_w quit (Ping timeout: 255 seconds)
564: [08:26:17] * Motoservo_ quit (Quit: Shhh. I'm trying to get some sleep here.)
565: [08:36:29] * Liquide has joined #silverstripe
566: [08:45:20] <wmk> hmm, bug or feature?
567: [08:45:56] <wmk> when i have a relation, e.g. RootFolderID in both, Page and ImageGalleryPage ss3.1 chokes on the query
568: [08:46:04] * Pyromanik has joined #silverstripe
569: [08:46:20] <Pyromanik> saaap bishes
570: [08:46:27] <wmk> hi Pyromanik
571: [08:46:33] <Pyromanik> hihi
572: [08:46:49] * Shrike_Finland quit (Quit: Leaving.)
573: [08:47:05] <wmk> Pyromanik, http://sspaste.com/paste/show/53674cd10aa21 bug or feature?
574: [08:49:45] * Shrike_Finland has joined #silverstripe
575: [08:49:46] * spronk2 has joined #silverstripe
576: [09:04:02] * cloph_away is now known as cloph
577: [09:05:48] * Selay quit (Ping timeout: 240 seconds)
578: [09:12:23] * stnvh quit (Ping timeout: 258 seconds)
579: [09:12:54] * stnvh has joined #silverstripe
580: [09:18:24] <Pyromanik> wmk, isn't a bug just an undesired feature? :P
581: [09:18:52] <wmk> Pyromanik, very philosophical
582: [09:19:09] <wmk> or maybe just a hint to fork the gallery module...?
583: [09:20:24] <Pyromanik> gallery module?
584: [09:20:53] <wmk> well, the bug is cause i have a has_one RootFolder in my Page (via extension) and the gallery module in ImageGalleryPage
585: [09:21:00] <wmk> see sspaste above
586: [09:21:41] <Pyromanik> yeah, it's trying to select that RootFolder from ImageGalleryPage
587: [09:21:54] <Pyromanik> Not Page (which is probably why it's not joined)
588: [09:22:08] <wmk> but mentioned in the query
589: [09:22:20] <wmk> which sucks
590: [09:23:01] <Pyromanik> is the query autogenerated?
591: [09:23:14] <wmk> seems so. happens in cms when trying to edit the page
592: [09:23:17] <Pyromanik> or is there some augmentation through extensions and things before it fires off?
593: [09:24:34] <Pyromanik> If it's generated like that, then that's cool (the has_one working from subclassy overrides too), but yes bug that it's not joined (since it makes allowance for it to be such)
594: [09:25:22] <Pyromanik> Generally though people don't tend to redefine relations or give them the same name
595: [09:25:32] <Pyromanik> that's probably mostly the issue.
596: [09:25:53] <wmk> well, the old unclecheese image_gallery gave me the idea, in 2.4 it was no problem
597: [09:25:53] <Pyromanik> but it would be cool if it didn't error so badly. So I'd probably make an issue against it
598: [09:26:29] <Pyromanik> wmk, in the mean time you could augment the query before it fires with ->leftjoin(...
599: [09:27:13] <Pyromanik> that should make it work.
600: [09:27:32] <wmk> augmenting queries is new to me. any hints?
601: [09:29:41] * simon_w has joined #silverstripe
602: [09:40:41] * ARNHOE has joined #silverstripe
603: [09:55:31] * UncleCheese_ has joined #silverstripe
604: [09:56:24] * spronk2 quit (Quit: spronk2)
605: [10:08:38] * ARNHOE_ has joined #silverstripe
606: [10:09:48] * antmas quit (Ping timeout: 240 seconds)
607: [10:10:43] * UncleCheese_ quit (Quit: UncleCheese_)
608: [10:11:57] * ARNHOE quit (Ping timeout: 240 seconds)
609: [10:21:41] * spronk2 has joined #silverstripe
610: [10:33:09] * SightUnseen has joined #silverstripe
611: [10:33:12] * SightUnseen has left #silverstripe
612: [10:35:04] * Shrike_Finland quit (Quit: Leaving.)
613: [10:35:09] <Pyromanik> wmk, ahh, there's a hook for it somewhere i think, but I don't particularly remember the exact name of it.
614: [10:35:25] <Pyromanik> sorry
615: [10:35:47] <Pyromanik> I've not really used it either. Perhaps FulltextSearchable might give you some hints though, I think that uses it.
616: [10:42:56] * Shrike_Finland has joined #silverstripe
617: [10:52:45] * travis-ci has joined #silverstripe
618: [10:52:45] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#871 (2.4 - 00a7916 : Ingo Schommer): The build passed.
619: [10:52:45] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/5fb8b8eb7df4...00a791666df9
620: [10:52:45] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/24442837
621: [10:52:45] * travis-ci has left #silverstripe
622: [10:56:03] * Error404NotFound has joined #silverstripe
623: [11:02:51] * simon_w|air has joined #silverstripe
624: [11:03:50] <simon_w|air> Woo, another module!
625: [11:04:00] <simon_w|air> Though this one requires a PR to be merged
626: [11:07:39] <simon_w|air> Also, damn gitlab is nice
627: [11:10:43] <ss23> It is
628: [11:10:43] <ss23> :D
629: [11:10:47] <ss23> We use it
630: [11:11:28] <simon_w|air> "GitLab 6.5.1"
631: [11:11:30] <simon_w|air> Ewww :p
632: [11:11:49] <simon_w|air> (as an aside, turns out I still have CWP access!)
633: [11:12:25] <simon_w|air> Aww yeah, the release hash for my gitlab version's entirely numeric
634: [11:12:31] <simon_w|air> "GitLab 6.8.1 3197990"
635: [11:12:55] * Colin[pi] quit (Ping timeout: 250 seconds)
636: [11:12:59] * travis-ci has joined #silverstripe
637: [11:12:59] <travis-ci> [travis-ci] simonwelsh/silverstripe-framework#37 (3.1 - f2b2ee8 : Ingo Schommer): The build passed.
638: [11:12:59] <travis-ci> [travis-ci] Change view : https://github.com/simonwelsh/silverstripe-framework/compare/1e10108dac7e...f2b2ee8a68f1
639: [11:12:59] <travis-ci> [travis-ci] Build details : http://travis-ci.org/simonwelsh/silverstripe-framework/builds/24443425
640: [11:12:59] * travis-ci has left #silverstripe
641: [11:13:08] <simon_w|air> OH SHUT UP TRAVIS
642: [11:13:12] <ss23> lol
643: [11:14:17] * Colin[pi] has joined #silverstripe
644: [11:15:15] <simon_w|air> Haha, I turned you off! How do you like that now Travis?
645: [11:15:25] <ss23> Poor Travis
646: [11:18:11] * Bollig|DesignCty has joined #silverstripe
647: [11:19:32] <simon_w|air> Sigh, SilverStripe really wants to make it hard for me to make this module I've built the two underlying loaders for
648: [11:19:33] <simon_w|air> https://git.simon.geek.nz/simon_w/xhp-loader/issues/1
649: [11:21:32] <ss23> oh fancy
650: [11:22:06] * travis-ci has joined #silverstripe
651: [11:22:06] <travis-ci> [travis-ci] simonwelsh/silverstripe-framework#38 (configstatic_nextstring - d5f483e : Simon Welsh): The build passed.
652: [11:22:06] <travis-ci> [travis-ci] Change view : https://github.com/simonwelsh/silverstripe-framework/commit/d5f483e5f22c
653: [11:22:06] <travis-ci> [travis-ci] Build details : http://travis-ci.org/simonwelsh/silverstripe-framework/builds/24443458
654: [11:22:06] * travis-ci has left #silverstripe
655: [11:24:21] <simon_w|air> And you can signup and stuff too
656: [11:24:22] * Bollig|DesignCty quit (Read error: Connection reset by peer)
657: [11:38:04] * Bollig|DesignCty has joined #silverstripe
658: [11:38:37] * babak quit (Quit: Connection closed for inactivity)
659: [11:42:31] * Shrike_Finland quit (Quit: Leaving.)
660: [11:44:33] * Shrike_Finland has joined #silverstripe
661: [11:54:45] * Colin[pi]_Mac has joined #silverstripe
662: [12:04:14] * Colin[pi]_Mac quit (Quit: Textual IRC Client: www.textualapp.com)
663: [12:15:43] * Bollig|DesignCty quit (Ping timeout: 252 seconds)
664: [12:18:49] * simon_w|air quit (Quit: This computer has gone to sleep)
665: [12:20:22] <spronk2> a few good goarounds at CHC tonight
666: [12:28:10] * UndefinedOffset has joined #silverstripe
667: [12:30:57] * Shrike_Finland quit (Quit: Leaving.)
668: [12:54:21] * Shrike_Finland has joined #silverstripe
669: [12:55:32] * Bollig|DesignCty has joined #silverstripe
670: [12:58:52] <Pyromanik> what is an xhp?
671: [12:58:56] <Pyromanik> simon_w?
672: [12:59:04] <Pyromanik> ss23?
673: [12:59:15] <ss23> um
674: [12:59:18] <ss23> It's the Facebook thing
675: [12:59:24] <ss23> It's a templating language in PHP that I actualyl like
676: [12:59:27] <ss23> That should tell you it's good
677: [12:59:40] <Pyromanik> oh so it's just plain hack?
678: [12:59:49] <ss23> No, Hack is something very different
679: [12:59:55] <ss23> XHP has been around for a way longer time
680: [13:00:08] <Pyromanik> no I was ...
681: [13:00:09] <Pyromanik> sigh
682: [13:00:16] <Pyromanik> so it's just plain php then ss23?
683: [13:00:21] <wmk> Pyromanik, searching the frameworks issues i guess others also stumbled over this behaviour...
684: [13:00:56] <ss23> Pyromanik: No, it's XHP ;_;
685: [13:01:01] <ss23> It's like an extension for PHP itself
686: [13:01:10] <ss23> https://www.facebook.com/notes/facebook-engineering/xhp-a-new-way-to-write-php/294003943919
687: [13:01:42] <Pyromanik> ss23, You're still missing my jab man.
688: [13:01:48] <Pyromanik> but whatevers
689: [13:01:50] <ss23> OKAY
690: [13:01:53] <ss23> BECAUSE I DON'T GET IT
691: [13:01:53] <ss23> o.o
692: [13:02:07] <guzzlefry> 0.o
693: [13:02:17] <guzzlefry> yall cray cray
694: [13:02:27] <ss23> :(
695: [13:02:29] <ss23> I blame Pyromanik
696: [13:02:31] * ss23 sobs
697: [13:02:35] <ss23> I'm so tired but I wanna keep coding
698: [13:02:35] <ss23> ;_;
699: [13:02:41] <guzzlefry> :(
700: [13:02:48] <guzzlefry> it's only 9am
701: [13:06:23] <Pyromanik> ss23, because you're the guy who was all fuck templates just php
702: [13:06:52] <ss23> Ah yeah
703: [13:06:58] <ss23> XHP is how templates in PHP should be, it's <3
704: [13:07:18] <Pyromanik> http://logs.simon.geek.nz/index.php?date=2012-04-03#log_658884
705: [13:09:01] <ss23> Pyromanik: Yeah, that's what makes XHP good -- It is implmented in PHP, it is like PHP
706: [13:09:12] <ss23> Pyromanik: Believe me, I know my own arguments for and against various templating languages/systems :P
707: [13:09:15] <ss23> p.s.
708: [13:09:22] <ss23> If you get bored today, Pyromanik (or anyone, hint hint)
709: [13:09:39] <ss23> http://ss23.geek.nz/playpokemon/ (may take a while to load after clicking play)
710: [13:09:46] <Pyromanik> no
711: [13:09:56] <ss23> :D
712: [13:10:01] <ss23> YES
713: [13:10:06] <ss23> POKEMON R00LES~
714: [13:10:15] <Pyromanik> explain to me waht is
715: [13:10:22] <ss23> a site you play pokemon on
716: [13:10:29] <ss23> you click it, you click "play", then it lets you play pokemon
717: [13:11:06] <ss23> Pokemon Yellow I think
718: [13:11:10] <ss23> On... either GB or GBC
719: [13:11:14] <ss23> I can't remember what each thingy is
720: [13:11:14] <ss23> :O
721: [13:11:15] <Pyromanik> simon_w, have you further decoupled the view layer?
722: [13:11:23] <ss23> anyway, zzz and all that
723: [13:11:33] <Pyromanik> yellow was gbc and was crap
724: [13:12:31] <Pyromanik> also it doesn't work. How many sites of jaba schutps do I need to let poo in my driveway?
725: [13:15:41] <Pyromanik> cloudflare
726: [13:16:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
727: [13:16:48] * babak has joined #silverstripe
728: [13:44:35] * spronk2 quit (Quit: spronk2)
729: [13:50:28] * Shrike_Finland quit (Quit: Leaving.)
730: [14:18:24] * catcher has joined #silverstripe
731: [14:24:17] * Colin[pi] quit (Ping timeout: 264 seconds)
732: [14:32:17] * Colin[pi] has joined #silverstripe
733: [14:44:45] * robert_ has joined #silverstripe
734: [14:44:46] * robert_ quit (Changing host)
735: [14:44:46] * robert_ has joined #silverstripe
736: [15:05:16] * muskie9 has joined #silverstripe
737: [15:15:47] * scpi has joined #silverstripe
738: [15:20:47] * jcwacky has joined #silverstripe
739: [15:21:37] <jcwacky> I don’t seem to be able to access non-default Page fields from $original. Is there a special way to access them?
740: [15:24:22] * ARNHOE_ quit ()
741: [15:34:17] * Motoservo has joined #silverstripe
742: [15:34:56] <catcher> jcwacky, what's $original?
743: [15:35:49] <jcwacky> How you access the previous version of a Page after saving, is it not?
744: [15:35:56] <catcher> ah, the protected property on DO?
745: [15:36:10] <jcwacky> yep
746: [15:36:16] * jenniferaslan has joined #silverstripe
747: [15:36:57] <jcwacky> I’m looking to check if a custom field on Page has changed. Checking any of the default fields like Title, URLSegment etc works fine.
748: [15:37:11] <catcher> jcwacky, is it available on $record?
749: [15:38:18] <jcwacky> Nope, doesn’t look like it.
750: [15:38:38] <jcwacky> I’m currently inside a pagesAffectedByChanges function in my Page.php.
751: [15:38:47] <jcwacky> USing Static Publisher you see.
752: [15:45:47] * wmk quit (Quit: nice to meet you ;))
753: [15:50:09] <Pyromanik> $this->changed()
754: [15:50:29] <Pyromanik> but only before&after saving
755: [15:50:46] <Pyromanik> new instances will have to fetch a version manually
756: [15:53:38] <Pyromanik> also see $this->isChanged('FieldName')
757: [16:12:53] * DesignerX quit (Ping timeout: 264 seconds)
758: [16:38:42] * Shrike_Finland has joined #silverstripe
759: [16:50:04] * anselmdk quit (Quit: anselmdk)
760: [16:51:47] * anselmdk has joined #silverstripe
761: [16:54:04] * anselmdk quit (Client Quit)
762: [16:55:51] * anselmdk has joined #silverstripe
763: [16:57:57] * anselmdk quit (Client Quit)
764: [16:59:17] * Error404NotFound quit (Read error: Connection reset by peer)
765: [17:07:23] * stnvh quit (Ping timeout: 250 seconds)
766: [17:07:54] * stnvh has joined #silverstripe
767: [17:08:51] * Shrike_Finland quit (Quit: Leaving.)
768: [17:22:27] * Shrike_Finland has joined #silverstripe
769: [17:23:22] * UndefinedOffset1 has joined #silverstripe
770: [17:23:23] * UndefinedOffset quit (Disconnected by services)
771: [17:23:58] * UndefinedOffset1 is now known as UndefinedOffset
772: [17:28:12] * gelignite has joined #silverstripe
773: [17:58:22] <SMaction> I have a similar problem to my last one with a slight variation. I have site that works fine on linux and some WAMP machines. I used SVN to get a new copy of my site on a new windows machine. Other silverstripe sites work. But this one does not because once a gain the path to many files has index.php in it instead of just the directories. The problem is only in WAMP. Any ideas?
774: [17:58:33] <SMaction> *once again
775: [18:06:05] * joelpittet has joined #silverstripe
776: [18:07:03] * srixon has joined #silverstripe
777: [18:07:32] <srixon> Hi to all, someone has experience with the MemberProfile module from AJ Short?
778: [18:08:14] <catcher> SMaction, make sure mod_rewrite is installed, check your .htaccess, remove your silverstripe-cache dir & re-create
779: [18:08:36] <catcher> srixon, possibly, what's the Q?
780: [18:09:31] <srixon> catcher => i need to generate a list of all members added by the module.
781: [18:10:48] <catcher> srixon, one time, or on demand?
782: [18:11:36] <srixon> catcher => display them (with their credentials) on a page, then using each member's email, generate a mailing list.
783: [18:13:55] <catcher> srixon, is your site set up to assign them to a specific group?
784: [18:15:08] <srixon> catcher => yes. Ive created a group with the SECURITY panel, and in the MemberProfile page, ask for new members to be added to that group. It works, i made a test, and i am into that group.
785: [18:17:14] <catcher> srixon, MemberProfiles just decorates the core Member class, so you can create a display page that selects all members that belong to just that group.
786: [18:19:24] <srixon> catcher => indeed. But how to target that specific group? Ive tried ** $allmembers => DataObject::get('group-name'); ** to no results
787: [18:20:23] <srixon> But when i tried ** $allmembers => DataObject::get('Member'); ** i get for results ALL members, including Admin, Authors, etc. Which i dont want, only the ones from the MemberProfile created group.
788: [18:20:32] * Colin[pi]-2 has joined #silverstripe
789: [18:20:43] <Pyromanik> gidday wilsonstaff
790: [18:20:59] <catcher> srixon, which version of SS?
791: [18:21:04] <Pyromanik> latest
792: [18:22:01] * Colin[pi] quit (Ping timeout: 252 seconds)
793: [18:22:37] <Pyromanik> http://logs.simon.geek.nz/index.php?date=2014-05-05#log_1271130
794: [18:23:02] <Pyromanik> srixon, ^
795: [18:23:15] <catcher> srixon, if it's SS 3.x, something like this: http://sspaste.com/paste/show/5367d3de773a2
796: [18:24:07] <srixon> Pyromanik =. yes!!!! For a weird reason i couldnt connect with wilsonstaff. Good memory!.
797: [18:24:16] <srixon> catcher => yes ss3.1.2
798: [18:24:28] * SightUnseen has joined #silverstripe
799: [18:24:31] * SightUnseen has left #silverstripe
800: [18:26:36] <srixon> catcher => 'Title' is the name of the column i am after?
801: [18:26:56] <catcher> srixon, 'Title' must be 'Title, 'group-name' is the name of your custom group
802: [18:27:51] <catcher> srixon, it'd be helpful to read up on the ORM & filtering: http://doc.silverstripe.com/framework/en/topics/datamodel
803: [18:28:35] <srixon> catcher => i extended MemberProfile with extra fields, i.e fonction ville population. Id need to include them. I think i have to call them with the template.
804: [18:29:40] <catcher> srixon, yes, you'll need a custom template to display custom fields.
805: [18:29:58] <srixon> catcher => yes ive read. Problem is that i just cant access that damn group!!!! myphpadmin shows the newly created group as empty, while the CMS show the new group correctly, with correct members.
806: [18:30:34] <catcher> srixon, you must be looking at the wrong value, table, or DB.
807: [18:30:49] <srixon> cathcher => yesterday, Pyronamik kindly offered solutions. With all respect non one worked. But i suspect the Module more than the code he gave me.
808: [18:30:59] <SMaction> catcher any other ideas? those did not solve it. It is really bugging me because it is a problem only on one machine
809: [18:31:26] * scpi has left #silverstripe
810: [18:31:37] <catcher> SMaction, I stay far from WAMP, but my next step would be deleting index.php.
811: [18:31:41] * scpi has joined #silverstripe
812: [18:31:43] <SMaction> ty
813: [18:31:47] <catcher> np
814: [18:32:16] <srixon> cathe=>as i said this ** $allmembers => DataObject::get('Member'); ** works albeit it shows all members, while this ** $allmembers => DataObject::get('group-name'); ** throws server error.
815: [18:32:18] <catcher> srixon, this issue isn't related to the module, it's just connecting the ORM to the DB
816: [18:32:43] <catcher> srixon, you shouldn't be using either of those, that's 2.4 syntax
817: [18:32:58] <catcher> and wouldn't work in 2.4 either
818: [18:33:52] <Pyromanik> srixon, a Group many_many members.
819: [18:34:15] <Pyromanik> the group itself won't have any members associated with it in the Group database table.
820: [18:34:21] <srixon> catcher => even tried $allmembers => get.... ORM way. Odly, when i trace the DB, i correctly identify group as ID3 and member as ID5.
821: [18:34:24] <Pyromanik> GroupName_Members will however
822: [18:34:28] <Pyromanik> (the table)
823: [18:34:49] <Pyromanik> the ORM sorts it all out for you.
824: [18:35:13] <srixon> Pyromamik => this is EXACTLY what happens. The group i created within the CMS Security isnt related at all.
825: [18:35:25] <catcher> srixon, try the comment below, let us know what the output is: http://sspaste.com/paste/show/5367d3de773a2
826: [18:35:25] <Pyromanik> huh?
827: [18:35:29] <catcher> srixon, or, paste your code
828: [18:38:05] <SMaction> catcher: That was the solution last time on my fresh install but it did not work this time. Any other thoughts or resources you can point me to
829: [18:39:02] <catcher> SMaction, what happens when you remove index.php?
830: [18:39:49] * Shrike_Finland quit (Quit: Leaving.)
831: [18:40:25] <srixon> catcher => you suggets debug(). This is another weird thing.... I am in dev mode (config.yml => Environment : dev) and i see no traceback!!!! hard top diagnose!
832: [18:40:41] * Shrike_Finland has joined #silverstripe
833: [18:40:49] <catcher> srixon, make sure php is set to display errors
834: [18:41:09] <catcher> srixon, http://www.php.net/manual/en/errorfunc.configuration.php
835: [18:41:53] <SMaction> same thing. I am seeing pages with no css etc. Just the content. I am getting errors like jquery not defined when I inspect in chrome but everything in page.php has been unchanged
836: [18:42:24] <catcher> SMaction, have you rebuild the manifest w/ /dev/build?
837: [18:42:28] <SMaction> yes
838: [18:42:29] <catcher> rebuilt*
839: [18:42:44] <SMaction> and flush=all for good measure
840: [18:42:51] <catcher> SMaction, I thought the issue was with index.php showing up in the URL
841: [18:43:15] <catcher> SMaction, have you maybe not set the theme in the CMS/configs?
842: [18:43:18] <SMaction> that is gone now (thank you btw) but main symptom still remains :(
843: [18:45:23] <SMaction> catcher nevermind. one fil had been changed. all better now
844: [18:45:49] <catcher> SMaction, for posterity, which file and what was the issue?
845: [18:46:12] * gelignite quit (Quit: http://bit.ly/nkczDT)
846: [18:49:06] <SMaction> in troubleshooting Page.php had been modified. When we corrected that it worked. So the last step that helped was to remove index.php. It did not work if we put it back.
847: [18:50:45] <SMaction> catcher btw why does removing index.php work. Intuitively I would think that would break everything
848: [18:50:47] <SMaction> ?
849: [18:51:44] <catcher> SMaction, it's not needed if mod_rewrite is working, I think it's just a rewrite rule issue.
850: [18:52:18] <catcher> framework/main.php is the big one
851: [18:53:21] <SMaction> ty
852: [18:54:52] <srixon> catcher =. would you take a loook at http://sspaste.com/paste/show/5367d3de773a2
853: [18:58:00] * Shrike_Finland quit (Quit: Leaving.)
854: [18:58:07] <catcher> srixon, what do the debug statements say
855: [18:58:08] <catcher> ?
856: [18:58:29] <srixon> As i said the debug shows nothing...... :-(
857: [18:58:33] * bof_ has joined #silverstripe
858: [18:58:53] <srixon> bo=> from Hull???
859: [18:59:11] <catcher> srixon, did you enable display_errors per above?
860: [19:01:50] <srixon> cather => about doing it.
861: [19:03:00] <srixon> bof => still there?
862: [19:03:58] * bof_ has left #silverstripe
863: [19:06:34] <srixon> catcher =. while doing that, could you take a look at http://sspaste.com/paste/show/5367d3de773a2 and see if everything is ok? Theres .php and .ss
864: [19:07:22] <catcher> srixon, need to update your 2nd debug statement to refer to the actual variable
865: [19:07:27] <catcher> fine otherwise
866: [19:08:26] <catcher> Although I see "PageMember.php" in a comment and "PageMember.ss" with different spelling, just watch out for that.
867: [19:09:49] <srixon> catcher =. typo sorry....
868: [19:11:10] * Shrike_Finland has joined #silverstripe
869: [19:15:14] <srixon> catcher => look at that line ** $group = Group::get()->filter('Title', 'membres-acmq')->first(); ** In the DB, the Title of the group is not membres-acmq. The title is "Liste des membres ACMQ" while under colum CODE you will find "membres-acmq"
870: [19:16:16] <catcher> srixon, then switch to Group::get()->filter('Code', 'membres-acmq')
871: [19:18:20] <srixon> catcher => pastebin is revised. http://sspaste.com/paste/show/5367d3de773a2
872: [19:19:03] <catcher> You didn't quote 'Code' as noted
873: [19:21:35] <srixon> Done
874: [19:22:35] <catcher> Make sure you either fix or remove that 2nd debug line..
875: [19:22:58] <srixon> catcher => shouldnt first written First ?
876: [19:23:22] <catcher> nah
877: [19:24:37] <srixon> Revised
878: [19:25:21] <catcher> and?
879: [19:25:24] <catcher> errors?
880: [19:28:37] <srixon> catcher => i am with the client as we speak, so not an easy situation :-) Still on it.
881: [19:35:24] * gelignite has joined #silverstripe
882: [19:41:07] <srixon> catcher => im still there.
883: [19:46:23] * Shrike_Finland quit (Quit: Leaving.)
884: [19:53:47] <srixon> catcher => in mysite/_config.php how to report errors on top of screen?
885: [19:53:57] * antmas has joined #silverstripe
886: [20:00:42] * Ryan-Toast has joined #silverstripe
887: [20:01:32] <catcher> srixon, do you have control of the server?
888: [20:03:12] <catcher> display_errors is a php thing, not an SS thing. You can do it in _config.php if you must though, with ini_set("display_errors", "On")
889: [20:03:33] * micmania1 has joined #silverstripe
890: [20:05:00] <srixon> catcher => read that on a post. Usefull? Better? ** $group = DataList::create('Group')-> ** Is there a difference between that and this ** Group::get()->filter('Code', 'membres-acmq') **
891: [20:05:43] <catcher> srixon, yes, the 2nd is what you're looking for.
892: [20:05:53] <srixon> catcher => no cpanel access at the moment.
893: [20:09:38] <srixon> catcher => please go back to http://sspaste.com/paste/show/5367d3de773a2 and confirm.
894: [20:09:50] <srixon> How do i write in code in sspaste????
895: [20:10:20] <catcher> srixon, you have something completely different there now.
896: [20:10:42] <srixon> When you meant 2nd, you meant this ** Group::get()->filter('Code', 'membres-acmq') ** ???
897: [20:10:46] <catcher> yes
898: [20:11:52] <srixon> Sorry. Ok then no need to go to sspaste. Still, how do i wrote text to be in code?
899: [20:12:22] <catcher> yours looks fine
900: [20:18:18] * antmas quit (Ping timeout: 240 seconds)
901: [20:18:37] <srixon> catcher => WORKS!!!! It displays the right thing, the right group!
902: [20:20:02] <catcher> srixon, glad to hear it
903: [20:22:31] <srixon> catcher => many thanks. Now if i need to 1) retrieve all emails of those members in a table and 2) generate a mailing list for a mass-mail campaign?
904: [20:23:56] <Ryan-Toast> Group::get()->filter('Code', 'membres-acmq’)->first()->ID
905: [20:24:43] * Liquide quit ()
906: [20:24:43] <catcher> srixon, 1) make a template that loops the members & displays $Email. 2) very vague question.
907: [20:24:48] <Ryan-Toast> Member::get()->filter(array(‘GroupID’ => $groupID))->map(array(‘Email’))->toArray()
908: [20:25:09] <Ryan-Toast> I’m sure the brackets are out of place, but you get the idea.
909: [20:26:10] <catcher> Ryan-Toast, Group/Member is many_many, I think it'll need the ORM getter instead of the ID filter
910: [20:26:28] <Ryan-Toast> catcher: Ah, coolio.
911: [20:27:11] <srixon> Ok question 2) I need to build a form (UserDefinedForm) that will send mail to ALL users from that group.
912: [20:27:35] <Ryan-Toast> srixon: http://doc.silverstripe.com/framework/en/topics/forms
913: [20:28:39] <srixon> Ryan-Toast => are you suggesting i build a custom form instead of trying to modify UserDefinedForm module?
914: [20:29:05] <Ryan-Toast> srixon: You shouldn’t edit a module.
915: [20:29:19] <Ryan-Toast> srixon: you should always extend them.
916: [20:29:25] <srixon> Sorry, extend it i meant.
917: [20:29:39] <Ryan-Toast> Up to you.
918: [20:29:44] * Shrike_Finland has joined #silverstripe
919: [20:29:46] <Ryan-Toast> I would, seems like a simple form.
920: [20:30:26] <srixon> I mean, usually i use UDF, i am not PHP expert as you prolly guessed :-) So a custom builded form, that will send mail to what object?
921: [20:30:32] <catcher> srixon, http://doc.silverstripe.com/framework/en/topics/email
922: [20:31:00] * violetina quit (Remote host closed the connection)
923: [20:31:51] * UndefinedOffset quit (Quit: Leaving.)
924: [20:32:19] * anselmdk has joined #silverstripe
925: [20:36:20] <srixon> catcher and ryan-toast => would you take a look at http://sspaste.com/paste/show/5367d3de773a2 and come back to me? Thanks.
926: [20:37:31] <Ryan-Toast> srixon: did you read the email documentation page?
927: [20:37:49] <catcher> srixon, I fear you're trying to accomplish something that requires more understanding.
928: [20:39:24] <Pyromanik> Knowledge is power.
929: [20:40:21] <Ryan-Toast> Pyromanik: Power is power - Cersei Lannister
930: [20:40:40] * travis-ci has joined #silverstripe
931: [20:40:40] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2466 (master - aac9366 : Ingo Schommer): The build was broken.
932: [20:40:40] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/612a09676538...aac93669ddd2
933: [20:40:40] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24482969
934: [20:40:40] * travis-ci has left #silverstripe
935: [20:42:24] <srixon> Guys, guys.... I know knowledge is power. But we all started somewhere. I am pretty much skilled with SS, but as the sites i am doing and that clients are asking for are more and more complicated, it involves more PHP that the average Joe. I am more than willing to pay for advice : but have miserably failed into finding someone who can ;-)
936: [20:42:25] <Pyromanik> Ryan-Toast, so you're into incestual golddigging vapid slags are you?
937: [20:42:38] <Ryan-Toast> Pyromanik: Only bald ones.
938: [20:42:51] <Pyromanik> bald what?
939: [20:43:33] <Ryan-Toast> Pyromanik: Oh, you’re a show watcher?
940: [20:43:40] <Ryan-Toast> Pyromanik: have you read the books?
941: [20:43:44] <srixon> So what i am looking for is someone to point me into the right direction. Which is whta you guys are doing. And i deeply thank you.
942: [20:44:58] <srixon> So back to one problem at a time. I need to gather all members mail into an object that the PHP form $email_to: will use.
943: [20:45:35] <Pyromanik> Ryan-Toast, fuck books, ain't no body got taime fo thaat
944: [20:45:41] <muskie9> srixon, are you looking to send to each member as a separate email, like a newsletter type system?
945: [20:45:44] <Ryan-Toast> Pyromanik: Never mind then :P
946: [20:46:11] <muskie9> SS has an email class: http://doc.silverstripe.com/framework/en/topics/email
947: [20:46:22] <srixon> muskie => yes. I need all others to be in hidden cc
948: [20:46:29] <Pyromanik> bcc
949: [20:46:39] <srixon> bcc yup
950: [20:47:20] <srixon> May i add that that same email list will be used by the SS Newsletter module?
951: [20:48:13] <Pyromanik> no experience with it sorry
952: [20:48:25] <catcher> srixon, DataList has a toArray() method as Ryan-Toast mentioned. One approach could be to implode that w/ a comma.
953: [20:48:33] <srixon> Thats why i need first to gather all those members emails into one object. And feed all $email_to with that list.
954: [20:48:44] <muskie9> if I remember correctly yes, you specify a group to send a newsletter to if you're using the module... I think I did something in 2.4 that used it w/a custom group... but it was messy at bet
955: [20:49:53] <srixon> muskie9 => yes thats a custom group. The same created with all the members emails.
956: [20:49:58] * Shrike_Finland quit (Quit: Leaving.)
957: [20:50:14] <Ryan-Toast> Is there a defaurlt sql %LIKE% query, or should I just write a custom one?
958: [20:50:57] <srixon> catcher => starting with this ** Member::get()->filter(array(‘GroupID’ => $groupID))->map(array(‘Email’))->toArray() ** and you mentionned NOT to use ID
959: [20:50:58] <Pyromanik> yeah, well, just as catcher just said, $list = Group::get()->...; $to = $list->first()->Email; $bcc = implode(';', $list->offset(1)->column('Email')->toArray())l
960: [20:51:20] <Pyromanik> Ryan-Toast, the hell yo runnin yo mouf about foo?
961: [20:51:34] <Ryan-Toast> Pyromanik: Uh, uh no you d’dnt
962: [20:51:46] * qlex has joined #silverstripe
963: [20:51:47] <catcher> Ryan-Toast, :PartialMatch, :StartsWith, :EndsWith
964: [20:51:48] <Ryan-Toast> Pyromanik: Trying to make a custom search querty. Game is ahard.
965: [20:51:51] * qlex has left #silverstripe
966: [20:51:52] <Ryan-Toast> hard**
967: [20:51:54] <Pyromanik> what catcher said
968: [20:51:58] <Pyromanik> I think.
969: [20:52:27] <Pyromanik> typing yourself? Well just like you said, LIKE '%partial%'
970: [20:52:41] <Pyromanik> otherwise you need fulltext indecies
971: [20:53:21] <Ryan-Toast> Pyromanik: Yeah thought so. Tried it yesterday to no avail, so today with fresh eyes shall reveal more frustration I believe.
972: [20:53:40] <Pyromanik> Ryan-Toast, well I'm still not sure what you ask.
973: [20:53:51] <Pyromanik> "is there a default LIKE?" yes, LIKE.
974: [20:54:29] <Pyromanik> otherwise look up docs on whatever db you have for fulltext search
975: [20:55:04] <Ryan-Toast> Pyromanik: I have a list of DataObject jobs that are sorted into countries. I am making a search function that you can select which country, then enter search text.
976: [20:55:31] <catcher> :PartialMatch uses LIKE
977: [20:55:31] * joelpittet quit ()
978: [20:55:32] <catcher> http://api.silverstripe.org/3.1/class-PartialMatchFilter.html
979: [20:55:55] * anselmdk quit (Quit: anselmdk)
980: [20:56:08] <Ryan-Toast> catcher: awww yiss, son.
981: [20:56:52] <Ryan-Toast> catcher: searchable_fields makes it filterable in the cms, right?
982: [20:57:34] <srixon> muskie9 => remember what you did to use a custom group to Newsletter?
983: [20:57:36] * anselmdk has joined #silverstripe
984: [20:59:16] <Pyromanik> Ryan-Toast, gosh son http://doc.silverstripe.org/framework/en/topics/datamodel#search-filter-modifiers
985: [20:59:38] <Ryan-Toast> Pyromanik: <3
986: [20:59:50] <catcher> Ryan-Toast, PartialMatches run on DataLists
987: [20:59:58] <catcher> just anotha filta
988: [21:00:09] <muskie9> a lot of hacking... lol, I'll have to find the code back.
989: [21:00:12] <Ryan-Toast> Filter should work fine for my needs :)
990: [21:00:23] <srixon> catcher, ryan, muskie9 => i am wondering if i REALLY need to use the Newsletter module. I mean, all i need from Newsletter module is the ability to send HTML mails (a-la-mailchimp). No subscription needed as all registered members (fromMemberprofle) from the membres-acmq list will automatically #be added to HTM Emails. leave me to find a way to send HTML Mails from SS.
991: [21:00:31] <Ryan-Toast> Chur, boiiiiiis catcher/Pyro
992: [21:01:23] <muskie9> I might be thinking of a different module then, the one I used didn't go through 3rd party mailers, just used the Email class in SS
993: [21:01:50] <muskie9> so you want to send the form to one person and bcc to all members of your custom group?
994: [21:02:13] <Pyromanik> srixon, $email = new Email($to, $from, $subject, $message); $email->setTemplate('template'); $email->populateTemplate($data); $email->send();
995: [21:02:22] <scpi> keep in mind that if you bcc too many people, you'll wind up in the spam box
996: [21:02:47] <Pyromanik> muskie9, the newsletter module doesn't use external mailers afaik
997: [21:03:14] <Pyromanik> scpi, I tihnk you mean to keep in mind that if you send email you'll end up in the spam box.
998: [21:03:19] * antmas has joined #silverstripe
999: [21:03:39] <scpi> Of course. So you don't want to make the odds any worse than they already are.
1000: [21:03:55] <Pyromanik> rename inbox spam, 100%
1001: [21:04:16] <scpi> Just saying, in terms of deliverability, it's generally better to send an individual message to each address
1002: [21:04:16] <srixon> OK so separate emails? There will be avout 400 members at its max.
1003: [21:04:23] <scpi> Yep.
1004: [21:04:32] <scpi> that's not even a lot.
1005: [21:04:44] <scpi> our mailing list at work is about 14,000
1006: [21:04:45] <Pyromanik> srixon, it should be ok, but still would be better on mailchimp
1007: [21:04:50] <scpi> indeed
1008: [21:05:03] <scpi> Email is their full-time job
1009: [21:05:04] <Pyromanik> or campaign monitor
1010: [21:05:08] <Pyromanik> or sendgrid
1011: [21:05:10] <scpi> And they do it well
1012: [21:05:23] <scpi> And it's pretty cheap for what you get.
1013: [21:05:38] <muskie9> better reporting too
1014: [21:05:45] <srixon> Client wants an integrated solution. And, then if not, how to have Mailchimp use my members lists????
1015: [21:05:52] <scpi> I'm all about those sweet analytics
1016: [21:05:55] <Pyromanik> use the mailchimp module? IDK
1017: [21:06:08] <Pyromanik> scpi, as any business owner is.
1018: [21:06:09] <Stomach> or just roll your own
1019: [21:06:18] <Pyromanik> fuck that Stomach
1020: [21:06:22] <antmas> bah
1021: [21:06:24] <muskie9> is this up to date: http://connect.mailchimp.com/integrations/apes-automated-provision-for-email-services-for-silverstripe-cms
1022: [21:06:26] <Stomach> the mailchimp/campaignmonitor php apis are easy to use
1023: [21:06:28] <Pyromanik> I'm no suicidal, and have no plans to be so :P
1024: [21:06:29] <antmas> anyone worked with Delphi before?
1025: [21:06:41] <Pyromanik> Stomach, Oh you mean implement api consumer
1026: [21:06:44] <srixon> pyromanik => is SS Mailchim or APES can use a custom group?
1027: [21:06:48] <Pyromanik> yeah nah, not when he doesn't know PHP eh.
1028: [21:07:00] <Stomach> oh yeah, maybe not then
1029: [21:07:01] <Pyromanik> srixon, no idea. I don't do email.
1030: [21:07:07] <antmas> Ryan-Toast: head of that before? ^^^ (mailchimp link)
1031: [21:07:14] * anselmdk quit (Quit: anselmdk)
1032: [21:07:48] <Ryan-Toast> antmas: Yeah, I’ve used some of the code for my updated version
1033: [21:07:58] <Ryan-Toast> antmas: Well, the ideas anyway.
1034: [21:08:03] <antmas> Ryan-Toast: schweet
1035: [21:08:08] <Pyromanik> haha wholey shit 2.4 screenshot
1036: [21:08:12] <antmas> so, anyone know Delphi?
1037: [21:08:13] <Ryan-Toast> antmas: Don’t ahave any time this week to work on it htough.
1038: [21:08:25] <Pyromanik> antmas, I know a guy who knows delphi
1039: [21:08:31] <Pyromanik> in dunedin
1040: [21:08:34] <antmas> Ryan-Toast: no worries, my contract won't start until I hear back in a week at least
1041: [21:08:48] <srixon> to all =>asking again. is SS Mailchim or APES can use a custom group? If not, useless for me.
1042: [21:08:59] <Ryan-Toast> antmas: you could always fork the repo :P
1043: [21:09:00] <Pyromanik> srixon, most likely, no idea.
1044: [21:09:00] <antmas> Pyromanik: serial? would be good to at least chat to someone
1045: [21:09:07] <antmas> Ryan-Toast: no times! :P
1046: [21:09:13] <Ryan-Toast> antmas: haha, fair enough.
1047: [21:09:20] <Pyromanik> antmas, uhh, probably not cheap.
1048: [21:09:42] <antmas> Ryan-Toast: although I'll have some tool time when I build this delphi connection module
1049: [21:09:44] <Pyromanik> also not sure if his kinda work is your projects kinda need.
1050: [21:09:53] <Pyromanik> but yeh
1051: [21:10:03] <Ryan-Toast> antmas: the fuck is dephi?
1052: [21:10:06] <antmas> Pyromanik: I just need to know basics so I can access it and read from it (maybe write)
1053: [21:10:10] <antmas> Ryan-Toast: db
1054: [21:10:15] <Ryan-Toast> antmas: fun
1055: [21:10:31] <antmas> Ryan-Toast: this client has a POS that runs on it
1056: [21:10:44] <Ryan-Toast> piece of shit?
1057: [21:10:50] <Ryan-Toast> or payment system?
1058: [21:10:51] <antmas> lol pretty much yes
1059: [21:11:04] * Shrike_Finland has joined #silverstripe
1060: [21:11:08] <antmas> stock, loyalty members, payments etc
1061: [21:11:19] <Ryan-Toast> pos is such a bad acronym
1062: [21:11:33] <antmas> POSS would be better
1063: [21:11:40] <Pyromanik> antmas, https://twitter.com/AntDowling
1064: [21:11:55] <antmas> Pyromanik: thanks man
1065: [21:12:15] <Pyromanik> antmas, uhh dude... delphi is not a database.
1066: [21:12:24] <Pyromanik> it's an entire language, like C, etc.
1067: [21:12:28] <antmas> Pyromanik: wuuuuuuuuuut?
1068: [21:12:30] <muskie9> srixon: The APES module will allow you to set up an automated sync mechanism between the Member object and a 3rd party mail service such as MailChimp.
1069: [21:12:35] <Pyromanik> you don't read or write to delphi.
1070: [21:12:44] <antmas> LOL
1071: [21:12:45] <Pyromanik> you write programs IN delphi.
1072: [21:12:46] <antmas> that's awesome
1073: [21:13:04] <muskie9> looks like it would, but currently shows 2.4+ support, so if you're running 3.0+ it would need some work
1074: [21:13:26] <antmas> I wrote a pretty extensive email to the POS manuf. and they responded wih 'The database is Delphi' - please let us know if you need anything else.'
1075: [21:13:29] <antmas> from a developer
1076: [21:13:32] <Pyromanik> muskie9, I think there's a more up to date chimp module on addons.ss.org.nz
1077: [21:13:42] <Pyromanik> if that's even a link, if not, you know what I mean
1078: [21:14:19] <Pyromanik> antmas, best 'fuckoff' I ever saw.
1079: [21:14:38] <antmas> Pyromanik: hahaha
1080: [21:14:55] <antmas> Pyromanik: I've worked with these guys before and they are terribad
1081: [21:15:07] <Pyromanik> antmas, it's possible there's a db product called delphi, or that delphi is more of a whole integrated system than I'm aware of... but dunno man, skeptical
1082: [21:15:32] <Pyromanik> delphi has been around for years. It's about as old as C++
1083: [21:15:35] <Pyromanik> afaik
1084: [21:15:39] * Shrike_Finland quit (Client Quit)
1085: [21:16:02] <Stomach> delphi is a database type
1086: [21:16:07] <Stomach> or company or whatever
1087: [21:16:39] <Stomach> but its just not as popular, it might be a new version of it
1088: [21:16:56] <antmas> now I'm confused
1089: [21:16:58] <antmas> ;(
1090: [21:17:10] <Stomach> wait until you have to program in it
1091: [21:17:28] <srixon> Only thing i found is that mailchimpsubscribe
1092: [21:17:30] * UncleCheese_ has joined #silverstripe
1093: [21:17:48] <Pyromanik> http://www.google.co.nz/search?q=delphi+database
1094: [21:18:06] <Pyromanik> antmas, it could be a database written in delphi? idk
1095: [21:18:13] <Pyromanik> in which case... rofl wut
1096: [21:18:27] <antmas> yeah it's a bit cloudy
1097: [21:18:37] * babak quit (Quit: Connection closed for inactivity)
1098: [21:18:50] <Pyromanik> http://delphi.about.com/od/database/a/databasecourse.htm
1099: [21:18:53] <Pyromanik> antmas, ^
1100: [21:19:10] <Stomach> http://en.wikipedia.org/wiki/Embarcadero_Delphi
1101: [21:19:12] <Stomach> :D
1102: [21:19:20] <Stomach> it could be anything!
1103: [21:19:32] <antmas> christ
1104: [21:19:43] * micahsheets has joined #silverstripe
1105: [21:19:44] <antmas> Delphi ALL THE THINGS!
1106: [21:20:20] <Pyromanik> https://goo.gl/maps/g6XBL
1107: [21:20:43] <Stomach> it was made in Greece
1108: [21:20:55] <Stomach> that seems the most logical so far, its a Greek database
1109: [21:21:11] <Pyromanik> nah, it's not an oracle product.
1110: [21:22:23] <Pyromanik> (joke about the oracle at delphi for those heathens that don't know their classical mythology.)
1111: [21:22:50] <micahsheets> Does anyone know how to set up a Director route as a fallback if a normally required fragment is missing?
1112: [21:23:05] <Pyromanik> define it after.
1113: [21:23:08] <Pyromanik> not before.
1114: [21:23:26] <Pyromanik> rules are kinda like css.
1115: [21:24:02] <Pyromanik> otherwise don't require the fragment and handle it in action if it's not there.
1116: [21:24:09] <srixon> Someone could complete this? ** $list = Group::get()->...; ** *('Code', 'membres-acmq') i am after $Email data
1117: [21:24:25] <Pyromanik> filter
1118: [21:24:36] <micahsheets> what is the default rout for SS. I have UndefinedOffsets translateablerouting module installed and it expects to send all traffic through it's modelascontroller using a $Language fragment. So I need to know what to put after that route to send traffic to pages that I do not want to have the $Language fragment.
1119: [21:24:46] <Pyromanik> $list = Group::get()->filter('Code', 'membres-acmq')
1120: [21:25:46] <Pyromanik> well the module won't overwrite that, it should still be defined.
1121: [21:26:43] <micahsheets> Since the default routing is configured to send to "*" and the translatablerouting rout is defined after, If I remove the /en/ from my path I get a 404 error.
1122: [21:27:08] <Pyromanik> perhaps you should consider not using the module.
1123: [21:27:23] <srixon> Is this a good start ? ** $listeDesMembresDuGroupe = Group::get()->filter(array('Code' => 'membres-acmq'))->first()->Membres();
1124: [21:27:30] <srixon> And then this? ** $to = $list->first()->Email; */
1125: [21:27:41] <Pyromanik> yep
1126: [21:27:45] <micahsheets> I could do that or like you said I could remove the route from yml and define my routing in a controller.
1127: [21:28:00] <Pyromanik> well, $list should be $listeDesMembresDuGroupe
1128: [21:28:02] <Pyromanik> but yeh
1129: [21:28:46] <Pyromanik> micahsheets, well no, if the module is catching all the things, then you're maybe out of luck
1130: [21:29:17] <Pyromanik> good luck, it's bed time.
1131: [21:31:09] <Ryan-Toast> Noooo, Pyromanik I just got it working.
1132: [21:31:26] <Ryan-Toast> thanks anyway, bud
1133: [21:34:45] <srixon> pyromanik => so this will gather the members from group coded membres-acmq * $listeDesMembresDuGroupe = Group::get()->filter(array('Code' => 'membres-acmq'))->first()->Membres(); **
1134: [21:35:18] <srixon> and this will send a SEPARATE email to each email from members ** $to = $listeDesMembresDuGroupe ->first()->Email; **
1135: [21:36:54] <srixon> To all => noticed Pyromanik has quit. Can somene confirm the code above?
1136: [21:37:57] <muskie9> srixon, when you get your group members set to your variable, then foreach($listeDesMemberesDuGroupe as $member){ //Do Email Stuff }
1137: [21:38:02] * scpi quit (Quit: scpi)
1138: [21:38:10] <muskie9> you would use $to = $member->Email
1139: [21:40:50] <srixon> muskie9 => this **foreach($listeDesMemberesDuGroupe as $member){ //Do Email Stuff } ** OR ** $to = $member->Email ** Or both
1140: [21:41:13] <muskie9> both, your $to = $member->Email would be inside the foreach loop
1141: [21:41:26] <muskie9> it'll step through the group list one member at a time
1142: [21:42:09] <muskie9> sorry, the member list one member at a time
1143: [21:43:25] <srixon> muskie => take a look at http://sspaste.com/paste/show/5367d3de773a2 and tell me if its right. That would be in my custom page AllMail.php where the form would reside right?
1144: [21:45:16] <srixon> muskie9 => sspaste update
1145: [21:45:39] <muskie9> yes, that would go in your form action function and in the foreach would also be your new Email() call... essentially building and sending the email to each member with your form results
1146: [21:46:46] <srixon> muskie9 => new Email() call... you mean the usual PHP contact form elements/variables?
1147: [21:47:59] <muskie9> http://sspaste.com/paste/show/536803de4ffb4
1148: [21:48:32] <Ryan-Toast> catcher: aww yee, son. Got it working: http://www.theicebase.com/for-talent/new-zealand/
1149: [21:48:59] <muskie9> in line 5 you would do $email->populateTemplate(array('FormFieldName' => $data['FormFieldName']));
1150: [21:49:02] <muskie9> I think
1151: [21:49:05] <antmas> Ryan-Toast: nice
1152: [21:49:15] <antmas> Ryan-Toast: is it just me, or is that logo a bit blurry?
1153: [21:49:30] <muskie9> then in your MyEmail.ss template you would do $FormFieldName to access the value
1154: [21:49:45] <Ryan-Toast> antmas: dunno, not my problem they uploaded it.
1155: [21:50:14] <antmas> Ryan-Toast: fair enough
1156: [21:51:03] <srixon> muskie9 => by this ** $email->setTemplate('MyEmail'); ** do you mean that the mail will use MyEmail.ss template????
1157: [21:53:35] <muskie9> in your themes/ThemeName/templates folder, create a folder named email. then create a file named MyEmail.ss and you can build your html email like other .ss layouts/templates
1158: [21:55:16] <srixon> muskie => is this is true, no need for Newsletter module then? I mean, i could duplicate the form but using another template (or no template at all for simple texte email) ??????
1159: [21:55:58] <srixon> muskie => then this $email->setTemplate('MyEmail'); would become $email->setTemplate('email/MyEmail'); ?
1160: [21:56:43] * Motoservo quit (Read error: Connection reset by peer)
1161: [21:56:47] * Motoservo_ has joined #silverstripe
1162: [21:56:57] <srixon> muskie => as i said, i only need Newsletter (or Apes) to send HTML mails. No subscriptions needed.
1163: [21:57:43] <Ryan-Toast> Is it possible to have the filter array use or, instead of and?
1164: [21:59:06] <srixon> muskie9 => ill have to leave in 5 minutes.
1165: [22:00:06] <muskie9> it wouldn't require the module. the setTemplate function recognizes the email template when you add the template and dev/build and ?flush=all
1166: [22:01:05] <muskie9> this would all be using your custom group and an email template you setup with the variables you define in $email->populateTemplate(array());
1167: [22:02:39] * priithansen has joined #silverstripe
1168: [22:03:01] * priithansen quit (Client Quit)
1169: [22:03:15] * priithansen has joined #silverstripe
1170: [22:03:38] * simon_w|air has joined #silverstripe
1171: [22:04:18] <srixon> muskie9 => many many thanks. It solved the next problem i would have faced: Having Newsletter use the MemberProfile members mails. No need now. Thanks! Later.
1172: [22:04:30] <muskie9> cheersa
1173: [22:04:45] * srixon quit (Quit: Page closed)
1174: [22:08:12] <Ryan-Toast> FilterAny is a fucking glorious method.
1175: [22:10:52] <simon_w|air> You're welcome :p
1176: [22:15:20] <Ryan-Toast> simon_w: did you make it?
1177: [22:15:26] <simon_w|air> Yes
1178: [22:15:38] <Ryan-Toast> simon_w: Life saver.
1179: [22:16:04] <Ryan-Toast> simnon_w: I have put it to good use: http://www.theicebase.com/for-talent/new-zealand/
1180: [22:18:20] <antmas> Ryan-Toast: is that doc'd somewhere?
1181: [22:19:35] <antmas> I can't find it :(
1182: [22:20:08] <simon_w|air> antmas, http://doc.silverstripe.org/framework/en/topics/datamodel#filter
1183: [22:21:06] <antmas> simon_w|air: chur
1184: [22:23:12] <Ryan-Toast> antmas: you must have tried to search with google, silly you.
1185: [22:24:47] <antmas> Ryan-Toast: naw, homie. I search with Bing!
1186: [22:24:48] <Turnerj> Is there any way to change the redirect when visiting "/admin" to go to another controller extending LeftAndMain?
1187: [22:25:08] <Turnerj> (the redirect I am referring to is the "/admin" -> "/admin/pages"
1188: [22:26:03] <Ryan-Toast> Turnerj: you can do something like this: http://pastebin.com/TwaTKJGn
1189: [22:26:34] <Ryan-Toast> make sure you add the extension to your config.yml
1190: [22:27:29] <simon_w|air> Turnerj, the redirect goes to whatever's the first item in the menu
1191: [22:27:49] <Ryan-Toast> simon_w: orly? That’s cool.
1192: [22:28:04] <Turnerj> Awesome
1193: [22:28:16] <antmas> Google Books is awesome
1194: [22:28:22] <antmas> <3
1195: [22:28:33] <Turnerj> Must be something wrong with my code at the moment, I've got a new menu item before the "Pages" menu item but it still redirects to "Pages"
1196: [22:34:34] * travis-ci has joined #silverstripe
1197: [22:34:34] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2467 (3.1 - aef4b80 : Damian Mooyman): The build passed.
1198: [22:34:34] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/f2b2ee8a68f1...aef4b80fda3d
1199: [22:34:34] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24490828
1200: [22:34:34] * travis-ci has left #silverstripe
1201: [22:36:52] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1202: [22:38:48] <antmas> does anyone else have the problem where your legs HAVE to tap along to music while at work?
1203: [22:38:52] <antmas> so annoying
1204: [22:39:27] * webbower has joined #silverstripe
1205: [22:40:57] <simon_w|air> Nope
1206: [22:41:18] * simon_w|air quit (Quit: This computer has gone to sleep)
1207: [22:41:56] <webbower> Does anyone know of a good replacement for managing image-based galleries/slideshows in the 3.1 admin panel akin to ImageDataObjectManager’s UI? When I search addons.ss.org for “gallery” I see quite a few listed and I was wondering if anyone had recommendations for which one to go for.
1208: [22:48:05] * priithansen quit (Quit: priithansen)
1209: [22:57:42] * travis-ci has joined #silverstripe
1210: [22:57:42] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2468 (master - e9c3ff9 : Damian Mooyman): The build was fixed.
1211: [22:57:42] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/aac93669ddd2...e9c3ff933f8e
1212: [22:57:42] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24492608
1213: [22:57:42] * travis-ci has left #silverstripe
1214: [22:58:40] * gelignite quit (Quit: http://bit.ly/nkczDT)
1215: [22:59:08] * micahsheets quit (Quit: micahsheets)
1216: [22:59:09] * catcher quit (Quit: Leaving)
1217: [22:59:13] <Ryan-Toast> good article: http://alistapart.com/article/dry-ing-out-your-sass-mixins
1218: [23:01:49] <antmas> Ryan-Toast: bookmarked - sounds interesting
1219: [23:01:52] <antmas> mixins are amazing
1220: [23:02:01] <Ryan-Toast> extends are my boi
1221: [23:02:40] <simon_w> Not doing frontend stuff is amazing
1222: [23:03:33] <antmas> simon_w: you need more hats
1223: [23:03:47] <simon_w> No :p
1224: [23:03:55] <antmas> simon_w: shave that neckbeard!
1225: [23:04:38] <simon_w> It's not that itchy yet :p
1226: [23:05:00] <antmas> :)
1227: [23:08:47] * micmania1 quit (Ping timeout: 250 seconds)
1228: [23:09:20] <UncleCheese_> can someone explain Javascript promises to me?
1229: [23:09:39] <UncleCheese_> is it a design pattern or is it something more tangible?
1230: [23:10:14] <Stomach> more tangible, it allows you to track the execution of the callback stack
1231: [23:10:28] <UncleCheese_> so if i have a library, like chrome.storage
1232: [23:10:36] <Stomach> so you can so "callBack one will promise to finish before I want to run callBack three)
1233: [23:10:41] <UncleCheese_> that works like.. chrome.storage.get('value', callback)
1234: [23:10:51] <UncleCheese_> and i want to chain all those together with thens()
1235: [23:11:00] <UncleCheese_> i can't do that unless the library returns a promise?
1236: [23:11:04] <UncleCheese_> or can i shim it?
1237: [23:11:05] <Stomach> all the callbacks have to have a promise
1238: [23:11:11] <Stomach> I don't know about shims though
1239: [23:11:18] <Stomach> I would assume not
1240: [23:11:18] <UncleCheese_> so basically
1241: [23:11:36] <UncleCheese_> the library needs to return an object that adheres to this promise interface
1242: [23:11:46] <UncleCheese_> and the priomise by defninition has to have a method called then()
1243: [23:12:16] <Stomach> or when :P
1244: [23:12:44] <UncleCheese_> right
1245: [23:12:55] <Stomach> but yeah - I don't know how to use a promise without the library youre using having promises already
1246: [23:13:27] <Stomach> I assume it just falls over and that call is executed somewhere in the stack you don't want it to be
1247: [23:13:30] <Stomach> but who knows
1248: [23:13:35] <Stomach> javascripts magic after all
1249: [23:13:38] <UncleCheese_> well i see stuff like jquery deferred
1250: [23:13:41] <UncleCheese_> and when.js
1251: [23:13:47] <UncleCheese_> and i wonder if those offer some kind of shim
1252: [23:13:59] <UncleCheese_> because it's a bit shit that you have to rely on your thirdparty vendor to implement promises
1253: [23:14:28] <Stomach> :D
1254: [23:14:31] <Stomach> ask pieter
1255: [23:16:00] * travis-ci has joined #silverstripe
1256: [23:16:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#872 (master - b369928 : Damian Mooyman): The build passed.
1257: [23:16:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/61ebe0843766...b3699281c076
1258: [23:16:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/24492623
1259: [23:16:00] * travis-ci has left #silverstripe
1260: [23:16:18] <Turnerj> Any ideas to why my class extending LeftAndMain isn't rendering the template I created (MyClass_Content.ss) but instead spitting out an SS generated form?
1261: [23:16:53] <UncleCheese_> where did you put the template in your filesystem?
1262: [23:17:23] <Turnerj> mymodule/templates/layout/MyClass_Content.ss
1263: [23:17:40] <Turnerj> Using the urlvariable ?showtemplate=true, it says my template is being run
1264: [23:17:53] <Turnerj> But it isn't being returned to the screen
1265: [23:18:32] * nickmolhoek has joined #silverstripe
1266: [23:19:29] <Colin[pi]-2> morning!
1267: [23:19:30] <Turnerj> I'm looking at the SS Dashboard module right now and comparing it to my code as it does something similar to what I want to do (eg. a fully custom content area as defined in the SS template file)
1268: [23:19:38] * Colin[pi]-2 is now known as Colin[pi]
1269: [23:19:51] <antmas> Colin[pi]: Howdy!
1270: [23:20:09] <Colin[pi]> OMG HAI ANTMAS
1271: [23:21:42] <Stomach> capital L for Layout Turnerj
1272: [23:21:47] <Stomach> :)
1273: [23:23:13] <Ryan-Toast> Turnerj: This doesn’t do anything, but it has a base on how to make a custom backend page/form https://github.com/Rhym/ss_boilerplate/tree/master/Boilerplate/code/Modules/Newsletter
1274: [23:26:42] * UncleCheese__ has joined #silverstripe
1275: [23:26:55] <Turnerj> Wasn't exactly what I was after but I did find my problem
1276: [23:27:09] <Turnerj> I was using the Layout folder when I needed to use the Includes folder
1277: [23:27:11] <Turnerj> *duh*
1278: [23:27:23] <Turnerj> Cheers guys for the help
1279: [23:27:32] <Ryan-Toast> Turnerj: I did that same thing ><
1280: [23:28:50] <Turnerj> Might be worth actually having some basic documentation to extend LeftAndMain like this and avoid that little gotcha
1281: [23:31:40] <simon_w> So write some?
1282: [23:32:11] <ss23> A+
1283: [23:32:14] <ss23> Write docs, yo!
1284: [23:32:39] <simon_w> Yeah ss23, write some docs!
1285: [23:32:52] <simon_w> Ooh, Rimu now supports 2FA
1286: [23:32:57] <ss23> old~
1287: [23:33:02] <ss23> Already been on the twitter for ages!
1288: [23:33:03] <Ryan-Toast> ss23: DOCMASTER
1289: [23:33:24] <Ryan-Toast> 223: I’m afraid to write docs and then they’re wrong, or bad practise.
1290: [23:33:34] <simon_w> They tweeted about it 18 minutes ago :p
1291: [23:33:50] <simon_w> Ryan-Toast, they all get reviewed before being merged
1292: [23:33:57] <webbower> UncleCheese_: There’s a standardized API for JS promises here http://promises-aplus.github.io/promises-spec/
1293: [23:34:01] <Colin[pi]> simon_w: 18 minutes is an eternity on twitter
1294: [23:34:03] <Ryan-Toast> simon_w: Ah, cool.
1295: [23:34:06] <Turnerj> The docs are in version control? Didn't know that
1296: [23:34:19] <UncleCheese_> thanks, webbower
1297: [23:34:25] <Turnerj> If that is the case, I might actually keep some notes while I'm working to write up some docs later
1298: [23:34:34] <simon_w> Turnerj, yeah, framework/docs/
1299: [23:34:34] <webbower> Short version is this:
1300: [23:35:04] <webbower> callback hell: doSomethingAsync(‘param1’, ‘param2’, callback)
1301: [23:35:05] <Turnerj> Cheers simon_w
1302: [23:35:24] <webbower> promises: doSomethingAsync(‘param1’, ‘param2’).then(callback)
1303: [23:35:45] <simon_w> What? I logged into WordPress for the first time in two weeks and there's no updates that need installing? Something fishy's going on...
1304: [23:35:51] <ss23> lol
1305: [23:35:57] <ss23> Those are literally just syntatical differences!
1306: [23:36:01] <webbower> And for bonus points: doSomethingAsync(‘param1’, ‘param2’).then(callback).then(anotherCallback).then(moarCallback).then(allTheCallbacks)
1307: [23:36:01] <ss23> I hate Javascript devs
1308: [23:36:12] <webbower> Try doing that with plain ol’ callbacks
1309: [23:36:16] <webbower> ss23: hey now :-p
1310: [23:36:22] <UncleCheese_> yeah, you end up with a pyramid
1311: [23:36:35] <ss23> No offense
1312: [23:36:35] <ss23> :P
1313: [23:36:36] <webbower> Well, not exactly
1314: [23:36:39] <Colin[pi]> ss23: I dont hate the devs, I just hate JavaScript
1315: [23:36:47] <webbower> ss23: we’re not all bad :-p
1316: [23:37:02] <Colin[pi]> webbower: no you are, but some are more bad than others
1317: [23:37:04] <Colin[pi]> ;D
1318: [23:37:18] <ss23> I don't hate Javascript (okay I do) in comparison to the devs who use it!
1319: [23:37:23] <webbower> Colin[pi]: The same could be said for any kind of dev :-p
1320: [23:37:34] <UncleCheese_> i don't know how you can hate javascript
1321: [23:37:38] <UncleCheese_> it's so fun
1322: [23:37:39] <Colin[pi]> webbower: yeah we're all at different stages of being shit
1323: [23:37:45] <webbower> UncleCheese_: Moreso, it solves the issue of how to apply more than one callback to an async response
1324: [23:37:51] <Colin[pi]> UncleCheese_: no
1325: [23:37:56] <webbower> Lol
1326: [23:38:09] <UncleCheese_> it's fun now that it's evolving into a first-class citizen
1327: [23:38:20] <UncleCheese_> all the node stuff
1328: [23:38:22] <UncleCheese_> it's really cool
1329: [23:38:24] <webbower> JavaScript is the shit. Functions as first-class objects is amazing
1330: [23:38:28] <UncleCheese_> spaghetti js was shit
1331: [23:38:31] <Colin[pi]> UncleCheese_: yeah but that first-class citizen looks like Doc Brown from Back to the Future
1332: [23:38:42] <UncleCheese_> but that's what's fun about it
1333: [23:38:42] <webbower> Don’t be dissin’ the Doc
1334: [23:38:43] <UncleCheese_> it's scappy
1335: [23:38:49] <UncleCheese_> scrappy
1336: [23:38:53] <Colin[pi]> JS: GREAT SCOTT
1337: [23:39:17] <simon_w> webbower, have you used a functional language at all?
1338: [23:39:18] <webbower> UncleCheese_: Basically, whatever function call you need to chain .then()’s on needs to return a Promise object
1339: [23:39:19] <Colin[pi]> that said, you can do some cool stuff indeed in JS
1340: [23:39:37] <webbower> simon_w: not officially, but I’m digging in to functional programming concepts
1341: [23:39:50] <simon_w> webbower, and you still think how JS does it is amazing?
1342: [23:40:03] <webbower> I read most of Learn You a Haskell for Great Good
1343: [23:40:26] <simon_w> (they're not first class objects in JS either. They're just all closures)
1344: [23:40:29] <webbower> I never said that. I said it’s amazing to have that capability, but I understand JS is not a fully functional language. But it does have parts to it
1345: [23:40:44] <simon_w> "JavaScript is the shit. Functions as first-class objects is amazing"
1346: [23:40:47] <webbower> first class object means that it can be assigned to a variable and passed to functions
1347: [23:40:49] <simon_w> Yeah, you kinda did :p
1348: [23:41:26] <webbower> I said that feature of JavaScript is awesome. When I’m working in PHP, I miss that ability
1349: [23:41:37] <simon_w> You know you can do it in PHP too, right?
1350: [23:41:42] <webbower> Not as elegantly
1351: [23:42:13] <webbower> Also, you’re being kind of condescending simon_w
1352: [23:42:23] <Colin[pi]> y'all motherfuckers need Smalltalk
1353: [23:42:32] <Colin[pi]> now that language did closures WELL
1354: [23:43:12] <spronk0> fuck closures
1355: [23:43:51] <webbower> Anyway, UncleCheese_, jQuery’s $.ajax returns a $.Deferred, which is Promise-like, but doesn’t completely adhere to the Promises/A+ spec
1356: [23:44:11] <UncleCheese_> do you know anything about when.js
1357: [23:44:45] <webbower> The other cool thing about Promises is that each .then() is passed the result from the previous callback in the chain, so you can chain together little transformation functions to operate on the original result
1358: [23:44:52] <spronk0> when.js is a decent promises impl
1359: [23:44:59] <spronk0> but Bluebird is better
1360: [23:45:37] <Ryan-Toast> and so I finishe my weekly email asking to buy ryanpotter.com
1361: [23:45:38] <webbower> The only Promise I’m familiar with at the moment jQuery’s. I’ve been planning to try out some of the others like when.js or RSVP.js
1362: [23:45:51] <Colin[pi]> Ryan-Toast: how much they want?
1363: [23:45:58] <Ryan-Toast> Colin[pi]: They never want to sell.
1364: [23:46:11] <Colin[pi]> Ryan-Toast: OIC.. :(
1365: [23:46:22] <Ryan-Toast> Colin[pi]: never had a website on it, sigh.
1366: [23:46:27] <Stomach> but its the official website
1367: [23:46:36] <webbower> But, if they all follow the spec, they all follow the same baseline and the differences are whatever syntatic sugar and extra bells and whistles get included in the library
1368: [23:46:42] <Colin[pi]> Ryan-Toast: yeah I hate that stuff, such a waste
1369: [23:46:46] <Ryan-Toast> THE OFFICAL FAN CLUB FOR A GUY ON A SHOW THAT DOESN’T AIR ANY MORE
1370: [23:47:03] <Ryan-Toast> mad level: 10
1371: [23:47:21] <webbower> UncleCheese_: do you understand why promises are useful for working with async code?
1372: [23:47:49] <spronk0> the fact that there are like four competing promises libraries is the most annoying thing in the fucking world.
1373: [23:47:52] <spronk0> well, not quite
1374: [23:47:55] <Ryan-Toast> Colin[pi]: Even contacted their domain registrar and said if they miss a payment let me know.
1375: [23:48:12] <spronk0> but the js community is pretty terribly awful at having multiple competing things that would be better if they just teamed up :@
1376: [23:49:18] * travis-ci has joined #silverstripe
1377: [23:49:18] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2469 (3.1 - bbd7bba : Hamish Friedlander): The build passed.
1378: [23:49:18] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/aef4b80fda3d...bbd7bba11f91
1379: [23:49:18] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24495712
1380: [23:49:18] * travis-ci has left #silverstripe
1381: [23:49:41] <webbower> spronk0: IMO, there needs to be some specs on various types of libraries, kind of like the Promises/A+ spec. That way, you know all the libraries offer some comparable baseline and all you have to do is choose how many special features you want
1382: [23:49:53] <spronk0> yeahhhhh i disagree
1383: [23:50:00] <spronk0> competing implementations might be good to begin with
1384: [23:50:06] <spronk0> but unless they consolidate, it just becomes a clusterfuck
1385: [23:50:37] <spronk0> the spec is useful in the way that most promises/a+ compatible libs can work somewhat interchangably, but it's not quite that simple
1386: [23:50:39] <simon_w> http://xkcd.com/927/
1387: [23:50:49] <spronk0> yarp
1388: [23:51:08] <webbower> Lol. Ya
1389: [23:51:56] <webbower> Hey. It’s done pretty well for PHP with the PSR-0 autoloading spec
1390: [23:52:03] <simon_w> Which is broken
1391: [23:52:06] <spronk0> unless you're super familiar wtih the libraries there isn't really any way to choose the "best" promises/A+ impl these days
1392: [23:52:14] <spronk0> simon_w: broken?
1393: [23:52:16] <webbower> simon_w: How so?
1394: [23:52:22] * spronk0 wouldn't call it broken..
1395: [23:52:30] <simon_w> Directly mapping case-insensitive names to case-sensitive file systems
1396: [23:52:49] <spronk0> example?
1397: [23:52:56] <webbower> Is that a pedantic issue or does it actually cause problems?
1398: [23:53:19] <simon_w> Say you've got a class HTMLThing {} in HTMLThing.php
1399: [23:53:27] <simon_w> Then you go new HtmlThing()
1400: [23:53:34] <simon_w> When tries to open HtmlThing.php
1401: [23:53:44] <spronk0> kinda your fault
1402: [23:53:50] <simon_w> No
1403: [23:54:09] <spronk0> case insensitivity isn't really meant to be used as a feature
1404: [23:54:23] <simon_w> Class names are case-insensitive, so don't treat them as case sensitive
1405: [23:54:24] <webbower> Is that really a problem? It’s like passing a number to a function that’s expecting a string. Devs need to have some responsibility
1406: [23:54:41] <spronk0> tbh PSR-0 could fix this by definnig the case rules for filenames
1407: [23:54:44] <simon_w> webbower, it's nothing like that, since that actually works
1408: [23:54:52] <spronk0> defining*
1409: [23:55:11] <webbower> Do you know if PSR-4 addresses that problem?
1410: [23:55:19] <simon_w> PSR-4 "fixes" it by saying class names are case sensitive
1411: [23:55:46] <webbower> So, PSR-0 was a stepping stone that worked pretty well and successfully made a lot of PHP code plug-n-play
1412: [23:55:47] <spronk0> also
1413: [23:55:56] <spronk0> PSR-0 still isn't at fault
1414: [23:55:59] <spronk0> per se
1415: [23:56:10] <spronk0> use a better classloader
1416: [23:56:21] <simon_w> Class maps are by far the best autoloader
1417: [23:56:25] <webbower> Plus, it’s still limited by the capabilities and warts of the programming language it’s supporting, and PHP certinaly has its share
1418: [23:56:37] <spronk0> class maps require build step
1419: [23:56:56] <spronk0> they're also not very JIT
1420: [23:57:08] <simon_w> Well, the composer generated class maps aren't
1421: [23:57:35] <simon_w> static class maps work amazingly in HHVM
1422: [23:57:51] <spronk0> how do you maintain them?
1423: [23:58:21] <simon_w> Deploy step builds one
1424: [23:58:39] <simon_w> Or build on class-loading failure in dev
1425: [23:58:41] <spronk0> hrmm
1426: [23:59:07] <spronk0> why are they better than autoloader?
1427: [23:59:36] <simon_w> They're a heck of a lot faster
1428: [23:59:45] <spronk0> citation needed

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