#silverstripe IRC Log

IRC log for 2 November 2014

All timestamps are in UTC.

1: [00:28:36] * Stomach has joined #silverstripe
2: [00:39:11] * Stomach quit (Quit: zzz)
3: [00:40:02] * Stomach has joined #silverstripe
4: [00:49:15] * Stomach quit (Quit: zzz)
5: [00:49:44] * Stomach has joined #silverstripe
6: [01:13:21] * Pyromanik quit (Ping timeout: 260 seconds)
7: [01:14:17] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
8: [01:17:23] * Stomach quit (Quit: zzz)
9: [01:29:40] * UncleCheese has joined #silverstripe
10: [01:30:51] * UncleCheese quit (Client Quit)
11: [01:55:10] * UncleCheese has joined #silverstripe
12: [01:57:21] * SightUnseen1 has joined #silverstripe
13: [02:01:54] * SightUnseen1 has left #silverstripe
14: [02:33:25] <mudmonth> how do i go about adding split view to some custom dataobject rather than a page object?
15: [02:34:39] <mudmonth> i figure when they hit save i could manually fire up the actual page in the site that will render that dataobject (they are edited seperately from pages) and put it in the preview pane
16: [02:59:33] * veb has joined #silverstripe
17: [03:04:30] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
18: [03:06:02] * green255 has joined #silverstripe
19: [03:13:36] * UncleCheese has joined #silverstripe
20: [03:14:21] <green255> Hi folks. Looking to adopt a CMS. I've been researching SilverStripe for about 2 hours. I can't find whether or not there is a way to create a page (listview?) that aggregates posts by tag/keyword. Is this possible out of the box or via an extension?
21: [03:16:27] <ss23> mudmonth: No idea, but if you find out, you should write a tutorial or some documentation for it
22: [03:19:14] <simon_w> Oh goody, I get to figure out which of sortablegridfield and gridfieldbulkedit is breaking
23: [03:19:40] <simon_w> green255, the blog module has that builtin
24: [03:20:29] <green255> thanks simon
25: [03:23:16] <UncleCheese> serious uploadfield fail
26: [03:23:39] <UncleCheese> if you upload a file whose name already exsists in the destination folder, your only option is to overwrite it, or abort the upload
27: [03:32:58] * veb quit (Quit: preprocessor-irc-cli)
28: [03:33:16] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
29: [03:34:08] * UncleCheese has joined #silverstripe
30: [03:37:06] * UncleCheese quit (Client Quit)
31: [03:49:32] * veb has joined #silverstripe
32: [03:52:51] * green255 quit (Remote host closed the connection)
33: [04:01:08] * veb quit (Quit: preprocessor-irc-cli)
34: [04:31:38] * Colin[pi] quit ()
35: [04:40:01] * cloph has joined #silverstripe
36: [04:40:22] * cloph_away quit (Ping timeout: 240 seconds)
37: [06:00:02] * Error404NotFound has joined #silverstripe
38: [06:05:47] * Err404NotFound has joined #silverstripe
39: [06:05:47] * Error404NotFound quit (Disconnected by services)
40: [06:10:12] * r_hector quit (Quit: Leaving.)
41: [06:10:46] * r_hector has joined #silverstripe
42: [06:11:18] * r_hector quit (Client Quit)
43: [06:13:18] * r_hector has joined #silverstripe
44: [06:52:14] * r_hector quit (Quit: Leaving.)
45: [06:54:13] * r_hector has joined #silverstripe
46: [07:11:59] * Stomach has joined #silverstripe
47: [07:16:20] * Tom-Alexander has joined #silverstripe
48: [07:19:02] * Tom-Alexander has left #silverstripe
49: [07:28:54] * UncleCheese has joined #silverstripe
50: [07:40:43] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
51: [07:45:17] * r_hector quit (Quit: Leaving.)
52: [08:04:06] * UncleCheese has joined #silverstripe
53: [08:04:42] * UncleChe_ has joined #silverstripe
54: [08:07:10] * UncleChe_ quit (Client Quit)
55: [08:07:32] * UncleCheese quit (Client Quit)
56: [08:25:53] * Kingy is now known as Kingy[a]
57: [08:32:16] * Stomach quit (Quit: zzz)
58: [08:47:36] * _muskie9_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
59: [10:09:22] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
60: [10:29:25] * oetiker_ quit (Ping timeout: 272 seconds)
61: [10:29:26] * oetiker quit (Ping timeout: 272 seconds)
62: [10:58:29] * oetiker has joined #silverstripe
63: [12:24:57] * Pyromanik has joined #silverstripe
64: [13:29:16] * Fuxo has joined #silverstripe
65: [14:56:31] * Pyromanik quit (Ping timeout: 255 seconds)
66: [15:21:52] <mudmonth> Hey, Line 28 of /cms/code/controllers/SilverStripeNavigator.php looks like it's missing a sprintf();
67: [17:16:33] * oetiker quit (*.net *.split)
68: [17:19:25] * gelignite has joined #silverstripe
69: [17:20:00] * oetiker has joined #silverstripe
70: [17:52:21] * CodeTrap has joined #silverstripe
71: [17:52:22] * Fishy has joined #silverstripe
72: [17:55:55] <Fishy> hello!
73: [18:04:38] * SightUnseen has joined #silverstripe
74: [18:05:39] * SightUnseen quit (Client Quit)
75: [18:40:35] * CodeTrap quit (Quit: CodeTrap)
76: [18:40:49] * Guits has joined #silverstripe
77: [18:41:43] <Guits> How can i remove <br > from a textfield?
78: [18:59:27] * Stomach has joined #silverstripe
79: [19:01:19] * Stomach quit (Client Quit)
80: [19:13:58] * Guits quit (Ping timeout: 250 seconds)
81: [19:17:27] * Pyromanik has joined #silverstripe
82: [19:19:22] * Phlunk3 has joined #silverstripe
83: [19:42:27] * Stomach has joined #silverstripe
84: [19:48:08] * spekulatius has joined #silverstripe
85: [19:52:44] * Guits has joined #silverstripe
86: [20:01:53] * MrGuits has joined #silverstripe
87: [20:04:52] * Guits quit (Ping timeout: 244 seconds)
88: [20:09:05] * Kingy[a] is now known as Kingy
89: [20:25:26] * simon_w quit (Quit: Ping timeout: your mum)
90: [20:28:19] * simon_w has joined #silverstripe
91: [20:29:48] * JeremyRoundill quit (Quit: Leaving)
92: [20:30:05] * JeremyRoundill has joined #silverstripe
93: [20:30:10] <PapaBearNZ> Good morrow fellow SS devs!
94: [20:30:21] <Kingy> morning
95: [20:30:23] <JeremyRoundill> G'day
96: [20:32:56] * Fuxo quit (Quit: Leaving)
97: [20:39:52] * Kingy is now known as Kingy[a]
98: [20:41:52] * pippy has joined #silverstripe
99: [20:44:40] * hailwood has joined #silverstripe
100: [20:47:45] <hailwood> Hi guys,
101: [20:47:46] <hailwood> Does anyone know of something for SS3 that can automatically post your blog posts to Facebook?
102: [20:52:09] * Colin[pi] has joined #silverstripe
103: [20:53:23] * Ryan-Toast has joined #silverstripe
104: [20:53:47] * wracu has joined #silverstripe
105: [20:55:31] * mahfuz has joined #silverstripe
106: [20:55:57] * novaweb has joined #silverstripe
107: [20:56:31] <mahfuz> Good Morning. How to remove an item from a session array?
108: [20:57:54] <novaweb> hi mahfuz, try start using google as first point of reference
109: [20:57:59] <novaweb> https://www.google.co.nz/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=silverstripe%20session%20clear
110: [20:58:34] <novaweb> Session::clear('MyValue'); // myvalue is no longer 6.
111: [21:04:16] * micmania1 has joined #silverstripe
112: [21:04:33] <Pyromanik> hurro PapaBearNZ
113: [21:04:57] <Pyromanik> hallo micmania1
114: [21:05:10] <micmania1> Pyromanik: areet
115: [21:05:21] <Pyromanik> reet
116: [21:07:26] <micmania1> smells like new office this morning :)
117: [21:07:47] <Pyromanik> noice
118: [21:08:20] <Pyromanik> Is that was the party was all about?
119: [21:08:24] <Pyromanik> also, where is new office?
120: [21:09:31] <micmania1> yep, its the sachi building. Like to buildings along haha
121: [21:09:35] <micmania1> closer to burger fuel :)
122: [21:09:45] <micmania1> two buildings along*
123: [21:09:55] <Pyromanik> The one right on the corner then?
124: [21:10:06] <Pyromanik> Because Symes de Silva was already only 2 doors away from burger fuel1
125: [21:10:07] <Pyromanik> !
126: [21:10:48] <micmania1> yeah, we’re above BF now
127: [21:11:01] <micmania1> so we go down in the lift and its next door :D
128: [21:11:04] <Pyromanik> dangerous!
129: [21:11:22] <Pyromanik> Go to Queenstown, getchoself a fergburger
130: [21:11:50] <Pyromanik> You're English, you'll have no issues with waiting in line for 2 hours to get one! xD
131: [21:12:07] <Pyromanik> Do like a tour of NZ burgers :P
132: [21:13:40] <mahfuz> novaweb: thanks for your suggestion. I was talking about removing an item from a Session ARRAY. I can remove a session variable no problem. but need to know the proper way of removing an item from an array.
133: [21:14:26] <Pyromanik> Session::clear()
134: [21:14:55] <Pyromanik> Session::clear(Blah.key.nestedkey.dot.dot.dot)
135: [21:15:04] <Pyromanik> or something
136: [21:15:27] <Pyromanik> api.silverstripe.org/3.1/class-Session.html
137: [21:15:49] <Pyromanik> One o' them like.
138: [21:15:58] <mahfuz> I have an array in Session name Mylightbox, I want to remove an item from the array having a value of suppose 201
139: [21:19:01] <Pyromanik> $a = Session::get('Mylightbox'); unset($a[array_search(201,$a)]; Session::set('Mylightbox', $a);
140: [21:19:45] <Pyromanik> or something
141: [21:20:56] <mahfuz> Thanks
142: [21:24:02] * Kingy[a] is now known as Kingy
143: [21:25:02] <Kingy> micmania1: good win for your people in the weekend
144: [21:25:08] <micmania1> easy.
145: [21:25:21] <Kingy> shit loss for me this morning
146: [21:25:47] <micmania1> ha I was just checking that score
147: [21:26:01] <Kingy> Smalling brah.. needs to be smacked into next week
148: [21:27:33] * nzstephenf has joined #silverstripe
149: [21:33:26] * nzstephenf quit (Quit: Page closed)
150: [21:34:30] * nzstephenf has joined #silverstripe
151: [21:39:00] * UncleCheese has joined #silverstripe
152: [21:42:34] * muskie9 has joined #silverstripe
153: [21:45:27] * muskie9 quit (Client Quit)
154: [21:56:31] * spronk2 has joined #silverstripe
155: [21:56:56] <spronk2> blam!
156: [21:56:58] <UncleCheese> new office!
157: [21:57:16] <spronk2> woot
158: [21:57:20] <spronk2> flash as?
159: [21:57:49] <UncleCheese> yes.. flash as a big explosion that tossed every loose piece of wiring or equipement all over a 1,000sqm radius
160: [21:57:58] <spronk2> :D
161: [21:58:17] <UncleCheese> ... but.. we're getting there
162: [21:58:35] <Kingy> does that mean I have backups now UncleCheese :P
163: [21:59:27] <JeremyRoundill> 1000sqm radius?
164: [21:59:32] <JeremyRoundill> Are you in a giant silo?
165: [21:59:39] <JeremyRoundill> Please tell me you are.
166: [22:00:32] <spronk2> that would be epically cook
167: [22:00:33] <spronk2> cool
168: [22:03:52] * simon_w|work has joined #silverstripe
169: [22:04:43] <simon_w|work> Oh no, it's me!
170: [22:04:57] <Pyromanik> :O
171: [22:05:03] <JeremyRoundill> 10 points for making it in on a Monday.
172: [22:05:34] * guci0 quit (Ping timeout: 246 seconds)
173: [22:05:40] <simon_w|work> It's not a long weekend in the ACT
174: [22:05:50] <Pyromanik> hawt (PUN INTENDED)
175: [22:05:52] <simon_w|work> And no holiday tomorrow either
176: [22:06:05] <JeremyRoundill> You're in the ACT?
177: [22:06:09] <Pyromanik> I wore shorts to work, everyone thought I was a fuck'n weirdo.
178: [22:06:10] <JeremyRoundill> Unlucky.
179: [22:06:13] <Pyromanik> GREAT SUCCESS
180: [22:06:26] <simon_w|work> Pyromanik, heh, I did that when it was -5. Great fun!
181: [22:06:31] <micmania1> Pyromanik: everyone thinks that anyway.
182: [22:06:31] <JeremyRoundill> I assume that means you see Tony Abbot on a daily basis. :P
183: [22:06:45] <simon_w|work> JeremyRoundill, he spends most of his time in Sydney
184: [22:06:51] <Pyromanik> micmania1, probably. I coupled shorts with a SS tee shirt
185: [22:06:59] <micmania1> oh nice.
186: [22:07:28] <Pyromanik> Also, about a week or so back I heard one of the chaps at work say "Kia Ora"
187: [22:07:36] <Pyromanik> and I shat bricks. "what did you just say?"
188: [22:07:49] <Pyromanik> Turns out, he was talking about ORANGE JUICE :<
189: [22:07:53] <simon_w|work> JeremyRoundill, coalition PMs seem to prefer wasting money on having their official residences in Sydney
190: [22:07:54] <micmania1> hahaha
191: [22:08:01] <spronk2> hahaha
192: [22:08:12] <micmania1> I orders some brown ale last night and a new glass set :)
193: [22:08:15] <Pyromanik> Who the fuck names orange juice "hello?"
194: [22:08:35] <Pyromanik> micmania1, newcastle broon eh?
195: [22:08:54] <JeremyRoundill> simon_w|work: I don't follow Aussie politics nearly as closely as I should. Parliament's in the ACT, right?
196: [22:08:59] <Pyromanik> noocasssle
197: [22:09:00] <simon_w|work> JeremyRoundill, yup
198: [22:09:10] <micmania1> Pyromanik: http://www.amazon.co.uk/dp/B004L6FJP0/ref=pe_385721_37986871_TE_item - complete with beer mats.
199: [22:09:24] <JeremyRoundill> simon_w|work: How does that work, having an official residence so far away from his place of work?
200: [22:09:29] <Pyromanik> lol fuck, clicked link, browser not open. See you in half an hour :<
201: [22:09:46] <simon_w|work> JeremyRoundill, private jet
202: [22:10:40] <Pyromanik> micmania1, HALF pint!?
203: [22:10:43] <JeremyRoundill> simon_w|work: ffs, really?
204: [22:10:44] <Pyromanik> :P
205: [22:10:58] <micmania1> Pyromanik: you don’t drink brown ale out of a pint glass. You have a bottle and keep refilling the half pint.
206: [22:11:09] <simon_w|work> JeremyRoundill, he also stays at the local army base if he doesn't feel like flying
207: [22:11:20] <Pyromanik> micmania1, I think you mean 'keep replacing the bottle when it gets empty'
208: [22:11:31] <simon_w|work> JeremyRoundill, basically, he's a fuckwit :p
209: [22:11:36] <Pyromanik> :P
210: [22:11:43] <micmania1> Pyromanik: the actual bottle is like 550ml
211: [22:11:46] <Pyromanik> "do you want a glass?"
212: [22:11:49] * spronk2 quit (Remote host closed the connection)
213: [22:11:53] <Pyromanik> "Why, is the bottle plastic?"
214: [22:11:58] <JeremyRoundill> simon_w|work: Yeah, how has he not been capped yet?
215: [22:11:59] <micmania1> i never get a glass, just thought it’d be nice to have haha
216: [22:12:03] <Pyromanik> micmania1, I know, I'm partial :P
217: [22:12:05] <micmania1> Will bring some into the office too :)
218: [22:12:09] <JeremyRoundill> simon_w|work: He seems like the George Bush of Australia.
219: [22:12:17] <Pyromanik> micmania1, well that's true, hehe. It is branded :>
220: [22:12:25] <simon_w|work> JeremyRoundill, I think that's who he aspires to be
221: [22:12:28] <Pyromanik> so you can flout your Geordieness even when not drinking beer.
222: [22:12:29] <micmania1> Only problem is they don’t ship to NZ so I have to get it delivered back home first.
223: [22:12:35] <JeremyRoundill> simon_w|work: Jeez
224: [22:12:36] <Pyromanik> oh rude :<
225: [22:12:51] * Fishy quit ()
226: [22:13:03] <Kingy> how do you guys name git branches
227: [22:13:11] <Kingy> do you just do a new branch for every fix
228: [22:13:17] <Pyromanik> by the feature it's containing
229: [22:13:18] <Kingy> or do you do a branch for every sprint
230: [22:13:23] <simon_w|work> Kingy, ticket-<ticket number>
231: [22:13:29] <Pyromanik> new branch per feature.
232: [22:13:54] <micmania1> I always do <ticket number>-description
233: [22:14:00] * UncleCheese quit (Ping timeout: 255 seconds)
234: [22:14:01] <Pyromanik> WHOLEY FUCK YOU SHIT CLIENT LET ME DO / fix
235: [22:14:27] <simon_w|work> Kingy, alternatively, I do everything in master
236: [22:14:35] * Pyromanik trundles off to investigate hexchat on the winduhs
237: [22:15:06] * spronk2 has joined #silverstripe
238: [22:15:12] <Pyromanik> wtf visual C++
239: [22:15:14] <Pyromanik> who does that?
240: [22:16:31] <JeremyRoundill> It combines the best of both worlds.
241: [22:16:33] <spronk2> hehehhh
242: [22:16:39] <spronk2> finally decided on a computer naming scheme
243: [22:16:58] <JeremyRoundill> The low-level efficiency of C++ with the clunky, shit UI of Visual Studio.
244: [22:17:24] <JeremyRoundill> Disney princesses?
245: [22:17:41] <JeremyRoundill> Because if you don't take Disney princesses, that's totally my next PC naming scheme.
246: [22:17:48] <spronk2> BORAT QUOTES
247: [22:17:51] <spronk2> slash words
248: [22:17:57] <JeremyRoundill> Very nice!
249: [22:17:59] <spronk2> :D
250: [22:18:00] <Colin[pi]> I LIKE
251: [22:18:08] <simon_w|work> How much?
252: [22:18:10] <spronk2> YAKSHEMASH
253: [22:18:16] <JeremyRoundill> http://assets.diylol.com/hfs/390/585/437/resized/borat-mankini-meme-generator-very-nice-i-like-d5c27d.jpg
254: [22:18:29] <spronk2> DZIENKUJE!
255: [22:18:32] <spronk2> eheh
256: [22:20:21] <novaweb> What's the class for running custom MySql commands? MySQLQuery?
257: [22:20:25] <spronk2> so far i have... yakshemash, dzienkuje, verynice, howmuch, ilike, wawaweewa
258: [22:20:46] <novaweb> spronk2 I am polish, what are you trying to learn?
259: [22:20:48] * Nightjar has joined #silverstripe
260: [22:20:53] <spronk2> novaweb these are borat quotes :P
261: [22:20:55] <Nightjar> /fix
262: [22:20:58] <Nightjar> boom
263: [22:21:00] <novaweb> Use "Zrob mi loda" on girls ;)
264: [22:21:04] <spronk2> o_O
265: [22:21:07] <spronk2> rub my something?
266: [22:21:21] <Nightjar> wash my car
267: [22:21:24] <simon_w|work> novaweb, DB::query('Blah')?
268: [22:21:33] <simon_w|work> Returns a MySQL_Query object
269: [22:21:56] <novaweb> thank you simon
270: [22:22:09] <novaweb> spronk2, it's NSFW lol
271: [22:22:20] <spronk2> yeahhh
272: [22:22:23] <spronk2> didn't think it was :P
273: [22:22:47] <Kingy> pfft living on the edge is always run
274: [22:22:49] <Kingy> fun*
275: [22:23:25] <mahfuz> Hey I want to use DPS hosted payment in my site. want generate the fields to be sent to DPS page and handle the response. I found this in google search - https://github.com/silverstripe-labs/silverstripe-payment_dpshosted/blob/master/code/DPSHostedPayment.php - Can anyone tell me how I can use it? Or if there is anything simpler?
276: [22:24:37] <Nightjar> dps ftw
277: [22:24:48] <Kingy> mahfuz: that's pretty much what we use
278: [22:24:54] <Nightjar> mahfuz, you install it.
279: [22:25:02] <Nightjar> You make sure you follow the install instructions.
280: [22:25:04] <Nightjar> That's it.
281: [22:25:15] <Nightjar> there's nothing more to it, other than making your code use it.
282: [22:25:24] <mahfuz> put DPSHostedPayment.php in mysite/code
283: [22:25:30] <mahfuz> and then what?
284: [22:25:32] <Nightjar> no
285: [22:25:35] <Nightjar> none of that noise
286: [22:25:44] <Nightjar> suggest you revisit the instructions
287: [22:25:54] <Nightjar> and or installing modules in SS in general
288: [22:26:07] <mahfuz> can anyone give me example code to call/use it?
289: [22:26:22] <Nightjar> yeah, the docs on the module... <checks if there are any>
290: [22:26:44] <Nightjar> https://github.com/silverstripe-labs/silverstripe-payment_dpshosted
291: [22:26:45] <Nightjar> this
292: [22:26:48] <Nightjar> this is the module.
293: [22:26:57] <Nightjar> don't just go copying and pasting that one class.
294: [22:27:42] <Nightjar> ah shit, they reference the old docs site
295: [22:27:45] <Nightjar> well
296: [22:27:54] <Colin[pi]> I forgot to say morning all... morning all
297: [22:28:00] <Nightjar> download the module, install it to the _sivlerstripe_root_
298: [22:28:08] <Nightjar> not your project's code dir.
299: [22:28:12] <Nightjar> good morning Colin[pi]
300: [22:28:24] <Nightjar> mahfuz, then ensure you've also got the payment module
301: [22:28:42] <Nightjar> https://github.com/silverstripe-labs/silverstripe-payment
302: [22:29:03] <Nightjar> take the similar steps with that
303: [22:29:14] <Kingy> Colin[pi]: moin
304: [22:29:15] <Kingy> how goes it
305: [22:29:24] <Colin[pi]> Kingy: ok cept I have a headache for some reason
306: [22:29:25] <mahfuz> Ok Nightjar: I got it. I am new to SS. Excuse my ignorance. Install the module and then what. The documentation link don't have anything.
307: [22:29:43] <mahfuz> Does anyone have any sample code or tutorial?
308: [22:29:44] <Nightjar> yeah, it's not up to date :(
309: [22:30:00] <Nightjar> mahfuz, i'm trying to find you some, please be patient
310: [22:30:14] <mahfuz> Thanks Nightjar
311: [22:31:26] <Nightjar> mahfuz, wait, are YOU hosting the payments, or are you using the gateway redirect page?
312: [22:31:50] <Kingy> Colin[pi]: that's not what you want on a monday morning
313: [22:31:58] <Nightjar> if the latter, you don't need that dpshosted module.
314: [22:32:03] * gelignite quit (Quit: http://bit.ly/nkczDT)
315: [22:32:49] <mahfuz> I want to use the dps hosted option. send all the data (total amount, currency, success page url etc.) to dps and process the response in my success page
316: [22:32:54] * Stomach_ has joined #silverstripe
317: [22:33:13] <Nightjar> mahfuz, so in otherwords, you're hosting it.
318: [22:33:20] <Nightjar> YOU are the one taking CC info?
319: [22:33:28] <Colin[pi]> Kingy: coffee will fix all
320: [22:33:37] <Kingy> +1 of course it will
321: [22:33:38] <mahfuz> no I don't want to take the CC
322: [22:33:38] <Nightjar> if so, need module. If not (dps do it) then no extra module.
323: [22:33:46] <Nightjar> mahfuz, then you only need the payment module.
324: [22:33:52] <Nightjar> it supports DPS natively.
325: [22:34:14] <mahfuz> what is the link to the module?
326: [22:34:22] <Nightjar> the hosted module is for taking a client's info, then passing _all_ the details to DPS (incl. CC info)
327: [22:34:30] <mahfuz> and is there any doc to use it?
328: [22:34:31] <Nightjar> see above, where I pasted it
329: [22:34:35] <adrexia> My Monday started unexdcpectedly well. I forgot that I had a launch party this morning. And they gave us branded treats
330: [22:34:36] * Stomach quit (Ping timeout: 250 seconds)
331: [22:34:40] <adrexia> +1
332: [22:36:06] <mahfuz> Nightjar: you mean https://github.com/silverstripe-labs/silverstripe-payment module
333: [22:36:17] <Nightjar> yes
334: [22:36:40] <Colin[pi]> adrexia: awesome! you know it's only going to go downhill from here...
335: [22:36:48] <Nightjar> mahfuz, although looking at it, you're probably better off with: https://github.com/frankmullenger/silverstripe-payment
336: [22:36:52] <novaweb> NightJar/mahfuz - i've been working on this recently, you should use SilverStripe Omnipay by jedateach
337: [22:37:02] <mahfuz> So I just install that module and then how do I use it?
338: [22:37:03] <Nightjar> frank is the 'official' maintainer so far as I know.
339: [22:37:09] <Nightjar> and that fork actually has docs.
340: [22:37:17] <novaweb> I've had limited success with other PX PAY DPS HPP modules.
341: [22:37:37] <Nightjar> https://github.com/frankmullenger/silverstripe-payment/tree/1.0/docs/en
342: [22:37:52] <adrexia> Colin[pi], well it's hard to top chocholate and a brightly coloured branded keep cup
343: [22:37:54] <Nightjar> https://github.com/frankmullenger/silverstripe-payment
344: [22:37:56] <Nightjar> for an overview
345: [22:38:03] <novaweb> Does someone have an Example DB::query so I can see the ins and outs of escaping etc?
346: [22:38:09] <Nightjar> mahfuz, please open the page, the basic docs are right there.
347: [22:38:14] <Nightjar> if you want more, see the docs folder
348: [22:38:16] <adrexia> even this little booklet they gave out is a nice piece of art
349: [22:38:27] * kinglozzer has joined #silverstripe
350: [22:38:32] <Nightjar> loz!
351: [22:38:33] <Colin[pi]> adrexia: must be cashed up :P
352: [22:38:51] <kinglozzer> Yo Nightjar
353: [22:39:01] <Nightjar> novaweb, what do you mean 'example DB::query()' ?
354: [22:39:18] <adrexia> Colin[pi], they got sponsorship from Whittakers ')
355: [22:39:21] <adrexia> ;)
356: [22:39:26] <Colin[pi]> adrexia: ahhhh oic
357: [22:39:33] <kinglozzer> God I've had a shit week off
358: [22:39:41] <Colin[pi]> kinglozzer: :(
359: [22:39:44] <ss23> You had a week off.. and it was shit?! :O
360: [22:39:48] <kinglozzer> Fuck'n caught some norovirus on Monday
361: [22:39:51] <adrexia> it's these guys: http://www.esr.cri.nz
362: [22:39:52] <kinglozzer> Rest of week = write off
363: [22:40:06] <ss23> aha, that sucks man
364: [22:40:14] <mahfuz> Thanks Nightjar. I will have a look into it.
365: [22:40:14] <Kingy> gah a week off would be nice
366: [22:40:18] <kinglozzer> Typical it's my bloody week off :(
367: [22:40:19] <adrexia> (if you are using telecom, ignore it - chances are the DNS hasn't propogated ;) )
368: [22:40:45] <Nightjar> kinglozzer, gawd... that's the shit virus right?
369: [22:40:55] <Colin[pi]> kinglozzer: I got the flu on my trip to NZ in Aug, was fine for the conference, then my two days off for "tourist stuff" was spent mostly in bed
370: [22:40:57] <Colin[pi]> YAY
371: [22:41:02] <kinglozzer> Nightjar: The shit + puke one yeah :P
372: [22:41:08] <Nightjar> D:
373: [22:41:11] <Nightjar> rotovirus
374: [22:41:22] <adrexia> ewww
375: [22:41:27] <nzstephenf> Telecom? ;) I don't think I've ever heard of that company. Would you mean Spark? ;)
376: [22:41:27] <Nightjar> Colin[pi], fuck man, harden up
377: [22:41:32] <Colin[pi]> :P
378: [22:41:32] <novaweb> yes nightjar
379: [22:41:35] <novaweb> anyone?
380: [22:41:40] <adrexia> nzstephenf, lol
381: [22:41:41] <kinglozzer> Colin[pi]: Nearly booked a holiday for this week with family.. what fun that would've been!
382: [22:41:44] <Nightjar> novaweb, well I've no idea what you mean by 'escaping'
383: [22:41:46] <adrexia> maybe
384: [22:41:47] <Nightjar> it's just raw sql
385: [22:41:53] <Nightjar> escape where appropriate.
386: [22:41:55] <kinglozzer> Colin[pi]: I'd hate to be ill somewhere I don't know :P
387: [22:41:58] <micmania1> kinglozzer: you sure you haven’t got ebola?
388: [22:42:09] <Nightjar> in other words, don't use DB::query for anything user input.
389: [22:42:12] <adrexia> if they gave me free stuff when *their* brand launched I'd maybe get it right
390: [22:42:13] <novaweb> Nightjar http://en.wikipedia.org/wiki/Escape_character
391: [22:42:14] <kinglozzer> micmania1: Haha, I kept telling my sister that's what it was
392: [22:42:16] * adrexia grins
393: [22:42:21] <micmania1> haha
394: [22:42:21] <Colin[pi]> kinglozzer: yeah it sucked :(
395: [22:42:27] <Nightjar> because you'll probably fuck it up, and you'll end up like drupal
396: [22:42:33] <novaweb> IE, do I escape any of the quotes in the mysql command
397: [22:42:50] <novaweb> does the query command have surrounding double quotes..
398: [22:43:11] <novaweb> All I need is to see DB::query used somewhere.. guess I'll dig in the framework..
399: [22:43:19] <Nightjar> novaweb, do you know SQL? -.-
400: [22:43:37] <novaweb> Are you trying to be funny?
401: [22:43:44] <Nightjar> novaweb, are you!?
402: [22:43:58] <JeremyRoundill> DB::query is serious business.
403: [22:44:01] <Nightjar> it's a PHP funciton, that takes an SQL statement as a parameter
404: [22:44:07] <Nightjar> It's not that tricky.
405: [22:44:29] <micmania1> novaweb: yes, you need to escape input.
406: [22:44:31] <Nightjar> obviously that statement will need to be a string
407: [22:44:35] <novaweb> Funny guy, if you can't assist don't be a dick
408: [22:44:39] <novaweb> thanks micmania1
409: [22:44:53] <novaweb> that's what I wanted to know.
410: [22:44:58] <Nightjar> novaweb, I did assist, and you got all 'i dont even know what' on me
411: [22:45:30] <Nightjar> <Nightjar> it's just raw sql
412: [22:45:31] <Nightjar> <Nightjar> escape where appropriate.
413: [22:46:13] <Nightjar> if you mean 'do I need to be careful to escape PHP string expansion things where appropriate and put slashes in where I have double quotes' - yes, of course.
414: [22:46:53] <Nightjar> when you say SQL command with double quotes around it - double quotes are for tables, there is no command that has double quotes around it in SQL, so it was a legitimate question!
415: [22:46:54] <Nightjar> fuck
416: [22:47:05] <Nightjar> you try and help some people and they just explode in your face
417: [22:47:09] <adrexia> Nightjar, I think he was asking whether he needed to do it or whether the query would do it for him
418: [22:47:31] <Nightjar> adrexia, and I'd already told him that it was raw, so was wondering what he meant when he persisted!
419: [22:47:38] <adrexia> which it doesn't - but so much does in Silverstripe that it isn't a silly question
420: [22:47:45] * adrexia shrugs
421: [22:47:58] <adrexia> Internet is hard to judge tone
422: [22:48:20] <Nightjar> yeah just about anything orm related will auto escape. But DB::query is a direct line, so to speak.
423: [22:48:38] <adrexia> yep
424: [22:48:47] <kinglozzer> Nightjar: DO I NEED TO ESCAPE IN LARAVEL?!
425: [22:48:51] <kinglozzer> HELP
426: [22:48:53] <kinglozzer> :(
427: [22:48:54] <adrexia> lols
428: [22:49:09] <kinglozzer> Seriously though, I can't get my head around this migrations shit
429: [22:49:23] <kinglozzer> Want to add a new DB field? CREATE A NEW PHP CLASS OBVIOUSLY
430: [22:49:23] <JeremyRoundill> kinglozzer: migrations are great.
431: [22:49:26] <kinglozzer> D:
432: [22:49:42] <JeremyRoundill> kinglozzer: It's just so weird having them all run in sequence based on filename
433: [22:50:30] <JeremyRoundill> kinglozzer: Combining that will all the migrate/rollback/seed thingos makes it even more confusing
434: [22:50:45] <JeremyRoundill> kinglozzer: class CreateUserSubmittedAnswerForeignKeys extends Migration
435: [22:50:56] <JeremyRoundill> kinglozzer: kinda gross
436: [22:50:57] <Nightjar> kinglozzer, you need to escape laravel.
437: [22:51:12] <wracu> hi
438: [22:51:16] <kinglozzer> JeremyRoundill: Mmm, the worst bit is how the schema for one table can be split over any number of files
439: [22:51:41] <JeremyRoundill> kinglozzer: Soo confusing if you don't think everything through to begin with.
440: [22:51:51] <wracu> quick question. How do I force selection to the _Live table when using DataObject::get ?
441: [22:51:58] <JeremyRoundill> kinglozzer: my setup creates a bunch of tables then sets up their relationships
442: [22:52:04] <Nightjar> kinglozzer, want a new field? JFDI, fuck schema modelling in code if it's not autogen'd
443: [22:52:09] <Nightjar> :P
444: [22:52:12] <kinglozzer> I enjoy the speed compared to SilverStripe though :D
445: [22:52:16] <Nightjar> be all crud igniter on it
446: [22:52:29] <kinglozzer> Nightjar: Haha, I was then gonna say "like codeigniter?" :P
447: [22:52:30] <Nightjar> heh, fair point really :(
448: [22:52:36] <Nightjar> (speed)
449: [22:52:49] <Nightjar> kinglozzer, yup. Manage your own database, fucker!
450: [22:52:50] <Nightjar> xD
451: [22:53:08] * markcl has joined #silverstripe
452: [22:53:18] <Nightjar> kinglozzer, better yet, just convince the boss to hire a DBA
453: [22:53:37] <Nightjar> tell him to dealwithit
454: [22:53:41] <markcl> Is there a way for me to render a template and output all the $Variables as themseves?
455: [22:53:52] <kinglozzer> Nightjar: Lol, I wish :(
456: [22:53:57] <Nightjar> me too!
457: [22:54:07] <Nightjar> I've got a table with 201 fields!
458: [22:54:14] <markcl> Context is, the user has to see how the template looks like before it gets rendered
459: [22:54:24] <kinglozzer> markcl: file_get_contents() ? :P
460: [22:54:39] <kinglozzer> I guess you need template inheritance logic etc though
461: [22:54:40] <Nightjar> coincidentally, it's the biggest table in more than one dimension, it's about 40,000 rows long!
462: [22:54:53] <kinglozzer> Nightjar: Ouch!
463: [22:55:13] <kinglozzer> 201 fields?! row length issues or not mysql?
464: [22:55:18] <markcl> kinglozzer: yeah, but template inheritance and different template paths will ruin it.
465: [22:55:18] <Nightjar> markcl, you want the raw template file?
466: [22:55:46] <markcl> Nightjar: not exactly the raw template file, but the raw template output without replacing of the $Variables
467: [22:55:48] <Nightjar> markcl, you're doing an X => Y problem.
468: [22:55:51] <markcl> So user can see those $Variables
469: [22:56:00] <Nightjar> markcl, ?show_templates
470: [22:56:05] <Nightjar> or whatever that flag is
471: [22:56:09] <Nightjar> maybe
472: [22:56:21] <markcl> Yeah, but the user shouldnt have to put special flags
473: [22:56:23] <markcl> on the url
474: [22:56:37] <Nightjar> you want a user to see your template, raw?
475: [22:56:46] <markcl> He should be able to select a template he/she wants to use
476: [22:56:50] <Nightjar> markcl, you're doing an X => Y problem.
477: [22:56:56] <Nightjar> choose a template.
478: [22:57:06] <Nightjar> is that the crux of the matter?
479: [22:57:59] <kinglozzer> markcl: If you're in a Controller, possibly try var_dump($this->getViewer()->exists());... SSViewer::exists() seems to return a list of templates... for some reason :S
480: [22:58:44] <Nightjar> kinglozzer, he wants to choose a template from a list, not rely on inbuilt inheritance, from what I understand
481: [22:59:38] <kinglozzer> oic
482: [22:59:58] <kinglozzer> Well, Controller::getViewer() may be your friend for replicating that inheritance if you do need it
483: [23:00:19] <Nightjar> true, could be.
484: [23:00:38] <Nightjar> anyway, it's like way past my bedtime
485: [23:01:03] <Nightjar> ciao
486: [23:01:08] * Nightjar quit (Quit: Leaving)
487: [23:02:10] <micmania1> markcl: what is it you’re trying to do?
488: [23:02:59] * antmas has joined #silverstripe
489: [23:03:25] <antmas> morning all!
490: [23:03:29] <adrexia> morning
491: [23:04:36] <spronk2> anyone else here use vaprobash and vagrant?
492: [23:10:13] <Colin[pi]> HAI ANTMAS
493: [23:12:12] <mudmonth> so i got that split panel editing working for data objects
494: [23:12:20] <mudmonth> after many hours of throwing desks into the sea
495: [23:12:45] <mudmonth> good exercise in learning the CMS better
496: [23:15:21] * kinglozzer sleeps
497: [23:15:25] <kinglozzer> gn all
498: [23:15:43] * kinglozzer quit ()
499: [23:16:28] * spronk2 quit (Quit: I may need a longer sleep timer...)
500: [23:24:54] <antmas> 7 full weeks until xmas
501: [23:24:55] <mahfuz> Could anyone have a look at the code please? - http://www.sspaste.com/paste/show/5456b834b600f
502: [23:24:56] <antmas> :|
503: [23:25:06] <Kingy> antmas: that means it's like 8 more weeks until I leave
504: [23:25:15] <Kingy> scary as!
505: [23:25:18] <antmas> Kingy: :O
506: [23:25:49] <Kingy> apparently now the school is going to pay for my flight :D
507: [23:25:54] <Kingy> and they can get me a 3 month visa
508: [23:25:55] <antmas> score
509: [23:25:58] <antmas> that's awesome
510: [23:26:08] <Kingy> yeah helps me out big time
511: [23:28:55] <simon_w|work> antmas, oh man, we need to get some flights for just before then
512: [23:29:00] <simon_w|work> Going to be massively expensive
513: [23:29:09] <Kingy> simon_w: yes
514: [23:29:13] <antmas> simon_w|work: whoozawhatnow?
515: [23:29:19] <simon_w|work> At least it's only domestic
516: [23:29:24] <simon_w|work> antmas, just before Christmas
517: [23:29:31] <simon_w|work> Like, 19th and 22nd
518: [23:29:35] <antmas> hmmm?
519: [23:29:38] <simon_w|work> Oh crap, and accommodation
520: [23:29:41] <antmas> did I miss the memo?
521: [23:30:06] <Kingy> jesus it's lunchtime
522: [23:30:08] <Colin[pi]> antmas: and did you do your TPS reports?
523: [23:30:36] * antmas doesn't know what's going on
524: [23:30:45] <antmas> Colin[pi]: TPS reports?
525: [23:30:50] <antmas> what are this
526: [23:30:56] <Colin[pi]> did you GET that memo?
527: [23:30:59] <Colin[pi]> yeaaahhhh
528: [23:31:15] <Colin[pi]> I'm gonna need you go ahead and come in on... Saturday
529: [23:31:20] <antmas> lol
530: [23:31:32] <Colin[pi]> thanks a bunch
531: [23:31:44] <mudmonth> also i think after all that i'm sold on silverstripes extension concept
532: [23:31:53] <antmas> so turns out I don't really need to do anything wiht this client's email server
533: [23:32:05] <mahfuz> Could anyone have a look at the code given in the link above and shed some light please?
534: [23:32:10] <antmas> they just couldn't get OOO to work on a non exchange account in outlook
535: [23:32:20] <Colin[pi]> mudmonth: SS's extensions are super useful and powerful, if a little confusing at times
536: [23:33:14] <mudmonth> is it worth me splitting out this preview-view-for-data-object stuff into a github module
537: [23:33:49] <simon_w|work> mudmonth, probably
538: [23:33:56] <mudmonth> now i can edit recipes, produces and store locations in a split view but manage them as data objects
539: [23:33:59] <mudmonth> which is what i was after
540: [23:34:26] <simon_w|work> mudmonth, I've got a site I could use it on and would help dad be less confused
541: [23:35:01] <adrexia> SS extensions are one of my favourite things
542: [23:35:21] <mudmonth> whoever wrote it for the sitetree (hamish?) was right it's not ready for prime time yet
543: [23:35:23] <simon_w|work> Have you seen how Hamish pretty much wants to kill them?
544: [23:35:24] <mudmonth> but it works
545: [23:35:36] <Colin[pi]> simon_w|work: wat
546: [23:35:43] <simon_w|work> Wants to turn them into traits
547: [23:36:14] <adrexia> turn extensions into traits?
548: [23:36:14] <mudmonth> i think it's useful to monkey patch the core but long term there is a good argument against monkey patching (i mean right now it generates side effects in basically an observer pattern model) and creating a good API contract with the core
549: [23:36:28] <simon_w|work> adrexia, yeah
550: [23:36:44] <mudmonth> what the fuck is a trait
551: [23:36:49] <simon_w|work> php.net/trait
552: [23:36:57] <adrexia> if they also help keep things modular and let me adjust modules without copy pasting, taht's ok
553: [23:37:01] <adrexia> if they don't then meh
554: [23:37:06] <Colin[pi]> simon_w|work: I haven't used traits before, so.. is that a good plan or not?
555: [23:37:09] <simon_w|work> adrexia, you can't add traits to existing classes
556: [23:37:38] <adrexia> isn't that going to result in bloat then ?
557: [23:37:50] <simon_w|work> I think his idea is code generation
558: [23:37:57] <adrexia> oh
559: [23:37:59] <Colin[pi]> code generation???
560: [23:38:04] <Colin[pi]> oh please no
561: [23:38:15] <antmas> code generation should go in the swear list
562: [23:38:27] <Colin[pi]> there is always a better way than code gen, surely
563: [23:38:31] <antmas> along with Hamish
564: [23:38:34] * simon_w|work really needs to move the swear list to something he can edit from work
565: [23:38:36] <Colin[pi]> antmas: haha
566: [23:38:58] <antmas> anyways, gotta go wash the salt off my car
567: [23:39:00] <antmas> stupid wind
568: [23:39:05] * antmas shakes fist o/
569: [23:39:23] <Colin[pi]> antmas: put some pepper on it, cancels it out
570: [23:39:29] <simon_w|work> http://silverstripe.uservoice.com/forums/251266-new-features/suggestions/6425853-replace-extensions-with-traits
571: [23:39:46] <adrexia> can we downvote?
572: [23:39:53] <simon_w|work> No :(
573: [23:39:58] <Colin[pi]> weak
574: [23:40:00] <simon_w|work> But you can add to all the people calling it stupid
575: [23:40:28] <adrexia> hmm
576: [23:40:49] <adrexia> I'd need to see a proof of concept before I wrote it off
577: [23:41:00] <adrexia> I like events based systems
578: [23:41:18] <adrexia> and I can see how you could use them to accomplish many of the same things
579: [23:42:26] <Colin[pi]> the performance boost from traits would be nice
580: [23:42:33] <Colin[pi]> (in theory)
581: [23:42:50] <simon_w|work> Eh, the extension system isn't that slow (at least not compared to the rest of SS)
582: [23:42:50] <adrexia> traits mean nothing to me, but events++
583: [23:43:05] <Colin[pi]> simon_w|work: mm
584: [23:43:08] <simon_w|work> Events system, that isn't written by Hamish!
585: [23:43:49] * helenclarko has joined #silverstripe
586: [23:43:56] <helenclarko> hey all
587: [23:44:19] <adrexia> simon_w|work, lols.
588: [23:44:31] <adrexia> hi helenclarko
589: [23:45:09] <mahfuz> Could anyone have a look at the code please? - http://www.sspaste.com/paste/show/5456b834b600f
590: [23:45:55] <helenclarko> Can I get some help with Dropdownfield arrays? I cant seem to make it show a dropdown over a standard text field unless I use Enum.
591: [23:45:58] <helenclarko> http://www.sspaste.com/paste/show/5456bd36b4854
592: [23:46:16] <simon_w|work> mahfuz, don't use $_SESSION
593: [23:46:38] <simon_w|work> helenclarko, you're on 2.4?
594: [23:46:49] <simon_w|work> Nope, you're using FieldList
595: [23:46:53] <mahfuz> Otherwise its not removed from the Session array
596: [23:46:54] <helenclarko> Nah, upgrading to 3.1
597: [23:47:03] <simon_w|work> helenclarko, you want getCMSFields
598: [23:47:16] <helenclarko> no popup.
599: [23:47:22] <mahfuz> What will be the proper way to remove item from Session Array then?
600: [23:47:55] <helenclarko> I was looking at that, Thanks Simonw I'll let you know how it goes.
601: [23:56:16] * hailwood quit (Quit: Leaving.)
602: [23:59:48] <mahfuz> How to check whether the visitor is logged in using Code? I know how to do it in template.

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