#silverstripe IRC Log

IRC log for 21 January 2015

All timestamps are in UTC.

1: [00:00:14] <glenn-bautista> without hosting ElasticSearch ourselves...
2: [00:04:05] * benjhocking has joined #silverstripe
3: [00:07:27] <Stomach> Ryan-Toast - you behaved badly during childhood obviously
4: [00:09:03] <WandL> Ryan-Toast: I have had something similar before and was a character outside of the opening PHP tag I think...
5: [00:09:28] <zippy> wooo
6: [00:09:37] <zippy> exploding kittens!
7: [00:11:04] * DimiStripe quit (Quit: DimiStripe)
8: [00:13:01] <Ryan-Toast> WandL: cheers, will have a look.
9: [00:13:27] <Ryan-Toast> WandL: found it.
10: [00:13:32] <Ryan-Toast> Don’t know how that ahappened.
11: [00:13:53] * micmania1 has joined #silverstripe
12: [00:14:11] <WandL> Ryan-Toast: np yeah I was the same like wtf, but I do have sausages for fingers that doesn't help...
13: [00:14:39] <Ryan-Toast> WandL: http://i.imgur.com/DMUVZ.gif
14: [00:15:15] <WandL> Ryan-Toast: lol
15: [00:17:07] <zippy> ( ! ) Fatal error: Maximum execution time of 30 seconds exceeded in /framework/thirdparty/zend_translate_railsyaml/library/Translate/Adapter/thirdparty/sfYaml/lib/sfYamlParser.php on line 311
16: [00:17:10] <zippy> god damn yaml
17: [00:17:44] <zippy> *insert simons rant about the config system here*
18: [00:23:04] <Colin[pi]> zippy: I liked the php only config... :(
19: [00:23:12] <zippy> mm
20: [00:23:23] <zippy> and, sometimes you still have to use it so I still don't get the point of it
21: [00:23:41] <Colin[pi]> yeah.. :\
22: [00:29:40] <Stomach> PRETTY
23: [00:30:40] <ss23> pretty LAME
24: [00:30:54] * guttmann has joined #silverstripe
25: [00:31:13] <zippy> camfindlay: http://doc.silverstripe.org/framework/en/topics/forms -> http://doc.silverstripe.org/en/topics/forms - whats the url now!?
26: [00:31:14] * benjhocking quit (Read error: Connection reset by peer)
27: [00:32:45] <zippy> camfindlay: msg me when back
28: [00:37:13] <Colin[pi]> so close: https://www.kickstarter.com/projects/elanlee/exploding-kittens/description
29: [00:44:59] <Stomach> thats actually ridiculous
30: [00:45:30] <Colin[pi]> it's madness
31: [00:45:53] <zippy> a backer every 1-2 seconds
32: [00:46:01] <zippy> ordered yours?
33: [00:46:02] <Colin[pi]> 4K to go
34: [00:46:06] <Colin[pi]> not yet
35: [00:46:35] <Colin[pi]> 3k
36: [00:46:38] * camfindlay quit (Quit: camfindlay)
37: [00:47:02] <Colin[pi]> 2k
38: [00:47:42] <Colin[pi]> 1k to go, holy shit
39: [00:48:50] <zippy> width: 100%; float: left;
40: [00:48:51] <zippy> wicked
41: [00:49:27] <Stomach> all done
42: [00:49:33] <Stomach> 1,003,000 already
43: [00:49:36] <Stomach> fuck sakes oatmeal
44: [00:49:39] <Stomach> breaking the internet
45: [00:49:47] <Ryan-Toast> zippy: heh
46: [00:50:09] <zippy> might buy a pack, company card
47: [00:50:40] <Colin[pi]> oatmeal at least deserves it though, seems like a good guy
48: [00:50:45] <Colin[pi]> and consistently makes me laugh
49: [00:51:58] <zippy> jesus $20 shipping
50: [00:52:33] <Colin[pi]> yeah shipping is pricey :\
51: [00:53:02] * camfindlay has joined #silverstripe
52: [00:53:25] <zippy> camfindlay: commit in, see how that goes
53: [00:54:56] * camfindlay quit (Client Quit)
54: [00:55:25] <Stomach> bahaha
55: [00:55:32] <Stomach> noped right out of there
56: [00:56:02] <Colin[pi]> lol
57: [00:57:42] * zippy has hurt feelings, he has hurt feelings https://www.youtube.com/watch?v=9zI3_pnUU3k#t=12
58: [01:08:52] * camfindlay has joined #silverstripe
59: [01:09:35] <camfindlay> zippy http://doc.silverstripe.org/en/developer_guides/forms/
60: [01:09:52] <camfindlay> there is no topics anymore… or refernce… or misc :P
61: [01:11:55] * praveen quit (Ping timeout: 246 seconds)
62: [01:14:22] <camfindlay> just got back ,I think willr merged something… I’ll deploy to beta to test
63: [01:15:20] <willr> camfindlay should we keep trello for doc issues or has run it’s course and we go back to github issues with ‘documentation’ tag
64: [01:15:49] <zippy> camfindlay: report back here
65: [01:16:34] <camfindlay> I recken we keep issues along side the code in github - trello was good for the focused outcome of the project stuff we did though
66: [01:17:05] <camfindlay> unless someone wants to champion another project type chunk of work
67: [01:17:52] <camfindlay> in which case they could simply raise their own trello? I’ve always seen trello as like the disposible lighters of the project management tool world lol
68: [01:18:18] * spronk2 has joined #silverstripe
69: [01:18:41] <hailwood> Hey guys, I have setup a subsite, and changed the language for the subsite, but when I visit the subsite domain, although it loads the subsite content it's still displaying $ContentLocale as en-US any idea why?
70: [01:20:22] * bemusedrat has joined #silverstripe
71: [01:20:28] <camfindlay> althought willr we do have a few cards still to complete on that trello board?
72: [01:20:53] <camfindlay> github issues are probably more open to others helping than the trello, what do you think?
73: [01:20:57] <willr> Yep quite a few. Just wondering if github is more open
74: [01:21:07] <willr> Not going to be able to tackle those this week
75: [01:21:13] <willr> Crazy busy week
76: [01:23:46] <zippy> camfindlay: seems to redirect eh
77: [01:24:52] <camfindlay> willr kool so we are agreed github issues is the place for future enhancements etc to be posted?
78: [01:25:32] <hailwood> Anyone translated a site before?
79: [01:25:35] <willr> Yep. I will move the existing cards across if you want. Would give me a chance to audit the ones in there and sort out what I can fix
80: [01:25:50] <camfindlay> sounds good willr
81: [01:26:00] <camfindlay> and… yay… docs finally live
82: [01:26:54] <camfindlay> just deployed that pull request if anyone wants to test (I haven’t reindexed search just yet so search might be borked but the redirects can still be checked out).
83: [01:28:11] <zippy> camfindlay: http://beta.doc.silverstripe.org/framework/en/upgrading/
84: [01:28:40] <camfindlay> zippy - nice that seems to redir
85: [01:29:08] <camfindlay> might still need some specific rewrites for things like the old installation link etc
86: [01:29:40] <camfindlay> example: http://doc.silverstripe.org/framework/en/installation/
87: [01:30:18] <zippy> yea
88: [01:30:39] <zippy> do you guys have google webmaster tools steup on that domain?
89: [01:31:10] <zippy> because you can export the top 1000 pages, and then I have a script which can go through there and checks status, and then can work out any other major redirets need in there
90: [01:31:20] <zippy> I htink it's the top 10k
91: [01:32:48] <camfindlay> yeah if we don’t I
92: [01:32:52] <camfindlay> I’ll set one up
93: [01:33:00] <camfindlay> WMT is super useful
94: [01:33:46] <zippy> camfindlay: be good to also build out a google sitemap and submit that to google, so they index those new pages faster for search results
95: [01:34:04] <camfindlay> agreed, let’s resolve these 301’s first
96: [01:34:50] * bemusedrat quit (Quit: Leaving)
97: [01:35:11] * Sticks has joined #silverstripe
98: [01:35:35] <zippy> doing some extra validation in a form, do you do that in the 'action' part, and if so, whats the best way to redirect back and keep that data?
99: [01:37:04] <camfindlay> isn’t the validation one of the arguments in the form constructor?
100: [01:37:23] <zippy> camfindlay: yea, thats to say "this field is required" but what if I want to check the email address is not already in use
101: [01:37:57] <camfindlay> server side? I think you write a custom validator
102: [01:40:34] <camfindlay> I think you subclass the RequiredFields class, UncleCheese says the key is the ‘php’ function…
103: [01:40:56] * jenniferaslan quit (Quit: jenniferaslan has left the room)
104: [01:42:18] * irogue_ has joined #silverstripe
105: [01:42:34] <irogue_> hello people of irc!
106: [01:42:55] <zippy> irogue_: o/
107: [01:44:19] <irogue_> I would like to request ideas for talks at meetups
108: [01:46:20] <zippy> is there a pre-preocessor for forms? eg I want to trim and lowercase a bunch of fields, before validation
109: [01:48:28] <camfindlay> you could do that in the subclassed validator I think
110: [01:48:59] <hailwood> Is the controller init() function the correct place to do this: if (Subsite::currentSubsite()) { i18n::set_locale(Subsite::currentSubsite()->getLanguage()); }
111: [01:49:33] * novaweb has joined #silverstripe
112: [01:51:58] <zippy> mm
113: [01:52:02] <zippy> hermmm
114: [01:52:20] <zippy> dang it
115: [01:54:08] <pippy> Delete existing system folders (or move them outside of your webroot)
116: [01:54:10] <pippy> wat
117: [01:55:46] <pippy> perhaps "move cms and framework folders to outside your working folder" would be more apt
118: [01:56:02] <camfindlay> I think that pullrequest for docs might have solved out framework redirection issue thanks zippy (assume that was you?)
119: [01:56:11] <zippy> ;-)
120: [01:57:59] <MK_away> was it adding the /? as I suggested? O:-)
121: [01:58:03] * MK_away is now known as MichalKleiner
122: [01:58:11] <MichalKleiner> back in
123: [01:59:27] <zippy> MichalKleiner: yea, I think just doing / would of been fine, but then some versions of apache (I think it's old) work without it, so doing the ? like you suggested is ideal
124: [02:00:13] <MichalKleiner> cool, good that we made it there together
125: [02:01:47] <MichalKleiner> it was what I have in my head.. condition starts with a slash and rewrite doesn't and it always worked for me
126: [02:02:03] <Stomach> irogue_ - I can stand at the front and get drunk
127: [02:02:06] <Stomach> thoughts?
128: [02:02:46] <irogue_> Stomach: sweet, will put you down :P
129: [02:02:54] <camfindlay> you guys happy for me to merge that fix into master and deploy for docs then zippy and MichalKleiner ? :)
130: [02:03:02] <zippy> sure
131: [02:03:06] <MichalKleiner> yep
132: [02:03:11] <camfindlay> probably some more rewrite fixes to be had, though this one is a good win for today
133: [02:03:37] <camfindlay> it’s deployed on beta.docs.silverstripe.org if you want to ping a couple of urls to be sure
134: [02:03:43] <zippy> it'll be fine
135: [02:03:47] <MichalKleiner> as suggested before GWT would help with a list of 404s
136: [02:04:35] <camfindlay> Will deploy and get that setup
137: [02:05:06] <MichalKleiner> works ok for me on beta
138: [02:08:46] <camfindlay> GWT is all setup - I’ll give it a few days to populate any 404s from the new docs deploy and then put a like in a github issue
139: [02:13:21] <WandL> zippy: zenvalidator is quite good https://github.com/sheadawson/silverstripe-zenvalidator
140: [02:13:26] * Colin[pi] quit (Ping timeout: 244 seconds)
141: [02:14:55] <Ryan-Toast> Docs site is down atm, so can anyone tell me how to set an image in a UploadField. i.e
142: [02:15:39] <Ryan-Toast> like how you could get the value of a field by passing a method to a new TextField(‘GetValueMethod’, ‘Foo’)
143: [02:16:21] <camfindlay> zippy MichalKleiner - and… live
144: [02:16:30] <zippy> website down!
145: [02:17:20] <MichalKleiner> works for me
146: [02:17:45] * EasyCo quit (Quit: Connection closed for inactivity)
147: [02:19:03] <zippy> camfindlay: half way down the page; http://doc.silverstripe.org/en/developer_guides/security/member - Object::useCustomClass()&version=3.1&module=framework) in (project)/_config.php:
148: [02:19:07] <zippy> is that supposed to be a link or something
149: [02:20:24] <camfindlay> would have to have a look at the markdown source perhaps
150: [02:21:33] <zippy> where do the docs actually live
151: [02:21:36] <zippy> repo wife
152: [02:21:39] <zippy> wise
153: [02:22:34] <camfindlay> in the docs folder of framework - there is also a link to direct edit at the bottom of each page
154: [02:22:57] * mobiusnz has joined #silverstripe
155: [02:24:59] <camfindlay> think there is some old links to be fixed (though I thought we got most of those!).
156: [02:25:29] <zippy> might be the something to do with the way it parses api: - that looks like a special token to wrap up in a search
157: [02:25:48] <zippy> so reading the docs it's better to create a DataExtension if I want a different user type (eg Member, but now I want Teacher), and then use Roles
158: [02:26:11] <zippy> if I do that, is it possible to create a ModelAdmin to list out members of that type, I thought model admin only works directly on models
159: [02:26:23] <zippy> or would I use ModelAdmin with Member class, and then filter it (somehow)
160: [02:29:09] <camfindlay> just fixed a link while I was in that doc zippy ;) um… pass on the Member stuff in ModelAdmin I did it once in the past in an old 2.4 project and had to write some custom ModelAdmin overrides
161: [02:33:44] <camfindlay> just out of interest, has anyone had a look at the code of conduct that the core committers proposed (and they got me to draft on their behalf)? Be good to get you guys feedback on that.
162: [02:39:02] <Stomach> camfindlay - I did
163: [02:39:04] <Stomach> :)
164: [02:39:38] * guttmann quit (Quit: Leaving)
165: [02:44:31] <camfindlay> yeah, thanks Stomach appreciate the feedback
166: [02:44:37] <camfindlay> rolled in your suggestion
167: [02:51:36] <camfindlay> anyone totally offended by the introduction of such a code? I think it’s been implied anyway and this helps make it clear ;) I’m looking to gather final feedback and work out what the next steps are for this.
168: [02:58:32] <Stomach> I'm not effected by it so no offence taken
169: [02:58:33] <Stomach> you fucker
170: [02:58:35] <Stomach> etc.
171: [02:58:56] <Ryan-Toast> Offended by what code?
172: [02:59:14] * matt-in-a-hat has joined #silverstripe
173: [02:59:27] <camfindlay> https://github.com/silverstripe/silverstripe-framework/pull/3775
174: [02:59:28] * spronk2 quit (Quit: spronk2)
175: [02:59:48] <camfindlay> worth checking out the google hangout discussion too (link in the PR)
176: [03:00:27] <Ryan-Toast> “## Be empathetic, friendly and considerate.” - get fucked, Cam.
177: [03:00:37] <Ryan-Toast> :)
178: [03:00:56] <Stomach> !
179: [03:01:00] <Stomach> please get fucked
180: [03:01:05] <Stomach> be friendly
181: [03:01:26] <Ryan-Toast> I would appreciate it if you would take you opinions and stick them waaaay up inside your butthole.
182: [03:01:38] <camfindlay> haha how did I already know you guys would have that response :P
183: [03:02:22] <Ryan-Toast> camfindlay: http://i.imgur.com/U70ha.gif
184: [03:02:23] <Stomach> because irc will irc
185: [03:03:03] <Ryan-Toast> On a serious note, looks good.
186: [03:03:10] <MichalKleiner> camfindlay: looks ok to me and as said it's kinda implied in good society so no problem for me
187: [03:04:55] <camfindlay> thanks guys
188: [03:06:26] <Stomach> camfindlay - I think it needs a section about how "Stevie Mayhew is the grand overseer of the SilverStripe community and all pilgrammage should be mailed directly to Stevie Mayhew, c/o 3f/47 High Street, Auckland"
189: [03:07:08] <camfindlay> Don’t make me get my community pimp hand out Stomach http://stream1.gifsoup.com/view1/1722804/feel-my-pimp-hand-o.gif
190: [03:07:33] <Stomach> "Candy is especially appreciated"
191: [03:08:08] <Stomach> I wanna see the pimp hand
192: [03:08:21] <matt-in-a-hat> Hi there. I have a site set up with subsites on CWP, and now I'm trying to use the restfulserver feature, e.g. by hitting subsite.url/api/v1/MyModel.json, however it is redirecting me to the main site url (/api/etc). The subsite url works fine otherwise, I can browse other pages e.g. subsite.url/news. Any idea why the api url redirects to the main site?
193: [03:11:06] <Stomach> probably because camfindlay hates me :(
194: [03:11:20] <Stomach> but it will be to do with the routing configuration for the API
195: [03:11:33] <Stomach> it probably doesn't have any setup for use with subsites
196: [03:11:55] <matt-in-a-hat> Do you how I'd configure that, or where to find information about it?
197: [03:12:10] <matt-in-a-hat> What's odd is it works locally
198: [03:12:15] * micmania1 quit (Quit: micmania1)
199: [03:12:30] <camfindlay> how have you got it setup locally matt-in-a-hat?
200: [03:12:54] * zippy plays with his newtons cradle
201: [03:13:16] <matt-in-a-hat> I have an etc/hosts record for the subsiteurl.local to go to the same ip as the main site locally
202: [03:14:33] <camfindlay> and is that returning only api data for the specific subsite or everything?
203: [03:14:39] <matt-in-a-hat> then the subsiteurl.local/api/v1/MyModel.json works as expected. Though if I want models for only that subsite I have to add ?SubsiteID=2 even though it's using the url of the 2nd subsite
204: [03:14:44] <matt-in-a-hat> everything
205: [03:15:36] <matt-in-a-hat> Oh, but that SubsiteID is actually a field on MyModel that I've added
206: [03:15:48] <zippy> if you are on a mac don't use .local fyi
207: [03:15:49] * Pyvrmdk quit (Ping timeout: 246 seconds)
208: [03:17:05] <matt-in-a-hat> Oh? Good to know, seems to be working as I'd expect currently, but will avoid in future
209: [03:17:49] * Cramb has joined #silverstripe
210: [03:18:27] <zippy> matt-in-a-hat: yea, sometiems when you load a page it can take 3-4 extra seconds, because osx uses .local for local network discover=y or something
211: [03:18:55] <matt-in-a-hat> Ah, thought it was slow sometimes, thanks!
212: [03:19:00] <zippy> go with .dev
213: [03:19:04] <zippy> well, whatevre you want
214: [03:19:06] <zippy> .matt even
215: [03:19:11] <zippy> .awesome
216: [03:19:14] <zippy> bit long
217: [03:20:08] <camfindlay> is there a reason why the api call has to be on the subdomain for the subsite?
218: [03:20:27] <Cramb> Hi I need to temporarily save a associative array in a dataobject. Is this possible or do I need to add a child dataobject via a $has_one relationship. Either way I cannot seem to save the data from my associative array. So far I have tried $this->customFields[{$field}] = $value or with a $has_one $this->customFields->$field = $value. Any ideas??
219: [03:20:50] <Cramb> Be gentle :)
220: [03:20:50] <camfindlay> assuming you could get the same data via the main site and the SubsiteID etc?
221: [03:21:54] <MichalKleiner> if it works with SubsiteID on the main site, you can put in some rewrite rules to make it look nicer
222: [03:22:28] <matt-in-a-hat> Ideally the main site remains hidden from the subsite, but I guess it doesn't have to (it's an ajax call anyway)
223: [03:22:58] <MichalKleiner> it's still kind of one instance so it's not hidden as such
224: [03:23:04] <MichalKleiner> and the domain can be rewrited
225: [03:23:20] <MichalKleiner> Cramb: what you mean by temporarily?
226: [03:23:23] <muskie9> should this be Decimal rather than Float: https://github.com/silverstripe-australia/silverstripe-addressable/blob/master/code/Geocodable.php#L11
227: [03:24:21] <Cramb> I query an exernal api, wrap it in a dataobject and send it to the template
228: [03:24:30] <MichalKleiner> Cramb: you can do just string property and do $this->stringFieldName = json_encode($arrayVar); and to use it you do json_decode($this->StringFieldName);
229: [03:24:40] <Cramb> I do not save it to the database as it contains passwords etc
230: [03:24:50] <muskie9> and would that make a difference from MySQL to PostgreSQL
231: [03:25:32] <camfindlay> matt-in-a-hat might pay to give CWP helpdesk a call or email to talk over what you are after perhaps? Assume you have a technical user account on CWP gitlab?)
232: [03:25:35] <Cramb> Cheers Michal I was hoping for a cleaner solution but I guess I am overcomplicating things :)
233: [03:27:00] <MichalKleiner> if you don't need to store it it can actually be any class property, doesn't have to be within $db
234: [03:27:21] <MichalKleiner> and with that you don't need to serialise it
235: [03:28:43] <zippy> Cramb: It doesn't need to be a DO for it to show in the template. You can use $foo = new ArrayData($your assoc array); and send $foo to the tempalte. Then you can call $foo.whatever
236: [03:28:48] <Cramb> Good point I should create an arrayData from the data rather than tring to squeee it into a dataobject
237: [03:29:04] <Cramb> Cheers guys thats the way I am going to go :)
238: [03:29:08] <MichalKleiner> np
239: [03:31:59] * micmania1 has joined #silverstripe
240: [03:37:07] <matt-in-a-hat> camfindlay - regarding it having to be on the subsite, the reason it's an issue currently is that there's no CORs header, so it won't let me fetch it from main site. But yeah I'll contact CWP and see what they say, cheers guys.
241: [03:40:58] <camfindlay> matt-in-a-hat if you get really stuck thre is always the option of just returning a json output from a controller action on the subsite ;)
242: [03:41:28] <matt-in-a-hat> Yeah that's a tempting solution
243: [03:42:58] * chrisrio has joined #silverstripe
244: [03:43:56] <chrisrio> hey gents what is the proper way to filter a paginated list (im just using standard SS search via $searchform and an overloaded results function)
245: [03:44:14] <chrisrio> $form->getResults()->exclude("SomeSweetPageType") filters post-pagination
246: [03:44:27] <chrisrio> but I need some pre-pagination action.
247: [03:44:39] <chrisrio> needs a custom getResults function eh?
248: [03:46:08] <chrisrio> rgr, yep.
249: [03:46:11] <chrisrio> sorted - cheers for listening ;)
250: [03:46:20] <zippy> chrisrio: hmm
251: [03:46:33] <zippy> chrisrio: all I saw was "hey gents..." and "sorted -cheers...."
252: [03:46:36] <zippy> did you sort it?
253: [03:46:43] <chrisrio> ya all good
254: [03:46:44] <chrisrio> cheers zip
255: [03:46:50] <zippy> :)
256: [03:47:03] * zippy feels like a rubby duckie
257: [03:47:11] <camfindlay> matt-in-a-hat - depending on the data set you might also be able to cache things to get better performance too might be lower overhead than a full restful api solution if it’s just for onsite ajax
258: [03:57:43] * UncleCheese has joined #silverstripe
259: [04:03:37] * jedateach quit (Ping timeout: 245 seconds)
260: [04:04:04] * chrisrio quit (Quit: Page closed)
261: [04:04:19] <superspring> hey peoples, is there a way in Silverstripe templates to use loops inside loops?
262: [04:04:48] * travis-ci has joined #silverstripe
263: [04:04:48] <travis-ci> silverstripe/silverstripe-framework#3905 (3.1 - bef7338 : Will Rossiter): The build passed.
264: [04:04:48] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/bf4c9fcd50da...bef73381674f
265: [04:04:48] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47737639
266: [04:04:48] * travis-ci has left #silverstripe
267: [04:05:19] <muskie9> <% loop YourLoop %>$Title<% loop YourSubLoop %>$SubObjectTitle<% end_loop %><% end_loop %>
268: [04:05:37] <muskie9> it's like looping children, then looping the children under that level
269: [04:06:26] * camfindlay quit (Read error: Connection reset by peer)
270: [04:07:24] * UncleCheese quit (Read error: Connection reset by peer)
271: [04:07:29] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
272: [04:12:26] * hailwood quit (Remote host closed the connection)
273: [04:15:18] * travis-ci has joined #silverstripe
274: [04:15:18] <travis-ci> silverstripe/silverstripe-framework#3906 (3.1 - 315d6b6 : Will Rossiter): The build passed.
275: [04:15:18] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/bef73381674f...315d6b6e2c04
276: [04:15:18] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47737676
277: [04:15:18] * travis-ci has left #silverstripe
278: [04:16:56] * Kingy[a] is now known as Kingy
279: [04:17:46] <Kingy> hiii
280: [04:20:31] * Ryan-Toast quit (Quit: Ryan-Toast)
281: [04:21:20] <MichalKleiner> superspring: you can access Up.property and Top.property for level up or top level loop
282: [04:21:33] <MichalKleiner> also Up.Up.something works too
283: [04:27:48] * willr quit (Quit: willr)
284: [04:29:14] * spronk2 has joined #silverstripe
285: [04:29:34] * glenn-bautista has left #silverstripe
286: [04:29:44] * glenn-bautista has joined #silverstripe
287: [04:31:39] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
288: [04:33:46] * veb quit (Quit: veb-irc: &)
289: [04:39:39] * MichalKleiner is now known as MK_away
290: [04:40:39] * Colin[pi] has joined #silverstripe
291: [04:41:24] * matt-in-a-hat quit (Ping timeout: 276 seconds)
292: [04:49:49] * cloph_away quit (Ping timeout: 245 seconds)
293: [04:49:51] * cloph has joined #silverstripe
294: [04:53:35] * benjhocking has joined #silverstripe
295: [04:59:57] * Cramb quit (Quit: Cramb)
296: [05:15:12] <muskie9> are there unit tests in SS for the float data type... seeing one for decimal, but not float or even double...
297: [05:19:59] * spekulatius quit (Quit: Leaving)
298: [05:24:33] * Kingy is now known as Kingy[a]
299: [05:24:51] * muskie9 quit (Read error: Connection reset by peer)
300: [05:25:09] * muskie9 has joined #silverstripe
301: [05:28:32] * muskie9 quit (Read error: Connection reset by peer)
302: [05:30:15] * muskie9 has joined #silverstripe
303: [05:35:34] * muskie9_ has joined #silverstripe
304: [05:36:06] * muskie9 quit (Read error: Connection reset by peer)
305: [05:36:31] * muskie9_ is now known as muskie9
306: [05:43:14] * veb has joined #silverstripe
307: [05:43:57] * willr has joined #silverstripe
308: [05:44:20] * veb quit (Client Quit)
309: [05:52:41] * Stomach quit (Quit: zzz)
310: [05:57:57] * muskie9 quit (Read error: Connection reset by peer)
311: [05:58:32] * muskie9 has joined #silverstripe
312: [06:00:17] * veb has joined #silverstripe
313: [06:04:43] * spronk2 quit (Quit: spronk2)
314: [06:06:18] * __will has joined #silverstripe
315: [06:07:30] * willr quit (Quit: willr)
316: [06:09:32] * r_hector has joined #silverstripe
317: [06:16:10] * Sticks quit (Quit: Leaving)
318: [06:20:42] * veb quit (Quit: veb-irc: &)
319: [06:21:03] * Error404NotFound has joined #silverstripe
320: [06:24:26] * Stomach has joined #silverstripe
321: [06:30:36] * micmania1 quit (Quit: micmania1)
322: [06:32:11] * Colin[pi] quit (Ping timeout: 252 seconds)
323: [06:33:04] * veb has joined #silverstripe
324: [06:35:54] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
325: [06:37:46] * __will quit (Ping timeout: 246 seconds)
326: [06:48:55] * willr has joined #silverstripe
327: [06:50:49] * willr quit (Client Quit)
328: [06:53:02] * WandL quit (Quit: Textual IRC Client: www.textualapp.com)
329: [07:06:43] * Azure quit (Ping timeout: 255 seconds)
330: [07:07:34] * spronk2 has joined #silverstripe
331: [07:09:39] * spronk2 quit (Client Quit)
332: [07:17:01] * wmk has joined #silverstripe
333: [07:27:26] * travis-ci has joined #silverstripe
334: [07:27:26] <travis-ci> silverstripe/silverstripe-framework#3907 (3.1 - c5db41d : Damian Mooyman): The build passed.
335: [07:27:26] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/315d6b6e2c04...c5db41d21f4b
336: [07:27:26] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47747922
337: [07:27:26] * travis-ci has left #silverstripe
338: [07:34:48] * spronk2 has joined #silverstripe
339: [07:35:59] * glenn-bautista quit (Quit: Leaving.)
340: [07:52:09] * ss23 sighs
341: [07:52:17] <ss23> Someone updated ruby without checking whether our ruby shit worked after
342: [07:52:18] <ss23> :(
343: [08:06:38] <wmk> ss23, https://www.youtube.com/watch?v=e9490PYwa64
344: [08:07:04] <ss23> lol
345: [08:08:01] <wmk> sigh, d'arcy is a beautiful base player...
346: [08:10:02] * lerni_ has joined #silverstripe
347: [08:12:17] <wmk> hi lerni_
348: [08:12:29] <lerni_> moin, moin
349: [08:12:38] <ss23> WEll I got Gitlab working again, but I still cna't push to this repo
350: [08:12:39] <ss23> :(
351: [08:22:39] <wmk> oh
352: [08:22:51] <wmk> and you updated gitlab or did you update ruby?
353: [08:28:02] <ss23> I dunno, it just didn't work
354: [08:28:10] <ss23> :O
355: [08:28:13] <ss23> Think it was a shared library
356: [08:29:02] <wmk> ah.
357: [08:29:11] <wmk> well, never run a changing system
358: [08:29:15] <wmk> or something like that
359: [08:29:30] <wmk> but why does my customer want a change on his homepage?
360: [08:43:23] * guci0 has joined #silverstripe
361: [08:43:24] <guci0> Morning!
362: [08:55:00] * zippy has joined #silverstripe
363: [08:58:33] * zippy quit (Client Quit)
364: [08:59:50] * kinglozzer has joined #silverstripe
365: [09:01:08] <Eliseth> Morning!
366: [09:07:55] * jeroenem has joined #silverstripe
367: [09:09:46] <wmk> hi guci0 'n Eliseth
368: [09:10:15] <wmk> Eliseth, my compagnions dog's name is jack. If i say "hi" to Jack, am i an HiJack'r
369: [09:10:30] <jeroenem> Nice work on the Docs site for those who have been involved!
370: [09:11:34] <wmk> absolutely, jeroenem
371: [09:11:41] * Stomach quit (Quit: zzz)
372: [09:13:31] * mahfuz quit (Ping timeout: 246 seconds)
373: [09:32:44] * elgabbu has joined #silverstripe
374: [09:33:34] <elgabbu> hi all in 2.4 ... FormField had a function describe ... this seems to be no longer available in 3.1 ... is there so sort of alternative?
375: [09:35:04] <wmk> damn, i hate when composer packages get deleted on github
376: [09:36:48] <jeroenem> elgabbu: do you mean description?
377: [09:38:50] * Shrike_Finland has joined #silverstripe
378: [09:39:50] <elgabbu> jeroenem ... not sure ... i am migrating a module to used to run on 2.4 to 3.1 ... in a part of it uses this describe function
379: [09:40:10] <elgabbu> i see that the FormField in 3.1 has a setDescription function maybe that's what i m looking for
380: [09:40:19] * zippy has joined #silverstripe
381: [09:41:18] <elgabbu> yh comparing what the fucntions tho in both versions I think that's what i m looking for
382: [09:41:44] <jeroenem> elgabbu: Yes I think thats what you're looking for: http://api.silverstripe.org/2.4/class-FormField.html#_describe
383: [09:41:49] <wmk> elgabbu, you know the silverstripe migrate script?
384: [09:41:52] <jeroenem> http://api.silverstripe.org/3.1/class-FormField.html#_setDescription
385: [09:42:02] <zippy> oh. my. god.
386: [09:42:11] <zippy> Time: 9.77 seconds, Memory: 72.00Mb
387: [09:42:17] <wmk> elgabbu, https://github.com/sunnysideup/silverstripe-upgrade_silverstripe
388: [09:42:22] <zippy> for a single test, it takes 9.7 seconds to run phpunit for a single test...
389: [09:42:38] <zippy> a test which extends SapphireTest
390: [09:42:43] <zippy> what on earth..
391: [09:42:52] <wmk> sqlite or mysql?
392: [09:43:00] <zippy> mysql I think
393: [09:43:04] <zippy> well, yea mysql
394: [09:43:08] <zippy> can you do in memory sqlite
395: [09:43:14] <wmk> i guess sqlite would speed up a bit
396: [09:43:27] <wmk> zippy, put it on a ramdisk?
397: [09:44:07] <zippy> is this the norm..?
398: [09:44:15] <zippy> I think my 40 tests in laravel run faster
399: [09:44:21] <wmk> zippy, dunno
400: [09:44:31] <wmk> running tests is on my alltime todo list :(
401: [09:46:38] <jeroenem> Guys i'm getting myself a new ipad. Mini 2 or Air 2 :O i can't decide. I love the size of the mini
402: [09:48:43] <jeroenem> or should i go for the new nexus tab :<
403: [09:51:19] * guci0 quit (Ping timeout: 246 seconds)
404: [09:53:55] <zippy> kinglozzer: your a core man, what do you do to make the unit tests run faster, except get a new computer
405: [09:54:07] <kinglozzer> zippy: Run em using sqlite
406: [09:54:11] <kinglozzer> in memory
407: [09:54:20] <zippy> whats your config for that
408: [09:54:27] <zippy> does ss3 support sqlite out of the box now?
409: [09:54:55] <kinglozzer> zippy: Nope, you'll need the module (and obviously sqlite installed)
410: [09:56:34] <zippy> kinglozzer: thats https://github.com/silverstripe-labs/silverstripe-sqlite3 ?
411: [09:56:45] <kinglozzer> Mine's pretty crude, 'cause I only use sqlite3 for running core tests - if(Director::isDev() && $db = @$_GET['db'] && $db == 'sqlite3') { ... sqlite3 setup }
412: [09:56:48] <kinglozzer> zippy: Yep
413: [09:57:03] <kinglozzer> Then you can do: $ phpunit framework/tests '' db=sqlite3
414: [09:57:34] <zippy> and that will set in memory?
415: [09:58:18] <kinglozzer> zippy: You have to set $databaseConfig['memory'] = 'true';, but yeah - the database will be in memory
416: [09:58:43] <kinglozzer> Much quicker, but obviously you can't inspect it if a test fails (though I don't think I've ever done that anyway)
417: [10:04:04] <zippy> ERROR [User Deprecated]: $databaseConfig['memory'] is deprecated. Use $databaseConfig['path'] = ':memory:' instead. Called from SQLite3Database->__construct. ;-)
418: [10:11:05] <Guest90156> zippy: Don't write tests, just do it manually
419: [10:11:10] <Guest90156> Then it's quick as ya please
420: [10:11:28] <zippy> :)
421: [10:11:32] <kinglozzer> zippy: I'm running a version of that module from like 9 months ago :P
422: [10:11:32] <wmk> Guest90156, ;)
423: [10:11:42] <zippy> Guest90156: sounsd like a thing pyro would say.
424: [10:11:57] * Guest90156 quit (Changing host)
425: [10:11:58] * Guest90156 has joined #silverstripe
426: [10:12:08] <Guest90156> Don't know what you're talking about
427: [10:12:12] * Guest90156 is now known as madmatt
428: [10:12:17] <madmatt> :p
429: [10:14:03] <kinglozzer> wmk: PHPStorm doesn't like ::create() :( what do?
430: [10:14:12] <kinglozzer> (constantly telling me that methods don't exist)
431: [10:14:35] <zippy> ... seems ok here kinglozzer
432: [10:15:02] <kinglozzer> Really? :/ every method I use after ::create() warns me "method xxx not found in class"
433: [10:15:16] <madmatt> kinglozzer: You can force it to recognise it like this:
434: [10:15:16] <kinglozzer> Switching to new Class() works
435: [10:15:28] <madmatt> $page = Page::create()
436: [10:15:43] <madmatt> \/** @var Page $page **/
437: [10:15:48] <madmatt> without the \
438: [10:15:57] <madmatt> (my irc client is bad)
439: [10:16:09] <zauberfisch> kinglozzer: its a bug in phpstorm
440: [10:16:18] <zippy> kinglozzer: what v you using?
441: [10:16:19] <zauberfisch> kinglozzer: but only some versions have that bug
442: [10:16:29] <kinglozzer> 8.0.2
443: [10:16:31] <madmatt> zauberfisch: I feel like the latest version of v8 works okay, but I'm not sure
444: [10:16:38] <madmatt> I'll have a look on mine now
445: [10:17:00] <zauberfisch> madmatt: Page::create()->Li should let you autocomplete to Link
446: [10:17:44] <madmatt> eh, nah doesn't in 8.0.2
447: [10:18:23] <wmk> kinglozzer, it did some time ago
448: [10:19:45] <madmatt> Also kinglozzer you can do (new Page())->Link() and that should work (5.4+ only)
449: [10:20:11] <madmatt> (work = parse correctly in PHPstorm and so on)
450: [10:20:29] <kinglozzer> Mm, but then no injector magic :(
451: [10:20:35] <kinglozzer> nvm, I can survive :P
452: [10:20:49] <madmatt> yeah, there's that (I was basing it on what you said earlier about it working when you did "new Page()")
453: [10:21:09] <madmatt> But yeah, I usually force PHPStorm to understand it with @var, if it doesn't figure it out
454: [10:24:54] <zippy> argghgharh so many 404s in the docs
455: [10:27:32] * spronk2 quit (Quit: spronk2)
456: [10:32:38] <wmk> zippy, new docs?
457: [10:36:03] <zippy> yea, docs got rolled out
458: [10:42:44] <wmk> anyone running a bot collecting 404s?
459: [10:52:22] <zippy> they setup GWT and I think going through access logs tomororw
460: [10:53:28] * Colin[pi] has joined #silverstripe
461: [10:55:57] * Shrike_Finland quit (Quit: Leaving.)
462: [10:58:21] * spronk2 has joined #silverstripe
463: [11:08:31] * spronk2 quit (Quit: spronk2)
464: [11:19:08] * Shrike_Finland has joined #silverstripe
465: [11:24:58] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
466: [11:27:01] * lerni_ quit (Remote host closed the connection)
467: [11:37:08] * veb quit (Quit: veb-irc: &)
468: [11:39:37] * BetterBert has joined #silverstripe
469: [11:40:59] <BetterBert> Morning all
470: [11:41:40] <BetterBert> If there is anyone about familiar with the dark corners of Template rendering/RenderWith/ViewableData I'd appreciate your help
471: [11:41:41] <BetterBert> Question: is there a hook that I can use to complete a string substitute on a rendered template before it is sent to the browser?
472: [11:43:34] <BetterBert> Anyone?
473: [11:44:21] * DimiStripe has joined #silverstripe
474: [11:44:38] <wmk> str_replace?
475: [11:44:47] <wmk> BetterBert, what do you want to acchieve?
476: [11:45:11] <wmk> globally or just inside e.g. $Content?
477: [11:45:36] <BetterBert> moving between dev, test & live some links on the rendered pages need to be automatically updated to different end-points on a back-end system
478: [11:46:09] <BetterBert> At which point can the $Content be intercepted?
479: [11:46:15] <wmk> controller
480: [11:46:21] <wmk> Userdefined form does this e.g.
481: [11:47:08] <BetterBert> So, Page.php controller, which funciton to Overload or what hook to use to complete the str_replace?
482: [11:47:14] <wmk> e.g. https://github.com/silverstripe/silverstripe-userforms/blob/master/code/model/UserDefinedForm.php#L470
483: [11:48:30] <BetterBert> Not form actions, rather links to a back-end system e.g. URL: dev-backend.com/page.php should change to test-backend.com/page.php
484: [11:49:20] <wmk> well, userform just injects the form instead of the string "$UserDefinedForm" inside $Content
485: [11:49:51] <wmk> i once overwrote $handleRequest in my Controller to replace all links to /assets/ with an url to a cdn
486: [11:50:46] <wmk> basically this should do:
487: [11:51:08] <wmk> $body = parent::handleRequest($request);
488: [11:51:14] <wmk> /do something with $body
489: [11:51:48] <BetterBert> and then to render, is there a final step. to send it to the browser as such?
490: [11:52:02] <wmk> handleRequest returns the html for the browser
491: [11:52:11] <wmk> or does a redirect
492: [11:53:24] <wmk> sending it to the browser is just returning the modified stuff
493: [11:53:40] <BetterBert> aye, just "return $body"
494: [11:53:48] <wmk> after modification
495: [11:53:51] <wmk> yup
496: [11:54:04] <BetterBert> Sensational \o/
497: [11:54:20] <BetterBert> simply exactly what I'm looking for, and simple when you know how ;)
498: [11:54:22] <BetterBert> thanks
499: [11:55:06] <wmk> yup.
500: [11:55:08] <wmk> simple when you know
501: [11:55:25] <wmk> there should be something mentioned in the docs somewhere ;)
502: [11:55:53] <BetterBert> if I put the parrent::handleRequest into function index() on Page.php then every page render on the site will be captured yes?
503: [11:55:59] <BetterBert> *parent::
504: [11:56:48] <wmk> you have to overwrite handleRequest in your controller
505: [11:56:52] <wmk> call parent there
506: [11:56:58] <wmk> do modifications
507: [11:56:59] <wmk> return
508: [11:57:41] <BetterBert> oh - overload function handleRequest instead. understood
509: [11:59:44] <wmk> zippy: see http://www.netwerkstatt.at/temp/ssdocs-broken-links.htm
510: [12:04:29] * lerni_ has joined #silverstripe
511: [12:07:25] * lerni__ has joined #silverstripe
512: [12:09:40] * lerni_ quit (Ping timeout: 244 seconds)
513: [12:16:23] <BetterBert> Another question about handleRequest: when it returns it send an object including body. I'm under pressure and can't think...
514: [12:16:43] <BetterBert> Stupid question: what syntax to get the body property?
515: [12:17:09] <BetterBert> function handleRequest(SS_HTTPRequest $request){
516: [12:17:31] <BetterBert> $page = parent::handleRequest($request);
517: [12:17:41] <BetterBert> $bodyStr = ..... ?
518: [12:18:25] * Shrike_Finland quit (Quit: Leaving.)
519: [12:19:26] <BetterBert> its a protected property... how to get it? anyone?
520: [12:20:24] <kinglozzer> BetterBert: $response = parent::handleRequest($request); $body = $response->getBody();
521: [12:22:33] <BetterBert> and there is setBody for applying any modifications. beautiful. As ever, much appreciated and much indebted to you heroes.
522: [12:22:35] <BetterBert> ta :)
523: [12:25:21] * Azure has joined #silverstripe
524: [12:33:42] * Shrike_Finland has joined #silverstripe
525: [12:35:46] * BetterBert quit (Quit: (null))
526: [12:52:13] * r_hector quit (Quit: Leaving.)
527: [13:04:28] * Colin[pi] quit (Ping timeout: 255 seconds)
528: [13:22:21] * UndefinedOffset has joined #silverstripe
529: [13:50:43] * muskie9 has joined #silverstripe
530: [13:54:26] * muskie9_ has joined #silverstripe
531: [13:55:02] * muskie9 quit (Read error: Connection reset by peer)
532: [13:55:35] * muskie9_ is now known as muskie9
533: [14:03:07] * _hschillig has joined #silverstripe
534: [14:04:18] <_hschillig> I'm following the Form tutorial on SS.. They just put $this->redirectBack() at the end of the process, but I want to redirect them to a different URL if the form submission was valid.. otherwise redirectback. This is what I have so far: http://pastebin.com/GySPEF8Z But I dont kno whow to check if it's valid or not..
535: [14:07:14] * R\w\C has joined #silverstripe
536: [14:07:16] <wmk> _hschillig, isn't form valid when you reach the action?
537: [14:07:18] <zauberfisch> _hschillig: I personally prefer using $this (if inside the Page_Controller) or $this->Controller() (if inside the form) instead of Controller::curr()
538: [14:07:29] * R\w\C quit (Changing host)
539: [14:07:29] * R\w\C has joined #silverstripe
540: [14:07:46] <zauberfisch> _hschillig: other than that, you should not have to check if a form is valid inside the action handling function
541: [14:07:53] <zauberfisch> _hschillig: that should be done before hand
542: [14:08:01] <_hschillig> Oh ok thanks for that... I want to be able to redirect them back if its invalid and redirect them to step two if it's valid.
543: [14:08:13] <zauberfisch> _hschillig: the silverstripe Form class is built around the idea that you go through this process:
544: [14:08:16] <_hschillig> oh itll automatically redirect them back before it even hits that?
545: [14:08:54] <zauberfisch> Form -> subit -> Form->validate() -> if invalid go back
546: [14:09:29] <zauberfisch> Form -> subit -> Form->validate() -> if valid, call the form action method (doApplyOne in your case)
547: [14:09:31] <R\w\C> hey guys how do i DataObject::get in template?
548: [14:09:48] <R\w\C> is it NameOfObject.Filter('id', x)
549: [14:09:52] <_hschillig> oh.. ok thanks for that explanation!
550: [14:11:23] <zauberfisch> R\w\C: well, you can use List(Page)
551: [14:11:54] <zauberfisch> _hschillig: so when you use form, you can pass it a validator
552: [14:12:08] <zauberfisch> _hschillig: by default, there is RequiredFields
553: [14:12:45] <zauberfisch> if you want more, you have to subclass RequireFields or Validator and have your own validator
554: [14:12:55] <zauberfisch> or you use one of the validator modules
555: [14:13:30] <zauberfisch> _hschillig: I have writen a small one for myself
556: [14:13:35] <zauberfisch> hold on a second
557: [14:16:55] <zauberfisch> _hschillig: https://gist.github.com/Zauberfisch/a4df461ca9d82be7005a
558: [14:19:22] <wmk> zauberfisch, LambdaValidator sounds interesting
559: [14:25:32] <zauberfisch> _hschillig:
560: [14:25:33] <zauberfisch> wmk:
561: [14:25:38] <zauberfisch> added an example as comment
562: [14:25:53] * zauberfisch should make an module of that
563: [14:26:55] <zauberfisch> its like the netefx validator with the callback rule, but less verbose
564: [14:27:27] <zauberfisch> _hschillig: note on the site: tutorials regarding forms are very often missunderstood.
565: [14:27:53] <zauberfisch> so they probably don't exmplain it that well
566: [14:33:20] * wmk quit (Quit: nice to meet you ;))
567: [14:38:53] <R\w\C> is ruby as good as people say it is?
568: [14:39:16] <R\w\C> im loving silverstripe , but do you think ruby (on rails) could be a better choice?
569: [14:43:27] * Shrike_Finland quit (Quit: Leaving.)
570: [14:49:42] * Pyjfdik has joined #silverstripe
571: [14:50:53] <Pyjfdik> LOL I just got my supervisor a bit of a telling off because I sent a company wide email telling people how to not be scared of the new software we just rolled out (people are lamenting the loss of the software it's replacing, even though new one has all same functionality - just in a different layout)
572: [14:51:25] <Pyjfdik> because "There's a communication plan in place" and all kinds of bollocks
573: [14:51:29] <Pyjfdik> JFDI
574: [14:51:53] <zauberfisch> Pyjfdik: haha
575: [14:52:36] <Pyjfdik> zauberfisch: users were getting wound up because they couldn't find the link to their paychecks.
576: [14:52:50] <zauberfisch> R\w\C: ruby on rails is good, but its also overrated aswell
577: [14:53:03] <Pyjfdik> so I sent an email with screenshot with a big red arrow on it saying "click here for paychecks" (external system)
578: [14:53:33] <Pyjfdik> turns out HR had planned a big email with "this is some of the shit you can do with new system" for this afternoon
579: [14:54:03] <Pyjfdik> I can about guarantee it wouldn't have addressed critical items such as that (even though it should be painfully obvious)
580: [15:10:49] <_hschillig> Whenever I create a field like this: new NumericField('Zip', 'Zip'); it puts the value 6 in as the default value.. when I'm not even setting it?
581: [15:18:22] * LoveDuckie_ has joined #silverstripe
582: [15:20:02] * LoveDuckie has joined #silverstripe
583: [15:21:44] * LoveDuckie_ quit (Remote host closed the connection)
584: [15:28:42] <Pyjfdik> _hschillig: 1) NumericField::create(...) 2) create($name) == create($name, $name) 3) Does your data object have anything for Zip in the defaults array?
585: [15:28:55] * LoveDuckie quit (Quit: Leaving)
586: [15:30:29] * LoveDuckie has joined #silverstripe
587: [15:31:05] <Pyjfdik> R\w\C: ruby is a headfuck for syntax :<
588: [15:31:13] <Pyjfdik> I'm not a fan.
589: [15:31:18] <R\w\C> lol Pyjfdik :)
590: [15:31:20] <Pyjfdik> Just use python.
591: [15:37:07] <_hschillig> No I don't use the defaults array for anything.
592: [15:37:47] <_hschillig> Using NumericField::create() rendered the same results..
593: [15:38:01] <_hschillig> It does this for all my numeric fields it seems. Sometimes it's 2, sometimes it's 6.
594: [15:38:10] <_hschillig> I always have to turn them into Textfields
595: [15:38:12] <Pyjfdik> yaeh, it's effectively the same as new, but you can use chaining and it goes through dependency injection.
596: [15:38:54] <Pyjfdik> http://api.silverstripe.org/3.1/class-NumericField.html
597: [15:38:55] <Pyjfdik> :<
598: [15:40:39] <Pyjfdik> _hschillig: according to https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/NumericField.php - it IS just a text field. Only with different validation method.
599: [15:42:00] <Pyjfdik> so that certainly is odd.
600: [15:42:13] <Pyjfdik> it'd definitely a field issue, not messy db ?
601: [15:43:15] <_hschillig> I didnt understand your last sentence...
602: [15:43:35] <_hschillig> I looked into the code and saw that it extended the textfield. im just not sure why its throwing random yintegers in there.
603: [15:44:01] <_hschillig> http://pastebin.com/1LWGyW4F
604: [15:44:05] <_hschillig> The zip just has Int(6)
605: [15:44:08] <_hschillig> Can you not do that in the DB?
606: [15:46:04] <_hschillig> that shouldnt matter tho
607: [15:46:15] <_hschillig> its not even tied to the UserApplication dataobject..
608: [15:46:33] <_hschillig> It's just creating the form fields.. so it doesn't even know the UserApplication model is apart of it.
609: [15:58:13] <Pyjfdik> _hschillig: well, that explains it.
610: [15:58:13] <Pyjfdik> http://api.silverstripe.org/3.1/source-class-Int.html#10-14
611: [15:58:27] <Pyjfdik> 'Zip' => 'Int(6)',
612: [16:00:47] <Pyjfdik> Int makes in, Int(6) makes Int, default 6
613: [16:01:23] <Pyjfdik> so although none exists in the db, the form will still fill with the 6.
614: [16:03:42] <_hschillig> so you cant make a size length in the database model?
615: [16:15:23] * lerni__ quit ()
616: [16:16:11] <Pyjfdik> _hschillig: well it's an integer, not a varchar.
617: [16:17:03] <Pyjfdik> http://dev.mysql.com/doc/refman/5.6/en/integer-types.html
618: [16:17:41] <_hschillig> Hmm.. I removed the 6 so it just shows 'Zip' => 'Int'... and did a dev/build and a flush and it still shows 6 as the default value.
619: [16:18:20] <Pyjfdik> _hschillig: what happens if you call it something other than 'Zip'?
620: [16:19:02] <_hschillig> And for integers in MySQL, you can still specify the length of the field like INT(11)
621: [16:19:45] <_hschillig> I changed it to NumericField::create('Zipp', 'Zipp') and it's blank... =/ I'm confused on why 'Zip' is 6 when that's not the default value in the database anymore. The default value is 0
622: [16:20:33] <_hschillig> Oh ok.. woops. I forgot I was populating it with a record :( And the default value was 6 from a while ago so that value was still there...
623: [16:20:50] <_hschillig> Is there a way to make the default value NULL for Zip so when a new record is created, it will insert NULL if it's not filled in?
624: [16:20:59] <_hschillig> Since on the first step, they aren't required to put their zip
625: [16:21:05] <_hschillig> And 0 in the field looks kinda funky.. lol
626: [16:34:33] <Pyjfdik> _hschillig: nope, it defaults to 0 iirc
627: [16:35:11] * Shrike_Finland has joined #silverstripe
628: [16:35:40] <Pyjfdik> and yeah, you have to remember that when you say Zip => Int(6) what you're saying is that $this->Zip = new Int($name='Zip', $default=6)
629: [16:37:05] <Pyjfdik> NOT mysql CREATE ... Zip INT(6), ...
630: [16:38:12] <_hschillig> Ah ok... Makes sense. It's just weird because you can do Varchar(100) and it puts 100 maxlength on it, not a default value of 100
631: [16:38:51] * jenniferaslan has joined #silverstripe
632: [16:41:05] <Pyjfdik> _hschillig: yeah, but that's because varchar takes it's length as a param (or defaults to 50)
633: [16:41:39] <Pyjfdik> I do think it's a bit weird having the default set there, it's slightly inconsistent. Although I suppose it's a database default, as opposed to a 'created a new object' default.
634: [16:46:47] * Otterpocket has joined #silverstripe
635: [16:47:38] <Otterpocket> Its late in the day andmy brain is broken, How do you return the value of a Key in template from ArrayData?
636: [16:53:00] * catcher has joined #silverstripe
637: [16:54:00] <_hschillig> Ah well thanks for explaining that to me :)
638: [16:54:31] <_hschillig> Also, this query: return UserApplication::get()->filter('UserID', User::getCurrentId())->First(); Is there a way to make it still pull the fields that are NULL back? It seems to cut them out and not pull them from the DB.. when I would still want to so I can set a value on them and update it.
639: [16:54:45] <kinglozzer> Otterpocket: $Me maybe?
640: [16:54:47] <kinglozzer> Not sure
641: [16:58:03] <Otterpocket> kinglozzer: I think my datastructure is wonky
642: [16:58:54] <Otterpocket> kinglozzer: http://www.sspaste.com/paste/show/54bfda971db4b
643: [16:59:19] <catcher> How to add a modeladmin filter that uses a has_one? It's MIA despite being in summary_fields.
644: [17:00:35] <catcher> mm, maybe a search context on the model
645: [17:00:41] <kinglozzer> Otterpocket: I'm confuse, but that looks similar to GroupedList at a glance
646: [17:02:20] <Otterpocket> catcher: Animal => Animal.Name
647: [17:02:52] <Otterpocket> kinglozzer: I am also confuse, I lost myslef in a maze of Cunfuse
648: [17:03:36] <kinglozzer> Well, what're you trying to do?
649: [17:04:14] <catcher> Oh killer, I can just use $searchable_fields property.
650: [17:05:15] <Otterpocket> I need an array Of Years, Inside each of the years an array or Months in those years with an ID, The Id is the Id of the article releated to that date
651: [17:06:07] <kinglozzer> Otterpocket: Why? What's the end goal? Also, can't you have more than one article in a given month?
652: [17:06:44] <Otterpocket> Its a filter articles by year and sub filter of by month, in 2 Dropdowns
653: [17:08:47] * gelignite has joined #silverstripe
654: [17:10:19] <_hschillig> Is there a way to return NULL fields when you run a query on the model?
655: [17:12:38] <_hschillig> Nvm... forgot about the method setField()
656: [17:14:36] <kinglozzer> Otterpocket: commented, but I'm not entirely sure what your arrays should contain, so I might be completely wrong :P
657: [17:15:50] <catcher> _hschillig, good talk :)
658: [17:16:14] <catcher> Stoked to see the new docs up.
659: [17:16:53] <Otterpocket> kinglozzer: Well.... The page loads
660: [17:17:26] <Otterpocket> kinglozzer: Now just working out the Template syntax
661: [17:17:56] <kinglozzer> Otterpocket: <% loop article_years %>{$Year} Months: <% loop Months %>{$ID} - {$Month}<% end_loop %><% end_loop %>
662: [17:18:04] <kinglozzer> Maybe - again, haven't tested
663: [17:19:44] <Otterpocket> kinglozzer: Nearly, one of the Months is being overwritten by the other
664: [17:19:55] <Otterpocket> kinglozzer: Thanks anyway, I can figure it out from here
665: [17:22:15] <Otterpocket> Makes is harder having to use shitty old arrya() instead of [] on this old server
666: [17:22:40] <Pyjfdik> _hschillig: UserApplication::get() will get ALL fields on UserApplication. Null or not.
667: [17:23:02] <Pyjfdik> If there is no value, they will be set to null. It's inflating an Object, not returning half results.
668: [17:23:43] <Pyjfdik> ie, it's not testing for null and then not including them in the query. Query's can't really do that anyway.
669: [17:28:55] <Pyjfdik> hooray, made me first stored proceedure
670: [17:29:04] <Pyjfdik> used mysql uservars for the first time too
671: [17:29:06] <Pyjfdik> yey
672: [17:29:08] * Pyjfdik quit ()
673: [17:29:45] * kinglozzer quit ()
674: [17:35:34] * Otterpocket quit (Quit: Otterpocket)
675: [17:37:35] * Shrike_Finland quit (Quit: Leaving.)
676: [17:43:21] * jeroenem quit (Quit: Page closed)
677: [17:49:31] * UndefinedOffset quit (Quit: Leaving.)
678: [17:58:27] * UndefinedOffset has joined #silverstripe
679: [18:03:39] * R\w\C quit (Quit: Textual IRC Client: www.textualapp.com)
680: [18:07:46] * Motoservo quit (Read error: Connection reset by peer)
681: [18:12:43] * LoveDuckie quit (Quit: Leaving)
682: [18:25:11] * veb has joined #silverstripe
683: [18:25:22] * veb quit (Client Quit)
684: [18:55:08] * Stomach has joined #silverstripe
685: [18:55:11] * MrGuits has joined #silverstripe
686: [18:58:23] * Guits quit (Ping timeout: 240 seconds)
687: [19:00:50] * antmas quit (Quit: Page closed)
688: [19:06:22] * Olliepop quit (Quit: Page closed)
689: [19:06:37] * Olliepop has joined #silverstripe
690: [19:17:56] * mobiusnz quit (Quit: Leaving.)
691: [19:21:34] * lerni has joined #silverstripe
692: [19:24:07] * mobiusnz has joined #silverstripe
693: [19:32:30] * camfindlay has joined #silverstripe
694: [19:34:43] * Ryan-Toast has joined #silverstripe
695: [19:35:56] * veb has joined #silverstripe
696: [19:44:53] * zippy has joined #silverstripe
697: [19:46:02] * DimiStripe quit (Quit: DimiStripe)
698: [19:52:10] <Stomach> hi team
699: [19:52:59] <Ryan-Toast> Morning, Stomach.
700: [19:53:32] * UndefinedOffset quit (Quit: Leaving.)
701: [19:54:48] * bemusedrat has joined #silverstripe
702: [19:54:57] <camfindlay> morning :)
703: [19:55:33] <camfindlay> a few redirect fixes on docs to push this morning, always part of the fun for migrations of docs, wooo!
704: [19:56:28] <camfindlay> been really kool getting feedback and reports from you guys, makes fixing things in the docs dare I say it some what pleasant lol
705: [20:03:47] * glenn-bautista has joined #silverstripe
706: [20:03:53] <zippy> camfindlay: :)
707: [20:04:06] <zippy> I found some issues last night, but didn't get a chance to fix them
708: [20:04:29] <camfindlay> if you find any more redirect related issues flick me a pull request or at least let me know
709: [20:05:16] * UndefinedOffset has joined #silverstripe
710: [20:05:20] <zippy> camfindlay: http://doc.silverstripe.org/en/developer_guides/testing/ -- the 3 links under 'Tutorials and recipes for creating tests using the SilverStripe framework'
711: [20:05:23] <zippy> naffed
712: [20:05:33] <camfindlay> the once from this morning was commandline being redirected from ‘reference’ when it used to be in ‘topics’ - somewhat validates why we restuctured always confused by those 2 categories.
713: [20:06:19] <zippy> btw, speaking of testing - do you know why tests take so long to run? I have a single test, using sqlite for the db engine but still takes 10 seconds to run
714: [20:06:33] <camfindlay> zippy thanks, that looks like old docs structure using hyphens and not underscores, shouwl be easy fix.
715: [20:07:04] <camfindlay> running via CLI zippy?
716: [20:07:07] <zippy> yes
717: [20:07:24] <zippy> the feedback loop from tests makes it very painful. Run test, wait 10 seconds, make a fix, run test, wait 10 seconds, make a fix,
718: [20:07:55] <camfindlay> maybe an excuse for continuous integration setup :P
719: [20:07:58] * hailwood has joined #silverstripe
720: [20:08:01] <zippy> ....
721: [20:08:20] <camfindlay> yeah I feel that pain too, unsure why it’s slow
722: [20:08:35] <Ryan-Toast> If I have a DO that extends memeber, can I change Member details from that DO somehow?
723: [20:08:43] <camfindlay> at least your using sqlite and not mysql that would be nasty
724: [20:09:00] <zippy> to per it into perspective.. my larvel 40 laravel tests with 200 assertions take a similar amount of time. Testing a single testcase with say 5 tests is about a second... so it's really quick to check the change I made didn't fack anything up
725: [20:09:14] <zippy> Ryan-Toast: I don't think your supposed to extend member as such, but use a DataExtesion
726: [20:09:51] <Ryan-Toast> zippy: Yeah, I’ve got an “Application” DO, and the client wants to be able to add files to the member from the application.
727: [20:09:54] <zippy> Ryan-Toast: http://doc.silverstripe.org/en/developer_guides/extending/extensions
728: [20:10:45] <zippy> http://doc.silverstripe.org/en/developer_guides/security/member#subclassing
729: [20:11:17] <zippy> but.. otherwise you should be able to do things like $this->FirstName or whatever
730: [20:13:22] <Ryan-Toast> zippy: I can get all the information fine, it’s just saving files to member from it’s Application :/
731: [20:14:05] <zippy> yea not sure about saving files, I haven't created a file object myself...
732: [20:14:10] <Stomach> Ryan-Toast
733: [20:14:16] <Ryan-Toast> Stomach: Stomach
734: [20:14:29] <Stomach> http://addons.silverstripe.org/add-ons/simonwelsh/hasoneedit
735: [20:16:22] <Ryan-Toast> Stomach: Doesn’t look like it handles files
736: [20:16:40] <Stomach> it should do
737: [20:16:41] <Ryan-Toast> OH, thought of a way to do it, nvm :)
738: [20:19:59] <camfindlay> Tie for today’s rewrite trivia: We have this which is not working as expected and without the / it makes an infinite redirect loop RewriteRule ^(.*)/installation$ /$1/getting_started/installation [R=301,L]
739: [20:20:18] <camfindlay> might try make it more targeted and explicit
740: [20:25:20] <zippy> lol you know why..
741: [20:25:39] <zippy> The rule is saying, starts with anything and ends with /installation
742: [20:25:46] <zippy> and you are redurecting to a url, which ends in /installation
743: [20:25:58] <zippy> so it will always hit that rule
744: [20:26:17] <zippy> @camfindlay: ^
745: [20:26:30] <camfindlay> figure adding /en/installation might do the trick
746: [20:26:42] <camfindlay> so it’s a bit more specific
747: [20:26:59] <zippy> RewriteRule ^en/installation$ /en/getting_started/installation [R=301,L]
748: [20:27:04] <zippy> like that?
749: [20:27:34] <camfindlay> I’ll try it out on beta server and see
750: [20:29:28] <zippy> you could get fancy and do
751: [20:29:29] <zippy> RewriteRule ^([a-z]{2})/installation$ /$1/getting_started/installation [R=301,L]
752: [20:29:42] <zippy> that way it will pick up en or es or whatever language
753: [20:30:08] <camfindlay> good point
754: [20:30:48] <camfindlay> works locally, I’ll push to beta for you to check zippy :)
755: [20:30:57] <zippy> im working.. you check :)
756: [20:31:17] <zippy> ;-)
757: [20:33:53] <MK_away> camfindlay: either adding /en/ or adding condition RewriteCond %{REQUEST_URI} !/getting_started/installation/?
758: [20:34:00] * MK_away is now known as MichalKleiner
759: [20:34:01] <MichalKleiner> morning
760: [20:34:14] <camfindlay> hey man, yeah zippy beat you to it
761: [20:34:15] <MichalKleiner> loops are evil
762: [20:36:00] <Ryan-Toast> can you do a $this->update(array(‘foo’ => ‘bar’));$this->write(); in a DO?
763: [20:36:18] <zippy> Ryan-Toast: you can do something similar
764: [20:36:20] <zippy> I think
765: [20:37:38] <zippy> searching
766: [20:38:16] <MichalKleiner> Ryan-Toast: from dataextension you can access $this->owner->property
767: [20:38:57] * UncleCheese has joined #silverstripe
768: [20:39:04] * Kingy[a] is now known as Kingy
769: [20:39:10] <Kingy> hiiii
770: [20:39:17] <zippy> hello!!
771: [20:39:23] <Ryan-Toast> zippy: lol, I think I just fucked the whole database with that :P
772: [20:39:29] <Kingy> howzit zippy
773: [20:39:34] <zippy> yea good how are ya
774: [20:39:41] <zippy> Ryan-Toast: so... doesn't work eh...
775: [20:39:50] <Ryan-Toast> zippy: Nope, niether does the site, haha
776: [20:39:52] <hailwood> Hey guys, is it possible to give a group access to a specific tab in siteconfig but not the rest?
777: [20:39:54] <camfindlay> MichalKleiner this was zippy’s suggestion https://github.com/silverstripe/doc.silverstripe.org/commit/34799017885c47d488cdcfe530c0869b5a93a0d3
778: [20:40:03] <camfindlay> working on beta site :)
779: [20:40:27] <Kingy> zippy: not bad. working late tonight. waiting on Igor so we can do a release :)
780: [20:40:45] <zippy> camfindlay: if it's only ever been en, then you can just ditch ([a-z]{2}) for en and ditch the $1 for en...
781: [20:41:03] <zippy> but eh :)
782: [20:41:04] <camfindlay> na, I’m all for longer term fixes
783: [20:41:18] <camfindlay> who knows, maybe we’ll translate it into pirate?
784: [20:41:18] <MichalKleiner> camfindlay: that will work too..
785: [20:41:28] <MichalKleiner> zippy: in that case also the ^ would need to go
786: [20:41:29] <MichalKleiner> ;-)
787: [20:42:01] <zippy> how so? the url is /en/installation
788: [20:42:18] * Colin[pi] has joined #silverstripe
789: [20:42:21] <MichalKleiner> yeah sorry, I didn't get ditch for... I read just ditch as to remove
790: [20:42:24] <camfindlay> In context all the rewrites in there that chillu added start with RewriteRule ^(.*)
791: [20:42:35] <Colin[pi]> morning all!
792: [20:42:39] <zippy> Ryan-Toast: I am sure ther eis something
793: [20:42:40] <zippy> Colin[pi]: hi
794: [20:42:59] <Ryan-Toast> zippy: Basically how do you update a DO onAfterWrite for any reason?
795: [20:44:07] <hailwood> camfindlay, is there meant to be a link in this section somewhere? http://doc.silverstripe.org/en/developer_guides/security/access_control#nuts-and-bolts-figuring-it-out
796: [20:44:35] <Kingy> evening Colin[pi]
797: [20:44:48] <Colin[pi]> oh hey Kingy! what time there?
798: [20:44:55] <Kingy> almost midnight
799: [20:44:58] <Colin[pi]> ah k k
800: [20:45:27] <Kingy> not too bad, but seeing as it's dark right on 5, it has been night for a long time already haha
801: [20:45:51] <Colin[pi]> heheh
802: [20:46:07] <camfindlay> hailwood - have a feeling those are Hamish’s notes perhaps lol
803: [20:47:27] * spekulatius has joined #silverstripe
804: [20:51:50] * MichalKleiner is now known as MK_busy
805: [20:56:27] * muskie9 quit (Ping timeout: 264 seconds)
806: [20:56:30] * terryapodaca has joined #silverstripe
807: [20:59:50] * bemusedrat quit (Quit: Leaving)
808: [21:00:17] * micmania1 has joined #silverstripe
809: [21:01:56] * mahfuz has joined #silverstripe
810: [21:01:58] <Ryan-Toast> Can someone please tell me if they know why the onAfterWrite() hangs? http://www.sspaste.com/paste/show/54c0137e069a9
811: [21:03:00] <Stomach> infinite loop
812: [21:03:15] <Stomach> write -> onafterwrite -> write -> onafterwrite
813: [21:03:25] <Ryan-Toast> Stomach: you’re correct :P
814: [21:03:41] <Stomach> haha I didn't even look at the file :P
815: [21:03:47] <Colin[pi]> yep I've done that before too :\
816: [21:03:48] <Stomach> i always do that >_<
817: [21:03:54] <Colin[pi]> always feel a bit herp derp
818: [21:04:21] <Ryan-Toast> EVERYONE MOVE ALONG, NOTHING TO SEE HERE.
819: [21:05:52] <Colin[pi]> Ryan-Toast: http://i.imgur.com/shKxVP4.gif
820: [21:06:11] <Ryan-Toast> Colin[pi]: http://i.imgur.com/hJsDx.gif
821: [21:06:26] <Colin[pi]> rofl
822: [21:07:27] * muskie9 has joined #silverstripe
823: [21:08:45] <Kingy> micmania1: Igor in the office yet
824: [21:08:52] <micmania1> nope
825: [21:08:57] <zippy> Kingy: just play some CS
826: [21:09:02] <zippy> which is probably RL over there
827: [21:09:06] <Kingy> zippy: I was lol
828: [21:09:16] <Kingy> sohard.png
829: [21:09:33] <Kingy> 200 ping no matter when I play
830: [21:09:43] <zippy> do you guys have gifs on speed dial or something
831: [21:09:45] <Kingy> need some better interwebs
832: [21:10:02] <Kingy> try and stream twitch or something
833: [21:10:09] <Kingy> have to have it on potato quality
834: [21:10:16] <zippy> is it just due to distance, or is it just shit internets?
835: [21:10:19] <Kingy> and even then if gf loads a site on tablet it'll freeze
836: [21:10:22] <zippy> packet loss and shit
837: [21:10:28] <Kingy> just shitty net
838: [21:10:54] <Kingy> #islandlife
839: [21:11:33] <camfindlay> zippy MichalKleiner http://docs.silverstripe.org/en/installation live and fixed
840: [21:12:02] <camfindlay> I think
841: [21:12:11] <camfindlay> hmm
842: [21:12:45] <zippy> fyi chrome will cache 301's in your browser for a bit
843: [21:12:54] <zippy> so test with new window, or, comamnd line
844: [21:13:04] <zippy> Location: http://docs.silverstripe.org/en/getting_started/installation
845: [21:13:07] * Kingy is now known as Kingy[a]
846: [21:13:08] <zippy> looks good
847: [21:13:36] <zippy> coffee time
848: [21:14:53] <camfindlay> I think it’s not working if the / is at the end
849: [21:18:13] <camfindlay> yeah looks like http://docs.silverstripe.org/en/installation/ with the / doesn’t match and redir
850: [21:18:25] * UncleCheese quit (Ping timeout: 252 seconds)
851: [21:21:39] * cloph quit (Ping timeout: 264 seconds)
852: [21:22:24] <Colin[pi]> hmmm can MS pull this off? Not convinced... http://youtu.be/aThCr0PsyuA
853: [21:23:42] * _hschillig has left #silverstripe
854: [21:24:20] <Ryan-Toast> Colin[pi]: Gestures always look so fucking awkward.
855: [21:27:22] * scpi has joined #silverstripe
856: [21:29:59] <zippy> camfindlay: no it wont work with a / on the end, because your rule is installation$
857: [21:30:16] <camfindlay> drat
858: [21:30:49] <camfindlay> perhaps drop the $ and include / explicitly?
859: [21:31:02] <zippy> then it wont match if there is no /
860: [21:31:06] <zippy> you could do
861: [21:31:14] <camfindlay> as there are a bunch of sub urls after this path too
862: [21:31:27] <camfindlay> so gatta make sure they continue to work too
863: [21:32:02] <zippy> example url
864: [21:32:34] <zippy> you could do installation/?$ to make the / conditioal
865: [21:33:19] <muskie9> Colin[pi] this reminds me of a Ted Talk from '09 https://www.youtube.com/watch?v=YrtANPtnhyg
866: [21:33:24] <zippy> but none of your other rules are checking for a / so...
867: [21:35:40] * UndefinedOffset quit (Quit: Leaving.)
868: [21:36:07] <camfindlay> yeah true. That installation one gets a lot of hits as it’s on the sitelinks results in google search it comes from the SERP with a /
869: [21:37:28] <zippy> camfindlay: RewriteRule ^([a-z]{2})/installation/?$ /$1/getting_started/installation [R=301,L] will do the job
870: [21:37:36] * Sticks has joined #silverstripe
871: [21:38:46] <zippy> you got access to the server logs eh, why not dump the access log for 404s and grep out a list, sorted by most trigged?
872: [21:41:03] <Ryan-Toast> I love finding stuff on google only to have it link to the “We’re Sorry” page.
873: [21:41:31] <camfindlay> zippy - na I have deploy access but not ssh to get logs
874: [21:41:39] <zippy> boo
875: [21:41:47] <camfindlay> I’ll be pulling a GWT list of 404 once it populates
876: [21:42:46] <camfindlay> I’ll just test that rule out now on beta
877: [21:45:02] * terryapodaca has left #silverstripe
878: [21:45:04] * antmas has joined #silverstripe
879: [21:45:33] <antmas> morning all
880: [21:46:38] <zippy> antmas: look who finally showed up
881: [21:47:16] <antmas> :D
882: [21:47:22] <antmas> zippy: I was quite ill yesterday
883: [21:47:24] <Colin[pi]> antmas: WHAT TIME DO YOU CALL THIS?
884: [21:47:27] <antmas> :(
885: [21:47:31] <antmas> OMG SORRY
886: [21:47:34] * antmas sobs
887: [21:47:37] <zippy> antmas: CS-itis
888: [21:47:39] <Colin[pi]> STEP INTO MY OFFICE
889: [21:47:53] * wracu has joined #silverstripe
890: [21:47:59] <antmas> come on it was FC4itis
891: [21:48:17] <zippy> heh
892: [21:48:22] <zippy> enjoying it?
893: [21:48:43] <antmas> it's pretty cool
894: [21:48:49] <antmas> I think a bit overhyped but good
895: [21:49:10] <Ryan-Toast> FC4 is good fun.
896: [21:49:32] <Ryan-Toast> Grendade launcher + Helicopter = good times.
897: [21:49:40] <antmas> yeah that is awesome
898: [21:49:50] <antmas> the helicopter pretty much makes the game
899: [21:50:00] <Ryan-Toast> I just run around fucking 360 noscope #420blazeit
900: [21:50:21] <antmas> I spent over an hour hovering over trees to watch them sway from the propellers :P
901: [21:50:23] <Colin[pi]> Ryan-Toast: https://www.youtube.com/watch?v=nfJXKG4IB20
902: [21:51:19] <Ryan-Toast> antmas: Why…?
903: [21:51:41] <antmas> Ryan-Toast: new GPU
904: [21:51:49] <antmas> have to 'justify' it to myself
905: [21:52:23] <Colin[pi]> antmas: I know dat feel
906: [21:52:29] <antmas> mm
907: [21:53:11] * Colin[pi] quit (Read error: Connection reset by peer)
908: [21:54:04] <camfindlay> zippy, that rewrite is doing the trick
909: [21:54:29] * Colin[pi] has joined #silverstripe
910: [21:57:48] * cloph_away has joined #silverstripe
911: [22:00:14] * benjhocking quit (Ping timeout: 245 seconds)
912: [22:01:02] * benjhocking has joined #silverstripe
913: [22:02:27] <antmas> I was planning on sending Jazz to her sister's in July for her bday, but she literally said yesterday that she is saving to do the same anyway
914: [22:02:44] <antmas> lol whoops, channel :D
915: [22:04:05] <zippy> O.o
916: [22:04:13] <zippy> camfindlay: http://static.comicvine.com/uploads/original/6/65990/2905945-vlege7g.jpg
917: [22:04:27] <zippy> ah it's not a gif, jez... not as pro as Ryan-Toast
918: [22:04:35] <Colin[pi]> and so anyway, I said WHY would you put a banana there?? and with fire ants??
919: [22:04:36] <camfindlay> word
920: [22:04:40] <Colin[pi]> whoops wrong channel
921: [22:04:41] <Colin[pi]> ;D
922: [22:04:47] <antmas> haha
923: [22:04:59] <camfindlay> Colin[pi] no, no, I tihnk that is about right for this channel :P
924: [22:05:22] <Ryan-Toast> zippy: http://i.imgur.com/p0e64UE.gif
925: [22:06:32] <Colin[pi]> lol
926: [22:09:39] <antmas> I need to find a good lan case
927: [22:10:08] <antmas> aaaaand pretty much any search will take me to /buildapc
928: [22:10:49] <zippy> a lan case? whats wrong with any case?
929: [22:10:58] <zippy> needs lighjts?
930: [22:11:06] <Colin[pi]> antmas: http://www.dansdata.com/images/egstuff/toteon400.jpg
931: [22:11:30] <antmas> zippy: my normal case is a full tower monster
932: [22:11:34] * pippy quit (Ping timeout: 246 seconds)
933: [22:11:46] <antmas> need something smaller and light to move my spare machine parts in
934: [22:11:51] <Colin[pi]> antmas: bet you say that to all the girls
935: [22:11:57] <antmas> :D
936: [22:12:04] <antmas> that's my goto pickup line
937: [22:12:08] <antmas> not even hello
938: [22:12:18] <Colin[pi]> m'lady
939: [22:12:29] <Ryan-Toast> Mine is: “How many days a week do you think is acceptable to have breakfast for dinner"
940: [22:13:20] <Colin[pi]> Ryan-Toast: then they look at you like http://i.imgur.com/g0tO1NI.jpg
941: [22:13:29] <antmas> lol
942: [22:13:57] <antmas> I like this http://www.coolermaster.com/case/lan-box/haf-xb-evo/
943: [22:14:36] <Ryan-Toast> antmas: too much superfluous shit sticking off of it.
944: [22:14:36] <Colin[pi]> carry handles in the side vs on top? AMATEUR HOUR
945: [22:15:01] <antmas> :|
946: [22:15:12] <antmas> such helpful
947: [22:15:25] <Ryan-Toast> I’ve had three of these in my lifetime. Literal tanks: http://www.newegg.com/Product/Product.aspx?Item=N82E16811139013
948: [22:16:12] <antmas> yeah I had a link open for the c70
949: [22:16:16] <antmas> that looks awesome
950: [22:16:46] * antmas_ has joined #silverstripe
951: [22:16:58] <Colin[pi]> does antec not make any lan cases?
952: [22:17:03] <Colin[pi]> doesn't appear so
953: [22:18:12] * lerni quit ()
954: [22:20:40] * antmas quit (Ping timeout: 246 seconds)
955: [22:23:23] * antmas_ is now known as antmas
956: [22:28:30] * Kingy[a] is now known as Kingy
957: [22:28:39] <Kingy> still waiting
958: [22:28:57] <zippy> ahah
959: [22:28:59] <zippy> http://tvnz.co.nz/othersports-news/lazarus-seagull-steals-show-after-being-knocked-unconscious-in-aussie-t20-clash-6222257
960: [22:29:05] <zippy> seagull hit by cricket ball
961: [22:29:11] <Kingy> hahaha
962: [22:29:46] <Kingy> lol pasha is streaming on twitch
963: [22:29:48] <Kingy> he is fuming
964: [22:30:02] <Kingy> VP v HR got DDOS'd hard
965: [22:30:40] <antmas> hahahaha
966: [22:30:46] <antmas> zippy: that is awesome
967: [22:31:07] <Colin[pi]> zippy: saw that, apparently he's ok!
968: [22:31:33] <zippy> yea, he came to later and went back on the field
969: [22:32:48] <Kingy> alarm going off in 4 hoursr
970: [22:33:52] <antmas> zippy: Colin[pi] I love his face when he wakes up
971: [22:33:57] <antmas> he's all like 'wtf guis'
972: [22:35:00] <ss23> rofl
973: [22:35:03] <ss23> @ that seagull
974: [22:35:09] <ss23> He's like "o.o oh god my headache"
975: [22:35:18] * gelignite quit (Quit: http://bit.ly/nkczDT)
976: [22:35:25] <ss23> WTF THE SEAGUL IS CHASING THE BALL
977: [22:35:27] <ss23> PLS WHY
978: [22:35:31] <Colin[pi]> would have hurt like a mofo
979: [22:35:31] <Kingy> ss23: nudge Igor for me :)
980: [22:35:37] <ss23> Kingy: He's not here
981: [22:35:37] <ss23> :O
982: [22:35:38] <ss23> Dunno
983: [22:35:40] <ss23> Colin[pi]: Yeah
984: [22:35:43] <ss23> Susprised he didn't die
985: [22:35:50] <Kingy> gah, he's online
986: [22:35:53] <Kingy> wanna do a release for me
987: [22:36:01] <ss23> For NZX?
988: [22:36:05] <Kingy> ja
989: [22:36:47] <ss23> I went and found Igor
990: [22:36:49] <ss23> He'll be on soon
991: [22:36:49] <ss23> :D
992: [22:36:59] <Kingy> lol thanks, can always rely on you
993: [22:37:44] <ss23> :P
994: [22:38:28] <ss23> lol
995: [22:38:31] <ss23> https://confluence.atlassian.com/display/DOC/Confluence+Security+Advisory+-+2015-01-21
996: [22:38:35] <ss23> unauth rce in confluence
997: [22:40:20] * scpi quit (Quit: scpi)
998: [22:43:34] <antmas> that seagul needs .gif treatment
999: [22:43:40] <antmas> must be one out there already
1000: [22:50:34] <Ryan-Toast> will onBeforeWrite ona new DO hold the ID?
1001: [22:51:12] <zippy> Ryan-Toast: no, not written yet
1002: [22:51:21] <Ryan-Toast> zippy: thought so, chur.
1003: [22:51:22] <ss23> So, I shit you not, a client got alerts about someone trying to sqli them (like, automated script ran from china) so has raised it as a p1, asking for incident report, and is saying "WE NEED TO REPORT THIS TO NCSC"
1004: [22:51:26] <ss23> idek
1005: [22:51:29] <ss23> makes me rage so hard
1006: [22:52:11] <zippy> ss23: people are afraid of what they don't understand. For you, it's the haircuts
1007: [23:06:27] * Kingy is now known as Kingy[a]
1008: [23:12:03] <zippy> Time: 8.69 seconds, Memory: 72.75Mb
1009: [23:12:04] <zippy> OK (1 test, 3 assertions)
1010: [23:12:21] <zippy> I wonder if waving my arms around while running tests will make them run faster
1011: [23:13:33] <Colin[pi]> zippy: couldn't hurt
1012: [23:13:34] <zippy> Time: 8.94 seconds, Memory: 79.00Mb
1013: [23:13:34] <zippy> OK (3 tests, 13 assertions)
1014: [23:13:44] <zippy> at least running more tests isn't slower... it's just the "setup time"
1015: [23:13:56] <zippy> whys it take so long to setup the test...
1016: [23:15:29] <Stomach> zippy - new database, insert all data into database
1017: [23:15:31] <Stomach> etc
1018: [23:15:53] <zippy> using sqlite in memory which makes it a little faster, but still not awesome
1019: [23:16:27] <zippy> guess it's because it's basically doing a dev/build
1020: [23:17:43] <ss23> hhvm makes tests faster
1021: [23:17:48] <ss23> warning: may cause random failures
1022: [23:19:04] <zippy> one of these days, I am going to look into this slownes..
1023: [23:26:23] * catcher quit (Ping timeout: 252 seconds)
1024: [23:45:47] * r_hector has joined #silverstripe

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