#silverstripe IRC Log

IRC log for 15 February 2013

All timestamps are in UTC.

1: [00:01:00] * Stomach quit (Quit: Leaving.)
2: [00:02:00] <pippy> Rastafarii: you're using jquery?
3: [00:02:00] * simon_w|air has joined #silverstripe
4: [00:03:00] * chillu quit (Quit: chillu)
5: [00:03:00] <Rastafarii> yup
6: [00:03:00] <Rastafarii> but on CMS
7: [00:04:00] <Rastafarii> or I don't know how to make it work
8: [00:04:00] * catcher has joined #silverstripe
9: [00:04:00] <Rastafarii> so $,ajaxComplete() either doesn't work
10: [00:04:00] * catcher quit (Ping timeout: 248 seconds)
11: [00:08:00] <Rastafarii> pippy: is it even possible?
12: [00:09:00] * catcher quit (Client Quit)
13: [00:12:00] * guci0 quit (Ping timeout: 245 seconds)
14: [00:17:00] <Pyromanik> yes
15: [00:17:00] * howardgrigg has joined #silverstripe
16: [00:17:00] * howardgrigg quit (Remote host closed the connection)
17: [00:17:00] * howardgrigg has joined #silverstripe
18: [00:17:00] <Pyromanik> Rastafarii: see the api
19: [00:18:00] * jcwacky_ has joined #silverstripe
20: [00:19:00] <Pyromanik> http://api.jquery.com/jQuery.ajax/
21: [00:19:00] <Pyromanik> http://api.jquery.com/load/
22: [00:19:00] <Rastafarii> Pyromanik: where?
23: [00:19:00] <Pyromanik> are you serious?
24: [00:20:00] <Rastafarii> sloppy connection :(
25: [00:20:00] <Pyromanik> I just posted 2 links.
26: [00:21:00] <Rastafarii> didn't see it until I sent my message :)
27: [00:21:00] <Pyromanik> :<
28: [00:21:00] * jcwacky_ is now known as jcwacky
29: [00:21:00] <Pyromanik> Pyromanik http://api.jquery.com/load/
30: [00:21:00] <Rastafarii> also
31: [00:21:00] <Rastafarii> yes, I read that already
32: [00:21:00] <Pyromanik> jQuery's ajax functions generally take a complete parameter, which is a function
33: [00:21:00] <Rastafarii> http://doc.silverstripe.org/framework/en/topics/javascript/
34: [00:21:00] <Pyromanik> 01:19 Pyromanik http://api.jquery.com/jQuery.ajax/
35: [00:21:00] * jcwacky quit (Ping timeout: 256 seconds)
36: [00:22:00] <Rastafarii> CMS uses ajax to get content, right?
37: [00:22:00] <Pyromanik> but that's what you asked...
38: [00:22:00] <Rastafarii> BUT - that's not what I'm asking
39: [00:22:00] <Pyromanik> which is called when the request is comeplted
40: [00:22:00] <Pyromanik> perhaps rephrasing or more explanation might be in order
41: [00:23:00] <Rastafarii> for edit, save, lists etx
42: [00:23:00] <Pyromanik> I see.
43: [00:23:00] <Pyromanik> yes
44: [00:23:00] <Rastafarii> *etc
45: [00:23:00] <Rastafarii> I want to know is there a way to find out when THAT ajax call is completed
46: [00:24:00] <Pyromanik> or did you mean yes to 'it uses ajax to load content'
47: [00:24:00] <Pyromanik> willr: can you help?
48: [00:24:00] <Rastafarii> willr: how?
49: [00:24:00] <Pyromanik> I am not qualified on this.
50: [00:24:00] <willr> Rastafarii in the backend yes
51: [00:25:00] <willr> Maybe. Are you trying to customise existing behaviour or add a new interface?
52: [00:26:00] <Rastafarii> but checkboxes have default styling
53: [00:26:00] <Rastafarii> I'm trying to style checkboxes
54: [00:26:00] <Rastafarii> inputs and selects are pretty nice
55: [00:26:00] <Rastafarii> which is - no styling at all
56: [00:27:00] <Rastafarii> in order to style them - I need to call JS method on dom ready
57: [00:28:00] <Rastafarii> which works when you reload the page using F5, refresh button or CTRL+R
58: [00:28:00] <Pyromanik> you might be able to tag in to ... what willr just said
59: [00:28:00] <willr> So you'll need to use jquery.entwine to add a new handler to the cms.
60: [00:28:00] <Pyromanik> Rastafarii: learn how entwine works
61: [00:28:00] <Pyromanik> willr: how does default_sort work these days?
62: [00:29:00] <willr> Pyromanik, not the same as 2.4?
63: [00:29:00] <Pyromanik> https://github.com/hafriedlander/jquery.entwine
64: [00:29:00] <Pyromanik> http://doc.silverstripe.org/framework/en/topics/javascript/
65: [00:29:00] <Pyromanik> willr: I dunno, I have 'Featured DESC, Created DESC'
66: [00:29:00] * markeaston has joined #silverstripe
67: [00:29:00] <Pyromanik> Featured being a boolean
68: [00:30:00] <Pyromanik> expecting it to put newest -> oldest where featured is 1, then newest->oldest where featured is 0. However it seems to just newest->oldest, regardless.
69: [00:30:00] * willr quit (Quit: willr)
70: [00:31:00] * willr has joined #silverstripe
71: [00:31:00] <simon_w|air> Pyromanik, calling sort() twice?
72: [00:31:00] <Pyromanik> subclass of blogentry
73: [00:32:00] <Rastafarii> I get Uncaught ReferenceError: Behaviour is not defined when I do copy/paste from that page
74: [00:32:00] <Pyromanik> simon_w: howso?
75: [00:33:00] <simon_w|air> I dunno. Calling sort() at all? (I think BlogTree does by default)
76: [00:37:00] <Pyromanik> simon_w|air: possible if it's on blog tree
77: [00:37:00] <Pyromanik> http://sspaste.com/paste/show/511d832f0dbf0
78: [00:39:00] * Rastafarii quit (Quit: Page closed)
79: [00:44:00] * Stomach has joined #silverstripe
80: [00:54:00] * howardgrigg quit (Remote host closed the connection)
81: [01:00:00] * DigNZ quit (Remote host closed the connection)
82: [01:00:00] * DigNZ has joined #silverstripe
83: [01:02:00] * willr quit (Quit: willr)
84: [01:03:00] * markeaston quit (Quit: markeaston)
85: [01:04:00] <Pyromanik> https://github.com/silverstripe/silverstripe-blog/blob/master/code/BlogTree.php#L221
86: [01:04:00] <Pyromanik> so mad right now
87: [01:04:00] <Pyromanik> thanks simon_w
88: [01:09:00] * howardgrigg has joined #silverstripe
89: [01:11:00] * Pyromanik copy pastas
90: [01:11:00] * DigNZ quit (Remote host closed the connection)
91: [01:11:00] * DigNZ has joined #silverstripe
92: [01:13:00] * simon_w|air sneezes
93: [01:15:00] * jcwacky_ has joined #silverstripe
94: [01:17:00] <irogue> careful simon_w|air, ss23 will get jealous
95: [01:17:00] * jcwacky quit (Ping timeout: 248 seconds)
96: [01:17:00] * jcwacky_ is now known as jcwacky
97: [01:17:00] <ss23> ;_;
98: [01:19:00] * howardgrigg quit (Remote host closed the connection)
99: [01:19:00] <Pyromanik> over sneezing?
100: [01:20:00] <ss23> I like sneezing
101: [01:20:00] <ss23> Feels good man
102: [01:20:00] <Pyromanik> So do wet dreams, but I don't particularly know anyone who hangs out for them
103: [01:20:00] <Colin[pi]> sneezegasm
104: [01:21:00] <ss23> Pyromanik: sif they do, fapping while awake way better
105: [01:21:00] <ss23> Not to mention, lots of mess to clean up wet dream
106: [01:21:00] <Pyromanik> or gets jealous over someone else having htem
107: [01:21:00] <ss23> Easier to just do it while awake and have clean up dealt with with tissues immedaitly (with both sneezing and fapping)
108: [01:26:00] <simon_w|air> Well, that escalated quickly
109: [01:27:00] * subvert_ is now known as subvert
110: [01:27:00] * subvert_ has joined #silverstripe
111: [01:27:00] * subvert quit (Read error: Connection reset by peer)
112: [01:28:00] * SightUnseen has joined #silverstripe
113: [01:29:00] <Pyromanik> don't worry simon_w, it only lasted 2 minutes.
114: [01:30:00] * subvert_ is now known as subvert
115: [01:30:00] * subvert quit (Read error: Connection reset by peer)
116: [01:30:00] * subvert_ has joined #silverstripe
117: [01:31:00] * DigNZ has joined #silverstripe
118: [01:31:00] * DigNZ quit (Remote host closed the connection)
119: [01:32:00] * DigNZ has joined #silverstripe
120: [01:32:00] * DigNZ quit (Remote host closed the connection)
121: [01:32:00] * DigNZ has joined #silverstripe
122: [01:36:00] * markeaston has joined #silverstripe
123: [01:37:00] * subvert quit (Quit: subvert)
124: [01:37:00] <subvert> HAPPY WEEKEND EVERYBODY WAAAAAHOOOOOOOOOOOOO
125: [01:49:00] * Pyromanik so excited
126: [01:49:00] <Pyromanik> https://github.com/gitlabhq/gitlabhq/blob/master/ROADMAP.md#v42-february-22
127: [01:49:00] <Pyromanik> YUS
128: [01:49:00] <Pyromanik> 7 days
129: [01:50:00] <Pyromanik> it all happens feb22
130: [01:50:00] <Pyromanik> 2 year EQ anniversary.
131: [01:50:00] <Pyromanik> MADNESS
132: [01:56:00] * markeaston quit (Quit: markeaston)
133: [01:57:00] <simon_w|air> 6am flight and everything!
134: [01:59:00] <Pyromanik> on feb22?
135: [02:00:00] * SightUnseen1 has joined #silverstripe
136: [02:00:00] * SightUnseen quit (Ping timeout: 252 seconds)
137: [02:02:00] <simon_w> yup
138: [02:06:00] <simon_w|air> And then a 630 one on the 23rd!
139: [02:09:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
140: [02:09:00] * SightUnseen1 has left #silverstripe
141: [02:12:00] * priithansen quit (Quit: priithansen)
142: [02:14:00] * markeaston has joined #silverstripe
143: [02:21:00] * Error404NotFound quit (Max SendQ exceeded)
144: [02:21:00] * Error404NotFound has joined #silverstripe
145: [02:22:00] * Error404NotFound has joined #silverstripe
146: [02:28:00] * markeaston quit (Quit: markeaston)
147: [02:38:00] * markeaston has joined #silverstripe
148: [02:49:00] <Pyromanik> Friday afternoon :<
149: [02:49:00] * markeaston quit (Quit: markeaston)
150: [02:49:00] <ss23> I gotta finish this presentation for Monday
151: [02:49:00] <ss23> Gotta be ~7 mins
152: [02:49:00] <ss23> Last I checked, I have 3 mins of content...
153: [02:50:00] * mobiusnz quit (Quit: Leaving.)
154: [02:52:00] * simon_w|air quit (Quit: This computer has gone to sleep)
155: [02:52:00] <ss23> I did that 3 mins then "Questions?" could work, but I'm afraid that won't be acceptable :P
156: [02:52:00] <ss23> lol
157: [02:52:00] <simon_w|air> Have four minutes of silence for some dead person
158: [03:13:00] * SightUnseen has joined #silverstripe
159: [03:16:00] * SightUnseen has left #silverstripe
160: [03:17:00] <Pyromanik> what is presentation
161: [03:17:00] <Pyromanik> ss23
162: [03:18:00] <Pyromanik> 310Mb -.-
163: [03:18:00] <Pyromanik> how bad you are at C++?
164: [03:18:00] <Pyromanik> or this site I just transferred. Comes back "hey, it's out of date" - you gave us the backup -.-
165: [03:18:00] <Pyromanik> ok so I export fresh db
166: [03:19:00] <Pyromanik> plain SQL
167: [03:20:00] <Pyromanik> THREE HUNDRED AND TEN MEGABYTES OF RAW TEXT
168: [03:22:00] <Pyromanik> how does it even possible?
169: [03:26:00] <Pyromanik> of small text updates
170: [03:26:00] <Pyromanik> ONE YEAR
171: [03:26:00] <Pyromanik> from then to now the db has gone from 472Kb to 317,466Kb.
172: [03:26:00] <Pyromanik> last DB export was 21/2/2012
173: [03:27:00] <pippy> Is there a clean db in /dev/
174: [03:28:00] * mobiusnz has joined #silverstripe
175: [03:32:00] <Pyromanik> pippy: don't think so.
176: [03:32:00] <Pyromanik> just rm-rf databse
177: [03:32:00] * DigNZ quit (Quit: DigNZ)
178: [03:32:00] <Pyromanik> then dev mode the site and default admin, it'll rebuild & you can login and set password on admin.
179: [03:33:00] <Pyromanik> selectively dropping columns/tables can get messy.
180: [03:33:00] <Pyromanik> but it's also doable
181: [03:36:00] <pippy> it would be handy
182: [03:36:00] <pippy> I'll write a todo task list to write a pluging to do that
183: [03:37:00] <ss23> 10/10 bad
184: [03:37:00] <ss23> 16:19:07 < Pyromanik> how bad you are at C++?
185: [03:37:00] * spronk has left #silverstripe
186: [03:39:00] <Pyromanik> pippy: the other way is to just switch db based on environment type
187: [03:39:00] <Pyromanik> so you can have different servers from live/dev/testing
188: [03:40:00] * spronk has joined #silverstripe
189: [03:40:00] <Pyromanik> though live/dev is probably undesirable
190: [03:40:00] * DigNZ has joined #silverstripe
191: [03:40:00] * DigNZ quit (Remote host closed the connection)
192: [03:40:00] <Pyromanik> the test environment isn't used so much, but could be useful to you
193: [03:40:00] * DigNZ has joined #silverstripe
194: [03:58:00] * DigNZ quit (Quit: DigNZ)
195: [04:09:00] * DigNZ has joined #silverstripe
196: [04:09:00] * DigNZ has joined #silverstripe
197: [04:09:00] * DigNZ quit (Remote host closed the connection)
198: [04:10:00] * DigNZ quit (Client Quit)
199: [04:21:00] * Stomach quit (Quit: Leaving.)
200: [04:29:00] * cloph_away has joined #silverstripe
201: [04:29:00] * Stomach has joined #silverstripe
202: [04:30:00] * cloph_away1 quit (Ping timeout: 260 seconds)
203: [04:41:00] * Stomach quit (Quit: Leaving.)
204: [04:43:00] <simon_w> pippy, dev/reset got removed
205: [04:45:00] * dnz- quit (Remote host closed the connection)
206: [04:50:00] * Pyromanik has left #silverstripe
207: [05:02:00] <Colin[pi]> arg four hours preparing a proposal document
208: [05:15:00] * dendeffe has joined #silverstripe
209: [06:01:00] * aznain has joined #silverstripe
210: [06:02:00] <aznain> A has many B
211: [06:02:00] <aznain> In silverstripe 3, when I add new B then there is field name "A" .. how to remove that
212: [06:02:00] <aznain> I have A dataobject with 1 to many relationship with B Dataoabject
213: [06:02:00] <aznain> B has one A
214: [06:04:00] <aznain> ?
215: [06:04:00] <aznain> anybody
216: [06:23:00] * ajshort has joined #silverstripe
217: [06:28:00] * spronk has left #silverstripe
218: [06:29:00] * spronk has joined #silverstripe
219: [06:37:00] * ajshort quit (Quit: Leaving)
220: [07:02:00] * aznain quit (Ping timeout: 245 seconds)
221: [07:10:00] * Motoservo_ has joined #silverstripe
222: [07:13:00] * Motoservo_ is now known as Motoservo
223: [07:13:00] * dendeffe quit (Quit: dendeffe)
224: [07:13:00] * Motoservo quit (Ping timeout: 264 seconds)
225: [07:20:00] * Unlearned has joined #silverstripe
226: [07:29:00] * priithansen has joined #silverstripe
227: [07:31:00] * Shrike_Finland has joined #silverstripe
228: [07:37:00] * ccburns has joined #silverstripe
229: [07:39:00] <ccburns> Hey guys - wondering if any of you guys have used the restassured module recently - https://github.com/silverstripe-labs/restassured
230: [07:44:00] * dendeffe has joined #silverstripe
231: [07:45:00] <ccburns> I installed this module through composer so I would have thought that this requirement would have been picked up
232: [07:45:00] <ccburns> Ah I see it uses Traits - http://php.net/manual/en/language.oop5.traits.php and I am running PHP 5.3.15 which doesn't support traits
233: [08:05:00] * ajshort has joined #silverstripe
234: [08:08:00] * chillu has joined #silverstripe
235: [08:10:00] * markeaston has joined #silverstripe
236: [08:13:00] * markeaston quit (Client Quit)
237: [08:36:00] * ccburns quit (Quit: ccburns)
238: [08:37:00] * Motoservo quit (Quit: Motoservo)
239: [08:40:00] * Motoservo has joined #silverstripe
240: [08:44:00] * Shrike_Finland quit (Quit: Leaving.)
241: [08:47:00] * ARNHOFF has joined #silverstripe
242: [08:52:00] <maknz> Newb here. Trying to pass an array to a .ss include. Keep getting Object->__call(): the method 'fortemplate' does not exist on 'ArrayData', http://pastie.org/private/wgbio3jxu802li7epfkmkq
243: [08:53:00] * Unlearned quit (Read error: No route to host)
244: [08:53:00] * Unlearned has joined #silverstripe
245: [08:54:00] * Liquide quit ()
246: [08:56:00] * ARNHOFF quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
247: [08:56:00] * ARNHOFF has joined #silverstripe
248: [08:59:00] * ccburns has joined #silverstripe
249: [09:03:00] * kinglozzer has joined #silverstripe
250: [09:03:00] <kinglozzer> Morning all
251: [09:05:00] <simon_w> Evening
252: [09:06:00] <kinglozzer> Is it Friday or Thursday evening there?
253: [09:06:00] <simon_w> ajshort, I was channeling my inner Ingo and I've had commit access since the start of November :p
254: [09:06:00] <simon_w> Friday
255: [09:06:00] <kinglozzer> Ah lucky :)
256: [09:08:00] * Motoservo quit (Quit: Motoservo)
257: [09:11:00] * ccburns quit (Quit: ccburns)
258: [09:11:00] <simon_w> maknz, what are Message and MessageType in the print_r?
259: [09:12:00] * Shrike_Finland has joined #silverstripe
260: [09:17:00] * Motoservo has joined #silverstripe
261: [09:22:00] * lx-berlin has joined #silverstripe
262: [09:26:00] * lx-berlin has left #silverstripe
263: [09:31:00] <ajshort> simon_w: in that case, I have some more pull requests for you :)
264: [09:33:00] <ajshort> merge! merge! merge!
265: [09:33:00] * lx-berlin has joined #silverstripe
266: [09:35:00] * robert__ has joined #silverstripe
267: [09:39:00] * robert__ quit (Ping timeout: 256 seconds)
268: [09:45:00] <simon_w|air> ajshort, of course you do :p
269: [09:45:00] * simon_w|air has joined #silverstripe
270: [09:46:00] <ajshort> https://github.com/silverstripe/sapphire/pull/1168
271: [09:46:00] <ajshort> https://github.com/silverstripe/sapphire/pull/1122
272: [09:46:00] <simon_w|air> Why not just $taskName::create()?
273: [09:47:00] <simon_w|air> and 1122 needs a unit test :p
274: [09:47:00] <ajshort> meh
275: [09:47:00] <ajshort> and meh
276: [09:48:00] <ajshort> encourages monlithic base class-ness
277: [09:48:00] <ajshort> -itis
278: [09:48:00] <ajshort> I don't like ::create() for random classes
279: [09:59:00] * jcwacky quit (Quit: jcwacky)
280: [10:10:00] * Err404NotFound has joined #silverstripe
281: [10:10:00] * Error404NotFound quit (Disconnected by services)
282: [10:19:00] * ajshort quit (Quit: Leaving)
283: [10:25:00] * Shrike_Finland quit (Quit: Leaving.)
284: [10:26:00] * simon_w|air quit (Quit: This computer has gone to sleep)
285: [10:42:00] * ajshort has joined #silverstripe
286: [10:51:00] * NobrainerWeb has joined #silverstripe
287: [10:51:00] * FinBoWa has joined #silverstripe
288: [10:52:00] <NobrainerWeb> Hello guys, i'm trying to get the built in Geoip class return me the country of a visitor, but Geoip::visitor_country() returns nothing. Is there something else that needs to be done?
289: [10:52:00] <kinglozzer> Built in Geoip class? I wasn't aware there was one
290: [10:52:00] <NobrainerWeb> Some PHP extension that needs to be in place or?
291: [10:53:00] <NobrainerWeb> sapphire/integration/Geoip.php
292: [10:53:00] <kinglozzer> Ah 2.4
293: [10:53:00] <NobrainerWeb> yes
294: [10:55:00] <NobrainerWeb> well the Country drop down is nice to have :-)
295: [10:55:00] <kinglozzer> http://php.net/manual/en/book.geoip.php
296: [10:55:00] <NobrainerWeb> hmm ok
297: [10:55:00] <kinglozzer> It's unreliable as well
298: [10:55:00] <kinglozzer> NobrainerWeb: I think it's a PHP extension
299: [10:55:00] <ajshort> There's a reason that class was removed :)
300: [10:56:00] <NobrainerWeb> Ok thanks
301: [10:57:00] <NobrainerWeb> Anyone using something else to get the country of a visitor?
302: [10:57:00] <lx-berlin> a database of IP Adresses. (we bought)
303: [10:57:00] <NobrainerWeb> something you want to share?
304: [10:57:00] <lx-berlin> yep
305: [10:58:00] <kinglozzer> NobrainerWeb: Just in case you don't know, you can't always rely on getting country by IP address - it's not always accurate :)
306: [10:58:00] <lx-berlin> but i dont remeber the company name at the moment
307: [10:58:00] <NobrainerWeb> ahh ok, thanks i found something that i will test
308: [10:59:00] <lx-berlin> our customier bought the version with city names
309: [10:59:00] <NobrainerWeb> Ok thanks
310: [10:59:00] <lx-berlin> http://www.ip2location.com/
311: [11:00:00] <lx-berlin> i am wondering if this will still be possible in 3 years, when everyone is using IPv6
312: [11:01:00] * Motoservo quit (Remote host closed the connection)
313: [11:01:00] * Motoservo has joined #silverstripe
314: [11:03:00] <NobrainerWeb> Needs more testing, but this post does return my country http://stackoverflow.com/questions/12553160/getting-visitors-country-from-their-ip building on http://www.geoplugin.com/
315: [11:04:00] <lx-berlin> how long does it take to get the country ?
316: [11:05:00] <kinglozzer> NobrainerWeb: Yes, most of the time these services are accurate, but they aren't 100% - just don't do anything that depends on them being correct!
317: [11:05:00] <lx-berlin> what if you need to get 3 countries/second ?
318: [11:06:00] <lx-berlin> thats why we decided to have "all" IPs in our own database
319: [11:06:00] <NobrainerWeb> kinglozzer: It's not important, we just want to sort an event list
320: [11:07:00] * Error404NotFound has joined #silverstripe
321: [11:08:00] * Err404NotFound quit (Ping timeout: 276 seconds)
322: [11:10:00] <NobrainerWeb> lx-berlin: If the client likes this stuff (i sure do!) i will ask him to buy what you linked me.
323: [11:11:00] <lx-berlin> but its a very big dump :)
324: [11:11:00] <NobrainerWeb> haha i guess so :-)
325: [11:12:00] <NobrainerWeb> the one with the blue background :-)
326: [11:12:00] <lx-berlin> Ferie For Alle 2013 ?
327: [11:12:00] <NobrainerWeb> Can someone try this link: http://www.camp-let.com/meet-us/ and let me know the first event name is?
328: [11:12:00] <lx-berlin> ah, The Spring Caravan & Camping Show 2013
329: [11:13:00] <NobrainerWeb> It's the danish one for me now, as i'm in DK
330: [11:13:00] <lx-berlin> nice
331: [11:13:00] <NobrainerWeb> Thanks :-)
332: [11:14:00] <lx-berlin> i like the design of .dateDisplay .start and .end
333: [11:14:00] <kinglozzer> Morning r3v3rb
334: [11:14:00] <lx-berlin> hi
335: [11:14:00] <kinglozzer> NobrainerWeb: For me it's the UK one :)
336: [11:14:00] <r3v3rb> morning
337: [11:14:00] <r3v3rb> kinglozzer: :D
338: [11:14:00] * r3v3rb has joined #silverstripe
339: [11:15:00] <NobrainerWeb> member:kinglozzer: and where are you located?
340: [11:15:00] <kinglozzer> UK :)
341: [11:16:00] <NobrainerWeb> Well then thats tested to the max and found a 100% success ;-)
342: [11:16:00] <kinglozzer> Haha yep ;)
343: [11:17:00] * r3v3rb is having a good day
344: [11:18:00] <r3v3rb> 3.1 is playing nicely on the two sites I am using it in and a third site has been built from ground up in about 6hrs :)
345: [11:19:00] <r3v3rb> oh and have any of you downloaded Emmet yet - I have and its phenomenal!
346: [11:20:00] <lx-berlin> r3v3rb: 3.1 or Emmet ?
347: [11:20:00] <r3v3rb> lx-berlin: you'll love it ;)
348: [11:21:00] <lx-berlin> isnt 3.1 still beta ?
349: [11:22:00] <r3v3rb> Emmet lx-berlin
350: [11:22:00] <r3v3rb> lx-berlin: yep :)
351: [11:22:00] <lx-berlin> you are already using 3.1 for production ?
352: [11:23:00] * r3v3rb flying by seat of pants!
353: [11:23:00] <lx-berlin> wow. so, no problems with 3.1 so far ?
354: [11:23:00] <r3v3rb> only that some of the styling seems a bit 'whack' in the admin for the file uploads HOOOOGE text etc
355: [11:24:00] <lx-berlin> ok, maybe its time to test it
356: [11:24:00] <lx-berlin> never heard about emmet. i will take a look at it later. thanks for the tip
357: [11:24:00] <r3v3rb> lx-berlin: they are very simple sites though using it...
358: [11:25:00] <r3v3rb> ;) its insane zen coding on steroids
359: [11:26:00] <r3v3rb> #content>p{text goes here}+img[src="\$ThemeDir/img/myimage"]^#footer>p{footer text here}
360: [11:26:00] <r3v3rb> lx-berlin: yes
361: [11:26:00] <r3v3rb> then hit ctrl-e and it forms the full html out put in one hit
362: [11:26:00] <lx-berlin> hmm, so its a IDE plugin ?
363: [11:27:00] * Guest97364 is now known as onre
364: [11:27:00] * zfmf has joined #silverstripe
365: [11:27:00] <lx-berlin> for which IDE ? i am planing to switch to Phpstorm soon
366: [11:33:00] <lx-berlin> ah, there is the list of supported editors: http://docs.emmet.io/
367: [11:36:00] <lx-berlin> ok, emmet will be supported in phpstorm6 : http://blog.jetbrains.com/webide/2013/02/webstorm-6-eap-build-126-159/
368: [11:39:00] <r3v3rb> lx-berlin: sorry I use coda2 exclusively don't really check on others...
369: [11:40:00] <r3v3rb> hehe, I wonder if sales of Asteroid will escalate today after the meteor hitting russia!
370: [11:40:00] <r3v3rb> and the asteroid fly-by tonight
371: [11:44:00] * Marvanni has joined #silverstripe
372: [11:54:00] * Mento has joined #silverstripe
373: [11:55:00] * howardgrigg quit (Remote host closed the connection)
374: [11:55:00] * howardgrigg has joined #silverstripe
375: [11:55:00] * howardgrigg has joined #silverstripe
376: [11:57:00] <Marvanni> When I remove the GridFieldSortableHeader it also removes the GridFieldFilterHeader ?
377: [11:57:00] <Mento> hey guys, is it just me or can't i have translations within emailtemplates? http://www.sspaste.com/paste/show/511e22a4786d4 (2.4.X branche)
378: [12:03:00] <Marvanni> have you tried to remove the ['FormVoucherRequest.ss'] part ?
379: [12:05:00] <Marvanni> try $lang['nl_NL']['Email']['Message'] = 'Bericht';
380: [12:06:00] * NobrainerWeb quit (Quit: NobrainerWeb)
381: [12:08:00] * jerga has joined #silverstripe
382: [12:10:00] <Mento> Marvanni: thanks, but thats not working aswell
383: [12:10:00] * dendeffe quit (Quit: dendeffe)
384: [12:13:00] <Marvanni> did you set i18n::set_locale(Translatable::get_current_locale()); ?
385: [12:25:00] <Mento> Marvanni: I already set that, anyway - it seems to be fixed... changed the template name and it worked :x
386: [12:28:00] <Marvanni> great
387: [12:30:00] * Colin[pi] quit (Ping timeout: 276 seconds)
388: [12:41:00] <Marvanni> any experience with GridFieldSortableRows or GridFieldOrderableRows ?
389: [12:44:00] <ajshort> Marvanni: I have some experience with GridFieldOrderableRows :)
390: [12:46:00] <Marvanni> great
391: [12:47:00] <Marvanni> this works, but therefore I use DataList::create to get all foreign items
392: [12:47:00] <Marvanni> I created a new Component so I can add manymany relations with checkboxes like the old ManyMany CTF
393: [12:48:00] <Marvanni> but both Sortable/Orderable checks for instance of ManyManyList to decide on wich Table to sort
394: [12:49:00] <Marvanni> so I think I have to create a ManyManyList for the Sortable, but that list needs to contain also the non related items..
395: [12:50:00] <Marvanni> or just rewrite the sortable gridfield component so I can set RelationTable.SortOrder instead of checking for a ManyManyList type
396: [12:50:00] <Marvanni> what would you sugest
397: [12:50:00] <ajshort> That's a very tricky use case
398: [12:50:00] <ajshort> As I'm not sure how you would expect it to work when sorting a mixture of objects that are linked and not linked
399: [12:51:00] <ajshort> I would suggest you use my GridFieldAddExistingSearchButton component
400: [12:53:00] <Marvanni> thats not an option for this project, since the client wants to see all possible Items to choose from like the old MM CTF
401: [12:54:00] * webdevguy has joined #silverstripe
402: [12:54:00] <Marvanni> same like the DataObectManager worked.
403: [12:54:00] <ajshort> that component shows a list
404: [12:54:00] <Marvanni> so maybe try a mixure of DataList for checking and when the SortaBle Checkbox is set, get a ManyManyList
405: [12:55:00] <Marvanni> you mean the GridFieldAddExistingSearchButton?
406: [12:55:00] <webdevguy> I recently uploaded the website to a live server. At frsit the memory_limit was off, so I up'd it
407: [12:55:00] <webdevguy> But now the admin page returns a blank page and i cannot see any error logs
408: [12:55:00] <webdevguy> Hey guys, I've got a problemo with my site.
409: [12:56:00] <webdevguy> have a look and tell me what you think - http://www.neverstopbuilding.com.au/?isDev=1 | http://www.neverstopbuilding.com.au/admin/
410: [12:56:00] <webdevguy> when i go to ?isDev=1 returns more memory_limit functions :S
411: [12:57:00] <jerga> try setting set_environment_type to dev in your config file until debugged
412: [12:57:00] <jerga> also make sure you've done a dev/build
413: [12:57:00] <webdevguy> I've done that, it doesn't show anything at all
414: [12:57:00] <jerga> probably a basic php error, but it's not showing
415: [12:58:00] <jerga> but this catches me sometimes
416: [12:58:00] <jerga> *stating the obvious, perhaps
417: [12:58:00] <jerga> hmm, try error_reporting(E_ALL) in the config, and check the server logs? nothing?
418: [12:59:00] <webdevguy> then returns a blank page lol
419: [12:59:00] <ajshort> Marvanni: yes
420: [12:59:00] <webdevguy> when i go to dev/build, tries to log me in
421: [13:00:00] <webdevguy> [error] [client 58.6.209.187] Allowed memory size of 524288000 bytes exhausted (tried to allocate 523800 bytes) in /home/neversto/public_html/framework/core/Object.php on line 406
422: [13:00:00] <webdevguy> error_reporting(E_ALL) in the mysite/_config.php?
423: [13:00:00] <jerga> yeah
424: [13:01:00] <webdevguy> the site works fine, when i go to /admin though.
425: [13:01:00] <jerga> you should generally have to be logged in to hit dev/build
426: [13:01:00] <webdevguy> thats the issue, i cannot log into my admin panel at all
427: [13:01:00] <jerga> hmm, do you have a lot of custom code?
428: [13:01:00] <webdevguy> this is basically a fresh install of silverstripe.
429: [13:01:00] <Marvanni> yes, but you need to search first to get the items, and I need it like this http://tinypic.com/view.php?pic=2i6j8ts&s=6
430: [13:02:00] * dendeffe has joined #silverstripe
431: [13:03:00] <webdevguy> found my error
432: [13:03:00] <webdevguy> oh my lord
433: [13:03:00] <webdevguy> okay
434: [13:04:00] <webdevguy> isn't connecting to the 'database' correctly.
435: [13:05:00] <jerga> strange that it wasn't reported better
436: [13:05:00] <jerga> that's usually a big clear error report
437: [13:06:00] <webdevguy> whats interesting to me is.
438: [13:06:00] <webdevguy> yeah
439: [13:06:00] <webdevguy> well
440: [13:06:00] <webdevguy> if it cannot connect to the database how come its producing content from the database?
441: [13:07:00] <ajshort> Marvanni: the component displays a list by default, before you enter a search term
442: [13:08:00] <webdevguy> jerga: for some reason it still trying to refference my dev environment :S
443: [13:09:00] <Marvanni> hmm.. I might get away with that...
444: [13:11:00] <webdevguy> wait up, thats not is :S
445: [13:11:00] <webdevguy> it*
446: [13:12:00] <webdevguy> realized, i set error reporting for my dev too, so i was looking at that log file
447: [13:14:00] <webdevguy> :/ yeah its still broken.
448: [13:16:00] <webdevguy> Anyone able to help
449: [13:17:00] * UndefinedOffset has joined #silverstripe
450: [13:19:00] <webdevguy> http://www.neverstopbuilding.com.au/phpinfo.php
451: [13:19:00] <jerga> hmm, so first steps first: stick a file called test.php in the root of your SStr site, with contents "<?php phpinfo(); "
452: [13:19:00] * guci0 has joined #silverstripe
453: [13:19:00] <jerga> webdevguy: make sure you can access this ^ via the URL
454: [13:19:00] <jerga> http://www.neverstopbuilding.com.au/test.php
455: [13:19:00] <webdevguy> yeah i have done that
456: [13:20:00] <jerga> so SStr is definitely partly working, right
457: [13:20:00] <jerga> this is always my sanity-check test :)
458: [13:20:00] <jerga> okay
459: [13:20:00] <jerga> sweet
460: [13:20:00] <jerga> just to be sure. actually I see now that it's working better than before
461: [13:20:00] <webdevguy> http://www.neverstopbuilding.com.au/silverstripe.log
462: [13:21:00] <jerga> and the redirects from admin/ to admin/pages work
463: [13:21:00] <webdevguy> SStr? sorry
464: [13:22:00] <jerga> SStr is my abbrev. for silverstripe, sorry if it's opaque
465: [13:22:00] <webdevguy> haha no its all good
466: [13:23:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/27686a04c489...7527184e6e6e
467: [13:23:00] <webdevguy> yeah its partly working
468: [13:23:00] * travis-ci has joined #silverstripe
469: [13:23:00] <travis-ci> [travis-ci] silverstripe/sapphire#1390 (post-2.4 - 7527184 : Luke Hudson): The build is still failing.
470: [13:23:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4815766
471: [13:23:00] * travis-ci has left #silverstripe
472: [13:23:00] <webdevguy> well the admin/ auto directs to admin/pages
473: [13:24:00] <webdevguy> it doesn't want to sign me in though haha
474: [13:25:00] <jerga> oh, make sure you also have ini_set('display_errors', 1) in your _config.php
475: [13:26:00] <webdevguy> in mysite/_config.php yeah
476: [13:26:00] <webdevguy> okay done that.
477: [13:27:00] <jerga> that just might help
478: [13:28:00] <webdevguy> still nothing :(
479: [13:29:00] <webdevguy> maybe it has something to do with .htaccess?
480: [13:29:00] <webdevguy> perhaps its not hitting the file?
481: [13:30:00] <jerga> I hate the white-screen-of-death bugs!
482: [13:30:00] * nedmas has joined #silverstripe
483: [13:30:00] <jerga> I would guess it's quite possibly server config
484: [13:31:00] <webdevguy> even after i told him, its a bundle pack
485: [13:31:00] <jerga> well, time to put in some debug code into the admin controllers I think
486: [13:31:00] <jerga> see what is printed where
487: [13:31:00] <webdevguy> yeah after talking with the douchebag at crazydomains.com.au all he could do was tell me its my code :/
488: [13:32:00] <webdevguy> yeah!
489: [13:33:00] <jerga> try putting in some debug prints into CMSMain::init?
490: [13:33:00] <jerga> the good old: print_r(...); die; works well for me
491: [13:34:00] <jerga> in cms/code/controllers/CMSMain.php
492: [13:34:00] <webdevguy> CMSMain::init?
493: [13:34:00] * FinBoWa has joined #silverstripe
494: [13:34:00] * FinBoWa quit (Read error: Connection reset by peer)
495: [13:34:00] <webdevguy> (im a bit of a novice when it comes to silverstipe so please do forgive)
496: [13:34:00] <jerga> usually I find that ?debug_request=1 in the URL works wonders, but this time nothing is output.
497: [13:35:00] <jerga> just to see if it's getting routed to the correct controller and running the code
498: [13:35:00] * howardgrigg quit (Remote host closed the connection)
499: [13:35:00] <webdevguy> okay :)
500: [13:35:00] <jerga> in the function init(), try printing "Reached init" and die;
501: [13:35:00] <jerga> right at the top of the function
502: [13:36:00] <jerga> you could also try var_dump($this->getRequest()); to see what SStr has understood from the request
503: [13:36:00] <webdevguy> okay
504: [13:40:00] <webdevguy> Fatal error: Class 'SS_LogFileWriter' not found in /home/neversto/public_html/cms/code/controllers/CMSMain.php on line 13
505: [13:42:00] <jerga> where is the silverstripe cache directory? if you're not sure, check this post (http://www.electrictoolbox.com/silverstripe-cache-directory/) for instructions on how to manually configure it
506: [13:43:00] <jerga> also, check your php versions against requirements
507: [13:43:00] <jerga> I say this, because I would recommend clearing the cache dir, checking its permissions, and re-running a dev/build with the URL argument ?flush=all just to be sure
508: [13:43:00] <jerga> if you're getting missing class errors, it means something is wrong with silverstripe's class cache, or with the PHP autoload system
509: [13:44:00] <jerga> hmm, also this (http://www.silverstripe.org/general-questions/show/19277#post312053) proposes an easier method to change cache dir, but I haven't tried it
510: [13:44:00] <UndefinedOffset> webdevguy make sure that everything uploaded correctly too, sometimes uploads fail. and make sure you dev/build?flush=all too to ensure the manifest is up to date. Sorry if this was suggested i can't see the begining of the convo ;)
511: [13:47:00] <webdevguy> okay
512: [13:48:00] * ajshort quit (Quit: Leaving)
513: [13:48:00] <webdevguy> (output started on /home/neversto/public_html/framework/dev/DebugView.php, line 101)
514: [13:49:00] <webdevguy> hmm
515: [13:49:00] <webdevguy> having a look
516: [13:49:00] <webdevguy> php = 5.3.19
517: [13:51:00] <UndefinedOffset> first
518: [13:51:00] <UndefinedOffset> maybe try reuploading cms and framework just to make sure everything got uploaded, but check check the required php modules here http://www.silverstripe.org/system-requirements/
519: [13:52:00] <webdevguy> i've uploaded it a few times now
520: [13:53:00] * Unlearned quit (Read error: Connection reset by peer)
521: [13:53:00] <jerga> Also, (if not tried) if you have any custom code (at all!) in there, try removing it, just keeping stock sstr and mysite/_config.php... then dev/build and flush again to check
522: [13:54:00] * Unlearned quit (Read error: Connection reset by peer)
523: [13:54:00] <webdevguy> by the way
524: [13:54:00] * Unlearned has joined #silverstripe
525: [13:54:00] * Unlearned quit (Read error: Connection reset by peer)
526: [13:54:00] * Unlearned has joined #silverstripe
527: [13:54:00] <webdevguy> i put the print_R in the wrong spot
528: [13:55:00] <webdevguy> so its now being 'reached'
529: [13:55:00] <webdevguy> its now working
530: [13:55:00] * Unlearned has joined #silverstripe
531: [13:55:00] <webdevguy> http://www.neverstopbuilding.com.au/admin/pages
532: [13:55:00] <webdevguy> so to speak
533: [13:56:00] <webdevguy> mmm I guess what I could do is
534: [13:57:00] <webdevguy> upload new CMS to the server
535: [13:57:00] <webdevguy> brb
536: [13:57:00] <webdevguy> thanks for the help guys, i'll keep you notified in whats doing! :D
537: [13:57:00] <webdevguy> and add in slowly (themes and code)
538: [13:58:00] <jerga> Let us know how you get on once you've verified CMS etc
539: [13:58:00] <jerga> well, if it's being reached that's a good start, but we can move the debug prints 'down the chain' until something doesn't work!
540: [14:06:00] * r3v3rb quit (Quit: r3v3rb)
541: [14:08:00] * dendeffe quit (Ping timeout: 256 seconds)
542: [14:12:00] * webguest has joined #silverstripe
543: [14:13:00] <webguest> how do i do this?
544: [14:13:00] <webguest> i want to remove duplicates on a dataobject set OR get only unique 'tours' in my sql query: http://paste2.org/p/2877490
545: [14:17:00] <webguest> it didnt show any results then..
546: [14:17:00] <webguest> $newset = $set->removeDuplicates(); didnt work for me
547: [14:18:00] * EPIK quit (Ping timeout: 244 seconds)
548: [14:21:00] * r3v3rb has joined #silverstripe
549: [14:33:00] <jerga> removeDuplicates by default removes items with same ID fields
550: [14:33:00] <jerga> webguest: what constitutes a duplicate?
551: [14:37:00] <FinBoWa> webguest: are you sure that groupBy works like that way, does it go to the sql at all? just looking my own ss2 filters and iv used it like $query->groupby('"GalleryFile"."ID"');
552: [14:42:00] <webguest> well, the thing is, i didnt write this function, and have little experience with SilverStripe SQL queries
553: [14:42:00] <jerga> FinBoWa: groupBy does indeed get translated into SQL
554: [14:42:00] <webguest> in native SQL i would just select DISTINCT
555: [14:42:00] <jerga> still, nicer to use the function call format rather than direct access to variable.
556: [14:43:00] <webguest> do you know how to remove the duplicates?
557: [14:43:00] <jerga> does it help if you use $query->distinct = true ?
558: [14:44:00] <jerga> public $distinct = false;
559: [14:44:00] <jerga> from SQLQuery.php:
560: [14:44:00] <jerga> /**
561: [14:44:00] <jerga> * If this is true DISTINCT will be added to the SQL.
562: [14:44:00] <jerga> * @var boolean
563: [14:44:00] <jerga> */
564: [14:45:00] <webguest> the past event, should actually not be listed as past event, because this 'Tour' has got 3 DatesPrice DataObjects
565: [14:45:00] <webguest> no it didnt help, you can see the calendar on the left: up coming events: http://cycleclassictours.com/
566: [14:45:00] <webguest> and past events
567: [14:46:00] <webguest> 1 in the past and 2 in the future
568: [14:46:00] <webguest> (Cycle Canary Islands)
569: [14:47:00] <Marvanni> hm, it does not happen with all images, but when i want to add ann image from tinymce I get settings.headers is undefined error
570: [14:47:00] <jerga> webguest: Just FYI, unrelated: your background image is 290KB ... you may want to try a lower filesize here or look at CSS gradients.
571: [14:47:00] <Marvanni> does that sound familiar to someone?
572: [14:47:00] <webguest> jerga ty
573: [14:48:00] <FinBoWa> webguest: can you debug dump the sql out..
574: [14:48:00] <FinBoWa> bought it wouldn't know what you want to keep ..
575: [14:48:00] <FinBoWa> it should definitely strip out the duplicates of the join
576: [14:48:00] <FinBoWa> if the group by is grouping the right thing
577: [14:48:00] <jerga> ha, was about to ask same
578: [14:50:00] * Unlearned quit (Ping timeout: 244 seconds)
579: [14:50:00] <webguest> ok, thx ill try it, brb
580: [14:51:00] <FinBoWa> webguest: and a pro tip; Use Debug::dump("sweet"); for debugging.. not that echo bit :).. od Debug::log if you can't view the output (writes a log file in the root)
581: [14:53:00] <FinBoWa> actually i think you should amend the query not include the dates that aren't valid anymore
582: [14:54:00] <FinBoWa> $query = singleton('Tour')->buildSQL($filter, $sort = '"DatesPrice"."StartDate" DESC', $limit); < that basically states I want all > causes duplicates, so adding a having statement that chefs if the dates are large or equal of today
583: [14:55:00] <FinBoWa> well.. unless the $filter contains that bit already .. then forget it :D
584: [15:04:00] * discorpia quit (Read error: Operation timed out)
585: [15:05:00] * discorpia has joined #silverstripe
586: [15:16:00] * FinBoWa quit (Quit: FinBoWa)
587: [15:17:00] * jerga quit (Ping timeout: 245 seconds)
588: [15:19:00] * jerga has joined #silverstripe
589: [15:24:00] <g4b0> I have a published page
590: [15:24:00] * g4b0 has joined #silverstripe
591: [15:24:00] <g4b0> hi all
592: [15:24:00] <g4b0> I would like to have a new stage version of this page
593: [15:24:00] <g4b0> without unpublishing it
594: [15:25:00] <g4b0> just*
595: [15:25:00] <g4b0> is it possible to do it by code?
596: [15:25:00] <g4b0> kust like pressing "Saved" button
597: [15:27:00] * webguest quit (Ping timeout: 245 seconds)
598: [15:28:00] <g4b0> I'm trying $p->writeToStage('Stage');
599: [15:28:00] <g4b0> but it does not create a new version...
600: [15:35:00] * ARNHOFF quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
601: [15:42:00] <jerga> $page->write();
602: [15:42:00] <jerga> clone $page
603: [15:42:00] <jerga> try:
604: [15:42:00] <jerga> unset($page->ID);
605: [15:43:00] <jerga> oh, wait. I see. My code will duplicate your page, but you don't want that?
606: [15:43:00] <jerga> something like that? You may need to Versioned::set_reading_stage('Stage'); before the ->write()
607: [15:43:00] <jerga> g4b0: Note, I haven't actually tried this
608: [15:45:00] <g4b0> no, I don't
609: [15:45:00] <g4b0> I add a space at the end of Content
610: [15:45:00] <g4b0> I solved in a rude way...
611: [15:46:00] <g4b0> and $p->writeToStage('Stage');
612: [15:46:00] <g4b0> now creates a new version :)
613: [15:54:00] * catcher has joined #silverstripe
614: [16:00:00] * Colin[pi] has joined #silverstripe
615: [16:08:00] * jerga quit (Ping timeout: 244 seconds)
616: [16:12:00] * Nivery has joined #silverstripe
617: [16:14:00] * nedmas quit (Quit: nedmas)
618: [16:15:00] * samthejarvis has joined #silverstripe
619: [16:21:00] * kinglozzer quit (Remote host closed the connection)
620: [16:22:00] * jerga has joined #silverstripe
621: [16:45:00] <samthejarvis> got an interesting problem here, basically, joining two tables that have the same column names, getting an ambiguous column error (obviously as there are two columns of that name)
622: [16:45:00] <samthejarvis> I know I need to alias those columns, but have no idea how to do it with silverstripe's ORM
623: [16:52:00] * Mento quit ()
624: [16:54:00] * samthejarvis quit (Ping timeout: 245 seconds)
625: [17:01:00] * g4b0 quit (Quit: Sto andando via)
626: [17:12:00] * Colin[pi] quit (Ping timeout: 256 seconds)
627: [17:13:00] <chillu> Prettier API docs! http://test.silverstripe.com/apigen/htdocs/trunk
628: [17:17:00] * Unlearned has joined #silverstripe
629: [17:18:00] <UndefinedOffset> oo shiny, i like, tough how do you switch versions?
630: [17:24:00] <Marvanni> Is there any reason why Translatable uses lowercased locale vars instead of Locale?
631: [17:25:00] <chillu> You can't yet, needs to be added to the template somehow - its not a feature of Apigen :)
632: [17:25:00] <FrozenFire> Because wheels need reinventing
633: [17:26:00] <FrozenFire> chillu, That's actually pretty great. One thing, though. Can the left-hand tree start out collapsed?
634: [17:27:00] <FrozenFire> As well, how are you going to split versions?
635: [17:30:00] <chillu> Help appreciated, as usual :)
636: [17:30:00] <chillu> I've added some todos here already: https://groups.google.com/forum/?fromgroups=#!topic/silverstripe-dev/ejk3O1YOfig
637: [17:31:00] <FrozenFire> That's one thing I'm absolutely willing to help with.
638: [17:31:00] <chillu> We're only generating branches, not specific versions at the moment - simply because of the mainteinance hassle involved to change the scripts on every release
639: [17:31:00] <FrozenFire> Yeah, was going to ask if you needed any.
640: [17:32:00] <FrozenFire> Change the scripts?
641: [17:32:00] <chillu> w00t, awesome :) Do you want to try your luck on the version switching? Ideally in a way that we don't need to copy a new set of template files for each release
642: [17:32:00] <chillu> "git clone --tag 3.0.3 github.com/sapphire ???" to "git clone --tag 3.0.4 github.com/sapphire ???"
643: [17:33:00] <FrozenFire> That seems like bad design. :P Perhaps instead create a site running SilverStripe itself (even if only framework) that lets you add new versions in with the checkout information specified.
644: [17:33:00] <chillu> We could switch it to composer, and set minimum-stability from "dev" to "stable", which would always get the latest. Happy for you to look at rewriting makedocs.sh to that effect
645: [17:34:00] <FrozenFire> Using a hardcoded script is usually a bad idea.
646: [17:34:00] <FrozenFire> Then a ScheduledTask which runs the builds
647: [17:34:00] <chillu> That's way overkill for configuring versions - the composer solution would work for the "latest release" pulls
648: [17:34:00] <chillu> You don't say ;) Its also usually a pragmatic idea hehe
649: [17:35:00] <FrozenFire> Meh. This is going to be some pretty important infrastructure
650: [17:35:00] <FrozenFire> Engineering it is a pragmatic.
651: [17:36:00] <lx-berlin> CMSMenu::remove_menu_item('SecurityAdmin'); is this still possible in ss3 ?
652: [17:36:00] <chillu> Well, that's why I'm asking for help - so we can get from "somehow works" to "works awesomely". More contributors = better product.
653: [17:37:00] <FrozenFire> lx-berlin, http://api.silverstripe.org/trunk/cms/content/CMSMenu.html#methodremove_menu_item
654: [17:38:00] <chillu> So, FrozenFire: Would you be willing to look into the version switching? I specifically don't want a SS-based solution though, its too simple of a problem for that.
655: [17:38:00] <lx-berlin> thanks. but nothing happens
656: [17:38:00] <FrozenFire> Any particular reason why you are removing SecurityAdmin completely?
657: [17:39:00] <FrozenFire> chillu, I don't understand that mentality. It's a website that needs to be administrated. A simple problem doesn't need a from-scratch solution.
658: [17:39:00] <lx-berlin> it was just a test. in fact i want to remove the "QueuedJobsAdmin" from the QueuedJobs module. But none of them disappears
659: [17:39:00] <lx-berlin> anyway, time for dinner
660: [17:40:00] <FrozenFire> lx-berlin, It might be something like Menu-QueuedJobsAdmin
661: [17:40:00] <chillu> So far, its four values: "master", "3.1", "3.0", "2.4". Do you really need a CMS with 100K+ LOC to maintain that?
662: [17:41:00] <FrozenFire> chillu, I said even just using the framework would be fine. The bottom line is that it's not going to be just four values.
663: [17:42:00] <chillu> True, within the next couple of years it might be SIX or SEVEN. We should get some NoSQL storage to manage that data ;)
664: [17:42:00] <FrozenFire> It'll be the four values, plus their corresponding checkout information, any additional flags we need to assign to them (e.g. "uses Markdown")
665: [17:42:00] <FrozenFire> And an interface to edit those.
666: [17:46:00] <FrozenFire> It's a problem that php.doc itself suffers from
667: [17:46:00] <FrozenFire> Or a config file. Doesn't really matter to me.
668: [17:46:00] <FrozenFire> I just hate writing all of this stuff from scratch
669: [17:47:00] <FrozenFire> And can't be replaced because it's so complicated that nobody actually knows how it really works.
670: [17:47:00] <FrozenFire> Code written in the PHP4 days from scratch that is rotting and mouldy and only barely gets things done
671: [17:49:00] <FrozenFire> Not to mention php.web
672: [17:49:00] <FrozenFire> A steaming piece of scratch-coded turd
673: [17:50:00] <chillu> Agreed, it needs clear docs. It also depends if we need to expose specific versions (e.g. 3.0.3), which is updated more frequently. If we stick to "3.0" and just always pull the latest release via composer, then its a matter of somebody adding a few lines of code once every year on a new major release. Quite likely the same dev, every year. It's really not a complex problem, unless we make it one
674: [17:51:00] <FrozenFire> Not clear docs. Clear code.
675: [17:51:00] <chillu> In general, I went down that road of "we need a clean extensible architecture" too many times with secondary infrastructure stuff like that - best example is the opensearch implementation behind ss.org, doc.ss.org etc - it works, was multi days of work, but is dog slow, error prone, and nobody has time to fix it. So I'm all for the simplest responsible solution
676: [17:53:00] <Marvanni> I also get errors in settings.headers is undefined errors when I try to search for a Locale with a Dropdown but the current Locale is different...
677: [17:53:00] <Marvanni> anyone else has issues with Uploading Images and Translatable?
678: [17:53:00] <FrozenFire> What I'd envision is checking out the SS framework, and creating a config file which details each of the clones it needs to do (each of the versions' documentation). It has a ScheduledTask that gets called once per week which updates each of the versions' documentation, if needed.
679: [17:54:00] <FrozenFire> Basic routing for pointing people at the right docs without using a bunch of esoteric directory structures.
680: [17:54:00] <Marvanni> seems that the ?locale=lo_LO parameter in the GET urls is messing up $(document).ajaxComplete(function(e, xhr, settings) { in LeftAndMain.js ...
681: [17:54:00] <FrozenFire> Some "magic" for doing things like linking to the same class in other doc versions.
682: [17:57:00] * theorytank has joined #silverstripe
683: [18:03:00] * theorytank quit (Quit: Page closed)
684: [18:10:00] * gelignite has joined #silverstripe
685: [18:14:00] * Nivery quit (Quit: Nivery)
686: [18:27:00] <FrozenFire> Hrmm, is there a GlobalTemplateProvider for getting the current date?
687: [18:28:00] <FrozenFire> Converting a hand-written HTML/PHP site into an SS template, and need to replace &copy; Copyright 2010 - <?= date("Y"); ?>
688: [18:28:00] * jerga quit (Ping timeout: 240 seconds)
689: [18:29:00] <FrozenFire> TemplateGlobalProvider rather...
690: [18:31:00] <FrozenFire> Meh. Easy enough to create on Page
691: [18:32:00] <catcher> FrozenFire, $Now.format(Y)
692: [18:32:00] <FrozenFire> Thanks
693: [18:32:00] <FrozenFire> Aha
694: [18:34:00] * travis-ci has joined #silverstripe
695: [18:34:00] <travis-ci> [travis-ci] silverstripe/sapphire#1391 (2.4 - 5d3ed12 : Ingo Schommer): The build has errored.
696: [18:34:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/9337902fdd3f...5d3ed12e2043
697: [18:34:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4822038
698: [18:34:00] * travis-ci has left #silverstripe
699: [18:38:00] * SightUnseen has joined #silverstripe
700: [18:38:00] * SightUnseen has left #silverstripe
701: [18:51:00] <priithansen> Is it possible to overload? textareafield without extending from it? Add a custom method to it.
702: [18:52:00] <priithansen> ah nice to know
703: [18:52:00] <FrozenFire> It FormField extends Object, so you can add an extension to TextAreaField
704: [18:52:00] <FrozenFire> s/It//
705: [18:53:00] <FrozenFire> There are already markdown fields, though
706: [18:53:00] <priithansen> I'm making an attempt to make a Markdown field and was wondering if it would be extendable later if needed
707: [18:53:00] <FrozenFire> Yep
708: [18:54:00] <FrozenFire> :P
709: [18:54:00] <FrozenFire> https://github.com/wolfv/silverstripe-markdowneditorfield
710: [18:54:00] <priithansen> yes but mine will be better :)
711: [18:55:00] <priithansen> www.priithansen.com/markdown.png
712: [18:56:00] <priithansen> plan is to have short code parsers for images and links stuff that markdown might not be enough for
713: [18:56:00] <FrozenFire> Not bad
714: [18:56:00] * travis-ci has left #silverstripe
715: [18:56:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4822304
716: [18:56:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/f4068371fc13...6ff1f9050d46
717: [18:56:00] <travis-ci> [travis-ci] silverstripe/sapphire#1392 (3.1 - 6ff1f90 : Ingo Schommer): The build passed.
718: [18:56:00] * travis-ci has joined #silverstripe
719: [18:57:00] <FrozenFire> Heh. Good luck. I suspect that SS's own shortcode syntax may conflict
720: [18:57:00] <priithansen> will see what comes out of it I'm already way over my head with the entwine stuff
721: [18:58:00] <priithansen> I'm using ss short code stuff for image
722: [18:58:00] <FrozenFire> It uses [shortcode] syntax
723: [19:00:00] <priithansen> one thing that might count as a bug in ss shortcodes don't like underscores [images_stuff] gets called even with short code [imags]
724: [19:01:00] <priithansen> [images]
725: [19:02:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/6ff1f9050d46...37e10d14f3ff
726: [19:02:00] * travis-ci has left #silverstripe
727: [19:02:00] * travis-ci has joined #silverstripe
728: [19:02:00] <travis-ci> [travis-ci] silverstripe/sapphire#1393 (3.1 - 37e10d1 : Ingo Schommer): The build passed.
729: [19:02:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4822317
730: [19:03:00] * lx-berlin has left #silverstripe
731: [19:04:00] * ARNHOFF has joined #silverstripe
732: [19:07:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4822329
733: [19:07:00] * travis-ci has left #silverstripe
734: [19:07:00] * travis-ci has joined #silverstripe
735: [19:07:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/37e10d14f3ff...d9cecd9e83fd
736: [19:07:00] <travis-ci> [travis-ci] silverstripe/sapphire#1394 (3.1 - d9cecd9 : Ingo Schommer): The build passed.
737: [19:09:00] * slith has joined #silverstripe
738: [19:10:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4822369
739: [19:10:00] * travis-ci has left #silverstripe
740: [19:10:00] * travis-ci has joined #silverstripe
741: [19:10:00] <travis-ci> [travis-ci] silverstripe/sapphire#1395 (3.1 - fd4d399 : Ingo Schommer): The build passed.
742: [19:10:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/d9cecd9e83fd...fd4d39984ded
743: [19:17:00] * Nivery has joined #silverstripe
744: [19:19:00] * eddiemonge has joined #silverstripe
745: [19:19:00] * travis-ci has left #silverstripe
746: [19:19:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4822437
747: [19:19:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/fd4d39984ded...d4b7763cab26
748: [19:19:00] <travis-ci> [travis-ci] silverstripe/sapphire#1396 (3.1 - d4b7763 : Ingo Schommer): The build passed.
749: [19:19:00] * travis-ci has joined #silverstripe
750: [19:21:00] * SightUnseen has joined #silverstripe
751: [19:29:00] * OxFF1 has joined #silverstripe
752: [19:30:00] * OxFF1 has left #silverstripe
753: [19:34:00] <Marvanni> any experience with the GridFieldEditableColumns?
754: [19:35:00] * r3v3rb quit (Quit: r3v3rb)
755: [19:38:00] * SightUnseen quit (Quit: Leaving.)
756: [19:49:00] * Unlearned quit (Quit: Going offline, see ya! (www.adiirc.com))
757: [19:54:00] * r3v3rb has joined #silverstripe
758: [19:58:00] * Unlearned has joined #silverstripe
759: [20:06:00] * DigNZ quit (Client Quit)
760: [20:06:00] * DigNZ has joined #silverstripe
761: [20:09:00] * SightUnseen has joined #silverstripe
762: [20:11:00] * SightUnseen has left #silverstripe
763: [20:17:00] * DigNZ has joined #silverstripe
764: [20:24:00] * DigNZ quit (Quit: DigNZ)
765: [20:27:00] * r3v3rb quit (Quit: r3v3rb)
766: [20:31:00] * Liquide has joined #silverstripe
767: [20:35:00] * dospuntocero has joined #silverstripe
768: [20:36:00] <dospuntocero> i want to make my fields to exclusively get a kind of file so i added this
769: [20:36:00] <dospuntocero> $webm->setAllowedExtensions(array('webm'));
770: [20:36:00] <dospuntocero> and it doesnt work at all.
771: [20:36:00] <dospuntocero> the only one that works is the .mp4 one.
772: [20:36:00] <dospuntocero> one for .webm files, one for .mp4 and one for .ogv
773: [20:36:00] <dospuntocero> i have an object with 3 different fileuploadfields
774: [20:36:00] <dospuntocero> hey guys i have a question regarding setAllowedExtensions on Uploadfields
775: [20:37:00] <dospuntocero> the error im getting is
776: [20:37:00] <dospuntocero> Extension is not allowed (valid: {extensions})
777: [20:37:00] <dospuntocero> @simon_w any ideas ?
778: [20:38:00] <dospuntocero> @Zauberfisch_ any ideas?
779: [20:39:00] <dospuntocero> is that one the UploadValidator i need?
780: [20:39:00] <dospuntocero> im using $webm = $fields->fieldByName("Root")->fieldByName("Main")->fieldByName("WebmVideo")->getValidator();
781: [20:42:00] * jerga has joined #silverstripe
782: [20:43:00] * r3v3rb has joined #silverstripe
783: [20:45:00] * dospuntocero quit (Remote host closed the connection)
784: [20:46:00] <dospuntocero> :C
785: [20:46:00] * dospuntocero has joined #silverstripe
786: [20:46:00] <dospuntocero> anyone?
787: [20:46:00] <dospuntocero> >C
788: [21:00:00] <eddiemonge> can the content field be hidden in the editor in SS3?
789: [21:01:00] * SightUnseen1 has joined #silverstripe
790: [21:03:00] * SightUnseen1 quit (Client Quit)
791: [21:08:00] * UndefinedOffset quit (Quit: Leaving.)
792: [21:08:00] <UndefinedOffset> eddiemonge use $fields->removeFieldFromTab('Root.Main', 'Content'), something like that :)
793: [21:11:00] <FrozenFire> Nevermind
794: [21:11:00] <FrozenFire> Random sorting. How to.
795: [21:11:00] <FrozenFire> Of a DataList
796: [21:12:00] <FrozenFire> <% loop MyList.sort("RAND()") %>
797: [21:27:00] * mobiusnz quit (Quit: Leaving.)
798: [21:30:00] * slith quit (Quit: Leaving.)
799: [21:33:00] <FrozenFire> I still don't know what it's doing.
800: [21:33:00] <FrozenFire> I've read it four times, carefully.
801: [21:33:00] <FrozenFire> Christ... ContentController::getMenu is a great example of clever code gone wrong.
802: [21:48:00] * Nivery quit (Quit: Nivery)
803: [21:52:00] * r3v3rb quit (Quit: r3v3rb)
804: [21:57:00] <FrozenFire> If I edit it directly in the editor's rich text interface, it works.
805: [21:57:00] <FrozenFire> So... 3.1 bug maybe.
806: [21:57:00] <FrozenFire> HTMLEditorField on a DataObject's CMS Fields that edits an HTMLText called Content.
807: [21:57:00] <FrozenFire> If I edit the HTML source of the field, it doesn't save.
808: [21:58:00] <FrozenFire> Though I think everything else writes.
809: [21:58:00] * mobiusnz has joined #silverstripe
810: [21:58:00] <FrozenFire> No errors
811: [21:58:00] <FrozenFire> No nothing. Just doesn't write
812: [22:01:00] <catcher> Is Controller's httpError method's $message available to the template somehow?
813: [22:03:00] <simon_w> Given that it doesn't use a template, I'm going with no
814: [22:03:00] <catcher> simon_w, returning a 404 renders ErrorPage.ss
815: [22:04:00] * willr has joined #silverstripe
816: [22:04:00] <simon_w> Yes, but that's got nothing to do with Controller
817: [22:04:00] <simon_w> IIRC, that's a try/catch in ContentController::handleRequest
818: [22:04:00] <catcher> simon_w, is there a way to get $message to show up then?
819: [22:05:00] <catcher> is $message used for some other reason?
820: [22:05:00] <simon_w> Nope
821: [22:05:00] <catcher> kk
822: [22:05:00] <simon_w> Throw something you don't have an ErrorPage for
823: [22:11:00] * zfmf has left #silverstripe
824: [22:17:00] * howardgrigg has joined #silverstripe
825: [22:28:00] <dospuntocero> hey guys i have a question regarding setAllowedExtensions on Uploadfields
826: [22:29:00] <dospuntocero> but im getting that error
827: [22:29:00] <dospuntocero> i have a field that uses> $webm->setAllowedExtensions(array('webm')); Extension is not allowed (valid: {extensions})
828: [22:34:00] * lx-berlin has joined #silverstripe
829: [22:36:00] * lx-berlin has left #silverstripe
830: [22:38:00] <simon_w> Probably because it's not in File's list of allowed extensions
831: [22:44:00] * ARNHOFF quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
832: [22:45:00] * EPIK has joined #silverstripe
833: [22:51:00] <Marvanni> I use the GridFieldEditableColumns. Is there anyway I can set the order of Columns in the Gridfield, since the GridFieldEditableColumns are added after the Action Column...
834: [22:56:00] <Marvanni> hm... this seems to work.... $config->removeComponentsByType('GridFieldDeleteAction')->addComponent(new GridFieldDeleteAction(true));
835: [23:02:00] <dospuntocero> simon_w: is not
836: [23:02:00] <dospuntocero> do i need to push that extension?
837: [23:06:00] <dospuntocero> simon_w: actually only mp4 is there... but no other video extension
838: [23:07:00] <dospuntocero> ogv and webm are required in that file, since those are the new formats for html5 video
839: [23:09:00] <FrozenFire> Feelsgoodman
840: [23:09:00] * FrozenFire ports our company site over to SS
841: [23:12:00] * Unlearned quit (Remote host closed the connection)
842: [23:14:00] * Error404NotFound quit (Ping timeout: 248 seconds)
843: [23:17:00] * Error404NotFound has joined #silverstripe
844: [23:26:00] <catcher> in 3.0.3, particularly
845: [23:26:00] <catcher> Anything in SS core for retrieving & parsing RSS feeds?
846: [23:35:00] * ajshort has joined #silverstripe
847: [23:38:00] * howardgrigg quit (Remote host closed the connection)
848: [23:39:00] <catcher> simplepie my best bet?
849: [23:41:00] <willr> catcher RestfulService will read those
850: [23:42:00] <willr> and handle caching etc
851: [23:42:00] <catcher> ooh cool, ty
852: [23:42:00] <willr> http://doc.silverstripe.org/framework/en/reference/restfulservice
853: [23:43:00] <ajshort> guzzle!
854: [23:43:00] <ajshort> (is a more full featured alternative if you need it)
855: [23:45:00] <Marvanni> ajshort, about the GridFieldEditableColumns, it might really be an edge case
856: [23:46:00] <ajshort> what do you mean?
857: [23:46:00] <ajshort> if you have a field defined in both the extra fields, and in the object itself, weird things may happen
858: [23:46:00] <Marvanni> But I foundit a little odd that when I updated the manymany Fields, the DataObject itself got updated aswell
859: [23:46:00] <ajshort> OK
860: [23:47:00] <Marvanni> Well, in 2.4 I only got ambitious ColumnName sometimes, but the SiteBlock example always worked well
861: [23:48:00] <Marvanni> Page_SiteBlocks : many_many_extraFields (Position, Style) for the relation setting and the same fields on the SiteBlock Table for defaults
862: [23:49:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
863: [23:50:00] <ajshort> don't do that
864: [23:50:00] <ajshort> yeah
865: [23:51:00] <ajshort> yes
866: [23:51:00] <Marvanni> is that really a now go area?
867: [23:52:00] <Marvanni> hm, ok... what could happen worst case?
868: [23:53:00] <ajshort> weird conflicts, like you just found out :)
869: [23:54:00] <Marvanni> hehe. hm. Well you might be right... it just always worked on 2.4
870: [23:54:00] * dospuntocero has joined #silverstripe
871: [23:54:00] * dospuntocero quit (Remote host closed the connection)
872: [23:55:00] * dospuntocero quit (Read error: Connection reset by peer)
873: [23:55:00] <ajshort> Marvanni: you can set defaults in the many_many_extraFields definition
874: [23:55:00] * dospuntocero has joined #silverstripe
875: [23:55:00] <ajshort> e.g. 'Position' => 'Enum(array("North", "Center", "South"), "Center)"' will default to center
876: [23:55:00] <Marvanni> I know, but it need to be edditable per User created Block
877: [23:56:00] <Marvanni> The SIteBlocks are created in a ModelAdmin
878: [23:56:00] <Marvanni> But forget about it :) I will rename the manymanyextrafields
879: [23:56:00] <Marvanni> it needs to be a db value.
880: [23:57:00] * chillu quit (Quit: chillu)
881: [23:58:00] * priithansen quit (Quit: priithansen)

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