#silverstripe IRC Log

IRC log for 29 October 2014

All timestamps are in UTC.

1: [00:02:06] * spronkHD quit (Quit: I may need a longer sleep timer...)
2: [00:02:39] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
3: [00:06:40] * jenniferaslan quit (Quit: jenniferaslan has left the room)
4: [00:14:05] <Colin[pi]> ss23: so you like explosions? this one is pretty big: http://news.sky.com/story/1362355/us-rocket-explodes-seconds-after-lift-off
5: [00:14:33] <JeremyRoundill> Colin[pi] does that have the guy narrating it?
6: [00:14:40] <Colin[pi]> yeah
7: [00:14:40] <JeremyRoundill> "Engines at 108%"
8: [00:14:46] <JeremyRoundill> "I think that's normal"
9: [00:14:48] <JeremyRoundill> Boooom!
10: [00:15:29] <Colin[pi]> spectacular kaboom when it hits the ground
11: [00:15:37] <JeremyRoundill> Yeah.
12: [00:16:56] <Colin[pi]> all dat fuel
13: [00:20:26] <ss23> Colin[pi]: Yeah, haven't seen it yet, but saw some pictures when scrolling through twitter
14: [00:20:38] <ss23> (you can measure how busy my day is by "Have you finished scrolling through twitter yet? no? You're busy"
15: [00:21:27] <JeremyRoundill> Haha.
16: [00:21:31] <JeremyRoundill> It's almost the opposite for me.
17: [00:21:43] <ss23> You twitter more when busy? :O
18: [00:21:45] <JeremyRoundill> When it's really busy, I get almost nothing done.
19: [00:21:48] <ss23> lol
20: [00:22:21] <JeremyRoundill> Usually because when I get busy, it's 3000 different little jobs, rather than one big job.
21: [00:27:13] * antmas has joined #silverstripe
22: [00:28:15] * spronkHD has joined #silverstripe
23: [00:28:31] <JeremyRoundill> SpronkHD, what's IRC like in high def?
24: [00:28:37] <spronkHD> pretty schweert
25: [00:28:46] * spronk is all fuzzy in comparison
26: [00:28:59] <spronkHD> shutup spronk.
27: [00:29:08] <antmas> spronkHD: you should do 4k bro
28: [00:29:14] <antmas> crysis would look mean through spronkHD
29: [00:29:41] <spronk> mm lol
30: [00:29:43] <spronk> hmm
31: [00:29:55] <spronk> does anyone use os x's google account thing with google's 2FA?
32: [00:38:30] <spronk> ahhh
33: [00:38:39] <spronk> maybe generate an app password for the internet accounts section...
34: [00:41:51] <Kingy> Can I have two FormActions in a form?
35: [00:41:59] <Kingy> ie two buttons to do two different things?
36: [00:42:04] <Colin[pi]> Kingy: yes
37: [00:42:32] <Colin[pi]> FormAction('doOneThing','One Thing') FormAction('doSomethingElse','Something Else')
38: [00:43:49] <spronk> waow
39: [00:43:52] <spronk> found the nicest gnome theme ever
40: [00:44:00] <Kingy> Colin[pi]: thanks for that
41: [00:44:08] <spronk> http://gnome-look.org/content/show.php/Vertex+-+Theme?content=166318
42: [00:44:15] <spronk> it actually looks nice :|
43: [00:44:15] <Kingy> seems like it's getting caught up in the form declaration though
44: [00:44:15] <Colin[pi]> Kingy: np, used it a few times
45: [00:44:19] <Colin[pi]> yeah?
46: [00:44:42] <Kingy> i'll sspaste
47: [00:45:35] <Kingy> maybe
48: [00:46:11] <Kingy> $form = new Form($this, 'blah', $fields, $actions);
49: [00:46:13] <JeremyRoundill> That is pretty neat.
50: [00:46:17] <JeremyRoundill> I'm still using Unity.
51: [00:46:19] <Kingy> it's hitting blah, no matter what action I hit Colin[pi]
52: [00:47:51] <Colin[pi]> Kingy: have you got action methods created?
53: [00:48:06] <Colin[pi]> function doOneThing() function doSomethingElse()
54: [00:48:15] <Colin[pi]> (and allowed actions)
55: [00:48:59] <Kingy> yeah
56: [00:49:03] <Kingy> i think i'm getting it
57: [00:49:08] <Kingy> this shop is hacked
58: [00:49:11] <Kingy> story of my lif
59: [00:49:11] <Kingy> e
60: [00:49:42] <Colin[pi]> :o
61: [00:52:03] <Colin[pi]> Kingy: hacked as in like... buy viagra?
62: [00:52:41] <Kingy> nah hacked as in, lets do crazy to get it to work
63: [00:53:01] <Colin[pi]> ah k
64: [00:53:17] <Colin[pi]> I had a shop site like that too
65: [00:53:22] <Colin[pi]> started with such good intentions
66: [00:53:33] <Colin[pi]> and the end it was... OH GOD WHY
67: [00:54:05] <Kingy> makes me want to cry lol
68: [00:55:24] * spronkHD quit (Quit: I may need a longer sleep timer...)
69: [01:03:46] <simon_w|work> Bloody unstable chrome
70: [01:03:56] <JeremyRoundill> Looks like that rocket was launched a couple of kms away from a few suburbs.
71: [01:04:09] * spronkHD has joined #silverstripe
72: [01:05:23] <JeremyRoundill> I wonder what the chances of a rocket hitting a suburb are.
73: [01:05:24] <spronk> oh wow
74: [01:05:27] <spronk> my almost-3 year old daughter
75: [01:05:35] <spronk> heard Maroon 5 - Animals
76: [01:05:36] <spronk> on the radio
77: [01:05:38] <spronk> and is now singing it.
78: [01:05:58] <spronk> that song isn't really about what she thinks it is. D:
79: [01:06:19] <Kingy> hate that song with a passion
80: [01:06:22] <spronk> ja
81: [01:06:30] <spronk> "It's so catchy daddy!"
82: [01:06:33] <spronk> :'(
83: [01:06:35] <spronk> :'''''''(
84: [01:06:42] <JeremyRoundill> Catchy like herpes.
85: [01:07:31] <spronk> ikr
86: [01:11:03] * spronk empties his 100gb recycle bin
87: [01:11:19] <JeremyRoundill> Haha, I did a similar thing on my VPS, spronk.
88: [01:11:34] <JeremyRoundill> Had 2.5gb of Citadel installed.
89: [01:11:41] <spronk> heh
90: [01:11:46] <JeremyRoundill> Was taking up half my disk space.
91: [01:11:50] <JeremyRoundill> Plus, it's terrible.
92: [01:12:01] <spronk> heh
93: [01:12:02] <spronk> :(
94: [01:12:28] <JeremyRoundill> Uninstalled, now I don't get the automatic emails from SiteHost telling me I'm low on space :D
95: [01:14:04] <spronk> :D
96: [01:14:04] <spronk> yeah
97: [01:14:13] <spronk> i really need to go and do a proper config of our logging emails
98: [01:14:19] * spronk gets way too many meaningless emails
99: [01:14:24] <JeremyRoundill> Yeah
100: [01:14:28] <JeremyRoundill> I get the same.
101: [01:14:40] <spronk> temporary connectivity problems, emails failing to send and being requeued etc
102: [01:14:47] <JeremyRoundill> Is there an easy way of customising a contact form with SS?
103: [01:14:59] <spronk> userforms?
104: [01:15:02] <JeremyRoundill> As in, I need my inputs in LIs to fit the template I've got
105: [01:15:11] <spronk> oh?
106: [01:15:15] <spronk> create a custom .ss for that form
107: [01:15:19] <JeremyRoundill> Dag
108: [01:15:25] <JeremyRoundill> I didn't want to do that :)
109: [01:15:31] <spronk> :P
110: [01:15:33] <spronk> its not that bad reallyt
111: [01:15:35] <spronk> http://doc.silverstripe.org/framework/en/topics/forms
112: [01:15:47] <JeremyRoundill> Yeah, I was reading through that
113: [01:15:53] <spronk> wow
114: [01:15:55] <spronk> that page got long
115: [01:16:00] <spronk> it doesn't really need to be that long o_O
116: [01:16:10] <JeremyRoundill> All the SS pages tend to be quite long.
117: [01:16:23] <JeremyRoundill> Sometimes I feel like tidying them up a bit.
118: [01:16:25] <spronk> pretty much <form $FormAttributes> $Fields.dataFieldByName(FieldName)
119: [01:16:36] <spronk> yeahh
120: [01:16:45] <spronk> people underestimate how difficult it is to create good docs lol
121: [01:16:57] <JeremyRoundill> Which is why I don't tidy them up.
122: [01:17:01] <JeremyRoundill> It'd take too long. :D
123: [01:17:04] <spronk> :D
124: [01:17:07] <spronk> mm
125: [01:17:14] <spronk> i had been documenting one of our internal APIs last week
126: [01:17:17] <spronk> spent a day
127: [01:17:20] <spronk> got like
128: [01:17:23] <spronk> 4 methods documented :/
129: [01:19:04] <spronk> hmm
130: [01:19:09] <spronk> does OSX's Internet Accounts use SSL for email......
131: [01:19:32] <JeremyRoundill> Don't use a Mac. :O
132: [01:23:54] <spronk> mac pwn
133: [01:23:56] <spronk> sorta
134: [01:25:18] <simon_w|work> spronk, it tries to by default
135: [01:25:25] <simon_w|work> Will fallback to non-SSL if can't connect
136: [01:25:31] <JeremyRoundill> I had a Mac once. I dunno what all the hate's about, it had a great battery life and did a fantastic job holding down my stack of papers.
137: [01:29:06] <novaweb> Dudes and dudettes... Do we know where to download older versions of Chrome?
138: [01:30:02] <spronk> ah right
139: [01:30:08] <JeremyRoundill> http://filehippo.com/download_google_chrome/
140: [01:30:19] <JeremyRoundill> Check that out, novaweb. Should have some older versions.
141: [01:30:42] <JeremyRoundill> novaweb, those look like they're all dev versions, but they should have the live versions on FileHippo too.
142: [01:32:54] * Tanger has joined #silverstripe
143: [01:53:35] * UncleCheese quit (Ping timeout: 264 seconds)
144: [01:53:49] <mahfuz> I am stuck with one issue. Can anyone help me out?
145: [01:53:51] <JeremyRoundill> Sure
146: [01:55:19] <antmas> mahfuz: don't need to ask for help, just ask away :)
147: [01:57:07] <mahfuz> Thanks. Here is the code - http://www.sspaste.com/paste/show/545044081902e
148: [01:58:18] <JeremyRoundill> Surely you just get your Tag object and use the relation you have there.
149: [01:58:44] <JeremyRoundill> <% loop Tag.Photos %> should do the trick if I haven't missed something.
150: [01:59:12] <JeremyRoundill> Obviously, you'll need to make sure Tag is passed to your template.
151: [02:00:46] <mahfuz> But how do I put the link with keyword in the Individual Photo Page where I am showing all the Keywords. I am basically stuck with this
152: [02:01:20] <mudmonth> can you specify an alternative label for a db field without using getCMSFields
153: [02:01:25] <JeremyRoundill> You should be able to loop over a photo's tags, right?
154: [02:01:34] <JeremyRoundill> <% loop Photo.Tags %>
155: [02:01:41] <simon_w|work> mudmonth, fieldLabels or something
156: [02:01:53] <mahfuz> <% loop $Keywords %> <a href="?????" title="$Title">$Title</a><% if $Last !=1 %>,<% end_if %> <% end_loop %> - what to put in place of ?????????
157: [02:02:15] <JeremyRoundill> That depends. :P
158: [02:02:43] <JeremyRoundill> You could create a route in config.yml to show the page.
159: [02:02:49] <mahfuz> Keywords is of Tag type
160: [02:03:22] <JeremyRoundill> Or you could create a page which takes a tag id and displays the photos in that tag.
161: [02:03:30] <mahfuz> Could you please give me an example?
162: [02:03:39] <JeremyRoundill> I don't think I've got one.
163: [02:03:48] <JeremyRoundill> You could just make Tag a Page.
164: [02:04:14] <JeremyRoundill> And create Tag.ss in your Layout folder.
165: [02:04:14] <simon_w|work> mudmonth, https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/model/SiteTree.php#L2153-L2190
166: [02:05:10] <JeremyRoundill> Although that would likely make your site structure look a bit yuck in the Pages tab.
167: [02:06:02] <JeremyRoundill> mahfuz: I reckon create a Tag controller and specify it in your config.yml
168: [02:06:04] <mahfuz> what will be better approach then?
169: [02:06:43] <JeremyRoundill> mahfuz: http://pastebin.com/ymvnCB6E
170: [02:07:19] <JeremyRoundill> Then define a Tag_Controller which grabs the tag id using something like this "$request->getVar('tag_id');"
171: [02:07:44] <JeremyRoundill> And returns the page you want.
172: [02:08:00] <mudmonth> thanks simon_w|work
173: [02:08:15] <JeremyRoundill> Then you should be able to go to yourdomain.com/tags?tag_id=12
174: [02:08:48] <mahfuz> Jeremy: what to write for the link then?
175: [02:08:55] <JeremyRoundill> yourdomain.com/tags?tag_id=12
176: [02:09:11] <JeremyRoundill> With 12 replaced with the ID of your tag.
177: [02:09:37] <JeremyRoundill> Or alternatively, you could add a URL friendly field to your model.
178: [02:09:49] <JeremyRoundill> And put that in place of 12
179: [02:09:54] <mahfuz> Thanks so much Jeremy. Let me try with your suggestion.
180: [02:13:28] <simon_w|work> Hmm, 1.3 GB (and climbing) of profile data. I feel like I should be able to find something to work with.
181: [02:14:12] <simon_w|work> "Fatal error: Maximum execution time of 300 seconds exceeded" Crap, first time I've hit that while profiling
182: [02:14:49] <JeremyRoundill> Haha, gotta love that.
183: [02:22:27] <simon_w|work> It only got 5/6ths of the way through the loop too :(
184: [02:28:43] * markcl has joined #silverstripe
185: [02:28:57] <markcl> Hello
186: [02:30:11] <simon_w|work> Hello
187: [02:30:12] <markcl> Any way to get the original url of a VirtualPage's original page
188: [02:30:14] <markcl> ?
189: [02:32:43] <markcl> never mind
190: [02:32:44] <markcl> found it
191: [02:32:50] <markcl> CopyContentFrom
192: [02:34:48] <markcl> such a weird name
193: [02:34:53] <markcl> so unintuitive
194: [02:34:59] <markcl> should have been something like OriginalPage
195: [02:41:13] * spronkHD quit (Quit: bleep bleep bloop bloop)
196: [02:42:03] * spronkHD has joined #silverstripe
197: [02:42:23] <JeremyRoundill> Holy moley.
198: [02:43:15] <JeremyRoundill> So the template I have breaks if I have <input type="text" class="text">
199: [02:43:56] <JeremyRoundill> And FormField takes my TextField, removes Field from it, converts it to lowercase then adds it to my field as a class.
200: [02:44:08] <JeremyRoundill> Which means I have loads of input type="text"s
201: [02:44:36] <spronkHD> yerp
202: [02:44:42] <spronkHD> best to use the standard form field
203: [02:45:01] <JeremyRoundill> Nah, I'll just get him to change the styles.
204: [02:45:08] <JeremyRoundill> I can't be bothered reading into it further :D
205: [02:45:20] <JeremyRoundill> Plus, it doesn't work for type="email" because he hasn't styled that.
206: [02:50:21] <adrexia> .text is way too generic anyway
207: [02:51:19] <JeremyRoundill> Yeah, seems that way.
208: [02:51:48] <JeremyRoundill> I'd change it and submit a pull request, but it would break too many things.
209: [02:52:03] <JeremyRoundill> .ss-text-field or something
210: [02:52:23] <JeremyRoundill> Unless you're talking about the CSS
211: [02:52:32] <JeremyRoundill> In which case, yeah, I'd change that too. But it's not mine :D
212: [02:53:08] <JeremyRoundill> Oh yeah mahfuz, how'd you get on?
213: [02:53:20] * ocmnt quit (Ping timeout: 258 seconds)
214: [02:54:24] * Cheddam quit (Ping timeout: 245 seconds)
215: [02:56:32] <spronk> that conflicting feeling where.... you have no time, so someone builds the app that you had an idea for. Damn, no selling opportunity. But, YUS FINALLY I CAN USE IT
216: [02:56:54] <antmas> spronk: oh god I know this
217: [02:57:10] <mahfuz> Jeremy: Please have a look into my code - http://www.sspaste.com/paste/show/5450520befac0
218: [02:57:33] <mahfuz> Its giving Page not found error
219: [02:57:44] <spronk> antmas, in my case, unibox app
220: [02:57:50] <spronk> http://www.uniboxapp.com/
221: [02:57:55] <spronk> they've done a daaamn nice job too
222: [02:58:29] <antmas> spronk: oh nice
223: [02:58:39] <antmas> yeah fuck building anything to do with email
224: [02:58:47] <spronk> mm
225: [02:58:51] <spronk> i wanted contact-centric email
226: [02:59:00] <Colin[pi]> +1 antmas
227: [02:59:07] <spronk> and
228: [02:59:13] <spronk> single view of attachments from a particular person
229: [02:59:30] * hailwood has joined #silverstripe
230: [02:59:32] <antmas> does sound quitet cool
231: [02:59:45] <antmas> spronk: Y U NO ANDROID THO
232: [02:59:46] <hailwood> Hey guys,
233: [02:59:47] <hailwood> Is there a working demo up of unclecheese/silverstripe-event-calendar anywhere?
234: [03:01:11] <antmas> hailwood: I think he did have one somewhere
235: [03:01:15] <simon_w|work> antmas, cause the only thing worse than doing something with email is doing it for mobile email
236: [03:01:37] <spronk> hmm
237: [03:01:40] <spronk> now that i actually use it
238: [03:01:49] <spronk> they are missing a few key features
239: [03:01:49] <mahfuz> I think I need to insert the name of the function showphotos in some places
240: [03:02:16] <antmas> hailwood: there is this http://dataobjectmanager.carlinowebdesign.com/conferences but it's no workies
241: [03:02:39] <antmas> simon_w|work: exacry
242: [03:02:47] <JeremyRoundill> mahfuz: /tags/showphotos?tag_id=1&flush=1
243: [03:03:32] <JeremyRoundill> Forgot the step where you have to tell the controller which method you want to call. :P
244: [03:05:01] <adrexia> Ryan-Toast, http://fezvrasta.github.io/bootstrap-material-design/
245: [03:05:05] <mahfuz> Let me try with this
246: [03:05:21] <Ryan-Toast> adrexia: yeah that’s the only one out there, and it’s fugly.
247: [03:05:32] <adrexia> its not *too* bad
248: [03:05:41] <Ryan-Toast> adrexia: it’s pretty bad
249: [03:05:53] <adrexia> has missed the interaction design compoentnt
250: [03:06:14] * irogue_ has joined #silverstripe
251: [03:06:15] <adrexia> ...oh it gets worse near the bottom
252: [03:06:39] <irogue_> ooo-er, what'd I walk into here?
253: [03:06:42] <adrexia> Material Design for Bootstrap is a theme for Bootstrap 3 which lets you use the new Google Material Design in your favorite front-end framework.
254: [03:06:52] * UncleCheese has joined #silverstripe
255: [03:06:57] <adrexia> ...it also assumes bootstrap is my favourite framework
256: [03:06:57] <adrexia> :D
257: [03:07:05] <adrexia> yeah ok.
258: [03:07:06] <Ryan-Toast> adrexia: you know it is :P
259: [03:07:08] <irogue_> adrexia: which it totally is? right? right? :P
260: [03:07:14] <adrexia> I'll give it a 6/10 for being first
261: [03:07:22] <Ryan-Toast> I’ll give it a 3/10
262: [03:07:24] <adrexia> ...err.... yeah... tots
263: [03:07:32] <Ryan-Toast> for failing.
264: [03:07:35] <simon_w|work> Huh, apparently my airpoints status means I get to jump the queue when ringing
265: [03:07:36] <adrexia> Ryan-Toast, I haven't looked at the css yet ;)
266: [03:07:38] <irogue_> adrexia; totally not first. first half-decent option tho IMO
267: [03:07:43] <antmas> Google Material Design eh?
268: [03:07:44] <irogue_> before that was YUI...
269: [03:08:01] <Ryan-Toast> adrexia: if it’s anything like the implementaion :P
270: [03:08:02] <adrexia> irogue_, this: http://fezvrasta.github.io/bootstrap-material-design/
271: [03:08:03] <mahfuz> Jeremy: still page not found error. I have run dev/build as well as ?flush=1
272: [03:08:09] * irogue_ shudders at the memory of YUI
273: [03:08:10] <Colin[pi]> am I the only one that doesn't really like Material Design?
274: [03:08:19] <Ryan-Toast> Colin[pi]: Yes.
275: [03:08:21] <irogue_> Colin[pi]: no, I don't get it either
276: [03:08:31] <adrexia> YUI graduated/was thropwn out and replaced with Pure
277: [03:08:35] <adrexia> puree is... good
278: [03:08:38] <Colin[pi]> I mean it's kinda ugly
279: [03:08:50] <adrexia> whatevs
280: [03:08:52] <adrexia> :P
281: [03:08:56] <antmas> I like it, but it's pretty 'normal'
282: [03:08:58] <Ryan-Toast> adrexia: I’m switching between my material design thing, and this thing: http://i.imgur.com/Ouyh6X9.jpg
283: [03:09:05] <mahfuz> Jeremy: do you noticed I have Tag.php with the Tag Class derived from Dataobject and Tags.php with Tags_Controller class
284: [03:09:11] <Colin[pi]> antmas: I think I like metro more than this, and that's saying something
285: [03:09:15] <irogue_> material just seems to me like Flat with a couple of drop shadows and animations
286: [03:09:16] <mahfuz> Is that ok?
287: [03:09:21] <antmas> Colin[pi]: yeah same here
288: [03:09:22] <irogue_> which seem weird when combined with Flat
289: [03:09:32] <Colin[pi]> irogue_: yeah that was weird for me too
290: [03:09:37] <antmas> drop shadows and flat is weird
291: [03:09:38] <JeremyRoundill> mahfuz: /tags/showphotos?tag_id=1 works for me.
292: [03:09:56] <adrexia> irogue_, it sort of is, yes ;)
293: [03:10:01] <adrexia> plus bright primary colours
294: [03:10:15] <adrexia> and decent interaction design
295: [03:10:19] <JeremyRoundill> mahfuz: try replacing the content of showphotos with return "test"; just in case you've got some problem in there.
296: [03:10:31] <mahfuz> Or is my rule in config.yml correct?
297: [03:10:34] <mahfuz> Director: rules: 'tags//$Action': 'Tags_Controller'
298: [03:10:47] <JeremyRoundill> mahfuz: Yeah, it looks fine
299: [03:11:34] <antmas> adrexia: Ryan-Toast the searchbox animation on that fezvrasta link is bad
300: [03:11:36] <antmas> :|
301: [03:11:47] <adrexia> that is not a good implemention
302: [03:11:51] <Ryan-Toast> antmas: everything on that page is bad
303: [03:12:14] <mahfuz> in the documentation page example some more options are there like this - Director: rules: 'fastfood//$Action/$ID/$Name': 'FastFood_Controller'
304: [03:12:16] <antmas> those dropdowns are bad
305: [03:12:24] <antmas> Ryan-Toast: woah, yeah the more I try the things...
306: [03:12:25] <adrexia> http://www.google.com/design/spec/material-design/introduction.html
307: [03:12:26] <simon_w|work> and they should feel bad
308: [03:13:00] <adrexia> they went for the paper over the top thing
309: [03:13:22] <adrexia> I am still more a fan of the move the page and show nav under it thing I think
310: [03:13:35] <adrexia> but they are both better than drop downsa
311: [03:13:47] <antmas> I do like the sliders though
312: [03:14:01] <adrexia> ...
313: [03:14:21] <JeremyRoundill> mahfuz: Doesn't change whether or not it makes it through the route to your controller.
314: [03:14:38] <JeremyRoundill> mahfuz: Have you tried replacing the content of your showphotos method with return "test"; ?
315: [03:15:08] <mahfuz> let me try that
316: [03:15:20] <Colin[pi]> <antmas> those dropdowns are bad
317: [03:15:21] <Colin[pi]> link?
318: [03:17:00] <antmas> Colin[pi]: http://fezvrasta.github.io/bootstrap-material-design/
319: [03:17:53] <JeremyRoundill> http://www.nasa.gov/multimedia/nasatv/index.html#.VFBbwnWUdoA
320: [03:18:05] <JeremyRoundill> Conference post-explosion.
321: [03:18:10] <JeremyRoundill> Still live streaming
322: [03:18:32] <mahfuz> Jeremy: still page not found
323: [03:19:06] <JeremyRoundill> mahfuz: Did you flush post change?
324: [03:19:19] <Colin[pi]> antmas: oh, yeah they are a bit crap
325: [03:19:50] <mahfuz> Yes i did. first dev/build and then ?flush=1 several times to make sure
326: [03:20:18] <antmas> lol this consultancy agency is called 'Knoware'
327: [03:20:24] <antmas> slightly unfortunate
328: [03:20:57] <mahfuz> is there any issue in config.yml
329: [03:21:42] <JeremyRoundill> mahfuz: Doesn't look like it. Wanna post the full file?
330: [03:22:04] <mahfuz> ok Jeremy
331: [03:22:54] <antmas> woah, assualt rifle cops!
332: [03:23:07] <JeremyRoundill> Ooh, where?
333: [03:23:13] <irogue_> coming for antmas
334: [03:23:16] <irogue_> :P
335: [03:23:33] <antmas> In Nelson, Parkers Rd - looking for a gunman
336: [03:24:09] <irogue_> http://iforce.co.nz/i/vgshjgwn.ohb.jpg lawl its a me
337: [03:25:31] <mahfuz> Jeremy: here is all the code - http://www.sspaste.com/paste/show/545058c159d9e
338: [03:25:38] <irogue_> antmas: are you the gunman?
339: [03:25:45] <antmas> spronk: that's nice of snap ;)
340: [03:25:55] <antmas> irogue_: shhhhhh
341: [03:26:23] <antmas> irogue_: who's the guy next to you? can he even drink?
342: [03:26:24] <antmas> :P
343: [03:26:41] <irogue_> you mean micmania1? :P
344: [03:26:46] <antmas> :O
345: [03:27:08] <antmas> irogue_: looks so young!
346: [03:27:17] <spronk> haha
347: [03:27:17] <spronk> yeah
348: [03:27:34] <spronk> thats micmania1?
349: [03:27:45] * antmas mind is blown
350: [03:27:47] <spronk> are you suuure? because he looks 10.
351: [03:28:12] <JeremyRoundill> mahfuz: You have 2 "Director:"s in your config.yml
352: [03:29:07] <mahfuz> should i combine them?
353: [03:29:14] <JeremyRoundill> Yes
354: [03:29:30] <mahfuz> under one Director: header
355: [03:29:34] <JeremyRoundill> Yup
356: [03:30:01] <mahfuz> Sorry I am new to SS and specially don't understand config.yml fully
357: [03:30:14] <irogue_> mahfuz: don't worry, nobody does
358: [03:30:35] <JeremyRoundill> irogue_, mahfuz: I under stand it. It's all magic.
359: [03:30:40] <JeremyRoundill> understand even
360: [03:31:27] <mahfuz> Thanks
361: [03:32:48] <mahfuz> another thing came to my mind from one earlier comment. If I want to generate only one page using flush, is the page url followed by ?flush=1 enough like this - ...../tags/showphotos?tag_id=22&flush=1
362: [03:33:27] <mahfuz> test is showing now
363: [03:33:40] <mahfuz> Its magic really
364: [03:33:58] <mahfuz> Let me put the real code in place
365: [03:34:00] <JeremyRoundill> flush=1 is usually enough.
366: [03:34:15] <JeremyRoundill> Sweet as.
367: [03:34:32] <JeremyRoundill> I still read your name as irouge_.
368: [03:34:36] * micmania1 has joined #silverstripe
369: [03:34:53] <JeremyRoundill> Like a deep Apple red. :D
370: [03:36:16] <irogue_> speak of the devil, micmania1
371: [03:36:26] <micmania1> :o
372: [03:36:28] <Ryan-Toast> How old is micmania1?
373: [03:36:43] <antmas> Ryan-Toast: asks the important questions
374: [03:36:49] <Ryan-Toast> ( ͡° ͜ʖ ͡°)
375: [03:36:53] * nicolaas has joined #silverstripe
376: [03:37:07] <micmania1> 24 last time i counted
377: [03:37:19] <antmas> o.O
378: [03:37:20] <spronk> you're lying
379: [03:37:21] <spronk> :p
380: [03:38:14] <adrexia> <irogue_> http://iforce.co.nz/i/vgshjgwn.ohb.jpg lawl its a me
381: [03:38:26] <adrexia> aww that photo is adorable :D
382: [03:39:46] <irogue_> that's right on the borderline between beer/cider and spirits, so not very drunken yet
383: [03:40:13] <micmania1> wasn’t that when we basically ran out of beer
384: [03:40:24] <micmania1> and ended up in the shots cupboard
385: [03:40:36] <adrexia> Sean's still tehre, its early ;)
386: [03:40:48] <mahfuz> Jeremy: one other issue - is there any problem with this line. it seems it is not getting the correct template. - return $this->customise($data)->renderWith(array('Page_keywordSearchResults', 'Page'));
387: [03:40:52] <irogue_> micmania1: yep
388: [03:41:21] <irogue_> adrexia: good eyes
389: [03:41:30] <adrexia> ;)
390: [03:41:32] <irogue_> I was like "wait what sean's in the photo?" and had to go hunting
391: [03:41:44] <adrexia> well, I'm pretty sure at this point I was just out of range of the camera
392: [03:42:07] <nicolaas> I am trying to run some tests in 3.1, but the temp database does not seem to be created
393: [03:42:12] <nicolaas> any idea what I can do about that?
394: [03:42:36] <nicolaas> I also tried dev/tests/startsession - but without any luck - again a strange error
395: [03:42:39] <markcl> nicolaas: probably db permissions?
396: [03:42:53] <markcl> maybe you can try using sqlite for the unit tests, also makes them faster by a lot
397: [03:43:13] <nicolaas> that is what I thought, but when I start a new project it creates the db without any hassle
398: [03:43:15] <markcl> around 3-4x faster on my case
399: [03:43:26] <nicolaas> in terms of sqllite, I have never used that, sounds like a lot of work
400: [03:43:39] <nicolaas> I am not really worried about speed, because I just want to create one test and run it
401: [03:43:40] <markcl> maybe you forgot to call parent::setUp() when you oveload setUp
402: [03:43:40] <markcl> ?
403: [03:43:44] <markcl> happened to me one time
404: [03:44:10] <markcl> parent::setUp() calls the db create stuff
405: [03:44:12] <micmania1> nicolaas: you running a single test?
406: [03:44:29] <nicolaas> I have not written the test yet
407: [03:44:37] <nicolaas> but I am just running the standard ones...
408: [03:44:44] <nicolaas> btw, thank you for your help!
409: [03:44:55] <nicolaas> SHOW FULL FIELDS IN "Member" Table 'dev_tmpdb7724580.Member' doesn't exist in /var/www/3.1.davidtrubridge.com/framework/model/MySQLDatabase.php on line 598
410: [03:44:56] <JeremyRoundill> mahfuz: My usual trick with that sort of thing is just to make sure the objects you've got are all good by using var_dump.
411: [03:45:09] <nicolaas> that is the error I get
412: [03:45:29] <micmania1> you running a single test or all tests or just a specific module?
413: [03:45:41] <spronk> FUCK
414: [03:45:45] <spronk> i forgot to eat lunch
415: [03:48:28] <JeremyRoundill> spronk: Means you get to go home early though :D
416: [03:48:36] * spronk works at home
417: [03:48:36] <spronk> :P
418: [03:48:57] <JeremyRoundill> spronk: Means you get to go to the pub early though. :P
419: [03:49:59] <mahfuz> I changed the theme from CMS as the yml one was not working. Now I found that in the yml the defauld theme was there. Replaced it and then did ?flush=1 , now it seems working partially
420: [03:50:58] <micmania1> https://twitter.com/orbitalsciences/status/527225682414567424 - Yeah, your rocket exploded.
421: [03:52:33] <irogue_> "vehicle anomaly"
422: [03:52:49] <irogue_> as posted in SS Fun earlier
423: [03:52:53] <irogue_> "One of our competitors, Orbital Sciences, has a contract to resupply the International Space Station, and their rocket honestly sounds like the punch line to a joke. It uses Russian rocket engines that were made in the ’60s. I don’t mean their design is from the ’60s—I mean they start with engines that were literally made in the ’60s and, like, packed away in Siberia somewhere." -- Elon Musk, 2 years ago
424: [03:54:22] <JeremyRoundill> irogue_: Really?
425: [03:54:32] <irogue_> yup
426: [03:54:55] <irogue_> soviet moon program rockets
427: [03:55:07] <irogue_> using a new type of fuel they weren't originally made to use
428: [03:55:20] * Phlunk3 quit (Quit: Leaving)
429: [03:55:22] <irogue_> and a test one blew up in May
430: [03:55:50] <JeremyRoundill> Why doesn't the US just fund NASA properly?
431: [03:55:50] <mahfuz> Jeremy: Just wanted to learn. Did you mean to use var_dump inside the function in the Controller before returning?
432: [03:56:18] <irogue_> JeremyRoundill: well that's a whole issue, but this rocket was made by Orbital Sciences, not NASA. OS chose to use the russian engines
433: [03:56:26] <JeremyRoundill> mahfuz: Just wherever you want to check what your objects look like.
434: [03:56:43] <JeremyRoundill> For your case, I'd do it just before returning, and I'd return an empty string.
435: [03:56:50] <JeremyRoundill> And I'd move back up the function from there.
436: [03:56:59] <irogue_> NASA split the supplies contract across two companies, Orbital Sciences are doing half of the supply runs, SpaceX are doing the other half
437: [03:57:22] <JeremyRoundill> irogue_: I know, but none of this would happen if NASA had a proper budget and didn't have to pass important jobs off to private companies.
438: [03:57:31] <mahfuz> Thanks Jeremy for the tips
439: [03:57:57] <JeremyRoundill> mahfuz: No problem dude.
440: [03:58:07] <JeremyRoundill> mafuz: or dudette
441: [03:58:09] <irogue_> JeremyRoundill: Challenger happened under NASA's watch
442: [03:58:23] <JeremyRoundill> irogue_: I mean the 60s Russian engines.
443: [03:58:39] <JeremyRoundill> irogue_: Of course there's always the possibility of rockets exploding.
444: [03:59:21] <irogue_> to be fair, we don't know for sure yet that the russian engines were the cause - but it's a likely candidate
445: [03:59:39] <JeremyRoundill> irogue_: It just seems kinda weird to be using 50 year old rockets.
446: [03:59:59] * spronkHD quit (Quit: I may need a longer sleep timer...)
447: [04:00:24] <irogue_> very
448: [04:00:36] <irogue_> those engines were awesome in their day
449: [04:00:43] <irogue_> not dissing the russian engineering or anything
450: [04:00:51] <irogue_> but 50 years in storage can do all kinds of damage
451: [04:01:20] <superspring> hey guys, is there a way to add a UNION statement to an SQLQuery?
452: [04:01:57] <Stomach> fuck cloudflare
453: [04:01:59] <Stomach> slash my life
454: [04:02:00] <Stomach> :(
455: [04:02:11] <irogue_> Stomach: ?
456: [04:02:29] <Stomach> 413 Request Entity Too Large - cloudflare-nginx
457: [04:02:34] <Stomach> fuck you proxy
458: [04:02:35] <Stomach> FUCK YOU
459: [04:02:58] <irogue_> lol
460: [04:03:22] <Stomach> so annoying
461: [04:03:57] <simon_w|work> superspring, no
462: [04:04:00] <micmania1> superspring: I don’t think you can through the ORM. You can use DB::query() though.
463: [04:04:30] <Stomach> I twitted them and they havent even responded yet. whats the point of twitter if they dont respond immediately
464: [04:05:13] <superspring> simon_w|work: micmania1: can i add a custom SQL query to a DataList?
465: [04:05:15] <mahfuz> Jeremy: its dude
466: [04:05:26] <simon_w|work> superspring, nope
467: [04:05:56] <mahfuz> Weired thing is happening here. Its showing the result page but the heading and sidebar parts are missing
468: [04:06:05] <superspring> simon_w|work: so if i wanted to add another query into a single GridList result set, is that doable?
469: [04:06:34] <simon_w|work> superspring, of the same object?
470: [04:06:36] * novaweb o/ later haters!
471: [04:06:50] <superspring> simon_w|work: yes, same type...
472: [04:06:55] * novaweb quit (Quit: Leaving)
473: [04:06:59] <simon_w|work> superspring, convert both to ArrayList, merge them
474: [04:07:15] <superspring> simon_w|work: and then convert them back to DataList?
475: [04:07:32] <mahfuz> I kept my templates in layout folder so the Page layout takes necessary templates from there. It works for other pages but strangely behaving here
476: [04:07:33] <simon_w|work> superspring, nope. Use the ArrayList in the gridfield
477: [04:07:45] <superspring> simon_w|work: will try, thanks...
478: [04:09:55] * spronkHD has joined #silverstripe
479: [04:10:46] * hailwood quit (Quit: Leaving.)
480: [04:11:08] * spronkHD quit (Client Quit)
481: [04:14:55] * Jakx has joined #silverstripe
482: [04:15:11] * Stomach quit (Ping timeout: 264 seconds)
483: [04:15:50] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
484: [04:17:12] <Jakx> I'm sending emails from 2.4. If I run more than one instance of my class's send email method, the 1st instantiation's emails come through fine, but any instance thereafter come through blank. If I $email->debug(), I see all the email content, from each instance, in the browser, just fine. Has anyone ever encountered this?
485: [04:20:01] <mahfuz> Jeremy: what I found is the $SiteConfig Properties and Forms are not showing up in the result page
486: [04:20:16] <irogue_> Jakx: so like... $e1 = new Email(); $e1->send(); $e2 = new Email(); $e2->send(); ?
487: [04:20:23] <irogue_> and only e1 is sending, not e2?
488: [04:21:17] <Jakx> irogue_, almost, e1 is sending and arrives with content, e2 is sending but arrives blank
489: [04:22:09] <irogue_> weird
490: [04:22:25] <irogue_> definitely havent encountered that, and I'm doing a lot of emailing from snappernet.co.nz which is 2.4
491: [04:22:49] <Jakx> irogue, yeah :S. It's also weird that if I print a debug before I send, I see the content for all emails about to sent, even if they are about to turn up blank.
492: [04:23:33] <irogue_> which version of 2.4?
493: [04:23:53] <Jakx> irogue_, that's a good question. I don't think I have a record of it, is there a way to tell?
494: [04:24:00] <Jakx> ^ might be a dumb question, sorry :(
495: [04:25:13] <irogue_> Jakx: check in sapphire/docs/en/changelogs
496: [04:25:17] <irogue_> see what the newest changelog is
497: [04:26:35] <Jakx> irogue, doesn't have a changelog :S, I see some that relate to 3rd party stuff though, e.g tinymce
498: [04:27:50] <irogue_> Jakx: is older than 2.4.6 if no changelog
499: [04:28:09] <irogue_> so I'd upgrade anyway - no idea if that's the problem, but you're just asking to be haxxed with a 2.4 that old :P
500: [04:28:19] <Jakx> irogue_, good advice. ty
501: [04:28:24] <irogue_> latest 2.4 is 2.4.13
502: [04:30:15] <irogue_> and make super sure you're not doing something like $e1 = new Email(); $e1->send(); $e1->setBody(); $e1->send();
503: [04:30:19] <irogue_> cos that shit don't work
504: [04:31:21] <Jakx> irogue_, pretty sure I'm not, that pattern doesn't suggest so, at any rate.
505: [04:34:48] * veb has joined #silverstripe
506: [04:37:27] * spekulatius quit (Quit: Leaving)
507: [04:38:47] * Ryan-Toast quit (Quit: Ryan-Toast)
508: [04:38:49] <Jakx> irogue_, all up to date, didn't fix it sadly. It is weird, every email debugs perfectly before it's about to send. Then every email that isn't send by the first instance, comes through blank :(
509: [04:39:37] <irogue_> Jakx: pastie the code you're using to send?
510: [04:42:48] <Jakx> irogue_, line 18 onwards: http://www.sspaste.com/paste/show/54506ad3198b8
511: [04:44:15] <irogue_> yeah, looks like you're doing email->send inside a foreach loop
512: [04:45:06] <Jakx> irogue_, works fine if I'm only instantiating sendEmail() once.
513: [04:45:36] <Jakx> irogue_, I'll receive 5 emails to different contacts from the first instance, then 3 blanks for the second instance... heh
514: [04:45:41] <irogue_> hmm
515: [04:45:42] <irogue_> weird
516: [04:45:43] <Jakx> irogue_, reckon the loop is the issue?
517: [04:45:58] <irogue_> i've never had ->send() on the same email object work properly
518: [04:46:39] * spronkHD has joined #silverstripe
519: [04:46:46] <irogue_> but that said, if the issue is on a whole new call of your sendEmail function, I don't see how it could be effected
520: [04:47:57] <Jakx> irogue_, here's a peak at the debug output (one debug printed for each ->send()): https://dl.dropboxusercontent.com/u/37967288/debug.html
521: [04:48:01] * cloph_away has joined #silverstripe
522: [04:48:29] * cloph quit (Ping timeout: 265 seconds)
523: [04:48:46] <Jakx> irogue_, the first 4 send with content, then every one after that comes through blank. (one instance of sendEmail() per "Taxpayer")
524: [04:49:21] <Jakx> note how email 5 is a new "Taxpayer"
525: [04:50:31] * nicolaas quit (Remote host closed the connection)
526: [04:50:59] <Jakx> am I riding the template cache a bit too hard maybe?
527: [04:51:20] <irogue_> maybe
528: [04:51:31] <irogue_> idk
529: [04:51:51] <Jakx> irogue_, all good. Thanks heaps for putting some thought to it, definitely gives great direction.
530: [04:52:53] <irogue_> could you do Debug::dump($email) rather than $email->debug() perhaps?
531: [04:53:02] <irogue_> get the actual email object and see if you can spot any difference ther
532: [04:56:21] <Jakx> irogue_, thanks dude I'll have a comb through. Might take a while
533: [04:57:25] <irogue_> sweet
534: [04:57:32] <irogue_> time for me to disappear anyway
535: [04:57:52] <Jakx> irogue_, just made a massive breakthrough. I took away the pdf attachments, and the content arrives fine
536: [04:58:01] <irogue_> ah ok
537: [04:58:11] <Jakx> irogue_, thanks for pointing me in the right direction dude, the dump was great suggestion.
538: [04:58:30] * irogue_ giggles
539: [04:58:40] <irogue_> "the dump was a great suggestion"
540: [04:58:54] <Jakx> irogue_, hewhewhew
541: [05:01:29] * irogue_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
542: [05:01:56] * willr_ has joined #silverstripe
543: [05:02:05] * willr_ quit (Client Quit)
544: [05:05:39] * Kingy is now known as Kingy[a]
545: [05:05:53] <spronkHD> lol
546: [05:06:00] <spronkHD> pluuuhrrrhhhhrghghh
547: [05:10:14] <simon_w|work> Well, my profile request now times out during the output stage
548: [05:10:19] <simon_w|work> So I guess that's progress
549: [05:11:32] * jojojojo has joined #silverstripe
550: [05:12:11] <jojojojo> Hello people!! Does anyone know if its possible to print the index of an array in SS when looping over an ArrayList
551: [05:12:53] * micmania1 quit (Quit: micmania1)
552: [05:41:06] <simon_w|work> Bloody heck, Chrome is shit
553: [05:43:39] <spronkHD> lolya
554: [05:44:15] * spronkHD is now known as spronk2
555: [05:49:03] * Stomach has joined #silverstripe
556: [06:14:32] <spronk2> RAID TUNING
557: [06:14:33] <spronk2> YEAHH
558: [06:28:40] * r_hector has joined #silverstripe
559: [06:33:35] <Colin[pi]> simon_w|work: yup
560: [06:34:14] * spronk2 quit (Quit: I may need a longer sleep timer...)
561: [06:53:16] * wmk has joined #silverstripe
562: [07:03:22] * Shrike_Finland has joined #silverstripe
563: [07:04:08] * vebbb has joined #silverstripe
564: [07:07:57] * veb quit (Ping timeout: 260 seconds)
565: [07:09:15] * Kingy[a] is now known as Kingy
566: [07:21:44] * spronk2 has joined #silverstripe
567: [07:26:44] * Stomach quit (Quit: zzz)
568: [07:32:03] * Stomach has joined #silverstripe
569: [07:35:27] * UncleCheese has joined #silverstripe
570: [07:38:52] * vebbb quit (Ping timeout: 256 seconds)
571: [07:43:00] * Kingy is now known as Kingy[a]
572: [07:44:35] * veb has joined #silverstripe
573: [07:50:35] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
574: [07:56:29] * Robke has joined #silverstripe
575: [07:56:51] <Robke> morning
576: [07:58:38] * spronk2 quit (Quit: I may need a longer sleep timer...)
577: [07:58:54] * spronk2 has joined #silverstripe
578: [07:59:19] <wmk> hey Robke
579: [07:59:52] * spronk2 quit (Client Quit)
580: [08:00:21] <wmk> silverstripe is really cool... customer askes for feature, some db fields, a bit of logic, change in templates, done
581: [08:00:41] <wmk> (still some hours of work, but cool how easy it is to acchieve)
582: [08:00:57] * spronk2 has joined #silverstripe
583: [08:03:01] * Guits has joined #silverstripe
584: [08:03:29] <Guits> is it possible in a template to compare previous record with current in a loop?
585: [08:03:57] <Guits> (if oldcategory != category)
586: [08:05:22] * Stomach quit (Quit: zzz)
587: [08:07:01] * mahfuz quit (Ping timeout: 246 seconds)
588: [08:07:04] * UncleCheese has joined #silverstripe
589: [08:10:38] <simon_w> Guits, no
590: [08:15:08] <wmk> Guits, what do you want to acchieve?
591: [08:15:33] * veb has joined #silverstripe
592: [08:15:41] * Stomach has joined #silverstripe
593: [08:16:06] * jrthomer_ has joined #silverstripe
594: [08:16:31] <Robke> wmk: i have holder and children page aswell, but the children of holder has DO. how cout i loop theese DO? do i need to write a special funciton or i just can use some loops? if loops, then which? :))
595: [08:16:43] <Robke> *could
596: [08:17:08] <wmk> in holder template?
597: [08:17:23] <Robke> in general page.ss :)
598: [08:17:41] <wmk> as in a sidebar?
599: [08:17:56] <Guits> I want to write the category of an item when it is not the same as the previous
600: [08:18:12] * jrthomer quit (Ping timeout: 245 seconds)
601: [08:18:17] <Robke> <% if ClassName == "TileHolder" %> <% loop Children %> <a class="saaa"> <% if $ImageOfTileBack %> $ImageOfTileBack $ImageOfTileFront <% end_if %> </a> <% end_loop %> <% end_if %>
602: [08:18:18] <wmk> Guits, seems like you want to group the items first
603: [08:18:26] <wmk> Robke, use sspaste.org please ;)
604: [08:18:26] <Robke> this solution for looping children works fine :)
605: [08:18:33] <Robke> blah :D
606: [08:18:51] <Robke> http://pastie.org/9682623
607: [08:18:54] <Robke> this one works fine
608: [08:18:59] <wmk> well, Robke , inside the children loop you can of course loop the dos of the children
609: [08:19:08] <wmk> how is the relation called?
610: [08:19:16] <Robke> DO is called "Slide"
611: [08:19:23] <Robke> if im doing loop Slide
612: [08:19:27] <Robke> it doesnt do D:
613: [08:19:39] <Guits> wmk, how do you mean?
614: [08:19:47] <wmk> has_one, has_many or many_many, Robke ?
615: [08:20:47] <Robke> forgot to add :D
616: [08:21:08] <Robke> thats why i do not get anything :d
617: [08:21:12] <Robke> probably
618: [08:21:40] <wmk> Robke, a typical error-in-front-of-screen error ;)
619: [08:21:56] <Robke> well i dont get any errors :)
620: [08:22:02] * spronk2 quit (Quit: I may need a longer sleep timer...)
621: [08:22:09] * Stomach quit (Quit: zzz)
622: [08:22:24] <Robke> i get these DO by other way :)
623: [08:22:37] <Robke> but for now maybe i should add relationships
624: [08:22:54] <wmk> Robke, relations are easy, at least in silverstripe compared to real world
625: [08:23:05] <Robke> (rofl)
626: [08:23:17] * Stomach has joined #silverstripe
627: [08:24:21] <Robke> lets say class a has many b
628: [08:24:27] <Robke> so b has only one a?
629: [08:24:33] <wmk> Guits, http://api.silverstripe.org/3.1/class-GroupedList.html
630: [08:24:35] <Robke> thats the relationships should be used?
631: [08:25:40] <wmk> a has_many b and b has_one a
632: [08:25:52] <wmk> an classical a 1:n b relationship
633: [08:26:06] <wmk> has to be defined on both sides, so every side knows about it
634: [08:27:28] <wmk> Guits, http://doc.silverstripe.org/framework/en/howto/grouping-dataobjectsets
635: [08:28:16] <Robke> ok :)
636: [08:30:15] * wmk hates sound on websites / start pages
637: [08:30:22] <Guits> thanx wmk Did not know about this feature :)
638: [08:30:31] <wmk> Guits, you're welcome.
639: [08:30:56] <wmk> that's why i always ask what you want to do, maybe there is a better fitting solution for the problem
640: [08:33:15] * MrGuits has joined #silverstripe
641: [08:33:15] * Guits quit (Read error: Connection reset by peer)
642: [08:36:25] <Robke> wmk: thanks for another lesson :)
643: [08:37:10] <wmk> Robke, the tutorials also teach about relationships
644: [08:37:38] <Robke> well actually i always add relationships, but this time it was forget somehow :(
645: [08:38:10] <wmk> Robke, http://doc.silverstripe.org/framework/en/tutorials/5-dataobject-relationship-management
646: [08:38:37] <wmk> yup, the classical "userinfrontofscreenforgottodoit"-error
647: [08:38:50] <wmk> i know ;)
648: [08:42:31] <Robke> :)
649: [09:03:45] * stnvh has joined #silverstripe
650: [09:10:46] * Stomach quit (Quit: zzz)
651: [09:12:22] * MrGuits quit (Ping timeout: 256 seconds)
652: [09:17:50] <Robke> wmk: what to do if i want to loop only parent childrens not all the childs which are created? :)
653: [09:18:05] <wmk> parent children?
654: [09:18:15] <Robke> yep :)
655: [09:18:19] <wmk> parent children?
656: [09:18:32] <Robke> as i mentioned a could have a lot of b DO :)
657: [09:18:44] <Robke> but then im loopin children
658: [09:19:03] <Robke> i get all the slide DO are created :)
659: [09:19:22] <Robke> i need somehthing like public function getSlides(){ return Tile::get('Slide', "ParentID={$this->ParentID}"); }
660: [09:19:27] <Robke> but this one doesnt work
661: [09:19:56] <wmk> the child Page has a has_many Slides=>Slide?
662: [09:20:03] <wmk> or how is the has_many defined?
663: [09:20:31] <Robke> Tile -> Slide
664: [09:20:38] <Robke> and has one Slide -> Tile
665: [09:20:58] <wmk> i'd go for plural name for the has many relation.
666: [09:21:01] <wmk> it's clearer.
667: [09:21:06] <wmk> has_one = singular naming
668: [09:21:12] <wmk> has_many / many_many: plural naming
669: [09:21:15] <wmk> but however.
670: [09:21:22] <wmk> in template: loop $Tile
671: [09:21:31] <wmk> inside the children loop
672: [09:21:40] <Robke> hm tried but not worked :)
673: [09:21:47] <Robke> ok i will try once again
674: [09:22:19] <wmk> same magic like you got the children working
675: [09:22:28] <wmk> well, nearly the same magic ;)
676: [09:23:35] <Robke> hm... :D need to think about that :D
677: [09:24:19] <wmk> otherwise... if Slide has_one Tile (is tile in this case the page??? unclear naming)
678: [09:24:47] <wmk> Slide::get()->filter('TileID = $this->ID) inside page
679: [09:25:02] <Robke> this one i think will do what i wnt :)
680: [09:25:32] <wmk> has_one Foo=>Dataobject => filter(array('FooID' => xxx))
681: [09:25:45] <wmk> has_one is in DB with ID suffix
682: [09:36:03] * Tanger quit (Quit: Tanger)
683: [09:37:49] * spronk2 has joined #silverstripe
684: [09:39:54] * Fuxo has joined #silverstripe
685: [09:48:10] * Robke quit (Ping timeout: 246 seconds)
686: [09:50:10] * UncleChe_ has joined #silverstripe
687: [09:57:23] * Shrike_Finland quit (Quit: Leaving.)
688: [10:06:47] * Shrike_Finland has joined #silverstripe
689: [10:08:30] * Pyl82wrk has joined #silverstripe
690: [10:08:45] <Pyl82wrk> LOL THE TRAIN BROKE DOWN
691: [10:09:35] * StefanLehmann quit (Read error: Connection reset by peer)
692: [10:10:55] * pippy quit (Ping timeout: 246 seconds)
693: [10:11:22] <Colin[pi]> Pyl82wrk: DID YOU TAKE THE LOLLERCOASTER INSTEAD?
694: [10:11:41] * UncleChe_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
695: [10:12:00] * Kapdap quit (Ping timeout: 250 seconds)
696: [10:12:34] * mudmonth quit (Remote host closed the connection)
697: [10:13:02] * mudmonth has joined #silverstripe
698: [10:14:24] <irogue> Pyl82wrk: I'm very happy my train didn't break down
699: [10:14:54] <irogue> last one, barely any buses at this time
700: [10:15:47] * StefanLehmann has joined #silverstripe
701: [10:19:44] <Pyl82wrk> Colin[pi]: yup
702: [10:19:55] <Pyl82wrk> irogue: I know dem feels :>
703: [10:20:00] * Kapdap has joined #silverstripe
704: [10:22:49] <irogue> i've missed the last train before, and the night bus is not an enjoyable one
705: [10:23:01] <Colin[pi]> irogue: shudder, late night buses
706: [10:23:03] <Pyl82wrk> can imagine.
707: [10:23:20] <Pyl82wrk> I missed the last train once. I woke up in hospital.
708: [10:23:22] <irogue> it's the single late night bus for south auckland
709: [10:23:47] <Colin[pi]> late night buses, you'll never find a more wretched hive of scum and villainy
710: [10:23:50] <irogue> CBD to Drury via every other south auckland suburb
711: [10:24:06] <Pyl82wrk> I don't recommend missing the last train.
712: [10:24:20] <Pyl82wrk> I always get nervous as fuck because like what if the last train is cancelled?
713: [10:24:25] <Pyl82wrk> D:
714: [10:25:53] <Colin[pi]> Pyl82wrk: mm not a good feel
715: [10:27:11] <irogue> https://goo.gl/maps/D5RNr
716: [10:27:47] <irogue> night bus. is always packed cos only bus for majority of south auckland, and cos so many people, ends up stopping at practically every stop along the way
717: [10:28:13] <irogue> gmaps says 1hr32 CBD to Drury, but it was actually 1hr30 just CBD to Manurewa
718: [10:34:12] * NobrainerWeb has joined #silverstripe
719: [10:38:47] <Colin[pi]> you know what happened to me yesty and today?
720: [10:38:56] <Colin[pi]> guy came three times yesty to look at my car for sale
721: [10:39:07] <Colin[pi]> eventually decided he liked it
722: [10:39:13] <Colin[pi]> came back and signed the paperwork
723: [10:39:16] <Colin[pi]> paid for it
724: [10:39:19] <Colin[pi]> drove off into the sunset
725: [10:39:22] <Colin[pi]> nek morning
726: [10:39:27] <Colin[pi]> I receive a text from him
727: [10:39:52] <Colin[pi]> "oh hi, look I'm really sorry but after sleeping on it I feel like I made a mistake and is there any chance I can return the car?"
728: [10:39:57] <Colin[pi]> UM, NO?
729: [10:40:22] <Colin[pi]> for fucks sake
730: [10:40:24] <Colin[pi]> people
731: [10:42:15] * Pyl82wrk quit (Quit: Page closed)
732: [10:42:34] <irogue> Colin[pi]: lolwut
733: [10:42:40] <Colin[pi]> irogue: ikr?
734: [10:42:52] <Colin[pi]> guy seemed really indecisive
735: [10:43:02] <Colin[pi]> sorry dude, you sign the docs, you pay the cash... it's yours
736: [10:43:10] <Colin[pi]> if you change your mind, sell it!
737: [10:43:12] <irogue> what kinda car? the kind his missus would disapprove of? :P
738: [10:43:15] * Pyrstrtk has joined #silverstripe
739: [10:43:24] <Colin[pi]> irogue: haha that's just what antmas said
740: [10:43:30] <Colin[pi]> but he missus was with him
741: [10:43:35] <irogue> ah ok lol
742: [10:43:44] <Pyrstrtk> HI MISSUS
743: [10:43:49] <irogue> cos thatd totally be a reason for that kinda behaviour
744: [10:43:50] <Pyrstrtk> HE MISSUS
745: [10:44:19] <Pyrstrtk> he should practise then Colin[pi] !
746: [10:44:27] <Colin[pi]> irogue: this one: http://i.imgur.com/CA6VYMo.jpg
747: [10:44:48] <irogue> nice car, but not a "missus would disapprove" kinda car
748: [10:44:51] <Colin[pi]> yeah
749: [10:44:56] <Colin[pi]> and it's in great condition
750: [10:45:13] <Colin[pi]> shrug
751: [10:45:23] <irogue> i'm considering buying car at the mo
752: [10:45:42] <irogue> my tiny car has served me well when keeping costs minimal was my main purpose
753: [10:45:44] <Pyrstrtk> corolla
754: [10:45:49] <Colin[pi]> civic!
755: [10:45:49] <irogue> but its size is becoming impractical
756: [10:45:57] <Pyrstrtk> COROLLA YOU HERITIC Colin[pi]
757: [10:46:00] <Colin[pi]> CIVIC MOFO
758: [10:46:05] <Colin[pi]> honda > toyota
759: [10:46:08] <irogue> oh I'd totes corolla, but I'm actually looking for something big
760: [10:46:10] <Colin[pi]> ^.^
761: [10:46:12] <Pyrstrtk> toyota > *
762: [10:46:15] <Colin[pi]> no
763: [10:46:19] <Pyrstrtk> yes.
764: [10:46:20] <Colin[pi]> toyota interior = BORING
765: [10:46:27] <Colin[pi]> hasn't changed since 1980
766: [10:46:34] <simon_w> <irogue> oh I'd totes corolla, but I'm actually looking for something big
767: [10:46:34] <simon_w> That's what he said
768: [10:46:39] <Colin[pi]> ;)
769: [10:46:40] <Pyrstrtk> interior? Is that one of those things you get when you buy a bentley?
770: [10:46:49] <Colin[pi]> pfft
771: [10:46:49] <Pyrstrtk> irogue: Corona!
772: [10:46:52] <irogue> simon_w: lawl
773: [10:46:57] <irogue> Pyrstrtk: my first car was a corona!
774: [10:46:58] <Colin[pi]> haha
775: [10:47:05] <Pyrstrtk> irogue: best cars.
776: [10:47:11] <Pyrstrtk> A pity they stopped in '92
777: [10:47:13] <Pyrstrtk> iirc
778: [10:47:24] <irogue> yeah, replaced by Camry
779: [10:47:33] <Pyrstrtk> yes and no
780: [10:47:47] <Colin[pi]> Pyrstrtk: ha HA! honda > toyota: http://autos.jdpower.com/ratings/2014-Vehicle-Dependability-Study-Press-Release.htm
781: [10:47:48] <Colin[pi]> :P
782: [10:47:58] <Pyrstrtk> camry was there before too, it was the 'large' car, to the corona's 'mid size' and corolla's 'small' (starlet 'micro')
783: [10:47:58] <Colin[pi]> actually they're equal
784: [10:47:59] <Colin[pi]> LOL
785: [10:48:03] * stnvh quit (Read error: Connection reset by peer)
786: [10:48:03] <irogue> http://www.nzherald.co.nz/business/news/article.cfm?c_id=3&objectid=11349651
787: [10:48:11] <Pyrstrtk> Colin[pi]: I can agree with equal
788: [10:48:18] <Colin[pi]> dat lexus
789: [10:48:22] <irogue> Colin[pi]: honestly, based on my anecdotal experience, without even looking at stats, I'd have said Toyota then Honda
790: [10:48:26] <irogue> for reliability
791: [10:48:32] <Pyrstrtk> corolla NZ's #1 car for like... 20 years running.
792: [10:48:33] <irogue> then everything else way down the list :P
793: [10:48:36] <Colin[pi]> jokes aside they're both good
794: [10:48:54] <Pyrstrtk> irogue: hilux.
795: [10:48:56] <Colin[pi]> look at mini, jesus wept... bottom of the list
796: [10:49:06] <irogue> but in NZ at least, Colin[pi], honda isn't very popular
797: [10:49:12] <Pyrstrtk> Colin[pi]: yeah but you don't buy a mini for the safety record.
798: [10:49:18] <irogue> so less spare parts on-hand, which means repairs more expensive etc etc
799: [10:49:18] <Colin[pi]> irogue: o rly? hmm everywhere here
800: [10:49:20] <irogue> HOLY SHTI
801: [10:49:25] <Pyrstrtk> Colin[pi]: or are you talking about the BMW small?
802: [10:49:25] <irogue> thats quite some thunder
803: [10:49:39] <irogue> Colin[pi]: yeah, there's odd differences I've noticed with AU vs NZ
804: [10:49:46] <Colin[pi]> Pyrstrtk: mini cooper or whatevs
805: [10:49:47] <Pyrstrtk> irogue: wtf, hondas are everywhere man
806: [10:50:19] <Pyrstrtk> Colin[pi]: are you talking about the mini, an automobile designed in the 70's, or are you talking about the BMW Small range?
807: [10:50:20] <irogue> Pyrstrtk: old ones, and some new civics here and there, but not anywhere near as ubiquitous as toyotas
808: [10:50:47] <Pyrstrtk> irogue: legacy. That way when it gets stolen you can just buy it back from your neighbours.
809: [10:51:07] <irogue> like... you can take a corolla, hilux or hiace into any mechanic and they'll likely have the spare parts you need already on-hand, they're just that ubiquitous
810: [10:51:25] <Pyrstrtk> 'cept'n the L300
811: [10:51:26] <Colin[pi]> my new baby: http://i.imgur.com/1Ft3Eur.jpg
812: [10:51:38] * irogue is waiting for powercut
813: [10:51:49] <Pyrstrtk> https://pbs.twimg.com/media/B0z976CCAAAZqC8.jpg:large
814: [10:51:57] <irogue> oh jesus
815: [10:51:59] <irogue> thats close
816: [10:52:01] * zippy has joined #silverstripe
817: [10:52:05] <irogue> imma die
818: [10:52:07] <Pyrstrtk> ?
819: [10:52:13] <Colin[pi]> thunder?
820: [10:52:16] <Pyrstrtk> oh, lightening storm?
821: [10:52:21] <irogue> ya
822: [10:52:24] <Pyrstrtk> ic
823: [10:52:36] <Pyrstrtk> how/where to buy a battery for my rpi?
824: [10:53:01] <irogue> repetitive lightening, like where there's 3 or 4 flashes within half a second
825: [10:53:09] <Pyrstrtk> wholey fuck'n shit: http://techcrunch.com/2014/10/28/w3c-declares-html5-standard-done/?ncid=txtlnkusaolp00000595
826: [10:53:12] <irogue> and then deep rolling thunder
827: [10:53:14] <Pyrstrtk> NO EXCUSES NOW BITCHES
828: [10:53:20] <irogue> rumbles for like 3 seconds
829: [10:53:39] <irogue> and there was <2 seconds gap between the two
830: [10:54:01] <zippy> now we just need to wait for IE14 before we can use half the features eh! :)
831: [10:55:20] <Colin[pi]> I still don't like the new tags you know
832: [10:55:23] <zippy> I set my page to canCreate = false. But now I can't change the order of it in the site tree. Looking at the Leftandmain -> savetreenode function I can see it checks the canEdit but not the canCreate. When I try and drag the item a red X comes up, so I am thinking this might just be a jaascript thing
833: [10:55:25] <Colin[pi]> div/span fo life
834: [10:55:30] <zippy> Colin[pi]: :) yap
835: [10:55:33] <irogue> Papatoetoe 341, tree fallen onto house, 84 Malaspina Place, Papatoetoe
836: [10:56:14] <irogue> considering the distance papatoetoe is from my place, and the gap between thunder/lightening on that huge one, I'm gonna go with that tree got struck by lightnings
837: [10:56:38] <Pyrstrtk> zippy: probably yeh.
838: [10:56:57] <Pyrstrtk> Colin[pi]: like that cocaine article I posted yesterady?
839: [10:57:58] <Colin[pi]> Pyrstrtk: whs?
840: [10:58:00] <Colin[pi]> *wha
841: [10:58:20] <Pyrstrtk> https://pbs.twimg.com/media/B0z976CCAAAZqC8.jpg:large
842: [10:59:25] <Pyrstrtk> Colin[pi]: http://logs.simon.geek.nz/index.php?date=2014-10-29#log_1472996
843: [11:00:03] * Colin[pi] goes to read
844: [11:00:25] * NobrainerWeb quit (Quit: NobrainerWeb)
845: [11:01:08] <irogue> so, I was going to go to bed, but now the weather's gone full apeshit and I know I won't be able to sleep for a while
846: [11:01:31] <Colin[pi]> irogue: but storms are awesome!
847: [11:01:40] <ss23> You can't sleep during storms?
848: [11:01:41] <Colin[pi]> unless they're damaging my house ;)
849: [11:01:42] <ss23> I fucking love storms
850: [11:02:26] <irogue> ss23: I like storms, but booming thunder keeps me awake
851: [11:03:16] * NobrainerWeb has joined #silverstripe
852: [11:04:03] <irogue> bahaha
853: [11:04:05] <irogue> quite some wind
854: [11:04:11] <irogue> is blowing my camera around
855: [11:07:42] <irogue> "Papatoetoe 347 at 84 Malaspina Place. Tree on house, investigating."
856: [11:08:06] <NobrainerWeb> Can i set HtmlEditorOptions via yml files? or is this only possible via HtmlEditorConfig::get('cms')->setOption in mysite/_config.php?
857: [11:08:38] <irogue> NobrainerWeb: HtmlEditorConfig is evil. pretty sure it can only be done in PHP
858: [11:09:22] <NobrainerWeb> irogue: Ok. also no mention of yml beeing possible in the docs, so i thought so
859: [11:09:25] <irogue> the whole HtmlEditor stuff is something I'd rewrite if I was a better developer
860: [11:11:00] <irogue> (and had a few months...)
861: [11:11:41] <NobrainerWeb> :-)
862: [11:14:30] <irogue> "Tree fallen onto roof of private dwelling. Brigade getting to work with chainsaw, over."
863: [11:22:49] * irogue googles where the fuck Kaikohe is
864: [11:22:56] <irogue> I need to learn more NZ
865: [11:24:06] <zippy> ok
866: [11:24:18] <zippy> I want to submit a patch to silverstripe framework
867: [11:24:24] <zippy> cms rather
868: [11:24:27] <irogue> zippy: do iiiittttt
869: [11:24:28] <zippy> so
870: [11:24:44] <zippy> need to fork it
871: [11:24:49] <zippy> check it out
872: [11:25:03] <zippy> branch
873: [11:25:05] <zippy> fix
874: [11:25:08] <zippy> commit, send pr
875: [11:25:12] <irogue> yup
876: [11:25:13] <zippy> but then I need the tests as well
877: [11:25:24] <irogue> or click Edit in github if it's small and you're lazy
878: [11:25:35] <zippy> yea, wanna make sure the tests work
879: [11:25:43] <irogue> ah yep, so not small
880: [11:25:54] <zippy> it's not a typo :)
881: [11:25:58] <irogue> yeah :P
882: [11:25:58] <zippy> (typo fix)
883: [11:26:19] <irogue> "otara 331, hole in roof due to lightning strike, 1 tullis place, burswood"
884: [11:26:45] <Colin[pi]> ouch
885: [11:27:03] <zippy> irogue: ah, that is why your up so late!
886: [11:27:26] <irogue> zippy: the weather is keeping me awake :P
887: [11:27:45] <irogue> and now, of course, listening to the effects of the weather
888: [11:27:58] <irogue> something major is going on in kaikohe, but I can only hear one side of the conversation
889: [11:29:15] <irogue> rural northland is a different channel to Auckland, but they share a dispatcher. due to weirdness in the way the dispatcher's system works, she broadcasts onto both channels. but I can't hear what the fireys are saying.
890: [11:30:01] <Colin[pi]> irogue: I'm not saying it's aliens, but.. http://i.imgur.com/mljOP02.jpg
891: [11:32:06] <irogue> but I heard "kaikohe fire from firecomms, confirm persons outstanding?" <big pause> "kaikohe fire, message received" <big pause> "policecomms from firecomms, affirmative, persons believed to be unaccounted for, are you responding?"
892: [11:33:32] <Colin[pi]> :\
893: [11:34:33] <Pyrstrtk> zippy: you only need tests if you're adding some new shit. If you're bugfixing the tests just need to pass.
894: [11:34:36] <irogue> its usually serious when police comms and fire comms talk to each other on the radio, as it's not within normal radio protocol
895: [11:34:49] <Colin[pi]> mm shit :\
896: [11:34:49] <zippy> Pyrstrtk: yea just want to make sure tests pass
897: [11:34:59] * zippy is a github noob
898: [11:35:27] <zippy> I forked, and created my branch on my github account. I did a git clone on my repo but the branch is missing
899: [11:35:29] <Pyrstrtk> yeh, me too.
900: [11:35:35] <Pyrstrtk> zippy: don't forget to sqaush your commits first!
901: [11:36:36] <Pyrstrtk> https://twitter.com/heathercmiller/status/526770571728531456
902: [11:37:47] <Pyrstrtk> ehheheheeh
903: [11:37:47] <Pyrstrtk> https://twitter.com/__get__/status/516601097948237824/photo/1
904: [11:40:46] <irogue> Pyrstrtk: some people at work don't understand git particularly well, and say things like "why revert? it's messy. just reset HEAD to a previous commit and git push -f"
905: [11:41:33] * Otterpocket has joined #silverstripe
906: [11:42:18] <irogue> oh man, I just realised how much I've changed
907: [11:42:27] <zippy> O.o
908: [11:42:31] <Otterpocket> I'm working on a form that requires a user to create a password, the 2 fields must match, before I get started on this I thought I would find out if there is a easy way to do this in SS?
909: [11:42:32] <irogue> I "accidentally" bought a new graphics card today
910: [11:42:40] <irogue> I've been home for hours and haven't installed it yet
911: [11:43:12] <irogue> a couple of years ago the second I got home I'd be ripping my computer open, getting the card in and benchmarking the shit out of it
912: [11:43:19] <Colin[pi]> LOL accidentally
913: [11:43:22] <zippy> Otterpocket: http://parsleyjs.org/doc/index.html#validators-list Equalto #2.0
914: [11:43:37] <Colin[pi]> and irogue yeah I was the same when I got my new gpu... bought in the morning, installed at night
915: [11:44:01] <zippy> irogue: because the old is wise, and knows. you put in it, then you need drivers, which stuffs something up. Next thing you know it's 2am and your re-installing windows
916: [11:44:07] <zippy> *the old you is wise
917: [11:44:25] <Colin[pi]> I'm looking forward to my yearly windows reinstall over xmas
918: [11:44:42] <irogue> Colin[pi]: had no intention of it. went to a mate's flat after work, he'd bought a graphics card, decided he didn't want that card, bought another one, went to return the first one (unopened) and realised he'd lost the receipt
919: [11:44:53] <Colin[pi]> what type of card?
920: [11:45:07] <irogue> so he was just keep to recoup some of the $$, sold it to me for $130 less than retail
921: [11:45:44] <irogue> Colin[pi]: R9 270X. he bought it for $330, I bought it off him for $200
922: [11:45:45] <zippy> hmmm no phpunit test
923: [11:46:01] * Shrike_Finland quit (Quit: Leaving.)
924: [11:46:13] <irogue> double the benchmark score of my current card (which is freakin ancient, but was top of the line when I bought it)
925: [11:46:30] <Colin[pi]> nice
926: [11:48:40] <Colin[pi]> irogue: I went from a GTX 560 1GB to a 760 2GB recently
927: [11:48:47] <Colin[pi]> made a HUGE diff to Skyrim
928: [11:49:26] <irogue> ah yep
929: [11:49:39] <irogue> this is 6850 1GB to R9 270X 2GB
930: [11:49:45] <Colin[pi]> mmm
931: [11:49:48] <Colin[pi]> nice boost
932: [11:51:58] <irogue> ah, that feels a bit better
933: [11:52:01] <irogue> decided to at least open the box
934: [11:52:09] <irogue> tho I almost stabbed myself in the foot doing so
935: [11:52:12] <Colin[pi]> that new electronics smell
936: [11:52:43] <Colin[pi]> what brand is it irogue?
937: [11:52:57] <irogue> asus
938: [11:53:05] <Colin[pi]> ah nice
939: [11:53:16] <Colin[pi]> in fact mine was asus too
940: [11:53:46] <Colin[pi]> looks like it's sitting very close to mine in the rankings: http://www.overclock.net/t/502403/graphics-card-ranking
941: [11:53:58] <irogue> http://www.playtech.co.nz/afawcs0139235/CATID=/ID=21762/SID=575363310/productdetails.html
942: [11:54:11] <Colin[pi]> irogue: dude
943: [11:54:16] <Colin[pi]> it looks the same as mine :P
944: [11:54:20] <irogue> lol
945: [11:54:44] <Colin[pi]> this is mine: http://www.techpowerup.com/reviews/ASUS/GeForce_GTX_760_Direct_Cu_II_OC/
946: [11:55:02] <Colin[pi]> ah mine is shorter
947: [11:55:21] <irogue> http://www.playtech.co.nz/afawcs0139235/CATID=/ID=20893/SID=430675278/productdetails.html
948: [11:55:36] <Colin[pi]> yep that's it
949: [11:57:10] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
950: [11:57:25] <Colin[pi]> righto, I'm off to sleeps
951: [11:57:31] <Colin[pi]> nn all
952: [11:57:40] <Colin[pi]> enjoy the storm irogue!
953: [11:57:54] <irogue> yeah
954: [11:57:57] <irogue> i'm heading to zzz too
955: [11:58:00] <irogue> now the storm has passed
956: [11:58:08] <zippy> mmm, me 3
957: [11:58:11] <irogue> scanner's gone quiet again :P
958: [11:58:16] <Colin[pi]> tchau!
959: [11:58:21] * Colin[pi] quit (Quit: pants)
960: [12:08:06] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
961: [12:12:41] * UndefinedOffset has joined #silverstripe
962: [12:16:59] * UndefinedOffset quit (Client Quit)
963: [12:18:18] * UndefinedOffset has joined #silverstripe
964: [12:23:19] * Shrike_Finland has joined #silverstripe
965: [12:24:24] * kinglozzer has joined #silverstripe
966: [12:25:54] <Otterpocket> Is there an example of a simple form allowing update of a Members password?
967: [12:27:18] <ss23> Otterpocket: Eh... you could see how the forum does it for an example,but I'm not sure it'll be simpl
968: [12:27:21] <ss23> simple
969: [12:29:18] * spronk2 quit (Quit: spronk2)
970: [12:33:03] * spronk2 has joined #silverstripe
971: [12:33:13] * stnvh has joined #silverstripe
972: [12:36:36] * spronk2 quit (Client Quit)
973: [12:38:05] <Zauberfisch> Otterpocket: public function MyForm() { return new Form($this, __FUNCTION__, FieldList::create([new ConfirmedPasswordField('Password')]), FieldList::create([new FormAction('doSaveMysite', 'change password')]), new RequiredFields('Password')); }
974: [12:38:23] <Zauberfisch> oh, should be doSaveMyForm
975: [12:39:47] <Zauberfisch> public function doSaveMyForm($data, Form $form, SS_HTTPRequest $request) { $member = Member::currentUser(); $form->saveInto($member); $member->write(); return $form->getController()->redirectBack(); }
976: [12:39:51] <Zauberfisch> done.
977: [12:39:52] <Fuxo> Otterpocket: /Security/changepassword
978: [12:41:41] <Zauberfisch> oh, good idea
979: [12:41:47] <Zauberfisch> turns out its even easier:
980: [12:42:18] <Zauberfisch> public function MyForm() {return new ChangePasswordForm($this, __FUNCTION__); }
981: [12:42:27] * Eliseth has joined #silverstripe
982: [12:43:28] <wmk> NobrainerWeb, you're playing around with fck editor?
983: [12:44:05] <wmk> <Pyrstrtk> https://pbs.twimg.com/media/B0z976CCAAAZqC8.jpg:large exactly
984: [12:44:18] <NobrainerWeb> wmk: Not really, over my head. But would love a switch from Tiny MCE to CK Editor
985: [12:44:53] <wmk> dunno if current ck is better than tiny, but tiny isn't up to date in ss3
986: [12:45:01] <wmk> but well implemented
987: [12:46:01] <NobrainerWeb> Well i have just been running into issues with Tiny MCE- There is as far as i can see, no way to define what element to add custom styles to
988: [12:46:09] <NobrainerWeb> they just get added to <p>
989: [12:46:20] <wmk> that's bad.
990: [12:46:35] <wmk> but adding styles in wysiwig editor is always a major pita
991: [12:46:52] <NobrainerWeb> not styles, custom classes
992: [12:47:12] <wmk> css classes
993: [12:47:29] <NobrainerWeb> so i have a link, i want to add a button class to -> tiny mce does p.button a and not p a.button
994: [12:47:38] <NobrainerWeb> sucks when using frameworks
995: [12:47:47] <wmk> ehem, yes.
996: [12:48:50] <wmk> anyone knows a module for adding mp3 files to a page, with audio player?
997: [12:51:40] <Pyrstrtk> <% if MP3 %><audio src="...
998: [12:51:43] <Pyrstrtk> ? :P
999: [12:52:15] <wmk> very basic ;)
1000: [12:52:28] <Pyrstrtk> Keep'n it real! :D
1001: [12:52:55] <wmk> unfortunately we either have to convert all files to ogg and wav, too, or use javascript with flash fallback
1002: [12:53:06] <wmk> as mp3 isn't supported in opera
1003: [12:53:43] <Pyrstrtk> [11:42] <irogue> oh man, I just realised how much I've changed
1004: [12:53:50] <Pyrstrtk> you used to do that, didn't you irogue :P
1005: [12:54:14] <Pyrstrtk> The way I like to think of version control is pretty much like Accounting. push -f is the equivalent of cooking the books.
1006: [12:54:58] * kinglozzer quit ()
1007: [12:55:11] <Pyrstrtk> You should be able to follow a straight line from start to finish (current state). Any point in which you cut the thread then re-attach it... OH GAWD
1008: [12:55:42] <Pyrstrtk> NobrainerWeb: but CK Editor is just TinyMCE but not from Moxiecode
1009: [12:55:54] <Pyrstrtk> They're 6 one, and 1/2 dozen the other.
1010: [12:56:14] <Pyrstrtk> 6 in one hand, 2 3's in the other.
1011: [12:56:15] <Pyrstrtk> etc
1012: [12:56:35] <Pyrstrtk> wmk: mp3 should be supported in opera. It's supported in chrome
1013: [12:56:41] <Pyrstrtk> which is the same thing :P
1014: [12:56:45] <NobrainerWeb> Well i can’t seem to do what i want in Tiny MCE but i can in CK Editor
1015: [12:57:16] <Pyrstrtk> NobrainerWeb: could be more than just that it's TinyMCE though. The configuration of TinyMCE is massive, complex and obscure.
1016: [12:57:30] <Pyrstrtk> could be something you could do to enable what you want, but... good luck :<
1017: [12:57:31] <wmk> and obscure
1018: [12:57:33] <wmk> yes
1019: [12:57:44] <Pyrstrtk> I agree (and it always was the plan, even in 2.4) to be able to swap out the editor
1020: [12:57:48] <NobrainerWeb> Pyrstrtk: i looked at the Tiny MCE docs, so i don’t think so
1021: [12:57:59] <Pyrstrtk> it's just... never been all that well implemented unfortunately.
1022: [12:58:16] <Pyrstrtk> NobrainerWeb: what is it you'd like to do?
1023: [12:58:34] <NobrainerWeb> Pyrstrtk: so i have a link, i want to add a button class to -> tiny mce does p.button a and not p a.button
1024: [12:58:41] <Pyrstrtk> ah
1025: [12:59:20] <wmk> NobrainerWeb, did you mark the link? or just put the cursor inside it?
1026: [12:59:26] <Pyrstrtk> so when you select the .button class from the dropdown it applies to the paragraph despite the cursor being on the anchor?
1027: [12:59:38] <NobrainerWeb> wmk: Does not matter
1028: [12:59:48] <NobrainerWeb> Pyrstrtk: yes
1029: [12:59:58] <Pyrstrtk> yeah, try selecting the link button (on the toolbar), clicking the link (so you can edit it) then selecting the class
1030: [13:00:16] <Pyrstrtk> or right click the link, then edit the class applied in tinymce's own popup link editor
1031: [13:00:24] <Pyrstrtk> as opposed to useing the dropdown.
1032: [13:00:34] <Pyrstrtk> or do you want this to happen automatically?
1033: [13:01:29] <NobrainerWeb> Pyrstrtk: I have no rightclick option on the link
1034: [13:15:43] * Fuxo quit (Remote host closed the connection)
1035: [13:26:57] <Pyrstrtk> bummer :(
1036: [13:28:06] <wmk> NobrainerWeb, http://www.tinymce.com/wiki.php/API3:method.tinymce.dom.DOMUtils.addClass ??
1037: [13:29:37] <NobrainerWeb> wmk: How does that apply to the Styles selector in the editor?
1038: [13:30:26] <wmk> dunno.
1039: [13:30:33] <wmk> though v4 should do it...
1040: [13:30:38] <wmk> http://www.tinymce.com/tryit/custom_formats.php
1041: [13:32:41] <NobrainerWeb> Not sure if v4 can do it, but what is needed is the option to set how classes are applied: http://docs.ckeditor.com/#!/guide/dev_howtos_styles
1042: [13:32:45] <wmk> hmm. no
1043: [13:32:56] <wmk> custom format adds a span in v3... seems like
1044: [13:52:53] * Fuxo has joined #silverstripe
1045: [13:55:03] * catcher has joined #silverstripe
1046: [14:07:42] * simon_w|work quit (Ping timeout: 265 seconds)
1047: [14:08:31] * muskie9 has joined #silverstripe
1048: [14:12:25] * antmas quit (Ping timeout: 246 seconds)
1049: [14:13:55] * ss31noob has joined #silverstripe
1050: [14:20:40] * NobrainerWeb quit (Quit: NobrainerWeb)
1051: [14:25:30] * ThePeach has joined #silverstripe
1052: [14:29:14] <ss31noob> hi guys, does anyone know how can i get the relationship info of a dataobject? before in 2.4 used to have getComponentInfo() in the ComponentSet.php.. and now we dont have it anymore in 3.1
1053: [14:29:53] * NobrainerWeb has joined #silverstripe
1054: [14:33:01] * jcwacky has joined #silverstripe
1055: [14:33:35] <jcwacky> I’m looking for some guidance on how to approach developing this type of form in SilverStripe: http://spdr.me/eEoT
1056: [14:34:27] <jcwacky> The products are DataObjects. Do I need to create a custom form field that is rendered by a template including everything in the purple box?
1057: [14:34:29] <Pyrstrtk> ss31noob: getComponent() getComponents() probably shoudln't be used directly
1058: [14:34:53] <Pyrstrtk> but you can use has_one(), has_many() & many_many() which will give you arrays of the relations
1059: [14:35:13] <Pyrstrtk> iirc
1060: [14:35:39] <wmk> jcwacky, i'd subclass e.g. textfield, add the DO to it and modify the template
1061: [14:36:02] <Pyrstrtk> ^
1062: [14:36:13] <jcwacky> Thanks! I’ll give that go! :)
1063: [14:38:06] <wmk> e.g. with magic creator... JCWackyField::create($myDO) -> returns textfield with name, title etc. set automatically
1064: [14:39:26] * Shrike_Finland quit (Quit: Leaving.)
1065: [14:47:08] * NobrainerWeb quit (Quit: NobrainerWeb)
1066: [14:54:43] * Sj0hn has joined #silverstripe
1067: [15:19:55] * Shrike_Finland has joined #silverstripe
1068: [15:27:24] * Alboes has joined #silverstripe
1069: [15:28:00] * stephanvd has joined #silverstripe
1070: [15:32:24] * Shrike_Finland quit (Quit: Leaving.)
1071: [15:33:21] <Alboes> hi
1072: [15:33:58] <Alboes> Is there a function to get json data drom external webservice into SilverStripe?
1073: [15:34:07] <Alboes> drom = from :)
1074: [15:35:27] <wmk> resfulservice?
1075: [15:35:34] <wmk> restful service i guess
1076: [15:36:09] <Pyrstrtk> Alboes: yup
1077: [15:36:21] <Pyrstrtk> json_decode(file_get_contents($url))
1078: [15:36:26] <catcher> or PHP; curl, file_get_contents, etc
1079: [15:36:48] <Pyrstrtk> try{ ^ }catch(Exception $e){ }
1080: [15:36:54] <Pyrstrtk> or something
1081: [15:37:16] <Alboes> yes, but restfulservice documentation says: sorry no JSON support
1082: [15:37:31] <Alboes> http://doc.silverstripe.org/framework/en/reference/restfulservice
1083: [15:37:37] <Pyrstrtk> it's for xml
1084: [15:38:06] <wmk> oh
1085: [15:38:14] <Pyrstrtk> but that doesn't mean you can't get json
1086: [15:38:26] <Pyrstrtk> just don't use the inbuilt parsing things, or soemthing
1087: [15:38:55] * Pyrstrtk should get around to tidying up and releasing module.
1088: [15:39:21] <Alboes> is there an example with json somewhere?
1089: [15:39:38] <Pyrstrtk> json_decode(file_get_contents($url))
1090: [15:42:16] <Alboes> an example how to use in combination with restful service?
1091: [15:44:49] <Pyrstrtk> json_decode(file_get_contents($baseurl.$endpoint))
1092: [15:45:00] * kozmikreis has joined #silverstripe
1093: [15:45:04] <kozmikreis> HERRO!
1094: [15:45:33] <Pyrstrtk> Hello offensive foreigner.
1095: [15:45:43] <kozmikreis> SORRY!
1096: [15:45:49] <Pyrstrtk> THAT'S OK!
1097: [15:46:20] <kozmikreis> Good, also I have an issue with SearchContext, let me have a think on how best to formulate my question...
1098: [15:47:48] <kozmikreis> I have a set of DataObjects that are accessed through a relation to other DataObjects. The first set is a category, and the second are the items in that category. The items have a SearchContext that says that their Title attribute is searchable.
1099: [15:47:53] <wmk> unless you don't have an issue with caps lock
1100: [15:48:14] <wmk> ;)
1101: [15:48:16] <kozmikreis> I want to be able to search for the items in a category by their Title but I'm getting stuck with the code to do it :-/
1102: [15:49:05] <kozmikreis> Basically, I want to ensure my search happens in the database server and not at an application-level filter, which is how it is now, which is making me very sad :-(
1103: [15:49:54] <wmk> kozmikreis, some kind of frontend search?
1104: [15:50:06] <Pyrstrtk> wmk: Actually I've just been reading a whole bunch of articles about marginalisation in the tech industry.
1105: [15:50:14] <wmk> Pyrstrtk, omg
1106: [15:50:21] <kozmikreis> wmk: Yup, exactly that - they're news items that are categorised and I want a simple title search
1107: [15:50:36] <Pyrstrtk> particularly bad with women, but also stereotype of bad asian english falls in the same category I think.
1108: [15:51:05] <kozmikreis> Marginalisation, isn't that what Word and Open Office do with documents?
1109: [15:51:06] <wmk> Pyrstrtk, bad women? bad asian? you've been to hallstatt?
1110: [15:51:25] <Pyrstrtk> lolwut
1111: [15:51:37] * Shrike_Finland has joined #silverstripe
1112: [15:51:49] * jenniferaslan has joined #silverstripe
1113: [15:51:49] <Pyrstrtk> also, websockets are cool, but ffs, whole new protocols meaning I need a second server :<
1114: [15:53:32] <kozmikreis> So far I have $news = $this->NewsCategories()->relation('News'); foreach ($news as $item) { /* Filtering, but bad cos it's at the app-level :-( */ }
1115: [15:53:45] <wmk> ah.
1116: [15:53:48] <Pyrstrtk> ->filter()
1117: [15:53:52] <Pyrstrtk> same as any other datalist
1118: [15:53:53] <wmk> yup
1119: [15:54:01] <kozmikreis> FILTER! OF COURSE!
1120: [15:54:06] <kozmikreis> Soz, shouting again :-(
1121: [15:54:10] <kozmikreis> tvm...
1122: [15:54:21] <Pyrstrtk> over excited I think is the word :>
1123: [15:54:24] <kozmikreis> :-D
1124: [15:54:29] <wmk> maybe apply partialmatchfilter
1125: [15:54:40] <Pyrstrtk> mmm
1126: [15:54:50] <wmk> or startwith filter
1127: [15:54:54] <Pyrstrtk> because fulltext is rubbish
1128: [15:54:57] <Pyrstrtk> or endswith
1129: [15:54:58] <Pyrstrtk> :P
1130: [15:55:08] <wmk> depends on how many items you have in db
1131: [15:55:20] <Pyrstrtk> yeah depends what db too I guess.
1132: [15:55:26] <Pyrstrtk> fulltext isn't shit in postgre afaik
1133: [15:55:36] <wmk> 100 news item in mysql - no problem
1134: [15:55:43] <wmk> some 1000 items in mysql...
1135: [15:55:57] <wmk> just title a bit slower, $Content ... good luck
1136: [15:56:15] <kozmikreis> I need to do an equivalent of WHERE `Title` LIKE '%moo%'
1137: [15:56:24] <wmk> partialmatchfilter
1138: [15:56:29] <kozmikreis> tvm again!
1139: [15:56:37] <wmk> tvm?
1140: [15:57:23] <wmk> title like moo... sounds like a cow
1141: [15:58:17] * Eliseth quit (Remote host closed the connection)
1142: [15:58:45] * Shrike_Finland quit (Quit: Leaving.)
1143: [15:59:01] * Eliseth has joined #silverstripe
1144: [15:59:06] * Fuxo quit (Remote host closed the connection)
1145: [15:59:58] * Eliseth quit (Client Quit)
1146: [16:00:08] <kozmikreis> Pah: [User Error] Uncaught Exception: Object->__call(): the method 'partialmatchfilter' does not exist on 'ManyManyList'
1147: [16:00:51] <kozmikreis> I tried a simplistic $news = $this->NewsCategories()->relation('News')->partialmatchfilter(array('Title' => '%test%'));
1148: [16:01:23] * toddvalentine has joined #silverstripe
1149: [16:01:28] * Eliseth has joined #silverstripe
1150: [16:07:07] * Sj0hn quit ()
1151: [16:07:37] <Otterpocket> Hello, Using Session:: can I set one value that expires without destroying the Members session?
1152: [16:07:55] <Pyrstrtk> wmk: thanks very much
1153: [16:07:58] <Pyrstrtk> tvm
1154: [16:08:03] <Pyrstrtk> tyvm
1155: [16:08:15] <wmk> ah
1156: [16:08:42] <wmk> same like 10x but doesn't look so binary
1157: [16:08:57] <Pyrstrtk> 10x would be hex, no?
1158: [16:08:58] <Pyrstrtk> :P
1159: [16:09:04] <Pyrstrtk> 16
1160: [16:09:23] <Pyrstrtk> no silly Pyrstrtk, that would be 0x10
1161: [16:09:40] <Pyrstrtk> GOSH
1162: [16:10:51] <wmk> well, in real binary it'd be 1010x
1163: [16:11:47] <Pyrstrtk> mm :>
1164: [16:13:08] <Pyrstrtk> also, hex would be 0xA derp derp :<
1165: [16:13:52] <Pyrstrtk> 12 in octal
1166: [16:14:13] <Pyrstrtk> y'know, just to throw a cat in the pigeons
1167: [16:19:21] * r_hector quit (Quit: Leaving.)
1168: [16:19:58] <wmk> 12x wow
1169: [16:30:27] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
1170: [16:31:32] <Pyrstrtk> wholey shit; that moment when you finally learn (some 24 years later) exactly how it is that quartz keeps time in a watch: http://en.wikipedia.org/wiki/Pyroelectric_crystal#Piezoelectric_effect
1171: [16:33:07] * ss31noob quit (Ping timeout: 246 seconds)
1172: [16:37:45] * babak quit (Ping timeout: 260 seconds)
1173: [16:40:52] * simon_w|work has joined #silverstripe
1174: [16:43:06] * stephanvd quit (Quit: (null))
1175: [16:46:05] <kozmikreis> If you're curious, this is how I solved the Title search: https://pastee.org/5kmef
1176: [16:46:15] <kozmikreis> Thanks for all the suggestions :-)
1177: [16:47:34] <Pyrstrtk> urgh
1178: [16:47:34] <Pyrstrtk> why
1179: [16:47:36] <Pyrstrtk> why would you do that
1180: [16:48:08] <Pyrstrtk> why not just new mysqli_connect('lol', 'select * from allmythings where stuff') ?
1181: [16:49:20] <kozmikreis> Pyrstrtk: I guess you're not a fan of (attempting to use) MVC :-p
1182: [16:49:53] <kozmikreis> Or ORM...
1183: [16:49:57] <Pyrstrtk> I'm a fan of using a framework rather than hacking around it.
1184: [16:51:01] <Pyrstrtk> but at least it'll return a list for you I guess.
1185: [16:51:05] * Pyrstrtk shrugs
1186: [16:51:22] <kozmikreis> Cool, so when the next developer to touch your code is told to switch out the database to Oracle, for example, all your mysqli_*() calls will be just *awesome* fun to find and replace.
1187: [16:52:03] <wmk> but... why not use filter() ???
1188: [16:52:14] <Pyrstrtk> yeah, just like when someone has to maintain your code there... gawd I feel sorry for them :<
1189: [16:52:23] <wmk> harr harr
1190: [16:52:32] <kozmikreis> wmk: filter is good for exact matches only, this particular search is for keywords in strings
1191: [16:52:37] <Pyrstrtk> because sarcasam doesn't carry over text, totally this --> [16:52] <wmk> but... why not use filter() ???
1192: [16:52:48] <Pyrstrtk> kozmikreis: rtfm
1193: [16:53:06] <kozmikreis> Pyrstrtk: I know my code ain't pretty, I admit that :-p
1194: [16:53:10] <wmk> partialmatchfilter ....
1195: [16:53:40] <Pyrstrtk> http://doc.silverstripe.org/framework/en/topics/datamodel#search-filter-modifiers
1196: [16:53:45] <Pyrstrtk> kozmikreis: ^
1197: [16:53:48] <kozmikreis> wmk: scroll up, it's not available in ManyManyList objects
1198: [16:54:09] <wmk> oh, really?
1199: [16:54:28] <kozmikreis> wmk: [16:00] <kozmikreis> Pah: [User Error] Uncaught Exception: Object->__call(): the method 'partialmatchfilter' does not exist on 'ManyManyList'
1200: [16:55:02] <kozmikreis> Pyrstrtk: Nice, those filters would be better, thanks again :-)
1201: [16:55:07] <wmk> ehem... rtf, you know
1202: [16:55:12] <Pyrstrtk> hmm, seems like a bug.
1203: [16:55:32] <wmk> kozmikreis, did you try $this->relation()->partialmatchfilter() ??? this cannot work
1204: [16:55:36] <Pyrstrtk> or, you coded everything wrogn
1205: [16:55:39] <Pyrstrtk> like ^^
1206: [16:55:48] <kozmikreis> I'm re-writing now...
1207: [16:56:19] <Pyrstrtk> $this->relation()->partialmatchfilter() // WRONG! $this->relation()->filter('Field:PartialMatchFilter' => $thing) // CORRECT
1208: [16:59:04] <kozmikreis> What happens when 'Field' is in both sides of the relation, as in the case of Title?
1209: [16:59:29] <kozmikreis> Can I do something like $this->relation()->filter('News.Title:PartialMatchFilter' => $thing)?
1210: [17:00:00] <wmk> when $this->relation()->filter() filters the relation
1211: [17:00:40] <Pyrstrtk> kozmikreis: well it dosen't look at both sides of the relation
1212: [17:00:41] <Pyrstrtk> only one.
1213: [17:00:47] <Pyrstrtk> you already have the other side.
1214: [17:01:15] <Pyrstrtk> $thisSide->manyRelName()->filter('why would I search for $thisSide's title?)
1215: [17:02:05] <kozmikreis> Still no worky: [User Error] Uncaught InvalidArgumentException: ExactMatchFilter does not accept PartialMatchFilter as modifiers
1216: [17:02:07] <Pyrstrtk> hopefully that clears that up
1217: [17:02:17] <Pyrstrtk> huh
1218: [17:02:23] <Pyrstrtk> are you Think:filter:filter ?
1219: [17:02:29] <kozmikreis> Nope
1220: [17:02:30] <Pyrstrtk> thing*
1221: [17:02:36] <Pyrstrtk> code paste time I think
1222: [17:02:41] * kerosene quit (Ping timeout: 244 seconds)
1223: [17:03:16] <kozmikreis> $news = $this->NewsCategories()->relation('News'); /* Some stuff, then: */ $news = $news->filter(array('Title:PartialMatchFilter' => $keyword));
1224: [17:03:46] <Pyrstrtk> $this->NewsCategories()->relation('News')->filter('title:partialmatchfilter', $keywordsArray)
1225: [17:04:03] <Pyrstrtk> why some stuff, then?
1226: [17:04:31] <kozmikreis> Pyrstrtk: that's just the bit that takes and sanitises the GET parameter for "Title"
1227: [17:04:38] <Pyrstrtk> why would you do that?
1228: [17:04:53] <Pyrstrtk> you're double escaping
1229: [17:05:03] <kozmikreis> Yeah I suppose less sanitisation is needed but I still need to break it into individual terms
1230: [17:05:11] <kozmikreis> True
1231: [17:05:17] <kozmikreis> Still needs breaking up
1232: [17:05:59] <Pyrstrtk> 'title:partialmatchfilter' => explode($this->request->getParam('searchkeywords'))
1233: [17:06:06] <Pyrstrtk> ish
1234: [17:06:34] <Pyrstrtk> you need to sanitise on ->where because that's raw iirc.
1235: [17:06:47] <Pyrstrtk> which is one of the reasons ->where should never be used.
1236: [17:06:57] <Pyrstrtk> it's there for... some unknown reason.
1237: [17:06:59] <kozmikreis> Yes, you are right, now I'm not using where() I don't need to sanitise
1238: [17:07:12] <Pyrstrtk> I kinda wish it wasn't in the orm side of things.
1239: [17:07:25] <Pyrstrtk> must be needed somewhere. but the temptation for poeple to hack around and use it is too great.
1240: [17:07:27] * kozmikreis does read the code to see what it does, even if I don't read the manual :-)
1241: [17:07:51] <Pyrstrtk> yeah, manual is lacking in many places, so that's not exactly a bad habbit anyway ;)
1242: [17:08:29] * kerosene has joined #silverstripe
1243: [17:09:27] <Pyrstrtk> generally most things can be done through the orm. If they can't, then you're probably after sqlquery, and if that's not sufficient, there's alwasy db::query... but generally if you're using ->where, you're _probably_ doing it wrong (or at least... not as good as it could be)
1244: [17:09:27] <kozmikreis> I'm still getting the same error :-(
1245: [17:09:31] <Pyrstrtk> :(
1246: [17:09:42] <Pyrstrtk> well, where() DID work, so you could always stick with it
1247: [17:09:45] * Pyrstrtk shrugs
1248: [17:09:50] <kozmikreis> I don't wanna :-(
1249: [17:09:53] <Pyrstrtk> haha
1250: [17:10:05] <Pyrstrtk> maybe partial match doesn't take array params
1251: [17:10:05] <Pyrstrtk> idk
1252: [17:10:29] <kozmikreis> I tried with and without, I get: [User Error] Uncaught InvalidArgumentException: ExactMatchFilter does not accept PartialMatchFilter as modifiers
1253: [17:10:29] <Pyrstrtk> probably doesn't :<
1254: [17:10:47] <Pyrstrtk> yeah but I'm wondering why it's trying 2 filters
1255: [17:10:55] <Pyrstrtk> could be bug :<
1256: [17:12:10] * kozmikreis cries
1257: [17:12:38] <kozmikreis> I'm going home soon, I don't care, maybe I'll put that ugly load of where() stuff back in :'(
1258: [17:12:43] <Pyrstrtk> I dunno what you've got, what you're up to.
1259: [17:12:47] <Pyrstrtk> yeah, just leave it with the ugly
1260: [17:12:50] <Pyrstrtk> it works.
1261: [17:12:52] * Pyrstrtk shrugs
1262: [17:13:08] <Pyrstrtk> would be better to searchfilter of course, but... it is what it is :<
1263: [17:13:36] <kozmikreis> It's less extensible and less safe with all the where() crapola
1264: [17:13:44] <kozmikreis> And as you saw, less readable!
1265: [17:14:06] <Pyrstrtk> yep.
1266: [17:14:07] <kozmikreis> [16:47] <Pyrstrtk> urgh
1267: [17:14:11] <kozmikreis> lol
1268: [17:14:17] <Pyrstrtk> my advice would be to collapse the explode. Suddenly more readable!
1269: [17:14:27] <Pyrstrtk> (ie, make it single line, not multi)
1270: [17:14:58] <Pyrstrtk> [16:47] <Pyrstrtk> why would you do that
1271: [17:14:58] * stnvh quit (Read error: Connection reset by peer)
1272: [17:15:02] <Pyrstrtk> because bugs, or something :<
1273: [17:15:11] <Pyrstrtk> idk, I hate search.
1274: [17:15:16] * muskie9 is now known as _muskie9_
1275: [17:15:31] <Pyrstrtk> anyway, about hometime
1276: [17:15:38] <Pyrstrtk> gl kozmikreis !
1277: [17:15:55] <kozmikreis> Thanks! It's been fun!
1278: [17:16:04] <kozmikreis> Seeeeya o/
1279: [17:16:05] <Pyrstrtk> Thanks, I'm here all week :P
1280: [17:16:09] <Pyrstrtk> (no srsly)
1281: [17:16:12] * Pyrstrtk quit ()
1282: [17:16:28] <kozmikreis> I dunno if I can come back - it's rare the corp firewall lets me reach freenode!
1283: [17:16:46] <kozmikreis> Adios o/
1284: [17:16:56] * kozmikreis quit (Quit: Tatty bye)
1285: [17:29:30] * _muskie9_ is now known as muskie9
1286: [17:33:42] * Alboes quit (Remote host closed the connection)
1287: [17:34:05] * wmk quit (Ping timeout: 265 seconds)
1288: [17:34:52] * Otterpocket quit (Quit: WeeChat 0.4.1)
1289: [17:36:17] * babak has joined #silverstripe
1290: [17:40:09] * muskie9 is now known as _muskie9_
1291: [17:41:26] * Guits has joined #silverstripe
1292: [17:53:44] <jcwacky> Getting a white screen on submission if a required field isn’t completed in a SilverStripe form. Can’t for the life of me work out why.
1293: [18:12:23] * ThePeach quit (Quit: leaving)
1294: [18:16:31] * MrGuits has joined #silverstripe
1295: [18:21:45] * _muskie9_ is now known as muskie9
1296: [18:24:16] * toddvalentine quit ()
1297: [18:28:06] * Pyromanik has joined #silverstripe
1298: [18:28:17] <Pyromanik> hello my sexies
1299: [18:43:07] * wmk has joined #silverstripe
1300: [18:44:44] * gelignite has joined #silverstripe
1301: [18:52:44] <catcher> your sexies? That must mean me. Hello!
1302: [18:53:53] * Shrike_Finland has joined #silverstripe
1303: [18:59:51] * Kingy[a] is now known as Kingy
1304: [19:00:18] <mudmonth> what's the easiest way to detect if i am getting an ajax post to one of my page controllers
1305: [19:00:53] <mudmonth> i have EntryPage controller and its on /entry and i want to ajax post some data to /entry or /entry/submit or whatever seems cleanest
1306: [19:03:55] * Stomach has joined #silverstripe
1307: [19:04:29] <Kingy> mornin
1308: [19:06:34] <wmk> mudmonth, http://api.silverstripe.org/3.1/class-SS_HTTPRequest.html#_isAjax
1309: [19:06:42] <wmk> e.g. $this->request()->isAjax()
1310: [19:06:51] <wmk> hi Kingy
1311: [19:07:04] <wmk> catcher, i dunno if you're right ;)
1312: [19:08:48] <mudmonth> wmk if i wanted /entry/submit is there a public method name i can add to my controller to catch 'submit' or do i have to manually route it with a config
1313: [19:09:17] <wmk> is submit an action?
1314: [19:09:44] <wmk> what kind of controller?
1315: [19:09:57] <mudmonth> it's my page controller, i want to ajax post some data to it from the form
1316: [19:10:01] <mudmonth> on entrypage controller
1317: [19:10:11] <mudmonth> submit is an action i guess
1318: [19:10:11] <wmk> of course you can use $url_handlers to alias to an action
1319: [19:10:23] <wmk> seems like an action
1320: [19:10:32] <wmk> so add to $allowed_actions
1321: [19:10:37] <wmk> and flush afterwards
1322: [19:10:40] <mudmonth> ok
1323: [19:11:06] <wmk> since /me knows that flush is also used in toiltets i see silvestripe in a different light
1324: [19:11:16] <mudmonth> heh
1325: [19:11:28] <wmk> imagine.
1326: [19:11:37] <wmk> you change config and flush it away instantly
1327: [19:11:47] <wmk> ?flush=1 should play a sound
1328: [19:12:20] <Stomach> hahaha that would be awesome
1329: [19:12:47] <wmk> at least on 1st of april ;)
1330: [19:12:57] <Pyromanik> hi catcher :>
1331: [19:13:57] <Pyromanik> mudmonth, name your function submit()
1332: [19:13:59] <Pyromanik> problem solved.
1333: [19:14:00] <catcher> I knew it!
1334: [19:14:07] <Pyromanik> (oh, but still add it to allowed_actions)
1335: [19:14:15] * veb has joined #silverstripe
1336: [19:14:30] * veb quit (Client Quit)
1337: [19:22:00] <mudmonth> yeah cheers Pyromanik that's what i was thinking
1338: [19:25:21] * Werner_2_ has joined #silverstripe
1339: [19:28:23] * wmk quit (Ping timeout: 244 seconds)
1340: [19:30:52] * Werner_2_ is now known as wmk
1341: [19:37:14] * Ryan-Toast has joined #silverstripe
1342: [19:41:38] * Ryan-Toast quit (Client Quit)
1343: [19:43:15] * Ryan-Toast has joined #silverstripe
1344: [19:50:55] <Ryan-Toast> Test
1345: [19:51:05] <Kingy> failed
1346: [19:51:14] <Ryan-Toast> Dammit.
1347: [19:51:57] <Stomach> rough.
1348: [19:52:26] <Ryan-Toast> Spent aborut 3 hours last night converting a PDF of a book series to be readable on my kindle.
1349: [19:52:31] <Ryan-Toast> Great success.
1350: [19:53:48] * antmas has joined #silverstripe
1351: [19:53:55] <antmas> morning all
1352: [19:54:11] <antmas> who was it that knew a little bit about google apps for email?
1353: [19:54:17] <antmas> I have a question :D
1354: [19:54:33] <Stomach> we all know a little bit about everything
1355: [19:54:41] <Stomach> jack off all trades
1356: [19:54:45] <Stomach> masterbater of none
1357: [19:55:03] <antmas> :P
1358: [19:55:09] <Kingy> antmas: me
1359: [19:55:19] <antmas> I'm going to migrate a client over (emails, calendar, contacts)
1360: [19:55:26] <antmas> to google apps*
1361: [19:55:34] <Kingy> yep
1362: [19:55:37] <antmas> they'll be using Outlook
1363: [19:56:00] <antmas> they sync there calendar and contacts to their iPhones
1364: [19:56:26] <antmas> would migrating affect the syncing? or, would they just have to 'resync' once it's migrated?
1365: [19:56:29] * veb has joined #silverstripe
1366: [19:56:36] <antmas> I'm assuming the latter - but want to be sure
1367: [19:56:51] <Kingy> to be honest, I've never used Outlook with google apps lol
1368: [19:57:16] <Kingy> but yeah i'd also assume the latter
1369: [19:57:28] <Kingy> https://tools.google.com/dlpage/gappssync
1370: [19:57:29] <antmas> Kingy: well, all they use it for is the client - the google apps part is basically just the backend which they won't see
1371: [19:57:36] <antmas> Kingy: yup, will be using that
1372: [19:58:14] <Kingy> looks like the tool does both migrate and sync
1373: [19:58:18] <Kingy> so seems like the idea
1374: [19:58:21] <antmas> nice
1375: [20:02:12] <antmas> Kingy: http://www.google.com/work/apps/business/pricing.html this here - are all those 'includes' per user? So, 30gb per user etc?
1376: [20:02:43] <Kingy> I'm only running the 1 user
1377: [20:02:54] <antmas> ok
1378: [20:02:55] <Kingy> but my work email says 30GB
1379: [20:03:02] <Kingy> so it's per user
1380: [20:03:07] <antmas> that's cool
1381: [20:03:18] <antmas> I'll have about 4-5 accounts
1382: [20:03:20] <antmas> I think
1383: [20:04:52] * spekulatius has joined #silverstripe
1384: [20:06:09] * Jakx has left #silverstripe
1385: [20:08:22] * PapaBearNZ has joined #silverstripe
1386: [20:09:23] * lerni_ has joined #silverstripe
1387: [20:12:48] <spronk> ok
1388: [20:12:51] <spronk> whatever you do antmas
1389: [20:12:56] <spronk> DON'T use outlook IMAP with google apps
1390: [20:13:01] <spronk> make sure you use the exchange thing
1391: [20:13:02] * tsbdeveloperadmi has joined #silverstripe
1392: [20:13:28] <spronk> also, with the sync, there's a good chance it'll duplicate events in their calendar if the old one is still going to be around
1393: [20:13:36] <spronk> (on their phones)
1394: [20:14:29] * micmania1 has joined #silverstripe
1395: [20:14:47] <Kingy> micmania1: did you finish what ever it was you were building?
1396: [20:15:01] <micmania1> yep, like 3 hours later haha
1397: [20:15:10] <Kingy> haha
1398: [20:15:28] <Kingy> always go in with good intentions when you intend to build it yourself
1399: [20:15:29] <micmania1> Kingy: https://twitter.com/micmania1/status/527370280465727488
1400: [20:15:43] <Kingy> that's it!
1401: [20:15:46] <Kingy> lolol
1402: [20:16:01] <micmania1> I’ve got a big set of drawers coming soon. God knows how long thats gana take
1403: [20:16:17] <antmas> spronk: nice cheers
1404: [20:16:21] <Kingy> yeah I did a big double wardrobe once
1405: [20:16:27] <antmas> spronk: I was wondering about the duplicates
1406: [20:16:36] <Kingy> ended up putting the back panels on back to front
1407: [20:16:43] <Kingy> and they're the ones you nail in and not just screw in
1408: [20:16:44] <Kingy> fml
1409: [20:17:33] * Jakx has joined #silverstripe
1410: [20:17:41] <Jakx> mornin'
1411: [20:17:52] <micmania1> I built one draw about 4 times. Its ready to fall apart already
1412: [20:17:58] <Kingy> hhaha
1413: [20:18:03] <Kingy> micmania1: warehouse job?
1414: [20:18:07] <micmania1> aye haha
1415: [20:18:13] <Kingy> haha yep that'll do it
1416: [20:18:27] * Shrike_Finland quit (Quit: Leaving.)
1417: [20:18:51] * Shrike_Finland has joined #silverstripe
1418: [20:19:26] <Pyromanik> Morn'n Jakx
1419: [20:20:13] <Pyromanik> micmania1, whip down the local mitre10 gecho self some caulk
1420: [20:20:39] <micmania1> Pyromanik: do what?
1421: [20:21:05] <Jakx> get yourself some gap filler
1422: [20:21:44] <Jakx> = gecho self some caulk
1423: [20:22:16] <spronk> yeh
1424: [20:22:21] <spronk> glue those joins brau
1425: [20:22:33] <spronk> turns flat pack into MONSTER PACK
1426: [20:22:55] <Jakx> I had never considered doing that.
1427: [20:23:42] <spronk> its awesome
1428: [20:23:46] <spronk> unless you ever want to dismantle
1429: [20:24:03] * novaweb has joined #silverstripe
1430: [20:24:06] * UndefinedOffset quit (Quit: Leaving.)
1431: [20:24:21] <antmas> hmmmmm
1432: [20:24:31] <antmas> there are 3 years worth of emails in there
1433: [20:24:34] <antmas> :/
1434: [20:24:39] <antmas> backup is gon' be a bitch
1435: [20:25:18] <spronk> ughhhhh
1436: [20:25:19] <spronk> yeah
1437: [20:25:38] <spronk> when i switched us to google apps i just archived everyone's PSTs
1438: [20:26:03] <antmas> probably a good Idea to BU before doing all this syncy Mcmigrate stuff though
1439: [20:26:16] <spronk> mm
1440: [20:26:25] <antmas> spronk: so, everything up to the date of migrate - you just archived them?
1441: [20:26:43] <spronk> ja
1442: [20:26:53] <spronk> obv not for all orgs
1443: [20:26:54] <antmas> spronk: would they still access them normally?
1444: [20:27:06] <spronk> well we were using POP3 from our own mail server previously
1445: [20:27:11] <spronk> so everyone just had their own mail locally downloaded
1446: [20:27:32] <spronk> so i just took their PSTs as a "backup" of the old stuff
1447: [20:27:37] <spronk> and everything new is googleapps
1448: [20:28:04] <antmas> ah ok
1449: [20:28:13] <antmas> I kinda want to do the same 'start fresh'
1450: [20:28:20] <antmas> but have them be able to view those old emails easily
1451: [20:28:32] <spronk> yeah
1452: [20:28:35] <spronk> thats what we did
1453: [20:28:44] <spronk> the killer is attachments
1454: [20:28:49] <spronk> dont want to migrate that shit to google
1455: [20:28:58] <antmas> how do you deal with that?
1456: [20:29:21] <spronk> well as i said, our process basically just left their existing emails on everyone's local machines as they were
1457: [20:29:30] <spronk> and added a new exchange account for them
1458: [20:29:38] <spronk> so new mail comes into new exchange account, within same outlook
1459: [20:29:39] <antmas> oh ok
1460: [20:29:44] <spronk> old mail just sits there
1461: [20:30:00] <spronk> but, take a backup of it in case you accidentally delete the wrong account etc
1462: [20:30:01] <spronk> :P
1463: [20:30:03] <antmas> yeah I'll do the same
1464: [20:30:08] <antmas> :P
1465: [20:30:48] * hailwood has joined #silverstripe
1466: [20:33:09] <Jakx> I have a MyClass::sendEmail() method, it generates a pdf attachment. If I loop through a set of "MyClass"s, and execute the sendEmail() method for each, the first class sends our emails perfectly (with attachments), but then every subsequent class's emails arrive blank. If I comment out the ->attachFile() from the method, every email arrives perfectly. Email body is perfect before send() (debugged it), and pdf's are generated and writte
1467: [20:33:10] <Jakx> i.e $1st->sendEmail() = sends perfectly, $2nd->sendEmail() = arrives blank, even though email body and attachment file were generated perfectly before send.
1468: [20:34:01] <mudmonth> how do i get random dataobjects? can i just RAND() some how?
1469: [20:36:15] * SphereSilver has joined #silverstripe
1470: [20:42:06] * UncleCheese has joined #silverstripe
1471: [20:44:13] * Shrike_Finland quit (Quit: Leaving.)
1472: [20:44:27] * Shrike_Finland has joined #silverstripe
1473: [20:46:19] <catcher> mudmonth, get a DataList, get the IDs with col(), use rand() to choose, then get the object by ID
1474: [20:46:41] <catcher> column() rather
1475: [20:47:04] * toddvalentine has joined #silverstripe
1476: [20:48:26] <wmk> hey SphereSilver
1477: [20:49:24] * Phlunk3 has joined #silverstripe
1478: [20:49:43] <SphereSilver> \o
1479: [20:54:33] * mahfuz has joined #silverstripe
1480: [20:54:49] <mahfuz> Good Morning
1481: [20:54:51] <UncleCheese> catcher DataList::sort('RAND()')->fist() no worky?
1482: [20:55:12] <UncleCheese> hi, mahfuz
1483: [20:55:14] <UncleCheese> how's your search form?
1484: [20:55:16] * antmas quit (Quit: Page closed)
1485: [20:55:36] <Pyromanik> micmania1, caulk, you know, and while you're at it get some sealant for your deck.'
1486: [20:55:39] <mahfuz> Hi UC. I am having an weired problem
1487: [20:55:40] <toddvalentine> I have a task set up that is running via cron using cli-script.php. I removed a class and flushed via the browser, but I still receive errors that SS is still looking for the class. Do I need to flush via cli? Is it php framework/cli-script.php flush=1?
1488: [20:56:05] <UncleCheese> toddvalentine i don't think it makes a huge difference, but you should use sake
1489: [20:56:14] <UncleCheese> framework/sake flush=1
1490: [20:56:31] <toddvalentine> thanks UncleCheese.
1491: [20:56:56] <Pyromanik> Jakx, that sounds very weird. Perhaps install something like that fancy mail interceptor that Zauberfisch loves and see if it's the sendmail stripping things perhaps?
1492: [20:57:06] <wmk> afaik sake and www-user have different caches toddvalentine
1493: [20:57:12] <Pyromanik> maybe use one of those fancy SMTP modules, instead of relying on php's inbuilt mail()
1494: [20:57:19] * zippy has joined #silverstripe
1495: [20:57:22] <wmk> at least if you don't run sake / cli-script with www user
1496: [20:57:35] <mahfuz> I am using a Controller to link the Keyword and render the photos with that keyword in a template but strangely the Forms and SiteConfig values that are shown in the template are not showing up
1497: [20:57:47] <UncleCheese> ok
1498: [20:57:51] <toddvalentine> thanks wmk.
1499: [20:58:28] <Pyromanik> micmania1, just go into mitre10 and ask for the big black caulk.
1500: [20:58:56] <micmania1> Pyromanik: As much as I respect your experience in that department, i’ll give it a miss.
1501: [20:59:10] <Pyromanik> haha, don't you remember the video you showed me that time micmania1?
1502: [20:59:12] <Pyromanik> xD
1503: [20:59:19] <micmania1> yeah, i clicked hahaha
1504: [20:59:22] <micmania1> when you said deck
1505: [20:59:58] <Pyromanik> :P
1506: [21:00:17] <Pyromanik> although to my ears we pronounce caulk more like 'cork' than cock.
1507: [21:01:27] <mahfuz> Just now i tested with calling a function in Page.php through config.yml Director Rule setup, it shows ok.
1508: [21:01:39] <Pyromanik> corking gun
1509: [21:01:57] <Pyromanik> I always thought it was, until I saw it spelt... some years later :P
1510: [21:02:00] <toddvalentine> wmk: when I run php framework/cli-script.php flush=1 I still get the error that SS is looking for the non-existent class.
1511: [21:02:09] <mahfuz> May be in earlier case the template was not getting the Form function and SiteConfig values.
1512: [21:02:45] <wmk> toddvalentine, delete the cach dir
1513: [21:02:51] <wmk> cache
1514: [21:03:24] <Pyromanik> micmania1, to be srs tho, get some araldyte and/or pvc wood glue and some extra screws (and a drill with a small bit for pilot holes) and she'll be right as rain... if it doesn't split to pieces while you screw it (oh the cock puns xD ) - which it probably will.
1515: [21:03:31] <Pyromanik> 'coz warewhare.
1516: [21:03:48] <Pyromanik> :>
1517: [21:03:56] <Pyromanik> urethane
1518: [21:04:01] <Pyromanik> urathane* mebbe
1519: [21:04:02] <Pyromanik> idk
1520: [21:04:05] <micmania1> it’ll be areet. probably.
1521: [21:04:11] <Pyromanik> yeh, probably.
1522: [21:04:23] <Pyromanik> urethane probably the resort to go to once it actually splits.
1523: [21:04:23] <micmania1> I got my bed from warehouse and that’s still in one piece!
1524: [21:04:27] <Pyromanik> hahaha
1525: [21:04:33] <Pyromanik> did you christen it yet though? xD
1526: [21:04:42] <micmania1> hahaha well..
1527: [21:04:47] <Pyromanik> a few thrusts and you'll probably climax on the floor...
1528: [21:05:07] <Pyromanik> or is it not on legs in the first place? haha
1529: [21:05:09] <spronk> not that that's a bad thing
1530: [21:05:26] <Pyromanik> yeh, floors (usually) don't squeek, lol
1531: [21:07:24] <spronk> well...
1532: [21:07:30] <spronk> you're not working hard enough, Pyromanik ;)
1533: [21:10:57] <Kingy> css experts.. how can I stop this https://www.dropbox.com/s/sg4p88q71yd9yfa/Screenshot%202014-10-30%2010.10.20.png?dl=0 doing this https://www.dropbox.com/s/9wqd4lewo0qtk1v/Screenshot%202014-10-30%2010.10.47.png?dl=0 when screen is resized
1534: [21:11:12] <Jakx> Pyromanik, thanks for the suggestions
1535: [21:11:21] <spronk> kingy what type of elem is it?
1536: [21:11:26] <spronk> and what display mode?
1537: [21:12:00] <spronk> at a guess, white-space: nowrap
1538: [21:12:03] <Kingy> just a div with <a
1539: [21:12:14] <spronk> ^^
1540: [21:12:23] <Kingy> hmm that undoes it
1541: [21:12:41] <spronk> ?
1542: [21:12:47] <Kingy> but now it's doing https://www.dropbox.com/s/2a3jh3xj0eqazph/Screenshot%202014-10-30%2010.12.43.png?dl=0
1543: [21:13:19] <Kingy> I don't mind it going over two lines, but would just like one big green box
1544: [21:13:49] <mahfuz> Hey guys. What is the simplest way to implement social share in a Page?
1545: [21:14:36] <micmania1> Kingy: display: block?
1546: [21:14:49] <toddvalentine> wmk: thanks alot for the help. worked perfectly.
1547: [21:15:00] <wmk> fine
1548: [21:18:03] <micmania1> mahfuz: http://www.addthis.com/
1549: [21:18:55] <mahfuz> micmanial: how do I integrate in a Page
1550: [21:20:57] * Shrike_Finland quit (Quit: Leaving.)
1551: [21:21:58] <micmania1> mahfuz: I posted wrong one - meant this one: http://www.sharethis.com/
1552: [21:22:59] <JeremyRoundill> micmania1: Have you read the TOCs of the Twitter and Facebook logos?
1553: [21:23:15] <JeremyRoundill> micmania1: They're really restrictive, it's a pain. :P
1554: [21:23:30] <micmania1> I’ve seen the Twitter branding guidelines. I’ve never followed them though haha
1555: [21:24:23] <mudmonth> how do i store the current date the data object was added, or does it already do it?
1556: [21:24:54] <JeremyRoundill> micmania1: You're only allowed to use a couple of colours, and the logos have to be pretty much exactly what you download from the Facebook/Twitter sites.
1557: [21:25:10] <JeremyRoundill> micmania1: Our designers don't follow the guidelines either :D
1558: [21:25:43] <Stomach> JeremyRoundill - neither do ours, but I always just push back really hard
1559: [21:25:52] <Stomach> its my account thats being used for the development after all
1560: [21:26:13] <JeremyRoundill> Stomach: So do I. I don't want the responsibility of that on me. :D
1561: [21:26:57] <Stomach> the best is a social media company we do work for complaining about not being able to do certain things on facebook applications
1562: [21:27:07] <Stomach> I always just give them the "are you serious" look
1563: [21:27:21] <JeremyRoundill> Stomach: Social media marketers? :P
1564: [21:27:31] <micmania1> urgh. Marketing.
1565: [21:27:32] <Stomach> yup
1566: [21:27:47] <JeremyRoundill> Stomach: My friends started one of those companies. They didn't know anything about social media.
1567: [21:28:27] <Stomach> yeah I know they don't
1568: [21:28:31] <Stomach> but they still get business
1569: [21:28:33] <Stomach> makes me sick :D
1570: [21:28:40] * catcher quit (Quit: Leaving)
1571: [21:35:10] * jojojojo quit (Ping timeout: 246 seconds)
1572: [21:35:43] <mudmonth> in the case of a Foo has_one Bar and Bar has_many Foo when i $foo = new Foo and assign $foo->Bar = $someBar; do i need to do the other side of the assoication manually as well? like append $foo to $bar's Foos
1573: [21:35:56] <mudmonth> before the write
1574: [21:39:33] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
1575: [21:40:23] <Stomach> nope
1576: [21:40:28] <Stomach> $foo->BarID = $someID;
1577: [21:40:43] <Stomach> the has_many relies on backtracing to $foo->BarID
1578: [21:48:50] * Jakx has left #silverstripe
1579: [21:55:56] * toddvalentine quit ()
1580: [21:59:41] * veb has joined #silverstripe
1581: [22:00:57] * wmk quit (Ping timeout: 255 seconds)
1582: [22:04:39] * Jakx has joined #silverstripe
1583: [22:06:22] <Jakx> attachments, from previous instances of $email = new Email(), aren't being removed when a $email = new Email() is instantiated, or $email is unset. Why do the attachments hang around?
1584: [22:09:10] * Phlunk3 quit (Ping timeout: 250 seconds)
1585: [22:18:34] <SphereSilver> Winnerspage online! *O*
1586: [22:19:45] <simon_w|work> Jakx, cause you're using the same object
1587: [22:20:16] <Jakx> simon_w|work, what should I do to use a fresh object each time?
1588: [22:20:31] <simon_w|work> new Email()
1589: [22:23:01] <simon_w|work> (yes, you said you're doing that, but you're obviously doing something wrong since $attachments is an instance variable)
1590: [22:23:18] <Jakx> simon_w|work, how did you... hahah
1591: [22:25:34] <Jakx> simon_w|work, could you please take a quick peak at this: http://sspaste.com/paste/show/545163ec0f8be and see if you spot anything?
1592: [22:26:43] <Jakx> line 23, $email = new TGEmail(). (TGEmail is a very very basic extension of Email)
1593: [22:27:21] <Jakx> attachment is attached at line 69
1594: [22:29:15] <simon_w|work> And how do you know it's not clearing the attachments?
1595: [22:29:16] * Colin[pi] has joined #silverstripe
1596: [22:29:21] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1597: [22:29:39] <mahfuz> What is the simplest way to make a basic registration page and show a profile page when they login?
1598: [22:30:05] <novaweb> mahfuz
1599: [22:30:13] <novaweb> i'll just look in my git for you
1600: [22:30:31] <Ryan-Toast> mahfuz: https://github.com/Rhym/ss_boilerplate/tree/master/boilerplate/code/Modules/Registration
1601: [22:30:33] <mahfuz> thanks novaweb
1602: [22:31:02] <Jakx> simon_w|work, the 1st sendEmail() call's emails arrive with 1 attachment, the 2nd sendEmail() call's emails arrive with 2 attachments, and so on.
1603: [22:31:39] <Jakx> simon_w|work, because the filename is so specific, it's easy to tell which sendEmail() call generated any given attachment.
1604: [22:31:50] <mahfuz> Ryan: Is there any doc to implement this?
1605: [22:32:08] <Ryan-Toast> mahfuz, just chck it in your mysite
1606: [22:32:12] <Ryan-Toast> dev/build
1607: [22:32:19] <Colin[pi]> moin moin
1608: [22:32:41] <simon_w|work> Jakx, and what's in TGEmail?
1609: [22:33:32] <mahfuz> Thanks Ryan. Let me try.
1610: [22:33:41] <Jakx> simon_w|work, added as a comment to the sspaste.
1611: [22:35:09] <novaweb> mahfuz sorry no go for now. Use Ryan-Toast's solution mine has disappeared
1612: [22:35:42] <Ryan-Toast> mahfuz, you should just have to make the registration, and user account pages in yr sitetree too.
1613: [22:36:25] * gelignite quit (Quit: http://bit.ly/nkczDT)
1614: [22:37:36] <mahfuz> Ryan: excuse my ignorance. I can't find any link to download the whole module
1615: [22:39:24] <Jakx> mahfuz, https://github.com/Rhym/ss_boilerplate/archive/master.zip
1616: [22:41:00] <Pyromanik> Jakx, simon_w|work SIDE EFFECTS!
1617: [22:41:10] <Ryan-Toast> mahfuz: my boilerplate is pretty big, just grab the registration module under code/Modules/Registration
1618: [22:41:19] * markcl quit (Read error: Connection reset by peer)
1619: [22:41:21] <Pyromanik> gosh, brb, opening ticket: Make SS all functional. Convert to Scala.
1620: [22:41:55] <Pyromanik> oh Ryan-Toast, I bet you say that to all the girls.
1621: [22:42:14] <Ryan-Toast> Pyromanik:you unzip it and just go “wow"
1622: [22:42:23] <Jakx> lololol
1623: [22:42:24] <Pyromanik> [11:18] <SphereSilver> Winnerspage online! *O*
1624: [22:42:25] <Pyromanik> :O
1625: [22:43:59] <Pyromanik> lol not enough github licenses
1626: [22:44:04] * markcl has joined #silverstripe
1627: [22:44:22] <Pyromanik> Ryan-Toast, and just go “wow"
1628: [22:44:36] <Pyromanik> I dunno, looks a bit mangled to me man.
1629: [22:44:42] <Pyromanik> I don't think I can use this.
1630: [22:44:49] <Ryan-Toast> Pyromanik: most girls: http://i.imgur.com/rN7Xe9o.gif
1631: [22:45:29] <Pyromanik> a look of disgust! You must really have a way with them Ryan-Toast
1632: [22:45:55] <Ryan-Toast> Pyromanik: http://i.imgur.com/X6RXay6.gif
1633: [22:47:32] <SphereSilver> Pyromanik: A bit expected, as most users have licenses via their employers. But it's a bit sad as well. We like Github!
1634: [22:48:21] * Phlunk3 has joined #silverstripe
1635: [22:49:12] <Pyromanik> SphereSilver, yeah, I mean I didn't opt for one because I just don't think I'd use it. Better it goes to someone who actually wants it :>
1636: [22:49:15] * Liquide quit ()
1637: [22:50:12] <SphereSilver> I'd use it personally, but I'm excluded from winning anything but 2 very, very, very tiring days :(
1638: [22:50:33] <micmania1> Free GH licenses going? :p
1639: [22:51:14] <Stomach> I just use bitbucket for private repos
1640: [22:51:20] <Stomach> and github for public
1641: [22:51:25] <Stomach> thanks competing companies
1642: [22:51:42] <Pyromanik> Ryan-Toast, I can just see you bust'n moves in a wooing attempt: https://somesummersunday.files.wordpress.com/2012/01/0051.gif
1643: [22:51:55] <Ryan-Toast> I’m considering moving my boilerplate to be private after I finish a couple more modules
1644: [22:52:02] <Pyromanik> why Ryan-Toast?
1645: [22:52:07] <Ryan-Toast> Since I could be selling it.
1646: [22:52:11] <simon_w|work> I just self host
1647: [22:52:16] <Pyromanik> yeah
1648: [22:52:16] <simon_w|work> So much simpler and faster
1649: [22:52:18] <Pyromanik> like, gosh
1650: [22:52:25] <Pyromanik> totally what simon_w said.
1651: [22:52:33] <Pyromanik> also, not even using a web frontend.
1652: [22:52:35] <Pyromanik> because... why.
1653: [22:52:45] <spronk> oh god
1654: [22:52:48] <spronk> don't self host :P
1655: [22:52:49] <spronk> world of hurt
1656: [22:52:50] <spronk> :p
1657: [22:52:51] <Pyromanik> granted though off site is good.
1658: [22:53:05] <Pyromanik> spronk, yeah well if you're gitorious or something, mebbe
1659: [22:53:09] <spronk> we use bitbucket for private, github for public
1660: [22:53:16] * kinglozzer has joined #silverstripe
1661: [22:53:18] <spronk> probably going to move exclusively to github
1662: [22:53:26] <Pyromanik> bitbucket is atlassian right/
1663: [22:53:27] <Pyromanik> ?
1664: [22:53:27] <spronk> tooling is just way nicer
1665: [22:53:29] <spronk> yeah
1666: [22:53:34] <Pyromanik> TOOLING
1667: [22:54:09] <simon_w|work> spronk, just don't use gitorious :p
1668: [22:54:21] <Pyromanik> mmhmm, exactly what I was thinking simon_w :P
1669: [22:54:32] <spronk> looked into gitlab
1670: [22:54:34] <spronk> but.... no
1671: [22:54:34] <Pyromanik> that said, i've set gitorious up once, and it worked fine.
1672: [22:54:41] <spronk> its cheaper to just use github or bitbucket
1673: [22:54:44] <spronk> aaand better.
1674: [22:54:49] <Pyromanik> gitlab was much better, but crap sharing options if team grows.
1675: [22:54:55] <Pyromanik> or say if you have a team with equal access rights.
1676: [22:54:57] <spronk> unless you're a larger organisation, self hosting is a pita
1677: [22:55:00] <simon_w|work> It's cheaper to self host than github
1678: [22:55:07] <spronk> nah it isn't
1679: [22:55:12] <Pyromanik> you can't auto access repos others create
1680: [22:55:12] <simon_w|work> yeah it is
1681: [22:55:20] <spronk> 2 hours per year of my time costs more than github :P
1682: [22:55:27] <Pyromanik> yeah it is spronk
1683: [22:55:33] <Pyromanik> git init
1684: [22:55:35] <Pyromanik> JOB DONE
1685: [22:55:40] <spronk> UPDATES
1686: [22:55:41] <spronk> SEC UPDATES
1687: [22:55:45] <spronk> issue troubleshooting
1688: [22:55:52] <spronk> all that jazz
1689: [22:55:52] <Pyromanik> http://github.com/login
1690: [22:55:54] <Pyromanik> SO MUCH LONGER
1691: [22:56:08] <Pyromanik> spronk, where the fuck are you self hosting?
1692: [22:56:25] <spronk> well, our stuff is DO and EC2
1693: [22:56:36] <simon_w|work> $10/month for self hosting
1694: [22:56:43] <simon_w|work> Updates take about 5 minutes a month
1695: [22:56:48] <Pyromanik> vps with no web frontend, shell access only, ssh accessed by user priv.
1696: [22:56:56] <Pyromanik> oh wait, already got a webserver
1697: [22:57:03] <simon_w|work> So, one hour dev time + $120
1698: [22:57:03] <Pyromanik> may as well just use that
1699: [22:57:35] <Pyromanik> personally I just have 2 machines in my house
1700: [22:57:37] <spronk> we definitely wouldn't put our scm on the same vm as anything else we're running
1701: [22:57:41] <Pyromanik> one I work on, one I push to.
1702: [22:57:42] <simon_w|work> Assuming a massive $400/hr dev rate, that's $520
1703: [22:57:44] <Pyromanik> NO ISSUE AT ALL
1704: [22:57:54] <spronk> github is $50/mo for 20 repos
1705: [22:58:12] <simon_w|work> So, is cheaper than github as soon as you're over 10 private repos
1706: [22:58:15] <Pyromanik> spronk, 20 repos. That's like... a month's worth.
1707: [22:58:36] <spronk> yeah...
1708: [22:58:42] <spronk> i dno
1709: [22:58:50] <spronk> having to manage server is still a biggie
1710: [22:58:54] <Pyromanik> pretty soon you're 536478i90o31324878 dollars a day
1711: [22:58:57] <Pyromanik> and you're fucked
1712: [22:59:00] <spronk> then there's stuff like backups to consider
1713: [22:59:01] <Pyromanik> nah
1714: [22:59:08] <spronk> github takes care of that
1715: [22:59:17] <Pyromanik> just get a junior dev to double as sysadmin and what could go wrong?
1716: [22:59:19] <Pyromanik> dush
1717: [22:59:23] <Pyromanik> duh*
1718: [22:59:39] * SphereSilver quit (Remote host closed the connection)
1719: [23:00:02] * Pyromanik quit (Quit: Local host closed the connection)
1720: [23:01:14] <spronk> i dno
1721: [23:01:16] <spronk> its like self hosting mail
1722: [23:01:37] <spronk> bitbucket's free stuff is pretty decent for git anyway tbh
1723: [23:01:54] <spronk> github is a bit nicer and works better with certain tools but yeah
1724: [23:02:17] * tsbdeveloperadmi quit (Ping timeout: 260 seconds)
1725: [23:02:19] <simon_w|work> Also, DO supports backing up droplets too
1726: [23:02:28] <simon_w|work> So, $10/month goes to $12
1727: [23:02:39] <spronk> but you still have to make sure it's all working etc
1728: [23:03:04] * tsbdeveloperadmi has joined #silverstripe
1729: [23:03:09] <simon_w|work> Yeah, github hasn't shown that they're that good at managing things either :p
1730: [23:03:19] <spronk> hmm
1731: [23:03:21] <spronk> i dno
1732: [23:03:23] <spronk> they do pretty well
1733: [23:04:17] <simon_w|work> Misconfigure their switches, wipe the live db
1734: [23:04:53] <spronk> eh, when it comes to server config, i know enough to know that i don't really know what i'm doing
1735: [23:05:13] <spronk> github have had some issues but really they've done alright
1736: [23:16:57] * SphereSilver has joined #silverstripe
1737: [23:17:33] <SphereSilver> To put my emotions about Firefox crashing into a word: "Blergh"
1738: [23:21:09] <SphereSilver> At least it's better than Chrome (and Chrome alike) things.
1739: [23:22:22] <guzzlefry> remember when IE was the problematic one? :P
1740: [23:22:41] <SphereSilver> I do, sadly :(
1741: [23:24:46] <Stomach> ie works beautifully now :D
1742: [23:25:26] <UncleCheese> do you guys think it would be useful to have an SS sandbox set up on Cloud9 IDE?
1743: [23:25:37] <UncleCheese> imagine it targeted at the tyre-kickers
1744: [23:25:50] <UncleCheese> not ready to install yet, but want to fuck around with some code
1745: [23:25:53] <Jakx> simon_w|work, I'm using the xeraa/smtpmailer module. When I remove it, my attachment issue goes away.
1746: [23:25:57] <UncleCheese> worth looking into or no?
1747: [23:26:25] <simon_w|work> Jakx, well, there's your problem
1748: [23:27:11] <Jakx> simon_w|work, yeah. Feeling quite defeated... haha
1749: [23:28:10] <SphereSilver> Sleep tight folks. I'm just glad I don't have a gun. http://9gag.com/gag/amLg4X6
1750: [23:29:46] <Jakx> UncleCheese, would "tyre-kickers" be Cloud9 IDE adjascent?
1751: [23:30:02] <UncleCheese> that's up for debate, but i think so
1752: [23:36:03] <Jakx> UncleCheese, if your goal is to make an impression on Cloud9 users, then I think you would be quite successful. If your goal is to increase awareness of Silverstripe and it's userbase, there's probably more effective ways to spend your time imo.
1753: [23:37:35] <Stomach> get naked, paint SS logo on self, run down the golden mile
1754: [23:37:46] <Jakx> ^
1755: [23:38:48] * MrGuits quit (Ping timeout: 256 seconds)
1756: [23:38:53] * Guits quit (Ping timeout: 264 seconds)
1757: [23:39:57] <Jakx> I've always thought a multi-purpose theme, that introduces an admin tab, with visual composer, to pages, so that site admins can edit layout, while editors can only edit the traditional fields. SS would become very attractive to a much greater audience.
1758: [23:40:32] <Ryan-Toast> Jakx: Allow themes to have a code folder.
1759: [23:40:34] <Ryan-Toast> boom./
1760: [23:41:16] <UncleCheese> Jakx maybe for the next major release of SS, whether it's 3.2 or 4.0, we could update the default theme to be more robust?
1761: [23:43:53] <Jakx> UncleCheese, I think versatility is the game. Just by being the "default" theme, people want to avoid it. A default theme that made SS truly attractive to other markets, would be quite a big undertaking I think.
1762: [23:44:56] <Ryan-Toast> Jakx: Theme makers don’t want to make a theme that isn’t easy for their noob users to install.
1763: [23:45:15] <Ryan-Toast> Which is why there’s zero ss themes
1764: [23:45:34] <Jakx> Ryan-Toast, haha, yeah I'd agree.
1765: [23:45:50] <Ryan-Toast> Jakx: this isn’t the ss target market though.
1766: [23:45:56] <Ryan-Toast> devs like us are
1767: [23:48:27] <Jakx> Ryan-Toast, that's debatable. I would say that devs like us would be more readily reached through building attractive features for scrub users, than promoting the strengths of a mostly-good ORM and clean/extendable conventions, alone.
1768: [23:48:56] * spronk2 has joined #silverstripe
1769: [23:49:00] <Ryan-Toast> Jakx: It’s a slippery slope. All I want is code in themes
1770: [23:49:10] <spronk2> wow
1771: [23:49:24] <spronk2> apple gets some pretty terrible reviews for their accessories
1772: [23:49:46] <Ryan-Toast> spronk2: you mean you don’t like paying 5x the price for something that breaks after a year?
1773: [23:49:51] <spronk2> http://store.apple.com/nz/product/MD506X/A/apple-85w-magsafe-2-power-adapter-for-macbook-pro-with-retina-display?fnode=5a
1774: [23:49:52] <spronk2> seriously
1775: [23:49:54] <spronk2> look at the reviews
1776: [23:49:56] <spronk2> 1.5 star average :|
1777: [23:50:31] <spronk2> http://store.apple.com/nz/product/MB570Z/B/mini-displayport-to-dvi-adapter?fnode=51 3 star average
1778: [23:50:59] <Jakx> Ryan-Toast, yeah it's a tough one. I how SS has become what it is, so, no complaints here.
1779: [23:51:08] <Jakx> I like how*
1780: [23:51:24] <Ryan-Toast> Jakx: code in themes = I will make themes
1781: [23:51:49] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1782: [23:53:26] * UncleCheese has joined #silverstripe
1783: [23:53:31] <UncleCheese> theme with code == module
1784: [23:53:40] <Jakx> Ryan-Toast, is that like, modules could be themes? or maybe, the module 'structure' could be acceptable as a theme?
1785: [23:54:06] <UncleCheese> does anyone really use the themes/ folder, though?
1786: [23:54:08] <Jakx> Ryan-Toast, if the CMS picked up modules as potential themes, would that be your jam?
1787: [23:54:10] <Ryan-Toast> Jakx: that’s how I do it at the moment. I have a module that acts as a theme, then a “theme” that’s just an empty folder to activate
1788: [23:54:23] <Ryan-Toast> Jakx: It would indeed be my jam
1789: [23:54:30] <UncleCheese> i always just delete the themes/ folder because it's useless
1790: [23:54:49] <Ryan-Toast> Jakx: also modules need to go in a modules folder. Some root folders full of random shit isn’t nice.
1791: [23:55:06] <UncleCheese> Ryan-Toast yeah, that's in the works
1792: [23:55:11] <Ryan-Toast> UncleCheese: nice :D
1793: [23:55:27] <UncleCheese> threre's a thread about it in the dev group somewhere
1794: [23:55:53] <Jakx> UncleCheese, I started a bunch of projects using the themes/ folder as my convention of styling / layout... now I hate each one of those projects because the controller/model logic is a totally different corner for the view stuff, haha.
1795: [23:56:10] <UncleCheese> yeah, it sucks
1796: [23:56:24] <UncleCheese> whenever i get into a project and i see it's using themes, i'm just like.. ugh!
1797: [23:56:55] <Ryan-Toast> My bp has everything in one folder now, and the theme is just for overriding styles
1798: [23:58:35] * micmania1 quit (Quit: micmania1)
1799: [23:59:07] <Jakx> If someone made a theme like Wordpress's Avada, or Salient, for SS. SS would become very attractive. If that theme was built with clean extensibility, developers would never go back.
1800: [23:59:27] * jenniferaslan quit (Quit: jenniferaslan has left the room)
1801: [23:59:41] <Jakx> And these are multi-million dollar earning themes. They must be the core of such a huge market of web patrons.
1802: [23:59:49] <spronk2> man

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