#silverstripe IRC Log

IRC log for 10 April 2013

All timestamps are in UTC.

1: [00:16:00] <EasyCo> Wrapping an UploadField in a FieldGroup make the formatting blow up
2: [00:17:00] * perverse has joined #silverstripe
3: [00:28:00] <perverse> hey guys - in which direction in the framework would I look to mess around with where the template parsing implements the requirements into the template? My front-end guys are bitching at me deluxe because they can't have modinizr.js declared after their stylesheets in the header
4: [00:28:00] <perverse> driving me nuts
5: [00:28:00] * chillu quit (Quit: chillu)
6: [00:29:00] <simon_w> Also, tell your designers they're idiots and they hate users
7: [00:29:00] <perverse> thanks man
8: [00:29:00] <simon_w> perverse, Requirements::insertHeadTag('<script blah />');
9: [00:29:00] <perverse> ah, that will come after the css?
10: [00:29:00] <simon_w> Yes
11: [00:29:00] <perverse> brilliant
12: [00:30:00] <perverse> they just like making my life shitty i think, lol
13: [00:30:00] <perverse> ill wrap that in a template method and they'll be none the wiser... excellent
14: [00:30:00] <perverse> i tell them that every day of my life
15: [00:30:00] <perverse> :)
16: [00:30:00] <perverse> it's the front-end devs, not so much teh designers
17: [00:31:00] * joelpittet has joined #silverstripe
18: [00:34:00] * ooboo has joined #silverstripe
19: [00:34:00] * Error404NotFound quit (Ping timeout: 245 seconds)
20: [00:34:00] <perverse> also - is there a common place where tags like $BaseHref and $ThemeDir come from?
21: [00:35:00] <perverse> not for editing purposes, i want to call those functions on the backend, too
22: [00:35:00] <ooboo> hello. in ss3 how do i limit search to just return certain page types?
23: [00:35:00] <perverse> so just want to know if i can reference them statically or some such in php
24: [00:36:00] <perverse> ok, thanks
25: [00:36:00] <ooboo> simon_w: the regular site search
26: [00:36:00] <perverse> :)
27: [00:36:00] <simon_w> ooboo, which search?
28: [00:36:00] <simon_w> (they're all static methods)
29: [00:36:00] <simon_w> perverse, nope. Look at the get_template_global_variables method on things that implement TemplateGlobalProvider for what they map to
30: [00:37:00] <EasyCo> How do you link using modernizr with hating users?
31: [00:37:00] <ooboo> i have an ArticlePage that extends Page, i just want those types in my results
32: [00:39:00] <simon_w> ooboo, with the default search, you can't. You'll need to write your own
33: [00:40:00] <simon_w> EasyCo, I link external scripts in the header with hating users
34: [00:41:00] <ooboo> simon_w: like this? http://doc.silverstripe.org/framework/en/reference/searchcontext that seems to be like modeladmin, with a separate field for each field searched
35: [00:41:00] <simon_w> So many sites failed to load in anything near reasonable when type kit went down
36: [00:41:00] <EasyCo> Everything else can go in the footer
37: [00:41:00] <EasyCo> Why's that?
38: [00:41:00] <simon_w> The browser stops until it's loaded
39: [00:41:00] <EasyCo> Modernizr needs to be in the header though or you get flashes of unstyled content
40: [00:42:00] <ooboo> i want one query field that searches multiple fields on an Article
41: [00:43:00] <simon_w> ooboo, SearchContext makes that rather difficult. You could just do something like ArticlePage::get()->filterAny(array('FieldName:Contains' => $value, 'OtherField:Contains' => $value))..., though that needs 3.1
42: [00:44:00] <ooboo> simon_w: thanks, any 3.0 equivalent?
43: [00:45:00] <simon_w> A custom ->where() call
44: [01:02:00] * Zauberfisch|idle has joined #silverstripe
45: [01:05:00] * Zauberfisch^idle quit (Ping timeout: 246 seconds)
46: [01:06:00] <simon_w> Yay, php.net is redirecting again!
47: [01:07:00] <Pyromanik> as simon_w said, linking EXTERNAL scripts is hating users.
48: [01:07:00] <Pyromanik> EasyCo, download Modernizr and host it locally.
49: [01:07:00] <Pyromanik> and not just when sites go down.
50: [01:08:00] <simon_w> Ooh, interesting thing. It turns out that google's jQuery thing is only likely to be cached if you're getting 1.4.2
51: [01:08:00] <Pyromanik> wouldn't load.
52: [01:08:00] <Pyromanik> which wipes out google apis (jquery), maps, fonts, etc.
53: [01:08:00] <Pyromanik> google.com often doesn't respond on my connection
54: [01:08:00] <Pyromanik> bassblog.pro is a good example. I wanted some music yesterday.
55: [01:09:00] <Pyromanik> because lazy
56: [01:09:00] <irogue> simon_w: yeah, that was interesting
57: [01:09:00] <irogue> i moved all of my js libs internal about 6mo ago
58: [01:09:00] <Pyromanik> I always internal.
59: [01:09:00] <Pyromanik> only fonts aren't.
60: [01:09:00] <simon_w> combine_files, baby!
61: [01:10:00] <Pyromanik> too big!
62: [01:10:00] <irogue> simon_w: yeah, that was one of the big reason for moving it internal
63: [01:10:00] <Pyromanik> but
64: [01:10:00] <Pyromanik> yeah I probably should do that, but never have.
65: [01:10:00] <Pyromanik> many of my scripts are conditional
66: [01:10:00] <Pyromanik> ie, cylce only when there is a slider, etc.
67: [01:10:00] <Pyromanik> do it once, cached, *shrug*
68: [01:10:00] <simon_w> Pyromanik, combine_files all your libraries into one
69: [01:10:00] <Pyromanik> simon_w, I know
70: [01:10:00] <Pyromanik> I don't want to
71: [01:11:00] <Pyromanik> ?
72: [01:11:00] <simon_w> Then the files you keep changing don't keep invalidating the cache
73: [01:12:00] <Pyromanik> do they anyway?
74: [01:12:00] <Pyromanik> they haven't changed, only the site specific one.
75: [01:12:00] <simon_w> That way, when you change one of your site JS files, the libraries don't need to be redownloaded
76: [01:12:00] <Pyromanik> mmm
77: [01:12:00] <simon_w> Basically, you combine into two (base) files. libraries.js, which includes things like jQuery, plugins, slider, etc and mystuff.js which is site specific stuff
78: [01:12:00] <simon_w> If you combine they do
79: [01:13:00] <Pyromanik> I have too much rando stuff
80: [01:13:00] <Pyromanik> nope
81: [01:13:00] <simon_w> Do it now.
82: [01:13:00] <simon_w> Do it
83: [01:13:00] <Pyromanik> oh yeah, but I don't.
84: [01:13:00] <simon_w> But you should
85: [01:13:00] <Pyromanik> nah
86: [01:13:00] <Pyromanik> don't wanna lump it all into one big file.
87: [01:13:00] <Pyromanik> etc*
88: [01:13:00] <Pyromanik> like slider this page, carousel that page, overlabel this and that but not there, tec.
89: [01:14:00] <Pyromanik> even if they are all libs
90: [01:15:00] <Pyromanik> if I had a bunch of interreliant files in use on every page to make an app I probably would.
91: [01:16:00] * azureKnight has joined #silverstripe
92: [01:18:00] <irogue> mine's all going to single file at the mo, invalidates each time i tweak the site js
93: [01:18:00] <irogue> good idea
94: [01:18:00] <irogue> [13:12] <@simon_w> Basically, you combine into two (base) files. libraries.js, which includes things like jQuery, plugins, slider, etc and mystuff.js which is site specific stuff
95: [01:19:00] <Pyromanik> dev mode doesn't combine does it?
96: [01:19:00] <simon_w> nope
97: [01:21:00] <EasyCo> Can you access the Form object in DataObject::onBeforeWrite?
98: [01:22:00] * LoveDuckie quit (Ping timeout: 245 seconds)
99: [01:29:00] <simon_w> Lol, people are trying to email ss-log's hostmask
100: [01:29:00] <simon_w> EasyCo, nope
101: [01:30:00] <simon_w> In ModelAdmin?
102: [01:30:00] <EasyCo> I know we discussed this briefly yesterday but what would be the correct approach to doing validation on DataObject within the CMS?
103: [01:31:00] <EasyCo> Umm, I don't extend ModelAdmin directly no. It's just a DataObject that has_one CMS Page
104: [01:32:00] <EasyCo> Yes correct.
105: [01:32:00] <simon_w> And are you adding the GridField to manage the has_many to Page yourself?
106: [01:33:00] <simon_w> Then, $gf->getConfig()->getComponentByType('GridFieldDetailForm')->setValidator(new YourValidator)
107: [01:35:00] <EasyCo> EasyCo: Hah! I guess it would make sense to do the validation there.
108: [01:37:00] <perverse> love iiiit
109: [01:37:00] <simon_w> Yes
110: [01:37:00] <perverse> did it come in with ss3?
111: [01:37:00] <perverse> this TemplateGlobalProvider interface is fucking awesome
112: [01:38:00] <perverse> makes me want to refactor this entire site to use it now...
113: [01:38:00] <perverse> no more cluttered Page.php's
114: [01:59:00] * DrCuriosity quit (Ping timeout: 248 seconds)
115: [02:11:00] <simon_w> I think I just grab the mongo db without first making it write to disk. Dammit :(
116: [02:16:00] * ooboo quit (Quit: Page closed)
117: [02:17:00] <Squandered> Heya folks
118: [02:17:00] * Squandered has joined #silverstripe
119: [02:19:00] <Squandered> Is anyone able to recommend any workshops around NZ/AU regarding PHP/Silverstripe development? Something that might only be a week or so long?
120: [02:20:00] <willr_> Squandered hasn't been one officially. I wonder with the CWP if SilverStripe will offer something in the future
121: [02:21:00] <simon_w> bah, damn case sensitive director rules
122: [02:24:00] <Squandered> I'm involved in the CWP and could use with a refresher in my development skills... I'm sure something will come along, but was hoping for a crash course headstart.
123: [02:29:00] <simon_w> Does natcoll/weltec still do that one week intro to PHP?
124: [02:33:00] <Squandered> I'm googling every term and keyword I can think off, but can't find much at all - will check out natcoll though
125: [02:34:00] <Squandered> YOOBEE*
126: [02:34:00] <Squandered> natcoll is now YOOVEE School of design it seems
127: [02:37:00] <irogue> yep
128: [02:48:00] * Squandered has left #silverstripe
129: [03:07:00] * azureKnight quit (Quit: azureKnight)
130: [03:11:00] * azureKnight has joined #silverstripe
131: [03:20:00] * cloph_away quit (Ping timeout: 246 seconds)
132: [03:24:00] * cloph_away has joined #silverstripe
133: [03:36:00] * DigNZ quit (Quit: DigNZ)
134: [03:38:00] <EasyCo> When you go $fields = parent::getCMSFields(), can you do something like $ields->getFieldByName('Title') so that you can than modify it's configuration?
135: [03:39:00] * DigNZ has joined #silverstripe
136: [03:39:00] * DigNZ has joined #silverstripe
137: [03:39:00] * DigNZ quit (Remote host closed the connection)
138: [03:42:00] <willr_> $fields->dataFieldByName('Name')
139: [03:42:00] <willr_> Yep EasyCo
140: [03:43:00] <EasyCo> willr_: Thanks I completely missed that in the api
141: [03:44:00] <EasyCo> From playing around it seems you can also just override the default implementation by by re-adding with addFieldToTab()
142: [03:45:00] <EasyCo> So for example, 'Title' will automatically have a field created but if I wanted to change some stuff I can explicitly do addFieldToTab('Title', ???) and it'll overwrite.
143: [03:47:00] <simon_w> EasyCo, if you mean addFieldToTab('Root.Main', new TextField('Title', ..., that'll error. Use replaceField('Title', new TextField...)
144: [03:49:00] * priithansen quit (Quit: priithansen)
145: [03:51:00] <EasyCo> simon_w: Does it error on a specific case cause it's no blowing up for me
146: [03:52:00] <EasyCo> simon_w: https://gist.github.com/trev/5351663
147: [03:55:00] <simon_w> EasyCo, that's because the scaffolder adds a has_one using NameID
148: [03:57:00] <EasyCo> Me no follow
149: [03:59:00] <Pyromanik> so you get two fields
150: [03:59:00] <Pyromanik> EasyCo, if you have a $db field Title, and a $has_one Title, they'll be fine in a form because the relation (should) be set with a name of TitleID
151: [03:59:00] <Pyromanik> "Title" and "TitleID"
152: [04:00:00] <Pyromanik> your code is different.
153: [04:00:00] <Pyromanik> what simon_w said.
154: [04:00:00] <Pyromanik> oh
155: [04:01:00] <Pyromanik> or something, I think he's trying to say.
156: [04:01:00] <Pyromanik> scaffolder will add field NameID, where as an upload field is set to handle relations by nature
157: [04:01:00] <Pyromanik> so a field of Name doesn't conflict and still works.
158: [04:01:00] <EasyCo> Haha
159: [04:02:00] <EasyCo> Ahhh, ok yah I get it now
160: [04:02:00] <Pyromanik> either way, adding a field "Title" then another field "Title" will cause an error
161: [04:02:00] <Pyromanik> 2 fields conflicting
162: [04:03:00] <EasyCo> I'll do it the replaceField way but it's good to know why it was working
163: [04:05:00] <irogue> "oh, i want to get to the other side of the city, but there might be traffic... I'LL TAKE A HELICOPTER"
164: [04:05:00] <irogue> do people *really* do this?
165: [04:05:00] <irogue> http://www.heletranz.co.nz/itm/index.html
166: [04:05:00] <irogue> just heard this advertised on the radio
167: [04:06:00] <ss23> Sounds like a good idea to me!
168: [04:06:00] <EasyCo> Nice
169: [04:08:00] <Pyromanik> Fuck'n helicopter ride man!
170: [04:08:00] <ss23> ^^^
171: [04:08:00] <irogue> or... y'know... you could take the free buses and trains!
172: [04:08:00] <EasyCo> Doesn't sound as fun
173: [04:08:00] <Pyromanik> who wouldn't?
174: [04:09:00] <ss23> FOR SHAME
175: [04:09:00] <ss23> Just seems like you get to combine going in a helicopter, which lots of people pay for anyway, with arriving in style/fast
176: [04:09:00] <irogue> yeah, but
177: [04:09:00] <ss23> irogue: HATER
178: [04:09:00] <ss23> HATER
179: [04:09:00] <irogue> $363 per person each way
180: [04:09:00] <ss23> WE ALL WANT THE HELICOPTER RIDE
181: [04:09:00] <ss23> Never said I would pay for it
182: [04:09:00] <ss23> :D
183: [04:10:00] <irogue> lol
184: [04:10:00] <irogue> "We invite you all to experience the V8 Supercars ITM 400 Auckland by air on the day, and take a thrilling Heli-Hot Lap around the Course for NZ$95.00 per person per trip."
185: [04:10:00] <irogue> thatd be more fun
186: [04:10:00] <Pyromanik> $363 for a 5m ride. lulz.
187: [04:10:00] <ss23> Must be patch tuesday!
188: [04:10:00] <Pyromanik> lol
189: [04:10:00] <irogue> I DID A LAP OF PUKEKOHE... IN A HELICOPTER
190: [04:11:00] <Pyromanik> *circle perimeter of grounds* lap done!
191: [04:11:00] <ss23> EasyCo: Not exactly...
192: [04:11:00] <ss23> EasyCo: They might result in the same thing, but if you have other attributes set, or thats not always going to be an UploadField, it can be differently
193: [04:11:00] * Pyromanik imagines
194: [04:11:00] <EasyCo> Given the previous example, am I right to say that these two lines are functionally equivalent: https://gist.github.com/trev/5351737
195: [04:12:00] <EasyCo> ss23: Ok yep, thanks, just confirming my understanding
196: [04:13:00] <Pyromanik> on any inner elem.
197: [04:13:00] <Pyromanik> you'd lose all other binds and such on the latter.
198: [04:13:00] <Pyromanik> EasyCo, yeh, kinda like $('#el').children().click(...) vs $('#el').html('<replication>').click(...)
199: [04:14:00] * Cam_ is now known as cam_b
200: [04:14:00] <EasyCo> Pyromanik: Rgr, thx.
201: [04:14:00] * Cam_ has joined #silverstripe
202: [04:17:00] * Error404NotFound has joined #silverstripe
203: [04:55:00] * maknz quit (Read error: Connection reset by peer)
204: [04:58:00] * Jeremy_ has joined #silverstripe
205: [04:58:00] * Jeremy_ is now known as clodeindustrie
206: [04:59:00] <clodeindustrie> how can I load a component in a dataobject?
207: [04:59:00] <clodeindustrie> I have an image part of a page I want to query the db for the pages and write json out but with the filename of the image associated
208: [04:59:00] * DigNZ quit (Quit: DigNZ)
209: [04:59:00] <clodeindustrie> hey there
210: [05:01:00] <clodeindustrie> I know I can use getComponent but I would like the result of getComponent a part of the dataobject so that I can easily convert whole thing to json
211: [05:02:00] * nickmolhoek quit (Quit: nickmolhoek)
212: [05:04:00] <simon_w> clodeindustrie, so you want to move from $obj->Image()->Filename to $obj->ImageFilename?
213: [05:05:00] <clodeindustrie> something like that or at least having the formatter take the filename in account when converting
214: [05:07:00] <simon_w> You're using JSONDataFormatter?
215: [05:08:00] * azureKnight quit (Quit: azureKnight)
216: [05:08:00] <clodeindustrie> yes
217: [05:08:00] * SightUnseen has joined #silverstripe
218: [05:09:00] * SightUnseen has left #silverstripe
219: [05:09:00] <simon_w> Add a getImageFilename that returns $this->Image()->Filename, and $formatter->setCustomAddFields(['ImageFilename'])
220: [05:09:00] * willr_ quit (Quit: willr_)
221: [05:10:00] <clodeindustrie> cool I didn't think of that
222: [05:10:00] <clodeindustrie> thank
223: [05:10:00] <clodeindustrie> s
224: [05:15:00] * Shrike_Finland has joined #silverstripe
225: [05:18:00] * Liquide quit ()
226: [05:20:00] * Pyromanik quit (Quit: Leaving)
227: [05:20:00] <Pyromanik> cool trick simon_w :)
228: [05:20:00] <EasyCo> How do you add a custom css file to an backend cms page?
229: [05:26:00] <simon_w> EasyCo, LeftAndMain::require_css('path')
230: [05:30:00] <EasyCo> What if you wanted to only be included for a specific class SomethingPage extends Page
231: [05:30:00] <EasyCo> I guess you could just chuck that in you _config.php
232: [05:30:00] * cam_b quit (Quit: Textual IRC Client: www.textualapp.com)
233: [05:32:00] <simon_w> That don't work
234: [05:34:00] <EasyCo> Cool, not really necessary anyways
235: [05:35:00] * mobiusnz has joined #silverstripe
236: [05:36:00] <mobiusnz> yay, new house has internets!
237: [05:45:00] <Bollig|DesignCty> how do I check in php whether the site is currently in draft mode? (2.4...)
238: [05:46:00] <simon_w> Versioned::current_stage() == 'Stage'
239: [05:47:00] <irogue> (i hope you're not my new neighbour...)
240: [05:47:00] <irogue> mobiusnz: yay, so does my house! after chorus managed to disconnect ours while connecting the new neighbours yesterday...
241: [05:48:00] <mobiusnz> so the install took several hours longer than it should've
242: [05:48:00] <mobiusnz> haha, don't think so, but chorus did manage to put the fibre into the wrong hole at the exchange
243: [05:48:00] <irogue> ah yep
244: [05:50:00] * DrCuriosity has joined #silverstripe
245: [05:50:00] <mobiusnz> but, I can't complain with the speed: http://www.speedtest.net/result/2635416266.png
246: [05:50:00] <EasyCo> You have that in CHCH!
247: [05:51:00] <mobiusnz> yep :)
248: [05:51:00] <EasyCo> I'm lucky if I get 13Mb here in OZ
249: [05:51:00] <EasyCo> 35Mb up! Is that a business line?
250: [05:52:00] <mobiusnz> nah, residential
251: [05:52:00] <mobiusnz> $110
252: [05:52:00] <EasyCo> How much does that cost a month?
253: [05:52:00] <EasyCo> Fark, I'd gladly pay that for those speeds.
254: [05:52:00] <EasyCo> And that's NZ, that's like $50AUD :p
255: [05:54:00] <mobiusnz> simon_w: http://www.speedtest.net/result/2635419137.png
256: [05:54:00] <mobiusnz> not quite as good
257: [05:54:00] <simon_w> mobiusnz, now do a test to somewhere out of NZ :p
258: [05:55:00] <EasyCo> Yah lets see L.A.
259: [05:55:00] <simon_w> And then LA
260: [05:55:00] <EasyCo> That's still pretty good!
261: [05:55:00] <mobiusnz> give me a min :P
262: [05:55:00] <simon_w> Eh, I don't have fibre and I get that :p
263: [05:56:00] <simon_w> Hit 98
264: [05:56:00] <EasyCo> Depending on age/signal degredation
265: [05:56:00] <simon_w> And faster nationally
266: [05:56:00] <EasyCo> Copper can handle up to 100Mb/s
267: [05:56:00] <mobiusnz> internationally?
268: [05:56:00] <simon_w> Yeah
269: [05:57:00] <irogue> poor little me on http://www.speedtest.net/result/2635424516.png
270: [05:58:00] <mobiusnz> my speeds to LA are all over the show
271: [05:59:00] <irogue> http://www.speedtest.net/result/2635427121.png
272: [05:59:00] <EasyCo> This'll make you feel better irogue: http://www.speedtest.net/result/2635427299.png
273: [05:59:00] <mobiusnz> oh well. I don't even pay for internet for half a year either, because I live in a magical place apparently
274: [06:00:00] <irogue> ADSL with no Annex M?
275: [06:00:00] <irogue> ouch
276: [06:01:00] <EasyCo> Correct. I guess it's what I get for living/working out of the city.
277: [06:01:00] <irogue> this is quite interesting: http://www.istart.co.nz/index/HM20/AL213/AR216089
278: [06:01:00] <irogue> yep
279: [06:02:00] <irogue> an ISP that operates in both AU and NZ, comparing the two countries' fibre networks
280: [06:03:00] <simon_w> They should add in the collation's plan too, though I guess it doesn't need to be made to look even more pathetic
281: [06:04:00] <irogue> heh
282: [06:04:00] <mobiusnz> heh
283: [06:04:00] <mobiusnz> I'm not on UFB weirdly
284: [06:04:00] <mobiusnz> I'm on a thing called BOF that no-one can really explain to me
285: [06:04:00] <EasyCo> We have an election coming up soon and the coalition's plan is to downgrade the plan from fiber to the premise to finer to to the node and then use the shitty ol' existing copper network.
286: [06:05:00] <irogue> BOF was the ISPs jumping the gun and making their own fibre networks before UFB was announced
287: [06:05:00] * DrCuriosity quit (Ping timeout: 264 seconds)
288: [06:05:00] <EasyCo> UFB sounds so much better then NBN too. I mean Ultra-Fast dude!
289: [06:05:00] <simon_w> Yeah, though far too political
290: [06:06:00] <irogue> Vector should've nailed that one
291: [06:06:00] <irogue> same with Auckland
292: [06:06:00] <simon_w> I read an article on the WCC site about its rollout. It's pathetic, even compared to pre-Weta CityLink
293: [06:06:00] <irogue> simon_w: i have no fucking idea
294: [06:06:00] <irogue> as part of the creation of UFB, ISPs doing BOF now have to make their networks available to competitors
295: [06:06:00] <simon_w> Seriously, how did Chorus get it in Wellington over the two (at least) existing networks?
296: [06:07:00] <irogue> city being Hamilton
297: [06:07:00] <irogue> at least UFF got it in Waikato, they already had like 25% of the whole city covered
298: [06:08:00] <irogue> @AklTransport: Southern, Western and Onehunga lines have been delayed up to 15 minutes due to an earlier trackside fire. We apologise for the disruption.
299: [06:08:00] <irogue> we didn't start the fire...
300: [06:12:00] <simon_w> Sure sure
301: [06:12:00] * hubertusanton has joined #silverstripe
302: [06:17:00] * EasyCo quit (Quit: EasyCo)
303: [06:17:00] * Jakx has joined #silverstripe
304: [06:17:00] <simon_w> Home time!
305: [06:18:00] <Jakx> how do I link a image file to an object on form submit, where that form has an uploadfield?
306: [06:18:00] <Jakx> yo
307: [06:20:00] <Jakx> the uploadfield that uploaded the image
308: [06:20:00] * DrCuriosity has joined #silverstripe
309: [06:28:00] <mobiusnz> is there an easy way to return the nice pretty 404 error page from a page_controller in SS3?
310: [06:29:00] <mobiusnz> Jakx: I think you just specify the uploadfield's field to be MyImageID
311: [06:31:00] <Jakx> mobiusnz, I gave that a shot. didn't work - does that seem right? as the uploadfield can upload many images
312: [06:32:00] <mobiusnz> nevermind about my question. return $this->httpError(404); does the trick ;)
313: [06:32:00] <mobiusnz> Jakx: I haven't worked with the uploadfield in SS3 if that's what you're using. Still learning it
314: [06:33:00] <Jakx> mobiusnz, ah yeah - using 3.1
315: [06:37:00] <mobiusnz> ask Zauberfisch, he wrote it ;)
316: [06:37:00] <Jakx> is Zauberfisch awake?
317: [06:38:00] <Jakx> his user atm is Zauberfisch|idle heh. so I'd so not
318: [06:40:00] <Jakx> great.
319: [06:40:00] <Jakx> At this moment the UploadField not yet fully supports being used on a frontend form.
320: [06:43:00] * Jakx has left #silverstripe
321: [06:48:00] * mobiusnz quit (Quit: Leaving.)
322: [06:58:00] * clodeindustrie quit (Quit: Textual IRC Client: www.textualapp.com)
323: [06:58:00] * DrCuriosity quit (Ping timeout: 245 seconds)
324: [07:01:00] * mobiusnz has joined #silverstripe
325: [07:12:00] * zfmf has joined #silverstripe
326: [07:19:00] * mobiusnz1 has joined #silverstripe
327: [07:20:00] * mobiusnz quit (Ping timeout: 252 seconds)
328: [07:35:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6210527
329: [07:35:00] * travis-ci has left #silverstripe
330: [07:35:00] * ARNHOE has joined #silverstripe
331: [07:35:00] * travis-ci has joined #silverstripe
332: [07:35:00] <travis-ci> [travis-ci] silverstripe/sapphire#1968 (3.1 - ba67d4c : Will Rossiter): The build passed.
333: [07:35:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/97b1f8616fbc...ba67d4c5cd42
334: [07:36:00] * mobiusnz1 is now known as mobiusnz
335: [07:38:00] <ARNHOE> simon_w: Is it possible you could merge this one? https://github.com/silverstripe/silverstripe-cms/pull/308 feels like its being snowed under.
336: [07:45:00] * gordon_ has joined #silverstripe
337: [07:46:00] <simon_w|air> ARNHOE, two Tree.EditPage values
338: [07:46:00] * gordon_ is now known as elgrodo
339: [07:46:00] * lx-berlin has joined #silverstripe
340: [07:47:00] * DesignerX has joined #silverstripe
341: [07:47:00] <ARNHOE> I see!
342: [07:47:00] <simon_w|air> Uh, you didn't have to close it :p
343: [07:47:00] <simon_w|air> Just edit the file, git commit -a -amend, git push --force
344: [07:48:00] <simon_w|air> Oh, can't do it through the website
345: [07:48:00] <ARNHOE> can I do that?
346: [07:48:00] <ARNHOE> I am doing it through github.com
347: [07:51:00] <ARNHOE> also, simon_w|air inconsequent in the language files atleast when I compare nl.yml to en.yml. Where and how should I note and can I help by fixing that?
348: [07:52:00] <ARNHOE> or well, mabye not no no
349: [07:52:00] <simon_w|air> getlocalization.com
350: [07:52:00] <simon_w|air> http://doc.silverstripe.org/framework/en/trunk/misc/contributing/translation
351: [07:52:00] <ARNHOE> no no
352: [07:52:00] <DesignerX> Hi guys.. trying to get & sort children pages in php but I get an error :$getChildrenPages = $this->Children(); $getChildrenPages->sort("Sort"); [User Error] Uncaught InvalidArgumentException: You can't pass SQL fragments to sort()
353: [07:53:00] * kinglozzer has joined #silverstripe
354: [07:53:00] <ARNHOE> but I mean, for example in en.yml. Boolean has YES and NO, but in nl.yml its 0 and 1. Which means the ->nice casting doesn't translate
355: [07:53:00] <ARNHOE> same for checkboxfield, it has "-", while en.yml has YES and NO
356: [07:54:00] <ARNHOE> https://github.com/silverstripe/silverstripe-cms/pull/679
357: [07:54:00] <simon_w|air> DesignerX, that should only happen if you've got a space in the string you're passing to sort()
358: [07:55:00] <ARNHOE> simon_w|air: Please compare, https://github.com/silverstripe/sapphire/blob/3.1/lang/en.yml & https://github.com/silverstripe/sapphire/blob/3.1/lang/en.yml. Line 61 and Line 81
359: [07:55:00] <DesignerX> simon_w: I double checked, I have one word with no spaces !
360: [07:56:00] <simon_w|air> DesignerX, which version?
361: [07:56:00] <simon_w|air> ARNHOE, are the same file? :p
362: [07:56:00] <ARNHOE> haha, damnnnnnn
363: [07:57:00] <ARNHOE> https://github.com/silverstripe/sapphire/blob/3.1/lang/nl.yml
364: [07:57:00] <DesignerX> simon_w: this souble be 3.0.1 , ... I may need to upgrade then .. :( .
365: [07:58:00] <simon_w|air> ARNHOE, bug Ingo when he gets online :p
366: [07:59:00] <kinglozzer> If want to use SilverStripe's built in Image methods (crop, resize etc) but on an image from an external source, what's the best way to do it? Cropped/resized versions to be stored locally, originals kept externally
367: [07:59:00] * zfmf quit (Ping timeout: 252 seconds)
368: [07:59:00] * mobiusnz1 has joined #silverstripe
369: [07:59:00] <ARNHOE> will do that, because its actually annoying :D
370: [08:00:00] * mobiusnz quit (Read error: Connection reset by peer)
371: [08:01:00] <simon_w|air> kinglozzer, subclass, overriding generateFormattedImage() (and maybe cacheFilename())
372: [08:06:00] <kinglozzer> simon_w|air: Awesome, thanks. I'd be provided with a URL to the image, how would I create an instance of Image from that? Presumably can't pass the URL to __construct()
373: [08:06:00] * perverse quit (Read error: Connection reset by peer)
374: [08:07:00] * popeshoe has joined #silverstripe
375: [08:09:00] * travis-ci has joined #silverstripe
376: [08:09:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#335 (3.1 - a15081f : Simon Welsh): The build passed.
377: [08:09:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/a43fac3ecfc8...a15081fbcc8c
378: [08:09:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/6211041
379: [08:09:00] * travis-ci has left #silverstripe
380: [08:09:00] * zfmf has joined #silverstripe
381: [08:09:00] * Silverstriper has joined #silverstripe
382: [08:12:00] <lx-berlin> *CN (not CH)
383: [08:12:00] <lx-berlin> hi all, our customer just told us that his SS3 website is very slow when you access it from china. So his question is, if its possible to "mirror" the website on a CH server. Any thoughts ?
384: [08:14:00] * Kolin has joined #silverstripe
385: [08:19:00] <simon_w|air> Well, mirroring is easy. The hard bit (from what I understand) is actually getting it hosted in china
386: [08:20:00] <lx-berlin> mirroring is easy ? If you login as an administrator to make some changes, you have to do it always on one server ? with the other mysql running as a slave ?
387: [08:21:00] <lx-berlin> what about assets/ ? would you rsync them ?
388: [08:21:00] <simon_w|air> You can set them both up as masters fine, just need to change the auto increment amount from one to two
389: [08:22:00] * guci0 has joined #silverstripe
390: [08:22:00] * waveydave has joined #silverstripe
391: [08:22:00] <simon_w|air> That's one option
392: [08:22:00] <lx-berlin> i am no expert in db, but from what i have heard, master/master replication is always a problem
393: [08:23:00] <lx-berlin> what about static publishing? wouldnt that be the best option ?
394: [08:23:00] <guci0> Hello Moto!
395: [08:23:00] <lx-berlin> +rsync
396: [08:24:00] <lx-berlin> and the admin has to login always on the same server ?
397: [08:25:00] <simon_w|air> Especially if the RsyncStaticPublisher still works
398: [08:25:00] <simon_w|air> Well, that's the most straightforward
399: [08:25:00] <svandragt> lx-berlin: you could try cloudflare (http://www.cloudflare.com/) never used it personally
400: [08:26:00] <kinglozzer> simon_w|air: To create an instance of my new Image class from the URL, would I need to override __construct() to accept a URL?
401: [08:26:00] <lx-berlin> RsyncStaticPublisher?
402: [08:26:00] <simon_w|air> lx-berlin, it's part of the static publisher module
403: [08:26:00] <simon_w|air> kinglozzer, don't override __construct, you'll do it wrong
404: [08:26:00] <lx-berlin> simon_w|air: is this a module ?
405: [08:27:00] * rista has joined #silverstripe
406: [08:27:00] <simon_w|air> kinglozzer, just have a field that you set that stores the URL
407: [08:28:00] <simon_w|air> yup
408: [08:28:00] <kinglozzer> simon_w|air: Then use $this->ImageURL instead of $this->Filename in my overridden generateFormattedImage() etc?
409: [08:29:00] <simon_w|air> May have to override exists() too
410: [08:29:00] <kinglozzer> Okay cool, enough of a budget for plenty of tinker time anyway. Thanks for your help
411: [08:30:00] <lx-berlin> thanks simon_w|air, svandragt
412: [08:30:00] <rista> Hello guys. I am making the SearchContext for Members for the frontend, and I would like to create a query that would have connective OR instead of AND, but I am getting the error: "SearchContext connective 'OR' not supported after ORM-rewrite." Is there any other solution for the search of the DataObjects?
413: [08:33:00] <simon_w|air> rista, if you're on 3.1, you could patch SearchContext::getQuery() to apply the filters to a disjunctive subgroup of the DataQuery when the connective's OR
414: [08:34:00] <simon_w|air> Otherwise, you get to write your own getting thing using either filterAny() (3.1) or where() (3.0, making sure to escape things)
415: [08:35:00] <rista> Thank you simon_w, will make my own.
416: [08:45:00] * Silverstriper quit (Ping timeout: 245 seconds)
417: [08:52:00] <svandragt> What's the difference between DataList::create($class) and new DataList($class) ?
418: [08:52:00] * LoveDuckie has joined #silverstripe
419: [08:52:00] <svandragt> I see both used
420: [08:54:00] * gelignite has joined #silverstripe
421: [08:57:00] <simon_w|air> Though all the cool kids are just using $class::get()
422: [08:57:00] <simon_w|air> the former allows chaining in 5.3
423: [09:01:00] * Kolin quit (Quit: leaving)
424: [09:01:00] * Kolin has joined #silverstripe
425: [09:02:00] * Kolin quit (Client Quit)
426: [09:02:00] <kinglozzer> Hmm, which HTTP status code would you return from an API if no results were found for a search? 404?
427: [09:02:00] * Kolin has joined #silverstripe
428: [09:02:00] * zfmf quit (Ping timeout: 252 seconds)
429: [09:02:00] * Kolin quit (Client Quit)
430: [09:05:00] <simon_w|air> 200
431: [09:07:00] <kinglozzer> Just 200 and a suitable message in the response? Just looking at examples like Twitter, Disqus etc that use HTTP error codes as 'fallbacks'
432: [09:07:00] <simon_w|air> Saying one did is silly
433: [09:07:00] <simon_w|air> Yeah, an error didn't happen
434: [09:07:00] * zfmf has joined #silverstripe
435: [09:08:00] * zfmf has left #silverstripe
436: [09:09:00] * zfmf has joined #silverstripe
437: [09:10:00] * waveydave quit (Read error: Connection reset by peer)
438: [09:17:00] <kinglozzer> simon_w|air: Fair point. If the API writes something to a database, would a 201 response be appropriate on success or 200?
439: [09:21:00] * Kolin has joined #silverstripe
440: [09:23:00] * simon__w|air has joined #silverstripe
441: [09:23:00] * ivoba has joined #silverstripe
442: [09:23:00] * simon_w|air quit (Read error: Connection reset by peer)
443: [09:43:00] <rista> One more from me. Is there any option to user OR when building DataQuery instead of AND ?
444: [09:46:00] <rista> using whereAny still return AND
445: [09:47:00] <ss23> I hate cpanel so mcuh
446: [09:51:00] * simon__w|air is now known as simon_w|air
447: [09:52:00] <simon_w|air> rista, pass in an array instead of calling it multiple times
448: [09:55:00] <ss23> Password protect a directory with cpanel? Time for a 500 error.
449: [09:56:00] <rista> Thank you Simon, it works now.
450: [10:03:00] * Shrike_Finland quit (Quit: Leaving.)
451: [10:04:00] * wmk has joined #silverstripe
452: [10:09:00] * Zauberfisch has joined #silverstripe
453: [10:12:00] * mobiusnz1 quit (Quit: Leaving.)
454: [10:14:00] * Mento has joined #silverstripe
455: [10:14:00] * simon_w|air quit (Read error: Connection reset by peer)
456: [10:15:00] * simon_w|air has joined #silverstripe
457: [10:16:00] * feejin has joined #silverstripe
458: [10:17:00] <feejin> Any idea why when I try to create a 403 page in the CMS it just creates an empty file in assets?
459: [10:23:00] <svandragt> feejin: anything in the server log?
460: [10:24:00] <ss23> Any issues with installing with extensions off and magic quotes on, then turning off later? As in, I'm just going to set up the site now, not release to production yet. Can we fix the botched config alter and silverstripe will be fine? Doesn't do anything different on an install with those things?
461: [10:27:00] <feejin> svandragt Nothing. Though it's not creating any 403's either which I think it should be doing to test the page. Could be something in my local setup.
462: [10:27:00] * PigeonFriend quit ()
463: [10:28:00] <feejin> ss23 I fixed the config after install before doing any work on it, was just messing about though
464: [10:28:00] <ss23> Sweet, feejin. Thanks
465: [10:28:00] <ss23> Figured it would be okay, wanted to check
466: [10:28:00] <feejin> ss23: I've done that before, it seemed to work ok
467: [10:29:00] <svandragt> feejin: you're not the first one: http://logs.simon.geek.nz/index.php?date=2012-01-11#7_19
468: [10:29:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
469: [10:32:00] <feejin> Hmm, glad it's not just me. I don't really need the 403 page, was tinkering. But I bet I'll need one now it doesn't work for me.
470: [10:34:00] <kinglozzer> I'm sure it's to do with how SilverStripe saves error pages. It calls Director::test(), which returns an SS_HTTPResponse object - for 404, 500 etc it includes a body, but for 403 the body is empty
471: [10:36:00] * simon_w|air quit (Quit: Leaving)
472: [10:45:00] * Mento quit ()
473: [10:47:00] * Pyromanik__ has joined #silverstripe
474: [10:48:00] <Pyromanik__> simon_w: still here?
475: [10:49:00] * hubertusanton quit (Quit: hubertusanton)
476: [10:49:00] <Pyromanik__> anyone know why $LoginForm in template submits to page/login instead of Security/login?
477: [10:52:00] * chillu has joined #silverstripe
478: [10:53:00] <Pyromanik__> :<
479: [10:54:00] * hubertusanton has joined #silverstripe
480: [10:55:00] <ss23> Pyromanik__: :<
481: [10:56:00] <ss23> Pyromanik__: ;)
482: [10:56:00] <ss23> I would help if I could
483: [10:56:00] <Pyromanik__> no one is here to help
484: [10:56:00] <ss23> :<
485: [10:56:00] <Pyromanik__> :/
486: [10:56:00] <Pyromanik__> ss23: :S
487: [10:57:00] <Pyromanik__> but you can't, so you won't!
488: [10:57:00] <ss23> :<
489: [10:59:00] <Pyromanik__> it's $LoginForm
490: [10:59:00] <Pyromanik__> Zauberfisch: I don't think so
491: [10:59:00] <Zauberfisch> Pyromanik__ you have custom link methods somewhere that could cause this?
492: [10:59:00] <Pyromanik__> on a page that doesn't have any of these
493: [10:59:00] <Pyromanik__> from template
494: [11:02:00] <Pyromanik__> (nor inherits them)
495: [11:08:00] <Pyromanik__> kinglozzer: nope
496: [11:08:00] <kinglozzer> Not sure how to solve it, though
497: [11:08:00] <kinglozzer> Pyromanik__ My guess would be that the LoginForm action redirects to $this->Link('login');
498: [11:08:00] <Pyromanik__> form*
499: [11:08:00] <Pyromanik__> no such action LoginFrom
500: [11:08:00] <Pyromanik__> it's on submit
501: [11:09:00] <ARNHOE> chillu there is a inconsequence in the language files atleast when I compare nl.yml to en.yml. And not for the strings that need to be translated, but actually the holder of the translation
502: [11:09:00] <kinglozzer> Pyromanik__: Yeah sorry I meant the form action on LoginForm: https://github.com/silverstripe/sapphire/blob/3.0/security/MemberLoginForm.php#L145
503: [11:09:00] <ARNHOE> chillu: Please compare, https://github.com/silverstripe/sapphire/blob/3.1/lang/nl.yml & https://github.com/silverstripe/sapphire/blob/3.1/lang/en.yml. Line 61 and Line 81
504: [11:10:00] <kinglozzer> Pyromanik__: Perhaps you could use Session::set('BadLoginURL', 'Security/login'); ?
505: [11:12:00] <Pyromanik__> kinglozzer: but it never gets to that stage
506: [11:14:00] <Pyromanik__> the code is awfully convoluted
507: [11:14:00] <Pyromanik__> I see what you mean though
508: [11:14:00] <Pyromanik__> Pretty sure this normally just works by default
509: [11:15:00] <Pyromanik__> I thought I'd used this hundreds of times without fail.
510: [11:16:00] <chillu> ARNHOE: Hmm, that's strange - I can't see those Boolean's in the getlocalization list.
511: [11:17:00] <ss23> So, let me double check. chillu: is magic_quotes a supported configuration? As in, should bugs specific to having magic quotes on be reported?
512: [11:17:00] <chillu> In http://www.getlocalization.com/sapphire/m_translate/5142/
513: [11:17:00] <ARNHOE> chillu: But on the CheckboxField thats even more weird, it doesn't even have a holder. Its just - ?
514: [11:17:00] <Pyromanik__> ss23: yes
515: [11:17:00] * hubertusanton quit (Quit: hubertusanton)
516: [11:17:00] <ss23> Okay
517: [11:17:00] <chillu> ss23 Don't know
518: [11:17:00] <Pyromanik__> ss installer outright says magic quotes off.
519: [11:17:00] <ss23> Pyromanik__: What?
520: [11:17:00] <Pyromanik__> they're deprecated anyway
521: [11:17:00] <ss23> Did you mean "no"?
522: [11:18:00] <ss23> chillu: Who does?
523: [11:18:00] <ss23> :<
524: [11:18:00] <Pyromanik__> ss23: you asked "Should bugs be reported", yes.
525: [11:18:00] <chillu> ARNHOE: Do you see those "Nee" and "Ja" translations somewhere on getlocaliztion.com?
526: [11:20:00] <ss23> Pyromanik__: plz fix
527: [11:20:00] <ss23> Pyromanik__: https://github.com/silverstripe/sapphire/issues/1748
528: [11:21:00] <ss23> I went out of my way to double check
529: [11:21:00] <ss23> I even double checked...
530: [11:21:00] <Pyromanik__> SHIT TO DO, NO TIME TO DO IT IN
531: [11:21:00] <Pyromanik__> tired, not concentrating
532: [11:21:00] <ss23> Pyromanik__: ... You meant NO?
533: [11:21:00] <Pyromanik__> ss23: ah well yeah. I meant no I guess.
534: [11:22:00] <Pyromanik__> magic quotes on is a good way to fuck any php system except vbulletin.
535: [11:22:00] <ss23> Believe me, I want it off, I'm just working while I wait to get it fixed
536: [11:22:00] <Pyromanik__> just don't.
537: [11:22:00] <Pyromanik__> well yeah.
538: [11:22:00] <Pyromanik__> but if you've ever looked at vbulletin's code...
539: [11:23:00] <ARNHOE> chillu: Nope I do not
540: [11:28:00] * SightUnseen has left #silverstripe
541: [11:28:00] * SightUnseen has joined #silverstripe
542: [11:30:00] * hubertusanton has joined #silverstripe
543: [11:30:00] <ss23> :D
544: [11:30:00] <ss23> Someone call the police: An angry nerd! He might hack our facebook!
545: [11:30:00] * Pyromanik__ goes super buzerker with rage
546: [11:31:00] <Pyromanik__> ss23: make a ticket
547: [11:31:00] <Pyromanik__> make another
548: [11:31:00] <Pyromanik__> what's the point in a global template var that renders a useless form because it can't be used from a global scope :<
549: [11:31:00] <ss23> Pyromanik__: Just to mess with you, that's what.
550: [11:31:00] <Pyromanik__> indeed
551: [11:31:00] <Pyromanik__> Pretty sure it worked in 2.4
552: [11:31:00] <Pyromanik__> do it
553: [11:31:00] <ss23> lol
554: [11:31:00] <ss23> I just made one!
555: [11:31:00] <ss23> Write a test case so that it never happens again, Pyromanik__!
556: [11:31:00] <ARNHOE> How can I get the i18nTextCollectorTask to add more then just the en.yml? Also it doesn't seem to read my DataObjects, only the ModelAdmin
557: [11:32:00] <Pyromanik__> I needed to write a test for.... oh yeah, template include scope stack reset
558: [11:32:00] <ss23> Pyromanik__: Ill make one, when you've closed more bug tickets than me ;)
559: [11:32:00] <Pyromanik__> ss23: but it will always fail
560: [11:32:00] <Pyromanik__> oh yeah
561: [11:32:00] <Pyromanik__> ss23: but I have.
562: [11:33:00] <Pyromanik__> whatever.
563: [11:33:00] <Pyromanik__> yeah fine I lied.
564: [11:33:00] <ss23> lol
565: [11:34:00] <ss23> I even patched a few myself
566: [11:34:00] <ss23> So have I!
567: [11:34:00] <ss23> Pyromanik__: Might be time for bed for you
568: [11:34:00] <Pyromanik__> at least I've closed tickets.
569: [11:34:00] * Pyromanik__ cries
570: [11:34:00] <Pyromanik__> $LoginForm used to work in 2.4 I'm sure.
571: [11:35:00] <ss23> Xd
572: [11:35:00] <Pyromanik__> why must FrozenFire be right!?
573: [11:35:00] * ss23 gives a Pyromanik__ so he can get ready for bed
574: [11:37:00] <Pyromanik__> wut
575: [11:37:00] <Pyromanik__> the method 'loginform' does not exist on 'Security'
576: [11:39:00] <Pyromanik__> FAN F'N TASTIC
577: [11:39:00] <ss23> Pyromanik__: Something the sex your mother had wasn't
578: [11:39:00] <ss23> OHHHHHHHHHHHHHHHH
579: [11:39:00] <ss23> OHHHHHHHHHHHHHHHHHH
580: [11:39:00] <ss23> HEYOOOOO
581: [11:39:00] <Pyromanik__> ss23: y u treat her so bad then?
582: [11:39:00] <ss23> Pyromanik__: She likes it when we roleplay <3
583: [11:39:00] <Pyromanik__> you should get better at sex.
584: [11:39:00] <ss23> :<
585: [11:39:00] <chillu> ARNHOE: My best guess is that "yes" and "no" are ignored by GL, which would suck. It *does* allow similarly small words like "of" though. You can try to contact them about it? Alternatively, wanna rewrite all usage of "yes" and "no" to http://framework.zend.com/manual/1.12/en/zend.locale.functions.html#zend.locale.getquestion ?
586: [11:39:00] <Pyromanik__> Oh it's protected.
587: [11:40:00] <Pyromanik__> ps, that's not my mother.
588: [11:40:00] <ss23> Sorry, sister
589: [11:40:00] <ss23> lol
590: [11:40:00] <Pyromanik__> gawd, sicko
591: [11:43:00] <lewellyn> someone said sex.
592: [11:43:00] <lewellyn> i pride myself on efficiency, not speed ;)
593: [11:43:00] <ss23> ;)
594: [11:43:00] <ss23> that was quick
595: [11:43:00] <ss23> lol
596: [11:43:00] <lewellyn> i am now here.
597: [11:45:00] <Pyromanik__> ss23: my dog is not my sister.
598: [11:45:00] <Pyromanik__> oh ho ho
599: [11:46:00] <ss23> Pyromanik__: Thats really offensive to your sister. Just because she looks like that doesn't mean she's not related. Besides, a hole's a hole.
600: [11:47:00] <ss23> chillu: So, if I open a new ticket for "Remove magic quotes support", it'll be accepted or what?
601: [11:47:00] <Pyromanik__> ss "any hole's a goal" 23.
602: [11:48:00] <ss23> I gotta go out and buy milk :<
603: [11:48:00] <ss23> lol Pyromanik__
604: [11:48:00] <Pyromanik__> what a monkier.
605: [11:48:00] <ss23> I should've done it earlier but I was lazy
606: [11:48:00] <ss23> I'm not a monkey!
607: [11:49:00] <ss23> Pyromanik__ hacked it :O
608: [11:49:00] <Pyromanik__> haha, I defeat you silly login form!
609: [11:50:00] <Pyromanik__> public function LoginForm() { return MemberAuthenticator::get_login_form(new Security); }
610: [11:50:00] <ss23> lol
611: [11:50:00] <Pyromanik__> ss23: you betcha.
612: [12:03:00] * Pyromanik__ has left #silverstripe
613: [12:03:00] * UndefinedOffset has joined #silverstripe
614: [12:03:00] <Pyromanik__> right, bed.
615: [12:04:00] * rista quit (Ping timeout: 245 seconds)
616: [12:06:00] * Error404NotFound quit (Read error: Connection reset by peer)
617: [12:08:00] * Error404NotFound has joined #silverstripe
618: [12:13:00] * priithansen has joined #silverstripe
619: [12:13:00] <chillu> Pull request please, no ticket beforehand
620: [12:13:00] <chillu> ss23 - yes, I think so. Please reference this here in the commit message: http://www.php.net/manual/en/security.magicquotes.whynot.php
621: [12:13:00] <ss23> chillu: Sweet. I'll create a ticket for now so I don't forget, should hopefully get to it tomorrow
622: [12:14:00] <chillu> If you need a reminder, use your own ways of handling todos ;) 
623: [12:14:00] <ss23> chillu: That's not a reason :P
624: [12:14:00] <ss23> lol
625: [12:14:00] <ss23> Why not?
626: [12:14:00] * lewellyn hands ss23 a bike shed.
627: [12:14:00] <lewellyn> it needs painting :)
628: [12:14:00] * ss23 dies
629: [12:17:00] <ss23> chillu: But really, isn't that waht the bug tracker is for? If something comes up and I can't do it, someone else can see that a bug exists and finish it?
630: [12:18:00] <chillu> That's true for important stuff, not for "wouldn't it be cleaner if ???" stuff like this. Otherwise the bugtracker will grow into a long, irrelevant list of unactions, good ideas.
631: [12:19:00] <ss23> Isn't that what priority filters are for?
632: [12:21:00] <chillu> Yes, in that case the priority filter is "not important enough for a ticket, just pull request" ;)
633: [12:22:00] <chillu> Because if this "hopefully tomorrow" turns into "maybe next month", its yet another ticket that won't be actioned - and we have too many of those already
634: [12:22:00] <ss23> lol
635: [12:22:00] <ss23> I don't really see the issues with wishlist items being on a bug tracker
636: [12:23:00] <ss23> Personally, I feel like thats a bad move. Creates a lot more confusion for people who find things they want fixed and no bugs, not a list of wishlist things anymore, but rather "Oh someone once said they wanted this done", meaning you have to go and talk to peopel for features to implmenet if you want etc
637: [12:23:00] <chillu> That's not meant personal or anything, but we'll take a tougher stance on accepting tickets into the bugtracker going forward - which I'm sure you'll appreciate given you already closed so many outdated ones in the old tracker (thanks again for that!)
638: [12:24:00] <ss23> Seems lame
639: [12:24:00] <ss23> Lots of small leaks can sink a great ship ;)
640: [12:24:00] <ss23> lol
641: [12:24:00] <chillu> Oh really? I've got about 200 of them that you can fix then. Once that's done, you can start filing new ones ;)
642: [12:24:00] <ss23> and bad
643: [12:24:00] <ss23> idk
644: [12:25:00] <chillu> The mailinglist is the place to discuss enhancements, and gain supporters and devs willing to implement it. And there's nothing stopping you from keeping a list somewhere else, that might even be collaboratively edited
645: [12:25:00] <chillu> And lots of good ideas can sink a bugtracker
646: [12:25:00] <ss23> I disagree there
647: [12:25:00] <ss23> If a bug tracker can't handle wishlists, it's a horrible bug tracker
648: [12:26:00] <lewellyn> we're talking about github issues, correct? :/
649: [12:26:00] <chillu> http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html#what-about-feature-requests
650: [12:26:00] <ss23> And it's true, there could be an alternative list, but that seems silly since there already is one that exists
651: [12:26:00] <ss23> chillu: Just because other peopel do it doesn't mean Silverstripe has to
652: [12:27:00] <lewellyn> ime, github issues quickly becomes a lot of pain if not carefully tended.
653: [12:27:00] <chillu> Its a matter of ownership. I don't want to own a large wish list, with the devs creating those mostly unwilling to action those wishes.
654: [12:27:00] <ss23> chillu: If a bug is on github, do you own it?
655: [12:28:00] <ss23> lewellyn: I kind of agree, but I think that's a reason not to use github issues, not a reason to maintain a seperate bug tracker or stop filing bugs
656: [12:28:00] <ss23> *shrug*
657: [12:28:00] <ss23> I won't create one, I just felt like voicing my opinion on the matter, given how silly it seems
658: [12:28:00] <lewellyn> ss23: note that chillu didn't nix "a separate bug tracker for wishlist items"
659: [12:28:00] <ss23> lewellyn: nix?
660: [12:28:00] <lewellyn> "say no to"
661: [12:28:00] <chillu> Bugs (unless they affect a really small group only) are for the bugtracker. "remove GPC support" isn't a bug, hence my arguments
662: [12:28:00] <chillu> "remove GPC stripping", not "support"
663: [12:29:00] <ss23> I guess thats a difference in where we stand. Bugs for me include feature enhancmenets, hence the "Feature request" catergorsation on github issues etc etc
664: [12:29:00] <ss23> lewellyn: I never said no to it either, I just think it's silly
665: [12:30:00] <ss23> hence ^
666: [12:30:00] <lewellyn> having dealt with github issues on a number of projects, i don't think it's silly at all.
667: [12:30:00] <ss23> 00:28:57 < ss23> lewellyn: I kind of agree, but I think that's a reason not to use github issues, not a reason to maintain a seperate bug tracker or stop filing bugs
668: [12:30:00] <lewellyn> i've ended up not even submitting PRs for many things because of the mindset which follows from "dump it all into the bug tracker on github"
669: [12:30:00] <chillu> There's feature requests in the tracker which are *five years* old. I don't really see the point of having them there. There's always a million things you *could* do in any piece of software. Unless it has an owner who commits to fixing it in a reasonable timeframe, it doesnt belong in a *bug* tracker
670: [12:31:00] <lewellyn> i.e. you go to scratch your own itch and everyone finds similar itches they want you to piggyback onto your fix.
671: [12:31:00] <lewellyn> and part of that's so they don't have 3000 open issues
672: [12:32:00] <ss23> chillu: And I think of the bug tracker as more than "We plan to fix this in a reasonable time frame". For me, it also serves as a place to record bugs/features and provide discussion around them. For new people trying to enter a project, it's hard to know whats going on with certain thigns without it. "Oh we haven't reported any bug, we just all know about it in our heads" is a horrible thing for someoen new to have to expierence, and not filing seems to
673: [12:32:00] <lewellyn> my opinion is that it's better to not end up with your bug tracker being unmanageable in the first place.
674: [12:32:00] <ss23> Much more unmaintable than a bug tracker
675: [12:32:00] <ss23> Having a topic in the mailing list for every bug is *also* unmaintable
676: [12:32:00] <lewellyn> ss23: discussion is for mailing lists tbh
677: [12:32:00] <chillu> Not heads, mailinglist
678: [12:32:00] <chillu> Yep, important stuff will keep resurfacing enough times that somebody finds it important enough to send a pull request. And larger stuff like "revamp form validation" isnt actionable, see GTD thinking
679: [12:33:00] * ivoba quit (Quit: Leaving)
680: [12:33:00] <lewellyn> unless someone commits to actually doing something about it, it's really just discussion.
681: [12:33:00] <chillu> I disagree. Anyway, I have to get back to ??? fixing bugs in SS :D
682: [12:33:00] <lewellyn> discussion != bug
683: [12:33:00] <lewellyn> ss23: the thing is that it doesn't matter WHERE the conversation happens. you either have it lost on a mailing list or on github. there's no winning.
684: [12:33:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
685: [12:33:00] <ss23> Have fun, chillu
686: [12:33:00] <ss23> Maybe we should use the mailing list instead of github issues ;)
687: [12:34:00] <lewellyn> i just don't think that a project using github issues is well-suited to having the kitchen sink there.
688: [12:34:00] <lewellyn> ss23: i don't disagree with you. :)
689: [12:34:00] <ss23> lewellyn: I disagree, as I already said and explained why
690: [12:35:00] <lewellyn> (i also don't think highly in general of github, so saying "then people shouldn't use github issues" is preaching to the choir.)
691: [12:50:00] * Kolin quit (Ping timeout: 252 seconds)
692: [12:51:00] * Kolin has joined #silverstripe
693: [12:53:00] * lx-berlin has left #silverstripe
694: [12:58:00] <guci0> Whatta day :)
695: [13:06:00] <ARNHOE> chillu: Alternatively, wanna rewrite all usage of "yes" and "no" to http://framework.zend.com/manual/1.12/en/zend.locale.functions.html#zend.locale.getquestion ? But I don't understand, in en.yml YES and NO are showing but in nl.yml they are 0,1. Would using the zend link fix that?
696: [13:07:00] <chillu> Its a cop-out for investigating the GL problem really, but I don't even know where to start on that one, since GL is such a blackbox in many regards
697: [13:07:00] <chillu> Zend would mean we don't have to use the YML translations for that, since we already have translations for about 50 languages on those two strings from the Zend/CLDR XML files that ship with SS
698: [13:07:00] <ARNHOE> I dont think I am the right person to be doing this, I don't really understand it
699: [13:09:00] <chillu> Then file a bug - we should have those strings translatable one way or another
700: [13:14:00] <ARNHOE> I did that chillu and quoted your irc message and to addition to that, I am using the i18nTextCollectorTask but how could I make it create more languages then just the en.yml and what could be the problem with it doesn't read my dataobjects only the modeladmin menutitle ?
701: [13:15:00] <ARNHOE> it should read them right?
702: [13:15:00] <chillu> text collector is designed to just write en.yml
703: [13:15:00] <chillu> not sure about dataobjects
704: [13:17:00] * osterlaus has joined #silverstripe
705: [13:18:00] <feejin> If I were to run two sites from one SS3 install, changing the database + theme based on domain, would I hit cache issues? e.g. Site 2 would get served up Page.ss from Site 1 because it's been cached?
706: [13:20:00] <ARNHOE> chillu: Turns out that it needs to be in the folder, code
707: [13:23:00] * guci0 quit (Ping timeout: 245 seconds)
708: [13:29:00] * knapsack has joined #silverstripe
709: [13:36:00] <knapsack> A client of us wants to see thumbnails of images in the uploadField 'from files'-dialog. Is there a default Silverstripe way of accomplish that?
710: [13:39:00] <knapsack> btw the project is build in SS3.03
711: [13:46:00] * DrCuriosity has joined #silverstripe
712: [13:47:00] * normann has joined #silverstripe
713: [13:48:00] * normann has left #silverstripe
714: [13:55:00] * DrCuriosity quit (Ping timeout: 264 seconds)
715: [13:56:00] <knapsack> how is it possible to search in uploadfields 'from files'?
716: [13:57:00] <knapsack> it looks like it's broken in v3.0.3. anybody?
717: [14:01:00] <knapsack> is this irc alive or am I at the wrong place here?
718: [14:05:00] <ss23> It's alive, just a lot of the SS people are in NZ, and it's 2am there, knapsack
719: [14:07:00] * hubertusanton quit (Quit: hubertusanton)
720: [14:09:00] <ss23> knapsack: If you wait a while, someone might be able to help though. There are other people here
721: [14:14:00] <ss23> No idea, sorry
722: [14:14:00] <knapsack> @ss23. thanks. maybe you happen to know... I have 2 questions about the uploadfield's 'from files' dialog in ss3.0.3:
723: [14:14:00] <knapsack> 1) it seems like the searchfunction isn't working on the dialog. is this a known issue?
724: [14:18:00] * knapsack quit (Ping timeout: 245 seconds)
725: [14:26:00] * hubertusanton has joined #silverstripe
726: [14:37:00] * Nivery has joined #silverstripe
727: [14:47:00] <popeshoe> 2.4 if it matters
728: [14:47:00] <popeshoe> has anybody ever had a problem with sapphire/cli-script.php breaking, regardless of what task/whatever you pass into it
729: [14:47:00] * hubertusanton quit (Ping timeout: 252 seconds)
730: [14:51:00] * ARNHOE quit (Remote host closed the connection)
731: [14:53:00] <zfmf> why this doesn't work ?? static $field_labels = array('Salutation' => _t('Customer.SALUTATION','Anrede') );
732: [14:59:00] <kinglozzer> zfmf: I don't think you can call a function on a class property like that
733: [15:00:00] <kinglozzer> zfmf: http://www.silverstripe.org/data-model-questions/show/9012
734: [15:02:00] <zfmf> yep thanks, with fieldLables method its ok ;)
735: [15:20:00] * feejin quit (Remote host closed the connection)
736: [15:21:00] * zfmf quit (Remote host closed the connection)
737: [15:21:00] * zfmf has joined #silverstripe
738: [15:23:00] * irogue quit ()
739: [15:30:00] <popeshoe> is there some command i can run to force the manifest to regenerate
740: [15:32:00] <elgrodo> flush=1
741: [15:32:00] <elgrodo> /dev/build?flush=-1
742: [16:01:00] * catcher has joined #silverstripe
743: [16:16:00] * kinglozzer quit (Remote host closed the connection)
744: [16:17:00] * Nivery quit (Quit: Nivery)
745: [16:23:00] * osterlaus quit (Quit: Leaving.)
746: [16:31:00] * osterlaus has joined #silverstripe
747: [16:32:00] * osterlaus has left #silverstripe
748: [16:48:00] * joelpittet quit (Remote host closed the connection)
749: [16:53:00] * Zauberfisch quit (Remote host closed the connection)
750: [17:51:00] * zfmf quit (Read error: Connection reset by peer)
751: [19:21:00] * elgrodo quit (Remote host closed the connection)
752: [19:28:00] * ARNHOE has joined #silverstripe
753: [19:39:00] * joelpittet has joined #silverstripe
754: [19:55:00] * ARNHOE quit (Remote host closed the connection)
755: [19:56:00] * ARNHOE_ has joined #silverstripe
756: [19:59:00] * SightUnseen has joined #silverstripe
757: [20:00:00] * SightUnseen has left #silverstripe
758: [20:03:00] <simon_w> Yes
759: [20:03:00] <catcher> the password reset link should come from my setAdminEmail acct as specified in _config.php, right?
760: [20:07:00] <catcher> it's coming from my (shared) host acct instead - user@box##.bluehost.com. What am I overlooking?
761: [20:08:00] * eikonos quit (Read error: Connection reset by peer)
762: [20:08:00] * eikonos1 has joined #silverstripe
763: [20:10:00] * eikonos1 quit (Read error: Connection reset by peer)
764: [20:10:00] * eikonos has joined #silverstripe
765: [20:10:00] * eikonos has joined #silverstripe
766: [20:10:00] * eikonos quit (Changing host)
767: [20:10:00] <simon_w> Your mail program's displaying the wrong header?
768: [20:12:00] <catcher> does it need to be from the same domain as the host?
769: [20:13:00] * eikonos quit (Read error: Connection reset by peer)
770: [20:13:00] * eikonos1 has joined #silverstripe
771: [20:14:00] <catcher> seems to be fine once it is (and the email address exists)
772: [20:19:00] * EasyCo has joined #silverstripe
773: [20:22:00] * ARNHOE_ quit (Remote host closed the connection)
774: [20:23:00] * UndefinedOffset quit (Quit: Leaving.)
775: [20:24:00] * DigNZ has joined #silverstripe
776: [20:26:00] * eikonos1 is now known as eikonos
777: [20:26:00] * eikonos quit (Changing host)
778: [20:26:00] * UndefinedOffset has joined #silverstripe
779: [20:26:00] * eikonos has joined #silverstripe
780: [20:27:00] * wmk quit (Quit: nice to meet you ;))
781: [20:28:00] * irogue has joined #silverstripe
782: [20:31:00] * UndefinedOffset quit (Quit: Leaving.)
783: [20:32:00] * Jeremy has joined #silverstripe
784: [20:32:00] * Jeremy is now known as clodeindustrie
785: [20:33:00] * Pyromanik has joined #silverstripe
786: [20:40:00] * nickmolhoek has joined #silverstripe
787: [20:40:00] * nickmolhoek quit (Remote host closed the connection)
788: [20:41:00] * nickmolhoek has joined #silverstripe
789: [20:42:00] * Nivery has joined #silverstripe
790: [20:52:00] * mobiusnz has joined #silverstripe
791: [21:15:00] <Nivery> .
792: [21:15:00] * Nivery has left #silverstripe
793: [21:15:00] <Nivery> heh, sorry
794: [21:16:00] <catcher> !
795: [21:34:00] <Pyromanik> ?
796: [21:36:00] <EasyCo> Morning guys
797: [21:37:00] <EasyCo> I'm doing a simple <% loop SomeFiles %>$URL<% end_loop %> but the $URL it's spitting out is incorrect. The file is getting uploaded to the assets/Uploads directory but the url is missing the Uploads
798: [21:38:00] <simon_w> EasyCo, you're looping over an empty set
799: [21:38:00] <Pyromanik> and you're sure that's actually where it's ending up?
800: [21:39:00] <simon_w> Unless you mean it's showing assets/blah.blah, in which case, that's where it is
801: [21:40:00] <EasyCo> Yah that's what's happening. It's actually show assets/blah.blah but it's not there. It's actually being added to Uploads by default
802: [21:43:00] * willr_ has joined #silverstripe
803: [21:44:00] <Pyromanik> EasyCo, check the physical file system?
804: [21:44:00] <Pyromanik> simon_w, how to remove a component from a gridfieldconfig?
805: [21:45:00] <Pyromanik> do I have to get it first?
806: [21:45:00] <simon_w> removeComponent() if you have the actual component
807: [21:45:00] <simon_w> removeComponentsByType() if you just have the type
808: [21:45:00] <Pyromanik> is there some kind of key?
809: [21:45:00] <Pyromanik> ->removeComponent(???)
810: [21:45:00] <Pyromanik> do I just put in the string of the classname?
811: [21:46:00] <Pyromanik> cool
812: [21:46:00] <Pyromanik> so
813: [21:46:00] <Pyromanik> GridFieldConfig_RelationEditor::create()->removeComponentsByType('GridFieldDeleteAction')->addComponent(new GridFieldDeleteAction(true))
814: [21:47:00] <Pyromanik> thx
815: [21:47:00] <simon_w> yeah
816: [21:47:00] <Pyromanik> sweet :>
817: [21:47:00] <Pyromanik> legit?
818: [21:49:00] <Pyromanik> there's no easy way to detect dead images right?
819: [21:50:00] <Pyromanik> not linked to any object or content*
820: [21:50:00] <simon_w> Nope
821: [21:50:00] <Pyromanik> unlinked from anywhere
822: [21:51:00] <Pyromanik> ^^
823: [21:51:00] <Pyromanik> file does not have_one anything
824: [21:51:00] <simon_w> many_many to File
825: [21:51:00] <Pyromanik> has_many requires a reverse has_one
826: [21:51:00] <Pyromanik> no
827: [21:51:00] <EasyCo> Can you have a has_many 'File' and just add it tot he CMSFields as an UploadField and loop through that field on the fronted?
828: [21:51:00] <clodeindustrie> hey where do I need to add static $api_access = true; to be able to use the jsondataformatter recursively with my dataobject relation?
829: [21:52:00] <Pyromanik> make a join object
830: [21:52:00] <Pyromanik> or
831: [21:52:00] <Pyromanik> many_many
832: [21:52:00] <EasyCo> Basically I just want to allow the client to upload as many pdfs as they want for a Page and I loop through those PDFs
833: [21:52:00] <Pyromanik> class MyPDFs extends DataObject { static $has_one = array('PDF'=>'File'); }
834: [21:53:00] <Pyromanik> then page has_many MyPDFs
835: [21:53:00] <Pyromanik> 2 ways to do it
836: [21:53:00] * Brooke has joined #silverstripe
837: [21:53:00] <EasyCo> Thanks!
838: [21:53:00] <EasyCo> That was the problem
839: [21:54:00] <Pyromanik> yeah
840: [21:54:00] <Pyromanik> but you will get ALL files.
841: [21:54:00] <EasyCo> But the $URL was retuning the url without the Uploads folder
842: [21:54:00] <Brooke> Hi team
843: [21:54:00] <EasyCo> Oddly enough, it was kind of working when just using has_many without joining a DataObject.
844: [21:55:00] <Pyromanik> public function onBeforeDelete() { parent::onBeforeDelete(); $this->Image()->delete(); } seem legit?
845: [21:55:00] <EasyCo> Beautiful. Thanks guys.
846: [21:55:00] <Pyromanik> hi Brooke
847: [21:55:00] <Pyromanik> not the ones that belong
848: [21:56:00] <simon_w> Pyromanik, if($this->Image()->exists())
849: [21:56:00] <Pyromanik> simon_w, I still have to do that?
850: [21:56:00] <Pyromanik> don't want detached images cluttering up my spaces :<
851: [21:56:00] <EasyCo> Well off to work. Be back in 20 mins :)
852: [21:56:00] <Pyromanik> simon_w, join object as described above for gallery images.
853: [21:57:00] <Pyromanik> yeah but I thought empty record...
854: [21:57:00] <simon_w> Yup. What if someone deletes the file through AssetAdmin?
855: [21:58:00] <simon_w> delete() errors if you call it on an empty record
856: [21:58:00] <Pyromanik> I see.
857: [21:58:00] <Pyromanik> no harm no foul
858: [21:58:00] <Pyromanik> I get confused since 3.0 about when and where to use ->exists()
859: [21:59:00] <simon_w> user_error
860: [21:59:00] <Pyromanik> :<
861: [21:59:00] <Pyromanik> should throw, then could catch :?
862: [21:59:00] <simon_w> Hence the check
863: [21:59:00] <Brooke> Public functions and parents. Interesting. Sam warned me that this is a very "technical space, Brooke".. Anywho. I just wanted to check that you all saw this yesterday: http://www.silverstripe.org/write-for-us/ We are on the hunt for developer stories for the ss.org blog, I just wanted to make sure you top dogs were in the know
864: [21:59:00] <simon_w> Should not delete things that don't exist :p
865: [21:59:00] * EasyCo quit (Quit: EasyCo)
866: [21:59:00] <Pyromanik> :>
867: [21:59:00] <Pyromanik> throw?
868: [21:59:00] <Pyromanik> or user_error?
869: [22:00:00] <simon_w> You and wanting a t-shirt
870: [22:00:00] <Pyromanik> Brooke, will I get a T-Shirt?
871: [22:00:00] <Pyromanik> simon_w, well I still don't have one :<
872: [22:00:00] <Pyromanik> Brooke, it's only technical about 30% of the time.
873: [22:01:00] <Brooke> Yes, fire man - you can have a tshirt! Design of your choice, even ;)
874: [22:02:00] * joelpittet quit (Remote host closed the connection)
875: [22:02:00] <Pyromanik> Brooke, sweet. I'll take the design that isn't on the other two I'm still waiting on :P
876: [22:02:00] <Pyromanik> "No SEO driven content" - sounds perfect. F'n snake oil.
877: [22:03:00] <Pyromanik> Brooke, when did that page go up?
878: [22:03:00] <Brooke> It went up yesterday!
879: [22:03:00] <Brooke> I shall send it. Please flick me your deets brooke@silverstripe.com
880: [22:03:00] <Brooke> hahahaha oh no! Did Kerstin promise you a tshirt in the past?
881: [22:04:00] <Pyromanik> Brooke, yeh, two of them!
882: [22:04:00] <Pyromanik> not that I'm really fussed, I just like bringing that up every now and then in jest :P
883: [22:09:00] <willr_> Pyromanik - 3 designs isn't there? You could collect em all! (tm)
884: [22:10:00] <simon_w> Pyromanik, you should come to the hackfest and bug someone in person :p
885: [22:11:00] <Brooke> Sam is organising one for May in Wgtn.
886: [22:11:00] <Brooke> Same email address for blog post submissions ;)
887: [22:11:00] <Brooke> We also have a Meetup coming up... anywho - Pyro flick me an email with the tshirt details
888: [22:11:00] <Brooke> Agreem Simon!
889: [22:12:00] <simon_w> Yeah, we kinda told Sam when to have it :)
890: [22:12:00] <Brooke> Have a good day guys. over and out/
891: [22:13:00] <Brooke> Yer I saw that on Twitter
892: [22:13:00] <Brooke> We need a response on the confirmed date so I can create the meetup event
893: [22:14:00] <simon_w> ss23, irogue and myself are all fine with the 18th. I think willr_ is too
894: [22:14:00] <willr_> 18th is good.
895: [22:20:00] <simon_w> Woo, time to see if my update script works
896: [22:23:00] <Pyromanik> willr_, that's the idea :P
897: [22:24:00] <Pyromanik> I could do the next one with the work email and live the dream
898: [22:24:00] <Pyromanik> Brooke, 1 blog post, 1 design comp entry.
899: [22:24:00] <Pyromanik> 2 different emails
900: [22:27:00] <Brooke> 18th sounds good
901: [22:27:00] <Brooke> I shall turn a blind eye to your separate but similar email addresses ;)
902: [22:28:00] <Pyromanik> 18th does sound good
903: [22:29:00] <Pyromanik> xD
904: [22:29:00] <Pyromanik> y'all can buy me cake.
905: [22:32:00] * clodeindustrie quit (Quit: Textual IRC Client: www.textualapp.com)
906: [22:33:00] <Pyromanik> http://iforce.co.nz/i/ad124d3b.cpp.jpg
907: [22:36:00] * SightUnseen has left #silverstripe
908: [22:36:00] * SightUnseen has joined #silverstripe
909: [22:37:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
910: [22:42:00] * Brooke quit (Quit: Page closed)
911: [22:47:00] <willr_> Pyromanik did you want a cookie?
912: [22:47:00] <Pyromanik> $uploadField->setFolderName('Gallery Images')
913: [22:47:00] <Pyromanik> "file 'C:\wamp\www\testsite/assets/Gallery-Images/305474.png' not found "
914: [22:47:00] <Pyromanik> D:
915: [22:47:00] <Pyromanik> bug, bug, bug, I founds a bug!
916: [22:47:00] * EasyCo has joined #silverstripe
917: [22:48:00] <Pyromanik> Maybe an apple juice to wash it down.
918: [22:48:00] <Pyromanik> lewellyn, really?
919: [22:48:00] <Pyromanik> willr_, yeh sure I wouldn't mind.
920: [22:48:00] <Pyromanik> Apricot choc. chip plz.
921: [22:48:00] <lewellyn> i was going to bake some. but that just sounds too complex ;)
922: [22:49:00] <lewellyn> er. no.
923: [22:49:00] <lewellyn> really. i was thinking simple sugar cookies.
924: [22:49:00] <Pyromanik> just put some diced dried apricot in the mixture
925: [22:49:00] <Pyromanik> oh
926: [22:49:00] <willr_> Pyromanik, not __utma=204482245.1312680058.1334195428.1365550265.1365466559.35;
927: [22:49:00] <Pyromanik> you mean flattened sugar cubes
928: [22:49:00] <willr_> Got tons of those cookies. *snort*
929: [22:49:00] <Pyromanik> willr_, nope, knew that joke was coming :P
930: [22:49:00] <Pyromanik> lewellyn, well if a cookie is mostly sugar
931: [22:49:00] <Pyromanik> and you're making sugar cookies
932: [22:49:00] <Pyromanik> that means sugar sugar
933: [22:50:00] <Pyromanik> not a biscuit
934: [22:50:00] <Pyromanik> willr_, agreed.
935: [22:50:00] <Pyromanik> yes indeed I have two folders in my assets
936: [22:50:00] <willr_> couldn't help myself. If there is a pun to be had, it must he haved
937: [22:50:00] <Pyromanik> assets/Gallery\ Images
938: [22:50:00] <lewellyn> i eat my sugar out of the bag. ;)
939: [22:50:00] <Pyromanik> so it must be!
940: [22:50:00] <Pyromanik> which is just sugar
941: [22:51:00] <Pyromanik> former has file in it
942: [22:51:00] <Pyromanik> latter is the one checked by SS
943: [22:51:00] <Pyromanik> assets/Gallery-Images
944: [22:52:00] <Pyromanik> GAH, FFFFFFFFFFFFFFF
945: [22:52:00] <Pyromanik> even underscore is converted to --
946: [22:53:00] <Pyromanik> SS, Y U DO DIS?
947: [22:54:00] <simon_w> Woo, my update script works!
948: [22:55:00] <Pyromanik> for?
949: [22:55:00] <simon_w> Updating code, database and sass and flushing caches across multiple servers over SSH
950: [22:55:00] <willr_> capistrano!
951: [22:55:00] <Pyromanik> mmm, cap.
952: [22:55:00] <Pyromanik> BUT REQUIRES RAILS
953: [22:55:00] <Pyromanik> so f that.
954: [22:56:00] <Pyromanik> Why rails when you can bash?
955: [22:56:00] <simon_w> Also, with flags for everything, options to pick what servers and verbose-ness
956: [22:56:00] <simon_w> Also, PHP
957: [22:57:00] <Pyromanik> mm
958: [22:57:00] <Pyromanik> willr_, I can't rembmer does cap need setting up remote?
959: [22:57:00] <Pyromanik> or just local?
960: [22:57:00] <willr_> just local.
961: [22:57:00] <Pyromanik> mm, so it's kinda like an expect script really.
962: [22:58:00] <Pyromanik> willr_, what happened with ./publishsite?
963: [22:58:00] <willr_> I learnt relying on bash scripts get old pretty quick, esp if developers all change. Will be like ./publishsite at SilverStripe all over again
964: [22:58:00] <simon_w> http://pastie.org/7440167
965: [22:58:00] <simon_w> Not a bash script, and is SVNd for greater good
966: [22:59:00] <simon_w> willr_, my button that ran ./publishsite worked great when rsync didn't break :p
967: [23:04:00] <Pyromanik> hacked
968: [23:04:00] <willr_> Pyromanik publish site powered all 200 odd sizes SS ran at one point. It was a bash script that 'evolved' over about 4 years by dozen devs
969: [23:04:00] <willr_> I use 'evolve' in the loosest way
970: [23:04:00] <Pyromanik> ah right
971: [23:05:00] <simon_w> I don't think Mark has root
972: [23:05:00] <Pyromanik> hehe
973: [23:05:00] <simon_w> Hmm, I may have to look into better access controls on some of our repos when we get more devs
974: [23:05:00] <willr_> simon_w no root for everyone?
975: [23:06:00] <simon_w> He doesn't even have an account on the database server
976: [23:07:00] * Pyromanik <3 pun
977: [23:07:00] <Pyromanik> root all the things!
978: [23:07:00] <simon_w> But then you get someone like willr_ coming along and completely breaking your server!
979: [23:08:00] <willr_> To make a cake, you have to break a few eggs
980: [23:08:00] <simon_w> But not entire kitchens
981: [23:11:00] <Pyromanik> Meh, kitchen is unimportant in the grand scheme of things
982: [23:13:00] <Pyromanik> simon_w, why image no clean up after itself :<
983: [23:13:00] <Pyromanik> _resampled all the things, remain after delete
984: [23:20:00] <simon_w> Pyromanik, $this->Image()->deleteFormattedImages(); $this->Image()->delete();
985: [23:23:00] <Pyromanik> oic
986: [23:23:00] <Pyromanik> ta
987: [23:25:00] * catcher quit (Quit: Leaving)
988: [23:26:00] <Pyromanik> works a charm
989: [23:26:00] <Pyromanik> that oughta stop the server being filled up.
990: [23:44:00] * terryapodaca has joined #silverstripe
991: [23:51:00] <terryapodaca> in SS2.4, how do i page a DOM DO?
992: [23:53:00] <simon_w> Usually you page a set, not a single one :p
993: [23:53:00] <simon_w> Lol, DOM
994: [23:53:00] <terryapodaca> i know, it's an old site
995: [23:54:00] <terryapodaca> so I assume it's built in like the search results?
996: [23:55:00] <simon_w> yeah, that's part of DataObjectSet
997: [23:57:00] * Bollig|DesignCty has joined #silverstripe

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