#silverstripe IRC Log

IRC log for 4 September 2015

All timestamps are in UTC.

1: [00:03:13] * Stomach quit (Quit: zzz)
2: [00:11:59] * wmk has joined #silverstripe
3: [00:17:19] * wmk quit (Ping timeout: 260 seconds)
4: [00:19:44] * adrexia has joined #silverstripe
5: [00:35:12] * MichalKleiner quit (Remote host closed the connection)
6: [00:37:12] * joelpittet quit (Remote host closed the connection)
7: [00:41:29] <spronk> god php is shit
8: [00:42:02] * wmk has joined #silverstripe
9: [00:42:56] * MichalKleiner has joined #silverstripe
10: [00:47:48] * wmk quit (Ping timeout: 265 seconds)
11: [00:52:51] * chocolatemoose has joined #silverstripe
12: [01:05:04] * Stomach has joined #silverstripe
13: [01:06:32] * micmania1 has joined #silverstripe
14: [01:10:29] * vwd has joined #silverstripe
15: [01:12:03] * jonners99 has joined #silverstripe
16: [01:12:08] * wmk has joined #silverstripe
17: [01:16:23] * jonners99 quit (Ping timeout: 252 seconds)
18: [01:17:52] * wmk quit (Ping timeout: 244 seconds)
19: [01:21:01] * vwd quit (Quit: Page closed)
20: [01:22:51] * micmania1 quit (Quit: micmania1)
21: [01:24:23] * Stomach quit (Quit: zzz)
22: [01:24:40] * MichalKleiner quit (Remote host closed the connection)
23: [01:26:34] * Stomach has joined #silverstripe
24: [01:27:30] * micmania1 has joined #silverstripe
25: [01:28:13] * Stomach quit (Client Quit)
26: [01:31:53] * irogue has joined #silverstripe
27: [01:34:58] * micmania1 quit (Quit: micmania1)
28: [01:35:03] <muskie9> http://motherfuckingwebsite.com/
29: [01:35:09] <muskie9> because it's true ^
30: [01:35:54] <irogue> https://dl.dropboxusercontent.com/u/4618071/IMG_20150904_131003.jpg
31: [01:37:01] <muskie9> what's in the box? nippy's?
32: [01:37:16] <irogue> yup
33: [01:37:40] <irogue> nip selfie with Stomach
34: [01:37:44] <muskie9> I've never had, and probably won't unless I make it to NZ or they export to the US
35: [01:37:48] <muskie9> nice!
36: [01:37:52] <muskie9> !nippy
37: [01:38:01] <muskie9> what's the shortcut?!
38: [01:38:29] <irogue> !notes nippys
39: [01:38:30] <ss-helper> https://github.com/ss-irc/notes/wiki/nippys
40: [01:38:36] <muskie9> there it is
41: [01:39:05] <muskie9> the page has expanded since I last saw it, 3 days ago lol
42: [01:40:08] <muskie9> irogue I'm guessing you were at PHPNZ?
43: [01:40:14] <irogue> we are yeah
44: [01:40:45] <muskie9> I now there's a chance that the event will post vids, but any plans for SS posting vids of talks they gave?
45: [01:42:11] * wmk has joined #silverstripe
46: [01:42:37] <irogue> nah SS didn't film them seperately from the event
47: [01:42:43] <muskie9> bummer
48: [01:43:13] <muskie9> guess I'll just have to save up and get to NZ
49: [01:48:06] * wmk quit (Ping timeout: 255 seconds)
50: [01:53:35] <spronk> hmm
51: [01:53:46] <spronk> who knows lots about multibyte strings?
52: [01:54:11] <muskie9> spronk is that what you've been hrmmm'ing about? I have no idea btw
53: [01:54:17] <spronk> yes yes it is
54: [01:54:35] <spronk> i need a way to count the number of 16-byte encodable characters in a UTF-16 string
55: [01:54:41] <muskie9> I wish I could help!
56: [01:54:54] <spronk> but...
57: [01:55:17] <spronk> i'm not sure whether mb_strlen($str, 'UCS-2LE') will work, because some of my characters aren't encodable in UCS-2
58: [01:55:24] <spronk> but ucs-2le is a plain 16-bit encoding
59: [01:57:11] <muskie9> sorry spronk, it's already over my head http://puu.sh/jZb1Q/2029bc2851.gif
60: [02:05:40] <Hailwood> Has anyone setup ss-shop to work over ajax - specifically so you can add products to your cart without a page refresh?
61: [02:05:53] <Hailwood> there is the shop_ajax package, but that appears to only affect the cart page
62: [02:07:19] * Stomach has joined #silverstripe
63: [02:10:27] * MichalKleiner has joined #silverstripe
64: [02:10:27] * Stomach quit (Client Quit)
65: [02:12:17] * wmk has joined #silverstripe
66: [02:12:50] * Stomach has joined #silverstripe
67: [02:15:40] * zlinux has joined #silverstripe
68: [02:16:21] * Stomach quit (Client Quit)
69: [02:18:11] * wmk quit (Ping timeout: 260 seconds)
70: [02:21:38] * Stomach has joined #silverstripe
71: [02:23:07] <spronk> my god it would be awesome if php strings had a notion of knowing their own encoding :@
72: [02:23:16] <spronk> fuck you php.
73: [02:27:23] <irogue> I quite liked the python2 method for keeping strings bc while also supporting unicode
74: [02:27:44] <spronk> yeahh
75: [02:27:49] <spronk> but python3 strings are infinitely nicer
76: [02:28:08] * Stomach quit (Quit: zzz)
77: [02:28:51] <irogue> oh for sure, but I feel like PHP could *at least* implement the python2 style
78: [02:28:56] <spronk> mm :(
79: [02:29:55] <spronk> also
80: [02:30:03] <spronk> the fact that there is no way to enter a unicode codepoint
81: [02:30:07] <spronk> and get an encoded string
82: [02:30:10] <spronk> is fucking absurd.
83: [02:31:03] <mahfuz> Hey guys. The shortcode doc says nested shortcode will not work properly (https://docs.silverstripe.org/en/3.2/developer_guides/extending/shortcodes/). Is there a way around it?
84: [02:31:48] <irogue> spronk: https://wiki.php.net/rfc/unicode_escape
85: [02:31:58] <spronk> ha
86: [02:32:31] <irogue> its in php7 ;)
87: [02:32:51] <spronk> about time
88: [02:33:07] <irogue> i literally only know this cos it was mentioned like 3 talks ago
89: [02:33:16] <spronk> :D
90: [02:41:23] * willr quit (Ping timeout: 265 seconds)
91: [02:41:38] * willr has joined #silverstripe
92: [02:42:20] * wmk has joined #silverstripe
93: [02:47:48] * wmk quit (Ping timeout: 264 seconds)
94: [02:52:16] * muskie9 quit (Read error: Connection reset by peer)
95: [02:52:29] <Hailwood> Hey Guys, Is there a specific login/registration link for ss-shop?
96: [02:53:07] * muskie9 has joined #silverstripe
97: [02:53:56] * eagles0513875 quit (Ping timeout: 252 seconds)
98: [02:54:40] * torican quit (Ping timeout: 252 seconds)
99: [02:55:33] * torican has joined #silverstripe
100: [02:56:04] <irogue> Hailwood: it'd just be /Security/login I believe
101: [02:56:12] * eagles0513875 has joined #silverstripe
102: [02:59:13] * r_hector has joined #silverstripe
103: [03:01:55] <irogue> Hailwood: fyi I think both madmatt and willr worked on https://www.skinny.co.nz/shop/ which is using ss-shop, so they might be able to help if you have specific technical issues
104: [03:10:37] * irogue quit (Quit: Textual IRC Client: www.textualapp.com)
105: [03:11:24] * MichalKleiner quit (Remote host closed the connection)
106: [03:12:23] * wmk has joined #silverstripe
107: [03:17:12] <Hailwood> Cheers
108: [03:18:07] * wmk quit (Ping timeout: 252 seconds)
109: [03:26:49] * willr quit (Quit: willr)
110: [03:28:11] <spronk> so
111: [03:28:23] <spronk> php and UCS-2 is difficult
112: [03:29:08] * eagles0513875 quit (Ping timeout: 244 seconds)
113: [03:33:34] * eagles0513875 has joined #silverstripe
114: [03:36:48] * Error404NotFound has joined #silverstripe
115: [03:40:07] * Stomach has joined #silverstripe
116: [03:40:22] * Stomach quit (Client Quit)
117: [03:40:54] * Stomach has joined #silverstripe
118: [03:41:36] * Stomach quit (Client Quit)
119: [03:42:07] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
120: [03:42:28] * wmk has joined #silverstripe
121: [03:42:31] * micmania1 has joined #silverstripe
122: [03:43:40] * MichalKleiner has joined #silverstripe
123: [03:47:14] * adrexia has joined #silverstripe
124: [03:48:05] * wmk quit (Ping timeout: 265 seconds)
125: [03:51:58] * micmania1 quit (Quit: micmania1)
126: [04:07:44] * Stomach has joined #silverstripe
127: [04:08:45] * micmania1 has joined #silverstripe
128: [04:12:29] * wmk has joined #silverstripe
129: [04:15:10] * Stomach quit (Quit: zzz)
130: [04:18:32] * wmk quit (Ping timeout: 265 seconds)
131: [04:22:14] * Stomach has joined #silverstripe
132: [04:23:09] * Stomach quit (Client Quit)
133: [04:36:20] * r_hector quit (Remote host closed the connection)
134: [04:42:36] * wmk has joined #silverstripe
135: [04:48:01] * wmk quit (Ping timeout: 265 seconds)
136: [04:57:30] * micmania1 quit (Ping timeout: 240 seconds)
137: [04:58:30] * micmania1 has joined #silverstripe
138: [04:58:32] * micmania1 quit (Client Quit)
139: [05:00:57] * helenclarko quit (Read error: Connection reset by peer)
140: [05:02:40] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
141: [05:06:04] * travis-ci has joined #silverstripe
142: [05:06:05] <travis-ci> silverstripe/silverstripe-framework#5770 (master - a083618 : Sam Minnée): The build passed.
143: [05:06:05] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/7fa97c4d9e90...a08361810c7f
144: [05:06:05] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/78699710
145: [05:06:05] * travis-ci has left #silverstripe
146: [05:08:30] * Hailwood quit (Remote host closed the connection)
147: [05:12:36] * wmk has joined #silverstripe
148: [05:17:25] * chocolatemoose quit (Ping timeout: 246 seconds)
149: [05:18:07] * wmk quit (Ping timeout: 244 seconds)
150: [05:19:43] * chocolatemoose has joined #silverstripe
151: [05:21:23] * samlande has joined #silverstripe
152: [05:21:44] * samlander quit (Ping timeout: 244 seconds)
153: [05:27:44] * jonners99 has joined #silverstripe
154: [05:28:17] * MichalKleiner quit (Remote host closed the connection)
155: [05:28:17] * Olliepop has joined #silverstripe
156: [05:32:35] * jonners99 quit (Ping timeout: 264 seconds)
157: [05:34:33] * Olliepop quit (Ping timeout: 246 seconds)
158: [05:34:58] * chocolatemoose quit ()
159: [05:36:47] <spronk> https://bitbucket.org/solvam/smstools there we go. Library to calculate multipart lengths for GSM messages.
160: [05:40:43] <spronk> http://stackoverflow.com/questions/8349831/best-way-to-detect-number-of-sms-needed-to-send-a-text/32389803#32389803 accompanying stackoverflow answer
161: [05:42:41] * wmk has joined #silverstripe
162: [05:48:21] <guci0> Morning
163: [05:48:49] * wmk quit (Ping timeout: 252 seconds)
164: [06:11:39] * mahfuz quit (Ping timeout: 246 seconds)
165: [06:12:46] * wmk has joined #silverstripe
166: [06:14:49] <ss-helper> Adding a button to the CMS in SilverStripe - http://stackoverflow.com/questions/23353998/adding-a-button-to-the-cms-in-silverstripe
167: [06:18:36] * wmk quit (Ping timeout: 244 seconds)
168: [06:34:28] * wmk has joined #silverstripe
169: [06:36:46] * Error404NotFound quit (Ping timeout: 265 seconds)
170: [06:40:22] <wmk> gmorning
171: [06:40:52] * Eliseth has joined #silverstripe
172: [06:49:44] * Error404NotFound has joined #silverstripe
173: [06:53:56] * Mike123 has joined #silverstripe
174: [07:03:11] * Error404NotFound quit (Ping timeout: 264 seconds)
175: [07:05:13] * zlinux_ has joined #silverstripe
176: [07:08:03] * zlinux quit (Ping timeout: 255 seconds)
177: [07:14:50] * Error404NotFound has joined #silverstripe
178: [07:35:03] * swaiba has joined #silverstripe
179: [07:41:14] * PV_ has joined #silverstripe
180: [07:41:15] <ss-helper> PV_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
181: [07:41:32] <PV_> was wondering if silverstripe is escaping html output by default?
182: [07:41:37] <PV_> some & chars and listed as html
183: [07:44:37] <ss23> Um
184: [07:44:38] <ss23> Depends
185: [07:44:43] <ss23> Best thing is to try it and see
186: [07:46:29] <wmk> PV_, most of the time, yes
187: [07:46:45] <PV_> is it possible to get & instead o amp; stuff somehow?
188: [07:47:02] <wmk> in template: $Foo <- escaped $Foo.RAW <- unescaped
189: [07:47:08] <PV_> i have sources SS framework code but havent found a way to disable this or is there a "wrapper" for printing full html in the SS?
190: [07:47:21] <PV_> so just adding .RAW should fix it?
191: [07:47:24] <wmk> well, escaping makes sense
192: [07:47:36] <wmk> yup, add .RAW when you don't need it escaped
193: [07:47:47] <wmk> but escaping by default is some kind of security
194: [07:47:54] <PV_> so this, <p>$Summary.Summary.RAW</p> should show something like P&O instead of html chars?
195: [07:48:09] <wmk> yup
196: [07:48:52] <wmk> i hope you can chain it, in doubt try $Summary.RAW.Summary ... ?
197: [07:54:26] * elgabbu__ has joined #silverstripe
198: [07:54:26] <ss-helper> elgabbu__: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
199: [07:56:39] * elgabbu quit (Ping timeout: 246 seconds)
200: [07:58:40] * kinglozzer has joined #silverstripe
201: [08:02:58] * muskie9 quit (Ping timeout: 244 seconds)
202: [08:07:56] <PV_> trying to fix a silverstripe download file with file extension but according to docs, it still fails to work anyone could lend me a look?
203: [08:08:11] <PV_> im not into SS havent used it much before this is a project im picking up on
204: [08:09:10] <PV_> tried it with this code https://gist.github.com/anonymous/3289950c6f1465f07a47 but fails to downlod the file with extension anyway
205: [08:19:20] * zlinux has joined #silverstripe
206: [08:21:46] * zlinux_ quit (Ping timeout: 240 seconds)
207: [08:25:43] * spronk quit (Quit: I may need a longer sleep timer...)
208: [08:31:46] * torican quit (Ping timeout: 240 seconds)
209: [08:32:12] * torican has joined #silverstripe
210: [08:39:25] * r_hector has joined #silverstripe
211: [08:52:05] * spronka has joined #silverstripe
212: [08:52:33] <kinglozzer> PV_: Your second Content-Disposition header overrides the first
213: [08:52:49] <kinglozzer> The method name "addHeader" is misleading, it should be "setHeader" (it'll be renamed in a future SS version)
214: [08:54:17] <PV_> ah okay isee
215: [08:54:24] <PV_> yes i was testing around a bit
216: [08:54:28] <PV_> seems that the filename is just never send
217: [08:54:31] <PV_> i have to debug this a bit more
218: [08:54:51] <PV_> the 'download' part i overruled with default php commands to testdrvive
219: [08:54:55] <PV_> but also failed
220: [08:55:24] <kinglozzer> PV_: You can do $response = SS_HTTPRequest::send_file(file_get_contents($file->getFullPath()), $file->getFileName())
221: [08:56:12] <kinglozzer> Also, where is that code being called? If it's not in a controller, you might have issues there
222: [08:58:30] * jonners99 has joined #silverstripe
223: [09:00:05] <PV_> kinglozzer okay thank you im going to try that
224: [09:00:51] <PV_> kinglozzer its called from the controller
225: [09:01:00] <PV_> it does are return there return $this->response;
226: [09:01:08] <PV_> im just going to testdrive your suggestion
227: [09:01:53] <kinglozzer> PV_: if you use my example you'll need to change it to return $response
228: [09:02:00] <kinglozzer> But yeah that sounds okay
229: [09:03:13] * jonners99 quit (Ping timeout: 265 seconds)
230: [09:04:39] <PV_> would return SS_HTTPRequest::send_file(file_get_contents($file->getFullPath()), $file->getFileName());
231: [09:04:40] <PV_> work ? i think so yes
232: [09:14:06] <kinglozzer> PV_: Yes it should work
233: [09:20:12] <PV_> kinglozzer works but i only get an extra assets_ before the filename
234: [09:20:16] <PV_> not sure why that happens
235: [09:20:48] <PV_> i mean the full path is also in the filename
236: [09:20:51] <PV_> is there a way to prevent that somehow?
237: [09:21:49] <kinglozzer> PV_: Oh, sorry, replace $file->getFileName() with $file->Name
238: [09:32:05] <PV_> thank you kinglozzer much appreciated
239: [09:48:20] <Motoservo> Anybody care to check over a bit of code and tell me why my addFieldToTab isn’t adding anything?
240: [09:48:24] <Motoservo> http://pastie.org/private/dswmthop3armkuiti0ic7q
241: [09:48:43] <Motoservo> After a few hours of chipping away at this my eyes are going buggy.
242: [09:51:00] <kinglozzer> Motoservo: It's in the wrong class
243: [09:51:17] <kinglozzer> getCMSFields() should be inside the Page class, not Page_Controller
244: [09:51:24] <Motoservo> No way. Really?
245: [09:51:32] <kinglozzer> Yep :P
246: [09:51:37] <Motoservo> Man, how would I miss that.
247: [09:51:46] <kinglozzer> Long day? ;)
248: [09:52:25] <Motoservo> Way.
249: [09:52:42] <Motoservo> And on that note. I’m fixing this and counting some long overdue zzzs. Thanks, man.
250: [09:53:36] <Motoservo> I was looking at some old code (i haven’t built a site in a few years) and that page was so long I guess I just missed which class it was. Should have looked at one of the easier sites I’d built.
251: [09:54:33] <Motoservo> What was weird was that there was a record in the class’es table with the new attributes.
252: [09:54:36] <Motoservo> But they were null.
253: [09:54:42] <Motoservo> That was throwing me off.
254: [09:55:04] * Pyasdlfk has joined #silverstripe
255: [09:55:04] <ss-helper> Pyasdlfk: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
256: [09:55:15] <Motoservo> But after truncating it I couldn’t reproduce it.
257: [09:56:30] <swaiba> Pyasdlfk o/
258: [09:59:17] * jonners99 has joined #silverstripe
259: [10:03:52] * jonners99 quit (Ping timeout: 244 seconds)
260: [10:19:57] * PV_ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
261: [10:31:42] * Mike123 quit (Ping timeout: 246 seconds)
262: [10:32:46] <wmk> Pyasdlfk, ☺/
263: [10:40:02] <Pyasdlfk> yo wmk :>
264: [10:40:08] <Pyasdlfk> yo swaiba :>
265: [10:42:26] <Pyasdlfk> brought in some Lapsang souchong for work
266: [10:42:39] <Pyasdlfk> wholey hell should have seen the lads face.
267: [10:42:55] <Pyasdlfk> Like I'd just stabbed his dog or something.
268: [10:52:12] <Pyasdlfk> (it's a type of tea for those without a fast route to google)
269: [10:57:04] * bucketface has joined #silverstripe
270: [10:58:21] <bucketface> Hi guys, I have MyPage extends Page. MyPage->onBeforeWrite returns false if you are trying to create a 2nd one in the CMS. I only want there to be a max of one. By returning "false" in onBeforeWrite, it comes up with a toast error in top-right corner of the CMS but the error is nonsensical to end-user. What is the correct way to report an error to CMS in this fashion?
271: [11:00:05] * jonners99 has joined #silverstripe
272: [11:00:23] <Pyasdlfk> bucketface: there isn't really one.
273: [11:00:39] <Pyasdlfk> unfortunately, so far as I'm aware. kinglozzer might have a better idea.
274: [11:01:29] <Pyasdlfk> bucketface: it may involve changing the return code, and/or message, and/or coding in entwine to modify the javascript functionality.
275: [11:02:19] <bucketface> Ok that's enough information to settle down my googling. Thanks mate
276: [11:02:25] <kinglozzer> Pyasdlfk: where have you been? D:
277: [11:02:31] <Pyasdlfk> kinglozzer: Seahouses.
278: [11:03:03] <kinglozzer> bucketface: public function canCreate() { return self::get()->count() ? false : parent::canCreate(); }
279: [11:03:05] <kinglozzer> or something
280: [11:03:09] <kinglozzer> that's how I normally do it anyway
281: [11:03:18] <swaiba> Pyasdlfk - https://www.youtube.com/watch?v=eELH0ivexKA
282: [11:03:24] <Pyasdlfk> kinglozzer: he's got the error bit going it seems, wants to know how to modify the JS notifications in the CMS
283: [11:03:31] <kinglozzer> Ohhhh yeah sorry I misread
284: [11:03:43] <kinglozzer> bucketface: Try: throw new ValidationException('THERE CAN BE ONLY ONE');
285: [11:03:44] <bucketface> I think that is what I want though
286: [11:03:49] <bucketface> that would disable creation of that page if there is already one
287: [11:03:51] <bucketface> correct?
288: [11:03:52] * Copperis has joined #silverstripe
289: [11:03:53] <kinglozzer> Yeah
290: [11:04:02] <bucketface> yeah that's even better than the way im trying to do it
291: [11:04:05] <kinglozzer> Users can still change the page type with that method though
292: [11:04:08] <kinglozzer> I think
293: [11:04:14] <kinglozzer> But users gonna user
294: [11:04:16] <bucketface> ok, then it will hit onBeforeWrite and error out
295: [11:04:16] * jonners99 quit (Ping timeout: 246 seconds)
296: [11:04:23] <bucketface> sounds like the way to go
297: [11:04:30] <Pyasdlfk> bucketface: yeah, you'll need to check that id != this.id
298: [11:04:57] <Pyasdlfk> if using onbeforewrite that is
299: [11:06:58] <kinglozzer> Throwing a validation exception like that works for DataObjects in GridFields, but I dunno about pages.... looking at CMSMain, write() is not wrapped in a try/catch so it might not be all pretty :(
300: [11:08:42] <Pyasdlfk> swaiba: lol what is that?
301: [11:08:48] <Pyasdlfk> oh it's a song about tea
302: [11:08:52] <Pyasdlfk> lol :D
303: [11:08:55] <bucketface> that's cool, that'll work. I mean if I cared more I could probably get some custom JS in there and catch this error to display my own. Would make sense if I have other cases where this would be useful but overkill right now probs
304: [11:11:18] <Pyasdlfk> probs. You'll need to be familiar with entwine too
305: [11:24:04] * DimiStripe has joined #silverstripe
306: [11:40:34] * Stomach has joined #silverstripe
307: [11:47:54] * R\w\C has joined #silverstripe
308: [12:00:51] * jonners99 has joined #silverstripe
309: [12:01:00] * Error404NotFound quit (Ping timeout: 255 seconds)
310: [12:05:06] * jonners99 quit (Ping timeout: 240 seconds)
311: [12:12:58] <bucketface> Got a bizzare problem of trying to connect to Amazon RDS database using _config.php. I put the server address to my RDS instance and correct user/pass/dbname credentials, and it displays error of trying to connect to my localhost database. Like it's ignoring the server url and falling back to localhost or something
312: [12:13:32] <bucketface> AWS settings are in check, the RDS is accessible
313: [12:13:43] <bucketface> any idea what that might be?
314: [12:13:52] <ss23> Can you show us the exact configuration (change the username/password to something random)
315: [12:13:57] * Error404NotFound has joined #silverstripe
316: [12:18:24] <bucketface> http://pastebin.com/9mcv8egF
317: [12:18:51] <ss23> Not sure sorry
318: [12:23:28] * UndefinedOffset has joined #silverstripe
319: [12:23:35] <bucketface> the question was for my friend, he put in wrong pw. Not me. My friend. But seriously. I'm writing this to implicate him as he said it's fine to admit idiocy.
320: [12:23:43] <ss23> heh
321: [12:25:08] <wmk> Pyasdlfk, some green tea?
322: [12:28:21] * Stomach quit (Quit: zzz)
323: [13:16:15] * darjus01 has joined #silverstripe
324: [13:20:58] * UndefinedOffset quit (Quit: Leaving.)
325: [13:22:32] * UndefinedOffset has joined #silverstripe
326: [13:23:04] <Pyasdlfk> wmk: I thought it was green, but turns out it's actually black.
327: [13:23:24] <wmk> hmmm.. should m
328: [13:23:32] * wmk should brew some tea
329: [13:25:49] <Pyasdlfk> 3.141592625
330: [13:25:59] <Pyasdlfk> ah fuck
331: [13:26:01] <kinglozzer> Pyasdlfk: you seen the tea rap thing by Doc Brown?
332: [13:26:20] <Pyasdlfk> 3.14159265359
333: [13:26:29] <Pyasdlfk> kinglozzer: I saw the video swaiba shared for me
334: [13:26:37] <Pyasdlfk> professor elemental or someboddy
335: [13:26:42] <Pyasdlfk> -1b
336: [13:26:51] <kinglozzer> Pyasdlfk: https://www.youtube.com/watch?v=FtK_vfp8po8
337: [13:27:00] <kinglozzer> For when you get the chance
338: [13:28:04] * swaiba is thinking of tea again
339: [13:28:32] <swaiba> professor elemental it is, "cahp rap" he calls it
340: [13:28:42] <swaiba> I like "fighting trousers too"
341: [13:30:33] * veb_ has joined #silverstripe
342: [13:30:35] * veb_ is now known as veb2
343: [13:31:56] * zlinux quit (Ping timeout: 252 seconds)
344: [13:35:07] <Pyasdlfk> nice kinglozzer :>
345: [13:38:05] * veb2 quit (Quit: %)
346: [13:56:23] * R\w\C has left #silverstripe
347: [14:01:36] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
348: [14:03:43] <kinglozzer> Ugh, what's the correct PHPDoc for "return $this"?
349: [14:03:54] <kinglozzer> @return $this? @return self? @return ClassName
350: [14:06:24] <Pyasdlfk> kinglozzer: depends. I'd either put ClassName or $this
351: [14:06:28] <Pyasdlfk> depending on context
352: [14:07:05] <Pyasdlfk> if it always returns the same object, then yeah, $this. Otherwise ClassName/Interface (because $this can be polymorphic, ClassName isn't so much)
353: [14:07:29] <Pyasdlfk> self is a static thing in PHP, so I probably wouldn't do that.
354: [14:07:43] <kinglozzer> Hmm, Google says return $this isn't well supported in IDEs so avoid it
355: [14:07:47] <kinglozzer> :S
356: [14:07:53] <Pyasdlfk> but depends. eg. DataList I'd use DataList (not $this), as it's a new instance.
357: [14:07:54] <kinglozzer> Let's see what ye olde PSRs say
358: [14:10:19] <kinglozzer> They don't >:(
359: [14:10:46] <kinglozzer> @return static?
360: [14:10:47] <kinglozzer> :P
361: [14:11:49] <kinglozzer> http://www.phpdoc.org/docs/latest/references/phpdoc/types.html indicates self is the only one supported
362: [14:11:56] <kinglozzer> (and classname)
363: [14:13:32] <kinglozzer> Right, Symfony uses ClassName so that's good enough for me
364: [14:14:13] <Pyasdlfk> seems legit as ClassName is pretty much just an interface anyway.
365: [14:15:20] * Mike123 has joined #silverstripe
366: [14:15:51] * R\w\C has joined #silverstripe
367: [14:21:10] <Mike123> hey guys hwo do i check if has something in that field or its empty ? $this->Whatever()->filter('Letter', is not empty);
368: [14:23:51] <Pyasdlfk> give it null
369: [14:24:23] <Pyasdlfk> oh, use exclude() not filter()
370: [14:24:34] <Mike123> hmm but i need to get all NOT NULL
371: [14:24:50] <Mike123> oh
372: [14:26:02] * saiyan has joined #silverstripe
373: [14:26:08] * saiyan quit (Client Quit)
374: [14:27:54] <wmk> Mike123, yup, exclude all with null
375: [14:39:22] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
376: [15:07:11] * joelpittet has joined #silverstripe
377: [15:12:03] * Mike123 quit (Ping timeout: 246 seconds)
378: [15:14:47] * muskie9 has joined #silverstripe
379: [15:16:34] * jonners99 has joined #silverstripe
380: [15:19:52] <darjus01> Hi all maybe someone know good responsive slider to make gallery like this? http://snag.gy/7YqcY.jpg active slide would be in center
381: [15:20:48] <Pyasdlfk> cycle2
382: [15:20:49] * jonners99 quit (Ping timeout: 246 seconds)
383: [15:21:03] <Pyasdlfk> jcarousel
384: [15:21:19] <Pyasdlfk> gnite
385: [15:21:21] * Pyasdlfk quit ()
386: [15:28:19] * PV_ has joined #silverstripe
387: [15:29:46] * PV_ quit (Client Quit)
388: [15:33:53] * Copperis quit (Ping timeout: 256 seconds)
389: [15:36:38] * Copperis has joined #silverstripe
390: [15:40:42] * swaiba quit (Remote host closed the connection)
391: [15:40:45] * bucketface quit (Ping timeout: 246 seconds)
392: [15:47:08] * kinglozzer quit ()
393: [16:03:56] <darjus01> maybe someone tried change flexslider <li></li> element image container to <figure>
394: [16:03:58] <darjus01> ?
395: [16:07:06] * samlander has joined #silverstripe
396: [16:08:57] * samlande quit (Ping timeout: 255 seconds)
397: [16:19:32] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
398: [16:32:35] * R\w\C quit (Quit: Textual IRC Client: www.textualapp.com)
399: [16:34:04] <wmk> lool, so true: http://www.commitstrip.com/en/2015/08/24/the-most-difficult-hello-world-of-your-life/
400: [16:40:39] * NETim_ quit (Quit: Leaving)
401: [16:43:07] * Werner_2_ has joined #silverstripe
402: [16:43:23] * wmk quit (Ping timeout: 264 seconds)
403: [16:51:30] * Werner_2_ quit (Ping timeout: 240 seconds)
404: [17:01:50] * samlander quit (Ping timeout: 240 seconds)
405: [17:02:00] * samlander has joined #silverstripe
406: [17:03:59] * jonners99 has joined #silverstripe
407: [17:13:11] * wmk has joined #silverstripe
408: [17:15:55] * jonners99 quit (Remote host closed the connection)
409: [17:21:29] * wmk quit (Ping timeout: 244 seconds)
410: [17:43:12] * wmk has joined #silverstripe
411: [17:51:51] * wmk quit (Ping timeout: 250 seconds)
412: [17:52:58] * darjus01 quit (Read error: Connection reset by peer)
413: [17:59:56] * Liquide has joined #silverstripe
414: [18:13:19] * wmk has joined #silverstripe
415: [18:13:25] * jonners99 has joined #silverstripe
416: [18:20:12] * gelignite has joined #silverstripe
417: [18:21:56] * wmk quit (Ping timeout: 246 seconds)
418: [18:39:57] * jonners99 quit (Remote host closed the connection)
419: [18:43:07] * samlande has joined #silverstripe
420: [18:43:23] * wmk has joined #silverstripe
421: [18:44:38] * samlander quit (Ping timeout: 244 seconds)
422: [18:51:23] * wmk quit (Ping timeout: 244 seconds)
423: [19:05:14] * UndefinedOffset quit (Read error: Connection reset by peer)
424: [19:13:21] * wmk has joined #silverstripe
425: [19:22:23] * wmk quit (Ping timeout: 264 seconds)
426: [19:33:52] * samlande quit (Ping timeout: 246 seconds)
427: [19:40:46] * jonners99 has joined #silverstripe
428: [19:40:54] * arnhoe has joined #silverstripe
429: [19:43:24] * wmk has joined #silverstripe
430: [19:44:50] * jonners99 quit (Ping timeout: 240 seconds)
431: [19:52:20] * wmk quit (Ping timeout: 265 seconds)
432: [19:57:30] * Stomach has joined #silverstripe
433: [20:13:26] * wmk has joined #silverstripe
434: [20:15:16] * madmatt_ has joined #silverstripe
435: [20:15:18] * ss23 quit (Ping timeout: 244 seconds)
436: [20:15:19] * keroberos quit (Excess Flood)
437: [20:15:19] * madmatt quit (Ping timeout: 244 seconds)
438: [20:16:10] * ss23_ has joined #silverstripe
439: [20:17:25] * tmro has joined #silverstripe
440: [20:18:57] * tmro is now known as kerozene
441: [20:19:46] * Copperis quit (Quit: Leaving)
442: [20:21:51] * wmk quit (Ping timeout: 255 seconds)
443: [20:41:34] * jonners99 has joined #silverstripe
444: [20:43:28] * wmk has joined #silverstripe
445: [20:46:00] * jonners99 quit (Ping timeout: 264 seconds)
446: [20:52:00] * wmk quit (Ping timeout: 264 seconds)
447: [21:03:18] * Stomach quit (Quit: zzz)
448: [21:13:30] * wmk has joined #silverstripe
449: [21:22:09] * wmk quit (Ping timeout: 255 seconds)
450: [21:25:12] * arnhoe quit ()
451: [21:43:36] * wmk has joined #silverstripe
452: [21:51:51] * wmk quit (Ping timeout: 256 seconds)
453: [21:58:26] * r_hector quit (Remote host closed the connection)
454: [22:13:36] * wmk has joined #silverstripe
455: [22:23:12] * wmk quit (Ping timeout: 272 seconds)
456: [22:35:47] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
457: [22:43:38] * wmk has joined #silverstripe
458: [22:52:10] * wmk quit (Ping timeout: 240 seconds)
459: [23:13:40] * wmk has joined #silverstripe
460: [23:15:23] * Olliepop has joined #silverstripe
461: [23:17:22] <Olliepop> Every time I do a /dev/build my columns are reset to utf8 (from utf8mb4), despite defining connection_charset: utf8mb4 on MySQLDatabase
462: [23:17:27] <Olliepop> Anybody have any idea?
463: [23:22:45] * wmk quit (Ping timeout: 255 seconds)
464: [23:35:36] <Olliepop> So strange: the correct charset (utf8mb4) is passed into set_charset($charset)
465: [23:43:45] * wmk has joined #silverstripe
466: [23:52:23] * wmk quit (Ping timeout: 264 seconds)
467: [23:55:35] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
468: [23:57:14] * Hailwood has joined #silverstripe
469: [23:59:45] <Hailwood> Hey Folks, I have a DataList of pages that I want to sort alphabetically by their MenuTitle - of course the way SS stores things MenuTitle is only populated if MenuTitle would be different from Title - so is there any way using $list->sort(...) that I can sort by "MenuTitle, or if MenuTitle is null use Title" ?

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