#silverstripe IRC Log

IRC log for 16 June 2013

All timestamps are in UTC.

1: [00:06:14] * webbower has joined #silverstripe
2: [00:07:52] <webbower> Having trouble with many-many relationships in ModelAdmin in 3.1.0 beta3. The GridField for the relation isn't displaying the existing entries of the related DO for me to link an existing. Is this a known bug in the beta?
3: [00:13:03] <webbower> Oh hey, look at that. It's an autocomplete. Nevermind
4: [00:48:40] <simon_w> willr_, yeah yeah, I'm back or something
5: [00:52:24] <ss23> :D
6: [01:02:08] * guzzlefry quit (Read error: Connection reset by peer)
7: [01:03:21] * guzzlefry has joined #silverstripe
8: [01:07:04] * webbower quit (Quit: webbower)
9: [01:12:26] * Hippieee quit (Quit: Leaving)
10: [01:16:22] * supernovah has joined #silverstripe
11: [01:17:18] * Marvanni quit ()
12: [01:20:55] * Hippieee has joined #silverstripe
13: [02:01:13] <supernovah> is ss at all popular on the larger market, outside of NZ btw?
14: [02:03:40] <willr_> supernovah not near Wordpress or Drupal at all
15: [02:03:58] <supernovah> what about cakephp
16: [02:05:09] <willr_> Well Cake is really a framework. SilverStripe has been known just for the CMS side of things, wasn't till 3.0 you could use it as just a framework
17: [02:05:25] <supernovah> Oh right
18: [02:05:30] <supernovah> The CMS is neat yeah
19: [02:07:42] <willr_> Still smaller than cake I'd assume.
20: [02:08:23] <willr_> but model is different, SilverStripe has corporate backing similar to how WP is these days.
21: [02:12:28] * gordon__ quit (Ping timeout: 252 seconds)
22: [02:13:38] <willr_> But defiantly has a much bigger presence in Australia and New Zealand.
23: [02:21:45] <ss23> willr_: Where do I buy something to prevent me from dying of wind and rain death
24: [02:21:59] <willr_> ss23 warehouse?
25: [02:22:26] <willr_> since you're on a budget :)
26: [02:22:48] <ss23> Does the warehouse have that kind of clothes?
27: [02:22:57] <ss23> I have enough money to buy something nice/good, willr_
28: [02:23:47] <simon_w> Kathmandu!
29: [02:24:07] <willr_> Then I'd probably go to willis street and Kathmandu, they have 2 stores there (an outlet store as well)
30: [02:24:38] <willr_> and gordons outdoor is like there as well so you'll find something
31: [02:25:18] <ss23> Oh that's right, someone else said kathmandu too
32: [02:25:25] <ss23> And what kind of thing do I want?
33: [02:25:42] <ss23> all I've owned normally is cheap sweatshirts from the warehouse and jeans basically
34: [02:25:48] <ss23> So I'm nooby when it comes to clothes
35: [02:27:18] <simon_w> waterproof, insulated windbreaker
36: [02:27:25] <willr_> ss23, you need a girlfriend - http://www.kathmandu.co.nz/mens/jackets.html Go and see what's on sale in the outlet store. I went for http://www.kathmandu.co.nz/mens/jackets/duck-down-jacket-v3-men-black.html and it's like a big sleeping bag :D
37: [02:27:37] <ss23> lol willr_, I won't disagree
38: [02:27:47] <ss23> Can I walk to work in the rain with that?
39: [02:28:16] <ss23> Also, is jacket better than big trenchcoat style thing?
40: [02:28:45] <simon_w> http://www.kathmandu.co.nz/mens/jackets/calvus-jacket-men-black.html looks like mine
41: [02:28:59] <willr_> It's water proof but you'd rather go for lighter weight to keep dry.
42: [02:29:06] <supernovah> Hah
43: [02:29:13] <supernovah> Most of my clothes are Kathmandu ;) good bran
44: [02:29:15] <supernovah> d
45: [02:29:35] <supernovah> But damn that's an expensive jacket wow
46: [02:29:37] <ss23> but trenchcoat helps keep my pants dry right? Or do I need new/different pants?
47: [02:30:05] <willr_> ss23 most people do the normal thing and pay for the bus.
48: [02:30:14] <ss23> mmk
49: [02:30:24] <ss23> It's not sheletered walking to the bus though
50: [02:30:24] <ss23> :<
51: [02:30:40] <supernovah> I haven't bussed in about 5 years (besides when I travelled to Russia in 2010). Walk around 7km a day.
52: [02:30:55] <supernovah> You dry off
53: [02:30:56] <ss23> If I could just use an umbrella here...
54: [02:31:31] <willr_> Course you dry off, sadly iPhones and laptops are less keen on getting saturated.
55: [02:31:33] <simon_w> ss23, if an umbrella worked, you wouldn't need to worry about your pants getting wet
56: [02:31:55] <ss23> ik
57: [02:31:57] <ss23> lol willr_
58: [02:31:59] <ss23> I have none of those
59: [02:31:59] <ss23> :D
60: [02:32:35] <simon_w> willr_, my phone handled the rain fine :p
61: [02:33:01] <ss23> mmk
62: [02:33:04] <simon_w> Being dropped too many times, less so
63: [02:33:23] <simon_w> ss23, most of the time, a jacket's fine. If it's not, you'll probably want to be bussing
64: [02:33:59] <ss23> mmk
65: [02:34:00] <supernovah> Most bags are waterproof aren't they
66: [02:34:16] <ss23> Next, what is the difference between normal and outlet store?
67: [02:35:33] <simon_w> supernovah, nope, just resistant
68: [02:35:42] <simon_w> resistant doesn't fare too well here
69: [02:36:23] <willr_> ss23 can be up to 60% cheaper, but it's like odds and ends not the whole range
70: [02:36:50] <willr_> go there first and you could save a bit if you stumble on something you like
71: [02:37:16] <ss23> kk
72: [02:37:27] <willr_> Woot iOS7 beta
73: [02:37:38] <willr_> 4th install lucky
74: [02:37:49] * priithansen quit (Quit: priithansen)
75: [02:37:50] <ss23> Could just install a real phone OS
76: [02:37:50] <ss23> o/
77: [02:38:46] <willr_> ss23 I hope you realise SS is Mac only :)
78: [02:39:41] <ss23> Bootcamp right?
79: [02:39:42] <ss23> RIGHT?
80: [02:40:27] <simon_w> Hmm, tempted to install Mavericks
81: [02:41:04] <ss23> If no bootcamp yet, I'll just have to break their Windows virginity and demand it!
82: [02:41:47] <simon_w> Have fun with that. They even got ajoneil to stop using Windows
83: [02:42:40] <ss23> My last work made me use OSX for ~2 months before I was able to get a Windows machine...
84: [02:42:43] <ss23> 2 months of Hell
85: [02:43:14] * supernovah_ has joined #silverstripe
86: [02:44:25] * supernovah quit (Ping timeout: 256 seconds)
87: [02:44:35] * supernovah_ is now known as supernovah
88: [02:45:01] * simon_w wonders how long ss23 will actually last at SS then
89: [02:46:19] <ss23> Well I'm hoping that there wouldn't be a strict requirement against Windows, but if there is, not long
90: [02:46:38] <ss23> I'm not particularly fine with forcing a particular operating system on users no matter waht OS it is
91: [02:51:33] <simon_w> I know they've moved away from BYOD for the development machines
92: [02:51:47] <supernovah> I run it off windows
93: [02:51:49] <supernovah> with xampp
94: [02:52:10] <simon_w> supernovah, this is the company, not the product
95: [02:52:15] <supernovah> oh
96: [02:52:30] <supernovah> i was going to say... the product isn't really platform dependent lol.
97: [02:54:54] * supernovah_ has joined #silverstripe
98: [02:58:35] * supernovah quit (Ping timeout: 256 seconds)
99: [02:58:39] * supernovah_ is now known as supernovah
100: [03:01:11] * Hippieeee has joined #silverstripe
101: [03:04:25] * Hippieee quit (Ping timeout: 260 seconds)
102: [03:09:14] <FrozenFire> supernovah, Regarding your earlier question, it does have a relatively small following in North America
103: [03:09:34] <FrozenFire> I used it extensively in my last job, because we did lots of custom CMS-ish sites
104: [03:09:56] <FrozenFire> Might use it a bit in my new job as well, though not nearly as much because we do very high performance stuff.
105: [03:32:22] * zippy__ has joined #silverstripe
106: [03:47:34] * zippy__ quit (Quit: zippy__)
107: [03:51:28] * willr_ quit (Quit: willr_)
108: [03:52:42] <supernovah> oh right
109: [03:59:39] * cloph has joined #silverstripe
110: [04:01:03] * cloph_away quit (Ping timeout: 252 seconds)
111: [04:02:20] * Peavers quit (Ping timeout: 240 seconds)
112: [04:02:40] * Peavers has joined #silverstripe
113: [04:07:50] <supernovah> And you're American I'm guessing.
114: [04:32:15] * spronk2 has joined #silverstripe
115: [04:32:37] <spronk2> anyone know how to make virtual pages within virtual pages?
116: [04:32:47] <spronk2> specifically, where the target parent has allowed_children limits
117: [04:34:59] <spronk2> also, anyone know how to get 3.1b3 to use white background for PaddedImage? 3.0 is white but 3.1 is black
118: [04:39:09] <FrozenFire> supernovah, Canadian
119: [04:39:17] <FrozenFire> Though my employers are typically American
120: [04:39:20] <supernovah> Right
121: [04:39:39] <FrozenFire> Current employer is more of an international entity, though
122: [04:39:56] <FrozenFire> I don't think any two of us employees are from the same country. :P
123: [04:42:17] * spronk2 quit (Quit: spronk2)
124: [04:44:58] * spronk2 has joined #silverstripe
125: [04:46:08] <supernovah> I wish I was employed lol
126: [04:46:14] <spronk2> hrmm
127: [04:46:21] <supernovah> To be honest I haven't exactly looked for a job
128: [04:46:26] <supernovah> I'm still a student spronk2
129: [04:47:00] <spronk2> lol
130: [04:47:53] <FrozenFire> IMO, there's never been a better time to be a PHP programmer.
131: [04:48:05] <supernovah> For me it's just been a hobby really
132: [04:48:19] <supernovah> My first big site was this http://team-uprising.net/
133: [04:48:24] <FrozenFire> If you're even mildly competent, you're practically guaranteed to be employed, if you try.
134: [04:48:25] <supernovah> But that was just for friends
135: [04:48:37] <supernovah> I designed the cms entirely myself
136: [04:48:39] <supernovah> ^_^
137: [04:48:58] <FrozenFire> :P One of the worst things ever to do is write your own CMS
138: [04:49:01] <FrozenFire> Or framework.
139: [04:49:04] <supernovah> Lol
140: [04:49:06] <FrozenFire> Unless you're very experienced.
141: [04:49:07] <supernovah> I did it to learn the language
142: [04:49:11] <supernovah> PHP
143: [04:49:30] <FrozenFire> Fair enough, though the general rule is to learn by doing it, but never ever put it into production
144: [04:49:46] <supernovah> lol
145: [04:49:50] <FrozenFire> Reinvented wheels are often covered in bumps.
146: [04:50:23] <supernovah> Previously I was leading a team in Indonesia and they wanted to use cakePHP
147: [04:50:36] <supernovah> This is before I had any php knowledge, and I learned to hate it unfortunately
148: [04:50:42] <FrozenFire> :P
149: [04:50:50] <supernovah> So yeah...
150: [04:50:51] <FrozenFire> PHP is a beautiful language when used by those who understand it.
151: [04:51:00] <FrozenFire> I'm primarily doing ZF2 work nowadays.
152: [04:51:05] <FrozenFire> It's gorgeous.
153: [04:51:07] <supernovah> Zend?
154: [04:51:11] <FrozenFire> Yeah
155: [04:51:34] <FrozenFire> Not for inexperienced developers, mind you.
156: [04:51:35] <supernovah> If you want performance though, aren't virtually all frameworkds going to be computationally wasteful?
157: [04:51:42] <FrozenFire> Not at all
158: [04:51:53] <supernovah> I appreciate there's caching but still...
159: [04:51:55] <FrozenFire> In fact, writing "pure PHP" is usually the worst performance you'll get.
160: [04:52:21] <supernovah> mm
161: [04:52:47] <FrozenFire> Simply put, you suck (so do I), and you're not going to write a better implementation than one developed with performance in mind by experienced developers.
162: [04:53:00] <spronk2> zf?
163: [04:53:08] <spronk2> GORGEOUS?!
164: [04:53:21] <FrozenFire> Sure, there's "leaky abstraction", but one should take leaky abstraction into consideration except as a last concern.
165: [04:53:25] <FrozenFire> spronk, ZF2
166: [04:54:01] <supernovah> Well I have rather extensive knowledge of smaller architectures such as the AVR and smaller chips which are incredibly tight on their resources
167: [04:54:05] <spronk2> i dno
168: [04:54:06] <FrozenFire> By gorgeous I don't mean in the same way SS is gorgeous
169: [04:54:08] <supernovah> So I unerstand how to write efficient code
170: [04:54:16] <FrozenFire> SS is gorgeous in that it's extremely fast to write code that works.
171: [04:54:18] <spronk2> i wouldn't touch zf2 with a barge pole, myself :P
172: [04:54:30] <FrozenFire> Though it's slow as hell in terms of implementation.
173: [04:54:34] <supernovah> Anyone else in Auckland
174: [04:54:36] <supernovah> this weather wow
175: [04:54:56] <FrozenFire> ZF2 is gorgeous in that the implementation is extraordinarily elegant.
176: [04:55:07] <FrozenFire> If you're competent, that is. :P
177: [04:55:15] <FrozenFire> It's a scalpel
178: [04:55:44] <FrozenFire> SS is a chainsaw.
179: [04:55:44] <FrozenFire> :P
180: [04:55:52] * Peavers quit (Ping timeout: 264 seconds)
181: [04:56:17] <supernovah> I still can't believe I'm connected to FreeNode lol
182: [04:56:24] <supernovah> I would have been like 8 when I last did
183: [04:56:33] <FrozenFire> Though with Doctrine and twig, the only thing missing from ZF2 in terms of fast turn-around on development is a decent CMS
184: [04:56:39] <FrozenFire> Which is one of the only reasons I remain here. :P
185: [04:57:31] * Peavers has joined #silverstripe
186: [04:59:05] * FrozenFire sets down a shot glass and a bottle of Schnapps
187: [04:59:08] <FrozenFire> Time to get red-faced.
188: [04:59:09] <FrozenFire> :P
189: [04:59:19] <supernovah> Lol on a Sunday?
190: [04:59:46] <supernovah> I went to the reddit meetup last night and my body still aches
191: [04:59:57] <FrozenFire> Saturday for us on the other side
192: [05:00:08] <supernovah> Oh right
193: [05:00:52] <FrozenFire> Also, what could possibly make you ache from a reddit meetup?
194: [05:00:55] <FrozenFire> Ponies?
195: [05:02:34] <FrozenFire> Mmmm... bitter
196: [05:02:55] <FrozenFire> Dr. McGillicuddy's Intense Lemon Drop Schnapps
197: [05:02:55] <FrozenFire> :P
198: [05:06:49] <spronk2> i dno
199: [05:07:03] <spronk2> zf2 is full of magic strings
200: [05:07:47] <FrozenFire> Not quite sure how
201: [05:07:55] <FrozenFire> The config is a bit of a mess, I agree
202: [05:08:09] <FrozenFire> But that's a minimal concern
203: [05:08:31] <FrozenFire> Largely that way for caching reasons
204: [05:08:35] <spronk2> all arguments are arrays of strings
205: [05:08:45] <spronk2> its naaaasty
206: [05:08:54] <spronk2> and lots of very dodgy looking code
207: [05:08:55] <FrozenFire> Eh, not really
208: [05:09:12] <FrozenFire> I think you misunderstand it a bit
209: [05:09:17] <FrozenFire> ZF2 takes DI to the extreme.
210: [05:09:34] <FrozenFire> You're supposed to use factories heavily
211: [05:09:57] <spronk2> yeah
212: [05:10:13] <spronk2> but instead of using things like concrete Options objects
213: [05:10:23] <spronk2> its all
214: [05:10:31] <spronk2> 'someconfig' => 'somedodgystringvalue'
215: [05:10:35] <FrozenFire> I've actually had this conversation with EvanDotPro, who could be said to have written ZF2 :P
216: [05:10:37] <FrozenFire> He's my boss
217: [05:11:17] <FrozenFire> He agrees that having a way to construct configuration programmatically would be ideal
218: [05:11:29] <FrozenFire> However, someone has yet to come up with a way to do that
219: [05:11:35] <FrozenFire> Even though it's been discussed at length
220: [05:11:36] <spronk2> bleghhh
221: [05:11:41] <spronk2> i can't stand zf
222: [05:11:56] <FrozenFire> ZF2 is all about performance
223: [05:12:05] <spronk2> but its SLOW
224: [05:12:06] <spronk2> :P
225: [05:12:10] <FrozenFire> o.O
226: [05:12:15] <FrozenFire> I've never seen anything faster.
227: [05:12:16] <spronk2> its one of the slower PHP frameworks
228: [05:12:21] <spronk2> either way
229: [05:12:23] <FrozenFire> O.o
230: [05:12:29] <spronk2> that's a pretty silly goal for a language like PHP
231: [05:12:38] <spronk2> doesn't matter how much you optimise you're never going to get speed
232: [05:12:44] <spronk2> un;ess you go c exts
233: [05:12:57] <FrozenFire> Blegh, that's where the conversation ends with me. Nobody who takes that tact knows anything about the subject. :P
234: [05:13:11] <spronk2> haha
235: [05:13:13] <spronk2> nein
236: [05:14:07] <FrozenFire> Our stuff handles 40-million-odd transactions per month.
237: [05:14:11] <FrozenFire> And it's written using ZF1. :P
238: [05:14:29] <FrozenFire> And node.js
239: [05:14:37] <spronk2> there you go
240: [05:14:39] <FrozenFire> But everything eventually goes through the PHP stuff
241: [05:14:39] <spronk2> node.js
242: [05:14:51] <FrozenFire> node.js is used only for simple protocol stuff
243: [05:14:53] <FrozenFire> SMPP
244: [05:15:30] <FrozenFire> I've no doubt that there are different tools for different jobs.
245: [05:15:38] <FrozenFire> But saying that PHP cannot be fast is thoroughly ignorant.
246: [05:15:59] <spronk2> php is slow, end of story
247: [05:16:12] <spronk2> if you need logic execution speed, use something else
248: [05:16:23] <FrozenFire> PHP is really quite fast. And, frankly, I can probably speak better on that topic than you. :P
249: [05:16:35] <spronk2> it is sloooooww
250: [05:16:39] <spronk2> the internals are nasty
251: [05:16:39] <guzzlefry> What are we comparing PHP to? >_>
252: [05:16:44] <spronk2> almost anything
253: [05:16:48] <FrozenFire> He's comparing it to hand-coded C
254: [05:16:51] <spronk2> not really
255: [05:16:54] <FrozenFire> Optimized for a given task
256: [05:16:56] <spronk2> i'm comparing it to anything
257: [05:17:04] <FrozenFire> Then you're a derp
258: [05:17:06] <spronk2> python, js, java
259: [05:17:31] <guzzlefry> also, we kind of have to talk about implementations of PHP
260: [05:17:34] <spronk2> there are very few applications where PHP will perform within the same OOM as js, java, go, c/c++
261: [05:17:55] <spronk2> unless you're comparing php's native libs, which are just c
262: [05:18:14] <FrozenFire> Unless you're ready to provide benchmarks of the same tasks implemented by competent developers in each language, you're talking out of your ass.
263: [05:18:37] <spronk2> i don't need to, others already have
264: [05:18:44] <FrozenFire> Most benchmarks people will pull out are 10000 iterations of echo "Hello world!"
265: [05:18:45] <guzzlefry> There's that giant benchmark website.
266: [05:18:48] <guzzlefry> By...Slackware?
267: [05:19:00] <FrozenFire> Or some other unrealistic task
268: [05:19:14] <spronk2> FrozenFire: if you write your *business logic* in php, it's going to be slower than the same business logic in javascript+v8, or java, or c++, or go
269: [05:19:41] <guzzlefry> http://benchmarksgame.alioth.debian.org/
270: [05:19:42] <FrozenFire> And writing the same business logic in those other languages will cost you far more in developer time than it would in PHP
271: [05:19:43] <spronk2> but the point i'm making is that in many applications, logic performance is an insignificant factor compared to the underlying IO
272: [05:19:53] <FrozenFire> And will probably fail far more often.
273: [05:19:54] <spronk2> FrozenFire: not really
274: [05:20:01] <FrozenFire> Yes, really.
275: [05:20:17] <spronk2> data structures, algorithms, simple stuff like looping - it's all unoptimised and SLOW in php
276: [05:20:37] <spronk2> the fact that the only data structure available is effectly a bastardised hash map is ridiculous for performance
277: [05:20:46] <FrozenFire> Uhh
278: [05:20:55] <FrozenFire> Wat
279: [05:21:05] <spronk2> array
280: [05:21:12] <FrozenFire> I'm aware of what you're talking about.
281: [05:21:27] <FrozenFire> So... we don't have classes or any of the scalar types?
282: [05:21:47] <FrozenFire> Anyways, I hate this conversation.
283: [05:21:48] <spronk2> ya but look at PHP's implementations of these things
284: [05:21:49] <FrozenFire> I'm finished. :P
285: [05:21:51] <spronk2> :P
286: [05:22:02] <FrozenFire> Impossible to have, because people will consistently bullshit.
287: [05:22:04] <spronk2> ^^ my main issue with ZF and "performance" is that it doesn't actually matter
288: [05:24:00] <spronk2> anyway
289: [05:24:03] <guzzlefry> well
290: [05:24:06] <spronk2> the new hotness for performance and php frameworks is Phalcon
291: [05:24:13] <guzzlefry> at least it's faster than Ruby for the most part http://benchmarksgame.alioth.debian.org/u32/benchmark.php?test=all&lang=php&lang2=yarv&data=u32 :P
292: [05:24:29] <spronk2> ruby, the world's slowest mainstream language :P
293: [05:24:44] <guzzlefry> not when it's on rails! zooom! :P
294: [05:24:48] <spronk2> kekek
295: [05:25:17] <FrozenFire> Switch to Haskell
296: [05:25:29] <spronk2> SCALAZ!
297: [05:25:36] <ss23> http://url.com/?flush=1 -> [Notice] Undefined variable: _SESSION
298: [05:25:45] <simon_w> Woo, our two resident trolls trying to troll each other!
299: [05:25:45] <spronk2> eek
300: [05:25:50] <ss23> how 2 fix
301: [05:25:54] * spronk2 <3 trollz
302: [05:25:55] <ss23> This looks like an old 2.X install
303: [05:26:11] <spronk2> ss23: your php does actually have session support… right?
304: [05:26:13] <simon_w> ss23, stop using $_SESSION
305: [05:26:21] <ss23> *me*? This is core built in Silverstripe
306: [05:26:24] <ss23> Not my code
307: [05:26:32] <ss23> spronk2: it does
308: [05:26:35] <spronk2> can you even compile php without sessions?!
309: [05:26:36] <ss23> Deprecated: Function ereg_replace() is deprecated in /home/irotorua/public_html/sapphire/core/ManifestBuilder.php on line 257
310: [05:26:38] <FrozenFire> Yes
311: [05:26:40] <ss23> l33t sauce
312: [05:26:48] <FrozenFire> You can compile PHP without just about anything
313: [05:26:57] <ss23> Lemme try find the admin login for this...
314: [05:27:29] <FrozenFire> Pretty sure you can do crazy shit like --disable-standard at compile-time
315: [05:27:41] <guzzlefry> 0.o
316: [05:39:08] <spronk2> haha
317: [05:39:37] <spronk2> FrozenFire: out of interest, what are your fav prof langs?
318: [05:39:39] <spronk2> prog*
319: [05:39:43] <ss23> Anyway, got it. Had to go out of dev mode since dev mode would break flushing cause SS too old
320: [05:39:46] <ss23> :<
321: [05:39:54] <spronk2> :S
322: [05:41:30] <spronk2> simon_w: you got any ideas about my virtual page problem? virtual page within a virtual page complains about Page not being in the parent's allowed_children - problem is, when it's first created it doesn't have a target page type to test with, so falls back to SiteTree/Page
323: [05:42:39] <simon_w> The allowed children is just the allowed children of the page type it's cloning from
324: [05:43:18] <spronk2> ya, so parent says allowed_children is ProductCategory
325: [05:43:33] <spronk2> but when you create a virtual page within that, you can't create it, because validate() runs before it saves it without a type
326: [05:43:57] <spronk2> so it checks SiteTree against ProductCategory and fails, before you can specify what page to clone from for the child VP
327: [05:44:20] <spronk2> short of sticking *SiteTree or something in the list of allowed_children I can't see any solutions
328: [05:48:35] <spronk2> https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/model/SiteTree.php#L1530
329: [05:48:57] <spronk2> teams up with https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/model/VirtualPage.php#L71
330: [05:49:09] <spronk2> and causes death
331: [05:53:08] <spronk2> i think it needs a conditional in there - i.e. if(!exists()) { // ignore checks }
332: [06:02:24] <spronk2> hmm
333: [06:02:25] <spronk2> that doesn't work
334: [06:02:36] <spronk2> it lets you create the initial page to set a type, but still fails the type checks on save
335: [06:10:36] <supernovah> Why would you want to compile your own php engine?
336: [06:13:07] <spronk2> perhaps you want some specific support for libs
337: [06:13:14] <spronk2> most distrosh ave a custom compile set
338: [06:25:49] * gumble has joined #silverstripe
339: [06:33:48] <spronk2> oh man
340: [06:34:09] <spronk2> when xdebug has the ability to go back instructions i'm gonna be solo happy
341: [06:34:12] <spronk2> sooo happy*\
342: [06:36:07] <simon_w> Does any debugger?
343: [06:36:30] <simon_w> Side effects everywhere!
344: [06:47:35] <spronk2> i know :(
345: [06:47:42] <spronk2> but dear god, would that be awesome
346: [06:47:55] <spronk2> it seems like in a closed environment it should be possible
347: [06:48:01] <spronk2> hmm
348: [06:48:14] <spronk2> why isn't this writing the virtual page copycontentfromid...
349: [06:52:07] <spronk2> simon_w: are virtual pages not supposed to be children of virtualpages?
350: [06:53:52] <simon_w> Is the page type of the page the child virtual page copies allowed under the page type of the parent virtual page?
351: [06:56:23] <spronk2> yes
352: [06:56:26] <spronk2> but the point is
353: [06:56:37] <spronk2> you can't set which page type the child page should copy until you've first created one without a page type
354: [06:57:13] <spronk2> so you can never actually create the sub virtual page
355: [06:57:30] <spronk2> it seems like a bug, but then there aren't really any docs on whether virtual pages should support this or not
356: [07:04:27] <spronk2> yeah
357: [07:04:45] <spronk2> if you skip the check in SiteTree for allowed_children first time around, you can put the checks back in and edit the virtual page with no trouble
358: [07:06:22] <gumble> how do I do: function index(){if($var){render this render that}else{render normally}}
359: [07:08:50] <simon_w> gumble, return array() to render normally
360: [07:11:27] <gumble> thanks simon_w
361: [07:14:13] * robert___ has joined #silverstripe
362: [07:14:14] * robert___ quit (Changing host)
363: [07:14:14] * robert___ has joined #silverstripe
364: [07:17:16] * robert_ quit (Ping timeout: 264 seconds)
365: [07:25:39] * Peavers quit (Ping timeout: 252 seconds)
366: [07:25:58] * Peavers has joined #silverstripe
367: [07:26:58] <spronk2> hmm
368: [07:27:03] <spronk2> part of the problem is the fact that it saves twice
369: [07:27:12] <spronk2> writeWithoutRecord(), then the form does its saveInto()
370: [07:47:14] <Shrike_Finland> Hi, what would be the easiest way to control subnav based on type of page parent type? I need to hide subnav, if parent page type is for example "holder".
371: [07:48:14] <spronk2> you can either put your subnav includes in Layout templates
372: [07:48:19] <spronk2> or you can use a conditional
373: [07:48:37] <spronk2> either <% with $Parent %> <% if $ClassName ==...
374: [07:49:10] <Shrike_Finland> Ok, let's test with that
375: [07:50:51] <Shrike_Finland> And if I have multiple different pagetypes that I want to check, can I use function what I have already done (it returns true or false based on ClassName)?
376: [07:55:09] <spronk2> ya
377: [07:55:26] <spronk2> or you can stick a funciton
378: [07:58:41] <gumble> how do I access a has_one from $page in the controller?
379: [07:59:10] * chillu has joined #silverstripe
380: [08:05:34] <spronk2> hm?
381: [08:05:37] <spronk2> HasOne() ?
382: [08:18:29] * Pyromanik__ has joined #silverstripe
383: [08:20:12] * zippy__ has joined #silverstripe
384: [08:33:48] <Pyromanik__> hey simon_w is back
385: [08:33:59] <spronk2> btw, FrozenFire, for some more trolling: http://www.ruilog.com/blog/view/b6f0e42cf705.html and http://systemsarchitect.net/performance-benchmark-of-popular-php-frameworks/ :P
386: [08:34:07] * guzzlefry quit (Quit: Leaving.)
387: [08:35:25] <simon_w> Pyromanik__, or am I?
388: [08:35:39] <spronk2> zf2 isn't just slow, it's glacially so ;)
389: [08:36:01] <Pyromanik__> lol glaciers
390: [08:36:28] <Pyromanik__> simon_w: no idea. You tell me.
391: [08:37:07] <simon_w> spronk2, shh, ZF2 is built by people who know what they're doing! (And making a web framework, not something designed for massive performance)
392: [08:37:27] <Pyromanik__> lolwtf, thought I had a dead pixel
393: [08:37:29] * spronk2 respectfully disagrees with the first part of that assessment
394: [08:37:30] <Pyromanik__> then it moved.
395: [08:37:41] <Pyromanik__> turns out it's a pixel sized bug.
396: [08:37:43] <spronk2> and i'm mainly trolling FrozenFire's statement that ZF2 is all about performance
397: [08:37:46] * spronk2 lols
398: [08:38:00] <simon_w> spronk2, and I was just trolling his reasoning :p
399: [08:38:09] <simon_w> Pyromanik__, well, holiday's technically over tomorrow
400: [08:38:28] <spronk2> snort
401: [08:38:36] <Pyromanik__> Figured as much. You're back in channel, which means you must be back in Wellington, which means holiday must be over.
402: [08:38:46] <simon_w> yeah
403: [08:38:52] <Pyromanik__> now
404: [08:38:55] <Pyromanik__> I had some cool ideas
405: [08:38:57] <simon_w> Watching WWDC videos now though :)
406: [08:39:03] <Pyromanik__> but now it's come time to do the actual work
407: [08:39:08] <Pyromanik__> and instead I'm just not.
408: [08:39:22] <Pyromanik__> f'n motivation. why u so difficult?
409: [08:39:25] <spronk2> lulz
410: [08:39:33] <spronk2> i found a mean little bug with nested virtual pages
411: [08:39:46] <spronk2> has put me off doing any work for the rest of the week
412: [08:39:47] <Pyromanik__> 3.1 so different
413: [08:39:47] <spronk2> :P
414: [08:39:58] <Pyromanik__> in that it's not really different but I didn't really learn all the differences yet
415: [08:40:20] <simon_w> I get to build a SAML authenticator and find out why our iOS app's crashing out on this one person's device tomorrow!
416: [08:40:25] <Pyromanik__> shit, I wish I could do no work for the rest of the week and still get paid.
417: [08:40:26] * simon_w guesses jall breaks
418: [08:40:37] <spronk2> oh my god
419: [08:40:38] <Pyromanik__> lulz
420: [08:40:38] <spronk2> SAML
421: [08:40:41] <spronk2> you poor soul
422: [08:40:42] <Pyromanik__> saml
423: [08:41:04] <spronk2> simon_w: have you got them to restart their device?
424: [08:41:23] <Pyromanik__> make sure they keep the power off for at least 10 seconds.
425: [08:41:30] <Pyromanik__> to ensure this get them to take the battery out.
426: [08:41:41] * Pyromanik__ trolls
427: [08:41:46] <simon_w> spronk2, help desk thing showed up just after I went on holiday. Haven't cared enough to look.
428: [08:41:54] <spronk2> ios has that nasty habit of just silently crashing when it runs out of memory
429: [08:42:01] <spronk2> this happens frequently in js-heavy web stuff
430: [08:42:14] <spronk2> and if its an ipad1, just forget about it
431: [08:42:17] <Pyromanik__> good reasons to avoid JS
432: [08:43:16] <Pyromanik__> and especially 'frameworks'
433: [08:43:22] <spronk2> yeah..
434: [08:43:23] <Pyromanik__> (jquery)
435: [08:43:36] <spronk2> i wish iOS would at least give a crash message
436: [08:43:37] <spronk2> like
437: [08:43:46] <spronk2> "you've run out of memory"
438: [08:43:54] <Pyromanik__> what, and let everyone know the product is inferior?
439: [08:43:55] <Pyromanik__> shit no.
440: [08:43:58] <Pyromanik__> bad press man.
441: [08:44:01] <spronk2> haha
442: [08:44:06] <spronk2> its better than just silently closing your app
443: [08:44:20] <Pyromanik__> just let everyone get confused then tell them they're holding it wrong.
444: [08:44:23] * gumble quit (Ping timeout: 248 seconds)
445: [08:44:26] <simon_w> Sadly, running out of memory is usually a sign that some other app is doing something it shouldn't
446: [08:44:33] <simon_w> Like, not freeing memory when told to
447: [08:44:34] <Pyromanik__> that way it's not your fault!
448: [08:44:36] <spronk2> on newer devices yeah
449: [08:44:42] <spronk2> on ipad1 it's just because it has no bloody ram
450: [08:44:47] <Pyromanik__> (FAULT, pun right thar)
451: [08:45:02] <spronk2> ipad1 256mb iirc
452: [08:45:05] <spronk2> nowhere near enough
453: [08:45:11] <Pyromanik__> no multitasking
454: [08:45:15] <simon_w> iPhone 3G, something like 32
455: [08:45:17] <Pyromanik__> no need to free rams
456: [08:45:21] <spronk2> lols
457: [08:45:25] <Pyromanik__> :P
458: [08:45:36] <simon_w> First version of our app worked perfectly on that
459: [08:45:46] <simon_w> Then my screen died and I gave up :p
460: [08:45:51] <spronk2> :(
461: [08:45:54] <spronk2> native app?
462: [08:45:57] <spronk2> or webview?
463: [08:45:58] <Pyromanik__> sounds like an uncommon problem.
464: [08:45:59] <simon_w> Ya
465: [08:46:13] <Pyromanik__> I've never heard of an iphone breaking it's screen before!
466: [08:46:19] <spronk2> looked into android?
467: [08:46:25] <simon_w> Ahahahahahahahaha
468: [08:46:27] <Pyromanik__> god no, don't do it.
469: [08:46:31] <spronk2> :(
470: [08:46:40] <spronk2> we're about to launch our iOS app
471: [08:46:40] <Pyromanik__> started out unified and good
472: [08:46:41] <Pyromanik__> but
473: [08:46:42] <Pyromanik__> now
474: [08:46:43] <Pyromanik__> nope
475: [08:46:46] <spronk2> just gotta get it approved and finalise icon :P
476: [08:46:55] <spronk2> have been looking into android
477: [08:47:00] <spronk2> seems like a bit of a minefield
478: [08:47:05] <Pyromanik__> it's a cluster F of javas
479: [08:47:10] <Pyromanik__> and versions
480: [08:47:12] <Pyromanik__> and hardware
481: [08:47:19] <spronk2> but then, trying to do web view html5-based apps on android seems even worse due to shitty android browser bugs
482: [08:47:22] <Pyromanik__> and propietary customisations
483: [08:47:27] <simon_w> Only weird thing I had during approval: can't mention pricing in way (including through links) for your product outside of the app store
484: [08:47:42] <Pyromanik__> spronk: you mean safari? :P
485: [08:47:57] <simon_w> Pyromanik__, Chrome :p
486: [08:48:01] <spronk2> heh
487: [08:48:02] <Pyromanik__> yeah, it is now
488: [08:48:04] <Pyromanik__> oh wait
489: [08:48:06] <Pyromanik__> bugs in chrome?
490: [08:48:08] <Pyromanik__> WELL I NEVER
491: [08:48:24] <simon_w> Pre Chrome, it wasn't even Safari
492: [08:48:26] <Pyromanik__> but chrome is made by the internet!
493: [08:48:29] <simon_w> Well, maybe Safari 2
494: [08:48:34] <Pyromanik__> YOU CANNOT GO AGAINST THE INTERNET
495: [08:48:43] <spronk2> but
496: [08:48:47] <spronk2> customers want androids :<
497: [08:48:48] * Pyromanik__ trolls about people confusing 'google' and the internet in general
498: [08:49:15] <simon_w> spronk2, target >=gingerbread
499: [08:49:20] <Pyromanik__> "what browser are you using?" ... "Google!" ... "-.-"
500: [08:49:31] <spronk2> hmm
501: [08:49:33] <spronk2> i guess we could
502: [08:49:44] <Pyromanik__> so I had this idea right simon_w
503: [08:49:46] <spronk2> but even gingerbread is a bit :S
504: [08:49:56] <Pyromanik__> where one could make a component for gridfield
505: [08:50:01] <Pyromanik__> where it edits a single relation
506: [08:50:06] <simon_w> Well yeah, but at least then you're guaranteed a semi-decent WebKit version to stick in a frame
507: [08:50:10] <spronk2> mm
508: [08:50:17] <Pyromanik__> but then it wouldn't be a grid
509: [08:50:26] <Pyromanik__> so now I'm having an identity dilemma
510: [08:50:57] <simon_w> Pyromanik__, talk to Zauberfisch^idle about what he's doing wrt. the layout side of things in GridField
511: [08:51:09] <spronk2> omg
512: [08:51:11] <Pyromanik__> spronk: did you found out where the burgerfuel will be yet?
513: [08:51:14] <spronk2> grid field browse button plzzzz
514: [08:51:23] <spronk2> Pyromanik__: it's the riccarton franchise territory that's been sold
515: [08:51:27] <Pyromanik__> simon_w: yeah I know. I asked him but his repo is untouched in that regard (on github)
516: [08:51:28] <spronk2> so… presumably somewhere near riccarton
517: [08:51:36] <spronk2> apparently the papanui franchise territory is currently under neg as wel
518: [08:51:41] <Pyromanik__> spronk: prolly just outside the mall
519: [08:52:04] <spronk2> they should've listened to me last year
520: [08:52:09] <spronk2> and bought the space BNZ bought where the old DSE was
521: [08:52:14] <Zauberfisch^idle> Pyromanik__ I have some minor experiments localy, but I have to admint developement is going forward rather slow
522: [08:52:14] <spronk2> would have been mean az
523: [08:52:28] <Pyromanik__> spronk: but then subject to mall hours
524: [08:52:42] <spronk2> not necessarily, starbucks is open late as
525: [08:52:43] <Pyromanik__> Zauberfisch^idle: yeah, I understand. See comment above about motivations
526: [08:52:56] <Pyromanik__> spronk: yeah, but not just hours right
527: [08:53:00] <spronk2> mm
528: [08:53:05] <spronk2> mall fees
529: [08:53:09] <spronk2> the big bucks
530: [08:53:09] <Pyromanik__> and control
531: [08:53:23] * joelpittet quit (Ping timeout: 252 seconds)
532: [08:53:28] <Pyromanik__> it's like being in a carrot up ringpiece subdivision
533: [08:53:34] <spronk2> heheh
534: [08:53:37] <spronk2> but god damn
535: [08:53:47] <Pyromanik__> but yeh they'd churn out the orders
536: [08:53:51] <Pyromanik__> fo' sho'
537: [08:53:51] <spronk2> i'm going to eat the fucking hell out of that burger fuel when it arrives
538: [08:53:57] <Pyromanik__> bio fuel
539: [08:54:03] <spronk2> apparently chch's wendy's was easily the best performing wendy's in the country after it opened
540: [08:54:10] <Pyromanik__> I have to say most others have disappoint when I tried recently
541: [08:54:16] <spronk2> :(
542: [08:54:17] <Pyromanik__> spronk: common
543: [08:54:25] <Pyromanik__> people are like "Hey new!"
544: [08:54:28] <spronk2> mm
545: [08:54:32] <spronk2> ugh
546: [08:54:39] <spronk2> i could go for a wendy's cheeseburger and frosty right now
547: [08:54:46] <spronk2> that's the good shit
548: [08:54:53] <Pyromanik__> but honestly the amount of dropkicks spewing out into hereford st really just put me off.
549: [08:54:58] * gumble has joined #silverstripe
550: [08:55:07] <spronk2> heh
551: [08:55:11] <spronk2> yeah
552: [08:55:15] <simon_w> My experience of Wendy's: undercooked burger patties and raw fries
553: [08:55:21] <spronk2> lines were way out the door when i tried them
554: [08:55:24] <Pyromanik__> 'raw' fries?
555: [08:55:38] <spronk2> dang
556: [08:55:46] <Pyromanik__> spronk: yeh. And never was there anyone in it that you DIDN'T want to call CYFS on.
557: [08:55:52] <spronk2> LOL mm
558: [08:56:10] <Pyromanik__> but fries come pre-cooked and just frozen
559: [08:56:15] <spronk2> having said that, first time I tried them they ran out of the cheaper burger buns, so my shitty little cheeseburger had the fancy bun with corn grits. was mint
560: [08:56:26] <Pyromanik__> rofl
561: [08:57:08] <spronk2> i'd still say they are a cut above maccas and bk
562: [08:57:10] <simon_w> Pyromanik__, tasted more like raw potato to me than just unheated
563: [08:57:14] <Pyromanik__> spronk2: nah.
564: [08:57:22] <Pyromanik__> simon_w: so like an apple?
565: [08:58:49] <simon_w> But nowhere near as tasty
566: [08:59:02] <spronk2> hmm
567: [08:59:05] <Pyromanik__> mm, sounds a bit like raw potatoes fo' sho'
568: [08:59:15] <Pyromanik__> someoen give me something cool and unboring to do
569: [08:59:21] <simon_w> Sleep
570: [08:59:31] <Pyromanik__> i'm bored and unmotivated to do any of the stuff that I should.
571: [08:59:38] <Pyromanik__> like fix gridfield.
572: [08:59:48] <spronk2> fix...
573: [08:59:50] <Pyromanik__> or make a better calendar module
574: [08:59:50] <simon_w> Write a SAML authenticator!
575: [09:00:05] <Pyromanik__> or learn a new subset of xml
576: [09:00:11] <spronk2> https://github.com/silverstripe/silverstripe-cms/issues/773
577: [09:00:40] <Pyromanik__> oh spronkey, you fool
578: [09:00:43] <spronk2> ?
579: [09:00:46] <Pyromanik__> you're just holding it wrong, gosh.
580: [09:00:51] <Pyromanik__> it's not silverstripe's fault.
581: [09:01:02] <spronk2> FUCK YOU FIX IT
582: [09:01:13] <Pyromanik__> deal with it, then pay for another newer version when it comes out.
583: [09:01:21] <spronk2> lol
584: [09:02:22] <Pyromanik__> spronk: just write a C++ cgi adaptor and get SS to call that instead.
585: [09:02:28] <spronk2> :(
586: [09:02:29] <Pyromanik__> seems like it'll be easier.
587: [09:02:47] <Pyromanik__> so
588: [09:02:48] * joelpittet has joined #silverstripe
589: [09:02:49] <spronk2> i provide a possible fix :P
590: [09:02:54] <Pyromanik__> explain to me the difference between
591: [09:03:01] <spronk2> ugh, also, no hockey today, turfs fucked
592: [09:03:13] <Pyromanik__> "Network transparent" and "Network capable"
593: [09:03:21] <spronk2> o_O
594: [09:03:21] <Pyromanik__> spronk: turf?
595: [09:03:49] <Pyromanik__> shit, prolly no game tomorrow either then :<
596: [09:04:01] <spronk2> yeah, all turfs flooded
597: [09:04:02] <spronk2> even marist
598: [09:04:05] <spronk2> (the fuck?)_
599: [09:04:06] <Pyromanik__> I scored the winning goal in our last game. I was mad stoked.
600: [09:04:11] <Pyromanik__> spronk2: bung drains
601: [09:04:15] <spronk2> http://www.canterburyhockey.org.nz/index.php?id=19&tx_ttnews[tt_news]=667&tx_ttnews[backPid]=15&cHash=942660309f
602: [09:04:16] <spronk2> mm
603: [09:04:19] <spronk2> haha nice
604: [09:04:19] <Pyromanik__> y'know, like the entire rest of the east side
605: [09:04:28] <Pyromanik__> or CHC in general
606: [09:04:31] <spronk2> it's a fucking water turf
607: [09:04:50] <Pyromanik__> I know
608: [09:05:08] <Pyromanik__> but all that water's gotta go somewhere
609: [09:06:02] <Pyromanik__> how to calm one's thoughts and design software./
610: [09:06:03] <Pyromanik__> ?
611: [09:06:33] <spronk2> beer
612: [09:06:50] <Pyromanik__> nup
613: [09:06:51] <Pyromanik__> well
614: [09:06:54] <Pyromanik__> sometimes
615: [09:07:07] <spronk2> hmm
616: [09:07:08] <Pyromanik__> doesn't tend to work well in the long run
617: [09:07:12] <spronk2> fix my bug!
618: [09:07:16] <Pyromanik__> perhaps I should get ritilin?
619: [09:07:26] <spronk2> you're not already on it/
620: [09:07:27] <spronk2> ?
621: [09:07:31] <Pyromanik__> nope
622: [09:07:59] <spronk2> well well
623: [09:08:06] <Pyromanik__> I have to take time off work and pay money to someone to try that
624: [09:08:09] <Pyromanik__> and then they might say no
625: [09:08:14] <Pyromanik__> and that'd just be awkward.
626: [09:09:07] <Pyromanik__> spronk: I have a dilemma
627: [09:09:10] <Pyromanik__> halp
628: [09:09:31] <Pyromanik__> My beard has become quite annoying. But if I shave it off my chin will be cold. What do?
629: [09:09:52] <spronk2> i have the same dilemma
630: [09:09:59] <spronk2> mainly because i dbf shaving
631: [09:10:01] <spronk2> cbf*
632: [09:10:04] <Pyromanik__> ikr
633: [09:10:10] <spronk2> solution is to get a trimmer
634: [09:10:13] <Pyromanik__> Mine has been going for months :<
635: [09:10:14] <spronk2> and have an alwaysbeard
636: [09:10:17] <Pyromanik__> I have a trimmer
637: [09:10:57] <Pyromanik__> But I'm also getting bored of the beard look
638: [09:11:13] <Pyromanik__> although someone told me I'm starting to look like Alan from the hangover
639: [09:11:44] <Pyromanik__> I'm not such a fan of Zack G. so I'm not sure if it's a compliment or an insult
640: [09:12:00] <spronk2> lol
641: [09:12:22] <Pyromanik__> I still haven't cut my hair either since you last saw me
642: [09:12:49] <spronk2> haha
643: [09:12:52] <spronk2> man
644: [09:13:18] <Pyromanik__> SPRONK
645: [09:13:20] <Pyromanik__> SPRONKEY
646: [09:13:22] <Pyromanik__> SPRONK2
647: [09:13:26] <Pyromanik__> ZOMG
648: [09:13:28] <Pyromanik__> OMG
649: [09:13:29] <Pyromanik__> http://www.youtube.com/watch?v=rFBZ2DY5qYA
650: [09:13:33] <Pyromanik__> HAHAHAH
651: [09:14:20] <spronk2> LOL
652: [09:14:33] <spronk2> oh man
653: [09:14:34] <spronk2> that's GOLD
654: [09:15:14] <Pyromanik__> GOLD AND GREEN amirite?
655: [09:15:15] <gumble> can I render a dataobject or convert it to a dataarray somehow to pass it back to the template? I mean that all the has_one's of the dataobject (e.g. Subtitle) can be used in template
656: [09:15:33] <Pyromanik__> urrr
657: [09:15:39] <Pyromanik__> just return the dataobject gumble
658: [09:15:42] <spronk2> mm
659: [09:15:47] * micmania1 has joined #silverstripe
660: [09:15:51] <Pyromanik__> or don't
661: [09:15:54] <gumble> thanks
662: [09:15:59] <Pyromanik__> $HasOneName.Subtitle
663: [09:16:00] <gumble> I will :D
664: [09:16:01] <spronk2> public function getMyCoolDataObject() { return …. (the data object) }
665: [09:16:13] <Pyromanik__> spronk: not if it's already a has)one
666: [09:16:30] <gumble> noo I think I understood
667: [09:16:46] <gumble> what spronk2 said and you said first was that what I meant
668: [09:17:07] <gumble> can I somehow pass more than one dataobjects? in a datarray?
669: [09:17:14] <spronk2> new ArrayData
670: [09:17:17] <spronk2> ($array)
671: [09:17:55] * gelignite has joined #silverstripe
672: [09:18:37] <gumble> ok, having my index return a arrayData with dataobject and how do I then loop through them somehow or access them in some way?
673: [09:18:45] <spronk2> <% loop
674: [09:18:52] * zfmf1 has joined #silverstripe
675: [09:19:03] <gumble> yes loop what?
676: [09:19:08] <spronk2> so
677: [09:19:09] <gumble> not <% loop index %
678: [09:19:11] <spronk2> no
679: [09:19:12] <spronk2> ok
680: [09:19:26] <spronk2> do you want the page to appear normally, or are you writing a specific controller method?
681: [09:19:26] <Pyromanik__> spronk: not since 2.3
682: [09:19:28] <Pyromanik__> err 2.4
683: [09:19:32] <Pyromanik__> new ArrayList
684: [09:19:33] <spronk2> oh?
685: [09:19:35] <spronk2> oh yeah thats right
686: [09:19:41] <gumble> ok arraylist then
687: [09:20:00] <Pyromanik__> gumble: you eant
688: [09:20:06] <gumble> I have a index which returns and array of dataobject if a get variable is set and elseways just returns an empty array
689: [09:20:21] <spronk2> you can either make the index load the template
690: [09:20:28] <spronk2> or you can use a different method to return your data and call that from the template
691: [09:20:47] <Pyromanik__> public function index() { return array('VariableName' => ArrayList::create($objects)) }
692: [09:21:07] <Pyromanik__> or
693: [09:21:13] <Pyromanik__> or you're not explaining yourself very well
694: [09:21:23] <Pyromanik__> this seems like a very complicated way to do something that should be easy
695: [09:21:35] <Pyromanik__> ie ObjectList::get()
696: [09:21:59] <gumble> Pyromanik__, no the first thing was right, thanks that helps!
697: [09:22:18] <gumble> but I'll just use another function I think
698: [09:22:45] <gumble> so getDataObjects instead of using the index function
699: [09:23:01] <gumble> then I could <% loop getDataObjects %> right?
700: [09:23:50] <spronk2> jup
701: [09:23:51] <spronk2> or even
702: [09:23:51] <spronk2> <% loop DataObject
703: [09:23:51] <spronk2> s
704: [09:23:51] <Pyromanik__> yes
705: [09:23:56] <gumble> ok thanks
706: [09:24:17] <Pyromanik__> that way template inheritance doesn't get broken
707: [09:24:27] <Pyromanik__> umm
708: [09:24:30] <Pyromanik__> yeah ignore that
709: [09:26:36] * joelpittet quit (Remote host closed the connection)
710: [09:29:51] * spronk2 has left #silverstripe
711: [09:29:57] * spronk2 has joined #silverstripe
712: [09:30:00] <spronk2> hmm
713: [09:33:54] <spronk2> jarr
714: [09:39:51] <Pyromanik__> wut
715: [09:44:54] <simon_w> Wasn't me!
716: [09:46:48] <spronk2> mm
717: [09:52:52] * zippy__ quit (Quit: zippy__)
718: [10:02:41] * Pyromanik__ has left #silverstripe
719: [10:15:39] * chillu quit (Quit: chillu)
720: [10:23:30] <spronk2> mm
721: [10:26:01] <micmania1> "Fatal error: Hmm - depth calc wrong, hit negatives" - Anybody know what would cause this error when trying to build the db?
722: [10:28:56] <micmania1> Found it. Its a stray "}"
723: [10:38:03] * travis-ci has joined #silverstripe
724: [10:38:03] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#311 (3.1 - 3fb80a1 : Will Rossiter): The build passed.
725: [10:38:03] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/939773643aa8...3fb80a1657e1
726: [10:38:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8131050
727: [10:38:03] * travis-ci has left #silverstripe
728: [10:57:48] * SphereSilverNL has joined #silverstripe
729: [10:59:27] * Peavers quit (Ping timeout: 245 seconds)
730: [10:59:37] * Peavers has joined #silverstripe
731: [11:04:35] * priithansen has joined #silverstripe
732: [11:05:07] * spronk2 quit (Quit: spronk2)
733: [11:05:40] * Pyromanik__ has joined #silverstripe
734: [11:06:43] <SphereSilverNL> g'afternoon
735: [11:08:16] <Pyromanik__> evening
736: [11:09:09] <SphereSilverNL> Anyone know of a method to get the children of a group, grouped by month?
737: [11:09:33] <Pyromanik__> what?
738: [11:09:48] <SphereSilverNL> Just a sec, I'll make a pastie.
739: [11:10:40] <Pyromanik__> k
740: [11:11:39] <SphereSilverNL> http://sspaste.com/paste/show/51bd9d2746f13
741: [11:13:30] <SphereSilverNL> They're not grouping :'(
742: [11:14:29] <Pyromanik__> oh, nested grouping
743: [11:14:34] <Pyromanik__> hack core.
744: [11:14:38] <SphereSilverNL> really?
745: [11:14:40] <SphereSilverNL> that sucks
746: [11:14:44] <Pyromanik__> lol I dunno man
747: [11:14:48] <SphereSilverNL> it worked fine in SS2.4 :(
748: [11:14:56] <Pyromanik__> yeah but 2.4
749: [11:15:01] <Pyromanik__> queries everywhere
750: [11:15:06] <SphereSilverNL> true
751: [11:15:19] <Pyromanik__> now we have datalist
752: [11:15:24] <SphereSilverNL> I'm not planning on going to 2.4, but not having nested grouping kinda sucks
753: [11:15:27] <Pyromanik__> and at a guess, you've got an arraylist
754: [11:15:40] <Pyromanik__> which may or may not support grouping
755: [11:15:47] <Pyromanik__> check out the code
756: [11:16:03] <Pyromanik__> if it doesn't, add it and make a pull request.
757: [11:16:08] <Pyromanik__> viola!
758: [11:16:13] <SphereSilverNL> I was afraid of that :P
759: [11:16:15] <Pyromanik__> no longer a hack :P
760: [11:16:17] <SphereSilverNL> I'll see what I can do :P
761: [11:16:20] <Pyromanik__> haha
762: [11:16:28] <Pyromanik__> I dunno, I'm not working on code atm
763: [11:16:42] <Pyromanik__> but I think you'll haev a list that isn't the kind of list you expect it is.
764: [11:16:50] <Pyromanik__> you could try grouping by manually filtering or whatever
765: [11:17:05] <Pyromanik__> but I don't think that'll quite work.
766: [11:17:05] <SphereSilverNL> Hmmm, for now, that might be an idea :)
767: [11:17:30] <Pyromanik__> do a foreach that grabbles the months in that year or whatever it is you've got going on there
768: [11:17:32] <SphereSilverNL> And indeed it doesn't :/ it says boom :)
769: [11:18:02] <SphereSilverNL> I need to find a way to create a groupedList of it's children
770: [11:18:24] <SphereSilverNL> And the GroupedBy creates an ArrayList() of Children, not a GroupedList
771: [11:21:47] <Pyromanik__> is there a GroupedList?
772: [11:21:51] <Pyromanik__> I believe not
773: [11:22:08] <Pyromanik__> you need either a wrapper or something
774: [11:22:21] <Pyromanik__> that makes grouping functions return a new datalist
775: [11:22:30] <Pyromanik__> so you can modify the query
776: [11:23:28] <Pyromanik__> that or you're not in the right scope
777: [11:23:52] <Pyromanik__> mmm yeah
778: [11:23:57] <Pyromanik__> you might be a Children. short
779: [11:24:32] <Pyromanik__> but I'm probably confused
780: [11:24:34] <Pyromanik__> bed time you see.
781: [11:24:38] <Pyromanik__> good luck :)
782: [11:24:45] <SphereSilverNL> GroupedList kinda exists ;) https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/GroupedList.php
783: [11:24:45] <SphereSilverNL> sleep tight
784: [11:25:08] <Pyromanik__> 3.1 good times
785: [11:25:11] <Pyromanik__> enjoy
786: [11:25:12] <Pyromanik__> :>
787: [11:25:18] <SphereSilverNL> I'm trying :P
788: [11:25:18] * Pyromanik__ has left #silverstripe
789: [11:37:14] * pex has joined #silverstripe
790: [11:51:57] * kerosene quit (Ping timeout: 256 seconds)
791: [11:53:28] * kerosene has joined #silverstripe
792: [11:53:32] * Peavers quit (Ping timeout: 256 seconds)
793: [11:54:08] * Peavers has joined #silverstripe
794: [11:57:18] <SphereSilverNL> Anyone interested in a solution? It's quite simple actually :/
795: [11:58:23] <SphereSilverNL> Hmmmm, I broke github? https://github.com/silverstripe/silverstripe-framework/fork
796: [12:04:54] * mattybalaam has joined #silverstripe
797: [12:05:03] * Hippieeee quit (Ping timeout: 256 seconds)
798: [12:14:25] * osterlaus has joined #silverstripe
799: [12:29:12] <gumble> if a image is somehow not loaded (it the has_one of a has_one DO), where can I somehow see which part exacty doesn't work?
800: [12:30:04] <gumble> SphereSilverNL, if it is not loading for you try a different browser. firefox never loads github for me, dunno what is going on there
801: [12:30:24] <gumble> no actually now it is loading
802: [12:30:30] <gumble> on arch/firefox it wasn't
803: [12:31:21] <SphereSilverNL> I've noticed another weird issue with Firefox.
804: [12:31:30] <SphereSilverNL> Firefox is having problems with Sessions for some reason.
805: [12:31:41] * wmk has joined #silverstripe
806: [12:31:42] <SphereSilverNL> I can't login to the CMS in Firefox, the session is lost after a few minutes
807: [12:31:51] <SphereSilverNL> Chromium and IE do not show this behaviour
808: [12:33:12] <gumble> yes chromium works fine for me too
809: [12:33:29] <gumble> but cms worked well if firefox always for me
810: [12:33:29] <SphereSilverNL> Firefox 21 is a bit buggy if you ask me :(
811: [12:34:14] <wmk> SphereSilverNL, maybe some firefox addons make problems?
812: [12:34:25] <gumble> using chromium atm because firefox is not so nice on debian
813: [12:34:48] <SphereSilverNL> Could be, I have a whole bunch of Firebug extensions. But then again, why would it, for crying out loud, forget it's session-cookie?
814: [12:35:14] <gumble> try deactivating all addons and see if it works
815: [12:35:28] <gumble> then you could find out which one is making problems
816: [12:35:31] <SphereSilverNL> I just created a new profile, I'll see where it ends up :)
817: [12:35:44] <SphereSilverNL> Whee, pull-request send.
818: [12:38:06] * RojoD has joined #silverstripe
819: [12:38:06] * RojoD quit (Changing host)
820: [12:38:06] * RojoD has joined #silverstripe
821: [12:46:43] <wmk> anyone knows, if i can have a checkbox for filtering boolean db fields in gridfield? i only have a normal input field
822: [12:47:43] <wmk> it's in security admin, where i got some extra columns extending member
823: [12:48:15] <SphereSilverNL> Ehh, how do you mean exactly?
824: [12:49:40] <wmk> i have an extra column "NeedsApproval" which is a boolean db field.
825: [12:49:56] <wmk> i can filter for it when i type in 1 or 0 in the filter header
826: [12:50:08] <wmk> but a checkbox would be much easier for my customer
827: [12:50:28] <SphereSilverNL> A checkbox would be very annoying actually, you want a dropdown I think
828: [12:50:51] <SphereSilverNL> Filtering with a checkbox used to bug out when clicking "next page", Don't know if it's fixed though
829: [12:51:19] <SphereSilverNL> anyway, you want to update the SearchableFields with a dropdown-type of the Member.NeedsApproval
830: [12:51:57] <wmk> ok. dropdown IS easier. <nothing>, 'Yes', 'No'
831: [12:52:03] <SphereSilverNL> exactly ;)
832: [12:52:37] <wmk> and --- HOW to i get it in gridfield header? Also by decorating the member object or do i have to modify the gridfield config?
833: [12:53:00] <SphereSilverNL> Checkbox is treated as "yes/no", so the "nothing" option is unavailable, making searchresults act in unwanted ways
834: [12:53:23] <SphereSilverNL> in your custom admin, address the gridfield-config. Or in the extension, update the static searchable_fields
835: [12:53:33] <SphereSilverNL> should do it. Why would you want it in the gridfield header?
836: [12:54:23] <SphereSilverNL> ow, wait, security admin, obviously :P
837: [12:54:30] <wmk> yes
838: [12:54:44] <SphereSilverNL> My bad :)
839: [12:54:50] <wmk> np
840: [12:55:00] <SphereSilverNL> ehm, in the admin-class, address the gridfieldconfig, something like this
841: [12:55:37] <SphereSilverNL> $form->Fields()->fieldByName('Member')->getConfig()->addSearchableField();
842: [12:55:44] <SphereSilverNL> At least, I guess it's somewhere around there
843: [12:57:25] <SphereSilverNL> Create a DataExtension for SecurityAdmin, update the public function getEditForm() with your updates
844: [13:02:13] <wmk> yup. i found $this->extend('updateEditForm', $form); in SecurityAdmin::getEditForm
845: [13:02:22] <SphereSilverNL> that works too :)
846: [13:02:51] <wmk> but don't know the gridfield config.
847: [13:03:15] <wmk> it would tweak filterHeader
848: [13:03:30] <SphereSilverNL> I'm guessing you could just add a GridFieldFilterHeader object of type dropdown
849: [13:03:42] <SphereSilverNL> Don't know for sure, haven't really checked it out ;)
850: [13:04:37] <SphereSilverNL> I'm guessing something like $config->getComponentByType('GridFieldFilterHeader')->addComponent(new component you want);
851: [13:09:04] <wmk> hmm, FilterHeader creates an input field for every column
852: [13:10:26] <SphereSilverNL> It seems to be able to add textfields only indeed...
853: [13:11:06] <SphereSilverNL> In FilterHeader, it says $field = new TextField('filter['.$columnField.']', '', $value);
854: [13:11:21] <SphereSilverNL> So yeah, you need to extend FilterHeader to support multiple fieldtypes
855: [13:12:06] <wmk> oh, great
856: [13:13:17] <SphereSilverNL> Or write a fix and push it ;)
857: [13:13:37] <wmk> well, IS there something in dataobject, where i can define such a dropdown?
858: [13:14:39] <SphereSilverNL> Searchable Fields?
859: [13:14:44] <SphereSilverNL> Don't know if that'll work though
860: [13:14:48] <wmk> if filterheader just has to look at the field / the dataobject it would be a general solution
861: [13:15:20] <SphereSilverNL> That would be the ideal solution.
862: [13:15:46] <SphereSilverNL> The default modeladmin searchable_fields supports something like that, if I'm not mistaken, so I guess some sort of port or implementation of that should work.
863: [13:19:46] <wmk> you mean the search on the left?
864: [13:19:48] <wmk> in modeladmin
865: [13:19:51] <SphereSilverNL> yes
866: [13:23:23] <SphereSilverNL> It's just a guess ;) I haven't tried what you want to achieve myself, so... I'm just roughly guessing based on the available features ;)
867: [13:23:52] <wmk> of course. thanks for the input!
868: [13:24:10] <SphereSilverNL> no problem, that's what we're for, right? :)
869: [13:24:25] <wmk> thouth OO is great, sometimes it's really bad to get WHERE something is changed
870: [13:25:30] <wmk> e.g. i have to extend summary_fields in member / memberextension to get more columns. simple example and great function.
871: [13:25:37] <wmk> so i dig into modeladmin ;)
872: [13:28:25] <SphereSilverNL> I just fell in love with git directory-structuring in SourceTree :D
873: [13:29:23] <micmania1> What's the best way to do a bulk insert in Silverstripe?
874: [13:29:31] <SphereSilverNL> SQL
875: [13:29:48] <SphereSilverNL> I would simply run an SQL command directly on the database.
876: [13:29:58] <SphereSilverNL> Assuming you know what to insert and where to insert it.
877: [13:30:22] <micmania1> Yeah, I can do a bulk insert but I'm trying to stay away from custom queries.
878: [13:30:37] <mattybalaam> With the new FormField::create method , is there a way of defining which field to place the new one before?
879: [13:30:57] <SphereSilverNL> mattybalaam: no, only insertAfter is available
880: [13:31:15] * micmania1 quit (Quit: Page closed)
881: [13:31:34] * micmania1 has joined #silverstripe
882: [13:32:14] <SphereSilverNL> public function addFieldToTab($tabName, $field, $insertBefore = null) {
883: [13:32:20] <SphereSilverNL> sorry, insertBefore, ofcourse
884: [13:32:23] <micmania1> Does anybody know where I can find the code for bulk uploads via the CMS? Maybe I can use that.
885: [13:32:30] <SphereSilverNL> so yes, there is ;)
886: [13:33:00] <micmania1> or even the YAML stuff.
887: [13:33:02] <SphereSilverNL> $fields->addFieldToTab('TabName', FormField::create('Your Field specs'), 'Field-to-push-before');
888: [13:33:07] <wmk> micmania1, bulk upload for what?
889: [13:33:17] <wmk> dataobjects, pages...
890: [13:33:17] <wmk> ?
891: [13:33:18] <SphereSilverNL> micmania1: there is the bulkCSVUploader if I'm not mistaken
892: [13:34:08] <micmania1> wmk, I need to do a bulk insert, possibly thousands per time. I'm trying to find an efficient way to do it without writing custom queries.
893: [13:34:21] <RojoD> hm
894: [13:34:22] <wmk> for a project where i have to convert the old db structure i wrote a task which grabs csv exported from the db
895: [13:34:31] <micmania1> thanks SphereSilverNL. I'll take a look.
896: [13:34:36] <RojoD> everytime I try to install a module, the site crasht...
897: [13:34:42] <RojoD> what could be the problem?
898: [13:34:56] <SphereSilverNL> What module?
899: [13:35:07] <SphereSilverNL> Did you include it's dependencies?
900: [13:35:16] <SphereSilverNL> Have you run a build and flush?
901: [13:35:46] <wmk> either by calling MyDataObject::setFromOldDB() which maps to new fieldnames and does some other stuff (image uploading), or for many_many stuff by defining maps in arrays
902: [13:35:59] <mattybalaam> thanks SphereSilverNL
903: [13:36:19] <wmk> micmania1, how do you have the data now? as sql db?
904: [13:39:47] <micmania1> I don't have the data. Its a football prediction game. The user predicts a score, then I update the result and it loops through calculating each score then adds an entry to the db for each score.
905: [13:40:18] <micmania1> I've got a working example in SS where I build up a custom insert which works well, but I was hoping there was another way.
906: [13:40:59] <SphereSilverNL> micmania1: why would you want a record for each score?
907: [13:41:43] <micmania1> I need to keep track of the users' points.
908: [13:41:57] <wmk> SphereSilverNL, BooleanField has a ScaffoldSearchField() function which does the dropdown.
909: [13:44:54] <gumble> hey, if a image isn't loaded which is owned by a data object where could I start of to find what isn't working?
910: [13:45:14] <SphereSilverNL> wmk: that should be the start of your search ;)
911: [13:45:20] <SphereSilverNL> gumble: depends on where it isn't working
912: [13:45:40] <SphereSilverNL> in template? Are you using the correct syntax in template? Are you resizing it? Is the image not too large to resize for your hosting?
913: [13:45:45] <SphereSilverNL> Lot's of variables there.
914: [13:46:13] <gumble> in the template I have <% with DataObject %><% with DataObject (child of other dataobject) %><% with Subtitle %><img src="$URL">
915: [13:46:26] <gumble> atm I am not resizing it
916: [13:46:49] <gumble> and what happens is just an <img src> tag with no URL SphereSilverNL
917: [13:47:10] <gumble> I don''t meran child of other dataobject but belongs to the other dataobject
918: [13:47:16] <SphereSilverNL> Ehm, Subtitle is an image?
919: [13:47:23] <gumble> yes
920: [13:47:34] <SphereSilverNL> isn't it supposed to be $Link?
921: [13:47:34] <wmk> gumble, just try $Subtitle, should display the image
922: [13:47:50] <SphereSilverNL> $Subtitle, instead of <% with %> should work too
923: [13:47:54] <gumble> wait I'll try both
924: [13:49:21] <gumble> $Subtitle doesn't show anything and $Link also leaves it empty
925: [13:49:49] <gumble> where can I look if its the dataobject or the image or why $Subtitlle doesn't reference right
926: [13:49:52] <gumble> ?
927: [13:50:01] * zfmf1 has left #silverstripe
928: [13:50:14] <SphereSilverNL> Is the title of the parent correct?
929: [13:50:17] <gumble> I have like Subtitle, which belongs to a DataObject which belongs to a page
930: [13:51:01] <gumble> SphereSilverNL, yes I tested with <% if Category %>
931: [13:51:04] <gumble> which works
932: [13:51:17] <gumble> and Category has_one Subtitle
933: [13:52:03] <wmk> and you can see the image in backend?
934: [13:52:27] <wmk> so the file exists and all db records in file table are OK
935: [13:52:32] <gumble> yes where I uploaded it
936: [13:52:37] <wmk> ok.
937: [13:52:47] <gumble> I have a grid field which displays the image
938: [13:53:17] <gumble> in the grid field it is called "Untertitel", because I renamed that. But the name I have to use is the one I set in has_one right?
939: [13:54:05] <SphereSilverNL> Yes, you address the has_one method, not it's translated title
940: [13:54:16] <SphereSilverNL> could you show a pastie of your template and DO's?
941: [13:54:37] <SphereSilverNL> Ach krijg toch de hik
942: [13:54:43] <SphereSilverNL> "[Warning] array_merge(): Argument #2 is not an array"
943: [13:54:51] <SphereSilverNL> $source = NewsHolderPage::get()->map('ID', 'Title');
944: [13:54:59] <SphereSilverNL> I kinda feel, argument 2 is an array! GRRR
945: [13:55:08] <gumble> ok I paste it wait a sec
946: [13:55:26] <wmk> gumble, maybe $MyDataObject.debug can shed some light
947: [13:55:29] <SphereSilverNL> Don't paste it here, use sspaste.com or pastie.com
948: [13:55:59] <wmk> SphereSilverNL, we need a shortcode for this sentence *G*
949: [13:56:15] <SphereSilverNL> for what sentence?
950: [13:56:32] <gumble> I know that I should not paste here :D
951: [13:57:03] <SphereSilverNL> Some people don't know, and pasting a heapload of code into IRC... ouch :X
952: [13:57:49] <gumble> http://pastebin.com/GMQFJ2ni
953: [13:57:57] * joelpittet has joined #silverstripe
954: [13:58:14] <gumble> my dataobject, my page model and controller and the template
955: [13:58:23] * osterlaus quit (Quit: Leaving.)
956: [13:58:42] <SphereSilverNL> You need to address the image of subtitle, now, you're addressing the subtitle itself
957: [13:58:48] <SphereSilverNL> subtitle != an image
958: [13:58:55] <SphereSilverNL> ow, nevermind
959: [13:59:00] <SphereSilverNL> I read that wrong
960: [13:59:14] <gumble> yes np
961: [13:59:22] <wmk> gumble, you get the category?
962: [13:59:47] <SphereSilverNL> Remove your $category method f rom the page
963: [13:59:54] <SphereSilverNL> in the ReferenzenPage.ss
964: [14:00:32] <SphereSilverNL> just address <% if Kategorien %> <% loop Kategorien %>$Subtitle<% end_loop %><% end_if %>
965: [14:00:48] <SphereSilverNL> you can address $has_many directly from the template, you don't need to push them in any way
966: [14:01:07] <gumble> but only one Category should be shown
967: [14:01:10] <wmk> page -> has_many-> Categories
968: [14:01:38] <wmk> <% with Kategorien.First %>...
969: [14:02:22] <gumble> ok I try if that works
970: [14:02:27] <wmk> atm you get the whole dataobjectset, not just one category
971: [14:03:00] <gumble> I thought this here: DataObject::get('ReferenzenCategory', "Title = '".$request->getVar("category")."'")
972: [14:03:03] <gumble> gets only one
973: [14:03:10] <SphereSilverNL> wmk: what sentence should be shortcoded?
974: [14:03:24] <SphereSilverNL> gumble: Silverstripe 2.x?
975: [14:03:29] <gumble> ss3
976: [14:03:34] <SphereSilverNL> No, it gets a DataList
977: [14:03:43] <SphereSilverNL> you should do ReferenzenCategory::get()->first();
978: [14:03:59] <SphereSilverNL> but as I said, just address the has_many method directly instead of the method you're using in the index.
979: [14:04:00] <wmk> SphereSilverNL, the one about "use pastebin"
980: [14:04:08] <SphereSilverNL> ah :D yeah, we should :D
981: [14:05:23] <SphereSilverNL> Although I must admit, I sometimes paste code here accidentally.
982: [14:05:35] <SphereSilverNL> Creating a pasty -> copy-paste code -> thinking I copied the URL
983: [14:05:36] <SphereSilverNL> BOOM
984: [14:05:39] <SphereSilverNL> crap :'(
985: [14:06:01] <gumble> It works now! thanks SphereSilverNL and wmk
986: [14:06:08] <SphereSilverNL> nop
987: [14:06:21] <wmk> gumble, gern geschehen!
988: [14:06:22] <gumble> but if I now want to link to a special category, how would I do that without the index method?
989: [14:06:46] <SphereSilverNL> create a specific function
990: [14:06:50] <wmk> make a getCateogry() method in your Controller
991: [14:07:26] <gumble> and that would get the method as I did in the index? with DataObject::get() and then .first()?
992: [14:07:34] <gumble> well I forgot the .frist last time :D
993: [14:07:49] <SphereSilverNL> gumble:
994: [14:07:51] <SphereSilverNL> http://sspaste.com/paste/show/51bdc6703d516
995: [14:08:09] <SphereSilverNL> in your template, address <% with getCategory(YourCustomCategory) %>
996: [14:08:12] <SphereSilverNL> and there you have it
997: [14:09:19] <gumble> nice!!
998: [14:09:43] <SphereSilverNL> Not using an index function has a heapload of advantages.
999: [14:09:50] <gumble> Should I get ReferenzenCategory (how file/class is called) or Kategorien (like in has_many)?
1000: [14:09:56] <SphereSilverNL> Using an index-function, means you might run into problems lateron
1001: [14:10:02] <gumble> yes I didn't want to use one at first
1002: [14:10:03] <SphereSilverNL> the classname
1003: [14:10:06] <gumble> but then I thought I had too
1004: [14:10:14] <SphereSilverNL> If you want a specific, get the classname
1005: [14:10:24] <SphereSilverNL> if you want all has_many items, address the has_many declaration
1006: [14:10:57] <gumble> ok, thanks again!
1007: [14:11:01] <gumble> that helps a lot
1008: [14:11:46] <SphereSilverNL> no problem.
1009: [14:15:52] <gumble> could I access a GET Variable from template? like <% with getCategory(getvar) %>
1010: [14:16:01] <SphereSilverNL> no, you can't
1011: [14:16:03] <SphereSilverNL> and you shouldn't
1012: [14:16:06] <SphereSilverNL> please, don't
1013: [14:16:25] <gumble> but how do I then link to the categories? and why shouldn't I? :D
1014: [14:16:37] <gumble> it seems nice a not so bad way for me
1015: [14:16:38] <SphereSilverNL> unless you want to enable SQL injection. Then, be my guest
1016: [14:16:47] <SphereSilverNL> create a handler.
1017: [14:17:12] <gumble> yes I already had a note on springpad that I have to check about SQL Injection and the get thing there :D
1018: [14:17:13] <SphereSilverNL> http://www.yoursite.com/ReferenzePage/Referenze/URLSegment_Of_Referenze
1019: [14:17:25] <SphereSilverNL> read up on DataObjects as Pages from ssbits.com
1020: [14:17:30] <SphereSilverNL> or check my newsmodule.
1021: [14:17:38] <SphereSilverNL> that's a WAY safer way to handle it.
1022: [14:17:51] <SphereSilverNL> using $_GET variables is creepy
1023: [14:18:12] <gumble> Ok, I'll read through it
1024: [14:18:17] <gumble> tahnks
1025: [14:18:39] <gumble> http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/ ?
1026: [14:18:40] <gumble> 2010?
1027: [14:18:57] <SphereSilverNL> Yes, but the idea is still valid on how to address DataObjects as if they were pages.
1028: [14:19:17] * joelpittet quit (Read error: Connection reset by peer)
1029: [14:19:32] <SphereSilverNL> Try Github, I think Aram has a repository which is SS3 enabled somewhere.
1030: [14:19:37] <SphereSilverNL> And, if you have time to spare.
1031: [14:19:40] * joelpittet has joined #silverstripe
1032: [14:19:41] <SphereSilverNL> Look at my newsmod
1033: [14:19:47] <SphereSilverNL> https://github.com/Firesphere/silverstripe-newsmodule/
1034: [14:19:55] <SphereSilverNL> It's a simplified implementation of DO as Pages
1035: [14:22:14] <gumble> so the basic thing is to add a page to the has_one of the DataObject?
1036: [14:22:30] <SphereSilverNL> You already have the many-to-one relation
1037: [14:22:43] <SphereSilverNL> so, look at the show-function in the DO-as-pages method
1038: [14:23:15] <SphereSilverNL> there, you'll see that addressing show/$ID, will return a customised object, with the info from the DO with the wanted ID
1039: [14:25:01] <gumble> does customize still work that way?
1040: [14:25:13] <SphereSilverNL> dunno, I'm not using it that way in my own mod
1041: [14:25:17] <SphereSilverNL> I think it should
1042: [14:26:38] <gumble> ok thanks aanother time :D
1043: [14:26:45] <gumble> I'll do it that way
1044: [14:26:47] <gumble> seems way better
1045: [14:27:05] <SphereSilverNL> it IS way better. Don't forget to sanitize where needed ;)
1046: [14:29:34] <SphereSilverNL> plus, it makes for pretty URI's ;)
1047: [14:33:40] <wmk> SphereSilverNL, Gridfield is working with DataLists, FilterHeader just uses PartialMatchFilter for each field. Guess i need someone who knows the insights of Gridfield...
1048: [14:33:46] * dospuntocero has joined #silverstripe
1049: [14:34:06] <SphereSilverNL> I think Zauberfisch^idle is the one you want to annoy until he wakes up :P
1050: [14:34:28] <wmk> i bet Zauberfisch^idle knows something more.
1051: [14:34:45] <wmk> if he doesn't wake up i have to drive some kilometers *G*
1052: [14:34:49] <SphereSilverNL> 3 issues resolved. No issues left open :'(
1053: [14:35:10] <wmk> SphereSilverNL, if you're bored...
1054: [14:35:19] <SphereSilverNL> Not really....
1055: [14:35:33] <SphereSilverNL> https://github.com/Firesphere/silverstripe-newsmodule/network
1056: [14:35:49] <SphereSilverNL> 2 issues resolved today on my module....
1057: [14:36:00] <SphereSilverNL> new release... I'm expecting a heapload of new issues :P
1058: [14:36:34] <SphereSilverNL> And I still need to translate everything :/
1059: [14:40:15] * micmania1 quit (Ping timeout: 250 seconds)
1060: [14:42:50] * priithansen quit (Quit: priithansen)
1061: [14:44:10] <wmk> SphereSilverNL, seems like a "Eierlegende Wollmilchsau" News Module
1062: [14:44:35] <wmk> swiss army knife
1063: [14:47:24] <SphereSilverNL> wmk: yeah, it started off as a simple "just post news in a better way than cluttering the sitetree"
1064: [14:47:30] <SphereSilverNL> it's kinda becoming ehm...
1065: [14:47:44] <SphereSilverNL> large and a lot of work to maintain to be honoust :D
1066: [14:47:51] <wmk> i guess
1067: [14:48:44] <SphereSilverNL> Ah well, I'm having fun maintaining and improving, so it's not a problem :)
1068: [14:49:12] * supernovah quit (Ping timeout: 256 seconds)
1069: [14:51:40] * joelpittet quit (Remote host closed the connection)
1070: [14:53:15] <wmk> SphereSilverNL, YMMD!
1071: [14:53:16] <wmk> Code Comments should not be taken too seriously, since I'm bad at writing serious code-comments.
1072: [14:53:23] <SphereSilverNL> YMMD?
1073: [14:53:27] <wmk> you made my day
1074: [14:53:34] <SphereSilverNL> Ah, ofcourse :D
1075: [14:54:17] <SphereSilverNL> I often include stupid/funny/witty jokes in my comments :$
1076: [14:57:12] <wmk> have to read your code...
1077: [14:57:19] <wmk> as good night lecture later this day
1078: [14:58:04] <SphereSilverNL> I'm updating the comments right now, since I fixed a bunch of issues.
1079: [15:09:19] <SphereSilverNL> Every release, I run through all the code and update/edit the comments.
1080: [15:15:40] <SphereSilverNL> Although, my favorite readme-line is still in the Best Practices.
1081: [15:16:06] <SphereSilverNL> Since this actually happened while I was writing a newspost. I decided to include it in best practices after laughing for 5 minutes :P
1082: [15:42:02] <wmk> yeah, the best practice comment is good.
1083: [15:42:43] <SphereSilverNL> I just had a fight with Git. Took me almost half an hour to resolve a non-existing conflict :/
1084: [15:42:51] <SphereSilverNL> Git is good, but appearantly, not that good :(
1085: [15:44:26] <SphereSilverNL> I just found Wiktionary "Eierlegende Wollmilchsau"
1086: [15:44:28] <SphereSilverNL> IPA: /ˌaɪ̯ɐ.leːɡəndə ˈvɔl.mɪlç.zaʊ̯/, [ˌaɪ̯ɐ.leːɡn̩də ˈvɔl.mɪlç.zaʊ̯]
1087: [15:44:40] <SphereSilverNL> ehhhhh, I somwhat don't know how to pronounce that :P
1088: [15:49:52] <gumble> if I have a dataobject which belongs to a page, how do I get the link to the page which owns the dataobject inside the dataobject?
1089: [15:50:16] <SphereSilverNL> $this->PageClass()->Link()
1090: [15:50:32] <gumble> ah thanks
1091: [15:52:28] <SphereSilverNL> Agreed: http://tristanedwards.me/what-ios7-should-look-like
1092: [15:58:03] * priithansen has joined #silverstripe
1093: [16:05:32] <gumble> I am now trying to view the dataobject as pages but I am always getting this error (debug_request=1): http://pastebin.com/2TpBWYqC and a 404 page
1094: [16:06:22] <gumble> why does the action match ErrorPageController?
1095: [16:06:49] <gumble> and why is action and ID Null in the second attempt?
1096: [16:07:01] * priithansen quit (Quit: priithansen)
1097: [16:07:53] <SphereSilverNL> Do you have original code I can test?
1098: [16:07:59] <wmk> seems it doesn't find a controller, so it throws a 404, which is ErrorPage
1099: [16:08:14] <SphereSilverNL> What are your allowed-actions?
1100: [16:08:43] <SphereSilverNL> happy news! As of an hour or so, I have a girlfriend....
1101: [16:09:05] <SphereSilverNL> bad news: It appears to be fathers day.... What should I get myself?
1102: [16:09:53] <wmk> when is fathers day in NL?
1103: [16:10:00] <SphereSilverNL> today?
1104: [16:10:08] <SphereSilverNL> 16-6-2013
1105: [16:10:22] <gumble> allowed_actions where the magic word
1106: [16:10:26] <gumble> thanks
1107: [16:10:39] <SphereSilverNL> I am appearantly magic....
1108: [16:10:43] <SphereSilverNL> Don't tell :D
1109: [16:10:48] <gumble> I won't :D
1110: [16:10:53] <gumble> pssh
1111: [16:11:07] <wmk> oh, in AT it was last sunday and in DE it's at Ascension Day
1112: [16:11:55] <wmk> time for dinner, cu l8r
1113: [16:12:00] * wmk quit (Quit: nice to meet you ;))
1114: [16:41:46] * Shrike_Finland quit (Ping timeout: 245 seconds)
1115: [17:00:59] <Zauberfisch^idle> hmmm_
1116: [17:01:01] <Zauberfisch^idle> ?
1117: [17:04:57] <SphereSilverNL> somebody is in need of your advice
1118: [17:05:26] <Zauberfisch^idle> seems he has left
1119: [17:05:36] <Zauberfisch^idle> but if its urgent he will poke me on skype
1120: [17:05:48] <SphereSilverNL> probably
1121: [17:07:37] <SphereSilverNL> Is it positive or negative when your better part says "Dog soldiers is a better movie compared to Fast & Furious"
1122: [17:17:36] * pex quit (Ping timeout: 245 seconds)
1123: [17:27:38] * Peavers quit (Ping timeout: 252 seconds)
1124: [17:28:24] * Peavers has joined #silverstripe
1125: [17:33:41] * Shrike_Finland has joined #silverstripe
1126: [17:37:06] <gumble> how do I add classes to body or stuff when using a special pagetype? every time <% if Classname = Pagetype %> <body class=""><% else_if ... %> or is there a better way?
1127: [17:39:36] <gumble> and how do I set constants for a PageType?
1128: [17:40:22] <SphereSilverNL> stop trying to make everything as custom as possible ;)
1129: [17:40:31] <SphereSilverNL> <body class=
1130: [17:41:05] <SphereSilverNL> <body class="$ClassName">
1131: [17:41:30] <SphereSilverNL> sorry about the typo
1132: [18:12:17] * Shrike_Finland quit (Ping timeout: 246 seconds)
1133: [18:16:40] * Shrike_Finland has joined #silverstripe
1134: [18:30:10] <mattybalaam> I have limited this in the template, but Is there a way of setting a maximum amount of items in a Gridfield, and block uploading of new items?
1135: [18:30:33] * robert___ is now known as robert__
1136: [18:30:41] * robert__ is now known as robert_
1137: [18:43:26] * priithansen has joined #silverstripe
1138: [18:45:01] * joelpittet has joined #silverstripe
1139: [18:45:49] * pex has joined #silverstripe
1140: [18:49:48] * guzzlefry has joined #silverstripe
1141: [19:02:10] * priithansen quit (Quit: priithansen)
1142: [19:04:40] * dospuntocero quit (Remote host closed the connection)
1143: [19:29:13] * pex1 has joined #silverstripe
1144: [19:30:08] * pex quit (Ping timeout: 240 seconds)
1145: [19:31:48] <ss23> help simon_w are you here!
1146: [19:32:23] <ss23> BUSSES ARE HARD
1147: [19:32:24] <ss23> ;_;
1148: [19:33:13] <ss23> simon_w: If you get here while I'm showering, I am in Newtown and wanna get to Silverstripe ~8:30. What busses can I catch to get close etc?
1149: [19:48:15] * mobiusnz has joined #silverstripe
1150: [19:50:34] * priithansen has joined #silverstripe
1151: [19:51:39] * SphereSilverNL quit (Quit: If it's not broke. It's lacking features.)
1152: [19:54:45] * Peavers quit ()
1153: [19:59:13] * chillu has joined #silverstripe
1154: [20:00:35] * zfmf1 has joined #silverstripe
1155: [20:05:39] * mobiusnz quit (Read error: Connection reset by peer)
1156: [20:05:54] * mobiusnz has joined #silverstripe
1157: [20:06:22] * SightUnseen has joined #silverstripe
1158: [20:06:27] * SightUnseen has left #silverstripe
1159: [20:06:29] * priithansen quit (Quit: priithansen)
1160: [20:07:27] * pex1 quit (Ping timeout: 240 seconds)
1161: [20:08:51] * mobiusnz quit (Client Quit)
1162: [20:09:06] * pex has joined #silverstripe
1163: [20:10:58] * joelpittet quit (Remote host closed the connection)
1164: [20:11:31] * joelpittet has joined #silverstripe
1165: [20:12:10] * mobiusnz has joined #silverstripe
1166: [20:22:08] * pex quit (Quit: pex)
1167: [20:27:41] * joelpittet quit (Remote host closed the connection)
1168: [20:29:26] * mobiusnz quit (Quit: Leaving.)
1169: [20:29:29] * joelpittet has joined #silverstripe
1170: [20:29:54] <Shrike_Finland> Anyone had any problems with oembed and YouTube?
1171: [20:29:56] <simon_w> ss23, any of them
1172: [20:30:15] * simon_w quit (Quit: This computer has gone to sleep)
1173: [20:30:42] <Shrike_Finland> Seems, that embedding not working and printing the code on the page...
1174: [20:39:45] * DigNZ has joined #silverstripe
1175: [20:41:51] * nickmolhoek has joined #silverstripe
1176: [20:46:46] * pex has joined #silverstripe
1177: [20:53:01] * SphereSilverNL has joined #silverstripe
1178: [21:03:27] * trent001 has joined #silverstripe
1179: [21:04:52] * zippy__ has joined #silverstripe
1180: [21:05:59] * MrJeremy has joined #silverstripe
1181: [21:09:50] * simon_w has joined #silverstripe
1182: [21:10:00] <zippy__> Morning
1183: [21:11:43] <guzzlefry> morning
1184: [21:17:12] <MrJeremy> Morning
1185: [21:20:07] <SphereSilverNL> evening
1186: [21:21:57] * MrJeremy quit (Ping timeout: 245 seconds)
1187: [21:22:38] <trent001> Morning
1188: [21:23:14] * MrJeremy has joined #silverstripe
1189: [21:24:20] * Pyromanik has joined #silverstripe
1190: [21:24:35] <SphereSilverNL> Hey Pyromanik !
1191: [21:24:45] <Pyromanik> gidday
1192: [21:24:50] <Pyromanik> figure it out?
1193: [21:24:57] <SphereSilverNL> Solved it: https://github.com/silverstripe/silverstripe-framework/pull/2105
1194: [21:25:48] * willr_ has joined #silverstripe
1195: [21:26:08] <Pyromanik> nice one Simon :D
1196: [21:27:01] <Pyromanik> interesting the doubleup
1197: [21:27:04] <Pyromanik> double-up
1198: [21:27:07] <Pyromanik> double $Up
1199: [21:27:54] <simon_w> Huh? What did I do?
1200: [21:28:32] * mobiusnz has joined #silverstripe
1201: [21:29:38] <Pyromanik> not you
1202: [21:29:42] <Pyromanik> SphereSilverNL:
1203: [21:29:53] <Pyromanik> Our other Simon
1204: [21:30:56] <simon_w> Then don't use something that highlights me? :p
1205: [21:31:38] <SphereSilverNL> Ehm, "Simon" also highlights me simon_w
1206: [21:31:55] <SphereSilverNL> Because ehm... well, it's somewhat my first name too you know :P
1207: [21:32:05] <Pyromanik> gosh, don't be selfish :P
1208: [21:32:05] <willr_> The world revolves around simon_w
1209: [21:32:12] <Pyromanik> willr_: !
1210: [21:32:14] <simon_w> Exactly!
1211: [21:32:25] <SphereSilverNL> STOP HIGHLIGHTING ME!
1212: [21:32:27] <SphereSilverNL> :P
1213: [21:32:30] <simon_w> Almost anytime someone says "simon" in here, it means me :p
1214: [21:32:36] <Pyromanik> willr_: "components array is also updates."
1215: [21:32:53] <Pyromanik> simon_w: not this time.
1216: [21:33:32] <willr_> Pyromanik 90% of the time I'm working on open source I'm either frustratly tired or drunk so excuse my grammar
1217: [21:33:58] <Pyromanik> frustratly!
1218: [21:34:07] <Pyromanik> \o/
1219: [21:34:19] <willr_> Bah mornings.
1220: [21:34:23] <Pyromanik> willr_: I understand, I just like it.
1221: [21:34:49] <willr_> I'm just not good at any time really
1222: [21:35:01] <Pyromanik> http://devopsreactions.tumblr.com/post/52368854242/writing-unit-tests
1223: [21:35:27] <Pyromanik> I imagine this is how everyone in this channel codes.
1224: [21:35:31] <Pyromanik> especially Simon.
1225: [21:35:58] <mobiusnz> what show is that from?
1226: [21:36:18] <SphereSilverNL> Pyromanik: sometimes, it's quite close indeed :P
1227: [21:36:39] <simon_w> Black Books!
1228: [21:36:41] <mobiusnz> I like Tamsin
1229: [21:36:56] <mobiusnz> I don't remember that bit
1230: [21:38:32] <Pyromanik> when to $belongs_to instead of $has_one?
1231: [21:38:49] <Pyromanik> can I use it to clarify a relation?
1232: [21:38:57] <Pyromanik> I'm trying to relate pages to pages
1233: [21:39:22] <Pyromanik> ie, homepage has_many features, where feature has_one page, has_one Homepage
1234: [21:39:31] <simon_w> Pyromanik, when you want a reverse has_one
1235: [21:39:46] <Pyromanik> simon_w: what is definition of reversse has_one?
1236: [21:39:47] <simon_w> I use it when I basically want two has_ones between the same objects
1237: [21:40:03] <simon_w> so A has_one B, B belongs_to A
1238: [21:40:07] <Pyromanik> so... in my example above is good use?
1239: [21:40:15] <Pyromanik> or will the has_one be all good about it?
1240: [21:40:36] <simon_w> It's a has_many, so it needs to be a has_one
1241: [21:40:49] <Pyromanik> right
1242: [21:41:06] <SphereSilverNL> I think Windows is drunk....
1243: [21:41:08] <Pyromanik> well hopefully ss doesn't ghet the confuses.
1244: [21:41:23] <Pyromanik> SphereSilverNL: windows is alwasy durnk. (yes, durnk.)
1245: [21:41:23] <SphereSilverNL> from a 512G disk, it's managing to create a grand total of 3.5TB backup
1246: [21:41:34] <simon_w> Pyromanik, can always use 'Features' => 'Feature.HomePage' or whatever
1247: [21:41:35] <Pyromanik> lol
1248: [21:41:37] <Pyromanik> dem overheads
1249: [21:41:56] <SphereSilverNL> Pyromanik: that's going into a signature!
1250: [21:41:57] <Pyromanik> simon_w: oh rly?
1251: [21:42:01] * zfmf1 has left #silverstripe
1252: [21:42:06] <simon_w> Pyromanik, yup
1253: [21:42:16] <Pyromanik> hmm, sounds legit. thanks simon_w
1254: [21:42:34] <Pyromanik> I think it'll work as is, I just want to ensure there's no confusion (especially in maintainability)
1255: [21:43:31] <Pyromanik> simon_w: so Feature.HomePage doesn't actually skip the feature (as what dot notation normally does) but rather specifies the exact relation thta is ths the inverse
1256: [21:43:44] <simon_w> yup
1257: [21:44:44] <Pyromanik> slightly confuse
1258: [21:44:47] <Pyromanik> but ok
1259: [21:44:53] <Pyromanik> perhaps it should be a : instead of a .
1260: [21:45:05] <Pyromanik> that would prevent confusion I think.
1261: [21:45:22] * DigNZ quit (Quit: DigNZ)
1262: [21:47:27] * tankr has joined #silverstripe
1263: [21:48:53] <SphereSilverNL> Ok, I found out why I need over 1TB of backup space
1264: [21:49:03] <SphereSilverNL> Windows is making a backup of my NAS...
1265: [21:49:09] <SphereSilverNL> DAFUQ?
1266: [21:49:43] <guzzlefry> can never be too safe :P
1267: [21:51:00] <SphereSilverNL> It's in an endless loop now, backing up the backup while the backup is being written, thus backing up the endlessly growing backup file....
1268: [21:56:15] <Pyromanik> winderps
1269: [21:56:34] <SphereSilverNL> It's making a backup of the backup, while backing up my backup.
1270: [21:56:58] <SphereSilverNL> I've never heard a better "I heard you like backups" method before....
1271: [21:59:41] <simon_w> Mavericks time!
1272: [22:00:27] <SphereSilverNL> Eh?
1273: [22:00:32] <simon_w> 10.9
1274: [22:00:37] <SphereSilverNL> ah
1275: [22:00:43] * SphereSilverNL doesn't like OSX
1276: [22:01:52] <simon_w> luck you
1277: [22:01:56] <simon_w> lucky you
1278: [22:02:08] <SphereSilverNL> plus, my MBP is not really mine, so I'm gonna let my boss pay for everything if I want it upgraded :P
1279: [22:02:27] <SphereSilverNL> Personally, I prefer Linux and Windows over OSX any time.
1280: [22:04:51] * DigNZ has joined #silverstripe
1281: [22:04:53] * DigNZ quit (Remote host closed the connection)
1282: [22:05:01] <SphereSilverNL> That was a quick visit?
1283: [22:05:07] * DigNZ has joined #silverstripe
1284: [22:08:36] * simon_w quit (Quit: Leaving)
1285: [22:08:47] <MrJeremy> ClassInfo::implementorsOf, is this going to replace extensions?
1286: [22:09:04] <Pyromanik> shouldn't do
1287: [22:09:07] <Pyromanik> should just give you info.
1288: [22:10:01] * SphereSilverNL quit (Remote host closed the connection)
1289: [22:11:05] * SphereSilverNL has joined #silverstripe
1290: [22:13:22] * gelignite quit (Quit: http://bit.ly/nkczDT)
1291: [22:13:36] <guzzlefry> So for the tutorial, do I pull something from Git?
1292: [22:14:03] <SphereSilverNL> The installer?
1293: [22:14:43] <guzzlefry> I remember seeing a tutorial folder somewhere...let me recheck. :P
1294: [22:15:20] * SphereSilverNL needs issues
1295: [22:15:25] <SphereSilverNL> no issues is boring!
1296: [22:15:30] <guzzlefry> perhaps I'm just going crazy. :P
1297: [22:15:42] <SphereSilverNL> You can't go where you already are :D
1298: [22:16:21] <guzzlefry> pft, you can do anything when you're crazy.
1299: [22:16:44] <SphereSilverNL> That's something else ;)
1300: [22:16:53] <SphereSilverNL> You can't go crazy if you already are crazy :P
1301: [22:17:49] <guzzlefry> fine :P
1302: [22:18:36] <SphereSilverNL> brb, gotta give my modem a reboot
1303: [22:18:42] <SphereSilverNL> (aka kick it out the window)
1304: [22:20:50] * SphereSilverNL_ has joined #silverstripe
1305: [22:21:32] * SphereSilverNL_ is now known as SphereSilver
1306: [22:23:28] * SphereSilverNL quit (Ping timeout: 264 seconds)
1307: [22:23:52] * SphereSilver is now known as SphereSilverNL
1308: [22:29:47] * willmorgan1 quit (Read error: Connection reset by peer)
1309: [22:31:25] * RojoD quit (Read error: Connection reset by peer)
1310: [22:35:22] <Pyromanik> SphereSilverNL: plenty of open issues on github! :P
1311: [22:38:28] * SphereSilverNL quit (Ping timeout: 264 seconds)
1312: [22:45:32] * gumble quit (Ping timeout: 252 seconds)
1313: [22:46:44] * SphereSilverNL has joined #silverstripe
1314: [22:49:14] <SphereSilverNL> BSoD
1315: [22:50:57] * guci0 has joined #silverstripe
1316: [22:51:07] <guci0> :)
1317: [22:52:01] * gumble has joined #silverstripe
1318: [22:57:38] * gumble quit (Ping timeout: 252 seconds)
1319: [22:58:36] <mobiusnz> If I use <meta charset="utf-8">, should I use "&#257;" or "ū" in the content?
1320: [23:01:52] <mobiusnz> ah, looking at http://stackoverflow.com/questions/4696499/meta-charset-utf-8-vs-meta-http-equiv-content-type#answer-7134485 says to use ū
1321: [23:07:38] * DigNZ quit (Quit: DigNZ)
1322: [23:11:10] * gumble has joined #silverstripe
1323: [23:12:53] * guci0 quit (Ping timeout: 250 seconds)
1324: [23:14:27] * DigNZ has joined #silverstripe
1325: [23:14:27] * DigNZ quit (Remote host closed the connection)
1326: [23:14:42] * DigNZ has joined #silverstripe
1327: [23:15:53] * DigNZ quit (Client Quit)
1328: [23:17:10] * gumble quit (Ping timeout: 252 seconds)
1329: [23:18:31] * Peavers has joined #silverstripe
1330: [23:20:01] * Colin[pi] has joined #silverstripe
1331: [23:20:07] <Colin[pi]> good morning all
1332: [23:20:27] <Peavers> ello
1333: [23:20:33] <SphereSilverNL> g'night
1334: [23:20:52] <Colin[pi]> you crazy dutchies :D
1335: [23:21:01] <SphereSilverNL> I'm not crazy!
1336: [23:21:05] <Peavers> Anyone want to lend some advice for functions on dataobjects?
1337: [23:21:06] <Colin[pi]> ;)
1338: [23:21:08] <SphereSilverNL> wait... just a sec....
1339: [23:21:15] <SphereSilverNL> yeah, I'm crazy it seems :(
1340: [23:21:21] <Colin[pi]> hehe
1341: [23:22:19] <Colin[pi]> killed my keyboard yesterday :(
1342: [23:22:21] <Colin[pi]> coffee
1343: [23:22:30] <Colin[pi]> it wasn't very happy after
1344: [23:22:43] <SphereSilverNL> Get a keyboard that drinks coffee?
1345: [23:22:53] <Colin[pi]> went and got a mechnical one
1346: [23:22:57] <Colin[pi]> clacky CLACKY CLICK
1347: [23:23:07] <SphereSilverNL> Logitech K530
1348: [23:23:13] <Colin[pi]> razer blackwidow
1349: [23:23:19] <SphereSilverNL> It's not mechanical, but makes the sound, close to the same feeling
1350: [23:23:22] <SphereSilverNL> and most important
1351: [23:23:24] <Peavers> eww blackwidwos are filtyh keyboards
1352: [23:23:29] <SphereSilverNL> liquid-resistant
1353: [23:23:29] <Colin[pi]> ehh it's ok
1354: [23:23:37] <Colin[pi]> feels nice to type on :)
1355: [23:23:40] <Peavers> should have gone with a Ducky ;)
1356: [23:24:00] <Colin[pi]> is that the washable one SphereSilver?
1357: [23:24:46] <Colin[pi]> ah no it's not
1358: [23:24:50] <Colin[pi]> I was thinking of this one: http://capetownguy.co.za/wp-content/uploads/2013/05/logitech-k310-washable-keyboard.jpg
1359: [23:24:55] <Colin[pi]> but it feels horrible to type on
1360: [23:25:40] <Peavers> How does one loop a function on a template inside another loop when the functions belong to different classes?
1361: [23:26:03] <SphereSilverNL> Here's a fun image. This is my current keyboard
1362: [23:26:17] <SphereSilverNL> Taken in the shower, because beer is sticky
1363: [23:26:34] <SphereSilverNL> https://www.dropbox.com/s/1i825t9ptgr7nks/2013-06-17%2001.24.52.jpg
1364: [23:27:02] <Colin[pi]> uhhhh... what is that on the left?
1365: [23:27:04] <Colin[pi]> o_O
1366: [23:27:08] * DigNZ has joined #silverstripe
1367: [23:27:17] <SphereSilverNL> My hand with the beer :)
1368: [23:27:27] <Colin[pi]> oh jesus thank christ for that
1369: [23:27:45] <SphereSilverNL> it looks weirder than I intended :/
1370: [23:27:50] <Colin[pi]> lol
1371: [23:27:54] <SphereSilverNL> it's just my keyboard covered in beer
1372: [23:28:01] <Colin[pi]> for fun?
1373: [23:28:04] <SphereSilverNL> beer is foamy stuff
1374: [23:28:28] <SphereSilverNL> yeh, here's my keyboard after a short rinse: https://www.dropbox.com/s/g0d8g7fscbph024/2013-06-17%2001.26.21.jpg
1375: [23:28:35] <SphereSilverNL> this is the same keyboard
1376: [23:28:42] <SphereSilverNL> and actually, the same beer even.
1377: [23:29:07] <Colin[pi]> heh I used to have the same speakers
1378: [23:29:13] <Colin[pi]> so it's water resistant?
1379: [23:29:33] <SphereSilverNL> Yeah, the K530 is liquid-resistant
1380: [23:30:07] <SphereSilverNL> works like a charm, all I have to do when liquid makes the keys feel unnatural, just wash the deck
1381: [23:30:18] <Colin[pi]> you're braver than I, I don't like to get them intentionally wet
1382: [23:30:30] <SphereSilverNL> Couldn't care less :P
1383: [23:30:34] <Colin[pi]> hehe
1384: [23:31:02] <SphereSilverNL> she works, no matter what.
1385: [23:31:20] <SphereSilverNL> it's not mechanical, but the feeling is quite close to mechanic switches.
1386: [23:31:23] <Colin[pi]> nice :)
1387: [23:32:16] <SphereSilverNL> and it takes everything. A few years ago, I had the predecessor, the "Logitech Wave" keyboard. I was then a student.
1388: [23:32:33] <SphereSilverNL> For fun, I tried to type my entire thesis while showering
1389: [23:32:48] <SphereSilverNL> I graduated
1390: [23:33:03] <Colin[pi]> hehehe
1391: [23:33:06] * travis-ci has joined #silverstripe
1392: [23:33:06] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#313 (3.1 - 04c337d : Ingo Schommer): The build passed.
1393: [23:33:06] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/3fb80a1657e1...04c337dc8242
1394: [23:33:06] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8144082
1395: [23:33:06] * travis-ci has left #silverstripe
1396: [23:33:21] <SphereSilverNL> the thing is waterproof I guess :P
1397: [23:40:49] <Pyromanik> Peavers: shoot your question!
1398: [23:46:43] <SphereSilverNL> Trying this solo
1399: [23:46:44] <SphereSilverNL> https://www.youtube.com/watch?v=wG7r32tQTak
1400: [23:46:52] <SphereSilverNL> from 2:45
1401: [23:47:05] <Peavers> I've got my fancy function that does some math stuff in a class that extends page, but it does math stuff on items in the database that come from a class that extends dataobject, I feel as if the function should be in the class that extends dataobject rather than the page?
1402: [23:48:04] <SphereSilverNL> Although I'm not following rules on this....
1403: [23:48:22] <SphereSilverNL> Yeah, you should have it in your object instead of your page.
1404: [23:48:41] <Peavers> when does a function on an object get called?
1405: [23:48:47] <Peavers> when its referenced in the template?
1406: [23:49:18] <SphereSilverNL> ehm, when you call it?
1407: [23:50:59] <Pyromanik> yeah
1408: [23:51:01] <Pyromanik> when you call it
1409: [23:51:24] <Peavers> so my function has $times = $this->AgendaItems(); and AgendaItems is the dataobject class, so I move the function to that class obviously it doesn't work because AgendaItems doesn't exist in itself?
1410: [23:51:59] <SphereSilverNL> Your page has the correct children?
1411: [23:52:11] <Peavers> Yeah I think so
1412: [23:52:38] <SphereSilverNL> If you address the page's children, you can address it's functions
1413: [23:53:17] <SphereSilverNL> The has_many addressing works.
1414: [23:53:22] <Peavers> http://www.sspaste.com/paste/show/51be4fa8e8b6c
1415: [23:53:34] <Peavers> the function is referencing itself...
1416: [23:53:39] <Peavers> well, its class
1417: [23:53:42] <Peavers> which blows up
1418: [23:53:55] <SphereSilverNL> It's not referencing itself
1419: [23:54:03] <SphereSilverNL> it's referencing "Meeting"
1420: [23:54:25] <SphereSilverNL> It's ok to reference it's own class
1421: [23:54:31] <SphereSilverNL> although not prefered
1422: [23:54:44] <SphereSilverNL> but you are referencing something else
1423: [23:55:01] <Peavers> If I try and call that function now I get "the method 'agendaitems' does not exist on 'MeetingAgenda'"
1424: [23:55:27] <SphereSilverNL> $has_one = array( 'Meeting' => 'MeetingAgenda' );
1425: [23:55:28] <Peavers> because it doesn't, but should I be adding it or completely changing my function?
1426: [23:56:26] <Pyromanik> mad because bad request
1427: [23:56:28] <Pyromanik> wtf
1428: [23:56:38] <SphereSilverNL> I'm not mad :)
1429: [23:56:39] <Pyromanik> upload field sometimes you troll me so :<
1430: [23:56:56] <SphereSilverNL> Upload is always a troublemaker
1431: [23:56:59] <Peavers> lol SphereSilverNL that just blew the entire thing
1432: [23:57:04] <SphereSilverNL> setting the extensions and stuff
1433: [23:57:09] <SphereSilverNL> really? It shouldn't
1434: [23:57:12] <Peavers> [User Error] Couldn't run query: SELECT DISTINCT "MeetingAgenda"."ClassName", "MeetingAgenda"."Created", "MeetingAgenda"."LastEdited", "MeetingAgenda"."Topic", "MeetingAgenda"."Owner", "MeetingAgenda"."Minutes", "MeetingAgenda"."Start", "MeetingAgenda"."MeetingID", "MeetingAgenda"."ID", CASE WHEN "MeetingAgenda"."ClassName" IS NOT NULL THEN "MeetingAgenda"."ClassName" ELSE 'MeetingAgenda'
1435: [23:57:13] <Peavers> END AS "RecordClassName" FROM "MeetingAgenda" WHERE ("ParentID" = '178') Unknown column 'ParentID' in 'where clause'
1436: [23:57:31] <SphereSilverNL> You didn't run a build, did you?
1437: [23:57:36] <Pyromanik> forgot to has_one your revrse relation?
1438: [23:57:37] <Peavers> yeah I did
1439: [23:57:40] <Peavers> it didn't build anything though
1440: [23:57:45] <Pyromanik> forgot to has_one your revrse relation?
1441: [23:58:23] <SphereSilverNL> always make sure you have the one-to-many relation working. And do a build. Make sure the referenced object is in the DB ;)
1442: [23:59:03] <Peavers> Not sure I follow Peavers
1443: [23:59:05] <Peavers> Pyromanik
1444: [23:59:06] <Peavers> lol
1445: [23:59:38] <Pyromanik> if(!$token->checkRequest($request)) return $this->httpError(400);
1446: [23:59:40] <Pyromanik> :< hmm
1447: [23:59:53] <Pyromanik> Peavers: if you have a relation

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