#silverstripe IRC Log

IRC log for 22 October 2014

All timestamps are in UTC.

1: [00:13:20] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
2: [00:14:22] * muskie9 is now known as _muskie9_
3: [00:19:26] * _muskie9_ is now known as muskie9
4: [00:20:33] * Ryan-Toast quit (*.net *.split)
5: [00:20:34] * babak quit (*.net *.split)
6: [00:20:35] * ajmitch quit (*.net *.split)
7: [00:20:36] * ec8or__ quit (*.net *.split)
8: [00:25:51] * babak has joined #silverstripe
9: [00:25:52] * ajmitch has joined #silverstripe
10: [00:25:52] * ec8or__ has joined #silverstripe
11: [00:26:40] * 32NAAN1VX has joined #silverstripe
12: [00:26:40] * Ryan-Toast has joined #silverstripe
13: [00:28:15] <Ryan-Toast> Stomach: hey, I’m getting a Fatal error: Class 'Drewm\MailChimp'
14: [00:28:15] <Ryan-Toast> do I have to require it since it’s namespaced?
15: [00:28:28] <Ryan-Toast> or should it be required already?
16: [00:29:30] * muskie9 is now known as _muskie9_
17: [00:33:43] * zippy has joined #silverstripe
18: [00:35:51] <Ryan-Toast> Stomach: nvm, my vendor folder had the wrong permissions :)
19: [00:35:54] <Stomach> :)
20: [00:37:11] * nyeholt has joined #silverstripe
21: [00:37:15] * markcl has joined #silverstripe
22: [00:37:35] <markcl> I'm having this error: Failed opening required 'PHPUnit/Framework/TestResult.php'
23: [00:37:40] <markcl> when running unit tests
24: [00:37:50] <markcl> Im sure
25: [00:37:56] <markcl> I already composer installed phpunit
26: [00:38:03] <markcl> And its already on my vendor directory
27: [00:38:19] * camfindlay quit (Quit: camfindlay)
28: [00:44:22] * irgbit quit (Remote host closed the connection)
29: [00:45:33] * camfindlay has joined #silverstripe
30: [00:45:49] * camfindlay quit (Client Quit)
31: [00:45:53] * Luke has joined #silverstripe
32: [00:46:17] * Luke is now known as Guest84294
33: [00:46:41] * fb3rasp has joined #silverstripe
34: [00:47:18] * jedateach quit (Quit: jedateach)
35: [00:48:34] * Tanger has joined #silverstripe
36: [00:49:10] <Guest84294> What a noob ss23
37: [00:49:13] <ss23> qq
38: [00:49:20] <ss23> who even ircs as a gust
39: [00:49:21] <ss23> guest
40: [00:49:40] <halkyon> geez, what a n00b
41: [00:49:45] <Guest84294> megusta
42: [00:49:48] <stojg> ^c ^q :q quix exit
43: [00:50:07] <ss23> oh god how do I quit ^C^C^C^
44: [00:50:16] * camfindlay has joined #silverstripe
45: [00:50:23] * _muskie9_ is now known as muskie9
46: [00:50:48] * bro has joined #silverstripe
47: [00:50:48] * Guest84294 is now known as GuestLuke
48: [00:51:12] * bro is now known as Guest44639
49: [00:51:21] * fb3rasp quit (Ping timeout: 260 seconds)
50: [00:56:11] * gavro has joined #silverstripe
51: [00:57:51] <markcl> Help on unit tests! Fatal error: require_once(): Failed opening required 'PHPUnit/Framework/TestResult.php'
52: [00:59:01] <zippy> markcl: hello
53: [01:00:59] * gavro quit (Ping timeout: 265 seconds)
54: [01:02:03] <Colin[pi]> holy shit: http://sploid.gizmodo.com/company-creates-real-back-to-the-future-hoverboard-and-1648887686
55: [01:02:26] * hailwood has joined #silverstripe
56: [01:03:02] <antmas> Colin[pi]: they better not pull a tony hawk
57: [01:03:27] <irogue_> mmm
58: [01:03:33] <irogue_> that was delicious lamb korma
59: [01:03:40] <antmas> mmm lamb
60: [01:03:44] * jedateach has joined #silverstripe
61: [01:03:54] * antmas had a lamb fillet salad for lunch
62: [01:05:06] <Colin[pi]> stop making me hungry
63: [01:06:55] <irogue_> Colin[pi]: have some lamb
64: [01:07:08] <Kingy> pork belly for dinner :D
65: [01:07:48] <Colin[pi]> Kingy: had that last night! so bloody good
66: [01:07:55] <antmas> I really want to cook pork belly
67: [01:07:57] <antmas> so cheap
68: [01:08:06] <Colin[pi]> and tastes amazing
69: [01:08:12] <antmas> mmm dat fat
70: [01:08:13] <irogue_> "A man who can't use his legs has been charged with dangerous driving after being caught using a shortened walking stick to operate his car."
71: [01:08:15] <Kingy> best thing to do
72: [01:08:19] <Kingy> cook it in apple cider
73: [01:08:28] <antmas> yeah
74: [01:08:34] <antmas> pear cider aint bad either
75: [01:08:44] <Kingy> then at the end grill it to get crackling obv
76: [01:08:45] <Kingy> fuck yeah!
77: [01:09:04] <markcl> Ok. I found out SS uses an old version of PHPUnit
78: [01:09:20] <markcl> So following the instructions on the unit testing wiki, will show an error when you run unit tests
79: [01:11:00] <zippy> markcl: have to use 3 something yea?
80: [01:11:07] <irogue_> yep
81: [01:12:12] <irogue_> that's in the require-dev for silverstripe-framework tho
82: [01:12:46] <irogue_> so as long as you don't --no-dev, it should yoink phpunit
83: [01:12:51] <irogue_> (the right version)
84: [01:19:16] * willr has joined #silverstripe
85: [01:20:14] * antmas is burning a CD for the first time in 3 years
86: [01:21:02] <irogue_> wtf
87: [01:21:31] <antmas> you kinda forget the sound the cd drive makes after a while :P
88: [01:21:39] <irogue_> that reminds me, I need to find a computer with an optical drive so I can get the drivers for my security camera
89: [01:21:57] <antmas> irogue_: can't you get them online?
90: [01:22:44] * UncleCheese has joined #silverstripe
91: [01:23:21] * UncleCheese quit (Client Quit)
92: [01:24:20] * UncleCheese has joined #silverstripe
93: [01:24:41] <Colin[pi]> antmas: is it one of those drives that sounds like it'll make your PC fall apart?
94: [01:24:58] <irogue_> antmas: neg, is a no-name brand
95: [01:25:03] <Colin[pi]> bbbbzzzzzzzzzRRRRRRRRRZZZZZZZZZZZZZZZZZZZ *rattle clatter fizz buzz*
96: [01:25:09] * UncleCheese quit (Client Quit)
97: [01:25:26] <antmas> Colin[pi]: haha pretty much
98: [01:25:31] <antmas> irogue_: ah, lame
99: [01:25:50] <irogue_> the driver cd that came in the box is a CD-R
100: [01:25:52] <antmas> hate it when you get those no name brands and they give you those 1/2 size discs
101: [01:25:59] <irogue_> antmas: yup, is one of those
102: [01:26:16] <antmas> those things feel so dodgy
103: [01:26:33] <irogue_> the only optical drive i'm *aware* of in this office is a slot-load in oly's imac
104: [01:26:40] <irogue_> and you can't put 1/2 siez in slot-load
105: [01:26:50] * antmas has tried this
106: [01:27:02] <irogue_> oh, actually
107: [01:27:07] <antmas> it made some pretty interesting noises when I did that on my imac
108: [01:27:10] <irogue_> the tester has a non-mac
109: [01:27:13] <irogue_> for testing on
110: [01:27:26] <irogue_> for once it'll come in handy for something other than seeing how shit IE8 is
111: [01:28:17] * Colin[pi] needs to have powdered milk in his coffee ;_;
112: [01:28:25] <antmas> Colin[pi]: wat
113: [01:28:56] <Colin[pi]> ran out of milk, not going to supermarket until this arvo :(
114: [01:29:04] <irogue_> dude
115: [01:29:10] <irogue_> not okay
116: [01:29:22] <antmas> I can't go near powdered milk
117: [01:29:26] <irogue_> is there no gas station or dairy nearby?
118: [01:29:38] <Colin[pi]> irogue_: not close enough... well, 10 min walk :P
119: [01:29:42] <irogue_> i don't even drink coffee and I know how bad that is
120: [01:29:50] <Colin[pi]> my gf LOVES powdered milk :(
121: [01:29:54] <Colin[pi]> brazilian thing
122: [01:29:54] <irogue_> weirdo
123: [01:29:57] <Colin[pi]> ugh
124: [01:30:07] <irogue_> Colin[pi]: is 2min walk to new world metro from here :P
125: [01:30:08] <Colin[pi]> she makes that shit like a fucking paste
126: [01:30:41] <willr> anyone had issues with GridField and having more than one tab open. Bug that objects get added to the wrong list
127: [01:30:45] <Colin[pi]> I'll attempt to make one coffee with this crap and report my experience :P
128: [01:30:54] <irogue_> [14:30:08] <Colin[pi]> she makes that shit like a fucking paste
129: [01:30:56] <irogue_> #nocontext
130: [01:30:59] <Colin[pi]> hahaha
131: [01:32:03] <irogue_> willr: I think I've seen that before
132: [01:32:23] <irogue_> but it's certainly not everywhere
133: [01:32:34] <irogue_> nfi what the edge case is where it happens
134: [01:32:40] <willr> Yeah I can reproduce it easily now. Was there a fix you’ve seen before I dive into that rabbit hole
135: [01:32:55] <antmas> Colin[pi]: I used to help produce powered milk for 2 years and never again
136: [01:33:30] * UncleCheese has joined #silverstripe
137: [01:33:57] <antmas> I think by the time I left there my lungs had probably absorbed 1 tonne of milk powder :|
138: [01:34:05] <zippy> UncleCheese: Page::create - worked great in my render
139: [01:34:11] <UncleCheese> no shit
140: [01:34:43] <UncleCheese> yeah, the issue is that $Menu doesn't point to anything if you're just rendering a plain ViewableData
141: [01:34:51] <UncleCheese> by providing a fallback, at least the function runs
142: [01:35:49] <zippy> UncleCheese: yea, I know why it didn't work. Was just trying to do a "least honky" method to get it to work. Same with the SiteConfig method in the ContentController could almost be moved back to Controller - but then I guess that is getting some CMS logic into the framework..
143: [01:36:10] <UncleCheese> exactly
144: [01:36:21] <UncleCheese> ContentController is more proximate to the CMS
145: [01:36:56] <irogue_> willr: nah, no idea where to look. it doesn't happen in the majority of cases.
146: [01:37:25] * irgbit has joined #silverstripe
147: [01:38:02] <Colin[pi]> antmas: that bad huh?
148: [01:38:08] * Colin[pi] tries coffee
149: [01:38:22] <Colin[pi]> oh god
150: [01:38:23] <Colin[pi]> ...
151: [01:38:25] <Colin[pi]> oh
152: [01:38:39] <Colin[pi]> tastes like plastic
153: [01:40:22] <antmas> Colin[pi]: yeah put me off milk for at least a year
154: [01:40:36] <antmas> Colin[pi]: how old is the powder?
155: [01:40:47] <Colin[pi]> not too old, 6 months maybe
156: [01:41:55] * perverse has joined #silverstripe
157: [01:42:12] <Colin[pi]> oh wow, just asked my gf about it, assumed it was cheaper in brazil to buy powdered milk... nope, it's more expensive than fresh and she prefers it >_<
158: [01:42:39] <micmania1> willr: what version of ss you using? I fixed an issue (probably over a year ago) where the gridfield input names weren’t unique. Sounds like the same kind of thing.
159: [01:42:52] <Kingy> Colin[pi]: she's a total milk snob
160: [01:42:56] <Colin[pi]> lol
161: [01:43:07] <irogue_> Colin[pi]: fire her :P
162: [01:43:15] <antmas> lol milk noob
163: [01:43:21] <Colin[pi]> irogue_: right back to brazil you go!
164: [01:43:23] <irogue_> lol
165: [01:43:24] <Colin[pi]> on the next plane
166: [01:43:25] <Colin[pi]> lol
167: [01:43:40] <antmas> and take your powdered hate with you
168: [01:44:05] <irogue_> I have dutch cousins
169: [01:44:27] <irogue_> I remember going to their house as a kid, and they were all served milos made with 1 tsp of milo and powdered milk
170: [01:44:49] <irogue_> it was disgusting
171: [01:44:54] <antmas> lol
172: [01:44:58] <Colin[pi]> uggghhh
173: [01:45:02] <antmas> those poor, poor children
174: [01:45:12] <antmas> won't somebody think of them?
175: [01:46:00] <antmas> 1 tsp of milo just basically makes the water brown
176: [01:46:23] <zippy> irogue_: my dad... was a 1 tsp milo man...
177: [01:46:41] * irogue_ is all about the 2 heaped tsp
178: [01:46:52] <irogue_> and by heaped I mean like fucking everest
179: [01:46:53] <Colin[pi]> gotta be 2 heaped right irogue_? o/
180: [01:47:08] <zippy> two in the cup and 1 in the mouth
181: [01:47:14] <Colin[pi]> yes!!!
182: [01:47:16] <irogue_> yep
183: [01:47:21] <Colin[pi]> big ol mouth of dry milo
184: [01:47:23] <Colin[pi]> win
185: [01:47:40] * fb3rasp has joined #silverstripe
186: [01:47:59] <irogue_> Colin[pi]: you also have different milo to us :P
187: [01:48:17] <antmas> you have peasant milo
188: [01:48:17] <Colin[pi]> irogue_: what? no. what? really?
189: [01:48:22] <irogue_> yep
190: [01:48:25] <irogue_> different recipe
191: [01:48:30] <irogue_> same packaging etc
192: [01:48:32] <Colin[pi]> seriously? wtf
193: [01:48:42] <Colin[pi]> ok I need to try this other milo next time in NZ
194: [01:49:05] <irogue_> whenever my grandparents visit the side of the family that's moved to AU, they're asked to bring as much NZ milo as they can with them
195: [01:49:14] <antmas> I think our milo has gotten weaker over time
196: [01:49:52] <irogue_> basically every milo in the world is different
197: [01:50:02] <irogue_> http://en.wikipedia.org/wiki/File:Nestl%C3%A9_Milo_Comparison.jpg
198: [01:50:03] <Colin[pi]> there are more than 2 varieties??
199: [01:50:19] <Colin[pi]> what the shit
200: [01:50:30] <Colin[pi]> it's like I've discovered this whole other world that didn't exist before
201: [01:50:35] <Colin[pi]> I thought milo was milo
202: [01:51:04] <irogue_> lol
203: [01:51:16] <irogue_> had the canned cold milo drinks?
204: [01:51:23] <Colin[pi]> so which is the "authentic" milo?
205: [01:51:41] <Ryan-Toast> Colin[pi]: All of them
206: [01:51:47] <Colin[pi]> :O
207: [01:51:54] <ss23> fuck, I forgot to get Japanese milo when I was there!
208: [01:51:59] <irogue_> Colin[pi]: well, it started in australia. but who knows if the current AU recipe is the same as the original
209: [01:52:02] <ss23> Though I had one of their vending machine iced coffees... was bad
210: [01:52:09] * perverse quit (Quit: My Mac has gone to sleep. ZZZzzz…)
211: [01:52:18] <Colin[pi]> ok ok, here is a thing I do... is this weird or not... I put milo on top of custard
212: [01:52:24] <irogue_> I fucking love the milo chocolate bars, but the cereal is meh
213: [01:52:29] * fb3rasp quit (Ping timeout: 260 seconds)
214: [01:52:46] <irogue_> Colin[pi]: nah, not weird at all
215: [01:52:48] <mahfuz> Hi all me again. everything is working fine that i discussed with zippy and UncleCheese in the morning today. But still have a problem. Can't figure out what I am doing wrong. Is there anyone to help?/
216: [01:52:49] <Colin[pi]> like, as in I fucking cover the top of the custard with milo until it's all brown
217: [01:52:56] <Colin[pi]> and it's AWESOME
218: [01:53:03] <zippy> Colin[pi]: milo on top of rices
219: [01:53:06] <UncleCheese> hi, mahfuz .. what did you break?
220: [01:53:10] <Colin[pi]> milo... with rice?
221: [01:53:16] <irogue_> ricies :P
222: [01:53:17] <UncleCheese> that's disgusting
223: [01:53:20] <Colin[pi]> oh
224: [01:53:22] <UncleCheese> kiwis and their milo
225: [01:53:24] <irogue_> missed a letter there zippy
226: [01:53:35] <antmas> lol rices
227: [01:53:36] <UncleCheese> prices?
228: [01:53:37] <antmas> blegh
229: [01:53:40] <zippy> :D
230: [01:53:42] <antmas> ricies*
231: [01:53:46] <UncleCheese> umm
232: [01:53:47] <irogue_> apparently the US is basically the only country that doesn't have milo
233: [01:53:52] <UncleCheese> i think you're still missing a letter, antmas
234: [01:54:02] <UncleCheese> irogue_ that is true
235: [01:54:03] <zippy> ricies http://www.sanitarium.co.nz/products/breakfast/ricies
236: [01:54:04] <irogue_> nope, ricies
237: [01:54:11] <Colin[pi]> irogue_: yeah they have just nesquik or something right?
238: [01:54:12] <mahfuz> Hi UC haven't broken anything but can't figure out what I am doing wrong.
239: [01:54:12] <UncleCheese> Ricies is a word?!!?
240: [01:54:20] <zippy> snap crackle pop!!
241: [01:54:21] <irogue_> Colin[pi]: nesquik or ovaltine
242: [01:54:26] <UncleCheese> I think it's similar to Olaltine
243: [01:54:29] <UncleCheese> Ovaltine
244: [01:54:32] <mahfuz> Could you please look at the code here - http://www.sspaste.com/paste/show/5447085c21db4
245: [01:54:33] <irogue_> nesquik usually cold, ovaltine usually hot
246: [01:54:36] <irogue_> whereas milo is done either/or
247: [01:54:36] <zippy> mahfuz: whats the problem
248: [01:54:38] <UncleCheese> ohh
249: [01:55:03] <mahfuz> I have commented the problem in the code
250: [01:55:25] <UncleCheese> why are you still using $this->owner?
251: [01:56:11] <zippy> are you using GET or POST for your form action...
252: [01:56:13] <UncleCheese> and when you say "this is not working" what does that mean?
253: [01:56:53] <UncleCheese> mahfuz instead of using $request->postVar use the $data array that you're given in that function
254: [01:57:03] <UncleCheese> that's method agnostic
255: [01:57:37] <zippy> ...
256: [01:58:27] * wracu has joined #silverstripe
257: [01:58:45] <zippy> UncleCheese: Didn't you say before, that $data is only populated if POST? http://logs.simon.geek.nz/index.php?date=2014-10-22#log_1461795
258: [01:58:50] <wracu> any solr guru's around?
259: [01:58:53] <mahfuz> I meant getting this error - http://www.sspaste.com/paste/show/54470a077fb91
260: [01:59:19] <mahfuz> I am using POST the default one.
261: [01:59:35] <irogue_> wracu: not really a guru, but what's up?
262: [01:59:58] <UncleCheese> zippy i can see why you would think that, but no.. i was just confused about what he was doing
263: [02:00:00] <wracu> trying to provide a "did you mean" on search results, but the stemming is throwing me...
264: [02:00:20] <zippy> k
265: [02:00:31] <irogue_> wracu: ah, haven't touched stemming in solr yet, only sphinx
266: [02:00:40] <UncleCheese> good lord that's a fucked up query
267: [02:01:08] <wracu> np. the stem doesnt make sense without at least one ending...
268: [02:01:29] <mahfuz> I tried to check whether I have set the relationship correct but didn't find anything
269: [02:01:54] <UncleCheese> mahfuz can you show us your form definition?
270: [02:04:14] <pippy> 'ImageID' => 'Text',
271: [02:04:14] <pippy> wat
272: [02:04:35] <Colin[pi]> pippy: maybe it's a loooong ID
273: [02:04:35] <mahfuz> Here is the form definition along with the search code - http://www.sspaste.com/paste/show/54470b4d0cef6
274: [02:04:53] <mahfuz> Haven't used all the form fields in the search query yet
275: [02:06:23] * irgbit quit (Remote host closed the connection)
276: [02:07:40] <zippy> pippy: I thikn it's an inhouse reference to this image (photo)
277: [02:07:51] <UncleCheese> mahfuz you're querying against the PhotoCollection.Title
278: [02:07:54] <UncleCheese> the form submits the ID
279: [02:08:55] <UncleCheese> It's probably a lot easier if you get the PhotoCollection by ID and return ->Photos()
280: [02:09:15] <UncleCheese> PhotoCollection::get()->byID($data['PhotoCollectionID'])->Photos();
281: [02:09:51] <pippy> fair enough
282: [02:11:03] <irogue_> O/H "Have you hard of calming manatee?"
283: [02:12:31] <antmas> irogue_: http://calmingmanatee.com/29?
284: [02:12:54] <mahfuz> I need to query against the PhotoCollection.Title . I have changed the Form code to submit title but then also it shows the SQL error.
285: [02:14:13] <antmas> gah, so many missed calls thanks to my status not resetting after lunch o.O
286: [02:14:45] <irogue_> antmas: lol, yeah. just a weird thing to hear being said to a client :P
287: [02:15:07] <mahfuz> Why can't I query as it works with Keywords.Title (Keywords is a Tag Object from Silverstripe Tags) ? Did I make any mistake in the class relation definition?
288: [02:17:02] <irogue_> How big of a deal it is when someone is shot by a cop in NZ: http://www.nzherald.co.nz/nz/news/article.cfm?c_id=1&objectid=11346270
289: [02:18:24] <antmas> irogue_: not sure if being sarcastic...
290: [02:18:42] <irogue_> nope
291: [02:18:59] <irogue_> headline news, 3 investigations going on - even though the other guy shot first
292: [02:19:10] <antmas> ah
293: [02:19:13] <antmas> was gonna sawy
294: [02:19:15] <antmas> say*
295: [02:19:25] <antmas> yeah it seems pretty nuts
296: [02:19:27] <irogue_> polar opposite of USA :P
297: [02:19:33] <irogue_> antmas: yeah, but I'm okay with nuts
298: [02:19:35] <Colin[pi]> lol that's what I was thinking
299: [02:19:41] <antmas> exactly
300: [02:19:59] * irgbit has joined #silverstripe
301: [02:20:06] <irogue_> rather it go too far that way than too far the other way
302: [02:20:19] <antmas> he must have been having a pretty bad Tuesday
303: [02:20:47] <irogue_> "oh, an unarmed kid was shot by a cop? well, he was a cop, so obv he was in the right!"
304: [02:21:14] <UncleCheese> mahfuz if you have the ID, why would you want to match the title?
305: [02:21:48] <mahfuz> ok let me try with that
306: [02:22:09] <UncleCheese> the difference is that keywords is a text field, so the user isn't likely to search by the ID of the tag.. but your dropdown field is submitting an ID.. even though the user is selecting a readable title.. it's the ID that counts
307: [02:24:35] <mahfuz> As there will be more than one criteria to find Photo, can I combine the results without duplicating before sending to the template?
308: [02:25:05] <UncleCheese> when a dude gets shot by the cops in the US, the headline is, "ERMERGERD... we're spending taxpayer money on this low-life's medical bills!"
309: [02:25:33] <UncleCheese> mahfuz yes, the query is lazy-loaded, so you can manipulate that list any way you want and it wont' run a query until it hits your <% loop %>
310: [02:25:47] <irogue_> UncleCheese: if it even makes the news!
311: [02:25:57] <UncleCheese> yeah, if that
312: [02:26:11] <UncleCheese> the local paper might pick it up
313: [02:26:30] <mahfuz> what is the code to merge results without duplicating?
314: [02:26:38] <UncleCheese> and then everyone goes, "ERMERGERD WHY ISN'T LADY GAGA ON THE FRONT PAGE?!"
315: [02:26:57] <UncleCheese> merge results?
316: [02:27:53] <mahfuz> I will get some Photos by this code PhotoCollection::get()->byID($data['PhotoCollectionID'])->Photos();
317: [02:28:07] <irogue_> "West Auckland becomes New Zealand's new murder capital"
318: [02:28:09] <irogue_> YUS
319: [02:28:12] <irogue_> no longer South Auckland!
320: [02:28:17] <UncleCheese> mah right
321: [02:28:19] <mahfuz> I will get the others using some other code. How to combine the 2 results without duplicating?
322: [02:28:50] <UncleCheese> you can either chain the methods, or just overwrite the object
323: [02:29:13] <UncleCheese> $photos = PhotoCollection::get()->byID($data['PhotoCollectionID'])->Photos()->filter('SomethingElse'...);
324: [02:29:18] <UncleCheese> or
325: [02:29:23] <UncleCheese> $photos = PhotoCollection::get()->byID($data['PhotoCollectionID'])->Photos();
326: [02:29:32] <UncleCheese> $photos = $photos->filter('something else'.........);
327: [02:31:03] <irogue_> is there an easy way to be able to drop $Blah into a wysiwyg and have it include Blah.ss
328: [02:31:16] <mahfuz> Ok I will try with those.
329: [02:31:35] <mahfuz> Let me clarify one other thing
330: [02:31:36] <UncleCheese> irogue_ depends what you mean by easy
331: [02:31:55] <UncleCheese> i would do one of two things
332: [02:32:07] <UncleCheese> decorate HTMLText to have an IncludeParser method
333: [02:32:17] <mahfuz> $this->owner is in 2 places for the form one is $form = new SearchForm($this->owner, 'SearchForm', $fields, $actions);
334: [02:32:18] <UncleCheese> or write a parser, and do $Content.Parse(IncludeParser)
335: [02:32:27] <UncleCheese> mahfuz dear god why
336: [02:32:28] <mahfuz> This other is return $this->owner->customise($data)->renderWith(array('Page_results', 'Page'));
337: [02:32:51] <irogue_> UncleCheese: hmm, those are both sounding difficult
338: [02:33:07] <UncleCheese> irogue_ just preg_match_callback your shit, and check each result against SSViewer::hasTemplate();
339: [02:33:09] <UncleCheese> bob's yer uncle
340: [02:33:33] <UncleCheese> actually oyu want preg_replace_callback, so you can inject the contents of the include
341: [02:33:45] <mahfuz> do I remove in both the places?
342: [02:34:04] <UncleCheese> yes, $this->owner-> doesn't belong in a class that is not a DataExtension
343: [02:34:45] <mahfuz> Ok so I will use - $form = new SearchForm('SearchForm', $fields, $actions);
344: [02:34:55] <UncleCheese> no, don't use searchform
345: [02:34:57] <UncleCheese> ugh
346: [02:35:00] <mahfuz> and return $this->customise($data)->renderWith(array('Page_results', 'Page'));
347: [02:35:14] <UncleCheese> you just need Form()
348: [02:36:32] <mahfuz> ok
349: [02:36:50] <UncleCheese> new Form($this, 'RefineSearchForm', $fields, $actions);
350: [02:38:34] <irogue_> might just simplify this, was going to be extra-nice and let the client put $Blah wherever, but tbh it'll pretty much always be in the same place
351: [02:38:47] <irogue_> so i'll just throw in a "Include Blah on this page?" checkbox
352: [02:39:00] <mahfuz> ok thanks. For the RefineSearchForm when I wanted to use a different template it didn't work but I can use the same template for that like this - return $this->customise($data)->renderWith(array('Page_results', 'Page'));
353: [02:39:10] <irogue_> <% if $ShowBlah %><% include Blah %><% end_if %>
354: [02:39:13] <irogue_> much easier :P
355: [02:39:17] <mahfuz> Is there any naming convention for the template files?
356: [02:39:58] <UncleCheese> mahfuz yes.. They should be in CamelCase, and if you have a template that changes based on an action in the controller, e.g. search results, you should use an underscore
357: [02:40:14] <zippy> and don't forget to flush
358: [02:40:15] * spekulatius quit (Read error: No route to host)
359: [02:40:15] <UncleCheese> you have a bit of an edge case here, because the form doesn't submit to a form action
360: [02:40:32] <UncleCheese> so Page_results is really just arbitrary
361: [02:40:41] <UncleCheese> you could call it SearchResultsPage
362: [02:40:55] * spekulatius has joined #silverstripe
363: [02:41:40] <irogue_> http://www.radionz.co.nz/news/national/257454/auckland-commuters-catch-capital
364: [02:43:23] <mahfuz> My Search Function Name - RefineSearchForm() Form action - new FormAction('RefinedResults', 'Search') - What should be my template name to be used in return $this->customise($data)->renderWith(array('XXXXXXXXX', 'Page'));
365: [02:44:16] <UncleCheese> whatever you want
366: [02:44:32] <zippy> AwesomeSearchResults
367: [02:44:36] <UncleCheese> you're specifying renderWith, so you get to choose your own template name
368: [02:45:01] <UncleCheese> by the way, mahfuz you should rename your form action handler to be lowerCamelCase
369: [02:45:19] <UncleCheese> in SS, CamelCase functions denote methods that are callable by the template
370: [02:45:35] <Colin[pi]> yeah make it like doRefinedResults
371: [02:45:35] <mahfuz> I placed a template in the same folder as the Page_results and used it in renderWith but didn't work, when I used Page_results its working
372: [02:45:35] * spekulatius quit (Read error: No route to host)
373: [02:45:46] <zippy> mahfuz: flush!
374: [02:45:54] <UncleCheese> "didn't work"
375: [02:46:15] * spekulatius has joined #silverstripe
376: [02:46:37] * zippy wonders if he should of used SwipeStripe
377: [02:47:09] <mahfuz> Ok I will try again after flushing
378: [02:47:30] <irogue_> zippy: DIYing it?
379: [02:47:45] <zippy> irogue_: started small
380: [02:47:53] <zippy> nek minute, bank deposits
381: [02:47:53] <antmas> zippy: Shopify :D
382: [02:48:03] <irogue_> zippy: it always starts small :P
383: [02:48:28] * fb3rasp has joined #silverstripe
384: [02:48:31] <zippy> mm
385: [02:50:04] <irogue_> and then before you know it, coupons! weight-based shipping! multi-currency! bulk and tiered pricing!
386: [02:51:33] <Colin[pi]> irogue_: it's always the shipping that has killed me on ecomm sites
387: [02:51:42] <Colin[pi]> it always seems to get ridiculously complicated
388: [02:52:33] <zippy> and tax - if you care about it
389: [02:52:49] <zippy> different states and countries have different tax
390: [02:52:58] <zippy> somtimes you need to collect, other times not, vat.. stuff, argh
391: [02:53:04] <irogue_> yeap
392: [02:53:09] * fb3rasp quit (Ping timeout: 260 seconds)
393: [02:53:12] * antmas wonders how Shopify does it
394: [02:53:21] <zippy> antmas: pixies
395: [02:53:24] <zippy> lots of them
396: [02:53:26] <antmas> must be
397: [02:53:42] <antmas> their shipping and tax stuff is black magic
398: [02:54:38] <antmas> man, airplane mode makes charging so much faster
399: [02:55:03] <zippy> turn phone off, goes faster
400: [02:55:34] <irogue_> glhf doing that with a windows phone
401: [02:55:36] <irogue_> lol
402: [02:56:40] <antmas> :D
403: [02:57:21] <zippy> well, to commited to drop it now for swipestripes
404: [02:57:30] * spekulatius2 has joined #silverstripe
405: [02:57:42] <irogue_> zippy: whatre you currently using for payments?
406: [02:57:50] <zippy> PayPal and now, bank deposits
407: [02:58:01] <irogue_> i mean, using a module?
408: [02:58:01] <UncleCheese> hey, guys
409: [02:58:08] <UncleCheese> need some feedback
410: [02:58:22] <irogue_> UncleCheese: put a mic in front of a speaker
411: [02:58:36] <UncleCheese> if our fake site for learning silverstripe is an online instruction on some random topic, say, how to cook
412: [02:58:44] <UncleCheese> and there are courses and lessons, track your progress, etc
413: [02:58:48] <zippy> we gave you ideas, you rejected them...
414: [02:58:56] <UncleCheese> is that too meta for people who are learning silverstripe via exactly the same means
415: [02:59:15] <zippy> irogue_: no, I didn't like the sound of the silverstripe-paypal saying not supported. I considered omnipay but just used existing code I had to do it
416: [02:59:18] <UncleCheese> rejected is a harsh word.. i colllected a lot of ideas and this one seems the best fit
417: [02:59:31] <zippy> sorry, dismissed :)
418: [02:59:36] <UncleCheese> true
419: [02:59:37] <irogue_> zippy: I'd drop in omnipay
420: [02:59:41] <UncleCheese> they were dismissed
421: [02:59:59] <UncleCheese> i dunno. would you find it distracting if a tutorial were teaching you how to built a tutorial?
422: [03:00:00] <irogue_> has support for paypal and for manual payments, and easy to turn on other methods in future
423: [03:00:13] <antmas> UncleCheese: yeah I would
424: [03:00:27] * UncleCheese dismisses that response
425: [03:00:39] <zippy> UncleCheese: go full circle... and build the site that is teaching them how to use silverstripe :)
426: [03:00:44] <UncleCheese> ugh
427: [03:00:49] <UncleCheese> you guys are messing with my head
428: [03:01:16] <irogue_> zippy: also, DPS has a2a now
429: [03:01:28] <irogue_> which is like POLi except with the banks' cooperation instead of just dodgy as fuck
430: [03:01:39] <zippy> a2ayea POLi is sketcy
431: [03:01:55] <zippy> I have refused to intergrate POLi twice out of principle
432: [03:02:44] <irogue_> yup
433: [03:02:46] * irogue_ has also refused
434: [03:03:28] <zippy> UncleCheese: just build a brocure website with slider on the home page, contact form, a gallery page with lightbox, a register login which gives them access to pdfs. It's probably what 90% of Silverstripe websites do..
435: [03:03:49] <antmas> zippy: +1
436: [03:03:54] <UncleCheese> yeah, i think that's a possiblity for a secondary set of tutorials
437: [03:04:02] <UncleCheese> but most of the questions we get are on complex features of ss
438: [03:04:06] <antmas> and then a more advanced set
439: [03:04:31] <UncleCheese> well there will be two branches of them.. one for just quick "how tos"
440: [03:04:33] <jordanmk> anyone know how i can add a field before the gridfield of a ModelAdminExtension?
441: [03:04:38] * veb has joined #silverstripe
442: [03:04:44] <UncleCheese> a modular lesson on how to do something random.. like, pagination
443: [03:04:54] <UncleCheese> and then the lessons that are part of a larger project
444: [03:05:20] * Ryan-Toast quit (Quit: Ryan-Toast)
445: [03:05:53] <antmas> UncleCheese: if that was the chosen approach, then the micro tuts should all be part of the same project - with a final project demo at the end
446: [03:05:56] <antmas> or something like that
447: [03:06:13] <UncleCheese> i know.. it's hard
448: [03:06:27] <UncleCheese> pagination will almost certainly be in the bigger stuff
449: [03:06:33] <zippy> UncleCheese: just build facebook in silverstripe, done
450: [03:06:40] <zippy> SilverBook
451: [03:06:41] * cloph has joined #silverstripe
452: [03:06:45] <antmas> I bet, but you know... any halfway decent video tuts will be a win over the current tuts
453: [03:06:45] <UncleCheese> but there's also a need to address people who just want to browse tips
454: [03:06:54] <UncleCheese> and just learn somethign really quick
455: [03:07:08] * cloph_away quit (Ping timeout: 250 seconds)
456: [03:07:10] <UncleCheese> zippy thought about FB, but we don't want anythign too "appy"
457: [03:07:27] <UncleCheese> it needs to use the SiteTree and stuff, so those 90% that you talk about don't feel left out
458: [03:07:44] * Ryan-Toast has joined #silverstripe
459: [03:07:48] <antmas> man
460: [03:08:05] <antmas> I'm wearing on one those shirts that just need 1 more button at the bottom
461: [03:08:16] <antmas> so people don't stare at my fly
462: [03:08:19] <antmas> :|
463: [03:08:36] <irogue_> UncleCheese: can't remember what framework it was, but there was a series of screencasts I encountered a few years back that was quite good
464: [03:08:38] <zippy> UncleCheese: Movie review website.... list of movies, people can login and leave comments / reviews on them. Give them stars or something. Even use the form module for further discussions...
465: [03:08:40] <irogue_> it was for a fictional Real Estate site
466: [03:08:52] <irogue_> so you had Agents, Properties, Open Homes
467: [03:09:00] <zippy> irogue_: woo that'd be good. Agents canlogin and add properties etc
468: [03:09:05] <irogue_> yep
469: [03:09:07] <zippy> Open Home calander
470: [03:09:11] <zippy> events module :D
471: [03:09:27] <irogue_> covers a ton of functionality
472: [03:10:02] <zippy> You could then have realeaste agents and then add a paid function, so their properties get gold borders of listed first or something
473: [03:10:40] * zippy is fucking awesome at typing...
474: [03:10:46] <irogue_> lol
475: [03:11:37] * GuestLuke quit (Ping timeout: 246 seconds)
476: [03:13:23] <UncleCheese> those are really good ideas, guys
477: [03:13:24] <UncleCheese> shit
478: [03:13:45] <Ryan-Toast> Real estate template?
479: [03:13:54] <UncleCheese> yeah, i mean.. it's a little crusty
480: [03:14:03] <UncleCheese> but it does showcase a lot of functionality
481: [03:14:05] <irogue_> yeah
482: [03:14:08] <Ryan-Toast> I used to run a couple of those.
483: [03:14:14] <irogue_> can do both sales and rentals too
484: [03:14:20] <UncleCheese> i'd rather see a holiday rental site
485: [03:14:27] <Ryan-Toast> Charged agents a monthly fee.
486: [03:14:32] <novaweb> Manually forcing/setting a URL segment on a particular page class...? Any pointers?
487: [03:14:35] <Ryan-Toast> and got their hosting too.
488: [03:14:37] <Ryan-Toast> was ez money
489: [03:14:47] <zippy> novaweb: on before write
490: [03:14:48] <irogue_> UncleCheese: same difference really. it's all about that set of relationships that cover such a wide base
491: [03:14:52] <UncleCheese> yeah
492: [03:14:55] <UncleCheese> availability calendar
493: [03:15:02] <UncleCheese> what's open this weekend
494: [03:15:04] <novaweb> thanks zippy, but is there anything like static defaults?
495: [03:15:27] <zippy> novaweb: there is defaults, but you wanted to force the url?
496: [03:19:25] <adrexia> anyone done much with surveys in silverstripe?
497: [03:24:48] <Colin[pi]> adrexia: as in.. making a survey system?
498: [03:24:57] <adrexia> or integrating
499: [03:25:11] <adrexia> really just interested in the options
500: [03:25:52] <adrexia> looks like the closest there is could be the polls module, but nothing that targets users or randomises or any of the other techniques
501: [03:26:24] <irogue_> nah, I've generally just linked off to surveymonkey or fluidsurveys
502: [03:26:30] * adrexia nods
503: [03:27:02] <novaweb> what removes punctuation from URLSegment? Trying to set URLSegment using onBeforeWrite, my segment has a / but it is being ommitted.
504: [03:27:07] <Colin[pi]> adrexia: I started making a module agggges ago for it
505: [03:27:12] <adrexia> .org is using a paid service
506: [03:27:13] <Colin[pi]> it was a 2.4 one though
507: [03:27:17] * adrexia nods
508: [03:27:18] <novaweb> *omitted
509: [03:27:32] * Berocca has joined #silverstripe
510: [03:27:35] <adrexia> https://opinahq.com/ lopoks ultra creepy, but is open source
511: [03:27:40] <adrexia> ...and, java?
512: [03:27:45] <adrexia> I think
513: [03:27:54] <irogue_> novaweb: afaik a slash in a urlsegment wouldn't work o_O
514: [03:28:10] <novaweb> hmmm :/
515: [03:28:59] <micmania1> novaweb: http://api.silverstripe.org/3.1/class-URLSegmentFilter.html - Its meant to filter a single segment making / invalid
516: [03:29:21] <irogue_> novaweb: if your segment was foo/bar it'd be looking for bar that was a child page of foo
517: [03:29:43] * antmas quit (Quit: Page closed)
518: [03:30:28] <stojg> adrexia: I'm sure there is a poll-service that is included with a js lib and marketing can do all nifty stuff without bothering developers..
519: [03:30:53] <adrexia> stojg I looked but not really
520: [03:31:03] <adrexia> at least nothing I'd trust with user data
521: [03:31:17] <Colin[pi]> yes... yesssss give us your data... yesssssssss
522: [03:31:21] <adrexia> I have seen clients use survey monkey before
523: [03:31:27] <Colin[pi]> WE WONT DO ANYTHING WITH IT WE PROMISE
524: [03:31:41] <adrexia> lol
525: [03:32:25] <stojg> "oops, was that someone hacking our database and grabbing all emails and passwords? oops. sorry"
526: [03:32:31] <adrexia> there is something really creepy about sites that offer that particular service
527: [03:32:53] <stojg> or "We have no sold out to google and they are grabbing all the data and feeding it to their ad service motor"
528: [03:33:05] <stojg> *now
529: [03:34:37] <adrexia> yeah, that looks like the least of our worries
530: [03:35:15] <adrexia> Nothing about any of the free sites gives me reason to beleive they wouldn't just abuse it wholesale
531: [03:35:16] <Colin[pi]> remember kids, if the product you're using is free, you are typically the product
532: [03:36:18] <adrexia> +1
533: [03:36:34] <adrexia> ...and in this case, so are all your website visitors
534: [03:37:17] <Colin[pi]> mm
535: [03:38:50] * Stomach_ has joined #silverstripe
536: [03:40:00] <irogue_> yeah, is why we couldn't use Google Analytics on the Privacy Commissioner website
537: [03:40:19] <irogue_> google aren't exactly known for their consideration for privacy :P
538: [03:40:25] <Colin[pi]> but.. but.. google's unofficial slogan is "don't be evil"?
539: [03:40:32] <Colin[pi]> so they're nice guys, right?
540: [03:40:33] <Colin[pi]> right?
541: [03:40:40] * Stomach quit (Read error: Connection reset by peer)
542: [03:41:06] <irogue_> Colin[pi]: lol
543: [03:41:08] <irogue_> https://privacy.org.nz/blog/yaris-or-jazz/
544: [03:42:12] <simon_w|work> Ah, Piwik. That's what it's called
545: [03:42:56] <Berocca> Hey guys. No idea if anyone can help here. I got three EC2 instances, each running SS3. Each app/instance points to the same AWS RDS database instance - obv a remote machine. The three instances sit behind a load balancer. Now, I can log into SS on any of the EC2 instances directly via their IP. But if I go through the load balancer, I get passed to one of three instances, but I can't log in - it. Anyone any ideas?
546: [03:43:31] <zippy> Berocca: yes
547: [03:43:40] <irogue_> Berocca: most likely because each server has different sessions
548: [03:43:47] <zippy> Berocca: are you using DB sessions?
549: [03:43:59] <Berocca> I have no idea ;)
550: [03:44:22] <Berocca> this is an area that I'm not so hot with
551: [03:44:43] <zippy> Berocca: can you drop two of the sites out so there is just one to confirm it does work fine with 1, while going through the load balancer?
552: [03:44:55] <Berocca> yep easy to do
553: [03:45:04] <irogue_> http://docs.aws.amazon.com/aws-sdk-php/guide/latest/feature-dynamodb-session-handler.html
554: [03:45:04] <Berocca> give me a few mins
555: [03:45:44] <irogue_> ^ that's how we handle sessions for sites on EC2
556: [03:46:37] <zippy> irogue_: how well does EC2 work out for you? couldn't you lose the server at any time sort of thing (more so than triditioal sort of hosting)?
557: [03:47:08] * simon_w|work looks behind the couch for zippy's lost servers
558: [03:47:13] <Berocca> yep - removing two instances leaving one solves the problem
559: [03:47:15] <irogue_> zippy: yes, but have multiple instances in multiple AZs
560: [03:47:32] <irogue_> chances of all instances going AWOL at once is fuckall
561: [03:47:35] <Berocca> yeah that's what I'm going for
562: [03:47:46] <simon_w|work> Berocca, another option is to get your load balancer to send the same IPs to the same servers
563: [03:47:55] <zippy> yea ^ sticky sessions
564: [03:48:01] <irogue_> yeah, that's the easiest option, but it has some downsides
565: [03:48:19] <Berocca> irogue - will that doc help me out fixing this?
566: [03:48:24] <simon_w|work> Turns out Facebook kinda abuse load balancing to "fix" bugs
567: [03:48:28] <irogue_> Berocca: it's an option, yeah
568: [03:48:34] <irogue_> it's how we handle it
569: [03:48:47] <simon_w|work> Bug's only likely to be on a handful of servers, so hitting refresh tends to fix it
570: [03:48:48] <Berocca> perfect!!!
571: [03:48:48] <zippy> irogue_: so if you lose an instance, do you have a copy / clone of instance or you use a script to create a new instance, setup php, and check out your code?
572: [03:48:57] <irogue_> zippy: it's all auto-scaling
573: [03:49:05] <zippy> irogue_: magic in the cloud eh
574: [03:49:06] <irogue_> the number of instances is constantly changing
575: [03:49:13] <Berocca> I thought it was a long shot coming in here, but no, everyone's on it - awesome :)
576: [03:49:16] * fb3rasp has joined #silverstripe
577: [03:49:26] <zippy> irogue_: right, but when a new instance is provisised how does it get a copy of the site?
578: [03:49:34] <Berocca> cheers irogue, zippy, simon
579: [03:50:13] <irogue_> zippy: all part of the cloudformation scripts
580: [03:51:09] <zippy> irogue_: thanks!
581: [03:51:27] <irogue_> zippy: also, every time we deploy the site, all instances get deleted
582: [03:51:45] <zippy> so I guess in the script there will be something pulling the code from somewhere
583: [03:51:49] <irogue_> spin up an entire new set of instances > deploy to them > smoketest > delete old instances
584: [03:51:50] <zippy> a git repo or something
585: [03:52:18] <irogue_> (and obviously point the ELB at the new instances)
586: [03:52:19] <zippy> this sounds way more fun then what I am currently doing...
587: [03:53:11] <irogue_> I dunno, ask stojg how much fun it is :P
588: [03:53:19] <zippy> stojg: fun much?
589: [03:53:49] * fb3rasp quit (Ping timeout: 260 seconds)
590: [03:53:50] <stojg> zippy: say, have tried vodoo before?
591: [03:53:59] <zippy> stojg: well.. I am using silverstripe
592: [03:54:07] <stojg> same kind of fun then
593: [03:54:07] <irogue_> hahaha
594: [03:54:12] <zippy> doing Page::create() doesn't actually create a db record does it, until I hit create
595: [03:54:12] <simon_w|work> Heck, even just figuring out the pricing structure is hard enough
596: [03:54:20] <zippy> not create, write
597: [03:54:34] <zippy> doing Page::create() doesn't actually create a db record does it, until I hit write
598: [03:54:58] <simon_w|work> And you can call ->publish() before then
599: [03:55:35] <zippy> UncleCheese: Page::create() in the renderWith() is the best thing all week
600: [03:56:33] * wracu quit (Quit: Leaving)
601: [03:56:42] * novaweb shuts down
602: [03:57:07] * novaweb quit (Quit: Leaving)
603: [03:57:30] * Robin_ has joined #silverstripe
604: [03:59:36] <Robin_> Hi all, does anyone know what the problem is for this error, Warning: require_once(): Unable to allocate memory for pool. ?
605: [04:00:18] <irogue_> Robin_: sounds like an APC issue
606: [04:01:05] * jedateach quit (Quit: jedateach)
607: [04:01:13] <Robin_> OK, I don't have the same problem with any other site, maybe I'm running close to the limit of memory
608: [04:01:59] <Robin_> Thanks irougue
609: [04:02:36] <irogue_> Robin_: yeah. if this is on shared hosting, I'd talk to your web host. they may be limiting your APC size
610: [04:05:42] <Robin_> Irogue, Cool, I'll get onto them now and see what they say.
611: [04:07:05] <zippy> irogue_: isn't there a stats page, or a script you can use to dump out some APC stats Robin_ ?
612: [04:07:31] <irogue_> zippy: there will be, but on shared hosting you generally won't have any control over it
613: [04:08:29] <irogue_> hmmm
614: [04:08:44] <zippy> true but least can see stats, stats are always cool
615: [04:09:09] <Robin_> zippy: its cloud hosting, I'll see what I can find in the man pages
616: [04:09:33] <irogue_> I seem to have found myself in a situation of having no small bits of work that I can use to fill out the rest of my day
617: [04:09:42] <zippy> irogue_: reddit
618: [04:09:44] <mahfuz> Hi zippy and UC. The ?flush=1 worked for rendering in the desired template. But I am stuck here with querying Photos.
619: [04:09:50] <irogue_> might as well just go home early
620: [04:10:10] <irogue_> start packing for the weekend
621: [04:10:57] <irogue_> since we have a stupidly early flight on Friday, I'll have to go to bed super early tomorrow night, so won't have time to pack then
622: [04:11:04] * camfindlay quit (Quit: camfindlay)
623: [04:12:23] <UncleCheese> zippy lol
624: [04:13:47] <mahfuz> UC: this code doesn't return any Photo- $results = PhotoCollection::get()->byID($data['PhotoCollection'])->Photos();
625: [04:14:18] <mahfuz> I am passing the $results to the template but no photo is showing up as result
626: [04:14:41] <UncleCheese> have you checked if the set is empty?
627: [04:14:47] <UncleCheese> $results->count();
628: [04:14:47] <UncleCheese> ?
629: [04:15:01] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
630: [04:23:37] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
631: [04:24:08] * travis-ci has joined #silverstripe
632: [04:24:08] <travis-ci> silverstripe/silverstripe-framework#3499 (3.1 - 6622d06 : Damian Mooyman): The build passed.
633: [04:24:08] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/d474671d0945...6622d066fd04
634: [04:24:08] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/38674743
635: [04:24:08] * travis-ci has left #silverstripe
636: [04:25:06] * Ryan-Toast quit (Quit: Ryan-Toast)
637: [04:26:04] <Berocca> hey irogue - just read that stuff, looks good. now for a *really* stupid question - where in your app did you put the DynamoDB instantiation/config code?
638: [04:26:04] <mahfuz> Will catch you all tomorrow. See you...
639: [04:26:52] * hailwood quit (Ping timeout: 272 seconds)
640: [04:30:11] <irogue_> Berocca: sorry, just packing up. if you're still here when I get home I'll continue helping, otherwise I'll be around tomorrow
641: [04:30:32] <Berocca> sweet irogue - cheers, tomorrow will be ace!
642: [04:30:43] * Robin_ quit (Ping timeout: 246 seconds)
643: [04:30:52] * irogue_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
644: [04:31:03] * micmania1 has left #silverstripe
645: [04:35:08] * spekulatius2 quit (Quit: Leaving)
646: [04:35:09] * spekulatius quit (Quit: Leaving)
647: [04:36:59] * willr quit (Quit: willr)
648: [04:44:25] <Colin[pi]> "hi we're having a prob with the system and I was told to call you"
649: [04:44:30] <Colin[pi]> "ok and what seems to be the prob?"
650: [04:44:44] <Colin[pi]> "well the other person here reported an issue... but I'm not sure what it is"
651: [04:44:49] <Colin[pi]> "... um"
652: [04:44:58] <Colin[pi]> "maybe I should call the other person and then call you back?"
653: [04:45:07] <Colin[pi]> "yes, that would be rather helpful."
654: [04:45:15] <Colin[pi]> "ok talk to you soon!"
655: [04:45:18] <Colin[pi]> >_<
656: [04:47:10] <ss23> >.<
657: [04:47:18] <ss23> rofl Colin[pi]
658: [04:47:25] <Colin[pi]> I mean seriously what the fuck
659: [04:47:36] <Colin[pi]> that's like... pretty basic right?
660: [04:47:44] <Colin[pi]> find out what the issue is before calling about it?
661: [04:49:59] * fb3rasp has joined #silverstripe
662: [04:51:01] * Ryan-Toast has joined #silverstripe
663: [04:51:33] <stojg> Berocca, I would put it in a _config.php file for a quick and dirty solution
664: [04:51:59] * Kingy is now known as Kingy[a]
665: [04:53:36] <Berocca> stojg - yeah, cool. ta. I'll try to get it working then maybe this'll be my first module - been putting that off long enough...
666: [04:54:29] * fb3rasp quit (Ping timeout: 260 seconds)
667: [04:56:08] <stojg> I hope to be able to release some of our aws supporting code in the near future, but it's not documented, tested and nice at the moment. Soz.
668: [04:57:49] <ss23> stojg: You just described most of our stuff
669: [05:00:14] <simon_w|work> stojg, are you're charging people excessive amounts to have it managed their stuff? That's only a little dangerous :p
670: [05:02:56] <stojg> Berocca: here is something I throw together: https://gist.github.com/stojg/49e78332d4b75b2c2f16 , I guess you probably done this already
671: [05:04:10] <stojg> simon_w|work: I'm only charging ss23 for the use of my skills in letting the magic components out of electronic components.
672: [05:04:19] * nyeholt quit (Remote host closed the connection)
673: [05:04:25] <ss23> :(
674: [05:04:29] <ss23> So much magic smoke..
675: [05:04:37] <stojg> so much win
676: [05:04:41] <ss23> lol
677: [05:05:30] <Berocca> stojg - I was just about to, excellent, does this just work??
678: [05:05:51] <stojg> haha, does anything work?
679: [05:06:04] * muskie9 is now known as _muskie9_
680: [05:06:20] <ss23> my code? ^.^
681: [05:06:27] <Berocca> ha ha - errrr, someti.. nah
682: [05:06:28] <stojg> Berrocca: yeah, it shouldn't be harder than that, watch out fo the garbage collection though
683: [05:06:41] * stojg quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
684: [05:06:43] <markcl> Anyone know a good SilverStripe automated testing workflow?
685: [05:06:54] <ss23> markcl: phpunit + behat and things?
686: [05:06:59] <markcl> Im thinking of something that automatically runs the tests
687: [05:07:05] <markcl> whenever I save a file
688: [05:07:08] <ss23> ehhh
689: [05:07:11] <markcl> Then automatically shows which tests failed
690: [05:07:18] <ss23> markcl: It'd probably work better to do it so it runs every commit
691: [05:07:26] <Berocca> sweet - that's my project for the morning, cheers for posting that mate
692: [05:07:27] <ss23> Most decent test sets take like 1-2 hours to run
693: [05:07:38] <markcl> Good idea ss23
694: [05:07:58] * irgbit quit (Remote host closed the connection)
695: [05:08:12] * Berocca quit (Quit: Page closed)
696: [05:08:22] <markcl> I can just make a script that automatically runs sake dev/tests/all whenever I commit
697: [05:10:16] * mahfuz quit (Ping timeout: 246 seconds)
698: [05:10:36] * Ryan-Toast quit (Quit: Ryan-Toast)
699: [05:12:20] <ss23> markcl: You can look at how Travis does it for example, same idea as lots of things. When you put to gitlab/whatever, it sends a POST to teamcity/travis/whatever and that runs the tests and reports back
700: [05:13:33] <spronk> ughghghhh
701: [05:15:33] <spronk> why are PDFs so fucking laggy
702: [05:15:35] <spronk> even on powerful machines
703: [05:24:16] * Olliepop quit (Ping timeout: 246 seconds)
704: [05:26:20] * camfindlay has joined #silverstripe
705: [05:26:24] * camfindlay quit (Client Quit)
706: [05:27:11] <Colin[pi]> spronk: to display or render (server side)?
707: [05:27:21] <spronk> display on client side
708: [05:27:31] <Colin[pi]> ah k, yeah they are a bit shit
709: [05:27:55] * stojg has joined #silverstripe
710: [05:28:29] <spronk> i don't get it
711: [05:28:37] <spronk> i remember PDFs being smoother
712: [05:28:41] <spronk> now i scroll down
713: [05:28:56] <spronk> and... halfway through it just stops scrolling, lags up, full second later starts moving again
714: [05:28:58] <spronk> borderline unusable
715: [05:31:22] <ss23> spronk: What renderer are you using?
716: [05:31:27] <spronk> well
717: [05:31:30] <spronk> chrome's one
718: [05:31:31] <spronk> or preview.app
719: [05:31:33] <Colin[pi]> bingo
720: [05:31:34] <ss23> You know what I don't get. PDF spec is static, right? HOW CAN THERE BE SO MANY VERSIONS OF ADOBE READER
721: [05:31:35] <spronk> even acrobat
722: [05:31:37] <spronk> they're all slow :S
723: [05:31:41] <spronk> OMFG I KNOW
724: [05:31:50] <spronk> and why are they all so shit
725: [05:31:52] <ss23> lol
726: [05:32:01] <spronk> and why can't you fill out live forms in some of them
727: [05:32:19] * Guest44639 quit (Ping timeout: 246 seconds)
728: [05:32:44] * jedateach has joined #silverstripe
729: [05:41:10] <spronk> omg
730: [05:41:12] <spronk> microsoft windows
731: [05:41:14] <spronk> your computer is low on memory
732: [05:41:15] <spronk> :|
733: [05:41:24] <spronk> oh wow
734: [05:41:42] <spronk> Chrome total:
735: [05:41:44] <spronk> 9,212,042k
736: [05:41:56] <spronk> fucking
737: [05:41:59] <spronk> another tab with discus comments
738: [05:43:42] <ss23> lol
739: [05:43:50] <ss23> that's not bad man, 9gb for Chrome...
740: [05:43:56] <ss23> I've seen ~2gb max, and that was flowdock
741: [05:44:02] <spronk> sigh
742: [05:44:05] <spronk> one tab was using 3.5gb
743: [05:44:26] <spronk> down to 5gb now
744: [05:46:06] <spronk> https://productforums.google.com/forum/#!topic/chrome/86yzpxX7aws
745: [05:46:38] * Colin[pi] quit (Ping timeout: 265 seconds)
746: [05:48:50] <ss23> Problem is, "Chrome uses lots of ram" is about as useful of a bug as "The website looks ugly"
747: [05:48:57] <ss23> Someone who is experiencing the issue needs to investigate it
748: [05:49:00] <spronk> yeah
749: [05:49:09] <spronk> i dont really have any idea how to target it
750: [05:49:12] <spronk> seems to be discus tabs
751: [05:49:16] <spronk> reliably will just keep eating rfam
752: [05:49:17] <spronk> ram
753: [05:49:22] <simon_w|work> ss23, silverstripe.org has too much whitespace and stupid video
754: [05:49:25] <simon_w|work> Detailed enough? :p
755: [05:49:41] <ss23> simon_w|work: denied
756: [05:49:48] <ss23> simon_w|work: you're over your limit for feedback submitted
757: [05:50:06] <simon_w|work> That's because the limit is 0
758: [05:50:09] <ss23> spronk: I know what you mean... tracking bugs like that is damn near impossible unless you're insane
759: [05:50:12] <ss23> simon_w|work: For you, it's 0
760: [05:50:15] * simon_w|work knows how opensource works!
761: [05:50:42] * fb3rasp has joined #silverstripe
762: [05:54:15] <simon_w|work> Compressing ./sailorsrest_db
763: [05:55:09] * fb3rasp quit (Ping timeout: 260 seconds)
764: [05:55:46] * stojg quit (Quit: Textual IRC Client: www.textualapp.com)
765: [06:03:45] * jedateach has left #silverstripe
766: [06:18:02] * Shrike_Finland has joined #silverstripe
767: [06:22:01] * irgbit has joined #silverstripe
768: [06:34:56] <simon_w|work> Dum de doo
769: [06:35:07] <ss23> Cookies!
770: [06:36:23] <simon_w|work> Waiting for percona to prepare a backup for restoring
771: [06:36:28] <simon_w|work> Hoping it doesn't break this time...
772: [06:38:36] * markcl quit (Ping timeout: 258 seconds)
773: [06:50:30] <simon_w|work> Yay! It hasn't got this far before!
774: [06:54:10] * camfindlay has joined #silverstripe
775: [06:55:14] * willr has joined #silverstripe
776: [06:56:04] * camfindlay quit (Client Quit)
777: [07:00:35] <simon_w|work> Come on....
778: [07:01:05] <ss23> simon_w|work just wants it to finish!
779: [07:01:40] <simon_w|work> Not just finish, but complete!
780: [07:01:46] <willr> that’s what she said.
781: [07:02:45] <simon_w|work> HOORAY! IT FINALLY WORKED!!!!
782: [07:02:47] <simon_w|work> Bitches.
783: [07:03:46] * simon_w|work blows the joint
784: [07:05:09] <ss23> lol
785: [07:05:39] * gavro has joined #silverstripe
786: [07:11:43] <Tanger> Hey guys, if I employ a GridField_DataManipulator, does this allow me to edit the underlying SS_List on a per-member-group basis and still allow the user to add to the list?
787: [07:12:31] * wmk has joined #silverstripe
788: [07:12:44] <wmk> argh, this fcking storm killed internet connection
789: [07:16:45] * Shrike_Finland quit (Quit: Leaving.)
790: [07:21:54] <willr> Tanger yep. see getManipulatedList vs getList
791: [07:26:18] <Tanger> willr: Sweeeet, thanks man
792: [07:29:29] <ss23> willr: hurry up when are the docs going to be done
793: [07:31:19] * glenn-bautista quit (Quit: Leaving.)
794: [07:34:17] * irgbit quit (Remote host closed the connection)
795: [07:35:31] * fb3rasp has joined #silverstripe
796: [07:37:59] * Eliseth has joined #silverstripe
797: [07:38:55] <willr> ss23 I think I haven’t done too bad for no help. The number of completed sections now outnumber the ones that aren’t
798: [07:39:10] <ss23> Nice :D
799: [07:41:29] <willr> Actually being held up by your folk not doing things..
800: [07:41:38] <willr> geesh. Sam will hear from me
801: [07:42:37] * zippy has joined #silverstripe
802: [07:45:09] * Werner_2_ has joined #silverstripe
803: [07:45:14] <ss23> lol willr
804: [07:45:19] <ss23> willr: Hey, I just set up a domain for it the other day!
805: [07:45:23] <ss23> willr: beta.docs.silverstripe.org
806: [07:45:54] * wmk quit (Ping timeout: 272 seconds)
807: [07:46:01] <willr> 2 months after I told Cam for it. Better late than never
808: [07:46:30] <ss23> lol
809: [07:46:35] <ss23> better nate than level
810: [07:46:36] <ss23> lever
811: [07:46:38] <ss23> fuck
812: [07:46:39] <ss23> :/
813: [07:51:18] * Shrike_Finland has joined #silverstripe
814: [07:52:47] * Eliseth quit (Ping timeout: 244 seconds)
815: [07:53:12] * Jakx has joined #silverstripe
816: [07:54:08] <Jakx> hey guys, can I just take a moment to say how much more I like Silverstripe than Wordpress? How much you as? By a metric fuck tonne, that's how much.
817: [07:54:19] <Jakx> ask*
818: [07:55:41] * kinglozzer has joined #silverstripe
819: [07:55:43] <Jakx> As of yet, I can't find a way to edit the equivalent of existing CMS fields... wtf is this. Entire themes are made, that are relatively inextensible, because of fuckin dead ends in the ORM. wtf is this hook bullshit. Fuck.
820: [07:56:03] * veb quit (Quit: preprocessor-irc-cli)
821: [07:56:27] * stnvh has joined #silverstripe
822: [07:57:30] <zippy> Jakx: mmhmmm
823: [08:00:45] <Werner_2_> Jakx, ???
824: [08:01:06] * Werner_2_ is now known as wmk
825: [08:01:30] <Jakx> wmk, lol, I'm working on a wordpress project atm. Client is too in love with the premium plugins.
826: [08:01:52] <wmk> oh.
827: [08:02:00] <wmk> good luck and strong nerves
828: [08:02:09] <wmk> i feel with you ;)
829: [08:02:33] <wmk> someone told me there are also shop "solutions" built on wordpress
830: [08:02:51] <wmk> (phew, got this said before py** is around)
831: [08:03:11] <Jakx> wmk, lol
832: [08:03:11] <wmk> Jakx, does WP still save whole URL with domain in DB?
833: [08:03:23] <Jakx> wmk, certainly does
834: [08:03:35] <zippy> shudder
835: [08:04:06] <wmk> last year i tried to develop (ehem, well, kind of) a site using WP like i'm used in SS (using a vagrant dev vm and move db to test machine when things are quite stable)
836: [08:04:31] <wmk> it was hopefully the last thing i had to do with this kind of software
837: [08:06:31] <Jakx> wmk, haha... well... the site appears to be working... but none of the links are working... OH, there's more than one reference to the URL in the db! Got it *face palm*
838: [08:08:22] <wmk> Jakx, http://ptrace.fefe.de/fpalm30c3.jpg
839: [08:10:45] <Jakx> hahaha
840: [08:12:21] * Eliseth has joined #silverstripe
841: [08:27:51] * r_hector has joined #silverstripe
842: [08:28:09] * Pydilemmak has joined #silverstripe
843: [08:28:20] <Pydilemmak> so like... do I get bacon, or just the eggs?
844: [08:32:20] <kinglozzer> Pydilemmak: BACON
845: [08:32:23] <kinglozzer> Always bacon
846: [08:32:28] <kinglozzer> If in doubt... bacon
847: [08:33:19] <Pydilemmak> Hmm, you might be on to something here.
848: [08:33:29] <Pydilemmak> I do quite like the scrambled eggs, but not today.
849: [08:33:30] <Pydilemmak> ok
850: [08:33:39] * Pydilemmak is now known as Pybrbk
851: [08:35:01] <wmk> Pybrbk, you need to get eggs?
852: [08:35:24] <wmk> (damn, this pun doesn't work in english i guess...)
853: [08:40:21] <kinglozzer> wmk: Yeah that made no sense :P
854: [08:40:56] <wmk> however. if you don't try you cannot make good jokes
855: [08:41:10] <wmk> i think we need to live with outtakes sometimes
856: [08:41:17] <Jakx> wmk, how is that a pun? I'm really curious to know now... haha
857: [08:41:21] * jedateach has joined #silverstripe
858: [08:41:55] <wmk> well, in german "eggs" are part of the body
859: [08:45:19] * Werner_2_ has joined #silverstripe
860: [08:46:02] * Pybrbk is now known as Pynomk
861: [08:46:57] * wmk quit (Ping timeout: 245 seconds)
862: [08:48:15] <Pynomk> Jakx: 'eggs' are what english speaking folk call another food item: 'nuts'.
863: [08:48:18] * Werner_2__ has joined #silverstripe
864: [08:48:40] <Pynomk> Werner_2_: heh, actually I know this one. Didn't click until you said 'part of the body' though
865: [08:48:43] <Pynomk> ;)
866: [08:48:49] <Eliseth> Ahhhhhh
867: [08:49:04] <Pynomk> [09:48] <Pynomk> Jakx: 'eggs' are what english speaking folk call another food item: 'nuts'.
868: [08:50:23] * Werner_2_ quit (Ping timeout: 240 seconds)
869: [08:51:14] <Pynomk> Jakx: so [09:35] <wmk> Pybrbk, you need to get eggs? might roughly translate to "You need to grow some balls?" or maybe something about dropping nuts. idk. But you get the idea ;)
870: [08:51:27] <Pynomk> ps, how is life. Got any beats for me?
871: [08:51:59] <Pynomk> good decision kinglozzer, thanks :>
872: [08:53:37] <kinglozzer> No problem Pynomk, it's my life goal to spread the joy of bacon
873: [08:53:52] <Pynomk> Oh I know the joy of bacon alright.
874: [08:54:02] <Pynomk> but... wasn't sure if it was on the deisred list this morning.
875: [08:54:07] * simon_w quit (Quit: Ping timeout: your mum)
876: [08:54:53] * simon_w has joined #silverstripe
877: [08:55:14] <Pynomk> :O can I have +o plz ChanServ?
878: [08:55:25] <Pynomk> Lesbians are always good fun people.
879: [08:55:31] <simon_w> No. My +o.
880: [08:55:40] <Pynomk> we can share the lesbian!
881: [08:55:56] <Pynomk> just becuase I get one doesn't mean you have to give up yours!
882: [08:57:42] <Pynomk> +o is a a bit like a skewed (ie. 'not straight') ♀ in case you're wondering what I'm on about ;>
883: [08:59:03] <Jakx> Pynomk, oh, lol, ty.
884: [08:59:17] <kinglozzer> Pynomk: Lesbians? Huh? :P
885: [08:59:53] <Jakx> Pynomk, long time no chat. Hmmm, nothing amazingly new at my end. On a life time low for tune aquisition.
886: [09:00:38] <Jakx> Pynomk, how've you been?
887: [09:01:22] * simon_w tests something
888: [09:01:48] <simon_w> System Information: Model: MacBook Pro (15-inch, Mid 2010) • CPU: Intel Core i7 M 620 (4 Threads, 2 Cores) @ 2.66 GHz • Memory: 8.00 GB • Uptime: 4 days • Disk Space: Total: 498.91 GB; Free: 72.45 GB • Graphics: Intel HD Graphics, NVIDIA GeForce GT 330M • Screen Resolution: 1680 x 1050 • Load: 40% • OS: Mac OS X 10.10 (Yosemite) (Build 14A389)
889: [09:02:10] <simon_w> Interesting
890: [09:02:18] <kinglozzer> [09:57] Pynomk: +o is a a bit like a skewed (ie. 'not straight') ♀ in case you're wondering what I'm on about ;>
891: [09:02:22] * kinglozzer should read before typing
892: [09:03:01] <Pynomk> Jakx: well, I'm in the UK now, as you know.
893: [09:03:19] <Pynomk> I got a job getting annoyed by users.
894: [09:03:25] <Pynomk> It's not so bad.
895: [09:03:51] <Pynomk> apart from the absolutly boundless derp abilities of users which never fails to astound.
896: [09:05:53] <Jakx> Pynomk, wicked, is the UK going well for you? Festivals over there must be the shit.
897: [09:06:05] <Pynomk> haha, dunno, haven't been to any :<
898: [09:06:35] <Pynomk> I went to other places instead, like Germany, Italy, Austria...
899: [09:06:56] <Pynomk> this part I like. I can get to Holland for less than it takes to get to Aus from CHC
900: [09:07:24] <Pynomk> but... time off and funds are still a daily issue :< Earning pounds is great, but you spend them like dollars at home.
901: [09:07:42] <Pynomk> overall I think my income/expenditure is about the same :/
902: [09:08:06] <Pynomk> Bit of a shame I won't come back and instanly double some kind of fortune I've amassed while being here, but nay matter.
903: [09:08:47] <Jakx> Pynomk, interesting. I think it's all good that you travel rather than gig. I know too many people that went to the UK, and the economic pressures made them hobbits in their little apartments.
904: [09:09:55] <Pynomk> ooh, vodo does music now
905: [09:10:35] <Pynomk> Jakx: yeh. Don't wanna be like that, pretty much no reason to have come at all if that were the case!
906: [09:10:57] <Pynomk> There are many more things I'd love to be doing than working, but hey... whatever.
907: [09:11:04] <Pynomk> gotta do what's gotta be done.
908: [09:12:16] <Jakx> _b
909: [09:12:55] <Pynomk> I kinda wish I hadn't come to the UK tbh, but that's what was available. I think I'd like to be somewhere they don't speak English.
910: [09:13:00] <Pynomk> (at least, as a primary)
911: [09:14:19] <Jakx> Pynomk, yeah I get what you mean. I've considered moving to both Spain & Hong Kong for the same reasons.
912: [09:14:58] * irgbit has joined #silverstripe
913: [09:16:31] <Pynomk> Sweden, that's the golden ticket :P
914: [09:17:48] * slievr has joined #silverstripe
915: [09:18:22] * Tanger quit (Quit: Tanger)
916: [09:18:48] <Jakx> Pynomk, yeah? Become a trash importer?
917: [09:19:18] * Tanger has joined #silverstripe
918: [09:19:21] <Pynomk> A what?
919: [09:19:56] <Jakx> http://www.huffingtonpost.ca/2014/09/02/sweden-recycling_n_5738602.html
920: [09:20:04] <Pynomk> oh right yeah
921: [09:20:08] <Pynomk> haha, naw
922: [09:20:10] <Jakx> Pynomk, they're running outa trash bro. lolz
923: [09:20:16] <Pynomk> yeh, champs right?
924: [09:20:24] <Jakx> Pynomk, legends.
925: [09:20:43] <Pynomk> but nah, was more a reference to the country being renowned for rediculously hot women.
926: [09:21:03] * Werner_2_ has joined #silverstripe
927: [09:21:07] * Werner_2__ quit (Ping timeout: 245 seconds)
928: [09:21:19] <Werner_2_> Pynomk, you don't believe... we just got some scrumbled eggs over here
929: [09:21:20] <Werner_2_> tasty
930: [09:21:39] <Werner_2_> (though internet is kind of shitty when using tethering...)
931: [09:21:44] <Pynomk> o.0 complete with crushed nuts sprinkled on top?
932: [09:21:45] <Pynomk> :P
933: [09:22:10] <Jakx> Pynomk, Oh hahah. When did your vernacular get so discrepant?
934: [09:22:13] <Werner_2_> this storm last night killed some wifi repeaters on the mountains
935: [09:22:27] <Pynomk> Jakx: U WO M8?
936: [09:22:39] <Werner_2_> Pynomk, hmm, no crushed nuts. though it's a good idea
937: [09:22:41] <Jakx> Pynomk, all the things.
938: [09:22:54] * Pynomk googles discrepant
939: [09:22:57] <Werner_2_> Jakx, vernacular?
940: [09:23:11] * Werner_2_ is now known as wmk
941: [09:23:23] <Pynomk> wmk: the type of language one uses.
942: [09:23:25] <Jakx> wmk, the language or dialect spoken by the ordinary people of a country or region.
943: [09:23:45] <wmk> 10x
944: [09:24:10] <Pynomk> wmk: the 'style' with which one speaks, as opposed to semanticly correctness of a 'language' or the twangs and pronounciation differences of an 'accent'
945: [09:24:42] <Pynomk> Jakx: yeah, when did my vernacular get so ... different from... ?? en_NZ?
946: [09:25:02] <Jakx> Pynomk, yes indeed?
947: [09:25:07] <Pynomk> it's not?
948: [09:25:37] <Jakx> Pynomk, O_o, I dunno anymore man. I've gone lost myself.
949: [09:25:42] <Pynomk> day to day speech is begining to slip, but they way I type is generally... the same like.
950: [09:25:55] <Pynomk> Geordies add like to different parts of the sentences than we do like.
951: [09:26:05] <Pynomk> it's a bit weird at first like.
952: [09:26:18] <Pynomk> ;P
953: [09:27:09] * cupcake has joined #silverstripe
954: [09:27:15] <Jakx> Pynomk, you think there is a simile on the way... but there isn't one man... there isn't one!
955: [09:27:26] * BetterBert has joined #silverstripe
956: [09:27:34] <Pynomk> :D D: ;) :> :< :S :/ :*
957: [09:27:51] <Pynomk> or something, like.
958: [09:28:00] <Pynomk> :P
959: [09:28:59] * Colin[pi] has joined #silverstripe
960: [09:29:01] <Jakx> Pynomk, good to catch you bud. I'm gonna head to bed now, have a propper good day mate.
961: [09:29:06] * jedateach quit (Quit: jedateach)
962: [09:29:22] <Pynomk> ciao Jakx :)
963: [09:29:32] * Jakx has left #silverstripe
964: [09:33:21] * stephanvd has joined #silverstripe
965: [09:36:43] * simon__w has joined #silverstripe
966: [09:36:45] * simon__w quit (Client Quit)
967: [09:37:00] <ss23> I need help guys
968: [09:37:11] <simon_w> The first step is admitting you have a problem
969: [09:37:13] <ss23> There is a project which defined a FooAPI thing with $url_handlers
970: [09:37:21] <ss23> and stuff like that
971: [09:37:25] <ss23> How is the best way to like...
972: [09:37:28] <ss23> Add stuff to it?
973: [09:37:35] <ss23> This is a really badly phrased question, I'm sorry
974: [09:37:49] <ss23> https://github.com/silverstripe/deploynaut/blob/master/code/api/DeploynautAPI.php
975: [09:37:53] <ss23> I want to add a new API action
976: [09:38:08] <Colin[pi]> so add to allowed_actions and make the method
977: [09:38:08] <ss23> I want to do it in an extension if possible
978: [09:38:11] <Colin[pi]> oh
979: [09:38:39] <ss23> I am not sure if I can with the current code though
980: [09:39:16] * ss23 looks at simon_w
981: [09:39:19] * ss23 leans over Colin[pi]
982: [09:39:21] * ss23 breathes loudly
983: [09:39:22] <ss23> So?
984: [09:39:43] <simon_w> Depends on how the merge happens. If you can get your url_handler in before the '$Project/' one, you've got a chance
985: [09:39:56] <ss23> Mine is not project specific :O
986: [09:39:57] <simon_w> I suspect extension stuff will be added to the end though, so it'll win
987: [09:40:08] <ss23> I'd want it to be like... site.com/deploynaut/api/MYACTIONLOL
988: [09:40:10] <simon_w> $Project is going to catch all
989: [09:40:16] <ss23> Oh I see
990: [09:40:32] <ss23> simon_w: Would you recommend I spend time playing with it, or would you recommend I just don't bother with doing it in an extension?
991: [09:40:49] <simon_w> Don't bother with doing it in an extension
992: [09:40:53] <ss23> Okay, thank you :D
993: [09:40:57] <simon_w> You'll be fighting with Hamish Code™
994: [09:41:23] <Colin[pi]> hehe i like the TM
995: [09:44:16] <Pynomk> fuck, I entwined all wrong and ended up with spagetti may as well have been vanilla jquery :<
996: [09:44:36] <simon_w> May as well be CMS JS!
997: [09:44:45] <Pynomk> yeh pretty much
998: [09:45:00] <Pynomk> 'we moved to jquery for less confusing'
999: [09:45:04] <Pynomk> STILL CONFUSING
1000: [09:45:11] <Pynomk> #dragons
1001: [09:45:14] <Colin[pi]> JS = confusing
1002: [09:45:17] <Colin[pi]> no escaping it
1003: [09:45:24] <Colin[pi]> doesn't matter which flavour
1004: [09:45:35] <Colin[pi]> callbacks, callbacks everywhere
1005: [09:45:35] * Shrike_Finland quit (Quit: Leaving.)
1006: [09:45:35] <Pynomk> Colin[pi]: there's only one.
1007: [09:45:53] <Pynomk> Colin[pi]: no, closures, closures everywhere
1008: [09:45:59] <Colin[pi]> that too :P
1009: [09:46:14] <Pynomk> Object literals and stuff
1010: [09:46:26] <Pynomk> object literals and closures. that's pretty much all of jquery.
1011: [09:46:30] <Colin[pi]> closures I can handle, it's all the asynchronous stuff that does my head in sometimes
1012: [09:46:37] <Pynomk> Oh, and prototypes vs constructors vs 'static' methods
1013: [09:47:20] <Pynomk> Colin[pi]: Have I got the solution for you! <script type="text/vbscript">
1014: [09:47:25] <Colin[pi]> ugh
1015: [09:47:48] * Error404NotFound has joined #silverstripe
1016: [09:47:52] <Pynomk> I wanna take my clothes off
1017: [09:47:55] <Pynomk> I wanna be at home
1018: [09:47:58] <Pynomk> I wanna be asleep
1019: [09:48:28] <Colin[pi]> well you can do two out of those three at work
1020: [09:48:29] <Pynomk> maybe I'll draw pictures instead.
1021: [09:50:30] <ss23> simon_w: It was Sam code btw, not Hamish :P
1022: [09:50:52] <simon_w> ss23, Config layer (which is what doing it as an extension would involve) is Hamish :p
1023: [09:50:56] <Pynomk> Colin[pi]: no, YOU can.
1024: [09:51:01] <ss23> oic oic
1025: [09:51:05] <Colin[pi]> Pynomk: I can do all three!
1026: [09:51:21] <Pynomk> Colin[pi]: I know, exactly my point :P
1027: [09:51:39] <Pynomk> maybe I'll take a mental health day
1028: [09:52:23] * wmk quit (Ping timeout: 255 seconds)
1029: [09:54:48] <Colin[pi]> I made a simple web based app today for my gf to use to track her shifts/schedule/pay etc.
1030: [09:54:57] <Colin[pi]> has jquery calendar, custom model
1031: [09:54:59] <Colin[pi]> page types
1032: [09:55:00] <Colin[pi]> forms
1033: [09:55:01] <Colin[pi]> controllers
1034: [09:55:04] <Colin[pi]> do's etc
1035: [09:55:12] <Colin[pi]> took me most of the afternoon
1036: [09:55:24] <Colin[pi]> and she tries it out and she's like "my god, it took you such a long time"
1037: [09:55:33] <Colin[pi]> jesus christ my gf is a typical client
1038: [10:00:14] <Pynomk> backhand it
1039: [10:00:47] <Pynomk> with your heart
1040: [10:01:09] <Pynomk> or something
1041: [10:01:18] <Colin[pi]> I told her most apps take weeks, months etc.
1042: [10:01:22] <Colin[pi]> did not compute
1043: [10:02:01] <Pynomk> wow
1044: [10:02:07] <Pynomk> backhand it with... your eggs.
1045: [10:02:09] <Pynomk> or soemthing
1046: [10:02:17] <Colin[pi]> or something lol
1047: [10:02:44] <kinglozzer> Apache... Y U NO START ON REBOOT?
1048: [10:02:49] <Pynomk> just walk in and be all "fuck that baby took you a long time to get out"
1049: [10:02:55] <kinglozzer> I've /etc/init.d/apache'd all the things :(
1050: [10:03:14] <Colin[pi]> Pynomk: haha
1051: [10:03:43] <Pynomk> kinglozzer: why?
1052: [10:03:52] <Pynomk> that's the way mooks do things
1053: [10:04:21] <Pynomk> /etc/init.d/apache start
1054: [10:04:27] * Otterpocket has joined #silverstripe
1055: [10:04:52] <Pynomk> system apache start
1056: [10:05:01] <Pynomk> systemctl start apache
1057: [10:05:11] <Pynomk> or soemthing like that
1058: [10:06:05] <Otterpocket> Hi, I I get all my users in an array including current user, how do I then remove current user from the Arraylist? $members->remove(Member::CurrentUser()) ?
1059: [10:06:11] <kinglozzer> update-rc.d :|
1060: [10:06:47] <kinglozzer> Otterpocket: $members->exclude('ID', Member::currentUser()->ID); should do it
1061: [10:06:52] <Pynomk> Otterpocket: exclu... yeh
1062: [10:06:55] <Pynomk> what kinglozzer just said
1063: [10:07:31] <Otterpocket> lol
1064: [10:07:36] <Otterpocket> kinglozzer: Thanks once again
1065: [10:09:43] <kinglozzer> Ffs. "System start/stop links for /etc/init.d/apache2 already exist." WELL WHY DON'T THEY WORK? :(
1066: [10:10:37] <Otterpocket> kinglozzer: service apache2 start
1067: [10:10:49] <Otterpocket> Does that give an error?
1068: [10:10:52] <kinglozzer> Mm, I can start it manually but I want it to start on boot :(
1069: [10:10:53] <kinglozzer> Nope
1070: [10:11:08] <Otterpocket> what OS?
1071: [10:11:17] <kinglozzer> Ubuntu
1072: [10:13:18] <Otterpocket> has Ubuntu got update-rc.d ?
1073: [10:13:24] <Otterpocket> man update-rc.d
1074: [10:13:36] <kinglozzer> Yeah it has, apache is already added
1075: [10:13:40] <kinglozzer> No errors in syslog :/
1076: [10:13:43] <kinglozzer> Just doesn't get started
1077: [10:14:15] <Otterpocket> And you have set the run levels for it/
1078: [10:14:17] <Otterpocket> ?
1079: [10:14:19] <kinglozzer> Yeah
1080: [10:14:25] <kinglozzer> I might try removing and re-adding it
1081: [10:14:49] <Otterpocket> Correct permissions ?
1082: [10:15:00] <Otterpocket> update-rc.d apache2 enable <run levels>
1083: [10:15:53] <Otterpocket> I believe init.d scripts should be 755
1084: [10:16:13] <kinglozzer> Aha! It works now
1085: [10:16:23] <kinglozzer> All I did was remove and re-add it, no idea what broke it in the first place :P
1086: [10:16:57] * stnvh quit ()
1087: [10:17:05] <kinglozzer> symlinks for it are different now, so maybe that's why
1088: [10:20:43] * stnvh has joined #silverstripe
1089: [10:21:35] * halkyon quit (Ping timeout: 265 seconds)
1090: [10:21:46] * cupcake quit (Ping timeout: 246 seconds)
1091: [10:23:04] * Tanger quit (Quit: Tanger)
1092: [10:23:27] <Pynomk> [11:11] <kinglozzer> Ubuntu
1093: [10:23:30] <Pynomk> HAHHHHAHAHAHAHAHAHAHAAAAAAAA
1094: [10:23:35] <Pynomk> PAAAAINFULLLLLLLLL
1095: [10:23:36] <kinglozzer> :P
1096: [10:23:45] <Pynomk> ur fukd m8
1097: [10:24:19] * halkyon has joined #silverstripe
1098: [10:24:34] <Pynomk> shalkyon
1099: [10:45:37] * spronk2 has joined #silverstripe
1100: [10:46:21] * Shrike_Finland has joined #silverstripe
1101: [10:49:00] <Otterpocket> [User Error] Uncaught LogicException: exclude can't be called on an UnsavedRelationList. ?
1102: [10:49:44] <Otterpocket> Is there another method I need to use instead of exclude?
1103: [10:52:38] * willr quit (Quit: willr)
1104: [10:52:59] <kinglozzer> Otterpocket: You could use remove() instead
1105: [10:53:33] <kinglozzer> I *think*
1106: [10:53:48] <kinglozzer> Your original idea of $members->remove(Member::CurrentUser()) might work
1107: [10:59:11] <Pynomk> Otterpocket: it's unsaved.
1108: [10:59:29] <Pynomk> just don't put the current user into the list in the first place.
1109: [11:00:31] * gavro quit (Remote host closed the connection)
1110: [11:01:21] * BetterBert quit (Quit: (null))
1111: [11:07:16] * gavro has joined #silverstripe
1112: [11:07:17] * irgbit quit (Read error: Connection reset by peer)
1113: [11:07:50] * irgbit has joined #silverstripe
1114: [11:17:19] * Shrike_Finland quit (Quit: Leaving.)
1115: [11:26:01] * Shrike_Finland has joined #silverstripe
1116: [11:32:09] * headtrip has joined #silverstripe
1117: [11:38:35] * spronk2 quit (Quit: spronk2)
1118: [11:45:50] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
1119: [11:47:04] * fb3rasp quit (Quit: Lingo: www.lingoirc.com)
1120: [11:54:29] * Colin[pi] quit (Ping timeout: 260 seconds)
1121: [12:09:33] * spronk2 has joined #silverstripe
1122: [12:14:25] * UndefinedOffset has joined #silverstripe
1123: [12:14:53] * irgbit quit (Remote host closed the connection)
1124: [12:15:15] <Pynomk> LOL http://www.stuff.co.nz/business/farming/dairy/10648979/Security-guards-monitor-chocolate-milk
1125: [12:19:20] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
1126: [12:25:10] <Pynomk> employee = grunt.
1127: [12:26:11] <Pynomk> Leam Leader = Sergeant
1128: [12:26:16] <Pynomk> Manager = Captain
1129: [12:26:30] <Pynomk> Director = Colonel
1130: [12:26:39] <Pynomk> CEO = General
1131: [12:26:51] <Pynomk> Buisness is a fucking war.
1132: [12:27:14] <Pynomk> like, a late 1980's war.
1133: [12:27:36] <Pynomk> where the soldiers go out and get fucked over, while officers sit in their tents sipping tea.
1134: [12:27:54] <Pynomk> and the even higher ups try to decide on a strategy, no where near the battlefield.
1135: [12:28:35] <Pynomk> Except that no one dies... EXCEPTING YOUR WILL TO LIVE (sometimes)
1136: [12:38:49] * jcwacky has joined #silverstripe
1137: [12:44:40] * spronk2 quit (Ping timeout: 272 seconds)
1138: [12:44:45] * spronk23 has joined #silverstripe
1139: [12:45:33] <Pynomk> xD spronk23
1140: [12:45:41] <spronk23> lol
1141: [12:46:12] <Pynomk> xD http://www.youtube.com/watch?v=dGCxgJFjnZw
1142: [12:46:31] <Pynomk> not sure about this, it's a bit all over the place
1143: [12:48:15] <spronk23> hmmm
1144: [12:59:03] * gavro quit (Remote host closed the connection)
1145: [13:11:39] * _muskie9_ is now known as muskie9
1146: [13:16:20] * gavro has joined #silverstripe
1147: [13:17:19] * cupcake has joined #silverstripe
1148: [13:25:24] * Shrike_Finland quit (Quit: Leaving.)
1149: [13:26:07] * stnvh quit (Quit: sleepy)
1150: [13:34:26] * muskie9 quit (Ping timeout: 265 seconds)
1151: [13:41:03] * Shrike_Finland has joined #silverstripe
1152: [13:45:41] <Pynomk> so I thought I liked Mustache, but it turns out it's a bit stupid because it doesn't pass you the context in the case of a callable in your viewmodel.
1153: [13:45:46] <Pynomk> (closure or otherwise)
1154: [13:46:13] * spronk23 quit (Quit: spronk23)
1155: [13:46:31] <Pynomk> you can sorta fake it by {{# thing }}{{ . }}{{/ thing }}
1156: [13:46:34] <Pynomk> but... urgh
1157: [13:49:55] * jcwacky quit (Quit: jcwacky)
1158: [13:57:21] * muskie9 has joined #silverstripe
1159: [14:02:52] * catcher has joined #silverstripe
1160: [14:13:06] * Shrike_Finland quit (Quit: Leaving.)
1161: [14:14:10] * stnvh has joined #silverstripe
1162: [14:15:48] * irgbit has joined #silverstripe
1163: [14:20:08] * irgbit quit (Ping timeout: 255 seconds)
1164: [14:34:13] * BetterBert has joined #silverstripe
1165: [14:35:10] <BetterBert> Search is driving bananas, was trying to implement custom search yesterday. Having backed all of that out and reverted to default search. Still getting the same error!
1166: [14:35:28] <BetterBert> Missing arguement 1 for ContentControllerSearchExtension::results()
1167: [14:35:35] <BetterBert> Any insights on this anyone?
1168: [14:36:45] <Pynomk> yeah, make sure you pass the correct amount of parameters!
1169: [14:37:34] <BetterBert> Kinda figured that was the problem but how do I do this when it should already be doing this itself out of the box no?
1170: [14:38:33] <Pynomk> depends on what you've done with 'out of the box'?
1171: [14:38:36] <BetterBert> function results($data, $form, $result).... how does little me pass this into that function when it is called by searchForm rather than me?
1172: [14:38:48] <Pynomk> well
1173: [14:38:59] <BetterBert> There should be nothing I've done at this stage, having backed out all changes (says he hopefully)
1174: [14:39:05] <Pynomk> start by telling everyone what version of SS you're using.
1175: [14:39:11] <BetterBert> :)
1176: [14:39:13] <Pynomk> then follow up by what you've done to enable search
1177: [14:39:14] <BetterBert> SS 3.1
1178: [14:39:29] <Pynomk> then tell us how you replicate the issue
1179: [14:39:37] <Pynomk> (the actions you take as a user to encounter it)
1180: [14:39:44] <BetterBert> _config.php: FulltextSearchable::enable(array('SiteTree))
1181: [14:40:11] <Pynomk> and?
1182: [14:40:29] <BetterBert> Currently in Dev mode, every page renders with dirty big Warning messages saying I've buggered something up!
1183: [14:40:39] <Pynomk> you probably did!
1184: [14:41:02] <stnvh> BetterBert: missing a quote after SiteTree
1185: [14:41:23] <Pynomk> stnvh: and a semicolon, but somehow I think that's not a copy and paste of his working code.
1186: [14:41:27] <BetterBert> 'SiteTree' here is a mistype, its correct in the _config
1187: [14:41:53] <Pynomk> it's also not all you've done to get where you are BetterBert ... please do go on
1188: [14:42:17] * Adesso has joined #silverstripe
1189: [14:42:22] <Pynomk> like, how are you rendering the form?
1190: [14:42:34] <Pynomk> what kind of page are you testing this on?
1191: [14:42:41] <Pynomk> does that page have a 'results()' function?
1192: [14:42:55] <BetterBert> other than adding $SearchForm to a template, and returning the generic Page_results.ss to the setup I haven't don anything else
1193: [14:42:57] <Pynomk> does that page tempalte call $results in the template?
1194: [14:43:06] <BetterBert> Had a rsults() funciton but backed out now...
1195: [14:44:02] <BetterBert> Generic Page_results.ss has $Results
1196: [14:44:12] <Pynomk> yes but what about normal Page/
1197: [14:44:26] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1198: [14:45:25] <BetterBert> Page.ss currently has $Results inserted only because Page_results.ss wasn't being rendered previously when it was rendering the page without an error..
1199: [14:45:35] <Pynomk> so remove it.
1200: [14:45:41] <BetterBert> If you follow me
1201: [14:45:47] <Pynomk> it's causing your error.
1202: [14:46:15] <BetterBert> Which is now, the $Result call? Hmm...
1203: [14:46:28] * muskie9 has joined #silverstripe
1204: [14:47:40] <BetterBert> Right, first things first. @Pynomk is my hero for today!
1205: [14:47:48] <Pynomk> :>
1206: [14:48:05] <BetterBert> Took the $Results out of Page.ss and things are starting to behave better
1207: [14:48:24] <BetterBert> If I can stick on this topic for a moment longer...
1208: [14:48:26] <Pynomk> $Results calls results() on the controller, no params passed, error thrown.
1209: [14:49:03] <BetterBert> The custom search I was looking to implement yesterday constantly produced the same error. Does the $Result call have to be in a XXXX_results.ss template?
1210: [14:49:12] <Pynomk> no
1211: [14:49:43] <BetterBert> Then how what needs to be put where exactly to pass those variables appropriately?
1212: [14:49:48] <Pynomk> if it was the same error, it's for the same reason.
1213: [14:50:05] <BetterBert> Step-by-step
1214: [14:50:23] <BetterBert> Custom Page type with Page_Controller declaration
1215: [14:50:31] <Pynomk> $Results calls results() on the controller, if that has non optional parameters, and no params are passed, error thrown.
1216: [14:50:38] <BetterBert> function SearchForm + function results
1217: [14:51:08] <BetterBert> SearchForm does what I was expecting, instantiating a extend of Form creating my custom form layout
1218: [14:51:51] <Pynomk> I don't know what you're asking
1219: [14:52:02] <Pynomk> is there a question here?
1220: [14:52:03] <BetterBert> results() throws the error message when the page type template attempts to render using exactly the same template code now working in my Page_results.ss
1221: [14:52:18] <BetterBert> Why is my damn custom search not working
1222: [14:52:26] <Pynomk> yeah, but what happened when you didn't have results?
1223: [14:52:32] <BetterBert> results($data, $form, $results) - how do I pass the variables
1224: [14:52:35] <BetterBert> ?
1225: [14:52:52] <Pynomk> You're ... missing something.
1226: [14:52:59] <Pynomk> knowledge.
1227: [14:53:06] <Pynomk> forms submit to themselves.
1228: [14:53:21] <Pynomk> then on success (ie, is a submission, fields all validate), it calls an action.
1229: [14:53:32] <Pynomk> passing $data, $form, $request
1230: [14:54:01] <Pynomk> this type of function is called a form action
1231: [14:54:08] <BetterBert> FormAction( <method name on same Controller instance> )
1232: [14:54:20] <Pynomk> well, yes and no.
1233: [14:54:21] <BetterBert> ?
1234: [14:54:38] <Pynomk> method name on the form's defined controller (Form::create($controller, $name, ...)
1235: [14:54:40] <Pynomk> )
1236: [14:55:06] <Pynomk> formAction::create($action_method_name, ...)
1237: [14:55:39] * halkyon quit (Ping timeout: 245 seconds)
1238: [14:55:49] <Pynomk> controllers are viewable data.
1239: [14:56:08] <Pynomk> that means their public functions can be called from a template when it is passed as the view data.
1240: [14:56:15] <Pynomk> for rendering.
1241: [14:56:17] * halkyon has joined #silverstripe
1242: [14:56:17] * halkyon quit (Changing host)
1243: [14:56:17] * halkyon has joined #silverstripe
1244: [14:56:36] <Pynomk> you've gotten in to trouble when you're calling $Results from the template, and you're NOT completing a search
1245: [14:56:50] <Pynomk> take note: https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/search/ContentControllerSearchExtension.php#L44
1246: [14:57:03] <BetterBert> hence why its missing the parameters...
1247: [14:57:16] <Pynomk> the default serachform OVERRIDES the results variable through a ->customise(...) call
1248: [14:57:41] <Pynomk> and since it renders in a _separate_ template (see ->renderWith )
1249: [14:58:18] <Pynomk> this tempalte (with $Results in it) is NOT used when rendering the page normally (meaning you do not have $Results in it, meaning it's not called, meaning no error)
1250: [14:58:48] <Pynomk> if it's confusing you, perhaps simply changing the name of your form action will be easier
1251: [14:58:51] <Pynomk> doSearch
1252: [14:59:02] <Pynomk> then customise the controller with 'results' => ...
1253: [14:59:20] <Pynomk> that way the normal load $results doesn't exist, nothing output. No problem.
1254: [15:00:20] <Pynomk> that or have a default output in a pseudo search kinda way (ie, list filters, like 'tags' or soemthing).
1255: [15:01:23] <Pynomk> results() $things = Things::get(); if($this->request->getVar('searchterm') $things->filter(blahlblah); return $things;
1256: [15:01:37] <Pynomk> or something
1257: [15:02:04] <Pynomk> depends on what you're trying to achieve.
1258: [15:03:45] <BetterBert> http://pastebin.com/rT3G4Ndg is the disfunctional cruft excuse for an attempt at custom search from yesterday
1259: [15:04:29] <Pynomk> http://www.silverstripe.org/community/forums/dataobjectmanager-module-forum/show/72004#post369827
1260: [15:04:38] <Pynomk> the answer is $this->Taxonomy()
1261: [15:05:17] <Pynomk> well, not really, but seems like that should be well solved by now.
1262: [15:07:44] <BetterBert> Build me up, then knock me down ;)
1263: [15:08:12] <Pynomk> $answers = $parent->Children(); // Works, but no filtering $answers = $parent->Children()->filter('ClassName','HelpAnswer'); // Works, but not enough filtering $answers = $parent->Children()->filter('Category', $this->Category); // Returns Records, not to requirement
1264: [15:08:32] <Pynomk> then answer is actually that you should use an array for filter, not just a single field.
1265: [15:09:22] <Pynomk> $answers = $parent->Children()->filter(array('ClassName'=>'HelpAnswer', 'Category' => $this->Category ...
1266: [15:10:20] <Pynomk> the answer to your searchform is that you're trying too much to copy something else.
1267: [15:11:01] <BetterBert> <insert knowledge here>
1268: [15:11:21] <Pynomk> well you're trying to learn by backwards engineering the existing searchform.
1269: [15:11:26] <Pynomk> just learn to do forms.
1270: [15:11:32] <Pynomk> as a whole.
1271: [15:11:36] <Pynomk> all of them.
1272: [15:11:40] <Pynomk> tutorial #3
1273: [15:11:58] <Pynomk> searching is just taking input then returning information accordingly. Same deal with any other form.
1274: [15:12:41] <Pynomk> take input and insert info to database, or get data from database, doesn't matter. It's just usually not as broad an application as search, but technically it's no different.
1275: [15:13:21] <Pynomk> read about froms, read about routing, $ViewableData->customise()
1276: [15:13:39] <Pynomk> and maybe $viewabledata->renderWith() too
1277: [15:13:42] <Pynomk> all handy.
1278: [15:13:50] <BetterBert> Fair dues: thanks for all the input @Pynomk. This is exactly what I've been scrambling around for <having already been through all the tutorials but getting knotted up in SS territory>
1279: [15:13:53] <Pynomk> you don't need that much info to build a form, but it helps to understand.
1280: [15:14:58] <Pynomk> yep, learning to advanced topics without learning the basics makes for a troublesome time! (no matter what you're doing - it's just worringly more 'the norm' in software/web dev specifically)
1281: [15:15:36] <Pynomk> you get enough people lacking basic understanding and hacking away anyway you end up with wordderp :P
1282: [15:16:52] <Pynomk> There are so many ways to achieve this goal that I can't really just spell out any single one - it may not be the best solution.
1283: [15:17:40] <Pynomk> You'll get there, nay bother.
1284: [15:18:19] <Pynomk> Just saying it's better to learn a step at a time, rather than skipping over the football field in the middle.
1285: [15:18:28] <Pynomk> it's a process, like anything else.
1286: [15:18:58] <BetterBert> Same learning curve, different platform: all part of the process :)
1287: [15:19:52] <Pynomk> hopefully faster learning curve. But you gotta know to understand!
1288: [15:20:11] <BetterBert> Thanks again (reserves option to come back and ask equally dumb question later ;)
1289: [15:20:20] <Pynomk> of course :>
1290: [15:21:15] <Pynomk> http://www.youtube.com/watch?v=clSYkn37iRQ
1291: [15:30:33] * gavro quit (Ping timeout: 244 seconds)
1292: [15:31:37] * thehacksaw has joined #silverstripe
1293: [15:32:17] <thehacksaw> Howdy - how can you custom-render a Form object? I'm trying to return it directly to an AJAX request and can't remember what the syntax is
1294: [15:32:33] <thehacksaw> Assumed $this->whatevertheformis()->forTemplate(); but that doesn't appear to work
1295: [15:34:56] * headtrip quit (Quit: (null))
1296: [15:36:13] * jenniferaslan has joined #silverstripe
1297: [15:36:35] <kinglozzer> thehacksaw: Hmm I thought that was the way to do it too
1298: [15:36:37] <Eliseth> setFieldHolderTemplate?
1299: [15:36:59] <kinglozzer> There's Form::forAjaxTemplate() too, but I think it's more-or-less the same
1300: [15:37:06] <thehacksaw> Eliseth: On a form?
1301: [15:37:16] <Eliseth> nvm, that's for form fields
1302: [15:38:53] * Stomach_ quit (Quit: bye)
1303: [15:39:04] <kinglozzer> thehacksaw: $this->MyFormMethod()->forTemplate() works as expected for me
1304: [15:39:14] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
1305: [15:39:54] <kinglozzer> It returns an HTMLText object, depending on what you're doing with it you might need to cast it to a string
1306: [15:41:17] <thehacksaw> kinglozzer: Just worked that one out! All sorted now
1307: [15:41:37] <thehacksaw> Using $this->form->forAjaxTemplate()->raw();
1308: [15:43:05] <kinglozzer> Sweet, my suggestion was gonna be $formHTML = (string) $this->form->forAjaxTemplate(); but that's identical anyway :)
1309: [15:46:08] * NETim has joined #silverstripe
1310: [15:46:21] <NETim> morning.
1311: [15:47:37] <NETim> Got sake running a cache flush, seems to run succesfully without errors but doesn't actually flush the cache. Anyone have any ideas?
1312: [15:51:01] * BetterBert quit (Quit: (null))
1313: [15:56:27] <kinglozzer> NETim: Is it running as the same user as apache?
1314: [15:56:57] <NETim> It is running as root. if it runs as the same user as apache, it doesn't have enough permissions.
1315: [15:57:16] <kinglozzer> NETim: That's the issue then
1316: [15:57:37] <kinglozzer> It builds a cache in a folder named 'root', but apache will use the cache in the folder 'www-data' (or whatever the user is)
1317: [15:57:40] <NETim> does apache get a different cache then? Or am I completely of piste here.
1318: [15:57:54] <NETim> oh. That actually makes sense.
1319: [15:58:02] <kinglozzer> Yeah, one cache directory for each user
1320: [15:59:12] <kinglozzer> e.g. on my dev machine I have /var/tmp/silverstripe-cache-path-to-docroot/kinglozzer/<ss cache files here> as apache runs as "kinglozzer"
1321: [15:59:33] <kinglozzer> You'd also get a /var/tmp/silverstripe-cache-path-to-docroot/root/<ss cache files here> after running sake flush as root
1322: [16:02:14] <NETim> Is there any way to get SS to use the one cache dir?
1323: [16:03:03] <kinglozzer> Hmm, I think so, I think you can define a cache dir in _ss_environment.php
1324: [16:03:16] <NETim> hm..
1325: [16:04:18] <kinglozzer> NETim: define('TEMP_FOLDER', '/path/to/dir');
1326: [16:04:47] * Adesso is getting seriously pissed at the damn Errors that does not display in the Browser
1327: [16:05:49] <muskie9> kinglozzer NETim can't you create a silverstripe-cache folder in your site dir and cached templates go there?
1328: [16:06:13] <NETim> Have done but it doesn't seem to use it for root cache.
1329: [16:06:20] <muskie9> ah
1330: [16:07:53] <kinglozzer> NETim: Hmm, does it use it for web requests?
1331: [16:07:59] <NETim> Going to try the defining method.
1332: [16:08:17] <NETim> kinglozzer, yep. If i do a ?flush=all/1/whatever it works.
1333: [16:09:37] <kinglozzer> Ah, if you create a silverstripe-cache folder it'll just create two sub-folders for each user
1334: [16:09:48] <kinglozzer> Defining the directory manually in _ss_environment.php should work :)
1335: [16:09:54] <NETim> ah, ok.
1336: [16:10:22] * r_hector quit (Quit: Leaving.)
1337: [16:11:00] <kinglozzer> NETim: Just a thought: make sure that the _ss_environment.php is only used by one site, otherwise you might get cache collisions from multiple sites trying to use the same directory
1338: [16:13:23] <NETim> Only one site is on this server.
1339: [16:13:52] <NETim> I am right in thinking that SS will just pick up an _ss_environment file?
1340: [16:14:23] <kinglozzer> NETim: Yeah
1341: [16:14:31] <kinglozzer> It'll scan upwards from the docroot
1342: [16:14:35] <NETim> awesome. here goes nothing then.
1343: [16:15:30] * scpi has joined #silverstripe
1344: [16:15:40] <NETim> Well, here goes waiting for nothing. I hate this part of cron work.
1345: [16:15:51] <kinglozzer> I just tried it on my dev machine and it seems to work
1346: [16:16:10] <kinglozzer> Make sure the directory you set already exists though, and that apache has write access
1347: [16:16:53] * irgbit has joined #silverstripe
1348: [16:20:58] * irgbit quit (Ping timeout: 244 seconds)
1349: [16:22:49] * Shrike_Finland has joined #silverstripe
1350: [16:23:11] <NETim> hm, no joy. Just cleared out the cache dir to see if something was stuck
1351: [16:23:31] <NETim> The worst part is that I can't flush the site cache as then there's nothing to flush from the cron.
1352: [16:25:15] <kinglozzer> NETim: Can't you remove the temp directory, wherever it is, instead of doing a flush? It'll be rebuilt the next time someone visits the site
1353: [16:26:08] <kinglozzer> NETim: Did it not add the cache to the folder you set? It definitely should do, if not it might not be picking up your _ss_environment.php for some reason
1354: [16:26:12] <kinglozzer> Anyway, I gotta run
1355: [16:26:13] <kinglozzer> Good luck!
1356: [16:26:53] * kinglozzer quit ()
1357: [16:27:38] * stnvh quit (Quit: sleepy)
1358: [16:29:02] * stephanvd quit (Quit: (null))
1359: [16:33:17] * Otterpocket quit (Quit: WeeChat 0.4.1)
1360: [16:35:30] <Adesso> Anybody wanne give me tip... I feel like a idiot right now asking this, but maybe I am missing something
1361: [16:35:45] <Adesso> I can't get my server to display errors in the browser
1362: [16:36:05] <Adesso> I set the php.ini to E_ALL and display error to ON
1363: [16:36:35] <Adesso> when I make a false include, nothing omes up
1364: [16:36:55] <Adesso> yet when I add error_reposting(-1) before ... it works
1365: [16:36:58] <muskie9> Adesso, in dev mode?
1366: [16:37:00] <Adesso> WTF am I missing
1367: [16:37:14] <Adesso> I don't even have SS installed yet
1368: [16:37:22] * Adesso is making a Vagrant Box ..
1369: [16:37:27] <muskie9> lol
1370: [16:37:31] * gavro has joined #silverstripe
1371: [16:38:03] <Pynomk> haha, yes, fuck you mustache, I defeat you!
1372: [16:38:41] <Pynomk> thehacksaw: yes
1373: [16:39:03] <Adesso> I just don't get it
1374: [16:39:38] <Adesso> the logs work fine... but the damn errors in the Browser is just not wanting to display without this damn php error_reporting() function
1375: [16:40:15] <Adesso> I mean this is simple stuff..
1376: [16:40:29] <Adesso> and somehow I am just not getting it to work .....
1377: [16:40:32] <Adesso> Grrrrr
1378: [16:41:57] * gavro quit (Ping timeout: 260 seconds)
1379: [16:42:02] <guzzlefry> Adesso: nginx?
1380: [16:42:12] <Adesso> apache
1381: [16:42:41] <guzzlefry> fpm?
1382: [16:43:06] <Pynomk> ciao!
1383: [16:43:07] * Pynomk quit ()
1384: [16:43:29] <Adesso> fpm ???
1385: [16:43:54] <Adesso> php fpm ?
1386: [16:45:35] <Adesso> yes... as SAPI Module .. pretty much standard php
1387: [16:45:52] <Adesso> php 5.5.18
1388: [16:50:57] <Adesso> OK, I am creating a Warning with a false include.. but still, E_ALL should display this ..
1389: [16:52:08] * Shrike_Finland quit (Quit: Leaving.)
1390: [16:54:12] * Adesso takes a jab at PHP --- F@*king piece of sh*t
1391: [16:54:14] <Adesso> got it
1392: [16:55:06] <Adesso> if you call the function in the ini it seems to work...
1393: [16:55:54] * Colin[pi] has joined #silverstripe
1394: [16:56:20] <Adesso> error_reporting(E_ALL) instead of error_reporting = E_ALL
1395: [16:56:31] <Adesso> when did they change this !?!
1396: [16:59:28] * Adesso likes to normally just tail the log file, but If I am making a Vagrant box for Noobs, it has to display in the Browser I guess
1397: [17:02:10] * cupcake quit (Ping timeout: 246 seconds)
1398: [17:08:38] * muskie9 is now known as _muskie9_
1399: [17:18:49] * halkyon quit (Ping timeout: 260 seconds)
1400: [17:20:36] * Shrike_Finland has joined #silverstripe
1401: [17:23:54] * Adesso build the First version of the Vagarant Box...
1402: [17:27:08] <Adesso> 562Mb ... :D
1403: [17:27:21] <Adesso> now to add Silverstripe for Version 2
1404: [17:28:38] * halkyon has joined #silverstripe
1405: [17:51:58] * _muskie9_ is now known as muskie9
1406: [18:13:41] * scpi quit (Quit: be excellent to each other)
1407: [18:13:53] * scpi has joined #silverstripe
1408: [18:17:37] * irgbit has joined #silverstripe
1409: [18:22:05] * irgbit quit (Ping timeout: 244 seconds)
1410: [18:37:26] * thehacksaw quit (Ping timeout: 272 seconds)
1411: [18:58:09] * Shrike_Finland quit (Quit: Leaving.)
1412: [18:58:24] * Kingy[a] is now known as Kingy
1413: [19:00:04] <Kingy> moring ya'll
1414: [19:05:32] * Stomach has joined #silverstripe
1415: [19:14:07] * gavro has joined #silverstripe
1416: [19:30:06] * Ryan-Toast has joined #silverstripe
1417: [19:34:55] * jedateach has joined #silverstripe
1418: [19:35:38] * gavro quit (Remote host closed the connection)
1419: [19:36:14] * jedateach has left #silverstripe
1420: [19:40:21] * Kingy is now known as Kingy[a]
1421: [19:50:12] * antmas has joined #silverstripe
1422: [19:50:16] <antmas> morning all
1423: [19:50:32] <antmas> anyone know of an offline tool for checking unused css rules?
1424: [19:52:13] <Ryan-Toast> google chrome if you have a local version.
1425: [19:52:19] <Ryan-Toast> use their new audit tab
1426: [19:52:50] <antmas> noice
1427: [19:52:52] <antmas> Ryan-Toast: chur
1428: [19:53:02] <Ryan-Toast> antmas: np brobeans
1429: [19:53:22] <antmas> oh god
1430: [19:53:30] <antmas> 495 unused rules o.O
1431: [19:53:50] <Ryan-Toast> antmas: don’t stress about it
1432: [19:54:03] <antmas> Ryan-Toast: yeh, 99% of that is font-awesome
1433: [19:54:13] <Ryan-Toast> antmas: yarp
1434: [19:54:28] <Ryan-Toast> just comment out everything and uncomment the ones you use
1435: [19:54:51] * veb has joined #silverstripe
1436: [19:55:03] * antmas should use chrome tools more often
1437: [19:55:12] <Ryan-Toast> yeah, the audit tab is great.
1438: [19:55:18] <antmas> is it quite new?
1439: [19:55:22] <Ryan-Toast> yeah
1440: [19:55:26] <Ryan-Toast> new to this version.
1441: [19:55:45] <Ryan-Toast> there was always extensions that they used to beta test the features, but now it’s core.
1442: [19:56:04] <antmas> awesome
1443: [19:56:11] <antmas> chrome has gotten way better recently
1444: [19:57:57] <Ryan-Toast> antmas: I’ve always sused it, so I take it for granted.
1445: [20:00:02] <Ryan-Toast> had a conversation with the designers a few months ago, and I said that gradients were going to make a big comeback. New Mac version GRADIENT ALL THE TIHINGS!
1446: [20:02:25] * spekulatius has joined #silverstripe
1447: [20:05:09] * gavro_ has joined #silverstripe
1448: [20:06:37] * gavro__ has joined #silverstripe
1449: [20:09:44] * gavro_ quit (Ping timeout: 258 seconds)
1450: [20:12:23] <simon_w> The audits have been in WebKit for a rather long time, they're not new
1451: [20:16:08] <Stomach> 3020 rules (90%) of CSS not used by the current page.
1452: [20:16:10] <Stomach> :S
1453: [20:18:27] * irgbit has joined #silverstripe
1454: [20:22:31] * UndefinedOffset quit (Quit: Leaving.)
1455: [20:22:46] * irgbit quit (Ping timeout: 244 seconds)
1456: [20:23:38] * gavro__ quit (Remote host closed the connection)
1457: [20:24:17] <catcher> Stomach, you wouldn't want load times to be too fast, your site will feel cheap.
1458: [20:25:15] <Stomach> "Your website is faster than 81% of all tested websites"
1459: [20:25:16] <Stomach> :P
1460: [20:25:22] <Stomach> yay for metrics which have no meaning!
1461: [20:26:25] * willr has joined #silverstripe
1462: [20:26:47] * willr quit (Client Quit)
1463: [20:26:59] * novaweb has joined #silverstripe
1464: [20:27:02] * willr has joined #silverstripe
1465: [20:28:19] * irgbit has joined #silverstripe
1466: [20:28:58] * novaweb waves to will and sean!
1467: [20:31:09] <willr> See you friday?
1468: [20:32:08] * UncleCheese has joined #silverstripe
1469: [20:32:44] <simon_w> Look forward to the weekend?
1470: [20:40:26] * jedateach has joined #silverstripe
1471: [20:47:32] * irgbit quit (Remote host closed the connection)
1472: [20:51:11] * Phlunk3 has joined #silverstripe
1473: [20:53:03] <novaweb> willr Yeah buddy! The team I'm in all has kids but will try bring some of the fellow devs along.
1474: [20:53:28] * simon_w|air has joined #silverstripe
1475: [20:53:41] <willr> Thought it was no guests?
1476: [21:00:00] * jedateach quit (Quit: jedateach)
1477: [21:01:35] * Zauberfisch quit (Ping timeout: 265 seconds)
1478: [21:02:06] * jedateach has joined #silverstripe
1479: [21:02:09] * Zauberfisch has joined #silverstripe
1480: [21:02:49] <adrexia> willr for the silverstripe party?
1481: [21:07:19] <UncleCheese> back when the US government could deliver a working website on time. http://www.washingtonpost.com/blogs/the-fix/wp/2014/10/21/the-white-houses-first-website-launched-20-years-ago-this-week-and-it-was-amazing/
1482: [21:07:25] * markcl has joined #silverstripe
1483: [21:07:41] <novaweb> ah willr, Phalkunz got my email on the street but I haven't seen the invite.. he said it was sent though, what's the girl's name who is coordinating?
1484: [21:09:11] * Kingy[a] is now known as Kingy
1485: [21:11:10] <Kingy> sigh.. ALLLLL THE THINGS ARE BROKE
1486: [21:11:12] <willr> Courtney
1487: [21:11:49] <adrexia> you are allowed a guest
1488: [21:11:52] <Kingy> 2047 rules (83%) of CSS not used by the current page o/
1489: [21:11:58] <adrexia> it was in the rsvp
1490: [21:12:24] <adrexia> not sure it extends beyond one though
1491: [21:15:11] * scpi quit (Quit: scpi)
1492: [21:17:01] * micmania1 has joined #silverstripe
1493: [21:17:23] <UncleCheese> does it make me a snob when i immediately dismiss any website that does not connect its labels to its checkbox and radio form controls?
1494: [21:17:43] <UncleCheese> If I click the label, and the thing doesn't toggle, I'm just like.. dude, this site is shit
1495: [21:17:47] <adrexia> no
1496: [21:17:54] <UncleCheese> thank you!
1497: [21:18:03] <UncleCheese> i don't think my expectations are unreasonable
1498: [21:18:07] <adrexia> it has accessibility ramifications
1499: [21:18:19] <adrexia> the dev was negligent
1500: [21:19:15] <adrexia> of course its not always easy to dfo depending on what you are working with
1501: [21:19:31] <UncleCheese> i quite like when they have duplicate ids in the form somewhere, and a label toggles some random other form control
1502: [21:20:04] <adrexia> I don't know about you, but my job is not to make things harder for those who already find the internet hard to access
1503: [21:20:29] <UncleCheese> yeah, and checkboxes are just the worst
1504: [21:20:44] <UncleCheese> tiny little squares that really require prescision mousing
1505: [21:20:58] <Stomach> get a trackball!
1506: [21:21:01] <Stomach> then its even worse :(
1507: [21:21:03] <UncleCheese> ugh
1508: [21:21:11] <UncleCheese> or i could be like hamish and use one of dem designer things
1509: [21:21:13] <adrexia> If I had to use a screen reader, I think using the internet would be the most frustrating thing I could do.
1510: [21:21:28] <UncleCheese> there are a couple sites out there that read well
1511: [21:21:43] <UncleCheese> like.. the International Association for Blind People
1512: [21:21:47] <adrexia> its forms that are the most painful
1513: [21:21:51] * Kingy is now known as Kingy[a]
1514: [21:22:06] <adrexia> people like to make them look pretty for sighted people so remove the elements that make them work for the blind
1515: [21:22:13] <adrexia> lol
1516: [21:22:30] <adrexia> I would be very upsetr if the International Association for Blind People got it wrong
1517: [21:22:33] <adrexia> ;)
1518: [21:22:56] <UncleCheese> yeah, it's kind of like microsoft's home page rendering shitty in IE9
1519: [21:23:06] * stojg has joined #silverstripe
1520: [21:23:20] * Kingy[a] is now known as Kingy
1521: [21:26:02] * kinglozzer has joined #silverstripe
1522: [21:29:20] <UncleCheese> quiet in IRC today
1523: [21:29:20] <antmas> MS -> "the only real way to build custom forms in Sharepoint 2013 is to us InfoPath"
1524: [21:29:22] <antmas> use
1525: [21:29:24] <UncleCheese> yay i'll get some work done
1526: [21:29:27] * markcl quit (Quit: Leaving.)
1527: [21:29:40] <antmas> next article = "We're deprecating InfoPath"
1528: [21:30:02] <Kingy> rofl
1529: [21:30:59] <antmas> http://blogs.office.com/2014/01/31/update-on-infopath-and-sharepoint-forms/
1530: [21:31:17] <antmas> so basically, "we're working on it and we don't have a roadmap yet"
1531: [21:34:31] * Cheddam_ has joined #silverstripe
1532: [21:35:08] * catcher quit (Quit: Leaving)
1533: [21:43:35] <UncleCheese> i really like yosemite and everything, but i'm really mourning the loss of the useless green button
1534: [21:43:43] <UncleCheese> it sucks that it actually does something predictable now
1535: [21:48:06] * irgbit has joined #silverstripe
1536: [21:51:20] <spronk> lol
1537: [21:51:27] <spronk> you like yosemite?
1538: [21:51:32] * stojg quit (Quit: Textual IRC Client: www.textualapp.com)
1539: [21:51:33] <Stomach> which useless green button
1540: [21:51:36] <Stomach> I dont see it
1541: [21:51:37] <spronk> "Zoom"
1542: [21:51:50] <spronk> IMO it would have been really nice if they hadn't gone and ios7'd up all the visuals
1543: [21:51:59] <spronk> god helvetica is ugly on screen
1544: [21:52:02] <Stomach> woah. I have a log of notifications
1545: [21:52:04] <Stomach> thats amazing
1546: [21:58:05] <UncleCheese> spronk i dig it
1547: [21:58:26] <UncleCheese> Stomach the green button in the top left, with the red and yellow buttons
1548: [21:58:30] * kinglozzer quit ()
1549: [21:58:35] <UncleCheese> green never did anything predictable
1550: [21:58:36] <willr> With spronk on that.
1551: [21:58:43] <willr> Weights all over the show.
1552: [21:59:14] * gavro has joined #silverstripe
1553: [21:59:22] <UncleCheese> it's kind of weird how they went flat on some things, but a lot of stuff is still a bit textur-y
1554: [21:59:33] * irogue_ has joined #silverstripe
1555: [22:06:01] <irogue_> good morning ladies and gents
1556: [22:06:49] <Kingy> hey irogue_
1557: [22:07:02] <spronk> some of the animations and stuff are really nice
1558: [22:07:12] <spronk> and ... it definitely seems quicker
1559: [22:07:15] <spronk> than mavs
1560: [22:07:18] <Stomach> UncleCheese - I only just realised you mean the maximise, minimize and close ones
1561: [22:07:27] <Stomach> the maximise one is screwy as fuck.
1562: [22:07:29] <spronk> though the transparency effect is a bit.. 2000-s linuxy
1563: [22:07:55] <spronk> (read: cheap)
1564: [22:08:09] <antmas> are all these imrovements to OSX just look and feel?
1565: [22:13:16] * Stomach quit (Read error: Connection reset by peer)
1566: [22:13:54] * Stomach has joined #silverstripe
1567: [22:14:45] <spronk> hmm
1568: [22:14:49] <spronk> sorta
1569: [22:14:52] <spronk> there are some new features in there as well
1570: [22:16:26] <UncleCheese> yeah, your phone rings on your laptop now
1571: [22:16:27] <UncleCheese> eh
1572: [22:16:31] * hailwood has joined #silverstripe
1573: [22:16:57] <UncleCheese> can i just paste an image in textual and have it handle the uploading to some random image share site?
1574: [22:17:29] <hailwood> Hey guys, I know that to add new styles to the HTMLEditorField you simply add them to the editor.css file, but what about adding new formats?
1575: [22:17:32] * micmania1 quit (Quit: micmania1)
1576: [22:18:52] <spronk> though, this fucking thing with icloud drive or whatever
1577: [22:18:55] <spronk> why is there yet another new icloud thing
1578: [22:20:40] * antmas quit (Ping timeout: 246 seconds)
1579: [22:22:34] <hailwood> Well more accurately what I am trying to do is allow the user to select a section of content inside the editor and apply a "format" which should hopefully wrap it in a div with a class. I then want them to be able to select content inside that "format" and apply styles - the styles should only affect elements inside that format. Doable?
1580: [22:23:45] <simon_w|work> hailwood, probably, but you'll be dealing with the TinyMCE API
1581: [22:25:11] <hailwood> Sigh
1582: [22:25:27] * gavro quit ()
1583: [22:26:28] <JeremyRoundill> The first bit of divs with classes sounds pretty easy.
1584: [22:26:36] <JeremyRoundill> The styles bit after that is a bit trickier.
1585: [22:26:51] <JeremyRoundill> I've used the TinyMCE API before, it's not the most fun thing.
1586: [22:27:10] <JeremyRoundill> I'm picking you'll have to build a plugin for it.
1587: [22:27:29] * Zauberfisch quit (Ping timeout: 255 seconds)
1588: [22:27:59] <hailwood> I don't mind if the styles for that section are always visible, they'll just have no effect if applied to anything outside of that formatted div
1589: [22:29:09] <hailwood> Could you give me some hints on the divs with classes part?
1590: [22:29:15] <Ryan-Toast> JeremyRoundill: v4 api looks okay
1591: [22:29:21] * Zauberfisch has joined #silverstripe
1592: [22:29:56] <Ryan-Toast> Hailwood: use this as a base, man: https://github.com/Rhym/ss_boilerplate/blob/master/boilerplate/code/Modules/Shortcodes/_config.php
1593: [22:30:10] <Ryan-Toast> well, use it to make your own biz
1594: [22:31:11] <hailwood> Appreciated
1595: [22:31:51] <JeremyRoundill> Ryan-Toast: Haven't looked at it yet. Their docs tend to be pretty sub-par though.
1596: [22:32:14] <Ryan-Toast> JeremyRoundill: yeah the 3.0 docs are notoriously bad
1597: [22:34:41] <irogue_> fuck TinyMCE
1598: [22:34:46] * irgbit quit (Remote host closed the connection)
1599: [22:35:25] <JeremyRoundill> Ryan-Toast: It was so painful writing the plugins I had to make.
1600: [22:36:00] <Ryan-Toast> JeremyRoundill: I’ve made one. And it took me about three goes to finish it because of rage.
1601: [22:36:32] <JeremyRoundill> Ryan-Toast: I had to make about 4. It doesn't get better.
1602: [22:36:49] <Ryan-Toast> JeremyRoundill: hopefully we get v4.1 soonish
1603: [22:36:54] <Ryan-Toast> for SS
1604: [22:36:55] <Ryan-Toast> that is
1605: [22:37:54] * kinglozzer has joined #silverstripe
1606: [22:38:36] <hailwood> Ryan-Toast: Probably looking a bit silly here - but how do I get silverstripe to load that config file :|
1607: [22:38:52] <Ryan-Toast> hailwood: just put it in your mysite config
1608: [22:42:55] * irgbit has joined #silverstripe
1609: [22:43:05] <irogue_> also
1610: [22:43:08] <irogue_> fuck Lotus Notes
1611: [22:43:54] <Stomach> is there a better way to do multiple selects than list boxes in SS
1612: [22:43:58] <Stomach> seems so clunky
1613: [22:44:07] * irgbit quit (Remote host closed the connection)
1614: [22:46:28] <Ryan-Toast> I like ist boxes :P
1615: [22:48:50] <simon_w|work> Oops, fucked up my dev environment
1616: [22:51:24] * micmania1 has joined #silverstripe
1617: [22:54:15] <Stomach> how the fuck do I pass a falsey value through yml config
1618: [22:54:16] <Stomach> >_<
1619: [22:54:48] <Stomach> even `property: '0'` doesn't come through in the stat
1620: [22:55:49] <simon_w|work> null?
1621: [22:56:27] <Stomach> hmm nope
1622: [22:56:30] <JeremyRoundill> I've got a gnarly 10KiB/s up to Bitbucket at the moment.
1623: [22:56:33] <Stomach> it has a default value set elsewhere
1624: [22:56:34] <JeremyRoundill> Is that normal?
1625: [22:56:39] <Stomach> as true
1626: [22:56:41] <JeremyRoundill> I'm sure it's usually more like 100KiB/s
1627: [22:57:05] <Stomach> but it gets set if i set it to something else like `property: 123`
1628: [22:57:10] <Stomach> but not 0 or false
1629: [22:57:11] * Mahfuz has joined #silverstripe
1630: [22:57:15] <Stomach> fucking configuration bullshit.
1631: [22:57:54] <simon_w|work> Stomach, oh right, there's an issue for that
1632: [22:57:55] <Mahfuz> Hi every one. I am having a problem with querying dataobject. Can anyone help me please?
1633: [22:58:05] <Stomach> yeah its the merge high to low one right?
1634: [22:58:15] <UncleCheese> irogue_ ?
1635: [22:58:27] <irogue_> UncleCheese !
1636: [22:58:34] <UncleCheese> remember your idea for a property site?
1637: [22:58:45] <irogue_> yep
1638: [22:58:50] <UncleCheese> to make it more fun, and to divorce it from the whole NZ thing
1639: [22:59:02] <UncleCheese> what do you think about localsing it to an imaginary place
1640: [22:59:08] <UncleCheese> like.... Middle Earth?
1641: [22:59:26] <irogue_> that sounds like the opposite of divorcing it from the whole NZ thing, but fun :P
1642: [22:59:31] <simon_w|work> Mahfuz, depends on the problem
1643: [22:59:32] <UncleCheese> well
1644: [22:59:39] <UncleCheese> Mahfuz how did you get on?
1645: [22:59:41] <irogue_> not sure what the legal ramifications of that are though
1646: [22:59:45] <UncleCheese> umm
1647: [22:59:55] <UncleCheese> ugh, you might be right
1648: [23:00:20] <hailwood> Hmm, another question for you Ryan-Toast, how would I get the default styles for the html editor (e.g. the styles loaded from the editor.css) and merge those with the ones from the custom config rather than overwriting them all together? I thought I'd be able to just do an array_merge on HtmlEditorConfig::get('cms')->getOption('style_formats') but it looks like the styles aren't set at that point
1649: [23:01:12] <Mahfuz> Hi UC. I discussed similar issues with you yesterday. Today I have pasted the SilverStripe Tutorial code here and at the bottom asked why the query is not running. Could you or anyone have a look at it and guide me? The code link is - http://www.sspaste.com/paste/show/544830089e6d9
1650: [23:01:46] <Ryan-Toast> hailwood: Sorry, not sure. I don’t use an editor.css file.
1651: [23:02:08] * antmas has joined #silverstripe
1652: [23:03:14] <Mahfuz> Thanks UC for yesterday's help that solved a lot of problem but I am stuck with the searching records using query that tries to fetch records based on the object's object property's property.
1653: [23:03:37] <UncleCheese> Can I ask why you're querying the Project.Title and not the ProjectID?
1654: [23:04:13] <Mahfuz> I want to partially match the title
1655: [23:04:23] <UncleCheese> is that because you want to match the project against text that the user is submitting?
1656: [23:04:32] <Mahfuz> yes
1657: [23:05:04] <UncleCheese> and you're 100% sure you have a Student record in the database with a ProjectID that points to a Project with Title = 'Developer Toolbar';
1658: [23:05:13] <Mahfuz> When I try to run the query for the Tutorial Code, it gives error
1659: [23:05:26] <simon_w|work> kinglozzer, if I submit my Config cache change now, can you merge it? :p
1660: [23:05:34] <Colin[pi]> morning all
1661: [23:05:38] <Mahfuz> I have followed the tutorial directions
1662: [23:05:53] <Kingy> morning Colin[pi]
1663: [23:05:55] <UncleCheese> "gives error" and "doesn't work" aren't very helpful.. can you be more clear?
1664: [23:06:15] <antmas> Colin[pi]: LATE AGAIN I SEE
1665: [23:06:23] <antmas> o-o
1666: [23:06:29] <Colin[pi]> ;_;
1667: [23:06:40] <Mahfuz> And showing the projects as per Tutorial here - http://pixipic.bbtdevelopment.com/projects
1668: [23:07:02] <kinglozzer> lol simon_w|work, I want to stay on the core team a little while yet :P
1669: [23:07:08] <Mahfuz> You can see the projects, students and mentors there
1670: [23:07:18] <UncleCheese> ok
1671: [23:07:20] <UncleCheese> where is the error?
1672: [23:07:37] <simon_w|work> kinglozzer, but pissing off Hamish is so much fun! :p
1673: [23:07:38] <Mahfuz> Let me paste the error
1674: [23:09:19] <Mahfuz> Here is the Error - http://www.sspaste.com/paste/show/544833ce67d42
1675: [23:09:28] <Stomach> kinglozzer - congrats by the way :)
1676: [23:10:20] * jedateach quit (Quit: jedateach)
1677: [23:10:24] <kinglozzer> simon_w|work: Was that the LRU change/removal one? If it's more performant (iirc it was about cpu vs peak memory usage, right?), start a discussion about it on ss-dev!
1678: [23:10:33] <kinglozzer> Thanks Stomach :)
1679: [23:10:44] <jordanmk> hey @simon_w, i tried doing what you said yesterday to add a header above a GridField in a ModelAdminExtension: http://pastebin.com/fiENW8N0
1680: [23:10:50] <jordanmk> but i get this error: [User Error] FieldList::addFieldToTab() Tried to add a tab to object 'FieldList' - 'Root' didn't exist.
1681: [23:11:23] * jedateach has joined #silverstripe
1682: [23:12:34] * jedateach has left #silverstripe
1683: [23:12:41] <kinglozzer> Mahfuz, UncleCheese: I'm wondering if that may be a bug - perhaps Project isn't getting its own table (as it doesn't have any fields, so would just be stored in SiteTree)?
1684: [23:13:44] <Mahfuz> I am stuck with this query for the last 2-3 days with my project where I have similar classes
1685: [23:13:58] <Ryan-Toast> mahfuz: namespace them?
1686: [23:14:08] <kinglozzer> jordanmk: Tried just doing $form_fields->insertBefore(HeaderField::create('Header', 'Fixtures'), $gridFieldName); ?
1687: [23:14:22] <Mahfuz> So I was trying the Tutorial basic code to see if it works
1688: [23:14:43] <Kingy> simon_w|work: you happy with how the conversation around SS as open source has gone?
1689: [23:14:55] <simon_w|work> jordanmk, Root.Main
1690: [23:15:03] <Mahfuz> Ryan-Toast: could you please tell me how? I am new to SS
1691: [23:15:40] <simon_w|work> Kingy, a little. There's been this sort of conversation before (between the core devs), so I'm still sceptical that anything will change
1692: [23:15:41] <Ryan-Toast> mahfuz: namespacing is a php thing, not a ss thing
1693: [23:15:53] <Ryan-Toast> http://php.net/manual/en/language.namespaces.php
1694: [23:16:28] * stojg has joined #silverstripe
1695: [23:16:34] <kinglozzer> Mahfuz: Switch it around and fetch the project, then students related to that project
1696: [23:16:59] <kinglozzer> So $results = Project::get()->filter('Title', 'SomeTitle')->Students();
1697: [23:18:17] <UncleCheese> Mahfuz we tried that yesterday, and it did the same thing
1698: [23:18:33] <UncleCheese> Mahfuz you've run a dev/build, I assume?
1699: [23:19:14] <Mahfuz> yes i did everytime
1700: [23:19:15] <UncleCheese> Ah! I see the issue
1701: [23:19:32] <UncleCheese> Mahfuz kinglozzer Project has no DB or has_one fields, so there's no table
1702: [23:19:52] <UncleCheese> could be a bug, actually
1703: [23:19:58] * jedateach has joined #silverstripe
1704: [23:20:01] <kinglozzer> Yep ^^
1705: [23:20:05] <UncleCheese> simon_w|work do you know anything about this?
1706: [23:20:32] <UncleCheese> tldr; trying to query against a many_many relation on a dataobject that has no table.. MyObject::get()->filter('SomeRelation.Title' ...);
1707: [23:21:07] <UncleCheese> throws an SQL error because it uses MyObject as the FROM table
1708: [23:21:47] <Mahfuz> kinglozzer: when I switch it around I get this error - http://www.sspaste.com/paste/show/5448368544780
1709: [23:21:48] <simon_w|work> UncleCheese, you're missing the key point that's leading to the error. MyObject isn't a direct subclass of DataObject
1710: [23:21:58] <UncleCheese> are you kidding me
1711: [23:22:08] <UncleCheese> ah
1712: [23:22:29] <UncleCheese> well, it still has no table
1713: [23:22:42] <simon_w|work> If it was a direct subclass, it'll have a table
1714: [23:22:56] <UncleCheese> even with no has_one or db ?
1715: [23:23:22] <kinglozzer> simon_w|work, UncleCheese: It's a subclass of page with no fields / has_one
1716: [23:23:44] <simon_w|work> UncleCheese, it'll have ID, Created and LastEdited
1717: [23:23:53] <kinglozzer> So its records are just being stored in SiteTree, presumably
1718: [23:24:06] <UncleCheese> yeah, everything it needs is in the SiteTree table
1719: [23:24:34] <simon_w|work> UncleCheese, this is a bug, BTW
1720: [23:24:48] <UncleCheese> Mahfuz intead of Project::get(), use SiteTree::get()->filter(array(
1721: [23:24:54] <UncleCheese> 'ClassName' => 'Project,
1722: [23:25:00] <UncleCheese> 'Whatever.Title' => 'something'
1723: [23:25:25] <UncleCheese> does that seem like a suitable workaround to you, simon_w|work ?
1724: [23:25:44] <Mahfuz> Let me try with this
1725: [23:25:58] <UncleCheese> except you won't get Project objects back.. so your Students() method won't work.. crap
1726: [23:26:32] <UncleCheese> Mahfuz I think a better workaround actually is just to add a bunk field to the Project object
1727: [23:26:34] * jedateach quit (Quit: jedateach)
1728: [23:26:48] <kinglozzer> That was gonna be my next suggestion UncleCheese :P
1729: [23:26:58] <UncleCheese> private static $db = array ('Nothing' => 'Int');
1730: [23:27:02] <kinglozzer> Dunno if you'll need to re-save the pages in the CMS to create the records in the extra table
1731: [23:27:05] <UncleCheese> or better yet 'Boolean'
1732: [23:27:11] <UncleCheese> save on memory :)
1733: [23:27:12] <simon_w|work> UncleCheese, you would get Project objects back
1734: [23:27:16] <UncleCheese> oh?
1735: [23:27:19] <UncleCheese> ok
1736: [23:27:24] * kinglozzer sleeps
1737: [23:27:25] <kinglozzer> gn all
1738: [23:27:41] <UncleCheese> even though it's DataList::create("SiteTree") it will instantite against the ClassName value?
1739: [23:27:51] * kinglozzer quit ()
1740: [23:28:17] * jedateach has joined #silverstripe
1741: [23:28:38] <Mahfuz> Which one should I try then?
1742: [23:29:08] <simon_w|work> UncleCheese, yup
1743: [23:29:24] <UncleCheese> ok, Mahfuz go with the first one.. SiteTree::get() with a ClassName filter
1744: [23:29:35] <UncleCheese> that's a bit shit.. I wonder if Damian's ORM rewrite fixes thsi
1745: [23:30:22] * veb quit (Quit: preprocessor-irc-cli)
1746: [23:30:46] <simon_w|work> Doubt it
1747: [23:34:08] <Mahfuz> Thanks UC, Simon, kinglozzer, it works. I will try in my real project now. Will come back if I face any further trouble.
1748: [23:35:03] <Mahfuz> I have at least pointed out some bug. I hope it will be resolved soon.
1749: [23:35:33] <Mahfuz> You guys are great.
1750: [23:38:23] * stojg quit (Quit: Textual IRC Client: www.textualapp.com)
1751: [23:39:59] * stojg has joined #silverstripe
1752: [23:41:32] * DimiStripe has joined #silverstripe
1753: [23:42:38] * jedateach has left #silverstripe
1754: [23:43:04] * stojg quit (Client Quit)
1755: [23:43:24] <DimiStripe> HI Guys! I have a $Fields.dataFieldByName(ProfileVisibility) from MemberProfile module, which takes data from ENUM field. How can I change Labels easily, so that ENUM and values stays the same, but Labels on dropdown would be taken from other array ?
1756: [23:45:23] <Ryan-Toast> Has there been a big marketing push recently? Seems like there’s lots of new faces in IRC.
1757: [23:45:46] <Mahfuz> UC: I am getting the Project but not the Students. What to do for now to solve it before the bug is fixed?
1758: [23:46:55] <antmas> Ryan-Toast: I was thinking that
1759: [23:47:14] <antmas> way more than the ole' regulars
1760: [23:49:16] <Colin[pi]> everyone has found out what a cool place this is
1761: [23:49:27] * perverse has joined #silverstripe
1762: [23:49:44] * muskie9 is now known as _muskie9_
1763: [23:49:58] <Kingy> found out you were here antmas
1764: [23:50:09] <Kingy> who's this cool kid from Nelson
1765: [23:50:19] * micmania1 quit (Quit: micmania1)
1766: [23:50:24] <antmas> Kingy: :D
1767: [23:50:35] <antmas> I have that effect
1768: [23:50:40] <UncleCheese> Mahfuz what do you mean " not the students?"
1769: [23:50:48] * Kingy tickles the ego
1770: [23:50:49] <antmas> #theantmaseffect
1771: [23:52:31] <Stomach> antmas - you know Liss & Willy!
1772: [23:52:34] <Stomach> small world.
1773: [23:53:21] <Mahfuz> What I meant is
1774: [23:53:22] <antmas> Stomach: :O
1775: [23:53:30] <antmas> Stomach: Liss is my cousin
1776: [23:53:38] <Mahfuz> $results = SiteTree::get()->filter(array( 'ClassName' => 'Project', 'Project.Title' => 'Developer Toolbar'));
1777: [23:53:43] <Stomach> for serious? I lived with them a couple of years ago
1778: [23:53:53] <Kingy> shit just went meta guys
1779: [23:53:57] <Colin[pi]> :o
1780: [23:54:08] <Mahfuz> I get Project with that but when I add ->Students() at the end it gives error
1781: [23:54:15] * jenniferaslan quit (Remote host closed the connection)
1782: [23:54:23] <Stomach> Mahfuz - whats the error?
1783: [23:54:47] <antmas> Stomach: yeah dude, I lived with Liss when I first moved to Nelson in 2010/11
1784: [23:55:04] <antmas> Stomach: Will was our neighbour
1785: [23:55:09] <antmas> ;)
1786: [23:55:12] <Stomach> hahah :D
1787: [23:55:38] <Mahfuz> Here is the error- http://www.sspaste.com/paste/show/54483ead8beea
1788: [23:55:38] <antmas> really small world
1789: [23:55:40] <antmas> :P

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