#silverstripe IRC Log

IRC log for 16 January 2017

All timestamps are in UTC.

1: [00:33:50] * filisko quit (Ping timeout: 240 seconds)
2: [01:10:59] <spronk> ooh
3: [01:11:02] <spronk> we might be in with a chance zippy
4: [01:11:06] <zippy> yea
5: [01:11:15] <spronk> by the looks of it we'll only need <250
6: [01:11:19] <zippy> a lot of short pitch stuff eh
7: [01:11:25] <zippy> knocking them down.. literally
8: [01:11:27] <spronk> and.... ~50 overs to do it..
9: [01:11:55] <zippy> mmm could be an interesteing afternoon
10: [01:17:00] <spronk> kayes is having a bit of a run at it ...
11: [01:17:33] <zippy> out
12: [01:17:53] <zippy> yea he's not doing too bad given that he was carted off to the hospital yesterday
13: [01:17:57] <spronk> mm
14: [01:18:24] <zippy> so.. we should be able to do this
15: [01:18:39] <spronk> you'd think so
16: [01:18:48] <spronk> kane should be able to do it on his own even
17: [01:19:01] <spronk> just put a cardboard cutout at the other end
18: [01:19:19] <zippy> yea he will just make sure to run 2's, no singles
19: [01:19:23] <zippy> until the 6th ball
20: [01:19:54] <spronk> mm
21: [01:23:28] <spronk> THERE WE GO
22: [01:23:35] <spronk> 217 in 57
23: [01:23:43] <spronk> if we don't get this
24: [01:23:44] <spronk> fuuuuck me.
25: [01:29:30] * janneklouman-- has joined #silverstripe
26: [01:32:52] <zippy> all out 120 :)
27: [01:34:28] * janneklouman-- quit (Ping timeout: 258 seconds)
28: [01:34:57] * gelignite_ has joined #silverstripe
29: [01:38:19] * gelignite quit (Ping timeout: 255 seconds)
30: [01:50:14] <Nightjar> oh
31: [01:50:17] <Nightjar> o.0
32: [01:50:25] <Nightjar> turns out hexchat is open :o
33: [01:50:30] <Nightjar> hi folks!
34: [01:58:23] * gelignite_ quit (Quit: http://bit.ly/1kso8Ta)
35: [02:01:56] <zippy> first wicket down...!
36: [02:02:09] <zippy> spronk: might get 110~?
37: [02:10:12] <zippy> 2 down.
38: [02:14:42] <Nightjar> he had a hissy at them stumps too
39: [02:29:05] <spronk> sheet
40: [02:29:13] <spronk> :S
41: [02:33:28] <spronk> go on tay tay and kaneo
42: [02:41:22] * helenclarko has joined #silverstripe
43: [02:41:32] <helenclarko> hey all
44: [02:41:33] <helenclarko> o/
45: [02:41:42] <spronk> hc
46: [02:41:44] <spronk> \o
47: [02:42:34] <helenclarko> I need some assistance... I cant for the life of me work out why my requirements dont work from page.php's init.
48: [02:42:48] <helenclarko> They actually dont show up at all.
49: [02:43:13] <helenclarko> in fact its like init doesn't actually do anything.
50: [02:43:14] <spronk> hmm?
51: [02:43:55] <helenclarko> I can add all requirments within my template files however, and that works fine.
52: [02:44:23] <helenclarko> Is there any chance I am missing a tag or something in my template files?
53: [02:44:42] <helenclarko> Possibly where it would drop the requirements code.
54: [02:44:44] <zippy> helenclarko: Does that page your extending from not call init (have it's own one ant not call parent::init()) ?
55: [02:45:03] <zippy> are you in the right file even.... can you just throw (literally) "omg this should fail"
56: [02:45:12] <spronk> KANEOI
57: [02:45:14] <spronk> FOUR FOUR FOUR
58: [02:45:14] <spronk> fuck yeahhh
59: [02:45:16] <zippy> and make sure you get a php parse error to make sure that php file is even working
60: [02:45:48] <helenclarko> Im in page.php, it should be able to init. let me break it though
61: [02:46:03] <zippy> helenclarko: are you calling Requirements::clear(); somewhere else which removes everything
62: [02:46:31] <zippy> if the file doesn't exist then it wont add it
63: [02:46:42] <zippy> so with css if your doing themeCSS make sure to exclude extension and things
64: [02:47:08] <zippy> show us one of the requirement lines
65: [02:48:20] <helenclarko> Okay, so it broke. let me show you my code
66: [02:49:00] <helenclarko> http://www.sspaste.com/paste/show/587c349150dce
67: [02:50:35] <spronk> doesn't look like anything to me
68: [02:50:38] <spronk> >_> :D
69: [02:50:50] <spronk> do the files actually exist
70: [02:50:50] <spronk> and
71: [02:50:55] <spronk> are you in prod mode
72: [02:51:16] <helenclarko> Do I need to make foobar.js
73: [02:51:25] <helenclarko> Or does it make that itself?
74: [02:51:25] <spronk> file*
75: [02:51:29] <spronk> should make it as long as it has perms
76: [02:51:37] <helenclarko> And it does
77: [02:51:49] <helenclarko> Im not in dev mode
78: [02:51:54] <spronk> hmm
79: [02:52:03] <spronk> file actually really truly exists?
80: [02:52:08] <spronk> and path isn't being fucked somehowa?
81: [02:52:09] <helenclarko> Even if I wasnt, it should still load the file right?
82: [02:53:24] <helenclarko> okay file exists in "/themes/simple/javascript" but even with that as the path... It fails
83: [02:54:15] <spronk> i'm outta ideas
84: [02:55:44] <helenclarko> hmm.
85: [02:55:49] <helenclarko> Yeah, im lost
86: [02:56:05] <helenclarko> I just want to minify my files
87: [02:56:35] <zippy> what is the actual path to your javascript/jqueryb8ff.js
88: [02:56:46] <zippy> sorry
89: [02:56:49] <zippy> didn't read up
90: [02:57:00] <spronk> helenclarko are you getting an assets/_combinedfiles folder?
91: [02:57:20] <spronk> also, flush
92: [02:57:23] <zippy> yea it wont combine unless production
93: [02:57:24] <helenclarko> at the moment, I just changed it to themes/simple/javascript/jqueryb8ff.js
94: [02:57:37] <helenclarko> Yeah I have assets/_combinedfile
95: [02:57:37] <zippy> Requirements::javascript("themes/simple/javascript/jqueryb8ff.js");
96: [02:57:46] <helenclarko> zippy, yup
97: [02:57:46] <zippy> if you just do it single, that work?
98: [02:58:43] <zippy> your searching the whole page?
99: [02:58:58] <zippy> it will go to the bottom, but if you have an open script tag it will dump it above that
100: [02:59:10] <zippy> helenclarko: single file work?
101: [03:00:17] <helenclarko> Okay let me see
102: [03:00:19] * zippy sits here.. tapping the desk...
103: [03:01:22] <spronk> :D
104: [03:06:49] <helenclarko> ooooooo Somethings working here
105: [03:06:55] <helenclarko> Its creating the file
106: [03:08:36] <zippy> you sort it out?
107: [03:10:25] * micmania1 quit (Quit: micmania1)
108: [03:11:36] * micmania1 has joined #silverstripe
109: [03:11:43] <zippy> suspense..
110: [03:12:38] <helenclarko> Hmmm, everything seems to work, but the home page
111: [03:12:50] <zippy> Are you doing
112: [03:13:13] <helenclarko> oh weird. its not loading the file on the home page
113: [03:13:22] <zippy> HomePage extends Page
114: [03:13:29] <zippy> you set the page type to HomePage?
115: [03:15:01] <helenclarko> I have yes
116: [03:16:42] <helenclarko> What have I done on homepage to stop it from pasting the requirements
117: [03:20:21] <zippy> are you calling init in HomePage but not calling parent::init() ?
118: [03:26:07] <spronk> kaneo on the 50
119: [03:26:08] <spronk> nice
120: [03:26:27] <spronk> 84 required, fucktons of overs left
121: [03:26:31] <spronk> fucktons of wickets
122: [03:27:27] <spronk> kane. #legend
123: [03:29:13] <Nightjar> oi spronk
124: [03:29:14] <Nightjar> hi
125: [03:29:18] <spronk> pyrah
126: [03:29:25] * spronk tips hat
127: [03:29:57] <Nightjar> bruh, y4u ignore dem /msg ?
128: [03:30:01] <Nightjar> :<
129: [03:30:09] <spronk> oops
130: [03:30:11] * spronk saws
131: [03:33:26] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
132: [03:40:10] <helenclarko> Okay, no idea why the home page wont add the script tag, ive added an if statement which adds it in.
133: [03:40:17] <helenclarko> otherwise working fine
134: [04:05:47] * DanaeNZ quit (Remote host closed the connection)
135: [04:06:23] * DanaeNZ has joined #silverstripe
136: [04:06:24] * Nightjar quit (Quit: Leaving)
137: [04:07:27] <spronk> totally fucking got this #NZLvsBANGLES
138: [04:10:32] * DanaeNZ quit (Ping timeout: 252 seconds)
139: [04:49:51] * micmania1 quit (Quit: micmania1)
140: [04:49:59] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
141: [05:01:23] * zippy has joined #silverstripe
142: [05:03:36] <zippy> spronk: easy as pie eh
143: [05:03:39] * zippy quit (Client Quit)
144: [05:03:41] <spronk> yeeep
145: [05:10:19] * Pyromanik has joined #silverstripe
146: [05:21:44] * helenclarko quit (Read error: Connection reset by peer)
147: [05:53:42] * janneklouman-- has joined #silverstripe
148: [05:58:10] * janneklouman-- quit (Ping timeout: 240 seconds)
149: [06:22:58] * spronk quit (Quit: I may need a longer sleep timer...)
150: [07:06:19] * howardgrigg has joined #silverstripe
151: [08:06:47] * wmk has joined #silverstripe
152: [08:07:50] * DanaeNZ has joined #silverstripe
153: [08:12:11] * DanaeNZ quit (Ping timeout: 256 seconds)
154: [08:14:00] * pweh has joined #silverstripe
155: [08:15:43] * Mike123 has joined #silverstripe
156: [08:24:33] * deschebbs has joined #silverstripe
157: [08:27:51] * janneklouman-- has joined #silverstripe
158: [08:32:35] * janneklouman-- quit (Ping timeout: 240 seconds)
159: [08:55:10] * gelignite has joined #silverstripe
160: [09:05:08] * janneklouman-- has joined #silverstripe
161: [09:06:18] * kinglozzer has joined #silverstripe
162: [09:22:32] * filisko has joined #silverstripe
163: [09:30:47] * pweh quit (Read error: Connection reset by peer)
164: [09:32:18] * Pyromanik quit (Quit: Leaving)
165: [09:52:12] * agent44 has joined #silverstripe
166: [09:55:58] * howardgrigg quit (Remote host closed the connection)
167: [09:56:34] * howardgrigg has joined #silverstripe
168: [10:46:19] * samsamek has joined #silverstripe
169: [11:34:19] * agent44 quit (Quit: zzz)
170: [11:48:34] * neilf__ has joined #silverstripe
171: [12:03:38] * agent44 has joined #silverstripe
172: [12:09:14] * DanaeNZ has joined #silverstripe
173: [12:13:40] * DanaeNZ quit (Ping timeout: 240 seconds)
174: [12:40:23] * samsamek quit (Quit: samsamek)
175: [12:40:56] * samsamek has joined #silverstripe
176: [13:00:52] * DanaeNZ has joined #silverstripe
177: [13:01:10] * samsamek quit (Quit: samsamek)
178: [13:37:23] * samsamek has joined #silverstripe
179: [13:54:34] * UndefinedOffset has joined #silverstripe
180: [13:54:36] * neilf__ quit (Quit: Connection closed for inactivity)
181: [14:08:40] * muskie9 has joined #silverstripe
182: [14:08:56] * filisko quit (Ping timeout: 252 seconds)
183: [14:13:41] * filisko has joined #silverstripe
184: [14:23:41] * filisko quit (Ping timeout: 248 seconds)
185: [14:25:35] * wmk quit (Ping timeout: 255 seconds)
186: [14:25:45] * Mike123 quit (Quit: Page closed)
187: [14:36:53] * filisko has joined #silverstripe
188: [14:58:35] * frustrated has joined #silverstripe
189: [14:59:25] <frustrated> Does anyone know how to return a filename for a summary field?
190: [15:01:26] <kinglozzer> frustrated: $summary_fields = ['File.Name' => 'File name']; ?
191: [15:01:31] <kinglozzer> Assuming 'File' is the name of the relation
192: [15:02:09] <frustrated> oh.
193: [15:02:17] <frustrated> That was FAR easier than I was making it out to be.
194: [15:03:11] <frustrated> I was trying to do a whole custom function, similar to thumbnails.
195: [15:09:24] <frustrated> Thanks Lozzer. You just saved me much needed time!
196: [15:09:42] <kinglozzer> No problem :)
197: [15:20:04] * UndefinedOffset quit (Quit: Leaving.)
198: [15:33:32] * DanaeNZ quit (Ping timeout: 255 seconds)
199: [15:34:50] * muskie9 quit (Ping timeout: 240 seconds)
200: [15:41:28] * filisko quit (Ping timeout: 245 seconds)
201: [15:46:52] * deschebbs quit (Quit: Konversation terminated!)
202: [15:47:14] * deschebbs has joined #silverstripe
203: [15:48:56] * cupcake has joined #silverstripe
204: [15:50:12] * filisko has joined #silverstripe
205: [15:51:56] * deschebbs quit (Ping timeout: 240 seconds)
206: [16:12:41] * UndefinedOffset has joined #silverstripe
207: [16:28:08] * filisko quit (Ping timeout: 245 seconds)
208: [16:28:35] * cupcake quit (Ping timeout: 260 seconds)
209: [16:37:41] * muskie9 has joined #silverstripe
210: [16:43:10] * filisko has joined #silverstripe
211: [17:05:16] * janneklouman-- quit (Ping timeout: 240 seconds)
212: [17:31:20] * DanaeNZ has joined #silverstripe
213: [17:31:50] * kinglozzer quit ()
214: [17:34:44] * deschebbs has joined #silverstripe
215: [17:35:35] * DanaeNZ quit (Ping timeout: 240 seconds)
216: [17:50:10] * filisko quit (Ping timeout: 240 seconds)
217: [18:03:01] * filisko has joined #silverstripe
218: [18:07:55] * agent44 quit (Quit: zzz)
219: [18:12:07] * deschebbs quit (Quit: Konversation terminated!)
220: [18:12:56] * deschebbs has joined #silverstripe
221: [18:16:53] * deschebbs quit (Client Quit)
222: [18:38:05] * filisko quit (Ping timeout: 240 seconds)
223: [18:53:33] * filisko has joined #silverstripe
224: [18:54:58] * janneklouman-- has joined #silverstripe
225: [18:55:01] * Nightjar has joined #silverstripe
226: [18:58:58] * janneklouman-- quit (Ping timeout: 240 seconds)
227: [19:36:59] * DanaeNZ has joined #silverstripe
228: [19:37:01] * adrexia has joined #silverstripe
229: [19:41:26] * DimiStripe quit (Quit: DimiStripe)
230: [19:42:35] * filisko quit (Ping timeout: 240 seconds)
231: [19:57:15] * filisko has joined #silverstripe
232: [19:59:44] * micmania1 has joined #silverstripe
233: [20:00:23] <ss-helper> Add Google Recaptcha on a SilverStripe form - http://stackoverflow.com/questions/41536338/add-google-recaptcha-on-a-silverstripe-form
234: [20:06:16] * trash_ has joined #silverstripe
235: [20:06:19] <trash_> hi all
236: [20:06:34] <frustrated> hello
237: [20:07:21] <muskie9> o/
238: [20:11:51] <adrexia> hi
239: [20:21:33] <trash_> hmmm am I doing something wrong here?
240: [20:21:55] <trash_> I'm trying to attach an extension to the file
241: [20:22:02] <trash_> in the yml file I have
242: [20:22:17] <trash_> File:
243: [20:22:23] <trash_> extenstions:
244: [20:22:25] <trash_> - FileExtension
245: [20:22:47] <muskie9> trash_ what does your FileExtension extend?
246: [20:22:47] <trash_> but it does not create the additional columns after dev/build?flush=all
247: [20:23:01] <muskie9> Extension or DataExtension
248: [20:23:02] <trash_> DataExtension as it should be
249: [20:23:23] <trash_> if I add this File::add_extension('FileExtension'); in _config.php it's working
250: [20:23:35] <muskie9> and just to double check, under File in your yml file, it's extension and not extenstions
251: [20:24:11] <muskie9> er, extensions rather
252: [20:24:27] <trash_> thank you
253: [20:24:40] <trash_> have found the issue - typo in extenstions
254: [20:25:19] <trash_> one letter as usual
255: [20:25:33] <muskie9> lol, I've done that many times
256: [20:27:20] <trash_> me too
257: [20:27:35] <trash_> and phpstorm is showing you the typos
258: [20:27:48] <trash_> but for some reason it does not show this one in the yml file
259: [20:28:03] <muskie9> ya, spell check in the yml files is lacking I think
260: [20:29:30] <frustrated> can I set my max file size in the yml?
261: [20:30:25] <muskie9> frustrated for upload fields yes, but it also checks the server's ini settings and will take the lesser of the two, so if ini is 2mb and you spec 16mb, it will still only be 2mb
262: [20:30:55] <frustrated> I am 99% certain the ini should be larger.
263: [20:31:17] <muskie9> echo phpinfo() or whatever it is and you can be sure ;)
264: [20:32:52] <frustrated> yeah, it's 8M
265: [20:32:58] <frustrated> in my phpinfo
266: [20:33:03] <frustrated> wait
267: [20:33:04] <frustrated> no
268: [20:33:09] <frustrated> you're right. damn it. lol
269: [20:33:14] <muskie9> lol
270: [20:33:46] <muskie9> here's how we've done it for an extended upload field for images: https://github.com/dynamic/silverstripe-imageuploadfield/blob/master/code/ImageUploadField.php#L24-L26
271: [20:34:35] <frustrated> perfect. thank you!
272: [20:34:46] <frustrated> now I have to get the IT admin to update the PHP
273: [20:36:24] <muskie9> can you override settings via php?
274: [20:36:36] <muskie9> or via htaccess?
275: [20:36:56] <frustrated> It's an IIS server. Maybe web.config has a setting.
276: [20:37:01] <frustrated> I fucking HATE IIS lol
277: [20:37:13] <muskie9> ya, in that case let the IT peeps figure it out
278: [20:37:24] <frustrated> hahah
279: [20:59:59] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
280: [21:16:59] * howardgrigg quit (Remote host closed the connection)
281: [21:17:06] * howardgrigg has joined #silverstripe
282: [21:19:04] <frustrated> Hey, Muskie. Do you have any insight on having Tags appear in the GridFieldSummary
283: [21:19:20] <muskie9> like a comma separated set?
284: [21:19:30] <frustrated> yeah
285: [21:20:08] <frustrated> wait... i may have it.
286: [21:20:18] <muskie9> make a getter that generates the string... getMyTags(){ return implode(', ', $this->TagsRelation()->column('TitleField')); }
287: [21:21:00] <muskie9> then in summary fields on the object that has tags you do a 'MyTags' => 'Tags' or something
288: [21:21:05] <frustrated> Yeah, that is essentially what I did.
289: [21:21:13] <muskie9> 👍
290: [21:21:57] <frustrated> i did this
291: [21:21:58] <frustrated> return join(', ', $this->FilterTags()->Column('Title'));
292: [21:22:17] <muskie9> that'll work too
293: [21:23:19] * filisko quit (Remote host closed the connection)
294: [21:24:46] * janneklouman-- has joined #silverstripe
295: [21:29:01] * janneklouman-- quit (Ping timeout: 255 seconds)
296: [21:32:43] * testtesttest has joined #silverstripe
297: [21:32:43] <ss-helper> testtesttest: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
298: [21:32:51] * testtesttest quit (Client Quit)
299: [21:45:11] * UndefinedOffset quit (Quit: Leaving.)
300: [21:55:33] * filisko has joined #silverstripe
301: [21:56:27] * janneklouman-- has joined #silverstripe
302: [22:08:58] * janneklouman-- quit (Ping timeout: 240 seconds)
303: [22:28:47] * Kapdap quit (Remote host closed the connection)
304: [22:29:24] * Kapdap has joined #silverstripe
305: [22:36:07] * janneklouman-- has joined #silverstripe
306: [22:37:36] * Kapdap quit (Quit: Lost terminal)
307: [22:38:14] * Kapdap has joined #silverstripe
308: [22:40:59] * janneklouman-- quit (Ping timeout: 252 seconds)
309: [22:51:53] * spronk has joined #silverstripe
310: [22:54:38] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
311: [23:00:01] * ss-helper quit (Remote host closed the connection)
312: [23:00:14] * ss-helper has joined #silverstripe
313: [23:11:39] * DanaeNZ quit (Remote host closed the connection)
314: [23:12:11] * DanaeNZ has joined #silverstripe
315: [23:16:28] * DanaeNZ quit (Ping timeout: 245 seconds)
316: [23:32:05] * trash_ quit (Ping timeout: 260 seconds)
317: [23:40:46] * filisko quit (Ping timeout: 260 seconds)
318: [23:47:39] * samsamek quit (Quit: samsamek)
319: [23:48:26] * DanaeNZ has joined #silverstripe
320: [23:52:24] * micmania1 quit (Quit: micmania1)

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