#silverstripe IRC Log

IRC log for 20 June 2013

All timestamps are in UTC.

1: [00:00:06] <ss23> ty ^.^
2: [00:00:32] <ss23> then uh, in my CountdownWidget, I use...
3: [00:00:36] <ss23> renderWithTemplate or something?
4: [00:00:44] <ss23> and that will make it be inserted into where $CountdownTimer was?
5: [00:01:52] <simon_w> well, you return a string. Probably $this->owner->renderWith('Blah')
6: [00:02:49] <ss23> mmk, I will play with that stuff :D
7: [00:03:38] <Pyromanik> it's all 2ez ss23
8: [00:04:11] * SightUnseen has joined #silverstripe
9: [00:04:21] * SightUnseen has left #silverstripe
10: [00:07:41] <ss23> lol
11: [00:07:51] <ss23> Well it's not working how I want, but I'll deal with it when I get back from lunch
12: [00:07:59] <simon_w> I guess I should wonder down
13: [00:08:05] <ss23> yeah
14: [00:08:15] <ss23> txt me when you're here too if willr_ doesn't txt first
15: [00:08:29] <ss23> It's warm and dry in here, and I can't imagine the same can be said for outside, so I'll wait till the last second :D
16: [00:08:43] <simon_w> Well, it's dry outside :p
17: [00:09:10] <Pyromanik> wander
18: [00:11:15] <ss23> Pyromanik: no no, he's feeling philosphical, he wants to think about travelling south
19: [00:11:18] <ss23> :D
20: [00:12:10] <ss23> oh I got it working
21: [00:12:11] <ss23> Yay
22: [00:12:20] <ss23> And to think I quoted 4 hours for this
23: [00:12:31] <ss23> ha, sucker client... though really, 10% of the work takes 90% of the time, and I'm like 50% done.
24: [00:15:24] <ss23> noms bbl
25: [00:23:31] <Pyromanik> nice ss23, good to hear :)
26: [00:26:05] <spronk> winter is coming
27: [00:26:28] <MattSS_> question with fulltextsearch module (Solr) - do you index relations in the normal way, or is it not possible yet?
28: [00:26:37] * MattSS_ is now known as MattSS
29: [00:27:34] * MattSS quit (Changing host)
30: [00:27:35] * MattSS has joined #silverstripe
31: [00:27:36] * Jayden90 quit (Remote host closed the connection)
32: [00:29:20] * Bollig|DesignCty has joined #silverstripe
33: [00:29:29] * Jayden90 has joined #silverstripe
34: [00:34:42] <Pyromanik> oh good.
35: [00:34:53] <Pyromanik> I stood up to go get lunch
36: [00:35:09] <MattSS> It looks like I can do it via the SolrIndex sub-class: $this->addFilterField('HasOneObject.Field')
37: [00:35:12] <MattSS> so hopefully that means yes!
38: [00:35:20] <Pyromanik> and at that very moment some bird from the edge walked in holding three full trays of pita pits
39: [00:41:53] <spronk> :O
40: [00:42:04] <spronk> FUUUUU
41: [00:42:26] <AlphaCactus> summer is coming
42: [00:42:44] * mattybalaam has joined #silverstripe
43: [00:44:51] * mattybalaam quit (Client Quit)
44: [00:45:35] * spronk has left #silverstripe
45: [00:50:57] * spronk has joined #silverstripe
46: [00:51:30] <irogue> i smell like deep heat
47: [00:56:19] <ss23> back
48: [00:56:23] <ss23> I win the race back to the office o/
49: [00:59:59] <simon_w> I'd be surprised if you didn't :p
50: [01:00:03] <ss23> lol
51: [01:05:19] <ss23> dammit, it looks like I *did* spam a bunch of people
52: [01:05:50] <simon_w> Haha
53: [01:07:18] <ss23> solution: mv sendmail sendmail-backup && touch sendmail
54: [01:08:58] * spronk quit (Ping timeout: 256 seconds)
55: [01:10:18] <ss23> simon_w: As for having a module template and css etc, do I add require:css or w/e in my module init(), and use the template in the displayTheWidget() of my module, and that will work? Or add my css requirement only in my displayTheWidget so it's only there on those pages?
56: [01:10:41] <simon_w> Only add it when it's needed
57: [01:11:22] <ss23> for a module, themedCSS, or css?
58: [01:11:43] <ss23> I don't understand themedCSS
59: [01:11:43] * shakesoda quit (Changing host)
60: [01:11:44] * shakesoda has joined #silverstripe
61: [01:12:03] <simon_w> In 2.4, themedCSS
62: [01:12:09] <simon_w> In 3, ajshort kinda broke it
63: [01:12:20] * trent001 quit (Remote host closed the connection)
64: [01:12:25] <ss23> lol
65: [01:14:03] * trent001 has joined #silverstripe
66: [01:15:23] * trent001 quit (Remote host closed the connection)
67: [01:20:08] * trent001_ has joined #silverstripe
68: [01:23:24] * trent001_ quit (Read error: Connection reset by peer)
69: [01:28:03] <ss23> o.o
70: [01:28:12] <ss23> 'CountdownEventDate' => 'SS_DateTime'
71: [01:28:17] <ss23> $eventDate = $this->owner->CountdownEventDate->Date();
72: [01:28:24] <ss23> $this->owner->CountdownEventDate is a string
73: [01:28:31] <ss23> Why is it a string if the DB type is SS_DateTime?
74: [01:28:45] <simon_w> Because you haven't asked for the object
75: [01:28:51] <simon_w> ->obj('CountdownEventDate')
76: [01:28:55] <ss23> Hmm
77: [01:29:03] <ss23> Is this 2.4 specific, or am I just SS nooby?
78: [01:29:13] <simon_w> You're just SS nooby
79: [01:29:25] <ss23> :<
80: [01:30:17] * Colin[pi] has joined #silverstripe
81: [01:32:57] <EasyCo> Is it possible to have a function in your controller that fires on any Action?
82: [01:33:34] <simon_w> EasyCo, init()
83: [01:33:35] <EasyCo> never mind, I suppose I could use init and check $actionfrom there
84: [01:33:56] <EasyCo> :)
85: [01:44:15] * trent001 has joined #silverstripe
86: [01:45:48] * trent001 quit (Remote host closed the connection)
87: [01:47:12] * trent001 has joined #silverstripe
88: [01:49:02] * trent001_ has joined #silverstripe
89: [01:51:34] * trent001 quit (Ping timeout: 246 seconds)
90: [01:53:19] * trent001_ quit (Ping timeout: 246 seconds)
91: [01:53:28] * trent001 has joined #silverstripe
92: [01:56:53] * priithansen quit (Quit: priithansen)
93: [01:58:00] <EasyCo> simon_w: That suggestion of overriding handleAction and handleRequest has been the single most useful thing I've been pointed to with SS. Cheers!
94: [02:05:25] <Colin[pi]> hey guys, I have a site using uploadify and the browse... button is now doing nothing.. can't see any headers to/from server, no response at all
95: [02:05:27] <Colin[pi]> any ideas?
96: [02:05:38] * nickmolhoek quit (Ping timeout: 256 seconds)
97: [02:10:08] <ss23> tfw no 2.4 built in way to get a unix timestamp from a SS_DateTime
98: [02:10:28] <Pyromanik> ss23: strtotime
99: [02:10:35] <ss23> or Format('u')
100: [02:10:51] <simon_w> Colin[pi], don't use uploadify :p
101: [02:10:56] <simon_w> ss23, it's U :p
102: [02:10:59] <supernovah> IS there a way to access the data structure from an dataObject in the dataObject class of another dataObject to copy it directly when the other is modified?
103: [02:11:01] <ss23> yeah
104: [02:11:03] <ss23> I typed U in my file
105: [02:11:06] <ss23> I just wanted to confuse Pyromanik
106: [02:11:07] <ss23> HA IT WORKED
107: [02:11:08] <ss23> .
108: [02:11:15] <supernovah> Especially in the case the column is enum('something')
109: [02:11:56] <Colin[pi]> gee thanks simon_W ;p
110: [02:13:48] <simon_w> supernovah, aha?
111: [02:13:58] <supernovah> hm?
112: [02:14:48] <simon_w> Bah, autocorrect
113: [02:14:52] <simon_w> wha?
114: [02:15:15] <supernovah> I want the same enum field on two dataobjects, but I want them to follow eachother if I change one
115: [02:16:11] <simon_w> So why not just have it on one with a getter on the other?
116: [02:20:51] * nickmolhoek has joined #silverstripe
117: [02:20:52] * nickmolhoek quit (Remote host closed the connection)
118: [02:21:06] * nickmolhoek has joined #silverstripe
119: [02:29:56] <supernovah> went for ...dbObject()->enumValues
120: [02:37:49] <supernovah> I have a function that is so simple, it checks for a logic 1 or 0 somewhere and returns true else false... but I'm receiving type null when I use the function
121: [02:38:59] <simon_w> Obviously not returning anything
122: [02:39:36] <supernovah> Lol sometimes man, I should study not do this... my error was $this->methodName;
123: [02:40:14] * spronk has joined #silverstripe
124: [02:42:30] <ss23> I hate timezones.
125: [02:43:08] <simon_w> ss23, UTC all the things!
126: [02:44:15] <spronk> tbh i would rather work in UTC
127: [02:44:21] <spronk> for normal life
128: [02:46:17] <Colin[pi]> I love it when people make a jQuery plugin that does exactly what I want for free :D
129: [02:47:17] <simon_w> Colin[pi], Build it yourself!
130: [02:47:26] <supernovah> ^
131: [02:47:28] <Colin[pi]> Make me
132: [02:47:31] <supernovah> I hate using other peoples code lol
133: [02:47:36] <ss23> I suspect that Javascript does not use proper Unix timestamps or something...
134: [02:47:46] <ss23> I generate a unix timestamp which is perfect, like, it converts to the right time
135: [02:47:47] <supernovah> No it does
136: [02:47:48] <Colin[pi]> Some of it is not too bad :P
137: [02:47:58] <supernovah> but the javascript version of each browser differs
138: [02:48:04] <supernovah> I think the time is standardised in wc3
139: [02:48:05] <ss23> then in JS I do new Date(timestamp_id_did - new Date());
140: [02:48:17] <ss23> And it thinks there's 4 days difference, despite there being 1 hour no days difference...
141: [02:48:23] <ss23> 6 days difference*
142: [02:48:30] <EasyCo> Dates in JS are also handled differently between browsers
143: [02:48:39] <EasyCo> Different ISO formats.
144: [02:48:46] <simon_w> ss23, different epoch
145: [02:48:52] <supernovah> wouldn't subtracting a new date give you a negative time though
146: [02:49:18] <supernovah> wow weather in auckland now
147: [02:49:36] <simon_w> ss23, also, doesn't new Date() take microseconds?
148: [02:49:50] <supernovah> empty Date just produces the current tme
149: [02:50:13] <ss23> supernovah: dateInTheFuture - currentDate == positive date difference with atributes of how far away it is
150: [02:50:39] <supernovah> True
151: [02:50:48] <irogue> weee, hail again
152: [02:50:50] <ss23> There's bigger issues though
153: [02:50:55] <supernovah> But who stores future dates very often...
154: [02:51:12] <ss23> wait were in the 6th month right?
155: [02:51:13] <ss23> June?
156: [02:51:14] <supernovah> I guess that's a dumb question
157: [02:51:16] <supernovah> Yes
158: [02:51:22] <ss23> new Date().getMonth();
159: [02:51:23] <ss23> 5
160: [02:51:23] <supernovah> ss23 check you have the date/day order right
161: [02:51:25] <ss23> what.
162: [02:51:26] <simon_w> ss23, yup
163: [02:51:31] <simon_w> that's June
164: [02:51:47] <ss23> 5th month is May though right?
165: [02:51:52] <ss23> Javascript is telling me we're in May?
166: [02:51:54] <simon_w> Not if you start at 9
167: [02:51:56] <simon_w> at 0
168: [02:52:04] <ss23> ..
169: [02:52:08] <ss23> Does Javascript start at 0?
170: [02:52:12] <simon_w> But setting is 1 based!
171: [02:52:16] <supernovah> read the wc3 standard
172: [02:52:20] <ss23> >.<
173: [02:52:28] <ss23> Next i'll be reading the floating point standard
174: [02:53:05] <supernovah> "getMonth() Returns the month (from 0-11)"
175: [02:53:09] <Pyromanik> guys
176: [02:53:12] <supernovah> Tutorial here http://www.w3schools.com/jsref/jsref_obj_date.asp
177: [02:53:15] <ss23> lol
178: [02:53:20] <Pyromanik> what does it mean if a user keeps getting the CRSF sec token error?
179: [02:53:23] <ss23> mdn has better docs normally, just FYI
180: [02:53:32] <supernovah> Pyro, that the form is being acccessed directly
181: [02:53:32] <Pyromanik> irogue: did you see the links I posted earlier?
182: [02:53:33] <irogue> when even w3schools has the right answer, you know you didn't look very hard
183: [02:53:37] <ss23> Pyromanik: Dodgy browser sometimes, weird code causing bad things
184: [02:53:42] <Pyromanik> supernovah: nope
185: [02:53:46] <ss23> irogue: I didn't look hard. How do you know to look for things you don't know about?
186: [02:53:59] <ss23> I didn't look for if Javascript secretly is using base 5 for dates either
187: [02:54:03] <Pyromanik> supernovah: they're filling the form out but then getting the error
188: [02:54:05] <Pyromanik> apparently
189: [02:54:05] <supernovah> try $formObj->disableSecurityToken();
190: [02:54:22] <supernovah> Could be being produced after processing incorrectly, in a way that calls it directly
191: [02:54:37] <Pyromanik> supernovah: google everything web with sufficx " mdn"
192: [02:54:44] <Pyromanik> get better results.
193: [02:54:47] <supernovah> Or that they're accessing the action URL and it's not set up correctly
194: [02:54:48] <irogue> Pyromanik: nope?
195: [02:55:08] <Pyromanik> supernovah: no, I don't want to disable the token. I want to know why this one derp about of the many accessing the system keeps getting the issue
196: [02:55:32] <supernovah> Oh I really shouldnt have suggested to disable it lol
197: [02:55:42] <simon_w> Pyromanik, most likely, session issues
198: [02:55:46] <Pyromanik> irogue: http://logs.simon.geek.nz/index.php?date=2013-06-20#10_55
199: [02:55:59] <Pyromanik> simon_w: yeah, it's what I figure. but what cause / how replicate?
200: [02:56:11] <Pyromanik> IE8
201: [02:56:14] <Pyromanik> 2.4
202: [02:56:28] <simon_w> Doing anything weird? Like frames?
203: [02:57:11] <Pyromanik> simon_w: nope
204: [02:57:29] <ss23> new Date(new Date() - new Date()).getHours();
205: [02:57:30] <ss23> idek.
206: [02:57:49] <Pyromanik> lolwut
207: [02:57:57] <ss23> new Date(new Date() - new Date()).getHours();
208: [02:57:58] <ss23> 12
209: [02:57:59] <ss23> I mean that.
210: [02:58:07] <ss23> there is 12 hours difference between now and now.
211: [02:58:12] <ss23> Or something
212: [02:58:14] <ss23> fuck dates in JAvascript
213: [02:58:25] <ss23> p sure they were like "hey what does everyone expect us to do?"
214: [02:58:28] <ss23> "NOW LETS DO THE OPPOSITe"
215: [02:59:04] <simon_w> ss23, uh, that's right. You're getting a NZT timestamp, so is 12:00:00 for 0
216: [02:59:12] <supernovah> Pyro do you have any ie8 software to examine your cookies and the form itself without going view source
217: [02:59:19] <supernovah> Like a hotlinked firebug for IE?
218: [02:59:25] <supernovah> hyperlink*
219: [02:59:40] <ss23> Oh I see how it works :
220: [02:59:41] <ss23> :/
221: [03:00:22] <ss23> Okay well you guys know what I'm doing. I have a unix timestamp. I want to know the number of days, hours, mins, seconds, between then and now.
222: [03:01:07] <simon_w> ss23, what PHP version?
223: [03:01:13] <kerosene> you want a dateinterval obj or something
224: [03:01:16] <ss23> uhhh... irrelevant?
225: [03:01:20] <simon_w> Nope
226: [03:01:20] <ss23> I wanna do it in JS
227: [03:01:23] <supernovah> lolss23, giving Date(0) will give you unix 0
228: [03:01:24] <simon_w> Ahahahahahaha
229: [03:01:29] <supernovah> which was at 1pm
230: [03:01:30] <supernovah> hence 12
231: [03:01:55] <irogue> Pyromanik: lol yeah, i'd stumbled across some stuff like that, though not quite as bad
232: [03:02:10] <simon_w> supernovah, get seconds difference, do integer division/modulo
233: [03:02:11] <irogue> tis why i was kinda curious to see what happened, and signed up :P
234: [03:02:14] <simon_w> ss23, ^
235: [03:02:26] <ss23> http://ditio.net/2010/05/02/javascript-date-difference-calculation/
236: [03:02:34] <ss23> fml
237: [03:02:42] <spronk> totally thought taht was dildo.net
238: [03:02:45] <ss23> lol
239: [03:02:46] <Pyromanik> supernovah: nope
240: [03:02:52] <Pyromanik> breat time though
241: [03:03:01] <spronk> oh god
242: [03:03:03] <ss23> idek why not something built in
243: [03:03:05] <spronk> that is terrible date calculation
244: [03:03:06] <ss23> srsly fuck JS so much
245: [03:03:09] <EasyCo> NO TONY NOOOOO
246: [03:03:15] <supernovah> You should be able to check cookies in IE through windows and the firebug IE link I can give you too
247: [03:03:16] <ss23> haha
248: [03:03:25] <supernovah> JS is easy man
249: [03:03:45] <spronk> js comes close to brainfuck levels of difficulty
250: [03:03:46] <simon_w> supernovah, shouldn't be able to check session cookies through firebug lite
251: [03:03:53] <supernovah> I dont mean to do that
252: [03:04:01] <supernovah> But to check the form without going view source
253: [03:04:04] <ss23> It's not complex, which could be 'easy', but that doesn't make it not stupid and retarded
254: [03:04:14] <supernovah> Because that often generates a second http request which SS doesn't like
255: [03:04:24] <simon_w> IE developer tools
256: [03:04:31] <simon_w> You know, those inbuilt things :p
257: [03:04:36] <spronk> ss23: i'm going to hope you don't need to know like... perceptible dates in there
258: [03:04:38] <supernovah> Oh IE8, I thought he was using something archaic, my mistake
259: [03:04:42] <spronk> i.e. leap days etc
260: [03:04:54] <ss23> well it's timestamps, so shouldn't matter I hope
261: [03:05:00] <spronk> god date calculation is absurd
262: [03:05:09] <supernovah> What are you trying to do ss23
263: [03:05:10] <spronk> if you have two dates with a leap day in between
264: [03:05:23] <spronk> how many "days" passed between them
265: [03:05:25] <ss23> You haven't been able to tell yet, supernovah/
266: [03:05:28] <ss23> read up?
267: [03:05:29] * spronk brainsplodes
268: [03:05:44] <supernovah> find the difference in time between two days
269: [03:05:46] <supernovah> dates*?
270: [03:05:54] <ss23> smething like that
271: [03:06:02] <supernovah> And your dates are currently in what format?
272: [03:06:07] <ss23> don't worry, spronk
273: [03:06:09] <ss23> supernovah*
274: [03:10:22] <supernovah> can you download offline editions of the API and Documentation?
275: [03:10:28] <supernovah> without a spider...
276: [03:10:42] <simon_w> supernovah, they're all in the framework/cms dirs
277: [03:10:50] <supernovah> ooh
278: [03:11:52] <supernovah> Well besides the raw files I mean, the nice html ones where it has ajax search and that
279: [03:12:21] <simon_w> https://github.com/silverstripe/api.silverstripe.org
280: [03:12:30] <simon_w> https://github.com/silverstripe/doc.silverstripe.org
281: [03:17:07] * DigNZ quit (Quit: DigNZ)
282: [03:18:27] <supernovah> ty
283: [03:19:45] <EasyCo> When you do $someObj->renderWidth('SomeTmpl'); The fatalist is accessible in the template with $Me. How do you 'name' it? So you can do $Vegetables instead of $Me
284: [03:19:52] <EasyCo> *renderWith
285: [03:19:59] <EasyCo> *datalist
286: [03:20:02] <EasyCo> Jesus
287: [03:20:11] <EasyCo> fatalist sounds to final.
288: [03:20:28] <simon_w> ->renderWith('Blah', array('Vegetables' => $list))
289: [03:20:57] <EasyCo> Thanks
290: [03:25:29] * Shrike_Finland has joined #silverstripe
291: [03:34:18] <Pyromanik> supernovah: how did your hacksaw moment go?
292: [03:34:27] <supernovah> Steel was too strong
293: [03:34:31] <supernovah> Barely scratched it
294: [03:34:44] <Pyromanik> lulz
295: [03:34:52] <supernovah> Need a carbide blade
296: [03:34:55] <Pyromanik> gastorch
297: [03:34:57] <Pyromanik> ftw
298: [03:35:02] <supernovah> Dont wanna damage the forks ><
299: [03:35:09] <Pyromanik> nothing quite like a gasaxe
300: [03:35:21] <Pyromanik> o.0
301: [03:35:24] <Pyromanik> why would you?
302: [03:35:25] * DigNZ has joined #silverstripe
303: [03:35:26] * DigNZ quit (Remote host closed the connection)
304: [03:35:40] * DigNZ has joined #silverstripe
305: [03:36:24] <supernovah> Carbide blade should be alright if I can get one
306: [03:38:20] <supernovah> Is there a way to show a form just for confirmation where they can't change the values (because they're stored by SS or in the session?)
307: [03:39:15] <ss23> like, you want a quick way to make entire form readonly/
308: [03:39:23] <supernovah> Yes
309: [03:39:33] <ss23> I don't know of anything built in personally
310: [03:39:52] <simon_w> $form->makeReadonly();
311: [03:40:10] <supernovah> Found that as you typed it
312: [03:41:46] * travis-ci has joined #silverstripe
313: [03:41:46] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#371 (3.1 - ba10d27 : Sean Harvey): The build passed.
314: [03:41:46] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/a4189a6744a2...ba10d270b3e1
315: [03:41:46] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8263677
316: [03:41:46] * travis-ci has left #silverstripe
317: [03:46:51] * Jayden90 quit (Quit: Jayden90)
318: [03:50:04] <spronk> goise
319: [03:50:14] <spronk> anyone know any way to clean up a development database?
320: [03:50:19] <spronk> i.e.
321: [03:50:33] <spronk> i've got a whole bunch of old orphaned records and old database entries with deleted page types
322: [03:50:51] <supernovah> Where can I find a list of properties available to page_controller
323: [03:50:58] <supernovah> spronk you mean you just want to delete them?
324: [03:51:08] <spronk> ya
325: [03:51:17] <spronk> i want nothing left in the database but what i can see in my sitetree
326: [03:51:42] <supernovah> open up your DB and go to the DB, DELETE FROM table WHERE dateField < SomeDate
327: [03:51:47] <spronk> hrm
328: [03:51:50] <supernovah> oh
329: [03:51:55] <spronk> i was hoping for something a little more automated than that
330: [03:52:03] <spronk> i.e. ... delete orphaned tables
331: [03:52:16] <supernovah> I don't know then
332: [03:53:00] <spronk> normally i would just start fresh with a new database
333: [03:53:12] <spronk> but pesky client in this case wants to see "progress" along dev
334: [03:55:44] * cloph_away has joined #silverstripe
335: [03:56:15] * cloph quit (Ping timeout: 256 seconds)
336: [03:57:12] <supernovah> I feel like writing a library for sublime and SS
337: [03:57:32] <willr_> isn't there already one?
338: [03:57:33] <supernovah> Theres one for templates
339: [03:58:11] <willr_> Sublime 3 is awesome with the IDE like autocomplete and picking up PHP symbols
340: [03:59:04] <supernovah> I mean to autocomplete and provide require parameter syntax etc
341: [03:59:08] <elgrodo> I used to work with a guy who coded XSLT in NotePad...
342: [03:59:38] <supernovah> ^_^ not as bad as VIM I guess
343: [04:00:21] <elgrodo> vim's ok when you get used to it. Several of the Catalyst guys used that for their main dev work. I'm happier with Sublime :)
344: [04:01:40] <supernovah> sublime is nice to look at yeah
345: [04:01:46] <supernovah> and I love ctrl+shift+p
346: [04:07:51] <simon_w> sublime is horrible to look at :p
347: [04:07:59] <simon_w> Is in no way a mac app
348: [04:11:37] <elgrodo> looks ok on Linux :-P
349: [04:11:38] <supernovah> Does $form->Fields() return hidden fields
350: [04:17:15] <EasyCo> Do you jus tneed to create an ErrorPage.ss to overwrite the default? assets/errorpage.html?
351: [04:26:42] <Pyromanik> are cms fields on extentions in 3.0 a race condition?
352: [04:26:52] <Pyromanik> (applied via _config.php) ?
353: [04:30:45] * Shrike_Finland quit (Quit: Leaving.)
354: [04:42:38] <simon_w> supernovah, it returns the FieldList containing all the fields
355: [04:43:00] <simon_w> EasyCo, ErrorPage.ss and Save+Publish the error pages
356: [04:43:13] <simon_w> Pyromanik, they're applied first in first served
357: [04:43:57] <spronk> sublime would be more awesome if it wasn't so damn expensive
358: [04:44:09] <EasyCo> simon_w: Thanks. What happens to the httpError('404', 'error message');
359: [04:44:15] <spronk> simon_w: i don't find sublime too ugly on mac o_O
360: [04:44:25] <EasyCo> Where do you catch the errormessage
361: [04:44:42] <simon_w> EasyCo, if it gets rendered, you don't get that message
362: [04:44:44] <EasyCo> Since the ErrorPage gets rendered statically
363: [04:48:03] <EasyCo> So if error-404.html doesn't render the message httpError message gets rendered?
364: [04:49:27] <simon_w> If you don't throw it from a ContentController subclass, you get the error message. Otherwise, you get the 404 page
365: [04:49:40] <supernovah> In a 2.4 template you can't use a logic <% if property == "string" %> or something like it?
366: [04:49:55] <ss23> Urgent ticket came in
367: [04:49:56] <ss23> DOUBLE RATES
368: [04:49:57] * ss23 works on it :D
369: [04:50:04] <EasyCo> simon_w: Ahhhhhhh!
370: [04:50:18] <simon_w> supernovah, you can
371: [04:50:42] <EasyCo> Gotcha. I'm throwing it from a CC subclass so I'm getting the 404 page. I follow now.
372: [04:55:28] <supernovah> How?
373: [04:56:45] * DigNZ quit (Quit: DigNZ)
374: [04:56:53] <supernovah> Because I have exactly it and it doesn't catch a matching string
375: [04:58:24] <simon_w> supernovah, <% if Title == 'My awesome title' %>
376: [04:59:49] <supernovah> That breaks it
377: [05:00:34] <simon_w> What's your line?
378: [05:00:36] <unsignedint> Beer! <3
379: [05:00:44] <supernovah> <% if confirmed == 'Bank Transfer' %>
380: [05:01:08] <supernovah> Parse error on the cache copy after flush though
381: [05:02:38] <supernovah> It seems to reject the block, I checked the cache and the if block with the quotes is left out of the cached template, so the next else starts up
382: [05:05:31] <supernovah> ssviewer is responsible right? I might just rewrite that area of it
383: [05:06:42] * nickmolhoek quit (Quit: nickmolhoek)
384: [05:09:03] * mobiusnz quit (Quit: Leaving.)
385: [05:18:48] <supernovah> Wow the structure of SSTemplateParser and SSViewer from 3.0 and 2.4 respectively is intense
386: [05:19:06] <supernovah> One is pure regex, one is pure whiles and dos
387: [05:19:53] <ss23> simon_w|air: Are you here?
388: [05:19:54] <ss23> :D
389: [05:20:42] <ss23> Anyone know where hte logic is for redirecting from an old pare URL to a new one?
390: [05:20:46] <ss23> page*
391: [05:21:12] <supernovah> in the framework? whats the version and method name...
392: [05:21:25] <simon_w> ss23, nope, simon_w|air's not here
393: [05:21:45] <EasyCo> ss23: Unlucky
394: [05:21:47] <ss23> simon_w: Do you know where the funciontality is? :<
395: [05:22:00] <ss23> I'm looking in Director etc for anything with 'version' and '404' around where I can find
396: [05:22:03] <ss23> idk where it is though
397: [05:22:04] <ss23> ;_;
398: [05:22:06] <ss23> I KNOW IT'S HERE
399: [05:22:18] <simon_w> ss23, ModelAsController::find_old_page(), called from ContentController::handleRequest() and ModelAsController::handleRequest()
400: [05:22:38] <ss23> :D
401: [05:22:42] <ss23> tyvm
402: [05:23:16] <supernovah> In phps regex, what's an asterix mean?
403: [05:23:28] <ss23> same as any regex
404: [05:23:32] <ss23> 0 or more of char
405: [05:23:37] <supernovah> Oh right
406: [05:24:42] <supernovah> Because the pattern it uses for the == compare has this ` *==? *"?([A-Za-z0-9_-]+)"? +%
407: [05:24:52] <supernovah> Which looks like it lazily checks for quote marks...
408: [05:25:19] <supernovah> ` *==? *"?([A-Za-z0-9_-]+)"? +%` sorry should enclose my backticks
409: [05:26:40] <supernovah> Oh I get its problem, can't have spaces in the string then
410: [05:26:46] <supernovah> Even though it's a 'parsed string'
411: [05:27:44] <simon_w> Ooh, that's some lovely weather there
412: [05:28:17] <irogue> "Looks like you're in the South Island"
413: [05:28:28] <ss23> simon_w: Okay, last question (I hope)
414: [05:28:29] <irogue> srsly, Pak N Save, don't try to do Geolocation in NZ
415: [05:28:44] <simon_w> irogue, you're with snap!
416: [05:28:54] <simon_w> (otherwise you'd be in Auckland)
417: [05:28:58] <irogue> exactly, lol
418: [05:28:59] <ss23> simon_w: I have a framework folder which is controlled with composser
419: [05:29:36] <ss23> I need to fork it to another repo and commit it there and make a change etc
420: [05:29:50] * Shrike_Finland has joined #silverstripe
421: [05:30:13] <ss23> how to be like...
422: [05:30:16] <simon_w> ss23, got a .git folder? Just add remotes
423: [05:30:23] <ss23> "yo, repo, I am about to change to to be somewhere else"
424: [05:30:25] <ss23> add remotes?
425: [05:30:40] <ss23> Then I need to change my composer.json to reference the new remote, right?
426: [05:30:42] <ss23> but how to do the first thingy?
427: [05:31:18] * Peavers quit (Ping timeout: 248 seconds)
428: [05:31:20] <simon_w> Nope
429: [05:31:34] <simon_w> git remote add my-repo git://blah.blah/framework.git
430: [05:31:40] * mobiusnz has joined #silverstripe
431: [05:31:57] <ss23> git ummmm
432: [05:31:58] <ss23> umm
433: [05:32:02] <ss23> so I cna't add it as origin
434: [05:32:09] <ss23> my-repo though... I want it to be like the new main repo for thi
435: [05:32:10] <ss23> this
436: [05:32:24] <ss23> So by default if you check out and do composer update, it'll install this fork of cms (not framework I realised)
437: [05:32:30] <ss23> so I do that still?
438: [05:32:41] <ss23> git remote add cms-hacky-404-stuff (url)
439: [05:32:43] <ss23> and that works?
440: [05:32:44] <simon_w> oh, right
441: [05:32:52] <simon_w> add a repository to your composer.json
442: [05:33:04] <ss23> The repostiory 404 hacky cms has nothing so far, it's blank
443: [05:33:17] <ss23> I need to populate it with the current content of my cms folder, which was pulled it via git/composser
444: [05:34:06] <ss23> What do you think, simon_w? How to do it? <3
445: [05:34:34] <simon_w> Add your new repo as a remote, git push to it
446: [05:35:06] <ss23> silverstripes-iMac:cms sshkardoon$ git push cms-fork master
447: [05:35:07] <ss23> error: src refspec master does not match any.
448: [05:35:52] * Colin[pi] quit (Ping timeout: 256 seconds)
449: [05:37:11] <ss23> simon_w: ;__;
450: [05:37:24] <simon_w> +master
451: [05:37:29] <simon_w> you need to make the branch
452: [05:37:37] <ss23> How does +master work?
453: [05:38:52] <ss23> simon_w: I don't understand. I already have a "master" in that git push?
454: [05:39:19] <simon_w> ss23, it tells git to create a branch called master in the remote repo and push the local master branch to it
455: [05:39:25] <ss23> What tells it?
456: [05:39:45] <ss23> I already did "git push cms-fork master", which I thought told it to push it and create a new branch called master. I don't know what "+master" is
457: [05:39:49] <ss23> :<
458: [05:40:55] <simon_w> the + says create the remote branch
459: [05:41:08] <simon_w> the error you got says the remote branch doesn't already exist
460: [05:41:18] <ss23> I still don't understand what you mean by +
461: [05:41:29] <simon_w> git push cms-fork +master
462: [05:41:34] <simon_w> look, there's a +
463: [05:41:38] <simon_w> in front of master
464: [05:41:48] <ss23> I tried that
465: [05:41:51] <ss23> :q
466: [05:41:53] <ss23> wrong window
467: [05:42:04] <ss23> silverstripes-iMac:cms sshkardoon$ git push cms-fork +master
468: [05:42:04] <ss23> error: src refspec master does not match any.
469: [05:42:06] <supernovah> Why does this pattern work but the second not [A-Za-z0-9_-] vs [A-Za-z0-9_-\s]
470: [05:42:17] <simon_w> ss23, do you have a local master branch?
471: [05:42:19] <ss23> fuck.
472: [05:42:24] <ss23> sorry, simon_w :<
473: [05:42:30] <ss23> I didn't realise this was checking out 3.1
474: [05:42:56] <simon_w> supernovah, hyphen needs to be at the end
475: [05:43:03] <supernovah> oh ok
476: [05:43:10] <supernovah> Is there a reason for that
477: [05:43:24] <ss23> Now I just get "remote hung up unexpectedly"... :/
478: [05:44:31] <simon_w> supernovah, otherwise it means a range
479: [05:44:57] <supernovah> Oh ofc
480: [05:45:16] <EasyCo> How do you filter a dataobject's many_many relationship?
481: [05:51:45] <supernovah> What interprets SS cached templates
482: [05:51:49] <supernovah> PHP itself?
483: [05:53:32] <ss23> Check the cache files I guess? Do they have PHP in them?
484: [05:53:38] <ss23> If so can only assume it's PHP that interpets it
485: [05:54:14] <ss23> dammit, so after lots of errors, now gitlab has stopped working as far as I can see.
486: [05:55:03] * willr_ quit (Quit: willr_)
487: [05:59:33] <simon_w> EasyCo, ->filter('RelationName.Field:ExactMatch', $blah)
488: [06:00:21] <EasyCo> simon_w: I've seen a few Google mentions of :ExactMatch. Is it in the docs anywhere?
489: [06:00:59] <simon_w> http://doc.silverstripe.org/framework/en/topics/datamodel#search-filter-modifiers
490: [06:01:00] <spronk> ugh
491: [06:01:02] <spronk> hate working with DI shit
492: [06:01:05] <spronk> no autocompletez :(
493: [06:01:14] <simon_w> doesn't mention ExactMatch, because I wrote the docs for 3.1 and it doesn't need them
494: [06:03:23] * Jayden90 has joined #silverstripe
495: [06:03:27] <simon_w> ss23, also, has your jacket arrived?
496: [06:03:31] <Jayden90> Hi guys, is there a way to get styleselect in the TinyMCE editor to manage styles specific to the current element type?
497: [06:03:43] <ss23> simon_w: Not sure, not at home. lemme check via tracking
498: [06:03:58] <simon_w> ss23, should've sent it to the office. Have fun getting home :p
499: [06:04:03] <Jayden90> I want users to have the ability to add a .button class to links from the editor.
500: [06:04:16] <simon_w> Jayden90, doubt it
501: [06:04:22] <ss23> lol
502: [06:04:26] <ss23> I'll be bussing, it's not too bad
503: [06:05:02] <Jayden90> simon_w: The alternative is to somehow add a new checkbox to the SS link dialog "display as button"
504: [06:05:05] <simon_w> I'm already seeing surface flooding down this end :p
505: [06:05:14] <ss23> Aw snap, and my shows have holes in them
506: [06:05:15] <ss23> :<
507: [06:05:18] <ss23> Luckily I live on a hill!
508: [06:05:28] <Jayden90> Not sure the best practice to extending that popup
509: [06:05:48] <Shrike_Finland> Hi, is there any social media module available for silverstripe shich supports server-side actions for Twitter?
510: [06:07:28] <simon_w> Jayden90, well, adding the button's easy. Getting the JS to play along, not so much
511: [06:07:38] * Liquide quit ()
512: [06:08:45] <supernovah> For some reason using ereg_replace (an extended POSIX regex) `"([A-Z\sa-z0-9_-])"` doesn't pick up `"Bank Transfer"` Can anyone see why that would be
513: [06:09:07] <supernovah> I just want the white-space to be picked up
514: [06:09:15] <supernovah> As well
515: [06:09:51] <Jayden90> simon_w: Is it best to stuff around editting the classes in place, or copy and paste it all into a new one just for that option
516: [06:10:25] <supernovah> apparently \s doesn't work in it... lol wtf
517: [06:10:30] <simon_w> supernovah, update!
518: [06:10:38] * trent001 quit (Remote host closed the connection)
519: [06:10:57] <simon_w> supernovah, \s is a PCRE group, not POSIX
520: [06:11:13] <supernovah> hmm
521: [06:11:23] <simon_w> hence the upgrade, then you've got PCRE
522: [06:11:45] <simon_w> Anyway, you want [[:blank:]]
523: [06:12:08] <supernovah> I see
524: [06:12:13] <supernovah> Can't believe that lol
525: [06:12:19] <supernovah> I think space is better than blank
526: [06:12:48] <simon_w> Just because you're not used to POSIX regexs :p
527: [06:13:13] <EasyCo> What's RelationName referring to? The 'Posts" in static $many_many = array( 'Posts' => 'Authors'); ?
528: [06:13:32] <simon_w> EasyCo, yes
529: [06:13:43] * EasyCo has left #silverstripe
530: [06:13:53] * EasyCo has joined #silverstripe
531: [06:15:48] <supernovah> How old is 2.4
532: [06:15:55] <simon_w> really
533: [06:15:58] <supernovah> And when was ereg_replace deprecated
534: [06:16:18] <simon_w> 5.3
535: [06:18:03] <simon_w> 2.4.0 was released 2010-05-05
536: [06:20:13] <supernovah> thx
537: [06:23:40] <simon_w> home time!
538: [06:23:46] <simon_w> ss23, you should walk home!
539: [06:24:51] <spronk> what's the weather like in welly atm?
540: [06:27:35] <ss23> simon_w: Not a *chance*
541: [06:27:36] <ss23> spronk: bad.
542: [06:27:45] <ss23> Okay so I haven't broekn the staging environment
543: [06:27:49] <ss23> I have broken composer though.
544: [06:28:01] <spronk> heh
545: [06:37:13] * mattybalaam has joined #silverstripe
546: [06:39:45] <ss23> oh god help it's windy
547: [06:39:48] <ss23> I think this building is going to fall over.
548: [06:47:57] * travis-ci has joined #silverstripe
549: [06:47:57] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#372 (3.0 - d1756a5 : Will Rossiter): The build passed.
550: [06:47:57] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/ac729067cdec...d1756a5a58f4
551: [06:47:57] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8266419
552: [06:47:57] * travis-ci has left #silverstripe
553: [06:49:00] * mattybalaam quit (Quit: mattybalaam)
554: [07:00:03] <EasyCo> This many_many filtering is killing me
555: [07:01:00] <Jayden90> simon_w: Got the option "Display as button?" fully working for links added via the silverstripe WYSIWYG link dialog
556: [07:01:23] <Jayden90> simon_w: You were right, it was not easy ;)
557: [07:02:21] <simon_w|air> ss23, eh, it hasn't yet
558: [07:02:36] <simon_w|air> Ooh, you're on the top floor. I haven't been there in a storm
559: [07:02:51] <EasyCo> simon_w|air: Should ->filter('RelationName.Field:ExactMatch', $blah) definitely work in3.0.5
560: [07:02:53] <EasyCo> ?
561: [07:02:59] <simon_w|air> EasyCo, yes
562: [07:03:41] <EasyCo> There's nothing between the FROM and LEFT JOIN
563: [07:03:51] <EasyCo> No table is listed
564: [07:04:13] <simon_w|air> Is there a many_many on that DO with that name?
565: [07:04:52] <simon_w|air> ss23, "Severe southerly gales in Wellington this evening and tomorrow morning, with gusts of 130km/h to 140km/h at times. Take care..^HG" :D
566: [07:05:25] <EasyCo> Could you rephrase that question please?
567: [07:05:42] <simon_w|air> Is there a many_many with RelationName on the DataObject you're trying to get?
568: [07:06:08] <EasyCo> Yes
569: [07:08:11] * chillu has joined #silverstripe
570: [07:08:42] * shakesoda quit (Ping timeout: 246 seconds)
571: [07:09:11] <ss23> simon_w|air: :<
572: [07:09:15] <ss23> simon_w|air: My jacket is at home.
573: [07:09:19] <simon_w|air> ss23, welcome to Wellington :)
574: [07:09:58] <simon_w|air> EasyCo, hang on, nothing between FROM and LEFT JOIN?
575: [07:10:10] <EasyCo> yep
576: [07:10:14] <EasyCo> Making a paste bin now :)
577: [07:10:47] * shakesoda has joined #silverstripe
578: [07:12:30] <simon_w|air> Ooooh, power surges!
579: [07:12:35] <ss23> ya
580: [07:12:36] <ss23> I got that
581: [07:12:38] <ss23> didn't PC die though
582: [07:12:41] <ss23> I would cry if it did...
583: [07:12:45] <ss23> I need to finish these tickets and emails.
584: [07:13:25] <ss23> oh god
585: [07:13:26] <ss23> bigger ones
586: [07:13:27] <ss23> om gomg osmagogm
587: [07:13:28] <simon_w|air> Hmm, these don't look good
588: [07:13:29] <ss23> plz
589: [07:13:32] <ss23> send now
590: [07:13:33] <ss23> before it dies
591: [07:13:38] <EasyCo> simon_w|air: http://pastebin.com/gPyY5DQ4
592: [07:13:44] <simon_w|air> And this multi box isn't surge protected...
593: [07:13:57] <spronk> power's been dodgy all day here in chch
594: [07:14:09] <spronk> i must recommend the Corsair HX620 PSU, however
595: [07:14:32] <spronk> it hasn't even kicked on the UPS, despite two of my other boxes needing to
596: [07:14:32] <simon_w|air> My old multi box was designed for building sites
597: [07:15:27] <spronk> apple need to hurrytf up and release haswell mbp13
598: [07:15:40] <simon_w|air> EasyCo, bug! Try giving PostPage some DB fields
599: [07:16:47] <EasyCo> It actually does. Have one field.
600: [07:17:25] <EasyCo> I just removed it from the paste bin for clarity
601: [07:20:52] <simon_w|air> EasyCo, can you do a ?showqueries=1 and pastie the SQL too?
602: [07:21:00] <EasyCo> Sure can
603: [07:21:33] <EasyCo> Just stepping through everything atm
604: [07:24:42] * travis-ci has joined #silverstripe
605: [07:24:43] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#373 (3.1 - cf12ccb : Will Rossiter): The build passed.
606: [07:24:43] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/ba10d270b3e1...cf12ccbd2c33
607: [07:24:43] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8267160
608: [07:24:43] * travis-ci has left #silverstripe
609: [07:27:04] * DigNZ has joined #silverstripe
610: [07:27:06] * DigNZ quit (Client Quit)
611: [07:37:19] * Jayden90 quit (Ping timeout: 264 seconds)
612: [07:45:15] <ss23> HOME TIME
613: [07:45:21] <ss23> dammit
614: [07:45:24] <ss23> I forgot my list of busses I can take home
615: [07:45:25] <ss23> :<
616: [07:45:31] <spronk> lolfail
617: [07:47:14] <ss23> boom, all listed up and ready to go, and a list of tickets to have done tomorrow, one of them "asap as soon as I get in"
618: [07:49:09] <simon_w|air> So, lunch time? :p
619: [07:49:18] <EasyCo> simone_w|air: http://pastebin.com/kD5kK9ZH
620: [07:49:24] <EasyCo> That's the "full" code
621: [07:49:48] <EasyCo> That's the debug: http://pastebin.com/e0ipGUMn
622: [07:51:00] <EasyCo> I just recreated the smallest/simplest possible scenario
623: [07:53:53] <simon_w|air> Ah, I think I know what's causing it. Hmm, how to fix...
624: [07:54:35] <EasyCo> I think I'll buy you a beer if you can!
625: [07:58:53] * mattybalaam has joined #silverstripe
626: [07:59:35] * kinglozzer has joined #silverstripe
627: [08:02:16] <simon_w|air> The problem's that the from of SiteTree_Live's being switched to a LEFT JOIN, without alias, since it's the base class of AuthorPage
628: [08:04:02] <EasyCo> I follow… I think. So it doesn't matter how far down the inheritance chain it is, if SiteTree_Live is the base it gets switched?
629: [08:04:13] <simon_w|air> yeah
630: [08:04:22] <simon_w|air> It should get aliased instead
631: [08:06:06] <EasyCo> So in effect, it wouldn't be a problem if it AuthorPage were a subclass of DataObject.
632: [08:06:24] <EasyCo> But I need them to be pages, so that's kind of out of the question.
633: [08:07:12] <simon_w|air> Bah, this is going to take another decent refactoring of the entire SearchFilter system
634: [08:07:28] <EasyCo> That bad is it...
635: [08:08:01] <EasyCo> Do you have a suggestion as an alternative way to do it? Should I just do the joins manually?
636: [08:09:47] <simon_w|air> PostPage::get()->leftJoin('PostPage_Authors', '"PostPage_Authors"."PostPageID" = "PostPage"."ID"')->leftJoin('AuthorPage', '"PostPage_Authors"."AuthorPageID" = "AuthorPage"."ID"')->where('"AuthorPage"."ID" = ' . 1)
637: [08:11:25] * spronk has left #silverstripe
638: [08:14:21] <EasyCo> simon_w|air: Thank you very much for your help
639: [08:15:13] <EasyCo> Btw, what file and general line area does the SearchFilter happen?
640: [08:16:05] * spronk has joined #silverstripe
641: [08:17:47] <simon_w|air> DataList->filter(), SearchFilter subclasses->apply(), DataQuery->addRelation
642: [08:18:29] <EasyCo> Sweet, gonna have a look and a learn.
643: [08:18:43] <EasyCo> Alright, I'm off home. The beer is going to be sooo good.
644: [08:19:02] * EasyCo has left #silverstripe
645: [08:19:10] * EasyCo has joined #silverstripe
646: [08:26:07] <ss23> simon_w|air: :<
647: [08:26:15] <ss23> simon_w|air: Lucky, bus was detoured, not before my stop
648: [08:27:35] * lobarvaz has joined #silverstripe
649: [08:29:45] * mattybalaam quit (Quit: mattybalaam)
650: [08:30:02] * EasyCo quit (Quit: EasyCo)
651: [08:30:28] * Shrike_Finland quit (Quit: Leaving.)
652: [08:33:44] * mattybalaam has joined #silverstripe
653: [08:36:21] * Colin[pi] has joined #silverstripe
654: [08:43:27] * mattybalaam quit (Quit: mattybalaam)
655: [08:46:11] * mattybalaam has joined #silverstripe
656: [08:48:41] * mobiusnz quit (Quit: Leaving.)
657: [08:56:32] * Pyromanik__ has joined #silverstripe
658: [08:56:43] <Pyromanik__> good evening #silverstripe
659: [08:57:03] <ss23> https://twitter.com/OriesNews/status/347630489273778177 how 2 fix
660: [08:57:04] * ss23 dies
661: [08:58:07] <simon_w|air> Woo, no HVDC! Huntly starting up to help counter
662: [08:58:15] <ss23> What does HVDC mean?
663: [08:58:24] <simon_w|air> High Voltage Direct Current
664: [08:58:27] <Pyromanik__> Humanistic Very Dull Corporation
665: [08:58:33] <ss23> lol
666: [08:58:35] <simon_w|air> giant power cable between N and S islands
667: [08:59:14] <simon_w|air> North island MWh price nearing $500
668: [08:59:36] <Pyromanik__> help counter what simon_w?
669: [08:59:44] <Pyromanik__> electricity shortfall?
670: [09:00:11] <simon_w|air> Pyromanik__, something like suddenly no power from those hydro damns coming up?
671: [09:00:27] <Pyromanik__> oh that happens like very year.
672: [09:00:41] <simon_w|air> Not from draught :p
673: [09:01:02] <Pyromanik__> yeah but... well yes actually
674: [09:01:14] <Pyromanik__> although normally they blame it on the north island folk pinching all the jiggawatts
675: [09:02:41] <Pyromanik__> although, I'm fine with candles and rum. It's you NI sissies that whinge about the cold all the time.
676: [09:03:26] <Pyromanik__> It's blowing an antarctic southerly and raining. Heating is insufficient. What do? RUM!
677: [09:04:09] <simon_w|air> It's us NIs that just how the price of power increase by two orders of magnitude :p
678: [09:04:54] <Pyromanik__> just how what
679: [09:05:02] <simon_w|air> just had
680: [09:05:19] <Pyromanik__> yeah well you deserve it!
681: [09:05:21] <Pyromanik__> :P
682: [09:05:43] <simon_w|air> Wait until your lakes run dry again! :p
683: [09:05:46] <Pyromanik__> sif
684: [09:05:48] <Pyromanik__> although
685: [09:05:54] <Pyromanik__> I am quite fond of those lakes
686: [09:06:06] <simon_w|air> Haven't heard of it happening for a rather long time
687: [09:06:06] <Pyromanik__> they don't run dry, they just don't enough water to electricity.
688: [09:06:24] <Pyromanik__> I don't remember it happening the entire life of me.
689: [09:06:38] <Pyromanik__> which is more than the life of you, but then again maybe I just didn't care.
690: [09:06:53] <ss23> I got my jacket
691: [09:06:53] <ss23> :D
692: [09:07:02] <Pyromanik__> I have an antarctic jacket
693: [09:07:08] <Pyromanik__> maybe I'll bring it to WDC
694: [09:07:12] <Pyromanik__> it'll be HIRRARIOUS
695: [09:07:18] <Pyromanik__> HIRRAIRUZ
696: [09:07:20] <simon_w|air> I've had it get rather close, but that hasn't happened recently either
697: [09:08:17] <simon_w|air> The whole "If it doesn't rain in the next couple of days, we're going to turn the damns off" sort of thing
698: [09:08:45] <ss23> simon_w|air~ wanna help me with a core change?
699: [09:08:50] <Pyromanik__> yeah, I remember empty threats like that at least twice
700: [09:09:04] <ss23> lol, threats?
701: [09:09:12] <ss23> Like they're going to force it to rain by calling the sky names?
702: [09:09:31] <simon_w|air> ss23, what did you break?
703: [09:10:21] <Pyromanik__> ss23: no, like "hey wellington if it doesn't rain, no water for anybody" - never happened.
704: [09:10:28] <ss23> haha simon_w|air, not me!
705: [09:10:45] <ss23> simon_w|air: You remember that redirect stuff I was asking about?
706: [09:10:47] <simon_w|air> Pyromanik__, we did start getting reserve water though. Tasted horrible
707: [09:10:56] <simon_w|air> ss23, yeah
708: [09:11:17] <ss23> simon_w|air: I want to factor out the default 404 handler behaviour of finding old pages (still on by default thouhg)
709: [09:11:34] <ss23> This site needs to register a module for redirects *before* that behaviour is invoked
710: [09:11:46] <ss23> sam suggested moving it out to something else, using the standard 404 API etc
711: [09:13:01] <Pyromanik__> simon_w: so it was from Hamilton?
712: [09:13:24] <simon_w|air> Pyromanik__, nope, from our lakes
713: [09:13:31] <Pyromanik__> lol
714: [09:13:38] <ss23> If it was the Hamilton lake, people would've died.
715: [09:13:40] <simon_w|air> Normally comes from rivers
716: [09:13:46] <Pyromanik__> all that 'horrible' is the lack of bleach.
717: [09:14:38] <ss23> lol
718: [09:14:45] <simon_w|air> And there goes the next spot price change
719: [09:14:49] <Pyromanik__> green is good for you, didn't you know?
720: [09:14:54] <Pyromanik__> also
721: [09:14:56] <Pyromanik__> omg
722: [09:14:58] <simon_w|air> SI down to 4/5c per MWh
723: [09:14:58] <Pyromanik__> RUM
724: [09:14:59] <ss23> Pyromanik__: Come to Hamilton, drink the bleach free Waikato River.
725: [09:15:20] <Pyromanik__> ss23: been there, done that. PS, it's not "come" if you're not IN.
726: [09:15:22] <simon_w|air> and destroy your teeth in the process!
727: [09:15:33] <ss23> Pyromanik__: You're in Hamilton?!
728: [09:15:41] <ss23> simon_w|air: >.< fuck that flouride change.. idek
729: [09:15:49] <ss23> simon_w|air: Anyway, regarding my real SS stuff, wanna guide me?
730: [09:15:58] <Pyromanik__> simon_w: ss23: waikato draft - we bottled slightly downstream from where some drunk student pissed in.
731: [09:15:59] <simon_w|air> So, you're going to have fun
732: [09:15:59] <ss23> simon_w|air: It's not urgent, just thought I would do it for fun
733: [09:16:09] <ss23> lol Pyromanik__
734: [09:16:15] <Pyromanik__> ss23: no, YOU're not IN.
735: [09:16:23] <Pyromanik__> so you cannot say "COME to"
736: [09:16:43] <Pyromanik__> you are in Wellington, so you must say "GO to Hamilton"
737: [09:16:47] <ss23> Oh!
738: [09:16:48] <ss23> I see, Pyromanik__
739: [09:16:59] <ss23> Home is where your parents is.
740: [09:18:44] <ss23> simon_w|air: Could I have some *more* guidance on how to have this fun?
741: [09:18:53] <Pyromanik__> ss23: sif.
742: [09:19:12] <Pyromanik__> when using language, it's relative to the self.
743: [09:19:25] <ss23> lol
744: [09:19:33] <simon_w|air> ss23, uh, depends on what Sam means by the standard 404 API
745: [09:19:34] <Pyromanik__> ss23: haha, guts for you bro. GL avoiding default 404
746: [09:19:58] <Pyromanik__> ModelAsController::ControllerFor()
747: [09:20:00] <Pyromanik__> iirc
748: [09:20:22] <ss23> simon_w|air: I don't think he cares. Any restructuering that would allow you to snap in and out the old_page_whatever functinoality is good
749: [09:21:09] <simon_w|air> So, you basically want ModelAsController::find_old_page() to be changeable?
750: [09:21:28] <ss23> Not really changable, just disable it
751: [09:21:32] <ss23> he said "extension"
752: [09:21:59] <ss23> so I assume that means he wants to be able to be like foobar::unload('page old find);, and have it foobar::foo(page_old_foo);
753: [09:22:03] <ss23> by default have it enabled or w/e
754: [09:22:12] <Pyromanik__> so like a config switch on it?
755: [09:22:23] <Pyromanik__> CONFIG::inst
756: [09:22:31] <Pyromanik__> and all that, which I don't entirely understand yet
757: [09:22:36] <Pyromanik__> but kinda wish I did
758: [09:22:40] <ss23> lol
759: [09:22:49] <Pyromanik__> shit, out of rum, feet starting to chilll
760: [09:22:54] <ss23> Well, I don't want to like... add *another* config option
761: [09:23:02] <simon_w|air> Well, one way to do it would be to move that (and controller_for()) into a helper class, then use the Injector (through ClassName::create()) to create it. That way you can provide your own class that overrides one or both of the methods
762: [09:23:04] * g4b0_ has joined #silverstripe
763: [09:23:20] <Pyromanik__> What I want is to be all "hey dog, I got this class, alias the shit out of it and replace these vars with these ones and we're good"
764: [09:23:27] <g4b0_> hi all
765: [09:23:32] <ss23> hi, g4b0_
766: [09:23:38] <Pyromanik__> then I can have Payment-Cheque to also be Payment-BankTransfer without issue.
767: [09:23:51] <Pyromanik__> issue being copying and pasting classes and renaming them.
768: [09:23:55] <Pyromanik__> hi g4b0_
769: [09:24:00] * travis-ci has joined #silverstripe
770: [09:24:00] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#374 (3.1 - da0cc25 : Ingo Schommer): The build passed.
771: [09:24:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/cf12ccbd2c33...da0cc25c3b5a
772: [09:24:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8269634
773: [09:24:00] * travis-ci has left #silverstripe
774: [09:24:04] <g4b0_> Is there a way to integrate SiverStripe with WordPress?
775: [09:24:10] <ss23> lol g4b0_
776: [09:24:16] <Pyromanik__> LOL
777: [09:24:20] <Pyromanik__> sif like how?
778: [09:24:46] <g4b0_> no idea :D
779: [09:24:47] <Pyromanik__> g4b0_: I will share with you the 100% best method I know for integrating wordpress.
780: [09:24:54] <Pyromanik__> because I'm a nice guy.
781: [09:25:03] <g4b0_> I will love you forever...
782: [09:25:05] <Pyromanik__> first off, you must have shell access.
783: [09:25:10] <Pyromanik__> because FTP is NOSIR
784: [09:25:26] <Pyromanik__> so then second you go and get the wordpress external content adapter
785: [09:25:29] <g4b0_> I usually rsync over ssh
786: [09:25:30] <Pyromanik__> from SS.au
787: [09:25:41] <Pyromanik__> and then second you log in via SSH
788: [09:25:47] <Pyromanik__> and execute the following commands
789: [09:25:58] <Pyromanik__> cd ~/www
790: [09:26:04] <Pyromanik__> (assuming that puts you in the wordpress dir)
791: [09:26:24] <Pyromanik__> and then rm -rf ./* && ./.*
792: [09:26:37] <Pyromanik__> and then rm -rf ./* && rm -rf ./.*
793: [09:26:39] <ss23> lol
794: [09:26:47] <g4b0_> why not an rm -rf / as root?
795: [09:26:55] * Judge has joined #silverstripe
796: [09:27:02] <Pyromanik__> g4b0_: because that would brick your server, duih
797: [09:27:09] <g4b0_> yep
798: [09:27:15] <g4b0_> I need holiday :D
799: [09:27:58] <Pyromanik__> g4b0_: so then you do cd .. && rmdir www && composer create-project silverstripe/installer . 3.0.5
800: [09:28:22] <Judge> Hi everyone. I face a problem with mysql lower_case_file_system when migrating a SS Site from one host to another. Unfortunately, the destination host cannot be changed in my.cnf . Do you guys know a way to solve this with some kind of DB Init - Option in SS or such?
801: [09:28:23] <Pyromanik__> and then you composer require silverstripe/thosemodulesItoldyouabout
802: [09:28:33] <Pyromanik__> and boom, convert the wordderp to silverstripe.
803: [09:28:38] <Judge> I guess converting the dump won't be that easy, is it?
804: [09:28:41] <simon_w|air> I should probably plug my phone in now in case I lose power
805: [09:28:58] <simon_w|air> Judge, dev/build should fix it
806: [09:29:10] <simon_w|air> And you only need to change the setting if running on windows
807: [09:29:14] <Pyromanik__> simon_w: sif power
808: [09:29:22] <g4b0_> Pyromanik__: I do have a silverstripe with blog module installed
809: [09:29:36] <g4b0_> but my customer doesn't like it :(
810: [09:29:37] <Pyromanik__> g4b0_: yeah but SS blog is kinda... yeah.
811: [09:30:01] <g4b0_> he's using wordpress for other bloks
812: [09:30:04] <g4b0_> blogs
813: [09:30:04] <Judge> simon_w|air: Sorry, I do not know what that means
814: [09:30:11] <Judge> I'm totally new to SS
815: [09:30:15] <simon_w|air> Judge, run dev/build
816: [09:30:15] <g4b0_> and he want WP
817: [09:30:25] <simon_w|air> g4b0_, tell him no
818: [09:30:31] <g4b0_> I can't
819: [09:30:34] <simon_w|air> Yes you can
820: [09:30:40] <g4b0_> I can
821: [09:30:48] <g4b0_> but my boss can't :)
822: [09:31:00] <g4b0_> and I can't say no to my boss :)
823: [09:31:05] <g4b0_> it's a devil chain
824: [09:31:20] <simon_w|air> Seriously, what is it with web development and letting clients stomp all over you?
825: [09:32:14] <ss23> simon_w|air: Help, whats the standard redirect handler stuff so you can do a custom module that allows you to redirect if all else fails...
826: [09:32:17] <ss23> I can't think of the function
827: [09:32:31] <ss23> I need to bring my pubkey so I can SSH from home
828: [09:32:46] <simon_w|air> ss23, gitlab's IP blocked :p
829: [09:32:52] <simon_w|air> (or the CWP one is anyway)
830: [09:32:55] <Judge> simon_w|air : On the destination server?
831: [09:32:59] <simon_w|air> and which redirect?
832: [09:33:01] <simon_w|air> Judge, yeah
833: [09:33:05] <ss23> simon_w|air: on 404
834: [09:33:11] <Judge> simon_w|air : Thanks, I'm on my way
835: [09:33:12] <ss23> simon_w|air: I can SSH and bounce from there!
836: [09:33:14] <simon_w|air> 404 doesn't redirect
837: [09:33:32] <ss23> sam wrote a module to do it, a Redirect module...
838: [09:33:42] <simon_w|air> So look at that?
839: [09:33:48] <ss23> ;_;
840: [09:33:56] <ss23> I don't have access, and I can't think of my damn password... what was it...
841: [09:34:34] <ss23> Got it
842: [09:34:34] <ss23> :D
843: [09:34:38] <simon_w|air> ss23, though, onBeforeHTTPError404 on a RequestHandler, throw a SS_HTTPResponse_Exception that causes the redirect you want
844: [09:34:48] <ss23> yeah, that's how it is I think
845: [09:34:59] <ss23> I don't have my dev machine up to test, but I can look at the repo here I think
846: [09:35:00] <Judge> simon_w|air: with "build" you mean BuildTask.php ?
847: [09:35:12] <simon_w|air> Judge, yoursite.com/dev/build
848: [09:35:23] <Judge> Aaaaaaaaaah, in Browser ... OK!
849: [09:36:38] <Judge> simon_w|air: That redirects me to "/Security/login" and I get displayed "Website Error"
850: [09:36:40] <g4b0_> Pyromanik__: also Joomla has a Wordpress connector http://www.corephp.com/joomla-products/wordpress-for-joomla.html#.UcLMz3W6DDo
851: [09:36:41] <g4b0_> :)
852: [09:37:49] <simon_w|air> Judge, enable dev mode
853: [09:37:59] <simon_w|air> http://doc.silverstripe.org/framework/en/topics/debugging
854: [09:38:04] <Judge> simon_w|air: Thanks
855: [09:39:58] <ss23> g-g-g-gansta, ssh tunnel
856: [09:39:58] <ss23> o/
857: [09:40:19] <Judge> simon_w|air: That gives me a "[User Error] Couldn't run query: SHOW FULL FIELDS IN `CarcopyCacheRecord` Table 'db330922_18.CarcopyCacheRecord' doesn't exist"
858: [09:40:20] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
859: [09:40:43] <ss23> simon_w|air: class RedirectedURLHandler extends Extension { function onBeforeHTTPError404($request) {
860: [09:41:17] <ss23> simon_w|air: I could factor that old page behaviour into a literal like... FindOldPageRedirectHandler extends Excention, and just apply it by default, right?
861: [09:41:28] <simon_w|air> Yeah
862: [09:41:56] <simon_w|air> On both ModelAsController and ContentController
863: [09:42:24] <ss23> On both? As in, apply it to both?
864: [09:42:30] <simon_w|air> yeah
865: [09:42:37] <ss23> simon_w|air: Can you explain the difference for me please? I am confused about it
866: [09:43:07] <simon_w|air> ModelAsController handles the redirect for a root level page, ContentController for a subpage
867: [09:43:26] <ss23> And conceptually, why are they split up / different?
868: [09:44:05] <Pyromanik__> g4b0_: HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGHHH D:
869: [09:44:10] <Pyromanik__> THE J WORD!
870: [09:44:16] <Pyromanik__> D: D: D: D: D:
871: [09:44:21] <ss23> lol
872: [09:44:22] <Pyromanik__> D':
873: [09:44:27] <ss23> We had a talk about Wordpress and Joomla today.
874: [09:44:29] <simon_w|air> ss23, ModelAsController's what gets called if no other rule matches. ContentController handles passing off to child pages
875: [09:44:29] <ss23> Guess what we said :D
876: [09:44:39] <Pyromanik__> what did you say ss23?
877: [09:44:46] <g4b0_> :D
878: [09:45:03] <Judge> simon_w|air: I cannot find the line "Director::set_environment_type("dev");" which is mentioned in the link of yours, too. I'm kind of lost currently :(
879: [09:45:14] <g4b0_> https://github.com/ajshort/silverstripe-wordpressconnector
880: [09:45:41] <ss23> Pyromanik__: WE SAID THEY BOTH SUCK
881: [09:45:54] <ss23> Thoguh for joomla we just talked about how you pronounce it.
882: [09:46:10] <g4b0_> ahaha
883: [09:46:24] <g4b0_> We have a big miss today
884: [09:46:28] <g4b0_> Drupal
885: [09:46:30] <Pyromanik__> ss23: ModelAsController gets the first controller. Which is a Content Controller (because pages right). And then ContentController looks at it's action and goes "NUP THAT AIN'T MY MODEL BRO" and makes another ContentController with it's submodel and calls that
886: [09:46:31] <Pyromanik__> etc
887: [09:46:45] <Pyromanik__> until suddenly site/about-us/staff/enenstien
888: [09:46:54] <Judge> simon_w|air: Aaaaah, found it! IT's set by ENV Var in that setup ... But I switched it to dev and stay geting "[User Error] Couldn't run query: SHOW FULL FIELDS IN `CarcopyCacheRecord` Table 'db330922_18.CarcopyCacheRecord' doesn't exist".
889: [09:47:40] <ss23> Hmm, I think I understand, ty Pyromanik__
890: [09:48:13] * travis-ci has joined #silverstripe
891: [09:48:14] <travis-ci> [travis-ci] chillu/silverstripe-framework#15 (pulls/allowed_actions-deny - b8a0b29 : Ingo Schommer): The build failed.
892: [09:48:14] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/9f600ada2cbe^...b8a0b2942c67
893: [09:48:14] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8270504
894: [09:48:14] * travis-ci has left #silverstripe
895: [09:49:07] <Judge> simon_w|air: But the table db330922_18.carcopycacherecord does exist.
896: [09:49:10] <Pyromanik__> ss23: so like you have a bunch of controllers like "mySuperCoolController" and stuff
897: [09:49:14] <Pyromanik__> which do custom stuff
898: [09:49:20] <Pyromanik__> ie, Framework without CMS
899: [09:49:34] <Pyromanik__> and then CMS adds a catchall: ModelAsController
900: [09:49:43] <Pyromanik__> with a low priority.
901: [09:49:47] <simon_w|air> Judge, hmm, what version of SS are you running?
902: [09:50:12] <ss23> I think it's time to check out some source and have a look!
903: [09:50:37] <Pyromanik__> so it's responsible for finding the first page, then that controller (contentcontroller, which all page_controller's inherit from) is responsible for passing the request on in the case of SiteTree::enable_nested_pages()
904: [09:50:41] <Pyromanik__> or whatever that swtich is
905: [09:50:42] <ss23> simon_w|air: This jacket is pretty warm!
906: [09:50:47] <Judge> simon_w|air : in sapphire/silverstripe_version it reads "2.3.3"
907: [09:50:52] <ss23> simon_w|air: Do I need to wash it? Can I put it in a dryer?
908: [09:50:52] <simon_w|air> Oh
909: [09:50:58] <Pyromanik__> ss23: oh god lol
910: [09:50:59] <Pyromanik__> bl2u
911: [09:51:04] <simon_w|air> ss23, read the damn care label
912: [09:51:13] <ss23> okay
913: [09:51:15] * ss23 tries to find it
914: [09:51:30] <Pyromanik__> instant friends n' shit
915: [09:51:34] <ss23> It says do not tumbledry
916: [09:51:46] <ss23> can I do it anyway? cause I've had my jeans on the clothes horse for ~4 days
917: [09:51:49] <ss23> And they're still completely wet.
918: [09:51:54] <ss23> So idk how to dry it....
919: [09:51:54] <Pyromanik__> care labels are all "we are hipster and use symbols instead of words"
920: [09:52:00] <simon_w|air> ss23, a, jackets are designed to be wet
921: [09:52:02] <Pyromanik__> and I don't know what the symbols mean
922: [09:52:07] <simon_w|air> b, don't tumble dry it
923: [09:52:20] <Pyromanik__> c, on a washing line or dry-horse
924: [09:52:34] <simon_w|air> Judge, uh, any reason why you're running 2.3 site?
925: [09:52:35] <ss23> Pyromanik__: I just said, 4 days and my jeans are still just as wet as wehn they went on
926: [09:52:39] <ss23> idk how to dry things in Wellington..
927: [09:52:46] <simon_w|air> ss23, that's because they're jeans
928: [09:52:53] <Pyromanik__> ss23: with a heat source
929: [09:52:55] <ss23> jacket is like jeans
930: [09:53:00] <ss23> Pyromanik__: Wanna stand by my clothes?
931: [09:53:01] <ss23> OHHHHHH
932: [09:53:02] <ss23> HEYOOOOOO
933: [09:53:12] <Pyromanik__> stand?
934: [09:53:12] <simon_w|air> ss23, if inside of jacket is wet, doing it wrong!
935: [09:53:18] <simon_w|air> (You don't need to wash it before wearing)
936: [09:53:23] <ss23> kk
937: [09:53:29] <ss23> What if it gets food on it though?
938: [09:53:31] <ss23> I can do that I bet
939: [09:53:41] <Judge> simon_w|air: No idea. I didn't even know silverstripe before today. I'm an admin who got the task to migrate whatever I find on one customer server over to another.
940: [09:53:45] <simon_w|air> ss23, Little bit of water and rub
941: [09:53:49] <Judge> simon_w|air: This is what I found ;)
942: [09:54:07] <ss23> mmmk
943: [09:54:14] <ss23> lol
944: [09:54:15] <ss23> TYhis is all like
945: [09:54:19] <ss23> "GETS YOU AROUND THE SKI FIELD"
946: [09:54:24] <ss23> And I'm just going to wear in to the bus.
947: [09:54:27] <simon_w|air> Judge, well, for 2.3, you're either going to have to change the my.cnf, or rename the tables manually. Though that's rather difficult
948: [09:55:30] * travis-ci has joined #silverstripe
949: [09:55:30] <travis-ci> [travis-ci] chillu/silverstripe-framework#16 (pulls/allowed_actions-deny - f4f8e8d : Ingo Schommer): The build failed.
950: [09:55:30] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/b8a0b2942c67...f4f8e8d680ac
951: [09:55:30] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8270536
952: [09:55:30] * travis-ci has left #silverstripe
953: [09:55:35] <ss23> oh, the hood is enough to fit my headphones (And my headphones are large)
954: [09:56:12] <simon_w|air> https://pbs.twimg.com/media/BNMUpkUCMAEkb1z.jpg:large
955: [09:56:14] <Judge> simon_w|air: "Yaaaaay" ... ;) Many CMS I know support an option which on each DB init executes a command such as "SET xyz=abc;". Doesn't SS have something like that, too and couldn't I use that to set lower_case_file_system to 1?
956: [09:57:46] <Pyromanik__> Judge: just upgrade, much easier
957: [09:58:01] <simon_w|air> Judge, fairly sure you need root DB access to be able to set a global setting like that
958: [09:58:11] <Pyromanik__> and yeh
959: [09:58:25] <Pyromanik__> 'many' CMS's hack the shit out of things like that.
960: [09:58:37] <Pyromanik__> like that dirty j word
961: [09:58:38] <simon_w|air> also, can only be set on DB boot
962: [09:58:43] <Pyromanik__> FTP's MODULES TO ITSELF
963: [09:58:54] <Judge> simon_w|air: Just tried - you're right.
964: [09:59:16] <simon_w|air> "This variable is read only because it reflects a file system attribute and setting it would have no effect on the file system"
965: [09:59:18] <Pyromanik__> Judge: update from 2.3. to 2.4
966: [09:59:34] <Judge> Pyromanik__: Is that a task someone with my exxperience (zero) can successfully accomplish?
967: [09:59:39] <Pyromanik__> yes
968: [09:59:48] <simon_w|air> Judge, just do it on a test server first
969: [09:59:50] <Pyromanik__> unless something goes wrong, although that's reasonably unlikely
970: [09:59:59] <Pyromanik__> and yeh, backups and all that, of course.
971: [10:00:22] <Judge> Pyromanik__: So 2.4 is enough? Does that break anything? And if I accomplished that successfully, then do that de/build - thingie`
972: [10:00:23] <Judge> ?
973: [10:00:41] <Pyromanik__> Judge: basically just remove 'sapphire' and 'cms' folders
974: [10:00:45] <Pyromanik__> replace them with the updated versions
975: [10:00:52] <Pyromanik__> site.com/dev/build
976: [10:00:55] <Pyromanik__> and that's it.
977: [10:01:09] <Judge> Pyromanik__: ... for real? I hardly can believe it should be that easy ;9
978: [10:01:10] <Judge> ;)
979: [10:01:23] <Pyromanik__> Judge: because you're used to 'normal' CMS's (which are crap)
980: [10:01:24] <Judge> Pyromanik__: Nothing to take in account besides that?
981: [10:01:29] <Judge> *gg*
982: [10:01:32] <Pyromanik__> Judge: nope.
983: [10:01:34] <Judge> Maybe true :)
984: [10:01:46] <Pyromanik__> of course
985: [10:01:48] <Pyromanik__> back up first
986: [10:01:48] <Judge> OK, I'll give that a try ! Thank you guys a lot!! :)
987: [10:01:48] <Pyromanik__> :P
988: [10:01:56] <Judge> Pyromanik__: Sure!
989: [10:02:03] <Pyromanik__> Judge: there may be modules in use
990: [10:02:08] <Pyromanik__> that you also need up update
991: [10:02:33] <Pyromanik__> Judge: basically anything in the root folder of the install is a module.
992: [10:02:37] <Pyromanik__> including 'cms'
993: [10:02:42] <simon_w|air> Judge, oh, 2.4 update also means you need to delete the jsparty folder. Do a search through mysite/ and themes/ to see if you reference it, then bug Pyromanik__ for the new paths
994: [10:02:57] <Pyromanik__> although excluding 'assets' & 'themes'
995: [10:03:08] <Pyromanik__> simon_w: hey
996: [10:03:18] <Pyromanik__> not my fault someone deleted the old upgrade guide from the docs
997: [10:03:26] <simon_w|air> http://doc.silverstripe.org/framework/en/3.1/changelogs/2.4.0
998: [10:03:29] <Pyromanik__> BOOM
999: [10:03:35] <ss23> BOOOMSHABOOM
1000: [10:03:39] <simon_w|air> deleted, my arse :p
1001: [10:03:42] <ss23> woah, composer rebuilds your DB for you?
1002: [10:03:58] <Pyromanik__> simon_w|air: well, that's a changelog. There used to be a step by step guide through it.
1003: [10:03:59] <ss23> Building database SS_hackfest using MySQL 5.5.31-0ubuntu0.12.04.1
1004: [10:04:01] <ss23> fancy
1005: [10:04:06] <Judge> Pyromanik__, simon_w|air: OK, I'll take that in account, too. Thank you :)
1006: [10:04:24] <simon_w|air> Pyromanik__, scroll down
1007: [10:08:11] <Pyromanik__> simon_w: you mean this? Before you start upgrading you should always backup your site directory and the database. Once you have a backup made remove the cms/, sapphire/ and jsparty/ folders then copy in the new cms/ and sapphire/ folders from your 2.4 download.
1008: [10:08:58] <ss23> dammit
1009: [10:09:01] <ss23> who's ideas was this jacket
1010: [10:09:06] <ss23> now my feet and legs are really cold
1011: [10:09:07] <Pyromanik__> lol
1012: [10:09:15] <Pyromanik__> get a blanket you sissy
1013: [10:09:25] <simon_w|air> Onesie
1014: [10:09:26] <ss23> Good idea...
1015: [10:09:42] <Pyromanik__> Northerners, I swear.
1016: [10:09:48] <ss23> lol
1017: [10:09:48] * cloph_away is now known as cloph
1018: [10:09:55] <ss23> Pyromanik__: It's all the burgerfuel making us soft
1019: [10:09:56] <ss23> :3
1020: [10:10:08] <simon_w|air> Eh, I'm still shorts and t-shirt :p
1021: [10:10:12] <ss23> ^^^^^ ^
1022: [10:10:13] <ss23> this guy.
1023: [10:10:14] <ss23> THIS GUY.
1024: [10:10:40] <Pyromanik__> THIS GUY
1025: [10:12:56] <simon_w|air> Told ss23 to man up
1026: [10:13:00] <ss23> lol
1027: [10:14:35] <simon_w|air> Woo, 200 km/hr gust!
1028: [10:15:18] <simon_w|air> That's category 3 hurricane speeds
1029: [10:17:40] * simon_w|air sleeps
1030: [10:18:08] <ss23> :O
1031: [10:19:15] <ss23> nn simon_w|air
1032: [10:19:19] <ss23> ty for your help today
1033: [10:20:51] <Pyromanik__> simon_w|air: I went camping a tent at 150Km/h
1034: [10:21:09] <Pyromanik__> ** pffft, ^
1035: [10:21:25] <ss23> you would DIE1
1036: [10:21:39] <Pyromanik__> Nup, although the tent did try to suffocate me a couple of times.
1037: [10:21:44] <Pyromanik__> and it destroyed the tent.
1038: [10:21:52] <ss23> lol
1039: [10:21:59] <Pyromanik__> broke poles and tore off peg tags
1040: [10:22:30] <Pyromanik__> the most annoying part is the noise though
1041: [10:22:47] <Pyromanik__> it's hard to sleep when the walls of the tent keep reaching over to suffocate you
1042: [10:22:50] <Pyromanik__> at 3am
1043: [10:22:54] <Pyromanik__> and the noise
1044: [10:22:59] <Pyromanik__> no sleep for the rest of the night :<
1045: [10:23:09] <Pyromanik__> It's not like you can just get out
1046: [10:24:06] <Pyromanik__> so because the fly is touching the tent, and the tent is touching you and everything in it, the water also comes through...
1047: [10:24:12] <Pyromanik__> it's just all-round fun times.
1048: [10:25:07] <ss23> XD
1049: [10:25:19] <ss23> Yeah
1050: [10:25:29] <ss23> I hate how tents get all wet and if you tocuh them they get you all wet too...
1051: [10:31:47] * hubertusanton has joined #silverstripe
1052: [10:38:22] <mattybalaam> Is there a simple test I can run in a module to see if JQuery has already been used on a parent page? And if not then include it?
1053: [10:39:06] <ss23> mattybalaam: To know whether *any* jQuery has, I don't think so, but if you just Requirements::javascript('framework/js/jquery');, it'll only be included once
1054: [10:39:34] <ss23> mattybalaam: That is, Silverstripe comes with a jQuery, and everyone I know just includes that one, so if you assume that thats the one that will be included, just inculde it with requirements and it'll only be included once
1055: [10:40:10] <mattybalaam> OK, probably the safest way. I guess it gets kept fairly up to date on each new relase.
1056: [10:40:20] <ss23> I haven't checked, tbh..
1057: [10:43:50] <mattybalaam> Seems like Requirements::javascript(THIRDPARTY_DIR.'/jquery/jquery.js'); is what some other modules use
1058: [10:46:06] * guci0 has joined #silverstripe
1059: [10:52:46] <ss23> Pyromanik__: you still here?
1060: [10:53:17] <mattybalaam> <% loop Items %>$TotalItems is returning 4, but $Items.TotalItems is returning 1. How can I get the actual amount?
1061: [10:53:31] <mattybalaam> (which is 4)
1062: [10:53:45] <ss23> Pyromanik__: Regarding the ModelAsController and real Controller thingy, wouldn't I only need to apply this redirector to the real controller, since it won't go to ModelAsController if it's a proper 404 that we can redirect?
1063: [10:54:03] <ss23> Pyromanik__: (I'm implemnting the functionality of when you rename pages, it'll redirect you to the new page if you use the old URL)
1064: [10:55:37] <mattybalaam> Ah, got it: $Items.Count
1065: [10:57:32] <Pyromanik__> ss23: modelascontroller is a catch-all type thing
1066: [10:57:50] <Pyromanik__> ss23: that functionality is already in modelascontroller
1067: [10:59:23] <Pyromanik__> ss23: https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/controllers/ModelAsController.php#L148
1068: [10:59:51] <ss23> I know it's there, Pyromanik__, I want to remove it :P
1069: [11:00:32] <Pyromanik__> ss23 Pyromanik__: (I'm implemnting the functionality of when you rename pages, it'll redirect you to the new page if you use the old URL)
1070: [11:00:41] <Pyromanik__> so... you're actually doing the complete opposite of what you said?
1071: [11:02:48] <ss23> I'm implmenting it *as an extension*, removing it from that class
1072: [11:03:33] <Pyromanik__> so you're making a module that injects a route before modelascontroller and adds an extension to contentcontroller?
1073: [11:03:41] <ss23> Not a module, it'll still be in core
1074: [11:03:44] <ss23> Just refactoring it
1075: [11:03:56] <Pyromanik__> but basically that right?
1076: [11:03:57] <ss23> The idea is that by refactoring it, it'll be possible to disable the functionality programatically
1077: [11:04:17] <ss23> Doesn't inject a route, rather just acts as a onBeforeRedirect404 or w/e
1078: [11:04:45] <Pyromanik__> ss23: so you're looking at Controller::httpError() ?
1079: [11:05:04] <ss23> Um...
1080: [11:05:07] * priithansen has joined #silverstripe
1081: [11:05:12] <ss23> I'm looking at nothing yet kind of
1082: [11:05:14] <Pyromanik__> yeah
1083: [11:05:23] <Pyromanik__> you're opening a can of worms.
1084: [11:05:26] <ss23> lol
1085: [11:05:32] <ss23> It's a can of worms that needs to be opened.
1086: [11:05:37] <Pyromanik__> is it?
1087: [11:05:38] <ss23> I made a hacky as fuck fix for a client today
1088: [11:05:48] <Pyromanik__> usecase me
1089: [11:06:30] <ss23> The basic idea is that because there's no way to turn off those redirects, you have to delete your site history (and thus all the Versions stuff that makes that code work) to get the module that does redirects via the standard onBeforeHTTP404 API to acxtually redirect
1090: [11:06:55] <Pyromanik__> there's no module, it's just ModelAsController
1091: [11:06:56] <ss23> Even if this particualr client didn't have the issue (which they do so I wanna get it refactored), it's nice to not have it hardcoded as on
1092: [11:07:01] <Pyromanik__> just make a flag for it.
1093: [11:07:02] <Pyromanik__> done
1094: [11:07:02] <ss23> Sorry?
1095: [11:07:10] <ss23> Why not refactor it out and use the standard API?
1096: [11:07:17] <ss23> Like, if I'm going to be doing it...
1097: [11:07:21] <Pyromanik__> no following
1098: [11:07:23] <ss23> I might as well do it the best possible away
1099: [11:07:28] <Pyromanik__> this is true
1100: [11:07:29] <Pyromanik__> but
1101: [11:07:31] <Pyromanik__> I don't follow
1102: [11:07:31] <ss23> I don't know what you meant by "there's no mdule" btw
1103: [11:07:34] <Pyromanik__> explain to me how bad it is
1104: [11:07:47] <Pyromanik__> well the module that does the 404 redirect is CMS
1105: [11:07:59] <Pyromanik__> when an old page has been renamed that is.
1106: [11:08:05] <ss23> Yeah, that's all in cms
1107: [11:08:08] <Pyromanik__> this is the sole usecase we're talking about right?
1108: [11:08:10] <Pyromanik__> yeah
1109: [11:08:11] <ss23> naw
1110: [11:08:16] <ss23> There's a custom module this client has
1111: [11:08:18] <Pyromanik__> there's no separate moudle for redirecting a 404
1112: [11:08:30] <ss23> It lets them go into the CMS and be like...
1113: [11:08:32] <Pyromanik__> yeah but that module leverages CMS right?
1114: [11:08:47] <ss23> "if someone goes to site.com/old-website-page, redirect them to site.com/new-page-lol", and they can set them
1115: [11:08:55] <ss23> It's just an extension
1116: [11:09:05] <ss23> it lverages the standard onBeforeHTTPError404
1117: [11:09:07] <ss23> (which is CMS)
1118: [11:09:08] <Pyromanik__> ss23: sounds like redirectorPage.php
1119: [11:09:15] <Pyromanik__> that exists?
1120: [11:09:19] <Pyromanik__> sounds orrible
1121: [11:09:28] <ss23> class RedirectedURLHandler extends Extension { function onBeforeHTTPError404($request) { // code here } }
1122: [11:09:31] <Pyromanik__> EXTREMELY HORRIBLE
1123: [11:09:39] <ss23> then
1124: [11:09:40] <Pyromanik__> :<
1125: [11:09:41] <Pyromanik__> ew
1126: [11:09:44] <Pyromanik__> really?
1127: [11:09:45] <ss23> Object::add_extension("RequestHandler", "RedirectedURLHandler"); wtf
1128: [11:09:46] <ss23> etc*
1129: [11:09:51] <ss23> Pyromanik__: What part sounds horrible?
1130: [11:09:56] <ss23> Being able to hook 404's?
1131: [11:09:59] <Pyromanik__> all of it
1132: [11:10:00] <Pyromanik__> no
1133: [11:10:11] <Pyromanik__> just, the entirety of how it's done
1134: [11:10:19] <ss23> Of how what's done? The 404 stuff?
1135: [11:10:23] <Pyromanik__> yes
1136: [11:10:30] <Pyromanik__> crop that shit right out, and just leave it.
1137: [11:10:33] <ss23> lol
1138: [11:10:41] <ss23> That's the opposite of a soultion!
1139: [11:10:44] <Pyromanik__> iirc Controller handles 404's
1140: [11:10:52] <Pyromanik__> with httpError
1141: [11:10:59] <Pyromanik__> for the case where you don't have CMS
1142: [11:11:06] <Pyromanik__> which lets you use custom 404 pages, etc.
1143: [11:11:17] <Pyromanik__> it works by throwing an exception
1144: [11:11:19] <Pyromanik__> which bubbles up
1145: [11:11:22] <Pyromanik__> which is NICE
1146: [11:11:35] <ss23> Cool, so why are you teling me? I'm talking about stuff that is already in core
1147: [11:11:57] <Pyromanik__> and not reliant on public function onBefore404, onBefore405, onbefore400, onbeforeOMGHOWMANY
1148: [11:12:02] <ss23> I don't understand your point! (And obviously as you can telll, I don't know shit about redirecting / 404 on Silverstripe)
1149: [11:12:19] <Pyromanik__> ss23: many people have hooked 404's in the past
1150: [11:12:22] <ss23> Pyromanik__: It's dynamic, if there's an HTTP error, it does a $this->extend('onBeforeHTTPError' . $errorCode);
1151: [11:12:27] <Pyromanik__> most of them are hacks
1152: [11:12:38] <Pyromanik__> ss23: right
1153: [11:12:52] <Pyromanik__> that's not very nice.
1154: [11:12:59] <Pyromanik__> but ... I can't think of a better way right now
1155: [11:13:08] <Pyromanik__> my toes tingle with unwanted bacardi
1156: [11:13:23] <Pyromanik__> which is nice, because they'd otherwise just be plain cold
1157: [11:14:24] <ss23> Pyromanik__: http://api.silverstripe.org/3.1/source-class-RequestHandler.html#450-459
1158: [11:14:35] <ss23> FWIW it's new in 3.1, Pyromanik__
1159: [11:14:57] <Pyromanik__> ss-log: anyway I guess my point is that it would be much better to do $this->extend('onBeforeHTTPError', $errorCode)
1160: [11:15:03] <Pyromanik__> and let the extension figure it out
1161: [11:15:10] <ss23> ...
1162: [11:15:13] <ss23> That's what I'm doing?
1163: [11:15:17] <Pyromanik__> rather than having to define a separate method for all the things
1164: [11:15:20] <Pyromanik__> is it?
1165: [11:15:26] <ss23> yes, it uses both
1166: [11:15:32] <Pyromanik__> no look, comma, not dot.
1167: [11:15:34] <ss23> Like, that stuff is already there
1168: [11:15:36] <ss23> Yes, that's there too
1169: [11:15:38] <ss23> look at the linky
1170: [11:15:40] <Pyromanik__> o.0
1171: [11:15:43] <Pyromanik__> r u srs
1172: [11:15:47] <ss23> // Call a handler method such as onBeforeHTTPError, passing 404 as the first arg
1173: [11:16:06] <Pyromanik__> see, this is why I hate backwards compatibility
1174: [11:16:21] <ss23> In any case, that specific method that extensions can use isn't a big deal...
1175: [11:16:29] <Pyromanik__> make one of them throw an f'n deprication exception or user_error or whatever we're doing these days
1176: [11:16:38] <ss23> Well both of these are new
1177: [11:17:00] <Pyromanik__> right well
1178: [11:17:02] <Pyromanik__> ok
1179: [11:17:04] <Pyromanik__> carry on then
1180: [11:17:07] <ss23> lol
1181: [11:17:10] <Pyromanik__> explain to me all the things
1182: [11:17:13] <Pyromanik__> ALL OF THEM
1183: [11:17:16] <ss23> OKAY I WILL TRY
1184: [11:17:20] <ss23> You know I'm not good at explaining
1185: [11:17:21] <Pyromanik__> OK
1186: [11:17:26] <Pyromanik__> you do ok
1187: [11:17:38] <Pyromanik__> it'd just be nice if you spoke English is all.
1188: [11:17:39] <ss23> Imagine that I remove all of that find_old_page code from everyhwere in the core right. ALL GONE
1189: [11:17:52] <Pyromanik__> ok
1190: [11:18:02] <ss23> Then I made a module called "redirect-old-page" and did extend('those places I removed it from'::'stuff')
1191: [11:18:17] <ss23> And added the code into my redirect-old-page as onBeforeHTTPError
1192: [11:18:18] <Pyromanik__> wait
1193: [11:18:19] <ss23> yep yep?
1194: [11:18:35] <Pyromanik__> and did extend('those places I removed it from'::'stuff')
1195: [11:18:36] <Pyromanik__> what what
1196: [11:18:57] <ss23> So uh...
1197: [11:19:06] <ss23> The places I removed the find_old_page from (which currently exists)
1198: [11:19:18] <Pyromanik__> so that one single place?
1199: [11:19:21] <ss23> Two places
1200: [11:19:25] <Pyromanik__> or is it in contentcontroller too?
1201: [11:19:26] <ss23> ModelASController and Controller...really
1202: [11:19:27] <Pyromanik__> oh guts
1203: [11:19:28] <ss23> Yeah, in both
1204: [11:19:33] <ss23> But this is better!
1205: [11:19:37] <Pyromanik__> yes
1206: [11:19:38] <ss23> This will move it to *one* page, right?
1207: [11:19:39] <Pyromanik__> I agree
1208: [11:19:40] <ss23> And I'll just extend both
1209: [11:19:41] <ss23> :D
1210: [11:19:41] <Pyromanik__> no
1211: [11:19:46] <ss23> place*
1212: [11:19:47] <ss23> not page
1213: [11:19:50] <Pyromanik__> k
1214: [11:19:56] <ss23> Does this make sense?
1215: [11:19:58] <Pyromanik__> ok you convince me
1216: [11:20:02] <ss23> Yay :d
1217: [11:20:02] <Pyromanik__> well done
1218: [11:20:05] <ss23> haha
1219: [11:20:08] <ss23> Not my idea, was sams
1220: [11:20:10] <ss23> :P
1221: [11:20:20] <ss23> That's probably why it sounds not complete shit, so you know it's not my idea!
1222: [11:20:28] <Pyromanik__> just this line threw me out
1223: [11:20:29] <Pyromanik__> onBeforeHTTPError404
1224: [11:20:32] <ss23> lol
1225: [11:20:33] <Pyromanik__> because omg it looks ew
1226: [11:20:34] * chillu quit (Quit: chillu)
1227: [11:20:35] <ss23> XD
1228: [11:20:38] <ss23> It does, with 404
1229: [11:20:41] <ss23> SEems really specific
1230: [11:20:42] <Pyromanik__> ikr
1231: [11:20:45] <Pyromanik__> very
1232: [11:21:01] <Pyromanik__> but since it's there as convenience rather than 'pro engineer bro'
1233: [11:21:12] <Pyromanik__> then I'll let it escape my wrath... this itme.
1234: [11:21:13] <Pyromanik__> time
1235: [11:21:14] <Pyromanik__> .
1236: [11:21:22] <ss23> lol
1237: [11:21:24] <ss23> XD
1238: [11:21:35] <Judge> Pyromanik__, simon_w|air: Yay - I shall not spend that efford to upgrade :D Thank you for your help, even! :)
1239: [11:21:51] <Pyromanik__> Judge: huh?
1240: [11:22:13] <Pyromanik__> you successfully updated SS and it was super easy?
1241: [11:22:42] <Pyromanik__> great!
1242: [11:22:45] <Pyromanik__> Where are you from?
1243: [11:22:53] <Pyromanik__> also, you're welcome.
1244: [11:22:57] <Judge> Pyromanik__: No, I discussed your description of what's necessary to port that sites and now it was canceled ;D
1245: [11:23:15] <Pyromanik__> Judge: hahahah
1246: [11:23:15] <Pyromanik__> but
1247: [11:23:16] <Pyromanik__> but
1248: [11:23:26] <Pyromanik__> oh yeah, now you get to sell the client a new website, nice work!
1249: [11:23:33] <Pyromanik__> :D
1250: [11:23:35] <Judge> Correct ;D
1251: [11:23:57] <Pyromanik__> pro tip: use silverstripe anyway.
1252: [11:24:17] <Pyromanik__> it's better than that filthy j-word, and far superior to wordderp.
1253: [11:24:43] <Pyromanik__> modx isn't actually a thing, and drupal... well it's drupal.
1254: [11:24:50] <Pyromanik__> so SS it is!
1255: [11:24:53] <Pyromanik__> great choice!
1256: [11:24:55] <ss23> modx isn't actually a thing
1257: [11:24:56] <ss23> lol
1258: [11:25:01] <Pyromanik__> well it's true.
1259: [11:25:34] <Pyromanik__> it's basically index.php: <?php exec(mysql_query('select *')); ?>
1260: [11:25:55] <Pyromanik__> oh, sorry...
1261: [11:26:25] <ss23> Pyromanik__: https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/controllers/ModelAsController.php#L111
1262: [11:26:29] <ss23> wanna explain that stuff?
1263: [11:27:20] <Pyromanik__> it's basically index.php: <?php exec(mysql_query('select * where $_SERVER['REQUEST_URI']')); ?>
1264: [11:27:31] <Pyromanik__> (modx that is)
1265: [11:27:34] <ss23> lol
1266: [11:28:20] <ss23> Come on, it's at least <?php exec(mysql_query('select * where ' . str_replace('\'', $_SERVER['REQUEST_URI'])); // super sekrit anti sqli ?>
1267: [11:30:06] <ss23> Pyromanik__: I want to reimplment it in a onBeforeHTTPError404 as I'm suer you realise. Not sure how to do the redirect / that stuff
1268: [11:30:18] <ss23> Especially since it's an extension, so not sure about the $this->owner or w/e stuff
1269: [11:30:23] <Pyromanik__> ss23: ok so it looks like
1270: [11:30:35] <Pyromanik__> find_old_page gets you a SiteTree object (page)
1271: [11:30:46] <Pyromanik__> and then that bit does that actual redirecting.
1272: [11:31:04] <Pyromanik__> so you have your current request
1273: [11:31:37] <Pyromanik__> site.tld/old_page/subpage/underneathitall
1274: [11:31:50] <Pyromanik__> and request handler breaks that into:
1275: [11:32:12] <Pyromanik__> page = old_page, action = subpage, id = underneathitall
1276: [11:33:01] <ss23> what about if you have more, and like old_page/foo/bar/baz/asdfasd/asdf/asdf
1277: [11:33:09] <Pyromanik__> so then that bit of code uses the last two bits (action and id) and concatenates them back into a URI path with page = new_page_name instead
1278: [11:33:22] <Pyromanik__> ss23: irrelevant
1279: [11:33:30] <Pyromanik__> $Action is the bit that matters
1280: [11:33:39] <Pyromanik__> the parameters are parsed, but not consumed
1281: [11:33:45] <ss23> Hmmmmm kk
1282: [11:33:57] <ss23> So how would I implment that in an extension that extends ThatClass
1283: [11:34:08] <Pyromanik__> the handleRequest consumes one part then passes the the params along
1284: [11:34:12] <Pyromanik__> in the case of nested pages
1285: [11:34:21] * silverseba has joined #silverstripe
1286: [11:34:55] <Pyromanik__> or executes the current controller action by looking at $action (or index if there isn't one) if there is no sub-page
1287: [11:35:40] <Pyromanik__> ss23: well you'd have to track the $this->request object
1288: [11:35:49] <ss23> do you access that via $this->request
1289: [11:35:56] <ss23> or via $this->owner->request or something?
1290: [11:36:03] <ss23> I have not used Extension before, only DataExtension
1291: [11:36:12] <Pyromanik__> $this->request in a controller, $this->owner->request in an Extension
1292: [11:36:25] <ss23> okay so owner for extensions too
1293: [11:36:41] <Pyromanik__> ss23: doesn't matter the extension type, if you're referring to something that exists on the object sans-thisExtension, then use ->owner
1294: [11:37:12] <Pyromanik__> so anyway
1295: [11:37:37] <Pyromanik__> IF request object stays consumed when the error pops, you might get away with not decorating contentcontroller
1296: [11:37:45] <Pyromanik__> and just doing it all from the catch
1297: [11:37:58] <ss23> oh an unrelated (for the most part) question, Pyromanik__
1298: [11:38:02] <Pyromanik__> request object params*
1299: [11:38:14] <ss23> Internally, things should be using foo->filter() right, not the old DB API stuff where you insert SQL manually?
1300: [11:38:28] <silverseba> sorry for interrupting. Does anyone know if the current newsletter module (https://github.com/silverstripe-labs/silverstripe-newsletter) is compatible with ss3?
1301: [11:38:37] <ss23> lol, no need to be sorry, silverseba :P
1302: [11:38:45] <ss23> silverseba: Yes, it is (though I haven't checked which branch)
1303: [11:38:50] <Pyromanik__> if you're needing to extend ThatClass, then all Pages (ie all bits the CMS cares about) are extensions of ContentController, so just decorate that.
1304: [11:39:14] <Pyromanik__> you'll need to add a hook though, if one isn't already there (iirc one is? can't remember)
1305: [11:39:15] <mattybalaam> Should I be able to do $DataObject.SetWidth(400) or do I have do <% with DataObject %> <img alt="$alt" $Image.SetWidth(400).URL ?
1306: [11:39:21] <Pyromanik__> silverseba: yes.
1307: [11:39:29] <Pyromanik__> I know it is, but don't use it.
1308: [11:39:45] <Pyromanik__> silverseba: please read up on message queues, what they are and how to use them before you use it though.
1309: [11:39:48] <ss23> Someone needs to fix the newsletter module, it's *really* bad...
1310: [11:40:10] <Pyromanik__> we get lots of questions on why newsletter module doesn't work, and it turns out dev. knows not what a message queue is
1311: [11:40:12] <ss23> I should do ti some time
1312: [11:40:26] <ss23> Pyromanik__: Had a client who didn't realise you needed to verifyt people before sending them emails
1313: [11:40:28] <Pyromanik__> despite the instructions pointing out that one needs one
1314: [11:40:31] <ss23> "OMG Y IS IT BLACKLISTING EVERYTHING"
1315: [11:40:38] <Pyromanik__> ss23: lol
1316: [11:41:00] <Pyromanik__> ss23: online emailers you don't need to
1317: [11:41:03] <ss23> Pyromanik__: So I do not understand the stuff you just said though btw ^.^
1318: [11:41:14] <Pyromanik__> they assume if you're adding manually you've already checked with them.
1319: [11:41:18] <ss23> Pyromanik__: Yeah, this person was adding test people, not verifiying (clicking verify I guess) and they would blacklist..
1320: [11:41:30] <ss23> And of course, I was "hmm I cannot reproduce, sends fine for me"
1321: [11:41:32] <Pyromanik__> although if you add a massive list they block it and support contacts you to make sure first.
1322: [11:41:35] <ss23> took me a while to realise :P
1323: [11:41:44] <silverseba> ss23 | Pyromanik: thanks. I will look for the right branch. so you recommend using an external newsletter service instead?
1324: [11:42:01] <Pyromanik__> ss23 Internally, things should be using foo->filter() right, not the old DB API stuff where you insert SQL manually?
1325: [11:42:04] <Pyromanik__> technically yes
1326: [11:42:11] <Pyromanik__> although in some cases there aren't equivalents.
1327: [11:42:27] <Pyromanik__> ie, there are some (lots) of shortcut functions
1328: [11:42:40] <ss23> silverseba: hmm, I would. Though if you know someone willing to put the time in to fix it nicely (it doesn't need a large amount of work, it's just a little yucky in a lot of places), that is nice too. That being said, it's not going to get you hacked (anymore, I fixed all the security issues I found in it a few weeks back)
1329: [11:42:50] <ss23> silverseba: Just yucky code... but external ones are better...
1330: [11:42:53] <ss23> silverseba: IDK TRY THEM AND SEE ;_;
1331: [11:43:22] <ss23> Pyromanik__: Yep yep, I realised you can't always do it
1332: [11:43:25] <Pyromanik__> ss23: yeah, look at mailchimp or campaign monitor. They don't have plugins for SS (that I know of) but are much better for managing online emails
1333: [11:43:35] <Pyromanik__> err, silverseba ^
1334: [11:43:50] <ss23> Pyromanik__: And Dataobject::get('foo') is the same as Foo::get() right?
1335: [11:43:54] <Pyromanik__> ss23: everytime I see DataObject::get_one() I cringe.
1336: [11:44:05] <Pyromanik__> ss23: always has been.
1337: [11:44:27] <ss23> lol
1338: [11:44:31] <Pyromanik__> ss23: technically deprecated, because it matches the old sql specification method you speak of.
1339: [11:45:17] <Pyromanik__> anyway, bed tiem.
1340: [11:45:23] <Pyromanik__> you should too because you hvae work tomorrow
1341: [11:45:27] <Pyromanik__> YOU HAVE A JOB NOW
1342: [11:45:43] <ss23> XD
1343: [11:45:44] <ss23> nn Pyromanik__
1344: [11:45:48] <ss23> People are watching GoT
1345: [11:45:49] <Pyromanik__> cu
1346: [11:45:50] <ss23> I can't sleep yet!
1347: [11:45:54] <Pyromanik__> lolsif
1348: [11:45:56] <ss23> (sleeping on a couch ftl)
1349: [11:46:02] <Pyromanik__> that's finished already
1350: [11:46:05] <ss23> lol
1351: [11:46:06] <Pyromanik__> oic
1352: [11:46:08] <Pyromanik__> bl4u
1353: [11:46:08] <ss23> They're watching all of s2...
1354: [11:46:10] <ss23> ya
1355: [11:46:10] <ss23> nn
1356: [11:46:12] <ss23> ty fgor your help
1357: [11:46:14] <ss23> burgerfuel if you visit
1358: [11:46:15] <Pyromanik__> just go and fall asleep on them, lol
1359: [11:46:17] <ss23> :D
1360: [11:46:19] <Pyromanik__> :D
1361: [11:46:20] <ss23> XD
1362: [11:46:23] <ss23> They're a couple and on each other..
1363: [11:46:28] <ss23> I don't think they'd apperciate a third.
1364: [11:46:32] <Pyromanik__> or: sleep under the dining table like a dog
1365: [11:46:35] <Pyromanik__> or something
1366: [11:46:56] <Pyromanik__> ss23: that was kinda the point. Offer to carry the TV to the bedroom for them :P
1367: [11:47:15] <Pyromanik__> I mean god, what are people thinkikng these days
1368: [11:47:23] <Pyromanik__> watch TV in lounge where is warm
1369: [11:47:32] <Pyromanik__> then have to go to bed in freezing arse nowhere land
1370: [11:47:34] <Pyromanik__> (bedroom)
1371: [11:47:52] <ss23> XD
1372: [11:47:57] <Pyromanik__> watch tv in bedroom, heat up room and go to bed without cold shivers!
1373: [11:48:02] <ss23> They wish
1374: [11:48:04] <Pyromanik__> xD
1375: [11:48:06] <ss23> too poor for more than one TV
1376: [11:48:23] <Pyromanik__> 11:46 Pyromanik__ ss23: that was kinda the point. Offer to carry the TV to the bedroom for them
1377: [11:48:31] <Pyromanik__> Offer to carry the TV to the bedroom for them
1378: [11:48:39] <ss23> oic
1379: [11:48:40] <ss23> lol
1380: [11:48:48] <ss23> Me lifting things?
1381: [11:48:49] <ss23> I THINK NOT.
1382: [11:48:50] <Pyromanik__> xD
1383: [11:48:52] <ss23> Do you eve nlift?
1384: [11:48:59] <Pyromanik__> YES
1385: [11:48:59] <Pyromanik__> well, not really, BUT YES
1386: [11:49:00] * guci0 quit (Ping timeout: 250 seconds)
1387: [11:49:09] <ss23> lol
1388: [11:49:09] <ss23> XD
1389: [11:49:10] <Pyromanik__> I lift+ most days
1390: [11:49:13] <ss23> haha
1391: [11:49:15] <Pyromanik__> SO THERE
1392: [11:49:15] <ss23> Doesn't count
1393: [11:49:17] <Pyromanik__> haha
1394: [11:49:18] <ss23> Anyway, go to bed, Pyromanik__! :P
1395: [11:49:22] <Pyromanik__> k
1396: [11:49:24] <Pyromanik__> cu
1397: [11:49:25] <ss23> You're getting delirious
1398: [11:49:25] <Pyromanik__> ciao
1399: [11:49:26] <ss23> Cya
1400: [11:49:30] <Pyromanik__> sif.
1401: [11:49:33] <Pyromanik__> i'm normal as
1402: [11:49:45] * Pyromanik__ has left #silverstripe
1403: [11:52:22] <mattybalaam> If I am in a loop I can do $Parent.foo to get something from the page the loop is on. If I am then in a with inside the loop how do I get it?
1404: [11:53:12] <ss23> mattybalaam: Perhaps by $Top? Is that the kind of thing you're looking for?
1405: [11:53:23] <ss23> http://doc.silverstripe.org/framework/en/reference/templates#top @ mattybalaam
1406: [11:53:44] * silverseba quit (Quit: Page closed)
1407: [12:02:19] <mattybalaam> $Top.foo doesn't seem to work, but $Up.Parent.foo does
1408: [12:04:42] * UndefinedOffset has joined #silverstripe
1409: [12:09:20] <mattybalaam> After that, am I right in thinking this is actually impossible? $SetWidth({$Up.Parent.Width.xml}).URL where Width is a number entered in a field on the CMS
1410: [12:10:54] <mattybalaam> It seems in 2.4 at least there was only one pass made of the template, so I guess I need to make a function instead?
1411: [12:13:42] * kerosene quit (Ping timeout: 256 seconds)
1412: [12:15:45] * kerosene has joined #silverstripe
1413: [12:17:26] * funkygibbon has joined #silverstripe
1414: [12:27:51] * anujit has joined #silverstripe
1415: [12:28:13] <anujit> please enybody help me in embedding facebook connect in the original form
1416: [12:28:18] <anujit> facebook lonig
1417: [12:28:21] <anujit> login
1418: [12:30:38] * Shrike_Finland has joined #silverstripe
1419: [12:35:37] <supernovah> In a template ss23 is right, $Top raises the scope
1420: [12:41:12] * supernovah has joined #silverstripe
1421: [12:44:38] * Colin[pi] quit ()
1422: [12:45:47] <supernovah> simon_w are you here
1423: [12:46:03] <supernovah> Why did you suggest [[:blank:]] instead of just [:space:] for a POSIX expression
1424: [12:50:06] * anujit quit (Ping timeout: 250 seconds)
1425: [12:53:06] <lewellyn> he didn't want you matching newlines? *shrug*
1426: [12:57:05] <supernovah> I guess, but the double brackets I meant
1427: [13:05:24] <kinglozzer> SVN, y u so slow?! :(
1428: [13:06:33] <kinglozzer> Been cloning a repo for over an hour already.
1429: [13:07:21] <lewellyn> supernovah: i think it's style in this case, without knowing more background.
1430: [13:07:40] <supernovah> When he said it, he said use it that way since I don't know POSIX well enough
1431: [13:07:47] <supernovah> maybe it's safer or stops recursion or something
1432: [13:08:22] <lewellyn> oh. wait. pcre. yeah. use posix classes with double brackets.
1433: [13:09:17] <lewellyn> i'm running out the door (already late) or i'd elaborate a bit. hopefully simon_w shows back up for you :)
1434: [13:14:06] * sam__ has joined #silverstripe
1435: [13:14:09] <sam__> Hi
1436: [13:14:23] <sam__> need help to add jquery into login page
1437: [13:14:27] <sam__> please help
1438: [13:14:39] <supernovah> Add it as a requirement
1439: [13:14:42] <kinglozzer> Yeah
1440: [13:14:46] <sam__> Yes
1441: [13:14:50] <kinglozzer> In your page controller
1442: [13:15:00] <sam__> in page controller of page.php I have added
1443: [13:15:01] <supernovah> What SS version sam__
1444: [13:15:07] <sam__> 2.4
1445: [13:15:18] * kinglozzer *runs away*
1446: [13:15:42] <supernovah> Add this to init inside your page_controller > Requirements::javascript('sapphire/thirdparty/jquery/jquery-packed.js');
1447: [13:15:57] <supernovah> make sure its in that location too ^_^
1448: [13:17:52] <sam__> http://www.sspaste.com/paste/show/51c300a45f2f9
1449: [13:19:08] <supernovah> I don't see Jquery there
1450: [13:19:22] <sam__> actually, i did behaviour register
1451: [13:19:46] <supernovah> Look at your pages rendered source and see if behaviour is showing up
1452: [13:19:55] <supernovah> through an http request I mean
1453: [13:20:32] <sam__> nope
1454: [13:20:39] <sam__> its not showing up
1455: [13:20:55] <supernovah> And you also checked that the file exists for sure in the directory you chose
1456: [13:21:26] <supernovah> Oh mate
1457: [13:21:35] <supernovah> shouldn't parent::init(); come after requirements
1458: [13:22:32] <sam__> ok
1459: [13:24:42] <sam__> still no luck
1460: [13:25:46] <sam__> jquery also not working
1461: [13:25:48] <sam__> http://www.sspaste.com/paste/show/51c300a45f2f9
1462: [13:26:42] <supernovah> did you rebuild
1463: [13:27:44] <sam__> yes
1464: [13:27:59] <sam__> its getting included into page source
1465: [13:28:15] <supernovah> Same as your Js file yes?
1466: [13:28:39] <sam__> yes
1467: [13:28:58] <supernovah> What browser are you in (just want to know if you can detect JS errors)
1468: [13:29:12] <sam__> http://www.sspaste.com/paste/show/51c3034fdf796
1469: [13:29:44] <supernovah> That requires jquery to be there
1470: [13:29:56] <supernovah> Which you haven't included
1471: [13:30:07] <supernovah> 2.4 uses prototype.js by default when it makes forms
1472: [13:30:15] <supernovah> So you're right to use noconflict
1473: [13:31:27] <sam__> yes
1474: [13:31:49] <sam__> it says that unexpected end of input
1475: [13:31:54] <supernovah> Is your JS being run after onload
1476: [13:32:02] * beko has left #silverstripe
1477: [13:32:09] <sam__> no
1478: [13:32:19] <supernovah> Because if it's just included as a source it will execute potentially before the page is rendered to the DOM
1479: [13:32:19] <sam__> m not getting any alert
1480: [13:32:33] <supernovah> Put an alert at the top of it that says test, see if it runs
1481: [13:32:47] <supernovah> Wait what says unexpected end of input
1482: [13:33:11] <sam__> console
1483: [13:33:15] <sam__> chrome
1484: [13:33:26] <sam__> the test alert also not working
1485: [13:33:38] <supernovah> your code has a syntax error
1486: [13:33:41] <supernovah> I'm tryna find it
1487: [13:36:06] <supernovah> You have an open brace right on line 04
1488: [13:36:09] <supernovah> which doesn't close
1489: [13:37:03] <sam__> yes
1490: [13:37:09] <sam__> actually its working
1491: [13:37:25] <supernovah> Was that the problem
1492: [13:37:37] <sam__> the jquery was defined after the .js file in page_controller
1493: [13:37:42] <sam__> thnx
1494: [13:37:53] <supernovah> But there's still syntax errors lol wut
1495: [13:38:13] <supernovah> Oh well, as they say... "if it works"
1496: [13:38:25] * supernovah cringes
1497: [13:40:18] <elgrodo> anyone know off the top of their head wheter form data is escaped or not when it reaches the doSomethingWithTheData method?
1498: [13:44:47] <kinglozzer> elgrodo: I don't think so, as far as I know they're passed in by calling SS_HTTPRequest->postVars()
1499: [13:55:07] * sam__ quit (Ping timeout: 250 seconds)
1500: [14:00:18] <elgrodo> kinglozzer: Thanks. /me adds to the SQL injection list...
1501: [14:00:50] <kinglozzer> elgrodo: If you use the ORM you don't have to worry about it
1502: [14:01:29] <kinglozzer> You only need to escape it if you're doing a query with SQLQuery or something
1503: [14:01:59] <supernovah> Man I'm enjoying SS a lot now I can use it properly lol
1504: [14:02:08] <supernovah> after modding database.php, ssviewer and codeviewer
1505: [14:03:35] <kinglozzer> Modifying core?
1506: [14:03:40] <kinglozzer> Tut tut ;)
1507: [14:03:49] <supernovah> yeah just adding some things that weren't in 2.4
1508: [14:04:07] <supernovah> And fixing some seriously funny problems
1509: [14:04:17] <supernovah> like when SS wanted to print an array
1510: [14:04:18] <kinglozzer> Ah, thankfully I've never had to work much with 2.4
1511: [14:04:29] <kinglozzer> Is that on a database error?
1512: [14:04:36] <kinglozzer> Think I encountered that the one time I had to use it :P
1513: [14:04:36] * chillu has joined #silverstripe
1514: [14:04:47] <supernovah> yeah lol
1515: [14:05:05] <supernovah> and its not even necessary to print that, just jargon output on /dev/build lol
1516: [14:09:45] <kinglozzer> Hmm. I'm making two identical API calls, one to build a non-js form, then one to fetch extra info when JS kicks in. The calls and data returned are exactly the same, just processed slightly differently. What's the best way to avoid doing two calls?
1517: [14:09:56] * Shrike_Finland quit (Quit: Leaving.)
1518: [14:10:13] <kinglozzer> I'm thinking of storing it in a session. I can't cache it for x amount of time
1519: [14:10:25] <kinglozzer> But the two responses should be identical milliseconds apart
1520: [14:12:43] <kinglozzer> Never mind, I've had an idea
1521: [14:14:34] * Nivery has joined #silverstripe
1522: [14:21:18] <supernovah> Can you perform a sum total of a column of a dataObject with SS?
1523: [14:21:26] <supernovah> if they're known to be integers
1524: [14:22:34] <supernovah> dataObjectSet even
1525: [14:28:34] <AlphaCactus> yes, in 3.x+ at least
1526: [14:28:48] <supernovah> It's okay I just used set->column and array_sum on it
1527: [14:33:55] * mattybalaam quit (Quit: mattybalaam)
1528: [14:41:32] * Judge quit (Remote host closed the connection)
1529: [14:49:22] * hubertusanton quit (Remote host closed the connection)
1530: [14:49:43] <kinglozzer> supernovah: Doesn't ->column() group results?
1531: [14:50:10] <supernovah> It just returned an array of the column from my dataobjectset
1532: [14:50:24] <supernovah> one dimensional
1533: [14:50:33] <AlphaCactus> yes
1534: [14:50:37] <supernovah> what do you mean by group
1535: [14:51:24] <supernovah> No the code behind it definitely just makes a one dimensional array, just checked
1536: [14:51:48] <kinglozzer> Yes, but if you have two records with the same value and it groups them, they'll only be counted once
1537: [14:51:51] <AlphaCactus> probably something like what GROUP BY does in a sql query, but I'm confident that your are right supernovah and that it odesn't group
1538: [14:52:22] <kinglozzer> Ah, just looked at the API, pretty sure it doesn't in 2.4
1539: [14:52:29] <kinglozzer> Though I'm certain it does in 3.1
1540: [14:52:44] <kinglozzer> Nope
1541: [14:52:46] <kinglozzer> It doesn;t
1542: [14:52:49] <kinglozzer> Ignore me :P
1543: [14:53:00] <AlphaCactus> way ahead of ya
1544: [14:54:57] <supernovah> lol
1545: [14:55:38] <supernovah> what is the 3.1 equivealent to dataobjectset anyway
1546: [14:55:45] <AlphaCactus> DataList
1547: [14:56:05] <AlphaCactus> and ArrayList for objects of dissimilar class
1548: [14:56:20] <supernovah> does DataQuery take it from the DB though
1549: [14:56:43] * osterlaus has joined #silverstripe
1550: [14:57:23] * priithansen quit (Quit: priithansen)
1551: [14:58:22] <AlphaCactus> no it appears to loop the records in php
1552: [14:59:17] <supernovah> 3.1 seems more sophisticated
1553: [14:59:27] * Shrike_Finland has joined #silverstripe
1554: [14:59:33] <AlphaCactus> actually of course it has to do that to make an array. but it looks like maybe it queries only that column
1555: [14:59:47] * supernovah sleeps... 3am zzz
1556: [14:59:58] <AlphaCactus> 8 am, time for werk
1557: [15:02:01] <AlphaCactus> Nebody else from western US?
1558: [15:02:40] * Shrike_Finland quit (Client Quit)
1559: [15:06:39] * AlphaCactus listens to the silence
1560: [15:10:47] <Nivery> i'm from flyover country
1561: [15:11:14] <AlphaCactus> whats that
1562: [15:11:18] <Nivery> iowa
1563: [15:11:36] <AlphaCactus> practically walking distance
1564: [15:11:41] <Nivery> very close
1565: [15:11:43] <Nivery> we should get coffee
1566: [15:12:04] <AlphaCactus> hows about saturday am
1567: [15:12:28] <Nivery> can't, the festival of hay is on saturday
1568: [15:12:45] <Nivery> in which we venerate the holy hay bale
1569: [15:12:48] <Nivery> and punch one another
1570: [15:13:03] <AlphaCactus> rly. I wonder when our combine derby is this year
1571: [15:13:23] <AlphaCactus> punch one another? rly?
1572: [15:13:30] <Nivery> it is our way
1573: [15:14:23] <AlphaCactus> anyway, we can meet at what I'm sure is the only starbucks on the block between us.
1574: [15:17:01] <Nivery> pretty sure there are two
1575: [15:17:33] <AlphaCactus> inconceivable
1576: [15:19:23] * Shrike_Finland has joined #silverstripe
1577: [15:24:10] * osterlaus quit (Quit: Leaving.)
1578: [15:38:37] * LoveDuckie has joined #silverstripe
1579: [15:38:47] <LoveDuckie> Hey, I was wondering if someone could quickly answer my question
1580: [15:38:59] <LoveDuckie> I have a has_one of an object inside a $db definition of another object.
1581: [15:39:20] <LoveDuckie> and I want to know how I can make a dropdown field available in the getCMSFields() outputting all available objects of that type?
1582: [15:39:31] <LoveDuckie> trying everything and it's not yielding the answers I want ;__;
1583: [15:49:31] * micmania1 has joined #silverstripe
1584: [15:55:59] * funkygibbon quit (Read error: Connection reset by peer)
1585: [15:56:01] * micmania1 quit (Ping timeout: 250 seconds)
1586: [15:58:25] * catcher has joined #silverstripe
1587: [16:00:37] * g4b0_ quit (Quit: Sto andando via)
1588: [16:01:48] <AlphaCactus> um... has_one inside $db? what does that mean exactly
1589: [16:02:10] * UndefinedOffset quit (Quit: Leaving.)
1590: [16:02:14] * kinglozzer quit (Remote host closed the connection)
1591: [16:16:49] <LoveDuckie> Ack
1592: [16:16:59] <LoveDuckie> Yeah, so under $has_one I have a definition for portfolioitem
1593: [16:17:14] <LoveDuckie> and basically I want there to be a dropdownfield that displays all available portfolioitems in the database globally
1594: [16:17:26] <AlphaCactus> what ss version
1595: [16:17:34] <LoveDuckie> 3.1.0-beta3
1596: [16:18:09] <AlphaCactus> its not providing that automatically? hmm
1597: [16:18:21] <LoveDuckie> Well, I've overrided getCMSFields()
1598: [16:18:39] <LoveDuckie> I'm basically working inside of another dataobject called News
1599: [16:21:18] <AlphaCactus> well, not sure why it isn't providing you with a dropdown automatically. but you can make your own.
1600: [16:21:37] <LoveDuckie> How would I go about doing that?
1601: [16:22:17] <AlphaCactus> $fields->addFieldToTab('Root.Main', DropdownField::create('PortfolioItemID','Portfolio Item', PortfolioItem::get() )->setEmptyString('(Select Portfolio Item)'));
1602: [16:22:18] <AlphaCactus> or something
1603: [16:22:52] <LoveDuckie> is that presuming that PortfolioItemID is defined in has_one?
1604: [16:23:23] <AlphaCactus> has_one = array( 'PortfolioItem' => 'PortfolioItem' ); yes
1605: [16:23:45] <AlphaCactus> ID is added by SS, but you have to use it when creating/referencing the field
1606: [16:25:37] <LoveDuckie> Yeah, just comes out as empty aside from the empty string :<
1607: [16:25:39] <LoveDuckie> Bugger
1608: [16:25:52] <AlphaCactus> oops
1609: [16:25:55] <AlphaCactus> um
1610: [16:26:01] <AlphaCactus> PortfolioItem::get()->map()
1611: [16:27:12] <LoveDuckie> Heyyy, I think that's working!
1612: [16:27:14] <LoveDuckie> Saving nicely.
1613: [16:27:18] <LoveDuckie> Thanks :)
1614: [16:27:23] <AlphaCactus> yep
1615: [16:28:45] * UndefinedOffset has joined #silverstripe
1616: [16:32:37] * guzzlefry has joined #silverstripe
1617: [16:38:00] <guzzlefry> Fatal error: Access level to VirtualPage_Controller::$allowed_actions must be public (as in class Page_Controller) <--- Why is this happening? :P
1618: [16:39:32] <guzzlefry> here's the code: http://bpaste.net/show/8v3DZyY8p2wRZqk1EGcZ/
1619: [16:39:54] <guzzlefry> I also inherit that class and set $allowed_actions in the child
1620: [16:42:07] <AlphaCactus> what ss version
1621: [16:42:35] <guzzlefry> one second, I'm not exactly sure
1622: [16:44:24] <guzzlefry> AlphaCactus: I'm guessing 3.0, since that's where the Help section in /admin/ redirects to.
1623: [16:44:50] <AlphaCactus> um... are your pages/files/security/etc tabs on the left or the top
1624: [16:45:12] <guzzlefry> left
1625: [16:45:30] <AlphaCactus> ok, mouse hover the SS logo in the top left
1626: [16:46:29] <guzzlefry> AlphaCactus: Version - Framework 3.1.x-dev CMS: same thing
1627: [16:47:05] <AlphaCactus> in 3.1.x allowed_actions is supposed to be private static
1628: [16:47:26] <guzzlefry> ah
1629: [16:49:26] <guzzlefry> thank you
1630: [16:49:31] <AlphaCactus> yep
1631: [16:50:56] <guzzlefry> And I take it any inherited class that sets $allowed_action will overwrite the previously set ones?
1632: [16:52:03] <AlphaCactus> yes. I find it a little annoying because I liked to be able to pile up actions as I inherit rather than have to put in actions provided by parent classes. but my understanding is perhaps not quite enough to know if i'm doing it wrong.
1633: [16:55:30] * lobarvaz quit (Remote host closed the connection)
1634: [17:01:20] <guzzlefry> gah, wait
1635: [17:01:38] <guzzlefry> AlphaCactus: How do you grab $allowedActions from the parent class if it's private?
1636: [17:02:12] <AlphaCactus> yeah that's the part I don't know. I just write the actions I want to inherit in manually.
1637: [17:03:01] <guzzlefry> Maybe someone could shed more light on why it went from public to private instead of public to protected.
1638: [17:03:16] <AlphaCactus> the docs say Each class is only responsible for access control on the methods it defines
1639: [17:03:52] <AlphaCactus> but I thot I tried that and it didn't work. lets see...
1640: [17:06:08] <guzzlefry> ?flush=1 or /dev/build aren't necessary after changing this are they?
1641: [17:07:09] <AlphaCactus> definitely not /dev/build, but not sure about flush, I've had to sometimes flush a couple times before it takes. haven't really looked into why since it seems to work it self out after a couple tries.
1642: [17:13:27] <AlphaCactus> actually, i'm not sure about that definitely, but i didn't need to dev/build
1643: [17:18:01] * gelignite has joined #silverstripe
1644: [17:22:24] <guzzlefry> ?flush=all did it for m
1645: [17:22:26] <guzzlefry> s/m/me
1646: [17:25:14] * Nivery quit (Quit: Nivery)
1647: [17:28:06] <AlphaCactus> oh good. I wondered if that was it
1648: [17:34:54] * Nivery has joined #silverstripe
1649: [17:36:59] * Shrike_Finland quit (Quit: Leaving.)
1650: [17:39:18] * chillu quit (Quit: chillu)
1651: [17:55:49] * Shrike_Finland has joined #silverstripe
1652: [18:07:28] * guzzlefry is now known as guzz_afk
1653: [18:24:43] * ec8or_ quit (Ping timeout: 248 seconds)
1654: [18:26:23] <Shrike_Finland> Hi, one noob question about GitHub… I'd like to make translation file for SilverStripe Comment -module. How should I deliver it "officially"?
1655: [18:29:36] <wmk> Shrike_Finland, normally fork the project, commit to your fork, make a pull request
1656: [18:31:00] <Shrike_Finland> Ok, gonna test… :)
1657: [18:41:10] * zfmf1 has joined #silverstripe
1658: [18:43:37] * ec8or has joined #silverstripe
1659: [18:49:15] * SphereSilverNL has joined #silverstripe
1660: [18:51:23] <SphereSilverNL> Goodevening folks
1661: [18:52:14] * CodeTrap has joined #silverstripe
1662: [18:52:49] <SphereSilverNL> Quick question: Is there a way to split records across multiple tabs in the ModelAdmin? So, instead of handling a DataObject, I want ModelAdmin to have to subtabs, both handling the same DO, but the tabs handle different parents.
1663: [18:53:05] <SphereSilverNL> I don't really know if this makes sense, but maybe this helps:
1664: [18:53:25] <SphereSilverNL> I have a few hundred DO's, that should be grouped by Month Created.
1665: [18:53:49] <SphereSilverNL> So, in the ModelAdmin, I want the Baby (yes, it's about babies, don't ask) tab, to have 12 subtabs, January to December
1666: [18:54:07] <SphereSilverNL> Each only showing a gridfield with the Babies that signed up in the respective month
1667: [18:54:23] <SphereSilverNL> (Again, don't ask, it's a job :P )
1668: [18:59:27] * chillu has joined #silverstripe
1669: [19:00:48] * chillu quit (Read error: Connection reset by peer)
1670: [19:01:30] * chillu has joined #silverstripe
1671: [19:02:40] <AlphaCactus> Can't just provide a month filter?
1672: [19:04:06] <SphereSilverNL> AlphaCactus: theory: yes.
1673: [19:04:15] <SphereSilverNL> Reality: Client is an idiot.
1674: [19:04:24] <SphereSilverNL> ow, no, I did not say my client is an idiot
1675: [19:04:36] <AlphaCactus> this is a universal truth
1676: [19:04:38] <SphereSilverNL> I said "My client is willing to pay for dividing-per-tab"
1677: [19:04:55] <SphereSilverNL> (Insert a picture of me with a halo above my head)
1678: [19:06:19] <AlphaCactus> perhaps... you could consider extending Left and Main instead? or you could create a class, the entire purpose of which is so you can use getCMS Fields to create tabs as you sdecribed, and then the model admin is opened you immediately redirect to that specific instance.
1679: [19:07:03] <SphereSilverNL> I kinda thought that would be the only option. As far as I've seen, ModelAdmin does not support child-tabs
1680: [19:07:18] <SphereSilverNL> Bummer, but at least I got another 20 hours to bill :D
1681: [19:07:30] <AlphaCactus> or extend baby 12 times, and set your filter in canView for each, and then manage those 12 models.
1682: [19:08:37] <SphereSilverNL> That would fill up the root tabs, right? That would be a quick-fix for now :)
1683: [19:09:42] <SphereSilverNL> But, personally, I now still want to get subtabs in ModelAdmin :P
1684: [19:09:59] <SphereSilverNL> But indeed I think the easy way out is my quickest solution :)
1685: [19:10:33] * mobiusnz has joined #silverstripe
1686: [19:11:09] <SphereSilverNL> Who wrote the ModelAdmin wrapper?
1687: [19:12:12] <AlphaCactus> no idea
1688: [19:15:02] <SphereSilverNL> Note to self: iPads and water do not mix.
1689: [19:15:28] <AlphaCactus> coworker also made that note recently about iphones.
1690: [19:15:45] <SphereSilverNL> I did that too, about half a year ago.
1691: [19:15:48] <AlphaCactus> and another: dslr + saltwater = not good idea
1692: [19:16:03] <SphereSilverNL> Since I tried to teach my iPhone to swim... it's been activating Siri at random times.
1693: [19:18:12] <AlphaCactus> is it asking her for swimming lessons
1694: [19:18:46] <SphereSilverNL> It wasn't asking for it, I thought it was a good idea :P
1695: [19:19:10] <SphereSilverNL> I guess electronics and water, whatever the contents, do not really mix :P
1696: [19:19:33] <AlphaCactus> a good life lesson
1697: [19:25:16] <SphereSilverNL> I have to wait 90 days for my RPi colocation hosting :'(
1698: [19:25:47] <SphereSilverNL> But when it's there... I'm gonna try setting up and running a full hosting from it :D Because I can :P
1699: [19:26:19] <AlphaCactus> coworker here does that.
1700: [19:27:50] <SphereSilverNL> Databases will be on my private VPS, hosting itself will be handled by the RPi colocation at first. I'm curious how it's gonna function and if it's anything fast :D
1701: [19:27:55] <AlphaCactus> 90 says seems like a long time
1702: [19:28:18] <SphereSilverNL> Yeah, but the hoster just had a serious meltdown at their serverpark
1703: [19:28:46] <SphereSilverNL> so... they said "we would probably be better of fixing our serverpark first, then start colocating RPi's for free again"
1704: [19:29:23] <SphereSilverNL> Since the colocating of RPi's is completely free of charge. You only have to buy the RPi + SD-card from them
1705: [19:30:45] <AlphaCactus> ok noob question: whats an RPi
1706: [19:30:53] <SphereSilverNL> Raspberry Pi
1707: [19:30:57] <AlphaCactus> ah
1708: [19:30:58] <SphereSilverNL> Microcomputer ARM-based
1709: [19:31:04] <SphereSilverNL> RPi is shorter :P
1710: [19:31:05] <AlphaCactus> yes I'm familiar with those
1711: [19:31:42] <shakesoda> I have a couple RPi's, I've considered delegating one to simple hosting tasks
1712: [19:31:43] <AlphaCactus> I thot it was the name of the hosting company from the start :P
1713: [19:32:02] <shakesoda> although I feel like silverstripe would make it melt!
1714: [19:32:15] <AlphaCactus> agreed
1715: [19:32:35] <shakesoda> it'd be great for really lightweight stuff
1716: [19:32:49] <SphereSilverNL> shakesoda: I have, here at home, three RPi's working, one Apache-handler, one virtually being the same, working as PHP handler and a dedicated db-handler
1717: [19:32:51] <AlphaCactus> liiiike...?
1718: [19:32:53] <SphereSilverNL> works like a charm
1719: [19:33:00] <SphereSilverNL> AlphaCactus: Check out XBian
1720: [19:33:07] <SphereSilverNL> it's XBMC on the Raspberry Pi
1721: [19:33:38] <SphereSilverNL> It's one awesome XBMC system if you have a NAS or other remote-storage method (because well... 2TB SD-cards don't come cheap :P )
1722: [19:33:58] * RojoD has joined #silverstripe
1723: [19:33:58] * RojoD quit (Changing host)
1724: [19:33:58] * RojoD has joined #silverstripe
1725: [19:34:37] <AlphaCactus> got nas. does it do 1080p or better?
1726: [19:34:44] <SphereSilverNL> yep, it does
1727: [19:34:46] <SphereSilverNL> easily
1728: [19:34:46] <Zauberfisch|idle> spronk simon_w where would you guys buy a font if you choose to self host it?
1729: [19:34:58] <SphereSilverNL> Interface itself is 720p, but it easily plays 1080p
1730: [19:35:00] <SphereSilverNL> www.insanehtpc.com/2013/05/14/featured-setup-richards-raspberry-pi-powered-home-theater/
1731: [19:35:07] <SphereSilverNL> Richard is a friend of mine
1732: [19:35:15] <AlphaCactus> via DLNA or does xbian do its own decoding
1733: [19:35:17] <SphereSilverNL> that's his Raspberry Pi setup ;)
1734: [19:35:19] <Zauberfisch|idle> lets say I want Avant Garde (which they don't have at typekit as it seems)
1735: [19:35:52] <SphereSilverNL> AlphaCactus: I stream directly from my NAS, it's mounted as a network disk
1736: [19:35:55] <SphereSilverNL> it decodes it all
1737: [19:36:09] <SphereSilverNL> there's only one downside: DTS audio is problematic due to licensing issues
1738: [19:36:18] <SphereSilverNL> but AAC et all, no problem
1739: [19:36:24] <SphereSilverNL> smooth, full 1080p playback
1740: [19:37:19] <AlphaCactus> sweet. how come android Arm9 can't play stuff fast enuf that way.
1741: [19:37:21] <SphereSilverNL> although, I must admit, for playing fullHD streams, I prefer playing the stream on my macbook, and forwarding the stream to my RPi, because it's less lag (RPi has less RAM, thus less bufferspace)
1742: [19:37:55] <SphereSilverNL> I wouldn't know. I've seen those Android sticks around, but they really are nothing in usage and playback speed compared to my single Raspberry
1743: [19:38:19] <AlphaCactus> how do you connect to the macbook stream? All the mac fanboys around here just use the AppleTV desktop view feature thing
1744: [19:38:36] <SphereSilverNL> I use VLC decoded stream
1745: [19:39:15] <SphereSilverNL> VLC does the actual playing, I have a quick-button to open up a local stream. I open str://IP_OF_MAC:8083
1746: [19:39:35] <SphereSilverNL> and it's in maximum quality my MBP can stream, on my HD-TV
1747: [19:40:23] <SphereSilverNL> If you don't have a Home Theater system, or you are interested. An RPi with XBian is a serious competitor :D
1748: [19:40:36] <SphereSilverNL> ow, did I mention... XBMC supports audio-airplay?
1749: [19:40:44] <SphereSilverNL> (video airplay is in the making ;) )
1750: [19:41:03] <SphereSilverNL> so, start Spotify on your mac/iphone/ipad and stream it smoothly to your RPi.
1751: [19:41:14] <SphereSilverNL> Unless your WiFi breaks, but you can't blame the Pi for that :P
1752: [19:41:51] <AlphaCactus> don't have any macs myself.
1753: [19:43:16] <AlphaCactus> I'll keep it in mind tho cause like I said the androids don't seem fast enuf, and wheeling my computer over to the TV is a hassle. but I so rarely watch stuff on my tv that I haven't actually tried to set up something good yet.
1754: [19:43:37] <SphereSilverNL> AlphaCactus: well, it works with Windows as well ;)
1755: [19:43:58] <SphereSilverNL> but I prefer my MBP for streaming and such, because it means I don't have to get up from the couch :P
1756: [19:45:09] <AlphaCactus> I do have an air mouse. could that be used to navigate the network drive.
1757: [19:46:24] <SphereSilverNL> Just mount the network drive's directories with movies as a movie-directory, and XBMC will index, fetch fanart, keep track of which movies you watched, show you a great list of your movies, etc.
1758: [19:46:26] <SphereSilverNL> ;)
1759: [19:48:18] <SphereSilverNL> Ow, and there are a few THOUSAND plugins, including e.g. YouTube, Radio-playback, Extra-fanart, Backup-daily (ensures if something goes wrong, you still have your database with all the movies etc.), local weather, local weather with extremely pretty photographs of that tipe of weather
1760: [19:48:35] <SphereSilverNL> ok, I'm starting to sound like a fanboy, but yes, I absolutely love XBMC
1761: [19:48:46] <AlphaCactus> can I code SS site on it from my couch
1762: [19:49:35] <SphereSilverNL> Sure, but you don't need an RPi for that
1763: [19:49:42] <SphereSilverNL> but yes, you can
1764: [19:50:00] <SphereSilverNL> You can also set it up with Rasbian for example, that's a basic Linux installation.
1765: [19:50:34] <SphereSilverNL> I have 2 of those, they run lightweight IDE's without a problem, connect to Logitech keyboards, or wifi keyboards, or bluetooth keyboards without a problem
1766: [19:51:01] <SphereSilverNL> given they have a USB Bluetooth and USB Logitech quickconnector connected ofcourse.
1767: [19:51:17] <SphereSilverNL> the Wifi works because they have a wired connection to the wifi :P
1768: [19:52:46] <SphereSilverNL> (Like, connected via wire to the modem, which has wifi, not to be confused with the yet non-existing wired wifi)
1769: [19:53:38] <AlphaCactus> right
1770: [19:54:14] * Peavers has joined #silverstripe
1771: [19:54:30] <SphereSilverNL> But for XBMC/Mediaplayer information, I think you could better join #xbian for that :P
1772: [19:54:45] <SphereSilverNL> that's the XBian channel (you wouldn't have guessed, right? :P ) on freenode
1773: [19:55:33] <SphereSilverNL> Or checkout their website. but that's a basic.
1774: [19:55:48] <SphereSilverNL> ok, in short:
1775: [19:55:56] * SphereSilverNL loves the Raspberry Pi
1776: [19:55:57] <SphereSilverNL> and
1777: [19:56:01] * SphereSilverNL loves XBMC
1778: [19:56:16] * willmorgan has joined #silverstripe
1779: [19:59:13] <catcher> Is there a reason I can't CustomPage::get() in another page's populateDefaults() method? Exceeds memory.
1780: [20:00:19] <catcher> Actually, it's a DataExtension's populateDefaults() method.
1781: [20:02:39] <AlphaCactus> whats the err
1782: [20:04:36] <catcher> exceeds memory.
1783: [20:05:02] <AlphaCactus> ah, maybe there is some recursion happening?
1784: [20:07:08] <SphereSilverNL> sound like a serious recursion
1785: [20:07:31] <SphereSilverNL> do you have the populateDefaults() checked for if what you are trying to do, doesn't already exist?
1786: [20:09:52] * mobiusnz quit (Quit: Leaving.)
1787: [20:11:23] * zfmf1 quit (Quit: zfmf1)
1788: [20:14:11] <catcher> indeed, a simple ::get() on any object type runs it out of memory
1789: [20:14:53] * jcwacky has joined #silverstripe
1790: [20:14:56] <catcher> switching to onBeforeWrite for now..
1791: [20:15:51] <jcwacky> Just trying to make a SS site live on an unfamiliar server, currently getting "[Notice] Array to string conversion" in Requirements.php: http://www.cambridge-africa.cam.ac.uk
1792: [20:15:57] <jcwacky> Anyone able to help? :)
1793: [20:17:18] * chillu quit (Quit: chillu)
1794: [20:19:49] <AlphaCactus> jcwacky: patience. also, look on Page.php:142, something wrong happening there
1795: [20:20:32] <jcwacky> 142 is just Requirements::combine_files("common.js", $jsFiles);
1796: [20:20:38] <jcwacky> it all works fine on my server
1797: [20:20:55] <jcwacky> and I got a base SS install up and running on this server so I know it meets the requirements.
1798: [20:22:06] <jcwacky> /admin is giving me a black white page too, reckon that's related? www.cambridge-africa.cam.ac.uk/admin
1799: [20:22:55] <AlphaCactus> mod rewrite enabled?
1800: [20:23:08] * micmania1 has joined #silverstripe
1801: [20:23:37] <SphereSilverNL> jcwacky: disable notices first. They shouldn't be on a live website.
1802: [20:23:42] <SphereSilverNL> they should be e-mailed to you
1803: [20:24:05] <SphereSilverNL> array-to-string is a known issue to me
1804: [20:24:15] <SphereSilverNL> one of the variables isn't an array, nothing more
1805: [20:24:18] <jcwacky> I've just temporarily enabled them to assist me.
1806: [20:24:24] <SphereSilverNL> so, PHP compiler can't intersect.
1807: [20:24:26] <jcwacky> It's a new domain, so not concerned.
1808: [20:25:29] <SphereSilverNL> That's a lot of array-to-string notices
1809: [20:26:12] <jcwacky> ah, got it! in my jsFile array I had one of the requirements as "array('mysite/javascript/supersubs.js','js'),"
1810: [20:26:25] <SphereSilverNL> try to see which one isn't an array and add if(!is_array($the_one_that_isnt_array)){ do the duplicate check;}
1811: [20:26:29] <jcwacky> because from what I remembers it was struggling to work out that it was a js file
1812: [20:26:41] <SphereSilverNL> or that, that could work too :P
1813: [20:26:43] <irogue> that'll do it!
1814: [20:26:45] <jcwacky> but the same code works fine on my server
1815: [20:26:58] <jcwacky> is it to do with PHP version?
1816: [20:27:00] <SphereSilverNL> that means you ignore the notices ;)
1817: [20:27:05] <jcwacky> ah!
1818: [20:27:06] <SphereSilverNL> php 5.4 is more strict
1819: [20:27:13] <jcwacky> cool, I'll sort that.
1820: [20:27:21] <SphereSilverNL> but the notices etc. are usually due to configuration of PHP
1821: [20:27:22] <jcwacky> still getting blank page on /admin
1822: [20:27:45] <SphereSilverNL> try adding <% if URLSegment = Security %>$Form<% end_if %>
1823: [20:27:52] <SphereSilverNL> to your root page.ss template
1824: [20:29:24] <jcwacky> still blank
1825: [20:30:10] <SphereSilverNL> No 500 anywhere
1826: [20:30:25] <SphereSilverNL> flush?
1827: [20:30:30] <jcwacky> ah, just found the log
1828: [20:30:32] <jcwacky> [Thu Jun 20 21:29:17 2013] [error] [client 82.197.198.114] PHP Fatal error: Access level to Dashboard_PanelRequest::$url_handlers must be public (as in class RequestHandler) in /site/htdocs/dashboard/code/Dashboard.php on line 418
1829: [20:30:47] <jcwacky> sounds like a 3.0 / 3.1 issue
1830: [20:30:52] <SphereSilverNL> yep
1831: [20:30:54] <SphereSilverNL> it is
1832: [20:30:57] <SphereSilverNL> either use 3.1
1833: [20:30:59] <SphereSilverNL> or use 3.0
1834: [20:31:04] <SphereSilverNL> don't mix CMS/Framework
1835: [20:31:13] <SphereSilverNL> make EVERYTHING a private static
1836: [20:31:16] <jcwacky> yeh, composer seems to have mixed something up
1837: [20:31:23] <SphereSilverNL> and you should be ready to go
1838: [20:31:24] <jcwacky> hold be 3.0
1839: [20:31:32] <SphereSilverNL> go to 3.1
1840: [20:31:38] <SphereSilverNL> and make it all privates
1841: [20:31:46] <jcwacky> yeh, been playing wi 3.1
1842: [20:31:53] <jcwacky> waiting for stable
1843: [20:32:02] <jcwacky> then will update all my sites
1844: [20:32:06] <SphereSilverNL> It's stable enough
1845: [20:32:52] <micmania1> Can anybody help me with a GridField issue? I've added some inline editing and custom actions which work fine. After the action I set a success message to the current form, but only the gridfield refreshes (not the entire form) so this message doesn't show until after the page is refreshed.
1846: [20:33:24] <micmania1> Is there a way to refresh the whole form?
1847: [20:33:41] <SphereSilverNL> This sounds like a javascript issue
1848: [20:33:59] <SphereSilverNL> Quickfix? onAfterHook do a page-refresh
1849: [20:34:30] * chillu has joined #silverstripe
1850: [20:34:38] <micmania1> well, its not technically an issue. Its custom functionality, but I've seen somewhere before where you can target a section of the CMS but I can't seem to find it.
1851: [20:35:20] <micmania1> I think the page forms use it but i'm having no luck in finding it.
1852: [20:35:23] * UndefinedOffset quit (Quit: Leaving.)
1853: [20:39:03] * discorpi1 quit (Quit: leaving)
1854: [20:41:36] * mobiusnz has joined #silverstripe
1855: [20:42:29] <SphereSilverNL> Javascript stuff is not my speciality, sorry
1856: [20:43:50] <Peavers> is there a way to output plain text on a template without it escaping or changing charaters?
1857: [20:44:17] <Peavers> or pre tags or something?
1858: [20:45:58] <SphereSilverNL> .raw
1859: [20:46:09] <SphereSilverNL> explicitly NOT advised to use.
1860: [20:46:14] <Peavers> yup thats what I wanted.
1861: [20:46:20] <SphereSilverNL> but on your own risk, .raw
1862: [20:46:38] <Peavers> Yeah I can understand the issues it could create
1863: [20:46:52] <Peavers> but I've got a user that needs to be able to easily add their own custom JS code via the CMS
1864: [20:46:58] <Peavers> they break it, their fault so all good
1865: [20:47:11] <SphereSilverNL> you should use HTMLText for that
1866: [20:47:22] <SphereSilverNL> you don't have to escape then
1867: [20:47:22] <Pyromanik> what does it mean when you set a transition and it transitions out but not in?
1868: [20:47:27] <Pyromanik> (css)?
1869: [20:47:45] <SphereSilverNL> Pyromanik: you set the wrong direction of the transition? :P
1870: [20:47:57] <Pyromanik> SphereSilverNL: CSS
1871: [20:48:21] <SphereSilverNL> Peavers: I don't care how much javascript they want to do, no way a user can include any HTML/Javascript directly.
1872: [20:48:39] <SphereSilverNL> Pyromanik: Don't know, just guessing something random :P
1873: [20:49:22] <Pyromanik> SphereSilverNL: is not user, rather administrator.
1874: [20:50:01] <Peavers> ^ this
1875: [20:51:19] <Pyromanik> SphereSilverNL: oh, it's a firefox thing :<
1876: [20:51:25] <Pyromanik> goodie :<
1877: [20:51:38] * Nivery quit (Quit: Nivery)
1878: [20:51:40] * PeterB has joined #silverstripe
1879: [20:52:04] * PeterB is now known as Guest92988
1880: [20:52:42] <Peavers> HTML editor is no good either
1881: [20:52:48] <Peavers> it wraps everything in p tags
1882: [20:52:55] <Peavers> it keeps the code clean though
1883: [20:53:00] <Peavers> so halfway mark.
1884: [20:53:03] <SphereSilverNL> make it HTMLText
1885: [20:53:07] <Peavers> It is
1886: [20:53:10] <SphereSilverNL> but DON'T use HTMLEditor
1887: [20:53:15] <Peavers> Oh I see
1888: [20:53:29] <SphereSilverNL> HTMLText for database
1889: [20:53:33] <SphereSilverNL> Textarea for user
1890: [20:53:33] <Peavers> yup
1891: [20:53:46] <Guest92988> Hi guys, anyone on here experienced with the ecommerce module?
1892: [20:54:05] <SphereSilverNL> But I still insist, it's dangerous Peavers
1893: [20:54:06] <SphereSilverNL> ;)
1894: [20:54:13] <SphereSilverNL> Guest92988: depends, there are multiple
1895: [20:54:24] <Peavers> lol, its for one of our google guys to fuck around with GA code.
1896: [20:54:28] <Peavers> I'm not worried.
1897: [20:54:54] <Peavers> Its an internal site of about 10 users, they can kill it and nobody would notice/care
1898: [20:54:57] <SphereSilverNL> Well, if he fucks up, tell him (before you allow him to), he's responsible :P
1899: [20:55:16] <Peavers> its a her ;)
1900: [20:55:25] <Peavers> And she gets super mad everyone assums its a dude.
1901: [20:55:27] <Pyromanik> Peavers: then definitely definitely
1902: [20:55:28] <Pyromanik> :P
1903: [20:55:31] <SphereSilverNL> In that case... be nice and hope for a good date :D
1904: [20:55:35] <SphereSilverNL> ow... ehm...
1905: [20:55:37] <Pyromanik> HA, sif
1906: [20:55:43] <Guest92988> SphereSilverNL: I'm using http://www.silverstripe.org/ecommerce-module/
1907: [20:56:27] <SphereSilverNL> Guest92988: no offence, but as most ecommerce modules, it abuses the sitetree for no good reason....
1908: [20:56:53] <SphereSilverNL> I have no experience with that exact module, but sitetree cluttering makes me go "WTFOHNOESGETOUTNOW"
1909: [20:57:02] <Guest92988> fiar enough
1910: [20:57:17] <SphereSilverNL> I don't have a good alternative yet, sorry.
1911: [20:57:20] <Guest92988> it is a complex module
1912: [20:57:28] <Guest92988> sure no worries
1913: [20:57:37] <SphereSilverNL> well, for some reason, e-commerce is quite complex
1914: [20:57:52] <SphereSilverNL> every customer wants X plus that little bit extra
1915: [20:58:03] <Guest92988> for me it's just the issue of installation, if you hit a wall you hit a wall and there is little info out there
1916: [20:58:14] <SphereSilverNL> I understand.
1917: [20:58:16] <Guest92988> been on this sucker for two days
1918: [20:58:30] <Guest92988> might be an idea to get in touch with the maker I think
1919: [20:58:39] <Guest92988> running out of options
1920: [20:58:40] <SphereSilverNL> could you make a pasty of the error you're running into?
1921: [20:59:04] <Guest92988> well it's a few things that is happening
1922: [20:59:26] <Guest92988> to be honest it seems to work for other people so I'm sure there is just something I am missing here at a server level perhaps
1923: [20:59:49] <Guest92988> it's one of "those" problems, ha!
1924: [21:00:15] <SphereSilverNL> You might be missing enabled server-modules
1925: [21:00:47] <SphereSilverNL> but that's hard to say from my office :P
1926: [21:01:04] <Guest92988> the module tries to write to the member table, and this is just one error where login fails
1927: [21:01:21] <Guest92988> so hard to tell though with little error reporting
1928: [21:01:40] <SphereSilverNL> Ok, Framework, CMS and Module version?
1929: [21:01:56] <SphereSilverNL> I'm assuming this is 2.4.9 or better, but NOT 3.0?
1930: [21:02:06] <Guest92988> using SS3.0.5
1931: [21:02:13] <Guest92988> module v3
1932: [21:02:25] <SphereSilverNL> In that case, I'm out
1933: [21:02:35] <Guest92988> that's why I'm suprised
1934: [21:02:43] <SphereSilverNL> the SS3 version isn't fully stable yet, as far as I know
1935: [21:03:34] <AlphaCactus> Nico says it works with 3.0
1936: [21:04:05] <SphereSilverNL> I guess you'd better ask him then :) because I'm out, I wouldn't know what's wrong here :P
1937: [21:04:18] * SphereSilverNL is coughing up blood again
1938: [21:04:44] * jcwacky quit (Quit: jcwacky)
1939: [21:05:19] * AlphaCactus pats SphereSilverNL on the back reassuringly.
1940: [21:05:37] <Guest92988> yeah there is a solution I'm sure, others on the forum seem to have it working which gives me faith at least
1941: [21:05:59] <AlphaCactus> do you have latest from github or wherver it is
1942: [21:06:03] <SphereSilverNL> I got diagnosed with Bronchitis AlphaCactus, so it's normal to cough up blood :P
1943: [21:06:16] <AlphaCactus> rly
1944: [21:06:22] <SphereSilverNL> all dependencies installed Guest92988 ?
1945: [21:06:35] <Guest92988> yeah it should be ready to go
1946: [21:06:39] <SphereSilverNL> AlphaCactus: yeh, kinda sucks, but it's better than aids or cancer :D
1947: [21:06:59] <AlphaCactus> such a positive outlook
1948: [21:07:00] <Guest92988> I can see the shopping cart but certain things just don't seem to work
1949: [21:07:26] <Guest92988> for instance it has a checkbox for making a product out of stock
1950: [21:07:29] <SphereSilverNL> you did a full build, flush, reset, rebuild, reflush?
1951: [21:07:45] <Guest92988> out of stock works fine but in stock gives it a white screen of death
1952: [21:07:48] <Guest92988> so weird
1953: [21:07:55] <Guest92988> yeah did all the flushes etc
1954: [21:08:07] <SphereSilverNL> is your environment in dev-mode?
1955: [21:08:10] <Guest92988> been using SS now for around 4-5 years so used to all this sort of stuff
1956: [21:08:34] <Guest92988> even in dev mode, with php errors switched on in Apache it still puts out a white screen
1957: [21:08:49] <Guest92988> that's why I'm stumped
1958: [21:09:05] <Guest92988> I think it calls for a seasoned ecommerce module veteran
1959: [21:09:31] <SphereSilverNL> ok, just asking :D
1960: [21:09:38] <Guest92988> sure I know
1961: [21:09:45] <Guest92988> thanks though
1962: [21:09:47] <Guest92988> appreciated
1963: [21:09:58] <SphereSilverNL> I'd rather be sure it's in dev-mode
1964: [21:10:18] <SphereSilverNL> than try to figure out what's going wrong without any dev knowing what the fuck is going on ;)
1965: [21:10:28] <micmania1> anybody know much about using the X-Pjax header in the CMS? I've got my form refreshing but its not clearing errors each time - just adding them to the HTML.
1966: [21:10:45] <Guest92988> I think I'm gonna put it down to archams razor and just start a fresh tomorrow
1967: [21:10:49] * willmorgan quit (Ping timeout: 246 seconds)
1968: [21:10:51] <Guest92988> I bet it works ha!
1969: [21:11:07] <SphereSilverNL> Guest92988: I really can't tell, but there's one last hope if it doesn't
1970: [21:11:34] <SphereSilverNL> package your working directory, including a SQL export
1971: [21:11:46] <Guest92988> yeah
1972: [21:11:58] <SphereSilverNL> and mail it to me/Alpha/Zauber
1973: [21:12:06] <Guest92988> ok thanks
1974: [21:12:19] <SphereSilverNL> I'm having a real hard time trying to understand what's going wrong
1975: [21:12:34] <SphereSilverNL> best thing I can do, is test on my on machines.
1976: [21:12:45] <Guest92988> ok thanks
1977: [21:12:53] <Guest92988> I'll press on with it anyway and see if I can sort it
1978: [21:13:17] <Guest92988> thanks for listening
1979: [21:13:42] <SphereSilverNL> I can't tell you what's wrong, as I said. So, if you really need help, e-mail one of us with a package (or download location, I guess it could be large :P )
1980: [21:14:01] <Guest92988> cheers dude
1981: [21:14:11] <Guest92988> much appreciated
1982: [21:14:21] <SphereSilverNL> I wish I could tell you more, but I'm at absolute rock bottom. I can't tell why or how something is failing
1983: [21:14:50] <wmk> in ss3.1, $extra_statics in extensions is deprectated. Did just putting $db in a extension also work in 3.0?
1984: [21:15:03] <SphereSilverNL> wmk: yep
1985: [21:15:30] <SphereSilverNL> class extension extends DataExtension{ $db = array( yourDB); }
1986: [21:16:10] <SphereSilverNL> and ofcourse, link the extension to the correct class via _config/extensions.yml
1987: [21:17:28] <wmk> of course. so i can patch silversmith for this issue. unfortunately on creation silversmith uses Object::extend() in the file of the newly created class which is ok to clean up ;)
1988: [21:18:19] <SphereSilverNL> SilverSmith is partly 2.4.x based if I'm not mistaken, that explains the "no-more-but-should-work" code ;)
1989: [21:18:55] <wmk> seems so
1990: [21:19:09] <wmk> it's cool but has some flaws.
1991: [21:19:26] <wmk> but it should save a lot of time in the long term, so i love it.
1992: [21:19:39] <wmk> and it's sooo meta
1993: [21:19:54] <SphereSilverNL> It's nice, but only for configurations, actual code is still work :P
1994: [21:20:18] * willmorgan has joined #silverstripe
1995: [21:20:37] <SphereSilverNL> I should be writing tests by now :/
1996: [21:21:22] <SphereSilverNL> Dev's should not write tests
1997: [21:22:10] <AlphaCactus> Why is it that you can upload multiple images to a has_one image. that doesn't make any sense to me.
1998: [21:22:24] <SphereSilverNL> You can't
1999: [21:23:08] <SphereSilverNL> it doesn't work that way
2000: [21:23:15] <SphereSilverNL> Zauberfisch|idle: WAKE UP
2001: [21:23:27] <AlphaCactus> i'm seriously. GridFieldBulkEditingTools requires a has_one. is it expecting me to have a wrapper class or something.
2002: [21:23:28] <SphereSilverNL> Zauberfisch|idle should be able to tell you more.
2003: [21:23:31] <Zauberfisch|idle> blubb
2004: [21:23:48] <SphereSilverNL> bulb
2005: [21:23:58] <SphereSilverNL> (I'm a dyslectic fish)
2006: [21:24:09] <Zauberfisch|idle> I have no idea, I don't use GridFieldBulkEditingTools
2007: [21:24:24] <Zauberfisch|idle> but no, UploadFIeld should not allow to upload multiple fields into has_one
2008: [21:24:28] <Zauberfisch|idle> if it does, its a bug
2009: [21:24:31] <SphereSilverNL> owwwwwww, I get it now
2010: [21:24:53] <SphereSilverNL> You should have a many ralation to your custom class
2011: [21:24:55] <wmk> AlphaCactus, for bulk editing tools you need a class that has an image as has_one
2012: [21:25:04] <wmk> SphereSilverNL, right
2013: [21:25:05] <AlphaCactus> ah
2014: [21:25:07] <SphereSilverNL> and a one relation FROm your custom class
2015: [21:25:11] <AlphaCactus> i wondered
2016: [21:25:16] <SphereSilverNL> in you custom-class
2017: [21:25:20] <wmk> like "Album" 1:n "AlbumItem" 1:1 "Image"
2018: [21:25:27] <AlphaCactus> roger that
2019: [21:25:30] <SphereSilverNL> you have an has_one relation to image
2020: [21:25:40] <Zauberfisch|idle> what wmk said sounds valid
2021: [21:25:46] <SphereSilverNL> if you don't follow that order, it'll break
2022: [21:26:22] <wmk> and THEN bulkeditingtools are really great, cause you can put some images to your album and get a neat form for adding titles and other custom stuff to your AlbumItem
2023: [21:26:33] <SphereSilverNL> exactly
2024: [21:27:11] <SphereSilverNL> you're trying to make a many-relation on something that isn't supported, I guess
2025: [21:27:21] <wmk> Zauberfisch|idle, got an idea how i can use MemberProfilePage for my Problem. Just subclassing it and then i try to get the logic for different registration prcesses depending on MemberGroups in it.
2026: [21:28:04] <AlphaCactus> well, we had been inheriting from Image to support the relationship
2027: [21:28:22] <wmk> AlphaCactus, no, you need a wrapper that holds the image
2028: [21:30:18] <simon_w> AlphaCactus, wrong way of doing it. Just many_many Image
2029: [21:30:39] <AlphaCactus> no, it was many_many GroupImage, which inherited from Image
2030: [21:30:51] <AlphaCactus> anyway, I'm fixing it
2031: [21:30:56] <simon_w> Like I said, wrong way of doing it :p
2032: [21:31:10] * MrJeremy has joined #silverstripe
2033: [21:31:14] <AlphaCactus> porting from 2.3.3, gimme a break
2034: [21:31:20] <Zauberfisch|idle> wmk sorry, I I would need to look deeper into your system
2035: [21:31:21] <SphereSilverNL> ouch
2036: [21:31:40] <Zauberfisch|idle> wmk are you going to be at the silverstripe meetup this saturday in vienna?
2037: [21:32:05] <Zauberfisch|idle> simon_w did you got my question eariler today? (about buying fonts)
2038: [21:32:05] <wmk> hmm, same problem like every meetup.
2039: [21:32:21] <wmk> are you going there on saturday?
2040: [21:32:21] <SphereSilverNL> a meetup means beer
2041: [21:32:22] * DigNZ has joined #silverstripe
2042: [21:32:23] <simon_w> Zauberfisch|idle, eh, back scroll :p I've never done it
2043: [21:32:23] * DigNZ quit (Remote host closed the connection)
2044: [21:32:28] <SphereSilverNL> what's the problem wmk?
2045: [21:32:37] * DigNZ has joined #silverstripe
2046: [21:32:40] <Zauberfisch|idle> wmk yes, I will
2047: [21:32:45] <SphereSilverNL> I would love to go to Vienna for a beer :D
2048: [21:32:56] <wmk> SphereSilverNL, the meetup is some hours away
2049: [21:33:06] <Zauberfisch|idle> simon_w my question was, where would you buy a font to be used in the web? I am having a hard time finding a proper offer
2050: [21:33:14] <SphereSilverNL> I'm 3 days travel away wmk ;)
2051: [21:33:18] <wmk> but Zauberfisch|idle would be intersting to chat w/ you while going by train...
2052: [21:33:28] <simon_w> Zauberfisch|idle, yeah, and my answer was I've never done it
2053: [21:33:38] <Zauberfisch|idle> you did reply? :O
2054: [21:33:42] <Zauberfisch|idle> must have missed that
2055: [21:33:44] <Zauberfisch|idle> ok, thanks
2056: [21:33:56] <simon_w> Just then!
2057: [21:34:06] <wmk> oh, Netherlands should only be 1 day by train SphereSilverNL
2058: [21:34:07] <Zauberfisch|idle> anyone else here expericene wer to buy fonts?
2059: [21:34:16] <SphereSilverNL> It isn't wmk :P
2060: [21:34:16] <wmk> maybe 1 day and night.
2061: [21:34:28] <Zauberfisch|idle> SphereSilverNL in fact, our meetups do not really include beer I think
2062: [21:34:35] <SphereSilverNL> it's almost 2 days, but somewhere, I need my sleep, making it 3 days
2063: [21:34:40] <SphereSilverNL> really?
2064: [21:34:44] <Zauberfisch|idle> I don't drink alcohol and I have not seen others get drunk either
2065: [21:34:47] <SphereSilverNL> that sucks
2066: [21:34:56] <SphereSilverNL> Dutch meetups are beer-included
2067: [21:34:56] * willmorgan quit (Ping timeout: 264 seconds)
2068: [21:35:00] * chrisrio has joined #silverstripe
2069: [21:35:04] <Zauberfisch|idle> we have mate
2070: [21:35:05] <Zauberfisch|idle> yay
2071: [21:35:08] <wmk> SphereSilverNL, where are you located? and using a train or EuroNight train you can also sleep.
2072: [21:35:27] <wmk> mate? kind of tea?
2073: [21:35:32] <SphereSilverNL> wmk: I sleep very badly in any other place than my own bed :/
2074: [21:35:46] <Zauberfisch|idle> wmk yeah, the mate tee stuff is the base
2075: [21:35:49] <SphereSilverNL> so, even if I would be able to make it, I'd look like a zombie
2076: [21:35:51] <Zauberfisch|idle> its sort of an ice tea
2077: [21:35:57] <wmk> ah
2078: [21:36:08] <SphereSilverNL> which, is, kinda cool ofcourse, but quite useless at the same time
2079: [21:36:14] <Zauberfisch|idle> club mate is very popular one
2080: [21:36:35] <Zauberfisch|idle> but in linz the local hackerspace prefers Flora Power
2081: [21:36:42] <Zauberfisch|idle> which is a different vendor
2082: [21:37:01] <wmk> ok, if i don't travel by train but with a mobilehome i have my bed always with me, but 80km/h isn't that fast
2083: [21:37:10] <wmk> but cool and relaxing.
2084: [21:37:29] <SphereSilverNL> for those who don't know: I have a blood deficit, due to which I'm simply unable to focus for more than 6 hours and also am unable to sleep at a place that "is not mine".
2085: [21:37:32] * wmk has to get some cool music for this years summer trips
2086: [21:37:51] <SphereSilverNL> the sleeping part ofcourse is just me being me ;)
2087: [21:38:44] <SphereSilverNL> anyway, for the NL-meetup, I got pretty much all sponsors fired up, so I think it should be interesting :)
2088: [21:40:47] <wmk> Zauberfisch|idle, also had a look at silversocial. Some stuff like restrictedobjects makes configuration difficult. But it'S a very nice boilerplate for timeline stuff
2089: [21:41:57] <Zauberfisch|idle> but just for 1 day vienna mobile home isn't worth it if you ask me
2090: [21:42:06] <Zauberfisch|idle> and train goes in 1.5h or less
2091: [21:42:10] <Zauberfisch|idle> so that is pretty fast
2092: [21:42:38] <SphereSilverNL> Don't worry ;)
2093: [21:42:44] <SphereSilverNL> If I could, I will
2094: [21:43:05] <Pyromanik> ROFL GOOGLE
2095: [21:43:07] <Pyromanik> HAHAHAHAHA
2096: [21:43:07] <SphereSilverNL> I have 8 deadlines, 1 day
2097: [21:43:20] <SphereSilverNL> guess why I can't make it to Vienna ;)
2098: [21:43:22] <Pyromanik> Google today, cool animation of someone knitting a scarf
2099: [21:43:27] <Pyromanik> "First day of winter"
2100: [21:43:35] <Pyromanik> FUCKOFF, it's the SHORTEST DAY
2101: [21:43:44] <Pyromanik> it's the f'n MIDDLE of winter!
2102: [21:43:52] <SphereSilverNL> brb
2103: [21:44:01] <wmk> Pyromanik, depends
2104: [21:44:21] <Pyromanik> it's the winter solstice.
2105: [21:44:23] <Pyromanik> so yes
2106: [21:44:23] <irogue> wait, do the americans define seasons differently as well?
2107: [21:44:24] <Pyromanik> yes it is
2108: [21:44:25] * Guest92988 quit (Ping timeout: 250 seconds)
2109: [21:44:46] * willr_ has joined #silverstripe
2110: [21:44:46] * willr_ quit (Changing host)
2111: [21:44:46] * willr_ has joined #silverstripe
2112: [21:45:08] <AlphaCactus> differently than what
2113: [21:45:27] <wmk> Pyromanik, in Europe it's more kind of middle summer (well, the summer just began these days)
2114: [21:45:29] <irogue> In the USA and Canada (and sometimes in Britain) the season is regarded as beginning at the solstice and ending on the following equinox
2115: [21:45:42] <Pyromanik> irogue: yanks define everything differently, because colour is too hard.
2116: [21:45:51] <AlphaCactus> it is
2117: [21:46:01] <AlphaCactus> customize
2118: [21:46:05] <simon_w> wmk, the doodle's location specific
2119: [21:46:08] <Pyromanik> zzzzz
2120: [21:46:37] * trent001 has joined #silverstripe
2121: [21:46:53] <irogue> "Astronomically, the winter solstice, being the day of the year which has fewest hours of daylight, ought to be the middle of the season"
2122: [21:47:04] <irogue> "Winter is often defined by meteorologists to be the three calendar months with the lowest average temperatures. This corresponds to the months of December, January and February in the Northern Hemisphere, and June, July and August in the Southern Hemisphere."
2123: [21:47:29] <irogue> so no matter whether you go by Astronomical or Meteorological measurements, it is not the start of winter
2124: [21:47:46] <irogue> americans just like to be different
2125: [21:47:56] * CodeTrap quit (Ping timeout: 268 seconds)
2126: [21:48:01] <AlphaCactus> and fat
2127: [21:48:05] <ss23> XD
2128: [21:48:40] <chrisrio> NZ skifields just opened, and theyre open until ~oct
2129: [21:48:50] <chrisrio> so you can decide if today is the middle of winter or not :P
2130: [21:48:57] <Pyromanik> I feel that the middle of something (like a solstice) should be in the middle.
2131: [21:49:12] <Pyromanik> that's how I define winter.
2132: [21:49:33] <chrisrio> I also object to the spelling of the word yacht - while we're at it.
2133: [21:49:38] <simon_w> chrisrio, ski season needs to start after snow builds up, which isn't the start of winter :p
2134: [21:49:42] <ss23> lol chrisrio
2135: [21:49:42] <wmk> <singing>summertime, and the living is easy...</singing>
2136: [21:50:22] <chrisrio> simon_w: snow is built up artificially, which is purely temp driven. If winter isn't the coldest part of the year then we've been lied to for a long time.
2137: [21:50:53] <irogue> yes, but logically the *middle* of winter should be the coldest
2138: [21:51:05] <chrisrio> you'd think so
2139: [21:51:12] <simon_w> chrisrio, so still not the start of winter today :p
2140: [21:51:15] <irogue> not the first day, that makes no sense
2141: [21:52:36] <chrisrio> simon_w: yeah nah, I agree
2142: [21:52:55] <simon_w> "yeah nah" really sounds like you don't :p
2143: [21:53:18] <Pyromanik> 09:49 < wmk> <singing>summertime, and the living is easy...</singing>
2144: [21:53:21] * Pyromanik approve
2145: [21:54:01] <simon_w> Anyway, SAML :(
2146: [21:54:06] * willmorgan has joined #silverstripe
2147: [21:54:24] <chrisrio> yeah nah is a great expression.
2148: [21:54:31] <wmk> well, sometimes it'd be better if it was colder: http://www.kansas.com/2013/06/19/2854036/flood-damages-austrian-unesco.html <-- which is about 100m away from my home
2149: [21:54:40] <chrisrio> and I'll danceoff anyone who disagrees
2150: [21:54:42] <wmk> m= meters
2151: [21:54:53] <chrisrio> according to the wiki its coldest in our fair land in July.
2152: [21:54:54] <simon_w> m = metres :p
2153: [21:54:55] <chrisrio> on average.
2154: [21:55:04] <chrisrio> with june and august sitting either side.
2155: [21:55:24] <simon_w> [09:46:26] <irogue> "Winter is often defined by meteorologists to be the three calendar months with the lowest average temperatures. This corresponds to the months of December, January and February in the Northern Hemisphere, and June, July and August in the Southern Hemisphere."
2156: [21:55:36] <chrisrio> yep
2157: [21:55:50] <chrisrio> so June is the start of winter
2158: [21:55:57] <chrisrio> and the skifields just opened
2159: [21:56:06] <wmk> simon_w, guess we're both right: meter (AE) / metre (BE) [abbr.: m] [metr.]
2160: [21:56:23] <simon_w> wmk, nope. AE is wrong :p
2161: [21:56:49] <chrisrio> the shortest day is just a few awkward weeks late ;P
2162: [21:56:59] <irogue> americans don't get to change spelling of words they don't even use :-P
2163: [21:57:02] * willmorgan1 has joined #silverstripe
2164: [21:57:09] <chrisrio> you mean words like
2165: [21:57:11] <chrisrio> moran?
2166: [21:57:22] <ss23> I need better memory
2167: [21:57:34] <ss23> have to look up the dman ssh dynamic tunnel crap every time I wnat to use it
2168: [21:58:29] <chrisrio> what are you guys using for SS3 for gallery functionality, CMS editable.
2169: [21:58:47] <chrisrio> I googled and was unenthused.
2170: [21:58:51] <chrisrio> hard
2171: [21:59:39] * willmorgan quit (Ping timeout: 268 seconds)
2172: [21:59:50] <irogue> chrisrio: tbh I think we all roll our own
2173: [22:00:00] <irogue> everyone expects something a little different
2174: [22:00:14] <chrisrio> figured
2175: [22:00:19] <irogue> and it's a very easy thing to roll
2176: [22:00:25] * Werner_2_ has joined #silverstripe
2177: [22:00:34] <chrisrio> yeah, I just thought a gallery would be just mainstream enough
2178: [22:00:40] <chrisrio> to have a good quality community module
2179: [22:01:30] * wmk quit (Read error: Connection reset by peer)
2180: [22:02:26] <irogue> if everyone actually put their heads together we probably could :P
2181: [22:02:58] <chrisrio> that would require that we all stop, collaborate and listen.
2182: [22:03:04] <irogue> exactly!
2183: [22:03:11] * irogue starts humming
2184: [22:03:14] <chrisrio> ..not the response I was looking for.
2185: [22:03:17] <chrisrio> there we go.
2186: [22:03:56] <SphereSilverNL> I'm off to bed folks
2187: [22:04:00] <irogue> wonder why trains aren't running in wellington? https://pbs.twimg.com/media/BNO715dCAAAzM4m.jpg:large :-P
2188: [22:04:09] <irogue> SphereSilverNL: be there soon babe
2189: [22:04:18] <AlphaCactus> http://www.silverstriperesources.com/articles/silverstripe-3-gallery-plugin-module/ ?
2190: [22:05:03] <chrisrio> had a look at that alpha
2191: [22:05:08] <SphereSilverNL> irogue: always welcome, but if you don't mind, you'll be put in the guestroom
2192: [22:05:11] <SphereSilverNL> :P
2193: [22:05:21] <chrisrio> it shits the bed
2194: [22:05:24] <chrisrio> with the latest SS
2195: [22:05:25] <AlphaCactus> ah ok
2196: [22:05:34] <chrisrio> thanks though bud _b
2197: [22:05:44] * SphereSilverNL quit (Quit: If it's not broke. It's lacking features.)
2198: [22:06:03] <chrisrio> I was expecting an instagram shot
2199: [22:06:05] <chrisrio> of hipsters
2200: [22:06:09] <chrisrio> lying over the tracks
2201: [22:06:11] <chrisrio> tbqh
2202: [22:06:20] <irogue> haha
2203: [22:06:23] <irogue> oh god
2204: [22:06:40] <ss23> irogue: bro, all good
2205: [22:06:45] <ss23> if they go fast enough, they'll make it over
2206: [22:07:02] <irogue> hipster-spotting in Newtown is tiring
2207: [22:07:08] <irogue> THEY'RE EVERYWHERE
2208: [22:07:16] <ss23> XD
2209: [22:07:23] <ss23> Dont act like it's just Newtown
2210: [22:07:33] <ss23> Newtown has a fair share of homeless/poor people too
2211: [22:08:00] <willr_> they didn't blow away?
2212: [22:08:12] <irogue> ss23: i noticed
2213: [22:08:19] <irogue> when we were standing outside your place talking
2214: [22:08:42] <irogue> and multiple people walked by and scavenged stuff from the dumpster just down the road
2215: [22:08:47] <simon_w> ss23, that's because the shelter's in Newtown
2216: [22:09:14] <irogue> i have honestly never seen people dumpster-diving in the middle of the day before
2217: [22:09:39] <ss23> Ah I see, simon_w
2218: [22:10:10] <AlphaCactus> hipsters dumpster dive?
2219: [22:10:34] <irogue> in this case i was referring to the large homeless/poor population
2220: [22:10:35] <simon_w> Yours don't?
2221: [22:10:37] <AlphaCactus> Here in Amurica we call those bums
2222: [22:11:01] <simon_w> "Driving 50 km/h down #Wgtn South Coast. Wait, what's that? Is it a bird? A plane? No, it's a wheelie bin that just overtook my patrol car."
2223: [22:11:14] <irogue> rofl
2224: [22:11:15] <irogue> snap, simon_w
2225: [22:11:29] <irogue> [10:10] <irogue> @BetterWorkStory: Driving 50 km/h down #Wgtn South Coast. Wait, what's that? Is it a bird? A plane? No, it's a wheelie bin that just overtook my patrol car.
2226: [22:11:41] <irogue> just posted that in another channel at like exactly the same time
2227: [22:11:47] <irogue> TWINS!
2228: [22:11:56] <ss23> lol
2229: [22:12:30] * Werner_2_ is now known as wmk
2230: [22:12:30] <irogue> same! SAME! SAME!!
2231: [22:13:59] <simon_w> Haha
2232: [22:14:12] <micmania1> Can anybody help with a X-Pjax issue i'm having with the CMS? I'm trying to replace "CurrentForm" but my data is returning was though its been put through addslashes().
2233: [22:14:27] * willmorgan1 quit (Ping timeout: 268 seconds)
2234: [22:14:30] <chrisrio> everytime I'm in Wellington I stay in Newtown
2235: [22:14:48] <chrisrio> potentially slants my view of wellington and hipsters.
2236: [22:16:14] <simon_w> chrisrio, stay on Cuba Street next time!
2237: [22:16:37] <chrisrio> sweet buskers on cuba
2238: [22:16:50] <chrisrio> and the drunken early 20's remind me of dunedin.
2239: [22:17:40] * gelignite quit (Quit: http://bit.ly/nkczDT)
2240: [22:17:44] <simon_w> Other end
2241: [22:18:02] <chrisrio> oh
2242: [22:18:04] <chrisrio> that end.
2243: [22:18:13] <simon_w> Hipster end!
2244: [22:18:23] <simon_w> Well, just past Cuba mall
2245: [22:18:44] <chrisrio> you guys seen all this snow stuff on thecivilian?
2246: [22:18:48] <chrisrio> hilaridavis
2247: [22:23:29] <wmk> do i have to create branches for pull requests at github or can i just branch at my local repo? have troubles uploading a new branch
2248: [22:24:32] <simon_w> wmk, branch locally, then git push origin +<branch_name> first time (the + is important, and only for the first time)
2249: [22:24:46] <wmk> htanks
2250: [22:24:52] <wmk> s/ht/th
2251: [22:25:44] <micmania1> http://www.sspaste.com/paste/show/51c380fc6c7b6 - What am I doing wrong here?
2252: [22:26:34] <Peavers> Why am I getting "write' does not exist on 'HasManyList"?
2253: [22:26:39] <Peavers> when trying to write data?
2254: [22:27:35] <AlphaCactus> Peavers: you probably need to write individual records
2255: [22:27:53] <Peavers> tis what I'm trying to do lol
2256: [22:28:28] <simon_w> Peavers, apparently not :p
2257: [22:28:35] * nimeso has joined #silverstripe
2258: [22:28:36] <Peavers> so its seems ;)
2259: [22:29:33] <Peavers> Seems I've also solved it
2260: [22:30:38] <Peavers> Is it easily possible to to change the site theme before/on page load?
2261: [22:31:10] * RojoD quit (Ping timeout: 256 seconds)
2262: [22:31:40] <nimeso> Peavers yes... I'll find the tutorial.
2263: [22:31:52] <Peavers> chur
2264: [22:33:52] <irogue> https://twitter.com/AaronM_NZ/status/347679655953829888/photo/1
2265: [22:33:53] <irogue> hahaha
2266: [22:35:03] <Pyromanik> hahaha irogue
2267: [22:35:47] <nimeso> Peavers... cnt find the tut BUT ... you use SSViewer::set_theme('newTheme'); inside the public function init() { of the Page controller i think
2268: [22:36:10] <Pyromanik> micmania1: dunno, haven't played with gridfield internals enough
2269: [22:36:11] <Peavers> sweet that should be enough to monkey code it
2270: [22:37:53] * Motoservo quit (Ping timeout: 268 seconds)
2271: [22:38:54] <nimeso> Hey guys... I'm having a very weird issue the the 'Files' in the model admin... I can upload into the 'Uploads' folder fine and the new file appers in the gridfield... BUT when I'm editing a page and use UploadField and use the 'From Files' button... the new image does not show up in the pop-up grid field?
2272: [22:39:01] <AlphaCactus> whaaaat. why is the ExportToCSV button misaligned now. who writes this software.
2273: [22:39:22] <Peavers> AlphaCactus noticed this too. Was rather upset for the rest of the day.
2274: [22:39:39] <ss23> merging branches in git is easier than I expected
2275: [22:40:11] <Peavers> sure is
2276: [22:40:25] <Peavers> Remembering to create a branch in the first place is the hard part ;)
2277: [22:40:33] <ss23> haha, that's for sure
2278: [22:40:37] <ss23> "fuck fuck, uh, git stash..."
2279: [22:41:09] <Pyromanik> git 'stashe
2280: [22:41:21] <micmania1> thanks for looking, Pyromanik
2281: [22:41:29] <ss23> XD
2282: [22:44:03] <wmk> simon_w, and how can i get my fork up to date with the original branch? i just tried to send a pull request, but it contains some old commits i pulled some weeks ago.
2283: [22:45:21] <nimeso> Ok, I don't know if anyone got my last question... I've discovered that my other SS3.1 are ok... just this one... could it be a weird permissions issue? It does not work on both my local and live server
2284: [22:48:59] <Peavers> nimeso whats the file permission on the assets folder?
2285: [22:49:12] <Peavers> from project folder cmd run ls -ls
2286: [22:50:07] <Pyromanik> wmk: git pull origin?
2287: [22:50:15] <Pyromanik> git pull origin/branch
2288: [22:50:22] <Pyromanik> or git pull upstream/branch
2289: [22:50:25] <Pyromanik> or soemthing like that
2290: [22:50:29] <wmk> Pyromanik, no, origin is my fork, i need to add the upstream (the original)
2291: [22:50:32] <wmk> Pyromanik, thanks
2292: [22:50:36] <Pyromanik> so add the upstream
2293: [22:50:38] <Pyromanik> :>
2294: [22:50:39] <wmk> yup
2295: [22:50:49] <Pyromanik> git remote add blah blah blah
2296: [22:51:03] <wmk> well, another 10 times and i know how to use it *G*
2297: [22:51:12] * Jayden90 has joined #silverstripe
2298: [22:51:31] <nimeso> peavers: all 777 (now, just to check)
2299: [22:54:05] <nimeso> I've checked the htacces as well WTF is going on ;/ voodo
2300: [22:55:14] * travis-ci has joined #silverstripe
2301: [22:55:15] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#379 (3.1 - 09ca497 : Ingo Schommer): The build passed.
2302: [22:55:15] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/da0cc25c3b5a...09ca497b368a
2303: [22:55:15] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8293181
2304: [22:55:15] * travis-ci has left #silverstripe
2305: [22:55:15] <AlphaCactus> Why does 3.1 cms have empty silverstripe_version file. hasn't that been working out yet.
2306: [22:57:14] <wmk> ARGH!
2307: [22:57:15] <simon_w> AlphaCactus, because you're on a dev branch
2308: [22:57:37] <AlphaCactus> ah
2309: [23:00:01] <AlphaCactus> its it commont to need to delete cookies when switching branches
2310: [23:00:12] <simon_w> Nope
2311: [23:01:21] <AlphaCactus> i totally had to. was getting a jquery error until I did. could be a weird thing with the GridFieldBulkEditingTools module
2312: [23:06:15] * travis-ci has joined #silverstripe
2313: [23:06:16] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#428 (pulls/allowed_actions-deny - aeacbc3 : Ingo Schommer): The build passed.
2314: [23:06:16] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/commit/aeacbc38aaf2
2315: [23:06:16] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/8293584
2316: [23:06:16] * travis-ci has left #silverstripe
2317: [23:07:06] * dospuntocero has joined #silverstripe
2318: [23:07:57] <AlphaCactus> oh it did it again. must be a bug with something
2319: [23:09:04] * travis-ci has joined #silverstripe
2320: [23:09:04] <travis-ci> [travis-ci] chillu/silverstripe-framework#17 (pulls/allowed_actions-deny - a53adfa : Ingo Schommer): The build is still failing.
2321: [23:09:04] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/f4f8e8d680ac...a53adfac5b20
2322: [23:09:04] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8293593
2323: [23:09:04] * travis-ci has left #silverstripe
2324: [23:14:45] * catcher quit (Quit: Leaving)
2325: [23:15:42] <Pyromanik> 10:54 < AlphaCactus> Why does 3.1 cms have empty silverstripe_version file. hasn't that been working out yet.
2326: [23:15:51] <Pyromanik> probably because you checked it out rather than used a tarball
2327: [23:16:23] <AlphaCactus> well I downloaded the zip, but that's about the same as a checkout
2328: [23:18:27] * micmania1 quit (Ping timeout: 250 seconds)
2329: [23:18:50] * nimeso quit (Quit: Page closed)
2330: [23:20:51] <Peavers> If I've got a function inside a class a extends Page etc etc I should be able to call that function from any template file using <% loop a %> yeah?
2331: [23:21:22] <ss23> only if the template is for a page that is from class a right?
2332: [23:21:29] <ss23> If it extends page, only the subclasses will have it
2333: [23:21:31] <AlphaCactus> <% loop $a %> assuming a returns a list and what ss23 said
2334: [23:21:35] <Peavers> no...
2335: [23:21:39] <Peavers> I want to call it from anywhere...
2336: [23:21:47] <ss23> Wait
2337: [23:21:49] * travis-ci has joined #silverstripe
2338: [23:21:49] <travis-ci> [travis-ci] chillu/silverstripe-framework#18 (pulls/allowed_actions-deny - 96e6ea6 : Ingo Schommer): The build was fixed.
2339: [23:21:49] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/a53adfac5b20...96e6ea61b78f
2340: [23:21:49] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8294069
2341: [23:21:49] * travis-ci has left #silverstripe
2342: [23:21:49] <ss23> when you say extend
2343: [23:22:02] <ss23> "class A extends Page", or "Object::Add_extesnion('page', 'a');"
2344: [23:22:09] <Peavers> first one,
2345: [23:22:26] <ss23> Then I would expect you could only use it on pages of type a (or a subclass of a)?
2346: [23:22:28] <AlphaCactus> it needs to be on the controller?
2347: [23:22:32] <Peavers> I just want a function I can call on any template file lol
2348: [23:22:52] <ss23> If you want to be able to call it from any page, do it on Page.php (or extend page.php with an extension) I think
2349: [23:22:54] <simon_w> Peavers, look at TemplateGlobalProvider
2350: [23:23:00] <ss23> or that
2351: [23:24:31] <Peavers> really wish the docs had more details
2352: [23:24:37] <ss23> ^^^^^^
2353: [23:26:04] * chillu quit (Quit: chillu)
2354: [23:26:18] <simon_w> Or the API docs actually worked properly
2355: [23:26:37] <simon_w> http://api.silverstripe.org/3.1/class-TemplateGlobalProvider.html
2356: [23:27:03] <Peavers> looking at that page, tells me almost nothing at all
2357: [23:27:29] <simon_w> http://api.silverstripe.org/3.1/source-class-TemplateGlobalProvider.html#13-33
2358: [23:28:30] <simon_w> Like I said, the API docs aren't working properly :p (Should show that entire comment for the method)
2359: [23:30:18] <Jayden90> Guys, If I have a gridfield holding contact information records for each company location, and I want to be able to select one record as the primary location for contact details around the site via the cms, how would I do that?
2360: [23:30:41] <Jayden90> I dont want users to be able to mark several as primary
2361: [23:30:45] <AlphaCactus> add a Primary Boolean
2362: [23:31:08] <simon_w> Jayden90, has_one from SiteConfig
2363: [23:32:46] <Jayden90> simon_w: sounds like a good idea.
2364: [23:32:57] <Jayden90> AlphaCactus: How do you mean that?
2365: [23:34:15] <Jayden90> AlphaCactus: Would that allow me to set this within the gridfield as opposed to SiteConfig?
2366: [23:35:35] * travis-ci has joined #silverstripe
2367: [23:35:35] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#382 (3.1 - e908613 : Ingo Schommer): The build passed.
2368: [23:35:35] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/09ca497b368a...e908613c471b
2369: [23:35:35] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8293696
2370: [23:35:35] * travis-ci has left #silverstripe
2371: [23:36:04] <wmk> n8
2372: [23:36:08] * LoveDuckie quit (Ping timeout: 264 seconds)
2373: [23:36:56] <AlphaCactus> $db = array( 'Primary' => 'Boolean' ) in your location. and yes.
2374: [23:38:14] <simon_w> <Jayden90> I dont want users to be able to mark several as primary
2375: [23:39:03] <ss23> simon_w: Do you know if you can just plug in http://www.microsoft.com/en-nz/download/details.aspx?id=28160 to connect to mssql from osx?
2376: [23:39:11] <ss23> OR is FreeTDS the only option for Silverstripe + OSX?
2377: [23:39:29] <AlphaCactus> oh I thot it was DO want. oops
2378: [23:39:53] <simon_w> ss23, no idea. Ask Sean.
2379: [23:40:13] <ss23> Do you happen to know his Skype?
2380: [23:40:24] <AlphaCactus> Jayden90: well, then you'd have to add more logic to getCMSFIelds or onBeforeWrite or onAfterWrite to unset the others.
2381: [23:40:31] <simon_w> Can't you just walk over to his desk?
2382: [23:40:35] <ss23> ;_
2383: [23:40:38] <ss23> idk which one he is
2384: [23:40:41] <simon_w> And probably halkyon
2385: [23:41:07] <simon_w> http://www.silverstripe.com/about-us/team/development/sean-harvey/
2386: [23:41:09] <simon_w> that one
2387: [23:41:10] <ss23> lol
2388: [23:41:15] <ss23> I'LL GET IT WRONG
2389: [23:41:21] <ss23> anyway, I'l check
2390: [23:43:03] <Jayden90> AlphaCactus: I figured it would be complicated to set that in place, I hoped there might be a "propper" way to make a boolean unique. SiteConfig it is :)
2391: [23:43:14] <AlphaCactus> yep
2392: [23:47:03] <AlphaCactus> When you save an object, whats the best place to process data for fields placed in getCMSFields that don't correlate to db/has_on/many etc? If thats not hard to do, then you could put a Primary dropdown available whenever you edit any location that could then be set to update the SiteConfig setting.
2393: [23:54:55] <Jayden90> AlphaCactus: Maybe, this is all a bit ambitious for a noob like me
2394: [23:57:35] <Peavers> back to my global issue, reading around etc do I just need to impletement TemplateGlobalProvider?
2395: [23:57:40] * trent001_ has joined #silverstripe
2396: [23:57:50] <Peavers> or do I need to extend it with my methods?
2397: [23:58:36] <simon_w> Peavers, it's an interface, you implement it
2398: [23:59:03] <Peavers> interfaces work the same in php as java?
2399: [23:59:50] * trent001 quit (Ping timeout: 246 seconds)

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