#silverstripe IRC Log

IRC log for 15 December 2013

All timestamps are in UTC.

1: [01:28:48] * zippy__ has joined #silverstripe
2: [01:28:55] <zippy__> o/
3: [02:07:26] * zippy__ quit (Ping timeout: 264 seconds)
4: [03:58:21] * oskarholo quit (Remote host closed the connection)
5: [04:16:16] * nepgear is now known as shakesoda
6: [04:26:32] * CodeTrap quit (Ping timeout: 260 seconds)
7: [04:27:02] * CodeTrap has joined #silverstripe
8: [04:37:57] * pathum has joined #silverstripe
9: [04:40:54] * cloph has joined #silverstripe
10: [04:41:02] * cloph_away quit (Ping timeout: 264 seconds)
11: [04:54:56] * pathum quit (Quit: Leaving)
12: [05:06:11] <guzzlefry> Quick question I hope :P
13: [05:06:24] <guzzlefry> $form = new Form($this, 'HelloForm', $fields, $actions);
14: [05:06:38] <guzzlefry> Is there any reason to not use __FUNCTION__ for the second argument?
15: [05:07:13] <guzzlefry> http://docs.silverstripe.org/framework/en/topics/forms regarding the first code snippet here
16: [05:12:56] <simon_w> To teach people
17: [05:14:49] <simon_w> Anyway, time for some more starcraft
18: [05:14:52] * simon_w quit (Quit: Leaving)
19: [05:32:33] <guzzlefry> wat
20: [05:32:34] <guzzlefry> Action 'InformationRequestForm' isn't allowed on class InformationRequestPage_Controller.
21: [05:33:32] <guzzlefry> class InformationRequestPage_Controller extends Page_Controller { private static $allowed_actions = array("InformationRequestForm"); }
22: [05:33:53] <guzzlefry> Note that the form is declared in Page_Controller, should that matter?
23: [05:34:28] <irogue_> attn: heat
24: [05:34:29] <irogue_> plz fuck off
25: [05:34:30] <irogue_> kthx
26: [05:34:50] <guzzlefry> 0.o
27: [05:49:17] <Snowman23> guzzlefry: It does matter, you have to allow it in the place it's defined
28: [05:51:11] <guzzlefry> I guess that makes sense...
29: [05:51:25] <guzzlefry> And well, it would probably make more sense to move the form code over now. :P
30: [05:51:35] <guzzlefry> Snowman23: thanks
31: [05:52:43] <Snowman23> It has weird effects :O
32: [05:52:53] <Snowman23> Means if you subclass, then redefine a method, you have to re-allow it again
33: [05:52:57] <Snowman23> idk if I like it
34: [06:08:11] * bmh44 has joined #silverstripe
35: [06:19:08] * bmh_ has joined #silverstripe
36: [06:20:29] * bmh_ is now known as bmh44
37: [06:39:36] * guzzlefry has left #silverstripe
38: [07:34:49] * Pyromanik has joined #silverstripe
39: [07:35:13] <Pyromanik> I just want to point out to everyone that I'm such an influential chap I have such lasting subliminal effects.
40: [07:35:25] <Pyromanik> Snowman23, ref. https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-frc3/1466044_10150353339589946_128315575_n.jpg
41: [07:36:43] <Pyromanik> and http://www.silverstripe.org/assets/1_4.png
42: [07:37:02] <Pyromanik> from http://www.silverstripe.org/seeking-support-in-silverstripes-social-sphere/
43: [07:37:11] <Pyromanik> liv'n the dream.
44: [07:41:37] <Pyromanik> Claming it! xD
45: [07:45:52] * DigNZ has joined #silverstripe
46: [07:46:18] * DigNZ quit (Client Quit)
47: [08:25:00] * SightUnseen has joined #silverstripe
48: [08:25:25] * SightUnseen has left #silverstripe
49: [08:31:16] * zippy__ has joined #silverstripe
50: [09:13:04] <Snowman23> :O
51: [09:13:09] <Snowman23> You did a blog post, pippy?!
52: [09:14:32] <Snowman23> oh
53: [09:14:33] <Snowman23> 2012
54: [09:14:34] <Snowman23> lol
55: [09:42:23] <zippy__> :)
56: [09:51:54] * bmh44 quit (Quit: Computer has gone to sleep.)
57: [09:53:01] * Guits quit (Read error: Connection reset by peer)
58: [09:53:24] * Guits has joined #silverstripe
59: [10:34:13] * Kolin_ quit (Ping timeout: 252 seconds)
60: [10:35:21] * Kolin has joined #silverstripe
61: [10:39:03] * abitran quit (Ping timeout: 240 seconds)
62: [10:40:11] * abitran has joined #silverstripe
63: [10:41:02] * Kolin quit (Ping timeout: 264 seconds)
64: [10:41:50] * Kolin has joined #silverstripe
65: [10:48:23] * oskarholo has joined #silverstripe
66: [11:08:23] * MrGuits has joined #silverstripe
67: [11:08:23] * Guits quit (Read error: Connection reset by peer)
68: [11:38:38] * MrGuits quit (Read error: Connection reset by peer)
69: [11:38:51] * Guits has joined #silverstripe
70: [12:26:48] * Shrike_Finland has joined #silverstripe
71: [12:27:49] * Shrike_Finland1 has joined #silverstripe
72: [12:29:28] * vogels has joined #silverstripe
73: [12:29:46] <vogels> hello ppl
74: [12:30:12] <vogels> anyone here who can help me with Inivisble-Spam-Protection module
75: [12:31:26] * Shrike_Finland quit (Ping timeout: 264 seconds)
76: [12:31:41] <vogels> does it also work with comment fields
77: [12:40:40] <vogels> no one?
78: [12:47:50] * zfmf has joined #silverstripe
79: [12:47:51] * Kolin quit (Ping timeout: 240 seconds)
80: [12:48:54] * Kolin has joined #silverstripe
81: [13:03:13] * vogels quit (Ping timeout: 272 seconds)
82: [13:33:31] * vogels has joined #silverstripe
83: [13:33:50] <vogels> had to reboot
84: [13:34:15] <vogels> anyone who can help me with invisible spam protection module
85: [14:02:07] * vogels quit (Ping timeout: 272 seconds)
86: [14:36:07] * zippy__ quit (Quit: zippy__)
87: [14:39:27] * Kolin quit (Ping timeout: 240 seconds)
88: [14:40:13] * Kolin has joined #silverstripe
89: [17:37:16] * Alexwijn has joined #silverstripe
90: [17:37:49] <Alexwijn> Does anyone how to implement a onReadBefore on a DataOjbect?
91: [18:42:45] * Alexwijn quit ()
92: [18:54:05] * SightUnseen has joined #silverstripe
93: [18:54:11] * SightUnseen has left #silverstripe
94: [19:28:08] * simon_w has joined #silverstripe
95: [19:33:43] * zfmf quit (Ping timeout: 240 seconds)
96: [19:55:51] * DigNZ has joined #silverstripe
97: [19:57:06] * zippy__ has joined #silverstripe
98: [19:58:13] <zippy__> Morning
99: [19:58:21] <simon_w> Or is it? DUN DUN DUN
100: [19:59:00] <simon_w> zippy__, coming to the hackathon?
101: [19:59:15] <zippy__> first I've heard about it
102: [19:59:22] <zippy__> got link?
103: [19:59:49] <simon_w> http://www.meetup.com/SilverStripe-Wellington-Meetup-Group/events/153061622/
104: [20:00:52] * UncleCheese has joined #silverstripe
105: [20:01:13] <simon_w> UncleCheese had better be going to it. There's probably logs somewhere saying he will.
106: [20:01:32] <UncleCheese> are the logs a binding contract now?
107: [20:01:43] <UncleCheese> in the court of SilverStripe?
108: [20:01:58] <zippy__> UncleCheese: yes :)
109: [20:02:28] <simon_w> Especially since they can't be altered ;)
110: [20:03:06] <simon_w> Like, http://logs.simon.geek.nz/index.php?date=2013-11-07#log_1109713 is exactly what Snowman23 said
111: [20:04:38] <zippy__> hahaha
112: [20:05:09] <zippy__> I got this uber form, and it's totally pissing me off. The form is used for a new object, but I am also trying to edit an object with it - save duplication and all that
113: [20:05:21] <simon_w> "Just replying with "This has been fixed" is much faster than actually fixing the problem. #supportdesktips"
114: [20:06:51] <zippy__> but having some issues with it. I am using a custom template, and calling $Fields.dataFieldByName(Street) in the template, which works, but I have a couple of really complex form fields which are js heavy. I think I will need to create these inputs by hand. With a form template, can I pass extra information to it / extra variables, or even access the data for a field without generating the whole field....
115: [20:07:04] <zippy__> ie, is there a way to pass in $Foo = 'bar' to a template?
116: [20:07:36] <simon_w> An include template?
117: [20:07:52] <simon_w> (also, <% with $Field.dataFieldByName('Street') %>)
118: [20:08:14] <zippy__> I can call $form->loadDataFrom to populate data, but that only populates existing fields with the values...
119: [20:09:00] <simon_w> WHEN SNOOPY WENT UP IN SEARCH OF HIS FOE
120: [20:09:39] <simon_w> You should just be able to do $form->Foo = 'bar'; Maybe.
121: [20:09:45] <simon_w> Otherwise use a custom Form class
122: [20:10:23] <zippy__> http://www.sspaste.com/paste/show/52ae0a07b01a3 - so with this for example, I can pass in the existing object which populates most things, but not my complex js fields
123: [20:10:39] <zippy__> mmmm true, I do have a custom Form class already, so I could add some attributes to that, intersting
124: [20:11:19] <zippy__> so I could probably just go $myForm->foo = 'bar'; perhaps
125: [20:13:08] <zippy__> I wonder if trying to use the same form for both is even a good idea
126: [20:17:07] <zippy__> hmm
127: [20:18:59] * wracu has joined #silverstripe
128: [20:19:44] <zippy__> if I set a flash message on the form like; $form->sessionMessage('……', 'bad'); and in my form view I have <% if $Message %><p class="$MessageType">$Message</p><% end_if %> shouldn't that clear after the first view?
129: [20:20:03] <zippy__> Keeps showing the same message, even when I refresh the page (no posting again)
130: [20:22:20] <zippy__> sessionMessage why you not clear!
131: [20:26:14] <wracu> git wizards.. can I run something past you?
132: [20:26:40] <wracu> I have two branches that are up to date... I want to check each one...
133: [20:26:53] <wracu> git reset --hard origin/branch1
134: [20:26:56] <wracu> git reset --hard origin/branch2
135: [20:27:13] <wracu> WILL doing this.... drop my local and update to the specified branch?
136: [20:29:38] <wracu> ok found a number of stackoverflow Q's relating to this. Seems to be the case.
137: [20:31:19] <Snowman23> simon_w: THOSE LOGS ARE ALTERED
138: [20:31:37] <Snowman23> EDITEDDDDDDDDD
139: [20:31:46] <simon_w> Snowman23, PROVE IT
140: [20:31:49] <Snowman23> ;_;
141: [20:32:01] <Snowman23> AT THE END OF THE DAY ITS MY WORD VS YOURS
142: [20:32:16] <simon_w> Also, your word against the logs
143: [20:35:22] <Snowman23> The logs are your word :O
144: [20:35:25] <Snowman23> My logs dont say that :(
145: [20:36:48] <zippy__> If you set the sessionMessage on a form, shouldn't it auto clear after first display?
146: [20:40:39] <simon_w> To the Xcode!
147: [20:57:40] * Ryan-Toast has joined #silverstripe
148: [21:03:47] <Snowman23> HELP I ACCIDENTLY THE ENTIRE XSS
149: [21:07:09] <simon_w> XHP!
150: [21:19:45] <UncleCheese> man, flat whites kinda suck, don't they?
151: [21:20:23] * wracu quit (Ping timeout: 272 seconds)
152: [21:20:24] <simon_w> You got run over by a steam roller?
153: [21:23:53] <Snowman23> So you are coming to hackfest, UncleCheese?
154: [21:24:15] <UncleCheese> what time?
155: [21:24:28] <simon_w> The same time it always is
156: [21:24:33] <UncleCheese> that's helpful
157: [21:24:46] <simon_w> It is
158: [21:26:28] <Snowman23> UncleCheese: From the morning till the afternoon
159: [21:26:29] <simon_w> Lol, americans https://pbs.twimg.com/media/Bbjk5GFCEAAKJbk.jpg:large
160: [21:26:50] <UncleCheese> * shudder *
161: [21:27:16] <UncleCheese> The funniest thing is that he thinks it's warm here
162: [21:27:45] <simon_w> Maybe because it is?
163: [21:27:54] <Snowman23> It's so fucking hot here atm
164: [21:28:21] <zippy__> true that
165: [21:28:24] <simon_w> And then Auckland's even worse
166: [21:28:33] * DigNZ1 has joined #silverstripe
167: [21:29:11] <simon_w> Also, 9 days to Christmas. What are you lot getting me? :p
168: [21:33:18] <zippy__> well, you havn't anwerrs my sessionMessage question so… coal :)
169: [21:33:31] <simon_w> Yeah, Sublime's not open :p
170: [21:34:21] <simon_w> zippy__, are you overriding forTemplate?
171: [21:34:39] <zippy__> yes
172: [21:34:46] <zippy__> public function forTemplate() {
173: [21:34:47] <zippy__> return $this->renderWith(array($this->class, 'Form'));
174: [21:34:47] <zippy__> }
175: [21:34:50] <simon_w> Why?
176: [21:35:08] <simon_w> It's redundant and breaks clearing the session message
177: [21:35:44] <UncleCheese> only in Wellington is 10 degrees "cold" and 23 degrees "hot"
178: [21:35:56] <simon_w> UncleCheese, nope.
179: [21:36:03] <zippy__> http://doc.silverstripe.com/framework/en/topics/forms#custom-form-templates
180: [21:36:04] <zippy__> First of all, you need to create your form on it's own class, that way you can define a custom template using a forTemplate() method on your Form class.
181: [21:36:07] <zippy__> redundant in 3.1/
182: [21:36:39] <zippy__> well, remove that and that part is working fine now :)
183: [21:36:54] <UncleCheese> Anyone here want to join me in funding a t-shirt for simon_w that just says "nope" ?
184: [21:37:13] <simon_w> zippy__, Redundant in 2.3
185: [21:37:41] <zippy__> zippy__: strange it's still in the 3.1 docs thou
186: [21:38:25] <simon_w> Because the people that write the docs tend to be the people that just regurgitate what they're told (like all the references to dev/build?flush=all)
187: [21:38:58] <simon_w> UncleCheese, http://www.thinkgeek.com/product/c2dd/
188: [21:39:55] <UncleCheese> nice
189: [21:40:45] <zippy__> http://www.thinkgeek.com/product/11c3/?srp=2
190: [21:40:54] <simon_w> Brother already has No, so I can't
191: [21:41:50] * codemonkey_ has joined #silverstripe
192: [21:41:56] <simon_w> Time to do some auto layout in code. Like a boss.
193: [21:42:13] <codemonkey_> Hi all o/
194: [21:42:50] <codemonkey_> I've got a noob question but I'm just checking with Mr Google first before laying it down here :-)
195: [21:50:43] * metanat has joined #silverstripe
196: [21:51:02] <zippy__> codemonkey_: ok
197: [21:51:55] <codemonkey_> Actually it's a series of noob questions, I can't find the info I'm looking for :-/
198: [21:52:14] <zippy__> ok
199: [21:52:14] * Liquide has joined #silverstripe
200: [21:52:19] <zippy__> lay it down
201: [21:52:31] <codemonkey_> Firstly I want to create a module, and that module carries with it a theme. How best do I structure it so that installing the module makes the theme available?
202: [21:53:06] <codemonkey_> Secondly, should my new module sit in /vendor or in / ?
203: [21:53:59] <codemonkey_> Thirdly, I want to be able to deploy my module using Composer, but from a private (among a team of people) repo hosted on BitBucket, is this possible and how?
204: [21:54:14] <codemonkey_> Being a noob sucks :-(
205: [21:56:39] <ezero> codemonkey_, theme can live in the same directory as the modules directory.. in a themes folder.. (at least that is how it used to be in old SS and should still work)
206: [21:56:40] <metanat> hey codemonkey_ you can make your module have a silverstripe-theme dependency
207: [21:57:10] <metanat> check out the https://github.com/composer/installers silverstripe-theme type
208: [21:57:45] <ezero> you can put ur module in root and vendor :P but i think silverstripers would prefer you put them in appropriate place for the sake of "Standard" and tidyness
209: [21:57:55] <ezero> and in composer.json u can specify ur own url to ur repository i think
210: [21:58:36] <metanat> For private repos you have two options, either use satis, or specify a repo in your root composer.json file (the one in your silverstripe project_
211: [21:58:54] <codemonkey_> ezero: I need it to be bundled together, I'm using SS CMS to host several sites and each extend stuff like Page in different ways and each will have themes that shouldn't be used with each other, only specific to that site's module. I don't know if what I have in mind is the right way to do it.
212: [21:58:58] <ezero> http://getcomposer.org/doc/05-repositories.md
213: [21:59:17] <codemonkey_> metanat: Thanks for the info, I'm looking into that... Re the private repo, yes that's what I mean :-)\
214: [21:59:25] <ezero> i see, what about creating multiple modules then?
215: [21:59:28] <codemonkey_> s/\\//
216: [21:59:50] <codemonkey_> ezero: Yes, I want one module per-site, and one or more module-specific themes per module
217: [22:00:07] <metanat> Within your silverstripe module you can can put dependencies in the composer file. those will be installed when you require the module from your root composer file
218: [22:00:35] <ezero> http://getcomposer.org/doc/05-repositories.md#using-private-repositories
219: [22:02:40] <codemonkey_> tvm
220: [22:03:28] <ezero> :)
221: [22:03:30] <codemonkey_> Is it easy enough to make themes "sticky" to a module within SS CMS, so that Site A content admins can't accidentally select the look of Site B?
222: [22:04:56] <ezero> from my previous knowledge of SS, and from what I can remember you could also add themes in the config file.. probably changed now.. for better :)
223: [22:05:49] <ezero> yeah prolly irrelevant now.. going to check my SS
224: [22:05:51] <codemonkey_> For clarity, what I'm doing is setting up a handful of sites for different companies within the same group, so there will be different content admins for each company - I don't want to give them too much opportunity to break stuff :-)
225: [22:06:40] <codemonkey_> If it turns out that I can't restrict each module's choice of theme it's not a dealbreaker, it's just a very desirable feature
226: [22:07:14] <ezero> yeah would be nice to isolate them
227: [22:07:19] <ezero> within their modules
228: [22:07:44] <metanat> codemonkey_: You can set a theme from a controller
229: [22:09:06] <metanat> So if each module uses a different controller (or page type etc) when in the init function for that controller you can go Config::inst()->update('SSViewer', 'theme', 'themename');
230: [22:09:13] * antmas has joined #silverstripe
231: [22:09:27] <ezero> yeah that is a good idea too have ThemeController and based on the site they are on ... just force the theme like metanat said
232: [22:09:39] <antmas> mornin!
233: [22:10:47] <simon_w> If you say so
234: [22:12:47] <Snowman23> moin moin antmas
235: [22:13:23] <unsigned_> morning
236: [22:13:28] * unsigned_ is now known as unsignedint
237: [22:14:38] <Ryan-Toast> Morning
238: [22:14:56] <unsignedint> does anyone know how to "skip" some records? I can limit using ->Limit(3) but I want to skip the first 3 and get the rest. I tried ->Limit(0, 3) but that just returned 0 records
239: [22:15:18] <simon_w> unsignedint, pass in a really big first number
240: [22:15:32] <unsignedint> really? haha okay
241: [22:16:05] <codemonkey_> metanat and ezero - thanks, I'll do that :-D
242: [22:16:06] <unsignedint> thought there might be a better way to do it, but that works obviously. thanks
243: [22:16:29] <simon_w> unsignedint, there is in SQL, but none of the SilverStripe classes expose it
244: [22:16:39] <unsignedint> oh I see
245: [22:17:24] <codemonkey_> metanat and ezero - what if I want to set up Google Content Experiments based on themes though? eg, a page in Site A has two or more different designs at once, depending on the experiment split?
246: [22:20:13] <metanat> simon_w: How would you do it in MySQL?
247: [22:20:43] <metanat> it is funny, even the mysql docs recommend the large number method
248: [22:20:53] <ezero> codemonkey_, is that for A/B testing? :)
249: [22:20:59] <metanat> yep
250: [22:21:01] <simon_w> metanat, does MySQL not have OFFSET?
251: [22:21:07] <codemonkey_> ezero: yep, that
252: [22:21:48] <metanat> simon_w: I think it does now. Don't think it used to
253: [22:22:21] <metanat> but I don't know if you can use OFFSET without limit can you?
254: [22:22:43] <simon_w> can in Postgres
255: [22:22:49] <metanat> I think it is part of the limit syntax so you still have the same problem in mysql
256: [22:23:39] <metanat> yeah. just another example of its superiority right?
257: [22:26:17] <simon_w> Yup
258: [22:34:10] <Ryan-Toast> Just started using Grunt. It's awesome!
259: [22:34:37] <Ryan-Toast> Also I found a spider in my headphones, and now I'm paranoid that one has laid eggs in my brain.
260: [22:36:09] <metanat> spiderman
261: [22:38:28] * micmania1 has joined #silverstripe
262: [22:42:57] <antmas> mmm dat coffee script
263: [22:51:07] <zippy__> Ryan-Toast: Grunt for automatically running tests, or autoamting css or something?
264: [22:51:14] <Ryan-Toast> zippy__: Both
265: [22:51:34] <Ryan-Toast> sass, unit tests, jshint etc
266: [22:56:31] <simon_w> But do you unit test your JS?
267: [23:02:06] <Ryan-Toast> simon_w: Yeah, I use jasmine
268: [23:03:21] * Jayden90 has joined #silverstripe
269: [23:06:47] * pyromaniik has joined #silverstripe
270: [23:07:25] <pyromaniik> wholey shit 27hrs until aitport time!
271: [23:07:41] <antmas> pyromaniik: wait
272: [23:07:48] <antmas> pyromaniik: I thought you left on Sunday?
273: [23:08:18] <pyromaniik> I left Christchurch last Sunday.
274: [23:08:48] <pyromaniik> last sunday was yesterday and i had dinner with my grandmother.
275: [23:09:10] <Snowman23> pyromaniik: Got your visa all sorted? :D
276: [23:09:20] <Snowman23> Wanna take bets on if pyromaniik will be deported when he tries to enter England?
277: [23:09:23] <Snowman23> :D
278: [23:09:37] <pyromaniik> got that sorted ages ago.
279: [23:09:53] <antmas> pyromaniik: ah
280: [23:10:05] <pyromaniik> just in waiting room at dentist atm
281: [23:10:12] <antmas> ughhhhh
282: [23:10:14] <antmas> DENTISTS
283: [23:10:16] <pyromaniik> waiting
284: [23:10:16] <antmas> :<
285: [23:10:27] <pyromaniik> nah antmas, hygenist.
286: [23:10:47] <antmas> pyromaniik: I got told last week that I need full open surgery on my jaw :<
287: [23:11:00] <pyromaniik> still, hope no problems gound :<
288: [23:11:26] <pyromaniik> oh nasty antmas.
289: [23:11:46] * UncleCheese quit (Quit: UncleCheese)
290: [23:11:49] <simon_w> pyromaniik, so, no hackathon for you then?
291: [23:11:51] * codemonkey_ quit (Ping timeout: 272 seconds)
292: [23:11:52] <simon_w> DISAPPOINT
293: [23:11:55] <pyromaniik> they might say similar about my impacted wisdom tooth thats crowning.
294: [23:12:16] <antmas> pyromaniik: yeah that was it, major jaw infection - have been on crazy meds for 4 days
295: [23:12:17] <pyromaniik> buy sucker them, im outta here tomorrow
296: [23:12:25] <Snowman23> antmas: You should've gone earleri!
297: [23:12:27] <Snowman23> Earlier*
298: [23:12:33] <antmas> Snowman23: -_-
299: [23:12:55] <simon_w> Snowman23, oh, you know there's a doctor above BNZ at this end of the street, right?
300: [23:13:08] <Snowman23> simon_w: There's lots of doctors around here o.o
301: [23:13:16] <Snowman23> Pharmacies too!
302: [23:13:16] <pyromaniik> simon_w, might be, if i can get interwebs sorted in uk! (highly doubtful :<)
303: [23:13:28] <simon_w> Snowman23, yet you go all the way to Lambton
304: [23:15:02] <pyromaniik> lambton is where all the hot people go.
305: [23:15:25] <antmas> I always thought it was LamPton
306: [23:15:26] <antmas> :P
307: [23:15:33] <pyromaniik> samr.
308: [23:15:51] <antmas> heh
309: [23:16:01] <antmas> went out for dinner last night at the place I used to contract with
310: [23:16:08] <pyromaniik> oh you, anfroid 2.2 osk with no auto rectify
311: [23:16:11] <antmas> still got staff discount :D
312: [23:16:33] <pyromaniik> hahaha great success antmas
313: [23:16:56] <antmas> pyromaniik: twas! $126 became $64
314: [23:17:11] <pyromaniik> !! :D
315: [23:18:33] <pyromaniik> ok must be my turn soon. better go.
316: [23:18:40] <Jayden90> http://api.silverstripe.org/3.1/class-EmailField.html
317: [23:18:51] <Jayden90> Whats the best $db datatype to go along with that?
318: [23:18:55] <pyromaniik> ciao for now.
319: [23:19:00] <spronk> BAI
320: [23:19:10] <Jayden90> Varchar(320)?
321: [23:19:31] <simon_w> 320? Seems excessive
322: [23:20:35] <simon_w> http://tools.ietf.org/html/rfc5321#section-4.5.3.1.3 says 256
323: [23:20:57] <simon_w> Though you're up to two bytes by then (assuming MySQL), so whatever
324: [23:22:11] <Jayden90> Would it not make sense to match the same spec as the validator? http://www.ietf.org/rfc/rfc2822.txt
325: [23:22:30] * DigNZ1 quit (Quit: DigNZ1)
326: [23:22:49] <spronk> email is a clusterfuck of nasty
327: [23:23:13] <antmas> spronk: what are you doing?
328: [23:23:30] <Jayden90> Scanning the spec I can't find quickly what Varchar is technically correct
329: [23:23:47] <spronk> commenting on the above
330: [23:23:55] <spronk> also, amazon free shipping to nz for over $125
331: [23:23:57] <spronk> omfgawesome.
332: [23:24:11] <antmas> ah
333: [23:24:32] <simon_w> Jayden90, just use Postgres and Text :p
334: [23:28:05] <Snowman23> simon_w: I picked a place with a good name!
335: [23:28:33] <simon_w> Snowman23, I picked the place closest to my where my parents where living before they had me!
336: [23:28:57] * antmas quit (Ping timeout: 272 seconds)
337: [23:29:03] <Snowman23> I don't care where it is really anyway
338: [23:29:14] <Snowman23> :O
339: [23:30:53] <simon_w> Going out for lunch today!
340: [23:31:35] * spronk has been waiting 2 hours for his macbook pro to turn on
341: [23:31:42] <Jayden90> I had a realy great idea late last week for .ss templating and includes but noone was online to talk about it
342: [23:31:43] <Jayden90> http://logs.simon.geek.nz/index.php?date=2013-12-12#log_1141204
343: [23:32:09] <Jayden90> Basicly the ability to use includes like Sass mixins, with the ability to place content before an include’s closing tag. This content is then available within the include using a reserved-word placeholder variable.
344: [23:32:15] <spronk> give me an exampel
345: [23:32:24] <Snowman23> simon_w: OH
346: [23:32:26] <Snowman23> simon_w: ARE YOU COMING HERE?
347: [23:32:27] <Snowman23> :D
348: [23:32:27] <Jayden90> Like: http://sass-lang.com/documentation/file.SASS_REFERENCE.html#mixin-content
349: [23:32:51] <Jayden90> just copying what i said last time from the log:
350: [23:32:52] <simon_w> Snowman23, no
351: [23:32:52] <Jayden90> Would use this all the time. For example a HeroBanner.ss include, where the structure of the hero iteself with the background image and the breadcrumbs stays the same, but the content of the hero could be layed out diffirently on diferent page types
352: [23:32:55] <Snowman23> simon_w: :(
353: [23:33:06] <Jayden90> You could theoretically do this currently by breaking up a HeroBanner.ss into HeroBannerBeginning.ss and HeroBannerEnding.ss but that is not as elegant
354: [23:33:13] <simon_w> Jayden90, you can already pass arguments to includes
355: [23:33:18] <Jayden90> With this new method you could check <% if $IncludeContent %><% else %> for default stuff
356: [23:33:36] <Jayden90> simon_w: not arguments, whole .ss template stuff
357: [23:34:11] <simon_w> That just sounds messy. What scope is it run in to start with?
358: [23:34:24] <simon_w> Then which scope stack does it have?
359: [23:34:34] <Jayden90> The skope of the include, aka the page the include is on
360: [23:34:46] <Jayden90> it would allow you to do things not possible atm
361: [23:35:08] * antmas has joined #silverstripe
362: [23:35:28] <simon_w> So is it the scope of the include or the scope of wherever you have the <% include %>?
363: [23:35:33] <simon_w> Those are two different stacks
364: [23:35:45] <spronk> btw, you only need 254 for email addresses
365: [23:35:52] <spronk> because the < and > are included in the 256 char
366: [23:36:04] <spronk> which sticks you under 2
367: [23:36:16] <Jayden90> simon_w: which makes more sense to you?
368: [23:36:29] <Jayden90> I will put togeather a fiddle of what I would like
369: [23:36:36] <Jayden90> might make better sense then
370: [23:36:37] <spronk> it's also theoretically possible to have longer email addresses because a number of SMTPs don't follow the limit in that standard, but hey
371: [23:36:38] <simon_w> Neither, that's the problem. There's cases where you could want either of them.
372: [23:37:10] <simon_w> spronk, and then if someone includes the name part in their email address, you're screwed
373: [23:37:22] <spronk> eh?
374: [23:37:34] <simon_w> "Name" <address>
375: [23:37:56] <spronk> no you're not
376: [23:38:09] <spronk> because you
377: [23:38:10] * camfindlay has joined #silverstripe
378: [23:38:11] <spronk> wpi;dm
379: [23:38:14] <spronk> wouldn't store that shit :)
380: [23:38:15] <Jayden90> http://www.sspaste.com is down
381: [23:38:30] <simon_w> Jayden90, up for me
382: [23:38:37] <camfindlay> same here, it's up
383: [23:38:53] <simon_w> spronk, but then you have to parse it and that's a pain :p
384: [23:39:05] <simon_w> Also, I discovered you can have multiple addresses in the From: header
385: [23:39:12] <Jayden90> mashed refresh a few times, up for now
386: [23:39:21] <simon_w> And Mail.app at least handles it fine
387: [23:39:26] <Jayden90> *for me now
388: [23:40:12] <spronk> simon_w: yeah, but realistically you should be parsing emails anyway
389: [23:42:36] <spronk> hmm
390: [23:42:45] <spronk> how bad an idea is it to buy computer PSUs from amazon...
391: [23:42:58] <antmas> spronk: depends on brand?
392: [23:42:59] <antmas> idk
393: [23:43:09] <spronk> $240NZD shipped for a seasonic G-650 and a G-550... vs $199 + $159 is cheapest i can find in nz from decent palces
394: [23:43:22] <simon_w> spronk, just buy something cheap and steal the PSU from the drone?
395: [23:43:32] <spronk> lol
396: [23:43:45] * antmas has never heard of Seasonic
397: [23:43:49] <antmas> Corsair FTW
398: [23:44:01] <spronk> corsair's PSUs all used to be made by seasonic :)
399: [23:44:12] <spronk> HX650 is basically a G-650 with a corsair badge on
400: [23:44:22] <antmas> spronk: now way!
401: [23:44:25] <antmas> cray
402: [23:44:27] <spronk> mm
403: [23:44:37] <antmas> well then, buy away!
404: [23:44:38] <antmas> :P
405: [23:44:41] <spronk> haha :D
406: [23:45:00] <antmas> I'm thinking about breaking down my gaming machine to fit in an HTPC case
407: [23:47:17] <spronk> annoyingly, and this clashes with my OCD, seasonic put a nice label on one side, and a shitty specs label on the other
408: [23:47:29] <spronk> so when you have bottom mounted PSU with fan down, you see shitty specs label :(
409: [23:47:47] <spronk> corsair have considered this case and put a nice reversed label on that side
410: [23:48:07] * UncleCheese has joined #silverstripe
411: [23:48:09] <simon_w> Yay, fancy lunch time :)
412: [23:48:34] <spronk> on a side note, did anyone else watch any of the xmas in the park thing on tv3 last night?
413: [23:50:26] <Jayden90> See if you guys can get .ss onto the list of languages github supports https://gist.github.com
414: [23:51:00] <Jayden90> that would be neat
415: [23:54:18] <Jayden90> simon_w: Here is a simple demo of what I mean: https://gist.github.com/jaydenseric/7980025

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