#silverstripe IRC Log

IRC log for 10 June 2014

All timestamps are in UTC.

1: [00:00:54] <oddnoc> I’d have to peruse the code to be certain, but I think that when the statics became private, they also got recorded in the manifest
2: [00:01:14] <Stomach> ah yup - yeah thats right
3: [00:02:10] <irogue_> Stomach: how far up?
4: [00:02:12] * muskie9 quit (Ping timeout: 260 seconds)
5: [00:02:14] <irogue_> i could do a sammich
6: [00:02:22] <Stomach> halfway
7: [00:02:27] <Stomach> or rather, near the end
8: [00:02:28] <Stomach> I guess
9: [00:02:28] <oddnoc> It’s beer:30 in California
10: [00:02:29] <Stomach> dunno
11: [00:03:05] <Stomach> https://www.google.co.nz/maps/@-36.848716,174.766285,3a,75y,88.16h,70.62t/data=!3m4!1e1!3m2!1s8uJ5qdmtgBJBu-C-xcRJ-Q!2e0
12: [00:03:20] * DesignerX quit (Ping timeout: 260 seconds)
13: [00:03:43] <antmas> Stomach: I have this - pretty simple
14: [00:03:44] <antmas> http://www.sspaste.com/paste/show/539647b644690
15: [00:03:47] <antmas> Stomach: ^
16: [00:03:53] * DesignerX has joined #silverstripe
17: [00:04:06] <antmas> I need to get this into my template
18: [00:04:08] <Stomach> json_decode will turn it into an array
19: [00:04:13] <Stomach> or an object
20: [00:04:25] * cecropia has left #silverstripe
21: [00:04:26] <antmas> Stomach: so what I've done is OK?
22: [00:04:37] <Stomach> nope, you cant render an array or object into a template
23: [00:04:56] <Stomach> you need to get the property off the json which you are interested in as a string then return that (if its just a string you're after)
24: [00:05:14] <Stomach> or transform the array return into an arraylist/arraydata so its loopable on the front end
25: [00:05:37] * ezero quit (Ping timeout: 245 seconds)
26: [00:05:44] <antmas> Stomach: how can I return it as an arraylist, once I can see that, I should be OK
27: [00:05:55] * nickmolhoek has joined #silverstripe
28: [00:06:06] <Stomach> return new ArrayList(json_decode($json)); ?
29: [00:06:26] <antmas> Stomach: done, but in the template side?
30: [00:06:35] <Stomach> what is json_decode($json) equivalent to?
31: [00:06:40] <Stomach> one sec I'll write a sample
32: [00:07:32] <antmas> Stomach: awesome
33: [00:07:55] * spronk has joined #silverstripe
34: [00:08:40] * babak quit (Quit: Connection closed for inactivity)
35: [00:10:39] <irogue_> spronk!
36: [00:11:09] * DesignerX quit (Read error: No route to host)
37: [00:11:59] * DesignerX has joined #silverstripe
38: [00:12:54] <UncleCheese> twitter no longer has a public api?
39: [00:13:44] <Stomach> http://pastie.org/9275322
40: [00:13:58] <Stomach> antmas ^
41: [00:14:01] <Stomach> UncleCheese, really?
42: [00:14:08] <UncleCheese> yeah, it's all authenticated now
43: [00:14:14] <antmas> Stomach: checking
44: [00:14:17] <UncleCheese> even just reading a user's timeline
45: [00:14:40] <UncleCheese> https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=silverstripe
46: [00:15:01] <Stomach> woot, that breaks a lot of my sites
47: [00:15:02] <Stomach> :(
48: [00:15:45] * jenniferaslan quit (Quit: jenniferaslan has left the room)
49: [00:15:46] <irogue_> yeah, i had to change to using the official widget
50: [00:15:53] <antmas> Stomach: aw nuts, I get how that works but it's going to be a drag getting all the json values :P
51: [00:15:56] <irogue_> cos too much effort to do the authenticatin
52: [00:16:14] <UncleCheese> yeah, wtf
53: [00:16:15] <Stomach> antmas, you can use 'value' instead of $key in the array
54: [00:16:21] <UncleCheese> what the hell is "OAuth"
55: [00:16:32] <Stomach> then just output $value instead of $something
56: [00:16:37] <irogue_> and then they changed it so you can't set the width of the widget
57: [00:16:46] <irogue_> hence the retarded looking twitter on http://www.snappernet.co.nz/
58: [00:17:28] <irogue_> UncleCheese: the standard mechanism for authenticating apps/sites to auth against each other without ever passing user/pass
59: [00:17:35] * BPower quit (Remote host closed the connection)
60: [00:18:06] <irogue_> so you can login to a randomsite.blah using facebook/google/twitter/steam/whatever without randomsite.blah potentially being able to store your shit
61: [00:18:23] <antmas> Stomach: which would do what exactly?
62: [00:18:50] <Stomach> antmas, it means you could not care about what the name of the property is in your template
63: [00:18:55] <Stomach> but thats probably a bad idea :P
64: [00:18:59] <antmas> Stomach: oh right
65: [00:19:01] <antmas> yeah
66: [00:19:02] <antmas> :P
67: [00:19:30] * simon_w|air quit (Quit: This computer has gone to sleep)
68: [00:19:32] <Stomach> but yeah, consuming an API generally you wanna just strip out what you want and return only that
69: [00:20:10] <Stomach> so instead you could just do return new ArrayData(array('ValueIWant' => $jsonResult['ValueIWant'])) or whatever
70: [00:20:26] <antmas> right
71: [00:20:45] <antmas> as the values are constantly changing each time the request is made
72: [00:20:59] <Stomach> yeah, but the keys shouldnt
73: [00:21:05] <Stomach> unless its one of those "API"'s
74: [00:21:29] <UncleCheese> hmm
75: [00:21:33] <UncleCheese> well this leaves me a bit shifucked
76: [00:21:35] <simon_w> Like TradeMe's
77: [00:21:42] <antmas> Stomach: no the key shouldn't change
78: [00:21:46] <antmas> but the values will
79: [00:22:07] <Stomach> yeah, so that should be fine then :)
80: [00:22:26] <Stomach> UncleCheese, why? just create a user and auth with it :P security what?
81: [00:22:27] <antmas> Stomach: just so I'm on the right track, can I pm you the json I've recieving?
82: [00:22:32] <Stomach> sure
83: [00:22:40] <UncleCheese> no, you need to set up a twitter app
84: [00:22:53] <UncleCheese> with OAuth callbacks and shiz
85: [00:24:43] <spronk> hrmm?
86: [00:26:40] <irogue_> spronk: is this you? https://twitter.com/thomaspaulson28/status/475896669746126848
87: [00:27:19] <Stomach> bahahahaha
88: [00:27:20] <spronk> LOL
89: [00:27:21] <spronk> no
90: [00:28:54] * DesignerX quit (Read error: No route to host)
91: [00:29:29] * DesignerX has joined #silverstripe
92: [00:30:34] <zippy__> Codeception, Behat, phpunit, phpspec - much testing, different parts, so much time!
93: [00:32:07] <Stomach> no jasmine zippy__?
94: [00:32:56] <zippy__> :O
95: [00:33:04] <zippy__> 20 lines of tests per 1 line of code
96: [00:33:05] <antmas> mmm jasmine
97: [00:33:25] <Stomach> more lines = better coverage
98: [00:33:27] <Stomach> right, right?!?
99: [00:33:33] <spronk> :|
100: [00:34:36] * DesignerX quit (Ping timeout: 260 seconds)
101: [00:38:27] <irogue_> subway tiem
102: [00:44:10] * Tanger quit (Quit: Tanger)
103: [00:58:18] * muskie9 has joined #silverstripe
104: [01:02:35] * muskie9 quit (Ping timeout: 252 seconds)
105: [01:02:44] * oddnoc quit (Quit: It must be Beer:30!)
106: [01:06:41] * muskie9 has joined #silverstripe
107: [01:11:28] * muskie9 quit (Ping timeout: 276 seconds)
108: [01:11:47] <antmas> hmmm I get the json_decode is expecting a string error for this http://www.sspaste.com/paste/show/53965795d4b0f anyone see why?
109: [01:12:18] <Zauberfisch> because $service->request(); does not return a string
110: [01:12:22] <Zauberfisch> but json_decode wants a string
111: [01:12:34] <Zauberfisch> antmas: request() returns a Response Object
112: [01:12:46] <Zauberfisch> $response = $service->request();
113: [01:12:55] <Zauberfisch> $statusCode = $response->getStatusCode();
114: [01:12:57] <antmas> Zauberfisch: ok, so that object is json, how can I decode it?
115: [01:13:03] <Zauberfisch> $json = $response->getBody();
116: [01:14:01] <antmas> Zauberfisch: in place of what? ^^
117: [01:14:29] <Zauberfisch> antmas: I am not sure you do anderstand
118: [01:14:42] <Zauberfisch> antmas: there is no such thing as a json object
119: [01:14:59] <Zauberfisch> or at least not in this context
120: [01:15:07] <antmas> I understand that
121: [01:15:24] <Zauberfisch> the json is just a string, which you will later parse to a php object
122: [01:15:36] <Zauberfisch> but first you need to get that string
123: [01:15:41] <antmas> yes
124: [01:15:44] <Zauberfisch> you do a rquest with $service->request();
125: [01:16:13] <antmas> yeah and the value of that is json
126: [01:16:20] <antmas> in json format*
127: [01:16:31] <Zauberfisch> but $service->request(); does not return the json string. it returns an object of type RestfulService_Response
128: [01:16:49] <antmas> so how do I return the json string?
129: [01:16:49] <Zauberfisch> so you thought you get a json string. instead you got an RestfulService_Response object
130: [01:16:58] <antmas> correct yeah
131: [01:17:18] <Zauberfisch> http://api.silverstripe.org/3.1/class-RestfulService_Response.html
132: [01:17:41] <Zauberfisch> $response = $service->request();
133: [01:17:50] <Zauberfisch> $jsonString = $response->getBody();
134: [01:18:03] <antmas> ah ok
135: [01:18:26] <antmas> Zauberfisch: I see it now, all I need is to get this json into a template
136: [01:18:41] <Zauberfisch> now you should have everything you need to do that
137: [01:19:26] <antmas> what do I return?
138: [01:19:36] <antmas> $response, or $jsonString?
139: [01:19:48] <Zauberfisch> I have no idea what you are talking about
140: [01:19:58] <antmas> -_-
141: [01:20:12] <Zauberfisch> don't you already have the code?
142: [01:20:13] <Zauberfisch> http://www.sspaste.com/paste/show/53965795d4b0f
143: [01:20:31] <antmas> yes
144: [01:20:37] * zippy__ quit (Ping timeout: 245 seconds)
145: [01:20:43] <Zauberfisch> looks to me like it already does what you want, after you modify it to use ->getBody()
146: [01:20:48] * zippy__ has joined #silverstripe
147: [01:20:52] <antmas> I was just wondering if returning $result is still valid, given the context
148: [01:21:00] <antmas> Zauberfisch: ah, that answers it :)
149: [01:21:11] <Zauberfisch> $jsonOutput = $service->request();
150: [01:21:17] <Zauberfisch> this is wrong, because its an object
151: [01:21:22] <antmas> Zauberfisch: got it, thanks dude
152: [01:21:32] <Zauberfisch> so just replace that line with $jsonOutput = $service->request()->getBody();
153: [01:23:42] <antmas> I now get a invalid argument supplied for that foreach()
154: [01:24:43] <Kingy> hey how can I use two different templates for the same page type
155: [01:25:08] <Zauberfisch> Kingy: renderWith()
156: [01:25:13] <Zauberfisch> eg
157: [01:25:17] <antmas> Kingy: this ^^
158: [01:25:40] <Zauberfisch> public function index() { return $this->renderWith(array('FirstTemplate', 'FallBackTemplateName', 'Page')); }
159: [01:26:03] <Zauberfisch> in any controller will result in this controller being rendered with FirstTemplate
160: [01:26:11] <Zauberfisch> or FallbackTemplateName if Firsttemplate is not found
161: [01:26:21] <Zauberfisch> or Page if the both are not found
162: [01:26:24] <Zauberfisch> you get the idea
163: [01:26:48] <Kingy> for sure
164: [01:27:07] <Kingy> so basically depending on say the url I can then render with whichever template?
165: [01:27:38] <Kingy> I may even be going about this the wrong way actually
166: [01:28:45] * Tanger has joined #silverstripe
167: [01:28:48] <Zauberfisch> yes to both
168: [01:28:56] <Zauberfisch> yes you can render conditionally
169: [01:29:18] <spronk> bleh
170: [01:29:20] <irogue_> Kingy: tell us what you're trying to achieve and we'll tell you if you're doing it wrong :P
171: [01:29:23] <spronk> i need to get access to enable's fibre maps
172: [01:29:32] <Zauberfisch> and yes, I am pretty sure this is not the best way to solve your problem
173: [01:30:09] <Kingy> irogue_: basically I need to have 2 shop fronts.. go to one shop and it displays products with type A,B,C.. go to shop two and it'll show product types X,Y,Z
174: [01:30:14] <Kingy> so two templates is definitely not needed
175: [01:30:53] <zippy__> spronk: post address to http://www.enable.net.nz/resources/coverage/autocomplete.js ?
176: [01:31:00] <spronk> well
177: [01:31:03] <spronk> that's not a fibre map :)
178: [01:31:05] <spronk> that's just
179: [01:31:09] <spronk> a peice of shit with no info at all :D
180: [01:32:10] <irogue_> Kingy: yeah, two templates not required - just detect which shopfront and filter the products in the code
181: [01:32:17] <Kingy> yep
182: [01:32:37] <Kingy> I was trying to be wayy too complicated haha
183: [01:32:43] <irogue_> ->filter() is your friend ^_^
184: [01:38:41] <Zauberfisch> Kingy: and if you ever have to use 2 different templates for 2 different frontends, you might also want to take using themes into considerration
185: [01:38:58] <Zauberfisch> its much easier to switch a theme than to have to tell every single controller what templates to use when
186: [01:39:13] <Kingy> yeah
187: [01:39:24] <Kingy> the whole switching templates thing was completely wrong anyways
188: [01:42:53] <Kingy> man this Sony conference sucks
189: [01:43:03] <Kingy> microphones don't even work half the time
190: [01:43:39] <antmas> Kingy: any big bombshells?
191: [01:43:48] <Kingy> not yet
192: [01:43:57] <Kingy> Little Big Planet 2?
193: [01:44:00] <antmas> Kingy: link to stream?
194: [01:44:09] <Kingy> http://www.gamespot.com/e3/sony-press-conference-2014/
195: [01:44:10] <antmas> there already is a 2
196: [01:44:15] <Kingy> it's probably finished
197: [01:44:20] <Kingy> i paused it and went to lunch so im behind
198: [01:45:38] <antmas> Kingy: is at Hardline stuff now, so still going
199: [01:45:48] <Kingy> oh ok
200: [01:45:59] <Kingy> i must not be that far behind then
201: [01:47:49] <Kingy> sorry LBP3
202: [01:54:12] * ezero has joined #silverstripe
203: [01:55:31] <Ryan-Toast> Kingy: <3 LBP
204: [01:55:54] <Ryan-Toast> One of very few reasons I still have my peasant box.
205: [02:03:15] <Stomach> get a Sega
206: [02:03:26] <Stomach> segas are the betterest
207: [02:05:23] * sawks has joined #silverstripe
208: [02:06:53] <sawks> hey i'm struggling with getting the silverstripe-cdncontent module working, does anyone have any tips/resources/examples?
209: [02:07:34] * muskie9 has joined #silverstripe
210: [02:08:32] <Kingy> ohh here we go
211: [02:08:53] <Kingy> grim fandango being remastered
212: [02:10:52] <Kingy> sawks: what seems to be the problem?
213: [02:11:32] <zippy__> anyone use ss with cloudflare? Getting it to auto clear the cache on page save etc?
214: [02:11:47] <Stomach> does anyone else always write text-transform: UPPERCASE; because it makes them happy? :D
215: [02:12:34] * muskie9 quit (Ping timeout: 276 seconds)
216: [02:12:42] <sawks> Kingy: I've been following instructions as per https://github.com/silverstripe-australia/silverstripe-content-services/wiki - the modules build fine and config looks OK, but the CMS gives me an error when trying to change to the S3 bucket under files
217: [02:13:14] <Stomach> zippy__ - we use it but don't have anything hooked up like that, just using the default settings
218: [02:13:16] <Kingy> what's the error?
219: [02:13:25] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
220: [02:13:40] <Stomach> it seems to take about 5 minutes to uncache on a change which is reasonable enough for our users
221: [02:13:53] <zippy__> Stomach: notice any negative effect on serps ranks?
222: [02:14:07] <Stomach> nope
223: [02:14:09] <sawks> A 404 on assets/EditForm
224: [02:14:23] <simon_w> git commit -S all the things!
225: [02:14:37] <Stomach> we do a lot of SEO work though, so who knows if its just being offset by five pages of bullshit on each site etc
226: [02:15:58] <Stomach> god I hate search engines
227: [02:16:39] <sawks> Likewise the Theme CDN tells me it's synced, but I can't see anything in the bucket
228: [02:17:18] * ezero quit (Ping timeout: 240 seconds)
229: [02:17:20] <sawks> Is working locally a problem?
230: [02:27:33] <Ryan-Toast> Fuck. Yes. https://www.youtube.com/watch?v=cDj6bjvDiY0&feature=youtu.be
231: [02:28:45] <Ryan-Toast> Magicka 2, oh my god I’m so happy.
232: [02:33:08] <sawks> Kingy: if you have a working config i'd love to take a look
233: [02:33:34] <Kingy> I've never actually used it sorry
234: [02:36:52] <irogue_> i just installed it to play with it last night, but haven't yet
235: [02:37:01] * antmas quit (Quit: Page closed)
236: [02:43:21] * ezero has joined #silverstripe
237: [02:43:43] * sawks quit (Ping timeout: 246 seconds)
238: [02:50:41] * muskie9 has joined #silverstripe
239: [02:51:15] * muskie9 quit (Client Quit)
240: [02:51:21] <spronk> hmm
241: [02:51:28] <spronk> does CWP require shit to be in /mysite ?
242: [02:55:39] <irogue_> spronk: nope
243: [02:56:34] <spronk> didn't think so
244: [02:56:36] <spronk> sigh
245: [02:56:45] <spronk> project i'm on was told by SS ltd to rename to mysite.
246: [02:56:45] <spronk> lol
247: [02:57:09] <spronk> got so confused when i git pull'd and files DISAPEAAR
248: [02:57:27] <simon_w> spronk, can't trust SS Ltd employees :p
249: [02:57:32] <spronk> IKR
250: [02:57:35] <spronk> :P
251: [02:58:55] <simon_w> <b>Fatal error</b>: Call to a member function Link() on a non-object in <b>/Users/simon/Sites/trunk/mysite/api_1/Properties.php</b> on line <b>140</b><br />
252: [02:58:55] <simon_w> Bah, don't want to have to sync assets
253: [02:59:12] <irogue_> simon_w: prob some noob like ss23
254: [02:59:48] <simon_w> Hmm, maybe I just truncate the Photos table
255: [03:08:39] * UncleCheese has joined #silverstripe
256: [03:15:57] * iamss has joined #silverstripe
257: [03:17:23] * msm has joined #silverstripe
258: [03:17:47] * msm is now known as Guest11977
259: [03:23:32] * ezero quit (Ping timeout: 260 seconds)
260: [03:25:48] * antmas has joined #silverstripe
261: [03:27:12] * cloph has joined #silverstripe
262: [03:27:18] * cloph_away quit (Ping timeout: 240 seconds)
263: [03:31:48] <antmas> dat feeling when you much up a commit and can't access a repo :P
264: [03:36:21] * antmas quit (Quit: Page closed)
265: [03:39:31] * antmas has joined #silverstripe
266: [03:40:39] <antmas> can anyone recommend a good encrypted email provider?
267: [03:41:14] <Ryan-Toast> antmas: I hate when I much up a repo.
268: [03:41:30] <Ryan-Toast> Almost as much as when I wow one.
269: [03:41:35] <Ryan-Toast> or such a commit.
270: [03:42:47] <antmas> Ryan-Toast: yeah I accidentaly tried to push ALL folders up instead of just my changes
271: [03:42:48] <antmas> :P
272: [03:43:01] <Ryan-Toast> antmas :P
273: [03:43:20] <simon_w> antmas, just use PGP?
274: [03:43:29] <antmas> simon_w: PGP?
275: [03:43:49] * babak has joined #silverstripe
276: [03:43:54] <simon_w> http://en.wikipedia.org/wiki/Pretty_Good_Privacy
277: [03:44:47] <antmas> hmmmm
278: [03:45:20] <simon_w> It's not the host that's usually the target, but the pipes. So just encrypting the host doesn't make much sense
279: [03:45:49] <antmas> simon_w: I see
280: [03:45:54] <antmas> this isn't for me
281: [03:46:10] <antmas> just had a friend who's paranoid about using Google and wan't something encrypted
282: [03:46:17] <antmas> wants*
283: [03:47:08] <simon_w> Self host!
284: [03:47:10] <irogue_> antmas: the NSA aren't too fond of encrypted email providers, plus the of course attract the wrong kind of customers, so they have a tendency to not last
285: [03:47:29] <antmas> what about this? https://shazzlemail.com/
286: [03:47:45] <irogue_> and any that do exist, there's no real way to know for sure they're actually encrypted and not an NSA honeypot
287: [03:48:03] <irogue_> i.e. you really have to self-host for any kind of security
288: [03:51:02] <antmas> Shazzle 'sounds' like what he might be after
289: [03:51:03] <antmas> maybe
290: [03:51:08] * antmas really doesn't know
291: [03:54:16] <spronk> dooooooo not self host your email
292: [03:54:20] <spronk> unless you are a sick motherfucker
293: [03:54:33] <spronk> and hate people that want to contact you
294: [03:54:34] <spronk> :)
295: [03:54:35] <irogue_> lol
296: [03:54:45] <spronk> (which is a perfectly legitimate position, btw)
297: [03:55:58] <antmas> spronk: :P well any thoughts on encrypted email?
298: [03:56:04] <antmas> providers+*
299: [03:57:42] <spronk> PGP
300: [03:58:16] <spronk> seriously, "trusting" an "encrypted email provider" is like trusting a friendly looking dog not to bite you
301: [03:58:58] <antmas> yeah I'll take a closer look at PGP
302: [04:00:54] * Kingy is now known as Kingy[a]
303: [04:02:31] <antmas> does using PGP on a daily basis slow things down?
304: [04:02:52] <spronk> hmm
305: [04:02:55] <spronk> well
306: [04:02:56] <spronk> short answer is yes
307: [04:03:15] <spronk> long answer is PGP needs buy in from both parties and client support to be useful
308: [04:03:32] <spronk> tell this person not to use email for sensitive conversations :P
309: [04:03:40] * simon_w quit (Ping timeout: 260 seconds)
310: [04:03:43] <spronk> better yet
311: [04:03:48] <spronk> tell this person just not to have sensitive conversations
312: [04:03:50] <spronk> problem solved!
313: [04:03:57] <antmas> lol
314: [04:04:00] <spronk> alternatively
315: [04:04:09] <spronk> you can always send four different variants of data
316: [04:04:16] <spronk> one being truthful, the other three being lies
317: [04:04:47] <spronk> it's a surprisingly effective way to communicate certain types of things "securely"
318: [04:04:55] <antmas> true
319: [04:09:37] <irogue_> it's a bit like how I ask my clients not to email me passwords
320: [04:09:56] <irogue_> email me the hostname and username, and txt me the password. they're both insecure mediums, but the odds of someone intercepting both is much lower
321: [04:10:06] <spronk> mm
322: [04:10:13] <spronk> unless
323: [04:10:21] <spronk> they are on one of these newfangled smartphone things
324: [04:10:37] <spronk> where text messages and emails are merged into "unified" comms
325: [04:10:42] <spronk> YAY SECURITY
326: [04:10:46] <irogue_> lol
327: [04:10:54] <spronk> or you are, tbh
328: [04:10:54] <irogue_> booked room at westplaza the other day
329: [04:11:06] <spronk> ...for... kiwicon?
330: [04:11:14] <irogue_> they wanted me to email CC number, expiry AND ccv
331: [04:11:22] <spronk> wooow
332: [04:11:23] <irogue_> spronk: wdcnz
333: [04:11:25] <spronk> ah
334: [04:11:26] <spronk> oh yeah
335: [04:11:31] * spronk should figure out whether he can/wants to go
336: [04:11:40] <antmas> westplaza, same as me irogue_ :D
337: [04:11:43] <antmas> PARTY
338: [04:12:08] <irogue_> antmas: of course. cheap deal with the conference, *and* directly opposite the venue
339: [04:12:19] <antmas> yup
340: [04:12:29] <irogue_> and i've stayed there before and it was tolerable
341: [04:13:14] * antmas quit (Quit: Page closed)
342: [04:13:22] <irogue_> BYE ANTMAS
343: [04:22:20] * simon_w has joined #silverstripe
344: [04:24:31] * Guest11977 quit (Ping timeout: 246 seconds)
345: [04:26:28] * zippy__ quit (Ping timeout: 276 seconds)
346: [04:41:51] <spronk> holy fuck this is a tasty sub
347: [04:41:59] <spronk> countdown italian sticks ftw
348: [04:42:13] <spronk> also, ftw, having lots of leftover cold meats in fridge
349: [04:42:17] <irogue_> ew countdown :P
350: [04:42:31] <spronk> i usually agree
351: [04:42:45] <spronk> but nobody else seems to make good sub bread
352: [04:43:48] <simon_w> Heh, paying for bread
353: [04:43:52] <simon_w> Such a novel concept
354: [04:44:14] <spronk> :(
355: [04:44:34] <spronk> http://shop.countdown.co.nz/Shop/ProductDetails?Stockcode=286072&name=instore-bakery-bread-sticks-italian
356: [04:44:51] <spronk> clearance for $2 ftw
357: [04:45:22] <spronk> overall cost for my approx footlong subwich ~= $4
358: [04:45:51] <simon_w> Overall cost for my lunch: $0
359: [04:46:00] <simon_w> Living with people that buy household grocers FTW!
360: [04:46:11] <spronk> .... surely you contribute
361: [04:47:07] <simon_w> Nope
362: [04:47:07] <spronk> bread, ham, roast beef, corned silverside, pepperoni, edam cheese, parmesan, tomato, green cap, lettuce, olives, coriander pesto, aioli
363: [04:47:11] <spronk> yumyumyum
364: [04:47:38] <simon_w> Well, I use up the internet cap in the first half of the month if that counts as contributing
365: [04:48:18] <spronk> wow
366: [04:48:31] <spronk> `so basicalyl
367: [04:48:42] <spronk> you leech
368: [04:48:43] <spronk> :p
369: [04:48:46] <simon_w> Yup! :D
370: [04:49:21] <simon_w> Oh, I walk the dog every so often
371: [04:49:26] * spronk rolls eyes
372: [04:50:41] <spronk> We have 7 follow suggestions for you.
373: [04:50:42] <spronk> Suggested because you've listened to Justin Bieber.
374: [04:50:42] <spronk> Because you listened to Justin Bieber
375: [04:50:44] <spronk> OMFG. WHAT!?
376: [04:51:05] * Shrike_Finland has joined #silverstripe
377: [04:51:43] <simon_w> I follow a guy that Justin Bieber follows and tweets to at times
378: [04:51:56] <spronk> man
379: [04:52:00] <spronk> i wish someone would just murder him
380: [04:52:05] <spronk> and get it over and done with
381: [04:54:31] <Ryan-Toast> Just stop talking about him, you’re part of the problem./
382: [04:54:45] * spronk shuts up
383: [04:54:52] <spronk> thanks Ryan-Toast
384: [04:55:06] <Ryan-Toast> It’s like people who complain about traffic in a traffic jam. YOU ARE TRAFFIC MOTHER FUCKER
385: [04:55:21] <Ryan-Toast> spronk: <3
386: [04:59:45] <irogue_> [16:50:42] <spronk> Because you listened to Justin Bieber
387: [04:59:50] <irogue_> we know your secret, spronk
388: [05:00:06] <simon_w> It's safe with us and ss-log
389: [05:01:14] <irogue_> https://www.dropbox.com/s/rqz2hjguv5at9ky/Screenshot%202014-06-10%2017.00.56.png
390: [05:02:18] <Ryan-Toast> https://www.youtube.com/watch?feature=player_embedded&v=kspPE9E1yGM
391: [05:02:28] * nickmolhoek quit (Quit: nickmolhoek)
392: [05:02:53] <spronk> :(
393: [05:03:21] <simon_w> https://www.youtube.com/watch?v=GVCzdpagXOQ
394: [05:04:46] <Ryan-Toast> simon_w: https://www.youtube.com/watch?v=Yhpw7nezdkw
395: [05:05:28] <simon_w> Ryan-Toast, https://www.youtube.com/watch?v=2OxWD85Ngz4&list=PL44P0tGQpUqvsDsTJECDkoqze-ll8OxWg
396: [05:06:35] <Ryan-Toast> simon_w: How many songs does she have? I thought she just had one.
397: [05:07:08] <simon_w> Ryan-Toast, 7, excluding covers
398: [05:07:17] <Ryan-Toast> simon_w: Good on her.
399: [05:07:31] <simon_w> And only the first one is auto tuned
400: [05:09:16] <Ryan-Toast> Could do with some more b-rated video clips though.
401: [05:14:06] * Shrike_Finland quit (Quit: Leaving.)
402: [05:17:51] <Zauberfisch> who listens to rebecca black anymore? I though dobule take is the crown of music these days
403: [05:18:37] <guzzlefry> me
404: [05:18:41] <guzzlefry> every friday
405: [05:18:57] <Zauberfisch> haha, fair point
406: [05:19:00] <guzzlefry> except the Colbert version
407: [05:27:11] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
408: [05:28:33] <simon_w> Woo, down to 490 emails
409: [05:31:29] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
410: [05:33:55] * srikanth quit (Ping timeout: 240 seconds)
411: [05:37:19] * an_Eskimo quit (Ping timeout: 246 seconds)
412: [06:11:42] * camel_case has joined #silverstripe
413: [06:23:13] * Shrike_Finland has joined #silverstripe
414: [06:36:55] * Shrike_Finland quit (Quit: Leaving.)
415: [06:46:02] * iamss quit (Ping timeout: 245 seconds)
416: [06:49:21] <Zauberfisch> Stomach: so, our relationship is fine again I see
417: [06:52:15] * ARNHOE has joined #silverstripe
418: [07:01:10] * Shrike_Finland has joined #silverstripe
419: [07:06:06] * Shrike_Finland quit (Quit: Leaving.)
420: [07:13:59] * Shrike_Finland has joined #silverstripe
421: [07:17:44] * Bollig|DesignCty has joined #silverstripe
422: [07:18:38] <Bollig|DesignCty> simon_w: do you have an updated embargo/expiry module?
423: [07:19:22] <Bollig|DesignCty> aaaaaaaaand nevermind.
424: [07:38:32] * Shrike_Finland quit (Quit: Leaving.)
425: [07:39:31] * Shrike_Finland has joined #silverstripe
426: [07:42:14] * wmk has joined #silverstripe
427: [07:42:31] <wmk> good morning ugt
428: [07:51:28] * ocm has joined #silverstripe
429: [07:51:56] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
430: [07:55:03] <violet-rpi> if you have a ss site installed without composer is it possible to composer to install modules? and how to do so?
431: [07:55:51] <ocm> howdy!
432: [07:55:59] <ocm> install composer
433: [07:56:01] <ocm> and then
434: [07:56:09] <ocm> composer require silverstripe/module version
435: [07:56:27] <ocm> and ofcourse, don't forget to flush
436: [08:00:15] * Shrike_Finland quit (Quit: Leaving.)
437: [08:02:16] * Shrike_Finland has joined #silverstripe
438: [08:04:15] <violet-rpi> The .git directory is missing from /var/www/bvbacetin/cms/vendor/composer/installers, see http://getcomposer.org/commit-deps for more information
439: [08:04:29] * kinglozzer has joined #silverstripe
440: [08:09:59] * Pyswpstk has joined #silverstripe
441: [08:11:27] * simon_w quit (Quit: This computer has gone to sleep)
442: [08:12:52] <Pyswpstk> so, who fixed SQLQuery for me last night? :D
443: [08:14:17] <Pyswpstk> kinglozzer: what are the chances France and England get to the final in the world cup?
444: [08:14:40] <Pyswpstk> and how much violence should one expect if such a poor chance succeeds?
445: [08:14:42] <kinglozzer> Pyswpstk: Impossibly tiny
446: [08:14:47] <kinglozzer> Pyswpstk: A lot
447: [08:14:51] <kinglozzer> :P
448: [08:15:58] <Pyswpstk> so how good are France then?
449: [08:19:28] <kinglozzer> Pyswpstk: Not very, probably slightly better than England
450: [08:19:43] <Pyswpstk> oh yeh, so two high named duds then :<
451: [08:19:44] <kinglozzer> Pyswpstk: Sweepstake team?
452: [08:19:48] <Pyswpstk> (office sweepstake time)
453: [08:19:50] <kinglozzer> Ah
454: [08:21:08] <Pyswpstk> yeh
455: [08:22:26] <Pyswpstk> fffff
456: [08:22:42] <Pyswpstk> gotta order the sql from entries
457: [08:22:51] <Pyswpstk> by supplying some random magic number
458: [08:23:07] <Pyswpstk> first thing I learnt about code, magic numbers are the bad.
459: [08:24:09] <Pyswpstk> but you can't order the from.
460: [08:24:12] <Pyswpstk> just the joins
461: [08:24:21] <Pyswpstk> which share the same array.
462: [08:45:57] * Shrike_Finland quit (Quit: Leaving.)
463: [08:46:11] * Shrike_Finland has joined #silverstripe
464: [08:46:47] * nonconformatevi has joined #silverstripe
465: [08:57:56] <nonconformatevi> Hi,
466: [08:57:56] <nonconformatevi> I create a module that extends the silverstripe/blog module.
467: [08:57:56] <nonconformatevi> There's a class that extends the BlogHolder, but inside it I can't extend the canDelete() function: why?
468: [08:57:56] <nonconformatevi> I attaching the link with the code.
469: [08:58:06] <nonconformatevi> http://www.sspaste.com/paste/show/5396c4ead80fa
470: [08:58:10] <nonconformatevi> thanks
471: [09:00:16] <Pyswpstk> because it's in the controller.
472: [09:00:39] <Pyswpstk> not the model, which is what is being deleted.
473: [09:01:35] <Pyswpstk> also, use the ORM. That's what its' for.
474: [09:02:10] <Pyswpstk> $authorid = $this->AuthorID
475: [09:02:25] <Pyswpstk> you don't even need the ORM.
476: [09:02:43] <nonconformatevi> ok, I try it. thanks very much
477: [09:04:53] <nonconformatevi> now the functions is ok! thanks
478: [09:05:41] <Pyswpstk> UserRestrictedBlogHolder::canDelete($member=null) { $can = parent::canDelete($member); if($can) $can = $this->AuthorID == Member::currentMemberID(); return $can; }
479: [09:05:57] <Pyswpstk> urr currentUserID()
480: [09:05:59] <Pyswpstk> or whatever it is
481: [09:06:00] * Shrike_Finland quit (Quit: Leaving.)
482: [09:09:34] <nonconformatevi> ok, thanks
483: [09:12:27] <kinglozzer> This may be a stupid question, but does SilverStripe use Composer's autoload stuff? Just wondering whether the optimize autoloader option will actually have any benefit
484: [09:12:58] <Pyswpstk> nup, SS has it's own autoloader.
485: [09:13:07] <Pyswpstk> that's why we have a manifest.
486: [09:13:21] <Pyswpstk> for things outside of SS though, perhaps.
487: [09:13:31] <Pyswpstk> eg if you're making use of some other external lib.
488: [09:13:33] <Pyswpstk> idk
489: [09:13:36] <Pyswpstk> composer silly.
490: [09:17:14] <kinglozzer> Thought so
491: [09:23:33] * richwestcoast has joined #silverstripe
492: [09:33:40] * irogue_ has joined #silverstripe
493: [09:36:05] * spronk2 has joined #silverstripe
494: [09:46:52] * Tanger quit (Quit: Tanger)
495: [09:50:27] * alantucker has joined #silverstripe
496: [09:50:33] <alantucker> hi
497: [09:51:14] <irogue_> alantucker: g'day
498: [09:51:20] <alantucker> hi ya
499: [09:51:22] <irogue_> so what can we help you with?
500: [09:51:40] <ss23> Tucker!
501: [09:52:25] <alantucker> ok so i have a seperate db (non-ss) which has parent child relations, I need to build a site tree like ss
502: [09:53:07] <irogue_> that... sounds interesting
503: [09:53:12] <alantucker> i have put something together to get the Parent levels https://gist.github.com/alantucker/ca10b614c34fcf055e91
504: [09:55:05] <irogue_> so are you using silverstripe 2.4?
505: [09:55:13] * Liquide has joined #silverstripe
506: [09:57:27] <alantucker> yeah on this site
507: [09:57:34] <Pyswpstk> omg I'm so close to almost having a real f'n query.
508: [09:58:02] <irogue_> Pyswpstk: haha
509: [09:58:28] <alantucker> just testing something ;-)
510: [09:58:28] <Pyswpstk> I just need to stop it from thinking that a subquery is a table name (and thus "(subquery)" which is error) and fix some kind of error where it's CONCAT, (actual, concat),
511: [09:58:40] <Pyswpstk> odd that it does it that one time, but not any other time :<
512: [09:58:46] <Pyswpstk> and there are multiple concats in this query
513: [09:58:55] <Pyswpstk> irogue_: mmhmm
514: [09:59:05] <irogue_> alantucker: ok, was just checking as you're using DataObjectSet which of couse doesn't exist in 3 :)
515: [09:59:20] <Pyswpstk> that moment when you can't update core so you have to just hack around it. Luckily I've not found a blocker yet (so I've not had to use injector)
516: [09:59:51] <Pyswpstk> lol using non SS tables. That's what I'm doing.
517: [10:00:03] <Pyswpstk> alantucker: Use the power of the mighty SQLQuery class!
518: [10:00:22] <alantucker> yeah may switch to v3 of there is an easy way ;-)
519: [10:01:15] <Pyswpstk> No, I recommend not.
520: [10:01:18] <Pyswpstk> since I'm using SS3 and was being super sarcastic since SQLQuery has gone way down the drain in 3.x
521: [10:01:19] <Pyswpstk> :<
522: [10:01:41] <Pyswpstk> alantucker: so what is your issue? You kinda just said "I have this".
523: [10:01:46] <Pyswpstk> and I'm all "that's cool, good on you!"
524: [10:02:16] <Pyswpstk> but I think DataObjectSet can take a Query Result at a param... maybe
525: [10:02:46] <Pyswpstk> oh mind you... 2.4 and the relation between DOS and DOs is kinda close iirc :<
526: [10:03:04] <Pyswpstk> also see if 2.4 supports naming your connections.
527: [10:03:16] <irogue_> alantucker: so from what i gather, you're just trying to make a nested DataObjectSet?
528: [10:03:20] <Pyswpstk> you really want DB::getConn('default') at the end, not make a new one.
529: [10:03:35] <Pyswpstk> and DB::connect($dbconfig, 'MyOtherDatabase')
530: [10:03:48] <Pyswpstk> then you DB::getConn('MyOtherDatabase')->query
531: [10:03:50] <Pyswpstk> etc
532: [10:03:50] <alantucker> irogue_ yeah my other table has page_id, parent_id, nav_title
533: [10:04:01] <alantucker> page_id being the PK
534: [10:04:54] * Shrike_Finland has joined #silverstripe
535: [10:05:45] * micmania1 has joined #silverstripe
536: [10:06:06] <alantucker> irogue_ any ideas?
537: [10:06:19] <Pyswpstk> as to what?
538: [10:06:24] <Pyswpstk> You still haven't actually asked a question!
539: [10:06:40] <alantucker> who?
540: [10:06:43] <Pyswpstk> you!
541: [10:07:09] <alantucker> yeah i have
542: [10:07:18] <Pyswpstk> please, show me.
543: [10:07:26] <alantucker> "ok so i have a seperate db (non-ss) which has parent child relations, I need to build a site tree like ss"
544: [10:07:33] <Pyswpstk> That's not a question.
545: [10:07:37] <alantucker> more of a statment that a question
546: [10:07:38] <Pyswpstk> That's a statement.
547: [10:07:53] <alantucker> Pyswpstk dont be soooo picky
548: [10:07:58] <Pyswpstk> Indeed. Do you need help to achieve this?
549: [10:08:00] <irogue_> the way i'd probably go about it, alantucker
550: [10:08:21] <Pyswpstk> alantucker: Well I'm sorry alantucker I thought there was more to the story. That was your opening statement.
551: [10:08:35] <irogue_> is to put the stuff that builds the DOS into its own function, so you can easily nest it
552: [10:08:40] * babak quit (Quit: Connection closed for inactivity)
553: [10:08:50] <Pyswpstk> We don't all speak english as a native language in here alantucker!
554: [10:09:02] <alantucker> Pyswpstk clam down ;-)
555: [10:09:18] <alantucker> chill dude
556: [10:09:21] <alantucker> :)
557: [10:09:22] <irogue_> Pyswpstk doesn't know the meaning of calm :P
558: [10:09:24] <Pyswpstk> Scollop down bruv.
559: [10:09:58] <Pyswpstk> http://i.qkme.me/3qt516.jpg
560: [10:09:58] <irogue_> hmmm
561: [10:10:03] <irogue_> i'm trying to picture this in my head
562: [10:10:39] <Pyswpstk> irogue_: I do know the meaning of clam though.
563: [10:12:59] <ocm> violet-rpi did you install composer in the directory? (sorry for late reply, just noticed your msg that .git is missing)
564: [10:13:11] * Error404NotFound has joined #silverstripe
565: [10:13:11] * Error404NotFound quit (Read error: Connection reset by peer)
566: [10:18:17] * simon_w|air has joined #silverstripe
567: [10:19:00] * Liquide quit ()
568: [10:19:20] * Error404NotFound has joined #silverstripe
569: [10:25:52] <Pyswpstk> hah, gawd
570: [10:25:52] <Pyswpstk> http://arntrnassets.mediaspanonline.com/radio/h01/1419163/funny-children-coloring-book-corruptions-8_w616.jpg
571: [10:26:50] <Pyswpstk> so racist, cooking meth, must be black!
572: [10:33:18] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
573: [10:40:51] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
574: [10:50:09] * alantucker quit (Quit: Page closed)
575: [10:58:32] <kinglozzer> Anyone had issues with SS filling /tmp and crashing the server?
576: [10:59:22] <kinglozzer> The way I see it, options are to increase partition size and/or run a script to remove old ss cache files
577: [10:59:25] <Pyswpstk> nup
578: [10:59:33] <Pyswpstk> both
579: [10:59:47] <Pyswpstk> must have a lot of uploads kinglozzer !
580: [11:00:03] <Pyswpstk> and/or a very small /tmp :<
581: [11:00:18] <kinglozzer> Pyswpstk: It's all the ss-cache folders that are doing it
582: [11:00:25] <kinglozzer> No idea how big /tmp is :|
583: [11:00:41] <Pyswpstk> kinglozzer: oh, becauase so many sites?
584: [11:00:49] <kinglozzer> Yeah
585: [11:00:55] <Pyswpstk> I had that problem once
586: [11:01:00] <Pyswpstk> I solved it
587: [11:01:19] <Pyswpstk> with a bit of magic. I walked into the bosses office and said "buy a new server"
588: [11:02:35] * wmk quit (Quit: nice to meet you ;))
589: [11:03:25] <Pyswpstk> Someone please tell me how the fuck (?> as)? ['"]?([a-z0-9_-]+)['"]?$ matches the bit in the _MIDDLE_ of "FROM ohdear AS oh INNER JOIN (SELECT id, "
590: [11:09:49] * Pyswpstk quit (Ping timeout: 246 seconds)
591: [11:17:27] * Shrike_Finland1 has joined #silverstripe
592: [11:19:52] * Shrike_Finland quit (Ping timeout: 265 seconds)
593: [11:20:40] * Pyswpstk has joined #silverstripe
594: [11:20:50] <Pyswpstk> fooooook
595: [11:21:55] <Pyswpstk> got food, only made hungrier :<
596: [11:25:13] <Pyswpstk> ah fuck, regex issue solved. Long story short, it doesn't. But str_replace doesn't give a fuck :<
597: [11:30:45] * richwestcoast quit (Changing host)
598: [11:30:45] * richwestcoast has joined #silverstripe
599: [11:41:58] * camel_case quit (Ping timeout: 276 seconds)
600: [11:42:27] * camel_case has joined #silverstripe
601: [11:47:36] * spronk2 quit (Quit: spronk2)
602: [11:52:01] * Shrike_Finland1 quit (Quit: Leaving.)
603: [12:06:12] <spronk> haha
604: [12:06:13] <spronk> :(
605: [12:06:23] <spronk> you're regexing sql queries
606: [12:06:24] <spronk> damn man
607: [12:15:21] * UndefinedOffset has joined #silverstripe
608: [12:15:46] <Pyswpstk> spronk: yeah nah
609: [12:15:49] <Pyswpstk> shuttup :<
610: [12:15:58] <Pyswpstk> better than regexing a subsite!
611: [12:16:14] * wmk has joined #silverstripe
612: [12:16:50] <Pyswpstk> omg I got the f'n thing working :<
613: [12:19:43] <wmk> hmm, how can i tell gd to save jpgs progressive?
614: [12:20:02] <Pyswpstk> maybe, maybe not.
615: [12:20:50] <Pyswpstk> http://www.php.net//manual/en/function.imagejpeg.php
616: [12:21:02] <Pyswpstk> Note: If you want to output Progressive JPEGs, you need to set interlacing on with imageinterlace().
617: [12:21:11] <Pyswpstk> http://www.php.net/manual/en/function.imageinterlace.php
618: [12:21:37] <wmk> Pyswpstk, there seems to be a config value for that. cool.
619: [12:22:01] <Pyswpstk> ha, good luck with it actually working though! :P
620: [12:22:07] <Pyswpstk> img libs are a bit... yeh. iffy.
621: [12:22:27] <wmk> i know. but GDBackend seems to have a switch for this.
622: [12:23:36] <Pyswpstk> cool! :>
623: [12:26:13] * Shrike_Finland has joined #silverstripe
624: [12:28:47] * cloph is now known as cloph_away
625: [12:35:03] * nonconformatevi quit (Quit: Sto andando via)
626: [12:35:43] * simon_w|air quit (Quit: Leaving)
627: [12:36:40] * nonconformatevi has joined #silverstripe
628: [12:39:10] * Bollig|DesignCty has joined #silverstripe
629: [12:41:46] <wmk> hey, it works!
630: [12:43:56] * Error404NotFound has joined #silverstripe
631: [12:54:09] <Pyswpstk> :>
632: [13:05:49] * Error404NotFound quit (Ping timeout: 276 seconds)
633: [13:09:07] * Shrike_Finland quit (Quit: Leaving.)
634: [13:15:00] * Error404NotFound has joined #silverstripe
635: [13:20:17] * catcher has joined #silverstripe
636: [13:27:16] <Pyswpstk> kinglozzer / micmania1, do either of you understand route rule shifting?
637: [13:27:36] <micmania1> what u mean?
638: [13:27:40] <Pyswpstk> Every time I think I do I end up confusing myself and staring at it for ages.
639: [13:27:49] <Pyswpstk> when a route is matched, it shifts, sometimes.
640: [13:27:58] <Pyswpstk> IDK what is, what does, why, etc.
641: [13:28:14] <Pyswpstk> I can bluff my way through it usually, but today I find myself needing to know :<
642: [13:28:54] <micmania1> It always shifts if a new rule is matched.
643: [13:29:06] <micmania1> RequestHandler::handleRequest I believe
644: [13:29:28] <Pyswpstk> SS_HTTPRequest::match
645: [13:29:43] <micmania1> yeah, but its triggered in handleRequest
646: [13:29:52] <Pyswpstk> if you have a shift point, only shifts the number of parts before it (//)
647: [13:30:04] <Pyswpstk> otherwise they ALL get shifted.
648: [13:30:36] <Pyswpstk> I've got a route of which I'm ignoring SS's params (but operating from the default rule) and it's coming back with 'I dunno bro'
649: [13:30:55] <Pyswpstk> $Controller//$Action/$ID/$OtherID
650: [13:31:32] <micmania1> so is matches it then gets rid of $Controller and the rest go into url params
651: [13:31:45] <Pyswpstk> MyController::handleAction just igores all the params (other tha Action) and turfs all the dirparts into the action call.
652: [13:31:46] <micmania1> Because // tells it only to store those afterwards
653: [13:32:07] <Pyswpstk> micmania1: Yeah I know that, but this shifting part is what I don't get.
654: [13:32:23] <Pyswpstk> /framework/control/RequestHandler.php:235: return $this->httpError(404, "I can't handle sub-URLs of a $this->class object.");
655: [13:32:46] <Pyswpstk> because $request->allParsed() == false
656: [13:33:13] <Pyswpstk> and I'm confused in understanding what it is, what it's for, etc.
657: [13:33:14] <Pyswpstk> I think I need caffine :S
658: [13:35:16] <micmania1> var_dump each val: http://api.silverstripe.org/3.1/source-class-RequestHandler.html#221
659: [13:35:38] <Pyswpstk> oh, and php's substr_count apparently returning 0 if substr === str
660: [13:36:35] <Pyswpstk> micmania1: yeh I know, that's what I'm trying to figure out how to solve. It has to do with shifting stuff, but I'm not sure what that'll break (probably nothing, but I want to understand it better anyways)
661: [13:45:03] * UncleCheese has joined #silverstripe
662: [13:46:32] * cloph_away is now known as cloph
663: [13:47:00] * UncleCheese quit (Client Quit)
664: [13:59:50] * Becca has joined #silverstripe
665: [14:00:48] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
666: [14:06:56] * Error404NotFound quit (Read error: Connection reset by peer)
667: [14:07:26] * Shrike_Finland has joined #silverstripe
668: [14:09:57] <Pyswpstk> micmania1: ah, fucker.
669: [14:10:27] <Pyswpstk> request doesn't actually keep the array parts as a whole, it simply shifts them off one by one then they're not there anymore.
670: [14:10:45] <micmania1> yeah lol
671: [14:11:03] <Pyswpstk> I thought protected $dirParts was constant!
672: [14:11:06] <Pyswpstk> no wonder confused.
673: [14:11:30] <Pyswpstk> protected $url never changes, but it's not separated
674: [14:11:53] <Pyswpstk> yeah, well now I understand.
675: [14:12:19] <Pyswpstk> either way I'd already fixed it long ago with do $notdone=$request->shift(); while($notdone);
676: [14:22:37] * Error404NotFound has joined #silverstripe
677: [14:23:50] <Pyswpstk> still, makes the word 'shift' make so much more sense! :P
678: [14:24:28] * wmk quit (Ping timeout: 276 seconds)
679: [14:31:55] * Shrike_Finland quit (Quit: Leaving.)
680: [14:32:19] * Shrike_Finland has joined #silverstripe
681: [14:36:02] <Pyswpstk> [14:35] <Pyswpstk> oh, and php's substr_count apparently returning 0 if substr === str
682: [14:36:03] <Pyswpstk> I lied
683: [14:36:16] <Pyswpstk> Again with the needing caffine :<
684: [14:36:34] <Pyswpstk> All the brackets confused me, but it's counting the occurances of '/' in somthing that has none.
685: [14:36:40] <Pyswpstk> which should return 0
686: [14:36:42] <Pyswpstk> :>
687: [14:37:51] * wmk has joined #silverstripe
688: [14:42:40] * Error404NotFound quit (Ping timeout: 276 seconds)
689: [14:50:38] <Pyswpstk> kinglozzer: mmmmmmmmmmzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
690: [14:51:04] <Pyswpstk> A Late Siesta!
691: [14:51:21] <Pyswpstk> Couldn't find caffine, had to settle for sugar... now it's dropp'n me :/
692: [14:53:59] * Error404NotFound has joined #silverstripe
693: [15:01:08] <kinglozzer> Pyswpstk: Aye, snoozy today
694: [15:01:10] <kinglozzer> So warm
695: [15:01:27] * scpi has joined #silverstripe
696: [15:05:00] <Pyswpstk> D: someone just broke api.silverstripe.org
697: [15:09:59] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
698: [15:11:09] <Pyswpstk> Back! \o/
699: [15:22:23] * Shrike_Finland quit (Quit: Leaving.)
700: [15:26:38] * Shrike_Finland has joined #silverstripe
701: [15:27:03] * asker has joined #silverstripe
702: [15:27:46] <Pyswpstk> fuck'n aye, I did it micmania1
703: [15:27:53] <Pyswpstk> IT LIIIIIVES
704: [15:28:01] <micmania1> oh god
705: [15:28:17] <Pyswpstk> xD
706: [15:29:21] * nonconformatevi quit (Quit: Sto andando via)
707: [15:30:15] <Pyswpstk> I haven't tried writing with it yet though :P
708: [15:30:20] <Pyswpstk> only fetching so far
709: [15:31:01] <asker> hey guys, a short question. If I add the ID to the searchable_fields, it'll generate a drop-down field, how can I remove that drop-down ?
710: [15:31:11] <asker> I want a simle text-field without dropdown
711: [15:34:35] * ARNHOE quit (Ping timeout: 265 seconds)
712: [15:38:00] <Pyswpstk> use the expanded syntax
713: [15:38:19] * jenniferaslan has joined #silverstripe
714: [15:39:17] <kinglozzer> asker: What Pyswpstk said: private static $searchable_fields = array('MyIDField' => array('title' => 'My ID Field', 'field' => 'TextField'));
715: [15:40:16] <kinglozzer> Or override scaffoldSearchFields(), but that's overkill
716: [15:40:59] <wmk> how can i filter a datalist like ( x=1 AND y=2) OR ( foo='bar' AND baz = xyz) with ORM?
717: [15:41:18] <Pyswpstk> array
718: [15:41:30] <Pyswpstk> and whereAny
719: [15:41:50] <kinglozzer> filterAny ^^
720: [15:41:51] <wmk> Pyswpstk, from the docs i can only make (x=1) OR (foo = bar)
721: [15:42:12] <wmk> as it's a key=>value array
722: [15:42:18] <Pyswpstk> DataQuery Subgroup
723: [15:42:50] <wmk> hmm, i'd need it as a filter to apply to a gridfieldextension
724: [15:44:03] <kinglozzer> addFilter maybe? idk
725: [15:44:46] <Pyswpstk> wmk: yeh, that's how it's done, but I'm unsure on how exactly to operate it from a grander level.
726: [15:44:51] <kinglozzer> Or as Pyswpstk said, ->alterDataQuery and modify the DataQuery
727: [15:44:58] <Pyswpstk> simon_w wrote it, it's likely got good heredocs
728: [15:45:13] <Pyswpstk> (in code docblock)
729: [15:45:41] <wmk> seems like i have to subclass the formfield for this query...
730: [15:45:45] <asker> thanks - working
731: [15:48:14] <kinglozzer> wmk: If you can access the DataList, you should be able to use whereAny on the DataQuery - no need to subclass
732: [15:48:26] <kinglozzer> Unless I misunderstand :|
733: [15:49:42] <wmk> guess i need to subclass the formfield, as with the API i only can apply filters, but no where query or datalist (which would be the best in my case. preprare the list and give it to the field)
734: [15:50:26] * richwestcoast quit (Quit: My iMac has gone to sleep. ZZZzzz…)
735: [15:50:40] <kinglozzer> $list = $list->alterDataQuery(function($dataQuery, $list) { $dataQuery->whereAny(array("x = 1 AND y = 2", "foo = 'bar' AND baz = 'xyz')); return $dataQuery; });
736: [15:50:42] <kinglozzer> Or something
737: [15:50:48] <kinglozzer> Oh, so you don't have access to the DataList?
738: [15:51:04] <Pyswpstk> gridfield is a black box
739: [15:51:28] <Pyswpstk> no one has access to anything. All you can do is ask, and if gridfield feels like it, it might give it to you.
740: [15:51:40] <kinglozzer> Only after a sacrifice
741: [15:51:46] * Pyswpstk ponders how the hell gridfield works.
742: [15:51:48] <kinglozzer> GridField wants blood
743: [15:52:02] <Pyswpstk> I might need for the next thing in my list of things to do
744: [15:52:16] * asker quit (Ping timeout: 246 seconds)
745: [15:52:19] <kinglozzer> wmk: Could you add a GridField_DataManipulator component?
746: [15:52:32] <wmk> well, it's HasOnePickerField, i want to filter the search
747: [15:53:12] <Pyswpstk> 'page' => $page+1, //cpu -> human number
748: [15:53:13] <Pyswpstk> best not
749: [15:53:14] <Pyswpstk> e
750: [15:53:50] <kinglozzer> wmk: Is that field a 2.4 thing?
751: [15:53:54] <kinglozzer> Never heard of it :P
752: [15:54:05] <Pyswpstk> kinglozzer: it is, yes.
753: [15:54:22] <wmk> kinglozzer, there is something similar for 3.1
754: [15:54:25] <Pyswpstk> but also I think simon_w or someone made an SS3 bersion
755: [15:54:30] <Pyswpstk> well, not a version, but a similar tool
756: [15:54:44] <Pyswpstk> that does basically the same job, in a heaps as different manner.
757: [15:54:50] <wmk> https://github.com/briceburg/silverstripe-pickerfield
758: [15:55:09] <Pyswpstk> gawd, randos making modules.
759: [15:55:23] <Pyswpstk> before we know it it'll be all j-word up in here.
760: [15:55:30] <Pyswpstk> 100000000 gallery modules.
761: [15:55:30] <kinglozzer> Looks... confusing D:
762: [15:55:34] <Pyswpstk> exactly!
763: [15:55:40] <kinglozzer> Pyswpstk: There are already /many/ gallery modules :P
764: [15:55:42] <Pyswpstk> 100000000 BAD gallery modules.
765: [15:55:55] <wmk> depends on the needs.
766: [15:55:55] <kinglozzer> http://addons.silverstripe.org/add-ons?search=gallery
767: [15:56:00] <Pyswpstk> neg
768: [15:56:02] <Pyswpstk> do not wish to
769: [15:56:11] <wmk> but all galleries claim to be better...
770: [15:56:27] <Pyswpstk> kinglozzer: awww fuck me, half of those are forks of a single root
771: [15:56:38] <Pyswpstk> all based on DOM style operation :<
772: [15:56:54] <Pyswpstk> wmk: that's the danger, NONE of them ever are!
773: [15:57:08] <wmk> of course. at least one is compatible with the original (tm)
774: [15:57:16] <wmk> that's good when updating existing sites
775: [15:57:21] <Pyswpstk> lol 'sortable-gallery-field'
776: [15:57:22] <Pyswpstk> ffs
777: [15:57:38] <Pyswpstk> use one of the bazillion other sorting components.
778: [15:57:45] <Pyswpstk> and have something that's not retard specific
779: [15:58:47] <Pyswpstk> the old anecdote "a vengeful hacker would make a fucnction destroyTheWorld(); but then his boss would fire him and change it to destroy() that takes the 'world' as an arguement"
780: [15:59:34] <Pyswpstk> so, half an hour left
781: [15:59:45] <kinglozzer> Pyswpstk: guts
782: [15:59:47] <Pyswpstk> It's pretty much too late in the day to start anything new :/
783: [15:59:48] * kinglozzer runs away
784: [15:59:54] <Pyswpstk> lawls, bastard
785: [15:59:55] <kinglozzer> :D
786: [16:00:02] <kinglozzer> ciao
787: [16:00:03] <Pyswpstk> might just keep doing sudoku, lol
788: [16:00:05] <Pyswpstk> ciao
789: [16:00:08] * kinglozzer quit ()
790: [16:13:20] * richwestcoast has joined #silverstripe
791: [16:31:14] * Pyswpstk quit ()
792: [16:57:00] * richwestcoast quit (Quit: Textual IRC Client: www.textualapp.com)
793: [16:58:25] * Becca quit (Ping timeout: 246 seconds)
794: [17:09:34] * wmk quit (Ping timeout: 276 seconds)
795: [17:24:38] * Shrike_Finland quit (Quit: Leaving.)
796: [17:25:50] * Shrike_Finland has joined #silverstripe
797: [17:32:07] * oddnoc has joined #silverstripe
798: [17:45:41] * gelignite has joined #silverstripe
799: [17:46:39] * babak has joined #silverstripe
800: [17:50:32] * Pyromanik has joined #silverstripe
801: [17:52:20] * [1]Pyromanik has joined #silverstripe
802: [17:53:47] * Pyromanik quit (Disconnected by services)
803: [17:53:48] * [1]Pyromanik is now known as Pyromanik
804: [18:02:52] * UndefinedOffset quit (Quit: Leaving.)
805: [18:36:51] * Shrike_Finland quit (Quit: Leaving.)
806: [18:40:38] * Shrike_Finland has joined #silverstripe
807: [18:46:42] * Pyromanik quit (Ping timeout: 265 seconds)
808: [18:53:52] * Pyromanik has joined #silverstripe
809: [18:56:11] * camel_case quit (Read error: Connection reset by peer)
810: [18:56:22] * camel_case has joined #silverstripe
811: [19:00:35] * camel_case quit (Ping timeout: 252 seconds)
812: [19:09:46] * UndefinedOffset has joined #silverstripe
813: [19:13:15] * Liquide has joined #silverstripe
814: [19:25:18] * Shrike_Finland quit (Quit: Leaving.)
815: [20:02:57] * Kingy[a] is now known as Kingy
816: [20:03:33] <Stomach> Zauberfisch, back the way it should be ;)
817: [20:06:50] <Kingy> morning
818: [20:07:33] <Stomach> how do
819: [20:09:10] <Kingy> not bad
820: [20:09:18] <Kingy> pissing down with rain and im working from home
821: [20:09:19] <Kingy> loving it
822: [20:09:26] <Stomach> its stopped raining here
823: [20:09:33] <Stomach> everyone looks mundane again instead of angry
824: [20:10:34] <Kingy> haha
825: [20:10:47] <Kingy> im happy to not have the potential to get wet
826: [20:11:03] <Stomach> no showers for you
827: [20:11:04] <Kingy> walking from train station to work drains you of life in the rain
828: [20:11:08] <Kingy> especially if it's windy
829: [20:11:49] * Stomach quit (Read error: Connection reset by peer)
830: [20:14:09] * UndefinedOffset quit (Quit: Leaving.)
831: [20:14:25] * UndefinedOffset has joined #silverstripe
832: [20:19:00] * UndefinedOffset quit (Ping timeout: 260 seconds)
833: [20:24:38] * Stomach has joined #silverstripe
834: [20:25:20] * oetiker quit (Ping timeout: 260 seconds)
835: [20:26:54] <Stomach> yeah Kingy it sucks when it rains sideways
836: [20:29:28] * oetiker has joined #silverstripe
837: [20:40:00] * nickmolhoek has joined #silverstripe
838: [20:45:16] * gelignite_ has joined #silverstripe
839: [20:53:13] * Stomcch has joined #silverstripe
840: [20:54:22] * Stomach quit (*.net *.split)
841: [20:54:23] * gelignite quit (*.net *.split)
842: [20:54:24] * scpi quit (*.net *.split)
843: [20:54:24] * Ryan-Toast quit (*.net *.split)
844: [20:54:25] * Azure quit (*.net *.split)
845: [20:55:41] * Stomcch is now known as Stomach
846: [21:01:10] * Azure has joined #silverstripe
847: [21:10:45] * catcher quit (Quit: Leaving)
848: [21:11:00] * srikanth has joined #silverstripe
849: [21:11:24] * Ryan-Toast has joined #silverstripe
850: [21:11:24] * scpi has joined #silverstripe
851: [21:23:43] * travis-ci has joined #silverstripe
852: [21:23:43] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#906 (3.1 - 88abf5d : Damian Mooyman): The build passed.
853: [21:23:43] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/3033d454982c...88abf5d93ea5
854: [21:23:43] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/27256195
855: [21:23:43] * travis-ci has left #silverstripe
856: [21:27:20] * travis-ci has joined #silverstripe
857: [21:27:20] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2673 (3.1 - fe597e3 : Damian Mooyman): The build passed.
858: [21:27:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/81e6c806a730...fe597e32b47f
859: [21:27:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/27256914
860: [21:27:20] * travis-ci has left #silverstripe
861: [21:37:29] * scpi quit (Quit: be excellent to each other)
862: [21:42:17] * antmas has joined #silverstripe
863: [21:42:30] <antmas> morning all
864: [21:53:56] * an_Eskimo has joined #silverstripe
865: [22:04:48] * gelignite_ is now known as gelignite
866: [22:07:01] <Kingy> hey antmas
867: [22:11:59] * violet-rpi quit (Ping timeout: 252 seconds)
868: [22:12:58] * Stomach quit (Ping timeout: 240 seconds)
869: [22:13:14] * violet-rpi has joined #silverstripe
870: [22:13:20] * Ryan-Toast quit (Ping timeout: 260 seconds)
871: [22:13:46] * ss23 quit (Ping timeout: 276 seconds)
872: [22:14:30] <Pyromanik> Hey sexies
873: [22:14:52] * Stomach has joined #silverstripe
874: [22:15:04] * ss23 has joined #silverstripe
875: [22:15:57] * gelignite quit (Quit: http://bit.ly/nkczDT)
876: [22:16:11] * Ryan-Toast has joined #silverstripe
877: [22:16:34] * guci0 quit (Ping timeout: 246 seconds)
878: [22:29:32] <Ryan-Toast> fucking lol: https://github.com/juuso/BozoCrack
879: [22:42:22] * zippy__ has joined #silverstripe
880: [22:42:44] <zippy__> morning
881: [22:43:54] <zippy__> This song always reminds me of ss because of the lyic just after here; https://www.youtube.com/watch?v=uJ_1HMAGb4k#t=42
882: [22:48:39] <Stomach> hey zippy__
883: [22:48:44] <zippy__> o/
884: [23:13:54] * jordanmk has joined #silverstripe
885: [23:14:37] <zippy__> pro tip: adding a page php file into the theme/layout folder will not work
886: [23:16:08] * UncleCheese has joined #silverstripe
887: [23:19:14] <Stomach> so pro :D
888: [23:20:46] * UncleCheese quit (Client Quit)
889: [23:20:55] * UncleCheese has joined #silverstripe
890: [23:36:51] <Stomach> anyone ever wanted to become a designer and make the entire internet flat, functional and easy to build?
891: [23:42:37] <zippy__> flat….. someone been looking at latest osx and ios7/8 too much?
892: [23:43:31] <antmas> dat flat
893: [23:43:42] <antmas> " but buttons need to have edges!"
894: [23:44:03] <Stomach> not that sort of flat - flat like all information on one page
895: [23:44:35] <antmas> ewww one page sites?
896: [23:44:49] <zippy__> but splitting up short articles into 5 pages means more ad impressions!!!!
897: [23:45:02] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
898: [23:47:06] <Stomach> I read an article last night which was split onto 11 pages
899: [23:47:11] <Stomach> and by read I mean read the first page then quit
900: [23:47:15] <Stomach> but I really wanted to read it
901: [23:47:19] <Stomach> :(
902: [23:52:11] <zippy__> and the crappist bank in NZ award still goes to… ANZ!
903: [23:52:15] <zippy__> suprised? no.
904: [23:52:36] <zippy__> I think it might be time to vote with my feet
905: [23:54:07] <Kingy> whats wrong with anz?
906: [23:55:04] <zippy__> the thing that pisses me off the most is bank to bank tranfers still take overnight with them
907: [23:55:09] <zippy__> like, shit, get with the times.
908: [23:58:20] <antmas> what's so bad about that?
909: [23:58:48] <zippy__> well… other banks can do it in a couple of hours
910: [23:58:56] <zippy__> you know how useful that is
911: [23:59:09] <zippy__> but something off trademe, pop the money in the account now, shows up in a few hours, item sent the same day
912: [23:59:12] <zippy__> *buy
913: [23:59:26] <antmas> yeah it does suck in that sense
914: [23:59:33] <antmas> what else though?
915: [23:59:41] <antmas> besides transfer times?
916: [23:59:59] <zippy__> transfer money from the biz account to personal, wait another day for that to process

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