#silverstripe IRC Log

IRC log for 26 February 2014

All timestamps are in UTC.

1: [00:02:38] <antmas> lol
2: [00:08:13] * wmk quit (Ping timeout: 272 seconds)
3: [00:10:37] * wmk has joined #silverstripe
4: [00:18:21] * zippy___ quit (Ping timeout: 256 seconds)
5: [00:26:13] * UncleCheese has joined #silverstripe
6: [00:28:04] * ryan_ has joined #silverstripe
7: [00:28:12] <ryan_> hello
8: [00:28:59] <ryan_> can anybody help me with using the SS2.4 CMS sidebar image uploader.... I need to know how that's creating entries in my File table, as it doesn't seem to use File.php or Image.php and I need to trigger an onAfterWrite
9: [00:33:19] <simon_w> ryan_, it'll call onAfterWrite on Image automatically
10: [00:34:18] <ryan_> how do you mean?
11: [00:34:38] <ryan_> i've there is no onAfterWrite in Image.php
12: [00:35:15] <ryan_> ive got an alert in File.php inside onAfterWrite, but the cms sidebar image upload form doesn't trigger it
13: [00:35:33] <ryan_> so i dont think it writes in the same way as the usual image fields?
14: [00:35:48] <ryan_> (im talking about the crappy little editor toolbar image form in the CMS sidebar)
15: [00:42:51] <Ryan-Toast> I keep thinking you're asking me a question.
16: [00:44:52] <ryan_> sorry
17: [00:45:58] <Ryan-Toast> ryan_: Lol, no need to apologise man.
18: [00:46:59] * muskie9 has joined #silverstripe
19: [00:51:58] * MavKen has joined #silverstripe
20: [00:58:10] <Ryan-Toast> If you use DataObject::get()->filter() using two arrays will they compare the entire array, or individual values
21: [00:58:56] <simon_w> Ryan-Toast, what do you mean?
22: [00:59:10] <simon_w> ryan_, it should still be going through the File object
23: [00:59:19] <ryan_> yeh doesnt seem to be
24: [00:59:58] <Ryan-Toast> simon_w: I realise that I was being a reatrd.
25: [01:00:37] * Tanger has joined #silverstripe
26: [01:02:11] * UncleCheese_ has joined #silverstripe
27: [01:05:21] * UncleCheese_ quit (Client Quit)
28: [01:05:48] <MavKen> I am about to install silverstripe on a new vps, running ubuntu. Any recommendations on something to install for the php scripts to send out mail? I don't need a full blown mail server. All the tutorials I see are about a full mail server setup. There must be something light I can use.
29: [01:06:46] <simon_w> MavKen, apt-get install postfix
30: [01:06:57] <antmas> simon_w: MavKen plus1
31: [01:07:00] <antmas> +1*
32: [01:07:10] <MavKen> that seemed like a lot of config work
33: [01:07:21] <simon_w> MavKen, no config required to only send
34: [01:07:26] <MavKen> if I use tasksel to install mail server would that be enough?
35: [01:07:29] <MavKen> ok
36: [01:16:28] * an_Eskimo quit (Ping timeout: 245 seconds)
37: [01:16:56] <ryan_> @MavKen i would always suggest using something like sendgrid if you can for email
38: [01:20:02] <Ryan-Toast> DataObject::get()->filter('Parent.ID', $arrayOfIDs); should work, right?
39: [01:20:25] <simon_w> Ryan-Toast, in 3.1
40: [01:20:35] <Ryan-Toast> simon_w: Yeah, using 3.1.
41: [01:22:19] * wilson-staff has joined #silverstripe
42: [01:22:53] <wilson-staff> Sill trying to diagnose that damn JS error when i add new page to the CMS
43: [01:25:13] * ryan_ quit (Ping timeout: 245 seconds)
44: [01:25:14] <wilson-staff> Error shows in lib.js Error: Syntax error, unrecognized expression:
45: [01:25:15] <Ryan-Toast> simon_w: Is what I have: http://www.sspaste.com/paste/show/530d3f1d86fa4
46: [01:25:45] * camfindlay quit (Quit: camfindlay)
47: [01:26:04] * antmas quit (Ping timeout: 245 seconds)
48: [01:26:47] <simon_w> Ryan-Toast, and?
49: [01:27:01] <Ryan-Toast> simon_w: The object it returns is empty.
50: [01:27:19] <simon_w> Are there any clients in those countries?
51: [01:27:58] <simon_w> Also, is it false or a DataList with a 0 count?
52: [01:32:32] <Ryan-Toast> simon_w: there are clients in the countries. The object is returned but it doesn't have any clients in it that I can see.
53: [01:32:55] <simon_w> Ryan-Toast, ?showqueries=1 to make sure it's doing what you think it should
54: [01:33:33] * Bollig|DesignCty hates on 3.1's change to make ADMIN roles ignore CanCreate() etc
55: [01:33:38] * Bollig|DesignCty blames simon_w
56: [01:34:06] <simon_w> Bollig|DesignCty, isn't a 3.1 change
57: [01:34:28] <Bollig|DesignCty> That doesn't change my level of hatred at all.
58: [01:34:40] <guzzlefry> I'm going to regret avoiding the Framework's form stuff, aren't I? :P
59: [01:34:58] <simon_w> You can override canCreate() on the actual object to change the behaviour. Won't work in a DataExtension
60: [01:35:01] <simon_w> guzzlefry, maybe :p
61: [01:36:05] <Bollig|DesignCty> simon_w: from what I can see, it's hardcoded on DataObject class can() method
62: [01:36:11] <Ryan-Toast> simon_w: Ah, seems to be the DataObjectAsPage is fucking it up.
63: [01:37:12] <Bollig|DesignCty> simon_w: api.silverstripe.org/3.1/source-class-DataObject.html#2493
64: [01:37:32] * antmas has joined #silverstripe
65: [01:38:14] <simon_w> Bollig|DesignCty, SiteTree subclass?
66: [01:38:26] <simon_w> (the can method is seldom used)
67: [01:39:34] <simon_w> http://api.silverstripe.org/3.1/source-class-SiteTree.html#993-998 is what needs to be overridden
68: [01:41:07] <Ryan-Toast> Does Aram Balakjian ever come on IRC?
69: [01:42:28] * guzzlefry has left #silverstripe
70: [01:43:20] <antmas> w00t free candy floss
71: [01:43:43] <Stevie> @simon_w - can you not add an extension to a class and define the can*() classes on it?
72: [01:44:27] * zippy___ has joined #silverstripe
73: [01:45:39] * violetina quit (Remote host closed the connection)
74: [01:46:54] <simon_w> Stevie, they're called after the ADMIN check on SiteTree objects
75: [01:48:56] <wilson-staff> Is it normal that on the FTP uplaod to server, some files said to be identical, so not transfered? This is a fresh new install.....
76: [01:49:47] <Stevie> oh, I see - sorry moment of panic that I'd been using something undocumented which works :P
77: [01:50:10] <Stevie> wilson-staff: always override everything
78: [01:52:53] * OxFF1 quit (Quit: Hasta la proxima)
79: [01:55:36] <MavKen> is there a settings page to enable clean urls?
80: [01:59:14] * geekdenz has left #silverstripe
81: [02:00:31] <MavKen> weird... no where in settings is a place to enable clean urls... is it not as easy as the setting in wordpress?
82: [02:01:06] <simon_w> MavKen, you need to enable mod_rewrite and AllowOverride in your apache config
83: [02:01:15] <MavKen> both are done
84: [02:01:42] <MavKen> still showing as domain.com/index.php/home
85: [02:01:48] <simon_w> So what happens if you take index.php out of the URLs?
86: [02:03:34] * wilson-staff quit (Ping timeout: 245 seconds)
87: [02:03:54] <Colin[pi]> I just rename the index.php - problem solved
88: [02:03:57] <MavKen> ahh..it works... now how do I update the "url segment" to take out the index.php part when im on the edit page?
89: [02:04:17] <MavKen> because pages in the menu include index.php
90: [02:04:25] <simon_w> MavKen, just delete index.php
91: [02:04:44] <simon_w> If you're going through index.php, you get it showing up in the CMS URLs
92: [02:04:46] <Colin[pi]> or rename if you want it again ;P
93: [02:05:10] * simon_w just doesn't run Apache 2.4
94: [02:05:24] <simon_w> ss23, BRING ME CANDIES
95: [02:05:29] <MavKen> oh ok..renamed that works...that was easy
96: [02:05:38] <MavKen> this looks pretty sweet
97: [02:05:56] <simon_w> MavKen, Apache 2.4 changed the order of somethings, so index.php gets used before rewrites, which is rather annoying
98: [02:06:31] <MavKen> yeah...im on ubuntu 13.10... even the addition of .conf to virtual host files took some time to figure out
99: [02:08:08] <Ryan-Toast> If I use return Country::get()->byIDs($currentCountryIDs); and I can loop through $Client in the template, how can I get the Clients directly from the ::get()?
100: [02:08:30] <MavKen> will it parse php entered on to the pages?
101: [02:08:50] <simon_w> MavKen, no
102: [02:09:18] <zippy___> Ryan-Toast: Sorry I don't understand, what?
103: [02:09:54] <Ryan-Toast> zippy___: I'm getting countries by IDS, and they all have dataObjects that are called Clients.
104: [02:10:15] <Ryan-Toast> With Country::get()->byIDs($currentCountryIDs); I can loop through them, and then loop through $Client
105: [02:10:46] <Ryan-Toast> But I want to just loop through the clients, not the cointries first. So something like Country::get()->byIDs($currentCountryIDs)->Clients();
106: [02:12:45] <zippy___> Ryan-Toast: I think there is a where in method, so why not Clients::get(){wherein code here};
107: [02:12:51] <zippy___> lemme see if I can find it
108: [02:13:22] <simon_w> Ryan-Toast, Country::get()->byIDs($currentCountryIDs)->relation('Clients')
109: [02:14:05] <Ryan-Toast> simon_w: the method 'clients' does not exist on 'Country'
110: [02:14:22] <zippy___> Ryan-Toast: return Clients::get()->filter('CountryID', $currentCountryIDs);
111: [02:14:36] <MavKen> if it doesnt parse php, how can you create a contact form?
112: [02:14:55] <simon_w> MavKen, have a look at the UserDefinedForms module
113: [02:15:09] <MavKen> ok
114: [02:15:23] <Ryan-Toast> zippy__: Unknown column 'CountryID' in 'where clause' I tried Country.ID too
115: [02:15:41] <zippy___> Ryan-Toast: How are the countires joined to the clients?
116: [02:15:51] <simon_w> Ryan-Toast, you haven't set up the relationship?
117: [02:16:02] <Ryan-Toast> Country many_many clients
118: [02:16:39] <Ryan-Toast> and Clients belongs_many countries
119: [02:16:49] <Ryan-Toast> belongs_many_many**
120: [02:22:11] <ss23> simon_w: NOPE
121: [02:22:45] <simon_w> WELL FINE THEN
122: [02:22:50] * simon_w quit (Quit: Leaving)
123: [02:23:08] <antmas> lol
124: [02:34:00] <zippy___> antmas: fack it's getting hot
125: [02:34:12] <zippy___> new desk arrives today!! 2.1 metre long monstor
126: [02:37:41] <Ryan-Toast> That's like me lying down.
127: [02:38:26] <zippy___> then it goes around a corner and another 1.6 m
128: [02:38:39] <zippy___> probably a litle overkill
129: [02:40:44] <Ryan-Toast> zippy___: I emailed the creator of dataObjectAsPage, and asked him how to get filters working.
130: [02:41:28] <UncleCheese> there's a module for data objects as pages?
131: [02:41:35] <UncleCheese> that seems so useless
132: [02:41:51] <Ryan-Toast> UncleCheese: Why?
133: [02:42:05] <UncleCheese> what does it do that doesn't take you five minutes to do yourself?
134: [02:42:20] <Ryan-Toast> UncleCheese: Save 5 minutes?
135: [02:42:24] <UncleCheese> ha
136: [02:42:27] <UncleCheese> module bloat
137: [02:42:30] <UncleCheese> bleh
138: [02:42:44] <Ryan-Toast> UncleCheese: How would you display a dataObject as a page?
139: [02:42:47] <UncleCheese> i have the main menu module
140: [02:42:57] <UncleCheese> it's got this sweet template that comes with it
141: [02:43:54] * muskie9 quit (Remote host closed the connection)
142: [02:44:02] <Ryan-Toast> UncleCheese: ^
143: [02:44:05] <antmas> zippy___: yeah it is actually
144: [02:44:15] * MavKen quit (Remote host closed the connection)
145: [02:44:16] <antmas> and it's my first day not wearing shorts in weeks
146: [02:44:17] <UncleCheese> public function show(SS_HTTPRequest $r) { return array ('SomeObject' => Something::get()->byID($r->param('ID')) ); }
147: [02:44:28] * simon_w has joined #silverstripe
148: [02:45:13] <antmas> zippy___: bit late in the day for courier isn't it?
149: [02:45:22] <Ryan-Toast> UncleCheese: and your template would just be dataObject_show.ss?
150: [02:45:57] <simon_w> ss23, I went and got my own candies, no thanks to you!
151: [02:46:25] <UncleCheese> it can be anything you want
152: [02:46:45] <UncleCheese> renderWith($someTemplate)
153: [02:47:13] <Ryan-Toast> UncleCheese: how would the URLs work linking directly to the dataObjects?
154: [02:47:50] <UncleCheese> j
155: [02:48:18] <UncleCheese> i can't type urls
156: [02:48:21] <UncleCheese> it keeps refusing them
157: [02:48:24] <Ryan-Toast> lol
158: [02:48:33] <Ryan-Toast> put them in brackets.
159: [02:48:36] <UncleCheese> ah
160: [02:48:39] <Ryan-Toast> [http://herpderp.com]
161: [02:48:47] <UncleCheese> [/some-page/show/some-object]
162: [02:48:58] * antmas clicks herpderp link
163: [02:48:58] <zippy___> oh yea you can't start with a /
164: [02:49:07] * zippy___ shakes head at UncleCheese
165: [02:49:20] <UncleCheese> is that some IRC convention?
166: [02:49:21] <zippy___> and that starts an irc command…. /me someting or /join channel
167: [02:49:22] <Ryan-Toast> UncleCheese: some-onbject would have to be the ID tough, wouldn't it?
168: [02:49:24] <UncleCheese> did I anger the chat gods?
169: [02:49:32] <Colin[pi]> Ryan-Toast: you need to do the URLSegment stuff yourself
170: [02:49:35] <UncleCheese> Ryan-Toast: sometimes.. I usually add a URLSegment field
171: [02:49:39] * Ryan-Toast realised this is how you do that
172: [02:49:48] <zippy___> UncleCheese: starts an irc command… just like in skype
173: [02:50:01] <Ryan-Toast> UncleCheese: This is why I used aModule, I didn't know any of this stuff ><
174: [02:50:24] <Ryan-Toast> UncleCheese: I'll write it into the dataObjects.
175: [02:50:31] <Ryan-Toast> and delete the module.
176: [02:50:39] <ss23> simon_w: aw :(
177: [02:50:41] <Ryan-Toast> and hopefully succeed.
178: [02:50:42] <ss23> simon_w: soz, very busy today
179: [02:50:46] <ss23> simon_w: you coming to locksport tonight?
180: [02:50:48] <Colin[pi]> Ryan-Toast: you also need to check for dupe URLSegment onBeforeWrite too
181: [02:51:12] <Ryan-Toast> Colin[pi]: and add an integer at the end or something?
182: [02:51:17] <Colin[pi]> yeah
183: [02:51:26] <UncleCheese> Ryan-Toast: http://sspaste.com/paste/show/530d5347c7f40
184: [02:51:28] <Colin[pi]> there is code that does this in SiteTree I think
185: [02:51:38] <UncleCheese> MyObject: extensions: [ Sluggable ]
186: [02:51:47] <Colin[pi]> dat extension, nice
187: [02:52:01] <UncleCheese> needs updating
188: [02:52:08] <UncleCheese> all kinds of old patterns in there
189: [02:52:13] <UncleCheese> but works in 3.1.x
190: [02:52:36] <Ryan-Toast> UncleCheese: I just put that in my .yml, right?
191: [02:52:43] <UncleCheese> yeah
192: [02:52:48] <UncleCheese> MyObject:
193: [02:52:52] <UncleCheese> extensions:
194: [02:52:57] <UncleCheese> - Sluggable
195: [02:53:56] <antmas> what's the point in slugs? readibility?
196: [02:54:06] <Ryan-Toast> UncleCheese: and that way I can just use it's create_slug method in the onBeforeWrite of my DataObject?
197: [02:54:20] <UncleCheese> no, it should happen automatically
198: [02:54:25] <Ryan-Toast> UncleCheese: Ballin'
199: [02:54:27] <Colin[pi]> antmas: and good for SEO
200: [02:54:28] <UncleCheese> the extension has its own on before write
201: [02:54:38] <antmas> solah right
202: [02:54:41] <UncleCheese> and you can invoke Sluggable::get_by_slug()
203: [02:54:44] <Ryan-Toast> UncleCheese: So I don't need a parent:onBeforeWrite or anyhting?
204: [02:54:55] <antmas> solah? wtf
205: [02:55:00] <UncleCheese> no.. extension instances get their on onbefore/after write hooks
206: [02:55:22] <Ryan-Toast> UncleCheese: Okay, I SHALL GIVE IT A GO!
207: [02:55:27] * Ryan-Toast prays
208: [02:55:37] <UncleCheese> public function show($request) { $object = Sluggable::get_by_slug("SomeClass", $r->param('ID')); }
209: [02:58:17] <antmas> Ryan-Toast: well, you gotta herp before you derp
210: [02:59:17] <Ryan-Toast> UncleCheese: Hmm, Sluggable doesn't seem to be a class.
211: [02:59:29] <UncleCheese> sure it is
212: [02:59:35] <UncleCheese> Sluggable extends DataExtension
213: [02:59:51] <Colin[pi]> do /dev/build ?
214: [02:59:56] <Ryan-Toast> Oh, my mistake. I thought it was a part of SS already.
215: [03:00:06] <UncleCheese> no, it's my shit code
216: [03:00:15] <Colin[pi]> lol
217: [03:00:50] * UncleCheese quit (Quit: UncleCheese)
218: [03:17:37] <antmas> http://www.stuff.co.nz/world/americas/9766922/Couple-stumble-over-12m-in-old-gold
219: [03:17:41] <antmas> man
220: [03:17:43] <simon_w> Well, looks like I just found a SQLi in the CMS
221: [03:17:48] <antmas> awesome score :D
222: [03:17:56] <simon_w> That was easy
223: [03:17:58] <antmas> simon_w: :O yeah?
224: [03:18:36] <simon_w> antmas, yes. Just need to wait for php5.5 to finish updating to check, but there's nothing stopping this
225: [03:18:57] <antmas> simon_w: cray
226: [03:19:22] <simon_w> Only thing it has going for it is it doesn't work with a default configuration
227: [03:19:59] <Colin[pi]> antmas: see why doesn't anything like that ever happen to me?
228: [03:20:06] <antmas> Colin[pi]: IKR
229: [03:20:12] <Colin[pi]> ;_;
230: [03:20:24] <antmas> I get excited when I find $1 in my glovebox
231: [03:20:29] <Colin[pi]> lol
232: [03:20:43] <antmas> hooray! 1 hour parking!
233: [03:21:37] <antmas> oh yeah
234: [03:21:49] <antmas> my father in law crashed his harley last night
235: [03:22:15] <antmas> sqaushed his ring finger under the clutch lever down to a boney bulp :O
236: [03:22:19] <Colin[pi]> oh shit
237: [03:22:25] <Colin[pi]> that sucks, he ok now?
238: [03:22:47] <antmas> yeah, he stayed at our house last night and I took him to hospital for a booked finger surgery
239: [03:22:55] <Colin[pi]> eek
240: [03:23:00] <Colin[pi]> bike screwed?
241: [03:23:06] <antmas> but you know those phonecalls you get... 'there's been an accident...'
242: [03:23:18] <antmas> Colin[pi]: nah, suprisingly not
243: [03:23:31] <antmas> a couple of scrapes and a bent lever
244: [03:23:51] * UncleCheese has joined #silverstripe
245: [03:23:52] <Colin[pi]> yeah the worst kind of phone call :(
246: [03:24:56] * pippy_ is now known as pippy
247: [03:27:24] * antmas quit (Quit: Page closed)
248: [03:28:10] * zippy___ quit (Ping timeout: 256 seconds)
249: [03:30:16] <simon_w> Well, that was easy. I guess I should email security about that
250: [03:30:24] <simon_w> ss23, YOU'RE GOING TO GET AN EMAIL
251: [03:30:38] <ss23> :O
252: [03:30:42] * ss23 gets nervous
253: [03:31:11] <simon_w> Remove one of the default replacements from URLSegmentFilter, and boom, SQLI in the CMS
254: [03:31:17] <ss23> aw snap
255: [03:31:20] <ss23> that does sound bad
256: [03:31:24] <ss23> Though luckily a low impact
257: [03:31:30] <simon_w> Yeah
258: [03:31:31] <ss23> Since you need to edit code to hit that in the first place
259: [03:31:42] <simon_w> And really easy to fix
260: [03:31:48] <simon_w> So I'll even include a .patch!
261: [03:32:00] <ss23> psh
262: [03:32:06] <ss23> Low impact! I'd just directly PR on Github
263: [03:32:07] <ss23> :D
264: [03:32:10] <ss23> Though I can bet people would rage
265: [03:32:10] <ss23> :P
266: [03:32:16] <simon_w> Yeah
267: [03:32:25] <simon_w> Especially since they won't be able to patch CWP first
268: [03:33:45] <FrozenFire> Anyone live in Gladstone?
269: [03:34:36] <simon_w> My guess is yes
270: [03:34:47] <FrozenFire> Good to know
271: [03:34:54] <FrozenFire> I was worried it was a made-up place
272: [03:42:31] * chillu_23 quit (Quit: chillu_23)
273: [03:48:21] <Zauberfi1ch> haha
274: [03:50:44] <Colin[pi]> <@simon_w> My guess is yes <--- lol
275: [03:51:37] <ss23> simon_w: lol @ patch CWP first comment
276: [03:51:38] <ss23> you make me sad
277: [03:51:39] <ss23> :(
278: [03:51:48] <Zauberfi1ch> simon_w ss23: well, the cat is out the bag now anyway. no point in sending a patch over PR
279: [03:53:05] <Zauberfi1ch> and I'd say low impact is an over statement here. Who has a custom url segment filter anyway?
280: [03:54:01] <ss23> Better not to invoke the wrath of the Friedlander anyway
281: [03:54:02] <ss23> :O
282: [03:54:13] <Zauberfi1ch> ^^
283: [03:54:45] <Colin[pi]> lol
284: [03:55:01] <Bollig|DesignCty> …Picking up where I left off, anyone know why the changes to can() and canCreate() were made to always allow admins to override? Seems like a strange change that actually leaves me with less flexibility...
285: [03:55:14] <Bollig|DesignCty> Again, I blame simon_w. OOH! I mean ss23 :D
286: [03:55:16] * SightUnseen has joined #silverstripe
287: [03:55:22] <Colin[pi]> ss23: but Hamish looks so loveable
288: [03:55:28] * SightUnseen has left #silverstripe
289: [03:57:25] <ss23> lol
290: [03:59:32] * k_fish quit (Read error: Connection reset by peer)
291: [03:59:48] * k_fish has joined #silverstripe
292: [04:00:29] <simon_w> It's so small, I'm not even going to bother disclosing it myself
293: [04:01:08] <simon_w> ss23, YOU GOT MAIL
294: [04:04:55] <simon_w> Oh look, arbitrary class creation
295: [04:05:32] <ss23> OKAY! :O
296: [04:05:51] <ss23> simon_w: I don't got mail yet!
297: [04:06:07] <simon_w> Feb 26 17:00:59 simon postfix/smtp: 975C760397: to=<security@silverstripe.com>, relay=aspmx.l.google.com[173.194.79.27]:25, delay=11, delays=7.2/0.01/2.1/1.3, dsn=2.0.0, status=sent (250 2.0.0 OK 1393387259 yo5si11637897pab.179 - gsmtp)
298: [04:06:11] <simon_w> Well, I sent it!
299: [04:06:15] * ss23 waits
300: [04:07:03] <simon_w> It better not have been flagged as spam
301: [04:08:24] <ss23> simon_w: Yeah, I don't see it!
302: [04:08:28] <ss23> YOU HAVE BEEN SPAM'D.
303: [04:09:01] <ss23> Or it's just slow
304: [04:09:06] <ss23> Either way, I don't gots no message.
305: [04:14:09] * DesignerX has joined #silverstripe
306: [04:14:29] <simon_w> Hmm, maybe I should send again
307: [04:14:49] <ss23> try make it less spammy! :D
308: [04:14:51] <ss23> And send from gmail
309: [04:14:52] <ss23> :P
310: [04:15:41] <DesignerX> Hi, quick question, how can I set the SS cache folder somewhere in the config? SS is not picking up on the silverstripe-cache folder & giving me permission errors when it tries to use the /tmp folder outside of public_html/
311: [04:16:16] <simon_w> DesignerX, you can set it in your _ss_environment.php
312: [04:16:38] <Zauberfi1ch> define('TEMP_FOLDER', 'some-folder-name')
313: [04:16:45] <Zauberfi1ch> in _ss_environment.php
314: [04:16:49] * nickmolhoek quit (Quit: nickmolhoek)
315: [04:16:59] <Zauberfi1ch> I think
316: [04:17:13] <simon_w> ss23, fine then! Sent from my gmail account
317: [04:17:17] <ss23> :D
318: [04:17:19] <ss23> YAY
319: [04:17:21] <ss23> I see a new email!
320: [04:17:29] <simon_w> Is it from me?
321: [04:17:37] <ss23> Yep yep ^.^
322: [04:17:46] <simon_w> Good!
323: [04:17:59] <simon_w> Now, should I bother with this arbitrary class creation in the CMS too
324: [04:18:15] <ss23> I dunno about that
325: [04:23:01] <DesignerX> simon_w: I just had another look, SS is using silverstripe-cache but when I go mydomain.com/install.php it still tries to access the tmp/ folder
326: [04:23:09] <DesignerX> http://www.meshcrete.com.au/install.php
327: [04:23:19] <simon_w> DesignerX, yeah, the installer's broken like that
328: [04:23:27] <ss23> lol
329: [04:23:54] <DesignerX> it's broken for real !?
330: [04:24:00] <simon_w> ss23, You're going to get two emails. That was my first one :p
331: [04:24:09] <simon_w> DesignerX, well, wrt to the temp dir
332: [04:24:18] <simon_w> DesignerX, just set up _config.php and run dev/build
333: [04:24:33] <DesignerX> I did that & get a white screen
334: [04:25:04] <DesignerX> I usually dont use installer, but when manual install didnt work & went to that page I got the error
335: [04:25:31] <ss23> simon_w: Decided to report arbitary class creation? :P
336: [04:25:57] <simon_w> ss23, no, as in the email you replied to was the first one I sent. Not from my gmail account
337: [04:26:10] <ss23> oic
338: [04:26:10] <ss23> haha
339: [04:26:25] <ss23> weird it took so long!
340: [04:26:34] <simon_w> Well, I just created an empty Member object. I wonder why damage I could do with this...
341: [04:27:20] <ss23> anyway, I'm off to lock sport!
342: [04:28:08] <ss23> bbl
343: [04:42:59] * UncleCheese quit (Quit: UncleCheese)
344: [04:58:56] * babak has joined #silverstripe
345: [05:00:34] * cloph has joined #silverstripe
346: [05:00:52] * cloph_away quit (Ping timeout: 244 seconds)
347: [05:02:34] <FrozenFire> Does Australia and New Zealand share a banking system, logistically?
348: [05:03:06] <simon_w> Nope
349: [05:03:39] <FrozenFire> Bummer. Need to get money into Australia quickly. :P
350: [05:03:56] <FrozenFire> Hence the earlier question about Gladstone
351: [05:04:29] <Zauberfi1ch> FrozenFire: how fast does it need to be? I mean bank transfer is usually pretty fast anyway
352: [05:04:41] <FrozenFire> International remittance from Canada isn't.
353: [05:04:41] <FrozenFire> :P
354: [05:04:48] <FrozenFire> (Wire transfer)
355: [05:04:49] <Zauberfi1ch> in europe it takes like 3 days or something to send cross contry
356: [05:04:54] <Zauberfi1ch> AH, I SEE
357: [05:05:02] <Zauberfi1ch> sorry caps
358: [05:05:36] * jrthomer_ has joined #silverstripe
359: [05:05:50] <Zauberfi1ch> hold on, isn't there this other money tranfer thingy, a company that does it instantly
360: [05:05:56] <Zauberfi1ch> western union or something?
361: [05:07:04] <FrozenFire> Lol. Yeah, if you want to lose your money.
362: [05:07:16] <FrozenFire> Also, if you want to be flagged by security agencies
363: [05:07:47] * Stevie quit (Ping timeout: 272 seconds)
364: [05:07:59] * jrthomer quit (Ping timeout: 240 seconds)
365: [05:18:46] <simon_w> ss23, I'm gonna publicly disclose this other one!
366: [05:19:18] <Zauberfi1ch> FrozenFire: flaged by security agencies? :O
367: [05:20:24] * Audlex has joined #silverstripe
368: [05:20:27] <FrozenFire> Yes. That's one of the last remaining ways to move money around semi-anonymously
369: [05:22:12] * k_fish quit (Read error: Connection reset by peer)
370: [05:22:28] * k_fish has joined #silverstripe
371: [06:00:50] * guzzlefry has joined #silverstripe
372: [06:05:58] * Colin[pi] quit (Ping timeout: 244 seconds)
373: [06:09:56] * simon_w|air has joined #silverstripe
374: [06:35:39] * jrthomer_ quit (Ping timeout: 264 seconds)
375: [06:38:34] * Trooy has joined #silverstripe
376: [06:42:15] <DesignerX> Ok, magic_quotes_gpc=off in php.ini filer seems to cause my SS install to Stop Working .. but removing this line also shows an error message on the website !
377: [06:42:49] <Zauberfi1ch> "seems to cause my SS install to Stop Working
378: [06:42:50] <Zauberfi1ch> "
379: [06:42:54] <Zauberfi1ch> define "stop working"
380: [06:43:19] <DesignerX> It will not dev/build or ?flush .. I just get a blank page
381: [06:43:34] <Zauberfi1ch> and normal pages work?
382: [06:43:36] <guzzlefry> DesignerX: 3.1?
383: [06:43:41] <DesignerX> yeh
384: [06:43:53] <DesignerX> nothing shows up
385: [06:44:00] <guzzlefry> no regular pages?
386: [06:44:08] <Zauberfi1ch> have you turned error reporting and display errors on?
387: [06:44:15] <Zauberfi1ch> preferable in the php ini settings
388: [06:44:35] <Zauberfi1ch> setting ini_set('disaplay_errors', 1) does NOT take effect as of silverstripe 3.1
389: [06:44:38] <DesignerX> after long hours, tested a fresh install with new DB, no pages were created in the DB & dev/build & ?flush=all do nothing
390: [06:45:02] <DesignerX> Zauberfi1ch: Dev mode, so all errors on by default
391: [06:45:06] <Zauberfi1ch> unless its set in _ss_environment.php, there ini_set works
392: [06:45:31] <DesignerX> Only _config.php in use, fresh install with no added modules or code
393: [06:45:59] <Zauberfi1ch> DesignerX: no. dev mode does not imply display_errors is on
394: [06:45:59] <guzzlefry> DesignerX: try /dev/build?showqueries
395: [06:46:24] <Zauberfi1ch> DesignerX: and setting display_errors in _config.php is useless in 3.1
396: [06:46:29] <Zauberfi1ch> it will be overwritten
397: [06:46:44] <Zauberfi1ch> so you have to set it either in: php.ini, .htaccess or _ss_environment.php
398: [06:46:57] * Zauberfi1ch is now known as Zauberfisch
399: [06:47:43] <DesignerX> does the position of the php.ini file change anything ? its in the root of my hosting account
400: [06:47:55] <DesignerX> location *
401: [06:48:27] <Zauberfisch> well, that depends on your hoster. per default a php.ini in your root folder does nothing at all
402: [06:48:39] <Zauberfisch> your hoster probably has somethig configured to use that file
403: [06:48:56] <DesignerX> they created this file for me after i sent them a ticket
404: [06:49:36] <DesignerX> the php.ini file has ONLY this line : magic_quotes_gpc=off & if I remove it SS works !
405: [06:50:12] <DesignerX> Well, I only get the HomePage & dev/build pages to show up
406: [06:53:20] <DesignerX> the website is http://www.meshcrete.com.au
407: [06:54:24] <Zauberfisch> so, have you verifyed that display_errors in on?
408: [06:54:30] <Zauberfisch> s/in/is
409: [06:55:03] <DesignerX> I added this to php.ini
410: [06:55:04] <DesignerX> error_reporting(E_ALL);
411: [06:55:06] <DesignerX> ini_set('display_errors', 1);
412: [06:55:17] <Zauberfisch> those are php code lines
413: [06:55:19] <DesignerX> and I can see errors if I remove "magic_quotes_gpc=off"
414: [06:55:27] <Zauberfisch> obviously you can't put php code into a ini file
415: [06:55:34] <Zauberfisch> try:
416: [06:55:37] <Zauberfisch> php.ini:
417: [06:55:42] <Zauberfisch> magic_quotes_gpc=off
418: [06:56:02] <DesignerX> sorry, copied the wrong block, i added error_reporting = E_ALL | E_STRICT
419: [06:56:08] <Zauberfisch> error_reporting = E_ALL
420: [06:56:26] <Zauberfisch> display_errors = On
421: [06:56:51] * zippy___ has joined #silverstripe
422: [06:57:43] <Zauberfisch> DesignerX: well, when I visit your /dev/build?flush=1 now, it seems to work
423: [06:57:47] <Zauberfisch> I see no errors
424: [06:57:58] <Zauberfisch> normal output
425: [06:58:11] <Zauberfisch> also a flush on the page seems to work
426: [06:59:35] <DesignerX> Zauberfisch: try /admin
427: [07:03:35] <DesignerX> Right now I have this in php.ini
428: [07:03:36] <DesignerX> magic_quotes_gpc=off
429: [07:03:37] <DesignerX> error_reporting = E_ALL | E_STRICT
430: [07:03:39] <DesignerX> display_errors = On
431: [07:04:15] <DesignerX> I will test from a differnt browser in a min ... hope i can get this fixed tonight :(
432: [07:04:35] <Zauberfisch> hmmm, indeed. there is no output whatsoever
433: [07:04:58] <Zauberfisch> 1) try a phpinfo(); see if error reporting is really on
434: [07:05:19] <Zauberfisch> 2) if it is on, meaning there is an error you can't see, start debuging by hand
435: [07:05:47] <Zauberfisch> meaning setting breakpoints and walking your way through the code until you find the line that causes the error
436: [07:06:11] <Zauberfisch> if you have no php debugger, then use echo and die instead
437: [07:06:39] * Shrike_Finland has joined #silverstripe
438: [07:06:47] * simon_w|air quit (Quit: Leaving)
439: [07:06:52] <DesignerX> Zauberfisch: it's fresh install .. unless you mean to mess around with code code ?
440: [07:06:59] <DesignerX> core *
441: [07:07:09] <Zauberfisch> debuggint, not messing :P
442: [07:07:13] <Zauberfisch> *debugging
443: [07:07:26] <DesignerX> de blubbing
444: [07:08:14] * Shrike_Finland quit (Client Quit)
445: [07:08:37] <DesignerX> will do :) , I will also test again on my own server, if this doesnt work within 1 hours I will send the test URL to the client & let him deal with it or buy hosting from me !
446: [07:09:04] <Zauberfisch> DesignerX: also check the server logs
447: [07:09:15] <DesignerX> so far no error logs
448: [07:09:23] <Zauberfisch> the apache and php logs might have something that is not displayed
449: [07:10:44] <Zauberfisch> I just saw, you are running on nginx
450: [07:10:50] <Zauberfisch> perhaps that has something to do with it
451: [07:11:00] <DesignerX> nginx ?
452: [07:11:20] <DesignerX> oh the server
453: [07:12:30] <Zauberfisch> but could be a reverse proxy
454: [07:12:32] <Zauberfisch> idk
455: [07:15:06] <DesignerX> Zauberfisch: damn.. it was safe mode.. it should be off !! just added safe_mode = Off & it's all good now
456: [07:15:42] <DesignerX> ty guys, problem solved (for now)
457: [07:15:43] <Zauberfisch> its always good to run the installier on new hosts, the installer would have told you to turn of safe mode :P
458: [07:15:54] <DesignerX> installer wont work :(
459: [07:20:08] * NobrainerWeb has joined #silverstripe
460: [07:24:15] * Martin__ quit (Ping timeout: 264 seconds)
461: [07:24:29] <Zauberfisch> :O
462: [07:24:34] <Zauberfisch> how so DesignerX?
463: [07:24:48] * Nimle quit (Ping timeout: 245 seconds)
464: [07:34:05] * joelpittet has joined #silverstripe
465: [07:35:05] * kk_ has joined #silverstripe
466: [07:36:02] * babak quit (Quit: Connection closed for inactivity)
467: [07:37:06] * simon_w|air has joined #silverstripe
468: [07:37:29] <wmk> g'morning
469: [07:53:12] * kk_ quit (Quit: Page closed)
470: [07:55:35] * kk has joined #silverstripe
471: [08:00:15] * UncleCheese_ has joined #silverstripe
472: [08:03:22] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
473: [08:03:32] * joelpittet quit ()
474: [08:15:38] * Colin[pi] has joined #silverstripe
475: [08:28:13] * jrthomer has joined #silverstripe
476: [08:32:03] <zippy___> simon_w|air: Umm… so ages I asked about getCMSFields and how to remove everything and just return something, and the way I decided was to create the root tab, and just add the field I wanted - not call parent
477: [08:32:12] <zippy___> but…. I can't recall how I add and set that root tab.
478: [08:32:58] <simon_w|air> new TabSet('Root')
479: [08:33:47] <ss23> simon_w|air: the class one?
480: [08:33:55] <simon_w|air> ss23, yup
481: [08:35:04] <zippy___> ahhh...
482: [08:35:13] <zippy___> $fields = new FieldList();
483: [08:35:14] <zippy___> $fields->add(new TabSet('Root'));
484: [08:35:15] <zippy___> thanks :)
485: [08:39:08] <UncleCheese_> FieldList::create(TabSet::create("Root"));
486: [08:39:41] <UncleCheese_> ->text('SomeField');
487: [08:41:29] * jrthomer quit (Ping timeout: 244 seconds)
488: [08:42:54] <zippy___> indeed
489: [08:49:08] * Audlex quit ()
490: [08:50:15] <ss23> simon_w|air: npnp
491: [08:50:31] <DesignerX> Zauberfisch: late reply, when I said the installer wan't working, I was getting a blank page too .. maybe that was before I enabled the error display.. but the website is running now after SafeMode is off :)
492: [08:50:40] <simon_w|air> ss23, I'm even following decent procedures for it. That talk at Kiwicon was useful ;)
493: [08:53:35] <ss23> XD
494: [08:53:35] <ss23> Nice
495: [08:53:36] <ss23> :P
496: [08:54:02] * Py^k has joined #silverstripe
497: [08:56:28] <NobrainerWeb> Hi guys - i have a weird problem, i have a form with a CheckboxSetField. When i click a checkbox in the CheckboSetField, the value is submitted fine, when i click the label to the checkbox - value is empty.
498: [08:57:12] <NobrainerWeb> I found out the if i remove the class name "field" on the option set field div - the bug is gone
499: [08:57:28] * jrthomer has joined #silverstripe
500: [08:57:55] <NobrainerWeb> What javascript could be involved in messing with my field? any idea as where i need to look?
501: [08:59:04] * violetina has joined #silverstripe
502: [09:01:45] <Py^k> Morn'n
503: [09:04:53] * kinglozzer has joined #silverstripe
504: [09:08:33] * willmorgan has joined #silverstripe
505: [09:15:34] <NobrainerWeb> OHHH GOD - i found the fucking javascript that wasted 10 hours of work.. please someone shoot me
506: [09:16:08] <Colin[pi]> http://zachholman.com/posts/only-90s-developers/
507: [09:16:13] * Colin[pi] shows his age
508: [09:19:59] <simon_w|air> Colin[pi], trying to remember why I was stop using those. Was definitely after the 90s
509: [09:20:26] <Colin[pi]> some of them bled into the 00's yes
510: [09:20:34] <Colin[pi]> man I used to 1x1 shim all over the place
511: [09:21:19] * micmania1 has joined #silverstripe
512: [09:21:31] <kinglozzer> Hahaha that's brilliant
513: [09:23:11] <wmk> kinglozzer, rotfl In effect, DHTML was the Twitter Bootstrap of the time.
514: [09:23:16] <Py^k> urgh 1x1 shim :<
515: [09:23:48] <simon_w|air> Still the best way to do vertical layouts!
516: [09:26:08] <Zauberfisch> it actually makes me feel weird that I have never used a 1x1 shim in my life
517: [09:26:10] <Colin[pi]> It's 2014.. why the fuck is vertical still so difficult in CSS?
518: [09:26:14] <Zauberfisch> feels like I missed something
519: [09:26:23] <Colin[pi]> Zauberfisch: young whipper snapper
520: [09:27:00] <Zauberfisch> and I barely did any table layouts either
521: [09:27:19] <Colin[pi]> what are you, 10?
522: [09:27:22] <Colin[pi]> ;)
523: [09:27:27] <Zauberfisch> 20ish
524: [09:27:35] <simon_w|air> Table layouts are great
525: [09:27:36] <Colin[pi]> ah i see, virtually 10
526: [09:27:58] <Zauberfisch> :)
527: [09:28:00] * UncleCheese_ quit (Read error: Connection reset by peer)
528: [09:28:04] <wmk> Zauberfisch, when you say "i love IE" you become totally suspect to me
529: [09:28:17] <willmorgan> Colin[pi]: you can use CSS flexbox
530: [09:28:22] <willmorgan> for vertical stuff
531: [09:28:26] <Py^k> DHTML, which stands for "distributed HTML"
532: [09:28:33] <willmorgan> so yes, we finally got there almost 50 years after we put a man on the moon
533: [09:28:35] <willmorgan> we did it!
534: [09:28:37] <Py^k> I was pretty sure it was supposed to be "Dynamic HTML"
535: [09:28:39] <Zauberfisch> haha, not sure if I'd say love. but I do in fact NOT hate IE anymore
536: [09:28:41] <Colin[pi]> lol, he's trolling
537: [09:28:44] <Zauberfisch> IE has become pretty ok
538: [09:29:09] <wmk> Zauberfisch, well, if you say "newer IE"
539: [09:29:23] <wmk> unfortunately some offices still have Vista / IE7 or IE8
540: [09:29:31] <simon_w|air> wmk, that's XP
541: [09:29:46] <simon_w|air> Which is older than Zauberfisch appears to be!
542: [09:30:15] <wmk> yeah, the xp times when linux desktop was cool
543: [09:30:27] <Py^k> It still is.
544: [09:30:36] <wmk> *duck*
545: [09:30:38] <Py^k> If you're not using ... yeah fuck you might be right.
546: [09:30:51] <simon_w|air> 2014's going to be the year of the Linux desktop, right?
547: [09:30:51] <Py^k> anything Ubuntu is terrible.
548: [09:30:55] <Py^k> s
549: [09:31:03] <Py^k> simon_w|air: haha, lawlz
550: [09:31:17] <simon_w|air> Like 2013 and 2012 and 2011 and ...
551: [09:31:30] <Py^k> and 2002
552: [09:31:31] <Py^k> etc
553: [09:31:36] <wmk> *sigh*
554: [09:31:39] <Py^k> well, maybe not quite that far back.
555: [09:31:53] <Py^k> but I do enjoy those yearly "what sucks about linux" videos that chap does.
556: [09:31:57] <Zauberfisch> and I actually love the IE team for making this video
557: [09:31:58] <Zauberfisch> http://www.youtube.com/watch?v=Gp-FQN_v3AM
558: [09:31:58] <Py^k> he's a bit of a character.
559: [09:32:11] <Zauberfisch> it still gets me every time
560: [09:33:26] <Zauberfisch> Py^k: link
561: [09:33:30] <Colin[pi]> lol at least the IE team have self-deprecating humour
562: [09:34:01] <wmk> ;)
563: [09:36:47] <Colin[pi]> MS had better pull out something special for Win9 or they're doomed
564: [09:37:42] <Zauberfisch> I am actually pretty pleased by windows 8.1
565: [09:37:55] <Zauberfisch> only anyoing things are those bloody full screen apps
566: [09:38:07] <Colin[pi]> yeah which... is... kinda their whole future of windows
567: [09:38:10] <Zauberfisch> but you can always install alternative programms to replace them
568: [09:38:44] <wmk> the 8.1 update will finetune somethings.
569: [09:40:05] <Py^k> Zauberfisch: pretty much google "what sucks about linux" and click the first video.
570: [09:40:25] <Py^k> www.youtube.com/watch?v=QKwWPQ1Orzs‎
571: [09:40:32] * Tanger quit (Quit: Tanger)
572: [09:41:13] * Tanger has joined #silverstripe
573: [09:42:10] * zippy___ quit (Ping timeout: 256 seconds)
574: [09:45:41] * Tanger quit (Ping timeout: 246 seconds)
575: [10:00:39] <speak_> Hey, in my onBeforeWrite() it checks if a value is empty, if so it writes a default value, which works on the site... But when I try and unit test it, make a new page, leave the value empty, and do a $page->write() the value stays empty - any ideas why it would function differently?
576: [10:00:42] * k_fish quit (Read error: Connection reset by peer)
577: [10:00:58] * k_fish has joined #silverstripe
578: [10:05:13] <Colin[pi]> speak_: I'd wager it's something to do with stages (i.e. draft/live(
579: [10:05:16] <Colin[pi]> *)
580: [10:05:54] <speak_> sigh.
581: [10:05:58] <speak_> $page->doPublish()
582: [10:06:00] <speak_> thank you!
583: [10:06:19] <Py^k> +1 for Colin[pi] :>
584: [10:06:47] <Colin[pi]> it's caught me out a few times too "Dafuq? Why is that empty when it should.... OH"
585: [10:13:01] * svandragt has joined #silverstripe
586: [10:13:29] <svandragt> new release: silverstripe-fieldlistmovefield - Add helper functions to reorder fields in a FieldList. You can easily move a field to appear before and after other fields. https://github.com/svandragt/silverstripe-fieldlistmovefield
587: [10:14:46] * Sj0hn has joined #silverstripe
588: [10:15:01] <Sj0hn> Hio
589: [10:17:02] <Py^k> hio
590: [10:17:30] <simon_w|air> speak_, also, static $defaults or populateDefaults()?
591: [10:18:18] <Py^k> svandragt: but we already have insertBefore and insertAfter...
592: [10:18:35] <Py^k> but that's a nice shortcut too I guess :>
593: [10:18:54] <svandragt> Py^k: yes that's what I use in the code but I find myself moving around fields a lot in administration using model admins :)
594: [10:19:24] <svandragt> Py^k: I'm mostly just publishing convenience modules anyway :P
595: [10:19:25] <simon_w|air> svandragt, that only moves data fields
596: [10:19:54] <Sj0hn> What does Cloumn 'SortOrder' in field list is ambiguous mean='
597: [10:19:55] <Py^k> svandragt: yeh, not saying it's bad, just that doing insertBefore or After to something that already exists in the list will move it, not duplicate it.
598: [10:20:00] <Sj0hn> column(
599: [10:20:03] <Sj0hn> *
600: [10:20:15] <simon_w|air> svandragt, also, YAML should all be indented with spaces
601: [10:20:26] <Py^k> mm, doesn't support tabs.
602: [10:21:16] <svandragt> simon_w|air: ah yes shouldn't have happened
603: [10:21:26] <Py^k> Sj0hn: it means that the sql query had two columns named SortOrder to choose from, and it doesn't know which to pick.
604: [10:22:24] <Py^k> the offending clause needs to be qualified with a table name prefixed to it.
605: [10:26:40] * svandragt1 has joined #silverstripe
606: [10:27:41] * svandragt quit (Write error: Broken pipe)
607: [10:27:49] <svandragt1> simon_w|air: with regard to non data fields, check for datafieldbyname, if null try fieldbyname?
608: [10:28:22] <Py^k> svandragt1: could do that, or just use field by name rather than datafieldbyname
609: [10:28:47] <svandragt1> Py^k: fieldbyname didn't always return a field in my experience but can't remember specifics
610: [10:29:27] <Py^k> svandragt1: need to fully qualify path
611: [10:29:37] <Py^k> eg. tab.field
612: [10:29:38] <NobrainerWeb> Sj0hn: that means you are quering more than one table with the field SortOrder and it does not know which one to look in, so you should use something like Table1.SortOrder
613: [10:31:05] <Py^k> listening to Radio Hauraki, forgetting that fact, going "what the fuck there's a mangere somewhere near here? Shit and they pronounce it prop... oh fuck right. Of course."
614: [10:31:24] <Py^k> do I win a prize irogue_ ?
615: [10:32:49] <svandragt1> Py^k: that's probably it. thanks
616: [10:37:18] * OzziNL has joined #silverstripe
617: [10:38:10] <speak_> simon_w, populateDefaults() was a much better solution, thanks!
618: [10:39:48] * NobrainerWeb quit (Quit: NobrainerWeb)
619: [10:40:50] <Py^k> svandragt1: it still confuses me as to which situation requires a full path, but immediately if a field name doesn't work I try the full path.
620: [10:41:03] <Colin[pi]> is there a quick, easy way for code in a DO to detect if it's being run within the CMS or not?
621: [10:41:14] <Py^k> no
622: [10:41:15] * Evelin has joined #silverstripe
623: [10:41:22] <Evelin> good morning
624: [10:41:22] <Py^k> don't be silly Colin[pi].
625: [10:41:28] <Colin[pi]> but.. but..
626: [10:41:37] <Py^k> good even'n eve.
627: [10:41:52] <Py^k> Colin[pi]: check request I guess, if you must.
628: [10:42:04] <Py^k> or controller instance of leftandmain, or something.
629: [10:42:08] <Py^k> controller::curr that is
630: [10:42:23] <Colin[pi]> yeah that's what I was thinking, but wondered if there was a nicer way
631: [10:42:33] <Py^k> hi Evelin
632: [10:43:07] <svandragt1> Py^k: it's one of these things that from my (naive probably) perspective if SilverStripe was stricter and more explicit in errors rather than returning null everyone would spend less time wondering why things don't work the way they expect. 'FieldNotFound Exception: field not found in undefined tab' would save time.
633: [10:43:30] <Evelin> i'm using the blog module, but post an blog from the frontend is nog working. If I go to /blog/post after login as admin no form appaers
634: [10:45:19] * ec8or_ has joined #silverstripe
635: [10:45:28] <ec8or_> when would Sync actually delete files?
636: [10:47:29] * NobrainerWeb has joined #silverstripe
637: [10:49:23] <ec8or_> found the query but not really sure what is going on
638: [10:51:01] <ec8or_> SELECT C.ID FROM File AS C LEFT JOIN File AS P ON C.ParentID = P.ID WHERE P.ID IS NULL AND C.ParentID > 0
639: [10:52:11] <ec8or_> ah no that's not it
640: [10:54:41] <ec8or_> got it, think my script is creating duplicate entries with the same filename
641: [10:55:18] <ec8or_> thanks for listening ;P
642: [10:55:57] * Evelin has left #silverstripe
643: [10:57:02] * evelin2 has joined #silverstripe
644: [10:57:26] <evelin2> Good afternoon. i'm using the blog module, but post an blog from the frontend is nog working. If I go to /blog/post after login as admin no form appaers
645: [11:00:22] <ec8or_> never used the frontend form sorry
646: [11:00:32] * k_fish quit (Quit: Leaving)
647: [11:01:06] <ec8or_> evelin2: just looking at an install i've got up and form appears fine there though
648: [11:01:22] <ec8or_> has your default Page.ss template got a $Form variable in it?
649: [11:04:09] <evelin2> @ec8or thanks, that was the problem
650: [11:04:26] <willmorgan> http://www.meetup.com/SilverStripeUK/events/168384902/
651: [11:04:31] <willmorgan> who else is coming?
652: [11:04:37] <Py^k> ec8or_: I love it when that happens. On one hand you feel proud for being able to figure out your own issue, on the other hand you feel like a twit for announcing your goof to the rest of the channel :P
653: [11:05:11] <Py^k> willmorgan: so by UK meetup is this "betterbrief goes out for drinks, and maybe loz will come too"?
654: [11:05:19] <willmorgan> no
655: [11:05:44] <Py^k> sub loz for Aram, whatever :P
656: [11:05:55] <willmorgan> did you even look at the URL?
657: [11:05:57] <willmorgan> Aram is talking
658: [11:06:20] <Py^k> I did. I saw. [11:05] <Py^k> sub loz for Aram, whatever :P
659: [11:06:29] <Py^k> willmorgan: I also saw it's on a Wednesday.
660: [11:06:43] <Py^k> so at that point it's pretty much "SS London meetup."
661: [11:06:57] <willmorgan> yep
662: [11:07:00] <Py^k> I feel excluded :9
663: [11:07:02] <Py^k> :(
664: [11:07:13] * ss23 includes Py^k <3
665: [11:07:17] <Py^k> :D
666: [11:07:19] <Py^k> <3 ss23
667: [11:07:22] <ss23> :D
668: [11:07:26] * ss23 headbangs on Py^k
669: [11:07:32] <ss23> About to go to bed? BETTER PLAY SOME SLAYER
670: [11:07:46] <Py^k> willmorgan really knows how to raise a chaps hopes only to BRUTALLY CRUSH THEM almost immediately afterwards.
671: [11:07:46] <Py^k> :P
672: [11:08:00] <Py^k> ss23: "Play some fuck'n slayer!"
673: [11:08:00] <willmorgan> :confused:
674: [11:08:26] <willmorgan> apparently SS Ltd is sending goodies
675: [11:08:33] <Py^k> willmorgan: 'SS UK meetup' - "OMG, I'm in the UK!" ... "Just kidding, London only realistically, LOL"
676: [11:08:39] <Py^k> omg
677: [11:08:40] <ss23> BETRAYED BY MANY, NOW ORNAMENTS DRIPPING ABOVE
678: [11:08:45] <Py^k> will my three 3 shirts be in it?
679: [11:08:46] <willmorgan> so if you're running low on tshirts or lanyards...
680: [11:08:48] <ss23> AWAITING THE HOUR OF REPRISAL
681: [11:08:52] <ss23> YOUR TIME SLIPS AWAY.
682: [11:09:00] <Py^k> I'm already owed 2 shirts :/
683: [11:09:01] <ss23> XD
684: [11:09:08] <ss23> Yeah, SilverStripe LTD is going to send the EU meetup shit
685: [11:09:09] <willmorgan> you know, there are these things called trains
686: [11:09:09] <ss23> :D
687: [11:09:13] <ss23> lol willmorgan
688: [11:09:21] <willmorgan> you get on them and you end up in London
689: [11:09:25] <ss23> RAINING BLOOOOOOOOOOOOOOOOOOOOOD, FROM A LACERATED SKY
690: [11:09:33] <ss23> NOW I SHALL REIGN IN BLOOD
691: [11:09:41] <willmorgan> you're all nuts. I'm gonna write some more unit tests
692: [11:09:55] <ss23> XD
693: [11:09:58] <ss23> Sorry, sorry, it's late
694: [11:10:14] <Py^k> willmorgan: yeah, I finish work at 5:30, wait until next train at 6:30, get to london 10pm...
695: [11:10:21] <Py^k> pretty sure you'll be done by then :<
696: [11:10:21] <willmorgan> you're making the same mistake as me last night ss23
697: [11:10:25] <ss23> willmorgan: If you want goodies for the meetup and Cam/Sam doesn't let you, just slip in a "Oh but ss23 said I could..."
698: [11:10:39] <ss23> Wait, are you the one organisaing it?
699: [11:10:44] <willmorgan> "What's that, it's 23:45? Time to listen to Evol Intent!"
700: [11:10:56] <ss23> XD
701: [11:11:03] <willmorgan> ss23: No, it's Josh (BB) and Mark (GPMD)
702: [11:11:05] <Py^k> 12:10am actually :P
703: [11:11:09] <ss23> Ah kk
704: [11:11:16] <Py^k> GPMD
705: [11:11:16] <willmorgan> but Josh just told me on Jabber
706: [11:11:17] <willmorgan> so yah
707: [11:11:18] <ss23> Okay just one more song before I sleep :D
708: [11:11:21] <ss23> ^^
709: [11:11:23] <ss23> GPMD?
710: [11:11:24] <Py^k> I do not know these folk.
711: [11:11:34] <Py^k> BB being better brief I'm assuming.
712: [11:11:36] <ss23> I know BB, one of the guys working at SS LTD worked at BB for a while
713: [11:11:44] <Py^k> ss23: orly?
714: [11:11:48] <willmorgan> yes, Mike
715: [11:11:51] <ss23> mm ^^
716: [11:11:58] <ss23> He worked for SS first though
717: [11:12:02] <Py^k> oic
718: [11:12:03] <willmorgan> I want him back for his frontend, coffee and craft beer artisanship
719: [11:12:07] <ss23> hahah XD
720: [11:12:08] <Py^k> I wanted to work for betterbrief
721: [11:12:11] <ss23> You describe him perfectly
722: [11:12:12] <ss23> :P
723: [11:12:17] <willmorgan> and beard artisanship
724: [11:12:19] <Py^k> but they were all NAH WE'RE FULL
725: [11:12:46] <Py^k> and I was all "oh well, I'm not London based anyway"
726: [11:12:57] <Py^k> micmania1: yeah, that'd require a day off though :P
727: [11:12:59] <willmorgan> Py^k: organise one in your area
728: [11:13:02] <ss23> Py^k: Um, worth it?
729: [11:13:11] <Py^k> willmorgan: that's micmania1's job
730: [11:13:12] <willmorgan> anyway, gonna do some work now
731: [11:13:27] <micmania1> willmorgan: we have one every now and again. It amounts to me and Py^k drinking in a pub
732: [11:13:28] <Py^k> willmorgan: apparently he's already put me forward for a talk. I only found out by accident.
733: [11:13:56] <Py^k> ss23: could be. If I had a bit more warning...#
734: [11:14:17] <Py^k> Ideally a weekend would be better. I could trip down, raise some hell, come back.
735: [11:14:29] <kinglozzer> willmorgan: Maybe
736: [11:14:32] <kinglozzer> [11:04] willmorgan: who else is coming?
737: [11:14:45] <willmorgan> nice
738: [11:14:52] <willmorgan> maybe ask for a half day
739: [11:14:59] <kinglozzer> Yeah that's what I was thinking :)
740: [11:15:00] <Py^k> [10:43] <svandragt1> Py^k: it's one of these things that from my (naive probably) perspective if SilverStripe was stricter and more explicit in errors rather than returning null everyone would spend less time wondering why things don't work the way they expect. 'FieldNotFound Exception: field not found in undefined tab' would save time.
741: [11:15:01] <ss23> Wait, there's meant to be a big EU meeting some time soon too, right?
742: [11:15:02] <Py^k> yes and no
743: [11:15:17] <kinglozzer> ss23: Yeah, June apparently
744: [11:15:19] <willmorgan> yes, there's a big EU one
745: [11:15:22] <Py^k> ss23: 'soon' like September?
746: [11:15:28] <willmorgan> but there's been a London meetup for at least 4 years or so
747: [11:15:39] <Py^k> willmorgan: so how big is the london meetup?
748: [11:15:47] <willmorgan> we get between 20 and 30 people
749: [11:15:51] <ss23> ah yep
750: [11:15:51] <willmorgan> it's a mixed bunch
751: [11:15:51] <kinglozzer> Py^k: Simon mentioned the target being June on his twittor
752: [11:15:56] <ss23> Py^k: You will go to the big EU one, right?
753: [11:15:58] <Py^k> I'm assuming there's at least one or two more companies other than aram and bb
754: [11:16:03] <ss23> I can secretly ship you over some Burger Fuel
755: [11:16:06] <willmorgan> there are developers, then there are the strange people who come along and talk about "plugins"
756: [11:16:09] <ss23> I'll smuggle in a doofer for you
757: [11:16:11] <Py^k> kinglozzer: oic, but it's Zauberfisch and ... oh that simon.
758: [11:16:24] <Py^k> ss23: book tickets, seems better.
759: [11:16:29] <ss23> lol
760: [11:16:31] <Py^k> if it helps I know this great travel agent...
761: [11:16:33] <Py^k> :P
762: [11:16:36] <ss23> haha
763: [11:16:40] <ss23> if sminnee pays for me, I'll come ;)
764: [11:16:45] <Py^k> legit.
765: [11:16:55] <Py^k> only if sminnee comes too
766: [11:17:00] <ss23> XD
767: [11:17:05] <Py^k> fuckit, just office trip.
768: [11:17:09] <ss23> Pretty sure only time he goes to EU is to get high :P
769: [11:17:12] <Py^k> half of you all are Euro types anyway.
770: [11:17:21] <ss23> lol sif
771: [11:17:24] <Py^k> Chillu, Mateuz, etc.
772: [11:17:28] <ss23> Psh
773: [11:17:31] <ss23> That's only 2!
774: [11:17:33] <ss23> There are a few more
775: [11:17:36] <Py^k> I know
776: [11:17:44] <ss23> Stoj/stig
777: [11:17:47] <Py^k> I don't know them. I haven't even met Chillu.
778: [11:17:50] <ss23> lol
779: [11:17:53] <evelin2> What about the european meeting?
780: [11:17:54] <Py^k> Oh, Reiner
781: [11:17:55] <Colin[pi]> <@ss23> Pretty sure only time he goes to EU is to get high :P <--- fuckin lol
782: [11:18:00] <Py^k> he's German too right?
783: [11:18:04] <ss23> Yeah, Py^k
784: [11:18:13] <ss23> Colin[pi]: I MAY BE WRONG... but like... the only time I've actually heard of him going to EU...
785: [11:18:16] <ss23> :P
786: [11:18:21] <Colin[pi]> XD
787: [11:18:22] <kinglozzer> Is chillu back in Germany now?
788: [11:18:27] <ss23> kinglozzer: Back in NZ!
789: [11:18:30] <Colin[pi]> no, NZ
790: [11:18:31] <Colin[pi]> ^
791: [11:18:37] <ss23> kinglozzer: He was in Germany for a few years, back in NZ as of a few months ago
792: [11:18:40] <ss23> ^.^
793: [11:18:48] <ss23> I get to sit near him most days at work
794: [11:18:50] <ss23> ujelly?
795: [11:18:53] * NobrainerWeb quit (Quit: NobrainerWeb)
796: [11:18:57] <kinglozzer> Ah, darn, wondered if he was coming to the meetup
797: [11:19:02] <kinglozzer> ss23: Yus :(
798: [11:19:10] <Py^k> kinglozzer: depends on how rich he's feeling I guess :P
799: [11:19:13] <ss23> He's speaking at the Wellington/NZ Meetup soon!
800: [11:19:15] <ss23> Think it's the 5th
801: [11:19:19] <ss23> :D
802: [11:19:29] <Py^k> fuck, one could do a world tour of SS meetups.
803: [11:19:33] <kinglozzer> ss23: NZ is on my holiday list, I need to time it for a meetup
804: [11:19:34] <ss23> lol
805: [11:19:39] <Py^k> everyone to guzzlefry's shed!
806: [11:19:42] <kinglozzer> :P
807: [11:19:44] <ss23> XD
808: [11:20:22] <Py^k> so anyway, actual work.
809: [11:20:28] <ss23> NO WAY!
810: [11:20:28] <ss23> :O
811: [11:20:31] <Py^k> I have joining my object to a has_many kinda thing.#
812: [11:20:41] <Py^k> but I just want the single most recent of the has_many's.
813: [11:20:49] <Py^k> how do with SQL
814: [11:20:57] <ss23> easy with SQL, you want with ORM though?
815: [11:21:00] <Py^k> no.
816: [11:21:14] <Py^k> orm easy, just don't give a shit about efficiency.
817: [11:21:30] <Py^k> because fields not on an object are ignored anyway.
818: [11:21:40] <ss23> select * from foo join bar on foo.id = bar.foo_id ORDER BY bar.date
819: [11:21:41] <ss23> ?
820: [11:21:45] <Py^k> micmania1: so what's up with the floaties in the water here?
821: [11:21:45] <ss23> something like that?
822: [11:22:01] <micmania1> the whats?
823: [11:22:07] <Py^k> I mean, I haven't died yet, but I assume that if I keep up the intake that I'll grow an extra limb or something.
824: [11:22:13] <ss23> micmania1: weird floating crap in teh water, it's not clear
825: [11:22:19] <Py^k> probably a vocal chord, so I end up sounding like a geordie...
826: [11:22:25] <ss23> XD
827: [11:22:26] <micmania1> Where you getting your water from?
828: [11:22:30] <Py^k> micmania1: tap.
829: [11:22:37] <micmania1> u sure?
830: [11:22:43] <Py^k> micmania1: when was the last time you looked inside your jug
831: [11:22:47] <Py^k> err... kettle.
832: [11:22:59] <Py^k> that buildup, that's serious.
833: [11:23:18] <kinglozzer> Py^k: It's boiled, so it's sterile, pretend it doesn't exist :D
834: [11:23:20] <Py^k> some serious minerals floating around in these here taps.
835: [11:23:32] <Py^k> kinglozzer: it's like oil. Oil is sterile.
836: [11:24:32] <Py^k> also, I'm no stranger to boil for sterility. But you need to boil for an extended period.
837: [11:25:06] <Py^k> I know this because 3 years ago it was a necessity due to some ground movement turning the in pipes and out pipes into the same thing.
838: [11:25:21] <Py^k> :/
839: [11:25:39] <Py^k> so anyway ss23, you were helping me do real work?
840: [11:26:08] <Colin[pi]> ss23 + real work? el
841: [11:26:10] <Colin[pi]> *lel
842: [11:26:11] <Py^k> [11:21] <+ss23> select * from foo join bar on foo.id = bar.foo_id ORDER BY bar.date
843: [11:26:13] <Colin[pi]> ;)
844: [11:26:34] <Py^k> that gives you multiple result rows of foo's record.
845: [11:26:40] <Py^k> with different bar additions.
846: [11:26:55] <Py^k> one my say foo gets fully bar'd up.
847: [11:27:00] <Py^k> might say*
848: [11:27:33] <Py^k> seems like it might be subquery time, urgh.
849: [11:27:42] * evelin2 has left #silverstripe
850: [11:27:46] <kinglozzer> Py^k: I read that as subway
851: [11:27:47] * kinglozzer hungry
852: [11:28:02] <micmania1> ooo subway
853: [11:28:53] <Py^k> cunts.
854: [11:29:11] <Py^k> I'm out in the damn valley and I'm poor.
855: [11:29:21] <Py^k> I've not had subway yet
856: [11:29:22] <Py^k> here
857: [11:29:43] <ss23> Anyway, I'm going to bed!
858: [11:29:49] <Py^k> nn ss23
859: [11:29:57] <ss23> Py^k: Yes, it gives a row for every bar, right?
860: [11:29:59] <ss23> Which is what you want?
861: [11:30:07] <ss23> Foo is the unique thing, you only get one, bar is the non-uniuqe thing
862: [11:30:13] <Py^k> ss23: no, I want a singel row
863: [11:30:14] <ss23> You will need to add a "where foo.id = ID OF THE FOO"
864: [11:30:20] <ss23> Py^k: A single row with more than one result...?
865: [11:30:22] <ss23> I don't understand
866: [11:30:31] <Py^k> ss23: no
867: [11:30:36] <Py^k> so foo has many bars
868: [11:30:39] <ss23> yep yep
869: [11:30:47] <Py^k> I want foo, with the most recent bar on it.
870: [11:31:01] <Py^k> not repeated foos for each bar.
871: [11:31:20] <Py^k> would GROUP BY help? idk
872: [11:31:43] <ss23> So you want like "Find me the latest bar out of everyt bar that exists" "Great, now find me the foo that matches the bar!"
873: [11:31:46] <ss23> ?
874: [11:32:12] <Py^k> nah, I want "get me all the foos and their corresponding most recent bar"
875: [11:32:37] <ss23> Oh I see
876: [11:32:37] * DoVe has joined #silverstripe
877: [11:32:43] <DoVe> hello
878: [11:32:47] <Py^k> so basically the same but backwards I guess... except I'm modifying a query, not building a new one.
879: [11:32:47] <willmorgan> Anyone know a good pattern to test url_handlers / Controller->handleAction without using FunctionalTest?
880: [11:33:04] <Py^k> hi DoVe
881: [11:33:09] * guci0 has joined #silverstripe
882: [11:33:14] <ss23> Py^k: Yeah, could just try group by foo.id
883: [11:33:15] <guci0> Hello Moto!
884: [11:33:27] <ss23> Py^k: Otherwise, I am not 100% -- check MySQL manual for one of the agregate functions probably
885: [11:33:28] <Py^k> ss23: I'll give it a go I guess, we'll see.
886: [11:33:32] <ss23> I'm sure you can do it :D
887: [11:33:34] <ss23> Anyway, going to bed, nn
888: [11:33:35] <DoVe> i have a gridfield in the backend where the display of the output is sorted on "Size"
889: [11:33:39] <Py^k> ss23: yeh, subquery seems easiest if that won't work.
890: [11:33:41] <Py^k> but cheers :>#
891: [11:33:42] <ss23> (If I wasn't going to bed, I would help more! zzz)
892: [11:33:44] <Py^k> gn, hf
893: [11:33:49] <Py^k> enjoy tomorrow
894: [11:33:51] <Py^k> today
895: [11:33:53] <Py^k> whatevers
896: [11:33:54] <ss23> Py^k: subquery is approx 0% speed
897: [11:33:56] <ss23> no
898: [11:33:57] <ss23> -100% speed
899: [11:33:58] <ss23> is bad
900: [11:33:59] <ss23> do not do
901: [11:34:01] <Py^k> ss23: I know.
902: [11:34:03] <ss23> the DBA will hate you
903: [11:34:03] <ss23> nn
904: [11:34:06] * DoVe quit (Client Quit)
905: [11:34:08] <Py^k> and it'll be once per row too
906: [11:34:17] <Py^k> all them temp tables :(
907: [11:34:26] <willmorgan> Nevermind - used Reflection to set latestParams to a known state \o/
908: [11:34:26] <Py^k> DB already stutters bad.
909: [11:34:27] * NoobNL has joined #silverstripe
910: [11:34:41] <Py^k> willmorgan: legit hax0r
911: [11:35:18] <Py^k> wholey shit, that DoVe chap. Comes in, says hi, tells us he has a grid field, then quits.
912: [11:35:19] <Py^k> lololol
913: [11:35:41] <kinglozzer> Py^k: He was bragging
914: [11:35:42] <Py^k> no question, no issue, lulz.
915: [11:35:43] * kinglozzer jelly
916: [11:35:44] <Py^k> I guess so
917: [11:35:48] <kinglozzer> I want one :/
918: [11:35:49] <Py^k> hard bruv
919: [11:35:54] <Py^k> IKR
920: [11:36:04] <Py^k> Wish I had me a sorted gridfield.
921: [11:37:53] * OpticBlaze has joined #silverstripe
922: [11:38:19] <OpticBlaze> Anyone on?
923: [11:38:43] <Py^k> http://stackoverflow.com/questions/12475850/how-can-an-sql-query-return-data-from-multiple-tables
924: [11:38:46] <Py^k> lol, clearly Aussie.
925: [11:38:54] <Py^k> Holden.
926: [11:39:06] * NoobNL quit (Client Quit)
927: [11:39:13] <Py^k> And SMART. No one thinks about smart when they think about cars.
928: [11:39:36] * OpticBlaze quit (Client Quit)
929: [11:40:12] * DoVe has joined #silverstripe
930: [11:40:45] <Py^k> opticblaze, fool.
931: [11:40:53] <Py^k> clearly people are on.
932: [11:41:10] <DoVe> hi
933: [11:41:13] <Py^k> there are over 40 users, and someone actively posting in main chat.
934: [11:41:16] <DoVe> let met try again :d
935: [11:41:17] <Py^k> hi DoVe.
936: [11:41:19] <DoVe> i have a gridfield in the backend where the output is sorted on "size"
937: [11:41:24] <Py^k> yes, don't quit the tab!
938: [11:41:36] <DoVe> So far no problems, but what i need is that the positions in that gridfield view, will be storid in SortOrder or something
939: [11:41:39] <Py^k> contratulations, kinglozzer is jealous. He can't sort gridfield.s
940: [11:41:47] <DoVe> haha lol
941: [11:42:01] <DoVe> Do you know if there is a solution for this?
942: [11:42:19] <Py^k> yeh, use one of the order pluging doofer things.
943: [11:42:27] <Py^k> components.
944: [11:43:22] <Py^k> ajshort/gridfieldextensions
945: [11:43:25] <Py^k> or
946: [11:43:40] <Py^k> undefinedoffset/sortablegridfield
947: [11:43:55] * NobrainerWeb has joined #silverstripe
948: [11:44:09] <DoVe> im already using sortable girdfield now
949: [11:46:00] <DoVe> and it works good, if i wan to sort on the "Size" of a databoject and the sortablegridfield is on, the gridfield will always sort on SortOrder, instead of Size
950: [11:46:01] <Zauberfisch> ajshort/gridfieldextensions is nicer
951: [11:46:36] <Py^k> ^
952: [11:47:08] <Py^k> doesn't use the stupid legacy DoM way of doing things.
953: [11:57:45] <DoVe> mmmm
954: [11:58:13] <Zauberfisch> and it looks nicer
955: [12:01:02] <DoVe> at the moment i have this :http://pastebin.com/JM4sHGzT
956: [12:02:50] <DoVe> If I try to make use of gridfieldextensions ist not working that wel :( What doe i have to change?
957: [12:05:04] <kinglozzer> DoVe: It's GridFieldOrderableRows() instead of GridFieldSortableRows()
958: [12:10:32] * NobrainerWeb quit (Quit: NobrainerWeb)
959: [12:10:41] <DoVe> mmm
960: [12:11:11] <DoVe> a white screen shows up when i change that
961: [12:11:22] <DoVe> No errors or something
962: [12:12:07] * NobrainerWeb has joined #silverstripe
963: [12:22:02] <NobrainerWeb> kinglozzer and DoVe: problem with GridFieldOrderableRows instead of the other, is that it always sets the initial sort order to 0
964: [12:25:48] <NobrainerWeb> DoVe or kinglozzer, if you are sorting a many_many relation and come across a way of setting the initial sort, please let me know how you did :-) see https://github.com/ajshort/silverstripe-gridfieldextensions/issues/44
965: [12:32:53] <micmania1> NobrainerWeb: I've never used that module but wouldn't you set a many_many sort field as an extraField? Then it shouldn't matter if its reset.
966: [12:34:50] <NobrainerWeb> micmania1: i have https://github.com/NobrainerWeb/Silverstripe-Content-Blocks/blob/master/code/ContentBlocksModule.php#L16 but when you sort items, they are assigned a value, from 1-5 for ex. and then if you add a new item, it's added to the top of the list (sort value of 0)
967: [12:35:13] <NobrainerWeb> i would like it to be added at the bottom of the list
968: [12:35:44] <micmania1> ah right
969: [12:36:03] <kinglozzer> NobrainerWeb: Can you use onBeforeWrite to do it?
970: [12:36:14] <kinglozzer> There's a syntax for writing to extra fields, can't remember it though
971: [12:36:36] <NobrainerWeb> Yes, but i don't know how to do that with a many many (he made an example for a has_one) see https://github.com/ajshort/silverstripe-gridfieldextensions/issues/44
972: [12:37:08] <NobrainerWeb> Perhaps also have a look at this bug (i think it's a bug) https://github.com/ajshort/silverstripe-gridfieldextensions/issues/48
973: [12:42:26] <micmania1> I developed something ages ago to handle many_many relations but it was in-house.
974: [12:42:39] <micmania1> Hopefully if i get some time i'll be able to open-source it
975: [12:46:08] <Py^k> kinglozzer: NobrainerWeb update the extrafield on the relation, it should update.
976: [12:46:16] <Py^k> on the object that's related, as such.
977: [12:48:20] <NobrainerWeb> Py^k: to do many_many initial sort order on write? I guess i need to find the max value of the sort field, based on the relation, but i have no idea how to do this
978: [12:50:41] * Shrike_Finland has joined #silverstripe
979: [12:54:07] <kinglozzer> Ugh, Windows. Apparently you have to log in to a Microsoft account to install Win 8.1
980: [12:54:15] <kinglozzer> Fuckers
981: [13:13:53] * UndefinedOffset has joined #silverstripe
982: [13:21:03] <speak_> kinglozzer, nope
983: [13:21:19] <speak_> it's hidden, I can't remember the exact steps but it's on the other screen
984: [13:24:28] <micmania1> just doing a zen cart upgrade. They fucking love jumping in and out of php tags.
985: [13:25:45] <willmorgan> it's too late, speak_
986: [13:25:54] <willmorgan> he's already bent over and been taken
987: [13:26:12] <speak_> well I guess that's that.
988: [13:26:15] <speak_> you had a good run lozzer.
989: [13:26:48] <willmorgan> he won't be running for a while
990: [13:43:20] * stripee has joined #silverstripe
991: [13:43:50] <stripee> url linking problem.....http://www.sspaste.com/paste/show/530dec0950973
992: [13:44:10] * ocm has joined #silverstripe
993: [13:44:32] <stripee> i have described the problem and also pasted the code....can someone figure out the solution?
994: [13:44:36] <ocm> howdy
995: [13:45:40] <speak_> yo ocm
996: [13:47:39] <guci0> normally a fool :(
997: [13:52:02] <kinglozzer> speak_, willmorgan: I won't be sitting down for a while
998: [13:52:07] <willmorgan> haha
999: [13:52:19] <kinglozzer> speak_ Couldn't be bothered with it, just signed in, installed and signed out :P
1000: [13:52:38] <willmorgan> funny how nobody whines about how Macs / iDevices require you to sign in with iCloud though
1001: [13:52:51] <willmorgan> they just sit there dribbling
1002: [13:52:57] <willmorgan> "omg... i.... cloud...."
1003: [13:53:07] <speak_> sigh. sigh sigh sigh.
1004: [13:53:08] <speak_> get over it
1005: [13:53:52] <kinglozzer> But... Apple...
1006: [13:54:01] <kinglozzer> Revolutionary...
1007: [13:54:13] <willmorgan> yawn
1008: [13:54:21] <willmorgan> if Linux had better game drivers I would be using that
1009: [13:55:01] <kinglozzer> I'd be using it if it were just a tad prettier (and I didn't have my iMac purchased for me)
1010: [13:57:31] <Py^k> willmorgan: define 'game drivers'...
1011: [13:57:40] <Py^k> because for the most part it's fine.
1012: [13:57:44] <Py^k> has been for years.
1013: [13:57:56] <willmorgan> maybe I'll give it a go again
1014: [13:57:59] <willmorgan> need a bigger SSD tho
1015: [13:58:24] <willmorgan> if I can multiclient EVE at least as well as Windows, I'm happy
1016: [13:58:39] <Py^k> oh eve eh.
1017: [13:58:46] <Py^k> internet spaceships srs biznus.
1018: [13:59:55] <willmorgan> oh crap, and then there's Traktor/Serato/VirtualDJ
1019: [14:00:00] <willmorgan> not sure what the linux support for those is like
1020: [14:00:12] <Py^k> there's always wine.
1021: [14:00:18] <Py^k> but yeh, *shrug*
1022: [14:00:33] <Py^k> generally it's not so much the games that stops folks, it's generally one app or other.
1023: [14:00:36] <kinglozzer> willmorgan: Will your beamz by flo work on Linux?
1024: [14:00:49] <willmorgan> I don't use those, they're awful
1025: [14:01:03] <willmorgan> I'm saving up for some proper DJ headphones
1026: [14:01:10] <kinglozzer> Hahaha, I should hope not. I saw the YouTube video and thought it was a joke
1027: [14:01:18] <Py^k> oh, optimus. That is one thing that's pretty sketchy.
1028: [14:01:25] <kinglozzer> willmorgan: Have you actually seen the video for them?
1029: [14:01:39] <kinglozzer> Or 'it'
1030: [14:01:40] <willmorgan> no sir
1031: [14:01:51] <willmorgan> but I'm guessing it's tailored towards sheep who will buy anything with a brand name on it
1032: [14:01:53] <kinglozzer> When you get time, watch it, it's fucking amazing
1033: [14:01:54] <Py^k> the reason I don't reun 'nix at home. netbook has optimus tech.
1034: [14:02:00] <Py^k> :<
1035: [14:02:10] <kinglozzer> They're not headphones
1036: [14:02:15] <willmorgan> beamz?
1037: [14:02:17] <kinglozzer> I don't know how to describe what it is
1038: [14:02:17] <willmorgan> ohh
1039: [14:02:28] <kinglozzer> Other than a pile of shit
1040: [14:02:34] <willmorgan> sorry, I thought you said Beatz by Dre
1041: [14:03:01] <willmorgan> automatically in the context of music, when I hear/read: "<x> by <potentially awful rap artist>" I assume it's Beats by Dre
1042: [14:03:12] <kinglozzer> willmorgan: It's worse, somehow
1043: [14:03:57] <willmorgan> ...
1044: [14:04:54] <willmorgan> ironically the audio track on that video is awful in both quality and content
1045: [14:09:03] <kinglozzer> It compliments the product nicely
1046: [14:10:16] <stripee> need help here.....http://www.sspaste.com/paste/show/530dec0950973
1047: [14:11:41] <willmorgan> stripee: (a) what have you tried? (b) what version of SS are you using?
1048: [14:13:44] * Colin[pi] quit (Ping timeout: 272 seconds)
1049: [14:14:14] <Py^k> at a glance I'd say <a href="<% loop .. should be <% with ...
1050: [14:25:43] <ocm> shouldnt it be <% loop ... %><a href="$link.."></a></li><% end_loop %> ??
1051: [14:25:46] <stripee> its 3.1
1052: [14:25:51] * catcher has joined #silverstripe
1053: [14:25:56] <ocm> right now the loop happens inside the <a href="">
1054: [14:25:59] <stripee> loop or with
1055: [14:26:13] <stripee> with too works
1056: [14:26:59] <willmorgan> it should really be using <% with
1057: [14:27:49] <stripee> actually it was with in the begginning,...i changed it to loop ...but both dint get me the url it wanted
1058: [14:27:56] <willmorgan> right
1059: [14:28:16] <willmorgan> so have you tried to debug what is returned to you in the function, instead of the template?
1060: [14:28:29] <stripee> yes
1061: [14:28:48] <stripee> function returns me the link to first option....
1062: [14:29:33] <stripee> y not 2nd,3rd.......so on .......href working
1063: [14:29:50] <stripee> $area field contains surf
1064: [14:30:10] <willmorgan> so if you did Debug::dump($query->Link()); you saw the correct value?
1065: [14:30:20] <willmorgan> each time you called that function in the template?
1066: [14:31:28] <Sj0hn> if i want to render 'IntroPage.ss' should it be: renderWith(array('Intro', 'Page'); or renderWith('IntroPage'); '
1067: [14:33:52] <stripee> no
1068: [14:34:00] <stripee> i mean i have not tried this
1069: [14:36:27] <willmorgan> ok, would you like to try that?
1070: [14:36:42] <stripee> i m trying that
1071: [14:36:44] <willmorgan> nice
1072: [14:37:24] <stripee> this is the result...http://www.sspaste.com/paste/show/530df8c2674fc
1073: [14:38:39] <willmorgan> looks like your query is busted then
1074: [14:38:52] <stripee> yes man
1075: [14:39:04] <willmorgan> you know how to fix that?
1076: [14:39:11] <stripee> no
1077: [14:39:24] * DoVe quit (Ping timeout: 245 seconds)
1078: [14:40:09] <stripee> i know there is some prob with mi query...but cant figure out wats going wrong with the query....is it the logic mistake?
1079: [14:40:22] <willmorgan> yes, probably logic or you're passing something wrong in
1080: [14:46:43] * JaaP has joined #silverstripe
1081: [14:49:37] <Sj0hn> Any1 know why this code doesnt work: http://www.sspaste.com/paste/show/500dc0718114c ? I get a blank page..
1082: [14:50:30] <kinglozzer> Sj0hn: If your template is IntroPage.ss, it should be array('IntroPage', 'Page');
1083: [14:51:05] <Sj0hn> Ok, I tried both but still same result (blank screen)
1084: [14:51:31] <kinglozzer> Sj0hn: Can you paste your controller somewhere or explain what you're trying to do?
1085: [14:52:41] <catcher> Sj0hn, be sure to flush the template cache
1086: [14:52:57] <Sj0hn> Sure, I'm trying 2 set a cookie so the first time you visit the website you go to the intro page then continue to the homepage. But when you visiti again make it not show
1087: [14:53:12] <Sj0hn> you mean normal ?Flush=all ?
1088: [14:53:24] <catcher> ?flush=all, yes
1089: [14:53:24] <Py^k> turn display_errors on
1090: [14:53:29] <catcher> also that
1091: [14:53:35] <kinglozzer> Sj0hn: I wouldn't use forTemplate() for that
1092: [14:53:42] <kinglozzer> I'd create my own index() method
1093: [14:54:31] <Sj0hn> Could you gimme an example on how to do it?
1094: [14:54:36] <kinglozzer> 1 sec
1095: [14:54:36] <Py^k> Zauberfisch: here?
1096: [14:54:57] <Sj0hn> sure
1097: [14:55:03] <Sj0hn> my controller btw: http://paste2.org/sdZUY83F
1098: [14:56:11] <Py^k> lunch of champions. A flapjack and a double decker.
1099: [14:56:22] <kinglozzer> Sj0hn: https://gist.github.com/kinglozzer/9230902
1100: [14:56:45] <Py^k> oh gawd, intros :<
1101: [14:56:48] <kinglozzer> I think that's what you're after
1102: [14:56:53] * stripee quit (Ping timeout: 245 seconds)
1103: [14:56:56] <Py^k> that's missing from the 1990s developer list
1104: [14:56:59] <kinglozzer> :P
1105: [14:57:01] <kinglozzer> Flash intros
1106: [14:57:04] <kinglozzer> <3
1107: [14:57:04] <Sj0hn> looks about right
1108: [14:57:18] <Py^k> kinglozzer: non flash intros, even better
1109: [14:57:31] <Sj0hn> i got a fancy full size background splash page!
1110: [14:57:39] <Sj0hn> with just 1 logo
1111: [14:57:46] <Sj0hn> client says it looks exclusive
1112: [14:57:56] <Py^k> whatever that means... lol
1113: [14:58:38] <Py^k> exclusivity, because my website is not for you -.-
1114: [14:59:05] <Py^k> yus
1115: [14:59:13] <Py^k> got told I can go home early :D
1116: [14:59:20] <Py^k> but... gotta take the bus :<
1117: [14:59:32] <Sj0hn> busses suck
1118: [14:59:38] <Py^k> mmhmm
1119: [15:00:16] <Sj0hn> Kinglozzer: does the function go inside the controller?
1120: [15:00:21] <kinglozzer> Sj0hn: Yeah
1121: [15:00:36] <kinglozzer> Instead of your forTemplate()
1122: [15:01:58] <Sj0hn> Damm that works :D
1123: [15:02:14] <kinglozzer> Of course it does ;)
1124: [15:02:52] <Sj0hn> Thnx =)
1125: [15:17:09] <Zauberfisch> Py^k: yes
1126: [15:17:12] <Zauberfisch> but not for long
1127: [15:22:43] <Zauberfisch> Py^k: in fact, I'll be leaving now
1128: [15:29:34] <Py^k> ok
1129: [15:29:37] <Py^k> bl 2 me
1130: [15:37:41] * willmorgan quit (Quit: l8rz)
1131: [15:50:12] <Py^k> sif quit
1132: [15:52:39] * Shrike_Finland quit (Quit: Leaving.)
1133: [16:05:04] * Sj0hn quit (Read error: Connection reset by peer)
1134: [16:06:04] * JaaP quit (Ping timeout: 245 seconds)
1135: [16:12:30] * NobrainerWeb quit (Quit: NobrainerWeb)
1136: [16:24:30] * Py^k quit (Quit: Page closed)
1137: [16:32:42] * DesignerX quit (Ping timeout: 244 seconds)
1138: [16:41:06] * kk quit (Quit: Page closed)
1139: [17:10:48] * cmd276 quit (Quit: Leaving)
1140: [17:12:20] * cmd276 has joined #silverstripe
1141: [17:18:34] * kinglozzer quit ()
1142: [17:28:35] * cmd276 quit (Quit: Leaving)
1143: [17:33:44] * wilson-staff has joined #silverstripe
1144: [17:34:09] <wilson-staff> That Captcha guy has a badtrip..... Reminds me why i never used that crap....
1145: [17:35:12] <wilson-staff> @BPower and @Unclecheese - the JS error i had was caused by some files badly FTPd on the server.
1146: [17:35:18] * wilson-staff quit (Client Quit)
1147: [17:36:44] * ryan__ has joined #silverstripe
1148: [17:36:46] <ryan__> hello
1149: [17:36:56] <ryan__> can anybody help me with overloading File.php
1150: [17:37:21] <ryan__> i'm trying to replace some of the functions in my own class (S3File.php)
1151: [17:37:42] <ryan__> i tried extending File.php, but realise now this cna only add functions, not replace
1152: [17:51:43] * Shrike_Finland has joined #silverstripe
1153: [17:54:10] <UndefinedOffset> ryan__ are you doing a php extension of File.php or a silverstripe DataExtension? If you're doing a php extension you can replace any public or protected method
1154: [17:56:26] <ryan__> not sure :)
1155: [17:56:39] <ryan__> at the moment, its this: class S3File extends DataObjectDecorator
1156: [17:57:10] <ryan__> but before i was doing S3File extends File
1157: [17:57:39] <ryan__> neither semeed to allow me to do replace a function
1158: [17:57:46] <ryan__> so i have this in S3File.php
1159: [17:57:47] <ryan__> function getURL() { return "http://" . S3_BUCKET . ".s3.amazonaws.com/" . $this->owner->getFilename(); }
1160: [18:03:43] <ryan__> if I take getURL() of of file.php it works fine and uses my own written function
1161: [18:07:27] <catcher> Why is the default cache TTL only 10 min?
1162: [18:11:03] <catcher> ryan__, if you're wanting File to use your custom methods site-wide, you're probably wanting UseCustomClass
1163: [18:11:55] <catcher> ryan__, Decorating only allows new properties/methods, and subclassing will only work where you're explicitly using S3File.
1164: [18:15:24] * Shrike_Finland quit (Quit: Leaving.)
1165: [18:21:38] * DesignerX has joined #silverstripe
1166: [18:22:04] * SightUnseen has joined #silverstripe
1167: [18:23:07] * SightUnseen has left #silverstripe
1168: [18:26:54] * ryan__ quit (Ping timeout: 245 seconds)
1169: [18:33:08] * DesignerX quit (Ping timeout: 248 seconds)
1170: [18:34:26] * ryan__ has joined #silverstripe
1171: [18:41:05] * gelignite has joined #silverstripe
1172: [18:56:03] * kinglozzer has joined #silverstripe
1173: [18:56:45] * SphereSilverNL has joined #silverstripe
1174: [19:07:08] * Stomach has joined #silverstripe
1175: [19:08:41] <SphereSilverNL> Does anyone know of a Pad-like module for Silverstripe?
1176: [19:08:59] <SphereSilverNL> Something like this: https://public.pad.fsfe.org/
1177: [19:09:17] <SphereSilverNL> With a public and edit-option (where the edit-option is only for logged in users)
1178: [19:09:23] <SphereSilverNL> If not, I guess I have work to do :D
1179: [19:13:36] * kinglozzer quit ()
1180: [19:17:36] * UncleCheese has joined #silverstripe
1181: [19:23:46] * zippy___ has joined #silverstripe
1182: [19:23:48] * UncleCheese quit (Read error: Connection reset by peer)
1183: [19:26:13] * Shrike_Finland has joined #silverstripe
1184: [19:28:31] * wilson-staff has joined #silverstripe
1185: [19:29:23] * ryan__ quit (Ping timeout: 245 seconds)
1186: [19:32:33] * nickmolhoek has joined #silverstripe
1187: [19:34:27] * micmania2 has joined #silverstripe
1188: [19:34:45] * micmania1 has joined #silverstripe
1189: [19:34:45] * micmania1 quit (Client Quit)
1190: [19:35:29] * micmania2 is now known as micmania1
1191: [19:47:36] * catcher quit (*.net *.split)
1192: [19:49:34] * OxFF1 has joined #silverstripe
1193: [19:51:34] * Emil_Blume has joined #silverstripe
1194: [19:51:48] <SphereSilverNL> Life sucks :(
1195: [19:54:14] <Ryan-Toast> Nah.
1196: [19:54:24] * an_Eskimo has joined #silverstripe
1197: [19:55:11] * catcher has joined #silverstripe
1198: [19:56:07] <an_Eskimo> Morning all, just curious, is there any reason that a page would appear in the site, but not in the sitetree? We have a $Children loop, but the page that it is showing up in doesn't have any children according to the SiteTree
1199: [19:56:38] <SphereSilverNL> It could be pushed to live, than deleted from Stage.
1200: [19:56:57] <SphereSilverNL> The live usually still exists, because it was published, but the stage-version is gone.
1201: [19:57:10] <SphereSilverNL> Restore the stage version and you should be able to remove it fully.
1202: [19:57:40] * OxFF1 has left #silverstripe
1203: [19:57:43] * svandragt has joined #silverstripe
1204: [19:58:47] <an_Eskimo> Thing is, I can't see any draft or staged version, unless I'm looking in the wrong place?
1205: [19:59:23] <SphereSilverNL> Depends, how deep is your tree? It might've been moved in stage, thus not show up in direct view.
1206: [19:59:54] <an_Eskimo> 3 levels at best. Top level (home, top level pages, etc) then the children, and then the grandchildren
1207: [20:00:48] <SphereSilverNL> I'd love to help you, but I got stuff to attend to :(
1208: [20:00:54] * catcher_dev has joined #silverstripe
1209: [20:01:11] <SphereSilverNL> Sorry, but my best guess right now is there's probably a page live, that isn't in the SiteTree itself anymore.
1210: [20:01:14] * SightUnseen has joined #silverstripe
1211: [20:01:14] * SphereSilverNL quit (Quit: bye)
1212: [20:01:26] * svandragt1 quit (Ping timeout: 272 seconds)
1213: [20:01:27] * simon_w|air quit (Ping timeout: 272 seconds)
1214: [20:01:27] * Raymondo quit (Ping timeout: 272 seconds)
1215: [20:01:28] * catcher quit (Ping timeout: 272 seconds)
1216: [20:01:28] * Emil_Blume quit (Ping timeout: 272 seconds)
1217: [20:01:30] * simon_w|air has joined #silverstripe
1218: [20:01:32] * Emil_Blume has joined #silverstripe
1219: [20:01:39] <an_Eskimo> Sweet as, not a problem =D
1220: [20:01:49] * SightUnseen has left #silverstripe
1221: [20:05:17] * Raymondo has joined #silverstripe
1222: [20:05:21] * Raymondo quit (Changing host)
1223: [20:05:21] * Raymondo has joined #silverstripe
1224: [20:06:40] * Raymondo is now known as Guest32915
1225: [20:08:29] * UncleCheese has joined #silverstripe
1226: [20:10:57] * Shrike_Finland quit (Quit: Leaving.)
1227: [20:12:41] * simon__w|air has joined #silverstripe
1228: [20:13:36] * Emil_Blume1 has joined #silverstripe
1229: [20:14:11] * antmas has joined #silverstripe
1230: [20:14:22] <antmas> morning all
1231: [20:14:49] <Ryan-Toast> Sup
1232: [20:18:30] <zippy___> morning
1233: [20:18:46] * Emil_Blume quit (*.net *.split)
1234: [20:18:46] * simon_w|air quit (*.net *.split)
1235: [20:18:46] * gelignite quit (*.net *.split)
1236: [20:21:03] * antmas quit (Changing host)
1237: [20:21:03] * antmas has joined #silverstripe
1238: [20:21:26] * gelignite has joined #silverstripe
1239: [20:25:23] <antmas> ss23: back at work yet?
1240: [20:32:07] * k_fish has joined #silverstripe
1241: [20:33:00] <Ryan-Toast> hard at work, or hardly working?
1242: [20:33:14] <simon_w> Probably asleep
1243: [20:33:22] <zippy___> he starts at 10..
1244: [20:33:32] <Ryan-Toast> Nice time to start.
1245: [20:36:04] <Ryan-Toast> Can you nest yml extension?
1246: [20:36:21] <simon_w> What do you mean?
1247: [20:36:23] <catcher_dev> Is there any reason not to add 1-year expiry headers for everything?
1248: [20:36:37] <Ryan-Toast> simon_w: like so: http://www.sspaste.com/paste/show/530e4cf6d30b8
1249: [20:36:37] <catcher_dev> I've never used these before, wondering why they're not on by default.
1250: [20:36:56] <simon_w> catcher_dev, screws people over during development
1251: [20:37:07] <simon_w> Also, it means you can't replace files, have to rename for changes
1252: [20:37:15] <simon_w> Ryan-Toast, no
1253: [20:37:20] <Ryan-Toast> simon_w: kay
1254: [20:37:22] <Ryan-Toast> simon_w: thanks :)
1255: [20:37:27] <catcher_dev> simon_w, right, makes sense. Worth it most of the time?
1256: [20:37:36] <simon_w> catcher_dev, in live, definitely
1257: [20:37:43] <catcher_dev> cool, thanks.
1258: [20:38:01] <Ryan-Toast> catcher_dev: Yeah man, good for performance.
1259: [20:38:47] <antmas> wish I could start at 10
1260: [20:38:49] <simon_w> It's in my blog post!
1261: [20:38:50] <antmas> :(
1262: [20:39:08] <Ryan-Toast> simon_w: I'd love a blog post that goes into caching a little deeper :)
1263: [20:40:24] <zippy___> catcher_dev: also if you do that on your html, if someone edited the HTML the changes wont show up. But good for static files for sure
1264: [20:41:12] <catcher_dev> If I set them on css/js, that means I have to rename to force updates. Can I do that like so? Requirements::css('whatever.css?1')?
1265: [20:41:14] <catcher_dev> Or is there a better way?
1266: [20:41:14] <Ryan-Toast> catcher_dev: You can ust ?t=12345
1267: [20:41:25] <Ryan-Toast> or is it m?
1268: [20:41:27] <Ryan-Toast> one for those.
1269: [20:41:35] <catcher_dev> I wouldn't think it'd matter..
1270: [20:41:35] <Ryan-Toast> to force an update while you dev
1271: [20:41:55] <catcher_dev> ?anything, no?
1272: [20:41:59] <Ryan-Toast> I just use a timestamp of right now, then turn it off on production.
1273: [20:42:03] <catcher_dev> as long as it's different?
1274: [20:42:09] <Ryan-Toast> ye
1275: [20:42:15] <simon_w> catcher_dev, if you're using requirements, then the mtime gets appended automatically
1276: [20:42:39] <catcher_dev> killer, really? So I can just combine in my httpd config and be done with it in production?
1277: [20:42:39] <guci0> I don't believe – half day wasted for one sql query :)
1278: [20:42:53] * Ryan-Toast looks at source, hmm does too :D
1279: [20:43:04] <Ryan-Toast> guci0: I know dat feel.
1280: [20:43:13] <catcher_dev> Yep, there it is.
1281: [20:43:28] <antmas> guci0: welcome to my life :(
1282: [20:43:34] <catcher_dev> Silly I never noticed that before.
1283: [20:43:34] <guci0> the worst part is that it still does not work
1284: [20:44:22] <Ryan-Toast> guci0: Do something else for awhile, and come back to it with a fresh head.
1285: [20:44:29] <guci0> :)))
1286: [20:44:45] <Ryan-Toast> guci0: And if that doesn't work Burn.It.To.The.Grounmd
1287: [20:51:01] * UncleCheese_ has joined #silverstripe
1288: [20:51:47] <zippy___> Ryan-Toast: nope, throw it on the ground http://www.youtube.com/watch?v=gAYL5H46QnQ
1289: [20:52:01] <Ryan-Toast> THAT'S NOT MY DAD!
1290: [20:52:14] <Ryan-Toast> HAPPY BIRTHDAY TO THE GROUNNNND
1291: [20:54:13] <zippy___> guci0: whats the quyery?
1292: [20:55:16] * joelpittet has joined #silverstripe
1293: [21:01:03] <guci0> Hmmm...DataObject::get('OfferSystem')->filter('FeatureID', 7)
1294: [21:01:17] <guci0> But
1295: [21:01:31] <Ryan-Toast> DataObject::get('OfferSystem')->filter('Feature.ID', 7) ?
1296: [21:01:39] <guci0> It's data needs to be joined
1297: [21:02:20] <guci0> OfferSystem is'a holder of related elements many_many
1298: [21:02:53] <guci0> "Features" => "Feature",
1299: [21:03:19] <guci0> And SS created for this DB Tables OfferSystem_Features
1300: [21:03:23] <simon_w> guci0, ->filter('Features.ID', 7)
1301: [21:03:34] * UncleCheese quit (Quit: UncleCheese)
1302: [21:03:34] * UncleCheese_ is now known as UncleCheese
1303: [21:03:38] <guci0> Wrrrr
1304: [21:03:57] * zippy___ is now known as zippy__
1305: [21:04:17] <guci0> :)
1306: [21:04:27] <Ryan-Toast> guci0: did that work?
1307: [21:04:33] <Stomach> can you pass more than one object or variable through to a template?
1308: [21:04:37] <Stomach> <% include ProductListings Products=$NewProducts %>
1309: [21:04:42] <Stomach> <% include ProductListings Products=$NewProducts ShowPagination=0 %>
1310: [21:04:43] <Stomach> ?
1311: [21:05:01] <simon_w> Yes, comma separated
1312: [21:05:02] <Ryan-Toast> Stomach: you can send arrays from the controller
1313: [21:05:06] <wilson-staff> @zippy remember the JS error yestarday? It was caused by a fauly FTPd file......
1314: [21:05:10] <Stomach> ah cool, thanks simon_w
1315: [21:05:22] <guci0> simon_w: sec.
1316: [21:05:24] <Stomach> yeah Ryan I know - its a view thing though, not a controller issue
1317: [21:05:42] <Ryan-Toast> Stomach: Ah, cool :)
1318: [21:06:37] <Ryan-Toast> Do anyone else's fingers get sore from typing?
1319: [21:07:16] <antmas> wilson-staff: thought it might, fresh upload work ok in thend?
1320: [21:07:17] * zippy__ is now known as zippy_
1321: [21:07:27] * zippy_ is now known as zippy__
1322: [21:07:32] <antmas> Ryan-Toast: yeah, but I've just changed keyboard so it's fixed now
1323: [21:07:42] <guci0> simon_w: is ArrayList need?
1324: [21:07:43] * zippy__ was trrying to work his way up the zippy chain..
1325: [21:07:48] <Ryan-Toast> antmas: Hmm, my index finger hutrte like a mother.
1326: [21:08:42] <antmas> Ryan-Toast: do you cross type? (type some keys on the left with your right hand vice versa)
1327: [21:09:04] <Ryan-Toast> antmas: I don't touch type.
1328: [21:09:10] <wilson-staff> @antmas yes - fresh upload from SS and fresh FTP from local to (same) server
1329: [21:09:14] <Ryan-Toast> I clackity clack.
1330: [21:09:31] <antmas> Ryan-Toast: wait, you look at the keys?
1331: [21:09:38] <Ryan-Toast> antmas: yeah.
1332: [21:09:51] <antmas> Ryan-Toast: :P
1333: [21:10:01] <Ryan-Toast> antmas: I'm pretty fast though. Which is weird.
1334: [21:10:30] <guci0> it's DataList
1335: [21:10:31] <antmas> tbh honest, I look when I first start typing
1336: [21:10:37] <antmas> e.g. the first letter
1337: [21:11:10] <antmas> wilson-staff: what FTP client were you using?
1338: [21:11:23] <antmas> I always get errors when I use SmartFTP
1339: [21:11:24] * NobrainerWeb has joined #silverstripe
1340: [21:11:38] <NobrainerWeb> Hi guys
1341: [21:11:46] <antmas> NobrainerWeb: ahoyhoy
1342: [21:11:50] <ss23> antmas: yeah, was back at work yesterday!
1343: [21:11:57] <antmas> ss23: :D
1344: [21:12:46] <zippy__> NobrainerWeb: hey
1345: [21:14:08] * UncleCheese_ has joined #silverstripe
1346: [21:14:45] <NobrainerWeb> i'm trying to write a onBeforeWrite method for my data object, that will write a sort order to a many_many table (trying to fix: https://github.com/ajshort/silverstripe-gridfieldextensions/issues/44)
1347: [21:18:07] * Emil_Blume1 quit (Ping timeout: 252 seconds)
1348: [21:19:13] * TRB143 quit (Ping timeout: 252 seconds)
1349: [21:20:19] * ss-log quit (Ping timeout: 252 seconds)
1350: [21:20:27] * ss-log_ has joined #silverstripe
1351: [21:20:34] * Emil_Blume1 quit (Ping timeout: 252 seconds)
1352: [21:20:35] * TRB143 quit (Ping timeout: 252 seconds)
1353: [21:20:35] * ss-log quit (Ping timeout: 252 seconds)
1354: [21:23:20] * micmania2 has joined #silverstripe
1355: [21:25:00] * UncleCheese___ has joined #silverstripe
1356: [21:25:18] * joelpitt_ has joined #silverstripe
1357: [21:25:39] * UncleCheese____ has joined #silverstripe
1358: [21:29:14] * UncleCheese_ quit (Read error: Connection reset by peer)
1359: [21:31:56] <catcher_dev> No expire headers: 49 not set. Add them to my vhost, 40 not set. Move them to .htaccess, 16 not set.
1360: [21:31:57] <NobrainerWeb> No one that can help me get on track? ajshort gave an example for a has_many relation, i need to do the same but for a many_many relation: https://github.com/ajshort/silverstripe-gridfieldextensions/commit/796bd0ad68126ca99775dbcc850a57da8acdf36e
1361: [21:34:30] * UncleCheese quit (Write error: Connection reset by peer)
1362: [21:34:31] * UncleCheese___ is now known as UncleCheese
1363: [21:34:44] * joelpittet quit (Ping timeout: 252 seconds)
1364: [21:35:04] * micmania1 quit (Ping timeout: 252 seconds)
1365: [21:36:01] * micmania1 has joined #silverstripe
1366: [21:36:49] * micmania2 quit (Ping timeout: 252 seconds)
1367: [21:37:07] * UndefinedOffset quit (Quit: Leaving.)
1368: [21:39:54] * SphereSilverNL has joined #silverstripe
1369: [21:40:03] * willr has joined #silverstripe
1370: [21:41:09] <SphereSilverNL> micmania1: sorry
1371: [21:41:14] * UncleCheese____ quit (Quit: UncleCheese____)
1372: [21:41:22] <micmania1> SphereSilverNL: ??
1373: [21:41:59] <SphereSilverNL> Private chat?
1374: [21:42:13] <SphereSilverNL> My logs say micmania1
1375: [21:44:11] * Tanger has joined #silverstripe
1376: [21:47:13] <guci0> simon_w: works
1377: [21:47:16] <guci0> thx
1378: [21:48:29] <guci0> wonderfull :)
1379: [21:48:41] * Tanger quit (Ping timeout: 265 seconds)
1380: [21:49:53] * joelpitt_ quit ()
1381: [21:53:41] <guci0> :)))))))
1382: [21:54:21] * SphereSilverNL quit (Quit: bye)
1383: [21:54:47] <wilson-staff> @antmas i am using Dreamweaver built-in FTP. And TextWrangler to write code.
1384: [21:55:00] <antmas> wilson-staff: o.O
1385: [21:55:17] <wilson-staff> and o.O means?
1386: [21:55:21] <antmas> I'd avoid Dreamweaver for anything :P, especially FTP
1387: [21:55:31] <wilson-staff> May i ask why?
1388: [21:56:11] <antmas> wilson-staff: mostly personal reasons like a bad interface, unclean markup and general dropouts in FTP transfers
1389: [21:56:26] <wilson-staff> In fact, DW is a relic from the i was writting pure HTML page, not SS.
1390: [21:56:37] <antmas> mind you, I havent used it in about 2 years
1391: [21:56:54] <antmas> wilson-staff: cool
1392: [21:57:31] <antmas> somethine like FileZilla is good for FTP - cheap, easy and strong connections
1393: [21:57:53] <wilson-staff> You are right thought, FTP is not very reliable. Id switch to Transmit, but all of my active sites (30+) are FTP defined in DW. And DW is still very effective to write CSS and JS.
1394: [21:58:06] <simon_w> Eww, FTP
1395: [21:58:50] <antmas> simon_w: yeah, only FTP if you HAVE TO
1396: [21:59:19] <wilson-staff> @simon_w do you have other options than FTP to upload your files?
1397: [21:59:36] <simon_w> wilson-staff, SFTP, deploy straight from VCS
1398: [21:59:39] <simon_w> SCP
1399: [21:59:48] <antmas> I use SCP mostly
1400: [22:00:03] <simon_w> rsync
1401: [22:00:04] <wilson-staff> Newbie on that. Is it a sotware? Runs on Mac?
1402: [22:00:20] <antmas> wilson-staff: yeah, I use WinSCP (windows)
1403: [22:00:43] <guzzlefry> Mac should have a lot of native scp stuff, right?
1404: [22:00:45] <guzzlefry> being all unix-y
1405: [22:00:46] <simon_w> wilson-staff, protocols rather than software. SCP and SFTP and cp and ftp over SSH
1406: [22:00:54] <simon_w> rsync is software
1407: [22:00:59] <antmas> guzzlefry: surely
1408: [22:01:02] <simon_w> OSX comes with support for all of them
1409: [22:01:03] <guzzlefry> Filezilla can do SFTP.
1410: [22:01:23] <simon_w> wilson-staff, they all require you to have SSH access to the server though
1411: [22:01:59] <guzzlefry> Most of the better shared hosting providers give you shell access.
1412: [22:02:06] <wilson-staff> @simon that was my next question: How to access server? Are host providers keen on that?
1413: [22:02:15] <simon_w> Eww, shared hosts
1414: [22:02:22] <guzzlefry> Sometimes there isn't a choice. :P
1415: [22:02:23] <simon_w> Even worse than FTP
1416: [22:02:24] <antmas> wilson-staff: depends on the hosting provider
1417: [22:02:32] <simon_w> guzzlefry, there's always a choice
1418: [22:02:47] <guzzlefry> but but but
1419: [22:03:09] <wilson-staff> @toall well ive seen only shared hosts nad they barely let me thouch their php.ini..... Let alone shell access?
1420: [22:03:14] <antmas> Flexihost didn't give me a choice
1421: [22:03:19] <antmas> so I quit them lol
1422: [22:03:38] <simon_w> wilson-staff, especially for running SilverStripe, shared hosts aren't very good options
1423: [22:04:12] <antmas> wilson-staff: in reality, if you are a dev, they should give you full access as it is your responsibility to maintain things like that IMO
1424: [22:04:16] <simon_w> Though, judging by these questions, you'd struggle with a VPS
1425: [22:04:27] <wilson-staff> In fact, i have lots of config problems. But our clients are often hosted on their own (shared) servers and dont want to switch.
1426: [22:05:10] <simon_w> If I have to help with deploying, I refuse to work on a shared host
1427: [22:05:21] <guzzlefry> I'm often told "find better clients" :P
1428: [22:05:33] <antmas> guzzlefry: lol
1429: [22:05:51] * Guest32915 quit (Changing host)
1430: [22:05:51] * Guest32915 has joined #silverstripe
1431: [22:05:51] * Guest32915 quit (Changing host)
1432: [22:05:51] * Guest32915 has joined #silverstripe
1433: [22:06:00] <guzzlefry> But yeah...way too many variables with shared hosting that you can't really control.
1434: [22:06:05] * Guest32915 is now known as Raymondo
1435: [22:06:33] <wilson-staff> @ to all but i ve managed to get my clients out of Wordpress... Thats a good start!
1436: [22:06:48] <guzzlefry> simon_w: I'm curious. If you're deploying software on a server are you also stuck with maintaining that server?
1437: [22:06:53] <antmas> wilson-staff: Nice
1438: [22:07:00] <simon_w> guzzlefry, if I am, they get charged for it
1439: [22:07:34] <wilson-staff> @ to all is it worth having your own dedicated server? Be it in your office OR rented?
1440: [22:07:35] <antmas> simon_w: Since switching to Rimu (VPS) I can say, although it took me a few hours to get my head around what to do, I'll never go back
1441: [22:08:08] <simon_w> wilson-staff, nah. Dedicated is overkill. VPSs are usually fine
1442: [22:08:15] <antmas> wilson-staff: If you can afford it and it's fast and reliable, then I would
1443: [22:08:20] <antmas> but yeah, overkill
1444: [22:08:57] <simon_w> antmas, I know. Having root access and actual server resources is great
1445: [22:09:20] <antmas> simon_w: YES <3
1446: [22:09:33] <antmas> gives you a huge amount of power and optiosn
1447: [22:09:35] <wilson-staff> Ok. If i get a VPS, id still have to move all of our SS sites to it, with the consequences it brings? Can we configure VPS as we like, keeping its core synched with SS requirements?
1448: [22:09:35] <antmas> optons*
1449: [22:09:35] <simon_w> antmas, that's like what Caitlin said!
1450: [22:09:38] <antmas> fuck
1451: [22:09:51] <guzzlefry> woah you're tone
1452: [22:09:53] <guzzlefry> it's all wrong
1453: [22:09:57] <guzzlefry> your*
1454: [22:10:03] <simon_w> wilson-staff, you have complete control of the server, so can whatever you want
1455: [22:10:18] <antmas> guzzlefry: huh?
1456: [22:10:33] <wilson-staff> @simon php version? options? modules? etc?
1457: [22:10:38] <guzzlefry> antmas: I was quoting that Christopher Walken movie that I've never actually watched.
1458: [22:10:39] <antmas> wilson-staff: all of it
1459: [22:10:54] <guzzlefry> nevermind... :P
1460: [22:12:05] <antmas> wilson-staff: you could just try it out for a site or 2 (replicated them etc) and see what the process is like, but it would be very much worth it
1461: [22:12:20] <wilson-staff> How easy it is to connect domain name (DNS) to those VPS?
1462: [22:12:38] <simon_w> wilson-staff, it's a straight A record
1463: [22:12:45] <wilson-staff> In case of trouble, is there any support in those VPS cies?
1464: [22:13:00] <antmas> wilson-staff: usually, very good, but depends on the provider
1465: [22:13:17] <catcher_dev> Any way to combine files without listing them explicitly?
1466: [22:13:33] <wilson-staff> I am in Canada, ant recommendations? Thought it might be in China and wouldnt be different....
1467: [22:13:54] * azureknight has joined #silverstripe
1468: [22:14:32] * NobrainerWeb quit (Quit: NobrainerWeb)
1469: [22:14:34] <azureknight> The code in this page: http://doc.silverstripe.org/framework/en/trunk/reference/modeladmin for allowing objects to be viewed etc, is there a reason why when I let a non-admin group view the modeladmin section, they cannot actually see the objects?
1470: [22:14:59] <wilson-staff> @ to all Ok i am out to the hockey game: the famous Montreal Canadiens! See you tomorrow.
1471: [22:15:11] <simon_w> azureknight, default canView() defaults to only allowing ADMIN
1472: [22:15:16] <antmas> wilson-staff: I'm with these guys www.rimuhosting.co.nz, but their closest is Dallas
1473: [22:15:19] <azureknight> Blah...
1474: [22:15:44] <Ryan-Toast> antmas: Is your portfolio den yet?
1475: [22:15:45] <simon_w> azureknight, you need to set canView() to check for a more relevant permission
1476: [22:15:54] * wilson-staff quit (Quit: Page closed)
1477: [22:16:01] <antmas> Ryan-Toast: yup, just need to upload now that the domain is sorted
1478: [22:16:23] <azureknight> So doing the whole canView($member = null) {return Permission::check('CMS_ACCESS_CMSMain', 'any', $member)} doesn't do that?
1479: [22:16:41] <simon_w> azureknight, does the user have access to CMSMain?
1480: [22:16:56] <azureknight> I believe they only have access to the ModelAdmin alone.
1481: [22:17:21] <antmas> Ryan-Toast: have been busy though lately, so work is slow :P
1482: [22:17:39] <azureknight> simon_w so that's essentially saying, if they can access the CMSMain, they can see the modeladmin, right?
1483: [22:17:49] * speak_1 has joined #silverstripe
1484: [22:17:59] <speak_1> Yo!
1485: [22:18:07] <simon_w> azureknight, no, it's saying if they can access CMSMain, they can view the objects
1486: [22:18:14] <azureknight> Ah. Right. That's what I meant.
1487: [22:18:26] <azureknight> So, I need to write it that if they can access the ModelAdmin, they can see the objects...
1488: [22:18:40] <azureknight> Because they shouldn't have full admin rights.
1489: [22:19:02] <speak_1> I have this odd error, I have "Quote.ss" in my template folder, I've flushed, dev built etc… but when I use it in the CMS I get the error: "Template Quote.ss cannot be found"
1490: [22:19:20] <speak_1> Yet the functionality works and it works on the front end - but that error persists?!
1491: [22:19:34] <simon_w> speak_1, theme templates can't be used in the CMS. Needs to be in a module or mysite
1492: [22:20:35] <speak_1> But it's looking in themes>default
1493: [22:20:39] <speak_1> and still can't find it?.
1494: [22:21:03] <simon_w> speak_1, the CMS does not use the theme
1495: [22:21:50] * k_fish quit (Quit: Leaving)
1496: [22:22:20] <speak_1> how should I structure mysite to accommodate it? Is there a standard?
1497: [22:22:28] <simon_w> mysite/templates/Quote.ss
1498: [22:23:08] * Colin[pi] has joined #silverstripe
1499: [22:23:15] <azureknight> Colin[pi]!
1500: [22:23:21] <Colin[pi]> HAI
1501: [22:23:29] <speak_1> YO Colin[pi]
1502: [22:23:42] <Colin[pi]> YO!
1503: [22:23:48] <speak_1> Thanks a lot simon_w, no idea how I have not come up against this problem before.
1504: [22:24:44] <antmas> Colin[pi]: HELLLLLOOOO!
1505: [22:25:38] <azureknight> simon_w you're brilliant. I just switched it that if they have access to the specific modleadmin, they can view the objects.
1506: [22:25:40] <azureknight> Thank ya.
1507: [22:25:42] <Colin[pi]> HAI ANTMAS
1508: [22:25:47] <Colin[pi]> wow what a welcome
1509: [22:25:49] * Colin[pi] blushes
1510: [22:28:56] <guzzlefry> HAI Colin[pi]
1511: [22:29:38] <Colin[pi]> konnichiwa!
1512: [22:30:20] * gelignite quit (Quit: http://bit.ly/nkczDT)
1513: [22:30:35] <azureknight> Is there a way to make it that if they check a box in the permissions, that group can edit the content?
1514: [22:30:44] <Colin[pi]> Meanwhile, in Australia: https://pbs.twimg.com/media/Bhbq19YCAAA-q7d.jpg:large
1515: [22:31:22] <simon_w> Coal mines look awesome on fire
1516: [22:31:24] <antmas> Colin[pi]: woah, looks like lava :D
1517: [22:31:29] <Colin[pi]> coal mine fire :(
1518: [22:31:42] <antmas> man, I bet that stinks
1519: [22:32:13] <simon_w> It's like that mine down south that exploded, but this one's open cast
1520: [22:32:40] <antmas> simon_w: so, it's nothing like it at all?
1521: [22:32:49] <antmas> :P
1522: [22:32:50] <simon_w> Well, it looks cooler :p
1523: [22:32:54] <antmas> heh
1524: [22:32:59] <antmas> need moar photos
1525: [22:33:04] <simon_w> Probably easier to put out too
1526: [22:33:35] <antmas> where is it?
1527: [22:33:42] <simon_w> Victoria
1528: [22:34:34] <simon_w> http://www.abc.net.au/news/2014-02-27/coal-mine-fire-continues-to-blanket-morwell-in/5287130
1529: [22:35:30] <Colin[pi]> dang
1530: [22:35:54] <simon_w> Also, worst case is they can't put it out
1531: [22:36:10] <simon_w> Just don't tell the general populace that
1532: [22:36:18] <Colin[pi]> cant these things burn, like... for a LONG time?
1533: [22:36:37] <simon_w> Yeah, especially since they can burn without oxygen
1534: [22:36:59] <simon_w> Coal fires are really bad
1535: [22:37:16] <Colin[pi]> isn't there one in Russia that's been going for like 30 years?
1536: [22:38:04] <simon_w> Wouldn't surprise me
1537: [22:38:48] <antmas> Colin[pi]: there are a few underground ones that can burn for 100s of years depending on how much fuel is available
1538: [22:39:07] <Colin[pi]> well shit: http://www.atlasobscura.com/places/burning-mountain
1539: [22:39:11] <Colin[pi]> 6000 years, lol
1540: [22:39:22] <azureknight> Does the implements PermissionProvider work on objects, or only on page_controllers?
1541: [22:39:36] <simon_w> azureknight, works on objects
1542: [22:39:37] <antmas> Colin[pi]: holy shit
1543: [22:39:38] <antmas> lol
1544: [22:39:51] * azureknight falls on knees in beam of holy light.
1545: [22:40:01] <Colin[pi]> welp, those residents better start looking for a new house
1546: [22:42:35] <simon_w> Just don't tell them that or Abbott might have to give them money
1547: [22:44:10] <azureknight> Now just to figure out how.
1548: [22:46:07] <antmas> simon_w: did you just get a PM from me?
1549: [22:46:15] <simon_w> antmas, nope
1550: [22:46:25] <antmas> hmmm
1551: [22:46:53] <antmas> I had the @ symbol by mistake
1552: [22:46:53] <simon_w> Now I have
1553: [22:46:54] <antmas> :P
1554: [22:47:52] <antmas> sucks though, when you start a msg, it doesn't open a private channel until the recipient respods
1555: [22:48:21] <simon_w> I just click on their name and it opens a private chat before I start
1556: [22:48:34] <Colin[pi]> yep I do that too
1557: [22:48:38] * UncleCheese_ has joined #silverstripe
1558: [22:48:51] <antmas> in the web client, that just does a whois
1559: [22:49:08] <simon_w> lol, web client
1560: [22:49:08] <Colin[pi]> eeuw, web client
1561: [22:49:19] <antmas> :P cant connect at work otherwise
1562: [22:49:27] <simon_w> Get a better work! :p
1563: [22:49:32] <antmas> lol :P
1564: [22:49:35] <Colin[pi]> ahaha
1565: [22:50:14] <Ryan-Toast> svgs are fun as backgrounds.
1566: [22:51:01] <antmas> Ryan-Toast: example?
1567: [22:51:07] <antmas> I should use svgs more
1568: [22:51:17] <Colin[pi]> ..and buy a boat?
1569: [22:51:38] <Colin[pi]> I don't use them much either
1570: [22:51:42] <Colin[pi]> transparent pngs
1571: [22:51:53] <antmas> mmm dat png
1572: [22:52:06] <Colin[pi]> and media queries for 2x retina resolution ;)
1573: [22:52:13] <Ryan-Toast> antmas: black box triangles http://i.imgur.com/3Fa5sOU.jpg
1574: [22:52:42] <Colin[pi]> that took me far too long to see
1575: [22:53:06] <antmas> lol me too
1576: [22:53:08] <ss23> TEAM I HAVE BEEN DISAPPOINTED TO FIND MULTIPLE REFERENCES TO MODELS AS "OBJECTS" IN OUR CODEBASE. LESS JUDGEMENT PLEASE WE ARE ALL ADULTS
1577: [22:53:09] <antmas> but, does look good
1578: [22:53:25] <antmas> :O
1579: [22:53:35] <Colin[pi]> ss23: wat?
1580: [22:54:02] <antmas> Ryan-Toast: is that the site that that dude screwed up the first time around?
1581: [22:54:04] <Colin[pi]> Ryan-Toast: how does it go with responsiveness?
1582: [22:54:05] <ss23> lol
1583: [22:54:08] <ss23> the joke
1584: [22:54:12] <Ryan-Toast> antmas: yes
1585: [22:54:21] <Ryan-Toast> Colin[pi]: It scales to size of the parent
1586: [22:54:24] <Colin[pi]> cool
1587: [22:54:30] <Ryan-Toast> Colin[pi]: yarp
1588: [22:54:31] <Colin[pi]> wow it's going to look SO much better now
1589: [22:54:33] <Ryan-Toast> Colin[pi]: I dig it
1590: [22:55:09] <antmas> Ryan-Toast: the triangles scale to the larger box in this case?
1591: [22:55:32] <Ryan-Toast> antmas: I'm almost finished with the homepage. A few tweaks still http://i.imgur.com/U0cFu7W.jpg
1592: [22:55:33] <antmas> or rather, is the box the parent?
1593: [22:55:50] <guci0> Ryan-Toast: Nice!
1594: [22:55:51] <antmas> Ryan-Toast: mmmmm dat boilerplate :P
1595: [22:56:02] <Ryan-Toast> antmas: the balck box is the parent with a rgba background, and the sag triangles are the background image
1596: [22:56:05] <Colin[pi]> oh dude that looks so sweet
1597: [22:56:20] <Colin[pi]> like 200% better than the last one ;)
1598: [22:56:26] <Ryan-Toast> campared to this: http://icebase.com/ :P
1599: [22:56:30] <antmas> Colin[pi]: that's a low bar lol
1600: [22:56:32] <Ryan-Toast> compared**
1601: [22:56:39] <Ryan-Toast> oops
1602: [22:56:44] <antmas> Ryan-Toast: link lol
1603: [22:56:46] <Ryan-Toast> http://www.theicebase.com/
1604: [22:56:49] <Ryan-Toast> wrong link
1605: [22:56:54] <Ryan-Toast> ^ that's the right one.
1606: [22:57:03] <Colin[pi]> no comparison lol
1607: [22:57:14] <antmas> Ryan-Toast: I see that's where you use the scalable triangle from your codepen
1608: [22:57:43] <Ryan-Toast> antmas: Yeah
1609: [22:57:48] <Ryan-Toast> Used an sag in the end
1610: [22:57:50] <Ryan-Toast> dsf;kljbsdgjkln
1611: [22:57:52] <Ryan-Toast> SVG!
1612: [22:57:53] <Colin[pi]> I like the bkg in the header/footer
1613: [22:58:29] <Ryan-Toast> Colin[pi] thanks :)
1614: [22:58:29] <antmas> yeah it's a nice flat look
1615: [22:59:50] <antmas> Ryan-Toast: it's a shame those 2 clients on the right have rectangular logos :P
1616: [22:59:54] <Colin[pi]> but with just enough to make it different
1617: [22:59:58] <antmas> kinds throws that row a bit
1618: [23:00:15] <Ryan-Toast> antmas: I could make backgrounds for them, but cbf.
1619: [23:00:38] <Ryan-Toast> and no doubt when they start populating them they will put horrible logos in.
1620: [23:00:53] <antmas> yeah
1621: [23:00:58] <antmas> lol clients
1622: [23:01:17] <Ryan-Toast> Hopefuly they hire us to do the graphics for them.
1623: [23:01:23] <Ryan-Toast> but most likely not.
1624: [23:01:32] <Colin[pi]> "here's your beautiful new site!" "Thanks! *PFTHHHTTTTTTTTTTTTTTHHHHTHTTHHTTTT*" (sound of diarrhea)
1625: [23:01:41] <speak_1> Anyone know the url to set the Home Page icon?
1626: [23:02:11] <Ryan-Toast> Colin[pi]: lol, so true.
1627: [23:02:20] <Colin[pi]> happens every time :(
1628: [23:02:28] <Ryan-Toast> speak_1: you need a HomePage class.
1629: [23:02:45] <speak_1> And it comes in by default? Nice!
1630: [23:02:46] <Ryan-Toast> then private static $icon = 'mysite/images/globe.png';
1631: [23:03:09] <Ryan-Toast> yeah, it has a default one, but you can change it to whatever you want with ^
1632: [23:03:21] <speak_1> Great, that's what I doing for the other pages.
1633: [23:03:32] <Ryan-Toast> speak_1: Just make an empty class :)
1634: [23:03:32] <speak_1> Wondered why the default wasn't showing for home, haven't made that type yet!
1635: [23:05:12] <speak_1> Thanks Ryan-Toast!
1636: [23:05:20] <Ryan-Toast> speak_1: NO PROBLEM!
1637: [23:07:22] <antmas> :O I still haven't checked my lotto tickets
1638: [23:08:22] <simon_w> antmas, SHUUUUUUN
1639: [23:09:26] * UncleCheese quit (Quit: UncleCheese)
1640: [23:09:26] * UncleCheese_ is now known as UncleCheese
1641: [23:09:49] <antmas> I could be a millionaire! lol
1642: [23:10:06] <simon_w> antmas, then you could pay off my credit card!
1643: [23:10:15] <antmas> simon_w: lol, credit cards
1644: [23:10:37] <simon_w> And it's only going to get worse, what with paying for moving and a wedding :(
1645: [23:11:02] * OzziNL quit (Ping timeout: 244 seconds)
1646: [23:11:22] <Colin[pi]> in debt for all the things
1647: [23:13:01] <ss23> lol
1648: [23:13:05] * ss23 looks at his bank account
1649: [23:13:06] <ss23> ^.^
1650: [23:13:23] <Colin[pi]> I was paid for a project yesty, so I'm happy
1651: [23:13:27] <ss23> nice
1652: [23:13:32] <Colin[pi]> and then tomorrow, RENT AND TAX BILL AND ACCOUNTANT BILL
1653: [23:13:33] <ss23> I get paid tomorrow
1654: [23:13:33] <ss23> :D
1655: [23:13:34] <Colin[pi]> FFFFUUUUUUUU
1656: [23:13:41] * UncleCheese_ has joined #silverstripe
1657: [23:13:42] <ss23> Which is good, cause I spent ~$120 on candy last night
1658: [23:13:42] <Ryan-Toast> I got paid today, awwww yiss
1659: [23:13:48] <ss23> :D
1660: [23:13:51] * ss23 eats his candy ^.^
1661: [23:13:59] <Colin[pi]> $120... on candy?
1662: [23:14:06] <ss23> Yeah! :D
1663: [23:14:09] <Colin[pi]> and you have diabetes
1664: [23:14:12] <ss23> lol
1665: [23:14:16] <ss23> hmm
1666: [23:14:17] <Colin[pi]> WHAT THE FUQ.
1667: [23:14:25] <ss23> Technically I got deoderaant and razer blades too
1668: [23:14:30] <ss23> So was probably only like $80 on candy
1669: [23:14:31] <antmas> I got paid yesterday, all on bills ;__;
1670: [23:14:37] <ss23> I got ~5 bags of werthers original
1671: [23:14:42] <ss23> half a KG of marshmallows
1672: [23:14:49] <guzzlefry> Those are some expensive razor blades and deodorant. 0.o
1673: [23:14:52] <ss23> I think ~5 of the standard size blocks of cohcolate
1674: [23:14:52] <Colin[pi]> jesus that must be some epic deoderant and razer blades
1675: [23:14:57] <ss23> guzzlefry: I think I got other stuff, but I cna't remember what...
1676: [23:14:58] <Colin[pi]> ^
1677: [23:15:01] <ss23> Hmmm
1678: [23:15:04] <ss23> Shaving cream!
1679: [23:15:07] <ss23> I think that was it?
1680: [23:15:09] <ss23> The rest was candy I think
1681: [23:15:12] <guzzlefry> I spend like $10/2 years for razor blades.
1682: [23:15:14] <ss23> Hmmm
1683: [23:15:19] <ss23> I maybe got more candy
1684: [23:15:20] <antmas> guzzlefry: lol
1685: [23:15:21] <Colin[pi]> ss23: not keen on a beard?
1686: [23:15:22] <ss23> Because it was expensive
1687: [23:15:28] <ss23> Colin[pi]: I can't really do that :P
1688: [23:15:37] <Colin[pi]> lol bro do you even beard?
1689: [23:15:44] <Stomach> beards ftw
1690: [23:15:52] <ss23> pls
1691: [23:15:53] <ss23> pls be nice
1692: [23:15:54] <antmas> I love my beard
1693: [23:15:57] <antmas> :D
1694: [23:15:58] <ss23> i am a 12 year old girl
1695: [23:15:59] <ss23> be nice 2 me
1696: [23:16:02] <Colin[pi]> i like them up until a point, my gf hates it
1697: [23:16:03] <guzzlefry> :P
1698: [23:16:10] <antmas> Colin[pi]: same here
1699: [23:16:15] <simon_w> You don't need shaving cream :p
1700: [23:16:32] <antmas> as soon as I can't drink a coffee without poo mo, then it comes off
1701: [23:16:36] <ss23> I use it cause otherwise I cut myself
1702: [23:16:36] <ss23> ;_;
1703: [23:16:41] <Colin[pi]> poo mo?
1704: [23:16:45] <ss23> I can barely shave without fucking it up as it is :/
1705: [23:16:58] <guzzlefry> just gotta believe
1706: [23:17:10] <Colin[pi]> ss23: cut myself every fucking time
1707: [23:17:35] <simon_w> Haven't cut myself since I started shaving in the shower instead of in front of a mirror
1708: [23:17:40] <antmas> Colin[pi]: brown mouth stain from coffee :P
1709: [23:17:40] <ss23> hmm
1710: [23:17:48] <Colin[pi]> ahh
1711: [23:17:49] <ss23> I would do shower, but I miss spots even in front of mirror...
1712: [23:17:51] <ss23> Goddam neck
1713: [23:17:58] <simon_w> ss23, amputate!
1714: [23:18:01] <antmas> I always catch my adams apple
1715: [23:18:04] <ss23> srsly wish I didn't have to shave at all
1716: [23:18:04] <Colin[pi]> yeah if I shave in the shower I look like shaggy from scooby doo
1717: [23:18:05] <ss23> :/
1718: [23:18:15] <guzzlefry> ss23: They have these fog-proof stick on mirrors for that.
1719: [23:18:17] <ss23> People who are like "LOL I AM A MAN YAY SHAVING", they can fucking have it
1720: [23:18:18] <ss23> Wish I didn't
1721: [23:18:27] <Colin[pi]> ss23: I fucking hate shaving
1722: [23:18:40] <ss23> Still, rather this than bleeding from a vagina... so I'm willing to accept it.
1723: [23:18:44] <Colin[pi]> LOL
1724: [23:18:50] <Colin[pi]> yeah, I agree on that one
1725: [23:18:51] <Ryan-Toast> LOL
1726: [23:19:22] <antmas> hahahahaha
1727: [23:19:30] <Ryan-Toast> ss23: The worst is when you have to shave all the time, but you can't grow a sweet beard.
1728: [23:19:32] <antmas> </3 shaving
1729: [23:20:26] * guzzlefry wonders if he's the only person who actually likes shaving.
1730: [23:20:33] <Colin[pi]> yes
1731: [23:20:35] <Colin[pi]> yes you are
1732: [23:20:46] <antmas> shavings OK if you're just trimming the beard
1733: [23:21:03] <simon_w> I like being clean shaven, I don't like shaving
1734: [23:21:09] <Colin[pi]> ^
1735: [23:21:18] <antmas> If I go clean shaven, I look like I'm 8
1736: [23:21:23] <Colin[pi]> lol
1737: [23:21:26] <antmas> full bear = 35 lol
1738: [23:21:27] <guzzlefry> See, I've had a few beards, but I'm not good with symmetry.
1739: [23:21:29] <antmas> beard*
1740: [23:21:40] <guzzlefry> So I screw up and start over a lot. :P
1741: [23:21:53] * guzzlefry ponders a beard template.
1742: [23:22:04] <antmas> guzzlefry: just go to a barber
1743: [23:22:11] <guzzlefry> blasphemy
1744: [23:22:14] <antmas> lol
1745: [23:22:21] <guzzlefry> Those don't really exist around here anymore.
1746: [23:22:31] <antmas> guzzlefry: I go to one all the time :D
1747: [23:22:42] <guzzlefry> I'm in the states, things might be different. :P
1748: [23:22:57] <antmas> I'm hanging out for a cutthroat
1749: [23:22:57] <Colin[pi]> could I interrupt this manscaping conversation for an SS qn?
1750: [23:23:05] <antmas> Colin[pi]: lol, pls
1751: [23:23:09] <guzzlefry> If you must.
1752: [23:23:12] <Colin[pi]> ok.. um, so onAfterWrite() is called after, er, writing... so one would think at that stage it's DB fields would be defined from the form being submitted, right?
1753: [23:23:32] <Colin[pi]> (modeladmin btw)
1754: [23:23:44] <ss23> 12:21:02 <@simon_w> I like being clean shaven, I don't like shaving
1755: [23:23:45] <simon_w> yes
1756: [23:23:45] <ss23> ^^
1757: [23:23:55] <Colin[pi]> so... why are two of them NULL instead of the value entered? :(
1758: [23:24:05] <guzzlefry> typo
1759: [23:24:20] <guzzlefry> well
1760: [23:24:24] <guzzlefry> Colin[pi]: is it setting them at all?
1761: [23:24:36] <Colin[pi]> in the db, it saves
1762: [23:24:41] <guzzlefry> hrm
1763: [23:24:45] <Colin[pi]> but in onAfterWrite, they aren't defined
1764: [23:24:46] <Colin[pi]> wtf
1765: [23:25:08] <Colin[pi]> let me do some debugging
1766: [23:25:10] <simon_w> First write or second write?
1767: [23:25:11] <guzzlefry> How are you checking the fields?
1768: [23:25:19] <Colin[pi]> $this->NameOfAttrib
1769: [23:25:39] <Colin[pi]> integer field
1770: [23:27:35] <ss23> DDI = direct dial, right?
1771: [23:27:40] <ss23> e.g. I can call the number onf a phone and get the person?
1772: [23:27:49] <simon_w> ss23, yes
1773: [23:27:52] <antmas> ss23: yeah
1774: [23:28:01] <ss23> Sweet, thoguht so
1775: [23:28:56] <antmas> hat having a direct dial
1776: [23:28:58] <antmas> hate*
1777: [23:29:10] <ss23> it's no different from an extension, right?
1778: [23:29:38] * spronk has joined #silverstripe
1779: [23:29:41] <antmas> yeah basically, but with DDI I don't get caller ID if I haven't saved the number already
1780: [23:29:48] <ss23> lol
1781: [23:30:07] <antmas> and I hate answering phones :/
1782: [23:30:10] <antmas> lol
1783: [23:30:26] <simon_w> Mark thought it'd be a good idea to put my personal cell number on my business card
1784: [23:30:27] <ss23> me too
1785: [23:30:29] <ss23> Thought I'm doing it lots now
1786: [23:30:31] <ss23> simon_w: OH SHIT
1787: [23:30:35] <ss23> simon_w: 10/10 fuck no
1788: [23:30:46] * catcher_dev quit (Quit: Leaving)
1789: [23:30:48] <Colin[pi]> simon_w: fuck that, cardinal sin
1790: [23:30:53] <Colin[pi]> 2am calls
1791: [23:30:53] * UncleCheese quit (Quit: UncleCheese)
1792: [23:30:53] * UncleCheese_ is now known as UncleCheese
1793: [23:31:10] <antmas> simon_w: change number asap
1794: [23:31:11] <simon_w> Luckily, no one's actually called me
1795: [23:31:17] <simon_w> antmas, two months
1796: [23:31:22] <antmas> :D
1797: [23:31:30] <simon_w> +614 something I can't remember yet
1798: [23:31:42] <simon_w> Looks like a Wellington number, but isn't!
1799: [23:31:49] <antmas> simon_w: or, put up a voicemail that redirects to your bosses number lol
1800: [23:31:56] <simon_w> Then NSW/ACT numbers look like mobile numbers but aren't!
1801: [23:32:14] * simon_w blames Colin[pi]
1802: [23:32:51] <antmas> ugh, thursdays
1803: [23:32:52] <Colin[pi]> what? no they don't
1804: [23:33:03] <simon_w> 04 numbers are Wellington region
1805: [23:33:08] <simon_w> 02 are mobiles
1806: [23:33:20] <ss23> Last thursdays are okay, ISIG!
1807: [23:33:24] <Colin[pi]> OIC
1808: [23:33:35] <antmas> ss23: huh?
1809: [23:33:42] <Colin[pi]> Qantas to axe 5,000 jobs... gg Qantas, nice knowing you
1810: [23:33:45] <antmas> what's ISIG mean again?
1811: [23:33:48] * Colin[pi] waves
1812: [23:34:04] <ss23> um
1813: [23:34:15] <simon_w> Colin[pi], but they have the best intl<->domestic transfer in Sydney :(
1814: [23:34:16] <antmas> o/ Qantas
1815: [23:34:16] <ss23> Information Security Interest Group
1816: [23:34:32] <antmas> ss23: ah right
1817: [23:34:34] <Colin[pi]> simon_w: they are in deep, deep trouble atm
1818: [23:34:40] <simon_w> Yeah
1819: [23:34:51] <antmas> this Thursday is my Friday, but I have to transfer a bunch of documents to our DMS :(
1820: [23:34:57] <Colin[pi]> want govt assistance, and the other airlines are like "NU UH"
1821: [23:35:26] <antmas> wtf am I listening to?
1822: [23:35:39] <simon_w> antmas, us!
1823: [23:35:46] <simon_w> You're piping IRC into say!
1824: [23:36:13] <ss23> lol
1825: [23:36:16] <ss23> god, screw that
1826: [23:36:32] <antmas> lol
1827: [23:36:44] <antmas> this just came on the metal Soundrop channel on Spotify http://www.youtube.com/watch?v=EUGBJA-eYEY
1828: [23:37:59] <ss23> hard metal
1829: [23:38:23] <antmas> kinda funky actually
1830: [23:38:30] <antmas> reminds me of someone... can;t think of it
1831: [23:38:46] <ss23> itaots?
1832: [23:38:57] <antmas> maybe?
1833: [23:39:03] <antmas> Frank Zappa, that's it
1834: [23:41:42] <antmas> been watching Attack on Titan
1835: [23:41:45] <antmas> so good
1836: [23:42:07] <Ryan-Toast> Just had like a 16 year old girl ask for my number. Calm down, love.
1837: [23:42:07] <Colin[pi]> ok wtf.. when my DO is saved, I get a call to before, after... then before and before, but no after, and only in the last before can I see the data from the form - something is obviously screwed up here
1838: [23:43:20] <Colin[pi]> Ryan-Toast: it's a trap
1839: [23:43:32] <Ryan-Toast> Colin[pi]: lol
1840: [23:43:51] <Ryan-Toast> you knw what they say about shore girls.
1841: [23:44:00] * speak_1 quit (Quit: Leaving.)
1842: [23:47:05] <antmas> Ryan-Toast: give her that number that when clicked formats an android phone :D
1843: [23:47:20] <antmas> I wonder if that still works
1844: [23:47:29] <Ryan-Toast> lol
1845: [23:47:36] <Colin[pi]> ohhhhhhhh
1846: [23:47:39] <Colin[pi]> well fuck
1847: [23:47:49] <Colin[pi]> so when a DO is added there are two write operations
1848: [23:47:53] <Colin[pi]> create and then update
1849: [23:48:08] <Colin[pi]> so that's why the events are triggered twice
1850: [23:53:40] <Colin[pi]> yay it's working
1851: [23:56:04] * UncleCheese__ has joined #silverstripe
1852: [23:59:47] * UncleCheese__ quit (Client Quit)

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