#silverstripe IRC Log

IRC log for 11 January 2015

All timestamps are in UTC.

1: [00:02:11] * Guits quit (Ping timeout: 244 seconds)
2: [00:25:35] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
3: [01:55:45] * kerosene is now known as kerozion
4: [03:28:05] * benjhocking quit (Read error: Connection reset by peer)
5: [03:35:49] * benjhocking has joined #silverstripe
6: [03:45:34] * gelignite quit (Quit: http://bit.ly/nkczDT)
7: [04:09:45] * Kingy[a] is now known as Kingy
8: [05:00:40] * cloph_away has joined #silverstripe
9: [05:01:16] * cloph quit (Ping timeout: 264 seconds)
10: [06:00:44] * Stomach quit (Quit: zzz)
11: [07:10:31] * azureRaven has joined #silverstripe
12: [07:27:03] * Stomach has joined #silverstripe
13: [07:45:13] * r_hector has joined #silverstripe
14: [07:47:11] * Stomach quit (Quit: zzz)
15: [08:50:54] * r_hector quit (Quit: Leaving.)
16: [09:40:40] * azureRaven quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
17: [09:49:27] * aragonne has joined #silverstripe
18: [09:50:36] <aragonne> Hi everyone, for the Blog module, does anyone know how to allow tags with slahes?
19: [09:51:45] <aragonne> For example, on http://www.guidewire.com/blog/general-interest/, the third entry down has tags with slashes such as ‘property/casualty’ and ‘P/C’ and if click on any of these tags, a 404 will result
20: [10:22:44] * Guits has joined #silverstripe
21: [11:05:18] * tadija has joined #silverstripe
22: [11:08:49] * aragonne quit (Quit: aragonne)
23: [12:34:11] * gelignite has joined #silverstripe
24: [12:39:36] * tadija quit (Quit: Page closed)
25: [14:58:59] * Kingy is now known as Kingy[a]
26: [14:59:13] * Kingy[a] is now known as Kingy
27: [16:36:36] * aragonne has joined #silverstripe
28: [16:54:24] * aragonne quit (Quit: aragonne)
29: [17:10:47] * kerozion is now known as kero5hin
30: [17:37:58] * Kingy is now known as Kingy[a]
31: [17:38:04] * Kingy[a] is now known as Kingy
32: [18:02:52] * benjhocking quit (Quit: Leaving.)
33: [18:19:22] * Stomach has joined #silverstripe
34: [18:32:15] * benjhocking has joined #silverstripe
35: [18:32:37] * Stomach quit (Quit: zzz)
36: [18:46:48] * Cheddam has joined #silverstripe
37: [18:57:57] * benjhocking1 has joined #silverstripe
38: [18:57:58] * benjhocking1 quit (Client Quit)
39: [18:57:58] * benjhocking quit (Read error: Connection reset by peer)
40: [19:01:01] * Stomach has joined #silverstripe
41: [19:18:08] * chillu_23 has joined #silverstripe
42: [19:30:31] * Ryan-Toast has joined #silverstripe
43: [19:32:56] <Ryan-Toast> Happy 2015, guys.
44: [19:33:20] <Stomach> good morning Ryan-Toast
45: [19:33:29] <Stomach> happy 2015 to you as well
46: [19:33:53] <Ryan-Toast> Cheers.
47: [19:34:06] <Ryan-Toast> Sigh, I wish I could continue to live a life of leisure.
48: [19:36:42] * UncleCheese has joined #silverstripe
49: [19:45:22] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
50: [19:50:26] * zippy has joined #silverstripe
51: [19:51:16] <zippy> morning
52: [19:51:22] <zippy> Ryan-Toast: wb
53: [19:51:46] <zippy> Ryan-Toast: http://logs.simon.geek.nz/index.php?date=2015-01-09#log_1539264 :P
54: [19:51:48] <Stomach> Ryan-Toast - life of leisure would be grate
55: [19:54:47] <Ryan-Toast> zippy: Did you do a good job?
56: [19:54:54] <Ryan-Toast> Stomach:
57: [19:55:04] <zippy> Ryan-Toast: linked to the github page
58: [19:55:25] <Ryan-Toast> Stomach: I spent most of my break with a group of Russian girls who liked nothing more than to take midnight skinny dips… I do not want to he here today.
59: [19:55:46] <Ryan-Toast> zippy: Ah, the browser crashing page :P
60: [19:56:12] <zippy> Ryan-Toast: pics or it didn't happen
61: [19:56:48] <Ryan-Toast> zippy: :P
62: [19:57:02] <Ryan-Toast> Should be a few on my Facebook later this week, once everyone sorts their cameras out.
63: [19:58:27] * glenn-bautista has joined #silverstripe
64: [19:58:58] * spekulatius has joined #silverstripe
65: [20:01:17] <Ryan-Toast> I have fully forgot how to website.
66: [20:01:55] <zippy> I used a sass variable last week in my sass file - freaking guru right here now!
67: [20:13:55] <Ryan-Toast> zippy: I’m so proud of you.
68: [20:14:00] <Stomach> Ryan-Toast - russian girls are weird.
69: [20:14:04] <zippy> *warm fuzzies*
70: [20:14:30] <Ryan-Toast> Stomach: Russian girls like too much salt on their eggs.
71: [20:14:48] <simon_w> zippy, just wait until you can use CSS variables!
72: [20:15:52] <simon_w> (coming to a CSS4-compat browser near you!)
73: [20:17:48] * camfindlay has joined #silverstripe
74: [20:22:53] * pippy has joined #silverstripe
75: [20:22:57] <Stomach> Ryan-Toast - did you get the weird "mayonnaise sandwich" phenomenon ?
76: [20:23:17] <Ryan-Toast> Stomach: I did not. I did the majority of the cooking.
77: [20:23:24] <Ryan-Toast> So I didn’t have to clean.
78: [20:23:39] <Stomach> haha thats always the best option :D
79: [20:23:54] <Stomach> my russian flatmate used to get drunk as fuck and come home and eat mayo sandwiches
80: [20:23:56] <Stomach> was fucking odd
81: [20:24:12] <zippy> Ryan-Toast: how do you deal with spacing between elements on a page? If you have a collection of divs and lists etc - how do you ensure consistant spacing between them - and allow for elements to be moved around?
82: [20:24:32] <Ryan-Toast> zippy: Depends on what you’re spacing.
83: [20:24:33] <zippy> I am tempted to use a couple of helper classes, such as margin-top-small margin-top-large etc
84: [20:24:39] <Ryan-Toast> zippy: Oh, no.
85: [20:24:45] <Ryan-Toast> zippy: Not like that
86: [20:25:00] <zippy> it seems like the only way
87: [20:25:18] <Ryan-Toast> DRY css, man.
88: [20:25:31] <Ryan-Toast> then you have a class that’s coupled to only doing moving.
89: [20:25:37] <Ryan-Toast> Give me a sec
90: [20:25:49] <zippy> I should code pen something
91: [20:27:30] * micmania1 has joined #silverstripe
92: [20:30:46] <Ryan-Toast> zippy: this is how I usually do stuff: http://codepen.io/anon/pen/yygGog
93: [20:32:31] * MK_away is now known as MichalKleiner
94: [20:34:50] <zippy> Ryan-Toast: sure, but the problem is that seems to break down fairly quick
95: [20:34:50] <zippy> eg;
96: [20:34:52] <zippy> http://codepen.io/anon/pen/gbgZxV
97: [20:35:11] <zippy> The heading has more space above it in the grey box - so you'd have to have margin and padding-tops on those to 0
98: [20:35:50] <zippy> and the second grey area with just a heading has lots of space under it, so you'd have to margin/padding -bottom that to 0 - but then the next grey area has paragraphs and the heading would crash into those, so the heading needs some padding under it
99: [20:36:24] <zippy> Ryan-Toast: it's monday, 9:30 on your first day back after holiday, make that brain work!!
100: [20:36:45] <Ryan-Toast> zippy: You would use the headings inital margin to set the bounding box./
101: [20:36:56] <Ryan-Toast> zippy: It’s an issue that’s always bugged me.
102: [20:37:11] <Ryan-Toast> zippy: And I always flip-flop between the two methods.
103: [20:37:21] * glenn-bautista1 has joined #silverstripe
104: [20:37:55] * glenn-bautista quit (Read error: Connection reset by peer)
105: [20:38:19] <zippy> whats the second method?
106: [20:42:31] <Ryan-Toast> zippy: Like this: http://codepen.io/anon/pen/XJpoez
107: [20:49:17] <Ryan-Toast> zippy: I enjoy this article - http://sass-guidelin.es/
108: [20:50:49] <zippy> Ryan-Toast: so that codepen looks like all margin and padding to the inside of the elements?
109: [20:51:13] <Ryan-Toast> zippy: you use the headings to set the starting padding on the parent.
110: [20:51:18] <Ryan-Toast> well, you trick it.
111: [20:51:31] <Ryan-Toast> Ideally you would just have the style on your h1, h2 etc
112: [20:51:36] <Ryan-Toast> as a global.
113: [20:51:43] * hailwood has joined #silverstripe
114: [20:51:50] <Ryan-Toast> It’s… annoying.
115: [20:51:51] <zippy> right, but if you have no heading in the next and start with a p - then you have to set the style on the p right - but then when you have a h1 followed by a p then you'd have way to much white space
116: [20:51:57] <zippy> so it'd be a lot of fiddling
117: [20:52:34] <Ryan-Toast> zippy: In that case you would have a no-heading class or something
118: [20:52:40] <Ryan-Toast> that would set the padding.
119: [20:52:53] <Ryan-Toast> clkasses like that are good for cms's
120: [20:53:06] <Ryan-Toast> because you can have a check whther or not to add the class automatically.
121: [20:53:21] <hailwood> Hi guys, If I have a Datalist of DataObjects without writing another function is there any simple way to say "give me a comma separated list of column X"?
122: [20:53:47] * novaweb has joined #silverstripe
123: [20:55:51] <glenn-bautista1> hailwood: can't you use the map function, and simply process the results.
124: [20:56:02] * glenn-bautista1 is now known as glenn-bautista
125: [20:57:40] <glenn-bautista> something like implode($datalist->map('ID','Column')->toArray(), ',');
126: [20:57:41] <hailwood> glenn-bautista, in the template? I was hoping there was a function on the core DataObject class that would allow me to do $DataList.implode(', ', 'Code') to print a list of the Code column.
127: [20:57:41] <Stomach> you can also do $dataList->column('MyColumn')
128: [20:59:04] <glenn-bautista> hailwood: I don't think so.
129: [20:59:09] <glenn-bautista> perhaps I'm wrong.
130: [21:00:22] <hailwood> *sigh* another function on the controller I guess. I might just write an extension that gets applied to Page that has all these helpers for each project.
131: [21:02:46] <adrexia> I believe the registry module does it by looking at the display fields
132: [21:03:24] <Stomach> hailwood - we tend to write a TemplateProvider for each project with all of these functions in them rather than polluting the page controller
133: [21:03:46] <adrexia> Stomach, that's a really good idea
134: [21:04:20] <Stomach> TemplateProviders are the best thing about 3.0 :P
135: [21:04:36] <hailwood> Never heard of them. time to look them up
136: [21:04:37] <adrexia> I've really not seen anyone use them
137: [21:05:36] <Stomach> we have a few lurking around our internal modules
138: [21:05:49] <hailwood> don't shoot me, but are they like the ViewComposers from Laravel4? - Kind of a middle point between the Controllers and the Views to format the data for output?
139: [21:06:00] <Stomach> heres one
140: [21:06:01] <Stomach> https://github.com/stevie-mayhew/silverstripe-svg/blob/master/code/SVGTemplateProvider.php
141: [21:06:21] <adrexia> ahh, registry module does: $columns = $this->dataRecord->getDataSingleton()->summaryFields();
142: [21:07:23] <adrexia> hailwood I don't think anyone is going to shoot you for Laravel
143: [21:07:51] <adrexia> Stomach, My dislike for brackets on new lines kicked in
144: [21:08:31] <Stomach> my like for having my IDE set up by default to the coding standards I use kicked in :P
145: [21:08:43] <adrexia> hahaha
146: [21:09:37] <Stomach> although I've been using PSR for like 3 years now, so my brain now likes it
147: [21:09:47] <Stomach> cmd+option+L ftw also
148: [21:10:10] <Stomach> although the .editorconfig files in SS also help a shitload now, no more copy+paste tabs all fucking day
149: [21:15:10] <hailwood> Stomach, Are there any docs for them?
150: [21:18:37] * Stomach quit (Ping timeout: 245 seconds)
151: [21:19:03] * Stomach has joined #silverstripe
152: [21:22:12] <Stomach> hailwood - not really
153: [21:22:16] <Stomach> http://api.silverstripe.org/3.1/class-TemplateGlobalProvider.html
154: [21:22:18] * adrexia quit (Ping timeout: 265 seconds)
155: [21:25:21] <MichalKleiner> Nette framework is using Latte as the templating engines and there you write LatteHelpers.. this is kind of similar, but with Latte you can register different helpers for different templates.. or globally of course
156: [21:25:35] * veb has joined #silverstripe
157: [21:25:36] * veb quit (Changing host)
158: [21:25:36] * veb has joined #silverstripe
159: [21:26:15] <MichalKleiner> I didn't know about this template providers in SS and they could be useful on few projects.. next time!
160: [21:26:23] <hailwood> Stomach, Ok so from what I see, the class just needs to exists in Code and SS will pick it up, 'get_template_global_variables' should return an array of "function names", and those functions should be pub-static functions on the TemplateProvider yeah?
161: [21:26:46] <Stomach> hailwood yep bingo
162: [21:26:53] <Stomach> just implement the interface and run away laughing
163: [21:27:25] <Stomach> same thing here as an example: https://github.com/heyday/silverstripe-menumanager/blob/master/code/MenuManagerTemplateProvider.php
164: [21:27:30] <hailwood> Sweet, that works for me. SS has so many hidden secrets!
165: [21:27:55] <Stomach> not hidden, just not documented
166: [21:28:01] <hailwood> Well yeah
167: [21:28:08] <Stomach> camfindlay - you might want to take note of the above conversation for some documentation goodies! :)
168: [21:28:19] <MichalKleiner> that's also why it's good to follow core committers group :-D
169: [21:28:54] <Stomach> MichalKleiner - you mean the google one?
170: [21:29:10] <hailwood> I notice that the MenuManagerTemplateProvider returns an associative array (although key and value are the same), does that make any difference to a single dimensional array?
171: [21:29:36] <camfindlay> thanks Stomach, what’s the summary of what should get added? A good code example might be good too for the new how to sections.
172: [21:29:58] <MichalKleiner> Stomach: I meant the hangout session/youtube videos in future but if I could subscribe to a mailing list I'd do so as well
173: [21:30:13] <Stomach> MichalKleiner - https://groups.google.com/forum/#!forum/silverstripe-dev
174: [21:31:08] <Stomach> camfindlay - yeah just an example of how to use TemplateGlobalProvider to allow access to things through templates
175: [21:31:22] * Colin[pi] has joined #silverstripe
176: [21:31:22] <Stomach> I could write one once we have the new docs up
177: [21:31:22] <Colin[pi]> HOLLA
178: [21:31:38] <Stomach> hailwood - nope doesn't make a difference
179: [21:32:01] <Stomach> although you can use an associative to allow the call in the template to return a different function name
180: [21:32:02] <camfindlay> Stomach - we have the new docs structure merged into framework now so you could effectively write it up and do a PR already :)
181: [21:32:11] <Stomach> camfindlay - oh nice
182: [21:32:15] <Stomach> will add it to my todo list :)
183: [21:32:21] <veb> pippy: he will hate that job
184: [21:32:22] <camfindlay> hopefully we can look at live deployment this week… just doing a bit more testing
185: [21:32:23] <veb> pippy: lol
186: [21:32:45] <veb> pippy: put it this way, I'm sure your cartoon site had uh, better PHP.
187: [21:32:46] <MichalKleiner> camfindlay: nice :)
188: [21:32:46] <Stomach> testing is over rated
189: [21:32:54] <Stomach> deploy!
190: [21:32:58] <Stomach> revert!
191: [21:33:01] <Stomach> deploy again!
192: [21:33:01] <camfindlay> Stomach, it also once merged will auto deploy out to the beta site
193: [21:33:02] <Stomach> :D
194: [21:33:18] <camfindlay> haha
195: [21:33:53] <camfindlay> yeah just had to work with wilr to get some docsviewer module fixes in before we go live
196: [21:34:36] * adrexia has joined #silverstripe
197: [21:34:59] <Stomach> sweet
198: [21:35:32] <Stomach> also I think that the core contributers should have a clause in their expected communication guideline which says they have to send people a muffin if they fuck up
199: [21:35:51] <Stomach> then I can spend my days pissing people off trying to get muffins
200: [21:35:53] <Stomach> man I want a muffin
201: [21:35:54] <Stomach> brb
202: [21:40:20] * mahfuz has joined #silverstripe
203: [21:51:49] <Stomach> mmmm muffin
204: [21:56:17] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
205: [21:59:42] * zippy has joined #silverstripe
206: [22:00:41] * gelignite quit (Quit: http://bit.ly/nkczDT)
207: [22:09:28] * travis-ci has joined #silverstripe
208: [22:09:28] <travis-ci> tractorcow/sapphire#30 (pulls/3.1/fix-file-canedit - 7816875 : Damian Mooyman): The build passed.
209: [22:09:28] <travis-ci> Change view : https://github.com/tractorcow/sapphire/compare/6bf2cb04168d...7816875e92c1
210: [22:09:28] <travis-ci> Build details : http://travis-ci.org/tractorcow/sapphire/builds/46667682
211: [22:09:28] * travis-ci has left #silverstripe
212: [22:14:38] * simon_w|air quit (Quit: Ping timeout: your mum)
213: [22:21:02] * veb is now known as vebb
214: [22:21:22] * vebb is now known as veb
215: [22:25:33] * simon_w|air has joined #silverstripe
216: [22:28:31] * Colin[pi] quit (Ping timeout: 265 seconds)
217: [22:29:12] * Colin[pi] has joined #silverstripe
218: [22:40:20] <simon_w|work> Hey look. That Colin[pi] guy is back!
219: [22:40:26] <simon_w|work> Now he can bring me things ;)
220: [22:40:46] * novaweb quit (Quit: Leaving)
221: [22:42:32] <zippy> Colin[pi]: o/
222: [22:42:40] <ss23> o/
223: [22:46:46] <Colin[pi]> OMG someone noticed ;_;
224: [22:46:52] <Colin[pi]> \o
225: [22:53:29] <zippy> :)
226: [22:53:46] * zippy has an on-join sms alert setup for Colin[pi]
227: [22:53:49] <ss23> XD
228: [22:54:05] <ss23> We could do one that alerts if the person hasnt' been on IRC for more than 1 week, then comes back
229: [22:54:14] <ss23> Like "HEY EVERYONE LOOK ANTMAS IS BACK HE HASN'T BEEN HERE FOr (4) WEEKS"
230: [22:55:01] <zippy> heh
231: [22:55:07] <zippy> write it up then
232: [22:55:25] <ss23> Too boring
233: [22:59:36] * mobiusnz has joined #silverstripe
234: [23:01:20] <adrexia> that'd be pretty cool
235: [23:01:33] <adrexia> or even if someone has been lurking for2 weeks and said nothing
236: [23:02:04] <Stomach> leave the lurkers alone
237: [23:02:08] <Stomach> they are the backbone of IRC
238: [23:02:56] <adrexia> heheh
239: [23:03:06] <adrexia> they make channels look popular
240: [23:03:15] <adrexia> without contributing to the noise level
241: [23:03:23] <adrexia> best of both worlds
242: [23:03:27] <simon_w|work> Just not this one
243: [23:03:57] <adrexia> I wonder if there's a #lurkers
244: [23:04:15] <simon_w|work> There used to be a lurkers RPG
245: [23:04:28] <Stomach> adrexia there is and someone already registered it
246: [23:04:28] <adrexia> ...where you just stood around
247: [23:04:34] <adrexia> hahah
248: [23:04:42] <Stomach> I stil lurk in #likeigiveafuck thanks to ss23
249: [23:04:56] <adrexia> I see
250: [23:04:58] <adrexia> :D
251: [23:05:13] <Stomach> and #deploynaut
252: [23:05:18] <ss23> rofl Stomach
253: [23:05:21] <Stomach> deploynaut not very popular
254: [23:05:23] <ss23> Do we have a #deploynaut?
255: [23:05:24] <adrexia> must get lonely
256: [23:06:24] <adrexia> hahaha
257: [23:06:25] <adrexia> * Stomach has changed the topic to: USE BEAM INSTEAD ITS WAY BETTER | http://beam.heyday.net.nz
258: [23:07:08] <Stomach> but srs if you want the channel ss23 just ask and I'll hand it over to sminnee
259: [23:07:49] <adrexia> mmmm. php that generates inline javascript.
260: [23:07:58] <simon_w|work> Stomach, That'd require them to support another thing. I don't see that happening :p
261: [23:07:59] <adrexia> that's going to be a pain to upgrade
262: [23:08:09] <ss23> Stomach: Not enough people using it tbh ^.^
263: [23:08:42] <Stomach> " Stomach changed the topic to This software is unsupported because not enough of you dolts use it. "
264: [23:08:49] <Stomach> there we go
265: [23:10:54] <ss23> XD
266: [23:21:18] <adrexia> of course if it were supported, perhaps more woul;d use it?
267: [23:21:24] <adrexia> ;)
268: [23:21:53] <ss23> Sounds like adrexia is offering to turn her into company into using DEploynaut and take up support
269: [23:22:07] <pippy> i want to use it, but can't because of windows. You know corporate software :(
270: [23:22:29] <Stomach> see, you can use beam on windows
271: [23:22:35] <Stomach> :D :D :D
272: [23:22:37] * aragonne has joined #silverstripe
273: [23:22:45] <MichalKleiner> I wrote our own deployment tool using Fabric
274: [23:22:49] <pippy> when does wilr get back? I want him to look at some fixes i made to restful server
275: [23:22:59] <pippy> wait, you can?!
276: [23:23:01] <adrexia> ss23, People other then me do that stuff. And I sort of like it that way
277: [23:23:42] <adrexia> Stomach - doesn't beam also use capistrano?
278: [23:23:45] <Stomach> pippy - if that was to me, then yes you can
279: [23:23:48] <Stomach> adrexia - no
280: [23:23:51] <MichalKleiner> http://gnuwin32.sourceforge.net/
281: [23:23:54] <Stomach> it uses rsync or ftp
282: [23:23:58] <adrexia> oh
283: [23:23:59] <MichalKleiner> or cygwin
284: [23:24:25] <Stomach> yeah we use a cygwin wrapper with a fork of beam to change *nix paths to windows ones
285: [23:24:51] <Stomach> well, I dont - my team does
286: [23:24:54] <Stomach> mac masterrace
287: [23:25:40] <MichalKleiner> I need to have a look at Capistrano what it can do and whether we can use some ideas or change our process to use it.. I can't remember why we wrote our own tool
288: [23:25:51] <MichalKleiner> maybe because of knowing what and how it does
289: [23:26:18] <MichalKleiner> and also maybe because Rails
290: [23:31:09] <Stomach> yeah having to install ruby just to deploy a php application seems fucked up
291: [23:32:40] * aragonne quit (Quit: aragonne)
292: [23:33:24] <zippy> been using http://dploy.io/ with good results lately
293: [23:33:46] * mobiusnz quit (Quit: Leaving.)
294: [23:33:48] <zippy> bitbucket intergration to0, which is nice
295: [23:33:58] <zippy> jezus, thats a pretty l33t msg
296: [23:34:03] <zippy> w00t
297: [23:37:31] * Colin[pi] quit (Ping timeout: 256 seconds)
298: [23:38:13] * Colin[pi] has joined #silverstripe
299: [23:39:06] <MichalKleiner> yep, seen that before, we needed more repos and I didn't want to have 3rd party tool fetching our code through their server - slightly paranoid => everything uses only SSH keys :-D
300: [23:39:39] <MichalKleiner> and Fabric is the same as Capistrano with less magic
301: [23:46:44] * chillu_23 quit (Quit: chillu_23)
302: [23:47:09] * chillu_23 has joined #silverstripe
303: [23:57:17] * Colin[pi] quit (Ping timeout: 244 seconds)

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