#silverstripe IRC Log

IRC log for 22 January 2015

All timestamps are in UTC.

1: [00:04:53] * babak_ quit (Quit: Connection closed for inactivity)
2: [00:15:08] <Colin[pi]> is it just me, or did the Roboto font change?
3: [00:15:21] <Colin[pi]> hah yes it did change
4: [00:15:25] <Colin[pi]> https://www.google.com/fonts/specimen/Roboto
5: [00:15:33] <Colin[pi]> (Updated January 14 2015)
6: [00:17:09] * camfindlay quit (Quit: camfindlay)
7: [00:21:57] <Ryan-Toast> Oh, Roboto has some nice ultra bolds now.
8: [00:22:57] <Colin[pi]> Ryan-Toast: mm I was in the middle of using my cms the other day (uses roboto), and I reloaded and it suddenly looked different
9: [00:23:03] <Colin[pi]> thought I was imagining things
10: [00:26:28] * jordanmk has joined #silverstripe
11: [00:28:30] <jordanmk> hi guys, is it possible to create custom casting for a field? e.g. in the same way you can do: private static $casting = array('SomeField' => 'HTMLText');, would it be possible to do something like: private static $casting = array('SomeField' => 'SomeCustomFieldType'); and then define how "SomeCustomFieldType" casts the value of a field?
12: [00:33:53] * UncleCheese has joined #silverstripe
13: [00:34:48] * r_hector quit (Quit: Leaving.)
14: [00:36:21] <Stomach> jordanmk - of course
15: [00:37:46] <Stomach> http://api.silverstripe.org/3.1/class-DBField.html
16: [00:40:58] <Stomach> you just need to add a forTemplate function I assume
17: [00:41:02] <Stomach> (having never done this)
18: [00:42:49] * jenniferaslan quit (Quit: jenniferaslan has left the room)
19: [00:48:58] * mpodolian has joined #silverstripe
20: [00:50:36] <zippy> https://www.kickstarter.com/projects/elanlee/exploding-kittens - 2.3 mil... wow. I predict 5mil by the end of it
21: [00:54:27] <ss23> so insane
22: [00:55:19] <mpodolian> Hello everyone! Is is possible to display a menu on a page that is rendered by a custom Controller (not ContentController) ?
23: [00:57:34] <zippy> mpodolian: :)
24: [00:57:43] <zippy> mpodolian: it's a pain in the arse right
25: [00:57:54] <zippy> same without being able to access $SiteConfig
26: [00:58:28] <zippy> mpodolian: post in here the line (just the line) where you are calling the render
27: [00:59:07] <mpodolian> this: return $this->renderWith(array('Vehicle', 'Page'), compact('Vehicle'));
28: [01:02:05] <Stomach> zippy - did you buy any yet?
29: [01:02:07] <Stomach> I got a couple
30: [01:02:15] <zippy> Stomach: might do
31: [01:03:02] <zippy> mpodolian: I did > return ViewableData::renderWith(array('Vehicle', 'Page'), \Page::create(array('Title' => 'Page Title Here...'))); in the past. But your also passing Vehicle... where I pass a empty Page(to get access to the Menu function
32: [01:04:08] <zippy> mpodolian: you might be able to create a function on your custom controller like function Menu($level = 1) { return Page::create()->getMenu($level); } .. a big rangi but will (probably) work
33: [01:04:28] <zippy> I wish it didn't have to come to it...
34: [01:04:46] <zippy> you could probably move that out to an extension, and then apply it to the other custom controllers
35: [01:06:09] <mpodolian> zippy: Thanks for the suggestion; I came to a similar conclusion as well. This has worked: public function Menu($level) { return singleton('ContentController')->getMenu($level); }
36: [01:06:24] <zippy> that lookers cleaer
37: [01:06:31] <zippy> cleaner
38: [01:06:41] <zippy> SiteConfig is another one which is issing
39: [01:06:44] <zippy> *missing
40: [01:09:55] * mpodolian quit (Quit: Page closed)
41: [01:10:33] * mpodolian has joined #silverstripe
42: [01:13:15] * hailwood quit (Quit: Leaving)
43: [01:16:43] * mpodolian quit (Ping timeout: 246 seconds)
44: [01:18:31] <zippy> course is a funny looking word
45: [01:19:12] <Ryan-Toast> passed looks the same if you rotate it 180 degrees.
46: [01:20:06] <ss23> woah
47: [01:20:08] <ss23> Ryan-Toast: :O
48: [01:21:37] <zippy> wooooooooo
49: [01:22:14] <antmas> yeah I tried to turn my head 180 degrees
50: [01:22:18] <antmas> now it hurts
51: [01:22:24] <antmas> ;___;
52: [01:22:40] <zippy> [ryan *insert matrix neo gif here* ]
53: [01:22:58] <zippy> thats my Ryan-Toast irc shortcode
54: [01:23:06] <Ryan-Toast> :P
55: [01:23:42] <Ryan-Toast> zippy: http://www.reddit.com/r/Showerthoughts/top/?sort=top&t=all
56: [01:23:48] <Ryan-Toast> for more nuggets like that.
57: [01:24:35] <antmas> I come to SSIRC for the Ryan-Toast nuggets
58: [01:24:52] <Ryan-Toast> antmas: nono, that’s the Ryangonewild IRC channel.
59: [01:24:58] <Ryan-Toast> for my nuggets.
60: [01:25:03] <antmas> :D
61: [01:25:08] <antmas> dem dank nuggs
62: [01:25:10] * MrGuits quit (Ping timeout: 255 seconds)
63: [01:28:34] * WandL has joined #silverstripe
64: [01:30:15] <ss23> So we have a bunch of TVs up all through the office now with Chromecast
65: [01:30:17] <ss23> https://www.youtube.com/watch?v=q2fIWB8o-bs playing this
66: [01:30:32] <Stomach> TIL silverstripe are all on drugs
67: [01:30:45] <antmas> lol
68: [01:30:59] <antmas> replace that with hypnotoad
69: [01:31:07] <antmas> with sound enabled
70: [01:32:13] <zippy> mmm 1080p... mmm
71: [01:32:26] <zippy> soo relaxing
72: [01:32:32] <antmas> showerthoughts seems just like thechive
73: [01:32:37] <antmas> or is the otherway around
74: [01:32:41] <antmas> it*
75: [01:33:39] <antmas> gridview headers y u no left align
76: [01:33:50] * antmas flips desk
77: [01:33:52] * Guits has joined #silverstripe
78: [01:36:24] <zippy> (╯°□°)╯︵ ┻━┻ THIS IS RIDICULOUS
79: [01:36:30] <zippy> (there you go antmas )
80: [01:36:51] <antmas> zippy: yeah I had to look that up and then gave up because I was too slow
81: [01:37:54] <antmas> __̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.___
82: [01:37:59] <antmas> what even
83: [01:38:20] <antmas> https://www.youtube.com/watch?v=GbkOwoZLey0
84: [01:38:21] <zippy> yea mm.. I think your doing it wrong
85: [01:45:48] * pippy has joined #silverstripe
86: [01:57:57] <zippy> well. fuck me
87: [01:58:09] <zippy> Time: 9.13 seconds, Memory: 78.50Mb
88: [01:58:10] <zippy> OK (4 tests, 23 assertions)
89: [01:58:17] <zippy> Time: 3.09 seconds, Memory: 77.75Mb
90: [01:58:19] <zippy> OK (4 tests, 23 assertions)
91: [01:58:22] <zippy> that is a zillion times better
92: [02:00:15] <antmas> what'd ya'll do differently zippy ?
93: [02:00:48] <Colin[pi]> zippy: slight improvement there
94: [02:01:02] <zippy> tests are set to flush by default all the time
95: [02:01:03] <zippy> sort of useful, most of the time not
96: [02:01:06] <zippy> it'd be like developing with ?flush=all in the url all the time
97: [02:01:11] <zippy> fix some css, refresh, wait........
98: [02:01:23] <zippy> ah, missed something, fix it, refresh, wait...
99: [02:01:40] <zippy> ideally.... it'd be better if we didn't have to flush at all... know'm saying...
100: [02:02:46] <antmas> mmm
101: [02:02:56] <antmas> </3 flush requirement
102: [02:03:22] <zippy> I don't think tests should be flush by default. I think they should take in the command line argh "flush=1" to flush, like the browser - it's default behavour...
103: [02:03:27] <zippy> might send a pull req.
104: [02:04:47] <antmas> yeah agreed
105: [02:13:55] * babak_ has joined #silverstripe
106: [02:15:21] * gordon has joined #silverstripe
107: [02:15:36] * gordon is now known as Guest64968
108: [02:17:34] <antmas> awww yisss win10 will be a free upgrade
109: [02:18:01] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
110: [02:18:22] <Colin[pi]> antmas: yay
111: [02:18:35] <Colin[pi]> antmas: good move too, lot of bad blood to fix
112: [02:18:46] <antmas> Colin[pi]: exactly
113: [02:19:12] <Colin[pi]> antmas: starting to think this new MS boss might actually know what he's doing
114: [02:19:30] <antmas> he kinda has from the start imo
115: [02:19:44] <antmas> just needed to put plans in place early
116: [02:19:56] <antmas> he basically walked into a clusterfuck
117: [02:21:10] <Olliepop> In my CMS security panel I have dropdown fields which relate a user to a dataobject, yet instead of displaying the objects Title it displays the ID (#351 etc) -- any way to change this for the end-user? You can't decorate Security can you?
118: [02:21:38] <Olliepop> that's the SecurityAdmin class
119: [02:23:11] * antmas quit (Quit: Page closed)
120: [02:27:21] * muskie9 has joined #silverstripe
121: [02:30:37] <Olliepop> turns out it's best to just not bother with the security panel at all.. would be nice to be able to decorate it in a later release
122: [02:34:51] <zauberfisch> Olliepop: where is that dropdown again?
123: [02:34:57] <zauberfisch> in the edit view of a Member?
124: [02:35:17] <zauberfisch> if thats the case, the code for that dropdown is not in the security admin class but in the member class instead
125: [02:35:22] <zauberfisch> Member->getCMSFields
126: [02:35:32] <zauberfisch> and you can easily decorate taht using updateCMSFields
127: [02:35:33] * willr has joined #silverstripe
128: [02:39:37] * UncleCheese quit (Ping timeout: 252 seconds)
129: [02:42:08] <Olliepop> zauberfisch thanks that was it!
130: [02:47:52] * travis-ci has joined #silverstripe
131: [02:47:52] <travis-ci> silverstripe/silverstripe-framework#3912 (3.1 - 9fdd248 : Will Rossiter): The build passed.
132: [02:47:52] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/c5db41d21f4b...9fdd2481bc4c
133: [02:47:52] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47869921
134: [02:47:52] * travis-ci has left #silverstripe
135: [02:56:09] * travis-ci has joined #silverstripe
136: [02:56:09] <travis-ci> silverstripe/silverstripe-framework#3913 (3.1 - a1ffaac : Will Rossiter): The build passed.
137: [02:56:09] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/9fdd2481bc4c...a1ffaac9e3db
138: [02:56:09] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47869993
139: [02:56:09] * travis-ci has left #silverstripe
140: [03:06:28] * travis-ci has joined #silverstripe
141: [03:06:28] <travis-ci> silverstripe/silverstripe-framework#3914 (3.1 - f733ca2 : Will Rossiter): The build passed.
142: [03:06:28] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/a1ffaac9e3db...f733ca27597d
143: [03:06:28] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47870404
144: [03:06:28] * travis-ci has left #silverstripe
145: [03:32:54] * veb quit (Quit: veb-irc: &)
146: [03:40:25] <zippy> hahahaha... doh.
147: [03:40:45] <zippy> I wanted people to be able to add SpecialPage or just the basic Page but no other pages
148: [03:40:55] <zippy> but of course if you allow_children of Page that allows all.
149: [03:40:59] <zippy> stink.
150: [03:41:02] <Stomach> cancreate
151: [03:41:04] <Stomach> return false
152: [03:41:14] <zippy> yea but then you can't drag
153: [03:41:19] * Zagoodwin has joined #silverstripe
154: [03:41:27] <zippy> but yea, thats a different issue
155: [03:41:31] <Stomach> come to my talk www.meetup.com/SilverStripe-Auckland/events/219791811/
156: [03:41:40] <zippy> too far away!
157: [03:41:49] <zippy> I want people to create those other pages in other parts of the site, just not udner this speciifc page
158: [03:48:21] <Zagoodwin> Has anyone thought of a good way to have pre-defined tags for the blog posts, using checkboxes or something?
159: [03:51:42] * Olliepop quit (Quit: Page closed)
160: [03:56:21] * jedateach has joined #silverstripe
161: [04:00:53] * Cramb has joined #silverstripe
162: [04:01:26] * jedateach quit (Quit: jedateach)
163: [04:03:16] <Colin[pi]> this is an interesting thread: http://www.reddit.com/r/programming/comments/2t7a36/lets_hear_your_controversial_programming_opinions/
164: [04:03:30] * spekulatius quit (Quit: Leaving)
165: [04:04:52] <Zagoodwin> Is there any way to manipulate post data of a text field before it is inserted to the database?
166: [04:06:12] <Colin[pi]> Zagoodwin: onBeforeWrite() method on the data object?
167: [04:06:58] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
168: [04:12:42] <Cramb> Any pointers on how to pass ArrayData Object not saved in the database to a FieldList to populate a form
169: [04:16:47] * Stomach quit (Ping timeout: 252 seconds)
170: [04:24:56] * Ryan-Toast quit (Quit: Ryan-Toast)
171: [04:32:55] * veb has joined #silverstripe
172: [04:45:12] <muskie9> Cramb: http://api.silverstripe.org/master/class-Form.html#_loadDataFrom
173: [04:46:03] <muskie9> $yourForm->loadDataFrom($yourArray);
174: [04:46:29] * Liquide quit (Ping timeout: 252 seconds)
175: [04:48:38] <Cramb> Thanks muskie9
176: [04:48:45] <muskie9> sure
177: [04:49:15] * cloph has joined #silverstripe
178: [04:49:23] * cloph_away quit (Ping timeout: 240 seconds)
179: [04:55:50] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
180: [04:58:48] <zauberfisch> .help
181: [04:58:50] <zauberfisch> !help
182: [04:58:52] <zauberfisch> ?help
183: [04:59:01] <zauberfisch> ss-log: help
184: [04:59:04] <zauberfisch> D:
185: [04:59:30] <ss23> no help 4 u!
186: [04:59:59] <zauberfisch> was hoping there is a tell command to send messages to offline users
187: [05:00:06] <zauberfisch> well ...
188: [05:00:09] <zauberfisch> then its just for the record
189: [05:01:18] <zauberfisch> zippy: I think you are looking for private static $allowed_children = ['*Foo','*Bar'] which only allows Foo and Bar but none of its sub classes
190: [05:01:29] <zauberfisch> hope he has nothing better to do than read log files
191: [05:09:35] * Cramb quit (Quit: Cramb)
192: [05:10:10] * Cramb has joined #silverstripe
193: [05:10:28] * Cramb quit (Client Quit)
194: [05:13:09] * micmania1 quit (Ping timeout: 245 seconds)
195: [05:22:31] <MK_busy> zauberfisch: good to know :)
196: [05:28:17] * willr has left #silverstripe
197: [05:29:11] <MK_busy> is it documented somewhere?
198: [05:29:14] <zauberfisch> I think its even documented somewhere
199: [05:29:15] <zauberfisch> yeah
200: [05:32:11] <zauberfisch> MK_busy: na, doesn't seem that way
201: [05:32:22] <zauberfisch> at least I can't find anything right now
202: [05:32:40] <zauberfisch> but might also just be shitty mysql fulltextsearch
203: [05:33:56] <zauberfisch> balbus wrote about it it seems: http://www.balbuss.com/hide-a-page-from-the-cms-pagetype-dropdown/
204: [05:34:09] <MK_busy> docs search didn't find anything
205: [05:34:40] <zauberfisch> yep
206: [05:34:57] <zauberfisch> (be careful with balbus site, there is mostly 2.x stuff from what I see)
207: [05:35:20] <MK_busy> yep, seems bit outdated
208: [05:35:23] <MK_busy> but good inspiration
209: [05:35:30] <Colin[pi]> who was this balbus anyway? is he someone in the community?
210: [05:35:38] <Colin[pi]> I've used his site in the past a number of times
211: [05:48:24] * veb quit (Quit: veb-irc: &)
212: [06:00:58] * Shrike_Finland has joined #silverstripe
213: [06:02:21] * Shrike_Finland quit (Client Quit)
214: [06:04:56] * Sticks quit (Quit: Leaving)
215: [06:10:12] * veb has joined #silverstripe
216: [06:11:09] <MK_busy> dunno
217: [06:11:17] <MK_busy> reminds me of german tuning company http://www.brabus.com/
218: [06:11:18] <MK_busy> :-D
219: [06:15:53] * MrGuits has joined #silverstripe
220: [06:19:18] * Guits quit (Ping timeout: 276 seconds)
221: [06:42:28] * Shrike_Finland has joined #silverstripe
222: [06:51:24] * veb quit (Quit: veb-irc: &)
223: [06:52:18] * WandL quit (Quit: My Mac has gone to sleep. ZZZzzz…)
224: [06:53:49] * Kingy[a] is now known as Kingy
225: [06:54:00] <Kingy> morning
226: [06:55:00] <ss23> moin moin
227: [07:01:51] <Kingy> got to bed at 2am \o/
228: [07:05:16] <ss23> laate :P
229: [07:07:27] <Kingy> tis for me :(
230: [07:24:31] * bemusedrat has joined #silverstripe
231: [07:40:46] * lerni_ has joined #silverstripe
232: [07:43:07] * wmk has joined #silverstripe
233: [07:50:11] * MK_busy is now known as MK_away
234: [07:54:33] * glenn-bautista quit (Quit: Leaving.)
235: [08:01:11] * Colin[pi] quit (Ping timeout: 252 seconds)
236: [08:08:26] * Kingy is now known as Kingy[a]
237: [08:19:40] * zippy has joined #silverstripe
238: [08:20:21] <zippy> ss23: "This short URL service is no longer available." whats this ?
239: [08:20:31] <ss23> ?
240: [08:20:31] <zippy> who pissed off simon
241: [08:20:36] <zippy> http://ss.org.nz/features
242: [08:20:38] <zippy> http://ss.org.nz/logs
243: [08:20:44] <ss23> Ehhh
244: [08:20:47] <ss23> I don't think he mentioned anything
245: [08:20:53] <ss23> Not on IRC while I was here, at least
246: [08:21:00] <ss23> zippy: Wanna get full versions for me to put in? :D
247: [08:21:07] <zippy> http://logs.simon.geek.nz/
248: [08:21:14] <zippy> find the rest yourself :)
249: [08:21:22] <ss23> haha
250: [08:22:09] <zippy> http://logs.simon.geek.nz/index.php?date=2015-01-15#log_1543843 - been a week now since any simon has been in here...
251: [08:22:54] <ss23> Well he's doing a lot of other stuff now I guess *shrug*
252: [08:23:00] <ss23> He was fed up for ages
253: [08:23:05] <ss23> He can do wahtever I guess, it's cooooooool
254: [08:25:14] <zippy> ..
255: [08:25:20] <zippy> well.... I hope he comes back
256: [08:27:57] <zippy> Twitter: To help reduce the amount I’m paying on servers every month, I’ve removed some services and added ads to others.
257: [08:28:12] <zippy> that explains the ads on the logs site, and probably the removal of the redirects
258: [08:28:26] <zippy> ss23: Might be a point to see if simon wants to move the logs to somewhere else?
259: [08:32:00] * micmania1 has joined #silverstripe
260: [08:32:07] <ss23> zippy: You offering?
261: [08:34:17] <zippy> yeap
262: [08:35:03] <zippy> anyone core contrib floating about? the only one seem to know that comes in here is kingloozer..
263: [08:35:23] <ss23> naw, don't think many of them come in here
264: [08:36:20] * simon_w has joined #silverstripe
265: [08:36:24] * simon_w has left #silverstripe
266: [08:36:30] <zippy> O.o
267: [08:37:53] <wmk> hi zippy
268: [08:37:58] <zippy> hello
269: [08:38:08] <wmk> did you find the link?
270: [08:38:47] <zippy> yes I have the link thanks :)
271: [08:38:57] <wmk> hope it helps
272: [08:38:58] <ss23> :O
273: [08:39:05] <ss23> zippy: :O
274: [08:39:08] <ss23> Are you thinking what I'm thinking?
275: [08:39:09] <zippy> ss23: mmm
276: [08:39:13] <ss23> simon_w loves us and he's coming back!
277: [08:39:14] <zippy> ss23: he's watching us
278: [08:39:14] <ss23> :D
279: [08:39:18] <ss23> Oh
280: [08:39:21] <ss23> Well I was hoping for love
281: [08:39:24] <ss23> watching... well...
282: [08:39:42] <zippy> he's possibly looking at the console of the ss-log screen maybe
283: [08:39:46] <zippy> hello simon_w o/
284: [08:39:52] <ss23> simon_w ;_;
285: [08:39:56] <ss23> My burgerfuel misses you :(
286: [08:40:39] * micmania1 quit (Ping timeout: 245 seconds)
287: [08:41:12] <wmk> the ads on logs are annoying
288: [08:41:37] <ss23> Gotta make dat money somehow
289: [08:41:47] <wmk> around midnight nz is noon in europe, when you want to see the logs you see two fat banners for some lines of logs
290: [08:41:51] <ss23> I'd be happy to either contribute a silverstripe ltd server, or personal, without adverts, but uh..
291: [08:42:01] <ss23> I don't wanna put the *time* in :P
292: [08:42:30] <wmk> ss23, you really think those ads bring money?
293: [08:42:43] <ss23> No
294: [08:42:48] <wmk> i really doubt
295: [08:42:52] <ss23> But I think if you run a site, you're allowed to put adverts on :P
296: [08:43:14] <wmk> but then i should be allowed to run adblock...
297: [08:43:22] <ss23> Well
298: [08:43:22] <ss23> :P
299: [08:43:24] <ss23> Obviously NOT!
300: [08:43:40] * mahfuz quit (Ping timeout: 246 seconds)
301: [08:45:12] <wmk> well...
302: [08:50:16] <zippy> wonder what resources he needs for ss-logs
303: [08:50:46] * wmk too
304: [08:51:05] <wmk> zippy, do you know if this irc channel is somewhat official from silverstripe?
305: [08:51:21] <zippy> well...
306: [08:51:32] <wmk> if yes, ss.org should somehow provide the log
307: [08:51:35] <wmk> IMHO
308: [08:51:35] <zippy> it's listed on the site, ss23 works there. Sam comes in every now and then..
309: [08:51:58] <zippy> but, silverstripe is open source and comunity driven... so shouldn't the community do it's part?
310: [08:52:14] <wmk> running it on yet another VM shouldn't be that expensive
311: [08:52:22] <wmk> zippy, good point
312: [08:52:44] <ss23> I'm happy to provide a VM if someone wants to do the maintance / work on it
313: [08:53:05] <ss23> I mean, an "official" silverstripe VM (pending someone who can make the decision okaying $30 or w/e a month :P)
314: [08:54:19] <zippy> I'll just txt Sam
315: [08:54:40] <wmk> well, logs bot and log archive should run well on the $5 digitalocean VM
316: [08:54:41] <zippy> he said it was sweet
317: [08:55:02] * Jakx has joined #silverstripe
318: [08:55:06] <zippy> I think the logs are quite large, there is... years in there
319: [08:55:33] <zippy> OMG
320: [08:55:50] <zippy> http://logs.simon.geek.nz/stats.php no more stats?
321: [08:55:57] * babak_ quit (Ping timeout: 276 seconds)
322: [08:55:58] <Jakx> does anyone have a trick for checking if a field exists on a dataobject (by name)? e.g DataObject::fieldExists("ObjectName", "FieldName")?
323: [08:56:02] <zippy> is that the righ turl..
324: [08:56:07] <wmk> zippy, maybe some houndred MB i guess
325: [08:56:43] <wmk> Jakx, there is something, hasField maybe?
326: [08:57:07] <wmk> Jakx, http://api.silverstripe.org/3.1/class-DataObject.html#_hasField
327: [08:57:16] <Jakx> wmk, cheers
328: [08:57:42] <wmk> hey, anyone knows if there is already a search addon for firefox to search the ss api docs?
329: [08:58:04] <zippy> wmk: 832M for the postgres data folder as at July last year
330: [08:58:22] <zippy> <simon_w> 832M /var/lib/postgresql/9.1/main
331: [08:58:25] <wmk> zippy, oh, that much?
332: [08:58:34] <zippy> <simon_w> 1357612
333: [08:58:35] <zippy> rows
334: [08:58:44] <zippy> ss23: talks alot
335: [08:58:56] <wmk> ok, but not only for one month, for whole log
336: [08:59:15] <Guest64968> Jakx: There is a getField method in DataObject that you can probably use
337: [08:59:38] <wmk> so a VM with 20G should do for it
338: [08:59:58] <zippy> yea with a gig and half of ram so it's all in memroy
339: [09:00:31] <wmk> or ssd?
340: [09:00:45] <Jakx> Guest64968, I'll check it out
341: [09:00:53] <wmk> i think the logs aren't queried that much
342: [09:01:18] <zippy> damn I am ripped about the stats....
343: [09:05:13] * kinglozzer has joined #silverstripe
344: [09:05:47] <ss23> 21:54:42 < zippy> he said it was sweet
345: [09:05:48] <ss23> hahha
346: [09:06:01] <ss23> FINE
347: [09:06:05] <ss23> WE'LL MAKE OUR OWN STATS
348: [09:06:08] <ss23> With all that motivation we have
349: [09:06:09] <ss23> ;___;
350: [09:06:10] * ss23 cries
351: [09:06:13] <ss23> I miss simon_w
352: [09:06:14] <ss23> :(
353: [09:06:26] <kinglozzer> ss23: :(
354: [09:06:28] <kinglozzer> where is he?
355: [09:07:00] * babak_ has joined #silverstripe
356: [09:07:01] * Py2erlyk has joined #silverstripe
357: [09:07:10] <ss23> Not sure, but he's removed a bunch of his silverstripe stuff
358: [09:07:12] <Py2erlyk> Wholey shit, dunno about this on time for work business.
359: [09:07:46] <ss23> XD
360: [09:07:49] <ss23> fuck that, rite Py2erlyk?
361: [09:08:07] <Py2erlyk> Yup. Now I'm just half asleep, hungry, and ... sigh.
362: [09:08:11] <Py2erlyk> about nowt to do
363: [09:09:12] <Py2erlyk> At least when I come in late people might have logged tickets and shit already
364: [09:11:33] <zippy> kinglozzer: :)
365: [09:12:12] <kinglozzer> ss23: What does SS use for server monitoring? I need texts when shit goes down, or shit stays down
366: [09:12:13] <zippy> kinglozzer: I don't think tests should flush by default. I think tests should need the flush=1 or flush=all
367: [09:12:24] <zippy> kinglozzer: pingdom
368: [09:12:28] <zippy> (personally)
369: [09:12:36] <kinglozzer> zippy: They do need a flush - phpunit some/tests '' flush=1
370: [09:12:41] <Py2erlyk> zippy: I clocked the stats.
371: [09:12:57] <zippy> kinglozzer: they don't need a flush every single time
372: [09:12:59] <Py2erlyk> No point in having them anymore, no one even close to coming for my throne.
373: [09:13:01] <Py2erlyk> xD
374: [09:13:21] <kinglozzer> zippy: I mean they don't actually flush unless you provide flush=1 parameter
375: [09:13:28] <ss23> kinglozzer: pingdom
376: [09:13:32] <kinglozzer> At least they *shouldn't*
377: [09:13:34] <zippy> no... it's hardcoded to flush all the time
378: [09:13:34] <ss23> it's a little bit shit though
379: [09:13:43] <zippy> it's why my tests were slow
380: [09:14:01] <Py2erlyk> kinglozzer: he's in Aus
381: [09:14:01] <zippy> I want to send a pull request, that go against the 3.2 or what?
382: [09:14:10] <Py2erlyk> Living the dream.
383: [09:14:55] <kinglozzer> zippy: Are you sure?
384: [09:15:15] <kinglozzer> I could swear it doesn't flush automatically...
385: [09:15:38] <kinglozzer> zippy, ss23: Ah I looked at that before, seems darn expensive for what it is though :|
386: [09:16:19] <Py2erlyk> get one of those other ones kinglozzer
387: [09:17:25] <kinglozzer> Been using StatusCake for free till now
388: [09:17:49] <kinglozzer> Worked well (until it ran out of SMS credits), think it was cheapest
389: [09:18:42] * stnvh quit (Read error: Connection reset by peer)
390: [09:18:52] * veb has joined #silverstripe
391: [09:19:04] <zippy> kinglozzer: https://github.com/silverstripe/silverstripe-framework/blob/3.1/dev/TestRunner.php#L81
392: [09:19:22] <zippy> so you have to tell it not to flush...
393: [09:20:23] <kinglozzer> Ohhhh you're running them in-browser
394: [09:20:28] <zippy> no
395: [09:20:35] <zippy> I am calling it like phpunit
396: [09:20:41] <zippy> command line
397: [09:20:49] * stnvh has joined #silverstripe
398: [09:20:55] <kinglozzer> zippy: You shouldn't hit that controller at all if you're using $ phpunit framework/tests
399: [09:21:02] <Guest64968> kinglozzer: You need to pass flush=1 as a parameter to php unit in order for it to flush
400: [09:21:11] <Guest64968> gah, should fix my handle
401: [09:21:13] <kinglozzer> Guest64968: Yeah that's what I'm saying
402: [09:21:15] <kinglozzer> madmatt
403: [09:21:17] <kinglozzer> :P
404: [09:21:21] <zippy> yea but, it's not
405: [09:21:37] <zippy> my phpunit has this at the top
406: [09:21:39] <zippy> <phpunit bootstrap="framework/tests/bootstrap.php" colors="true">
407: [09:21:52] <zippy> inside the boostrap.php it says TestRunner::use_test_manifest();
408: [09:22:09] * Guest64968 is now known as nontgor
409: [09:22:10] <kinglozzer> Oh shit you're right zippy, sorry
410: [09:22:22] <zippy> so
411: [09:22:25] <kinglozzer> So it was flushing TWICE whenever I passed flush=1? D:
412: [09:22:40] <zippy> probably... or nothing
413: [09:22:52] <kinglozzer> Sorry nontgor, thought you were madmatt (he was in here as guest yesterday(
414: [09:23:16] <zippy> I will send in a pull request OK
415: [09:23:42] <kinglozzer> So, the only way to avoid flushing is flush=0
416: [09:23:42] <kinglozzer> D:
417: [09:23:55] <nontgor> haha, only just resurrected my laptop after a clusterf**k of a 12.04 to 14.04 upgrade, eventually traced to broken grub creator (was booting 14.04 with 12.04 kernels)
418: [09:24:59] * Otterpocket has joined #silverstripe
419: [09:25:52] <Otterpocket> What is the best way to filter by Year regardless of day and month?
420: [09:28:56] <wmk> Date.StartsWith => $Year
421: [09:29:26] <wmk> Otterpocket, did you try that ^^?
422: [09:29:50] <Otterpocket> No, I am having trouble finding the Docs
423: [09:29:56] <Otterpocket> Thanks wmk
424: [09:30:13] <wmk> Otterpocket, doc.silverstripe.org/en/developer_guides/model/searchfilters/
425: [09:30:31] <Otterpocket> :D thanks
426: [09:30:48] <wmk> oh, "Date:StartsWith" (double colon)
427: [09:32:16] * Jakx has left #silverstripe
428: [09:32:28] <zippy> kinglozzer: also, got another thing :) I think we should add a define or "something" inside framework/dev/bootstrap.php - like 'TEST_RUNNING' or something. because then you can move your database config to the _ss_environment file
429: [09:33:02] <zippy> frameowkr/tests/bootstrap.php rather
430: [09:36:42] <zippy> Otterpocket: depends, if you have a lot of rows it might be faster to do something like this > SELECT * FROM Foo WHERE Created BETWEEN '2014-01-01' AND '2015-12-31'
431: [09:36:54] <zippy> if you have a date column
432: [09:37:11] <zippy> I think there is between support...
433: [09:37:48] <Otterpocket> Yea, that was my first thougt, I just wondered if there was anything like wmk pointed out
434: [09:38:28] <kinglozzer> zippy: Yeah that might be useful - I tend to use if(class_exists("PHPUnit_Runner_Version"))
435: [09:38:31] * spronk2 has joined #silverstripe
436: [09:39:14] <wmk> zippy, is there some kind of BetweenFilter ?
437: [09:39:38] * travis-ci has joined #silverstripe
438: [09:39:38] <travis-ci> silverstripe/silverstripe-cms#1115 (3.1 - cfcbfea : Damian Mooyman): The build has errored.
439: [09:39:38] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/ee4639ed7447...cfcbfea88e66
440: [09:39:38] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/47893459
441: [09:39:38] * travis-ci has left #silverstripe
442: [09:39:43] <kinglozzer> wmk: WithinRangeFilter?
443: [09:39:52] <wmk> ah
444: [09:39:56] <wmk> isn't mentioned on the docs site
445: [09:40:14] <wmk> http://doc.silverstripe.org/en/developer_guides/model/searchfilters/
446: [09:40:34] <kinglozzer> wmk: Just looked it it, PHPDoc in that class just says "incomplete" >.<
447: [09:40:37] * r_hector has joined #silverstripe
448: [09:40:40] <wmk> only indirect via http://api.silverstripe.org/master/class-SearchFilter.html
449: [09:41:12] <zippy> wmk: otherwise, there is the honkey method
450: [09:41:19] <wmk> kinglozzer, so it doesn't work now?
451: [09:41:22] <wmk> honkey?
452: [09:41:40] <zippy> Filter(array('Date:GreaterThan' => 'xxxxx', 'Date:LessThan' => 'xxxx'))
453: [09:41:42] <wmk> did you mean: hotkey?
454: [09:41:50] <zippy> nop, honky
455: [09:41:52] <zippy> rangi
456: [09:41:56] <zippy> budget
457: [09:42:28] <wmk> ah
458: [09:42:48] <wmk> my dictionary doesn't know honkey...
459: [09:44:16] * arnhoe has joined #silverstripe
460: [09:47:53] <zippy> yay tests all passed!
461: [09:48:05] <wmk> so i have a many_many with belongs_many_many on the other side, scaffold all form fields and get a "I can't handle sub-URLs of a CMSForm object."
462: [09:50:35] <wmk> *sigh* why doesn't /dev/build do a flush?
463: [09:50:44] <ss23> Good question
464: [09:50:54] <ss23> Those two different "caches" evolved seperately
465: [09:51:04] <ss23> Before 3.0, the flush cache was wildly different to /dev/build
466: [09:51:21] <ss23> It's only with 3.0 onwards that it's become so important to do a flush at times where it wasn't usually important historically
467: [09:51:25] <wmk> but when i build in new db fields / relations it should be logical to flush, too??!!
468: [09:51:27] <ss23> Or some bullshit like that. Damn I sound convincing
469: [09:51:30] * ss23 puts on glasses
470: [09:51:33] <ss23> Why?
471: [09:51:37] <ss23> flush used to be just for templates
472: [09:51:47] <ss23> n e way bbl
473: [09:51:53] * zippy drops mic
474: [09:51:57] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
475: [09:52:22] <kinglozzer> wmk: dev/build should flush config manifest
476: [09:52:35] <wmk> hmm, didn't seem to
477: [09:52:42] <wmk> after flushing manually forms / grid worked
478: [09:52:48] <wmk> before it made an error
479: [09:52:52] <kinglozzer> Which version? I think I encountered that the other day..
480: [09:53:07] <wmk> kinglozzer, 3.1.9
481: [09:54:17] <kinglozzer> wmk: Possibly this? https://github.com/silverstripe/silverstripe-framework/commit/01989aac4e42cc6547c72576b276e017c3d2a8f5
482: [09:54:19] <Py2erlyk> wmk: no, traditionally flush was to do with templates, build is specific to model adjustments (ie, build me the database)
483: [09:54:38] <Py2erlyk> but now the config and all that... lines are quite blurred.
484: [09:54:52] <kinglozzer> Lines are _very_ blurred
485: [09:54:55] <wmk> Py2erlyk, working on 3.1. all the historic aspects doesn't matter that much to me
486: [09:55:00] <kinglozzer> Templates should now be flushed on dev/build
487: [09:55:01] <Py2erlyk> yup
488: [09:55:13] <Py2erlyk> I'm just giving reasons, not justification :)
489: [09:55:13] <kinglozzer> But implementors of Flushable arent'
490: [09:55:32] <wmk> Py2erlyk, yup. it's good to know, but it's better if it works
491: [09:55:38] <Py2erlyk> indeed.
492: [09:55:52] <Py2erlyk> kinglozzer: deprecate dev/build and replace it with dev/upgrade
493: [09:55:53] <Py2erlyk> or something
494: [09:55:59] <Py2erlyk> and make it flush and build and all the things
495: [09:56:18] <kinglozzer> Py2erlyk: dev/allthethings
496: [09:56:22] <Py2erlyk> yups
497: [09:56:34] <Py2erlyk> fuck, whe nmy bacon sammmich commin?
498: [09:57:14] * veb quit (Quit: veb-irc: &)
499: [10:00:59] * MK_away_ has joined #silverstripe
500: [10:01:02] <kinglozzer> wmk: I think I know what's causing it
501: [10:01:21] <kinglozzer> Are you running in a subdirectory?
502: [10:01:28] <kinglozzer> I.e. http://localhost/somesite/
503: [10:01:30] <wmk> no, vm
504: [10:01:37] <Py2erlyk> nom nom bacon
505: [10:02:05] <kinglozzer> wmk: What does your URL look like?
506: [10:02:39] <spronk2> BACON
507: [10:02:41] <spronk2> I SMELT IT
508: [10:02:43] <spronk2> I WANT
509: [10:02:49] * Shrike_Finland quit (Quit: Leaving.)
510: [10:02:53] <wmk> kinglozzer, http://127.0.0.1:8080/dev/build
511: [10:03:03] <wmk> it's a zauberfisch (tm) vagrant vm
512: [10:03:17] <kinglozzer> wmk: Can you debug Core.php?
513: [10:03:23] <wmk> i guess
514: [10:03:33] <kinglozzer> Around like 100 $flush = stuff, see if it's failing there
515: [10:04:28] * MK_away quit (Ping timeout: 255 seconds)
516: [10:05:23] * MK_away_ quit (Ping timeout: 240 seconds)
517: [10:12:12] <wmk> kinglozzer, flush is true when i run /dev/build/
518: [10:12:42] <kinglozzer> wmk: But it's still not flushing?
519: [10:12:47] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/pull/3814
520: [10:13:04] <wmk> hmm, let's build something
521: [10:14:35] * Shrike_Finland has joined #silverstripe
522: [10:15:46] <wmk> hmm, now it seems to work, scaffolds well now
523: [10:17:24] <wmk> maybe it had to do with many many before...?
524: [10:20:43] * micmania1 has joined #silverstripe
525: [10:23:37] <wmk> kinglozzer, seems i cannot reproduce it
526: [10:24:00] <kinglozzer> wmk: Strange, never mind - you reminded me to fix another bug :P
527: [10:24:12] <wmk> fine
528: [10:24:49] * micmania1 quit (Ping timeout: 245 seconds)
529: [10:29:26] * Copperis has joined #silverstripe
530: [10:30:31] * travis-ci has joined #silverstripe
531: [10:30:31] <travis-ci> silverstripe/silverstripe-framework#3916 (dev-build-subdir - 9846609 : Loz Calver): The build passed.
532: [10:30:31] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/commit/9846609dd5a4
533: [10:30:31] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47897283
534: [10:30:31] * travis-ci has left #silverstripe
535: [10:30:53] <kinglozzer> lol wut
536: [10:31:01] <kinglozzer> oh shit, I created a branch
537: [10:31:04] <kinglozzer> :P
538: [10:31:55] <wmk> kinglozzer, creating a brunch would be better now
539: [10:32:02] * DimiStripe has joined #silverstripe
540: [10:33:26] <Py2erlyk> branch all the thigns!
541: [10:33:56] * Guits has joined #silverstripe
542: [10:36:25] * MrGuits quit (Ping timeout: 255 seconds)
543: [10:50:42] * spronk2 quit (Quit: spronk2)
544: [10:51:49] * UncleCheese has joined #silverstripe
545: [10:53:54] * bemusedrat quit (Quit: Leaving)
546: [11:02:02] * r3v3rb has joined #silverstripe
547: [11:02:17] <r3v3rb> hi dee hi
548: [11:04:16] <r3v3rb> GroupList -> I can access the field I grouped by in the loop in a template but don’t appear to be able to access any other fields? Normal or not?
549: [11:05:03] <r3v3rb> I need use two fields from the grouped items :) Name and Content. So I group by Name then can’t get the content to show
550: [11:07:41] <kinglozzer> r3v3rb: Normal, that functionality doesn't exist
551: [11:07:49] <kinglozzer> Someone's recently done a PR for it though: https://github.com/silverstripe/silverstripe-framework/pull/3801
552: [11:07:54] <r3v3rb> kinglozzer: so it seems
553: [11:07:55] <r3v3rb> :D
554: [11:10:01] <r3v3rb> and only 3 days ago!
555: [11:10:48] * r3v3rb copies and pastes into new class for this project :D
556: [11:23:58] <Py2erlyk> r3v3rb: no
557: [11:24:04] <Py2erlyk> you misunderstand a grouped list
558: [11:24:16] <r3v3rb> Pah, I do
559: [11:24:30] <Py2erlyk> <% loop $GrouppedList %>
560: [11:24:34] <r3v3rb> I am now rewriting my stuff
561: [11:24:44] <Py2erlyk> <% loop $ListOfThisGroup %>
562: [11:24:49] <Py2erlyk> suddenly fields!
563: [11:24:55] <r3v3rb> to group then grab all items as objects to loop :)
564: [11:24:58] <Py2erlyk> ie, it's 2 deep
565: [11:25:19] * MK_away has joined #silverstripe
566: [11:25:25] <r3v3rb> yep, now to figure thet list of group
567: [11:25:28] <r3v3rb> and i’m done
568: [11:25:29] <Py2erlyk> using the wrong kind of group then. A groupped listed is different from a group by clause
569: [11:25:47] <Py2erlyk> and yeh, it's a tad unintuitive
570: [11:26:26] <r3v3rb> doing $group = GroupedList::create(TreePage::get())->groupedBy('Name’); return $group; but now I need to create an list based on the group first before return
571: [11:26:44] <Py2erlyk> yeah, what are you grouping by
572: [11:26:44] * lerni_ quit (Remote host closed the connection)
573: [11:26:50] <Py2erlyk> that grouped list isn't whaqt youthink it is
574: [11:27:11] <Py2erlyk> unless it's changed in the last year and a half
575: [11:29:46] <r3v3rb> ah, ok
576: [11:31:41] <Py2erlyk> groupedlist, at least from what I remember, is a way of taking a list, and grouping it. But as the doc says, it's for display in templates.
577: [11:31:59] <Py2erlyk> ie, I want a list of posts in my blog by month
578: [11:32:07] <Py2erlyk> (for this year)
579: [11:32:21] <Py2erlyk> so I can get all posts from this year, that's easy enough
580: [11:32:29] <Py2erlyk> then I used grouped list to group by month
581: [11:33:24] <Py2erlyk> and my list goes: <% loop PostsByMonth %>$Month<% loop Children %><a href="$Link">$Title</a><% end_loop %><% end_loop %>
582: [11:33:42] <Py2erlyk> as an example.
583: [11:34:14] <Py2erlyk> (probably working best with <style>a{display:block}</style> :P)
584: [11:34:22] <Py2erlyk> so grouped list
585: [11:34:27] <Py2erlyk> you tell it which field to group by
586: [11:34:34] <Py2erlyk> that field is then in your outer loop.
587: [11:34:45] <Py2erlyk> $PostDate.Month or something perhaps.
588: [11:35:15] <Py2erlyk> then loop Children (or whatever you gave grouped list as the second parameter, but defaults to children) to get your actual objects (in that section of the group)
589: [11:35:34] <Py2erlyk> where as an SQL group by collapses all rows in to distinct values.
590: [11:35:37] <Py2erlyk> for that column.
591: [11:36:28] <Py2erlyk> so Select * from Posts group by Month(PostDate) would give you 12 results (presumably, if we're in december and you've posted in each month of the year).
592: [11:37:16] <Py2erlyk> Posts::get()->group('PostDate') gives you the structure I've just described. ie. All results as normal, but divided up into their respective groups.
593: [11:37:28] <Py2erlyk> ie, all posts for Jan instead of just one row.
594: [11:37:37] <Py2erlyk> it saves you a second query... in a way.
595: [11:37:51] <Py2erlyk> or rather, an query per month, as such.
596: [11:38:04] <Py2erlyk> so it's also important to recognise the differences in DataList
597: [11:38:10] <Py2erlyk> methods to do with grouping
598: [11:38:29] <Py2erlyk> one puts a GROUP BY on your query, the other returns a GroupedList
599: [11:38:41] <Py2erlyk> so be careful r3v3rb !
600: [11:39:18] <Py2erlyk> I certainly do not remember which is which from the top of my head.
601: [11:39:57] <r3v3rb> aye, Think I’ll create a new category class that the client can use rather than expect them to understand that the site - will lift data from the children ;)
602: [11:41:44] <Py2erlyk> mm, yes. GroupedList GroupedBy returns ArrayList, GroupBy adds the GROUP BY caluse.
603: [11:42:03] <nontgor> Py2erlyk: I was given a project to fix last year where the programmers had no clue about database joins. They achieved the same functionality by looping through tables checking the join condition. Best I was was 70,000 database queries to render a '1' character for number of notifications :)
604: [11:42:28] <Py2erlyk> oh wow lol nontgor
605: [11:44:36] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
606: [11:46:49] <Py2erlyk> aww fuck wait no, neither add a group by clause
607: [11:46:50] <Py2erlyk> fffffff
608: [11:46:59] <Py2erlyk> ambiguious methods, how I hate yous o.
609: [11:47:00] <Py2erlyk> so*
610: [11:48:54] <nontgor> Py2erlyk: *even better* there were some 404s on the page, and each of those rendered the notification as well.... :)
611: [11:52:01] <Py2erlyk> lulz
612: [11:52:31] <Py2erlyk> sleep(2);
613: [11:52:32] <Py2erlyk> oh yup
614: [11:54:37] <nontgor> mmm, not used 2.4 before. Where is the I will 403 everything on all your sites flag?
615: [11:54:47] <nontgor> even a simple virtual host serving static files is failing
616: [11:55:04] <Py2erlyk> huh?
617: [11:55:10] <Py2erlyk> I'm sure you used 2.4
618: [11:55:24] <Py2erlyk> or do you mean apache 2.4?
619: [11:55:27] <nontgor> y
620: [11:55:30] <Py2erlyk> ah
621: [11:55:41] <Py2erlyk> most of the stuff is in the same place iirc.
622: [11:55:51] <Py2erlyk> just... slightly different config options
623: [11:56:06] <nontgor> I use nginx in prod and I've only just updated my laptop from 12.04 to 14.04 so this is my first fight with the new apache
624: [11:56:18] <Py2erlyk> gawd
625: [11:56:28] <Py2erlyk> be thankful, I'm still stuck on 10.04
626: [11:56:45] <Copperis> nontgor, maybe apache doesn't have permissions to access the files
627: [11:57:05] <Py2erlyk> although, I'd never put ubuntu on my desktop machine
628: [11:57:19] <nontgor> I'm used to Debian based distros
629: [11:57:32] * lerni_ has joined #silverstripe
630: [11:57:33] <Py2erlyk> I'm trying to upgrade our servers, but I cannot find out where the hell it auths with the windows domain :<
631: [11:57:48] <nontgor> error: AH01630: client denied by server configuration: /home/gordon/work/git/weboftalent/wibble/www/
632: [11:57:57] <Py2erlyk> nontgor: yeah, but in that case I'd still opt for debian, rather than cononical's version of *
633: [11:57:57] <nontgor> windows, ick
634: [11:58:27] <Py2erlyk> sad fact is that debian moves too slow for me though, so I don't mind putting ubuntu on servers.
635: [11:58:50] <Py2erlyk> theoretically I'd still prefer debian though I guess.
636: [11:58:52] <nontgor> I'll give Mint a whirl on my spare partition, I always keep 2 on the go at the same time just in case I f**k one up as happened installing 14.04
637: [11:58:54] * Py2erlyk shrugs
638: [11:59:03] <Py2erlyk> f'n politics man... why does it even ever what.
639: [11:59:28] <Py2erlyk> nontgor: did you install, or did you dist-upgrade or whatever that command is?
640: [12:00:01] <nontgor> I dist upgraded, but it was running with the wrong old kernel
641: [12:00:10] <Py2erlyk> heh
642: [12:00:14] <nontgor> I tried burning coasters but seems my coaster maker is borked
643: [12:00:31] <Py2erlyk> I want to dist-upgrade, but... motherfucking 5 years in 1 go... probably not going to go too well for me.
644: [12:00:39] * lerni__ has joined #silverstripe
645: [12:00:49] <nontgor> then I put the install onto a USB stick to discover that the stick goes into read only mode randomly, I couldn't boot the normal install CD
646: [12:00:53] <Py2erlyk> fuck'n stupid iso based distros. I mean, ffs, it's 2014.
647: [12:01:04] <Py2erlyk> heh rude
648: [12:01:06] <nontgor> I eventually went with the mini iso, and net booted
649: [12:01:28] <nontgor> of course the only choice of Thai archive was down...
650: [12:02:18] <Py2erlyk> I wanna upgrade my raspberry pi, but there's no point because they're still in 3.12 or something :<
651: [12:02:26] <nontgor> it installed, I rebooted and 'kernel cannot be found' - so I was in an even worse position :)
652: [12:02:38] <Py2erlyk> heh
653: [12:02:41] <nontgor> Then I realised the problem must be update-grub command, so I ran grub customizer and my woes were fixed
654: [12:02:47] * lerni_ quit (Ping timeout: 245 seconds)
655: [12:03:04] <nontgor> installed Cinnamon, window manager used by Mint, and things are running nicely now
656: [12:03:09] <Py2erlyk> oh, so the distro updated fine, it was just grub being bad at life that caused the issue?
657: [12:03:27] <nontgor> yeah I think so
658: [12:03:30] <Py2erlyk> oh cool
659: [12:03:39] <Py2erlyk> hmm, that instills me aith a bit more confidience
660: [12:03:44] <nontgor> dist-upgrade kept erroring saying the kernel was too old for the fancy graphics
661: [12:04:01] <Py2erlyk> although... I still gotta finish moving the stuff on the dev server that's in production to the actual damn live server.
662: [12:04:23] <nontgor> https://launchpad.net/~danielrichter2007/+archive/ubuntu/grub-customizer
663: [12:04:26] <Py2erlyk> nontgor: wait... so dist-upgrade doesn't upgrade the kernel?? dafaaaaaaq?
664: [12:04:36] <nontgor> it installed the new one
665: [12:05:17] <nontgor> something was hosed with grub, as a reference to the new kernel was in the grub config file, but didn't show in the actual boot menu presented to me
666: [12:05:18] * lerni__ quit (Ping timeout: 265 seconds)
667: [12:05:48] <Py2erlyk> was it a grub => grub2 issue?
668: [12:06:00] <Py2erlyk> hmm, nah I imagine 12.04 should have been on modern grub
669: [12:06:42] * MK_away quit (Remote host closed the connection)
670: [12:09:59] * micmania1 has joined #silverstripe
671: [12:12:28] <Py2erlyk> not in bed micmania1 ?
672: [12:14:33] * micmania1 quit (Ping timeout: 252 seconds)
673: [12:18:58] <Py2erlyk> lulz, left logged in at work.
674: [12:22:39] * lerni_ has joined #silverstripe
675: [12:26:44] <nontgor> Py2erlyk: It appears only 2 directories are by default whitelisted for Apache use
676: [12:27:19] <nontgor> see http://stackoverflow.com/questions/22996652/install-apache-2-4-7-on-ubuntu-14-04
677: [12:39:44] * r_hector quit (Quit: Leaving.)
678: [12:48:03] * NobrainerWeb has joined #silverstripe
679: [12:49:54] <NobrainerWeb> Hi guys :-)
680: [12:49:57] <wmk> hi NobrainerWeb
681: [12:50:04] <NobrainerWeb> Hi werner
682: [12:54:07] <wmk> omg, why would a client want the developed website on USB?
683: [12:54:12] <wmk> http://stackoverflow.com/questions/28087596/recommended-way-of-migrating-silverstripe-from-dev-to-live
684: [12:55:47] <NobrainerWeb> I would like to set a static variable via config.yml and then print the value from template. Why can’t i just do class Page { private static $VendorName; } and in yml Page: VendorName: ‘Nobrainer Web’ and in tpl $VendorName?
685: [12:57:00] <wmk> you need $this->stat()->Vendorname in your class to access the yml file, or $this->config()->Vendorname
686: [12:57:14] <wmk> dunno if there is an automatic wrapper for template
687: [12:57:34] <wmk> should be easy as an DataExtension
688: [12:57:36] <r3v3rb> ugh sometimes I think I’m going mad
689: [12:58:40] * r3v3rb needs to add div.row around every two children in the loop - multipleOf is good but starts on row two, and modulus does the same
690: [12:58:54] <NobrainerWeb> wmk: so i need a getter method on page like VendorName() { return $this->stat()->VendorName } or?
691: [12:59:06] <wmk> yup
692: [12:59:10] <NobrainerWeb> ok thx buddy
693: [12:59:53] <wmk> hmm....
694: [13:00:09] <wmk> only works on the class where $VendorName is defined
695: [13:01:27] <wmk> calling it directly via Config::inst().... would be more fool proof i guess
696: [13:02:23] <NobrainerWeb> $this->stat()->VendorName = Missing argument 1 for Object::stat()
697: [13:02:44] <wmk> then it was $this->stat('VendorName')
698: [13:03:06] <wmk> would have to look it upu
699: [13:03:28] <wmk> http://api.silverstripe.org/3.1/class-Object.html#_stat
700: [13:04:17] <wmk> which is just a shortcode for Config::inst()
701: [13:06:16] <NobrainerWeb> return $this->stat('VendorName'); works on page, now to move it to SiteConfig extension
702: [13:06:35] <wmk> good idea ;)
703: [13:13:45] <NobrainerWeb> For SiteConfig this worked: return Config::inst()->get('SiteConfig', 'VendorURL');
704: [13:13:49] <NobrainerWeb> Thx Werner
705: [13:15:50] <wmk> in an extension it should be $this->owner->stat() which does basically the same
706: [13:16:26] <NobrainerWeb> ahh yes ofc
707: [13:17:23] <Py2erlyk> wmk: NobrainerWeb there is no wrapper for config, afaik.
708: [13:17:25] * headtrip has joined #silverstripe
709: [13:17:42] <Py2erlyk> and you can't $blah in template because it's not a value on that page, it's a config setting.
710: [13:17:59] <Py2erlyk> ie, not a member property, but a class (static) one.
711: [13:18:06] <NobrainerWeb> return $this->owner->stat('VendorText'); seems to work
712: [13:18:12] <Py2erlyk> :>
713: [13:18:27] <Py2erlyk> $this->owner->config()->VendorText probably better.
714: [13:18:39] <NobrainerWeb> and i am using $SiteConfig.Vendorname in tpl
715: [13:18:52] * UndefinedOffset has joined #silverstripe
716: [13:19:17] <Py2erlyk> regardless it's still not a property on the instance, but rather of the class.
717: [13:19:27] <Py2erlyk> a scope thing, in a way.
718: [13:21:39] <NobrainerWeb> Py2erlyk: I’m just a frontender, i don’t understand :-) what is it you are recommending i do?
719: [13:23:37] <Py2erlyk> NobrainerWeb: it's kinda hard to explain, but I'm trying to highlight the difference between what bascially amounts to why private static $db .. works when you $this->blah and why private static $somethingelse does not.
720: [13:24:29] <Py2erlyk> and also that I'd probably choose to use $this->owner->config()->VendorName instead of $this->owner->stat('VendorName')
721: [13:24:52] <Py2erlyk> in reality it probably doesn't matter all that much (at all), but just keeping up to date I guess.
722: [13:24:56] <NobrainerWeb> Py2erlyk: ok, that last part i do understand :-)
723: [13:25:19] <Py2erlyk> stat is a left over from v2.4 days.
724: [13:25:52] <Py2erlyk> I think these days it does just check config, but so then it's probably better to go direct to the config :)
725: [13:27:45] <NobrainerWeb> return $this->owner->config()->VendorName; works, so i’m happy :-)
726: [13:28:57] <Py2erlyk> http://stackoverflow.com/questions/28087596/recommended-way-of-migrating-silverstripe-from-dev-to-live/28089970#28089970
727: [13:29:02] <Py2erlyk> xD
728: [13:29:08] <Py2erlyk> NobrainerWeb: I'm glad :)
729: [13:29:52] <wmk> NobrainerWeb, just a frontender releasing modules for ss?
730: [13:30:17] <NobrainerWeb> Yes! hacky ones! :-)
731: [13:30:21] <wmk> Py2erlyk, $this->stat() is just a wrapper for $this->config()
732: [13:30:56] <Py2erlyk> wmk: yeah, I guessed as much :)
733: [13:31:22] <NobrainerWeb> Btw i like this one: https://github.com/mediabeastnz/silverstripe-flat-admin but name should have been flatmin :-)
734: [13:31:42] <wmk> Py2erlyk, why... why would my customer want a ss page on USB stick?
735: [13:31:59] <Py2erlyk> wow, the silverstripe tag on stackexchange looks more like a list of 'whats wrong with uncle cheese modules'
736: [13:32:06] <NobrainerWeb> haha
737: [13:32:08] <wmk> Py2erlyk, lol
738: [13:32:09] <Py2erlyk> wmk: I think he means the whole deal.
739: [13:32:18] <Py2erlyk> as in "give me all the things, I'll set up my own host, etc"
740: [13:32:18] <wmk> the whole deal=
741: [13:32:57] <Py2erlyk> Some clients do this in fear of their developer holding their site to ransom further down the track
742: [13:33:03] <Py2erlyk> or disappearing when they want updates done, etc.
743: [13:33:04] <wmk> NobrainerWeb, wow, css change for admin
744: [13:33:24] <Py2erlyk> no files means cannot give to another developer, etc. So they tend to want the whole package.
745: [13:33:41] <wmk> Py2erlyk, but i could deploy on their server
746: [13:33:49] <wmk> so they have the files if they want
747: [13:33:49] <Py2erlyk> wmk: yeah, but sometimes no.
748: [13:34:04] <Py2erlyk> I once had a client on a windows server inside their own heavily firewalled domain.
749: [13:34:08] <Py2erlyk> I had no access.
750: [13:34:16] <wmk> i was just about to tell him to checksum his files (for security reasons)
751: [13:34:27] <Py2erlyk> It's annoying but you basically end up teaching them to troubleshoot deployment issues over the phone for systems you're unfamiliar with.
752: [13:34:38] <Py2erlyk> it will probably happen to this guy too... but the short answer is "yes."
753: [13:34:50] <wmk> this was your answer?
754: [13:34:59] <Py2erlyk> I'm answering the question, not warning about the future ;P
755: [13:35:03] <Py2erlyk> wmk: yup, hehe.
756: [13:35:10] <wmk> ;)
757: [13:35:39] <wmk> you just started on stackoverflow?
758: [13:35:41] <Py2erlyk> One could go on and on about standard precautions in deleting your own database details before handing over, ensuring similar configuration, etc.
759: [13:36:18] <Py2erlyk> but short answer is yes :)
760: [13:36:30] <Py2erlyk> wmk: nah. I just but in where I can.
761: [13:36:37] <Py2erlyk> not a registered account.
762: [13:39:15] <Py2erlyk> wtf, 3.0 still uses Behaviour.register? http://stackoverflow.com/questions/11994174/how-to-use-javascript-in-silverstripe-cms
763: [13:39:19] <Py2erlyk> o.0
764: [13:39:25] <Py2erlyk> I thought it was all entwine by that point
765: [13:40:28] * R\w\C has joined #silverstripe
766: [13:40:53] <R\w\C> hey guys the search plugin for silverstripe - is it able to search dataobjects?
767: [13:42:45] <wmk> R\w\C, if you configure it it will
768: [13:42:50] * R\w\C quit (Client Quit)
769: [13:43:00] <wmk> eh
770: [13:43:54] * actioussan has joined #silverstripe
771: [13:44:38] <Py2erlyk> search is a plugin?
772: [13:45:22] <actioussan> Hello, does anyone know, if it's normal that just created pages are being saved in SiteTree_Live instead of SiteTree
773: [13:46:58] <Py2erlyk> No, that's not normal.
774: [13:47:27] <actioussan> Do you know why that's happening?
775: [13:47:47] <Py2erlyk> Nope.
776: [13:47:49] <Py2erlyk> sorry.
777: [13:48:29] <r3v3rb> anyone want a oneplus one invite?
778: [13:48:35] <Py2erlyk> a what?
779: [13:48:50] <r3v3rb> http://oneplus.com
780: [13:49:06] <r3v3rb> https://oneplus.net/uk/one
781: [13:49:08] <r3v3rb> even!
782: [13:49:09] <r3v3rb> lol
783: [13:49:27] <Py2erlyk> Oh, I was gonna say.
784: [13:49:46] <r3v3rb> i already have one but just got another invite sent ;)
785: [13:50:12] <Py2erlyk> r3v3rb: what does the invite get me?
786: [13:50:22] <r3v3rb> ability to buy the 64gb phone
787: [13:50:30] <r3v3rb> can’t buy without invite
788: [13:50:46] <Py2erlyk> how much is it?
789: [13:51:02] <r3v3rb> £269 + delivery if you want it quick
790: [13:51:13] <Py2erlyk> Nah, I'll pass.
791: [13:51:15] <Py2erlyk> thanks.
792: [13:53:51] <r3v3rb> No worries
793: [13:53:59] <r3v3rb> I’ll put it up on their forum
794: [13:57:28] <Py2erlyk> kinglozzer: what about ye?
795: [13:57:35] <kinglozzer> wys?
796: [13:57:40] <Py2erlyk> Otterpocket: ?
797: [13:58:02] <kinglozzer> Oh the phone? Thanks but I just bought one ><
798: [13:58:24] <Py2erlyk> a 1+1=window?
799: [13:58:48] <kinglozzer> Huh? :P
800: [13:59:22] * headtrip quit (Quit: (null))
801: [14:06:19] * muskie9 has joined #silverstripe
802: [14:07:52] * R\w\C has joined #silverstripe
803: [14:08:02] <R\w\C> Ok Thanks wmk
804: [14:08:15] <wmk> ;)
805: [14:08:28] <R\w\C> just wanted to know if its possible. i found a lot of posts directing me to add my own code to the controller
806: [14:08:36] <R\w\C> to enable it
807: [14:08:46] <R\w\C> i guess i just gotta go through the documentation
808: [14:09:18] <r3v3rb> kinglozzer: battery life is fantastic - 36hrs and still @ 52% - but wifi and cellular data only on when needed tbh
809: [14:09:37] <R\w\C> r3v3rb what is this?
810: [14:09:51] <r3v3rb> no point having them drain when i’m sat in front of mac R\w\C OnePlus One phone
811: [14:10:31] <r3v3rb> why is <% loop children %> showing direct and indirect children grrr
812: [14:10:45] <r3v3rb> ie children and grandchildren
813: [14:11:05] <kinglozzer> r3v3rb: Awesome, I got an xperia z3 in the end
814: [14:11:13] <kinglozzer> Battery life sounds about the same
815: [14:11:23] <kinglozzer> Not really sure why I didn't go for the oneplus
816: [14:11:28] <r3v3rb> kinglozzer: that was my other choice
817: [14:11:53] <kinglozzer> r3v3rb: Is it waterproof ?
818: [14:11:55] <r3v3rb> but I switched to 3 sim only
819: [14:11:57] <kinglozzer> That might've been it
820: [14:12:05] <r3v3rb> kinglozzer: nope, but i cant swim so…
821: [14:12:25] <kinglozzer> I haven't tested how waterproof mine is... :P
822: [14:12:33] <kinglozzer> I don't dare D:
823: [14:13:41] <r3v3rb> hah, kinda pointless then :P
824: [14:20:59] <R\w\C> When is SilverStripe CEO visiting london again?
825: [14:21:37] * R\w\C quit (Changing host)
826: [14:21:37] * R\w\C has joined #silverstripe
827: [14:21:51] * catcher has joined #silverstripe
828: [14:22:27] <r3v3rb> loop <- I hate you!
829: [14:22:54] <r3v3rb> kinglozzer: drop it in a coffee with 3 sugars :D that’ll test it out
830: [14:23:06] <elgabbu> hi anyone here knows about redirector pages?
831: [14:23:20] <kinglozzer> R\w\C: Feb
832: [14:23:25] <catcher> -ss-log- ss-log's future existence is no longer certain.
833: [14:23:26] <catcher> Oh no!
834: [14:23:27] <R\w\C> kinglozzer really???
835: [14:23:29] * Otterpocket quit (Ping timeout: 272 seconds)
836: [14:23:45] <kinglozzer> r3v3rb: Apparently it should be fine as long as I run it under water straight after
837: [14:23:52] <kinglozzer> Still not gonna test that theory :P
838: [14:23:58] <kinglozzer> R\w\C: Yep, for PHPConf UK
839: [14:24:06] <R\w\C> thats aweosme. it was such a good visit from him last year i will confess i did have a few too many beers and kept interrupting him
840: [14:24:36] <R\w\C> asking every question that sprung to mind
841: [14:24:45] <r3v3rb> doesn’t that apply to most low voltage electronics though - my son tipped my coffee all over my usb keyboard - so I disconnected, ran it under clean water supply and dried and its fine
842: [14:25:11] <R\w\C> like how many cats and dogs he owns and what their names were and very loosely silvertripe related questions :|
843: [14:25:13] <kinglozzer> r3v3rb: If it was switched off when you dropped it in it might survive
844: [14:25:22] <r3v3rb> but why oh why does my loop children, pickup the siblings of the children in question
845: [14:25:33] <r3v3rb> kinglozzer: nah, i was working on it
846: [14:25:47] <r3v3rb> he walked past, knocked the cup and over it went
847: [14:25:49] <kinglozzer> r3v3rb: I mean phones - you can sometimes get away with it!
848: [14:25:58] <r3v3rb> kinglozzer: lol, oh yeh
849: [14:26:09] <elgabbu> i am creating a redirector page with the following code : http://sspaste.com/paste/show/54c10838b1b90
850: [14:26:46] * Shrike_Finland quit (Quit: Leaving.)
851: [14:27:14] <elgabbu> you see anything flawed that would case the redirection not to happen
852: [14:27:40] <r3v3rb> arghhhh, poxy sitetree hadn’t updated
853: [14:29:01] <Eliseth> I need some input
854: [14:29:14] <Eliseth> I need to create the following:
855: [14:30:12] <Eliseth> Warranty management. Members can submit a warranty form. Each entry has a number of fields
856: [14:30:32] <Eliseth> Most fields are just text fields in $db
857: [14:30:34] <catcher> elgabbu, may need to publish it. If that doesn't do it, give it a look in the CMS
858: [14:31:08] <Eliseth> But also productgroup (a list which much be manageable through admin)
859: [14:31:36] <Eliseth> And product (a list that must be manageable through admin as well, and always has_one productgroup)
860: [14:32:09] <Eliseth> And I'm just a bit lost on how to (logically) solve this in admin
861: [14:32:38] <Eliseth> Ideally I'd want a button with "Warranties" which shows all entries, and tabs to manage toe product groups and product list
862: [14:33:22] <Eliseth> The submitted warranty can only have one productgroup and product, based on the lists admin has entered in admin
863: [14:36:02] <Eliseth> I can't get my head around it on how to set that up logically
864: [14:41:47] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
865: [14:42:33] <catcher> Eliseth, you're asking about setting up the CMS interfaces?
866: [14:42:40] <Eliseth> Yes
867: [14:43:09] <catcher> Eliseth, make a custom modelAdmin, and manage WarrantySubmissions, ProductGroups, and Products.
868: [14:43:33] <catcher> Gridfields for each.
869: [14:43:36] <elgabbu> catcher yeah not being published was the issue
870: [14:43:50] <catcher> elgabbu, cool
871: [14:45:19] * _hschillig1 has joined #silverstripe
872: [14:45:52] <_hschillig1> Is there a way to do an if statement on one line in a template file? <% if $step == 1 %>curr<% end_if %> I have $step equal to one and it doesn't seem to print curr.. This is the entire line: <span class="step <% if $step == 1 %>curr<% end_if %>">1</span>
873: [14:47:11] <lerni_> _hschillig1 afaik template just needs one =
874: [14:47:17] <catcher> nope, ==
875: [14:47:22] <catcher> You need to quote your number
876: [14:47:26] <catcher> <% if $step == "1" %>
877: [14:48:33] <Eliseth> catcher: Yes, any online tutorial on how to do that? (with the multiple tabs thingy) :D
878: [14:48:41] <_hschillig1> yeah according to this: http://doc.silverstripe.org/en/developer_guides/templates/syntax/ you need ==. the quotes didnt fix it.. I'm passing $step=1 into the include file.. I print $step inside an h1 tag and it prints 1 just fine. However, it doesn't return true on that if statement. even with the quotes.
879: [14:48:59] <catcher> Eliseth, http://doc.silverstripe.org/en/developer_guides/customising_the_admin_interface/modeladmin
880: [14:49:25] <_hschillig1> I tried single and double quotes as well.
881: [14:49:28] <Eliseth> Right, should've found that myself
882: [14:49:33] <catcher> Eliseth, np
883: [14:49:37] <_hschillig1> Crap...
884: [14:49:42] <_hschillig1> I'm forgetting to capitalize the step variable.
885: [14:50:18] <_hschillig1> Thank you! Sorry about that. Silly mistake..
886: [14:50:19] <catcher> _hschillig1, $step wasn't 1 after all. :)
887: [14:50:51] <wmk> was $Step inside of $step?
888: [14:50:58] <wmk> s/inside/instead
889: [14:51:46] <wmk> the new docs look really good... php syntax highlighting would be great
890: [14:52:35] <catcher> wmk, I see syntax highlighting, no?
891: [14:52:52] <lerni_> catcher == seems right but = works as well - does it?
892: [14:52:53] <_hschillig1> Yes.. it was suppose to be $Step.. I forgot I capitalized it. D:
893: [14:53:25] <wmk> Py2erlyk, catcher this noscript plugin drives me nuts...
894: [14:53:43] <wmk> but why is syntax highlighting js not on silverstripe.org?
895: [14:55:26] <catcher> lerni_, yes it does, but I wouldn't count on it sticking around forever..
896: [14:56:04] <wmk> lerni_, one = was 2.4 and compatibility mode, == is 3.x syntax. use this for new templates
897: [14:58:38] <lerni_> oh have quite a few 2.x templates running with 3.x :)
898: [15:00:00] * mobiusnz quit (Quit: Leaving.)
899: [15:00:32] * mobiusnz has joined #silverstripe
900: [15:02:02] <catcher> lerni_, your weekend just got booked!
901: [15:02:11] * NobrainerWeb quit (Quit: NobrainerWeb)
902: [15:02:51] <lerni_> just never ever update :)
903: [15:04:25] * Werner_2_ has joined #silverstripe
904: [15:05:00] * wmk quit (Read error: No route to host)
905: [15:12:08] * Werner_2_ is now known as wmk
906: [15:12:44] <wmk> lerni_, it will work for 3.1. sites, could make troubles in future.
907: [15:13:06] <wmk> but i think it will be a major upgrade with much work anyway, like 2.4 -> 3.x
908: [15:15:36] <lerni_> yeh I see - but as much as 2.4 -> 3 I expect with ss4
909: [15:18:21] <lerni_> wmk: I *hope* 3.2 'll be more dropin alike
910: [15:18:38] <wmk> it's allowed to hope
911: [15:19:07] <lerni_> :)
912: [15:35:57] * Error404NotFound has joined #silverstripe
913: [15:42:01] <zauberfisch> lerni_: it will be
914: [15:42:31] <zauberfisch> as silverstripe now follows semantic versioning, all major api changes have been moved to 4
915: [15:43:11] <zauberfisch> 3.x releases should now be mostly compatible
916: [15:43:22] <zauberfisch> 1 major problem I see though are modules
917: [15:43:44] <zauberfisch> most modules have a composer file that says it requires 3.x or 3.1.x or something like this
918: [15:44:07] <zauberfisch> which means they work with ss 3.2 but composer wont instlal them
919: [15:44:25] <lerni_> I was just about to ask if they need much more than a updated composer.json
920: [15:44:43] <zauberfisch> (same for dev-master, which is now ss 4, practically no module can be instsalled with master right now)
921: [15:45:01] <muskie9> can you force ssl from _ss_environment.php
922: [15:45:09] * Shrike_Finland has joined #silverstripe
923: [15:45:11] <lerni_> thx zauber for clariification
924: [15:45:14] * Shrike_Finland quit (Read error: Connection reset by peer)
925: [15:45:21] * Shrike_Finland has joined #silverstripe
926: [15:45:25] <zauberfisch> lerni_: no, I am using 3.x-dev (which is 3.2) and so far I haven't found any breaking changes
927: [15:45:57] <zauberfisch> muskie9: well, yes. but not with the silverstripe method
928: [15:46:02] <zauberfisch> you have to do it by hand
929: [15:46:12] <zauberfisch> I personally would go with using .htaccess though
930: [15:46:46] <muskie9> makes sense... looking to force SSL on production server, but not dev/testing
931: [15:47:07] <zauberfisch> make a rewrite condition to match the URL
932: [15:47:13] <wmk> muskie9, if Director::isLive() -> forcessl
933: [15:47:14] <zauberfisch> so only force ssl if its a certain domain
934: [15:47:48] <muskie9> ya, was gonna check for the domain and that it's live mode for force ssl, otherwise it wouldn't
935: [15:48:08] <wmk> muskie9, you still have mysite/_config.php for doing this stuff
936: [15:48:11] <Eliseth> ok, got my modeladmin working more or less
937: [15:48:26] <muskie9> yup, just didn't know if there was an _ss_evn option
938: [15:48:33] <Eliseth> I have a product, with productcolor which is managed seperately
939: [15:48:35] <muskie9> thanks wmk zauberfisch
940: [15:48:35] <Eliseth> now
941: [15:49:00] <Eliseth> instead of saving the relation when editing the product, I want to save the value of productcolor
942: [15:50:31] <Eliseth> so product has a regular varchar productcolor, and in admin I display the colors for that field using $productColorList = ProductColor::get()->map()->toArray(); and DropdownField::create('ProductColor', 'Product Color')->setSource($productColorList);
943: [15:50:47] <Eliseth> Unfortunately, it niow saves the ID of productColor, not the name
944: [15:56:54] * r3v3rb quit (Quit: r3v3rb)
945: [16:01:13] <wmk> Eliseth, why? if it's a relation just call $this->ProductColor()->Title
946: [16:02:02] <Eliseth> Because I don't want it to be a relation
947: [16:02:26] <wmk> then do ->map('Title','Title') instead
948: [16:02:30] <wmk> http://api.silverstripe.org/3.1/class-DataList.html#_map
949: [16:04:28] <Eliseth> Aha! That's it!
950: [16:06:44] <Eliseth> thanks
951: [16:10:42] * Shrike_Finland quit (Quit: Leaving.)
952: [16:13:37] <Py2erlyk> wmk: what is making you nuts about it?
953: [16:13:48] <Py2erlyk> just gotta get a good set of white/black lists set up.
954: [16:13:58] <Py2erlyk> once that's done, it's minimal clicks to get what you want
955: [16:14:24] <Py2erlyk> also though, experience helps. Eventually you sorta learn domains that cdn things like highlighters, etc.
956: [16:17:37] <Py2erlyk> :)
957: [16:17:55] * lerni_ quit (Remote host closed the connection)
958: [16:18:27] <Py2erlyk> kinglozzer: phpuk too spennies and too far away and sigh.
959: [16:18:36] <Py2erlyk> could be fun though since SS is making an appearance.
960: [16:20:46] <catcher> I never understood the SS forceSSL thing. Why go all the way to php for a 301?
961: [16:27:15] * arnhoe quit ()
962: [16:28:27] <wmk> Py2erlyk, well, if e.g. code for php syntax highlighting is on a google domain - get to get used to that
963: [16:31:19] <Py2erlyk> wmk: yeah, you can whitelist things like googleusercontent.com
964: [16:31:27] <Py2erlyk> although I don't because I'm not 100% on what it contains.
965: [16:32:03] <Py2erlyk> catcher: because some people dunno serverconf. It's a leftover from well old stuff I think.
966: [16:32:47] <catcher> Py2erlyk, makes sense. Probably available on some other framework, so people whined.
967: [16:33:44] <Py2erlyk> probably. Similar ilk to folk who get all wound up by SS all sitting under webroot
968: [16:33:55] <catcher> Eliseth, why do you want a copy of a field instead of a relationship?
969: [16:34:04] * jenniferaslan has joined #silverstripe
970: [16:35:05] <Eliseth> catcher: because the relations change over time. Old ones get deleted, new ones created. On the order the original value must be kept
971: [16:35:24] <catcher> Eliseth, makes sense
972: [16:35:29] <Eliseth> Not order, warranty
973: [16:35:33] <Py2erlyk> I think swipestripe does all this stuff
974: [16:35:40] <Py2erlyk> oh, not an ecom thing. right.
975: [16:35:56] <Eliseth> People can fill in the warranty form for products that exists today, but might not be in a year
976: [16:36:09] <Eliseth> *exists = being actively sold
977: [16:36:09] <catcher> how is swipestripe these days?
978: [16:36:27] <Eliseth> Well, I'm a total noob when it comes to judging that
979: [16:36:36] <Eliseth> But we've created a few ecom sites based on it now
980: [16:36:38] <Py2erlyk> you could do some really tricky shit with query generator and stuff to preserve old records
981: [16:36:47] <Py2erlyk> but not really worth it.
982: [16:37:48] <Eliseth> Py2erlyk: I figured there was another solution, but in this case not needed. The relations are there to provide an easy way to fill out the form. After that they're just records that cannot be changed.
983: [16:42:41] <Eliseth> I think swipestripe is a good foundation, it has solid handling of (simple) products, attributes/options and cart/order management
984: [16:43:17] <Eliseth> But we had to make loads of adjustments to facilitate configurable products iirc
985: [16:43:19] * jcwacky has joined #silverstripe
986: [16:44:46] <jcwacky> I’m just trying to add a validator to a FileField in a frontend Form. The 3.0 docs mention Upload_Validator: http://doc.silverstripe.org/en/3.0/topics/form-validation#html5-metadata
987: [16:45:02] <jcwacky> But there seems to be issues with the example code, and it’s been removed in the 3.1 docs.
988: [16:45:19] * Copperis quit (Quit: Leaving)
989: [16:45:21] <jcwacky> Just want to restrict file size and extensions.
990: [16:45:29] <jcwacky> Anyone able to assist? :)
991: [16:53:08] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
992: [16:54:41] <wmk> jcwacky, can't you just pass it as param to uploadfield / filefield?
993: [16:56:29] <wmk> http://api.silverstripe.org/3.1/class-UploadField.html#_setAllowedExtensions
994: [16:57:29] <wmk> and max file size via ini_set()
995: [16:58:50] <wmk> there is also http://api.silverstripe.org/3.1/class-Upload_Validator.html you can use
996: [16:59:10] <wmk> jcwacky, ^^^^
997: [16:59:27] * R\w\C quit (Ping timeout: 252 seconds)
998: [17:00:00] <jcwacky> Yeh, thanks. Been playing with that. Just can’t quite get my head around it.
999: [17:00:30] <jcwacky> i.e. what should be in the main MyForm() function, and what should be in doMyForm().
1000: [17:02:19] <jcwacky> I have this: http://www.sspaste.com/paste/show/54c12cdf194a4
1001: [17:02:35] <wmk> afaik you can pass the Upload_Validator to the FileField / UploadField
1002: [17:02:44] <wmk> so the field handles it for you
1003: [17:03:37] <wmk> jcwacky, looks good, does it work?
1004: [17:03:51] <jcwacky> No, :( it lets me upload a PDF.
1005: [17:03:58] <wmk> ouch
1006: [17:04:10] <muskie9> jcwacky I've been meaning to check this out by UncleCheese... should do a lot of what you're looking for including size: https://github.com/unclecheese/silverstripe-dropzone
1007: [17:05:18] <jcwacky> muskie9: Ooooooo!
1008: [17:05:26] <wmk> muskie9, looks sexy
1009: [17:05:29] * lerni has joined #silverstripe
1010: [17:05:57] <muskie9> waiting for my next project to start so I can try it :D
1011: [17:06:51] <jcwacky> I’ll have a play just now and let you know how it goes!
1012: [17:07:04] * benjhocking quit (Quit: Leaving.)
1013: [17:07:42] * benjhocking has joined #silverstripe
1014: [17:09:00] * masnun has joined #silverstripe
1015: [17:11:13] * lerni quit (Remote host closed the connection)
1016: [17:17:52] * lerni has joined #silverstripe
1017: [17:18:27] * lerni quit (Remote host closed the connection)
1018: [17:20:31] * wmk quit (Ping timeout: 255 seconds)
1019: [17:23:41] * DimiStripe quit (Quit: DimiStripe)
1020: [17:23:52] * masnun is now known as masnun|away
1021: [17:25:27] * masnun|away is now known as masnun
1022: [17:30:13] * kinglozzer quit ()
1023: [17:31:21] <jcwacky> Hmm, this is odd. I jsut can’t get Dropzone to use it’s template. It’s just displaying as a FileField...
1024: [17:36:27] <Py2erlyk> hoooooome
1025: [17:36:28] * Py2erlyk quit ()
1026: [18:10:01] * _hschillig1 has left #silverstripe
1027: [18:13:24] * gelignite has joined #silverstripe
1028: [18:14:53] * _hschillig1 has joined #silverstripe
1029: [18:15:25] <_hschillig1> Silverstripe has a decimal data type, but not a field type? I'm asking for a person's GPA so it could be like a 4.0 or 3.8. How do I do a decimal field for a form?
1030: [18:20:06] <catcher> _hschillig1, does NumericField not accept decimals?
1031: [18:24:24] <_hschillig1> I don't believe so. I looked into the method and it seems like it only accepts integers.
1032: [18:25:17] * travis-ci has joined #silverstripe
1033: [18:25:17] <travis-ci> silverstripe/silverstripe-framework#3920 (3.1 - ccad618 : Loz Calver): The build passed.
1034: [18:25:17] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/f733ca27597d...ccad618d80c8
1035: [18:25:17] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47941112
1036: [18:25:17] * travis-ci has left #silverstripe
1037: [18:26:46] <_hschillig1> Hmm looks like it might since it went to the action part of the form when I submitted it with a numeric field.
1038: [18:27:26] <catcher> _hschillig1, if not, TextField w/ custom validation.
1039: [18:30:53] * benjhocking quit (Read error: Connection reset by peer)
1040: [18:30:57] * glenn-bautista has joined #silverstripe
1041: [18:41:53] * madmatt quit (Ping timeout: 240 seconds)
1042: [19:03:17] * travis-ci has joined #silverstripe
1043: [19:03:17] <travis-ci> silverstripe/silverstripe-framework#3921 (3.1 - d18fc3b : Loz Calver): The build passed.
1044: [19:03:17] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/ccad618d80c8...d18fc3bb6fff
1045: [19:03:17] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47942768
1046: [19:03:17] * travis-ci has left #silverstripe
1047: [19:25:31] * micmania1 has joined #silverstripe
1048: [19:28:19] <masnun> Is there a way to get just the float value from a Currency object?
1049: [19:29:57] * micmania1 quit (Ping timeout: 246 seconds)
1050: [19:29:58] <masnun> getValue?
1051: [19:32:03] * adrexia quit (Ping timeout: 245 seconds)
1052: [19:35:16] * Ryan-Toast has joined #silverstripe
1053: [19:37:30] * zippy has joined #silverstripe
1054: [19:38:12] <zippy> ss23: not updated the topic yet dude.../
1055: [19:38:48] * Phlunk3 has joined #silverstripe
1056: [19:39:14] <zippy> ss23: the domain ss.org.nz is offline now... sort it out man..!
1057: [19:40:15] * mobiusnz quit (Quit: Leaving.)
1058: [19:43:31] * adrexia has joined #silverstripe
1059: [19:48:14] * _hschillig1 has left #silverstripe
1060: [19:48:51] * MK_away has joined #silverstripe
1061: [19:54:28] * MK_away is now known as MichalKleiner
1062: [19:56:56] * starlifterdigi has joined #silverstripe
1063: [19:57:50] * ThePeach has joined #silverstripe
1064: [19:59:06] * mobiusnz has joined #silverstripe
1065: [20:03:08] * r3v3rb has joined #silverstripe
1066: [20:04:29] <r3v3rb> am i being entirely thick, I have a block of code in a loop, but I want every two items in the loop to be wrapped in a containing div, every modulus, multipleof I have tried comes out wrong…
1067: [20:05:22] <r3v3rb> so i end up with ‘div->loopcontent1->loopcontent2->closingdiv->div->loopcontent3->loopcontent4->closingdiv etc etc
1068: [20:05:24] * Cramb has joined #silverstripe
1069: [20:06:10] <zippy> r3v3rb: show ya code, of the template
1070: [20:06:13] <zippy> !paste
1071: [20:06:15] <MichalKleiner> can you make a controller function that will receive iterator and return true/false based on what you need?
1072: [20:06:17] <r3v3rb> zippy:
1073: [20:06:19] <r3v3rb> sure
1074: [20:06:31] <r3v3rb> one mo just grabbing it from server
1075: [20:08:50] <MichalKleiner> but multipleof should do
1076: [20:09:43] <r3v3rb> zippy: http://hastebin.com/siweqewela.xml if WHAT is the conundrum
1077: [20:09:59] <MichalKleiner> i'd go something like if first opening div, then multipleof(2) closing opening and then if last -> closing
1078: [20:10:03] <r3v3rb> MichalKleiner: thats what I thought but i’m being an idiot i think
1079: [20:10:14] <zippy> r3v3rb: remove the top if
1080: [20:10:27] <zippy> at the bottom do. <% if WHAT %></div><div class="clearfix"><% end_if %>
1081: [20:10:39] <r3v3rb> and then do if multipleof(2)
1082: [20:10:46] <zippy> no. wait.
1083: [20:10:51] <r3v3rb> waiting
1084: [20:11:21] <zippy> clearfix you normally just do <% if WHAT %><div class="clearfix"></div><% end_if %>
1085: [20:11:23] * UncleCheese has joined #silverstripe
1086: [20:11:30] <zippy> so remove the top one, and do that at the bottom, with a modulues of 2
1087: [20:11:38] <zippy> so every second one we are adding in that
1088: [20:12:11] <zippy> but, my question would be why would you need it, does you column medium-6 not do half the page?
1089: [20:12:19] <MichalKleiner> http://hastebin.com/imanarucez.xml
1090: [20:12:25] * camfindlay has joined #silverstripe
1091: [20:12:37] * UncleCheese quit (Client Quit)
1092: [20:13:03] <r3v3rb> zippy, sometimes the content isn’t deep enough and therefore it doesn’t wrap properly into columns
1093: [20:13:25] <MichalKleiner> sorry, added one more 'not'
1094: [20:13:26] <MichalKleiner> http://hastebin.com/ewuqovojol.xml
1095: [20:13:52] <MichalKleiner> was just writing it from memory so might need some tweaking
1096: [20:13:53] <r3v3rb> div clearfix was a hacky attempt to clean the rows/columns up
1097: [20:13:57] <zippy> http://hastebin.com/wivesezoje.xml even
1098: [20:14:23] <r3v3rb> I’ll probably end up using something along MichalKleiner’s lines as it’ll allow new class=‘row’ to be added
1099: [20:14:25] <zippy> I hate the ones that don't allow you to tab content
1100: [20:15:21] <zippy> camfindlay: whats going on chief
1101: [20:15:21] <r3v3rb> sorry zippy hastebin is in my blood from unity coding days - we all used that
1102: [20:15:26] <MichalKleiner> yeah, I don't like the 'magic' if something is happening at the end of the loop outputting at the beginning of html part
1103: [20:15:32] <MichalKleiner> so rather have two conditions
1104: [20:15:45] * spekulatius has joined #silverstripe
1105: [20:15:59] <zippy> camfindlay: all the links are broken in the topic..
1106: [20:25:14] <camfindlay> morning…. caffiene called
1107: [20:26:40] <camfindlay> zippy - I see so incoming links for the old topic section are causing issues?
1108: [20:27:06] <camfindlay> Do we play another round of rewrite trivia today? lol :P
1109: [20:27:07] <zippy> camfindlay: channel topic
1110: [20:27:18] <zippy> Logs: http://ss.org.nz/logs | Feature requests: http://ss.org.nz/features | Dev Mailing List: http://ss.org.nz/ss-dev etc
1111: [20:27:27] <camfindlay> right I see, will get that updated
1112: [20:28:59] * UncleCheese has joined #silverstripe
1113: [20:29:35] * micmania1 has joined #silverstripe
1114: [20:30:08] <camfindlay> I have a feeling I know why now too after a whois lookup on that domain…
1115: [20:33:02] <r3v3rb> perfect zippy MichalKleiner :) thanks
1116: [20:33:16] <zippy> camfindlay: yes, i know, so ideally we need to resolve it
1117: [20:33:22] <zippy> ahha, a pun :D
1118: [20:33:33] * zippy is off to a cracker friday
1119: [20:33:44] <camfindlay> +1 for puns
1120: [20:34:13] <starlifterdigi> Morning Stripers, how do I set up SS to allow members to use a username as opposed to an email address to login.
1121: [20:35:54] <camfindlay> starlifterdigi you can actually just use usernames in the email field (which is a bit hacky) - there is a way to set an explicit username field in the Member class from memory
1122: [20:36:25] <starlifterdigi> Right, coolio. Cheers Cam.
1123: [20:37:37] <camfindlay> or it might be on the authenticator class… actually we should really have a hot to in the new docs for that sort of thing… if you solve, feel free to add one starlifterdigi ;)
1124: [20:37:53] <starlifterdigi> Sure thing :D
1125: [20:38:09] * zippy is hungry
1126: [20:51:45] * antmas has joined #silverstripe
1127: [20:52:02] <antmas> morning all!
1128: [20:52:59] <zippy> antmas: morning!
1129: [20:53:26] <zippy> antmas: crisis mode here
1130: [20:53:57] <antmas> zippy: :O
1131: [20:54:02] <antmas> what's happening?
1132: [20:54:07] <zippy> friday, and cricket is on and lots of work!
1133: [20:54:15] <antmas> LOL
1134: [20:54:20] <antmas> crisis indeed
1135: [20:54:33] <zippy> and, someone wants me to go have a look at a house with them!
1136: [20:54:43] <antmas> my mind went instantly to ss23 somehow
1137: [20:54:44] <zippy> since I don't "work"
1138: [20:55:38] <zippy> yea he's got problems too
1139: [20:56:04] <antmas> zippy: where's the house?
1140: [20:56:12] <zippy> motueka!
1141: [20:56:30] <antmas> cheap :)
1142: [20:56:35] <zippy> the place no-one lives, aye UncleCheese ;-)
1143: [20:56:44] <zippy> antmas: you been looking yet?
1144: [20:57:24] <antmas> zippy: not specifically for buyers, but we're going again this weekend
1145: [20:57:25] <UncleCheese> i'd live in motueka just for Toad Hall
1146: [20:58:00] <antmas> as in we went and had a look at places already but none of which we'd consider buying
1147: [20:58:28] * gelignite quit (Quit: http://bit.ly/nkczDT)
1148: [20:58:34] * mahfuz has joined #silverstripe
1149: [20:59:12] * starlifterdigi quit (Quit: starlifterdigi)
1150: [20:59:22] * Zagoodwin quit (Ping timeout: 246 seconds)
1151: [21:05:03] * camfindlay changed the topic to 'Welcome to #silverstripe | Ask your questions! | Dev Mailing List: http://silverstripe.org.nz/dev-list | IRC Logs: http://ss.org.nz/logs | Feature requests: http://silverstripe.uservoice.com | Latest stable releases: http://silverstripe.org/software/download/ | Release Archive: http://silverstripe.org/release-archive/'
1152: [21:05:24] * camfindlay changed the topic to 'Welcome to #silverstripe | Ask your questions! | Dev Mailing List: http://silverstripe.org/dev-list | IRC Logs: http://ss.org.nz/logs | Feature requests: http://silverstripe.uservoice.com | Latest stable releases: http://silverstripe.org/software/download/ | Release Archive: http://silverstripe.org/release-archive/'
1153: [21:05:26] <zippy> camfindlay: logs -> logs.simon.geek.nz
1154: [21:05:46] <camfindlay> still redirects
1155: [21:06:23] <zippy> yea... no. curl: (6) Could not resolve host: ss.org.nz
1156: [21:06:55] <camfindlay> must be cached my end… will update
1157: [21:07:23] * UncleCheese quit (Ping timeout: 256 seconds)
1158: [21:09:41] * camfindlay changed the topic to 'Welcome to #silverstripe | Ask your questions! | Dev Mailing List: http://silverstripe.org/dev-list | IRC Logs: http://silverstripe.org/irc-logs | Feature requests: http://silverstripe.uservoice.com | Latest stable releases: http://silverstripe.org/software/download/ | Release Archive: http://silverstripe.org/release-archive/'
1159: [21:10:17] <zippy> htaccess guru now eh!
1160: [21:10:23] <zippy> or did you use a Redreict page
1161: [21:10:39] <catcher> Does the new SS site use a front-end framework?
1162: [21:10:55] <camfindlay> we’re using bootstrap
1163: [21:11:12] <catcher> cool
1164: [21:11:21] <camfindlay> htaccess would mean I have to deploy… my friday laziness doesn’t permit that
1165: [21:11:37] <camfindlay> plus I’d have to wear the pink friday deployment tie
1166: [21:11:42] <Ryan-Toast> catcher: http://builtwith.com/silverstripe.org
1167: [21:12:43] <Ryan-Toast> camfindlay: Looks like your minifier is getting rid of author comments.
1168: [21:13:49] <camfindlay> Ryan-Toast - context?
1169: [21:14:22] * veb has joined #silverstripe
1170: [21:14:24] * Colin[pi] has joined #silverstripe
1171: [21:14:35] <Ryan-Toast> camfindlay: style.min.css doesn’t have the bootstrap livcence.
1172: [21:14:38] <Ryan-Toast> licence.
1173: [21:14:39] <zippy> Colin[pi]: o/
1174: [21:15:04] <Ryan-Toast> Actually, does it need it?
1175: [21:15:09] <Ryan-Toast> Hmm, need to have a look.
1176: [21:15:33] <Colin[pi]> zippy: \o
1177: [21:15:50] <antmas> Colin[pi]: o/
1178: [21:15:56] * starlifterdigi has joined #silverstripe
1179: [21:16:09] <Ryan-Toast> Why people get us to do their data entry for them when we’ve built thema CMS is beyond me.
1180: [21:16:29] <Ryan-Toast> You want to pay $150 p/h for me to copy paste shit into your pages? Okay...
1181: [21:16:47] <starlifterdigi> Ryan-Toast: story of my life…
1182: [21:16:50] <zippy> Ryan-Toast: https://www.dropbox.com/s/s7677d8c15vlsuv/responsive.png - doing it right?
1183: [21:16:55] <Colin[pi]> Ryan-Toast: yep I've had a few clients like that too
1184: [21:17:08] <catcher> Ryan-Toast, that's also cool.
1185: [21:17:09] <Ryan-Toast> zippy: DRY
1186: [21:17:20] <antmas> everyone who works with CMS's has to do fucking data entry
1187: [21:17:27] <antmas> so annoying
1188: [21:17:32] <Ryan-Toast> catcher: Not when it doesn’t go into my pocket :P
1189: [21:17:41] <catcher> Ryan-Toast, I meant builtwith
1190: [21:17:45] <zippy> Ryan-Toast: the guy doesn't like using something like bootstrap because it's too restrictive
1191: [21:17:49] <Ryan-Toast> zippy: Oh, right :D
1192: [21:17:54] <Colin[pi]> antmas: yeah and as CMS's go, I think SS is one of the easiest to understand
1193: [21:18:07] <Ryan-Toast> zippy: I just mean use a variable for all your repeated sizes.
1194: [21:18:12] <Ryan-Toast> zippy: makes life easier.
1195: [21:18:17] <antmas> mmm variables
1196: [21:18:31] <zippy> that shit right there, is nasty. This is the same css and the uber floating one
1197: [21:18:36] <catcher> I build CMSes with my front-end devs in mind, since they do 75% of our clients' content entry.
1198: [21:18:56] <catcher> On the upside, they're smart, so things don't have to be idiot-proof.
1199: [21:18:58] <Ryan-Toast> zippy: Legacy css is the worst.
1200: [21:19:09] <Ryan-Toast> That last one is seven levels deep :/
1201: [21:19:10] <Colin[pi]> Ryan-Toast: float all the things?
1202: [21:19:17] <zippy> yea man, this is like... 2 weeks old
1203: [21:19:19] <zippy> .home-page .second-blocks .reasons .reason .button span
1204: [21:19:20] <zippy> wicked
1205: [21:19:27] <Ryan-Toast> zippy: :P
1206: [21:19:32] <Ryan-Toast> HAVE FUN WITH THAT
1207: [21:19:50] <Ryan-Toast> When I get stuff like that I just take a screenshot and chuck it all out :P
1208: [21:19:52] <antmas> oh god those names
1209: [21:19:55] <antmas> class names*
1210: [21:20:10] <antmas> .reason and .reasons
1211: [21:20:14] <zippy> Colin[pi]: you refering to this one https://www.dropbox.com/s/mq03fbnde4otytg/SuchFloat.png?dl=0 - all the green - are float: lefts
1212: [21:20:43] <Colin[pi]> zippy: yeah and just legacy css in general
1213: [21:20:45] <antmas> "width:59%;"
1214: [21:20:47] <antmas> lawl
1215: [21:20:49] <Colin[pi]> so many shitty hacks as well
1216: [21:21:11] <zippy> .page-content.user-enviroment .page-right .block-middle .progress-bar .bar-content span.bar-top
1217: [21:21:13] <Ryan-Toast> all that stuff goes in your shame.css file.
1218: [21:21:40] <antmas> XD
1219: [21:21:48] * lerni has joined #silverstripe
1220: [21:22:01] <antmas> zippy: christ killitwithfire
1221: [21:22:28] <zauberfisch> zippy: I answered a question of yours yesterday after you left
1222: [21:22:35] <Ryan-Toast> zippy: to be fair I’ve kind of fucked this code up a bit, just because I just want it finished… :P
1223: [21:22:37] <zauberfisch> can't recall what it was though
1224: [21:22:43] <zauberfisch> zippy: you might want to check the logs
1225: [21:23:37] <Ryan-Toast> zippy: http://i.imgur.com/AxmNi12.jpg
1226: [21:23:44] <Ryan-Toast> but shh
1227: [21:24:47] <antmas> my {} on their own lines OCD is strong with that one
1228: [21:25:22] <Ryan-Toast> Eww, { on their own lines. Get out of my house.
1229: [21:25:39] <zauberfisch> antmas: ewwwww
1230: [21:25:45] <zauberfisch> antmas: you are dead to me
1231: [21:25:55] <Ryan-Toast> antmas: DEAD
1232: [21:25:59] <antmas> I CAN'T HELP IT
1233: [21:26:04] <Ryan-Toast> YES YOU CAN
1234: [21:26:15] <Ryan-Toast> EVEN CSSLINT COMPILES TO { ON THE SAME LINE, NOOB
1235: [21:26:21] <Ryan-Toast> :P
1236: [21:26:22] <Ryan-Toast> <MM3
1237: [21:26:24] <Ryan-Toast> <3
1238: [21:26:26] <zauberfisch> !
1239: [21:26:30] <zippy> zauberfisch: um...
1240: [21:26:59] <antmas> if you put the { on the same line as the opening selector, then the closing should be on the same line as the last style :|
1241: [21:27:09] <Ryan-Toast> antmas: nah, dawg.
1242: [21:27:12] <zauberfisch> antmas: no!
1243: [21:27:16] <antmas> YES
1244: [21:27:19] <Ryan-Toast> } on it’s own line allows for commenting.
1245: [21:27:24] <antmas> LISTEN TO ME I AM CSS GOD
1246: [21:27:35] <zippy> zauberfisch: ta :)
1247: [21:27:41] <zippy> <zauberfisch> hope he has nothing better to do than read log files
1248: [21:27:47] <zauberfisch> :D
1249: [21:27:56] <Ryan-Toast> antmas: THIS IS YOU http://i.imgur.com/DMAB4jD.jpg
1250: [21:27:57] <zippy> yea, when I leave I always check the logs to see if people say anything about me....
1251: [21:28:07] <zippy> still waiting for a "god damn zippy so awesome"
1252: [21:28:09] <antmas> ;____;
1253: [21:28:24] <zauberfisch> antmas: someone who puts { in a second line can at best be a dark servant of the devil
1254: [21:28:31] <Ryan-Toast> Guise, you’re interrupting my very important dataentry job.
1255: [21:28:32] <antmas> zippy: I don't because I'm scared :D
1256: [21:28:47] <Blacklite> oh yes the bracket debate
1257: [21:28:58] <Ryan-Toast> No debate, only wrong opinions.
1258: [21:29:03] <zauberfisch> yep
1259: [21:29:04] <Ryan-Toast> WRONG
1260: [21:29:06] <Blacklite> :)
1261: [21:29:10] <antmas> Ryan-Toast: YOU'RE A WRONG OPINION
1262: [21:29:16] * antmas turns up nose
1263: [21:29:20] <zauberfisch> antmas: no U!
1264: [21:29:31] <Ryan-Toast> antmas: your face is a bracket!
1265: [21:29:40] <antmas> Ryan-Toast: curly brace
1266: [21:29:43] <antmas> :|
1267: [21:29:49] <Ryan-Toast> No, it’s not that good; brah!
1268: [21:29:57] <Ryan-Toast> :P
1269: [21:30:00] <zauberfisch> haha
1270: [21:30:05] * antmas flips desk
1271: [21:30:12] <Ryan-Toast> http://i.imgur.com/pyRzr.gif
1272: [21:30:26] <antmas> XD
1273: [21:30:28] <zippy> (╯°□°)╯︵ ┻━┻ THIS IS RIDICULOUS
1274: [21:30:44] <Ryan-Toast> ┬─┬ノ( º _ ºノ)
1275: [21:30:46] <antmas> someone who knows .net needs to hold me
1276: [21:31:02] <zippy> been in a habbit with laravel apps to do { on new lines in php
1277: [21:31:03] * antmas rocks back and forth
1278: [21:31:06] <zippy> still not sure how I feel about it
1279: [21:31:15] <zippy> css it says on the same line. eg .foo {
1280: [21:31:21] <antmas> zippy: NEW LINES IS LOVE
1281: [21:31:27] <Ryan-Toast> zippy: ohsnap.com
1282: [21:31:32] <zippy> free the code in whitespace!
1283: [21:31:39] <zippy> swim in the openness
1284: [21:31:46] <Ryan-Toast> ANTMAS: WHERE’S YOUR GOD NOW?
1285: [21:31:54] <Ryan-Toast> MUHAHAHAHA
1286: [21:31:59] <antmas> :O
1287: [21:32:02] <zippy> yea so... thats not safe for work
1288: [21:32:03] <antmas> I"M ALL ALONE
1289: [21:32:15] <antmas> zippy: did you go to ohsnap.com
1290: [21:32:18] <antmas> ?
1291: [21:32:20] <zippy> I did
1292: [21:32:23] <antmas> LOL
1293: [21:32:23] <Ryan-Toast> zippy: oh, is that an actual website? lol
1294: [21:32:33] <Ryan-Toast> What is there?
1295: [21:32:34] <zippy> have a look :)
1296: [21:32:37] <Ryan-Toast> Hmm.
1297: [21:32:40] <zippy> it's totally safe, was jk
1298: [21:32:41] <antmas> I have a feeling zippy clicks literally every link that gets typed here
1299: [21:32:42] * Ryan-Toast looks around
1300: [21:32:57] <Ryan-Toast> Oh jesus
1301: [21:32:59] <zippy> antmas: :)
1302: [21:33:05] <zippy> Ryan-Toast: yea
1303: [21:33:10] <antmas> is it chickenbutt?
1304: [21:33:13] <Ryan-Toast> thank you based incognito window.
1305: [21:33:24] <Ryan-Toast> It’s porn.
1306: [21:33:45] <antmas> it's always pron
1307: [21:33:49] <zippy> Ryan-Toast: IT has logged it, thats going to be mentioned in your next performance review
1308: [21:33:59] * starlifterdigi quit (Quit: starlifterdigi)
1309: [21:34:00] <Ryan-Toast> We don’t ahave an IT team, muhahaha
1310: [21:34:02] <zippy> 'we notice you've been visitng certain sites on work computers..'
1311: [21:34:14] * r3v3rb quit (Quit: r3v3rb)
1312: [21:34:17] <antmas> we have webmarshal here
1313: [21:34:18] <antmas> :(
1314: [21:34:25] <Ryan-Toast> rofl, what a stupid title.
1315: [21:34:41] <Ryan-Toast> “We don’t like your kind of website around these here parts"
1316: [21:34:51] <Colin[pi]> antmas: do they have a sheriff badge?
1317: [21:34:56] <antmas> it went crazy when someone posted something related to scat (as in the jazz)
1318: [21:35:20] <Colin[pi]> lol scat
1319: [21:35:25] <Colin[pi]> NO NOT THAT KIND
1320: [21:35:43] <Ryan-Toast> Colin[pi]: http://i.imgur.com/nuLCX.gif
1321: [21:38:30] <Colin[pi]> Ryan-Toast: http://i.imgur.com/K4efkyw.gif
1322: [21:39:14] * UndefinedOffset quit (Quit: Leaving.)
1323: [21:39:54] * starlifterdigi has joined #silverstripe
1324: [21:40:44] <Colin[pi]> omg it's gif Friday http://i.imgur.com/elbhPlb.gif
1325: [21:41:25] <antmas> Colin[pi]: :)
1326: [21:41:43] <Ryan-Toast> Colin[pi]: http://i.imgur.com/DKsysDU.gif
1327: [21:42:02] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
1328: [21:45:23] * starlifterdigi quit (Quit: starlifterdigi)
1329: [21:56:23] <antmas> bah I need a new idea for an open source project
1330: [21:56:34] <antmas> maybe something ss related or not
1331: [21:57:30] * r3v3rb has joined #silverstripe
1332: [21:57:48] <Colin[pi]> antmas: hmm... make sure it involves kittens and explosions
1333: [21:58:19] <antmas> :P
1334: [21:58:32] <Colin[pi]> seems to be a winning formula :P
1335: [21:58:34] * starlifterdigi has joined #silverstripe
1336: [21:58:53] <Colin[pi]> jesus they're up to $2.8 million
1337: [21:58:59] <antmas> :O
1338: [21:59:12] <antmas> I imagine he'll donate most of it
1339: [21:59:19] <Colin[pi]> that's just incredinuts
1340: [21:59:21] <antmas> unless he's specified otherwise
1341: [21:59:37] <antmas> Star Citezin is supposed to hit 100m soon
1342: [21:59:51] <Colin[pi]> well they're now going to make a full NSFW for the $35 and more backers
1343: [21:59:56] <Colin[pi]> full NSFW pack I mean
1344: [22:00:02] <Colin[pi]> originally it was a few extra cards
1345: [22:00:19] <antmas> its a card based game yeah?
1346: [22:00:22] <antmas> nvm
1347: [22:00:26] <Colin[pi]> yeah
1348: [22:00:43] <Colin[pi]> I love this quote they put on the kickstarter page:
1349: [22:00:46] <Colin[pi]> <2 Months Ago> Printing Company: How can we help you?
1350: [22:00:49] <Colin[pi]> Elan: Hi, I need a quote for printing a bunch of cards for a new game.
1351: [22:00:53] <Colin[pi]> Printing Company: No problem. We can quote you in quantities of 1000, 2500, or 5000.
1352: [22:00:56] <Colin[pi]> Elan: I think 1000 will be more than enough.
1353: [22:00:56] <ibeardslee> that's a big win
1354: [22:00:59] <Colin[pi]> ^ lol
1355: [22:01:01] <ibeardslee> heh
1356: [22:01:39] * jordank has joined #silverstripe
1357: [22:02:02] <antmas> the sriracha is real
1358: [22:02:40] * WandL has joined #silverstripe
1359: [22:02:44] * jordanmk quit (Ping timeout: 245 seconds)
1360: [22:09:40] * UncleCheese has joined #silverstripe
1361: [22:09:49] <UncleCheese> what would make a select element lose its... box?
1362: [22:10:09] <UncleCheese> i see that it has border:0;, but even when i remove that, i still don't have the arrows on the right
1363: [22:15:41] <r3v3rb> UncleCheese: saw your updates to displaylogic - should be easier now to integrate with foundation i guess?
1364: [22:15:55] <UncleCheese> yeah, no more custom templates
1365: [22:16:00] <UncleCheese> except for checkboxset field
1366: [22:16:01] <r3v3rb> :) Yay!
1367: [22:16:04] <UncleCheese> because it's a little bitch
1368: [22:16:08] <r3v3rb> indeed
1369: [22:16:11] <UncleCheese> really shouldn't be a formfeld
1370: [22:16:21] <UncleCheese> should be treated more like gridfield.. an interfact
1371: [22:16:24] <UncleCheese> face*
1372: [22:16:26] <r3v3rb> its a mess to be sure
1373: [22:16:43] <r3v3rb> but reasonably easy to deal with :\
1374: [22:16:44] <UncleCheese> so maybe in a future release, i'll remove those templates and encourge the use of DisplayLogicWrapper aroudn checbxoes
1375: [22:17:01] <UncleCheese> but then they wouldn't be able to dispatch change events
1376: [22:17:01] <UncleCheese> ugh
1377: [22:17:08] <r3v3rb> aye
1378: [22:17:19] <UncleCheese> i may sumbit a pull to the framework
1379: [22:17:26] <r3v3rb> problem is caused by the $extraclasses necessity
1380: [22:17:31] <UncleCheese> that template should be invoking at the very least extraClases
1381: [22:17:46] <r3v3rb> checkbox ends up setting it all over the place from memory
1382: [22:17:49] <UncleCheese> but i need it to call $AttributesHTML on the <ul> tag as well, and that's a bit dodgy
1383: [22:19:38] <r3v3rb> hmm, so to use money class from ss, or just create a function to return the string as formatted string using money_format…
1384: [22:21:16] * catcher quit (Quit: Leaving)
1385: [22:21:35] <UncleCheese> i don't like the money class in ss
1386: [22:21:41] <ss23> money money money
1387: [22:21:42] <ss23> must be funny
1388: [22:21:42] <UncleCheese> if you want to do awesome stuff with money
1389: [22:21:45] <ss23> in UncleCheese's world
1390: [22:21:47] <UncleCheese> get this one
1391: [22:22:11] <UncleCheese> https://github.com/sebastianbergmann/money
1392: [22:22:19] <UncleCheese> that library is bad ass
1393: [22:22:47] <UncleCheese> i used to have a module that gave you a DBField wrapper for that
1394: [22:25:05] <r3v3rb> cheers, i’ll take a look
1395: [22:28:22] * Sticks has joined #silverstripe
1396: [22:37:41] <pippy> Any CWP guys here?
1397: [22:38:41] <pippy> Is it possible to get the location of the cert keys for simplesaml, or would that have to be done manually by the CWP team?
1398: [22:41:57] <ss23> idk what that means
1399: [22:41:58] <ss23> :O
1400: [22:42:06] <ss23> I suggest create a ticket
1401: [22:42:38] * starlifterdigi quit (Quit: starlifterdigi)
1402: [22:43:33] <zauberfisch> I just love jetbrains (intellij / phpstorm)
1403: [22:44:12] * starlifterdigi has joined #silverstripe
1404: [22:44:28] * starlifterdigi quit (Client Quit)
1405: [22:44:50] <zauberfisch> just realised it even has a csv editor in it
1406: [22:44:56] <zauberfisch> that is actually pretty good
1407: [22:47:13] <ss23> For all that CSV editing you do
1408: [22:47:14] <ss23> :P
1409: [22:49:04] * Olliepop has joined #silverstripe
1410: [22:51:12] * Azure quit (Quit: Blue Sky Fish)
1411: [22:51:30] <zauberfisch> ss23: haha
1412: [22:51:36] <zauberfisch> ss23: yes!
1413: [22:51:47] <zauberfisch> 6th file this year already
1414: [22:52:34] <antmas> edit csvs err day
1415: [22:52:56] <zauberfisch> have to import data that people write in xls
1416: [22:54:11] * Azure has joined #silverstripe
1417: [22:56:08] <r3v3rb> UncleCheese: do you have a quick fix for using displaylogic with optionsets in foundation ?
1418: [22:56:26] <zauberfisch> r3v3rb: yes. don't use foundation :P
1419: [22:56:35] <r3v3rb> zauberfisch: where on earth is that csv editor?
1420: [22:56:47] <r3v3rb> zauberfisch: :\
1421: [22:56:52] <r3v3rb> i’m not using susy
1422: [22:57:09] * auto9 has joined #silverstripe
1423: [22:57:37] <zauberfisch> r3v3rb: https://www.jetbrains.com/idea/help/editing-csv-files.html
1424: [22:57:49] <zauberfisch> at the bottom, see the tab "data"
1425: [22:58:10] <r3v3rb> very swish :D
1426: [22:58:47] <r3v3rb> basically hijacks the db view and allows entry as per db records then?
1427: [22:59:07] <zauberfisch> oh, yiissss
1428: [22:59:13] <zauberfisch> it even lets you export to json or sql
1429: [22:59:24] <r3v3rb> beautiful
1430: [23:00:00] <zauberfisch> yes!
1431: [23:00:18] <r3v3rb> and data sorting too… handy
1432: [23:00:48] <zauberfisch> r3v3rb: well, I'd assume the exel style table view is a abstracted feature in jetbrain products, but yeah, like the db view
1433: [23:00:52] <zauberfisch> yes!
1434: [23:01:06] <r3v3rb> does look nice and efficient
1435: [23:02:56] <zauberfisch> oh, you where right
1436: [23:02:57] <zauberfisch> For the table view and associated features to be available, the Database Tools and SQL plugin must be enabled. (This plugin is bundled with the IDE and enabled by default.)
1437: [23:03:29] <r3v3rb> zauberfisch: :D i got it right for a change
1438: [23:03:37] * elgabbu quit (Ping timeout: 246 seconds)
1439: [23:06:03] * Stomach has joined #silverstripe
1440: [23:06:30] * mobiusnz quit (Quit: Leaving.)
1441: [23:06:48] * Stomach quit (Read error: Connection reset by peer)
1442: [23:07:07] * Stomach has joined #silverstripe
1443: [23:09:08] <r3v3rb> anyhow, so I have a multi-stage form across three allowed_actions everything works except that if my user goes ‘back’ the data is present in the form, if they then go forward the data is then missing… Session::get(‘FormData’) shows the data though… It just doesn’t get pushed back into the form - I have loadData in there…
1444: [23:09:56] <r3v3rb> very odd, present when going back through form but not populated when going forward to a previously visited/filled in form
1445: [23:10:07] * Stomach quit (Client Quit)
1446: [23:11:40] * ThePeach quit (Quit: leaving)
1447: [23:12:33] * lerni quit (Remote host closed the connection)
1448: [23:13:10] <antmas> guy with leaf blower i
1449: [23:13:15] <antmas> stahhhp
1450: [23:14:17] * r_hector has joined #silverstripe
1451: [23:20:02] <MichalKleiner> haha, funny is when you see these leaf blower guys in the wind how it has no sense at all to use it and they still go like kings :-D
1452: [23:22:09] <antmas> yeah he's just blowing all of the stuff from our neighbouring carpark into ours :P
1453: [23:22:18] <ss23> lol
1454: [23:22:33] <zauberfisch> antmas: haha
1455: [23:22:34] <Colin[pi]> haha
1456: [23:23:10] <antmas> haha he just blew some into a courier vans open door
1457: [23:24:08] <Colin[pi]> ahaha
1458: [23:24:14] <Colin[pi]> special delivery!
1459: [23:25:37] <ss23> SPECIAL DELIVERY, BITCH
1460: [23:25:58] <antmas> LOL
1461: [23:26:00] <antmas> http://io9.com/king-tuts-burial-mask-has-been-irreversibly-damaged-1681085211
1462: [23:26:10] * lerni has joined #silverstripe
1463: [23:27:12] <novaweb> Wing Tsun Kung Fu intake, to fix your nerdy slouch: Thursday the 29th of January at 6pm. Turn up ten minutes early to: Level 1/45 Courtenay Place Te Aro 04-384 7832
1464: [23:27:37] <antmas> lolwut
1465: [23:27:38] <Colin[pi]> antmas: oh wow, that's just inexcusable
1466: [23:27:45] <novaweb> (introduced to me by ex SilverStriper Nivea)
1467: [23:27:45] <antmas> Colin[pi]: yeah it's pretty bad
1468: [23:28:14] <Colin[pi]> "three of the museum's curators are offering conflicting accounts"
1469: [23:28:15] <Colin[pi]> lol
1470: [23:28:18] <Colin[pi]> no surprise
1471: [23:28:59] <Colin[pi]> "they used a spatula in an effort to get it off, damaging the relic even further"
1472: [23:29:02] <Colin[pi]> *facepalm*
1473: [23:29:08] <antmas> hahahaha
1474: [23:29:24] <antmas> might as well have been a crowbar
1475: [23:29:33] <Colin[pi]> one of a kind, irreplaceable relic... epoxy on the chin... "OH LETS JUST SPATULA IT OFF"
1476: [23:29:39] <Colin[pi]> fuck sake
1477: [23:30:23] <Colin[pi]> oh god: http://egyptianstreets.com/wp-content/uploads/2015/01/araby.jpeg
1478: [23:30:28] <Colin[pi]> (close up)
1479: [23:30:35] * masnun quit (Quit: Signing out.)
1480: [23:31:27] <antmas> :(
1481: [23:31:28] * mobiusnz has joined #silverstripe
1482: [23:31:28] <antmas> so bad
1483: [23:32:09] <antmas> I wish the curators had found a glue stick on the ground by it, or a tub of empty PVA
1484: [23:32:35] * auto9 quit (Read error: Connection reset by peer)
1485: [23:33:46] * r3v3rb quit (Quit: r3v3rb)
1486: [23:34:03] * r_hector quit (Quit: Leaving.)
1487: [23:36:59] <muskie9> so in a couple thousand years, this will be the society know as those who didn't think before fixing?? lol
1488: [23:37:18] <Colin[pi]> muskie9: have you seen Idiocracy? ;P
1489: [23:38:25] <muskie9> sad to say I don't think I have :/
1490: [23:39:00] <Colin[pi]> muskie9: UncleCheese got me onto it, it's about an average soldier guy who gets accidentally put into hibernation for 500 years
1491: [23:39:11] <Colin[pi]> muskie9: when he wakes up, he's considered to be a genius
1492: [23:39:23] <UncleCheese> so good
1493: [23:39:26] <Colin[pi]> muskie9: everyone else in human society has basically become a retard
1494: [23:39:37] <UncleCheese> Not Sure
1495: [23:39:45] <UncleCheese> quit talkin' all faggy
1496: [23:39:48] <Colin[pi]> UncleCheese: you sound like a fag and your shit's all retarded
1497: [23:39:56] <UncleCheese> that's my favourite line, i think
1498: [23:40:02] <muskie9> now that you say that I think I may have seen it without realizing it
1499: [23:40:06] <UncleCheese> the doctor
1500: [23:40:09] <muskie9> sounds super familiar
1501: [23:40:12] <UncleCheese> Fuddruckers
1502: [23:40:18] <Colin[pi]> Buttfuckers
1503: [23:40:19] <Colin[pi]> lol
1504: [23:40:26] <Colin[pi]> I love those subtle details
1505: [23:40:32] <UncleCheese> yeah, that's the key
1506: [23:40:55] <antmas> "you sound like a fag and your shit's all retarded"
1507: [23:40:56] <UncleCheese> it's got the electrolytes plants crave!
1508: [23:41:02] <antmas> sounds like CoD or CSGO
1509: [23:41:24] <Colin[pi]> antmas: lol too true
1510: [23:43:38] <Colin[pi]> UncleCheese: I like this scene too: https://www.youtube.com/watch?v=wM1P7GMnd38
1511: [23:53:18] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)

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