#silverstripe IRC Log

IRC log for 23 July 2014

All timestamps are in UTC.

1: [00:00:01] <Colin[pi]> but beginners I spose..
2: [00:00:02] <Stomach> Colin[pi], tractorcow has an opengraph module
3: [00:00:12] <Stomach> https://github.com/tractorcow/silverstripe-opengraph
4: [00:00:15] <MischaK> I like IIS !!
5: [00:00:16] <simon_w|work> Colin[pi], beginners aren't using IIS
6: [00:00:24] <simon_w|work> MischaK, gutted :p
7: [00:00:24] <Colin[pi]> Stomach: mm I saw, I reckon it could be standard, that can be my suggestion :)
8: [00:00:34] <MischaK> devving on it right now
9: [00:00:36] <Colin[pi]> simon_w|work: mm yeah
10: [00:00:49] <Stomach> Colin[pi], not all websites target open graph installs (although our default installation has it included :P)
11: [00:00:50] <MischaK> I'm mainly a .NET guy though
12: [00:00:51] <ss23> MischaK: Brawh, yucky! :P
13: [00:00:51] <irogue_> didn't know anyone actually still used IIS tbh
14: [00:00:59] <ss23> Colin[pi]: Not all of us are as l33t as you! :P
15: [00:01:07] <ss23> We have a few clients on IIS tbh
16: [00:01:09] <Colin[pi]> ss23: rofl
17: [00:01:23] <Colin[pi]> ss23: I'm not l33t, I'm barely even l3 or 3t
18: [00:01:26] <irogue_> ss23: i know, but a lot of them we're trying hard to fix that ;)
19: [00:01:35] <ss23> IT would be nice if you could refactor it so that you install your webserver module, e.g. silverstripe-iis, silverstripe-apache2, silverstripe-nginx, etc
20: [00:01:36] <MischaK> I know they put a lot of work into PHP performance on IIS
21: [00:01:47] <ss23> And if there are any webserver specific hacks, they go there
22: [00:07:36] <MischaK> still would probably be hard to make sure that code is called correctly, if servers spoof there information
23: [00:07:56] * BPower quit (Remote host closed the connection)
24: [00:09:57] <ss23> wow, I just figured out a way to make my server never get overloaded
25: [00:10:12] <simon_w|work> Turn it off?
26: [00:10:22] <ss23> add a "if (uptime() > 1) { die('<meta refresh time=10>'); }
27: [00:10:23] <ss23> :D
28: [00:11:49] <Colin[pi]> wait... how.. is this user voice thing authenticating? I didn't put a password..
29: [00:12:22] <MischaK> probably google / fb logged in
30: [00:13:02] <Stomach> simon_w|work, you get sick of other people talking to you on github so have created another account to code review your own code? :D
31: [00:13:20] <simon_w|work> Stomach, nope
32: [00:13:36] <simon_w|work> Colin[pi], if you haven't set a password, it's entirely on email address
33: [00:13:41] <ss23> hey guis
34: [00:13:41] <ss23> he guis
35: [00:13:42] <ss23> :3
36: [00:13:44] <ss23> willr hey hey
37: [00:13:45] <Colin[pi]> simon_w|work: that's it?
38: [00:13:51] <ss23> Guess who is going to opensource deploynaut this weekend?
39: [00:13:57] <Stomach> oh, damn, was looking forward to the internal conversation
40: [00:14:05] <Stomach> ss23, Sam Minnee?
41: [00:14:14] <ss23> NO
42: [00:14:15] <ss23> :O
43: [00:14:17] <ss23> ME
44: [00:14:21] * ss23 hits Stomach on the head with a spoon
45: [00:14:21] <ss23> meanie
46: [00:15:30] <Stomach> dont forget to lick the spoon!
47: [00:15:38] <Colin[pi]> there is no spoon
48: [00:16:20] <MischaK> So why in silverstripe does changing your locale, change the way money etc is formatted , vs . as seperators etc. ?
49: [00:16:27] <MischaK> same thing with dates
50: [00:16:33] <ss23> MischaK: Because... that's what locale is
51: [00:16:40] <Colin[pi]> MischaK: because different locales use different date formats and currency formats
52: [00:16:59] <MischaK> yeah i mean why isn't that changed when you set your locale ?
53: [00:17:20] <ss23> Hmm
54: [00:17:21] <ss23> Dunno :D
55: [00:17:38] <MischaK> now I had to extend formatters etc to do it
56: [00:17:49] <MischaK> not sure if thats the best way to handle it but it works
57: [00:19:14] <ss23> Sorry, I don't know much about the locale stuff
58: [00:19:22] <Colin[pi]> MischaK: pretty sure it changed dates, but not sure about currency
59: [00:19:50] <ss23> Also, does anyone know why scruitinizer is stupid?
60: [00:19:56] <ss23> You do a PR and it is like "Congratulations, you ran your first inspection on the 3.0 branch. Future inspections show changes here."
61: [00:20:03] <ss23> Pretty sure this isn't the first thing done against 3.0, bro.
62: [00:20:17] <willr> hey hey ss23
63: [00:21:07] <Stomach> ss23, shouldnt https://deploy.cwp.govt.nz/ have a robots.txt on it?
64: [00:21:32] <MischaK> Colin[pi], not the classes i used
65: [00:21:38] <ss23> Stomach: Why for?
66: [00:21:53] <Colin[pi]> MischaK: maybe not, I haven't mucked around with the locale stuff for a while
67: [00:22:06] <Stomach> so that when I search "deploynaut" I get the open source repo, not that site (once its open source)
68: [00:22:25] <ss23> hha
69: [00:23:22] <MischaK> Colin[pi], understandable :)
70: [00:23:36] <ss23> Stomach: that's a poor solution :P
71: [00:24:04] <Stomach> ss23: welcome to my life, where poor solutions reign supreme
72: [00:24:11] <ss23> Hey hey hey!
73: [00:24:17] <ss23> Become the change you wish to see in the world!
74: [00:24:44] <Stomach> how am I ever going to become clean energy
75: [00:24:57] <ss23> I was thinking you would turn into $2
76: [00:24:58] <ss23> But still
77: [00:25:03] <Colin[pi]> how am I ever going to become big tits for everybody
78: [00:25:12] <Stomach> I have $2 in my pocket
79: [00:25:25] <Stomach> its future is as a sausage roll
80: [00:25:41] <ss23> Colin[pi]: Where is the God of tits and wine!
81: [00:33:19] <Colin[pi]> ss23: tied up and gagged in your basement?
82: [00:34:27] <simon_w|work> Colin[pi], might include your name too
83: [00:34:37] <Colin[pi]> simon_w|work: huh?
84: [00:34:40] <simon_w|work> But you should probably set a password
85: [00:34:42] <simon_w|work> (uservoice)
86: [00:34:44] <Colin[pi]> simon_w|work: I did
87: [00:35:19] <Colin[pi]> just seems really weird it doesn't make it mandatory
88: [00:36:44] <simon_w|work> It's useful for its purpose (a much lower barrier to entry)
89: [00:38:10] <MischaK> doenst really seem like much of a security risk
90: [00:38:25] <MischaK> and I can't spell
91: [00:38:33] <MischaK> or type
92: [00:39:11] <spronk> i wonder whether my coins aspire to become items of food
93: [00:39:24] <spronk> $1: "I CAN DO THIS. I CAN BE. THAT CHEAP PIE."
94: [00:39:27] <ss23> XD
95: [00:39:31] <ss23> $1 pie aye? That *is* cheap
96: [00:39:48] <ss23> I would expect "WITH ME ($1) AND YOU, MR 50c, WE CAN BECOME THE PIE!"
97: [00:40:03] <spronk> "Fuck 2003. He's not going to get to be the pie today. THATS ME, 2002 MINTED! MOTHERFUCKERS!"
98: [00:40:12] <ss23> XD
99: [00:40:30] <spronk> and then
100: [00:40:43] <simon_w|work> Whereas my 2012 minted $5 coin can get all up itself
101: [00:40:50] <spronk> "Oh my god. What the fuck is this shit. My hopes and dreams are crushed. $4.50 for the fucking Steak Mince & Cheese!?"
102: [00:41:01] <ss23> haha
103: [00:41:03] <spronk> "I'M JUST NOT BIG ENOUGH"
104: [00:41:18] <ss23> Followed by "WAIT, NO, I CAN'T FORGET ABOUT M FRIENDS"
105: [00:41:22] <ss23> "together, we can buy anything"
106: [00:41:25] * Kingy^ is now known as Kingy[a]
107: [00:41:35] <ss23> "I'M SORRY MR 2003! COME BACK, WE CAN DO IT IF WE WORK TOGETHER"
108: [00:41:48] <UncleCheese> i just had a RFP come in for an ecommerce site
109: [00:41:58] <ss23> shiiiit, that'd totally make a good cartoon
110: [00:41:59] <UncleCheese> "Tell me a bit about what you want, and we can explore a fit."
111: [00:42:06] <Colin[pi]> you know the biggest insult when buying a pie? The 20c tomato sauce packets
112: [00:42:08] <ss23> UncleCheese: o.o
113: [00:42:10] <spronk> "Superb" - Cannes Film Festival Review on "A day in the life of a $1 coin minted in 2002" (2014)
114: [00:42:12] <UncleCheese> snds me a link to another site
115: [00:42:17] <UncleCheese> "this, with less buttons."
116: [00:42:23] <ss23> haha
117: [00:42:36] <simon_w|work> ss23, sorry, but coins can't buy anything :p
118: [00:42:55] <spronk> they can't buy ss23 love
119: [00:43:02] <spronk> he'll need notes for that, and probably lots of them :P
120: [00:43:39] <simon_w|work> Until we get $10 coins that is
121: [00:43:44] <simon_w|work> (by we, I mean NZ)
122: [00:44:02] <spronk> simon_w, you're not one of us anymore.
123: [00:44:04] <spronk> You don't get to say we
124: [00:44:05] <spronk> :P
125: [00:44:22] <simon_w|work> spronk, say that to my legal tender $5 coin! :p
126: [00:44:26] <MischaK> what do pie and tomato sauce packets have to do with each other?
127: [00:44:29] * Kingy[a] is now known as Kingy
128: [00:44:55] <Colin[pi]> MischaK: gotta have tomato sauce with pie! pie without tomato sauce is not pie!
129: [00:45:08] <spronk> unless it's a chicken puie
130: [00:45:15] <spronk> or something fancy like steak curry and rice
131: [00:45:17] <Colin[pi]> DROWN THAT FUCKER IN SAUCE TOO
132: [00:45:20] <spronk> yeesh
133: [00:45:30] <Colin[pi]> well, meat pie then :P
134: [00:45:36] <simon_w|work> Colin[pi], YOU FAIL AT PIE
135: [00:45:41] <spronk> you're a twisted individual, Colin[pi] :D
136: [00:45:42] <Colin[pi]> simon_w|work: NU Uh
137: [00:45:46] <Cheddam> I saw Colin[pi]'s message without the context and I was scared for a second
138: [00:45:51] <Colin[pi]> spronk: you're only just figuring that out now?
139: [00:45:57] <spronk> hahaha
140: [00:46:11] <MischaK> Colin[pi],I'm European I'm afraid I dont understand :)
141: [00:46:21] <Colin[pi]> MischaK: don't worry, neither do I
142: [00:46:53] <simon_w|work> MischaK, Colin[pi] is violating pies
143: [00:47:04] <Colin[pi]> simon_w|work: like warrrrrm apple pie
144: [00:47:25] <MischaK> ahh * wink wink nudge nudge * I know what you mean
145: [00:47:39] <Colin[pi]> simon_w|work: like you don't
146: [00:47:51] <simon_w|work> Colin[pi], no sauce on my pies
147: [00:47:56] <Colin[pi]> simon_w|work: pffy
148: [00:47:57] <Colin[pi]> *t
149: [00:48:05] <Colin[pi]> you have a meat pie with no sauce?
150: [00:48:14] <simon_w|work> Yes
151: [00:48:17] <Colin[pi]> YOU.. MONSTER
152: [00:48:18] <simon_w|work> Like they're meant to be
153: [00:48:58] <ss23> I have no sauce too
154: [00:48:59] <ss23> ^.^
155: [00:49:08] <Colin[pi]> you crazy nu zuhlunders
156: [00:49:42] * jenniferaslan quit (Quit: jenniferaslan has left the room)
157: [00:51:25] <spronk> tomato sauce on anything that's plain or with cheese: steak, mince
158: [00:51:29] <spronk> anything else, nah
159: [00:59:36] <Ryan-Toast> Tomato sauce is a must for pies.
160: [01:20:53] <Olliepop> Anyone going wordcamp this weekend?
161: [01:21:21] <Olliepop> this is #wordpress right?
162: [01:22:16] <ss23> WOW
163: [01:22:21] <ss23> /kick Olliepop
164: [01:22:24] <ss23> 13:22:22 -!- #silverstripe You're not a channel operator
165: [01:22:25] <ss23> so lucky.
166: [01:23:14] <Ryan-Toast> Wordcamp: http://i.imgur.com/ihyu0.jpg
167: [01:23:30] <Olliepop> haha
168: [01:24:20] * Tanger has joined #silverstripe
169: [01:25:20] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
170: [01:26:17] <irogue_> dat facial expression
171: [01:27:42] <irogue_> also, I also don't sauce my pie
172: [01:28:01] <irogue_> tho I do often add more cheese
173: [01:31:20] * travis-ci has joined #silverstripe
174: [01:31:20] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2928 (master - 76eb3db : Simon Welsh): The build was fixed.
175: [01:31:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/2a76be490d14...76eb3dbfa657
176: [01:31:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/30609976
177: [01:31:20] * travis-ci has left #silverstripe
178: [01:31:34] * simon_w|work fixed, bitches!
179: [01:34:21] * UncleCheese has joined #silverstripe
180: [01:35:22] <ss23> l33thax
181: [01:35:22] <ss23> :D
182: [01:35:30] <ss23> simon_w|work: I see you opened a feature request on the bug tracker
183: [01:35:31] <ss23> :3
184: [01:36:01] <simon_w|work> You mean that bug with the token parsing I filed?
185: [01:36:21] <ss23> That bug that doesn't affect any supported versions, yeah
186: [01:36:36] <ss23> Adding support for currently unsupported software/versions of things
187: [01:37:52] * Kingy is now known as Kingy[a]
188: [01:41:36] <simon_w|work> I need to check, but I'm fairly sure PHP 5.6 syntax breaks as well
189: [01:49:56] <UncleCheese> CONING!!!!!!
190: [01:51:21] <simon_w|work> You're putting a cone on your head?
191: [01:51:41] <UncleCheese> [13:23:15] <Ryan-Toast> Wordcamp: http://i.imgur.com/ihyu0.jpg
192: [01:51:59] <Ryan-Toast> UncleCheese: :P
193: [01:52:12] <UncleCheese> it's called coning... one more reason Americans are the smartest people on the planet
194: [01:52:32] <Ryan-Toast> UncleCheese: There’s a video where the manager shuts someone down, let me find it.
195: [01:52:42] <UncleCheese> yeah, i think i've seen that
196: [01:52:45] <UncleCheese> so confusing
197: [01:52:54] <UncleCheese> like... what's it to you, man?
198: [01:53:07] <Ryan-Toast> UncleCheese: “I have to clean it up, asshole"
199: [01:53:23] <UncleCheese> oh, then that's just poor execution on the coner's part
200: [01:54:00] <Ryan-Toast> He says something along the lines of: This was popular a month ago, you’re not only stupid, but you’re late to the stupid party"
201: [01:54:17] <Ryan-Toast> made me laugh.
202: [01:58:20] * Kingy[a] is now known as Kingy
203: [01:59:05] * Kingy is now known as Kingy[a]
204: [01:59:24] <simon_w|work> 315 MB cachegrind file and it's still going...
205: [02:00:51] <Colin[pi]> simon_w|work: what u profiling?
206: [02:01:05] <simon_w|work> Colin[pi], this page I'm going to try switching to Twig
207: [02:13:17] * jghazally has joined #silverstripe
208: [02:14:47] <Ryan-Toast> autoprefixer is sooooo good. mmmmm https://github.com/nDmitry/grunt-autoprefixer
209: [02:21:17] <MischaK> I'll be back
210: [02:22:16] <simon_w|work> OR WILL HE?
211: [02:22:18] <simon_w|work> DUN DUN DUN
212: [02:23:11] <Stomach> Ryan-Toast, vendors and prefixes are so annoying
213: [02:23:25] <Ryan-Toast> Stomach: Not any more :)
214: [02:23:52] <Stomach> woah github commit log layout has changed
215: [02:37:55] * Tanger quit (Quit: Tanger)
216: [02:41:06] <irogue_> fuck composer
217: [02:42:17] <simon_w|work> Pretty much
218: [02:42:29] <spronk> hmm?
219: [02:42:43] <spronk> composer is pretty decent compared to some other tools, tbh
220: [02:42:49] <irogue_> oh, i know
221: [02:42:51] <spronk> npm is fucking horrible :P
222: [02:42:53] <irogue_> doesn't mean it's *good* tho
223: [02:43:08] <irogue_> running into the issue at the moment where it ignores hash locking when doing --dev
224: [02:43:13] <spronk> bleh
225: [02:43:37] <irogue_> --no-dev it pays attention to the dev-master#xyz, --dev it ignores the #xyz and just grabs latest dev-master
226: [02:43:42] <irogue_> cos, y'know, consistency
227: [02:51:10] <Stomach> just download the zip and commit it to VCS
228: [02:51:12] <Stomach> :D
229: [02:51:21] * Stomach has been doing that way too much lately
230: [02:53:51] <irogue_> Stomach: yep, about to do that
231: [02:53:55] <irogue_> Installation request for silverstripe/sqlite3 dev-master#0bd9ef290477afa6acbf1900236e8a05f0b5699a -> satisfiable by silverstripe/sqlite3[dev-master]
232: [02:53:55] <irogue_> NO
233: [02:53:57] <irogue_> NO IT IS NOT
234: [02:56:08] <Stomach> :\
235: [02:56:12] <Stomach> sometimes composer is great
236: [02:56:16] <Stomach> then you need to change something
237: [02:56:21] <Stomach> or work fast
238: [02:56:24] <Stomach> or not cry so much
239: [02:56:32] <Stomach> ;(
240: [03:00:31] <simon_w|work> or not want to murder someone
241: [03:05:25] <Ryan-Toast> Stomach: finally started my css framework
242: [03:06:05] <Ryan-Toast> Going to use the twbs prefixes, because I’m used to them.
243: [03:14:03] * Tanger has joined #silverstripe
244: [03:14:15] <Stomach> Ryan-Toast, YACF ?
245: [03:14:25] <Ryan-Toast> YACF?
246: [03:14:34] <Stomach> yet another css framework
247: [03:15:04] <Ryan-Toast> you betcha
248: [03:15:22] <Ryan-Toast> will be keeping it less than 20kb
249: [03:15:31] <Stomach> simon_w|work, I usually want to murder someone even when not using composer
250: [03:15:35] <Stomach> Ryan-Toast, glhf :P
251: [03:16:48] <sunzofma1> greetz
252: [03:17:25] * sunzofma1 is now known as sunzofman1
253: [03:20:51] <irogue_> Stomach: same
254: [03:25:48] <sunzofman1> anyone have experience running silverstripe 2.4 in php 5.3.27 or php 5.4.20?
255: [03:27:39] <sunzofman1> ss instance installed on dreamhost, recently experienced regression due to dreamhost php upgrade. don't have access to cpanel, but can run php(cli).
256: [03:28:37] * CodeTrap quit (Ping timeout: 245 seconds)
257: [03:29:01] <sunzofman1> error -> Fatal error: 'continue' operator with non-constant operand is no longer supported - sapphire/core/ManifestBuilder.php
258: [03:30:05] <sunzofman1> the ss instance is fairly customized, not able to upgrade to 3.x.
259: [03:31:05] * CodeTrap has joined #silverstripe
260: [03:31:34] * Olliepop quit (Ping timeout: 246 seconds)
261: [03:41:46] * cloph_away has joined #silverstripe
262: [03:41:57] * cloph quit (Ping timeout: 245 seconds)
263: [03:47:55] * Stomach has left #silverstripe
264: [03:48:03] * Stomach has joined #silverstripe
265: [03:50:46] * nickmolhoek quit (Quit: nickmolhoek)
266: [03:51:22] <irogue_> sunzofman1: 5.3.x should be fine with the latest 2.4.x
267: [03:51:41] <irogue_> 5.4 possibly not so much
268: [03:59:38] <ss23> 5.4 is fine
269: [03:59:44] <ss23> I run 5.6 I think with 2.4
270: [03:59:55] <ss23> Yeah, 5.6.0RC2
271: [04:00:24] <irogue_> sweet
272: [04:00:36] <irogue_> so yeah, sunzofman1, just make sure you're running the last tagged 2.4.x
273: [04:00:44] <irogue_> which I think from memory is 2.4.13
274: [04:01:21] <Colin[pi]> irogue_: correct
275: [04:02:33] * Bollig|DesignCty has joined #silverstripe
276: [04:02:39] <Bollig|DesignCty> yo peeps
277: [04:02:52] <Bollig|DesignCty> Is there an extension point for $flush so I can run some specific tasks?
278: [04:03:15] <ss23> Doubtful
279: [04:03:18] <sunzofman1> irogue_:is there a CLI script that I could run to upgrade to 2.4.13? for whatever reason dreamhost upgraded and caused the breakage that I described earlier.
280: [04:03:18] <ss23> Could be handy to have one though!
281: [04:03:28] <Bollig|DesignCty> ss23: I think so! :D
282: [04:03:33] <ss23> Bollig|DesignCty: Might not be possible though since request might not be completely spun up at that point
283: [04:03:44] * jghazally quit (Read error: Connection reset by peer)
284: [04:03:51] <ss23> fatal error -> try flushing -> hits extension point -> loads extensions -> fatal error -> try flushing...
285: [04:04:39] <Colin[pi]> mm flushing happens at a fairly low level, so any tasks would prolly also need to be bottom feeder tasks as well
286: [04:08:17] <Colin[pi]> scumbag gateway... releases new version of API... API is totally different to last version
287: [04:08:35] <Colin[pi]> to be fair it did go up by a major version number ;P
288: [04:08:45] * Tanger quit (Quit: Tanger)
289: [04:09:03] <simon_w|work> Colin[pi], sounds like Twitter! Except they went to 1.1
290: [04:09:04] <Bollig|DesignCty> we’re trying to cache some complex config on individual pages rather than running a bunch of database checks each page load in the cms. Can’t see another option other than checking the manifest age each CMS page load :(
291: [04:09:17] <Colin[pi]> simon_w|work: yes that was painful
292: [04:09:29] <Bollig|DesignCty> simon_w|work: halp! :D
293: [04:09:43] <simon_w|work> Bollig|DesignCty, if (isset($_GET['flush']))
294: [04:10:03] <Bollig|DesignCty> lol, we had throught of that :D
295: [04:10:13] <simon_w|work> Assuming you're on a version with the flushtoken stuff, it's only still set if you're allowed to flush
296: [04:10:26] <Bollig|DesignCty> I thought it looked aweful and hacky :D
297: [04:10:34] <Bollig|DesignCty> oh, right. yeah, makes sense...
298: [04:10:39] <simon_w|work> So's the entire flush system :p
299: [04:12:21] <Bollig|DesignCty> hmmm. So, checking it on Page init, or also build task, leftandmain init etc?
300: [04:12:37] <simon_w|work> _config.php
301: [04:13:15] <simon_w|work> https://git.simon.geek.nz/simon_w/trait-loader/blob/master/_config.php
302: [04:17:00] * Bollig|DesignCty hugs simon_w|work !
303: [04:19:10] * simon_w|work pokes Selenium some more!
304: [04:21:40] <simon_w|work> POKE POKE RUN FASTERER
305: [04:23:13] * firefox2kx has joined #silverstripe
306: [04:28:03] <Colin[pi]> the level of hugging and poking is too damn high
307: [04:30:30] * Tanger has joined #silverstripe
308: [04:30:44] * Bollig|DesignCty hugs Colin[pi]
309: [04:31:14] * Colin[pi] pokes Bollig|DesignCty
310: [04:31:25] * Bollig|DesignCty is poked!
311: [04:31:48] * irogue_ pokes Colin[pi] while hugging him
312: [04:32:09] * simon_w|work doesn't want to know what irogue_ is poking with
313: [04:32:28] <irogue_> ;)
314: [04:32:47] * Colin[pi] throws an exception
315: [04:33:15] * Bollig|DesignCty throws a hissy-fit
316: [04:33:55] * simon_w|work catches a cold
317: [04:37:04] <simon_w|work> (you won't believe what he did next!)
318: [04:39:41] <spronk> wtf
319: [04:40:35] <simon_w|work> http://logs.simon.geek.nz/stats.php#smarty
320: [04:41:28] * mirrors has joined #silverstripe
321: [04:42:24] <Ryan-Toast> Dammit, Pyro. Y U the top of all profanity lists? Fuck, Cunt; Shit, Wordpress.
322: [04:42:36] * simon_w|work has the most bitches!
323: [04:43:02] <Ryan-Toast> Penis is an interesting stat.
324: [04:43:03] <mirrors> Hi there. Can anyone tell me if its possible to stop deleting a dataobject once the delete function has been called...i.e add logic to the onBeforeDelete function
325: [04:43:20] <Ryan-Toast> ss23: anything you’d like to tell us?
326: [04:43:23] <simon_w|work> mirrors, throw an exception
327: [04:43:50] <simon_w|work> Ryan-Toast, http://logs.simon.geek.nz/index.php?date=2013-11-07#log_1109713
328: [04:44:03] <Ryan-Toast> simon_w|work: rofl
329: [04:45:05] <UncleCheese> idempotency!
330: [04:46:39] <simon_w|work> All greeeeeeeen!
331: [04:50:01] <ss23> Ryan-Toast: ? o.O
332: [04:50:03] <ss23> I don't think so?
333: [04:51:40] <spronk> man
334: [04:51:59] <spronk> i definitely am the worst offender for fucks per line
335: [04:52:37] <simon_w|work> Ooh, swears per line. That could be interesting.
336: [04:52:53] <spronk> 3.7% of my lines have fuck on them lol
337: [04:53:16] <spronk> vs only 1.7% for ss23, and <1% for pyro
338: [04:54:46] * mobiusnz quit (Quit: Leaving.)
339: [04:55:48] <spronk> shocking
340: [04:55:55] * spronk should clean up his act :p
341: [04:57:31] <ss23> lol
342: [04:57:36] <ss23> subsites
343: [04:58:28] <spronk> accounts for almost 1% of my lines
344: [04:58:31] <spronk> werps
345: [04:59:09] <spronk> also, ajshort and firefox o_O
346: [04:59:38] <spronk> 7.5% of his speech mentions firefox
347: [04:59:49] <irogue_> jebus
348: [05:00:51] <Colin[pi]> spronk: lol I noticed that too
349: [05:03:55] <spronk> CONSPIRACY!
350: [05:04:10] <spronk> ugh. i am getting nowhere with this code..
351: [05:05:00] <simon_w|work> It's because it's not subsites
352: [05:05:21] <spronk> heh
353: [05:05:23] <spronk> yeah.....
354: [05:05:26] <spronk> its node.js!
355: [05:05:56] <spronk> though i'm close to the point of scrapping that part entirely and porting it to something less munted
356: [05:06:08] <Colin[pi]> node.js
357: [05:06:09] <Colin[pi]> srsly
358: [05:06:13] <Colin[pi]> I just dont get it
359: [05:06:15] <Colin[pi]> I'm too old
360: [05:06:16] <Colin[pi]> :P
361: [05:06:32] <spronk> there are parts of node.js that I really like
362: [05:06:45] * willr quit (Quit: willr)
363: [05:06:46] <Blacklite> imo node is really best for doing sockets and stuff like that
364: [05:06:53] <irogue_> HOMETIEM
365: [05:06:55] <Blacklite> anything that needs to constantly update
366: [05:06:57] <spronk> and there's one part that no matter how much i try to not absolutely hate it, I just come back to hating it with the burning passion of 10000 suns. And that's JavaScript.
367: [05:06:57] <irogue_> gettin' my shower fixed tonight
368: [05:06:59] <Blacklite> wtf who ends at 5pm
369: [05:07:30] <spronk> even really basic stuff, like the ability to have a hash data structure
370: [05:07:40] <spronk> you can sorta use an object as one, but it's not quite that simple
371: [05:08:25] <spronk> the more i use it the more I think prototypal inheritance is a bad idea
372: [05:08:37] <irogue_> Blacklite: why the hell not :P
373: [05:08:44] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
374: [05:08:44] <irogue_> sometimes I finish at 5, sometimes I finish at 6
375: [05:09:24] <irogue_> it's like... if I've finished one ticket at 5pm, and the next ticket is going to take more than 30 minutes, no real point starting it
376: [05:09:51] <Colin[pi]> meanwhile, I'm doing online support chat with the payment gateway because it NO WORKY
377: [05:10:16] * mirrors quit (Ping timeout: 246 seconds)
378: [05:10:34] <Blacklite> the last 3 jobs i've had have ended at 5:30
379: [05:11:13] <Colin[pi]> that early?
380: [05:11:48] <Blacklite> always wanted to try the whole 4-day week
381: [05:12:12] <Blacklite> 10 hours per day
382: [05:12:20] <Blacklite> then 3-day weekends
383: [05:12:36] <Blacklite> or maybe even 3-day weeks with 10 hours per day
384: [05:12:44] <Blacklite> or maybe just 1-day weeks with 4 hours per day
385: [05:12:48] <Blacklite> yes i could live with that
386: [05:13:32] * travis-ci has joined #silverstripe
387: [05:13:32] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#956 (3.1 - 5107b08 : Stig Lindqvist): The build passed.
388: [05:13:32] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/a1286f1c0f86...5107b08ac145
389: [05:13:32] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/30428171
390: [05:13:32] * travis-ci has left #silverstripe
391: [05:13:44] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
392: [05:20:03] * mobiusnz has joined #silverstripe
393: [05:22:17] * Ryan-Toast quit (Quit: Ryan-Toast)
394: [05:28:43] * Cheddam quit (Quit: My Mac Mini has gone to sleep. ZZZzzz…)
395: [05:35:50] <mobiusnz> simon_w|work: I like your passwords
396: [05:36:27] <simon_w|work> pass?
397: [05:36:33] <mobiusnz> http://logs.simon.geek.nz/source/funcs.php <— line 31
398: [05:37:53] * Ryan-Toast has joined #silverstripe
399: [05:38:00] <ss23> tbh I don't bother with passwords on my stuff running on localhost
400: [05:39:39] <mobiusnz> is logs.simon.geek.nz localhost? :)
401: [05:44:48] <ss23> Yeah, I mean
402: [05:44:56] <ss23> From that scripts own perspective it is :P
403: [05:53:19] * caamic30 has joined #silverstripe
404: [05:53:39] <caamic30> hello SS!
405: [05:55:09] <caamic30> I have dataobjects, Products & Categories. I need to get products based on categories
406: [05:56:01] <caamic30> i.e I selected categories ‘Gadgets’ & ‘Computers’
407: [05:56:29] <caamic30> the result is it will show all products that has a category of Gadgets & Computers
408: [05:57:03] <simon_w|work> caamic30, Product::get()->filter('Categories.Name', 'Gadgets')->filter('Categories.Name', 'Computers') will probably do it
409: [06:00:10] <caamic30> I’ll give this a try. Thanks so much simon_w
410: [06:01:26] * Liquide quit ()
411: [06:08:13] * Ryan-Toast quit (Quit: Ryan-Toast)
412: [06:10:19] <caamic30> simon_w|work: does not work. is this applicable for many_many & belongs_many_many relation?
413: [06:10:55] <caamic30> actually instead of passing the name I passed the ids
414: [06:11:35] <caamic30> Product::get()->filter(‘Categories.ID’, 41)->filter('Categories.ID’, 26);
415: [06:17:18] <simon_w|work> Well, that makes it more difficult
416: [06:17:52] <simon_w|work> Would be a lot easier if you just wanted Gadgets or Computers ;)
417: [06:20:09] * firefox2kx quit (Read error: Connection reset by peer)
418: [06:20:23] * firefox2kx has joined #silverstripe
419: [06:24:26] <caamic30> simon_w|work: my bad it should be Gadgets ‘and’ Computers not ‘or’
420: [06:24:48] <simon_w|work> caamic30, $ids = array_intersect(Category::get()->byId(41)->Products()->column('ID'), Category::get()->byId(26)->Products()->column('ID')); Product::get()->byIDs($ids);
421: [06:24:57] <simon_w|work> caamic30, I know. If it was or, it'd be a lot easier
422: [06:30:00] <caamic30> simon_w|work: this one works like a charm. many many thanks !
423: [06:42:41] * firefox2kx has joined #silverstripe
424: [06:42:41] * firefox2kx quit (Client Quit)
425: [06:42:56] * firefox2kx has joined #silverstripe
426: [07:35:49] * willr has joined #silverstripe
427: [07:45:07] * stnvh has joined #silverstripe
428: [07:45:49] * zfmf has joined #silverstripe
429: [07:47:13] * zfmf has left #silverstripe
430: [07:50:59] * fdrechsler has joined #silverstripe
431: [07:55:44] * kinglozzer has joined #silverstripe
432: [08:04:20] * Pywook has joined #silverstripe
433: [08:09:29] * ocm has joined #silverstripe
434: [08:09:42] <ocm> g'day!
435: [08:09:52] <Pywook> gidday!
436: [08:14:12] * simon_w has joined #silverstripe
437: [08:15:16] * caamic30 quit (Ping timeout: 240 seconds)
438: [08:16:02] <ocm> http://framework.zend.com/manual/1.12/en/zend.date.constants.html :( anyone has a list of all zenddate constants perhaps?
439: [08:16:13] <Pywook> ocm: wha?
440: [08:16:22] <ocm> the link doesn't work anymore
441: [08:16:35] <ocm> 1.10 does seem to work however I just noticed
442: [08:16:51] <ocm> hm, and so does 1.11
443: [08:16:56] <Pywook> just read them
444: [08:17:07] <ocm> I am
445: [08:17:34] <ocm> should I change the link in the docs for datefield? Might confuse people like me who are too lazy to google for an working link
446: [08:18:41] <Pywook> oic
447: [08:18:42] <Pywook> umm
448: [08:18:46] * Pywook shurgs
449: [08:18:54] <Pywook> just read the source :P
450: [08:19:26] <ocm> haha
451: [08:19:32] <ocm> didn't have coffee yet
452: [08:19:35] <ocm> so that's a nope
453: [08:20:09] <Pywook> grep const zend/dickfields
454: [08:20:32] <ocm> dickfields, hm?
455: [08:20:55] <ocm> is that like a strawberryfield, though full of dicks?
456: [08:21:15] <Pywook> quite possibly.
457: [08:21:22] <Pywook> dunno what a strawberryfield is
458: [08:21:34] <ocm> strawberryfields are forever! :D
459: [08:21:36] <Pywook> ah shit, vagrant wants restart
460: [08:21:43] <Pywook> ocm: so I hear.
461: [08:21:48] * Pywook quit (Quit: Page closed)
462: [08:32:04] * Pywook has joined #silverstripe
463: [08:32:47] <kinglozzer> Damn, restart? That's so 2011
464: [08:33:24] <Pywook> kinglozzer: yeh IKR winderps.
465: [08:33:47] <Pywook> the best thing is when software says @you need to restart@ and you don't and it still works just fine.
466: [08:34:07] <Pywook> because it's a real 95 and maybe xp thing, but hasn't really been necessary for a while now.
467: [08:34:43] <Pywook> but apps that chagne certain things still require it. I'm never sure if the message is coming from windows because it needs it or from the installer itself because dev who made it thought it'd be a good idea.
468: [08:34:59] <Pywook> seems vagrant is one of those apps.
469: [08:37:20] <kinglozzer> Heh, yeah it was just one of those things... every time you installed anything, boom needs a restart
470: [08:37:38] * markcl quit (Quit: Leaving.)
471: [08:37:47] <kinglozzer> Most devs just probably assumed it was best practice as that's "how it's always done"
472: [08:38:13] <Pywook> kinglozzer: it is kinda like dev/build?flush=all , latter part does nothing but many devs seem to think that it's a great idea anyway.
473: [08:38:38] <kinglozzer> Haha yeah
474: [08:39:12] <Pywook> where as only apps that required modules to be loaded at OS level (during boot) required it. When XP came along often just logging out and logging back in was enough, if at all needed.
475: [08:39:45] <Pywook> these days I think windows is reasonably capable of updating most shit on the fly.
476: [08:49:46] <ocm> most shit, not all
477: [08:51:04] * Cheddam has joined #silverstripe
478: [08:52:20] <guzzlefry> I've heard restarting is also how you fix computers.
479: [08:54:23] <Pywook> ocm: yes, true. but vagrant? I dunno. Skeptical.
480: [08:54:45] <Pywook> guzzlefry: it is! that or standing behind someone while they try to show you what's not working.
481: [08:55:08] <guzzlefry> hah
482: [09:00:16] <Pywook> http://docs.vagrantup.com/v2/getting-started/up.html
483: [09:00:24] <Pywook> "It is time to boot your first Vagrant environment. Run the following: $ vagrant up In less than a minute, this command will finish and you'll have a virtual machine running"
484: [09:00:27] <Pywook> hahahahah NOPE
485: [09:00:38] <Pywook> ran vagrant up last night, 10 minutes later I went to bed and left it going.
486: [09:00:54] <Pywook> lol, fuck'n liars.
487: [09:01:01] <Pywook> trust ruby believers.
488: [09:01:04] <Pywook> NOT
489: [09:03:12] * Bollig|DesignCty quit (Ping timeout: 245 seconds)
490: [09:03:30] * Tanger quit (Quit: Tanger)
491: [09:06:18] * UncleCheese has joined #silverstripe
492: [09:08:08] * UncleChe_ has joined #silverstripe
493: [09:15:06] * UncleChe_ quit (Ping timeout: 260 seconds)
494: [09:16:53] * caamic30 has joined #silverstripe
495: [09:17:43] <Cheddam> logged into a fresh VPS. Suggestions for fun tools / servers to experiment with? Thought of setting up a mail server
496: [09:19:11] <ss23> metasploit + fierce + slowloris
497: [09:19:12] <ss23> :3
498: [09:20:58] <Cheddam> something less dodge? xD
499: [09:21:38] <ss23> vim!
500: [09:21:38] <ss23> :D
501: [09:22:40] <Cheddam> Bahaha, I'm reasonably confident with vim ;)
502: [09:24:36] <simon_w> Cheddam, mirror red tube!
503: [09:24:46] * spronk2 has joined #silverstripe
504: [09:24:58] <Cheddam> O___________________________O
505: [09:28:14] <Cheddam> simon_w I think it only has 20GB of storage so that's not going to work too well :P
506: [09:28:47] <Cheddam> Perhaps a proxy server
507: [09:29:02] * willagain has joined #silverstripe
508: [09:29:23] <willagain> hello, I've got an odd error that has just cropped up, preventing admin area from working correctly
509: [09:29:29] <willagain> ReflectionException: Class Raven does not exist (http://baptistcare.org.au/admin/pages/edit/EditForm/field/Populars/item/17/ItemEditForm/field/Image/upload)
510: [09:30:18] <willagain> Error at framework/control/injector/InjectionCreator.php line 14: Uncaught ReflectionException: Class Raven does not exist
511: [09:31:00] <Pywook> Cheddam: chmod 777 /
512: [09:31:16] <Pywook> Cheddam: chmod -R 777 /
513: [09:31:19] <willagain> any clues whats causing that?
514: [09:31:31] <Pywook> yes willagain
515: [09:31:34] <Pywook> it says right there.
516: [09:31:43] <Pywook> did you read the first line?
517: [09:31:50] <Pywook> "Class Raven does not exist"
518: [09:32:06] <willagain> yeah, but who is asking for class raven?
519: [09:32:12] <Pywook> You are!
520: [09:32:18] <willagain> nope, im not.
521: [09:32:45] <Pywook> well, read the stack trace.
522: [09:32:57] <Pywook> I'll guarantee it's you though.
523: [09:33:16] <willagain> so somewhere in the framework or a plugin, thats a dependency. which is awesome. no stack trace, its just loggging that line to the ss.log
524: [09:33:25] <Pywook> or you're very unfortunate and it's an extremely poorly coded module.
525: [09:33:38] <Pywook> willagain: well then put the site in dev mode.
526: [09:33:48] <Pywook> also, dev/build and see if it goes away
527: [09:33:57] <willagain> yep i've dev/build
528: [09:34:05] <willagain> ill try dev mode.
529: [09:34:06] <willagain> ta
530: [09:34:20] <Pywook> that's what dev mode is for!
531: [09:34:23] <Pywook> :>
532: [09:36:42] <willagain> nervous doing that to the live site though, but of course the error didn't happen to staging or local
533: [09:37:08] <Pywook> you're not uploading something like Raven.jpg are you?
534: [09:37:53] <willagain> no
535: [09:38:03] <willagain> and i've seen this before with zen_fields
536: [09:38:10] <willagain> only i don't have zen_fields installed
537: [09:38:17] <Pywook> then try grep -rin raven .
538: [09:38:21] <Pywook> from silverstripe root
539: [09:39:16] <Pywook> grep -rinm1 raven .
540: [09:40:21] <willagain> rinm1 ?
541: [09:41:18] <Pywook> yes
542: [09:41:23] <Pywook> with a - in front
543: [09:42:13] <Pywook> grep -rinm1 raven ssinstallroot/
544: [09:42:20] <Pywook> grep -rinm1 raven ssinstallroot/*
545: [09:42:24] <Pywook> idk, one of them.
546: [09:46:30] <kinglozzer> willagain: Raven is an error logging thing, right? You got any logger modules installed?
547: [09:47:23] <willagain> kinglozer: yeah, its a php client for a saas - sentry
548: [09:47:28] <willagain> but no
549: [09:47:54] <willagain> i only know that from when zen_fields had some trouble with it and i googled wtf is this?
550: [09:49:17] <Pywook> so willagain, grep turned up nothing?
551: [09:51:30] <willagain> yep, and i think i been giving zen fields an unfair rap
552: [09:52:16] <willagain> its the optomiszed images plugin
553: [09:52:46] <willagain> thanks for the grep tip. I never really got the hang of grep before
554: [09:53:23] <willagain> ended up doing - grep -r 'Raven' *.*
555: [09:58:03] <willagain> this was throwing out the silverstripe image interface in the admin. but its still quite funky. searching doesn't find files, but if i try n upload them it says filename already exists.
556: [09:59:00] * willr quit (Quit: willr)
557: [10:01:53] <Pywook> grep is simply preg_match($regex, $file)
558: [10:02:37] <Pywook> options r recursive, i case insensitive, n show line number, m1 is m for max (limit per file), 1 is setting that limit.
559: [10:04:04] <Pywook> grep -rinm1 "rav[ei]ng?" birdorparty.txt
560: [10:04:07] <willagain> ill play with those a bit tomorrow. ta. it just hung for some reason with those options.
561: [10:04:23] <Pywook> it didn't hang, there are a lot of files to check.
562: [10:04:36] <Pywook> don't be so impatient! :P
563: [10:04:43] <willagain> right, but grep -r *.* found them straight away.
564: [10:05:08] <Pywook> grep -r *.* is a nothing.
565: [10:05:24] <willagain> oh right - grep -r 'Raven' *.*
566: [10:05:50] <Pywook> odd. oh well.
567: [10:06:12] <Pywook> whereever that class is named is your issue.
568: [10:06:44] <Pywook> find -name _manifest_exclude
569: [10:06:54] <Pywook> see if that's in the folder where Raven is.
570: [10:11:02] <willagain> https://github.com/heyday/silverstripe-optimisedimage/blob/1.0.0/code/OptimisedGDBackend.php
571: [10:11:13] <willagain> i think i'm specifying the wrong version of the plugin
572: [10:11:34] <willagain> i hadn't realised there was a 2.0, so was thinking 1.0 was the latest stable.
573: [10:11:41] <kinglozzer> https://github.com/heyday/silverstripe-optimisedimage/blob/1.0.0/code/OptimisedGDBackend.php#L22 that'll be it
574: [10:12:05] <willagain> my bad. ill try out the 2.0 version in the morning on local & stage n see how that goes. doh
575: [10:12:34] <willagain> i'm a bit confused on composer - how do you know what version numbers of everything to specify so they all work together?
576: [10:12:52] <willagain> i take it going with dev-master for everything is risky?
577: [10:13:08] <kinglozzer> willagain: Yep, that's not a great idea
578: [10:13:46] <kinglozzer> Most modules specify their dependencies in composer.json, so you can see which version of SS they're compatible with
579: [10:13:49] <willagain> so just go with the tag or branch with the highest number and test ?
580: [10:14:22] <willagain> actually, can i even specify a tag?
581: [10:14:37] <kinglozzer> willagain: e.g. https://packagist.org/packages/silverstripe/userforms - pick the highest version number that has your version of ss in the "Requires" bit
582: [10:15:15] <kinglozzer> willagain: Yep, you can specify an exact tag (2.0.1) or the latest "minor" version (2.0.x)
583: [10:15:48] <willagain> ok, cool. thanks
584: [10:19:41] <ocm> shouldn't be composer just a requirement for silverstripe? Makes it a lot easier to fetch addons without having to check the requirements
585: [10:19:56] <simon_w> ocm, no.
586: [10:20:06] <ocm> oh okay
587: [10:20:15] * ocm leaves to sit in a corner
588: [10:20:45] <ocm> but why not? Composer is easy to use/setup
589: [10:20:53] <ocm> and it helps a great way on dependancies and stuff
590: [10:21:48] <simon_w> If you require people to use a command line to use your generic web product, you've failed
591: [10:22:13] <simon_w> composer's also aimed a lot more at developing on something than with something
592: [10:23:20] <ocm> still don't see a problem there actually, since people use silverstripe in order to develop something imho
593: [10:24:32] <simon_w> It's also rather frustrating when it breaks, and that's rather easy to have happen
594: [10:24:42] <simon_w> Most people are developing with SilverStripe, not on it
595: [10:26:24] <ocm> but even then, for example the facebook connect addon
596: [10:26:42] <ocm> I just did git clone (since I was lazy, wanted to have a quick look and stuff)
597: [10:27:07] <ocm> didn't work, so I had to use composer to fetch the right requirements without having to look for them myself (means spending time = moneyz)
598: [10:27:43] <ocm> in this case I was working with SS not on it
599: [10:28:19] <ocm> perhaps using composer should/could be put as concent, something that is not required but highly recommended?
600: [10:28:24] <simon_w> It's like with the sqlite module. For most people using composer to load it, they get conflicting constraints if they do a composer update now
601: [10:29:44] <simon_w> (same with postgres and mssql)
602: [10:31:36] <Pywook> kinglozzer: willagain so... [10:33] <Pywook> or you're very unfortunate and it's an extremely poorly coded module.
603: [10:31:40] <Pywook> :P
604: [10:32:02] <ocm> anyhow, lunch!
605: [10:32:37] <kinglozzer> Pywook: Pretty much :P
606: [10:32:51] <willagain> Pywook, to be fair to the module & they guys that wrote it, i was using the wrong version
607: [10:32:53] * simon_w quit (Quit: This computer has gone to sleep)
608: [10:32:59] <willagain> more careless than unlukcy : )
609: [10:34:07] <Pywook> nah, unlucky.
610: [10:34:18] <Pywook> it's a stuipd dependency
611: [10:35:15] <Pywook> I mean, to just assume that someone is using Raven logging
612: [10:36:21] <Pywook> especially when the composer.json only states it supports raven, not requires.
613: [10:36:32] <Pywook> so yeah, I'd say that's poor code.
614: [10:39:39] <Pywook> [11:21] <@simon_w> If you require people to use a command line to use your generic web product, you've failed
615: [10:40:23] <Pywook> my windup with things like laravel, symphanee, django, etc.
616: [10:40:47] <Pywook> dev/build is nice. and requires auth.
617: [10:42:06] <Pywook> does the trick.
618: [10:46:03] * svandragt has joined #silverstripe
619: [10:46:33] <svandragt> /msg nickserv identify C@V^x68l!SNcb#pRX05S0c8Pr#nB@BE@
620: [10:46:38] <svandragt> oh that's nice
621: [10:48:30] <Zauberfisch> svandragt: :D
622: [10:48:46] <Zauberfisch> at least a generated one
623: [10:48:52] <svandragt> its changed now
624: [10:49:06] <svandragt> crappy spaces
625: [10:49:15] <Zauberfisch> imagine you had used the same password on all your accounts
626: [10:49:30] <Zauberfisch> svandragt: good advise: always do identify in the network tab
627: [10:49:52] <svandragt> Xchat normally does it but my evaluation period is up
628: [10:50:24] <svandragt> You know how you can call $ControllerMethod($argument) in a template, does this work in an include?
629: [10:50:53] <svandragt> (it seems it doesn't)
630: [10:51:16] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
631: [10:53:44] <svandragt> ok it does work in an include but it doesn't work with my routing for some reason
632: [10:54:11] <svandragt> I did ?debug_request=1 and I added the method in the controllers mentioned but still no dice.
633: [10:58:19] <willagain> ref composer - i reckon if you don't use it you are in for a much worse time with plugins etc.
634: [11:14:49] <Zauberfisch> willagain: was that a question?
635: [11:18:26] <Pywook> willagain: yes and no. It depends ENTIRELY on the module's author.
636: [11:18:41] <Pywook> for instance, it would _not_ have saved you from that Raven issue.
637: [11:18:54] <Pywook> Raven is defined through composer as 'supports' not 'requires'.
638: [11:19:04] <Pywook> probably because Raven is a python project.
639: [11:19:11] <Pywook> I dunno.
640: [11:19:16] <ocm> raven is a python project?
641: [11:19:21] <ocm> muhaha, the snake and the blackbird
642: [11:19:22] <ocm> :D
643: [11:19:39] <Pywook> svandragt: haha, that's why I never auth in a channel, always in server window.
644: [11:19:53] <ocm> I don't auth at all :D
645: [11:20:01] <Pywook> neither
646: [11:20:09] <ocm> my username was already registered
647: [11:20:18] <ocm> but the owner granted me permission to use it
648: [11:20:19] <Pywook> I can, if I log in with my proper name.
649: [11:20:28] <Pywook> but I'm at work behind a proxy so I don't.
650: [11:21:00] <Pywook> so anyway... I found this: http://blog.websecurify.com/2013/08/vortex-a-vagrant-alternative.html and this: http://boxgrinder.org
651: [11:21:27] <Pywook> No one writes anything in real languages anymore :<
652: [11:21:46] * spronk2 quit (Quit: spronk2)
653: [11:22:07] <ocm> what do you define by a real language?
654: [11:22:16] <Pywook> C. The end.
655: [11:22:44] <ocm> I dont see the end
656: [11:22:45] <ocm> do you?
657: [11:22:51] <ocm> however.. the end is neigh
658: [11:22:54] <Pywook> Or: pretty much anything but Ruby.
659: [11:23:00] <Pywook> unreadable crap.
660: [11:23:06] <ocm> ruby ruby rubyyyyy aahhahaaahahhaaaaaa
661: [11:23:19] <Pywook> heh
662: [11:23:32] <ocm> http://www.youtube.com/watch?v=qObzgUfCl28
663: [11:23:35] <ocm> that ^
664: [11:23:36] <Pywook> nup.
665: [11:23:47] <ocm> now do you, do you do you dyou?
666: [11:24:03] <Pywook> Nope.
667: [11:24:27] <ocm> oh :(
668: [11:25:22] * spronk2 has joined #silverstripe
669: [11:35:27] <Pywook> vagrant provisioning scripts... who the fuck do they run as?
670: [11:36:58] * Colin[pi] quit (Ping timeout: 260 seconds)
671: [11:52:56] * shellbackpacific has joined #silverstripe
672: [11:55:47] * Robke has joined #silverstripe
673: [11:56:01] <Robke> $fields->addFieldToTab("Root.Main", new DropdownField('Name','Choose a folder', DataObject::get("Folder")->map())); (i use this but i get uploads folder)
674: [11:56:13] <Robke> is it possible to choose custom folder or files from dropdown?
675: [12:11:39] * Sj0hn has joined #silverstripe
676: [12:13:28] <Sj0hn> Hi,
677: [12:16:26] <Sj0hn> I have a SS installation on a windows server (Windows NT EBS-31454 6.2), but it's not loading the images.. The path does the following: "
678: [12:16:49] <Sj0hn> http://themes/simple/img/logo.png
679: [12:17:29] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
680: [12:17:48] <fdrechsler> post your template code for the url
681: [12:18:36] <Sj0hn> <img src="$Themedir/img/logo.png"/>
682: [12:18:40] <svandragt> does using $this->customize()->renderWith() stop me from using $ControllerMethod in templates? Using it works up until the point in the template hierarhy where I specify the former.
683: [12:19:23] <svandragt> Sj0hn: have you got $MetaTags(false) in your Page.ss template?
684: [12:19:34] <Sj0hn> uhm yes
685: [12:19:44] <fdrechsler> Sjohn: try <img src="{$BaseDir}{$ThemeDir}....
686: [12:19:49] <svandragt> Sj0hn: image src should be /$ThemeDir not just $ThemeDir
687: [12:20:09] <fdrechsler> sj0hn: *BaseHref
688: [12:20:17] <Sj0hn> fdrechsler, that does work. But on the back-end it doesnt. Admin still doesnt load the assets
689: [12:20:35] <fdrechsler> Sj0hn: try svandragt solution
690: [12:21:36] <fdrechsler> svandragt: try calling the controller method with $Up.[MethodHere]
691: [12:21:43] <fdrechsler> of course without the brackets
692: [12:23:34] * Robke quit (Ping timeout: 246 seconds)
693: [12:24:00] <Sj0hn> svandragt: that works, thank you. But on the /admin it doesn't load the assets aswell. Should that be tweaked aswell?
694: [12:24:31] <Sj0hn> It's the same problem: http://framework/admin/images/menu-icons/16x16/db.png 404 (Not Found)
695: [12:24:50] <svandragt> Sj0hn: no it should work something else is wrong then hmmm
696: [12:25:33] <Sj0hn> It's a windows server.. so thats crappy to start with xD
697: [12:25:51] <fdrechsler> shouldnt be a issue with the windows server
698: [12:26:13] <svandragt> Sj0hn: ah well perhaps it's the .htaccess that is different form web.config what version of IIS are you using?
699: [12:26:54] <svandragt> Sj0hn: see "additional notes" here http://doc.silverstripe.org/framework/en/installation/windows-manual-iis
700: [12:27:15] <Sj0hn> System Windows NT EBS-31454 6.2 build 9200 (Unknow Windows version Datacenter Edition) i586
701: [12:27:22] <Pywook> Sj0hn: svandragt meta tags don't do this.
702: [12:27:24] <Sj0hn> svandragt: is this what you mean?
703: [12:27:36] <Pywook> svandragt: no, as the controller doesn't exist. You've only got an object.
704: [12:27:43] <Pywook> $thing->renderWith()
705: [12:27:51] <Pywook> you can call $thing->method
706: [12:28:00] <Pywook> but not RandomOtherThing::method
707: [12:28:07] <svandragt> Sj0hn: ISAPI_Rewrite I've used which can use .htaccess
708: [12:28:09] <Pywook> unless it's set up as a template global
709: [12:29:32] <Sj0hn> So that's necessary for the urls to work?
710: [12:29:36] <Pywook> Sj0hn: do you have a <base> tag at the beginning of your document (<head><base ..
711: [12:29:40] <Pywook> ?
712: [12:29:54] <Pywook> Sj0hn: it's probably a server config issue, yes.
713: [12:30:40] <Pywook> It's not got anything to do with the rewrite itself though, I think.
714: [12:30:41] <Sj0hn> @pywook yeh, it's there
715: [12:30:47] <Pywook> Sj0hn: and it's correct?
716: [12:31:01] <Pywook> href = base to your ss install
717: [12:31:15] <Sj0hn> yes, altough it add index.php, but that because it doesnt have rewrite right?
718: [12:31:22] <Pywook> right.
719: [12:31:38] <Pywook> but that shouldn't really stop the assets from loading.
720: [12:33:11] <Pywook> Sj0hn: these aren't getting set properly probably.
721: [12:33:11] <Pywook> https://github.com/silverstripe/silverstripe-framework/blob/3.1/core/Constants.php
722: [12:34:16] <svandragt> Pywook: weird if I pass Method=$Up.Method into the include directive then I can call $Method. But I can't call $Up.Method in the include because it's already at the top scope hmmk
723: [12:34:56] <Pywook> http://api.silverstripe.org/3.1/source-class-ViewableData.html#514-535
724: [12:35:05] <Sj0hn> Pywook: Can i manually fix those?
725: [12:35:12] <Pywook> svandragt: ha, that's weird.
726: [12:35:13] <Pywook> Sj0hn: no.
727: [12:35:15] <Pywook> you're fucked.
728: [12:35:18] <Pywook> get a better web server.
729: [12:35:20] <Pywook> :P
730: [12:35:21] <Sj0hn> haha
731: [12:36:03] <Pywook> Sj0hn: hmm, hang on
732: [12:36:42] <Pywook> yeah nah... that's weird.
733: [12:36:47] <Pywook> [13:16] <Sj0hn> http://themes/simple/img/logo.png
734: [12:36:50] <Pywook> there's nothign wrong with that.
735: [12:37:02] <Pywook> that should work, provided your install is at the web root
736: [12:37:16] <Pywook> well, no actually derp. http:// will fuck it up
737: [12:37:48] <Pywook> but by default ss doesn't put http:// on links, because <% base_tag %>
738: [12:37:55] <Sj0hn> yeh, it's a web root installation so no problem with that
739: [12:37:59] <Pywook> so soemthing else is afoot
740: [12:38:11] <Pywook> Sj0hn: yeah the issue here is the http://
741: [12:38:15] <Pywook> not the link itself.
742: [12:38:40] <Pywook> it's definitely in the output html?
743: [12:39:00] <Pywook> shit, lunch
744: [12:39:02] <Pywook> bbl
745: [12:39:43] <svandragt> Sj0hn: my site's base says: <base href="https://dundeeandangus.ac.uk/"> is yours similar?
746: [12:40:35] <Sj0hn> uhm well the output html says: <script src="themes/simple/js/totop.js"></script> but the dev tools say: GET http://themes/simple/js/totop.js? 404 (Not Found)
747: [12:41:32] <svandragt> Sj0hn: view source in the browser, the base tag is in the <head> element
748: [12:41:34] <Sj0hn> svandragt: mine is as following: <base href="http://butlerschool.gotoip2.com/index.php/">
749: [12:42:47] <svandragt> type in manually http://butlerschool.gotoip2.com/index.php/themes/simple/js/totop.js does that load?
750: [12:43:18] <Sj0hn> uhm.. well no, it redirects me to http://themes/simple/js/totop.js?
751: [12:44:03] <Sj0hn> Without the index.php
752: [12:44:07] <Sj0hn> it works though......
753: [12:44:20] <Sj0hn> so: http://butlerschool.gotoip2.com/themes/simple/js/totop.js
754: [12:49:11] <svandragt> I'm not sure then where the problem is sJ0hn
755: [12:49:30] * Robke has joined #silverstripe
756: [12:50:24] <Sj0hn> Np, thanks for you help though :)
757: [12:51:12] <Robke> is there any way to "make" ss to take files from dropdown ? i mean... now all i have is treeDropDownfield in assests folder... but is is possible to change destnation folder to something like that themes/foo/otherTemplates/ and here it should be allowed to choose foobarr.ss ? :)
758: [12:55:02] <svandragt> Robke: I'm guessing here, but maybe use regular php functionality to return an array of files for a folder that you specify and then put it in an ArrayList that you can then ->map()
759: [12:57:01] <Robke> mhm....
760: [13:00:17] * Bollig|DesignCty has joined #silverstripe
761: [13:03:07] * muskie9 has joined #silverstripe
762: [13:05:20] <Pywook> Robke: no.
763: [13:06:02] <Pywook> tree dropdown requires an object that implements 'heirarchy' - files or pages. And because of this you can only set to a subtree, you cannot filter out certain types.
764: [13:08:22] <Robke> hm... so if i want to select file names from "my folder's files" it is not possible?
765: [13:10:51] <Pywook> Sj0hn: that's because dev tools is retarded.
766: [13:10:51] <Pywook> and/or the base tag isn't set properly, or is being ignored.
767: [13:10:51] <Pywook> try using dev tools to add a leading / to that src attribute
768: [13:10:51] <Pywook> see if it generates a correct request
769: [13:10:51] <Pywook> <script src="themes/simple/js/totop.js"> becomes <script src="/themes/simple/js/totop.js">
770: [13:10:51] <Pywook> try and see if it loads
771: [13:10:51] <Pywook> since the src has changed it should automatically try to load it.
772: [13:22:43] * Robke quit (Ping timeout: 246 seconds)
773: [13:38:34] * shellbackpacific quit (Quit: Leaving.)
774: [13:39:46] * shellbackpacific has joined #silverstripe
775: [13:39:46] * shellbackpacific quit (Client Quit)
776: [13:41:33] * kk_ has joined #silverstripe
777: [13:42:56] <kk_> how to use geoip or browser language for automatic site language?
778: [13:43:12] <Sj0hn> Pywook, with the / it works.
779: [13:47:42] <ocm> kk_ I would suggest to use the Accept-Language HTTP header
780: [13:49:15] <ocm> cause it uses the browser configuration and not the location of an user (which can be different from the actual location / native language )
781: [13:50:48] <Pywook> Sj0hn: does your base tag href have a / on the end of it?
782: [13:51:55] <kk_> ocm, ok thanks i will try this.
783: [13:52:56] <Pywook> oh, heh. [13:19] <svandragt> Sj0hn: image src should be /$ThemeDir not just $ThemeDir
784: [13:54:58] * shellbackpacific has joined #silverstripe
785: [13:59:12] * svandragt quit (Quit: Page closed)
786: [13:59:13] * Robke has joined #silverstripe
787: [13:59:48] <Robke> one more question :) i know its plain php but maybe you will help me :) how to set file names to aray in simple php open dir code line?
788: [14:00:20] <Robke> if (is_dir($dir)){ if ($dh = opendir($dir)){ while (($file = readdir($dh)) !== false){ echo "filename:" . $file . "<br>"; } closedir($dh); } }
789: [14:00:25] <Robke> in this line i mean?
790: [14:01:29] <kinglozzer> Robke: You want to put them in an array()? $files = array(), then inside your while() loop, $files[] = $file
791: [14:02:06] <Robke> hm ok thanks
792: [14:02:13] <Robke> i will try to do my best :)
793: [14:02:22] * catcher has joined #silverstripe
794: [14:02:28] <Robke> because i only need the names of files and i want to put them in ddropdownfield
795: [14:22:50] <kk_> ocm, that worked perfectly. :-)
796: [14:29:54] * travis-ci has joined #silverstripe
797: [14:29:54] <travis-ci> [travis-ci] tylerkidd/silverstripe-framework#10 (manymanylist_augments - f958ca3 : Tyler Kidd): The build failed.
798: [14:29:54] <travis-ci> [travis-ci] Change view : https://github.com/tylerkidd/silverstripe-framework/compare/171eb42c9e42^...f958ca3a77f5
799: [14:29:54] <travis-ci> [travis-ci] Build details : http://travis-ci.org/tylerkidd/silverstripe-framework/builds/30655031
800: [14:29:54] * travis-ci has left #silverstripe
801: [14:37:47] * CodeTrap quit (Ping timeout: 245 seconds)
802: [14:38:53] * Sj0hn quit ()
803: [14:38:55] * CodeTrap has joined #silverstripe
804: [14:40:25] * Robke quit (Ping timeout: 246 seconds)
805: [14:50:06] * spronk2 quit (Quit: spronk2)
806: [14:53:33] * spronk2 has joined #silverstripe
807: [14:57:00] * kk_ quit (Quit: Page closed)
808: [14:59:34] <Pywook> urgh, filthy. I just had to write some ruby :< FU vagrant.
809: [15:06:14] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
810: [15:36:41] * jenniferaslan has joined #silverstripe
811: [15:42:29] * spronk2 quit (Quit: spronk2)
812: [15:43:04] * harold_ quit (Ping timeout: 246 seconds)
813: [15:43:08] * FrozenFire quit (Ping timeout: 260 seconds)
814: [15:44:48] * FrozenFire has joined #silverstripe
815: [16:04:26] * caamic30 has left #silverstripe
816: [16:13:03] * [CD] has joined #silverstripe
817: [16:13:22] * Liongold has joined #silverstripe
818: [16:13:24] <Liongold> Hi
819: [16:13:39] <Liongold> How can I include external files in a template?
820: [16:15:34] * ChronicD quit (Ping timeout: 264 seconds)
821: [16:20:23] * kinglozzer quit ()
822: [16:22:46] <muskie9> Liongold, what type of external files?
823: [16:22:58] <Liongold> js, css etc.
824: [16:24:31] <Liongold> muskie9: Also is it a must to put all code in div class="content"
825: [16:26:22] <muskie9> why not make your call in the layout's .ss file, like you would do in a normal html page
826: [16:27:02] <Liongold> Oh so that's permitted. I didn't know because the ss does not have any head tags so I thought it would not be possible
827: [16:27:24] <Pywook> Liongold: it has head tags.
828: [16:27:34] <Pywook> template is basically just normal HTML
829: [16:27:43] <Liongold> Are they generated or I should include them
830: [16:27:45] <Pywook> but you should use Requriements instead of just typing the tag out.
831: [16:27:46] <Liongold> ?
832: [16:28:24] <Pywook> both work, but you should use <% require javascript("/path/file.js") %>
833: [16:28:27] <Pywook> same with css.
834: [16:28:32] <Liongold> My .ss starts with <div class="content-container unit size3of4 lastUnit>
835: [16:28:45] <Liongold> so I should add the head?
836: [16:29:12] <Pywook> although if the css is in your theme, just <% require themedCSS("filename") %>
837: [16:29:18] <Pywook> where filename has no path, nor any extension.
838: [16:29:32] <Pywook> Liongold: no, your'e not listening.
839: [16:29:49] <Liongold> Yes, I am.
840: [16:29:53] <Pywook> like muskie9 said, and like we've told you before, and like Tutorial #2 says...
841: [16:29:53] <muskie9> Pywook, sounds like it's js/css from a 3rd party source rather than in the site
842: [16:30:13] <Pywook> there are main templates, layout templates & includes.
843: [16:30:17] <Pywook> it depends on what you're doing.
844: [16:30:19] * stnvh quit ()
845: [16:30:19] <Pywook> entirely.
846: [16:30:50] <Pywook> muskie9: require css("http://blahblah.blah/blah") %> still works just as good
847: [16:31:09] <Liongold> No it is from the site. I just got mixed up. About the CSS, if the file is in the module folder, should themedCss or just css?
848: [16:31:52] <Pywook> http://doc.silverstripe.org//src/framework_3.1/docs/en/tutorials/_images/tutorial1_subtemplates-diagram.jpg
849: [16:31:59] <Pywook> http://doc.silverstripe.org/framework/en/tutorials/1-building-a-basic-site
850: [16:32:23] <Pywook> Liongold: if it's not in the theme, then don't use themedcss
851: [16:32:25] <Liongold> I've been following that
852: [16:32:54] <Liongold> Ok, thanks to both of you.
853: [16:33:41] <Pywook> righto, good luck!
854: [16:33:42] * Pywook quit ()
855: [16:34:14] <Liongold> thanks
856: [16:38:12] * firefox2kx quit (Ping timeout: 245 seconds)
857: [16:44:36] <Liongold> Another question: can I change the layuot of a from I coded?
858: [16:55:57] <Liongold> muskie9 Pywook: can I change the layout of a form I coded?
859: [16:56:24] <muskie9> did you extend form or right a function in your controller that returns a form
860: [16:57:18] <Liongold> Wrote a function in controller
861: [16:58:59] <muskie9> when you return your form you can call ->setTemplate() to set the SS template that the form should render with: http://api.silverstripe.org/3.1/class-Form.html#_setTemplate
862: [17:03:24] * fdrechsler quit (Read error: Connection reset by peer)
863: [17:05:08] * eagles0513875 quit (Quit: ZNC @ TrekWeb - https://trekweb.org)
864: [17:14:52] * eagles0513875 has joined #silverstripe
865: [17:15:15] * Liquide has joined #silverstripe
866: [17:32:38] <catcher> Liongold, http://doc.silverstripe.com/framework/en/topics/forms - there's a whole section on "custom form templates".
867: [17:33:51] <Liongold> Thanks
868: [17:35:21] * Liquide quit ()
869: [18:21:58] <Liongold> muskie9: and how can I include PHP files in the template?
870: [18:22:19] <muskie9> you don't, you do your php in your controller
871: [18:22:33] <muskie9> then you call your php functions in the template
872: [18:23:10] <Liongold> But if it doesn't have to do with the code itself?
873: [18:26:22] <muskie9> what are you wanting to put in the template?
874: [18:26:53] <Liongold> An array and astort
875: [18:27:19] <muskie9> what's going in your array?
876: [18:27:50] <Liongold> values which then will be used in javascript to be printed in a div
877: [18:28:56] <muskie9> you would use custom inline scripts in your contollers init() function to set the js values: custom-inline-scripts
878: [18:29:41] <muskie9> then your js that's loaded on the page would be able to access those variables, as long as the customScript is required prior to the other js
879: [18:38:46] * Liongold quit (Ping timeout: 246 seconds)
880: [18:39:27] * babak quit (Quit: Connection closed for inactivity)
881: [18:55:36] * Liongold has joined #silverstripe
882: [18:55:54] <Liongold> muskie9: can you repeat what you said? I lost connection.
883: [18:56:05] <muskie9> [13:28:55] muskie9: you would use custom inline scripts in your contollers init() function to set the js values: custom-inline-scripts
884: [18:56:12] <muskie9> [13:29:41] muskie9: then your js that's loaded on the page would be able to access those variables, as long as the customScript is required prior to the other js
885: [18:56:19] <Liongold> My code is $js = array(); asort($js);
886: [18:57:11] <Liongold> And how can I do foreach in the page then?
887: [18:59:54] <Liongold> muskie9: I need to set the values in PHP, asort them and then use a foreach loop to add some JS code for each.
888: [19:00:56] <muskie9> sorry, realized I didn't include the link: http://doc.silverstripe.com/framework/en/reference/requirements#custom-inline-scripts
889: [19:01:08] <muskie9> you would use Requirements::customScript()
890: [19:01:23] <Liongold> I did check that but it does not contain PHp.
891: [19:02:30] <muskie9> you can use php though
892: [19:02:35] <muskie9> since it's in a php file
893: [19:03:12] <Liongold> What would the structure be?
894: [19:07:15] <muskie9> can you paste what your js array would be
895: [19:14:23] <Liongold> muskie9: My PHP code is <?php $js = array(); asort($js); ?>
896: [19:22:43] <muskie9> what would you be putting in the array?
897: [19:23:44] <Liongold> Text strings
898: [19:24:02] * Shrike_Finland has joined #silverstripe
899: [19:27:58] <Liongold> muskie9: Then I need to foreach throguh the array and echo an input type="checkbox"
900: [19:28:04] <Liongold> What do you think?
901: [19:28:29] <muskie9> why wouldn't you build that using a function?
902: [19:29:13] <Liongold> Ok, I'll do a function. How then would I show them in the page?
903: [19:30:12] * harold_ has joined #silverstripe
904: [19:30:39] <muskie9> if you store the whole thing in a string var (i.e. $inputs = "<input type=\"checkbox\" />";) and return $inputs then whatever the string is would be put on the page, or should be
905: [19:31:27] <Liongold> Oh yeah. Thanks muskie9 :)
906: [19:31:44] <Liongold> But the requirements thing did not work.
907: [19:31:56] <Liongold> <% require css("../css/style") %>
908: [19:32:09] <harold_> hi I'm try to print a message when a form is successfully submitted
909: [19:32:14] <harold_> return $this->redirect( Director::baseURL().$this->URLSegment."/?success=1);
910: [19:32:50] <harold_> I then have a function
911: [19:32:52] <harold_> public function Success(){ return isset($_REQUEST['success']) && $_REQUEST['success'] == "1"; }
912: [19:33:30] <harold_> then in my template
913: [19:33:32] <harold_> <% if Success %> <p><Thank you</p> $SubmitText
914: [19:33:47] <harold_> but it doesn't catch the true
915: [19:36:47] <harold_> inmy template
916: [19:36:50] <harold_> $Success
917: [19:36:53] <harold_> outputs 1
918: [19:37:08] <harold_> <% if $Success==1 %>
919: [19:37:16] <harold_> doesn't exvalute as true
920: [19:39:42] * Liongold quit (Quit: Page closed)
921: [19:42:31] * Colin[pi] has joined #silverstripe
922: [19:44:38] <harold_> i fixed it, I think it was a flush issue
923: [19:45:18] <harold_> is there a variable which will hold the value of a page
924: [19:45:29] <harold_> for example I want to link to my contact page
925: [19:45:41] <harold_> would something like $PageName work
926: [19:47:30] <harold_> or something like $ContactPage.Link
927: [19:49:18] <muskie9> harold_ where are you linking it from?
928: [19:49:21] * Cheddam has joined #silverstripe
929: [19:49:43] <harold_> home page
930: [19:50:08] <muskie9> do you have a specific page type for your home page? or just Page
931: [19:50:37] <muskie9> you could always set a has_one relation to SiteTree and do a dropdown of the site's pages and have it pull it in that way
932: [19:51:14] <harold_> home page is of type HomePage
933: [19:53:45] <harold_> ok thanks
934: [19:53:50] <harold_> I think I will just hard code it
935: [19:53:53] <muskie9> https://gist.github.com/nhorstmeier/e765bc4b94c4d3e11b4d
936: [19:55:03] <ezero> what does that do? has_one 'SiteTree'? does that links a page to a page in site tree?
937: [19:55:10] <harold_> how would i thwen access the url as a var
938: [19:56:02] <ezero> Oh i see, it does.. i should have read this 27<2123muskie927> you could always set a has_one relation to SiteTree and do a dropdown of the site's pages and have it pull it in that way
939: [19:56:13] <ezero> thats pretty cool
940: [19:56:49] <muskie9> <a href="$PageLink.Link">$PageLink.Title</a>
941: [19:57:00] <muskie9> I'm not 100% on $PageLink.Title, but I think it would work
942: [20:10:08] * mobiusnz quit (Quit: Leaving.)
943: [20:10:17] * mobiusnz has joined #silverstripe
944: [20:10:22] * mobiusnz quit (Client Quit)
945: [20:11:59] * Shrike_Finland quit (Ping timeout: 264 seconds)
946: [20:22:34] * Shrike_Finland has joined #silverstripe
947: [20:22:43] * travis-ci has joined #silverstripe
948: [20:22:43] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#923 (master - c45fb5a : Ingo Schommer): The build is still failing.
949: [20:22:43] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/519b0dfaa0b6...c45fb5af43f1
950: [20:22:43] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/27815008
951: [20:22:43] * travis-ci has left #silverstripe
952: [20:28:38] * mobiusnz has joined #silverstripe
953: [20:41:10] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
954: [20:44:23] * Olliepop has joined #silverstripe
955: [20:49:48] * Ryan-Toast has joined #silverstripe
956: [20:58:25] * Liquide has joined #silverstripe
957: [21:04:22] * shellbackpacific quit (Quit: Leaving.)
958: [21:07:01] * jrthomer_ has joined #silverstripe
959: [21:09:35] * jrthomer quit (Ping timeout: 264 seconds)
960: [21:13:47] * UncleCheese has joined #silverstripe
961: [21:14:44] * Shrike_Finland quit (Quit: Leaving.)
962: [21:22:51] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
963: [21:35:09] * Azure quit (Quit: Blue Sky Fish)
964: [21:37:25] * Azure has joined #silverstripe
965: [21:38:20] * Azure quit (Client Quit)
966: [21:38:35] * willr has joined #silverstripe
967: [21:38:59] * Azure has joined #silverstripe
968: [21:43:13] * babak has joined #silverstripe
969: [21:43:38] * Azure quit (Remote host closed the connection)
970: [21:44:47] * Azure has joined #silverstripe
971: [21:46:50] * irogue_ has joined #silverstripe
972: [21:49:55] * shellbackpacific has joined #silverstripe
973: [21:50:58] * shellbackpacific has left #silverstripe
974: [21:56:49] * pippy has joined #silverstripe
975: [21:57:36] <irogue_> mornin' chaps
976: [21:57:47] <ss23> moin moin
977: [21:57:56] <irogue_> holy shit, ss23 is here
978: [21:58:04] <irogue_> and it's not even 11am yet
979: [21:58:08] <ss23> QQ
980: [22:08:05] <catcher> seeya!
981: [22:08:07] * catcher quit (Quit: Leaving)
982: [22:11:11] <Blacklite> ok so i'm making the admin page for a model
983: [22:11:20] <Blacklite> the model is X and it belongs to Y
984: [22:11:28] <Blacklite> Y hasMany X
985: [22:11:46] <Blacklite> so when i'm editing X, i want to be able to select which Y to belong to
986: [22:11:52] <Blacklite> what type of field should I use?
987: [22:11:56] <Blacklite> I've seen this: http://doc.silverstripe.org/framework/en/reference/form-field-types
988: [22:12:55] <Olliepop> DropdownField
989: [22:13:23] <Blacklite> so I can use a standard field then? don't need to use one from the "Relationship" section?
990: [22:13:28] <Blacklite> sorry "relations
991: [22:13:30] <Blacklite> "
992: [22:13:55] <Olliepop> yea use TreeDropdownField
993: [22:16:07] <irogue_> TreeDropdownField if they're SiteTree objects, otherwise just DropdownField
994: [22:26:46] <Blacklite> ok well the dropdown is empty unfortunately
995: [22:27:03] <Blacklite> how can i get it to populate with the list of parent records?
996: [22:30:16] * UncleCheese has joined #silverstripe
997: [22:33:14] <irogue_> Blacklite: with an ORM query of possible parents
998: [22:33:32] <Blacklite> ok so i have to do it manually?
999: [22:33:45] <irogue_> if you're overriding the default getCMSFields, rather than extending it, yes
1000: [22:33:49] <Blacklite> there is no belongs_to relationship field of some kind?
1001: [22:34:24] <Blacklite> well the default getCMSFields just gives me a numeric field for the ID, it doesn't give me a relationship dropdown
1002: [22:34:29] <Blacklite> could i have my model set up incorrectly?
1003: [22:34:57] <irogue_> probably
1004: [22:35:14] <UncleCheese> always define your own getCMSFields.. the scaffolding will leave you disappointed
1005: [22:35:43] <Blacklite> what about in summary_fields? I want to display the name of the parent record there too and it seems I have to do an additional query
1006: [22:36:09] <UncleCheese> no
1007: [22:36:16] <UncleCheese> just RelationName.FieldName
1008: [22:36:20] <Blacklite> ah okay
1009: [22:37:44] <Blacklite> Error at line 580 of /app/framework/model/MySQLDatabase.php
1010: [22:38:07] <Blacklite> would be nice if it did trigger_error with a message :(
1011: [22:38:20] <irogue_> it should give you a db query
1012: [22:38:50] <Blacklite> aha yes
1013: [22:39:09] <Blacklite> WHERE ("ParentID" = 1)
1014: [22:39:15] <Blacklite> it's putting this in my query, but the field doesn't exist
1015: [22:40:01] <irogue_> Blacklite: how are you defining the relationship? and are you doing manual db queries?
1016: [22:40:26] <Blacklite> well X belongs to Y
1017: [22:40:36] <Blacklite> i'm listing all the X's, and i want to show which Y they belong to
1018: [22:40:50] <Blacklite> i'm using Y.Title in the summary fields
1019: [22:41:16] <Blacklite> and it's coming up with a WHERE Y.ParentID=1
1020: [22:41:17] <irogue_> can you pastie the relevant bits of code?
1021: [22:41:31] <Blacklite> sure
1022: [22:41:56] <irogue_> both sides of the relationship, and the summary_fields
1023: [22:42:11] <Blacklite> yep
1024: [22:44:10] <Blacklite> here is X: http://pastie.org/private/pj1qtl5sbd6j0zjbw9zvq
1025: [22:45:39] <Blacklite> and here is Y: http://pastie.org/private/3wvrz6jlpe8ogoz4psi81a
1026: [22:48:49] <irogue_> 'Title' => 'Varchar(255)'
1027: [22:48:59] <irogue_> that doesn't make much sense in the context of summary_fields or searchable_fields
1028: [22:49:21] <Blacklite> tbh that part is not my code, i'm just doing what i've seen in this codebase
1029: [22:49:26] <Blacklite> i don't understand why it's there either, really
1030: [22:51:52] * Ryan-Toast quit (Quit: Ryan-Toast)
1031: [22:53:36] * markcl has joined #silverstripe
1032: [22:54:06] * Ryan-Toast has joined #silverstripe
1033: [22:54:25] <irogue_> Blacklite: biggest issue is that you shouldn't be using $belongs_to there
1034: [22:54:33] <Blacklite> ok
1035: [22:54:38] <irogue_> $belongs_to is for the other side of a $has_one
1036: [22:54:47] <Blacklite> ok
1037: [22:54:54] <Blacklite> should i be using something like belongs_to_many?
1038: [22:54:56] <irogue_> this is a $has_many, so it should be a $has_one on the other side
1039: [22:55:08] <Blacklite> ah okay
1040: [22:55:18] <irogue_> and remove the YID from $db, it'll be created by the $has_one
1041: [22:55:36] <Blacklite> yeah, i had it in there because it wasn't creating the field
1042: [22:55:42] <Blacklite> i guess fixing this will sort that out
1043: [22:56:27] <Blacklite> yep, just /dev/build'd and it added the field
1044: [22:56:44] <Blacklite> oh no, it changed the name of it to a plural
1045: [22:56:44] <Blacklite> oh well
1046: [22:58:21] <Blacklite> woohoo, it works! thanks a lot, irogue
1047: [23:00:39] <irogue_> no worries
1048: [23:01:10] <irogue_> having YID as an Int was why it was giving you a text box for editing it, it thought it was just another random piece of data rather than a relationship
1049: [23:02:07] <Blacklite> yep
1050: [23:02:53] <Blacklite> well now it's got the correct type of field there, but i want to reorder the fields
1051: [23:02:58] <Blacklite> and remove some irrelevant ones from the edit screen
1052: [23:03:23] <Blacklite> how do i go about creating the dropdown relationship field myself? i've tried a standard dropdown but it just comes up empty
1053: [23:05:23] <Blacklite> i will trawl through the source code i think
1054: [23:23:53] * Kingy[a] is now known as Kingy
1055: [23:24:45] * travis-ci has joined #silverstripe
1056: [23:24:45] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#960 (3.0 - a495385 : Hamish Friedlander): The build passed.
1057: [23:24:45] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/405c3d314f39...a495385ee560
1058: [23:24:45] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/30703698
1059: [23:24:45] * travis-ci has left #silverstripe
1060: [23:25:05] <Colin[pi]> g'morning
1061: [23:28:31] <simon_w|work> Morning
1062: [23:28:59] <irogue_> g'dau
1063: [23:29:03] <irogue_> g'day even
1064: [23:31:20] <Colin[pi]> g'tar
1065: [23:31:22] <Colin[pi]> g'string
1066: [23:33:59] * mirrors has joined #silverstripe
1067: [23:35:16] <mirrors> hi simon_w|work ...yesterday I asked how I can prevent a dataobject from being deleted by doing a check in the onBeforeDelete() after the user clicks delete....you said I should throw an exception..How can I do this?
1068: [23:35:32] <simon_w|work> throw new Exception()
1069: [23:35:50] <simon_w|work> You'll need to catch and handle it properly though
1070: [23:36:12] <mirrors> so where would i catch it?
1071: [23:37:24] <Colin[pi]> in the code that's trying to delete it, I would guess
1072: [23:41:50] <mirrors> mmm
1073: [23:46:14] * Olliepop_ has joined #silverstripe
1074: [23:46:25] * Olliepop quit (Ping timeout: 246 seconds)
1075: [23:47:43] <Olliepop_> Can you access $this from onAfterWrite()? Are there any limitations?
1076: [23:48:39] <Colin[pi]> Olliepop_: yes, you can
1077: [23:48:44] <simon_w|work> Olliepop_, in a DO, yes. Only thing to watch out for is calling write() from it
1078: [23:50:02] <Stomach> eternal loop of deaaath
1079: [23:50:13] <spronk> wtf
1080: [23:50:17] <Olliepop_> @simon_w|work: So I should instantiate a new object and write to that, instead of $this?
1081: [23:50:17] <spronk> textual is apparently free today, but not in NZ.
1082: [23:50:18] <spronk> :@
1083: [23:50:41] <UncleCheese> it was yesterday
1084: [23:51:07] <Stomach> spronk, cant you just build it from source = free?
1085: [23:51:11] <UncleCheese> because today is tomorrow in nz
1086: [23:51:14] <spronk> sigh
1087: [23:51:18] <Colin[pi]> dem time zones
1088: [23:51:22] <spronk> fuck time zones
1089: [23:51:27] <veb> textual? the irc app?
1090: [23:51:32] <spronk> mm
1091: [23:51:39] <veb> the one that costs $6 NZD that supports the devs?
1092: [23:51:39] <Colin[pi]> i bought it already, it's good
1093: [23:51:40] <veb> lol'd
1094: [23:51:45] <veb> yeah I'm with Colin[pi]
1095: [23:52:12] <veb> it took Apple a week to bill me too
1096: [23:53:09] <simon_w|work> And Textual supports Growl
1097: [23:53:24] <spronk> but growl is shit
1098: [23:53:26] <veb> does that even matter in ...
1099: [23:53:32] <veb> like, Mavericks etc?
1100: [23:53:32] <spronk> though
1101: [23:53:38] <spronk> that's 90% apple's doing
1102: [23:53:44] <veb> i just built an app in cocoa, using the os x notification system
1103: [23:53:47] <veb> and it's notbad.png
1104: [23:53:55] <simon_w|work> I prefer Growl over NotificationCentre
1105: [23:54:08] <veb> this thing looks, acts like Growl
1106: [23:54:11] <veb> is not growl
1107: [23:54:15] <spronk> can you turn off notification centre?
1108: [23:54:18] <veb> I'm not sure what it is actually
1109: [23:54:23] <spronk> notification centre is awful
1110: [23:54:24] <simon_w|work> Kinda
1111: [23:54:35] <spronk> it's really a colostomy bag full of shit
1112: [23:54:37] <veb> notificationcentre is the thing to the right
1113: [23:54:38] <veb> isn't it?
1114: [23:54:41] <spronk> yes
1115: [23:54:42] <simon_w|work> veb, the builtin one looks nothing like my Growl setup :p
1116: [23:54:51] <veb> simon_w|work: pff
1117: [23:54:53] <Blacklite> ok so, Y hasMany X's and i want to get a list of all Y's with all the X's listed in an array under each Y
1118: [23:55:08] <Blacklite> is there a clean way to do this with SS's dataobject?
1119: [23:55:10] <simon_w|work> Olliepop_, what are you trying to do?
1120: [23:55:28] * spronk used to have a nice growl setup, with hardwaregrowler and growltunes and a few various scripts and things
1121: [23:55:43] <spronk> but ever since growl went app store, and notification centre came out and fucked things about, nope
1122: [23:55:52] <simon_w|work> Blacklite, <% loop $list(Y) %> Blah <% loop $Xs %> OtherBalh <% end_loop %> <% end_loop %>
1123: [23:56:21] <simon_w|work> spronk, there's a nice switch in Growl to tell it not to use Notification Centre
1124: [23:56:27] <Blacklite> i get that, i just need to get the data into the array in the first place
1125: [23:56:37] <Blacklite> i'm generating JSON files again :)
1126: [23:56:38] <Olliepop_> @simon_w|work: After a candidate (for a job) is saved, copy the contents of another DataObject the client selected via a field in the CMS to the candidate DO (copying is important, instead of a relationship)
1127: [23:56:44] <simon_w|work> Blacklite, no you don't
1128: [23:56:51] <spronk> simon_w|work: yeah but notification centre is still on
1129: [23:57:27] <simon_w|work> Blacklite, ah, json. Then just use foreach(Y::get() as $y)
1130: [23:57:59] <simon_w|work> Olliepop_, is better to do that in onBeforeWrite()
1131: [23:57:59] <Blacklite> ok
1132: [23:58:33] <simon_w|work> spronk, you can go and remove all the apps from notification centre, which is the closest you can get to turning it off
1133: [23:58:40] <Olliepop_> @simon_w|work: But wouldn't that mean that the ID of the dataobject we want to copy isn't saved, or is outdated?
1134: [23:58:47] <Blacklite> i'm already in a foreach loop for X though
1135: [23:59:04] <Stomach> Request URL:http://onlythebest.dev/admin/pages/batchactions/unpublish
1136: [23:59:04] <Stomach> Request Method:POST
1137: [23:59:04] <Stomach> Status Code:400 Bad Request
1138: [23:59:08] <Stomach> wut.
1139: [23:59:21] <simon_w|work> Olliepop_, not the one you're copying from
1140: [23:59:30] <Blacklite> foreach($X as $x) { $data[] = array('title' => $x->title, 'y' => ???); }
1141: [23:59:54] <simon_w|work> Blacklite, so you want it the other way around?

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