#silverstripe IRC Log

IRC log for 9 July 2015

All timestamps are in UTC.

1: [00:11:13] * ss-helper quit (Remote host closed the connection)
2: [00:11:28] * ss-helper has joined #silverstripe
3: [00:26:36] * glenn-bautista has joined #silverstripe
4: [00:27:15] <glenn-bautista> dow anyone know how to show the errors while in live mode?
5: [00:28:37] <simon_w|air> glenn-bautista, switch to dev mode
6: [00:28:41] <ss23> heh
7: [00:28:55] <ss23> You can *log* errors in live mode, but not show them
8: [00:29:03] <Stomach> glenn-bautista - throw backstop on it
9: [00:29:08] <samlander> quick question
10: [00:29:31] <samlander> can i attach simple javascript to a formfield declared in my controller?
11: [00:29:49] <Stomach> yeah
12: [00:29:54] <Stomach> Requirements will do that for you
13: [00:29:57] <Stomach> urgh
14: [00:30:05] <samlander> ie: on click clear
15: [00:30:21] <samlander> err on click clear if field contains "Enter Email address"
16: [00:31:13] <adrexia> I'd probably ignore requirements and give is a data attribute, then write the js to attach it to the data-attribute
17: [00:31:23] <glenn-bautista> simon_w: that's the thing we need it to stay in live mode (the error only happens in live mode, but cannot see the error)
18: [00:32:15] * UncleChe_ has joined #silverstripe
19: [00:32:22] <ss23> oh god che is back?
20: [00:32:38] <adrexia> lol
21: [00:33:29] * UncleChe_ quit (Client Quit)
22: [00:40:40] <Zauberfisch> glenn-bautista: just enable error logging then
23: [00:41:25] <Zauberfisch> glenn-bautista: SS_Log::add_writer(new SS_LogFileWriter('../silverstripe-errors.log'), SS_Log::ERR);
24: [00:41:35] <Zauberfisch> glenn-bautista: or SS_Log::add_writer(new SS_LogEmailWriter('myEmail@mysite.com'), SS_Log::ERR);
25: [00:42:43] * veb has joined #silverstripe
26: [00:42:54] <Kingy> veb \o/
27: [00:43:02] <veb> hey bro
28: [00:43:50] <Colin[pi]> oh god veb and kingy are here together, better go get the ol' wet/dry vac
29: [00:44:21] <veb> nah I gotta go
30: [00:44:31] <Kingy> boooo
31: [00:44:32] <veb> Kingy doesn't really care about me anymore
32: [00:45:47] * samlander quit (Ping timeout: 252 seconds)
33: [00:45:58] <Kingy> what a lie
34: [00:48:31] * veb quit (Quit: veb-irc: &)
35: [00:49:37] * Stomach quit (Quit: zzz)
36: [00:51:47] <DanaeNZ> glenn-bautista: can you chuck i?sDev=1 on the end?
37: [00:51:54] <DanaeNZ> probs too late
38: [00:52:54] * PenguinMan98 quit (Ping timeout: 246 seconds)
39: [00:54:11] <glenn-bautista> DanaeNZ: that just temporarlily sets the environment to dev, and the error doesn't occur
40: [00:54:53] <DanaeNZ> glenn-bautista: sweet as
41: [00:55:08] * stecman quit (Quit: This computer has gone to sleep)
42: [00:56:23] * veb has joined #silverstripe
43: [01:00:50] * veb quit (Ping timeout: 252 seconds)
44: [01:03:10] * veb has joined #silverstripe
45: [01:06:20] * simon_w|air quit (Quit: Textual IRC Client: www.textualapp.com)
46: [01:10:38] * veb quit (Quit: veb-irc: &)
47: [01:12:44] * stecman has joined #silverstripe
48: [01:17:05] * Cheddam has joined #silverstripe
49: [01:18:25] * veb has joined #silverstripe
50: [01:21:15] * micmania1 quit (Quit: micmania1)
51: [01:23:15] * veb quit (Ping timeout: 264 seconds)
52: [01:28:17] * DimiStripe_alt quit (Read error: Connection reset by peer)
53: [01:28:34] * DimiStripe has joined #silverstripe
54: [01:29:46] * simon_w|air has joined #silverstripe
55: [01:32:08] * Stomach has joined #silverstripe
56: [01:38:34] * Tanger has joined #silverstripe
57: [01:41:58] <UncleCheese> fuck unit testing
58: [01:42:10] <spronk> people who don't unit test are cowboys
59: [01:42:19] <DanaeNZ> I love unit testing
60: [01:42:45] <Colin[pi]> but who tests the tests?
61: [01:42:46] * Ryan-Toast barely ever unit tests
62: [01:42:46] <Colin[pi]> huh?
63: [01:42:48] <Colin[pi]> HUH?
64: [01:43:07] <DanaeNZ> I don’t for brochure sites
65: [01:43:22] <hamror> fucking unit testing
66: [01:43:23] <DanaeNZ> but to get great code coverage is like
67: [01:43:25] * zlinux quit (Ping timeout: 246 seconds)
68: [01:43:25] <DanaeNZ> bliss
69: [01:43:32] <hamror> super good for regression testing other peoples source code
70: [01:43:41] <hamror> but it's busy work most of the time with capable developers
71: [01:44:41] <hamror> i have lolled for a decade at the rise and fall of unit testing dogmas
72: [01:45:43] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
73: [01:46:21] <hamror> unit testing a gearman / php botnet for a big client was hilarious
74: [01:46:27] * Cheddam has joined #silverstripe
75: [01:48:06] <antmas> never really done testing
76: [01:48:33] <antmas> I found the work to make the tests ended up being vaslty more time consuming than actually writing the code for the client
77: [01:48:44] * Cheddam quit (Client Quit)
78: [01:48:49] <hamror> it's popular amongst developers that like feelings of completionism and fear they don't understand what they are doing very well
79: [01:48:49] <DanaeNZ> Depends what you’re making
80: [01:48:52] <hamror> same thing as OOP
81: [01:49:12] <DanaeNZ> For most modules I’d say it’s pretty necessary
82: [01:49:34] <antmas> I do find it confusing
83: [01:49:35] <antmas> like
84: [01:49:38] <antmas> you write a test
85: [01:49:41] <hamror> yeah regression testing is the best easy win i think, especially with code you are depending on or distributing
86: [01:49:43] <antmas> to see if a piece of code works
87: [01:50:15] <antmas> but if you're writing a test to see if your code works, then doesn't that imply it works anyway because you know the desired outcome?
88: [01:50:25] <hamror> the unit tests for the promise libraries are a good example of a necessary use
89: [01:50:42] <DanaeNZ> antmas: unless it’s using user supplied content
90: [01:50:49] <DanaeNZ> or config
91: [01:51:00] <antmas> yeah I guess
92: [01:51:12] * Cheddam has joined #silverstripe
93: [01:51:13] <hamror> i've seen really badly made programs that are a direct result of a preoccupation with making the code easy to test
94: [01:51:29] <hamror> the end product is an algorithm that could be discretely contained sprawling dozens of business logic units
95: [01:51:35] <DanaeNZ> like most things dev it still comes down to the developer
96: [01:51:58] <antmas> but shouldn't your code impart the 'correct way to do it'?
97: [01:52:03] <antmas> re- user config etc?
98: [01:52:08] <hamror> avoid technical debt because we're fallable, have imperfect knowledge, and imperfect reasoning apperatus
99: [01:52:32] <DanaeNZ> antmas: hmm true
100: [01:52:38] <antmas> dude I need more coffee to grasp those last 2 sentences
101: [01:53:04] <antmas> ok here goes
102: [01:53:13] <antmas> you have a piece of code
103: [01:53:28] <antmas> you then write a test to see if that code works and/or provides the desired outcome
104: [01:53:48] <antmas> byt writing that test, haven't you then already written the correct code?
105: [01:54:16] <DanaeNZ> Then later down the track you modify that code for whatever reason, or change something that interacts with it
106: [01:54:27] <DanaeNZ> You run the test again to make sure it’s still doing what it’s supposed to
107: [01:54:34] <DanaeNZ> Instead of just guessing
108: [01:54:35] * irogue has joined #silverstripe
109: [01:54:44] <antmas> so it's more of 'after the initial pass' type deal?
110: [01:54:49] <antmas> THAT I understand
111: [01:54:51] <hamror> that's regression testing
112: [01:54:58] <hamror> ensuring things that work dont' break
113: [01:55:02] <DanaeNZ> There’s also test driven development
114: [01:55:04] <antmas> right
115: [01:55:07] <hamror> because we're ill equipped to know every execution path of the machine
116: [01:55:57] <antmas> unit testing sometimes seems like exaggerated loggin
117: [01:56:00] <antmas> logging*
118: [01:56:05] <antmas> to me ayway
119: [01:56:20] <DanaeNZ> there are times where it’s appropriate and times where you just go overboard
120: [01:56:21] <antmas> I dunno, I'd like to try it again soon
121: [01:57:50] <antmas> 'TEST' is like the only VS clickable I never use :P
122: [01:58:37] <antmas> by default the only test that runs is 'does this thing even compile'
123: [01:58:50] <antmas> and you make .playlists of tests for it run though :P
124: [02:03:41] <hamror> mean while this code i have to review uses something called ez_sql with the mysqli driver ;_; and i can see just from a glance half a dozen sql injections
125: [02:03:55] <hamror> do i just rewrite it all with PDO or just say it looks fine
126: [02:04:33] <hamror> this is where i need spronk's wisdom
127: [02:04:42] <hamror> even if it's about yaml
128: [02:04:44] <spronk> pdopdopdopdopdopdopdopdopd
129: [02:05:12] <spronk> if you can see sqli there hamror, you've got a duty to at least point it out
130: [02:05:51] <hamror> gonna see if i can post a public product review that looks like it came from the owner of the company
131: [02:06:04] <hamror> otherwise the boss will be like 'this sounds like expensive nerd shit, don't bother'
132: [02:07:04] * Vedran__ has joined #silverstripe
133: [02:11:00] <Vedran__> Can I name a Virtual Page something else in a menu?
134: [02:15:33] <DanaeNZ> https://i.imgur.com/yaN6N9M.gifv
135: [02:15:37] * Stomach quit (Quit: zzz)
136: [02:16:18] <irogue> DanaeNZ: that is both disturbing and hilarious at the same time
137: [02:16:34] <adrexia> that is freaky sauce
138: [02:18:08] * glenn-bautista quit (Quit: Leaving.)
139: [02:18:57] <Vedran__> I think I needed a redirector page as opposed to Virtual Page. Thank you SilverStripe forums!
140: [02:21:43] <DanaeNZ> Vedran__: I thought they both allowed you to overwrite the MenuTitle
141: [02:24:02] <adrexia> Yeah, I think tehy do
142: [02:24:04] <Vedran__> Virtual Page locked/inherited everything bar url
143: [02:24:18] <adrexia> it also has a bunch of allow overrides fiels
144: [02:24:27] <adrexia> you can tell it to ignore or inherit
145: [02:24:51] <adrexia> but... I thought menu title and title were both in the allowed overrides by default?
146: [02:25:30] <Vedran__> https://imgur.com/kIZxtjw
147: [02:25:54] <adrexia> intersting
148: [02:26:24] <Vedran__> unless I done something wrong, but I cant find any settings (in CMS) for overrides
149: [02:26:42] <adrexia> nah, I think I must have been imagining it
150: [02:26:54] <adrexia> you can add menutitle to the things you can override though
151: [02:27:10] <adrexia> just add it to non_virtual_fields in config.yml
152: [02:27:17] <Vedran__> thanks antmas
153: [02:27:18] <Vedran__> eek
154: [02:27:24] <Vedran__> *thanks adrexia
155: [02:27:25] <adrexia> lol
156: [02:27:28] <adrexia> no problem
157: [02:28:18] <adrexia> the current things that are unique are here: https://github.com/silverstripe/silverstripe-cms/blob/3.2/code/model/VirtualPage.php#L18
158: [02:28:47] <antmas> Vedran__: no worries :D
159: [02:28:50] * antmas helps all the thigns
160: [02:28:52] <adrexia> ;)
161: [02:28:52] <antmas> \o/
162: [02:28:59] <DanaeNZ> cool, you can chuck it in your yml
163: [02:29:04] <DanaeNZ> it will merge the two arrays
164: [02:29:09] <adrexia> yep :)
165: [02:29:20] <adrexia> I've doen it before
166: [02:36:07] <Vedran__> how can I loop over the children / subpages of a page?
167: [02:36:23] <Vedran__> <% loop ChildrenOf($PageName) %> is returning nothing
168: [02:36:27] * glenn-bautista has joined #silverstripe
169: [02:38:39] <Vedran__> gah.... <% loop $ChildrenOf(PageName) %> was what was needed :D
170: [02:43:44] <irogue> https://www.ssllabs.com/ssltest/analyze.html?d=ipms-prod.tcf.org.nz
171: [02:44:01] <irogue> pretty good for a production system for telcos/ISPs
172: [02:47:55] <Kingy> irogue: we're about to talk to SS about that
173: [02:50:46] <adrexia> my eyes object to that site
174: [02:50:48] <adrexia> what is it?
175: [02:50:54] <adrexia> what's it about?
176: [02:51:20] <irogue> which site? TCF or SSL Labs?
177: [02:51:37] <adrexia> yeah the one you linked to up tehre ^
178: [02:51:38] <adrexia> ;)
179: [02:51:54] <adrexia> it had a lot of orange and red and green or soemthign
180: [02:51:57] <irogue> ssl labs
181: [02:52:18] <irogue> tells you how shit a web server's SSL implementation is
182: [02:52:24] <adrexia> ahh right :)
183: [02:52:26] <Kingy> ours is shit
184: [02:52:42] <adrexia> they should lose the boarders
185: [02:52:45] <adrexia> *borders
186: [02:52:52] <Kingy> ss23 needs to get his a into g
187: [02:52:57] <adrexia> make the text larger
188: [02:53:19] <adrexia> ;)
189: [02:53:26] <ss23> lol
190: [02:53:33] <ss23> That's what happens when you run stuff on a 10 year old software stack
191: [02:53:52] <adrexia> though I guess if you get to that page you usually know why
192: [02:54:29] <irogue> ss23: needs more platform :P
193: [02:55:46] * zippy has joined #silverstripe
194: [02:56:12] <Kingy> still running the pc zippy?
195: [02:56:22] <zippy> yeap
196: [02:57:07] <Kingy> all good?
197: [02:57:20] <ss23> What does Platform show up as on ssllabs?
198: [02:57:53] * spronk quit (Quit: I may need a longer sleep timer...)
199: [02:58:00] <ss23> hmm
200: [02:58:07] <ss23> I don;t thiunk we have any normal platform sites to test actually
201: [02:58:14] <ss23> they're all using fuckingshitincompetentcapsula
202: [02:58:24] <adrexia> I made it better https://www.evernote.com/l/ANJdvCCaX85LpqjpUFZ-kO1GQJ7EPmVQ9SY
203: [02:58:36] <adrexia> :P
204: [03:00:11] <irogue> ss23: I can think of one - checking it now
205: [03:00:56] <irogue> ss23: A, with a warning about SHA1withRSA
206: [03:01:35] <ss23> not bad
207: [03:01:36] * Stomach has joined #silverstripe
208: [03:02:03] <ss23> adrexia: yours is nicer, but it's not worth the amount of time it would take to fix it :P
209: [03:02:34] <adrexia> it took 1 minutes
210: [03:02:34] <adrexia> 1 minute
211: [03:02:34] <adrexia> and involved removing styles
212: [03:02:34] <adrexia> :P
213: [03:02:44] <adrexia> borders borders everywhere
214: [03:02:47] <ss23> adrexia: another 2 minutes for making the change in vcs
215: [03:02:52] <ss23> another 10 minutes for talking to someone about the change
216: [03:02:54] <adrexia> lol, true
217: [03:02:54] <ss23> 10 for peer review
218: [03:02:59] <adrexia> hahha
219: [03:03:00] <ss23> 2 hours for waiting for CI to finish
220: [03:03:05] <adrexia> its over designed ;)
221: [03:03:05] <ss23> 10 mins to schedule release
222: [03:03:08] <ss23> another 10 mins for releasing it
223: [03:03:12] <ss23> maybe 5 mins of checking
224: [03:03:14] <ss23> BOOM
225: [03:04:40] <adrexia> lol
226: [03:05:12] <adrexia> and people like me won't cross it off thinking its some sort of spam hijack ;)
227: [03:05:57] <adrexia> true story: historically people doing nasty things on teh internet had no design skills ;)
228: [03:06:32] <adrexia> true story: historically people doing nasty things on the internet had no design skills ;)I have a weird pavlovian response to things that look like that page
229: [03:06:38] <adrexia> arg stupid irc
230: [03:06:59] <adrexia> hmm, wonder if that's a setting I can turn off
231: [03:08:18] * micmania1 has joined #silverstripe
232: [03:15:01] * Stomach quit (Quit: zzz)
233: [03:23:35] * antmas quit (Quit: Page closed)
234: [03:24:38] * Stomach has joined #silverstripe
235: [03:24:42] <Ryan-Toast> I have a module that overrides another modules template, how can I stop set the priority of the template? Looks like it’s doing it alphabetically atm.
236: [03:25:08] <Stomach> thats how it does it
237: [03:25:18] <adrexia> yep
238: [03:25:18] <Ryan-Toast> :/
239: [03:25:31] <Stomach> yep
240: [03:25:32] <Ryan-Toast> So no other way bar putting the template in my project foldeR?
241: [03:25:43] <zippy> ExactMatchFilter does not accept GreaterThanOrEqualFilter
242: [03:25:45] <zippy> arghagh
243: [03:25:56] <zippy> can never seem to use GreaterThanOrEqualFilter in my filters
244: [03:26:00] <zippy> in 3.1.13
245: [03:26:05] <adrexia> I think theme overrides the others?
246: [03:26:13] <Ryan-Toast> I don’t use themes
247: [03:26:15] <adrexia> but not sure that works for non-themea
248: [03:26:17] <adrexia> yeah
249: [03:26:27] <adrexia> can you use settheme on your dir though?
250: [03:26:45] <Ryan-Toast> These are two modules.,
251: [03:26:51] <Ryan-Toast> Ideally I’d like them to play nice.
252: [03:27:01] <adrexia> oh I see
253: [03:27:05] <adrexia> ouch
254: [03:27:19] <Ryan-Toast> Stomach: http://i.imgur.com/TnfgXGD.gifv
255: [03:27:24] <adrexia> hmm... you can subclass
256: [03:27:37] <adrexia> and provide a new template for the subclass
257: [03:27:51] <Ryan-Toast> adrexia: it’s LEftAndMain_Menu
258: [03:28:05] <adrexia> oh yeah, that thing
259: [03:28:07] <adrexia> :-/
260: [03:28:25] * spronk has joined #silverstripe
261: [03:29:02] <adrexia> rename your module z_module
262: [03:29:03] <adrexia> :D
263: [03:29:04] <zippy> thats weird
264: [03:30:55] <zippy> LessThanOrEqualFilter = exception, LessThan, works
265: [03:31:12] <zippy> oh.
266: [03:31:24] <Ryan-Toast> adrexia: rofl
267: [03:31:52] <zippy> haha :(
268: [03:34:36] * adrexia_ has joined #silverstripe
269: [03:35:40] * adrexia quit (Ping timeout: 272 seconds)
270: [03:40:54] * UncleChe_ has joined #silverstripe
271: [03:42:22] <Stomach> Ryan-Toast - nice :D
272: [03:42:47] <Ryan-Toast> Stomach: Cheers :)
273: [03:42:57] <irogue> zippy: were you looking at wrong version's docs/api? :P
274: [03:43:03] <Ryan-Toast> Stomach: I don’t like how it doesn’t have an icon by default :P
275: [03:43:09] <zippy> irogue: no something more silly
276: [03:43:11] <Stomach> yeah
277: [03:43:16] <Stomach> thats something I need to change
278: [03:43:19] <Stomach> in the default
279: [03:43:23] <irogue> zippy: lol ok. cos I always do that
280: [03:43:27] <zippy> array('Foo:GreaterThanOrEqualFilter', 20)
281: [03:43:31] <zippy> sorry
282: [03:43:31] <Stomach> and also be able to order the menu via your yaml config
283: [03:43:38] <zippy> array('Foo:GreaterThanOrEqualFilter' => 20)
284: [03:43:47] <zippy> I wasn't removing the Filter off the end........
285: [03:43:48] <Ryan-Toast> Stomach: Oh, you made dis?
286: [03:44:01] <Stomach> Ryan-Toast - nah just contributed
287: [03:44:03] <irogue> XThanOrEqual etc don't work too well in ss3 :(
288: [03:44:05] <Ryan-Toast> Stomach: Ah, cool :)
289: [03:44:06] <Stomach> I made my own previously
290: [03:44:16] <Stomach> then found this one and was like alright may as well use the official one
291: [03:44:38] <Ryan-Toast> Stomach: it’s replacing my custom LeftAnMain menu ‘(
292: [03:44:41] <Ryan-Toast> :’(
293: [03:45:18] <Stomach> yeah just put yours into mysite
294: [03:45:43] <Ryan-Toast> I know, but I want to keep it in my cms branding module :P
295: [03:46:23] <Stomach> lol
296: [03:46:35] <Stomach> silverstripe-branding
297: [03:46:38] <Stomach> done
298: [03:46:39] <Stomach> fixed
299: [03:46:47] <Ryan-Toast> Lol.
300: [03:46:51] <Ryan-Toast> That would actually work.
301: [03:46:54] <Stomach> yeah I know
302: [03:47:04] <Stomach> thats one reason we have silverstripe- in front of all our modules
303: [03:47:17] <Ryan-Toast> Hmm, can you just rename a folder?
304: [03:47:22] <Stomach> yeah
305: [03:47:26] <Ryan-Toast> without having to do a whole bunch of git biz
306: [03:47:35] <Stomach> in your installer
307: [03:47:42] <Stomach> just specify the path for the grouped menu
308: [03:47:48] <Stomach> to be lower than your brand one
309: [03:48:35] <Stomach> http://pastie.org/10281152
310: [03:48:50] <Ryan-Toast> Stomach: Oh, so that renames it?
311: [03:48:54] <Stomach> yeah
312: [03:48:57] <Ryan-Toast> cool :)
313: [03:49:06] <Stomach> but only in your install
314: [03:49:13] <Stomach> if you want to rename it for everyone
315: [03:49:37] <Ryan-Toast> I’ll have to do it on the repo
316: [03:50:46] <Stomach> then you'll need to change the name
317: [03:54:43] <zippy> got some snow in welly guys
318: [03:57:46] <Ryan-Toast> Stomach: all done.
319: [03:57:52] <Stomach> yaye
320: [04:00:35] <irogue> zippy: yeh it was a chilly morning
321: [04:01:05] <irogue> i'm on the wrong side of the hills to have got snow, but sounds like people just over the hill in Karori got some
322: [04:09:13] * adrexia_ is now known as adrexia
323: [04:10:04] * mahfuz has joined #silverstripe
324: [04:10:13] <adrexia> karori always get the snow :(
325: [04:10:20] <adrexia> only had it in town that once
326: [04:10:31] * ccburns has joined #silverstripe
327: [04:10:42] <adrexia> https://www.youtube.com/watch?v=UpGaIDm0azU
328: [04:11:54] <DanaeNZ> snow is preeeety
329: [04:12:14] <adrexia> and fun!
330: [04:12:19] <DanaeNZ> that’s the same day it sleeted in auckland
331: [04:15:07] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
332: [04:15:19] <adrexia> I won a jetbrains thingy through the php meetup, and now I haver to decide between phpStorm and WebStrom
333: [04:15:24] <adrexia> *webStorm
334: [04:15:35] <DanaeNZ> I haven’t used webstorm
335: [04:15:36] <adrexia> I'm unsure on the difference
336: [04:15:40] <adrexia> me either
337: [04:15:46] <adrexia> seems more js focussed though
338: [04:15:46] <DanaeNZ> sounds like webstorm has less :P
339: [04:15:51] <adrexia> does it?
340: [04:15:58] <DanaeNZ> phpstorm seems to pick up a lot of stuff from webstorm
341: [04:16:07] * adrexia nods'
342: [04:16:18] <irogue> they're all IDEA but with only some language-specific extras
343: [04:16:33] <adrexia> Ib want both lots of extras! :P
344: [04:16:34] <irogue> so webstorm will have a few JS extras phpstorm doesn't, and vice-versa with PHP
345: [04:16:52] <irogue> I got IDEA cos I wanted the PHP, JS *and* Python extras
346: [04:17:09] <DanaeNZ> PHPStorm for me
347: [04:17:36] <adrexia> oh Php strom 9 just came out
348: [04:17:42] <adrexia> that tips it slightly towards that oen
349: [04:18:11] <Zauberfisch> adrexia: use phpstorm
350: [04:18:11] <irogue> heh
351: [04:18:16] <Zauberfisch> phpstorm is webstorm+php
352: [04:18:22] <irogue> actually, it looks like phpstorm includes *everything* in webstorm
353: [04:18:25] <adrexia> ahh, sweet
354: [04:18:32] <irogue> which goes against the normal way intellij does things
355: [04:18:35] <irogue> I presume webstorm is way cheaper
356: [04:18:42] <adrexia> that makes my choice much easier :D
357: [04:18:42] <Zauberfisch> it is
358: [04:18:42] * Hailwood quit (Quit: Leaving)
359: [04:19:04] <adrexia> I hadn't looked at price, because I don't have to pay :D
360: [04:19:39] <adrexia> also, you should come to the Wellington php meetups now you are in Wellington irogue!
361: [04:19:41] <irogue> defo phpstorm then I guess
362: [04:19:43] <Zauberfisch> phpstorm single license is 200 or something, webstorm is half
363: [04:19:50] <irogue> adrexia: I should
364: [04:20:03] <Zauberfisch> oh, that are company prices
365: [04:20:11] <Stomach> yeah its expensive but worth it imho
366: [04:20:12] <irogue> haven't been doing any extracurriculars yet, still getting settled in
367: [04:20:25] <adrexia> fair enough
368: [04:20:30] <Zauberfisch> for personal its 99 vs 49
369: [04:20:33] <adrexia> not even tuesday nigth philosophy club?
370: [04:21:23] <Zauberfisch> adrexia: though you have to note, after 1 year you don't get updates anymore unless you renew your liecense for half the buying price. so renewing phpstorm is 49 euro per year
371: [04:21:35] <irogue> adrexia: well I haven't yet, but I might in future :P
372: [04:22:08] <adrexia> yeah, I don't even know if I'll like it yet. If I do, I don't mind paying for it :)
373: [04:22:17] <adrexia> currently using atom
374: [04:22:21] <Zauberfisch> adrexia: you will
375: [04:22:27] <adrexia> :D
376: [04:22:44] <DanaeNZ> I’m still on my student pass for PHPStorm
377: [04:22:48] <DanaeNZ> about $60 a year
378: [04:23:26] <adrexia> "We've got you!" Don't be creepy JetBrains
379: [04:24:44] <adrexia> hmm.. php storm could do with flattenign their logo
380: [04:24:49] <adrexia> a bit too shiny
381: [04:25:28] <Zauberfisch> adrexia: the most important shortcuts: SHIFT+N (search class), SHIFT+CTRL+N (search fill), SHIFT+CTRL+ALT+N (search method), CTRL+SPACE (auto complete), ALT+Q (or CMD+Q on mac)(view docs on class or method), CTRL+MouseClick (jump to decleration)
382: [04:25:34] <hamror> vim vim vim \o/
383: [04:26:10] <Zauberfisch> hamror: yes, vim. as an editor for quickly changing files, but not as an IDE
384: [04:26:15] <DanaeNZ> CTRL+J : add cursor at next iteration of selection (i think thats the right shrotcut)
385: [04:26:20] <hamror> i use it exclusively
386: [04:26:30] <Zauberfisch> intellij/phpstorm btw also has a vim-mode plugin
387: [04:26:41] <irogue> adrexia: it is pretty flat - guessing they just haven't updated it in the app yet? http://blog.jetbrains.com/webide/files/2013/03/phpstorm_logo.gif
388: [04:26:51] <adrexia> yep
389: [04:26:58] <adrexia> still shiny in the app
390: [04:27:27] <ccburns> Hey guys - don’t mean to interrupt the conversion about PHPStorm but is anyone interested in updating the recaptcha module that chillu built to version 2 of Recaptcha? A client has asked me to upgrade it but I really just can’t be assed to work out the code base… So instead I’ve added a bounty to the upgrade if someone else is interested in doing the work -
391: [04:27:27] <ccburns> https://www.bountysource.com/issues/23983531-upgrade-recaptcha-to-v2
392: [04:27:54] <hamror> the lions share of my time is taken up with obscure implementation issues or half a dozen lines of complicated algorithm, postfix'iffing a statement with a template snippet wont improve my quality of life
393: [04:28:09] <Zauberfisch> adrexia: also, if you use my vagrant box, xdebug works out of the box with phpstorm
394: [04:29:39] <Zauberfisch> ccburns: 150, not bad. you might also want to add that to the github issue title
395: [04:29:52] <ccburns> Okay I can do that
396: [04:30:01] <Zauberfisch> (btw, I won't take the task. no time)
397: [04:30:11] <ccburns> haha - no problems
398: [04:30:32] <Zauberfisch> but I love the fact that issue bounties are slowly arriving in the silverstripe world
399: [04:31:36] <ccburns> Zauberfisch: yeah - I was chatting to Anselm about them the other day. I figure I can’t expect people to do work that I can’t be bothered to do, but hopefully someone will be happy to do the work for a little bit of money ;)
400: [04:32:15] <ccburns> especially considering I’ll be charging it on to my client anyway
401: [04:32:34] <adrexia> yeah, its a great idea
402: [04:32:37] <irogue> Zauberfisch: yep! Anselm posted the first one, and I happily claimed it :P
403: [04:32:59] <Zauberfisch> yeah. good thought. many people actually come here thinking they can demand fixes that they sell their clients afterwards :D
404: [04:33:31] <ccburns> Yep - I’ve seen that too… it sucks
405: [04:33:48] <irogue> demanding fixes in IRC is particularly hilarious considering how few of us are SS Core
406: [04:34:17] <ccburns> irogue: do you have any time?
407: [04:34:23] <irogue> I mean... I work for SS Ltd but have nothing to do with core cms/framework
408: [04:34:38] <irogue> ccburns: I might pick it up :P
409: [04:37:27] * stecman quit (Quit: This computer has gone to sleep)
410: [04:37:37] <adrexia> asking for fixes nicely sometimes works
411: [04:37:41] <adrexia> ;)
412: [04:38:14] * Stomach quit (Quit: zzz)
413: [04:39:00] <ccburns> adrexia: that’s true but I’m hoping bribery is even more effective ;)
414: [04:39:08] <adrexia> hahha true ;)
415: [04:39:23] <adrexia> it certainly bumps things up the priority list ;)
416: [04:39:28] <irogue> ^ this
417: [04:40:06] <Ryan-Toast> ccburns: this uses the official google recaptcha repo if you want to just copy paste some shit: https://github.com/Rhym/silverstripe-boilerplate/blob/master/code/Modules/ContactForm/code/forms/ContactForm.php
418: [04:40:42] <DanaeNZ> haaaaa cider
419: [04:40:45] <DanaeNZ> cider fiend
420: [04:41:14] <ccburns> Ryan-Toast: it’s more the integration with userforms module that I’m looking for…
421: [04:41:17] <Ryan-Toast> ccburns: just make sure to “require google/recaptcha” first
422: [04:41:23] <Ryan-Toast> ccburns: Ah, kay :P
423: [04:41:28] <Ryan-Toast> ccburns: you’re fucked then :)
424: [04:41:32] * ss-helper quit (Remote host closed the connection)
425: [04:41:33] <ccburns> haha
426: [04:41:39] <irogue> haha
427: [04:41:45] <irogue> I've picked it up :P
428: [04:41:48] * ss-helper has joined #silverstripe
429: [04:41:57] <Ryan-Toast> irogue: is it heavy?
430: [04:42:08] <ccburns> I was about to say it looked like my bribery had worked
431: [04:42:09] <DanaeNZ> ba dum tss
432: [04:42:31] <adrexia> it wasn't a small bribe
433: [04:42:46] <adrexia> that's like 10 really nice beers
434: [04:43:08] <DanaeNZ> i don’t like beer
435: [04:43:11] <DanaeNZ> :<
436: [04:43:14] <adrexia> whickey?
437: [04:43:17] <adrexia> *whiskey
438: [04:43:24] <DanaeNZ> i can do whiskey
439: [04:43:26] <DanaeNZ> WHISKEEEYY
440: [04:43:31] <adrexia> it's about 10 decent whiskey's too ;)
441: [04:43:38] <DanaeNZ> i’m on a cider rampages tho
442: [04:43:53] <Colin[pi]> it's kinda silly how expensive beer can be now
443: [04:43:54] <adrexia> oh, you could probably get 160ish ciders
444: [04:44:04] <DanaeNZ> *good cider
445: [04:44:17] <adrexia> actually, I missed that it was US$
446: [04:44:19] <DanaeNZ> dat swedish stuff
447: [04:44:20] <adrexia> that's even more
448: [04:44:33] <ccburns> I paid $12 for a pint in a surf club on the gold coast the other day… crazy
449: [04:44:35] <adrexia> err... that's not cider, its alcoholic sugar
450: [04:44:35] <Colin[pi]> DanaeNZ: RECOCKERLEG
451: [04:44:42] <Colin[pi]> or whatever it's called
452: [04:44:46] <DanaeNZ> haha close
453: [04:44:56] <DanaeNZ> yeah they make the BEST pear cider
454: [04:44:58] <DanaeNZ> my god
455: [04:45:10] <adrexia> Reck-o-dear-lig
456: [04:45:24] <irogue> yeah to be fair their pear cider is actually cider not just sugar
457: [04:45:34] <adrexia> its sugar
458: [04:45:39] <adrexia> with alcohol
459: [04:45:44] <Colin[pi]> tasty sugar
460: [04:45:47] <adrexia> :P
461: [04:45:47] <irogue> but that strawberry and lime - dear god
462: [04:45:48] <DanaeNZ> I’m trying not to think about the sugar content
463: [04:45:54] <adrexia> hahah
464: [04:45:55] <DanaeNZ> I have that with me right now
465: [04:46:09] <irogue> its so delicious, but SO SUGAR
466: [04:47:52] <irogue> wonder what ciders the restaurant i'm going to tonight has
467: [04:48:47] * Cheddam quit (Ping timeout: 240 seconds)
468: [04:50:05] <Ryan-Toast> irogue: liquid ones.
469: [04:50:13] <Ryan-Toast> I’m going to some light show tonight.
470: [04:50:19] <Ryan-Toast> Going to be fucking freezing
471: [04:50:40] * Stomach has joined #silverstripe
472: [04:50:53] <irogue> "join Pedro for a nightcap after dinner Thursday to Saturday, $5 house spirits, beer and wine"
473: [04:51:05] <irogue> ok, might be spirits tonight then...
474: [04:51:06] <Ryan-Toast> irogue: I’d vote for him.
475: [04:52:41] <Colin[pi]> Ryan-Toast: do the chickens have large talons?
476: [04:53:08] <DanaeNZ> Ryan-Toast: bah dum tss
477: [04:53:37] <Ryan-Toast> Colin[pi]: I don’t understand what you just said.
478: [04:53:46] <Colin[pi]> hehe
479: [04:53:53] <helenclarko> ha
480: [04:53:53] <Colin[pi]> that movie is weird, but funny
481: [04:54:03] <Ryan-Toast> First time I watched it I hated it.
482: [04:54:06] <Ryan-Toast> Second time, loved it.
483: [04:56:24] <helenclarko> Is there actually a story line?
484: [04:58:17] * Stomach quit (Quit: zzz)
485: [04:58:40] * helenclarko quit (Quit: Leaving)
486: [04:59:44] <Ryan-Toast> Gone through my whol SS career without realising that sitetree is a plugin… http://www.jstree.com/
487: [05:00:50] * ccburns quit (Ping timeout: 256 seconds)
488: [05:01:56] * ccburns has joined #silverstripe
489: [05:04:48] * Stomach has joined #silverstripe
490: [05:05:53] * Stomach quit (Client Quit)
491: [05:06:32] <DanaeNZ> oh oh oh
492: [05:06:37] <DanaeNZ> 10 things i hate about you?
493: [05:06:40] <DanaeNZ> is that the reference?
494: [05:06:46] <DanaeNZ> did I get the reference?
495: [05:07:38] <Kingy> studied that movie in school
496: [05:07:41] <Kingy> had to watch it like 50 times
497: [05:09:53] * glenn-bautista quit (Quit: Leaving.)
498: [05:10:01] <Kingy> and they're referencing napoleon dynamite
499: [05:10:30] <DanaeNZ> i love that movie
500: [05:10:42] <DanaeNZ> 10 things i hate about you and napoleon dynamite
501: [05:11:34] <Ryan-Toast> I’m not going to fix jstree, fuck that noise.
502: [05:15:16] <Kingy> Ryan-Toast: don't be lazy :P
503: [05:15:22] <Ryan-Toast> Kingy: lol, lazy?
504: [05:15:41] <Ryan-Toast> cms uses jQuery 1.7 :P
505: [05:15:51] <Ryan-Toast> noooooooo thank you
506: [05:16:01] <Kingy> haha
507: [05:16:19] <Kingy> so while you're busy fixing it, update the jQuery version and do some regression testing
508: [05:16:22] <Kingy> :)
509: [05:16:38] <Ryan-Toast> Nah, I’ll just re-write everything in vanilla.
510: [05:16:43] <Ryan-Toast> No more jQuery./
511: [05:16:44] <Ryan-Toast> ez.
512: [05:16:47] <Ryan-Toast> should take a day.
513: [05:16:52] <DanaeNZ> more like half
514: [05:16:53] <DanaeNZ> jeez
515: [05:16:58] <DanaeNZ> you rusty?
516: [05:22:06] <adrexia> wow, yeah 1.7 is old school now
517: [05:23:12] <irogue> http://www.silverstripe.com/what-we-do/
518: [05:23:16] <irogue> Kingy: I see yous there
519: [05:23:52] <Kingy> "success"
520: [05:27:48] * UncleChe_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
521: [05:28:21] * travis-ci has joined #silverstripe
522: [05:28:22] <travis-ci> silverstripe/silverstripe-framework#5307 (3 - afa0bb9 : Damian Mooyman): The build passed.
523: [05:28:22] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/7434ced82cf3...afa0bb9e87f0
524: [05:28:22] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/70172450
525: [05:28:22] * travis-ci has left #silverstripe
526: [05:28:32] <adrexia> "We are digital transformation experts."
527: [05:28:38] <adrexia> :D
528: [05:28:50] <adrexia> same as "We're wizards?" right?
529: [05:29:30] <ccburns> adrexia: that’s how I read it
530: [05:30:03] <irogue> can confirm, am a wizard
531: [05:30:13] <adrexia> lols
532: [05:31:08] <irogue> interesting to contrast it to http://www.silverstripe.com/uk/what-we-do/
533: [05:32:13] <Ryan-Toast> You have to pay to be a partner, right?
534: [05:33:49] <adrexia> We want to know each other as real people not “colleagues” === more karoke nights?
535: [05:34:19] <Kingy> irogue is all over that
536: [05:34:23] <adrexia> I'm too dumb to navigate that site thoguh
537: [05:34:47] <adrexia> eitehr that or there are only 5 pages in it
538: [05:35:46] <irogue> Ryan-Toast: no idea, ask pete? its "by invitation" though, I know that much
539: [05:36:08] <irogue> i.e. someone can't just decide they're gonna be a partner, we like to vet their skills first
540: [05:36:14] <Ryan-Toast> irogue: I vagely remmeber talking to someone about it, and it weas paid as I recall.
541: [05:36:36] <adrexia> They changed what it was not that long ago
542: [05:45:36] <adrexia> lol ololo
543: [05:45:47] <adrexia> the droptables photoshop got into teh timeline
544: [05:46:05] <adrexia> http://www.silverstripe.com/who-we-are/history/
545: [05:47:39] * glenn-bautista has joined #silverstripe
546: [05:47:40] * DanaeNZ quit (Quit: DanaeNZ)
547: [05:48:13] * stecman has joined #silverstripe
548: [05:49:17] * joelpittet has joined #silverstripe
549: [05:50:37] <hamror> anyone here ever done an ecommerce site in SS?
550: [05:50:59] <hamror> i have a bigish nz company that uses an old magento site at the moment
551: [05:51:10] <hamror> and they reckon they push about a mill through it a year
552: [05:51:22] <hamror> anyway they floated SS at my face, i didn't even mention it
553: [05:51:27] <hamror> so i'm not sure where that came from
554: [05:51:46] <hamror> i typically only use SS to do CRUD things for API or other complicated managed web state
555: [05:51:50] <hamror> rather than full sites
556: [05:52:54] <hamror> plz advise
557: [05:57:14] <spronk> hmmm
558: [05:57:30] <spronk> swipestripe was meant to be alright
559: [05:57:58] * darjus01 has joined #silverstripe
560: [05:58:13] <spronk> but i dno if i'd want to put 1m worth of sales through SS
561: [05:58:27] <spronk> do they do POS as well? because at that point you'd really want an integrated system
562: [05:58:48] <hamror> just web, and a clear api to the warehouse system
563: [06:00:49] * lerni has joined #silverstripe
564: [06:02:18] * ccburns quit (Ping timeout: 265 seconds)
565: [06:02:36] * ccburns has joined #silverstripe
566: [06:03:11] * Mike123 has joined #silverstripe
567: [06:05:27] <Mike123> Morning :D
568: [06:09:04] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
569: [06:09:34] * adrexia quit (Ping timeout: 272 seconds)
570: [06:09:40] * glenn-bautista quit (Quit: Leaving.)
571: [06:20:23] * simon_w|air quit (Remote host closed the connection)
572: [06:21:26] * simon_w|air has joined #silverstripe
573: [06:21:50] * ccburns has left #silverstripe
574: [06:25:22] * micmania1 quit (Quit: micmania1)
575: [06:29:24] * spronk quit (Quit: I may need a longer sleep timer...)
576: [06:31:23] * irogue quit (Quit: Textual IRC Client: www.textualapp.com)
577: [06:33:27] * mahfuz quit (Ping timeout: 246 seconds)
578: [06:41:18] * Eliseth has joined #silverstripe
579: [06:48:53] * stecman quit (Quit: This computer has gone to sleep)
580: [06:49:47] * Ryan-Toast quit (Quit: Ryan-Toast)
581: [06:56:36] <ss-helper> How to embed instagram video in silverstripe content editor - http://stackoverflow.com/questions/31309927/how-to-embed-instagram-video-in-silverstripe-content-editor
582: [06:58:04] * Eliseth quit (Read error: Connection reset by peer)
583: [06:58:27] * adrexia has joined #silverstripe
584: [06:59:17] * keroberos quit (Quit: WeeChat 1.3-dev)
585: [06:59:35] * Archer_ has joined #silverstripe
586: [06:59:38] <Archer_> http://www.sspaste.com/paste/show/559e1baaac602
587: [06:59:59] * Archer_ is now known as Guest30123
588: [07:00:04] <Guest30123> i want to ajax this form how?
589: [07:00:20] <Guest30123> http://www.sspaste.com/paste/show/559e1baaac602
590: [07:03:20] * adrexia quit (Client Quit)
591: [07:05:32] * Ryan-Toast has joined #silverstripe
592: [07:05:41] <Tanger> Guest30123: Add your ajax js and prevent default on form submit. Return some serialized json with the session message, then update the form message in the success() part of the ajax call
593: [07:06:42] <Guest30123> can you update my code please and provide me js code if possible i would be so pleased
594: [07:08:22] * arnhoe has joined #silverstripe
595: [07:26:12] * Tanger quit (Quit: sleep())
596: [07:30:35] * Ryan-Toast quit (Quit: Ryan-Toast)
597: [07:40:39] * Vedran__ quit (Ping timeout: 264 seconds)
598: [07:42:21] * Guest30123 quit (Quit: Page closed)
599: [07:46:27] * bemusedrat has joined #silverstripe
600: [07:55:10] * kinglozzer has joined #silverstripe
601: [07:57:22] * kinglozzer quit (Client Quit)
602: [07:59:13] * benjhocking has joined #silverstripe
603: [08:00:32] * kinglozzer has joined #silverstripe
604: [08:08:48] <svandragt> hey guys is there like an agreed naming convention for branches of modules that indicate compatibility with SS versions? ie 3.0.x-1.0 for the 3.0 compatible version of my module (which is at version 1.0)?
605: [08:09:20] <kinglozzer> svandragt: Nah, there's no agreed convention, just whatever you feel like :P
606: [08:09:57] <svandragt> kinglozzer: there's no need? it trips me up all the time as I'm maintaining a 3.0 site ;)
607: [08:10:00] <hamror> 3.0-unicorns-in-flight.1.0-night
608: [08:10:17] <svandragt> ah the national animal of scotland hamror
609: [08:10:19] <kinglozzer> svandragt: Doesn't really matter too much with composer
610: [08:10:38] <kinglozzer> It can be tricky to find the right branch/tags though... :P
611: [08:10:41] <svandragt> kinglozzer: well I'm PR a 3.1 module to add 3.0 compatiblity ;)
612: [08:11:26] <kinglozzer> svandragt: Ask the author!
613: [08:14:54] * Stomach has joined #silverstripe
614: [08:15:09] <svandragt> kinglozzer: will do. sometimes I just need to keep it simple ;)
615: [08:15:13] <svandragt> cheers
616: [08:16:44] * Stomach quit (Client Quit)
617: [08:18:10] * Stomach has joined #silverstripe
618: [08:21:54] * Tanger has joined #silverstripe
619: [08:22:14] * GioVdK has joined #silverstripe
620: [08:22:22] * keroberos has joined #silverstripe
621: [08:31:13] * Stomach quit (Quit: zzz)
622: [08:35:29] * Stomach has joined #silverstripe
623: [08:47:38] * stnvh quit (Ping timeout: 250 seconds)
624: [08:48:42] * Stomach quit (Quit: zzz)
625: [08:50:14] * Stomach has joined #silverstripe
626: [08:56:38] <ss-helper> AJAX loading of blog posts with Masonry.js issue - http://stackoverflow.com/questions/31312604/ajax-loading-of-blog-posts-with-masonry-js-issue
627: [08:58:58] * Stomach quit (Quit: zzz)
628: [08:59:22] * r_hector has joined #silverstripe
629: [09:11:41] * veb has joined #silverstripe
630: [09:11:50] * ss-helper quit (Remote host closed the connection)
631: [09:11:56] * UncleCheese has joined #silverstripe
632: [09:12:03] * ss-helper has joined #silverstripe
633: [09:20:40] * Stomach has joined #silverstripe
634: [09:23:48] * adrexia has joined #silverstripe
635: [09:26:40] * adrexia quit (Client Quit)
636: [09:26:52] * adrexia has joined #silverstripe
637: [09:28:39] * slievr has joined #silverstripe
638: [09:28:56] <slievr> hello guys. I'm getting a strange issue
639: [09:29:29] <slievr> when I call write() on a page obj it's only updating the _live version
640: [09:30:30] * Stomach quit (Quit: zzz)
641: [09:30:43] <slievr> is this intentional and if so how do I tell it to write to the non live version ?
642: [09:33:36] <ss23> um
643: [09:33:42] <ss23> write only writes to the current stage
644: [09:33:53] <ss23> Probably, you want ->write() to write the draft version and ->publish() to write the live version
645: [09:37:32] <slievr> that's the issue though
646: [09:37:47] <slievr> for some reason write() is only targeting the live version
647: [09:37:55] <slievr> and not the draft
648: [09:39:22] * joelpittet quit (Remote host closed the connection)
649: [09:39:55] * joelpittet has joined #silverstripe
650: [09:41:48] <adrexia> thats pretty weird yeah. whats the stage of the object you are writing to?
651: [09:42:01] <adrexia> maybe you are somehow getting the live version?
652: [09:42:43] <adrexia> oh, umm... I guess you would everywhere outside the sitetree these days, right?
653: [09:44:13] <slievr> I am using swipestripe and I have extended product
654: [09:44:19] * joelpittet quit (Ping timeout: 246 seconds)
655: [09:44:32] <slievr> and whenever the stock is decremented it writes it
656: [09:44:41] <slievr> but it's writing to live
657: [09:45:55] * sneha has joined #silverstripe
658: [09:46:21] <adrexia> what happens if you do this before you get the object: Versioned::reading_stage('Stage');
659: [09:46:22] <adrexia> ?
660: [09:47:25] <adrexia> wait, it is a sitetree object you are dealing with, right?
661: [09:47:31] <slievr> it is
662: [09:47:40] <adrexia> hmm
663: [09:48:02] <adrexia> but in a modaladmin or under page edit?
664: [09:48:22] <slievr> yeah it's in a modal admin
665: [09:48:35] <adrexia> (Sorry, I haven't used swipe stripe)
666: [09:48:45] <slievr> that's fine
667: [09:49:16] * veb quit (Quit: veb-irc: &)
668: [09:49:45] <adrexia> yeah, try that version thing. there is a security feature where you can only get the current published version of a page outside the sitetree area without explicitly asking for the stage verison
669: [09:50:04] <adrexia> I never tried, but maybe that means it writes to that version too?
670: [09:50:48] <slievr> I'll give it a shot
671: [09:52:02] <simon_w> adrexia, slievr, the CMS outside of the Pages section defaults to reading/writing from Live
672: [09:52:23] <simon_w> You can use Versioned::get_by_stage, and then $obj->writeToStage() to get around that
673: [09:52:30] <adrexia> I knew about the reading part and guessed that the writing part could be true too
674: [09:52:47] <adrexia> the reading part really messed up a bunch of modules when it was first implemented
675: [09:53:24] * veb has joined #silverstripe
676: [09:53:33] <adrexia> ahh yeah - get_by_stage might be less of a nuck from orbit than reading_stage('Stage')
677: [09:54:59] <slievr> thanks guys that's fixed it
678: [09:55:06] <adrexia> sweet :)
679: [09:55:27] <adrexia> its actually a massive gotcha
680: [09:56:00] <simon_w> And you can't just use writeToStage(), since that'll overwrite any draft changes
681: [09:56:05] <simon_w> Versioned is a mess :p
682: [09:56:43] <adrexia> I can't imagine how hard it must be for people new to silverstripe
683: [09:58:44] <simon_w> Damn, the fire in the concert waste place is still going
684: [09:59:02] <adrexia> how long?
685: [09:59:27] <slievr> could I set Versioned::reading_stage('Stage'); in _config.php
686: [09:59:30] <simon_w> 5 days
687: [09:59:32] <slievr> or is that just bad practice
688: [09:59:34] <slievr> ?
689: [09:59:38] <simon_w> slievr, that is really bad practice
690: [09:59:44] <simon_w> And, I think, too early
691: [09:59:46] <slievr> cool
692: [10:00:13] <simon_w> adrexia, on concrete, not concert
693: [10:00:35] * simon_w needs a mac keyboard at work
694: [10:00:42] <adrexia> yeah - it is the way it is to prevent people without the right permissions accessing pages they shouldn't
695: [10:01:15] <adrexia> 5 _days_
696: [10:01:18] <adrexia> wow
697: [10:01:58] <adrexia> Personally, I don't think you should ever be able to write versioned objects straight to live
698: [10:02:10] <adrexia> It should throw some sort of exception
699: [10:04:30] * Py1512k has joined #silverstripe
700: [10:04:36] <Py1512k> allo
701: [10:04:45] <adrexia> hey
702: [10:04:52] <Py1512k> oh 'ullo
703: [10:05:08] <Py1512k> 'ow ya dewin?
704: [10:05:10] <simon_w> So, anyone know of any good web/php conferences in ausland?
705: [10:05:14] <adrexia> lol
706: [10:05:17] * simon_w pokes Colin[pi]
707: [10:05:31] <Py1512k> phpau?
708: [10:05:34] <adrexia> they have a good js conf over there
709: [10:06:03] <Py1512k> lol js
710: [10:06:13] <adrexia> lol.js
711: [10:06:15] <Py1512k> are you prototypal or class based, f'n make your mind up man
712: [10:06:33] <Py1512k> JAAAAVAH scrupt
713: [10:06:49] <adrexia> prototypal with classes
714: [10:06:51] <adrexia> catch up!
715: [10:06:55] <adrexia> ;)
716: [10:06:55] <Py1512k> adrexia: wouldn't suprise me if that is actually a thing
717: [10:07:06] <Py1512k> adrexia: ha, yeah I know. Thus the feigned rage.
718: [10:07:09] <simon_w> I looked at PHP Conf Au earlier this year. If I wanted to hear white men talk about tech, I can just open Twitter/HN
719: [10:07:20] <Py1512k> hahahaaha simon_w
720: [10:07:36] * swaiba has joined #silverstripe
721: [10:07:38] <ss23> There are more SilverStripe developers speaking at nzphpconf than there are Woman speaking at it
722: [10:07:41] <ss23> o/
723: [10:07:45] <Py1512k> You mean white men talk about *Laravel, right?
724: [10:08:04] <Py1512k> \o ss23
725: [10:08:06] <simon_w> ss23, and Hamish is noted as using Drupal, not SS
726: [10:08:10] <Py1512k> wear a dress, talk at it too.
727: [10:08:11] <ss23> :O
728: [10:08:12] <ss23> lol
729: [10:08:27] <ss23> Maybe we're best to just leave PHP to the men and let woman do the flakey/lame stuff like JS/Front end? (cc adrexia)
730: [10:08:29] <Py1512k> we've all seen the photos bruv.
731: [10:08:39] <ss23> Py1512k: They're on the slideshow playing on the TVs here
732: [10:08:41] <Py1512k> rofl wut a troll
733: [10:08:42] <adrexia> " If I wanted to hear white men talk about tech" you'd be the happiest person alive
734: [10:09:07] <Py1512k> so I was looking at cosplay last night... as one does.
735: [10:09:13] <Py1512k> And I came across this one of dugtrio
736: [10:09:13] <adrexia>
737: [10:09:13] <adrexia> Maybe we're best to just leave PHP to the men and let woman do the flakey/lame stuff like JS/Front end? (cc adrexia)
738: [10:09:17] <Py1512k> It was f'n hilarious
739: [10:09:24] <adrexia> you mean 'the futureof tech'? ;)
740: [10:09:31] <adrexia> sure, give us that
741: [10:09:38] <simon_w> "Hamish is at home coding backend PHP, designing CSS layouts, optimising SQL statements, or load-hardening Debian"
742: [10:09:39] <Py1512k> npm install futureOfTech
743: [10:09:46] <simon_w> Oh, Debian
744: [10:09:54] <Py1512k> simon_w: who?
745: [10:09:55] <ss23> adrexia: ;___;
746: [10:09:58] <simon_w> Well, that's far less scandalous :p
747: [10:10:00] <ss23> adrexia: That's a depreessing view :(
748: [10:10:01] <simon_w> Py1512k, the CTO
749: [10:10:12] <Py1512k> oh right, /the/ Hamish.
750: [10:10:19] <adrexia> not for me :D
751: [10:10:43] <Py1512k> So I thought I'd make my own JS framework.
752: [10:10:51] <Py1512k> because there aren't enough already.
753: [10:11:52] <Py1512k> gotta put in all the JS files
754: [10:12:08] <Py1512k> minified of course, so the browser loads lightning slow.
755: [10:15:05] <adrexia> 1 woman talking at the php conference? geez, even after they did that call for more minorities. that's depressing
756: [10:15:15] <adrexia> though, I think taht's 1 more than last time
757: [10:16:15] <simon_w> adrexia, it's why I liked Kiwicon
758: [10:16:38] <adrexia> oh?
759: [10:16:48] <ss23> tbh, hacker communities seem to have a fairly strong presence of lbgt
760: [10:16:50] <simon_w> Was rather good at having a decent range of people
761: [10:17:07] <simon_w> ss23, don't go to DEFCON then :p
762: [10:17:19] <ss23> Why? :O
763: [10:17:28] <adrexia> :)
764: [10:18:49] <ss23> ARGH
765: [10:18:51] <ss23> aCCIDENTLY DISABLED FLUX
766: [10:18:52] <ss23> MY EYES
767: [10:19:05] <ss23> god, I dunno what the combo is, but I hit it too often >.<
768: [10:21:58] <simon_w> Ugh, this web course Caitlin's doing is annoyhing
769: [10:22:02] <simon_w> They don't know divs!
770: [10:23:19] <adrexia> ...what do they use instead?
771: [10:23:24] <simon_w> I don't know
772: [10:23:30] <simon_w> I'm getting her to use divs
773: [10:23:33] <adrexia> I mean if its section and article etc, its ok
774: [10:23:33] <adrexia> ;)
775: [10:23:58] <adrexia> lol
776: [10:24:07] <adrexia> <span tags with display:block?
777: [10:24:08] <adrexia> :D
778: [10:24:21] <simon_w> They don't know CSS yet either :p
779: [10:24:31] <adrexia> ahh then thats ok
780: [10:24:40] <adrexia> you can't do much with a div pre css
781: [10:24:50] <adrexia> its just a holder
782: [10:25:11] <adrexia> how far through is she?
783: [10:25:19] <ss23> about 7 months
784: [10:25:20] <ss23> wait
785: [10:25:20] * slievr_ has joined #silverstripe
786: [10:25:23] <ss23> what were we talking about?
787: [10:25:27] <adrexia> :P
788: [10:25:39] <simon_w> Oh good, I can teach her other things
789: [10:25:42] <simon_w> Like <header>
790: [10:26:05] <simon_w> Also, autocomplete
791: [10:26:38] <adrexia> header, section, article, aside
792: [10:26:45] <adrexia> all more useful than div
793: [10:26:46] <adrexia> :D
794: [10:26:52] <adrexia> at least until css comes along
795: [10:27:15] * slievr quit (Ping timeout: 246 seconds)
796: [10:28:02] <adrexia> quite often with web courses we start with typographical elements
797: [10:28:16] <adrexia> because they have obvious markup pre-css
798: [10:28:40] <ss23> <h1><bold>come at me bro
799: [10:28:47] <ss23> don't even close my tags, just let the browser deral with it
800: [10:28:51] <adrexia> though, personally, I then immediately follow with including styles for those elements
801: [10:28:52] <ss23> cause I'm gangsta like that
802: [10:30:05] <adrexia> http://image.blingee.com/images15/content/output/000/000/000/4bd/335900509_271251.gif
803: [10:30:13] <adrexia> like that ^ ?
804: [10:30:24] <ss23> yeah
805: [10:30:24] <simon_w> adrexia, needs a dress
806: [10:30:24] <ss23> :D
807: [10:30:28] <adrexia> lol
808: [10:31:35] <simon_w> Oh no, now she's finding out about tabs turning into spaces
809: [10:31:53] <ss23> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Centered!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
810: [10:32:01] <ss23> ^ fuq css
811: [10:32:08] <adrexia> umm
812: [10:32:15] <adrexia> doing it wrong, much?
813: [10:35:58] <adrexia> besides <center>Text</center> probs still works :D
814: [10:36:38] * Vedran__ has joined #silverstripe
815: [10:36:45] * Vedran__ quit (Client Quit)
816: [10:47:21] * Kingy is now known as Kingy[a]
817: [10:47:22] * wmk has joined #silverstripe
818: [10:55:37] <sneha> Hello, I have a strang issue. There is a 'has_many' Banner Dataobject in one page. In database it shows entries in Banner table. & in Frontend also it shows banners. but In admin panel those banners are not visible. How do I get them visible in admin area.
819: [11:02:23] * darjus01 quit (Quit: Leaving)
820: [11:08:48] * bemusedrat quit (Quit: Leaving)
821: [11:13:31] * veb quit (Quit: veb-irc: &)
822: [11:14:21] <swaiba> sneha - are you adding the the gridfield in the getCMSFields?
823: [11:14:38] * cloph_away is now known as cloph
824: [11:14:42] <swaiba> ModelAdmin will scaffold it, but PAges do not you have to add the fields
825: [11:17:18] * sneha quit (Ping timeout: 246 seconds)
826: [11:17:22] <ss23> Any way to say like
827: [11:17:38] <ss23> ->filter(JoinedObject() : count > 5)
828: [11:17:45] <ss23> e.g. filter based on how many joinedobjects there are?
829: [11:17:46] <ss23> I presume not
830: [11:17:48] * veb has joined #silverstripe
831: [11:20:22] <swaiba> hmmmm with direct SQL you can use HAVING clause ss23 - but I'm sure you want an ORM answer
832: [11:21:11] <ss23> yep :P
833: [11:21:28] <ss23> This code uses the filter with callback, which seems to be okay, just making sure there wasn't a gooder way
834: [11:21:31] * r_hector quit (Remote host closed the connection)
835: [11:22:51] * Tanger quit (Quit: sleep())
836: [11:23:54] * Tanger has joined #silverstripe
837: [11:23:56] * Liquide has joined #silverstripe
838: [11:34:54] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
839: [11:40:04] <Py1512k> ss23: don't think sqlquery (and dataquery) support having.
840: [11:40:11] <Py1512k> don't particularly remember though
841: [11:40:16] <Py1512k> hmm actually they do
842: [11:40:17] <Py1512k> derp
843: [11:40:21] <Py1512k> because I use it all the time.
844: [11:40:28] * joelpittet has joined #silverstripe
845: [11:40:40] <Py1512k> nfi how though. Just know it does because I wrapped ultrashit crudigniter code with sqlquery
846: [11:40:54] <Py1512k> (and it appears to work)
847: [11:41:16] <Py1512k> But via orm you'd have to specifically ->alterDataQuery() I think
848: [11:41:47] <Py1512k> GroupedList should allow for it, but only handles the actual GROUP BY.
849: [11:45:16] <ss23> it's fine
850: [11:45:17] <ss23> minr anyway
851: [11:45:18] * joelpittet quit (Ping timeout: 248 seconds)
852: [11:45:18] <ss23> minor*
853: [11:46:13] * lerni quit ()
854: [11:49:08] * lerni has joined #silverstripe
855: [11:50:34] * zippy has joined #silverstripe
856: [11:50:54] <zippy> Py1512k: do you ever do any work :)
857: [11:51:04] <zippy> kinglozzer: o/
858: [11:52:11] <zippy> mmm noddles...!
859: [11:52:28] <zippy> seems you can't have a static method in a dataextension
860: [11:53:06] <zippy> might have to trait it
861: [11:53:23] <ss23> Question, someone is using requireDefaultRecords -> $p = new Permission(); $p->Code = 'foo';
862: [11:53:35] <ss23> They should just be using PermissionProvider and letting /dev/build take care of it, right?
863: [11:54:11] <zippy> ss23: shuold they?
864: [11:54:27] * zippy squints at ss23
865: [11:54:28] <ss23> Well, I guess my question was, is that how PermissionProvider works? Does it just do that?
866: [11:54:31] <ss23> Is there a reason you wouldn't?
867: [11:54:31] <zippy> shouldn't you know this :P
868: [11:54:37] <ss23> zippy: I have a confession
869: [11:54:40] <ss23> I don't know SilverStripe :O
870: [11:54:41] <zippy> !docs PermissionProvider
871: [11:54:48] <ss23> I only survived my 3 months here becaues simon_w was on IRC
872: [11:55:00] <ss23> Once he stopped coming on as much I tried to avoid doing SS work :D
873: [11:55:11] <zippy> :)
874: [11:55:13] <ss23> It worked for a while, but now I'm doing it again, and everyone seems to be like "Oh yeah, ss23, he's been working here a while, he knows SS"
875: [11:55:17] <ss23> little do they know
876: [11:55:21] <ss23> zippy: help an IRCer out!
877: [11:55:24] <ss23> It's wrong to do it like this, right?
878: [11:55:26] <zippy> flush all the things eh
879: [11:56:14] <zippy> ss23: I think IIRC you implment PermissionProvider on your class, then have a fucntion providePermissions() which returns an array of the permissions
880: [11:56:28] <ss23> yeah
881: [11:56:33] <zippy> http://docs.silverstripe.org/en/3.3/developer_guides/security/permissions/
882: [11:56:39] <ss23> Which I would assume internally does reflrection to figure them out then do the DO creation
883: [11:56:45] <ss23> But these people are doing it directly, which I haven't seen before
884: [11:56:56] <ss23> Mainly I wanted to make sure there isn't a reason *to* do it this way
885: [11:59:08] * sneha has joined #silverstripe
886: [12:00:05] <Py1512k> zippy: I'm on docs for like 2 months now
887: [12:00:31] <zippy> ss23: ps, you still owe me that burger :)
888: [12:00:34] * zippy never forget
889: [12:00:49] <Py1512k> zippy: also, of course you can have a static method in a dataextension
890: [12:01:06] <Py1512k> You can have a static method in any class you feel like.
891: [12:01:11] <zippy> that is true
892: [12:01:16] <zippy> but if I have an oject called Foo
893: [12:01:23] <ss23> zippy: yeah yeah... stupid cricket >.>
894: [12:01:29] <zippy> and I create a dataextension called Bar with a static function
895: [12:01:35] <zippy> I can't do Foo::myFunc() can I
896: [12:01:40] <Py1512k> yes
897: [12:01:42] <zippy> has to be Bar::myFunc
898: [12:01:48] * zippy squints at Py1512k
899: [12:01:50] <Py1512k> implement __callStatic() in a parent class
900: [12:02:09] <zippy> right, so its not supported out of box
901: [12:02:24] <Py1512k> I don't think so, no.
902: [12:02:42] <Py1512k> But you're calling it wrong anyway if that's the case.
903: [12:02:43] <Py1512k> encapsulate your shit better zippy !
904: [12:02:58] <Py1512k> f'n laravel nub
905: [12:03:03] <Py1512k> :P
906: [12:03:31] <zippy> haha
907: [12:03:54] * zippy is feeling the love from Py1512k
908: [12:04:14] <zippy> so you are Pyker in #l ? :P
909: [12:04:50] <zippy> I will just have to create a DataObject these others can extend
910: [12:05:00] <zippy> since no traits on this mofo
911: [12:05:40] * marvanni has joined #silverstripe
912: [12:06:13] <ss23> another q
913: [12:06:56] <ss23> getCMSFields() -> addFieldToTab('foo', TextField('Baz', 'Baz', $this->baz));
914: [12:07:04] <ss23> Is the $this->baz required? I thought it would default to it, right?
915: [12:07:17] <ss23> like if there's a field called baz and your DO has a field called baz, the ~magic~ makes it work
916: [12:11:00] <zippy> is there a baz column? might be 'magic'
917: [12:11:05] <zippy> like, populating themselves
918: [12:16:27] <zippy> heh
919: [12:16:52] <zippy> listening to some skrillex to keep the head charging, and this came on; https://www.youtube.com/watch?v=ryR9A8-Nl0Q
920: [12:16:55] <zippy> random..
921: [12:17:40] * UndefinedOffset has joined #silverstripe
922: [12:21:05] <zippy> UndefinedOffset: o/
923: [12:32:45] <wmk> ss23, TextField::create(<FieldName>, <Title>);
924: [12:32:54] <wmk> will insert the current value automatically
925: [12:33:12] <wmk> you can also skip title, if it's the fieldname
926: [12:41:56] <ss-helper> SilverStripe - Multilingual Custom Form Template - http://stackoverflow.com/questions/30718678/silverstripe-multilingual-custom-form-template
927: [12:42:19] <ss23> Sweet, wmk, thought so, thanks!
928: [12:46:01] * marijnk has joined #silverstripe
929: [12:47:33] <marijnk> Is there an easy way for SS not to use thousand sepators in numericfields for forms? When re-submitting the form it chokes on the commas.
930: [12:49:49] <zippy> marijnk: don't use numericfields? just use a textfield maybe
931: [12:50:07] <zippy> or, you could setup your own numericfield template
932: [12:50:39] <zippy> you'd miss the validation using a textfield thou
933: [12:50:49] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
934: [12:50:53] <ss23> peer reviewing 2k lines is super duper grueling
935: [12:50:55] * ss23 cries
936: [12:53:12] <marijnk> I'd like to use the validation. Might just have to filter out the commas on submition...
937: [12:53:14] <kinglozzer> \o zippy
938: [12:53:17] <kinglozzer> Aww I missed him
939: [12:53:23] * kinglozzer was stuffing my face with burger
940: [12:53:36] <ss23> burger burger :D
941: [12:54:36] * svandragt quit (Ping timeout: 246 seconds)
942: [12:58:22] <Py1512k> [13:04] <zippy> so you are Pyker in #l ? :P
943: [12:58:22] <Py1512k> neg
944: [12:58:59] <Py1512k> [13:07] <ss23> like if there's a field called baz and your DO has a field called baz, the ~magic~ makes it work
945: [12:59:09] <Py1512k> No, only if it's scaffolded I think.
946: [12:59:36] * archer_ has joined #silverstripe
947: [12:59:44] <Py1512k> mebbe not in cms, getCMSFields are populated with datamodel before EditForm is returned I think
948: [12:59:54] <archer_> how can i make an interface in admin for converting pdf to html help plz
949: [12:59:55] <Py1512k> so it depends on context
950: [12:59:59] * archer_ is now known as Guest91299
951: [13:00:09] <Py1512k> Guest91299: extend LeftAndMain.
952: [13:00:12] <Guest91299> how can i make an interface in admin for converting pdf to html help plz
953: [13:00:18] <Py1512k> Guest91299: extend LeftAndMain.
954: [13:00:38] <Py1512k> of CMSMain maybe.
955: [13:00:42] <Py1512k> or*
956: [13:00:57] <Guest91299> then
957: [13:02:11] <Py1512k> the implement your interface
958: [13:02:15] <Py1512k> then*
959: [13:03:25] <Guest91299> can you please provide me the code i need urgent plz
960: [13:04:01] * guci0 has joined #silverstripe
961: [13:04:09] <guci0> Hello ;)
962: [13:04:37] <ss23> hihi
963: [13:04:48] <ss23> oh no guci0 is here, time to go home
964: [13:04:48] <ss23> :O
965: [13:08:16] <swaiba> guci0 o/
966: [13:08:17] * marvanni quit (Ping timeout: 252 seconds)
967: [13:08:38] <Guest91299> is there any silverstripe module to convert pdf to html\
968: [13:09:14] <swaiba> Guest91299 - http://addons.silverstripe.org/add-ons?search=pdf
969: [13:11:30] <Guest91299> i didnt find any useful can i do this with coding
970: [13:11:42] * wmk quit (Ping timeout: 248 seconds)
971: [13:12:08] * ss-helper quit (Remote host closed the connection)
972: [13:12:21] * ss-helper has joined #silverstripe
973: [13:13:52] <swaiba> Guest91299 :O - well plenty there, personally I've always had best results with tcpdf, but hey best of luck
974: [13:15:15] * slievr_ quit (Ping timeout: 246 seconds)
975: [13:20:58] * marvanni has joined #silverstripe
976: [13:24:21] * sneha quit (Ping timeout: 246 seconds)
977: [13:36:12] * veb quit (Quit: veb-irc: &)
978: [13:36:13] * Colin[pi] quit (Read error: Connection reset by peer)
979: [13:37:51] <Mike123> i still wonder how to change this module https://github.com/sheadawson/silverstripe-blocks so that i could use it on DataObject as page
980: [13:37:53] * veb has joined #silverstripe
981: [13:38:32] * veb quit (Client Quit)
982: [13:41:16] * joelpittet has joined #silverstripe
983: [13:45:21] * Guest91299 quit (Ping timeout: 246 seconds)
984: [13:46:18] * joelpittet quit (Ping timeout: 265 seconds)
985: [13:47:47] <Py1512k> Mike123: Page is a DataObject.
986: [13:47:57] <Py1512k> That said, it may not be easy.
987: [13:51:32] <Mike123> Py1512k , yes it is a DO but Block are made only for SiteTree ...
988: [13:54:38] * Tanger quit (Quit: sleep())
989: [13:57:57] * UndefinedOffset quit (Read error: Connection reset by peer)
990: [13:59:23] * UndefinedOffset has joined #silverstripe
991: [14:07:00] <Py1512k> Mike123: well, it's belongs_many_many Page technically. Nothing stopping you from making it relevant to something else too
992: [14:07:08] <Py1512k> use Extension :>
993: [14:07:13] <Py1512k> err, DataExtension
994: [14:10:20] <Mike123> i tried.. cant get it right :)
995: [14:17:34] * swaiba_ has joined #silverstripe
996: [14:19:34] * swaiba quit (Ping timeout: 250 seconds)
997: [14:26:45] * _hschillig has joined #silverstripe
998: [14:27:30] <_hschillig> Hey I'm following this tutorial: http://www.silverstripe.org/learn/lessons/working-with-data-relationships-many-many
999: [14:27:31] <_hschillig> I posted in the comments my error I'm getting. I keep getting the "Uncaught LogicException: map can't be called on an UnsavedRelationList." when I add a new article, but not when I edit them. I noticed he never added a new article in his tutorial so he probably didn't stumble into this. I'm guessing it's because a new project doesn't have a Parent() relation yet?
1000: [14:30:28] * UndefinedOffset quit (Quit: Leaving.)
1001: [14:38:44] * muskie9 has joined #silverstripe
1002: [14:40:15] <_hschillig> Yeah I had to do ArticleCategory::get()->map('ID', 'Title') instead!
1003: [14:41:54] <muskie9> anyone have issues with ->sort('RAND()') not working... getting the same records returned in this even though at least 4 pass the filterByCallback: https://gist.github.com/muskie9/2542df4d062f764f64ba
1004: [14:42:58] <cloph> Isn't a feature of the get().... stuff to cache results?
1005: [14:43:14] <kinglozzer> cloph: No, get_one() caches the result
1006: [14:43:43] <kinglozzer> muskie9: filterByCallback() returns an ArrayList
1007: [14:43:48] <kinglozzer> Put your sort before it
1008: [14:44:11] <muskie9> ah, that did it, thanks kinglozzer
1009: [14:45:04] <marvanni> Did I just bought Coda for this to replace Dreamweaver completely, do we have this in PHPStorm : http://blog.jetbrains.com/phpstorm/2015/04/remote-edit-in-phpstorm-9-eap/
1010: [14:46:28] <muskie9> marvanni I think they just added that in 9, and 9 came out yesterday I think
1011: [14:46:42] <marvanni> Yeah, I got the mail today…
1012: [14:47:19] * Mike123 quit (Quit: Page closed)
1013: [14:47:32] <muskie9> coda's been upgraded quite a bit too... seems better than it used to be, but once I switched to phpstorm I never looked back
1014: [14:49:02] <marvanni> I really misted a quick editting possiblity, without needing to switch my ide
1015: [15:03:04] * marijnk quit (Quit: Page closed)
1016: [15:05:03] <kinglozzer> Been playing around with PHP7... rename Int -> SS_Int, fix a few syntax changes and SS seems to work fine!
1017: [15:05:15] <kinglozzer> Well, apart from some strange autoload / include_path issues
1018: [15:07:54] * wmk has joined #silverstripe
1019: [15:09:20] * lerni quit ()
1020: [15:12:16] * wmk quit (Ping timeout: 246 seconds)
1021: [15:17:30] <Py1512k> Motor show this weekend kinglozzer
1022: [15:17:53] <Py1512k> Apparently Le Mans Audi R18 e-tron Quattro is gonna be there.
1023: [15:17:58] <Py1512k> I'm skeptical personally.
1024: [15:18:07] <Py1512k> Unless it's last year's car or something.
1025: [15:18:47] <kinglozzer> Py1512k: noice
1026: [15:18:59] <Py1512k> is free. Come for a trip or something
1027: [15:19:00] <Py1512k> :P
1028: [15:19:14] <kinglozzer> I'm already busy this weekend!
1029: [15:19:22] <kinglozzer> Man I wanna go to Goodwood FOS though :(
1030: [15:19:44] <Py1512k> Oh yeah, that looked really cool.
1031: [15:20:04] <Py1512k> The Porsche lemans folk (or at least, the kiwi one) are gonna be there
1032: [15:22:38] <Py1512k> http://www.chroniclelive.co.uk/news/north-east-news/ne1-newcastle-motor-show-glamour-9609515
1033: [15:28:33] * arnhoe quit ()
1034: [15:31:02] <kinglozzer> Aww, I thought for a split second that was one of the v8 f1 cars :(
1035: [15:32:22] <Py1512k> idek
1036: [15:32:33] <Py1512k> Just gaan have a gander at some point
1037: [15:42:21] * joelpittet has joined #silverstripe
1038: [15:46:39] * joelpittet quit (Ping timeout: 244 seconds)
1039: [15:46:57] * joelpittet has joined #silverstripe
1040: [16:07:52] * Py1512k quit (Quit: Page closed)
1041: [16:08:14] * UndefinedOffset has joined #silverstripe
1042: [16:15:35] * _hschillig has left #silverstripe
1043: [16:17:10] * cloph is now known as cloph_away
1044: [16:23:53] * swaiba_ quit (Remote host closed the connection)
1045: [16:29:09] * kinglozzer quit ()
1046: [16:52:41] * GioVdK quit (Ping timeout: 252 seconds)
1047: [16:56:45] * jarr0dsz has joined #silverstripe
1048: [16:59:10] * jarr0dsz is now known as jarrodszt
1049: [17:13:28] * cloph_away is now known as cloph
1050: [17:41:01] * darjus01 has joined #silverstripe
1051: [17:55:04] * ss-helper quit (Ping timeout: 246 seconds)
1052: [17:59:41] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1053: [18:08:49] * zlinux has joined #silverstripe
1054: [18:09:37] <darjus01> how to get distinct dates from Created column in ss?
1055: [18:09:58] * ss-helper has joined #silverstripe
1056: [18:21:22] * veb has joined #silverstripe
1057: [18:22:13] * muskie9 has joined #silverstripe
1058: [18:22:58] * jarrodszt quit (Quit: Textual IRC Client: www.textualapp.com)
1059: [18:32:38] * samlander has joined #silverstripe
1060: [18:32:40] <samlander> morning
1061: [18:33:34] <samlander> quick question I have a Requirements::customScript how can i prevent the additon of CDATA .. im trying to load lat/long into a google map script
1062: [18:34:00] <samlander> would .Raw work?
1063: [18:34:29] <samlander> nope drp
1064: [18:36:21] <samlander> http://pastebin.com/wSs4fgHk
1065: [18:36:31] <SphereSilver> Hmmm, lret's see.
1066: [18:36:42] <SphereSilver> Why would you want that?
1067: [18:37:06] <SphereSilver> Why not include the script and load from data-element?
1068: [18:37:12] <cloph> you could make that a standard script and have it read lat/long from a dummy div attribute..
1069: [18:37:56] <cloph> or use javascriptTemplate with your vars.
1070: [18:39:22] <cloph> but depends on how often those values change
1071: [18:43:11] <samlander> ah my method works
1072: [18:43:19] <samlander> i was just being a nub... + is not the same as .
1073: [18:43:33] <samlander> my bad, im used to c# syntax, still adjusting back to php
1074: [18:43:46] * Copperis has joined #silverstripe
1075: [18:44:40] <samlander> and for whatever reason i can use the var directly i have to use a getter
1076: [18:45:34] * zlinux quit (Ping timeout: 248 seconds)
1077: [18:45:41] <samlander> scratch that, typo
1078: [18:45:59] * zlinux has joined #silverstripe
1079: [18:46:01] <cloph> rubber-duck debugging :-)
1080: [18:51:01] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1081: [18:56:23] * SphereSilver hugs Hans
1082: [18:56:43] <SphereSilver> Hans is my rubber errr.... "duck"
1083: [18:56:46] <SphereSilver> AKA cow
1084: [18:58:11] <SphereSilver> https://onedrive.live.com/redir?resid=6DA6BC79CDE4777!38435&authkey=!AAYBpVV_buwOqKg&ithint=file%2cpng
1085: [18:58:15] <SphereSilver> My rubber "duck"
1086: [19:03:30] * guci0 quit (Ping timeout: 246 seconds)
1087: [19:05:30] <samlander> it works good now :)
1088: [19:05:42] <samlander> circular google map with custom marker, accepts lat and long from the cms
1089: [19:10:16] <darjus01> Hi all i made costum arraylist so I could put distict dates to template for loop. and now I wrote function in same controler to get news by that date, but when I make loop Dates and in that loop adding $Up.NewsByDate($Date) it not working please help
1090: [19:12:03] <cloph> SphereSilver: http://pastie.org/10282828
1091: [19:12:48] <darjus01> oh solved
1092: [19:12:58] <darjus01> sql dump problem
1093: [19:14:53] <SphereSilver> cloph: Thank you! :D
1094: [19:16:43] <SphereSilver> It's a JetBrains cow. Besides that, I also have a MySQL dolfin.... :D
1095: [19:17:02] <SphereSilver> https://onedrive.live.com/redir?resid=6DA6BC79CDE4777!35790&authkey=!ABs_hSDsRKG1z_g&v=3&ithint=photo%2cjpg
1096: [19:17:19] <SphereSilver> Don't ask, but I like having those kind of things :P
1097: [19:19:05] * Stomach has joined #silverstripe
1098: [19:30:23] * Stomach quit (Quit: zzz)
1099: [19:30:25] <cloph> I got an obligatory penguin :-)
1100: [19:30:45] <cloph> but no pic, as it's stored away in some cardboard box (moving soon)
1101: [19:40:29] * PenguinMan98 has joined #silverstripe
1102: [19:44:00] * jenniferaslan has joined #silverstripe
1103: [19:44:56] <PenguinMan98> hey guys
1104: [19:45:03] <PenguinMan98> Bossman has a new challenge for me today
1105: [19:45:21] <PenguinMan98> Take the static form I hacked into the site for flight searches and re-do it as a controller
1106: [19:45:41] <PenguinMan98> This seems straightforward if I implement a pagetype for the flightsearch
1107: [19:45:54] <PenguinMan98> The hitch is, he wants me to do it without makign a pagetype
1108: [19:46:07] <PenguinMan98> That way it can't be accidentally deleted in the cms
1109: [19:46:25] <PenguinMan98> Should I humor him and try to manually render the templates?
1110: [19:46:38] <PenguinMan98> Or, is there perhaps a way to hide the page in the CMS?
1111: [19:46:54] <PenguinMan98> so it can't be deleted
1112: [19:47:39] * terryapodaca has joined #silverstripe
1113: [19:50:00] <terryapodaca> is there a multi step form for silverstripe that doesn't reload the page after each step?
1114: [19:50:29] <terryapodaca> or is there a way to modify one of the form modules to do this?
1115: [19:51:36] <PenguinMan98> terryapodaca: You can probably use Session::set('some data for step1', $data); to do what you need
1116: [19:52:23] <marvanni> or set public function canDelete() {return Permission::check(‘ADMIN’)}; on the page, so your client can’t delete it
1117: [19:52:31] <PenguinMan98> Then use $this->redirect( some/page ) to bounce them where you want them to go
1118: [20:12:55] * UndefinedOffset quit (Quit: Leaving.)
1119: [20:15:10] * Stomach has joined #silverstripe
1120: [20:21:26] * stecman has joined #silverstripe
1121: [20:25:12] * veb quit (Quit: veb-irc: &)
1122: [20:26:22] * UndefinedOffset has joined #silverstripe
1123: [20:27:05] * cloph_away has joined #silverstripe
1124: [20:27:27] * cloph quit (Ping timeout: 256 seconds)
1125: [20:31:20] * zlinux quit (Ping timeout: 244 seconds)
1126: [20:31:21] <PenguinMan98> I created a new template in slcair/templates/HiddenPage.ss
1127: [20:31:51] <PenguinMan98> And then added slcair/templates/Layout/HiddenPage.ss
1128: [20:32:23] <PenguinMan98> In my controller init() I told it to $this->renderWith('HiddenPage');
1129: [20:32:51] <PenguinMan98> Then I copied my page templates into the other two
1130: [20:33:03] <PenguinMan98> All seems well
1131: [20:33:20] * Copperis quit (Quit: Leaving)
1132: [20:33:31] <PenguinMan98> In my Layout template, I added $AdvancedSearchForm and created the form on the controller
1133: [20:33:42] <PenguinMan98> There are no errors, but nothing renders
1134: [20:33:57] <PenguinMan98> I mean, the page loads fine up until that point
1135: [20:34:05] <PenguinMan98> but the form doesn't render
1136: [20:35:35] * cloph_away is now known as cloph
1137: [20:39:06] <PenguinMan98> http://sspaste.com/paste/show/559edbd5d6006
1138: [20:39:19] <PenguinMan98> brb. Fart break
1139: [20:41:33] <samlander> dropping the kids off at the pool? making a deposit to brown savings & loan?
1140: [20:41:36] * UndefinedOffset quit (Quit: Leaving.)
1141: [20:42:43] * glenn-bautista has joined #silverstripe
1142: [20:46:08] <glenn-bautista> hamror: look at kirkcaldies.co.nz or trilogyproducts.com - we used SS for those
1143: [20:49:07] <PenguinMan98> Any ideas?
1144: [20:49:26] <PenguinMan98> Why isnt' the form rendering? The method for it is getting called.
1145: [20:52:12] <Stomach> is there data
1146: [20:52:17] <Stomach> and its just returning that?
1147: [20:52:46] <Stomach> due to that echo
1148: [20:54:31] * marvanni quit (Quit: marvanni)
1149: [20:55:39] * DanaeNZ has joined #silverstripe
1150: [20:55:39] <Stomach> hamror - we have lots of ecommerce sites in SS too - junkfreejune.org.nz, hpacademy.com, designdenmark.co.nz, perriam.co.nz, clooneyclub.com
1151: [20:55:43] <Stomach> + more
1152: [20:57:14] * marvanni has joined #silverstripe
1153: [20:58:31] * Ryan-Toast has joined #silverstripe
1154: [20:58:43] * travis-ci has joined #silverstripe
1155: [20:58:44] <travis-ci> silverstripe/silverstripe-framework#5309 (3.2 - 5eec755 : Daniel Hensby): The build passed.
1156: [20:58:44] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/f32a24081b41...5eec755d1736
1157: [20:58:44] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/70286508
1158: [20:58:44] * travis-ci has left #silverstripe
1159: [20:58:56] * marvanni quit (Client Quit)
1160: [20:59:23] <PenguinMan98> You can see the output here: http://screencast.com/t/SmTrZ46k
1161: [20:59:35] <PenguinMan98> Note the big empty area where the form should be
1162: [20:59:41] <PenguinMan98> It's empty in the source too
1163: [20:59:56] <PenguinMan98> between the article tags
1164: [21:00:28] * oddnoc has joined #silverstripe
1165: [21:02:30] <DanaeNZ> good morning laaaadies
1166: [21:02:39] <Stomach> hey DanaeNZ
1167: [21:02:43] <Stomach> good morning oddnoc !
1168: [21:02:43] <DanaeNZ> (I said that in a lewd voice)
1169: [21:02:47] <PenguinMan98> yo
1170: [21:03:00] <DanaeNZ> “Lewd” is an excellent word
1171: [21:03:02] <oddnoc> yo Stomach
1172: [21:03:09] <PenguinMan98> Can you help me figure out why my form isn't rendering? http://sspaste.com/paste/show/559edbd5d6006
1173: [21:03:21] <DanaeNZ> you say it and your face involuntarily scrunches up into a prejudiced piece of crap
1174: [21:03:28] * adrexia_phone has joined #silverstripe
1175: [21:03:36] <Stomach> PenguinMan98 - remove the echos
1176: [21:03:49] <DanaeNZ> adrexia: adrexia_phone WHO WAS PHONE
1177: [21:03:54] * BackEndCoder quit (Quit: https://github.com/BackEndCoder)
1178: [21:04:12] <PenguinMan98> ok
1179: [21:04:34] <DanaeNZ> Add “SimpleFlightSearchForm” and “AdvancedSearchForm” to your allowed actions?
1180: [21:04:59] <DanaeNZ> PenguinMan98: ^^
1181: [21:05:28] <PenguinMan98> Stomach: That worked. Interestingly enough.
1182: [21:05:33] <PenguinMan98> DanaeNZ: Done
1183: [21:05:59] <Stomach> PenguinMan98 - yes like I told you above which you ignored :)
1184: [21:06:11] <PenguinMan98> Sorry
1185: [21:06:14] <PenguinMan98> I guess I missed it
1186: [21:07:27] <PenguinMan98> Now when I submit that form, it takes the control to: http://slcairport.com.local/FlightSearch_Controller/AdvancedFlightSearchForm
1187: [21:07:42] <PenguinMan98> Which doesn't load
1188: [21:08:19] <PenguinMan98> How do I tell it to use /search-flights/AdvancedFlightSearchForm ?
1189: [21:09:59] <simon_w> PenguinMan98, search-flights is custom route?
1190: [21:10:58] <PenguinMan98> Yes. Defined in routes.yml
1191: [21:11:15] <PenguinMan98> 'search-flights//$Action/$ID/$Name': 'FlightSearch_Controller'
1192: [21:11:29] <simon_w> PenguinMan98, public function Link() { return 'search-flights'; } in the controller
1193: [21:12:19] <Stomach> anyone ever had anyone ever had the preview show the cms in the cms
1194: [21:12:20] <Stomach> o_O
1195: [21:13:11] <Ryan-Toast> Stomach: lol
1196: [21:13:17] <Ryan-Toast> No, but that sounds hilerious.
1197: [21:13:36] <PenguinMan98> I got an infinite loop site tree once
1198: [21:14:04] <PenguinMan98> It was after I deleted a page
1199: [21:14:12] * micmania1 has joined #silverstripe
1200: [21:14:26] <PenguinMan98> the page appeared anyway with children and if I opened the children, it gave me the site tree all over again.
1201: [21:14:38] <PenguinMan98> I could recursively open the site tree into infinity
1202: [21:16:15] * simon_w quit (Quit: Ping timeout: your mum)
1203: [21:17:02] <Stomach> http://imgur.com/2XFWmqj
1204: [21:17:34] <adrexia> DanaeNZ:
1205: [21:17:34] <adrexia> adrexia: adrexia_phone WHO WAS PHONE
1206: [21:17:43] <adrexia> my phone when it wants to irc too ;)
1207: [21:17:49] <Ryan-Toast> Stomach: capitalize that Subscribers, maaaaan
1208: [21:18:03] <DanaeNZ> :D
1209: [21:18:03] <Stomach> lol
1210: [21:18:18] <Ryan-Toast> Stomach: it’s obviously what’s causing the issue :D
1211: [21:18:27] <adrexia> Stomach:
1212: [21:18:27] <adrexia> anyone ever had anyone ever had the preview show the cms in the cms
1213: [21:18:37] <adrexia> yeah I used to do it on purpose when we were building it
1214: [21:18:37] <adrexia> :D
1215: [21:18:45] <Stomach> well how do you un do it on purpose
1216: [21:18:46] <Ryan-Toast> Stomach: better question: has anyone ever used preview?
1217: [21:18:51] <Stomach> clients gonna client
1218: [21:19:10] <adrexia> Ryan-Toast me. :P
1219: [21:19:16] <Ryan-Toast> adrexia: :P
1220: [21:19:21] <adrexia> and a bunch of people who use the cms as acms
1221: [21:19:26] <adrexia> you know, users...
1222: [21:19:28] <adrexia> :P
1223: [21:19:30] <Ryan-Toast> users?
1224: [21:19:32] <Ryan-Toast> the fuck is that
1225: [21:19:37] <Ryan-Toast> sounds awful.
1226: [21:19:39] <DanaeNZ> Stomach: did you forget to block out the client name at the top left too ;P
1227: [21:19:46] <Stomach> nah
1228: [21:19:47] * adrexia_phone quit (Remote host closed the connection)
1229: [21:19:51] <adrexia> Stomach I thought that was a bug we stopped from being able to happen, actually
1230: [21:19:51] <Stomach> just the other stuff is different
1231: [21:19:57] <DanaeNZ> _b
1232: [21:20:11] <DanaeNZ> my flatmate’s company just signed a sweet contract with microsoft
1233: [21:20:19] <DanaeNZ> they can ditch all their clients now
1234: [21:20:23] <DanaeNZ> and work on R&D apps
1235: [21:20:25] <DanaeNZ> forever
1236: [21:20:30] <Ryan-Toast> DanaeNZ: the dream
1237: [21:20:32] <DanaeNZ> what an asshole
1238: [21:20:59] <adrexia> it only happened when we used the preview to login to the admin area
1239: [21:21:09] <adrexia> so undoing it was pretty simple
1240: [21:21:10] <DanaeNZ> They were supposed to push a release on Monday, but then realised they were missing some crucial feature
1241: [21:21:14] <Stomach> adrexia - I did the bug :P
1242: [21:21:24] <DanaeNZ> so still have last minute rushes I guess
1243: [21:21:40] <adrexia> you did it?
1244: [21:21:45] <adrexia> made it, fixed it
1245: [21:21:50] <adrexia> ?
1246: [21:22:40] <DanaeNZ> AGH SHUT UP ICALENDAR
1247: [21:23:08] <DanaeNZ> I go home at night and whisper softly to my PC, “I’m sorry baby, I missed you"
1248: [21:25:20] * Hailwood has joined #silverstripe
1249: [21:27:21] <Stomach> no didnt fix it
1250: [21:27:22] <Stomach> :(
1251: [21:27:25] <Stomach> it works locally
1252: [21:27:31] <Stomach> but not on the staging server
1253: [21:27:33] <Stomach> so... wtf
1254: [21:29:41] <Stomach> okay now its happening locally
1255: [21:29:46] <Stomach> silverstripe whyyyyyyy
1256: [21:31:32] <adrexia> wait, it's doing it without you making it do it?
1257: [21:31:42] <adrexia> is there some sort of weird redirect loop happening?
1258: [21:31:50] <Stomach> I think I know whats going on
1259: [21:31:55] <DanaeNZ> Stomach: did you leave a url_handler or something in?
1260: [21:32:31] <Stomach> nah client request that all the page links end with no slash
1261: [21:32:40] <Stomach> so I'm removing that in Page->Link()
1262: [21:32:47] <Stomach> solution -> make homepage link "//"
1263: [21:32:48] <Stomach> lol
1264: [21:32:57] <DanaeNZ> Stomach: omgg
1265: [21:33:52] <cloph> Stomach: have them enter /page.html instead of /page/ :-)
1266: [21:34:03] <Stomach> haha yeah
1267: [21:37:59] * antmas has joined #silverstripe
1268: [21:38:13] <PenguinMan98> Sweet
1269: [21:38:15] <PenguinMan98> I have a working solution
1270: [21:38:18] <PenguinMan98> Thanks guys
1271: [21:38:28] <antmas> morning all o/
1272: [21:39:24] <Ryan-Toast> Morning :)
1273: [21:41:02] <PenguinMan98> yo
1274: [21:41:42] <Stomach> hey antmas
1275: [21:44:44] <antmas> it's Friday yo
1276: [21:46:41] * Cheddam has joined #silverstripe
1277: [21:47:46] <cloph> greetings to the folks in the east that already have Friday :-)
1278: [21:49:13] * antmas waves o/
1279: [21:51:15] * Stomach quit (Quit: zzz)
1280: [21:51:47] <samlander> where's a good place to drop a global function?
1281: [21:54:11] <Ryan-Toast> samlander: from space
1282: [21:54:17] <Ryan-Toast> ayyyyyy
1283: [21:54:33] <Ryan-Toast> samlander: depends where you want to access it.
1284: [21:54:45] <samlander> yeah, i think im just gonna shove it in my page.php
1285: [21:55:02] <Ryan-Toast> samlander: what’s the use case?
1286: [21:55:23] <samlander> populates a common drop down
1287: [21:56:33] <Ryan-Toast> samlander: Page should be fine.
1288: [21:56:49] * Stomach has joined #silverstripe
1289: [21:56:51] * oddnoc quit (Quit: yawn!)
1290: [21:56:54] <Ryan-Toast> That or make a data extension, and assign it to the relevant page types
1291: [22:02:24] * Pyrmnk has joined #silverstripe
1292: [22:02:32] <Stomach> nooooo
1293: [22:02:43] <Stomach> use a TemplateGlobalProvider
1294: [22:02:44] <Pyrmnk> sup my sexies
1295: [22:02:52] <Stomach> hey Pyrmnk
1296: [22:02:57] <Pyrmnk> 'lo
1297: [22:03:09] * veb has joined #silverstripe
1298: [22:03:15] <Stomach> samlander - like this https://github.com/heyday/silverstripe-menumanager/blob/master/code/MenuManagerTemplateProvider.php
1299: [22:03:38] <Ryan-Toast> How can you force a cms edit form refresh from entwine?
1300: [22:04:37] <Stomach> $.entwine('FORCEREFRESHALL');
1301: [22:05:19] <Ryan-Toast> Stomach: danke :)
1302: [22:05:23] <antmas> Pyrmnk: o/
1303: [22:05:29] <Stomach> Ryan-Toast not really
1304: [22:05:32] <Stomach> that was a lie
1305: [22:05:32] <Ryan-Toast> Stomach: where is that in the docs? I couldn’t seem to locate it
1306: [22:05:34] <Stomach> I'm sorry
1307: [22:05:38] <Ryan-Toast> you monster
1308: [22:05:46] <Ryan-Toast> YOU MONSTER
1309: [22:05:59] <Stomach> adrexia might know
1310: [22:06:32] <adrexia> like a reload?
1311: [22:06:39] <adrexia> I think it might be called reload
1312: [22:06:40] <Ryan-Toast> adrexia: yarp
1313: [22:06:46] <adrexia> it's been a while
1314: [22:06:50] <Ryan-Toast> Is there some docs on it anywhere, do you know?
1315: [22:06:54] <adrexia> lololol
1316: [22:07:00] <adrexia> soz
1317: [22:07:00] <Ryan-Toast> silly question :P
1318: [22:07:10] <Ryan-Toast> ss23
1319: [22:07:13] <adrexia> the js is all undocusmenets
1320: [22:07:18] <Ryan-Toast> Write some docs right now, pls.
1321: [22:07:28] <adrexia> which is a bit silly given how much heavy lifting its doing
1322: [22:07:34] <Ryan-Toast> Hmm.
1323: [22:07:40] <Ryan-Toast> May just have a trawl through the JS
1324: [22:07:42] <adrexia> Ryan you need to trigger a pjax reload
1325: [22:08:40] <adrexia> it might be called "redraw" actually
1326: [22:09:00] <Pyrmnk> PenguinMan98: good to see you're learning.
1327: [22:09:31] <PenguinMan98> Pyrmnk: A lot of thanks to you awesome people and your patience.
1328: [22:09:33] <adrexia> LeftAndMain.js probably has your answer
1329: [22:09:37] <Ryan-Toast> adrexia: $('.cms-container').redraw();
1330: [22:09:40] <Ryan-Toast> looks like
1331: [22:09:43] <adrexia> does it work?
1332: [22:09:44] <adrexia> :)
1333: [22:09:57] <Ryan-Toast> Will test it in a few minutes, just setting up some other methods first :)
1334: [22:13:18] <Pyrmnk> PenguinMan98: so how do you find it now you're starting to ged a solid knowledge base?
1335: [22:13:40] * benjhocking quit (Ping timeout: 264 seconds)
1336: [22:13:42] <Pyrmnk> get*
1337: [22:13:45] <adrexia> Seems like stuff written for other devs to use gets documented, but nothing that is about the inner workings of the admin interface is very well docuemnted
1338: [22:14:01] * Stomach quit (Quit: zzz)
1339: [22:14:41] <PenguinMan98> There's a lot of really powerful and fun things built in. Far more than the documentation covers. It's getting easier and that's great.
1340: [22:16:02] <Pyrmnk> cool. so you're enjoying it?
1341: [22:17:13] <PenguinMan98> Yes. I'm getting bossman's tasks done more quickly now and he's enjoying that. that makes me happy because I'm not as afraid of getting canned
1342: [22:17:28] <antmas> lol
1343: [22:17:29] * Stomach has joined #silverstripe
1344: [22:17:30] <Pyrmnk> neato
1345: [22:19:13] <Pyrmnk> protip: don't get them done too quickly, if you finish early then read up or investigate on how to make it better :>
1346: [22:19:42] <adrexia> yeah often the way to approach things when you are using a framework is to first assume there is something that will do it for you, and see if that assumption is correct
1347: [22:19:45] <Pyrmnk> then the pressure bar will hopefully stay off your throat ;)
1348: [22:19:55] * mahfuz has joined #silverstripe
1349: [22:19:56] <adrexia> that way you don't invest in reinventing the wheel :)
1350: [22:20:08] <PenguinMan98> oic
1351: [22:20:13] <Pyrmnk> or learn bad habbits
1352: [22:21:11] <Pyrmnk> plus you stay relevant as the api evolves ;>
1353: [22:21:55] <adrexia> 50% research :D
1354: [22:22:14] <adrexia> sometimes more like 80% when you are new to something
1355: [22:22:16] <Pyrmnk> I prefer 98% 0ersonally.
1356: [22:22:20] <adrexia> :D
1357: [22:22:23] <Pyrmnk> haha
1358: [22:22:34] <adrexia> Yeah i love it when a problem is solved with only 2% dev too ;)
1359: [22:23:00] <Pyrmnk> jokes aside 50% seems like a reasonable number
1360: [22:23:14] <veb> who here would swap a decent android phone for my iphone4s and kindle fire?
1361: [22:23:19] <veb> myson broke my 'droid
1362: [22:23:23] <veb> and I hate iphone >:{
1363: [22:23:26] <Ryan-Toast> adrexia: redraw is not a function :P
1364: [22:23:37] <adrexia> it is
1365: [22:23:45] <Ryan-Toast> console diagrees
1366: [22:23:47] <adrexia> but you have to find the right object
1367: [22:23:55] <Pyrmnk> yeh, like whem orm changed from long sql fragments to a small filter array :>
1368: [22:24:00] <adrexia> hint - objects that have pjax-somethign on them
1369: [22:24:01] <DanaeNZ> when in doubt, .__super?
1370: [22:24:11] <adrexia> lol
1371: [22:24:21] * DanaeNZ knows hardly anything about entwine
1372: [22:24:46] <Ryan-Toast> no-one does
1373: [22:25:39] <adrexia> this.find('.cms-edit-form[data-layout-type]').redraw();
1374: [22:25:47] <adrexia> ignore the this find part
1375: [22:26:04] <adrexia> entwine is just a superset of jquery
1376: [22:27:03] <adrexia> it makes js feel more like php by having to get the right object before you can call functions on it ;)
1377: [22:27:33] <adrexia> though, so does any somewhat architechured js
1378: [22:28:03] <Ryan-Toast> Just wish there was more documentation on it :/
1379: [22:28:12] <adrexia> yeah
1380: [22:28:16] <adrexia> With you there
1381: [22:28:27] <adrexia> but also unwilling to write it all from scratch :P
1382: [22:28:34] <Pyrmnk> lies Tyan-Toast
1383: [22:28:59] * oddnoc has joined #silverstripe
1384: [22:29:25] <Pyrmnk> o/ oddnoc
1385: [22:29:39] <adrexia> actually, some of the js has fairly decent docblocks
1386: [22:29:53] <adrexia> maybe we could throw a thing at it and extract it into real docs
1387: [22:30:04] <oddnoc> yo Pyrmnk
1388: [22:30:19] <adrexia> perhaps that's another argument for a proper js build tool :D
1389: [22:30:36] * Stomach quit (Quit: zzz)
1390: [22:30:39] <Ryan-Toast> Perhaps we should just use the frameworks that we implement in the cms :P
1391: [22:30:52] <adrexia> sorry, what?
1392: [22:31:10] <Ryan-Toast> just use jQuery if we use jQuery?
1393: [22:31:17] <adrexia> err no
1394: [22:31:29] <adrexia> entwine makes jquery usable on teh scale we use it
1395: [22:31:34] <Pyrmnk> I don't think entwine is really that complex (thusly nor hard to understand). it's just... a bit obfuscated
1396: [22:31:36] <adrexia> it wouldn't otehrwise be useable
1397: [22:31:55] <adrexia> but... there's not much to entwine itself anyone
1398: [22:31:57] <adrexia> *anyway
1399: [22:32:12] <Pyrmnk> yeh.
1400: [22:32:14] <adrexia> the complexity is in the code that's been written - the custom stuff
1401: [22:32:29] <adrexia> which we can totally make api docs for
1402: [22:32:50] <adrexia> at least for the really important stuff like redraw and loadPanel
1403: [22:32:52] <Pyrmnk> Ryan-Toast: aren't you a BEM kinda guy?
1404: [22:32:55] * UncleCheese has joined #silverstripe
1405: [22:32:58] <Ryan-Toast> Pyrmnk: ye
1406: [22:33:25] <Ryan-Toast> adrexia: I’m just lazy :P I’ll go through and learn it goood :)
1407: [22:33:37] <Pyrmnk> well, just think of entwine as bem for js
1408: [22:33:55] <adrexia> haha
1409: [22:34:03] <adrexia> yeah, aren't we all ;)
1410: [22:34:22] <hamror> what's the usual rate for a contract dev these days
1411: [22:34:28] <adrexia> it would help though if there was at least some genral archtecture notes
1412: [22:34:29] <hamror> this firm wants to fill me in for maybe 2 months
1413: [22:34:31] <Pyrmnk> you basically encapsulate functionality to a selector (functional block/widget)
1414: [22:34:37] <hamror> i'm in auckland
1415: [22:34:52] * Stomach has joined #silverstripe
1416: [22:34:58] <adrexia> the ones we have are better than they were though
1417: [22:35:03] <Pyrmnk> hamror like $120 right?
1418: [22:35:26] <adrexia> http://docs.silverstripe.org/en/3.1/developer_guides/customising_the_admin_interface/cms_architecture/#layout-and-panels
1419: [22:36:00] <adrexia> ummm
1420: [22:36:13] <adrexia> can a start a campaign for simple english in documentation
1421: [22:36:15] <Pyrmnk> adrexia Ryan-Toast also that tutorial kinglozzer wrote is pretty ace
1422: [22:36:21] <Ryan-Toast> Pyrmnk: link?
1423: [22:36:28] <adrexia> I know what that stuff says becuase I know what it's referring too
1424: [22:36:36] <adrexia> but meh
1425: [22:36:37] * Stomach quit (Client Quit)
1426: [22:36:39] <Pyrmnk> takeaway.bigfork.co.uk
1427: [22:37:08] <Ryan-Toast> Pyrmnk: chur
1428: [22:37:44] <adrexia> "The various panels and UI components within them are loosely coupled to the layout engine through the data-layout-type attribute. The layout is triggered on the top element and cascades into children, with a redraw method defined on each panel and UI component that needs to update itself as a result of layouting."
1429: [22:37:45] <Pyrmnk> slash archive
1430: [22:37:53] * darjus01 quit (Read error: Connection reset by peer)
1431: [22:37:56] <Ryan-Toast> http://takeaway.bigfork.co.uk/a-beginners-introduction-to-using-entwine-in-silverstripe
1432: [22:38:18] <Pyrmnk> yup
1433: [22:38:45] <adrexia> 'loosely coupled' in this case refers to how any semi-decent js works
1434: [22:39:42] <adrexia> data attributes are used to tie the layout out js to panels defiend in the cms
1435: [22:39:52] <adrexia> *defined
1436: [22:39:53] <Pyrmnk> Ryan-Toast's momma is loosely coupled!
1437: [22:40:07] * ss-helper quit (Remote host closed the connection)
1438: [22:40:18] <Ryan-Toast> Pyrmnk: rofl
1439: [22:40:20] * ss-helper has joined #silverstripe
1440: [22:40:34] <adrexia> lol
1441: [22:40:35] <adrexia> http://docs.silverstripe.org/en/3.1/developer_guides/customising_the_admin_interface/cms_architecture/#ajax-loading-and-browser-history
1442: [22:40:40] <adrexia> it quite useful
1443: [22:41:17] <Pyrmnk> I fink iz sleeps nao
1444: [22:41:26] <adrexia> night!
1445: [22:41:27] <Ryan-Toast> Pyrmnk: night, man
1446: [22:41:35] <Pyrmnk> gg, glhf
1447: [22:46:02] * antmas yawns
1448: [22:46:06] <antmas> :|
1449: [22:46:07] <antmas> :o
1450: [22:46:09] <antmas> :O
1451: [22:46:12] <antmas> :()
1452: [22:46:14] <antmas> :O
1453: [22:46:15] <antmas> :o
1454: [22:46:17] <antmas> :|
1455: [22:47:52] <simon_w|air> Rain rain rain :D
1456: [22:48:38] <antmas> kinda wish we had rain
1457: [22:48:45] <antmas> only for the sake of it warming the air slightly :P
1458: [22:52:57] * glenn-bautista quit (Quit: Leaving.)
1459: [22:54:26] <adrexia> we have near-hail rain
1460: [22:54:34] <adrexia> its freezing
1461: [22:54:48] <simon_w|air> There's like a 30% chance of snow over the weekend
1462: [22:55:01] <adrexia> it was all I needed to convince myself that today was a working from home day
1463: [22:55:21] <antmas> totally 100% over the cold
1464: [22:55:27] <antmas> bring on summer
1465: [22:55:29] <antmas> :/
1466: [22:55:30] <adrexia> some people in wellignton had snow yesterday
1467: [22:55:45] <adrexia> I actually sort of love the cold
1468: [22:55:53] <adrexia> just wish it were less windy and wet
1469: [22:56:02] <antmas> I can't stand it :O
1470: [22:56:09] <simon_w|air> Ooh, it's 4 degrees at the moment
1471: [22:56:17] <simon_w|air> It's like our warmest morning for a month
1472: [22:56:20] <DanaeNZ> I’m a permanently cold person
1473: [22:56:26] <DanaeNZ> this weather is not good for me
1474: [22:56:45] <adrexia> simon_w|air we tots have double that!
1475: [22:56:48] <adrexia> :P
1476: [22:56:55] <simon_w|air> "double" :p
1477: [22:57:03] <adrexia> 8deg
1478: [22:57:21] <adrexia> I'm a permanently warm person
1479: [22:57:23] <antmas> DanaeNZ: I know that feeling
1480: [22:57:38] <antmas> I have super low blood pressure so all my extremeties are constantly icy
1481: [22:57:39] <adrexia> hot tempuratures kill me
1482: [22:58:23] * Liquide quit ()
1483: [22:58:38] <antmas> adrexia: I love hot temperature, as long as it's not humid
1484: [22:58:46] <antmas> dry and crispy :D
1485: [22:59:02] * Stomach has joined #silverstripe
1486: [22:59:15] <adrexia> I used to feel that way. But now that I've been in wellington for so long I am no longer suitably alicalized to enjoy it
1487: [22:59:22] <samlander> its 90f/32c here with 30% humidity atm
1488: [22:59:36] <adrexia> * acclimatized
1489: [22:59:56] <adrexia> too warm!
1490: [23:00:12] <antmas> 7.2c and 63.5% here
1491: [23:00:27] * Cheddam quit (Ping timeout: 256 seconds)
1492: [23:00:32] * Kingy[a] is now known as Kingy
1493: [23:00:39] <Kingy> morning
1494: [23:00:55] <antmas> Kingy: o/
1495: [23:01:10] <DanaeNZ> praaaiiise this coffee
1496: [23:01:21] <antmas> oooh coffee
1497: [23:01:25] * antmas goes to get some
1498: [23:01:37] <Kingy> apparently the gold coast is in for its coldest winter in 5 years
1499: [23:01:39] <Kingy> low teens they say
1500: [23:01:43] <Kingy> pussies
1501: [23:02:52] * helenclarko has joined #silverstripe
1502: [23:03:01] <helenclarko> o/
1503: [23:03:08] <antmas> helenclarko: o/
1504: [23:03:20] <Kingy> hey helenclarko
1505: [23:03:46] <helenclarko> heyo!
1506: [23:04:31] <Kingy> BREAKING NEWS Lions 2017 rugby tour match schedule is out ... more soon
1507: [23:05:04] <antmas> Kingy: lol I saw that
1508: [23:05:10] <antmas> "breaking news"
1509: [23:05:22] <Kingy> https://pbs.twimg.com/media/CJgZBHHXAAA1mVy.png:large
1510: [23:05:48] <Kingy> they played in palmy last time, was epic
1511: [23:05:56] <Kingy> even though we lost like 105-3 or something
1512: [23:05:58] * zlinux has joined #silverstripe
1513: [23:06:47] <antmas> I'd love to see them play our Makos
1514: [23:06:58] <Kingy> yeah that'd be good
1515: [23:07:04] <helenclarko> wow, thats a 2017 schedule.
1516: [23:07:13] <Kingy> don't know why they play super xv teams
1517: [23:07:19] <helenclarko> feels like its so far away.
1518: [23:07:21] <Kingy> not like they'll be full strength teams
1519: [23:07:29] <antmas> suprised they put Blues on there :P
1520: [23:07:56] <antmas> they should have a * next to Blues (TBD if team still exists or cares)
1521: [23:08:20] <Kingy> haha
1522: [23:08:37] <Kingy> probably be better off playing the auckland team instead of blues
1523: [23:08:54] <antmas> I reckon
1524: [23:09:59] <antmas> Kingy: why wouldn't they be full strength?
1525: [23:10:00] <antmas> thats like towards the end of the season
1526: [23:10:07] <antmas> guess half of them would probably be injured :P
1527: [23:10:08] <DanaeNZ> Anyone going to Wellington armageddon next week? :D
1528: [23:10:19] <Kingy> ABs will be out getting ready for the lions tests
1529: [23:10:21] <antmas> DanaeNZ: would love to, but can't :P
1530: [23:10:31] <Kingy> which in this day and age is usually half the super team
1531: [23:10:36] <DanaeNZ> antmas: you in aus? I forget
1532: [23:10:43] <antmas> Kingy: prolly have a new captain by then
1533: [23:10:46] <antmas> DanaeNZ: Nelson :D
1534: [23:11:01] <DanaeNZ> So welly is your closest one then, haha
1535: [23:11:13] <Kingy> so by the time you call up people the super xv team is basically just the provincial team anyways
1536: [23:11:14] <DanaeNZ> It’s going to be FREEZING
1537: [23:11:15] <antmas> depends, they still do it in ChCh?
1538: [23:11:22] <DanaeNZ> Ya
1539: [23:11:26] * stecman quit (Read error: Connection reset by peer)
1540: [23:11:32] <DanaeNZ> Is it cheaper to fly there?
1541: [23:11:39] <antmas> dunno, maybe?
1542: [23:11:43] <DanaeNZ> pfft no idea
1543: [23:11:49] * stecman has joined #silverstripe
1544: [23:11:49] <antmas> haven't been to chch in like 10 years
1545: [23:11:59] <DanaeNZ> apparently don’t bother, it’s tiny
1546: [23:12:04] <DanaeNZ> welly would be a better bet
1547: [23:12:08] <DanaeNZ> cos ya know, WETA
1548: [23:14:18] <antmas> mm
1549: [23:14:43] <antmas> any excuse to avoid chch I'll take :P
1550: [23:16:09] * samlander quit (Ping timeout: 244 seconds)
1551: [23:18:29] <DanaeNZ> antmas: lel
1552: [23:18:40] <DanaeNZ> “Like most south island towns, it’s a hole!”
1553: [23:23:52] * glenn-bautista has joined #silverstripe
1554: [23:32:31] <simon_w|air> Holy shit, 127,601 watchers on this page
1555: [23:32:35] <simon_w|air> Good job Angular
1556: [23:33:08] <Stomach> O_O
1557: [23:36:04] <simon_w|air> Most of them are the bindings in templates too :(
1558: [23:36:45] <PenguinMan98> oh snap
1559: [23:37:02] <PenguinMan98> If I store an ArrayList() in the session, it serializes and stores as a php array
1560: [23:37:18] <PenguinMan98> So when I pull it out, I can't plug it right in to the template
1561: [23:37:30] <PenguinMan98> I've gotta convert again first
1562: [23:45:43] * Cheddam has joined #silverstripe
1563: [23:49:44] * spronk has joined #silverstripe
1564: [23:54:06] <Ryan-Toast> EBest way to get the ID of a page inside a formfield?
1565: [23:57:43] * Stomach quit (Quit: zzz)
1566: [23:58:13] <antmas> where is this Colin guy
1567: [23:58:27] <Kingy> his birthday today yeah?
1568: [23:58:54] <antmas> oh wait
1569: [23:58:55] <antmas> shit
1570: [23:58:58] <antmas> yes :P
1571: [23:59:18] * Stomach has joined #silverstripe

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