#silverstripe IRC Log

IRC log for 24 July 2013

All timestamps are in UTC.

1: [00:10:50] * pex quit (Quit: pex)
2: [00:12:47] * joelpittet has joined #silverstripe
3: [00:22:24] * lerni has joined #silverstripe
4: [00:36:40] * travis-ci has joined #silverstripe
5: [00:36:41] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#670 (3.1 - 541436f : Hamish Friedlander): The build was fixed.
6: [00:36:41] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/23d1e8c76df4...541436feb0fa
7: [00:36:41] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9414881
8: [00:36:41] * travis-ci has left #silverstripe
9: [00:37:14] <spronk> o_O
10: [00:37:25] <spronk> does that mean that girls with big tits are aftershock detectors?
11: [00:37:38] <simon_w> Well, that's pretty much ss23
12: [00:37:43] <Colin[pi]> lol
13: [00:39:43] <spronk> heh
14: [00:40:57] * zippy__ quit (Ping timeout: 264 seconds)
15: [00:45:03] <spronk> hmm
16: [00:45:53] <irogue> no pyromanik today
17: [00:46:01] <irogue> seeing the job i sent him mustve scared him off
18: [00:46:28] <irogue> he's probably run screaming and switched to wordpress
19: [00:48:10] <spronk> lol?
20: [00:48:21] <spronk> (he's flying up to welly)
21: [00:49:39] <Colin[pi]> coming to deliver their earthquake by hand
22: [00:51:11] <spronk> :D
23: [00:51:14] <spronk> the "big one"
24: [00:51:16] <spronk> you know
25: [00:51:37] <spronk> where seismologists realise there's a larger undiscovered megathrust fault right under cook straight capable of mm9
26: [00:51:41] <spronk> derp.
27: [00:51:58] <spronk> M E G A THRUST
28: [00:52:52] <irogue> spronk: ah yes, that's right
29: [00:52:54] <irogue> thats today
30: [00:53:39] <spronk> mm
31: [01:02:58] * UncleCheese has joined #silverstripe
32: [01:08:39] <UncleCheese> anyone from SS attending the WWDC tomorrow?
33: [01:09:10] <simon_w> WWDC's in June, gosh :p
34: [01:09:38] <UncleCheese> WDCNZ?
35: [01:09:46] <simon_w> That's better!
36: [01:09:49] <UncleCheese> sorry, I can't keep up with the alphabet soup of web conferences
37: [01:10:05] <EasyCo> Mmm alphabet soup
38: [01:10:06] <simon_w> WWDC is hardly a web conference :p
39: [01:11:19] <UncleCheese> ss23: do you know any SS devs that are attending?
40: [01:11:41] * joelpittet quit (Remote host closed the connection)
41: [01:11:41] <ss23> UncleCheese: Attending what, sorry?
42: [01:11:44] <ss23> WDC?
43: [01:11:47] <UncleCheese> yes
44: [01:11:54] <ss23> Pyromanik from here is
45: [01:12:19] <ss23> Don't think anyone from work here is going
46: [01:14:36] * howardgrigg has joined #silverstripe
47: [01:15:45] <ss23> Speaking of, I've had the MDC song stuck in my head all day
48: [01:15:56] <ss23> CODE HARD, CODE FAST, IT'S THE MD CONFERENCE
49: [01:16:03] <ss23> THE WORDS MICRO AND SOFT, DON'T APPLY TO MY PENIS
50: [01:16:22] <guzzlefry> 0.o
51: [01:16:23] <ss23> I'm a software developer, I'm developing, and I'm here to party!
52: [01:17:50] <UncleCheese> I've had the OMC song stuck in my head all day
53: [01:17:58] <ss23> hahahahaaha
54: [01:18:01] <ss23> Yours is worse
55: [01:18:01] <ss23> :P
56: [01:18:17] <UncleCheese> no way.. it's the greatest thing to ever come out of New Zealand
57: [01:18:24] <UncleCheese> you guys must be so proud of it
58: [01:18:36] <UncleCheese> don't you have a national holiday for it
59: [01:18:37] <UncleCheese> ?
60: [01:18:38] * lerni quit (Remote host closed the connection)
61: [01:18:53] * howardgrigg quit (Ping timeout: 245 seconds)
62: [01:19:04] * lerni has joined #silverstripe
63: [01:19:09] <ss23> Catchable fatal error: Method HTMLText::__toString() must return a string value in /opt/local/apache2/vhosts/nmit.ac.nz/mysite/code/pagetypes/ProgrammeAreaPage.php on line 133
64: [01:19:13] <ss23> Was this a BC break?
65: [01:19:23] <ss23> like
66: [01:19:26] <ss23> what broke to make me get this? :O
67: [01:20:55] <simon_w> __toString(), by the looks of things
68: [01:21:14] <irogue> quite
69: [01:21:33] <irogue> "toString isn't returning a string" sounds like quite a funny break
70: [01:23:17] * lerni quit (Ping timeout: 248 seconds)
71: [01:24:34] <ss23> grrw
72: [01:24:40] <ss23> what's more annoying, is there's no backtrace
73: [01:24:53] * Bollig|DesignCty has joined #silverstripe
74: [01:24:58] <simon_w> xdebug!
75: [01:26:13] <ss23> $fieldRtrn[$tplVarKey] = (!mb_strlen($tplVarVal)>0 || $tplVarVal == $api::$msg_no_data)?false:$tplVarVal;
76: [01:26:16] <ss23> holy shit who wrote this code
77: [01:26:16] <ss23> ;_;
78: [01:26:34] <simon_w> Bah, these new headphones are on-ears instead of being cups :(
79: [01:26:45] <ss23> hate that
80: [01:26:50] <ss23> All my headphones are overear
81: [01:27:47] <irogue> fuck on-ear
82: [01:28:05] <irogue> ss23: holy shit that code
83: [01:28:07] <ss23> holy crap
84: [01:28:08] <irogue> I DON'T EVEN
85: [01:28:10] <ss23> wow
86: [01:28:11] <irogue> WHAT DOES IT MEAN
87: [01:28:16] <ss23> This looks like some kind of...
88: [01:28:21] <ss23> xss or sqli protection
89: [01:28:25] <ss23> $tplVarVal = DBField::create_field('HTMLText',$this->$name);
90: [01:28:30] <ss23> then they cast it back to string
91: [01:28:31] <ss23> ;_;
92: [01:28:52] <simon_w> Ah well, back to my HD 201s
93: [01:29:06] <ss23> Still, a free pair of headphones, I wasn't expecting much, simon_w :P
94: [01:29:07] <ss23> sell 'em
95: [01:29:18] <simon_w> Which also happen to have response in ranges outside of bass!
96: [01:29:23] <ss23> lol
97: [01:29:24] <simon_w> Yeah, that's the plan :p
98: [01:29:40] <ss23> srsly this code...
99: [01:29:49] <irogue> simon_w: bro, you should get some BEATS BY DRE
100: [01:29:56] <ss23> ^^^^
101: [01:29:58] <ss23> MEAN BASS, BRO
102: [01:30:02] <irogue> all the muffled mids and complete lack of highs
103: [01:30:06] <irogue> BUT SO MUCH BASS
104: [01:30:17] <ss23> XD
105: [01:30:18] <simon_w> But I mostly listen to pop...
106: [01:30:56] <simon_w> You know, with the completely opposite profile
107: [01:31:02] <irogue> :P
108: [01:35:33] <UncleCheese> ss23: you have no representation on the ss.com website. afaik, you're an unpaid fanboy
109: [01:36:27] <simon_w> http://www.silverstripe.com/about-us/team/development/stephen-shkardoon/ :p
110: [01:37:26] <UncleCheese> they're waiting to take a photo until he cuts his hari
111: [01:42:10] * Peavers has joined #silverstripe
112: [01:42:17] <ss23> haha
113: [01:42:19] <ss23> I had one taken
114: [01:42:26] <ss23> I presume someone will put it up one day
115: [01:42:28] <Peavers> I bet you did.
116: [01:42:42] <ss23> I need to write a bio too
117: [01:42:58] <Colin[pi]> I just remembered who ss23 reminds me of
118: [01:43:01] <Peavers> and do my support request
119: [01:43:06] <Colin[pi]> that guy from something about mary: http://www.hotflick.net/flicks/1998_There_s_Something_About_Mary/big/fhd998SAM_Ben_Stiller_001.jpg
120: [01:43:08] <ss23> Peavers: I don't see anything from you
121: [01:43:09] <ss23> ^.^
122: [01:43:22] <ss23> haha
123: [01:43:41] <Peavers> Colin[pi], he reminds me of an intern.
124: [01:44:05] <Peavers> useless but lovable ;)
125: [01:44:08] <ss23> lol
126: [01:44:15] <ss23> Peavers: Did you coem to my talk btw?
127: [01:51:14] <Peavers> nah
128: [01:51:17] <Peavers> got stuck at work
129: [01:51:27] <Peavers> read the slides, didn't need to see your mug talk about it
130: [01:54:22] * travis-ci has joined #silverstripe
131: [01:54:23] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#671 (master - d44024b : Hamish Friedlander): The build passed.
132: [01:54:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/0a79ac3592eb...d44024b1cf64
133: [01:54:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9416148
134: [01:54:23] * travis-ci has left #silverstripe
135: [01:54:43] <ss23> Did something change with HTMLText and NULL recently?
136: [01:54:45] <ss23> uh
137: [01:54:45] <ss23> like
138: [01:54:51] <Peavers> yeah, sorry.
139: [01:54:56] <ss23> DBField::create_field(HTMLText, null)
140: [01:55:06] <ss23> Peavers: AWWWW, wow
141: [01:55:14] <ss23> Peavers: I thoguht you would come, I hoped you would come
142: [01:55:20] <ss23> Peavers: You're in luck though, there was a video
143: [01:55:20] <ss23> :D
144: [01:55:20] <Peavers> I know =(
145: [01:55:22] <Peavers> I wanted to come
146: [01:55:30] <ss23> Peavers: vimeo.com/70591736
147: [01:55:31] <Peavers> was sad I missed it
148: [01:55:53] <Peavers> is it worth me stopping my music for?
149: [01:56:09] <ss23> haha
150: [01:56:10] <ss23> idk
151: [01:56:11] <ss23> I think not
152: [01:56:17] <ss23> But you get to see UncleCheese eating chips
153: [01:56:19] <ss23> Like
154: [01:56:22] <ss23> it's mesmerizing
155: [01:56:32] <ss23> simon_w: Do you know of a change that would break DBField::create_field(HTMLText, null) recently?
156: [01:56:32] <Peavers> oh in that case
157: [01:56:33] <Peavers> watching now
158: [01:56:35] <ss23> Like in the last 2 weeks or so
159: [01:59:11] * lietzmk has joined #silverstripe
160: [02:00:23] <Peavers> Someone needs to tell ss23 that sequal and SQL are two different things.
161: [02:02:28] <Peavers> lol is UncleCheese burning his mouth on wedges?
162: [02:02:29] <EasyCo> wow… You know how you make up an idea of how somebody looks and sounds from chat… Well I was off...
163: [02:02:47] <EasyCo> The video really made me hungry and thristy
164: [02:03:24] <UncleCheese> i was so damn hungry that night
165: [02:03:27] <UncleCheese> skipped lunch
166: [02:03:28] * funkygibbon quit (Quit: Leaving)
167: [02:03:33] <Peavers> I can tell lol
168: [02:03:36] <UncleCheese> so the chips were a welcome sight
169: [02:03:47] <Peavers> how are you finding NZ btw?
170: [02:03:47] <UncleCheese> plus, i think i had already had two beers
171: [02:03:52] <UncleCheese> shaky
172: [02:03:58] <Peavers> lol you timed that right
173: [02:04:01] <Colin[pi]> picked a great time, UC! :D
174: [02:04:06] <UncleCheese> :(
175: [02:04:18] <Colin[pi]> it's just NZ shaking your hand
176: [02:04:24] <Colin[pi]> welcome thing, does it to everyone
177: [02:04:34] <UncleCheese> not a fan
178: [02:04:48] <Colin[pi]> did you come from east or west USA?
179: [02:05:32] <UncleCheese> we lived out east, but we spend the month of june moving westward saying goodbye to friends and family
180: [02:05:37] <UncleCheese> so we actually flew from LAX
181: [02:05:47] <UncleCheese> no quakes where we come from
182: [02:06:12] <Colin[pi]> ah k, not sure if those on the west coast are perhaps more accustomed to the shakes..? does Cali get a lot that you know of?
183: [02:06:29] <UncleCheese> yes!
184: [02:06:36] <UncleCheese> LA gets a shake a week or so
185: [02:06:44] <ss23> Peavers: my sequel
186: [02:06:45] <ss23> ^.^
187: [02:06:47] <Colin[pi]> ah you see? you're not accustomed then, in a week will be all normal :D
188: [02:06:48] <UncleCheese> SF is very earthquake prone, as well
189: [02:07:03] <Peavers> mySQL != sequel
190: [02:07:08] <UncleCheese> i'm just a little nervous because our house is built into a hill
191: [02:07:17] <Peavers> lol dude every house in Welly is built into a hill
192: [02:07:19] <simon_w> Whose isn't?
193: [02:07:20] <UncleCheese> i can just see the house above us falling right on top of ours
194: [02:07:23] <UncleCheese> exactly
195: [02:07:34] <Peavers> Did you know most of the CBD is sitting on reclaimed land and is going to fall back into the sea?
196: [02:07:37] <UncleCheese> yes
197: [02:07:54] <Colin[pi]> awesome, you'll have a sweet double-storey place then!
198: [02:07:56] <Colin[pi]> ;)
199: [02:07:58] <UncleCheese> when someone first said "reclaimed land" i was like, "Oh, do the Maori want it back or something?"
200: [02:08:08] <Peavers> bwahaha
201: [02:08:10] <simon_w> Well, there's that too...
202: [02:08:11] <Colin[pi]> lol
203: [02:08:13] <Peavers> yes they do, but thats not that point
204: [02:08:18] <UncleCheese> both valid points, i suppose
205: [02:08:28] <UncleCheese> but it belonged to the sea before it belonged to the maori anyway
206: [02:08:39] <Peavers> yeah naah... you try and tell them that
207: [02:09:00] <Colin[pi]> lol
208: [02:09:03] <UncleCheese> ownership is a government institution
209: [02:09:13] <UncleCheese> don't forget it
210: [02:09:56] <simon_w> No it isn't. Australia got into a lot of shit because of that sort of ideal :p
211: [02:10:05] <Colin[pi]> we were bastards
212: [02:10:38] <ss23> Good thing you're all shining examples of anti-xenophiba now
213: [02:10:53] <ss23> So, I heard there was a nice governmental boat people advertising campain recently, wasn't there?
214: [02:11:02] <ss23> :P
215: [02:11:10] <ss23> Colin[pi]: (Not meaning you of course, just poking fun of Australia in general)
216: [02:11:21] <Colin[pi]> yes. yes we have zero examples of racism and xenophobia to illustrate nowadays... heh heh heh... *shifty eys*
217: [02:11:22] <ss23> There are only 'skip'ped commits left to test.
218: [02:11:22] <ss23> The first bad commit could be any of:
219: [02:11:23] <Colin[pi]> *eyes
220: [02:11:26] <ss23> Now to see who to blame!
221: [02:11:29] <simon_w> It's hilarious because they're pretty much copying us
222: [02:11:48] <EasyCo> Abbott and Ruddy… jokes the both of em
223: [02:12:18] <Colin[pi]> I don't want to vote for anyone
224: [02:12:35] <EasyCo> Same, but if Abbott gets in say g'bye to the ABN
225: [02:12:41] <irogue> Colin[pi]: vote for pedro
226: [02:12:42] <Colin[pi]> NBN you mean :D
227: [02:12:46] <simon_w> I liked the VUW student elections, since I could vote for my friend Mr Confidence
228: [02:12:51] <EasyCo> Yah that's the one… I knew it looked weird :)
229: [02:13:17] <simon_w> Oh, Abbott wants to give you what we already have. It's shit :p
230: [02:13:31] <Colin[pi]> we can do next gen broadband with... COPPER!!!
231: [02:13:33] <Colin[pi]> YAY
232: [02:13:36] <ss23> simon_w: Have you been following the flush=1 pulls? Did you see the one to do with changing error reporting?
233: [02:13:47] <irogue> very topical: https://pbs.twimg.com/media/BP5x7sCCcAAbBye.jpg:large
234: [02:14:04] <simon_w> ss23, meh, it's a horrible system that isn't handling edge cases very well
235: [02:14:15] <ss23> simon_w: Yes, but I suspect it's possible for this BC break
236: [02:14:26] <simon_w> So undo them and see?
237: [02:14:37] <EasyCo> Oh god… He's in Canada...
238: [02:14:43] <ss23> I did, but it's hard to debug, as it's not easy to keep cms and framework in sync perfectly as I bisect, simon_w
239: [02:14:48] <ss23> simon_w: I did trace it down to commits to do with it though
240: [02:14:54] <EasyCo> Ruddy and Harper will have a ball
241: [02:14:56] <ss23> simon_w: So now I want to confirm with you to see if I'm right etc
242: [02:15:24] <ss23> simon_w: The code currently does DBField::create('HTMLText', null);, then basically $foo = (string)$that; (that is, it does a cast implicitly and ends up calling __toString)
243: [02:15:33] <ss23> simon_w: Code used to work, but now it gives me a fatal catchable error
244: [02:15:48] <ss23> simon_w: all I can think of from these changes is that when there was teh change to *not* catch all errors and ignore them, it broke
245: [02:16:01] <ss23> Because it's a catchable fatal, and this set of flush=1c changes removed a bunch of catching, right?
246: [02:16:21] <simon_w> Oh right, so the type hints on methods might actually start causing errors
247: [02:16:54] <simon_w> The catchable fatal was just being ignored. That's bad :p
248: [02:17:07] <ss23> Point is, it's a BC break close to 3.1
249: [02:17:08] <simon_w> But yes, BC break. Mention it on the ticket.
250: [02:17:13] <ss23> sweeeet
251: [02:17:17] <ss23> Just making sure I was sane before doing so :D
252: [02:19:27] <ss23> https://github.com/silverstripe/silverstripe-framework/issues/1692#issuecomment-21459689
253: [02:19:33] <simon_w> Yes, I saw the email
254: [02:19:38] <ss23> :D
255: [02:21:49] <Colin[pi]> wtf I have a cut on my finger and I have no idea how it got there
256: [02:21:52] <Colin[pi]> I had that
257: [02:21:55] <Colin[pi]> *hate
258: [02:21:56] <ss23> Colin[pi]: I have cuts on my fingers too
259: [02:22:01] <ss23> my thumb has a long shallow cut along it
260: [02:22:01] <ss23> :<
261: [02:22:16] <Colin[pi]> like "my finger hurts"... look down "Wtf?"
262: [02:22:20] <ss23> Only shows up when my fingers are wet though (presume cause it's a tiny cut etc)
263: [02:22:25] <Colin[pi]> might be a paper cut :\
264: [02:22:26] <ss23> Colin[pi]: XD
265: [02:22:37] <Colin[pi]> didnt feel a thing until now
266: [02:22:38] <ss23> Pretty sure mine is, or more likely, cardboard cut when reaching to get a coke
267: [02:22:42] <ss23> :D
268: [02:22:44] <ss23> Colin[pi]: Bleeding?
269: [02:22:50] <Colin[pi]> nope
270: [02:22:56] <ss23> aw, could be worse then
271: [02:22:58] <Colin[pi]> very shallow
272: [02:27:40] <Colin[pi]> woo, 3 going to the meetup today... party time
273: [02:31:34] <ss23> simon_w: I'm having trouble interpreting hamishes response
274: [02:32:17] <ss23> simon_w: Is that a "You'll hvae to deal with the BC break"
275: [02:32:30] <ss23> Or a "that's not behaviour from this commit" or what?
276: [02:33:18] <ss23> oic
277: [02:33:37] <ss23> It's fixed now, yay :D
278: [02:34:25] * zippy__ has joined #silverstripe
279: [02:35:21] <zippy__> I have a file in assets that I want people to download, it's a jpg but I can't just link to it like a zip. Is there some sort of download helper method I can use to force the download?
280: [02:35:28] * terryapodaca has left #silverstripe
281: [02:35:55] <ss23> I would assume there is
282: [02:36:00] <ss23> idk what the method is in Silverstripe though
283: [02:37:09] <simon_w> HTTPRequest::send_file
284: [02:37:21] <Bollig|DesignCty> I assume there isn't such a method in ss actually...
285: [02:37:58] <simon_w> *SS_HTTPRequest::send_file
286: [02:37:59] <Colin[pi]> there's a method in ss for everything!
287: [02:38:30] <Bollig|DesignCty> lol awesome :)
288: [02:38:34] <Colin[pi]> 90% of the time, if I find myself wanting to write a method for something used more often than not, there's a method somewhere for it
289: [02:39:33] <ss23> 'framework//08203de1d520bf9ae41eb6f0710f6dfe' is not a zip archive. -- I often get this with composer
290: [02:39:37] <ss23> Anyone seen it etc?
291: [02:39:48] <ss23> Bollig|DesignCty: BOOM
292: [02:39:49] <zippy__> ah sweet
293: [02:39:54] <ss23> Remember that time I was like "psh, there's a method"
294: [02:39:55] <zippy__> simon_w: Thanks
295: [02:39:56] <ss23> and you were like "lol no way"
296: [02:39:59] <ss23> And BOOM ther was
297: [02:40:27] <Bollig|DesignCty> No I don't think that happened ss23. Have you taken your meds today?
298: [02:40:32] <ss23> lol
299: [02:40:35] <Bollig|DesignCty> :p
300: [02:40:36] <Bollig|DesignCty> ;)
301: [02:40:56] <UncleCheese> does anyone know how to check if an object has an extension OR SUBCLASS of that extension?
302: [02:41:18] <UncleCheese> ->hasExtension("Versioned"); fails if i've decorated the object with MyVersioned extends Versioned
303: [02:41:18] <ss23> hmm
304: [02:41:29] <ss23> best I can think of is to loop through the extensions it has an call the PHP for it
305: [02:41:37] <UncleCheese> i know
306: [02:41:38] <UncleCheese> boo
307: [02:41:42] <ss23> Might be worth proposing it as a change for 3.2 though, UncleCheese
308: [02:41:56] <UncleCheese> oooh
309: [02:42:06] <UncleCheese> what about just hasField('Version');
310: [02:42:13] <UncleCheese> ugh
311: [02:42:16] <UncleCheese> LAME!
312: [02:42:17] <simon_w> That relies on implementation details
313: [02:42:24] <UncleCheese> it does
314: [02:42:29] <UncleCheese> see above ^^^
315: [02:42:33] <UncleCheese> it's lame
316: [02:42:36] <UncleCheese> what about
317: [02:42:57] <UncleCheese> some kind of sql query to see if $ClassName_versions exists?
318: [02:43:24] <simon_w> You mean like DB::conn()->hasTable?
319: [02:43:28] <UncleCheese> sure
320: [02:43:38] <UncleCheese> or does that rely on implementation details, too?
321: [02:43:43] <simon_w> Still implementation details :p
322: [02:43:44] <UncleCheese> there's not much flexibility there
323: [02:43:46] <UncleCheese> ah!
324: [02:43:58] <UncleCheese> it's so hard to do things the right way
325: [02:44:15] <ss23> If you want it 'right', without editing core, you'll need to do how I suggested
326: [02:44:27] <simon_w> Seriously, a one-off loop over the current extensions is going to be tiny
327: [02:44:30] <ss23> I doubt it's much more expensive than what SS does internally
328: [02:44:41] <UncleCheese> what is the accessor for all the extensions?
329: [02:44:44] <UncleCheese> i'm lazy
330: [02:44:50] <UncleCheese> extensionInstances()?
331: [02:45:00] <ss23> you just need names, not instances
332: [02:45:19] <UncleCheese> exactly
333: [02:45:20] <ss23> is class::$extensions private or public?
334: [02:45:40] <simon_w> Doesn't matter. You can add extensions without changing that
335: [02:45:54] <ss23> He doesn't want to add extensions?
336: [02:46:03] <simon_w> So?
337: [02:46:17] <ss23> So why "doesn't matter, you can add extensions without changing that"
338: [02:46:21] <ss23> What does adding extensions matter?
339: [02:46:30] <simon_w> Anyway, http://api.silverstripe.org/master/source-class-Object.html#952-961
340: [02:46:43] <simon_w> Because you're seeing if it has an extension
341: [02:47:28] <UncleCheese> looping through $this->config()->extensions is the same thing, i reckon
342: [02:47:48] <simon_w> Once again, you can add extensions without changing that
343: [02:47:58] <UncleCheese> oh, i didn't realize
344: [02:47:59] <UncleCheese> ok
345: [02:49:29] <ss23> wtf
346: [02:49:39] <ss23> composer -vvv doesn't actually show you the output of the commands.
347: [03:00:54] <guzzlefry> Can you auto generate an account for a specific group automatically?
348: [03:01:38] <guzzlefry> I think it's just a matter of calling the form action, right?
349: [03:01:53] <guzzlefry> well, maybe not as that redirects. :/
350: [03:02:32] * ss23 sneezes
351: [03:02:51] <guzzlefry> bless you
352: [03:03:04] <ss23> Thanks
353: [03:07:16] * sevensevenone has joined #silverstripe
354: [03:07:57] <guzzlefry> okay, don't see anything in Member, other than a way to automagically log someone in.
355: [03:08:39] <ss23> idk what you're asking really, guzzlefry
356: [03:08:39] <ss23> soz
357: [03:10:27] * DarkSideOfTheMoo has joined #silverstripe
358: [03:10:56] <ss23> Whats the process (any docs) on silverstripe 2 to 3?
359: [03:10:59] <DarkSideOfTheMoo> Lol, I got in from my phone
360: [03:11:08] <ss23> Is there a DB upgrader thingy? Or does it happen automatically if you /dev/build on a 3.0?
361: [03:11:44] <guzzlefry> ss23: User goes through checkout, instead of having to enter account info, one is generated via their email address, which is already provided.
362: [03:11:53] <guzzlefry> Password is autogenerated, yada yada.
363: [03:12:21] <ss23> guzzlefry: And you want to do what sorry? Log them into it?
364: [03:12:58] <guzzlefry> yeah
365: [03:13:10] <guzzlefry> I think I Found it.
366: [03:13:15] <guzzlefry> MemberAuthenticator
367: [03:13:17] <simon_w> ss23, do you even look? http://doc.silverstripe.org/framework/en/changelogs/3.0.0#upgrading
368: [03:13:37] <ss23> simon_w: Yes, want to see teh list of URLs I visited?
369: [03:13:52] <ss23> http://doc.silverstripe.org/framework/en/changelogs/3.0.0#upgrading
370: [03:13:55] <ss23> thats the one you gave me
371: [03:14:01] <ss23> http://doc.silverstripe.org/framework/en/2.4/installation/common-problems that one I visited
372: [03:14:07] <ss23> http://doc.silverstripe.org/framework/en/2.4/installation/upgrading that one I visited
373: [03:14:11] <ss23> http://doc.silverstripe.org/framework/en/installation/upgrading
374: [03:14:13] <ss23> that one I visited
375: [03:14:25] <ss23> https://www.google.co.nz/search?q=silverstripe+upgrade&oq=silverstripe+upgrade&aqs=chrome.0.69i57j69i60j69i59l2j69i60l2.1965j0&sourceid=chrome&ie=UTF-8 a google search I tried which bought up the results above
376: [03:14:31] <ss23> http://www.silverstripe.org/upgrading-silverstripe-to-3-0/
377: [03:14:33] <ss23> another one I visited
378: [03:14:39] <ss23> https://www.google.co.nz/search?q=ss2+to+ss3+upgrade+silverstripe&oq=ss2+to+ss3+upgrade+silverstripe&aqs=chrome.0.69i57j69i59j69i65j69i60l3.3209j0&sourceid=chrome&ie=UTF-8#sclient=psy-ab&q=silverstripe+upgrade+2+to+3+migration&oq=silverstripe+upgrade+2+to+&gs_l=serp.3.0.33i29i30l2.197.197.0.3798.1.1.0.0.0.0.228.228.2-1.1.0....0.0..1c..20.psy-ab.M8f_aznC_Cw&pbx=1&bav=on.2,or.r_qf.&fp=ca7fc6132e7d4274&biw=1917&bih=1015&bvm=pv.xjs.s.en_US.NyLNrjc7wJY.O one more
379: [03:14:47] <simon_w> And where does SS keep its version-specific upgrading information?
380: [03:14:48] <ss23> wait noe thats a google search that bought up more results but not the one simon_w gave me
381: [03:15:02] * howardgrigg has joined #silverstripe
382: [03:15:03] <ss23> http://www.silverstripe.org/releases-and-announcements/show/22689 another one I visited
383: [03:15:08] <ss23> http://www.silverstripe.org/upgrading-silverstripe/ another one I visited
384: [03:15:15] <ss23> http://www.silverstripe.org/upgrading-silverstripe/show/19744 another one I visited
385: [03:15:22] <ss23> https://www.google.co.nz/search?q=ss2+to+ss3+upgrade+silverstripe&oq=ss2+to+ss3+upgrade+silverstripe&aqs=chrome.0.69i57j69i59j69i65j69i60l3.3209j0&sourceid=chrome&ie=UTF-8 and one more google search
386: [03:15:26] <ss23> simon_w: Ha.
387: [03:15:29] * DarkSideOfTheMoo quit (Ping timeout: 250 seconds)
388: [03:16:30] <ss23> http://www.stuff.co.nz/waikato-times/news/8953889/Wendys-Frankton-sets-world-record-in-sales
389: [03:16:33] <ss23> Go hamilton!
390: [03:17:05] * DarkSideOfTheMoo has joined #silverstripe
391: [03:17:36] <DarkSideOfTheMoo> You're in here?
392: [03:17:59] <ss23> Me?
393: [03:18:04] <Colin[pi]> Who?
394: [03:18:04] <ss23> IS THAT YOU PYRO?
395: [03:18:44] <DarkSideOfTheMoo> Lol, I had a friend tell me about this chat room. Since I'm away from home, I signed in from my phone.
396: [03:18:58] <ss23> oic
397: [03:19:25] <DarkSideOfTheMoo> I wouldn't know his screen name.
398: [03:19:47] <ss23> Why not?
399: [03:19:51] <ss23> Whats his RL name? :O
400: [03:19:54] * howardgrigg quit (Ping timeout: 264 seconds)
401: [03:20:11] <DarkSideOfTheMoo> Jason.
402: [03:20:31] <ss23> Last name? I don't think I know of a Jason in here...
403: [03:20:59] <ss23> And where is he from, DarkSideOfTheMoo?
404: [03:21:01] <ss23> (Country)
405: [03:21:04] <ss23> (If NZ, city)
406: [03:21:20] <DarkSideOfTheMoo> I barely even know him myself. Met him once in a coffee shop and that was that. Apparently he's a regular in this room.
407: [03:21:24] <ss23> lol
408: [03:21:31] <ss23> There are lots of regulars here!
409: [03:21:57] <ss23> :D
410: [03:22:38] <DarkSideOfTheMoo> Yippie skippie. I've missed chat rooms. I've looked hard for good ones with sane people.
411: [03:23:00] <Colin[pi]> well you're in the wrong place son
412: [03:23:01] <Colin[pi]> :D
413: [03:23:16] <DarkSideOfTheMoo> Imma girl. :P
414: [03:23:25] <Colin[pi]> oops, daughter :P
415: [03:23:36] <DarkSideOfTheMoo> Well, woman. 23, actually.
416: [03:23:39] <Colin[pi]> pfft there are no girls on the internet
417: [03:23:43] <Colin[pi]> everyone knows that
418: [03:23:45] <Colin[pi]> ;)
419: [03:24:34] <sevensevenone> true dat
420: [03:24:36] <DarkSideOfTheMoo> We don't possess the ability to use computers and modern technology.
421: [03:24:40] <ss23> haha
422: [03:24:54] <ss23> What city/country was it, DarkSideOfTheMoo/ I'm still curious as to who this "jason" is
423: [03:25:17] <DarkSideOfTheMoo> I never knew chat rooms were assessable from phones.
424: [03:25:54] <DarkSideOfTheMoo> I live in Houston Texas.
425: [03:25:55] <sevensevenone> facepalm
426: [03:26:12] <ss23> Hmmmmmmmmm
427: [03:26:16] <ss23> Nope, I don't know of this person, sorry :<
428: [03:27:28] <DarkSideOfTheMoo> Gawd, is this what I've been reduced to? Believe it or not, I used to have a life.
429: [03:27:37] <ss23> haha
430: [03:27:40] <ss23> Sure sure
431: [03:27:43] <ss23> We all had "lives", once.
432: [03:27:46] <ss23> Now we're here!
433: [03:27:59] <sevensevenone> IN SPACE
434: [03:28:46] <simon_w> Don't worry, so long as you're not me they still let you leave
435: [03:28:51] <Colin[pi]> LOL seven
436: [03:28:52] <spronk> C Y B E R S P A C E
437: [03:28:56] <DarkSideOfTheMoo> I should go home and do practical tasks like laundry.
438: [03:29:22] <Colin[pi]> simon_w will be here until hell freezes over
439: [03:29:37] <sevensevenone> even after that too
440: [03:29:48] <Colin[pi]> but we wuv you simon <3
441: [03:30:06] <DarkSideOfTheMoo> Doesn't your ass get tired? Mine used to when I'd game for hours. Now I HATE sitting still. I'm full of nervous energy.
442: [03:30:28] <simon_w> Get a better chair :p
443: [03:31:27] <DarkSideOfTheMoo> Like your back?
444: [03:32:06] <DarkSideOfTheMoo> Btw, it's moon. The N got cut off.
445: [03:32:10] <ss23> haha
446: [03:32:13] <Colin[pi]> lol
447: [03:32:16] <ss23> Here I was thiking you were just trrying to be a cow
448: [03:32:23] <ss23> It sounds poetic, Dark side of the Moo
449: [03:32:36] <Colin[pi]> yeah I thought it was a play on words
450: [03:32:56] <DarkSideOfTheMoo> It's the name of a Pink Floyd bum.
451: [03:33:06] <DarkSideOfTheMoo> Album
452: [03:33:24] <ss23> lol, yes, I know :P
453: [03:33:25] <Colin[pi]> I'm probably the only one here who knows of Pink Floyd
454: [03:33:28] <Colin[pi]> ;)
455: [03:33:30] <spronk> sif
456: [03:33:31] <ss23> Colin[pi]: Ouch
457: [03:33:33] <Colin[pi]> hehehe
458: [03:33:33] <spronk> Pink Floyd are teh awesome
459: [03:33:38] <Colin[pi]> j/k
460: [03:33:40] * spronk highfives
461: [03:33:42] <simon_w> Who?
462: [03:33:45] <Colin[pi]> hahahaha
463: [03:33:47] <ss23> simon_w: U TROLLIN'?
464: [03:33:57] <ss23> I'm not a big fan of Pink Floyd, but I've listened to them a bit
465: [03:34:19] <spronk> pink floyd have the most awesome atmospheric guitar solos
466: [03:34:32] <DarkSideOfTheMoo> David Gilmore is the sexiest guitarist ever, before Kurt Cobain... The things I'd do to them.
467: [03:34:44] <Colin[pi]> oh me too.. wait
468: [03:34:52] <sevensevenone> ha
469: [03:35:13] <ss23> Colin[pi]: You'd high five the *shit* out of them, right?
470: [03:35:27] <Colin[pi]> would I!!
471: [03:35:32] <ss23> YOU WOULD
472: [03:35:40] <DarkSideOfTheMoo> I have butt loads of posters of nirvana all over my room from my teen years... *sigh*
473: [03:36:15] <DarkSideOfTheMoo> I commend myself for having good musical taste since 17
474: [03:37:44] <simon_w> Who needs good tastes when you can terrorise people with your music collection?
475: [03:38:27] <DarkSideOfTheMoo> In what ways?
476: [03:38:51] <DarkSideOfTheMoo> I take it you're British from the way you spell.
477: [03:39:21] <ss23> DarkSideOfTheMoo: New Zealanders here, mainly
478: [03:39:29] <Colin[pi]> <--- ahem, aussie
479: [03:39:38] <Colin[pi]> close enough :P
480: [03:39:39] <DarkSideOfTheMoo> Yay, Dr. Who
481: [03:39:46] <ss23> Or corrupted English criminals
482: [03:39:48] <ss23> But mainly NZ
483: [03:39:48] <ss23> :D
484: [03:40:25] <sevensevenone> im from a little country called the internet
485: [03:40:54] <DarkSideOfTheMoo> I'm all contorted over my phone--I have such bad posture.
486: [03:42:01] <ss23> sevensevenone: THE INTERNET! :O
487: [03:42:48] <sevensevenone> i AM a program
488: [03:42:56] <DarkSideOfTheMoo> I think I'm going to head home. The comp is a better place than this restaurant chair.
489: [03:43:17] <Colin[pi]> safe trave;s
490: [03:43:19] <ss23> have fun, DarkSideOfTheMoo
491: [03:43:20] <Colin[pi]> travels also
492: [03:43:20] <ss23> INFO main: Forced repository type to svn
493: [03:43:24] <ss23> fatal: Not a git repository (or any of the parent directories): .git
494: [03:43:30] <ss23> sometimes I have to wonder about software.
495: [03:45:04] <DarkSideOfTheMoo> Brb I guess then.
496: [03:45:08] <Peavers> So finally got access to cwp gitlab!
497: [03:45:22] <ss23> lol
498: [03:45:24] <Peavers> two weeks after ss gave me access....
499: [03:45:25] <Peavers> go us
500: [03:45:26] <ss23> I saw someone talking about that
501: [03:45:35] <ss23> I just made my CMS hack not public so you can't see it
502: [03:45:35] <ss23> :P
503: [03:45:39] <Peavers> they think we're useless don't they?
504: [03:45:48] <ss23> lol
505: [03:45:49] <ss23> naw
506: [03:45:53] <ss23> Sounds like they think you're *rushed*
507: [03:45:55] <ss23> we're chill her
508: [03:45:59] <ss23> Suddenly "WE NEED ACCESS ASAP"
509: [03:46:23] <Peavers> lol
510: [03:47:37] <Peavers> I'm not rushed, my boss is rushed
511: [03:48:02] <Peavers> were just getting a tad frustrated with our own internal teams, and we take it out on SS because its easier ;)
512: [03:48:10] <Peavers> <3 you guys
513: [03:48:34] <ss23> lol
514: [03:48:38] <ss23> Wonderful
515: [03:48:45] <ss23> hate ruby
516: [03:48:58] <spronk> ...why?
517: [03:49:00] <Peavers> see the all blacks are playing at the hutt rec?
518: [03:49:17] * DarkSideOfTheMoo quit (Ping timeout: 250 seconds)
519: [03:49:26] <ss23> spronk: CAuse I'm using it and it's not working
520: [03:49:28] <ss23> Installed a gem
521: [03:49:32] <ss23> gem errors with ruby errors
522: [03:49:34] <ss23> therefore, I hate ruby.
523: [03:49:56] <Peavers> I hate ruby because its the current hipster trend
524: [03:50:18] <Peavers> every douche with a mac in a cafe drinking a latte is a ruby dev.
525: [03:50:19] <Colin[pi]> current? it's been that way for a number of years now, no?
526: [03:50:27] <Colin[pi]> like simon_w?
527: [03:50:49] <Peavers> does simon_w wear a fedora?
528: [03:50:50] <simon_w> I don't use my macs in a cafe, nor do I drink lattes :p
529: [03:50:55] <simon_w> Ooh, I should!
530: [03:50:59] <ss23> lol
531: [03:51:06] <ss23> He's going to use MongoDB too
532: [03:51:06] <Peavers> I'd beat you
533: [03:51:12] <spronk> lol
534: [03:51:18] <simon_w> We're using Mongo at the moment!
535: [03:51:18] <spronk> ruby was the hipster trend aaages ago
536: [03:51:19] <spronk> then node
537: [03:51:23] <simon_w> We're ditching it though
538: [03:51:28] <ss23> In fact, weren't you just talking about writing some in Haskel too, simon_w?
539: [03:51:31] <spronk> now it's like Clojure and Dart and shit
540: [03:51:37] <simon_w> *Haskell
541: [03:51:39] <spronk> simon_w: why ditching Mongo?
542: [03:51:46] <simon_w> Switching to Redis
543: [03:51:47] <Colin[pi]> node.js was one thing that I just did not "get" at all
544: [03:51:48] <ss23> spronk: Not hipster enough
545: [03:51:49] <ss23> see
546: [03:51:50] <Peavers> I'll stick with java... java is still cool right guys? right?
547: [03:51:53] <Colin[pi]> did not see the appeal
548: [03:51:56] <ss23> Peavers: TYPICAL GOVERNMENT WORKER.
549: [03:51:57] <spronk> hmm, simon_w, whyfor?
550: [03:51:58] <ss23> >java
551: [03:52:00] <ss23> >javaaaaa
552: [03:52:04] <simon_w> Sticking kv-store and document store in same place
553: [03:52:11] <spronk> i see
554: [03:52:20] <spronk> you use KV store primarily, or sql?
555: [03:52:25] <spronk> well kv/doc sture
556: [03:52:37] <simon_w> Well, kv is in memcache
557: [03:52:54] <simon_w> But most of our data's in a rDBMS
558: [03:53:00] <spronk> i see
559: [03:53:02] <ss23> wait, you run memcache and redis? Or switching to redis from mongo+memcached?
560: [03:53:04] <spronk> what you use mongo/redis for?
561: [03:53:27] * DarkSideOfTheMoo has joined #silverstripe
562: [03:53:38] <simon_w> Archived objects
563: [03:54:00] <simon_w> They're not going to change, and it's a pain to maintain a schema for them
564: [03:54:05] <DarkSideOfTheMoo> I get bumped out of the room sometimes by my phone.
565: [03:54:23] <spronk> ah
566: [03:54:25] <spronk> fair enough
567: [03:54:35] <spronk> don't use it for working data?
568: [03:55:03] <simon_w> Nah, most of our data is actually relational
569: [03:55:14] <spronk> mm..
570: [03:55:28] <spronk> do you use the SS ORM? or store data differently with a DAO or something?
571: [03:55:39] <DarkSideOfTheMoo> I'm computer illiterate. :(
572: [03:55:52] <ss23> I'm ss23!
573: [03:55:52] <ss23> :D
574: [03:55:59] <Peavers> I'm not laughing.
575: [03:56:15] <simon_w> spronk, currently the 2.4 ORM for the rDBMS
576: [03:56:21] <ss23> You work for the government. I'm pretty sure it's illegal for you to laugh :D
577: [03:57:02] <ss23> Okay guys, easiest way to go through every page (around 1k of them, however many are in this site) and fix all the broken links in the format of [document_link%20id=XXXX] back to [document_link,id=XXXX]
578: [03:57:10] <ss23> Make a task for it and regex?
579: [03:57:21] <simon_w> One sql query
580: [03:57:21] <spronk> yeah, probably.
581: [03:57:25] <Peavers> give it to the intern
582: [03:58:04] <simon_w> "Content" = REPLACE('[document_link%20id', '[document_link,id', "Content")
583: [03:58:07] <ss23> simon_w: How would you do it in a SQL query? I thought MySQL's SQLi sucked?
584: [03:58:12] <ss23> hmm
585: [03:58:16] <ss23> True
586: [03:58:18] <ss23> uh
587: [03:58:22] <simon_w> or whatever the syntax is
588: [03:58:22] <ss23> s/SQLi/regex/
589: [03:58:24] <ss23> Yeah
590: [03:58:27] <ss23> That will probably work
591: [03:58:33] <simon_w> Why do you need regex?
592: [03:59:06] <ss23> I don't, now that I think about it
593: [03:59:07] <ss23> lol
594: [04:00:05] <zippy__> everything is a little more awesome with regex
595: [04:00:17] <ss23> "awesome" :P
596: [04:00:17] <Peavers> you having a laugh?
597: [04:01:47] * cloph_away has joined #silverstripe
598: [04:02:13] * cloph quit (Ping timeout: 248 seconds)
599: [04:02:43] * DarkSideOfTheMoo quit (Ping timeout: 250 seconds)
600: [04:04:14] * DesignerX has joined #silverstripe
601: [04:17:39] * sevensevenone quit (Quit: Page closed)
602: [04:21:42] * zippy__ quit (Ping timeout: 264 seconds)
603: [04:34:32] * sevensevenone has joined #silverstripe
604: [04:35:21] * UncleCheese quit (Quit: UncleCheese)
605: [04:40:02] * sevensevenone has left #silverstripe
606: [04:40:54] * EasyCo quit (Ping timeout: 264 seconds)
607: [04:41:18] * EasyCo has joined #silverstripe
608: [04:41:30] <spronk> ugh
609: [04:41:31] <spronk> fucking rabbitmq
610: [04:41:37] <spronk> figuring out how to do anything takes SO MUCH READING
611: [04:41:39] <spronk> of SUCH MUNDANE DOCS
612: [04:42:23] <spronk> also, noone ever answers in #rabbitmq
613: [04:42:27] * spronk sighs a big sigh
614: [04:42:49] <ss23> XD
615: [04:43:14] <ss23> Poor spronk :D
616: [04:43:15] <spronk> also, no concept of "delayed" messages
617: [04:43:18] * spronk shakes fist
618: [04:43:33] <spronk> just want to requeue a message so that it gets processed in x minutes instead of immediately :(
619: [04:43:49] <ss23> Time to write your own!
620: [04:43:57] <spronk> too hard
621: [04:44:00] <spronk> waste of time
622: [04:46:45] <ss23> twss
623: [04:46:47] <ss23> too hard
624: [04:46:47] <ss23> :D
625: [04:47:42] * willr_ has joined #silverstripe
626: [04:48:09] * willr quit (Ping timeout: 264 seconds)
627: [04:48:10] * willr_ is now known as willr
628: [04:56:17] * wmk quit (Quit: nice to meet you ;))
629: [04:57:22] * DigNZ quit (Quit: DigNZ)
630: [04:58:40] * henkpoley has joined #silverstripe
631: [05:07:38] * Peavers quit ()
632: [05:08:11] * nickmolhoek quit (Quit: nickmolhoek)
633: [05:09:42] <ss23> So...
634: [05:09:43] <ss23> What about implenting the ZendVM in hardware?
635: [05:11:46] * willr_ has joined #silverstripe
636: [05:12:09] * willr quit (Ping timeout: 264 seconds)
637: [05:12:10] * willr_ is now known as willr
638: [05:15:28] * howardgrigg has joined #silverstripe
639: [05:17:04] <ss23> Ohhh
640: [05:17:06] <ss23> Pyro just txt
641: [05:17:07] <ss23> :O
642: [05:17:09] <ss23> He must be here soon
643: [05:18:54] * openbees has joined #silverstripe
644: [05:20:16] * howardgrigg quit (Ping timeout: 268 seconds)
645: [05:26:42] * DigNZ has joined #silverstripe
646: [05:26:43] * DigNZ quit (Remote host closed the connection)
647: [05:27:47] * UncleCheese has joined #silverstripe
648: [05:28:12] <Colin[pi]> lol: http://i.imgur.com/mvoajxL.jpg
649: [05:28:26] <ss23> LOL PYRO IS HERE
650: [05:28:28] <ss23> LOOOOL
651: [05:28:30] <Colin[pi]> YAY
652: [05:28:39] <ss23> hihi2u
653: [05:28:51] <Colin[pi]> omg hi pyro!
654: [05:29:05] <spronk> ermagherd
655: [05:40:43] * UncleCheese has left #silverstripe
656: [05:47:01] * simon_w|air has joined #silverstripe
657: [05:51:36] * metanat quit (Quit: Leaving.)
658: [05:54:21] <openbees> Is there any way to make all fields editable with GridFieldBulkImageUpload module other than passing every every field manually ?
659: [06:03:01] * mobiusnz1 has joined #silverstripe
660: [06:03:46] * vikas_s has joined #silverstripe
661: [06:04:02] * vikas_s has left #silverstripe
662: [06:04:28] * willr quit (Read error: Connection reset by peer)
663: [06:04:29] * openbees quit (Ping timeout: 276 seconds)
664: [06:04:29] * mobiusnz quit (Read error: Connection reset by peer)
665: [06:04:48] * howardgrigg has joined #silverstripe
666: [06:05:07] * Zauberfisch^away has joined #silverstripe
667: [06:05:08] * openbees has joined #silverstripe
668: [06:11:34] * Zauberfisch is now known as Zauberfisch_
669: [06:11:36] * Zauberfisch^away is now known as zauberfisch
670: [06:12:10] <ss23> cool, he's here now
671: [06:12:13] <ss23> Anyone want me to pass on messages?
672: [06:12:21] <ss23> WAit, I was meant to either hug him, or piunch him in the face from Colin[pi] or something
673: [06:13:11] <simon_w|air> Just do both, at the same time
674: [06:13:31] <ss23> lol
675: [06:13:35] <ss23> simon_w: Are you still in town
676: [06:13:56] <ss23> Me and pyro are going out anyway
677: [06:14:10] <ss23> if anyone wants to join, willr isn't here I see though, idk, just gimmie or pyro a txt (0277263555)
678: [06:14:16] <Colin[pi]> DO IT
679: [06:14:17] <Colin[pi]> ;D
680: [06:23:27] * pippy has joined #silverstripe
681: [06:23:36] * howardgr_ has joined #silverstripe
682: [06:28:42] * henkpoley quit (Quit: henkpoley)
683: [06:29:34] * howardgrigg quit (Read error: Connection reset by peer)
684: [06:34:44] * henkpoley has joined #silverstripe
685: [06:39:33] <simon_w|air> ss23, learn what my different handles mean :p
686: [06:44:29] * zauberfisch quit (Quit: Leaving...)
687: [06:53:25] * hubertusanton has joined #silverstripe
688: [06:57:11] * zauberfisch has joined #silverstripe
689: [06:58:21] * zauberfisch quit (Client Quit)
690: [06:58:38] * zauberfisch has joined #silverstripe
691: [06:59:23] * zauberfisch quit (Client Quit)
692: [06:59:43] * Zauberfisch has joined #silverstripe
693: [07:03:13] * priithansen has joined #silverstripe
694: [07:08:03] * Colin[pi] quit (Ping timeout: 245 seconds)
695: [07:09:51] * wmk has joined #silverstripe
696: [07:10:29] * Shrike_Finland quit (Quit: Leaving.)
697: [07:26:10] * Shrike_Finland has joined #silverstripe
698: [07:29:14] <guzzlefry> How do I use composer to pull in 3.1?
699: [07:31:04] <guzzlefry> Could not find package silverstripe/installer with version 3.1. <-- not getting along.
700: [07:31:45] <guzzlefry> yay, got it.
701: [07:32:37] <guzzlefry> The "https://api.github.com/repos/silverstripe/sapphire/zipball/3.1.0-beta3 " file could not be downloaded (HTTP/1.1 404 Not Found)
702: [07:33:44] <guzzlefry> $ composer create-project silverstripe/installer --no-dev ./ 3.1.0-beta3
703: [07:33:46] <guzzlefry> command used ^
704: [07:36:19] * lerni has joined #silverstripe
705: [07:38:17] * howardgr_ quit (Read error: No route to host)
706: [07:38:26] * howardgrigg has joined #silverstripe
707: [07:40:24] <wmk> in db: could a boolean field also be null in case it's not set?
708: [07:41:52] <guzzlefry> wmk: As far as MySQL is concerned, boolean is just TINYINT(1).
709: [07:42:02] <simon_w|air> guzzlefry, 3.1.x-dev
710: [07:42:10] <simon_w|air> wmk, no, Boolean fields are NOT NULL
711: [07:42:10] <guzzlefry> So, yes. Although I have no idea if SS uses that or something else.
712: [07:42:20] <wmk> so i just have to subclass boolean db-field ?
713: [07:42:31] <guzzlefry> simon_w|air: thanks, the logs are actually showing up in google now. :)
714: [07:42:34] * UncleCheese has joined #silverstripe
715: [07:49:22] * DigNZ has joined #silverstripe
716: [07:49:32] * DigNZ quit (Client Quit)
717: [07:51:32] * openbees quit (Quit: Leaving)
718: [07:57:43] * mattybalaam has joined #silverstripe
719: [07:58:01] <guzzlefry> gah
720: [07:58:02] <guzzlefry> Warning: require_once(/var/www/clients/vhosts/asfut/mysite/_config.php): failed to open stream: No such file or directory
721: [07:58:06] <guzzlefry> How do I make it look elsewhere?
722: [07:59:05] <guzzlefry> oh wait, think I need to /dev/build...
723: [07:59:35] <guzzlefry> flush=1 :P
724: [08:00:22] * kinglozzer has joined #silverstripe
725: [08:00:42] * sam_ has joined #silverstripe
726: [08:00:46] <sam_> hi
727: [08:00:56] <sam_> need some help on changing css.
728: [08:01:04] <sam_> http://golf.kc316.com/events/paul-douglas-golf-classic/view/2013-08-12
729: [08:01:22] <sam_> there is a strange dotted line
730: [08:02:13] <howardgrigg> theres your dotted line http://golf.kc316.com/themes/golfcourse/images/foot-bar.png
731: [08:03:18] <howardgrigg> oh you mean the dotted line above events?
732: [08:03:32] <howardgrigg> see style.css line 149
733: [08:04:07] <sam_> ok
734: [08:07:09] <sam_> no luck
735: [08:07:44] <sam_> actually its in the page types where the holder pages exists
736: [08:07:48] <howardgrigg> did you change anything?
737: [08:08:17] <UncleCheese> hey, wellingtonians.. is Newtown kind of dodgy?
738: [08:08:20] <howardgrigg> theres a dashed border-top set in the css
739: [08:08:25] <howardgrigg> UncleCheese: yup
740: [08:08:29] <UncleCheese> the shops look really cute.. but the people look rough
741: [08:09:05] <howardgrigg> there's a lot of refugees living there (not always a bad thing)
742: [08:09:33] <howardgrigg> but yea lots of cheap council housing
743: [08:09:49] <UncleCheese> ah, that must be the kind of housing with no insulation
744: [08:09:49] <sam_> I dileted the whole line 149
745: [08:09:50] <howardgrigg> some nice areas though - quite a few students and workers from the hospital
746: [08:09:56] <UncleCheese> i would hate to live in a place like that
747: [08:10:10] * EasyCo quit (Quit: EasyCo)
748: [08:10:37] <mattybalaam> Can I add a function to a data extension to get a thumbnail in the CMS. I am extending image. I have tried both: return $this->owner->CMSThumbnail(); and return $this->owner->CMSThumbnail();
749: [08:11:13] <howardgrigg> sam_: you looking at golfcourse/css/style.css ? I just opened the file and it looks like it's been minimised or something...
750: [08:11:34] <howardgrigg> there's a border-top set on .section
751: [08:11:59] <howardgrigg> UncleCheese: you looking for a new place with more insulation?
752: [08:12:12] <UncleCheese> no..
753: [08:12:29] <UncleCheese> my wife is looking for things to do tomorrow and she just remarked that newtown looked a little dodgy
754: [08:12:48] <howardgrigg> mattybalaam: there is a way I just can't remember how I did it...
755: [08:13:08] <mattybalaam> Cool. At least there is a way!
756: [08:13:25] <howardgrigg> ah yea - it's not super dodgy or anything just I probably wouldn't live there lol
757: [08:15:29] <guzzlefry> Is composer.lock something you'd want transferred over from dev to production?
758: [08:16:17] <howardgrigg> guzzlefry: yea that ensures your production enviroment doesn't install a newer version than your dev
759: [08:17:23] <guzzlefry> cool, thanks
760: [08:18:10] <guzzlefry> gah
761: [08:20:04] <howardgrigg> mattybalaam: http://gri.gg/gridimage
762: [08:20:27] <sam_> yes
763: [08:20:35] <sam_> I figured it out
764: [08:20:46] <howardgrigg> dinner time :) *waves*
765: [08:25:04] <mattybalaam> howardgrigg: Unfortunately that method doesn’t work when I have used a data extension
766: [08:25:36] * lobarvaz has joined #silverstripe
767: [08:28:16] * lietzmk__ has joined #silverstripe
768: [08:28:52] * simon__w|air has joined #silverstripe
769: [08:28:55] * ooystein has joined #silverstripe
770: [08:29:35] * simon_w|air quit (Disconnected by services)
771: [08:29:39] * simon__w|air is now known as simon_w|air
772: [08:29:55] * lietzmk quit (Ping timeout: 240 seconds)
773: [08:29:56] * ooystein_ quit (Ping timeout: 240 seconds)
774: [08:32:16] * Roed has joined #silverstripe
775: [08:32:52] <Roed> hi
776: [08:33:04] * lerni quit (Remote host closed the connection)
777: [08:33:28] <mattybalaam> So what happens if I do return $this->owner->Image()->CMSThumbnail(); is I get this error: Uncaught Exception: Object->__call(): the method 'image' does not exist on 'Image'
778: [08:33:40] <Roed> a question, when will 3.1.0 RC1 be released?
779: [08:34:17] <Bollig|DesignCty> mattybalaam: so $this->owner is class Image, of which there is no method Image()… just guessing?
780: [08:35:06] <Bollig|DesignCty> Roed: I don't think there are any core devs on now—It's like 8pm NZ time… might be better off trying while they're awake :)
781: [08:35:11] * guci0 has joined #silverstripe
782: [08:38:37] * ocm has joined #silverstripe
783: [08:38:39] <ocm> howdy!
784: [08:38:45] <mattybalaam> I’m struggling to grasp my way around it. Usually I would have a data object with a has_one to an image called say 'MyImage' and I would be able to do return $this->MyImage()->CMSThumbnail(); But as this is using DataExtension to decorate Image. Can I even do it?
785: [08:39:34] <Bollig|DesignCty> yeah, you certainly can.
786: [08:40:43] <Bollig|DesignCty> all you really need to change is $this-> to $this->owner. All $db and $relationships (from either the original class or added via the decorator) are accessible this way.
787: [08:40:54] <Bollig|DesignCty> if you're having issues, do you want to pastie.org you code?
788: [08:43:41] <wmk> is there a way to extend MySQLDatabase class or do i have to subclass it?
789: [08:50:39] <mattybalaam> Trying to get image thumbnail decorating image http://sspaste.com/paste/show/51ef939cb5d3c, note this uses https://github.com/unclecheese/silverstripe-zen-fields
790: [08:52:15] <sam_> do any bodu know how to give border:0 in ie.... for this: <div style="width:100%; clear:both; float:left; height:175px; border:0; background:url($ThemeDir/images/header_s1.jpg) top center no-repeat;">
791: [08:52:18] <sam_> ?
792: [08:52:29] <sam_> http://golf.kc316.com/
793: [08:54:16] <wmk> mattybalaam, your paste is empty?
794: [08:54:34] <mattybalaam> http://sspaste.com/paste/show/51ef939cb5d3c
795: [08:54:56] <wmk> ah, above there was a coma apeended
796: [08:54:57] <mattybalaam> Works for me
797: [08:55:01] <mattybalaam> OK!
798: [08:55:13] * Roed quit (Ping timeout: 250 seconds)
799: [08:55:38] <mattybalaam> Investigating further, I think I may be extending image wrong as it doesn’t attach the image
800: [08:56:45] <wmk> mattybalaam, yup
801: [08:57:10] <wmk> from where do you want to call the method? Templates?
802: [08:57:51] <mattybalaam> In the gridifield I want to show a thumbnail
803: [08:58:18] <wmk> then your class containing the image should have the method getThumbnail()
804: [08:58:46] <wmk> let me see if i find some code
805: [08:59:05] * zippy__ has joined #silverstripe
806: [08:59:09] <zippy__> hello
807: [09:01:04] <mattybalaam> I can get thumbnails working in a grid field when I have a data object with a has_one relation to an image. But I am trying not to subclass image, so just extending it. However, I don’t think I have extended it properly. When I upload an image the filename is a random collection of letters and numbers.
808: [09:01:56] <mattybalaam> In assets the file has uploaded properly though/
809: [09:02:24] <DesignerX> sam_: do that in CSS , border-width:0px;
810: [09:02:33] <mattybalaam> I will try without zenfields, maybe it struggles when used in a dataextension
811: [09:03:07] <wmk> you have to return the thumbnail in your class containing the image
812: [09:03:11] <wmk> not in image class
813: [09:03:31] * priithansen quit (Quit: priithansen)
814: [09:04:07] <wmk> put method getThumbanil() in BlogMulitpleImageExtension
815: [09:04:21] <wmk> mattybalaam, that should do
816: [09:05:42] <DesignerX> mattybalaam: wmk looking at http://sspaste.com/paste/show/51ef939cb5d3c , I see line 28 is wrong
817: [09:05:48] <sam_> ok
818: [09:06:14] <DesignerX> mattybalaam: does BlogMulitpleImage decoreate Image ?
819: [09:06:31] <mattybalaam> That is right.
820: [09:06:54] <wmk> DesignerX, as in line 9-11. yes
821: [09:07:16] <sam_> DesignerX: No luck
822: [09:07:35] <DesignerX> so line 28 hould be return $this->owner->CMSThumbnail(); without "Image()"
823: [09:08:10] <DesignerX> $this->owner IS the image, there is no Image() method on Image class
824: [09:08:26] <Bollig|DesignCty> mattybalaam: so $this->owner-> on BlogMulitpleImage is referring to Image, the class that's being decorated. There's no relationship on Image called Image(), so that's where the issue is.
825: [09:08:44] <Bollig|DesignCty> or what DesignerX said, more succinctly. ;)
826: [09:08:47] <DesignerX> ^^ agree :)
827: [09:09:03] <mattybalaam> OK, cool. That is what I was originally using. But I now think what is going wrong is that for some reason Image is not saving the location of the file to the database properly
828: [09:09:47] <mattybalaam> if I upload e.g. 'image.jpg', it goes into assets, but the filename and title are "51ef9938f29c4."
829: [09:09:50] <mattybalaam> !?
830: [09:11:35] <mattybalaam> Any ideas why that might happen?
831: [09:11:42] <DesignerX> mattybalaam: do you get GridField with the code at lines 60-76 ?
832: [09:13:06] <mattybalaam> You need https://github.com/unclecheese/silverstripe-zen-fields, I can rewrite standard if you want to test
833: [09:13:58] <mattybalaam> But it’s a very nice module for writing fields quickly if you haven’t tried it
834: [09:14:05] <DesignerX> nah all good, 1st time i see that module , looks good
835: [09:15:48] <DesignerX> brb to help you with the problem, 10 min
836: [09:16:58] <mattybalaam> No probs. It is creating two rows on the data base. a first one with the correct info, and then a second one which is all odd.
837: [09:18:17] <mattybalaam> Good news is, if I manually change the ID on BlogEntry_MorePics the thumbnail shows in grid field.
838: [09:18:48] <DesignerX> mattybalaam: good luck getting the client to do that :)
839: [09:19:10] <wmk> mattybalaam, yup, zenfields looks promising.
840: [09:19:51] <mattybalaam> Haha!
841: [09:24:28] <simon_w|air> mattybalaam, don't use a GridField to manage a relation directly to Image. You need to either wrap it in some other DO or use UploadField
842: [09:25:28] * metanat has joined #silverstripe
843: [09:26:03] <mattybalaam> AH, I think I can see what you mean. I have an uploadfield in an extension to image. But having 'AddFile' as well is causing the double table row?
844: [09:26:38] <simon_w|air> Well, having an UploadField on Image is causing the double row
845: [09:27:13] * LoveDuckie has joined #silverstripe
846: [09:27:27] <metanat> Does it frustrate anyone else that it is hard to change the error reporting in ss 3.1?
847: [09:27:47] <metanat> Surely that is not intentional.
848: [09:27:59] <simon_w|air> Oh right, after the changes made by Hamish
849: [09:28:18] <mattybalaam> That all makes sense now. I do need to have the images sortable, which I can only do in a grid field I believe?
850: [09:28:25] <DesignerX> mattybalaam: i guess you need the other 2 opstions we spoke about before, Object has_one Image or MyImage extends Image .
851: [09:28:45] <simon_w|air> mattybalaam, yup, you're going to need a wrapper object
852: [09:29:05] <simon_w|air> metanat, apparently it should now only do the final fallback on fatals
853: [09:29:25] <metanat> This is even without hamishs changes
854: [09:29:35] <mattybalaam> I was trying to see if I could do this without doing it - just to see if I could as a learning exercise, which I guess this has been :D
855: [09:29:36] <simon_w|air> Really? set_error_handler() didn't work?
856: [09:29:54] <metanat> It is that in live more the error reporting gets set after the config files get included
857: [09:30:10] <metanat> No I mean error_reporting()
858: [09:30:32] <simon_w|air> That was supposed to happen in 2.4/3.0 as well
859: [09:31:22] <DesignerX> Question : how can I manage has_one & has_many relations on the front end other then pushing GridField to the front end ? any existing modules or a Drag n drop JQuery plugins to help me manage the relations ?
860: [09:31:36] <simon_w|air> has_one is a drop down
861: [09:31:50] <simon_w|air> has_many, depends on what you want
862: [09:32:18] <DesignerX> * I meant to say, has_many & many_many
863: [09:33:12] <DesignerX> I need somthing like GriedField, but io was tols its a bad I dea to put GF on the front end so how can I get something similar
864: [09:33:18] <DesignerX> told*
865: [09:33:41] * EasyCo has joined #silverstripe
866: [09:33:50] <simon_w|air> To do what?
867: [09:35:26] <DesignerX> for now to manage relation between 2 classes, class & student, i need to click on class to search 7 add a student to the current class
868: [09:36:27] <UncleCheese> mattybalaam: you like zen fields, eh?
869: [09:36:48] <mattybalaam> I do
870: [09:37:09] <simon_w|air> mattybalaam, I hope you negotiated a valid license for using it :p
871: [09:38:41] <UncleCheese> that's cool to see it in use.. i need to start using it in my projects
872: [09:38:46] <UncleCheese> that was a fun module to write
873: [09:39:24] <UncleCheese> simon_w came through with the tip on allMethodNames() that makes the whole thing possible
874: [09:42:21] <simon_w|air> UncleCheese, here, go stick http://pastebin.com/YQLsr8VG in a LICENSE file in all your modules
875: [09:42:55] <UncleCheese> can you also paste a bash script that will just automatically do it for me on all my modules?
876: [09:43:30] * lerni has joined #silverstripe
877: [09:43:51] <DesignerX> simon_w: btw, I cant open that link !
878: [09:43:55] <UncleCheese> ok, fun task for tomorrow
879: [09:44:01] <UncleCheese> kill time during the WDCNZ
880: [09:44:15] <sam_> can anyone help me about menubar in http://golf.kc316.com/events/
881: [09:44:33] <sam_> the menubar is not coming properly in ie
882: [09:45:06] * UncleCheese quit (Quit: UncleCheese)
883: [09:45:22] <DesignerX> did just somone say "my website doesnt show up correctly in IE" ! when did IE ever work correclty !
884: [09:45:57] <DesignerX> sam_: what version of IE ?
885: [09:46:16] <sam_> its 8.0
886: [09:46:48] <DesignerX> mm.. its working fine in IE 10 here, sorry dont have any older version, maybe wanna paste a screenshot ?
887: [09:48:17] <simon_w|air> He left? But I made the script for him!
888: [09:48:31] * lerni quit (Ping timeout: 276 seconds)
889: [09:49:09] <DesignerX> simon_w: he stole your URL & started running
890: [09:49:50] <simon_w|air> Eh, it just means people will actually legally be able to use his modules
891: [09:50:04] <DesignerX> now really, the URL is now working ..
892: [09:50:08] <DesignerX> is not *
893: [09:50:34] <simon_w|air> It's definitely working for me
894: [09:52:21] <DesignerX> ah,I cant access pastebin.com :( need to check my HOSTS file
895: [09:56:29] <sam_> DesignerX: here is the screenshot: http://i.imgur.com/l8lhcfu.png
896: [09:57:07] <DesignerX> sam_: maybe IE8 doesnt understand the <nav> tag ?
897: [09:57:12] <sam_> menu is not coming properly
898: [09:57:30] <sam_> hummm
899: [09:59:11] <DesignerX> sam_: http://caniuse.com/#search=nav
900: [09:59:27] <Zauberfisch> oh :O
901: [09:59:35] <Zauberfisch> sam_: don't use html5 without a polyfill
902: [09:59:35] <DesignerX> blub
903: [09:59:40] <Zauberfisch> DesignerX: blubb
904: [09:59:56] <Zauberfisch> sam_: use http://modernizr.com/
905: [10:00:04] <Zauberfisch> it has a html5shiv built in
906: [10:00:20] <DesignerX> or do what I do, use classes & IDs or leave out stone age browsers
907: [10:00:44] <Zauberfisch> DesignerX: IDs are so yestday :P
908: [10:00:50] <Zauberfisch> who still uses IDs :P
909: [10:01:12] <DesignerX> I use about 4-6 of them in a big project , for my main sections
910: [10:02:37] <Zauberfisch> no, using HTML5 is good
911: [10:02:47] <Zauberfisch> just make sure you have a html5 polyfill
912: [10:03:13] <Zauberfisch> in fact, I don't see why one would not use html5boilerplate
913: [10:03:26] <Zauberfisch> it has all the goodness you need
914: [10:03:57] <Zauberfisch> like the polyfill, a normalise css, some reasonable default css and markup, ...
915: [10:04:54] <sam_> DesignerX: tried removing <nav> tag, but no luck
916: [10:06:52] * Error404NotFound has joined #silverstripe
917: [10:07:56] * mattybalaam quit (Quit: mattybalaam)
918: [10:34:45] * ocm quit (Ping timeout: 248 seconds)
919: [10:37:15] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
920: [10:37:57] * Error404NotFound quit (Ping timeout: 264 seconds)
921: [10:39:28] * howardgrigg quit (Remote host closed the connection)
922: [10:41:41] * henkpoley quit (Quit: henkpoley)
923: [10:45:20] * mattybalaam has joined #silverstripe
924: [10:52:55] * wmk quit (Quit: nice to meet you ;))
925: [11:05:49] * zippy__ quit (Quit: zippy__)
926: [11:10:00] * metanat quit (Quit: Leaving.)
927: [11:17:41] * henkpoley has joined #silverstripe
928: [11:24:16] * ARNHOE has joined #silverstripe
929: [11:27:19] * sam_ quit (Ping timeout: 250 seconds)
930: [12:07:00] * UndefinedOffset has joined #silverstripe
931: [12:15:04] * henkpoley quit (Quit: henkpoley)
932: [12:15:18] * wmk has joined #silverstripe
933: [12:19:45] <ss23> simon_w: full root access
934: [12:19:52] <ss23> Though I presume you're in bed now :O
935: [12:31:18] * ocm has joined #silverstripe
936: [12:31:26] * mattybalaam quit (Quit: mattybalaam)
937: [12:39:50] * howardgrigg has joined #silverstripe
938: [12:44:16] * howardgrigg quit (Ping timeout: 256 seconds)
939: [12:46:46] * nightart has joined #silverstripe
940: [12:48:48] * henkpoley has joined #silverstripe
941: [13:01:34] * osterlaus has joined #silverstripe
942: [13:03:04] * mattybalaam has joined #silverstripe
943: [13:32:52] * Shrike_Finland quit (Quit: Leaving.)
944: [13:34:57] * ss23 quit (Ping timeout: 248 seconds)
945: [13:45:49] * henkpoley quit (Quit: henkpoley)
946: [13:53:07] * nightart quit (Ping timeout: 246 seconds)
947: [13:53:09] <wmk> when creating a form, is there a way to check if i have a validation error, so i don't call $form->loadDataFrom() and overload the user input?
948: [13:53:59] * osterlaus quit (Quit: Leaving.)
949: [13:59:01] * henkpoley has joined #silverstripe
950: [14:02:58] * nightart has joined #silverstripe
951: [14:10:02] <ocm> wmk, did you take a look at: http://doc.silverstripe.org/framework/en/topics/form-validation ?
952: [14:12:01] <wmk> hmm, no info about loadDataFrom there, but 10x ocm
953: [14:17:08] * ss23 has joined #silverstripe
954: [14:35:06] <kinglozzer> wmk: I never use loadDataFrom() :/
955: [14:35:13] <wmk> ;)
956: [14:35:23] <kinglozzer> If you use RequiredFields as a validator, it redirects back and fills it automatically
957: [14:35:46] <wmk> i overwrote the user input with loadDataFrom,
958: [14:35:53] <kinglozzer> Ah I see
959: [14:36:11] <wmk> for a new registriation i just disabled it.
960: [14:36:23] * ss23 quit (Remote host closed the connection)
961: [14:37:15] <kinglozzer> wmk: $errorInfo = Session::get("FormInfo.{$this->FormName()}"); if(isset($errorInfo['errors']) && is_array($errorInfo['errors'])) { // WE HAVE ERRORS D: }
962: [14:37:53] <kinglozzer> That's how Form->setupFormErrors() does it anyways :P
963: [14:40:19] * howardgrigg has joined #silverstripe
964: [14:42:33] <wmk> kinglozzer, thanks
965: [14:43:08] * ARNHOE quit (Remote host closed the connection)
966: [14:44:21] * howardgrigg quit (Ping timeout: 246 seconds)
967: [14:57:04] * hubertusanton quit (Remote host closed the connection)
968: [14:58:32] * Nivery has joined #silverstripe
969: [15:09:54] * nightart quit (Ping timeout: 246 seconds)
970: [15:20:42] * priithansen has joined #silverstripe
971: [15:24:26] * henkpoley quit (Quit: henkpoley)
972: [15:24:49] * r3v3rb has joined #silverstripe
973: [15:25:36] <r3v3rb> hi, remind how I get the link to a parent page in a controller?
974: [15:34:39] <DesignerX> r3v3rb: I think $this->data()->Parent() ?
975: [15:34:40] * nightart has joined #silverstripe
976: [15:35:16] <r3v3rb> DesignerX: or even just $this->Parent()->Link() worked first time - guess I should trust my instinct more :)
977: [15:36:24] <DesignerX> :)
978: [15:42:06] * ARNHOE has joined #silverstripe
979: [15:43:33] <DesignerX> anyoine used Translatable modules? how can i create a template loop that list available languages then on clicking one it transaltes the site or fall back to default language 9english) ?
980: [15:44:11] * Zauberfisch quit (Quit: Leaving...)
981: [15:47:02] * r3v3rb quit (Quit: r3v3rb)
982: [15:47:09] <AlphaCactus> there are other languages than english?
983: [15:49:35] <DesignerX> I need pages to be in 3 languages, so I need the reader to be able to swich the site to his chosen language so all pages with available trnslaion will be translated otherwiste it should fall back to english
984: [15:53:35] * nightart quit (Ping timeout: 268 seconds)
985: [15:59:38] * priithansen quit (Quit: priithansen)
986: [16:08:30] * wmk quit (Read error: Connection reset by peer)
987: [16:08:51] * wmk has joined #silverstripe
988: [16:09:34] * catcher has joined #silverstripe
989: [16:13:43] * kinglozzer quit (Remote host closed the connection)
990: [16:16:43] * r3v3rb has joined #silverstripe
991: [16:23:29] <r3v3rb> DesignerX: I am usng Translatable did you get your question answered?
992: [16:23:37] * nightart has joined #silverstripe
993: [16:28:00] * henkpoley has joined #silverstripe
994: [16:36:21] * nightart quit (Ping timeout: 246 seconds)
995: [16:39:13] * CodeTrap has joined #silverstripe
996: [16:40:46] * howardgrigg has joined #silverstripe
997: [16:44:51] * howardgrigg quit (Ping timeout: 240 seconds)
998: [16:46:27] * lobarvaz quit (Remote host closed the connection)
999: [17:00:12] * Colin[pi] has joined #silverstripe
1000: [17:01:57] * DesignerX quit (Ping timeout: 264 seconds)
1001: [17:04:14] * nightart has joined #silverstripe
1002: [17:06:40] * henkpoley quit (Quit: henkpoley)
1003: [17:16:00] * Nivery quit (Quit: Nivery)
1004: [17:16:23] * henkpoley has joined #silverstripe
1005: [17:17:01] * nightart quit (Ping timeout: 276 seconds)
1006: [17:27:02] * mattybalaam quit (Quit: mattybalaam)
1007: [17:30:00] * Nivery has joined #silverstripe
1008: [17:33:39] * cloph_away is now known as cloph
1009: [17:55:18] * spronk quit (Ping timeout: 264 seconds)
1010: [17:57:19] * lietzmk__ quit (Quit: Leaving)
1011: [18:02:18] * henkpoley quit (Quit: henkpoley)
1012: [18:03:02] * mattybalaam has joined #silverstripe
1013: [18:06:10] * swordsmanz is now known as swordsneedsleep
1014: [18:12:07] * nightart has joined #silverstripe
1015: [18:15:25] * swordsneedsleep quit (Ping timeout: 268 seconds)
1016: [18:18:10] * gelignite has joined #silverstripe
1017: [18:21:06] * nightart quit (Ping timeout: 264 seconds)
1018: [18:27:37] * henkpoley has joined #silverstripe
1019: [18:27:43] * ARNHOE quit (Remote host closed the connection)
1020: [18:30:24] * SphereSilverNL has joined #silverstripe
1021: [18:30:44] * nightart has joined #silverstripe
1022: [18:41:11] * howardgrigg has joined #silverstripe
1023: [18:41:59] * SphereSilverNL quit (Ping timeout: 256 seconds)
1024: [18:44:53] * nightart quit (Ping timeout: 248 seconds)
1025: [18:45:48] * howardgrigg quit (Ping timeout: 256 seconds)
1026: [18:50:46] * SphereSilverNL has joined #silverstripe
1027: [18:51:40] <SphereSilverNL> Let's try again. This time without blue screens
1028: [19:01:39] * violetina has joined #silverstripe
1029: [19:16:15] <SphereSilverNL> Any Dutchies here?
1030: [19:23:32] <simon_w> wmk, user data only gets loaded when outputting the form. You can use loadDataFrom() fine
1031: [19:23:38] * micahsheets has joined #silverstripe
1032: [19:23:57] * micahsheets quit (Client Quit)
1033: [19:24:14] * micahsheets has joined #silverstripe
1034: [19:27:35] <micahsheets> how does singleton("myDataObject") work? I have a __construct($data) function on my dataobject that wants $data to not be null. but if I need a singleton to get information from the Dataobject without a database record $isSingleton is not set to true by singleton("myDataObject")
1035: [19:29:07] <simon_w> Custom constructors on DataObjects. There lies madness :p
1036: [19:29:33] <SphereSilverNL> No, it's Sparta :P
1037: [19:31:01] <micahsheets> Would I instantiate my DataObject and then use a function to pass the $data in and write()?
1038: [19:31:25] * zfmf1 has joined #silverstripe
1039: [19:31:36] <micahsheets> instead of a constructor.
1040: [19:31:39] <simon_w> Well, you can use new Blah($data) fine, but overwriting __construct() usually leads to really annoying bugs
1041: [19:34:05] <micahsheets> ok thanks.
1042: [19:43:05] * pex has joined #silverstripe
1043: [19:44:38] * r3v3rb quit (Quit: r3v3rb)
1044: [19:52:24] * Shrike_Finland has joined #silverstripe
1045: [20:03:44] * r3v3rb has joined #silverstripe
1046: [20:19:34] * henkpoley quit (Quit: henkpoley)
1047: [20:20:06] * UndefinedOffset quit (Quit: Leaving.)
1048: [20:24:03] * DigNZ has joined #silverstripe
1049: [20:29:13] <guzzlefry> Can you filter what's shown in the CMS depending on which group a user is in?
1050: [20:32:20] * ARNHOE has joined #silverstripe
1051: [20:36:00] * nickmolhoek has joined #silverstripe
1052: [20:36:01] * nickmolhoek quit (Remote host closed the connection)
1053: [20:36:15] * nickmolhoek has joined #silverstripe
1054: [20:37:10] * EasyCo quit (Quit: EasyCo)
1055: [20:41:01] <SphereSilverNL> guzzlefry: at what point in the CMS?
1056: [20:41:36] <SphereSilverNL> Pages or ModelAdmin like things?
1057: [20:41:37] * howardgrigg has joined #silverstripe
1058: [20:42:12] <guzzlefry> SphereSilverNL: Nevermind. It's all in the CMS. I just wanted to hide certain sections in the left pane, which can be done via the Groups setup.
1059: [20:42:30] <SphereSilverNL> Ah, security-settings ;) ok :)
1060: [20:42:38] <SphereSilverNL> I was thinking too complicated obviously :D
1061: [20:42:51] <guzzlefry> ah well, I was expecting complicated. :P
1062: [20:43:26] <SphereSilverNL> Not everything is complicated :)
1063: [20:43:51] <simon_w> I don't know. Have you tried being an end user? :p
1064: [20:45:02] <SphereSilverNL> simon_w, no. But I have an End User Training Device. Also known as EUTD: http://goo.gl/NrFWCQ
1065: [20:45:48] * simon_w is writing functions, cause classes are meh :p
1066: [20:45:54] * howardgrigg quit (Ping timeout: 246 seconds)
1067: [20:46:46] <SphereSilverNL> What has to be done, hase to be done?
1068: [20:47:02] <SphereSilverNL> And my English sucks
1069: [20:48:41] <simon_w> Or, you know, because doing things like Java's static classes in PHP is stupid
1070: [20:49:04] * zippy__ has joined #silverstripe
1071: [20:49:09] * coldblooded01 has joined #silverstripe
1072: [20:49:57] <SphereSilverNL> true. I might be stepping on toes here, but PHP is not a grown up language yet. And I don't think it'll happen anytime soon.
1073: [20:50:17] <SphereSilverNL> PHP is like miss Bieber. You don't have to be good to be popular
1074: [20:50:44] * joelpittet has joined #silverstripe
1075: [20:51:00] <simon_w> Depends on what you mean by a grown up language
1076: [20:51:29] <zippy__> Morning
1077: [20:51:30] <SphereSilverNL> True
1078: [20:52:56] <SphereSilverNL> but, as often said, PHP is like a hammer with a claw on both sides. I think that's still (partly) true. The method of hammering sideways is a solution, but doesn't make it a good hammer
1079: [20:53:39] <simon_w> See, I've never had that experience. Just because people use PHP when they shouldn't, doesn't mean that it isn't extremely useful
1080: [20:53:39] <zippy__> And I suppose you think Ruby, or Python is better?
1081: [20:53:59] <SphereSilverNL> zippy__: no :)
1082: [20:55:07] <SphereSilverNL> I know a programming language isn't a static. It's in constant development mode
1083: [20:55:51] <SphereSilverNL> but PHP, considering what it does, often takes unwanted shortcuts
1084: [20:56:04] <simon_w> Such as?
1085: [20:56:16] <SphereSilverNL> I can't show a case, but it's just that.... "hmmmm, why?" feeling
1086: [20:56:32] <simon_w> So, you're making these statements but can't actually back them up?
1087: [20:56:54] <SphereSilverNL> I can't due to problems with my job
1088: [20:57:39] <SphereSilverNL> And yes, I've encountered a few WTF moments with PHP, where Java or C would do what I want. But I can't show them due to the NDA
1089: [20:57:55] <zippy__> I haven't had that problem
1090: [20:58:00] <simon_w> The only complaint against PHP that I've seen that is actually valid is the associative nature of the ternary operator
1091: [20:58:15] <simon_w> And saying you can't show things because of a NDA is bullshit
1092: [20:58:45] <simon_w> This is about the PHP language, which isn't under any sort of NDA
1093: [20:58:58] <zippy__> my only complaint is the inconsistancy of functions, which is a common one. some core functions have _ some dont, some take operators in different orders. But just hitting php.net/functionname is easy
1094: [20:59:09] <SphereSilverNL> Somehow, I still signed an NDA, I'm not gonna break it.
1095: [20:59:24] <SphereSilverNL> But I agree it sounds like "you got nothing"
1096: [20:59:45] <simon_w> zippy__, string functions are haystack, needle array functions are needle, haystack
1097: [21:00:22] <zippy__> O.o
1098: [21:00:39] <SphereSilverNL> that's inconsistent, but works indeed just fine
1099: [21:02:23] * DigNZ quit (Remote host closed the connection)
1100: [21:05:35] <SphereSilverNL> I'd have to search, but there's a bug in php's conversion methods, leaving prepending stuff in the converted value when converting a string from iso to utf8
1101: [21:05:50] <SphereSilverNL> That's a quirk you will have to work around instead of implementing it properly
1102: [21:07:42] <guzzlefry> hm, why does composer update pull in lots of testing stuff?
1103: [21:07:46] <guzzlefry> phpunit and such
1104: [21:08:18] <simon_w> Because it defaults to requiring all the dev requirements too
1105: [21:08:21] <guzzlefry> `composer create-project --no-dev --keep-vcs --prefer-source silverstripe/installer . 3.1-beta3`
1106: [21:08:26] <guzzlefry> Used that to pull it in.
1107: [21:08:50] <guzzlefry> simon_w: So I'm guessing `composer update --no-dev`?
1108: [21:09:00] <simon_w> Yup
1109: [21:09:25] <simon_w> And composer require --no-update module
1110: [21:09:34] <guzzlefry> simon_w: How would i go about excluding their git directory but still pulling in .gitignore?
1111: [21:09:57] <simon_w> drop the --keep-vcs, at the prompt say no
1112: [21:10:15] <guzzlefry> thanks
1113: [21:10:29] * micmania2 has joined #silverstripe
1114: [21:10:34] * DigNZ has joined #silverstripe
1115: [21:13:29] <catcher> I'm opening up Restful/API CRUD access to a class for use by another SS site. My plan is to override the canFoo() methods, allowing only if the user has CMS access or the IP address matches the other site. Is there a better way?
1116: [21:14:30] <micmania2> catcher, you could try the oauth module, although I've never tried it myself.
1117: [21:15:07] <catcher> Any problems with the first approach I'm forgetting about? (assuming dedicated IP)
1118: [21:15:55] * zfmf1 has left #silverstripe
1119: [21:16:29] <micmania2> I'm no security expert but i'd be against relying on an IP, but it depends what your using it for.
1120: [21:16:50] <micmania2> If its not sensitive data then IP would be fine.
1121: [21:18:57] * pex quit (Ping timeout: 256 seconds)
1122: [21:20:03] * Nivery quit (Quit: Nivery)
1123: [21:21:31] * ARNHOE quit (Remote host closed the connection)
1124: [21:21:36] * r3v3rb quit (Quit: r3v3rb)
1125: [21:24:28] <guzzlefry> simon_w: `composer require --no-update module` is asking "Please provide a version constraint for the module requirement:", not sure what to put there.
1126: [21:31:52] <simon_w> The version of the module you want, just like normal
1127: [21:32:41] <guzzlefry> Ah so, whatever I used in composer create-project? 3.1-beta3
1128: [21:33:27] <simon_w> Not likely
1129: [21:33:38] <simon_w> The version of the module, not the framework/cms
1130: [21:37:31] <guzzlefry> Composer seems to be a stumbling block for me. :P
1131: [21:37:47] <catcher> does Restfulserver send back a response to a post or put request?
1132: [21:41:07] <irogue> C++ needs require_once
1133: [21:41:29] <simon_w> #import!
1134: [21:41:58] <irogue> yeah, but it's ending up importing the same file more than once which breaks the compile
1135: [21:42:15] <simon_w> import shouldn't do that, #include does
1136: [21:42:51] <simon_w> Fairly sure #import isn't just an Apple extension too
1137: [21:44:04] <irogue> #import only works with DLLs i believe, not header files
1138: [21:44:34] <irogue> i think i just need to mess with the compile order
1139: [21:44:39] <simon_w> Obj-C is almost entirely done with #import
1140: [21:45:40] <irogue> makes sense
1141: [21:46:17] <simon_w> Means you don't have to wrap everything in a #ifndef __MY_DEF #def __MY_DEF ... #endif
1142: [21:46:47] <catcher> If one site is adding objects to another via Rest, how can I sync IDs for later updates?
1143: [21:47:47] * Ticklenetwork has joined #silverstripe
1144: [21:47:48] <catcher> assuming not every item that exists on the host site gets pushed to the client site.
1145: [21:48:42] <irogue> simon_w: problem i have is that the main file (LD831_GetLAeq.cpp) in including C831Manager.h because it needs a bunch of the definitions in there, but then C831Manager.cpp goes to compile and complains because it's also including C831Manager.h
1146: [21:48:45] <Ticklenetwork> Hi, hopfully this is an easy question.... Ive installed ss 3.0 on my hosting server. but when i try open another file location that i know is there, it comes up fage not found.....
1147: [21:49:29] <Ticklenetwork> I've installed wordpress in another folder... but silverstripe wont allow me to access it
1148: [21:49:34] <simon_w> irogue, all the #ifndef's!
1149: [21:50:04] <simon_w> Ticklenetwork, you need to specifically exclude requests to folders you want access to in the rewrite rules in .htaccess
1150: [21:51:38] <Ticklenetwork> What code would i have to put into .htaccess sorry still learning ss
1151: [21:53:34] * gelignite quit (Quit: http://bit.ly/nkczDT)
1152: [21:56:38] * mattybalaam quit (Quit: mattybalaam)
1153: [21:57:34] <simon_w> Well, it's not SS specific
1154: [21:58:08] <simon_w> Something like RewriteCond %{REQUEST_URI} !^/folder/
1155: [22:00:39] <guzzlefry> hm, shouldn't install.php pull the database name from SS_DATABASE_NAME? Also, isn't there a composer way of doing this? >_>
1156: [22:01:02] <guzzlefry> SS_DATABASE_NAME in _ss_environment.php ^
1157: [22:02:10] <SphereSilverNL> Any bb-fans here?
1158: [22:02:26] <irogue> LD831_GetLAeq.obj : error LNK2005: IID_Islmcomm already defined in C831Manager.obj
1159: [22:02:29] <irogue> aefunaoiefnaoegke
1160: [22:02:30] * irogue asplodes
1161: [22:02:39] <SphereSilverNL> irogue: don't die yet, ok?
1162: [22:02:40] * guzzlefry ducks.
1163: [22:07:32] <Shrike_Finland> Hi guys! What I'm doing wrong: $Link is not going to the page, but to home page instead. http://pastebin.com/dqs4vyi9
1164: [22:07:58] <SphereSilverNL> Is this on an include?
1165: [22:07:59] <Shrike_Finland> And I mean link from image
1166: [22:08:20] <Shrike_Finland> it from holder page and child page is the target
1167: [22:08:24] <Shrike_Finland> it is
1168: [22:08:29] <SphereSilverNL> There's your problem
1169: [22:08:35] <simon_w> ImageGallery doesn't have a Link method?
1170: [22:08:40] <SphereSilverNL> Scope isn't carried into includes afaik
1171: [22:08:54] <simon_w> What does that have to do with $link returning nothing? :p
1172: [22:08:55] * DigNZ1 has joined #silverstripe
1173: [22:08:56] * DigNZ1 quit (Remote host closed the connection)
1174: [22:08:59] <SphereSilverNL> besides that, the URL to a resized/padded.... don't know but I can understand it won't work :P
1175: [22:09:07] <Shrike_Finland> :D
1176: [22:09:10] * DigNZ1 has joined #silverstripe
1177: [22:09:42] <SphereSilverNL> simon_w the scope isn't carried into the include by default, is it? That's what I'm referring to
1178: [22:10:25] <simon_w> Well, scope is carried, the stack isn't. And what does that have to do with anything?
1179: [22:10:58] <SphereSilverNL> It would mean the $Link would bug out unless specified?
1180: [22:11:10] <SphereSilverNL> I'm not sure, but I vaguely remember it being so
1181: [22:11:41] <SphereSilverNL> stack indeed, not scope
1182: [22:11:43] <Shrike_Finland> Ok, so is there a way to fix this...
1183: [22:11:45] <simon_w> No, it'd mean $Top.Link would only go to the top of the include, not back to the controller (unless that is the scope when the include was called)
1184: [22:12:00] <SphereSilverNL> Where should $link point to? the ProductImage link?
1185: [22:12:12] <simon_w> Shrike_Finland, href="" would mean no $Link method
1186: [22:12:20] <SphereSilverNL> ok, I misunderstood the docs I guess :)
1187: [22:12:41] <SphereSilverNL> Shrike_Finland: make a public function Link(){}
1188: [22:12:50] <SphereSilverNL> which returns the link of the image
1189: [22:12:56] <Shrike_Finland> aha!
1190: [22:13:09] <SphereSilverNL> that means, the function should return $this->Link() or something more complex
1191: [22:13:12] <SphereSilverNL> that should fix it
1192: [22:14:30] <SphereSilverNL> I think
1193: [22:14:45] <Shrike_Finland> Hmm, images are dataobject inside childpage, so do I actually have to put the function in childpage?
1194: [22:14:52] <SphereSilverNL> simon_w is probably gonna improve my short answer with a long answer
1195: [22:15:01] <SphereSilverNL> yep, you have to
1196: [22:15:29] <SphereSilverNL> I think it'll solve your problem
1197: [22:15:57] <SphereSilverNL> the link isn't relative to the parent anymore (the carry-stack "issue" simon_w mentioned)
1198: [22:16:16] <Shrike_Finland> jep
1199: [22:16:29] <SphereSilverNL> productimage therefor needs to have it's own link-function to work properly
1200: [22:17:22] <SphereSilverNL> public function Link(){ return $this->Link(); } should work
1201: [22:17:47] <SphereSilverNL> otherwise, it'll try to catch the link from the stack, which is at 0
1202: [22:17:52] <SphereSilverNL> simply put
1203: [22:21:29] <Shrike_Finland> Did not work that way
1204: [22:27:32] * DigNZ1 quit (Quit: DigNZ1)
1205: [22:27:42] <SphereSilverNL> return $this->Image()->Link()
1206: [22:27:45] <SphereSilverNL> maybe?
1207: [22:31:57] * violetina quit (Remote host closed the connection)
1208: [22:32:12] <Shrike_Finland> I think that is not going to work either...
1209: [22:32:26] <zippy__> Shrike_Finland: What are you trying to do?
1210: [22:34:44] <Shrike_Finland> I'm trying to get image on holder page (pulled from childpages dataobject) work as a link to child page
1211: [22:35:50] <Shrike_Finland> Code is here (which is not working on image): http://pastebin.com/dqs4vyi9
1212: [22:38:00] * Ticklenetwork quit (Quit: Page closed)
1213: [22:39:57] <zippy__> $ProductImage is a Image object?
1214: [22:40:03] * ss23 has joined #silverstripe
1215: [22:41:07] <zippy__> <% with $ProductImage.PaddedImage(170,98) %> <img src="$URL" style="text-align: center;" class="media-object"/><% end_with %>
1216: [22:41:09] <zippy__> perhaps
1217: [22:41:25] <zippy__> I could even just do <% $ProductImage.PaddedImage(170,98) %> to see if that drops out the image
1218: [22:42:03] * howardgrigg has joined #silverstripe
1219: [22:42:21] * EasyCo has joined #silverstripe
1220: [22:42:27] <EasyCo> Morning gents
1221: [22:43:27] <zippy__> morn
1222: [22:43:32] <ss23> moin
1223: [22:43:39] <ss23> I hope Pyro got home okay :O
1224: [22:43:42] <ss23> He didn't leave till after midnight
1225: [22:44:07] <Shrike_Finland> zippy__: yep, image is dataobject which is in childpages gridfield
1226: [22:44:28] <Shrike_Finland> EasyCo: good night, I would say
1227: [22:46:00] <ss23> https://twitter.com/kiwicon/status/360127337905418240/photo/1 ahahaha
1228: [22:46:45] * howardgrigg quit (Ping timeout: 268 seconds)
1229: [22:47:50] <Shrike_Finland> zippy__: problem is in here: <a class="pull-left" href="$Link">
1230: [22:48:23] <zippy__> where do you want the link to go?
1231: [22:48:34] <Shrike_Finland> to the child page, not in the image
1232: [22:48:48] <zippy__> and the child parent is ImageGallery
1233: [22:49:00] <Shrike_Finland> nope
1234: [22:49:09] <Shrike_Finland> it is dataobject
1235: [22:49:22] <simon_w> Like I said, no Link method :p
1236: [22:49:28] * SphereSilverNL quit (Remote host closed the connection)
1237: [22:49:28] <simon_w> ImageGallery needs a Link()
1238: [22:49:29] <Shrike_Finland> yep :)
1239: [22:49:34] <Colin[pi]> morning all
1240: [22:49:57] <ss23> I feel good
1241: [22:50:05] <ss23> Getting into work at the same time as everyone on IRC says hi
1242: [22:50:05] <ss23> :D
1243: [22:51:11] <zippy__> Shrike_Finland: Sorry, I mean the child page is called ImageGallery - and that is a DataObject
1244: [22:51:31] <zippy__> and that is a question
1245: [22:52:13] <Shrike_Finland> Not that either :)
1246: [22:53:23] <Colin[pi]> I feel bad... drank too much at the meetup
1247: [22:53:58] <simon_w> All on SS's tab, right?
1248: [22:54:08] <Colin[pi]> indeed it was
1249: [22:54:09] <Colin[pi]> :D
1250: [22:54:33] <Shrike_Finland> zippy__: Holder page (called SimpleProductHolder), Childpage under holder page (SimpleProductPage), image gallery is dataobject (SimpleProductImage with special function called ImageGallery) which is controlled on childpage (SimpleProductPage).
1251: [22:55:31] <zippy__> Colin[pi]: Many people?
1252: [22:55:40] <Shrike_Finland> zippy__: I pull the image from SimpleProductImage page to SimpleProductHolder
1253: [22:56:12] <Shrike_Finland> sorry, from SimpleProductImage dataobject
1254: [22:57:06] <catcher> Can I write a full object to a restfulserver with restfulservice?
1255: [23:00:22] <Colin[pi]> zippy__: only 5 at the peak
1256: [23:02:21] <simon_w> Ooh, that's more than the 3 on the list!
1257: [23:03:10] <zippy__> Hmm is the GridField cached in the CMS? I got this weird issue, where the contents of the items dont show in the list but the footer of the grid says View 1-1 of 1
1258: [23:03:20] <zippy__> If I push the code to production it all shows up fine
1259: [23:03:26] <Colin[pi]> simon_w: yeah there was a guy from the competition (all friends at the table) and met the CTO for the UK Govt
1260: [23:11:06] <Colin[pi]> ss23 did you catch up with pyro?
1261: [23:11:45] <Shrike_Finland> Hmm, I could make the link work also with $Up.Up.Link - is this preferred way or should I just write the function?
1262: [23:13:19] <Colin[pi]> Up.Up. seems a bit clumsy, I'd prolly write a function
1263: [23:14:05] * guci0 quit (Ping timeout: 250 seconds)
1264: [23:14:34] <Shrike_Finland> ok
1265: [23:16:22] * spronk has joined #silverstripe
1266: [23:19:23] <zippy__> Ah my issue was the user I was logged in the CMS as didn't have full CMS permissions. So when viewing the GridField it should show a count of how many there were, but not show them due no canView() permissions
1267: [23:19:34] <zippy__> *it would show a count
1268: [23:22:14] <simon_w> And fixing that is hard
1269: [23:23:41] * joelpittet quit (Remote host closed the connection)
1270: [23:23:51] <zippy__> well, could just add a row saying "You dont have permissions to view this" like you get when you try and access a page you don't have
1271: [23:32:56] <ss23> It's hard to phrase things nicely when dealing with noobs sometimes
1272: [23:32:58] <ss23> Such an art
1273: [23:33:07] <irogue> ikr
1274: [23:33:15] <irogue> the art of support
1275: [23:33:37] <Colin[pi]> makes my eyebrow twitch
1276: [23:33:50] <simon_w> That's why we're going to be hiring our own version of ss23 :)
1277: [23:34:06] <irogue> call him ss31
1278: [23:34:09] <irogue> so you're up-to-date
1279: [23:34:59] <ss23> lol
1280: [23:35:50] <ss23> "Shelly Bridgeman's NZH column about being short of cash at the supermarket and having to choose between the Metro Mag and the Hummus gave her a new insight into how poor people must feel having to make hard decisions at the supermarket"
1281: [23:35:54] <ss23> loooool
1282: [23:40:10] <spronk> loooooool
1283: [23:40:37] <spronk> CANT AFFORD BOTH MY METRO MAG AND MY HUMMUS. FUCK ME, I'M POOR, RIGHT?
1284: [23:40:38] * catcher quit (Read error: Operation timed out)
1285: [23:41:00] <unsignedint> If its a choice between bread and rice, then you're poor
1286: [23:41:19] <ajmitch_> rice? luxury!
1287: [23:41:27] <spronk> bread? shit's expensive
1288: [23:41:30] <spronk> reduced to clear potatoes are where it's at
1289: [23:41:35] <unsignedint> *budget bread and budget rice
1290: [23:41:37] <guzzlefry> Is there any way to generate an ER diagram via SilverStripe?
1291: [23:41:40] <unsignedint> oh yeah and potatoes
1292: [23:41:46] <ajmitch_> don't even think about buying milk, coke is far cheaper
1293: [23:41:51] <spronk> heh
1294: [23:41:59] <unsignedint> ajmitch_: coke on your ceral in the morning?
1295: [23:42:00] <spronk> potatos are surprisingly good value if you buy them wth a few sprouts
1296: [23:42:08] <spronk> can get 5kg for <$1
1297: [23:42:09] <unsignedint> yeah and onions
1298: [23:42:12] <ajmitch_> unsignedint: coke with the leftover pizza
1299: [23:42:16] * micmania2 quit (Quit: Leaving)
1300: [23:42:17] <unsignedint> yum haha
1301: [23:42:18] <spronk> eat for every meal, winrar :P
1302: [23:42:30] <spronk> ...yeah, fuck being a student again
1303: [23:42:34] <unsignedint> cook 'em, mash 'em, stick 'em in a stew
1304: [23:43:05] <unsignedint> 2 minute noodles were the shit when I was a student but they make me sick just thinking about them now
1305: [23:43:59] * guzzlefry guesses no. :P
1306: [23:44:01] <simon_w> I just wasn't a poor student :p
1307: [23:44:17] <spronk> i wasn't a poor student, i just tired to save as much as possiblke
1308: [23:44:28] <spronk> managed to get food down to <$1/meal
1309: [23:44:37] <spronk> decided that shit wasn't worth it
1310: [23:45:20] <unsignedint> guzzlefry: I dont think so, use a data modelling tool that can look at a SQL database, I think MySQL Workbench can do it for MySQL databases
1311: [23:45:27] <irogue> [11:41] <unsignedint> ajmitch_: coke on your ceral in the morning?
1312: [23:45:30] <irogue> no, use Canterbury Cream
1313: [23:45:39] <irogue> it's slightly more expensive than milk, but you have a much better morning
1314: [23:45:45] <unsignedint> hahaha
1315: [23:46:02] <guzzlefry> unsignedint: I don't think that will work, unless SilverStripe throws in foreign key constraints.
1316: [23:46:03] <unsignedint> I used to put water on my cereal when I couldnt afford milk
1317: [23:46:14] <unsignedint> guzzlefry: true. I dont know then
1318: [23:46:15] <spronk> fuck water on most cereals is disgusting
1319: [23:46:29] <unsignedint> spronk: when you have no money its better than eating it dry
1320: [23:46:41] <irogue> ^ esp if weet-bix
1321: [23:46:48] <irogue> which is all you should be eating if poor
1322: [23:47:09] <spronk> yeah
1323: [23:47:10] <spronk> well
1324: [23:47:13] <unsignedint> not sanitarium weetbix though, thats for royalty
1325: [23:47:17] <spronk> probably more home brand wheat biscuits, tb h
1326: [23:47:20] <spronk> :D
1327: [23:47:20] <irogue> a $5 box of no-name wheat biscuits is like a months worth
1328: [23:47:30] <spronk> also, 50c budget cans of baked beans are pretty good meals, too
1329: [23:47:42] <unsignedint> yep but never buy their spaghetti, its shit
1330: [23:47:43] <irogue> ew, baked beans. i did that with spaghetti tho
1331: [23:47:51] <simon_w> Eww, budget baked beans
1332: [23:47:57] <irogue> ever had Gilmours Spaghetti?
1333: [23:48:00] * irogue shudders
1334: [23:48:04] <unsignedint> baked beans are the shit though, heat up a canful and add to toast
1335: [23:48:24] <unsignedint> throw in some fried eggs too if you can afford them that week
1336: [23:48:28] <irogue> it's bright pink
1337: [23:48:33] <irogue> not red, bright pink
1338: [23:48:34] <unsignedint> pink slime?
1339: [23:48:50] <simon_w> I do that to my rice every so often!
1340: [23:49:18] * zippy__ quit (Ping timeout: 246 seconds)
1341: [23:49:58] <Shrike_Finland> jsus, I'm hungry...
1342: [23:50:36] <simon_w> So eat?
1343: [23:50:50] <simon_w> I keep a bag of kiwifruit on my desk for that
1344: [23:51:05] <unsignedint> I keep a packet of jet airplanes
1345: [23:51:26] * micahsheets quit (Ping timeout: 240 seconds)
1346: [23:51:37] <unsignedint> also an apple and some mandarins but my apple was shit today so I binned it
1347: [23:51:42] <Shrike_Finland> I think it a bit late for that...
1348: [23:52:22] * AlphaCactus quit (Ping timeout: 256 seconds)
1349: [23:52:23] <Shrike_Finland> But reading a thread where people talk about food...
1350: [23:52:25] <irogue> Shrike_Finland died already, so its too late to eat
1351: [23:52:35] <irogue> speaking of food
1352: [23:52:37] <irogue> almost lunchtime
1353: [23:52:44] <unsignedint> yep
1354: [23:52:53] * unsignedint is having bacon and egg pie that his girlfriend made
1355: [23:52:53] <irogue> i have leftover chicken chop suey
1356: [23:52:54] <irogue> ^_^
1357: [23:52:59] <unsignedint> yum!
1358: [23:53:26] * AlphaCactus has joined #silverstripe
1359: [23:53:41] <Shrike_Finland> :)
1360: [23:54:35] <Shrike_Finland> Almost 3 am - time for bed
1361: [23:54:48] <Shrike_Finland> nite all!
1362: [23:55:01] <EasyCo> What's the difference between doing $gf = GridField::create() and $gf = new Gridfield();?
1363: [23:55:02] <unsignedint> ^ that explains a lot
1364: [23:55:04] <unsignedint> night!
1365: [23:55:12] <unsignedint> EasyCo: Chaining
1366: [23:55:23] <unsignedint> new GridField()->something() is a syntax error
1367: [23:55:37] <unsignedint> GridField::create()->something() is fine
1368: [23:55:42] <EasyCo> Is that pretty much the main reason for it?
1369: [23:55:50] <unsignedint> that I could find anyway
1370: [23:55:55] <unsignedint> PHP is dumb in that regard
1371: [23:56:15] <unsignedint> might want to ask simon_w for the actual reason if there is obe
1372: [23:56:17] <unsignedint> one*
1373: [23:56:53] <EasyCo> I was aware of the chaining but I seem to see those two used interchangeably in a lot of getCMSFields() {}
1374: [23:57:18] <simon_w> (new GridField())->something() is fine though
1375: [23:57:30] <simon_w> in PHP 5.4+
1376: [23:57:30] <unsignedint> oh really? learn something new every day
1377: [23:57:48] <simon_w> The extra set of () is important
1378: [23:57:57] <EasyCo> Ugly though
1379: [23:59:05] <EasyCo> Comparing this line: https://github.com/unclecheese/silverstripe-event-calendar/blob/master/code/Calendar.php#L79
1380: [23:59:13] <EasyCo> To this line: https://github.com/unclecheese/silverstripe-event-calendar/blob/master/code/Calendar.php#L95
1381: [23:59:45] <EasyCo> Why use one instantiation technic over the other?

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