#silverstripe IRC Log

IRC log for 6 October 2014

All timestamps are in UTC.

1: [00:00:21] <Colin[pi]> yeah Hierarchy will prolly crap itself
2: [00:00:31] <adrexia> pippy - do you mean a different sort of dataobject?
3: [00:00:41] <adrexia> or the same dataobject type?
4: [00:01:50] <pippy> different sort of data object
5: [00:02:16] <pippy> there's a page type that contains a dataobject with some html in it, which would likely use the same child data object in the future
6: [00:02:35] <adrexia> should work
7: [00:03:44] <adrexia> gridfield is usually smart enough to know what you are adding the relation through. Sop if you set the Parent to sitetree, but also have another has_one to the parent dataobject, it should corectly set it
8: [00:04:17] <pippy> adrexia: ah cool!
9: [00:04:23] <pippy> I'll do that
10: [00:04:25] <adrexia> like an "AltParentID"=>"YourDataObject"
11: [00:16:39] * Bollig|DesignCty has joined #silverstripe
12: [00:18:31] * SphereSilver has joined #silverstripe
13: [00:19:40] <SphereSilver> \o
14: [00:19:44] <SphereSilver> evening everybody
15: [00:20:14] <SphereSilver> Zauberfisch: Use my DO-account, Anselms is still down ;)
16: [00:24:47] <irogue_> SphereSilver: evenin'
17: [00:24:52] <irogue_> looks like SS EU went well
18: [00:24:57] <SphereSilver> Hey irogue_
19: [00:25:15] <SphereSilver> I hope so :) We're awaiting feedback ;)
20: [00:25:39] <adrexia> it would be cool to do the same thing here at some point
21: [00:25:56] <SphereSilver> Where is "here" adrexia ?
22: [00:26:01] <adrexia> NZ
23: [00:26:07] <SphereSilver> Ah, cool :D
24: [00:26:32] <SphereSilver> Well, we're working on wrapping everything up, and make some sort of guide with things you should take care of and such
25: [00:26:43] <adrexia> it would make sense even, given how many government types now use silverstripe
26: [00:26:50] <adrexia> nice!
27: [00:26:54] <SphereSilver> Which will be published on our github account. It might be of use if you want to setup a pan-Australian meetup :)
28: [00:27:08] <irogue_> adrexia: yeah, but who wants to hang out with government-types? :P
29: [00:27:24] <SphereSilver> irogue_ It's about exposure, not about who's exposed :P
30: [00:27:35] * irogue_ has bad mental images now
31: [00:27:54] <SphereSilver> Yeah, don't picture your president naked, that's bad.
32: [00:28:44] <SphereSilver> I've been in a sardinecan for 9 hours today. Why am I still awake?
33: [00:28:57] <SphereSilver> No, not sardinecan, train, I meant to say train.
34: [00:33:47] <irogue_> that's a long train trip
35: [00:33:55] <irogue_> you can't complain now Kingy
36: [00:34:15] <Kingy> fuuuu
37: [00:34:18] <Kingy> not everyday is it
38: [00:34:38] <Kingy> I did Berlin to Amsterdam a few months ago
39: [00:34:45] <Kingy> got one of those sleeping trains though
40: [00:34:48] <Kingy> was quite good
41: [00:36:17] <irogue_> my first ever flight was 15 hours
42: [00:36:25] <SphereSilver> Kingy: Yeah, the trip isn't that bad usually
43: [00:36:35] <irogue_> then 3 hour stop over then another 15 hours
44: [00:36:43] <Kingy> irogue_: yep they're shit
45: [00:36:53] <SphereSilver> but when you're in a train that's overcrowded, it get's worst by the person entering the train :(
46: [00:37:10] <Colin[pi]> irogue_: try Canberra -> Sydney -> Auckland -> Santiago -> Sao Paulo -> Rio de Janeiro
47: [00:37:19] <Colin[pi]> about 32 hours all up
48: [00:37:26] <irogue_> Colin[pi]: that's less :P
49: [00:37:46] <Colin[pi]> BY 1
50: [00:37:49] <irogue_> lol
51: [00:38:03] <Colin[pi]> with all the in-between stuff, was prolly more
52: [00:38:08] <Colin[pi]> MAN I was wrecked after that
53: [00:38:11] <SphereSilver> Colin[pi]: That's not a train, I hope?
54: [00:38:23] <Colin[pi]> lol train to brazil? k
55: [00:38:31] <SphereSilver> Yeah, the trip to Linz thursday took 11 hours. I was a zombie :P
56: [00:38:37] <SphereSilver> Colin[pi]: Just checking :P
57: [00:38:53] <Colin[pi]> SphereSilver: "from now on we'll travel in TUBES!"
58: [00:38:56] <irogue_> oh, there was actually an extra step in there
59: [00:38:56] <adrexia> irogue_ they are really rather nice people you know ;)
60: [00:38:59] <adrexia> mostly
61: [00:39:25] <SphereSilver> Yay! Website is working!
62: [00:40:26] <SphereSilver> And *almost* up to date :P
63: [00:40:52] <adrexia> +1
64: [00:41:44] <Kingy> yeah coming home for me was
65: [00:41:59] <irogue_> Colin[pi]: this was Auckland -> LAX -> Frankfurt -> Hanover
66: [00:42:10] <irogue_> not so many stops, but still unpleasant for a first time flying
67: [00:42:20] <Kingy> Amsterdam -> Frankfurt (3 hour wait) -> Shanghai (5 hour wait) -> Auckland (2 hour wait) -> Wellington -> 2 hour train home
68: [00:42:42] <Kingy> that last train was so shit
69: [00:42:48] <irogue_> lol
70: [00:42:53] <SphereSilver> Trains are crappy anyway
71: [00:42:55] <irogue_> yeah, the last leg is always so ugh
72: [00:43:10] <SphereSilver> Chairs are like personal space invader-size
73: [00:43:25] <Kingy> SphereSilver: absolutely
74: [00:43:25] <SphereSilver> You have about as much legroom as a mosquito
75: [00:43:41] <irogue_> the seats on auckland's trains are actually surprisingly good, i'm pretty big and only feel slightly squished
76: [00:43:49] <irogue_> much less squishy than a bus or plane
77: [00:43:53] * What quit (Quit: Page closed)
78: [00:44:19] <SphereSilver> In Germany and the Netherlands, trains suck bigtime. Very uncomfortable.
79: [00:44:20] <irogue_> those new Matangi trains in wellington are pretty stingy on the seat size and legroom
80: [00:44:26] <Kingy> irogue_: they replaced carriages on ours that have less legroom than freakn economy class
81: [00:44:27] <SphereSilver> Only good thing in the Netherlands, is the free wifi
82: [00:44:38] <SphereSilver> Just set up a VPN tunnel, and you're good to go :D
83: [00:45:17] <irogue_> SphereSilver: I caught an ICE in germany and remember it being fine, but I was 15 so squishiness was less of an issue back then :P
84: [00:45:40] <SphereSilver> And it probably wasn't as crowded as the trains I had today ;)
85: [00:46:08] <SphereSilver> Crowded trains are always bad. Sweaty, sticky air, hardly any room to move :(
86: [00:47:12] <irogue_> yep, had one of them this morning
87: [00:47:22] <irogue_> luckily my stop is very early on the route, so I got a seat
88: [00:47:38] <Ryan-Toast> fucking entwine.
89: [00:48:17] <SphereSilver> Ryan-Toast: Well... I usually let everyone have their hobby, but... ehm....
90: [00:48:25] <SphereSilver> how exactly are you fucking entwine?
91: [00:48:42] <SphereSilver> Pro-tip, don't use the DVD-drive, because you might get stuck
92: [00:48:42] <Ryan-Toast> SphereSilver: onmatch: _getItOn();
93: [00:49:05] <SphereSilver> I assume you're not matching than?
94: [00:49:40] <SphereSilver> (Sorry, almost 3pm, I'm tired and in a lame mood due to lack of sleep)
95: [00:51:54] <Ryan-Toast> how do you use document in entwine?
96: [00:52:04] <Ryan-Toast> $('document').entwine({ doesn’t seem to do shit.
97: [00:53:09] <adrexia> hmm
98: [00:53:12] <SphereSilver> You'd better ask Hamish about that. He wrote the thing
99: [00:53:30] <adrexia> I usually avoid binding to document
100: [00:53:58] <Stomach> Ryan-Toast - have you made sure that jQuery is loaded first?
101: [00:54:11] <adrexia> in a cms context, the document is never destroyed so can lead to memory leaks
102: [00:54:18] <Ryan-Toast> Stomach: yes.
103: [00:54:24] <adrexia> outside that, with page refreeshes, it should be fine
104: [00:54:38] <Colin[pi]> irogue_: when I went back from brazil the first time, I had a 10 hour wait in Chile :\
105: [00:54:38] <Ryan-Toast> adrexia: lem
106: [00:54:48] <irogue_> Colin[pi]: ugh
107: [00:55:15] <irogue_> stopovers are the worst, especially when they're too long to just grab a feed and go to the flight, but too short to actually do anything interesting
108: [00:55:21] <Colin[pi]> irogue_: voluntary.. it was either $50 US for the member's lounge and all the food/drink I could muster... or $1000 more for the ticket for a 2 hour wait
109: [00:55:31] <adrexia> Ryan-Toast, what are you trying to do with it?
110: [00:55:46] <Ryan-Toast> adrexia: just doing a if not target do this
111: [00:55:58] <Colin[pi]> irogue_: the first few hours were ok, but it starrrted tooooo draggggggg
112: [00:56:14] <adrexia> body good enough?
113: [00:57:01] <Ryan-Toast> adrexia: would be the same as using .cms I guess.
114: [00:57:16] <adrexia> hmm, actually I have done that in entwine somewhere in the cms. I can't remember where or how
115: [00:57:31] <adrexia> something to do with sidebyside or actiontabs I think
116: [00:58:44] <Kingy> Colin[pi]: yeah, you either need to commit for a couple of days to at least look around
117: [00:58:55] <Kingy> anything less than 24hrs and you'll be freaking out about missing the plane
118: [00:59:11] <Zauberfisch> Ryan-Toast: you don't
119: [00:59:18] <Colin[pi]> Kingy: you know one time I almost missed the plane from Santiago :(
120: [00:59:27] <Zauberfisch> entwine basically uses querySelectorAll() to match selectors
121: [00:59:32] <Zauberfisch> document is not a css selector
122: [00:59:34] <Colin[pi]> I was Skyping with my gf, when I decided to glance at the screen and it said "Last Call"
123: [00:59:41] <Kingy> LOL
124: [00:59:59] <Zauberfisch> so entwine only works on dom elements
125: [01:00:03] <Colin[pi]> Kingy: I said "GOTTA GO" and as I was running to the gate, I heard "Senor Colin Tucker, Senor Colin Tucker".. lol
126: [01:00:15] <Kingy> Senor.. hells yeah
127: [01:00:35] <Colin[pi]> Kingy: that was the only time I heard my name... anyway, I got there, and they're all talking Spanish... she says to me "you're too late!"
128: [01:00:42] <Colin[pi]> I'm like FFFFUUUUUUUUU
129: [01:00:49] <Colin[pi]> and they radioed back and forth
130: [01:00:58] <Zauberfisch> Ryan-Toast: if you want a $(document).ready() stuff but entwine style, use $('body').entwine({onmatch: function() { ... }}); or something
131: [01:01:03] <Kingy> haha shite
132: [01:01:05] <Kingy> I hate that
133: [01:01:10] <Colin[pi]> anyway... you know what they did? she said "ok RUN NOW" - they brought the plane BACK IN to the skybridge for me
134: [01:01:16] <Colin[pi]> as in, they had started pushing back
135: [01:01:22] <Colin[pi]> and they brought it back in just for me LOL
136: [01:01:23] <Kingy> oh dear god that really was close
137: [01:01:32] <Zauberfisch> SphereSilver: I'll send you my key tomorrow. thanks for setting it up
138: [01:01:35] <Colin[pi]> and I had to do the walk of shame on the plane :(
139: [01:01:37] <Zauberfisch> I am going back to bed
140: [01:01:50] <Zauberfisch> I am pretty sick now D:
141: [01:01:51] <Kingy> man the last time I came back from Aus we went gold coast -> syd -> wellington
142: [01:01:57] <SphereSilver> Zauberfisch: Yeah, I should too, but I'm setting up the backups and stuff ;)
143: [01:02:08] <Kingy> anyway the plane was so late leaving gold coast we were pretty much about to miss the connection
144: [01:02:12] <Zauberfisch> was actually sleeping most of the day
145: [01:02:30] <SphereSilver> I've slept on the train today.... partially
146: [01:02:34] <Kingy> and we had to run down to customs and there were about 4 flights going out so the queue was massive.. we try to talk to the guy about it "Sorry you should have arrived at the airport earlier"
147: [01:02:34] <Kingy> FUUUU
148: [01:02:42] <Colin[pi]> argh
149: [01:02:55] <Kingy> and anyway so we get in line i take my belt and shit off
150: [01:03:03] <Kingy> then on the other side the lady is like run run run
151: [01:03:08] <Colin[pi]> haha
152: [01:03:10] <Kingy> pants are falling down trying to run
153: [01:03:20] <Colin[pi]> LOL!
154: [01:03:21] <Kingy> and then yeah, the walk of shame haha
155: [01:03:32] <Colin[pi]> with pants falling down, hahaha
156: [01:03:41] <Kingy> haha yeah
157: [01:03:46] <Kingy> then it's the whole puffing and sweaty
158: [01:03:49] <adrexia> Ryan-Toast, this is how we did it for the action tabs. I remember it being soem,what of a big deal and refactored several tiems to avoid memory leaks: https://github.com/silverstripe/silverstripe-framework/blob/3.1/admin/javascript/LeftAndMain.ActionTabSet.js#L60
159: [01:04:04] <Colin[pi]> Kingy: when I was late, my seat was right at the back :(
160: [01:04:04] * hpmewes has joined #silverstripe
161: [01:04:10] <Colin[pi]> I had to walk past everyone lol
162: [01:04:18] <Kingy> haha head bowed
163: [01:04:27] <Colin[pi]> yep, hand covering lol
164: [01:04:39] <Kingy> rofl
165: [01:04:52] <Colin[pi]> I felt their cold, icy stares ;_;
166: [01:06:27] * Pitts7burgh7 quit ()
167: [01:06:28] <SphereSilver> hourly backups ftw!
168: [01:06:38] <Kingy> hard. Already a long ass flight and now we have to wait for some late aussie prick :P
169: [01:06:40] * sminnee has joined #silverstripe
170: [01:06:51] <Colin[pi]> lol
171: [01:07:04] <Colin[pi]> hey hey it's sminnee
172: [01:07:08] * Colin[pi] waves
173: [01:08:02] <SphereSilver> Hey sminnee, you made it back alive?
174: [01:08:04] <SphereSilver> Awesome!
175: [01:08:08] <sminnee> i’m in san fran now
176: [01:08:27] <SphereSilver> That's about the same distance as Wellington....
177: [01:08:28] <Colin[pi]> wait.. that's.. a weird route isn't it?
178: [01:08:57] <SphereSilver> Colin[pi]: @sminnee flies whereever he wants to, company will pay anyway :P
179: [01:09:03] <Colin[pi]> SphereSilver: lol
180: [01:09:14] <sminnee> i gotta go via US or Asia
181: [01:09:17] <sminnee> so, US it is
182: [01:09:38] <Colin[pi]> sminnee: asia would be shorter no? no flights?
183: [01:09:54] <sminnee> nah it’s the same
184: [01:09:57] <Colin[pi]> oh ok
185: [01:10:03] <sminnee> UK and NZ are direct opposites
186: [01:10:20] <Colin[pi]> mmm so a nice short trip then :P
187: [01:10:30] <Ryan-Toast> adrexia: made it work fine, then my save buttons don’t work. lol.
188: [01:10:32] <Ryan-Toast> fuck it.
189: [01:10:40] <Ryan-Toast> fuck UX, they can get what they’re given.
190: [01:11:01] <adrexia> :D
191: [01:11:10] <Colin[pi]> Ryan-Toast: "users will like what I tell them to like"
192: [01:11:12] <sminnee> Ryan-Toast: that’s the spirit
193: [01:11:25] <sminnee> you’re a credit to developers, Ryan-Toast
194: [01:11:28] <sminnee> :P
195: [01:11:29] <Ryan-Toast> sminnee: :P
196: [01:11:50] <adrexia> what's wrong with the save buttons? is it related ?
197: [01:11:57] <Ryan-Toast> No idea, don’ttt care.
198: [01:12:03] * adrexia laughs
199: [01:12:34] <adrexia> I have had issues with the js for save buttons being weird
200: [01:13:00] <adrexia> got it to a point where it worked but was a bit glitchy, and left it at that
201: [01:14:02] * Guns21 has joined #silverstripe
202: [01:14:06] <Guns21> hey
203: [01:14:17] <Guns21> is it possible to extend ArrayList?
204: [01:14:57] <Colin[pi]> Guns21: sure why not?
205: [01:15:21] * simon_w has joined #silverstripe
206: [01:15:26] <hpmewes> YourList extends ArrayList { ... }
207: [01:15:41] <Guns21> yeah, that way for sure
208: [01:16:04] <Guns21> but can I do it by using "extends Extension"
209: [01:16:13] <Kingy> earthquake?
210: [01:16:25] <adrexia> yep
211: [01:16:28] <Guns21> so I don't have to refactor whole project?
212: [01:16:37] <adrexia> decent,m but only one person went under their desk
213: [01:16:56] <micmania1> EARTHQUAKE!
214: [01:17:01] <adrexia> lol
215: [01:17:01] <Colin[pi]> http://www.geonet.org.nz/quakes/region/newzealand/2014p751490 >
216: [01:17:02] <Kingy> 4.8 25km west of Murapara
217: [01:17:03] <Colin[pi]> this one?
218: [01:17:04] <Stomach> Guns21 - if you are using ArrayList::create(), then you can replace the entire object through config to use your new class
219: [01:17:17] <Stomach> Colin[pi] - nah not that one, must have been closer to wellington and bigger
220: [01:17:28] <Kingy> quite a way away from wellington
221: [01:17:34] <Colin[pi]> mm true
222: [01:17:40] <Kingy> Stomach: that was it
223: [01:17:41] * hpmewes quit (Quit: Page closed)
224: [01:17:55] <Stomach> Kingy - really? didnt feel it up heeere
225: [01:18:14] <Kingy> There was one by Levin at 1:24
226: [01:18:21] <Kingy> the one people feeling here was in Murapara
227: [01:18:31] <Guns21> Stomach: shit... I forgot basicstuff
228: [01:18:34] <adrexia> so... how bad was it there then?
229: [01:18:36] <Stomach> Guns21 - "MyArrayList extends ArrayList" then in _config.php "Object::useCustomClass('ArrayList', 'MyArrayList');
230: [01:18:44] <Guns21> when in extension, use this->owner...
231: [01:19:00] <Kingy> seems where to feel it so bad in Wellington
232: [01:19:06] <Kingy> was pretty light here in Feilding
233: [01:19:14] * sminnee has left #silverstripe
234: [01:19:19] <adrexia> taller buildings?
235: [01:19:29] <Kingy> yeah probably
236: [01:19:57] <micmania1> The floor shakes near me anyway when people walk. I get false alarms every day. :(
237: [01:20:08] * Tanger has joined #silverstripe
238: [01:20:42] <irogue_> micmania1: yeah that building is so dodgy
239: [01:20:59] <adrexia> buildings that move are actually safer :P
240: [01:21:11] <Kingy> micmania1: I know those feels
241: [01:21:14] <irogue_> ones that move in an earthquake, yes
242: [01:21:18] <micmania1> I didn’t even know it was an earthquake. I just turned around when my screen started going sideways haha That’s not normal.
243: [01:21:19] <Colin[pi]> must be this one then? http://www.geonet.org.nz/quakes/region/newzealand/2014p751493
244: [01:21:20] <irogue_> but the SS building just moves when people walk
245: [01:21:30] <Colin[pi]> irogue_: lol I noticed that
246: [01:21:57] <irogue_> not for long though!
247: [01:22:19] <Kingy> wtf is going on
248: [01:22:22] <Kingy> two earthquakes
249: [01:22:28] <Kingy> must've hit Wellington in the middle
250: [01:22:36] <Stomach> lol :D
251: [01:22:37] <Kingy> woahh double earthquake
252: [01:22:44] <Colin[pi]> yep two basically at the same time
253: [01:22:52] <Colin[pi]> welly sandwiched in between
254: [01:23:03] <Stomach> aaaand geonet overloads
255: [01:23:15] <Kingy> https://pbs.twimg.com/media/BzOfzhlCQAAlONz.jpg:large
256: [01:23:21] <adrexia> if it wasn't felt just north of us, I'm betting we only felt the SI one
257: [01:23:25] <Colin[pi]> lol Kingy
258: [01:23:38] <Kingy> adrexia: I felt it :)
259: [01:23:46] <irogue_> I didn't feel it
260: [01:24:02] <adrexia> it was closer to irogue_ than us
261: [01:24:50] <irogue_> yeah but there's hamilton in the middle
262: [01:24:52] <irogue_> nothing gets past hamilton
263: [01:24:56] <Stomach> Breaking news: Auckland power outage dissipates earthquakes area of effect
264: [01:25:04] * Guns21 quit (Ping timeout: 246 seconds)
265: [01:25:12] <Kingy> haha yeah irogue_ go back to complaining about power :P
266: [01:25:28] <irogue_> Kingy: I have nothing to complain about ^_^
267: [01:25:35] <irogue_> home has power, work has power, trains have power
268: [01:25:36] <irogue_> so i'm AOK
269: [01:26:20] <Stomach> fucking trains
270: [01:26:27] <Kingy> +1
271: [01:26:29] <Stomach> there is like 1 electric train in all of auckland
272: [01:26:55] <Kingy> want to know whats funny
273: [01:27:08] <Kingy> there's pretty much electric train lines right up the middle of the north island
274: [01:27:18] <Kingy> but half way up the voltage (or some shit) changes
275: [01:27:30] <irogue_> Stomach: 17 currently in service ;)
276: [01:27:32] <Kingy> so it's entirely useless to anybody
277: [01:27:43] <Colin[pi]> Kingy: nice planning their
278: [01:27:45] <Colin[pi]> *there
279: [01:27:51] <Kingy> I thought so
280: [01:27:52] <irogue_> Kingy: yeah, Auckland and Palmy-Hamilton are fairly standard voltage (25000 VAC)
281: [01:28:04] <irogue_> wellington had to be different and did 1500 VDC or something
282: [01:28:32] <simon_w> Bah, there was an earthquake and I didn't feel it :(
283: [01:29:07] <Colin[pi]> simon_w: you mean you didn't make the earth move after your wedding?
284: [01:29:08] <Colin[pi]> BOOM
285: [01:29:11] <Colin[pi]> BOOM BABY
286: [01:29:24] <simon_w> Colin[pi], nah, made the sky fall instead
287: [01:29:29] <Colin[pi]> :O
288: [01:30:10] <simon_w> https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/1654218_10152479158674891_4698687527661110340_n.jpg?oh=0c0e45c180a721308cf0a90a61f366f5&oe=54BEF062&__gda__=1421854472_5c752a8c368fc0b626ffe5364c78158d
289: [01:30:39] <Colin[pi]> simon_w: DANG!
290: [01:30:48] <Ryan-Toast> simon_w: looks cool
291: [01:30:50] <Colin[pi]> was that actually on the day?
292: [01:31:10] <simon_w> Yup
293: [01:31:24] <Colin[pi]> wow, so you skipped rain and went straight to hail?
294: [01:31:46] <Colin[pi]> that must be like... super ultra mega good luck amirite?
295: [01:31:52] <Tanger> simon_w: Wow, all the hails
296: [01:32:15] <adrexia> nice!
297: [01:33:43] <Ryan-Toast> adrexia: It’s coming along: http://www.gfycat.com/EminentActualKitfox
298: [01:33:59] <simon_w> It then cleared up right after the ceremony
299: [01:34:43] <adrexia> Ryan-Toast, looks pretty neat
300: [01:34:56] <Colin[pi]> simon_w: wow that's ominous
301: [01:35:05] <Ryan-Toast> adrexia: just need to have a meeting with the designers and ask what filds they want\need
302: [01:35:26] <SphereSilver> Goodnight folks.
303: [01:35:38] <Kingy> Ryan-Toast: looks good man
304: [01:35:50] <Ryan-Toast> Kingy: chur
305: [01:36:13] <adrexia> might want5 descriptive text too, to explain what some of those things are for/do
306: [01:36:14] * simon_w quit (Read error: Connection reset by peer)
307: [01:36:25] * r_hector1 quit (Ping timeout: 260 seconds)
308: [01:36:26] <Ryan-Toast> adrexia: yeah I will, it’s just for me atm
309: [01:36:32] * adrexia nods
310: [01:36:32] <UncleCheese> .....and, now it's snowing
311: [01:36:35] * simon_w has joined #silverstripe
312: [01:36:36] <Ryan-Toast> adrexia: still playing with the css generation.
313: [01:36:39] <adrexia> :D
314: [01:37:00] <Ryan-Toast> thinking of a good way to cache it, but still not have to flush to get changes shown in the frontend
315: [01:37:01] * simon_w quit (Read error: Connection reset by peer)
316: [01:37:36] * simon_w has joined #silverstripe
317: [01:38:11] <simon_w> Stupid airport wifi
318: [01:39:40] * stojg has joined #silverstripe
319: [01:41:46] <micmania1> Ryan-Toast: https://groups.google.com/forum/#!topic/silverstripe-dev/3kC1-iG1nYw
320: [01:42:40] <Ryan-Toast> micmania1: ?
321: [01:42:42] * sminnee has joined #silverstripe
322: [01:44:13] <micmania1> Ryan-Toast: Its pretty much what you’re doing right?
323: [01:44:33] <Ryan-Toast> micmania1: yeah, pretty much
324: [01:45:04] <adrexia> except Ryan-Toast's is Design first
325: [01:45:15] <adrexia> rather than dataobject -> up
326: [01:45:47] <adrexia> interesting
327: [01:45:54] <micmania1> looks good though!
328: [01:47:05] <adrexia> I think I'm interested in solutions based around UX. There are so many content blocks modules out there, anfd they are pretty much all data structure driven
329: [01:47:51] <adrexia> not that you can't retrofit design on top. It's just hard and full of compromises.
330: [01:48:06] * r_hector1 has joined #silverstripe
331: [01:49:03] <UncleCheese> Yeah, a lot of adaptive content modules claim to be adaptive, but they're really just glorified SiteTree pages
332: [01:49:39] <Kingy> haha hilarious
333: [01:49:53] <Kingy> you can't beat wellington on a... argh earthquake
334: [01:50:24] <adrexia> there are a few different use cases that require different solutions
335: [01:50:42] <adrexia> though some of that is to do with dataobjects not being versioned
336: [01:51:12] <adrexia> and others with the nature of the blocks (are they really just blocks, or do they do something)
337: [01:51:43] * joelpitt_ has joined #silverstripe
338: [01:54:37] <Ryan-Toast> UncleCheese: what would you consider an adaptive content module?
339: [01:55:17] * joelpittet quit (Ping timeout: 245 seconds)
340: [01:57:17] * adrexia reads the thread
341: [01:57:41] <adrexia> I like the idea of insytead investing in different skins/views for gridfield
342: [01:57:45] <sminnee> Ryan-Toast UncleCheese having an “adaptive content module” is a bit like having an “information architecture module"
343: [01:58:14] <simon_w> There's that gallery view 3.0 was supposed to have :p
344: [01:58:15] <Ryan-Toast> sminnee: http://i.imgur.com/3M9vP.gif
345: [01:58:27] <sminnee> adrexia: i think that’s probably the way the implementation would end up, but the starting point would probably be a more cohesive look at the UI in which it would be used.
346: [01:58:33] <adrexia> simon_w, yes that would be good to have ;)
347: [01:58:51] <sminnee> there’s also a need for a base API for defining content blocks that others can implement against.
348: [01:59:09] <adrexia> I've built quite a few different content blocks scenarios. they were all somewhat unique problems
349: [01:59:22] <simon_w> sminnee, that sounds like widgets
350: [01:59:56] <adrexia> yeah, I'm afraid that the flexibility required to cover all bases would end up unusable
351: [01:59:58] <sminnee> simon_w: yeah, it could be, although it’s weird that all of these blocks modules don’t use widgets as the base class :0/
352: [02:00:16] <adrexia> widgets is not pretty
353: [02:01:10] <adrexia> oh yeah, this solution is a nice one: http://alistapart.com/blog/post/longform-content-with-craft-matrix
354: [02:01:23] <adrexia> a bit like how userforms works
355: [02:01:29] <adrexia> but with a prettier interface
356: [02:02:11] <ss23> 12:55:42 < adrexia> ss23 - are you really supposed toi do that?
357: [02:02:14] <ss23> I literally did it
358: [02:02:25] <adrexia> +1
359: [02:02:29] <ss23> She was like "Hmmm the homepage should be more like this" "Okay it'll take like 30 minutes" "GO GO GO "
360: [02:02:31] <sminnee> adrexia: i expect your problem with widgets is more to do with the admin UI than the base class.
361: [02:02:58] <adrexia> sminnee actually its to do with too many bugs on 2.4 -> 3.0 upgrades
362: [02:03:05] <sminnee> heh
363: [02:03:12] <sminnee> ok fair enough
364: [02:03:15] <adrexia> though it still being a messy UI after that doesn't help
365: [02:03:23] <adrexia> :)
366: [02:03:46] <adrexia> its really flexible
367: [02:04:06] <adrexia> I'm starting to think flexibility just leaves users confused
368: [02:04:30] <adrexia> at least without proper design thought
369: [02:06:02] <adrexia> http://info.geonet.org.nz/pages/viewpage.action?pageId=10551331
370: [02:06:43] <simon_w> Well, phone is mostly charged. Bye bye laptop.
371: [02:06:51] * simon_w quit (Quit: Ping timeout: your mum)
372: [02:07:00] <adrexia> http://www.geonet.org.nz/quakes/region/newzealand/2014p751493 has been deleted ;)
373: [02:09:51] <spronk> o_O
374: [02:09:57] <adrexia> man, more of those content block modules need screen shots
375: [02:10:29] <sminnee> adrexia: yeah, you want to put a big chunk of the flexibiltiy in the hands of the devs who assemble the SS sites.
376: [02:10:40] <adrexia> agree
377: [02:10:53] <Stomach> "oh we want a bespoke well designed website but we don't want a designer or to pay you anything"
378: [02:10:55] <adrexia> too often it gets put into the hands of the cms users
379: [02:10:56] <sminnee> i think thta
380: [02:10:56] <sminnee> - nice edit view (like the craft matrix thing)
381: [02:11:00] <sminnee> blurgh
382: [02:13:21] <sminnee> i think that there are a few things that a core service can provide: 1) a nice craftmatrxi-style edit view, 2) easy/magic/automatic handing of versioning & publication workflow 3) make it possible to hook in other tools that, for example, control when blocks are shown/hidden/ordered 4) have some way that blocks can be reused, either an optional setting/addon or part of the core. 5) a common base-class for content blocks (possibly with a f
383: [02:13:22] <sminnee> there are large libraries of other content blocks out there. e.g. if we don’t go with widget, then a WidgetBlock class that pulls a widget into the block system)
384: [02:13:56] <adrexia> 4 can get complicated really fast
385: [02:14:06] <adrexia> (from a ux point of view)
386: [02:14:24] <sminnee> yeah - that’s an area where you might want to make it optioanl
387: [02:14:27] <sminnee> for some use-cases its critical
388: [02:14:47] <sminnee> but *some* is the operative word. and different opinions around that is probably why we have different blocks modules currently
389: [02:14:48] <adrexia> making a system where you are encouraged to think that you are editing a page, and then sharing the components would need some design thought
390: [02:15:10] <sminnee> which means that if I wanted to make a personalisation module that controlled the display of blocks, i’d need to integrate with a bunch of differetn systems
391: [02:15:11] <adrexia> but the rest would be very useful
392: [02:15:46] * adrexia nods
393: [02:16:13] <adrexia> I think it could be done so long as it was obvious a shared piece of content lived somewhere else
394: [02:16:18] <Ryan-Toast> That’s why I make my own modules, so I don’t have to worry about what other people want :P
395: [02:16:35] <sminnee> yeah - you could do it by distinguishing “library blocks” and “page blocks” (names aren’t great, but never mind). library blocks would be read-only until you click them, and when you open for editing, it would say “warning: this will update the block on 5 pages” or soemthign
396: [02:16:49] <adrexia> or have it belong to one page and get cloned to another - with some sort of visual indication bother that it is a clone and that it has a clone
397: [02:17:01] <adrexia> Ryan-Toast, lol, me too ;)
398: [02:17:03] <sminnee> Ryan-Toast: yeah, and it’s a good place to start, but it doesn’t help us provide a cohesive set of tools for people trying to get websites built
399: [02:17:34] <adrexia> yeah, library is good. old school flash terminology ;)_
400: [02:17:58] <sminnee> “reusable block” also works
401: [02:18:14] <sminnee> you can click on any block and select “make reusable” and then it goes into the library
402: [02:18:16] <adrexia> library makes more sense I think
403: [02:18:21] <adrexia> or just 'cloned'
404: [02:18:33] <adrexia> or syndicated
405: [02:18:37] <sminnee> i don’t like cloned. cloned implies that when you edit one, the other doesn’t get updated.
406: [02:18:47] <adrexia> oh I see
407: [02:18:49] <sminnee> it’s more like duplicate/copy-paste
408: [02:18:57] <adrexia> not to me, but can see people thinking that
409: [02:19:07] <sminnee> the library block is where you have say a sidebar with contact info that is on 15 differetn pages
410: [02:19:22] <sminnee> or—everyone’s favourite—a weather widet
411: [02:19:25] <adrexia> yeah - library actually makes the most sense
412: [02:19:32] <adrexia> you have a library of reusable elements
413: [02:19:38] <sminnee> it really cuts to the heart of the crossover between widgets and blocks
414: [02:19:56] <adrexia> should probably have a library admin
415: [02:20:18] <sminnee> yeah
416: [02:20:29] <sminnee> i’d get Paul to work through the details ;)
417: [02:20:30] <adrexia> sminne I often use settings config for contact detaild
418: [02:20:46] <adrexia> or put them on a holder page and propogate them down to the children
419: [02:20:53] <sminnee> yeah - it’s kind of a one-off, hard-coded, limited, hacky block system ;)
420: [02:20:53] <Ryan-Toast> adrexia: I do that too
421: [02:20:54] <adrexia> depending on context
422: [02:21:26] <adrexia> I think we have solutions for that particular use case
423: [02:21:27] <sminnee> the other feature i’ve seen is where you have not just 1 block, but a set of blocks, in the library.
424: [02:21:41] <adrexia> a set?
425: [02:21:55] <sminnee> like there a 3 blocks in a row that you want to reuse
426: [02:22:10] <adrexia> oh. wait. I think I've done something similar with quicklink sets
427: [02:22:12] <sminnee> if you add a 4th to the set, then you want that block to be added wherever this set of blocks has been used.
428: [02:22:38] <sminnee> yeah. oh, and while we’re on the topic, quicklinks-as-block-type would work nicely
429: [02:22:45] <adrexia> though the ui for that is currently gridfileds within gridfileds
430: [02:22:56] <sminnee> wheee 8-|
431: [02:23:12] <adrexia> agree quicklinks are a good use case for blocks
432: [02:23:14] <sminnee> i have this GridField hammer, and the world is GridField nails
433: [02:23:33] <sminnee> (It’s much better if we just have a Blocks hammer instead :P)
434: [02:23:36] <adrexia> unfortunately that is the tool silverstripe provides fopr groups of datatobjects
435: [02:24:02] <adrexia> which wouldn't be too much of an issue if it wasn't so easy to lose your place
436: [02:24:06] <ss23> oh god sminnee is here
437: [02:24:08] <sminnee> yeah. building out multiple gridfield renderers (e.g. gallery, craftmatrix)
438: [02:24:24] <sminnee> hey. i don’t know what time it’s supposed to be. i think i’ve been awake for 24h
439: [02:24:30] <sminnee> i should get some food
440: [02:24:35] <adrexia> yeah, like an actual "you'r in a folder" view
441: [02:24:43] <ss23> sminnee: burgerfuel?
442: [02:24:46] <adrexia> heirachy for gridfield ;)
443: [02:24:57] <sminnee> hah i’m in San Fran there’s gotta be better burgers than that
444: [02:25:25] <Kingy> ouch sminnee way to kill ss23's dreams
445: [02:25:28] <sminnee> ok everyone, tschüss
446: [02:25:44] * sminnee quit (Quit: sminnee)
447: [02:25:57] <ss23> :(
448: [02:26:18] <ss23> Is tschüss irl just like a weird gurgling noise?
449: [02:26:20] <ss23> THCHCHTHCHTHCH
450: [02:26:23] <ss23> "oh hi to you too"
451: [02:26:54] <irogue_> it's actually one of the more pleasant sounding words in the german language
452: [02:27:05] <ss23> Not a high bar..
453: [02:27:06] <ss23> :P
454: [02:29:12] <irogue_> ss23: http://www.forvo.com/search/Tsch%C3%BC%C3%9F/
455: [02:30:23] * danfo has joined #silverstripe
456: [02:31:42] <ss23> stojg: Sup gangstaaaaaaaaa
457: [02:32:18] <ss23> irogue_: wow
458: [02:32:21] <ss23> that's different to how I expected
459: [02:35:42] * travis-ci has joined #silverstripe
460: [02:35:43] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3421 (master - b4df2aa : Sean Harvey): The build passed.
461: [02:35:43] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/3ff4bf633e80...b4df2aa80ff3
462: [02:35:43] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/37143778
463: [02:35:43] * travis-ci has left #silverstripe
464: [02:35:50] <irogue_> yuss
465: [02:35:54] <irogue_> my Pebble has arrived in NZ
466: [02:36:00] <ss23> hmm
467: [02:36:02] <ss23> Whats a pebble again?
468: [02:36:04] <ss23> Is it like a durr?
469: [02:36:12] <irogue_> a watch
470: [02:36:13] <ss23> ah, full smartwatch
471: [02:36:18] <ss23> why fucking bother man
472: [02:36:24] <ss23> I'm at a Desktop ~90% of my waking hours
473: [02:36:25] <irogue_> https://getpebble.com/pebble
474: [02:36:29] <ss23> Smartwatches are for n00bs
475: [02:37:44] <stojg> ss23, I can proudly say that my new phone is dumber than yours
476: [02:37:59] <ss23> Well mine does do tethering and has a browser
477: [02:38:12] <ss23> What one did you get?
478: [02:38:17] <ss23> I saw you said it was $7 or something?
479: [02:39:54] <irogue_> was it one of the little samsungs? they're great phones, I got one when they were $29
480: [02:41:47] <stojg> alcatel onetouch feature phone for subsidized $7.5 bucks
481: [02:42:03] <irogue_> ah, the samsung I got wasn't even a feature phone
482: [02:42:08] <stojg> I havent figured out how to set the date / time yet
483: [02:42:21] <stojg> i think thats what they call dumbphones?
484: [02:43:43] <spronk> nokia should just re-release the 3120'
485: [02:43:51] <spronk> 3210*
486: [02:43:58] <spronk> put new chips in it to make it uber efficient
487: [02:44:03] <spronk> snake 2
488: [02:44:04] <spronk> so much win.
489: [02:46:32] <Kingy> shit yes!
490: [02:46:40] <Kingy> irogue_: did you get the speedy delivery?
491: [02:46:49] <irogue_> Kingy: nope, regular
492: [02:46:54] <ss23> 15:43:59 < spronk> put new chips in it to make it uber efficient
493: [02:46:55] <ss23> dude
494: [02:46:56] <Kingy> how long so far?
495: [02:46:59] <ss23> They release the 301 and 105
496: [02:47:05] <ss23> They're both over a month battery life
497: [02:47:51] <spronk> pfsch
498: [02:47:54] <spronk> they suck
499: [02:48:07] <spronk> colour display? what is this sit.
500: [02:48:09] <spronk> shit
501: [02:49:04] <irogue_> Kingy: ordered on 1st, shipped on 2nd, will likely arrive tomorrow (7th)
502: [02:49:14] <Kingy> shit
503: [02:49:22] <Kingy> irogue_: doesn't it say 2-5 weeks
504: [02:50:10] <irogue_> Kingy: US shippers are always overcautious. usually takes longer to ship things within the US than from the US to NZ
505: [02:56:24] <Bollig|DesignCty> irogue: welcome to the world of novelty watchfaces. At easter, I had a picture of Jesus’ face to piss off my wife lol
506: [02:58:39] <irogue_> I could troll the office by putting a drupal logo on there
507: [02:58:42] <irogue_> except I'd feel too dirty
508: [02:58:55] <Ryan-Toast> irogue_: wordderp or nothing!
509: [02:59:14] <Colin[pi]> irogue_: one word: joomla
510: [02:59:15] <irogue_> sharepoint? :P
511: [03:19:34] * zippy has joined #silverstripe
512: [03:19:46] <zippy> There is something which screws me over on a daily bases
513: [03:19:51] <zippy> totally messes with my head
514: [03:20:10] <zippy> variable names / properties
515: [03:20:24] <zippy> What I mean is, do you use uppercase or lower case?
516: [03:20:37] <zippy> $member = Member::currentUser(); or $Member = Member::...
517: [03:20:58] <zippy> we have things like $this->Title on pages, but shouldn't that be $this->title
518: [03:21:15] <zippy> I just can't find a consistant approach
519: [03:23:44] <stojg> yes, it's sligthly complicated but it actually have some sort of pattern..
520: [03:24:03] * danfo quit (Quit: danfo)
521: [03:24:08] * cloph has joined #silverstripe
522: [03:24:13] <zippy> stojg: how so
523: [03:24:17] <zippy> lay it on me
524: [03:24:30] <stojg> Things that are related to a database field or relation is in Uppercase, non db related are lowerCase
525: [03:24:46] * cloph_away quit (Ping timeout: 272 seconds)
526: [03:25:00] <stojg> static vars are $under_score
527: [03:26:08] <zippy> soo.. you do $Member = Member::getCurrentUser() ?
528: [03:26:11] <stojg> methodnames are unfortunately quite inconsistent.. for example static method "should" be Member::current_user() but for some legacy reason some are not
529: [03:27:28] <stojg> But the normal and correct case is: $member->Title(), or $member->getNonDBValue() or Member::get_static_value()
530: [03:28:30] <stojg> For methods that are used in template, they are quite often named in UpperCase, like db methods, eg Member->Title()
531: [03:29:48] <stojg> Though I'm sad to say, the style guidelines in http://doc.silverstripe.org/framework/en/trunk/misc/coding-conventions could be better and also the core framework could align better to the styleguidelines
532: [03:29:56] <Stomach> and then it runs the magic __get to check Title via getTitle too
533: [03:29:57] <Stomach> >_<
534: [03:30:37] <zippy> I am adding a variable to be DB model but it wont be saved in the db. It just feels odd for that variable to have a lower case name when all the others are uppercase
535: [03:30:41] <novaweb> CatchYou::later($while_you_discuss_coding_conventions)
536: [03:31:31] * novaweb quit ()
537: [03:31:49] <zippy> says the govt stooge
538: [03:32:00] <irogue_> lol
539: [03:33:27] <adrexia> zippy, feels consistent to me
540: [03:34:31] <adrexia> but I've read the coding conventions and that probably influences things a bit
541: [03:35:18] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
542: [03:36:21] <zippy> adrexia: ditto. This one is probably followed the least "When a string is literal (contains no variable substitutions), the apostrophe or "single quote" should always be used to demarcate the string"
543: [03:37:08] <adrexia> I think most people are unaware of which they use at any given time
544: [03:37:10] <adrexia> :D
545: [03:37:46] * stojg quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
546: [03:38:03] <zippy> I may be missing it... but that doc doesn't mention anything about variable names...
547: [03:38:07] <zippy> $Member or $member
548: [03:40:13] <irogue_> personally, I use $Member if it's a DataObject/DataList, $member if it's not
549: [03:43:30] * Azure quit (K-Lined)
550: [03:43:46] <irogue_> bahahaha
551: [03:43:52] <irogue_> who'd Azure piss off?
552: [03:43:57] <adrexia> generally its camelCase
553: [03:44:31] * Azure has joined #silverstripe
554: [03:45:12] <zippy> ran into weird issue. When paying via paypal if you use a mobile/tablet (so your pushed to mobile.paypal....) then return vars are not sent back with the browser....
555: [03:45:23] <zippy> but work fine with desktop (ipn fires regardless)
556: [03:45:45] <irogue_> paypal is... eugh
557: [03:46:33] <zippy> be nice is stripe supported nz!
558: [03:46:58] <irogue_> quite. or even braintree, which is owned by paypal but has a much better api
559: [03:47:01] * sminnee has joined #silverstripe
560: [03:47:01] * sminnee quit (Client Quit)
561: [03:47:10] * stojg has joined #silverstripe
562: [03:48:48] <Ryan-Toast> can you set composer to install folders in specific directories?
563: [03:49:23] <zippy> folders you mean, requirements?
564: [03:50:07] <Ryan-Toast> say your repo has an images, and an assets folder, and you want to install those in two different places.
565: [03:50:20] <Ryan-Toast> when you use composer install
566: [03:51:07] <stojg> nope, normally not
567: [03:51:54] <stojg> composer "installs" packages according to https://github.com/composer/installers
568: [03:52:22] * UncleCheese has joined #silverstripe
569: [03:52:49] <stojg> for example, the "type" in composer.json is connected to which installer to use, for silverstripe see https://github.com/composer/installers/blob/master/src/Composer/Installers/SilverStripeInstaller.php
570: [03:53:13] <Ryan-Toast> stojg: thanks :)
571: [03:53:44] <ss23> You *can* run a fork of composer/installlers though
572: [03:55:44] <stojg> yes, we can do everything we are coders.. doesn't mean we should
573: [03:55:45] <stojg> :P
574: [03:56:22] <ss23> I AM GOD
575: [03:56:24] <ss23> MUAHHAA
576: [03:56:28] <ss23> WATCH ME FORK COMPOSER/INSTALLERS
577: [03:57:14] * Phlunk3 quit (Remote host closed the connection)
578: [03:58:41] <stojg> watch me _not_ maintain your code
579: [03:59:15] <Kingy> irogue_: didn't the guy at phpconf say braintree was coming
580: [03:59:29] <irogue_> Kingy: idk, wasn't there, was busy elephpanting
581: [04:00:13] <irogue_> mmm
582: [04:00:17] <irogue_> <3 cumin cheese
583: [04:00:26] * Adesso has joined #silverstripe
584: [04:00:29] <Stomach> o_O
585: [04:01:40] * nickmolhoek quit (Quit: nickmolhoek)
586: [04:02:41] * Adesso wants to know a good client for Android
587: [04:03:45] <irogue_> Adesso: IRC?
588: [04:03:51] * micmania1 has left #silverstripe
589: [04:05:44] * willr quit (Quit: willr)
590: [04:07:19] * Adesso quit (Ping timeout: 258 seconds)
591: [04:12:09] * Ryan-Toast quit (Quit: Ryan-Toast)
592: [04:15:42] * Kingy is now known as Kingy[a]
593: [04:16:53] * joelpittet has joined #silverstripe
594: [04:20:02] * joelpitt_ quit (Ping timeout: 250 seconds)
595: [04:27:50] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
596: [04:37:03] * joelpittet quit ()
597: [04:37:25] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
598: [04:37:47] * Stomach quit (Ping timeout: 245 seconds)
599: [04:44:48] * tankr quit (Ping timeout: 272 seconds)
600: [04:50:13] * danfo has joined #silverstripe
601: [04:52:56] * stojg quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
602: [05:06:13] * stojg has joined #silverstripe
603: [05:12:02] * stojg quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
604: [05:17:02] * irogue_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
605: [05:25:53] * Shrike_Finland has joined #silverstripe
606: [05:27:23] * Trooy has joined #silverstripe
607: [05:31:41] * stojg has joined #silverstripe
608: [05:55:13] * willr has joined #silverstripe
609: [05:58:56] * hailwood quit (Quit: Leaving.)
610: [06:08:08] * stojg quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
611: [06:09:29] * Adesso has joined #silverstripe
612: [06:09:30] * stojg has joined #silverstripe
613: [06:11:55] * Adesso decides against IRC on Android
614: [06:12:25] <spronk> yeah
615: [06:22:17] * veb has joined #silverstripe
616: [06:34:30] <Adesso> nothing beats a keyborad IRL
617: [06:35:59] <jolene> confirmed
618: [06:40:20] * veb quit (Read error: Connection reset by peer)
619: [06:40:48] * veb has joined #silverstripe
620: [06:43:00] * stojg quit (Quit: Textual IRC Client: www.textualapp.com)
621: [06:54:44] * wmk has joined #silverstripe
622: [06:57:20] <wmk> gooooood mooooooorrrniiiiiiinnng(ugt)
623: [06:57:40] <Adesso> Morning :)
624: [07:01:33] * baduras has joined #silverstripe
625: [07:12:22] * ARNHOE has joined #silverstripe
626: [07:17:57] * SphereSilver has joined #silverstripe
627: [07:20:50] * SphereSilver has left #silverstripe
628: [07:25:11] <wmk> Adesso, the dog in office is somewhat pissed off i put the saussage out of my bag at home
629: [07:25:18] * Robke has joined #silverstripe
630: [07:25:25] <Robke> hello ;)
631: [07:28:01] * willr quit (Quit: willr)
632: [07:28:02] <wmk> hey Robke
633: [07:28:33] <Robke> how is monday ? ;)
634: [07:28:41] <wmk> well...
635: [07:28:50] <wmk> tell me why
636: [07:29:21] <Robke> :)))
637: [07:38:48] <Adesso> wmk, so your baf still smells nice hey... poor dog
638: [07:38:52] <Adesso> bag
639: [07:38:57] * ocmnt has joined #silverstripe
640: [07:45:00] * stnvh has joined #silverstripe
641: [07:50:06] <ocmnt> howdy
642: [07:55:30] <wmk> hey ocmnt
643: [07:56:33] <wmk> Zauberfisch, around?
644: [08:00:22] * ss31noob has joined #silverstripe
645: [08:02:18] * gelignite has joined #silverstripe
646: [08:04:44] * kinglozzer has joined #silverstripe
647: [08:06:58] * veb has joined #silverstripe
648: [08:10:21] <ss31noob> is there any configuration in ss3 that limits the number of pages of a specific pagetype that you wanted to display in the CMS? this is to improve the performance when loading the CMS
649: [08:13:09] <ocmnt> ss31noob, you want to disable the page after n = x?
650: [08:13:18] <ocmnt> canCreate is false kinda stuff?
651: [08:14:57] <ocmnt> http://sspaste.com/paste/show/54324a71a0920
652: [08:15:00] <ocmnt> try something like that
653: [08:15:08] <ss31noob> ocmnt, what i wanted to do is to just limit the number of pages to display when you initially load the cms.. but when you do a search.. it will still be display
654: [08:15:19] <ocmnt> ah, not something like my code
655: [08:15:27] <ocmnt> that would just limit the amount of a pageclass to be created
656: [08:15:39] <ocmnt> though, my suggestion would be to display pages in grid instead of list
657: [08:15:42] <ss31noob> something like overriding the hierarchy class
658: [08:15:46] <ocmnt> which automatically limits the view
659: [08:22:08] <wmk> where is the hook when you need it?
660: [08:22:31] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
661: [08:33:55] <ocmnt> it's off the hook :D
662: [08:39:42] <wmk> i cannot provide i18n entities for a extended class inside the extension
663: [08:39:52] <wmk> :(
664: [08:46:36] * Shrike_Finland quit (Quit: Leaving.)
665: [08:49:03] * CodeStylist has joined #silverstripe
666: [09:02:23] * thehacksaw has joined #silverstripe
667: [09:08:26] * micmania1 has joined #silverstripe
668: [09:10:10] <micmania1> API docs broke for everyone else?
669: [09:10:45] <ocmnt> yup
670: [09:10:47] <ocmnt> nice big X
671: [09:10:56] <micmania1> ss23: FIX IT!
672: [09:11:02] <ocmnt> among other stuff
673: [09:11:16] <micmania1> yep, its loading the toolbar from the test site for some reason :/
674: [09:11:21] * martinsch has joined #silverstripe
675: [09:11:37] <ocmnt> micmania1, docs are still there
676: [09:11:42] <ocmnt> just the <header> is messing stuff up
677: [09:12:23] * martinsch quit (Client Quit)
678: [09:12:43] * MartinSch has joined #silverstripe
679: [09:18:34] * Tanger quit (Quit: Tanger)
680: [09:20:42] * Tanger has joined #silverstripe
681: [09:22:43] * CodeStylist quit (Quit: CodeStylist)
682: [09:23:08] * Tanger quit (Client Quit)
683: [09:24:35] * Adesso swears at the big X... WTF!
684: [09:25:45] * thehacksaw quit (Quit: This computer has gone to sleep)
685: [09:26:41] <Adesso> I guess I am gonna have to ask you guys then: I need to get a list of all children of a type in a Controller...
686: [09:31:23] <Adesso> PageTypeName::get() is not returning anything.... should it ?
687: [09:32:59] * Adesso has had this before...
688: [09:33:09] <ss31noob> it should.. but you need to traverse the content of it by foreach loop
689: [09:33:11] <Adesso> it's most likely because I am in a loop again..
690: [09:33:26] <Adesso> instead I should get the Object in the Controller if I have a loop in a loop
691: [09:34:48] <wmk> ::get only returns something when it's needed
692: [09:35:00] <wmk> e.g. when you want to print it in a template
693: [09:35:36] <Adesso> well I am trying to print the content in the template....
694: [09:35:58] <Adesso> if I loop the Children, it works
695: [09:36:00] <ss31noob> so you're doing it by <loop>
696: [09:36:06] <Adesso> yup
697: [09:36:20] <wmk> you need to loop over the children of the current page?
698: [09:36:37] <Adesso> the children are of two diffrent types..
699: [09:36:59] <micmania1> Adesso: two different pages you mean?
700: [09:36:59] <Adesso> so one part show the one type and another part.. the other
701: [09:37:14] <wmk> hmm, can we filter in template?
702: [09:37:23] * Shrike_Finland has joined #silverstripe
703: [09:37:34] <Adesso> this is why I wanted to do it in the Controller
704: [09:37:53] <micmania1> Adesso: the page type shouldn't matter. Do you mean two different pages?
705: [09:37:54] <Adesso> make two getter's
706: [09:38:04] <wmk> return $this->Children()->filter(array('ClassName' => 'AddessoPage');
707: [09:38:22] * Adesso gives it a spin
708: [09:38:39] <wmk> should be pretty much the same like
709: [09:39:03] <wmk> AddessoPage::get()->filter(array('ParentID' => $this->ID));
710: [09:42:01] * Shrike_Finland quit (Client Quit)
711: [09:44:32] <Adesso> I think I am being screwed again my the Scope
712: [09:44:57] * Otterpocket has joined #silverstripe
713: [09:45:25] <Adesso> When I loop the result of a Controller getter, I can't call another getter inside that loop... right ?
714: [09:47:53] <Adesso> I guess I'm gonna have to build a nested Object..
715: [09:49:57] * veb quit (Quit: .)
716: [09:50:16] <Adesso> what was that toArray thingy again to get a Array populated ..
717: [09:50:31] <Adesso> toNestedArray..
718: [09:50:35] <Adesso> or something
719: [09:50:39] <Adesso> ?
720: [09:50:51] <micmania1> Adesso: what are you trying to do?
721: [09:51:16] <Adesso> oh, you sure you wanne know this ... ?
722: [09:51:26] <Adesso> here goes
723: [09:52:01] <Adesso> I hae a startPage, that has a teaser block in it, in this Teaser Bclok there are a list of Sections, that each have subsections in them
724: [09:52:10] <Adesso> almost like a menu
725: [09:53:13] <micmania1> Can you post your code? http://www.sspaste.com/
726: [09:55:45] * thehacksaw has joined #silverstripe
727: [09:56:01] <Adesso> They are the two latest..
728: [09:56:13] <Adesso> StartPageTopicsAccessLeft.ss and DistrobutionPage.php
729: [09:57:46] * thehacksaw quit (Client Quit)
730: [09:58:01] <micmania1> Adesso: so when you call <% loop TopicLinks %> - that part works right?
731: [09:58:39] <Adesso> yes
732: [09:58:57] * thehacksaw has joined #silverstripe
733: [09:59:01] <Adesso> this is why I sa, I think my Scope is killing me
734: [09:59:04] <Adesso> say
735: [09:59:28] <micmania1> ok, so every loop you're in the scope of a DistributionPage - with me?
736: [09:59:43] <Adesso> yes
737: [10:00:06] <micmania1> so when you call MyContentPages, that must exist on DistributionPage. You currently have it on your controller.
738: [10:01:07] <Adesso> so the first call get's the Controller getter, but in that you then reffrence the Model ..
739: [10:02:04] <micmania1> yes.
740: [10:04:06] <Adesso> in theory you could then do this loops endless...
741: [10:04:28] * Adesso quit (Read error: No route to host)
742: [10:04:52] * Adesso has joined #silverstripe
743: [10:05:15] <micmania1> Adesso: yep
744: [10:06:00] * Adesso is not sure how, but this is making sense... with lights and angels and stuff..... Halleluja !!!
745: [10:06:15] <Adesso> thx micmania1
746: [10:07:21] <Adesso> btw. it's working :D
747: [10:07:58] <micmania1> \o/
748: [10:09:02] <Adesso> both ways work, is one better ?
749: [10:09:10] <Adesso> return $this->Children()->filter(array('ClassName'=>'ExtraPage'));
750: [10:09:18] <Adesso> return ContentPage::get()->filter(array('ParentID'=>$this->ID,'ClassName'=>'ExtraPage'));
751: [10:10:39] <micmania1> The second way will show all pages. The first will only show pages the are markes as 'Show in Menu' in the CMS.
752: [10:11:37] <Adesso> mmm. I guess that controll is maybe good to leave in
753: [10:11:43] * Adesso gos for option 1
754: [10:11:46] <Adesso> goes
755: [10:12:26] <Adesso> cause the Children method considers the Menu option... I guess
756: [10:14:45] * wracu has joined #silverstripe
757: [10:16:19] <wracu> Hi. Quick question... how do I allow a user to stay logged into the CMS for X hours?
758: [10:16:44] <kinglozzer> wracu: The "ping" should take care of that for you
759: [10:17:18] <kinglozzer> PHP sessions only stay alive for something like 10-20 mins (can't remember exactly), so the CMS sends an HTTP request every minute or so to keep the session alive
760: [10:17:35] <kinglozzer> If it's the front-end I think you'll need to do it yourself
761: [10:18:06] <wracu> Yeah it's front. o-0
762: [10:18:16] <wracu> sorry I did say CMS...
763: [10:18:47] <wracu> so js then?
764: [10:20:24] <kinglozzer> wracu: Yeah. setInterval(function() { $.ajax({ url: 'Security/ping', global: false, type: 'POST' }); }, 5 * 60 * 1000);
765: [10:20:28] <kinglozzer> That's what the CMS does ^^
766: [10:20:34] <wracu> if all i need to do is send and receive something I should just send an ajax request to a nothing function every 5 minutes, and stop sending after say 50 sends (~4 hr)
767: [10:20:43] <wracu> ah cool. thanks
768: [10:20:53] <kinglozzer> Pretty much, yeah
769: [10:20:56] * mento has joined #silverstripe
770: [10:20:56] * mento quit (Client Quit)
771: [10:21:10] * jeroenem has joined #silverstripe
772: [10:21:26] <jeroenem> hey guys, something seems to go wrong at the docs: http://api.silverstripe.org/3.1/
773: [10:23:20] * Audlex quit ()
774: [10:27:14] <Adesso> yeah.. we had this a couple of hours ago already... bot sure if they are fixing it right now....
775: [10:27:20] <Adesso> not sure
776: [10:27:26] <Adesso> I guess we wait and see
777: [10:27:43] <micmania1> Won't be fixed until tomorrow morning NZ time
778: [10:28:11] <jeroenem> ok :)
779: [10:28:38] <Adesso> When using $field_labels you can replace a tet field label in the admin... how to I get to a HTMLText label ?
780: [10:28:45] <Adesso> like Content
781: [10:28:52] <Adesso> text
782: [10:29:37] <Adesso> cause it's a Field-Combo_Box thingy
783: [10:29:55] * Adesso could ask for the Combo-Breaker .... :P
784: [10:32:26] * thehacksaw quit (Quit: This computer has gone to sleep)
785: [10:35:43] <Zauberfisch> wmk: kind of
786: [10:35:49] <Zauberfisch> wmk: pretty sick D:
787: [10:37:43] * wracu quit (Ping timeout: 246 seconds)
788: [10:37:49] <Adesso> For a UploadField it would be the same solution I guess... anybody..
789: [10:38:10] <Adesso> well since I add the upload field.. I can specify it .. so not the same
790: [10:38:14] <Adesso> but in theory
791: [10:38:55] <Adesso> I just can't believe that I have to remove and then add the Content Field to rename it ..
792: [10:39:09] <Adesso> is this really the only way ?
793: [10:41:23] * Adesso is chirping like a bird again... I guess
794: [10:44:31] <Adesso> anybody... ?
795: [10:45:51] <Adesso> I would consult the docs.. if they where working ..
796: [10:46:04] * Adesso hits Google again
797: [10:46:21] <Adesso> renameField is depricated I think
798: [10:49:56] <wmk> Zauberfisch, o
799: [10:49:57] <wmk> oh
800: [10:50:10] <wmk> Gute Besserung ;)
801: [10:51:38] * thehacksaw has joined #silverstripe
802: [10:54:42] <wmk> Adesso, if you have a Field afail ->Title('new fieldlabel')
803: [10:56:21] <wmk> so $fields->dataFieldByName('MyCrazyField')->setTitle('Adesso is a cool drummer');
804: [10:58:07] <wmk> But defining it in private static $field_labels should do the trick, too
805: [10:58:12] <Adesso> $fields->dataFieldByName('Content')->setTitle('Drumsolo'); seems to work
806: [10:58:42] <Adesso> I tried the field_labels... but it didn't work
807: [10:58:46] <wmk> did you flush?
808: [10:59:06] * Adesso gets off the Loo... good point
809: [10:59:13] <wmk> and is it a generated field or a field of a class above?
810: [10:59:23] <wmk> though it shouldn't matter if it's from an ancestor or not
811: [10:59:39] <wmk> in doubt (if flush doesn't work) try to overwrite it in config yml
812: [10:59:44] <wmk> AncestorClass:
813: [10:59:50] <wmk> field_labels:
814: [11:00:04] <wmk> MyCrazyField: 'my new text'
815: [11:00:29] <wmk> all static variables are cached and written to config()
816: [11:00:47] <Adesso> yeh.. the field_labels refuse to change the standard Content label, but the dataFieldByName works fine
817: [11:00:50] * kalam has joined #silverstripe
818: [11:01:13] <wmk> so: http://www.ecrater.com/p/6617702/sock-monkey-dont-forget-to-flush
819: [11:01:41] <wmk> maybe you'll have to overwrite it in SiteTree's config
820: [11:01:44] <wmk> dunno
821: [11:02:03] <Adesso> if the $fields->dataFieldByName works.. then it's ok
822: [11:02:10] <wmk> fine
823: [11:02:39] * wmk tends to use form scaffolder more and more, so i try to do as much as possible in config
824: [11:02:57] * kalam has left #silverstripe
825: [11:03:48] <wmk> ROTFL: https://twitter.com/ralphruthe/status/519062790301302785/photo/1
826: [11:09:57] <wmk> Adesso, using ss more and more you'll find out what it can do for you automatically. It's a nice journey
827: [11:11:11] <Adesso> as I am learning more, the questions seem to get less.. lucky for you guys I guess
828: [11:11:19] <ocmnt> :D
829: [11:11:19] <Adesso> :D
830: [11:13:50] <wmk> Adesso, i bet, i really bet, someone else will come
831: [11:13:57] <wmk> and take your seat
832: [11:14:34] <ocmnt> Liongold perhaps?
833: [11:14:39] <ocmnt> haven't seen him around for a while now
834: [11:14:54] <ocmnt> perhaps he finally start reading the docs and tutorials? :'D
835: [11:17:42] <wmk> don't know him yet
836: [11:19:11] <ocmnt> that day might come aswell ;)
837: [11:24:08] * Adesso just had to hard-delete the cache.... does this happen to you guys too ?
838: [11:24:21] <Adesso> that sometimes the flush just aint' flushing
839: [11:27:21] <wmk> sometimes, yes
840: [11:27:48] <wmk> HEY, got a demo of translatable actions working...
841: [11:28:02] <wmk> though it needs a lot of fine tuning to be really idiot proof...
842: [11:29:04] <ocmnt> Adesso, you could create a dir "silverstripe-cache" in your webroot
843: [11:29:22] <ocmnt> if you have problems hard-delete the cache just delete the content of that dir
844: [11:29:41] <ocmnt> btw, does anyone know if there is a vagrant / ss video available from the meetup?
845: [11:31:59] <wmk> ocmnt, no video :(
846: [11:32:09] <wmk> but a talk
847: [11:33:21] <wmk> Zauberfisch, is your talk still online?
848: [11:42:57] * thehacksaw quit (Quit: This computer has gone to sleep)
849: [11:51:39] * Spliff has joined #silverstripe
850: [11:59:56] * Spliff quit (Quit: Time to leave now)
851: [12:00:21] * Spliff has joined #silverstripe
852: [12:00:32] <wmk> kinglozzer, ups, just read your mail on dev ml... you've been faster ;)
853: [12:01:01] * ss31noob quit (Ping timeout: 246 seconds)
854: [12:02:06] <kinglozzer> Heh wmk, I should’ve put it in a new thread :P
855: [12:02:13] * kinglozzer lunch
856: [12:02:26] <wmk> bon appetit, kinglozzer
857: [12:02:50] * Spliff has left #silverstripe
858: [12:04:52] * jeroenem quit (Ping timeout: 246 seconds)
859: [12:11:39] * codetoday has joined #silverstripe
860: [12:12:36] * UndefinedOffset has joined #silverstripe
861: [12:14:21] * UncleCheese has joined #silverstripe
862: [12:17:04] <codetoday> anyone here?
863: [12:24:24] <ocmnt> nop
864: [12:24:25] <ocmnt> :D
865: [12:28:36] <codetoday> heh
866: [12:29:31] <wmk> depends
867: [12:29:42] <codetoday> lol!
868: [12:35:48] <codetoday> I've got a parent page called 'HelpHolder' (displaying a cover page with links to the different Help Topics)
869: [12:36:30] <codetoday> I got 'HelpPage' - but I want these to be a partial of 'HelpHolder' (As a accordion-like menu is on the left)
870: [12:36:53] <codetoday> wondering how-to-do ;P
871: [12:36:55] <wmk> you'll need a template for your HelpHolder
872: [12:37:03] <codetoday> Yeah, I have a template
873: [12:37:07] <wmk> inside the template you call the child pages with
874: [12:37:26] <wmk> <% loop $Children%> //output children content here <% end_loop %>
875: [12:37:48] <codetoday> yeah, but I only want to display one child at a given time
876: [12:38:05] <wmk> you wrote accordeon style.
877: [12:38:13] <wmk> so hide other items with css...
878: [12:38:26] <codetoday> true ^_^ good point there ;P
879: [12:38:28] <codetoday> hehe
880: [12:38:40] <wmk> accordeon is javascript. go for a plugin and use it ;)
881: [12:38:45] <codetoday> oh2easy
882: [12:38:50] <wmk> nothing ss specific
883: [12:38:56] <codetoday> yeah, sorry I think I just over-complicated it
884: [12:39:02] <wmk> np
885: [12:39:08] <wmk> we all do sometimes
886: [12:39:54] <wmk> maybe you'll have to modify the menu to show a link to open the accordeon
887: [12:40:01] <wmk> instead of a seperate page...
888: [12:40:31] <wmk> could be non obstrusive javascript, if you e.g add a css class for HelpPages
889: [12:41:20] <codetoday> yeah, I think I have that covered :)
890: [12:41:37] <wmk> fine!
891: [12:41:55] <wmk> (and don't forget to mention this irc channel in your git commit *G*)
892: [12:42:14] <codetoday> hehe
893: [12:43:05] <codetoday> oh, it's only me working on the project hehe
894: [12:43:09] <codetoday> but I can do that! :)
895: [12:45:02] <wmk> ;)
896: [12:46:07] <codetoday> I was just thinking, if I've got a cover page for where the Help accordion will be (Right hand side)
897: [12:46:07] <codetoday> (accordion-like) menu is still on the left
898: [12:46:08] <codetoday> ... I want to hide that, and bring up the HelpPage.ss accordion?
899: [12:47:03] <codetoday> In rails, we used partial pages (load this page depending on what the user selected)
900: [12:47:26] <wmk> you can make helper methods in your controller class
901: [12:47:33] <wmk> and call in template
902: [12:47:37] <wmk> e.g. in controller:
903: [12:47:55] <wmk> function getShowHelpMenu() {return true};
904: [12:48:06] <codetoday> so a bunch of conditionals :)
905: [12:48:09] <codetoday> hehe, thats cool
906: [12:48:11] <wmk> in Template: <% if $ShowHelpMenu %> ....
907: [12:48:22] <wmk> a possibility to switch something on/off by controller
908: [12:48:37] <codetoday> yeah, that's more like I was thinking!
909: [12:48:43] <wmk> you should know which controller needs it or not
910: [12:49:13] * Schwarz has joined #silverstripe
911: [12:50:44] <codetoday> yeah, thats awesome :)
912: [12:50:55] <codetoday> thanks!
913: [12:51:07] * thehacksaw has joined #silverstripe
914: [12:54:26] * Schwarz has left #silverstripe
915: [12:55:31] * UndefinedOffset quit (Quit: Leaving.)
916: [12:58:24] * hailwood has joined #silverstripe
917: [12:58:45] * Adesso quit (Ping timeout: 246 seconds)
918: [12:59:51] * Adesso has joined #silverstripe
919: [13:00:05] * wmk quit (Ping timeout: 260 seconds)
920: [13:02:26] * Otterpocket quit (Changing host)
921: [13:02:27] * Otterpocket has joined #silverstripe
922: [13:04:48] * Otterpocket quit (Quit: WeeChat 0.4.1)
923: [13:06:43] * Otterpocket has joined #silverstripe
924: [13:07:56] * Otterpocket quit (Client Quit)
925: [13:08:53] * Colin[pi] quit (Ping timeout: 260 seconds)
926: [13:10:10] * Otterpocket has joined #silverstripe
927: [13:15:26] * Colin[pi] has joined #silverstripe
928: [13:19:40] * rista has joined #silverstripe
929: [13:20:04] * Colin[pi] quit (Ping timeout: 260 seconds)
930: [13:20:27] * ss31noob has joined #silverstripe
931: [13:21:21] <rista> Hi, I have a question about the cms forms. On dataobject form ( getCMSFields method ) I added fields with the name that doesn't exists on the model, and in the onBeforeWrite the value of the fields is null. How can I get it's value?
932: [13:23:39] * codetoday quit (Remote host closed the connection)
933: [13:23:55] * muskie9 has joined #silverstripe
934: [13:25:44] * headtrip has joined #silverstripe
935: [13:36:19] <rista> anyone know what is the problem? I'm using SS 3.1.5.
936: [13:39:44] <ocmnt> rista, what are you aiming for? I believe onBeforeWrite only grabs the fields which are also found in your model
937: [13:39:47] <kinglozzer> rista: Fields not defined on your model are ignored
938: [13:39:51] <kinglozzer> ^^
939: [13:40:13] <ocmnt> seems I have the right believe then ;)
940: [13:40:18] <ocmnt> thnx kinglozzer
941: [13:41:00] <kinglozzer> At least, I'm pretty sure they're ignored
942: [13:41:37] <kinglozzer> Oh, yeah, they are ignored (Form::saveInto())
943: [13:41:51] <rista> because I need to make another objects ( Member ) there.
944: [13:41:58] <kinglozzer> rista: Controller::curr()->getRequest()->postVar('MyFormFieldName') might work
945: [13:42:06] <kinglozzer> But it's hacky
946: [13:43:06] <rista> yes, but onAfterWrite it works fine.
947: [13:43:33] <rista> ( only thing is that I need it on onBeforeWrite )
948: [13:44:54] <kinglozzer> rista: The form field data is there in onAfterWrite()??
949: [13:45:26] <rista> yes
950: [13:46:52] <kinglozzer> Ohhh, wait. I think I might've misunderstood the code in Form
951: [13:47:30] <kinglozzer> rista: Are you doing var_dump($this->foo);die; in onBeforeWrite()? From memory, onBeforeWrite() can be called more than once
952: [13:47:38] <kinglozzer> (though I'm not sure if that's only pages)
953: [13:48:40] <rista> no, I creating a new object in onBeforeWrite with the values from the fiels.
954: [13:48:51] <rista> fields*. Something as you can see here:
955: [13:48:52] <rista> http://sspaste.com/paste/show/4eea782820758
956: [13:48:56] <rista> only without die :)
957: [13:49:26] <kinglozzer> rista: Try moving the var_dump($this->TestField); die; inside the if($this->TestField)
958: [13:51:11] <ocmnt> kinglozzer, rista, $this->TestField will be empty since there is no $this->TestField
959: [13:51:18] <rista> this is my code
960: [13:51:19] <rista> http://sspaste.com/paste/show/5432993da2b48
961: [13:51:23] <ocmnt> $this-> refers to model
962: [13:51:35] <kinglozzer> ocmnt: I think Form::saveInto() will actually store it on the object though
963: [13:52:31] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/Form.php#L1271 & https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/FormField.php#L217
964: [13:52:45] <kinglozzer> (which if it can't find a field, just does $this->$var = $value
965: [13:53:14] <ocmnt> hm, interesting
966: [13:53:17] <ocmnt> didn't expect that
967: [13:53:27] <rista> yes, but that is on saveInto. And saveInto is called after the onBeforeWrite
968: [13:53:54] <kinglozzer> rista: No it isn't, it's called before
969: [13:54:02] <kinglozzer> That's how the object is populated with your form data
970: [13:56:16] <kinglozzer> rista: I just tried it (adding a field with no model) and mine appears in onBeforeWrite()
971: [13:56:49] <kinglozzer> Field: TextField::create('Test', 'test'). public function onBeforeWrite() { var_dump($this->Test);die; } <<< it dumps whatever I type into the field
972: [13:57:15] <kinglozzer> So it seems to be working fine, perhaps it's something to do with how your fields are being scaffolded from Member?
973: [13:57:27] <rista> huh...
974: [13:57:48] <rista> yes, but I created one field by my self - Asd is the name, and it's the same for that field.
975: [13:58:04] <rista> perfaps I'm missing it somewhere.
976: [13:58:24] <kinglozzer> rista: Let me double check - I tested by saving an existing object, perhaps it's different for new objects
977: [13:59:09] <kinglozzer> Yep, even for new objects var_dump($this->Test);die; shows string(16) "Testtestestsetse"
978: [14:00:16] * Shrike_Finland has joined #silverstripe
979: [14:00:22] * thehacksaw quit (Quit: Leaving)
980: [14:00:54] <rista> if you have a test env, can you try my code - just remove private static $has_many = array("MainObjects" => "MainObject"); because you will have a problem there.
981: [14:01:06] <rista> and on what version of SS are you testing?
982: [14:01:47] <kinglozzer> rista: 3.1.6
983: [14:02:11] <rista> well, I'm testing on 3.1.5
984: [14:03:01] * muskie9 quit (Ping timeout: 258 seconds)
985: [14:03:32] * muskie9 has joined #silverstripe
986: [14:04:14] <kinglozzer> rista: I just added your $member->scaffoldFormFields() stuff. If I var_dump($this->FirstName);die; it works as expected
987: [14:04:49] <rista> hmm, this is something with the model it self then.
988: [14:04:57] <rista> only have no idea what.
989: [14:05:35] <kinglozzer> rista: If you only put var_dump($this->FirstName);die; in your onBeforeWrite(), does it show up?
990: [14:06:16] <kinglozzer> Also, in the pastie you sent, you have onAfterWrite() { parent::onBeforeWrite()... - it should be parent::onAfterWrite()
991: [14:07:28] <rista> yes, I changed this in the mean time, it was onBeforeWrite in both cases.
992: [14:08:59] <rista> if I do var_dump the value is there
993: [14:09:43] <rista> and the member is saved with the empty values ( so no FirstName etc... ).
994: [14:10:10] <rista> this is so wierd...
995: [14:10:54] * SphereSilver has joined #silverstripe
996: [14:11:38] * UndefinedOffset has joined #silverstripe
997: [14:30:35] * gelignite quit (Quit: http://bit.ly/nkczDT)
998: [14:32:24] * Shrike_Finland quit (Quit: Leaving.)
999: [14:45:00] * danfo quit (Ping timeout: 260 seconds)
1000: [14:46:37] * SphereSilver quit (Remote host closed the connection)
1001: [14:47:44] * Adesso quit (Quit: EOD)
1002: [14:56:33] * wmk has joined #silverstripe
1003: [14:58:17] * headtrip quit (Quit: Computer has gone to sleep.)
1004: [15:00:54] * wmk quit (Ping timeout: 258 seconds)
1005: [15:01:57] * headtrip has joined #silverstripe
1006: [15:02:03] * FrozenFire quit (Ping timeout: 272 seconds)
1007: [15:03:02] * headtrip quit (Client Quit)
1008: [15:06:31] * baduras quit (Ping timeout: 246 seconds)
1009: [15:19:49] * Robke quit (Ping timeout: 246 seconds)
1010: [15:20:10] * ss31noob quit (Ping timeout: 246 seconds)
1011: [15:23:19] * muskie9 is now known as _muskie9_
1012: [15:23:59] * _muskie9_ is now known as muskie9
1013: [15:26:18] * muskie9 is now known as _muskie9_
1014: [15:26:23] * _muskie9_ is now known as muskie9
1015: [15:26:33] * FrozenFire has joined #silverstripe
1016: [15:33:45] * headtrip has joined #silverstripe
1017: [15:34:09] * FrozenFire quit (Ping timeout: 246 seconds)
1018: [15:35:22] * catcher has joined #silverstripe
1019: [15:36:15] * Trooy quit (Ping timeout: 272 seconds)
1020: [15:36:32] * ARNHOE quit (Ping timeout: 245 seconds)
1021: [15:37:30] * FrozenFire has joined #silverstripe
1022: [15:39:56] * headtrip quit (Ping timeout: 250 seconds)
1023: [15:42:27] * Trooy has joined #silverstripe
1024: [15:44:40] * rista quit (Ping timeout: 246 seconds)
1025: [16:04:59] * Trooy quit (Ping timeout: 272 seconds)
1026: [16:10:55] * Olliepop quit (Ping timeout: 246 seconds)
1027: [16:13:35] * Trooy has joined #silverstripe
1028: [16:27:07] * kinglozzer quit ()
1029: [16:33:39] * Otterpocket quit (Quit: WeeChat 0.4.1)
1030: [16:36:21] * headtrip has joined #silverstripe
1031: [16:40:23] * headtrip quit (Ping timeout: 240 seconds)
1032: [16:54:58] * stnvh quit ()
1033: [16:58:25] * muskie9 quit (Read error: Connection reset by peer)
1034: [16:59:03] * muskie9 has joined #silverstripe
1035: [17:11:23] * diana has joined #silverstripe
1036: [17:11:47] * diana is now known as Guest76541
1037: [17:12:24] <Guest76541> Hi I'm trying to install SS via composer in a Windows 7 environment without luck, I have composer installed, composer.phar in c:xamp/php
1038: [17:13:53] <Guest76541> composer diagnose shows OK in all items and this is the comand I'm using "composer create-project silverstripe/installer ./source 3.1.6" (I tried removing the version)
1039: [17:14:38] <Guest76541> I hope someone can offer some help :)
1040: [17:15:33] <Guest76541> this is the error message I'm getting [Composer\Downloader\TransportException] The "http://packagist.org/p/silverstripe/installer$bd3f00ba684e87ab29c6c480e78f49b401dbcef7997caeeec594a7e71fd64a63.json" file could not be downl oaded: failed to open stream: No connection could be made because the target machine actively refused it.
1041: [17:20:41] * muskie9 is now known as _muskie9_
1042: [17:35:44] * Trooy quit (Quit: Leaving)
1043: [17:37:06] * headtrip has joined #silverstripe
1044: [17:41:39] * headtrip quit (Ping timeout: 272 seconds)
1045: [17:43:51] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
1046: [17:49:58] * sk1u0122 has joined #silverstripe
1047: [17:50:26] * sk1u0122 has left #silverstripe
1048: [17:50:39] * Fuxo has joined #silverstripe
1049: [17:56:57] <catcher> whoa, http://api.silverstripe.org/3.1/
1050: [18:10:04] * _muskie9_ is now known as muskie9
1051: [18:12:11] * FrozenFire quit (Ping timeout: 258 seconds)
1052: [18:12:58] * wmk has joined #silverstripe
1053: [18:18:33] * FrozenFire has joined #silverstripe
1054: [18:24:42] * MartinSch has left #silverstripe
1055: [18:28:37] * eagles0513875 quit (Changing host)
1056: [18:28:38] * eagles0513875 has joined #silverstripe
1057: [18:28:38] * eagles0513875 quit (Changing host)
1058: [18:28:38] * eagles0513875 has joined #silverstripe
1059: [18:35:50] * SightUnseen has joined #silverstripe
1060: [18:37:54] * headtrip has joined #silverstripe
1061: [18:42:33] * headtrip quit (Ping timeout: 260 seconds)
1062: [18:42:58] <UndefinedOffset> catcher, woa thats kinda cool :P I submitted a pull to fix it but its like 7:40am for the SS team atm https://github.com/silverstripe/api.silverstripe.org/pull/9
1063: [18:43:42] <UndefinedOffset> if you really need the api to work you could just hack the stylesheet's path to point to ss.org like the pull request does, seems to make it work for me
1064: [18:45:23] * SightUnseen has left #silverstripe
1065: [18:57:42] * Kingy[a] is now known as Kingy
1066: [18:57:49] * Stomach has joined #silverstripe
1067: [19:04:52] * Guest76541 quit (Ping timeout: 246 seconds)
1068: [19:06:53] <catcher> UndefinedOffset, haha, indeed, thanks
1069: [19:08:39] <UndefinedOffset> np
1070: [19:12:13] * Olliepop has joined #silverstripe
1071: [19:24:18] * muskie9 is now known as _muskie9_
1072: [19:26:58] <Olliepop> This page a bit off for anyone else? http://api.silverstripe.org/master/class-Director.html#
1073: [19:27:17] * Phlunk3 has joined #silverstripe
1074: [19:29:33] * _muskie9_ is now known as muskie9
1075: [19:33:15] <Kingy> Olliepop: yep
1076: [19:37:39] * nickmolhoek has joined #silverstripe
1077: [19:38:07] * Ryan-Toast has joined #silverstripe
1078: [19:38:37] * headtrip has joined #silverstripe
1079: [19:39:54] * muskie9 is now known as _muskie9_
1080: [19:42:36] * _muskie9_ is now known as muskie9
1081: [19:42:42] * headtrip quit (Ping timeout: 245 seconds)
1082: [19:44:02] <Stomach> ss23 fix it
1083: [19:45:16] <Ryan-Toast> ss23: fixitfixitfixit
1084: [19:45:41] <Kingy> ss23: sort it out man
1085: [19:47:14] <Kingy> https://np.reddit.com/r/IAmA/comments/2iea97/i_am_a_former_reddit_employee_ama/cl1ygat?context=3
1086: [19:47:27] <Kingy> reddit CEO just destroyed a former employee
1087: [19:49:20] * Shrike_Finland has joined #silverstripe
1088: [19:51:12] <Olliepop> Kingy: That's awesome
1089: [19:51:29] <Kingy> a lot of people are saying how unprofessional that is
1090: [19:51:56] <Kingy> I disagree, someone comes in talking smack and generally lying deserves to be called out
1091: [19:52:29] <Olliepop> Yeah especially since it's his territory
1092: [19:52:37] <Ryan-Toast> Kingy: “You won’t believe what this CEO did to a gruntled ex-employee, It will re-kindle your hope for the human race"
1093: [19:52:43] <Olliepop> It's like coming back in to your former work and bitching about your employer
1094: [19:53:02] <Ryan-Toast> “16 reasons why you don’t talk smack about your previous work enviroment”
1095: [19:54:50] <Kingy> Ryan-Toast: rofl
1096: [19:55:20] * veb has joined #silverstripe
1097: [20:07:38] * Mish_ has joined #silverstripe
1098: [20:08:18] * muskie9 quit (Read error: Connection reset by peer)
1099: [20:08:56] * muskie9 has joined #silverstripe
1100: [20:11:37] * UndefinedOffset quit (Quit: Leaving.)
1101: [20:19:55] * irogue_ has joined #silverstripe
1102: [20:25:28] * toddvalentine has joined #silverstripe
1103: [20:30:11] * UncleCheese has joined #silverstripe
1104: [20:30:29] <Stomach> UncleCheese - http://api.silverstripe.org/3.1/
1105: [20:30:47] <Stomach> ps hello
1106: [20:31:37] <UncleCheese> hi
1107: [20:32:53] <UncleCheese> you like the new api site?
1108: [20:33:09] <Kingy> UncleCheese: very.... user friendly?
1109: [20:33:24] <UncleCheese> didn't make too many changes to it
1110: [20:33:28] <UncleCheese> just the top nav
1111: [20:33:45] <Kingy> have you clicked on the link and seen it? Don't know if being sarcastic or not :P
1112: [20:33:52] <UncleCheese> yes?
1113: [20:34:04] <UncleCheese> are you guys experiencing an issue?
1114: [20:34:12] <Kingy> yes
1115: [20:34:22] <Kingy> <link rel="stylesheet" type="text/css" href="http://ssorg-another.test.silverstripe.com/themes/ssv3/css/toolbar.css">
1116: [20:34:23] <Stomach> http://imgur.com/l3Yktp6
1117: [20:34:27] <Kingy> I think that is your problem
1118: [20:34:44] <UncleCheese> hmm
1119: [20:34:52] <UncleCheese> it looks okay to me
1120: [20:34:54] <Stomach> http://imgur.com/y9uPt1s
1121: [20:35:06] <UncleCheese> but of course that's probably because i'm in the network
1122: [20:35:07] <Kingy> UncleCheese: the css is pointing to test site
1123: [20:35:09] <Kingy> which you can see
1124: [20:35:30] <UncleCheese> looks like there's already a PR for it
1125: [20:35:31] <UncleCheese> https://github.com/silverstripe/api.silverstripe.org/pull/9
1126: [20:35:41] <Ryan-Toast> Unclecheese: dem svgs :P
1127: [20:35:48] <Kingy> Yeah that was UndefinedOffset
1128: [20:36:05] * micmania1 has joined #silverstripe
1129: [20:37:52] <Kingy> can manually change the element to point to http://silverstripe.org/themes/ssv3/css/toolbar.css
1130: [20:37:54] <Kingy> works fine :)
1131: [20:39:11] <pippy> Kingy: damn son. That reddit thread
1132: [20:39:23] * headtrip has joined #silverstripe
1133: [20:39:27] <Kingy> haha pippy pretty brutal
1134: [20:42:21] <Fuxo> ss.org's new design is a fresh air
1135: [20:42:57] <Fuxo> good job guys
1136: [20:43:33] <Ryan-Toast> What’s the fatest way to check for a has_many relationshiip? current;ly doing $this->owner->Foo()->Count() > 0
1137: [20:43:39] <Fuxo> any chance that template will be published on github?
1138: [20:43:41] <Ryan-Toast> fastest**
1139: [20:43:59] * headtrip quit (Ping timeout: 258 seconds)
1140: [20:45:47] <adrexia> Fuxo nothing yet we we know of, but others have requested it too
1141: [20:47:33] <Stomach> Ryan-Toast - thats pretty quick
1142: [20:47:40] <Ryan-Toast> Stomach: sweet :)
1143: [20:47:51] <Ryan-Toast> Stomach: #GOTTOGOFAST
1144: [20:48:00] <Stomach> Ryan-Toast - cache it then
1145: [20:48:22] <Ryan-Toast> Stomach: How do I cache biz in the controller?
1146: [20:48:38] <Fuxo> I see there are some articles about building single page themes with silverstripe (also with angular)
1147: [20:48:39] <Stomach> cache it when it gets output
1148: [20:49:04] <Stomach> :P
1149: [20:49:17] <Fuxo> and would be great if those are available as reusable themes
1150: [20:49:20] <Ryan-Toast> Stomach: In the template?
1151: [20:49:24] <Stomach> oryeah
1152: [20:49:29] <adrexia> Fuxo - agreed
1153: [20:49:37] <adrexia> I should just make one one day
1154: [20:49:52] <Ryan-Toast> Stomach: I honestly must suckmat caching, every time I use it I get content repeating and stuff.
1155: [20:50:00] <adrexia> but its at the end of a ratehr long to do list
1156: [20:50:04] <Stomach> use cacheinclude! :D
1157: [20:50:16] <Stomach> https://github.com/heyday/silverstripe-cacheinclude
1158: [20:50:21] <adrexia> would be really easy to use ionic for
1159: [20:50:31] <adrexia> Stomach +!
1160: [20:50:32] <Ryan-Toast> Stomach: :P more modules, haha
1161: [20:50:48] <adrexia> modules are amazing <3
1162: [20:50:53] <Stomach> yeah but its way faster than SS silverstripe partial caching
1163: [20:51:00] <Stomach> and gives you more control over when to cache
1164: [20:51:02] <Ryan-Toast> adrexia: I know, I know.
1165: [20:51:03] <adrexia> I do wish they didn't all live in root though
1166: [20:51:12] <Ryan-Toast> adrexia: yarp
1167: [20:51:47] <Stomach> and then you can use https://github.com/heyday/silverstripe-cacheinclude-manager as well
1168: [20:51:53] <Stomach> which is awesome for looking at
1169: [20:52:05] <adrexia> wow, that is pretty
1170: [20:52:07] <adrexia> :D
1171: [20:52:27] <adrexia> really cool idea
1172: [20:52:32] * zippy has joined #silverstripe
1173: [20:52:36] <adrexia> _and_ it looks good
1174: [20:52:40] <UncleCheese> ^^^ best caching solution ever
1175: [20:53:02] <adrexia> UncleCheese, I think the best caching is no caching
1176: [20:53:05] <UncleCheese> will be using it on ss.org
1177: [20:53:07] <Stomach> so for example I can check one of my sites and see I currently have 2600 caches in place
1178: [20:53:10] <adrexia> but will accept it as a close second
1179: [20:53:11] <adrexia> ;)
1180: [20:53:13] <Stomach> thats a lot of caching
1181: [20:54:04] <adrexia> yeah, and it gives users an interface which helps them understand why publishing something doesn't result in instant updates
1182: [20:54:13] <UncleCheese> exactly
1183: [20:54:22] <UncleCheese> and it's updated in real time, so when you load a page, you can watch what it's doing
1184: [20:54:41] <Fuxo> is it compatible with 3.1?
1185: [20:55:03] <Stomach> Fuxo - yep :)
1186: [20:55:10] <zippy> Stomach: thats nice
1187: [20:55:14] <Stomach> you need php5.4+ for the cache manager part
1188: [20:55:20] <zippy> ah balls
1189: [20:55:28] <Fuxo> fantastic
1190: [20:55:31] <zippy> current host stuck on 5.3
1191: [20:55:43] <Stomach> but the caching part runs on php 5.3.3
1192: [20:55:50] <adrexia> I just got a digital oceans domain
1193: [20:56:09] <adrexia> they seem pretty awesome
1194: [20:57:05] * novaweb has joined #silverstripe
1195: [20:57:23] <novaweb> Another day, another debug.
1196: [20:57:47] <zippy> :)
1197: [20:57:50] <irogue_> [09:55:31] <zippy> current host stuck on 5.3
1198: [20:57:53] <irogue_> I'm so sorry
1199: [20:57:56] <zippy> :/
1200: [20:58:11] <adrexia> get a better host, is what I'm saying ;)
1201: [20:58:15] <zippy> that client is, they have 100 odd sites on that server, with many early 2.4
1202: [20:58:22] <adrexia> ahh
1203: [20:58:31] <adrexia> lost cause
1204: [20:58:45] <zippy> so telling them they need to upgrade there server/php.... means we'll have to update those sites for 5.4+ compatability and who's cost...
1205: [20:59:05] <zippy> he'll probably just be "fuck it it's not borked"
1206: [20:59:19] <Stomach> just hire someone to bork it then :P
1207: [20:59:20] <adrexia> tell them the server is security risk (hey its probably true)
1208: [20:59:23] <adrexia> :P
1209: [20:59:23] <zippy> will double check security updates stop for that and the server
1210: [20:59:25] <zippy> yea
1211: [20:59:57] * lerni has joined #silverstripe
1212: [21:00:01] <zippy> I wonder if I can get them to stop using plesk as well, that'd be the awesomeness
1213: [21:00:05] <irogue_> "early 2.4"
1214: [21:00:10] <irogue_> there's your security risk right there
1215: [21:00:45] <zippy> irogue_: yea, but who goes back and updates client websites from older versions? Am I rite ss23 ?
1216: [21:00:54] <Stomach> stupid mac keyboard gets so dirty
1217: [21:01:07] <irogue_> I generally do, within the same major version
1218: [21:01:09] <zippy> Stomach: it's the keyboards fault your fingers are dirty?
1219: [21:01:15] <Stomach> yes it is
1220: [21:01:20] <zippy> irogue: you bill them for that?
1221: [21:01:21] <Stomach> black keyboard ignores dirt
1222: [21:01:44] <Stomach> white keyboard is all like "heres your dirty finger stains bro"
1223: [21:01:49] <zippy> hahah yea tru
1224: [21:02:07] <zippy> wonder if I could get them to move host at the sametime...
1225: [21:02:10] <irogue_> zippy: if they let me host for them, their hosting price includes minor version upgrades. otherwise, yes they're billed for that
1226: [21:02:31] <zippy> irogue_: true... I think this client bills for hosting, not sure what that covers thou
1227: [21:02:52] * Shrike_Finland quit (Quit: Leaving.)
1228: [21:02:55] <zippy> sitehost a good nz host, or people go with something else?
1229: [21:03:27] <irogue_> good nz host
1230: [21:03:29] <irogue_> > no results found
1231: [21:03:40] <zippy> hahaha
1232: [21:03:48] * Colin[pi] has joined #silverstripe
1233: [21:03:52] <irogue_> I gave up on NZ hosts
1234: [21:04:12] <irogue_> they were all hugely overpriced and oversubscribed
1235: [21:04:18] <adrexia> digital oceans seems nice
1236: [21:04:23] <adrexia> cheap
1237: [21:04:26] <adrexia> ;)
1238: [21:04:29] <zippy> adrexia: yes, but want faster ping
1239: [21:04:36] <zippy> 180+ too much
1240: [21:04:37] <adrexia> its prettyy fast
1241: [21:04:43] <adrexia> and umm, composerr is faster
1242: [21:04:47] <adrexia> weirdly
1243: [21:04:47] <zippy> your lucky simon_w not here :P
1244: [21:04:55] <adrexia> why?
1245: [21:04:57] <zippy> he raves about pings
1246: [21:05:00] <adrexia> lol
1247: [21:05:03] <irogue_> zippy: he uses Digital Ocean
1248: [21:05:12] <zippy> irogue_: yes, he does
1249: [21:05:20] <zippy> irogue_: who you host with?
1250: [21:05:26] <adrexia> most of our internet is elsewhere. users will not notice so long as you look after the code properly
1251: [21:05:34] <irogue_> so clearly he doesn't care about ping :P
1252: [21:05:48] <adrexia> seems fast enouygh to me
1253: [21:05:51] <irogue_> unless it's a massively ajaxy site, latency makes fuckall difference
1254: [21:05:53] <Fuxo> $10/month is a good price?
1255: [21:05:54] <irogue_> to web
1256: [21:06:02] <adrexia> plus you can choose where your servers are
1257: [21:06:07] <adrexia> though none here, obviosuly
1258: [21:06:32] <adrexia> yep, though you can get it for $5
1259: [21:06:39] <Colin[pi]> moin moin
1260: [21:07:02] <adrexia> oh, if anyone does want a digitaql oceans domain, I got sent the usual $10 credit to give away
1261: [21:07:08] <irogue_> zippy: MediaTemple. decent shared hosting (not plesk, they do load-balancing on it and don't seem to over-subscribe) and decent price
1262: [21:07:20] <irogue_> and you have SSH access so can use composer etc
1263: [21:07:27] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1264: [21:07:34] <UncleCheese> +1 digial ocean
1265: [21:07:35] <UncleCheese> no bullshit
1266: [21:07:36] <zippy> he used to use Rimu hosting, and just moved to DO not to long ago I think
1267: [21:07:58] <irogue_> yeah
1268: [21:08:07] <irogue_> rimuhosting no good, they use HD for their NZ servers
1269: [21:08:19] <UncleCheese> their servers are 1080p?!
1270: [21:08:22] <UncleCheese> omg
1271: [21:08:41] <Stomach> I'm on sitehost
1272: [21:08:51] <Stomach> but have been for years and years
1273: [21:08:59] <Stomach> and dont care about the sites that are on it, so wooo
1274: [21:09:05] <irogue_> sitehost is reasonable quality, but not well priced
1275: [21:09:18] <zippy> the storage is the biggest killer there
1276: [21:09:30] <adrexia> ouch
1277: [21:09:35] <adrexia> $30 a month
1278: [21:09:49] <adrexia> I could get three decent sized droplets for that!
1279: [21:09:50] <Stomach> charge 1 client $40 a month
1280: [21:09:53] <Stomach> PROFIT
1281: [21:09:57] <adrexia> hahaha
1282: [21:10:49] <irogue_> I also have a physical dedicated server in NL for EUR 59/mo
1283: [21:10:53] <adrexia> I'm prone to falling for sites with an awesome user experience, so right now digital oceans may as well own me
1284: [21:10:53] <Colin[pi]> <UncleCheese> their servers are 1080p?! <- LOL
1285: [21:11:27] <zippy> adrexia: true, but you can't beat their latency
1286: [21:11:38] <irogue_> I used to care about latency
1287: [21:11:46] <irogue_> then I realised how little difference it made
1288: [21:11:49] <adrexia> yeah, bigger problems than latency
1289: [21:12:27] <irogue_> 180ms is less than a fifth of a second. that's rarely going to be what's making the site slow :P
1290: [21:12:59] <UncleCheese> adrexia i'm the same way.. i'm a sucker for UX
1291: [21:13:00] <Stomach> make http://www.quakelive.com/ slow
1292: [21:13:27] <UncleCheese> although, I don't think it's being a sucker.. i think better UX is one of the best investments/choices a product can make
1293: [21:13:31] * jedateach has joined #silverstripe
1294: [21:13:39] <adrexia> I agree
1295: [21:13:41] <irogue_> not that unusual for silverstripe pages to take over a second to render on shitty cpanel/plesk web hosts
1296: [21:13:47] <UncleCheese> developer types always say, "oh, i don't care if it looks pretty"
1297: [21:13:53] <UncleCheese> but they really do :)
1298: [21:13:54] * irogue_ is a developer type
1299: [21:14:01] * irogue_ chooses almost everything based on UX
1300: [21:14:12] <adrexia> some care less than average
1301: [21:14:24] <adrexia> I trust things more if it has good ux
1302: [21:14:24] <UncleCheese> case in point, SS 2.0?
1303: [21:14:24] <Stomach> I choose everything on how fast it takes me to buy it
1304: [21:14:28] <irogue_> the way I see it, lack of caring about UX often indicates a potential lack of caring about other aspects of development
1305: [21:14:31] <adrexia> its more likely to be solid
1306: [21:14:31] <Colin[pi]> I'm similar to you irogue_
1307: [21:14:39] <Colin[pi]> I *do* judge books by their cover
1308: [21:14:44] <irogue_> yep
1309: [21:14:59] <zippy> In MyPage.php it will pull the MyPage.ss - can I specify somewhere in the controller to use a different .ss file for the default page - without overriding the index method? is there a property I can set
1310: [21:15:01] <adrexia> though, I trust Iwantmyname despite their UX
1311: [21:15:02] <adrexia> ;)
1312: [21:15:07] <UncleCheese> i do love the digital ocean UX.. ther'es always only like.. one thing to click on
1313: [21:15:10] <adrexia> because they are awesome people
1314: [21:15:33] <UncleCheese> you compare that to the myriad other hosting admin panels out there.. just massive link and button lagoons
1315: [21:15:57] <adrexia> stuff like this is pretty hard to get right. And often built just by devs
1316: [21:16:17] <UncleCheese> i'm keen to find out what simon_w has in mind for his hosting thingy
1317: [21:16:25] * headtrip has joined #silverstripe
1318: [21:16:27] <UncleCheese> i'd totally get behind it if he had some designs
1319: [21:16:28] <adrexia> and as much as a developer might care about UX, very few can do both to a high quality level
1320: [21:16:31] <UncleCheese> because tha'ts really all i care about
1321: [21:16:48] <adrexia> (and a lot of devs *do* care, once they can afford to)
1322: [21:16:56] <UncleCheese> HHVM and CPU and RAM and OMFG doesn't excite me
1323: [21:17:00] <irogue_> adrexia: this is me. I care about it but can't *do* it
1324: [21:17:01] <adrexia> hahaha
1325: [21:17:27] <UncleCheese> <adrexia> and as much as a developer might care about UX, very few can do both to a high quality level <-- yes!
1326: [21:17:28] <adrexia> irogue_ then you are the sort of developer I like to work with
1327: [21:17:49] <UncleCheese> The web would be such a better place if these one-stop-shop devs could just focus on one thing
1328: [21:18:08] <adrexia> it's ok, we don't need unicorns, we can have teams instead :)
1329: [21:18:08] <UncleCheese> but we have to suffer in a world where haughty developers think they can "do" design
1330: [21:18:13] <Stomach> zippy - $this->template = 'Lol';
1331: [21:18:14] <Stomach> ?
1332: [21:18:21] <zippy> Stomach: will it?
1333: [21:18:34] <veb> Kingy: dickbag
1334: [21:18:39] <veb> Kingy: oi
1335: [21:18:48] <adrexia> UncleCheese, in the open source world there's often not a lot of choice.
1336: [21:18:59] <adrexia> asnd its unfair to blame the devs for that
1337: [21:19:02] <UncleCheese> what makes you say that?
1338: [21:19:03] <Colin[pi]> UncleCheese: mm I think design/UX is prolly one of the lowest on simon's priority list :o
1339: [21:19:10] <adrexia> though tehy do need to actively be inclusive
1340: [21:19:11] <Stomach> yeah try "public $template = 'template'; " just in the controller
1341: [21:19:16] <UncleCheese> i know, and that's why i'm kind of, meh on it
1342: [21:19:17] <Stomach> zippy - they getViewer method checks for that
1343: [21:19:31] <zippy> cool just looking at it
1344: [21:19:36] <zippy> thanks
1345: [21:19:46] * Colin[pi] just spent a minute looking for his glasses only to realise they were tucked into the top of his t-shirt ;(
1346: [21:19:51] <adrexia> UncleCheese, traditionally open source has been driven by devs, and is dominated by devs
1347: [21:19:59] <adrexia> very few UX types involved at all
1348: [21:20:09] <adrexia> it's like a developer hobby club
1349: [21:20:21] <adrexia> that is chnaging, but very slowly
1350: [21:20:26] <UncleCheese> yeah, it's open-source, not open-psd
1351: [21:20:34] <Colin[pi]> adrexia: mm and the more I spend in backend, the worse my frontend becomes
1352: [21:20:37] * headtrip quit (Ping timeout: 244 seconds)
1353: [21:20:51] <adrexia> Colin[pi], yeah, you need timne to do both
1354: [21:21:03] <UncleCheese> i dunno, any time i have a module that involves frontend work, i take it through a designer who is willing to loan me some time
1355: [21:21:11] <Colin[pi]> like, I still understand what looks crap or not
1356: [21:21:23] <Colin[pi]> but.. my frontend skills have waned a little
1357: [21:21:33] <UncleCheese> i can't stand writing CSS
1358: [21:21:37] <UncleCheese> too much to know now
1359: [21:21:41] <Stomach> UncleCheese - amen
1360: [21:21:44] <UncleCheese> gradients and transitions n' shit
1361: [21:21:46] <UncleCheese> pixel pushing
1362: [21:21:49] <Colin[pi]> UncleCheese: sass?
1363: [21:21:49] <Stomach> so many little caveats
1364: [21:21:50] <adrexia> frontend skills get old _very_ fast if you don't keep up
1365: [21:21:56] <zippy> so, who is used for email hosting then?
1366: [21:21:56] <UncleCheese> yeah, i heard about that
1367: [21:21:58] <zippy> gmail?
1368: [21:22:07] <UncleCheese> zippy Mandrill
1369: [21:22:11] <UncleCheese> oh, inbound
1370: [21:22:13] <UncleCheese> gmail
1371: [21:22:15] <adrexia> I hate css
1372: [21:22:23] <Ryan-Toast> Why would $croppedimage(foo, bar).Link work, but not $Image.Link ?
1373: [21:22:23] <adrexia> but I like the result
1374: [21:22:37] <zippy> Ryan-Toast: scope....
1375: [21:22:41] <adrexia> ..and I like good architeccture
1376: [21:22:45] <zippy> Ryan-Toast: just do, $Link
1377: [21:22:52] <adrexia> the less time I have to spend in css world the better
1378: [21:22:53] <Ryan-Toast> zippy: oh, thanks :)
1379: [21:23:01] <adrexia> architecture helps that
1380: [21:23:12] <Colin[pi]> adrexia UncleCheese: I still love this gif, it says it all really: http://2.bp.blogspot.com/-41v6n3Vaf5s/UeRN_XJ0keI/AAAAAAAAN2Y/YxIHhddGiaw/s1600/css.gif
1381: [21:23:44] <adrexia> I'm mostly past that stage of css ;)
1382: [21:23:50] * veb waits for Kingy
1383: [21:23:55] <veb> someone tell Kingy to stop fapping at work
1384: [21:23:59] <adrexia> happens rarely these days
1385: [21:24:04] <Colin[pi]> adrexia: haha yeah I've found using a good framework/foundation avoids a lot of that
1386: [21:24:08] <UncleCheese> Colin[pi] LOL
1387: [21:24:15] <UncleCheese> that drew a crowd at the office :)
1388: [21:24:16] <Colin[pi]> UncleCheese: so true isnt it?
1389: [21:24:18] <jolene> haha
1390: [21:24:20] <UncleCheese> sooooo true
1391: [21:24:23] <adrexia> yep. and a lot of it is just learning the rules and the consequencews'
1392: [21:24:51] <adrexia> and, again, good archtechture helps
1393: [21:25:01] <zippy> Ryan-Toast: good?
1394: [21:25:07] <Ryan-Toast> zippy: yeah man, cheers :)
1395: [21:25:12] <zippy> chur
1396: [21:25:15] <adrexia> people who do things like section section article { css rule} cause themselves a lot of p[ain
1397: [21:25:32] <adrexia> and me a mlot of pain if I ever have to maintain taht
1398: [21:25:38] <Ryan-Toast> zippy: I didn’t know a many_many image literally retrned the image params :P Can we just pretend like it’s monday so I can get away with it?
1399: [21:26:14] <zippy> Ryan-Toast: you'll be looping them... so you can also use $Me.Link - it's just like looping a list of pages
1400: [21:26:15] <Ryan-Toast> adrexia: “section section article{}” **shudder
1401: [21:26:23] <Ryan-Toast> zippy: coolio :)
1402: [21:26:41] <adrexia> Ryan-Toast, that's a real example
1403: [21:26:43] <adrexia> :(
1404: [21:26:46] <Stomach> adrexia, Ryan-Toast what do you do instead?
1405: [21:26:51] <Stomach> oh, you mean the actual tags
1406: [21:26:54] <adrexia> use classes
1407: [21:26:58] <Ryan-Toast> Stomach: yeah, lol
1408: [21:27:13] <adrexia> don't style thjings basedd on arbitary nesting
1409: [21:27:26] <Ryan-Toast> adrexia: used to work on legacy bank websites. I’ve seen some shit.
1410: [21:27:31] <Stomach> I was like "whats wrong if you have '.lead .sub .outer {}" :(
1411: [21:27:51] <adrexia> haha nothing if that makes sense for what you are doing
1412: [21:27:56] <adrexia> ;)
1413: [21:28:09] <Ryan-Toast> Stomach: section article hgroup h1 a span{font-weight: bold}
1414: [21:28:09] <adrexia> I'm not sure what sub and outer are
1415: [21:28:16] <adrexia> so could be more descriptive
1416: [21:28:19] <Stomach> adrexia - random things that came into my head
1417: [21:28:24] <adrexia> but wouldn't result in the bvlinds effect
1418: [21:28:28] <adrexia> ;)
1419: [21:28:29] <Ryan-Toast> I usually have .loop .item .inner
1420: [21:28:52] <Ryan-Toast> for loops.
1421: [21:28:54] <Ryan-Toast> that is.
1422: [21:28:56] <adrexia> I wouldn't use .loop
1423: [21:29:05] <Stomach> I try to do .tld-something .tld-somethingelse .tld-somethingelseelse
1424: [21:29:13] <adrexia> it's not relivent to the design ;)
1425: [21:29:24] <adrexia> but same basic premise
1426: [21:29:34] <adrexia> ahh
1427: [21:29:42] <adrexia> I don't like three letter things
1428: [21:29:48] <adrexia> prefer the whole word
1429: [21:29:53] <Stomach> I'm gonna start naming all of my css selectors after composers
1430: [21:29:58] <adrexia> but namesapcing is ood
1431: [21:30:04] <adrexia> lol
1432: [21:30:11] <adrexia> mozart-slider
1433: [21:30:16] <Ryan-Toast> adrexia: I use loop for all my loops :) https://i.imgur.com/zmbrt.jpg
1434: [21:30:36] <adrexia> Ryan-Toast, but what *is* a loop in html?
1435: [21:30:40] <Stomach> .mozart .bach .beethoven { font-weight: 300; }
1436: [21:30:50] <Ryan-Toast> adrexia: a dynamic sectiopn
1437: [21:30:54] <Stomach> .mozart .beethoven .bach { font-weight: 500; }
1438: [21:31:04] <Ryan-Toast> so I’ll have some shit like .gallery.loop
1439: [21:31:05] <adrexia> Ryan-Toast, only dynasmic if its js
1440: [21:31:24] <Ryan-Toast> and .gallery will extend loop
1441: [21:31:36] <adrexia> what does loop do in the css?
1442: [21:31:48] <adrexia> are there actually shared styles?
1443: [21:32:05] <Ryan-Toast> small margin, and styles containing items to not rub up against each other
1444: [21:32:32] <adrexia> but couldn't one loop be thumbnails,. and another be search results?
1445: [21:32:42] <Stomach> this is a CSS loop
1446: [21:32:42] <Stomach> http://codepen.io/sol0mka/pen/mICGv
1447: [21:32:48] <UncleCheese> there is an animated GIF for literally every sentiment in the world
1448: [21:33:04] <Ryan-Toast> adrexia: http://www.sspaste.com/paste/show/5433056c5a0db
1449: [21:33:06] <adrexia> Stomach, that ios aweesome
1450: [21:33:19] <adrexia> I thoought is was goign to be a rendered loop image ;)
1451: [21:33:24] <Ryan-Toast> :P
1452: [21:33:33] <zippy> when is silverstripe going 5.4 only
1453: [21:33:35] <Ryan-Toast> Rollercoster css, best css
1454: [21:34:02] <Stomach> actually I hate tld in css now too
1455: [21:34:18] <adrexia> hmm, so .loop is actually .item-list
1456: [21:34:20] <Stomach> ".col-xs-2 cm5" wtf
1457: [21:34:27] <Ryan-Toast> adrexia: yeah pretty much
1458: [21:34:43] <Ryan-Toast> Stomach: print style maybe?
1459: [21:34:45] <adrexia> except its a developer/code based name, rather than a design based name
1460: [21:35:01] <Stomach> Ryan-Toast - it means "col-margin-5" :\
1461: [21:35:09] <Ryan-Toast> Stomach: oh.
1462: [21:35:11] <Ryan-Toast> Oh my
1463: [21:35:48] <adrexia> yeah, the short names for padding and margin take some gettign used to
1464: [21:35:51] <Ryan-Toast> adrexia: yeah I suppose item-list would be more readable. I need to do a big refactor of my css. I’m just lazy.
1465: [21:36:00] <adrexia> damn useful for keeping your componetns reusable though
1466: [21:36:12] <adrexia> Ryan-Toast, naming is *hard*
1467: [21:36:14] <irogue_> "I'm just lazy"
1468: [21:36:17] <irogue_> story of every developer's life
1469: [21:36:25] <Ryan-Toast> adrexia: agreed.
1470: [21:36:29] <adrexia> so long as the usecase is clear, its ok
1471: [21:36:38] <Ryan-Toast> unless it’s friday afternoon, then naming is ewasy.
1472: [21:36:51] <Colin[pi]> .fuckit .goinghome
1473: [21:36:52] <Ryan-Toast> .fuck-it-im-going-home{color: red}
1474: [21:36:54] <Colin[pi]> LOL
1475: [21:36:55] <Ryan-Toast> lol!
1476: [21:36:56] <Colin[pi]> ^
1477: [21:36:56] <adrexia> lol
1478: [21:37:06] <Colin[pi]> love it when that happens
1479: [21:37:10] <Colin[pi]> SYNERGY
1480: [21:37:36] <adrexia> .fuck-it-im-going-home{@extends .goinghome; @extends .fuckit;}
1481: [21:38:01] <Stomach> .fuckit(@im-going-home);
1482: [21:38:13] <Ryan-Toast> dry, people. Dry
1483: [21:38:17] <Stomach> all the CSS preprocessors
1484: [21:38:25] <Ryan-Toast> %im-going-home
1485: [21:39:09] <Stomach> .fuckit(@its-only-tuesday-semicolon-left-parenthesis);
1486: [21:39:34] <adrexia> %im-going-home is quite a different message. until you extends it, it won't be rendered
1487: [21:39:39] <adrexia> I like it :D
1488: [21:39:54] * wmk quit (Ping timeout: 246 seconds)
1489: [21:39:56] <pippy> But I have to support MSIE7 :(
1490: [21:40:07] <adrexia> pippy aww
1491: [21:40:17] <adrexia> its ok, these preprocess
1492: [21:40:23] <pippy> .ltie7 .going-home-hack {color:red}
1493: [21:40:26] <adrexia> so in theroy still work in IE7
1494: [21:40:30] <Kingy> pippy: simply stop, then you don't
1495: [21:40:35] <adrexia> hahah
1496: [21:40:42] <zippy> Arq ( http://www.haystacksoftware.com/arq/ ) is quite a good tool for some extra backup protection fyi. It can use Amazon Galcier which is $.01/GB per month (or S3 or google etc). Quite useful.
1497: [21:41:17] * catcher quit (Quit: Leaving)
1498: [21:41:36] <Colin[pi]> guys, recommendations for a simple issue/bug tracker I could self host?
1499: [21:41:48] <Stomach> phabricator
1500: [21:41:53] <adrexia> gitlab
1501: [21:42:11] <adrexia> oh... simple
1502: [21:42:13] <adrexia> ;)
1503: [21:42:16] <Colin[pi]> lol
1504: [21:42:34] <Colin[pi]> that looks pretty cool Stomach
1505: [21:42:37] <adrexia> phabricator looks pretty
1506: [21:42:53] <Stomach> yeah it does a bit more than just track issues though :)
1507: [21:43:39] <Colin[pi]> this looks ok too, but not free: https://bugify.com/
1508: [21:44:10] <adrexia> http://www.redmine.org/
1509: [21:44:30] <irogue_> phabricator is/was a facebook tool
1510: [21:44:37] <adrexia> wow, issues tracking has suddenly been introduced to UX
1511: [21:44:42] <Colin[pi]> heh
1512: [21:44:54] <irogue_> developed at facebook for their use, but the author left fb and made a company around it
1513: [21:45:10] <Colin[pi]> irogue_: no IP issues?
1514: [21:45:39] <Colin[pi]> (didnt check the licencing stuff)
1515: [21:45:39] <irogue_> apparently not. from what I can tell facebook are pretty good with anything they don't see as competition to their primary product.
1516: [21:45:43] <Colin[pi]> mmm
1517: [21:46:59] <irogue_> DAE read (or attempt to read) Netflix' tech blog?
1518: [21:47:07] <irogue_> http://techblog.netflix.com/
1519: [21:47:14] <irogue_> I read it and go "I understand some of these words"
1520: [21:48:34] <Colin[pi]> o_O
1521: [21:49:17] <zippy> "Out of our 2700+ production Cassandra nodes" damn thats some hardware, just for the DB
1522: [21:49:55] <Colin[pi]> zippy: yeah think about how many people use it now doe
1523: [21:50:40] <UncleCheese> what are everyone's favourite _ss_environment settings?
1524: [21:50:40] <Colin[pi]> I just finished setting up my new HTPC build.. kinda old school since I have almost everything stored in a 10TB bank of HDD's
1525: [21:50:41] <zippy> yea I should really get an account
1526: [21:50:50] <UncleCheese> * for your local dev environment?
1527: [21:50:58] <zippy> UncleCheese: dev mode :) default admin details, send emails from
1528: [21:51:29] <zippy> send emails from AND send emails to
1529: [21:52:15] <zippy> I even, added a function in there :) a copy of the dd from laravel since I use it so much was fucking me off
1530: [21:52:54] <zippy> it would be nice if you could specify a security log email entry in there, so on the production server I can set it to email me - without it having to be in the mysite/_config.php
1531: [21:53:00] <adrexia> <UncleCheese> what are everyone's favourite _ss_environment settings?
1532: [21:53:05] <adrexia> is that a thing?
1533: [21:53:12] <adrexia> people have favourites?
1534: [21:53:28] <madmatt> haha
1535: [21:53:31] <madmatt> SEND_ALL_EMAILS_TO
1536: [21:53:39] <madmatt> Saved me a million billion times
1537: [21:53:49] <irogue_> I don't trust just SEND_ALL_EMAILS_TO tho
1538: [21:54:02] <irogue_> also set my relayhost to my Mailcatcher
1539: [21:54:07] <UncleCheese> adrexia you'd be surprised.. every _ss_environment I see is a little different
1540: [21:54:16] <adrexia> oh, actually, my favourite was ss23's addition of CWP_SUCKS
1541: [21:54:16] <zippy> Mailcatcher is good :)
1542: [21:54:18] <UncleCheese> some people have merge strategies, wehere hte project can override the core
1543: [21:54:22] <UncleCheese> zippy !
1544: [21:54:39] <adrexia> if you defined it you could switch out the database in a cwp project
1545: [21:54:54] <zippy> UncleCheese: UncleCheese ?
1546: [21:55:07] <adrexia> it was before they out in the configure from enviornment thing, so all our cwp db names had to be cwp
1547: [21:55:32] <adrexia> *put in
1548: [21:55:40] <UncleCheese> i'm a big fan of SS_DATABASE_CHOOSE_NAME
1549: [21:56:28] <Stomach> so many hidden configs
1550: [21:56:34] <adrexia> yeah, having ss enviroronment provide the database name makes sense to me
1551: [21:56:36] <Colin[pi]> these ss_environment things are useful but they feel hackish to me
1552: [21:56:41] <adrexia> keep it out of version controle
1553: [21:57:28] <UncleCheese> right, and honestly, who gives a hoot what your local db name is anyway
1554: [21:57:50] <irogue_> mine are all 'vagrant' :P
1555: [21:58:19] <adrexia> exactly. sao config gets the local db name, ss enviroment gets the real one
1556: [21:58:39] <adrexia> because usually I have one ss enviorment file for all of my silverstripe projects
1557: [21:59:00] <adrexia> and it really sucks if they all use the same database
1558: [21:59:28] <UncleCheese> i do quite like that SS will attempt to create the db, too
1559: [21:59:48] <UncleCheese> and if youre chucking the root account in your ss_environment, that's a really nice thing
1560: [21:59:56] * stojg has joined #silverstripe
1561: [22:11:26] <zippy> Is there a way to render a template when you in a dataobject?
1562: [22:11:39] <zippy> since $this->renderWith() wont work, amybe... Controller::cur()->renderWith()
1563: [22:11:40] <zippy> hm
1564: [22:11:55] <Kingy> yay adrexia your issue got fixed :)
1565: [22:12:47] <UncleCheese> zippy any ViewableData subclass can RenderWith
1566: [22:13:37] <zippy> UncleCheese: DataObject isn't ViewableData thou is it
1567: [22:13:44] <UncleCheese> yessir
1568: [22:13:47] <UncleCheese> is the parent class
1569: [22:14:14] <adrexia> Kingy which one?
1570: [22:14:29] <Kingy> 'no code'
1571: [22:14:30] <Kingy> :P
1572: [22:15:00] <Fuxo> zippy: you can always create new ViewableData()->customise(...)->renderWith(...);
1573: [22:15:24] <Fuxo> anywahere, even in an ajax response
1574: [22:15:33] <UncleCheese> i dont' see what's wrong with $myObject->renderWith('SomeTemplate');
1575: [22:15:59] <zippy> Really, what I am trying to do is create an email from some HTML content, and populate the $X with data...
1576: [22:16:05] <Fuxo> yes, for DO, it's easy
1577: [22:16:14] <zippy> which works fine in controllers but fell over for DO. so I wonder if I am going it the wrong way
1578: [22:16:50] <UncleCheese> yeah, for that, I usually just go $html = ViewableData::crreate()->customise($data)->renderWith('Template');
1579: [22:17:09] * headtrip has joined #silverstripe
1580: [22:17:12] <UncleCheese> ^^ that is definitely not the best way to do it.. i think a better method is to just go directly to an SSViewer instance
1581: [22:17:16] <zippy> can't use 'Template' since the HTML is coming from the CMS
1582: [22:17:27] <UncleCheese> eh?
1583: [22:17:33] <zippy> $body = ViewableData::renderWith(SSViewer::fromString($siteConfig->EmailBody), $data);
1584: [22:17:36] <zippy> is how I do it normally
1585: [22:17:54] <zippy> ah
1586: [22:17:57] <UncleCheese> you're writing SS template code in the CMS?
1587: [22:18:01] <zippy> sort of
1588: [22:18:02] <Fuxo> I usually do this: $template = new SSViewer('template')->process(new ArrayData(array(...)));
1589: [22:18:08] <zippy> Hello $FirstName welcome to our website
1590: [22:18:14] <zippy> this way site owners can change the content of the email
1591: [22:18:21] <UncleCheese> gotcha
1592: [22:18:34] <ss23> FIXING IT
1593: [22:18:34] <zippy> renderWith isn't a static function
1594: [22:18:38] <ss23> OH GOD OH GOD FIXING IT
1595: [22:18:56] <zippy> ViewableData()->renderWith(SSViewer::fromString($siteConfig->EmailBody), $data); I need to do erpahs
1596: [22:19:07] <zippy> *perhaps
1597: [22:19:21] <UncleCheese> i think what you want is
1598: [22:19:33] <zippy> UncleCheese: needs to work in DataExtensions too :)
1599: [22:19:55] <UncleCheese> $html = SSViewer::fromString($siteConfig->EmailBody)->process($data);
1600: [22:20:18] <zippy> the ssviewer can populate with process?
1601: [22:21:21] <ss23> Whats up with all these advertisements for WoW up in Wellington lately? Seems a bit mainstream to have them everywhere? Do we have that many gamers?
1602: [22:21:29] * headtrip quit (Ping timeout: 260 seconds)
1603: [22:21:31] * toddvalentine quit ()
1604: [22:21:36] <Kingy> not WoW
1605: [22:21:42] <Kingy> dislike ss23
1606: [22:21:43] <UncleCheese> ha ss23 that's what I thought too
1607: [22:21:50] <zippy> wearable arts?
1608: [22:22:11] <Fuxo> zippy: or go the simplest way: $email->populateTemplate(array('Member' => $member));
1609: [22:22:31] <zippy> Fuxo: not possible I want the content of the email editable in the CMS
1610: [22:22:57] <Fuxo> and use $Member.FirstName in the template set in $email->setTemplate()
1611: [22:23:12] <UncleCheese> Fuxo he doesn't have a template file, he just has htmltext from the db
1612: [22:23:28] <zippy> Fuxo: can't use a template file
1613: [22:23:36] <adrexia> Kingy - which issue got fixed?
1614: [22:23:38] <Fuxo> sorry
1615: [22:23:52] <Kingy> adrexia: deploynaut issue #1 - 'no code'
1616: [22:23:53] <zippy> UncleCheese: I will give your method a rip, looks nicher
1617: [22:24:07] <Fuxo> then just use a db field + html editor for body or whatever and use what UC wrote
1618: [22:24:11] <adrexia> Kingy hahah true ;)
1619: [22:24:43] <UncleCheese> zippy my method should work, provided $data is ViewableData instnace, e.g. ArrayData::create(array('Name' => 'Joe'));
1620: [22:24:46] <zippy> Fuxo: yes...
1621: [22:24:54] <zippy> Fuxo: That is what we are getting at..
1622: [22:25:16] <Fuxo> $template = SSViewer::fromString($this->Body); $data = new ArrayData(array('Member' => $member)); $body = $template->process($data);
1623: [22:26:09] <Fuxo> with private static $db = array('Body' => 'HTMLText');
1624: [22:26:38] <UncleCheese> keep in mind that the process() method will return a DBField instance, so you may have to run forTemplate() against it
1625: [22:28:30] * headtrip has joined #silverstripe
1626: [22:28:30] <zippy> I'll have a tplay
1627: [22:28:35] <zippy> thanks
1628: [22:29:01] <superspring> hey peoples, is here a good place for minor bugs in http://addons.silverstripe.org/ ?
1629: [22:30:37] <Fuxo> gnight
1630: [22:30:41] * Fuxo has left #silverstripe
1631: [22:31:05] <adrexia> superspring try the githbub repo
1632: [22:31:27] <adrexia> https://github.com/silverstripe/addons.silverstripe.org
1633: [22:32:45] * headtrip quit (Ping timeout: 246 seconds)
1634: [22:34:10] <ss23> superspring: Keep in mind, unless you fix it, it likely won't be fixed :P
1635: [22:34:41] <superspring> ss23: bug isn't the right word, just links that go nowheres... content issue :p
1636: [22:35:01] <ss23> 99.99% of the content is autogenerated, so it'd count as a bug, superspring
1637: [22:39:41] <adrexia> superspring - have you got an example?
1638: [22:40:11] <superspring> adrexia: http://addons.silverstripe.org/add-ons?search=
1639: [22:40:16] <superspring> adrexia: click '2.4'
1640: [22:40:17] <adrexia> oh look, the widgets page no longer exists
1641: [22:40:31] <adrexia> http://www.silverstripe.org/widgets
1642: [22:40:32] <superspring> adrexia: click the link it offers... that page no longer exists...
1643: [22:40:51] <adrexia> oh neither does modules
1644: [22:40:53] <adrexia> hmm
1645: [22:41:03] <adrexia> that's a .org issue really
1646: [22:41:13] <adrexia> as well as an addons issue
1647: [22:41:38] <adrexia> those links should either be removed, or go somewhere
1648: [22:41:59] <superspring> adrexia: it's kinda sad the 2.4 modules have disappeared completely though...
1649: [22:42:18] <adrexia> no they still turn up
1650: [22:42:28] <adrexia> but only if they have bee updated with composer
1651: [22:42:39] <adrexia> you can find a bunch on github
1652: [22:42:46] <superspring> adrexia: exactly, so the old modules that peoples no longer update will be lost...
1653: [22:42:56] <adrexia> but the old system relied on people submitting modules, and well, it got very out of date
1654: [22:43:08] <adrexia> it meant that sometimes the repo had actually gone
1655: [22:43:11] <superspring> agreed, archiving it instead of deleting it is a better idea though...
1656: [22:43:17] * simon_w|work has joined #silverstripe
1657: [22:43:25] <adrexia> at some point it would need to be deleted
1658: [22:43:31] <adrexia> hm
1659: [22:43:59] <superspring> adrexia: i still have lots of 2.4 clients who refuse to upgrade, makes life difficult for me as a developer when it's just *gone*
1660: [22:44:10] <adrexia> google search
1661: [22:44:16] <adrexia> most are hosted on github
1662: [22:44:44] <adrexia> thing is though, if it hasn't been updated in several years it might be a security risk
1663: [22:44:56] <superspring> adrexia: so you're saying - too bad, figure it out?
1664: [22:45:08] <adrexia> http://web.archive.org/web/20140701171617/http://www.silverstripe.org/modules/
1665: [22:45:11] <adrexia> ;)
1666: [22:45:56] <superspring> adrexia: that page loads empty for me...
1667: [22:45:57] <adrexia> Acvtually, I think I'm saying, the old system was less uiseful than google search
1668: [22:46:00] <adrexia> ahh
1669: [22:46:01] <simon_w|work> Bleuigh, I come back and it's way too sunny and stuff
1670: [22:46:10] * simon_w|work blames Colin[pi]
1671: [22:46:22] <Colin[pi]> simon_w|work: epic storm this morning doe
1672: [22:46:23] <adrexia> what sort of 2.4 module are you after?
1673: [22:46:36] <simon_w|work> Colin[pi], so why did it stop?
1674: [22:47:39] <Colin[pi]> simon_w|work: because it knows you love sunny days so much
1675: [22:49:11] <adrexia> 7 pages of 2.4 compatible modules isn't bad: http://addons.silverstripe.org/add-ons?search=&type=&compatibility%5B0%5D=2.4&sort=&start=96
1676: [22:54:22] <UncleCheese> this is war. http://www.unclecheese.in/
1677: [22:55:05] <Kingy> god damn that looks tasty
1678: [22:56:05] <zippy> lol
1679: [22:56:07] <zippy> Black Out in Karachi
1680: [22:56:10] <zippy> what a name for a drink
1681: [22:56:40] <zippy> http://www.unclecheese.in/images/heading.png lol
1682: [22:57:03] <UncleCheese> new avatar ^^
1683: [22:57:11] <Colin[pi]> UncleCheese most yummiest
1684: [22:57:20] <UncleCheese> he's angry because he just spent time in the IRC channel
1685: [22:59:10] <simon_w|work> Or because his heating bill was so large
1686: [22:59:19] <zippy> ^
1687: [22:59:28] <Colin[pi]> simon_w|work: it's because he cooks so many pizzas it seems
1688: [22:59:30] <zippy> Is it possible to URL encode something without doing a function
1689: [22:59:37] <zippy> say on a $Link - is it just $Link.XML
1690: [23:00:29] <simon_w|work> zippy, $Link.URLATT or $Link.RAWURLATT
1691: [23:00:38] <simon_w|work> Depending if you want urlencode() or rawurlencode()
1692: [23:00:56] <zippy> interestings, thanks
1693: [23:01:12] <UncleCheese> ... or because he managed to find the one developed country in the world that doesn't insulate its houses
1694: [23:01:27] <simon_w|work> UncleCheese, Australia? :p
1695: [23:01:33] <UncleCheese> mp!
1696: [23:01:35] <UncleCheese> no!
1697: [23:01:42] <UncleCheese> it's cold over there, too?!
1698: [23:01:49] <simon_w|work> It's bloody hot over here
1699: [23:01:59] <simon_w|work> Cold I don't care about :p
1700: [23:02:04] <UncleCheese> oh, right, well..
1701: [23:02:19] <simon_w|work> Though our wedding venue was nice and insulated
1702: [23:02:43] <Colin[pi]> simon_w|work: mm, soon we'll be hitting 30C
1703: [23:02:53] * nicolaas has joined #silverstripe
1704: [23:03:06] <simon_w|work> Colin[pi], We saw it was 28 yesterday
1705: [23:03:57] <simon_w|work> So glad to have missed that
1706: [23:04:48] * simon_w has joined #silverstripe
1707: [23:06:55] <nicolaas> hey SS All Stars - quick question ... what is different about ajax in that it can return back a different result? If I add ?ajax=1 at the end of the URL I get a different result even though they render the same templates - any idea how to debug this?
1708: [23:07:37] * muskie9 has joined #silverstripe
1709: [23:08:12] <simon_w|work> nicolaas, check for calls to Director::is_ajax
1710: [23:08:36] <nicolaas> yeah, I will....
1711: [23:08:43] <nicolaas> good starting point.
1712: [23:09:41] * simon_w quit (Client Quit)
1713: [23:12:03] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
1714: [23:12:21] * Colin[pi]-2 has joined #silverstripe
1715: [23:12:59] <Colin[pi]-2> dat power loss
1716: [23:14:23] * Colin[pi] quit (Ping timeout: 272 seconds)
1717: [23:14:29] * Colin[pi]-2 is now known as Colin[pi]
1718: [23:15:31] <nicolaas> simon_w|work: i checked all the Director::is_ajax calls but they cant be the problem. I am using the zend cache, looking into that now.
1719: [23:15:45] <nicolaas> thank you for your help - as always!
1720: [23:17:23] * lerni quit ()
1721: [23:18:56] <madmatt> UncleCheese: I actually thought that was your website for a minute
1722: [23:20:56] <nicolaas> it is definitely related to caching.
1723: [23:21:44] <Stomach> awww adrexia your issue got closed on deploynaut
1724: [23:22:05] <adrexia> Stomach - its fixed though!
1725: [23:22:46] <Stomach> hahahaha
1726: [23:27:47] <Kingy> lol Stomach I said the same thing
1727: [23:28:09] <Stomach> is there a way to call an extension method from the object you're extending?
1728: [23:29:16] * headtrip has joined #silverstripe
1729: [23:29:20] <Stomach> say I have function recursive() { return !$this->owner->Parent() ? $this->owner->ID : $this->owner->Parent()->recursive(); } or some other contrived example
1730: [23:29:31] <Stomach> how do I do that
1731: [23:29:35] <Stomach> why can't I use traits
1732: [23:29:36] <Stomach> :(
1733: [23:31:12] <simon_w|work> Stomach, that should work fine
1734: [23:31:21] <simon_w|work> And you can, you just need an autoloader for them
1735: [23:31:35] <nicolaas> is it normal to do debug::log($var) and see this in your log file: 㩩㔷椻㜺㬵㩩㘷椻㜺㬶㩩㜷椻㜺㬷㩩㠷椻㜺㬸㩩㤷椻㜺㬹㩩〸椻㠺㬰੽ਊ㴽吠敵‬㜰传瑣㈠㄰‴㈱㌺㨰㤰⬠㌱〰㴠਽牐摯捵䝴潲灵䍟牵敲瑮湉瑩慩偬潲畤瑣䅳牲祡㙟搶晥畡瑬ਊ㴊‽畔ⱥ〠‷捏⁴〲㐱ㄠ㨲〳〺‹ㄫ〳‰㴽㴊㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽਽ਊ㴽
1736: [23:31:37] <nicolaas> 吠敵‬㜰传瑣㈠㄰‴㈱㌺㨰㤰⬠㌱〰㴠਽㩏㨸䐢瑡 ????
1737: [23:31:41] <nicolaas> wtf!
1738: [23:31:43] <ss23> Um
1739: [23:31:52] <ss23> I think probably not, unless you're inputting chinese stuff
1740: [23:31:55] <simon_w|work> nicolaas, you're logging something that's been compressed
1741: [23:32:08] <nicolaas> dense chinese poetry!
1742: [23:32:21] * muskie9 is now known as _muskie9_
1743: [23:33:04] <simon_w|work> Stomach, http://addons.silverstripe.org/add-ons/simonwelsh/trait-loader
1744: [23:34:01] * headtrip quit (Ping timeout: 272 seconds)
1745: [23:35:22] <Stomach> simon_w|work - awesome
1746: [23:36:55] <ss23> What kind of file/tech/thing uses .latte files?
1747: [23:38:18] <simon_w|work> https://www.google.com.au/search?q=.latte
1748: [23:39:22] <ss23> Thanks
1749: [23:40:51] <Stomach> ss23 - its a template engine called Latte
1750: [23:40:57] <Stomach> crazy times
1751: [23:42:06] <ss23> lol
1752: [23:42:14] <ss23> Yeah well searching for "latte" wasn't giving me much luck :P
1753: [23:43:41] <simon_w|work> That's why you stick the . in front :p
1754: [23:44:30] <ss23> I thought Google would ignore it :(
1755: [23:44:42] <ss23> Normally when I'm like "Hey Google I need this specific string characters" google is like "no go fuck yourself"
1756: [23:58:18] * codetoday has joined #silverstripe

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