#silverstripe IRC Log

IRC log for 18 January 2015

All timestamps are in UTC.

1: [00:12:23] * joelpittet quit (Remote host closed the connection)
2: [00:15:13] * joelpittet has joined #silverstripe
3: [00:28:27] * Stomach quit (Quit: zzz)
4: [01:22:39] * benjhocking1 quit (Ping timeout: 252 seconds)
5: [01:29:19] * muskie9 has joined #silverstripe
6: [01:29:47] * benjhocking has joined #silverstripe
7: [01:49:32] * gelignite quit (Quit: http://bit.ly/nkczDT)
8: [01:55:36] * oceanmountain quit (Read error: Connection reset by peer)
9: [01:56:25] * masnun quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
10: [02:04:27] * nontgor quit (Ping timeout: 245 seconds)
11: [02:16:59] * joelpittet quit (Remote host closed the connection)
12: [02:26:14] * nontgor has joined #silverstripe
13: [02:48:42] * joelpittet has joined #silverstripe
14: [03:28:00] * muskie9_ has joined #silverstripe
15: [03:28:44] * muskie9 quit (Ping timeout: 265 seconds)
16: [03:30:21] * muskie9 has joined #silverstripe
17: [03:32:19] * muskie9_ quit (Ping timeout: 245 seconds)
18: [03:47:45] * aragonne has joined #silverstripe
19: [03:55:11] * spronk2 has joined #silverstripe
20: [03:58:25] * hailwood has joined #silverstripe
21: [03:59:21] <hailwood> Hi guys, what's the recommended package for building an api around a ss backend?
22: [04:08:55] * aragonne quit (Quit: aragonne)
23: [04:09:59] <muskie9> hailwood I've used these once or twice in 2.4: https://github.com/silverstripe/silverstripe-restfulserver https://github.com/colymba/silverstripe-restfulapi
24: [04:13:24] <hailwood> muskie9, I'm taking a look at the colymba one right now. Ideally what I want to do is specify two keys on each user - a "read/write" key and a "read only" key. these keys should never expire unless manually changed.
25: [04:15:24] * spronk2 quit (Quit: spronk2)
26: [04:21:25] * muskie9_ has joined #silverstripe
27: [04:25:27] * muskie9 quit (Ping timeout: 272 seconds)
28: [04:37:19] * veb quit (Quit: veb-irc: &)
29: [04:37:52] * veb has joined #silverstripe
30: [04:53:30] * cloph has joined #silverstripe
31: [04:53:57] * cloph_away quit (Ping timeout: 272 seconds)
32: [04:54:23] * muskie9 has joined #silverstripe
33: [04:57:39] * muskie9_ quit (Ping timeout: 264 seconds)
34: [05:37:40] * aragonne has joined #silverstripe
35: [05:38:17] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
36: [05:48:55] * r_hector has joined #silverstripe
37: [05:49:14] * aragonne quit (Quit: aragonne)
38: [06:16:47] * spronk2 has joined #silverstripe
39: [06:51:18] * wmk has joined #silverstripe
40: [06:56:36] * Stomach has joined #silverstripe
41: [07:21:22] * spronk2 quit (Quit: spronk2)
42: [07:40:39] * wmk quit (Ping timeout: 245 seconds)
43: [08:01:12] * Stomach quit (Quit: zzz)
44: [08:08:27] * joelpittet quit (Remote host closed the connection)
45: [08:28:54] * aragonne has joined #silverstripe
46: [08:29:33] <hailwood> Anyone know anthing about silverstripes dependancy injector? What's up with this notion? %$RESTfulAPI_EmberDataDeSerializer
47: [08:44:56] * spronk2 has joined #silverstripe
48: [09:05:03] <hailwood> Hi guys, how does the colymba/silverstripe-restfulapi api acl work?
49: [09:13:57] * benjhocking quit (Quit: Leaving.)
50: [09:14:38] * benjhocking has joined #silverstripe
51: [09:15:00] * wmk has joined #silverstripe
52: [09:22:00] <hailwood> Hey guys, does silverstripe strip the "Authentication" header?
53: [09:38:18] <hailwood> Hmm, I can't work out why this is returning an empty array, any ideas? https://github.com/colymba/silverstripe-restfulapi/blob/master/code/RESTfulAPI.php#L598
54: [09:39:58] <wmk> hailwood, using xdebug and stepping through might help you understanding what's going on
55: [09:42:45] <hailwood> mmm, let's try that then
56: [09:47:41] <hailwood> wmk, Looks like i'm breaking it when I call Injector::inst()->get('RESTfulAPI') from somewhere else, What's the correct way to get an instance of that class? as I need one of it's properties
57: [10:02:26] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
58: [10:04:13] <wmk> phew, don't know Injector yet
59: [10:09:18] <hailwood> wmk, I worked that part out, next question is - I have applied this extension https://github.com/colymba/silverstripe-restfulapi/blob/master/code/permissionManager/RESTfulAPI_GroupExtension.php to the Group, How do I setup the DataObjects to take advantage of it without breaking the default permissions?
60: [10:20:54] * babak_ has joined #silverstripe
61: [10:21:18] <hailwood> Does this look right? https://gist.github.com/hailwood/37c0e24bb4a6bc8bfa33
62: [10:32:59] * spronk2 quit (Quit: spronk2)
63: [10:47:02] * Error404NotFound has joined #silverstripe
64: [10:51:03] * aragonne quit (Quit: aragonne)
65: [10:51:09] <wmk> hailwood, looks good
66: [10:58:26] <hailwood> wmk, Sweet, another question heh. I'm creating some cyclic dependencies with the following yaml https://gist.github.com/hailwood/aae1ed291ca1f7bd2795 Any idea of the easiest way to make the colymba/silverstripe-restfulapi package only "embed" the other records if it's a direct request to that model?
67: [11:15:37] * masnun has joined #silverstripe
68: [11:24:49] * kerosene quit (Ping timeout: 265 seconds)
69: [11:27:15] * kerosene has joined #silverstripe
70: [11:35:14] * wmk quit (Read error: Connection reset by peer)
71: [11:35:15] * Werner_2_ has joined #silverstripe
72: [11:39:30] * Err404NotFound has joined #silverstripe
73: [11:39:49] * Error404NotFound quit (Disconnected by services)
74: [12:05:14] * nontgor quit (Remote host closed the connection)
75: [12:14:23] <hailwood> Hey guys, If I am sending though http://url?Business.Name=123 how can I get array("Business.Name" => 123) instead of array("Business_Name" => 123)?
76: [12:35:22] <hailwood> Right, so it's a php thing, not silverstripe, ok, any idea how to change that?
77: [12:37:05] * Werner_2_ is now known as wmk
78: [12:47:53] * aragonne has joined #silverstripe
79: [12:56:29] * wmk quit (Ping timeout: 256 seconds)
80: [12:58:00] * aragonne quit (Quit: aragonne)
81: [13:33:14] * veb quit (Quit: veb-irc: &)
82: [13:33:27] * wmk has joined #silverstripe
83: [13:54:46] * masnun is now known as masnun|away
84: [14:06:01] * gelignite has joined #silverstripe
85: [14:30:17] * wmk quit (Ping timeout: 272 seconds)
86: [15:41:00] * joelpittet has joined #silverstripe
87: [16:01:40] * r_hector quit (Quit: Leaving.)
88: [16:24:27] * aragonne has joined #silverstripe
89: [16:35:30] * DimiStripe has joined #silverstripe
90: [16:40:38] * joelpittet quit (Remote host closed the connection)
91: [16:53:24] * Error404NotFound has joined #silverstripe
92: [16:56:03] * Err404NotFound quit (Ping timeout: 244 seconds)
93: [17:05:03] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
94: [17:07:03] * aragonne quit (Quit: aragonne)
95: [17:12:54] * joelpittet has joined #silverstripe
96: [17:13:36] * glenn-bautista has joined #silverstripe
97: [17:18:18] * masnun|away is now known as masnun
98: [17:36:13] * Error404NotFound has joined #silverstripe
99: [17:41:40] * Azure quit (Ping timeout: 255 seconds)
100: [17:54:22] * joelpittet quit (Remote host closed the connection)
101: [17:58:54] * joelpittet has joined #silverstripe
102: [18:04:58] * babak_ quit (Ping timeout: 245 seconds)
103: [18:08:34] * babak_ has joined #silverstripe
104: [18:18:21] * NobrainerWeb has joined #silverstripe
105: [18:21:10] <NobrainerWeb> Hi guys - how do you create a notice inside the CMS? Like the one showing when re-arranging the sitetree?
106: [18:23:45] <NobrainerWeb> Ok i think i found an example from the file sync: $this->response->addHeader('X-Status', rawurlencode($message));
107: [18:58:36] * Stomach has joined #silverstripe
108: [19:00:26] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
109: [19:16:48] * mobiusnz has joined #silverstripe
110: [19:22:46] * NobrainerWeb quit (Quit: NobrainerWeb)
111: [19:27:23] * masnun is now known as masnun|away
112: [19:32:27] * aragonne has joined #silverstripe
113: [19:35:09] * masnun|away is now known as masnun
114: [19:36:16] * Ryan-Toast has joined #silverstripe
115: [19:44:59] <Stomach> good morning team
116: [19:49:44] <ss23> morning
117: [19:49:45] <ss23> oh wait
118: [19:49:48] <ss23> long weekend here in wellington
119: [19:49:52] <ss23> LOL SUX 2 BE Stomach
120: [19:49:58] <Stomach> :(
121: [19:52:57] * aragonne quit (Quit: aragonne)
122: [19:57:26] <hailwood> Hey guys, what's the easiest way to say "Give me a DataList of Business(DataObject) where Business.CategoryID = 123 and the Business.Services Many_Many relationship contains Service 32?
123: [20:00:47] <Ryan-Toast> Sucks to be you on IRC on a public holiday :P
124: [20:00:54] <Ryan-Toast> Ours is next weekend :D
125: [20:09:24] * Azure has joined #silverstripe
126: [20:14:28] * glenn-bautista quit (Quit: Leaving.)
127: [20:17:29] <Stomach> hailwood - do a filter
128: [20:18:08] <Stomach> Business::get()->filter(array('CategoryID' => 123, 'Services.ID' => '32'))
129: [20:18:11] <Stomach> or something
130: [20:21:02] * guci0 has joined #silverstripe
131: [20:21:04] <guci0> Hello World!
132: [20:21:36] <Stomach> hey guci0
133: [20:21:48] <guci0> Hi Stomach ;-)
134: [20:29:39] <hailwood> Thanks stomach, that works well. Everywhere I was reading was saying that relationship filters weren't in place yet
135: [20:32:18] * spronk2 has joined #silverstripe
136: [20:35:10] <Stomach> hailwood - cool :)
137: [20:39:29] * elgabbu quit (Ping timeout: 246 seconds)
138: [20:46:11] * veb has joined #silverstripe
139: [20:56:12] * mento has joined #silverstripe
140: [20:56:35] <mento> hey guys, how do i clear the sessionsMessage of a form?
141: [20:56:51] <mento> when a user submits the form, i set a sessionMessage with a thank you text
142: [20:57:03] <mento> when he reloads the page, i want to sessionMessage to dissapear
143: [20:57:09] * DimiStripe quit (Quit: DimiStripe)
144: [21:11:50] * mahfuz has joined #silverstripe
145: [21:18:54] * Colin[pi] has joined #silverstripe
146: [21:27:30] <Colin[pi]> holiday today isn't it
147: [21:29:49] * Sander has joined #silverstripe
148: [21:30:12] <Ryan-Toast> In welly, yeah.
149: [21:30:21] <Ryan-Toast> We get ours next week.
150: [21:31:47] <Colin[pi]> I knew as soon as I saw how quiet it was in here!
151: [21:34:04] * Sander quit (Ping timeout: 246 seconds)
152: [21:34:39] * joelpittet quit (Remote host closed the connection)
153: [21:34:40] <Colin[pi]> Ryan-Toast: were you the other GITS fan in here?
154: [21:35:16] <Ryan-Toast> Colin[pi]: GITS?
155: [21:35:20] <Colin[pi]> ghost in the shell
156: [21:35:26] <Ryan-Toast> Yeah, boi.
157: [21:35:32] <Colin[pi]> http://twitchfilm.com/2015/01/rest-in-peace-origa.html :(
158: [21:35:36] <Colin[pi]> shitty news
159: [21:35:54] <Ryan-Toast> Colin[pi]: Aww, sucks :(
160: [21:36:01] <Colin[pi]> she did some of the most memorable songs from any anime I've seen
161: [21:36:08] <Colin[pi]> her and yoko kanno man
162: [21:36:17] <Colin[pi]> irreplacable combo :(
163: [21:36:40] <Colin[pi]> fuck cancer... 44, damn
164: [21:41:23] <Ryan-Toast> So young.
165: [21:41:27] <Ryan-Toast> Sucks.
166: [21:42:50] <Colin[pi]> what sort of dev workflow do you use Ryan-Toast? I'm trying to revise my process
167: [21:43:19] <Ryan-Toast> Colin[pi]: local > dev server > git > live
168: [21:43:33] <Ryan-Toast> Well most of the time :P
169: [21:43:42] <Ryan-Toast> Depends if it’s Friday afternoon or not.
170: [21:44:13] <mento> how do i clear the sessionsMessage of a form? when a user submits the form, i set a sessionMessage with a thank you text. When he reloads the page, i want to sessionMessage to dissapear
171: [21:44:25] <Colin[pi]> Ryan-Toast: using composer for everything too?
172: [21:44:26] <mento> Session::clear('MyValue');
173: [21:44:32] <Ryan-Toast> Colin[pi]: yeah.
174: [21:44:55] <Ryan-Toast> I’m in the misdst of improving my bp to decouple a little more, so I can update live servers with composer.
175: [21:45:08] <Colin[pi]> Ryan-Toast: so say you're testing just locally, what's the procedure you follow? this is where I scratch my head on the best process
176: [21:45:36] <Ryan-Toast> Colin[pi]: test local, when you’re done push to git. Then pull the changes on the live server.
177: [21:45:54] <Ryan-Toast> Or create a task that automatically does it.
178: [21:45:57] <Colin[pi]> hmm
179: [21:46:04] <Ryan-Toast> I like to do it manually, just in case I push the wrong shit.
180: [21:46:09] <Colin[pi]> aye
181: [21:46:17] * spronk2 quit (Quit: spronk2)
182: [21:46:45] <Colin[pi]> do you keep your main repo for bp sitting inside localhost? or in a sep folder
183: [21:46:46] <Colin[pi]> ?
184: [21:47:01] * jedateach has joined #silverstripe
185: [21:48:10] <Stomach> Ryan-Toast - dont update composer on live servers O_O
186: [21:48:14] <Stomach> recipe for disaster
187: [21:48:20] <Ryan-Toast> Stomach: | don't
188: [21:48:24] <Ryan-Toast> I just mean for installs :P
189: [21:48:45] <Stomach> okay thats good :P
190: [21:49:00] <Colin[pi]> Stomach: is there a good guide you know of for setting up all of this dev / prod environment stuff in an SS friendly fashion?
191: [21:49:12] <Colin[pi]> I'm still doing a lot of stuff in a shitty way and need to improve
192: [21:49:20] <Stomach> use beam! :P
193: [21:49:27] <Stomach> I don't know if there is a really good example anywhere
194: [21:49:34] <Colin[pi]> this is my problem
195: [21:49:44] <Colin[pi]> there are LOADS of docs on git / composer / ss bla bla
196: [21:49:56] <Colin[pi]> but absolutely shit all on how to bring it all together
197: [21:50:10] <Colin[pi]> i.e. dev / staging / prod workflow stuff
198: [21:50:13] * Olliepop has joined #silverstripe
199: [21:50:38] <Colin[pi]> mm beam I started looking at that a while back :P
200: [21:50:51] * spronk2 has joined #silverstripe
201: [21:51:26] <Stomach> Colin[pi] - well we basically install everything in composer and have our stuff all stored in a git repository
202: [21:51:53] <Colin[pi]> Stomach: so you have everything on packagist, use private repos as well?
203: [21:52:46] <Stomach> yeah we use private repos and our out packagist server
204: [21:52:49] <Stomach> (satis)
205: [21:53:19] <Colin[pi]> Stomach: k, makes sense
206: [21:53:33] <Stomach> so our git repo ends up having mysite, theme and .htaccess, .gitignore, beam.json, composer.json and composer.lock
207: [21:53:36] <Stomach> and thats it
208: [21:53:44] <Stomach> then we use beam to do a composer install pre-deployment
209: [21:55:57] * spronk2 quit (Quit: spronk2)
210: [21:56:46] <Colin[pi]> Stomach: so what are the pros/cons of beam compared to say capistrano or phing?
211: [21:56:58] <Stomach> no ruby
212: [21:57:01] <Colin[pi]> haha
213: [21:57:01] <Stomach> no phing
214: [21:57:02] <Stomach> :P
215: [21:57:02] <Colin[pi]> k
216: [21:57:04] <Colin[pi]> LOL
217: [21:57:08] <Colin[pi]> fair nuff
218: [21:57:10] <Stomach> I've used both before
219: [21:57:16] * masnun quit (Quit: Signing out.)
220: [21:57:29] <Stomach> all beam does is rsyncs files and allows you to run commands locally and remotely pre and post deploy
221: [21:57:31] <Stomach> its simple
222: [21:57:40] <Colin[pi]> nice, I like simple
223: [22:07:49] <Ryan-Toast> Stomach: do you have your blank/new website repo we could take a look at?
224: [22:08:19] <Stomach> not really, it has a bunch of custom code in it
225: [22:08:26] <Ryan-Toast> Sadface
226: [22:08:29] <Stomach> this is close though
227: [22:08:29] <Stomach> https://github.com/stevie-mayhew/jeremyeatsyourfriends
228: [22:08:42] <Ryan-Toast> chur
229: [22:13:16] * spronk2 has joined #silverstripe
230: [22:15:33] <Colin[pi]> god dammit I just did that thing where you take a screenshot and then a few mins later you try to click the screenshot
231: [22:15:38] <Colin[pi]> WHY IT NOT WORKING HERP DERP
232: [22:21:48] * mento quit (Quit: Page closed)
233: [22:22:50] * joelpittet has joined #silverstripe
234: [22:34:53] * babak_ quit (Quit: Connection closed for inactivity)
235: [22:36:38] * mento has joined #silverstripe
236: [22:44:42] * riddler7 has joined #silverstripe
237: [22:45:16] * spronk2 quit (Quit: spronk2)
238: [22:46:28] * Azure quit (Remote host closed the connection)
239: [22:47:45] * spronk2 has joined #silverstripe
240: [22:50:16] <mento> argh, i cant get my form sessionMessage to work properly
241: [22:50:35] <mento> i'm using $form->sessionMessage($this->ThankYouMessage, 'good'); in my submit function
242: [22:50:54] <mento> but i need to clear the message right after, otherwise it keep showing after you refresh the page
243: [22:51:09] * Azure has joined #silverstripe
244: [22:51:10] <mento> cant seem to figure out how to get it to work
245: [22:51:32] <Colin[pi]> mento: that's what I do but they usually only show the once
246: [22:51:45] * Azure quit (Client Quit)
247: [22:56:19] <mento> Colin[pi]: thats why i expected as well, in the past (ss 2.x it worked this way)
248: [22:56:41] <mento> here is my form submit function http://www.sspaste.com/paste/show/54bc39d4a9717
249: [22:57:20] * gelignite quit (Quit: http://bit.ly/nkczDT)
250: [22:58:57] <veb> pippy: lol we were so advanced in our time
251: [23:04:12] * Azure has joined #silverstripe
252: [23:13:19] <mento> i just dont get it
253: [23:15:29] * spronk2 quit (Quit: spronk2)
254: [23:21:26] <mento> $form->clearMessage(); isnt clearing it neither
255: [23:40:44] <Colin[pi]> mento: have you done a print_r() of $_SESSION to have a look if anything is weird?
256: [23:42:10] * vebb has joined #silverstripe
257: [23:44:27] * veb quit (Ping timeout: 264 seconds)
258: [23:45:32] <mento> uhm no, not yet. should i place it in my submit function Colin[pi] ?
259: [23:46:09] <Colin[pi]> mento: still it somewhere there and see what's going on in the session
260: [23:46:18] <Colin[pi]> that's usually what I look at first
261: [23:49:53] <hailwood> Hey guys, so I am using the colymba/silverstripe-restfulapi package for an API, as part of the API requests I end up sending back something that looks like Categories => array(1,16,8, "Some Title", "Another Title", 32, 4) where the integers are existing ID's, but the string values are new categories that should be created (this is sourced from a select2 tagging widget). Anyway, I'm wondering what the best way to facilitate this is while being safe
262: [23:53:43] * Stomach quit (Quit: zzz)
263: [23:54:26] * mirrors has joined #silverstripe
264: [23:55:49] <mirrors> hey there everyone....The subsites module adds its extensions through the _config.php file...I want to add an extension after these extensions are applied.....is this possible?

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