#silverstripe IRC Log

IRC log for 6 August 2013

All timestamps are in UTC.

1: [00:00:03] <UncleCheese> mmm
2: [00:00:08] <UncleCheese> oh, right
3: [00:00:11] <ss23> lol
4: [00:00:12] <UncleCheese> wow that's awkward
5: [00:00:27] <UncleCheese> but better than what i had in mind
6: [00:00:47] <UncleCheese> filter('Date:GreaterThan' => date('Y-m-d', strtotime("-1 day", $this->Date))
7: [00:00:48] <UncleCheese> FTW!
8: [00:01:18] <metanat> simon_w|air: when will the branch be ready for PR?
9: [00:01:31] <simon_w|air> metanat, when James gets around to it
10: [00:01:38] <simon_w|air> I could turn around and ask him, but effort :p
11: [00:02:30] <simon_w|air> And he's busy building our ORM
12: [00:03:01] <BPower> simon_w|air: Can you tell me what about this query is off? https://gist.github.com/nathanbrauer/b8d56528051b25de3e1e
13: [00:03:30] <metanat> simon_w|air: why are there memcached changes in there?
14: [00:04:37] <simon_w|air> BPower, where's it getting SortOrder from?
15: [00:04:54] <BPower> SortOrder is an Int field in CategoryPage, and $default_sort = 'SortOrder ASC'
16: [00:05:17] <ss23> simon_w|air: YOU DIDN'T ANSWER BTW
17: [00:05:25] <simon_w|air> metanat, "Get it to compile on my machine"
18: [00:05:32] <metanat> Oh :)
19: [00:05:33] <simon_w|air> Like I said, master builds on Arch
20: [00:05:39] <simon_w|air> ss23, I know
21: [00:05:46] <simon_w|air> ss23, you also didn't ask a question :p
22: [00:07:23] <BPower> simon_w|air: (not trying to be a pain, just not sure if you saw that I answered you :) )
23: [00:07:44] <ss23> simon_w|air: FINE! Did you want to?
24: [00:07:56] <simon_w|air> BPower, and notice how there's no mention of that table at all in that query?
25: [00:08:20] <BPower> CategoryPage?
26: [00:08:49] * mobiusnz has joined #silverstripe
27: [00:09:02] <BPower> simon_w|air: I don't know why it wouldn't. This is all SS generated.
28: [00:09:11] <ss23> Hmm, anyone happen to know off hand if the fulltextsearch module should index MetaStuff? A quick look at the code seems to imply it should
29: [00:09:25] <simon_w|air> ss23, probably
30: [00:09:42] <simon_w|air> BPower, welcome to the problem with lazy loading :p (is a known bug, fairly sure it's been fixed)
31: [00:09:58] <BPower> simon_w|air: I'm in ResourcePage, which belongs_many_many Categories=>CategoryP----------oh
32: [00:10:03] <ss23> sNDgTlffjv945A1Rzs4MXRLiEvfeLCQveWyHX0irGh5NUcfMKE2PbS2WTSIOq60 is now my unique keyword!
33: [00:10:06] <ss23> :D
34: [00:10:07] <ss23> Lets see if it comes up
35: [00:10:10] <BPower> simon_w|air: well, poop.
36: [00:10:25] <BPower> simon_w|air: any idea where I can find a patch?
37: [00:11:04] <simon_w|air> commit logs somewhere
38: [00:11:26] <simon_w|air> ss23, that looks like my CSRF token!
39: [00:11:35] <BPower> -_-
40: [00:12:25] <ss23> simon_w|air: :D
41: [00:14:28] * Jayden90 has joined #silverstripe
42: [00:19:59] * Peavers has joined #silverstripe
43: [00:20:04] <Peavers> I feel like I'm late..
44: [00:20:27] <simon_w|air> You are
45: [00:20:35] <simon_w|air> Colin[pi] was here before you!
46: [00:20:42] <Peavers> O
47: [00:20:43] <Peavers> M
48: [00:20:44] <Peavers> G
49: [00:21:29] <Peavers> Did I beat ss23 though?
50: [00:21:30] <Peavers> hes always late
51: [00:21:35] <Colin[pi]> :D
52: [00:21:50] <ss23> :O
53: [00:21:51] <Colin[pi]> I was rather early today yes
54: [00:21:51] <ss23> NU UH
55: [00:21:55] <ss23> I got in BEFORE 10 TODAY
56: [00:22:00] <Peavers> really?
57: [00:23:30] <simon_w|air> So, got my code working yet Peavers?
58: [00:23:38] <ss23> really really.
59: [00:23:50] <ss23> Every day I turn up after 10am, I get 4 less ciders to take home at the end of the week
60: [00:23:55] <ss23> my manager got me a massive thing of delicious cider
61: [00:23:59] <Peavers> Na, the ESAA guys are dickin around and won't give me the data
62: [00:24:02] <ss23> though I realise now... how the hell am I meant to take this home
63: [00:24:33] <simon_w|air> On the bus
64: [00:24:34] <Peavers> ss23, you're supposed to drink it there on the job
65: [00:24:36] <Peavers> right now
66: [00:24:39] <ss23> lol
67: [00:24:40] <Peavers> start drinking
68: [00:25:10] * robert_ quit (Read error: Connection reset by peer)
69: [00:28:21] <simon_w|air> Yay! Got it to crash on 10.8.4!
70: [00:28:39] <ss23> :D
71: [00:28:40] <ss23> Yay!
72: [00:28:52] <simon_w|air> AppleCare, give me free stuff now!
73: [00:32:59] <UncleCheese> does anyone know how to use conjuctiveGroup() in DataList?
74: [00:34:12] <simon_w|air> filterAny()
75: [00:34:58] <simon_w|air> Especially since conjuctiveGroup()'s on DataQuery
76: [00:35:28] <simon_w|air> Hang on, conjunction's the default. Why do you need a group?
77: [00:37:41] * Peavers_Somethin has joined #silverstripe
78: [00:39:43] <zippy__> I find it so weird and annoying how you can't just use CSS to style a droplist
79: [00:40:23] * Peavers quit (Ping timeout: 260 seconds)
80: [00:44:46] * NickSpiel has joined #silverstripe
81: [00:44:49] <Colin[pi]> you can to a degree?
82: [00:46:05] * Peavers has joined #silverstripe
83: [00:46:23] * Peavers_Somethin quit (Ping timeout: 240 seconds)
84: [00:47:17] <simon_w|air> What if I want to use radians instead?
85: [00:50:50] * DigNZ quit (Quit: DigNZ)
86: [00:57:15] <Colin[pi]> my isChanged() is returning true but nothing changed :C
87: [00:57:45] <simon_w|air> Try changing the level?
88: [00:57:53] <Colin[pi]> testing it now
89: [00:58:24] * UncleCheese quit (Quit: UncleCheese)
90: [00:58:29] <Colin[pi]> on associations, should it be $this->isChanged('AssignedTo') or $this->isChanged('AssignedToID') ?
91: [00:58:42] <simon_w|air> It should be the ID
92: [00:58:46] <Colin[pi]> k thanks
93: [01:00:03] <Colin[pi]> hmm it's saying my StartDate field changed
94: [01:00:16] <Colin[pi]> ahhh start date is empty :\
95: [01:01:21] <Colin[pi]> why would it report it as changed if it's null?
96: [01:01:56] <Colin[pi]> ah level 2
97: [01:02:23] * Stomach quit (Quit: Leaving.)
98: [01:03:02] <Colin[pi]> yep level 2 fixes it
99: [01:03:06] <Colin[pi]> thanks Colin[pi]
100: [01:03:26] * Peavers quit (Ping timeout: 240 seconds)
101: [01:06:44] <Colin[pi]> excellent now tracking history of changed attributes :)
102: [01:08:12] <zippy__> Colin[pi]: Yea I've found I can a little, good enough for now
103: [01:11:38] <BPower> simon_w|air: Pyromanik: FYI - I threw the code up on our staging, then production servers and it seems to be working correctly. I'm baffled why it isn't working on my local machine, though. I don't have any unique settings in _ss_env locally.
104: [01:11:49] <BPower> (This is the versioning issue)
105: [01:12:06] <BPower> Thanks for trying to help me :)
106: [01:17:34] * DigNZ has joined #silverstripe
107: [01:17:35] * DigNZ quit (Remote host closed the connection)
108: [01:17:49] * DigNZ has joined #silverstripe
109: [01:18:01] <simon_w|air> ss23, three minutes
110: [01:18:04] <ss23> mmk
111: [01:18:04] <ss23> :D
112: [01:18:07] * ss23 hungry so good timing
113: [01:19:08] <Pyromanik> BPower: heh, strange indeed.
114: [01:19:19] <Pyromanik> BPower: does the site dev/build correctly?
115: [01:19:23] <Pyromanik> and ?flush=all
116: [01:19:27] <BPower> yep
117: [01:19:30] <Pyromanik> odd
118: [01:19:31] <BPower> no errors
119: [01:22:44] * Stomach has joined #silverstripe
120: [01:25:10] <Pyromanik> hey ss23
121: [01:25:12] <Pyromanik> how bad is it
122: [01:25:13] <Pyromanik> right
123: [01:25:17] <Pyromanik> if there is a website I found
124: [01:25:21] <Pyromanik> and it has an error
125: [01:25:33] <Pyromanik> and in the error it tells me all the DB connection details, including password
126: [01:27:33] * zippy__ quit (Ping timeout: 248 seconds)
127: [01:30:00] <Pyromanik> how bad would it be for said website?
128: [01:31:09] * EasyCo has joined #silverstripe
129: [01:32:21] <EasyCo> When you use do something like $SomeDataList->renderWith('someTemplate'); How do you also give the template access to the controller methods?
130: [01:35:07] <Pyromanik> EasyCo: it doesn't
131: [01:35:29] <EasyCo> What doesn't?
132: [01:35:30] <Pyromanik> it's not in scope
133: [01:36:07] <irogue> Pyromanik: sounds like awesome
134: [01:36:19] <Pyromanik> irogue: which bit?
135: [01:36:27] <irogue> [13:25] <Pyromanik> and in the error it tells me all the DB connection details, including password
136: [01:36:50] <irogue> if cpanel, there's good chance their mysql user/pass will also be the cpanel user/pass, too
137: [01:37:17] <Pyromanik> irogue: nah it's not.
138: [01:37:58] <Pyromanik> gaiz, gaiz, I've found a critical security flaw in Silverstripe. BRB making blog post & announcing it to several groups (like the python one).
139: [01:38:51] <Pyromanik> if a developer accidentally a configuration file in dev mode, then failure to connect to DB results in connection details being dumped in the trace :<
140: [01:39:34] <Pyromanik> And don't any of you dare tell me not to leave a site in dev mode, obviously that just means you're foolish and are never going to fix it
141: [01:39:58] <Pyromanik> why didn't the govt choose drupal? GOSH
142: [01:40:08] * Pyromanik butthurts all over the floor
143: [01:40:13] <Pyromanik> xD
144: [01:40:42] <Pyromanik> no but seriously, db connectivity issue and a site accidentally in dev mode results in user and pass combo (along with server name) being dumped out.
145: [01:41:25] <Pyromanik> although easily restricted to only accept connections from the server IP, it's surely still not ideal right?
146: [01:41:37] <EasyCo> Can you pass some type of computer value with renderWith? I basically just need to transform one of the properties in the DataList
147: [01:42:02] <Pyromanik> EasyCo: how what?
148: [01:42:41] <Pyromanik> renderWith(array('VarName' => $value, 'Var2' => $anotherValue))
149: [01:42:42] <Pyromanik> etc
150: [01:42:44] <Pyromanik> ?
151: [01:42:52] <EasyCo> Yah
152: [01:43:11] <EasyCo> But I want to do some string modification on say VarName
153: [01:44:18] <EasyCo> Ok. $SomeDataList->renderWith('someTpl'); $SomeDataList returns something like array(0 => array('title' => 'someTitle'), 1 => array('title' => 'otherTitle'))
154: [01:44:55] <irogue> Pyromanik: what SS version?
155: [01:45:00] <Pyromanik> irogue: any of them?
156: [01:45:03] <irogue> mysql_connect(<filtered>,<filtered>,<filtered>,<filtered>)
157: [01:45:05] <EasyCo> In the template <% loop $Me %>$title<% end_loop %>. But I want to transform each title.
158: [01:45:06] <irogue> thats what i see
159: [01:45:21] <Pyromanik> irogue: naw, a bit further up
160: [01:45:24] <Pyromanik> ss3 I guess
161: [01:45:25] <Pyromanik> 3.0
162: [01:45:30] <Pyromanik> MySQLi
163: [01:45:45] <irogue> maybe ss3 then, def not in latest 2.4
164: [01:46:12] <Pyromanik> the first thing on the trace is MySQLi->connect('UserName', 'PasswordInPlainText')
165: [01:46:21] <Pyromanik> and then there's the next trace call
166: [01:46:40] <irogue> yeah, in 2.4 all the user/pass/everything is replaced with <filtered>
167: [01:46:43] <Pyromanik> then the third is MySQLi->something(<filtered>,<filtered>... etc)
168: [01:47:01] <Pyromanik> which seems a bit useless since the password and user are unfiltered 2 lines up.
169: [01:47:27] <irogue> so something was broken when the DB stuff was abstracted
170: [01:48:25] <irogue> of course, it's safe to assume there are plenty of other security holes when in dev mode, cos that's the point of dev mode
171: [01:48:28] <irogue> but should still be fixed
172: [01:48:41] <irogue> minor patch etc etc
173: [01:51:14] <Pyromanik> brb breaking site to find error code
174: [01:53:05] * joelpittet has joined #silverstripe
175: [01:54:50] * Peavers has joined #silverstripe
176: [01:55:03] <Peavers> Anyone fooled about with Google Tag Manager?
177: [01:55:44] <irogue> Pyromanik: https://github.com/silverstripe/silverstripe-framework/blob/master/dev/Backtrace.php
178: [01:56:04] <irogue> i don't have ss3 anywhere to test, but i'm guessing you need to add array('MySQLi', 'connect')
179: [01:56:11] <irogue> to $ignore_function_args
180: [01:59:11] <Pyromanik> in other news, V Graphite, do like.
181: [01:59:22] <irogue> yeah
182: [01:59:31] <Pyromanik> irogue: sounds pretty legit :D
183: [02:02:34] * UncleCheese has joined #silverstripe
184: [02:03:32] <irogue> Pyromanik: done my website yet? :-P
185: [02:06:34] * atmos has joined #silverstripe
186: [02:08:58] <atmos> sometimes, composer is tits
187: [02:11:19] <simon_w|air> Sadly, more than just sometimes
188: [02:17:05] * simon_w|air quit (Remote host closed the connection)
189: [02:17:34] * simon_w|air has joined #silverstripe
190: [02:17:53] * BPower quit (Remote host closed the connection)
191: [02:19:32] <Pyromanik> simon_w|air: if I plonk a youtube link in under 'insert media - from the web' in the content editor... will it automagic stuffs for me?
192: [02:19:44] <simon_w|air> Hopefully
193: [02:19:47] <Pyromanik> score
194: [02:20:47] <Pyromanik> seems to, :D
195: [02:20:53] * will has joined #silverstripe
196: [02:20:54] <Pyromanik> what better way to test than on a live site xD
197: [02:21:28] <will> hello, i'm getting an error where SS is looking for a _confgi.php file for a module i have deleted (cos it isn't compatible with 3.1)
198: [02:21:38] <Pyromanik> dev/build
199: [02:21:44] <will> ive tried dev/build/fulsh=all
200: [02:21:57] <Pyromanik> flush does nothing in that instance.
201: [02:22:02] <Pyromanik> but dev/build should fix it
202: [02:22:08] <will> presumably it is storing the places to look in a cache file somewhere?
203: [02:22:13] <Pyromanik> yep
204: [02:22:17] <Pyromanik> but dev/build flushes it
205: [02:22:24] <simon_w|air> will, any chance you're using a late-ish build of 3.1, but not the latest?
206: [02:22:38] <will> yes, installed 3.1 on friday
207: [02:22:51] <simon_w|air> From where?
208: [02:23:01] <will> composer. which was exciting
209: [02:23:14] <simon_w|air> Using which version?
210: [02:23:32] <Pyromanik> will: ha, by exciting do you mean brain numbing?
211: [02:23:55] <will> i mean new
212: [02:24:04] <will> which is always nice
213: [02:24:37] <will> excpet of course when i did it wrong and now ss is feeling poorly?
214: [02:26:07] <will> this is the command i used: omposer.phar create-project silverstripe/installer iq3 3.1.x-dev
215: [02:26:15] * simon_w|air quit (Remote host closed the connection)
216: [02:26:16] <Pyromanik> yeah that'll do it
217: [02:26:23] <Pyromanik> did you add the module using composer?
218: [02:26:30] <will> oh oh
219: [02:26:31] * atmos quit (Ping timeout: 250 seconds)
220: [02:26:33] <will> no?
221: [02:26:36] <Pyromanik> good xD
222: [02:26:44] <Pyromanik> but... you probably should
223: [02:27:01] <will> no. i copied over my modules (contactform and tagfield) and my templates & app folder
224: [02:27:03] <Pyromanik> I'm not that well versed with composer, if you had added the module wiht it then composer might have been the one causing the issue
225: [02:27:12] <Pyromanik> but since you didn't use it to install the module then hopefully it's not interfeering
226: [02:27:42] <will> so is there a database table or tmp file i should be looking in to clear out?
227: [02:29:19] * Jayden90 quit (Quit: Jayden90)
228: [02:30:10] <EasyCo> When you use a getter in your DataObject, how do you access the property it's overriding? For example: public function getTitle() { echo $this->Title; } will yield a notice: Undefined property Classname::$Title
229: [02:30:42] <will> o, is it $this->data->Title ?
230: [02:31:03] <Pyromanik> will: huh?
231: [02:31:20] <Pyromanik> will: you could manually remove the cache folder, sure.
232: [02:31:22] <Pyromanik> try that
233: [02:31:25] <will> Easyco's question. I asked it last week
234: [02:31:30] <will> ok, ill do that
235: [02:31:33] <will> ta
236: [02:31:55] <Pyromanik> EasyCo: yeah, calling $this->Title will call $this->getTitle() if it exists
237: [02:32:01] <Pyromanik> which ends in a circle.
238: [02:32:02] <ss23> l33t hax, I can life a can of coke with my hair
239: [02:32:13] <Pyromanik> ss23: do you even lift?
240: [02:32:17] <EasyCo> How do I not circle then.
241: [02:32:26] <Pyromanik> EasyCo: like will said ;)
242: [02:32:38] * simon_w|air has joined #silverstripe
243: [02:32:40] <EasyCo> I get blanks
244: [02:32:47] <simon_w|air> EasyCo, $this->getField('Title')
245: [02:32:51] * simon_w|air has left #silverstripe
246: [02:32:56] * simon_w|air has joined #silverstripe
247: [02:32:57] <Pyromanik> $this->data()->Title, $this->record->Title, $this->dbObject('Title')... many ways
248: [02:33:05] <Pyromanik> or what simon_w|air said.
249: [02:33:07] <Pyromanik> many ways
250: [02:33:19] <EasyCo> Capiche
251: [02:33:19] <simon_w|air> Except mine's the only one that'll work? :p
252: [02:33:20] <EasyCo> Thanks
253: [02:33:21] <UncleCheese> weird that you can't use a sort clause with ->column() ??
254: [02:33:28] <Pyromanik> the easiest and or best way is to simply name your getter something else.
255: [02:33:28] <EasyCo> Haha
256: [02:33:44] <Pyromanik> UncleCheese: sort first, then column
257: [02:33:49] <UncleCheese> no worky
258: [02:33:52] <simon_w|air> UncleCheese, doing it wrong :p
259: [02:33:53] <Pyromanik> really?
260: [02:33:54] <Pyromanik> :<
261: [02:34:00] <UncleCheese> ::get()->sort("SomeColumn ASC")->column('ID');
262: [02:34:00] <Pyromanik> simon_w|air: how 2 rite then?
263: [02:34:07] <UncleCheese> Unknown column SomeColumn
264: [02:34:28] <Pyromanik> not sort('SomeColumn', 'ASC')?
265: [02:34:35] <Pyromanik> I don't even remember
266: [02:34:41] <UncleCheese> because the DataQuery gets modified to only select ID.. the sort column doesn't appear in the field list
267: [02:34:47] <Pyromanik> ss23: fix the issue I found
268: [02:34:47] <UncleCheese> Pyromanik: can be either
269: [02:34:55] <Pyromanik> UncleCheese: ah yeah, cool
270: [02:34:59] <will> ok, where is the cache folder? the only one i found has just a cache.php file which i think deleting would be bad
271: [02:35:17] <Pyromanik> will: well, silverstripe-cache/
272: [02:35:18] <simon_w|air> UncleCheese, so upgrade already
273: [02:35:25] <UncleCheese> to?
274: [02:35:27] <Pyromanik> or /tmp/blah
275: [02:35:44] <simon_w|air> A version that calls ensureSelectContainsOrderbyColumns() in column()
276: [02:35:45] <UncleCheese> I'm on this: "silverstripe/framework": "3.1.x-dev",
277: [02:35:49] <Pyromanik> where blah looks something like silverstripe-cache-site-name/
278: [02:36:09] <Pyromanik> UncleCheese: update it?
279: [02:36:15] <Pyromanik> composer update?
280: [02:36:19] <UncleCheese> updating….
281: [02:38:23] <Pyromanik> :D
282: [02:38:30] <Pyromanik> does it work?
283: [02:39:01] * mdowton has joined #silverstripe
284: [02:39:43] * nickmolhoek1 has joined #silverstripe
285: [02:39:44] * nickmolhoek1 quit (Remote host closed the connection)
286: [02:40:03] * nickmolhoek1 has joined #silverstripe
287: [02:41:23] <mdowton> Can anybody help me with a where clause I am trying to find objects with a date a 2013-08-30 that are greater than this date unsure of correct syntax
288: [02:41:54] <will> ok, can't find them. where does the tmp dir live?
289: [02:41:56] * Zauberfisch_ quit (Ping timeout: 246 seconds)
290: [02:42:03] <simon_w|air> mdowton, ::get()->filter('Date:GreaterThan', '2013-08-30')
291: [02:43:19] <mdowton> its a combined table from left join ?
292: [02:44:16] <simon_w|air> Is it over a relationship?
293: [02:44:28] <mdowton> yes
294: [02:44:41] * [lewellyn] has joined #silverstripe
295: [02:44:42] <simon_w|air> ::get()->filter('RelationName.Date:GreaterThan', '2013-08-30')
296: [02:45:20] * lewellyn quit (Disconnected by services)
297: [02:45:30] * [lewellyn] is now known as lewellyn
298: [02:45:54] <ss23> lift*
299: [02:46:01] <ss23> Pyromanik: What issue, bro?!
300: [02:46:04] <ss23> Pyromanik: GOT A TICKET?!
301: [02:46:15] <Pyromanik> will: usually /tmp/
302: [02:46:23] <Pyromanik> ss23: nah bruv, you're about to make one.
303: [02:46:26] <ss23> lol
304: [02:46:27] <ss23> nu uh
305: [02:46:31] <ss23> bruffah
306: [02:46:33] <ss23> sishta.
307: [02:46:42] <Pyromanik> sishtabab
308: [02:47:20] <Pyromanik> ss23: see earlier when you were at lunch
309: [02:47:28] <will> in the root of the ss installation right? nothing there. also, i have an old 2.4 site, and silverstripe-cache is in the root. but not this 3.1.
310: [02:47:45] <DesignerX> Hi, time for a noob question : how do I download all files from svn ? from this link for example http://svn.simon.geek.nz/hasoneedit/trunk/ (using the browser)
311: [02:47:46] * nickmolhoek quit (Ping timeout: 240 seconds)
312: [02:47:46] * guzzlefry quit (Ping timeout: 240 seconds)
313: [02:47:47] * guzzlefry has joined #silverstripe
314: [02:47:49] <will> looking in some code
315: [02:48:02] <simon_w|air> DesignerX, from the browser, you can't easily
316: [02:48:04] * guzzlefry quit (Changing host)
317: [02:48:04] * guzzlefry has joined #silverstripe
318: [02:48:23] <simon_w|air> just use "svn export http://svn.simon.geek.nz/hasoneedit/trunk/ hasoneedit" from the command line
319: [02:48:32] <will> $_ENV['TMPDIR'] = TEMP_FOLDER; for *nix
320: [02:50:12] * SightUnseen has joined #silverstripe
321: [02:50:48] * SightUnseen has left #silverstripe
322: [02:54:12] <DesignerX> simon_w|air: I only have basic xampp setup on win7 right now, any other way to get my hands on a copy of this module ?
323: [02:56:02] * Zauberfisch_ has joined #silverstripe
324: [02:59:31] <simon_w|air> Got composer?
325: [03:00:47] * coldblooded01 quit (Quit: coldblooded01)
326: [03:01:38] <Colin[pi]> this is a guy I've known online for many years: http://www.wsbtv.com/news/news/wallet-returned-acworth-man-after-24-years/nZDzJ/
327: [03:03:19] <simon_w|air> DesignerX, http://swng.it/1NnJ2E
328: [03:03:47] * will quit (Ping timeout: 250 seconds)
329: [03:07:47] <Zauberfisch_> simon_w|air just saw the new logs.ss.org
330: [03:07:49] <Zauberfisch_> nice work
331: [03:08:40] <simon_w|air> Just need to tidy up the actual logs now :)
332: [03:08:52] <simon_w|air> Also, make it much less of a hack
333: [03:10:21] <simon_w|air> I have a feeling someone from china is attempting to clone them
334: [03:11:00] * joelpittet quit (Remote host closed the connection)
335: [03:20:18] * joelpittet has joined #silverstripe
336: [03:24:12] <DesignerX> simon_w|air: thank you :)
337: [03:24:16] <ss23> Whats the syntax for "latest stable 2.4" again?
338: [03:24:26] <simon_w|air> 2.4.*
339: [03:24:28] <ss23> like ~2.4
340: [03:24:29] <ss23> hmm
341: [03:24:30] <ss23> ty :D
342: [03:24:43] <ss23> simon_w|air: I'm going to write these down
343: [03:24:46] <simon_w|air> Well, 2.4.*@stable
344: [03:24:53] <ss23> is * different?
345: [03:25:09] <simon_w|air> But that only matters if you set a min-stability of dev
346: [03:25:13] <simon_w|air> From what?
347: [03:25:14] <ss23> kk
348: [03:25:46] <abitran> hello there.. is there a workaround for the translation/contact-form problem?
349: [03:26:06] <simon_w|air> Go go willr_ gadget go
350: [03:26:34] <willr_> abitran no. Separate forms.
351: [03:27:14] * UncleCheese quit (Quit: UncleCheese)
352: [03:28:03] <abitran> ok.. thanks... so I have to delete the translated contact from the db table..
353: [03:28:23] <ss23> simon_w|air: https://gist.github.com/ss23/6161763 - Remind me to add things to this whenever I ask, if I forget <3
354: [03:28:28] <ss23> simon_w|air: Then we'll have a glorious list :D
355: [03:28:40] * UncleCheese has joined #silverstripe
356: [03:28:51] <simon_w|air> ss23, add things to that list whenever you ask
357: [03:28:56] <ss23> lol
358: [03:29:57] <ss23> - Installing silverstripe/framework (2.4.x-dev a150989)
359: [03:29:59] <ss23> goddam it
360: [03:31:04] <ss23> No 2.4 release yet? :<
361: [03:31:21] <simon_w|air> Did you include @stable?
362: [03:31:30] <ss23> simon_w|air: I know what the issue was, I fixed it
363: [03:31:34] <simon_w|air> And 2.4.x-dev has that fix of yours in it :p
364: [03:32:02] <ss23> simon_w|air: it's because someone forked cms and framework, and I went to install it via like silverstripe-custom-fork/framework, but the cms included the real framework...
365: [03:32:44] <UncleCheese> simon_w: my framework version now has ensureSelectContainsOrderbyColumns(), but I still have the issue..
366: [03:32:56] <UncleCheese> MyPage::get()->sort("SomeColumn ASC")->column('ID');
367: [03:33:10] <UncleCheese> returns
368: [03:33:11] <UncleCheese> SELECT DISTINCT "SiteTree_Live"."ID", "ReleaseDate" FROM "SiteTree_Live" WHERE ("SiteTree_Live"."ParentID" = '62') AND ("SiteTree_Live"."ClassName" IN ('DetailPage')) ORDER BY "ReleaseDate" ASC Unknown column 'ReleaseDate' in 'field list'
369: [03:33:36] <UncleCheese> not sure why it's not joining my DetailPage table on there..
370: [03:33:59] <simon_w|air> So fix it?
371: [03:34:16] <ss23> simon_w|air: Though if you're willingto help me a little more :D. If I reference a "custom-silverstripe-fork/foo", then in my repositories [ { type "package"... package [ name: "custom.../foo", "type" "silverstripe-module", that should install to root, not vendors/
372: [03:34:20] <ss23> right?
373: [03:34:27] <ss23> Cause it sometimes does, but sometimes doesn't, and I havne't figured out how to be sure of which one it's going to do
374: [03:34:32] <UncleCheese> i just want to make sure it's not PICNIC
375: [03:34:33] <ss23> Because I need it to *not* go to vendors
376: [03:34:47] <simon_w|air> ss23, um, look at how the CWP composer.json handles forks?
377: [03:36:28] <ss23> simon_w|air: It doesn't, not in the same way
378: [03:36:32] <ss23> That I can tell
379: [03:39:22] * simon_w|air quit (Remote host closed the connection)
380: [03:45:31] * cloph_away has joined #silverstripe
381: [03:47:32] * cloph quit (Ping timeout: 260 seconds)
382: [03:53:36] * paul-kwikrelease has joined #silverstripe
383: [03:56:37] * liam_ has joined #silverstripe
384: [03:57:01] * liam_ is now known as Guest83421
385: [04:00:40] <Guest83421> Hi how can I call the nice method on a date field in php? e.g. in a template it is $date.nice
386: [04:00:52] * EasyCo quit (Ping timeout: 268 seconds)
387: [04:01:35] <Colin[pi]> $Date->Nice()
388: [04:01:44] <Colin[pi]> or $this->dbObject('Date')->Nice()
389: [04:01:57] <Guest83421> thanks Colin[pi]
390: [04:03:46] <DesignerX> is it possible to have extra fields added to the relation Table ? I have many-many relation & need to ad a "note" & few other details related to the relation
391: [04:13:07] <howardgrigg> DesignerX: $many_many_extraFields
392: [04:18:38] <UncleCheese> no way to search issues on github?
393: [04:19:49] <howardgrigg> yea just use the search at the top of the page
394: [04:20:07] <howardgrigg> automatically searches in that repo, code and issues
395: [04:23:28] <Pyromanik> oh jQuery, you so pretty much obsolete
396: [04:23:30] <Pyromanik> document.querySelector('.search .icon').addEventListener('click', function(){this.classList.toggle('open')})
397: [04:23:33] <Pyromanik> :D
398: [04:24:57] * Bollig|DesignCty has joined #silverstripe
399: [04:26:01] * joelpittet quit (Remote host closed the connection)
400: [04:26:32] * NickSpiel quit (Ping timeout: 240 seconds)
401: [04:29:42] * Jayden90 has joined #silverstripe
402: [04:34:11] <Jayden90> how do you force an automatic flush=1 behavior when developing?
403: [04:39:56] <Jayden90> http://devincharge.com/disabling-cache-silverstripe/
404: [04:40:17] <Jayden90> SS_Cache::set_cache_lifetime('default', -1, 100); Is this good advice?
405: [04:51:24] <Pyromanik> Jayden90: don't
406: [04:51:24] <Pyromanik> for starters, templates are tested for updates and recompiled automatically.
407: [04:51:24] <Pyromanik> second, flushing takes forever.
408: [04:51:46] <Pyromanik> third, you only ever need to flush when you add a new template (as above, updated ones are updated automatically).
409: [05:01:05] * Guest83421 quit (Quit: Guest83421)
410: [05:01:33] * DigNZ quit (Quit: DigNZ)
411: [05:03:35] * liam_ has joined #silverstripe
412: [05:03:41] * liam_ quit (Client Quit)
413: [05:04:21] <Jayden90> Pyromanik: Thanks. I'll manualy flush when I add a new template then :)
414: [05:09:40] * nickmolhoek1 quit (Quit: nickmolhoek1)
415: [05:10:53] * Peavers quit (Ping timeout: 240 seconds)
416: [05:11:06] * EasyCo has joined #silverstripe
417: [05:17:44] <ss23> Does anyone know where the silverstripe-module installer is?
418: [05:19:25] <ss23> aha, composer/installers
419: [05:29:35] * willr_ quit (Quit: willr_)
420: [05:33:51] * mobiusnz quit (Quit: Leaving.)
421: [05:38:53] * howardgrigg quit (Remote host closed the connection)
422: [05:43:17] * Stomach quit (Quit: Leaving.)
423: [05:44:00] * paul-kwikrelease has joined #silverstripe
424: [05:45:15] <ss23> Sometimes, composer is retarded - https://gist.github.com/ss23/6162319
425: [05:45:23] <ss23> "lol I checked it out... THEN DELETED IT CAUSE FUCK YOU"
426: [05:46:02] <wmk> composer drove me crazy yesterday.
427: [05:46:07] <irogue> @NewsBreaker: BREAKING: 400 airlines, 100 airports worldwide affected by reservation system outage; @SabreNews says they're working to resolve (@CBSDFW)
428: [05:46:12] <irogue> this is so funny to watch
429: [05:46:18] <irogue> that company is so fucked
430: [05:47:19] <ss23> lol irogue
431: [05:47:23] <ss23> Everyone makes mistakes!
432: [05:47:49] <irogue> i bet they had an ss23 there who did changes on production
433: [05:47:57] <irogue> OOPS I BROKE THE WORLD'S AIRLINE RESERVATION SYSTEM
434: [05:47:59] <ss23> haha
435: [05:48:00] <ss23> XD
436: [05:48:34] <wmk> reminds me of pinkie and brain
437: [05:49:27] * simon_w|air has joined #silverstripe
438: [05:49:46] <simon_w|air> Woo, logs are now using XHP
439: [05:49:51] <ss23> nice simon_w|air :D
440: [05:49:54] <ss23> I still rage at composer doing this
441: [05:49:59] <simon_w|air> Getting those links to work was fun
442: [05:50:03] <ss23> Why the hell... "LOL I DELETED YOUR DIRECTORY RIGHT AFTER CHECKING IT OUT"
443: [05:50:04] <ss23> idek why
444: [05:50:12] <simon_w|air> Oh yes, I had that last night
445: [05:50:14] <simon_w|air> Gave up
446: [05:50:27] <ss23> Just running it again works fine, but whoever wrote the code to do it was a retard
447: [05:50:30] <ss23> rather
448: [05:50:33] <ss23> They didn't think of this posibility
449: [05:50:39] * ss23 needs to work on his cussing out other developers...
450: [05:51:04] <simon_w|air> Well, my problem was framework kept timing out
451: [05:51:16] <simon_w|air> So I ran the checkout manually with no timeout, then ran composer again
452: [05:51:17] <ss23> I got that a lot too, I just ran it till it worked
453: [05:51:18] <ss23> took # times
454: [05:51:21] <simon_w|air> Guess what it did!
455: [05:51:22] <ss23> 3*
456: [05:51:24] <ss23> simon_w|air: WORKED
457: [05:51:24] <ss23> :D
458: [05:51:30] <simon_w|air> Guess again!
459: [05:51:33] <ss23> Um
460: [05:51:34] <ss23> Timed out!
461: [05:51:35] <ss23> :D
462: [05:51:50] <simon_w|air> It deleted the framework folder and started cloning again!
463: [05:51:54] <ss23> hahaha
464: [05:52:25] <simon_w|air> Ooh, I should open source the logbot
465: [05:52:34] <ss23> So to verify, * == any version that meets requirements, but dev-master == explicitly the master branch, right?
466: [05:52:39] <simon_w|air> Yup
467: [05:52:54] <simon_w|air> "svn+ssh://root@logs.simon.geek.nz/var/logbot-www"
468: [05:53:00] <simon_w|air> Hmm, screw open sourcing that
469: [05:53:15] <ss23> XD
470: [05:53:21] <simon_w|air> "URL: svn+ssh://root@logs.simon.geek.nz/var/logbot"
471: [05:53:24] <simon_w|air> screw that as well
472: [05:53:38] <simon_w|air> That'll require setting up apache_dav_svn
473: [05:53:57] <ss23> composer update -> composer update && composer update!
474: [05:54:19] <simon_w|air> Don't you want composer update; composer update for when the first one fails?
475: [05:54:48] <ss23> hmm
476: [05:54:49] <ss23> yes.
477: [05:54:52] <ss23> wait
478: [05:54:52] <ss23> no
479: [05:55:07] <ss23> simon_w|air: It doesn't "fail" the first time, the second one should stop if the first fails
480: [05:55:48] <simon_w|air> Oh good, it is safe to open source that password
481: [05:55:52] <ss23> - silverstripe/contentreview dev-master requires silverstripe/cms 3.0.* -> satisfiable by silverstripe/cms[3.0.2.1, 3.0.3, 3.0.4, 3.0.5].
482: [05:55:59] <ss23> "silverstripe/contentreview": "*",
483: [05:56:03] <ss23> y u no just 2.X
484: [05:56:10] <ss23> OH LOOK
485: [05:56:11] <ss23> NO 2.X BRANCH
486: [05:56:13] <ss23> ;___;
487: [05:56:13] * ss23 dies
488: [05:56:14] * mobiusnz has joined #silverstripe
489: [05:57:43] <ss23> tfw you typoed silverstripe as "silvestripe"
490: [05:57:44] <ss23> ;__;
491: [05:59:13] * howardgrigg has joined #silverstripe
492: [06:01:15] <simon_w|air> tow ss23 typos silverstripe :D
493: [06:01:26] <simon_w|air> *tfw
494: [06:02:06] <simon_w|air> Hmm, I wanna go home but I want my shiny screen
495: [06:02:11] <simon_w|air> Dilemma!
496: [06:02:30] <simon_w|air> Two lemmas? English, you weird <3
497: [06:03:01] <Colin[pi]> that'd be because it's from Greek :P
498: [06:03:08] <ss23> lol
499: [06:03:28] <Colin[pi]> and I totally didn't just google that, nuh uh
500: [06:03:37] <simon_w|air> Well, di is the greek prefix :p
501: [06:03:43] <Colin[pi]> :D
502: [06:04:01] <ss23> and "bi" is a prefix we use in English, but "bite" isn't for two te's
503: [06:04:01] <ss23> :D
504: [06:04:28] <simon_w|air> Gosh, it's every second te :p
505: [06:04:53] <Colin[pi]> biscuit is not for two scuits? I WANT MY SECOND SCUIT!
506: [06:04:57] <ss23> I get paid bi-weeky and bi-anually :)
507: [06:04:59] <ss23> fuck
508: [06:05:00] <ss23> fuck fuck
509: [06:05:04] <ss23> I get paid bi-weeky and bi-monthly :)
510: [06:05:08] <Colin[pi]> LOL
511: [06:05:50] <Colin[pi]> Due date: [26 Aug 2013, way] (read-only field) <--- wtf is that "way"?
512: [06:06:21] <ss23> way back, bro
513: [06:06:22] <ss23> august was AGES ago
514: [06:06:27] <ss23> wait
515: [06:06:30] <ss23> that's in the future?
516: [06:06:34] <Colin[pi]> yeah wtf
517: [06:06:35] <ss23> yeah
518: [06:06:37] <ss23> way == FUTURE BRO
519: [06:06:46] <Colin[pi]> it only puts "way" if it's in read-only mode
520: [06:07:11] * simon_w|air thinks it's way past home time!
521: [06:07:23] * simon_w|air quit (Quit: This computer has gone to sleep)
522: [06:07:42] <Colin[pi]> ok he's gone, start the party
523: [06:07:45] <ss23> lol
524: [06:07:47] <ss23> XD
525: [06:08:20] <ss23> lol, I'm seriously using composer update && composer update now
526: [06:08:22] <ss23> works so much nicer
527: [06:08:29] <Colin[pi]> :o
528: [06:08:37] <ss23> around this bug, at least
529: [06:08:43] <Colin[pi]> cool
530: [06:08:47] <Colin[pi]> if it works, use it
531: [06:08:49] <ss23> :D
532: [06:08:52] <ss23> Colin[pi]: Your mother works
533: [06:08:53] <ss23> :3
534: [06:09:34] * metanat quit (Ping timeout: 240 seconds)
535: [06:10:07] <Colin[pi]> :P
536: [06:14:36] * CodeTrap has joined #silverstripe
537: [06:36:19] * simon_w|air has joined #silverstripe
538: [06:51:18] <simon_w|air> There, source code's up
539: [06:57:32] * nickkasljdklasjd has joined #silverstripe
540: [06:57:55] * nickkasljdklasjd quit (Client Quit)
541: [06:58:25] * mayko1 has joined #silverstripe
542: [06:59:12] <simon_w|air> ss23, I can get you to fix everything now! Look, it's even a silverstripe.org link: http://logs.silverstripe.org/source/
543: [06:59:44] <ss23> :D
544: [06:59:45] <ss23> nice!
545: [06:59:47] <ss23> wait
546: [06:59:51] <ss23> You can get me to fix things?!
547: [06:59:53] <ss23> NU UH!
548: [07:01:15] <simon_w|air> But, silverstripe.org!
549: [07:01:54] * ss23 looks around
550: [07:02:04] <ss23> I just tried SSHing to root@logs.silverstripe.org and it didn't work! :)
551: [07:02:13] <simon_w|air> Duh :p
552: [07:02:17] <simon_w|air> Need a key!
553: [07:02:18] <ss23> XD
554: [07:02:34] <ss23> simon_w|air: If I was going to spend time on ss.org, it would be to get rid of the crappy /modules junk and use addons!
555: [07:02:47] <simon_w|air> Look, http://logs.simon.geek.nz/source/funcs.php even has my DB password so you can fix that too!
556: [07:03:02] <ss23> DUDE WHAT :O
557: [07:03:05] <ss23> You serve your .php as .txt?
558: [07:03:12] * zfmf1 has joined #silverstripe
559: [07:03:13] <ss23> oh
560: [07:03:15] <ss23> that's /source
561: [07:03:16] <ss23> XD
562: [07:03:22] <ss23> nice password
563: [07:03:23] <ss23> :P
564: [07:03:56] <simon_w|air> It is
565: [07:06:28] <simon_w|air> Good thing I'm running a DBMS that actually cares that your password's right too!
566: [07:06:45] * nickspiel has joined #silverstripe
567: [07:07:21] * nickspiel quit (Client Quit)
568: [07:08:29] * nickspiel has joined #silverstripe
569: [07:09:03] * mayko1 has left #silverstripe
570: [07:10:07] <simon_w|air> ss23, find the couple of places where I'm just sticking $_GET stuff straight into the html
571: [07:10:08] * mayko1 has joined #silverstripe
572: [07:10:13] <simon_w|air> Then break my site!
573: [07:10:18] <simon_w|air> :D
574: [07:10:59] <ss23> XD
575: [07:11:16] * Jayden90 quit (Quit: Jayden90)
576: [07:12:40] * nickspiel quit (Client Quit)
577: [07:16:38] * ARNHOE has joined #silverstripe
578: [07:23:27] <simon_w|air> Heh, now that the code's public I'm actually cleaning it up
579: [07:24:37] <ss23> haha
580: [07:24:41] <ss23> nothing like public code to motivate
581: [07:24:46] <ss23> simon_w|air: SO, you can use airplay with HTML5 on Safari!
582: [07:24:47] <ss23> :D
583: [07:25:08] <simon_w|air> ss23, yeah, and? :p
584: [07:25:16] <ss23> yeah and SWEEEET
585: [07:25:27] <ss23> hmmm
586: [07:25:31] <ss23> Where is the popup blocker in safari...
587: [07:26:29] <simon_w|air> preferences somewhere
588: [07:27:38] <ss23> yeah
589: [07:27:44] <ss23> I like Chrome's "yo we blocked something"
590: [07:28:00] <ss23> blargh
591: [07:28:03] <ss23> this player uses custom controls
592: [07:28:04] <ss23> ;____;
593: [07:30:37] <ss23> I take it back
594: [07:30:40] <ss23> It allows it for video
595: [07:30:41] <ss23> Not audio
596: [07:30:41] <ss23> :/
597: [07:30:43] <ss23> Nice, Safari
598: [07:30:49] <simon_w|air> Haha!
599: [07:30:56] <simon_w|air> Got an example?
600: [07:31:11] <ss23> Almost, I have one using custom controls, I can edit quickly though, sec
601: [07:31:20] <ss23> http://home.ss23.geek.nz/musicplayer/
602: [07:31:28] <ss23> itunes sucks compared to that :D
603: [07:32:28] <simon_w|air> Well, that doesn't even have anything attached to the audio tag :p
604: [07:32:39] <simon_w|air> Oh, I have to upload something
605: [07:32:40] <ss23> It's done via JS man
606: [07:32:41] <ss23> :D
607: [07:32:46] <ss23> It's not really "uploading", but yeah
608: [07:33:46] <simon_w|air> But how are you supposed to get atomic kitten? :p
609: [07:33:57] <ss23> Implying I don't already!
610: [07:35:01] <simon_w|air> yes
611: [07:36:24] <ss23> weird
612: [07:36:29] <ss23> This isn't showing up even with controls
613: [07:36:30] <ss23> :<
614: [07:37:41] <ss23> hmm
615: [07:37:49] <ss23> looks like it hides controls if it cna't play the file
616: [07:37:50] <ss23> grrr
617: [07:39:29] <ss23> or even then
618: [07:39:30] * ss23 waits
619: [07:39:33] <ss23> this is weird
620: [07:40:53] <ss23> aha
621: [07:40:57] <ss23> inb4 it was my reset.css
622: [07:40:57] <ss23> :D
623: [07:41:18] * mdowton quit (Quit: The computer fell asleep)
624: [07:44:39] <ss23> hmmm
625: [07:44:44] <ss23> simon_w|air: I can probably work around... by
626: [07:44:51] <ss23> Using a <video>, with controls, then CSS to hide parts of it
627: [07:44:51] <ss23> :/
628: [07:46:51] <simon_w|air> Oh goody, github's down
629: [07:47:16] <ss23> Could be worse. Github could be down *and* you have to deal with the monumental crap that is Apple
630: [07:47:52] <simon_w|air> I have access to pre-release documentation about setting up AirPlay with custom video controls :p
631: [07:48:02] <ss23> >video
632: [07:48:06] <ss23> EVERYONE HAS ACCESS TO THAT CRAP
633: [07:48:07] <ss23> I WANT AUDIO
634: [07:48:13] <simon_w|air> Not custom ones
635: [07:48:19] <ss23> idc
636: [07:48:39] <ss23> rage.
637: [07:48:50] <Valorez_> If I want to make a SiteTreeDecorator to enable "Tagging" on all pages, how would I set it up?
638: [07:49:25] <simon_w|air> By adding a DataExtension to SiteTree that added the relation and fields?
639: [07:50:10] * PigeonFriend has joined #silverstripe
640: [07:51:33] <Bollig|DesignCty> Valorez_: some googling should give you a decent starting point https://www.google.com.au/search?q=silverstripe+decorator
641: [07:52:07] <Valorez_> I have googled alot, the tutorials out there for Silverstripe are so blurry and bad, 99% of them :(
642: [07:53:17] <Valorez_> I search for Site Tree Decorator, and it says nothing about data object decorator, which is the top search from your query... which is which, what is the difference?
643: [07:53:34] <Valorez_> Someone need to write better documentations, with better examples
644: [07:54:51] <Bollig|DesignCty> Valorez_: certainly, a much requested addition from many community members. Silverstripe isn't what I'd call an 'entry level' cms, a good understanding of PHP is expected in most cases.
645: [07:55:19] <Bollig|DesignCty> plus, once you've got this sorted (i'll send you some code in a moment) perhaps that someone to write documentation can be you!
646: [07:56:02] <Valorez_> Im a Backend Developer, been working with companies such as Toyota and stuff. Been working on my own CMS and stuff.. but my new job requires me to learn Silverstripe :)
647: [07:56:20] <Valorez_> Yes, I'm starting to feel the strive for that as I go along learning SS :)
648: [07:57:12] <ss23> simon_w|air: http://home.ss23.geek.nz/musicplayer-safari/ :<
649: [07:57:13] <ss23> no work
650: [07:57:20] <ss23> idek if that link will work for you, since it references a song of mine
651: [07:57:27] <ss23> anyway, no airplay
652: [07:57:28] <ss23> :/
653: [07:58:31] <Bollig|DesignCty> Valorez_: here's a basic (empty) decorator: http://pastie.org/8210735
654: [07:58:44] <simon_w|air> ss23, do you have an Apple TV it can stream to?
655: [07:58:53] <ss23> I have a... thing that iTunes streams to
656: [07:58:57] <ss23> idek how airplay works
657: [07:59:06] <ss23> itunes streams music via airplay
658: [07:59:06] <ss23> :<
659: [07:59:18] <Bollig|DesignCty> Valorez_: one line added to _config.php extends SiteTree with the decorator.
660: [07:59:19] <simon_w|air> Yes, but video over AirPlay needs an Apple TV
661: [07:59:28] <simon_w|air> audio just needs speakers plugged into an airport
662: [07:59:33] <ss23> maybe it's taht then. Safari too shit to play audio
663: [07:59:33] <ss23> :/
664: [07:59:42] <ss23> RAGE
665: [07:59:45] <ss23> SO MAD
666: [08:00:07] <ss23> simon_w|air: plz make apple support ticket asking if safari ever support airplay on <audio>
667: [08:00:11] <ss23> ;_;
668: [08:00:15] <Valorez_> Thanks Bollig :)
669: [08:00:29] <Valorez_> I thought I only required to extend the SiteTreeDecorator
670: [08:00:35] <Valorez_> and the SS magic would do the rest hehe
671: [08:02:49] <Bollig|DesignCty> Valorez_: no worries. remember to use $this->owner on the decorator t reference page vars/methods/etc
672: [08:02:52] <simon_w|air> ss23, bugreport.apple.com, do it yourself :p
673: [08:03:15] <Valorez_> Okey yea thanks :)
674: [08:03:18] <ss23> featurerequest.apple.com
675: [08:03:22] * Shrike_Finland quit (Quit: Leaving.)
676: [08:07:13] * metanat has joined #silverstripe
677: [08:08:12] <Valorez_> Bollig|DesignCty: Is the code you pasted me compilable with 2.4?
678: [08:12:01] <Valorez_> I get an error while adding new Fields
679: [08:12:29] <Valorez_> Bah, I guess I have to read the whole SilverStripe/Sapphire source code and study that before I can continue with SS... =/
680: [08:16:38] <Bollig|DesignCty> Valorez_: yes it is compatible with 2.4. no, you don't need to understand all of ss just for this :)
681: [08:17:21] <Bollig|DesignCty> the docs provide much of what you'll be needing: http://doc.silverstripe.org/framework/en/2.4/reference/dataobjectdecorator
682: [08:17:40] <Bollig|DesignCty> pastie.org the code you're having trouble with Valorez_ so we can have a look.
683: [08:18:43] * g4b0_ has joined #silverstripe
684: [08:20:11] <simon_w|air> Man, even gzipped ss-log's database is almost 50 MB
685: [08:20:22] * EasyCo quit (Quit: EasyCo)
686: [08:20:40] <Bollig|DesignCty> lol
687: [08:20:45] <g4b0_> hi all
688: [08:21:08] <g4b0_> is there a way to know which redirector page I'm coming from?
689: [08:21:09] <Valorez_> Okey, one minute :) Thanks for helping me btw! Much appreciated
690: [08:21:13] <Bollig|DesignCty> wow, goes back to Dec 2007...
691: [08:21:18] <g4b0_> SS 3.1-rc1
692: [08:22:07] * Shrike_Finland has joined #silverstripe
693: [08:23:50] <simon_w|air> g4b0_, stop making up versions :p And no
694: [08:23:58] <Bollig|DesignCty> g4b0_: not that I know of. You could always decorate and add a post/get/session variable...
695: [08:24:29] <g4b0_> simon: :P
696: [08:25:35] <g4b0_> Bollig|DesignCty: I was hoping to not have to re-invent the wheel :)
697: [08:28:39] * ocm has joined #silverstripe
698: [08:28:41] <ocm> howdy!
699: [08:31:20] <Colin[pi]> heya
700: [08:33:19] <ss23> I hate OSX terminal too
701: [08:33:25] <ss23> "lol ur on this server JK YOU JUST SSHD THERE ONCE"
702: [08:33:28] <ss23> oh man
703: [08:33:30] <ss23> *sigh*
704: [08:33:35] <ss23> Just wanan get these two tickets done, then go home
705: [08:33:35] <ss23> :<
706: [08:33:44] <ss23> Apple is just determined to be stupid and ruin my life
707: [08:38:13] * lobarvaz has joined #silverstripe
708: [08:41:18] <simon_w|air> Woo, logs should load faster now!
709: [08:43:40] <simon_w|air> And there's now another requirement for anyone wanting to run the site themselves
710: [08:43:48] <simon_w|air> Sucks to be them
711: [08:44:01] <simon_w|air> ss23, yeah, I've given up on naming my tabs
712: [08:46:54] * metanat quit (Quit: Leaving.)
713: [08:47:42] * priithansen has joined #silverstripe
714: [08:50:51] * Shrike_Finland quit (Quit: Leaving.)
715: [08:50:55] * CodeTrap quit (Quit: CodeTrap)
716: [08:54:21] * chillu has joined #silverstripe
717: [08:56:03] <ss23> moin chillu
718: [08:56:24] <chillu> Hello, just looking at the workflow thing, but that's advancedworkflow which I have no clue of either
719: [08:56:34] <ss23> But you worked on the ticket! :O
720: [08:56:39] <ss23> But that's fine :P
721: [09:00:16] <chillu> The only thing I've done on the ticket is a "composer update" and made sure that didn't explode the website ;)
722: [09:00:29] <ss23> XD
723: [09:00:30] <ss23> kk
724: [09:00:41] <ss23> That's one extra step than I do when I composer update
725: [09:00:42] <ss23> :D
726: [09:05:20] <simon_w|air> Let's see if composer install decides to work tonight
727: [09:05:33] <ocm> hm, is it normal behavior to get the js/css requirements on another pageclass which extends SiteTree (so not page)?
728: [09:06:42] <chillu> Uhm nothing but testing code should directly extend SiteTree. What are you trying to do?
729: [09:07:03] <chillu> It depends where the reqs are included (usually in init())
730: [09:07:27] <ocm> just some testing.. but only Page extends SiteTree?
731: [09:08:21] <ocm> and I needed to see if something would work if I stripped the page js requirements from another pageclass (and they get called in innit())
732: [09:09:30] <ocm> oh, and silverstripe.org is down :o
733: [09:09:55] <simon_w|air> Is working for me
734: [09:09:57] <ocm> atleast.. I get timeouts on api.silverstripe
735: [09:10:23] <ss23> Gitorious is mean - Bad stephen, bad! You should not be snooping around in other people's stuff!
736: [09:10:25] <ocm> pagewsh.com lets me see it.. strange :o
737: [09:10:26] <ss23> :<
738: [09:10:42] <ocm> what should be the ip of silverstripe.org, 174.143.57.117?
739: [09:10:54] <ss23> yeah, ocm
740: [09:11:07] <ss23> works for me too (though I'm local)
741: [09:11:25] <ss23> works not locally to :D
742: [09:11:26] <ss23> too*
743: [09:11:33] <simon_w|air> ocm, api.silverstripe.org is 174.143.57.117
744: [09:11:47] <simon_w|air> ss23, you're not local :p
745: [09:11:52] <ss23> Is that not a local box?! :O
746: [09:11:55] <ss23> The more you know~
747: [09:11:58] <ocm> simon_w|air okay, cant ping it neither
748: [09:12:00] <ss23> XD
749: [09:12:08] <ss23> ocm: Might be just bad routes, wait it out I guess (or proxy)
750: [09:12:12] <simon_w|air> That's rackspace
751: [09:12:17] <ocm> proxy works
752: [09:12:26] <ocm> the donkey is helping me out here
753: [09:12:27] <ocm> haha
754: [09:13:31] <simon_w|air> ocm, and http://api.logs.simon.geek.nz is a mirror if you want one
755: [09:13:37] <simon_w|air> Fairly sure it updates itself too
756: [09:14:51] <ocm> hm.. it takes ages to load
757: [09:14:51] <ss23> hmmmmmmmmm
758: [09:15:07] <ocm> I guess australia has been cut of from the interwebz, haha
759: [09:15:09] <ss23> Waht would the implications be of telling composer.json to check out over https instead of ssh, when some of the repo's require autehntication?
760: [09:15:17] <ss23> Do you think it will prompt like 20 times over and over, or remember creds,or what?
761: [09:15:32] <simon_w|air> ocm, huh, CloudFlare has a Sydney node
762: [09:15:56] <ocm> your mirror is working now :)
763: [09:16:09] <simon_w|air> Probably just the initial load
764: [09:16:09] <ocm> though slow respons times, while the europeansites give no trouble at all
765: [09:16:18] <ocm> anyway, it works
766: [09:16:32] <ocm> btw, is there a way to 'un'-require files in init()?
767: [09:16:49] <ss23> nope
768: [09:16:54] <simon_w|air> ocm, give it 5 minutes and see if non-cloudflare help
769: [09:17:05] <simon_w|air> Requirements::block('path/to/file')
770: [09:17:11] <ss23> Wait
771: [09:17:13] <ss23> What kind of 'require'
772: [09:17:17] <ss23> PHP require or Silverstripe require?
773: [09:17:29] <ocm> silverstripe require, so what simon says
774: [09:17:48] <ocm> and 5 minutes to wait simon? sounds like a smoke break :p
775: [09:17:50] <ocm> so.. tadaa
776: [09:18:08] <simon_w|air> Haha, it's a TTL expiration :p
777: [09:18:37] <ocm> hahaha, smoking shortens the TTL
778: [09:18:39] <ocm> now doesnt it? D:
779: [09:20:43] * mdowton has joined #silverstripe
780: [09:22:17] <mdowton> Can any one tell me how do I get access or return a field in a leftJoin statement?
781: [09:25:34] <mdowton> To be more specific field in the left joined table
782: [09:26:33] <simon_w|air> mdowton, you can't. join fields aren't returned, especially since you don't get duplicates of the base objects
783: [09:28:36] * simon_w|air gives up trying to get composer to actually install framework
784: [09:28:40] <ss23> XD
785: [09:32:22] * Shrike_Finland has joined #silverstripe
786: [09:38:38] * CodeTrap has joined #silverstripe
787: [09:41:15] <ss23> chillu: So... are you able to hurry along a security release for 2.4, by the way? It's kind of been sitting like that for a reasonable amount of time etc (in reference to https://github.com/silverstripe/silverstripe-framework/commit/a150989e6fb8b0ad41d9ad2af54948de33c721f0)
788: [09:48:36] * howardgrigg quit (Remote host closed the connection)
789: [09:53:15] * Nightjar has joined #silverstripe
790: [10:28:50] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
791: [10:33:50] * Zauberfisch has joined #silverstripe
792: [10:39:33] <wmk> hmm, bootstrap3 looks a little flat
793: [10:46:05] * g4b0_ quit (Ping timeout: 256 seconds)
794: [10:58:44] * g4b0_ has joined #silverstripe
795: [10:59:03] * howardgrigg has joined #silverstripe
796: [10:59:28] * Motoservo has joined #silverstripe
797: [11:04:10] * howardgrigg quit (Ping timeout: 246 seconds)
798: [11:05:14] <chillu> ss23: I need to check with Hamish first (and with my team to see if I can make time)
799: [11:09:22] <ss23> mmk
800: [11:13:07] <Nightjar> irogue: u thr?
801: [11:17:23] * kerosene quit (Ping timeout: 256 seconds)
802: [11:19:51] * inadream has joined #silverstripe
803: [11:38:47] <inadream> has anyone ever got Subsites working (https://github.com/silverstripe/silverstripe-subsites) ?
804: [11:47:46] * cloph_away is now known as cloph
805: [11:47:57] * samthejarvis has joined #silverstripe
806: [11:57:12] * chillu quit (Quit: chillu)
807: [11:57:41] * Shrike_Finland quit (Quit: Leaving.)
808: [11:58:07] * Colin[pi] quit ()
809: [12:05:51] * chillu has joined #silverstripe
810: [12:08:37] * Motoservo quit (Ping timeout: 248 seconds)
811: [12:13:24] * UndefinedOffset has joined #silverstripe
812: [12:15:24] * g4b0_ quit (Ping timeout: 240 seconds)
813: [12:21:43] * mdowton quit (Quit: The computer fell asleep)
814: [12:28:29] * g4b0_ has joined #silverstripe
815: [12:36:31] <ss23> http://poorlydrawnlines.com/comic/chilla/
816: [12:37:44] <Nightjar> fff
817: [12:37:47] <ss23> :D
818: [12:38:09] <Nightjar> that moment when you spend half an hour trying to why no worky, suddenly upon closer inspection > instead of <
819: [12:38:18] <ss23> XD
820: [12:38:20] <ss23> Story of my life
821: [12:38:27] <Nightjar> tfw you probably should have bedded already
822: [12:38:54] <Nightjar> inadream: sure. You just plonk it in and dev/build
823: [12:39:13] <Nightjar> then you just need to configure in the CMS.
824: [12:41:44] <Nightjar> ok bed.
825: [12:41:48] <ss23> wait
826: [12:41:49] <ss23> wait
827: [12:41:52] <ss23> Nightjar: http://poorlydrawnlines.com/comic/staches/
828: [12:41:54] * ss23 pets Nightjar
829: [12:41:56] <ss23> now you can sleep
830: [12:42:42] <Nightjar> ok, that was good.
831: [12:42:56] * Nightjar has left #silverstripe
832: [12:57:44] * Motoservo has joined #silverstripe
833: [12:59:48] * howardgrigg has joined #silverstripe
834: [13:13:55] * CodeTrap quit (Quit: CodeTrap)
835: [13:56:50] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
836: [13:57:54] * Motoservo has joined #silverstripe
837: [14:01:37] * Zauberfisch_ quit (Ping timeout: 246 seconds)
838: [14:04:13] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
839: [14:09:58] * Zauberfisch_ has joined #silverstripe
840: [14:14:55] * howardgrigg quit (Remote host closed the connection)
841: [14:20:58] * osterlaus has joined #silverstripe
842: [14:22:22] * feejin has joined #silverstripe
843: [14:22:38] * ARNHOE quit (Ping timeout: 240 seconds)
844: [14:35:41] * Nivery has joined #silverstripe
845: [14:40:05] * ARNHOE has joined #silverstripe
846: [14:44:15] * ChaBuku has joined #silverstripe
847: [14:45:02] * feejin quit (Remote host closed the connection)
848: [14:48:31] * inadream has left #silverstripe
849: [14:55:42] * bambanx has joined #silverstripe
850: [14:56:12] <bambanx> hello guys
851: [14:56:34] <bambanx> noob here exited for see this amazing and active comunity
852: [14:56:39] <bambanx> how are u guys?
853: [14:57:19] <jon-shape> Tired, endless grind of magento is getting me down
854: [14:57:57] <jon-shape> bambanx: How are you finding SS so far?
855: [15:01:25] <bambanx> jon-shape, my english is not perfect am sorry for that, do you mean how i find silverstripe? on google where i was looking for cms, if u ask me about what i think about ss , i am not sure i am just seeing a few vids for make me a opinion of it.
856: [15:01:57] * ARNHOE quit (Ping timeout: 264 seconds)
857: [15:06:01] * Motoservo has joined #silverstripe
858: [15:08:29] <bambanx> why jon-shape ?
859: [15:09:53] <jon-shape> Just interested in the opinions of new users, when I first came to silverstripe I found quite hard to adjust
860: [15:10:37] <bambanx> oh
861: [15:10:46] <bambanx> and what is your experience u like now ? jon-shape
862: [15:10:55] <bambanx> i am trying to find a theme tutorial
863: [15:13:15] <jon-shape> I quite like it, it's a bit hard to find really good examples of the more unsual bits of SS but overall it's def. better the working with wordpress / joomla imho
864: [15:14:27] <bambanx> u think is better wp and joomla? or ss ? jon-shape
865: [15:15:02] * Motoservo quit (Ping timeout: 240 seconds)
866: [15:16:42] <jon-shape> I prefer ss, but I am biased, I have an irrational hatred of joomla coming from virtuemart and I just never got on with wordpress
867: [15:17:16] <jon-shape> Also it maybe stockholm syndrome as the company I work only really use silverstripe for CMSs
868: [15:18:16] <bambanx> my last project was in wp
869: [15:18:23] <bambanx> never used before
870: [15:18:32] <bambanx> i think is good for small project
871: [15:18:57] <bambanx> the most cool thing is the plugins u can find tthe most weird thing on plkugins haha
872: [15:19:10] <bambanx> but i am tryng to find some way more free
873: [15:19:13] <bambanx> design first
874: [15:22:30] * Motoservo has joined #silverstripe
875: [15:22:46] <bambanx> bye jon-shape thanks for the words
876: [15:22:47] <jon-shape> I don't think there is a tutorial on theming, there is a generic tutorial
877: [15:22:47] <bambanx> seeya
878: [15:22:54] * bambanx quit (Quit: Saliendo)
879: [15:25:21] * howardgrigg has joined #silverstripe
880: [15:28:32] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
881: [15:29:13] * osterlaus quit (Quit: Leaving.)
882: [15:29:35] * howardgrigg quit (Ping timeout: 245 seconds)
883: [15:41:25] * ShadeFrozen has joined #silverstripe
884: [15:43:55] <ShadeFrozen> I'm back! Hopefully this is a simple one..been researching otehr threads and I nearly have this one working the way I want
885: [15:44:12] * ocm quit (Quit: Try HydraIRC -> http://www.hydrairc.com <-)
886: [15:44:34] * chillu quit (Quit: chillu)
887: [15:44:48] <ShadeFrozen> so I want to be able to create a menu item that links directly to a file that the admin uploads (it's a brochure that will only change annually)
888: [15:45:52] <ShadeFrozen> so I have a FIlePage.php with static $has_one = array('PDF' => 'File'); (understand a bit more about has_one, has_many, and many_many now)
889: [15:46:49] <ShadeFrozen> and I have my getCMSFields all working and the admin can upload a file and I can link to it in the FilePage.ss
890: [15:47:06] <ShadeFrozen> but I want to be able to force the download from the menu item.
891: [15:47:49] <ShadeFrozen> so in the FilePage_Controller I have a download function
892: [15:48:20] <ShadeFrozen> $do = DataObject::get_one("FilePage", "$this->ID"); <-- this works ok
893: [15:49:11] <Zauberfisch> ShadeFrozen: stop it right there
894: [15:49:23] <Zauberfisch> just reading that hurts me
895: [15:49:28] <ShadeFrozen> *stopping*
896: [15:49:31] <ShadeFrozen> ok..sorry
897: [15:50:29] * Motoservo has joined #silverstripe
898: [15:50:30] <Zauberfisch> DataObject::get_one("FilePage", "$this->ID") why do this when you already have the page
899: [15:51:11] <ShadeFrozen> that was when I was testing to make sure it was getting the right ID
900: [15:52:20] <Zauberfisch> inside Page $this is what you are looking for
901: [15:52:50] <Zauberfisch> inside the controller $this is obviously the controller, but it falls back to the page if something is not set
902: [15:53:16] <Zauberfisch> if yous want to directly access the page from withinthe controller, use $this->data()
903: [15:53:46] <ShadeFrozen> Ok thanks...
904: [15:54:20] <Zauberfisch> what version are you using anyway?
905: [15:54:38] <Zauberfisch> ss23 ss24 or 3?
906: [15:55:07] <ShadeFrozen> all I want to do is have the brochure download automatically when they click the FilePage link in the menu..Like I said, I can get this to work if I output the link on FilePage.ss
907: [15:55:11] <ShadeFrozen> 2.4
908: [15:55:15] <Zauberfisch> ok
909: [15:55:43] <ShadeFrozen> but I dont want a page to load with the link, just to download it
910: [15:55:49] <Zauberfisch> well, i guess the easiest way would be to overwrite the Link method ans just return the link of the file
911: [15:55:54] <ShadeFrozen> perhaps redirector?
912: [15:57:23] <Zauberfisch> üublic function Link() { return $this->PDF->getURL(); }
913: [15:57:33] <Zauberfisch> inside your FilePage class
914: [15:58:14] <samthejarvis> PDF()*, surely?
915: [15:58:23] <Zauberfisch> ah, yes
916: [15:58:30] <samthejarvis> woo I corrected a pro
917: [15:59:00] <Zauberfisch> I blame it on the ipad keyboard (:
918: [15:59:15] * catcher has joined #silverstripe
919: [15:59:24] <samthejarvis> my sympathies
920: [16:01:27] <ShadeFrozen> lol...ok, let me see how this goes (with correction!)
921: [16:02:50] <Zauberfisch> afk
922: [16:12:09] * Motoservo quit (Ping timeout: 264 seconds)
923: [16:14:45] * g4b0_ quit (Remote host closed the connection)
924: [16:16:41] * Motoservo has joined #silverstripe
925: [16:21:37] <ShadeFrozen> Ok so here's what worked for me, after all that (I do like solving these problems myself but it looks like I need the second silverstripe book and some time set aside to do the tutorials)
926: [16:23:17] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
927: [16:24:54] <ShadeFrozen> After reading http://www.silverstripe.org/general-questions/show/17625?start=0 and http://www.silverstripe.org/general-questions/show/15832 there was some contradictory info there...so I just went with add new FilePage type, add the getCMS fields, overwrite the link, create a new redirector page and point to FilePage
928: [16:30:27] * violetina has joined #silverstripe
929: [16:34:07] * samthejarvis quit (Ping timeout: 250 seconds)
930: [16:36:29] <Zauberfisch> ShadeFrozen: why a redirector page? did the overwriting of the link not work?
931: [16:37:43] * Zauberfisch_ quit (Ping timeout: 246 seconds)
932: [16:42:44] * violetina quit (Remote host closed the connection)
933: [16:43:41] * violetina has joined #silverstripe
934: [16:44:17] <catcher> ShadeFrozen, I didn't see your original Q, but sounds similar to something I did yesterday - I created a custom Page type & declared the index() method to send the file with SS_HTTPRequest's send_file method.
935: [16:44:19] * Zauberfisch_ has joined #silverstripe
936: [16:44:57] <catcher> ShadeFrozen, I took that route so the file to be downloaded could be specified in the CMS. May or may not apply in your case.
937: [16:45:05] <Zauberfisch> catcher: in fact, that ia s brilliant idea
938: [16:45:09] <Zauberfisch> I should have thought of that
939: [16:45:28] <Zauberfisch> and it is exactly what he is looking for
940: [16:45:41] <catcher> No template required either, which is nice
941: [16:45:48] <Zauberfisch> I suggested to overwrite Link() and just return the URL of the File
942: [16:46:02] <Zauberfisch> that should also work without template
943: [16:46:11] <Zauberfisch> but idk, it seems it is not working for him
944: [16:47:01] <catcher> cool, hope this helps!
945: [16:48:52] <Zauberfisch> just for the record, catchers way is the better one, because it will not break CMS internal features like broken link reports and related page tracking
946: [16:49:15] * lobarvaz quit (Remote host closed the connection)
947: [16:52:33] * obbo has joined #silverstripe
948: [16:53:12] <obbo> can anyone help me with csvbulkloader and duplicatecheck?
949: [16:53:24] <obbo> i'm trying to do it based on FirstName + LastName
950: [16:53:40] <obbo> it seems like you can give it a callback function but the docs aren't clear
951: [16:53:41] <ShadeFrozen> sorry was afk....well it did seem to in a way...
952: [16:54:49] <guzzlefry> Can you show summaries in a grid field?
953: [16:55:20] <ShadeFrozen> Zauberfish, it did seem to work to a degree because when I remove that then the rediretor shows the page with the link waiting to be clicked on
954: [16:55:21] * obbo quit (Client Quit)
955: [16:55:27] <ShadeFrozen> instead of downloading the link
956: [16:55:59] <ShadeFrozen> catcher, the pdf is dynamic
957: [16:56:27] <ShadeFrozen> or rather it's uploaded via FilePage with a has_one
958: [16:56:52] <catcher> ShadeFrozen, that's fine, $file = FilePage::get()->first()->PDFDownload();
959: [16:57:55] <ShadeFrozen> oo ok catcher...thanks, will try that
960: [16:59:12] <catcher> SS_HTTPRequest's param should be the result of file_get_contents with $file's absolute URL & title
961: [16:59:56] <ShadeFrozen> and yes catcher I was trying to use SS_HTTPRequest to *force* the dl, but kept getting that damned "id is not numeric" error which is supposedly related to using HTTPRequest and not SS_HTTRequest, which I assure you I was using
962: [17:01:23] * micmania1 quit (Quit: Leaving)
963: [17:01:36] <ShadeFrozen> and it is *kinda* working ZB, in that the overwrite of the link is required for the redirector to force the file download, so you offered a working solution..thanks!
964: [17:23:12] * jrthomer quit (Remote host closed the connection)
965: [17:23:15] * jrthomer_ has joined #silverstripe
966: [17:25:53] <ShadeFrozen> hmm..ok, getting Missing argument 1 for DataObject::get()
967: [17:26:07] * howardgrigg has joined #silverstripe
968: [17:26:14] <catcher> ShadeFrozen, what version of SS?
969: [17:26:20] <ShadeFrozen> 2.4
970: [17:26:41] <catcher> Ah, so you need DataObject::get_one('FilePage') or something
971: [17:29:30] * PigeonFriend quit ()
972: [17:34:00] <ShadeFrozen> so back to the same error before I went with the redirector
973: [17:40:11] <ShadeFrozen> ok here's what I don't get
974: [17:40:48] <ShadeFrozen> IF I go with the link overwrite and use a redirector to call that page it works
975: [17:41:11] <ShadeFrozen> but IF I call the page by itself, it displays the template as opposed to the download popup
976: [17:41:15] <ShadeFrozen> odd
977: [17:51:43] <catcher> ShadeFrozen, that's why I recommend overwriting index()
978: [17:54:35] <ShadeFrozen> which I can't get to work, sorry catcher (at least te redirector is doing the job)
979: [18:08:42] * ShadeFrozen quit (Quit: Page closed)
980: [18:30:15] * BPower has joined #silverstripe
981: [18:30:50] <BPower> So, what's the SS3 way of retrieving the $Action, $ID, and $OtherID from within a controller?
982: [18:41:13] * howardgrigg quit (Remote host closed the connection)
983: [18:42:02] <catcher> BPower, I use Controller's getURLParams() method
984: [18:42:19] <catcher> That'll give back an associative array, so you can access by key
985: [18:43:01] <BPower> catcher: do you use $this->URLParams['ID'] or do you $params = $this->getURLParams(); $params['ID']? (Both work.)
986: [18:43:41] <catcher> BPower, I assign the variable so I can handle errors better (missing array key, etc.)
987: [18:45:52] <BPower> catcher: I think error handling is the same. I'm really looking for the suggested way for SS3, though.
988: [18:47:28] <catcher> BPower, since I often end up testing it several times, I prefer the variable to referencing $this->getURLParams() over & over. If they both work for you, either would be fine.
989: [18:53:11] * SphereSilverNL has joined #silverstripe
990: [18:53:20] <SphereSilverNL> Evening
991: [19:01:40] <simon_w|air> BPower, $this->request->param('ID')
992: [19:05:22] <BPower> simon_w|air: thanks - why does SS allow so many methods of retrieving the data instead of just one supported method? I also learned that I can get the $request via the action param, so I can simply say $request->param('ID'). Seems that having more options is more confusing.
993: [19:05:24] <SphereSilverNL> or, $params = $this->getRequest(); $params['ID'] (that's the long way)
994: [19:05:43] <SphereSilverNL> There are way more options ;)
995: [19:06:28] <simon_w|air> Because it's possible that all three ways of getting them could return different values
996: [19:09:35] <SphereSilverNL> There are 4 methods if I recall correctly. One of those should never be used though :P
997: [19:10:35] * SightUnseen has joined #silverstripe
998: [19:10:39] * SightUnseen has left #silverstripe
999: [19:10:45] <simon_w|air> If you're thinking about the static methods on Director, those don't exist
1000: [19:11:12] <SphereSilverNL> No, I was thinking about the direct method, $_REQUEST ;)
1001: [19:11:40] <simon_w|air> That doesn't have the params at all
1002: [19:11:59] <SphereSilverNL> besides that, there's $this->getRequest(), $this->request->param('paramname') and function(SS_REQUEST $request)
1003: [19:12:27] <SphereSilverNL> $_REQUEST has the same params
1004: [19:12:38] <SphereSilverNL> not all nicely splitted and such, but they are there
1005: [19:12:49] <SphereSilverNL> (and it's ugly/unwanted)
1006: [19:13:08] <simon_w|air> $_REQUEST has the url key
1007: [19:13:22] <simon_w|air> Have fun parsing that though.
1008: [19:13:42] <SphereSilverNL> It's possible ;) But as I said, it's not the wished method ;)
1009: [19:13:56] <SphereSilverNL> It can be done, but to make it the preferred method.... that's bad
1010: [19:14:16] <simon_w|air> It's near impossible
1011: [19:14:42] <simon_w|air> And breaks completely when the request comes internally
1012: [19:14:56] <SphereSilverNL> That's partly up to server configuration, but agreed
1013: [19:15:07] <simon_w|air> No it's not
1014: [19:15:27] <simon_w|air> You need to account for nested controllers
1015: [19:15:44] <simon_w|air> You need to account for someone just going Director::direct('blah')
1016: [19:15:51] <SphereSilverNL> But server-config can send full-request or "internal-only" requests
1017: [19:16:12] <simon_w|air> That has nothing to do with the server
1018: [19:16:28] <SphereSilverNL> What do you mean?
1019: [19:16:45] <simon_w|air> How SilverStripe is used has nothing to do with the server
1020: [19:16:48] <SphereSilverNL> an internal request can address the $_REQUEST just fine afaik
1021: [19:17:03] <SphereSilverNL> I said it was the least preferred method ;)
1022: [19:17:17] <SphereSilverNL> But I'm missing where $_REQUEST is suddenly lost in the process?
1023: [19:17:59] <simon_w|air> Director::direct('some/path')
1024: [19:18:00] <SphereSilverNL> It's stupid to use it, but it should be available as far as I know
1025: [19:18:46] <simon_w|air> That doesn't set up $_REQUEST
1026: [19:18:52] <simon_w|air> Nor does using the CLI
1027: [19:18:59] <SphereSilverNL> That would indeed probably break the $_REQUEST method
1028: [19:19:21] <SphereSilverNL> but as I said, it's not the preferred method ;)
1029: [19:19:23] <simon_w|air> Nor does using certain non-Apache servers
1030: [19:19:36] <simon_w|air> It's not the preferred method because it's not a method
1031: [19:19:51] <SphereSilverNL> It works on nginx in case of an emergency
1032: [19:19:52] <simon_w|air> That's like saying guessing isn't the preferred method, but could work
1033: [19:20:16] <SphereSilverNL> I've addressed $_REQUEST or $_SESSION a few times because SS didn't do it correctly
1034: [19:20:30] <SphereSilverNL> I'm in no way saying you should use it ;)
1035: [19:20:34] <SphereSilverNL> Don't worry
1036: [19:20:50] <simon_w|air> "didn't do it correctly" usually equates to "I did it wrong"
1037: [19:20:52] <SphereSilverNL> I was just referring to it as the 4th option to get request-details if needed
1038: [19:21:04] <SphereSilverNL> not exactly
1039: [19:21:18] <SphereSilverNL> simple controller, I think it was 15 lines, not much more
1040: [19:21:38] <SphereSilverNL> but Session::get() and Session::set() failed. I had to use $_SESSION
1041: [19:22:14] <SphereSilverNL> It was the only way that worked. But it's an exception in a codebase that's already a mess.... (not mine!)
1042: [19:23:00] <simon_w|air> So, the code base being a mess in no way influenced the problem?
1043: [19:23:27] <SphereSilverNL> It probably has :)
1044: [19:23:35] <SphereSilverNL> And as I said, it's a last resort ;)
1045: [19:23:46] <simon_w|air> So how is that SS not doing it correctly?
1046: [19:23:52] <SphereSilverNL> It shouldn't happen, but when all else fails, it's there
1047: [19:24:03] <SphereSilverNL> I'm not saying SS is doing it wrong.
1048: [19:24:16] <simon_w|air> "a few times because SS didn't do it correctly"
1049: [19:24:23] <simon_w|air> Apparently you are
1050: [19:24:26] <SphereSilverNL> got me there :)
1051: [19:24:48] <SphereSilverNL> To be honoust, I can't be sure it was SS that failed, or the codebase that is a mess
1052: [19:25:26] <SphereSilverNL> or, to make my small remark about a final method to address globals accessible.
1053: [19:26:08] <SphereSilverNL> I agree, that if the codebase is a mess, don't blame the framework, whatever framework you're using
1054: [19:28:02] * zfmf1 has left #silverstripe
1055: [19:28:11] <SphereSilverNL> I just mentioned it. Not as if it was a solution.
1056: [19:33:07] <SphereSilverNL> I feel like simon_w|air and me are fire and ice :D
1057: [19:45:36] * simon_w|air quit (Quit: This computer has gone to sleep)
1058: [19:47:09] * mobiusnz quit (Quit: Leaving.)
1059: [19:51:40] * howardgrigg has joined #silverstripe
1060: [19:56:16] * howardgrigg quit (Ping timeout: 264 seconds)
1061: [20:00:00] * micmania1 has joined #silverstripe
1062: [20:01:07] * ChaBuku quit (Quit: Leaving)
1063: [20:09:09] * ARNHOE has joined #silverstripe
1064: [20:12:31] * ChronicD_ has joined #silverstripe
1065: [20:13:21] * ChronicD quit (Ping timeout: 268 seconds)
1066: [20:13:21] * ChronicD_ is now known as ChronicD
1067: [20:22:22] * simon_w|air has joined #silverstripe
1068: [20:23:36] * jrthomer_ quit (Remote host closed the connection)
1069: [20:24:00] * jrthomer_ has joined #silverstripe
1070: [20:27:25] * Colin[pi] has joined #silverstripe
1071: [20:28:40] * SphereSilverNL quit (Remote host closed the connection)
1072: [20:30:56] * DigNZ has joined #silverstripe
1073: [20:30:57] * DigNZ quit (Remote host closed the connection)
1074: [20:31:11] * DigNZ has joined #silverstripe
1075: [20:33:26] * mobiusnz has joined #silverstripe
1076: [20:35:26] * nickmolhoek has joined #silverstripe
1077: [20:35:27] * nickmolhoek quit (Remote host closed the connection)
1078: [20:35:41] * nickmolhoek has joined #silverstripe
1079: [20:36:38] * chillu has joined #silverstripe
1080: [20:41:24] * UndefinedOffset quit (Quit: Leaving.)
1081: [20:44:36] * UndefinedOffset has joined #silverstripe
1082: [20:45:24] * UndefinedOffset quit (Client Quit)
1083: [20:47:32] <BPower> Okee-day - next one: I'd like to create a rule like so: 'spider/{$ClassName}.xml' : 'Spider_Controller'
1084: [20:48:16] <BPower> The key here is the ".xml" at the end, which currently doesn't work with or without the { }
1085: [20:48:47] <simon_w|air> Drop it
1086: [20:49:01] <simon_w|air> just use spider/$ClassName
1087: [20:49:07] <BPower> so it works with any extension...
1088: [20:49:12] <BPower> interesting
1089: [20:49:24] <Colin[pi]> morning all!
1090: [20:49:34] <simon_w|air> Even earlier today Colin[pi]!
1091: [20:49:35] <BPower> thanks, simon_w|air - can I set it to only work with one extension? :)
1092: [20:49:57] <simon_w|air> BPower, if($this->request->getExtension() != 'xml) { $this->httpError(404); }
1093: [20:50:03] <Colin[pi]> simon_w|air: yup! gf started work early and I couldn't get back to sleep
1094: [20:50:24] <simon_w|air> Party like a self-employed man!
1095: [20:50:48] <Colin[pi]> YAY!
1096: [20:51:07] <Colin[pi]> On the other hand I may need to shut down one of my sites today due to non-payment! Boo!
1097: [20:51:14] <simon_w|air> Yay!
1098: [20:51:22] <simon_w|air> Shutting things down is fun!
1099: [20:51:33] <Colin[pi]> I have a nice pretty "site offline" message too
1100: [20:51:41] <BPower> thanks again, simon_w|air!
1101: [20:52:13] <simon_w|air> But how does it compare to the awesomeness of https://app.pocketrent.com/main.html? :p
1102: [20:53:18] <Colin[pi]> mine.. mine is prettier
1103: [20:53:19] <Colin[pi]> ;D
1104: [20:53:23] <simon_w|air> Aww :(
1105: [20:53:44] <simon_w|air> I couldn't be bothered adding things to ours, complicates the htaccess rules I need to uncomment :p
1106: [20:54:45] <Colin[pi]> hehe
1107: [20:55:58] <simon_w|air> I guess if I was actually taking a site down, I'd have a down domain on the server as the default fallback and just remove the one going down from sites-enabled
1108: [20:56:10] <simon_w|air> Then I can make it pretty as!
1109: [20:56:14] <jrthomer_> Colin[pi]: you could always try this technique: http://www.adweek.com/adfreak/agency-replaces-clients-website-nasty-letter-after-not-getting-paid-147291
1110: [20:56:32] <jrthomer_> (scroll down for the screenshot)
1111: [20:56:37] * jrthomer_ is now known as jrthomer
1112: [20:58:00] * Stomach has joined #silverstripe
1113: [20:58:40] * ARNHOE quit (Remote host closed the connection)
1114: [20:58:56] <Colin[pi]> simon_w: yeah that'll probably be what I'll do
1115: [20:59:03] <simon_w|air> Woo, I'm gonna use generators!
1116: [20:59:25] <simon_w|air> Colin[pi], works best if you control the box it's running on
1117: [20:59:31] <Colin[pi]> I do :)
1118: [20:59:42] <Colin[pi]> jrthomer_: hahaha that's awesome
1119: [21:00:11] <simon_w|air> Aha, knew I had some chocolate under my desk!
1120: [21:00:28] * simon_w|air adds that to the marshmallows and ginger kisses he had for breakfast
1121: [21:02:29] <Colin[pi]> congrats! you're on your way to having titties bigger than ss23!
1122: [21:02:50] * swordsmanz_ has joined #silverstripe
1123: [21:05:08] * mobiusnz quit (Read error: No route to host)
1124: [21:05:30] * mobiusnz has joined #silverstripe
1125: [21:06:23] <simon_w|air> Oh man, one of the best features of HHVM: array matches a Traversable type hint
1126: [21:06:23] * swordsmanz quit (Ping timeout: 245 seconds)
1127: [21:06:23] * swordsmanz_ is now known as swordsmanz
1128: [21:07:26] <simon_w|air> Now I just have to learn how to spell Traversable...
1129: [21:08:03] <catcher> I'm delegating a click handler that reloads a template via ajax. The click handler becomes unresponsive after the first ajax load. I'm binding with .on(), targeting a parent class that persists across the reload. What am I missing?
1130: [21:08:40] <BPower> So, if I throw: $this->httpError(400,'No class provided.'), the text gets printed to the screen because there is no template for a 400 error. But if I use a 500 error, the text does not get sent to screen. Can I setup the ErrorPage template to display the text?
1131: [21:08:56] <simon_w|air> BPower, no
1132: [21:09:26] <simon_w|air> catcher, apparently you're binding to something that gets reloaded
1133: [21:10:27] <catcher> simon_w|air, the clickable elements are indeed reloaded. I thought the delegation could still pick them up, as long as they're targeted under a persistent parent.
1134: [21:10:52] <simon_w|air> What's your on line?
1135: [21:11:05] * Nivery quit (Quit: Nivery)
1136: [21:11:18] <catcher> $('.main .videoCategory').on('click', function(){
1137: [21:11:41] <simon_w|air> And .videoCategory gets reloaded?
1138: [21:11:46] <catcher> indeed
1139: [21:11:58] <simon_w|air> And that's what you're binding against
1140: [21:12:12] <simon_w|air> $('.main').on('click', '.videoCategory', function() {
1141: [21:13:57] <BPower> simon_w|air: that's sad.
1142: [21:14:03] <BPower> thanks!
1143: [21:17:13] <catcher> simon_w|air, page never finishes loading when I do that, but that must be something else. I see what you're saying about the binding, thanks
1144: [21:18:00] * simon_w|air quit (Remote host closed the connection)
1145: [21:19:36] <BPower> Proper way to send the content-type via SS? header('Content-type: text/xml'); doesn't seem to be sticking.
1146: [21:20:49] * simon_w|air has joined #silverstripe
1147: [21:21:08] <simon_w|air> BPower, $this->response->setHeader('Content-Type', 'text/xml');
1148: [21:22:24] <BPower> simon_w|air: Call to undefined method SS_HTTPResponse::setHeader()
1149: [21:22:32] <simon_w|air> addHeader()?
1150: [21:22:33] <simon_w|air> One of them
1151: [21:23:05] <BPower> there we go!
1152: [21:23:07] <irogue> have i mentioned that c++ is retarded?
1153: [21:23:08] <BPower> Thanks!
1154: [21:24:13] * willr_ has joined #silverstripe
1155: [21:24:25] <simon_w|air> Bah, Traversable doesn't match a generator
1156: [21:28:15] <catcher> is there any problem with rendering an include?
1157: [21:30:53] <micmania1> has anybody got any examples of applications built in Silverstripe (as opposed to bog-standard websites)
1158: [21:31:39] <Colin[pi]> https://pocketrent.com/
1159: [21:32:08] <catcher> rendering include seems fine. Is this common practice with ajax in SS, swapping a block of rendered output w/ different controller-provided data?
1160: [21:32:33] <micmania1> Colin[pi] cheers
1161: [21:32:52] * ChronicD_ has joined #silverstripe
1162: [21:33:52] <simon_w|air> Well, app.pocketrent.com
1163: [21:34:00] <simon_w|air> The marketing side's bog-standard :p
1164: [21:34:08] <Colin[pi]> micmania1: would be many, many more.. I usually make content-driven sites with some interactivity, but SS is well capable of full apps
1165: [21:34:32] <simon_w|air> catcher, that's how the CMS works
1166: [21:34:38] <Colin[pi]> can you think of some other prominent examples simon_w?
1167: [21:34:57] <Colin[pi]> catcher: simon_w beat me to it, that's pretty much all of the CMS
1168: [21:35:29] <micmania1> I've been building a football prediction game in Silverstripe but I haven't decided on the front-end yet.
1169: [21:35:43] * ChronicD quit (Ping timeout: 276 seconds)
1170: [21:35:43] * ChronicD_ is now known as ChronicD
1171: [21:35:45] <simon_w|air> metlink.org.nz
1172: [21:35:56] <micmania1> I know I want to build a mobile app but I might do something on desktop too
1173: [21:36:35] <Colin[pi]> micmania1: not keen to do html5 for everything?
1174: [21:37:33] <Colin[pi]> simon_w: if I'm saving a form in the cms with a 'comment' field that needs to be accessed in onAfterWrite, is there a nice way to get to the form?
1175: [21:37:37] <Colin[pi]> or just $_REQUEST ?
1176: [21:37:51] <simon_w|air> It should be set on the object?
1177: [21:37:54] <simon_w|air> $this->Comment?
1178: [21:38:04] <Colin[pi]> well it's not intended for the receiver
1179: [21:38:05] <micmania1> Yeah, I was looking to use Backbone with entwine front end with an ss backend
1180: [21:38:17] <simon_w|air> Colin[pi], yeah, so just don't have a DB field for it
1181: [21:38:17] <Colin[pi]> i.e. it's not a field on the receiver
1182: [21:38:21] <Colin[pi]> oic
1183: [21:38:41] <Colin[pi]> does that mean this->NameOfField still gets set from the form?
1184: [21:38:46] <simon_w|air> Yup
1185: [21:38:49] <Colin[pi]> oh cool lol
1186: [21:38:51] <simon_w|air> It's the premise that http://svn.simon.geek.nz/hasoneedit/trunk/code/DataObjectExtension.php uses
1187: [21:38:52] <Colin[pi]> I didn't notice
1188: [21:39:24] <micmania1> I built a document management system recently which worked well but I didn't have much time on it.
1189: [21:40:01] * ChronicD_ has joined #silverstripe
1190: [21:40:03] <simon_w|air> Aha, Traversable does match generators! You just actually have to call the function first.
1191: [21:40:23] * EasyCo has joined #silverstripe
1192: [21:40:49] <Colin[pi]> well there you go, it works lol
1193: [21:40:55] <Colin[pi]> many thanks simon_w
1194: [21:41:06] <Colin[pi]> can't believe I didn't notice that before :$
1195: [21:41:53] * travis-ci has joined #silverstripe
1196: [21:41:53] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#736 (3.0 - f037cf0 : Ingo Schommer): The build passed.
1197: [21:41:53] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/3c6ba1c32274...f037cf07817a
1198: [21:41:53] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9918529
1199: [21:41:53] * travis-ci has left #silverstripe
1200: [21:42:14] * ChronicD quit (Ping timeout: 240 seconds)
1201: [21:42:15] * ChronicD_ is now known as ChronicD
1202: [21:50:05] <BPower> What're y'all thoughts on php 5.4's Traits in relation to SS?
1203: [21:51:17] <willr_> Someone had some crazy idea to use them and write a polyfill thing back to decorators for 5.3 but that is fail.
1204: [21:52:16] <BPower> conflict resolution is the biggest issue that I see.
1205: [21:52:26] * howardgrigg has joined #silverstripe
1206: [21:53:01] <BPower> e.g. setting a static $db on the trait would simply be overwritten by the class
1207: [21:53:25] <BPower> and having multiple traits, each with $db, on one class would cause a fatal error
1208: [21:53:48] <BPower> it kind of makes traits unusable for me.
1209: [21:54:14] <BPower> maybe I'm being too narrow minded their use case
1210: [21:54:17] <Colin[pi]> "welcome to kogan mobile. order your sim pack today. ships in 6 to 8 weeks." <---- ROFL
1211: [21:54:20] <Colin[pi]> so prompt
1212: [21:54:30] <irogue> wow
1213: [21:54:49] <irogue> it'd get there quicker shipping direct from china
1214: [21:54:52] <BPower> ib their use case**
1215: [21:54:55] <BPower> goodness
1216: [21:54:57] <BPower> ON
1217: [21:55:01] <BPower> ON their use case.
1218: [21:55:11] * Zauberfisch_ quit (Ping timeout: 246 seconds)
1219: [21:57:07] <Colin[pi]> man mobile broadband still hasn't changed in AU, it's all "bend over without lube"
1220: [21:57:28] <Colin[pi]> "strap yourself in and FEEL THE G'S"
1221: [21:57:51] * zippy__ has joined #silverstripe
1222: [21:57:56] <zippy__> Morning
1223: [21:58:26] <simon_w|air> BPower, we use traits in place of decorators that only add functions
1224: [21:58:39] <simon_w|air> So, no extra statics, no onBeforeWrite or similar
1225: [21:59:36] * travis-ci has joined #silverstripe
1226: [21:59:36] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#738 (3.1 - 2110493 : Hamish Friedlander): The build passed.
1227: [21:59:36] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/c5442810cfb5...21104934661a
1228: [21:59:36] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9919360
1229: [21:59:36] * travis-ci has left #silverstripe
1230: [22:00:17] <Colin[pi]> morning zippy__
1231: [22:01:14] <zippy__> Thats an interesting change by Hamish
1232: [22:01:32] <zippy__> If it runs out of memory during a flush, it will increase the memory by 10%
1233: [22:01:42] * ChronicD_ has joined #silverstripe
1234: [22:02:34] <BPower> i guess it'd work for that limited scope. I guess I'd like a way to select from multiple methods of conflict resolution.
1235: [22:02:35] <BPower> E.g. if the code was: use Bill, Bob, Jill resolveby Order; Then it would apply Bill first, then Bob, then Jill. Jill::onBeforeWrite would be able to access Bob::onBeforeWrite via parent::onBeforeWrite, Bob::oBW accesses Bill:oBW via parent::oBW, etc.
1236: [22:03:24] * violetina quit (Remote host closed the connection)
1237: [22:03:48] * Zauberfisch_ has joined #silverstripe
1238: [22:04:43] * ChronicD quit (Ping timeout: 264 seconds)
1239: [22:04:43] * ChronicD_ is now known as ChronicD
1240: [22:05:15] * Zauberfisch is now known as ZauberfischZzZ
1241: [22:05:22] * ZauberfischZzZ is now known as Zauberfisch_zZz
1242: [22:06:02] <simon_w|air> Well, then it'll fatal error
1243: [22:07:17] <simon_w|air> You can't just go around adding in keywords or behaviours to things built into PHP
1244: [22:09:40] <ss23> ... or can you...
1245: [22:09:41] <ss23> :D
1246: [22:10:04] <simon_w|air> Not without an extension
1247: [22:10:10] * mobiusnz quit (Quit: Leaving.)
1248: [22:10:23] <ss23> Not true, you could modify the php code directly!
1249: [22:12:05] <irogue> boss just laughed at me cos of this: http://iforce.co.nz/i/lrxnf2st.xgs.jpg
1250: [22:12:08] <Colin[pi]> morning ss23!
1251: [22:12:29] <Colin[pi]> irogue: looks like standard programmer's desk to me
1252: [22:12:43] <simon_w|air> Sugarfree V? aahahahahahaha
1253: [22:12:58] <ss23> lol
1254: [22:13:04] <Colin[pi]> oh that's the sugarfree? lol
1255: [22:13:08] <ss23> lol
1256: [22:13:10] <ss23> it's silver!
1257: [22:13:21] <ss23> I really don't like the taste of V, so drinking the sugar free stuff just seems weird to me
1258: [22:14:17] <Colin[pi]> i'm old skool, coffee for me
1259: [22:14:42] <Colin[pi]> my old boss used to drink a 2L coke every day
1260: [22:14:46] <Colin[pi]> he's diabetic
1261: [22:16:09] <ss23> http://poorlydrawnlines.com/comic/chilla/
1262: [22:16:17] <ss23> Colin[pi]: Type 2 I take it? :P
1263: [22:17:22] <Colin[pi]> can't remember... one day he tested his blood sugar and it said "ERROR"
1264: [22:17:29] <Colin[pi]> that's when it's above 25 I think
1265: [22:20:30] <spronk> damn you simon_w|air
1266: [22:21:04] <simon_w|air> That's right, it's all my fault.
1267: [22:21:06] <simon_w|air> What did I do?
1268: [22:21:13] <ss23> rofllll
1269: [22:21:15] <spronk> firefly trheme stuck in my head
1270: [22:21:23] <ss23> just saw someone trying to use an umberella
1271: [22:21:26] <ss23> XD
1272: [22:21:26] <irogue> i'm sure ss23 has made his meter say ERROR
1273: [22:21:26] <simon_w|air> How's that a bad thing?
1274: [22:21:35] <ss23> irogue: dude. yes.
1275: [22:21:38] <irogue> ss23: hahahahaha, umbrella in wgtn
1276: [22:21:42] <ss23> Turns out if your blood sugar gets high enough, it just ERROR
1277: [22:21:42] <spronk> it wasn't for the first few hundred repetitions
1278: [22:21:47] <Pyromanik> hot chaicolate!
1279: [22:21:53] <Pyromanik> why have I never done this before?
1280: [22:21:58] <spronk> lawl
1281: [22:21:59] <ss23> Pyromanik: o.o
1282: [22:22:01] <ss23> I just got a hot chocolate!
1283: [22:22:20] <ss23> Naw, when your meter gets up to "ERROR" levels, you start getting pretty noticable cramping through all your extremeties
1284: [22:22:20] <simon_w|air> Take my love, take my land, take me where I cannot stand.
1285: [22:22:24] <simon_w|air> Am I helping? :D
1286: [22:22:33] <Pyromanik> wut
1287: [22:22:35] * Stomach quit (Quit: Leaving.)
1288: [22:22:40] <lewellyn> I AM ERROR.
1289: [22:22:54] <Pyromanik> I AM SPARTICUS
1290: [22:23:00] <Colin[pi]> I AM DOG
1291: [22:23:17] <Colin[pi]> ss23: he looked pretty bad, he said "I probably should be in hospital right now"
1292: [22:23:21] <spronk> THERES NO PLACE I CAN BE SINCE I'VE FOUND SERENITYYYY
1293: [22:23:36] <ss23> idk
1294: [22:23:44] <ss23> As a typoe 1, it's just like... you take insulin and don't care
1295: [22:24:09] <Colin[pi]> at that stage he was on tablets, now he's on insulin
1296: [22:24:21] <ss23> yeah, sounds like type 2
1297: [22:24:25] <ss23> There's an easier way to remember it
1298: [22:24:33] <ss23> type 1 == not my fault, need insulin or you die
1299: [22:24:43] <ss23> type 2 == fat lazy shit type, can cure it by eating right and exercising etc
1300: [22:25:08] <Colin[pi]> yeah he's type 2 :P
1301: [22:25:15] * travis-ci has joined #silverstripe
1302: [22:25:15] <travis-ci> [travis-ci] chillu/silverstripe-framework#50 (pulls/transifex-3.0 - 6d21e88 : Ingo Schommer): The build has errored.
1303: [22:25:15] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/7e67621f884a...6d21e8824711
1304: [22:25:15] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/9920436
1305: [22:25:15] * travis-ci has left #silverstripe
1306: [22:26:26] * simon_w|air is now <3ing generators
1307: [22:27:20] <irogue> ss23 is a bit of both
1308: [22:27:28] <irogue> fat lazy shit, but that's not why diabetes
1309: [22:27:41] * travis-ci has joined #silverstripe
1310: [22:27:42] <travis-ci> [travis-ci] chillu/silverstripe-framework#51 (pulls/transifex-3.0 - ed5fbd3 : Ingo Schommer): The build has errored.
1311: [22:27:42] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/6d21e8824711...ed5fbd36e213
1312: [22:27:42] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/9920644
1313: [22:27:42] * travis-ci has left #silverstripe
1314: [22:28:19] <ss23> irogue: XD
1315: [22:28:25] * travis-ci has joined #silverstripe
1316: [22:28:25] <travis-ci> [travis-ci] chillu/silverstripe-framework#52 (pulls/transifex-3.0 - c8e35d2 : Ingo Schommer): The build has errored.
1317: [22:28:25] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/ed5fbd36e213...c8e35d2d9ee5
1318: [22:28:25] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/9920718
1319: [22:28:25] * travis-ci has left #silverstripe
1320: [22:28:40] * mobiusnz has joined #silverstripe
1321: [22:28:48] <simon_w|air> Ingo broke it!
1322: [22:29:06] <spronk> bloody ingo, eh
1323: [22:29:06] <ss23> XD
1324: [22:29:50] * micmania1 quit (Ping timeout: 246 seconds)
1325: [22:29:58] * travis-ci has joined #silverstripe
1326: [22:29:58] <travis-ci> [travis-ci] chillu/silverstripe-framework#53 (pulls/transifex-3.0 - 2b6c60d : Ingo Schommer): The build has errored.
1327: [22:29:58] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/c8e35d2d9ee5...2b6c60dfd087
1328: [22:29:58] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/9920803
1329: [22:29:58] * travis-ci has left #silverstripe
1330: [22:30:07] <chillu> push -f vs travis
1331: [22:30:07] <ss23> omg! more breakage!
1332: [22:30:11] <ss23> XD
1333: [22:30:35] <BPower> simon_w|air: "You can't just go around adding in keywords or behaviours to things built into PHP" -- I know, I was commenting on a feature improvement I'd like in PHP :)
1334: [22:31:27] * Stomach has joined #silverstripe
1335: [22:31:31] <BPower> at least he didn't `rm -rf /`
1336: [22:31:35] <simon_w|air> Man, that guy that hosts the NZ PHP mirror is great
1337: [22:31:55] * spronk has left #silverstripe
1338: [22:32:36] * travis-ci has joined #silverstripe
1339: [22:32:36] <travis-ci> [travis-ci] chillu/silverstripe-framework#49 (pulls/transifex-3.1 - dd6d929 : Ingo Schommer): The build passed.
1340: [22:32:36] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/bb5aa81288f9...dd6d92977415
1341: [22:32:36] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/9920424
1342: [22:32:36] * travis-ci has left #silverstripe
1343: [22:32:45] * spronk has joined #silverstripe
1344: [22:34:57] * travis-ci has joined #silverstripe
1345: [22:34:57] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#739 (3.1 - 00e0bf1 : Mateusz U): The build passed.
1346: [22:34:57] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/21104934661a...00e0bf10ab20
1347: [22:34:57] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9920410
1348: [22:34:57] * travis-ci has left #silverstripe
1349: [22:36:22] * timespoon is now known as jotham
1350: [22:46:18] * travis-ci has joined #silverstripe
1351: [22:46:18] <travis-ci> [travis-ci] chillu/silverstripe-framework#54 (pulls/transifex-3.0 - 00ffe72 : Ingo Schommer): The build passed.
1352: [22:46:18] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/2b6c60dfd087...00ffe72944e0
1353: [22:46:18] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/9920848
1354: [22:46:18] * travis-ci has left #silverstripe
1355: [22:47:03] <Colin[pi]> how has an android device here?
1356: [22:47:05] <Colin[pi]> *who
1357: [22:47:12] <Stomach> me
1358: [22:47:16] <simon_w|air> me
1359: [22:47:21] <Colin[pi]> opinions on best browser?
1360: [22:47:24] <Stomach> opera
1361: [22:47:31] <simon_w|air> iOS Safari
1362: [22:47:37] <simon_w|air> :D
1363: [22:47:38] <lewellyn> bb10 ;)
1364: [22:47:44] <Colin[pi]> opinions on best browser on android? :P
1365: [22:48:09] * lewellyn is glad that they made the android browser on bb10 redirect to the system browser finally.
1366: [22:48:11] <Colin[pi]> bb? *points and laughs* ;)
1367: [22:48:24] <simon_w|air> I've only used Chrome and Browser before Chrome was stock. Neither are that nice to use.
1368: [22:48:35] <lewellyn> Colin[pi]: html5test agrees with me.
1369: [22:48:43] <Colin[pi]> ;P
1370: [22:48:59] <Colin[pi]> yeah I'm kinda finding all of them to be a bit "meh"
1371: [22:49:14] <Colin[pi]> trying to set up a tablet for my father to use.. I'm trending with stock for him
1372: [22:49:18] <lewellyn> http://html5test.com/compare/browser/bb10/chromecanary/android40.html
1373: [22:49:21] * simon_w|air is so looking forward to getting an iPhone again
1374: [22:49:43] <lewellyn> ios 7 still only scores 404. i wonder if that's telling.
1375: [22:50:17] <simon_w|air> I wonder if they're actually allowed to say that
1376: [22:50:22] <simon_w|air> (the answer's no)
1377: [22:50:39] <spronk> opera, before they started fucking around
1378: [22:50:51] <lewellyn> i haven't really liked opera since windows 3.1 :(
1379: [22:51:01] <lewellyn> they ruined it when they moved to win95.
1380: [22:51:18] <spronk> :O
1381: [22:51:24] <spronk> \after about v9 it became ubersuperior
1382: [22:51:46] <lewellyn> you never used 3.1
1383: [22:51:47] <lewellyn> :)
1384: [22:51:56] <spronk> i did actually :P
1385: [22:51:56] * SightUnseen has joined #silverstripe
1386: [22:51:58] <Colin[pi]> hehe the opera mobile html5test score went down after the last version
1387: [22:52:01] <lewellyn> opera 3.1 on windows 3.1 was unique and useful.
1388: [22:52:11] <lewellyn> Colin[pi]: yes. everyone expected it to.
1389: [22:52:30] <spronk> sigh
1390: [22:52:35] <lewellyn> wow. android still doesn't do requestAnimationFrame?
1391: [22:52:42] * spronk understands why they wanted to ditch their engine, but it's a shame, because it was still a better engine than Blink
1392: [22:52:50] <lewellyn> even ie does it now.
1393: [22:53:12] <lewellyn> spronk: they don't have the manpower since they don't make that much off their browser alone.
1394: [22:53:14] <simon_w|air> lewellyn, look at mobile Chrome. The Android browser's gone
1395: [22:53:31] <spronk> yeah, that's the understand part
1396: [22:53:36] <spronk> blink has sooooooo many issues
1397: [22:53:41] * SightUnseen has left #silverstripe
1398: [22:53:43] <lewellyn> simon_w|air: http://html5test.com/compare/browser/bb10/chromemobilebeta.html
1399: [22:53:46] <lewellyn> ;)
1400: [22:53:52] <spronk> especially when relating to printing. jesus christ chrome is awful at printing
1401: [22:54:01] <EasyCo> MMmmorning
1402: [22:54:08] <Colin[pi]> chrome is also awful at font rendering
1403: [22:54:10] <Colin[pi]> at least on windows
1404: [22:54:13] <Colin[pi]> ;)
1405: [22:54:15] <simon_w|air> In response to <lewellyn> wow. android still doesn't do requestAnimationFrame?
1406: [22:54:15] <simon_w|air> :p
1407: [22:54:40] <lewellyn> simon_w|air: yeah. i just stand agape whenever i look at how far behind android is with the stock browser, though.
1408: [22:54:49] <simon_w|air> Chrome's stock now
1409: [22:54:54] <lewellyn> as of when?
1410: [22:55:01] <Colin[pi]> jelly bean?
1411: [22:55:06] <simon_w|air> 4.2?
1412: [22:55:10] <simon_w|air> 4.1?
1413: [22:55:17] <simon_w|air> One of those
1414: [22:55:18] <lewellyn> about time.
1415: [22:55:48] <simon_w|air> Woo, only got date field type to go
1416: [22:56:06] <Colin[pi]> it was 4.1
1417: [22:56:26] <lewellyn> too bad there are still 2.3 devices shipping :(
1418: [22:56:34] * Jayden90 has joined #silverstripe
1419: [22:56:35] <simon_w|air> I never know what number matches to which name
1420: [22:56:39] <lewellyn> at least 4.0 is starting to supplant them.
1421: [22:56:44] <simon_w|air> Did 4.3 get a new name at all?
1422: [22:56:47] <lewellyn> simon_w|air: likewise since i only care about sdk levels.
1423: [22:56:52] <Colin[pi]> lewellyn: shudder, 2.3 was so awful
1424: [22:57:25] <lewellyn> i know. i can't wait for bb 10.2 so i get the upgrade from 2.3 to 4.2.
1425: [22:57:57] <Colin[pi]> 4.3 is jelly bean isn't it simon_w?
1426: [22:58:02] <simon_w|air> No idea
1427: [22:58:07] <lewellyn> i think it's the one with a k.
1428: [22:58:10] <Pyromanik> it's a shame presto has too many closed sources in it (and other such things inhibiting an expidited open sourceyness).
1429: [22:58:11] <Colin[pi]> yep it's jelly bean
1430: [22:58:33] <simon_w|air> And the phone doesn't tell me either
1431: [22:58:56] <Colin[pi]> 4.3 is still jelly bean, 5.0 will be "key lime pie"
1432: [22:59:11] <Pyromanik> eh spronk
1433: [22:59:24] <Jayden90> Is the ordering of images in an image field via the CMS on the roadmap?
1434: [23:00:15] <spronk> indeed.
1435: [23:00:28] <simon_w|air> Jayden90, Doubt it. Order requires something to order by
1436: [23:00:51] <Colin[pi]> Sort field!
1437: [23:01:06] <simon_w|air> But building that in?
1438: [23:01:15] <simon_w|air> Especially since you'll be over a many_many?
1439: [23:01:31] <Colin[pi]> it's just an arbitrary number :D
1440: [23:01:36] <catcher> simon_w|air, Colin[pi], thanks for the feedback earlier. Good to know ajax w/ Includes are common in the CMS, never looked at those templates before.
1441: [23:01:38] <simon_w|air> Also, GridField with BulkEdit and Sortable handles it fine
1442: [23:01:39] <Colin[pi]> what another int field between friends?
1443: [23:02:08] <simon_w|air> Colin[pi], it means special casing every many_many to File or one of its child classes
1444: [23:02:20] <Colin[pi]> pfft
1445: [23:02:28] <simon_w|air> And then adding that into UploadField
1446: [23:02:35] <Colin[pi]> piece of piss
1447: [23:02:39] <Colin[pi]> done in 20 minutes
1448: [23:02:40] <Colin[pi]> ;D
1449: [23:04:12] <Jayden90> I have used a module to achieve this but it is not easy to figure out and seems to be a comonly needed feature
1450: [23:04:57] <Jayden90> simon_w|air: are BulkEdit and Sortable modules?
1451: [23:05:57] <simon_w|air> yes
1452: [23:11:02] <Jayden90> https://github.com/colymba/GridFieldBulkEditingTools
1453: [23:14:58] <Pyromanik> D: what to do when your git repo says it's not a git repo?
1454: [23:18:14] <Pyromanik> git remote set-url origin <sameURLitAlreadyIs>
1455: [23:18:17] <Pyromanik> suddenly success
1456: [23:18:18] <Pyromanik> wtf
1457: [23:18:19] <Pyromanik> meh
1458: [23:19:40] * travis-ci has joined #silverstripe
1459: [23:19:40] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#746 (3.0 - 428391a : Hamish Friedlander): The build passed.
1460: [23:19:40] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/f037cf07817a...428391ad1edb
1461: [23:19:40] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9920896
1462: [23:19:40] * travis-ci has left #silverstripe
1463: [23:32:09] <UncleCheese> does the new SS3 tempting syntax support greater than / less than?
1464: [23:33:56] <simon_w|air> In 3.1
1465: [23:34:34] <UncleCheese> what's the syntax? gt?
1466: [23:36:06] <BPower> When should I extend ContentController instead of Controller? In other words, when should I NOT extend ContentController?
1467: [23:36:23] * catcher quit (Quit: Leaving)
1468: [23:36:53] <UncleCheese> the further down in the inheritance chain, the more tied up you are in CMS dependency
1469: [23:37:23] <simon_w|air> $Var > Val
1470: [23:37:34] <BPower> Thanks UncleCheese. And, I just read the intro in ContentController.php which is very descriptive.
1471: [23:38:18] <UncleCheese> ContrentController assumes there's a Page class, for instance.. has checks for Translatable, menus, log informs, etc
1472: [23:38:37] <UncleCheese> whereas Controller can exist in isolation
1473: [23:38:45] * atmos has joined #silverstripe
1474: [23:39:11] <BPower> perfect
1475: [23:39:13] <BPower> thanks
1476: [23:39:15] <atmos> can anyone help with a simple php issue?
1477: [23:39:24] <Colin[pi]> if you extend ContentController, you inherit all of the page init() stuff, so it can be good if you want the controller extension to make use of everything you've already initialised for your pages
1478: [23:40:36] * peter_ss has joined #silverstripe
1479: [23:40:46] <peter_ss> any vim user here?
1480: [23:40:53] <simon_w|air> Woo, Apple might cover it :)
1481: [23:41:03] <simon_w|air> Time to go get diagnosed
1482: [23:41:17] <UncleCheese> atmos: go ahead
1483: [23:41:41] <ss23> Anyone had issues with the CMs just stalling at the loading screen, where it just like... keeps doing the three dot loading gif thing?
1484: [23:41:41] * chillu quit (Quit: chillu)
1485: [23:42:01] <simon_w|air> JS error
1486: [23:42:07] <ss23> No JS errors
1487: [23:42:19] <atmos> I'm trying to check if an image exists, and then if not return some text in it's place.
1488: [23:42:20] <simon_w|air> Lies!
1489: [23:42:23] <ss23> None shown!
1490: [23:42:25] <ss23> I HAVE A SCREENSHOT!
1491: [23:42:27] <Colin[pi]> checked console ss23?
1492: [23:42:31] <atmos> http://www.sspaste.com/paste/show/5201881e6a3d9
1493: [23:42:33] <simon_w|air> I'm going into Yoobee!
1494: [23:42:37] <ss23> Yes, well, Firefoxs console, whic is probably shit
1495: [23:42:45] <ss23> I don't trust it to give me meaningful information
1496: [23:42:45] <simon_w|air> Might grab some lunch on the way
1497: [23:43:08] <peter_ss> does anyone know how can I configure auto indent .ss template in vim?
1498: [23:43:27] <spronk> lol, yoobee
1499: [23:43:40] <spronk> peter_ss: hmm.. can you use xml syntax engine?
1500: [23:44:07] <peter_ss> spronk don't know what you mean?
1501: [23:44:31] <Jayden90> I am having the three dots of death when clicking on certain pages. no errors.
1502: [23:44:40] <simon_w|air> Pretty much the only authorised apple service provider
1503: [23:45:10] <Jayden90> I.e. /admin/pages/edit/show/1 just shows as "failed" in the inpector
1504: [23:45:36] <simon_w|air> ss23, if you want lunch, I'll be getting it sometime before or after dropping my laptop off. Probably after.
1505: [23:45:42] <Jayden90> I am sure it relates to certain changes, but because there is no error message debugging is hard
1506: [23:47:16] <UncleCheese> atmos: what is $this->XML()?
1507: [23:47:17] <atmos> UncleCheese: I get I need an else statement to return something (text) inplace of the image should it not exist
1508: [23:48:03] <spronk> peter_ss: if you're usoing ftplugin you might be able to make a .vim/ftplugin/ config file...
1509: [23:48:06] * spronk isn't sure
1510: [23:48:41] <atmos> UncleCheese: probably not much use without the whole page, http://www.sspaste.com/paste/show/52018a80250d7
1511: [23:48:59] <UncleCheese> atmos: I'm not sure what you're getting at.. You have a boolean function that you want to return text?
1512: [23:49:00] * simon_w|air quit (Quit: Leaving)
1513: [23:49:54] <atmos> UncleCheese: Correct, if it finds no image in that path, return text in it's place
1514: [23:50:19] * simon_w|air has joined #silverstripe
1515: [23:50:21] <UncleCheese> <% if ImageExists(image) %><img /><% else %> no image <% end_if %>
1516: [23:50:56] * nickspiel has joined #silverstripe
1517: [23:51:57] <ss23> simon_w|air: Got a decent amount of urgent tickets just come in sorry
1518: [23:51:57] <ss23> :<
1519: [23:52:26] <simon_w|air> I'll get my own lunch then!
1520: [23:52:32] <ss23> ;___;
1521: [23:52:36] <ss23> IT'S NOT MY CHOICE
1522: [23:52:37] * ss23 cries
1523: [23:52:37] <lewellyn> get lunch for me, too. thanks. :)
1524: [23:55:30] <zippy__> nuts
1525: [23:57:07] <zippy__> I've put some code into a Page.php which applies on all pages, but now I've created a controller for a page I don't want in the CMS, but of course since it doesn't inhert from PageController I lose access to the functions I've put in there. If I extend from it, then it will make DB changes....
1526: [23:57:28] <zippy__> so where would be the best place to put these functions which I want template callable. SiteConfig? *shudder*
1527: [23:57:30] <Pyromanik> zippy__: page controllers don't show up in the CMS
1528: [23:57:34] <Pyromanik> pages do.
1529: [23:57:41] <zippy__> oh really
1530: [23:57:48] <Pyromanik> yeah...
1531: [23:57:56] <Pyromanik> the page is the model, not the other way around!
1532: [23:59:15] <atmos> UncleCheese: thanks, it might help if I show you the template on which I want this to occur - specifically on <if XML.Image2 %> http://www.sspaste.com/paste/show/52018cdb0200b
1533: [23:59:22] <Pyromanik> otherwise you could abstract your code from Page and put it into a decorator and wrap it into Controller or ContentController
1534: [23:59:49] <Pyromanik> although ContentController is pretty specific to pages (in design, not so critical in practice)

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