#silverstripe IRC Log

IRC log for 4 August 2014

All timestamps are in UTC.

1: [00:00:09] <Colin[pi]> irogue_: that craft beer I showed you in the supermarket
2: [00:00:26] <Colin[pi]> the wheat beer
3: [00:00:28] <Kingy> ss23: my boss says get rid of it haha
4: [00:00:31] <ss23> :D
5: [00:00:37] <Kingy> and also wants to know where that requirement came from lol
6: [00:00:40] <ss23> no idea lol
7: [00:00:44] <ss23> I mean
8: [00:00:46] <ss23> I just heard that's what it was
9: [00:00:50] <ss23> I didn't build it or anything :O
10: [00:00:52] <Kingy> shoot the bastard
11: [00:00:54] <ss23> haha
12: [00:01:34] <Kingy> irogue_: Colin[pi] http://tuatarabrewing.co.nz/beer/hefe/
13: [00:01:51] <Colin[pi]> that's the one
14: [00:01:59] <Kingy> random name
15: [00:02:03] <Colin[pi]> definitely didn't appeal to my palate
16: [00:02:22] <Kingy> yeah the first sip I just thought it was because it was totally different to the last few
17: [00:02:27] <Kingy> but nope, the further in the worse it got
18: [00:02:48] <ss23> dude what
19: [00:02:52] <ss23> tuatara hefe is good
20: [00:02:53] <ss23> I really like it
21: [00:02:54] <Kingy> ss23: would you just use cron, or something else you got?
22: [00:03:46] <ss23> Kingy: https://github.com/silverstripe-australia/silverstripe-queuedjobs probably, but I'm not really familiar with the options :O
23: [00:04:06] <Kingy> too australian for my liking :P
24: [00:04:37] <Kingy> will add that to the list of shit to change then
25: [00:05:14] <ss23> haha
26: [00:05:44] <Kingy> also another thing, are there any logs around traffic going out from the site? Some of the tasks in the daily email are failing on random occasions
27: [00:06:03] <ss23> hmmm
28: [00:06:05] <Kingy> to the point where we can't see the traffic hitting our webdata site
29: [00:06:15] <ss23> there are access logs, afaik, yeah
30: [00:06:22] <ss23> But I don't understand
31: [00:06:29] <ss23> If it's emails failing, then what does access logs have to do with it
32: [00:06:51] <Kingy> well the daily email goes and gets the 5 different files from our webdata
33: [00:07:02] <Kingy> the first fails and the other 4 work
34: [00:07:17] <Kingy> so the FCG line in the email is missing and the rest are all present
35: [00:07:32] <Kingy> happened this morning, but the weekly email which got sent out at 6am was all correct
36: [00:08:25] * Ryan-Toast has joined #silverstripe
37: [00:08:28] <Phlunk3> yeah check your apache access log for that host, can at least see if the app requested the file.
38: [00:08:38] <Kingy> I asked one of our network admins to check firewall logs and he can only see 4 requests
39: [00:08:55] <Kingy> doesn't see the first one
40: [00:09:12] <Phlunk3> does your email send script not do anything differently if its requests fail?
41: [00:09:57] * Stomcch has joined #silverstripe
42: [00:10:03] <Kingy> nope, it just moves on lol
43: [00:10:10] * Olliepop quit (Ping timeout: 246 seconds)
44: [00:10:47] * Stomach quit (Ping timeout: 264 seconds)
45: [00:11:16] <Phlunk3> just fix that and you will know soon enough if its failing/when it fails ;) then you have the joy of figuring out why. but if the apache access log didn't register it asking for the file then it is likely something with the network connection etc so you'd want some debug/retry code in there anyway for when such a failure happens.
46: [00:11:43] <Kingy> yeah, i'm working on that now
47: [00:12:44] <Phlunk3> I had it with a vps we had hosted in the cloud, sometimes itd just not receive any requests for a while, randomly came and went with this problem until the hosting company replaced a hardware node and it was fixed. Spent so long trying to debug that.
48: [00:13:42] <ss23> Kingy: Eh, I doubt we have logs for that
49: [00:13:47] <ss23> I can check the error log I guess, sec
50: [00:14:17] <Kingy> cheers ss23. Around 9am i'd say
51: [00:18:15] <ss23> Kingy: Nope, nothing relevant I can see
52: [00:19:20] <Kingy> ah well all good then
53: [00:19:41] <Kingy> I'm gonna re-do that and run a process overnight which pulls down the data and stores it
54: [00:19:53] <Kingy> that way the email can just pull from db
55: [00:20:12] <Colin[pi]> <Kingy> too australian for my liking :P
56: [00:20:17] <Colin[pi]> does that apply to me too?
57: [00:20:18] * Colin[pi] cries
58: [00:20:31] <ss23> XD
59: [00:20:32] <Kingy> didn't wanna say anything
60: [00:20:42] <ss23> All thigs considered, you're not too australian, Colin[pi]
61: [00:20:42] <ss23> :D
62: [00:21:06] <Colin[pi]> ss23: yeah I'm only slightly bogan and racist
63: [00:21:29] <ss23> haha
64: [00:21:32] <ss23> You'd fit right in in my home town
65: [00:21:36] <Kingy> you're not some douche living in the GC so theres that
66: [00:21:42] <Kingy> there's*
67: [00:22:22] <Colin[pi]> oh wow the GC
68: [00:22:33] <Colin[pi]> every dickhead in Australia just goes there like a magnet
69: [00:22:57] <Kingy> ditto with every dickhead in NZ
70: [00:23:07] <Kingy> which I guess actually includes my parents
71: [00:23:07] <Kingy> lol
72: [00:25:10] * travis-ci has joined #silverstripe
73: [00:25:11] <travis-ci> [travis-ci] tractorcow/sapphire#3 (pulls/3.1/revert-3358 - 2c24d51 : Damian Mooyman): The build failed.
74: [00:25:11] <travis-ci> [travis-ci] Change view : https://github.com/tractorcow/sapphire/compare/171eb42c9e42^...2c24d51c0ba2
75: [00:25:11] <travis-ci> [travis-ci] Build details : http://travis-ci.org/tractorcow/sapphire/builds/31577622
76: [00:25:11] * travis-ci has left #silverstripe
77: [00:25:42] <Kingy> and me at xmas
78: [00:26:50] <Colin[pi]> lol
79: [00:27:04] <Colin[pi]> and me for my last holiday in Aus :(
80: [00:27:05] <Colin[pi]> ahaha
81: [00:29:30] <pippy> Question: I've been asked to write a test for silverstripe, and it's for a postgres fix. the same issue however might affect other databases. Should it go on the postgres module or the main silverstripe framework?\
82: [00:30:49] <ss23> pippy: Depends on some stuff. In general, if you can write it for framework, do that, but keep in mind that 99% of the time, framework won't include postgres module, so like
83: [00:31:07] <ss23> If the code in framework will end up looking like "if class-Exists(postgresdatabase)", then it's not the right place
84: [00:31:23] <ss23> If it is a test that tests behaviour for any given database, e.g. it just rusn the test whether it's mysql or postgres or anything else, then in framework
85: [00:31:23] * travis-ci has joined #silverstripe
86: [00:31:23] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3023 (3.1 - dc06bd9 : Sean Harvey): The build passed.
87: [00:31:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5503c1d7d907...dc06bd92394b
88: [00:31:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/31577706
89: [00:31:23] * travis-ci has left #silverstripe
90: [00:31:28] <ss23> Does that kind of make sense, pippy?
91: [00:33:09] <pippy> makes sense
92: [00:34:03] <pippy> the issue causes an error using default framework behaviour, so there won't be any if(postgres exists) style conditions
93: [00:34:17] <pippy> thanks for that ss23
94: [00:34:45] <ss23> Cool :D
95: [00:47:26] <AdriAn_s> guys, i have an include on a page and the scope of the include is different to the page that has it. is there anyway to keep or access the same scope??
96: [00:50:03] <AdriAn_s> I try Up.$variable but it says I am already at the top of the scope, any ideas?
97: [00:50:21] <muskie9> AdriAn_s Top.$variable ?
98: [00:50:35] <muskie9> well $Top.
99: [00:51:05] <AdriAn_s> nope. thats gives me access to the page class and not my extended class
100: [00:52:37] <muskie9> I may be misunderstanding the issue... So you have PageTypeB that extends Page... and you have PageTypeB.ss with an include in it...
101: [00:53:04] <ss23> I'm hungry, how2fix
102: [00:53:44] <muskie9> ss23 hungry->addFood('goodStuff');
103: [00:53:48] <AdriAn_s> muskie9 yes that is correct
104: [00:54:19] <Kingy> omg im slightly internet famous
105: [00:54:26] <Kingy> http://www.reddit.com/r/Wellington
106: [00:54:29] <Kingy> sidebar pic :D
107: [00:54:51] <AdriAn_s> but when I call a method from the include i dont have access to it. only to the pge.php methods not the ones in PageTypeB
108: [00:54:52] <ss23> hey look!
109: [00:54:54] <ss23> gunfire salute!
110: [00:55:29] <muskie9> is your method in PageTypeB or PageTypeB_Controller
111: [00:56:36] <AdriAn_s> its a form and it is in the _Controller
112: [00:56:36] * Stomcch is now known as Stomach
113: [00:57:43] <ss23> I didn't hear no gunfires :(
114: [00:58:14] * irogue__ has joined #silverstripe
115: [00:58:22] <muskie9> AdriAn_s, that's probably it... in my experience you can access things in the model (PageTypeB)
116: [00:58:26] <Colin[pi]> haha nice Kingy
117: [00:58:52] <Colin[pi]> Kingy: btw that's kinda sad, I also thought it looked like a wang
118: [01:00:26] <AdriAn_s> muskie9 i just tried putting them method in the class and not the controller but still doesnt let me access it
119: [01:01:21] * irogue_ quit (Ping timeout: 256 seconds)
120: [01:02:04] <Colin[pi]> ss23: pity I didn't feel up to coming along to ur party thing, I would have contributed some cash ;P
121: [01:02:25] <Colin[pi]> ss23: that was a respectible total :D
122: [01:02:40] <ss23> haha
123: [01:03:07] <Colin[pi]> ss23: how long to get to the length you have now?
124: [01:03:13] <Colin[pi]> 5 years?
125: [01:03:21] <muskie9> AdriAn_s is PageTypeB a child/had_many/etc or how is it related to the page calling the loop
126: [01:05:38] <ss23> Colin[pi]: yeah, around there
127: [01:05:39] <ss23> maybe 4
128: [01:05:39] <ss23> idk
129: [01:05:42] * adrexia quit (Read error: No route to host)
130: [01:05:45] <Colin[pi]> eeek
131: [01:05:55] <Colin[pi]> so yeah kinda long commitment :D
132: [01:06:02] <ss23> well uh
133: [01:06:03] <ss23> More like
134: [01:06:06] <ss23> long term lazyiness
135: [01:06:09] <ss23> Not commitment :P
136: [01:06:09] <Colin[pi]> haha
137: [01:06:17] <Colin[pi]> well
138: [01:06:18] <Colin[pi]> you could say
139: [01:06:23] <Colin[pi]> you're committed to be lazy
140: [01:06:25] <Colin[pi]> *being
141: [01:06:25] <Colin[pi]> :D
142: [01:06:31] <ss23> haha
143: [01:06:42] <Colin[pi]> that's still commitment, amirite?
144: [01:07:26] <AdriAn_s> muskie9 it is just my own custom page type so I can have a different layout to the standard Page.ss file
145: [01:08:11] * adrexia has joined #silverstripe
146: [01:12:39] <muskie9> ok, so based on AdriAn_s: guys, i have an include on a page and the scope of the include is different to the page that has it. is there anyway to keep or access the same scope?? You'd need to do <% with PageTypeB %> to access the PageTypeB stuff, but you'd need a method to match the with call
147: [01:13:19] <muskie9> so if in Page.ss you have <% include PageTypeB %>
148: [01:13:53] <muskie9> you'd need to have something to return a PageTypeB and wrap the include with a <% with yourPageTypeB %> method
149: [01:15:51] <muskie9> AdriAn_s can you post some code
150: [01:16:01] <zippy> When you do an include, it takes scope from where you do the include…
151: [01:16:13] <muskie9> ^
152: [01:16:24] <zippy> its not different scope… you should be able to cut the code from the include and paste it where you do <% include - and same thing will happen
153: [01:17:13] <AdriAn_s> zippy that is not happening
154: [01:17:20] <muskie9> right, but if from within a page and not wrapped with <% loop %> or <% with %> the output would be different
155: [01:17:24] <zippy> AdriAn_s: post code please
156: [01:17:29] <muskie9> ^
157: [01:17:51] <muskie9> done this a million times... just how it's setup
158: [01:19:29] <zippy> In PageTypeB.ss, if you do an <%include Foo %> and in that include do $ID then it will have the ID of the PageTypeB, unless your in some kind of looop or with
159: [01:19:59] <pippy> php unit takes so long to do tests :(
160: [01:20:23] <AdriAn_s> i do have a loop of a dataobject and the include is in that
161: [01:20:44] <zippy> right, so that means the include is using the scope of the dataobject
162: [01:21:00] <zippy> so something like $ID or $Name will be accessing the dataobject
163: [01:21:49] <zippy> AdriAn_s: If you want to get something off the PageTypeB from in that loop, you'd use $Top.xxxx
164: [01:22:01] <zippy> so $Top.ID or $Top.SomethingCooll
165: [01:22:12] * Olliepop has joined #silverstripe
166: [01:22:20] <zippy> Olliepop: hi
167: [01:23:02] * Bollig|DesignCty has joined #silverstripe
168: [01:23:05] <AdriAn_s> i use $Top.method outside of the include and it works and inside it doesnt work
169: [01:23:35] <AdriAn_s> if i try $Up.method inside the include i get a rude error of: [User Error] Up called when we're already at the top of the scope
170: [01:24:17] <AdriAn_s> there is no loop or anything in the include
171: [01:24:48] <zippy> mmm I wonder, are you using ss 3.0 or older?
172: [01:25:29] <AdriAn_s> 3.1
173: [01:26:48] <muskie9> AdriAn_s, can you paste your PageTypeB and include http://pastie.org/
174: [01:32:44] <Kingy> ss23: are you still going to cut it off if u make the $1000?
175: [01:33:07] <AdriAn_s> 1
176: [01:33:08] <AdriAn_s> 2
177: [01:33:08] <AdriAn_s> 3
178: [01:33:08] <AdriAn_s> 4
179: [01:33:08] <AdriAn_s> 5
180: [01:33:08] <AdriAn_s> 6
181: [01:33:09] <AdriAn_s> 7
182: [01:33:09] <AdriAn_s> 8
183: [01:33:10] <AdriAn_s> 9
184: [01:33:10] <AdriAn_s> 10
185: [01:33:11] <AdriAn_s> 11
186: [01:33:11] <AdriAn_s>
187: [01:33:12] <AdriAn_s> class ProfilePage extends Page
188: [01:33:12] <AdriAn_s> {
189: [01:33:13] <AdriAn_s> private static $description = 'Profile Page';
190: [01:33:13] <AdriAn_s> public function getCMSFields()
191: [01:33:31] <ss23> Kingy: Yeah, probably
192: [01:33:54] <Kingy> sweet i'll chuck some in hha
193: [01:34:05] <AdriAn_s> the first call to $Top.MessageUserForm works outside of the include but not the one inside.....
194: [01:34:11] <zippy> ss23: raising funds for a hair cut?
195: [01:34:34] <zippy> AdriAn_s: I only got a little bit of your messages due to pasting a large chunk in the channel, please use the paste bin http://pastie.org/
196: [01:34:46] <muskie9> ^
197: [01:35:03] <ss23> zippy: If people want me to cut my hair enough, then I'll do it. I conisder wanting it enough to be paying me $1k
198: [01:36:11] <AdriAn_s> zippy : http://pastie.org/9443304
199: [01:37:11] <adrexia> ss23, can we give it to charity instead?
200: [01:37:13] <adrexia> ;)
201: [01:37:21] <ss23> lol no.
202: [01:37:39] <adrexia> but isn't it the same amount of wanting?
203: [01:38:33] <muskie9> AdriAn_s, just checking that it's ProfilePage.ss and not profilePage.ss (case sensitive)
204: [01:40:20] <AdriAn_s> muskie9 yeah its ProfilePage.ss that was just me being lazy when i pasted ( my bad)
205: [01:42:09] <muskie9> if in ProfilePage.ss you include ProfileTabs then you would just need $MessageUserForm... not sure why would would throw that in an include with how it's setup if I'm seeing it right
206: [01:42:29] <ss23> adrexia: No way
207: [01:42:35] <muskie9> although I just noticed it's in a loop so disregard that last comment :P
208: [01:43:41] <muskie9> AdriAn_s, if you wanted that per $ViewedUser, why wouldn't you add that form to that object?
209: [01:44:27] * Ryan-Toast quit (Quit: Ryan-Toast)
210: [01:44:48] <muskie9> then callit by $MessageUserForm in the loop/include
211: [01:45:18] <AdriAn_s> muskie9 there is other stuff on the template and class that i stripped out to make it easier to see and diagnose the issue
212: [01:45:45] <AdriAn_s> $MessageUserForm is not needed on a per $ViewedUser basis
213: [01:46:05] <AdriAn_s> it just happens to sit there as user related content appears before and after the form
214: [01:47:23] <muskie9> so are you trying to do a separate form for each item in the $ViewerUser loop?
215: [01:47:30] <AdriAn_s> $muskie9 no
216: [01:47:37] <AdriAn_s> muskie9 no
217: [01:47:50] <muskie9> ok, then it probably shouldn't be in the <% loop %>
218: [01:48:28] <muskie9> move it outside the loop (above the <% loop %> call) and see if the form shows up
219: [01:48:38] <muskie9> also make sure you ?flush=all
220: [01:50:00] <AdriAn_s> but there is other stuff on the include that needs data from the $ViewedUser loop
221: [01:50:50] * micmania1 quit (Quit: micmania1)
222: [01:51:03] <adrexia> ss23: so part of the wantiung includes wanting to give you money?
223: [01:51:05] <adrexia> :D
224: [01:51:08] <muskie9> AdriAn_s, if you put the form in the loop it'll be added the number of time equal to the number of objects in hte loop
225: [01:51:47] <muskie9> if the form's not needed per object in the loop then it's repeating for no reason
226: [01:51:49] * travis-ci has joined #silverstripe
227: [01:51:49] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#976 (3.1 - 3e1904a : Mateusz U): The build was broken.
228: [01:51:49] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/1b0add3ecfbb...3e1904acd8f5
229: [01:51:49] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/31387922
230: [01:51:49] * travis-ci has left #silverstripe
231: [01:51:50] <adrexia> are there any payment plans?
232: [01:52:18] <Kingy> I say we only agree if we can cut it off over a time period
233: [01:52:22] <Kingy> give him some sexy haircuts
234: [01:52:36] <ss23> adrexia: Well, the urge to avoid giving me money has to be less than the urge for me to cut off my hair
235: [01:53:07] <AdriAn_s> muskie9 the loop will only ever return 1 user.
236: [01:53:08] <adrexia> how about 2 beers a week for the rest of the year?
237: [01:53:16] <adrexia> or is payment cash only?
238: [01:53:20] <ss23> haha
239: [01:53:22] <ss23> Cash only
240: [01:53:25] <ss23> Has to be an entire $1k
241: [01:53:28] <ss23> At once
242: [01:53:38] <ss23> Not allowed to use kickstarter or indiegogo, but you can go around IRL getting it if need be
243: [01:53:42] <ss23> :D
244: [01:53:44] <muskie9> AdriAn_s, then I would do a method that returns the user
245: [01:53:59] <adrexia> want about a diy kickstarter?
246: [01:54:01] <adrexia> ;)
247: [01:54:09] <adrexia> *what
248: [01:54:13] <ss23> lol
249: [01:54:16] <adrexia> fb page?
250: [01:54:17] <ss23> Can't use the internet!
251: [01:54:18] <ss23> :D
252: [01:54:21] <ss23> Otherwise it's lame
253: [01:54:25] <adrexia> ...well taht's lame
254: [01:54:32] <adrexia> not even irc?
255: [01:54:34] <muskie9> <% with yourMethodReturningTheUser %>$MessageUserFrom<% end_with %>
256: [01:54:46] <Kingy> 2 beers a day for a year
257: [01:54:48] <adrexia> actually you aren't even on fb, how would you know?
258: [01:54:50] <Kingy> i'd jump all over that
259: [01:55:02] <Kingy> oh a week
260: [01:55:06] <Kingy> hmm nah not so much
261: [01:55:17] <muskie9> youMethodReturningTheUser would be in ProfilePage.php
262: [01:55:27] <adrexia> beer where we drink is like > $10 each
263: [01:55:42] <Bollig|DesignCty> do we still need _manifest_exclude files in ss 3.1.x?
264: [01:56:16] <Kingy> give him 20 double browns a week then
265: [01:56:23] <Kingy> costs about the same
266: [01:56:40] <zippy> Bollig|DesignCty: lookos like it can still be used
267: [01:56:41] <AdriAn_s> muskie9 i will give it a go
268: [01:57:54] <muskie9> AdriAn_s, lmk how it goes
269: [02:00:37] * Ryan-Toast has joined #silverstripe
270: [02:01:36] <zippy> damn I hate apis that use oauth
271: [02:02:22] <AdriAn_s> muskie9 i changed the template to use 'with' instead of 'loop' but it does the same thing
272: [02:03:06] <muskie9> did you add a method in ProfilePage.php to return the particular user?
273: [02:03:50] <muskie9> AdriAn_s... let me reset here...
274: [02:04:06] <AdriAn_s> there is already one and it is called ViewedUser()
275: [02:04:06] <muskie9> you want a form to send to a paricular user...
276: [02:04:33] <AdriAn_s> that was what the loop was using
277: [02:05:01] <muskie9> right, but if you are referencing one user you wouldn't loop
278: [02:05:30] <AdriAn_s> the $Vieweduser is just to show all the users details of the user, and that changes based on the URL. then there is a generic form that all user pages have then sends an email to the user of the page you are viewing
279: [02:06:18] <AdriAn_s> there is only ever 1 user per page. ( i guess using with instread of loop makes sense but it has the same affect of only ever showing 1 user as my method ViewedUser() only ever returns 1 dataObject
280: [02:07:46] * micmania1 has joined #silverstripe
281: [02:08:13] <AdriAn_s> that method is: return User::get()->byID($this->request->param('ID'));
282: [02:08:31] * superspring_ is now known as superspring
283: [02:22:17] * muskie9 quit (Ping timeout: 245 seconds)
284: [02:35:09] <AdriAn_s> muskie9 where did you go?? :(
285: [02:36:05] * muskie9 has joined #silverstripe
286: [02:41:53] <AdriAn_s> muskie9 welcome back, didnt know where you went. this thing is doing my head in now :(
287: [02:45:55] <muskie9> sorry about that AdriAn_s, I saw your method returning a user... so when a user goes to ProfilePage the see an individual user?
288: [02:46:23] <irogue__> <Kingy> give him 20 double browns a week then
289: [02:46:25] <irogue__> thats just cruel
290: [02:46:55] <Kingy> :)
291: [02:47:07] <Kingy> coming to php conf irogue__?
292: [02:47:15] <irogue__> yep
293: [02:47:42] <AdriAn_s> muskie9 yeah. it shows a specific user then i want the form to contact them on. but i can get that form method from inside the include. i can access user details by simply $firsname but that is from the dataobject and not the ProfilePage controller
294: [02:48:22] <Kingy> good man
295: [02:49:39] <muskie9> AdriAn_s right, so $Top.MessageUserForm should work within your <% with %>... in theory
296: [02:50:00] <muskie9> http://doc.silverstripe.org/framework/en/reference/templates#includes
297: [02:50:07] <muskie9> but if it's not than that's odd
298: [02:50:34] <muskie9> or, other than for layout purposes, why not call the form outside the include
299: [02:57:12] <AdriAn_s> i need it inside for layout and yes the $top.MessageUserForm whould work inside the include but it is not
300: [02:57:22] <AdriAn_s> it works fine outside
301: [02:59:31] <muskie9> that might be beyond me then... generally if I'm calling something from within a loop or with it's on the object that the with or loop is declaring... otherwise top works... but I've not done it with forms
302: [02:59:39] <muskie9> seems odd for sure
303: [03:00:34] <muskie9> for a short term hack, can you do an include above and below the form? so 2 includes?
304: [03:00:54] <AdriAn_s> yeah very odd thats what strange
305: [03:01:06] <AdriAn_s> and i can do 2 includes, just seems messy and there should be a way of doing it
306: [03:02:55] <zippy> AdriAn_s: otherwise, you might just have to pass the page in the include <% include Whatever PageTypeB=$Up %> and then in your template use $PageTypeB.MessageUserFOrm
307: [03:08:39] <AdriAn_s> zippy that works :)
308: [03:14:15] <AdriAn_s> thanks for the help zippy and muskie9
309: [03:14:18] <AdriAn_s> :)
310: [03:14:40] * muskie9 quit (Read error: Connection reset by peer)
311: [03:14:42] * muskie9_ has joined #silverstripe
312: [03:15:47] * muskie9_ quit (Read error: Connection reset by peer)
313: [03:28:27] * cloph has joined #silverstripe
314: [03:28:55] * cloph_away quit (Ping timeout: 255 seconds)
315: [03:31:37] * Bollig|DesignCty quit (Ping timeout: 255 seconds)
316: [03:33:17] * Phlunk3 quit (Ping timeout: 244 seconds)
317: [03:33:29] * Bollig|DesignCty has joined #silverstripe
318: [03:46:11] * jordanmk has joined #silverstripe
319: [03:46:22] <jordanmk> hey guys
320: [03:46:38] <Kingy> hey jordanmk
321: [03:46:51] <jordanmk> is it possible to modify a many_many relationship from within a controller?
322: [03:47:00] <jordanmk> rather than through a gridfield in the back-end'
323: [03:48:07] <zippy> jordanmk: sure
324: [03:48:49] <jordanmk> the relation is set up like this: http://pastebin.com/E3Rnsksr
325: [03:49:19] <jordanmk> and i've created a couple of Genres
326: [03:49:35] <jordanmk> but now i'm not sure how to assign Genres to a User within a controller
327: [03:49:43] <zippy> jordanmk: http://docs.silverstripe.org/framework/en/topics/datamodel#adding-relations
328: [03:50:32] <jordanmk> awesome, cheers
329: [03:50:48] <zippy> so, $this->Genres()->add($id of genres OR genre object); - on a user
330: [03:51:02] <zippy> $id of genre
331: [03:55:09] <jordanmk> yep that worked, thanks
332: [04:10:50] * Tanger has joined #silverstripe
333: [04:12:33] <zippy> Tanger: hello
334: [04:12:51] <Tanger> zippy: Hey
335: [04:13:00] <zippy> whats cracking
336: [04:13:01] <Tanger> How's the day going so far?
337: [04:13:10] <Tanger> Not much, just templatin'
338: [04:13:11] <zippy> fairly good
339: [04:13:12] <zippy> you?
340: [04:14:51] <Tanger> Can't complain. Except that it's Monday
341: [04:15:04] <Tanger> Sneaky bastards, Monday's are
342: [04:15:57] <zippy> aye indeed
343: [04:16:09] <zippy> two days of relaxing and not working and then bam, back at the desk
344: [04:25:41] <spronk> what do we all think of sitehost?
345: [04:26:25] <zippy> no problems here
346: [04:26:36] <zippy> they recently updated there hardware to have sdd on their vps
347: [04:27:23] <zippy> I do find their ram / cpu / disk proportions to be bit weird. Quite a bit of ram vs not much disk
348: [04:40:51] * simon_w has joined #silverstripe
349: [04:46:35] * Kingy is now known as Kingy[a]
350: [04:49:43] * irogue_ has joined #silverstripe
351: [04:51:34] * irogue__ quit (Ping timeout: 264 seconds)
352: [04:58:22] * mobiusnz quit (Quit: Leaving.)
353: [05:00:34] * irogue_ quit (Ping timeout: 240 seconds)
354: [05:02:47] * nickmolhoek quit (Quit: nickmolhoek)
355: [05:05:49] * adrexia quit (Read error: No route to host)
356: [05:14:09] * micmania1 has left #silverstripe
357: [05:17:52] * micmania1 has joined #silverstripe
358: [05:18:43] * willr quit (Quit: willr)
359: [05:20:03] * r_hector has joined #silverstripe
360: [05:21:24] <Colin[pi]> google srsly, you can do better than this: http://i.imgur.com/gyX85ex.png
361: [05:21:27] * micmania1 quit (Client Quit)
362: [05:21:46] <Cheddam> Wow, that's bad
363: [05:21:57] <Colin[pi]> so bad... their whole admin area is a piece of shit
364: [05:22:25] <Cheddam> I thought they only employed the best of the best :P
365: [05:22:54] <Colin[pi]> Cheddam: ikr? it's weird, you'd expect the stuff that people are *paying* for to be the most polished
366: [05:24:01] <Cheddam> Colin[pi] Totally. All the talent must be too busy making Google Glass apps haha
367: [05:25:38] <simon_w> Cheddam, nah, the talent's too busy sucking up to their managers
368: [05:26:51] <zippy> what do you expect from engineers
369: [05:26:53] <zippy> besides...
370: [05:27:17] <simon_w> It's worse. It's engineers who are way too up themselves
371: [05:28:16] <zippy> With a model admin, can you make it so there is no green add button?
372: [05:28:56] <zippy> I think I need to grab the getEditForm and remove the add button
373: [05:29:29] <simon_w> Or have canCreate() return false for the DataObject
374: [05:30:58] <zippy> ......
375: [05:30:59] <zippy> true
376: [05:31:30] <Colin[pi]> simon_w: that has other implications though right?
377: [05:31:37] <Colin[pi]> or I might be thinking of something else
378: [05:31:43] * Ryan-Toast quit (Quit: Ryan-Toast)
379: [05:31:50] <simon_w> Well, only if you want to use inbuilt systems for creating them
380: [05:32:27] <Olliepop> It's fine to do $has_one SiteConfig right? For a DataObject managed through a GridField in SiteConfig
381: [05:32:54] * travis-ci has joined #silverstripe
382: [05:32:54] <travis-ci> [travis-ci] tractorcow/silverstripe-cms#1 (3.1 - 4c37901 : Damian Mooyman): The build failed.
383: [05:32:54] <travis-ci> [travis-ci] Change view : https://github.com/tractorcow/silverstripe-cms/compare/1b0add3ecfbb...4c379013fbde
384: [05:32:54] <travis-ci> [travis-ci] Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/31587910
385: [05:32:54] * travis-ci has left #silverstripe
386: [05:33:01] <Colin[pi]> HAHA DAMO
387: [05:33:04] <simon_w> Olliepop, yeah, though there's usually no need if you're not going to have multiple SiteConfig objects
388: [05:33:15] <Olliepop> in SiteConfigExtension I have a has_many on TimesOpen and in TimesOpen I have has_one SiteConfig
389: [05:33:18] * travis-ci has joined #silverstripe
390: [05:33:18] <travis-ci> [travis-ci] tractorcow/silverstripe-cms#1 (3.1 - 4c37901 : Damian Mooyman): The build failed.
391: [05:33:18] <travis-ci> [travis-ci] Change view : https://github.com/tractorcow/silverstripe-cms/compare/1b0add3ecfbb...4c379013fbde
392: [05:33:18] <travis-ci> [travis-ci] Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/31587913
393: [05:33:18] * travis-ci has left #silverstripe
394: [05:33:21] <Colin[pi]> :O
395: [05:33:29] <Olliepop> Sweet thanks @simon_w, i'll only be having one SiteConfig object
396: [05:33:40] <simon_w> Olliepop, then just don't use a relationship
397: [05:35:50] <zippy> simon_w: Would you then add a 'GetTimesOpen' method on the Page or the Siteconfig, for templates to get the times?
398: [05:36:17] <simon_w> zippy, <% loop $list(TimesOpen) %>
399: [05:36:30] <zippy> no wai
400: [05:36:47] * zippy 's mind is blown
401: [05:37:34] <Colin[pi]> wow, I just realised I have a 'hipster' website
402: [05:37:42] <Colin[pi]> it's almost responsive
403: [05:37:50] <Colin[pi]> but is from before the responsive era
404: [05:37:59] <Colin[pi]> responsive BEFORE IT WAS COOL
405: [05:38:41] <zippy> wasn't that called 'fluid' ?
406: [05:38:51] * mobiusnz has joined #silverstripe
407: [05:39:09] <ss23> fluid is to do with not being fixed width, responsive is to do with changing your design based on display size/device
408: [05:39:15] <ss23> not to be confused with adapative
409: [05:39:48] <Colin[pi]> yeah I guess it's actually fluid :P
410: [05:39:54] * zippy quit (Quit: zippy)
411: [05:39:58] <Colin[pi]> GG SS23 SPOILER OF ALL THE FUN
412: [05:40:02] <ss23> XD
413: [05:47:05] <Colin[pi]> "hi we want to change and reposition the logo on our site..." "oh sweet, that'll be a nice easy file and css cha...... MOTHER FUCKER it's copied/pasted in every file."
414: [05:47:18] <simon_w> Colin[pi], AHAHAHAHAHA
415: [05:47:22] <simon_w> Also, sed :p
416: [05:47:31] <Colin[pi]> but still... sigh
417: [05:47:41] <Colin[pi]> why can nothing ever be easy? >_<
418: [05:48:05] <simon_w> Because clients
419: [05:48:11] <Colin[pi]> gonna
420: [05:48:13] <Colin[pi]> CLIENT
421: [05:52:39] * travis-ci has joined #silverstripe
422: [05:52:39] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#976 (3.1 - 3e1904a : Mateusz U): The build was broken.
423: [05:52:39] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/1b0add3ecfbb...3e1904acd8f5
424: [05:52:39] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/31387922
425: [05:52:39] * travis-ci has left #silverstripe
426: [05:53:34] * irogue_ has joined #silverstripe
427: [05:56:40] * Olliepop quit (Ping timeout: 246 seconds)
428: [05:56:46] <simon_w> Well, asked for a quote for a custom wedding band
429: [05:57:06] <simon_w> Paid for the wedding license and had an engagement shoot
430: [05:57:10] <simon_w> Productive day, I guess
431: [05:58:02] * Shrike_Finland has joined #silverstripe
432: [05:58:55] * willr has joined #silverstripe
433: [06:11:55] * Shrike_Finland quit (Quit: Leaving.)
434: [06:16:05] * irogue_ quit ()
435: [06:16:35] <simon_w> Oh man, I forgot how slow cloning from github is
436: [06:16:45] <ss23> yeah
437: [06:16:45] <ss23> it's bad
438: [06:16:46] <ss23> :(
439: [06:16:56] <ss23> I remember once getting less than 1kB/s cloning from gitorious,org once
440: [06:17:08] <ss23> Had to get a US VPS to clone it, tar it up, then transfer it back to myself
441: [06:20:41] <simon_w> I remember when the SS repos where hosted two floors up
442: [06:21:57] <simon_w> Then I could check it out whenever I wanted and it was near instant
443: [06:21:58] <ss23> haha
444: [06:22:03] <simon_w> Being on SVN helped too
445: [06:22:26] <simon_w> There are times where I do a svn co from github instead of using git, just cause it's so much faster
446: [06:22:46] <simon_w> Ooh, I get to make dessert
447: [06:22:50] <simon_w> Time to go get headphones!
448: [06:22:52] <ss23> Whatcha making?
449: [06:22:53] <ss23> :D
450: [06:23:05] <simon_w> self-saucing chocolate pudding
451: [06:23:39] <ss23> mmm, simple and delicious
452: [06:25:42] <simon_w> "2014/08/04 18:21:07 [error] 85233#0: *183 upstream sent too big header while reading response header from upstream, client: 127.0.0.1, server: dev.silverstripe, request: "GET /admin/pages/treeview HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.silverstripe:8080", referrer: "http://dev.silverstripe:8080/admin/pages""
453: [06:25:47] <simon_w> Most annoying thing about SS on nginx
454: [06:32:04] * babak has joined #silverstripe
455: [06:32:16] <ss23> that you can't configure it properly?
456: [06:32:49] * ARNHOE has joined #silverstripe
457: [06:34:08] <simon_w> That I always forget to bump the buffer sizes
458: [06:34:58] <simon_w> Should update the nginx page on the docs
459: [06:38:47] <simon_w> ss23, the way the CMS handles JS/CSS assets is the main problem
460: [06:38:57] <simon_w> It shouldn't need more than 8 kb of headers
461: [06:39:30] <ss23> send a PR
462: [06:39:31] <ss23> ^.^
463: [06:40:51] <simon_w> Completely redo the CMS again!
464: [06:42:23] * SightUnseen has joined #silverstripe
465: [06:43:02] * SightUnseen has left #silverstripe
466: [06:46:27] <simon_w> https://git.simon.geek.nz/simon_w/keyboard-shortcuts
467: [06:46:30] <simon_w> New module time!
468: [06:51:12] * adrexia_ has joined #silverstripe
469: [06:53:57] <willr> shouldn’t that be core related simon_w
470: [06:54:15] <simon_w> willr, why be core when it's really easy to make it a module?
471: [06:54:29] <simon_w> Also, means it can be used with 3.1
472: [06:55:17] <willr> true. Good point, though devs are less likely to be aware that it exists
473: [06:56:27] <simon_w> Yeah, but also gets around bike shedding on the library to use
474: [06:56:40] <simon_w> Would be really easy to stick in core for 3.2 if people like it
475: [06:57:08] <willr> Vendor’d silverstripe modules will be win. I’m OCD
476: [07:00:32] <adrexia_> what is it?
477: [07:01:03] <simon_w> https://git.simon.geek.nz/simon_w/keyboard-shortcuts
478: [07:01:08] <simon_w> Well, that's where it'll end up
479: [07:01:40] <adrexia_> ahh, nice
480: [07:01:50] <willr> Then I guess I should put up http://github.com/wilr/silverstripe-cms-responsive
481: [07:01:57] <adrexia_> you have your own gitlab :D
482: [07:02:14] <simon_w> So much nicer than github!
483: [07:02:31] <simon_w> Also, so much faster
484: [07:02:32] <adrexia_> ...
485: [07:02:44] <adrexia_> its the same thing, but a couple of years behind in features :P
486: [07:02:51] <adrexia_> ...and open sourced
487: [07:03:17] <simon_w> Also, way ahead in other areas that make a lot of sense for open source projects
488: [07:03:20] <simon_w> Like access controls
489: [07:03:25] * adrexia_ nods
490: [07:03:34] <adrexia_> fair enough. I like gitlab too.
491: [07:03:43] <adrexia_> much better than not having a user interface
492: [07:03:51] <adrexia_> and better than gitorious
493: [07:04:05] <simon_w> and cheaper than private github
494: [07:04:30] <adrexia_> yeah, I have no need for private github
495: [07:04:41] <adrexia_> Got one free for 3 months and didn't use it at all
496: [07:05:36] <simon_w> It also really annoys people that like their single points for everything, which is a plus ;)
497: [07:06:16] <willr> simon_w and everyone running gitlab isn’t :)
498: [07:06:51] <willr> just moves the point of failure doesn’t it
499: [07:07:17] <willr> :P
500: [07:07:51] <simon_w> Well, now it's one I (mostly) control
501: [07:08:07] <simon_w> Also, people using gitlab tend to be the people that actually use the D in DVCS
502: [07:08:41] <simon_w> There, pushed third party and license. That's all I need, right? :p
503: [07:12:13] <adrexia_> I never had the luxory to like single points for everything
504: [07:12:22] <adrexia_> though I imagine it would be quite nice
505: [07:13:36] <adrexia_> I think the demographic for gitlab might be anyone who wants a nice ui for a private git
506: [07:14:44] <adrexia_> ...and has reasons for github not being a solution
507: [07:16:13] <adrexia_> simon_w what, no Readme?
508: [07:17:07] <Bollig|DesignCty> and I can’t browse the code on the site? *sadface*
509: [07:18:01] <adrexia_> I can...
510: [07:19:09] <ss23> 19:08:08 <@simon_w> Also, people using gitlab tend to be the people that actually use the D in DVCS
511: [07:19:12] <ss23> sif
512: [07:19:17] <ss23> people who use a gui aren't the kind of people who do distributed work
513: [07:19:25] <adrexia_> browser issue maybe? Or just somewhere unexpected
514: [07:19:28] <ss23> even linus mirrors his shit on github, and he's got the biggest d of all
515: [07:19:57] <Bollig|DesignCty> adrexia_: oh, well I can now lol. THANKS simon_w :D
516: [07:20:02] <adrexia_> :D
517: [07:20:55] <adrexia_> "People who use a gui" <--
518: [07:20:56] <adrexia_> lols
519: [07:21:07] <ss23> hey, it's true :O
520: [07:21:14] <adrexia_> like 99.9% of the world
521: [07:21:31] <ss23> 99.9% of the world don't have access to computers!
522: [07:21:36] <adrexia_> hahah
523: [07:21:41] <ss23> 99.9% of people don't use vcs at all!
524: [07:21:51] <adrexia_> turns out the real world is also a graphical user interface
525: [07:21:56] <adrexia_> unless you are blind
526: [07:21:57] <ss23> debatable
527: [07:22:14] <ss23> In that sense, CLI is also a GUI, since it's done IRL
528: [07:22:14] <ss23> :D
529: [07:22:29] <adrexia_> in a way
530: [07:22:39] <adrexia_> but not a very big way
531: [07:22:57] <adrexia_> but probably beats echo location or whatever
532: [07:23:02] <ss23> hahah
533: [07:23:53] <adrexia_> how many places does your code need to be before it's distributed?
534: [07:26:00] <simon_w> So, if you want grandparents to use your wedding site, don't have IRC logs higher for the URL in google than the actual site
535: [07:26:30] <adrexia_> grnadparents use google?
536: [07:26:50] <simon_w> Apparently
537: [07:27:03] <adrexia_> impressed
538: [07:27:05] <ss23> hahahahahahahahahahahahah simon_w
539: [07:27:05] <ss23> XD
540: [07:27:10] <ss23> Could be worse, it could be the swears page!
541: [07:27:15] <ss23> Then they'd learn about the J word
542: [07:28:56] <simon_w> adrexia_ isn't on the swears page yet? Disappoint :p
543: [07:29:02] <adrexia_> javascript?
544: [07:29:25] <simon_w> http://logs.simon.geek.nz/stats.php
545: [07:29:25] <ss23> close
546: [07:29:29] <ss23> that should be on there too
547: [07:29:29] <simon_w> The only J one
548: [07:29:37] <simon_w> Fiiiine
549: [07:30:00] <adrexia_> I don't actually swear much. Except some days.
550: [07:30:27] <ss23> You can tell simon_w is a big Trident fanboy, since he says it the most
551: [07:31:07] <simon_w> There, it'll show up after an hour
552: [07:31:24] <ss23> you cron stats now?
553: [07:31:45] <simon_w> No, it's just cached for an hour
554: [07:32:04] <ss23> ah kk
555: [07:32:26] <adrexia_> I'm sure I've used some of those words
556: [07:32:38] <simon_w> You may have, but not enough!
557: [07:33:37] <simon_w> http://logs.simon.geek.nz/source/swears.txt is the list
558: [07:34:20] <ss23> nice, alphabetical!
559: [07:34:30] <simon_w> Yeah, decided to run :sort :p
560: [07:35:08] <simon_w> So, well I've got the file open, good time to add some more words
561: [07:36:03] <simon_w> Hmm, maybe I should add ss23...
562: [07:36:09] <ss23> :O
563: [07:36:10] <ss23> ;_;
564: [07:36:11] <ss23> nope
565: [07:36:14] <ss23> I'M NOT A SWEARS
566: [07:36:27] <willr> composer?
567: [07:36:42] <simon_w> Are now!
568: [07:36:46] <simon_w> willr, already in there
569: [07:36:51] <simon_w> Dinners time :)
570: [07:36:55] <willr> No I’m wondering why it is
571: [07:37:15] <simon_w> Because it's so horrible and broken
572: [07:37:32] <ss23> ;_;
573: [07:37:46] <ss23> It's still bette rthan the alternatives
574: [07:37:47] <ss23> PEAR 4 lose
575: [07:37:59] * simon_w flushes the cache
576: [07:38:07] <ss23> quick
577: [07:38:12] <ss23> we have 2 minutes to hit the server 200 times
578: [07:38:21] <Bollig|DesignCty> simon_w: heart, hug, love, hate would all be interesting additions :)
579: [07:45:07] * stnvh has joined #silverstripe
580: [07:52:05] <adrexia_> why isn't advanced workflow in the list?
581: [07:52:25] <adrexia_> noone here had to fight with it yet?
582: [07:52:58] <adrexia_> poor subsites gets all the flack
583: [07:53:24] <ss23> haha
584: [07:53:33] <ss23> The clients who want advancedworkflow are not the clients people want to work with :P
585: [07:54:35] <adrexia_> I'd like a client willing to pay to build a custom workflow module
586: [07:54:46] <adrexia_> but I don't think such clients exist
587: [07:55:48] <adrexia_> actually, when I say "workflow module" I mean "collaboration tool"
588: [07:56:04] <adrexia_> workflows suck, collaboration tools are awesome
589: [07:56:17] * CodeTrap has joined #silverstripe
590: [07:59:48] * kinglozzer has joined #silverstripe
591: [08:06:08] * zippy__ has joined #silverstripe
592: [08:14:53] * rista has joined #silverstripe
593: [08:16:35] * lozhowlett has joined #silverstripe
594: [08:17:56] <rista> Hi, I have a problem with the cms hooks. I read here - http://doc.silverstripe.org/framework/en/trunk/howto/cms-alternating-button#frontend-hooks - and tried the hook for the save button instead cleanup but it didn't work out. What I want is a hook when the page is saved/refresh in the cms to do some additional work in my custom javascript, how can I do this?
595: [08:17:59] <lozhowlett> Hi all - has anyone used... https://github.com/madmatt/silverstripe-freshbooks ?
596: [08:22:08] <willr> rista your js being included via the config api?
597: [08:22:41] <willr> lozhowlett madmatt’s online who wrote the thing
598: [08:23:04] <lozhowlett> willr - whats he user as I cant see him?
599: [08:23:37] <willr> Same as the github name.
600: [08:24:36] <rista> willr, I made a new ss field that extends the formfield. Inside Field method I included my js files. The methods that I'm using inside those js filse is beeing called when I hit refresh, but when the page is saved or loaded trought ajax, my methods are not called.
601: [08:24:38] * Shrike_Finland has joined #silverstripe
602: [08:25:20] <willr> rista if it’s in the CMS you must use the config api to include your javascript otherwise it won’t load. Using Requirements::javascript() is not enough in the cms
603: [08:26:03] <adrexia_> onbuttonafterrefreshalternate <-- best name ever
604: [08:26:38] <rista> Ok, but how can I include them via the config api?
605: [08:28:15] <kinglozzer> My only complaint about updated GH issues - it doesn't remember my sort preference :(
606: [08:29:40] <rista> is there an event after the ajax is loaded in the cms?
607: [08:29:54] <rista> or some callback or anyrthing?
608: [08:30:07] <adrexia_> wow, that's really poorly documented
609: [08:30:33] <adrexia_> example of including js in cms from userforms: https://github.com/silverstripe/silverstripe-userforms/blob/master/_config/userforms.yml
610: [08:30:44] <adrexia_> couldn't find one in the silverstripe docs
611: [08:31:46] <adrexia_> (which doesn't mean there isn't one, but it was nowhere I expected it)
612: [08:32:37] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
613: [08:34:04] <simon_w> Hmm, looks like something broke
614: [08:34:25] <zippy__> adrexia_: http://doc.silverstripe.org/framework/en/howto/extend-cms-interface ?
615: [08:34:41] <adrexia_> Nah I found that, but it only mentions css
616: [08:36:57] <adrexia_> btw, I think this is the most helpful page in Silverstripes docs: http://doc.silverstripe.org/framework/en/reference/cms-architecture
617: [08:37:22] * Pyprk has joined #silverstripe
618: [08:37:32] <Pyprk> wazzzzaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
619: [08:37:44] <kinglozzer> Sup Pyprk
620: [08:37:44] <Pyprk> how was the hack day?
621: [08:37:47] <Pyprk> sup
622: [08:38:00] <Pyprk> kinglozzer: good weekend?
623: [08:38:27] <kinglozzer> Pyprk: Aye, slowly catching up on game of thrones, getting into it now
624: [08:38:34] <kinglozzer> You?
625: [08:38:35] <Pyprk> haha
626: [08:38:39] <adrexia_> rista: yyour javascript also needs to be entwine-ized (which it might be already, but worth mentioning)
627: [08:38:42] <Pyprk> nah I had a shit weekend, lol.
628: [08:39:11] <Pyprk> Got dragged out with work on Friday night, spent all of saturday paying for it, and all of sunday feeling ashamed of myself, lol
629: [08:40:24] * ss-log has joined #silverstripe
630: [08:40:41] <Pyprk> kinglozzer: haha, you laugh now... but one day you'll be 30 too!
631: [08:40:48] <Pyprk> Then I'll be laughing! :P
632: [08:40:51] * ss23 pokes the logs
633: [08:41:00] * Pyprk pokes ss23
634: [08:41:04] * ss23 beeps
635: [08:41:08] <kinglozzer> Pyprk: To be fair I can't drink for shit and I'm 21 :P
636: [08:41:27] <Pyprk> kinglozzer: haha, it's not about drinking, it's about not being stuipd about it :P
637: [08:41:29] <simon_w> ss23, logs are working :p
638: [08:41:31] <zippy__> damn when people say they're 21 I feel sooooo oolldd!
639: [08:41:32] <ss23> :D
640: [08:41:40] <Pyprk> zippy__: because you're 22?
641: [08:41:42] <ss23> zippy__: ... YOU ARE OLD
642: [08:41:42] <ss23> :O
643: [08:41:49] <zippy__> :P
644: [08:41:54] * zippy__ is now known as zippy
645: [08:42:01] <zippy> seems like only yesteday I was 21
646: [08:42:08] <Pyprk> not for me.
647: [08:42:12] <Pyprk> was yonks back.
648: [08:42:39] <Pyprk> hey, windows guy.
649: [08:42:51] <Pyprk> can I move an RDP window from one screen to another?
650: [08:42:57] <simon_w> Damn, http://logs.simon.geek.nz/stats.php#ss23
651: [08:42:57] <Pyprk> err, fullscreen window
652: [08:43:04] * jcwacky has joined #silverstripe
653: [08:43:05] <ss23> simon_w: GAAAY~ :D <#
654: [08:43:05] <ss23> <3
655: [08:43:16] <ss23> damn, I sure tlak about myself a alot
656: [08:43:19] <ss23> That's kind of embarrasing....
657: [08:43:24] <Pyprk> hahahahahahaha
658: [08:43:37] <ss23> I'm actually slightly confused by how much I've talked about myself
659: [08:43:42] <ss23> Like, I didn't think it was that much o.o
660: [08:43:45] <Pyprk> does Michael not have interwebs yet/
661: [08:43:46] <Pyprk> ?
662: [08:43:56] <ss23> Pyprk: I think he does, but he's lokoing at flats tonight
663: [08:43:57] <ss23> or something
664: [08:44:30] <jcwacky> Afternoon / Morning / Evening all!
665: [08:44:34] <jcwacky> Anyone have experience of using mod_pagespeed with SilverStripe?
666: [08:44:35] <ss23> moin moin
667: [08:44:40] <Pyprk> ss23 you cunt. How'd you swindle that one off of me? :P
668: [08:44:40] <ss23> jcwacky: I hear it breaks it
669: [08:44:53] <ss23> Pyprk: What, getting michael? :D
670: [08:45:01] <ss23> Pyprk: Bro, it was *you*
671: [08:45:07] <Pyprk> eh?
672: [08:45:11] <ss23> wait
673: [08:45:17] <ss23> what were you meaning by 20:44:41 < Pyprk> ss23 you cunt. How'd you swindle that one off of me? :P
674: [08:45:28] <jcwacky> ss23: Badly? Or just by 1 or 2 filters?
675: [08:45:35] <Pyprk> [09:42] <@simon_w> Damn, http://logs.simon.geek.nz/stats.php#cunt
676: [08:45:44] <ss23> Pyprk: oic oic, idk :O
677: [08:45:56] <ss23> jcwacky: I have no idea, I've never used it, I just remember hearing that for some reason it wouldn't work
678: [08:46:11] <kinglozzer> Pyprk: because you keep changing your nick :P
679: [08:46:19] <rista> adrexia_: but all I'm asking is what event is trigger when the page is loaded via ajax in the cms?
680: [08:46:19] <adrexia_> ...and that is how you get stats for mentioning yourself
681: [08:46:37] <adrexia_> like a million of them...
682: [08:46:40] <Pyprk> kinglozzer: nah.
683: [08:46:53] <ss23> Oh, I guess
684: [08:46:56] <ss23> But it seems like more than I'd say
685: [08:46:59] <Pyprk> kinglozzer: although this way I can talk about that Pyromanik wanker all I want.
686: [08:47:15] <Pyprk> eh snowman23?
687: [08:47:17] <adrexia_> try onmatch
688: [08:47:21] <adrexia_> or onadd
689: [08:47:38] <Pyprk> <3 entwine
690: [08:47:39] <adrexia_> I forget which we're supposed to use.
691: [08:47:43] <Pyprk> onmatch
692: [08:47:52] <Pyprk> onadd was added because onmatch confused people
693: [08:47:58] <adrexia_> ahh sweet. but you need an onunmatch too, right?
694: [08:48:03] <adrexia_> ;)
695: [08:48:05] <Pyprk> it's not an alias though, they are ever so slightly different
696: [08:48:18] <Pyprk> or so I read.
697: [08:48:23] <adrexia_> but think onunmatch can just be this:
698: [08:48:25] <adrexia_> onunmatch: function(){
699: [08:48:25] <adrexia_> this._super();
700: [08:48:25] <adrexia_> },
701: [08:48:38] <Pyprk> it doesn't auto cascade back?
702: [08:48:45] <Pyprk> I'd have thought it would if you didn't define. but idk.
703: [08:48:46] <adrexia_> not sure. it might now
704: [08:48:54] * Pyprk shrugs
705: [08:48:54] <kinglozzer> I never onunmatch O.o
706: [08:49:03] <Pyprk> you're the front end wizard formerly for silverstripe!
707: [08:49:08] <adrexia_> I remember there were starnge things happening with it a year or two ago
708: [08:49:28] <ss23> I wonder if someone rebuilt the CMS completely, whether we could get it in core
709: [08:49:35] <adrexia_> you get into habits because of weird bugs, people fix the bugs, you keep the habits
710: [08:49:44] <ss23> I'd call it MMS, the Mini Management System, and it'd be mega lightweight
711: [08:49:45] <Pyprk> yeah, it's true.
712: [08:50:00] <Pyprk> or sometimes those 'bugs' were never even a thing, like deb/build?flush=all
713: [08:50:04] <Pyprk> (esp. in 2.4)
714: [08:50:37] * lozhowlett quit (Ping timeout: 246 seconds)
715: [08:50:38] <Pyprk> sweet, supertramp on the radio.
716: [08:50:43] <adrexia_> there's also redraw
717: [08:50:48] <Pyprk> ss23: did you shave your head yet?
718: [08:51:02] <simon_w> Was just about to add entwine to the swears. Was already in terse
719: [08:51:04] <simon_w> *there
720: [08:51:29] <Pyprk> it was tersely inserted
721: [08:52:19] <ss23> Pyprk: Nope, I doubt I will :O
722: [08:52:24] <Pyprk> fuck'n, ate something bad last night too kinglozzer - woke up this morning feeling a bit queezy again :(
723: [08:52:43] <Pyprk> ss23: going for the guiness book of records?
724: [08:52:47] <ss23> for what?
725: [08:52:49] <ss23> :P
726: [08:52:54] <ss23> I wouldn't win for long hair, I'm too lazy
727: [08:52:55] <adrexia_> rista: how familair are you with entwine in the cms? there are a bunch of gotchas
728: [08:53:39] <Pyprk> to be fair if you did shave your hair into a pixie you'd probably get swamped by teenage boys (or would that be lesbians?) thinking you were ellen page.
729: [08:53:45] <ss23> XD
730: [08:54:14] <Pyprk> xD
731: [08:54:28] <Pyprk> so that micmania1 fellow... y he no irc?
732: [08:54:32] <ss23> idk
733: [08:56:06] <kinglozzer> btw ss23, you aware that http://addons.silverstripe.org/ isn't collecting addons anymore?
734: [08:56:13] <kinglozzer> Just checking :P
735: [08:56:18] <ss23> ehhh, I am now, but I'm choosing to ignore it and pretend I dont'
736: [08:56:21] <Pyprk> he has addons?
737: [08:56:38] <kinglozzer> Pyprk: a fine collection, he has
738: [08:56:44] <Pyprk> o?
739: [08:56:51] <Pyprk> I don't believe he does.
740: [08:57:05] <Pyprk> there's nothing on addons.silverstripe.org
741: [08:57:11] <rista> adrexia_: yes I know ss is all in entwine. I used the same bit of code from: http://doc.silverstripe.org/framework/en/trunk/howto/cms-alternating-button#frontend-hooks and only changed the clenup with doSave, but it doesn't fire the event. And yes, that part is inside the entwine.
742: [08:57:40] <Pyprk> there's a doSave event?
743: [08:58:00] <ss23> Pyprk: He means cause I admin the box that runs addons sometimes :P
744: [08:58:00] <adrexia_> yep - the gotcha I was thinking of mentioning is that your event needs to be more specific that any other already bound to the object
745: [08:58:03] <ss23> After it got the shit hacked out of us
746: [08:58:12] <adrexia_> and you should call super
747: [08:58:48] <Pyprk> you got the shit hacked out of you ss23?
748: [08:58:56] <ss23> the addons box did
749: [08:58:58] <adrexia_> $.entwine('mysite', function($){ should probably be $.entwine('ss.mysite', function($){ within the cms
750: [08:59:23] <ss23> elasticsearch by default binds to * and lets anyone run arbitary commands
751: [08:59:27] <ss23> massive worm went around
752: [08:59:32] <ss23> good news is it was mass, rather than targetted
753: [08:59:42] <Pyprk> is good
754: [08:59:51] <Pyprk> elastic search?
755: [09:00:18] <adrexia_> I've never used that event before, sadly
756: [09:00:35] <ss23> elasticsearch is meant to be good, yeah
757: [09:00:41] <Pyprk> what is it?
758: [09:00:50] <ss23> like solr
759: [09:00:55] <adrexia_> if you stick an onmatch in there, does it get hit?
760: [09:01:02] <Pyprk> a serach server based on lucene
761: [09:01:07] <zippy> Pyprk: http://lmgtfy.com/?q=rch :P
762: [09:01:08] <Pyprk> thanks wiki
763: [09:02:06] <Pyprk> royal children's hospital zippy ?
764: [09:02:46] <zippy> http://lmgtfy.com/?q=elastic+search :D
765: [09:02:50] <zippy> haha that was fail eh
766: [09:03:24] * Shrike_Finland quit (Quit: Leaving.)
767: [09:03:33] <rista> adrexia_: yes, I tried $.entwine('ss.mysite', function($){ but still nothing happends. :(
768: [09:03:52] <rista> I will try to search it trough the code, since I can't find anything in the ss documentation
769: [09:04:00] <adrexia_> sticking this in there give you anything in colsole?
770: [09:04:03] <adrexia_> onmatch: function(){
771: [09:04:03] <adrexia_> var self = this;
772: [09:04:04] <adrexia_> this._super();
773: [09:04:04] <adrexia_>
774: [09:04:04] <adrexia_> console.log('onmatch');
775: [09:04:04] <adrexia_> },
776: [09:06:24] <rista> Ahh, yes it does! :)
777: [09:06:30] <rista> Thank you.
778: [09:10:31] <adrexia_> so that onafterwhats inmecall it is bound this this already: .cms-edit-form .Actions button[name=action_save] which means your entwine will need at least one more class or attribute or something
779: [09:12:38] <adrexia_> btw: pressing ctrl + ` gives you a handy entwine helper with elements and the events tied to them (at least it does on a mac, when the site you are working on is in dev mode)
780: [09:13:54] <Pyprk> haha, so slow :< Also I've never managed to bring it up.
781: [09:15:58] <rista> yes I understand. Btw, I changed my selector from the doSave to my form element and it does work as well. Also, ctrl + ` doesn't show anything for me.
782: [09:17:17] <adrexia_> thats the ~ key, btw. but yeah, I've had weird sort of luck with it myself. Sometimes works though
783: [09:19:13] <rista> yes, the tilda key. I will try on mac as well.
784: [09:19:36] <adrexia_> ohh... I think I have weird luck with it because I usually have a browser console open and selected. It only works if you have the cms focussed
785: [09:19:46] <adrexia_> never tried it on anything but OSX
786: [09:21:48] <Pyprk> Tried it once, on windows, didn't work, gave up, never again.
787: [09:23:55] <adrexia_> perhpas windows binds key 96 differently?
788: [09:24:01] <adrexia_> https://github.com/hafriedlander/jquery.entwine/blob/master/src/jquery.entwine.inspector.js
789: [09:25:00] <rista> numpad 0 - 96
790: [09:25:05] <rista> http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes
791: [09:25:44] <rista> but again, it doesn't work on windows.
792: [09:33:57] <adrexia_> not even sure why it works on mac. ` doesn't bind to 96 according to the internet
793: [09:35:31] * Sj0hn has joined #silverstripe
794: [09:35:35] <Pyprk> rista: no, ASCII #96 is `
795: [09:35:41] <Sj0hn> Hey all
796: [09:35:44] <Pyprk> hi
797: [09:36:02] * rista quit (Quit: Page closed)
798: [09:36:22] * rista has joined #silverstripe
799: [09:36:31] <Pyprk> adrexia_: ^^^
800: [09:36:55] <rista> yes, but still not works for me. Nevermind, will try on mac later on.
801: [09:37:01] <adrexia_> ahh, :)
802: [09:37:06] <Pyprk> yeah never has worked for me either.
803: [09:37:12] <Pyprk> just say'n
804: [09:37:28] <adrexia_> possibly being overridden by OS defaults
805: [09:40:14] <Pyprk> wholey fuck it just worked for me.
806: [09:40:15] <Pyprk> first time ever
807: [09:41:05] <Pyprk> logged into cms, did nothing but ctrl + ` (first thing, no clicking) and boom.
808: [09:42:20] <Pyprk> heh, funky.
809: [09:43:09] * Shrike_Finland has joined #silverstripe
810: [09:43:58] <adrexia_> haha
811: [09:44:15] <adrexia_> http://api.jquery.com/event.which/ says I'm pressing 192 for ` helpful.
812: [09:45:16] <Pyprk> ditto
813: [09:45:38] <adrexia_> Maybe new jquery has changed
814: [09:45:41] <Pyprk> but that's KEY 192, character is 96 or whatever.
815: [09:46:01] <Pyprk> although that's still odd, as standard US keyboard layout only has 105 keys.
816: [09:46:07] <Pyprk> but I guess then modifiers and such.
817: [09:46:49] <Pyprk> hmm, no, ctrl seems to make no difference. Plus am on UK keyboard anyway, so IDK
818: [09:46:56] * Pyprk shrugs
819: [09:47:13] <adrexia_> but it's e.which - which is what entwine is using
820: [09:47:24] <Pyprk> oh
821: [09:47:25] <Pyprk> lol
822: [09:52:19] <simon_w> Bah, stupid tinyMCE
823: [09:52:34] <simon_w> Is stopping my keyboard shortcuts from working
824: [09:53:04] <ss23> ol
825: [09:53:10] <ss23> as is expected with lamer tinymce
826: [09:53:22] <ss23> the SilverStripe MMS module doesn't include tinymce, so it's nicer
827: [09:55:12] * willr quit (Quit: willr)
828: [09:55:33] <adrexia_> MMSMMS?
829: [09:55:53] <adrexia_> *MMS
830: [09:55:57] <ss23> Whats the second MMS?
831: [09:55:58] <ss23> lol
832: [09:56:07] <ss23> Instead of the Contenet Management System, it's the Mini Management System!
833: [09:56:12] <ss23> A lightweight replacement for the CMS module!
834: [09:56:13] <ss23> :D
835: [09:56:18] <ss23> I just thought of it tonight
836: [10:03:15] <simon_w> Well, https://git.simon.geek.nz/simon_w/keyboard-shortcuts/commit/e6ac5cd8f81443a8f38addd71002945dff26cd49 works everywhere except in tinyMCE
837: [10:03:16] <adrexia_> ... and built it>
838: [10:03:19] <adrexia_> ?
839: [10:03:32] <ss23> adrexia_: Ummmm
840: [10:03:34] * ss23 looks around
841: [10:03:35] <ss23> :D
842: [10:03:38] <ss23> Pull request?
843: [10:03:45] <adrexia_> bwhahaha
844: [10:04:18] <adrexia_> replace tinymce with this: http://xing.github.io/wysihtml5/
845: [10:04:29] <ss23> yeah!
846: [10:04:36] <ss23> That's the one I used for the other project where I replaced it
847: [10:04:37] <ss23> it's nice
848: [10:05:04] <adrexia_> agree
849: [10:05:16] <zippy> Speech-input for Chrome
850: [10:05:19] <simon_w> Last update: 2 years ago
851: [10:05:27] <ss23> simon_w: NO NEED TO IMPROVE ON PERFECTION
852: [10:05:28] <ss23> :P
853: [10:05:36] <simon_w> zippy, you get that but hitting fn twice on a mac!
854: [10:05:39] <simon_w> *by
855: [10:05:40] <adrexia_> and does, like 5% of what tinymce does, and 90% of what people use it for
856: [10:05:58] <Pyprk> MMS module ?
857: [10:06:08] <ss23> 21:56:08 <@ss23> Instead of the Contenet Management System, it's the Mini Management System!
858: [10:06:11] <ss23> 21:56:13 <@ss23> A lightweight replacement for the CMS module!
859: [10:06:19] <ss23> No entwine
860: [10:06:29] <ss23> Just really basic HTML + PHP
861: [10:06:41] <ss23> Not designed for proper clients, without a lot of work, but for simple stuff and personal sites
862: [10:06:44] <ss23> etc
863: [10:07:03] <Pyprk> so... SublimeText?
864: [10:07:14] <Pyprk> with an FTP plugin?
865: [10:07:18] <ss23> lolwut
866: [10:07:21] <ss23> Is that a meme or something?
867: [10:07:28] <ss23> Cauase I've heard more than one person say something like taht today
868: [10:07:35] <adrexia_> why not only js, and a thin layer between it and the db? ;)
869: [10:07:42] <zippy> needs jquery
870: [10:07:46] <ss23> well that can be the JMS
871: [10:07:48] <ss23> the Javascript Management System
872: [10:07:53] <ss23> Okay it can have jQuery
873: [10:07:59] <ss23> NO ANGULAR OR EMBER
874: [10:08:01] * ss23 glares at adrexia_
875: [10:08:11] <ss23> The idea i that it's for PHP developers who know next to know JavaScript
876: [10:08:12] <adrexia_> Angular is super easy
877: [10:08:17] <adrexia_> I think you'd like it
878: [10:08:19] <ss23> lol
879: [10:08:23] * Tanger quit (Quit: Tanger)
880: [10:08:30] <ss23> I think you underestimate how much hate and time I've spent dealing with JavaScript
881: [10:08:32] <Pyprk> jqamberojo framework
882: [10:08:46] <adrexia_> you get to deal with the worst sort of javascript though
883: [10:08:52] <ss23> haha
884: [10:08:55] <ss23> All of it! :P
885: [10:08:58] * zippy quit (Quit: zippy)
886: [10:08:59] <ss23> Actually, you're right
887: [10:09:02] <adrexia_> stuff other people wrote ;)
888: [10:09:02] <Pyprk> ng
889: [10:09:04] <ss23> Sometimes I write Javascript and it's not so bad
890: [10:09:09] <ss23> I know how to debug that
891: [10:09:09] <ss23> :D
892: [10:09:23] <ss23> Like while I understand playpokemon.me will cause people to cry and tear their eyes out, it's *bearable*
893: [10:09:28] <ss23> Though holy shit javascript is hard to debug
894: [10:09:32] <ss23> "SYNTAX ERROR ON LINE X"
895: [10:09:45] <ss23> "Oh jk lol it's actually inside a nested eval given by an anon function... bla bla bla bla"
896: [10:09:49] <ss23> misleading as fuck
897: [10:09:58] <adrexia_> the cms javascript has the disadvanatge of being tightly bundled to the php. Much harder to understand
898: [10:10:07] * Tanger has joined #silverstripe
899: [10:15:47] * Robke has joined #silverstripe
900: [10:26:18] * SightUnseen has joined #silverstripe
901: [10:26:18] * SightUnseen quit (Client Quit)
902: [10:30:19] <simon_w> Bah, injecting into tinyMCE's going to be a pain
903: [10:31:26] <simon_w> Do it tomorrow
904: [10:32:37] * simon_w quit (Quit: This computer has gone to sleep)
905: [10:38:24] * simon_w has joined #silverstripe
906: [10:42:34] * adrexia_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
907: [10:52:58] * Colin[pi] quit (Ping timeout: 244 seconds)
908: [11:04:11] * Tanger quit (Quit: Tanger)
909: [11:04:57] * Shrike_Finland quit (Quit: Leaving.)
910: [11:08:11] * Shrike_Finland has joined #silverstripe
911: [11:16:05] * simon__w has joined #silverstripe
912: [11:19:23] * simon_w quit (Ping timeout: 240 seconds)
913: [11:22:36] * simon__w is now known as simon_w
914: [11:25:50] * Sj0hn quit (Ping timeout: 250 seconds)
915: [11:38:36] * r_hector quit (Quit: Leaving.)
916: [11:46:54] * Sj0hn has joined #silverstripe
917: [11:59:00] * Sj0hn quit ()
918: [12:10:16] * jrthomer_ has joined #silverstripe
919: [12:13:01] * hubertusanton_ has joined #silverstripe
920: [12:17:28] * simon_w quit (Quit: This computer has gone to sleep)
921: [12:19:03] * oetiker quit (*.net *.split)
922: [12:19:03] * hubertusanton quit (*.net *.split)
923: [12:19:04] * Cheddam quit (*.net *.split)
924: [12:19:05] * jrthomer quit (*.net *.split)
925: [12:22:03] * ARNHOE quit (Read error: Connection reset by peer)
926: [12:22:35] * ARNHOE has joined #silverstripe
927: [12:23:41] * Shrike_Finland quit (Quit: Leaving.)
928: [12:27:27] * jcwacky quit (Quit: jcwacky)
929: [12:27:58] * Robke quit (Ping timeout: 246 seconds)
930: [12:33:24] * oetiker has joined #silverstripe
931: [12:44:30] * Shrike_Finland has joined #silverstripe
932: [12:57:26] * muskie9 has joined #silverstripe
933: [13:10:22] * Shrike_Finland quit (Quit: Leaving.)
934: [13:24:45] <Pyprk> so jquery 27 is ascii 27 too.
935: [13:25:11] <Pyprk> idk wtf goes wrong to make ascii 68 == key 192
936: [13:28:16] * Stomcch has joined #silverstripe
937: [13:31:04] * superspring_ has joined #silverstripe
938: [13:31:24] * Stomach quit (Ping timeout: 240 seconds)
939: [13:31:24] * superspring quit (Ping timeout: 240 seconds)
940: [13:39:13] * catcher has joined #silverstripe
941: [13:46:27] * muskie9 quit (Read error: Connection reset by peer)
942: [13:46:37] * shellbackpacific has joined #silverstripe
943: [13:47:05] * muskie9 has joined #silverstripe
944: [13:47:20] <shellbackpacific> hey all….i lost an admin password for my dev instance. Can i get into the admin section w/o a password?
945: [13:47:29] <shellbackpacific> tried setting it to dev mode, but no dice
946: [13:47:58] <muskie9> shellbackpacific, yes... you can set the default admin email/password in your _ss_environment.php
947: [13:48:03] <shellbackpacific> sweeet
948: [13:48:04] <shellbackpacific> thanks
949: [13:48:32] <muskie9> define('SS_DEFAULT_ADMIN_USERNAME', 'yourEmailOrUsername');
950: [13:48:41] <muskie9> define('SS_DEFAULT_ADMIN_PASSWORD', 'yourPassword');
951: [13:48:46] <shellbackpacific> nice thanks
952: [13:54:03] <Pyprk> shellbackpacific: see docs.
953: [13:54:10] <Pyprk> you can do it in the _config.php too.
954: [13:54:19] <Pyprk> your $project's _config.php that is.
955: [13:54:51] <Pyprk> or probably any, but that's not advisable. Also you should remove it if it's a live instance too of course.
956: [13:55:56] <shellbackpacific> yep
957: [13:56:13] <shellbackpacific> yeah i use _ss_environment.php…
958: [13:56:28] <shellbackpacific> had to include this in _config.php: require_once('conf/ConfigureFromEnv.php');
959: [14:00:00] <Pyprk> well yeah
960: [14:00:07] <Pyprk> that's the entire point of _ss_environment.php
961: [14:00:14] <Pyprk> read the docs on environment config.
962: [14:00:38] <Pyprk> http://doc.silverstripe.org/framework/en/topics/environment-management
963: [14:00:42] <Pyprk> more sense will be made.
964: [14:05:33] <kinglozzer> Pyprk: Struggling
965: [14:05:38] <kinglozzer> So I'm standing at my desk
966: [14:05:41] <kinglozzer> and drinking Red Bull
967: [14:22:46] * rista quit (Ping timeout: 246 seconds)
968: [14:40:21] <shellbackpacific> is there a way to override Page.ss as the default template…i'm not seeing that in the docs. I need Page.ss to still exist but have another super-template that multiple layouts can inherit from
969: [15:03:31] <kinglozzer> shellbackpacific: Yes. In the main templates directory (one level about 'Layout') you can create multiple templates based on class name (e.g. HomePage.ss) in the same way you can for Layouts
970: [15:04:01] <shellbackpacific> can i then inherit from those?
971: [15:04:15] <kinglozzer> shellbackpacific: How do you mean "inherit"?
972: [15:04:20] <shellbackpacific> so like (SecondHomePage.php) use HomePage.ss
973: [15:04:48] <kinglozzer> If SecondHomePage extends HomePage then I think so
974: [15:05:18] <shellbackpacific> ok…i was having an issue but i'll keep tinkering with it since you think that sounds right thanks
975: [15:06:28] <kinglozzer> If you modify Controller::getViewer() (temporarily) and var_dump() out the templates here: http://api.silverstripe.org/3.1/source-class-Controller.html#299 then you can see which templates it will try to use
976: [15:12:50] * ThePeach has joined #silverstripe
977: [15:12:52] <ThePeach> hi all
978: [15:15:19] <kinglozzer> Hi ThePeach
979: [15:17:40] * ARNHOE quit ()
980: [15:23:41] * harold__ has joined #silverstripe
981: [15:23:59] <harold__> hi everyone
982: [15:24:42] <harold__> I have a Carousel.php file which extends dataobject
983: [15:25:02] <harold__> it seems that the tempate file which renders this is MyCarousel.ss
984: [15:25:17] <harold__> I am trying to figure out what determines that MyCarousel.ss works
985: [15:25:25] <harold__> should it not just be Carousel.ss
986: [15:28:48] <harold__> oh i see it's the includes name in the template which dtermines this
987: [15:29:09] <harold__> <% include MyCarousel %>
988: [15:33:22] <shellbackpacific> kinglozzer: thanks for that tip
989: [15:37:00] * jenniferaslan has joined #silverstripe
990: [15:38:57] <harold__> if i have a dataObject called carousel formtypeA
991: [15:39:17] <harold__> and then I have a another dataobject formtypeB
992: [15:39:35] <harold__> if B has the same structure (and more features) I shoul extend a righT?
993: [15:39:58] <muskie9> harold__ probably
994: [15:40:41] <harold__> otherwise I would literally be copying and pasting the code for TypeA and editing it for B
995: [15:40:45] <harold__> doesn't seem correct
996: [15:40:50] <muskie9> ya, then extend it
997: [15:41:01] <harold__> ok wish me luck
998: [15:41:06] <harold__> my first 'extends'
999: [15:43:03] <shellbackpacific> kinglozzer: any hints as to extending 'getViewer' ? I'm trying to extend it in a page controller (and the heirarchy appears correct MicrositePage_Controller -> Page_Controller -> ContentController -> Controller) but no dice :(
1000: [15:48:15] <kinglozzer> shellbackpacific: You can't "extend" it, you could override it completely on your controller but that's a bit of a hack. If your template is named MicrositePage, it should work. Have you flushed?
1001: [15:51:09] <shellbackpacific> yeah sorry meant override...
1002: [15:51:20] <shellbackpacific> i have flushed. nothing. oh well, i'll get it here
1003: [15:51:44] <shellbackpacific> i was trying to override it and it wasn't working
1004: [15:51:54] <shellbackpacific> *isn't
1005: [15:52:56] <catcher> shellbackpacific, put a breakpoint or die in your override to see if it's firing.
1006: [15:53:39] <shellbackpacific> yeah i did
1007: [15:53:50] <catcher> results?
1008: [15:54:00] <shellbackpacific> didn't break
1009: [15:54:31] <catcher> Be sure you're actually requesting a MicrositePage_Controller
1010: [15:55:11] <shellbackpacific> ok thanks..i'll make sure i'm not missing anything stupid here
1011: [15:58:12] <harold__> so i have a page which has many formtypeA and formtypeB
1012: [15:58:26] <harold__> formtypeB extends formTypeA
1013: [15:58:52] <harold__> when I use the relational manager to associate formtypeA with a page
1014: [15:59:05] <harold__> I see the same relationship is made for formtypeB
1015: [15:59:10] <catcher> harold__, limit the list
1016: [15:59:47] <catcher> in the list part of the constructor, provide $this->formtypeA->exclude('ClassName', 'formtypeB')
1017: [16:00:05] <catcher> rather, $this->formtypeA-()>exclude('ClassName', 'formtypeB')
1018: [16:00:28] <harold__> is that in the new GridField
1019: [16:00:33] <catcher> yep
1020: [16:03:22] <harold__> do i actually include that within the Gridfield function itself
1021: [16:04:06] <kinglozzer> harold__: That's the third argument you pass to new GridField(.... / GridField::create(....
1022: [16:04:36] <harold__> ah yes i see it
1023: [16:06:49] <harold__> ok and I only need to do this for the type which is extended typeb righT?
1024: [16:09:27] <harold__> it owrks!
1025: [16:09:29] <harold__> neat
1026: [16:09:39] <harold__> so actually i had to exclude on the parent only
1027: [16:09:42] <harold__> logical i guess
1028: [16:13:10] <catcher> yes, remember typeB is a typeA in OOP.
1029: [16:24:14] <Pyprk> [15:05] <kinglozzer> Pyprk: Struggling [15:05] <kinglozzer> So I'm standing at my desk [15:05] <kinglozzer> and drinking Red Bull
1030: [16:24:17] <Pyprk> haha, champion
1031: [16:24:23] <harold__> can i merge the typea and typeb associates in the template
1032: [16:24:31] <harold__> I want to loop them a single list
1033: [16:24:32] <Pyprk> no, do it in php
1034: [16:24:51] <harold__> sorry that what i meant
1035: [16:25:14] <Pyprk> http://api.silverstripe.org/3.1/class-DataList.html#_merge
1036: [16:25:38] <Pyprk> time to fuck off.
1037: [16:25:39] * Pyprk quit ()
1038: [16:26:15] <harold__> i should write a function that merges them
1039: [16:26:25] <harold__> then in the template loop MergeListFunction
1040: [16:29:15] <catcher> harold__, yes, that's the idea
1041: [16:30:20] <catcher> harold__, as the docs say, you won't be able to use DataLists, you'll need to convert them to ArrayLists.
1042: [16:31:07] * stnvh quit ()
1043: [16:31:15] * kinglozzer quit ()
1044: [16:31:53] * stnvh has joined #silverstripe
1045: [16:32:52] <catcher> harold__, though if you're talking about the same thing as above, why not just get all typeA?
1046: [16:49:46] * harold__ quit (Ping timeout: 246 seconds)
1047: [16:55:00] * stnvh quit ()
1048: [17:02:51] * CodeTrap quit (Ping timeout: 255 seconds)
1049: [18:03:33] * ThePeach quit (Quit: leaving)
1050: [18:16:20] * Shrike_Finland has joined #silverstripe
1051: [18:25:25] * gelignite has joined #silverstripe
1052: [18:25:57] * Liongold has joined #silverstripe
1053: [18:26:03] <Liongold> muskie9: hi
1054: [18:27:24] <muskie9> hey Liongold
1055: [18:27:46] <Liongold> muskie9: how can I add a year to a value currently in the database?
1056: [18:28:15] <muskie9> as a DataObject's db field?
1057: [18:28:50] <Liongold> yeah
1058: [18:29:26] <muskie9> private static $db = array('Year' => 'Year');
1059: [18:29:54] <Liongold> No
1060: [18:30:25] <Liongold> I have a date saved in the db using 'Date'. I would like to be able to add a year to the date in the db.
1061: [18:31:32] <muskie9> it already supports year, YYYY-MM-DD iirc
1062: [18:32:02] <Liongold> I would like to know how to add the year (+1 year)
1063: [18:33:02] <muskie9> you'd use strtotime to do it
1064: [18:33:47] <muskie9> date('Y-m-d', strtotime(your date + 1 year))
1065: [18:33:54] <Liongold> strtotime('format', $entry->date('+1 year'))?
1066: [18:34:14] <muskie9> ya
1067: [18:34:30] <muskie9> might need to put your strtotime in date(), not sure
1068: [18:35:45] <Liongold> date('format', strtotime($data->date('+1 year'))?
1069: [18:36:13] <muskie9> 'format' would be Y-m-d
1070: [18:45:23] * muskie9 quit (Read error: Connection reset by peer)
1071: [18:46:02] * muskie9 has joined #silverstripe
1072: [18:59:34] <Liongold> muskie9: I'm getting Server Error
1073: [19:06:05] * muskie9 quit (Read error: Connection reset by peer)
1074: [19:06:46] * muskie9 has joined #silverstripe
1075: [19:07:10] <catcher> Liongold, do you have the error message from logs or a response debugger?
1076: [19:07:29] <Liongold> No but I think the problem has to do with the date()
1077: [19:07:44] <catcher> Liongold, it's important to be able to see the errors
1078: [19:08:01] <Liongold> My error.log does not give anything
1079: [19:08:16] <muskie9> are you in dev mode?
1080: [19:08:30] <Liongold> BTw, if I do $data->date does it output the database value?
1081: [19:17:49] * harold__ has joined #silverstripe
1082: [19:20:54] <harold__> i want to write a function that combines an objects related data from two sources into a single array
1083: [19:21:28] <Liongold> muskie9 catcher: Fixed it. Thanks for your help anyway.
1084: [19:21:29] <harold__> I can access the related data as follows: $this->relatedA
1085: [19:21:39] <harold__> this->relatedB
1086: [19:21:42] <harold__> is that correct?
1087: [19:23:06] * Shrike_Finland quit (Quit: Leaving.)
1088: [19:25:39] <catcher> harold__, depends on what $this is
1089: [19:28:28] <harold__> well I am just starting a fresh function
1090: [19:28:51] <harold__> literally public function mergedata(){}
1091: [19:31:06] <harold__> if the function is in the controller won't $this apply to the current object?
1092: [19:31:17] * Liongold quit (Quit: Page closed)
1093: [19:31:32] <muskie9> $this->data() will get you the controller's model data
1094: [19:34:50] * muskie9 quit (Read error: Connection reset by peer)
1095: [19:35:08] * muskie9 has joined #silverstripe
1096: [19:49:09] * muskie9 quit (Read error: Connection reset by peer)
1097: [19:49:43] <harold__> so do i loop $this->data()
1098: [19:50:14] <harold__> $this->('relatedA');
1099: [19:50:26] * zippy__ has joined #silverstripe
1100: [19:50:43] <zippy__> morning
1101: [19:50:46] * zippy__ is now known as zippy
1102: [19:51:14] <harold__> sorry ... $this->data('relatedA')
1103: [19:53:24] <harold__> no it should be $this->relatedA() right?
1104: [19:58:47] <zippy> harold__: have you looked at ->toArray() ? you could do that on both objects perhaps and use array merge
1105: [20:07:18] * mobiusnz quit (Quit: Leaving.)
1106: [20:13:55] * Olliepop has joined #silverstripe
1107: [20:18:01] * lerni_ has joined #silverstripe
1108: [20:20:34] * SightUnseen has joined #silverstripe
1109: [20:20:41] * SightUnseen has left #silverstripe
1110: [20:21:18] <zippy> Olliepop: hello
1111: [20:27:24] * mobiusnz has joined #silverstripe
1112: [20:30:01] <harold__> @zippy...
1113: [20:30:08] <harold__> no I hadn't seen that function
1114: [20:30:09] <zippy> @harold__
1115: [20:30:15] <harold__> looks like what I need tohugh
1116: [20:34:13] * travis-ci has joined #silverstripe
1117: [20:34:13] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#976 (3.1 - 3e1904a : Mateusz U): The build was broken.
1118: [20:34:13] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/1b0add3ecfbb...3e1904acd8f5
1119: [20:34:13] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/31387922
1120: [20:34:13] * travis-ci has left #silverstripe
1121: [20:39:48] * Kingy[a] is now known as Kingy
1122: [20:40:09] <Kingy> morning
1123: [20:42:11] * travis-ci has joined #silverstripe
1124: [20:42:11] <travis-ci> [travis-ci] tractorcow/sapphire#4 (pulls/3.1/maori - 8ff1a36 : Damian Mooyman): The build passed.
1125: [20:42:11] <travis-ci> [travis-ci] Change view : https://github.com/tractorcow/sapphire/compare/dc06bd92394b^...8ff1a36de708
1126: [20:42:11] <travis-ci> [travis-ci] Build details : http://travis-ci.org/tractorcow/sapphire/builds/31651949
1127: [20:42:11] * travis-ci has left #silverstripe
1128: [20:44:38] * Stomcch is now known as Stomach
1129: [20:44:40] <Stomach> hey kingy
1130: [20:44:45] * vebb has joined #silverstripe
1131: [20:44:52] * vebb hits Kingy
1132: [20:45:01] <Kingy> where are you vebb?
1133: [20:45:11] <Kingy> hows it going Stomach
1134: [20:45:28] <vebb> I'm in my plane.
1135: [20:45:51] <Stomach> ah yeah its alright Kingy :) how are you
1136: [20:46:05] <Kingy> same old same old
1137: [20:46:13] <vebb> Kingy: I suddenly ended up with two macbook pros
1138: [20:46:16] <vebb> how weird is that?
1139: [20:46:27] <Kingy> lol why?
1140: [20:46:48] <vebb> well I bought one, and for some reason it was only $800, so I bought another... for $800
1141: [20:46:56] <vebb> so I got two brand new ones :p
1142: [20:47:08] <Kingy> lol
1143: [20:47:11] <vebb> I asked Noel Lemming again and again, and they were like no it's right
1144: [20:47:16] <Kingy> now sell one for good profit?
1145: [20:47:17] * vebb shrugs
1146: [20:47:23] <vebb> well I have three now
1147: [20:47:24] <Kingy> get money back for both
1148: [20:47:26] <vebb> (including my old one)
1149: [20:47:27] <Kingy> winning lol
1150: [20:47:35] <vebb> 13" Retina mbp etc
1151: [20:47:47] <Kingy> same as the one I got :)
1152: [20:47:52] <vebb> I was so confused
1153: [20:47:58] <vebb> lol
1154: [20:48:04] <zippy> vebb: nice, I wonder if they dropped the price (by over half!) as new ones came out last week?
1155: [20:48:17] <vebb> perhaps. but i doubt it.
1156: [20:48:18] <zippy> crazy discount
1157: [20:48:25] <vebb> in the apple store, these are 1799?
1158: [20:48:50] <vebb> I think they screwed up, see my mate used to work there, and so got a discount, then the girl gave me her staff discount... then the manager
1159: [20:48:56] <vebb> I think, something weird happened to their system. haha.
1160: [20:49:03] <zippy> veb: http://www.noelleeming.co.nz/shop/computers/apple/macbooks/apple-mgx72x-a-macbook-pro-13-3-128gb-flash/prod131807.html ? someone dropped a 1
1161: [20:49:14] <vebb> yup.
1162: [20:49:26] <Kingy> thats pretty awesome
1163: [20:49:27] <vebb> what. that website. it tells you when someone buys something.
1164: [20:49:41] <vebb> it just told me someone bought a 60" LED TV
1165: [20:49:41] <Kingy> yeah it's very annoying
1166: [20:49:53] <Kingy> same
1167: [20:49:53] <vebb> and again....
1168: [20:49:53] <Kingy> lol
1169: [20:49:58] <vebb> it's lying.
1170: [20:50:06] * nickmolhoek has joined #silverstripe
1171: [20:50:08] <vebb> false advertising i reckon
1172: [20:50:48] <vebb> Kingy: I got the screen replaced for $20 on my older 2009 mbp
1173: [20:50:48] <Kingy> either that or just every 30 seconds it says what the last purchase was
1174: [20:50:49] * Ryan-Toast has joined #silverstripe
1175: [20:50:50] <vebb> lol
1176: [20:51:04] <Kingy> shoulda done it yourself
1177: [20:51:08] <vebb> but retina saves my eyes
1178: [20:51:10] <Kingy> ebay the parts lol
1179: [20:51:11] <vebb> Kingy: it cost $20
1180: [20:51:19] <zippy> vebb: how'd ya score that?
1181: [20:51:19] <Kingy> oh i read 200 lol
1182: [20:51:21] <vebb> the screen, you knob.
1183: [20:51:48] <vebb> zippy: you use a heat gun thing, and peel it off, or replace the whole thing from a dead laptop
1184: [20:51:50] <vebb> which is what I did
1185: [20:51:59] <vebb> someone had a dead laptop so I got that for $20
1186: [20:52:03] <zippy> nice
1187: [20:52:32] <zippy> with the retina screen, do you run it at the recommended or go higher res? I am tossing up between the 13" and 15", and I would run them higher then there defaults
1188: [20:52:49] <vebb> retina. keep it there. I tried the highest
1189: [20:53:00] <vebb> ... but Retina saves your eyes in the long run
1190: [20:53:33] <Kingy> + flux
1191: [20:53:35] <zippy> so really if I want to see more I should go with the 15"
1192: [20:53:43] <vebb> nah
1193: [20:53:45] <zippy> (has a 13" mba atm)
1194: [20:53:51] * simon_w has joined #silverstripe
1195: [20:53:56] <zippy> simon_w: morning
1196: [20:53:57] <vebb> well
1197: [20:54:02] <Kingy> + protectyourvision.org
1198: [20:54:03] <vebb> meh, up to you. personal pref I reckon.
1199: [20:54:09] <simon_w> Moning
1200: [20:54:22] <Kingy> morning simon_w
1201: [20:54:33] <vebb> Kingy: what is that?
1202: [20:55:20] <Kingy> just a website that notifies you + makes your screen go black
1203: [20:55:24] <Kingy> makes you have a break
1204: [20:55:37] <vebb> weird
1205: [20:55:42] <vebb> it's not built for retina :p
1206: [20:55:47] <Kingy> quite handy
1207: [20:56:05] <Kingy> even just the notification is good
1208: [20:56:45] <vebb> mm
1209: [20:57:06] * zippy has left #silverstripe
1210: [20:57:12] * zippy has joined #silverstripe
1211: [20:57:22] <zippy> wb zippy
1212: [20:57:37] <Kingy> wtf
1213: [20:57:43] <vebb> lol
1214: [20:58:05] * Kingy thinks zippy is still excited about having his username
1215: [20:58:14] <zippy> :D
1216: [20:58:16] <zippy> you know it
1217: [20:58:26] <vebb> why?
1218: [20:58:39] <Kingy> it was zippy_
1219: [20:58:44] <vebb> I'm the one with a three letter github username pff
1220: [20:58:44] <Kingy> managed to get rid of the _
1221: [20:59:13] <Kingy> im going to find one that doesn't exist
1222: [20:59:22] <Kingy> https://github.com/owj
1223: [20:59:24] <Kingy> done!
1224: [20:59:54] <vebb> lame username Kingy
1225: [21:00:02] <Kingy> lol
1226: [21:00:19] <vebb> Kingy: I got a VPS
1227: [21:00:21] <vebb> another one...
1228: [21:00:40] <Kingy> where from?
1229: [21:00:54] <Kingy> I got an email the other day from some company I had one with for a month
1230: [21:00:58] <vebb> guess how pOWERRRRRFUL it is
1231: [21:01:20] <Kingy> they didn't respond to a support ticket. So the new owner emailed me saying they'd give me one free for 6 months
1232: [21:01:20] <Kingy> lol
1233: [21:01:32] <vebb> 16gb 5tb 10tb traffic
1234: [21:01:35] <vebb> it's like, what.
1235: [21:01:53] <zippy> sounds like godaddy or something, and there would be an * on the end that says
1236: [21:02:00] <vebb> it's not
1237: [21:02:06] <Kingy> that's about what I get with my dedi
1238: [21:02:06] <zippy> 'this is the spec of the server, your resources will be a fraction of this'
1239: [21:02:09] <vebb> I just did a few tests and it lives up
1240: [21:02:12] <vebb> to the spec
1241: [21:02:32] <vebb> I'm making an app and my linode vps was a bottleneck
1242: [21:02:37] <vebb> so I needed something powerful to test
1243: [21:02:44] <vebb> Kingy's dedi wasn't too speedy
1244: [21:02:49] <vebb> (probably where it's located)
1245: [21:03:17] <vebb> anyways, work.
1246: [21:03:18] <Kingy> naw, you'd only be using the VPS on my dedi
1247: [21:03:21] * vebb &
1248: [21:03:26] <Kingy> so it probs was shit
1249: [21:04:01] * travis-ci has joined #silverstripe
1250: [21:04:01] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#977 (3.1 - acf376e : Damian Mooyman): The build is still failing.
1251: [21:04:01] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/3e1904acd8f5...acf376e2675b
1252: [21:04:01] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/31653041
1253: [21:04:01] * travis-ci has left #silverstripe
1254: [21:06:33] <zippy> heh http://d1mpb3f4gq7nrb.cloudfront.net/img/toons/cartoon0512.png
1255: [21:06:53] * CodeTrap has joined #silverstripe
1256: [21:13:13] <pippy> does tractorcow go on irc?
1257: [21:13:46] * micmania1 has joined #silverstripe
1258: [21:14:12] * travis-ci has joined #silverstripe
1259: [21:14:12] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3031 (3.1 - 28147c4 : Sean Harvey): The build passed.
1260: [21:14:12] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/dc06bd92394b...28147c4a90f6
1261: [21:14:12] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/31654434
1262: [21:14:12] * travis-ci has left #silverstripe
1263: [21:15:06] * adrexia has joined #silverstripe
1264: [21:15:36] * shellbackpacific quit (Ping timeout: 250 seconds)
1265: [21:18:17] * CodeTrap1 has joined #silverstripe
1266: [21:19:41] * CodeTrap quit (Ping timeout: 256 seconds)
1267: [21:21:02] <zippy> If I setup my own custom controller, which extends Controller, I can't access Menu() since that is only ContentController - so I could extract the getMenu code from there to a DataExtension…. or is there a better way?
1268: [21:23:21] * vebb is now known as vebafk
1269: [21:24:48] <zippy> yea that'd work for only single levels - which is all I need really. The other problem I run into is any Requirements added in Page_Controller::init() wont get fired in my controller, since I can't extend Page_Controller....
1270: [21:25:15] <zippy> I would have to put the requirements in the page.ss - which might be ok…. or pull that out to a sepereate static
1271: [21:25:25] * simon_w quit (Quit: This computer has gone to sleep)
1272: [21:25:27] * Bosie_ has joined #silverstripe
1273: [21:25:28] <zippy> Page_Controller::initRequirements or something
1274: [21:25:33] <zippy> Bosie_: hi
1275: [21:25:53] <Bosie_> hey zippy :)
1276: [21:26:10] <Bosie_> you're always here ey?
1277: [21:26:41] <adrexia> coul;d you create an instance of it from controller and access it from that? It's a bit hacky... but it might work
1278: [21:26:54] <Bosie_> And I'm always here with my problems... :(
1279: [21:27:14] <zippy> Bosie_: but is it always the same person, or do multiple people use this nickname?
1280: [21:27:41] <zippy> adrexia: Probably a bit hacky and more resources...
1281: [21:28:46] <Bosie_> well you recognised me... so unless there are loads of you and you all get together over beer and talk about these stupid devs bringing their problems here...
1282: [21:29:01] <zippy> Bosie_: or do I just say hi to everyone that joins?
1283: [21:29:16] <zippy> ah thats why requirements in the page sucks, if you put say, jquery in the page.ss, and then in your about.ss you add some js, it will get added BEFORE the jquery one
1284: [21:29:22] <Bosie_> see, I never look for the simple answer
1285: [21:29:40] * zippy throws hands up in the air
1286: [21:29:48] <zippy> I am going back to carving out stone tablets
1287: [21:30:02] <Bosie_> OK, so today's hiccup...
1288: [21:30:18] <zippy> mmhmm
1289: [21:30:46] <Bosie_> I got an old site and I just added willr's awesome facebook auth module, used composr for the first time too, which upgraded me to latest ss
1290: [21:30:54] <Bosie_> it kinda works
1291: [21:31:04] <Ryan-Toast> zippy: where are your underscores?
1292: [21:31:05] <Bosie_> but for users authed and logged in via FB
1293: [21:31:12] <zippy> Ryan-Toast: dude....!
1294: [21:31:21] <Bosie_> I got 403s on ajax requests to controllers
1295: [21:31:28] <Ryan-Toast> zippy: DID YOU FINALLY MAKE IT?
1296: [21:31:31] <Bosie_> with allowed_action methods
1297: [21:31:42] <Bosie_> but for normal authed users, I don't
1298: [21:32:01] <zippy> Ryan-Toast: http://logs.simon.geek.nz/index.php?date=2014-07-31#log_1358519
1299: [21:32:02] * joelpittet has joined #silverstripe
1300: [21:32:21] <Bosie_> both members - FB authd and SS authd, return member objects from Member::currentUser()
1301: [21:32:28] <zippy> Bosie_: From which to which versions of ss did you upgrade from to?
1302: [21:32:39] <Ryan-Toast> zippy: http://i.imgur.com/KyhrD.gif
1303: [21:32:59] <zippy> true dat
1304: [21:33:14] <Bosie_> from... 3.0 ish to 3.1.5
1305: [21:33:45] <zippy> Bosie_: with the 403, is there a message, if you look at the response tab in chrome and see what the message if any way
1306: [21:33:51] <zippy> (make sure in dev mode, and you've flushed)
1307: [21:33:54] <Ryan-Toast> Asked my designers to give me something cool and hard to make, can’t wait to see what they come up with
1308: [21:34:15] <zippy> Ryan-Toast: IE6 compatable website
1309: [21:34:20] <Ryan-Toast> lol, no.
1310: [21:34:28] <Ryan-Toast> > IE10 for this one
1311: [21:34:46] <Bosie_> just "Forbidden"
1312: [21:35:12] <Bosie_> standard 403 I think
1313: [21:35:53] <Bosie_> there must be *something* different between the way the two users are logged in
1314: [21:36:00] <Bosie_> the module logs in using $member->logIn()
1315: [21:36:14] * irogue_ has joined #silverstripe
1316: [21:37:25] <Bosie_> I'm trying to work out how the standard login works, but it's, errr, stringy...
1317: [21:38:51] <adrexia> menu in general is resource intensive. there's got to be a better way...
1318: [21:39:15] <Bosie_> mmm it's the same - $member->LogIn(isset($data['Remember']));
1319: [21:40:14] * gelignite quit (Quit: http://bit.ly/nkczDT)
1320: [21:42:19] * catcher quit (Quit: Leaving)
1321: [21:42:25] <Ryan-Toast> jesus, Mac. When I say rm -fdr * I mean delete everything.
1322: [21:42:38] <Ryan-Toast> Don’t just hide our stupid files everywhere
1323: [21:43:44] <irogue_> https://dl.dropboxusercontent.com/u/4618071/speling.png
1324: [21:43:48] <irogue_> qualitah spelling
1325: [21:45:14] <Kingy> kawallytee
1326: [21:47:30] * vebafk is now known as vebb
1327: [21:49:01] * lerni_ quit ()
1328: [21:50:32] * vebb is now known as vebafk
1329: [21:51:09] <Ryan-Toast> Stomach: do you have a composer package that requires sortable gridfields by anychance? Mine seems to say there’s a typo.
1330: [21:51:46] <Stomach> "undefinedoffset/sortablegridfield": "3.1.*"
1331: [21:51:51] <Stomach> whoops
1332: [21:51:57] <Stomach> wrong thingamabob
1333: [21:52:16] <Stomach> "undefinedoffset/sortablegridfield": "0.3.2"
1334: [21:52:17] <Stomach> that one
1335: [21:52:19] <zippy> Stomach: busted that out quick, you just have it ready to paste or something
1336: [21:52:21] <Ryan-Toast> I have mine set as dev-master perhaps it doesn’t like that
1337: [21:52:43] <Stomach> zippy, I have my editor open and have a package that requires it which I know requires it
1338: [21:52:48] <Stomach> opened package composer - copy - paste
1339: [21:52:52] <Stomach> wooooooo party
1340: [21:52:56] <Stomach> quickdraw mcgraw
1341: [21:53:10] <Stomach> http://3.bp.blogspot.com/_hfirdv34n7A/TEgCISf7oaI/AAAAAAAAFVo/2V2PxW86m0I/s1600/EL+KABONG+STRIKES.png
1342: [21:55:18] * vebafk is now known as vebb
1343: [21:56:18] <Ryan-Toast> Stomach: where did you find the version? I’ve got “dev-master” but I get: requires undefinedoffset/sortablegridfield dev-master -> no matching package found.
1344: [21:56:31] <Stomach> I checked packagist.org
1345: [21:56:44] <Stomach> https://packagist.org/packages/undefinedoffset/sortablegridfield
1346: [21:56:58] <Ryan-Toast> Ah, coolio.
1347: [21:57:01] <Ryan-Toast> I’ll try that
1348: [21:57:22] <Stomach> this is what you get for skipping out on composer training
1349: [21:57:23] <Stomach> lololol
1350: [21:58:00] <Ryan-Toast> :P
1351: [21:58:41] <Ryan-Toast> 10 people have installed my boilerplate.
1352: [21:58:43] <Ryan-Toast> Aww yiss
1353: [21:59:45] <Stomach> winrar!@
1354: [22:00:15] <zippy> Ryan-Toast: so you've built 10 sites with it? :)
1355: [22:00:27] <Ryan-Toast> zippy: This is my first time trying to install with composer
1356: [22:01:44] <pippy> 8 people have used my composer package, pretty happy with that seeing how new it is
1357: [22:02:14] <Ryan-Toast> Stomach: Setting the version for gridfields worked.
1358: [22:02:21] <Ryan-Toast> Don’t know why it didn’t like dev-master
1359: [22:02:29] <Ryan-Toast> racists.
1360: [22:02:38] <Stomach> Ryan-Toast, of course it worked
1361: [22:02:46] <Stomach> :P
1362: [22:02:59] <Ryan-Toast> why not dev-master though?
1363: [22:04:01] <Stomach> no idea
1364: [22:04:05] <Stomach> doesn't make much sense
1365: [22:05:19] <Ryan-Toast> *shrug
1366: [22:06:06] <irogue_> could be a required stability you've got set, Ryan-Toast
1367: [22:06:37] <Ryan-Toast> irogue_: It couldn’t find the package, which is what I found strange
1368: [22:06:57] <Ryan-Toast> Could set a blank version and let the command line prompt me for a version I suppose
1369: [22:08:47] <Olliepop> What would the most efficient/usable way to lay out 70 checkboxes (10 for each day of the week, each box represents a time slot) in the CMS be? Currently im using a ToggleCompositeField for each day
1370: [22:09:33] <Olliepop> by usable I mean for the users :) its kind of impractical having the field take up the full width yet only the first 10% is taken up by the checkbox and its label
1371: [22:10:08] <Ryan-Toast> Olliepop: I would make a custom table
1372: [22:10:35] <Olliepop> Ryan-Toast: That's a good idea
1373: [22:12:12] <zippy> In my custom controller, I am trying to render out the page. If it do->renderWith(array('My_Layout', 'Page')); then my layout is called, but it's not wrapped in the Page template...
1374: [22:13:27] * antmas has joined #silverstripe
1375: [22:13:36] <antmas> morning!
1376: [22:13:44] <zippy> antmas: hi
1377: [22:14:14] <antmas> whats' the best way to stage a bunch of modified files for commit? rather than just one by one...
1378: [22:14:26] <Stomach> git add .
1379: [22:14:35] <antmas> ah that's it
1380: [22:14:37] <antmas> Stomach: tah
1381: [22:14:52] <Stomach> :)
1382: [22:15:01] <antmas> #herpderp
1383: [22:15:23] <Ryan-Toast> antmas: git commit -am?
1384: [22:15:24] <Kingy> sup antmas
1385: [22:15:32] <zippy> antmas: git add -u
1386: [22:17:39] <antmas> Kingy: yo
1387: [22:18:21] * CodeTrap has joined #silverstripe
1388: [22:19:50] * CodeTrap1 quit (Ping timeout: 250 seconds)
1389: [22:26:20] * CodeTrap1 has joined #silverstripe
1390: [22:28:19] * CodeTrap quit (Ping timeout: 255 seconds)
1391: [22:28:43] <antmas> hmmm what's a good windows git client/editor?
1392: [22:28:51] <antmas> I'm using gitbash but it's ...eh
1393: [22:29:26] <zippy> cli?
1394: [22:29:30] <adrexia> I like the github client
1395: [22:29:45] <antmas> zippy: yeah
1396: [22:29:52] <adrexia> with commandline for actually using git
1397: [22:30:13] <antmas> adrexia: ah, so you just use the guthub client for 'viewing'?
1398: [22:30:23] <antmas> zippy: yeah a cli
1399: [22:30:37] <zippy> can't you just use the cli?
1400: [22:30:44] <adrexia> yep. it has a nice histoiry/branch view
1401: [22:31:18] <antmas> zippy: yeah I can, just wondweing if there is a 'go-to' cli, or it doesn't really matter
1402: [22:31:24] <antmas> wondering*
1403: [22:31:25] <adrexia> you can, but i8t's an inferior display medium
1404: [22:31:42] <adrexia> doesn't really matter
1405: [22:31:52] <adrexia> github clinet comes with a CLI too
1406: [22:32:09] <antmas> ah
1407: [22:32:10] <antmas> cook
1408: [22:32:12] <antmas> cool*
1409: [22:32:18] <antmas> bah, can't type D:
1410: [22:32:36] <irogue_> antmas: if you're using GitHub, use their client as it does the authentication with GitHub nicely etc
1411: [22:32:47] <irogue_> even if you just use the CLI
1412: [22:33:03] <antmas> irogue_: well, it's hosted on gitlab
1413: [22:33:11] <adrexia> also installs git for you - though not needed in your case
1414: [22:33:35] <antmas> I use the github client for viewing
1415: [22:33:41] <antmas> and gitbash for editing/using
1416: [22:34:43] <antmas> Ryan-Toast: you did a colour picker field yeah?
1417: [22:35:03] <Ryan-Toast> antmas: yes
1418: [22:35:16] <antmas> Ryan-Toast: can I take a look at how you did it?
1419: [22:35:20] <antmas> or is it part of BP?
1420: [22:35:23] * CodeTrap1 quit (Ping timeout: 240 seconds)
1421: [22:35:24] <Ryan-Toast> yarp
1422: [22:35:37] <Ryan-Toast> https://github.com/Rhym/ss_boilerplate/blob/master/Boilerplate/forms/ColorField.php
1423: [22:35:50] <antmas> awww yisssss Ryan-Toast thanks
1424: [22:36:12] <Ryan-Toast> https://github.com/Rhym/ss_boilerplate/blob/master/Boilerplate/javascript/colorpicker.min.js
1425: [22:36:18] <Ryan-Toast> https://github.com/Rhym/ss_boilerplate/blob/master/Boilerplate/javascript/colorpicker.init.js
1426: [22:36:20] <Ryan-Toast> is everything
1427: [22:36:23] <Ryan-Toast> I think
1428: [22:37:20] * superspring_ is now known as superspring
1429: [22:37:38] <zippy> well, I learned something today
1430: [22:37:38] <Stomach> antmas, I use sourcetree for GUI git
1431: [22:38:00] <antmas> Ryan-Toast: what db type is it?
1432: [22:38:30] <Ryan-Toast> antmas: Umm Varchar(8) or something'
1433: [22:38:36] <antmas> schweet
1434: [22:38:37] <antmas> of
1435: [22:38:41] <antmas> oh* it's a textfield
1436: [22:38:42] <antmas> :P
1437: [22:39:12] <Ryan-Toast> I really should make ait a seperate module.
1438: [22:39:15] <Ryan-Toast> but cbf
1439: [22:42:42] <antmas> Ryan-Toast: can I just put those js files in framework/javascript?
1440: [22:42:45] <antmas> not using BP here
1441: [22:42:54] <antmas> of where is a better place for them?
1442: [22:43:06] <Ryan-Toast> antmas: mysite/js
1443: [22:43:10] <antmas> ah
1444: [22:43:13] <antmas> herpderp
1445: [22:43:17] <Ryan-Toast> don’t put anything in the framework folder :P
1446: [22:43:26] <antmas> yeah pretend I didn't say that
1447: [22:43:43] <Kingy> hahaha
1448: [22:43:45] <Ryan-Toast> It’s not even Monday, man.
1449: [22:43:52] <Kingy> it's only all in the logs and shit now
1450: [22:43:54] <antmas> Ryan-Toast: it's my Monday :P
1451: [22:44:01] <adrexia> it feels like monday :(
1452: [22:44:37] <Ryan-Toast> Stomach, ss23; guzzlefry, zippy - antmas: Ryan-Toast: can I just put those js files in framework/javascript?
1453: [22:44:48] <Ryan-Toast> look at this nooooob
1454: [22:44:55] <Ryan-Toast> :P
1455: [22:44:56] <Ryan-Toast> <3
1456: [22:45:08] <irogue_> just booked in to see a doctor
1457: [22:45:20] <Stomach> irogue_, you dying? :(
1458: [22:45:24] <zippy> antmas: na thats the core, if you want to get some js you need to require it in the left and main
1459: [22:45:45] <irogue_> Stomach: seems that way
1460: [22:45:54] <antmas> Ryan-Toast: shhhhhhHHHHH you
1461: [22:46:09] <ss23> hmmmmmmmmmm?
1462: [22:46:14] <guzzlefry> antmas: aren't you recovering from sickness?
1463: [22:46:15] <antmas> I *meant* mysite/js
1464: [22:46:22] <antmas> :P
1465: [22:46:23] <guzzlefry> thought I overheard something about that.
1466: [22:46:32] <Ryan-Toast> antmas: http://i.imgur.com/PcJQI.gif
1467: [22:46:36] <guzzlefry> anyway, use that as an excuse :P
1468: [22:46:44] <antmas> guzzlefry: my son is, not me though :/
1469: [22:46:59] <guzzlefry> ah
1470: [22:47:06] <antmas> Ryan-Toast: hahahaha perfect
1471: [22:47:07] <zippy> irogue: ebola?
1472: [22:47:07] <irogue_> Colin got pretty sick tho
1473: [22:47:17] <irogue_> zippy: am suspecting chest infection
1474: [22:47:23] <Kingy> I'm good
1475: [22:47:25] <Kingy> :)
1476: [22:47:28] <antmas> irogue_: I told him not to fart on your pillow
1477: [22:47:42] <irogue_> just guessing based on the fact I'm having difficulty breathing, and when I do, a bubbling sound comes from my chest like it's full of gunk
1478: [22:47:48] <Kingy> although I'm surprised I didn't catch anything in that shit hole we stayed at
1479: [22:48:02] <antmas> irogue_: bleghhh
1480: [22:48:16] <antmas> yeah I came out unscathed
1481: [22:48:33] <antmas> so it's not quite... GO TO SS WELLI
1482: [22:48:36] <antmas> GET RABIES
1483: [22:48:40] <irogue_> antmas: close tho
1484: [22:48:43] <Kingy> antmas: we're obviously made of stronger stuff
1485: [22:49:28] <irogue_> antmas: Janine's also off sick after her SS welly stint, and there was a decent flood of emails from SS welly people saying they're off sick this morning
1486: [22:49:39] <antmas> irogue_: hahah holy shit
1487: [22:49:57] <Kingy> ss23: you dodged a bullet
1488: [22:49:57] <antmas> weird
1489: [22:50:01] <antmas> now I feel bad
1490: [22:50:02] <antmas> :O
1491: [22:50:03] <irogue_> oh, and just like that, there's an email from ss23's boss tapping out for the day
1492: [22:50:25] <Kingy> hahaha
1493: [22:50:47] <zippy> sounds like perfect excuse for a sickie
1494: [22:51:22] <antmas> Ryan-Toast: anything special I need to do to use that field on a page?
1495: [22:51:22] <Kingy> eh the rest of my week should be pretty good
1496: [22:51:29] <Ryan-Toast> antmas: Narp
1497: [22:51:38] <antmas> hmmmmm
1498: [22:51:39] <Ryan-Toast> just call it like you would any other field
1499: [22:52:11] <Ryan-Toast> mysite/forms/ColorField.php
1500: [22:52:19] <zippy> any macbook retina uses that use it at a higher resolution then default?
1501: [22:52:21] <Ryan-Toast> is that where you put it?
1502: [22:52:31] <antmas> Ryan-Toast: yeah
1503: [22:52:42] <Ryan-Toast> did you dev/build and flush?
1504: [22:53:06] <antmas> Ryan-Toast: yeah, I think my template is playing with it
1505: [22:53:09] <Ryan-Toast> …oh there’s css too :P
1506: [22:53:31] <Ryan-Toast> https://github.com/Rhym/ss_boilerplate/blob/master/Boilerplate/css/colorpicker.css
1507: [22:54:07] <antmas> it's just the button wasn't firing
1508: [22:54:24] <Ryan-Toast> So a js issue?
1509: [22:54:31] <ss23> irogue_: "boss"
1510: [22:54:34] <ss23> bit rich :P
1511: [22:54:41] <antmas> Ryan-Toast: yeah, but mine :P
1512: [22:54:47] <Ryan-Toast> aAre you including the JS with Requirements?
1513: [22:54:51] <Ryan-Toast> ah, right :P
1514: [22:55:03] <antmas> Ryan-Toast: no I'm not, hence MY issue :P
1515: [22:55:09] <Ryan-Toast> :P
1516: [22:55:34] <irogue_> ss23: she's the one you have to apologise to when you're late, that makes her your boss :P
1517: [22:56:14] <irogue_> tho the whole structure at SS can be a tad confusing...
1518: [22:56:16] <ss23> ehhhhhhhh
1519: [22:56:22] <ss23> I would say that is more cj than katie
1520: [22:56:29] <ss23> unless I have a meeting with her or something :O
1521: [22:56:43] <irogue_> ss23: line manager vs functional manager :P
1522: [22:57:24] <irogue_> I can never tell who i'm meant to tell things to so I just always email both cj and david
1523: [22:57:31] <Kingy> mutiny?
1524: [22:57:38] <irogue_> let them figure it out between themselves :P
1525: [22:57:55] <Kingy> if I learnt anything from that history channel program last night
1526: [22:58:15] <Kingy> mutiny all the things
1527: [23:05:11] <antmas> Ryan-Toast: still not firing :|
1528: [23:05:29] <Ryan-Toast> antmas: console?
1529: [23:05:30] <antmas> required the css, the js files and inserted the field
1530: [23:05:35] <antmas> Ryan-Toast: nothing
1531: [23:05:40] <adrexia> line manager is your boss
1532: [23:05:59] <adrexia> functional manager is just the person who needs to know where you are
1533: [23:06:12] <Ryan-Toast> antmas: Where are you including your js?
1534: [23:06:20] <adrexia> it was less confusaing when they were just called "scrum masters"
1535: [23:06:23] <adrexia> :P
1536: [23:06:26] <antmas> Ryan-Toast: on the page I'm using it on
1537: [23:06:34] <spronk> scrum master
1538: [23:06:35] <spronk> lul
1539: [23:06:39] <spronk> drinking the cool-aid
1540: [23:06:47] <Ryan-Toast> including the picker before the init?
1541: [23:07:13] <antmas> Ryan-Toast: I have my init after the min
1542: [23:07:15] <antmas> hmmm
1543: [23:07:21] <adrexia> though really "boss" is an archaic term anyway
1544: [23:08:12] <Ryan-Toast> antmas: Hmm, in the init change boilerplate to your related class?
1545: [23:08:36] <antmas> Ryan-Toast: lemme try that
1546: [23:09:19] <irogue_> adrexia: more like line manager is your boss on paper, functional manager is your boss in practice :P
1547: [23:09:51] <ss23> irogue_: that's probably more of a team dynamic thing
1548: [23:09:59] <ss23> because it's not like katie tells me what to do unless I ask
1549: [23:10:11] <irogue_> ss23: yeah I guess it's different when you're not a dev team
1550: [23:10:19] <ss23> Well even in a dev team, it's the same
1551: [23:10:22] <ss23> if you're running scrum at least
1552: [23:10:27] <ss23> unless you consider "scrum master" to be "boss"
1553: [23:10:34] <ss23> which is a bit of a corruption of scrum at that point...
1554: [23:11:00] <antmas> Ryan-Toast: so you mean just change $.entwine('boilerplate', function($){ TO $.entwine('MyPage', function($){ ?
1555: [23:11:34] <irogue_> ss23: well I've worked under two 'scrum masters' so far and both have told me what to do on a daily basis :P
1556: [23:11:45] <spronk> thats kinda dumb
1557: [23:12:17] <spronk> having said that, probably >50% of "scrum" implementations aren't.
1558: [23:12:22] <irogue_> not that it worries me at all, just makes the line between functional and line manager pretty confusing
1559: [23:12:25] <antmas> Ryan-Toast: as that doesn't help
1560: [23:12:32] <Ryan-Toast> Shrug
1561: [23:12:45] <Ryan-Toast> antmas: Try doing a dataextension like I do
1562: [23:13:28] * travis-ci has joined #silverstripe
1563: [23:13:29] <travis-ci> [travis-ci] tractorcow/silverstripe-cms#2 (3.1 - acf376e : Damian Mooyman): The build is still failing.
1564: [23:13:29] <travis-ci> [travis-ci] Change view : https://github.com/tractorcow/silverstripe-cms/compare/4c379013fbde...acf376e2675b
1565: [23:13:29] <travis-ci> [travis-ci] Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/31663278
1566: [23:13:29] * travis-ci has left #silverstripe
1567: [23:14:31] <antmas> I don't the files are being included via requiremtns
1568: [23:14:32] <adrexia> irougue scrum masters are supposed to be equals though
1569: [23:14:51] <adrexia> which complicates matters if that is supposed to be true
1570: [23:15:08] <antmas> Ryan-Toast: I'm just using Requirements::javascript("mysite/javascript/colorpicker.min.js"); etc
1571: [23:15:13] <antmas> which should be ok?
1572: [23:15:35] <Kingy> antmas: that's what i've done and it works for me
1573: [23:15:36] <Ryan-Toast> antmas: Are you doing it in the CMS fields?
1574: [23:16:13] <adrexia> the entire scrum team are supposed to be equal - that's what makes scrum work. If that's not true, then your scrum is broken
1575: [23:16:22] <antmas> Ryan-Toast: what do you mean 'in the cms fields'?
1576: [23:16:45] <Ryan-Toast> antmas: are you including the js in the updateCMSFields,
1577: [23:17:10] <Ryan-Toast> not in the init()
1578: [23:17:12] <adrexia> hey, the redirector module is open source, right?
1579: [23:17:23] <antmas> Ryan-Toast: ah, I have it on my init(), I should move it
1580: [23:17:25] <Stomach> adrexia, yeah it is
1581: [23:17:31] <Ryan-Toast> antmas: yeah, that’s your issue
1582: [23:17:35] <irogue_> adrexia: yeah, I suspect that's the case. I think David comes from a traditional PM background rather than scrum, and really Hamish just shouldn't be a scrum master :P
1583: [23:17:36] <Stomach> if we're talking about the same one :D
1584: [23:17:37] * joelpittet quit ()
1585: [23:17:49] <adrexia> nvm found it https://github.com/silverstripe-labs/silverstripe-redirectedurls
1586: [23:18:14] <zippy> antmas: Should be in the config really
1587: [23:18:37] <Ryan-Toast> zippy: Orly?
1588: [23:19:05] <adrexia> yeah, I think there is also a conflict when the scrum master is also the project manager. They have directly competing interests
1589: [23:19:18] <zippy> Ryan-Toast http://doc.silverstripe.org/framework/en/howto/extend-cms-interface#include-custom-css-in-the-cms thats css, I think js is similar
1590: [23:19:24] <antmas> I don't have an updatecmsfields
1591: [23:19:31] <Ryan-Toast> Scrum masters should not be project managers
1592: [23:19:46] <adrexia> agree so much
1593: [23:19:47] <Ryan-Toast> antmas: the place where you add your fields
1594: [23:19:55] <antmas> oh so getcmsfields
1595: [23:20:00] <antmas> I can't computer today
1596: [23:20:07] <Ryan-Toast> That’s like making mice in charge of looking after your cheese
1597: [23:20:09] <zippy> Ryan-Toast: yea so use extra_requirements_javascript
1598: [23:20:38] <Ryan-Toast> zippy: Is that just more semantic, or are there more benifits to adding it in the config?
1599: [23:22:31] <pippy> Ryan-Toast: your boilerplate looks great
1600: [23:22:43] <Ryan-Toast> pippy: Thanks :)
1601: [23:22:56] <Ryan-Toast> pippy: I’m trying to make it less stylised.
1602: [23:23:06] <adrexia> hahaha "It should seamlessly migrate data from the current CMS to the new solution" <-- dreaming
1603: [23:23:37] <Ryan-Toast> adrexia: It should intergrate using our new puppies and unicorns module.
1604: [23:23:39] <antmas> Ryan-Toast: shot homie, all working no
1605: [23:23:41] <antmas> now*
1606: [23:23:41] <adrexia> anyone ever had a seamless content migration?
1607: [23:23:51] <antmas> adrexia: what's that?
1608: [23:24:08] <adrexia> yeah, my feeling exactly. Perhaps I'm just jaded
1609: [23:24:25] <antmas> our last content migration resulted in us having to 'run a script' in order to fix over 100,000 broken links
1610: [23:24:32] <antmas> so yeah, 'swimmingly*
1611: [23:24:34] <Ryan-Toast> adrexia: I have, it was called the hire-a-grad-for-a-week method
1612: [23:24:44] <adrexia> I'm had to do it by hand before. Never again
1613: [23:24:45] * Colin[pi] has joined #silverstripe
1614: [23:24:52] <Ryan-Toast> gert to copy & pasting there, little Jonny.
1615: [23:25:02] <irogue_> HELLO Colin[pi]
1616: [23:25:10] <irogue_> guess you're still alive then
1617: [23:25:21] <antmas> Colin[pi]: :O
1618: [23:25:25] <Ryan-Toast> It’s actually his GF logging in to inform us of his death./
1619: [23:25:26] <madmatt> I've had pretty smooth content migrations before
1620: [23:25:41] <madmatt> There can never be too much preparation
1621: [23:26:02] <zippy> Ryan-Toast: Colin didn't fly Mylasian airlines back to Oz did he?
1622: [23:26:27] <antmas> yeah so this channel just got all kinds of dark
1623: [23:26:33] <irogue_> maybe it was qantas and an engine fell off
1624: [23:26:43] <Ryan-Toast> zippy: too soon
1625: [23:26:46] <Ryan-Toast> :P
1626: [23:31:43] * travis-ci has joined #silverstripe
1627: [23:31:43] <travis-ci> [travis-ci] tractorcow/silverstripe-cms#3 (merge30into31 - f2729dc : Damian Mooyman): The build failed.
1628: [23:31:43] <travis-ci> [travis-ci] Change view : https://github.com/tractorcow/silverstripe-cms/compare/24fec3aeb769^...f2729dce93b3
1629: [23:31:43] <travis-ci> [travis-ci] Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/31664508
1630: [23:31:43] * travis-ci has left #silverstripe
1631: [23:33:58] <adrexia> madmatt: True. I suspect people jsut constantly underestimate how much work is involved
1632: [23:34:03] <Colin[pi]> HAI GUISE
1633: [23:34:17] <antmas> Colin[pi]: HAI
1634: [23:34:25] <Colin[pi]> I flew Air NZ :P
1635: [23:34:30] <antmas> Colin[pi]: the t-shirt fits!
1636: [23:34:33] <Colin[pi]> you gonna bad mouth Air NZ? :P
1637: [23:34:38] <Colin[pi]> antmas: oh sweet!
1638: [23:36:19] <Colin[pi]> antmas: I had 92 emails waiting for me yesty
1639: [23:36:47] <irogue_> Colin[pi]: nah, I think Singapore, AirNZ and Emirates are the ones I'd consider 'the best'
1640: [23:37:10] <Kingy> we flew with AirNZ on our last leg back from europe
1641: [23:37:14] <Kingy> fuck it was amazing lol
1642: [23:37:30] <Kingy> Lufthansa isn't great
1643: [23:37:37] <irogue_> nah, lufthansa are pretty basic
1644: [23:37:56] <Kingy> Cathay Pacific were pretty good, probably had the most leg room of any flight we took
1645: [23:37:56] <irogue_> safe, but basic, and the food's pretty shit
1646: [23:38:07] <irogue_> yeah, Cathay probably belong in that top tier too
1647: [23:38:20] <irogue_> worst I've ever flown was United, far worse than Jetstar
1648: [23:39:54] <ss23> I've only done virgin blue/jetstar and AirNZ
1649: [23:39:54] <ss23> :O
1650: [23:40:03] <antmas> Emeriates are pretty slick
1651: [23:40:04] <ss23> jetstar 4 lyfe
1652: [23:40:09] <antmas> Colin[pi]: I got 86
1653: [23:40:18] <Olliepop> Yep same here, United sucks
1654: [23:40:21] <Colin[pi]> I win!
1655: [23:40:35] <Colin[pi]> Olliepop: oh god, I went United to the US once.... never again
1656: [23:41:08] <madmatt> I'll always have a soft spot for Air Canada, I asked if I could pay to access their first class lounge, and they let me in for free because Christmas (it was Dec 20)
1657: [23:41:16] <pippy> ss23: you're joking about jetstar right
1658: [23:41:20] <Colin[pi]> madmatt: d'awww
1659: [23:41:21] <irogue_> madmatt: how very canadian
1660: [23:41:32] <Olliepop> Colin[pi] fortunately I was only United from LA -> Honolulu. Hawaiian is great as well but Air NZ is always best
1661: [23:41:43] <antmas> yeah I ask for 1st class and business all the time and they usually let you have it if they have spare seats
1662: [23:41:52] <madmatt> Air NZ used to be way better than they are now IMHO, used to be about more than the safety videos anddividends
1663: [23:42:08] <ss23> pippy: naw man
1664: [23:42:10] <Colin[pi]> well dont get me started on Qantas
1665: [23:42:14] <irogue_> pippy: I've never had any issue with Jetstar tbh, I think the key with them is stick to the extremely popular routes where they aren't likely to cancel anything
1666: [23:42:20] <ss23> I've never had a bad experience on jetstar
1667: [23:42:25] <Colin[pi]> I reckon their impeccable safety record's days are numbered
1668: [23:42:38] <irogue_> Colin[pi]: that record is basically a coincidence
1669: [23:42:40] * vebb has joined #silverstripe
1670: [23:42:44] <irogue_> the number of bits they've had fall off planes
1671: [23:42:50] <Colin[pi]> irogue_: ikr?
1672: [23:42:52] <irogue_> they've just been extremely lucky
1673: [23:42:56] <ss23> mm, I've only done jetstar syd->auckland and auckland->wgtn
1674: [23:43:05] <ss23> I think I did hamilton->sydney once too
1675: [23:43:19] <Colin[pi]> irogue_: and now they're reducing costs left right and centre, cutting thousands of jobs, and outsourcing maintenance
1676: [23:43:24] <irogue_> jetstar never did hamilton <> sydney, that wouldve been virgin
1677: [23:43:25] <Colin[pi]> recipe for AWESOMENESS I'm sure
1678: [23:43:40] <Kingy> i'm flying virgin at xmas
1679: [23:43:58] <ss23> ah k irogue_
1680: [23:44:20] <irogue_> but yeah, no issue akl<>welly cos they fly it about 8x a day and every flight is full
1681: [23:44:41] <irogue_> and the main problem people have with jetstar is they cancel flights that aren't full enough for their liking
1682: [23:45:29] <vebb> they do that?
1683: [23:45:32] <vebb> wow
1684: [23:45:44] <Colin[pi]> vebb: yeah they do it all the time
1685: [23:45:45] <antmas> airnz does that too
1686: [23:45:50] <Colin[pi]> just economics
1687: [23:45:52] * Bollig|DesignCty has joined #silverstripe
1688: [23:45:53] <irogue_> pretty standard in the airline business
1689: [23:46:02] <irogue_> but jetstar being a budget airline and having less margin means they do it a lot more than others
1690: [23:46:17] <Colin[pi]> much much cheaper to push everyone onto a single full flight than two half empty ones
1691: [23:46:42] <antmas> mind you I have flown on a Q300 with 3 people on it
1692: [23:46:47] <antmas> with airnz
1693: [23:46:49] <madmatt> Not always. Also depends a lot on logistics - where planes are, and where they need to go
1694: [23:47:06] <Colin[pi]> antmas: read that as "I have flown a Q300", was like dafuq, you're a pilot too?
1695: [23:47:14] <antmas> Colin[pi]: lol :P
1696: [23:47:29] * antmas star coder and pilot
1697: [23:47:33] <Colin[pi]> lol
1698: [23:47:36] <antmas> come at me ladies!
1699: [23:47:53] <spronk> they should totally use widebodies on popular domestic flights
1700: [23:48:00] <Colin[pi]> antmas: yeah the first time i went to brazil, the plane stopped in sao paulo and then went to rio, but like 95% of people got off in SP
1701: [23:48:14] <Colin[pi]> antmas: so there was like four or five of us in this huge jet lol
1702: [23:48:17] <Colin[pi]> so weird
1703: [23:48:22] <spronk> PARTY TIME
1704: [23:48:29] <spronk> wolf of wall street styles yeah?
1705: [23:48:36] <Colin[pi]> aww yeahh
1706: [23:51:29] <antmas> can I wrap a simple textfield into a link tag on a template?
1707: [23:51:52] <antmas> as in say I want <a href="$MyTextField"></a>
1708: [23:52:07] <Colin[pi]> wat?
1709: [23:52:14] <Colin[pi]> you want a text field as an HREF?
1710: [23:52:40] <antmas> yeah, or if there is a better field to use...
1711: [23:53:15] <Colin[pi]> antmas: what do you need it to do?
1712: [23:53:17] <irogue_> spronk: problem is the only real viable route to do that on in NZ would be auckland <> wellington, and wellington's runway is tiny
1713: [23:53:22] <madmatt> Technically yes you can (I assume you are saying $MyTextField is a Varchar in the db?
1714: [23:53:38] <spronk> maybe
1715: [23:53:45] <spronk> i'd probably include chch in that too
1716: [23:53:47] <antmas> Colin[pi]: I need to allow people to simply enter a link using text and have that display as a link on a template
1717: [23:54:20] <Colin[pi]> oh OH
1718: [23:54:20] <spronk> out of the ...~50 times i've flown auck-chch i've only ever seen a plane not full maybe twice
1719: [23:54:21] <Colin[pi]> OH
1720: [23:54:29] <Colin[pi]> never mind I'm retarded
1721: [23:54:30] <irogue_> wellington can take 767s or A330s but in shitty weather they prefer to have more than just the minimum runway length
1722: [23:54:38] <irogue_> and wellington is always shitty weather
1723: [23:54:40] <antmas> Colin[pi]: :P
1724: [23:54:41] <Colin[pi]> I thought you wanted a field there, like input field lol
1725: [23:54:41] <spronk> yeah
1726: [23:54:51] <zippy> antmas: yes you can
1727: [23:54:54] <spronk> though, i hear landing a widebody is easier in those crazy winds than landing lighter planes
1728: [23:54:57] <antmas> Colin[pi]: oh lol naw
1729: [23:55:09] <Colin[pi]> antmas: yeah you can do that, there's a method on the db field to do the linky stuff
1730: [23:55:17] <Ryan-Toast> antmas: External, yes. Internal use a TreeDropdownField
1731: [23:55:43] <antmas> Ryan-Toast: If I want to link to something relative/in the sitetree?
1732: [23:55:57] <irogue_> spronk: how many flights are there a day between auckland <> christchurch
1733: [23:55:59] <Ryan-Toast> yeah, TreeDropdownfield
1734: [23:56:03] * spronk looks
1735: [23:56:10] <ss23> I want a hot chocolate
1736: [23:56:12] <ss23> I'm going to make one
1737: [23:56:13] <irogue_> cos yeah that could be viable option if there's enough flights close together to merge into one
1738: [23:56:14] <ss23> anyone want one?
1739: [23:56:19] <irogue_> ss23: yes plz
1740: [23:56:25] <ss23> fuck fuck fuck I forgot someone in IRC is actually in the office
1741: [23:56:28] <ss23> damit :(
1742: [23:56:32] <ss23> irogue_: okay I make it you come get it
1743: [23:56:35] <ss23> :D
1744: [23:56:36] <antmas> Ryan-Toast: nice, chur
1745: [23:56:38] <spronk> tbh i thikn the main reason is that the widebodies are usually longhaul design so not designed for lots of landings and takeoff stressses
1746: [23:56:40] <ss23> 2 LATE GOING TO MAKE IT NOW BBIAB
1747: [23:56:43] <irogue_> ss23: haha
1748: [23:56:46] <irogue_> i'm not in the office :P
1749: [23:56:46] <Olliepop> Anyone know what event is fired (javascript) when a new page in the CMS is loaded? (ajax)
1750: [23:56:51] <irogue_> madmatt is keen tho
1751: [23:56:57] <Ryan-Toast> TreeDropdownField(‘FieldName’, ‘Title’, ‘SiteTree’)
1752: [23:57:04] <Ryan-Toast> FieldNameID****
1753: [23:57:05] <irogue_> Ryan-Toast: WHOA SUCH ITALIC
1754: [23:57:22] <spronk> 12-16, irogue
1755: [23:57:24] <Colin[pi]> VERY OBLIQUE
1756: [23:57:25] <Colin[pi]> WOW
1757: [23:57:30] <irogue_> spronk: yeah, that too
1758: [23:57:33] <Ryan-Toast> The the db field is a has_one FieldName -> ‘SiteTree'
1759: [23:57:38] <Ryan-Toast> => **
1760: [23:57:40] <irogue_> spronk: and the A320 are real workhorses for that
1761: [23:57:47] <spronk> mm
1762: [23:58:01] <spronk> though, per passenger the 777s etc are meant to be more economical
1763: [23:58:16] <spronk> and do we reaaally need 16 flights per day? :/
1764: [23:58:18] <irogue_> airnz just retired their 777s in favor of A320s
1765: [23:58:27] <spronk> 777-200s though
1766: [23:58:37] <spronk> not the newer 773ERs
1767: [23:58:50] <spronk> wtf is a koru hour flight :/
1768: [23:58:52] <irogue_> apparently their choice came down to what you mentioned before
1769: [23:59:08] <spronk> ah
1770: [23:59:11] <irogue_> the A320 has a sturdier landing gear mechanism or something
1771: [23:59:19] <spronk> mm
1772: [23:59:20] <irogue_> so can handle buttloads of short flights with less maintenancfe
1773: [23:59:23] <spronk> that was the whole thing with the 747SP
1774: [23:59:31] <Ryan-Toast> “The Amazon logo. Not just a friendly smile - it's an arrow exclaiming that they have everything - 'From A to Z’.” - woah, man.
1775: [23:59:37] <spronk> smaller plane but more robust landing gear than the 744
1776: [23:59:40] <irogue_> yeah
1777: [23:59:52] <spronk> man they are cool looing planes though
1778: [23:59:56] * joelpittet has joined #silverstripe

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